Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for speexdsp 1.2.1.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 PATH=/empty FPATH=/empty; export PATH FPATH
192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194 test \$(( 1 + 1 )) = 2 || exit 1"
195 if (eval "$as_required") 2>/dev/null
196 then :
197 as_have_required=yes
198 else $as_nop
199 as_have_required=no
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else $as_nop
205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else $as_nop
239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi
244 fi
245
246
247 if test "x$CONFIG_SHELL" != x
248 then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno
271 then :
272 printf "%s\n" "$0: This script requires a shell more modern than all"
273 printf "%s\n" "$0: the shells that I found on your system."
274 if test ${ZSH_VERSION+y} ; then
275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 printf "%s\n" "$0: Please tell [email protected] and [email protected]
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306
307 # as_fn_set_status STATUS
308 # -----------------------
309 # Set $? to STATUS, without forking.
310 as_fn_set_status ()
311 {
312 return $1
313 } # as_fn_set_status
314
315 # as_fn_exit STATUS
316 # -----------------
317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 as_fn_exit ()
319 {
320 set +e
321 as_fn_set_status $1
322 exit $1
323 } # as_fn_exit
324 # as_fn_nop
325 # ---------
326 # Do nothing but, unlike ":", preserve the value of $?.
327 as_fn_nop ()
328 {
329 return $?
330 }
331 as_nop=as_fn_nop
332
333 # as_fn_mkdir_p
334 # -------------
335 # Create "$as_dir" as a directory, including parents if necessary.
336 as_fn_mkdir_p ()
337 {
338
339 case $as_dir in #(
340 -*) as_dir=./$as_dir;;
341 esac
342 test -d "$as_dir" || eval $as_mkdir_p || {
343 as_dirs=
344 while :; do
345 case $as_dir in #(
346 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
347 *) as_qdir=$as_dir;;
348 esac
349 as_dirs="'$as_qdir' $as_dirs"
350 as_dir=`$as_dirname -- "$as_dir" ||
351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352 X"$as_dir" : 'X\(//\)[^/]' \| \
353 X"$as_dir" : 'X\(//\)$' \| \
354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355 printf "%s\n" X"$as_dir" |
356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357 s//\1/
358 q
359 }
360 /^X\(\/\/\)[^/].*/{
361 s//\1/
362 q
363 }
364 /^X\(\/\/\)$/{
365 s//\1/
366 q
367 }
368 /^X\(\/\).*/{
369 s//\1/
370 q
371 }
372 s/.*/./; q'`
373 test -d "$as_dir" && break
374 done
375 test -z "$as_dirs" || eval "mkdir $as_dirs"
376 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
377
378
379 } # as_fn_mkdir_p
380
381 # as_fn_executable_p FILE
382 # -----------------------
383 # Test if FILE is an executable regular file.
384 as_fn_executable_p ()
385 {
386 test -f "$1" && test -x "$1"
387 } # as_fn_executable_p
388 # as_fn_append VAR VALUE
389 # ----------------------
390 # Append the text in VALUE to the end of the definition contained in VAR. Take
391 # advantage of any shell optimizations that allow amortized linear growth over
392 # repeated appends, instead of the typical quadratic growth present in naive
393 # implementations.
394 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
395 then :
396 eval 'as_fn_append ()
397 {
398 eval $1+=\$2
399 }'
400 else $as_nop
401 as_fn_append ()
402 {
403 eval $1=\$$1\$2
404 }
405 fi # as_fn_append
406
407 # as_fn_arith ARG...
408 # ------------------
409 # Perform arithmetic evaluation on the ARGs, and store the result in the
410 # global $as_val. Take advantage of shells that can avoid forks. The arguments
411 # must be portable across $(()) and expr.
412 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
413 then :
414 eval 'as_fn_arith ()
415 {
416 as_val=$(( $* ))
417 }'
418 else $as_nop
419 as_fn_arith ()
420 {
421 as_val=`expr "$@" || test $? -eq 1`
422 }
423 fi # as_fn_arith
424
425 # as_fn_nop
426 # ---------
427 # Do nothing but, unlike ":", preserve the value of $?.
428 as_fn_nop ()
429 {
430 return $?
431 }
432 as_nop=as_fn_nop
433
434 # as_fn_error STATUS ERROR [LINENO LOG_FD]
435 # ----------------------------------------
436 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438 # script with STATUS, using 1 if that was 0.
439 as_fn_error ()
440 {
441 as_status=$1; test $as_status -eq 0 && as_status=1
442 if test "$4"; then
443 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
445 fi
446 printf "%s\n" "$as_me: error: $2" >&2
447 as_fn_exit $as_status
448 } # as_fn_error
449
450 if expr a : '\(a\)' >/dev/null 2>&1 &&
451 test "X`expr 00001 : '.*\(...\)'`" = X001; then
452 as_expr=expr
453 else
454 as_expr=false
455 fi
456
457 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
458 as_basename=basename
459 else
460 as_basename=false
461 fi
462
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464 as_dirname=dirname
465 else
466 as_dirname=false
467 fi
468
469 as_me=`$as_basename -- "$0" ||
470 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471 X"$0" : 'X\(//\)$' \| \
472 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473 printf "%s\n" X/"$0" |
474 sed '/^.*\/\([^/][^/]*\)\/*$/{
475 s//\1/
476 q
477 }
478 /^X\/\(\/\/\)$/{
479 s//\1/
480 q
481 }
482 /^X\/\(\/\).*/{
483 s//\1/
484 q
485 }
486 s/.*/./; q'`
487
488 # Avoid depending upon Character Ranges.
489 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492 as_cr_digits='0123456789'
493 as_cr_alnum=$as_cr_Letters$as_cr_digits
494
495
496 as_lineno_1=$LINENO as_lineno_1a=$LINENO
497 as_lineno_2=$LINENO as_lineno_2a=$LINENO
498 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
501 sed -n '
502 p
503 /[$]LINENO/=
504 ' <$as_myself |
505 sed '
506 s/[$]LINENO.*/&-/
507 t lineno
508 b
509 :lineno
510 N
511 :loop
512 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
513 t loop
514 s/-\n.*//
515 ' >$as_me.lineno &&
516 chmod +x "$as_me.lineno" ||
517 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
518
519 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520 # already done that, so ensure we don't try to do so again and fall
521 # in an infinite loop. This has already happened in practice.
522 _as_can_reexec=no; export _as_can_reexec
523 # Don't try to exec as it changes $[0], causing all sort of problems
524 # (the dirname of $[0] is not the place where we might find the
525 # original and so on. Autoconf is especially sensitive to this).
526 . "./$as_me.lineno"
527 # Exit status is that of the last command.
528 exit
529 }
530
531
532 # Determine whether it's possible to make 'echo' print without a newline.
533 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534 # for compatibility with existing Makefiles.
535 ECHO_C= ECHO_N= ECHO_T=
536 case `echo -n x` in #(((((
537 -n*)
538 case `echo 'xy\c'` in
539 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
540 xy) ECHO_C='\c';;
541 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
542 ECHO_T=' ';;
543 esac;;
544 *)
545 ECHO_N='-n';;
546 esac
547
548 # For backward compatibility with old third-party macros, we provide
549 # the shell variables $as_echo and $as_echo_n. New code should use
550 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551 as_echo='printf %s\n'
552 as_echo_n='printf %s'
553
554
555 rm -f conf$$ conf$$.exe conf$$.file
556 if test -d conf$$.dir; then
557 rm -f conf$$.dir/conf$$.file
558 else
559 rm -f conf$$.dir
560 mkdir conf$$.dir 2>/dev/null
561 fi
562 if (echo >conf$$.file) 2>/dev/null; then
563 if ln -s conf$$.file conf$$ 2>/dev/null; then
564 as_ln_s='ln -s'
565 # ... but there are two gotchas:
566 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568 # In both cases, we have to default to `cp -pR'.
569 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
570 as_ln_s='cp -pR'
571 elif ln conf$$.file conf$$ 2>/dev/null; then
572 as_ln_s=ln
573 else
574 as_ln_s='cp -pR'
575 fi
576 else
577 as_ln_s='cp -pR'
578 fi
579 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580 rmdir conf$$.dir 2>/dev/null
581
582 if mkdir -p . 2>/dev/null; then
583 as_mkdir_p='mkdir -p "$as_dir"'
584 else
585 test -d ./-p && rmdir ./-p
586 as_mkdir_p=false
587 fi
588
589 as_test_x='test -x'
590 as_executable_p=as_fn_executable_p
591
592 # Sed expression to map a string onto a valid CPP name.
593 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
594
595 # Sed expression to map a string onto a valid variable name.
596 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
597
598 SHELL=${CONFIG_SHELL-/bin/sh}
599
600
601 test -n "$DJDIR" || exec 7<&0 </dev/null
602 exec 6>&1
603
604 # Name of the host.
605 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606 # so uname gets run too.
607 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
608
609 #
610 # Initializations.
611 #
612 ac_default_prefix=/usr/local
613 ac_clean_files=
614 ac_config_libobj_dir=.
615 LIBOBJS=
616 cross_compiling=no
617 subdirs=
618 MFLAGS=
619 MAKEFLAGS=
620
621 # Identity of this package.
622 PACKAGE_NAME='speexdsp'
623 PACKAGE_TARNAME='speexdsp'
624 PACKAGE_VERSION='1.2.1'
625 PACKAGE_STRING='speexdsp 1.2.1'
626 PACKAGE_BUGREPORT='[email protected]'
627 PACKAGE_URL=''
628
629 ac_unique_file="libspeexdsp/preprocess.c"
630 # Factoring default headers for most tests.
631 ac_includes_default="\
632 #include <stddef.h>
633 #ifdef HAVE_STDIO_H
634 # include <stdio.h>
635 #endif
636 #ifdef HAVE_STDLIB_H
637 # include <stdlib.h>
638 #endif
639 #ifdef HAVE_STRING_H
640 # include <string.h>
641 #endif
642 #ifdef HAVE_INTTYPES_H
643 # include <inttypes.h>
644 #endif
645 #ifdef HAVE_STDINT_H
646 # include <stdint.h>
647 #endif
648 #ifdef HAVE_STRINGS_H
649 # include <strings.h>
650 #endif
651 #ifdef HAVE_SYS_TYPES_H
652 # include <sys/types.h>
653 #endif
654 #ifdef HAVE_SYS_STAT_H
655 # include <sys/stat.h>
656 #endif
657 #ifdef HAVE_UNISTD_H
658 # include <unistd.h>
659 #endif"
660
661 ac_header_c_list=
662 ac_subst_vars='am__EXEEXT_FALSE
663 am__EXEEXT_TRUE
664 LTLIBOBJS
665 LIBOBJS
666 INCLUDE_STDINT
667 USIZE32
668 SIZE32
669 USIZE16
670 SIZE16
671 FFT_PKGCONFIG
672 BUILD_SMALLFT_FALSE
673 BUILD_SMALLFT_TRUE
674 BUILD_KISS_FFT_FALSE
675 BUILD_KISS_FFT_TRUE
676 FFT_LIBS
677 FFT_CFLAGS
678 PKG_CONFIG_LIBDIR
679 PKG_CONFIG_PATH
680 PKG_CONFIG
681 BUILD_EXAMPLES_FALSE
682 BUILD_EXAMPLES_TRUE
683 LIBM
684 src
685 LT_SYS_LIBRARY_PATH
686 OTOOL64
687 OTOOL
688 LIPO
689 NMEDIT
690 DSYMUTIL
691 MANIFEST_TOOL
692 RANLIB
693 ac_ct_AR
694 AR
695 LN_S
696 NM
697 ac_ct_DUMPBIN
698 DUMPBIN
699 LD
700 FGREP
701 EGREP
702 GREP
703 SED
704 am__fastdepCC_FALSE
705 am__fastdepCC_TRUE
706 CCDEPMODE
707 am__nodep
708 AMDEPBACKSLASH
709 AMDEP_FALSE
710 AMDEP_TRUE
711 am__include
712 DEPDIR
713 OBJEXT
714 EXEEXT
715 ac_ct_CC
716 CPPFLAGS
717 LDFLAGS
718 CFLAGS
719 CC
720 LIBTOOL
721 OBJDUMP
722 DLLTOOL
723 AS
724 host_os
725 host_vendor
726 host_cpu
727 host
728 build_os
729 build_vendor
730 build_cpu
731 build
732 MAINT
733 MAINTAINER_MODE_FALSE
734 MAINTAINER_MODE_TRUE
735 CSCOPE
736 ETAGS
737 CTAGS
738 am__untar
739 am__tar
740 AMTAR
741 am__leading_dot
742 SET_MAKE
743 AWK
744 mkdir_p
745 MKDIR_P
746 INSTALL_STRIP_PROGRAM
747 STRIP
748 install_sh
749 MAKEINFO
750 AUTOHEADER
751 AUTOMAKE
752 AUTOCONF
753 ACLOCAL
754 VERSION
755 PACKAGE
756 CYGPATH_W
757 am__isrc
758 INSTALL_DATA
759 INSTALL_SCRIPT
760 INSTALL_PROGRAM
761 SPEEXDSP_LT_AGE
762 SPEEXDSP_LT_REVISION
763 SPEEXDSP_LT_CURRENT
764 AM_BACKSLASH
765 AM_DEFAULT_VERBOSITY
766 AM_DEFAULT_V
767 AM_V
768 target_alias
769 host_alias
770 build_alias
771 LIBS
772 ECHO_T
773 ECHO_N
774 ECHO_C
775 DEFS
776 mandir
777 localedir
778 libdir
779 psdir
780 pdfdir
781 dvidir
782 htmldir
783 infodir
784 docdir
785 oldincludedir
786 includedir
787 runstatedir
788 localstatedir
789 sharedstatedir
790 sysconfdir
791 datadir
792 datarootdir
793 libexecdir
794 sbindir
795 bindir
796 program_transform_name
797 prefix
798 exec_prefix
799 PACKAGE_URL
800 PACKAGE_BUGREPORT
801 PACKAGE_STRING
802 PACKAGE_VERSION
803 PACKAGE_TARNAME
804 PACKAGE_NAME
805 PATH_SEPARATOR
806 SHELL
807 am__quote'
808 ac_subst_files=''
809 ac_user_opts='
810 enable_option_checking
811 enable_silent_rules
812 enable_maintainer_mode
813 enable_shared
814 enable_static
815 with_pic
816 enable_fast_install
817 with_aix_soname
818 enable_dependency_tracking
819 with_gnu_ld
820 with_sysroot
821 enable_libtool_lock
822 enable_sse
823 enable_neon
824 enable_fixed_point
825 enable_float_api
826 enable_examples
827 enable_arm4_asm
828 enable_arm5e_asm
829 enable_blackfin_asm
830 enable_fixed_point_debug
831 enable_resample_full_sinc_table
832 enable_ti_c55x
833 with_fft
834 '
835 ac_precious_vars='build_alias
836 host_alias
837 target_alias
838 CC
839 CFLAGS
840 LDFLAGS
841 LIBS
842 CPPFLAGS
843 LT_SYS_LIBRARY_PATH
844 PKG_CONFIG
845 PKG_CONFIG_PATH
846 PKG_CONFIG_LIBDIR
847 FFT_CFLAGS
848 FFT_LIBS'
849
850
851 # Initialize some variables set by options.
852 ac_init_help=
853 ac_init_version=false
854 ac_unrecognized_opts=
855 ac_unrecognized_sep=
856 # The variables have the same names as the options, with
857 # dashes changed to underlines.
858 cache_file=/dev/null
859 exec_prefix=NONE
860 no_create=
861 no_recursion=
862 prefix=NONE
863 program_prefix=NONE
864 program_suffix=NONE
865 program_transform_name=s,x,x,
866 silent=
867 site=
868 srcdir=
869 verbose=
870 x_includes=NONE
871 x_libraries=NONE
872
873 # Installation directory options.
874 # These are left unexpanded so users can "make install exec_prefix=/foo"
875 # and all the variables that are supposed to be based on exec_prefix
876 # by default will actually change.
877 # Use braces instead of parens because sh, perl, etc. also accept them.
878 # (The list follows the same order as the GNU Coding Standards.)
879 bindir='${exec_prefix}/bin'
880 sbindir='${exec_prefix}/sbin'
881 libexecdir='${exec_prefix}/libexec'
882 datarootdir='${prefix}/share'
883 datadir='${datarootdir}'
884 sysconfdir='${prefix}/etc'
885 sharedstatedir='${prefix}/com'
886 localstatedir='${prefix}/var'
887 runstatedir='${localstatedir}/run'
888 includedir='${prefix}/include'
889 oldincludedir='/usr/include'
890 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
891 infodir='${datarootdir}/info'
892 htmldir='${docdir}'
893 dvidir='${docdir}'
894 pdfdir='${docdir}'
895 psdir='${docdir}'
896 libdir='${exec_prefix}/lib'
897 localedir='${datarootdir}/locale'
898 mandir='${datarootdir}/man'
899
900 ac_prev=
901 ac_dashdash=
902 for ac_option
903 do
904 # If the previous option needs an argument, assign it.
905 if test -n "$ac_prev"; then
906 eval $ac_prev=\$ac_option
907 ac_prev=
908 continue
909 fi
910
911 case $ac_option in
912 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
913 *=) ac_optarg= ;;
914 *) ac_optarg=yes ;;
915 esac
916
917 case $ac_dashdash$ac_option in
918 --)
919 ac_dashdash=yes ;;
920
921 -bindir | --bindir | --bindi | --bind | --bin | --bi)
922 ac_prev=bindir ;;
923 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
924 bindir=$ac_optarg ;;
925
926 -build | --build | --buil | --bui | --bu)
927 ac_prev=build_alias ;;
928 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
929 build_alias=$ac_optarg ;;
930
931 -cache-file | --cache-file | --cache-fil | --cache-fi \
932 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
933 ac_prev=cache_file ;;
934 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
935 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
936 cache_file=$ac_optarg ;;
937
938 --config-cache | -C)
939 cache_file=config.cache ;;
940
941 -datadir | --datadir | --datadi | --datad)
942 ac_prev=datadir ;;
943 -datadir=* | --datadir=* | --datadi=* | --datad=*)
944 datadir=$ac_optarg ;;
945
946 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
947 | --dataroo | --dataro | --datar)
948 ac_prev=datarootdir ;;
949 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
950 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
951 datarootdir=$ac_optarg ;;
952
953 -disable-* | --disable-*)
954 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
955 # Reject names that are not valid shell variable names.
956 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
957 as_fn_error $? "invalid feature name: \`$ac_useropt'"
958 ac_useropt_orig=$ac_useropt
959 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
960 case $ac_user_opts in
961 *"
962 "enable_$ac_useropt"
963 "*) ;;
964 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
965 ac_unrecognized_sep=', ';;
966 esac
967 eval enable_$ac_useropt=no ;;
968
969 -docdir | --docdir | --docdi | --doc | --do)
970 ac_prev=docdir ;;
971 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
972 docdir=$ac_optarg ;;
973
974 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
975 ac_prev=dvidir ;;
976 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
977 dvidir=$ac_optarg ;;
978
979 -enable-* | --enable-*)
980 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
981 # Reject names that are not valid shell variable names.
982 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
983 as_fn_error $? "invalid feature name: \`$ac_useropt'"
984 ac_useropt_orig=$ac_useropt
985 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
986 case $ac_user_opts in
987 *"
988 "enable_$ac_useropt"
989 "*) ;;
990 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
991 ac_unrecognized_sep=', ';;
992 esac
993 eval enable_$ac_useropt=\$ac_optarg ;;
994
995 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
996 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
997 | --exec | --exe | --ex)
998 ac_prev=exec_prefix ;;
999 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1000 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1001 | --exec=* | --exe=* | --ex=*)
1002 exec_prefix=$ac_optarg ;;
1003
1004 -gas | --gas | --ga | --g)
1005 # Obsolete; use --with-gas.
1006 with_gas=yes ;;
1007
1008 -help | --help | --hel | --he | -h)
1009 ac_init_help=long ;;
1010 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1011 ac_init_help=recursive ;;
1012 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1013 ac_init_help=short ;;
1014
1015 -host | --host | --hos | --ho)
1016 ac_prev=host_alias ;;
1017 -host=* | --host=* | --hos=* | --ho=*)
1018 host_alias=$ac_optarg ;;
1019
1020 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1021 ac_prev=htmldir ;;
1022 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1023 | --ht=*)
1024 htmldir=$ac_optarg ;;
1025
1026 -includedir | --includedir | --includedi | --included | --include \
1027 | --includ | --inclu | --incl | --inc)
1028 ac_prev=includedir ;;
1029 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1030 | --includ=* | --inclu=* | --incl=* | --inc=*)
1031 includedir=$ac_optarg ;;
1032
1033 -infodir | --infodir | --infodi | --infod | --info | --inf)
1034 ac_prev=infodir ;;
1035 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1036 infodir=$ac_optarg ;;
1037
1038 -libdir | --libdir | --libdi | --libd)
1039 ac_prev=libdir ;;
1040 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1041 libdir=$ac_optarg ;;
1042
1043 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1044 | --libexe | --libex | --libe)
1045 ac_prev=libexecdir ;;
1046 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1047 | --libexe=* | --libex=* | --libe=*)
1048 libexecdir=$ac_optarg ;;
1049
1050 -localedir | --localedir | --localedi | --localed | --locale)
1051 ac_prev=localedir ;;
1052 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1053 localedir=$ac_optarg ;;
1054
1055 -localstatedir | --localstatedir | --localstatedi | --localstated \
1056 | --localstate | --localstat | --localsta | --localst | --locals)
1057 ac_prev=localstatedir ;;
1058 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1059 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1060 localstatedir=$ac_optarg ;;
1061
1062 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1063 ac_prev=mandir ;;
1064 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1065 mandir=$ac_optarg ;;
1066
1067 -nfp | --nfp | --nf)
1068 # Obsolete; use --without-fp.
1069 with_fp=no ;;
1070
1071 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1072 | --no-cr | --no-c | -n)
1073 no_create=yes ;;
1074
1075 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1076 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1077 no_recursion=yes ;;
1078
1079 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1080 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1081 | --oldin | --oldi | --old | --ol | --o)
1082 ac_prev=oldincludedir ;;
1083 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1084 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1085 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1086 oldincludedir=$ac_optarg ;;
1087
1088 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1089 ac_prev=prefix ;;
1090 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1091 prefix=$ac_optarg ;;
1092
1093 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1094 | --program-pre | --program-pr | --program-p)
1095 ac_prev=program_prefix ;;
1096 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1097 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1098 program_prefix=$ac_optarg ;;
1099
1100 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1101 | --program-suf | --program-su | --program-s)
1102 ac_prev=program_suffix ;;
1103 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1104 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1105 program_suffix=$ac_optarg ;;
1106
1107 -program-transform-name | --program-transform-name \
1108 | --program-transform-nam | --program-transform-na \
1109 | --program-transform-n | --program-transform- \
1110 | --program-transform | --program-transfor \
1111 | --program-transfo | --program-transf \
1112 | --program-trans | --program-tran \
1113 | --progr-tra | --program-tr | --program-t)
1114 ac_prev=program_transform_name ;;
1115 -program-transform-name=* | --program-transform-name=* \
1116 | --program-transform-nam=* | --program-transform-na=* \
1117 | --program-transform-n=* | --program-transform-=* \
1118 | --program-transform=* | --program-transfor=* \
1119 | --program-transfo=* | --program-transf=* \
1120 | --program-trans=* | --program-tran=* \
1121 | --progr-tra=* | --program-tr=* | --program-t=*)
1122 program_transform_name=$ac_optarg ;;
1123
1124 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1125 ac_prev=pdfdir ;;
1126 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1127 pdfdir=$ac_optarg ;;
1128
1129 -psdir | --psdir | --psdi | --psd | --ps)
1130 ac_prev=psdir ;;
1131 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1132 psdir=$ac_optarg ;;
1133
1134 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1135 | -silent | --silent | --silen | --sile | --sil)
1136 silent=yes ;;
1137
1138 -runstatedir | --runstatedir | --runstatedi | --runstated \
1139 | --runstate | --runstat | --runsta | --runst | --runs \
1140 | --run | --ru | --r)
1141 ac_prev=runstatedir ;;
1142 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1143 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1144 | --run=* | --ru=* | --r=*)
1145 runstatedir=$ac_optarg ;;
1146
1147 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1148 ac_prev=sbindir ;;
1149 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1150 | --sbi=* | --sb=*)
1151 sbindir=$ac_optarg ;;
1152
1153 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1154 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1155 | --sharedst | --shareds | --shared | --share | --shar \
1156 | --sha | --sh)
1157 ac_prev=sharedstatedir ;;
1158 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1159 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1160 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1161 | --sha=* | --sh=*)
1162 sharedstatedir=$ac_optarg ;;
1163
1164 -site | --site | --sit)
1165 ac_prev=site ;;
1166 -site=* | --site=* | --sit=*)
1167 site=$ac_optarg ;;
1168
1169 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1170 ac_prev=srcdir ;;
1171 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1172 srcdir=$ac_optarg ;;
1173
1174 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1175 | --syscon | --sysco | --sysc | --sys | --sy)
1176 ac_prev=sysconfdir ;;
1177 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1178 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1179 sysconfdir=$ac_optarg ;;
1180
1181 -target | --target | --targe | --targ | --tar | --ta | --t)
1182 ac_prev=target_alias ;;
1183 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1184 target_alias=$ac_optarg ;;
1185
1186 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1187 verbose=yes ;;
1188
1189 -version | --version | --versio | --versi | --vers | -V)
1190 ac_init_version=: ;;
1191
1192 -with-* | --with-*)
1193 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1194 # Reject names that are not valid shell variable names.
1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1196 as_fn_error $? "invalid package name: \`$ac_useropt'"
1197 ac_useropt_orig=$ac_useropt
1198 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1199 case $ac_user_opts in
1200 *"
1201 "with_$ac_useropt"
1202 "*) ;;
1203 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1204 ac_unrecognized_sep=', ';;
1205 esac
1206 eval with_$ac_useropt=\$ac_optarg ;;
1207
1208 -without-* | --without-*)
1209 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1210 # Reject names that are not valid shell variable names.
1211 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1212 as_fn_error $? "invalid package name: \`$ac_useropt'"
1213 ac_useropt_orig=$ac_useropt
1214 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1215 case $ac_user_opts in
1216 *"
1217 "with_$ac_useropt"
1218 "*) ;;
1219 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1220 ac_unrecognized_sep=', ';;
1221 esac
1222 eval with_$ac_useropt=no ;;
1223
1224 --x)
1225 # Obsolete; use --with-x.
1226 with_x=yes ;;
1227
1228 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1229 | --x-incl | --x-inc | --x-in | --x-i)
1230 ac_prev=x_includes ;;
1231 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1232 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1233 x_includes=$ac_optarg ;;
1234
1235 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1236 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1237 ac_prev=x_libraries ;;
1238 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1239 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1240 x_libraries=$ac_optarg ;;
1241
1242 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1243 Try \`$0 --help' for more information"
1244 ;;
1245
1246 *=*)
1247 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1248 # Reject names that are not valid shell variable names.
1249 case $ac_envvar in #(
1250 '' | [0-9]* | *[!_$as_cr_alnum]* )
1251 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1252 esac
1253 eval $ac_envvar=\$ac_optarg
1254 export $ac_envvar ;;
1255
1256 *)
1257 # FIXME: should be removed in autoconf 3.0.
1258 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1259 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1260 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1261 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1262 ;;
1263
1264 esac
1265 done
1266
1267 if test -n "$ac_prev"; then
1268 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1269 as_fn_error $? "missing argument to $ac_option"
1270 fi
1271
1272 if test -n "$ac_unrecognized_opts"; then
1273 case $enable_option_checking in
1274 no) ;;
1275 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1276 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1277 esac
1278 fi
1279
1280 # Check all directory arguments for consistency.
1281 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1282 datadir sysconfdir sharedstatedir localstatedir includedir \
1283 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1284 libdir localedir mandir runstatedir
1285 do
1286 eval ac_val=\$$ac_var
1287 # Remove trailing slashes.
1288 case $ac_val in
1289 */ )
1290 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1291 eval $ac_var=\$ac_val;;
1292 esac
1293 # Be sure to have absolute directory names.
1294 case $ac_val in
1295 [\\/$]* | ?:[\\/]* ) continue;;
1296 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1297 esac
1298 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1299 done
1300
1301 # There might be people who depend on the old broken behavior: `$host'
1302 # used to hold the argument of --host etc.
1303 # FIXME: To remove some day.
1304 build=$build_alias
1305 host=$host_alias
1306 target=$target_alias
1307
1308 # FIXME: To remove some day.
1309 if test "x$host_alias" != x; then
1310 if test "x$build_alias" = x; then
1311 cross_compiling=maybe
1312 elif test "x$build_alias" != "x$host_alias"; then
1313 cross_compiling=yes
1314 fi
1315 fi
1316
1317 ac_tool_prefix=
1318 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1319
1320 test "$silent" = yes && exec 6>/dev/null
1321
1322
1323 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1324 ac_ls_di=`ls -di .` &&
1325 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1326 as_fn_error $? "working directory cannot be determined"
1327 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1328 as_fn_error $? "pwd does not report name of working directory"
1329
1330
1331 # Find the source files, if location was not specified.
1332 if test -z "$srcdir"; then
1333 ac_srcdir_defaulted=yes
1334 # Try the directory containing this script, then the parent directory.
1335 ac_confdir=`$as_dirname -- "$as_myself" ||
1336 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1337 X"$as_myself" : 'X\(//\)[^/]' \| \
1338 X"$as_myself" : 'X\(//\)$' \| \
1339 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1340 printf "%s\n" X"$as_myself" |
1341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1342 s//\1/
1343 q
1344 }
1345 /^X\(\/\/\)[^/].*/{
1346 s//\1/
1347 q
1348 }
1349 /^X\(\/\/\)$/{
1350 s//\1/
1351 q
1352 }
1353 /^X\(\/\).*/{
1354 s//\1/
1355 q
1356 }
1357 s/.*/./; q'`
1358 srcdir=$ac_confdir
1359 if test ! -r "$srcdir/$ac_unique_file"; then
1360 srcdir=..
1361 fi
1362 else
1363 ac_srcdir_defaulted=no
1364 fi
1365 if test ! -r "$srcdir/$ac_unique_file"; then
1366 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1367 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1368 fi
1369 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1370 ac_abs_confdir=`(
1371 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1372 pwd)`
1373 # When building in place, set srcdir=.
1374 if test "$ac_abs_confdir" = "$ac_pwd"; then
1375 srcdir=.
1376 fi
1377 # Remove unnecessary trailing slashes from srcdir.
1378 # Double slashes in file names in object file debugging info
1379 # mess up M-x gdb in Emacs.
1380 case $srcdir in
1381 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1382 esac
1383 for ac_var in $ac_precious_vars; do
1384 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_env_${ac_var}_value=\$${ac_var}
1386 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1387 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1388 done
1389
1390 #
1391 # Report the --help message.
1392 #
1393 if test "$ac_init_help" = "long"; then
1394 # Omit some internal or obsolete options to make the list less imposing.
1395 # This message is too long to be a string in the A/UX 3.1 sh.
1396 cat <<_ACEOF
1397 \`configure' configures speexdsp 1.2.1 to adapt to many kinds of systems.
1398
1399 Usage: $0 [OPTION]... [VAR=VALUE]...
1400
1401 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1402 VAR=VALUE. See below for descriptions of some of the useful variables.
1403
1404 Defaults for the options are specified in brackets.
1405
1406 Configuration:
1407 -h, --help display this help and exit
1408 --help=short display options specific to this package
1409 --help=recursive display the short help of all the included packages
1410 -V, --version display version information and exit
1411 -q, --quiet, --silent do not print \`checking ...' messages
1412 --cache-file=FILE cache test results in FILE [disabled]
1413 -C, --config-cache alias for \`--cache-file=config.cache'
1414 -n, --no-create do not create output files
1415 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1416
1417 Installation directories:
1418 --prefix=PREFIX install architecture-independent files in PREFIX
1419 [$ac_default_prefix]
1420 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1421 [PREFIX]
1422
1423 By default, \`make install' will install all the files in
1424 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1425 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1426 for instance \`--prefix=\$HOME'.
1427
1428 For better control, use the options below.
1429
1430 Fine tuning of the installation directories:
1431 --bindir=DIR user executables [EPREFIX/bin]
1432 --sbindir=DIR system admin executables [EPREFIX/sbin]
1433 --libexecdir=DIR program executables [EPREFIX/libexec]
1434 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1435 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1436 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1437 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1438 --libdir=DIR object code libraries [EPREFIX/lib]
1439 --includedir=DIR C header files [PREFIX/include]
1440 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1441 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1442 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1443 --infodir=DIR info documentation [DATAROOTDIR/info]
1444 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1445 --mandir=DIR man documentation [DATAROOTDIR/man]
1446 --docdir=DIR documentation root [DATAROOTDIR/doc/speexdsp]
1447 --htmldir=DIR html documentation [DOCDIR]
1448 --dvidir=DIR dvi documentation [DOCDIR]
1449 --pdfdir=DIR pdf documentation [DOCDIR]
1450 --psdir=DIR ps documentation [DOCDIR]
1451 _ACEOF
1452
1453 cat <<\_ACEOF
1454
1455 Program names:
1456 --program-prefix=PREFIX prepend PREFIX to installed program names
1457 --program-suffix=SUFFIX append SUFFIX to installed program names
1458 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1459
1460 System types:
1461 --build=BUILD configure for building on BUILD [guessed]
1462 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1463 _ACEOF
1464 fi
1465
1466 if test -n "$ac_init_help"; then
1467 case $ac_init_help in
1468 short | recursive ) echo "Configuration of speexdsp 1.2.1:";;
1469 esac
1470 cat <<\_ACEOF
1471
1472 Optional Features:
1473 --disable-option-checking ignore unrecognized --enable/--with options
1474 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1475 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1476 --enable-silent-rules less verbose build output (undo: "make V=1")
1477 --disable-silent-rules verbose build output (undo: "make V=0")
1478 --disable-maintainer-mode
1479 disable make rules and dependencies not useful (and
1480 sometimes confusing) to the casual installer
1481 --enable-shared[=PKGS] build shared libraries [default=yes]
1482 --enable-static[=PKGS] build static libraries [default=yes]
1483 --enable-fast-install[=PKGS]
1484 optimize for fast installation [default=yes]
1485 --enable-dependency-tracking
1486 do not reject slow dependency extractors
1487 --disable-dependency-tracking
1488 speeds up one-time build
1489 --disable-libtool-lock avoid locking (might break parallel builds)
1490 --enable-sse Enable SSE support
1491 --enable-neon Enable NEON support
1492 --enable-fixed-point Compile as fixed-point
1493 --disable-float-api Disable the floating-point API
1494 --disable-examples Do not build example programs, only the library
1495 --enable-arm4-asm Make use of ARM4 assembly optimizations
1496 --enable-arm5e-asm Make use of ARM5E assembly optimizations
1497 --enable-blackfin-asm Make use of Blackfin assembly optimizations
1498 --enable-fixed-point-debug Debug fixed-point implementation
1499 --enable-resample-full-sinc-table Resample full SINC table (no interpolation)
1500 --enable-ti-c55x Enable support for TI C55X DSP
1501
1502 Optional Packages:
1503 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1504 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1505 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1506 both]
1507 --with-aix-soname=aix|svr4|both
1508 shared library versioning (aka "SONAME") variant to
1509 provide on AIX, [default=aix].
1510 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1511 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1512 compiler's sysroot if not specified).
1513 --with-fft=choice use an alternate FFT implementation. The available
1514 choices are kiss (default fixed point), smallft
1515 (default floating point), gpl-fftw3 and
1516 proprietary-intel-mkl
1517
1518 Some influential environment variables:
1519 CC C compiler command
1520 CFLAGS C compiler flags
1521 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1522 nonstandard directory <lib dir>
1523 LIBS libraries to pass to the linker, e.g. -l<library>
1524 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1525 you have headers in a nonstandard directory <include dir>
1526 LT_SYS_LIBRARY_PATH
1527 User-defined run-time library search path.
1528 PKG_CONFIG path to pkg-config utility
1529 PKG_CONFIG_PATH
1530 directories to add to pkg-config's search path
1531 PKG_CONFIG_LIBDIR
1532 path overriding pkg-config's built-in search path
1533 FFT_CFLAGS C compiler flags for FFT, overriding pkg-config
1534 FFT_LIBS linker flags for FFT, overriding pkg-config
1535
1536 Use these variables to override the choices made by `configure' or to help
1537 it to find libraries and programs with nonstandard names/locations.
1538
1539 Report bugs to <[email protected]>.
1540 _ACEOF
1541 ac_status=$?
1542 fi
1543
1544 if test "$ac_init_help" = "recursive"; then
1545 # If there are subdirs, report their specific --help.
1546 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1547 test -d "$ac_dir" ||
1548 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1549 continue
1550 ac_builddir=.
1551
1552 case "$ac_dir" in
1553 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1554 *)
1555 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1556 # A ".." for each directory in $ac_dir_suffix.
1557 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1558 case $ac_top_builddir_sub in
1559 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1560 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1561 esac ;;
1562 esac
1563 ac_abs_top_builddir=$ac_pwd
1564 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1565 # for backward compatibility:
1566 ac_top_builddir=$ac_top_build_prefix
1567
1568 case $srcdir in
1569 .) # We are building in place.
1570 ac_srcdir=.
1571 ac_top_srcdir=$ac_top_builddir_sub
1572 ac_abs_top_srcdir=$ac_pwd ;;
1573 [\\/]* | ?:[\\/]* ) # Absolute name.
1574 ac_srcdir=$srcdir$ac_dir_suffix;
1575 ac_top_srcdir=$srcdir
1576 ac_abs_top_srcdir=$srcdir ;;
1577 *) # Relative name.
1578 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1579 ac_top_srcdir=$ac_top_build_prefix$srcdir
1580 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1581 esac
1582 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1583
1584 cd "$ac_dir" || { ac_status=$?; continue; }
1585 # Check for configure.gnu first; this name is used for a wrapper for
1586 # Metaconfig's "Configure" on case-insensitive file systems.
1587 if test -f "$ac_srcdir/configure.gnu"; then
1588 echo &&
1589 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1590 elif test -f "$ac_srcdir/configure"; then
1591 echo &&
1592 $SHELL "$ac_srcdir/configure" --help=recursive
1593 else
1594 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1595 fi || ac_status=$?
1596 cd "$ac_pwd" || { ac_status=$?; break; }
1597 done
1598 fi
1599
1600 test -n "$ac_init_help" && exit $ac_status
1601 if $ac_init_version; then
1602 cat <<\_ACEOF
1603 speexdsp configure 1.2.1
1604 generated by GNU Autoconf 2.71
1605
1606 Copyright (C) 2021 Free Software Foundation, Inc.
1607 This configure script is free software; the Free Software Foundation
1608 gives unlimited permission to copy, distribute and modify it.
1609 _ACEOF
1610 exit
1611 fi
1612
1613 ## ------------------------ ##
1614 ## Autoconf initialization. ##
1615 ## ------------------------ ##
1616
1617 # ac_fn_c_try_compile LINENO
1618 # --------------------------
1619 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1620 ac_fn_c_try_compile ()
1621 {
1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623 rm -f conftest.$ac_objext conftest.beam
1624 if { { ac_try="$ac_compile"
1625 case "(($ac_try" in
1626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1627 *) ac_try_echo=$ac_try;;
1628 esac
1629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1630 printf "%s\n" "$ac_try_echo"; } >&5
1631 (eval "$ac_compile") 2>conftest.err
1632 ac_status=$?
1633 if test -s conftest.err; then
1634 grep -v '^ *+' conftest.err >conftest.er1
1635 cat conftest.er1 >&5
1636 mv -f conftest.er1 conftest.err
1637 fi
1638 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1639 test $ac_status = 0; } && {
1640 test -z "$ac_c_werror_flag" ||
1641 test ! -s conftest.err
1642 } && test -s conftest.$ac_objext
1643 then :
1644 ac_retval=0
1645 else $as_nop
1646 printf "%s\n" "$as_me: failed program was:" >&5
1647 sed 's/^/| /' conftest.$ac_ext >&5
1648
1649 ac_retval=1
1650 fi
1651 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1652 as_fn_set_status $ac_retval
1653
1654 } # ac_fn_c_try_compile
1655
1656 # ac_fn_c_try_link LINENO
1657 # -----------------------
1658 # Try to link conftest.$ac_ext, and return whether this succeeded.
1659 ac_fn_c_try_link ()
1660 {
1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1663 if { { ac_try="$ac_link"
1664 case "(($ac_try" in
1665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666 *) ac_try_echo=$ac_try;;
1667 esac
1668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669 printf "%s\n" "$ac_try_echo"; } >&5
1670 (eval "$ac_link") 2>conftest.err
1671 ac_status=$?
1672 if test -s conftest.err; then
1673 grep -v '^ *+' conftest.err >conftest.er1
1674 cat conftest.er1 >&5
1675 mv -f conftest.er1 conftest.err
1676 fi
1677 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678 test $ac_status = 0; } && {
1679 test -z "$ac_c_werror_flag" ||
1680 test ! -s conftest.err
1681 } && test -s conftest$ac_exeext && {
1682 test "$cross_compiling" = yes ||
1683 test -x conftest$ac_exeext
1684 }
1685 then :
1686 ac_retval=0
1687 else $as_nop
1688 printf "%s\n" "$as_me: failed program was:" >&5
1689 sed 's/^/| /' conftest.$ac_ext >&5
1690
1691 ac_retval=1
1692 fi
1693 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1694 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1695 # interfere with the next link command; also delete a directory that is
1696 # left behind by Apple's compiler. We do this before executing the actions.
1697 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1699 as_fn_set_status $ac_retval
1700
1701 } # ac_fn_c_try_link
1702
1703 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1704 # -------------------------------------------------------
1705 # Tests whether HEADER exists and can be compiled using the include files in
1706 # INCLUDES, setting the cache variable VAR accordingly.
1707 ac_fn_c_check_header_compile ()
1708 {
1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1711 printf %s "checking for $2... " >&6; }
1712 if eval test \${$3+y}
1713 then :
1714 printf %s "(cached) " >&6
1715 else $as_nop
1716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1717 /* end confdefs.h. */
1718 $4
1719 #include <$2>
1720 _ACEOF
1721 if ac_fn_c_try_compile "$LINENO"
1722 then :
1723 eval "$3=yes"
1724 else $as_nop
1725 eval "$3=no"
1726 fi
1727 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1728 fi
1729 eval ac_res=\$$3
1730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1731 printf "%s\n" "$ac_res" >&6; }
1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733
1734 } # ac_fn_c_check_header_compile
1735
1736 # ac_fn_c_check_func LINENO FUNC VAR
1737 # ----------------------------------
1738 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1739 ac_fn_c_check_func ()
1740 {
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1743 printf %s "checking for $2... " >&6; }
1744 if eval test \${$3+y}
1745 then :
1746 printf %s "(cached) " >&6
1747 else $as_nop
1748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749 /* end confdefs.h. */
1750 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1752 #define $2 innocuous_$2
1753
1754 /* System header to define __stub macros and hopefully few prototypes,
1755 which can conflict with char $2 (); below. */
1756
1757 #include <limits.h>
1758 #undef $2
1759
1760 /* Override any GCC internal prototype to avoid an error.
1761 Use char because int might match the return type of a GCC
1762 builtin and then its argument prototype would still apply. */
1763 #ifdef __cplusplus
1764 extern "C"
1765 #endif
1766 char $2 ();
1767 /* The GNU C library defines this for functions which it implements
1768 to always fail with ENOSYS. Some functions are actually named
1769 something starting with __ and the normal name is an alias. */
1770 #if defined __stub_$2 || defined __stub___$2
1771 choke me
1772 #endif
1773
1774 int
1775 main (void)
1776 {
1777 return $2 ();
1778 ;
1779 return 0;
1780 }
1781 _ACEOF
1782 if ac_fn_c_try_link "$LINENO"
1783 then :
1784 eval "$3=yes"
1785 else $as_nop
1786 eval "$3=no"
1787 fi
1788 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1789 conftest$ac_exeext conftest.$ac_ext
1790 fi
1791 eval ac_res=\$$3
1792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1793 printf "%s\n" "$ac_res" >&6; }
1794 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795
1796 } # ac_fn_c_check_func
1797
1798 # ac_fn_c_try_run LINENO
1799 # ----------------------
1800 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1801 # executables *can* be run.
1802 ac_fn_c_try_run ()
1803 {
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 if { { ac_try="$ac_link"
1806 case "(($ac_try" in
1807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808 *) ac_try_echo=$ac_try;;
1809 esac
1810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811 printf "%s\n" "$ac_try_echo"; } >&5
1812 (eval "$ac_link") 2>&5
1813 ac_status=$?
1814 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1816 { { case "(($ac_try" in
1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818 *) ac_try_echo=$ac_try;;
1819 esac
1820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 printf "%s\n" "$ac_try_echo"; } >&5
1822 (eval "$ac_try") 2>&5
1823 ac_status=$?
1824 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825 test $ac_status = 0; }; }
1826 then :
1827 ac_retval=0
1828 else $as_nop
1829 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1830 printf "%s\n" "$as_me: failed program was:" >&5
1831 sed 's/^/| /' conftest.$ac_ext >&5
1832
1833 ac_retval=$ac_status
1834 fi
1835 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1837 as_fn_set_status $ac_retval
1838
1839 } # ac_fn_c_try_run
1840
1841 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1842 # --------------------------------------------
1843 # Tries to find the compile-time value of EXPR in a program that includes
1844 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1845 # computed
1846 ac_fn_c_compute_int ()
1847 {
1848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1849 if test "$cross_compiling" = yes; then
1850 # Depending upon the size, compute the lo and hi bounds.
1851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852 /* end confdefs.h. */
1853 $4
1854 int
1855 main (void)
1856 {
1857 static int test_array [1 - 2 * !(($2) >= 0)];
1858 test_array [0] = 0;
1859 return test_array [0];
1860
1861 ;
1862 return 0;
1863 }
1864 _ACEOF
1865 if ac_fn_c_try_compile "$LINENO"
1866 then :
1867 ac_lo=0 ac_mid=0
1868 while :; do
1869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1870 /* end confdefs.h. */
1871 $4
1872 int
1873 main (void)
1874 {
1875 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1876 test_array [0] = 0;
1877 return test_array [0];
1878
1879 ;
1880 return 0;
1881 }
1882 _ACEOF
1883 if ac_fn_c_try_compile "$LINENO"
1884 then :
1885 ac_hi=$ac_mid; break
1886 else $as_nop
1887 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1888 if test $ac_lo -le $ac_mid; then
1889 ac_lo= ac_hi=
1890 break
1891 fi
1892 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1893 fi
1894 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1895 done
1896 else $as_nop
1897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1898 /* end confdefs.h. */
1899 $4
1900 int
1901 main (void)
1902 {
1903 static int test_array [1 - 2 * !(($2) < 0)];
1904 test_array [0] = 0;
1905 return test_array [0];
1906
1907 ;
1908 return 0;
1909 }
1910 _ACEOF
1911 if ac_fn_c_try_compile "$LINENO"
1912 then :
1913 ac_hi=-1 ac_mid=-1
1914 while :; do
1915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1916 /* end confdefs.h. */
1917 $4
1918 int
1919 main (void)
1920 {
1921 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1922 test_array [0] = 0;
1923 return test_array [0];
1924
1925 ;
1926 return 0;
1927 }
1928 _ACEOF
1929 if ac_fn_c_try_compile "$LINENO"
1930 then :
1931 ac_lo=$ac_mid; break
1932 else $as_nop
1933 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1934 if test $ac_mid -le $ac_hi; then
1935 ac_lo= ac_hi=
1936 break
1937 fi
1938 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1939 fi
1940 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1941 done
1942 else $as_nop
1943 ac_lo= ac_hi=
1944 fi
1945 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1946 fi
1947 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1948 # Binary search between lo and hi bounds.
1949 while test "x$ac_lo" != "x$ac_hi"; do
1950 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h. */
1953 $4
1954 int
1955 main (void)
1956 {
1957 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1958 test_array [0] = 0;
1959 return test_array [0];
1960
1961 ;
1962 return 0;
1963 }
1964 _ACEOF
1965 if ac_fn_c_try_compile "$LINENO"
1966 then :
1967 ac_hi=$ac_mid
1968 else $as_nop
1969 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1970 fi
1971 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1972 done
1973 case $ac_lo in #((
1974 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1975 '') ac_retval=1 ;;
1976 esac
1977 else
1978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979 /* end confdefs.h. */
1980 $4
1981 static long int longval (void) { return $2; }
1982 static unsigned long int ulongval (void) { return $2; }
1983 #include <stdio.h>
1984 #include <stdlib.h>
1985 int
1986 main (void)
1987 {
1988
1989 FILE *f = fopen ("conftest.val", "w");
1990 if (! f)
1991 return 1;
1992 if (($2) < 0)
1993 {
1994 long int i = longval ();
1995 if (i != ($2))
1996 return 1;
1997 fprintf (f, "%ld", i);
1998 }
1999 else
2000 {
2001 unsigned long int i = ulongval ();
2002 if (i != ($2))
2003 return 1;
2004 fprintf (f, "%lu", i);
2005 }
2006 /* Do not output a trailing newline, as this causes \r\n confusion
2007 on some platforms. */
2008 return ferror (f) || fclose (f) != 0;
2009
2010 ;
2011 return 0;
2012 }
2013 _ACEOF
2014 if ac_fn_c_try_run "$LINENO"
2015 then :
2016 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2017 else $as_nop
2018 ac_retval=1
2019 fi
2020 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2021 conftest.$ac_objext conftest.beam conftest.$ac_ext
2022 rm -f conftest.val
2023
2024 fi
2025 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2026 as_fn_set_status $ac_retval
2027
2028 } # ac_fn_c_compute_int
2029 ac_configure_args_raw=
2030 for ac_arg
2031 do
2032 case $ac_arg in
2033 *\'*)
2034 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2035 esac
2036 as_fn_append ac_configure_args_raw " '$ac_arg'"
2037 done
2038
2039 case $ac_configure_args_raw in
2040 *$as_nl*)
2041 ac_safe_unquote= ;;
2042 *)
2043 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2044 ac_unsafe_a="$ac_unsafe_z#~"
2045 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2046 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2047 esac
2048
2049 cat >config.log <<_ACEOF
2050 This file contains any messages produced by compilers while
2051 running configure, to aid debugging if configure makes a mistake.
2052
2053 It was created by speexdsp $as_me 1.2.1, which was
2054 generated by GNU Autoconf 2.71. Invocation command line was
2055
2056 $ $0$ac_configure_args_raw
2057
2058 _ACEOF
2059 exec 5>>config.log
2060 {
2061 cat <<_ASUNAME
2062 ## --------- ##
2063 ## Platform. ##
2064 ## --------- ##
2065
2066 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2067 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2068 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2069 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2070 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2071
2072 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2073 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2074
2075 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2076 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2077 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2078 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2079 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2080 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2081 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2082
2083 _ASUNAME
2084
2085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2086 for as_dir in $PATH
2087 do
2088 IFS=$as_save_IFS
2089 case $as_dir in #(((
2090 '') as_dir=./ ;;
2091 */) ;;
2092 *) as_dir=$as_dir/ ;;
2093 esac
2094 printf "%s\n" "PATH: $as_dir"
2095 done
2096 IFS=$as_save_IFS
2097
2098 } >&5
2099
2100 cat >&5 <<_ACEOF
2101
2102
2103 ## ----------- ##
2104 ## Core tests. ##
2105 ## ----------- ##
2106
2107 _ACEOF
2108
2109
2110 # Keep a trace of the command line.
2111 # Strip out --no-create and --no-recursion so they do not pile up.
2112 # Strip out --silent because we don't want to record it for future runs.
2113 # Also quote any args containing shell meta-characters.
2114 # Make two passes to allow for proper duplicate-argument suppression.
2115 ac_configure_args=
2116 ac_configure_args0=
2117 ac_configure_args1=
2118 ac_must_keep_next=false
2119 for ac_pass in 1 2
2120 do
2121 for ac_arg
2122 do
2123 case $ac_arg in
2124 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2125 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2126 | -silent | --silent | --silen | --sile | --sil)
2127 continue ;;
2128 *\'*)
2129 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2130 esac
2131 case $ac_pass in
2132 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2133 2)
2134 as_fn_append ac_configure_args1 " '$ac_arg'"
2135 if test $ac_must_keep_next = true; then
2136 ac_must_keep_next=false # Got value, back to normal.
2137 else
2138 case $ac_arg in
2139 *=* | --config-cache | -C | -disable-* | --disable-* \
2140 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2141 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2142 | -with-* | --with-* | -without-* | --without-* | --x)
2143 case "$ac_configure_args0 " in
2144 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2145 esac
2146 ;;
2147 -* ) ac_must_keep_next=true ;;
2148 esac
2149 fi
2150 as_fn_append ac_configure_args " '$ac_arg'"
2151 ;;
2152 esac
2153 done
2154 done
2155 { ac_configure_args0=; unset ac_configure_args0;}
2156 { ac_configure_args1=; unset ac_configure_args1;}
2157
2158 # When interrupted or exit'd, cleanup temporary files, and complete
2159 # config.log. We remove comments because anyway the quotes in there
2160 # would cause problems or look ugly.
2161 # WARNING: Use '\'' to represent an apostrophe within the trap.
2162 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2163 trap 'exit_status=$?
2164 # Sanitize IFS.
2165 IFS=" "" $as_nl"
2166 # Save into config.log some information that might help in debugging.
2167 {
2168 echo
2169
2170 printf "%s\n" "## ---------------- ##
2171 ## Cache variables. ##
2172 ## ---------------- ##"
2173 echo
2174 # The following way of writing the cache mishandles newlines in values,
2175 (
2176 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2177 eval ac_val=\$$ac_var
2178 case $ac_val in #(
2179 *${as_nl}*)
2180 case $ac_var in #(
2181 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2182 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2183 esac
2184 case $ac_var in #(
2185 _ | IFS | as_nl) ;; #(
2186 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2187 *) { eval $ac_var=; unset $ac_var;} ;;
2188 esac ;;
2189 esac
2190 done
2191 (set) 2>&1 |
2192 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2193 *${as_nl}ac_space=\ *)
2194 sed -n \
2195 "s/'\''/'\''\\\\'\'''\''/g;
2196 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2197 ;; #(
2198 *)
2199 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2200 ;;
2201 esac |
2202 sort
2203 )
2204 echo
2205
2206 printf "%s\n" "## ----------------- ##
2207 ## Output variables. ##
2208 ## ----------------- ##"
2209 echo
2210 for ac_var in $ac_subst_vars
2211 do
2212 eval ac_val=\$$ac_var
2213 case $ac_val in
2214 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2215 esac
2216 printf "%s\n" "$ac_var='\''$ac_val'\''"
2217 done | sort
2218 echo
2219
2220 if test -n "$ac_subst_files"; then
2221 printf "%s\n" "## ------------------- ##
2222 ## File substitutions. ##
2223 ## ------------------- ##"
2224 echo
2225 for ac_var in $ac_subst_files
2226 do
2227 eval ac_val=\$$ac_var
2228 case $ac_val in
2229 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2230 esac
2231 printf "%s\n" "$ac_var='\''$ac_val'\''"
2232 done | sort
2233 echo
2234 fi
2235
2236 if test -s confdefs.h; then
2237 printf "%s\n" "## ----------- ##
2238 ## confdefs.h. ##
2239 ## ----------- ##"
2240 echo
2241 cat confdefs.h
2242 echo
2243 fi
2244 test "$ac_signal" != 0 &&
2245 printf "%s\n" "$as_me: caught signal $ac_signal"
2246 printf "%s\n" "$as_me: exit $exit_status"
2247 } >&5
2248 rm -f core *.core core.conftest.* &&
2249 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2250 exit $exit_status
2251 ' 0
2252 for ac_signal in 1 2 13 15; do
2253 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2254 done
2255 ac_signal=0
2256
2257 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2258 rm -f -r conftest* confdefs.h
2259
2260 printf "%s\n" "/* confdefs.h */" > confdefs.h
2261
2262 # Predefined preprocessor variables.
2263
2264 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2265
2266 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2267
2268 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2269
2270 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2271
2272 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2273
2274 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2275
2276
2277 # Let the site file select an alternate cache file if it wants to.
2278 # Prefer an explicitly selected file to automatically selected ones.
2279 if test -n "$CONFIG_SITE"; then
2280 ac_site_files="$CONFIG_SITE"
2281 elif test "x$prefix" != xNONE; then
2282 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2283 else
2284 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2285 fi
2286
2287 for ac_site_file in $ac_site_files
2288 do
2289 case $ac_site_file in #(
2290 */*) :
2291 ;; #(
2292 *) :
2293 ac_site_file=./$ac_site_file ;;
2294 esac
2295 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2297 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2298 sed 's/^/| /' "$ac_site_file" >&5
2299 . "$ac_site_file" \
2300 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2301 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2302 as_fn_error $? "failed to load site script $ac_site_file
2303 See \`config.log' for more details" "$LINENO" 5; }
2304 fi
2305 done
2306
2307 if test -r "$cache_file"; then
2308 # Some versions of bash will fail to source /dev/null (special files
2309 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2310 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2312 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2313 case $cache_file in
2314 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2315 *) . "./$cache_file";;
2316 esac
2317 fi
2318 else
2319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2320 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2321 >$cache_file
2322 fi
2323
2324 # Test code for whether the C compiler supports C89 (global declarations)
2325 ac_c_conftest_c89_globals='
2326 /* Does the compiler advertise C89 conformance?
2327 Do not test the value of __STDC__, because some compilers set it to 0
2328 while being otherwise adequately conformant. */
2329 #if !defined __STDC__
2330 # error "Compiler does not advertise C89 conformance"
2331 #endif
2332
2333 #include <stddef.h>
2334 #include <stdarg.h>
2335 struct stat;
2336 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2337 struct buf { int x; };
2338 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2339 static char *e (p, i)
2340 char **p;
2341 int i;
2342 {
2343 return p[i];
2344 }
2345 static char *f (char * (*g) (char **, int), char **p, ...)
2346 {
2347 char *s;
2348 va_list v;
2349 va_start (v,p);
2350 s = g (p, va_arg (v,int));
2351 va_end (v);
2352 return s;
2353 }
2354
2355 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2356 function prototypes and stuff, but not \xHH hex character constants.
2357 These do not provoke an error unfortunately, instead are silently treated
2358 as an "x". The following induces an error, until -std is added to get
2359 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2360 array size at least. It is necessary to write \x00 == 0 to get something
2361 that is true only with -std. */
2362 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2363
2364 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2365 inside strings and character constants. */
2366 #define FOO(x) '\''x'\''
2367 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2368
2369 int test (int i, double x);
2370 struct s1 {int (*f) (int a);};
2371 struct s2 {int (*f) (double a);};
2372 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2373 int, int);'
2374
2375 # Test code for whether the C compiler supports C89 (body of main).
2376 ac_c_conftest_c89_main='
2377 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2378 '
2379
2380 # Test code for whether the C compiler supports C99 (global declarations)
2381 ac_c_conftest_c99_globals='
2382 // Does the compiler advertise C99 conformance?
2383 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2384 # error "Compiler does not advertise C99 conformance"
2385 #endif
2386
2387 #include <stdbool.h>
2388 extern int puts (const char *);
2389 extern int printf (const char *, ...);
2390 extern int dprintf (int, const char *, ...);
2391 extern void *malloc (size_t);
2392
2393 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2394 // dprintf is used instead of fprintf to avoid needing to declare
2395 // FILE and stderr.
2396 #define debug(...) dprintf (2, __VA_ARGS__)
2397 #define showlist(...) puts (#__VA_ARGS__)
2398 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2399 static void
2400 test_varargs_macros (void)
2401 {
2402 int x = 1234;
2403 int y = 5678;
2404 debug ("Flag");
2405 debug ("X = %d\n", x);
2406 showlist (The first, second, and third items.);
2407 report (x>y, "x is %d but y is %d", x, y);
2408 }
2409
2410 // Check long long types.
2411 #define BIG64 18446744073709551615ull
2412 #define BIG32 4294967295ul
2413 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2414 #if !BIG_OK
2415 #error "your preprocessor is broken"
2416 #endif
2417 #if BIG_OK
2418 #else
2419 #error "your preprocessor is broken"
2420 #endif
2421 static long long int bignum = -9223372036854775807LL;
2422 static unsigned long long int ubignum = BIG64;
2423
2424 struct incomplete_array
2425 {
2426 int datasize;
2427 double data[];
2428 };
2429
2430 struct named_init {
2431 int number;
2432 const wchar_t *name;
2433 double average;
2434 };
2435
2436 typedef const char *ccp;
2437
2438 static inline int
2439 test_restrict (ccp restrict text)
2440 {
2441 // See if C++-style comments work.
2442 // Iterate through items via the restricted pointer.
2443 // Also check for declarations in for loops.
2444 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2445 continue;
2446 return 0;
2447 }
2448
2449 // Check varargs and va_copy.
2450 static bool
2451 test_varargs (const char *format, ...)
2452 {
2453 va_list args;
2454 va_start (args, format);
2455 va_list args_copy;
2456 va_copy (args_copy, args);
2457
2458 const char *str = "";
2459 int number = 0;
2460 float fnumber = 0;
2461
2462 while (*format)
2463 {
2464 switch (*format++)
2465 {
2466 case '\''s'\'': // string
2467 str = va_arg (args_copy, const char *);
2468 break;
2469 case '\''d'\'': // int
2470 number = va_arg (args_copy, int);
2471 break;
2472 case '\''f'\'': // float
2473 fnumber = va_arg (args_copy, double);
2474 break;
2475 default:
2476 break;
2477 }
2478 }
2479 va_end (args_copy);
2480 va_end (args);
2481
2482 return *str && number && fnumber;
2483 }
2484 '
2485
2486 # Test code for whether the C compiler supports C99 (body of main).
2487 ac_c_conftest_c99_main='
2488 // Check bool.
2489 _Bool success = false;
2490 success |= (argc != 0);
2491
2492 // Check restrict.
2493 if (test_restrict ("String literal") == 0)
2494 success = true;
2495 char *restrict newvar = "Another string";
2496
2497 // Check varargs.
2498 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2499 test_varargs_macros ();
2500
2501 // Check flexible array members.
2502 struct incomplete_array *ia =
2503 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2504 ia->datasize = 10;
2505 for (int i = 0; i < ia->datasize; ++i)
2506 ia->data[i] = i * 1.234;
2507
2508 // Check named initializers.
2509 struct named_init ni = {
2510 .number = 34,
2511 .name = L"Test wide string",
2512 .average = 543.34343,
2513 };
2514
2515 ni.number = 58;
2516
2517 int dynamic_array[ni.number];
2518 dynamic_array[0] = argv[0][0];
2519 dynamic_array[ni.number - 1] = 543;
2520
2521 // work around unused variable warnings
2522 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2523 || dynamic_array[ni.number - 1] != 543);
2524 '
2525
2526 # Test code for whether the C compiler supports C11 (global declarations)
2527 ac_c_conftest_c11_globals='
2528 // Does the compiler advertise C11 conformance?
2529 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2530 # error "Compiler does not advertise C11 conformance"
2531 #endif
2532
2533 // Check _Alignas.
2534 char _Alignas (double) aligned_as_double;
2535 char _Alignas (0) no_special_alignment;
2536 extern char aligned_as_int;
2537 char _Alignas (0) _Alignas (int) aligned_as_int;
2538
2539 // Check _Alignof.
2540 enum
2541 {
2542 int_alignment = _Alignof (int),
2543 int_array_alignment = _Alignof (int[100]),
2544 char_alignment = _Alignof (char)
2545 };
2546 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2547
2548 // Check _Noreturn.
2549 int _Noreturn does_not_return (void) { for (;;) continue; }
2550
2551 // Check _Static_assert.
2552 struct test_static_assert
2553 {
2554 int x;
2555 _Static_assert (sizeof (int) <= sizeof (long int),
2556 "_Static_assert does not work in struct");
2557 long int y;
2558 };
2559
2560 // Check UTF-8 literals.
2561 #define u8 syntax error!
2562 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2563
2564 // Check duplicate typedefs.
2565 typedef long *long_ptr;
2566 typedef long int *long_ptr;
2567 typedef long_ptr long_ptr;
2568
2569 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2570 struct anonymous
2571 {
2572 union {
2573 struct { int i; int j; };
2574 struct { int k; long int l; } w;
2575 };
2576 int m;
2577 } v1;
2578 '
2579
2580 # Test code for whether the C compiler supports C11 (body of main).
2581 ac_c_conftest_c11_main='
2582 _Static_assert ((offsetof (struct anonymous, i)
2583 == offsetof (struct anonymous, w.k)),
2584 "Anonymous union alignment botch");
2585 v1.i = 2;
2586 v1.w.k = 5;
2587 ok |= v1.i != 5;
2588 '
2589
2590 # Test code for whether the C compiler supports C11 (complete).
2591 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2592 ${ac_c_conftest_c99_globals}
2593 ${ac_c_conftest_c11_globals}
2594
2595 int
2596 main (int argc, char **argv)
2597 {
2598 int ok = 0;
2599 ${ac_c_conftest_c89_main}
2600 ${ac_c_conftest_c99_main}
2601 ${ac_c_conftest_c11_main}
2602 return ok;
2603 }
2604 "
2605
2606 # Test code for whether the C compiler supports C99 (complete).
2607 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2608 ${ac_c_conftest_c99_globals}
2609
2610 int
2611 main (int argc, char **argv)
2612 {
2613 int ok = 0;
2614 ${ac_c_conftest_c89_main}
2615 ${ac_c_conftest_c99_main}
2616 return ok;
2617 }
2618 "
2619
2620 # Test code for whether the C compiler supports C89 (complete).
2621 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2622
2623 int
2624 main (int argc, char **argv)
2625 {
2626 int ok = 0;
2627 ${ac_c_conftest_c89_main}
2628 return ok;
2629 }
2630 "
2631
2632 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2633 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2634 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2635 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2636 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2637 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2638 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2639 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2640 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2641
2642 # Auxiliary files required by this configure script.
2643 ac_aux_files="compile ltmain.sh config.guess config.sub missing install-sh"
2644
2645 # Locations in which to look for auxiliary files.
2646 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2647
2648 # Search for a directory containing all of the required auxiliary files,
2649 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2650 # If we don't find one directory that contains all the files we need,
2651 # we report the set of missing files from the *first* directory in
2652 # $ac_aux_dir_candidates and give up.
2653 ac_missing_aux_files=""
2654 ac_first_candidate=:
2655 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657 as_found=false
2658 for as_dir in $ac_aux_dir_candidates
2659 do
2660 IFS=$as_save_IFS
2661 case $as_dir in #(((
2662 '') as_dir=./ ;;
2663 */) ;;
2664 *) as_dir=$as_dir/ ;;
2665 esac
2666 as_found=:
2667
2668 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2669 ac_aux_dir_found=yes
2670 ac_install_sh=
2671 for ac_aux in $ac_aux_files
2672 do
2673 # As a special case, if "install-sh" is required, that requirement
2674 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2675 # and $ac_install_sh is set appropriately for whichever one is found.
2676 if test x"$ac_aux" = x"install-sh"
2677 then
2678 if test -f "${as_dir}install-sh"; then
2679 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2680 ac_install_sh="${as_dir}install-sh -c"
2681 elif test -f "${as_dir}install.sh"; then
2682 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2683 ac_install_sh="${as_dir}install.sh -c"
2684 elif test -f "${as_dir}shtool"; then
2685 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2686 ac_install_sh="${as_dir}shtool install -c"
2687 else
2688 ac_aux_dir_found=no
2689 if $ac_first_candidate; then
2690 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2691 else
2692 break
2693 fi
2694 fi
2695 else
2696 if test -f "${as_dir}${ac_aux}"; then
2697 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2698 else
2699 ac_aux_dir_found=no
2700 if $ac_first_candidate; then
2701 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2702 else
2703 break
2704 fi
2705 fi
2706 fi
2707 done
2708 if test "$ac_aux_dir_found" = yes; then
2709 ac_aux_dir="$as_dir"
2710 break
2711 fi
2712 ac_first_candidate=false
2713
2714 as_found=false
2715 done
2716 IFS=$as_save_IFS
2717 if $as_found
2718 then :
2719
2720 else $as_nop
2721 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2722 fi
2723
2724
2725 # These three variables are undocumented and unsupported,
2726 # and are intended to be withdrawn in a future Autoconf release.
2727 # They can cause serious problems if a builder's source tree is in a directory
2728 # whose full name contains unusual characters.
2729 if test -f "${ac_aux_dir}config.guess"; then
2730 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2731 fi
2732 if test -f "${ac_aux_dir}config.sub"; then
2733 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2734 fi
2735 if test -f "$ac_aux_dir/configure"; then
2736 ac_configure="$SHELL ${ac_aux_dir}configure"
2737 fi
2738
2739 # Check that the precious variables saved in the cache have kept the same
2740 # value.
2741 ac_cache_corrupted=false
2742 for ac_var in $ac_precious_vars; do
2743 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2744 eval ac_new_set=\$ac_env_${ac_var}_set
2745 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2746 eval ac_new_val=\$ac_env_${ac_var}_value
2747 case $ac_old_set,$ac_new_set in
2748 set,)
2749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2750 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2751 ac_cache_corrupted=: ;;
2752 ,set)
2753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2754 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2755 ac_cache_corrupted=: ;;
2756 ,);;
2757 *)
2758 if test "x$ac_old_val" != "x$ac_new_val"; then
2759 # differences in whitespace do not lead to failure.
2760 ac_old_val_w=`echo x $ac_old_val`
2761 ac_new_val_w=`echo x $ac_new_val`
2762 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2764 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2765 ac_cache_corrupted=:
2766 else
2767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2768 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2769 eval $ac_var=\$ac_old_val
2770 fi
2771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2772 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2774 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2775 fi;;
2776 esac
2777 # Pass precious variables to config.status.
2778 if test "$ac_new_set" = set; then
2779 case $ac_new_val in
2780 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2781 *) ac_arg=$ac_var=$ac_new_val ;;
2782 esac
2783 case " $ac_configure_args " in
2784 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2785 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2786 esac
2787 fi
2788 done
2789 if $ac_cache_corrupted; then
2790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2791 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2793 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2794 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2795 and start over" "$LINENO" 5
2796 fi
2797 ## -------------------- ##
2798 ## Main body of script. ##
2799 ## -------------------- ##
2800
2801 ac_ext=c
2802 ac_cpp='$CPP $CPPFLAGS'
2803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2806
2807
2808
2809
2810
2811
2812 # Check whether --enable-silent-rules was given.
2813 if test ${enable_silent_rules+y}
2814 then :
2815 enableval=$enable_silent_rules;
2816 fi
2817
2818 case $enable_silent_rules in # (((
2819 yes) AM_DEFAULT_VERBOSITY=0;;
2820 no) AM_DEFAULT_VERBOSITY=1;;
2821 *) AM_DEFAULT_VERBOSITY=0;;
2822 esac
2823 am_make=${MAKE-make}
2824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2825 printf %s "checking whether $am_make supports nested variables... " >&6; }
2826 if test ${am_cv_make_support_nested_variables+y}
2827 then :
2828 printf %s "(cached) " >&6
2829 else $as_nop
2830 if printf "%s\n" 'TRUE=$(BAR$(V))
2831 BAR0=false
2832 BAR1=true
2833 V=1
2834 am__doit:
2835 @$(TRUE)
2836 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2837 am_cv_make_support_nested_variables=yes
2838 else
2839 am_cv_make_support_nested_variables=no
2840 fi
2841 fi
2842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2843 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
2844 if test $am_cv_make_support_nested_variables = yes; then
2845 AM_V='$(V)'
2846 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2847 else
2848 AM_V=$AM_DEFAULT_VERBOSITY
2849 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2850 fi
2851 AM_BACKSLASH='\'
2852
2853
2854
2855 SPEEXDSP_LT_CURRENT=6
2856 SPEEXDSP_LT_REVISION=2
2857 SPEEXDSP_LT_AGE=5
2858
2859
2860
2861
2862
2863
2864 am__api_version='1.16'
2865
2866
2867
2868 # Find a good install program. We prefer a C program (faster),
2869 # so one script is as good as another. But avoid the broken or
2870 # incompatible versions:
2871 # SysV /etc/install, /usr/sbin/install
2872 # SunOS /usr/etc/install
2873 # IRIX /sbin/install
2874 # AIX /bin/install
2875 # AmigaOS /C/install, which installs bootblocks on floppy discs
2876 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2877 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2878 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2879 # OS/2's system install, which has a completely different semantic
2880 # ./install, which can be erroneously created by make from ./install.sh.
2881 # Reject install programs that cannot install multiple files.
2882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2883 printf %s "checking for a BSD-compatible install... " >&6; }
2884 if test -z "$INSTALL"; then
2885 if test ${ac_cv_path_install+y}
2886 then :
2887 printf %s "(cached) " >&6
2888 else $as_nop
2889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890 for as_dir in $PATH
2891 do
2892 IFS=$as_save_IFS
2893 case $as_dir in #(((
2894 '') as_dir=./ ;;
2895 */) ;;
2896 *) as_dir=$as_dir/ ;;
2897 esac
2898 # Account for fact that we put trailing slashes in our PATH walk.
2899 case $as_dir in #((
2900 ./ | /[cC]/* | \
2901 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2902 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2903 /usr/ucb/* ) ;;
2904 *)
2905 # OSF1 and SCO ODT 3.0 have their own names for install.
2906 # Don't use installbsd from OSF since it installs stuff as root
2907 # by default.
2908 for ac_prog in ginstall scoinst install; do
2909 for ac_exec_ext in '' $ac_executable_extensions; do
2910 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2911 if test $ac_prog = install &&
2912 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2913 # AIX install. It has an incompatible calling convention.
2914 :
2915 elif test $ac_prog = install &&
2916 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2917 # program-specific install script used by HP pwplus--don't use.
2918 :
2919 else
2920 rm -rf conftest.one conftest.two conftest.dir
2921 echo one > conftest.one
2922 echo two > conftest.two
2923 mkdir conftest.dir
2924 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2925 test -s conftest.one && test -s conftest.two &&
2926 test -s conftest.dir/conftest.one &&
2927 test -s conftest.dir/conftest.two
2928 then
2929 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2930 break 3
2931 fi
2932 fi
2933 fi
2934 done
2935 done
2936 ;;
2937 esac
2938
2939 done
2940 IFS=$as_save_IFS
2941
2942 rm -rf conftest.one conftest.two conftest.dir
2943
2944 fi
2945 if test ${ac_cv_path_install+y}; then
2946 INSTALL=$ac_cv_path_install
2947 else
2948 # As a last resort, use the slow shell script. Don't cache a
2949 # value for INSTALL within a source directory, because that will
2950 # break other packages using the cache if that directory is
2951 # removed, or if the value is a relative name.
2952 INSTALL=$ac_install_sh
2953 fi
2954 fi
2955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2956 printf "%s\n" "$INSTALL" >&6; }
2957
2958 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2959 # It thinks the first close brace ends the variable substitution.
2960 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2961
2962 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2963
2964 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2965
2966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2967 printf %s "checking whether build environment is sane... " >&6; }
2968 # Reject unsafe characters in $srcdir or the absolute working directory
2969 # name. Accept space and tab only in the latter.
2970 am_lf='
2971 '
2972 case `pwd` in
2973 *[\\\"\#\$\&\'\`$am_lf]*)
2974 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2975 esac
2976 case $srcdir in
2977 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2978 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2979 esac
2980
2981 # Do 'set' in a subshell so we don't clobber the current shell's
2982 # arguments. Must try -L first in case configure is actually a
2983 # symlink; some systems play weird games with the mod time of symlinks
2984 # (eg FreeBSD returns the mod time of the symlink's containing
2985 # directory).
2986 if (
2987 am_has_slept=no
2988 for am_try in 1 2; do
2989 echo "timestamp, slept: $am_has_slept" > conftest.file
2990 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2991 if test "$*" = "X"; then
2992 # -L didn't work.
2993 set X `ls -t "$srcdir/configure" conftest.file`
2994 fi
2995 if test "$*" != "X $srcdir/configure conftest.file" \
2996 && test "$*" != "X conftest.file $srcdir/configure"; then
2997
2998 # If neither matched, then we have a broken ls. This can happen
2999 # if, for instance, CONFIG_SHELL is bash and it inherits a
3000 # broken ls alias from the environment. This has actually
3001 # happened. Such a system could not be considered "sane".
3002 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3003 alias in your environment" "$LINENO" 5
3004 fi
3005 if test "$2" = conftest.file || test $am_try -eq 2; then
3006 break
3007 fi
3008 # Just in case.
3009 sleep 1
3010 am_has_slept=yes
3011 done
3012 test "$2" = conftest.file
3013 )
3014 then
3015 # Ok.
3016 :
3017 else
3018 as_fn_error $? "newly created file is older than distributed files!
3019 Check your system clock" "$LINENO" 5
3020 fi
3021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3022 printf "%s\n" "yes" >&6; }
3023 # If we didn't sleep, we still need to ensure time stamps of config.status and
3024 # generated files are strictly newer.
3025 am_sleep_pid=
3026 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3027 ( sleep 1 ) &
3028 am_sleep_pid=$!
3029 fi
3030
3031 rm -f conftest.file
3032
3033 test "$program_prefix" != NONE &&
3034 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3035 # Use a double $ so make ignores it.
3036 test "$program_suffix" != NONE &&
3037 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3038 # Double any \ or $.
3039 # By default was `s,x,x', remove it if useless.
3040 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3041 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3042
3043
3044 # Expand $ac_aux_dir to an absolute path.
3045 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3046
3047
3048 if test x"${MISSING+set}" != xset; then
3049 MISSING="\${SHELL} '$am_aux_dir/missing'"
3050 fi
3051 # Use eval to expand $SHELL
3052 if eval "$MISSING --is-lightweight"; then
3053 am_missing_run="$MISSING "
3054 else
3055 am_missing_run=
3056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3057 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3058 fi
3059
3060 if test x"${install_sh+set}" != xset; then
3061 case $am_aux_dir in
3062 *\ * | *\ *)
3063 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3064 *)
3065 install_sh="\${SHELL} $am_aux_dir/install-sh"
3066 esac
3067 fi
3068
3069 # Installed binaries are usually stripped using 'strip' when the user
3070 # run "make install-strip". However 'strip' might not be the right
3071 # tool to use in cross-compilation environments, therefore Automake
3072 # will honor the 'STRIP' environment variable to overrule this program.
3073 if test "$cross_compiling" != no; then
3074 if test -n "$ac_tool_prefix"; then
3075 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3076 set dummy ${ac_tool_prefix}strip; ac_word=$2
3077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3078 printf %s "checking for $ac_word... " >&6; }
3079 if test ${ac_cv_prog_STRIP+y}
3080 then :
3081 printf %s "(cached) " >&6
3082 else $as_nop
3083 if test -n "$STRIP"; then
3084 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3085 else
3086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087 for as_dir in $PATH
3088 do
3089 IFS=$as_save_IFS
3090 case $as_dir in #(((
3091 '') as_dir=./ ;;
3092 */) ;;
3093 *) as_dir=$as_dir/ ;;
3094 esac
3095 for ac_exec_ext in '' $ac_executable_extensions; do
3096 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3097 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3098 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3099 break 2
3100 fi
3101 done
3102 done
3103 IFS=$as_save_IFS
3104
3105 fi
3106 fi
3107 STRIP=$ac_cv_prog_STRIP
3108 if test -n "$STRIP"; then
3109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3110 printf "%s\n" "$STRIP" >&6; }
3111 else
3112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3113 printf "%s\n" "no" >&6; }
3114 fi
3115
3116
3117 fi
3118 if test -z "$ac_cv_prog_STRIP"; then
3119 ac_ct_STRIP=$STRIP
3120 # Extract the first word of "strip", so it can be a program name with args.
3121 set dummy strip; ac_word=$2
3122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3123 printf %s "checking for $ac_word... " >&6; }
3124 if test ${ac_cv_prog_ac_ct_STRIP+y}
3125 then :
3126 printf %s "(cached) " >&6
3127 else $as_nop
3128 if test -n "$ac_ct_STRIP"; then
3129 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3130 else
3131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132 for as_dir in $PATH
3133 do
3134 IFS=$as_save_IFS
3135 case $as_dir in #(((
3136 '') as_dir=./ ;;
3137 */) ;;
3138 *) as_dir=$as_dir/ ;;
3139 esac
3140 for ac_exec_ext in '' $ac_executable_extensions; do
3141 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3142 ac_cv_prog_ac_ct_STRIP="strip"
3143 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3144 break 2
3145 fi
3146 done
3147 done
3148 IFS=$as_save_IFS
3149
3150 fi
3151 fi
3152 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3153 if test -n "$ac_ct_STRIP"; then
3154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3155 printf "%s\n" "$ac_ct_STRIP" >&6; }
3156 else
3157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3158 printf "%s\n" "no" >&6; }
3159 fi
3160
3161 if test "x$ac_ct_STRIP" = x; then
3162 STRIP=":"
3163 else
3164 case $cross_compiling:$ac_tool_warned in
3165 yes:)
3166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3167 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3168 ac_tool_warned=yes ;;
3169 esac
3170 STRIP=$ac_ct_STRIP
3171 fi
3172 else
3173 STRIP="$ac_cv_prog_STRIP"
3174 fi
3175
3176 fi
3177 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3178
3179
3180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3181 printf %s "checking for a race-free mkdir -p... " >&6; }
3182 if test -z "$MKDIR_P"; then
3183 if test ${ac_cv_path_mkdir+y}
3184 then :
3185 printf %s "(cached) " >&6
3186 else $as_nop
3187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3189 do
3190 IFS=$as_save_IFS
3191 case $as_dir in #(((
3192 '') as_dir=./ ;;
3193 */) ;;
3194 *) as_dir=$as_dir/ ;;
3195 esac
3196 for ac_prog in mkdir gmkdir; do
3197 for ac_exec_ext in '' $ac_executable_extensions; do
3198 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3199 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3200 'mkdir ('*'coreutils) '* | \
3201 'BusyBox '* | \
3202 'mkdir (fileutils) '4.1*)
3203 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3204 break 3;;
3205 esac
3206 done
3207 done
3208 done
3209 IFS=$as_save_IFS
3210
3211 fi
3212
3213 test -d ./--version && rmdir ./--version
3214 if test ${ac_cv_path_mkdir+y}; then
3215 MKDIR_P="$ac_cv_path_mkdir -p"
3216 else
3217 # As a last resort, use the slow shell script. Don't cache a
3218 # value for MKDIR_P within a source directory, because that will
3219 # break other packages using the cache if that directory is
3220 # removed, or if the value is a relative name.
3221 MKDIR_P="$ac_install_sh -d"
3222 fi
3223 fi
3224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3225 printf "%s\n" "$MKDIR_P" >&6; }
3226
3227 for ac_prog in gawk mawk nawk awk
3228 do
3229 # Extract the first word of "$ac_prog", so it can be a program name with args.
3230 set dummy $ac_prog; ac_word=$2
3231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3232 printf %s "checking for $ac_word... " >&6; }
3233 if test ${ac_cv_prog_AWK+y}
3234 then :
3235 printf %s "(cached) " >&6
3236 else $as_nop
3237 if test -n "$AWK"; then
3238 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3239 else
3240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3241 for as_dir in $PATH
3242 do
3243 IFS=$as_save_IFS
3244 case $as_dir in #(((
3245 '') as_dir=./ ;;
3246 */) ;;
3247 *) as_dir=$as_dir/ ;;
3248 esac
3249 for ac_exec_ext in '' $ac_executable_extensions; do
3250 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3251 ac_cv_prog_AWK="$ac_prog"
3252 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3253 break 2
3254 fi
3255 done
3256 done
3257 IFS=$as_save_IFS
3258
3259 fi
3260 fi
3261 AWK=$ac_cv_prog_AWK
3262 if test -n "$AWK"; then
3263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3264 printf "%s\n" "$AWK" >&6; }
3265 else
3266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3267 printf "%s\n" "no" >&6; }
3268 fi
3269
3270
3271 test -n "$AWK" && break
3272 done
3273
3274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3275 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3276 set x ${MAKE-make}
3277 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3278 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3279 then :
3280 printf %s "(cached) " >&6
3281 else $as_nop
3282 cat >conftest.make <<\_ACEOF
3283 SHELL = /bin/sh
3284 all:
3285 @echo '@@@%%%=$(MAKE)=@@@%%%'
3286 _ACEOF
3287 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3288 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3289 *@@@%%%=?*=@@@%%%*)
3290 eval ac_cv_prog_make_${ac_make}_set=yes;;
3291 *)
3292 eval ac_cv_prog_make_${ac_make}_set=no;;
3293 esac
3294 rm -f conftest.make
3295 fi
3296 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3298 printf "%s\n" "yes" >&6; }
3299 SET_MAKE=
3300 else
3301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3302 printf "%s\n" "no" >&6; }
3303 SET_MAKE="MAKE=${MAKE-make}"
3304 fi
3305
3306 rm -rf .tst 2>/dev/null
3307 mkdir .tst 2>/dev/null
3308 if test -d .tst; then
3309 am__leading_dot=.
3310 else
3311 am__leading_dot=_
3312 fi
3313 rmdir .tst 2>/dev/null
3314
3315 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3316 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3317 # is not polluted with repeated "-I."
3318 am__isrc=' -I$(srcdir)'
3319 # test to see if srcdir already configured
3320 if test -f $srcdir/config.status; then
3321 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3322 fi
3323 fi
3324
3325 # test whether we have cygpath
3326 if test -z "$CYGPATH_W"; then
3327 if (cygpath --version) >/dev/null 2>/dev/null; then
3328 CYGPATH_W='cygpath -w'
3329 else
3330 CYGPATH_W=echo
3331 fi
3332 fi
3333
3334
3335 # Define the identity of the package.
3336 PACKAGE='speexdsp'
3337 VERSION='1.2.1'
3338
3339
3340 # Some tools Automake needs.
3341
3342 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3343
3344
3345 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3346
3347
3348 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3349
3350
3351 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3352
3353
3354 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3355
3356 # For better backward compatibility. To be removed once Automake 1.9.x
3357 # dies out for good. For more background, see:
3358 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3359 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3360 mkdir_p='$(MKDIR_P)'
3361
3362 # We need awk for the "check" target (and possibly the TAP driver). The
3363 # system "awk" is bad on some platforms.
3364 # Always define AMTAR for backward compatibility. Yes, it's still used
3365 # in the wild :-( We should find a proper way to deprecate it ...
3366 AMTAR='$${TAR-tar}'
3367
3368
3369 # We'll loop over all known methods to create a tar archive until one works.
3370 _am_tools='gnutar pax cpio none'
3371
3372 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3373
3374
3375
3376
3377
3378 # Variables for tags utilities; see am/tags.am
3379 if test -z "$CTAGS"; then
3380 CTAGS=ctags
3381 fi
3382
3383 if test -z "$ETAGS"; then
3384 ETAGS=etags
3385 fi
3386
3387 if test -z "$CSCOPE"; then
3388 CSCOPE=cscope
3389 fi
3390
3391
3392
3393 # POSIX will say in a future version that running "rm -f" with no argument
3394 # is OK; and we want to be able to make that assumption in our Makefile
3395 # recipes. So use an aggressive probe to check that the usage we want is
3396 # actually supported "in the wild" to an acceptable degree.
3397 # See automake bug#10828.
3398 # To make any issue more visible, cause the running configure to be aborted
3399 # by default if the 'rm' program in use doesn't match our expectations; the
3400 # user can still override this though.
3401 if rm -f && rm -fr && rm -rf; then : OK; else
3402 cat >&2 <<'END'
3403 Oops!
3404
3405 Your 'rm' program seems unable to run without file operands specified
3406 on the command line, even when the '-f' option is present. This is contrary
3407 to the behaviour of most rm programs out there, and not conforming with
3408 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3409
3410 Please tell [email protected] about your system, including the value
3411 of your $PATH and any error possibly output before this message. This
3412 can help us improve future automake versions.
3413
3414 END
3415 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3416 echo 'Configuration will proceed anyway, since you have set the' >&2
3417 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3418 echo >&2
3419 else
3420 cat >&2 <<'END'
3421 Aborting the configuration process, to ensure you take notice of the issue.
3422
3423 You can download and install GNU coreutils to get an 'rm' implementation
3424 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3425
3426 If you want to complete the configuration process using your problematic
3427 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3428 to "yes", and re-run configure.
3429
3430 END
3431 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3432 fi
3433 fi
3434
3435
3436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3437 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3438 # Check whether --enable-maintainer-mode was given.
3439 if test ${enable_maintainer_mode+y}
3440 then :
3441 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3442 else $as_nop
3443 USE_MAINTAINER_MODE=yes
3444 fi
3445
3446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3447 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3448 if test $USE_MAINTAINER_MODE = yes; then
3449 MAINTAINER_MODE_TRUE=
3450 MAINTAINER_MODE_FALSE='#'
3451 else
3452 MAINTAINER_MODE_TRUE='#'
3453 MAINTAINER_MODE_FALSE=
3454 fi
3455
3456 MAINT=$MAINTAINER_MODE_TRUE
3457
3458
3459
3460
3461
3462 # Make sure we can run config.sub.
3463 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3464 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3465
3466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3467 printf %s "checking build system type... " >&6; }
3468 if test ${ac_cv_build+y}
3469 then :
3470 printf %s "(cached) " >&6
3471 else $as_nop
3472 ac_build_alias=$build_alias
3473 test "x$ac_build_alias" = x &&
3474 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3475 test "x$ac_build_alias" = x &&
3476 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3477 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3478 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3479
3480 fi
3481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3482 printf "%s\n" "$ac_cv_build" >&6; }
3483 case $ac_cv_build in
3484 *-*-*) ;;
3485 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3486 esac
3487 build=$ac_cv_build
3488 ac_save_IFS=$IFS; IFS='-'
3489 set x $ac_cv_build
3490 shift
3491 build_cpu=$1
3492 build_vendor=$2
3493 shift; shift
3494 # Remember, the first character of IFS is used to create $*,
3495 # except with old shells:
3496 build_os=$*
3497 IFS=$ac_save_IFS
3498 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3499
3500
3501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3502 printf %s "checking host system type... " >&6; }
3503 if test ${ac_cv_host+y}
3504 then :
3505 printf %s "(cached) " >&6
3506 else $as_nop
3507 if test "x$host_alias" = x; then
3508 ac_cv_host=$ac_cv_build
3509 else
3510 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3511 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3512 fi
3513
3514 fi
3515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3516 printf "%s\n" "$ac_cv_host" >&6; }
3517 case $ac_cv_host in
3518 *-*-*) ;;
3519 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3520 esac
3521 host=$ac_cv_host
3522 ac_save_IFS=$IFS; IFS='-'
3523 set x $ac_cv_host
3524 shift
3525 host_cpu=$1
3526 host_vendor=$2
3527 shift; shift
3528 # Remember, the first character of IFS is used to create $*,
3529 # except with old shells:
3530 host_os=$*
3531 IFS=$ac_save_IFS
3532 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3533
3534
3535 enable_win32_dll=yes
3536
3537 case $host in
3538 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
3539 if test -n "$ac_tool_prefix"; then
3540 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3541 set dummy ${ac_tool_prefix}as; ac_word=$2
3542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3543 printf %s "checking for $ac_word... " >&6; }
3544 if test ${ac_cv_prog_AS+y}
3545 then :
3546 printf %s "(cached) " >&6
3547 else $as_nop
3548 if test -n "$AS"; then
3549 ac_cv_prog_AS="$AS" # Let the user override the test.
3550 else
3551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3552 for as_dir in $PATH
3553 do
3554 IFS=$as_save_IFS
3555 case $as_dir in #(((
3556 '') as_dir=./ ;;
3557 */) ;;
3558 *) as_dir=$as_dir/ ;;
3559 esac
3560 for ac_exec_ext in '' $ac_executable_extensions; do
3561 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3562 ac_cv_prog_AS="${ac_tool_prefix}as"
3563 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3564 break 2
3565 fi
3566 done
3567 done
3568 IFS=$as_save_IFS
3569
3570 fi
3571 fi
3572 AS=$ac_cv_prog_AS
3573 if test -n "$AS"; then
3574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
3575 printf "%s\n" "$AS" >&6; }
3576 else
3577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3578 printf "%s\n" "no" >&6; }
3579 fi
3580
3581
3582 fi
3583 if test -z "$ac_cv_prog_AS"; then
3584 ac_ct_AS=$AS
3585 # Extract the first word of "as", so it can be a program name with args.
3586 set dummy as; ac_word=$2
3587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3588 printf %s "checking for $ac_word... " >&6; }
3589 if test ${ac_cv_prog_ac_ct_AS+y}
3590 then :
3591 printf %s "(cached) " >&6
3592 else $as_nop
3593 if test -n "$ac_ct_AS"; then
3594 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3595 else
3596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3597 for as_dir in $PATH
3598 do
3599 IFS=$as_save_IFS
3600 case $as_dir in #(((
3601 '') as_dir=./ ;;
3602 */) ;;
3603 *) as_dir=$as_dir/ ;;
3604 esac
3605 for ac_exec_ext in '' $ac_executable_extensions; do
3606 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3607 ac_cv_prog_ac_ct_AS="as"
3608 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3609 break 2
3610 fi
3611 done
3612 done
3613 IFS=$as_save_IFS
3614
3615 fi
3616 fi
3617 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3618 if test -n "$ac_ct_AS"; then
3619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
3620 printf "%s\n" "$ac_ct_AS" >&6; }
3621 else
3622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3623 printf "%s\n" "no" >&6; }
3624 fi
3625
3626 if test "x$ac_ct_AS" = x; then
3627 AS="false"
3628 else
3629 case $cross_compiling:$ac_tool_warned in
3630 yes:)
3631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3632 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3633 ac_tool_warned=yes ;;
3634 esac
3635 AS=$ac_ct_AS
3636 fi
3637 else
3638 AS="$ac_cv_prog_AS"
3639 fi
3640
3641 if test -n "$ac_tool_prefix"; then
3642 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3643 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3645 printf %s "checking for $ac_word... " >&6; }
3646 if test ${ac_cv_prog_DLLTOOL+y}
3647 then :
3648 printf %s "(cached) " >&6
3649 else $as_nop
3650 if test -n "$DLLTOOL"; then
3651 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3652 else
3653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3654 for as_dir in $PATH
3655 do
3656 IFS=$as_save_IFS
3657 case $as_dir in #(((
3658 '') as_dir=./ ;;
3659 */) ;;
3660 *) as_dir=$as_dir/ ;;
3661 esac
3662 for ac_exec_ext in '' $ac_executable_extensions; do
3663 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3664 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3665 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3666 break 2
3667 fi
3668 done
3669 done
3670 IFS=$as_save_IFS
3671
3672 fi
3673 fi
3674 DLLTOOL=$ac_cv_prog_DLLTOOL
3675 if test -n "$DLLTOOL"; then
3676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
3677 printf "%s\n" "$DLLTOOL" >&6; }
3678 else
3679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3680 printf "%s\n" "no" >&6; }
3681 fi
3682
3683
3684 fi
3685 if test -z "$ac_cv_prog_DLLTOOL"; then
3686 ac_ct_DLLTOOL=$DLLTOOL
3687 # Extract the first word of "dlltool", so it can be a program name with args.
3688 set dummy dlltool; ac_word=$2
3689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3690 printf %s "checking for $ac_word... " >&6; }
3691 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
3692 then :
3693 printf %s "(cached) " >&6
3694 else $as_nop
3695 if test -n "$ac_ct_DLLTOOL"; then
3696 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3697 else
3698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3699 for as_dir in $PATH
3700 do
3701 IFS=$as_save_IFS
3702 case $as_dir in #(((
3703 '') as_dir=./ ;;
3704 */) ;;
3705 *) as_dir=$as_dir/ ;;
3706 esac
3707 for ac_exec_ext in '' $ac_executable_extensions; do
3708 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3709 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
3710 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3711 break 2
3712 fi
3713 done
3714 done
3715 IFS=$as_save_IFS
3716
3717 fi
3718 fi
3719 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
3720 if test -n "$ac_ct_DLLTOOL"; then
3721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
3722 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
3723 else
3724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3725 printf "%s\n" "no" >&6; }
3726 fi
3727
3728 if test "x$ac_ct_DLLTOOL" = x; then
3729 DLLTOOL="false"
3730 else
3731 case $cross_compiling:$ac_tool_warned in
3732 yes:)
3733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3734 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3735 ac_tool_warned=yes ;;
3736 esac
3737 DLLTOOL=$ac_ct_DLLTOOL
3738 fi
3739 else
3740 DLLTOOL="$ac_cv_prog_DLLTOOL"
3741 fi
3742
3743 if test -n "$ac_tool_prefix"; then
3744 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3745 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3747 printf %s "checking for $ac_word... " >&6; }
3748 if test ${ac_cv_prog_OBJDUMP+y}
3749 then :
3750 printf %s "(cached) " >&6
3751 else $as_nop
3752 if test -n "$OBJDUMP"; then
3753 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3754 else
3755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3756 for as_dir in $PATH
3757 do
3758 IFS=$as_save_IFS
3759 case $as_dir in #(((
3760 '') as_dir=./ ;;
3761 */) ;;
3762 *) as_dir=$as_dir/ ;;
3763 esac
3764 for ac_exec_ext in '' $ac_executable_extensions; do
3765 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3766 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3767 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3768 break 2
3769 fi
3770 done
3771 done
3772 IFS=$as_save_IFS
3773
3774 fi
3775 fi
3776 OBJDUMP=$ac_cv_prog_OBJDUMP
3777 if test -n "$OBJDUMP"; then
3778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
3779 printf "%s\n" "$OBJDUMP" >&6; }
3780 else
3781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3782 printf "%s\n" "no" >&6; }
3783 fi
3784
3785
3786 fi
3787 if test -z "$ac_cv_prog_OBJDUMP"; then
3788 ac_ct_OBJDUMP=$OBJDUMP
3789 # Extract the first word of "objdump", so it can be a program name with args.
3790 set dummy objdump; ac_word=$2
3791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3792 printf %s "checking for $ac_word... " >&6; }
3793 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
3794 then :
3795 printf %s "(cached) " >&6
3796 else $as_nop
3797 if test -n "$ac_ct_OBJDUMP"; then
3798 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
3799 else
3800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3801 for as_dir in $PATH
3802 do
3803 IFS=$as_save_IFS
3804 case $as_dir in #(((
3805 '') as_dir=./ ;;
3806 */) ;;
3807 *) as_dir=$as_dir/ ;;
3808 esac
3809 for ac_exec_ext in '' $ac_executable_extensions; do
3810 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3811 ac_cv_prog_ac_ct_OBJDUMP="objdump"
3812 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3813 break 2
3814 fi
3815 done
3816 done
3817 IFS=$as_save_IFS
3818
3819 fi
3820 fi
3821 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
3822 if test -n "$ac_ct_OBJDUMP"; then
3823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
3824 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
3825 else
3826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3827 printf "%s\n" "no" >&6; }
3828 fi
3829
3830 if test "x$ac_ct_OBJDUMP" = x; then
3831 OBJDUMP="false"
3832 else
3833 case $cross_compiling:$ac_tool_warned in
3834 yes:)
3835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3836 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3837 ac_tool_warned=yes ;;
3838 esac
3839 OBJDUMP=$ac_ct_OBJDUMP
3840 fi
3841 else
3842 OBJDUMP="$ac_cv_prog_OBJDUMP"
3843 fi
3844
3845 ;;
3846 esac
3847
3848 test -z "$AS" && AS=as
3849
3850
3851
3852
3853
3854 test -z "$DLLTOOL" && DLLTOOL=dlltool
3855
3856
3857
3858
3859
3860 test -z "$OBJDUMP" && OBJDUMP=objdump
3861
3862
3863
3864
3865
3866 case `pwd` in
3867 *\ * | *\ *)
3868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3869 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3870 esac
3871
3872
3873
3874 macro_version='2.4.6'
3875 macro_revision='2.4.6'
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890 ltmain=$ac_aux_dir/ltmain.sh
3891
3892 # Backslashify metacharacters that are still active within
3893 # double-quoted strings.
3894 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3895
3896 # Same as above, but do not quote variable references.
3897 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3898
3899 # Sed substitution to delay expansion of an escaped shell variable in a
3900 # double_quote_subst'ed string.
3901 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3902
3903 # Sed substitution to delay expansion of an escaped single quote.
3904 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3905
3906 # Sed substitution to avoid accidental globbing in evaled expressions
3907 no_glob_subst='s/\*/\\\*/g'
3908
3909 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3910 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3911 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3912
3913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3914 printf %s "checking how to print strings... " >&6; }
3915 # Test print first, because it will be a builtin if present.
3916 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3917 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3918 ECHO='print -r --'
3919 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3920 ECHO='printf %s\n'
3921 else
3922 # Use this function as a fallback that always works.
3923 func_fallback_echo ()
3924 {
3925 eval 'cat <<_LTECHO_EOF
3926 $1
3927 _LTECHO_EOF'
3928 }
3929 ECHO='func_fallback_echo'
3930 fi
3931
3932 # func_echo_all arg...
3933 # Invoke $ECHO with all args, space-separated.
3934 func_echo_all ()
3935 {
3936 $ECHO ""
3937 }
3938
3939 case $ECHO in
3940 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3941 printf "%s\n" "printf" >&6; } ;;
3942 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3943 printf "%s\n" "print -r" >&6; } ;;
3944 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3945 printf "%s\n" "cat" >&6; } ;;
3946 esac
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970 DEPDIR="${am__leading_dot}deps"
3971
3972 ac_config_commands="$ac_config_commands depfiles"
3973
3974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3975 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3976 cat > confinc.mk << 'END'
3977 am__doit:
3978 @echo this is the am__doit target >confinc.out
3979 .PHONY: am__doit
3980 END
3981 am__include="#"
3982 am__quote=
3983 # BSD make does it like this.
3984 echo '.include "confinc.mk" # ignored' > confmf.BSD
3985 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3986 echo 'include confinc.mk # ignored' > confmf.GNU
3987 _am_result=no
3988 for s in GNU BSD; do
3989 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3990 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3991 ac_status=$?
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); }
3994 case $?:`cat confinc.out 2>/dev/null` in #(
3995 '0:this is the am__doit target') :
3996 case $s in #(
3997 BSD) :
3998 am__include='.include' am__quote='"' ;; #(
3999 *) :
4000 am__include='include' am__quote='' ;;
4001 esac ;; #(
4002 *) :
4003 ;;
4004 esac
4005 if test "$am__include" != "#"; then
4006 _am_result="yes ($s style)"
4007 break
4008 fi
4009 done
4010 rm -f confinc.* confmf.*
4011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4012 printf "%s\n" "${_am_result}" >&6; }
4013
4014 # Check whether --enable-dependency-tracking was given.
4015 if test ${enable_dependency_tracking+y}
4016 then :
4017 enableval=$enable_dependency_tracking;
4018 fi
4019
4020 if test "x$enable_dependency_tracking" != xno; then
4021 am_depcomp="$ac_aux_dir/depcomp"
4022 AMDEPBACKSLASH='\'
4023 am__nodep='_no'
4024 fi
4025 if test "x$enable_dependency_tracking" != xno; then
4026 AMDEP_TRUE=
4027 AMDEP_FALSE='#'
4028 else
4029 AMDEP_TRUE='#'
4030 AMDEP_FALSE=
4031 fi
4032
4033
4034 ac_ext=c
4035 ac_cpp='$CPP $CPPFLAGS'
4036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4039 if test -n "$ac_tool_prefix"; then
4040 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4041 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4043 printf %s "checking for $ac_word... " >&6; }
4044 if test ${ac_cv_prog_CC+y}
4045 then :
4046 printf %s "(cached) " >&6
4047 else $as_nop
4048 if test -n "$CC"; then
4049 ac_cv_prog_CC="$CC" # Let the user override the test.
4050 else
4051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4052 for as_dir in $PATH
4053 do
4054 IFS=$as_save_IFS
4055 case $as_dir in #(((
4056 '') as_dir=./ ;;
4057 */) ;;
4058 *) as_dir=$as_dir/ ;;
4059 esac
4060 for ac_exec_ext in '' $ac_executable_extensions; do
4061 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4062 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4063 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4064 break 2
4065 fi
4066 done
4067 done
4068 IFS=$as_save_IFS
4069
4070 fi
4071 fi
4072 CC=$ac_cv_prog_CC
4073 if test -n "$CC"; then
4074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4075 printf "%s\n" "$CC" >&6; }
4076 else
4077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4078 printf "%s\n" "no" >&6; }
4079 fi
4080
4081
4082 fi
4083 if test -z "$ac_cv_prog_CC"; then
4084 ac_ct_CC=$CC
4085 # Extract the first word of "gcc", so it can be a program name with args.
4086 set dummy gcc; ac_word=$2
4087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4088 printf %s "checking for $ac_word... " >&6; }
4089 if test ${ac_cv_prog_ac_ct_CC+y}
4090 then :
4091 printf %s "(cached) " >&6
4092 else $as_nop
4093 if test -n "$ac_ct_CC"; then
4094 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4095 else
4096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4097 for as_dir in $PATH
4098 do
4099 IFS=$as_save_IFS
4100 case $as_dir in #(((
4101 '') as_dir=./ ;;
4102 */) ;;
4103 *) as_dir=$as_dir/ ;;
4104 esac
4105 for ac_exec_ext in '' $ac_executable_extensions; do
4106 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4107 ac_cv_prog_ac_ct_CC="gcc"
4108 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4109 break 2
4110 fi
4111 done
4112 done
4113 IFS=$as_save_IFS
4114
4115 fi
4116 fi
4117 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4118 if test -n "$ac_ct_CC"; then
4119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4120 printf "%s\n" "$ac_ct_CC" >&6; }
4121 else
4122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4123 printf "%s\n" "no" >&6; }
4124 fi
4125
4126 if test "x$ac_ct_CC" = x; then
4127 CC=""
4128 else
4129 case $cross_compiling:$ac_tool_warned in
4130 yes:)
4131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4132 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4133 ac_tool_warned=yes ;;
4134 esac
4135 CC=$ac_ct_CC
4136 fi
4137 else
4138 CC="$ac_cv_prog_CC"
4139 fi
4140
4141 if test -z "$CC"; then
4142 if test -n "$ac_tool_prefix"; then
4143 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4144 set dummy ${ac_tool_prefix}cc; ac_word=$2
4145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4146 printf %s "checking for $ac_word... " >&6; }
4147 if test ${ac_cv_prog_CC+y}
4148 then :
4149 printf %s "(cached) " >&6
4150 else $as_nop
4151 if test -n "$CC"; then
4152 ac_cv_prog_CC="$CC" # Let the user override the test.
4153 else
4154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4155 for as_dir in $PATH
4156 do
4157 IFS=$as_save_IFS
4158 case $as_dir in #(((
4159 '') as_dir=./ ;;
4160 */) ;;
4161 *) as_dir=$as_dir/ ;;
4162 esac
4163 for ac_exec_ext in '' $ac_executable_extensions; do
4164 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4165 ac_cv_prog_CC="${ac_tool_prefix}cc"
4166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4167 break 2
4168 fi
4169 done
4170 done
4171 IFS=$as_save_IFS
4172
4173 fi
4174 fi
4175 CC=$ac_cv_prog_CC
4176 if test -n "$CC"; then
4177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4178 printf "%s\n" "$CC" >&6; }
4179 else
4180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4181 printf "%s\n" "no" >&6; }
4182 fi
4183
4184
4185 fi
4186 fi
4187 if test -z "$CC"; then
4188 # Extract the first word of "cc", so it can be a program name with args.
4189 set dummy cc; ac_word=$2
4190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4191 printf %s "checking for $ac_word... " >&6; }
4192 if test ${ac_cv_prog_CC+y}
4193 then :
4194 printf %s "(cached) " >&6
4195 else $as_nop
4196 if test -n "$CC"; then
4197 ac_cv_prog_CC="$CC" # Let the user override the test.
4198 else
4199 ac_prog_rejected=no
4200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201 for as_dir in $PATH
4202 do
4203 IFS=$as_save_IFS
4204 case $as_dir in #(((
4205 '') as_dir=./ ;;
4206 */) ;;
4207 *) as_dir=$as_dir/ ;;
4208 esac
4209 for ac_exec_ext in '' $ac_executable_extensions; do
4210 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4211 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4212 ac_prog_rejected=yes
4213 continue
4214 fi
4215 ac_cv_prog_CC="cc"
4216 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4217 break 2
4218 fi
4219 done
4220 done
4221 IFS=$as_save_IFS
4222
4223 if test $ac_prog_rejected = yes; then
4224 # We found a bogon in the path, so make sure we never use it.
4225 set dummy $ac_cv_prog_CC
4226 shift
4227 if test $# != 0; then
4228 # We chose a different compiler from the bogus one.
4229 # However, it has the same basename, so the bogon will be chosen
4230 # first if we set CC to just the basename; use the full file name.
4231 shift
4232 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4233 fi
4234 fi
4235 fi
4236 fi
4237 CC=$ac_cv_prog_CC
4238 if test -n "$CC"; then
4239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4240 printf "%s\n" "$CC" >&6; }
4241 else
4242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4243 printf "%s\n" "no" >&6; }
4244 fi
4245
4246
4247 fi
4248 if test -z "$CC"; then
4249 if test -n "$ac_tool_prefix"; then
4250 for ac_prog in cl.exe
4251 do
4252 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4253 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4255 printf %s "checking for $ac_word... " >&6; }
4256 if test ${ac_cv_prog_CC+y}
4257 then :
4258 printf %s "(cached) " >&6
4259 else $as_nop
4260 if test -n "$CC"; then
4261 ac_cv_prog_CC="$CC" # Let the user override the test.
4262 else
4263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4264 for as_dir in $PATH
4265 do
4266 IFS=$as_save_IFS
4267 case $as_dir in #(((
4268 '') as_dir=./ ;;
4269 */) ;;
4270 *) as_dir=$as_dir/ ;;
4271 esac
4272 for ac_exec_ext in '' $ac_executable_extensions; do
4273 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4274 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4275 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4276 break 2
4277 fi
4278 done
4279 done
4280 IFS=$as_save_IFS
4281
4282 fi
4283 fi
4284 CC=$ac_cv_prog_CC
4285 if test -n "$CC"; then
4286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4287 printf "%s\n" "$CC" >&6; }
4288 else
4289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4290 printf "%s\n" "no" >&6; }
4291 fi
4292
4293
4294 test -n "$CC" && break
4295 done
4296 fi
4297 if test -z "$CC"; then
4298 ac_ct_CC=$CC
4299 for ac_prog in cl.exe
4300 do
4301 # Extract the first word of "$ac_prog", so it can be a program name with args.
4302 set dummy $ac_prog; ac_word=$2
4303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4304 printf %s "checking for $ac_word... " >&6; }
4305 if test ${ac_cv_prog_ac_ct_CC+y}
4306 then :
4307 printf %s "(cached) " >&6
4308 else $as_nop
4309 if test -n "$ac_ct_CC"; then
4310 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4311 else
4312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313 for as_dir in $PATH
4314 do
4315 IFS=$as_save_IFS
4316 case $as_dir in #(((
4317 '') as_dir=./ ;;
4318 */) ;;
4319 *) as_dir=$as_dir/ ;;
4320 esac
4321 for ac_exec_ext in '' $ac_executable_extensions; do
4322 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4323 ac_cv_prog_ac_ct_CC="$ac_prog"
4324 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4325 break 2
4326 fi
4327 done
4328 done
4329 IFS=$as_save_IFS
4330
4331 fi
4332 fi
4333 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4334 if test -n "$ac_ct_CC"; then
4335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4336 printf "%s\n" "$ac_ct_CC" >&6; }
4337 else
4338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4339 printf "%s\n" "no" >&6; }
4340 fi
4341
4342
4343 test -n "$ac_ct_CC" && break
4344 done
4345
4346 if test "x$ac_ct_CC" = x; then
4347 CC=""
4348 else
4349 case $cross_compiling:$ac_tool_warned in
4350 yes:)
4351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4352 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4353 ac_tool_warned=yes ;;
4354 esac
4355 CC=$ac_ct_CC
4356 fi
4357 fi
4358
4359 fi
4360 if test -z "$CC"; then
4361 if test -n "$ac_tool_prefix"; then
4362 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4363 set dummy ${ac_tool_prefix}clang; ac_word=$2
4364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4365 printf %s "checking for $ac_word... " >&6; }
4366 if test ${ac_cv_prog_CC+y}
4367 then :
4368 printf %s "(cached) " >&6
4369 else $as_nop
4370 if test -n "$CC"; then
4371 ac_cv_prog_CC="$CC" # Let the user override the test.
4372 else
4373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4374 for as_dir in $PATH
4375 do
4376 IFS=$as_save_IFS
4377 case $as_dir in #(((
4378 '') as_dir=./ ;;
4379 */) ;;
4380 *) as_dir=$as_dir/ ;;
4381 esac
4382 for ac_exec_ext in '' $ac_executable_extensions; do
4383 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4384 ac_cv_prog_CC="${ac_tool_prefix}clang"
4385 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4386 break 2
4387 fi
4388 done
4389 done
4390 IFS=$as_save_IFS
4391
4392 fi
4393 fi
4394 CC=$ac_cv_prog_CC
4395 if test -n "$CC"; then
4396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4397 printf "%s\n" "$CC" >&6; }
4398 else
4399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4400 printf "%s\n" "no" >&6; }
4401 fi
4402
4403
4404 fi
4405 if test -z "$ac_cv_prog_CC"; then
4406 ac_ct_CC=$CC
4407 # Extract the first word of "clang", so it can be a program name with args.
4408 set dummy clang; ac_word=$2
4409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4410 printf %s "checking for $ac_word... " >&6; }
4411 if test ${ac_cv_prog_ac_ct_CC+y}
4412 then :
4413 printf %s "(cached) " >&6
4414 else $as_nop
4415 if test -n "$ac_ct_CC"; then
4416 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4417 else
4418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419 for as_dir in $PATH
4420 do
4421 IFS=$as_save_IFS
4422 case $as_dir in #(((
4423 '') as_dir=./ ;;
4424 */) ;;
4425 *) as_dir=$as_dir/ ;;
4426 esac
4427 for ac_exec_ext in '' $ac_executable_extensions; do
4428 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4429 ac_cv_prog_ac_ct_CC="clang"
4430 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4431 break 2
4432 fi
4433 done
4434 done
4435 IFS=$as_save_IFS
4436
4437 fi
4438 fi
4439 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4440 if test -n "$ac_ct_CC"; then
4441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4442 printf "%s\n" "$ac_ct_CC" >&6; }
4443 else
4444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4445 printf "%s\n" "no" >&6; }
4446 fi
4447
4448 if test "x$ac_ct_CC" = x; then
4449 CC=""
4450 else
4451 case $cross_compiling:$ac_tool_warned in
4452 yes:)
4453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4454 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4455 ac_tool_warned=yes ;;
4456 esac
4457 CC=$ac_ct_CC
4458 fi
4459 else
4460 CC="$ac_cv_prog_CC"
4461 fi
4462
4463 fi
4464
4465
4466 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4467 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4468 as_fn_error $? "no acceptable C compiler found in \$PATH
4469 See \`config.log' for more details" "$LINENO" 5; }
4470
4471 # Provide some information about the compiler.
4472 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4473 set X $ac_compile
4474 ac_compiler=$2
4475 for ac_option in --version -v -V -qversion -version; do
4476 { { ac_try="$ac_compiler $ac_option >&5"
4477 case "(($ac_try" in
4478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4479 *) ac_try_echo=$ac_try;;
4480 esac
4481 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4482 printf "%s\n" "$ac_try_echo"; } >&5
4483 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4484 ac_status=$?
4485 if test -s conftest.err; then
4486 sed '10a\
4487 ... rest of stderr output deleted ...
4488 10q' conftest.err >conftest.er1
4489 cat conftest.er1 >&5
4490 fi
4491 rm -f conftest.er1 conftest.err
4492 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4493 test $ac_status = 0; }
4494 done
4495
4496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4497 /* end confdefs.h. */
4498
4499 int
4500 main (void)
4501 {
4502
4503 ;
4504 return 0;
4505 }
4506 _ACEOF
4507 ac_clean_files_save=$ac_clean_files
4508 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4509 # Try to create an executable without -o first, disregard a.out.
4510 # It will help us diagnose broken compilers, and finding out an intuition
4511 # of exeext.
4512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4513 printf %s "checking whether the C compiler works... " >&6; }
4514 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4515
4516 # The possible output files:
4517 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4518
4519 ac_rmfiles=
4520 for ac_file in $ac_files
4521 do
4522 case $ac_file in
4523 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4524 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4525 esac
4526 done
4527 rm -f $ac_rmfiles
4528
4529 if { { ac_try="$ac_link_default"
4530 case "(($ac_try" in
4531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4532 *) ac_try_echo=$ac_try;;
4533 esac
4534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4535 printf "%s\n" "$ac_try_echo"; } >&5
4536 (eval "$ac_link_default") 2>&5
4537 ac_status=$?
4538 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4539 test $ac_status = 0; }
4540 then :
4541 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4542 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4543 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4544 # so that the user can short-circuit this test for compilers unknown to
4545 # Autoconf.
4546 for ac_file in $ac_files ''
4547 do
4548 test -f "$ac_file" || continue
4549 case $ac_file in
4550 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4551 ;;
4552 [ab].out )
4553 # We found the default executable, but exeext='' is most
4554 # certainly right.
4555 break;;
4556 *.* )
4557 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4558 then :; else
4559 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4560 fi
4561 # We set ac_cv_exeext here because the later test for it is not
4562 # safe: cross compilers may not add the suffix if given an `-o'
4563 # argument, so we may need to know it at that point already.
4564 # Even if this section looks crufty: it has the advantage of
4565 # actually working.
4566 break;;
4567 * )
4568 break;;
4569 esac
4570 done
4571 test "$ac_cv_exeext" = no && ac_cv_exeext=
4572
4573 else $as_nop
4574 ac_file=''
4575 fi
4576 if test -z "$ac_file"
4577 then :
4578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4579 printf "%s\n" "no" >&6; }
4580 printf "%s\n" "$as_me: failed program was:" >&5
4581 sed 's/^/| /' conftest.$ac_ext >&5
4582
4583 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4584 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4585 as_fn_error 77 "C compiler cannot create executables
4586 See \`config.log' for more details" "$LINENO" 5; }
4587 else $as_nop
4588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4589 printf "%s\n" "yes" >&6; }
4590 fi
4591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4592 printf %s "checking for C compiler default output file name... " >&6; }
4593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4594 printf "%s\n" "$ac_file" >&6; }
4595 ac_exeext=$ac_cv_exeext
4596
4597 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4598 ac_clean_files=$ac_clean_files_save
4599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4600 printf %s "checking for suffix of executables... " >&6; }
4601 if { { ac_try="$ac_link"
4602 case "(($ac_try" in
4603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4604 *) ac_try_echo=$ac_try;;
4605 esac
4606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4607 printf "%s\n" "$ac_try_echo"; } >&5
4608 (eval "$ac_link") 2>&5
4609 ac_status=$?
4610 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4611 test $ac_status = 0; }
4612 then :
4613 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4614 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4615 # work properly (i.e., refer to `conftest.exe'), while it won't with
4616 # `rm'.
4617 for ac_file in conftest.exe conftest conftest.*; do
4618 test -f "$ac_file" || continue
4619 case $ac_file in
4620 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4621 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4622 break;;
4623 * ) break;;
4624 esac
4625 done
4626 else $as_nop
4627 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4628 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4629 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4630 See \`config.log' for more details" "$LINENO" 5; }
4631 fi
4632 rm -f conftest conftest$ac_cv_exeext
4633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4634 printf "%s\n" "$ac_cv_exeext" >&6; }
4635
4636 rm -f conftest.$ac_ext
4637 EXEEXT=$ac_cv_exeext
4638 ac_exeext=$EXEEXT
4639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4640 /* end confdefs.h. */
4641 #include <stdio.h>
4642 int
4643 main (void)
4644 {
4645 FILE *f = fopen ("conftest.out", "w");
4646 return ferror (f) || fclose (f) != 0;
4647
4648 ;
4649 return 0;
4650 }
4651 _ACEOF
4652 ac_clean_files="$ac_clean_files conftest.out"
4653 # Check that the compiler produces executables we can run. If not, either
4654 # the compiler is broken, or we cross compile.
4655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4656 printf %s "checking whether we are cross compiling... " >&6; }
4657 if test "$cross_compiling" != yes; then
4658 { { ac_try="$ac_link"
4659 case "(($ac_try" in
4660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4661 *) ac_try_echo=$ac_try;;
4662 esac
4663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4664 printf "%s\n" "$ac_try_echo"; } >&5
4665 (eval "$ac_link") 2>&5
4666 ac_status=$?
4667 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4668 test $ac_status = 0; }
4669 if { ac_try='./conftest$ac_cv_exeext'
4670 { { case "(($ac_try" in
4671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4672 *) ac_try_echo=$ac_try;;
4673 esac
4674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4675 printf "%s\n" "$ac_try_echo"; } >&5
4676 (eval "$ac_try") 2>&5
4677 ac_status=$?
4678 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4679 test $ac_status = 0; }; }; then
4680 cross_compiling=no
4681 else
4682 if test "$cross_compiling" = maybe; then
4683 cross_compiling=yes
4684 else
4685 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4686 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4687 as_fn_error 77 "cannot run C compiled programs.
4688 If you meant to cross compile, use \`--host'.
4689 See \`config.log' for more details" "$LINENO" 5; }
4690 fi
4691 fi
4692 fi
4693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4694 printf "%s\n" "$cross_compiling" >&6; }
4695
4696 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4697 ac_clean_files=$ac_clean_files_save
4698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4699 printf %s "checking for suffix of object files... " >&6; }
4700 if test ${ac_cv_objext+y}
4701 then :
4702 printf %s "(cached) " >&6
4703 else $as_nop
4704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4705 /* end confdefs.h. */
4706
4707 int
4708 main (void)
4709 {
4710
4711 ;
4712 return 0;
4713 }
4714 _ACEOF
4715 rm -f conftest.o conftest.obj
4716 if { { ac_try="$ac_compile"
4717 case "(($ac_try" in
4718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4719 *) ac_try_echo=$ac_try;;
4720 esac
4721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4722 printf "%s\n" "$ac_try_echo"; } >&5
4723 (eval "$ac_compile") 2>&5
4724 ac_status=$?
4725 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4726 test $ac_status = 0; }
4727 then :
4728 for ac_file in conftest.o conftest.obj conftest.*; do
4729 test -f "$ac_file" || continue;
4730 case $ac_file in
4731 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4732 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4733 break;;
4734 esac
4735 done
4736 else $as_nop
4737 printf "%s\n" "$as_me: failed program was:" >&5
4738 sed 's/^/| /' conftest.$ac_ext >&5
4739
4740 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4741 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4742 as_fn_error $? "cannot compute suffix of object files: cannot compile
4743 See \`config.log' for more details" "$LINENO" 5; }
4744 fi
4745 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4746 fi
4747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4748 printf "%s\n" "$ac_cv_objext" >&6; }
4749 OBJEXT=$ac_cv_objext
4750 ac_objext=$OBJEXT
4751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4752 printf %s "checking whether the compiler supports GNU C... " >&6; }
4753 if test ${ac_cv_c_compiler_gnu+y}
4754 then :
4755 printf %s "(cached) " >&6
4756 else $as_nop
4757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4758 /* end confdefs.h. */
4759
4760 int
4761 main (void)
4762 {
4763 #ifndef __GNUC__
4764 choke me
4765 #endif
4766
4767 ;
4768 return 0;
4769 }
4770 _ACEOF
4771 if ac_fn_c_try_compile "$LINENO"
4772 then :
4773 ac_compiler_gnu=yes
4774 else $as_nop
4775 ac_compiler_gnu=no
4776 fi
4777 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4778 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4779
4780 fi
4781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4782 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4784
4785 if test $ac_compiler_gnu = yes; then
4786 GCC=yes
4787 else
4788 GCC=
4789 fi
4790 ac_test_CFLAGS=${CFLAGS+y}
4791 ac_save_CFLAGS=$CFLAGS
4792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4793 printf %s "checking whether $CC accepts -g... " >&6; }
4794 if test ${ac_cv_prog_cc_g+y}
4795 then :
4796 printf %s "(cached) " >&6
4797 else $as_nop
4798 ac_save_c_werror_flag=$ac_c_werror_flag
4799 ac_c_werror_flag=yes
4800 ac_cv_prog_cc_g=no
4801 CFLAGS="-g"
4802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4803 /* end confdefs.h. */
4804
4805 int
4806 main (void)
4807 {
4808
4809 ;
4810 return 0;
4811 }
4812 _ACEOF
4813 if ac_fn_c_try_compile "$LINENO"
4814 then :
4815 ac_cv_prog_cc_g=yes
4816 else $as_nop
4817 CFLAGS=""
4818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4819 /* end confdefs.h. */
4820
4821 int
4822 main (void)
4823 {
4824
4825 ;
4826 return 0;
4827 }
4828 _ACEOF
4829 if ac_fn_c_try_compile "$LINENO"
4830 then :
4831
4832 else $as_nop
4833 ac_c_werror_flag=$ac_save_c_werror_flag
4834 CFLAGS="-g"
4835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4836 /* end confdefs.h. */
4837
4838 int
4839 main (void)
4840 {
4841
4842 ;
4843 return 0;
4844 }
4845 _ACEOF
4846 if ac_fn_c_try_compile "$LINENO"
4847 then :
4848 ac_cv_prog_cc_g=yes
4849 fi
4850 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4851 fi
4852 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4853 fi
4854 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4855 ac_c_werror_flag=$ac_save_c_werror_flag
4856 fi
4857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4858 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4859 if test $ac_test_CFLAGS; then
4860 CFLAGS=$ac_save_CFLAGS
4861 elif test $ac_cv_prog_cc_g = yes; then
4862 if test "$GCC" = yes; then
4863 CFLAGS="-g -O2"
4864 else
4865 CFLAGS="-g"
4866 fi
4867 else
4868 if test "$GCC" = yes; then
4869 CFLAGS="-O2"
4870 else
4871 CFLAGS=
4872 fi
4873 fi
4874 ac_prog_cc_stdc=no
4875 if test x$ac_prog_cc_stdc = xno
4876 then :
4877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4878 printf %s "checking for $CC option to enable C11 features... " >&6; }
4879 if test ${ac_cv_prog_cc_c11+y}
4880 then :
4881 printf %s "(cached) " >&6
4882 else $as_nop
4883 ac_cv_prog_cc_c11=no
4884 ac_save_CC=$CC
4885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4886 /* end confdefs.h. */
4887 $ac_c_conftest_c11_program
4888 _ACEOF
4889 for ac_arg in '' -std=gnu11
4890 do
4891 CC="$ac_save_CC $ac_arg"
4892 if ac_fn_c_try_compile "$LINENO"
4893 then :
4894 ac_cv_prog_cc_c11=$ac_arg
4895 fi
4896 rm -f core conftest.err conftest.$ac_objext conftest.beam
4897 test "x$ac_cv_prog_cc_c11" != "xno" && break
4898 done
4899 rm -f conftest.$ac_ext
4900 CC=$ac_save_CC
4901 fi
4902
4903 if test "x$ac_cv_prog_cc_c11" = xno
4904 then :
4905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4906 printf "%s\n" "unsupported" >&6; }
4907 else $as_nop
4908 if test "x$ac_cv_prog_cc_c11" = x
4909 then :
4910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4911 printf "%s\n" "none needed" >&6; }
4912 else $as_nop
4913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4914 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4915 CC="$CC $ac_cv_prog_cc_c11"
4916 fi
4917 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4918 ac_prog_cc_stdc=c11
4919 fi
4920 fi
4921 if test x$ac_prog_cc_stdc = xno
4922 then :
4923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4924 printf %s "checking for $CC option to enable C99 features... " >&6; }
4925 if test ${ac_cv_prog_cc_c99+y}
4926 then :
4927 printf %s "(cached) " >&6
4928 else $as_nop
4929 ac_cv_prog_cc_c99=no
4930 ac_save_CC=$CC
4931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4932 /* end confdefs.h. */
4933 $ac_c_conftest_c99_program
4934 _ACEOF
4935 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4936 do
4937 CC="$ac_save_CC $ac_arg"
4938 if ac_fn_c_try_compile "$LINENO"
4939 then :
4940 ac_cv_prog_cc_c99=$ac_arg
4941 fi
4942 rm -f core conftest.err conftest.$ac_objext conftest.beam
4943 test "x$ac_cv_prog_cc_c99" != "xno" && break
4944 done
4945 rm -f conftest.$ac_ext
4946 CC=$ac_save_CC
4947 fi
4948
4949 if test "x$ac_cv_prog_cc_c99" = xno
4950 then :
4951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4952 printf "%s\n" "unsupported" >&6; }
4953 else $as_nop
4954 if test "x$ac_cv_prog_cc_c99" = x
4955 then :
4956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4957 printf "%s\n" "none needed" >&6; }
4958 else $as_nop
4959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4960 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4961 CC="$CC $ac_cv_prog_cc_c99"
4962 fi
4963 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4964 ac_prog_cc_stdc=c99
4965 fi
4966 fi
4967 if test x$ac_prog_cc_stdc = xno
4968 then :
4969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4970 printf %s "checking for $CC option to enable C89 features... " >&6; }
4971 if test ${ac_cv_prog_cc_c89+y}
4972 then :
4973 printf %s "(cached) " >&6
4974 else $as_nop
4975 ac_cv_prog_cc_c89=no
4976 ac_save_CC=$CC
4977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4978 /* end confdefs.h. */
4979 $ac_c_conftest_c89_program
4980 _ACEOF
4981 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4982 do
4983 CC="$ac_save_CC $ac_arg"
4984 if ac_fn_c_try_compile "$LINENO"
4985 then :
4986 ac_cv_prog_cc_c89=$ac_arg
4987 fi
4988 rm -f core conftest.err conftest.$ac_objext conftest.beam
4989 test "x$ac_cv_prog_cc_c89" != "xno" && break
4990 done
4991 rm -f conftest.$ac_ext
4992 CC=$ac_save_CC
4993 fi
4994
4995 if test "x$ac_cv_prog_cc_c89" = xno
4996 then :
4997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4998 printf "%s\n" "unsupported" >&6; }
4999 else $as_nop
5000 if test "x$ac_cv_prog_cc_c89" = x
5001 then :
5002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5003 printf "%s\n" "none needed" >&6; }
5004 else $as_nop
5005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5006 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5007 CC="$CC $ac_cv_prog_cc_c89"
5008 fi
5009 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5010 ac_prog_cc_stdc=c89
5011 fi
5012 fi
5013
5014 ac_ext=c
5015 ac_cpp='$CPP $CPPFLAGS'
5016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5019
5020
5021 ac_ext=c
5022 ac_cpp='$CPP $CPPFLAGS'
5023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5027 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5028 if test ${am_cv_prog_cc_c_o+y}
5029 then :
5030 printf %s "(cached) " >&6
5031 else $as_nop
5032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5033 /* end confdefs.h. */
5034
5035 int
5036 main (void)
5037 {
5038
5039 ;
5040 return 0;
5041 }
5042 _ACEOF
5043 # Make sure it works both with $CC and with simple cc.
5044 # Following AC_PROG_CC_C_O, we do the test twice because some
5045 # compilers refuse to overwrite an existing .o file with -o,
5046 # though they will create one.
5047 am_cv_prog_cc_c_o=yes
5048 for am_i in 1 2; do
5049 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5050 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5051 ac_status=$?
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); } \
5054 && test -f conftest2.$ac_objext; then
5055 : OK
5056 else
5057 am_cv_prog_cc_c_o=no
5058 break
5059 fi
5060 done
5061 rm -f core conftest*
5062 unset am_i
5063 fi
5064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5065 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5066 if test "$am_cv_prog_cc_c_o" != yes; then
5067 # Losing compiler, so override with the script.
5068 # FIXME: It is wrong to rewrite CC.
5069 # But if we don't then we get into trouble of one sort or another.
5070 # A longer-term fix would be to have automake use am__CC in this case,
5071 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5072 CC="$am_aux_dir/compile $CC"
5073 fi
5074 ac_ext=c
5075 ac_cpp='$CPP $CPPFLAGS'
5076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5079
5080
5081 depcc="$CC" am_compiler_list=
5082
5083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5084 printf %s "checking dependency style of $depcc... " >&6; }
5085 if test ${am_cv_CC_dependencies_compiler_type+y}
5086 then :
5087 printf %s "(cached) " >&6
5088 else $as_nop
5089 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5090 # We make a subdir and do the tests there. Otherwise we can end up
5091 # making bogus files that we don't know about and never remove. For
5092 # instance it was reported that on HP-UX the gcc test will end up
5093 # making a dummy file named 'D' -- because '-MD' means "put the output
5094 # in D".
5095 rm -rf conftest.dir
5096 mkdir conftest.dir
5097 # Copy depcomp to subdir because otherwise we won't find it if we're
5098 # using a relative directory.
5099 cp "$am_depcomp" conftest.dir
5100 cd conftest.dir
5101 # We will build objects and dependencies in a subdirectory because
5102 # it helps to detect inapplicable dependency modes. For instance
5103 # both Tru64's cc and ICC support -MD to output dependencies as a
5104 # side effect of compilation, but ICC will put the dependencies in
5105 # the current directory while Tru64 will put them in the object
5106 # directory.
5107 mkdir sub
5108
5109 am_cv_CC_dependencies_compiler_type=none
5110 if test "$am_compiler_list" = ""; then
5111 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5112 fi
5113 am__universal=false
5114 case " $depcc " in #(
5115 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5116 esac
5117
5118 for depmode in $am_compiler_list; do
5119 # Setup a source with many dependencies, because some compilers
5120 # like to wrap large dependency lists on column 80 (with \), and
5121 # we should not choose a depcomp mode which is confused by this.
5122 #
5123 # We need to recreate these files for each test, as the compiler may
5124 # overwrite some of them when testing with obscure command lines.
5125 # This happens at least with the AIX C compiler.
5126 : > sub/conftest.c
5127 for i in 1 2 3 4 5 6; do
5128 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5129 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5130 # Solaris 10 /bin/sh.
5131 echo '/* dummy */' > sub/conftst$i.h
5132 done
5133 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5134
5135 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5136 # mode. It turns out that the SunPro C++ compiler does not properly
5137 # handle '-M -o', and we need to detect this. Also, some Intel
5138 # versions had trouble with output in subdirs.
5139 am__obj=sub/conftest.${OBJEXT-o}
5140 am__minus_obj="-o $am__obj"
5141 case $depmode in
5142 gcc)
5143 # This depmode causes a compiler race in universal mode.
5144 test "$am__universal" = false || continue
5145 ;;
5146 nosideeffect)
5147 # After this tag, mechanisms are not by side-effect, so they'll
5148 # only be used when explicitly requested.
5149 if test "x$enable_dependency_tracking" = xyes; then
5150 continue
5151 else
5152 break
5153 fi
5154 ;;
5155 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5156 # This compiler won't grok '-c -o', but also, the minuso test has
5157 # not run yet. These depmodes are late enough in the game, and
5158 # so weak that their functioning should not be impacted.
5159 am__obj=conftest.${OBJEXT-o}
5160 am__minus_obj=
5161 ;;
5162 none) break ;;
5163 esac
5164 if depmode=$depmode \
5165 source=sub/conftest.c object=$am__obj \
5166 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5167 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5168 >/dev/null 2>conftest.err &&
5169 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5170 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5171 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5172 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5173 # icc doesn't choke on unknown options, it will just issue warnings
5174 # or remarks (even with -Werror). So we grep stderr for any message
5175 # that says an option was ignored or not supported.
5176 # When given -MP, icc 7.0 and 7.1 complain thusly:
5177 # icc: Command line warning: ignoring option '-M'; no argument required
5178 # The diagnosis changed in icc 8.0:
5179 # icc: Command line remark: option '-MP' not supported
5180 if (grep 'ignoring option' conftest.err ||
5181 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5182 am_cv_CC_dependencies_compiler_type=$depmode
5183 break
5184 fi
5185 fi
5186 done
5187
5188 cd ..
5189 rm -rf conftest.dir
5190 else
5191 am_cv_CC_dependencies_compiler_type=none
5192 fi
5193
5194 fi
5195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5196 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5197 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5198
5199 if
5200 test "x$enable_dependency_tracking" != xno \
5201 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5202 am__fastdepCC_TRUE=
5203 am__fastdepCC_FALSE='#'
5204 else
5205 am__fastdepCC_TRUE='#'
5206 am__fastdepCC_FALSE=
5207 fi
5208
5209
5210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5211 printf %s "checking for a sed that does not truncate output... " >&6; }
5212 if test ${ac_cv_path_SED+y}
5213 then :
5214 printf %s "(cached) " >&6
5215 else $as_nop
5216 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5217 for ac_i in 1 2 3 4 5 6 7; do
5218 ac_script="$ac_script$as_nl$ac_script"
5219 done
5220 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5221 { ac_script=; unset ac_script;}
5222 if test -z "$SED"; then
5223 ac_path_SED_found=false
5224 # Loop through the user's path and test for each of PROGNAME-LIST
5225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226 for as_dir in $PATH
5227 do
5228 IFS=$as_save_IFS
5229 case $as_dir in #(((
5230 '') as_dir=./ ;;
5231 */) ;;
5232 *) as_dir=$as_dir/ ;;
5233 esac
5234 for ac_prog in sed gsed
5235 do
5236 for ac_exec_ext in '' $ac_executable_extensions; do
5237 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5238 as_fn_executable_p "$ac_path_SED" || continue
5239 # Check for GNU ac_path_SED and select it if it is found.
5240 # Check for GNU $ac_path_SED
5241 case `"$ac_path_SED" --version 2>&1` in
5242 *GNU*)
5243 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5244 *)
5245 ac_count=0
5246 printf %s 0123456789 >"conftest.in"
5247 while :
5248 do
5249 cat "conftest.in" "conftest.in" >"conftest.tmp"
5250 mv "conftest.tmp" "conftest.in"
5251 cp "conftest.in" "conftest.nl"
5252 printf "%s\n" '' >> "conftest.nl"
5253 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5254 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5255 as_fn_arith $ac_count + 1 && ac_count=$as_val
5256 if test $ac_count -gt ${ac_path_SED_max-0}; then
5257 # Best one so far, save it but keep looking for a better one
5258 ac_cv_path_SED="$ac_path_SED"
5259 ac_path_SED_max=$ac_count
5260 fi
5261 # 10*(2^10) chars as input seems more than enough
5262 test $ac_count -gt 10 && break
5263 done
5264 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5265 esac
5266
5267 $ac_path_SED_found && break 3
5268 done
5269 done
5270 done
5271 IFS=$as_save_IFS
5272 if test -z "$ac_cv_path_SED"; then
5273 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5274 fi
5275 else
5276 ac_cv_path_SED=$SED
5277 fi
5278
5279 fi
5280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5281 printf "%s\n" "$ac_cv_path_SED" >&6; }
5282 SED="$ac_cv_path_SED"
5283 rm -f conftest.sed
5284
5285 test -z "$SED" && SED=sed
5286 Xsed="$SED -e 1s/^X//"
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5299 printf %s "checking for grep that handles long lines and -e... " >&6; }
5300 if test ${ac_cv_path_GREP+y}
5301 then :
5302 printf %s "(cached) " >&6
5303 else $as_nop
5304 if test -z "$GREP"; then
5305 ac_path_GREP_found=false
5306 # Loop through the user's path and test for each of PROGNAME-LIST
5307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5308 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5309 do
5310 IFS=$as_save_IFS
5311 case $as_dir in #(((
5312 '') as_dir=./ ;;
5313 */) ;;
5314 *) as_dir=$as_dir/ ;;
5315 esac
5316 for ac_prog in grep ggrep
5317 do
5318 for ac_exec_ext in '' $ac_executable_extensions; do
5319 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5320 as_fn_executable_p "$ac_path_GREP" || continue
5321 # Check for GNU ac_path_GREP and select it if it is found.
5322 # Check for GNU $ac_path_GREP
5323 case `"$ac_path_GREP" --version 2>&1` in
5324 *GNU*)
5325 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5326 *)
5327 ac_count=0
5328 printf %s 0123456789 >"conftest.in"
5329 while :
5330 do
5331 cat "conftest.in" "conftest.in" >"conftest.tmp"
5332 mv "conftest.tmp" "conftest.in"
5333 cp "conftest.in" "conftest.nl"
5334 printf "%s\n" 'GREP' >> "conftest.nl"
5335 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5336 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5337 as_fn_arith $ac_count + 1 && ac_count=$as_val
5338 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5339 # Best one so far, save it but keep looking for a better one
5340 ac_cv_path_GREP="$ac_path_GREP"
5341 ac_path_GREP_max=$ac_count
5342 fi
5343 # 10*(2^10) chars as input seems more than enough
5344 test $ac_count -gt 10 && break
5345 done
5346 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5347 esac
5348
5349 $ac_path_GREP_found && break 3
5350 done
5351 done
5352 done
5353 IFS=$as_save_IFS
5354 if test -z "$ac_cv_path_GREP"; then
5355 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5356 fi
5357 else
5358 ac_cv_path_GREP=$GREP
5359 fi
5360
5361 fi
5362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5363 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5364 GREP="$ac_cv_path_GREP"
5365
5366
5367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5368 printf %s "checking for egrep... " >&6; }
5369 if test ${ac_cv_path_EGREP+y}
5370 then :
5371 printf %s "(cached) " >&6
5372 else $as_nop
5373 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5374 then ac_cv_path_EGREP="$GREP -E"
5375 else
5376 if test -z "$EGREP"; then
5377 ac_path_EGREP_found=false
5378 # Loop through the user's path and test for each of PROGNAME-LIST
5379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5380 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5381 do
5382 IFS=$as_save_IFS
5383 case $as_dir in #(((
5384 '') as_dir=./ ;;
5385 */) ;;
5386 *) as_dir=$as_dir/ ;;
5387 esac
5388 for ac_prog in egrep
5389 do
5390 for ac_exec_ext in '' $ac_executable_extensions; do
5391 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5392 as_fn_executable_p "$ac_path_EGREP" || continue
5393 # Check for GNU ac_path_EGREP and select it if it is found.
5394 # Check for GNU $ac_path_EGREP
5395 case `"$ac_path_EGREP" --version 2>&1` in
5396 *GNU*)
5397 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5398 *)
5399 ac_count=0
5400 printf %s 0123456789 >"conftest.in"
5401 while :
5402 do
5403 cat "conftest.in" "conftest.in" >"conftest.tmp"
5404 mv "conftest.tmp" "conftest.in"
5405 cp "conftest.in" "conftest.nl"
5406 printf "%s\n" 'EGREP' >> "conftest.nl"
5407 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5408 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5409 as_fn_arith $ac_count + 1 && ac_count=$as_val
5410 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5411 # Best one so far, save it but keep looking for a better one
5412 ac_cv_path_EGREP="$ac_path_EGREP"
5413 ac_path_EGREP_max=$ac_count
5414 fi
5415 # 10*(2^10) chars as input seems more than enough
5416 test $ac_count -gt 10 && break
5417 done
5418 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5419 esac
5420
5421 $ac_path_EGREP_found && break 3
5422 done
5423 done
5424 done
5425 IFS=$as_save_IFS
5426 if test -z "$ac_cv_path_EGREP"; then
5427 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5428 fi
5429 else
5430 ac_cv_path_EGREP=$EGREP
5431 fi
5432
5433 fi
5434 fi
5435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5436 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5437 EGREP="$ac_cv_path_EGREP"
5438
5439
5440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5441 printf %s "checking for fgrep... " >&6; }
5442 if test ${ac_cv_path_FGREP+y}
5443 then :
5444 printf %s "(cached) " >&6
5445 else $as_nop
5446 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5447 then ac_cv_path_FGREP="$GREP -F"
5448 else
5449 if test -z "$FGREP"; then
5450 ac_path_FGREP_found=false
5451 # Loop through the user's path and test for each of PROGNAME-LIST
5452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5453 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5454 do
5455 IFS=$as_save_IFS
5456 case $as_dir in #(((
5457 '') as_dir=./ ;;
5458 */) ;;
5459 *) as_dir=$as_dir/ ;;
5460 esac
5461 for ac_prog in fgrep
5462 do
5463 for ac_exec_ext in '' $ac_executable_extensions; do
5464 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5465 as_fn_executable_p "$ac_path_FGREP" || continue
5466 # Check for GNU ac_path_FGREP and select it if it is found.
5467 # Check for GNU $ac_path_FGREP
5468 case `"$ac_path_FGREP" --version 2>&1` in
5469 *GNU*)
5470 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5471 *)
5472 ac_count=0
5473 printf %s 0123456789 >"conftest.in"
5474 while :
5475 do
5476 cat "conftest.in" "conftest.in" >"conftest.tmp"
5477 mv "conftest.tmp" "conftest.in"
5478 cp "conftest.in" "conftest.nl"
5479 printf "%s\n" 'FGREP' >> "conftest.nl"
5480 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5481 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5482 as_fn_arith $ac_count + 1 && ac_count=$as_val
5483 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5484 # Best one so far, save it but keep looking for a better one
5485 ac_cv_path_FGREP="$ac_path_FGREP"
5486 ac_path_FGREP_max=$ac_count
5487 fi
5488 # 10*(2^10) chars as input seems more than enough
5489 test $ac_count -gt 10 && break
5490 done
5491 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5492 esac
5493
5494 $ac_path_FGREP_found && break 3
5495 done
5496 done
5497 done
5498 IFS=$as_save_IFS
5499 if test -z "$ac_cv_path_FGREP"; then
5500 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5501 fi
5502 else
5503 ac_cv_path_FGREP=$FGREP
5504 fi
5505
5506 fi
5507 fi
5508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5509 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5510 FGREP="$ac_cv_path_FGREP"
5511
5512
5513 test -z "$GREP" && GREP=grep
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533 # Check whether --with-gnu-ld was given.
5534 if test ${with_gnu_ld+y}
5535 then :
5536 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5537 else $as_nop
5538 with_gnu_ld=no
5539 fi
5540
5541 ac_prog=ld
5542 if test yes = "$GCC"; then
5543 # Check if gcc -print-prog-name=ld gives a path.
5544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5545 printf %s "checking for ld used by $CC... " >&6; }
5546 case $host in
5547 *-*-mingw*)
5548 # gcc leaves a trailing carriage return, which upsets mingw
5549 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5550 *)
5551 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5552 esac
5553 case $ac_prog in
5554 # Accept absolute paths.
5555 [\\/]* | ?:[\\/]*)
5556 re_direlt='/[^/][^/]*/\.\./'
5557 # Canonicalize the pathname of ld
5558 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5559 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5560 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5561 done
5562 test -z "$LD" && LD=$ac_prog
5563 ;;
5564 "")
5565 # If it fails, then pretend we aren't using GCC.
5566 ac_prog=ld
5567 ;;
5568 *)
5569 # If it is relative, then search for the first ld in PATH.
5570 with_gnu_ld=unknown
5571 ;;
5572 esac
5573 elif test yes = "$with_gnu_ld"; then
5574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5575 printf %s "checking for GNU ld... " >&6; }
5576 else
5577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5578 printf %s "checking for non-GNU ld... " >&6; }
5579 fi
5580 if test ${lt_cv_path_LD+y}
5581 then :
5582 printf %s "(cached) " >&6
5583 else $as_nop
5584 if test -z "$LD"; then
5585 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5586 for ac_dir in $PATH; do
5587 IFS=$lt_save_ifs
5588 test -z "$ac_dir" && ac_dir=.
5589 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5590 lt_cv_path_LD=$ac_dir/$ac_prog
5591 # Check to see if the program is GNU ld. I'd rather use --version,
5592 # but apparently some variants of GNU ld only accept -v.
5593 # Break only if it was the GNU/non-GNU ld that we prefer.
5594 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5595 *GNU* | *'with BFD'*)
5596 test no != "$with_gnu_ld" && break
5597 ;;
5598 *)
5599 test yes != "$with_gnu_ld" && break
5600 ;;
5601 esac
5602 fi
5603 done
5604 IFS=$lt_save_ifs
5605 else
5606 lt_cv_path_LD=$LD # Let the user override the test with a path.
5607 fi
5608 fi
5609
5610 LD=$lt_cv_path_LD
5611 if test -n "$LD"; then
5612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5613 printf "%s\n" "$LD" >&6; }
5614 else
5615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5616 printf "%s\n" "no" >&6; }
5617 fi
5618 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5620 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5621 if test ${lt_cv_prog_gnu_ld+y}
5622 then :
5623 printf %s "(cached) " >&6
5624 else $as_nop
5625 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5626 case `$LD -v 2>&1 </dev/null` in
5627 *GNU* | *'with BFD'*)
5628 lt_cv_prog_gnu_ld=yes
5629 ;;
5630 *)
5631 lt_cv_prog_gnu_ld=no
5632 ;;
5633 esac
5634 fi
5635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5636 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5637 with_gnu_ld=$lt_cv_prog_gnu_ld
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5648 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5649 if test ${lt_cv_path_NM+y}
5650 then :
5651 printf %s "(cached) " >&6
5652 else $as_nop
5653 if test -n "$NM"; then
5654 # Let the user override the test.
5655 lt_cv_path_NM=$NM
5656 else
5657 lt_nm_to_check=${ac_tool_prefix}nm
5658 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5659 lt_nm_to_check="$lt_nm_to_check nm"
5660 fi
5661 for lt_tmp_nm in $lt_nm_to_check; do
5662 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5663 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5664 IFS=$lt_save_ifs
5665 test -z "$ac_dir" && ac_dir=.
5666 tmp_nm=$ac_dir/$lt_tmp_nm
5667 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5668 # Check to see if the nm accepts a BSD-compat flag.
5669 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5670 # nm: unknown option "B" ignored
5671 # Tru64's nm complains that /dev/null is an invalid object file
5672 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5673 case $build_os in
5674 mingw*) lt_bad_file=conftest.nm/nofile ;;
5675 *) lt_bad_file=/dev/null ;;
5676 esac
5677 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5678 *$lt_bad_file* | *'Invalid file or object type'*)
5679 lt_cv_path_NM="$tmp_nm -B"
5680 break 2
5681 ;;
5682 *)
5683 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5684 */dev/null*)
5685 lt_cv_path_NM="$tmp_nm -p"
5686 break 2
5687 ;;
5688 *)
5689 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5690 continue # so that we can try to find one that supports BSD flags
5691 ;;
5692 esac
5693 ;;
5694 esac
5695 fi
5696 done
5697 IFS=$lt_save_ifs
5698 done
5699 : ${lt_cv_path_NM=no}
5700 fi
5701 fi
5702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5703 printf "%s\n" "$lt_cv_path_NM" >&6; }
5704 if test no != "$lt_cv_path_NM"; then
5705 NM=$lt_cv_path_NM
5706 else
5707 # Didn't find any BSD compatible name lister, look for dumpbin.
5708 if test -n "$DUMPBIN"; then :
5709 # Let the user override the test.
5710 else
5711 if test -n "$ac_tool_prefix"; then
5712 for ac_prog in dumpbin "link -dump"
5713 do
5714 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5715 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5717 printf %s "checking for $ac_word... " >&6; }
5718 if test ${ac_cv_prog_DUMPBIN+y}
5719 then :
5720 printf %s "(cached) " >&6
5721 else $as_nop
5722 if test -n "$DUMPBIN"; then
5723 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5724 else
5725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726 for as_dir in $PATH
5727 do
5728 IFS=$as_save_IFS
5729 case $as_dir in #(((
5730 '') as_dir=./ ;;
5731 */) ;;
5732 *) as_dir=$as_dir/ ;;
5733 esac
5734 for ac_exec_ext in '' $ac_executable_extensions; do
5735 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5736 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5737 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5738 break 2
5739 fi
5740 done
5741 done
5742 IFS=$as_save_IFS
5743
5744 fi
5745 fi
5746 DUMPBIN=$ac_cv_prog_DUMPBIN
5747 if test -n "$DUMPBIN"; then
5748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5749 printf "%s\n" "$DUMPBIN" >&6; }
5750 else
5751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5752 printf "%s\n" "no" >&6; }
5753 fi
5754
5755
5756 test -n "$DUMPBIN" && break
5757 done
5758 fi
5759 if test -z "$DUMPBIN"; then
5760 ac_ct_DUMPBIN=$DUMPBIN
5761 for ac_prog in dumpbin "link -dump"
5762 do
5763 # Extract the first word of "$ac_prog", so it can be a program name with args.
5764 set dummy $ac_prog; ac_word=$2
5765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5766 printf %s "checking for $ac_word... " >&6; }
5767 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5768 then :
5769 printf %s "(cached) " >&6
5770 else $as_nop
5771 if test -n "$ac_ct_DUMPBIN"; then
5772 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5773 else
5774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5775 for as_dir in $PATH
5776 do
5777 IFS=$as_save_IFS
5778 case $as_dir in #(((
5779 '') as_dir=./ ;;
5780 */) ;;
5781 *) as_dir=$as_dir/ ;;
5782 esac
5783 for ac_exec_ext in '' $ac_executable_extensions; do
5784 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5785 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5786 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5787 break 2
5788 fi
5789 done
5790 done
5791 IFS=$as_save_IFS
5792
5793 fi
5794 fi
5795 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5796 if test -n "$ac_ct_DUMPBIN"; then
5797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5798 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5799 else
5800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5801 printf "%s\n" "no" >&6; }
5802 fi
5803
5804
5805 test -n "$ac_ct_DUMPBIN" && break
5806 done
5807
5808 if test "x$ac_ct_DUMPBIN" = x; then
5809 DUMPBIN=":"
5810 else
5811 case $cross_compiling:$ac_tool_warned in
5812 yes:)
5813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5814 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5815 ac_tool_warned=yes ;;
5816 esac
5817 DUMPBIN=$ac_ct_DUMPBIN
5818 fi
5819 fi
5820
5821 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5822 *COFF*)
5823 DUMPBIN="$DUMPBIN -symbols -headers"
5824 ;;
5825 *)
5826 DUMPBIN=:
5827 ;;
5828 esac
5829 fi
5830
5831 if test : != "$DUMPBIN"; then
5832 NM=$DUMPBIN
5833 fi
5834 fi
5835 test -z "$NM" && NM=nm
5836
5837
5838
5839
5840
5841
5842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5843 printf %s "checking the name lister ($NM) interface... " >&6; }
5844 if test ${lt_cv_nm_interface+y}
5845 then :
5846 printf %s "(cached) " >&6
5847 else $as_nop
5848 lt_cv_nm_interface="BSD nm"
5849 echo "int some_variable = 0;" > conftest.$ac_ext
5850 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5851 (eval "$ac_compile" 2>conftest.err)
5852 cat conftest.err >&5
5853 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5854 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5855 cat conftest.err >&5
5856 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5857 cat conftest.out >&5
5858 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5859 lt_cv_nm_interface="MS dumpbin"
5860 fi
5861 rm -f conftest*
5862 fi
5863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5864 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5865
5866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5867 printf %s "checking whether ln -s works... " >&6; }
5868 LN_S=$as_ln_s
5869 if test "$LN_S" = "ln -s"; then
5870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5871 printf "%s\n" "yes" >&6; }
5872 else
5873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5874 printf "%s\n" "no, using $LN_S" >&6; }
5875 fi
5876
5877 # find the maximum length of command line arguments
5878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5879 printf %s "checking the maximum length of command line arguments... " >&6; }
5880 if test ${lt_cv_sys_max_cmd_len+y}
5881 then :
5882 printf %s "(cached) " >&6
5883 else $as_nop
5884 i=0
5885 teststring=ABCD
5886
5887 case $build_os in
5888 msdosdjgpp*)
5889 # On DJGPP, this test can blow up pretty badly due to problems in libc
5890 # (any single argument exceeding 2000 bytes causes a buffer overrun
5891 # during glob expansion). Even if it were fixed, the result of this
5892 # check would be larger than it should be.
5893 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5894 ;;
5895
5896 gnu*)
5897 # Under GNU Hurd, this test is not required because there is
5898 # no limit to the length of command line arguments.
5899 # Libtool will interpret -1 as no limit whatsoever
5900 lt_cv_sys_max_cmd_len=-1;
5901 ;;
5902
5903 cygwin* | mingw* | cegcc*)
5904 # On Win9x/ME, this test blows up -- it succeeds, but takes
5905 # about 5 minutes as the teststring grows exponentially.
5906 # Worse, since 9x/ME are not pre-emptively multitasking,
5907 # you end up with a "frozen" computer, even though with patience
5908 # the test eventually succeeds (with a max line length of 256k).
5909 # Instead, let's just punt: use the minimum linelength reported by
5910 # all of the supported platforms: 8192 (on NT/2K/XP).
5911 lt_cv_sys_max_cmd_len=8192;
5912 ;;
5913
5914 mint*)
5915 # On MiNT this can take a long time and run out of memory.
5916 lt_cv_sys_max_cmd_len=8192;
5917 ;;
5918
5919 amigaos*)
5920 # On AmigaOS with pdksh, this test takes hours, literally.
5921 # So we just punt and use a minimum line length of 8192.
5922 lt_cv_sys_max_cmd_len=8192;
5923 ;;
5924
5925 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5926 # This has been around since 386BSD, at least. Likely further.
5927 if test -x /sbin/sysctl; then
5928 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5929 elif test -x /usr/sbin/sysctl; then
5930 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5931 else
5932 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5933 fi
5934 # And add a safety zone
5935 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5936 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5937 ;;
5938
5939 interix*)
5940 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5941 lt_cv_sys_max_cmd_len=196608
5942 ;;
5943
5944 os2*)
5945 # The test takes a long time on OS/2.
5946 lt_cv_sys_max_cmd_len=8192
5947 ;;
5948
5949 osf*)
5950 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5951 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5952 # nice to cause kernel panics so lets avoid the loop below.
5953 # First set a reasonable default.
5954 lt_cv_sys_max_cmd_len=16384
5955 #
5956 if test -x /sbin/sysconfig; then
5957 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5958 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5959 esac
5960 fi
5961 ;;
5962 sco3.2v5*)
5963 lt_cv_sys_max_cmd_len=102400
5964 ;;
5965 sysv5* | sco5v6* | sysv4.2uw2*)
5966 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5967 if test -n "$kargmax"; then
5968 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5969 else
5970 lt_cv_sys_max_cmd_len=32768
5971 fi
5972 ;;
5973 *)
5974 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5975 if test -n "$lt_cv_sys_max_cmd_len" && \
5976 test undefined != "$lt_cv_sys_max_cmd_len"; then
5977 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5978 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5979 else
5980 # Make teststring a little bigger before we do anything with it.
5981 # a 1K string should be a reasonable start.
5982 for i in 1 2 3 4 5 6 7 8; do
5983 teststring=$teststring$teststring
5984 done
5985 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5986 # If test is not a shell built-in, we'll probably end up computing a
5987 # maximum length that is only half of the actual maximum length, but
5988 # we can't tell.
5989 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5990 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5991 test 17 != "$i" # 1/2 MB should be enough
5992 do
5993 i=`expr $i + 1`
5994 teststring=$teststring$teststring
5995 done
5996 # Only check the string length outside the loop.
5997 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5998 teststring=
5999 # Add a significant safety factor because C++ compilers can tack on
6000 # massive amounts of additional arguments before passing them to the
6001 # linker. It appears as though 1/2 is a usable value.
6002 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6003 fi
6004 ;;
6005 esac
6006
6007 fi
6008
6009 if test -n "$lt_cv_sys_max_cmd_len"; then
6010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6011 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6012 else
6013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6014 printf "%s\n" "none" >&6; }
6015 fi
6016 max_cmd_len=$lt_cv_sys_max_cmd_len
6017
6018
6019
6020
6021
6022
6023 : ${CP="cp -f"}
6024 : ${MV="mv -f"}
6025 : ${RM="rm -f"}
6026
6027 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6028 lt_unset=unset
6029 else
6030 lt_unset=false
6031 fi
6032
6033
6034
6035
6036
6037 # test EBCDIC or ASCII
6038 case `echo X|tr X '\101'` in
6039 A) # ASCII based system
6040 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6041 lt_SP2NL='tr \040 \012'
6042 lt_NL2SP='tr \015\012 \040\040'
6043 ;;
6044 *) # EBCDIC based system
6045 lt_SP2NL='tr \100 \n'
6046 lt_NL2SP='tr \r\n \100\100'
6047 ;;
6048 esac
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6059 printf %s "checking how to convert $build file names to $host format... " >&6; }
6060 if test ${lt_cv_to_host_file_cmd+y}
6061 then :
6062 printf %s "(cached) " >&6
6063 else $as_nop
6064 case $host in
6065 *-*-mingw* )
6066 case $build in
6067 *-*-mingw* ) # actually msys
6068 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6069 ;;
6070 *-*-cygwin* )
6071 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6072 ;;
6073 * ) # otherwise, assume *nix
6074 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6075 ;;
6076 esac
6077 ;;
6078 *-*-cygwin* )
6079 case $build in
6080 *-*-mingw* ) # actually msys
6081 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6082 ;;
6083 *-*-cygwin* )
6084 lt_cv_to_host_file_cmd=func_convert_file_noop
6085 ;;
6086 * ) # otherwise, assume *nix
6087 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6088 ;;
6089 esac
6090 ;;
6091 * ) # unhandled hosts (and "normal" native builds)
6092 lt_cv_to_host_file_cmd=func_convert_file_noop
6093 ;;
6094 esac
6095
6096 fi
6097
6098 to_host_file_cmd=$lt_cv_to_host_file_cmd
6099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6100 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6101
6102
6103
6104
6105
6106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6107 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6108 if test ${lt_cv_to_tool_file_cmd+y}
6109 then :
6110 printf %s "(cached) " >&6
6111 else $as_nop
6112 #assume ordinary cross tools, or native build.
6113 lt_cv_to_tool_file_cmd=func_convert_file_noop
6114 case $host in
6115 *-*-mingw* )
6116 case $build in
6117 *-*-mingw* ) # actually msys
6118 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6119 ;;
6120 esac
6121 ;;
6122 esac
6123
6124 fi
6125
6126 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6128 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6129
6130
6131
6132
6133
6134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6135 printf %s "checking for $LD option to reload object files... " >&6; }
6136 if test ${lt_cv_ld_reload_flag+y}
6137 then :
6138 printf %s "(cached) " >&6
6139 else $as_nop
6140 lt_cv_ld_reload_flag='-r'
6141 fi
6142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6143 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6144 reload_flag=$lt_cv_ld_reload_flag
6145 case $reload_flag in
6146 "" | " "*) ;;
6147 *) reload_flag=" $reload_flag" ;;
6148 esac
6149 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6150 case $host_os in
6151 cygwin* | mingw* | pw32* | cegcc*)
6152 if test yes != "$GCC"; then
6153 reload_cmds=false
6154 fi
6155 ;;
6156 darwin*)
6157 if test yes = "$GCC"; then
6158 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6159 else
6160 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6161 fi
6162 ;;
6163 esac
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173 if test -n "$ac_tool_prefix"; then
6174 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6175 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6177 printf %s "checking for $ac_word... " >&6; }
6178 if test ${ac_cv_prog_OBJDUMP+y}
6179 then :
6180 printf %s "(cached) " >&6
6181 else $as_nop
6182 if test -n "$OBJDUMP"; then
6183 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6184 else
6185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6186 for as_dir in $PATH
6187 do
6188 IFS=$as_save_IFS
6189 case $as_dir in #(((
6190 '') as_dir=./ ;;
6191 */) ;;
6192 *) as_dir=$as_dir/ ;;
6193 esac
6194 for ac_exec_ext in '' $ac_executable_extensions; do
6195 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6196 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6197 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6198 break 2
6199 fi
6200 done
6201 done
6202 IFS=$as_save_IFS
6203
6204 fi
6205 fi
6206 OBJDUMP=$ac_cv_prog_OBJDUMP
6207 if test -n "$OBJDUMP"; then
6208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6209 printf "%s\n" "$OBJDUMP" >&6; }
6210 else
6211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6212 printf "%s\n" "no" >&6; }
6213 fi
6214
6215
6216 fi
6217 if test -z "$ac_cv_prog_OBJDUMP"; then
6218 ac_ct_OBJDUMP=$OBJDUMP
6219 # Extract the first word of "objdump", so it can be a program name with args.
6220 set dummy objdump; ac_word=$2
6221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6222 printf %s "checking for $ac_word... " >&6; }
6223 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6224 then :
6225 printf %s "(cached) " >&6
6226 else $as_nop
6227 if test -n "$ac_ct_OBJDUMP"; then
6228 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6229 else
6230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6231 for as_dir in $PATH
6232 do
6233 IFS=$as_save_IFS
6234 case $as_dir in #(((
6235 '') as_dir=./ ;;
6236 */) ;;
6237 *) as_dir=$as_dir/ ;;
6238 esac
6239 for ac_exec_ext in '' $ac_executable_extensions; do
6240 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6241 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6242 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6243 break 2
6244 fi
6245 done
6246 done
6247 IFS=$as_save_IFS
6248
6249 fi
6250 fi
6251 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6252 if test -n "$ac_ct_OBJDUMP"; then
6253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6254 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6255 else
6256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6257 printf "%s\n" "no" >&6; }
6258 fi
6259
6260 if test "x$ac_ct_OBJDUMP" = x; then
6261 OBJDUMP="false"
6262 else
6263 case $cross_compiling:$ac_tool_warned in
6264 yes:)
6265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6266 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6267 ac_tool_warned=yes ;;
6268 esac
6269 OBJDUMP=$ac_ct_OBJDUMP
6270 fi
6271 else
6272 OBJDUMP="$ac_cv_prog_OBJDUMP"
6273 fi
6274
6275 test -z "$OBJDUMP" && OBJDUMP=objdump
6276
6277
6278
6279
6280
6281
6282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6283 printf %s "checking how to recognize dependent libraries... " >&6; }
6284 if test ${lt_cv_deplibs_check_method+y}
6285 then :
6286 printf %s "(cached) " >&6
6287 else $as_nop
6288 lt_cv_file_magic_cmd='$MAGIC_CMD'
6289 lt_cv_file_magic_test_file=
6290 lt_cv_deplibs_check_method='unknown'
6291 # Need to set the preceding variable on all platforms that support
6292 # interlibrary dependencies.
6293 # 'none' -- dependencies not supported.
6294 # 'unknown' -- same as none, but documents that we really don't know.
6295 # 'pass_all' -- all dependencies passed with no checks.
6296 # 'test_compile' -- check by making test program.
6297 # 'file_magic [[regex]]' -- check by looking for files in library path
6298 # that responds to the $file_magic_cmd with a given extended regex.
6299 # If you have 'file' or equivalent on your system and you're not sure
6300 # whether 'pass_all' will *always* work, you probably want this one.
6301
6302 case $host_os in
6303 aix[4-9]*)
6304 lt_cv_deplibs_check_method=pass_all
6305 ;;
6306
6307 beos*)
6308 lt_cv_deplibs_check_method=pass_all
6309 ;;
6310
6311 bsdi[45]*)
6312 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6313 lt_cv_file_magic_cmd='/usr/bin/file -L'
6314 lt_cv_file_magic_test_file=/shlib/libc.so
6315 ;;
6316
6317 cygwin*)
6318 # func_win32_libid is a shell function defined in ltmain.sh
6319 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6320 lt_cv_file_magic_cmd='func_win32_libid'
6321 ;;
6322
6323 mingw* | pw32*)
6324 # Base MSYS/MinGW do not provide the 'file' command needed by
6325 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6326 # unless we find 'file', for example because we are cross-compiling.
6327 if ( file / ) >/dev/null 2>&1; then
6328 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6329 lt_cv_file_magic_cmd='func_win32_libid'
6330 else
6331 # Keep this pattern in sync with the one in func_win32_libid.
6332 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6333 lt_cv_file_magic_cmd='$OBJDUMP -f'
6334 fi
6335 ;;
6336
6337 cegcc*)
6338 # use the weaker test based on 'objdump'. See mingw*.
6339 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6340 lt_cv_file_magic_cmd='$OBJDUMP -f'
6341 ;;
6342
6343 darwin* | rhapsody*)
6344 lt_cv_deplibs_check_method=pass_all
6345 ;;
6346
6347 freebsd* | dragonfly*)
6348 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6349 case $host_cpu in
6350 i*86 )
6351 # Not sure whether the presence of OpenBSD here was a mistake.
6352 # Let's accept both of them until this is cleared up.
6353 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6354 lt_cv_file_magic_cmd=/usr/bin/file
6355 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6356 ;;
6357 esac
6358 else
6359 lt_cv_deplibs_check_method=pass_all
6360 fi
6361 ;;
6362
6363 haiku*)
6364 lt_cv_deplibs_check_method=pass_all
6365 ;;
6366
6367 hpux10.20* | hpux11*)
6368 lt_cv_file_magic_cmd=/usr/bin/file
6369 case $host_cpu in
6370 ia64*)
6371 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6372 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6373 ;;
6374 hppa*64*)
6375 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6376 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6377 ;;
6378 *)
6379 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6380 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6381 ;;
6382 esac
6383 ;;
6384
6385 interix[3-9]*)
6386 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6387 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6388 ;;
6389
6390 irix5* | irix6* | nonstopux*)
6391 case $LD in
6392 *-32|*"-32 ") libmagic=32-bit;;
6393 *-n32|*"-n32 ") libmagic=N32;;
6394 *-64|*"-64 ") libmagic=64-bit;;
6395 *) libmagic=never-match;;
6396 esac
6397 lt_cv_deplibs_check_method=pass_all
6398 ;;
6399
6400 # This must be glibc/ELF.
6401 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6402 lt_cv_deplibs_check_method=pass_all
6403 ;;
6404
6405 netbsd* | netbsdelf*-gnu)
6406 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6407 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6408 else
6409 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6410 fi
6411 ;;
6412
6413 newos6*)
6414 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6415 lt_cv_file_magic_cmd=/usr/bin/file
6416 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6417 ;;
6418
6419 *nto* | *qnx*)
6420 lt_cv_deplibs_check_method=pass_all
6421 ;;
6422
6423 openbsd* | bitrig*)
6424 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6425 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6426 else
6427 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6428 fi
6429 ;;
6430
6431 osf3* | osf4* | osf5*)
6432 lt_cv_deplibs_check_method=pass_all
6433 ;;
6434
6435 rdos*)
6436 lt_cv_deplibs_check_method=pass_all
6437 ;;
6438
6439 solaris*)
6440 lt_cv_deplibs_check_method=pass_all
6441 ;;
6442
6443 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6444 lt_cv_deplibs_check_method=pass_all
6445 ;;
6446
6447 sysv4 | sysv4.3*)
6448 case $host_vendor in
6449 motorola)
6450 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
6451 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6452 ;;
6453 ncr)
6454 lt_cv_deplibs_check_method=pass_all
6455 ;;
6456 sequent)
6457 lt_cv_file_magic_cmd='/bin/file'
6458 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6459 ;;
6460 sni)
6461 lt_cv_file_magic_cmd='/bin/file'
6462 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6463 lt_cv_file_magic_test_file=/lib/libc.so
6464 ;;
6465 siemens)
6466 lt_cv_deplibs_check_method=pass_all
6467 ;;
6468 pc)
6469 lt_cv_deplibs_check_method=pass_all
6470 ;;
6471 esac
6472 ;;
6473
6474 tpf*)
6475 lt_cv_deplibs_check_method=pass_all
6476 ;;
6477 os2*)
6478 lt_cv_deplibs_check_method=pass_all
6479 ;;
6480 esac
6481
6482 fi
6483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6484 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6485
6486 file_magic_glob=
6487 want_nocaseglob=no
6488 if test "$build" = "$host"; then
6489 case $host_os in
6490 mingw* | pw32*)
6491 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6492 want_nocaseglob=yes
6493 else
6494 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6495 fi
6496 ;;
6497 esac
6498 fi
6499
6500 file_magic_cmd=$lt_cv_file_magic_cmd
6501 deplibs_check_method=$lt_cv_deplibs_check_method
6502 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525 if test -n "$ac_tool_prefix"; then
6526 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6527 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6529 printf %s "checking for $ac_word... " >&6; }
6530 if test ${ac_cv_prog_DLLTOOL+y}
6531 then :
6532 printf %s "(cached) " >&6
6533 else $as_nop
6534 if test -n "$DLLTOOL"; then
6535 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6536 else
6537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6538 for as_dir in $PATH
6539 do
6540 IFS=$as_save_IFS
6541 case $as_dir in #(((
6542 '') as_dir=./ ;;
6543 */) ;;
6544 *) as_dir=$as_dir/ ;;
6545 esac
6546 for ac_exec_ext in '' $ac_executable_extensions; do
6547 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6548 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6549 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6550 break 2
6551 fi
6552 done
6553 done
6554 IFS=$as_save_IFS
6555
6556 fi
6557 fi
6558 DLLTOOL=$ac_cv_prog_DLLTOOL
6559 if test -n "$DLLTOOL"; then
6560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6561 printf "%s\n" "$DLLTOOL" >&6; }
6562 else
6563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6564 printf "%s\n" "no" >&6; }
6565 fi
6566
6567
6568 fi
6569 if test -z "$ac_cv_prog_DLLTOOL"; then
6570 ac_ct_DLLTOOL=$DLLTOOL
6571 # Extract the first word of "dlltool", so it can be a program name with args.
6572 set dummy dlltool; ac_word=$2
6573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6574 printf %s "checking for $ac_word... " >&6; }
6575 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6576 then :
6577 printf %s "(cached) " >&6
6578 else $as_nop
6579 if test -n "$ac_ct_DLLTOOL"; then
6580 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6581 else
6582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583 for as_dir in $PATH
6584 do
6585 IFS=$as_save_IFS
6586 case $as_dir in #(((
6587 '') as_dir=./ ;;
6588 */) ;;
6589 *) as_dir=$as_dir/ ;;
6590 esac
6591 for ac_exec_ext in '' $ac_executable_extensions; do
6592 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6593 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6594 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6595 break 2
6596 fi
6597 done
6598 done
6599 IFS=$as_save_IFS
6600
6601 fi
6602 fi
6603 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6604 if test -n "$ac_ct_DLLTOOL"; then
6605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6606 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6607 else
6608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6609 printf "%s\n" "no" >&6; }
6610 fi
6611
6612 if test "x$ac_ct_DLLTOOL" = x; then
6613 DLLTOOL="false"
6614 else
6615 case $cross_compiling:$ac_tool_warned in
6616 yes:)
6617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6618 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6619 ac_tool_warned=yes ;;
6620 esac
6621 DLLTOOL=$ac_ct_DLLTOOL
6622 fi
6623 else
6624 DLLTOOL="$ac_cv_prog_DLLTOOL"
6625 fi
6626
6627 test -z "$DLLTOOL" && DLLTOOL=dlltool
6628
6629
6630
6631
6632
6633
6634
6635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6636 printf %s "checking how to associate runtime and link libraries... " >&6; }
6637 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6638 then :
6639 printf %s "(cached) " >&6
6640 else $as_nop
6641 lt_cv_sharedlib_from_linklib_cmd='unknown'
6642
6643 case $host_os in
6644 cygwin* | mingw* | pw32* | cegcc*)
6645 # two different shell functions defined in ltmain.sh;
6646 # decide which one to use based on capabilities of $DLLTOOL
6647 case `$DLLTOOL --help 2>&1` in
6648 *--identify-strict*)
6649 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6650 ;;
6651 *)
6652 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6653 ;;
6654 esac
6655 ;;
6656 *)
6657 # fallback: assume linklib IS sharedlib
6658 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6659 ;;
6660 esac
6661
6662 fi
6663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6664 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6665 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6666 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6667
6668
6669
6670
6671
6672
6673
6674
6675 if test -n "$ac_tool_prefix"; then
6676 for ac_prog in ar
6677 do
6678 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6679 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6681 printf %s "checking for $ac_word... " >&6; }
6682 if test ${ac_cv_prog_AR+y}
6683 then :
6684 printf %s "(cached) " >&6
6685 else $as_nop
6686 if test -n "$AR"; then
6687 ac_cv_prog_AR="$AR" # Let the user override the test.
6688 else
6689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690 for as_dir in $PATH
6691 do
6692 IFS=$as_save_IFS
6693 case $as_dir in #(((
6694 '') as_dir=./ ;;
6695 */) ;;
6696 *) as_dir=$as_dir/ ;;
6697 esac
6698 for ac_exec_ext in '' $ac_executable_extensions; do
6699 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6700 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6701 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6702 break 2
6703 fi
6704 done
6705 done
6706 IFS=$as_save_IFS
6707
6708 fi
6709 fi
6710 AR=$ac_cv_prog_AR
6711 if test -n "$AR"; then
6712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6713 printf "%s\n" "$AR" >&6; }
6714 else
6715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6716 printf "%s\n" "no" >&6; }
6717 fi
6718
6719
6720 test -n "$AR" && break
6721 done
6722 fi
6723 if test -z "$AR"; then
6724 ac_ct_AR=$AR
6725 for ac_prog in ar
6726 do
6727 # Extract the first word of "$ac_prog", so it can be a program name with args.
6728 set dummy $ac_prog; ac_word=$2
6729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6730 printf %s "checking for $ac_word... " >&6; }
6731 if test ${ac_cv_prog_ac_ct_AR+y}
6732 then :
6733 printf %s "(cached) " >&6
6734 else $as_nop
6735 if test -n "$ac_ct_AR"; then
6736 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6737 else
6738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739 for as_dir in $PATH
6740 do
6741 IFS=$as_save_IFS
6742 case $as_dir in #(((
6743 '') as_dir=./ ;;
6744 */) ;;
6745 *) as_dir=$as_dir/ ;;
6746 esac
6747 for ac_exec_ext in '' $ac_executable_extensions; do
6748 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6749 ac_cv_prog_ac_ct_AR="$ac_prog"
6750 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6751 break 2
6752 fi
6753 done
6754 done
6755 IFS=$as_save_IFS
6756
6757 fi
6758 fi
6759 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6760 if test -n "$ac_ct_AR"; then
6761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6762 printf "%s\n" "$ac_ct_AR" >&6; }
6763 else
6764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6765 printf "%s\n" "no" >&6; }
6766 fi
6767
6768
6769 test -n "$ac_ct_AR" && break
6770 done
6771
6772 if test "x$ac_ct_AR" = x; then
6773 AR="false"
6774 else
6775 case $cross_compiling:$ac_tool_warned in
6776 yes:)
6777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6778 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6779 ac_tool_warned=yes ;;
6780 esac
6781 AR=$ac_ct_AR
6782 fi
6783 fi
6784
6785 : ${AR=ar}
6786 : ${AR_FLAGS=cr}
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6799 printf %s "checking for archiver @FILE support... " >&6; }
6800 if test ${lt_cv_ar_at_file+y}
6801 then :
6802 printf %s "(cached) " >&6
6803 else $as_nop
6804 lt_cv_ar_at_file=no
6805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6806 /* end confdefs.h. */
6807
6808 int
6809 main (void)
6810 {
6811
6812 ;
6813 return 0;
6814 }
6815 _ACEOF
6816 if ac_fn_c_try_compile "$LINENO"
6817 then :
6818 echo conftest.$ac_objext > conftest.lst
6819 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6820 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6821 (eval $lt_ar_try) 2>&5
6822 ac_status=$?
6823 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6824 test $ac_status = 0; }
6825 if test 0 -eq "$ac_status"; then
6826 # Ensure the archiver fails upon bogus file names.
6827 rm -f conftest.$ac_objext libconftest.a
6828 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6829 (eval $lt_ar_try) 2>&5
6830 ac_status=$?
6831 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6832 test $ac_status = 0; }
6833 if test 0 -ne "$ac_status"; then
6834 lt_cv_ar_at_file=@
6835 fi
6836 fi
6837 rm -f conftest.* libconftest.a
6838
6839 fi
6840 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6841
6842 fi
6843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6844 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6845
6846 if test no = "$lt_cv_ar_at_file"; then
6847 archiver_list_spec=
6848 else
6849 archiver_list_spec=$lt_cv_ar_at_file
6850 fi
6851
6852
6853
6854
6855
6856
6857
6858 if test -n "$ac_tool_prefix"; then
6859 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6860 set dummy ${ac_tool_prefix}strip; ac_word=$2
6861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6862 printf %s "checking for $ac_word... " >&6; }
6863 if test ${ac_cv_prog_STRIP+y}
6864 then :
6865 printf %s "(cached) " >&6
6866 else $as_nop
6867 if test -n "$STRIP"; then
6868 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6869 else
6870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6871 for as_dir in $PATH
6872 do
6873 IFS=$as_save_IFS
6874 case $as_dir in #(((
6875 '') as_dir=./ ;;
6876 */) ;;
6877 *) as_dir=$as_dir/ ;;
6878 esac
6879 for ac_exec_ext in '' $ac_executable_extensions; do
6880 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6881 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6882 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6883 break 2
6884 fi
6885 done
6886 done
6887 IFS=$as_save_IFS
6888
6889 fi
6890 fi
6891 STRIP=$ac_cv_prog_STRIP
6892 if test -n "$STRIP"; then
6893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6894 printf "%s\n" "$STRIP" >&6; }
6895 else
6896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6897 printf "%s\n" "no" >&6; }
6898 fi
6899
6900
6901 fi
6902 if test -z "$ac_cv_prog_STRIP"; then
6903 ac_ct_STRIP=$STRIP
6904 # Extract the first word of "strip", so it can be a program name with args.
6905 set dummy strip; ac_word=$2
6906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6907 printf %s "checking for $ac_word... " >&6; }
6908 if test ${ac_cv_prog_ac_ct_STRIP+y}
6909 then :
6910 printf %s "(cached) " >&6
6911 else $as_nop
6912 if test -n "$ac_ct_STRIP"; then
6913 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6914 else
6915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6916 for as_dir in $PATH
6917 do
6918 IFS=$as_save_IFS
6919 case $as_dir in #(((
6920 '') as_dir=./ ;;
6921 */) ;;
6922 *) as_dir=$as_dir/ ;;
6923 esac
6924 for ac_exec_ext in '' $ac_executable_extensions; do
6925 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6926 ac_cv_prog_ac_ct_STRIP="strip"
6927 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6928 break 2
6929 fi
6930 done
6931 done
6932 IFS=$as_save_IFS
6933
6934 fi
6935 fi
6936 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6937 if test -n "$ac_ct_STRIP"; then
6938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6939 printf "%s\n" "$ac_ct_STRIP" >&6; }
6940 else
6941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6942 printf "%s\n" "no" >&6; }
6943 fi
6944
6945 if test "x$ac_ct_STRIP" = x; then
6946 STRIP=":"
6947 else
6948 case $cross_compiling:$ac_tool_warned in
6949 yes:)
6950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6951 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6952 ac_tool_warned=yes ;;
6953 esac
6954 STRIP=$ac_ct_STRIP
6955 fi
6956 else
6957 STRIP="$ac_cv_prog_STRIP"
6958 fi
6959
6960 test -z "$STRIP" && STRIP=:
6961
6962
6963
6964
6965
6966
6967 if test -n "$ac_tool_prefix"; then
6968 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6969 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6971 printf %s "checking for $ac_word... " >&6; }
6972 if test ${ac_cv_prog_RANLIB+y}
6973 then :
6974 printf %s "(cached) " >&6
6975 else $as_nop
6976 if test -n "$RANLIB"; then
6977 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6978 else
6979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6980 for as_dir in $PATH
6981 do
6982 IFS=$as_save_IFS
6983 case $as_dir in #(((
6984 '') as_dir=./ ;;
6985 */) ;;
6986 *) as_dir=$as_dir/ ;;
6987 esac
6988 for ac_exec_ext in '' $ac_executable_extensions; do
6989 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6990 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6991 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6992 break 2
6993 fi
6994 done
6995 done
6996 IFS=$as_save_IFS
6997
6998 fi
6999 fi
7000 RANLIB=$ac_cv_prog_RANLIB
7001 if test -n "$RANLIB"; then
7002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7003 printf "%s\n" "$RANLIB" >&6; }
7004 else
7005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7006 printf "%s\n" "no" >&6; }
7007 fi
7008
7009
7010 fi
7011 if test -z "$ac_cv_prog_RANLIB"; then
7012 ac_ct_RANLIB=$RANLIB
7013 # Extract the first word of "ranlib", so it can be a program name with args.
7014 set dummy ranlib; ac_word=$2
7015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7016 printf %s "checking for $ac_word... " >&6; }
7017 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7018 then :
7019 printf %s "(cached) " >&6
7020 else $as_nop
7021 if test -n "$ac_ct_RANLIB"; then
7022 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7023 else
7024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7025 for as_dir in $PATH
7026 do
7027 IFS=$as_save_IFS
7028 case $as_dir in #(((
7029 '') as_dir=./ ;;
7030 */) ;;
7031 *) as_dir=$as_dir/ ;;
7032 esac
7033 for ac_exec_ext in '' $ac_executable_extensions; do
7034 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7035 ac_cv_prog_ac_ct_RANLIB="ranlib"
7036 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7037 break 2
7038 fi
7039 done
7040 done
7041 IFS=$as_save_IFS
7042
7043 fi
7044 fi
7045 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7046 if test -n "$ac_ct_RANLIB"; then
7047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7048 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7049 else
7050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7051 printf "%s\n" "no" >&6; }
7052 fi
7053
7054 if test "x$ac_ct_RANLIB" = x; then
7055 RANLIB=":"
7056 else
7057 case $cross_compiling:$ac_tool_warned in
7058 yes:)
7059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7060 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7061 ac_tool_warned=yes ;;
7062 esac
7063 RANLIB=$ac_ct_RANLIB
7064 fi
7065 else
7066 RANLIB="$ac_cv_prog_RANLIB"
7067 fi
7068
7069 test -z "$RANLIB" && RANLIB=:
7070
7071
7072
7073
7074
7075
7076 # Determine commands to create old-style static archives.
7077 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7078 old_postinstall_cmds='chmod 644 $oldlib'
7079 old_postuninstall_cmds=
7080
7081 if test -n "$RANLIB"; then
7082 case $host_os in
7083 bitrig* | openbsd*)
7084 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7085 ;;
7086 *)
7087 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7088 ;;
7089 esac
7090 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7091 fi
7092
7093 case $host_os in
7094 darwin*)
7095 lock_old_archive_extraction=yes ;;
7096 *)
7097 lock_old_archive_extraction=no ;;
7098 esac
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138 # If no C compiler was specified, use CC.
7139 LTCC=${LTCC-"$CC"}
7140
7141 # If no C compiler flags were specified, use CFLAGS.
7142 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7143
7144 # Allow CC to be a program name with arguments.
7145 compiler=$CC
7146
7147
7148 # Check for command to grab the raw symbol name followed by C symbol from nm.
7149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7150 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7151 if test ${lt_cv_sys_global_symbol_pipe+y}
7152 then :
7153 printf %s "(cached) " >&6
7154 else $as_nop
7155
7156 # These are sane defaults that work on at least a few old systems.
7157 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7158
7159 # Character class describing NM global symbol codes.
7160 symcode='[BCDEGRST]'
7161
7162 # Regexp to match symbols that can be accessed directly from C.
7163 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7164
7165 # Define system-specific variables.
7166 case $host_os in
7167 aix*)
7168 symcode='[BCDT]'
7169 ;;
7170 cygwin* | mingw* | pw32* | cegcc*)
7171 symcode='[ABCDGISTW]'
7172 ;;
7173 hpux*)
7174 if test ia64 = "$host_cpu"; then
7175 symcode='[ABCDEGRST]'
7176 fi
7177 ;;
7178 irix* | nonstopux*)
7179 symcode='[BCDEGRST]'
7180 ;;
7181 osf*)
7182 symcode='[BCDEGQRST]'
7183 ;;
7184 solaris*)
7185 symcode='[BDRT]'
7186 ;;
7187 sco3.2v5*)
7188 symcode='[DT]'
7189 ;;
7190 sysv4.2uw2*)
7191 symcode='[DT]'
7192 ;;
7193 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7194 symcode='[ABDT]'
7195 ;;
7196 sysv4)
7197 symcode='[DFNSTU]'
7198 ;;
7199 esac
7200
7201 # If we're using GNU nm, then use its standard symbol codes.
7202 case `$NM -V 2>&1` in
7203 *GNU* | *'with BFD'*)
7204 symcode='[ABCDGIRSTW]' ;;
7205 esac
7206
7207 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7208 # Gets list of data symbols to import.
7209 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7210 # Adjust the below global symbol transforms to fixup imported variables.
7211 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7212 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7213 lt_c_name_lib_hook="\
7214 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7215 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7216 else
7217 # Disable hooks by default.
7218 lt_cv_sys_global_symbol_to_import=
7219 lt_cdecl_hook=
7220 lt_c_name_hook=
7221 lt_c_name_lib_hook=
7222 fi
7223
7224 # Transform an extracted symbol line into a proper C declaration.
7225 # Some systems (esp. on ia64) link data and code symbols differently,
7226 # so use this general approach.
7227 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7228 $lt_cdecl_hook\
7229 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7230 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7231
7232 # Transform an extracted symbol line into symbol name and symbol address
7233 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7234 $lt_c_name_hook\
7235 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7236 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7237
7238 # Transform an extracted symbol line into symbol name with lib prefix and
7239 # symbol address.
7240 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7241 $lt_c_name_lib_hook\
7242 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7243 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7244 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7245
7246 # Handle CRLF in mingw tool chain
7247 opt_cr=
7248 case $build_os in
7249 mingw*)
7250 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7251 ;;
7252 esac
7253
7254 # Try without a prefix underscore, then with it.
7255 for ac_symprfx in "" "_"; do
7256
7257 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7258 symxfrm="\\1 $ac_symprfx\\2 \\2"
7259
7260 # Write the raw and C identifiers.
7261 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7262 # Fake it for dumpbin and say T for any non-static function,
7263 # D for any global variable and I for any imported variable.
7264 # Also find C++ and __fastcall symbols from MSVC++,
7265 # which start with @ or ?.
7266 lt_cv_sys_global_symbol_pipe="$AWK '"\
7267 " {last_section=section; section=\$ 3};"\
7268 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7269 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7270 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7271 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7272 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7273 " \$ 0!~/External *\|/{next};"\
7274 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7275 " {if(hide[section]) next};"\
7276 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7277 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7278 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7279 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7280 " ' prfx=^$ac_symprfx"
7281 else
7282 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7283 fi
7284 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7285
7286 # Check to see that the pipe works correctly.
7287 pipe_works=no
7288
7289 rm -f conftest*
7290 cat > conftest.$ac_ext <<_LT_EOF
7291 #ifdef __cplusplus
7292 extern "C" {
7293 #endif
7294 char nm_test_var;
7295 void nm_test_func(void);
7296 void nm_test_func(void){}
7297 #ifdef __cplusplus
7298 }
7299 #endif
7300 int main(){nm_test_var='a';nm_test_func();return(0);}
7301 _LT_EOF
7302
7303 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7304 (eval $ac_compile) 2>&5
7305 ac_status=$?
7306 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7307 test $ac_status = 0; }; then
7308 # Now try to grab the symbols.
7309 nlist=conftest.nm
7310 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7311 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7312 # Try sorting and uniquifying the output.
7313 if sort "$nlist" | uniq > "$nlist"T; then
7314 mv -f "$nlist"T "$nlist"
7315 else
7316 rm -f "$nlist"T
7317 fi
7318
7319 # Make sure that we snagged all the symbols we need.
7320 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7321 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7322 cat <<_LT_EOF > conftest.$ac_ext
7323 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7324 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7325 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7326 relocations are performed -- see ld's documentation on pseudo-relocs. */
7327 # define LT_DLSYM_CONST
7328 #elif defined __osf__
7329 /* This system does not cope well with relocations in const data. */
7330 # define LT_DLSYM_CONST
7331 #else
7332 # define LT_DLSYM_CONST const
7333 #endif
7334
7335 #ifdef __cplusplus
7336 extern "C" {
7337 #endif
7338
7339 _LT_EOF
7340 # Now generate the symbol file.
7341 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7342
7343 cat <<_LT_EOF >> conftest.$ac_ext
7344
7345 /* The mapping between symbol names and symbols. */
7346 LT_DLSYM_CONST struct {
7347 const char *name;
7348 void *address;
7349 }
7350 lt__PROGRAM__LTX_preloaded_symbols[] =
7351 {
7352 { "@PROGRAM@", (void *) 0 },
7353 _LT_EOF
7354 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7355 cat <<\_LT_EOF >> conftest.$ac_ext
7356 {0, (void *) 0}
7357 };
7358
7359 /* This works around a problem in FreeBSD linker */
7360 #ifdef FREEBSD_WORKAROUND
7361 static const void *lt_preloaded_setup() {
7362 return lt__PROGRAM__LTX_preloaded_symbols;
7363 }
7364 #endif
7365
7366 #ifdef __cplusplus
7367 }
7368 #endif
7369 _LT_EOF
7370 # Now try linking the two files.
7371 mv conftest.$ac_objext conftstm.$ac_objext
7372 lt_globsym_save_LIBS=$LIBS
7373 lt_globsym_save_CFLAGS=$CFLAGS
7374 LIBS=conftstm.$ac_objext
7375 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7376 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7377 (eval $ac_link) 2>&5
7378 ac_status=$?
7379 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7380 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7381 pipe_works=yes
7382 fi
7383 LIBS=$lt_globsym_save_LIBS
7384 CFLAGS=$lt_globsym_save_CFLAGS
7385 else
7386 echo "cannot find nm_test_func in $nlist" >&5
7387 fi
7388 else
7389 echo "cannot find nm_test_var in $nlist" >&5
7390 fi
7391 else
7392 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7393 fi
7394 else
7395 echo "$progname: failed program was:" >&5
7396 cat conftest.$ac_ext >&5
7397 fi
7398 rm -rf conftest* conftst*
7399
7400 # Do not use the global_symbol_pipe unless it works.
7401 if test yes = "$pipe_works"; then
7402 break
7403 else
7404 lt_cv_sys_global_symbol_pipe=
7405 fi
7406 done
7407
7408 fi
7409
7410 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7411 lt_cv_sys_global_symbol_to_cdecl=
7412 fi
7413 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7415 printf "%s\n" "failed" >&6; }
7416 else
7417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7418 printf "%s\n" "ok" >&6; }
7419 fi
7420
7421 # Response file support.
7422 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7423 nm_file_list_spec='@'
7424 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7425 nm_file_list_spec='@'
7426 fi
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7465 printf %s "checking for sysroot... " >&6; }
7466
7467 # Check whether --with-sysroot was given.
7468 if test ${with_sysroot+y}
7469 then :
7470 withval=$with_sysroot;
7471 else $as_nop
7472 with_sysroot=no
7473 fi
7474
7475
7476 lt_sysroot=
7477 case $with_sysroot in #(
7478 yes)
7479 if test yes = "$GCC"; then
7480 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7481 fi
7482 ;; #(
7483 /*)
7484 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7485 ;; #(
7486 no|'')
7487 ;; #(
7488 *)
7489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7490 printf "%s\n" "$with_sysroot" >&6; }
7491 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7492 ;;
7493 esac
7494
7495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7496 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7497
7498
7499
7500
7501
7502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7503 printf %s "checking for a working dd... " >&6; }
7504 if test ${ac_cv_path_lt_DD+y}
7505 then :
7506 printf %s "(cached) " >&6
7507 else $as_nop
7508 printf 0123456789abcdef0123456789abcdef >conftest.i
7509 cat conftest.i conftest.i >conftest2.i
7510 : ${lt_DD:=$DD}
7511 if test -z "$lt_DD"; then
7512 ac_path_lt_DD_found=false
7513 # Loop through the user's path and test for each of PROGNAME-LIST
7514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7515 for as_dir in $PATH
7516 do
7517 IFS=$as_save_IFS
7518 case $as_dir in #(((
7519 '') as_dir=./ ;;
7520 */) ;;
7521 *) as_dir=$as_dir/ ;;
7522 esac
7523 for ac_prog in dd
7524 do
7525 for ac_exec_ext in '' $ac_executable_extensions; do
7526 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7527 as_fn_executable_p "$ac_path_lt_DD" || continue
7528 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7529 cmp -s conftest.i conftest.out \
7530 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7531 fi
7532 $ac_path_lt_DD_found && break 3
7533 done
7534 done
7535 done
7536 IFS=$as_save_IFS
7537 if test -z "$ac_cv_path_lt_DD"; then
7538 :
7539 fi
7540 else
7541 ac_cv_path_lt_DD=$lt_DD
7542 fi
7543
7544 rm -f conftest.i conftest2.i conftest.out
7545 fi
7546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7547 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7548
7549
7550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7551 printf %s "checking how to truncate binary pipes... " >&6; }
7552 if test ${lt_cv_truncate_bin+y}
7553 then :
7554 printf %s "(cached) " >&6
7555 else $as_nop
7556 printf 0123456789abcdef0123456789abcdef >conftest.i
7557 cat conftest.i conftest.i >conftest2.i
7558 lt_cv_truncate_bin=
7559 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7560 cmp -s conftest.i conftest.out \
7561 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7562 fi
7563 rm -f conftest.i conftest2.i conftest.out
7564 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7565 fi
7566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7567 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7568
7569
7570
7571
7572
7573
7574
7575 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7576 func_cc_basename ()
7577 {
7578 for cc_temp in $*""; do
7579 case $cc_temp in
7580 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7581 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7582 \-*) ;;
7583 *) break;;
7584 esac
7585 done
7586 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7587 }
7588
7589 # Check whether --enable-libtool-lock was given.
7590 if test ${enable_libtool_lock+y}
7591 then :
7592 enableval=$enable_libtool_lock;
7593 fi
7594
7595 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7596
7597 # Some flags need to be propagated to the compiler or linker for good
7598 # libtool support.
7599 case $host in
7600 ia64-*-hpux*)
7601 # Find out what ABI is being produced by ac_compile, and set mode
7602 # options accordingly.
7603 echo 'int i;' > conftest.$ac_ext
7604 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7605 (eval $ac_compile) 2>&5
7606 ac_status=$?
7607 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7608 test $ac_status = 0; }; then
7609 case `/usr/bin/file conftest.$ac_objext` in
7610 *ELF-32*)
7611 HPUX_IA64_MODE=32
7612 ;;
7613 *ELF-64*)
7614 HPUX_IA64_MODE=64
7615 ;;
7616 esac
7617 fi
7618 rm -rf conftest*
7619 ;;
7620 *-*-irix6*)
7621 # Find out what ABI is being produced by ac_compile, and set linker
7622 # options accordingly.
7623 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7624 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7625 (eval $ac_compile) 2>&5
7626 ac_status=$?
7627 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7628 test $ac_status = 0; }; then
7629 if test yes = "$lt_cv_prog_gnu_ld"; then
7630 case `/usr/bin/file conftest.$ac_objext` in
7631 *32-bit*)
7632 LD="${LD-ld} -melf32bsmip"
7633 ;;
7634 *N32*)
7635 LD="${LD-ld} -melf32bmipn32"
7636 ;;
7637 *64-bit*)
7638 LD="${LD-ld} -melf64bmip"
7639 ;;
7640 esac
7641 else
7642 case `/usr/bin/file conftest.$ac_objext` in
7643 *32-bit*)
7644 LD="${LD-ld} -32"
7645 ;;
7646 *N32*)
7647 LD="${LD-ld} -n32"
7648 ;;
7649 *64-bit*)
7650 LD="${LD-ld} -64"
7651 ;;
7652 esac
7653 fi
7654 fi
7655 rm -rf conftest*
7656 ;;
7657
7658 mips64*-*linux*)
7659 # Find out what ABI is being produced by ac_compile, and set linker
7660 # options accordingly.
7661 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7662 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7663 (eval $ac_compile) 2>&5
7664 ac_status=$?
7665 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7666 test $ac_status = 0; }; then
7667 emul=elf
7668 case `/usr/bin/file conftest.$ac_objext` in
7669 *32-bit*)
7670 emul="${emul}32"
7671 ;;
7672 *64-bit*)
7673 emul="${emul}64"
7674 ;;
7675 esac
7676 case `/usr/bin/file conftest.$ac_objext` in
7677 *MSB*)
7678 emul="${emul}btsmip"
7679 ;;
7680 *LSB*)
7681 emul="${emul}ltsmip"
7682 ;;
7683 esac
7684 case `/usr/bin/file conftest.$ac_objext` in
7685 *N32*)
7686 emul="${emul}n32"
7687 ;;
7688 esac
7689 LD="${LD-ld} -m $emul"
7690 fi
7691 rm -rf conftest*
7692 ;;
7693
7694 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7695 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7696 # Find out what ABI is being produced by ac_compile, and set linker
7697 # options accordingly. Note that the listed cases only cover the
7698 # situations where additional linker options are needed (such as when
7699 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7700 # vice versa); the common cases where no linker options are needed do
7701 # not appear in the list.
7702 echo 'int i;' > conftest.$ac_ext
7703 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7704 (eval $ac_compile) 2>&5
7705 ac_status=$?
7706 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7707 test $ac_status = 0; }; then
7708 case `/usr/bin/file conftest.o` in
7709 *32-bit*)
7710 case $host in
7711 x86_64-*kfreebsd*-gnu)
7712 LD="${LD-ld} -m elf_i386_fbsd"
7713 ;;
7714 x86_64-*linux*)
7715 case `/usr/bin/file conftest.o` in
7716 *x86-64*)
7717 LD="${LD-ld} -m elf32_x86_64"
7718 ;;
7719 *)
7720 LD="${LD-ld} -m elf_i386"
7721 ;;
7722 esac
7723 ;;
7724 powerpc64le-*linux*)
7725 LD="${LD-ld} -m elf32lppclinux"
7726 ;;
7727 powerpc64-*linux*)
7728 LD="${LD-ld} -m elf32ppclinux"
7729 ;;
7730 s390x-*linux*)
7731 LD="${LD-ld} -m elf_s390"
7732 ;;
7733 sparc64-*linux*)
7734 LD="${LD-ld} -m elf32_sparc"
7735 ;;
7736 esac
7737 ;;
7738 *64-bit*)
7739 case $host in
7740 x86_64-*kfreebsd*-gnu)
7741 LD="${LD-ld} -m elf_x86_64_fbsd"
7742 ;;
7743 x86_64-*linux*)
7744 LD="${LD-ld} -m elf_x86_64"
7745 ;;
7746 powerpcle-*linux*)
7747 LD="${LD-ld} -m elf64lppc"
7748 ;;
7749 powerpc-*linux*)
7750 LD="${LD-ld} -m elf64ppc"
7751 ;;
7752 s390*-*linux*|s390*-*tpf*)
7753 LD="${LD-ld} -m elf64_s390"
7754 ;;
7755 sparc*-*linux*)
7756 LD="${LD-ld} -m elf64_sparc"
7757 ;;
7758 esac
7759 ;;
7760 esac
7761 fi
7762 rm -rf conftest*
7763 ;;
7764
7765 *-*-sco3.2v5*)
7766 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7767 SAVE_CFLAGS=$CFLAGS
7768 CFLAGS="$CFLAGS -belf"
7769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7770 printf %s "checking whether the C compiler needs -belf... " >&6; }
7771 if test ${lt_cv_cc_needs_belf+y}
7772 then :
7773 printf %s "(cached) " >&6
7774 else $as_nop
7775 ac_ext=c
7776 ac_cpp='$CPP $CPPFLAGS'
7777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7780
7781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7782 /* end confdefs.h. */
7783
7784 int
7785 main (void)
7786 {
7787
7788 ;
7789 return 0;
7790 }
7791 _ACEOF
7792 if ac_fn_c_try_link "$LINENO"
7793 then :
7794 lt_cv_cc_needs_belf=yes
7795 else $as_nop
7796 lt_cv_cc_needs_belf=no
7797 fi
7798 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7799 conftest$ac_exeext conftest.$ac_ext
7800 ac_ext=c
7801 ac_cpp='$CPP $CPPFLAGS'
7802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7805
7806 fi
7807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7808 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7809 if test yes != "$lt_cv_cc_needs_belf"; then
7810 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7811 CFLAGS=$SAVE_CFLAGS
7812 fi
7813 ;;
7814 *-*solaris*)
7815 # Find out what ABI is being produced by ac_compile, and set linker
7816 # options accordingly.
7817 echo 'int i;' > conftest.$ac_ext
7818 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7819 (eval $ac_compile) 2>&5
7820 ac_status=$?
7821 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7822 test $ac_status = 0; }; then
7823 case `/usr/bin/file conftest.o` in
7824 *64-bit*)
7825 case $lt_cv_prog_gnu_ld in
7826 yes*)
7827 case $host in
7828 i?86-*-solaris*|x86_64-*-solaris*)
7829 LD="${LD-ld} -m elf_x86_64"
7830 ;;
7831 sparc*-*-solaris*)
7832 LD="${LD-ld} -m elf64_sparc"
7833 ;;
7834 esac
7835 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7836 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7837 LD=${LD-ld}_sol2
7838 fi
7839 ;;
7840 *)
7841 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7842 LD="${LD-ld} -64"
7843 fi
7844 ;;
7845 esac
7846 ;;
7847 esac
7848 fi
7849 rm -rf conftest*
7850 ;;
7851 esac
7852
7853 need_locks=$enable_libtool_lock
7854
7855 if test -n "$ac_tool_prefix"; then
7856 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7857 set dummy ${ac_tool_prefix}mt; ac_word=$2
7858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7859 printf %s "checking for $ac_word... " >&6; }
7860 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7861 then :
7862 printf %s "(cached) " >&6
7863 else $as_nop
7864 if test -n "$MANIFEST_TOOL"; then
7865 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7866 else
7867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7868 for as_dir in $PATH
7869 do
7870 IFS=$as_save_IFS
7871 case $as_dir in #(((
7872 '') as_dir=./ ;;
7873 */) ;;
7874 *) as_dir=$as_dir/ ;;
7875 esac
7876 for ac_exec_ext in '' $ac_executable_extensions; do
7877 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7878 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7879 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7880 break 2
7881 fi
7882 done
7883 done
7884 IFS=$as_save_IFS
7885
7886 fi
7887 fi
7888 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7889 if test -n "$MANIFEST_TOOL"; then
7890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7891 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7892 else
7893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7894 printf "%s\n" "no" >&6; }
7895 fi
7896
7897
7898 fi
7899 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7900 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7901 # Extract the first word of "mt", so it can be a program name with args.
7902 set dummy mt; ac_word=$2
7903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7904 printf %s "checking for $ac_word... " >&6; }
7905 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7906 then :
7907 printf %s "(cached) " >&6
7908 else $as_nop
7909 if test -n "$ac_ct_MANIFEST_TOOL"; then
7910 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7911 else
7912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7913 for as_dir in $PATH
7914 do
7915 IFS=$as_save_IFS
7916 case $as_dir in #(((
7917 '') as_dir=./ ;;
7918 */) ;;
7919 *) as_dir=$as_dir/ ;;
7920 esac
7921 for ac_exec_ext in '' $ac_executable_extensions; do
7922 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7923 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7924 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7925 break 2
7926 fi
7927 done
7928 done
7929 IFS=$as_save_IFS
7930
7931 fi
7932 fi
7933 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7934 if test -n "$ac_ct_MANIFEST_TOOL"; then
7935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7936 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7937 else
7938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7939 printf "%s\n" "no" >&6; }
7940 fi
7941
7942 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7943 MANIFEST_TOOL=":"
7944 else
7945 case $cross_compiling:$ac_tool_warned in
7946 yes:)
7947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7948 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7949 ac_tool_warned=yes ;;
7950 esac
7951 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7952 fi
7953 else
7954 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7955 fi
7956
7957 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7959 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7960 if test ${lt_cv_path_mainfest_tool+y}
7961 then :
7962 printf %s "(cached) " >&6
7963 else $as_nop
7964 lt_cv_path_mainfest_tool=no
7965 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7966 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7967 cat conftest.err >&5
7968 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7969 lt_cv_path_mainfest_tool=yes
7970 fi
7971 rm -f conftest*
7972 fi
7973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7974 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7975 if test yes != "$lt_cv_path_mainfest_tool"; then
7976 MANIFEST_TOOL=:
7977 fi
7978
7979
7980
7981
7982
7983
7984 case $host_os in
7985 rhapsody* | darwin*)
7986 if test -n "$ac_tool_prefix"; then
7987 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7988 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7990 printf %s "checking for $ac_word... " >&6; }
7991 if test ${ac_cv_prog_DSYMUTIL+y}
7992 then :
7993 printf %s "(cached) " >&6
7994 else $as_nop
7995 if test -n "$DSYMUTIL"; then
7996 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7997 else
7998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7999 for as_dir in $PATH
8000 do
8001 IFS=$as_save_IFS
8002 case $as_dir in #(((
8003 '') as_dir=./ ;;
8004 */) ;;
8005 *) as_dir=$as_dir/ ;;
8006 esac
8007 for ac_exec_ext in '' $ac_executable_extensions; do
8008 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8009 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8010 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8011 break 2
8012 fi
8013 done
8014 done
8015 IFS=$as_save_IFS
8016
8017 fi
8018 fi
8019 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8020 if test -n "$DSYMUTIL"; then
8021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8022 printf "%s\n" "$DSYMUTIL" >&6; }
8023 else
8024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8025 printf "%s\n" "no" >&6; }
8026 fi
8027
8028
8029 fi
8030 if test -z "$ac_cv_prog_DSYMUTIL"; then
8031 ac_ct_DSYMUTIL=$DSYMUTIL
8032 # Extract the first word of "dsymutil", so it can be a program name with args.
8033 set dummy dsymutil; ac_word=$2
8034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8035 printf %s "checking for $ac_word... " >&6; }
8036 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8037 then :
8038 printf %s "(cached) " >&6
8039 else $as_nop
8040 if test -n "$ac_ct_DSYMUTIL"; then
8041 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8042 else
8043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8044 for as_dir in $PATH
8045 do
8046 IFS=$as_save_IFS
8047 case $as_dir in #(((
8048 '') as_dir=./ ;;
8049 */) ;;
8050 *) as_dir=$as_dir/ ;;
8051 esac
8052 for ac_exec_ext in '' $ac_executable_extensions; do
8053 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8054 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8055 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8056 break 2
8057 fi
8058 done
8059 done
8060 IFS=$as_save_IFS
8061
8062 fi
8063 fi
8064 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8065 if test -n "$ac_ct_DSYMUTIL"; then
8066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8067 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8068 else
8069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8070 printf "%s\n" "no" >&6; }
8071 fi
8072
8073 if test "x$ac_ct_DSYMUTIL" = x; then
8074 DSYMUTIL=":"
8075 else
8076 case $cross_compiling:$ac_tool_warned in
8077 yes:)
8078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8079 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8080 ac_tool_warned=yes ;;
8081 esac
8082 DSYMUTIL=$ac_ct_DSYMUTIL
8083 fi
8084 else
8085 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8086 fi
8087
8088 if test -n "$ac_tool_prefix"; then
8089 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8090 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8092 printf %s "checking for $ac_word... " >&6; }
8093 if test ${ac_cv_prog_NMEDIT+y}
8094 then :
8095 printf %s "(cached) " >&6
8096 else $as_nop
8097 if test -n "$NMEDIT"; then
8098 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8099 else
8100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8101 for as_dir in $PATH
8102 do
8103 IFS=$as_save_IFS
8104 case $as_dir in #(((
8105 '') as_dir=./ ;;
8106 */) ;;
8107 *) as_dir=$as_dir/ ;;
8108 esac
8109 for ac_exec_ext in '' $ac_executable_extensions; do
8110 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8111 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8112 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8113 break 2
8114 fi
8115 done
8116 done
8117 IFS=$as_save_IFS
8118
8119 fi
8120 fi
8121 NMEDIT=$ac_cv_prog_NMEDIT
8122 if test -n "$NMEDIT"; then
8123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8124 printf "%s\n" "$NMEDIT" >&6; }
8125 else
8126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8127 printf "%s\n" "no" >&6; }
8128 fi
8129
8130
8131 fi
8132 if test -z "$ac_cv_prog_NMEDIT"; then
8133 ac_ct_NMEDIT=$NMEDIT
8134 # Extract the first word of "nmedit", so it can be a program name with args.
8135 set dummy nmedit; ac_word=$2
8136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8137 printf %s "checking for $ac_word... " >&6; }
8138 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8139 then :
8140 printf %s "(cached) " >&6
8141 else $as_nop
8142 if test -n "$ac_ct_NMEDIT"; then
8143 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8144 else
8145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8146 for as_dir in $PATH
8147 do
8148 IFS=$as_save_IFS
8149 case $as_dir in #(((
8150 '') as_dir=./ ;;
8151 */) ;;
8152 *) as_dir=$as_dir/ ;;
8153 esac
8154 for ac_exec_ext in '' $ac_executable_extensions; do
8155 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8156 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8157 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8158 break 2
8159 fi
8160 done
8161 done
8162 IFS=$as_save_IFS
8163
8164 fi
8165 fi
8166 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8167 if test -n "$ac_ct_NMEDIT"; then
8168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8169 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8170 else
8171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8172 printf "%s\n" "no" >&6; }
8173 fi
8174
8175 if test "x$ac_ct_NMEDIT" = x; then
8176 NMEDIT=":"
8177 else
8178 case $cross_compiling:$ac_tool_warned in
8179 yes:)
8180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8181 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8182 ac_tool_warned=yes ;;
8183 esac
8184 NMEDIT=$ac_ct_NMEDIT
8185 fi
8186 else
8187 NMEDIT="$ac_cv_prog_NMEDIT"
8188 fi
8189
8190 if test -n "$ac_tool_prefix"; then
8191 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8192 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8194 printf %s "checking for $ac_word... " >&6; }
8195 if test ${ac_cv_prog_LIPO+y}
8196 then :
8197 printf %s "(cached) " >&6
8198 else $as_nop
8199 if test -n "$LIPO"; then
8200 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8201 else
8202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8203 for as_dir in $PATH
8204 do
8205 IFS=$as_save_IFS
8206 case $as_dir in #(((
8207 '') as_dir=./ ;;
8208 */) ;;
8209 *) as_dir=$as_dir/ ;;
8210 esac
8211 for ac_exec_ext in '' $ac_executable_extensions; do
8212 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8213 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8214 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8215 break 2
8216 fi
8217 done
8218 done
8219 IFS=$as_save_IFS
8220
8221 fi
8222 fi
8223 LIPO=$ac_cv_prog_LIPO
8224 if test -n "$LIPO"; then
8225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8226 printf "%s\n" "$LIPO" >&6; }
8227 else
8228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8229 printf "%s\n" "no" >&6; }
8230 fi
8231
8232
8233 fi
8234 if test -z "$ac_cv_prog_LIPO"; then
8235 ac_ct_LIPO=$LIPO
8236 # Extract the first word of "lipo", so it can be a program name with args.
8237 set dummy lipo; ac_word=$2
8238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8239 printf %s "checking for $ac_word... " >&6; }
8240 if test ${ac_cv_prog_ac_ct_LIPO+y}
8241 then :
8242 printf %s "(cached) " >&6
8243 else $as_nop
8244 if test -n "$ac_ct_LIPO"; then
8245 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8246 else
8247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8248 for as_dir in $PATH
8249 do
8250 IFS=$as_save_IFS
8251 case $as_dir in #(((
8252 '') as_dir=./ ;;
8253 */) ;;
8254 *) as_dir=$as_dir/ ;;
8255 esac
8256 for ac_exec_ext in '' $ac_executable_extensions; do
8257 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8258 ac_cv_prog_ac_ct_LIPO="lipo"
8259 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8260 break 2
8261 fi
8262 done
8263 done
8264 IFS=$as_save_IFS
8265
8266 fi
8267 fi
8268 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8269 if test -n "$ac_ct_LIPO"; then
8270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8271 printf "%s\n" "$ac_ct_LIPO" >&6; }
8272 else
8273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8274 printf "%s\n" "no" >&6; }
8275 fi
8276
8277 if test "x$ac_ct_LIPO" = x; then
8278 LIPO=":"
8279 else
8280 case $cross_compiling:$ac_tool_warned in
8281 yes:)
8282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8283 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8284 ac_tool_warned=yes ;;
8285 esac
8286 LIPO=$ac_ct_LIPO
8287 fi
8288 else
8289 LIPO="$ac_cv_prog_LIPO"
8290 fi
8291
8292 if test -n "$ac_tool_prefix"; then
8293 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8294 set dummy ${ac_tool_prefix}otool; ac_word=$2
8295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8296 printf %s "checking for $ac_word... " >&6; }
8297 if test ${ac_cv_prog_OTOOL+y}
8298 then :
8299 printf %s "(cached) " >&6
8300 else $as_nop
8301 if test -n "$OTOOL"; then
8302 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8303 else
8304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8305 for as_dir in $PATH
8306 do
8307 IFS=$as_save_IFS
8308 case $as_dir in #(((
8309 '') as_dir=./ ;;
8310 */) ;;
8311 *) as_dir=$as_dir/ ;;
8312 esac
8313 for ac_exec_ext in '' $ac_executable_extensions; do
8314 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8315 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8316 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8317 break 2
8318 fi
8319 done
8320 done
8321 IFS=$as_save_IFS
8322
8323 fi
8324 fi
8325 OTOOL=$ac_cv_prog_OTOOL
8326 if test -n "$OTOOL"; then
8327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8328 printf "%s\n" "$OTOOL" >&6; }
8329 else
8330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8331 printf "%s\n" "no" >&6; }
8332 fi
8333
8334
8335 fi
8336 if test -z "$ac_cv_prog_OTOOL"; then
8337 ac_ct_OTOOL=$OTOOL
8338 # Extract the first word of "otool", so it can be a program name with args.
8339 set dummy otool; ac_word=$2
8340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8341 printf %s "checking for $ac_word... " >&6; }
8342 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8343 then :
8344 printf %s "(cached) " >&6
8345 else $as_nop
8346 if test -n "$ac_ct_OTOOL"; then
8347 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8348 else
8349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8350 for as_dir in $PATH
8351 do
8352 IFS=$as_save_IFS
8353 case $as_dir in #(((
8354 '') as_dir=./ ;;
8355 */) ;;
8356 *) as_dir=$as_dir/ ;;
8357 esac
8358 for ac_exec_ext in '' $ac_executable_extensions; do
8359 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8360 ac_cv_prog_ac_ct_OTOOL="otool"
8361 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8362 break 2
8363 fi
8364 done
8365 done
8366 IFS=$as_save_IFS
8367
8368 fi
8369 fi
8370 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8371 if test -n "$ac_ct_OTOOL"; then
8372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8373 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8374 else
8375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8376 printf "%s\n" "no" >&6; }
8377 fi
8378
8379 if test "x$ac_ct_OTOOL" = x; then
8380 OTOOL=":"
8381 else
8382 case $cross_compiling:$ac_tool_warned in
8383 yes:)
8384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8385 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8386 ac_tool_warned=yes ;;
8387 esac
8388 OTOOL=$ac_ct_OTOOL
8389 fi
8390 else
8391 OTOOL="$ac_cv_prog_OTOOL"
8392 fi
8393
8394 if test -n "$ac_tool_prefix"; then
8395 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8396 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8398 printf %s "checking for $ac_word... " >&6; }
8399 if test ${ac_cv_prog_OTOOL64+y}
8400 then :
8401 printf %s "(cached) " >&6
8402 else $as_nop
8403 if test -n "$OTOOL64"; then
8404 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8405 else
8406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8407 for as_dir in $PATH
8408 do
8409 IFS=$as_save_IFS
8410 case $as_dir in #(((
8411 '') as_dir=./ ;;
8412 */) ;;
8413 *) as_dir=$as_dir/ ;;
8414 esac
8415 for ac_exec_ext in '' $ac_executable_extensions; do
8416 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8417 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8418 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8419 break 2
8420 fi
8421 done
8422 done
8423 IFS=$as_save_IFS
8424
8425 fi
8426 fi
8427 OTOOL64=$ac_cv_prog_OTOOL64
8428 if test -n "$OTOOL64"; then
8429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8430 printf "%s\n" "$OTOOL64" >&6; }
8431 else
8432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8433 printf "%s\n" "no" >&6; }
8434 fi
8435
8436
8437 fi
8438 if test -z "$ac_cv_prog_OTOOL64"; then
8439 ac_ct_OTOOL64=$OTOOL64
8440 # Extract the first word of "otool64", so it can be a program name with args.
8441 set dummy otool64; ac_word=$2
8442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8443 printf %s "checking for $ac_word... " >&6; }
8444 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8445 then :
8446 printf %s "(cached) " >&6
8447 else $as_nop
8448 if test -n "$ac_ct_OTOOL64"; then
8449 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8450 else
8451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8452 for as_dir in $PATH
8453 do
8454 IFS=$as_save_IFS
8455 case $as_dir in #(((
8456 '') as_dir=./ ;;
8457 */) ;;
8458 *) as_dir=$as_dir/ ;;
8459 esac
8460 for ac_exec_ext in '' $ac_executable_extensions; do
8461 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8462 ac_cv_prog_ac_ct_OTOOL64="otool64"
8463 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8464 break 2
8465 fi
8466 done
8467 done
8468 IFS=$as_save_IFS
8469
8470 fi
8471 fi
8472 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8473 if test -n "$ac_ct_OTOOL64"; then
8474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8475 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8476 else
8477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8478 printf "%s\n" "no" >&6; }
8479 fi
8480
8481 if test "x$ac_ct_OTOOL64" = x; then
8482 OTOOL64=":"
8483 else
8484 case $cross_compiling:$ac_tool_warned in
8485 yes:)
8486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8487 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8488 ac_tool_warned=yes ;;
8489 esac
8490 OTOOL64=$ac_ct_OTOOL64
8491 fi
8492 else
8493 OTOOL64="$ac_cv_prog_OTOOL64"
8494 fi
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8523 printf %s "checking for -single_module linker flag... " >&6; }
8524 if test ${lt_cv_apple_cc_single_mod+y}
8525 then :
8526 printf %s "(cached) " >&6
8527 else $as_nop
8528 lt_cv_apple_cc_single_mod=no
8529 if test -z "$LT_MULTI_MODULE"; then
8530 # By default we will add the -single_module flag. You can override
8531 # by either setting the environment variable LT_MULTI_MODULE
8532 # non-empty at configure time, or by adding -multi_module to the
8533 # link flags.
8534 rm -rf libconftest.dylib*
8535 echo "int foo(void){return 1;}" > conftest.c
8536 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8537 -dynamiclib -Wl,-single_module conftest.c" >&5
8538 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8539 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8540 _lt_result=$?
8541 # If there is a non-empty error log, and "single_module"
8542 # appears in it, assume the flag caused a linker warning
8543 if test -s conftest.err && $GREP single_module conftest.err; then
8544 cat conftest.err >&5
8545 # Otherwise, if the output was created with a 0 exit code from
8546 # the compiler, it worked.
8547 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8548 lt_cv_apple_cc_single_mod=yes
8549 else
8550 cat conftest.err >&5
8551 fi
8552 rm -rf libconftest.dylib*
8553 rm -f conftest.*
8554 fi
8555 fi
8556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8557 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8558
8559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8560 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8561 if test ${lt_cv_ld_exported_symbols_list+y}
8562 then :
8563 printf %s "(cached) " >&6
8564 else $as_nop
8565 lt_cv_ld_exported_symbols_list=no
8566 save_LDFLAGS=$LDFLAGS
8567 echo "_main" > conftest.sym
8568 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8570 /* end confdefs.h. */
8571
8572 int
8573 main (void)
8574 {
8575
8576 ;
8577 return 0;
8578 }
8579 _ACEOF
8580 if ac_fn_c_try_link "$LINENO"
8581 then :
8582 lt_cv_ld_exported_symbols_list=yes
8583 else $as_nop
8584 lt_cv_ld_exported_symbols_list=no
8585 fi
8586 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8587 conftest$ac_exeext conftest.$ac_ext
8588 LDFLAGS=$save_LDFLAGS
8589
8590 fi
8591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8592 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8593
8594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8595 printf %s "checking for -force_load linker flag... " >&6; }
8596 if test ${lt_cv_ld_force_load+y}
8597 then :
8598 printf %s "(cached) " >&6
8599 else $as_nop
8600 lt_cv_ld_force_load=no
8601 cat > conftest.c << _LT_EOF
8602 int forced_loaded() { return 2;}
8603 _LT_EOF
8604 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8605 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8606 echo "$AR cr libconftest.a conftest.o" >&5
8607 $AR cr libconftest.a conftest.o 2>&5
8608 echo "$RANLIB libconftest.a" >&5
8609 $RANLIB libconftest.a 2>&5
8610 cat > conftest.c << _LT_EOF
8611 int main() { return 0;}
8612 _LT_EOF
8613 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8614 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8615 _lt_result=$?
8616 if test -s conftest.err && $GREP force_load conftest.err; then
8617 cat conftest.err >&5
8618 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8619 lt_cv_ld_force_load=yes
8620 else
8621 cat conftest.err >&5
8622 fi
8623 rm -f conftest.err libconftest.a conftest conftest.c
8624 rm -rf conftest.dSYM
8625
8626 fi
8627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8628 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8629 case $host_os in
8630 rhapsody* | darwin1.[012])
8631 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8632 darwin1.*)
8633 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8634 darwin*) # darwin 5.x on
8635 # if running on 10.5 or later, the deployment target defaults
8636 # to the OS version, if on x86, and 10.4, the deployment
8637 # target defaults to 10.4. Don't you love it?
8638 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8639 10.0,*86*-darwin8*|10.0,*-darwin[912]*)
8640 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8641 10.[012][,.]*)
8642 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8643 10.*|11.*)
8644 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8645 esac
8646 ;;
8647 esac
8648 if test yes = "$lt_cv_apple_cc_single_mod"; then
8649 _lt_dar_single_mod='$single_module'
8650 fi
8651 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8652 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8653 else
8654 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8655 fi
8656 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8657 _lt_dsymutil='~$DSYMUTIL $lib || :'
8658 else
8659 _lt_dsymutil=
8660 fi
8661 ;;
8662 esac
8663
8664 # func_munge_path_list VARIABLE PATH
8665 # -----------------------------------
8666 # VARIABLE is name of variable containing _space_ separated list of
8667 # directories to be munged by the contents of PATH, which is string
8668 # having a format:
8669 # "DIR[:DIR]:"
8670 # string "DIR[ DIR]" will be prepended to VARIABLE
8671 # ":DIR[:DIR]"
8672 # string "DIR[ DIR]" will be appended to VARIABLE
8673 # "DIRP[:DIRP]::[DIRA:]DIRA"
8674 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8675 # "DIRA[ DIRA]" will be appended to VARIABLE
8676 # "DIR[:DIR]"
8677 # VARIABLE will be replaced by "DIR[ DIR]"
8678 func_munge_path_list ()
8679 {
8680 case x$2 in
8681 x)
8682 ;;
8683 *:)
8684 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8685 ;;
8686 x:*)
8687 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8688 ;;
8689 *::*)
8690 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8691 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8692 ;;
8693 *)
8694 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8695 ;;
8696 esac
8697 }
8698
8699 ac_header= ac_cache=
8700 for ac_item in $ac_header_c_list
8701 do
8702 if test $ac_cache; then
8703 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8704 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8705 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8706 fi
8707 ac_header= ac_cache=
8708 elif test $ac_header; then
8709 ac_cache=$ac_item
8710 else
8711 ac_header=$ac_item
8712 fi
8713 done
8714
8715
8716
8717
8718
8719
8720
8721
8722 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8723 then :
8724
8725 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8726
8727 fi
8728 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8729 "
8730 if test "x$ac_cv_header_dlfcn_h" = xyes
8731 then :
8732 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8733
8734 fi
8735
8736
8737
8738
8739
8740 # Set options
8741
8742
8743
8744 enable_dlopen=no
8745
8746
8747
8748 # Check whether --enable-shared was given.
8749 if test ${enable_shared+y}
8750 then :
8751 enableval=$enable_shared; p=${PACKAGE-default}
8752 case $enableval in
8753 yes) enable_shared=yes ;;
8754 no) enable_shared=no ;;
8755 *)
8756 enable_shared=no
8757 # Look at the argument we got. We use all the common list separators.
8758 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8759 for pkg in $enableval; do
8760 IFS=$lt_save_ifs
8761 if test "X$pkg" = "X$p"; then
8762 enable_shared=yes
8763 fi
8764 done
8765 IFS=$lt_save_ifs
8766 ;;
8767 esac
8768 else $as_nop
8769 enable_shared=yes
8770 fi
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780 # Check whether --enable-static was given.
8781 if test ${enable_static+y}
8782 then :
8783 enableval=$enable_static; p=${PACKAGE-default}
8784 case $enableval in
8785 yes) enable_static=yes ;;
8786 no) enable_static=no ;;
8787 *)
8788 enable_static=no
8789 # Look at the argument we got. We use all the common list separators.
8790 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8791 for pkg in $enableval; do
8792 IFS=$lt_save_ifs
8793 if test "X$pkg" = "X$p"; then
8794 enable_static=yes
8795 fi
8796 done
8797 IFS=$lt_save_ifs
8798 ;;
8799 esac
8800 else $as_nop
8801 enable_static=yes
8802 fi
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813 # Check whether --with-pic was given.
8814 if test ${with_pic+y}
8815 then :
8816 withval=$with_pic; lt_p=${PACKAGE-default}
8817 case $withval in
8818 yes|no) pic_mode=$withval ;;
8819 *)
8820 pic_mode=default
8821 # Look at the argument we got. We use all the common list separators.
8822 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8823 for lt_pkg in $withval; do
8824 IFS=$lt_save_ifs
8825 if test "X$lt_pkg" = "X$lt_p"; then
8826 pic_mode=yes
8827 fi
8828 done
8829 IFS=$lt_save_ifs
8830 ;;
8831 esac
8832 else $as_nop
8833 pic_mode=default
8834 fi
8835
8836
8837
8838
8839
8840
8841
8842
8843 # Check whether --enable-fast-install was given.
8844 if test ${enable_fast_install+y}
8845 then :
8846 enableval=$enable_fast_install; p=${PACKAGE-default}
8847 case $enableval in
8848 yes) enable_fast_install=yes ;;
8849 no) enable_fast_install=no ;;
8850 *)
8851 enable_fast_install=no
8852 # Look at the argument we got. We use all the common list separators.
8853 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8854 for pkg in $enableval; do
8855 IFS=$lt_save_ifs
8856 if test "X$pkg" = "X$p"; then
8857 enable_fast_install=yes
8858 fi
8859 done
8860 IFS=$lt_save_ifs
8861 ;;
8862 esac
8863 else $as_nop
8864 enable_fast_install=yes
8865 fi
8866
8867
8868
8869
8870
8871
8872
8873
8874 shared_archive_member_spec=
8875 case $host,$enable_shared in
8876 power*-*-aix[5-9]*,yes)
8877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8878 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8879
8880 # Check whether --with-aix-soname was given.
8881 if test ${with_aix_soname+y}
8882 then :
8883 withval=$with_aix_soname; case $withval in
8884 aix|svr4|both)
8885 ;;
8886 *)
8887 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8888 ;;
8889 esac
8890 lt_cv_with_aix_soname=$with_aix_soname
8891 else $as_nop
8892 if test ${lt_cv_with_aix_soname+y}
8893 then :
8894 printf %s "(cached) " >&6
8895 else $as_nop
8896 lt_cv_with_aix_soname=aix
8897 fi
8898
8899 with_aix_soname=$lt_cv_with_aix_soname
8900 fi
8901
8902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8903 printf "%s\n" "$with_aix_soname" >&6; }
8904 if test aix != "$with_aix_soname"; then
8905 # For the AIX way of multilib, we name the shared archive member
8906 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8907 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8908 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8909 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8910 if test 64 = "${OBJECT_MODE-32}"; then
8911 shared_archive_member_spec=shr_64
8912 else
8913 shared_archive_member_spec=shr
8914 fi
8915 fi
8916 ;;
8917 *)
8918 with_aix_soname=aix
8919 ;;
8920 esac
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931 # This can be used to rebuild libtool when needed
8932 LIBTOOL_DEPS=$ltmain
8933
8934 # Always use our own libtool.
8935 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966 test -z "$LN_S" && LN_S="ln -s"
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981 if test -n "${ZSH_VERSION+set}"; then
8982 setopt NO_GLOB_SUBST
8983 fi
8984
8985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8986 printf %s "checking for objdir... " >&6; }
8987 if test ${lt_cv_objdir+y}
8988 then :
8989 printf %s "(cached) " >&6
8990 else $as_nop
8991 rm -f .libs 2>/dev/null
8992 mkdir .libs 2>/dev/null
8993 if test -d .libs; then
8994 lt_cv_objdir=.libs
8995 else
8996 # MS-DOS does not allow filenames that begin with a dot.
8997 lt_cv_objdir=_libs
8998 fi
8999 rmdir .libs 2>/dev/null
9000 fi
9001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9002 printf "%s\n" "$lt_cv_objdir" >&6; }
9003 objdir=$lt_cv_objdir
9004
9005
9006
9007
9008
9009 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9010
9011
9012
9013
9014 case $host_os in
9015 aix3*)
9016 # AIX sometimes has problems with the GCC collect2 program. For some
9017 # reason, if we set the COLLECT_NAMES environment variable, the problems
9018 # vanish in a puff of smoke.
9019 if test set != "${COLLECT_NAMES+set}"; then
9020 COLLECT_NAMES=
9021 export COLLECT_NAMES
9022 fi
9023 ;;
9024 esac
9025
9026 # Global variables:
9027 ofile=libtool
9028 can_build_shared=yes
9029
9030 # All known linkers require a '.a' archive for static linking (except MSVC,
9031 # which needs '.lib').
9032 libext=a
9033
9034 with_gnu_ld=$lt_cv_prog_gnu_ld
9035
9036 old_CC=$CC
9037 old_CFLAGS=$CFLAGS
9038
9039 # Set sane defaults for various variables
9040 test -z "$CC" && CC=cc
9041 test -z "$LTCC" && LTCC=$CC
9042 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9043 test -z "$LD" && LD=ld
9044 test -z "$ac_objext" && ac_objext=o
9045
9046 func_cc_basename $compiler
9047 cc_basename=$func_cc_basename_result
9048
9049
9050 # Only perform the check for file, if the check method requires it
9051 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9052 case $deplibs_check_method in
9053 file_magic*)
9054 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9056 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9057 if test ${lt_cv_path_MAGIC_CMD+y}
9058 then :
9059 printf %s "(cached) " >&6
9060 else $as_nop
9061 case $MAGIC_CMD in
9062 [\\/*] | ?:[\\/]*)
9063 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9064 ;;
9065 *)
9066 lt_save_MAGIC_CMD=$MAGIC_CMD
9067 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9068 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9069 for ac_dir in $ac_dummy; do
9070 IFS=$lt_save_ifs
9071 test -z "$ac_dir" && ac_dir=.
9072 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9073 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9074 if test -n "$file_magic_test_file"; then
9075 case $deplibs_check_method in
9076 "file_magic "*)
9077 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9078 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9079 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9080 $EGREP "$file_magic_regex" > /dev/null; then
9081 :
9082 else
9083 cat <<_LT_EOF 1>&2
9084
9085 *** Warning: the command libtool uses to detect shared libraries,
9086 *** $file_magic_cmd, produces output that libtool cannot recognize.
9087 *** The result is that libtool may fail to recognize shared libraries
9088 *** as such. This will affect the creation of libtool libraries that
9089 *** depend on shared libraries, but programs linked with such libtool
9090 *** libraries will work regardless of this problem. Nevertheless, you
9091 *** may want to report the problem to your system manager and/or to
9092 *** [email protected]
9093
9094 _LT_EOF
9095 fi ;;
9096 esac
9097 fi
9098 break
9099 fi
9100 done
9101 IFS=$lt_save_ifs
9102 MAGIC_CMD=$lt_save_MAGIC_CMD
9103 ;;
9104 esac
9105 fi
9106
9107 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9108 if test -n "$MAGIC_CMD"; then
9109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9110 printf "%s\n" "$MAGIC_CMD" >&6; }
9111 else
9112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9113 printf "%s\n" "no" >&6; }
9114 fi
9115
9116
9117
9118
9119
9120 if test -z "$lt_cv_path_MAGIC_CMD"; then
9121 if test -n "$ac_tool_prefix"; then
9122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9123 printf %s "checking for file... " >&6; }
9124 if test ${lt_cv_path_MAGIC_CMD+y}
9125 then :
9126 printf %s "(cached) " >&6
9127 else $as_nop
9128 case $MAGIC_CMD in
9129 [\\/*] | ?:[\\/]*)
9130 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9131 ;;
9132 *)
9133 lt_save_MAGIC_CMD=$MAGIC_CMD
9134 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9135 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9136 for ac_dir in $ac_dummy; do
9137 IFS=$lt_save_ifs
9138 test -z "$ac_dir" && ac_dir=.
9139 if test -f "$ac_dir/file"; then
9140 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9141 if test -n "$file_magic_test_file"; then
9142 case $deplibs_check_method in
9143 "file_magic "*)
9144 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9145 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9146 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9147 $EGREP "$file_magic_regex" > /dev/null; then
9148 :
9149 else
9150 cat <<_LT_EOF 1>&2
9151
9152 *** Warning: the command libtool uses to detect shared libraries,
9153 *** $file_magic_cmd, produces output that libtool cannot recognize.
9154 *** The result is that libtool may fail to recognize shared libraries
9155 *** as such. This will affect the creation of libtool libraries that
9156 *** depend on shared libraries, but programs linked with such libtool
9157 *** libraries will work regardless of this problem. Nevertheless, you
9158 *** may want to report the problem to your system manager and/or to
9159 *** [email protected]
9160
9161 _LT_EOF
9162 fi ;;
9163 esac
9164 fi
9165 break
9166 fi
9167 done
9168 IFS=$lt_save_ifs
9169 MAGIC_CMD=$lt_save_MAGIC_CMD
9170 ;;
9171 esac
9172 fi
9173
9174 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9175 if test -n "$MAGIC_CMD"; then
9176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9177 printf "%s\n" "$MAGIC_CMD" >&6; }
9178 else
9179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9180 printf "%s\n" "no" >&6; }
9181 fi
9182
9183
9184 else
9185 MAGIC_CMD=:
9186 fi
9187 fi
9188
9189 fi
9190 ;;
9191 esac
9192
9193 # Use C for the default configuration in the libtool script
9194
9195 lt_save_CC=$CC
9196 ac_ext=c
9197 ac_cpp='$CPP $CPPFLAGS'
9198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9201
9202
9203 # Source file extension for C test sources.
9204 ac_ext=c
9205
9206 # Object file extension for compiled C test sources.
9207 objext=o
9208 objext=$objext
9209
9210 # Code to be used in simple compile tests
9211 lt_simple_compile_test_code="int some_variable = 0;"
9212
9213 # Code to be used in simple link tests
9214 lt_simple_link_test_code='int main(){return(0);}'
9215
9216
9217
9218
9219
9220
9221
9222 # If no C compiler was specified, use CC.
9223 LTCC=${LTCC-"$CC"}
9224
9225 # If no C compiler flags were specified, use CFLAGS.
9226 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9227
9228 # Allow CC to be a program name with arguments.
9229 compiler=$CC
9230
9231 # Save the default compiler, since it gets overwritten when the other
9232 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9233 compiler_DEFAULT=$CC
9234
9235 # save warnings/boilerplate of simple test code
9236 ac_outfile=conftest.$ac_objext
9237 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9238 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9239 _lt_compiler_boilerplate=`cat conftest.err`
9240 $RM conftest*
9241
9242 ac_outfile=conftest.$ac_objext
9243 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9244 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9245 _lt_linker_boilerplate=`cat conftest.err`
9246 $RM -r conftest*
9247
9248
9249 ## CAVEAT EMPTOR:
9250 ## There is no encapsulation within the following macros, do not change
9251 ## the running order or otherwise move them around unless you know exactly
9252 ## what you are doing...
9253 if test -n "$compiler"; then
9254
9255 lt_prog_compiler_no_builtin_flag=
9256
9257 if test yes = "$GCC"; then
9258 case $cc_basename in
9259 nvcc*)
9260 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9261 *)
9262 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9263 esac
9264
9265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9266 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9267 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9268 then :
9269 printf %s "(cached) " >&6
9270 else $as_nop
9271 lt_cv_prog_compiler_rtti_exceptions=no
9272 ac_outfile=conftest.$ac_objext
9273 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9274 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9275 # Insert the option either (1) after the last *FLAGS variable, or
9276 # (2) before a word containing "conftest.", or (3) at the end.
9277 # Note that $ac_compile itself does not contain backslashes and begins
9278 # with a dollar sign (not a hyphen), so the echo should work correctly.
9279 # The option is referenced via a variable to avoid confusing sed.
9280 lt_compile=`echo "$ac_compile" | $SED \
9281 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9282 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9283 -e 's:$: $lt_compiler_flag:'`
9284 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9285 (eval "$lt_compile" 2>conftest.err)
9286 ac_status=$?
9287 cat conftest.err >&5
9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289 if (exit $ac_status) && test -s "$ac_outfile"; then
9290 # The compiler can only warn and ignore the option if not recognized
9291 # So say no if there are warnings other than the usual output.
9292 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9293 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9294 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9295 lt_cv_prog_compiler_rtti_exceptions=yes
9296 fi
9297 fi
9298 $RM conftest*
9299
9300 fi
9301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9302 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9303
9304 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9305 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9306 else
9307 :
9308 fi
9309
9310 fi
9311
9312
9313
9314
9315
9316
9317 lt_prog_compiler_wl=
9318 lt_prog_compiler_pic=
9319 lt_prog_compiler_static=
9320
9321
9322 if test yes = "$GCC"; then
9323 lt_prog_compiler_wl='-Wl,'
9324 lt_prog_compiler_static='-static'
9325
9326 case $host_os in
9327 aix*)
9328 # All AIX code is PIC.
9329 if test ia64 = "$host_cpu"; then
9330 # AIX 5 now supports IA64 processor
9331 lt_prog_compiler_static='-Bstatic'
9332 fi
9333 lt_prog_compiler_pic='-fPIC'
9334 ;;
9335
9336 amigaos*)
9337 case $host_cpu in
9338 powerpc)
9339 # see comment about AmigaOS4 .so support
9340 lt_prog_compiler_pic='-fPIC'
9341 ;;
9342 m68k)
9343 # FIXME: we need at least 68020 code to build shared libraries, but
9344 # adding the '-m68020' flag to GCC prevents building anything better,
9345 # like '-m68040'.
9346 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9347 ;;
9348 esac
9349 ;;
9350
9351 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9352 # PIC is the default for these OSes.
9353 ;;
9354
9355 mingw* | cygwin* | pw32* | os2* | cegcc*)
9356 # This hack is so that the source file can tell whether it is being
9357 # built for inclusion in a dll (and should export symbols for example).
9358 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9359 # (--disable-auto-import) libraries
9360 lt_prog_compiler_pic='-DDLL_EXPORT'
9361 case $host_os in
9362 os2*)
9363 lt_prog_compiler_static='$wl-static'
9364 ;;
9365 esac
9366 ;;
9367
9368 darwin* | rhapsody*)
9369 # PIC is the default on this platform
9370 # Common symbols not allowed in MH_DYLIB files
9371 lt_prog_compiler_pic='-fno-common'
9372 ;;
9373
9374 haiku*)
9375 # PIC is the default for Haiku.
9376 # The "-static" flag exists, but is broken.
9377 lt_prog_compiler_static=
9378 ;;
9379
9380 hpux*)
9381 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9382 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9383 # sets the default TLS model and affects inlining.
9384 case $host_cpu in
9385 hppa*64*)
9386 # +Z the default
9387 ;;
9388 *)
9389 lt_prog_compiler_pic='-fPIC'
9390 ;;
9391 esac
9392 ;;
9393
9394 interix[3-9]*)
9395 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9396 # Instead, we relocate shared libraries at runtime.
9397 ;;
9398
9399 msdosdjgpp*)
9400 # Just because we use GCC doesn't mean we suddenly get shared libraries
9401 # on systems that don't support them.
9402 lt_prog_compiler_can_build_shared=no
9403 enable_shared=no
9404 ;;
9405
9406 *nto* | *qnx*)
9407 # QNX uses GNU C++, but need to define -shared option too, otherwise
9408 # it will coredump.
9409 lt_prog_compiler_pic='-fPIC -shared'
9410 ;;
9411
9412 sysv4*MP*)
9413 if test -d /usr/nec; then
9414 lt_prog_compiler_pic=-Kconform_pic
9415 fi
9416 ;;
9417
9418 *)
9419 lt_prog_compiler_pic='-fPIC'
9420 ;;
9421 esac
9422
9423 case $cc_basename in
9424 nvcc*) # Cuda Compiler Driver 2.2
9425 lt_prog_compiler_wl='-Xlinker '
9426 if test -n "$lt_prog_compiler_pic"; then
9427 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9428 fi
9429 ;;
9430 esac
9431 else
9432 # PORTME Check for flag to pass linker flags through the system compiler.
9433 case $host_os in
9434 aix*)
9435 lt_prog_compiler_wl='-Wl,'
9436 if test ia64 = "$host_cpu"; then
9437 # AIX 5 now supports IA64 processor
9438 lt_prog_compiler_static='-Bstatic'
9439 else
9440 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9441 fi
9442 ;;
9443
9444 darwin* | rhapsody*)
9445 # PIC is the default on this platform
9446 # Common symbols not allowed in MH_DYLIB files
9447 lt_prog_compiler_pic='-fno-common'
9448 case $cc_basename in
9449 nagfor*)
9450 # NAG Fortran compiler
9451 lt_prog_compiler_wl='-Wl,-Wl,,'
9452 lt_prog_compiler_pic='-PIC'
9453 lt_prog_compiler_static='-Bstatic'
9454 ;;
9455 esac
9456 ;;
9457
9458 mingw* | cygwin* | pw32* | os2* | cegcc*)
9459 # This hack is so that the source file can tell whether it is being
9460 # built for inclusion in a dll (and should export symbols for example).
9461 lt_prog_compiler_pic='-DDLL_EXPORT'
9462 case $host_os in
9463 os2*)
9464 lt_prog_compiler_static='$wl-static'
9465 ;;
9466 esac
9467 ;;
9468
9469 hpux9* | hpux10* | hpux11*)
9470 lt_prog_compiler_wl='-Wl,'
9471 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9472 # not for PA HP-UX.
9473 case $host_cpu in
9474 hppa*64*|ia64*)
9475 # +Z the default
9476 ;;
9477 *)
9478 lt_prog_compiler_pic='+Z'
9479 ;;
9480 esac
9481 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9482 lt_prog_compiler_static='$wl-a ${wl}archive'
9483 ;;
9484
9485 irix5* | irix6* | nonstopux*)
9486 lt_prog_compiler_wl='-Wl,'
9487 # PIC (with -KPIC) is the default.
9488 lt_prog_compiler_static='-non_shared'
9489 ;;
9490
9491 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9492 case $cc_basename in
9493 # old Intel for x86_64, which still supported -KPIC.
9494 ecc*)
9495 lt_prog_compiler_wl='-Wl,'
9496 lt_prog_compiler_pic='-KPIC'
9497 lt_prog_compiler_static='-static'
9498 ;;
9499 # flang / f18. f95 an alias for gfortran or flang on Debian
9500 flang* | f18* | f95*)
9501 lt_prog_compiler_wl='-Wl,'
9502 lt_prog_compiler_pic='-fPIC'
9503 lt_prog_compiler_static='-static'
9504 ;;
9505 # icc used to be incompatible with GCC.
9506 # ICC 10 doesn't accept -KPIC any more.
9507 icc* | ifort*)
9508 lt_prog_compiler_wl='-Wl,'
9509 lt_prog_compiler_pic='-fPIC'
9510 lt_prog_compiler_static='-static'
9511 ;;
9512 # Lahey Fortran 8.1.
9513 lf95*)
9514 lt_prog_compiler_wl='-Wl,'
9515 lt_prog_compiler_pic='--shared'
9516 lt_prog_compiler_static='--static'
9517 ;;
9518 nagfor*)
9519 # NAG Fortran compiler
9520 lt_prog_compiler_wl='-Wl,-Wl,,'
9521 lt_prog_compiler_pic='-PIC'
9522 lt_prog_compiler_static='-Bstatic'
9523 ;;
9524 tcc*)
9525 # Fabrice Bellard et al's Tiny C Compiler
9526 lt_prog_compiler_wl='-Wl,'
9527 lt_prog_compiler_pic='-fPIC'
9528 lt_prog_compiler_static='-static'
9529 ;;
9530 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9531 # Portland Group compilers (*not* the Pentium gcc compiler,
9532 # which looks to be a dead project)
9533 lt_prog_compiler_wl='-Wl,'
9534 lt_prog_compiler_pic='-fpic'
9535 lt_prog_compiler_static='-Bstatic'
9536 ;;
9537 ccc*)
9538 lt_prog_compiler_wl='-Wl,'
9539 # All Alpha code is PIC.
9540 lt_prog_compiler_static='-non_shared'
9541 ;;
9542 xl* | bgxl* | bgf* | mpixl*)
9543 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9544 lt_prog_compiler_wl='-Wl,'
9545 lt_prog_compiler_pic='-qpic'
9546 lt_prog_compiler_static='-qstaticlink'
9547 ;;
9548 *)
9549 case `$CC -V 2>&1 | sed 5q` in
9550 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9551 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9552 lt_prog_compiler_pic='-KPIC'
9553 lt_prog_compiler_static='-Bstatic'
9554 lt_prog_compiler_wl=''
9555 ;;
9556 *Sun\ F* | *Sun*Fortran*)
9557 lt_prog_compiler_pic='-KPIC'
9558 lt_prog_compiler_static='-Bstatic'
9559 lt_prog_compiler_wl='-Qoption ld '
9560 ;;
9561 *Sun\ C*)
9562 # Sun C 5.9
9563 lt_prog_compiler_pic='-KPIC'
9564 lt_prog_compiler_static='-Bstatic'
9565 lt_prog_compiler_wl='-Wl,'
9566 ;;
9567 *Intel*\ [CF]*Compiler*)
9568 lt_prog_compiler_wl='-Wl,'
9569 lt_prog_compiler_pic='-fPIC'
9570 lt_prog_compiler_static='-static'
9571 ;;
9572 *Portland\ Group*)
9573 lt_prog_compiler_wl='-Wl,'
9574 lt_prog_compiler_pic='-fpic'
9575 lt_prog_compiler_static='-Bstatic'
9576 ;;
9577 esac
9578 ;;
9579 esac
9580 ;;
9581
9582 newsos6)
9583 lt_prog_compiler_pic='-KPIC'
9584 lt_prog_compiler_static='-Bstatic'
9585 ;;
9586
9587 *nto* | *qnx*)
9588 # QNX uses GNU C++, but need to define -shared option too, otherwise
9589 # it will coredump.
9590 lt_prog_compiler_pic='-fPIC -shared'
9591 ;;
9592
9593 osf3* | osf4* | osf5*)
9594 lt_prog_compiler_wl='-Wl,'
9595 # All OSF/1 code is PIC.
9596 lt_prog_compiler_static='-non_shared'
9597 ;;
9598
9599 rdos*)
9600 lt_prog_compiler_static='-non_shared'
9601 ;;
9602
9603 solaris*)
9604 lt_prog_compiler_pic='-KPIC'
9605 lt_prog_compiler_static='-Bstatic'
9606 case $cc_basename in
9607 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9608 lt_prog_compiler_wl='-Qoption ld ';;
9609 *)
9610 lt_prog_compiler_wl='-Wl,';;
9611 esac
9612 ;;
9613
9614 sunos4*)
9615 lt_prog_compiler_wl='-Qoption ld '
9616 lt_prog_compiler_pic='-PIC'
9617 lt_prog_compiler_static='-Bstatic'
9618 ;;
9619
9620 sysv4 | sysv4.2uw2* | sysv4.3*)
9621 lt_prog_compiler_wl='-Wl,'
9622 lt_prog_compiler_pic='-KPIC'
9623 lt_prog_compiler_static='-Bstatic'
9624 ;;
9625
9626 sysv4*MP*)
9627 if test -d /usr/nec; then
9628 lt_prog_compiler_pic='-Kconform_pic'
9629 lt_prog_compiler_static='-Bstatic'
9630 fi
9631 ;;
9632
9633 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9634 lt_prog_compiler_wl='-Wl,'
9635 lt_prog_compiler_pic='-KPIC'
9636 lt_prog_compiler_static='-Bstatic'
9637 ;;
9638
9639 unicos*)
9640 lt_prog_compiler_wl='-Wl,'
9641 lt_prog_compiler_can_build_shared=no
9642 ;;
9643
9644 uts4*)
9645 lt_prog_compiler_pic='-pic'
9646 lt_prog_compiler_static='-Bstatic'
9647 ;;
9648
9649 *)
9650 lt_prog_compiler_can_build_shared=no
9651 ;;
9652 esac
9653 fi
9654
9655 case $host_os in
9656 # For platforms that do not support PIC, -DPIC is meaningless:
9657 *djgpp*)
9658 lt_prog_compiler_pic=
9659 ;;
9660 *)
9661 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9662 ;;
9663 esac
9664
9665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9666 printf %s "checking for $compiler option to produce PIC... " >&6; }
9667 if test ${lt_cv_prog_compiler_pic+y}
9668 then :
9669 printf %s "(cached) " >&6
9670 else $as_nop
9671 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9672 fi
9673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9674 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9675 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9676
9677 #
9678 # Check to make sure the PIC flag actually works.
9679 #
9680 if test -n "$lt_prog_compiler_pic"; then
9681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9682 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9683 if test ${lt_cv_prog_compiler_pic_works+y}
9684 then :
9685 printf %s "(cached) " >&6
9686 else $as_nop
9687 lt_cv_prog_compiler_pic_works=no
9688 ac_outfile=conftest.$ac_objext
9689 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9690 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9691 # Insert the option either (1) after the last *FLAGS variable, or
9692 # (2) before a word containing "conftest.", or (3) at the end.
9693 # Note that $ac_compile itself does not contain backslashes and begins
9694 # with a dollar sign (not a hyphen), so the echo should work correctly.
9695 # The option is referenced via a variable to avoid confusing sed.
9696 lt_compile=`echo "$ac_compile" | $SED \
9697 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9698 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9699 -e 's:$: $lt_compiler_flag:'`
9700 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9701 (eval "$lt_compile" 2>conftest.err)
9702 ac_status=$?
9703 cat conftest.err >&5
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 if (exit $ac_status) && test -s "$ac_outfile"; then
9706 # The compiler can only warn and ignore the option if not recognized
9707 # So say no if there are warnings other than the usual output.
9708 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9709 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9710 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9711 lt_cv_prog_compiler_pic_works=yes
9712 fi
9713 fi
9714 $RM conftest*
9715
9716 fi
9717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9718 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9719
9720 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9721 case $lt_prog_compiler_pic in
9722 "" | " "*) ;;
9723 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9724 esac
9725 else
9726 lt_prog_compiler_pic=
9727 lt_prog_compiler_can_build_shared=no
9728 fi
9729
9730 fi
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742 #
9743 # Check to make sure the static flag actually works.
9744 #
9745 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9747 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9748 if test ${lt_cv_prog_compiler_static_works+y}
9749 then :
9750 printf %s "(cached) " >&6
9751 else $as_nop
9752 lt_cv_prog_compiler_static_works=no
9753 save_LDFLAGS=$LDFLAGS
9754 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9755 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9756 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9757 # The linker can only warn and ignore the option if not recognized
9758 # So say no if there are warnings
9759 if test -s conftest.err; then
9760 # Append any errors to the config.log.
9761 cat conftest.err 1>&5
9762 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9763 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9764 if diff conftest.exp conftest.er2 >/dev/null; then
9765 lt_cv_prog_compiler_static_works=yes
9766 fi
9767 else
9768 lt_cv_prog_compiler_static_works=yes
9769 fi
9770 fi
9771 $RM -r conftest*
9772 LDFLAGS=$save_LDFLAGS
9773
9774 fi
9775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9776 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9777
9778 if test yes = "$lt_cv_prog_compiler_static_works"; then
9779 :
9780 else
9781 lt_prog_compiler_static=
9782 fi
9783
9784
9785
9786
9787
9788
9789
9790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9791 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9792 if test ${lt_cv_prog_compiler_c_o+y}
9793 then :
9794 printf %s "(cached) " >&6
9795 else $as_nop
9796 lt_cv_prog_compiler_c_o=no
9797 $RM -r conftest 2>/dev/null
9798 mkdir conftest
9799 cd conftest
9800 mkdir out
9801 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9802
9803 lt_compiler_flag="-o out/conftest2.$ac_objext"
9804 # Insert the option either (1) after the last *FLAGS variable, or
9805 # (2) before a word containing "conftest.", or (3) at the end.
9806 # Note that $ac_compile itself does not contain backslashes and begins
9807 # with a dollar sign (not a hyphen), so the echo should work correctly.
9808 lt_compile=`echo "$ac_compile" | $SED \
9809 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9810 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9811 -e 's:$: $lt_compiler_flag:'`
9812 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9813 (eval "$lt_compile" 2>out/conftest.err)
9814 ac_status=$?
9815 cat out/conftest.err >&5
9816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9818 then
9819 # The compiler can only warn and ignore the option if not recognized
9820 # So say no if there are warnings
9821 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9822 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9823 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9824 lt_cv_prog_compiler_c_o=yes
9825 fi
9826 fi
9827 chmod u+w . 2>&5
9828 $RM conftest*
9829 # SGI C++ compiler will create directory out/ii_files/ for
9830 # template instantiation
9831 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9832 $RM out/* && rmdir out
9833 cd ..
9834 $RM -r conftest
9835 $RM conftest*
9836
9837 fi
9838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9839 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9840
9841
9842
9843
9844
9845
9846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9847 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9848 if test ${lt_cv_prog_compiler_c_o+y}
9849 then :
9850 printf %s "(cached) " >&6
9851 else $as_nop
9852 lt_cv_prog_compiler_c_o=no
9853 $RM -r conftest 2>/dev/null
9854 mkdir conftest
9855 cd conftest
9856 mkdir out
9857 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9858
9859 lt_compiler_flag="-o out/conftest2.$ac_objext"
9860 # Insert the option either (1) after the last *FLAGS variable, or
9861 # (2) before a word containing "conftest.", or (3) at the end.
9862 # Note that $ac_compile itself does not contain backslashes and begins
9863 # with a dollar sign (not a hyphen), so the echo should work correctly.
9864 lt_compile=`echo "$ac_compile" | $SED \
9865 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9866 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9867 -e 's:$: $lt_compiler_flag:'`
9868 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9869 (eval "$lt_compile" 2>out/conftest.err)
9870 ac_status=$?
9871 cat out/conftest.err >&5
9872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9874 then
9875 # The compiler can only warn and ignore the option if not recognized
9876 # So say no if there are warnings
9877 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9878 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9879 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9880 lt_cv_prog_compiler_c_o=yes
9881 fi
9882 fi
9883 chmod u+w . 2>&5
9884 $RM conftest*
9885 # SGI C++ compiler will create directory out/ii_files/ for
9886 # template instantiation
9887 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9888 $RM out/* && rmdir out
9889 cd ..
9890 $RM -r conftest
9891 $RM conftest*
9892
9893 fi
9894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9895 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9896
9897
9898
9899
9900 hard_links=nottested
9901 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9902 # do not overwrite the value of need_locks provided by the user
9903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9904 printf %s "checking if we can lock with hard links... " >&6; }
9905 hard_links=yes
9906 $RM conftest*
9907 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9908 touch conftest.a
9909 ln conftest.a conftest.b 2>&5 || hard_links=no
9910 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9912 printf "%s\n" "$hard_links" >&6; }
9913 if test no = "$hard_links"; then
9914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9915 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9916 need_locks=warn
9917 fi
9918 else
9919 need_locks=no
9920 fi
9921
9922
9923
9924
9925
9926
9927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9928 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9929
9930 runpath_var=
9931 allow_undefined_flag=
9932 always_export_symbols=no
9933 archive_cmds=
9934 archive_expsym_cmds=
9935 compiler_needs_object=no
9936 enable_shared_with_static_runtimes=no
9937 export_dynamic_flag_spec=
9938 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9939 hardcode_automatic=no
9940 hardcode_direct=no
9941 hardcode_direct_absolute=no
9942 hardcode_libdir_flag_spec=
9943 hardcode_libdir_separator=
9944 hardcode_minus_L=no
9945 hardcode_shlibpath_var=unsupported
9946 inherit_rpath=no
9947 link_all_deplibs=unknown
9948 module_cmds=
9949 module_expsym_cmds=
9950 old_archive_from_new_cmds=
9951 old_archive_from_expsyms_cmds=
9952 thread_safe_flag_spec=
9953 whole_archive_flag_spec=
9954 # include_expsyms should be a list of space-separated symbols to be *always*
9955 # included in the symbol list
9956 include_expsyms=
9957 # exclude_expsyms can be an extended regexp of symbols to exclude
9958 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9959 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9960 # as well as any symbol that contains 'd'.
9961 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9962 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9963 # platforms (ab)use it in PIC code, but their linkers get confused if
9964 # the symbol is explicitly referenced. Since portable code cannot
9965 # rely on this symbol name, it's probably fine to never include it in
9966 # preloaded symbol tables.
9967 # Exclude shared library initialization/finalization symbols.
9968 extract_expsyms_cmds=
9969
9970 case $host_os in
9971 cygwin* | mingw* | pw32* | cegcc*)
9972 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9973 # When not using gcc, we currently assume that we are using
9974 # Microsoft Visual C++.
9975 if test yes != "$GCC"; then
9976 with_gnu_ld=no
9977 fi
9978 ;;
9979 interix*)
9980 # we just hope/assume this is gcc and not c89 (= MSVC++)
9981 with_gnu_ld=yes
9982 ;;
9983 openbsd* | bitrig*)
9984 with_gnu_ld=no
9985 ;;
9986 linux* | k*bsd*-gnu | gnu*)
9987 link_all_deplibs=no
9988 ;;
9989 esac
9990
9991 ld_shlibs=yes
9992
9993 # On some targets, GNU ld is compatible enough with the native linker
9994 # that we're better off using the native interface for both.
9995 lt_use_gnu_ld_interface=no
9996 if test yes = "$with_gnu_ld"; then
9997 case $host_os in
9998 aix*)
9999 # The AIX port of GNU ld has always aspired to compatibility
10000 # with the native linker. However, as the warning in the GNU ld
10001 # block says, versions before 2.19.5* couldn't really create working
10002 # shared libraries, regardless of the interface used.
10003 case `$LD -v 2>&1` in
10004 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10005 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10006 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10007 *)
10008 lt_use_gnu_ld_interface=yes
10009 ;;
10010 esac
10011 ;;
10012 *)
10013 lt_use_gnu_ld_interface=yes
10014 ;;
10015 esac
10016 fi
10017
10018 if test yes = "$lt_use_gnu_ld_interface"; then
10019 # If archive_cmds runs LD, not CC, wlarc should be empty
10020 wlarc='$wl'
10021
10022 # Set some defaults for GNU ld with shared library support. These
10023 # are reset later if shared libraries are not supported. Putting them
10024 # here allows them to be overridden if necessary.
10025 runpath_var=LD_RUN_PATH
10026 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10027 export_dynamic_flag_spec='$wl--export-dynamic'
10028 # ancient GNU ld didn't support --whole-archive et. al.
10029 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10030 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10031 else
10032 whole_archive_flag_spec=
10033 fi
10034 supports_anon_versioning=no
10035 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10036 *GNU\ gold*) supports_anon_versioning=yes ;;
10037 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10038 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10039 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10040 *\ 2.11.*) ;; # other 2.11 versions
10041 *) supports_anon_versioning=yes ;;
10042 esac
10043
10044 # See if GNU ld supports shared libraries.
10045 case $host_os in
10046 aix[3-9]*)
10047 # On AIX/PPC, the GNU linker is very broken
10048 if test ia64 != "$host_cpu"; then
10049 ld_shlibs=no
10050 cat <<_LT_EOF 1>&2
10051
10052 *** Warning: the GNU linker, at least up to release 2.19, is reported
10053 *** to be unable to reliably create shared libraries on AIX.
10054 *** Therefore, libtool is disabling shared libraries support. If you
10055 *** really care for shared libraries, you may want to install binutils
10056 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10057 *** You will then need to restart the configuration process.
10058
10059 _LT_EOF
10060 fi
10061 ;;
10062
10063 amigaos*)
10064 case $host_cpu in
10065 powerpc)
10066 # see comment about AmigaOS4 .so support
10067 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10068 archive_expsym_cmds=''
10069 ;;
10070 m68k)
10071 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10072 hardcode_libdir_flag_spec='-L$libdir'
10073 hardcode_minus_L=yes
10074 ;;
10075 esac
10076 ;;
10077
10078 beos*)
10079 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10080 allow_undefined_flag=unsupported
10081 # Joseph Beckenbach <[email protected]> says some releases of gcc
10082 # support --undefined. This deserves some investigation. FIXME
10083 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10084 else
10085 ld_shlibs=no
10086 fi
10087 ;;
10088
10089 cygwin* | mingw* | pw32* | cegcc*)
10090 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10091 # as there is no search path for DLLs.
10092 hardcode_libdir_flag_spec='-L$libdir'
10093 export_dynamic_flag_spec='$wl--export-all-symbols'
10094 allow_undefined_flag=unsupported
10095 always_export_symbols=no
10096 enable_shared_with_static_runtimes=yes
10097 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10098 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10099
10100 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10101 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10102 # If the export-symbols file already is a .def file, use it as
10103 # is; otherwise, prepend EXPORTS...
10104 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10105 cp $export_symbols $output_objdir/$soname.def;
10106 else
10107 echo EXPORTS > $output_objdir/$soname.def;
10108 cat $export_symbols >> $output_objdir/$soname.def;
10109 fi~
10110 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10111 else
10112 ld_shlibs=no
10113 fi
10114 ;;
10115
10116 haiku*)
10117 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10118 link_all_deplibs=yes
10119 ;;
10120
10121 os2*)
10122 hardcode_libdir_flag_spec='-L$libdir'
10123 hardcode_minus_L=yes
10124 allow_undefined_flag=unsupported
10125 shrext_cmds=.dll
10126 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10127 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10128 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10129 $ECHO EXPORTS >> $output_objdir/$libname.def~
10130 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10131 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10132 emximp -o $lib $output_objdir/$libname.def'
10133 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10134 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10135 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10136 $ECHO EXPORTS >> $output_objdir/$libname.def~
10137 prefix_cmds="$SED"~
10138 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10139 prefix_cmds="$prefix_cmds -e 1d";
10140 fi~
10141 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10142 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10143 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10144 emximp -o $lib $output_objdir/$libname.def'
10145 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10146 enable_shared_with_static_runtimes=yes
10147 ;;
10148
10149 interix[3-9]*)
10150 hardcode_direct=no
10151 hardcode_shlibpath_var=no
10152 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10153 export_dynamic_flag_spec='$wl-E'
10154 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10155 # Instead, shared libraries are loaded at an image base (0x10000000 by
10156 # default) and relocated if they conflict, which is a slow very memory
10157 # consuming and fragmenting process. To avoid this, we pick a random,
10158 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10159 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10160 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10161 archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10162 ;;
10163
10164 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10165 tmp_diet=no
10166 if test linux-dietlibc = "$host_os"; then
10167 case $cc_basename in
10168 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10169 esac
10170 fi
10171 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10172 && test no = "$tmp_diet"
10173 then
10174 tmp_addflag=' $pic_flag'
10175 tmp_sharedflag='-shared'
10176 case $cc_basename,$host_cpu in
10177 pgcc*) # Portland Group C compiler
10178 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10179 tmp_addflag=' $pic_flag'
10180 ;;
10181 pgf77* | pgf90* | pgf95* | pgfortran*)
10182 # Portland Group f77 and f90 compilers
10183 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10184 tmp_addflag=' $pic_flag -Mnomain' ;;
10185 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10186 tmp_addflag=' -i_dynamic' ;;
10187 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10188 tmp_addflag=' -i_dynamic -nofor_main' ;;
10189 ifc* | ifort*) # Intel Fortran compiler
10190 tmp_addflag=' -nofor_main' ;;
10191 lf95*) # Lahey Fortran 8.1
10192 whole_archive_flag_spec=
10193 tmp_sharedflag='--shared' ;;
10194 nagfor*) # NAGFOR 5.3
10195 tmp_sharedflag='-Wl,-shared' ;;
10196 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10197 tmp_sharedflag='-qmkshrobj'
10198 tmp_addflag= ;;
10199 nvcc*) # Cuda Compiler Driver 2.2
10200 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10201 compiler_needs_object=yes
10202 ;;
10203 esac
10204 case `$CC -V 2>&1 | sed 5q` in
10205 *Sun\ C*) # Sun C 5.9
10206 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10207 compiler_needs_object=yes
10208 tmp_sharedflag='-G' ;;
10209 *Sun\ F*) # Sun Fortran 8.3
10210 tmp_sharedflag='-G' ;;
10211 esac
10212 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10213
10214 if test yes = "$supports_anon_versioning"; then
10215 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10216 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10217 echo "local: *; };" >> $output_objdir/$libname.ver~
10218 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10219 fi
10220
10221 case $cc_basename in
10222 tcc*)
10223 export_dynamic_flag_spec='-rdynamic'
10224 ;;
10225 xlf* | bgf* | bgxlf* | mpixlf*)
10226 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10227 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10228 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10229 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10230 if test yes = "$supports_anon_versioning"; then
10231 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10232 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10233 echo "local: *; };" >> $output_objdir/$libname.ver~
10234 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10235 fi
10236 ;;
10237 esac
10238 else
10239 ld_shlibs=no
10240 fi
10241 ;;
10242
10243 netbsd* | netbsdelf*-gnu)
10244 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10245 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10246 wlarc=
10247 else
10248 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10249 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10250 fi
10251 ;;
10252
10253 solaris*)
10254 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10255 ld_shlibs=no
10256 cat <<_LT_EOF 1>&2
10257
10258 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10259 *** create shared libraries on Solaris systems. Therefore, libtool
10260 *** is disabling shared libraries support. We urge you to upgrade GNU
10261 *** binutils to release 2.9.1 or newer. Another option is to modify
10262 *** your PATH or compiler configuration so that the native linker is
10263 *** used, and then restart.
10264
10265 _LT_EOF
10266 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10267 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10268 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10269 else
10270 ld_shlibs=no
10271 fi
10272 ;;
10273
10274 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10275 case `$LD -v 2>&1` in
10276 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10277 ld_shlibs=no
10278 cat <<_LT_EOF 1>&2
10279
10280 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10281 *** reliably create shared libraries on SCO systems. Therefore, libtool
10282 *** is disabling shared libraries support. We urge you to upgrade GNU
10283 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10284 *** your PATH or compiler configuration so that the native linker is
10285 *** used, and then restart.
10286
10287 _LT_EOF
10288 ;;
10289 *)
10290 # For security reasons, it is highly recommended that you always
10291 # use absolute paths for naming shared libraries, and exclude the
10292 # DT_RUNPATH tag from executables and libraries. But doing so
10293 # requires that you compile everything twice, which is a pain.
10294 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10295 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10296 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10297 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10298 else
10299 ld_shlibs=no
10300 fi
10301 ;;
10302 esac
10303 ;;
10304
10305 sunos4*)
10306 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10307 wlarc=
10308 hardcode_direct=yes
10309 hardcode_shlibpath_var=no
10310 ;;
10311
10312 *)
10313 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10314 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10315 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10316 else
10317 ld_shlibs=no
10318 fi
10319 ;;
10320 esac
10321
10322 if test no = "$ld_shlibs"; then
10323 runpath_var=
10324 hardcode_libdir_flag_spec=
10325 export_dynamic_flag_spec=
10326 whole_archive_flag_spec=
10327 fi
10328 else
10329 # PORTME fill in a description of your system's linker (not GNU ld)
10330 case $host_os in
10331 aix3*)
10332 allow_undefined_flag=unsupported
10333 always_export_symbols=yes
10334 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
10335 # Note: this linker hardcodes the directories in LIBPATH if there
10336 # are no directories specified by -L.
10337 hardcode_minus_L=yes
10338 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10339 # Neither direct hardcoding nor static linking is supported with a
10340 # broken collect2.
10341 hardcode_direct=unsupported
10342 fi
10343 ;;
10344
10345 aix[4-9]*)
10346 if test ia64 = "$host_cpu"; then
10347 # On IA64, the linker does run time linking by default, so we don't
10348 # have to do anything special.
10349 aix_use_runtimelinking=no
10350 exp_sym_flag='-Bexport'
10351 no_entry_flag=
10352 else
10353 # If we're using GNU nm, then we don't want the "-C" option.
10354 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10355 # Without the "-l" option, or with the "-B" option, AIX nm treats
10356 # weak defined symbols like other global defined symbols, whereas
10357 # GNU nm marks them as "W".
10358 # While the 'weak' keyword is ignored in the Export File, we need
10359 # it in the Import File for the 'aix-soname' feature, so we have
10360 # to replace the "-B" option with "-P" for AIX nm.
10361 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10362 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10363 else
10364 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10365 fi
10366 aix_use_runtimelinking=no
10367
10368 # Test if we are trying to use run time linking or normal
10369 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10370 # have runtime linking enabled, and use it for executables.
10371 # For shared libraries, we enable/disable runtime linking
10372 # depending on the kind of the shared library created -
10373 # when "with_aix_soname,aix_use_runtimelinking" is:
10374 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10375 # "aix,yes" lib.so shared, rtl:yes, for executables
10376 # lib.a static archive
10377 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10378 # lib.a(lib.so.V) shared, rtl:no, for executables
10379 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10380 # lib.a(lib.so.V) shared, rtl:no
10381 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10382 # lib.a static archive
10383 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10384 for ld_flag in $LDFLAGS; do
10385 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10386 aix_use_runtimelinking=yes
10387 break
10388 fi
10389 done
10390 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10391 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10392 # so we don't have lib.a shared libs to link our executables.
10393 # We have to force runtime linking in this case.
10394 aix_use_runtimelinking=yes
10395 LDFLAGS="$LDFLAGS -Wl,-brtl"
10396 fi
10397 ;;
10398 esac
10399
10400 exp_sym_flag='-bexport'
10401 no_entry_flag='-bnoentry'
10402 fi
10403
10404 # When large executables or shared objects are built, AIX ld can
10405 # have problems creating the table of contents. If linking a library
10406 # or program results in "error TOC overflow" add -mminimal-toc to
10407 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10408 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10409
10410 archive_cmds=''
10411 hardcode_direct=yes
10412 hardcode_direct_absolute=yes
10413 hardcode_libdir_separator=':'
10414 link_all_deplibs=yes
10415 file_list_spec='$wl-f,'
10416 case $with_aix_soname,$aix_use_runtimelinking in
10417 aix,*) ;; # traditional, no import file
10418 svr4,* | *,yes) # use import file
10419 # The Import File defines what to hardcode.
10420 hardcode_direct=no
10421 hardcode_direct_absolute=no
10422 ;;
10423 esac
10424
10425 if test yes = "$GCC"; then
10426 case $host_os in aix4.[012]|aix4.[012].*)
10427 # We only want to do this on AIX 4.2 and lower, the check
10428 # below for broken collect2 doesn't work under 4.3+
10429 collect2name=`$CC -print-prog-name=collect2`
10430 if test -f "$collect2name" &&
10431 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10432 then
10433 # We have reworked collect2
10434 :
10435 else
10436 # We have old collect2
10437 hardcode_direct=unsupported
10438 # It fails to find uninstalled libraries when the uninstalled
10439 # path is not listed in the libpath. Setting hardcode_minus_L
10440 # to unsupported forces relinking
10441 hardcode_minus_L=yes
10442 hardcode_libdir_flag_spec='-L$libdir'
10443 hardcode_libdir_separator=
10444 fi
10445 ;;
10446 esac
10447 shared_flag='-shared'
10448 if test yes = "$aix_use_runtimelinking"; then
10449 shared_flag="$shared_flag "'$wl-G'
10450 fi
10451 # Need to ensure runtime linking is disabled for the traditional
10452 # shared library, or the linker may eventually find shared libraries
10453 # /with/ Import File - we do not want to mix them.
10454 shared_flag_aix='-shared'
10455 shared_flag_svr4='-shared $wl-G'
10456 else
10457 # not using gcc
10458 if test ia64 = "$host_cpu"; then
10459 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10460 # chokes on -Wl,-G. The following line is correct:
10461 shared_flag='-G'
10462 else
10463 if test yes = "$aix_use_runtimelinking"; then
10464 shared_flag='$wl-G'
10465 else
10466 shared_flag='$wl-bM:SRE'
10467 fi
10468 shared_flag_aix='$wl-bM:SRE'
10469 shared_flag_svr4='$wl-G'
10470 fi
10471 fi
10472
10473 export_dynamic_flag_spec='$wl-bexpall'
10474 # It seems that -bexpall does not export symbols beginning with
10475 # underscore (_), so it is better to generate a list of symbols to export.
10476 always_export_symbols=yes
10477 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10478 # Warning - without using the other runtime loading flags (-brtl),
10479 # -berok will link without error, but may produce a broken library.
10480 allow_undefined_flag='-berok'
10481 # Determine the default libpath from the value encoded in an
10482 # empty executable.
10483 if test set = "${lt_cv_aix_libpath+set}"; then
10484 aix_libpath=$lt_cv_aix_libpath
10485 else
10486 if test ${lt_cv_aix_libpath_+y}
10487 then :
10488 printf %s "(cached) " >&6
10489 else $as_nop
10490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10491 /* end confdefs.h. */
10492
10493 int
10494 main (void)
10495 {
10496
10497 ;
10498 return 0;
10499 }
10500 _ACEOF
10501 if ac_fn_c_try_link "$LINENO"
10502 then :
10503
10504 lt_aix_libpath_sed='
10505 /Import File Strings/,/^$/ {
10506 /^0/ {
10507 s/^0 *\([^ ]*\) *$/\1/
10508 p
10509 }
10510 }'
10511 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10512 # Check for a 64-bit object if we didn't find anything.
10513 if test -z "$lt_cv_aix_libpath_"; then
10514 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10515 fi
10516 fi
10517 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10518 conftest$ac_exeext conftest.$ac_ext
10519 if test -z "$lt_cv_aix_libpath_"; then
10520 lt_cv_aix_libpath_=/usr/lib:/lib
10521 fi
10522
10523 fi
10524
10525 aix_libpath=$lt_cv_aix_libpath_
10526 fi
10527
10528 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10529 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10530 else
10531 if test ia64 = "$host_cpu"; then
10532 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10533 allow_undefined_flag="-z nodefs"
10534 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
10535 else
10536 # Determine the default libpath from the value encoded in an
10537 # empty executable.
10538 if test set = "${lt_cv_aix_libpath+set}"; then
10539 aix_libpath=$lt_cv_aix_libpath
10540 else
10541 if test ${lt_cv_aix_libpath_+y}
10542 then :
10543 printf %s "(cached) " >&6
10544 else $as_nop
10545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10546 /* end confdefs.h. */
10547
10548 int
10549 main (void)
10550 {
10551
10552 ;
10553 return 0;
10554 }
10555 _ACEOF
10556 if ac_fn_c_try_link "$LINENO"
10557 then :
10558
10559 lt_aix_libpath_sed='
10560 /Import File Strings/,/^$/ {
10561 /^0/ {
10562 s/^0 *\([^ ]*\) *$/\1/
10563 p
10564 }
10565 }'
10566 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10567 # Check for a 64-bit object if we didn't find anything.
10568 if test -z "$lt_cv_aix_libpath_"; then
10569 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10570 fi
10571 fi
10572 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10573 conftest$ac_exeext conftest.$ac_ext
10574 if test -z "$lt_cv_aix_libpath_"; then
10575 lt_cv_aix_libpath_=/usr/lib:/lib
10576 fi
10577
10578 fi
10579
10580 aix_libpath=$lt_cv_aix_libpath_
10581 fi
10582
10583 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10584 # Warning - without using the other run time loading flags,
10585 # -berok will link without error, but may produce a broken library.
10586 no_undefined_flag=' $wl-bernotok'
10587 allow_undefined_flag=' $wl-berok'
10588 if test yes = "$with_gnu_ld"; then
10589 # We only use this code for GNU lds that support --whole-archive.
10590 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10591 else
10592 # Exported symbols can be pulled into shared objects from archives
10593 whole_archive_flag_spec='$convenience'
10594 fi
10595 archive_cmds_need_lc=yes
10596 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10597 # -brtl affects multiple linker settings, -berok does not and is overridden later
10598 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10599 if test svr4 != "$with_aix_soname"; then
10600 # This is similar to how AIX traditionally builds its shared libraries.
10601 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10602 fi
10603 if test aix != "$with_aix_soname"; then
10604 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10605 else
10606 # used by -dlpreopen to get the symbols
10607 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10608 fi
10609 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10610 fi
10611 fi
10612 ;;
10613
10614 amigaos*)
10615 case $host_cpu in
10616 powerpc)
10617 # see comment about AmigaOS4 .so support
10618 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10619 archive_expsym_cmds=''
10620 ;;
10621 m68k)
10622 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10623 hardcode_libdir_flag_spec='-L$libdir'
10624 hardcode_minus_L=yes
10625 ;;
10626 esac
10627 ;;
10628
10629 bsdi[45]*)
10630 export_dynamic_flag_spec=-rdynamic
10631 ;;
10632
10633 cygwin* | mingw* | pw32* | cegcc*)
10634 # When not using gcc, we currently assume that we are using
10635 # Microsoft Visual C++.
10636 # hardcode_libdir_flag_spec is actually meaningless, as there is
10637 # no search path for DLLs.
10638 case $cc_basename in
10639 cl*)
10640 # Native MSVC
10641 hardcode_libdir_flag_spec=' '
10642 allow_undefined_flag=unsupported
10643 always_export_symbols=yes
10644 file_list_spec='@'
10645 # Tell ltmain to make .lib files, not .a files.
10646 libext=lib
10647 # Tell ltmain to make .dll files, not .so files.
10648 shrext_cmds=.dll
10649 # FIXME: Setting linknames here is a bad hack.
10650 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10651 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10652 cp "$export_symbols" "$output_objdir/$soname.def";
10653 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10654 else
10655 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10656 fi~
10657 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10658 linknames='
10659 # The linker will not automatically build a static lib if we build a DLL.
10660 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10661 enable_shared_with_static_runtimes=yes
10662 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10663 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10664 # Don't use ranlib
10665 old_postinstall_cmds='chmod 644 $oldlib'
10666 postlink_cmds='lt_outputfile="@OUTPUT@"~
10667 lt_tool_outputfile="@TOOL_OUTPUT@"~
10668 case $lt_outputfile in
10669 *.exe|*.EXE) ;;
10670 *)
10671 lt_outputfile=$lt_outputfile.exe
10672 lt_tool_outputfile=$lt_tool_outputfile.exe
10673 ;;
10674 esac~
10675 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10676 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10677 $RM "$lt_outputfile.manifest";
10678 fi'
10679 ;;
10680 *)
10681 # Assume MSVC wrapper
10682 hardcode_libdir_flag_spec=' '
10683 allow_undefined_flag=unsupported
10684 # Tell ltmain to make .lib files, not .a files.
10685 libext=lib
10686 # Tell ltmain to make .dll files, not .so files.
10687 shrext_cmds=.dll
10688 # FIXME: Setting linknames here is a bad hack.
10689 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10690 # The linker will automatically build a .lib file if we build a DLL.
10691 old_archive_from_new_cmds='true'
10692 # FIXME: Should let the user specify the lib program.
10693 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10694 enable_shared_with_static_runtimes=yes
10695 ;;
10696 esac
10697 ;;
10698
10699 darwin* | rhapsody*)
10700
10701
10702 archive_cmds_need_lc=no
10703 hardcode_direct=no
10704 hardcode_automatic=yes
10705 hardcode_shlibpath_var=unsupported
10706 if test yes = "$lt_cv_ld_force_load"; then
10707 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10708
10709 else
10710 whole_archive_flag_spec=''
10711 fi
10712 link_all_deplibs=yes
10713 allow_undefined_flag=$_lt_dar_allow_undefined
10714 case $cc_basename in
10715 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10716 *) _lt_dar_can_shared=$GCC ;;
10717 esac
10718 if test yes = "$_lt_dar_can_shared"; then
10719 output_verbose_link_cmd=func_echo_all
10720 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10721 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10722 archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
10723 module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
10724
10725 else
10726 ld_shlibs=no
10727 fi
10728
10729 ;;
10730
10731 dgux*)
10732 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10733 hardcode_libdir_flag_spec='-L$libdir'
10734 hardcode_shlibpath_var=no
10735 ;;
10736
10737 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10738 # support. Future versions do this automatically, but an explicit c++rt0.o
10739 # does not break anything, and helps significantly (at the cost of a little
10740 # extra space).
10741 freebsd2.2*)
10742 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10743 hardcode_libdir_flag_spec='-R$libdir'
10744 hardcode_direct=yes
10745 hardcode_shlibpath_var=no
10746 ;;
10747
10748 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10749 freebsd2.*)
10750 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10751 hardcode_direct=yes
10752 hardcode_minus_L=yes
10753 hardcode_shlibpath_var=no
10754 ;;
10755
10756 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10757 freebsd* | dragonfly*)
10758 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10759 hardcode_libdir_flag_spec='-R$libdir'
10760 hardcode_direct=yes
10761 hardcode_shlibpath_var=no
10762 ;;
10763
10764 hpux9*)
10765 if test yes = "$GCC"; then
10766 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10767 else
10768 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10769 fi
10770 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10771 hardcode_libdir_separator=:
10772 hardcode_direct=yes
10773
10774 # hardcode_minus_L: Not really in the search PATH,
10775 # but as the default location of the library.
10776 hardcode_minus_L=yes
10777 export_dynamic_flag_spec='$wl-E'
10778 ;;
10779
10780 hpux10*)
10781 if test yes,no = "$GCC,$with_gnu_ld"; then
10782 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10783 else
10784 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10785 fi
10786 if test no = "$with_gnu_ld"; then
10787 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10788 hardcode_libdir_separator=:
10789 hardcode_direct=yes
10790 hardcode_direct_absolute=yes
10791 export_dynamic_flag_spec='$wl-E'
10792 # hardcode_minus_L: Not really in the search PATH,
10793 # but as the default location of the library.
10794 hardcode_minus_L=yes
10795 fi
10796 ;;
10797
10798 hpux11*)
10799 if test yes,no = "$GCC,$with_gnu_ld"; then
10800 case $host_cpu in
10801 hppa*64*)
10802 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10803 ;;
10804 ia64*)
10805 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10806 ;;
10807 *)
10808 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10809 ;;
10810 esac
10811 else
10812 case $host_cpu in
10813 hppa*64*)
10814 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10815 ;;
10816 ia64*)
10817 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10818 ;;
10819 *)
10820
10821 # Older versions of the 11.00 compiler do not understand -b yet
10822 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10824 printf %s "checking if $CC understands -b... " >&6; }
10825 if test ${lt_cv_prog_compiler__b+y}
10826 then :
10827 printf %s "(cached) " >&6
10828 else $as_nop
10829 lt_cv_prog_compiler__b=no
10830 save_LDFLAGS=$LDFLAGS
10831 LDFLAGS="$LDFLAGS -b"
10832 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10833 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10834 # The linker can only warn and ignore the option if not recognized
10835 # So say no if there are warnings
10836 if test -s conftest.err; then
10837 # Append any errors to the config.log.
10838 cat conftest.err 1>&5
10839 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10840 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10841 if diff conftest.exp conftest.er2 >/dev/null; then
10842 lt_cv_prog_compiler__b=yes
10843 fi
10844 else
10845 lt_cv_prog_compiler__b=yes
10846 fi
10847 fi
10848 $RM -r conftest*
10849 LDFLAGS=$save_LDFLAGS
10850
10851 fi
10852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10853 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10854
10855 if test yes = "$lt_cv_prog_compiler__b"; then
10856 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10857 else
10858 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10859 fi
10860
10861 ;;
10862 esac
10863 fi
10864 if test no = "$with_gnu_ld"; then
10865 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10866 hardcode_libdir_separator=:
10867
10868 case $host_cpu in
10869 hppa*64*|ia64*)
10870 hardcode_direct=no
10871 hardcode_shlibpath_var=no
10872 ;;
10873 *)
10874 hardcode_direct=yes
10875 hardcode_direct_absolute=yes
10876 export_dynamic_flag_spec='$wl-E'
10877
10878 # hardcode_minus_L: Not really in the search PATH,
10879 # but as the default location of the library.
10880 hardcode_minus_L=yes
10881 ;;
10882 esac
10883 fi
10884 ;;
10885
10886 irix5* | irix6* | nonstopux*)
10887 if test yes = "$GCC"; then
10888 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10889 # Try to use the -exported_symbol ld option, if it does not
10890 # work, assume that -exports_file does not work either and
10891 # implicitly export all symbols.
10892 # This should be the same for all languages, so no per-tag cache variable.
10893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10894 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10895 if test ${lt_cv_irix_exported_symbol+y}
10896 then :
10897 printf %s "(cached) " >&6
10898 else $as_nop
10899 save_LDFLAGS=$LDFLAGS
10900 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10902 /* end confdefs.h. */
10903 int foo (void) { return 0; }
10904 _ACEOF
10905 if ac_fn_c_try_link "$LINENO"
10906 then :
10907 lt_cv_irix_exported_symbol=yes
10908 else $as_nop
10909 lt_cv_irix_exported_symbol=no
10910 fi
10911 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10912 conftest$ac_exeext conftest.$ac_ext
10913 LDFLAGS=$save_LDFLAGS
10914 fi
10915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10916 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10917 if test yes = "$lt_cv_irix_exported_symbol"; then
10918 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
10919 fi
10920 link_all_deplibs=no
10921 else
10922 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10923 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
10924 fi
10925 archive_cmds_need_lc='no'
10926 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10927 hardcode_libdir_separator=:
10928 inherit_rpath=yes
10929 link_all_deplibs=yes
10930 ;;
10931
10932 linux*)
10933 case $cc_basename in
10934 tcc*)
10935 # Fabrice Bellard et al's Tiny C Compiler
10936 ld_shlibs=yes
10937 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10938 ;;
10939 esac
10940 ;;
10941
10942 netbsd* | netbsdelf*-gnu)
10943 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10944 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10945 else
10946 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10947 fi
10948 hardcode_libdir_flag_spec='-R$libdir'
10949 hardcode_direct=yes
10950 hardcode_shlibpath_var=no
10951 ;;
10952
10953 newsos6)
10954 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10955 hardcode_direct=yes
10956 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10957 hardcode_libdir_separator=:
10958 hardcode_shlibpath_var=no
10959 ;;
10960
10961 *nto* | *qnx*)
10962 ;;
10963
10964 openbsd* | bitrig*)
10965 if test -f /usr/libexec/ld.so; then
10966 hardcode_direct=yes
10967 hardcode_shlibpath_var=no
10968 hardcode_direct_absolute=yes
10969 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10970 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10971 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10972 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10973 export_dynamic_flag_spec='$wl-E'
10974 else
10975 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10976 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10977 fi
10978 else
10979 ld_shlibs=no
10980 fi
10981 ;;
10982
10983 os2*)
10984 hardcode_libdir_flag_spec='-L$libdir'
10985 hardcode_minus_L=yes
10986 allow_undefined_flag=unsupported
10987 shrext_cmds=.dll
10988 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10989 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10990 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10991 $ECHO EXPORTS >> $output_objdir/$libname.def~
10992 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10993 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10994 emximp -o $lib $output_objdir/$libname.def'
10995 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10996 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10997 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10998 $ECHO EXPORTS >> $output_objdir/$libname.def~
10999 prefix_cmds="$SED"~
11000 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11001 prefix_cmds="$prefix_cmds -e 1d";
11002 fi~
11003 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11004 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11005 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11006 emximp -o $lib $output_objdir/$libname.def'
11007 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11008 enable_shared_with_static_runtimes=yes
11009 ;;
11010
11011 osf3*)
11012 if test yes = "$GCC"; then
11013 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11014 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11015 else
11016 allow_undefined_flag=' -expect_unresolved \*'
11017 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11018 fi
11019 archive_cmds_need_lc='no'
11020 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11021 hardcode_libdir_separator=:
11022 ;;
11023
11024 osf4* | osf5*) # as osf3* with the addition of -msym flag
11025 if test yes = "$GCC"; then
11026 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11027 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11028 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11029 else
11030 allow_undefined_flag=' -expect_unresolved \*'
11031 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11032 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
11033 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
11034
11035 # Both c and cxx compiler support -rpath directly
11036 hardcode_libdir_flag_spec='-rpath $libdir'
11037 fi
11038 archive_cmds_need_lc='no'
11039 hardcode_libdir_separator=:
11040 ;;
11041
11042 solaris*)
11043 no_undefined_flag=' -z defs'
11044 if test yes = "$GCC"; then
11045 wlarc='$wl'
11046 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11047 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11048 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11049 else
11050 case `$CC -V 2>&1` in
11051 *"Compilers 5.0"*)
11052 wlarc=''
11053 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11054 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11055 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11056 ;;
11057 *)
11058 wlarc='$wl'
11059 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11060 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11061 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11062 ;;
11063 esac
11064 fi
11065 hardcode_libdir_flag_spec='-R$libdir'
11066 hardcode_shlibpath_var=no
11067 case $host_os in
11068 solaris2.[0-5] | solaris2.[0-5].*) ;;
11069 *)
11070 # The compiler driver will combine and reorder linker options,
11071 # but understands '-z linker_flag'. GCC discards it without '$wl',
11072 # but is careful enough not to reorder.
11073 # Supported since Solaris 2.6 (maybe 2.5.1?)
11074 if test yes = "$GCC"; then
11075 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11076 else
11077 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11078 fi
11079 ;;
11080 esac
11081 link_all_deplibs=yes
11082 ;;
11083
11084 sunos4*)
11085 if test sequent = "$host_vendor"; then
11086 # Use $CC to link under sequent, because it throws in some extra .o
11087 # files that make .init and .fini sections work.
11088 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11089 else
11090 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11091 fi
11092 hardcode_libdir_flag_spec='-L$libdir'
11093 hardcode_direct=yes
11094 hardcode_minus_L=yes
11095 hardcode_shlibpath_var=no
11096 ;;
11097
11098 sysv4)
11099 case $host_vendor in
11100 sni)
11101 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11102 hardcode_direct=yes # is this really true???
11103 ;;
11104 siemens)
11105 ## LD is ld it makes a PLAMLIB
11106 ## CC just makes a GrossModule.
11107 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11108 reload_cmds='$CC -r -o $output$reload_objs'
11109 hardcode_direct=no
11110 ;;
11111 motorola)
11112 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11113 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11114 ;;
11115 esac
11116 runpath_var='LD_RUN_PATH'
11117 hardcode_shlibpath_var=no
11118 ;;
11119
11120 sysv4.3*)
11121 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11122 hardcode_shlibpath_var=no
11123 export_dynamic_flag_spec='-Bexport'
11124 ;;
11125
11126 sysv4*MP*)
11127 if test -d /usr/nec; then
11128 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11129 hardcode_shlibpath_var=no
11130 runpath_var=LD_RUN_PATH
11131 hardcode_runpath_var=yes
11132 ld_shlibs=yes
11133 fi
11134 ;;
11135
11136 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11137 no_undefined_flag='$wl-z,text'
11138 archive_cmds_need_lc=no
11139 hardcode_shlibpath_var=no
11140 runpath_var='LD_RUN_PATH'
11141
11142 if test yes = "$GCC"; then
11143 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11144 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11145 else
11146 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11147 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11148 fi
11149 ;;
11150
11151 sysv5* | sco3.2v5* | sco5v6*)
11152 # Note: We CANNOT use -z defs as we might desire, because we do not
11153 # link with -lc, and that would cause any symbols used from libc to
11154 # always be unresolved, which means just about no library would
11155 # ever link correctly. If we're not using GNU ld we use -z text
11156 # though, which does catch some bad symbols but isn't as heavy-handed
11157 # as -z defs.
11158 no_undefined_flag='$wl-z,text'
11159 allow_undefined_flag='$wl-z,nodefs'
11160 archive_cmds_need_lc=no
11161 hardcode_shlibpath_var=no
11162 hardcode_libdir_flag_spec='$wl-R,$libdir'
11163 hardcode_libdir_separator=':'
11164 link_all_deplibs=yes
11165 export_dynamic_flag_spec='$wl-Bexport'
11166 runpath_var='LD_RUN_PATH'
11167
11168 if test yes = "$GCC"; then
11169 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11170 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11171 else
11172 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11173 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11174 fi
11175 ;;
11176
11177 uts4*)
11178 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11179 hardcode_libdir_flag_spec='-L$libdir'
11180 hardcode_shlibpath_var=no
11181 ;;
11182
11183 *)
11184 ld_shlibs=no
11185 ;;
11186 esac
11187
11188 if test sni = "$host_vendor"; then
11189 case $host in
11190 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11191 export_dynamic_flag_spec='$wl-Blargedynsym'
11192 ;;
11193 esac
11194 fi
11195 fi
11196
11197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11198 printf "%s\n" "$ld_shlibs" >&6; }
11199 test no = "$ld_shlibs" && can_build_shared=no
11200
11201 with_gnu_ld=$with_gnu_ld
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217 #
11218 # Do we need to explicitly link libc?
11219 #
11220 case "x$archive_cmds_need_lc" in
11221 x|xyes)
11222 # Assume -lc should be added
11223 archive_cmds_need_lc=yes
11224
11225 if test yes,yes = "$GCC,$enable_shared"; then
11226 case $archive_cmds in
11227 *'~'*)
11228 # FIXME: we may have to deal with multi-command sequences.
11229 ;;
11230 '$CC '*)
11231 # Test whether the compiler implicitly links with -lc since on some
11232 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11233 # to ld, don't add -lc before -lgcc.
11234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11235 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11236 if test ${lt_cv_archive_cmds_need_lc+y}
11237 then :
11238 printf %s "(cached) " >&6
11239 else $as_nop
11240 $RM conftest*
11241 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11242
11243 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11244 (eval $ac_compile) 2>&5
11245 ac_status=$?
11246 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11247 test $ac_status = 0; } 2>conftest.err; then
11248 soname=conftest
11249 lib=conftest
11250 libobjs=conftest.$ac_objext
11251 deplibs=
11252 wl=$lt_prog_compiler_wl
11253 pic_flag=$lt_prog_compiler_pic
11254 compiler_flags=-v
11255 linker_flags=-v
11256 verstring=
11257 output_objdir=.
11258 libname=conftest
11259 lt_save_allow_undefined_flag=$allow_undefined_flag
11260 allow_undefined_flag=
11261 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11262 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11263 ac_status=$?
11264 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11265 test $ac_status = 0; }
11266 then
11267 lt_cv_archive_cmds_need_lc=no
11268 else
11269 lt_cv_archive_cmds_need_lc=yes
11270 fi
11271 allow_undefined_flag=$lt_save_allow_undefined_flag
11272 else
11273 cat conftest.err 1>&5
11274 fi
11275 $RM conftest*
11276
11277 fi
11278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11279 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11280 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11281 ;;
11282 esac
11283 fi
11284 ;;
11285 esac
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11439 printf %s "checking dynamic linker characteristics... " >&6; }
11440
11441 if test yes = "$GCC"; then
11442 case $host_os in
11443 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11444 *) lt_awk_arg='/^libraries:/' ;;
11445 esac
11446 case $host_os in
11447 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11448 *) lt_sed_strip_eq='s|=/|/|g' ;;
11449 esac
11450 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11451 case $lt_search_path_spec in
11452 *\;*)
11453 # if the path contains ";" then we assume it to be the separator
11454 # otherwise default to the standard path separator (i.e. ":") - it is
11455 # assumed that no part of a normal pathname contains ";" but that should
11456 # okay in the real world where ";" in dirpaths is itself problematic.
11457 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11458 ;;
11459 *)
11460 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11461 ;;
11462 esac
11463 # Ok, now we have the path, separated by spaces, we can step through it
11464 # and add multilib dir if necessary...
11465 lt_tmp_lt_search_path_spec=
11466 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11467 # ...but if some path component already ends with the multilib dir we assume
11468 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11469 case "$lt_multi_os_dir; $lt_search_path_spec " in
11470 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11471 lt_multi_os_dir=
11472 ;;
11473 esac
11474 for lt_sys_path in $lt_search_path_spec; do
11475 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11476 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11477 elif test -n "$lt_multi_os_dir"; then
11478 test -d "$lt_sys_path" && \
11479 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11480 fi
11481 done
11482 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11483 BEGIN {RS = " "; FS = "/|\n";} {
11484 lt_foo = "";
11485 lt_count = 0;
11486 for (lt_i = NF; lt_i > 0; lt_i--) {
11487 if ($lt_i != "" && $lt_i != ".") {
11488 if ($lt_i == "..") {
11489 lt_count++;
11490 } else {
11491 if (lt_count == 0) {
11492 lt_foo = "/" $lt_i lt_foo;
11493 } else {
11494 lt_count--;
11495 }
11496 }
11497 }
11498 }
11499 if (lt_foo != "") { lt_freq[lt_foo]++; }
11500 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11501 }'`
11502 # AWK program above erroneously prepends '/' to C:/dos/paths
11503 # for these hosts.
11504 case $host_os in
11505 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11506 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11507 esac
11508 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11509 else
11510 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11511 fi
11512 library_names_spec=
11513 libname_spec='lib$name'
11514 soname_spec=
11515 shrext_cmds=.so
11516 postinstall_cmds=
11517 postuninstall_cmds=
11518 finish_cmds=
11519 finish_eval=
11520 shlibpath_var=
11521 shlibpath_overrides_runpath=unknown
11522 version_type=none
11523 dynamic_linker="$host_os ld.so"
11524 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11525 need_lib_prefix=unknown
11526 hardcode_into_libs=no
11527
11528 # when you set need_version to no, make sure it does not cause -set_version
11529 # flags to be left without arguments
11530 need_version=unknown
11531
11532
11533
11534 case $host_os in
11535 aix3*)
11536 version_type=linux # correct to gnu/linux during the next big refactor
11537 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11538 shlibpath_var=LIBPATH
11539
11540 # AIX 3 has no versioning support, so we append a major version to the name.
11541 soname_spec='$libname$release$shared_ext$major'
11542 ;;
11543
11544 aix[4-9]*)
11545 version_type=linux # correct to gnu/linux during the next big refactor
11546 need_lib_prefix=no
11547 need_version=no
11548 hardcode_into_libs=yes
11549 if test ia64 = "$host_cpu"; then
11550 # AIX 5 supports IA64
11551 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11552 shlibpath_var=LD_LIBRARY_PATH
11553 else
11554 # With GCC up to 2.95.x, collect2 would create an import file
11555 # for dependence libraries. The import file would start with
11556 # the line '#! .'. This would cause the generated library to
11557 # depend on '.', always an invalid library. This was fixed in
11558 # development snapshots of GCC prior to 3.0.
11559 case $host_os in
11560 aix4 | aix4.[01] | aix4.[01].*)
11561 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11562 echo ' yes '
11563 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11564 :
11565 else
11566 can_build_shared=no
11567 fi
11568 ;;
11569 esac
11570 # Using Import Files as archive members, it is possible to support
11571 # filename-based versioning of shared library archives on AIX. While
11572 # this would work for both with and without runtime linking, it will
11573 # prevent static linking of such archives. So we do filename-based
11574 # shared library versioning with .so extension only, which is used
11575 # when both runtime linking and shared linking is enabled.
11576 # Unfortunately, runtime linking may impact performance, so we do
11577 # not want this to be the default eventually. Also, we use the
11578 # versioned .so libs for executables only if there is the -brtl
11579 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11580 # To allow for filename-based versioning support, we need to create
11581 # libNAME.so.V as an archive file, containing:
11582 # *) an Import File, referring to the versioned filename of the
11583 # archive as well as the shared archive member, telling the
11584 # bitwidth (32 or 64) of that shared object, and providing the
11585 # list of exported symbols of that shared object, eventually
11586 # decorated with the 'weak' keyword
11587 # *) the shared object with the F_LOADONLY flag set, to really avoid
11588 # it being seen by the linker.
11589 # At run time we better use the real file rather than another symlink,
11590 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11591
11592 case $with_aix_soname,$aix_use_runtimelinking in
11593 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11594 # soname into executable. Probably we can add versioning support to
11595 # collect2, so additional links can be useful in future.
11596 aix,yes) # traditional libtool
11597 dynamic_linker='AIX unversionable lib.so'
11598 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11599 # instead of lib<name>.a to let people know that these are not
11600 # typical AIX shared libraries.
11601 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11602 ;;
11603 aix,no) # traditional AIX only
11604 dynamic_linker='AIX lib.a(lib.so.V)'
11605 # We preserve .a as extension for shared libraries through AIX4.2
11606 # and later when we are not doing run time linking.
11607 library_names_spec='$libname$release.a $libname.a'
11608 soname_spec='$libname$release$shared_ext$major'
11609 ;;
11610 svr4,*) # full svr4 only
11611 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11612 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11613 # We do not specify a path in Import Files, so LIBPATH fires.
11614 shlibpath_overrides_runpath=yes
11615 ;;
11616 *,yes) # both, prefer svr4
11617 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11618 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11619 # unpreferred sharedlib libNAME.a needs extra handling
11620 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11621 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11622 # We do not specify a path in Import Files, so LIBPATH fires.
11623 shlibpath_overrides_runpath=yes
11624 ;;
11625 *,no) # both, prefer aix
11626 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11627 library_names_spec='$libname$release.a $libname.a'
11628 soname_spec='$libname$release$shared_ext$major'
11629 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11630 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11631 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11632 ;;
11633 esac
11634 shlibpath_var=LIBPATH
11635 fi
11636 ;;
11637
11638 amigaos*)
11639 case $host_cpu in
11640 powerpc)
11641 # Since July 2007 AmigaOS4 officially supports .so libraries.
11642 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11643 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11644 ;;
11645 m68k)
11646 library_names_spec='$libname.ixlibrary $libname.a'
11647 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11648 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11649 ;;
11650 esac
11651 ;;
11652
11653 beos*)
11654 library_names_spec='$libname$shared_ext'
11655 dynamic_linker="$host_os ld.so"
11656 shlibpath_var=LIBRARY_PATH
11657 ;;
11658
11659 bsdi[45]*)
11660 version_type=linux # correct to gnu/linux during the next big refactor
11661 need_version=no
11662 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11663 soname_spec='$libname$release$shared_ext$major'
11664 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11665 shlibpath_var=LD_LIBRARY_PATH
11666 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11667 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11668 # the default ld.so.conf also contains /usr/contrib/lib and
11669 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11670 # libtool to hard-code these into programs
11671 ;;
11672
11673 cygwin* | mingw* | pw32* | cegcc*)
11674 version_type=windows
11675 shrext_cmds=.dll
11676 need_version=no
11677 need_lib_prefix=no
11678
11679 case $GCC,$cc_basename in
11680 yes,*)
11681 # gcc
11682 library_names_spec='$libname.dll.a'
11683 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11684 postinstall_cmds='base_file=`basename \$file`~
11685 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11686 dldir=$destdir/`dirname \$dlpath`~
11687 test -d \$dldir || mkdir -p \$dldir~
11688 $install_prog $dir/$dlname \$dldir/$dlname~
11689 chmod a+x \$dldir/$dlname~
11690 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11691 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11692 fi'
11693 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11694 dlpath=$dir/\$dldll~
11695 $RM \$dlpath'
11696 shlibpath_overrides_runpath=yes
11697
11698 case $host_os in
11699 cygwin*)
11700 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11701 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11702
11703 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11704 ;;
11705 mingw* | cegcc*)
11706 # MinGW DLLs use traditional 'lib' prefix
11707 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11708 ;;
11709 pw32*)
11710 # pw32 DLLs use 'pw' prefix rather than 'lib'
11711 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11712 ;;
11713 esac
11714 dynamic_linker='Win32 ld.exe'
11715 ;;
11716
11717 *,cl*)
11718 # Native MSVC
11719 libname_spec='$name'
11720 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11721 library_names_spec='$libname.dll.lib'
11722
11723 case $build_os in
11724 mingw*)
11725 sys_lib_search_path_spec=
11726 lt_save_ifs=$IFS
11727 IFS=';'
11728 for lt_path in $LIB
11729 do
11730 IFS=$lt_save_ifs
11731 # Let DOS variable expansion print the short 8.3 style file name.
11732 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11733 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11734 done
11735 IFS=$lt_save_ifs
11736 # Convert to MSYS style.
11737 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11738 ;;
11739 cygwin*)
11740 # Convert to unix form, then to dos form, then back to unix form
11741 # but this time dos style (no spaces!) so that the unix form looks
11742 # like /cygdrive/c/PROGRA~1:/cygdr...
11743 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11744 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11745 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11746 ;;
11747 *)
11748 sys_lib_search_path_spec=$LIB
11749 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11750 # It is most probably a Windows format PATH.
11751 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11752 else
11753 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11754 fi
11755 # FIXME: find the short name or the path components, as spaces are
11756 # common. (e.g. "Program Files" -> "PROGRA~1")
11757 ;;
11758 esac
11759
11760 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11761 postinstall_cmds='base_file=`basename \$file`~
11762 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11763 dldir=$destdir/`dirname \$dlpath`~
11764 test -d \$dldir || mkdir -p \$dldir~
11765 $install_prog $dir/$dlname \$dldir/$dlname'
11766 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11767 dlpath=$dir/\$dldll~
11768 $RM \$dlpath'
11769 shlibpath_overrides_runpath=yes
11770 dynamic_linker='Win32 link.exe'
11771 ;;
11772
11773 *)
11774 # Assume MSVC wrapper
11775 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11776 dynamic_linker='Win32 ld.exe'
11777 ;;
11778 esac
11779 # FIXME: first we should search . and the directory the executable is in
11780 shlibpath_var=PATH
11781 ;;
11782
11783 darwin* | rhapsody*)
11784 dynamic_linker="$host_os dyld"
11785 version_type=darwin
11786 need_lib_prefix=no
11787 need_version=no
11788 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11789 soname_spec='$libname$release$major$shared_ext'
11790 shlibpath_overrides_runpath=yes
11791 shlibpath_var=DYLD_LIBRARY_PATH
11792 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11793
11794 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11795 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11796 ;;
11797
11798 dgux*)
11799 version_type=linux # correct to gnu/linux during the next big refactor
11800 need_lib_prefix=no
11801 need_version=no
11802 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11803 soname_spec='$libname$release$shared_ext$major'
11804 shlibpath_var=LD_LIBRARY_PATH
11805 ;;
11806
11807 freebsd* | dragonfly*)
11808 # DragonFly does not have aout. When/if they implement a new
11809 # versioning mechanism, adjust this.
11810 if test -x /usr/bin/objformat; then
11811 objformat=`/usr/bin/objformat`
11812 else
11813 case $host_os in
11814 freebsd[23].*) objformat=aout ;;
11815 *) objformat=elf ;;
11816 esac
11817 fi
11818 version_type=freebsd-$objformat
11819 case $version_type in
11820 freebsd-elf*)
11821 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11822 soname_spec='$libname$release$shared_ext$major'
11823 need_version=no
11824 need_lib_prefix=no
11825 ;;
11826 freebsd-*)
11827 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11828 need_version=yes
11829 ;;
11830 esac
11831 shlibpath_var=LD_LIBRARY_PATH
11832 case $host_os in
11833 freebsd2.*)
11834 shlibpath_overrides_runpath=yes
11835 ;;
11836 freebsd3.[01]* | freebsdelf3.[01]*)
11837 shlibpath_overrides_runpath=yes
11838 hardcode_into_libs=yes
11839 ;;
11840 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11841 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11842 shlibpath_overrides_runpath=no
11843 hardcode_into_libs=yes
11844 ;;
11845 *) # from 4.6 on, and DragonFly
11846 shlibpath_overrides_runpath=yes
11847 hardcode_into_libs=yes
11848 ;;
11849 esac
11850 ;;
11851
11852 haiku*)
11853 version_type=linux # correct to gnu/linux during the next big refactor
11854 need_lib_prefix=no
11855 need_version=no
11856 dynamic_linker="$host_os runtime_loader"
11857 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11858 soname_spec='$libname$release$shared_ext$major'
11859 shlibpath_var=LIBRARY_PATH
11860 shlibpath_overrides_runpath=no
11861 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11862 hardcode_into_libs=yes
11863 ;;
11864
11865 hpux9* | hpux10* | hpux11*)
11866 # Give a soname corresponding to the major version so that dld.sl refuses to
11867 # link against other versions.
11868 version_type=sunos
11869 need_lib_prefix=no
11870 need_version=no
11871 case $host_cpu in
11872 ia64*)
11873 shrext_cmds='.so'
11874 hardcode_into_libs=yes
11875 dynamic_linker="$host_os dld.so"
11876 shlibpath_var=LD_LIBRARY_PATH
11877 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11878 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11879 soname_spec='$libname$release$shared_ext$major'
11880 if test 32 = "$HPUX_IA64_MODE"; then
11881 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11882 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11883 else
11884 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11885 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11886 fi
11887 ;;
11888 hppa*64*)
11889 shrext_cmds='.sl'
11890 hardcode_into_libs=yes
11891 dynamic_linker="$host_os dld.sl"
11892 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11893 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11894 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11895 soname_spec='$libname$release$shared_ext$major'
11896 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11897 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11898 ;;
11899 *)
11900 shrext_cmds='.sl'
11901 dynamic_linker="$host_os dld.sl"
11902 shlibpath_var=SHLIB_PATH
11903 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11904 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11905 soname_spec='$libname$release$shared_ext$major'
11906 ;;
11907 esac
11908 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11909 postinstall_cmds='chmod 555 $lib'
11910 # or fails outright, so override atomically:
11911 install_override_mode=555
11912 ;;
11913
11914 interix[3-9]*)
11915 version_type=linux # correct to gnu/linux during the next big refactor
11916 need_lib_prefix=no
11917 need_version=no
11918 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11919 soname_spec='$libname$release$shared_ext$major'
11920 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11921 shlibpath_var=LD_LIBRARY_PATH
11922 shlibpath_overrides_runpath=no
11923 hardcode_into_libs=yes
11924 ;;
11925
11926 irix5* | irix6* | nonstopux*)
11927 case $host_os in
11928 nonstopux*) version_type=nonstopux ;;
11929 *)
11930 if test yes = "$lt_cv_prog_gnu_ld"; then
11931 version_type=linux # correct to gnu/linux during the next big refactor
11932 else
11933 version_type=irix
11934 fi ;;
11935 esac
11936 need_lib_prefix=no
11937 need_version=no
11938 soname_spec='$libname$release$shared_ext$major'
11939 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11940 case $host_os in
11941 irix5* | nonstopux*)
11942 libsuff= shlibsuff=
11943 ;;
11944 *)
11945 case $LD in # libtool.m4 will add one of these switches to LD
11946 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11947 libsuff= shlibsuff= libmagic=32-bit;;
11948 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11949 libsuff=32 shlibsuff=N32 libmagic=N32;;
11950 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11951 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11952 *) libsuff= shlibsuff= libmagic=never-match;;
11953 esac
11954 ;;
11955 esac
11956 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11957 shlibpath_overrides_runpath=no
11958 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11959 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11960 hardcode_into_libs=yes
11961 ;;
11962
11963 # No shared lib support for Linux oldld, aout, or coff.
11964 linux*oldld* | linux*aout* | linux*coff*)
11965 dynamic_linker=no
11966 ;;
11967
11968 linux*android*)
11969 version_type=none # Android doesn't support versioned libraries.
11970 need_lib_prefix=no
11971 need_version=no
11972 library_names_spec='$libname$release$shared_ext'
11973 soname_spec='$libname$release$shared_ext'
11974 finish_cmds=
11975 shlibpath_var=LD_LIBRARY_PATH
11976 shlibpath_overrides_runpath=yes
11977
11978 # This implies no fast_install, which is unacceptable.
11979 # Some rework will be needed to allow for fast_install
11980 # before this can be enabled.
11981 hardcode_into_libs=yes
11982
11983 dynamic_linker='Android linker'
11984 # Don't embed -rpath directories since the linker doesn't support them.
11985 hardcode_libdir_flag_spec='-L$libdir'
11986 ;;
11987
11988 # This must be glibc/ELF.
11989 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11990 version_type=linux # correct to gnu/linux during the next big refactor
11991 need_lib_prefix=no
11992 need_version=no
11993 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11994 soname_spec='$libname$release$shared_ext$major'
11995 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11996 shlibpath_var=LD_LIBRARY_PATH
11997 shlibpath_overrides_runpath=no
11998
11999 # Some binutils ld are patched to set DT_RUNPATH
12000 if test ${lt_cv_shlibpath_overrides_runpath+y}
12001 then :
12002 printf %s "(cached) " >&6
12003 else $as_nop
12004 lt_cv_shlibpath_overrides_runpath=no
12005 save_LDFLAGS=$LDFLAGS
12006 save_libdir=$libdir
12007 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12008 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12010 /* end confdefs.h. */
12011
12012 int
12013 main (void)
12014 {
12015
12016 ;
12017 return 0;
12018 }
12019 _ACEOF
12020 if ac_fn_c_try_link "$LINENO"
12021 then :
12022 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12023 then :
12024 lt_cv_shlibpath_overrides_runpath=yes
12025 fi
12026 fi
12027 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12028 conftest$ac_exeext conftest.$ac_ext
12029 LDFLAGS=$save_LDFLAGS
12030 libdir=$save_libdir
12031
12032 fi
12033
12034 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12035
12036 # This implies no fast_install, which is unacceptable.
12037 # Some rework will be needed to allow for fast_install
12038 # before this can be enabled.
12039 hardcode_into_libs=yes
12040
12041 # Ideally, we could use ldconfig to report *all* directores which are
12042 # searched for libraries, however this is still not possible. Aside from not
12043 # being certain /sbin/ldconfig is available, command
12044 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12045 # even though it is searched at run-time. Try to do the best guess by
12046 # appending ld.so.conf contents (and includes) to the search path.
12047 if test -f /etc/ld.so.conf; then
12048 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
12049 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12050 fi
12051
12052 # We used to test for /lib/ld.so.1 and disable shared libraries on
12053 # powerpc, because MkLinux only supported shared libraries with the
12054 # GNU dynamic linker. Since this was broken with cross compilers,
12055 # most powerpc-linux boxes support dynamic linking these days and
12056 # people can always --disable-shared, the test was removed, and we
12057 # assume the GNU/Linux dynamic linker is in use.
12058 dynamic_linker='GNU/Linux ld.so'
12059 ;;
12060
12061 netbsdelf*-gnu)
12062 version_type=linux
12063 need_lib_prefix=no
12064 need_version=no
12065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12066 soname_spec='${libname}${release}${shared_ext}$major'
12067 shlibpath_var=LD_LIBRARY_PATH
12068 shlibpath_overrides_runpath=no
12069 hardcode_into_libs=yes
12070 dynamic_linker='NetBSD ld.elf_so'
12071 ;;
12072
12073 netbsd*)
12074 version_type=sunos
12075 need_lib_prefix=no
12076 need_version=no
12077 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12078 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12079 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12080 dynamic_linker='NetBSD (a.out) ld.so'
12081 else
12082 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12083 soname_spec='$libname$release$shared_ext$major'
12084 dynamic_linker='NetBSD ld.elf_so'
12085 fi
12086 shlibpath_var=LD_LIBRARY_PATH
12087 shlibpath_overrides_runpath=yes
12088 hardcode_into_libs=yes
12089 ;;
12090
12091 newsos6)
12092 version_type=linux # correct to gnu/linux during the next big refactor
12093 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12094 shlibpath_var=LD_LIBRARY_PATH
12095 shlibpath_overrides_runpath=yes
12096 ;;
12097
12098 *nto* | *qnx*)
12099 version_type=qnx
12100 need_lib_prefix=no
12101 need_version=no
12102 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12103 soname_spec='$libname$release$shared_ext$major'
12104 shlibpath_var=LD_LIBRARY_PATH
12105 shlibpath_overrides_runpath=no
12106 hardcode_into_libs=yes
12107 dynamic_linker='ldqnx.so'
12108 ;;
12109
12110 openbsd* | bitrig*)
12111 version_type=sunos
12112 sys_lib_dlsearch_path_spec=/usr/lib
12113 need_lib_prefix=no
12114 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12115 need_version=no
12116 else
12117 need_version=yes
12118 fi
12119 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12120 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12121 shlibpath_var=LD_LIBRARY_PATH
12122 shlibpath_overrides_runpath=yes
12123 ;;
12124
12125 os2*)
12126 libname_spec='$name'
12127 version_type=windows
12128 shrext_cmds=.dll
12129 need_version=no
12130 need_lib_prefix=no
12131 # OS/2 can only load a DLL with a base name of 8 characters or less.
12132 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12133 v=$($ECHO $release$versuffix | tr -d .-);
12134 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12135 $ECHO $n$v`$shared_ext'
12136 library_names_spec='${libname}_dll.$libext'
12137 dynamic_linker='OS/2 ld.exe'
12138 shlibpath_var=BEGINLIBPATH
12139 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12140 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12141 postinstall_cmds='base_file=`basename \$file`~
12142 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12143 dldir=$destdir/`dirname \$dlpath`~
12144 test -d \$dldir || mkdir -p \$dldir~
12145 $install_prog $dir/$dlname \$dldir/$dlname~
12146 chmod a+x \$dldir/$dlname~
12147 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12148 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12149 fi'
12150 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12151 dlpath=$dir/\$dldll~
12152 $RM \$dlpath'
12153 ;;
12154
12155 osf3* | osf4* | osf5*)
12156 version_type=osf
12157 need_lib_prefix=no
12158 need_version=no
12159 soname_spec='$libname$release$shared_ext$major'
12160 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12161 shlibpath_var=LD_LIBRARY_PATH
12162 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12163 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12164 ;;
12165
12166 rdos*)
12167 dynamic_linker=no
12168 ;;
12169
12170 solaris*)
12171 version_type=linux # correct to gnu/linux during the next big refactor
12172 need_lib_prefix=no
12173 need_version=no
12174 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12175 soname_spec='$libname$release$shared_ext$major'
12176 shlibpath_var=LD_LIBRARY_PATH
12177 shlibpath_overrides_runpath=yes
12178 hardcode_into_libs=yes
12179 # ldd complains unless libraries are executable
12180 postinstall_cmds='chmod +x $lib'
12181 ;;
12182
12183 sunos4*)
12184 version_type=sunos
12185 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12186 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12187 shlibpath_var=LD_LIBRARY_PATH
12188 shlibpath_overrides_runpath=yes
12189 if test yes = "$with_gnu_ld"; then
12190 need_lib_prefix=no
12191 fi
12192 need_version=yes
12193 ;;
12194
12195 sysv4 | sysv4.3*)
12196 version_type=linux # correct to gnu/linux during the next big refactor
12197 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12198 soname_spec='$libname$release$shared_ext$major'
12199 shlibpath_var=LD_LIBRARY_PATH
12200 case $host_vendor in
12201 sni)
12202 shlibpath_overrides_runpath=no
12203 need_lib_prefix=no
12204 runpath_var=LD_RUN_PATH
12205 ;;
12206 siemens)
12207 need_lib_prefix=no
12208 ;;
12209 motorola)
12210 need_lib_prefix=no
12211 need_version=no
12212 shlibpath_overrides_runpath=no
12213 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12214 ;;
12215 esac
12216 ;;
12217
12218 sysv4*MP*)
12219 if test -d /usr/nec; then
12220 version_type=linux # correct to gnu/linux during the next big refactor
12221 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12222 soname_spec='$libname$shared_ext.$major'
12223 shlibpath_var=LD_LIBRARY_PATH
12224 fi
12225 ;;
12226
12227 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12228 version_type=sco
12229 need_lib_prefix=no
12230 need_version=no
12231 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12232 soname_spec='$libname$release$shared_ext$major'
12233 shlibpath_var=LD_LIBRARY_PATH
12234 shlibpath_overrides_runpath=yes
12235 hardcode_into_libs=yes
12236 if test yes = "$with_gnu_ld"; then
12237 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12238 else
12239 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12240 case $host_os in
12241 sco3.2v5*)
12242 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12243 ;;
12244 esac
12245 fi
12246 sys_lib_dlsearch_path_spec='/usr/lib'
12247 ;;
12248
12249 tpf*)
12250 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12251 version_type=linux # correct to gnu/linux during the next big refactor
12252 need_lib_prefix=no
12253 need_version=no
12254 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12255 shlibpath_var=LD_LIBRARY_PATH
12256 shlibpath_overrides_runpath=no
12257 hardcode_into_libs=yes
12258 ;;
12259
12260 uts4*)
12261 version_type=linux # correct to gnu/linux during the next big refactor
12262 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12263 soname_spec='$libname$release$shared_ext$major'
12264 shlibpath_var=LD_LIBRARY_PATH
12265 ;;
12266
12267 *)
12268 dynamic_linker=no
12269 ;;
12270 esac
12271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12272 printf "%s\n" "$dynamic_linker" >&6; }
12273 test no = "$dynamic_linker" && can_build_shared=no
12274
12275 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12276 if test yes = "$GCC"; then
12277 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12278 fi
12279
12280 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12281 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12282 fi
12283
12284 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12285 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12286 fi
12287
12288 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12289 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12290
12291 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12292 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12293
12294 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12295 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12394 printf %s "checking how to hardcode library paths into programs... " >&6; }
12395 hardcode_action=
12396 if test -n "$hardcode_libdir_flag_spec" ||
12397 test -n "$runpath_var" ||
12398 test yes = "$hardcode_automatic"; then
12399
12400 # We can hardcode non-existent directories.
12401 if test no != "$hardcode_direct" &&
12402 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12403 # have to relink, otherwise we might link with an installed library
12404 # when we should be linking with a yet-to-be-installed one
12405 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12406 test no != "$hardcode_minus_L"; then
12407 # Linking always hardcodes the temporary library directory.
12408 hardcode_action=relink
12409 else
12410 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12411 hardcode_action=immediate
12412 fi
12413 else
12414 # We cannot hardcode anything, or else we can only hardcode existing
12415 # directories.
12416 hardcode_action=unsupported
12417 fi
12418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12419 printf "%s\n" "$hardcode_action" >&6; }
12420
12421 if test relink = "$hardcode_action" ||
12422 test yes = "$inherit_rpath"; then
12423 # Fast installation is not supported
12424 enable_fast_install=no
12425 elif test yes = "$shlibpath_overrides_runpath" ||
12426 test no = "$enable_shared"; then
12427 # Fast installation is not necessary
12428 enable_fast_install=needless
12429 fi
12430
12431
12432
12433
12434
12435
12436 if test yes != "$enable_dlopen"; then
12437 enable_dlopen=unknown
12438 enable_dlopen_self=unknown
12439 enable_dlopen_self_static=unknown
12440 else
12441 lt_cv_dlopen=no
12442 lt_cv_dlopen_libs=
12443
12444 case $host_os in
12445 beos*)
12446 lt_cv_dlopen=load_add_on
12447 lt_cv_dlopen_libs=
12448 lt_cv_dlopen_self=yes
12449 ;;
12450
12451 mingw* | pw32* | cegcc*)
12452 lt_cv_dlopen=LoadLibrary
12453 lt_cv_dlopen_libs=
12454 ;;
12455
12456 cygwin*)
12457 lt_cv_dlopen=dlopen
12458 lt_cv_dlopen_libs=
12459 ;;
12460
12461 darwin*)
12462 # if libdl is installed we need to link against it
12463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12464 printf %s "checking for dlopen in -ldl... " >&6; }
12465 if test ${ac_cv_lib_dl_dlopen+y}
12466 then :
12467 printf %s "(cached) " >&6
12468 else $as_nop
12469 ac_check_lib_save_LIBS=$LIBS
12470 LIBS="-ldl $LIBS"
12471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12472 /* end confdefs.h. */
12473
12474 /* Override any GCC internal prototype to avoid an error.
12475 Use char because int might match the return type of a GCC
12476 builtin and then its argument prototype would still apply. */
12477 char dlopen ();
12478 int
12479 main (void)
12480 {
12481 return dlopen ();
12482 ;
12483 return 0;
12484 }
12485 _ACEOF
12486 if ac_fn_c_try_link "$LINENO"
12487 then :
12488 ac_cv_lib_dl_dlopen=yes
12489 else $as_nop
12490 ac_cv_lib_dl_dlopen=no
12491 fi
12492 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12493 conftest$ac_exeext conftest.$ac_ext
12494 LIBS=$ac_check_lib_save_LIBS
12495 fi
12496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12497 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12498 if test "x$ac_cv_lib_dl_dlopen" = xyes
12499 then :
12500 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12501 else $as_nop
12502
12503 lt_cv_dlopen=dyld
12504 lt_cv_dlopen_libs=
12505 lt_cv_dlopen_self=yes
12506
12507 fi
12508
12509 ;;
12510
12511 tpf*)
12512 # Don't try to run any link tests for TPF. We know it's impossible
12513 # because TPF is a cross-compiler, and we know how we open DSOs.
12514 lt_cv_dlopen=dlopen
12515 lt_cv_dlopen_libs=
12516 lt_cv_dlopen_self=no
12517 ;;
12518
12519 *)
12520 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12521 if test "x$ac_cv_func_shl_load" = xyes
12522 then :
12523 lt_cv_dlopen=shl_load
12524 else $as_nop
12525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12526 printf %s "checking for shl_load in -ldld... " >&6; }
12527 if test ${ac_cv_lib_dld_shl_load+y}
12528 then :
12529 printf %s "(cached) " >&6
12530 else $as_nop
12531 ac_check_lib_save_LIBS=$LIBS
12532 LIBS="-ldld $LIBS"
12533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12534 /* end confdefs.h. */
12535
12536 /* Override any GCC internal prototype to avoid an error.
12537 Use char because int might match the return type of a GCC
12538 builtin and then its argument prototype would still apply. */
12539 char shl_load ();
12540 int
12541 main (void)
12542 {
12543 return shl_load ();
12544 ;
12545 return 0;
12546 }
12547 _ACEOF
12548 if ac_fn_c_try_link "$LINENO"
12549 then :
12550 ac_cv_lib_dld_shl_load=yes
12551 else $as_nop
12552 ac_cv_lib_dld_shl_load=no
12553 fi
12554 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12555 conftest$ac_exeext conftest.$ac_ext
12556 LIBS=$ac_check_lib_save_LIBS
12557 fi
12558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12559 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12560 if test "x$ac_cv_lib_dld_shl_load" = xyes
12561 then :
12562 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12563 else $as_nop
12564 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12565 if test "x$ac_cv_func_dlopen" = xyes
12566 then :
12567 lt_cv_dlopen=dlopen
12568 else $as_nop
12569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12570 printf %s "checking for dlopen in -ldl... " >&6; }
12571 if test ${ac_cv_lib_dl_dlopen+y}
12572 then :
12573 printf %s "(cached) " >&6
12574 else $as_nop
12575 ac_check_lib_save_LIBS=$LIBS
12576 LIBS="-ldl $LIBS"
12577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12578 /* end confdefs.h. */
12579
12580 /* Override any GCC internal prototype to avoid an error.
12581 Use char because int might match the return type of a GCC
12582 builtin and then its argument prototype would still apply. */
12583 char dlopen ();
12584 int
12585 main (void)
12586 {
12587 return dlopen ();
12588 ;
12589 return 0;
12590 }
12591 _ACEOF
12592 if ac_fn_c_try_link "$LINENO"
12593 then :
12594 ac_cv_lib_dl_dlopen=yes
12595 else $as_nop
12596 ac_cv_lib_dl_dlopen=no
12597 fi
12598 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12599 conftest$ac_exeext conftest.$ac_ext
12600 LIBS=$ac_check_lib_save_LIBS
12601 fi
12602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12603 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12604 if test "x$ac_cv_lib_dl_dlopen" = xyes
12605 then :
12606 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12607 else $as_nop
12608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12609 printf %s "checking for dlopen in -lsvld... " >&6; }
12610 if test ${ac_cv_lib_svld_dlopen+y}
12611 then :
12612 printf %s "(cached) " >&6
12613 else $as_nop
12614 ac_check_lib_save_LIBS=$LIBS
12615 LIBS="-lsvld $LIBS"
12616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12617 /* end confdefs.h. */
12618
12619 /* Override any GCC internal prototype to avoid an error.
12620 Use char because int might match the return type of a GCC
12621 builtin and then its argument prototype would still apply. */
12622 char dlopen ();
12623 int
12624 main (void)
12625 {
12626 return dlopen ();
12627 ;
12628 return 0;
12629 }
12630 _ACEOF
12631 if ac_fn_c_try_link "$LINENO"
12632 then :
12633 ac_cv_lib_svld_dlopen=yes
12634 else $as_nop
12635 ac_cv_lib_svld_dlopen=no
12636 fi
12637 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12638 conftest$ac_exeext conftest.$ac_ext
12639 LIBS=$ac_check_lib_save_LIBS
12640 fi
12641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12642 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12643 if test "x$ac_cv_lib_svld_dlopen" = xyes
12644 then :
12645 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12646 else $as_nop
12647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12648 printf %s "checking for dld_link in -ldld... " >&6; }
12649 if test ${ac_cv_lib_dld_dld_link+y}
12650 then :
12651 printf %s "(cached) " >&6
12652 else $as_nop
12653 ac_check_lib_save_LIBS=$LIBS
12654 LIBS="-ldld $LIBS"
12655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12656 /* end confdefs.h. */
12657
12658 /* Override any GCC internal prototype to avoid an error.
12659 Use char because int might match the return type of a GCC
12660 builtin and then its argument prototype would still apply. */
12661 char dld_link ();
12662 int
12663 main (void)
12664 {
12665 return dld_link ();
12666 ;
12667 return 0;
12668 }
12669 _ACEOF
12670 if ac_fn_c_try_link "$LINENO"
12671 then :
12672 ac_cv_lib_dld_dld_link=yes
12673 else $as_nop
12674 ac_cv_lib_dld_dld_link=no
12675 fi
12676 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12677 conftest$ac_exeext conftest.$ac_ext
12678 LIBS=$ac_check_lib_save_LIBS
12679 fi
12680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12681 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12682 if test "x$ac_cv_lib_dld_dld_link" = xyes
12683 then :
12684 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12685 fi
12686
12687
12688 fi
12689
12690
12691 fi
12692
12693
12694 fi
12695
12696
12697 fi
12698
12699
12700 fi
12701
12702 ;;
12703 esac
12704
12705 if test no = "$lt_cv_dlopen"; then
12706 enable_dlopen=no
12707 else
12708 enable_dlopen=yes
12709 fi
12710
12711 case $lt_cv_dlopen in
12712 dlopen)
12713 save_CPPFLAGS=$CPPFLAGS
12714 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12715
12716 save_LDFLAGS=$LDFLAGS
12717 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12718
12719 save_LIBS=$LIBS
12720 LIBS="$lt_cv_dlopen_libs $LIBS"
12721
12722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12723 printf %s "checking whether a program can dlopen itself... " >&6; }
12724 if test ${lt_cv_dlopen_self+y}
12725 then :
12726 printf %s "(cached) " >&6
12727 else $as_nop
12728 if test yes = "$cross_compiling"; then :
12729 lt_cv_dlopen_self=cross
12730 else
12731 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12732 lt_status=$lt_dlunknown
12733 cat > conftest.$ac_ext <<_LT_EOF
12734 #line $LINENO "configure"
12735 #include "confdefs.h"
12736
12737 #if HAVE_DLFCN_H
12738 #include <dlfcn.h>
12739 #endif
12740
12741 #include <stdio.h>
12742
12743 #ifdef RTLD_GLOBAL
12744 # define LT_DLGLOBAL RTLD_GLOBAL
12745 #else
12746 # ifdef DL_GLOBAL
12747 # define LT_DLGLOBAL DL_GLOBAL
12748 # else
12749 # define LT_DLGLOBAL 0
12750 # endif
12751 #endif
12752
12753 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12754 find out it does not work in some platform. */
12755 #ifndef LT_DLLAZY_OR_NOW
12756 # ifdef RTLD_LAZY
12757 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12758 # else
12759 # ifdef DL_LAZY
12760 # define LT_DLLAZY_OR_NOW DL_LAZY
12761 # else
12762 # ifdef RTLD_NOW
12763 # define LT_DLLAZY_OR_NOW RTLD_NOW
12764 # else
12765 # ifdef DL_NOW
12766 # define LT_DLLAZY_OR_NOW DL_NOW
12767 # else
12768 # define LT_DLLAZY_OR_NOW 0
12769 # endif
12770 # endif
12771 # endif
12772 # endif
12773 #endif
12774
12775 /* When -fvisibility=hidden is used, assume the code has been annotated
12776 correspondingly for the symbols needed. */
12777 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12778 int fnord () __attribute__((visibility("default")));
12779 #endif
12780
12781 int fnord () { return 42; }
12782 int main ()
12783 {
12784 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12785 int status = $lt_dlunknown;
12786
12787 if (self)
12788 {
12789 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12790 else
12791 {
12792 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12793 else puts (dlerror ());
12794 }
12795 /* dlclose (self); */
12796 }
12797 else
12798 puts (dlerror ());
12799
12800 return status;
12801 }
12802 _LT_EOF
12803 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12804 (eval $ac_link) 2>&5
12805 ac_status=$?
12806 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12807 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12808 (./conftest; exit; ) >&5 2>/dev/null
12809 lt_status=$?
12810 case x$lt_status in
12811 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12812 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12813 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12814 esac
12815 else :
12816 # compilation failed
12817 lt_cv_dlopen_self=no
12818 fi
12819 fi
12820 rm -fr conftest*
12821
12822
12823 fi
12824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12825 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12826
12827 if test yes = "$lt_cv_dlopen_self"; then
12828 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12830 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12831 if test ${lt_cv_dlopen_self_static+y}
12832 then :
12833 printf %s "(cached) " >&6
12834 else $as_nop
12835 if test yes = "$cross_compiling"; then :
12836 lt_cv_dlopen_self_static=cross
12837 else
12838 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12839 lt_status=$lt_dlunknown
12840 cat > conftest.$ac_ext <<_LT_EOF
12841 #line $LINENO "configure"
12842 #include "confdefs.h"
12843
12844 #if HAVE_DLFCN_H
12845 #include <dlfcn.h>
12846 #endif
12847
12848 #include <stdio.h>
12849
12850 #ifdef RTLD_GLOBAL
12851 # define LT_DLGLOBAL RTLD_GLOBAL
12852 #else
12853 # ifdef DL_GLOBAL
12854 # define LT_DLGLOBAL DL_GLOBAL
12855 # else
12856 # define LT_DLGLOBAL 0
12857 # endif
12858 #endif
12859
12860 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12861 find out it does not work in some platform. */
12862 #ifndef LT_DLLAZY_OR_NOW
12863 # ifdef RTLD_LAZY
12864 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12865 # else
12866 # ifdef DL_LAZY
12867 # define LT_DLLAZY_OR_NOW DL_LAZY
12868 # else
12869 # ifdef RTLD_NOW
12870 # define LT_DLLAZY_OR_NOW RTLD_NOW
12871 # else
12872 # ifdef DL_NOW
12873 # define LT_DLLAZY_OR_NOW DL_NOW
12874 # else
12875 # define LT_DLLAZY_OR_NOW 0
12876 # endif
12877 # endif
12878 # endif
12879 # endif
12880 #endif
12881
12882 /* When -fvisibility=hidden is used, assume the code has been annotated
12883 correspondingly for the symbols needed. */
12884 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12885 int fnord () __attribute__((visibility("default")));
12886 #endif
12887
12888 int fnord () { return 42; }
12889 int main ()
12890 {
12891 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12892 int status = $lt_dlunknown;
12893
12894 if (self)
12895 {
12896 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12897 else
12898 {
12899 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12900 else puts (dlerror ());
12901 }
12902 /* dlclose (self); */
12903 }
12904 else
12905 puts (dlerror ());
12906
12907 return status;
12908 }
12909 _LT_EOF
12910 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12911 (eval $ac_link) 2>&5
12912 ac_status=$?
12913 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12914 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12915 (./conftest; exit; ) >&5 2>/dev/null
12916 lt_status=$?
12917 case x$lt_status in
12918 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12919 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12920 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12921 esac
12922 else :
12923 # compilation failed
12924 lt_cv_dlopen_self_static=no
12925 fi
12926 fi
12927 rm -fr conftest*
12928
12929
12930 fi
12931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12932 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12933 fi
12934
12935 CPPFLAGS=$save_CPPFLAGS
12936 LDFLAGS=$save_LDFLAGS
12937 LIBS=$save_LIBS
12938 ;;
12939 esac
12940
12941 case $lt_cv_dlopen_self in
12942 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12943 *) enable_dlopen_self=unknown ;;
12944 esac
12945
12946 case $lt_cv_dlopen_self_static in
12947 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12948 *) enable_dlopen_self_static=unknown ;;
12949 esac
12950 fi
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968 striplib=
12969 old_striplib=
12970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12971 printf %s "checking whether stripping libraries is possible... " >&6; }
12972 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12973 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12974 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12976 printf "%s\n" "yes" >&6; }
12977 else
12978 # FIXME - insert some real tests, host_os isn't really good enough
12979 case $host_os in
12980 darwin*)
12981 if test -n "$STRIP"; then
12982 striplib="$STRIP -x"
12983 old_striplib="$STRIP -S"
12984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12985 printf "%s\n" "yes" >&6; }
12986 else
12987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12988 printf "%s\n" "no" >&6; }
12989 fi
12990 ;;
12991 *)
12992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12993 printf "%s\n" "no" >&6; }
12994 ;;
12995 esac
12996 fi
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009 # Report what library types will actually be built
13010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13011 printf %s "checking if libtool supports shared libraries... " >&6; }
13012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13013 printf "%s\n" "$can_build_shared" >&6; }
13014
13015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13016 printf %s "checking whether to build shared libraries... " >&6; }
13017 test no = "$can_build_shared" && enable_shared=no
13018
13019 # On AIX, shared libraries and static libraries use the same namespace, and
13020 # are all built from PIC.
13021 case $host_os in
13022 aix3*)
13023 test yes = "$enable_shared" && enable_static=no
13024 if test -n "$RANLIB"; then
13025 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13026 postinstall_cmds='$RANLIB $lib'
13027 fi
13028 ;;
13029
13030 aix[4-9]*)
13031 if test ia64 != "$host_cpu"; then
13032 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13033 yes,aix,yes) ;; # shared object as lib.so file only
13034 yes,svr4,*) ;; # shared object as lib.so archive member only
13035 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13036 esac
13037 fi
13038 ;;
13039 esac
13040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13041 printf "%s\n" "$enable_shared" >&6; }
13042
13043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13044 printf %s "checking whether to build static libraries... " >&6; }
13045 # Make sure either enable_shared or enable_static is yes.
13046 test yes = "$enable_shared" || enable_static=yes
13047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13048 printf "%s\n" "$enable_static" >&6; }
13049
13050
13051
13052
13053 fi
13054 ac_ext=c
13055 ac_cpp='$CPP $CPPFLAGS'
13056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13059
13060 CC=$lt_save_CC
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076 ac_config_commands="$ac_config_commands libtool"
13077
13078
13079
13080
13081 # Only expand once:
13082
13083
13084
13085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13086 printf %s "checking whether byte ordering is bigendian... " >&6; }
13087 if test ${ac_cv_c_bigendian+y}
13088 then :
13089 printf %s "(cached) " >&6
13090 else $as_nop
13091 ac_cv_c_bigendian=unknown
13092 # See if we're dealing with a universal compiler.
13093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13094 /* end confdefs.h. */
13095 #ifndef __APPLE_CC__
13096 not a universal capable compiler
13097 #endif
13098 typedef int dummy;
13099
13100 _ACEOF
13101 if ac_fn_c_try_compile "$LINENO"
13102 then :
13103
13104 # Check for potential -arch flags. It is not universal unless
13105 # there are at least two -arch flags with different values.
13106 ac_arch=
13107 ac_prev=
13108 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13109 if test -n "$ac_prev"; then
13110 case $ac_word in
13111 i?86 | x86_64 | ppc | ppc64)
13112 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13113 ac_arch=$ac_word
13114 else
13115 ac_cv_c_bigendian=universal
13116 break
13117 fi
13118 ;;
13119 esac
13120 ac_prev=
13121 elif test "x$ac_word" = "x-arch"; then
13122 ac_prev=arch
13123 fi
13124 done
13125 fi
13126 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13127 if test $ac_cv_c_bigendian = unknown; then
13128 # See if sys/param.h defines the BYTE_ORDER macro.
13129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13130 /* end confdefs.h. */
13131 #include <sys/types.h>
13132 #include <sys/param.h>
13133
13134 int
13135 main (void)
13136 {
13137 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13138 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13139 && LITTLE_ENDIAN)
13140 bogus endian macros
13141 #endif
13142
13143 ;
13144 return 0;
13145 }
13146 _ACEOF
13147 if ac_fn_c_try_compile "$LINENO"
13148 then :
13149 # It does; now see whether it defined to BIG_ENDIAN or not.
13150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13151 /* end confdefs.h. */
13152 #include <sys/types.h>
13153 #include <sys/param.h>
13154
13155 int
13156 main (void)
13157 {
13158 #if BYTE_ORDER != BIG_ENDIAN
13159 not big endian
13160 #endif
13161
13162 ;
13163 return 0;
13164 }
13165 _ACEOF
13166 if ac_fn_c_try_compile "$LINENO"
13167 then :
13168 ac_cv_c_bigendian=yes
13169 else $as_nop
13170 ac_cv_c_bigendian=no
13171 fi
13172 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13173 fi
13174 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13175 fi
13176 if test $ac_cv_c_bigendian = unknown; then
13177 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13179 /* end confdefs.h. */
13180 #include <limits.h>
13181
13182 int
13183 main (void)
13184 {
13185 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13186 bogus endian macros
13187 #endif
13188
13189 ;
13190 return 0;
13191 }
13192 _ACEOF
13193 if ac_fn_c_try_compile "$LINENO"
13194 then :
13195 # It does; now see whether it defined to _BIG_ENDIAN or not.
13196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13197 /* end confdefs.h. */
13198 #include <limits.h>
13199
13200 int
13201 main (void)
13202 {
13203 #ifndef _BIG_ENDIAN
13204 not big endian
13205 #endif
13206
13207 ;
13208 return 0;
13209 }
13210 _ACEOF
13211 if ac_fn_c_try_compile "$LINENO"
13212 then :
13213 ac_cv_c_bigendian=yes
13214 else $as_nop
13215 ac_cv_c_bigendian=no
13216 fi
13217 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13218 fi
13219 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13220 fi
13221 if test $ac_cv_c_bigendian = unknown; then
13222 # Compile a test program.
13223 if test "$cross_compiling" = yes
13224 then :
13225 # Try to guess by grepping values from an object file.
13226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13227 /* end confdefs.h. */
13228 unsigned short int ascii_mm[] =
13229 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13230 unsigned short int ascii_ii[] =
13231 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13232 int use_ascii (int i) {
13233 return ascii_mm[i] + ascii_ii[i];
13234 }
13235 unsigned short int ebcdic_ii[] =
13236 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13237 unsigned short int ebcdic_mm[] =
13238 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13239 int use_ebcdic (int i) {
13240 return ebcdic_mm[i] + ebcdic_ii[i];
13241 }
13242 extern int foo;
13243
13244 int
13245 main (void)
13246 {
13247 return use_ascii (foo) == use_ebcdic (foo);
13248 ;
13249 return 0;
13250 }
13251 _ACEOF
13252 if ac_fn_c_try_compile "$LINENO"
13253 then :
13254 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13255 ac_cv_c_bigendian=yes
13256 fi
13257 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13258 if test "$ac_cv_c_bigendian" = unknown; then
13259 ac_cv_c_bigendian=no
13260 else
13261 # finding both strings is unlikely to happen, but who knows?
13262 ac_cv_c_bigendian=unknown
13263 fi
13264 fi
13265 fi
13266 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13267 else $as_nop
13268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13269 /* end confdefs.h. */
13270 $ac_includes_default
13271 int
13272 main (void)
13273 {
13274
13275 /* Are we little or big endian? From Harbison&Steele. */
13276 union
13277 {
13278 long int l;
13279 char c[sizeof (long int)];
13280 } u;
13281 u.l = 1;
13282 return u.c[sizeof (long int) - 1] == 1;
13283
13284 ;
13285 return 0;
13286 }
13287 _ACEOF
13288 if ac_fn_c_try_run "$LINENO"
13289 then :
13290 ac_cv_c_bigendian=no
13291 else $as_nop
13292 ac_cv_c_bigendian=yes
13293 fi
13294 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13295 conftest.$ac_objext conftest.beam conftest.$ac_ext
13296 fi
13297
13298 fi
13299 fi
13300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13301 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
13302 case $ac_cv_c_bigendian in #(
13303 yes)
13304 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
13305 ;; #(
13306 no)
13307 ;; #(
13308 universal)
13309
13310 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13311
13312 ;; #(
13313 *)
13314 as_fn_error $? "unknown endianness
13315 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13316 esac
13317
13318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13319 printf %s "checking for an ANSI C-conforming const... " >&6; }
13320 if test ${ac_cv_c_const+y}
13321 then :
13322 printf %s "(cached) " >&6
13323 else $as_nop
13324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13325 /* end confdefs.h. */
13326
13327 int
13328 main (void)
13329 {
13330
13331 #ifndef __cplusplus
13332 /* Ultrix mips cc rejects this sort of thing. */
13333 typedef int charset[2];
13334 const charset cs = { 0, 0 };
13335 /* SunOS 4.1.1 cc rejects this. */
13336 char const *const *pcpcc;
13337 char **ppc;
13338 /* NEC SVR4.0.2 mips cc rejects this. */
13339 struct point {int x, y;};
13340 static struct point const zero = {0,0};
13341 /* IBM XL C 1.02.0.0 rejects this.
13342 It does not let you subtract one const X* pointer from another in
13343 an arm of an if-expression whose if-part is not a constant
13344 expression */
13345 const char *g = "string";
13346 pcpcc = &g + (g ? g-g : 0);
13347 /* HPUX 7.0 cc rejects these. */
13348 ++pcpcc;
13349 ppc = (char**) pcpcc;
13350 pcpcc = (char const *const *) ppc;
13351 { /* SCO 3.2v4 cc rejects this sort of thing. */
13352 char tx;
13353 char *t = &tx;
13354 char const *s = 0 ? (char *) 0 : (char const *) 0;
13355
13356 *t++ = 0;
13357 if (s) return 0;
13358 }
13359 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13360 int x[] = {25, 17};
13361 const int *foo = &x[0];
13362 ++foo;
13363 }
13364 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13365 typedef const int *iptr;
13366 iptr p = 0;
13367 ++p;
13368 }
13369 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
13370 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13371 struct s { int j; const int *ap[3]; } bx;
13372 struct s *b = &bx; b->j = 5;
13373 }
13374 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13375 const int foo = 10;
13376 if (!foo) return 0;
13377 }
13378 return !cs[0] && !zero.x;
13379 #endif
13380
13381 ;
13382 return 0;
13383 }
13384 _ACEOF
13385 if ac_fn_c_try_compile "$LINENO"
13386 then :
13387 ac_cv_c_const=yes
13388 else $as_nop
13389 ac_cv_c_const=no
13390 fi
13391 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13392 fi
13393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13394 printf "%s\n" "$ac_cv_c_const" >&6; }
13395 if test $ac_cv_c_const = no; then
13396
13397 printf "%s\n" "#define const /**/" >>confdefs.h
13398
13399 fi
13400
13401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13402 printf %s "checking for inline... " >&6; }
13403 if test ${ac_cv_c_inline+y}
13404 then :
13405 printf %s "(cached) " >&6
13406 else $as_nop
13407 ac_cv_c_inline=no
13408 for ac_kw in inline __inline__ __inline; do
13409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13410 /* end confdefs.h. */
13411 #ifndef __cplusplus
13412 typedef int foo_t;
13413 static $ac_kw foo_t static_foo (void) {return 0; }
13414 $ac_kw foo_t foo (void) {return 0; }
13415 #endif
13416
13417 _ACEOF
13418 if ac_fn_c_try_compile "$LINENO"
13419 then :
13420 ac_cv_c_inline=$ac_kw
13421 fi
13422 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13423 test "$ac_cv_c_inline" != no && break
13424 done
13425
13426 fi
13427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13428 printf "%s\n" "$ac_cv_c_inline" >&6; }
13429
13430 case $ac_cv_c_inline in
13431 inline | yes) ;;
13432 *)
13433 case $ac_cv_c_inline in
13434 no) ac_val=;;
13435 *) ac_val=$ac_cv_c_inline;;
13436 esac
13437 cat >>confdefs.h <<_ACEOF
13438 #ifndef __cplusplus
13439 #define inline $ac_val
13440 #endif
13441 _ACEOF
13442 ;;
13443 esac
13444
13445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
13446 printf %s "checking for C/C++ restrict keyword... " >&6; }
13447 if test ${ac_cv_c_restrict+y}
13448 then :
13449 printf %s "(cached) " >&6
13450 else $as_nop
13451 ac_cv_c_restrict=no
13452 # Put '__restrict__' first, to avoid problems with glibc and non-GCC; see:
13453 # https://lists.gnu.org/archive/html/bug-autoconf/2016-02/msg00006.html
13454 # Put 'restrict' last, because C++ lacks it.
13455 for ac_kw in __restrict__ __restrict _Restrict restrict; do
13456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13457 /* end confdefs.h. */
13458 typedef int *int_ptr;
13459 int foo (int_ptr $ac_kw ip) { return ip[0]; }
13460 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
13461 int bar (int ip[$ac_kw]) { return ip[0]; }
13462
13463 int
13464 main (void)
13465 {
13466 int s[1];
13467 int *$ac_kw t = s;
13468 t[0] = 0;
13469 return foo (t) + bar (t);
13470
13471 ;
13472 return 0;
13473 }
13474 _ACEOF
13475 if ac_fn_c_try_compile "$LINENO"
13476 then :
13477 ac_cv_c_restrict=$ac_kw
13478 fi
13479 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13480 test "$ac_cv_c_restrict" != no && break
13481 done
13482
13483 fi
13484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
13485 printf "%s\n" "$ac_cv_c_restrict" >&6; }
13486
13487 case $ac_cv_c_restrict in
13488 restrict) ;;
13489 no) printf "%s\n" "#define restrict /**/" >>confdefs.h
13490 ;;
13491 *) printf "%s\n" "#define restrict $ac_cv_c_restrict" >>confdefs.h
13492 ;;
13493 esac
13494
13495
13496
13497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C99 variable-size arrays" >&5
13498 printf %s "checking for C99 variable-size arrays... " >&6; }
13499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13500 /* end confdefs.h. */
13501
13502 int
13503 main (void)
13504 {
13505
13506 int foo;
13507 foo = 10;
13508 int array[foo];
13509
13510 ;
13511 return 0;
13512 }
13513 _ACEOF
13514 if ac_fn_c_try_compile "$LINENO"
13515 then :
13516 has_var_arrays=yes;
13517 printf "%s\n" "#define VAR_ARRAYS /**/" >>confdefs.h
13518
13519
13520 else $as_nop
13521 has_var_arrays=no
13522
13523 fi
13524 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_var_arrays" >&5
13526 printf "%s\n" "$has_var_arrays" >&6; }
13527
13528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSE in current arch/CFLAGS" >&5
13529 printf %s "checking for SSE in current arch/CFLAGS... " >&6; }
13530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13531 /* end confdefs.h. */
13532
13533
13534 #include <xmmintrin.h>
13535 __m128 testfunc(float *a, float *b) {
13536 return _mm_add_ps(_mm_loadu_ps(a), _mm_loadu_ps(b));
13537 }
13538
13539 int
13540 main (void)
13541 {
13542
13543 ;
13544 return 0;
13545 }
13546 _ACEOF
13547 if ac_fn_c_try_link "$LINENO"
13548 then :
13549
13550 has_sse=yes
13551
13552 else $as_nop
13553
13554 has_sse=no
13555
13556
13557 fi
13558 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13559 conftest$ac_exeext conftest.$ac_ext
13560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_sse" >&5
13561 printf "%s\n" "$has_sse" >&6; }
13562
13563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSE2 in current arch/CFLAGS" >&5
13564 printf %s "checking for SSE2 in current arch/CFLAGS... " >&6; }
13565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13566 /* end confdefs.h. */
13567
13568
13569 #include <emmintrin.h>
13570 __m128d testfunc(double *a, double *b) {
13571 return _mm_add_pd(_mm_loadu_pd(a), _mm_loadu_pd(b));
13572 }
13573
13574 int
13575 main (void)
13576 {
13577
13578 ;
13579 return 0;
13580 }
13581 _ACEOF
13582 if ac_fn_c_try_link "$LINENO"
13583 then :
13584
13585 has_sse2=yes
13586
13587 else $as_nop
13588
13589 has_sse2=no
13590
13591
13592 fi
13593 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13594 conftest$ac_exeext conftest.$ac_ext
13595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_sse2" >&5
13596 printf "%s\n" "$has_sse2" >&6; }
13597
13598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NEON in current arch/CFLAGS" >&5
13599 printf %s "checking for NEON in current arch/CFLAGS... " >&6; }
13600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13601 /* end confdefs.h. */
13602
13603
13604 #include <arm_neon.h>
13605 int32x4_t testfunc(int16_t *a, int16_t *b) {
13606 return vmull_s16(vld1_s16(a), vld1_s16(b));
13607 }
13608
13609 int
13610 main (void)
13611 {
13612
13613 ;
13614 return 0;
13615 }
13616 _ACEOF
13617 if ac_fn_c_try_link "$LINENO"
13618 then :
13619
13620 has_neon=yes
13621
13622 else $as_nop
13623
13624 has_neon=no
13625
13626
13627 fi
13628 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13629 conftest$ac_exeext conftest.$ac_ext
13630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_neon" >&5
13631 printf "%s\n" "$has_neon" >&6; }
13632
13633 SAVE_CFLAGS="$CFLAGS"
13634 CFLAGS="$CFLAGS -fvisibility=hidden"
13635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF visibility" >&5
13636 printf %s "checking for ELF visibility... " >&6; }
13637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13638 /* end confdefs.h. */
13639
13640
13641 #pragma GCC visibility push(hidden)
13642 __attribute__((visibility("default")))
13643 int var=10;
13644
13645 int
13646 main (void)
13647 {
13648
13649 ;
13650 return 0;
13651 }
13652 _ACEOF
13653 if ac_fn_c_try_compile "$LINENO"
13654 then :
13655
13656 has_visibility=yes
13657
13658 printf "%s\n" "#define EXPORT __attribute__((visibility(\"default\")))" >>confdefs.h
13659
13660
13661 else $as_nop
13662
13663 has_visibility=no
13664
13665 printf "%s\n" "#define EXPORT /**/" >>confdefs.h
13666
13667 CFLAGS="$SAVE_CFLAGS"
13668
13669
13670 fi
13671 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_visibility" >&5
13673 printf "%s\n" "$has_visibility" >&6; }
13674
13675 ac_fn_c_check_header_compile "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
13676 if test "x$ac_cv_header_sys_soundcard_h" = xyes
13677 then :
13678 printf "%s\n" "#define HAVE_SYS_SOUNDCARD_H 1" >>confdefs.h
13679
13680 fi
13681 ac_fn_c_check_header_compile "$LINENO" "sys/audioio.h" "ac_cv_header_sys_audioio_h" "$ac_includes_default"
13682 if test "x$ac_cv_header_sys_audioio_h" = xyes
13683 then :
13684 printf "%s\n" "#define HAVE_SYS_AUDIOIO_H 1" >>confdefs.h
13685
13686 fi
13687
13688
13689
13690
13691 LIBM=
13692 case $host in
13693 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
13694 # These system don't have libm, or don't need it
13695 ;;
13696 *-ncr-sysv4.3*)
13697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
13698 printf %s "checking for _mwvalidcheckl in -lmw... " >&6; }
13699 if test ${ac_cv_lib_mw__mwvalidcheckl+y}
13700 then :
13701 printf %s "(cached) " >&6
13702 else $as_nop
13703 ac_check_lib_save_LIBS=$LIBS
13704 LIBS="-lmw $LIBS"
13705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13706 /* end confdefs.h. */
13707
13708 /* Override any GCC internal prototype to avoid an error.
13709 Use char because int might match the return type of a GCC
13710 builtin and then its argument prototype would still apply. */
13711 char _mwvalidcheckl ();
13712 int
13713 main (void)
13714 {
13715 return _mwvalidcheckl ();
13716 ;
13717 return 0;
13718 }
13719 _ACEOF
13720 if ac_fn_c_try_link "$LINENO"
13721 then :
13722 ac_cv_lib_mw__mwvalidcheckl=yes
13723 else $as_nop
13724 ac_cv_lib_mw__mwvalidcheckl=no
13725 fi
13726 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13727 conftest$ac_exeext conftest.$ac_ext
13728 LIBS=$ac_check_lib_save_LIBS
13729 fi
13730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
13731 printf "%s\n" "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
13732 if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes
13733 then :
13734 LIBM=-lmw
13735 fi
13736
13737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13738 printf %s "checking for cos in -lm... " >&6; }
13739 if test ${ac_cv_lib_m_cos+y}
13740 then :
13741 printf %s "(cached) " >&6
13742 else $as_nop
13743 ac_check_lib_save_LIBS=$LIBS
13744 LIBS="-lm $LIBS"
13745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13746 /* end confdefs.h. */
13747
13748 /* Override any GCC internal prototype to avoid an error.
13749 Use char because int might match the return type of a GCC
13750 builtin and then its argument prototype would still apply. */
13751 char cos ();
13752 int
13753 main (void)
13754 {
13755 return cos ();
13756 ;
13757 return 0;
13758 }
13759 _ACEOF
13760 if ac_fn_c_try_link "$LINENO"
13761 then :
13762 ac_cv_lib_m_cos=yes
13763 else $as_nop
13764 ac_cv_lib_m_cos=no
13765 fi
13766 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13767 conftest$ac_exeext conftest.$ac_ext
13768 LIBS=$ac_check_lib_save_LIBS
13769 fi
13770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13771 printf "%s\n" "$ac_cv_lib_m_cos" >&6; }
13772 if test "x$ac_cv_lib_m_cos" = xyes
13773 then :
13774 LIBM="$LIBM -lm"
13775 fi
13776
13777 ;;
13778 *)
13779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13780 printf %s "checking for cos in -lm... " >&6; }
13781 if test ${ac_cv_lib_m_cos+y}
13782 then :
13783 printf %s "(cached) " >&6
13784 else $as_nop
13785 ac_check_lib_save_LIBS=$LIBS
13786 LIBS="-lm $LIBS"
13787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13788 /* end confdefs.h. */
13789
13790 /* Override any GCC internal prototype to avoid an error.
13791 Use char because int might match the return type of a GCC
13792 builtin and then its argument prototype would still apply. */
13793 char cos ();
13794 int
13795 main (void)
13796 {
13797 return cos ();
13798 ;
13799 return 0;
13800 }
13801 _ACEOF
13802 if ac_fn_c_try_link "$LINENO"
13803 then :
13804 ac_cv_lib_m_cos=yes
13805 else $as_nop
13806 ac_cv_lib_m_cos=no
13807 fi
13808 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13809 conftest$ac_exeext conftest.$ac_ext
13810 LIBS=$ac_check_lib_save_LIBS
13811 fi
13812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13813 printf "%s\n" "$ac_cv_lib_m_cos" >&6; }
13814 if test "x$ac_cv_lib_m_cos" = xyes
13815 then :
13816 LIBM=-lm
13817 fi
13818
13819 ;;
13820 esac
13821
13822
13823
13824
13825 # Check whether --enable-sse was given.
13826 if test ${enable_sse+y}
13827 then :
13828 enableval=$enable_sse;
13829 if test "x$enableval" != xno; then
13830 has_sse=yes
13831 has_sse2=yes
13832 CFLAGS="$CFLAGS -O3 -msse -msse2"
13833 else
13834 has_sse=no
13835 has_sse2=no
13836 fi
13837
13838 fi
13839
13840
13841 # Check whether --enable-neon was given.
13842 if test ${enable_neon+y}
13843 then :
13844 enableval=$enable_neon;
13845 if test "x$enableval" != xno; then
13846 has_neon=yes
13847 case "$host" in #(
13848 arm*) :
13849 CFLAGS="$CFLAGS -O3 -march=armv7-a -mfpu=neon"
13850 ;; #(
13851 *) :
13852 ;;
13853 esac
13854 else
13855 has_neon=no
13856 fi
13857
13858 fi
13859
13860
13861
13862 FFT=smallft
13863
13864 # Check whether --enable-fixed-point was given.
13865 if test ${enable_fixed_point+y}
13866 then :
13867 enableval=$enable_fixed_point; if test "$enableval" = yes; then
13868 FFT=kiss
13869 has_sse=no
13870
13871 printf "%s\n" "#define FIXED_POINT /**/" >>confdefs.h
13872
13873 else
13874
13875 printf "%s\n" "#define FLOATING_POINT /**/" >>confdefs.h
13876
13877 fi
13878 else $as_nop
13879
13880 printf "%s\n" "#define FLOATING_POINT /**/" >>confdefs.h
13881
13882 fi
13883
13884
13885 if test "$has_sse" = yes; then
13886
13887 printf "%s\n" "#define USE_SSE /**/" >>confdefs.h
13888
13889 fi
13890
13891 if test "$has_neon" = yes; then
13892
13893 printf "%s\n" "#define USE_NEON /**/" >>confdefs.h
13894
13895 fi
13896
13897 if test "$has_sse2" = yes; then
13898
13899 printf "%s\n" "#define USE_SSE2 /**/" >>confdefs.h
13900
13901 fi
13902
13903 # Check whether --enable-float-api was given.
13904 if test ${enable_float_api+y}
13905 then :
13906 enableval=$enable_float_api; if test "$enableval" = no; then
13907
13908 printf "%s\n" "#define DISABLE_FLOAT_API /**/" >>confdefs.h
13909
13910 fi
13911 fi
13912
13913
13914 # Check whether --enable-examples was given.
13915 if test ${enable_examples+y}
13916 then :
13917 enableval=$enable_examples;
13918 fi
13919
13920 if test "$enableval" != no; then
13921 if true; then
13922 BUILD_EXAMPLES_TRUE=
13923 BUILD_EXAMPLES_FALSE='#'
13924 else
13925 BUILD_EXAMPLES_TRUE='#'
13926 BUILD_EXAMPLES_FALSE=
13927 fi
13928
13929 else
13930 if false; then
13931 BUILD_EXAMPLES_TRUE=
13932 BUILD_EXAMPLES_FALSE='#'
13933 else
13934 BUILD_EXAMPLES_TRUE='#'
13935 BUILD_EXAMPLES_FALSE=
13936 fi
13937
13938 fi
13939
13940 # Check whether --enable-arm4-asm was given.
13941 if test ${enable_arm4_asm+y}
13942 then :
13943 enableval=$enable_arm4_asm; if test "$enableval" = yes; then
13944
13945 printf "%s\n" "#define ARM4_ASM /**/" >>confdefs.h
13946
13947 fi
13948 fi
13949
13950
13951 # Check whether --enable-arm5e-asm was given.
13952 if test ${enable_arm5e_asm+y}
13953 then :
13954 enableval=$enable_arm5e_asm; if test "$enableval" = yes; then
13955
13956 printf "%s\n" "#define ARM5E_ASM /**/" >>confdefs.h
13957
13958 fi
13959 fi
13960
13961
13962 # Check whether --enable-blackfin-asm was given.
13963 if test ${enable_blackfin_asm+y}
13964 then :
13965 enableval=$enable_blackfin_asm; if test "$enableval" = yes; then
13966
13967 printf "%s\n" "#define BFIN_ASM /**/" >>confdefs.h
13968
13969 fi
13970 fi
13971
13972 case $host_os in
13973 uclinux) LDFLAGS="-Wl,-elf2flt=-s100000 $LDFLAGS";;
13974 esac
13975
13976 # Check whether --enable-fixed-point-debug was given.
13977 if test ${enable_fixed_point_debug+y}
13978 then :
13979 enableval=$enable_fixed_point_debug; if test "$enableval" = yes; then
13980
13981 printf "%s\n" "#define FIXED_DEBUG /**/" >>confdefs.h
13982
13983 fi
13984 fi
13985
13986
13987 # Check whether --enable-resample-full-sinc-table was given.
13988 if test ${enable_resample_full_sinc_table+y}
13989 then :
13990 enableval=$enable_resample_full_sinc_table; if test "$enableval" = yes; then
13991
13992 printf "%s\n" "#define RESAMPLE_FULL_SINC_TABLE /**/" >>confdefs.h
13993
13994 fi
13995 fi
13996
13997
13998 # Check whether --enable-ti-c55x was given.
13999 if test ${enable_ti_c55x+y}
14000 then :
14001 enableval=$enable_ti_c55x; if test "$enableval" = yes; then
14002 has_char16=yes;
14003
14004 printf "%s\n" "#define TI_C55X /**/" >>confdefs.h
14005
14006 fi
14007 fi
14008
14009
14010
14011 # Check whether --with-fft was given.
14012 if test ${with_fft+y}
14013 then :
14014 withval=$with_fft; FFT=$withval
14015
14016 fi
14017
14018
14019 FFT_PKGCONFIG=
14020
14021
14022
14023
14024
14025
14026
14027 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14028 if test -n "$ac_tool_prefix"; then
14029 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14030 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14032 printf %s "checking for $ac_word... " >&6; }
14033 if test ${ac_cv_path_PKG_CONFIG+y}
14034 then :
14035 printf %s "(cached) " >&6
14036 else $as_nop
14037 case $PKG_CONFIG in
14038 [\\/]* | ?:[\\/]*)
14039 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14040 ;;
14041 *)
14042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14043 for as_dir in $PATH
14044 do
14045 IFS=$as_save_IFS
14046 case $as_dir in #(((
14047 '') as_dir=./ ;;
14048 */) ;;
14049 *) as_dir=$as_dir/ ;;
14050 esac
14051 for ac_exec_ext in '' $ac_executable_extensions; do
14052 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14053 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
14054 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14055 break 2
14056 fi
14057 done
14058 done
14059 IFS=$as_save_IFS
14060
14061 ;;
14062 esac
14063 fi
14064 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14065 if test -n "$PKG_CONFIG"; then
14066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14067 printf "%s\n" "$PKG_CONFIG" >&6; }
14068 else
14069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14070 printf "%s\n" "no" >&6; }
14071 fi
14072
14073
14074 fi
14075 if test -z "$ac_cv_path_PKG_CONFIG"; then
14076 ac_pt_PKG_CONFIG=$PKG_CONFIG
14077 # Extract the first word of "pkg-config", so it can be a program name with args.
14078 set dummy pkg-config; ac_word=$2
14079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14080 printf %s "checking for $ac_word... " >&6; }
14081 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
14082 then :
14083 printf %s "(cached) " >&6
14084 else $as_nop
14085 case $ac_pt_PKG_CONFIG in
14086 [\\/]* | ?:[\\/]*)
14087 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14088 ;;
14089 *)
14090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14091 for as_dir in $PATH
14092 do
14093 IFS=$as_save_IFS
14094 case $as_dir in #(((
14095 '') as_dir=./ ;;
14096 */) ;;
14097 *) as_dir=$as_dir/ ;;
14098 esac
14099 for ac_exec_ext in '' $ac_executable_extensions; do
14100 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14101 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
14102 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14103 break 2
14104 fi
14105 done
14106 done
14107 IFS=$as_save_IFS
14108
14109 ;;
14110 esac
14111 fi
14112 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14113 if test -n "$ac_pt_PKG_CONFIG"; then
14114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14115 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
14116 else
14117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14118 printf "%s\n" "no" >&6; }
14119 fi
14120
14121 if test "x$ac_pt_PKG_CONFIG" = x; then
14122 PKG_CONFIG=""
14123 else
14124 case $cross_compiling:$ac_tool_warned in
14125 yes:)
14126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14127 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14128 ac_tool_warned=yes ;;
14129 esac
14130 PKG_CONFIG=$ac_pt_PKG_CONFIG
14131 fi
14132 else
14133 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14134 fi
14135
14136 fi
14137 if test -n "$PKG_CONFIG"; then
14138 _pkg_min_version=0.9.0
14139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14140 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14141 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14143 printf "%s\n" "yes" >&6; }
14144 else
14145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14146 printf "%s\n" "no" >&6; }
14147 PKG_CONFIG=""
14148 fi
14149 fi
14150 case $FFT in #(
14151 kiss) :
14152
14153
14154 printf "%s\n" "#define USE_KISS_FFT /**/" >>confdefs.h
14155
14156 ;; #(
14157 smallft) :
14158
14159
14160 printf "%s\n" "#define USE_SMALLFT /**/" >>confdefs.h
14161
14162 ;; #(
14163 gpl-fftw3) :
14164
14165
14166 printf "%s\n" "#define USE_GPL_FFTW3 /**/" >>confdefs.h
14167
14168
14169 pkg_failed=no
14170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fftw3f" >&5
14171 printf %s "checking for fftw3f... " >&6; }
14172
14173 if test -n "$FFT_CFLAGS"; then
14174 pkg_cv_FFT_CFLAGS="$FFT_CFLAGS"
14175 elif test -n "$PKG_CONFIG"; then
14176 if test -n "$PKG_CONFIG" && \
14177 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3f\""; } >&5
14178 ($PKG_CONFIG --exists --print-errors "fftw3f") 2>&5
14179 ac_status=$?
14180 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14181 test $ac_status = 0; }; then
14182 pkg_cv_FFT_CFLAGS=`$PKG_CONFIG --cflags "fftw3f" 2>/dev/null`
14183 test "x$?" != "x0" && pkg_failed=yes
14184 else
14185 pkg_failed=yes
14186 fi
14187 else
14188 pkg_failed=untried
14189 fi
14190 if test -n "$FFT_LIBS"; then
14191 pkg_cv_FFT_LIBS="$FFT_LIBS"
14192 elif test -n "$PKG_CONFIG"; then
14193 if test -n "$PKG_CONFIG" && \
14194 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3f\""; } >&5
14195 ($PKG_CONFIG --exists --print-errors "fftw3f") 2>&5
14196 ac_status=$?
14197 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14198 test $ac_status = 0; }; then
14199 pkg_cv_FFT_LIBS=`$PKG_CONFIG --libs "fftw3f" 2>/dev/null`
14200 test "x$?" != "x0" && pkg_failed=yes
14201 else
14202 pkg_failed=yes
14203 fi
14204 else
14205 pkg_failed=untried
14206 fi
14207
14208
14209
14210 if test $pkg_failed = yes; then
14211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14212 printf "%s\n" "no" >&6; }
14213
14214 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14215 _pkg_short_errors_supported=yes
14216 else
14217 _pkg_short_errors_supported=no
14218 fi
14219 if test $_pkg_short_errors_supported = yes; then
14220 FFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fftw3f" 2>&1`
14221 else
14222 FFT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fftw3f" 2>&1`
14223 fi
14224 # Put the nasty error message in config.log where it belongs
14225 echo "$FFT_PKG_ERRORS" >&5
14226
14227 as_fn_error $? "Package requirements (fftw3f) were not met:
14228
14229 $FFT_PKG_ERRORS
14230
14231 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14232 installed software in a non-standard prefix.
14233
14234 Alternatively, you may set the environment variables FFT_CFLAGS
14235 and FFT_LIBS to avoid the need to call pkg-config.
14236 See the pkg-config man page for more details." "$LINENO" 5
14237 elif test $pkg_failed = untried; then
14238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14239 printf "%s\n" "no" >&6; }
14240 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14241 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14242 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14243 is in your PATH or set the PKG_CONFIG environment variable to the full
14244 path to pkg-config.
14245
14246 Alternatively, you may set the environment variables FFT_CFLAGS
14247 and FFT_LIBS to avoid the need to call pkg-config.
14248 See the pkg-config man page for more details.
14249
14250 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14251 See \`config.log' for more details" "$LINENO" 5; }
14252 else
14253 FFT_CFLAGS=$pkg_cv_FFT_CFLAGS
14254 FFT_LIBS=$pkg_cv_FFT_LIBS
14255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14256 printf "%s\n" "yes" >&6; }
14257
14258 fi
14259 ;; #(
14260 proprietary-intel-mkl) :
14261
14262
14263 printf "%s\n" "#define USE_INTEL_MKL /**/" >>confdefs.h
14264
14265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for valid MKL" >&5
14266 printf %s "checking for valid MKL... " >&6; }
14267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14268 /* end confdefs.h. */
14269
14270
14271 #include <mkl.h>
14272 void func() {
14273 DFTI_DESCRIPTOR_HANDLE h;
14274 MKL_LONG result=DftiCreateDescriptor(&h, DFTI_SINGLE, DFTI_REAL, 0);
14275 }
14276 int
14277 main (void)
14278 {
14279
14280 ;
14281 return 0;
14282 }
14283 _ACEOF
14284 if ac_fn_c_try_link "$LINENO"
14285 then :
14286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14287 printf "%s\n" "yes" >&6; }
14288 else $as_nop
14289 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14290 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14291 as_fn_error $? "Failed to compile MKL test program. Make sure you set CFLAGS to include the include directory and set LDFLAGS to include the library directory and all necesarry libraries.
14292 See \`config.log' for more details" "$LINENO" 5; }
14293
14294 fi
14295 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14296 conftest$ac_exeext conftest.$ac_ext
14297 ;; #(
14298 *) :
14299 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14300 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14301 as_fn_error $? "Unknown FFT $FFT specified for --with-fft
14302 See \`config.log' for more details" "$LINENO" 5; }
14303 ;;
14304 esac
14305 if test "$FFT" = "kiss"; then
14306 BUILD_KISS_FFT_TRUE=
14307 BUILD_KISS_FFT_FALSE='#'
14308 else
14309 BUILD_KISS_FFT_TRUE='#'
14310 BUILD_KISS_FFT_FALSE=
14311 fi
14312
14313 if test "$FFT" = "smallft"; then
14314 BUILD_SMALLFT_TRUE=
14315 BUILD_SMALLFT_FALSE='#'
14316 else
14317 BUILD_SMALLFT_TRUE='#'
14318 BUILD_SMALLFT_FALSE=
14319 fi
14320
14321
14322
14323
14324 # The cast to long int works around a bug in the HP C Compiler
14325 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14326 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14327 # This bug is HP SR number 8606223364.
14328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int16_t" >&5
14329 printf %s "checking size of int16_t... " >&6; }
14330 if test ${ac_cv_sizeof_int16_t+y}
14331 then :
14332 printf %s "(cached) " >&6
14333 else $as_nop
14334 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int16_t))" "ac_cv_sizeof_int16_t" "$ac_includes_default"
14335 then :
14336
14337 else $as_nop
14338 if test "$ac_cv_type_int16_t" = yes; then
14339 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14340 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14341 as_fn_error 77 "cannot compute sizeof (int16_t)
14342 See \`config.log' for more details" "$LINENO" 5; }
14343 else
14344 ac_cv_sizeof_int16_t=0
14345 fi
14346 fi
14347
14348 fi
14349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int16_t" >&5
14350 printf "%s\n" "$ac_cv_sizeof_int16_t" >&6; }
14351
14352
14353
14354 printf "%s\n" "#define SIZEOF_INT16_T $ac_cv_sizeof_int16_t" >>confdefs.h
14355
14356
14357 # The cast to long int works around a bug in the HP C Compiler
14358 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14359 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14360 # This bug is HP SR number 8606223364.
14361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of uint16_t" >&5
14362 printf %s "checking size of uint16_t... " >&6; }
14363 if test ${ac_cv_sizeof_uint16_t+y}
14364 then :
14365 printf %s "(cached) " >&6
14366 else $as_nop
14367 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint16_t))" "ac_cv_sizeof_uint16_t" "$ac_includes_default"
14368 then :
14369
14370 else $as_nop
14371 if test "$ac_cv_type_uint16_t" = yes; then
14372 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14373 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14374 as_fn_error 77 "cannot compute sizeof (uint16_t)
14375 See \`config.log' for more details" "$LINENO" 5; }
14376 else
14377 ac_cv_sizeof_uint16_t=0
14378 fi
14379 fi
14380
14381 fi
14382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint16_t" >&5
14383 printf "%s\n" "$ac_cv_sizeof_uint16_t" >&6; }
14384
14385
14386
14387 printf "%s\n" "#define SIZEOF_UINT16_T $ac_cv_sizeof_uint16_t" >>confdefs.h
14388
14389
14390 # The cast to long int works around a bug in the HP C Compiler
14391 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14392 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14393 # This bug is HP SR number 8606223364.
14394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of u_int16_t" >&5
14395 printf %s "checking size of u_int16_t... " >&6; }
14396 if test ${ac_cv_sizeof_u_int16_t+y}
14397 then :
14398 printf %s "(cached) " >&6
14399 else $as_nop
14400 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (u_int16_t))" "ac_cv_sizeof_u_int16_t" "$ac_includes_default"
14401 then :
14402
14403 else $as_nop
14404 if test "$ac_cv_type_u_int16_t" = yes; then
14405 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14406 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14407 as_fn_error 77 "cannot compute sizeof (u_int16_t)
14408 See \`config.log' for more details" "$LINENO" 5; }
14409 else
14410 ac_cv_sizeof_u_int16_t=0
14411 fi
14412 fi
14413
14414 fi
14415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_u_int16_t" >&5
14416 printf "%s\n" "$ac_cv_sizeof_u_int16_t" >&6; }
14417
14418
14419
14420 printf "%s\n" "#define SIZEOF_U_INT16_T $ac_cv_sizeof_u_int16_t" >>confdefs.h
14421
14422
14423 # The cast to long int works around a bug in the HP C Compiler
14424 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14425 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14426 # This bug is HP SR number 8606223364.
14427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int32_t" >&5
14428 printf %s "checking size of int32_t... " >&6; }
14429 if test ${ac_cv_sizeof_int32_t+y}
14430 then :
14431 printf %s "(cached) " >&6
14432 else $as_nop
14433 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int32_t))" "ac_cv_sizeof_int32_t" "$ac_includes_default"
14434 then :
14435
14436 else $as_nop
14437 if test "$ac_cv_type_int32_t" = yes; then
14438 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14439 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14440 as_fn_error 77 "cannot compute sizeof (int32_t)
14441 See \`config.log' for more details" "$LINENO" 5; }
14442 else
14443 ac_cv_sizeof_int32_t=0
14444 fi
14445 fi
14446
14447 fi
14448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int32_t" >&5
14449 printf "%s\n" "$ac_cv_sizeof_int32_t" >&6; }
14450
14451
14452
14453 printf "%s\n" "#define SIZEOF_INT32_T $ac_cv_sizeof_int32_t" >>confdefs.h
14454
14455
14456 # The cast to long int works around a bug in the HP C Compiler
14457 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14458 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14459 # This bug is HP SR number 8606223364.
14460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of uint32_t" >&5
14461 printf %s "checking size of uint32_t... " >&6; }
14462 if test ${ac_cv_sizeof_uint32_t+y}
14463 then :
14464 printf %s "(cached) " >&6
14465 else $as_nop
14466 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint32_t))" "ac_cv_sizeof_uint32_t" "$ac_includes_default"
14467 then :
14468
14469 else $as_nop
14470 if test "$ac_cv_type_uint32_t" = yes; then
14471 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14472 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14473 as_fn_error 77 "cannot compute sizeof (uint32_t)
14474 See \`config.log' for more details" "$LINENO" 5; }
14475 else
14476 ac_cv_sizeof_uint32_t=0
14477 fi
14478 fi
14479
14480 fi
14481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint32_t" >&5
14482 printf "%s\n" "$ac_cv_sizeof_uint32_t" >&6; }
14483
14484
14485
14486 printf "%s\n" "#define SIZEOF_UINT32_T $ac_cv_sizeof_uint32_t" >>confdefs.h
14487
14488
14489 # The cast to long int works around a bug in the HP C Compiler
14490 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14491 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14492 # This bug is HP SR number 8606223364.
14493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of u_int32_t" >&5
14494 printf %s "checking size of u_int32_t... " >&6; }
14495 if test ${ac_cv_sizeof_u_int32_t+y}
14496 then :
14497 printf %s "(cached) " >&6
14498 else $as_nop
14499 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (u_int32_t))" "ac_cv_sizeof_u_int32_t" "$ac_includes_default"
14500 then :
14501
14502 else $as_nop
14503 if test "$ac_cv_type_u_int32_t" = yes; then
14504 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14505 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14506 as_fn_error 77 "cannot compute sizeof (u_int32_t)
14507 See \`config.log' for more details" "$LINENO" 5; }
14508 else
14509 ac_cv_sizeof_u_int32_t=0
14510 fi
14511 fi
14512
14513 fi
14514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_u_int32_t" >&5
14515 printf "%s\n" "$ac_cv_sizeof_u_int32_t" >&6; }
14516
14517
14518
14519 printf "%s\n" "#define SIZEOF_U_INT32_T $ac_cv_sizeof_u_int32_t" >>confdefs.h
14520
14521
14522 # The cast to long int works around a bug in the HP C Compiler
14523 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14524 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14525 # This bug is HP SR number 8606223364.
14526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
14527 printf %s "checking size of short... " >&6; }
14528 if test ${ac_cv_sizeof_short+y}
14529 then :
14530 printf %s "(cached) " >&6
14531 else $as_nop
14532 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"
14533 then :
14534
14535 else $as_nop
14536 if test "$ac_cv_type_short" = yes; then
14537 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14538 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14539 as_fn_error 77 "cannot compute sizeof (short)
14540 See \`config.log' for more details" "$LINENO" 5; }
14541 else
14542 ac_cv_sizeof_short=0
14543 fi
14544 fi
14545
14546 fi
14547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
14548 printf "%s\n" "$ac_cv_sizeof_short" >&6; }
14549
14550
14551
14552 printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
14553
14554
14555 # The cast to long int works around a bug in the HP C Compiler
14556 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14557 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14558 # This bug is HP SR number 8606223364.
14559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14560 printf %s "checking size of int... " >&6; }
14561 if test ${ac_cv_sizeof_int+y}
14562 then :
14563 printf %s "(cached) " >&6
14564 else $as_nop
14565 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"
14566 then :
14567
14568 else $as_nop
14569 if test "$ac_cv_type_int" = yes; then
14570 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14571 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14572 as_fn_error 77 "cannot compute sizeof (int)
14573 See \`config.log' for more details" "$LINENO" 5; }
14574 else
14575 ac_cv_sizeof_int=0
14576 fi
14577 fi
14578
14579 fi
14580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14581 printf "%s\n" "$ac_cv_sizeof_int" >&6; }
14582
14583
14584
14585 printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
14586
14587
14588 # The cast to long int works around a bug in the HP C Compiler
14589 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14590 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14591 # This bug is HP SR number 8606223364.
14592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14593 printf %s "checking size of long... " >&6; }
14594 if test ${ac_cv_sizeof_long+y}
14595 then :
14596 printf %s "(cached) " >&6
14597 else $as_nop
14598 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
14599 then :
14600
14601 else $as_nop
14602 if test "$ac_cv_type_long" = yes; then
14603 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14604 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14605 as_fn_error 77 "cannot compute sizeof (long)
14606 See \`config.log' for more details" "$LINENO" 5; }
14607 else
14608 ac_cv_sizeof_long=0
14609 fi
14610 fi
14611
14612 fi
14613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14614 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
14615
14616
14617
14618 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
14619
14620
14621
14622 if test "$has_char16" = "yes"
14623 then :
14624
14625 SIZEOF16=1
14626 SIZEOF32=2
14627
14628 else $as_nop
14629
14630 SIZEOF16=2
14631 SIZEOF32=4
14632
14633 fi
14634
14635 case $SIZEOF16 in
14636 $ac_cv_sizeof_int16_t) SIZE16="int16_t";;
14637 $ac_cv_sizeof_short) SIZE16="short";;
14638 $ac_cv_sizeof_int) SIZE16="int";;
14639 esac
14640
14641 case $SIZEOF16 in
14642 $ac_cv_sizeof_uint16_t) USIZE16="uint16_t";;
14643 $ac_cv_sizeof_u_int16_t) USIZE16="u_int16_t";;
14644 $ac_cv_sizeof_short) USIZE16="unsigned short";;
14645 $ac_cv_sizeof_int) USIZE16="unsigned int";;
14646 esac
14647
14648 case $SIZEOF32 in
14649 $ac_cv_sizeof_int32_t) SIZE32="int32_t";;
14650 $ac_cv_sizeof_int) SIZE32="int";;
14651 $ac_cv_sizeof_long) SIZE32="long";;
14652 $ac_cv_sizeof_short) SIZE32="short";;
14653 esac
14654
14655 case $SIZEOF32 in
14656 $ac_cv_sizeof_uint32_t) USIZE32="uint32_t";;
14657 $ac_cv_sizeof_u_int32_t) USIZE32="u_int32_t";;
14658 $ac_cv_sizeof_short) USIZE32="unsigned short";;
14659 $ac_cv_sizeof_int) USIZE32="unsigned int";;
14660 $ac_cv_sizeof_long) USIZE32="unsigned long";;
14661 esac
14662
14663 if test -z "$SIZE16"
14664 then :
14665 as_fn_error $? "No 16 bit type found on this platform!" "$LINENO" 5
14666 fi
14667 if test -z "$SIZE32"
14668 then :
14669 as_fn_error $? "No 32 bit type found on this platform!" "$LINENO" 5
14670 fi
14671 if test -z "$USIZE16"
14672 then :
14673 as_fn_error $? "No unsigned 16 bit type found on this platform!" "$LINENO" 5
14674 fi
14675 if test -z "$USIZE32"
14676 then :
14677 as_fn_error $? "No unsigned 32 bit type found on this platform!" "$LINENO" 5
14678 fi
14679
14680
14681
14682
14683
14684
14685 if test "$ac_cv_header_stdint_h" = "yes"
14686 then :
14687 INCLUDE_STDINT="#include <stdint.h>"
14688 elif test "$ac_cv_header_inttypes_h" = "yes"
14689 then :
14690 INCLUDE_STDINT="#include <inttypes.h>"
14691 elif test "$ac_cv_header_sys_types_h" = "yes"
14692 then :
14693 INCLUDE_STDINT="#include <sys/types.h>"
14694 fi
14695
14696
14697
14698 ac_config_files="$ac_config_files Makefile libspeexdsp/Makefile doc/Makefile SpeexDSP.spec include/Makefile include/speex/Makefile speexdsp.pc win32/Makefile win32/libspeexdsp/Makefile symbian/Makefile win32/VS2003/Makefile win32/VS2003/libspeexdsp/Makefile win32/VS2003/tests/Makefile win32/VS2005/Makefile win32/VS2005/libspeexdsp/Makefile win32/VS2005/tests/Makefile win32/VS2008/Makefile win32/VS2008/libspeexdsp/Makefile win32/VS2008/tests/Makefile include/speex/speexdsp_config_types.h ti/Makefile ti/speex_C54_test/Makefile ti/speex_C55_test/Makefile ti/speex_C64_test/Makefile"
14699
14700
14701 ac_config_headers="$ac_config_headers config.h"
14702
14703
14704 cat >confcache <<\_ACEOF
14705 # This file is a shell script that caches the results of configure
14706 # tests run on this system so they can be shared between configure
14707 # scripts and configure runs, see configure's option --config-cache.
14708 # It is not useful on other systems. If it contains results you don't
14709 # want to keep, you may remove or edit it.
14710 #
14711 # config.status only pays attention to the cache file if you give it
14712 # the --recheck option to rerun configure.
14713 #
14714 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14715 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14716 # following values.
14717
14718 _ACEOF
14719
14720 # The following way of writing the cache mishandles newlines in values,
14721 # but we know of no workaround that is simple, portable, and efficient.
14722 # So, we kill variables containing newlines.
14723 # Ultrix sh set writes to stderr and can't be redirected directly,
14724 # and sets the high bit in the cache file unless we assign to the vars.
14725 (
14726 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14727 eval ac_val=\$$ac_var
14728 case $ac_val in #(
14729 *${as_nl}*)
14730 case $ac_var in #(
14731 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14732 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14733 esac
14734 case $ac_var in #(
14735 _ | IFS | as_nl) ;; #(
14736 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14737 *) { eval $ac_var=; unset $ac_var;} ;;
14738 esac ;;
14739 esac
14740 done
14741
14742 (set) 2>&1 |
14743 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14744 *${as_nl}ac_space=\ *)
14745 # `set' does not quote correctly, so add quotes: double-quote
14746 # substitution turns \\\\ into \\, and sed turns \\ into \.
14747 sed -n \
14748 "s/'/'\\\\''/g;
14749 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14750 ;; #(
14751 *)
14752 # `set' quotes correctly as required by POSIX, so do not add quotes.
14753 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14754 ;;
14755 esac |
14756 sort
14757 ) |
14758 sed '
14759 /^ac_cv_env_/b end
14760 t clear
14761 :clear
14762 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
14763 t end
14764 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14765 :end' >>confcache
14766 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14767 if test -w "$cache_file"; then
14768 if test "x$cache_file" != "x/dev/null"; then
14769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14770 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
14771 if test ! -f "$cache_file" || test -h "$cache_file"; then
14772 cat confcache >"$cache_file"
14773 else
14774 case $cache_file in #(
14775 */* | ?:*)
14776 mv -f confcache "$cache_file"$$ &&
14777 mv -f "$cache_file"$$ "$cache_file" ;; #(
14778 *)
14779 mv -f confcache "$cache_file" ;;
14780 esac
14781 fi
14782 fi
14783 else
14784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14785 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
14786 fi
14787 fi
14788 rm -f confcache
14789
14790 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14791 # Let make expand exec_prefix.
14792 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14793
14794 DEFS=-DHAVE_CONFIG_H
14795
14796 ac_libobjs=
14797 ac_ltlibobjs=
14798 U=
14799 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14800 # 1. Remove the extension, and $U if already installed.
14801 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14802 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
14803 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14804 # will be set to the directory where LIBOBJS objects are built.
14805 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14806 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14807 done
14808 LIBOBJS=$ac_libobjs
14809
14810 LTLIBOBJS=$ac_ltlibobjs
14811
14812
14813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14814 printf %s "checking that generated files are newer than configure... " >&6; }
14815 if test -n "$am_sleep_pid"; then
14816 # Hide warnings about reused PIDs.
14817 wait $am_sleep_pid 2>/dev/null
14818 fi
14819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
14820 printf "%s\n" "done" >&6; }
14821 if test -n "$EXEEXT"; then
14822 am__EXEEXT_TRUE=
14823 am__EXEEXT_FALSE='#'
14824 else
14825 am__EXEEXT_TRUE='#'
14826 am__EXEEXT_FALSE=
14827 fi
14828
14829 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14830 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14831 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14832 fi
14833 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14834 as_fn_error $? "conditional \"AMDEP\" was never defined.
14835 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14836 fi
14837 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14838 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14839 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14840 fi
14841
14842 if test -z "${BUILD_EXAMPLES_TRUE}" && test -z "${BUILD_EXAMPLES_FALSE}"; then
14843 as_fn_error $? "conditional \"BUILD_EXAMPLES\" was never defined.
14844 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14845 fi
14846 if test -z "${BUILD_EXAMPLES_TRUE}" && test -z "${BUILD_EXAMPLES_FALSE}"; then
14847 as_fn_error $? "conditional \"BUILD_EXAMPLES\" was never defined.
14848 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14849 fi
14850 if test -z "${BUILD_KISS_FFT_TRUE}" && test -z "${BUILD_KISS_FFT_FALSE}"; then
14851 as_fn_error $? "conditional \"BUILD_KISS_FFT\" was never defined.
14852 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14853 fi
14854 if test -z "${BUILD_SMALLFT_TRUE}" && test -z "${BUILD_SMALLFT_FALSE}"; then
14855 as_fn_error $? "conditional \"BUILD_SMALLFT\" was never defined.
14856 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14857 fi
14858
14859 : "${CONFIG_STATUS=./config.status}"
14860 ac_write_fail=0
14861 ac_clean_files_save=$ac_clean_files
14862 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14864 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
14865 as_write_fail=0
14866 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14867 #! $SHELL
14868 # Generated by $as_me.
14869 # Run this file to recreate the current configuration.
14870 # Compiler output produced by configure, useful for debugging
14871 # configure, is in config.log if it exists.
14872
14873 debug=false
14874 ac_cs_recheck=false
14875 ac_cs_silent=false
14876
14877 SHELL=\${CONFIG_SHELL-$SHELL}
14878 export SHELL
14879 _ASEOF
14880 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14881 ## -------------------- ##
14882 ## M4sh Initialization. ##
14883 ## -------------------- ##
14884
14885 # Be more Bourne compatible
14886 DUALCASE=1; export DUALCASE # for MKS sh
14887 as_nop=:
14888 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
14889 then :
14890 emulate sh
14891 NULLCMD=:
14892 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14893 # is contrary to our usage. Disable this feature.
14894 alias -g '${1+"$@"}'='"$@"'
14895 setopt NO_GLOB_SUBST
14896 else $as_nop
14897 case `(set -o) 2>/dev/null` in #(
14898 *posix*) :
14899 set -o posix ;; #(
14900 *) :
14901 ;;
14902 esac
14903 fi
14904
14905
14906
14907 # Reset variables that may have inherited troublesome values from
14908 # the environment.
14909
14910 # IFS needs to be set, to space, tab, and newline, in precisely that order.
14911 # (If _AS_PATH_WALK were called with IFS unset, it would have the
14912 # side effect of setting IFS to empty, thus disabling word splitting.)
14913 # Quoting is to prevent editors from complaining about space-tab.
14914 as_nl='
14915 '
14916 export as_nl
14917 IFS=" "" $as_nl"
14918
14919 PS1='$ '
14920 PS2='> '
14921 PS4='+ '
14922
14923 # Ensure predictable behavior from utilities with locale-dependent output.
14924 LC_ALL=C
14925 export LC_ALL
14926 LANGUAGE=C
14927 export LANGUAGE
14928
14929 # We cannot yet rely on "unset" to work, but we need these variables
14930 # to be unset--not just set to an empty or harmless value--now, to
14931 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
14932 # also avoids known problems related to "unset" and subshell syntax
14933 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
14934 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
14935 do eval test \${$as_var+y} \
14936 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14937 done
14938
14939 # Ensure that fds 0, 1, and 2 are open.
14940 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
14941 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
14942 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
14943
14944 # The user is always right.
14945 if ${PATH_SEPARATOR+false} :; then
14946 PATH_SEPARATOR=:
14947 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14948 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14949 PATH_SEPARATOR=';'
14950 }
14951 fi
14952
14953
14954 # Find who we are. Look in the path if we contain no directory separator.
14955 as_myself=
14956 case $0 in #((
14957 *[\\/]* ) as_myself=$0 ;;
14958 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14959 for as_dir in $PATH
14960 do
14961 IFS=$as_save_IFS
14962 case $as_dir in #(((
14963 '') as_dir=./ ;;
14964 */) ;;
14965 *) as_dir=$as_dir/ ;;
14966 esac
14967 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
14968 done
14969 IFS=$as_save_IFS
14970
14971 ;;
14972 esac
14973 # We did not find ourselves, most probably we were run as `sh COMMAND'
14974 # in which case we are not to be found in the path.
14975 if test "x$as_myself" = x; then
14976 as_myself=$0
14977 fi
14978 if test ! -f "$as_myself"; then
14979 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14980 exit 1
14981 fi
14982
14983
14984
14985 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14986 # ----------------------------------------
14987 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14988 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14989 # script with STATUS, using 1 if that was 0.
14990 as_fn_error ()
14991 {
14992 as_status=$1; test $as_status -eq 0 && as_status=1
14993 if test "$4"; then
14994 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14995 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14996 fi
14997 printf "%s\n" "$as_me: error: $2" >&2
14998 as_fn_exit $as_status
14999 } # as_fn_error
15000
15001
15002
15003 # as_fn_set_status STATUS
15004 # -----------------------
15005 # Set $? to STATUS, without forking.
15006 as_fn_set_status ()
15007 {
15008 return $1
15009 } # as_fn_set_status
15010
15011 # as_fn_exit STATUS
15012 # -----------------
15013 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15014 as_fn_exit ()
15015 {
15016 set +e
15017 as_fn_set_status $1
15018 exit $1
15019 } # as_fn_exit
15020
15021 # as_fn_unset VAR
15022 # ---------------
15023 # Portably unset VAR.
15024 as_fn_unset ()
15025 {
15026 { eval $1=; unset $1;}
15027 }
15028 as_unset=as_fn_unset
15029
15030 # as_fn_append VAR VALUE
15031 # ----------------------
15032 # Append the text in VALUE to the end of the definition contained in VAR. Take
15033 # advantage of any shell optimizations that allow amortized linear growth over
15034 # repeated appends, instead of the typical quadratic growth present in naive
15035 # implementations.
15036 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
15037 then :
15038 eval 'as_fn_append ()
15039 {
15040 eval $1+=\$2
15041 }'
15042 else $as_nop
15043 as_fn_append ()
15044 {
15045 eval $1=\$$1\$2
15046 }
15047 fi # as_fn_append
15048
15049 # as_fn_arith ARG...
15050 # ------------------
15051 # Perform arithmetic evaluation on the ARGs, and store the result in the
15052 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15053 # must be portable across $(()) and expr.
15054 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
15055 then :
15056 eval 'as_fn_arith ()
15057 {
15058 as_val=$(( $* ))
15059 }'
15060 else $as_nop
15061 as_fn_arith ()
15062 {
15063 as_val=`expr "$@" || test $? -eq 1`
15064 }
15065 fi # as_fn_arith
15066
15067
15068 if expr a : '\(a\)' >/dev/null 2>&1 &&
15069 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15070 as_expr=expr
15071 else
15072 as_expr=false
15073 fi
15074
15075 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15076 as_basename=basename
15077 else
15078 as_basename=false
15079 fi
15080
15081 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15082 as_dirname=dirname
15083 else
15084 as_dirname=false
15085 fi
15086
15087 as_me=`$as_basename -- "$0" ||
15088 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15089 X"$0" : 'X\(//\)$' \| \
15090 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15091 printf "%s\n" X/"$0" |
15092 sed '/^.*\/\([^/][^/]*\)\/*$/{
15093 s//\1/
15094 q
15095 }
15096 /^X\/\(\/\/\)$/{
15097 s//\1/
15098 q
15099 }
15100 /^X\/\(\/\).*/{
15101 s//\1/
15102 q
15103 }
15104 s/.*/./; q'`
15105
15106 # Avoid depending upon Character Ranges.
15107 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15108 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15109 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15110 as_cr_digits='0123456789'
15111 as_cr_alnum=$as_cr_Letters$as_cr_digits
15112
15113
15114 # Determine whether it's possible to make 'echo' print without a newline.
15115 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
15116 # for compatibility with existing Makefiles.
15117 ECHO_C= ECHO_N= ECHO_T=
15118 case `echo -n x` in #(((((
15119 -n*)
15120 case `echo 'xy\c'` in
15121 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15122 xy) ECHO_C='\c';;
15123 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15124 ECHO_T=' ';;
15125 esac;;
15126 *)
15127 ECHO_N='-n';;
15128 esac
15129
15130 # For backward compatibility with old third-party macros, we provide
15131 # the shell variables $as_echo and $as_echo_n. New code should use
15132 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
15133 as_echo='printf %s\n'
15134 as_echo_n='printf %s'
15135
15136 rm -f conf$$ conf$$.exe conf$$.file
15137 if test -d conf$$.dir; then
15138 rm -f conf$$.dir/conf$$.file
15139 else
15140 rm -f conf$$.dir
15141 mkdir conf$$.dir 2>/dev/null
15142 fi
15143 if (echo >conf$$.file) 2>/dev/null; then
15144 if ln -s conf$$.file conf$$ 2>/dev/null; then
15145 as_ln_s='ln -s'
15146 # ... but there are two gotchas:
15147 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15148 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15149 # In both cases, we have to default to `cp -pR'.
15150 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15151 as_ln_s='cp -pR'
15152 elif ln conf$$.file conf$$ 2>/dev/null; then
15153 as_ln_s=ln
15154 else
15155 as_ln_s='cp -pR'
15156 fi
15157 else
15158 as_ln_s='cp -pR'
15159 fi
15160 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15161 rmdir conf$$.dir 2>/dev/null
15162
15163
15164 # as_fn_mkdir_p
15165 # -------------
15166 # Create "$as_dir" as a directory, including parents if necessary.
15167 as_fn_mkdir_p ()
15168 {
15169
15170 case $as_dir in #(
15171 -*) as_dir=./$as_dir;;
15172 esac
15173 test -d "$as_dir" || eval $as_mkdir_p || {
15174 as_dirs=
15175 while :; do
15176 case $as_dir in #(
15177 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15178 *) as_qdir=$as_dir;;
15179 esac
15180 as_dirs="'$as_qdir' $as_dirs"
15181 as_dir=`$as_dirname -- "$as_dir" ||
15182 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15183 X"$as_dir" : 'X\(//\)[^/]' \| \
15184 X"$as_dir" : 'X\(//\)$' \| \
15185 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15186 printf "%s\n" X"$as_dir" |
15187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15188 s//\1/
15189 q
15190 }
15191 /^X\(\/\/\)[^/].*/{
15192 s//\1/
15193 q
15194 }
15195 /^X\(\/\/\)$/{
15196 s//\1/
15197 q
15198 }
15199 /^X\(\/\).*/{
15200 s//\1/
15201 q
15202 }
15203 s/.*/./; q'`
15204 test -d "$as_dir" && break
15205 done
15206 test -z "$as_dirs" || eval "mkdir $as_dirs"
15207 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15208
15209
15210 } # as_fn_mkdir_p
15211 if mkdir -p . 2>/dev/null; then
15212 as_mkdir_p='mkdir -p "$as_dir"'
15213 else
15214 test -d ./-p && rmdir ./-p
15215 as_mkdir_p=false
15216 fi
15217
15218
15219 # as_fn_executable_p FILE
15220 # -----------------------
15221 # Test if FILE is an executable regular file.
15222 as_fn_executable_p ()
15223 {
15224 test -f "$1" && test -x "$1"
15225 } # as_fn_executable_p
15226 as_test_x='test -x'
15227 as_executable_p=as_fn_executable_p
15228
15229 # Sed expression to map a string onto a valid CPP name.
15230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15231
15232 # Sed expression to map a string onto a valid variable name.
15233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15234
15235
15236 exec 6>&1
15237 ## ----------------------------------- ##
15238 ## Main body of $CONFIG_STATUS script. ##
15239 ## ----------------------------------- ##
15240 _ASEOF
15241 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15242
15243 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15244 # Save the log message, to keep $0 and so on meaningful, and to
15245 # report actual input values of CONFIG_FILES etc. instead of their
15246 # values after options handling.
15247 ac_log="
15248 This file was extended by speexdsp $as_me 1.2.1, which was
15249 generated by GNU Autoconf 2.71. Invocation command line was
15250
15251 CONFIG_FILES = $CONFIG_FILES
15252 CONFIG_HEADERS = $CONFIG_HEADERS
15253 CONFIG_LINKS = $CONFIG_LINKS
15254 CONFIG_COMMANDS = $CONFIG_COMMANDS
15255 $ $0 $@
15256
15257 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15258 "
15259
15260 _ACEOF
15261
15262 case $ac_config_files in *"
15263 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15264 esac
15265
15266 case $ac_config_headers in *"
15267 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15268 esac
15269
15270
15271 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15272 # Files that config.status was made for.
15273 config_files="$ac_config_files"
15274 config_headers="$ac_config_headers"
15275 config_commands="$ac_config_commands"
15276
15277 _ACEOF
15278
15279 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15280 ac_cs_usage="\
15281 \`$as_me' instantiates files and other configuration actions
15282 from templates according to the current configuration. Unless the files
15283 and actions are specified as TAGs, all are instantiated by default.
15284
15285 Usage: $0 [OPTION]... [TAG]...
15286
15287 -h, --help print this help, then exit
15288 -V, --version print version number and configuration settings, then exit
15289 --config print configuration, then exit
15290 -q, --quiet, --silent
15291 do not print progress messages
15292 -d, --debug don't remove temporary files
15293 --recheck update $as_me by reconfiguring in the same conditions
15294 --file=FILE[:TEMPLATE]
15295 instantiate the configuration file FILE
15296 --header=FILE[:TEMPLATE]
15297 instantiate the configuration header FILE
15298
15299 Configuration files:
15300 $config_files
15301
15302 Configuration headers:
15303 $config_headers
15304
15305 Configuration commands:
15306 $config_commands
15307
15308 Report bugs to <[email protected]>."
15309
15310 _ACEOF
15311 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
15312 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
15313 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15314 ac_cs_config='$ac_cs_config_escaped'
15315 ac_cs_version="\\
15316 speexdsp config.status 1.2.1
15317 configured by $0, generated by GNU Autoconf 2.71,
15318 with options \\"\$ac_cs_config\\"
15319
15320 Copyright (C) 2021 Free Software Foundation, Inc.
15321 This config.status script is free software; the Free Software Foundation
15322 gives unlimited permission to copy, distribute and modify it."
15323
15324 ac_pwd='$ac_pwd'
15325 srcdir='$srcdir'
15326 INSTALL='$INSTALL'
15327 MKDIR_P='$MKDIR_P'
15328 AWK='$AWK'
15329 test -n "\$AWK" || AWK=awk
15330 _ACEOF
15331
15332 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15333 # The default lists apply if the user does not specify any file.
15334 ac_need_defaults=:
15335 while test $# != 0
15336 do
15337 case $1 in
15338 --*=?*)
15339 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15340 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15341 ac_shift=:
15342 ;;
15343 --*=)
15344 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15345 ac_optarg=
15346 ac_shift=:
15347 ;;
15348 *)
15349 ac_option=$1
15350 ac_optarg=$2
15351 ac_shift=shift
15352 ;;
15353 esac
15354
15355 case $ac_option in
15356 # Handling of the options.
15357 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15358 ac_cs_recheck=: ;;
15359 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15360 printf "%s\n" "$ac_cs_version"; exit ;;
15361 --config | --confi | --conf | --con | --co | --c )
15362 printf "%s\n" "$ac_cs_config"; exit ;;
15363 --debug | --debu | --deb | --de | --d | -d )
15364 debug=: ;;
15365 --file | --fil | --fi | --f )
15366 $ac_shift
15367 case $ac_optarg in
15368 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15369 '') as_fn_error $? "missing file argument" ;;
15370 esac
15371 as_fn_append CONFIG_FILES " '$ac_optarg'"
15372 ac_need_defaults=false;;
15373 --header | --heade | --head | --hea )
15374 $ac_shift
15375 case $ac_optarg in
15376 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15377 esac
15378 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15379 ac_need_defaults=false;;
15380 --he | --h)
15381 # Conflict between --help and --header
15382 as_fn_error $? "ambiguous option: \`$1'
15383 Try \`$0 --help' for more information.";;
15384 --help | --hel | -h )
15385 printf "%s\n" "$ac_cs_usage"; exit ;;
15386 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15387 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15388 ac_cs_silent=: ;;
15389
15390 # This is an error.
15391 -*) as_fn_error $? "unrecognized option: \`$1'
15392 Try \`$0 --help' for more information." ;;
15393
15394 *) as_fn_append ac_config_targets " $1"
15395 ac_need_defaults=false ;;
15396
15397 esac
15398 shift
15399 done
15400
15401 ac_configure_extra_args=
15402
15403 if $ac_cs_silent; then
15404 exec 6>/dev/null
15405 ac_configure_extra_args="$ac_configure_extra_args --silent"
15406 fi
15407
15408 _ACEOF
15409 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15410 if \$ac_cs_recheck; then
15411 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15412 shift
15413 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
15414 CONFIG_SHELL='$SHELL'
15415 export CONFIG_SHELL
15416 exec "\$@"
15417 fi
15418
15419 _ACEOF
15420 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15421 exec 5>>config.log
15422 {
15423 echo
15424 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15425 ## Running $as_me. ##
15426 _ASBOX
15427 printf "%s\n" "$ac_log"
15428 } >&5
15429
15430 _ACEOF
15431 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15432 #
15433 # INIT-COMMANDS
15434 #
15435 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
15436
15437
15438 # The HP-UX ksh and POSIX shell print the target directory to stdout
15439 # if CDPATH is set.
15440 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15441
15442 sed_quote_subst='$sed_quote_subst'
15443 double_quote_subst='$double_quote_subst'
15444 delay_variable_subst='$delay_variable_subst'
15445 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
15446 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15447 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15448 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15449 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15450 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15451 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15452 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15453 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15454 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
15455 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15456 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15457 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15458 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15459 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15460 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15461 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15462 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15463 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15464 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15465 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15466 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15467 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15468 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15469 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15470 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15471 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15472 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15473 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15474 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15475 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15476 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15477 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15478 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15479 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15480 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15481 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15482 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15483 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15484 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15485 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15486 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15487 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15488 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15489 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15490 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15491 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15492 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15493 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15494 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15495 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15496 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15497 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15498 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15499 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15500 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15501 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15502 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
15503 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15504 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
15505 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
15506 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15507 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15508 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
15509 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15510 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15511 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15512 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15513 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15514 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15515 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15516 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15517 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15518 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15519 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15520 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15521 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15522 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15523 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15524 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15525 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15526 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15527 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15528 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15529 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15530 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15531 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15532 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15533 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15534 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15535 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15536 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15537 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15538 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15539 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15540 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15541 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15542 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15543 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15544 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15545 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15546 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15547 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15548 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15549 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15550 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15551 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15552 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15553 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15554 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15555 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15556 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15557 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15558 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15559 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15560 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15561 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15562 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15563 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15564 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15565 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15566 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15567 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15568 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15569 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15570 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15571 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15572 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15573 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15574 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
15575 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15576 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15577 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15578 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15579 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15580 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15581
15582 LTCC='$LTCC'
15583 LTCFLAGS='$LTCFLAGS'
15584 compiler='$compiler_DEFAULT'
15585
15586 # A function that is used when there is no print builtin or printf.
15587 func_fallback_echo ()
15588 {
15589 eval 'cat <<_LTECHO_EOF
15590 \$1
15591 _LTECHO_EOF'
15592 }
15593
15594 # Quote evaled strings.
15595 for var in AS \
15596 DLLTOOL \
15597 OBJDUMP \
15598 SHELL \
15599 ECHO \
15600 PATH_SEPARATOR \
15601 SED \
15602 GREP \
15603 EGREP \
15604 FGREP \
15605 LD \
15606 NM \
15607 LN_S \
15608 lt_SP2NL \
15609 lt_NL2SP \
15610 reload_flag \
15611 deplibs_check_method \
15612 file_magic_cmd \
15613 file_magic_glob \
15614 want_nocaseglob \
15615 sharedlib_from_linklib_cmd \
15616 AR \
15617 AR_FLAGS \
15618 archiver_list_spec \
15619 STRIP \
15620 RANLIB \
15621 CC \
15622 CFLAGS \
15623 compiler \
15624 lt_cv_sys_global_symbol_pipe \
15625 lt_cv_sys_global_symbol_to_cdecl \
15626 lt_cv_sys_global_symbol_to_import \
15627 lt_cv_sys_global_symbol_to_c_name_address \
15628 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15629 lt_cv_nm_interface \
15630 nm_file_list_spec \
15631 lt_cv_truncate_bin \
15632 lt_prog_compiler_no_builtin_flag \
15633 lt_prog_compiler_pic \
15634 lt_prog_compiler_wl \
15635 lt_prog_compiler_static \
15636 lt_cv_prog_compiler_c_o \
15637 need_locks \
15638 MANIFEST_TOOL \
15639 DSYMUTIL \
15640 NMEDIT \
15641 LIPO \
15642 OTOOL \
15643 OTOOL64 \
15644 shrext_cmds \
15645 export_dynamic_flag_spec \
15646 whole_archive_flag_spec \
15647 compiler_needs_object \
15648 with_gnu_ld \
15649 allow_undefined_flag \
15650 no_undefined_flag \
15651 hardcode_libdir_flag_spec \
15652 hardcode_libdir_separator \
15653 exclude_expsyms \
15654 include_expsyms \
15655 file_list_spec \
15656 variables_saved_for_relink \
15657 libname_spec \
15658 library_names_spec \
15659 soname_spec \
15660 install_override_mode \
15661 finish_eval \
15662 old_striplib \
15663 striplib; do
15664 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15665 *[\\\\\\\`\\"\\\$]*)
15666 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15667 ;;
15668 *)
15669 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15670 ;;
15671 esac
15672 done
15673
15674 # Double-quote double-evaled strings.
15675 for var in reload_cmds \
15676 old_postinstall_cmds \
15677 old_postuninstall_cmds \
15678 old_archive_cmds \
15679 extract_expsyms_cmds \
15680 old_archive_from_new_cmds \
15681 old_archive_from_expsyms_cmds \
15682 archive_cmds \
15683 archive_expsym_cmds \
15684 module_cmds \
15685 module_expsym_cmds \
15686 export_symbols_cmds \
15687 prelink_cmds \
15688 postlink_cmds \
15689 postinstall_cmds \
15690 postuninstall_cmds \
15691 finish_cmds \
15692 sys_lib_search_path_spec \
15693 configure_time_dlsearch_path \
15694 configure_time_lt_sys_library_path; do
15695 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15696 *[\\\\\\\`\\"\\\$]*)
15697 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15698 ;;
15699 *)
15700 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15701 ;;
15702 esac
15703 done
15704
15705 ac_aux_dir='$ac_aux_dir'
15706
15707 # See if we are running on zsh, and set the options that allow our
15708 # commands through without removal of \ escapes INIT.
15709 if test -n "\${ZSH_VERSION+set}"; then
15710 setopt NO_GLOB_SUBST
15711 fi
15712
15713
15714 PACKAGE='$PACKAGE'
15715 VERSION='$VERSION'
15716 RM='$RM'
15717 ofile='$ofile'
15718
15719
15720
15721
15722 _ACEOF
15723
15724 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15725
15726 # Handling of arguments.
15727 for ac_config_target in $ac_config_targets
15728 do
15729 case $ac_config_target in
15730 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15731 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15732 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15733 "libspeexdsp/Makefile") CONFIG_FILES="$CONFIG_FILES libspeexdsp/Makefile" ;;
15734 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15735 "SpeexDSP.spec") CONFIG_FILES="$CONFIG_FILES SpeexDSP.spec" ;;
15736 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
15737 "include/speex/Makefile") CONFIG_FILES="$CONFIG_FILES include/speex/Makefile" ;;
15738 "speexdsp.pc") CONFIG_FILES="$CONFIG_FILES speexdsp.pc" ;;
15739 "win32/Makefile") CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;;
15740 "win32/libspeexdsp/Makefile") CONFIG_FILES="$CONFIG_FILES win32/libspeexdsp/Makefile" ;;
15741 "symbian/Makefile") CONFIG_FILES="$CONFIG_FILES symbian/Makefile" ;;
15742 "win32/VS2003/Makefile") CONFIG_FILES="$CONFIG_FILES win32/VS2003/Makefile" ;;
15743 "win32/VS2003/libspeexdsp/Makefile") CONFIG_FILES="$CONFIG_FILES win32/VS2003/libspeexdsp/Makefile" ;;
15744 "win32/VS2003/tests/Makefile") CONFIG_FILES="$CONFIG_FILES win32/VS2003/tests/Makefile" ;;
15745 "win32/VS2005/Makefile") CONFIG_FILES="$CONFIG_FILES win32/VS2005/Makefile" ;;
15746 "win32/VS2005/libspeexdsp/Makefile") CONFIG_FILES="$CONFIG_FILES win32/VS2005/libspeexdsp/Makefile" ;;
15747 "win32/VS2005/tests/Makefile") CONFIG_FILES="$CONFIG_FILES win32/VS2005/tests/Makefile" ;;
15748 "win32/VS2008/Makefile") CONFIG_FILES="$CONFIG_FILES win32/VS2008/Makefile" ;;
15749 "win32/VS2008/libspeexdsp/Makefile") CONFIG_FILES="$CONFIG_FILES win32/VS2008/libspeexdsp/Makefile" ;;
15750 "win32/VS2008/tests/Makefile") CONFIG_FILES="$CONFIG_FILES win32/VS2008/tests/Makefile" ;;
15751 "include/speex/speexdsp_config_types.h") CONFIG_FILES="$CONFIG_FILES include/speex/speexdsp_config_types.h" ;;
15752 "ti/Makefile") CONFIG_FILES="$CONFIG_FILES ti/Makefile" ;;
15753 "ti/speex_C54_test/Makefile") CONFIG_FILES="$CONFIG_FILES ti/speex_C54_test/Makefile" ;;
15754 "ti/speex_C55_test/Makefile") CONFIG_FILES="$CONFIG_FILES ti/speex_C55_test/Makefile" ;;
15755 "ti/speex_C64_test/Makefile") CONFIG_FILES="$CONFIG_FILES ti/speex_C64_test/Makefile" ;;
15756 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15757
15758 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15759 esac
15760 done
15761
15762
15763 # If the user did not use the arguments to specify the items to instantiate,
15764 # then the envvar interface is used. Set only those that are not.
15765 # We use the long form for the default assignment because of an extremely
15766 # bizarre bug on SunOS 4.1.3.
15767 if $ac_need_defaults; then
15768 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
15769 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
15770 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
15771 fi
15772
15773 # Have a temporary directory for convenience. Make it in the build tree
15774 # simply because there is no reason against having it here, and in addition,
15775 # creating and moving files from /tmp can sometimes cause problems.
15776 # Hook for its removal unless debugging.
15777 # Note that there is a small window in which the directory will not be cleaned:
15778 # after its creation but before its name has been assigned to `$tmp'.
15779 $debug ||
15780 {
15781 tmp= ac_tmp=
15782 trap 'exit_status=$?
15783 : "${ac_tmp:=$tmp}"
15784 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15785 ' 0
15786 trap 'as_fn_exit 1' 1 2 13 15
15787 }
15788 # Create a (secure) tmp directory for tmp files.
15789
15790 {
15791 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15792 test -d "$tmp"
15793 } ||
15794 {
15795 tmp=./conf$$-$RANDOM
15796 (umask 077 && mkdir "$tmp")
15797 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15798 ac_tmp=$tmp
15799
15800 # Set up the scripts for CONFIG_FILES section.
15801 # No need to generate them if there are no CONFIG_FILES.
15802 # This happens for instance with `./config.status config.h'.
15803 if test -n "$CONFIG_FILES"; then
15804
15805
15806 ac_cr=`echo X | tr X '\015'`
15807 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15808 # But we know of no other shell where ac_cr would be empty at this
15809 # point, so we can use a bashism as a fallback.
15810 if test "x$ac_cr" = x; then
15811 eval ac_cr=\$\'\\r\'
15812 fi
15813 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15814 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15815 ac_cs_awk_cr='\\r'
15816 else
15817 ac_cs_awk_cr=$ac_cr
15818 fi
15819
15820 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15821 _ACEOF
15822
15823
15824 {
15825 echo "cat >conf$$subs.awk <<_ACEOF" &&
15826 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15827 echo "_ACEOF"
15828 } >conf$$subs.sh ||
15829 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15830 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15831 ac_delim='%!_!# '
15832 for ac_last_try in false false false false false :; do
15833 . ./conf$$subs.sh ||
15834 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15835
15836 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15837 if test $ac_delim_n = $ac_delim_num; then
15838 break
15839 elif $ac_last_try; then
15840 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15841 else
15842 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15843 fi
15844 done
15845 rm -f conf$$subs.sh
15846
15847 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15848 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15849 _ACEOF
15850 sed -n '
15851 h
15852 s/^/S["/; s/!.*/"]=/
15853 p
15854 g
15855 s/^[^!]*!//
15856 :repl
15857 t repl
15858 s/'"$ac_delim"'$//
15859 t delim
15860 :nl
15861 h
15862 s/\(.\{148\}\)..*/\1/
15863 t more1
15864 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15865 p
15866 n
15867 b repl
15868 :more1
15869 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15870 p
15871 g
15872 s/.\{148\}//
15873 t nl
15874 :delim
15875 h
15876 s/\(.\{148\}\)..*/\1/
15877 t more2
15878 s/["\\]/\\&/g; s/^/"/; s/$/"/
15879 p
15880 b
15881 :more2
15882 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15883 p
15884 g
15885 s/.\{148\}//
15886 t delim
15887 ' <conf$$subs.awk | sed '
15888 /^[^""]/{
15889 N
15890 s/\n//
15891 }
15892 ' >>$CONFIG_STATUS || ac_write_fail=1
15893 rm -f conf$$subs.awk
15894 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15895 _ACAWK
15896 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15897 for (key in S) S_is_set[key] = 1
15898 FS = ""
15899
15900 }
15901 {
15902 line = $ 0
15903 nfields = split(line, field, "@")
15904 substed = 0
15905 len = length(field[1])
15906 for (i = 2; i < nfields; i++) {
15907 key = field[i]
15908 keylen = length(key)
15909 if (S_is_set[key]) {
15910 value = S[key]
15911 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15912 len += length(value) + length(field[++i])
15913 substed = 1
15914 } else
15915 len += 1 + keylen
15916 }
15917
15918 print line
15919 }
15920
15921 _ACAWK
15922 _ACEOF
15923 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15924 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15925 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15926 else
15927 cat
15928 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15929 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15930 _ACEOF
15931
15932 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15933 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15934 # trailing colons and then remove the whole line if VPATH becomes empty
15935 # (actually we leave an empty line to preserve line numbers).
15936 if test "x$srcdir" = x.; then
15937 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15938 h
15939 s///
15940 s/^/:/
15941 s/[ ]*$/:/
15942 s/:\$(srcdir):/:/g
15943 s/:\${srcdir}:/:/g
15944 s/:@srcdir@:/:/g
15945 s/^:*//
15946 s/:*$//
15947 x
15948 s/\(=[ ]*\).*/\1/
15949 G
15950 s/\n//
15951 s/^[^=]*=[ ]*$//
15952 }'
15953 fi
15954
15955 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15956 fi # test -n "$CONFIG_FILES"
15957
15958 # Set up the scripts for CONFIG_HEADERS section.
15959 # No need to generate them if there are no CONFIG_HEADERS.
15960 # This happens for instance with `./config.status Makefile'.
15961 if test -n "$CONFIG_HEADERS"; then
15962 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15963 BEGIN {
15964 _ACEOF
15965
15966 # Transform confdefs.h into an awk script `defines.awk', embedded as
15967 # here-document in config.status, that substitutes the proper values into
15968 # config.h.in to produce config.h.
15969
15970 # Create a delimiter string that does not exist in confdefs.h, to ease
15971 # handling of long lines.
15972 ac_delim='%!_!# '
15973 for ac_last_try in false false :; do
15974 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15975 if test -z "$ac_tt"; then
15976 break
15977 elif $ac_last_try; then
15978 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15979 else
15980 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15981 fi
15982 done
15983
15984 # For the awk script, D is an array of macro values keyed by name,
15985 # likewise P contains macro parameters if any. Preserve backslash
15986 # newline sequences.
15987
15988 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15989 sed -n '
15990 s/.\{148\}/&'"$ac_delim"'/g
15991 t rset
15992 :rset
15993 s/^[ ]*#[ ]*define[ ][ ]*/ /
15994 t def
15995 d
15996 :def
15997 s/\\$//
15998 t bsnl
15999 s/["\\]/\\&/g
16000 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16001 D["\1"]=" \3"/p
16002 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16003 d
16004 :bsnl
16005 s/["\\]/\\&/g
16006 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16007 D["\1"]=" \3\\\\\\n"\\/p
16008 t cont
16009 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16010 t cont
16011 d
16012 :cont
16013 n
16014 s/.\{148\}/&'"$ac_delim"'/g
16015 t clear
16016 :clear
16017 s/\\$//
16018 t bsnlc
16019 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16020 d
16021 :bsnlc
16022 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16023 b cont
16024 ' <confdefs.h | sed '
16025 s/'"$ac_delim"'/"\\\
16026 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16027
16028 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16029 for (key in D) D_is_set[key] = 1
16030 FS = ""
16031 }
16032 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16033 line = \$ 0
16034 split(line, arg, " ")
16035 if (arg[1] == "#") {
16036 defundef = arg[2]
16037 mac1 = arg[3]
16038 } else {
16039 defundef = substr(arg[1], 2)
16040 mac1 = arg[2]
16041 }
16042 split(mac1, mac2, "(") #)
16043 macro = mac2[1]
16044 prefix = substr(line, 1, index(line, defundef) - 1)
16045 if (D_is_set[macro]) {
16046 # Preserve the white space surrounding the "#".
16047 print prefix "define", macro P[macro] D[macro]
16048 next
16049 } else {
16050 # Replace #undef with comments. This is necessary, for example,
16051 # in the case of _POSIX_SOURCE, which is predefined and required
16052 # on some systems where configure will not decide to define it.
16053 if (defundef == "undef") {
16054 print "/*", prefix defundef, macro, "*/"
16055 next
16056 }
16057 }
16058 }
16059 { print }
16060 _ACAWK
16061 _ACEOF
16062 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16063 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16064 fi # test -n "$CONFIG_HEADERS"
16065
16066
16067 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16068 shift
16069 for ac_tag
16070 do
16071 case $ac_tag in
16072 :[FHLC]) ac_mode=$ac_tag; continue;;
16073 esac
16074 case $ac_mode$ac_tag in
16075 :[FHL]*:*);;
16076 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16077 :[FH]-) ac_tag=-:-;;
16078 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16079 esac
16080 ac_save_IFS=$IFS
16081 IFS=:
16082 set x $ac_tag
16083 IFS=$ac_save_IFS
16084 shift
16085 ac_file=$1
16086 shift
16087
16088 case $ac_mode in
16089 :L) ac_source=$1;;
16090 :[FH])
16091 ac_file_inputs=
16092 for ac_f
16093 do
16094 case $ac_f in
16095 -) ac_f="$ac_tmp/stdin";;
16096 *) # Look for the file first in the build tree, then in the source tree
16097 # (if the path is not absolute). The absolute path cannot be DOS-style,
16098 # because $ac_f cannot contain `:'.
16099 test -f "$ac_f" ||
16100 case $ac_f in
16101 [\\/$]*) false;;
16102 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16103 esac ||
16104 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16105 esac
16106 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16107 as_fn_append ac_file_inputs " '$ac_f'"
16108 done
16109
16110 # Let's still pretend it is `configure' which instantiates (i.e., don't
16111 # use $as_me), people would be surprised to read:
16112 # /* config.h. Generated by config.status. */
16113 configure_input='Generated from '`
16114 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16115 `' by configure.'
16116 if test x"$ac_file" != x-; then
16117 configure_input="$ac_file. $configure_input"
16118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16119 printf "%s\n" "$as_me: creating $ac_file" >&6;}
16120 fi
16121 # Neutralize special characters interpreted by sed in replacement strings.
16122 case $configure_input in #(
16123 *\&* | *\|* | *\\* )
16124 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
16125 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16126 *) ac_sed_conf_input=$configure_input;;
16127 esac
16128
16129 case $ac_tag in
16130 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16131 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16132 esac
16133 ;;
16134 esac
16135
16136 ac_dir=`$as_dirname -- "$ac_file" ||
16137 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16138 X"$ac_file" : 'X\(//\)[^/]' \| \
16139 X"$ac_file" : 'X\(//\)$' \| \
16140 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16141 printf "%s\n" X"$ac_file" |
16142 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16143 s//\1/
16144 q
16145 }
16146 /^X\(\/\/\)[^/].*/{
16147 s//\1/
16148 q
16149 }
16150 /^X\(\/\/\)$/{
16151 s//\1/
16152 q
16153 }
16154 /^X\(\/\).*/{
16155 s//\1/
16156 q
16157 }
16158 s/.*/./; q'`
16159 as_dir="$ac_dir"; as_fn_mkdir_p
16160 ac_builddir=.
16161
16162 case "$ac_dir" in
16163 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16164 *)
16165 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
16166 # A ".." for each directory in $ac_dir_suffix.
16167 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16168 case $ac_top_builddir_sub in
16169 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16170 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16171 esac ;;
16172 esac
16173 ac_abs_top_builddir=$ac_pwd
16174 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16175 # for backward compatibility:
16176 ac_top_builddir=$ac_top_build_prefix
16177
16178 case $srcdir in
16179 .) # We are building in place.
16180 ac_srcdir=.
16181 ac_top_srcdir=$ac_top_builddir_sub
16182 ac_abs_top_srcdir=$ac_pwd ;;
16183 [\\/]* | ?:[\\/]* ) # Absolute name.
16184 ac_srcdir=$srcdir$ac_dir_suffix;
16185 ac_top_srcdir=$srcdir
16186 ac_abs_top_srcdir=$srcdir ;;
16187 *) # Relative name.
16188 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16189 ac_top_srcdir=$ac_top_build_prefix$srcdir
16190 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16191 esac
16192 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16193
16194
16195 case $ac_mode in
16196 :F)
16197 #
16198 # CONFIG_FILE
16199 #
16200
16201 case $INSTALL in
16202 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16203 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16204 esac
16205 ac_MKDIR_P=$MKDIR_P
16206 case $MKDIR_P in
16207 [\\/$]* | ?:[\\/]* ) ;;
16208 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16209 esac
16210 _ACEOF
16211
16212 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16213 # If the template does not know about datarootdir, expand it.
16214 # FIXME: This hack should be removed a few years after 2.60.
16215 ac_datarootdir_hack=; ac_datarootdir_seen=
16216 ac_sed_dataroot='
16217 /datarootdir/ {
16218 p
16219 q
16220 }
16221 /@datadir@/p
16222 /@docdir@/p
16223 /@infodir@/p
16224 /@localedir@/p
16225 /@mandir@/p'
16226 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16227 *datarootdir*) ac_datarootdir_seen=yes;;
16228 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16230 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16231 _ACEOF
16232 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16233 ac_datarootdir_hack='
16234 s&@datadir@&$datadir&g
16235 s&@docdir@&$docdir&g
16236 s&@infodir@&$infodir&g
16237 s&@localedir@&$localedir&g
16238 s&@mandir@&$mandir&g
16239 s&\\\${datarootdir}&$datarootdir&g' ;;
16240 esac
16241 _ACEOF
16242
16243 # Neutralize VPATH when `$srcdir' = `.'.
16244 # Shell code in configure.ac might set extrasub.
16245 # FIXME: do we really want to maintain this feature?
16246 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16247 ac_sed_extra="$ac_vpsub
16248 $extrasub
16249 _ACEOF
16250 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16251 :t
16252 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16253 s|@configure_input@|$ac_sed_conf_input|;t t
16254 s&@top_builddir@&$ac_top_builddir_sub&;t t
16255 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16256 s&@srcdir@&$ac_srcdir&;t t
16257 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16258 s&@top_srcdir@&$ac_top_srcdir&;t t
16259 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16260 s&@builddir@&$ac_builddir&;t t
16261 s&@abs_builddir@&$ac_abs_builddir&;t t
16262 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16263 s&@INSTALL@&$ac_INSTALL&;t t
16264 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16265 $ac_datarootdir_hack
16266 "
16267 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16268 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16269
16270 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16271 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16272 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16273 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16275 which seems to be undefined. Please make sure it is defined" >&5
16276 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16277 which seems to be undefined. Please make sure it is defined" >&2;}
16278
16279 rm -f "$ac_tmp/stdin"
16280 case $ac_file in
16281 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16282 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16283 esac \
16284 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16285 ;;
16286 :H)
16287 #
16288 # CONFIG_HEADER
16289 #
16290 if test x"$ac_file" != x-; then
16291 {
16292 printf "%s\n" "/* $configure_input */" >&1 \
16293 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16294 } >"$ac_tmp/config.h" \
16295 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16296 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16298 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
16299 else
16300 rm -f "$ac_file"
16301 mv "$ac_tmp/config.h" "$ac_file" \
16302 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16303 fi
16304 else
16305 printf "%s\n" "/* $configure_input */" >&1 \
16306 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16307 || as_fn_error $? "could not create -" "$LINENO" 5
16308 fi
16309 # Compute "$ac_file"'s index in $config_headers.
16310 _am_arg="$ac_file"
16311 _am_stamp_count=1
16312 for _am_header in $config_headers :; do
16313 case $_am_header in
16314 $_am_arg | $_am_arg:* )
16315 break ;;
16316 * )
16317 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16318 esac
16319 done
16320 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16321 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16322 X"$_am_arg" : 'X\(//\)[^/]' \| \
16323 X"$_am_arg" : 'X\(//\)$' \| \
16324 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16325 printf "%s\n" X"$_am_arg" |
16326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16327 s//\1/
16328 q
16329 }
16330 /^X\(\/\/\)[^/].*/{
16331 s//\1/
16332 q
16333 }
16334 /^X\(\/\/\)$/{
16335 s//\1/
16336 q
16337 }
16338 /^X\(\/\).*/{
16339 s//\1/
16340 q
16341 }
16342 s/.*/./; q'`/stamp-h$_am_stamp_count
16343 ;;
16344
16345 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16346 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
16347 ;;
16348 esac
16349
16350
16351 case $ac_file$ac_mode in
16352 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16353 # Older Autoconf quotes --file arguments for eval, but not when files
16354 # are listed without --file. Let's play safe and only enable the eval
16355 # if we detect the quoting.
16356 # TODO: see whether this extra hack can be removed once we start
16357 # requiring Autoconf 2.70 or later.
16358 case $CONFIG_FILES in #(
16359 *\'*) :
16360 eval set x "$CONFIG_FILES" ;; #(
16361 *) :
16362 set x $CONFIG_FILES ;; #(
16363 *) :
16364 ;;
16365 esac
16366 shift
16367 # Used to flag and report bootstrapping failures.
16368 am_rc=0
16369 for am_mf
16370 do
16371 # Strip MF so we end up with the name of the file.
16372 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
16373 # Check whether this is an Automake generated Makefile which includes
16374 # dependency-tracking related rules and includes.
16375 # Grep'ing the whole file directly is not great: AIX grep has a line
16376 # limit of 2048, but all sed's we know have understand at least 4000.
16377 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
16378 || continue
16379 am_dirpart=`$as_dirname -- "$am_mf" ||
16380 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16381 X"$am_mf" : 'X\(//\)[^/]' \| \
16382 X"$am_mf" : 'X\(//\)$' \| \
16383 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16384 printf "%s\n" X"$am_mf" |
16385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16386 s//\1/
16387 q
16388 }
16389 /^X\(\/\/\)[^/].*/{
16390 s//\1/
16391 q
16392 }
16393 /^X\(\/\/\)$/{
16394 s//\1/
16395 q
16396 }
16397 /^X\(\/\).*/{
16398 s//\1/
16399 q
16400 }
16401 s/.*/./; q'`
16402 am_filepart=`$as_basename -- "$am_mf" ||
16403 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
16404 X"$am_mf" : 'X\(//\)$' \| \
16405 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16406 printf "%s\n" X/"$am_mf" |
16407 sed '/^.*\/\([^/][^/]*\)\/*$/{
16408 s//\1/
16409 q
16410 }
16411 /^X\/\(\/\/\)$/{
16412 s//\1/
16413 q
16414 }
16415 /^X\/\(\/\).*/{
16416 s//\1/
16417 q
16418 }
16419 s/.*/./; q'`
16420 { echo "$as_me:$LINENO: cd "$am_dirpart" \
16421 && sed -e '/# am--include-marker/d' "$am_filepart" \
16422 | $MAKE -f - am--depfiles" >&5
16423 (cd "$am_dirpart" \
16424 && sed -e '/# am--include-marker/d' "$am_filepart" \
16425 | $MAKE -f - am--depfiles) >&5 2>&5
16426 ac_status=$?
16427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16428 (exit $ac_status); } || am_rc=$?
16429 done
16430 if test $am_rc -ne 0; then
16431 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16432 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16433 as_fn_error $? "Something went wrong bootstrapping makefile fragments
16434 for automatic dependency tracking. If GNU make was not used, consider
16435 re-running the configure script with MAKE=\"gmake\" (or whatever is
16436 necessary). You can also try re-running configure with the
16437 '--disable-dependency-tracking' option to at least be able to build
16438 the package (albeit without support for automatic dependency tracking).
16439 See \`config.log' for more details" "$LINENO" 5; }
16440 fi
16441 { am_dirpart=; unset am_dirpart;}
16442 { am_filepart=; unset am_filepart;}
16443 { am_mf=; unset am_mf;}
16444 { am_rc=; unset am_rc;}
16445 rm -f conftest-deps.mk
16446 }
16447 ;;
16448 "libtool":C)
16449
16450 # See if we are running on zsh, and set the options that allow our
16451 # commands through without removal of \ escapes.
16452 if test -n "${ZSH_VERSION+set}"; then
16453 setopt NO_GLOB_SUBST
16454 fi
16455
16456 cfgfile=${ofile}T
16457 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16458 $RM "$cfgfile"
16459
16460 cat <<_LT_EOF >> "$cfgfile"
16461 #! $SHELL
16462 # Generated automatically by $as_me ($PACKAGE) $VERSION
16463 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16464
16465 # Provide generalized library-building support services.
16466 # Written by Gordon Matzigkeit, 1996
16467
16468 # Copyright (C) 2014 Free Software Foundation, Inc.
16469 # This is free software; see the source for copying conditions. There is NO
16470 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16471
16472 # GNU Libtool is free software; you can redistribute it and/or modify
16473 # it under the terms of the GNU General Public License as published by
16474 # the Free Software Foundation; either version 2 of of the License, or
16475 # (at your option) any later version.
16476 #
16477 # As a special exception to the GNU General Public License, if you
16478 # distribute this file as part of a program or library that is built
16479 # using GNU Libtool, you may include this file under the same
16480 # distribution terms that you use for the rest of that program.
16481 #
16482 # GNU Libtool is distributed in the hope that it will be useful, but
16483 # WITHOUT ANY WARRANTY; without even the implied warranty of
16484 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16485 # GNU General Public License for more details.
16486 #
16487 # You should have received a copy of the GNU General Public License
16488 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16489
16490
16491 # The names of the tagged configurations supported by this script.
16492 available_tags=''
16493
16494 # Configured defaults for sys_lib_dlsearch_path munging.
16495 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16496
16497 # ### BEGIN LIBTOOL CONFIG
16498
16499 # Assembler program.
16500 AS=$lt_AS
16501
16502 # DLL creation program.
16503 DLLTOOL=$lt_DLLTOOL
16504
16505 # Object dumper program.
16506 OBJDUMP=$lt_OBJDUMP
16507
16508 # Which release of libtool.m4 was used?
16509 macro_version=$macro_version
16510 macro_revision=$macro_revision
16511
16512 # Whether or not to build shared libraries.
16513 build_libtool_libs=$enable_shared
16514
16515 # Whether or not to build static libraries.
16516 build_old_libs=$enable_static
16517
16518 # What type of objects to build.
16519 pic_mode=$pic_mode
16520
16521 # Whether or not to optimize for fast installation.
16522 fast_install=$enable_fast_install
16523
16524 # Shared archive member basename,for filename based shared library versioning on AIX.
16525 shared_archive_member_spec=$shared_archive_member_spec
16526
16527 # Shell to use when invoking shell scripts.
16528 SHELL=$lt_SHELL
16529
16530 # An echo program that protects backslashes.
16531 ECHO=$lt_ECHO
16532
16533 # The PATH separator for the build system.
16534 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16535
16536 # The host system.
16537 host_alias=$host_alias
16538 host=$host
16539 host_os=$host_os
16540
16541 # The build system.
16542 build_alias=$build_alias
16543 build=$build
16544 build_os=$build_os
16545
16546 # A sed program that does not truncate output.
16547 SED=$lt_SED
16548
16549 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16550 Xsed="\$SED -e 1s/^X//"
16551
16552 # A grep program that handles long lines.
16553 GREP=$lt_GREP
16554
16555 # An ERE matcher.
16556 EGREP=$lt_EGREP
16557
16558 # A literal string matcher.
16559 FGREP=$lt_FGREP
16560
16561 # A BSD- or MS-compatible name lister.
16562 NM=$lt_NM
16563
16564 # Whether we need soft or hard links.
16565 LN_S=$lt_LN_S
16566
16567 # What is the maximum length of a command?
16568 max_cmd_len=$max_cmd_len
16569
16570 # Object file suffix (normally "o").
16571 objext=$ac_objext
16572
16573 # Executable file suffix (normally "").
16574 exeext=$exeext
16575
16576 # whether the shell understands "unset".
16577 lt_unset=$lt_unset
16578
16579 # turn spaces into newlines.
16580 SP2NL=$lt_lt_SP2NL
16581
16582 # turn newlines into spaces.
16583 NL2SP=$lt_lt_NL2SP
16584
16585 # convert \$build file names to \$host format.
16586 to_host_file_cmd=$lt_cv_to_host_file_cmd
16587
16588 # convert \$build files to toolchain format.
16589 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16590
16591 # Method to check whether dependent libraries are shared objects.
16592 deplibs_check_method=$lt_deplibs_check_method
16593
16594 # Command to use when deplibs_check_method = "file_magic".
16595 file_magic_cmd=$lt_file_magic_cmd
16596
16597 # How to find potential files when deplibs_check_method = "file_magic".
16598 file_magic_glob=$lt_file_magic_glob
16599
16600 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16601 want_nocaseglob=$lt_want_nocaseglob
16602
16603 # Command to associate shared and link libraries.
16604 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16605
16606 # The archiver.
16607 AR=$lt_AR
16608
16609 # Flags to create an archive.
16610 AR_FLAGS=$lt_AR_FLAGS
16611
16612 # How to feed a file listing to the archiver.
16613 archiver_list_spec=$lt_archiver_list_spec
16614
16615 # A symbol stripping program.
16616 STRIP=$lt_STRIP
16617
16618 # Commands used to install an old-style archive.
16619 RANLIB=$lt_RANLIB
16620 old_postinstall_cmds=$lt_old_postinstall_cmds
16621 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16622
16623 # Whether to use a lock for old archive extraction.
16624 lock_old_archive_extraction=$lock_old_archive_extraction
16625
16626 # A C compiler.
16627 LTCC=$lt_CC
16628
16629 # LTCC compiler flags.
16630 LTCFLAGS=$lt_CFLAGS
16631
16632 # Take the output of nm and produce a listing of raw symbols and C names.
16633 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16634
16635 # Transform the output of nm in a proper C declaration.
16636 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16637
16638 # Transform the output of nm into a list of symbols to manually relocate.
16639 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16640
16641 # Transform the output of nm in a C name address pair.
16642 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16643
16644 # Transform the output of nm in a C name address pair when lib prefix is needed.
16645 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16646
16647 # The name lister interface.
16648 nm_interface=$lt_lt_cv_nm_interface
16649
16650 # Specify filename containing input files for \$NM.
16651 nm_file_list_spec=$lt_nm_file_list_spec
16652
16653 # The root where to search for dependent libraries,and where our libraries should be installed.
16654 lt_sysroot=$lt_sysroot
16655
16656 # Command to truncate a binary pipe.
16657 lt_truncate_bin=$lt_lt_cv_truncate_bin
16658
16659 # The name of the directory that contains temporary libtool files.
16660 objdir=$objdir
16661
16662 # Used to examine libraries when file_magic_cmd begins with "file".
16663 MAGIC_CMD=$MAGIC_CMD
16664
16665 # Must we lock files when doing compilation?
16666 need_locks=$lt_need_locks
16667
16668 # Manifest tool.
16669 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16670
16671 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16672 DSYMUTIL=$lt_DSYMUTIL
16673
16674 # Tool to change global to local symbols on Mac OS X.
16675 NMEDIT=$lt_NMEDIT
16676
16677 # Tool to manipulate fat objects and archives on Mac OS X.
16678 LIPO=$lt_LIPO
16679
16680 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16681 OTOOL=$lt_OTOOL
16682
16683 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16684 OTOOL64=$lt_OTOOL64
16685
16686 # Old archive suffix (normally "a").
16687 libext=$libext
16688
16689 # Shared library suffix (normally ".so").
16690 shrext_cmds=$lt_shrext_cmds
16691
16692 # The commands to extract the exported symbol list from a shared archive.
16693 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16694
16695 # Variables whose values should be saved in libtool wrapper scripts and
16696 # restored at link time.
16697 variables_saved_for_relink=$lt_variables_saved_for_relink
16698
16699 # Do we need the "lib" prefix for modules?
16700 need_lib_prefix=$need_lib_prefix
16701
16702 # Do we need a version for libraries?
16703 need_version=$need_version
16704
16705 # Library versioning type.
16706 version_type=$version_type
16707
16708 # Shared library runtime path variable.
16709 runpath_var=$runpath_var
16710
16711 # Shared library path variable.
16712 shlibpath_var=$shlibpath_var
16713
16714 # Is shlibpath searched before the hard-coded library search path?
16715 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16716
16717 # Format of library name prefix.
16718 libname_spec=$lt_libname_spec
16719
16720 # List of archive names. First name is the real one, the rest are links.
16721 # The last name is the one that the linker finds with -lNAME
16722 library_names_spec=$lt_library_names_spec
16723
16724 # The coded name of the library, if different from the real name.
16725 soname_spec=$lt_soname_spec
16726
16727 # Permission mode override for installation of shared libraries.
16728 install_override_mode=$lt_install_override_mode
16729
16730 # Command to use after installation of a shared archive.
16731 postinstall_cmds=$lt_postinstall_cmds
16732
16733 # Command to use after uninstallation of a shared archive.
16734 postuninstall_cmds=$lt_postuninstall_cmds
16735
16736 # Commands used to finish a libtool library installation in a directory.
16737 finish_cmds=$lt_finish_cmds
16738
16739 # As "finish_cmds", except a single script fragment to be evaled but
16740 # not shown.
16741 finish_eval=$lt_finish_eval
16742
16743 # Whether we should hardcode library paths into libraries.
16744 hardcode_into_libs=$hardcode_into_libs
16745
16746 # Compile-time system search path for libraries.
16747 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16748
16749 # Detected run-time system search path for libraries.
16750 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16751
16752 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16753 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16754
16755 # Whether dlopen is supported.
16756 dlopen_support=$enable_dlopen
16757
16758 # Whether dlopen of programs is supported.
16759 dlopen_self=$enable_dlopen_self
16760
16761 # Whether dlopen of statically linked programs is supported.
16762 dlopen_self_static=$enable_dlopen_self_static
16763
16764 # Commands to strip libraries.
16765 old_striplib=$lt_old_striplib
16766 striplib=$lt_striplib
16767
16768
16769 # The linker used to build libraries.
16770 LD=$lt_LD
16771
16772 # How to create reloadable object files.
16773 reload_flag=$lt_reload_flag
16774 reload_cmds=$lt_reload_cmds
16775
16776 # Commands used to build an old-style archive.
16777 old_archive_cmds=$lt_old_archive_cmds
16778
16779 # A language specific compiler.
16780 CC=$lt_compiler
16781
16782 # Is the compiler the GNU compiler?
16783 with_gcc=$GCC
16784
16785 # Compiler flag to turn off builtin functions.
16786 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16787
16788 # Additional compiler flags for building library objects.
16789 pic_flag=$lt_lt_prog_compiler_pic
16790
16791 # How to pass a linker flag through the compiler.
16792 wl=$lt_lt_prog_compiler_wl
16793
16794 # Compiler flag to prevent dynamic linking.
16795 link_static_flag=$lt_lt_prog_compiler_static
16796
16797 # Does compiler simultaneously support -c and -o options?
16798 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16799
16800 # Whether or not to add -lc for building shared libraries.
16801 build_libtool_need_lc=$archive_cmds_need_lc
16802
16803 # Whether or not to disallow shared libs when runtime libs are static.
16804 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16805
16806 # Compiler flag to allow reflexive dlopens.
16807 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16808
16809 # Compiler flag to generate shared objects directly from archives.
16810 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16811
16812 # Whether the compiler copes with passing no objects directly.
16813 compiler_needs_object=$lt_compiler_needs_object
16814
16815 # Create an old-style archive from a shared archive.
16816 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16817
16818 # Create a temporary old-style archive to link instead of a shared archive.
16819 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16820
16821 # Commands used to build a shared archive.
16822 archive_cmds=$lt_archive_cmds
16823 archive_expsym_cmds=$lt_archive_expsym_cmds
16824
16825 # Commands used to build a loadable module if different from building
16826 # a shared archive.
16827 module_cmds=$lt_module_cmds
16828 module_expsym_cmds=$lt_module_expsym_cmds
16829
16830 # Whether we are building with GNU ld or not.
16831 with_gnu_ld=$lt_with_gnu_ld
16832
16833 # Flag that allows shared libraries with undefined symbols to be built.
16834 allow_undefined_flag=$lt_allow_undefined_flag
16835
16836 # Flag that enforces no undefined symbols.
16837 no_undefined_flag=$lt_no_undefined_flag
16838
16839 # Flag to hardcode \$libdir into a binary during linking.
16840 # This must work even if \$libdir does not exist
16841 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16842
16843 # Whether we need a single "-rpath" flag with a separated argument.
16844 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16845
16846 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16847 # DIR into the resulting binary.
16848 hardcode_direct=$hardcode_direct
16849
16850 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16851 # DIR into the resulting binary and the resulting library dependency is
16852 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
16853 # library is relocated.
16854 hardcode_direct_absolute=$hardcode_direct_absolute
16855
16856 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16857 # into the resulting binary.
16858 hardcode_minus_L=$hardcode_minus_L
16859
16860 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16861 # into the resulting binary.
16862 hardcode_shlibpath_var=$hardcode_shlibpath_var
16863
16864 # Set to "yes" if building a shared library automatically hardcodes DIR
16865 # into the library and all subsequent libraries and executables linked
16866 # against it.
16867 hardcode_automatic=$hardcode_automatic
16868
16869 # Set to yes if linker adds runtime paths of dependent libraries
16870 # to runtime path list.
16871 inherit_rpath=$inherit_rpath
16872
16873 # Whether libtool must link a program against all its dependency libraries.
16874 link_all_deplibs=$link_all_deplibs
16875
16876 # Set to "yes" if exported symbols are required.
16877 always_export_symbols=$always_export_symbols
16878
16879 # The commands to list exported symbols.
16880 export_symbols_cmds=$lt_export_symbols_cmds
16881
16882 # Symbols that should not be listed in the preloaded symbols.
16883 exclude_expsyms=$lt_exclude_expsyms
16884
16885 # Symbols that must always be exported.
16886 include_expsyms=$lt_include_expsyms
16887
16888 # Commands necessary for linking programs (against libraries) with templates.
16889 prelink_cmds=$lt_prelink_cmds
16890
16891 # Commands necessary for finishing linking programs.
16892 postlink_cmds=$lt_postlink_cmds
16893
16894 # Specify filename containing input files.
16895 file_list_spec=$lt_file_list_spec
16896
16897 # How to hardcode a shared library path into an executable.
16898 hardcode_action=$hardcode_action
16899
16900 # ### END LIBTOOL CONFIG
16901
16902 _LT_EOF
16903
16904 cat <<'_LT_EOF' >> "$cfgfile"
16905
16906 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16907
16908 # func_munge_path_list VARIABLE PATH
16909 # -----------------------------------
16910 # VARIABLE is name of variable containing _space_ separated list of
16911 # directories to be munged by the contents of PATH, which is string
16912 # having a format:
16913 # "DIR[:DIR]:"
16914 # string "DIR[ DIR]" will be prepended to VARIABLE
16915 # ":DIR[:DIR]"
16916 # string "DIR[ DIR]" will be appended to VARIABLE
16917 # "DIRP[:DIRP]::[DIRA:]DIRA"
16918 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16919 # "DIRA[ DIRA]" will be appended to VARIABLE
16920 # "DIR[:DIR]"
16921 # VARIABLE will be replaced by "DIR[ DIR]"
16922 func_munge_path_list ()
16923 {
16924 case x$2 in
16925 x)
16926 ;;
16927 *:)
16928 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16929 ;;
16930 x:*)
16931 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16932 ;;
16933 *::*)
16934 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16935 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16936 ;;
16937 *)
16938 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16939 ;;
16940 esac
16941 }
16942
16943
16944 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
16945 func_cc_basename ()
16946 {
16947 for cc_temp in $*""; do
16948 case $cc_temp in
16949 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16950 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16951 \-*) ;;
16952 *) break;;
16953 esac
16954 done
16955 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16956 }
16957
16958
16959 # ### END FUNCTIONS SHARED WITH CONFIGURE
16960
16961 _LT_EOF
16962
16963 case $host_os in
16964 aix3*)
16965 cat <<\_LT_EOF >> "$cfgfile"
16966 # AIX sometimes has problems with the GCC collect2 program. For some
16967 # reason, if we set the COLLECT_NAMES environment variable, the problems
16968 # vanish in a puff of smoke.
16969 if test set != "${COLLECT_NAMES+set}"; then
16970 COLLECT_NAMES=
16971 export COLLECT_NAMES
16972 fi
16973 _LT_EOF
16974 ;;
16975 esac
16976
16977
16978
16979 ltmain=$ac_aux_dir/ltmain.sh
16980
16981
16982 # We use sed instead of cat because bash on DJGPP gets confused if
16983 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16984 # text mode, it properly converts lines to CR/LF. This bash problem
16985 # is reportedly fixed, but why not run on old versions too?
16986 sed '$q' "$ltmain" >> "$cfgfile" \
16987 || (rm -f "$cfgfile"; exit 1)
16988
16989 mv -f "$cfgfile" "$ofile" ||
16990 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16991 chmod +x "$ofile"
16992
16993 ;;
16994
16995 esac
16996 done # for ac_tag
16997
16998
16999 as_fn_exit 0
17000 _ACEOF
17001 ac_clean_files=$ac_clean_files_save
17002
17003 test $ac_write_fail = 0 ||
17004 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17005
17006
17007 # configure is writing to config.log, and then calls config.status.
17008 # config.status does its own redirection, appending to config.log.
17009 # Unfortunately, on DOS this fails, as config.log is still kept open
17010 # by configure, so config.status won't be able to write to it; its
17011 # output is simply discarded. So we exec the FD to /dev/null,
17012 # effectively closing config.log, so it can be properly (re)opened and
17013 # appended to by config.status. When coming back to configure, we
17014 # need to make the FD available again.
17015 if test "$no_create" != yes; then
17016 ac_cs_success=:
17017 ac_config_status_args=
17018 test "$silent" = yes &&
17019 ac_config_status_args="$ac_config_status_args --quiet"
17020 exec 5>/dev/null
17021 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17022 exec 5>>config.log
17023 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17024 # would make configure fail if this is the last instruction.
17025 $ac_cs_success || as_fn_exit 1
17026 fi
17027 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17029 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17030 fi
17031
17032
17033 echo "Type \"make; make install\" to compile and install Speex";
17034