Debian Codegraph @

configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.73 for lame 4.0.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2026 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 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # contradicts POSIX and common usage. Disable this.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
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 case $# in # ((
135 0) exec $CONFIG_SHELL $as_opts "$as_myself" ;;
136 *) exec $CONFIG_SHELL $as_opts "$as_myself" "$@" ;;
137 esac
138 # Admittedly, this is quite paranoid, since all the known shells bail
139 # out after a failed 'exec'.
140 printf '%s\n' "$0: could not re-execute with $CONFIG_SHELL" >&2
141 exit 255
142 fi
143 # We don't want this to propagate to other subprocesses.
144 { _as_can_reexec=; unset _as_can_reexec;}
145 if test "x$CONFIG_SHELL" = x; then
146 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
147 then :
148 emulate sh
149 NULLCMD=:
150 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
151 # contradicts POSIX and common usage. Disable this.
152 alias -g '\${1+\"\$@\"}'='\"\$@\"'
153 setopt NO_GLOB_SUBST
154 else case e in #(
155 e) case \`(set -o) 2>/dev/null\` in #(
156 *posix*) :
157 set -o posix ;; #(
158 *) :
159 ;;
160 esac ;;
161 esac
162 fi
163 "
164 as_required="as_fn_return () { (exit \$1); }
165 as_fn_success () { as_fn_return 0; }
166 as_fn_failure () { as_fn_return 1; }
167 as_fn_ret_success () { return 0; }
168 as_fn_ret_failure () { return 1; }
169
170 exitcode=0
171 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
172 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
173 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
174 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
175 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
176 then :
177
178 else case e in #(
179 e) exitcode=1; echo positional parameters were not saved. ;;
180 esac
181 fi
182 test x\$exitcode = x0 || exit 1
183 blah=\$(echo \$(echo blah))
184 test x\"\$blah\" = xblah || exit 1
185 test -x / || exit 1"
186 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
187 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
188 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
189 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
190
191 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
192 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
193 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
194 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
195 PATH=/empty FPATH=/empty; export PATH FPATH
196 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
197 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
198 test \$(( 1 + 1 )) = 2 || exit 1"
199 if (eval "$as_required") 2>/dev/null
200 then :
201 as_have_required=yes
202 else case e in #(
203 e) as_have_required=no ;;
204 esac
205 fi
206 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
207 then :
208
209 else case e in #(
210 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214 IFS=$as_save_IFS
215 case $as_dir in #(((
216 '') as_dir=./ ;;
217 */) ;;
218 *) as_dir=$as_dir/ ;;
219 esac
220 as_found=:
221 case $as_dir in #(
222 /*)
223 for as_base in sh bash ksh sh5; do
224 # Try only shells that exist, to save several forks.
225 as_shell=$as_dir$as_base
226 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
227 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
228 then :
229 CONFIG_SHELL=$as_shell as_have_required=yes
230 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
231 then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 IFS=$as_save_IFS
240 if $as_found
241 then :
242
243 else case e in #(
244 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
245 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
246 then :
247 CONFIG_SHELL=$SHELL as_have_required=yes
248 fi ;;
249 esac
250 fi
251
252
253 if test "x$CONFIG_SHELL" != x
254 then :
255 export CONFIG_SHELL
256 # We cannot yet assume a decent shell, so we have to provide a
257 # neutralization value for shells without unset; and this also
258 # works around shells that cannot unset nonexistent variables.
259 # Preserve -v and -x to the replacement shell.
260 BASH_ENV=/dev/null
261 ENV=/dev/null
262 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
263 case $- in # ((((
264 *v*x* | *x*v* ) as_opts=-vx ;;
265 *v* ) as_opts=-v ;;
266 *x* ) as_opts=-x ;;
267 * ) as_opts= ;;
268 esac
269 case $# in # ((
270 0) exec $CONFIG_SHELL $as_opts "$as_myself" ;;
271 *) exec $CONFIG_SHELL $as_opts "$as_myself" "$@" ;;
272 esac
273 # Admittedly, this is quite paranoid, since all the known shells bail
274 # out after a failed 'exec'.
275 printf '%s\n' "$0: could not re-execute with $CONFIG_SHELL" >&2
276 exit 255
277 fi
278
279 if test x$as_have_required = xno
280 then :
281 printf '%s\n' "$0: This script requires a shell more modern than all"
282 printf '%s\n' "$0: the shells that I found on your system."
283 if test ${ZSH_VERSION+y} ; then
284 printf '%s\n' "$0: In particular, zsh $ZSH_VERSION has bugs and should"
285 printf '%s\n' "$0: be upgraded to zsh 4.3.4 or later."
286 else
287 printf '%s\n' "$0: Please tell [email protected] and
288 $0: [email protected] about your system, including any
289 $0: error possibly output before this message. Then install
290 $0: a modern shell, or manually run the script under such a
291 $0: shell if you do have one."
292 fi
293 exit 1
294 fi ;;
295 esac
296 fi
297 fi
298 SHELL=${CONFIG_SHELL-/bin/sh}
299 export SHELL
300 # Unset more variables known to interfere with behavior of common tools.
301 CLICOLOR_FORCE= GREP_OPTIONS=
302 unset CLICOLOR_FORCE GREP_OPTIONS
303
304 ## --------------------- ##
305 ## M4sh Shell Functions. ##
306 ## --------------------- ##
307 # as_fn_unset VAR
308 # ---------------
309 # Portably unset VAR.
310 as_fn_unset ()
311 {
312 { eval $1=; unset $1;}
313 }
314 as_unset=as_fn_unset
315
316
317 # as_fn_set_status STATUS
318 # -----------------------
319 # Set $? to STATUS, without forking.
320 as_fn_set_status ()
321 {
322 return $1
323 } # as_fn_set_status
324
325 # as_fn_exit STATUS
326 # -----------------
327 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
328 as_fn_exit ()
329 {
330 set +e
331 as_fn_set_status $1
332 exit $1
333 } # as_fn_exit
334
335 # as_fn_mkdir_p
336 # -------------
337 # Create "$as_dir" as a directory, including parents if necessary.
338 as_fn_mkdir_p ()
339 {
340
341 case $as_dir in #(
342 -*) as_dir=./$as_dir;;
343 esac
344 test -d "$as_dir" || eval $as_mkdir_p || {
345 as_dirs=
346 while :; do
347 case $as_dir in #(
348 *\'*) as_qdir=`printf '%s\n' "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
349 *) as_qdir=$as_dir;;
350 esac
351 as_dirs="'$as_qdir' $as_dirs"
352 as_dir=`$as_dirname -- "$as_dir" ||
353 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
354 X"$as_dir" : 'X\(//\)[^/]' \| \
355 X"$as_dir" : 'X\(//\)$' \| \
356 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
357 printf '%s\n' X"$as_dir" |
358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
359 s//\1/
360 q
361 }
362 /^X\(\/\/\)[^/].*/{
363 s//\1/
364 q
365 }
366 /^X\(\/\/\)$/{
367 s//\1/
368 q
369 }
370 /^X\(\/\).*/{
371 s//\1/
372 q
373 }
374 s/.*/./; q'`
375 test -d "$as_dir" && break
376 done
377 test -z "$as_dirs" || eval "mkdir $as_dirs"
378 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
379
380
381 } # as_fn_mkdir_p
382
383 # as_fn_executable_p FILE
384 # -----------------------
385 # Test if FILE is an executable regular file.
386 as_fn_executable_p ()
387 {
388 test -f "$1" && test -x "$1"
389 } # as_fn_executable_p
390 # as_fn_append VAR VALUE
391 # ----------------------
392 # Append the text in VALUE to the end of the definition contained in VAR. Take
393 # advantage of any shell optimizations that allow amortized linear growth over
394 # repeated appends, instead of the typical quadratic growth present in naive
395 # implementations.
396 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
397 then :
398 eval 'as_fn_append ()
399 {
400 eval $1+=\$2
401 }'
402 else case e in #(
403 e) as_fn_append ()
404 {
405 eval $1=\$$1\$2
406 } ;;
407 esac
408 fi # as_fn_append
409
410 # as_fn_arith ARG...
411 # ------------------
412 # Perform arithmetic evaluation on the ARGs, and store the result in the
413 # global $as_val. Take advantage of shells that can avoid forks. The arguments
414 # must be portable across $(()) and expr.
415 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
416 then :
417 eval 'as_fn_arith ()
418 {
419 as_val=$(( $* ))
420 }'
421 else case e in #(
422 e) as_fn_arith ()
423 {
424 as_val=`expr "$@" || test $? -eq 1`
425 } ;;
426 esac
427 fi # as_fn_arith
428
429
430 # as_fn_error STATUS ERROR [LINENO LOG_FD]
431 # ----------------------------------------
432 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
433 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
434 # script with STATUS, using 1 if that was 0.
435 as_fn_error ()
436 {
437 as_status=$1; test $as_status -eq 0 && as_status=1
438 if test "$4"; then
439 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
440 printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
441 fi
442 printf '%s\n' "$as_me: error: $2" >&2
443 as_fn_exit $as_status
444 } # as_fn_error
445
446 if expr a : '\(a\)' >/dev/null 2>&1 &&
447 test "X`expr 00001 : '.*\(...\)'`" = X001; then
448 as_expr=expr
449 else
450 as_expr=false
451 fi
452
453 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
454 as_basename=basename
455 else
456 as_basename=false
457 fi
458
459 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
460 as_dirname=dirname
461 else
462 as_dirname=false
463 fi
464
465 as_me=`$as_basename -- "$0" ||
466 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
467 X"$0" : 'X\(//\)$' \| \
468 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
469 printf '%s\n' X/"$0" |
470 sed '/^.*\/\([^/][^/]*\)\/*$/{
471 s//\1/
472 q
473 }
474 /^X\/\(\/\/\)$/{
475 s//\1/
476 q
477 }
478 /^X\/\(\/\).*/{
479 s//\1/
480 q
481 }
482 s/.*/./; q'`
483
484 # Avoid depending upon Character Ranges.
485 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
486 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
487 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
488 as_cr_digits='0123456789'
489 as_cr_alnum=$as_cr_Letters$as_cr_digits
490
491
492 as_lineno_1=$LINENO as_lineno_1a=$LINENO
493 as_lineno_2=$LINENO as_lineno_2a=$LINENO
494 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
495 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
496 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
497 sed -n '
498 p
499 /[$]LINENO/=
500 ' <$as_myself |
501 sed '
502 t clear
503 :clear
504 s/[$]LINENO.*/&-/
505 t lineno
506 b
507 :lineno
508 N
509 :loop
510 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
511 t loop
512 s/-\n.*//
513 ' >$as_me.lineno &&
514 chmod +x "$as_me.lineno" ||
515 { printf '%s\n' "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
516
517 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
518 # already done that, so ensure we don't try to do so again and fall
519 # in an infinite loop. This has already happened in practice.
520 _as_can_reexec=no; export _as_can_reexec
521 # Don't try to exec as it changes $[0], causing all sort of problems
522 # (the dirname of $[0] is not the place where we might find the
523 # original and so on. Autoconf is especially sensitive to this).
524 . "./$as_me.lineno"
525 # Exit status is that of the last command.
526 exit
527 }
528
529 rm -f conf$$ conf$$.exe conf$$.file
530 if test -d conf$$.dir; then
531 rm -f conf$$.dir/conf$$.file
532 else
533 rm -f conf$$.dir
534 mkdir conf$$.dir 2>/dev/null
535 fi
536 if (echo >conf$$.file) 2>/dev/null; then
537 if ln -s conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s='ln -s'
539 # ... but there are two gotchas:
540 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
541 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
542 # In both cases, we have to default to 'cp -pR'.
543 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
544 as_ln_s='cp -pR'
545 elif ln conf$$.file conf$$ 2>/dev/null; then
546 as_ln_s=ln
547 else
548 as_ln_s='cp -pR'
549 fi
550 else
551 as_ln_s='cp -pR'
552 fi
553 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
554 rmdir conf$$.dir 2>/dev/null
555
556 if mkdir -p . 2>/dev/null; then
557 as_mkdir_p='mkdir -p "$as_dir"'
558 else
559 test -d ./-p && rmdir ./-p
560 as_mkdir_p=false
561 fi
562
563 as_test_x='test -x'
564 as_executable_p=as_fn_executable_p
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
568 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
569
570 # Sed expression to map a string onto a valid variable name.
571 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
572 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
573
574 SHELL=${CONFIG_SHELL-/bin/sh}
575
576
577 test -n "$DJDIR" || exec 7<&0 </dev/null
578 exec 6>&1
579
580 # Name of the host.
581 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
582 # so uname gets run too.
583 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
584
585 #
586 # Initializations.
587 #
588 ac_default_prefix=/usr/local
589 ac_clean_CONFIG_STATUS=
590 ac_clean_files=
591 ac_config_libobj_dir=.
592 LIBOBJS=
593 cross_compiling=no
594 subdirs=
595 MFLAGS=
596 MAKEFLAGS=
597
598 # Identity of this package.
599 PACKAGE_NAME='lame'
600 PACKAGE_TARNAME='lame'
601 PACKAGE_VERSION='4.0'
602 PACKAGE_STRING='lame 4.0'
603 PACKAGE_BUGREPORT='[email protected]'
604 PACKAGE_URL=''
605
606 ac_unique_file="libmp3lame/lame.c"
607 # Factoring default headers for most tests.
608 ac_includes_default="\
609 #include <stddef.h>
610 #ifdef HAVE_STDIO_H
611 # include <stdio.h>
612 #endif
613 #ifdef HAVE_STDLIB_H
614 # include <stdlib.h>
615 #endif
616 #ifdef HAVE_STRING_H
617 # include <string.h>
618 #endif
619 #ifdef HAVE_INTTYPES_H
620 # include <inttypes.h>
621 #endif
622 #ifdef HAVE_STDINT_H
623 # include <stdint.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_SYS_TYPES_H
629 # include <sys/types.h>
630 #endif
631 #ifdef HAVE_SYS_STAT_H
632 # include <sys/stat.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
637
638 ac_header_c_list=
639 : ${enable_year2038:=no}
640 ac_subst_vars='am__EXEEXT_FALSE
641 am__EXEEXT_TRUE
642 LTLIBOBJS
643 LIBOBJS
644 CONFIG_DEFS
645 CPUCCODE
646 CPUTYPE
647 WITH_MP3RTP
648 WITH_MP3X
649 WITH_FRONTEND
650 RM_F
651 MAKEDEP
652 NASM_FORMAT
653 LIB_MINOR_VERSION
654 LIB_MAJOR_VERSION
655 LDADD
656 CONFIG_MATH_LIB
657 LIBMP3LAME_LDADD
658 FRONTEND_LDADD
659 FRONTEND_CFLAGS
660 FRONTEND_LDFLAGS
661 INCLUDES
662 HAVE_NASM_FALSE
663 HAVE_NASM_TRUE
664 NASM
665 WITH_VECTOR_FALSE
666 WITH_VECTOR_TRUE
667 WITH_XMM_FALSE
668 WITH_XMM_TRUE
669 LIB_WITH_DECODER_FALSE
670 LIB_WITH_DECODER_TRUE
671 mpg123_LIBS
672 mpg123_CFLAGS
673 SNDFILE_LIBS
674 SNDFILE_CFLAGS
675 GTK_LIBS
676 GTK_CFLAGS
677 GTK_CONFIG
678 LTLIBICONV
679 LIBICONV
680 CPP
681 ALLOCA
682 LIBTOOL_DEPS
683 LT_SYS_LIBRARY_PATH
684 OTOOL64
685 OTOOL
686 LIPO
687 NMEDIT
688 DSYMUTIL
689 MANIFEST_TOOL
690 RANLIB
691 ac_ct_AR
692 AR
693 DLLTOOL
694 OBJDUMP
695 FILECMD
696 LN_S
697 NM
698 ac_ct_DUMPBIN
699 DUMPBIN
700 LD
701 FGREP
702 EGREP
703 GREP
704 SED
705 LIBTOOL
706 DOT
707 PKG_CONFIG_LIBDIR
708 PKG_CONFIG_PATH
709 PKG_CONFIG
710 MAINT
711 MAINTAINER_MODE_FALSE
712 MAINTAINER_MODE_TRUE
713 am__xargs_n
714 am__rm_f_notfound
715 AM_BACKSLASH
716 AM_DEFAULT_VERBOSITY
717 AM_DEFAULT_V
718 AM_V
719 CSCOPE
720 ETAGS
721 CTAGS
722 am__fastdepCC_FALSE
723 am__fastdepCC_TRUE
724 CCDEPMODE
725 am__nodep
726 AMDEPBACKSLASH
727 AMDEP_FALSE
728 AMDEP_TRUE
729 am__include
730 DEPDIR
731 am__untar
732 am__tar
733 AMTAR
734 am__leading_dot
735 SET_MAKE
736 AWK
737 mkdir_p
738 MKDIR_P
739 INSTALL_STRIP_PROGRAM
740 STRIP
741 install_sh
742 MAKEINFO
743 AUTOHEADER
744 AUTOMAKE
745 AUTOCONF
746 ACLOCAL
747 VERSION
748 PACKAGE
749 CYGPATH_W
750 am__isrc
751 INSTALL_DATA
752 INSTALL_SCRIPT
753 INSTALL_PROGRAM
754 host_os
755 host_vendor
756 host_cpu
757 host
758 build_os
759 build_vendor
760 build_cpu
761 build
762 OBJEXT
763 EXEEXT
764 ac_ct_CC
765 CPPFLAGS
766 LDFLAGS
767 CFLAGS
768 CC
769 ECHO_T
770 ECHO_N
771 ECHO_C
772 target_alias
773 host_alias
774 build_alias
775 LIBS
776 DEFS
777 mandir
778 localedir
779 libdir
780 psdir
781 pdfdir
782 dvidir
783 htmldir
784 infodir
785 docdir
786 oldincludedir
787 includedir
788 runstatedir
789 localstatedir
790 sharedstatedir
791 sysconfdir
792 datadir
793 datarootdir
794 libexecdir
795 sbindir
796 bindir
797 program_transform_name
798 prefix
799 exec_prefix
800 PACKAGE_URL
801 PACKAGE_BUGREPORT
802 PACKAGE_STRING
803 PACKAGE_VERSION
804 PACKAGE_TARNAME
805 PACKAGE_NAME
806 PATH_SEPARATOR
807 SHELL
808 am__quote'
809 ac_subst_files=''
810 ac_user_opts='
811 enable_option_checking
812 enable_dependency_tracking
813 enable_silent_rules
814 enable_maintainer_mode
815 with_dot
816 enable_shared
817 enable_static
818 enable_pic
819 with_pic
820 enable_fast_install
821 enable_aix_soname
822 with_aix_soname
823 with_gnu_ld
824 with_sysroot
825 enable_libtool_lock
826 with_dmalloc
827 enable_largefile
828 enable_nasm
829 enable_ieeehack
830 enable_rpath
831 with_libiconv_prefix
832 enable_cpml
833 with_gtk_prefix
834 with_gtk_exec_prefix
835 enable_gtktest
836 enable_efence
837 with_fileio
838 enable_analyzer_hooks
839 enable_decoder
840 enable_frontend
841 enable_mp3x
842 enable_mp3rtp
843 enable_ipv6
844 enable_dynamic_frontends
845 enable_expopt
846 enable_debug
847 enable_year2038
848 '
849 ac_precious_vars='build_alias
850 host_alias
851 target_alias
852 CC
853 CFLAGS
854 LDFLAGS
855 LIBS
856 CPPFLAGS
857 PKG_CONFIG
858 PKG_CONFIG_PATH
859 PKG_CONFIG_LIBDIR
860 LT_SYS_LIBRARY_PATH
861 CPP
862 SNDFILE_CFLAGS
863 SNDFILE_LIBS
864 mpg123_CFLAGS
865 mpg123_LIBS'
866
867
868 # Initialize some variables set by options.
869 ac_init_help=
870 ac_init_version=false
871 ac_unrecognized_opts=
872 ac_unrecognized_sep=
873 # The variables have the same names as the options, with
874 # dashes changed to underlines.
875 cache_file=/dev/null
876 exec_prefix=NONE
877 no_create=
878 no_recursion=
879 prefix=NONE
880 program_prefix=NONE
881 program_suffix=NONE
882 program_transform_name=s,x,x,
883 silent=
884 site=
885 srcdir=
886 verbose=
887 x_includes=NONE
888 x_libraries=NONE
889
890 # Installation directory options.
891 # These are left unexpanded so users can "make install exec_prefix=/foo"
892 # and all the variables that are supposed to be based on exec_prefix
893 # by default will actually change.
894 # Use braces instead of parens because sh, perl, etc. also accept them.
895 # (The list follows the same order as the GNU Coding Standards.)
896 bindir='${exec_prefix}/bin'
897 sbindir='${exec_prefix}/sbin'
898 libexecdir='${exec_prefix}/libexec'
899 datarootdir='${prefix}/share'
900 datadir='${datarootdir}'
901 sysconfdir='${prefix}/etc'
902 sharedstatedir='${prefix}/com'
903 localstatedir='${prefix}/var'
904 runstatedir='${localstatedir}/run'
905 includedir='${prefix}/include'
906 oldincludedir='/usr/include'
907 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
908 infodir='${datarootdir}/info'
909 htmldir='${docdir}'
910 dvidir='${docdir}'
911 pdfdir='${docdir}'
912 psdir='${docdir}'
913 libdir='${exec_prefix}/lib'
914 localedir='${datarootdir}/locale'
915 mandir='${datarootdir}/man'
916
917 ac_prev=
918 ac_dashdash=
919 for ac_option
920 do
921 # If the previous option needs an argument, assign it.
922 if test -n "$ac_prev"; then
923 eval $ac_prev=\$ac_option
924 ac_prev=
925 continue
926 fi
927
928 case $ac_option in
929 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
930 *=) ac_optarg= ;;
931 *) ac_optarg=yes ;;
932 esac
933
934 case $ac_dashdash$ac_option in
935 --)
936 ac_dashdash=yes ;;
937
938 -bindir | --bindir | --bindi | --bind | --bin | --bi)
939 ac_prev=bindir ;;
940 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
941 bindir=$ac_optarg ;;
942
943 -build | --build | --buil | --bui | --bu)
944 ac_prev=build_alias ;;
945 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
946 build_alias=$ac_optarg ;;
947
948 -cache-file | --cache-file | --cache-fil | --cache-fi \
949 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
950 ac_prev=cache_file ;;
951 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
952 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
953 cache_file=$ac_optarg ;;
954
955 --config-cache | -C)
956 cache_file=config.cache ;;
957
958 -datadir | --datadir | --datadi | --datad)
959 ac_prev=datadir ;;
960 -datadir=* | --datadir=* | --datadi=* | --datad=*)
961 datadir=$ac_optarg ;;
962
963 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
964 | --dataroo | --dataro | --datar)
965 ac_prev=datarootdir ;;
966 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
967 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
968 datarootdir=$ac_optarg ;;
969
970 -disable-* | --disable-*)
971 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
972 # Reject names that are not valid shell variable names.
973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
974 as_fn_error $? "invalid feature name: '$ac_useropt'"
975 ac_useropt_orig=$ac_useropt
976 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`
977 case $ac_user_opts in
978 *"
979 "enable_$ac_useropt"
980 "*) ;;
981 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
982 ac_unrecognized_sep=', ';;
983 esac
984 eval enable_$ac_useropt=no ;;
985
986 -docdir | --docdir | --docdi | --doc | --do)
987 ac_prev=docdir ;;
988 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
989 docdir=$ac_optarg ;;
990
991 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
992 ac_prev=dvidir ;;
993 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
994 dvidir=$ac_optarg ;;
995
996 -enable-* | --enable-*)
997 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
998 # Reject names that are not valid shell variable names.
999 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1000 as_fn_error $? "invalid feature name: '$ac_useropt'"
1001 ac_useropt_orig=$ac_useropt
1002 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`
1003 case $ac_user_opts in
1004 *"
1005 "enable_$ac_useropt"
1006 "*) ;;
1007 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1008 ac_unrecognized_sep=', ';;
1009 esac
1010 eval enable_$ac_useropt=\$ac_optarg ;;
1011
1012 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1013 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1014 | --exec | --exe | --ex)
1015 ac_prev=exec_prefix ;;
1016 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1017 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1018 | --exec=* | --exe=* | --ex=*)
1019 exec_prefix=$ac_optarg ;;
1020
1021 -gas | --gas | --ga | --g)
1022 # Obsolete; use --with-gas.
1023 with_gas=yes ;;
1024
1025 -help | --help | --hel | --he | -h)
1026 ac_init_help=long ;;
1027 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1028 ac_init_help=recursive ;;
1029 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1030 ac_init_help=short ;;
1031
1032 -host | --host | --hos | --ho)
1033 ac_prev=host_alias ;;
1034 -host=* | --host=* | --hos=* | --ho=*)
1035 host_alias=$ac_optarg ;;
1036
1037 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1038 ac_prev=htmldir ;;
1039 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1040 | --ht=*)
1041 htmldir=$ac_optarg ;;
1042
1043 -includedir | --includedir | --includedi | --included | --include \
1044 | --includ | --inclu | --incl | --inc)
1045 ac_prev=includedir ;;
1046 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1047 | --includ=* | --inclu=* | --incl=* | --inc=*)
1048 includedir=$ac_optarg ;;
1049
1050 -infodir | --infodir | --infodi | --infod | --info | --inf)
1051 ac_prev=infodir ;;
1052 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1053 infodir=$ac_optarg ;;
1054
1055 -libdir | --libdir | --libdi | --libd)
1056 ac_prev=libdir ;;
1057 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1058 libdir=$ac_optarg ;;
1059
1060 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1061 | --libexe | --libex | --libe)
1062 ac_prev=libexecdir ;;
1063 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1064 | --libexe=* | --libex=* | --libe=*)
1065 libexecdir=$ac_optarg ;;
1066
1067 -localedir | --localedir | --localedi | --localed | --locale)
1068 ac_prev=localedir ;;
1069 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1070 localedir=$ac_optarg ;;
1071
1072 -localstatedir | --localstatedir | --localstatedi | --localstated \
1073 | --localstate | --localstat | --localsta | --localst | --locals)
1074 ac_prev=localstatedir ;;
1075 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1076 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1077 localstatedir=$ac_optarg ;;
1078
1079 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1080 ac_prev=mandir ;;
1081 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1082 mandir=$ac_optarg ;;
1083
1084 -nfp | --nfp | --nf)
1085 # Obsolete; use --without-fp.
1086 with_fp=no ;;
1087
1088 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1089 | --no-cr | --no-c | -n)
1090 no_create=yes ;;
1091
1092 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1093 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1094 no_recursion=yes ;;
1095
1096 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1097 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1098 | --oldin | --oldi | --old | --ol | --o)
1099 ac_prev=oldincludedir ;;
1100 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1101 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1102 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1103 oldincludedir=$ac_optarg ;;
1104
1105 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1106 ac_prev=prefix ;;
1107 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1108 prefix=$ac_optarg ;;
1109
1110 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1111 | --program-pre | --program-pr | --program-p)
1112 ac_prev=program_prefix ;;
1113 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1114 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1115 program_prefix=$ac_optarg ;;
1116
1117 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1118 | --program-suf | --program-su | --program-s)
1119 ac_prev=program_suffix ;;
1120 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1121 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1122 program_suffix=$ac_optarg ;;
1123
1124 -program-transform-name | --program-transform-name \
1125 | --program-transform-nam | --program-transform-na \
1126 | --program-transform-n | --program-transform- \
1127 | --program-transform | --program-transfor \
1128 | --program-transfo | --program-transf \
1129 | --program-trans | --program-tran \
1130 | --progr-tra | --program-tr | --program-t)
1131 ac_prev=program_transform_name ;;
1132 -program-transform-name=* | --program-transform-name=* \
1133 | --program-transform-nam=* | --program-transform-na=* \
1134 | --program-transform-n=* | --program-transform-=* \
1135 | --program-transform=* | --program-transfor=* \
1136 | --program-transfo=* | --program-transf=* \
1137 | --program-trans=* | --program-tran=* \
1138 | --progr-tra=* | --program-tr=* | --program-t=*)
1139 program_transform_name=$ac_optarg ;;
1140
1141 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1142 ac_prev=pdfdir ;;
1143 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1144 pdfdir=$ac_optarg ;;
1145
1146 -psdir | --psdir | --psdi | --psd | --ps)
1147 ac_prev=psdir ;;
1148 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1149 psdir=$ac_optarg ;;
1150
1151 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1152 | -silent | --silent | --silen | --sile | --sil)
1153 silent=yes ;;
1154
1155 -runstatedir | --runstatedir | --runstatedi | --runstated \
1156 | --runstate | --runstat | --runsta | --runst | --runs \
1157 | --run | --ru | --r)
1158 ac_prev=runstatedir ;;
1159 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1160 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1161 | --run=* | --ru=* | --r=*)
1162 runstatedir=$ac_optarg ;;
1163
1164 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1165 ac_prev=sbindir ;;
1166 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1167 | --sbi=* | --sb=*)
1168 sbindir=$ac_optarg ;;
1169
1170 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1171 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1172 | --sharedst | --shareds | --shared | --share | --shar \
1173 | --sha | --sh)
1174 ac_prev=sharedstatedir ;;
1175 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1176 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1177 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1178 | --sha=* | --sh=*)
1179 sharedstatedir=$ac_optarg ;;
1180
1181 -site | --site | --sit)
1182 ac_prev=site ;;
1183 -site=* | --site=* | --sit=*)
1184 site=$ac_optarg ;;
1185
1186 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1187 ac_prev=srcdir ;;
1188 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1189 srcdir=$ac_optarg ;;
1190
1191 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1192 | --syscon | --sysco | --sysc | --sys | --sy)
1193 ac_prev=sysconfdir ;;
1194 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1195 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1196 sysconfdir=$ac_optarg ;;
1197
1198 -target | --target | --targe | --targ | --tar | --ta | --t)
1199 ac_prev=target_alias ;;
1200 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1201 target_alias=$ac_optarg ;;
1202
1203 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1204 verbose=yes ;;
1205
1206 -version | --version | --versio | --versi | --vers | -V)
1207 ac_init_version=: ;;
1208
1209 -with-* | --with-*)
1210 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1211 # Reject names that are not valid shell variable names.
1212 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1213 as_fn_error $? "invalid package name: '$ac_useropt'"
1214 ac_useropt_orig=$ac_useropt
1215 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`
1216 case $ac_user_opts in
1217 *"
1218 "with_$ac_useropt"
1219 "*) ;;
1220 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1221 ac_unrecognized_sep=', ';;
1222 esac
1223 eval with_$ac_useropt=\$ac_optarg ;;
1224
1225 -without-* | --without-*)
1226 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1227 # Reject names that are not valid shell variable names.
1228 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1229 as_fn_error $? "invalid package name: '$ac_useropt'"
1230 ac_useropt_orig=$ac_useropt
1231 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`
1232 case $ac_user_opts in
1233 *"
1234 "with_$ac_useropt"
1235 "*) ;;
1236 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1237 ac_unrecognized_sep=', ';;
1238 esac
1239 eval with_$ac_useropt=no ;;
1240
1241 --x)
1242 # Obsolete; use --with-x.
1243 with_x=yes ;;
1244
1245 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1246 | --x-incl | --x-inc | --x-in | --x-i)
1247 ac_prev=x_includes ;;
1248 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1249 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1250 x_includes=$ac_optarg ;;
1251
1252 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1253 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1254 ac_prev=x_libraries ;;
1255 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1256 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1257 x_libraries=$ac_optarg ;;
1258
1259 -*) as_fn_error $? "unrecognized option: '$ac_option'
1260 Try '$0 --help' for more information"
1261 ;;
1262
1263 *=*)
1264 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1265 # Reject names that are not valid shell variable names.
1266 case $ac_envvar in #(
1267 '' | [0-9]* | *[!_$as_cr_alnum]* )
1268 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1269 esac
1270 eval $ac_envvar=\$ac_optarg
1271 export $ac_envvar ;;
1272
1273 *)
1274 # FIXME: should be removed in autoconf 3.0.
1275 printf '%s\n' "$as_me: WARNING: you should use --build, --host, --target" >&2
1276 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1277 printf '%s\n' "$as_me: WARNING: invalid host type: $ac_option" >&2
1278 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1279 ;;
1280
1281 esac
1282 done
1283
1284 if test -n "$ac_prev"; then
1285 ac_option=--`printf '%s\n' $ac_prev | sed 's/_/-/g'`
1286 as_fn_error $? "missing argument to $ac_option"
1287 fi
1288
1289 if test -n "$ac_unrecognized_opts"; then
1290 case $enable_option_checking in
1291 no) ;;
1292 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1293 *) printf '%s\n' "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1294 esac
1295 fi
1296
1297 # Check all directory arguments for consistency.
1298 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1299 datadir sysconfdir sharedstatedir localstatedir includedir \
1300 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1301 libdir localedir mandir runstatedir
1302 do
1303 eval ac_val=\$$ac_var
1304 # Remove trailing slashes.
1305 case $ac_val in
1306 */ )
1307 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1308 eval $ac_var=\$ac_val;;
1309 esac
1310 # Be sure to have absolute directory names.
1311 case $ac_val in
1312 [\\/$]* | ?:[\\/]* ) continue;;
1313 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1314 esac
1315 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1316 done
1317
1318 # There might be people who depend on the old broken behavior: '$host'
1319 # used to hold the argument of --host etc.
1320 # FIXME: To remove some day.
1321 build=$build_alias
1322 host=$host_alias
1323 target=$target_alias
1324
1325 # FIXME: To remove some day.
1326 if test "x$host_alias" != x; then
1327 if test "x$build_alias" = x; then
1328 cross_compiling=maybe
1329 elif test "x$build_alias" != "x$host_alias"; then
1330 cross_compiling=yes
1331 fi
1332 fi
1333
1334 ac_tool_prefix=
1335 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1336
1337 test "$silent" = yes && exec 6>/dev/null
1338
1339
1340 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1341 ac_ls_di=`ls -di .` &&
1342 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1343 as_fn_error $? "working directory cannot be determined"
1344 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1345 as_fn_error $? "pwd does not report name of working directory"
1346
1347
1348 # Find the source files, if location was not specified.
1349 if test -z "$srcdir"; then
1350 ac_srcdir_defaulted=yes
1351 # Try the directory containing this script, then the parent directory.
1352 ac_confdir=`$as_dirname -- "$as_myself" ||
1353 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1354 X"$as_myself" : 'X\(//\)[^/]' \| \
1355 X"$as_myself" : 'X\(//\)$' \| \
1356 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1357 printf '%s\n' X"$as_myself" |
1358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1359 s//\1/
1360 q
1361 }
1362 /^X\(\/\/\)[^/].*/{
1363 s//\1/
1364 q
1365 }
1366 /^X\(\/\/\)$/{
1367 s//\1/
1368 q
1369 }
1370 /^X\(\/\).*/{
1371 s//\1/
1372 q
1373 }
1374 s/.*/./; q'`
1375 srcdir=$ac_confdir
1376 if test ! -r "$srcdir/$ac_unique_file"; then
1377 srcdir=..
1378 fi
1379 else
1380 ac_srcdir_defaulted=no
1381 fi
1382 if test ! -r "$srcdir/$ac_unique_file"; then
1383 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1384 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1385 fi
1386 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1387 ac_abs_confdir=`(
1388 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1389 pwd)`
1390 # When building in place, set srcdir=.
1391 if test "$ac_abs_confdir" = "$ac_pwd"; then
1392 srcdir=.
1393 fi
1394 # Remove unnecessary trailing slashes from srcdir.
1395 # Double slashes in file names in object file debugging info
1396 # mess up M-x gdb in Emacs.
1397 case $srcdir in
1398 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1399 esac
1400 for ac_var in $ac_precious_vars; do
1401 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1402 eval ac_env_${ac_var}_value=\$${ac_var}
1403 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1404 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1405 done
1406
1407 #
1408 # Report the --help message.
1409 #
1410 if test "$ac_init_help" = "long"; then
1411 # Omit some internal or obsolete options to make the list less imposing.
1412 # This message is too long to be a string in the A/UX 3.1 sh.
1413 cat <<_ACEOF
1414 'configure' configures lame 4.0 to adapt to many kinds of systems.
1415
1416 Usage: $0 [OPTION]... [VAR=VALUE]...
1417
1418 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1419 VAR=VALUE. See below for descriptions of some of the useful variables.
1420
1421 Defaults for the options are specified in brackets.
1422
1423 Configuration:
1424 -h, --help display this help and exit
1425 --help=short display options specific to this package
1426 --help=recursive display the short help of all the included packages
1427 -V, --version display version information and exit
1428 -q, --quiet, --silent do not print 'checking ...' messages
1429 --cache-file=FILE cache test results in FILE [disabled]
1430 -C, --config-cache alias for '--cache-file=config.cache'
1431 -n, --no-create do not create output files
1432 --srcdir=DIR find the sources in DIR [configure dir or '..']
1433
1434 Installation directories:
1435 --prefix=PREFIX install architecture-independent files in PREFIX
1436 [$ac_default_prefix]
1437 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1438 [PREFIX]
1439
1440 By default, 'make install' will install all the files in
1441 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1442 an installation prefix other than '$ac_default_prefix' using '--prefix',
1443 for instance '--prefix=\$HOME'.
1444
1445 For better control, use the options below.
1446
1447 Fine tuning of the installation directories:
1448 --bindir=DIR user executables [EPREFIX/bin]
1449 --sbindir=DIR system admin executables [EPREFIX/sbin]
1450 --libexecdir=DIR program executables [EPREFIX/libexec]
1451 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1452 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1453 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1454 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1455 --libdir=DIR object code libraries [EPREFIX/lib]
1456 --includedir=DIR C header files [PREFIX/include]
1457 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1458 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1459 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1460 --infodir=DIR info documentation [DATAROOTDIR/info]
1461 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1462 --mandir=DIR man documentation [DATAROOTDIR/man]
1463 --docdir=DIR documentation root [DATAROOTDIR/doc/lame]
1464 --htmldir=DIR html documentation [DOCDIR]
1465 --dvidir=DIR dvi documentation [DOCDIR]
1466 --pdfdir=DIR pdf documentation [DOCDIR]
1467 --psdir=DIR ps documentation [DOCDIR]
1468 _ACEOF
1469
1470 cat <<\_ACEOF
1471
1472 Program names:
1473 --program-prefix=PREFIX prepend PREFIX to installed program names
1474 --program-suffix=SUFFIX append SUFFIX to installed program names
1475 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1476
1477 System types:
1478 --build=BUILD configure for building on BUILD [guessed]
1479 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1480 _ACEOF
1481 fi
1482
1483 if test -n "$ac_init_help"; then
1484 case $ac_init_help in
1485 short | recursive ) echo "Configuration of lame 4.0:";;
1486 esac
1487 cat <<\_ACEOF
1488
1489 Optional Features:
1490 --disable-option-checking ignore unrecognized --enable/--with options
1491 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1492 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1493 --enable-dependency-tracking
1494 do not reject slow dependency extractors
1495 --disable-dependency-tracking
1496 speeds up one-time build
1497 --enable-silent-rules less verbose build output (undo: "make V=1")
1498 --disable-silent-rules verbose build output (undo: "make V=0")
1499 --enable-maintainer-mode
1500 enable make rules and dependencies not useful (and
1501 sometimes confusing) to the casual installer
1502 --enable-shared[=PKGS] build shared libraries [default=yes]
1503 --enable-static[=PKGS] build static libraries [default=yes]
1504 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1505 both]
1506 --enable-fast-install[=PKGS]
1507 optimize for fast installation [default=yes]
1508 --enable-aix-soname=aix|svr4|both
1509 shared library versioning (aka "SONAME") variant to
1510 provide on AIX, [default=aix].
1511 --disable-libtool-lock avoid locking (might break parallel builds)
1512 --disable-largefile omit support for large files
1513 --enable-nasm Allow the use of nasm if available
1514 --enable-ieeehack Enable Takhiros IEEE754 hack (speed improvement for old CPUs)
1515 --disable-rpath do not hardcode runtime library paths
1516 --disable-cpml Do not use Compaq's fast Math Library
1517 --disable-gtktest Do not try to compile and run a test GTK program
1518 --enable-efence Use ElectricFence for malloc debugging
1519 --disable-analyzer-hooks Exclude analyzer hooks
1520 --disable-decoder Exclude mpg123 decoder
1521 --disable-frontend Do not build the lame executable default=build
1522 --enable-mp3x Build GTK frame analyzer default=no
1523 --enable-mp3rtp Build mp3rtp default=no
1524 --disable-ipv6 Disable IPV6 support(By default ipv6 (with ipv4)
1525 support is enabled)
1526 --enable-dynamic-frontends Link frontends against shared libraries default=no
1527 --enable-expopt=full,norm Whether to enable experimental optimizations
1528 default=no
1529 --enable-debug=alot,norm Enable debugging (disables optimizations)
1530 default=no
1531 --enable-year2038 support timestamps after 2038
1532
1533 Optional Packages:
1534 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1535 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1536 --with-dot=PATH path to Graphviz's dot tool, used by Doxygen for
1537 diagrams (default: autodetect on PATH)
1538 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1539 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1540 compiler's sysroot if not specified).
1541 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
1542 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1543 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1544 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1545 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1546 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1547 --with-fileio=lame Use lame's internal file io routines default
1548 =sndfile Use Erik de Castro Lopo's libsndfile
1549 (no stdin possible currently)
1550
1551 Some influential environment variables:
1552 CC C compiler command
1553 CFLAGS C compiler flags
1554 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1555 nonstandard directory <lib dir>
1556 LIBS libraries to pass to the linker, e.g. -l<library>
1557 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1558 you have headers in a nonstandard directory <include dir>
1559 PKG_CONFIG path to pkg-config utility
1560 PKG_CONFIG_PATH
1561 directories to add to pkg-config's search path
1562 PKG_CONFIG_LIBDIR
1563 path overriding pkg-config's built-in search path
1564 LT_SYS_LIBRARY_PATH
1565 User-defined run-time library search path.
1566 CPP C preprocessor
1567 SNDFILE_CFLAGS
1568 C compiler flags for SNDFILE, overriding pkg-config
1569 SNDFILE_LIBS
1570 linker flags for SNDFILE, overriding pkg-config
1571 mpg123_CFLAGS
1572 C compiler flags for mpg123, overriding pkg-config
1573 mpg123_LIBS linker flags for mpg123, overriding pkg-config
1574
1575 Use these variables to override the choices made by 'configure' or to help
1576 it to find libraries and programs with nonstandard names/locations.
1577
1578 Report bugs to <[email protected]>.
1579 _ACEOF
1580 ac_status=$?
1581 fi
1582
1583 if test "$ac_init_help" = "recursive"; then
1584 # If there are subdirs, report their specific --help.
1585 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1586 test -d "$ac_dir" ||
1587 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1588 continue
1589 ac_builddir=.
1590
1591 case "$ac_dir" in
1592 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1593 *)
1594 ac_dir_suffix=/`printf '%s\n' "$ac_dir" | sed 's|^\.[\\/]||'`
1595 # A ".." for each directory in $ac_dir_suffix.
1596 ac_top_builddir_sub=`printf '%s\n' "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1597 case $ac_top_builddir_sub in
1598 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1599 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1600 esac ;;
1601 esac
1602 ac_abs_top_builddir=$ac_pwd
1603 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1604 # for backward compatibility:
1605 ac_top_builddir=$ac_top_build_prefix
1606
1607 case $srcdir in
1608 .) # We are building in place.
1609 ac_srcdir=.
1610 ac_top_srcdir=$ac_top_builddir_sub
1611 ac_abs_top_srcdir=$ac_pwd ;;
1612 [\\/]* | ?:[\\/]* ) # Absolute name.
1613 ac_srcdir=$srcdir$ac_dir_suffix;
1614 ac_top_srcdir=$srcdir
1615 ac_abs_top_srcdir=$srcdir ;;
1616 *) # Relative name.
1617 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1618 ac_top_srcdir=$ac_top_build_prefix$srcdir
1619 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1620 esac
1621 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1622
1623 cd "$ac_dir" || { ac_status=$?; continue; }
1624 # Check for configure.gnu first; this name is used for a wrapper for
1625 # Metaconfig's "Configure" on case-insensitive file systems.
1626 if test -f "$ac_srcdir/configure.gnu"; then
1627 echo &&
1628 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1629 elif test -f "$ac_srcdir/configure"; then
1630 echo &&
1631 $SHELL "$ac_srcdir/configure" --help=recursive
1632 else
1633 printf '%s\n' "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1634 fi || ac_status=$?
1635 cd "$ac_pwd" || { ac_status=$?; break; }
1636 done
1637 fi
1638
1639 test -n "$ac_init_help" && exit $ac_status
1640 if $ac_init_version; then
1641 cat <<\_ACEOF
1642 lame configure 4.0
1643 generated by GNU Autoconf 2.73
1644
1645 Copyright (C) 2026 Free Software Foundation, Inc.
1646 This configure script is free software; the Free Software Foundation
1647 gives unlimited permission to copy, distribute and modify it.
1648 _ACEOF
1649 exit
1650 fi
1651
1652 ## ------------------------ ##
1653 ## Autoconf initialization. ##
1654 ## ------------------------ ##
1655
1656 # ac_fn_c_try_compile LINENO
1657 # --------------------------
1658 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1659 ac_fn_c_try_compile ()
1660 {
1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662 rm -f conftest.$ac_objext conftest.beam
1663 if { { ac_try="$ac_compile"
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_compile") 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_objext
1682 then :
1683 ac_retval=0
1684 else case e in #(
1685 e) printf '%s\n' "$as_me: failed program was:" >&5
1686 sed 's/^/| /' conftest.$ac_ext >&5
1687
1688 ac_retval=1 ;;
1689 esac
1690 fi
1691 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692 as_fn_set_status $ac_retval
1693
1694 } # ac_fn_c_try_compile
1695
1696 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1697 # -------------------------------------------------------
1698 # Tests whether HEADER exists and can be compiled using the include files in
1699 # INCLUDES, setting the cache variable VAR accordingly.
1700 ac_fn_c_check_header_compile ()
1701 {
1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1704 printf %s "checking for $2... " >&6; }
1705 if eval test \${$3+y}
1706 then :
1707 printf %s "(cached) " >&6
1708 else case e in #(
1709 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1710 /* end confdefs.h. */
1711 $4
1712 #include <$2>
1713 _ACEOF
1714 if ac_fn_c_try_compile "$LINENO"
1715 then :
1716 eval "$3=yes"
1717 else case e in #(
1718 e) eval "$3=no" ;;
1719 esac
1720 fi
1721 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1722 esac
1723 fi
1724 eval ac_res=\$$3
1725 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1726 printf '%s\n' "$ac_res" >&6; }
1727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728
1729 } # ac_fn_c_check_header_compile
1730
1731 # ac_fn_c_try_link LINENO
1732 # -----------------------
1733 # Try to link conftest.$ac_ext, and return whether this succeeded.
1734 ac_fn_c_try_link ()
1735 {
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1738 if { { ac_try="$ac_link"
1739 case "(($ac_try" in
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1742 esac
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 printf '%s\n' "$ac_try_echo"; } >&5
1745 (eval "$ac_link") 2>conftest.err
1746 ac_status=$?
1747 if test -s conftest.err; then
1748 grep -v '^ *+' conftest.err >conftest.er1
1749 cat conftest.er1 >&5
1750 mv -f conftest.er1 conftest.err
1751 fi
1752 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753 test $ac_status = 0; } && {
1754 test -z "$ac_c_werror_flag" ||
1755 test ! -s conftest.err
1756 } && test -s conftest$ac_exeext && {
1757 test "$cross_compiling" = yes ||
1758 test -x conftest$ac_exeext
1759 }
1760 then :
1761 ac_retval=0
1762 else case e in #(
1763 e) printf '%s\n' "$as_me: failed program was:" >&5
1764 sed 's/^/| /' conftest.$ac_ext >&5
1765
1766 ac_retval=1 ;;
1767 esac
1768 fi
1769 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1770 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1771 # interfere with the next link command; also delete a directory that is
1772 # left behind by Apple's compiler. We do this before executing the actions.
1773 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1775 as_fn_set_status $ac_retval
1776
1777 } # ac_fn_c_try_link
1778
1779 # ac_fn_c_check_func LINENO FUNC VAR
1780 # ----------------------------------
1781 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1782 ac_fn_c_check_func ()
1783 {
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1786 printf %s "checking for $2... " >&6; }
1787 if eval test \${$3+y}
1788 then :
1789 printf %s "(cached) " >&6
1790 else case e in #(
1791 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1792 /* end confdefs.h. */
1793 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1795 #define $2 innocuous_$2
1796
1797 /* System header to define __stub macros and hopefully few prototypes,
1798 which can conflict with char $2 (void); below. */
1799
1800 #include <limits.h>
1801 #undef $2
1802
1803 /* Override any GCC internal prototype to avoid an error.
1804 Use char because int might match the return type of a GCC
1805 builtin and then its argument prototype would still apply. */
1806 #ifdef __cplusplus
1807 extern "C"
1808 #endif
1809 char $2 (void);
1810 /* The GNU C library defines this for functions which it implements
1811 to always fail with ENOSYS. Some functions are actually named
1812 something starting with __ and the normal name is an alias. */
1813 #if defined __stub_$2 || defined __stub___$2
1814 choke me
1815 #endif
1816
1817 int
1818 main (void)
1819 {
1820 return $2 ();
1821 ;
1822 return 0;
1823 }
1824 _ACEOF
1825 if ac_fn_c_try_link "$LINENO"
1826 then :
1827 eval "$3=yes"
1828 else case e in #(
1829 e) eval "$3=no" ;;
1830 esac
1831 fi
1832 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1833 conftest$ac_exeext conftest.$ac_ext ;;
1834 esac
1835 fi
1836 eval ac_res=\$$3
1837 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1838 printf '%s\n' "$ac_res" >&6; }
1839 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1840
1841 } # ac_fn_c_check_func
1842
1843 # ac_fn_c_try_run LINENO
1844 # ----------------------
1845 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1846 # executables *can* be run.
1847 ac_fn_c_try_run ()
1848 {
1849 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850 if { { ac_try="$ac_link"
1851 case "(($ac_try" in
1852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1853 *) ac_try_echo=$ac_try;;
1854 esac
1855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1856 printf '%s\n' "$ac_try_echo"; } >&5
1857 (eval "$ac_link") 2>&5
1858 ac_status=$?
1859 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1861 { { case "(($ac_try" in
1862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1863 *) ac_try_echo=$ac_try;;
1864 esac
1865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866 printf '%s\n' "$ac_try_echo"; } >&5
1867 (eval "$ac_try") 2>&5
1868 ac_status=$?
1869 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1870 test $ac_status = 0; }; }
1871 then :
1872 ac_retval=0
1873 else case e in #(
1874 e) printf '%s\n' "$as_me: program exited with status $ac_status" >&5
1875 printf '%s\n' "$as_me: failed program was:" >&5
1876 sed 's/^/| /' conftest.$ac_ext >&5
1877
1878 ac_retval=$ac_status ;;
1879 esac
1880 fi
1881 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1882 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1883 as_fn_set_status $ac_retval
1884
1885 } # ac_fn_c_try_run
1886
1887 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1888 # --------------------------------------------
1889 # Tries to find the compile-time value of EXPR in a program that includes
1890 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1891 # computed
1892 ac_fn_c_compute_int ()
1893 {
1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895 if test "$cross_compiling" = yes; then
1896 # Depending upon the size, compute the lo and hi bounds.
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_lo=0 ac_mid=0
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_hi=$ac_mid; break
1932 else case e in #(
1933 e) as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1934 if test $ac_lo -le $ac_mid; then
1935 ac_lo= ac_hi=
1936 break
1937 fi
1938 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val ;;
1939 esac
1940 fi
1941 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1942 done
1943 else case e in #(
1944 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945 /* end confdefs.h. */
1946 $4
1947 int
1948 main (void)
1949 {
1950 static int test_array [1 - 2 * !(($2) < 0)];
1951 test_array [0] = 0;
1952 return test_array [0];
1953
1954 ;
1955 return 0;
1956 }
1957 _ACEOF
1958 if ac_fn_c_try_compile "$LINENO"
1959 then :
1960 ac_hi=-1 ac_mid=-1
1961 while :; do
1962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963 /* end confdefs.h. */
1964 $4
1965 int
1966 main (void)
1967 {
1968 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1969 test_array [0] = 0;
1970 return test_array [0];
1971
1972 ;
1973 return 0;
1974 }
1975 _ACEOF
1976 if ac_fn_c_try_compile "$LINENO"
1977 then :
1978 ac_lo=$ac_mid; break
1979 else case e in #(
1980 e) as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1981 if test $ac_mid -le $ac_hi; then
1982 ac_lo= ac_hi=
1983 break
1984 fi
1985 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val ;;
1986 esac
1987 fi
1988 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1989 done
1990 else case e in #(
1991 e) ac_lo= ac_hi= ;;
1992 esac
1993 fi
1994 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1995 esac
1996 fi
1997 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1998 # Binary search between lo and hi bounds.
1999 while test "x$ac_lo" != "x$ac_hi"; do
2000 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h. */
2003 $4
2004 int
2005 main (void)
2006 {
2007 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2008 test_array [0] = 0;
2009 return test_array [0];
2010
2011 ;
2012 return 0;
2013 }
2014 _ACEOF
2015 if ac_fn_c_try_compile "$LINENO"
2016 then :
2017 ac_hi=$ac_mid
2018 else case e in #(
2019 e) as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val ;;
2020 esac
2021 fi
2022 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2023 done
2024 case $ac_lo in #((
2025 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2026 '') ac_retval=1 ;;
2027 esac
2028 else
2029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2030 /* end confdefs.h. */
2031 $4
2032 static long int longval (void) { return $2; }
2033 static unsigned long int ulongval (void) { return $2; }
2034 #include <stdio.h>
2035 #include <stdlib.h>
2036 int
2037 main (void)
2038 {
2039
2040 FILE *f = fopen ("conftest.val", "w");
2041 if (! f)
2042 return 1;
2043 if (($2) < 0)
2044 {
2045 long int i = longval ();
2046 if (i != ($2))
2047 return 1;
2048 fprintf (f, "%ld", i);
2049 }
2050 else
2051 {
2052 unsigned long int i = ulongval ();
2053 if (i != ($2))
2054 return 1;
2055 fprintf (f, "%lu", i);
2056 }
2057 /* Do not output a trailing newline, as this causes \r\n confusion
2058 on some platforms. */
2059 return ferror (f) || fclose (f) != 0;
2060
2061 ;
2062 return 0;
2063 }
2064 _ACEOF
2065 if ac_fn_c_try_run "$LINENO"
2066 then :
2067 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2068 else case e in #(
2069 e) ac_retval=1 ;;
2070 esac
2071 fi
2072 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2073 conftest.$ac_objext conftest.beam conftest.$ac_ext
2074 rm -f conftest.val
2075
2076 fi
2077 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2078 as_fn_set_status $ac_retval
2079
2080 } # ac_fn_c_compute_int
2081
2082 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2083 # -------------------------------------------
2084 # Tests whether TYPE exists after having included INCLUDES, setting cache
2085 # variable VAR accordingly.
2086 ac_fn_c_check_type ()
2087 {
2088 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2089 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2090 printf %s "checking for $2... " >&6; }
2091 if eval test \${$3+y}
2092 then :
2093 printf %s "(cached) " >&6
2094 else case e in #(
2095 e) eval "$3=no"
2096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097 /* end confdefs.h. */
2098 $4
2099 int
2100 main (void)
2101 {
2102 if (sizeof ($2))
2103 return 0;
2104 ;
2105 return 0;
2106 }
2107 _ACEOF
2108 if ac_fn_c_try_compile "$LINENO"
2109 then :
2110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2111 /* end confdefs.h. */
2112 $4
2113 int
2114 main (void)
2115 {
2116 if (sizeof (($2)))
2117 return 0;
2118 ;
2119 return 0;
2120 }
2121 _ACEOF
2122 if ac_fn_c_try_compile "$LINENO"
2123 then :
2124
2125 else case e in #(
2126 e) eval "$3=yes" ;;
2127 esac
2128 fi
2129 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2130 fi
2131 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2132 esac
2133 fi
2134 eval ac_res=\$$3
2135 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2136 printf '%s\n' "$ac_res" >&6; }
2137 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2138
2139 } # ac_fn_c_check_type
2140
2141 # ac_fn_c_try_cpp LINENO
2142 # ----------------------
2143 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2144 ac_fn_c_try_cpp ()
2145 {
2146 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2147 if { { ac_try="$ac_cpp conftest.$ac_ext"
2148 case "(($ac_try" in
2149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2150 *) ac_try_echo=$ac_try;;
2151 esac
2152 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2153 printf '%s\n' "$ac_try_echo"; } >&5
2154 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2155 ac_status=$?
2156 if test -s conftest.err; then
2157 grep -v '^ *+' conftest.err >conftest.er1
2158 cat conftest.er1 >&5
2159 mv -f conftest.er1 conftest.err
2160 fi
2161 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2162 test $ac_status = 0; } > conftest.i && {
2163 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2164 test ! -s conftest.err
2165 }
2166 then :
2167 ac_retval=0
2168 else case e in #(
2169 e) printf '%s\n' "$as_me: failed program was:" >&5
2170 sed 's/^/| /' conftest.$ac_ext >&5
2171
2172 ac_retval=1 ;;
2173 esac
2174 fi
2175 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2176 as_fn_set_status $ac_retval
2177
2178 } # ac_fn_c_try_cpp
2179 ac_configure_args_raw=
2180 for ac_arg
2181 do
2182 case $ac_arg in
2183 *\'*)
2184 ac_arg=`printf '%s\n' "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2185 esac
2186 as_fn_append ac_configure_args_raw " '$ac_arg'"
2187 done
2188
2189 case $ac_configure_args_raw in
2190 *$as_nl*)
2191 ac_safe_unquote= ;;
2192 *)
2193 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2194 ac_unsafe_a="$ac_unsafe_z#~"
2195 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2196 ac_configure_args_raw=` printf '%s\n' "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2197 esac
2198
2199 cat >config.log <<_ACEOF
2200 This file contains any messages produced by compilers while
2201 running configure, to aid debugging if configure makes a mistake.
2202
2203 It was created by lame $as_me 4.0, which was
2204 generated by GNU Autoconf 2.73. Invocation command line was
2205
2206 $ $0$ac_configure_args_raw
2207
2208 _ACEOF
2209 exec 5>>config.log
2210 {
2211 cat <<_ASUNAME
2212 ## --------- ##
2213 ## Platform. ##
2214 ## --------- ##
2215
2216 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2217 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2218 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2219 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2220 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2221
2222 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2223 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2224
2225 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2226 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2227 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2228 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2229 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2230 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2231 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2232
2233 _ASUNAME
2234
2235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2236 for as_dir in $PATH
2237 do
2238 IFS=$as_save_IFS
2239 case $as_dir in #(((
2240 '') as_dir=./ ;;
2241 */) ;;
2242 *) as_dir=$as_dir/ ;;
2243 esac
2244 printf '%s\n' "PATH: $as_dir"
2245 done
2246 IFS=$as_save_IFS
2247
2248 } >&5
2249
2250 cat >&5 <<_ACEOF
2251
2252
2253 ## ----------- ##
2254 ## Core tests. ##
2255 ## ----------- ##
2256
2257 _ACEOF
2258
2259
2260 # Keep a trace of the command line.
2261 # Strip out --no-create and --no-recursion so they do not pile up.
2262 # Strip out --silent because we don't want to record it for future runs.
2263 # Also quote any args containing shell meta-characters.
2264 # Make two passes to allow for proper duplicate-argument suppression.
2265 ac_configure_args=
2266 ac_configure_args0=
2267 ac_configure_args1=
2268 ac_must_keep_next=false
2269 for ac_pass in 1 2
2270 do
2271 for ac_arg
2272 do
2273 case $ac_arg in
2274 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2275 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2276 | -silent | --silent | --silen | --sile | --sil)
2277 continue ;;
2278 *\'*)
2279 ac_arg=`printf '%s\n' "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2280 esac
2281 case $ac_pass in
2282 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2283 2)
2284 as_fn_append ac_configure_args1 " '$ac_arg'"
2285 if test $ac_must_keep_next = true; then
2286 ac_must_keep_next=false # Got value, back to normal.
2287 else
2288 case $ac_arg in
2289 *=* | --config-cache | -C | -disable-* | --disable-* \
2290 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2291 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2292 | -with-* | --with-* | -without-* | --without-* | --x)
2293 case "$ac_configure_args0 " in
2294 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2295 esac
2296 ;;
2297 -* ) ac_must_keep_next=true ;;
2298 esac
2299 fi
2300 as_fn_append ac_configure_args " '$ac_arg'"
2301 ;;
2302 esac
2303 done
2304 done
2305 { ac_configure_args0=; unset ac_configure_args0;}
2306 { ac_configure_args1=; unset ac_configure_args1;}
2307
2308 # Dump the cache to stdout. It can be in a pipe (this is a requirement).
2309 ac_cache_dump ()
2310 {
2311 # The following way of writing the cache mishandles newlines in values,
2312 # but we know of no workaround that is simple, portable, and efficient.
2313 # So, we kill variables containing newlines.
2314 # Ultrix sh set writes to stderr and can't be redirected directly,
2315 # and sets the high bit in the cache file unless we assign to the vars.
2316 (
2317 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
2318 eval ac_val=\$$ac_var
2319 case $ac_val in #(
2320 *${as_nl}*)
2321 case $ac_var in #(
2322 *_cv_*) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2323 printf '%s\n' "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2324 esac
2325 case $ac_var in #(
2326 _ | IFS | as_nl) ;; #(
2327 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2328 *) { eval $ac_var=; unset $ac_var;} ;;
2329 esac ;;
2330 esac
2331 done
2332
2333 (set) 2>&1 |
2334 case $as_nl`(ac_space=' '; set) 2>&1` in #(
2335 *${as_nl}ac_space=\ *)
2336 # 'set' does not quote correctly, so add quotes: double-quote
2337 # substitution turns \\\\ into \\, and sed turns \\ into \.
2338 sed -n \
2339 "s/'/'\\\\''/g;
2340 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2341 ;; #(
2342 *)
2343 # 'set' quotes correctly as required by POSIX, so do not add quotes.
2344 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2345 ;;
2346 esac |
2347 sort
2348 )
2349 }
2350
2351 # Print debugging info to stdout.
2352 ac_dump_debugging_info ()
2353 {
2354 echo
2355
2356 printf '%s\n' "## ---------------- ##
2357 ## Cache variables. ##
2358 ## ---------------- ##"
2359 echo
2360 ac_cache_dump
2361 echo
2362
2363 printf '%s\n' "## ----------------- ##
2364 ## Output variables. ##
2365 ## ----------------- ##"
2366 echo
2367 for ac_var in $ac_subst_vars
2368 do
2369 eval ac_val=\$$ac_var
2370 case $ac_val in
2371 *\'*) ac_val=`printf '%s\n' "$ac_val" | sed "s/'/'\\\\\\\\''/g"`;;
2372 esac
2373 printf '%s\n' "$ac_var='$ac_val'"
2374 done | sort
2375 echo
2376
2377 if test -n "$ac_subst_files"; then
2378 printf '%s\n' "## ------------------- ##
2379 ## File substitutions. ##
2380 ## ------------------- ##"
2381 echo
2382 for ac_var in $ac_subst_files
2383 do
2384 eval ac_val=\$$ac_var
2385 case $ac_val in
2386 *\'*) ac_val=`printf '%s\n' "$ac_val" | sed "s/'/'\\\\\\\\''/g"`;;
2387 esac
2388 printf '%s\n' "$ac_var='$ac_val'"
2389 done | sort
2390 echo
2391 fi
2392
2393 if test -s confdefs.h; then
2394 printf '%s\n' "## ----------- ##
2395 ## confdefs.h. ##
2396 ## ----------- ##"
2397 echo
2398 cat confdefs.h
2399 echo
2400 fi
2401 test "$ac_signal" != 0 &&
2402 printf '%s\n' "$as_me: caught signal $ac_signal"
2403 printf '%s\n' "$as_me: exit $exit_status"
2404 }
2405
2406 # When interrupted or exit'd, cleanup temporary files, and complete
2407 # config.log.
2408 ac_exit_trap ()
2409 {
2410 exit_status=
2411 # Sanitize IFS.
2412 IFS=" "" $as_nl"
2413 # Save into config.log some information that might help in debugging.
2414 ac_dump_debugging_info >&5
2415 eval "rm -f $ac_clean_CONFIG_STATUS core *.core core.conftest.*" &&
2416 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2417 exit $exit_status
2418 }
2419
2420 trap 'ac_exit_trap $?' 0
2421 for ac_signal in 1 2 13 15; do
2422 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2423 done
2424 ac_signal=0
2425
2426 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2427 rm -f -r conftest* confdefs.h
2428
2429 printf '%s\n' "/* confdefs.h */" > confdefs.h
2430
2431 # Predefined preprocessor variables.
2432
2433 printf '%s\n' "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2434
2435 printf '%s\n' "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2436
2437 printf '%s\n' "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2438
2439 printf '%s\n' "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2440
2441 printf '%s\n' "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2442
2443 printf '%s\n' "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2444
2445
2446 # Let the site file select an alternate cache file if it wants to.
2447 # Prefer an explicitly selected file to automatically selected ones.
2448 if test -n "$CONFIG_SITE"; then
2449 ac_site_files="$CONFIG_SITE"
2450 elif test "x$prefix" != xNONE; then
2451 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2452 else
2453 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2454 fi
2455
2456 for ac_site_file in $ac_site_files
2457 do
2458 case $ac_site_file in #(
2459 */*) :
2460 ;; #(
2461 *) :
2462 ac_site_file=./$ac_site_file ;;
2463 esac
2464 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2465 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2466 printf '%s\n' "$as_me: loading site script $ac_site_file" >&6;}
2467 sed 's/^/| /' "$ac_site_file" >&5
2468 . "$ac_site_file" \
2469 || { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2470 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
2471 as_fn_error $? "failed to load site script $ac_site_file
2472 See 'config.log' for more details" "$LINENO" 5; }
2473 fi
2474 done
2475
2476 if test -r "$cache_file"; then
2477 # Some versions of bash will fail to source /dev/null (special files
2478 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2479 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2480 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2481 printf '%s\n' "$as_me: loading cache $cache_file" >&6;}
2482 case $cache_file in
2483 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2484 *) . "./$cache_file";;
2485 esac
2486 fi
2487 else
2488 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2489 printf '%s\n' "$as_me: creating cache $cache_file" >&6;}
2490 >$cache_file
2491 fi
2492
2493 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2494 # Test code for whether the C compiler supports C23 (global declarations)
2495 ac_c_conftest_c23_globals='
2496 /* Does the compiler advertise conformance to C17 or earlier?
2497 Although GCC 14 does not do that, even with -std=gnu23,
2498 it is close enough, and defines __STDC_VERSION == 202000L. */
2499 #if !defined __STDC_VERSION__ || __STDC_VERSION__ <= 201710L
2500 # error "Compiler advertises conformance to C17 or earlier"
2501 #endif
2502
2503 // Check alignas.
2504 char alignas (double) c23_aligned_as_double;
2505 char alignas (0) c23_no_special_alignment;
2506 extern char c23_aligned_as_int;
2507 char alignas (0) alignas (int) c23_aligned_as_int;
2508
2509 // Check alignof.
2510 enum
2511 {
2512 c23_int_alignment = alignof (int),
2513 c23_int_array_alignment = alignof (int[100]),
2514 c23_char_alignment = alignof (char)
2515 };
2516 static_assert (0 < -alignof (int), "alignof is signed");
2517
2518 int function_with_unnamed_parameter (int) { return 0; }
2519
2520 void c23_noreturn ();
2521
2522 /* Test parsing of string and char UTF-8 literals (including hex escapes).
2523 The parens pacify GCC 15. */
2524 bool use_u8 = (!sizeof u8"\xFF") == (!u8'\''x'\'');
2525
2526 bool check_that_bool_works = true | false | !nullptr;
2527 #if !true
2528 # error "true does not work in #if"
2529 #endif
2530 #if false
2531 #elifdef __STDC_VERSION__
2532 #else
2533 # error "#elifdef does not work"
2534 #endif
2535
2536 #ifndef __has_c_attribute
2537 # error "__has_c_attribute not defined"
2538 #endif
2539
2540 #ifndef __has_include
2541 # error "__has_include not defined"
2542 #endif
2543
2544 #define LPAREN() (
2545 #define FORTY_TWO(x) 42
2546 #define VA_OPT_TEST(r, x, ...) __VA_OPT__ (FORTY_TWO r x))
2547 static_assert (VA_OPT_TEST (LPAREN (), 0, <:-) == 42);
2548
2549 static_assert (0b101010 == 42);
2550 static_assert (0B101010 == 42);
2551 static_assert (0xDEAD'\''BEEF == 3'\''735'\''928'\''559);
2552 static_assert (0.500'\''000'\''000 == 0.5);
2553
2554 enum unsignedish : unsigned int { uione = 1 };
2555 static_assert (0 < -uione);
2556
2557 #include <stddef.h>
2558 constexpr nullptr_t null_pointer = nullptr;
2559
2560 static typeof (1 + 1L) two () { return 2; }
2561 static long int three () { return 3; }
2562 '
2563
2564 # Test code for whether the C compiler supports C23 (body of main).
2565 ac_c_conftest_c23_main='
2566 {
2567 label_before_declaration:
2568 int arr[10] = {};
2569 if (arr[0])
2570 goto label_before_declaration;
2571 if (!arr[0])
2572 goto label_at_end_of_block;
2573 label_at_end_of_block:
2574 }
2575 ok |= !null_pointer;
2576 ok |= two != three;
2577 '
2578
2579 # Test code for whether the C compiler supports C23 (complete).
2580 ac_c_conftest_c23_program="${ac_c_conftest_c23_globals}
2581
2582 int
2583 main (int, char **)
2584 {
2585 int ok = 0;
2586 ${ac_c_conftest_c23_main}
2587 return ok;
2588 }
2589 "
2590
2591 # Test code for whether the C compiler supports C89 (global declarations)
2592 ac_c_conftest_c89_globals='
2593 /* Do not test the value of __STDC__, because some compilers define it to 0
2594 or do not define it, while otherwise adequately conforming. */
2595
2596 #include <stddef.h>
2597 #include <stdarg.h>
2598 struct stat;
2599 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2600 struct buf { int x; };
2601 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2602 static char *e (char **p, int i)
2603 {
2604 return p[i];
2605 }
2606 static char *f (char * (*g) (char **, int), char **p, ...)
2607 {
2608 char *s;
2609 va_list v;
2610 va_start (v,p);
2611 s = g (p, va_arg (v,int));
2612 va_end (v);
2613 return s;
2614 }
2615
2616 /* C89 style stringification. */
2617 #define noexpand_stringify(a) #a
2618 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2619
2620 /* C89 style token pasting. Exercises some of the corner cases that
2621 e.g. old MSVC gets wrong, but not very hard. */
2622 #define noexpand_concat(a,b) a##b
2623 #define expand_concat(a,b) noexpand_concat(a,b)
2624 extern int vA;
2625 extern int vbee;
2626 #define aye A
2627 #define bee B
2628 int *pvA = &expand_concat(v,aye);
2629 int *pvbee = &noexpand_concat(v,bee);
2630
2631 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2632 function prototypes and stuff, but not \xHH hex character constants.
2633 These do not provoke an error unfortunately, instead are silently treated
2634 as an "x". The following induces an error, until -std is added to get
2635 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2636 array size at least. It is necessary to write \x00 == 0 to get something
2637 that is true only with -std. */
2638 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2639
2640 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2641 inside strings and character constants. */
2642 #define FOO(x) '\''x'\''
2643 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2644
2645 int test (int i, double x);
2646 struct s1 {int (*f) (int a);};
2647 struct s2 {int (*f) (double a);};
2648 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2649 int, int);'
2650
2651 # Test code for whether the C compiler supports C89 (body of main).
2652 ac_c_conftest_c89_main='
2653 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2654 '
2655
2656 # Test code for whether the C compiler supports C99 (global declarations)
2657 ac_c_conftest_c99_globals='
2658 /* Does the compiler advertise C99 conformance? */
2659 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2660 # error "Compiler does not advertise C99 conformance"
2661 #endif
2662
2663 // See if C++-style comments work.
2664
2665 #include <stdbool.h>
2666 extern int puts (const char *);
2667 extern int printf (const char *, ...);
2668 extern int dprintf (int, const char *, ...);
2669 extern void *malloc (size_t);
2670 extern void free (void *);
2671
2672 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2673 // dprintf is used instead of fprintf to avoid needing to declare
2674 // FILE and stderr, and "aND" is used instead of "and" to work around
2675 // GCC bug 40564 which is irrelevant here.
2676 #define debug(...) dprintf (2, __VA_ARGS__)
2677 #define showlist(...) puts (#__VA_ARGS__)
2678 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2679 static void
2680 test_varargs_macros (void)
2681 {
2682 int x = 1234;
2683 int y = 5678;
2684 debug ("Flag");
2685 debug ("X = %d\n", x);
2686 showlist (The first, second, aND third items.);
2687 report (x>y, "x is %d but y is %d", x, y);
2688 }
2689
2690 // Check long long types.
2691 #define BIG64 18446744073709551615ull
2692 #define BIG32 4294967295ul
2693 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2694 #if !BIG_OK
2695 #error "your preprocessor is broken"
2696 #endif
2697 #if BIG_OK
2698 #else
2699 #error "your preprocessor is broken"
2700 #endif
2701 static long long int bignum = -9223372036854775807LL;
2702 static unsigned long long int ubignum = BIG64;
2703
2704 struct incomplete_array
2705 {
2706 int datasize;
2707 double data[];
2708 };
2709
2710 struct named_init {
2711 int number;
2712 const wchar_t *name;
2713 double average;
2714 };
2715
2716 typedef const char *ccp;
2717
2718 static inline int
2719 test_restrict (ccp restrict text)
2720 {
2721 // Iterate through items via the restricted pointer.
2722 // Also check for declarations in for loops.
2723 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2724 continue;
2725 return 0;
2726 }
2727
2728 // Check varargs and va_copy.
2729 static bool
2730 test_varargs (const char *format, ...)
2731 {
2732 va_list args;
2733 va_start (args, format);
2734 va_list args_copy;
2735 va_copy (args_copy, args);
2736
2737 const char *str = "";
2738 int number = 0;
2739 float fnumber = 0;
2740
2741 while (*format)
2742 {
2743 switch (*format++)
2744 {
2745 case '\''s'\'': // string
2746 str = va_arg (args_copy, const char *);
2747 break;
2748 case '\''d'\'': // int
2749 number = va_arg (args_copy, int);
2750 break;
2751 case '\''f'\'': // float
2752 fnumber = va_arg (args_copy, double);
2753 break;
2754 default:
2755 break;
2756 }
2757 }
2758 va_end (args_copy);
2759 va_end (args);
2760
2761 return *str && number && fnumber;
2762 }
2763 '
2764
2765 # Test code for whether the C compiler supports C99 (body of main).
2766 ac_c_conftest_c99_main='
2767 // Check bool.
2768 _Bool success = false;
2769 success |= (argc != 0);
2770
2771 // Check restrict.
2772 if (test_restrict ("String literal") == 0)
2773 success = true;
2774 const char *restrict newvar = "Another string";
2775
2776 // Check varargs.
2777 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2778 test_varargs_macros ();
2779
2780 // Check flexible array members.
2781 static struct incomplete_array *volatile incomplete_array_pointer;
2782 struct incomplete_array *ia = incomplete_array_pointer;
2783 ia->datasize = 10;
2784 for (int i = 0; i < ia->datasize; ++i)
2785 ia->data[i] = i * 1.234;
2786 // Work around memory leak warnings.
2787 free (ia);
2788
2789 // Check named initializers.
2790 struct named_init ni = {
2791 .number = 34,
2792 .name = L"Test wide string",
2793 .average = 543.34343,
2794 };
2795
2796 ni.number = 58;
2797
2798 // Do not test for VLAs, as some otherwise-conforming compilers lack them.
2799 // C code should instead use __STDC_NO_VLA__; see Autoconf manual.
2800
2801 // work around unused variable warnings
2802 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2803 || ni.number != 58);
2804 '
2805
2806 # Test code for whether the C compiler supports C11 (global declarations)
2807 ac_c_conftest_c11_globals='
2808 /* Does the compiler advertise C11 conformance? */
2809 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2810 # error "Compiler does not advertise C11 conformance"
2811 #endif
2812
2813 // Check _Alignas.
2814 char _Alignas (double) aligned_as_double;
2815 char _Alignas (0) no_special_alignment;
2816 extern char aligned_as_int;
2817 char _Alignas (0) _Alignas (int) aligned_as_int;
2818
2819 // Check _Alignof.
2820 enum
2821 {
2822 int_alignment = _Alignof (int),
2823 int_array_alignment = _Alignof (int[100]),
2824 char_alignment = _Alignof (char)
2825 };
2826 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2827
2828 // Check _Noreturn.
2829 int _Noreturn does_not_return (void) { for (;;) continue; }
2830
2831 // Check _Static_assert.
2832 struct test_static_assert
2833 {
2834 int x;
2835 _Static_assert (sizeof (int) <= sizeof (long int),
2836 "_Static_assert does not work in struct");
2837 long int y;
2838 };
2839
2840 // Check UTF-8 literals.
2841 #define u8 syntax error!
2842 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2843
2844 // Check duplicate typedefs.
2845 typedef long *long_ptr;
2846 typedef long int *long_ptr;
2847 typedef long_ptr long_ptr;
2848
2849 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2850 struct anonymous
2851 {
2852 union {
2853 struct { int i; int j; };
2854 struct { int k; long int l; } w;
2855 };
2856 int m;
2857 } v1;
2858 '
2859
2860 # Test code for whether the C compiler supports C11 (body of main).
2861 ac_c_conftest_c11_main='
2862 _Static_assert ((offsetof (struct anonymous, i)
2863 == offsetof (struct anonymous, w.k)),
2864 "Anonymous union alignment botch");
2865 v1.i = 2;
2866 v1.w.k = 5;
2867 ok |= v1.i != 5;
2868 '
2869
2870 # Test code for whether the C compiler supports C11 (complete).
2871 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2872 ${ac_c_conftest_c99_globals}
2873 ${ac_c_conftest_c11_globals}
2874
2875 int
2876 main (int argc, char **argv)
2877 {
2878 int ok = 0;
2879 ${ac_c_conftest_c89_main}
2880 ${ac_c_conftest_c99_main}
2881 ${ac_c_conftest_c11_main}
2882 return ok;
2883 }
2884 "
2885
2886 # Test code for whether the C compiler supports C99 (complete).
2887 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2888 ${ac_c_conftest_c99_globals}
2889
2890 int
2891 main (int argc, char **argv)
2892 {
2893 int ok = 0;
2894 ${ac_c_conftest_c89_main}
2895 ${ac_c_conftest_c99_main}
2896 return ok;
2897 }
2898 "
2899
2900 # Test code for whether the C compiler supports C89 (complete).
2901 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2902
2903 int
2904 main (int argc, char **argv)
2905 {
2906 int ok = 0;
2907 ${ac_c_conftest_c89_main}
2908 return ok;
2909 }
2910 "
2911
2912 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2913 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2914 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2915 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2916 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2917 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2918 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2919 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2920 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2921 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2922 as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"
2923
2924 # Auxiliary files required by this configure script.
2925 ac_aux_files="config.rpath ltmain.sh missing install-sh config.guess config.sub compile"
2926
2927 # Locations in which to look for auxiliary files.
2928 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2929
2930 # Search for a directory containing all of the required auxiliary files,
2931 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2932 # If we don't find one directory that contains all the files we need,
2933 # we report the set of missing files from the *first* directory in
2934 # $ac_aux_dir_candidates and give up.
2935 ac_missing_aux_files=""
2936 ac_first_candidate=:
2937 printf '%s\n' "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939 as_found=false
2940 for as_dir in $ac_aux_dir_candidates
2941 do
2942 IFS=$as_save_IFS
2943 case $as_dir in #(((
2944 '') as_dir=./ ;;
2945 */) ;;
2946 *) as_dir=$as_dir/ ;;
2947 esac
2948 as_found=:
2949
2950 printf '%s\n' "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2951 ac_aux_dir_found=yes
2952 ac_install_sh=
2953 for ac_aux in $ac_aux_files
2954 do
2955 # As a special case, if "install-sh" is required, that requirement
2956 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2957 # and $ac_install_sh is set appropriately for whichever one is found.
2958 if test x"$ac_aux" = x"install-sh"
2959 then
2960 if test -f "${as_dir}install-sh"; then
2961 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2962 ac_install_sh="${as_dir}install-sh -c"
2963 elif test -f "${as_dir}install.sh"; then
2964 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2965 ac_install_sh="${as_dir}install.sh -c"
2966 elif test -f "${as_dir}shtool"; then
2967 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2968 ac_install_sh="${as_dir}shtool install -c"
2969 else
2970 ac_aux_dir_found=no
2971 if $ac_first_candidate; then
2972 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2973 else
2974 break
2975 fi
2976 fi
2977 else
2978 if test -f "${as_dir}${ac_aux}"; then
2979 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2980 else
2981 ac_aux_dir_found=no
2982 if $ac_first_candidate; then
2983 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2984 else
2985 break
2986 fi
2987 fi
2988 fi
2989 done
2990 if test "$ac_aux_dir_found" = yes; then
2991 ac_aux_dir="$as_dir"
2992 break
2993 fi
2994 ac_first_candidate=false
2995
2996 as_found=false
2997 done
2998 IFS=$as_save_IFS
2999 if $as_found
3000 then :
3001
3002 else case e in #(
3003 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
3004 esac
3005 fi
3006
3007
3008 # These three variables are undocumented and unsupported,
3009 # and are intended to be withdrawn in a future Autoconf release.
3010 # They can cause serious problems if a builder's source tree is in a directory
3011 # whose full name contains unusual characters.
3012 if test -f "${ac_aux_dir}config.guess"; then
3013 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3014 fi
3015 if test -f "${ac_aux_dir}config.sub"; then
3016 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3017 fi
3018 if test -f "$ac_aux_dir/configure"; then
3019 ac_configure="$SHELL ${ac_aux_dir}configure"
3020 fi
3021
3022 # Check that the precious variables saved in the cache have kept the same
3023 # value.
3024 ac_cache_corrupted=false
3025 for ac_var in $ac_precious_vars; do
3026 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3027 eval ac_new_set=\$ac_env_${ac_var}_set
3028 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3029 eval ac_new_val=\$ac_env_${ac_var}_value
3030 case $ac_old_set,$ac_new_set in
3031 set,)
3032 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
3033 printf '%s\n' "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
3034 ac_cache_corrupted=: ;;
3035 ,set)
3036 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
3037 printf '%s\n' "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
3038 ac_cache_corrupted=: ;;
3039 ,);;
3040 *)
3041 if test "x$ac_old_val" != "x$ac_new_val"; then
3042 # differences in whitespace do not lead to failure.
3043 ac_old_val_w=
3044 for ac_val in x $ac_old_val; do
3045 ac_old_val_w="$ac_old_val_w $ac_val"
3046 done
3047 ac_new_val_w=
3048 for ac_val in x $ac_new_val; do
3049 ac_new_val_w="$ac_new_val_w $ac_val"
3050 done
3051 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3052 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
3053 printf '%s\n' "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
3054 ac_cache_corrupted=:
3055 else
3056 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
3057 printf '%s\n' "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
3058 eval $ac_var=\$ac_old_val
3059 fi
3060 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
3061 printf '%s\n' "$as_me: former value: '$ac_old_val'" >&2;}
3062 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
3063 printf '%s\n' "$as_me: current value: '$ac_new_val'" >&2;}
3064 fi;;
3065 esac
3066 # Pass precious variables to config.status.
3067 if test "$ac_new_set" = set; then
3068 case $ac_new_val in
3069 *\'*) ac_arg=$ac_var=`printf '%s\n' "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3070 *) ac_arg=$ac_var=$ac_new_val ;;
3071 esac
3072 case " $ac_configure_args " in
3073 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3074 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3075 esac
3076 fi
3077 done
3078 if $ac_cache_corrupted; then
3079 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3080 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
3081 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3082 printf '%s\n' "$as_me: error: changes in the environment can compromise the build" >&2;}
3083 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
3084 and start over" "$LINENO" 5
3085 fi
3086 ## -------------------- ##
3087 ## Main body of script. ##
3088 ## -------------------- ##
3089
3090
3091 # Determine whether it's possible to make 'echo' print without a newline.
3092 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
3093 # for compatibility with existing Makefiles.
3094 ECHO_C= ECHO_N= ECHO_T=
3095 case `echo -n x` in #(((((
3096 -n*)
3097 case `echo 'xy\c'` in
3098 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
3099 xy) ECHO_C='\c';;
3100 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
3101 ECHO_T=' ';;
3102 esac;;
3103 *)
3104 ECHO_N='-n';;
3105 esac
3106
3107 ac_ext=c
3108 ac_cpp='$CPP $CPPFLAGS'
3109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3112
3113
3114
3115
3116 ac_ext=c
3117 ac_cpp='$CPP $CPPFLAGS'
3118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136 # Expand $ac_aux_dir to an absolute path.
3137 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3138
3139 ac_ext=c
3140 ac_cpp='$CPP $CPPFLAGS'
3141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3144 if test -n "$ac_tool_prefix"; then
3145 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3146 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3147 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3148 printf %s "checking for $ac_word... " >&6; }
3149 if test ${ac_cv_prog_CC+y}
3150 then :
3151 printf %s "(cached) " >&6
3152 else case e in #(
3153 e) if test -n "$CC"; then
3154 ac_cv_prog_CC="$CC" # Let the user override the test.
3155 else
3156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3157 for as_dir in $PATH
3158 do
3159 IFS=$as_save_IFS
3160 case $as_dir in #(((
3161 '') as_dir=./ ;;
3162 */) ;;
3163 *) as_dir=$as_dir/ ;;
3164 esac
3165 for ac_exec_ext in '' $ac_executable_extensions; do
3166 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3167 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3168 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3169 break 2
3170 fi
3171 done
3172 done
3173 IFS=$as_save_IFS
3174
3175 fi ;;
3176 esac
3177 fi
3178 CC=$ac_cv_prog_CC
3179 if test -n "$CC"; then
3180 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3181 printf '%s\n' "$CC" >&6; }
3182 else
3183 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3184 printf '%s\n' "no" >&6; }
3185 fi
3186
3187
3188 fi
3189 if test -z "$ac_cv_prog_CC"; then
3190 ac_ct_CC=$CC
3191 # Extract the first word of "gcc", so it can be a program name with args.
3192 set dummy gcc; ac_word=$2
3193 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3194 printf %s "checking for $ac_word... " >&6; }
3195 if test ${ac_cv_prog_ac_ct_CC+y}
3196 then :
3197 printf %s "(cached) " >&6
3198 else case e in #(
3199 e) if test -n "$ac_ct_CC"; then
3200 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3201 else
3202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203 for as_dir in $PATH
3204 do
3205 IFS=$as_save_IFS
3206 case $as_dir in #(((
3207 '') as_dir=./ ;;
3208 */) ;;
3209 *) as_dir=$as_dir/ ;;
3210 esac
3211 for ac_exec_ext in '' $ac_executable_extensions; do
3212 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3213 ac_cv_prog_ac_ct_CC="gcc"
3214 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3215 break 2
3216 fi
3217 done
3218 done
3219 IFS=$as_save_IFS
3220
3221 fi ;;
3222 esac
3223 fi
3224 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3225 if test -n "$ac_ct_CC"; then
3226 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3227 printf '%s\n' "$ac_ct_CC" >&6; }
3228 else
3229 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3230 printf '%s\n' "no" >&6; }
3231 fi
3232
3233 if test "x$ac_ct_CC" = x; then
3234 CC=""
3235 else
3236 case $cross_compiling:$ac_tool_warned in
3237 yes:)
3238 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3239 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3240 ac_tool_warned=yes ;;
3241 esac
3242 CC=$ac_ct_CC
3243 fi
3244 else
3245 CC="$ac_cv_prog_CC"
3246 fi
3247
3248 if test -z "$CC"; then
3249 if test -n "$ac_tool_prefix"; then
3250 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3251 set dummy ${ac_tool_prefix}cc; ac_word=$2
3252 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3253 printf %s "checking for $ac_word... " >&6; }
3254 if test ${ac_cv_prog_CC+y}
3255 then :
3256 printf %s "(cached) " >&6
3257 else case e in #(
3258 e) if test -n "$CC"; then
3259 ac_cv_prog_CC="$CC" # Let the user override the test.
3260 else
3261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262 for as_dir in $PATH
3263 do
3264 IFS=$as_save_IFS
3265 case $as_dir in #(((
3266 '') as_dir=./ ;;
3267 */) ;;
3268 *) as_dir=$as_dir/ ;;
3269 esac
3270 for ac_exec_ext in '' $ac_executable_extensions; do
3271 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3272 ac_cv_prog_CC="${ac_tool_prefix}cc"
3273 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3274 break 2
3275 fi
3276 done
3277 done
3278 IFS=$as_save_IFS
3279
3280 fi ;;
3281 esac
3282 fi
3283 CC=$ac_cv_prog_CC
3284 if test -n "$CC"; then
3285 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3286 printf '%s\n' "$CC" >&6; }
3287 else
3288 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3289 printf '%s\n' "no" >&6; }
3290 fi
3291
3292
3293 fi
3294 fi
3295 if test -z "$CC"; then
3296 # Extract the first word of "cc", so it can be a program name with args.
3297 set dummy cc; ac_word=$2
3298 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3299 printf %s "checking for $ac_word... " >&6; }
3300 if test ${ac_cv_prog_CC+y}
3301 then :
3302 printf %s "(cached) " >&6
3303 else case e in #(
3304 e) if test -n "$CC"; then
3305 ac_cv_prog_CC="$CC" # Let the user override the test.
3306 else
3307 ac_prog_rejected=no
3308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3309 for as_dir in $PATH
3310 do
3311 IFS=$as_save_IFS
3312 case $as_dir in #(((
3313 '') as_dir=./ ;;
3314 */) ;;
3315 *) as_dir=$as_dir/ ;;
3316 esac
3317 for ac_exec_ext in '' $ac_executable_extensions; do
3318 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3319 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3320 ac_prog_rejected=yes
3321 continue
3322 fi
3323 ac_cv_prog_CC="cc"
3324 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3325 break 2
3326 fi
3327 done
3328 done
3329 IFS=$as_save_IFS
3330
3331 if test $ac_prog_rejected = yes; then
3332 # We found a bogon in the path, so make sure we never use it.
3333 set dummy $ac_cv_prog_CC
3334 shift
3335 if test $# != 0; then
3336 # We chose a different compiler from the bogus one.
3337 # However, it has the same basename, so the bogon will be chosen
3338 # first if we set CC to just the basename; use the full file name.
3339 shift
3340 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3341 fi
3342 fi
3343 fi ;;
3344 esac
3345 fi
3346 CC=$ac_cv_prog_CC
3347 if test -n "$CC"; then
3348 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3349 printf '%s\n' "$CC" >&6; }
3350 else
3351 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3352 printf '%s\n' "no" >&6; }
3353 fi
3354
3355
3356 fi
3357 if test -z "$CC"; then
3358 if test -n "$ac_tool_prefix"; then
3359 for ac_prog in cl.exe
3360 do
3361 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3362 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3363 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3364 printf %s "checking for $ac_word... " >&6; }
3365 if test ${ac_cv_prog_CC+y}
3366 then :
3367 printf %s "(cached) " >&6
3368 else case e in #(
3369 e) if test -n "$CC"; then
3370 ac_cv_prog_CC="$CC" # Let the user override the test.
3371 else
3372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373 for as_dir in $PATH
3374 do
3375 IFS=$as_save_IFS
3376 case $as_dir in #(((
3377 '') as_dir=./ ;;
3378 */) ;;
3379 *) as_dir=$as_dir/ ;;
3380 esac
3381 for ac_exec_ext in '' $ac_executable_extensions; do
3382 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3383 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3384 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3385 break 2
3386 fi
3387 done
3388 done
3389 IFS=$as_save_IFS
3390
3391 fi ;;
3392 esac
3393 fi
3394 CC=$ac_cv_prog_CC
3395 if test -n "$CC"; then
3396 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3397 printf '%s\n' "$CC" >&6; }
3398 else
3399 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3400 printf '%s\n' "no" >&6; }
3401 fi
3402
3403
3404 test -n "$CC" && break
3405 done
3406 fi
3407 if test -z "$CC"; then
3408 ac_ct_CC=$CC
3409 for ac_prog in cl.exe
3410 do
3411 # Extract the first word of "$ac_prog", so it can be a program name with args.
3412 set dummy $ac_prog; ac_word=$2
3413 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3414 printf %s "checking for $ac_word... " >&6; }
3415 if test ${ac_cv_prog_ac_ct_CC+y}
3416 then :
3417 printf %s "(cached) " >&6
3418 else case e in #(
3419 e) if test -n "$ac_ct_CC"; then
3420 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3421 else
3422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3423 for as_dir in $PATH
3424 do
3425 IFS=$as_save_IFS
3426 case $as_dir in #(((
3427 '') as_dir=./ ;;
3428 */) ;;
3429 *) as_dir=$as_dir/ ;;
3430 esac
3431 for ac_exec_ext in '' $ac_executable_extensions; do
3432 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3433 ac_cv_prog_ac_ct_CC="$ac_prog"
3434 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3435 break 2
3436 fi
3437 done
3438 done
3439 IFS=$as_save_IFS
3440
3441 fi ;;
3442 esac
3443 fi
3444 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3445 if test -n "$ac_ct_CC"; then
3446 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3447 printf '%s\n' "$ac_ct_CC" >&6; }
3448 else
3449 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3450 printf '%s\n' "no" >&6; }
3451 fi
3452
3453
3454 test -n "$ac_ct_CC" && break
3455 done
3456
3457 if test "x$ac_ct_CC" = x; then
3458 CC=""
3459 else
3460 case $cross_compiling:$ac_tool_warned in
3461 yes:)
3462 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3463 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3464 ac_tool_warned=yes ;;
3465 esac
3466 CC=$ac_ct_CC
3467 fi
3468 fi
3469
3470 fi
3471 if test -z "$CC"; then
3472 if test -n "$ac_tool_prefix"; then
3473 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3474 set dummy ${ac_tool_prefix}clang; ac_word=$2
3475 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3476 printf %s "checking for $ac_word... " >&6; }
3477 if test ${ac_cv_prog_CC+y}
3478 then :
3479 printf %s "(cached) " >&6
3480 else case e in #(
3481 e) if test -n "$CC"; then
3482 ac_cv_prog_CC="$CC" # Let the user override the test.
3483 else
3484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3485 for as_dir in $PATH
3486 do
3487 IFS=$as_save_IFS
3488 case $as_dir in #(((
3489 '') as_dir=./ ;;
3490 */) ;;
3491 *) as_dir=$as_dir/ ;;
3492 esac
3493 for ac_exec_ext in '' $ac_executable_extensions; do
3494 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3495 ac_cv_prog_CC="${ac_tool_prefix}clang"
3496 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3497 break 2
3498 fi
3499 done
3500 done
3501 IFS=$as_save_IFS
3502
3503 fi ;;
3504 esac
3505 fi
3506 CC=$ac_cv_prog_CC
3507 if test -n "$CC"; then
3508 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3509 printf '%s\n' "$CC" >&6; }
3510 else
3511 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3512 printf '%s\n' "no" >&6; }
3513 fi
3514
3515
3516 fi
3517 if test -z "$ac_cv_prog_CC"; then
3518 ac_ct_CC=$CC
3519 # Extract the first word of "clang", so it can be a program name with args.
3520 set dummy clang; ac_word=$2
3521 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3522 printf %s "checking for $ac_word... " >&6; }
3523 if test ${ac_cv_prog_ac_ct_CC+y}
3524 then :
3525 printf %s "(cached) " >&6
3526 else case e in #(
3527 e) if test -n "$ac_ct_CC"; then
3528 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3529 else
3530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3531 for as_dir in $PATH
3532 do
3533 IFS=$as_save_IFS
3534 case $as_dir in #(((
3535 '') as_dir=./ ;;
3536 */) ;;
3537 *) as_dir=$as_dir/ ;;
3538 esac
3539 for ac_exec_ext in '' $ac_executable_extensions; do
3540 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3541 ac_cv_prog_ac_ct_CC="clang"
3542 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3543 break 2
3544 fi
3545 done
3546 done
3547 IFS=$as_save_IFS
3548
3549 fi ;;
3550 esac
3551 fi
3552 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3553 if test -n "$ac_ct_CC"; then
3554 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3555 printf '%s\n' "$ac_ct_CC" >&6; }
3556 else
3557 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3558 printf '%s\n' "no" >&6; }
3559 fi
3560
3561 if test "x$ac_ct_CC" = x; then
3562 CC=""
3563 else
3564 case $cross_compiling:$ac_tool_warned in
3565 yes:)
3566 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3567 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3568 ac_tool_warned=yes ;;
3569 esac
3570 CC=$ac_ct_CC
3571 fi
3572 else
3573 CC="$ac_cv_prog_CC"
3574 fi
3575
3576 fi
3577
3578
3579 test -z "$CC" && { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3580 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
3581 as_fn_error $? "no acceptable C compiler found in \$PATH
3582 See 'config.log' for more details" "$LINENO" 5; }
3583
3584 # Provide some information about the compiler.
3585 printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3586 set X $ac_compile
3587 ac_compiler=$2
3588 for ac_option in --version -v -V -qversion -version; do
3589 { { ac_try="$ac_compiler $ac_option >&5"
3590 case "(($ac_try" in
3591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592 *) ac_try_echo=$ac_try;;
3593 esac
3594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3595 printf '%s\n' "$ac_try_echo"; } >&5
3596 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3597 ac_status=$?
3598 if test -s conftest.err; then
3599 sed '10a\
3600 ... rest of stderr output deleted ...
3601 10q' conftest.err >conftest.er1
3602 cat conftest.er1 >&5
3603 fi
3604 rm -f conftest.er1 conftest.err
3605 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3606 test $ac_status = 0; }
3607 done
3608
3609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3610 /* end confdefs.h. */
3611
3612 int
3613 main (void)
3614 {
3615
3616 ;
3617 return 0;
3618 }
3619 _ACEOF
3620 ac_clean_files_save=$ac_clean_files
3621 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3622 # Try to create an executable without -o first, disregard a.out.
3623 # It will help us diagnose broken compilers, and finding out an intuition
3624 # of exeext.
3625 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3626 printf %s "checking whether the C compiler works... " >&6; }
3627 ac_link_default=`printf '%s\n' "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3628
3629 # The possible output files:
3630 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3631
3632 ac_rmfiles=
3633 for ac_file in $ac_files
3634 do
3635 case $ac_file in
3636 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3637 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3638 esac
3639 done
3640 rm -f $ac_rmfiles
3641
3642 if { { ac_try="$ac_link_default"
3643 case "(($ac_try" in
3644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3645 *) ac_try_echo=$ac_try;;
3646 esac
3647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3648 printf '%s\n' "$ac_try_echo"; } >&5
3649 (eval "$ac_link_default") 2>&5
3650 ac_status=$?
3651 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3652 test $ac_status = 0; }
3653 then :
3654 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3655 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3656 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3657 # so that the user can short-circuit this test for compilers unknown to
3658 # Autoconf.
3659 for ac_file in $ac_files ''
3660 do
3661 test -f "$ac_file" || continue
3662 case $ac_file in
3663 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3664 ;;
3665 [ab].out )
3666 # We found the default executable, but exeext='' is most
3667 # certainly right.
3668 break;;
3669 *.* )
3670 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3671 then :; else
3672 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3673 fi
3674 # We set ac_cv_exeext here because the later test for it is not
3675 # safe: cross compilers may not add the suffix if given an '-o'
3676 # argument, so we may need to know it at that point already.
3677 # Even if this section looks crufty: it has the advantage of
3678 # actually working.
3679 break;;
3680 * )
3681 break;;
3682 esac
3683 done
3684 test "$ac_cv_exeext" = no && ac_cv_exeext=
3685
3686 else case e in #(
3687 e) ac_file='' ;;
3688 esac
3689 fi
3690 if test -z "$ac_file"
3691 then :
3692 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3693 printf '%s\n' "no" >&6; }
3694 printf '%s\n' "$as_me: failed program was:" >&5
3695 sed 's/^/| /' conftest.$ac_ext >&5
3696
3697 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3698 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
3699 as_fn_error 77 "C compiler cannot create executables
3700 See 'config.log' for more details" "$LINENO" 5; }
3701 else case e in #(
3702 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3703 printf '%s\n' "yes" >&6; } ;;
3704 esac
3705 fi
3706 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3707 printf %s "checking for C compiler default output file name... " >&6; }
3708 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3709 printf '%s\n' "$ac_file" >&6; }
3710 ac_exeext=$ac_cv_exeext
3711
3712 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3713 ac_clean_files=$ac_clean_files_save
3714 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3715 printf %s "checking for suffix of executables... " >&6; }
3716 if { { ac_try="$ac_link"
3717 case "(($ac_try" in
3718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3719 *) ac_try_echo=$ac_try;;
3720 esac
3721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3722 printf '%s\n' "$ac_try_echo"; } >&5
3723 (eval "$ac_link") 2>&5
3724 ac_status=$?
3725 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3726 test $ac_status = 0; }
3727 then :
3728 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3729 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3730 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3731 # 'rm'.
3732 for ac_file in conftest.exe conftest conftest.*; do
3733 test -f "$ac_file" || continue
3734 case $ac_file in
3735 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3736 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3737 break;;
3738 * ) break;;
3739 esac
3740 done
3741 else case e in #(
3742 e) { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3743 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
3744 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3745 See 'config.log' for more details" "$LINENO" 5; } ;;
3746 esac
3747 fi
3748 rm -f conftest conftest$ac_cv_exeext
3749 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3750 printf '%s\n' "$ac_cv_exeext" >&6; }
3751
3752 rm -f conftest.$ac_ext
3753 EXEEXT=$ac_cv_exeext
3754 ac_exeext=$EXEEXT
3755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756 /* end confdefs.h. */
3757 #include <stdio.h>
3758 int
3759 main (void)
3760 {
3761 FILE *f = fopen ("conftest.out", "w");
3762 if (!f)
3763 return 1;
3764 return ferror (f) || fclose (f) != 0;
3765
3766 ;
3767 return 0;
3768 }
3769 _ACEOF
3770 ac_clean_files="$ac_clean_files conftest.out"
3771 # Check that the compiler produces executables we can run. If not, either
3772 # the compiler is broken, or we cross compile.
3773 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3774 printf %s "checking whether we are cross compiling... " >&6; }
3775 if test "$cross_compiling" != yes; then
3776 { { ac_try="$ac_link"
3777 case "(($ac_try" in
3778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3779 *) ac_try_echo=$ac_try;;
3780 esac
3781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3782 printf '%s\n' "$ac_try_echo"; } >&5
3783 (eval "$ac_link") 2>&5
3784 ac_status=$?
3785 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3786 test $ac_status = 0; }
3787 if { ac_try='./conftest$ac_cv_exeext'
3788 { { case "(($ac_try" in
3789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3790 *) ac_try_echo=$ac_try;;
3791 esac
3792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3793 printf '%s\n' "$ac_try_echo"; } >&5
3794 (eval "$ac_try") 2>&5
3795 ac_status=$?
3796 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3797 test $ac_status = 0; }; }; then
3798 cross_compiling=no
3799 else
3800 if test "$cross_compiling" = maybe; then
3801 cross_compiling=yes
3802 else
3803 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3804 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
3805 as_fn_error 77 "cannot run C compiled programs.
3806 If you meant to cross compile, use '--host'.
3807 See 'config.log' for more details" "$LINENO" 5; }
3808 fi
3809 fi
3810 fi
3811 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3812 printf '%s\n' "$cross_compiling" >&6; }
3813
3814 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3815 conftest.o conftest.obj conftest.out
3816 ac_clean_files=$ac_clean_files_save
3817 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3818 printf %s "checking for suffix of object files... " >&6; }
3819 if test ${ac_cv_objext+y}
3820 then :
3821 printf %s "(cached) " >&6
3822 else case e in #(
3823 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3824 /* end confdefs.h. */
3825
3826 int
3827 main (void)
3828 {
3829
3830 ;
3831 return 0;
3832 }
3833 _ACEOF
3834 rm -f conftest.o conftest.obj
3835 if { { ac_try="$ac_compile"
3836 case "(($ac_try" in
3837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3838 *) ac_try_echo=$ac_try;;
3839 esac
3840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3841 printf '%s\n' "$ac_try_echo"; } >&5
3842 (eval "$ac_compile") 2>&5
3843 ac_status=$?
3844 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3845 test $ac_status = 0; }
3846 then :
3847 for ac_file in conftest.o conftest.obj conftest.*; do
3848 test -f "$ac_file" || continue;
3849 case $ac_file in
3850 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3851 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3852 break;;
3853 esac
3854 done
3855 else case e in #(
3856 e) printf '%s\n' "$as_me: failed program was:" >&5
3857 sed 's/^/| /' conftest.$ac_ext >&5
3858
3859 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3860 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
3861 as_fn_error $? "cannot compute suffix of object files: cannot compile
3862 See 'config.log' for more details" "$LINENO" 5; } ;;
3863 esac
3864 fi
3865 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3866 esac
3867 fi
3868 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3869 printf '%s\n' "$ac_cv_objext" >&6; }
3870 OBJEXT=$ac_cv_objext
3871 ac_objext=$OBJEXT
3872 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3873 printf %s "checking whether the compiler supports GNU C... " >&6; }
3874 if test ${ac_cv_c_compiler_gnu+y}
3875 then :
3876 printf %s "(cached) " >&6
3877 else case e in #(
3878 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3879 /* end confdefs.h. */
3880
3881 int
3882 main (void)
3883 {
3884 #ifndef __GNUC__
3885 choke me
3886 #endif
3887
3888 ;
3889 return 0;
3890 }
3891 _ACEOF
3892 if ac_fn_c_try_compile "$LINENO"
3893 then :
3894 ac_compiler_gnu=yes
3895 else case e in #(
3896 e) ac_compiler_gnu=no ;;
3897 esac
3898 fi
3899 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3900 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3901 ;;
3902 esac
3903 fi
3904 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3905 printf '%s\n' "$ac_cv_c_compiler_gnu" >&6; }
3906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3907
3908 if test $ac_compiler_gnu = yes; then
3909 GCC=yes
3910 else
3911 GCC=
3912 fi
3913 ac_test_CFLAGS=${CFLAGS+y}
3914 ac_save_CFLAGS=$CFLAGS
3915 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3916 printf %s "checking whether $CC accepts -g... " >&6; }
3917 if test ${ac_cv_prog_cc_g+y}
3918 then :
3919 printf %s "(cached) " >&6
3920 else case e in #(
3921 e) ac_save_c_werror_flag=$ac_c_werror_flag
3922 ac_c_werror_flag=yes
3923 ac_cv_prog_cc_g=no
3924 CFLAGS="-g"
3925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3926 /* end confdefs.h. */
3927
3928 int
3929 main (void)
3930 {
3931
3932 ;
3933 return 0;
3934 }
3935 _ACEOF
3936 if ac_fn_c_try_compile "$LINENO"
3937 then :
3938 ac_cv_prog_cc_g=yes
3939 else case e in #(
3940 e) CFLAGS=""
3941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3942 /* end confdefs.h. */
3943
3944 int
3945 main (void)
3946 {
3947
3948 ;
3949 return 0;
3950 }
3951 _ACEOF
3952 if ac_fn_c_try_compile "$LINENO"
3953 then :
3954
3955 else case e in #(
3956 e) ac_c_werror_flag=$ac_save_c_werror_flag
3957 CFLAGS="-g"
3958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3959 /* end confdefs.h. */
3960
3961 int
3962 main (void)
3963 {
3964
3965 ;
3966 return 0;
3967 }
3968 _ACEOF
3969 if ac_fn_c_try_compile "$LINENO"
3970 then :
3971 ac_cv_prog_cc_g=yes
3972 fi
3973 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3974 esac
3975 fi
3976 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3977 esac
3978 fi
3979 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3980 ac_c_werror_flag=$ac_save_c_werror_flag ;;
3981 esac
3982 fi
3983 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3984 printf '%s\n' "$ac_cv_prog_cc_g" >&6; }
3985 if test $ac_test_CFLAGS; then
3986 CFLAGS=$ac_save_CFLAGS
3987 elif test $ac_cv_prog_cc_g = yes; then
3988 if test "$GCC" = yes; then
3989 CFLAGS="-g -O2"
3990 else
3991 CFLAGS="-g"
3992 fi
3993 else
3994 if test "$GCC" = yes; then
3995 CFLAGS="-O2"
3996 else
3997 CFLAGS=
3998 fi
3999 fi
4000 ac_prog_cc_stdc=no
4001 if test x$ac_prog_cc_stdc = xno
4002 then :
4003 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C23 features" >&5
4004 printf %s "checking for $CC option to enable C23 features... " >&6; }
4005 if test ${ac_cv_prog_cc_c23+y}
4006 then :
4007 printf %s "(cached) " >&6
4008 else case e in #(
4009 e) ac_cv_prog_cc_c23=no
4010 ac_save_CC=$CC
4011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4012 /* end confdefs.h. */
4013 $ac_c_conftest_c23_program
4014 _ACEOF
4015 for ac_arg in '' -std=gnu23
4016 do
4017 CC="$ac_save_CC $ac_arg"
4018 if ac_fn_c_try_compile "$LINENO"
4019 then :
4020 ac_cv_prog_cc_c23=$ac_arg
4021 fi
4022 rm -f core conftest.err conftest.$ac_objext conftest.beam
4023 test "x$ac_cv_prog_cc_c23" != "xno" && break
4024 done
4025 rm -f conftest.$ac_ext
4026 CC=$ac_save_CC ;;
4027 esac
4028 fi
4029
4030 if test "x$ac_cv_prog_cc_c23" = xno
4031 then :
4032 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4033 printf '%s\n' "unsupported" >&6; }
4034 else case e in #(
4035 e) if test "x$ac_cv_prog_cc_c23" = x
4036 then :
4037 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4038 printf '%s\n' "none needed" >&6; }
4039 else case e in #(
4040 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c23" >&5
4041 printf '%s\n' "$ac_cv_prog_cc_c23" >&6; }
4042 CC="$CC $ac_cv_prog_cc_c23" ;;
4043 esac
4044 fi
4045 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c23
4046 ac_prog_cc_stdc=c23 ;;
4047 esac
4048 fi
4049 fi
4050 if test x$ac_prog_cc_stdc = xno
4051 then :
4052 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4053 printf %s "checking for $CC option to enable C11 features... " >&6; }
4054 if test ${ac_cv_prog_cc_c11+y}
4055 then :
4056 printf %s "(cached) " >&6
4057 else case e in #(
4058 e) ac_cv_prog_cc_c11=no
4059 ac_save_CC=$CC
4060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4061 /* end confdefs.h. */
4062 $ac_c_conftest_c11_program
4063 _ACEOF
4064 for ac_arg in '' -std=gnu11 -std:c11
4065 do
4066 CC="$ac_save_CC $ac_arg"
4067 if ac_fn_c_try_compile "$LINENO"
4068 then :
4069 ac_cv_prog_cc_c11=$ac_arg
4070 fi
4071 rm -f core conftest.err conftest.$ac_objext conftest.beam
4072 test "x$ac_cv_prog_cc_c11" != "xno" && break
4073 done
4074 rm -f conftest.$ac_ext
4075 CC=$ac_save_CC ;;
4076 esac
4077 fi
4078
4079 if test "x$ac_cv_prog_cc_c11" = xno
4080 then :
4081 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4082 printf '%s\n' "unsupported" >&6; }
4083 else case e in #(
4084 e) if test "x$ac_cv_prog_cc_c11" = x
4085 then :
4086 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4087 printf '%s\n' "none needed" >&6; }
4088 else case e in #(
4089 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4090 printf '%s\n' "$ac_cv_prog_cc_c11" >&6; }
4091 CC="$CC $ac_cv_prog_cc_c11" ;;
4092 esac
4093 fi
4094 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4095 ac_prog_cc_stdc=c11 ;;
4096 esac
4097 fi
4098 fi
4099 if test x$ac_prog_cc_stdc = xno
4100 then :
4101 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4102 printf %s "checking for $CC option to enable C99 features... " >&6; }
4103 if test ${ac_cv_prog_cc_c99+y}
4104 then :
4105 printf %s "(cached) " >&6
4106 else case e in #(
4107 e) ac_cv_prog_cc_c99=no
4108 ac_save_CC=$CC
4109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4110 /* end confdefs.h. */
4111 $ac_c_conftest_c99_program
4112 _ACEOF
4113 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4114 do
4115 CC="$ac_save_CC $ac_arg"
4116 if ac_fn_c_try_compile "$LINENO"
4117 then :
4118 ac_cv_prog_cc_c99=$ac_arg
4119 fi
4120 rm -f core conftest.err conftest.$ac_objext conftest.beam
4121 test "x$ac_cv_prog_cc_c99" != "xno" && break
4122 done
4123 rm -f conftest.$ac_ext
4124 CC=$ac_save_CC ;;
4125 esac
4126 fi
4127
4128 if test "x$ac_cv_prog_cc_c99" = xno
4129 then :
4130 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4131 printf '%s\n' "unsupported" >&6; }
4132 else case e in #(
4133 e) if test "x$ac_cv_prog_cc_c99" = x
4134 then :
4135 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4136 printf '%s\n' "none needed" >&6; }
4137 else case e in #(
4138 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4139 printf '%s\n' "$ac_cv_prog_cc_c99" >&6; }
4140 CC="$CC $ac_cv_prog_cc_c99" ;;
4141 esac
4142 fi
4143 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4144 ac_prog_cc_stdc=c99 ;;
4145 esac
4146 fi
4147 fi
4148 if test x$ac_prog_cc_stdc = xno
4149 then :
4150 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4151 printf %s "checking for $CC option to enable C89 features... " >&6; }
4152 if test ${ac_cv_prog_cc_c89+y}
4153 then :
4154 printf %s "(cached) " >&6
4155 else case e in #(
4156 e) ac_cv_prog_cc_c89=no
4157 ac_save_CC=$CC
4158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4159 /* end confdefs.h. */
4160 $ac_c_conftest_c89_program
4161 _ACEOF
4162 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4163 do
4164 CC="$ac_save_CC $ac_arg"
4165 if ac_fn_c_try_compile "$LINENO"
4166 then :
4167 ac_cv_prog_cc_c89=$ac_arg
4168 fi
4169 rm -f core conftest.err conftest.$ac_objext conftest.beam
4170 test "x$ac_cv_prog_cc_c89" != "xno" && break
4171 done
4172 rm -f conftest.$ac_ext
4173 CC=$ac_save_CC ;;
4174 esac
4175 fi
4176
4177 if test "x$ac_cv_prog_cc_c89" = xno
4178 then :
4179 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4180 printf '%s\n' "unsupported" >&6; }
4181 else case e in #(
4182 e) if test "x$ac_cv_prog_cc_c89" = x
4183 then :
4184 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4185 printf '%s\n' "none needed" >&6; }
4186 else case e in #(
4187 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4188 printf '%s\n' "$ac_cv_prog_cc_c89" >&6; }
4189 CC="$CC $ac_cv_prog_cc_c89" ;;
4190 esac
4191 fi
4192 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4193 ac_prog_cc_stdc=c89 ;;
4194 esac
4195 fi
4196 fi
4197
4198 ac_ext=c
4199 ac_cpp='$CPP $CPPFLAGS'
4200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4203
4204
4205 ac_ext=c
4206 ac_cpp='$CPP $CPPFLAGS'
4207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4210 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4211 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4212 if test ${am_cv_prog_cc_c_o+y}
4213 then :
4214 printf %s "(cached) " >&6
4215 else case e in #(
4216 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4217 /* end confdefs.h. */
4218
4219 int
4220 main (void)
4221 {
4222
4223 ;
4224 return 0;
4225 }
4226 _ACEOF
4227 # Make sure it works both with $CC and with simple cc.
4228 # Following AC_PROG_CC_C_O, we do the test twice because some
4229 # compilers refuse to overwrite an existing .o file with -o,
4230 # though they will create one.
4231 am_cv_prog_cc_c_o=yes
4232 for am_i in 1 2; do
4233 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4234 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4235 ac_status=$?
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); } \
4238 && test -f conftest2.$ac_objext; then
4239 : OK
4240 else
4241 am_cv_prog_cc_c_o=no
4242 break
4243 fi
4244 done
4245 # aligned with autoconf, so not including core; see bug#72225.
4246 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
4247 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
4248 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
4249 unset am_i ;;
4250 esac
4251 fi
4252 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4253 printf '%s\n' "$am_cv_prog_cc_c_o" >&6; }
4254 if test "$am_cv_prog_cc_c_o" != yes; then
4255 # Losing compiler, so override with the script.
4256 # FIXME: It is wrong to rewrite CC.
4257 # But if we don't then we get into trouble of one sort or another.
4258 # A longer-term fix would be to have automake use am__CC in this case,
4259 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4260 CC="$am_aux_dir/compile $CC"
4261 fi
4262 ac_ext=c
4263 ac_cpp='$CPP $CPPFLAGS'
4264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4267
4268
4269
4270 ac_header= ac_cache=
4271 for ac_item in $ac_header_c_list
4272 do
4273 if test $ac_cache; then
4274 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4275 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4276 printf '%s\n' "#define $ac_item 1" >> confdefs.h
4277 fi
4278 ac_header= ac_cache=
4279 elif test $ac_header; then
4280 ac_cache=$ac_item
4281 else
4282 ac_header=$ac_item
4283 fi
4284 done
4285
4286
4287
4288
4289
4290
4291
4292
4293 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4294 then :
4295
4296 printf '%s\n' "#define STDC_HEADERS 1" >>confdefs.h
4297
4298 fi
4299
4300
4301
4302
4303
4304
4305 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4306 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4307 if test ${ac_cv_safe_to_define___extensions__+y}
4308 then :
4309 printf %s "(cached) " >&6
4310 else case e in #(
4311 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4312 /* end confdefs.h. */
4313
4314 # define __EXTENSIONS__ 1
4315 $ac_includes_default
4316 int
4317 main (void)
4318 {
4319
4320 ;
4321 return 0;
4322 }
4323 _ACEOF
4324 if ac_fn_c_try_compile "$LINENO"
4325 then :
4326 ac_cv_safe_to_define___extensions__=yes
4327 else case e in #(
4328 e) ac_cv_safe_to_define___extensions__=no ;;
4329 esac
4330 fi
4331 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4332 esac
4333 fi
4334 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4335 printf '%s\n' "$ac_cv_safe_to_define___extensions__" >&6; }
4336
4337 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4338 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4339 if test ${ac_cv_should_define__xopen_source+y}
4340 then :
4341 printf %s "(cached) " >&6
4342 else case e in #(
4343 e) ac_cv_should_define__xopen_source=no
4344 if test $ac_cv_header_wchar_h = yes
4345 then :
4346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4347 /* end confdefs.h. */
4348
4349 #include <wchar.h>
4350 mbstate_t x;
4351 int
4352 main (void)
4353 {
4354
4355 ;
4356 return 0;
4357 }
4358 _ACEOF
4359 if ac_fn_c_try_compile "$LINENO"
4360 then :
4361
4362 else case e in #(
4363 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4364 /* end confdefs.h. */
4365
4366 #define _XOPEN_SOURCE 500
4367 #include <wchar.h>
4368 mbstate_t x;
4369 int
4370 main (void)
4371 {
4372
4373 ;
4374 return 0;
4375 }
4376 _ACEOF
4377 if ac_fn_c_try_compile "$LINENO"
4378 then :
4379 ac_cv_should_define__xopen_source=yes
4380 fi
4381 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4382 esac
4383 fi
4384 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4385 fi ;;
4386 esac
4387 fi
4388 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4389 printf '%s\n' "$ac_cv_should_define__xopen_source" >&6; }
4390
4391 printf '%s\n' "#define _ALL_SOURCE 1" >>confdefs.h
4392
4393 printf '%s\n' "#define _COSMO_SOURCE 1" >>confdefs.h
4394
4395 printf '%s\n' "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4396
4397 printf '%s\n' "#define _GNU_SOURCE 1" >>confdefs.h
4398
4399 printf '%s\n' "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4400
4401 printf '%s\n' "#define _NETBSD_SOURCE 1" >>confdefs.h
4402
4403 printf '%s\n' "#define _OPENBSD_SOURCE 1" >>confdefs.h
4404
4405 printf '%s\n' "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4406
4407 printf '%s\n' "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4408
4409 printf '%s\n' "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4410
4411 printf '%s\n' "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4412
4413 printf '%s\n' "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
4414
4415 printf '%s\n' "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4416
4417 printf '%s\n' "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4418
4419 printf '%s\n' "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4420
4421 printf '%s\n' "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4422
4423 printf '%s\n' "#define _TANDEM_SOURCE 1" >>confdefs.h
4424
4425 if test $ac_cv_header_minix_config_h = yes
4426 then :
4427 MINIX=yes
4428 printf '%s\n' "#define _MINIX 1" >>confdefs.h
4429
4430 printf '%s\n' "#define _POSIX_SOURCE 1" >>confdefs.h
4431
4432 printf '%s\n' "#define _POSIX_1_SOURCE 2" >>confdefs.h
4433
4434 else case e in #(
4435 e) MINIX= ;;
4436 esac
4437 fi
4438 if test $ac_cv_safe_to_define___extensions__ = yes
4439 then :
4440 printf '%s\n' "#define __EXTENSIONS__ 1" >>confdefs.h
4441
4442 fi
4443 if test $ac_cv_should_define__xopen_source = yes
4444 then :
4445 printf '%s\n' "#define _XOPEN_SOURCE 500" >>confdefs.h
4446
4447 fi
4448
4449
4450
4451
4452 # Make sure we can run config.sub.
4453 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4454 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4455
4456 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4457 printf %s "checking build system type... " >&6; }
4458 if test ${ac_cv_build+y}
4459 then :
4460 printf %s "(cached) " >&6
4461 else case e in #(
4462 e) ac_build_alias=$build_alias
4463 test "x$ac_build_alias" = x &&
4464 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4465 test "x$ac_build_alias" = x &&
4466 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4467 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4468 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4469 ;;
4470 esac
4471 fi
4472 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4473 printf '%s\n' "$ac_cv_build" >&6; }
4474 case $ac_cv_build in
4475 *-*-*) ;;
4476 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4477 esac
4478 build=$ac_cv_build
4479 ac_save_IFS=$IFS; IFS='-'
4480 set x $ac_cv_build
4481 shift
4482 build_cpu=$1
4483 build_vendor=$2
4484 shift; shift
4485 # Remember, the first character of IFS is used to create $*,
4486 # except with old shells:
4487 build_os=$*
4488 IFS=$ac_save_IFS
4489 case $build_os in *\ *) build_os=`printf '%s\n' "$build_os" | sed 's/ /-/g'`;; esac
4490
4491
4492 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4493 printf %s "checking host system type... " >&6; }
4494 if test ${ac_cv_host+y}
4495 then :
4496 printf %s "(cached) " >&6
4497 else case e in #(
4498 e) if test "x$host_alias" = x; then
4499 ac_cv_host=$ac_cv_build
4500 else
4501 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4502 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4503 fi
4504 ;;
4505 esac
4506 fi
4507 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4508 printf '%s\n' "$ac_cv_host" >&6; }
4509 case $ac_cv_host in
4510 *-*-*) ;;
4511 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4512 esac
4513 host=$ac_cv_host
4514 ac_save_IFS=$IFS; IFS='-'
4515 set x $ac_cv_host
4516 shift
4517 host_cpu=$1
4518 host_vendor=$2
4519 shift; shift
4520 # Remember, the first character of IFS is used to create $*,
4521 # except with old shells:
4522 host_os=$*
4523 IFS=$ac_save_IFS
4524 case $host_os in *\ *) host_os=`printf '%s\n' "$host_os" | sed 's/ /-/g'`;; esac
4525
4526
4527
4528 am__api_version='1.18'
4529
4530
4531 # Find a good install program. We prefer a C program (faster),
4532 # so one script is as good as another. But avoid the broken or
4533 # incompatible versions:
4534 # SysV /etc/install, /usr/sbin/install
4535 # SunOS /usr/etc/install
4536 # IRIX /sbin/install
4537 # AIX /bin/install
4538 # AmigaOS /C/install, which installs bootblocks on floppy discs
4539 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4540 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4541 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4542 # OS/2's system install, which has a completely different semantic
4543 # ./install, which can be erroneously created by make from ./install.sh.
4544 # Reject install programs that cannot install multiple files.
4545 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4546 printf %s "checking for a BSD-compatible install... " >&6; }
4547 if test -z "$INSTALL"; then
4548 if test ${ac_cv_path_install+y}
4549 then :
4550 printf %s "(cached) " >&6
4551 else case e in #(
4552 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553 for as_dir in $PATH
4554 do
4555 IFS=$as_save_IFS
4556 case $as_dir in #(((
4557 '') as_dir=./ ;;
4558 */) ;;
4559 *) as_dir=$as_dir/ ;;
4560 esac
4561 # Account for fact that we put trailing slashes in our PATH walk.
4562 case $as_dir in #((
4563 ./ | /[cC]/* | \
4564 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4565 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4566 /usr/ucb/* ) ;;
4567 *)
4568 # OSF/1 and SCO ODT 3.0 have their own names for install.
4569 # Don't use installbsd from OSF/1 since it installs stuff as root
4570 # by default.
4571 for ac_prog in ginstall scoinst install; do
4572 for ac_exec_ext in '' $ac_executable_extensions; do
4573 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4574 if test $ac_prog = install &&
4575 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4576 # AIX install. It has an incompatible calling convention.
4577 :
4578 elif test $ac_prog = install &&
4579 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4580 # program-specific install script used by HP pwplus--don't use.
4581 :
4582 else
4583 rm -rf conftest.one conftest.two conftest.dir
4584 echo one > conftest.one
4585 echo two > conftest.two
4586 mkdir conftest.dir
4587 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4588 test -s conftest.one && test -s conftest.two &&
4589 test -s conftest.dir/conftest.one &&
4590 test -s conftest.dir/conftest.two
4591 then
4592 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4593 break 3
4594 fi
4595 fi
4596 fi
4597 done
4598 done
4599 ;;
4600 esac
4601
4602 done
4603 IFS=$as_save_IFS
4604
4605 rm -rf conftest.one conftest.two conftest.dir
4606 ;;
4607 esac
4608 fi
4609 if test ${ac_cv_path_install+y}; then
4610 INSTALL=$ac_cv_path_install
4611 else
4612 # As a last resort, use the slow shell script. Don't cache a
4613 # value for INSTALL within a source directory, because that will
4614 # break other packages using the cache if that directory is
4615 # removed, or if the value is a relative name.
4616 INSTALL=$ac_install_sh
4617 fi
4618 fi
4619 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4620 printf '%s\n' "$INSTALL" >&6; }
4621
4622 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4623 # It thinks the first close brace ends the variable substitution.
4624 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4625
4626 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4627
4628 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4629
4630 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
4631 printf %s "checking whether sleep supports fractional seconds... " >&6; }
4632 if test ${am_cv_sleep_fractional_seconds+y}
4633 then :
4634 printf %s "(cached) " >&6
4635 else case e in #(
4636 e) if sleep 0.001 2>/dev/null
4637 then :
4638 am_cv_sleep_fractional_seconds=yes
4639 else case e in #(
4640 e) am_cv_sleep_fractional_seconds=no ;;
4641 esac
4642 fi
4643 ;;
4644 esac
4645 fi
4646 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
4647 printf '%s\n' "$am_cv_sleep_fractional_seconds" >&6; }
4648
4649 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
4650 printf %s "checking filesystem timestamp resolution... " >&6; }
4651 if test ${am_cv_filesystem_timestamp_resolution+y}
4652 then :
4653 printf %s "(cached) " >&6
4654 else case e in #(
4655 e) # Default to the worst case.
4656 am_cv_filesystem_timestamp_resolution=2
4657
4658 # Only try to go finer than 1 sec if sleep can do it.
4659 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
4660 # - 1 sec is not much of a win compared to 2 sec, and
4661 # - it takes 2 seconds to perform the test whether 1 sec works.
4662 #
4663 # Instead, just use the default 2s on platforms that have 1s resolution,
4664 # accept the extra 1s delay when using $sleep in the Automake tests, in
4665 # exchange for not incurring the 2s delay for running the test for all
4666 # packages.
4667 #
4668 am_try_resolutions=
4669 if test "$am_cv_sleep_fractional_seconds" = yes; then
4670 # Even a millisecond often causes a bunch of false positives,
4671 # so just try a hundredth of a second. The time saved between .001 and
4672 # .01 is not terribly consequential.
4673 am_try_resolutions="0.01 0.1 $am_try_resolutions"
4674 fi
4675
4676 # In order to catch current-generation FAT out, we must *modify* files
4677 # that already exist; the *creation* timestamp is finer. Use names
4678 # that make ls -t sort them differently when they have equal
4679 # timestamps than when they have distinct timestamps, keeping
4680 # in mind that ls -t prints the *newest* file first.
4681 rm -f conftest.ts?
4682 : > conftest.ts1
4683 : > conftest.ts2
4684 : > conftest.ts3
4685
4686 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
4687 # clobber the current shell's arguments. (Outer-level square brackets
4688 # are removed by m4; they're present so that m4 does not expand
4689 # <dollar><star>; be careful, easy to get confused.)
4690 if (
4691 set X `ls -t conftest.ts[12]` &&
4692 {
4693 test "$*" != "X conftest.ts1 conftest.ts2" ||
4694 test "$*" != "X conftest.ts2 conftest.ts1";
4695 }
4696 ); then :; else
4697 # If neither matched, then we have a broken ls. This can happen
4698 # if, for instance, CONFIG_SHELL is bash and it inherits a
4699 # broken ls alias from the environment. This has actually
4700 # happened. Such a system could not be considered "sane".
4701 printf '%s\n' ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
4702 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4703 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
4704 as_fn_error $? "ls -t produces unexpected output.
4705 Make sure there is not a broken ls alias in your environment.
4706 See 'config.log' for more details" "$LINENO" 5; }
4707 fi
4708
4709 for am_try_res in $am_try_resolutions; do
4710 # Any one fine-grained sleep might happen to cross the boundary
4711 # between two values of a coarser actual resolution, but if we do
4712 # two fine-grained sleeps in a row, at least one of them will fall
4713 # entirely within a coarse interval.
4714 echo alpha > conftest.ts1
4715 sleep $am_try_res
4716 echo beta > conftest.ts2
4717 sleep $am_try_res
4718 echo gamma > conftest.ts3
4719
4720 # We assume that 'ls -t' will make use of high-resolution
4721 # timestamps if the operating system supports them at all.
4722 if (set X `ls -t conftest.ts?` &&
4723 test "$2" = conftest.ts3 &&
4724 test "$3" = conftest.ts2 &&
4725 test "$4" = conftest.ts1); then
4726 #
4727 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
4728 # because we don't need to test make.
4729 make_ok=true
4730 if test $am_try_res != 1; then
4731 # But if we've succeeded so far with a subsecond resolution, we
4732 # have one more thing to check: make. It can happen that
4733 # everything else supports the subsecond mtimes, but make doesn't;
4734 # notably on macOS, which ships make 3.81 from 2006 (the last one
4735 # released under GPLv2). https://bugs.gnu.org/68808
4736 #
4737 # We test $MAKE if it is defined in the environment, else "make".
4738 # It might get overridden later, but our hope is that in practice
4739 # it does not matter: it is the system "make" which is (by far)
4740 # the most likely to be broken, whereas if the user overrides it,
4741 # probably they did so with a better, or at least not worse, make.
4742 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
4743 #
4744 # Create a Makefile (real tab character here):
4745 rm -f conftest.mk
4746 echo 'conftest.ts1: conftest.ts2' >conftest.mk
4747 echo ' touch conftest.ts2' >>conftest.mk
4748 #
4749 # Now, running
4750 # touch conftest.ts1; touch conftest.ts2; make
4751 # should touch ts1 because ts2 is newer. This could happen by luck,
4752 # but most often, it will fail if make's support is insufficient. So
4753 # test for several consecutive successes.
4754 #
4755 # (We reuse conftest.ts[12] because we still want to modify existing
4756 # files, not create new ones, per above.)
4757 n=0
4758 make=${MAKE-make}
4759 until test $n -eq 3; do
4760 echo one > conftest.ts1
4761 sleep $am_try_res
4762 echo two > conftest.ts2 # ts2 should now be newer than ts1
4763 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
4764 make_ok=false
4765 break # out of $n loop
4766 fi
4767 n=`expr $n + 1`
4768 done
4769 fi
4770 #
4771 if $make_ok; then
4772 # Everything we know to check worked out, so call this resolution good.
4773 am_cv_filesystem_timestamp_resolution=$am_try_res
4774 break # out of $am_try_res loop
4775 fi
4776 # Otherwise, we'll go on to check the next resolution.
4777 fi
4778 done
4779 rm -f conftest.ts?
4780 # (end _am_filesystem_timestamp_resolution)
4781 ;;
4782 esac
4783 fi
4784 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
4785 printf '%s\n' "$am_cv_filesystem_timestamp_resolution" >&6; }
4786
4787 # This check should not be cached, as it may vary across builds of
4788 # different projects.
4789 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4790 printf %s "checking whether build environment is sane... " >&6; }
4791 # Reject unsafe characters in $srcdir or the absolute working directory
4792 # name. Accept space and tab only in the latter.
4793 am_lf='
4794 '
4795 case `pwd` in
4796 *[\\\"\#\$\&\'\`$am_lf]*)
4797 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4798 printf '%s\n' "no" >&6; }
4799 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4800 esac
4801 case $srcdir in
4802 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4803 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4804 printf '%s\n' "no" >&6; }
4805 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4806 esac
4807
4808 # Do 'set' in a subshell so we don't clobber the current shell's
4809 # arguments. Must try -L first in case configure is actually a
4810 # symlink; some systems play weird games with the mod time of symlinks
4811 # (eg FreeBSD returns the mod time of the symlink's containing
4812 # directory).
4813 am_build_env_is_sane=no
4814 am_has_slept=no
4815 rm -f conftest.file
4816 for am_try in 1 2; do
4817 echo "timestamp, slept: $am_has_slept" > conftest.file
4818 if (
4819 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4820 if test "$*" = "X"; then
4821 # -L didn't work.
4822 set X `ls -t "$srcdir/configure" conftest.file`
4823 fi
4824 test "$2" = conftest.file
4825 ); then
4826 am_build_env_is_sane=yes
4827 break
4828 fi
4829 # Just in case.
4830 sleep "$am_cv_filesystem_timestamp_resolution"
4831 am_has_slept=yes
4832 done
4833
4834 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
4835 printf '%s\n' "$am_build_env_is_sane" >&6; }
4836 if test "$am_build_env_is_sane" = no; then
4837 as_fn_error $? "newly created file is older than distributed files!
4838 Check your system clock" "$LINENO" 5
4839 fi
4840
4841 # If we didn't sleep, we still need to ensure time stamps of config.status and
4842 # generated files are strictly newer.
4843 am_sleep_pid=
4844 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
4845 then :
4846
4847 else case e in #(
4848 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
4849 am_sleep_pid=$!
4850 ;;
4851 esac
4852 fi
4853
4854 rm -f conftest.file
4855
4856 test "$program_prefix" != NONE &&
4857 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4858 # Use a double $ so make ignores it.
4859 test "$program_suffix" != NONE &&
4860 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4861 # Double any \ or $.
4862 # By default was 's,x,x', remove it if useless.
4863 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4864 program_transform_name=`printf '%s\n' "$program_transform_name" | sed "$ac_script"`
4865
4866
4867 if test x"${MISSING+set}" != xset; then
4868 MISSING="\${SHELL} '$am_aux_dir/missing'"
4869 fi
4870 # Use eval to expand $SHELL
4871 if eval "$MISSING --is-lightweight"; then
4872 am_missing_run="$MISSING "
4873 else
4874 am_missing_run=
4875 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4876 printf '%s\n' "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4877 fi
4878
4879 if test x"${install_sh+set}" != xset; then
4880 case $am_aux_dir in
4881 *\ * | *\ *)
4882 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4883 *)
4884 install_sh="\${SHELL} $am_aux_dir/install-sh"
4885 esac
4886 fi
4887
4888 # Installed binaries are usually stripped using 'strip' when the user
4889 # run "make install-strip". However 'strip' might not be the right
4890 # tool to use in cross-compilation environments, therefore Automake
4891 # will honor the 'STRIP' environment variable to overrule this program.
4892 if test "$cross_compiling" != no; then
4893 if test -n "$ac_tool_prefix"; then
4894 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4895 set dummy ${ac_tool_prefix}strip; ac_word=$2
4896 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4897 printf %s "checking for $ac_word... " >&6; }
4898 if test ${ac_cv_prog_STRIP+y}
4899 then :
4900 printf %s "(cached) " >&6
4901 else case e in #(
4902 e) if test -n "$STRIP"; then
4903 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4904 else
4905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 for as_dir in $PATH
4907 do
4908 IFS=$as_save_IFS
4909 case $as_dir in #(((
4910 '') as_dir=./ ;;
4911 */) ;;
4912 *) as_dir=$as_dir/ ;;
4913 esac
4914 for ac_exec_ext in '' $ac_executable_extensions; do
4915 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4916 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4917 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4918 break 2
4919 fi
4920 done
4921 done
4922 IFS=$as_save_IFS
4923
4924 fi ;;
4925 esac
4926 fi
4927 STRIP=$ac_cv_prog_STRIP
4928 if test -n "$STRIP"; then
4929 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4930 printf '%s\n' "$STRIP" >&6; }
4931 else
4932 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4933 printf '%s\n' "no" >&6; }
4934 fi
4935
4936
4937 fi
4938 if test -z "$ac_cv_prog_STRIP"; then
4939 ac_ct_STRIP=$STRIP
4940 # Extract the first word of "strip", so it can be a program name with args.
4941 set dummy strip; ac_word=$2
4942 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4943 printf %s "checking for $ac_word... " >&6; }
4944 if test ${ac_cv_prog_ac_ct_STRIP+y}
4945 then :
4946 printf %s "(cached) " >&6
4947 else case e in #(
4948 e) if test -n "$ac_ct_STRIP"; then
4949 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4950 else
4951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952 for as_dir in $PATH
4953 do
4954 IFS=$as_save_IFS
4955 case $as_dir in #(((
4956 '') as_dir=./ ;;
4957 */) ;;
4958 *) as_dir=$as_dir/ ;;
4959 esac
4960 for ac_exec_ext in '' $ac_executable_extensions; do
4961 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4962 ac_cv_prog_ac_ct_STRIP="strip"
4963 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4964 break 2
4965 fi
4966 done
4967 done
4968 IFS=$as_save_IFS
4969
4970 fi ;;
4971 esac
4972 fi
4973 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4974 if test -n "$ac_ct_STRIP"; then
4975 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4976 printf '%s\n' "$ac_ct_STRIP" >&6; }
4977 else
4978 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4979 printf '%s\n' "no" >&6; }
4980 fi
4981
4982 if test "x$ac_ct_STRIP" = x; then
4983 STRIP=":"
4984 else
4985 case $cross_compiling:$ac_tool_warned in
4986 yes:)
4987 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4988 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4989 ac_tool_warned=yes ;;
4990 esac
4991 STRIP=$ac_ct_STRIP
4992 fi
4993 else
4994 STRIP="$ac_cv_prog_STRIP"
4995 fi
4996
4997 fi
4998 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4999
5000
5001 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
5002 printf %s "checking for a race-free mkdir -p... " >&6; }
5003 if test -z "$MKDIR_P"; then
5004 if test ${ac_cv_path_mkdir+y}
5005 then :
5006 printf %s "(cached) " >&6
5007 else case e in #(
5008 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5009 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5010 do
5011 IFS=$as_save_IFS
5012 case $as_dir in #(((
5013 '') as_dir=./ ;;
5014 */) ;;
5015 *) as_dir=$as_dir/ ;;
5016 esac
5017 for ac_prog in mkdir gmkdir; do
5018 for ac_exec_ext in '' $ac_executable_extensions; do
5019 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
5020 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
5021 'mkdir ('*'coreutils) '* | \
5022 *'BusyBox '* | \
5023 'mkdir (fileutils) '4.1*)
5024 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
5025 break 3;;
5026 esac
5027 done
5028 done
5029 done
5030 IFS=$as_save_IFS
5031 ;;
5032 esac
5033 fi
5034
5035 test -d ./--version && rmdir ./--version
5036 if test ${ac_cv_path_mkdir+y}; then
5037 MKDIR_P="$ac_cv_path_mkdir -p"
5038 else
5039 # As a last resort, use plain mkdir -p,
5040 # in the hope it doesn't have the bugs of ancient mkdir.
5041 MKDIR_P='mkdir -p'
5042 fi
5043 fi
5044 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5045 printf '%s\n' "$MKDIR_P" >&6; }
5046
5047 for ac_prog in gawk mawk nawk awk 'busybox awk'
5048 do
5049 # Extract the first word of "$ac_prog", so it can be a program name with args.
5050 set dummy $ac_prog; ac_word=$2
5051 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5052 printf %s "checking for $ac_word... " >&6; }
5053 if test ${ac_cv_prog_AWK+y}
5054 then :
5055 printf %s "(cached) " >&6
5056 else case e in #(
5057 e) if test -n "$AWK"; then
5058 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5059 else
5060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061 for as_dir in $PATH
5062 do
5063 IFS=$as_save_IFS
5064 case $as_dir in #(((
5065 '') as_dir=./ ;;
5066 */) ;;
5067 *) as_dir=$as_dir/ ;;
5068 esac
5069 for ac_exec_ext in '' $ac_executable_extensions; do
5070 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5071 ac_cv_prog_AWK="$ac_prog"
5072 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5073 break 2
5074 fi
5075 done
5076 done
5077 IFS=$as_save_IFS
5078
5079 fi ;;
5080 esac
5081 fi
5082 AWK=$ac_cv_prog_AWK
5083 if test -n "$AWK"; then
5084 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5085 printf '%s\n' "$AWK" >&6; }
5086 else
5087 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5088 printf '%s\n' "no" >&6; }
5089 fi
5090
5091
5092 test -n "$AWK" && break
5093 done
5094
5095 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5096 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5097 set x ${MAKE-make}
5098 ac_make=`printf '%s\n' "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5099 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
5100 then :
5101 printf %s "(cached) " >&6
5102 else case e in #(
5103 e) cat >conftest.make <<\_ACEOF
5104 SHELL = /bin/sh
5105 all:
5106 @printf '%s\n' '@@@%%%=$(MAKE)=@@@%%%'
5107 _ACEOF
5108 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5109 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5110 *@@@%%%=?*=@@@%%%*)
5111 eval ac_cv_prog_make_${ac_make}_set=yes;;
5112 *)
5113 eval ac_cv_prog_make_${ac_make}_set=no;;
5114 esac
5115 rm -f conftest.make ;;
5116 esac
5117 fi
5118 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5119 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5120 printf '%s\n' "yes" >&6; }
5121 SET_MAKE=
5122 else
5123 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5124 printf '%s\n' "no" >&6; }
5125 SET_MAKE="MAKE=${MAKE-make}"
5126 fi
5127
5128 rm -rf .tst 2>/dev/null
5129 mkdir .tst 2>/dev/null
5130 if test -d .tst; then
5131 am__leading_dot=.
5132 else
5133 am__leading_dot=_
5134 fi
5135 rmdir .tst 2>/dev/null
5136
5137 DEPDIR="${am__leading_dot}deps"
5138
5139 ac_config_commands="$ac_config_commands depfiles"
5140
5141 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
5142 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
5143 cat > confinc.mk << 'END'
5144 am__doit:
5145 @echo this is the am__doit target >confinc.out
5146 .PHONY: am__doit
5147 END
5148 am__include="#"
5149 am__quote=
5150 # BSD make does it like this.
5151 echo '.include "confinc.mk" # ignored' > confmf.BSD
5152 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
5153 echo 'include confinc.mk # ignored' > confmf.GNU
5154 _am_result=no
5155 for s in GNU BSD; do
5156 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
5157 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
5158 ac_status=$?
5159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160 (exit $ac_status); }
5161 case $?:`cat confinc.out 2>/dev/null` in #(
5162 '0:this is the am__doit target') :
5163 case $s in #(
5164 BSD) :
5165 am__include='.include' am__quote='"' ;; #(
5166 *) :
5167 am__include='include' am__quote='' ;;
5168 esac ;; #(
5169 *) :
5170 ;;
5171 esac
5172 if test "$am__include" != "#"; then
5173 _am_result="yes ($s style)"
5174 break
5175 fi
5176 done
5177 rm -f confinc.* confmf.*
5178 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
5179 printf '%s\n' "${_am_result}" >&6; }
5180
5181 # Check whether --enable-dependency-tracking was given.
5182 if test ${enable_dependency_tracking+y}
5183 then :
5184 enableval=$enable_dependency_tracking;
5185 fi
5186
5187 if test "x$enable_dependency_tracking" != xno; then
5188 am_depcomp="$ac_aux_dir/depcomp"
5189 AMDEPBACKSLASH='\'
5190 am__nodep='_no'
5191 fi
5192 if test "x$enable_dependency_tracking" != xno; then
5193 AMDEP_TRUE=
5194 AMDEP_FALSE='#'
5195 else
5196 AMDEP_TRUE='#'
5197 AMDEP_FALSE=
5198 fi
5199
5200
5201 AM_DEFAULT_VERBOSITY=1
5202 # Check whether --enable-silent-rules was given.
5203 if test ${enable_silent_rules+y}
5204 then :
5205 enableval=$enable_silent_rules;
5206 fi
5207
5208 am_make=${MAKE-make}
5209 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
5210 printf %s "checking whether $am_make supports nested variables... " >&6; }
5211 if test ${am_cv_make_support_nested_variables+y}
5212 then :
5213 printf %s "(cached) " >&6
5214 else case e in #(
5215 e) if printf '%s\n' 'TRUE=$(BAR$(V))
5216 BAR0=false
5217 BAR1=true
5218 V=1
5219 am__doit:
5220 @$(TRUE)
5221 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
5222 am_cv_make_support_nested_variables=yes
5223 else
5224 am_cv_make_support_nested_variables=no
5225 fi ;;
5226 esac
5227 fi
5228 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
5229 printf '%s\n' "$am_cv_make_support_nested_variables" >&6; }
5230 AM_BACKSLASH='\'
5231
5232 am__rm_f_notfound=
5233 if (rm -f && rm -fr && rm -rf) 2>/dev/null
5234 then :
5235
5236 else case e in #(
5237 e) am__rm_f_notfound='""' ;;
5238 esac
5239 fi
5240
5241
5242 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
5243 printf %s "checking xargs -n works... " >&6; }
5244 if test ${am_cv_xargs_n_works+y}
5245 then :
5246 printf %s "(cached) " >&6
5247 else case e in #(
5248 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
5249 3"
5250 then :
5251 am_cv_xargs_n_works=yes
5252 else case e in #(
5253 e) am_cv_xargs_n_works=no ;;
5254 esac
5255 fi ;;
5256 esac
5257 fi
5258 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
5259 printf '%s\n' "$am_cv_xargs_n_works" >&6; }
5260 if test "$am_cv_xargs_n_works" = yes
5261 then :
5262 am__xargs_n='xargs -n'
5263 else case e in #(
5264 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
5265 ;;
5266 esac
5267 fi
5268
5269 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5270 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5271 # is not polluted with repeated "-I."
5272 am__isrc=' -I$(srcdir)'
5273 # test to see if srcdir already configured
5274 if test -f $srcdir/config.status; then
5275 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5276 fi
5277 fi
5278
5279 # test whether we have cygpath
5280 if test -z "$CYGPATH_W"; then
5281 if (cygpath --version) >/dev/null 2>/dev/null; then
5282 CYGPATH_W='cygpath -w'
5283 else
5284 CYGPATH_W=echo
5285 fi
5286 fi
5287
5288
5289 # Define the identity of the package.
5290 PACKAGE='lame'
5291 VERSION='4.0'
5292
5293
5294 printf '%s\n' "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
5295
5296
5297 printf '%s\n' "#define VERSION \"$VERSION\"" >>confdefs.h
5298
5299 # Some tools Automake needs.
5300
5301 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5302
5303
5304 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5305
5306
5307 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5308
5309
5310 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5311
5312
5313 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5314
5315 # For better backward compatibility. To be removed once Automake 1.9.x
5316 # dies out for good. For more background, see:
5317 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5318 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5319 mkdir_p='$(MKDIR_P)'
5320
5321 # We need awk for the "check" target (and possibly the TAP driver). The
5322 # system "awk" is bad on some platforms.
5323 # Always define AMTAR for backward compatibility. Yes, it's still used
5324 # in the wild :-( We should find a proper way to deprecate it ...
5325 AMTAR='$${TAR-tar}'
5326
5327
5328 # We'll loop over all known methods to create a tar archive until one works.
5329 _am_tools='gnutar plaintar pax cpio none'
5330
5331 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
5332 # There is notably a 21 bits limit for the UID and the GID. In fact,
5333 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
5334 # and bug#13588).
5335 am_max_uid=2097151 # 2^21 - 1
5336 am_max_gid=$am_max_uid
5337 # The $UID and $GID variables are not portable, so we need to resort
5338 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
5339 # below are definitely unexpected, so allow the users to see them
5340 # (that is, avoid stderr redirection).
5341 am_uid=`id -u || echo unknown`
5342 am_gid=`id -g || echo unknown`
5343 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
5344 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
5345 if test x$am_uid = xunknown; then
5346 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
5347 printf '%s\n' "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
5348 elif test $am_uid -le $am_max_uid; then
5349 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5350 printf '%s\n' "yes" >&6; }
5351 else
5352 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5353 printf '%s\n' "no" >&6; }
5354 _am_tools=none
5355 fi
5356 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
5357 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
5358 if test x$gm_gid = xunknown; then
5359 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
5360 printf '%s\n' "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
5361 elif test $am_gid -le $am_max_gid; then
5362 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5363 printf '%s\n' "yes" >&6; }
5364 else
5365 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5366 printf '%s\n' "no" >&6; }
5367 _am_tools=none
5368 fi
5369
5370 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
5371 printf %s "checking how to create a ustar tar archive... " >&6; }
5372
5373 # Go ahead even if we have the value already cached. We do so because we
5374 # need to set the values for the 'am__tar' and 'am__untar' variables.
5375 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
5376
5377 for _am_tool in $_am_tools; do
5378 case $_am_tool in
5379 gnutar)
5380 for _am_tar in tar gnutar gtar; do
5381 { echo "$as_me:$LINENO: $_am_tar --version" >&5
5382 ($_am_tar --version) >&5 2>&5
5383 ac_status=$?
5384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385 (exit $ac_status); } && break
5386 done
5387 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
5388 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
5389 am__untar="$_am_tar -xf -"
5390 ;;
5391 plaintar)
5392 # Must skip GNU tar: if it does not support --format= it doesn't create
5393 # ustar tarball either.
5394 (tar --version) >/dev/null 2>&1 && continue
5395 am__tar='tar chf - "$$tardir"'
5396 am__tar_='tar chf - "$tardir"'
5397 am__untar='tar xf -'
5398 ;;
5399 pax)
5400 am__tar='pax -L -x ustar -w "$$tardir"'
5401 am__tar_='pax -L -x ustar -w "$tardir"'
5402 am__untar='pax -r'
5403 ;;
5404 cpio)
5405 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
5406 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
5407 am__untar='cpio -i -H ustar -d'
5408 ;;
5409 none)
5410 am__tar=false
5411 am__tar_=false
5412 am__untar=false
5413 ;;
5414 esac
5415
5416 # If the value was cached, stop now. We just wanted to have am__tar
5417 # and am__untar set.
5418 test -n "${am_cv_prog_tar_ustar}" && break
5419
5420 # tar/untar a dummy directory, and stop if the command works.
5421 rm -rf conftest.dir
5422 mkdir conftest.dir
5423 echo GrepMe > conftest.dir/file
5424 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
5425 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
5426 ac_status=$?
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); }
5429 rm -rf conftest.dir
5430 if test -s conftest.tar; then
5431 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
5432 ($am__untar <conftest.tar) >&5 2>&5
5433 ac_status=$?
5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435 (exit $ac_status); }
5436 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
5437 (cat conftest.dir/file) >&5 2>&5
5438 ac_status=$?
5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440 (exit $ac_status); }
5441 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
5442 fi
5443 done
5444 rm -rf conftest.dir
5445
5446 if test ${am_cv_prog_tar_ustar+y}
5447 then :
5448 printf %s "(cached) " >&6
5449 else case e in #(
5450 e) am_cv_prog_tar_ustar=$_am_tool ;;
5451 esac
5452 fi
5453
5454 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
5455 printf '%s\n' "$am_cv_prog_tar_ustar" >&6; }
5456
5457
5458
5459
5460
5461 depcc="$CC" am_compiler_list=
5462
5463 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5464 printf %s "checking dependency style of $depcc... " >&6; }
5465 if test ${am_cv_CC_dependencies_compiler_type+y}
5466 then :
5467 printf %s "(cached) " >&6
5468 else case e in #(
5469 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5470 # We make a subdir and do the tests there. Otherwise we can end up
5471 # making bogus files that we don't know about and never remove. For
5472 # instance it was reported that on HP-UX the gcc test will end up
5473 # making a dummy file named 'D' -- because '-MD' means "put the output
5474 # in D".
5475 rm -rf conftest.dir
5476 mkdir conftest.dir
5477 # Copy depcomp to subdir because otherwise we won't find it if we're
5478 # using a relative directory.
5479 cp "$am_depcomp" conftest.dir
5480 cd conftest.dir
5481 # We will build objects and dependencies in a subdirectory because
5482 # it helps to detect inapplicable dependency modes. For instance
5483 # both Tru64's cc and ICC support -MD to output dependencies as a
5484 # side effect of compilation, but ICC will put the dependencies in
5485 # the current directory while Tru64 will put them in the object
5486 # directory.
5487 mkdir sub
5488
5489 am_cv_CC_dependencies_compiler_type=none
5490 if test "$am_compiler_list" = ""; then
5491 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5492 fi
5493 am__universal=false
5494 case " $depcc " in #(
5495 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5496 esac
5497
5498 for depmode in $am_compiler_list; do
5499 # Setup a source with many dependencies, because some compilers
5500 # like to wrap large dependency lists on column 80 (with \), and
5501 # we should not choose a depcomp mode which is confused by this.
5502 #
5503 # We need to recreate these files for each test, as the compiler may
5504 # overwrite some of them when testing with obscure command lines.
5505 # This happens at least with the AIX C compiler.
5506 : > sub/conftest.c
5507 for i in 1 2 3 4 5 6; do
5508 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5509 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5510 # Solaris 10 /bin/sh.
5511 echo '/* dummy */' > sub/conftst$i.h
5512 done
5513 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5514
5515 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5516 # mode. It turns out that the SunPro C++ compiler does not properly
5517 # handle '-M -o', and we need to detect this. Also, some Intel
5518 # versions had trouble with output in subdirs.
5519 am__obj=sub/conftest.${OBJEXT-o}
5520 am__minus_obj="-o $am__obj"
5521 case $depmode in
5522 gcc)
5523 # This depmode causes a compiler race in universal mode.
5524 test "$am__universal" = false || continue
5525 ;;
5526 nosideeffect)
5527 # After this tag, mechanisms are not by side-effect, so they'll
5528 # only be used when explicitly requested.
5529 if test "x$enable_dependency_tracking" = xyes; then
5530 continue
5531 else
5532 break
5533 fi
5534 ;;
5535 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5536 # This compiler won't grok '-c -o', but also, the minuso test has
5537 # not run yet. These depmodes are late enough in the game, and
5538 # so weak that their functioning should not be impacted.
5539 am__obj=conftest.${OBJEXT-o}
5540 am__minus_obj=
5541 ;;
5542 none) break ;;
5543 esac
5544 if depmode=$depmode \
5545 source=sub/conftest.c object=$am__obj \
5546 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5547 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5548 >/dev/null 2>conftest.err &&
5549 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5550 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5551 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5552 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5553 # icc doesn't choke on unknown options, it will just issue warnings
5554 # or remarks (even with -Werror). So we grep stderr for any message
5555 # that says an option was ignored or not supported.
5556 # When given -MP, icc 7.0 and 7.1 complain thus:
5557 # icc: Command line warning: ignoring option '-M'; no argument required
5558 # The diagnosis changed in icc 8.0:
5559 # icc: Command line remark: option '-MP' not supported
5560 if (grep 'ignoring option' conftest.err ||
5561 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5562 am_cv_CC_dependencies_compiler_type=$depmode
5563 break
5564 fi
5565 fi
5566 done
5567
5568 cd ..
5569 rm -rf conftest.dir
5570 else
5571 am_cv_CC_dependencies_compiler_type=none
5572 fi
5573 ;;
5574 esac
5575 fi
5576 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5577 printf '%s\n' "$am_cv_CC_dependencies_compiler_type" >&6; }
5578 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5579
5580 if
5581 test "x$enable_dependency_tracking" != xno \
5582 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5583 am__fastdepCC_TRUE=
5584 am__fastdepCC_FALSE='#'
5585 else
5586 am__fastdepCC_TRUE='#'
5587 am__fastdepCC_FALSE=
5588 fi
5589
5590
5591 # Variables for tags utilities; see am/tags.am
5592 if test -z "$CTAGS"; then
5593 CTAGS=ctags
5594 fi
5595
5596 if test -z "$ETAGS"; then
5597 ETAGS=etags
5598 fi
5599
5600 if test -z "$CSCOPE"; then
5601 CSCOPE=cscope
5602 fi
5603
5604
5605
5606
5607
5608
5609
5610 ac_config_headers="$ac_config_headers config.h"
5611
5612
5613
5614
5615 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5616 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5617 # Check whether --enable-maintainer-mode was given.
5618 if test ${enable_maintainer_mode+y}
5619 then :
5620 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5621 else case e in #(
5622 e) USE_MAINTAINER_MODE=no ;;
5623 esac
5624 fi
5625
5626 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5627 printf '%s\n' "$USE_MAINTAINER_MODE" >&6; }
5628 if test $USE_MAINTAINER_MODE = yes; then
5629 MAINTAINER_MODE_TRUE=
5630 MAINTAINER_MODE_FALSE='#'
5631 else
5632 MAINTAINER_MODE_TRUE='#'
5633 MAINTAINER_MODE_FALSE=
5634 fi
5635
5636 MAINT=$MAINTAINER_MODE_TRUE
5637
5638
5639 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
5640 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
5641 cat > confinc.mk << 'END'
5642 am__doit:
5643 @echo this is the am__doit target >confinc.out
5644 .PHONY: am__doit
5645 END
5646 am__include="#"
5647 am__quote=
5648 # BSD make does it like this.
5649 echo '.include "confinc.mk" # ignored' > confmf.BSD
5650 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
5651 echo 'include confinc.mk # ignored' > confmf.GNU
5652 _am_result=no
5653 for s in GNU BSD; do
5654 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
5655 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
5656 ac_status=$?
5657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658 (exit $ac_status); }
5659 case $?:`cat confinc.out 2>/dev/null` in #(
5660 '0:this is the am__doit target') :
5661 case $s in #(
5662 BSD) :
5663 am__include='.include' am__quote='"' ;; #(
5664 *) :
5665 am__include='include' am__quote='' ;;
5666 esac ;; #(
5667 *) :
5668 ;;
5669 esac
5670 if test "$am__include" != "#"; then
5671 _am_result="yes ($s style)"
5672 break
5673 fi
5674 done
5675 rm -f confinc.* confmf.*
5676 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
5677 printf '%s\n' "${_am_result}" >&6; }
5678
5679
5680
5681
5682
5683
5684
5685
5686 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5687 if test -n "$ac_tool_prefix"; then
5688 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5689 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5690 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5691 printf %s "checking for $ac_word... " >&6; }
5692 if test ${ac_cv_path_PKG_CONFIG+y}
5693 then :
5694 printf %s "(cached) " >&6
5695 else case e in #(
5696 e) case $PKG_CONFIG in
5697 [\\/]* | ?:[\\/]*)
5698 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5699 ;;
5700 *)
5701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5702 for as_dir in $PATH
5703 do
5704 IFS=$as_save_IFS
5705 case $as_dir in #(((
5706 '') as_dir=./ ;;
5707 */) ;;
5708 *) as_dir=$as_dir/ ;;
5709 esac
5710 for ac_exec_ext in '' $ac_executable_extensions; do
5711 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5712 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5713 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5714 break 2
5715 fi
5716 done
5717 done
5718 IFS=$as_save_IFS
5719
5720 ;;
5721 esac ;;
5722 esac
5723 fi
5724 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5725 if test -n "$PKG_CONFIG"; then
5726 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5727 printf '%s\n' "$PKG_CONFIG" >&6; }
5728 else
5729 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5730 printf '%s\n' "no" >&6; }
5731 fi
5732
5733
5734 fi
5735 if test -z "$ac_cv_path_PKG_CONFIG"; then
5736 ac_pt_PKG_CONFIG=$PKG_CONFIG
5737 # Extract the first word of "pkg-config", so it can be a program name with args.
5738 set dummy pkg-config; ac_word=$2
5739 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5740 printf %s "checking for $ac_word... " >&6; }
5741 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
5742 then :
5743 printf %s "(cached) " >&6
5744 else case e in #(
5745 e) case $ac_pt_PKG_CONFIG in
5746 [\\/]* | ?:[\\/]*)
5747 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5748 ;;
5749 *)
5750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5751 for as_dir in $PATH
5752 do
5753 IFS=$as_save_IFS
5754 case $as_dir in #(((
5755 '') as_dir=./ ;;
5756 */) ;;
5757 *) as_dir=$as_dir/ ;;
5758 esac
5759 for ac_exec_ext in '' $ac_executable_extensions; do
5760 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5761 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5762 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5763 break 2
5764 fi
5765 done
5766 done
5767 IFS=$as_save_IFS
5768
5769 ;;
5770 esac ;;
5771 esac
5772 fi
5773 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5774 if test -n "$ac_pt_PKG_CONFIG"; then
5775 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5776 printf '%s\n' "$ac_pt_PKG_CONFIG" >&6; }
5777 else
5778 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5779 printf '%s\n' "no" >&6; }
5780 fi
5781
5782 if test "x$ac_pt_PKG_CONFIG" = x; then
5783 PKG_CONFIG=""
5784 else
5785 case $cross_compiling:$ac_tool_warned in
5786 yes:)
5787 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5788 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5789 ac_tool_warned=yes ;;
5790 esac
5791 PKG_CONFIG=$ac_pt_PKG_CONFIG
5792 fi
5793 else
5794 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5795 fi
5796
5797 fi
5798 if test -n "$PKG_CONFIG"; then
5799 _pkg_min_version=0.9.0
5800 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5801 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5802 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5803 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5804 printf '%s\n' "yes" >&6; }
5805 else
5806 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5807 printf '%s\n' "no" >&6; }
5808 PKG_CONFIG=""
5809 fi
5810 fi
5811 if test -z "$PKG_CONFIG"; then
5812 as_fn_error $? "pkg-config not found" "$LINENO" 5
5813 fi
5814
5815
5816 # Check whether --with-dot was given.
5817 if test ${with_dot+y}
5818 then :
5819 withval=$with_dot; if test "x$withval" = xno
5820 then :
5821 DOT=
5822 else case e in #(
5823 e) DOT="$withval" ;;
5824 esac
5825 fi
5826 else case e in #(
5827 e) # Extract the first word of "dot", so it can be a program name with args.
5828 set dummy dot; ac_word=$2
5829 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5830 printf %s "checking for $ac_word... " >&6; }
5831 if test ${ac_cv_path_DOT+y}
5832 then :
5833 printf %s "(cached) " >&6
5834 else case e in #(
5835 e) case $DOT in
5836 [\\/]* | ?:[\\/]*)
5837 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5838 ;;
5839 *)
5840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5841 for as_dir in $PATH
5842 do
5843 IFS=$as_save_IFS
5844 case $as_dir in #(((
5845 '') as_dir=./ ;;
5846 */) ;;
5847 *) as_dir=$as_dir/ ;;
5848 esac
5849 for ac_exec_ext in '' $ac_executable_extensions; do
5850 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5851 ac_cv_path_DOT="$as_dir$ac_word$ac_exec_ext"
5852 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5853 break 2
5854 fi
5855 done
5856 done
5857 IFS=$as_save_IFS
5858
5859 ;;
5860 esac ;;
5861 esac
5862 fi
5863 DOT=$ac_cv_path_DOT
5864 if test -n "$DOT"; then
5865 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
5866 printf '%s\n' "$DOT" >&6; }
5867 else
5868 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5869 printf '%s\n' "no" >&6; }
5870 fi
5871
5872 ;;
5873 esac
5874 fi
5875
5876
5877
5878 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
5879 printf %s "checking for library containing strerror... " >&6; }
5880 if test ${ac_cv_search_strerror+y}
5881 then :
5882 printf %s "(cached) " >&6
5883 else case e in #(
5884 e) ac_func_search_save_LIBS=$LIBS
5885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5886 /* end confdefs.h. */
5887
5888 /* Override any GCC internal prototype to avoid an error.
5889 Use char because int might match the return type of a GCC
5890 builtin and then its argument prototype would still apply.
5891 The 'extern "C"' is for builds by C++ compilers;
5892 although this is not generally supported in C code supporting it here
5893 has little cost and some practical benefit (sr 110532). */
5894 #ifdef __cplusplus
5895 extern "C"
5896 #endif
5897 char strerror (void);
5898 int
5899 main (void)
5900 {
5901 return strerror ();
5902 ;
5903 return 0;
5904 }
5905 _ACEOF
5906 for ac_lib in '' cposix
5907 do
5908 if test -z "$ac_lib"; then
5909 ac_res="none required"
5910 else
5911 ac_res=-l$ac_lib
5912 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5913 fi
5914 if ac_fn_c_try_link "$LINENO"
5915 then :
5916 ac_cv_search_strerror=$ac_res
5917 fi
5918 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5919 conftest$ac_exeext
5920 if test ${ac_cv_search_strerror+y}
5921 then :
5922 break
5923 fi
5924 done
5925 if test ${ac_cv_search_strerror+y}
5926 then :
5927
5928 else case e in #(
5929 e) ac_cv_search_strerror=no ;;
5930 esac
5931 fi
5932 rm conftest.$ac_ext
5933 LIBS=$ac_func_search_save_LIBS ;;
5934 esac
5935 fi
5936 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
5937 printf '%s\n' "$ac_cv_search_strerror" >&6; }
5938 ac_res=$ac_cv_search_strerror
5939 if test "$ac_res" != no
5940 then :
5941 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5942
5943 fi
5944
5945
5946 case $host_os in
5947 *cygwin* ) CYGWIN=yes;;
5948 * ) CYGWIN=no;;
5949 esac
5950
5951 # AC_DISABLE_SHARED
5952 case `pwd` in
5953 *\ * | *\ *)
5954 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5955 printf '%s\n' "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5956 esac
5957
5958
5959
5960 macro_version='2.5.4'
5961 macro_revision='2.5.4'
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976 ltmain=$ac_aux_dir/ltmain.sh
5977
5978 # Backslashify metacharacters that are still active within
5979 # double-quoted strings.
5980 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5981
5982 # Same as above, but do not quote variable references.
5983 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5984
5985 # Sed substitution to delay expansion of an escaped shell variable in a
5986 # double_quote_subst'ed string.
5987 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5988
5989 # Sed substitution to delay expansion of an escaped single quote.
5990 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5991
5992 # Sed substitution to avoid accidental globbing in evaled expressions
5993 no_glob_subst='s/\*/\\\*/g'
5994
5995 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5996 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5997 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5998
5999 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6000 printf %s "checking how to print strings... " >&6; }
6001 # Test print first, because it will be a builtin if present.
6002 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6003 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6004 ECHO='print -r --'
6005 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6006 ECHO='printf %s\n'
6007 else
6008 # Use this function as a fallback that always works.
6009 func_fallback_echo ()
6010 {
6011 eval 'cat <<_LTECHO_EOF
6012 $1
6013 _LTECHO_EOF'
6014 }
6015 ECHO='func_fallback_echo'
6016 fi
6017
6018 # func_echo_all arg...
6019 # Invoke $ECHO with all args, space-separated.
6020 func_echo_all ()
6021 {
6022 $ECHO ""
6023 }
6024
6025 case $ECHO in
6026 printf*) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6027 printf '%s\n' "printf" >&6; } ;;
6028 print*) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6029 printf '%s\n' "print -r" >&6; } ;;
6030 *) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6031 printf '%s\n' "cat" >&6; } ;;
6032 esac
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6048 printf %s "checking for a sed that does not truncate output... " >&6; }
6049 if test ${ac_cv_path_SED+y}
6050 then :
6051 printf %s "(cached) " >&6
6052 else case e in #(
6053 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6054 for ac_i in 1 2 3 4 5 6 7; do
6055 ac_script="$ac_script$as_nl$ac_script"
6056 done
6057 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6058 { ac_script=; unset ac_script;}
6059 if test -z "$SED"; then
6060 ac_path_SED_found=false
6061 # Loop through the user's path and test for each of PROGNAME-LIST
6062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063 for as_dir in $PATH
6064 do
6065 IFS=$as_save_IFS
6066 case $as_dir in #(((
6067 '') as_dir=./ ;;
6068 */) ;;
6069 *) as_dir=$as_dir/ ;;
6070 esac
6071 for ac_prog in sed gsed
6072 do
6073 for ac_exec_ext in '' $ac_executable_extensions; do
6074 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6075 as_fn_executable_p "$ac_path_SED" || continue
6076 # Check for GNU ac_path_SED and select it if it is found.
6077 # Check for GNU $ac_path_SED
6078 case `"$ac_path_SED" --version 2>&1` in #(
6079 *GNU*)
6080 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6081 #(
6082 *)
6083 ac_count=0
6084 printf %s 0123456789 >"conftest.in"
6085 while :
6086 do
6087 cat "conftest.in" "conftest.in" >"conftest.tmp"
6088 mv "conftest.tmp" "conftest.in"
6089 cp "conftest.in" "conftest.nl"
6090 printf '%s\n' '' >> "conftest.nl"
6091 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6092 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6093 as_fn_arith $ac_count + 1 && ac_count=$as_val
6094 if test $ac_count -gt ${ac_path_SED_max-0}; then
6095 # Best one so far, save it but keep looking for a better one
6096 ac_cv_path_SED="$ac_path_SED"
6097 ac_path_SED_max=$ac_count
6098 fi
6099 # 10*(2^10) chars as input seems more than enough
6100 test $ac_count -gt 10 && break
6101 done
6102 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6103 esac
6104
6105 $ac_path_SED_found && break 3
6106 done
6107 done
6108 done
6109 IFS=$as_save_IFS
6110 if test -z "$ac_cv_path_SED"; then
6111 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6112 fi
6113 else
6114 ac_cv_path_SED=$SED
6115 fi
6116 ;;
6117 esac
6118 fi
6119 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6120 printf '%s\n' "$ac_cv_path_SED" >&6; }
6121 SED="$ac_cv_path_SED"
6122 rm -f conftest.sed
6123
6124 test -z "$SED" && SED=sed
6125 Xsed="$SED -e 1s/^X//"
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6138 printf %s "checking for grep that handles long lines and -e... " >&6; }
6139 if test ${ac_cv_path_GREP+y}
6140 then :
6141 printf %s "(cached) " >&6
6142 else case e in #(
6143 e) if test -z "$GREP"; then
6144 ac_path_GREP_found=false
6145 # Loop through the user's path and test for each of PROGNAME-LIST
6146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6147 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6148 do
6149 IFS=$as_save_IFS
6150 case $as_dir in #(((
6151 '') as_dir=./ ;;
6152 */) ;;
6153 *) as_dir=$as_dir/ ;;
6154 esac
6155 for ac_prog in grep ggrep
6156 do
6157 for ac_exec_ext in '' $ac_executable_extensions; do
6158 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6159 as_fn_executable_p "$ac_path_GREP" || continue
6160 # Check for GNU ac_path_GREP and select it if it is found.
6161 # Check for GNU $ac_path_GREP
6162 case `"$ac_path_GREP" --version 2>&1` in #(
6163 *GNU*)
6164 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6165 #(
6166 *)
6167 ac_count=0
6168 printf %s 0123456789 >"conftest.in"
6169 while :
6170 do
6171 cat "conftest.in" "conftest.in" >"conftest.tmp"
6172 mv "conftest.tmp" "conftest.in"
6173 cp "conftest.in" "conftest.nl"
6174 printf '%s\n' 'GREP' >> "conftest.nl"
6175 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6176 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6177 as_fn_arith $ac_count + 1 && ac_count=$as_val
6178 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6179 # Best one so far, save it but keep looking for a better one
6180 ac_cv_path_GREP="$ac_path_GREP"
6181 ac_path_GREP_max=$ac_count
6182 fi
6183 # 10*(2^10) chars as input seems more than enough
6184 test $ac_count -gt 10 && break
6185 done
6186 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6187 esac
6188
6189 $ac_path_GREP_found && break 3
6190 done
6191 done
6192 done
6193 IFS=$as_save_IFS
6194 if test -z "$ac_cv_path_GREP"; then
6195 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6196 fi
6197 else
6198 ac_cv_path_GREP=$GREP
6199 fi
6200 ;;
6201 esac
6202 fi
6203 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6204 printf '%s\n' "$ac_cv_path_GREP" >&6; }
6205 GREP="$ac_cv_path_GREP"
6206
6207
6208 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6209 printf %s "checking for egrep... " >&6; }
6210 if test ${ac_cv_path_EGREP+y}
6211 then :
6212 printf %s "(cached) " >&6
6213 else case e in #(
6214 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6215 then ac_cv_path_EGREP="$GREP -E"
6216 else
6217 if test -z "$EGREP"; then
6218 ac_path_EGREP_found=false
6219 # Loop through the user's path and test for each of PROGNAME-LIST
6220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6221 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6222 do
6223 IFS=$as_save_IFS
6224 case $as_dir in #(((
6225 '') as_dir=./ ;;
6226 */) ;;
6227 *) as_dir=$as_dir/ ;;
6228 esac
6229 for ac_prog in egrep
6230 do
6231 for ac_exec_ext in '' $ac_executable_extensions; do
6232 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6233 as_fn_executable_p "$ac_path_EGREP" || continue
6234 # Check for GNU ac_path_EGREP and select it if it is found.
6235 # Check for GNU $ac_path_EGREP
6236 case `"$ac_path_EGREP" --version 2>&1` in #(
6237 *GNU*)
6238 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6239 #(
6240 *)
6241 ac_count=0
6242 printf %s 0123456789 >"conftest.in"
6243 while :
6244 do
6245 cat "conftest.in" "conftest.in" >"conftest.tmp"
6246 mv "conftest.tmp" "conftest.in"
6247 cp "conftest.in" "conftest.nl"
6248 printf '%s\n' 'EGREP' >> "conftest.nl"
6249 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6250 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6251 as_fn_arith $ac_count + 1 && ac_count=$as_val
6252 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6253 # Best one so far, save it but keep looking for a better one
6254 ac_cv_path_EGREP="$ac_path_EGREP"
6255 ac_path_EGREP_max=$ac_count
6256 fi
6257 # 10*(2^10) chars as input seems more than enough
6258 test $ac_count -gt 10 && break
6259 done
6260 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6261 esac
6262
6263 $ac_path_EGREP_found && break 3
6264 done
6265 done
6266 done
6267 IFS=$as_save_IFS
6268 if test -z "$ac_cv_path_EGREP"; then
6269 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6270 fi
6271 else
6272 ac_cv_path_EGREP=$EGREP
6273 fi
6274
6275 fi ;;
6276 esac
6277 fi
6278 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6279 printf '%s\n' "$ac_cv_path_EGREP" >&6; }
6280 EGREP="$ac_cv_path_EGREP"
6281
6282 EGREP_TRADITIONAL=$EGREP
6283 ac_cv_path_EGREP_TRADITIONAL=$EGREP
6284
6285 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6286 printf %s "checking for fgrep... " >&6; }
6287 if test ${ac_cv_path_FGREP+y}
6288 then :
6289 printf %s "(cached) " >&6
6290 else case e in #(
6291 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6292 then ac_cv_path_FGREP="$GREP -F"
6293 else
6294 if test -z "$FGREP"; then
6295 ac_path_FGREP_found=false
6296 # Loop through the user's path and test for each of PROGNAME-LIST
6297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6298 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6299 do
6300 IFS=$as_save_IFS
6301 case $as_dir in #(((
6302 '') as_dir=./ ;;
6303 */) ;;
6304 *) as_dir=$as_dir/ ;;
6305 esac
6306 for ac_prog in fgrep
6307 do
6308 for ac_exec_ext in '' $ac_executable_extensions; do
6309 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
6310 as_fn_executable_p "$ac_path_FGREP" || continue
6311 # Check for GNU ac_path_FGREP and select it if it is found.
6312 # Check for GNU $ac_path_FGREP
6313 case `"$ac_path_FGREP" --version 2>&1` in #(
6314 *GNU*)
6315 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6316 #(
6317 *)
6318 ac_count=0
6319 printf %s 0123456789 >"conftest.in"
6320 while :
6321 do
6322 cat "conftest.in" "conftest.in" >"conftest.tmp"
6323 mv "conftest.tmp" "conftest.in"
6324 cp "conftest.in" "conftest.nl"
6325 printf '%s\n' 'FGREP' >> "conftest.nl"
6326 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6327 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6328 as_fn_arith $ac_count + 1 && ac_count=$as_val
6329 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6330 # Best one so far, save it but keep looking for a better one
6331 ac_cv_path_FGREP="$ac_path_FGREP"
6332 ac_path_FGREP_max=$ac_count
6333 fi
6334 # 10*(2^10) chars as input seems more than enough
6335 test $ac_count -gt 10 && break
6336 done
6337 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6338 esac
6339
6340 $ac_path_FGREP_found && break 3
6341 done
6342 done
6343 done
6344 IFS=$as_save_IFS
6345 if test -z "$ac_cv_path_FGREP"; then
6346 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6347 fi
6348 else
6349 ac_cv_path_FGREP=$FGREP
6350 fi
6351
6352 fi ;;
6353 esac
6354 fi
6355 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6356 printf '%s\n' "$ac_cv_path_FGREP" >&6; }
6357 FGREP="$ac_cv_path_FGREP"
6358
6359
6360 test -z "$GREP" && GREP=grep
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380 # Check whether --with-gnu-ld was given.
6381 if test ${with_gnu_ld+y}
6382 then :
6383 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6384 else case e in #(
6385 e) with_gnu_ld=no ;;
6386 esac
6387 fi
6388
6389 ac_prog=ld
6390 if test yes = "$GCC"; then
6391 # Check if gcc -print-prog-name=ld gives a path.
6392 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6393 printf %s "checking for ld used by $CC... " >&6; }
6394 case $host in
6395 *-*-mingw* | *-*-windows*)
6396 # gcc leaves a trailing carriage return, which upsets mingw
6397 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6398 *)
6399 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6400 esac
6401 case $ac_prog in
6402 # Accept absolute paths.
6403 [\\/]* | ?:[\\/]*)
6404 re_direlt='/[^/][^/]*/\.\./'
6405 # Canonicalize the pathname of ld
6406 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6407 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6408 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6409 done
6410 test -z "$LD" && LD=$ac_prog
6411 ;;
6412 "")
6413 # If it fails, then pretend we aren't using GCC.
6414 ac_prog=ld
6415 ;;
6416 *)
6417 # If it is relative, then search for the first ld in PATH.
6418 with_gnu_ld=unknown
6419 ;;
6420 esac
6421 elif test yes = "$with_gnu_ld"; then
6422 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6423 printf %s "checking for GNU ld... " >&6; }
6424 else
6425 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6426 printf %s "checking for non-GNU ld... " >&6; }
6427 fi
6428 if test ${lt_cv_path_LD+y}
6429 then :
6430 printf %s "(cached) " >&6
6431 else case e in #(
6432 e) if test -z "$LD"; then
6433 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6434 for ac_dir in $PATH; do
6435 IFS=$lt_save_ifs
6436 test -z "$ac_dir" && ac_dir=.
6437 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6438 lt_cv_path_LD=$ac_dir/$ac_prog
6439 # Check to see if the program is GNU ld. I'd rather use --version,
6440 # but apparently some variants of GNU ld only accept -v.
6441 # Break only if it was the GNU/non-GNU ld that we prefer.
6442 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6443 *GNU* | *'with BFD'*)
6444 test no != "$with_gnu_ld" && break
6445 ;;
6446 *)
6447 test yes != "$with_gnu_ld" && break
6448 ;;
6449 esac
6450 fi
6451 done
6452 IFS=$lt_save_ifs
6453 else
6454 lt_cv_path_LD=$LD # Let the user override the test with a path.
6455 fi ;;
6456 esac
6457 fi
6458
6459 LD=$lt_cv_path_LD
6460 if test -n "$LD"; then
6461 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6462 printf '%s\n' "$LD" >&6; }
6463 else
6464 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
6465 printf '%s\n' "no" >&6; }
6466 fi
6467 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6468 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6469 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6470 if test ${lt_cv_prog_gnu_ld+y}
6471 then :
6472 printf %s "(cached) " >&6
6473 else case e in #(
6474 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
6475 case `$LD -v 2>&1 </dev/null` in
6476 *GNU* | *'with BFD'*)
6477 lt_cv_prog_gnu_ld=yes
6478 ;;
6479 *)
6480 lt_cv_prog_gnu_ld=no
6481 ;;
6482 esac ;;
6483 esac
6484 fi
6485 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6486 printf '%s\n' "$lt_cv_prog_gnu_ld" >&6; }
6487 with_gnu_ld=$lt_cv_prog_gnu_ld
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6498 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6499 if test ${lt_cv_path_NM+y}
6500 then :
6501 printf %s "(cached) " >&6
6502 else case e in #(
6503 e) if test -n "$NM"; then
6504 # Let the user override the test.
6505 lt_cv_path_NM=$NM
6506 else
6507 lt_nm_to_check=${ac_tool_prefix}nm
6508 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6509 lt_nm_to_check="$lt_nm_to_check nm"
6510 fi
6511 for lt_tmp_nm in $lt_nm_to_check; do
6512 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6513 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6514 IFS=$lt_save_ifs
6515 test -z "$ac_dir" && ac_dir=.
6516 tmp_nm=$ac_dir/$lt_tmp_nm
6517 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6518 # Check to see if the nm accepts a BSD-compat flag.
6519 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6520 # nm: unknown option "B" ignored
6521 # Tru64's nm complains that /dev/null is an invalid object file
6522 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6523 case $build_os in
6524 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
6525 *) lt_bad_file=/dev/null ;;
6526 esac
6527 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
6528 *$lt_bad_file* | *'Invalid file or object type'*)
6529 lt_cv_path_NM="$tmp_nm -B"
6530 break 2
6531 ;;
6532 *)
6533 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
6534 */dev/null*)
6535 lt_cv_path_NM="$tmp_nm -p"
6536 break 2
6537 ;;
6538 *)
6539 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6540 continue # so that we can try to find one that supports BSD flags
6541 ;;
6542 esac
6543 ;;
6544 esac
6545 fi
6546 done
6547 IFS=$lt_save_ifs
6548 done
6549 : ${lt_cv_path_NM=no}
6550 fi ;;
6551 esac
6552 fi
6553 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6554 printf '%s\n' "$lt_cv_path_NM" >&6; }
6555 if test no != "$lt_cv_path_NM"; then
6556 NM=$lt_cv_path_NM
6557 else
6558 # Didn't find any BSD compatible name lister, look for dumpbin.
6559 if test -n "$DUMPBIN"; then :
6560 # Let the user override the test.
6561 else
6562 if test -n "$ac_tool_prefix"; then
6563 for ac_prog in dumpbin "link -dump"
6564 do
6565 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6566 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6567 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6568 printf %s "checking for $ac_word... " >&6; }
6569 if test ${ac_cv_prog_DUMPBIN+y}
6570 then :
6571 printf %s "(cached) " >&6
6572 else case e in #(
6573 e) if test -n "$DUMPBIN"; then
6574 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6575 else
6576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6577 for as_dir in $PATH
6578 do
6579 IFS=$as_save_IFS
6580 case $as_dir in #(((
6581 '') as_dir=./ ;;
6582 */) ;;
6583 *) as_dir=$as_dir/ ;;
6584 esac
6585 for ac_exec_ext in '' $ac_executable_extensions; do
6586 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6587 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6588 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6589 break 2
6590 fi
6591 done
6592 done
6593 IFS=$as_save_IFS
6594
6595 fi ;;
6596 esac
6597 fi
6598 DUMPBIN=$ac_cv_prog_DUMPBIN
6599 if test -n "$DUMPBIN"; then
6600 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6601 printf '%s\n' "$DUMPBIN" >&6; }
6602 else
6603 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
6604 printf '%s\n' "no" >&6; }
6605 fi
6606
6607
6608 test -n "$DUMPBIN" && break
6609 done
6610 fi
6611 if test -z "$DUMPBIN"; then
6612 ac_ct_DUMPBIN=$DUMPBIN
6613 for ac_prog in dumpbin "link -dump"
6614 do
6615 # Extract the first word of "$ac_prog", so it can be a program name with args.
6616 set dummy $ac_prog; ac_word=$2
6617 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6618 printf %s "checking for $ac_word... " >&6; }
6619 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6620 then :
6621 printf %s "(cached) " >&6
6622 else case e in #(
6623 e) if test -n "$ac_ct_DUMPBIN"; then
6624 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6625 else
6626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627 for as_dir in $PATH
6628 do
6629 IFS=$as_save_IFS
6630 case $as_dir in #(((
6631 '') as_dir=./ ;;
6632 */) ;;
6633 *) as_dir=$as_dir/ ;;
6634 esac
6635 for ac_exec_ext in '' $ac_executable_extensions; do
6636 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6637 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6638 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6639 break 2
6640 fi
6641 done
6642 done
6643 IFS=$as_save_IFS
6644
6645 fi ;;
6646 esac
6647 fi
6648 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6649 if test -n "$ac_ct_DUMPBIN"; then
6650 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6651 printf '%s\n' "$ac_ct_DUMPBIN" >&6; }
6652 else
6653 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
6654 printf '%s\n' "no" >&6; }
6655 fi
6656
6657
6658 test -n "$ac_ct_DUMPBIN" && break
6659 done
6660
6661 if test "x$ac_ct_DUMPBIN" = x; then
6662 DUMPBIN=":"
6663 else
6664 case $cross_compiling:$ac_tool_warned in
6665 yes:)
6666 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6667 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6668 ac_tool_warned=yes ;;
6669 esac
6670 DUMPBIN=$ac_ct_DUMPBIN
6671 fi
6672 fi
6673
6674 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
6675 *COFF*)
6676 DUMPBIN="$DUMPBIN -symbols -headers"
6677 ;;
6678 *)
6679 DUMPBIN=:
6680 ;;
6681 esac
6682 fi
6683
6684 if test : != "$DUMPBIN"; then
6685 NM=$DUMPBIN
6686 fi
6687 fi
6688 test -z "$NM" && NM=nm
6689
6690
6691
6692
6693
6694
6695 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6696 printf %s "checking the name lister ($NM) interface... " >&6; }
6697 if test ${lt_cv_nm_interface+y}
6698 then :
6699 printf %s "(cached) " >&6
6700 else case e in #(
6701 e) lt_cv_nm_interface="BSD nm"
6702 echo "int some_variable = 0;" > conftest.$ac_ext
6703 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6704 (eval "$ac_compile" 2>conftest.err)
6705 cat conftest.err >&5
6706 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6707 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6708 cat conftest.err >&5
6709 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6710 cat conftest.out >&5
6711 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6712 lt_cv_nm_interface="MS dumpbin"
6713 fi
6714 rm -f conftest* ;;
6715 esac
6716 fi
6717 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6718 printf '%s\n' "$lt_cv_nm_interface" >&6; }
6719
6720 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6721 printf %s "checking whether ln -s works... " >&6; }
6722 LN_S=$as_ln_s
6723 if test "$LN_S" = "ln -s"; then
6724 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6725 printf '%s\n' "yes" >&6; }
6726 else
6727 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6728 printf '%s\n' "no, using $LN_S" >&6; }
6729 fi
6730
6731 # find the maximum length of command line arguments
6732 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6733 printf %s "checking the maximum length of command line arguments... " >&6; }
6734 if test ${lt_cv_sys_max_cmd_len+y}
6735 then :
6736 printf %s "(cached) " >&6
6737 else case e in #(
6738 e) i=0
6739 teststring=ABCD
6740
6741 case $build_os in
6742 msdosdjgpp*)
6743 # On DJGPP, this test can blow up pretty badly due to problems in libc
6744 # (any single argument exceeding 2000 bytes causes a buffer overrun
6745 # during glob expansion). Even if it were fixed, the result of this
6746 # check would be larger than it should be.
6747 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6748 ;;
6749
6750 gnu* | ironclad*)
6751 # Under GNU Hurd and Ironclad, this test is not required because there
6752 # is no limit to the length of command line arguments.
6753 # Libtool will interpret -1 as no limit whatsoever
6754 lt_cv_sys_max_cmd_len=-1;
6755 ;;
6756
6757 cygwin* | mingw* | windows* | cegcc*)
6758 # On Win9x/ME, this test blows up -- it succeeds, but takes
6759 # about 5 minutes as the teststring grows exponentially.
6760 # Worse, since 9x/ME are not pre-emptively multitasking,
6761 # you end up with a "frozen" computer, even though with patience
6762 # the test eventually succeeds (with a max line length of 256k).
6763 # Instead, let's just punt: use the minimum linelength reported by
6764 # all of the supported platforms: 8192 (on NT/2K/XP).
6765 lt_cv_sys_max_cmd_len=8192;
6766 ;;
6767
6768 mint*)
6769 # On MiNT this can take a long time and run out of memory.
6770 lt_cv_sys_max_cmd_len=8192;
6771 ;;
6772
6773 amigaos*)
6774 # On AmigaOS with pdksh, this test takes hours, literally.
6775 # So we just punt and use a minimum line length of 8192.
6776 lt_cv_sys_max_cmd_len=8192;
6777 ;;
6778
6779 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
6780 # This has been around since 386BSD, at least. Likely further.
6781 if test -x /sbin/sysctl; then
6782 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6783 elif test -x /usr/sbin/sysctl; then
6784 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6785 else
6786 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6787 fi
6788 # And add a safety zone
6789 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6790 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6791 ;;
6792
6793 interix*)
6794 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6795 lt_cv_sys_max_cmd_len=196608
6796 ;;
6797
6798 os2*)
6799 # The test takes a long time on OS/2.
6800 lt_cv_sys_max_cmd_len=8192
6801 ;;
6802
6803 osf*)
6804 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6805 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6806 # nice to cause kernel panics so lets avoid the loop below.
6807 # First set a reasonable default.
6808 lt_cv_sys_max_cmd_len=16384
6809 #
6810 if test -x /sbin/sysconfig; then
6811 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6812 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6813 esac
6814 fi
6815 ;;
6816 sco3.2v5*)
6817 lt_cv_sys_max_cmd_len=102400
6818 ;;
6819 sysv5* | sco5v6* | sysv4.2uw2*)
6820 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6821 if test -n "$kargmax"; then
6822 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
6823 else
6824 lt_cv_sys_max_cmd_len=32768
6825 fi
6826 ;;
6827 *)
6828 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6829 if test -n "$lt_cv_sys_max_cmd_len" && \
6830 test undefined != "$lt_cv_sys_max_cmd_len"; then
6831 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6832 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6833 else
6834 # Make teststring a little bigger before we do anything with it.
6835 # a 1K string should be a reasonable start.
6836 for i in 1 2 3 4 5 6 7 8; do
6837 teststring=$teststring$teststring
6838 done
6839 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6840 # If test is not a shell built-in, we'll probably end up computing a
6841 # maximum length that is only half of the actual maximum length, but
6842 # we can't tell.
6843 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6844 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6845 test 17 != "$i" # 1/2 MB should be enough
6846 do
6847 i=`expr $i + 1`
6848 teststring=$teststring$teststring
6849 done
6850 # Only check the string length outside the loop.
6851 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6852 teststring=
6853 # Add a significant safety factor because C++ compilers can tack on
6854 # massive amounts of additional arguments before passing them to the
6855 # linker. It appears as though 1/2 is a usable value.
6856 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6857 fi
6858 ;;
6859 esac
6860 ;;
6861 esac
6862 fi
6863
6864 if test -n "$lt_cv_sys_max_cmd_len"; then
6865 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6866 printf '%s\n' "$lt_cv_sys_max_cmd_len" >&6; }
6867 else
6868 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none" >&5
6869 printf '%s\n' "none" >&6; }
6870 fi
6871 max_cmd_len=$lt_cv_sys_max_cmd_len
6872
6873
6874
6875
6876
6877
6878 : ${CP="cp -f"}
6879 : ${MV="mv -f"}
6880 : ${RM="rm -f"}
6881
6882 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6883 lt_unset=unset
6884 else
6885 lt_unset=false
6886 fi
6887
6888
6889
6890
6891
6892 # test EBCDIC or ASCII
6893 case `echo X|tr X '\101'` in
6894 A) # ASCII based system
6895 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6896 lt_SP2NL='tr \040 \012'
6897 lt_NL2SP='tr \015\012 \040\040'
6898 ;;
6899 *) # EBCDIC based system
6900 lt_SP2NL='tr \100 \n'
6901 lt_NL2SP='tr \r\n \100\100'
6902 ;;
6903 esac
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6914 printf %s "checking how to convert $build file names to $host format... " >&6; }
6915 if test ${lt_cv_to_host_file_cmd+y}
6916 then :
6917 printf %s "(cached) " >&6
6918 else case e in #(
6919 e) case $host in
6920 *-*-mingw* )
6921 case $build in
6922 *-*-mingw* | *-*-windows* ) # actually msys
6923 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6924 ;;
6925 *-*-cygwin* )
6926 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6927 ;;
6928 * ) # otherwise, assume *nix
6929 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6930 ;;
6931 esac
6932 ;;
6933 *-*-cygwin* )
6934 case $build in
6935 *-*-mingw* | *-*-windows* ) # actually msys
6936 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6937 ;;
6938 *-*-cygwin* )
6939 lt_cv_to_host_file_cmd=func_convert_file_noop
6940 ;;
6941 * ) # otherwise, assume *nix
6942 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6943 ;;
6944 esac
6945 ;;
6946 * ) # unhandled hosts (and "normal" native builds)
6947 lt_cv_to_host_file_cmd=func_convert_file_noop
6948 ;;
6949 esac
6950 ;;
6951 esac
6952 fi
6953
6954 to_host_file_cmd=$lt_cv_to_host_file_cmd
6955 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6956 printf '%s\n' "$lt_cv_to_host_file_cmd" >&6; }
6957
6958
6959
6960
6961
6962 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6963 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6964 if test ${lt_cv_to_tool_file_cmd+y}
6965 then :
6966 printf %s "(cached) " >&6
6967 else case e in #(
6968 e) #assume ordinary cross tools, or native build.
6969 lt_cv_to_tool_file_cmd=func_convert_file_noop
6970 case $host in
6971 *-*-mingw* | *-*-windows* )
6972 case $build in
6973 *-*-mingw* | *-*-windows* ) # actually msys
6974 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6975 ;;
6976 esac
6977 ;;
6978 esac
6979 ;;
6980 esac
6981 fi
6982
6983 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6984 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6985 printf '%s\n' "$lt_cv_to_tool_file_cmd" >&6; }
6986
6987
6988
6989
6990
6991 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6992 printf %s "checking for $LD option to reload object files... " >&6; }
6993 if test ${lt_cv_ld_reload_flag+y}
6994 then :
6995 printf %s "(cached) " >&6
6996 else case e in #(
6997 e) lt_cv_ld_reload_flag='-r' ;;
6998 esac
6999 fi
7000 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7001 printf '%s\n' "$lt_cv_ld_reload_flag" >&6; }
7002 reload_flag=$lt_cv_ld_reload_flag
7003 case $reload_flag in
7004 "" | " "*) ;;
7005 *) reload_flag=" $reload_flag" ;;
7006 esac
7007 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7008 case $host_os in
7009 cygwin* | mingw* | windows* | pw32* | cegcc*)
7010 if test yes != "$GCC"; then
7011 reload_cmds=false
7012 fi
7013 ;;
7014 darwin*)
7015 if test yes = "$GCC"; then
7016 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7017 else
7018 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7019 fi
7020 ;;
7021 esac
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031 # Extract the first word of "file", so it can be a program name with args.
7032 set dummy file; ac_word=$2
7033 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7034 printf %s "checking for $ac_word... " >&6; }
7035 if test ${ac_cv_prog_FILECMD+y}
7036 then :
7037 printf %s "(cached) " >&6
7038 else case e in #(
7039 e) if test -n "$FILECMD"; then
7040 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
7041 else
7042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7043 for as_dir in $PATH
7044 do
7045 IFS=$as_save_IFS
7046 case $as_dir in #(((
7047 '') as_dir=./ ;;
7048 */) ;;
7049 *) as_dir=$as_dir/ ;;
7050 esac
7051 for ac_exec_ext in '' $ac_executable_extensions; do
7052 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7053 ac_cv_prog_FILECMD="file"
7054 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7055 break 2
7056 fi
7057 done
7058 done
7059 IFS=$as_save_IFS
7060
7061 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
7062 fi ;;
7063 esac
7064 fi
7065 FILECMD=$ac_cv_prog_FILECMD
7066 if test -n "$FILECMD"; then
7067 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
7068 printf '%s\n' "$FILECMD" >&6; }
7069 else
7070 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
7071 printf '%s\n' "no" >&6; }
7072 fi
7073
7074
7075
7076
7077
7078
7079
7080
7081 if test -n "$ac_tool_prefix"; then
7082 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7083 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7084 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7085 printf %s "checking for $ac_word... " >&6; }
7086 if test ${ac_cv_prog_OBJDUMP+y}
7087 then :
7088 printf %s "(cached) " >&6
7089 else case e in #(
7090 e) if test -n "$OBJDUMP"; then
7091 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7092 else
7093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7094 for as_dir in $PATH
7095 do
7096 IFS=$as_save_IFS
7097 case $as_dir in #(((
7098 '') as_dir=./ ;;
7099 */) ;;
7100 *) as_dir=$as_dir/ ;;
7101 esac
7102 for ac_exec_ext in '' $ac_executable_extensions; do
7103 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7104 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7105 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7106 break 2
7107 fi
7108 done
7109 done
7110 IFS=$as_save_IFS
7111
7112 fi ;;
7113 esac
7114 fi
7115 OBJDUMP=$ac_cv_prog_OBJDUMP
7116 if test -n "$OBJDUMP"; then
7117 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7118 printf '%s\n' "$OBJDUMP" >&6; }
7119 else
7120 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
7121 printf '%s\n' "no" >&6; }
7122 fi
7123
7124
7125 fi
7126 if test -z "$ac_cv_prog_OBJDUMP"; then
7127 ac_ct_OBJDUMP=$OBJDUMP
7128 # Extract the first word of "objdump", so it can be a program name with args.
7129 set dummy objdump; ac_word=$2
7130 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7131 printf %s "checking for $ac_word... " >&6; }
7132 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
7133 then :
7134 printf %s "(cached) " >&6
7135 else case e in #(
7136 e) if test -n "$ac_ct_OBJDUMP"; then
7137 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7138 else
7139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7140 for as_dir in $PATH
7141 do
7142 IFS=$as_save_IFS
7143 case $as_dir in #(((
7144 '') as_dir=./ ;;
7145 */) ;;
7146 *) as_dir=$as_dir/ ;;
7147 esac
7148 for ac_exec_ext in '' $ac_executable_extensions; do
7149 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7150 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7151 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7152 break 2
7153 fi
7154 done
7155 done
7156 IFS=$as_save_IFS
7157
7158 fi ;;
7159 esac
7160 fi
7161 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7162 if test -n "$ac_ct_OBJDUMP"; then
7163 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7164 printf '%s\n' "$ac_ct_OBJDUMP" >&6; }
7165 else
7166 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
7167 printf '%s\n' "no" >&6; }
7168 fi
7169
7170 if test "x$ac_ct_OBJDUMP" = x; then
7171 OBJDUMP="false"
7172 else
7173 case $cross_compiling:$ac_tool_warned in
7174 yes:)
7175 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7176 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7177 ac_tool_warned=yes ;;
7178 esac
7179 OBJDUMP=$ac_ct_OBJDUMP
7180 fi
7181 else
7182 OBJDUMP="$ac_cv_prog_OBJDUMP"
7183 fi
7184
7185 test -z "$OBJDUMP" && OBJDUMP=objdump
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7196 printf %s "checking how to recognize dependent libraries... " >&6; }
7197 if test ${lt_cv_deplibs_check_method+y}
7198 then :
7199 printf %s "(cached) " >&6
7200 else case e in #(
7201 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
7202 lt_cv_file_magic_test_file=
7203 lt_cv_deplibs_check_method='unknown'
7204 # Need to set the preceding variable on all platforms that support
7205 # interlibrary dependencies.
7206 # 'none' -- dependencies not supported.
7207 # 'unknown' -- same as none, but documents that we really don't know.
7208 # 'pass_all' -- all dependencies passed with no checks.
7209 # 'file_magic [[regex]]' -- check by looking for files in library path
7210 # that responds to the $file_magic_cmd with a given extended regex.
7211 # If you have 'file' or equivalent on your system and you're not sure
7212 # whether 'pass_all' will *always* work, you probably want this one.
7213
7214 case $host_os in
7215 aix[4-9]*)
7216 lt_cv_deplibs_check_method=pass_all
7217 ;;
7218
7219 beos*)
7220 lt_cv_deplibs_check_method=pass_all
7221 ;;
7222
7223 bsdi[45]*)
7224 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7225 lt_cv_file_magic_cmd='$FILECMD -L'
7226 lt_cv_file_magic_test_file=/shlib/libc.so
7227 ;;
7228
7229 cygwin*)
7230 # func_win32_libid is a shell function defined in ltmain.sh
7231 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7232 lt_cv_file_magic_cmd='func_win32_libid'
7233 ;;
7234
7235 mingw* | windows* | pw32*)
7236 # Base MSYS/MinGW do not provide the 'file' command needed by
7237 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7238 # unless we find 'file', for example because we are cross-compiling.
7239 if ( file / ) >/dev/null 2>&1; then
7240 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7241 lt_cv_file_magic_cmd='func_win32_libid'
7242 else
7243 # Keep this pattern in sync with the one in func_win32_libid.
7244 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
7245 lt_cv_file_magic_cmd='$OBJDUMP -f'
7246 fi
7247 ;;
7248
7249 cegcc*)
7250 # use the weaker test based on 'objdump'. See mingw*.
7251 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7252 lt_cv_file_magic_cmd='$OBJDUMP -f'
7253 ;;
7254
7255 darwin* | rhapsody*)
7256 lt_cv_deplibs_check_method=pass_all
7257 ;;
7258
7259 freebsd* | dragonfly* | midnightbsd*)
7260 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7261 case $host_cpu in
7262 i*86 )
7263 # Not sure whether the presence of OpenBSD here was a mistake.
7264 # Let's accept both of them until this is cleared up.
7265 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7266 lt_cv_file_magic_cmd=$FILECMD
7267 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7268 ;;
7269 esac
7270 else
7271 lt_cv_deplibs_check_method=pass_all
7272 fi
7273 ;;
7274
7275 haiku*)
7276 lt_cv_deplibs_check_method=pass_all
7277 ;;
7278
7279 hpux10.20* | hpux11*)
7280 lt_cv_file_magic_cmd=$FILECMD
7281 case $host_cpu in
7282 ia64*)
7283 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7284 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7285 ;;
7286 hppa*64*)
7287 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]'
7288 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7289 ;;
7290 *)
7291 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7292 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7293 ;;
7294 esac
7295 ;;
7296
7297 interix[3-9]*)
7298 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7299 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7300 ;;
7301
7302 irix5* | irix6* | nonstopux*)
7303 case $LD in
7304 *-32|*"-32 ") libmagic=32-bit;;
7305 *-n32|*"-n32 ") libmagic=N32;;
7306 *-64|*"-64 ") libmagic=64-bit;;
7307 *) libmagic=never-match;;
7308 esac
7309 lt_cv_deplibs_check_method=pass_all
7310 ;;
7311
7312 # This must be glibc/ELF.
7313 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7314 lt_cv_deplibs_check_method=pass_all
7315 ;;
7316
7317 *-mlibc)
7318 lt_cv_deplibs_check_method=pass_all
7319 ;;
7320
7321 netbsd* | netbsdelf*-gnu)
7322 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7323 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7324 else
7325 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7326 fi
7327 ;;
7328
7329 newos6*)
7330 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7331 lt_cv_file_magic_cmd=$FILECMD
7332 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7333 ;;
7334
7335 *nto* | *qnx*)
7336 lt_cv_deplibs_check_method=pass_all
7337 ;;
7338
7339 openbsd*)
7340 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7341 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7342 else
7343 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7344 fi
7345 ;;
7346
7347 osf3* | osf4* | osf5*)
7348 lt_cv_deplibs_check_method=pass_all
7349 ;;
7350
7351 rdos*)
7352 lt_cv_deplibs_check_method=pass_all
7353 ;;
7354
7355 serenity*)
7356 lt_cv_deplibs_check_method=pass_all
7357 ;;
7358
7359 solaris*)
7360 lt_cv_deplibs_check_method=pass_all
7361 ;;
7362
7363 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7364 lt_cv_deplibs_check_method=pass_all
7365 ;;
7366
7367 sysv4 | sysv4.3*)
7368 case $host_vendor in
7369 motorola)
7370 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]'
7371 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7372 ;;
7373 ncr)
7374 lt_cv_deplibs_check_method=pass_all
7375 ;;
7376 sequent)
7377 lt_cv_file_magic_cmd='/bin/file'
7378 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7379 ;;
7380 sni)
7381 lt_cv_file_magic_cmd='/bin/file'
7382 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7383 lt_cv_file_magic_test_file=/lib/libc.so
7384 ;;
7385 siemens)
7386 lt_cv_deplibs_check_method=pass_all
7387 ;;
7388 pc)
7389 lt_cv_deplibs_check_method=pass_all
7390 ;;
7391 esac
7392 ;;
7393
7394 tpf*)
7395 lt_cv_deplibs_check_method=pass_all
7396 ;;
7397 os2*)
7398 lt_cv_deplibs_check_method=pass_all
7399 ;;
7400 esac
7401 ;;
7402 esac
7403 fi
7404 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7405 printf '%s\n' "$lt_cv_deplibs_check_method" >&6; }
7406
7407 file_magic_glob=
7408 want_nocaseglob=no
7409 if test "$build" = "$host"; then
7410 case $host_os in
7411 mingw* | windows* | pw32*)
7412 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7413 want_nocaseglob=yes
7414 else
7415 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7416 fi
7417 ;;
7418 esac
7419 fi
7420
7421 file_magic_cmd=$lt_cv_file_magic_cmd
7422 deplibs_check_method=$lt_cv_deplibs_check_method
7423 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446 if test -n "$ac_tool_prefix"; then
7447 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7448 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7449 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7450 printf %s "checking for $ac_word... " >&6; }
7451 if test ${ac_cv_prog_DLLTOOL+y}
7452 then :
7453 printf %s "(cached) " >&6
7454 else case e in #(
7455 e) if test -n "$DLLTOOL"; then
7456 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7457 else
7458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7459 for as_dir in $PATH
7460 do
7461 IFS=$as_save_IFS
7462 case $as_dir in #(((
7463 '') as_dir=./ ;;
7464 */) ;;
7465 *) as_dir=$as_dir/ ;;
7466 esac
7467 for ac_exec_ext in '' $ac_executable_extensions; do
7468 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7469 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7470 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7471 break 2
7472 fi
7473 done
7474 done
7475 IFS=$as_save_IFS
7476
7477 fi ;;
7478 esac
7479 fi
7480 DLLTOOL=$ac_cv_prog_DLLTOOL
7481 if test -n "$DLLTOOL"; then
7482 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7483 printf '%s\n' "$DLLTOOL" >&6; }
7484 else
7485 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
7486 printf '%s\n' "no" >&6; }
7487 fi
7488
7489
7490 fi
7491 if test -z "$ac_cv_prog_DLLTOOL"; then
7492 ac_ct_DLLTOOL=$DLLTOOL
7493 # Extract the first word of "dlltool", so it can be a program name with args.
7494 set dummy dlltool; ac_word=$2
7495 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7496 printf %s "checking for $ac_word... " >&6; }
7497 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7498 then :
7499 printf %s "(cached) " >&6
7500 else case e in #(
7501 e) if test -n "$ac_ct_DLLTOOL"; then
7502 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7503 else
7504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7505 for as_dir in $PATH
7506 do
7507 IFS=$as_save_IFS
7508 case $as_dir in #(((
7509 '') as_dir=./ ;;
7510 */) ;;
7511 *) as_dir=$as_dir/ ;;
7512 esac
7513 for ac_exec_ext in '' $ac_executable_extensions; do
7514 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7515 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7516 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7517 break 2
7518 fi
7519 done
7520 done
7521 IFS=$as_save_IFS
7522
7523 fi ;;
7524 esac
7525 fi
7526 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7527 if test -n "$ac_ct_DLLTOOL"; then
7528 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7529 printf '%s\n' "$ac_ct_DLLTOOL" >&6; }
7530 else
7531 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
7532 printf '%s\n' "no" >&6; }
7533 fi
7534
7535 if test "x$ac_ct_DLLTOOL" = x; then
7536 DLLTOOL="false"
7537 else
7538 case $cross_compiling:$ac_tool_warned in
7539 yes:)
7540 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7541 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7542 ac_tool_warned=yes ;;
7543 esac
7544 DLLTOOL=$ac_ct_DLLTOOL
7545 fi
7546 else
7547 DLLTOOL="$ac_cv_prog_DLLTOOL"
7548 fi
7549
7550 test -z "$DLLTOOL" && DLLTOOL=dlltool
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7562 printf %s "checking how to associate runtime and link libraries... " >&6; }
7563 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
7564 then :
7565 printf %s "(cached) " >&6
7566 else case e in #(
7567 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
7568
7569 case $host_os in
7570 cygwin* | mingw* | windows* | pw32* | cegcc*)
7571 # two different shell functions defined in ltmain.sh;
7572 # decide which one to use based on capabilities of $DLLTOOL
7573 case `$DLLTOOL --help 2>&1` in
7574 *--identify-strict*)
7575 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7576 ;;
7577 *)
7578 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7579 ;;
7580 esac
7581 ;;
7582 *)
7583 # fallback: assume linklib IS sharedlib
7584 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7585 ;;
7586 esac
7587 ;;
7588 esac
7589 fi
7590 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7591 printf '%s\n' "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7592 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7593 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7594
7595
7596
7597
7598
7599
7600
7601 if test -n "$ac_tool_prefix"; then
7602 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7603 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7604 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7605 printf %s "checking for $ac_word... " >&6; }
7606 if test ${ac_cv_prog_RANLIB+y}
7607 then :
7608 printf %s "(cached) " >&6
7609 else case e in #(
7610 e) if test -n "$RANLIB"; then
7611 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7612 else
7613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7614 for as_dir in $PATH
7615 do
7616 IFS=$as_save_IFS
7617 case $as_dir in #(((
7618 '') as_dir=./ ;;
7619 */) ;;
7620 *) as_dir=$as_dir/ ;;
7621 esac
7622 for ac_exec_ext in '' $ac_executable_extensions; do
7623 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7624 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7625 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7626 break 2
7627 fi
7628 done
7629 done
7630 IFS=$as_save_IFS
7631
7632 fi ;;
7633 esac
7634 fi
7635 RANLIB=$ac_cv_prog_RANLIB
7636 if test -n "$RANLIB"; then
7637 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7638 printf '%s\n' "$RANLIB" >&6; }
7639 else
7640 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
7641 printf '%s\n' "no" >&6; }
7642 fi
7643
7644
7645 fi
7646 if test -z "$ac_cv_prog_RANLIB"; then
7647 ac_ct_RANLIB=$RANLIB
7648 # Extract the first word of "ranlib", so it can be a program name with args.
7649 set dummy ranlib; ac_word=$2
7650 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7651 printf %s "checking for $ac_word... " >&6; }
7652 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7653 then :
7654 printf %s "(cached) " >&6
7655 else case e in #(
7656 e) if test -n "$ac_ct_RANLIB"; then
7657 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7658 else
7659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7660 for as_dir in $PATH
7661 do
7662 IFS=$as_save_IFS
7663 case $as_dir in #(((
7664 '') as_dir=./ ;;
7665 */) ;;
7666 *) as_dir=$as_dir/ ;;
7667 esac
7668 for ac_exec_ext in '' $ac_executable_extensions; do
7669 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7670 ac_cv_prog_ac_ct_RANLIB="ranlib"
7671 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7672 break 2
7673 fi
7674 done
7675 done
7676 IFS=$as_save_IFS
7677
7678 fi ;;
7679 esac
7680 fi
7681 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7682 if test -n "$ac_ct_RANLIB"; then
7683 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7684 printf '%s\n' "$ac_ct_RANLIB" >&6; }
7685 else
7686 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
7687 printf '%s\n' "no" >&6; }
7688 fi
7689
7690 if test "x$ac_ct_RANLIB" = x; then
7691 RANLIB=":"
7692 else
7693 case $cross_compiling:$ac_tool_warned in
7694 yes:)
7695 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7696 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7697 ac_tool_warned=yes ;;
7698 esac
7699 RANLIB=$ac_ct_RANLIB
7700 fi
7701 else
7702 RANLIB="$ac_cv_prog_RANLIB"
7703 fi
7704
7705 if test -n "$ac_tool_prefix"; then
7706 for ac_prog in ar
7707 do
7708 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7709 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7710 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7711 printf %s "checking for $ac_word... " >&6; }
7712 if test ${ac_cv_prog_AR+y}
7713 then :
7714 printf %s "(cached) " >&6
7715 else case e in #(
7716 e) if test -n "$AR"; then
7717 ac_cv_prog_AR="$AR" # Let the user override the test.
7718 else
7719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7720 for as_dir in $PATH
7721 do
7722 IFS=$as_save_IFS
7723 case $as_dir in #(((
7724 '') as_dir=./ ;;
7725 */) ;;
7726 *) as_dir=$as_dir/ ;;
7727 esac
7728 for ac_exec_ext in '' $ac_executable_extensions; do
7729 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7730 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7731 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7732 break 2
7733 fi
7734 done
7735 done
7736 IFS=$as_save_IFS
7737
7738 fi ;;
7739 esac
7740 fi
7741 AR=$ac_cv_prog_AR
7742 if test -n "$AR"; then
7743 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7744 printf '%s\n' "$AR" >&6; }
7745 else
7746 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
7747 printf '%s\n' "no" >&6; }
7748 fi
7749
7750
7751 test -n "$AR" && break
7752 done
7753 fi
7754 if test -z "$AR"; then
7755 ac_ct_AR=$AR
7756 for ac_prog in ar
7757 do
7758 # Extract the first word of "$ac_prog", so it can be a program name with args.
7759 set dummy $ac_prog; ac_word=$2
7760 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7761 printf %s "checking for $ac_word... " >&6; }
7762 if test ${ac_cv_prog_ac_ct_AR+y}
7763 then :
7764 printf %s "(cached) " >&6
7765 else case e in #(
7766 e) if test -n "$ac_ct_AR"; then
7767 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7768 else
7769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7770 for as_dir in $PATH
7771 do
7772 IFS=$as_save_IFS
7773 case $as_dir in #(((
7774 '') as_dir=./ ;;
7775 */) ;;
7776 *) as_dir=$as_dir/ ;;
7777 esac
7778 for ac_exec_ext in '' $ac_executable_extensions; do
7779 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7780 ac_cv_prog_ac_ct_AR="$ac_prog"
7781 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7782 break 2
7783 fi
7784 done
7785 done
7786 IFS=$as_save_IFS
7787
7788 fi ;;
7789 esac
7790 fi
7791 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7792 if test -n "$ac_ct_AR"; then
7793 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7794 printf '%s\n' "$ac_ct_AR" >&6; }
7795 else
7796 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
7797 printf '%s\n' "no" >&6; }
7798 fi
7799
7800
7801 test -n "$ac_ct_AR" && break
7802 done
7803
7804 if test "x$ac_ct_AR" = x; then
7805 AR="false"
7806 else
7807 case $cross_compiling:$ac_tool_warned in
7808 yes:)
7809 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7810 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7811 ac_tool_warned=yes ;;
7812 esac
7813 AR=$ac_ct_AR
7814 fi
7815 fi
7816
7817 : ${AR=ar}
7818
7819
7820
7821
7822
7823
7824 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
7825 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7826 # higher priority because that's what people were doing historically (setting
7827 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
7828 # variable obsoleted/removed.
7829
7830 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7831 lt_ar_flags=$AR_FLAGS
7832
7833
7834
7835
7836
7837
7838 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7839 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7840
7841
7842
7843
7844
7845
7846 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7847 printf %s "checking for archiver @FILE support... " >&6; }
7848 if test ${lt_cv_ar_at_file+y}
7849 then :
7850 printf %s "(cached) " >&6
7851 else case e in #(
7852 e) lt_cv_ar_at_file=no
7853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7854 /* end confdefs.h. */
7855
7856 int
7857 main (void)
7858 {
7859
7860 ;
7861 return 0;
7862 }
7863 _ACEOF
7864 if ac_fn_c_try_compile "$LINENO"
7865 then :
7866 echo conftest.$ac_objext > conftest.lst
7867 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7868 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7869 (eval $lt_ar_try) 2>&5
7870 ac_status=$?
7871 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7872 test $ac_status = 0; }
7873 if test 0 -eq "$ac_status"; then
7874 # Ensure the archiver fails upon bogus file names.
7875 rm -f conftest.$ac_objext libconftest.a
7876 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7877 (eval $lt_ar_try) 2>&5
7878 ac_status=$?
7879 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7880 test $ac_status = 0; }
7881 if test 0 -ne "$ac_status"; then
7882 lt_cv_ar_at_file=@
7883 fi
7884 fi
7885 rm -f conftest.* libconftest.a
7886
7887 fi
7888 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7889 ;;
7890 esac
7891 fi
7892 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7893 printf '%s\n' "$lt_cv_ar_at_file" >&6; }
7894
7895 if test no = "$lt_cv_ar_at_file"; then
7896 archiver_list_spec=
7897 else
7898 archiver_list_spec=$lt_cv_ar_at_file
7899 fi
7900
7901
7902
7903
7904
7905
7906
7907 if test -n "$ac_tool_prefix"; then
7908 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7909 set dummy ${ac_tool_prefix}strip; ac_word=$2
7910 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7911 printf %s "checking for $ac_word... " >&6; }
7912 if test ${ac_cv_prog_STRIP+y}
7913 then :
7914 printf %s "(cached) " >&6
7915 else case e in #(
7916 e) if test -n "$STRIP"; then
7917 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7918 else
7919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7920 for as_dir in $PATH
7921 do
7922 IFS=$as_save_IFS
7923 case $as_dir in #(((
7924 '') as_dir=./ ;;
7925 */) ;;
7926 *) as_dir=$as_dir/ ;;
7927 esac
7928 for ac_exec_ext in '' $ac_executable_extensions; do
7929 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7930 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7931 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7932 break 2
7933 fi
7934 done
7935 done
7936 IFS=$as_save_IFS
7937
7938 fi ;;
7939 esac
7940 fi
7941 STRIP=$ac_cv_prog_STRIP
7942 if test -n "$STRIP"; then
7943 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7944 printf '%s\n' "$STRIP" >&6; }
7945 else
7946 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
7947 printf '%s\n' "no" >&6; }
7948 fi
7949
7950
7951 fi
7952 if test -z "$ac_cv_prog_STRIP"; then
7953 ac_ct_STRIP=$STRIP
7954 # Extract the first word of "strip", so it can be a program name with args.
7955 set dummy strip; ac_word=$2
7956 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7957 printf %s "checking for $ac_word... " >&6; }
7958 if test ${ac_cv_prog_ac_ct_STRIP+y}
7959 then :
7960 printf %s "(cached) " >&6
7961 else case e in #(
7962 e) if test -n "$ac_ct_STRIP"; then
7963 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7964 else
7965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7966 for as_dir in $PATH
7967 do
7968 IFS=$as_save_IFS
7969 case $as_dir in #(((
7970 '') as_dir=./ ;;
7971 */) ;;
7972 *) as_dir=$as_dir/ ;;
7973 esac
7974 for ac_exec_ext in '' $ac_executable_extensions; do
7975 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7976 ac_cv_prog_ac_ct_STRIP="strip"
7977 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7978 break 2
7979 fi
7980 done
7981 done
7982 IFS=$as_save_IFS
7983
7984 fi ;;
7985 esac
7986 fi
7987 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7988 if test -n "$ac_ct_STRIP"; then
7989 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7990 printf '%s\n' "$ac_ct_STRIP" >&6; }
7991 else
7992 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
7993 printf '%s\n' "no" >&6; }
7994 fi
7995
7996 if test "x$ac_ct_STRIP" = x; then
7997 STRIP=":"
7998 else
7999 case $cross_compiling:$ac_tool_warned in
8000 yes:)
8001 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8002 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8003 ac_tool_warned=yes ;;
8004 esac
8005 STRIP=$ac_ct_STRIP
8006 fi
8007 else
8008 STRIP="$ac_cv_prog_STRIP"
8009 fi
8010
8011 test -z "$STRIP" && STRIP=:
8012
8013
8014
8015
8016
8017
8018
8019 test -z "$RANLIB" && RANLIB=:
8020
8021
8022
8023
8024
8025
8026 # Determine commands to create old-style static archives.
8027 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8028 old_postinstall_cmds='chmod 644 $oldlib'
8029 old_postuninstall_cmds=
8030
8031 if test -n "$RANLIB"; then
8032 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8033 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8034 fi
8035
8036 case $host_os in
8037 darwin*)
8038 lock_old_archive_extraction=yes ;;
8039 *)
8040 lock_old_archive_extraction=no ;;
8041 esac
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081 # If no C compiler was specified, use CC.
8082 LTCC=${LTCC-"$CC"}
8083
8084 # If no C compiler flags were specified, use CFLAGS.
8085 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8086
8087 # Allow CC to be a program name with arguments.
8088 compiler=$CC
8089
8090
8091 # Check for command to grab the raw symbol name followed by C symbol from nm.
8092 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8093 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
8094 if test ${lt_cv_sys_global_symbol_pipe+y}
8095 then :
8096 printf %s "(cached) " >&6
8097 else case e in #(
8098 e)
8099 # These are sane defaults that work on at least a few old systems.
8100 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8101
8102 # Character class describing NM global symbol codes.
8103 symcode='[BCDEGRST]'
8104
8105 # Regexp to match symbols that can be accessed directly from C.
8106 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8107
8108 # Define system-specific variables.
8109 case $host_os in
8110 aix*)
8111 symcode='[BCDT]'
8112 ;;
8113 cygwin* | mingw* | windows* | pw32* | cegcc*)
8114 symcode='[ABCDGISTW]'
8115 ;;
8116 hpux*)
8117 if test ia64 = "$host_cpu"; then
8118 symcode='[ABCDEGRST]'
8119 fi
8120 ;;
8121 irix* | nonstopux*)
8122 symcode='[BCDEGRST]'
8123 ;;
8124 osf*)
8125 symcode='[BCDEGQRST]'
8126 ;;
8127 solaris*)
8128 symcode='[BCDRT]'
8129 ;;
8130 sco3.2v5*)
8131 symcode='[DT]'
8132 ;;
8133 sysv4.2uw2*)
8134 symcode='[DT]'
8135 ;;
8136 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8137 symcode='[ABDT]'
8138 ;;
8139 sysv4)
8140 symcode='[DFNSTU]'
8141 ;;
8142 esac
8143
8144 # If we're using GNU nm, then use its standard symbol codes.
8145 case `$NM -V 2>&1` in
8146 *GNU* | *'with BFD'*)
8147 symcode='[ABCDGIRSTW]' ;;
8148 esac
8149
8150 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8151 # Gets list of data symbols to import.
8152 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
8153 # Adjust the below global symbol transforms to fixup imported variables.
8154 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8155 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8156 lt_c_name_lib_hook="\
8157 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8158 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8159 else
8160 # Disable hooks by default.
8161 lt_cv_sys_global_symbol_to_import=
8162 lt_cdecl_hook=
8163 lt_c_name_hook=
8164 lt_c_name_lib_hook=
8165 fi
8166
8167 # Transform an extracted symbol line into a proper C declaration.
8168 # Some systems (esp. on ia64) link data and code symbols differently,
8169 # so use this general approach.
8170 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
8171 $lt_cdecl_hook\
8172 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8173 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8174
8175 # Transform an extracted symbol line into symbol name and symbol address
8176 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
8177 $lt_c_name_hook\
8178 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8179 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8180
8181 # Transform an extracted symbol line into symbol name with lib prefix and
8182 # symbol address.
8183 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
8184 $lt_c_name_lib_hook\
8185 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8186 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8187 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8188
8189 # Handle CRLF in mingw tool chain
8190 opt_cr=
8191 case $build_os in
8192 mingw* | windows*)
8193 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8194 ;;
8195 esac
8196
8197 # Try without a prefix underscore, then with it.
8198 for ac_symprfx in "" "_"; do
8199
8200 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8201 symxfrm="\\1 $ac_symprfx\\2 \\2"
8202
8203 # Write the raw and C identifiers.
8204 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8205 # Fake it for dumpbin and say T for any non-static function,
8206 # D for any global variable and I for any imported variable.
8207 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
8208 # which start with @ or ?.
8209 lt_cv_sys_global_symbol_pipe="$AWK '"\
8210 " {last_section=section; section=\$ 3};"\
8211 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8212 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8213 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8214 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8215 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8216 " \$ 0!~/External *\|/{next};"\
8217 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8218 " {if(hide[section]) next};"\
8219 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8220 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8221 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8222 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8223 " ' prfx=^$ac_symprfx"
8224 else
8225 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8226 fi
8227 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
8228
8229 # Check to see that the pipe works correctly.
8230 pipe_works=no
8231
8232 rm -f conftest*
8233 cat > conftest.$ac_ext <<_LT_EOF
8234 #ifdef __cplusplus
8235 extern "C" {
8236 #endif
8237 char nm_test_var;
8238 void nm_test_func(void);
8239 void nm_test_func(void){}
8240 #ifdef __cplusplus
8241 }
8242 #endif
8243 int main(void){nm_test_var='a';nm_test_func();return(0);}
8244 _LT_EOF
8245
8246 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8247 (eval $ac_compile) 2>&5
8248 ac_status=$?
8249 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8250 test $ac_status = 0; }; then
8251 # Now try to grab the symbols.
8252 nlist=conftest.nm
8253 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
8254 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
8255 # Try sorting and uniquifying the output.
8256 if sort "$nlist" | uniq > "$nlist"T; then
8257 mv -f "$nlist"T "$nlist"
8258 else
8259 rm -f "$nlist"T
8260 fi
8261
8262 # Make sure that we snagged all the symbols we need.
8263 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8264 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8265 cat <<_LT_EOF > conftest.$ac_ext
8266 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8267 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8268 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8269 relocations are performed -- see ld's documentation on pseudo-relocs. */
8270 # define LT_DLSYM_CONST
8271 #elif defined __osf__
8272 /* This system does not cope well with relocations in const data. */
8273 # define LT_DLSYM_CONST
8274 #else
8275 # define LT_DLSYM_CONST const
8276 #endif
8277
8278 #ifdef __cplusplus
8279 extern "C" {
8280 #endif
8281
8282 _LT_EOF
8283 # Now generate the symbol file.
8284 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8285
8286 cat <<_LT_EOF >> conftest.$ac_ext
8287
8288 /* The mapping between symbol names and symbols. */
8289 LT_DLSYM_CONST struct {
8290 const char *name;
8291 void *address;
8292 }
8293 lt__PROGRAM__LTX_preloaded_symbols[] =
8294 {
8295 { "@PROGRAM@", (void *) 0 },
8296 _LT_EOF
8297 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8298 cat <<\_LT_EOF >> conftest.$ac_ext
8299 {0, (void *) 0}
8300 };
8301
8302 /* This works around a problem in FreeBSD linker */
8303 #ifdef FREEBSD_WORKAROUND
8304 static const void *lt_preloaded_setup() {
8305 return lt__PROGRAM__LTX_preloaded_symbols;
8306 }
8307 #endif
8308
8309 #ifdef __cplusplus
8310 }
8311 #endif
8312 _LT_EOF
8313 # Now try linking the two files.
8314 mv conftest.$ac_objext conftstm.$ac_objext
8315 lt_globsym_save_LIBS=$LIBS
8316 lt_globsym_save_CFLAGS=$CFLAGS
8317 LIBS=conftstm.$ac_objext
8318 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8319 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8320 (eval $ac_link) 2>&5
8321 ac_status=$?
8322 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8323 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8324 pipe_works=yes
8325 fi
8326 LIBS=$lt_globsym_save_LIBS
8327 CFLAGS=$lt_globsym_save_CFLAGS
8328 else
8329 echo "cannot find nm_test_func in $nlist" >&5
8330 fi
8331 else
8332 echo "cannot find nm_test_var in $nlist" >&5
8333 fi
8334 else
8335 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8336 fi
8337 else
8338 echo "$progname: failed program was:" >&5
8339 cat conftest.$ac_ext >&5
8340 fi
8341 rm -rf conftest* conftst*
8342
8343 # Do not use the global_symbol_pipe unless it works.
8344 if test yes = "$pipe_works"; then
8345 break
8346 else
8347 lt_cv_sys_global_symbol_pipe=
8348 fi
8349 done
8350 ;;
8351 esac
8352 fi
8353
8354 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8355 lt_cv_sys_global_symbol_to_cdecl=
8356 fi
8357 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8358 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8359 printf '%s\n' "failed" >&6; }
8360 else
8361 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8362 printf '%s\n' "ok" >&6; }
8363 fi
8364
8365 # Response file support.
8366 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8367 nm_file_list_spec='@'
8368 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8369 nm_file_list_spec='@'
8370 fi
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8409 printf %s "checking for sysroot... " >&6; }
8410
8411 # Check whether --with-sysroot was given.
8412 if test ${with_sysroot+y}
8413 then :
8414 withval=$with_sysroot;
8415 else case e in #(
8416 e) with_sysroot=no ;;
8417 esac
8418 fi
8419
8420
8421 lt_sysroot=
8422 case $with_sysroot in #(
8423 yes)
8424 if test yes = "$GCC"; then
8425 # Trim trailing / since we'll always append absolute paths and we want
8426 # to avoid //, if only for less confusing output for the user.
8427 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
8428 fi
8429 ;; #(
8430 /*)
8431 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
8432 ;; #(
8433 no|'')
8434 ;; #(
8435 *)
8436 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8437 printf '%s\n' "$with_sysroot" >&6; }
8438 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8439 ;;
8440 esac
8441
8442 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8443 printf '%s\n' "${lt_sysroot:-no}" >&6; }
8444
8445
8446
8447
8448
8449 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8450 printf %s "checking for a working dd... " >&6; }
8451 if test ${ac_cv_path_lt_DD+y}
8452 then :
8453 printf %s "(cached) " >&6
8454 else case e in #(
8455 e) printf 0123456789abcdef0123456789abcdef >conftest.i
8456 cat conftest.i conftest.i >conftest2.i
8457 : ${lt_DD:=$DD}
8458 if test -z "$lt_DD"; then
8459 ac_path_lt_DD_found=false
8460 # Loop through the user's path and test for each of PROGNAME-LIST
8461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8462 for as_dir in $PATH
8463 do
8464 IFS=$as_save_IFS
8465 case $as_dir in #(((
8466 '') as_dir=./ ;;
8467 */) ;;
8468 *) as_dir=$as_dir/ ;;
8469 esac
8470 for ac_prog in dd
8471 do
8472 for ac_exec_ext in '' $ac_executable_extensions; do
8473 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
8474 as_fn_executable_p "$ac_path_lt_DD" || continue
8475 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8476 cmp -s conftest.i conftest.out \
8477 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8478 fi
8479 $ac_path_lt_DD_found && break 3
8480 done
8481 done
8482 done
8483 IFS=$as_save_IFS
8484 if test -z "$ac_cv_path_lt_DD"; then
8485 :
8486 fi
8487 else
8488 ac_cv_path_lt_DD=$lt_DD
8489 fi
8490
8491 rm -f conftest.i conftest2.i conftest.out ;;
8492 esac
8493 fi
8494 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8495 printf '%s\n' "$ac_cv_path_lt_DD" >&6; }
8496
8497
8498 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8499 printf %s "checking how to truncate binary pipes... " >&6; }
8500 if test ${lt_cv_truncate_bin+y}
8501 then :
8502 printf %s "(cached) " >&6
8503 else case e in #(
8504 e) printf 0123456789abcdef0123456789abcdef >conftest.i
8505 cat conftest.i conftest.i >conftest2.i
8506 lt_cv_truncate_bin=
8507 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8508 cmp -s conftest.i conftest.out \
8509 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8510 fi
8511 rm -f conftest.i conftest2.i conftest.out
8512 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
8513 esac
8514 fi
8515 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8516 printf '%s\n' "$lt_cv_truncate_bin" >&6; }
8517
8518
8519
8520
8521
8522
8523
8524 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8525 func_cc_basename ()
8526 {
8527 for cc_temp in $*""; do
8528 case $cc_temp in
8529 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8530 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8531 \-*) ;;
8532 *) break;;
8533 esac
8534 done
8535 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8536 }
8537
8538 # Check whether --enable-libtool-lock was given.
8539 if test ${enable_libtool_lock+y}
8540 then :
8541 enableval=$enable_libtool_lock;
8542 fi
8543
8544 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8545
8546 # Some flags need to be propagated to the compiler or linker for good
8547 # libtool support.
8548 case $host in
8549 ia64-*-hpux*)
8550 # Find out what ABI is being produced by ac_compile, and set mode
8551 # options accordingly.
8552 echo 'int i;' > conftest.$ac_ext
8553 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8554 (eval $ac_compile) 2>&5
8555 ac_status=$?
8556 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8557 test $ac_status = 0; }; then
8558 case `$FILECMD conftest.$ac_objext` in
8559 *ELF-32*)
8560 HPUX_IA64_MODE=32
8561 ;;
8562 *ELF-64*)
8563 HPUX_IA64_MODE=64
8564 ;;
8565 esac
8566 fi
8567 rm -rf conftest*
8568 ;;
8569 *-*-irix6*)
8570 # Find out what ABI is being produced by ac_compile, and set linker
8571 # options accordingly.
8572 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8573 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8574 (eval $ac_compile) 2>&5
8575 ac_status=$?
8576 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8577 test $ac_status = 0; }; then
8578 if test yes = "$lt_cv_prog_gnu_ld"; then
8579 case `$FILECMD conftest.$ac_objext` in
8580 *32-bit*)
8581 LD="${LD-ld} -melf32bsmip"
8582 ;;
8583 *N32*)
8584 LD="${LD-ld} -melf32bmipn32"
8585 ;;
8586 *64-bit*)
8587 LD="${LD-ld} -melf64bmip"
8588 ;;
8589 esac
8590 else
8591 case `$FILECMD conftest.$ac_objext` in
8592 *32-bit*)
8593 LD="${LD-ld} -32"
8594 ;;
8595 *N32*)
8596 LD="${LD-ld} -n32"
8597 ;;
8598 *64-bit*)
8599 LD="${LD-ld} -64"
8600 ;;
8601 esac
8602 fi
8603 fi
8604 rm -rf conftest*
8605 ;;
8606
8607 mips64*-*linux*)
8608 # Find out what ABI is being produced by ac_compile, and set linker
8609 # options accordingly.
8610 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8611 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8612 (eval $ac_compile) 2>&5
8613 ac_status=$?
8614 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8615 test $ac_status = 0; }; then
8616 emul=elf
8617 case `$FILECMD conftest.$ac_objext` in
8618 *32-bit*)
8619 emul="${emul}32"
8620 ;;
8621 *64-bit*)
8622 emul="${emul}64"
8623 ;;
8624 esac
8625 case `$FILECMD conftest.$ac_objext` in
8626 *MSB*)
8627 emul="${emul}btsmip"
8628 ;;
8629 *LSB*)
8630 emul="${emul}ltsmip"
8631 ;;
8632 esac
8633 case `$FILECMD conftest.$ac_objext` in
8634 *N32*)
8635 emul="${emul}n32"
8636 ;;
8637 esac
8638 LD="${LD-ld} -m $emul"
8639 fi
8640 rm -rf conftest*
8641 ;;
8642
8643 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8644 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
8645 # Find out what ABI is being produced by ac_compile, and set linker
8646 # options accordingly. Note that the listed cases only cover the
8647 # situations where additional linker options are needed (such as when
8648 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8649 # vice versa); the common cases where no linker options are needed do
8650 # not appear in the list.
8651 echo 'int i;' > conftest.$ac_ext
8652 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8653 (eval $ac_compile) 2>&5
8654 ac_status=$?
8655 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8656 test $ac_status = 0; }; then
8657 case `$FILECMD conftest.o` in
8658 *32-bit*)
8659 case $host in
8660 x86_64-*kfreebsd*-gnu)
8661 LD="${LD-ld} -m elf_i386_fbsd"
8662 ;;
8663 x86_64-*linux*|x86_64-gnu*)
8664 case `$FILECMD conftest.o` in
8665 *x86-64*)
8666 LD="${LD-ld} -m elf32_x86_64"
8667 ;;
8668 *)
8669 LD="${LD-ld} -m elf_i386"
8670 ;;
8671 esac
8672 ;;
8673 powerpc64le-*linux*)
8674 LD="${LD-ld} -m elf32lppclinux"
8675 ;;
8676 powerpc64-*linux*)
8677 LD="${LD-ld} -m elf32ppclinux"
8678 ;;
8679 s390x-*linux*)
8680 LD="${LD-ld} -m elf_s390"
8681 ;;
8682 sparc64-*linux*)
8683 LD="${LD-ld} -m elf32_sparc"
8684 ;;
8685 esac
8686 ;;
8687 *64-bit*)
8688 case $host in
8689 x86_64-*kfreebsd*-gnu)
8690 LD="${LD-ld} -m elf_x86_64_fbsd"
8691 ;;
8692 x86_64-*linux*|x86_64-gnu*)
8693 LD="${LD-ld} -m elf_x86_64"
8694 ;;
8695 powerpcle-*linux*)
8696 LD="${LD-ld} -m elf64lppc"
8697 ;;
8698 powerpc-*linux*)
8699 LD="${LD-ld} -m elf64ppc"
8700 ;;
8701 s390*-*linux*|s390*-*tpf*)
8702 LD="${LD-ld} -m elf64_s390"
8703 ;;
8704 sparc*-*linux*)
8705 LD="${LD-ld} -m elf64_sparc"
8706 ;;
8707 esac
8708 ;;
8709 esac
8710 fi
8711 rm -rf conftest*
8712 ;;
8713
8714 *-*-sco3.2v5*)
8715 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8716 SAVE_CFLAGS=$CFLAGS
8717 CFLAGS="$CFLAGS -belf"
8718 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8719 printf %s "checking whether the C compiler needs -belf... " >&6; }
8720 if test ${lt_cv_cc_needs_belf+y}
8721 then :
8722 printf %s "(cached) " >&6
8723 else case e in #(
8724 e) ac_ext=c
8725 ac_cpp='$CPP $CPPFLAGS'
8726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8729
8730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8731 /* end confdefs.h. */
8732
8733 int
8734 main (void)
8735 {
8736
8737 ;
8738 return 0;
8739 }
8740 _ACEOF
8741 if ac_fn_c_try_link "$LINENO"
8742 then :
8743 lt_cv_cc_needs_belf=yes
8744 else case e in #(
8745 e) lt_cv_cc_needs_belf=no ;;
8746 esac
8747 fi
8748 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8749 conftest$ac_exeext conftest.$ac_ext
8750 ac_ext=c
8751 ac_cpp='$CPP $CPPFLAGS'
8752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8755 ;;
8756 esac
8757 fi
8758 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8759 printf '%s\n' "$lt_cv_cc_needs_belf" >&6; }
8760 if test yes != "$lt_cv_cc_needs_belf"; then
8761 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8762 CFLAGS=$SAVE_CFLAGS
8763 fi
8764 ;;
8765 *-*solaris*)
8766 # Find out what ABI is being produced by ac_compile, and set linker
8767 # options accordingly.
8768 echo 'int i;' > conftest.$ac_ext
8769 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8770 (eval $ac_compile) 2>&5
8771 ac_status=$?
8772 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8773 test $ac_status = 0; }; then
8774 case `$FILECMD conftest.o` in
8775 *64-bit*)
8776 case $lt_cv_prog_gnu_ld in
8777 yes*)
8778 case $host in
8779 i?86-*-solaris*|x86_64-*-solaris*)
8780 LD="${LD-ld} -m elf_x86_64"
8781 ;;
8782 sparc*-*-solaris*)
8783 LD="${LD-ld} -m elf64_sparc"
8784 ;;
8785 esac
8786 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8787 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8788 LD=${LD-ld}_sol2
8789 fi
8790 ;;
8791 *)
8792 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8793 LD="${LD-ld} -64"
8794 fi
8795 ;;
8796 esac
8797 ;;
8798 esac
8799 fi
8800 rm -rf conftest*
8801 ;;
8802 esac
8803
8804 need_locks=$enable_libtool_lock
8805
8806 if test -n "$ac_tool_prefix"; then
8807 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8808 set dummy ${ac_tool_prefix}mt; ac_word=$2
8809 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8810 printf %s "checking for $ac_word... " >&6; }
8811 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8812 then :
8813 printf %s "(cached) " >&6
8814 else case e in #(
8815 e) if test -n "$MANIFEST_TOOL"; then
8816 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8817 else
8818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8819 for as_dir in $PATH
8820 do
8821 IFS=$as_save_IFS
8822 case $as_dir in #(((
8823 '') as_dir=./ ;;
8824 */) ;;
8825 *) as_dir=$as_dir/ ;;
8826 esac
8827 for ac_exec_ext in '' $ac_executable_extensions; do
8828 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8829 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8830 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8831 break 2
8832 fi
8833 done
8834 done
8835 IFS=$as_save_IFS
8836
8837 fi ;;
8838 esac
8839 fi
8840 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8841 if test -n "$MANIFEST_TOOL"; then
8842 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8843 printf '%s\n' "$MANIFEST_TOOL" >&6; }
8844 else
8845 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
8846 printf '%s\n' "no" >&6; }
8847 fi
8848
8849
8850 fi
8851 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8852 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8853 # Extract the first word of "mt", so it can be a program name with args.
8854 set dummy mt; ac_word=$2
8855 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8856 printf %s "checking for $ac_word... " >&6; }
8857 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8858 then :
8859 printf %s "(cached) " >&6
8860 else case e in #(
8861 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
8862 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8863 else
8864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8865 for as_dir in $PATH
8866 do
8867 IFS=$as_save_IFS
8868 case $as_dir in #(((
8869 '') as_dir=./ ;;
8870 */) ;;
8871 *) as_dir=$as_dir/ ;;
8872 esac
8873 for ac_exec_ext in '' $ac_executable_extensions; do
8874 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8875 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8876 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8877 break 2
8878 fi
8879 done
8880 done
8881 IFS=$as_save_IFS
8882
8883 fi ;;
8884 esac
8885 fi
8886 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8887 if test -n "$ac_ct_MANIFEST_TOOL"; then
8888 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8889 printf '%s\n' "$ac_ct_MANIFEST_TOOL" >&6; }
8890 else
8891 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
8892 printf '%s\n' "no" >&6; }
8893 fi
8894
8895 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8896 MANIFEST_TOOL=":"
8897 else
8898 case $cross_compiling:$ac_tool_warned in
8899 yes:)
8900 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8901 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8902 ac_tool_warned=yes ;;
8903 esac
8904 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8905 fi
8906 else
8907 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8908 fi
8909
8910 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8911 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8912 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8913 if test ${lt_cv_path_manifest_tool+y}
8914 then :
8915 printf %s "(cached) " >&6
8916 else case e in #(
8917 e) lt_cv_path_manifest_tool=no
8918 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8919 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8920 cat conftest.err >&5
8921 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8922 lt_cv_path_manifest_tool=yes
8923 fi
8924 rm -f conftest* ;;
8925 esac
8926 fi
8927 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
8928 printf '%s\n' "$lt_cv_path_manifest_tool" >&6; }
8929 if test yes != "$lt_cv_path_manifest_tool"; then
8930 MANIFEST_TOOL=:
8931 fi
8932
8933
8934
8935
8936
8937
8938 case $host_os in
8939 rhapsody* | darwin*)
8940 if test -n "$ac_tool_prefix"; then
8941 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8942 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8943 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8944 printf %s "checking for $ac_word... " >&6; }
8945 if test ${ac_cv_prog_DSYMUTIL+y}
8946 then :
8947 printf %s "(cached) " >&6
8948 else case e in #(
8949 e) if test -n "$DSYMUTIL"; then
8950 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8951 else
8952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8953 for as_dir in $PATH
8954 do
8955 IFS=$as_save_IFS
8956 case $as_dir in #(((
8957 '') as_dir=./ ;;
8958 */) ;;
8959 *) as_dir=$as_dir/ ;;
8960 esac
8961 for ac_exec_ext in '' $ac_executable_extensions; do
8962 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8963 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8964 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8965 break 2
8966 fi
8967 done
8968 done
8969 IFS=$as_save_IFS
8970
8971 fi ;;
8972 esac
8973 fi
8974 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8975 if test -n "$DSYMUTIL"; then
8976 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8977 printf '%s\n' "$DSYMUTIL" >&6; }
8978 else
8979 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
8980 printf '%s\n' "no" >&6; }
8981 fi
8982
8983
8984 fi
8985 if test -z "$ac_cv_prog_DSYMUTIL"; then
8986 ac_ct_DSYMUTIL=$DSYMUTIL
8987 # Extract the first word of "dsymutil", so it can be a program name with args.
8988 set dummy dsymutil; ac_word=$2
8989 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8990 printf %s "checking for $ac_word... " >&6; }
8991 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8992 then :
8993 printf %s "(cached) " >&6
8994 else case e in #(
8995 e) if test -n "$ac_ct_DSYMUTIL"; then
8996 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8997 else
8998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8999 for as_dir in $PATH
9000 do
9001 IFS=$as_save_IFS
9002 case $as_dir in #(((
9003 '') as_dir=./ ;;
9004 */) ;;
9005 *) as_dir=$as_dir/ ;;
9006 esac
9007 for ac_exec_ext in '' $ac_executable_extensions; do
9008 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9009 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9010 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9011 break 2
9012 fi
9013 done
9014 done
9015 IFS=$as_save_IFS
9016
9017 fi ;;
9018 esac
9019 fi
9020 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9021 if test -n "$ac_ct_DSYMUTIL"; then
9022 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9023 printf '%s\n' "$ac_ct_DSYMUTIL" >&6; }
9024 else
9025 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9026 printf '%s\n' "no" >&6; }
9027 fi
9028
9029 if test "x$ac_ct_DSYMUTIL" = x; then
9030 DSYMUTIL=":"
9031 else
9032 case $cross_compiling:$ac_tool_warned in
9033 yes:)
9034 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9035 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9036 ac_tool_warned=yes ;;
9037 esac
9038 DSYMUTIL=$ac_ct_DSYMUTIL
9039 fi
9040 else
9041 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9042 fi
9043
9044 if test -n "$ac_tool_prefix"; then
9045 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9046 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9047 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9048 printf %s "checking for $ac_word... " >&6; }
9049 if test ${ac_cv_prog_NMEDIT+y}
9050 then :
9051 printf %s "(cached) " >&6
9052 else case e in #(
9053 e) if test -n "$NMEDIT"; then
9054 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9055 else
9056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9057 for as_dir in $PATH
9058 do
9059 IFS=$as_save_IFS
9060 case $as_dir in #(((
9061 '') as_dir=./ ;;
9062 */) ;;
9063 *) as_dir=$as_dir/ ;;
9064 esac
9065 for ac_exec_ext in '' $ac_executable_extensions; do
9066 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9067 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9068 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9069 break 2
9070 fi
9071 done
9072 done
9073 IFS=$as_save_IFS
9074
9075 fi ;;
9076 esac
9077 fi
9078 NMEDIT=$ac_cv_prog_NMEDIT
9079 if test -n "$NMEDIT"; then
9080 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9081 printf '%s\n' "$NMEDIT" >&6; }
9082 else
9083 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9084 printf '%s\n' "no" >&6; }
9085 fi
9086
9087
9088 fi
9089 if test -z "$ac_cv_prog_NMEDIT"; then
9090 ac_ct_NMEDIT=$NMEDIT
9091 # Extract the first word of "nmedit", so it can be a program name with args.
9092 set dummy nmedit; ac_word=$2
9093 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9094 printf %s "checking for $ac_word... " >&6; }
9095 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
9096 then :
9097 printf %s "(cached) " >&6
9098 else case e in #(
9099 e) if test -n "$ac_ct_NMEDIT"; then
9100 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9101 else
9102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9103 for as_dir in $PATH
9104 do
9105 IFS=$as_save_IFS
9106 case $as_dir in #(((
9107 '') as_dir=./ ;;
9108 */) ;;
9109 *) as_dir=$as_dir/ ;;
9110 esac
9111 for ac_exec_ext in '' $ac_executable_extensions; do
9112 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9113 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9114 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9115 break 2
9116 fi
9117 done
9118 done
9119 IFS=$as_save_IFS
9120
9121 fi ;;
9122 esac
9123 fi
9124 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9125 if test -n "$ac_ct_NMEDIT"; then
9126 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9127 printf '%s\n' "$ac_ct_NMEDIT" >&6; }
9128 else
9129 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9130 printf '%s\n' "no" >&6; }
9131 fi
9132
9133 if test "x$ac_ct_NMEDIT" = x; then
9134 NMEDIT=":"
9135 else
9136 case $cross_compiling:$ac_tool_warned in
9137 yes:)
9138 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9139 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9140 ac_tool_warned=yes ;;
9141 esac
9142 NMEDIT=$ac_ct_NMEDIT
9143 fi
9144 else
9145 NMEDIT="$ac_cv_prog_NMEDIT"
9146 fi
9147
9148 if test -n "$ac_tool_prefix"; then
9149 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9150 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9151 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9152 printf %s "checking for $ac_word... " >&6; }
9153 if test ${ac_cv_prog_LIPO+y}
9154 then :
9155 printf %s "(cached) " >&6
9156 else case e in #(
9157 e) if test -n "$LIPO"; then
9158 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9159 else
9160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9161 for as_dir in $PATH
9162 do
9163 IFS=$as_save_IFS
9164 case $as_dir in #(((
9165 '') as_dir=./ ;;
9166 */) ;;
9167 *) as_dir=$as_dir/ ;;
9168 esac
9169 for ac_exec_ext in '' $ac_executable_extensions; do
9170 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9171 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9172 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9173 break 2
9174 fi
9175 done
9176 done
9177 IFS=$as_save_IFS
9178
9179 fi ;;
9180 esac
9181 fi
9182 LIPO=$ac_cv_prog_LIPO
9183 if test -n "$LIPO"; then
9184 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9185 printf '%s\n' "$LIPO" >&6; }
9186 else
9187 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9188 printf '%s\n' "no" >&6; }
9189 fi
9190
9191
9192 fi
9193 if test -z "$ac_cv_prog_LIPO"; then
9194 ac_ct_LIPO=$LIPO
9195 # Extract the first word of "lipo", so it can be a program name with args.
9196 set dummy lipo; ac_word=$2
9197 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9198 printf %s "checking for $ac_word... " >&6; }
9199 if test ${ac_cv_prog_ac_ct_LIPO+y}
9200 then :
9201 printf %s "(cached) " >&6
9202 else case e in #(
9203 e) if test -n "$ac_ct_LIPO"; then
9204 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9205 else
9206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9207 for as_dir in $PATH
9208 do
9209 IFS=$as_save_IFS
9210 case $as_dir in #(((
9211 '') as_dir=./ ;;
9212 */) ;;
9213 *) as_dir=$as_dir/ ;;
9214 esac
9215 for ac_exec_ext in '' $ac_executable_extensions; do
9216 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9217 ac_cv_prog_ac_ct_LIPO="lipo"
9218 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9219 break 2
9220 fi
9221 done
9222 done
9223 IFS=$as_save_IFS
9224
9225 fi ;;
9226 esac
9227 fi
9228 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9229 if test -n "$ac_ct_LIPO"; then
9230 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9231 printf '%s\n' "$ac_ct_LIPO" >&6; }
9232 else
9233 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9234 printf '%s\n' "no" >&6; }
9235 fi
9236
9237 if test "x$ac_ct_LIPO" = x; then
9238 LIPO=":"
9239 else
9240 case $cross_compiling:$ac_tool_warned in
9241 yes:)
9242 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9243 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9244 ac_tool_warned=yes ;;
9245 esac
9246 LIPO=$ac_ct_LIPO
9247 fi
9248 else
9249 LIPO="$ac_cv_prog_LIPO"
9250 fi
9251
9252 if test -n "$ac_tool_prefix"; then
9253 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9254 set dummy ${ac_tool_prefix}otool; ac_word=$2
9255 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9256 printf %s "checking for $ac_word... " >&6; }
9257 if test ${ac_cv_prog_OTOOL+y}
9258 then :
9259 printf %s "(cached) " >&6
9260 else case e in #(
9261 e) if test -n "$OTOOL"; then
9262 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9263 else
9264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9265 for as_dir in $PATH
9266 do
9267 IFS=$as_save_IFS
9268 case $as_dir in #(((
9269 '') as_dir=./ ;;
9270 */) ;;
9271 *) as_dir=$as_dir/ ;;
9272 esac
9273 for ac_exec_ext in '' $ac_executable_extensions; do
9274 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9275 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9276 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9277 break 2
9278 fi
9279 done
9280 done
9281 IFS=$as_save_IFS
9282
9283 fi ;;
9284 esac
9285 fi
9286 OTOOL=$ac_cv_prog_OTOOL
9287 if test -n "$OTOOL"; then
9288 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9289 printf '%s\n' "$OTOOL" >&6; }
9290 else
9291 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9292 printf '%s\n' "no" >&6; }
9293 fi
9294
9295
9296 fi
9297 if test -z "$ac_cv_prog_OTOOL"; then
9298 ac_ct_OTOOL=$OTOOL
9299 # Extract the first word of "otool", so it can be a program name with args.
9300 set dummy otool; ac_word=$2
9301 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9302 printf %s "checking for $ac_word... " >&6; }
9303 if test ${ac_cv_prog_ac_ct_OTOOL+y}
9304 then :
9305 printf %s "(cached) " >&6
9306 else case e in #(
9307 e) if test -n "$ac_ct_OTOOL"; then
9308 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9309 else
9310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9311 for as_dir in $PATH
9312 do
9313 IFS=$as_save_IFS
9314 case $as_dir in #(((
9315 '') as_dir=./ ;;
9316 */) ;;
9317 *) as_dir=$as_dir/ ;;
9318 esac
9319 for ac_exec_ext in '' $ac_executable_extensions; do
9320 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9321 ac_cv_prog_ac_ct_OTOOL="otool"
9322 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9323 break 2
9324 fi
9325 done
9326 done
9327 IFS=$as_save_IFS
9328
9329 fi ;;
9330 esac
9331 fi
9332 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9333 if test -n "$ac_ct_OTOOL"; then
9334 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9335 printf '%s\n' "$ac_ct_OTOOL" >&6; }
9336 else
9337 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9338 printf '%s\n' "no" >&6; }
9339 fi
9340
9341 if test "x$ac_ct_OTOOL" = x; then
9342 OTOOL=":"
9343 else
9344 case $cross_compiling:$ac_tool_warned in
9345 yes:)
9346 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9347 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9348 ac_tool_warned=yes ;;
9349 esac
9350 OTOOL=$ac_ct_OTOOL
9351 fi
9352 else
9353 OTOOL="$ac_cv_prog_OTOOL"
9354 fi
9355
9356 if test -n "$ac_tool_prefix"; then
9357 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9358 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9359 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9360 printf %s "checking for $ac_word... " >&6; }
9361 if test ${ac_cv_prog_OTOOL64+y}
9362 then :
9363 printf %s "(cached) " >&6
9364 else case e in #(
9365 e) if test -n "$OTOOL64"; then
9366 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9367 else
9368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9369 for as_dir in $PATH
9370 do
9371 IFS=$as_save_IFS
9372 case $as_dir in #(((
9373 '') as_dir=./ ;;
9374 */) ;;
9375 *) as_dir=$as_dir/ ;;
9376 esac
9377 for ac_exec_ext in '' $ac_executable_extensions; do
9378 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9379 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9380 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9381 break 2
9382 fi
9383 done
9384 done
9385 IFS=$as_save_IFS
9386
9387 fi ;;
9388 esac
9389 fi
9390 OTOOL64=$ac_cv_prog_OTOOL64
9391 if test -n "$OTOOL64"; then
9392 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9393 printf '%s\n' "$OTOOL64" >&6; }
9394 else
9395 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9396 printf '%s\n' "no" >&6; }
9397 fi
9398
9399
9400 fi
9401 if test -z "$ac_cv_prog_OTOOL64"; then
9402 ac_ct_OTOOL64=$OTOOL64
9403 # Extract the first word of "otool64", so it can be a program name with args.
9404 set dummy otool64; ac_word=$2
9405 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9406 printf %s "checking for $ac_word... " >&6; }
9407 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
9408 then :
9409 printf %s "(cached) " >&6
9410 else case e in #(
9411 e) if test -n "$ac_ct_OTOOL64"; then
9412 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9413 else
9414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9415 for as_dir in $PATH
9416 do
9417 IFS=$as_save_IFS
9418 case $as_dir in #(((
9419 '') as_dir=./ ;;
9420 */) ;;
9421 *) as_dir=$as_dir/ ;;
9422 esac
9423 for ac_exec_ext in '' $ac_executable_extensions; do
9424 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9425 ac_cv_prog_ac_ct_OTOOL64="otool64"
9426 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9427 break 2
9428 fi
9429 done
9430 done
9431 IFS=$as_save_IFS
9432
9433 fi ;;
9434 esac
9435 fi
9436 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9437 if test -n "$ac_ct_OTOOL64"; then
9438 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9439 printf '%s\n' "$ac_ct_OTOOL64" >&6; }
9440 else
9441 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9442 printf '%s\n' "no" >&6; }
9443 fi
9444
9445 if test "x$ac_ct_OTOOL64" = x; then
9446 OTOOL64=":"
9447 else
9448 case $cross_compiling:$ac_tool_warned in
9449 yes:)
9450 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9451 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9452 ac_tool_warned=yes ;;
9453 esac
9454 OTOOL64=$ac_ct_OTOOL64
9455 fi
9456 else
9457 OTOOL64="$ac_cv_prog_OTOOL64"
9458 fi
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9487 printf %s "checking for -single_module linker flag... " >&6; }
9488 if test ${lt_cv_apple_cc_single_mod+y}
9489 then :
9490 printf %s "(cached) " >&6
9491 else case e in #(
9492 e) lt_cv_apple_cc_single_mod=no
9493 if test -z "$LT_MULTI_MODULE"; then
9494 # By default we will add the -single_module flag. You can override
9495 # by either setting the environment variable LT_MULTI_MODULE
9496 # non-empty at configure time, or by adding -multi_module to the
9497 # link flags.
9498 rm -rf libconftest.dylib*
9499 echo "int foo(void){return 1;}" > conftest.c
9500 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9501 -dynamiclib -Wl,-single_module conftest.c" >&5
9502 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9503 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9504 _lt_result=$?
9505 # If there is a non-empty error log, and "single_module"
9506 # appears in it, assume the flag caused a linker warning
9507 if test -s conftest.err && $GREP single_module conftest.err; then
9508 cat conftest.err >&5
9509 # Otherwise, if the output was created with a 0 exit code from
9510 # the compiler, it worked.
9511 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9512 lt_cv_apple_cc_single_mod=yes
9513 else
9514 cat conftest.err >&5
9515 fi
9516 rm -rf libconftest.dylib*
9517 rm -f conftest.*
9518 fi ;;
9519 esac
9520 fi
9521 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9522 printf '%s\n' "$lt_cv_apple_cc_single_mod" >&6; }
9523
9524 # Feature test to disable chained fixups since it is not
9525 # compatible with '-undefined dynamic_lookup'
9526 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
9527 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
9528 if test ${lt_cv_support_no_fixup_chains+y}
9529 then :
9530 printf %s "(cached) " >&6
9531 else case e in #(
9532 e) save_LDFLAGS=$LDFLAGS
9533 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
9534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9535 /* end confdefs.h. */
9536
9537 int
9538 main (void)
9539 {
9540
9541 ;
9542 return 0;
9543 }
9544 _ACEOF
9545 if ac_fn_c_try_link "$LINENO"
9546 then :
9547 lt_cv_support_no_fixup_chains=yes
9548 else case e in #(
9549 e) lt_cv_support_no_fixup_chains=no
9550 ;;
9551 esac
9552 fi
9553 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9554 conftest$ac_exeext conftest.$ac_ext
9555 LDFLAGS=$save_LDFLAGS
9556
9557 ;;
9558 esac
9559 fi
9560 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
9561 printf '%s\n' "$lt_cv_support_no_fixup_chains" >&6; }
9562
9563 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9564 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9565 if test ${lt_cv_ld_exported_symbols_list+y}
9566 then :
9567 printf %s "(cached) " >&6
9568 else case e in #(
9569 e) lt_cv_ld_exported_symbols_list=no
9570 save_LDFLAGS=$LDFLAGS
9571 echo "_main" > conftest.sym
9572 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9574 /* end confdefs.h. */
9575
9576 int
9577 main (void)
9578 {
9579
9580 ;
9581 return 0;
9582 }
9583 _ACEOF
9584 if ac_fn_c_try_link "$LINENO"
9585 then :
9586 lt_cv_ld_exported_symbols_list=yes
9587 else case e in #(
9588 e) lt_cv_ld_exported_symbols_list=no ;;
9589 esac
9590 fi
9591 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9592 conftest$ac_exeext conftest.$ac_ext
9593 LDFLAGS=$save_LDFLAGS
9594 ;;
9595 esac
9596 fi
9597 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9598 printf '%s\n' "$lt_cv_ld_exported_symbols_list" >&6; }
9599
9600 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9601 printf %s "checking for -force_load linker flag... " >&6; }
9602 if test ${lt_cv_ld_force_load+y}
9603 then :
9604 printf %s "(cached) " >&6
9605 else case e in #(
9606 e) lt_cv_ld_force_load=no
9607 cat > conftest.c << _LT_EOF
9608 int forced_loaded() { return 2;}
9609 _LT_EOF
9610 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9611 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9612 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
9613 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
9614 echo "$RANLIB libconftest.a" >&5
9615 $RANLIB libconftest.a 2>&5
9616 cat > conftest.c << _LT_EOF
9617 int main(void) { return 0;}
9618 _LT_EOF
9619 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9620 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9621 _lt_result=$?
9622 if test -s conftest.err && $GREP force_load conftest.err; then
9623 cat conftest.err >&5
9624 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9625 lt_cv_ld_force_load=yes
9626 else
9627 cat conftest.err >&5
9628 fi
9629 rm -f conftest.err libconftest.a conftest conftest.c
9630 rm -rf conftest.dSYM
9631 ;;
9632 esac
9633 fi
9634 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9635 printf '%s\n' "$lt_cv_ld_force_load" >&6; }
9636 case $host_os in
9637 rhapsody* | darwin1.[012])
9638 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9639 darwin1.*)
9640 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9641 darwin*)
9642 case $MACOSX_DEPLOYMENT_TARGET,$host in
9643 10.[012],*|,*powerpc*-darwin[5-8]*)
9644 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9645 *)
9646 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
9647 if test yes = "$lt_cv_support_no_fixup_chains"; then
9648 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
9649 fi
9650 ;;
9651 esac
9652 ;;
9653 esac
9654 if test yes = "$lt_cv_apple_cc_single_mod"; then
9655 _lt_dar_single_mod='$single_module'
9656 fi
9657 _lt_dar_needs_single_mod=no
9658 case $host_os in
9659 rhapsody* | darwin1.*)
9660 _lt_dar_needs_single_mod=yes ;;
9661 darwin*)
9662 # When targeting Mac OS X 10.4 (darwin 8) or later,
9663 # -single_module is the default and -multi_module is unsupported.
9664 # The toolchain on macOS 10.14 (darwin 18) and later cannot
9665 # target any OS version that needs -single_module.
9666 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9667 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
9668 _lt_dar_needs_single_mod=yes ;;
9669 esac
9670 ;;
9671 esac
9672 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9673 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9674 else
9675 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9676 fi
9677 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9678 _lt_dsymutil='~$DSYMUTIL $lib || :'
9679 else
9680 _lt_dsymutil=
9681 fi
9682 ;;
9683 esac
9684
9685 # func_munge_path_list VARIABLE PATH
9686 # -----------------------------------
9687 # VARIABLE is name of variable containing _space_ separated list of
9688 # directories to be munged by the contents of PATH, which is string
9689 # having a format:
9690 # "DIR[:DIR]:"
9691 # string "DIR[ DIR]" will be prepended to VARIABLE
9692 # ":DIR[:DIR]"
9693 # string "DIR[ DIR]" will be appended to VARIABLE
9694 # "DIRP[:DIRP]::[DIRA:]DIRA"
9695 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9696 # "DIRA[ DIRA]" will be appended to VARIABLE
9697 # "DIR[:DIR]"
9698 # VARIABLE will be replaced by "DIR[ DIR]"
9699 func_munge_path_list ()
9700 {
9701 case x$2 in
9702 x)
9703 ;;
9704 *:)
9705 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9706 ;;
9707 x:*)
9708 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9709 ;;
9710 *::*)
9711 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9712 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9713 ;;
9714 *)
9715 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9716 ;;
9717 esac
9718 }
9719
9720 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9721 "
9722 if test "x$ac_cv_header_dlfcn_h" = xyes
9723 then :
9724 printf '%s\n' "#define HAVE_DLFCN_H 1" >>confdefs.h
9725
9726 fi
9727
9728
9729
9730
9731
9732 # Set options
9733
9734
9735
9736 enable_dlopen=no
9737
9738
9739 enable_win32_dll=no
9740
9741
9742 # Check whether --enable-shared was given.
9743 if test ${enable_shared+y}
9744 then :
9745 enableval=$enable_shared; p=${PACKAGE-default}
9746 case $enableval in
9747 yes) enable_shared=yes ;;
9748 no) enable_shared=no ;;
9749 *)
9750 enable_shared=no
9751 # Look at the argument we got. We use all the common list separators.
9752 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9753 for pkg in $enableval; do
9754 IFS=$lt_save_ifs
9755 if test "X$pkg" = "X$p"; then
9756 enable_shared=yes
9757 fi
9758 done
9759 IFS=$lt_save_ifs
9760 ;;
9761 esac
9762 else case e in #(
9763 e) enable_shared=yes ;;
9764 esac
9765 fi
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775 # Check whether --enable-static was given.
9776 if test ${enable_static+y}
9777 then :
9778 enableval=$enable_static; p=${PACKAGE-default}
9779 case $enableval in
9780 yes) enable_static=yes ;;
9781 no) enable_static=no ;;
9782 *)
9783 enable_static=no
9784 # Look at the argument we got. We use all the common list separators.
9785 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9786 for pkg in $enableval; do
9787 IFS=$lt_save_ifs
9788 if test "X$pkg" = "X$p"; then
9789 enable_static=yes
9790 fi
9791 done
9792 IFS=$lt_save_ifs
9793 ;;
9794 esac
9795 else case e in #(
9796 e) enable_static=yes ;;
9797 esac
9798 fi
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808 # Check whether --enable-pic was given.
9809 if test ${enable_pic+y}
9810 then :
9811 enableval=$enable_pic; lt_p=${PACKAGE-default}
9812 case $enableval in
9813 yes|no) pic_mode=$enableval ;;
9814 *)
9815 pic_mode=default
9816 # Look at the argument we got. We use all the common list separators.
9817 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9818 for lt_pkg in $enableval; do
9819 IFS=$lt_save_ifs
9820 if test "X$lt_pkg" = "X$lt_p"; then
9821 pic_mode=yes
9822 fi
9823 done
9824 IFS=$lt_save_ifs
9825 ;;
9826 esac
9827 else case e in #(
9828 e) # Check whether --with-pic was given.
9829 if test ${with_pic+y}
9830 then :
9831 withval=$with_pic; lt_p=${PACKAGE-default}
9832 case $withval in
9833 yes|no) pic_mode=$withval ;;
9834 *)
9835 pic_mode=default
9836 # Look at the argument we got. We use all the common list separators.
9837 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9838 for lt_pkg in $withval; do
9839 IFS=$lt_save_ifs
9840 if test "X$lt_pkg" = "X$lt_p"; then
9841 pic_mode=yes
9842 fi
9843 done
9844 IFS=$lt_save_ifs
9845 ;;
9846 esac
9847 else case e in #(
9848 e) pic_mode=default ;;
9849 esac
9850 fi
9851
9852 ;;
9853 esac
9854 fi
9855
9856
9857
9858
9859
9860
9861
9862
9863 # Check whether --enable-fast-install was given.
9864 if test ${enable_fast_install+y}
9865 then :
9866 enableval=$enable_fast_install; p=${PACKAGE-default}
9867 case $enableval in
9868 yes) enable_fast_install=yes ;;
9869 no) enable_fast_install=no ;;
9870 *)
9871 enable_fast_install=no
9872 # Look at the argument we got. We use all the common list separators.
9873 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9874 for pkg in $enableval; do
9875 IFS=$lt_save_ifs
9876 if test "X$pkg" = "X$p"; then
9877 enable_fast_install=yes
9878 fi
9879 done
9880 IFS=$lt_save_ifs
9881 ;;
9882 esac
9883 else case e in #(
9884 e) enable_fast_install=yes ;;
9885 esac
9886 fi
9887
9888
9889
9890
9891
9892
9893
9894
9895 shared_archive_member_spec=
9896 case $host,$enable_shared in
9897 power*-*-aix[5-9]*,yes)
9898 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9899 printf %s "checking which variant of shared library versioning to provide... " >&6; }
9900 # Check whether --enable-aix-soname was given.
9901 if test ${enable_aix_soname+y}
9902 then :
9903 enableval=$enable_aix_soname; case $enableval in
9904 aix|svr4|both)
9905 ;;
9906 *)
9907 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
9908 ;;
9909 esac
9910 lt_cv_with_aix_soname=$enable_aix_soname
9911 else case e in #(
9912 e) # Check whether --with-aix-soname was given.
9913 if test ${with_aix_soname+y}
9914 then :
9915 withval=$with_aix_soname; case $withval in
9916 aix|svr4|both)
9917 ;;
9918 *)
9919 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9920 ;;
9921 esac
9922 lt_cv_with_aix_soname=$with_aix_soname
9923 else case e in #(
9924 e) if test ${lt_cv_with_aix_soname+y}
9925 then :
9926 printf %s "(cached) " >&6
9927 else case e in #(
9928 e) lt_cv_with_aix_soname=aix ;;
9929 esac
9930 fi
9931 ;;
9932 esac
9933 fi
9934
9935 enable_aix_soname=$lt_cv_with_aix_soname ;;
9936 esac
9937 fi
9938
9939 with_aix_soname=$enable_aix_soname
9940 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9941 printf '%s\n' "$with_aix_soname" >&6; }
9942 if test aix != "$with_aix_soname"; then
9943 # For the AIX way of multilib, we name the shared archive member
9944 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9945 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9946 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9947 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9948 if test 64 = "${OBJECT_MODE-32}"; then
9949 shared_archive_member_spec=shr_64
9950 else
9951 shared_archive_member_spec=shr
9952 fi
9953 fi
9954 ;;
9955 *)
9956 with_aix_soname=aix
9957 ;;
9958 esac
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969 # This can be used to rebuild libtool when needed
9970 LIBTOOL_DEPS=$ltmain
9971
9972 # Always use our own libtool.
9973 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004 test -z "$LN_S" && LN_S="ln -s"
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019 if test -n "${ZSH_VERSION+set}"; then
10020 setopt NO_GLOB_SUBST
10021 fi
10022
10023 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10024 printf %s "checking for objdir... " >&6; }
10025 if test ${lt_cv_objdir+y}
10026 then :
10027 printf %s "(cached) " >&6
10028 else case e in #(
10029 e) rm -f .libs 2>/dev/null
10030 mkdir .libs 2>/dev/null
10031 if test -d .libs; then
10032 lt_cv_objdir=.libs
10033 else
10034 # MS-DOS does not allow filenames that begin with a dot.
10035 lt_cv_objdir=_libs
10036 fi
10037 rmdir .libs 2>/dev/null ;;
10038 esac
10039 fi
10040 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10041 printf '%s\n' "$lt_cv_objdir" >&6; }
10042 objdir=$lt_cv_objdir
10043
10044
10045
10046
10047
10048 printf '%s\n' "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
10049
10050
10051
10052
10053 case $host_os in
10054 aix3*)
10055 # AIX sometimes has problems with the GCC collect2 program. For some
10056 # reason, if we set the COLLECT_NAMES environment variable, the problems
10057 # vanish in a puff of smoke.
10058 if test set != "${COLLECT_NAMES+set}"; then
10059 COLLECT_NAMES=
10060 export COLLECT_NAMES
10061 fi
10062 ;;
10063 esac
10064
10065 # Global variables:
10066 ofile=libtool
10067 can_build_shared=yes
10068
10069 # All known linkers require a '.a' archive for static linking (except MSVC and
10070 # ICC, which need '.lib').
10071 libext=a
10072
10073 with_gnu_ld=$lt_cv_prog_gnu_ld
10074
10075 old_CC=$CC
10076 old_CFLAGS=$CFLAGS
10077
10078 # Set sane defaults for various variables
10079 test -z "$CC" && CC=cc
10080 test -z "$LTCC" && LTCC=$CC
10081 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10082 test -z "$LD" && LD=ld
10083 test -z "$ac_objext" && ac_objext=o
10084
10085 func_cc_basename $compiler
10086 cc_basename=$func_cc_basename_result
10087
10088
10089 # Only perform the check for file, if the check method requires it
10090 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10091 case $deplibs_check_method in
10092 file_magic*)
10093 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10094 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10095 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
10096 if test ${lt_cv_path_MAGIC_CMD+y}
10097 then :
10098 printf %s "(cached) " >&6
10099 else case e in #(
10100 e) case $MAGIC_CMD in
10101 [\\/*] | ?:[\\/]*)
10102 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10103 ;;
10104 *)
10105 lt_save_MAGIC_CMD=$MAGIC_CMD
10106 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10107 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10108 for ac_dir in $ac_dummy; do
10109 IFS=$lt_save_ifs
10110 test -z "$ac_dir" && ac_dir=.
10111 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10112 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10113 if test -n "$file_magic_test_file"; then
10114 case $deplibs_check_method in
10115 "file_magic "*)
10116 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10117 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10118 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10119 $EGREP "$file_magic_regex" > /dev/null; then
10120 :
10121 else
10122 cat <<_LT_EOF 1>&2
10123
10124 *** Warning: the command libtool uses to detect shared libraries,
10125 *** $file_magic_cmd, produces output that libtool cannot recognize.
10126 *** The result is that libtool may fail to recognize shared libraries
10127 *** as such. This will affect the creation of libtool libraries that
10128 *** depend on shared libraries, but programs linked with such libtool
10129 *** libraries will work regardless of this problem. Nevertheless, you
10130 *** may want to report the problem to your system manager and/or to
10131 *** [email protected]
10132
10133 _LT_EOF
10134 fi ;;
10135 esac
10136 fi
10137 break
10138 fi
10139 done
10140 IFS=$lt_save_ifs
10141 MAGIC_CMD=$lt_save_MAGIC_CMD
10142 ;;
10143 esac ;;
10144 esac
10145 fi
10146
10147 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10148 if test -n "$MAGIC_CMD"; then
10149 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10150 printf '%s\n' "$MAGIC_CMD" >&6; }
10151 else
10152 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
10153 printf '%s\n' "no" >&6; }
10154 fi
10155
10156
10157
10158
10159
10160 if test -z "$lt_cv_path_MAGIC_CMD"; then
10161 if test -n "$ac_tool_prefix"; then
10162 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10163 printf %s "checking for file... " >&6; }
10164 if test ${lt_cv_path_MAGIC_CMD+y}
10165 then :
10166 printf %s "(cached) " >&6
10167 else case e in #(
10168 e) case $MAGIC_CMD in
10169 [\\/*] | ?:[\\/]*)
10170 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10171 ;;
10172 *)
10173 lt_save_MAGIC_CMD=$MAGIC_CMD
10174 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10175 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10176 for ac_dir in $ac_dummy; do
10177 IFS=$lt_save_ifs
10178 test -z "$ac_dir" && ac_dir=.
10179 if test -f "$ac_dir/file"; then
10180 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10181 if test -n "$file_magic_test_file"; then
10182 case $deplibs_check_method in
10183 "file_magic "*)
10184 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10185 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10186 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10187 $EGREP "$file_magic_regex" > /dev/null; then
10188 :
10189 else
10190 cat <<_LT_EOF 1>&2
10191
10192 *** Warning: the command libtool uses to detect shared libraries,
10193 *** $file_magic_cmd, produces output that libtool cannot recognize.
10194 *** The result is that libtool may fail to recognize shared libraries
10195 *** as such. This will affect the creation of libtool libraries that
10196 *** depend on shared libraries, but programs linked with such libtool
10197 *** libraries will work regardless of this problem. Nevertheless, you
10198 *** may want to report the problem to your system manager and/or to
10199 *** [email protected]
10200
10201 _LT_EOF
10202 fi ;;
10203 esac
10204 fi
10205 break
10206 fi
10207 done
10208 IFS=$lt_save_ifs
10209 MAGIC_CMD=$lt_save_MAGIC_CMD
10210 ;;
10211 esac ;;
10212 esac
10213 fi
10214
10215 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10216 if test -n "$MAGIC_CMD"; then
10217 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10218 printf '%s\n' "$MAGIC_CMD" >&6; }
10219 else
10220 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
10221 printf '%s\n' "no" >&6; }
10222 fi
10223
10224
10225 else
10226 MAGIC_CMD=:
10227 fi
10228 fi
10229
10230 fi
10231 ;;
10232 esac
10233
10234 # Use C for the default configuration in the libtool script
10235
10236 lt_save_CC=$CC
10237 ac_ext=c
10238 ac_cpp='$CPP $CPPFLAGS'
10239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10242
10243
10244 # Source file extension for C test sources.
10245 ac_ext=c
10246
10247 # Object file extension for compiled C test sources.
10248 objext=o
10249 objext=$objext
10250
10251 # Code to be used in simple compile tests
10252 lt_simple_compile_test_code="int some_variable = 0;"
10253
10254 # Code to be used in simple link tests
10255 lt_simple_link_test_code='int main(void){return(0);}'
10256
10257
10258
10259
10260
10261
10262
10263 # If no C compiler was specified, use CC.
10264 LTCC=${LTCC-"$CC"}
10265
10266 # If no C compiler flags were specified, use CFLAGS.
10267 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10268
10269 # Allow CC to be a program name with arguments.
10270 compiler=$CC
10271
10272 # Save the default compiler, since it gets overwritten when the other
10273 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10274 compiler_DEFAULT=$CC
10275
10276 # save warnings/boilerplate of simple test code
10277 ac_outfile=conftest.$ac_objext
10278 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10279 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10280 _lt_compiler_boilerplate=`cat conftest.err`
10281 $RM conftest*
10282
10283 ac_outfile=conftest.$ac_objext
10284 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10285 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10286 _lt_linker_boilerplate=`cat conftest.err`
10287 $RM -r conftest*
10288
10289
10290 ## CAVEAT EMPTOR:
10291 ## There is no encapsulation within the following macros, do not change
10292 ## the running order or otherwise move them around unless you know exactly
10293 ## what you are doing...
10294 if test -n "$compiler"; then
10295
10296 lt_prog_compiler_no_builtin_flag=
10297
10298 if test yes = "$GCC"; then
10299 case $cc_basename in
10300 nvcc*)
10301 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10302 *)
10303 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10304 esac
10305
10306 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10307 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10308 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
10309 then :
10310 printf %s "(cached) " >&6
10311 else case e in #(
10312 e) lt_cv_prog_compiler_rtti_exceptions=no
10313 ac_outfile=conftest.$ac_objext
10314 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10315 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10316 # Insert the option either (1) after the last *FLAGS variable, or
10317 # (2) before a word containing "conftest.", or (3) at the end.
10318 # Note that $ac_compile itself does not contain backslashes and begins
10319 # with a dollar sign (not a hyphen), so the echo should work correctly.
10320 # The option is referenced via a variable to avoid confusing sed.
10321 lt_compile=`echo "$ac_compile" | $SED \
10322 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10323 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10324 -e 's:$: $lt_compiler_flag:'`
10325 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10326 (eval "$lt_compile" 2>conftest.err)
10327 ac_status=$?
10328 cat conftest.err >&5
10329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330 if (exit $ac_status) && test -s "$ac_outfile"; then
10331 # The compiler can only warn and ignore the option if not recognized
10332 # So say no if there are warnings other than the usual output.
10333 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10334 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10335 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10336 lt_cv_prog_compiler_rtti_exceptions=yes
10337 fi
10338 fi
10339 $RM conftest*
10340 ;;
10341 esac
10342 fi
10343 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10344 printf '%s\n' "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10345
10346 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10347 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10348 else
10349 :
10350 fi
10351
10352 fi
10353
10354
10355
10356
10357
10358
10359 lt_prog_compiler_wl=
10360 lt_prog_compiler_pic=
10361 lt_prog_compiler_static=
10362
10363
10364 if test yes = "$GCC"; then
10365 lt_prog_compiler_wl='-Wl,'
10366 lt_prog_compiler_static='-static'
10367
10368 case $host_os in
10369 aix*)
10370 # All AIX code is PIC.
10371 if test ia64 = "$host_cpu"; then
10372 # AIX 5 now supports IA64 processor
10373 lt_prog_compiler_static='-Bstatic'
10374 fi
10375 lt_prog_compiler_pic='-fPIC'
10376 ;;
10377
10378 amigaos*)
10379 case $host_cpu in
10380 powerpc)
10381 # see comment about AmigaOS4 .so support
10382 lt_prog_compiler_pic='-fPIC'
10383 ;;
10384 m68k)
10385 # FIXME: we need at least 68020 code to build shared libraries, but
10386 # adding the '-m68020' flag to GCC prevents building anything better,
10387 # like '-m68040'.
10388 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10389 ;;
10390 esac
10391 ;;
10392
10393 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10394 # PIC is the default for these OSes.
10395 ;;
10396
10397 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10398 # This hack is so that the source file can tell whether it is being
10399 # built for inclusion in a dll (and should export symbols for example).
10400 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10401 # (--disable-auto-import) libraries
10402 lt_prog_compiler_pic='-DDLL_EXPORT'
10403 case $host_os in
10404 os2*)
10405 lt_prog_compiler_static='$wl-static'
10406 ;;
10407 esac
10408 ;;
10409
10410 darwin* | rhapsody*)
10411 # PIC is the default on this platform
10412 # Common symbols not allowed in MH_DYLIB files
10413 lt_prog_compiler_pic='-fno-common'
10414 ;;
10415
10416 haiku*)
10417 # PIC is the default for Haiku.
10418 # The "-static" flag exists, but is broken.
10419 lt_prog_compiler_static=
10420 ;;
10421
10422 hpux*)
10423 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10424 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10425 # sets the default TLS model and affects inlining.
10426 case $host_cpu in
10427 hppa*64*)
10428 # +Z the default
10429 ;;
10430 *)
10431 lt_prog_compiler_pic='-fPIC'
10432 ;;
10433 esac
10434 ;;
10435
10436 interix[3-9]*)
10437 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10438 # Instead, we relocate shared libraries at runtime.
10439 ;;
10440
10441 msdosdjgpp*)
10442 # Just because we use GCC doesn't mean we suddenly get shared libraries
10443 # on systems that don't support them.
10444 lt_prog_compiler_can_build_shared=no
10445 enable_shared=no
10446 ;;
10447
10448 *nto* | *qnx*)
10449 # QNX uses GNU C++, but need to define -shared option too, otherwise
10450 # it will coredump.
10451 lt_prog_compiler_pic='-fPIC -shared'
10452 ;;
10453
10454 sysv4*MP*)
10455 if test -d /usr/nec; then
10456 lt_prog_compiler_pic=-Kconform_pic
10457 fi
10458 ;;
10459
10460 *)
10461 lt_prog_compiler_pic='-fPIC'
10462 ;;
10463 esac
10464
10465 case $cc_basename in
10466 nvcc*) # Cuda Compiler Driver 2.2
10467 lt_prog_compiler_wl='-Xlinker '
10468 if test -n "$lt_prog_compiler_pic"; then
10469 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10470 fi
10471 ;;
10472 esac
10473 else
10474 # PORTME Check for flag to pass linker flags through the system compiler.
10475 case $host_os in
10476 aix*)
10477 lt_prog_compiler_wl='-Wl,'
10478 if test ia64 = "$host_cpu"; then
10479 # AIX 5 now supports IA64 processor
10480 lt_prog_compiler_static='-Bstatic'
10481 else
10482 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10483 fi
10484 ;;
10485
10486 darwin* | rhapsody*)
10487 # PIC is the default on this platform
10488 # Common symbols not allowed in MH_DYLIB files
10489 lt_prog_compiler_pic='-fno-common'
10490 case $cc_basename in
10491 nagfor*)
10492 # NAG Fortran compiler
10493 lt_prog_compiler_wl='-Wl,-Wl,,'
10494 lt_prog_compiler_pic='-PIC'
10495 lt_prog_compiler_static='-Bstatic'
10496 ;;
10497 esac
10498 ;;
10499
10500 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10501 # This hack is so that the source file can tell whether it is being
10502 # built for inclusion in a dll (and should export symbols for example).
10503 lt_prog_compiler_pic='-DDLL_EXPORT'
10504 case $host_os in
10505 os2*)
10506 lt_prog_compiler_static='$wl-static'
10507 ;;
10508 esac
10509 ;;
10510
10511 hpux9* | hpux10* | hpux11*)
10512 lt_prog_compiler_wl='-Wl,'
10513 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10514 # not for PA HP-UX.
10515 case $host_cpu in
10516 hppa*64*|ia64*)
10517 # +Z the default
10518 ;;
10519 *)
10520 lt_prog_compiler_pic='+Z'
10521 ;;
10522 esac
10523 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10524 lt_prog_compiler_static='$wl-a ${wl}archive'
10525 ;;
10526
10527 irix5* | irix6* | nonstopux*)
10528 lt_prog_compiler_wl='-Wl,'
10529 # PIC (with -KPIC) is the default.
10530 lt_prog_compiler_static='-non_shared'
10531 ;;
10532
10533 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | *freebsd*)
10534 case $cc_basename in
10535 # old Intel for x86_64, which still supported -KPIC.
10536 ecc*)
10537 lt_prog_compiler_wl='-Wl,'
10538 lt_prog_compiler_pic='-KPIC'
10539 lt_prog_compiler_static='-static'
10540 ;;
10541 *flang* | ftn | f18* | f95*)
10542 # Flang compiler.
10543 lt_prog_compiler_wl='-Wl,'
10544 lt_prog_compiler_pic='-fPIC'
10545 lt_prog_compiler_static='-static'
10546 ;;
10547 # icc used to be incompatible with GCC.
10548 # ICC 10 doesn't accept -KPIC any more.
10549 icc* | ifort*)
10550 lt_prog_compiler_wl='-Wl,'
10551 lt_prog_compiler_pic='-fPIC'
10552 lt_prog_compiler_static='-static'
10553 ;;
10554 # Lahey Fortran 8.1.
10555 lf95*)
10556 lt_prog_compiler_wl='-Wl,'
10557 lt_prog_compiler_pic='--shared'
10558 lt_prog_compiler_static='--static'
10559 ;;
10560 nagfor*)
10561 # NAG Fortran compiler
10562 lt_prog_compiler_wl='-Wl,-Wl,,'
10563 lt_prog_compiler_pic='-PIC'
10564 lt_prog_compiler_static='-Bstatic'
10565 ;;
10566 tcc*)
10567 # Fabrice Bellard et al's Tiny C Compiler
10568 lt_prog_compiler_wl='-Wl,'
10569 lt_prog_compiler_pic='-fPIC'
10570 lt_prog_compiler_static='-static'
10571 ;;
10572 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10573 # Portland Group compilers (*not* the Pentium gcc compiler,
10574 # which looks to be a dead project)
10575 lt_prog_compiler_wl='-Wl,'
10576 lt_prog_compiler_pic='-fpic'
10577 lt_prog_compiler_static='-Bstatic'
10578 ;;
10579 ccc*)
10580 lt_prog_compiler_wl='-Wl,'
10581 # All Alpha code is PIC.
10582 lt_prog_compiler_static='-non_shared'
10583 ;;
10584 xl* | bgxl* | bgf* | mpixl*)
10585 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10586 lt_prog_compiler_wl='-Wl,'
10587 lt_prog_compiler_pic='-qpic'
10588 lt_prog_compiler_static='-qstaticlink'
10589 ;;
10590 *)
10591 case `$CC -V 2>&1 | $SED 5q` in
10592 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10593 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10594 lt_prog_compiler_pic='-KPIC'
10595 lt_prog_compiler_static='-Bstatic'
10596 lt_prog_compiler_wl=''
10597 ;;
10598 *Sun\ F* | *Sun*Fortran*)
10599 lt_prog_compiler_pic='-KPIC'
10600 lt_prog_compiler_static='-Bstatic'
10601 lt_prog_compiler_wl='-Qoption ld '
10602 ;;
10603 *Sun\ C*)
10604 # Sun C 5.9
10605 lt_prog_compiler_pic='-KPIC'
10606 lt_prog_compiler_static='-Bstatic'
10607 lt_prog_compiler_wl='-Wl,'
10608 ;;
10609 *Intel*\ [CF]*Compiler*)
10610 lt_prog_compiler_wl='-Wl,'
10611 lt_prog_compiler_pic='-fPIC'
10612 lt_prog_compiler_static='-static'
10613 ;;
10614 *Portland\ Group*)
10615 lt_prog_compiler_wl='-Wl,'
10616 lt_prog_compiler_pic='-fpic'
10617 lt_prog_compiler_static='-Bstatic'
10618 ;;
10619 esac
10620 ;;
10621 esac
10622 ;;
10623
10624 newsos6)
10625 lt_prog_compiler_pic='-KPIC'
10626 lt_prog_compiler_static='-Bstatic'
10627 ;;
10628
10629 *-mlibc)
10630 lt_prog_compiler_wl='-Wl,'
10631 lt_prog_compiler_pic='-fPIC'
10632 lt_prog_compiler_static='-static'
10633 ;;
10634
10635 *nto* | *qnx*)
10636 # QNX uses GNU C++, but need to define -shared option too, otherwise
10637 # it will coredump.
10638 lt_prog_compiler_pic='-fPIC -shared'
10639 ;;
10640
10641 osf3* | osf4* | osf5*)
10642 lt_prog_compiler_wl='-Wl,'
10643 # All OSF/1 code is PIC.
10644 lt_prog_compiler_static='-non_shared'
10645 ;;
10646
10647 rdos*)
10648 lt_prog_compiler_static='-non_shared'
10649 ;;
10650
10651 serenity*)
10652 ;;
10653
10654 solaris*)
10655 lt_prog_compiler_pic='-KPIC'
10656 lt_prog_compiler_static='-Bstatic'
10657 case $cc_basename in
10658 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10659 lt_prog_compiler_wl='-Qoption ld ';;
10660 *)
10661 lt_prog_compiler_wl='-Wl,';;
10662 esac
10663 ;;
10664
10665 sunos4*)
10666 lt_prog_compiler_wl='-Qoption ld '
10667 lt_prog_compiler_pic='-PIC'
10668 lt_prog_compiler_static='-Bstatic'
10669 ;;
10670
10671 sysv4 | sysv4.2uw2* | sysv4.3*)
10672 lt_prog_compiler_wl='-Wl,'
10673 lt_prog_compiler_pic='-KPIC'
10674 lt_prog_compiler_static='-Bstatic'
10675 ;;
10676
10677 sysv4*MP*)
10678 if test -d /usr/nec; then
10679 lt_prog_compiler_pic='-Kconform_pic'
10680 lt_prog_compiler_static='-Bstatic'
10681 fi
10682 ;;
10683
10684 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10685 lt_prog_compiler_wl='-Wl,'
10686 lt_prog_compiler_pic='-KPIC'
10687 lt_prog_compiler_static='-Bstatic'
10688 ;;
10689
10690 unicos*)
10691 lt_prog_compiler_wl='-Wl,'
10692 lt_prog_compiler_can_build_shared=no
10693 ;;
10694
10695 uts4*)
10696 lt_prog_compiler_pic='-pic'
10697 lt_prog_compiler_static='-Bstatic'
10698 ;;
10699
10700 *)
10701 lt_prog_compiler_can_build_shared=no
10702 ;;
10703 esac
10704 fi
10705
10706 case $host_os in
10707 # For platforms that do not support PIC, -DPIC is meaningless:
10708 *djgpp*)
10709 lt_prog_compiler_pic=
10710 ;;
10711 *)
10712 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10713 ;;
10714 esac
10715
10716 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10717 printf %s "checking for $compiler option to produce PIC... " >&6; }
10718 if test ${lt_cv_prog_compiler_pic+y}
10719 then :
10720 printf %s "(cached) " >&6
10721 else case e in #(
10722 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
10723 esac
10724 fi
10725 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10726 printf '%s\n' "$lt_cv_prog_compiler_pic" >&6; }
10727 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10728
10729 #
10730 # Check to make sure the PIC flag actually works.
10731 #
10732 if test -n "$lt_prog_compiler_pic"; then
10733 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10734 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10735 if test ${lt_cv_prog_compiler_pic_works+y}
10736 then :
10737 printf %s "(cached) " >&6
10738 else case e in #(
10739 e) lt_cv_prog_compiler_pic_works=no
10740 ac_outfile=conftest.$ac_objext
10741 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10742 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10743 # Insert the option either (1) after the last *FLAGS variable, or
10744 # (2) before a word containing "conftest.", or (3) at the end.
10745 # Note that $ac_compile itself does not contain backslashes and begins
10746 # with a dollar sign (not a hyphen), so the echo should work correctly.
10747 # The option is referenced via a variable to avoid confusing sed.
10748 lt_compile=`echo "$ac_compile" | $SED \
10749 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10750 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10751 -e 's:$: $lt_compiler_flag:'`
10752 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10753 (eval "$lt_compile" 2>conftest.err)
10754 ac_status=$?
10755 cat conftest.err >&5
10756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 if (exit $ac_status) && test -s "$ac_outfile"; then
10758 # The compiler can only warn and ignore the option if not recognized
10759 # So say no if there are warnings other than the usual output.
10760 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10761 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10762 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10763 lt_cv_prog_compiler_pic_works=yes
10764 fi
10765 fi
10766 $RM conftest*
10767 ;;
10768 esac
10769 fi
10770 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10771 printf '%s\n' "$lt_cv_prog_compiler_pic_works" >&6; }
10772
10773 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10774 case $lt_prog_compiler_pic in
10775 "" | " "*) ;;
10776 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10777 esac
10778 else
10779 lt_prog_compiler_pic=
10780 lt_prog_compiler_can_build_shared=no
10781 fi
10782
10783 fi
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795 #
10796 # Check to make sure the static flag actually works.
10797 #
10798 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10799 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10800 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10801 if test ${lt_cv_prog_compiler_static_works+y}
10802 then :
10803 printf %s "(cached) " >&6
10804 else case e in #(
10805 e) lt_cv_prog_compiler_static_works=no
10806 save_LDFLAGS=$LDFLAGS
10807 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10808 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10809 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10810 # The linker can only warn and ignore the option if not recognized
10811 # So say no if there are warnings
10812 if test -s conftest.err; then
10813 # Append any errors to the config.log.
10814 cat conftest.err 1>&5
10815 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10816 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10817 if diff conftest.exp conftest.er2 >/dev/null; then
10818 lt_cv_prog_compiler_static_works=yes
10819 fi
10820 else
10821 lt_cv_prog_compiler_static_works=yes
10822 fi
10823 fi
10824 $RM -r conftest*
10825 LDFLAGS=$save_LDFLAGS
10826 ;;
10827 esac
10828 fi
10829 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10830 printf '%s\n' "$lt_cv_prog_compiler_static_works" >&6; }
10831
10832 if test yes = "$lt_cv_prog_compiler_static_works"; then
10833 :
10834 else
10835 lt_prog_compiler_static=
10836 fi
10837
10838
10839
10840
10841
10842
10843
10844 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10845 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10846 if test ${lt_cv_prog_compiler_c_o+y}
10847 then :
10848 printf %s "(cached) " >&6
10849 else case e in #(
10850 e) lt_cv_prog_compiler_c_o=no
10851 $RM -r conftest 2>/dev/null
10852 mkdir conftest
10853 cd conftest
10854 mkdir out
10855 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10856
10857 lt_compiler_flag="-o out/conftest2.$ac_objext"
10858 # Insert the option either (1) after the last *FLAGS variable, or
10859 # (2) before a word containing "conftest.", or (3) at the end.
10860 # Note that $ac_compile itself does not contain backslashes and begins
10861 # with a dollar sign (not a hyphen), so the echo should work correctly.
10862 lt_compile=`echo "$ac_compile" | $SED \
10863 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10864 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10865 -e 's:$: $lt_compiler_flag:'`
10866 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10867 (eval "$lt_compile" 2>out/conftest.err)
10868 ac_status=$?
10869 cat out/conftest.err >&5
10870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10872 then
10873 # The compiler can only warn and ignore the option if not recognized
10874 # So say no if there are warnings
10875 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10876 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10877 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10878 lt_cv_prog_compiler_c_o=yes
10879 fi
10880 fi
10881 chmod u+w . 2>&5
10882 $RM conftest*
10883 # SGI C++ compiler will create directory out/ii_files/ for
10884 # template instantiation
10885 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10886 $RM out/* && rmdir out
10887 cd ..
10888 $RM -r conftest
10889 $RM conftest*
10890 ;;
10891 esac
10892 fi
10893 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10894 printf '%s\n' "$lt_cv_prog_compiler_c_o" >&6; }
10895
10896
10897
10898
10899
10900
10901 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10902 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10903 if test ${lt_cv_prog_compiler_c_o+y}
10904 then :
10905 printf %s "(cached) " >&6
10906 else case e in #(
10907 e) lt_cv_prog_compiler_c_o=no
10908 $RM -r conftest 2>/dev/null
10909 mkdir conftest
10910 cd conftest
10911 mkdir out
10912 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10913
10914 lt_compiler_flag="-o out/conftest2.$ac_objext"
10915 # Insert the option either (1) after the last *FLAGS variable, or
10916 # (2) before a word containing "conftest.", or (3) at the end.
10917 # Note that $ac_compile itself does not contain backslashes and begins
10918 # with a dollar sign (not a hyphen), so the echo should work correctly.
10919 lt_compile=`echo "$ac_compile" | $SED \
10920 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10921 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10922 -e 's:$: $lt_compiler_flag:'`
10923 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10924 (eval "$lt_compile" 2>out/conftest.err)
10925 ac_status=$?
10926 cat out/conftest.err >&5
10927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10929 then
10930 # The compiler can only warn and ignore the option if not recognized
10931 # So say no if there are warnings
10932 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10933 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10934 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10935 lt_cv_prog_compiler_c_o=yes
10936 fi
10937 fi
10938 chmod u+w . 2>&5
10939 $RM conftest*
10940 # SGI C++ compiler will create directory out/ii_files/ for
10941 # template instantiation
10942 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10943 $RM out/* && rmdir out
10944 cd ..
10945 $RM -r conftest
10946 $RM conftest*
10947 ;;
10948 esac
10949 fi
10950 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10951 printf '%s\n' "$lt_cv_prog_compiler_c_o" >&6; }
10952
10953
10954
10955
10956 hard_links=nottested
10957 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10958 # do not overwrite the value of need_locks provided by the user
10959 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10960 printf %s "checking if we can lock with hard links... " >&6; }
10961 hard_links=yes
10962 $RM conftest*
10963 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10964 touch conftest.a
10965 ln conftest.a conftest.b 2>&5 || hard_links=no
10966 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10967 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10968 printf '%s\n' "$hard_links" >&6; }
10969 if test no = "$hard_links"; then
10970 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10971 printf '%s\n' "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10972 need_locks=warn
10973 fi
10974 else
10975 need_locks=no
10976 fi
10977
10978
10979
10980
10981
10982
10983 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10984 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10985
10986 runpath_var=
10987 allow_undefined_flag=
10988 always_export_symbols=no
10989 archive_cmds=
10990 archive_expsym_cmds=
10991 compiler_needs_object=no
10992 enable_shared_with_static_runtimes=no
10993 export_dynamic_flag_spec=
10994 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10995 hardcode_automatic=no
10996 hardcode_direct=no
10997 hardcode_direct_absolute=no
10998 hardcode_libdir_flag_spec=
10999 hardcode_libdir_separator=
11000 hardcode_minus_L=no
11001 hardcode_shlibpath_var=unsupported
11002 inherit_rpath=no
11003 link_all_deplibs=unknown
11004 module_cmds=
11005 module_expsym_cmds=
11006 old_archive_from_new_cmds=
11007 old_archive_from_expsyms_cmds=
11008 thread_safe_flag_spec=
11009 whole_archive_flag_spec=
11010 # include_expsyms should be a list of space-separated symbols to be *always*
11011 # included in the symbol list
11012 include_expsyms=
11013 # exclude_expsyms can be an extended regexp of symbols to exclude
11014 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11015 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11016 # as well as any symbol that contains 'd'.
11017 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11018 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11019 # platforms (ab)use it in PIC code, but their linkers get confused if
11020 # the symbol is explicitly referenced. Since portable code cannot
11021 # rely on this symbol name, it's probably fine to never include it in
11022 # preloaded symbol tables.
11023 # Exclude shared library initialization/finalization symbols.
11024 extract_expsyms_cmds=
11025
11026 case $host_os in
11027 cygwin* | mingw* | windows* | pw32* | cegcc*)
11028 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
11029 # When not using gcc, we currently assume that we are using
11030 # Microsoft Visual C++ or Intel C++ Compiler.
11031 if test yes != "$GCC"; then
11032 with_gnu_ld=no
11033 fi
11034 ;;
11035 interix*)
11036 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
11037 with_gnu_ld=yes
11038 ;;
11039 esac
11040
11041 ld_shlibs=yes
11042
11043 # On some targets, GNU ld is compatible enough with the native linker
11044 # that we're better off using the native interface for both.
11045 lt_use_gnu_ld_interface=no
11046 if test yes = "$with_gnu_ld"; then
11047 case $host_os in
11048 aix*)
11049 # The AIX port of GNU ld has always aspired to compatibility
11050 # with the native linker. However, as the warning in the GNU ld
11051 # block says, versions before 2.19.5* couldn't really create working
11052 # shared libraries, regardless of the interface used.
11053 case `$LD -v 2>&1` in
11054 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11055 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11056 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11057 *)
11058 lt_use_gnu_ld_interface=yes
11059 ;;
11060 esac
11061 ;;
11062 *)
11063 lt_use_gnu_ld_interface=yes
11064 ;;
11065 esac
11066 fi
11067
11068 if test yes = "$lt_use_gnu_ld_interface"; then
11069 # If archive_cmds runs LD, not CC, wlarc should be empty
11070 wlarc='$wl'
11071
11072 # Set some defaults for GNU ld with shared library support. These
11073 # are reset later if shared libraries are not supported. Putting them
11074 # here allows them to be overridden if necessary.
11075 runpath_var=LD_RUN_PATH
11076 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11077 export_dynamic_flag_spec='$wl--export-dynamic'
11078 # ancient GNU ld didn't support --whole-archive et. al.
11079 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11080 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11081 else
11082 whole_archive_flag_spec=
11083 fi
11084 supports_anon_versioning=no
11085 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
11086 *GNU\ gold*) supports_anon_versioning=yes ;;
11087 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11088 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11089 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11090 *\ 2.11.*) ;; # other 2.11 versions
11091 *) supports_anon_versioning=yes ;;
11092 esac
11093
11094 # See if GNU ld supports shared libraries.
11095 case $host_os in
11096 aix[3-9]*)
11097 # On AIX/PPC, the GNU linker is very broken
11098 if test ia64 != "$host_cpu"; then
11099 ld_shlibs=no
11100 cat <<_LT_EOF 1>&2
11101
11102 *** Warning: the GNU linker, at least up to release 2.19, is reported
11103 *** to be unable to reliably create shared libraries on AIX.
11104 *** Therefore, libtool is disabling shared libraries support. If you
11105 *** really care for shared libraries, you may want to install binutils
11106 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11107 *** You will then need to restart the configuration process.
11108
11109 _LT_EOF
11110 fi
11111 ;;
11112
11113 amigaos*)
11114 case $host_cpu in
11115 powerpc)
11116 # see comment about AmigaOS4 .so support
11117 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11118 archive_expsym_cmds=''
11119 ;;
11120 m68k)
11121 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)'
11122 hardcode_libdir_flag_spec='-L$libdir'
11123 hardcode_minus_L=yes
11124 ;;
11125 esac
11126 ;;
11127
11128 beos*)
11129 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11130 allow_undefined_flag=unsupported
11131 # Joseph Beckenbach <[email protected]> says some releases of gcc
11132 # support --undefined. This deserves some investigation. FIXME
11133 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11134 else
11135 ld_shlibs=no
11136 fi
11137 ;;
11138
11139 cygwin* | mingw* | windows* | pw32* | cegcc*)
11140 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11141 # as there is no search path for DLLs.
11142 hardcode_libdir_flag_spec='-L$libdir'
11143 export_dynamic_flag_spec='$wl--export-all-symbols'
11144 allow_undefined_flag=unsupported
11145 always_export_symbols=no
11146 enable_shared_with_static_runtimes=yes
11147 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'
11148 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11149 file_list_spec='@'
11150
11151 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11152 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11153 # If the export-symbols file already is a .def file, use it as
11154 # is; otherwise, prepend EXPORTS...
11155 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11156 cp $export_symbols $output_objdir/$soname.def;
11157 else
11158 echo EXPORTS > $output_objdir/$soname.def;
11159 cat $export_symbols >> $output_objdir/$soname.def;
11160 fi~
11161 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11162 else
11163 ld_shlibs=no
11164 fi
11165 ;;
11166
11167 haiku*)
11168 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11169 link_all_deplibs=no
11170 ;;
11171
11172 os2*)
11173 hardcode_libdir_flag_spec='-L$libdir'
11174 hardcode_minus_L=yes
11175 allow_undefined_flag=unsupported
11176 shrext_cmds=.dll
11177 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11178 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11179 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11180 $ECHO EXPORTS >> $output_objdir/$libname.def~
11181 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11182 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11183 emximp -o $lib $output_objdir/$libname.def'
11184 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11185 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11186 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11187 $ECHO EXPORTS >> $output_objdir/$libname.def~
11188 prefix_cmds="$SED"~
11189 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11190 prefix_cmds="$prefix_cmds -e 1d";
11191 fi~
11192 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11193 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11194 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11195 emximp -o $lib $output_objdir/$libname.def'
11196 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11197 enable_shared_with_static_runtimes=yes
11198 file_list_spec='@'
11199 ;;
11200
11201 interix[3-9]*)
11202 hardcode_direct=no
11203 hardcode_shlibpath_var=no
11204 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11205 export_dynamic_flag_spec='$wl-E'
11206 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11207 # Instead, shared libraries are loaded at an image base (0x10000000 by
11208 # default) and relocated if they conflict, which is a slow very memory
11209 # consuming and fragmenting process. To avoid this, we pick a random,
11210 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11211 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11212 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11213 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'
11214 ;;
11215
11216 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11217 tmp_diet=no
11218 if test linux-dietlibc = "$host_os"; then
11219 case $cc_basename in
11220 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11221 esac
11222 fi
11223 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11224 && test no = "$tmp_diet"
11225 then
11226 tmp_addflag=' $pic_flag'
11227 tmp_sharedflag='-shared'
11228 case $cc_basename,$host_cpu in
11229 pgcc*) # Portland Group C compiler
11230 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'
11231 tmp_addflag=' $pic_flag'
11232 ;;
11233 pgf77* | pgf90* | pgf95* | pgfortran*)
11234 # Portland Group f77 and f90 compilers
11235 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'
11236 tmp_addflag=' $pic_flag -Mnomain' ;;
11237 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11238 tmp_addflag=' -i_dynamic' ;;
11239 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11240 tmp_addflag=' -i_dynamic -nofor_main' ;;
11241 ifc* | ifort*) # Intel Fortran compiler
11242 tmp_addflag=' -nofor_main' ;;
11243 lf95*) # Lahey Fortran 8.1
11244 whole_archive_flag_spec=
11245 tmp_sharedflag='--shared' ;;
11246 nagfor*) # NAGFOR 5.3
11247 tmp_sharedflag='-Wl,-shared' ;;
11248 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11249 tmp_sharedflag='-qmkshrobj'
11250 tmp_addflag= ;;
11251 nvcc*) # Cuda Compiler Driver 2.2
11252 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'
11253 compiler_needs_object=yes
11254 ;;
11255 esac
11256 case `$CC -V 2>&1 | $SED 5q` in
11257 *Sun\ C*) # Sun C 5.9
11258 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'
11259 compiler_needs_object=yes
11260 tmp_sharedflag='-G' ;;
11261 *Sun\ F*) # Sun Fortran 8.3
11262 tmp_sharedflag='-G' ;;
11263 esac
11264 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11265
11266 if test yes = "$supports_anon_versioning"; then
11267 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11268 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11269 echo "local: *; };" >> $output_objdir/$libname.ver~
11270 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11271 fi
11272
11273 case $cc_basename in
11274 tcc*)
11275 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11276 export_dynamic_flag_spec='-rdynamic'
11277 ;;
11278 xlf* | bgf* | bgxlf* | mpixlf*)
11279 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11280 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11281 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11282 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11283 if test yes = "$supports_anon_versioning"; then
11284 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11285 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11286 echo "local: *; };" >> $output_objdir/$libname.ver~
11287 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11288 fi
11289 ;;
11290 esac
11291 else
11292 ld_shlibs=no
11293 fi
11294 ;;
11295
11296 *-mlibc)
11297 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11298 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11299 ;;
11300
11301 netbsd* | netbsdelf*-gnu)
11302 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11303 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11304 wlarc=
11305 else
11306 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11307 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11308 fi
11309 ;;
11310
11311 solaris*)
11312 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11313 ld_shlibs=no
11314 cat <<_LT_EOF 1>&2
11315
11316 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11317 *** create shared libraries on Solaris systems. Therefore, libtool
11318 *** is disabling shared libraries support. We urge you to upgrade GNU
11319 *** binutils to release 2.9.1 or newer. Another option is to modify
11320 *** your PATH or compiler configuration so that the native linker is
11321 *** used, and then restart.
11322
11323 _LT_EOF
11324 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11325 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11326 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11327 else
11328 ld_shlibs=no
11329 fi
11330 ;;
11331
11332 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11333 case `$LD -v 2>&1` in
11334 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11335 ld_shlibs=no
11336 cat <<_LT_EOF 1>&2
11337
11338 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11339 *** reliably create shared libraries on SCO systems. Therefore, libtool
11340 *** is disabling shared libraries support. We urge you to upgrade GNU
11341 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11342 *** your PATH or compiler configuration so that the native linker is
11343 *** used, and then restart.
11344
11345 _LT_EOF
11346 ;;
11347 *)
11348 # For security reasons, it is highly recommended that you always
11349 # use absolute paths for naming shared libraries, and exclude the
11350 # DT_RUNPATH tag from executables and libraries. But doing so
11351 # requires that you compile everything twice, which is a pain.
11352 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11353 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11354 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11355 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11356 else
11357 ld_shlibs=no
11358 fi
11359 ;;
11360 esac
11361 ;;
11362
11363 sunos4*)
11364 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11365 wlarc=
11366 hardcode_direct=yes
11367 hardcode_shlibpath_var=no
11368 ;;
11369
11370 *)
11371 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11372 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11373 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11374 else
11375 ld_shlibs=no
11376 fi
11377 ;;
11378 esac
11379
11380 if test no = "$ld_shlibs"; then
11381 runpath_var=
11382 hardcode_libdir_flag_spec=
11383 export_dynamic_flag_spec=
11384 whole_archive_flag_spec=
11385 fi
11386 else
11387 # PORTME fill in a description of your system's linker (not GNU ld)
11388 case $host_os in
11389 aix3*)
11390 allow_undefined_flag=unsupported
11391 always_export_symbols=yes
11392 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'
11393 # Note: this linker hardcodes the directories in LIBPATH if there
11394 # are no directories specified by -L.
11395 hardcode_minus_L=yes
11396 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11397 # Neither direct hardcoding nor static linking is supported with a
11398 # broken collect2.
11399 hardcode_direct=unsupported
11400 fi
11401 ;;
11402
11403 aix[4-9]*)
11404 if test ia64 = "$host_cpu"; then
11405 # On IA64, the linker does run time linking by default, so we don't
11406 # have to do anything special.
11407 aix_use_runtimelinking=no
11408 exp_sym_flag='-Bexport'
11409 no_entry_flag=
11410 else
11411 # If we're using GNU nm, then we don't want the "-C" option.
11412 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11413 # Without the "-l" option, or with the "-B" option, AIX nm treats
11414 # weak defined symbols like other global defined symbols, whereas
11415 # GNU nm marks them as "W".
11416 # While the 'weak' keyword is ignored in the Export File, we need
11417 # it in the Import File for the 'aix-soname' feature, so we have
11418 # to replace the "-B" option with "-P" for AIX nm.
11419 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11420 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'
11421 else
11422 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 == "L") || (\$ 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'
11423 fi
11424 aix_use_runtimelinking=no
11425
11426 # Test if we are trying to use run time linking or normal
11427 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11428 # have runtime linking enabled, and use it for executables.
11429 # For shared libraries, we enable/disable runtime linking
11430 # depending on the kind of the shared library created -
11431 # when "with_aix_soname,aix_use_runtimelinking" is:
11432 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11433 # "aix,yes" lib.so shared, rtl:yes, for executables
11434 # lib.a static archive
11435 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11436 # lib.a(lib.so.V) shared, rtl:no, for executables
11437 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11438 # lib.a(lib.so.V) shared, rtl:no
11439 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11440 # lib.a static archive
11441 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11442 for ld_flag in $LDFLAGS; do
11443 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11444 aix_use_runtimelinking=yes
11445 break
11446 fi
11447 done
11448 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11449 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11450 # so we don't have lib.a shared libs to link our executables.
11451 # We have to force runtime linking in this case.
11452 aix_use_runtimelinking=yes
11453 LDFLAGS="$LDFLAGS -Wl,-brtl"
11454 fi
11455 ;;
11456 esac
11457
11458 exp_sym_flag='-bexport'
11459 no_entry_flag='-bnoentry'
11460 fi
11461
11462 # When large executables or shared objects are built, AIX ld can
11463 # have problems creating the table of contents. If linking a library
11464 # or program results in "error TOC overflow" add -mminimal-toc to
11465 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11466 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11467
11468 archive_cmds=''
11469 hardcode_direct=yes
11470 hardcode_direct_absolute=yes
11471 hardcode_libdir_separator=':'
11472 link_all_deplibs=yes
11473 file_list_spec='$wl-f,'
11474 case $with_aix_soname,$aix_use_runtimelinking in
11475 aix,*) ;; # traditional, no import file
11476 svr4,* | *,yes) # use import file
11477 # The Import File defines what to hardcode.
11478 hardcode_direct=no
11479 hardcode_direct_absolute=no
11480 ;;
11481 esac
11482
11483 if test yes = "$GCC"; then
11484 case $host_os in aix4.[012]|aix4.[012].*)
11485 # We only want to do this on AIX 4.2 and lower, the check
11486 # below for broken collect2 doesn't work under 4.3+
11487 collect2name=`$CC -print-prog-name=collect2`
11488 if test -f "$collect2name" &&
11489 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11490 then
11491 # We have reworked collect2
11492 :
11493 else
11494 # We have old collect2
11495 hardcode_direct=unsupported
11496 # It fails to find uninstalled libraries when the uninstalled
11497 # path is not listed in the libpath. Setting hardcode_minus_L
11498 # to unsupported forces relinking
11499 hardcode_minus_L=yes
11500 hardcode_libdir_flag_spec='-L$libdir'
11501 hardcode_libdir_separator=
11502 fi
11503 ;;
11504 esac
11505 shared_flag='-shared'
11506 if test yes = "$aix_use_runtimelinking"; then
11507 shared_flag="$shared_flag "'$wl-G'
11508 fi
11509 # Need to ensure runtime linking is disabled for the traditional
11510 # shared library, or the linker may eventually find shared libraries
11511 # /with/ Import File - we do not want to mix them.
11512 shared_flag_aix='-shared'
11513 shared_flag_svr4='-shared $wl-G'
11514 else
11515 # not using gcc
11516 if test ia64 = "$host_cpu"; then
11517 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11518 # chokes on -Wl,-G. The following line is correct:
11519 shared_flag='-G'
11520 else
11521 if test yes = "$aix_use_runtimelinking"; then
11522 shared_flag='$wl-G'
11523 else
11524 shared_flag='$wl-bM:SRE'
11525 fi
11526 shared_flag_aix='$wl-bM:SRE'
11527 shared_flag_svr4='$wl-G'
11528 fi
11529 fi
11530
11531 export_dynamic_flag_spec='$wl-bexpall'
11532 # It seems that -bexpall does not export symbols beginning with
11533 # underscore (_), so it is better to generate a list of symbols to export.
11534 always_export_symbols=yes
11535 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11536 # Warning - without using the other runtime loading flags (-brtl),
11537 # -berok will link without error, but may produce a broken library.
11538 allow_undefined_flag='-berok'
11539 # Determine the default libpath from the value encoded in an
11540 # empty executable.
11541 if test set = "${lt_cv_aix_libpath+set}"; then
11542 aix_libpath=$lt_cv_aix_libpath
11543 else
11544 if test ${lt_cv_aix_libpath_+y}
11545 then :
11546 printf %s "(cached) " >&6
11547 else case e in #(
11548 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11549 /* end confdefs.h. */
11550
11551 int
11552 main (void)
11553 {
11554
11555 ;
11556 return 0;
11557 }
11558 _ACEOF
11559 if ac_fn_c_try_link "$LINENO"
11560 then :
11561
11562 lt_aix_libpath_sed='
11563 /Import File Strings/,/^$/ {
11564 /^0/ {
11565 s/^0 *\([^ ]*\) *$/\1/
11566 p
11567 }
11568 }'
11569 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11570 # Check for a 64-bit object if we didn't find anything.
11571 if test -z "$lt_cv_aix_libpath_"; then
11572 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11573 fi
11574 fi
11575 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11576 conftest$ac_exeext conftest.$ac_ext
11577 if test -z "$lt_cv_aix_libpath_"; then
11578 lt_cv_aix_libpath_=/usr/lib:/lib
11579 fi
11580 ;;
11581 esac
11582 fi
11583
11584 aix_libpath=$lt_cv_aix_libpath_
11585 fi
11586
11587 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11588 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
11589 else
11590 if test ia64 = "$host_cpu"; then
11591 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11592 allow_undefined_flag="-z nodefs"
11593 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"
11594 else
11595 # Determine the default libpath from the value encoded in an
11596 # empty executable.
11597 if test set = "${lt_cv_aix_libpath+set}"; then
11598 aix_libpath=$lt_cv_aix_libpath
11599 else
11600 if test ${lt_cv_aix_libpath_+y}
11601 then :
11602 printf %s "(cached) " >&6
11603 else case e in #(
11604 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11605 /* end confdefs.h. */
11606
11607 int
11608 main (void)
11609 {
11610
11611 ;
11612 return 0;
11613 }
11614 _ACEOF
11615 if ac_fn_c_try_link "$LINENO"
11616 then :
11617
11618 lt_aix_libpath_sed='
11619 /Import File Strings/,/^$/ {
11620 /^0/ {
11621 s/^0 *\([^ ]*\) *$/\1/
11622 p
11623 }
11624 }'
11625 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11626 # Check for a 64-bit object if we didn't find anything.
11627 if test -z "$lt_cv_aix_libpath_"; then
11628 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11629 fi
11630 fi
11631 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11632 conftest$ac_exeext conftest.$ac_ext
11633 if test -z "$lt_cv_aix_libpath_"; then
11634 lt_cv_aix_libpath_=/usr/lib:/lib
11635 fi
11636 ;;
11637 esac
11638 fi
11639
11640 aix_libpath=$lt_cv_aix_libpath_
11641 fi
11642
11643 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11644 # Warning - without using the other run time loading flags,
11645 # -berok will link without error, but may produce a broken library.
11646 no_undefined_flag=' $wl-bernotok'
11647 allow_undefined_flag=' $wl-berok'
11648 if test yes = "$with_gnu_ld"; then
11649 # We only use this code for GNU lds that support --whole-archive.
11650 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11651 else
11652 # Exported symbols can be pulled into shared objects from archives
11653 whole_archive_flag_spec='$convenience'
11654 fi
11655 archive_cmds_need_lc=yes
11656 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11657 # -brtl affects multiple linker settings, -berok does not and is overridden later
11658 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11659 if test svr4 != "$with_aix_soname"; then
11660 # This is similar to how AIX traditionally builds its shared libraries.
11661 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'
11662 fi
11663 if test aix != "$with_aix_soname"; then
11664 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'
11665 else
11666 # used by -dlpreopen to get the symbols
11667 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11668 fi
11669 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11670 fi
11671 fi
11672 ;;
11673
11674 amigaos*)
11675 case $host_cpu in
11676 powerpc)
11677 # see comment about AmigaOS4 .so support
11678 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11679 archive_expsym_cmds=''
11680 ;;
11681 m68k)
11682 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)'
11683 hardcode_libdir_flag_spec='-L$libdir'
11684 hardcode_minus_L=yes
11685 ;;
11686 esac
11687 ;;
11688
11689 bsdi[45]*)
11690 export_dynamic_flag_spec=-rdynamic
11691 ;;
11692
11693 cygwin* | mingw* | windows* | pw32* | cegcc*)
11694 # When not using gcc, we currently assume that we are using
11695 # Microsoft Visual C++ or Intel C++ Compiler.
11696 # hardcode_libdir_flag_spec is actually meaningless, as there is
11697 # no search path for DLLs.
11698 case $cc_basename in
11699 cl* | icl*)
11700 # Native MSVC or ICC
11701 hardcode_libdir_flag_spec=' '
11702 allow_undefined_flag=unsupported
11703 always_export_symbols=yes
11704 file_list_spec='@'
11705 # Tell ltmain to make .lib files, not .a files.
11706 libext=lib
11707 # Tell ltmain to make .dll files, not .so files.
11708 shrext_cmds=.dll
11709 # FIXME: Setting linknames here is a bad hack.
11710 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11711 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11712 cp "$export_symbols" "$output_objdir/$soname.def";
11713 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11714 else
11715 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11716 fi~
11717 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11718 linknames='
11719 # The linker will not automatically build a static lib if we build a DLL.
11720 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11721 enable_shared_with_static_runtimes=yes
11722 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11723 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11724 # Don't use ranlib
11725 old_postinstall_cmds='chmod 644 $oldlib'
11726 postlink_cmds='lt_outputfile="@OUTPUT@"~
11727 lt_tool_outputfile="@TOOL_OUTPUT@"~
11728 case $lt_outputfile in
11729 *.exe|*.EXE) ;;
11730 *)
11731 lt_outputfile=$lt_outputfile.exe
11732 lt_tool_outputfile=$lt_tool_outputfile.exe
11733 ;;
11734 esac~
11735 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11736 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11737 $RM "$lt_outputfile.manifest";
11738 fi'
11739 ;;
11740 *)
11741 # Assume MSVC and ICC wrapper
11742 hardcode_libdir_flag_spec=' '
11743 allow_undefined_flag=unsupported
11744 # Tell ltmain to make .lib files, not .a files.
11745 libext=lib
11746 # Tell ltmain to make .dll files, not .so files.
11747 shrext_cmds=.dll
11748 # FIXME: Setting linknames here is a bad hack.
11749 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11750 # The linker will automatically build a .lib file if we build a DLL.
11751 old_archive_from_new_cmds='true'
11752 # FIXME: Should let the user specify the lib program.
11753 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11754 enable_shared_with_static_runtimes=yes
11755 ;;
11756 esac
11757 ;;
11758
11759 darwin* | rhapsody*)
11760
11761
11762 archive_cmds_need_lc=no
11763 hardcode_direct=no
11764 hardcode_automatic=yes
11765 hardcode_shlibpath_var=unsupported
11766 if test yes = "$lt_cv_ld_force_load"; then
11767 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\"`'
11768
11769 else
11770 whole_archive_flag_spec=''
11771 fi
11772 link_all_deplibs=yes
11773 allow_undefined_flag=$_lt_dar_allow_undefined
11774 case $cc_basename in
11775 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11776 *) _lt_dar_can_shared=$GCC ;;
11777 esac
11778 if test yes = "$_lt_dar_can_shared"; then
11779 output_verbose_link_cmd=func_echo_all
11780 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11781 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11782 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"
11783 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"
11784
11785 else
11786 ld_shlibs=no
11787 fi
11788
11789 ;;
11790
11791 dgux*)
11792 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11793 hardcode_libdir_flag_spec='-L$libdir'
11794 hardcode_shlibpath_var=no
11795 ;;
11796
11797 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11798 # support. Future versions do this automatically, but an explicit c++rt0.o
11799 # does not break anything, and helps significantly (at the cost of a little
11800 # extra space).
11801 freebsd2.2*)
11802 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11803 hardcode_libdir_flag_spec='-R$libdir'
11804 hardcode_direct=yes
11805 hardcode_shlibpath_var=no
11806 ;;
11807
11808 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11809 freebsd2.*)
11810 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11811 hardcode_direct=yes
11812 hardcode_minus_L=yes
11813 hardcode_shlibpath_var=no
11814 ;;
11815
11816 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11817 freebsd* | dragonfly* | midnightbsd*)
11818 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11819 hardcode_libdir_flag_spec='-R$libdir'
11820 hardcode_direct=yes
11821 hardcode_shlibpath_var=no
11822 ;;
11823
11824 hpux9*)
11825 if test yes = "$GCC"; then
11826 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'
11827 else
11828 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'
11829 fi
11830 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11831 hardcode_libdir_separator=:
11832 hardcode_direct=yes
11833
11834 # hardcode_minus_L: Not really in the search PATH,
11835 # but as the default location of the library.
11836 hardcode_minus_L=yes
11837 export_dynamic_flag_spec='$wl-E'
11838 ;;
11839
11840 hpux10*)
11841 if test yes,no = "$GCC,$with_gnu_ld"; then
11842 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11843 else
11844 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11845 fi
11846 if test no = "$with_gnu_ld"; then
11847 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11848 hardcode_libdir_separator=:
11849 hardcode_direct=yes
11850 hardcode_direct_absolute=yes
11851 export_dynamic_flag_spec='$wl-E'
11852 # hardcode_minus_L: Not really in the search PATH,
11853 # but as the default location of the library.
11854 hardcode_minus_L=yes
11855 fi
11856 ;;
11857
11858 hpux11*)
11859 if test yes,no = "$GCC,$with_gnu_ld"; then
11860 case $host_cpu in
11861 hppa*64*)
11862 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11863 ;;
11864 ia64*)
11865 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11866 ;;
11867 *)
11868 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11869 ;;
11870 esac
11871 else
11872 case $host_cpu in
11873 hppa*64*)
11874 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11875 ;;
11876 ia64*)
11877 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11878 ;;
11879 *)
11880
11881 # Older versions of the 11.00 compiler do not understand -b yet
11882 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11883 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11884 printf %s "checking if $CC understands -b... " >&6; }
11885 if test ${lt_cv_prog_compiler__b+y}
11886 then :
11887 printf %s "(cached) " >&6
11888 else case e in #(
11889 e) lt_cv_prog_compiler__b=no
11890 save_LDFLAGS=$LDFLAGS
11891 LDFLAGS="$LDFLAGS -b"
11892 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11893 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11894 # The linker can only warn and ignore the option if not recognized
11895 # So say no if there are warnings
11896 if test -s conftest.err; then
11897 # Append any errors to the config.log.
11898 cat conftest.err 1>&5
11899 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11900 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11901 if diff conftest.exp conftest.er2 >/dev/null; then
11902 lt_cv_prog_compiler__b=yes
11903 fi
11904 else
11905 lt_cv_prog_compiler__b=yes
11906 fi
11907 fi
11908 $RM -r conftest*
11909 LDFLAGS=$save_LDFLAGS
11910 ;;
11911 esac
11912 fi
11913 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11914 printf '%s\n' "$lt_cv_prog_compiler__b" >&6; }
11915
11916 if test yes = "$lt_cv_prog_compiler__b"; then
11917 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11918 else
11919 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11920 fi
11921
11922 ;;
11923 esac
11924 fi
11925 if test no = "$with_gnu_ld"; then
11926 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11927 hardcode_libdir_separator=:
11928
11929 case $host_cpu in
11930 hppa*64*|ia64*)
11931 hardcode_direct=no
11932 hardcode_shlibpath_var=no
11933 ;;
11934 *)
11935 hardcode_direct=yes
11936 hardcode_direct_absolute=yes
11937 export_dynamic_flag_spec='$wl-E'
11938
11939 # hardcode_minus_L: Not really in the search PATH,
11940 # but as the default location of the library.
11941 hardcode_minus_L=yes
11942 ;;
11943 esac
11944 fi
11945 ;;
11946
11947 irix5* | irix6* | nonstopux*)
11948 if test yes = "$GCC"; then
11949 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'
11950 # Try to use the -exported_symbol ld option, if it does not
11951 # work, assume that -exports_file does not work either and
11952 # implicitly export all symbols.
11953 # This should be the same for all languages, so no per-tag cache variable.
11954 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11955 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11956 if test ${lt_cv_irix_exported_symbol+y}
11957 then :
11958 printf %s "(cached) " >&6
11959 else case e in #(
11960 e) save_LDFLAGS=$LDFLAGS
11961 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11963 /* end confdefs.h. */
11964 int foo (void) { return 0; }
11965 _ACEOF
11966 if ac_fn_c_try_link "$LINENO"
11967 then :
11968 lt_cv_irix_exported_symbol=yes
11969 else case e in #(
11970 e) lt_cv_irix_exported_symbol=no ;;
11971 esac
11972 fi
11973 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11974 conftest$ac_exeext conftest.$ac_ext
11975 LDFLAGS=$save_LDFLAGS ;;
11976 esac
11977 fi
11978 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11979 printf '%s\n' "$lt_cv_irix_exported_symbol" >&6; }
11980 if test yes = "$lt_cv_irix_exported_symbol"; then
11981 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'
11982 fi
11983 else
11984 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'
11985 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'
11986 fi
11987 archive_cmds_need_lc='no'
11988 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11989 hardcode_libdir_separator=:
11990 inherit_rpath=yes
11991 link_all_deplibs=yes
11992 ;;
11993
11994 linux*)
11995 case $cc_basename in
11996 tcc*)
11997 # Fabrice Bellard et al's Tiny C Compiler
11998 ld_shlibs=yes
11999 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12000 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12001 ;;
12002 esac
12003 ;;
12004
12005 *-mlibc)
12006 ;;
12007
12008 netbsd* | netbsdelf*-gnu)
12009 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12010 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12011 else
12012 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12013 fi
12014 hardcode_libdir_flag_spec='-R$libdir'
12015 hardcode_direct=yes
12016 hardcode_shlibpath_var=no
12017 ;;
12018
12019 newsos6)
12020 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12021 hardcode_direct=yes
12022 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12023 hardcode_libdir_separator=:
12024 hardcode_shlibpath_var=no
12025 ;;
12026
12027 *nto* | *qnx*)
12028 ;;
12029
12030 openbsd*)
12031 if test -f /usr/libexec/ld.so; then
12032 hardcode_direct=yes
12033 hardcode_shlibpath_var=no
12034 hardcode_direct_absolute=yes
12035 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12036 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12037 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12038 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12039 export_dynamic_flag_spec='$wl-E'
12040 else
12041 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12042 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12043 fi
12044 else
12045 ld_shlibs=no
12046 fi
12047 ;;
12048
12049 os2*)
12050 hardcode_libdir_flag_spec='-L$libdir'
12051 hardcode_minus_L=yes
12052 allow_undefined_flag=unsupported
12053 shrext_cmds=.dll
12054 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12055 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12056 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12057 $ECHO EXPORTS >> $output_objdir/$libname.def~
12058 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12059 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12060 emximp -o $lib $output_objdir/$libname.def'
12061 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12062 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12063 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12064 $ECHO EXPORTS >> $output_objdir/$libname.def~
12065 prefix_cmds="$SED"~
12066 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12067 prefix_cmds="$prefix_cmds -e 1d";
12068 fi~
12069 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12070 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12071 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12072 emximp -o $lib $output_objdir/$libname.def'
12073 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12074 enable_shared_with_static_runtimes=yes
12075 file_list_spec='@'
12076 ;;
12077
12078 osf3*)
12079 if test yes = "$GCC"; then
12080 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12081 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'
12082 else
12083 allow_undefined_flag=' -expect_unresolved \*'
12084 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'
12085 fi
12086 archive_cmds_need_lc='no'
12087 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12088 hardcode_libdir_separator=:
12089 ;;
12090
12091 osf4* | osf5*) # as osf3* with the addition of -msym flag
12092 if test yes = "$GCC"; then
12093 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12094 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'
12095 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12096 else
12097 allow_undefined_flag=' -expect_unresolved \*'
12098 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'
12099 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~
12100 $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'
12101
12102 # Both c and cxx compiler support -rpath directly
12103 hardcode_libdir_flag_spec='-rpath $libdir'
12104 fi
12105 archive_cmds_need_lc='no'
12106 hardcode_libdir_separator=:
12107 ;;
12108
12109 serenity*)
12110 ;;
12111
12112 solaris*)
12113 no_undefined_flag=' -z defs'
12114 if test yes = "$GCC"; then
12115 wlarc='$wl'
12116 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12117 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12118 $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'
12119 else
12120 case `$CC -V 2>&1` in
12121 *"Compilers 5.0"*)
12122 wlarc=''
12123 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12124 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12125 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12126 ;;
12127 *)
12128 wlarc='$wl'
12129 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12130 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12131 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12132 ;;
12133 esac
12134 fi
12135 hardcode_libdir_flag_spec='-R$libdir'
12136 hardcode_shlibpath_var=no
12137 case $host_os in
12138 solaris2.[0-5] | solaris2.[0-5].*) ;;
12139 *)
12140 # The compiler driver will combine and reorder linker options,
12141 # but understands '-z linker_flag'. GCC discards it without '$wl',
12142 # but is careful enough not to reorder.
12143 # Supported since Solaris 2.6 (maybe 2.5.1?)
12144 if test yes = "$GCC"; then
12145 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12146 else
12147 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12148 fi
12149 ;;
12150 esac
12151 link_all_deplibs=yes
12152 ;;
12153
12154 sunos4*)
12155 if test sequent = "$host_vendor"; then
12156 # Use $CC to link under sequent, because it throws in some extra .o
12157 # files that make .init and .fini sections work.
12158 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12159 else
12160 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12161 fi
12162 hardcode_libdir_flag_spec='-L$libdir'
12163 hardcode_direct=yes
12164 hardcode_minus_L=yes
12165 hardcode_shlibpath_var=no
12166 ;;
12167
12168 sysv4)
12169 case $host_vendor in
12170 sni)
12171 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12172 hardcode_direct=yes # is this really true???
12173 ;;
12174 siemens)
12175 ## LD is ld it makes a PLAMLIB
12176 ## CC just makes a GrossModule.
12177 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12178 reload_cmds='$CC -r -o $output$reload_objs'
12179 hardcode_direct=no
12180 ;;
12181 motorola)
12182 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12183 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12184 ;;
12185 esac
12186 runpath_var='LD_RUN_PATH'
12187 hardcode_shlibpath_var=no
12188 ;;
12189
12190 sysv4.3*)
12191 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12192 hardcode_shlibpath_var=no
12193 export_dynamic_flag_spec='-Bexport'
12194 ;;
12195
12196 sysv4*MP*)
12197 if test -d /usr/nec; then
12198 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12199 hardcode_shlibpath_var=no
12200 runpath_var=LD_RUN_PATH
12201 hardcode_runpath_var=yes
12202 ld_shlibs=yes
12203 fi
12204 ;;
12205
12206 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12207 no_undefined_flag='$wl-z,text'
12208 archive_cmds_need_lc=no
12209 hardcode_shlibpath_var=no
12210 runpath_var='LD_RUN_PATH'
12211
12212 if test yes = "$GCC"; then
12213 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12214 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12215 else
12216 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12217 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12218 fi
12219 ;;
12220
12221 sysv5* | sco3.2v5* | sco5v6*)
12222 # Note: We CANNOT use -z defs as we might desire, because we do not
12223 # link with -lc, and that would cause any symbols used from libc to
12224 # always be unresolved, which means just about no library would
12225 # ever link correctly. If we're not using GNU ld we use -z text
12226 # though, which does catch some bad symbols but isn't as heavy-handed
12227 # as -z defs.
12228 no_undefined_flag='$wl-z,text'
12229 allow_undefined_flag='$wl-z,nodefs'
12230 archive_cmds_need_lc=no
12231 hardcode_shlibpath_var=no
12232 hardcode_libdir_flag_spec='$wl-R,$libdir'
12233 hardcode_libdir_separator=':'
12234 link_all_deplibs=yes
12235 export_dynamic_flag_spec='$wl-Bexport'
12236 runpath_var='LD_RUN_PATH'
12237
12238 if test yes = "$GCC"; then
12239 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12240 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12241 else
12242 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12243 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12244 fi
12245 ;;
12246
12247 uts4*)
12248 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12249 hardcode_libdir_flag_spec='-L$libdir'
12250 hardcode_shlibpath_var=no
12251 ;;
12252
12253 *)
12254 ld_shlibs=no
12255 ;;
12256 esac
12257
12258 if test sni = "$host_vendor"; then
12259 case $host in
12260 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12261 export_dynamic_flag_spec='$wl-Blargedynsym'
12262 ;;
12263 esac
12264 fi
12265 fi
12266
12267 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12268 printf '%s\n' "$ld_shlibs" >&6; }
12269 test no = "$ld_shlibs" && can_build_shared=no
12270
12271 with_gnu_ld=$with_gnu_ld
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287 #
12288 # Do we need to explicitly link libc?
12289 #
12290 case "x$archive_cmds_need_lc" in
12291 x|xyes)
12292 # Assume -lc should be added
12293 archive_cmds_need_lc=yes
12294
12295 if test yes,yes = "$GCC,$enable_shared"; then
12296 case $archive_cmds in
12297 *'~'*)
12298 # FIXME: we may have to deal with multi-command sequences.
12299 ;;
12300 '$CC '*)
12301 # Test whether the compiler implicitly links with -lc since on some
12302 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12303 # to ld, don't add -lc before -lgcc.
12304 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12305 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
12306 if test ${lt_cv_archive_cmds_need_lc+y}
12307 then :
12308 printf %s "(cached) " >&6
12309 else case e in #(
12310 e) $RM conftest*
12311 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12312
12313 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12314 (eval $ac_compile) 2>&5
12315 ac_status=$?
12316 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12317 test $ac_status = 0; } 2>conftest.err; then
12318 soname=conftest
12319 lib=conftest
12320 libobjs=conftest.$ac_objext
12321 deplibs=
12322 wl=$lt_prog_compiler_wl
12323 pic_flag=$lt_prog_compiler_pic
12324 compiler_flags=-v
12325 linker_flags=-v
12326 verstring=
12327 output_objdir=.
12328 libname=conftest
12329 lt_save_allow_undefined_flag=$allow_undefined_flag
12330 allow_undefined_flag=
12331 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12332 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12333 ac_status=$?
12334 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12335 test $ac_status = 0; }
12336 then
12337 lt_cv_archive_cmds_need_lc=no
12338 else
12339 lt_cv_archive_cmds_need_lc=yes
12340 fi
12341 allow_undefined_flag=$lt_save_allow_undefined_flag
12342 else
12343 cat conftest.err 1>&5
12344 fi
12345 $RM conftest*
12346 ;;
12347 esac
12348 fi
12349 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12350 printf '%s\n' "$lt_cv_archive_cmds_need_lc" >&6; }
12351 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12352 ;;
12353 esac
12354 fi
12355 ;;
12356 esac
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
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12510 printf %s "checking dynamic linker characteristics... " >&6; }
12511
12512 if test yes = "$GCC"; then
12513 case $host_os in
12514 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12515 *) lt_awk_arg='/^libraries:/' ;;
12516 esac
12517 case $host_os in
12518 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12519 *) lt_sed_strip_eq='s|=/|/|g' ;;
12520 esac
12521 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12522 case $lt_search_path_spec in
12523 *\;*)
12524 # if the path contains ";" then we assume it to be the separator
12525 # otherwise default to the standard path separator (i.e. ":") - it is
12526 # assumed that no part of a normal pathname contains ";" but that should
12527 # okay in the real world where ";" in dirpaths is itself problematic.
12528 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12529 ;;
12530 *)
12531 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12532 ;;
12533 esac
12534 # Ok, now we have the path, separated by spaces, we can step through it
12535 # and add multilib dir if necessary...
12536 lt_tmp_lt_search_path_spec=
12537 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12538 # ...but if some path component already ends with the multilib dir we assume
12539 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12540 case "$lt_multi_os_dir; $lt_search_path_spec " in
12541 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12542 lt_multi_os_dir=
12543 ;;
12544 esac
12545 for lt_sys_path in $lt_search_path_spec; do
12546 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12547 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12548 elif test -n "$lt_multi_os_dir"; then
12549 test -d "$lt_sys_path" && \
12550 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12551 fi
12552 done
12553 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12554 BEGIN {RS = " "; FS = "/|\n";} {
12555 lt_foo = "";
12556 lt_count = 0;
12557 for (lt_i = NF; lt_i > 0; lt_i--) {
12558 if ($lt_i != "" && $lt_i != ".") {
12559 if ($lt_i == "..") {
12560 lt_count++;
12561 } else {
12562 if (lt_count == 0) {
12563 lt_foo = "/" $lt_i lt_foo;
12564 } else {
12565 lt_count--;
12566 }
12567 }
12568 }
12569 }
12570 if (lt_foo != "") { lt_freq[lt_foo]++; }
12571 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12572 }'`
12573 # AWK program above erroneously prepends '/' to C:/dos/paths
12574 # for these hosts.
12575 case $host_os in
12576 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12577 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12578 esac
12579 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12580 else
12581 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12582 fi
12583 library_names_spec=
12584 libname_spec='lib$name'
12585 soname_spec=
12586 shrext_cmds=.so
12587 postinstall_cmds=
12588 postuninstall_cmds=
12589 finish_cmds=
12590 finish_eval=
12591 shlibpath_var=
12592 shlibpath_overrides_runpath=unknown
12593 version_type=none
12594 dynamic_linker="$host_os ld.so"
12595 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12596 need_lib_prefix=unknown
12597 hardcode_into_libs=no
12598
12599 # when you set need_version to no, make sure it does not cause -set_version
12600 # flags to be left without arguments
12601 need_version=unknown
12602
12603
12604
12605 case $host_os in
12606 aix3*)
12607 version_type=linux # correct to gnu/linux during the next big refactor
12608 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12609 shlibpath_var=LIBPATH
12610
12611 # AIX 3 has no versioning support, so we append a major version to the name.
12612 soname_spec='$libname$release$shared_ext$major'
12613 ;;
12614
12615 aix[4-9]*)
12616 version_type=linux # correct to gnu/linux during the next big refactor
12617 need_lib_prefix=no
12618 need_version=no
12619 hardcode_into_libs=yes
12620 if test ia64 = "$host_cpu"; then
12621 # AIX 5 supports IA64
12622 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12623 shlibpath_var=LD_LIBRARY_PATH
12624 else
12625 # With GCC up to 2.95.x, collect2 would create an import file
12626 # for dependence libraries. The import file would start with
12627 # the line '#! .'. This would cause the generated library to
12628 # depend on '.', always an invalid library. This was fixed in
12629 # development snapshots of GCC prior to 3.0.
12630 case $host_os in
12631 aix4 | aix4.[01] | aix4.[01].*)
12632 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12633 echo ' yes '
12634 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12635 :
12636 else
12637 can_build_shared=no
12638 fi
12639 ;;
12640 esac
12641 # Using Import Files as archive members, it is possible to support
12642 # filename-based versioning of shared library archives on AIX. While
12643 # this would work for both with and without runtime linking, it will
12644 # prevent static linking of such archives. So we do filename-based
12645 # shared library versioning with .so extension only, which is used
12646 # when both runtime linking and shared linking is enabled.
12647 # Unfortunately, runtime linking may impact performance, so we do
12648 # not want this to be the default eventually. Also, we use the
12649 # versioned .so libs for executables only if there is the -brtl
12650 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
12651 # To allow for filename-based versioning support, we need to create
12652 # libNAME.so.V as an archive file, containing:
12653 # *) an Import File, referring to the versioned filename of the
12654 # archive as well as the shared archive member, telling the
12655 # bitwidth (32 or 64) of that shared object, and providing the
12656 # list of exported symbols of that shared object, eventually
12657 # decorated with the 'weak' keyword
12658 # *) the shared object with the F_LOADONLY flag set, to really avoid
12659 # it being seen by the linker.
12660 # At run time we better use the real file rather than another symlink,
12661 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12662
12663 case $with_aix_soname,$aix_use_runtimelinking in
12664 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12665 # soname into executable. Probably we can add versioning support to
12666 # collect2, so additional links can be useful in future.
12667 aix,yes) # traditional libtool
12668 dynamic_linker='AIX unversionable lib.so'
12669 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12670 # instead of lib<name>.a to let people know that these are not
12671 # typical AIX shared libraries.
12672 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12673 ;;
12674 aix,no) # traditional AIX only
12675 dynamic_linker='AIX lib.a(lib.so.V)'
12676 # We preserve .a as extension for shared libraries through AIX4.2
12677 # and later when we are not doing run time linking.
12678 library_names_spec='$libname$release.a $libname.a'
12679 soname_spec='$libname$release$shared_ext$major'
12680 ;;
12681 svr4,*) # full svr4 only
12682 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12683 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12684 # We do not specify a path in Import Files, so LIBPATH fires.
12685 shlibpath_overrides_runpath=yes
12686 ;;
12687 *,yes) # both, prefer svr4
12688 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12689 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12690 # unpreferred sharedlib libNAME.a needs extra handling
12691 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"'
12692 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"'
12693 # We do not specify a path in Import Files, so LIBPATH fires.
12694 shlibpath_overrides_runpath=yes
12695 ;;
12696 *,no) # both, prefer aix
12697 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12698 library_names_spec='$libname$release.a $libname.a'
12699 soname_spec='$libname$release$shared_ext$major'
12700 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12701 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)'
12702 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"'
12703 ;;
12704 esac
12705 shlibpath_var=LIBPATH
12706 fi
12707 ;;
12708
12709 amigaos*)
12710 case $host_cpu in
12711 powerpc)
12712 # Since July 2007 AmigaOS4 officially supports .so libraries.
12713 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12714 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12715 ;;
12716 m68k)
12717 library_names_spec='$libname.ixlibrary $libname.a'
12718 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12719 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'
12720 ;;
12721 esac
12722 ;;
12723
12724 beos*)
12725 library_names_spec='$libname$shared_ext'
12726 dynamic_linker="$host_os ld.so"
12727 shlibpath_var=LIBRARY_PATH
12728 ;;
12729
12730 bsdi[45]*)
12731 version_type=linux # correct to gnu/linux during the next big refactor
12732 need_version=no
12733 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12734 soname_spec='$libname$release$shared_ext$major'
12735 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12736 shlibpath_var=LD_LIBRARY_PATH
12737 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12738 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12739 # the default ld.so.conf also contains /usr/contrib/lib and
12740 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12741 # libtool to hard-code these into programs
12742 ;;
12743
12744 cygwin* | mingw* | windows* | pw32* | cegcc*)
12745 version_type=windows
12746 shrext_cmds=.dll
12747 need_version=no
12748 need_lib_prefix=no
12749
12750 case $GCC,$cc_basename in
12751 yes,*)
12752 # gcc
12753 library_names_spec='$libname.dll.a'
12754 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12755 # If user builds GCC with multilib enabled,
12756 # it should just install on $(libdir)
12757 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
12758 if test xyes = x"$multilib"; then
12759 postinstall_cmds='base_file=`basename \$file`~
12760 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12761 dldir=$destdir/`dirname \$dlpath`~
12762 $install_prog $dir/$dlname $destdir/$dlname~
12763 chmod a+x $destdir/$dlname~
12764 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12765 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
12766 fi'
12767 else
12768 postinstall_cmds='base_file=`basename \$file`~
12769 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12770 dldir=$destdir/`dirname \$dlpath`~
12771 test -d \$dldir || mkdir -p \$dldir~
12772 $install_prog $dir/$dlname \$dldir/$dlname~
12773 chmod a+x \$dldir/$dlname~
12774 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12775 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12776 fi'
12777 fi
12778 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12779 dlpath=$dir/\$dldll~
12780 $RM \$dlpath'
12781 shlibpath_overrides_runpath=yes
12782
12783 case $host_os in
12784 cygwin*)
12785 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12786 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12787
12788 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12789 ;;
12790 mingw* | windows* | cegcc*)
12791 # MinGW DLLs use traditional 'lib' prefix
12792 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12793 ;;
12794 pw32*)
12795 # pw32 DLLs use 'pw' prefix rather than 'lib'
12796 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12797 ;;
12798 esac
12799 dynamic_linker='Win32 ld.exe'
12800 ;;
12801
12802 *,cl* | *,icl*)
12803 # Native MSVC or ICC
12804 libname_spec='$name'
12805 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12806 library_names_spec='$libname.dll.lib'
12807
12808 case $build_os in
12809 mingw* | windows*)
12810 sys_lib_search_path_spec=
12811 lt_save_ifs=$IFS
12812 IFS=';'
12813 for lt_path in $LIB
12814 do
12815 IFS=$lt_save_ifs
12816 # Let DOS variable expansion print the short 8.3 style file name.
12817 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12818 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12819 done
12820 IFS=$lt_save_ifs
12821 # Convert to MSYS style.
12822 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12823 ;;
12824 cygwin*)
12825 # Convert to unix form, then to dos form, then back to unix form
12826 # but this time dos style (no spaces!) so that the unix form looks
12827 # like /cygdrive/c/PROGRA~1:/cygdr...
12828 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12829 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12830 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12831 ;;
12832 *)
12833 sys_lib_search_path_spec=$LIB
12834 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12835 # It is most probably a Windows format PATH.
12836 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12837 else
12838 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12839 fi
12840 # FIXME: find the short name or the path components, as spaces are
12841 # common. (e.g. "Program Files" -> "PROGRA~1")
12842 ;;
12843 esac
12844
12845 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12846 postinstall_cmds='base_file=`basename \$file`~
12847 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12848 dldir=$destdir/`dirname \$dlpath`~
12849 test -d \$dldir || mkdir -p \$dldir~
12850 $install_prog $dir/$dlname \$dldir/$dlname'
12851 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12852 dlpath=$dir/\$dldll~
12853 $RM \$dlpath'
12854 shlibpath_overrides_runpath=yes
12855 dynamic_linker='Win32 link.exe'
12856 ;;
12857
12858 *)
12859 # Assume MSVC and ICC wrapper
12860 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12861 dynamic_linker='Win32 ld.exe'
12862 ;;
12863 esac
12864 # FIXME: first we should search . and the directory the executable is in
12865 shlibpath_var=PATH
12866 ;;
12867
12868 darwin* | rhapsody*)
12869 dynamic_linker="$host_os dyld"
12870 version_type=darwin
12871 need_lib_prefix=no
12872 need_version=no
12873 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12874 soname_spec='$libname$release$major$shared_ext'
12875 shlibpath_overrides_runpath=yes
12876 shlibpath_var=DYLD_LIBRARY_PATH
12877 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12878
12879 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12880 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12881 ;;
12882
12883 dgux*)
12884 version_type=linux # correct to gnu/linux during the next big refactor
12885 need_lib_prefix=no
12886 need_version=no
12887 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12888 soname_spec='$libname$release$shared_ext$major'
12889 shlibpath_var=LD_LIBRARY_PATH
12890 ;;
12891
12892 freebsd* | dragonfly* | midnightbsd*)
12893 # DragonFly does not have aout. When/if they implement a new
12894 # versioning mechanism, adjust this.
12895 if test -x /usr/bin/objformat; then
12896 objformat=`/usr/bin/objformat`
12897 else
12898 case $host_os in
12899 freebsd[23].*) objformat=aout ;;
12900 *) objformat=elf ;;
12901 esac
12902 fi
12903 version_type=freebsd-$objformat
12904 case $version_type in
12905 freebsd-elf*)
12906 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12907 soname_spec='$libname$release$shared_ext$major'
12908 need_version=no
12909 need_lib_prefix=no
12910 ;;
12911 freebsd-*)
12912 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12913 need_version=yes
12914 ;;
12915 esac
12916 case $host_cpu in
12917 powerpc64)
12918 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
12919 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
12920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12921 /* end confdefs.h. */
12922 int test_pointer_size[sizeof (void *) - 5];
12923
12924 _ACEOF
12925 if ac_fn_c_try_compile "$LINENO"
12926 then :
12927 shlibpath_var=LD_LIBRARY_PATH
12928 else case e in #(
12929 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
12930 esac
12931 fi
12932 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12933 ;;
12934 *)
12935 shlibpath_var=LD_LIBRARY_PATH
12936 ;;
12937 esac
12938 case $host_os in
12939 freebsd2.*)
12940 shlibpath_overrides_runpath=yes
12941 ;;
12942 freebsd3.[01]* | freebsdelf3.[01]*)
12943 shlibpath_overrides_runpath=yes
12944 hardcode_into_libs=yes
12945 ;;
12946 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12947 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12948 shlibpath_overrides_runpath=no
12949 hardcode_into_libs=yes
12950 ;;
12951 *) # from 4.6 on, and DragonFly
12952 shlibpath_overrides_runpath=yes
12953 hardcode_into_libs=yes
12954 ;;
12955 esac
12956 ;;
12957
12958 haiku*)
12959 version_type=linux # correct to gnu/linux during the next big refactor
12960 need_lib_prefix=no
12961 need_version=no
12962 dynamic_linker="$host_os runtime_loader"
12963 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12964 soname_spec='$libname$release$shared_ext$major'
12965 shlibpath_var=LIBRARY_PATH
12966 shlibpath_overrides_runpath=no
12967 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
12968 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
12969 hardcode_into_libs=no
12970 ;;
12971
12972 hpux9* | hpux10* | hpux11*)
12973 # Give a soname corresponding to the major version so that dld.sl refuses to
12974 # link against other versions.
12975 version_type=sunos
12976 need_lib_prefix=no
12977 need_version=no
12978 case $host_cpu in
12979 ia64*)
12980 shrext_cmds='.so'
12981 hardcode_into_libs=yes
12982 dynamic_linker="$host_os dld.so"
12983 shlibpath_var=LD_LIBRARY_PATH
12984 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12985 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12986 soname_spec='$libname$release$shared_ext$major'
12987 if test 32 = "$HPUX_IA64_MODE"; then
12988 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12989 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12990 else
12991 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12992 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12993 fi
12994 ;;
12995 hppa*64*)
12996 shrext_cmds='.sl'
12997 hardcode_into_libs=yes
12998 dynamic_linker="$host_os dld.sl"
12999 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13000 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13001 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13002 soname_spec='$libname$release$shared_ext$major'
13003 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13004 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13005 ;;
13006 *)
13007 shrext_cmds='.sl'
13008 dynamic_linker="$host_os dld.sl"
13009 shlibpath_var=SHLIB_PATH
13010 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13011 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13012 soname_spec='$libname$release$shared_ext$major'
13013 ;;
13014 esac
13015 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13016 postinstall_cmds='chmod 555 $lib'
13017 # or fails outright, so override atomically:
13018 install_override_mode=555
13019 ;;
13020
13021 interix[3-9]*)
13022 version_type=linux # correct to gnu/linux during the next big refactor
13023 need_lib_prefix=no
13024 need_version=no
13025 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13026 soname_spec='$libname$release$shared_ext$major'
13027 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13028 shlibpath_var=LD_LIBRARY_PATH
13029 shlibpath_overrides_runpath=no
13030 hardcode_into_libs=yes
13031 ;;
13032
13033 irix5* | irix6* | nonstopux*)
13034 case $host_os in
13035 nonstopux*) version_type=nonstopux ;;
13036 *)
13037 if test yes = "$lt_cv_prog_gnu_ld"; then
13038 version_type=linux # correct to gnu/linux during the next big refactor
13039 else
13040 version_type=irix
13041 fi ;;
13042 esac
13043 need_lib_prefix=no
13044 need_version=no
13045 soname_spec='$libname$release$shared_ext$major'
13046 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13047 case $host_os in
13048 irix5* | nonstopux*)
13049 libsuff= shlibsuff=
13050 ;;
13051 *)
13052 case $LD in # libtool.m4 will add one of these switches to LD
13053 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13054 libsuff= shlibsuff= libmagic=32-bit;;
13055 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13056 libsuff=32 shlibsuff=N32 libmagic=N32;;
13057 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13058 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13059 *) libsuff= shlibsuff= libmagic=never-match;;
13060 esac
13061 ;;
13062 esac
13063 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13064 shlibpath_overrides_runpath=no
13065 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13066 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13067 hardcode_into_libs=yes
13068 ;;
13069
13070 # No shared lib support for Linux oldld, aout, or coff.
13071 linux*oldld* | linux*aout* | linux*coff*)
13072 dynamic_linker=no
13073 ;;
13074
13075 linux*android*)
13076 version_type=none # Android doesn't support versioned libraries.
13077 need_lib_prefix=no
13078 need_version=no
13079 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
13080 soname_spec='$libname$release$shared_ext'
13081 finish_cmds=
13082 shlibpath_var=LD_LIBRARY_PATH
13083 shlibpath_overrides_runpath=yes
13084
13085 # This implies no fast_install, which is unacceptable.
13086 # Some rework will be needed to allow for fast_install
13087 # before this can be enabled.
13088 hardcode_into_libs=yes
13089
13090 dynamic_linker='Android linker'
13091 # -rpath works at least for libraries that are not overridden by
13092 # libraries installed in system locations.
13093 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13094 ;;
13095
13096 # This must be glibc/ELF.
13097 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13098 version_type=linux # correct to gnu/linux during the next big refactor
13099 need_lib_prefix=no
13100 need_version=no
13101 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13102 soname_spec='$libname$release$shared_ext$major'
13103 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13104 shlibpath_var=LD_LIBRARY_PATH
13105 shlibpath_overrides_runpath=no
13106
13107 # Some binutils ld are patched to set DT_RUNPATH
13108 if test ${lt_cv_shlibpath_overrides_runpath+y}
13109 then :
13110 printf %s "(cached) " >&6
13111 else case e in #(
13112 e) lt_cv_shlibpath_overrides_runpath=no
13113 save_LDFLAGS=$LDFLAGS
13114 save_libdir=$libdir
13115 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13116 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13118 /* end confdefs.h. */
13119
13120 int
13121 main (void)
13122 {
13123
13124 ;
13125 return 0;
13126 }
13127 _ACEOF
13128 if ac_fn_c_try_link "$LINENO"
13129 then :
13130 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
13131 then :
13132 lt_cv_shlibpath_overrides_runpath=yes
13133 fi
13134 fi
13135 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13136 conftest$ac_exeext conftest.$ac_ext
13137 LDFLAGS=$save_LDFLAGS
13138 libdir=$save_libdir
13139 ;;
13140 esac
13141 fi
13142
13143 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13144
13145 # This implies no fast_install, which is unacceptable.
13146 # Some rework will be needed to allow for fast_install
13147 # before this can be enabled.
13148 hardcode_into_libs=yes
13149
13150 # Ideally, we could use ldconfig to report *all* directories which are
13151 # searched for libraries, however this is still not possible. Aside from not
13152 # being certain /sbin/ldconfig is available, command
13153 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13154 # even though it is searched at run-time. Try to do the best guess by
13155 # appending ld.so.conf contents (and includes) to the search path.
13156 if test -f /etc/ld.so.conf; then
13157 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' ' '`
13158 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13159 fi
13160
13161 # We used to test for /lib/ld.so.1 and disable shared libraries on
13162 # powerpc, because MkLinux only supported shared libraries with the
13163 # GNU dynamic linker. Since this was broken with cross compilers,
13164 # most powerpc-linux boxes support dynamic linking these days and
13165 # people can always --disable-shared, the test was removed, and we
13166 # assume the GNU/Linux dynamic linker is in use.
13167 dynamic_linker='GNU/Linux ld.so'
13168 ;;
13169
13170 netbsdelf*-gnu)
13171 version_type=linux
13172 need_lib_prefix=no
13173 need_version=no
13174 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13175 soname_spec='$libname$release$shared_ext$major'
13176 shlibpath_var=LD_LIBRARY_PATH
13177 shlibpath_overrides_runpath=no
13178 hardcode_into_libs=yes
13179 dynamic_linker='NetBSD ld.elf_so'
13180 ;;
13181
13182 netbsd*)
13183 version_type=sunos
13184 need_lib_prefix=no
13185 need_version=no
13186 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13187 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13188 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13189 dynamic_linker='NetBSD (a.out) ld.so'
13190 else
13191 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13192 soname_spec='$libname$release$shared_ext$major'
13193 dynamic_linker='NetBSD ld.elf_so'
13194 fi
13195 shlibpath_var=LD_LIBRARY_PATH
13196 shlibpath_overrides_runpath=yes
13197 hardcode_into_libs=yes
13198 ;;
13199
13200 *-mlibc)
13201 version_type=linux # correct to gnu/linux during the next big refactor
13202 need_lib_prefix=no
13203 need_version=no
13204 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13205 soname_spec='$libname$release$shared_ext$major'
13206 dynamic_linker='mlibc ld.so'
13207 shlibpath_var=LD_LIBRARY_PATH
13208 shlibpath_overrides_runpath=no
13209 hardcode_into_libs=yes
13210 ;;
13211
13212 newsos6)
13213 version_type=linux # correct to gnu/linux during the next big refactor
13214 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13215 shlibpath_var=LD_LIBRARY_PATH
13216 shlibpath_overrides_runpath=yes
13217 ;;
13218
13219 *nto* | *qnx*)
13220 version_type=qnx
13221 need_lib_prefix=no
13222 need_version=no
13223 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13224 soname_spec='$libname$release$shared_ext$major'
13225 shlibpath_var=LD_LIBRARY_PATH
13226 shlibpath_overrides_runpath=no
13227 hardcode_into_libs=yes
13228 dynamic_linker='ldqnx.so'
13229 ;;
13230
13231 openbsd*)
13232 version_type=sunos
13233 sys_lib_dlsearch_path_spec=/usr/lib
13234 need_lib_prefix=no
13235 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13236 need_version=no
13237 else
13238 need_version=yes
13239 fi
13240 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13241 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13242 shlibpath_var=LD_LIBRARY_PATH
13243 shlibpath_overrides_runpath=yes
13244 ;;
13245
13246 os2*)
13247 libname_spec='$name'
13248 version_type=windows
13249 shrext_cmds=.dll
13250 need_version=no
13251 need_lib_prefix=no
13252 # OS/2 can only load a DLL with a base name of 8 characters or less.
13253 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13254 v=$($ECHO $release$versuffix | tr -d .-);
13255 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13256 $ECHO $n$v`$shared_ext'
13257 library_names_spec='${libname}_dll.$libext'
13258 dynamic_linker='OS/2 ld.exe'
13259 shlibpath_var=BEGINLIBPATH
13260 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13261 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13262 postinstall_cmds='base_file=`basename \$file`~
13263 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13264 dldir=$destdir/`dirname \$dlpath`~
13265 test -d \$dldir || mkdir -p \$dldir~
13266 $install_prog $dir/$dlname \$dldir/$dlname~
13267 chmod a+x \$dldir/$dlname~
13268 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13269 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13270 fi'
13271 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13272 dlpath=$dir/\$dldll~
13273 $RM \$dlpath'
13274 ;;
13275
13276 osf3* | osf4* | osf5*)
13277 version_type=osf
13278 need_lib_prefix=no
13279 need_version=no
13280 soname_spec='$libname$release$shared_ext$major'
13281 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13282 shlibpath_var=LD_LIBRARY_PATH
13283 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13284 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13285 ;;
13286
13287 rdos*)
13288 dynamic_linker=no
13289 ;;
13290
13291 serenity*)
13292 version_type=linux # correct to gnu/linux during the next big refactor
13293 need_lib_prefix=no
13294 need_version=no
13295 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13296 soname_spec='$libname$release$shared_ext$major'
13297 shlibpath_var=LD_LIBRARY_PATH
13298 shlibpath_overrides_runpath=no
13299 dynamic_linker='SerenityOS LibELF'
13300 ;;
13301
13302 solaris*)
13303 version_type=linux # correct to gnu/linux during the next big refactor
13304 need_lib_prefix=no
13305 need_version=no
13306 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13307 soname_spec='$libname$release$shared_ext$major'
13308 shlibpath_var=LD_LIBRARY_PATH
13309 shlibpath_overrides_runpath=yes
13310 hardcode_into_libs=yes
13311 # ldd complains unless libraries are executable
13312 postinstall_cmds='chmod +x $lib'
13313 ;;
13314
13315 sunos4*)
13316 version_type=sunos
13317 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13318 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13319 shlibpath_var=LD_LIBRARY_PATH
13320 shlibpath_overrides_runpath=yes
13321 if test yes = "$with_gnu_ld"; then
13322 need_lib_prefix=no
13323 fi
13324 need_version=yes
13325 ;;
13326
13327 sysv4 | sysv4.3*)
13328 version_type=linux # correct to gnu/linux during the next big refactor
13329 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13330 soname_spec='$libname$release$shared_ext$major'
13331 shlibpath_var=LD_LIBRARY_PATH
13332 case $host_vendor in
13333 sni)
13334 shlibpath_overrides_runpath=no
13335 need_lib_prefix=no
13336 runpath_var=LD_RUN_PATH
13337 ;;
13338 siemens)
13339 need_lib_prefix=no
13340 ;;
13341 motorola)
13342 need_lib_prefix=no
13343 need_version=no
13344 shlibpath_overrides_runpath=no
13345 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13346 ;;
13347 esac
13348 ;;
13349
13350 sysv4*MP*)
13351 if test -d /usr/nec; then
13352 version_type=linux # correct to gnu/linux during the next big refactor
13353 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13354 soname_spec='$libname$shared_ext.$major'
13355 shlibpath_var=LD_LIBRARY_PATH
13356 fi
13357 ;;
13358
13359 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13360 version_type=sco
13361 need_lib_prefix=no
13362 need_version=no
13363 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13364 soname_spec='$libname$release$shared_ext$major'
13365 shlibpath_var=LD_LIBRARY_PATH
13366 shlibpath_overrides_runpath=yes
13367 hardcode_into_libs=yes
13368 if test yes = "$with_gnu_ld"; then
13369 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13370 else
13371 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13372 case $host_os in
13373 sco3.2v5*)
13374 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13375 ;;
13376 esac
13377 fi
13378 sys_lib_dlsearch_path_spec='/usr/lib'
13379 ;;
13380
13381 tpf*)
13382 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13383 version_type=linux # correct to gnu/linux during the next big refactor
13384 need_lib_prefix=no
13385 need_version=no
13386 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13387 shlibpath_var=LD_LIBRARY_PATH
13388 shlibpath_overrides_runpath=no
13389 hardcode_into_libs=yes
13390 ;;
13391
13392 uts4*)
13393 version_type=linux # correct to gnu/linux during the next big refactor
13394 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13395 soname_spec='$libname$release$shared_ext$major'
13396 shlibpath_var=LD_LIBRARY_PATH
13397 ;;
13398
13399 emscripten*)
13400 version_type=none
13401 need_lib_prefix=no
13402 need_version=no
13403 library_names_spec='$libname$release$shared_ext'
13404 soname_spec='$libname$release$shared_ext'
13405 finish_cmds=
13406 dynamic_linker="Emscripten linker"
13407 lt_prog_compiler_wl=
13408 lt_prog_compiler_pic=
13409 lt_prog_compiler_static=
13410
13411
13412 if test yes = "$GCC"; then
13413 lt_prog_compiler_wl='-Wl,'
13414 lt_prog_compiler_static='-static'
13415
13416 case $host_os in
13417 aix*)
13418 # All AIX code is PIC.
13419 if test ia64 = "$host_cpu"; then
13420 # AIX 5 now supports IA64 processor
13421 lt_prog_compiler_static='-Bstatic'
13422 fi
13423 lt_prog_compiler_pic='-fPIC'
13424 ;;
13425
13426 amigaos*)
13427 case $host_cpu in
13428 powerpc)
13429 # see comment about AmigaOS4 .so support
13430 lt_prog_compiler_pic='-fPIC'
13431 ;;
13432 m68k)
13433 # FIXME: we need at least 68020 code to build shared libraries, but
13434 # adding the '-m68020' flag to GCC prevents building anything better,
13435 # like '-m68040'.
13436 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13437 ;;
13438 esac
13439 ;;
13440
13441 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13442 # PIC is the default for these OSes.
13443 ;;
13444
13445 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13446 # This hack is so that the source file can tell whether it is being
13447 # built for inclusion in a dll (and should export symbols for example).
13448 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13449 # (--disable-auto-import) libraries
13450 lt_prog_compiler_pic='-DDLL_EXPORT'
13451 case $host_os in
13452 os2*)
13453 lt_prog_compiler_static='$wl-static'
13454 ;;
13455 esac
13456 ;;
13457
13458 darwin* | rhapsody*)
13459 # PIC is the default on this platform
13460 # Common symbols not allowed in MH_DYLIB files
13461 lt_prog_compiler_pic='-fno-common'
13462 ;;
13463
13464 haiku*)
13465 # PIC is the default for Haiku.
13466 # The "-static" flag exists, but is broken.
13467 lt_prog_compiler_static=
13468 ;;
13469
13470 hpux*)
13471 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13472 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13473 # sets the default TLS model and affects inlining.
13474 case $host_cpu in
13475 hppa*64*)
13476 # +Z the default
13477 ;;
13478 *)
13479 lt_prog_compiler_pic='-fPIC'
13480 ;;
13481 esac
13482 ;;
13483
13484 interix[3-9]*)
13485 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13486 # Instead, we relocate shared libraries at runtime.
13487 ;;
13488
13489 msdosdjgpp*)
13490 # Just because we use GCC doesn't mean we suddenly get shared libraries
13491 # on systems that don't support them.
13492 lt_prog_compiler_can_build_shared=no
13493 enable_shared=no
13494 ;;
13495
13496 *nto* | *qnx*)
13497 # QNX uses GNU C++, but need to define -shared option too, otherwise
13498 # it will coredump.
13499 lt_prog_compiler_pic='-fPIC -shared'
13500 ;;
13501
13502 sysv4*MP*)
13503 if test -d /usr/nec; then
13504 lt_prog_compiler_pic=-Kconform_pic
13505 fi
13506 ;;
13507
13508 *)
13509 lt_prog_compiler_pic='-fPIC'
13510 ;;
13511 esac
13512
13513 case $cc_basename in
13514 nvcc*) # Cuda Compiler Driver 2.2
13515 lt_prog_compiler_wl='-Xlinker '
13516 if test -n "$lt_prog_compiler_pic"; then
13517 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13518 fi
13519 ;;
13520 esac
13521 else
13522 # PORTME Check for flag to pass linker flags through the system compiler.
13523 case $host_os in
13524 aix*)
13525 lt_prog_compiler_wl='-Wl,'
13526 if test ia64 = "$host_cpu"; then
13527 # AIX 5 now supports IA64 processor
13528 lt_prog_compiler_static='-Bstatic'
13529 else
13530 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13531 fi
13532 ;;
13533
13534 darwin* | rhapsody*)
13535 # PIC is the default on this platform
13536 # Common symbols not allowed in MH_DYLIB files
13537 lt_prog_compiler_pic='-fno-common'
13538 case $cc_basename in
13539 nagfor*)
13540 # NAG Fortran compiler
13541 lt_prog_compiler_wl='-Wl,-Wl,,'
13542 lt_prog_compiler_pic='-PIC'
13543 lt_prog_compiler_static='-Bstatic'
13544 ;;
13545 esac
13546 ;;
13547
13548 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13549 # This hack is so that the source file can tell whether it is being
13550 # built for inclusion in a dll (and should export symbols for example).
13551 lt_prog_compiler_pic='-DDLL_EXPORT'
13552 case $host_os in
13553 os2*)
13554 lt_prog_compiler_static='$wl-static'
13555 ;;
13556 esac
13557 ;;
13558
13559 hpux9* | hpux10* | hpux11*)
13560 lt_prog_compiler_wl='-Wl,'
13561 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13562 # not for PA HP-UX.
13563 case $host_cpu in
13564 hppa*64*|ia64*)
13565 # +Z the default
13566 ;;
13567 *)
13568 lt_prog_compiler_pic='+Z'
13569 ;;
13570 esac
13571 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13572 lt_prog_compiler_static='$wl-a ${wl}archive'
13573 ;;
13574
13575 irix5* | irix6* | nonstopux*)
13576 lt_prog_compiler_wl='-Wl,'
13577 # PIC (with -KPIC) is the default.
13578 lt_prog_compiler_static='-non_shared'
13579 ;;
13580
13581 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | *freebsd*)
13582 case $cc_basename in
13583 # old Intel for x86_64, which still supported -KPIC.
13584 ecc*)
13585 lt_prog_compiler_wl='-Wl,'
13586 lt_prog_compiler_pic='-KPIC'
13587 lt_prog_compiler_static='-static'
13588 ;;
13589 *flang* | ftn | f18* | f95*)
13590 # Flang compiler.
13591 lt_prog_compiler_wl='-Wl,'
13592 lt_prog_compiler_pic='-fPIC'
13593 lt_prog_compiler_static='-static'
13594 ;;
13595 # icc used to be incompatible with GCC.
13596 # ICC 10 doesn't accept -KPIC any more.
13597 icc* | ifort*)
13598 lt_prog_compiler_wl='-Wl,'
13599 lt_prog_compiler_pic='-fPIC'
13600 lt_prog_compiler_static='-static'
13601 ;;
13602 # Lahey Fortran 8.1.
13603 lf95*)
13604 lt_prog_compiler_wl='-Wl,'
13605 lt_prog_compiler_pic='--shared'
13606 lt_prog_compiler_static='--static'
13607 ;;
13608 nagfor*)
13609 # NAG Fortran compiler
13610 lt_prog_compiler_wl='-Wl,-Wl,,'
13611 lt_prog_compiler_pic='-PIC'
13612 lt_prog_compiler_static='-Bstatic'
13613 ;;
13614 tcc*)
13615 # Fabrice Bellard et al's Tiny C Compiler
13616 lt_prog_compiler_wl='-Wl,'
13617 lt_prog_compiler_pic='-fPIC'
13618 lt_prog_compiler_static='-static'
13619 ;;
13620 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13621 # Portland Group compilers (*not* the Pentium gcc compiler,
13622 # which looks to be a dead project)
13623 lt_prog_compiler_wl='-Wl,'
13624 lt_prog_compiler_pic='-fpic'
13625 lt_prog_compiler_static='-Bstatic'
13626 ;;
13627 ccc*)
13628 lt_prog_compiler_wl='-Wl,'
13629 # All Alpha code is PIC.
13630 lt_prog_compiler_static='-non_shared'
13631 ;;
13632 xl* | bgxl* | bgf* | mpixl*)
13633 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13634 lt_prog_compiler_wl='-Wl,'
13635 lt_prog_compiler_pic='-qpic'
13636 lt_prog_compiler_static='-qstaticlink'
13637 ;;
13638 *)
13639 case `$CC -V 2>&1 | $SED 5q` in
13640 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13641 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13642 lt_prog_compiler_pic='-KPIC'
13643 lt_prog_compiler_static='-Bstatic'
13644 lt_prog_compiler_wl=''
13645 ;;
13646 *Sun\ F* | *Sun*Fortran*)
13647 lt_prog_compiler_pic='-KPIC'
13648 lt_prog_compiler_static='-Bstatic'
13649 lt_prog_compiler_wl='-Qoption ld '
13650 ;;
13651 *Sun\ C*)
13652 # Sun C 5.9
13653 lt_prog_compiler_pic='-KPIC'
13654 lt_prog_compiler_static='-Bstatic'
13655 lt_prog_compiler_wl='-Wl,'
13656 ;;
13657 *Intel*\ [CF]*Compiler*)
13658 lt_prog_compiler_wl='-Wl,'
13659 lt_prog_compiler_pic='-fPIC'
13660 lt_prog_compiler_static='-static'
13661 ;;
13662 *Portland\ Group*)
13663 lt_prog_compiler_wl='-Wl,'
13664 lt_prog_compiler_pic='-fpic'
13665 lt_prog_compiler_static='-Bstatic'
13666 ;;
13667 esac
13668 ;;
13669 esac
13670 ;;
13671
13672 newsos6)
13673 lt_prog_compiler_pic='-KPIC'
13674 lt_prog_compiler_static='-Bstatic'
13675 ;;
13676
13677 *-mlibc)
13678 lt_prog_compiler_wl='-Wl,'
13679 lt_prog_compiler_pic='-fPIC'
13680 lt_prog_compiler_static='-static'
13681 ;;
13682
13683 *nto* | *qnx*)
13684 # QNX uses GNU C++, but need to define -shared option too, otherwise
13685 # it will coredump.
13686 lt_prog_compiler_pic='-fPIC -shared'
13687 ;;
13688
13689 osf3* | osf4* | osf5*)
13690 lt_prog_compiler_wl='-Wl,'
13691 # All OSF/1 code is PIC.
13692 lt_prog_compiler_static='-non_shared'
13693 ;;
13694
13695 rdos*)
13696 lt_prog_compiler_static='-non_shared'
13697 ;;
13698
13699 serenity*)
13700 ;;
13701
13702 solaris*)
13703 lt_prog_compiler_pic='-KPIC'
13704 lt_prog_compiler_static='-Bstatic'
13705 case $cc_basename in
13706 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13707 lt_prog_compiler_wl='-Qoption ld ';;
13708 *)
13709 lt_prog_compiler_wl='-Wl,';;
13710 esac
13711 ;;
13712
13713 sunos4*)
13714 lt_prog_compiler_wl='-Qoption ld '
13715 lt_prog_compiler_pic='-PIC'
13716 lt_prog_compiler_static='-Bstatic'
13717 ;;
13718
13719 sysv4 | sysv4.2uw2* | sysv4.3*)
13720 lt_prog_compiler_wl='-Wl,'
13721 lt_prog_compiler_pic='-KPIC'
13722 lt_prog_compiler_static='-Bstatic'
13723 ;;
13724
13725 sysv4*MP*)
13726 if test -d /usr/nec; then
13727 lt_prog_compiler_pic='-Kconform_pic'
13728 lt_prog_compiler_static='-Bstatic'
13729 fi
13730 ;;
13731
13732 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13733 lt_prog_compiler_wl='-Wl,'
13734 lt_prog_compiler_pic='-KPIC'
13735 lt_prog_compiler_static='-Bstatic'
13736 ;;
13737
13738 unicos*)
13739 lt_prog_compiler_wl='-Wl,'
13740 lt_prog_compiler_can_build_shared=no
13741 ;;
13742
13743 uts4*)
13744 lt_prog_compiler_pic='-pic'
13745 lt_prog_compiler_static='-Bstatic'
13746 ;;
13747
13748 *)
13749 lt_prog_compiler_can_build_shared=no
13750 ;;
13751 esac
13752 fi
13753
13754 case $host_os in
13755 # For platforms that do not support PIC, -DPIC is meaningless:
13756 *djgpp*)
13757 lt_prog_compiler_pic=
13758 ;;
13759 *)
13760 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13761 ;;
13762 esac
13763
13764 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13765 printf %s "checking for $compiler option to produce PIC... " >&6; }
13766 if test ${lt_cv_prog_compiler_pic+y}
13767 then :
13768 printf %s "(cached) " >&6
13769 else case e in #(
13770 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
13771 esac
13772 fi
13773 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13774 printf '%s\n' "$lt_cv_prog_compiler_pic" >&6; }
13775 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13776
13777 #
13778 # Check to make sure the PIC flag actually works.
13779 #
13780 if test -n "$lt_prog_compiler_pic"; then
13781 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13782 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13783 if test ${lt_cv_prog_compiler_pic_works+y}
13784 then :
13785 printf %s "(cached) " >&6
13786 else case e in #(
13787 e) lt_cv_prog_compiler_pic_works=no
13788 ac_outfile=conftest.$ac_objext
13789 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13790 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
13791 # Insert the option either (1) after the last *FLAGS variable, or
13792 # (2) before a word containing "conftest.", or (3) at the end.
13793 # Note that $ac_compile itself does not contain backslashes and begins
13794 # with a dollar sign (not a hyphen), so the echo should work correctly.
13795 # The option is referenced via a variable to avoid confusing sed.
13796 lt_compile=`echo "$ac_compile" | $SED \
13797 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13798 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13799 -e 's:$: $lt_compiler_flag:'`
13800 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13801 (eval "$lt_compile" 2>conftest.err)
13802 ac_status=$?
13803 cat conftest.err >&5
13804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805 if (exit $ac_status) && test -s "$ac_outfile"; then
13806 # The compiler can only warn and ignore the option if not recognized
13807 # So say no if there are warnings other than the usual output.
13808 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13809 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13810 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13811 lt_cv_prog_compiler_pic_works=yes
13812 fi
13813 fi
13814 $RM conftest*
13815 ;;
13816 esac
13817 fi
13818 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13819 printf '%s\n' "$lt_cv_prog_compiler_pic_works" >&6; }
13820
13821 if test yes = "$lt_cv_prog_compiler_pic_works"; then
13822 case $lt_prog_compiler_pic in
13823 "" | " "*) ;;
13824 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13825 esac
13826 else
13827 lt_prog_compiler_pic=
13828 lt_prog_compiler_can_build_shared=no
13829 fi
13830
13831 fi
13832
13833
13834
13835
13836
13837 #
13838 # Check to make sure the static flag actually works.
13839 #
13840 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13841 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13842 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13843 if test ${lt_cv_prog_compiler_static_works+y}
13844 then :
13845 printf %s "(cached) " >&6
13846 else case e in #(
13847 e) lt_cv_prog_compiler_static_works=no
13848 save_LDFLAGS=$LDFLAGS
13849 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13850 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13851 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13852 # The linker can only warn and ignore the option if not recognized
13853 # So say no if there are warnings
13854 if test -s conftest.err; then
13855 # Append any errors to the config.log.
13856 cat conftest.err 1>&5
13857 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13858 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13859 if diff conftest.exp conftest.er2 >/dev/null; then
13860 lt_cv_prog_compiler_static_works=yes
13861 fi
13862 else
13863 lt_cv_prog_compiler_static_works=yes
13864 fi
13865 fi
13866 $RM -r conftest*
13867 LDFLAGS=$save_LDFLAGS
13868 ;;
13869 esac
13870 fi
13871 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13872 printf '%s\n' "$lt_cv_prog_compiler_static_works" >&6; }
13873
13874 if test yes = "$lt_cv_prog_compiler_static_works"; then
13875 :
13876 else
13877 lt_prog_compiler_static=
13878 fi
13879
13880
13881
13882 ='-fPIC'
13883 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
13884 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
13885 archive_cmds_need_lc=no
13886 no_undefined_flag=
13887 ;;
13888
13889 *)
13890 dynamic_linker=no
13891 ;;
13892 esac
13893 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13894 printf '%s\n' "$dynamic_linker" >&6; }
13895 test no = "$dynamic_linker" && can_build_shared=no
13896
13897 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13898 if test yes = "$GCC"; then
13899 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13900 fi
13901
13902 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13903 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13904 fi
13905
13906 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13907 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13908 fi
13909
13910 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13911 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13912
13913 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13914 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13915
13916 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13917 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14016 printf %s "checking how to hardcode library paths into programs... " >&6; }
14017 hardcode_action=
14018 if test -n "$hardcode_libdir_flag_spec" ||
14019 test -n "$runpath_var" ||
14020 test yes = "$hardcode_automatic"; then
14021
14022 # We can hardcode non-existent directories.
14023 if test no != "$hardcode_direct" &&
14024 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14025 # have to relink, otherwise we might link with an installed library
14026 # when we should be linking with a yet-to-be-installed one
14027 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14028 test no != "$hardcode_minus_L"; then
14029 # Linking always hardcodes the temporary library directory.
14030 hardcode_action=relink
14031 else
14032 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14033 hardcode_action=immediate
14034 fi
14035 else
14036 # We cannot hardcode anything, or else we can only hardcode existing
14037 # directories.
14038 hardcode_action=unsupported
14039 fi
14040 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14041 printf '%s\n' "$hardcode_action" >&6; }
14042
14043 if test relink = "$hardcode_action" ||
14044 test yes = "$inherit_rpath"; then
14045 # Fast installation is not supported
14046 enable_fast_install=no
14047 elif test yes = "$shlibpath_overrides_runpath" ||
14048 test no = "$enable_shared"; then
14049 # Fast installation is not necessary
14050 enable_fast_install=needless
14051 fi
14052
14053
14054
14055
14056
14057
14058 if test yes != "$enable_dlopen"; then
14059 enable_dlopen=unknown
14060 enable_dlopen_self=unknown
14061 enable_dlopen_self_static=unknown
14062 else
14063 lt_cv_dlopen=no
14064 lt_cv_dlopen_libs=
14065
14066 case $host_os in
14067 beos*)
14068 lt_cv_dlopen=load_add_on
14069 lt_cv_dlopen_libs=
14070 lt_cv_dlopen_self=yes
14071 ;;
14072
14073 mingw* | windows* | pw32* | cegcc*)
14074 lt_cv_dlopen=LoadLibrary
14075 lt_cv_dlopen_libs=
14076 ;;
14077
14078 cygwin*)
14079 lt_cv_dlopen=dlopen
14080 lt_cv_dlopen_libs=
14081 ;;
14082
14083 darwin*)
14084 # if libdl is installed we need to link against it
14085 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14086 printf %s "checking for dlopen in -ldl... " >&6; }
14087 if test ${ac_cv_lib_dl_dlopen+y}
14088 then :
14089 printf %s "(cached) " >&6
14090 else case e in #(
14091 e) ac_check_lib_save_LIBS=$LIBS
14092 LIBS="-ldl $LIBS"
14093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14094 /* end confdefs.h. */
14095
14096 /* Override any GCC internal prototype to avoid an error.
14097 Use char because int might match the return type of a GCC
14098 builtin and then its argument prototype would still apply.
14099 The 'extern "C"' is for builds by C++ compilers;
14100 although this is not generally supported in C code supporting it here
14101 has little cost and some practical benefit (sr 110532). */
14102 #ifdef __cplusplus
14103 extern "C"
14104 #endif
14105 char dlopen (void);
14106 int
14107 main (void)
14108 {
14109 return dlopen ();
14110 ;
14111 return 0;
14112 }
14113 _ACEOF
14114 if ac_fn_c_try_link "$LINENO"
14115 then :
14116 ac_cv_lib_dl_dlopen=yes
14117 else case e in #(
14118 e) ac_cv_lib_dl_dlopen=no ;;
14119 esac
14120 fi
14121 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14122 conftest$ac_exeext conftest.$ac_ext
14123 LIBS=$ac_check_lib_save_LIBS ;;
14124 esac
14125 fi
14126 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14127 printf '%s\n' "$ac_cv_lib_dl_dlopen" >&6; }
14128 if test "x$ac_cv_lib_dl_dlopen" = xyes
14129 then :
14130 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14131 else case e in #(
14132 e)
14133 lt_cv_dlopen=dyld
14134 lt_cv_dlopen_libs=
14135 lt_cv_dlopen_self=yes
14136 ;;
14137 esac
14138 fi
14139
14140 ;;
14141
14142 tpf*)
14143 # Don't try to run any link tests for TPF. We know it's impossible
14144 # because TPF is a cross-compiler, and we know how we open DSOs.
14145 lt_cv_dlopen=dlopen
14146 lt_cv_dlopen_libs=
14147 lt_cv_dlopen_self=no
14148 ;;
14149
14150 *)
14151 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14152 if test "x$ac_cv_func_shl_load" = xyes
14153 then :
14154 lt_cv_dlopen=shl_load
14155 else case e in #(
14156 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14157 printf %s "checking for shl_load in -ldld... " >&6; }
14158 if test ${ac_cv_lib_dld_shl_load+y}
14159 then :
14160 printf %s "(cached) " >&6
14161 else case e in #(
14162 e) ac_check_lib_save_LIBS=$LIBS
14163 LIBS="-ldld $LIBS"
14164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14165 /* end confdefs.h. */
14166
14167 /* Override any GCC internal prototype to avoid an error.
14168 Use char because int might match the return type of a GCC
14169 builtin and then its argument prototype would still apply.
14170 The 'extern "C"' is for builds by C++ compilers;
14171 although this is not generally supported in C code supporting it here
14172 has little cost and some practical benefit (sr 110532). */
14173 #ifdef __cplusplus
14174 extern "C"
14175 #endif
14176 char shl_load (void);
14177 int
14178 main (void)
14179 {
14180 return shl_load ();
14181 ;
14182 return 0;
14183 }
14184 _ACEOF
14185 if ac_fn_c_try_link "$LINENO"
14186 then :
14187 ac_cv_lib_dld_shl_load=yes
14188 else case e in #(
14189 e) ac_cv_lib_dld_shl_load=no ;;
14190 esac
14191 fi
14192 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14193 conftest$ac_exeext conftest.$ac_ext
14194 LIBS=$ac_check_lib_save_LIBS ;;
14195 esac
14196 fi
14197 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14198 printf '%s\n' "$ac_cv_lib_dld_shl_load" >&6; }
14199 if test "x$ac_cv_lib_dld_shl_load" = xyes
14200 then :
14201 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14202 else case e in #(
14203 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14204 if test "x$ac_cv_func_dlopen" = xyes
14205 then :
14206 lt_cv_dlopen=dlopen
14207 else case e in #(
14208 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14209 printf %s "checking for dlopen in -ldl... " >&6; }
14210 if test ${ac_cv_lib_dl_dlopen+y}
14211 then :
14212 printf %s "(cached) " >&6
14213 else case e in #(
14214 e) ac_check_lib_save_LIBS=$LIBS
14215 LIBS="-ldl $LIBS"
14216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14217 /* end confdefs.h. */
14218
14219 /* Override any GCC internal prototype to avoid an error.
14220 Use char because int might match the return type of a GCC
14221 builtin and then its argument prototype would still apply.
14222 The 'extern "C"' is for builds by C++ compilers;
14223 although this is not generally supported in C code supporting it here
14224 has little cost and some practical benefit (sr 110532). */
14225 #ifdef __cplusplus
14226 extern "C"
14227 #endif
14228 char dlopen (void);
14229 int
14230 main (void)
14231 {
14232 return dlopen ();
14233 ;
14234 return 0;
14235 }
14236 _ACEOF
14237 if ac_fn_c_try_link "$LINENO"
14238 then :
14239 ac_cv_lib_dl_dlopen=yes
14240 else case e in #(
14241 e) ac_cv_lib_dl_dlopen=no ;;
14242 esac
14243 fi
14244 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14245 conftest$ac_exeext conftest.$ac_ext
14246 LIBS=$ac_check_lib_save_LIBS ;;
14247 esac
14248 fi
14249 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14250 printf '%s\n' "$ac_cv_lib_dl_dlopen" >&6; }
14251 if test "x$ac_cv_lib_dl_dlopen" = xyes
14252 then :
14253 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14254 else case e in #(
14255 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14256 printf %s "checking for dlopen in -lsvld... " >&6; }
14257 if test ${ac_cv_lib_svld_dlopen+y}
14258 then :
14259 printf %s "(cached) " >&6
14260 else case e in #(
14261 e) ac_check_lib_save_LIBS=$LIBS
14262 LIBS="-lsvld $LIBS"
14263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14264 /* end confdefs.h. */
14265
14266 /* Override any GCC internal prototype to avoid an error.
14267 Use char because int might match the return type of a GCC
14268 builtin and then its argument prototype would still apply.
14269 The 'extern "C"' is for builds by C++ compilers;
14270 although this is not generally supported in C code supporting it here
14271 has little cost and some practical benefit (sr 110532). */
14272 #ifdef __cplusplus
14273 extern "C"
14274 #endif
14275 char dlopen (void);
14276 int
14277 main (void)
14278 {
14279 return dlopen ();
14280 ;
14281 return 0;
14282 }
14283 _ACEOF
14284 if ac_fn_c_try_link "$LINENO"
14285 then :
14286 ac_cv_lib_svld_dlopen=yes
14287 else case e in #(
14288 e) ac_cv_lib_svld_dlopen=no ;;
14289 esac
14290 fi
14291 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14292 conftest$ac_exeext conftest.$ac_ext
14293 LIBS=$ac_check_lib_save_LIBS ;;
14294 esac
14295 fi
14296 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14297 printf '%s\n' "$ac_cv_lib_svld_dlopen" >&6; }
14298 if test "x$ac_cv_lib_svld_dlopen" = xyes
14299 then :
14300 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14301 else case e in #(
14302 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14303 printf %s "checking for dld_link in -ldld... " >&6; }
14304 if test ${ac_cv_lib_dld_dld_link+y}
14305 then :
14306 printf %s "(cached) " >&6
14307 else case e in #(
14308 e) ac_check_lib_save_LIBS=$LIBS
14309 LIBS="-ldld $LIBS"
14310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14311 /* end confdefs.h. */
14312
14313 /* Override any GCC internal prototype to avoid an error.
14314 Use char because int might match the return type of a GCC
14315 builtin and then its argument prototype would still apply.
14316 The 'extern "C"' is for builds by C++ compilers;
14317 although this is not generally supported in C code supporting it here
14318 has little cost and some practical benefit (sr 110532). */
14319 #ifdef __cplusplus
14320 extern "C"
14321 #endif
14322 char dld_link (void);
14323 int
14324 main (void)
14325 {
14326 return dld_link ();
14327 ;
14328 return 0;
14329 }
14330 _ACEOF
14331 if ac_fn_c_try_link "$LINENO"
14332 then :
14333 ac_cv_lib_dld_dld_link=yes
14334 else case e in #(
14335 e) ac_cv_lib_dld_dld_link=no ;;
14336 esac
14337 fi
14338 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14339 conftest$ac_exeext conftest.$ac_ext
14340 LIBS=$ac_check_lib_save_LIBS ;;
14341 esac
14342 fi
14343 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14344 printf '%s\n' "$ac_cv_lib_dld_dld_link" >&6; }
14345 if test "x$ac_cv_lib_dld_dld_link" = xyes
14346 then :
14347 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14348 fi
14349
14350 ;;
14351 esac
14352 fi
14353
14354 ;;
14355 esac
14356 fi
14357
14358 ;;
14359 esac
14360 fi
14361
14362 ;;
14363 esac
14364 fi
14365
14366 ;;
14367 esac
14368 fi
14369
14370 ;;
14371 esac
14372
14373 if test no = "$lt_cv_dlopen"; then
14374 enable_dlopen=no
14375 else
14376 enable_dlopen=yes
14377 fi
14378
14379 case $lt_cv_dlopen in
14380 dlopen)
14381 save_CPPFLAGS=$CPPFLAGS
14382 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14383
14384 save_LDFLAGS=$LDFLAGS
14385 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14386
14387 save_LIBS=$LIBS
14388 LIBS="$lt_cv_dlopen_libs $LIBS"
14389
14390 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14391 printf %s "checking whether a program can dlopen itself... " >&6; }
14392 if test ${lt_cv_dlopen_self+y}
14393 then :
14394 printf %s "(cached) " >&6
14395 else case e in #(
14396 e) if test yes = "$cross_compiling"; then :
14397 lt_cv_dlopen_self=cross
14398 else
14399 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14400 lt_status=$lt_dlunknown
14401 cat > conftest.$ac_ext <<_LT_EOF
14402 #line $LINENO "configure"
14403 #include "confdefs.h"
14404
14405 #if HAVE_DLFCN_H
14406 #include <dlfcn.h>
14407 #endif
14408
14409 #include <stdio.h>
14410
14411 #ifdef RTLD_GLOBAL
14412 # define LT_DLGLOBAL RTLD_GLOBAL
14413 #else
14414 # ifdef DL_GLOBAL
14415 # define LT_DLGLOBAL DL_GLOBAL
14416 # else
14417 # define LT_DLGLOBAL 0
14418 # endif
14419 #endif
14420
14421 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14422 find out it does not work in some platform. */
14423 #ifndef LT_DLLAZY_OR_NOW
14424 # ifdef RTLD_LAZY
14425 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14426 # else
14427 # ifdef DL_LAZY
14428 # define LT_DLLAZY_OR_NOW DL_LAZY
14429 # else
14430 # ifdef RTLD_NOW
14431 # define LT_DLLAZY_OR_NOW RTLD_NOW
14432 # else
14433 # ifdef DL_NOW
14434 # define LT_DLLAZY_OR_NOW DL_NOW
14435 # else
14436 # define LT_DLLAZY_OR_NOW 0
14437 # endif
14438 # endif
14439 # endif
14440 # endif
14441 #endif
14442
14443 /* When -fvisibility=hidden is used, assume the code has been annotated
14444 correspondingly for the symbols needed. */
14445 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14446 int fnord (void) __attribute__((visibility("default")));
14447 #endif
14448
14449 int fnord (void) { return 42; }
14450 int main (void)
14451 {
14452 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14453 int status = $lt_dlunknown;
14454
14455 if (self)
14456 {
14457 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14458 else
14459 {
14460 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14461 else puts (dlerror ());
14462 }
14463 /* dlclose (self); */
14464 }
14465 else
14466 puts (dlerror ());
14467
14468 return status;
14469 }
14470 _LT_EOF
14471 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14472 (eval $ac_link) 2>&5
14473 ac_status=$?
14474 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14475 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14476 (./conftest; exit; ) >&5 2>/dev/null
14477 lt_status=$?
14478 case x$lt_status in
14479 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14480 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14481 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14482 esac
14483 else :
14484 # compilation failed
14485 lt_cv_dlopen_self=no
14486 fi
14487 fi
14488 rm -fr conftest*
14489
14490 ;;
14491 esac
14492 fi
14493 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14494 printf '%s\n' "$lt_cv_dlopen_self" >&6; }
14495
14496 if test yes = "$lt_cv_dlopen_self"; then
14497 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14498 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14499 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
14500 if test ${lt_cv_dlopen_self_static+y}
14501 then :
14502 printf %s "(cached) " >&6
14503 else case e in #(
14504 e) if test yes = "$cross_compiling"; then :
14505 lt_cv_dlopen_self_static=cross
14506 else
14507 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14508 lt_status=$lt_dlunknown
14509 cat > conftest.$ac_ext <<_LT_EOF
14510 #line $LINENO "configure"
14511 #include "confdefs.h"
14512
14513 #if HAVE_DLFCN_H
14514 #include <dlfcn.h>
14515 #endif
14516
14517 #include <stdio.h>
14518
14519 #ifdef RTLD_GLOBAL
14520 # define LT_DLGLOBAL RTLD_GLOBAL
14521 #else
14522 # ifdef DL_GLOBAL
14523 # define LT_DLGLOBAL DL_GLOBAL
14524 # else
14525 # define LT_DLGLOBAL 0
14526 # endif
14527 #endif
14528
14529 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14530 find out it does not work in some platform. */
14531 #ifndef LT_DLLAZY_OR_NOW
14532 # ifdef RTLD_LAZY
14533 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14534 # else
14535 # ifdef DL_LAZY
14536 # define LT_DLLAZY_OR_NOW DL_LAZY
14537 # else
14538 # ifdef RTLD_NOW
14539 # define LT_DLLAZY_OR_NOW RTLD_NOW
14540 # else
14541 # ifdef DL_NOW
14542 # define LT_DLLAZY_OR_NOW DL_NOW
14543 # else
14544 # define LT_DLLAZY_OR_NOW 0
14545 # endif
14546 # endif
14547 # endif
14548 # endif
14549 #endif
14550
14551 /* When -fvisibility=hidden is used, assume the code has been annotated
14552 correspondingly for the symbols needed. */
14553 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14554 int fnord (void) __attribute__((visibility("default")));
14555 #endif
14556
14557 int fnord (void) { return 42; }
14558 int main (void)
14559 {
14560 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14561 int status = $lt_dlunknown;
14562
14563 if (self)
14564 {
14565 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14566 else
14567 {
14568 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14569 else puts (dlerror ());
14570 }
14571 /* dlclose (self); */
14572 }
14573 else
14574 puts (dlerror ());
14575
14576 return status;
14577 }
14578 _LT_EOF
14579 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14580 (eval $ac_link) 2>&5
14581 ac_status=$?
14582 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14583 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14584 (./conftest; exit; ) >&5 2>/dev/null
14585 lt_status=$?
14586 case x$lt_status in
14587 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14588 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14589 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14590 esac
14591 else :
14592 # compilation failed
14593 lt_cv_dlopen_self_static=no
14594 fi
14595 fi
14596 rm -fr conftest*
14597
14598 ;;
14599 esac
14600 fi
14601 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14602 printf '%s\n' "$lt_cv_dlopen_self_static" >&6; }
14603 fi
14604
14605 CPPFLAGS=$save_CPPFLAGS
14606 LDFLAGS=$save_LDFLAGS
14607 LIBS=$save_LIBS
14608 ;;
14609 esac
14610
14611 case $lt_cv_dlopen_self in
14612 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14613 *) enable_dlopen_self=unknown ;;
14614 esac
14615
14616 case $lt_cv_dlopen_self_static in
14617 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14618 *) enable_dlopen_self_static=unknown ;;
14619 esac
14620 fi
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638 striplib=
14639 old_striplib=
14640 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14641 printf %s "checking whether stripping libraries is possible... " >&6; }
14642 if test -z "$STRIP"; then
14643 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
14644 printf '%s\n' "no" >&6; }
14645 else
14646 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14647 old_striplib="$STRIP --strip-debug"
14648 striplib="$STRIP --strip-unneeded"
14649 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14650 printf '%s\n' "yes" >&6; }
14651 else
14652 case $host_os in
14653 darwin*)
14654 # FIXME - insert some real tests, host_os isn't really good enough
14655 striplib="$STRIP -x"
14656 old_striplib="$STRIP -S"
14657 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14658 printf '%s\n' "yes" >&6; }
14659 ;;
14660 freebsd*)
14661 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
14662 old_striplib="$STRIP --strip-debug"
14663 striplib="$STRIP --strip-unneeded"
14664 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14665 printf '%s\n' "yes" >&6; }
14666 else
14667 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
14668 printf '%s\n' "no" >&6; }
14669 fi
14670 ;;
14671 *)
14672 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
14673 printf '%s\n' "no" >&6; }
14674 ;;
14675 esac
14676 fi
14677 fi
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690 # Report what library types will actually be built
14691 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14692 printf %s "checking if libtool supports shared libraries... " >&6; }
14693 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14694 printf '%s\n' "$can_build_shared" >&6; }
14695
14696 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14697 printf %s "checking whether to build shared libraries... " >&6; }
14698 test no = "$can_build_shared" && enable_shared=no
14699
14700 # On AIX, shared libraries and static libraries use the same namespace, and
14701 # are all built from PIC.
14702 case $host_os in
14703 aix3*)
14704 test yes = "$enable_shared" && enable_static=no
14705 if test -n "$RANLIB"; then
14706 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14707 postinstall_cmds='$RANLIB $lib'
14708 fi
14709 ;;
14710
14711 aix[4-9]*)
14712 if test ia64 != "$host_cpu"; then
14713 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14714 yes,aix,yes) ;; # shared object as lib.so file only
14715 yes,svr4,*) ;; # shared object as lib.so archive member only
14716 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14717 esac
14718 fi
14719 ;;
14720 esac
14721 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14722 printf '%s\n' "$enable_shared" >&6; }
14723
14724 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14725 printf %s "checking whether to build static libraries... " >&6; }
14726 # Make sure either enable_shared or enable_static is yes.
14727 test yes = "$enable_shared" || enable_static=yes
14728 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14729 printf '%s\n' "$enable_static" >&6; }
14730
14731
14732
14733
14734 fi
14735 ac_ext=c
14736 ac_cpp='$CPP $CPPFLAGS'
14737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14740
14741 CC=$lt_save_CC
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757 ac_config_commands="$ac_config_commands libtool"
14758
14759
14760
14761
14762 # Only expand once:
14763
14764
14765
14766 CFLAGS="${ac_save_CFLAGS}"
14767
14768 # increase this when the shared lib becomes totally incompatible
14769 LIB_MAJOR_VERSION=0
14770
14771 # increase this when changes are made, but they are upward compatible
14772 # to previous versions
14773 LIB_MINOR_VERSION=0
14774
14775 if test "${ac_cv_cygwin}" = "yes"; then
14776 if test "${CC}" != "gcc"; then
14777 as_fn_error $? "Please use
14778 CC=gcc ./configure
14779 Abort this configure run and add \"CC=gcc\" or you will
14780 see errors and no lame.exe will be build." "$LINENO" 5
14781 fi
14782 fi
14783
14784 ac_ext=c
14785 ac_cpp='$CPP $CPPFLAGS'
14786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14789 if test -n "$ac_tool_prefix"; then
14790 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
14791 set dummy ${ac_tool_prefix}gcc; ac_word=$2
14792 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14793 printf %s "checking for $ac_word... " >&6; }
14794 if test ${ac_cv_prog_CC+y}
14795 then :
14796 printf %s "(cached) " >&6
14797 else case e in #(
14798 e) if test -n "$CC"; then
14799 ac_cv_prog_CC="$CC" # Let the user override the test.
14800 else
14801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14802 for as_dir in $PATH
14803 do
14804 IFS=$as_save_IFS
14805 case $as_dir in #(((
14806 '') as_dir=./ ;;
14807 */) ;;
14808 *) as_dir=$as_dir/ ;;
14809 esac
14810 for ac_exec_ext in '' $ac_executable_extensions; do
14811 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14812 ac_cv_prog_CC="${ac_tool_prefix}gcc"
14813 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14814 break 2
14815 fi
14816 done
14817 done
14818 IFS=$as_save_IFS
14819
14820 fi ;;
14821 esac
14822 fi
14823 CC=$ac_cv_prog_CC
14824 if test -n "$CC"; then
14825 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14826 printf '%s\n' "$CC" >&6; }
14827 else
14828 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
14829 printf '%s\n' "no" >&6; }
14830 fi
14831
14832
14833 fi
14834 if test -z "$ac_cv_prog_CC"; then
14835 ac_ct_CC=$CC
14836 # Extract the first word of "gcc", so it can be a program name with args.
14837 set dummy gcc; ac_word=$2
14838 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14839 printf %s "checking for $ac_word... " >&6; }
14840 if test ${ac_cv_prog_ac_ct_CC+y}
14841 then :
14842 printf %s "(cached) " >&6
14843 else case e in #(
14844 e) if test -n "$ac_ct_CC"; then
14845 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14846 else
14847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14848 for as_dir in $PATH
14849 do
14850 IFS=$as_save_IFS
14851 case $as_dir in #(((
14852 '') as_dir=./ ;;
14853 */) ;;
14854 *) as_dir=$as_dir/ ;;
14855 esac
14856 for ac_exec_ext in '' $ac_executable_extensions; do
14857 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14858 ac_cv_prog_ac_ct_CC="gcc"
14859 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14860 break 2
14861 fi
14862 done
14863 done
14864 IFS=$as_save_IFS
14865
14866 fi ;;
14867 esac
14868 fi
14869 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14870 if test -n "$ac_ct_CC"; then
14871 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14872 printf '%s\n' "$ac_ct_CC" >&6; }
14873 else
14874 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
14875 printf '%s\n' "no" >&6; }
14876 fi
14877
14878 if test "x$ac_ct_CC" = x; then
14879 CC=""
14880 else
14881 case $cross_compiling:$ac_tool_warned in
14882 yes:)
14883 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14884 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14885 ac_tool_warned=yes ;;
14886 esac
14887 CC=$ac_ct_CC
14888 fi
14889 else
14890 CC="$ac_cv_prog_CC"
14891 fi
14892
14893 if test -z "$CC"; then
14894 if test -n "$ac_tool_prefix"; then
14895 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
14896 set dummy ${ac_tool_prefix}cc; ac_word=$2
14897 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14898 printf %s "checking for $ac_word... " >&6; }
14899 if test ${ac_cv_prog_CC+y}
14900 then :
14901 printf %s "(cached) " >&6
14902 else case e in #(
14903 e) if test -n "$CC"; then
14904 ac_cv_prog_CC="$CC" # Let the user override the test.
14905 else
14906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14907 for as_dir in $PATH
14908 do
14909 IFS=$as_save_IFS
14910 case $as_dir in #(((
14911 '') as_dir=./ ;;
14912 */) ;;
14913 *) as_dir=$as_dir/ ;;
14914 esac
14915 for ac_exec_ext in '' $ac_executable_extensions; do
14916 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14917 ac_cv_prog_CC="${ac_tool_prefix}cc"
14918 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14919 break 2
14920 fi
14921 done
14922 done
14923 IFS=$as_save_IFS
14924
14925 fi ;;
14926 esac
14927 fi
14928 CC=$ac_cv_prog_CC
14929 if test -n "$CC"; then
14930 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14931 printf '%s\n' "$CC" >&6; }
14932 else
14933 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
14934 printf '%s\n' "no" >&6; }
14935 fi
14936
14937
14938 fi
14939 fi
14940 if test -z "$CC"; then
14941 # Extract the first word of "cc", so it can be a program name with args.
14942 set dummy cc; ac_word=$2
14943 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14944 printf %s "checking for $ac_word... " >&6; }
14945 if test ${ac_cv_prog_CC+y}
14946 then :
14947 printf %s "(cached) " >&6
14948 else case e in #(
14949 e) if test -n "$CC"; then
14950 ac_cv_prog_CC="$CC" # Let the user override the test.
14951 else
14952 ac_prog_rejected=no
14953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14954 for as_dir in $PATH
14955 do
14956 IFS=$as_save_IFS
14957 case $as_dir in #(((
14958 '') as_dir=./ ;;
14959 */) ;;
14960 *) as_dir=$as_dir/ ;;
14961 esac
14962 for ac_exec_ext in '' $ac_executable_extensions; do
14963 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14964 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
14965 ac_prog_rejected=yes
14966 continue
14967 fi
14968 ac_cv_prog_CC="cc"
14969 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14970 break 2
14971 fi
14972 done
14973 done
14974 IFS=$as_save_IFS
14975
14976 if test $ac_prog_rejected = yes; then
14977 # We found a bogon in the path, so make sure we never use it.
14978 set dummy $ac_cv_prog_CC
14979 shift
14980 if test $# != 0; then
14981 # We chose a different compiler from the bogus one.
14982 # However, it has the same basename, so the bogon will be chosen
14983 # first if we set CC to just the basename; use the full file name.
14984 shift
14985 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
14986 fi
14987 fi
14988 fi ;;
14989 esac
14990 fi
14991 CC=$ac_cv_prog_CC
14992 if test -n "$CC"; then
14993 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14994 printf '%s\n' "$CC" >&6; }
14995 else
14996 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
14997 printf '%s\n' "no" >&6; }
14998 fi
14999
15000
15001 fi
15002 if test -z "$CC"; then
15003 if test -n "$ac_tool_prefix"; then
15004 for ac_prog in cl.exe
15005 do
15006 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15007 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15008 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15009 printf %s "checking for $ac_word... " >&6; }
15010 if test ${ac_cv_prog_CC+y}
15011 then :
15012 printf %s "(cached) " >&6
15013 else case e in #(
15014 e) if test -n "$CC"; then
15015 ac_cv_prog_CC="$CC" # Let the user override the test.
15016 else
15017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15018 for as_dir in $PATH
15019 do
15020 IFS=$as_save_IFS
15021 case $as_dir in #(((
15022 '') as_dir=./ ;;
15023 */) ;;
15024 *) as_dir=$as_dir/ ;;
15025 esac
15026 for ac_exec_ext in '' $ac_executable_extensions; do
15027 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15028 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
15029 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15030 break 2
15031 fi
15032 done
15033 done
15034 IFS=$as_save_IFS
15035
15036 fi ;;
15037 esac
15038 fi
15039 CC=$ac_cv_prog_CC
15040 if test -n "$CC"; then
15041 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
15042 printf '%s\n' "$CC" >&6; }
15043 else
15044 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
15045 printf '%s\n' "no" >&6; }
15046 fi
15047
15048
15049 test -n "$CC" && break
15050 done
15051 fi
15052 if test -z "$CC"; then
15053 ac_ct_CC=$CC
15054 for ac_prog in cl.exe
15055 do
15056 # Extract the first word of "$ac_prog", so it can be a program name with args.
15057 set dummy $ac_prog; ac_word=$2
15058 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15059 printf %s "checking for $ac_word... " >&6; }
15060 if test ${ac_cv_prog_ac_ct_CC+y}
15061 then :
15062 printf %s "(cached) " >&6
15063 else case e in #(
15064 e) if test -n "$ac_ct_CC"; then
15065 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
15066 else
15067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15068 for as_dir in $PATH
15069 do
15070 IFS=$as_save_IFS
15071 case $as_dir in #(((
15072 '') as_dir=./ ;;
15073 */) ;;
15074 *) as_dir=$as_dir/ ;;
15075 esac
15076 for ac_exec_ext in '' $ac_executable_extensions; do
15077 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15078 ac_cv_prog_ac_ct_CC="$ac_prog"
15079 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15080 break 2
15081 fi
15082 done
15083 done
15084 IFS=$as_save_IFS
15085
15086 fi ;;
15087 esac
15088 fi
15089 ac_ct_CC=$ac_cv_prog_ac_ct_CC
15090 if test -n "$ac_ct_CC"; then
15091 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
15092 printf '%s\n' "$ac_ct_CC" >&6; }
15093 else
15094 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
15095 printf '%s\n' "no" >&6; }
15096 fi
15097
15098
15099 test -n "$ac_ct_CC" && break
15100 done
15101
15102 if test "x$ac_ct_CC" = x; then
15103 CC=""
15104 else
15105 case $cross_compiling:$ac_tool_warned in
15106 yes:)
15107 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15108 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15109 ac_tool_warned=yes ;;
15110 esac
15111 CC=$ac_ct_CC
15112 fi
15113 fi
15114
15115 fi
15116 if test -z "$CC"; then
15117 if test -n "$ac_tool_prefix"; then
15118 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
15119 set dummy ${ac_tool_prefix}clang; ac_word=$2
15120 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15121 printf %s "checking for $ac_word... " >&6; }
15122 if test ${ac_cv_prog_CC+y}
15123 then :
15124 printf %s "(cached) " >&6
15125 else case e in #(
15126 e) if test -n "$CC"; then
15127 ac_cv_prog_CC="$CC" # Let the user override the test.
15128 else
15129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15130 for as_dir in $PATH
15131 do
15132 IFS=$as_save_IFS
15133 case $as_dir in #(((
15134 '') as_dir=./ ;;
15135 */) ;;
15136 *) as_dir=$as_dir/ ;;
15137 esac
15138 for ac_exec_ext in '' $ac_executable_extensions; do
15139 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15140 ac_cv_prog_CC="${ac_tool_prefix}clang"
15141 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15142 break 2
15143 fi
15144 done
15145 done
15146 IFS=$as_save_IFS
15147
15148 fi ;;
15149 esac
15150 fi
15151 CC=$ac_cv_prog_CC
15152 if test -n "$CC"; then
15153 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
15154 printf '%s\n' "$CC" >&6; }
15155 else
15156 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
15157 printf '%s\n' "no" >&6; }
15158 fi
15159
15160
15161 fi
15162 if test -z "$ac_cv_prog_CC"; then
15163 ac_ct_CC=$CC
15164 # Extract the first word of "clang", so it can be a program name with args.
15165 set dummy clang; ac_word=$2
15166 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15167 printf %s "checking for $ac_word... " >&6; }
15168 if test ${ac_cv_prog_ac_ct_CC+y}
15169 then :
15170 printf %s "(cached) " >&6
15171 else case e in #(
15172 e) if test -n "$ac_ct_CC"; then
15173 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
15174 else
15175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15176 for as_dir in $PATH
15177 do
15178 IFS=$as_save_IFS
15179 case $as_dir in #(((
15180 '') as_dir=./ ;;
15181 */) ;;
15182 *) as_dir=$as_dir/ ;;
15183 esac
15184 for ac_exec_ext in '' $ac_executable_extensions; do
15185 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15186 ac_cv_prog_ac_ct_CC="clang"
15187 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15188 break 2
15189 fi
15190 done
15191 done
15192 IFS=$as_save_IFS
15193
15194 fi ;;
15195 esac
15196 fi
15197 ac_ct_CC=$ac_cv_prog_ac_ct_CC
15198 if test -n "$ac_ct_CC"; then
15199 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
15200 printf '%s\n' "$ac_ct_CC" >&6; }
15201 else
15202 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
15203 printf '%s\n' "no" >&6; }
15204 fi
15205
15206 if test "x$ac_ct_CC" = x; then
15207 CC=""
15208 else
15209 case $cross_compiling:$ac_tool_warned in
15210 yes:)
15211 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15212 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15213 ac_tool_warned=yes ;;
15214 esac
15215 CC=$ac_ct_CC
15216 fi
15217 else
15218 CC="$ac_cv_prog_CC"
15219 fi
15220
15221 fi
15222
15223
15224 test -z "$CC" && { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15225 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
15226 as_fn_error $? "no acceptable C compiler found in \$PATH
15227 See 'config.log' for more details" "$LINENO" 5; }
15228
15229 # Provide some information about the compiler.
15230 printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
15231 set X $ac_compile
15232 ac_compiler=$2
15233 for ac_option in --version -v -V -qversion -version; do
15234 { { ac_try="$ac_compiler $ac_option >&5"
15235 case "(($ac_try" in
15236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15237 *) ac_try_echo=$ac_try;;
15238 esac
15239 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15240 printf '%s\n' "$ac_try_echo"; } >&5
15241 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
15242 ac_status=$?
15243 if test -s conftest.err; then
15244 sed '10a\
15245 ... rest of stderr output deleted ...
15246 10q' conftest.err >conftest.er1
15247 cat conftest.er1 >&5
15248 fi
15249 rm -f conftest.er1 conftest.err
15250 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15251 test $ac_status = 0; }
15252 done
15253
15254 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
15255 printf %s "checking whether the compiler supports GNU C... " >&6; }
15256 if test ${ac_cv_c_compiler_gnu+y}
15257 then :
15258 printf %s "(cached) " >&6
15259 else case e in #(
15260 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15261 /* end confdefs.h. */
15262
15263 int
15264 main (void)
15265 {
15266 #ifndef __GNUC__
15267 choke me
15268 #endif
15269
15270 ;
15271 return 0;
15272 }
15273 _ACEOF
15274 if ac_fn_c_try_compile "$LINENO"
15275 then :
15276 ac_compiler_gnu=yes
15277 else case e in #(
15278 e) ac_compiler_gnu=no ;;
15279 esac
15280 fi
15281 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15282 ac_cv_c_compiler_gnu=$ac_compiler_gnu
15283 ;;
15284 esac
15285 fi
15286 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
15287 printf '%s\n' "$ac_cv_c_compiler_gnu" >&6; }
15288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15289
15290 if test $ac_compiler_gnu = yes; then
15291 GCC=yes
15292 else
15293 GCC=
15294 fi
15295 ac_test_CFLAGS=${CFLAGS+y}
15296 ac_save_CFLAGS=$CFLAGS
15297 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
15298 printf %s "checking whether $CC accepts -g... " >&6; }
15299 if test ${ac_cv_prog_cc_g+y}
15300 then :
15301 printf %s "(cached) " >&6
15302 else case e in #(
15303 e) ac_save_c_werror_flag=$ac_c_werror_flag
15304 ac_c_werror_flag=yes
15305 ac_cv_prog_cc_g=no
15306 CFLAGS="-g"
15307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15308 /* end confdefs.h. */
15309
15310 int
15311 main (void)
15312 {
15313
15314 ;
15315 return 0;
15316 }
15317 _ACEOF
15318 if ac_fn_c_try_compile "$LINENO"
15319 then :
15320 ac_cv_prog_cc_g=yes
15321 else case e in #(
15322 e) CFLAGS=""
15323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15324 /* end confdefs.h. */
15325
15326 int
15327 main (void)
15328 {
15329
15330 ;
15331 return 0;
15332 }
15333 _ACEOF
15334 if ac_fn_c_try_compile "$LINENO"
15335 then :
15336
15337 else case e in #(
15338 e) ac_c_werror_flag=$ac_save_c_werror_flag
15339 CFLAGS="-g"
15340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15341 /* end confdefs.h. */
15342
15343 int
15344 main (void)
15345 {
15346
15347 ;
15348 return 0;
15349 }
15350 _ACEOF
15351 if ac_fn_c_try_compile "$LINENO"
15352 then :
15353 ac_cv_prog_cc_g=yes
15354 fi
15355 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15356 esac
15357 fi
15358 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15359 esac
15360 fi
15361 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15362 ac_c_werror_flag=$ac_save_c_werror_flag ;;
15363 esac
15364 fi
15365 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
15366 printf '%s\n' "$ac_cv_prog_cc_g" >&6; }
15367 if test $ac_test_CFLAGS; then
15368 CFLAGS=$ac_save_CFLAGS
15369 elif test $ac_cv_prog_cc_g = yes; then
15370 if test "$GCC" = yes; then
15371 CFLAGS="-g -O2"
15372 else
15373 CFLAGS="-g"
15374 fi
15375 else
15376 if test "$GCC" = yes; then
15377 CFLAGS="-O2"
15378 else
15379 CFLAGS=
15380 fi
15381 fi
15382 ac_prog_cc_stdc=no
15383 if test x$ac_prog_cc_stdc = xno
15384 then :
15385 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C23 features" >&5
15386 printf %s "checking for $CC option to enable C23 features... " >&6; }
15387 if test ${ac_cv_prog_cc_c23+y}
15388 then :
15389 printf %s "(cached) " >&6
15390 else case e in #(
15391 e) ac_cv_prog_cc_c23=no
15392 ac_save_CC=$CC
15393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15394 /* end confdefs.h. */
15395 $ac_c_conftest_c23_program
15396 _ACEOF
15397 for ac_arg in '' -std=gnu23
15398 do
15399 CC="$ac_save_CC $ac_arg"
15400 if ac_fn_c_try_compile "$LINENO"
15401 then :
15402 ac_cv_prog_cc_c23=$ac_arg
15403 fi
15404 rm -f core conftest.err conftest.$ac_objext conftest.beam
15405 test "x$ac_cv_prog_cc_c23" != "xno" && break
15406 done
15407 rm -f conftest.$ac_ext
15408 CC=$ac_save_CC ;;
15409 esac
15410 fi
15411
15412 if test "x$ac_cv_prog_cc_c23" = xno
15413 then :
15414 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15415 printf '%s\n' "unsupported" >&6; }
15416 else case e in #(
15417 e) if test "x$ac_cv_prog_cc_c23" = x
15418 then :
15419 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15420 printf '%s\n' "none needed" >&6; }
15421 else case e in #(
15422 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c23" >&5
15423 printf '%s\n' "$ac_cv_prog_cc_c23" >&6; }
15424 CC="$CC $ac_cv_prog_cc_c23" ;;
15425 esac
15426 fi
15427 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c23
15428 ac_prog_cc_stdc=c23 ;;
15429 esac
15430 fi
15431 fi
15432 if test x$ac_prog_cc_stdc = xno
15433 then :
15434 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
15435 printf %s "checking for $CC option to enable C11 features... " >&6; }
15436 if test ${ac_cv_prog_cc_c11+y}
15437 then :
15438 printf %s "(cached) " >&6
15439 else case e in #(
15440 e) ac_cv_prog_cc_c11=no
15441 ac_save_CC=$CC
15442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15443 /* end confdefs.h. */
15444 $ac_c_conftest_c11_program
15445 _ACEOF
15446 for ac_arg in '' -std=gnu11 -std:c11
15447 do
15448 CC="$ac_save_CC $ac_arg"
15449 if ac_fn_c_try_compile "$LINENO"
15450 then :
15451 ac_cv_prog_cc_c11=$ac_arg
15452 fi
15453 rm -f core conftest.err conftest.$ac_objext conftest.beam
15454 test "x$ac_cv_prog_cc_c11" != "xno" && break
15455 done
15456 rm -f conftest.$ac_ext
15457 CC=$ac_save_CC ;;
15458 esac
15459 fi
15460
15461 if test "x$ac_cv_prog_cc_c11" = xno
15462 then :
15463 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15464 printf '%s\n' "unsupported" >&6; }
15465 else case e in #(
15466 e) if test "x$ac_cv_prog_cc_c11" = x
15467 then :
15468 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15469 printf '%s\n' "none needed" >&6; }
15470 else case e in #(
15471 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
15472 printf '%s\n' "$ac_cv_prog_cc_c11" >&6; }
15473 CC="$CC $ac_cv_prog_cc_c11" ;;
15474 esac
15475 fi
15476 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
15477 ac_prog_cc_stdc=c11 ;;
15478 esac
15479 fi
15480 fi
15481 if test x$ac_prog_cc_stdc = xno
15482 then :
15483 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
15484 printf %s "checking for $CC option to enable C99 features... " >&6; }
15485 if test ${ac_cv_prog_cc_c99+y}
15486 then :
15487 printf %s "(cached) " >&6
15488 else case e in #(
15489 e) ac_cv_prog_cc_c99=no
15490 ac_save_CC=$CC
15491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15492 /* end confdefs.h. */
15493 $ac_c_conftest_c99_program
15494 _ACEOF
15495 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
15496 do
15497 CC="$ac_save_CC $ac_arg"
15498 if ac_fn_c_try_compile "$LINENO"
15499 then :
15500 ac_cv_prog_cc_c99=$ac_arg
15501 fi
15502 rm -f core conftest.err conftest.$ac_objext conftest.beam
15503 test "x$ac_cv_prog_cc_c99" != "xno" && break
15504 done
15505 rm -f conftest.$ac_ext
15506 CC=$ac_save_CC ;;
15507 esac
15508 fi
15509
15510 if test "x$ac_cv_prog_cc_c99" = xno
15511 then :
15512 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15513 printf '%s\n' "unsupported" >&6; }
15514 else case e in #(
15515 e) if test "x$ac_cv_prog_cc_c99" = x
15516 then :
15517 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15518 printf '%s\n' "none needed" >&6; }
15519 else case e in #(
15520 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
15521 printf '%s\n' "$ac_cv_prog_cc_c99" >&6; }
15522 CC="$CC $ac_cv_prog_cc_c99" ;;
15523 esac
15524 fi
15525 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
15526 ac_prog_cc_stdc=c99 ;;
15527 esac
15528 fi
15529 fi
15530 if test x$ac_prog_cc_stdc = xno
15531 then :
15532 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
15533 printf %s "checking for $CC option to enable C89 features... " >&6; }
15534 if test ${ac_cv_prog_cc_c89+y}
15535 then :
15536 printf %s "(cached) " >&6
15537 else case e in #(
15538 e) ac_cv_prog_cc_c89=no
15539 ac_save_CC=$CC
15540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15541 /* end confdefs.h. */
15542 $ac_c_conftest_c89_program
15543 _ACEOF
15544 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
15545 do
15546 CC="$ac_save_CC $ac_arg"
15547 if ac_fn_c_try_compile "$LINENO"
15548 then :
15549 ac_cv_prog_cc_c89=$ac_arg
15550 fi
15551 rm -f core conftest.err conftest.$ac_objext conftest.beam
15552 test "x$ac_cv_prog_cc_c89" != "xno" && break
15553 done
15554 rm -f conftest.$ac_ext
15555 CC=$ac_save_CC ;;
15556 esac
15557 fi
15558
15559 if test "x$ac_cv_prog_cc_c89" = xno
15560 then :
15561 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15562 printf '%s\n' "unsupported" >&6; }
15563 else case e in #(
15564 e) if test "x$ac_cv_prog_cc_c89" = x
15565 then :
15566 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15567 printf '%s\n' "none needed" >&6; }
15568 else case e in #(
15569 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
15570 printf '%s\n' "$ac_cv_prog_cc_c89" >&6; }
15571 CC="$CC $ac_cv_prog_cc_c89" ;;
15572 esac
15573 fi
15574 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
15575 ac_prog_cc_stdc=c89 ;;
15576 esac
15577 fi
15578 fi
15579
15580 ac_ext=c
15581 ac_cpp='$CPP $CPPFLAGS'
15582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15585
15586
15587 ac_ext=c
15588 ac_cpp='$CPP $CPPFLAGS'
15589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15592 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
15593 printf %s "checking whether $CC understands -c and -o together... " >&6; }
15594 if test ${am_cv_prog_cc_c_o+y}
15595 then :
15596 printf %s "(cached) " >&6
15597 else case e in #(
15598 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15599 /* end confdefs.h. */
15600
15601 int
15602 main (void)
15603 {
15604
15605 ;
15606 return 0;
15607 }
15608 _ACEOF
15609 # Make sure it works both with $CC and with simple cc.
15610 # Following AC_PROG_CC_C_O, we do the test twice because some
15611 # compilers refuse to overwrite an existing .o file with -o,
15612 # though they will create one.
15613 am_cv_prog_cc_c_o=yes
15614 for am_i in 1 2; do
15615 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
15616 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
15617 ac_status=$?
15618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619 (exit $ac_status); } \
15620 && test -f conftest2.$ac_objext; then
15621 : OK
15622 else
15623 am_cv_prog_cc_c_o=no
15624 break
15625 fi
15626 done
15627 # aligned with autoconf, so not including core; see bug#72225.
15628 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
15629 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
15630 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
15631 unset am_i ;;
15632 esac
15633 fi
15634 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
15635 printf '%s\n' "$am_cv_prog_cc_c_o" >&6; }
15636 if test "$am_cv_prog_cc_c_o" != yes; then
15637 # Losing compiler, so override with the script.
15638 # FIXME: It is wrong to rewrite CC.
15639 # But if we don't then we get into trouble of one sort or another.
15640 # A longer-term fix would be to have automake use am__CC in this case,
15641 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
15642 CC="$am_aux_dir/compile $CC"
15643 fi
15644 ac_ext=c
15645 ac_cpp='$CPP $CPPFLAGS'
15646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15649
15650
15651
15652 if test "x${GCC}" = "xyes"; then
15653 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking compiler" >&5
15654 printf %s "checking compiler... " >&6; }
15655 COMPILER_TYPE="`${CC} --version | head -1 | sed -e '1,$s/version.*//g'`"
15656 case "${COMPILER_TYPE}" in
15657 *gcc*)
15658 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: gcc" >&5
15659 printf '%s\n' "gcc" >&6; }
15660 HAVE_GCC=yes
15661 HAVE_CLANG=no
15662 ;;
15663 *clang*)
15664 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: clang" >&5
15665 printf '%s\n' "clang" >&6; }
15666 HAVE_CLANG=yes
15667 HAVE_GCC=no
15668 ;;
15669 *)
15670 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
15671 printf '%s\n' "unknown" >&6; }
15672 HAVE_GCC=no
15673 HAVE_CLANG=no
15674 ;;
15675 esac
15676
15677 if test "${HAVE_GCC}" = "yes"; then
15678 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking version of GCC" >&5
15679 printf %s "checking version of GCC... " >&6; }
15680 GCC_version="`${CC} --version | sed -n '1s/^[^ ]* (.*) //;s/ .*$//;1p'`"
15681 case "${GCC_version}" in
15682 [0-9]*[0-9]*)
15683 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: ${GCC_version}" >&5
15684 printf '%s\n' "${GCC_version}" >&6; }
15685 ;;
15686 *)
15687 # probably not gcc...
15688 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unknown compiler version pattern" >&5
15689 printf '%s\n' "unknown compiler version pattern" >&6; }
15690 HAVE_GCC=no
15691 ;;
15692 esac
15693 fi
15694
15695 if test "${HAVE_CLANG}" = "yes"; then
15696 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking version of clang" >&5
15697 printf %s "checking version of clang... " >&6; }
15698 CLANG_version="`${CC} --version | sed -n 's/.*clang version //;s/ .*$//;1p'`"
15699 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: ${CLANG_version}" >&5
15700 printf '%s\n' "${CLANG_version}" >&6; }
15701 fi
15702 fi
15703
15704
15705
15706 ac_fn_c_check_header_compile "$LINENO" "dmalloc.h" "ac_cv_header_dmalloc_h" "$ac_includes_default"
15707 if test "x$ac_cv_header_dmalloc_h" = xyes
15708 then :
15709
15710 fi
15711
15712 if test "${ac_cv_header_dmalloc_h}" = "yes"; then
15713 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
15714 printf %s "checking if malloc debugging is wanted... " >&6; }
15715
15716 # Check whether --with-dmalloc was given.
15717 if test ${with_dmalloc+y}
15718 then :
15719 withval=$with_dmalloc; if test "$withval" = yes; then
15720 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15721 printf '%s\n' "yes" >&6; }
15722
15723 printf '%s\n' "#define WITH_DMALLOC 1" >>confdefs.h
15724
15725 LIBS="$LIBS -ldmalloc"
15726 LDFLAGS="$LDFLAGS -g"
15727 else
15728 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
15729 printf '%s\n' "no" >&6; }
15730 fi
15731 else case e in #(
15732 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
15733 printf '%s\n' "no" >&6; } ;;
15734 esac
15735 fi
15736
15737
15738 fi
15739
15740 ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
15741 if test "x$ac_cv_header_errno_h" = xyes
15742 then :
15743 printf '%s\n' "#define HAVE_ERRNO_H 1" >>confdefs.h
15744
15745 fi
15746 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
15747 if test "x$ac_cv_header_fcntl_h" = xyes
15748 then :
15749 printf '%s\n' "#define HAVE_FCNTL_H 1" >>confdefs.h
15750
15751 fi
15752 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
15753 if test "x$ac_cv_header_limits_h" = xyes
15754 then :
15755 printf '%s\n' "#define HAVE_LIMITS_H 1" >>confdefs.h
15756
15757 fi
15758 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
15759 if test "x$ac_cv_header_stdint_h" = xyes
15760 then :
15761 printf '%s\n' "#define HAVE_STDINT_H 1" >>confdefs.h
15762
15763 fi
15764 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
15765 if test "x$ac_cv_header_string_h" = xyes
15766 then :
15767 printf '%s\n' "#define HAVE_STRING_H 1" >>confdefs.h
15768
15769 fi
15770 ac_fn_c_check_header_compile "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
15771 if test "x$ac_cv_header_sys_soundcard_h" = xyes
15772 then :
15773 printf '%s\n' "#define HAVE_SYS_SOUNDCARD_H 1" >>confdefs.h
15774
15775 fi
15776 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
15777 if test "x$ac_cv_header_sys_time_h" = xyes
15778 then :
15779 printf '%s\n' "#define HAVE_SYS_TIME_H 1" >>confdefs.h
15780
15781 fi
15782 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
15783 if test "x$ac_cv_header_unistd_h" = xyes
15784 then :
15785 printf '%s\n' "#define HAVE_UNISTD_H 1" >>confdefs.h
15786
15787 fi
15788 ac_fn_c_check_header_compile "$LINENO" "linux/soundcard.h" "ac_cv_header_linux_soundcard_h" "$ac_includes_default"
15789 if test "x$ac_cv_header_linux_soundcard_h" = xyes
15790 then :
15791 printf '%s\n' "#define HAVE_LINUX_SOUNDCARD_H 1" >>confdefs.h
15792
15793 fi
15794
15795
15796 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking working SSE intrinsics" >&5
15797 printf %s "checking working SSE intrinsics... " >&6; }
15798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15799 /* end confdefs.h. */
15800 #include <xmmintrin.h>
15801 int
15802 main (void)
15803 {
15804 _mm_sfence();
15805 ;
15806 return 0;
15807 }
15808 _ACEOF
15809 if ac_fn_c_try_compile "$LINENO"
15810 then :
15811
15812 printf '%s\n' "#define HAVE_XMMINTRIN_H 1" >>confdefs.h
15813
15814 ac_cv_header_xmmintrin_h=yes
15815 else case e in #(
15816 e) ac_cv_header_xmmintrin_h=no ;;
15817 esac
15818 fi
15819 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15820 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_header_xmmintrin_h}" >&5
15821 printf '%s\n' "${ac_cv_header_xmmintrin_h}" >&6; }
15822
15823 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15824 printf %s "checking for an ANSI C-conforming const... " >&6; }
15825 if test ${ac_cv_c_const+y}
15826 then :
15827 printf %s "(cached) " >&6
15828 else case e in #(
15829 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15830 /* end confdefs.h. */
15831
15832 int
15833 main (void)
15834 {
15835
15836 #ifndef __cplusplus
15837 /* Ultrix mips cc rejects this sort of thing. */
15838 typedef int charset[2];
15839 const charset cs = { 0, 0 };
15840 /* SunOS 4.1.1 cc rejects this. */
15841 char const *const *pcpcc;
15842 char **ppc;
15843 /* NEC SVR4.0.2 mips cc rejects this. */
15844 struct point {int x, y;};
15845 static struct point const zero = {0,0};
15846 /* IBM XL C 1.02.0.0 rejects this.
15847 It does not let you subtract one const X* pointer from another in
15848 an arm of an if-expression whose if-part is not a constant
15849 expression */
15850 const char *g = "string";
15851 pcpcc = &g + (g ? g-g : 0);
15852 /* HPUX 7.0 cc rejects these. */
15853 ++pcpcc;
15854 ppc = (char**) pcpcc;
15855 pcpcc = (char const *const *) ppc;
15856 { /* SCO 3.2v4 cc rejects this sort of thing. */
15857 char tx;
15858 char *t = &tx;
15859 char const *s = 0 ? (char *) 0 : (char const *) 0;
15860
15861 *t++ = 0;
15862 if (s) return 0;
15863 }
15864 { /* Derived from code rejected by Sun C 1.0 and similar vintage. */
15865 int x[] = {25, 17};
15866 typedef int const *iptr;
15867 iptr foo = &x[0];
15868 ++foo;
15869 if (!*foo) return 0;
15870 }
15871 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
15872 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15873 struct s { int j; const int *ap[3]; } bx;
15874 struct s *b = &bx; b->j = 5;
15875 }
15876 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15877 const int foo = 10;
15878 if (!foo) return 0;
15879 }
15880 return !cs[0] && !zero.x;
15881 #endif
15882
15883 ;
15884 return 0;
15885 }
15886 _ACEOF
15887 if ac_fn_c_try_compile "$LINENO"
15888 then :
15889 ac_cv_c_const=yes
15890 else case e in #(
15891 e) ac_cv_c_const=no ;;
15892 esac
15893 fi
15894 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15895 esac
15896 fi
15897 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15898 printf '%s\n' "$ac_cv_c_const" >&6; }
15899 if test $ac_cv_c_const = no; then
15900
15901 printf '%s\n' "#define const /**/" >>confdefs.h
15902
15903 fi
15904
15905 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15906 printf %s "checking for inline... " >&6; }
15907 if test ${ac_cv_c_inline+y}
15908 then :
15909 printf %s "(cached) " >&6
15910 else case e in #(
15911 e) ac_cv_c_inline=no
15912 for ac_kw in inline __inline__ __inline; do
15913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15914 /* end confdefs.h. */
15915 #ifndef __cplusplus
15916 typedef int foo_t;
15917 static $ac_kw foo_t static_foo (void) {return 0; }
15918 $ac_kw foo_t foo (void) {return 0; }
15919 #endif
15920
15921 _ACEOF
15922 if ac_fn_c_try_compile "$LINENO"
15923 then :
15924 ac_cv_c_inline=$ac_kw
15925 fi
15926 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15927 test "$ac_cv_c_inline" != no && break
15928 done
15929 ;;
15930 esac
15931 fi
15932 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15933 printf '%s\n' "$ac_cv_c_inline" >&6; }
15934
15935 case $ac_cv_c_inline in
15936 inline | yes) ;;
15937 *)
15938 case $ac_cv_c_inline in
15939 no) ac_val=;;
15940 *) ac_val=$ac_cv_c_inline;;
15941 esac
15942 cat >>confdefs.h <<_ACEOF
15943 #ifndef __cplusplus
15944 #define inline $ac_val
15945 #endif
15946 _ACEOF
15947 ;;
15948 esac
15949
15950 if test ${cross_compiling} = "no"; then
15951 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15952 printf %s "checking whether byte ordering is bigendian... " >&6; }
15953 if test ${ac_cv_c_bigendian+y}
15954 then :
15955 printf %s "(cached) " >&6
15956 else case e in #(
15957 e) ac_cv_c_bigendian=unknown
15958 # See if we're dealing with a universal compiler.
15959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15960 /* end confdefs.h. */
15961 #ifndef __APPLE_CC__
15962 not a universal capable compiler
15963 #endif
15964 typedef int dummy;
15965
15966 _ACEOF
15967 if ac_fn_c_try_compile "$LINENO"
15968 then :
15969
15970 # Check for potential -arch flags. It is not universal unless
15971 # there are at least two -arch flags with different values.
15972 ac_arch=
15973 ac_prev=
15974 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15975 if test -n "$ac_prev"; then
15976 case $ac_word in
15977 i?86 | x86_64 | ppc | ppc64)
15978 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15979 ac_arch=$ac_word
15980 else
15981 ac_cv_c_bigendian=universal
15982 break
15983 fi
15984 ;;
15985 esac
15986 ac_prev=
15987 elif test "x$ac_word" = "x-arch"; then
15988 ac_prev=arch
15989 fi
15990 done
15991 fi
15992 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15993 if test $ac_cv_c_bigendian = unknown; then
15994 # See if sys/param.h defines the BYTE_ORDER macro.
15995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15996 /* end confdefs.h. */
15997 #include <sys/types.h>
15998 #include <sys/param.h>
15999
16000 int
16001 main (void)
16002 {
16003 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\
16004 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\
16005 && LITTLE_ENDIAN)
16006 bogus endian macros
16007 #endif
16008
16009 ;
16010 return 0;
16011 }
16012 _ACEOF
16013 if ac_fn_c_try_compile "$LINENO"
16014 then :
16015 # It does; now see whether it defined to BIG_ENDIAN or not.
16016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16017 /* end confdefs.h. */
16018 #include <sys/types.h>
16019 #include <sys/param.h>
16020
16021 int
16022 main (void)
16023 {
16024 #if BYTE_ORDER != BIG_ENDIAN
16025 not big endian
16026 #endif
16027
16028 ;
16029 return 0;
16030 }
16031 _ACEOF
16032 if ac_fn_c_try_compile "$LINENO"
16033 then :
16034 ac_cv_c_bigendian=yes
16035 else case e in #(
16036 e) ac_cv_c_bigendian=no ;;
16037 esac
16038 fi
16039 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16040 fi
16041 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16042 fi
16043 if test $ac_cv_c_bigendian = unknown; then
16044 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16046 /* end confdefs.h. */
16047 #include <limits.h>
16048
16049 int
16050 main (void)
16051 {
16052 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16053 bogus endian macros
16054 #endif
16055
16056 ;
16057 return 0;
16058 }
16059 _ACEOF
16060 if ac_fn_c_try_compile "$LINENO"
16061 then :
16062 # It does; now see whether it defined to _BIG_ENDIAN or not.
16063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16064 /* end confdefs.h. */
16065 #include <limits.h>
16066
16067 int
16068 main (void)
16069 {
16070 #ifndef _BIG_ENDIAN
16071 not big endian
16072 #endif
16073
16074 ;
16075 return 0;
16076 }
16077 _ACEOF
16078 if ac_fn_c_try_compile "$LINENO"
16079 then :
16080 ac_cv_c_bigendian=yes
16081 else case e in #(
16082 e) ac_cv_c_bigendian=no ;;
16083 esac
16084 fi
16085 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16086 fi
16087 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16088 fi
16089 if test $ac_cv_c_bigendian = unknown; then
16090 # Compile a test program.
16091 if test "$cross_compiling" = yes
16092 then :
16093 # Try to guess by grepping values from an object file.
16094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16095 /* end confdefs.h. */
16096 unsigned short int ascii_mm[] =
16097 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16098 unsigned short int ascii_ii[] =
16099 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16100 int use_ascii (int i) {
16101 return ascii_mm[i] + ascii_ii[i];
16102 }
16103 unsigned short int ebcdic_ii[] =
16104 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16105 unsigned short int ebcdic_mm[] =
16106 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16107 int use_ebcdic (int i) {
16108 return ebcdic_mm[i] + ebcdic_ii[i];
16109 }
16110 int
16111 main (int argc, char **argv)
16112 {
16113 /* Intimidate the compiler so that it does not
16114 optimize the arrays away. */
16115 char *p = argv[0];
16116 ascii_mm[1] = *p++; ebcdic_mm[1] = *p++;
16117 ascii_ii[1] = *p++; ebcdic_ii[1] = *p++;
16118 return use_ascii (argc) == use_ebcdic (*p);
16119 }
16120 _ACEOF
16121 if ac_fn_c_try_link "$LINENO"
16122 then :
16123 if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then
16124 ac_cv_c_bigendian=yes
16125 fi
16126 if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then
16127 if test "$ac_cv_c_bigendian" = unknown; then
16128 ac_cv_c_bigendian=no
16129 else
16130 # finding both strings is unlikely to happen, but who knows?
16131 ac_cv_c_bigendian=unknown
16132 fi
16133 fi
16134 fi
16135 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16136 conftest$ac_exeext conftest.$ac_ext
16137 else case e in #(
16138 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16139 /* end confdefs.h. */
16140 $ac_includes_default
16141 int
16142 main (void)
16143 {
16144
16145 /* Are we little or big endian? From Harbison&Steele. */
16146 union
16147 {
16148 long int l;
16149 char c[sizeof (long int)];
16150 } u;
16151 u.l = 1;
16152 return u.c[sizeof (long int) - 1] == 1;
16153
16154 ;
16155 return 0;
16156 }
16157 _ACEOF
16158 if ac_fn_c_try_run "$LINENO"
16159 then :
16160 ac_cv_c_bigendian=no
16161 else case e in #(
16162 e) ac_cv_c_bigendian=yes ;;
16163 esac
16164 fi
16165 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16166 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16167 esac
16168 fi
16169
16170 fi ;;
16171 esac
16172 fi
16173 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16174 printf '%s\n' "$ac_cv_c_bigendian" >&6; }
16175 case $ac_cv_c_bigendian in #(
16176 yes)
16177 printf '%s\n' "#define WORDS_BIGENDIAN 1" >>confdefs.h
16178 ;; #(
16179 no)
16180 ;; #(
16181 universal)
16182
16183 printf '%s\n' "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16184
16185 ;; #(
16186 *)
16187 as_fn_error $? "unknown endianness
16188 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16189 esac
16190
16191 fi
16192
16193 # Check whether --enable-largefile was given.
16194 if test ${enable_largefile+y}
16195 then :
16196 enableval=$enable_largefile;
16197 fi
16198 if test "$enable_largefile,$enable_year2038" != no,no
16199 then :
16200 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to support large files" >&5
16201 printf %s "checking for $CC option to support large files... " >&6; }
16202 if test ${ac_cv_sys_largefile_opts+y}
16203 then :
16204 printf %s "(cached) " >&6
16205 else case e in #(
16206 e) ac_save_CPPFLAGS=$CPPFLAGS
16207 ac_opt_found=no
16208 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1"; do
16209 if test x"$ac_opt" != x"none needed"
16210 then :
16211 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
16212 fi
16213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16214 /* end confdefs.h. */
16215 #include <sys/types.h>
16216 #ifndef FTYPE
16217 # define FTYPE off_t
16218 #endif
16219 /* Check that FTYPE can represent 2**63 - 1 correctly.
16220 We can't simply define LARGE_FTYPE to be 9223372036854775807,
16221 since some C++ compilers masquerading as C compilers
16222 incorrectly reject 9223372036854775807. */
16223 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
16224 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
16225 && LARGE_FTYPE % 2147483647 == 1)
16226 ? 1 : -1];
16227 int
16228 main (void)
16229 {
16230
16231 ;
16232 return 0;
16233 }
16234 _ACEOF
16235 if ac_fn_c_try_compile "$LINENO"
16236 then :
16237 if test x"$ac_opt" = x"none needed"
16238 then :
16239 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
16240 CPPFLAGS="$CPPFLAGS -DFTYPE=ino_t"
16241 if ac_fn_c_try_compile "$LINENO"
16242 then :
16243
16244 else case e in #(
16245 e) CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64"
16246 if ac_fn_c_try_compile "$LINENO"
16247 then :
16248 ac_opt='-D_FILE_OFFSET_BITS=64'
16249 fi
16250 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
16251 esac
16252 fi
16253 rm -f core conftest.err conftest.$ac_objext conftest.beam
16254 fi
16255 ac_cv_sys_largefile_opts=$ac_opt
16256 ac_opt_found=yes
16257 fi
16258 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16259 test $ac_opt_found = no || break
16260 done
16261 CPPFLAGS=$ac_save_CPPFLAGS
16262
16263 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
16264 esac
16265 fi
16266 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
16267 printf '%s\n' "$ac_cv_sys_largefile_opts" >&6; }
16268
16269 ac_have_largefile=yes
16270 case $ac_cv_sys_largefile_opts in #(
16271 "none needed") :
16272 ;; #(
16273 "supported through gnulib") :
16274 ;; #(
16275 "support not detected") :
16276 ac_have_largefile=no ;; #(
16277 "-D_FILE_OFFSET_BITS=64") :
16278
16279 printf '%s\n' "#define _FILE_OFFSET_BITS 64" >>confdefs.h
16280 ;; #(
16281 "-D_LARGE_FILES=1") :
16282
16283 printf '%s\n' "#define _LARGE_FILES 1" >>confdefs.h
16284 ;; #(
16285 *) :
16286 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
16287 esac
16288
16289 if test "$enable_year2038" != no
16290 then :
16291 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to support timestamps after 2038" >&5
16292 printf %s "checking for $CC option to support timestamps after 2038... " >&6; }
16293 if test ${ac_cv_sys_year2038_opts+y}
16294 then :
16295 printf %s "(cached) " >&6
16296 else case e in #(
16297 e) ac_save_CPPFLAGS="$CPPFLAGS"
16298 ac_opt_found=no
16299 for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do
16300 if test x"$ac_opt" != x"none needed"
16301 then :
16302 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
16303 fi
16304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16305 /* end confdefs.h. */
16306
16307 #include <time.h>
16308 /* Check that time_t can represent 2**32 - 1 correctly. */
16309 #define LARGE_TIME_T \\
16310 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
16311 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
16312 && LARGE_TIME_T % 65537 == 0)
16313 ? 1 : -1];
16314
16315 int
16316 main (void)
16317 {
16318
16319 ;
16320 return 0;
16321 }
16322 _ACEOF
16323 if ac_fn_c_try_compile "$LINENO"
16324 then :
16325 ac_cv_sys_year2038_opts="$ac_opt"
16326 ac_opt_found=yes
16327 fi
16328 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16329 test $ac_opt_found = no || break
16330 done
16331 CPPFLAGS="$ac_save_CPPFLAGS"
16332 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
16333 esac
16334 fi
16335 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
16336 printf '%s\n' "$ac_cv_sys_year2038_opts" >&6; }
16337
16338 ac_have_year2038=yes
16339 case $ac_cv_sys_year2038_opts in #(
16340 "none needed") :
16341 ;; #(
16342 "support not detected") :
16343 ac_have_year2038=no ;; #(
16344 "-D_TIME_BITS=64") :
16345
16346 printf '%s\n' "#define _TIME_BITS 64" >>confdefs.h
16347 ;; #(
16348 "-D__MINGW_USE_VC2005_COMPAT") :
16349
16350 printf '%s\n' "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
16351 ;; #(
16352 "-U_USE_32_BIT_TIME_T"*) :
16353 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16354 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
16355 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
16356 will stop working after mid-January 2038. Remove
16357 _USE_32BIT_TIME_T from the compiler flags.
16358 See 'config.log' for more details" "$LINENO" 5; } ;; #(
16359 *) :
16360 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
16361 esac
16362
16363 fi
16364
16365 fi
16366
16367 # The cast to long int works around a bug in the HP C Compiler
16368 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16369 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
16370 # This bug is HP SR number 8606223364.
16371 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16372 printf %s "checking size of short... " >&6; }
16373 if test ${ac_cv_sizeof_short+y}
16374 then :
16375 printf %s "(cached) " >&6
16376 else case e in #(
16377 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"
16378 then :
16379
16380 else case e in #(
16381 e) ac_cv_sizeof_short=0 ;;
16382 esac
16383 fi
16384 ;;
16385 esac
16386 fi
16387 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16388 printf '%s\n' "$ac_cv_sizeof_short" >&6; }
16389
16390
16391
16392 printf '%s\n' "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
16393
16394
16395 # The cast to long int works around a bug in the HP C Compiler
16396 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16397 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
16398 # This bug is HP SR number 8606223364.
16399 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
16400 printf %s "checking size of unsigned short... " >&6; }
16401 if test ${ac_cv_sizeof_unsigned_short+y}
16402 then :
16403 printf %s "(cached) " >&6
16404 else case e in #(
16405 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"
16406 then :
16407
16408 else case e in #(
16409 e) ac_cv_sizeof_unsigned_short=0 ;;
16410 esac
16411 fi
16412 ;;
16413 esac
16414 fi
16415 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
16416 printf '%s\n' "$ac_cv_sizeof_unsigned_short" >&6; }
16417
16418
16419
16420 printf '%s\n' "#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short" >>confdefs.h
16421
16422
16423 # The cast to long int works around a bug in the HP C Compiler
16424 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16425 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
16426 # This bug is HP SR number 8606223364.
16427 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16428 printf %s "checking size of int... " >&6; }
16429 if test ${ac_cv_sizeof_int+y}
16430 then :
16431 printf %s "(cached) " >&6
16432 else case e in #(
16433 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"
16434 then :
16435
16436 else case e in #(
16437 e) ac_cv_sizeof_int=0 ;;
16438 esac
16439 fi
16440 ;;
16441 esac
16442 fi
16443 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16444 printf '%s\n' "$ac_cv_sizeof_int" >&6; }
16445
16446
16447
16448 printf '%s\n' "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
16449
16450
16451 # The cast to long int works around a bug in the HP C Compiler
16452 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16453 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
16454 # This bug is HP SR number 8606223364.
16455 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
16456 printf %s "checking size of unsigned int... " >&6; }
16457 if test ${ac_cv_sizeof_unsigned_int+y}
16458 then :
16459 printf %s "(cached) " >&6
16460 else case e in #(
16461 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"
16462 then :
16463
16464 else case e in #(
16465 e) ac_cv_sizeof_unsigned_int=0 ;;
16466 esac
16467 fi
16468 ;;
16469 esac
16470 fi
16471 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
16472 printf '%s\n' "$ac_cv_sizeof_unsigned_int" >&6; }
16473
16474
16475
16476 printf '%s\n' "#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int" >>confdefs.h
16477
16478
16479 # The cast to long int works around a bug in the HP C Compiler
16480 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16481 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
16482 # This bug is HP SR number 8606223364.
16483 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16484 printf %s "checking size of long... " >&6; }
16485 if test ${ac_cv_sizeof_long+y}
16486 then :
16487 printf %s "(cached) " >&6
16488 else case e in #(
16489 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
16490 then :
16491
16492 else case e in #(
16493 e) ac_cv_sizeof_long=0 ;;
16494 esac
16495 fi
16496 ;;
16497 esac
16498 fi
16499 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16500 printf '%s\n' "$ac_cv_sizeof_long" >&6; }
16501
16502
16503
16504 printf '%s\n' "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
16505
16506
16507 # The cast to long int works around a bug in the HP C Compiler
16508 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16509 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
16510 # This bug is HP SR number 8606223364.
16511 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
16512 printf %s "checking size of unsigned long... " >&6; }
16513 if test ${ac_cv_sizeof_unsigned_long+y}
16514 then :
16515 printf %s "(cached) " >&6
16516 else case e in #(
16517 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"
16518 then :
16519
16520 else case e in #(
16521 e) ac_cv_sizeof_unsigned_long=0 ;;
16522 esac
16523 fi
16524 ;;
16525 esac
16526 fi
16527 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
16528 printf '%s\n' "$ac_cv_sizeof_unsigned_long" >&6; }
16529
16530
16531
16532 printf '%s\n' "#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long" >>confdefs.h
16533
16534
16535 # The cast to long int works around a bug in the HP C Compiler
16536 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16537 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
16538 # This bug is HP SR number 8606223364.
16539 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
16540 printf %s "checking size of long long... " >&6; }
16541 if test ${ac_cv_sizeof_long_long+y}
16542 then :
16543 printf %s "(cached) " >&6
16544 else case e in #(
16545 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"
16546 then :
16547
16548 else case e in #(
16549 e) ac_cv_sizeof_long_long=0 ;;
16550 esac
16551 fi
16552 ;;
16553 esac
16554 fi
16555 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
16556 printf '%s\n' "$ac_cv_sizeof_long_long" >&6; }
16557
16558
16559
16560 printf '%s\n' "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h
16561
16562
16563 # The cast to long int works around a bug in the HP C Compiler
16564 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16565 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
16566 # This bug is HP SR number 8606223364.
16567 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
16568 printf %s "checking size of unsigned long long... " >&6; }
16569 if test ${ac_cv_sizeof_unsigned_long_long+y}
16570 then :
16571 printf %s "(cached) " >&6
16572 else case e in #(
16573 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"
16574 then :
16575
16576 else case e in #(
16577 e) ac_cv_sizeof_unsigned_long_long=0 ;;
16578 esac
16579 fi
16580 ;;
16581 esac
16582 fi
16583 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
16584 printf '%s\n' "$ac_cv_sizeof_unsigned_long_long" >&6; }
16585
16586
16587
16588 printf '%s\n' "#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long" >>confdefs.h
16589
16590
16591 # The cast to long int works around a bug in the HP C Compiler
16592 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16593 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
16594 # This bug is HP SR number 8606223364.
16595 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
16596 printf %s "checking size of float... " >&6; }
16597 if test ${ac_cv_sizeof_float+y}
16598 then :
16599 printf %s "(cached) " >&6
16600 else case e in #(
16601 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"
16602 then :
16603
16604 else case e in #(
16605 e) ac_cv_sizeof_float=0 ;;
16606 esac
16607 fi
16608 ;;
16609 esac
16610 fi
16611 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
16612 printf '%s\n' "$ac_cv_sizeof_float" >&6; }
16613
16614
16615
16616 printf '%s\n' "#define SIZEOF_FLOAT $ac_cv_sizeof_float" >>confdefs.h
16617
16618
16619 # The cast to long int works around a bug in the HP C Compiler
16620 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16621 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
16622 # This bug is HP SR number 8606223364.
16623 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
16624 printf %s "checking size of double... " >&6; }
16625 if test ${ac_cv_sizeof_double+y}
16626 then :
16627 printf %s "(cached) " >&6
16628 else case e in #(
16629 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"
16630 then :
16631
16632 else case e in #(
16633 e) ac_cv_sizeof_double=0 ;;
16634 esac
16635 fi
16636 ;;
16637 esac
16638 fi
16639 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
16640 printf '%s\n' "$ac_cv_sizeof_double" >&6; }
16641
16642
16643
16644 printf '%s\n' "#define SIZEOF_DOUBLE $ac_cv_sizeof_double" >>confdefs.h
16645
16646
16647
16648 if test $ac_cv_sizeof_short -eq 0 \
16649 -o $ac_cv_sizeof_unsigned_short -eq 0 \
16650 -o $ac_cv_sizeof_int -eq 0 \
16651 -o $ac_cv_sizeof_unsigned_int -eq 0 \
16652 -o $ac_cv_sizeof_long -eq 0 \
16653 -o $ac_cv_sizeof_unsigned_long -eq 0 \
16654 -o $ac_cv_sizeof_long_long -eq 0 \
16655 -o $ac_cv_sizeof_unsigned_long_long -eq 0 \
16656 -o $ac_cv_sizeof_float -eq 0 \
16657 -o $ac_cv_sizeof_double -eq 0; then
16658 echo '*** I have a problem determining the size of some variable types. Either'
16659 echo '*** you compiler is broken, or your system+compiler combination is not'
16660 echo '*** supportet by the "autoconf" framework we use to generate this'
16661 echo '*** configure script.'
16662 exit 1
16663 fi
16664
16665
16666 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
16667 printf %s "checking for long double with more range or precision than double... " >&6; }
16668 if test ${ac_cv_type_long_double_wider+y}
16669 then :
16670 printf %s "(cached) " >&6
16671 else case e in #(
16672 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16673 /* end confdefs.h. */
16674 #include <float.h>
16675 long double const a[] =
16676 {
16677 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
16678 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
16679 };
16680 long double
16681 f (long double x)
16682 {
16683 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
16684 + (x ? f (x) : 'c'));
16685 }
16686
16687 int
16688 main (void)
16689 {
16690 static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
16691 + (DBL_MANT_DIG < LDBL_MANT_DIG)
16692 - (LDBL_MAX_EXP < DBL_MAX_EXP)
16693 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
16694 && (int) LDBL_EPSILON == 0
16695 )];
16696 test_array [0] = 0;
16697 return test_array [0];
16698
16699 ;
16700 return 0;
16701 }
16702 _ACEOF
16703 if ac_fn_c_try_compile "$LINENO"
16704 then :
16705 ac_cv_type_long_double_wider=yes
16706 else case e in #(
16707 e) ac_cv_type_long_double_wider=no ;;
16708 esac
16709 fi
16710 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16711 esac
16712 fi
16713 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
16714 printf '%s\n' "$ac_cv_type_long_double_wider" >&6; }
16715 if test $ac_cv_type_long_double_wider = yes; then
16716
16717 printf '%s\n' "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
16718
16719 fi
16720
16721 ac_cv_c_long_double=$ac_cv_type_long_double_wider
16722 if test $ac_cv_c_long_double = yes; then
16723
16724 printf '%s\n' "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
16725
16726 fi
16727
16728 if test "${ac_cv_c_long_double}" = "yes" ; then
16729 # The cast to long int works around a bug in the HP C Compiler
16730 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16731 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
16732 # This bug is HP SR number 8606223364.
16733 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
16734 printf %s "checking size of long double... " >&6; }
16735 if test ${ac_cv_sizeof_long_double+y}
16736 then :
16737 printf %s "(cached) " >&6
16738 else case e in #(
16739 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"
16740 then :
16741
16742 else case e in #(
16743 e) ac_cv_sizeof_long_double=0 ;;
16744 esac
16745 fi
16746 ;;
16747 esac
16748 fi
16749 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
16750 printf '%s\n' "$ac_cv_sizeof_long_double" >&6; }
16751
16752
16753
16754 printf '%s\n' "#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double" >>confdefs.h
16755
16756
16757 fi
16758
16759 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
16760 if test "x$ac_cv_type_uint8_t" = xyes
16761 then :
16762
16763 printf '%s\n' "#define HAVE_UINT8_T 1" >>confdefs.h
16764
16765
16766 fi
16767 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
16768 if test "x$ac_cv_type_int8_t" = xyes
16769 then :
16770
16771 printf '%s\n' "#define HAVE_INT8_T 1" >>confdefs.h
16772
16773
16774 fi
16775 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
16776 if test "x$ac_cv_type_uint16_t" = xyes
16777 then :
16778
16779 printf '%s\n' "#define HAVE_UINT16_T 1" >>confdefs.h
16780
16781
16782 fi
16783 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
16784 if test "x$ac_cv_type_int16_t" = xyes
16785 then :
16786
16787 printf '%s\n' "#define HAVE_INT16_T 1" >>confdefs.h
16788
16789
16790 fi
16791 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
16792 if test "x$ac_cv_type_uint32_t" = xyes
16793 then :
16794
16795 printf '%s\n' "#define HAVE_UINT32_T 1" >>confdefs.h
16796
16797
16798 fi
16799 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
16800 if test "x$ac_cv_type_int32_t" = xyes
16801 then :
16802
16803 printf '%s\n' "#define HAVE_INT32_T 1" >>confdefs.h
16804
16805
16806 fi
16807 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
16808 if test "x$ac_cv_type_uint64_t" = xyes
16809 then :
16810
16811 printf '%s\n' "#define HAVE_UINT64_T 1" >>confdefs.h
16812
16813
16814 fi
16815 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
16816 if test "x$ac_cv_type_int64_t" = xyes
16817 then :
16818
16819 printf '%s\n' "#define HAVE_INT64_T 1" >>confdefs.h
16820
16821
16822 fi
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833 if test "${HAVE_INT32_T}" = yes; then
16834 printf '%s\n' "#define A_UINT32_T unsigned int32_t" >>confdefs.h
16835
16836 else
16837 if test "${ac_cv_sizeof_unsigned_short}" = "4"; then
16838 printf '%s\n' "#define A_UINT32_T unsigned short" >>confdefs.h
16839
16840 else
16841 if test "${ac_cv_sizeof_unsigned_int}" = "4"; then
16842 printf '%s\n' "#define A_UINT32_T unsigned int" >>confdefs.h
16843
16844 else
16845 if test "${ac_cv_sizeof_unsigned_long}" = "4"; then
16846 printf '%s\n' "#define A_UINT32_T unsigned long" >>confdefs.h
16847
16848 else
16849 as_fn_error $? "CHECK_TYPE_uint32_t - please report to [email protected]" "$LINENO" 5
16850 fi
16851 fi
16852 fi
16853 fi
16854
16855
16856
16857 if test "${ac_cv_sizeof_short}" = "4"; then
16858 printf '%s\n' "#define A_INT32_T short" >>confdefs.h
16859
16860 else
16861 if test "${ac_cv_sizeof_int}" = "4"; then
16862 printf '%s\n' "#define A_INT32_T int" >>confdefs.h
16863
16864 else
16865 if test "${ac_cv_sizeof_long}" = "4"; then
16866 printf '%s\n' "#define A_INT32_T long" >>confdefs.h
16867
16868 else
16869 as_fn_error $? "CHECK_TYPE_int32_t - please report to [email protected]" "$LINENO" 5
16870 fi
16871 fi
16872 fi
16873
16874
16875
16876 if test "${HAVE_INT64_T}" = yes; then
16877 printf '%s\n' "#define A_UINT64_T unsigned int64_t" >>confdefs.h
16878
16879 else
16880 if test "${ac_cv_sizeof_unsigned_int}" = "8"; then
16881 printf '%s\n' "#define A_UINT64_T unsigned int" >>confdefs.h
16882
16883 else
16884 if test "${ac_cv_sizeof_unsigned_long}" = "8"; then
16885 printf '%s\n' "#define A_UINT64_T unsigned long" >>confdefs.h
16886
16887 else
16888 if test "${ac_cv_sizeof_unsigned_long_long}" = "8"; then
16889 printf '%s\n' "#define A_UINT64_T unsigned long long" >>confdefs.h
16890
16891 else
16892 as_fn_error $? "CHECK_TYPE_uint64_t - please report to [email protected]" "$LINENO" 5
16893 fi
16894 fi
16895 fi
16896 fi
16897
16898
16899
16900 if test "${ac_cv_sizeof_int}" = "8"; then
16901 printf '%s\n' "#define A_INT64_T int" >>confdefs.h
16902
16903 else
16904 if test "${ac_cv_sizeof_long}" = "8"; then
16905 printf '%s\n' "#define A_INT64_T long" >>confdefs.h
16906
16907 else
16908 if test "${ac_cv_sizeof_long_long}" = "8"; then
16909 printf '%s\n' "#define A_INT64_T long long" >>confdefs.h
16910
16911 else
16912 as_fn_error $? "CHECK_TYPE_int64_t - please report to [email protected]" "$LINENO" 5
16913 fi
16914 fi
16915 fi
16916
16917
16918
16919 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for IEEE854 compliant 80 bit floats" >&5
16920 printf %s "checking for IEEE854 compliant 80 bit floats... " >&6; }
16921 if test ${alex_cv_ieee854_float80+y}
16922 then :
16923 printf %s "(cached) " >&6
16924 else case e in #(
16925 e) if test "$cross_compiling" = yes
16926 then :
16927 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: can't check for IEEE854 compliant 80 bit floats" >&5
16928 printf '%s\n' "$as_me: WARNING: can't check for IEEE854 compliant 80 bit floats" >&2;}
16929
16930 else case e in #(
16931 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16932 /* end confdefs.h. */
16933
16934 int float2long_IEEE_compliance ( void )
16935 {
16936 struct {
16937 long padding; /* to prevent unaligned access */
16938 float f;
16939 } s;
16940 s.f = 12582912.; if ( *(long*)(&s.f) != 1262485504l ) return 0;
16941 s.f = 12615679.; if ( *(long*)(&s.f) != 1262518271l ) return 0;
16942 s.f = 13582912.; if ( *(long*)(&s.f) != 1263485504l ) return 0;
16943 s.f = 12550145.; if ( *(long*)(&s.f) != 1262452737l ) return 0;
16944 s.f = 11582912.; if ( *(long*)(&s.f) != 1261485504l ) return 0;
16945 return 1;
16946 }
16947
16948 int main(void)
16949 {
16950 int retval;
16951
16952 retval = float2long_IEEE_compliance();
16953
16954 /* no error return -> success */
16955 return !retval;
16956 }
16957
16958 _ACEOF
16959 if ac_fn_c_try_run "$LINENO"
16960 then :
16961 alex_cv_ieee854_float80=yes
16962 else case e in #(
16963 e) alex_cv_ieee854_float80=no ;;
16964 esac
16965 fi
16966 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16967 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16968 esac
16969 fi
16970 ;;
16971 esac
16972 fi
16973 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $alex_cv_ieee854_float80" >&5
16974 printf '%s\n' "$alex_cv_ieee854_float80" >&6; }
16975 if test "${alex_cv_ieee854_float80}" = "yes" ; then
16976 if test "${ac_cv_c_long_double}" = "yes" ; then
16977 ac_fn_c_check_type "$LINENO" "ieee854_float80_t" "ac_cv_type_ieee854_float80_t" "$ac_includes_default"
16978 if test "x$ac_cv_type_ieee854_float80_t" = xyes
16979 then :
16980
16981 printf '%s\n' "#define HAVE_IEEE854_FLOAT80_T 1" >>confdefs.h
16982
16983 long double
16984 fi
16985
16986
16987
16988
16989 printf '%s\n' "#define HAVE_IEEE854_FLOAT80 1" >>confdefs.h
16990
16991 fi
16992 fi
16993 ac_fn_c_check_type "$LINENO" "ieee754_float64_t" "ac_cv_type_ieee754_float64_t" "$ac_includes_default"
16994 if test "x$ac_cv_type_ieee754_float64_t" = xyes
16995 then :
16996
16997 printf '%s\n' "#define HAVE_IEEE754_FLOAT64_T 1" >>confdefs.h
16998
16999
17000 fi
17001 ac_fn_c_check_type "$LINENO" "ieee754_float32_t" "ac_cv_type_ieee754_float32_t" "$ac_includes_default"
17002 if test "x$ac_cv_type_ieee754_float32_t" = xyes
17003 then :
17004
17005 printf '%s\n' "#define HAVE_IEEE754_FLOAT32_T 1" >>confdefs.h
17006
17007
17008 fi
17009
17010
17011
17012
17013
17014
17015
17016 printf '%s\n' "#define LAME_LIBRARY_BUILD 1" >>confdefs.h
17017
17018
17019
17020 if test ${cross_compiling} = "yes"; then
17021 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING:
17022 **************************************************************************
17023 * *
17024 * You are cross compiling: *
17025 * - I did not have a change to determine *
17026 * + the size of: *
17027 * - short *
17028 * - unsigned short *
17029 * - int *
17030 * - unsigned int *
17031 * - long *
17032 * - unsigned long *
17033 * - float *
17034 * - double *
17035 * - long double *
17036 * + the endianess of the system *
17037 * - You have to provide appropriate defines for them in config.h, e.g. *
17038 * + define SIZEOF_SHORT to 2 if the size of a short is 2 *
17039 * + define WORDS_BIGENDIAN if your system is a big endian system *
17040 * *
17041 **************************************************************************" >&5
17042 printf '%s\n' "$as_me: WARNING:
17043 **************************************************************************
17044 * *
17045 * You are cross compiling: *
17046 * - I did not have a change to determine *
17047 * + the size of: *
17048 * - short *
17049 * - unsigned short *
17050 * - int *
17051 * - unsigned int *
17052 * - long *
17053 * - unsigned long *
17054 * - float *
17055 * - double *
17056 * - long double *
17057 * + the endianess of the system *
17058 * - You have to provide appropriate defines for them in config.h, e.g. *
17059 * + define SIZEOF_SHORT to 2 if the size of a short is 2 *
17060 * + define WORDS_BIGENDIAN if your system is a big endian system *
17061 * *
17062 **************************************************************************" >&2;}
17063 fi
17064
17065 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17066 if test "x$ac_cv_type_size_t" = xyes
17067 then :
17068
17069 else case e in #(
17070 e)
17071 printf '%s\n' "#define size_t unsigned int" >>confdefs.h
17072 ;;
17073 esac
17074 fi
17075
17076
17077
17078 # Obsolete code to be removed.
17079 if test $ac_cv_header_sys_time_h = yes; then
17080
17081 printf '%s\n' "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
17082
17083 fi
17084 # End of obsolete code.
17085
17086
17087 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17088 # for constant arguments. Useless!
17089 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
17090 printf %s "checking for working alloca.h... " >&6; }
17091 if test ${ac_cv_working_alloca_h+y}
17092 then :
17093 printf %s "(cached) " >&6
17094 else case e in #(
17095 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17096 /* end confdefs.h. */
17097 #include <alloca.h>
17098 int
17099 main (void)
17100 {
17101 char *p = (char *) alloca (2 * sizeof (int));
17102 if (p) return 0;
17103 ;
17104 return 0;
17105 }
17106 _ACEOF
17107 if ac_fn_c_try_link "$LINENO"
17108 then :
17109 ac_cv_working_alloca_h=yes
17110 else case e in #(
17111 e) ac_cv_working_alloca_h=no ;;
17112 esac
17113 fi
17114 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17115 conftest$ac_exeext conftest.$ac_ext ;;
17116 esac
17117 fi
17118 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
17119 printf '%s\n' "$ac_cv_working_alloca_h" >&6; }
17120 if test $ac_cv_working_alloca_h = yes; then
17121
17122 printf '%s\n' "#define HAVE_ALLOCA_H 1" >>confdefs.h
17123
17124 fi
17125
17126 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
17127 printf %s "checking for alloca... " >&6; }
17128 if test ${ac_cv_func_alloca_works+y}
17129 then :
17130 printf %s "(cached) " >&6
17131 else case e in #(
17132 e) ac_cv_func_alloca_works=$ac_cv_working_alloca_h
17133 if test "$ac_cv_func_alloca_works" != yes
17134 then :
17135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17136 /* end confdefs.h. */
17137 #include <stdlib.h>
17138 #include <stddef.h>
17139 #ifndef alloca
17140 # ifdef __GNUC__
17141 # define alloca __builtin_alloca
17142 # elif defined _MSC_VER
17143 # include <malloc.h>
17144 # define alloca _alloca
17145 # else
17146 # ifdef __cplusplus
17147 extern "C"
17148 # endif
17149 void *alloca (size_t);
17150 # endif
17151 #endif
17152
17153 int
17154 main (void)
17155 {
17156 char *p = (char *) alloca (1);
17157 if (p) return 0;
17158 ;
17159 return 0;
17160 }
17161 _ACEOF
17162 if ac_fn_c_try_link "$LINENO"
17163 then :
17164 ac_cv_func_alloca_works=yes
17165 fi
17166 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17167 conftest$ac_exeext conftest.$ac_ext
17168 fi ;;
17169 esac
17170 fi
17171 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
17172 printf '%s\n' "$ac_cv_func_alloca_works" >&6; }
17173
17174 if test $ac_cv_func_alloca_works = yes; then
17175
17176 printf '%s\n' "#define HAVE_ALLOCA 1" >>confdefs.h
17177
17178 else
17179 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17180 # that cause trouble. Some versions do not even contain alloca or
17181 # contain a buggy version. If you still want to use their alloca,
17182 # use ar to extract alloca.o from them instead of compiling alloca.c.
17183
17184 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
17185
17186 printf '%s\n' "#define C_ALLOCA 1" >>confdefs.h
17187
17188
17189 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
17190 printf %s "checking stack direction for C alloca... " >&6; }
17191 if test ${ac_cv_c_stack_direction+y}
17192 then :
17193 printf %s "(cached) " >&6
17194 else case e in #(
17195 e) if test "$cross_compiling" = yes
17196 then :
17197 ac_cv_c_stack_direction=0
17198 else case e in #(
17199 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17200 /* end confdefs.h. */
17201 $ac_includes_default
17202 int
17203 find_stack_direction (int *addr, int depth)
17204 {
17205 int dir, dummy = 0;
17206 if (! addr)
17207 addr = &dummy;
17208 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
17209 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
17210 return dir + dummy;
17211 }
17212
17213 int
17214 main (int argc, char **argv)
17215 {
17216 return find_stack_direction (0, argc + !argv + 20) < 0;
17217 }
17218 _ACEOF
17219 if ac_fn_c_try_run "$LINENO"
17220 then :
17221 ac_cv_c_stack_direction=1
17222 else case e in #(
17223 e) ac_cv_c_stack_direction=-1 ;;
17224 esac
17225 fi
17226 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17227 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17228 esac
17229 fi
17230 ;;
17231 esac
17232 fi
17233 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
17234 printf '%s\n' "$ac_cv_c_stack_direction" >&6; }
17235 printf '%s\n' "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
17236
17237
17238 fi
17239
17240 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
17241 if test "x$ac_cv_func_gettimeofday" = xyes
17242 then :
17243 printf '%s\n' "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
17244
17245 fi
17246 ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
17247 if test "x$ac_cv_func_strtol" = xyes
17248 then :
17249 printf '%s\n' "#define HAVE_STRTOL 1" >>confdefs.h
17250
17251 fi
17252
17253
17254 if test "X${ac_cv_func_strtol}" != "Xyes"; then
17255 as_fn_error $? "function strtol is mandatory" "$LINENO" 5
17256 fi
17257
17258 SOCKETFUNCTION=unknown
17259 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
17260 if test "x$ac_cv_func_socket" = xyes
17261 then :
17262 printf '%s\n' "#define HAVE_SOCKET 1" >>confdefs.h
17263
17264 fi
17265
17266 if test $ac_cv_func_socket = no; then
17267 # maybe it is in libsocket
17268 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
17269 printf %s "checking for socket in -lsocket... " >&6; }
17270 if test ${ac_cv_lib_socket_socket+y}
17271 then :
17272 printf %s "(cached) " >&6
17273 else case e in #(
17274 e) ac_check_lib_save_LIBS=$LIBS
17275 LIBS="-lsocket $LIBS"
17276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17277 /* end confdefs.h. */
17278
17279 /* Override any GCC internal prototype to avoid an error.
17280 Use char because int might match the return type of a GCC
17281 builtin and then its argument prototype would still apply.
17282 The 'extern "C"' is for builds by C++ compilers;
17283 although this is not generally supported in C code supporting it here
17284 has little cost and some practical benefit (sr 110532). */
17285 #ifdef __cplusplus
17286 extern "C"
17287 #endif
17288 char socket (void);
17289 int
17290 main (void)
17291 {
17292 return socket ();
17293 ;
17294 return 0;
17295 }
17296 _ACEOF
17297 if ac_fn_c_try_link "$LINENO"
17298 then :
17299 ac_cv_lib_socket_socket=yes
17300 else case e in #(
17301 e) ac_cv_lib_socket_socket=no ;;
17302 esac
17303 fi
17304 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17305 conftest$ac_exeext conftest.$ac_ext
17306 LIBS=$ac_check_lib_save_LIBS ;;
17307 esac
17308 fi
17309 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
17310 printf '%s\n' "$ac_cv_lib_socket_socket" >&6; }
17311 if test "x$ac_cv_lib_socket_socket" = xyes
17312 then :
17313 printf '%s\n' "#define HAVE_SOCKET 1" >>confdefs.h
17314
17315 LIBS="$LIBS -lsocket"
17316 fi
17317
17318 if test "X${ac_cv_lib_socket_socket}" != "Xyes"; then
17319 SOCKETFUNCTION=NO
17320 else
17321 case ${host_os} in
17322 *solaris*)
17323 LIBS="$LIBS -lnsl"
17324 ;;
17325 esac
17326 fi
17327 fi
17328
17329 CFLAGS=${CFLAGS}
17330 CONFIG_DEFS=${CONFIG_DEFS}
17331 NASM=
17332 INCLUDES="-I\$(top_srcdir)/include -I\$(srcdir)"
17333 FRONTEND_LDFLAGS=
17334 FRONTEND_CFLAGS=
17335 LIB_SOURCES=
17336 MAKEDEP="-M"
17337 RM_F="rm -f"
17338
17339 # Check whether --enable-nasm was given.
17340 if test ${enable_nasm+y}
17341 then :
17342 enableval=$enable_nasm; ASM_FOR_ARCH="i386"
17343 else case e in #(
17344 e) ASM_FOR_ARCH="" ;;
17345 esac
17346 fi
17347
17348
17349 # Check whether --enable-ieeehack was given.
17350 if test ${enable_ieeehack+y}
17351 then :
17352 enableval=$enable_ieeehack; IEEE754_HACK="yes"
17353 else case e in #(
17354 e) IEEE754_HACK="no" ;;
17355 esac
17356 fi
17357
17358 case ${IEEE754_HACK} in
17359 yes)
17360
17361 printf '%s\n' "#define TAKEHIRO_IEEE754_HACK 1" >>confdefs.h
17362
17363 ;;
17364 no)
17365
17366 printf '%s\n' "#define TAKEHIRO_IEEE754_HACK 0" >>confdefs.h
17367
17368 ;;
17369 esac
17370
17371
17372 ac_fn_c_check_header_compile "$LINENO" "termcap.h" "ac_cv_header_termcap_h" "$ac_includes_default"
17373 if test "x$ac_cv_header_termcap_h" = xyes
17374 then :
17375 printf '%s\n' "#define HAVE_TERMCAP_H 1" >>confdefs.h
17376
17377 fi
17378
17379 ac_fn_c_check_header_compile "$LINENO" "ncurses/termcap.h" "ac_cv_header_ncurses_termcap_h" "$ac_includes_default"
17380 if test "x$ac_cv_header_ncurses_termcap_h" = xyes
17381 then :
17382 printf '%s\n' "#define HAVE_NCURSES_TERMCAP_H 1" >>confdefs.h
17383
17384 fi
17385
17386 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for initscr in -ltermcap" >&5
17387 printf %s "checking for initscr in -ltermcap... " >&6; }
17388 if test ${ac_cv_lib_termcap_initscr+y}
17389 then :
17390 printf %s "(cached) " >&6
17391 else case e in #(
17392 e) ac_check_lib_save_LIBS=$LIBS
17393 LIBS="-ltermcap $LIBS"
17394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17395 /* end confdefs.h. */
17396
17397 /* Override any GCC internal prototype to avoid an error.
17398 Use char because int might match the return type of a GCC
17399 builtin and then its argument prototype would still apply.
17400 The 'extern "C"' is for builds by C++ compilers;
17401 although this is not generally supported in C code supporting it here
17402 has little cost and some practical benefit (sr 110532). */
17403 #ifdef __cplusplus
17404 extern "C"
17405 #endif
17406 char initscr (void);
17407 int
17408 main (void)
17409 {
17410 return initscr ();
17411 ;
17412 return 0;
17413 }
17414 _ACEOF
17415 if ac_fn_c_try_link "$LINENO"
17416 then :
17417 ac_cv_lib_termcap_initscr=yes
17418 else case e in #(
17419 e) ac_cv_lib_termcap_initscr=no ;;
17420 esac
17421 fi
17422 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17423 conftest$ac_exeext conftest.$ac_ext
17424 LIBS=$ac_check_lib_save_LIBS ;;
17425 esac
17426 fi
17427 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_initscr" >&5
17428 printf '%s\n' "$ac_cv_lib_termcap_initscr" >&6; }
17429 if test "x$ac_cv_lib_termcap_initscr" = xyes
17430 then :
17431 HAVE_TERMCAP="termcap"
17432 fi
17433
17434 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for initscr in -lcurses" >&5
17435 printf %s "checking for initscr in -lcurses... " >&6; }
17436 if test ${ac_cv_lib_curses_initscr+y}
17437 then :
17438 printf %s "(cached) " >&6
17439 else case e in #(
17440 e) ac_check_lib_save_LIBS=$LIBS
17441 LIBS="-lcurses $LIBS"
17442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17443 /* end confdefs.h. */
17444
17445 /* Override any GCC internal prototype to avoid an error.
17446 Use char because int might match the return type of a GCC
17447 builtin and then its argument prototype would still apply.
17448 The 'extern "C"' is for builds by C++ compilers;
17449 although this is not generally supported in C code supporting it here
17450 has little cost and some practical benefit (sr 110532). */
17451 #ifdef __cplusplus
17452 extern "C"
17453 #endif
17454 char initscr (void);
17455 int
17456 main (void)
17457 {
17458 return initscr ();
17459 ;
17460 return 0;
17461 }
17462 _ACEOF
17463 if ac_fn_c_try_link "$LINENO"
17464 then :
17465 ac_cv_lib_curses_initscr=yes
17466 else case e in #(
17467 e) ac_cv_lib_curses_initscr=no ;;
17468 esac
17469 fi
17470 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17471 conftest$ac_exeext conftest.$ac_ext
17472 LIBS=$ac_check_lib_save_LIBS ;;
17473 esac
17474 fi
17475 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_initscr" >&5
17476 printf '%s\n' "$ac_cv_lib_curses_initscr" >&6; }
17477 if test "x$ac_cv_lib_curses_initscr" = xyes
17478 then :
17479 HAVE_TERMCAP="curses"
17480 fi
17481
17482 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
17483 printf %s "checking for initscr in -lncurses... " >&6; }
17484 if test ${ac_cv_lib_ncurses_initscr+y}
17485 then :
17486 printf %s "(cached) " >&6
17487 else case e in #(
17488 e) ac_check_lib_save_LIBS=$LIBS
17489 LIBS="-lncurses $LIBS"
17490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17491 /* end confdefs.h. */
17492
17493 /* Override any GCC internal prototype to avoid an error.
17494 Use char because int might match the return type of a GCC
17495 builtin and then its argument prototype would still apply.
17496 The 'extern "C"' is for builds by C++ compilers;
17497 although this is not generally supported in C code supporting it here
17498 has little cost and some practical benefit (sr 110532). */
17499 #ifdef __cplusplus
17500 extern "C"
17501 #endif
17502 char initscr (void);
17503 int
17504 main (void)
17505 {
17506 return initscr ();
17507 ;
17508 return 0;
17509 }
17510 _ACEOF
17511 if ac_fn_c_try_link "$LINENO"
17512 then :
17513 ac_cv_lib_ncurses_initscr=yes
17514 else case e in #(
17515 e) ac_cv_lib_ncurses_initscr=no ;;
17516 esac
17517 fi
17518 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17519 conftest$ac_exeext conftest.$ac_ext
17520 LIBS=$ac_check_lib_save_LIBS ;;
17521 esac
17522 fi
17523 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
17524 printf '%s\n' "$ac_cv_lib_ncurses_initscr" >&6; }
17525 if test "x$ac_cv_lib_ncurses_initscr" = xyes
17526 then :
17527 HAVE_TERMCAP="ncurses"
17528 fi
17529
17530 for ac_header in langinfo.h
17531 do :
17532 ac_fn_c_check_header_compile "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
17533 if test "x$ac_cv_header_langinfo_h" = xyes
17534 then :
17535 printf '%s\n' "#define HAVE_LANGINFO_H 1" >>confdefs.h
17536 ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
17537 if test "x$ac_cv_func_nl_langinfo" = xyes
17538 then :
17539 printf '%s\n' "#define HAVE_NL_LANGINFO 1" >>confdefs.h
17540
17541 fi
17542
17543 fi
17544
17545 done
17546
17547
17548 if test "X$prefix" = "XNONE"; then
17549 acl_final_prefix="$ac_default_prefix"
17550 else
17551 acl_final_prefix="$prefix"
17552 fi
17553 if test "X$exec_prefix" = "XNONE"; then
17554 acl_final_exec_prefix='${prefix}'
17555 else
17556 acl_final_exec_prefix="$exec_prefix"
17557 fi
17558 acl_saved_prefix="$prefix"
17559 prefix="$acl_final_prefix"
17560 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17561 prefix="$acl_saved_prefix"
17562
17563
17564
17565 # Check whether --with-gnu-ld was given.
17566 if test ${with_gnu_ld+y}
17567 then :
17568 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17569 else case e in #(
17570 e) with_gnu_ld=no ;;
17571 esac
17572 fi
17573
17574 # Prepare PATH_SEPARATOR.
17575 # The user is always right.
17576 if test "${PATH_SEPARATOR+set}" != set; then
17577 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
17578 # contains only /bin. Note that ksh looks also at the FPATH variable,
17579 # so we have to set that as well for the test.
17580 PATH_SEPARATOR=:
17581 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
17582 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
17583 || PATH_SEPARATOR=';'
17584 }
17585 fi
17586
17587 if test -n "$LD"; then
17588 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
17589 printf %s "checking for ld... " >&6; }
17590 elif test "$GCC" = yes; then
17591 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17592 printf %s "checking for ld used by $CC... " >&6; }
17593 elif test "$with_gnu_ld" = yes; then
17594 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17595 printf %s "checking for GNU ld... " >&6; }
17596 else
17597 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17598 printf %s "checking for non-GNU ld... " >&6; }
17599 fi
17600 if test -n "$LD"; then
17601 # Let the user override the test with a path.
17602 :
17603 else
17604 if test ${acl_cv_path_LD+y}
17605 then :
17606 printf %s "(cached) " >&6
17607 else case e in #(
17608 e)
17609 acl_cv_path_LD= # Final result of this test
17610 ac_prog=ld # Program to search in $PATH
17611 if test "$GCC" = yes; then
17612 # Check if gcc -print-prog-name=ld gives a path.
17613 case $host in
17614 *-*-mingw* | windows*)
17615 # gcc leaves a trailing carriage return which upsets mingw
17616 acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17617 *)
17618 acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
17619 esac
17620 case $acl_output in
17621 # Accept absolute paths.
17622 [\\/]* | ?:[\\/]*)
17623 re_direlt='/[^/][^/]*/\.\./'
17624 # Canonicalize the pathname of ld
17625 acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
17626 while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
17627 acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
17628 done
17629 # Got the pathname. No search in PATH is needed.
17630 acl_cv_path_LD="$acl_output"
17631 ac_prog=
17632 ;;
17633 "")
17634 # If it fails, then pretend we aren't using GCC.
17635 ;;
17636 *)
17637 # If it is relative, then search for the first ld in PATH.
17638 with_gnu_ld=unknown
17639 ;;
17640 esac
17641 fi
17642 if test -n "$ac_prog"; then
17643 # Search for $ac_prog in $PATH.
17644 acl_saved_IFS="$IFS"; IFS=$PATH_SEPARATOR
17645 for ac_dir in $PATH; do
17646 IFS="$acl_saved_IFS"
17647 test -z "$ac_dir" && ac_dir=.
17648 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17649 acl_cv_path_LD="$ac_dir/$ac_prog"
17650 # Check to see if the program is GNU ld. I'd rather use --version,
17651 # but apparently some variants of GNU ld only accept -v.
17652 # Break only if it was the GNU/non-GNU ld that we prefer.
17653 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
17654 *GNU* | *'with BFD'*)
17655 test "$with_gnu_ld" != no && break
17656 ;;
17657 *)
17658 test "$with_gnu_ld" != yes && break
17659 ;;
17660 esac
17661 fi
17662 done
17663 IFS="$acl_saved_IFS"
17664 fi
17665 case $host in
17666 *-*-aix*)
17667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17668 /* end confdefs.h. */
17669 #if defined __powerpc64__ || defined __LP64__
17670 int ok;
17671 #else
17672 error fail
17673 #endif
17674
17675 _ACEOF
17676 if ac_fn_c_try_compile "$LINENO"
17677 then :
17678 # The compiler produces 64-bit code. Add option '-b64' so that the
17679 # linker groks 64-bit object files.
17680 case "$acl_cv_path_LD " in
17681 *" -b64 "*) ;;
17682 *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
17683 esac
17684
17685 fi
17686 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17687 ;;
17688 sparc64-*-netbsd*)
17689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17690 /* end confdefs.h. */
17691 #if defined __sparcv9 || defined __arch64__
17692 int ok;
17693 #else
17694 error fail
17695 #endif
17696
17697 _ACEOF
17698 if ac_fn_c_try_compile "$LINENO"
17699 then :
17700
17701 else case e in #(
17702 e) # The compiler produces 32-bit code. Add option '-m elf32_sparc'
17703 # so that the linker groks 32-bit object files.
17704 case "$acl_cv_path_LD " in
17705 *" -m elf32_sparc "*) ;;
17706 *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
17707 esac
17708 ;;
17709 esac
17710 fi
17711 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17712 ;;
17713 esac
17714 ;;
17715 esac
17716 fi
17717
17718 LD="$acl_cv_path_LD"
17719 fi
17720 if test -n "$LD"; then
17721 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17722 printf '%s\n' "$LD" >&6; }
17723 else
17724 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
17725 printf '%s\n' "no" >&6; }
17726 as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17727 fi
17728 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17729 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
17730 if test ${acl_cv_prog_gnu_ld+y}
17731 then :
17732 printf %s "(cached) " >&6
17733 else case e in #(
17734 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
17735 case `$LD -v 2>&1 </dev/null` in
17736 *GNU* | *'with BFD'*)
17737 acl_cv_prog_gnu_ld=yes
17738 ;;
17739 *)
17740 acl_cv_prog_gnu_ld=no
17741 ;;
17742 esac ;;
17743 esac
17744 fi
17745 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17746 printf '%s\n' "$acl_cv_prog_gnu_ld" >&6; }
17747 with_gnu_ld=$acl_cv_prog_gnu_ld
17748
17749
17750
17751
17752
17753 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17754 printf %s "checking for shared library run path origin... " >&6; }
17755 if test ${acl_cv_rpath+y}
17756 then :
17757 printf %s "(cached) " >&6
17758 else case e in #(
17759 e)
17760 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17761 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17762 . ./conftest.sh
17763 rm -f ./conftest.sh
17764 acl_cv_rpath=done
17765 ;;
17766 esac
17767 fi
17768 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17769 printf '%s\n' "$acl_cv_rpath" >&6; }
17770 wl="$acl_cv_wl"
17771 acl_libext="$acl_cv_libext"
17772 acl_shlibext="$acl_cv_shlibext"
17773 acl_libname_spec="$acl_cv_libname_spec"
17774 acl_library_names_spec="$acl_cv_library_names_spec"
17775 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17776 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17777 acl_hardcode_direct="$acl_cv_hardcode_direct"
17778 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
17779 # Check whether --enable-rpath was given.
17780 if test ${enable_rpath+y}
17781 then :
17782 enableval=$enable_rpath; :
17783 else case e in #(
17784 e) enable_rpath=yes ;;
17785 esac
17786 fi
17787
17788
17789
17790
17791 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
17792 printf %s "checking 32-bit host C ABI... " >&6; }
17793 if test ${gl_cv_host_cpu_c_abi_32bit+y}
17794 then :
17795 printf %s "(cached) " >&6
17796 else case e in #(
17797 e) case "$host_cpu" in
17798
17799 # CPUs that only support a 32-bit ABI.
17800 arc \
17801 | bfin \
17802 | cris* \
17803 | csky \
17804 | epiphany \
17805 | ft32 \
17806 | h8300 \
17807 | m68k \
17808 | microblaze | microblazeel \
17809 | nds32 | nds32le | nds32be \
17810 | nios2 | nios2eb | nios2el \
17811 | or1k* \
17812 | or32 \
17813 | sh | sh1234 | sh1234elb \
17814 | tic6x \
17815 | xtensa* )
17816 gl_cv_host_cpu_c_abi_32bit=yes
17817 ;;
17818
17819 # CPUs that only support a 64-bit ABI.
17820 alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
17821 | mmix )
17822 gl_cv_host_cpu_c_abi_32bit=no
17823 ;;
17824
17825 *)
17826 if test -n "$gl_cv_host_cpu_c_abi"; then
17827 case "$gl_cv_host_cpu_c_abi" in
17828 i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
17829 gl_cv_host_cpu_c_abi_32bit=yes ;;
17830 x86_64 | alpha | arm64 | aarch64c | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
17831 gl_cv_host_cpu_c_abi_32bit=no ;;
17832 *)
17833 gl_cv_host_cpu_c_abi_32bit=unknown ;;
17834 esac
17835 else
17836 gl_cv_host_cpu_c_abi_32bit=unknown
17837 fi
17838 if test $gl_cv_host_cpu_c_abi_32bit = unknown; then
17839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17840 /* end confdefs.h. */
17841 int test_pointer_size[sizeof (void *) - 5];
17842
17843 _ACEOF
17844 if ac_fn_c_try_compile "$LINENO"
17845 then :
17846 gl_cv_host_cpu_c_abi_32bit=no
17847 else case e in #(
17848 e) gl_cv_host_cpu_c_abi_32bit=yes ;;
17849 esac
17850 fi
17851 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17852 fi
17853 ;;
17854 esac
17855 ;;
17856 esac
17857 fi
17858 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
17859 printf '%s\n' "$gl_cv_host_cpu_c_abi_32bit" >&6; }
17860
17861 HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
17862
17863 ac_ext=c
17864 ac_cpp='$CPP $CPPFLAGS'
17865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17868 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
17869 printf %s "checking how to run the C preprocessor... " >&6; }
17870 # On Suns, sometimes $CPP names a directory.
17871 if test -n "$CPP" && test -d "$CPP"; then
17872 CPP=
17873 fi
17874 if test -z "$CPP"; then
17875 if test ${ac_cv_prog_CPP+y}
17876 then :
17877 printf %s "(cached) " >&6
17878 else case e in #(
17879 e) # Double quotes because $CC needs to be expanded
17880 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
17881 do
17882 ac_preproc_ok=false
17883 for ac_c_preproc_warn_flag in '' yes
17884 do
17885 # Use a header file that comes with gcc, so configuring glibc
17886 # with a fresh cross-compiler works.
17887 # On the NeXT, cc -E runs the code through the compiler's parser,
17888 # not just through cpp. "Syntax error" is here to catch this case.
17889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17890 /* end confdefs.h. */
17891 #include <limits.h>
17892 Syntax error
17893 _ACEOF
17894 if ac_fn_c_try_cpp "$LINENO"
17895 then :
17896
17897 else case e in #(
17898 e) # Broken: fails on valid input.
17899 continue ;;
17900 esac
17901 fi
17902 rm -f conftest.err conftest.i conftest.$ac_ext
17903
17904 # OK, works on sane cases. Now check whether nonexistent headers
17905 # can be detected and how.
17906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17907 /* end confdefs.h. */
17908 #include <ac_nonexistent.h>
17909 _ACEOF
17910 if ac_fn_c_try_cpp "$LINENO"
17911 then :
17912 # Broken: success on invalid input.
17913 continue
17914 else case e in #(
17915 e) # Passes both tests.
17916 ac_preproc_ok=:
17917 break ;;
17918 esac
17919 fi
17920 rm -f conftest.err conftest.i conftest.$ac_ext
17921
17922 done
17923 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17924 rm -f conftest.i conftest.err conftest.$ac_ext
17925 if $ac_preproc_ok
17926 then :
17927 break
17928 fi
17929
17930 done
17931 ac_cv_prog_CPP=$CPP
17932 ;;
17933 esac
17934 fi
17935 CPP=$ac_cv_prog_CPP
17936 else
17937 ac_cv_prog_CPP=$CPP
17938 fi
17939 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
17940 printf '%s\n' "$CPP" >&6; }
17941 ac_preproc_ok=false
17942 for ac_c_preproc_warn_flag in '' yes
17943 do
17944 # Use a header file that comes with gcc, so configuring glibc
17945 # with a fresh cross-compiler works.
17946 # On the NeXT, cc -E runs the code through the compiler's parser,
17947 # not just through cpp. "Syntax error" is here to catch this case.
17948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17949 /* end confdefs.h. */
17950 #include <limits.h>
17951 Syntax error
17952 _ACEOF
17953 if ac_fn_c_try_cpp "$LINENO"
17954 then :
17955
17956 else case e in #(
17957 e) # Broken: fails on valid input.
17958 continue ;;
17959 esac
17960 fi
17961 rm -f conftest.err conftest.i conftest.$ac_ext
17962
17963 # OK, works on sane cases. Now check whether nonexistent headers
17964 # can be detected and how.
17965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17966 /* end confdefs.h. */
17967 #include <ac_nonexistent.h>
17968 _ACEOF
17969 if ac_fn_c_try_cpp "$LINENO"
17970 then :
17971 # Broken: success on invalid input.
17972 continue
17973 else case e in #(
17974 e) # Passes both tests.
17975 ac_preproc_ok=:
17976 break ;;
17977 esac
17978 fi
17979 rm -f conftest.err conftest.i conftest.$ac_ext
17980
17981 done
17982 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17983 rm -f conftest.i conftest.err conftest.$ac_ext
17984 if $ac_preproc_ok
17985 then :
17986
17987 else case e in #(
17988 e) { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
17989 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
17990 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
17991 See 'config.log' for more details" "$LINENO" 5; } ;;
17992 esac
17993 fi
17994
17995 ac_ext=c
17996 ac_cpp='$CPP $CPPFLAGS'
17997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18000
18001
18002 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
18003 printf %s "checking for egrep -e... " >&6; }
18004 if test ${ac_cv_path_EGREP_TRADITIONAL+y}
18005 then :
18006 printf %s "(cached) " >&6
18007 else case e in #(
18008 e) if test -z "$EGREP_TRADITIONAL"; then
18009 ac_path_EGREP_TRADITIONAL_found=false
18010 # Loop through the user's path and test for each of PROGNAME-LIST
18011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18012 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
18013 do
18014 IFS=$as_save_IFS
18015 case $as_dir in #(((
18016 '') as_dir=./ ;;
18017 */) ;;
18018 *) as_dir=$as_dir/ ;;
18019 esac
18020 for ac_prog in grep ggrep
18021 do
18022 for ac_exec_ext in '' $ac_executable_extensions; do
18023 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
18024 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
18025 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
18026 # Check for GNU $ac_path_EGREP_TRADITIONAL
18027 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
18028 *GNU*)
18029 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
18030 #(
18031 *)
18032 ac_count=0
18033 printf %s 0123456789 >"conftest.in"
18034 while :
18035 do
18036 cat "conftest.in" "conftest.in" >"conftest.tmp"
18037 mv "conftest.tmp" "conftest.in"
18038 cp "conftest.in" "conftest.nl"
18039 printf '%s\n' 'EGREP_TRADITIONAL' >> "conftest.nl"
18040 "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
18041 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
18042 as_fn_arith $ac_count + 1 && ac_count=$as_val
18043 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
18044 # Best one so far, save it but keep looking for a better one
18045 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
18046 ac_path_EGREP_TRADITIONAL_max=$ac_count
18047 fi
18048 # 10*(2^10) chars as input seems more than enough
18049 test $ac_count -gt 10 && break
18050 done
18051 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
18052 esac
18053
18054 $ac_path_EGREP_TRADITIONAL_found && break 3
18055 done
18056 done
18057 done
18058 IFS=$as_save_IFS
18059 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
18060 :
18061 fi
18062 else
18063 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
18064 fi
18065
18066 if test "$ac_cv_path_EGREP_TRADITIONAL"
18067 then :
18068 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
18069 else case e in #(
18070 e) if test -z "$EGREP_TRADITIONAL"; then
18071 ac_path_EGREP_TRADITIONAL_found=false
18072 # Loop through the user's path and test for each of PROGNAME-LIST
18073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18074 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
18075 do
18076 IFS=$as_save_IFS
18077 case $as_dir in #(((
18078 '') as_dir=./ ;;
18079 */) ;;
18080 *) as_dir=$as_dir/ ;;
18081 esac
18082 for ac_prog in egrep
18083 do
18084 for ac_exec_ext in '' $ac_executable_extensions; do
18085 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
18086 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
18087 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
18088 # Check for GNU $ac_path_EGREP_TRADITIONAL
18089 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
18090 *GNU*)
18091 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
18092 #(
18093 *)
18094 ac_count=0
18095 printf %s 0123456789 >"conftest.in"
18096 while :
18097 do
18098 cat "conftest.in" "conftest.in" >"conftest.tmp"
18099 mv "conftest.tmp" "conftest.in"
18100 cp "conftest.in" "conftest.nl"
18101 printf '%s\n' 'EGREP_TRADITIONAL' >> "conftest.nl"
18102 "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
18103 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
18104 as_fn_arith $ac_count + 1 && ac_count=$as_val
18105 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
18106 # Best one so far, save it but keep looking for a better one
18107 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
18108 ac_path_EGREP_TRADITIONAL_max=$ac_count
18109 fi
18110 # 10*(2^10) chars as input seems more than enough
18111 test $ac_count -gt 10 && break
18112 done
18113 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
18114 esac
18115
18116 $ac_path_EGREP_TRADITIONAL_found && break 3
18117 done
18118 done
18119 done
18120 IFS=$as_save_IFS
18121 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
18122 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
18123 fi
18124 else
18125 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
18126 fi
18127 ;;
18128 esac
18129 fi ;;
18130 esac
18131 fi
18132 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
18133 printf '%s\n' "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
18134 EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
18135
18136
18137
18138
18139
18140 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5
18141 printf %s "checking for ELF binary format... " >&6; }
18142 if test ${gl_cv_elf+y}
18143 then :
18144 printf %s "(cached) " >&6
18145 else case e in #(
18146 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18147 /* end confdefs.h. */
18148 #if defined __ELF__ || (defined __linux__ && (defined __EDG__ || defined __SUNPRO_C))
18149 Extensible Linking Format
18150 #endif
18151
18152 _ACEOF
18153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18154 $EGREP_TRADITIONAL "Extensible Linking Format" >/dev/null 2>&1
18155 then :
18156 gl_cv_elf=yes
18157 else case e in #(
18158 e) gl_cv_elf=no ;;
18159 esac
18160 fi
18161 rm -rf conftest*
18162
18163 ;;
18164 esac
18165 fi
18166 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5
18167 printf '%s\n' "$gl_cv_elf" >&6; }
18168 if test $gl_cv_elf = yes; then
18169 # Extract the ELF class of a file (5th byte) in decimal.
18170 # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
18171 if od -A x < /dev/null >/dev/null 2>/dev/null; then
18172 # Use POSIX od.
18173 func_elfclass ()
18174 {
18175 od -A n -t d1 -j 4 -N 1
18176 }
18177 else
18178 # Use BSD hexdump.
18179 func_elfclass ()
18180 {
18181 dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "'
18182 echo
18183 }
18184 fi
18185 # Use 'expr', not 'test', to compare the values of func_elfclass, because on
18186 # Solaris 11 OpenIndiana and Solaris 11 OmniOS, the result is 001 or 002,
18187 # not 1 or 2.
18188 case $HOST_CPU_C_ABI_32BIT in
18189 yes)
18190 # 32-bit ABI.
18191 acl_is_expected_elfclass ()
18192 {
18193 expr "`func_elfclass | sed -e 's/[ ]//g'`" = 1 > /dev/null
18194 }
18195 ;;
18196 no)
18197 # 64-bit ABI.
18198 acl_is_expected_elfclass ()
18199 {
18200 expr "`func_elfclass | sed -e 's/[ ]//g'`" = 2 > /dev/null
18201 }
18202 ;;
18203 *)
18204 # Unknown.
18205 acl_is_expected_elfclass ()
18206 {
18207 :
18208 }
18209 ;;
18210 esac
18211 else
18212 acl_is_expected_elfclass ()
18213 {
18214 :
18215 }
18216 fi
18217
18218 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
18219 printf %s "checking for the common suffixes of directories in the library search path... " >&6; }
18220 if test ${acl_cv_libdirstems+y}
18221 then :
18222 printf %s "(cached) " >&6
18223 else case e in #(
18224 e) acl_libdirstem=lib
18225 acl_libdirstem2=
18226 acl_libdirstem3=
18227 case "$host_os" in
18228 solaris*)
18229 if test $HOST_CPU_C_ABI_32BIT = no; then
18230 acl_libdirstem2=lib/64
18231 case "$host_cpu" in
18232 sparc*) acl_libdirstem3=lib/sparcv9 ;;
18233 i*86 | x86_64) acl_libdirstem3=lib/amd64 ;;
18234 esac
18235 fi
18236 ;;
18237 netbsd*)
18238 if test $HOST_CPU_C_ABI_32BIT != no; then
18239 case "$host_cpu" in
18240 sparc*) acl_libdirstem2=lib/sparc ;;
18241 esac
18242 fi
18243 ;;
18244 *)
18245 searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \
18246 | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
18247 if test $HOST_CPU_C_ABI_32BIT != no; then
18248 # 32-bit or unknown ABI.
18249 if test -d /usr/lib32; then
18250 acl_libdirstem2=lib32
18251 fi
18252 fi
18253 if test $HOST_CPU_C_ABI_32BIT != yes; then
18254 # 64-bit or unknown ABI.
18255 if test -d /usr/lib64; then
18256 acl_libdirstem3=lib64
18257 fi
18258 fi
18259 if test -n "$searchpath"; then
18260 acl_saved_IFS="${IFS= }"; IFS=":"
18261 for searchdir in $searchpath; do
18262 if test -d "$searchdir"; then
18263 case "$searchdir" in
18264 */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;;
18265 */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;;
18266 */../ | */.. )
18267 # Better ignore directories of this form. They are misleading.
18268 ;;
18269 *) searchdir=`cd "$searchdir" && pwd`
18270 case "$searchdir" in
18271 */lib32 ) acl_libdirstem2=lib32 ;;
18272 */lib64 ) acl_libdirstem3=lib64 ;;
18273 esac ;;
18274 esac
18275 fi
18276 done
18277 IFS="$acl_saved_IFS"
18278 if test $HOST_CPU_C_ABI_32BIT = yes; then
18279 # 32-bit ABI.
18280 acl_libdirstem3=
18281 fi
18282 if test $HOST_CPU_C_ABI_32BIT = no; then
18283 # 64-bit ABI.
18284 acl_libdirstem2=
18285 fi
18286 fi
18287 ;;
18288 esac
18289 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
18290 test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem"
18291 acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3"
18292 ;;
18293 esac
18294 fi
18295 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
18296 printf '%s\n' "$acl_cv_libdirstems" >&6; }
18297 acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
18298 acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'`
18299 acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'`
18300
18301
18302
18303
18304
18305
18306
18307
18308
18309
18310
18311 use_additional=yes
18312
18313 acl_saved_prefix="$prefix"
18314 prefix="$acl_final_prefix"
18315 acl_saved_exec_prefix="$exec_prefix"
18316 exec_prefix="$acl_final_exec_prefix"
18317
18318 eval additional_includedir=\"$includedir\"
18319 eval additional_libdir=\"$libdir\"
18320 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
18321 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
18322
18323 exec_prefix="$acl_saved_exec_prefix"
18324 prefix="$acl_saved_prefix"
18325
18326
18327 # Check whether --with-libiconv-prefix was given.
18328 if test ${with_libiconv_prefix+y}
18329 then :
18330 withval=$with_libiconv_prefix;
18331 if test "X$withval" = "Xno"; then
18332 use_additional=no
18333 else
18334 if test "X$withval" = "X"; then
18335
18336 acl_saved_prefix="$prefix"
18337 prefix="$acl_final_prefix"
18338 acl_saved_exec_prefix="$exec_prefix"
18339 exec_prefix="$acl_final_exec_prefix"
18340
18341 eval additional_includedir=\"$includedir\"
18342 eval additional_libdir=\"$libdir\"
18343 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
18344 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
18345
18346 exec_prefix="$acl_saved_exec_prefix"
18347 prefix="$acl_saved_prefix"
18348
18349 else
18350 additional_includedir="$withval/include"
18351 additional_libdir="$withval/$acl_libdirstem"
18352 additional_libdir2="$withval/$acl_libdirstem2"
18353 additional_libdir3="$withval/$acl_libdirstem3"
18354 fi
18355 fi
18356
18357 fi
18358
18359 if test "X$additional_libdir2" = "X$additional_libdir"; then
18360 additional_libdir2=
18361 fi
18362 if test "X$additional_libdir3" = "X$additional_libdir"; then
18363 additional_libdir3=
18364 fi
18365 LIBICONV=
18366 LTLIBICONV=
18367 INCICONV=
18368 LIBICONV_PREFIX=
18369 HAVE_LIBICONV=
18370 rpathdirs=
18371 ltrpathdirs=
18372 names_already_handled=
18373 names_next_round='iconv '
18374 while test -n "$names_next_round"; do
18375 names_this_round="$names_next_round"
18376 names_next_round=
18377 for name in $names_this_round; do
18378 already_handled=
18379 for n in $names_already_handled; do
18380 if test "$n" = "$name"; then
18381 already_handled=yes
18382 break
18383 fi
18384 done
18385 if test -z "$already_handled"; then
18386 names_already_handled="$names_already_handled $name"
18387 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
18388 eval value=\"\$HAVE_LIB$uppername\"
18389 if test -n "$value"; then
18390 if test "$value" = yes; then
18391 eval value=\"\$LIB$uppername\"
18392 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
18393 eval value=\"\$LTLIB$uppername\"
18394 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
18395 else
18396 :
18397 fi
18398 else
18399 found_dir=
18400 found_la=
18401 found_so=
18402 found_a=
18403 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
18404 if test -n "$acl_shlibext"; then
18405 shrext=".$acl_shlibext" # typically: shrext=.so
18406 else
18407 shrext=
18408 fi
18409 if test $use_additional = yes; then
18410 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
18411 if test "X$found_dir" = "X"; then
18412 eval dir=\$$additional_libdir_variable
18413 if test -n "$dir"; then
18414 if test -n "$acl_shlibext"; then
18415 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
18416 found_dir="$dir"
18417 found_so="$dir/$libname$shrext"
18418 else
18419 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18420 ver=`(cd "$dir" && \
18421 for f in "$libname$shrext".*; do echo "$f"; done \
18422 | sed -e "s,^$libname$shrext\\\\.,," \
18423 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18424 | sed 1q ) 2>/dev/null`
18425 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
18426 found_dir="$dir"
18427 found_so="$dir/$libname$shrext.$ver"
18428 fi
18429 else
18430 eval library_names=\"$acl_library_names_spec\"
18431 for f in $library_names; do
18432 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
18433 found_dir="$dir"
18434 found_so="$dir/$f"
18435 break
18436 fi
18437 done
18438 fi
18439 fi
18440 fi
18441 if test "X$found_dir" = "X"; then
18442 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
18443 found_dir="$dir"
18444 found_a="$dir/$libname.$acl_libext"
18445 fi
18446 fi
18447 if test "X$found_dir" != "X"; then
18448 if test -f "$dir/$libname.la"; then
18449 found_la="$dir/$libname.la"
18450 fi
18451 fi
18452 fi
18453 fi
18454 done
18455 fi
18456 if test "X$found_dir" = "X"; then
18457 for x in $LDFLAGS $LTLIBICONV; do
18458
18459 acl_saved_prefix="$prefix"
18460 prefix="$acl_final_prefix"
18461 acl_saved_exec_prefix="$exec_prefix"
18462 exec_prefix="$acl_final_exec_prefix"
18463 eval x=\"$x\"
18464 exec_prefix="$acl_saved_exec_prefix"
18465 prefix="$acl_saved_prefix"
18466
18467 case "$x" in
18468 -L*)
18469 dir=`echo "X$x" | sed -e 's/^X-L//'`
18470 if test -n "$acl_shlibext"; then
18471 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
18472 found_dir="$dir"
18473 found_so="$dir/$libname$shrext"
18474 else
18475 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18476 ver=`(cd "$dir" && \
18477 for f in "$libname$shrext".*; do echo "$f"; done \
18478 | sed -e "s,^$libname$shrext\\\\.,," \
18479 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18480 | sed 1q ) 2>/dev/null`
18481 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
18482 found_dir="$dir"
18483 found_so="$dir/$libname$shrext.$ver"
18484 fi
18485 else
18486 eval library_names=\"$acl_library_names_spec\"
18487 for f in $library_names; do
18488 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
18489 found_dir="$dir"
18490 found_so="$dir/$f"
18491 break
18492 fi
18493 done
18494 fi
18495 fi
18496 fi
18497 if test "X$found_dir" = "X"; then
18498 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
18499 found_dir="$dir"
18500 found_a="$dir/$libname.$acl_libext"
18501 fi
18502 fi
18503 if test "X$found_dir" != "X"; then
18504 if test -f "$dir/$libname.la"; then
18505 found_la="$dir/$libname.la"
18506 fi
18507 fi
18508 ;;
18509 esac
18510 if test "X$found_dir" != "X"; then
18511 break
18512 fi
18513 done
18514 fi
18515 if test "X$found_dir" != "X"; then
18516 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
18517 if test "X$found_so" != "X"; then
18518 if test "$enable_rpath" = no \
18519 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
18520 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
18521 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
18522 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18523 else
18524 haveit=
18525 for x in $ltrpathdirs; do
18526 if test "X$x" = "X$found_dir"; then
18527 haveit=yes
18528 break
18529 fi
18530 done
18531 if test -z "$haveit"; then
18532 ltrpathdirs="$ltrpathdirs $found_dir"
18533 fi
18534 if test "$acl_hardcode_direct" = yes; then
18535 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18536 else
18537 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
18538 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18539 haveit=
18540 for x in $rpathdirs; do
18541 if test "X$x" = "X$found_dir"; then
18542 haveit=yes
18543 break
18544 fi
18545 done
18546 if test -z "$haveit"; then
18547 rpathdirs="$rpathdirs $found_dir"
18548 fi
18549 else
18550 haveit=
18551 for x in $LDFLAGS $LIBICONV; do
18552
18553 acl_saved_prefix="$prefix"
18554 prefix="$acl_final_prefix"
18555 acl_saved_exec_prefix="$exec_prefix"
18556 exec_prefix="$acl_final_exec_prefix"
18557 eval x=\"$x\"
18558 exec_prefix="$acl_saved_exec_prefix"
18559 prefix="$acl_saved_prefix"
18560
18561 if test "X$x" = "X-L$found_dir"; then
18562 haveit=yes
18563 break
18564 fi
18565 done
18566 if test -z "$haveit"; then
18567 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
18568 fi
18569 if test "$acl_hardcode_minus_L" != no; then
18570 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18571 else
18572 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18573 fi
18574 fi
18575 fi
18576 fi
18577 else
18578 if test "X$found_a" != "X"; then
18579 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
18580 else
18581 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
18582 fi
18583 fi
18584 additional_includedir=
18585 case "$found_dir" in
18586 */$acl_libdirstem | */$acl_libdirstem/)
18587 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
18588 if test "$name" = 'iconv'; then
18589 LIBICONV_PREFIX="$basedir"
18590 fi
18591 additional_includedir="$basedir/include"
18592 ;;
18593 */$acl_libdirstem2 | */$acl_libdirstem2/)
18594 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
18595 if test "$name" = 'iconv'; then
18596 LIBICONV_PREFIX="$basedir"
18597 fi
18598 additional_includedir="$basedir/include"
18599 ;;
18600 */$acl_libdirstem3 | */$acl_libdirstem3/)
18601 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
18602 if test "$name" = 'iconv'; then
18603 LIBICONV_PREFIX="$basedir"
18604 fi
18605 additional_includedir="$basedir/include"
18606 ;;
18607 esac
18608 if test "X$additional_includedir" != "X"; then
18609 if test "X$additional_includedir" != "X/usr/include"; then
18610 haveit=
18611 if test "X$additional_includedir" = "X/usr/local/include"; then
18612 if test -n "$GCC"; then
18613 case $host_os in
18614 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18615 esac
18616 fi
18617 fi
18618 if test -z "$haveit"; then
18619 for x in $CPPFLAGS $INCICONV; do
18620
18621 acl_saved_prefix="$prefix"
18622 prefix="$acl_final_prefix"
18623 acl_saved_exec_prefix="$exec_prefix"
18624 exec_prefix="$acl_final_exec_prefix"
18625 eval x=\"$x\"
18626 exec_prefix="$acl_saved_exec_prefix"
18627 prefix="$acl_saved_prefix"
18628
18629 if test "X$x" = "X-I$additional_includedir"; then
18630 haveit=yes
18631 break
18632 fi
18633 done
18634 if test -z "$haveit"; then
18635 if test -d "$additional_includedir"; then
18636 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
18637 fi
18638 fi
18639 fi
18640 fi
18641 fi
18642 if test -n "$found_la"; then
18643 saved_libdir="$libdir"
18644 case "$found_la" in
18645 */* | *\\*) . "$found_la" ;;
18646 *) . "./$found_la" ;;
18647 esac
18648 libdir="$saved_libdir"
18649 for dep in $dependency_libs; do
18650 case "$dep" in
18651 -L*)
18652 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18653 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
18654 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
18655 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
18656 haveit=
18657 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
18658 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
18659 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
18660 if test -n "$GCC"; then
18661 case $host_os in
18662 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18663 esac
18664 fi
18665 fi
18666 if test -z "$haveit"; then
18667 haveit=
18668 for x in $LDFLAGS $LIBICONV; do
18669
18670 acl_saved_prefix="$prefix"
18671 prefix="$acl_final_prefix"
18672 acl_saved_exec_prefix="$exec_prefix"
18673 exec_prefix="$acl_final_exec_prefix"
18674 eval x=\"$x\"
18675 exec_prefix="$acl_saved_exec_prefix"
18676 prefix="$acl_saved_prefix"
18677
18678 if test "X$x" = "X-L$dependency_libdir"; then
18679 haveit=yes
18680 break
18681 fi
18682 done
18683 if test -z "$haveit"; then
18684 if test -d "$dependency_libdir"; then
18685 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir"
18686 fi
18687 fi
18688 haveit=
18689 for x in $LDFLAGS $LTLIBICONV; do
18690
18691 acl_saved_prefix="$prefix"
18692 prefix="$acl_final_prefix"
18693 acl_saved_exec_prefix="$exec_prefix"
18694 exec_prefix="$acl_final_exec_prefix"
18695 eval x=\"$x\"
18696 exec_prefix="$acl_saved_exec_prefix"
18697 prefix="$acl_saved_prefix"
18698
18699 if test "X$x" = "X-L$dependency_libdir"; then
18700 haveit=yes
18701 break
18702 fi
18703 done
18704 if test -z "$haveit"; then
18705 if test -d "$dependency_libdir"; then
18706 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir"
18707 fi
18708 fi
18709 fi
18710 fi
18711 ;;
18712 -R*)
18713 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18714 if test "$enable_rpath" != no; then
18715 haveit=
18716 for x in $rpathdirs; do
18717 if test "X$x" = "X$dir"; then
18718 haveit=yes
18719 break
18720 fi
18721 done
18722 if test -z "$haveit"; then
18723 rpathdirs="$rpathdirs $dir"
18724 fi
18725 haveit=
18726 for x in $ltrpathdirs; do
18727 if test "X$x" = "X$dir"; then
18728 haveit=yes
18729 break
18730 fi
18731 done
18732 if test -z "$haveit"; then
18733 ltrpathdirs="$ltrpathdirs $dir"
18734 fi
18735 fi
18736 ;;
18737 -l*)
18738 dep=`echo "X$dep" | sed -e 's/^X-l//'`
18739 if test "X$dep" != Xc \
18740 || case $host_os in
18741 linux* | gnu* | k*bsd*-gnu) false ;;
18742 *) true ;;
18743 esac; then
18744 names_next_round="$names_next_round $dep"
18745 fi
18746 ;;
18747 *.la)
18748 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18749 ;;
18750 *)
18751 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
18752 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
18753 ;;
18754 esac
18755 done
18756 fi
18757 else
18758 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18759 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
18760 fi
18761 fi
18762 fi
18763 done
18764 done
18765 if test "X$rpathdirs" != "X"; then
18766 if test -n "$acl_hardcode_libdir_separator"; then
18767 alldirs=
18768 for found_dir in $rpathdirs; do
18769 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
18770 done
18771 acl_saved_libdir="$libdir"
18772 libdir="$alldirs"
18773 eval flag=\"$acl_hardcode_libdir_flag_spec\"
18774 libdir="$acl_saved_libdir"
18775 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18776 else
18777 for found_dir in $rpathdirs; do
18778 acl_saved_libdir="$libdir"
18779 libdir="$found_dir"
18780 eval flag=\"$acl_hardcode_libdir_flag_spec\"
18781 libdir="$acl_saved_libdir"
18782 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18783 done
18784 fi
18785 fi
18786 if test "X$ltrpathdirs" != "X"; then
18787 for found_dir in $ltrpathdirs; do
18788 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
18789 done
18790 fi
18791
18792
18793
18794
18795
18796
18797
18798
18799
18800
18801
18802 gl_saved_CPPFLAGS="$CPPFLAGS"
18803
18804 for element in $INCICONV; do
18805 haveit=
18806 for x in $CPPFLAGS; do
18807
18808 acl_saved_prefix="$prefix"
18809 prefix="$acl_final_prefix"
18810 acl_saved_exec_prefix="$exec_prefix"
18811 exec_prefix="$acl_final_exec_prefix"
18812 eval x=\"$x\"
18813 exec_prefix="$acl_saved_exec_prefix"
18814 prefix="$acl_saved_prefix"
18815
18816 if test "X$x" = "X$element"; then
18817 haveit=yes
18818 break
18819 fi
18820 done
18821 if test -z "$haveit"; then
18822 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18823 fi
18824 done
18825
18826
18827 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
18828 printf %s "checking for iconv... " >&6; }
18829 if test ${am_cv_func_iconv+y}
18830 then :
18831 printf %s "(cached) " >&6
18832 else case e in #(
18833 e)
18834 am_cv_func_iconv="no, consider installing GNU libiconv"
18835 am_cv_lib_iconv=no
18836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18837 /* end confdefs.h. */
18838
18839 #include <stdlib.h>
18840 #include <iconv.h>
18841
18842 int
18843 main (void)
18844 {
18845 iconv_t cd = iconv_open("","");
18846 iconv(cd,NULL,NULL,NULL,NULL);
18847 iconv_close(cd);
18848 ;
18849 return 0;
18850 }
18851 _ACEOF
18852 if ac_fn_c_try_link "$LINENO"
18853 then :
18854 am_cv_func_iconv=yes
18855 fi
18856 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18857 conftest$ac_exeext conftest.$ac_ext
18858 if test "$am_cv_func_iconv" != yes; then
18859 gl_saved_LIBS="$LIBS"
18860 LIBS="$LIBS $LIBICONV"
18861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18862 /* end confdefs.h. */
18863
18864 #include <stdlib.h>
18865 #include <iconv.h>
18866
18867 int
18868 main (void)
18869 {
18870 iconv_t cd = iconv_open("","");
18871 iconv(cd,NULL,NULL,NULL,NULL);
18872 iconv_close(cd);
18873 ;
18874 return 0;
18875 }
18876 _ACEOF
18877 if ac_fn_c_try_link "$LINENO"
18878 then :
18879 am_cv_lib_iconv=yes
18880 am_cv_func_iconv=yes
18881 fi
18882 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18883 conftest$ac_exeext conftest.$ac_ext
18884 LIBS="$gl_saved_LIBS"
18885 fi
18886 ;;
18887 esac
18888 fi
18889 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
18890 printf '%s\n' "$am_cv_func_iconv" >&6; }
18891 if test "$am_cv_func_iconv" = yes; then
18892 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
18893 printf %s "checking for working iconv... " >&6; }
18894 if test ${am_cv_func_iconv_works+y}
18895 then :
18896 printf %s "(cached) " >&6
18897 else case e in #(
18898 e)
18899 gl_saved_LIBS="$LIBS"
18900 if test $am_cv_lib_iconv = yes; then
18901 LIBS="$LIBS $LIBICONV"
18902 fi
18903 am_cv_func_iconv_works=no
18904 for ac_iconv_const in '' 'const'; do
18905 if test "$cross_compiling" = yes
18906 then :
18907 case "$host_os" in
18908 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
18909 *) am_cv_func_iconv_works="guessing yes" ;;
18910 esac
18911 else case e in #(
18912 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18913 /* end confdefs.h. */
18914
18915 #include <iconv.h>
18916 #include <string.h>
18917
18918 #ifndef ICONV_CONST
18919 # define ICONV_CONST $ac_iconv_const
18920 #endif
18921
18922 int
18923 main (void)
18924 {
18925 int result = 0;
18926 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
18927 successful returns. This is even documented in
18928 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
18929 {
18930 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
18931 if (cd_utf8_to_88591 != (iconv_t)(-1))
18932 {
18933 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
18934 char buf[10];
18935 ICONV_CONST char *inptr = input;
18936 size_t inbytesleft = strlen (input);
18937 char *outptr = buf;
18938 size_t outbytesleft = sizeof (buf);
18939 size_t res = iconv (cd_utf8_to_88591,
18940 &inptr, &inbytesleft,
18941 &outptr, &outbytesleft);
18942 if (res == 0)
18943 result |= 1;
18944 iconv_close (cd_utf8_to_88591);
18945 }
18946 }
18947 /* Test against macOS 14.4 bug: Failures are not distinguishable from
18948 successful returns.
18949 POSIX:2018 says: "The iconv() function shall ... return the number of
18950 non-identical conversions performed."
18951 But here, the conversion always does transliteration (the suffixes
18952 "//TRANSLIT" and "//IGNORE" have no effect, nor does iconvctl()) and
18953 does not report when it does a non-identical conversion. */
18954 {
18955 iconv_t cd_utf8_to_88591 = iconv_open ("ISO-8859-1", "UTF-8");
18956 if (cd_utf8_to_88591 != (iconv_t)(-1))
18957 {
18958 static ICONV_CONST char input[] = "\305\202"; /* LATIN SMALL LETTER L WITH STROKE */
18959 char buf[10];
18960 ICONV_CONST char *inptr = input;
18961 size_t inbytesleft = strlen (input);
18962 char *outptr = buf;
18963 size_t outbytesleft = sizeof (buf);
18964 size_t res = iconv (cd_utf8_to_88591,
18965 &inptr, &inbytesleft,
18966 &outptr, &outbytesleft);
18967 /* Here:
18968 With glibc, GNU libiconv (including macOS up to 13): res == (size_t)-1, errno == EILSEQ.
18969 With musl libc, NetBSD 10, Solaris 11: res == 1.
18970 With macOS 14.4: res == 0, output is "l". */
18971 if (res == 0)
18972 result |= 2;
18973 iconv_close (cd_utf8_to_88591);
18974 }
18975 }
18976 /* Test against Solaris 10 bug: Failures are not distinguishable from
18977 successful returns. */
18978 {
18979 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
18980 if (cd_ascii_to_88591 != (iconv_t)(-1))
18981 {
18982 static ICONV_CONST char input[] = "\263";
18983 char buf[10];
18984 ICONV_CONST char *inptr = input;
18985 size_t inbytesleft = strlen (input);
18986 char *outptr = buf;
18987 size_t outbytesleft = sizeof (buf);
18988 size_t res = iconv (cd_ascii_to_88591,
18989 &inptr, &inbytesleft,
18990 &outptr, &outbytesleft);
18991 if (res == 0)
18992 result |= 4;
18993 iconv_close (cd_ascii_to_88591);
18994 }
18995 }
18996 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
18997 {
18998 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
18999 if (cd_88591_to_utf8 != (iconv_t)(-1))
19000 {
19001 static ICONV_CONST char input[] = "\304";
19002 static char buf[2] = { (char)0xDE, (char)0xAD };
19003 ICONV_CONST char *inptr = input;
19004 size_t inbytesleft = 1;
19005 char *outptr = buf;
19006 size_t outbytesleft = 1;
19007 size_t res = iconv (cd_88591_to_utf8,
19008 &inptr, &inbytesleft,
19009 &outptr, &outbytesleft);
19010 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
19011 result |= 8;
19012 iconv_close (cd_88591_to_utf8);
19013 }
19014 }
19015 #if 0 /* This bug could be worked around by the caller. */
19016 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
19017 {
19018 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
19019 if (cd_88591_to_utf8 != (iconv_t)(-1))
19020 {
19021 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
19022 char buf[50];
19023 ICONV_CONST char *inptr = input;
19024 size_t inbytesleft = strlen (input);
19025 char *outptr = buf;
19026 size_t outbytesleft = sizeof (buf);
19027 size_t res = iconv (cd_88591_to_utf8,
19028 &inptr, &inbytesleft,
19029 &outptr, &outbytesleft);
19030 if ((int)res > 0)
19031 result |= 16;
19032 iconv_close (cd_88591_to_utf8);
19033 }
19034 }
19035 #endif
19036 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
19037 provided. */
19038 {
19039 /* Try standardized names. */
19040 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
19041 /* Try IRIX, OSF/1 names. */
19042 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
19043 /* Try AIX names. */
19044 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
19045 /* Try HP-UX names. */
19046 iconv_t cd4 = iconv_open ("utf8", "eucJP");
19047 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
19048 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
19049 result |= 32;
19050 if (cd1 != (iconv_t)(-1))
19051 iconv_close (cd1);
19052 if (cd2 != (iconv_t)(-1))
19053 iconv_close (cd2);
19054 if (cd3 != (iconv_t)(-1))
19055 iconv_close (cd3);
19056 if (cd4 != (iconv_t)(-1))
19057 iconv_close (cd4);
19058 }
19059 return result;
19060
19061 ;
19062 return 0;
19063 }
19064 _ACEOF
19065 if ac_fn_c_try_run "$LINENO"
19066 then :
19067 am_cv_func_iconv_works=yes
19068 fi
19069 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19070 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19071 esac
19072 fi
19073
19074 test "$am_cv_func_iconv_works" = no || break
19075 done
19076 LIBS="$gl_saved_LIBS"
19077 ;;
19078 esac
19079 fi
19080 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
19081 printf '%s\n' "$am_cv_func_iconv_works" >&6; }
19082 case "$am_cv_func_iconv_works" in
19083 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
19084 *) am_func_iconv=yes ;;
19085 esac
19086 else
19087 am_func_iconv=no am_cv_lib_iconv=no
19088 fi
19089 if test "$am_func_iconv" = yes; then
19090
19091 printf '%s\n' "#define HAVE_ICONV 1" >>confdefs.h
19092
19093 fi
19094 if test "$am_cv_lib_iconv" = yes; then
19095 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
19096 printf %s "checking how to link with libiconv... " >&6; }
19097 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
19098 printf '%s\n' "$LIBICONV" >&6; }
19099 else
19100 CPPFLAGS="$gl_saved_CPPFLAGS"
19101 LIBICONV=
19102 LTLIBICONV=
19103 fi
19104
19105
19106
19107 if test "$am_cv_func_iconv" = yes; then
19108 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether iconv is compatible with its POSIX signature" >&5
19109 printf %s "checking whether iconv is compatible with its POSIX signature... " >&6; }
19110 if test ${gl_cv_iconv_nonconst+y}
19111 then :
19112 printf %s "(cached) " >&6
19113 else case e in #(
19114 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19115 /* end confdefs.h. */
19116
19117 #include <stdlib.h>
19118 #include <iconv.h>
19119 extern
19120 #ifdef __cplusplus
19121 "C"
19122 #endif
19123 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
19124
19125 int
19126 main (void)
19127 {
19128
19129 ;
19130 return 0;
19131 }
19132 _ACEOF
19133 if ac_fn_c_try_compile "$LINENO"
19134 then :
19135 gl_cv_iconv_nonconst=yes
19136 else case e in #(
19137 e) gl_cv_iconv_nonconst=no ;;
19138 esac
19139 fi
19140 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19141 ;;
19142 esac
19143 fi
19144 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $gl_cv_iconv_nonconst" >&5
19145 printf '%s\n' "$gl_cv_iconv_nonconst" >&6; }
19146 else
19147 gl_cv_iconv_nonconst=yes
19148 fi
19149 if test $gl_cv_iconv_nonconst = yes; then
19150 iconv_arg1=""
19151 else
19152 iconv_arg1="const"
19153 fi
19154
19155 printf '%s\n' "#define ICONV_CONST $iconv_arg1" >>confdefs.h
19156
19157
19158
19159 if test "$am_func_iconv" = yes; then
19160 if test -n "$LIBICONV"; then
19161 am_cv_func_iconv_summary='yes, in libiconv'
19162 else
19163 am_cv_func_iconv_summary='yes, in libc'
19164 fi
19165 else
19166 if test "$am_cv_func_iconv" = yes; then
19167 am_cv_func_iconv_summary='not working, consider installing GNU libiconv'
19168 else
19169 am_cv_func_iconv_summary='no, consider installing GNU libiconv'
19170 fi
19171 fi
19172
19173
19174 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
19175 printf %s "checking for cos in -lm... " >&6; }
19176 if test ${ac_cv_lib_m_cos+y}
19177 then :
19178 printf %s "(cached) " >&6
19179 else case e in #(
19180 e) ac_check_lib_save_LIBS=$LIBS
19181 LIBS="-lm $LIBS"
19182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19183 /* end confdefs.h. */
19184
19185 /* Override any GCC internal prototype to avoid an error.
19186 Use char because int might match the return type of a GCC
19187 builtin and then its argument prototype would still apply.
19188 The 'extern "C"' is for builds by C++ compilers;
19189 although this is not generally supported in C code supporting it here
19190 has little cost and some practical benefit (sr 110532). */
19191 #ifdef __cplusplus
19192 extern "C"
19193 #endif
19194 char cos (void);
19195 int
19196 main (void)
19197 {
19198 return cos ();
19199 ;
19200 return 0;
19201 }
19202 _ACEOF
19203 if ac_fn_c_try_link "$LINENO"
19204 then :
19205 ac_cv_lib_m_cos=yes
19206 else case e in #(
19207 e) ac_cv_lib_m_cos=no ;;
19208 esac
19209 fi
19210 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19211 conftest$ac_exeext conftest.$ac_ext
19212 LIBS=$ac_check_lib_save_LIBS ;;
19213 esac
19214 fi
19215 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
19216 printf '%s\n' "$ac_cv_lib_m_cos" >&6; }
19217 if test "x$ac_cv_lib_m_cos" = xyes
19218 then :
19219 USE_LIBM="-lm"
19220 fi
19221
19222 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for cos in -lffm" >&5
19223 printf %s "checking for cos in -lffm... " >&6; }
19224 if test ${ac_cv_lib_ffm_cos+y}
19225 then :
19226 printf %s "(cached) " >&6
19227 else case e in #(
19228 e) ac_check_lib_save_LIBS=$LIBS
19229 LIBS="-lffm $LIBS"
19230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19231 /* end confdefs.h. */
19232
19233 /* Override any GCC internal prototype to avoid an error.
19234 Use char because int might match the return type of a GCC
19235 builtin and then its argument prototype would still apply.
19236 The 'extern "C"' is for builds by C++ compilers;
19237 although this is not generally supported in C code supporting it here
19238 has little cost and some practical benefit (sr 110532). */
19239 #ifdef __cplusplus
19240 extern "C"
19241 #endif
19242 char cos (void);
19243 int
19244 main (void)
19245 {
19246 return cos ();
19247 ;
19248 return 0;
19249 }
19250 _ACEOF
19251 if ac_fn_c_try_link "$LINENO"
19252 then :
19253 ac_cv_lib_ffm_cos=yes
19254 else case e in #(
19255 e) ac_cv_lib_ffm_cos=no ;;
19256 esac
19257 fi
19258 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19259 conftest$ac_exeext conftest.$ac_ext
19260 LIBS=$ac_check_lib_save_LIBS ;;
19261 esac
19262 fi
19263 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ffm_cos" >&5
19264 printf '%s\n' "$ac_cv_lib_ffm_cos" >&6; }
19265 if test "x$ac_cv_lib_ffm_cos" = xyes
19266 then :
19267 USE_LIBM="-lffm -lm"
19268 fi
19269
19270 # Check whether --enable-cpml was given.
19271 if test ${enable_cpml+y}
19272 then :
19273 enableval=$enable_cpml; CONFIG_CPML="no"
19274 else case e in #(
19275 e) CONFIG_CPML="yes" ;;
19276 esac
19277 fi
19278
19279 if test "${CONFIG_CPML}" = yes; then
19280 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for cos in -lcpml" >&5
19281 printf %s "checking for cos in -lcpml... " >&6; }
19282 if test ${ac_cv_lib_cpml_cos+y}
19283 then :
19284 printf %s "(cached) " >&6
19285 else case e in #(
19286 e) ac_check_lib_save_LIBS=$LIBS
19287 LIBS="-lcpml $LIBS"
19288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19289 /* end confdefs.h. */
19290
19291 /* Override any GCC internal prototype to avoid an error.
19292 Use char because int might match the return type of a GCC
19293 builtin and then its argument prototype would still apply.
19294 The 'extern "C"' is for builds by C++ compilers;
19295 although this is not generally supported in C code supporting it here
19296 has little cost and some practical benefit (sr 110532). */
19297 #ifdef __cplusplus
19298 extern "C"
19299 #endif
19300 char cos (void);
19301 int
19302 main (void)
19303 {
19304 return cos ();
19305 ;
19306 return 0;
19307 }
19308 _ACEOF
19309 if ac_fn_c_try_link "$LINENO"
19310 then :
19311 ac_cv_lib_cpml_cos=yes
19312 else case e in #(
19313 e) ac_cv_lib_cpml_cos=no ;;
19314 esac
19315 fi
19316 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19317 conftest$ac_exeext conftest.$ac_ext
19318 LIBS=$ac_check_lib_save_LIBS ;;
19319 esac
19320 fi
19321 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cpml_cos" >&5
19322 printf '%s\n' "$ac_cv_lib_cpml_cos" >&6; }
19323 if test "x$ac_cv_lib_cpml_cos" = xyes
19324 then :
19325 USE_LIBM="-lcpml"
19326 fi
19327
19328 fi
19329 CONFIG_MATH_LIB="${USE_LIBM}"
19330
19331
19332
19333 # Check whether --with-gtk-prefix was given.
19334 if test ${with_gtk_prefix+y}
19335 then :
19336 withval=$with_gtk_prefix; gtk_config_prefix="$withval"
19337 else case e in #(
19338 e) gtk_config_prefix="" ;;
19339 esac
19340 fi
19341
19342
19343 # Check whether --with-gtk-exec-prefix was given.
19344 if test ${with_gtk_exec_prefix+y}
19345 then :
19346 withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
19347 else case e in #(
19348 e) gtk_config_exec_prefix="" ;;
19349 esac
19350 fi
19351
19352 # Check whether --enable-gtktest was given.
19353 if test ${enable_gtktest+y}
19354 then :
19355 enableval=$enable_gtktest;
19356 else case e in #(
19357 e) enable_gtktest=yes ;;
19358 esac
19359 fi
19360
19361
19362 for module in .
19363 do
19364 case "$module" in
19365 gthread)
19366 gtk_config_args="$gtk_config_args gthread"
19367 ;;
19368 esac
19369 done
19370
19371 if test x$gtk_config_exec_prefix != x ; then
19372 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
19373 if test x${GTK_CONFIG+set} != xset ; then
19374 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
19375 fi
19376 fi
19377 if test x$gtk_config_prefix != x ; then
19378 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
19379 if test x${GTK_CONFIG+set} != xset ; then
19380 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
19381 fi
19382 fi
19383
19384 # Extract the first word of "gtk-config", so it can be a program name with args.
19385 set dummy gtk-config; ac_word=$2
19386 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19387 printf %s "checking for $ac_word... " >&6; }
19388 if test ${ac_cv_path_GTK_CONFIG+y}
19389 then :
19390 printf %s "(cached) " >&6
19391 else case e in #(
19392 e) case $GTK_CONFIG in
19393 [\\/]* | ?:[\\/]*)
19394 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
19395 ;;
19396 *)
19397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19398 for as_dir in $PATH
19399 do
19400 IFS=$as_save_IFS
19401 case $as_dir in #(((
19402 '') as_dir=./ ;;
19403 */) ;;
19404 *) as_dir=$as_dir/ ;;
19405 esac
19406 for ac_exec_ext in '' $ac_executable_extensions; do
19407 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19408 ac_cv_path_GTK_CONFIG="$as_dir$ac_word$ac_exec_ext"
19409 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19410 break 2
19411 fi
19412 done
19413 done
19414 IFS=$as_save_IFS
19415
19416 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
19417 ;;
19418 esac ;;
19419 esac
19420 fi
19421 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
19422 if test -n "$GTK_CONFIG"; then
19423 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $GTK_CONFIG" >&5
19424 printf '%s\n' "$GTK_CONFIG" >&6; }
19425 else
19426 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
19427 printf '%s\n' "no" >&6; }
19428 fi
19429
19430
19431 min_gtk_version=1.2.0
19432 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
19433 printf %s "checking for GTK - version >= $min_gtk_version... " >&6; }
19434 no_gtk=""
19435 if test "$GTK_CONFIG" = "no" ; then
19436 no_gtk=yes
19437 else
19438 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
19439 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
19440 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
19441 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
19442 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
19443 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
19444 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
19445 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
19446 if test "x$enable_gtktest" = "xyes" ; then
19447 ac_save_CFLAGS="$CFLAGS"
19448 ac_save_LIBS="$LIBS"
19449 CFLAGS="$CFLAGS $GTK_CFLAGS"
19450 LIBS="$GTK_LIBS $LIBS"
19451 rm -f conf.gtktest
19452 if test "$cross_compiling" = yes
19453 then :
19454 echo $ac_n "cross compiling; assumed OK... $ac_c"
19455 else case e in #(
19456 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19457 /* end confdefs.h. */
19458
19459 #include <gtk/gtk.h>
19460 #include <stdio.h>
19461 #include <stdlib.h>
19462
19463 int
19464 main ()
19465 {
19466 int major, minor, micro;
19467 char *tmp_version;
19468
19469 system ("touch conf.gtktest");
19470
19471 /* HP/UX 9 (%@#!) writes to sscanf strings */
19472 tmp_version = g_strdup("$min_gtk_version");
19473 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
19474 printf("%s, bad version string\n", "$min_gtk_version");
19475 exit(1);
19476 }
19477
19478 if ((gtk_major_version != $gtk_config_major_version) ||
19479 (gtk_minor_version != $gtk_config_minor_version) ||
19480 (gtk_micro_version != $gtk_config_micro_version))
19481 {
19482 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
19483 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
19484 gtk_major_version, gtk_minor_version, gtk_micro_version);
19485 printf ("*** was found! If gtk-config was correct, then it is best\n");
19486 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
19487 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
19488 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
19489 printf("*** required on your system.\n");
19490 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
19491 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
19492 printf("*** before re-running configure\n");
19493 }
19494 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
19495 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
19496 (gtk_minor_version != GTK_MINOR_VERSION) ||
19497 (gtk_micro_version != GTK_MICRO_VERSION))
19498 {
19499 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
19500 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
19501 printf("*** library (version %d.%d.%d)\n",
19502 gtk_major_version, gtk_minor_version, gtk_micro_version);
19503 }
19504 #endif /* defined (GTK_MAJOR_VERSION) ... */
19505 else
19506 {
19507 if ((gtk_major_version > major) ||
19508 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
19509 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
19510 {
19511 return 0;
19512 }
19513 else
19514 {
19515 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
19516 gtk_major_version, gtk_minor_version, gtk_micro_version);
19517 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
19518 major, minor, micro);
19519 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
19520 printf("***\n");
19521 printf("*** If you have already installed a sufficiently new version, this error\n");
19522 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
19523 printf("*** being found. The easiest way to fix this is to remove the old version\n");
19524 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
19525 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
19526 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
19527 printf("*** so that the correct libraries are found at run-time))\n");
19528 }
19529 }
19530 return 1;
19531 }
19532
19533 _ACEOF
19534 if ac_fn_c_try_run "$LINENO"
19535 then :
19536
19537 else case e in #(
19538 e) no_gtk=yes ;;
19539 esac
19540 fi
19541 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19542 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19543 esac
19544 fi
19545
19546 CFLAGS="$ac_save_CFLAGS"
19547 LIBS="$ac_save_LIBS"
19548 fi
19549 fi
19550 if test "x$no_gtk" = x ; then
19551 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19552 printf '%s\n' "yes" >&6; }
19553 HAVE_GTK="yes"
19554 else
19555 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
19556 printf '%s\n' "no" >&6; }
19557 if test "$GTK_CONFIG" = "no" ; then
19558 echo "*** The gtk-config script installed by GTK could not be found"
19559 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
19560 echo "*** your path, or set the GTK_CONFIG environment variable to the"
19561 echo "*** full path to gtk-config."
19562 else
19563 if test -f conf.gtktest ; then
19564 :
19565 else
19566 echo "*** Could not run GTK test program, checking why..."
19567 CFLAGS="$CFLAGS $GTK_CFLAGS"
19568 LIBS="$LIBS $GTK_LIBS"
19569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19570 /* end confdefs.h. */
19571
19572 #include <gtk/gtk.h>
19573 #include <stdio.h>
19574
19575 int
19576 main (void)
19577 {
19578 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
19579 ;
19580 return 0;
19581 }
19582 _ACEOF
19583 if ac_fn_c_try_link "$LINENO"
19584 then :
19585 echo "*** The test program compiled, but did not run. This usually means"
19586 echo "*** that the run-time linker is not finding GTK or finding the wrong"
19587 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
19588 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
19589 echo "*** to the installed location Also, make sure you have run ldconfig if that"
19590 echo "*** is required on your system"
19591 echo "***"
19592 echo "*** If you have an old version installed, it is best to remove it, although"
19593 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
19594 echo "***"
19595 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
19596 echo "*** came with the system with the command"
19597 echo "***"
19598 echo "*** rpm --erase --nodeps gtk gtk-devel"
19599 else case e in #(
19600 e) echo "*** The test program failed to compile or link. See the file config.log for the"
19601 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
19602 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
19603 echo "*** may want to edit the gtk-config script: $GTK_CONFIG" ;;
19604 esac
19605 fi
19606 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19607 conftest$ac_exeext conftest.$ac_ext
19608 CFLAGS="$ac_save_CFLAGS"
19609 LIBS="$ac_save_LIBS"
19610 fi
19611 fi
19612 GTK_CFLAGS=""
19613 GTK_LIBS=""
19614 HAVE_GTK="no"
19615 fi
19616
19617
19618 rm -f conf.gtktest
19619
19620
19621 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking use of ElectricFence malloc debugging" >&5
19622 printf %s "checking use of ElectricFence malloc debugging... " >&6; }
19623 # Check whether --enable-efence was given.
19624 if test ${enable_efence+y}
19625 then :
19626 enableval=$enable_efence; CONFIG_EFENCE="${enableval}"
19627 else case e in #(
19628 e) CONFIG_EFENCE="no" ;;
19629 esac
19630 fi
19631
19632
19633 case "${CONFIG_EFENCE}" in
19634 yes)
19635 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for EF_Print in -lefence" >&5
19636 printf %s "checking for EF_Print in -lefence... " >&6; }
19637 if test ${ac_cv_lib_efence_EF_Print+y}
19638 then :
19639 printf %s "(cached) " >&6
19640 else case e in #(
19641 e) ac_check_lib_save_LIBS=$LIBS
19642 LIBS="-lefence $LIBS"
19643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19644 /* end confdefs.h. */
19645
19646 /* Override any GCC internal prototype to avoid an error.
19647 Use char because int might match the return type of a GCC
19648 builtin and then its argument prototype would still apply.
19649 The 'extern "C"' is for builds by C++ compilers;
19650 although this is not generally supported in C code supporting it here
19651 has little cost and some practical benefit (sr 110532). */
19652 #ifdef __cplusplus
19653 extern "C"
19654 #endif
19655 char EF_Print (void);
19656 int
19657 main (void)
19658 {
19659 return EF_Print ();
19660 ;
19661 return 0;
19662 }
19663 _ACEOF
19664 if ac_fn_c_try_link "$LINENO"
19665 then :
19666 ac_cv_lib_efence_EF_Print=yes
19667 else case e in #(
19668 e) ac_cv_lib_efence_EF_Print=no ;;
19669 esac
19670 fi
19671 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19672 conftest$ac_exeext conftest.$ac_ext
19673 LIBS=$ac_check_lib_save_LIBS ;;
19674 esac
19675 fi
19676 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efence_EF_Print" >&5
19677 printf '%s\n' "$ac_cv_lib_efence_EF_Print" >&6; }
19678 if test "x$ac_cv_lib_efence_EF_Print" = xyes
19679 then :
19680 HAVE_EFENCE="-lefence"
19681 fi
19682
19683 if test "x${HAVE_EFENCE}" != "x-lefence"; then
19684 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19685 printf '%s\n' "yes" >&6; }
19686 else
19687 LDADD="${LDADD} ${HAVE_EFENCE}"
19688
19689 printf '%s\n' "#define HAVE_EFENCE 1" >>confdefs.h
19690
19691 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: ${CONFIG_EFENCE}" >&5
19692 printf '%s\n' "${CONFIG_EFENCE}" >&6; }
19693 fi
19694 ;;
19695 no)
19696 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: ${CONFIG_EFENCE}" >&5
19697 printf '%s\n' "${CONFIG_EFENCE}" >&6; }
19698 ;;
19699 *)
19700 as_fn_error $? "bad value �${CONFIG_EFENCE}� for efence option" "$LINENO" 5
19701 ;;
19702 esac
19703
19704
19705 WARNING=
19706
19707 # Check whether --with-fileio was given.
19708 if test ${with_fileio+y}
19709 then :
19710 withval=$with_fileio; CONFIG_FILEIO="${withval}"
19711 else case e in #(
19712 e) CONFIG_FILEIO="lame" ;;
19713 esac
19714 fi
19715
19716
19717 if test "${CONFIG_FILEIO}" = "sndfile" ; then
19718
19719 pkg_failed=no
19720 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for sndfile >= 1.0.2" >&5
19721 printf %s "checking for sndfile >= 1.0.2... " >&6; }
19722
19723 if test -n "$SNDFILE_CFLAGS"; then
19724 pkg_cv_SNDFILE_CFLAGS="$SNDFILE_CFLAGS"
19725 elif test -n "$PKG_CONFIG"; then
19726 if test -n "$PKG_CONFIG" && \
19727 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile >= 1.0.2\""; } >&5
19728 ($PKG_CONFIG --exists --print-errors "sndfile >= 1.0.2") 2>&5
19729 ac_status=$?
19730 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19731 test $ac_status = 0; }; then
19732 pkg_cv_SNDFILE_CFLAGS=`$PKG_CONFIG --cflags "sndfile >= 1.0.2" 2>/dev/null`
19733 test "x$?" != "x0" && pkg_failed=yes
19734 else
19735 pkg_failed=yes
19736 fi
19737 else
19738 pkg_failed=untried
19739 fi
19740 if test -n "$SNDFILE_LIBS"; then
19741 pkg_cv_SNDFILE_LIBS="$SNDFILE_LIBS"
19742 elif test -n "$PKG_CONFIG"; then
19743 if test -n "$PKG_CONFIG" && \
19744 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile >= 1.0.2\""; } >&5
19745 ($PKG_CONFIG --exists --print-errors "sndfile >= 1.0.2") 2>&5
19746 ac_status=$?
19747 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19748 test $ac_status = 0; }; then
19749 pkg_cv_SNDFILE_LIBS=`$PKG_CONFIG --libs "sndfile >= 1.0.2" 2>/dev/null`
19750 test "x$?" != "x0" && pkg_failed=yes
19751 else
19752 pkg_failed=yes
19753 fi
19754 else
19755 pkg_failed=untried
19756 fi
19757
19758
19759
19760 if test $pkg_failed = yes; then
19761 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
19762 printf '%s\n' "no" >&6; }
19763
19764 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19765 _pkg_short_errors_supported=yes
19766 else
19767 _pkg_short_errors_supported=no
19768 fi
19769 if test $_pkg_short_errors_supported = yes; then
19770 SNDFILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sndfile >= 1.0.2" 2>&1`
19771 else
19772 SNDFILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sndfile >= 1.0.2" 2>&1`
19773 fi
19774 # Put the nasty error message in config.log where it belongs
19775 echo "$SNDFILE_PKG_ERRORS" >&5
19776
19777 HAVE_SNDFILE="no"
19778 elif test $pkg_failed = untried; then
19779 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
19780 printf '%s\n' "no" >&6; }
19781 HAVE_SNDFILE="no"
19782 else
19783 SNDFILE_CFLAGS=$pkg_cv_SNDFILE_CFLAGS
19784 SNDFILE_LIBS=$pkg_cv_SNDFILE_LIBS
19785 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19786 printf '%s\n' "yes" >&6; }
19787 HAVE_SNDFILE="yes"
19788 fi
19789 fi
19790
19791 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking use of file io" >&5
19792 printf %s "checking use of file io... " >&6; }
19793
19794 if test "${CONFIG_FILEIO}" = "sndfile" ; then
19795 if test "${HAVE_SNDFILE}" = "yes" -o "x${SNDFILE_LIBS}" != "x" \
19796 -o "x${SNDFILE_CFLAGS}" != "x"; then
19797 SNDFILE_LIBS=`echo ${SNDFILE_LIBS}`
19798 SNDFILE_CFLAGS=`echo ${SNDFILE_CFLAGS}`
19799
19800 if test -n "${SNDFILE_LIBS}" ; then
19801 FRONTEND_LDFLAGS="${SNDFILE_LIBS} ${FRONTEND_LDFLAGS}"
19802 fi
19803 FRONTEND_LDADD="-lsndfile ${FRONTEND_LDADD}"
19804
19805 if test -n "${SNDFILE_CFLAGS}" ; then
19806 INCLUDES="${SNDFILE_CFLAGS} ${INCLUDES}"
19807 fi
19808
19809
19810 printf '%s\n' "#define LIBSNDFILE 1" >>confdefs.h
19811
19812 else
19813 # default
19814 CONFIG_FILEIO="lame"
19815 WARNING="${WARNING} Could not find any sndfile lib on system."
19816 fi
19817 else
19818 CONFIG_FILEIO="lame"
19819 fi
19820 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: ${CONFIG_FILEIO}" >&5
19821 printf '%s\n' "${CONFIG_FILEIO}" >&6; }
19822 if test "x${WARNING}" != "x" ; then
19823 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: $WARNING" >&5
19824 printf '%s\n' "$as_me: WARNING: $WARNING" >&2;}
19825 fi
19826
19827
19828 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking use of analyzer hooks" >&5
19829 printf %s "checking use of analyzer hooks... " >&6; }
19830 # Check whether --enable-analyzer-hooks was given.
19831 if test ${enable_analyzer_hooks+y}
19832 then :
19833 enableval=$enable_analyzer_hooks; CONFIG_ANALYZER="${enableval}"
19834 else case e in #(
19835 e) CONFIG_ANALYZER="yes" ;;
19836 esac
19837 fi
19838
19839
19840 case "${CONFIG_ANALYZER}" in
19841 yes)
19842 ;;
19843 no)
19844
19845 printf '%s\n' "#define NOANALYSIS 1" >>confdefs.h
19846
19847 ;;
19848 *)
19849 as_fn_error $? "bad value �${CONFIG_ANALYZER}� for analyzer-hooks option" "$LINENO" 5
19850 ;;
19851 esac
19852 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CONFIG_ANALYZER" >&5
19853 printf '%s\n' "$CONFIG_ANALYZER" >&6; }
19854
19855
19856
19857 pkg_failed=no
19858 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for libmpg123 >= 1.26.0" >&5
19859 printf %s "checking for libmpg123 >= 1.26.0... " >&6; }
19860
19861 if test -n "$mpg123_CFLAGS"; then
19862 pkg_cv_mpg123_CFLAGS="$mpg123_CFLAGS"
19863 elif test -n "$PKG_CONFIG"; then
19864 if test -n "$PKG_CONFIG" && \
19865 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmpg123 >= 1.26.0\""; } >&5
19866 ($PKG_CONFIG --exists --print-errors "libmpg123 >= 1.26.0") 2>&5
19867 ac_status=$?
19868 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19869 test $ac_status = 0; }; then
19870 pkg_cv_mpg123_CFLAGS=`$PKG_CONFIG --cflags "libmpg123 >= 1.26.0" 2>/dev/null`
19871 test "x$?" != "x0" && pkg_failed=yes
19872 else
19873 pkg_failed=yes
19874 fi
19875 else
19876 pkg_failed=untried
19877 fi
19878 if test -n "$mpg123_LIBS"; then
19879 pkg_cv_mpg123_LIBS="$mpg123_LIBS"
19880 elif test -n "$PKG_CONFIG"; then
19881 if test -n "$PKG_CONFIG" && \
19882 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmpg123 >= 1.26.0\""; } >&5
19883 ($PKG_CONFIG --exists --print-errors "libmpg123 >= 1.26.0") 2>&5
19884 ac_status=$?
19885 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19886 test $ac_status = 0; }; then
19887 pkg_cv_mpg123_LIBS=`$PKG_CONFIG --libs "libmpg123 >= 1.26.0" 2>/dev/null`
19888 test "x$?" != "x0" && pkg_failed=yes
19889 else
19890 pkg_failed=yes
19891 fi
19892 else
19893 pkg_failed=untried
19894 fi
19895
19896
19897
19898 if test $pkg_failed = yes; then
19899 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
19900 printf '%s\n' "no" >&6; }
19901
19902 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19903 _pkg_short_errors_supported=yes
19904 else
19905 _pkg_short_errors_supported=no
19906 fi
19907 if test $_pkg_short_errors_supported = yes; then
19908 mpg123_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmpg123 >= 1.26.0" 2>&1`
19909 else
19910 mpg123_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmpg123 >= 1.26.0" 2>&1`
19911 fi
19912 # Put the nasty error message in config.log where it belongs
19913 echo "$mpg123_PKG_ERRORS" >&5
19914
19915 HAVE_MPG123="no"
19916 elif test $pkg_failed = untried; then
19917 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
19918 printf '%s\n' "no" >&6; }
19919 HAVE_MPG123="no"
19920 else
19921 mpg123_CFLAGS=$pkg_cv_mpg123_CFLAGS
19922 mpg123_LIBS=$pkg_cv_mpg123_LIBS
19923 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19924 printf '%s\n' "yes" >&6; }
19925 HAVE_MPG123="yes"
19926 fi
19927
19928 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking use of external mpg123 decoder" >&5
19929 printf %s "checking use of external mpg123 decoder... " >&6; }
19930 # Check whether --enable-decoder was given.
19931 if test ${enable_decoder+y}
19932 then :
19933 enableval=$enable_decoder; CONFIG_DECODER="${enableval}"
19934 else case e in #(
19935 e) CONFIG_DECODER="yes" ;;
19936 esac
19937 fi
19938
19939
19940 LIB_WITH_DECODER=false
19941 if test "${HAVE_MPG123}" = "yes" && test "${CONFIG_DECODER}" != "no"; then
19942 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19943 printf '%s\n' "yes" >&6; }
19944
19945 printf '%s\n' "#define HAVE_MPG123 1" >>confdefs.h
19946
19947
19948 printf '%s\n' "#define DECODE_ON_THE_FLY 1" >>confdefs.h
19949
19950 FRONTEND_LDADD="$mpg123_LIBS $FRONTEND_LDADD"
19951 LIBMP3LAME_LDADD="$mpg123_LIBS $LIBMP3LAME_LDADD"
19952 INCLUDES="$mpg123_CFLAGS $INCLUDES"
19953 else
19954 if test "${CONFIG_DECODER}" = "yes" ; then
19955 as_fn_error $? "no, libmpg123 not found" "$LINENO" 5
19956 else
19957 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: ${CONFIG_DECODER}" >&5
19958 printf '%s\n' "${CONFIG_DECODER}" >&6; }
19959 fi
19960 fi
19961 if ${LIB_WITH_DECODER}; then
19962 LIB_WITH_DECODER_TRUE=
19963 LIB_WITH_DECODER_FALSE='#'
19964 else
19965 LIB_WITH_DECODER_TRUE='#'
19966 LIB_WITH_DECODER_FALSE=
19967 fi
19968
19969
19970 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if the lame frontend should be build" >&5
19971 printf %s "checking if the lame frontend should be build... " >&6; }
19972 # Check whether --enable-frontend was given.
19973 if test ${enable_frontend+y}
19974 then :
19975 enableval=$enable_frontend; WITH_FRONTEND="${enableval}"
19976 else case e in #(
19977 e) WITH_FRONTEND=yes ;;
19978 esac
19979 fi
19980
19981 if test "x${WITH_FRONTEND}" = "xyes"; then
19982 WITH_FRONTEND=lame${ac_exeext}
19983 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19984 printf '%s\n' "yes" >&6; }
19985 else
19986 WITH_FRONTEND=
19987 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
19988 printf '%s\n' "no" >&6; }
19989 fi
19990
19991
19992
19993 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if mp3x is requested" >&5
19994 printf %s "checking if mp3x is requested... " >&6; }
19995 # Check whether --enable-mp3x was given.
19996 if test ${enable_mp3x+y}
19997 then :
19998 enableval=$enable_mp3x; WITH_MP3X="${enableval}"
19999 else case e in #(
20000 e) WITH_MP3X=no ;;
20001 esac
20002 fi
20003
20004 if test "x${WITH_MP3X}" = "xyes"; then
20005 WITH_MP3X=mp3x${ac_exeext}
20006 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20007 printf '%s\n' "yes" >&6; }
20008 else
20009 WITH_MP3X=
20010 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
20011 printf '%s\n' "no" >&6; }
20012 fi
20013
20014 if test "${HAVE_GTK}" = "no"; then
20015 if test "x${WITH_MP3X}" = "xmp3x"; then
20016 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: can't build mp3x" >&5
20017 printf '%s\n' "$as_me: WARNING: can't build mp3x" >&2;}
20018 WITH_MP3X=
20019 fi
20020 if test "x${CONFIG_ANALYZER}" != "xyes"; then
20021 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: can't build mp3x because of disabled analyzer hooks" >&5
20022 printf '%s\n' "$as_me: WARNING: can't build mp3x because of disabled analyzer hooks" >&2;}
20023 WITH_MP3X=
20024 fi
20025 fi
20026
20027 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if mp3rtp is requested" >&5
20028 printf %s "checking if mp3rtp is requested... " >&6; }
20029 # Check whether --enable-mp3rtp was given.
20030 if test ${enable_mp3rtp+y}
20031 then :
20032 enableval=$enable_mp3rtp; WITH_MP3RTP="${enableval}"
20033 else case e in #(
20034 e) WITH_MP3RTP=no ;;
20035 esac
20036 fi
20037
20038 if test "x${WITH_MP3RTP}" = "xyes"; then
20039 if test ${SOCKETFUNCTION} = NO; then
20040 as_fn_error $? "function socket is mandatory for mp3rtp" "$LINENO" 5
20041 fi
20042 WITH_MP3RTP=mp3rtp${ac_exeext}
20043 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20044 printf '%s\n' "yes" >&6; }
20045 else
20046 WITH_MP3RTP=
20047 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
20048 printf '%s\n' "no" >&6; }
20049 fi
20050
20051 #Checking for IPV6 support
20052 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for IPv6 support" >&5
20053 printf %s "checking for IPv6 support... " >&6; }
20054 # Check whether --enable-ipv6 was given.
20055 if test ${enable_ipv6+y}
20056 then :
20057 enableval=$enable_ipv6; CONFIG_IPV6=$enableval
20058 else case e in #(
20059 e) CONFIG_IPV6=yes ;;
20060 esac
20061 fi
20062
20063 if test "x$CONFIG_IPV6" = "xyes" ; then
20064 if test ${ac_cv_ipv6+y}
20065 then :
20066 printf %s "(cached) " >&6
20067 else case e in #(
20068 e) if test "$cross_compiling" = yes
20069 then :
20070 ac_cv_ipv6=yes
20071 else case e in #(
20072 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20073 /* end confdefs.h. */
20074
20075 #include <sys/types.h>
20076 #include <sys/socket.h>
20077 #include <netinet/in.h>
20078 #include <stdlib.h>
20079 main()
20080 {
20081 int fd;
20082 struct sockaddr_in6 foo;
20083 fd = socket(AF_INET6, SOCK_STREAM, 0);
20084 exit(fd >= 0 ? 0 : 1);
20085 }
20086 _ACEOF
20087 if ac_fn_c_try_run "$LINENO"
20088 then :
20089 ac_cv_ipv6=yes
20090 else case e in #(
20091 e) ac_cv_ipv6=no ;;
20092 esac
20093 fi
20094 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20095 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20096 esac
20097 fi
20098 ;;
20099 esac
20100 fi
20101
20102 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ipv6" >&5
20103 printf '%s\n' "$ac_cv_ipv6" >&6; }
20104 if test $ac_cv_ipv6 = yes ; then
20105
20106 printf '%s\n' "#define IPV6 1" >>confdefs.h
20107
20108 fi
20109 else
20110 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CONFIG_IPV6" >&5
20111 printf '%s\n' "$CONFIG_IPV6" >&6; }
20112 fi
20113 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if dynamic linking of the frontends is requested" >&5
20114 printf %s "checking if dynamic linking of the frontends is requested... " >&6; }
20115 # Check whether --enable-dynamic-frontends was given.
20116 if test ${enable_dynamic_frontends+y}
20117 then :
20118 enableval=$enable_dynamic_frontends; FRONTEND_LDFLAGS="${FRONTEND_LDFLAGS}"
20119 else case e in #(
20120 e) FRONTEND_LDFLAGS="${FRONTEND_LDFLAGS} -static" ;;
20121 esac
20122 fi
20123
20124 case "x${FRONTEND_LDFLAGS}" in
20125 *-static*)
20126 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
20127 printf '%s\n' "no" >&6; }
20128 ;;
20129 *)
20130 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20131 printf '%s\n' "yes" >&6; }
20132 ;;
20133 esac
20134
20135
20136 #
20137 # this is from vorbis
20138 #
20139 case $host in
20140 *86-*-linux*)
20141 # glibc < 2.1.3 has a serious FP bug in the math inline header
20142 # that will cripple Vorbis. Look to see if the magic FP stack
20143 # clobber is missing in the mathinline header, thus indicating
20144 # the buggy version
20145
20146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20147 /* end confdefs.h. */
20148
20149 #define __LIBC_INTERNAL_MATH_INLINES 1
20150 #define __OPTIMIZE__
20151 #include <math.h>
20152
20153 _ACEOF
20154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20155 $EGREP_TRADITIONAL "log10.*fldlg2.*fxch" >/dev/null 2>&1
20156 then :
20157 bad=maybe
20158 else case e in #(
20159 e) bad=no ;;
20160 esac
20161 fi
20162 rm -rf conftest*
20163
20164
20165 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking glibc mathinline bug" >&5
20166 printf %s "checking glibc mathinline bug... " >&6; }
20167 if test ${bad} = "maybe" ;then
20168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20169 /* end confdefs.h. */
20170
20171 #define __LIBC_INTERNAL_MATH_INLINES 1
20172 #define __OPTIMIZE__
20173 #include <math.h>
20174
20175 _ACEOF
20176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20177 $EGREP_TRADITIONAL "log10.*fldlg2.*fxch.*st\([0123456789]*\)" >/dev/null 2>&1
20178 then :
20179 bad=no
20180 else case e in #(
20181 e) bad=yes ;;
20182 esac
20183 fi
20184 rm -rf conftest*
20185
20186 fi
20187 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: ${bad}" >&5
20188 printf '%s\n' "${bad}" >&6; }
20189 if test ${bad} = "yes" ;then
20190 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: " >&5
20191 printf '%s\n' "$as_me: WARNING: " >&2;}
20192 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: ********************************************************" >&5
20193 printf '%s\n' "$as_me: WARNING: ********************************************************" >&2;}
20194 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: * The glibc headers on this machine have a serious bug *" >&5
20195 printf '%s\n' "$as_me: WARNING: * The glibc headers on this machine have a serious bug *" >&2;}
20196 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: * in /usr/include/bits/mathinline.h This bug affects *" >&5
20197 printf '%s\n' "$as_me: WARNING: * in /usr/include/bits/mathinline.h This bug affects *" >&2;}
20198 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: * all floating point code, not only LAME, but all code *" >&5
20199 printf '%s\n' "$as_me: WARNING: * all floating point code, not only LAME, but all code *" >&2;}
20200 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: * built on this machine. Upgrading to glibc 2.1.3 is *" >&5
20201 printf '%s\n' "$as_me: WARNING: * built on this machine. Upgrading to glibc 2.1.3 is *" >&2;}
20202 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: * strongly urged to correct the problem. *" >&5
20203 printf '%s\n' "$as_me: WARNING: * strongly urged to correct the problem. *" >&2;}
20204 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: *Note: that upgrading glibc will not fix any previously*" >&5
20205 printf '%s\n' "$as_me: WARNING: *Note: that upgrading glibc will not fix any previously*" >&2;}
20206 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: * built programs; this is a compile-time bug. *" >&5
20207 printf '%s\n' "$as_me: WARNING: * built programs; this is a compile-time bug. *" >&2;}
20208 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: * To work around the problem for this build of LAME, *" >&5
20209 printf '%s\n' "$as_me: WARNING: * To work around the problem for this build of LAME, *" >&2;}
20210 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: * autoconf is disabling all math inlining. This will *" >&5
20211 printf '%s\n' "$as_me: WARNING: * autoconf is disabling all math inlining. This will *" >&2;}
20212 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: * hurt LAME performace but is necessary for LAME to *" >&5
20213 printf '%s\n' "$as_me: WARNING: * hurt LAME performace but is necessary for LAME to *" >&2;}
20214 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: * work correctly. Once glibc is upgraded, rerun *" >&5
20215 printf '%s\n' "$as_me: WARNING: * work correctly. Once glibc is upgraded, rerun *" >&2;}
20216 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: * configure and make to build with inlining. *" >&5
20217 printf '%s\n' "$as_me: WARNING: * configure and make to build with inlining. *" >&2;}
20218 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: ********************************************************" >&5
20219 printf '%s\n' "$as_me: WARNING: ********************************************************" >&2;}
20220 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: " >&5
20221 printf '%s\n' "$as_me: WARNING: " >&2;}
20222
20223
20224 printf '%s\n' "#define __NO_MATH_INLINES 1" >>confdefs.h
20225
20226 fi;;
20227 esac
20228
20229
20230 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for termcap" >&5
20231 printf %s "checking for termcap... " >&6; }
20232 if test "x${HAVE_TERMCAP}" != "x"; then
20233 FRONTEND_LDADD="-l${HAVE_TERMCAP} ${FRONTEND_LDADD}"
20234
20235 printf '%s\n' "#define HAVE_TERMCAP 1" >>confdefs.h
20236
20237 TERMCAP_DEFAULT="yes"
20238 else
20239 TERMCAP_DEFAULT="no"
20240 fi
20241 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: ${TERMCAP_DEFAULT}" >&5
20242 printf '%s\n' "${TERMCAP_DEFAULT}" >&6; }
20243
20244
20245 WITH_VECTOR=no
20246 case $host_cpu in
20247 x86_64|amd64)
20248 CPUTYPE="no"
20249 if test $ac_cv_header_xmmintrin_h = yes ; then
20250 WITH_XMM=yes
20251 WITH_VECTOR=yes
20252 fi
20253
20254
20255 printf '%s\n' "#define USE_FAST_LOG 1" >>confdefs.h
20256
20257 ;;
20258 *86)
20259 CPUTYPE="i386"
20260 if test $ac_cv_header_xmmintrin_h = yes ; then
20261 WITH_XMM=yes
20262 WITH_VECTOR=yes
20263 fi
20264
20265
20266 printf '%s\n' "#define USE_FAST_LOG 1" >>confdefs.h
20267
20268 ;;
20269 powerpc)
20270 CPUTYPE="no"
20271
20272 # The following should not get enabled on a G5. HOWTO check for a G5?
20273
20274 printf '%s\n' "#define USE_FAST_LOG 1" >>confdefs.h
20275
20276 ;;
20277 *)
20278 CPUTYPE="no"
20279 ;;
20280 esac
20281
20282 # which vector code do we support to build on this machine?
20283 if test "x${WITH_XMM}" = "xyes"; then
20284 WITH_XMM_TRUE=
20285 WITH_XMM_FALSE='#'
20286 else
20287 WITH_XMM_TRUE='#'
20288 WITH_XMM_FALSE=
20289 fi
20290
20291
20292 # needs to be defined to link in the internal vector lib
20293 if test "x${WITH_VECTOR}" = "xyes"; then
20294 WITH_VECTOR_TRUE=
20295 WITH_VECTOR_FALSE='#'
20296 else
20297 WITH_VECTOR_TRUE='#'
20298 WITH_VECTOR_FALSE=
20299 fi
20300
20301 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if I have to build the internal vector lib" >&5
20302 printf %s "checking if I have to build the internal vector lib... " >&6; }
20303 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: ${WITH_VECTOR}" >&5
20304 printf '%s\n' "${WITH_VECTOR}" >&6; }
20305
20306
20307 # Extract the first word of "nasm", so it can be a program name with args.
20308 set dummy nasm; ac_word=$2
20309 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20310 printf %s "checking for $ac_word... " >&6; }
20311 if test ${ac_cv_path_NASM+y}
20312 then :
20313 printf %s "(cached) " >&6
20314 else case e in #(
20315 e) case $NASM in
20316 [\\/]* | ?:[\\/]*)
20317 ac_cv_path_NASM="$NASM" # Let the user override the test with a path.
20318 ;;
20319 *)
20320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20321 for as_dir in $PATH
20322 do
20323 IFS=$as_save_IFS
20324 case $as_dir in #(((
20325 '') as_dir=./ ;;
20326 */) ;;
20327 *) as_dir=$as_dir/ ;;
20328 esac
20329 for ac_exec_ext in '' $ac_executable_extensions; do
20330 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20331 ac_cv_path_NASM="$as_dir$ac_word$ac_exec_ext"
20332 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20333 break 2
20334 fi
20335 done
20336 done
20337 IFS=$as_save_IFS
20338
20339 test -z "$ac_cv_path_NASM" && ac_cv_path_NASM="no"
20340 ;;
20341 esac ;;
20342 esac
20343 fi
20344 NASM=$ac_cv_path_NASM
20345 if test -n "$NASM"; then
20346 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $NASM" >&5
20347 printf '%s\n' "$NASM" >&6; }
20348 else
20349 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
20350 printf '%s\n' "no" >&6; }
20351 fi
20352
20353
20354 case "${NASM}" in
20355 no)
20356 ;;
20357 *)
20358 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for assembler routines for this processor type" >&5
20359 printf %s "checking for assembler routines for this processor type... " >&6; }
20360 for recurse_over in ${ASM_FOR_ARCH}
20361 do
20362 if test "${CPUTYPE}" = "${recurse_over}"; then
20363 include_asm_routines="yes"
20364 fi
20365
20366 case $host_os in
20367 *darwin*)
20368 # currently we have problems because of a wrong
20369 # libtool hack in the darwin case (for nasm code)
20370 include_asm_routines="no"
20371 ;;
20372 esac
20373 done
20374 if test "x${include_asm_routines}" = "xyes"; then
20375
20376 printf '%s\n' "#define HAVE_NASM 1" >>confdefs.h
20377
20378
20379 printf '%s\n' "#define MMX_choose_table 1" >>confdefs.h
20380
20381 else
20382 include_asm_routines="no"
20383 NASM="no"
20384 fi
20385 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: ${include_asm_routines}" >&5
20386 printf '%s\n' "${include_asm_routines}" >&6; }
20387 ;;
20388 esac
20389 if test "${NASM}" != "no"; then
20390 HAVE_NASM_TRUE=
20391 HAVE_NASM_FALSE='#'
20392 else
20393 HAVE_NASM_TRUE='#'
20394 HAVE_NASM_FALSE=
20395 fi
20396
20397
20398 case $host_os in
20399 *cygwin*|*mingw32*)
20400 CYGWIN=yes
20401 NASM_FORMAT="-f win32 -DWIN32"
20402 ;;
20403 *darwin*)
20404 NASM_FORMAT="-f macho"
20405 ;;
20406 *os2-emx*)
20407 NASM_FORMAT="-f aout -DAOUT"
20408 ;;
20409 *)
20410 CYGWIN=no
20411 NASM_FORMAT="-f elf"
20412 ;;
20413 esac
20414
20415 #
20416 # 'expopt' is used for "additional optimizations", not for optimizations which
20417 # are marked as "experimental" in the guide for the compiler.
20418 # They are "experimental" here in the LAME project (at least
20419 # "--enable-expopt=full").
20420 #
20421 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for additional optimizations" >&5
20422 printf %s "checking for additional optimizations... " >&6; }
20423 # Check whether --enable-expopt was given.
20424 if test ${enable_expopt+y}
20425 then :
20426 enableval=$enable_expopt; CONFIG_EXPOPT="${enableval}"
20427 else case e in #(
20428 e) CONFIG_EXPOPT="no" ;;
20429 esac
20430 fi
20431
20432
20433 if test "x$HAVE_GCC" = "xyes" -o "x$HAVE_CLANG" = "xyes"; then
20434 # gcc defaults. OS specific options go in versious sections below
20435 # from the gcc man pages: "there is no reason to use -pedantic"
20436 if test "x${with_gnu_ld}" = "xyes"; then
20437 CFLAGS="-Wall -pipe ${CFLAGS}"
20438 else
20439 # some vendor ld's don't like '-pipe'
20440 CFLAGS="-Wall ${CFLAGS}"
20441 fi
20442
20443 # GCC version specific generic options
20444 if test "x${HAVE_GCC}" = "xyes"; then
20445 case "${GCC_version}" in
20446 2.96*)
20447 # for buggy version of gcc shipped with RH7.1, back of on some
20448 # optimizations
20449 OPTIMIZATION="-O -fomit-frame-pointer -ffast-math \
20450 -funroll-loops"
20451 OPTIMIZATION_FULL="-fmove-all-movables -freduce-all-givs \
20452 -fsched-interblock -fbranch-count-reg -fforce-addr \
20453 -fforce-mem"
20454 ;;
20455 3.0*)
20456 # -funroll-loops seems to produce buggy code with gcc 3.0.3
20457 OPTIMIZATION="-O -fomit-frame-pointer -ffast-math"
20458 OPTIMIZATION_FULL="-fmove-all-movables -freduce-all-givs \
20459 -fbranch-count-reg -fforce-addr -fforce-mem"
20460 ;;
20461 3.*|4.0.*|4.1.*)
20462 # -fomit-frame-pointer seems to be buggy on cygwin
20463 case ${host_os} in
20464 *cygwin*)
20465 OMIT_FRAME_POINTER=
20466 ;;
20467 *)
20468 OMIT_FRAME_POINTER=-fomit-frame-pointer
20469 ;;
20470 esac
20471
20472 OPTIMIZATION="-O3 ${OMIT_FRAME_POINTER} -ffast-math"
20473 OPTIMIZATION_FULL="-fmove-all-movables -freduce-all-givs \
20474 -fbranch-count-reg -fforce-addr -fforce-mem"
20475 ;;
20476 [456789].*|1[0-9].*)
20477 OPTIMIZATION="-O3 -fomit-frame-pointer -ffast-math"
20478 OPTIMIZATION_FULL="-fbranch-count-reg -fforce-addr"
20479 ;;
20480 *)
20481 # default
20482 OPTIMIZATION="-O3 ${OMIT_FRAME_POINTER} -ffast-math \
20483 -funroll-loops"
20484 OPTIMIZATION_FULL="-fbranch-count-reg -fforce-addr"
20485 ;;
20486 esac
20487
20488 # GCC version independend generic options
20489 OPTIMIZATION_NORM="-fschedule-insns2"
20490 fi
20491
20492
20493 # generic CPU specific options
20494 case ${host_cpu} in
20495 sparc)
20496 case "${GCC_version}" in
20497 3.0*)
20498 ;;
20499 [3456789].*|1[0-9].*)
20500 # doesn't work on 3.0.x, but on 3.[12] and
20501 # hopefully on every other release after that too
20502 if test -x /usr/bin/isalist; then
20503 /usr/bin/isalist | grep sparcv8plus \
20504 >/dev/null 2>&1 && \
20505 OPTIMIZATION="${OPTIMIZATION} \
20506 -mcpu=ultrasparc \
20507 -mtune=ultrasparc"
20508 fi
20509 ;;
20510 esac
20511 ;;
20512 *86)
20513 case "${GCC_version}" in
20514 [3456789].*|1[0-9].*)
20515 OPTIMIZATION="${OPTIMIZATION} \
20516 -maccumulate-outgoing-args"
20517 ;;
20518 esac
20519 ;;
20520 esac
20521
20522 expopt_msg_result_printed=no
20523 case "${CONFIG_EXPOPT}" in
20524 no)
20525 # if someone supplies own CFLAGS, we don't add our own
20526 if test "x${ac_save_CFLAGS}" != "x"; then
20527 OPTIMIZATION=""
20528 fi
20529 ;;
20530 norm|yes)
20531 OPTIMIZATION="${OPTIMIZATION} ${OPTIMIZATION_NORM}"
20532 ;;
20533 full)
20534 OPTIMIZATION="${OPTIMIZATION} ${OPTIMIZATION_NORM} \
20535 ${OPTIMIZATION_FULL}"
20536
20537 if test "${HAVE_GCC}" = "yes"; then
20538 # some hardware dependend options
20539 case "${GCC_version}" in
20540 2.9*|3.*|4.0.*|4.1.*)
20541 # "new" GCC, use some "new" CPU specific optimizations
20542 # use -mtune instead of -m486 or -mcpu= etc, since they are
20543 # deprecated by GCC <rbrito>
20544 case ${host_cpu} in
20545 *486)
20546 OPTIMIZATION="${OPTIMIZATION} -mcpu=i486 \
20547 -mfancy-math-387"
20548 ;;
20549 *586)
20550 OPTIMIZATION="${OPTIMIZATION} -mcpu=pentium \
20551 -march=pentium -mfancy-math-387"
20552 ;;
20553 *686)
20554 OPTIMIZATION="${OPTIMIZATION} -mcpu=pentiumpro \
20555 -march=pentiumpro -mfancy-math-387 \
20556 -malign-double"
20557 ;;
20558 *86)
20559 OPTIMIZATION="${OPTIMIZATION} -mfancy-math-387"
20560 ;;
20561 alpha*)
20562 OPTIMIZATION="${OPTIMIZATION} -mfp-regs"
20563
20564 printf '%s\n' "#define FLOAT double" >>confdefs.h
20565
20566 # add "-mcpu=21164a -Wa,-m21164a" to optimize
20567 # for 21164a (ev56) CPU
20568 ;;
20569 *)
20570 OPTIMIZATION="${OPTIMIZATION} -fdelayed-branch"
20571 ;;
20572 esac
20573 ;;
20574 [456789].*|1[0-9].*)
20575 case ${host_cpu} in
20576 *486)
20577 OPTIMIZATION="${OPTIMIZATION} -march=i486"
20578 ;;
20579 *586)
20580 OPTIMIZATION="${OPTIMIZATION} -march=i586 \
20581 -mtune=native"
20582 ;;
20583 *686)
20584 OPTIMIZATION="${OPTIMIZATION} -march=i686 \
20585 -mtune=native"
20586 ;;
20587 arm*-gnueabi)
20588 if -z "$(echo ${GCC_version} | awk '/4\.0/')" ; then
20589 # Work round buggy softfloat optimization in ARM EABI compilers
20590 # -gnueabi in only gcc-4.1 onwards
20591 OPTIMIZATION="${OPTIMIZATION} -fno-finite-math-only"
20592 fi
20593 ;;
20594 esac
20595 ;;
20596 *)
20597 # no special optimization for other versions
20598 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
20599 printf '%s\n' "no" >&6; }
20600 expopt_msg_result_printed=yes
20601 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: LAME doesn't know about your version (${GCC_version}) of gcc" >&5
20602 printf '%s\n' "$as_me: WARNING: LAME doesn't know about your version (${GCC_version}) of gcc" >&2;}
20603 ;;
20604 esac
20605 fi
20606 ;;
20607 *)
20608 as_fn_error $? "bad value �${CONFIG_EXPOPT}� for expopt option" "$LINENO" 5
20609 ;;
20610 esac
20611
20612
20613 if test "x${HAVE_CLANG}" = "xyes"; then
20614 case "${CLANG_VERSION}" in
20615 3.[89]*|[45].*|1[0-9].*)
20616 OPTIMIZATION="-Ofast"
20617 ;;
20618 *)
20619 OPTIMIZATION="-O3"
20620 ;;
20621 esac
20622
20623 # generic CPU specific options
20624 case ${host_cpu} in
20625 *486)
20626 OPTIMIZATION="${OPTIMIZATION} -march=i486"
20627 ;;
20628 *586)
20629 OPTIMIZATION="${OPTIMIZATION} -march=i586 \
20630 -mtune=native"
20631 ;;
20632 *686)
20633 OPTIMIZATION="${OPTIMIZATION} -march=i686 \
20634 -mtune=native"
20635 ;;
20636 esac
20637
20638 # if someone supplies own CFLAGS, we don't add our own
20639 if test "x${ac_save_CFLAGS}" != "x"; then
20640 OPTIMIZATION=""
20641 fi
20642 fi
20643
20644
20645 if test "${expopt_msg_result_printed}" = "no" ; then
20646 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: ${CONFIG_EXPOPT}" >&5
20647 printf '%s\n' "${CONFIG_EXPOPT}" >&6; }
20648 fi
20649 else
20650 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
20651 printf '%s\n' "no" >&6; }
20652 fi
20653
20654
20655
20656
20657
20658 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for debug options" >&5
20659 printf %s "checking for debug options... " >&6; }
20660 # Check whether --enable-debug was given.
20661 if test ${enable_debug+y}
20662 then :
20663 enableval=$enable_debug; CONFIG_DEBUG="${enableval}"
20664 else case e in #(
20665 e) CONFIG_DEBUG="no" ;;
20666 esac
20667 fi
20668
20669
20670 if test "x$GCC" = "xyes"; then
20671 DEBUG_NORM_OPT="-O -g -Wall"
20672 DEBUG_ANOYING="-Wbad-function-cast -Wcast-align \
20673 -Wcast-qual -Wchar-subscripts -Wconversion \
20674 -Wmissing-prototypes -Wnested-externs -Wpointer-arith \
20675 -Wredundant-decls -Wshadow -Wstrict-prototypes \
20676 -Wwrite-strings -Winline \
20677 -Wformat -Wswitch -Waggregate-return -Wmissing-noreturn \
20678 -Wimplicit-int -fno-builtin"
20679
20680 case "${CONFIG_DEBUG}" in
20681 no)
20682 ;;
20683 norm|yes)
20684
20685 printf '%s\n' "#define ABORTFP 1" >>confdefs.h
20686
20687 OPTIMIZATION="${DEBUG_NORM_OPT}"
20688 ;;
20689 anoying)
20690
20691 printf '%s\n' "#define ABORTFP 1" >>confdefs.h
20692
20693 OPTIMIZATION="${DEBUG_NORM_OPT} ${DEBUG_ANOYING}"
20694 ;;
20695 alot)
20696
20697 printf '%s\n' "#define ABORTFP 1" >>confdefs.h
20698
20699
20700 printf '%s\n' "#define DEBUG 1" >>confdefs.h
20701
20702 OPTIMIZATION="${DEBUG_NORM_OPT}"
20703 ;;
20704 *)
20705 as_fn_error $? "bad value �${CONFIG_DEBUG}� for debug option" "$LINENO" 5
20706 esac
20707
20708 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: ${CONFIG_DEBUG}" >&5
20709 printf '%s\n' "${CONFIG_DEBUG}" >&6; }
20710 else
20711 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
20712 printf '%s\n' "no" >&6; }
20713 fi
20714
20715
20716
20717
20718 ##########################################################################
20719 # LINUX on Digital/Compaq Alpha CPUs
20720 ##########################################################################
20721 case $host in
20722 alpha*-*-linux*)
20723
20724 ################################################################
20725 #### Check if 'ccc' is in our path
20726 ################################################################
20727 if test "`which ccc 2>/dev/null | grep -c ccc`" != "0" ; then
20728 # Compaq's C Compiler
20729 CC=ccc
20730
20731 ################################################################
20732 #### set 'OPTIMIZATION = -arch host -tune host'
20733 #### to generate/tune instructions for this machine
20734 #### 'OPTIMIZATION += -migrate -fast -inline speed -unroll 0'
20735 #### tweak to run as fast as possible :)
20736 #### 'OPTIMIZATION += -w0'
20737 #### set warning and linking flags
20738 ################################################################
20739 OPTIMIZATION="-arch host -tune host"
20740 OPTIMIZATION="-migrate -fast -inline speed -unroll 0 $OPTIMIZATION"
20741 OPTIMIZATION="-w0 $OPTIMIZATION"
20742
20743
20744 ################################################################
20745 #### to debug, uncomment
20746 ################################################################
20747 # For Debugging
20748 #OPTIMIZATION="-g3 $OPTIMIZATION"
20749
20750 ################################################################
20751 #### define __DECALPHA__ (i was getting re-declaration warnings
20752 #### in machine.h
20753 ################################################################
20754 # Define DEC Alpha
20755
20756 printf '%s\n' "#define __DECALPHA__ 1" >>confdefs.h
20757
20758 fi # gcc or ccc?
20759 ;; # alpha
20760
20761
20762 ##########################################################################
20763 # SunOS
20764 ##########################################################################
20765 sparc-*-sunos4*)
20766 if test CC = "cc"; then
20767 OPTIMIZATION="-O -xCC"
20768 MAKEDEP="-xM"
20769 # for gcc, use instead:
20770 # CC="gcc"
20771 # OPTIMIZATION="-O"
20772 # MAKEDEP="-M"
20773 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: Please contact [email protected] with the output of the configure run and the file config.cache. Thank you for your cooperation." >&5
20774 printf '%s\n' "$as_me: WARNING: Please contact [email protected] with the output of the configure run and the file config.cache. Thank you for your cooperation." >&2;}
20775 fi
20776 ;; #SunOS
20777
20778 ##########################################################################
20779 # SGI
20780 ##########################################################################
20781 *-sgi-irix*)
20782 if test CC = "cc"; then
20783 OPTIMIZATION="-O3 -woff all"
20784 fi
20785 ;; # SGI
20786
20787 ##########################################################################
20788 # Compaq Alpha running Dec Unix (OSF)
20789 ##########################################################################
20790 alpha*-dec-osf*)
20791 if test CC = "cc"; then
20792 OPTIMIZATION="-fast -O3 -std -g3 -non_shared"
20793 fi
20794 ;; #OSF
20795 esac
20796
20797 # todo: include the following tests in the case-list
20798 UNAME=`uname`
20799 ARCH=`uname -m`
20800
20801 ###########################################################################
20802 # MOSXS (Rhapsody PPC)
20803 ###########################################################################
20804 if test "$UNAME" = "Rhapsody"; then
20805 # CC="cc" # should be handled already by autoconf
20806 MAKEDEP="-make"
20807 fi
20808
20809 ###########################################################################
20810 # MAC OSX Darwin PPC
20811 ###########################################################################
20812 if test "$UNAME" = "Darwin"; then
20813 MAKEDEP="-make"
20814 CFLAGS="$CFLAGS -fno-common"
20815 fi
20816
20817
20818 ##########################################################################
20819 # OS/2
20820 ##########################################################################
20821 # Properly installed EMX runtime & development package is a prerequisite.
20822 # tools I used: make 3.76.1, uname 1.12, sed 2.05, PD-ksh 5.2.13
20823 #
20824 ##########################################################################
20825 if test "$UNAME" = "OS/2"; then
20826 SHELL=sh
20827 #CC=gcc # should already be handled by configure
20828
20829 # file extension should already be handled by automake (I don't know,
20830 # please give feedback!
20831 #FILE_EXTENSION=".exe"
20832
20833 # Uncomment & inspect the GTK lines to use MP3x GTK frame analyzer.
20834 # Properly installed XFree86/devlibs & GTK+ is a prerequisite.
20835 # The following works for me using Xfree86/OS2 3.3.5 and GTK+ 1.2.3:
20836 # AC_DEFINE(HAVE_GTK, 1, have GTK)
20837 # AC_DEFINE(__ST_MT_ERRNO__, 1)
20838 # INCLUDES="-IC:/XFree86/include/gtk12 -IC:/XFree86/include/glib12 \
20839 # -IC:/XFree86/include $INCLUDES"
20840 # FRONTEND_LDFLAGS="-LC:/XFree86/lib -lgtk12 -lgdk12 -lgmodule -lglib12 \
20841 # -lXext -lX11 -lshm -lbsd -lsocket -lm $FRONTEND_LDFLAGS"
20842 # FRONTEND_CFLAGS="-Zmtd -Zsysv-signals -Zbin-files $FRONTEND_CFLAGS"
20843 fi
20844
20845 ###########################################################################
20846 # AmigaOS
20847 ###########################################################################
20848 # Type 'Make ARCH=PPC' for PowerUP and 'Make ARCH=WOS' for WarpOS
20849 #
20850 ###########################################################################
20851 if test "$UNAME" = "AmigaOS" ; then
20852 CC="gcc -noixemul"
20853 OPTIMIZATION="$OPTIMIZATION -m68020-60 -m68881"
20854 MAKEDEP="-MM"
20855 if test "$ARCH" = "WOS"; then
20856 CC="ppc-amigaos-gcc -warpup"
20857 OPTIMIZATION="$OPTIMIZATION -mmultiple -mcpu=603e"
20858 AR="ppc-amigaos-ar"
20859 RANLIB="ppc-amigaos-ranlib"
20860 fi
20861 if test "$ARCH",PPC; then
20862 CC="ppc-amigaos-gcc"
20863 OPTIMIZATION="$OPTIMIZATION -mmultiple -mcpu=603e"
20864 AR="ppc-amigaos-ar"
20865 RANLIB="ppc-amigaos-ranlib"
20866 fi
20867 fi
20868
20869
20870 CFLAGS="${OPTIMIZATION} ${CFLAGS}"
20871 LDADD="${LDADD}"
20872 FRONTEND_CFLAGS="${INCICONV} ${FRONTEND_CFLAGS}"
20873 FRONTEND_LDADD="${FRONTEND_LDADD} ${LTLIBICONV} ${CONFIG_MATH_LIB}"
20874
20875
20876
20877
20878
20879
20880
20881
20882
20883
20884
20885
20886
20887
20888
20889
20890
20891
20892
20893
20894
20895
20896
20897
20898
20899
20900
20901
20902
20903
20904
20905 ac_config_files="$ac_config_files Makefile libmp3lame/Makefile libmp3lame/i386/Makefile libmp3lame/lame.pc libmp3lame/vector/Makefile frontend/Makefile mpglib/Makefile doc/Makefile doc/html/Makefile doc/man/Makefile include/Makefile Dll/Makefile misc/Makefile dshow/Makefile ACM/Makefile ACM/ADbg/Makefile ACM/ddk/Makefile ACM/tinyxml/Makefile lame.spec mac/Makefile vc_solution/Makefile"
20906
20907
20908 cat >confcache <<\_ACEOF
20909 # This file is a shell script that caches the results of configure
20910 # tests run on this system so they can be shared between configure
20911 # scripts and configure runs, see configure's option --config-cache.
20912 # It is not useful on other systems. If it contains results you don't
20913 # want to keep, you may remove or edit it.
20914 #
20915 # config.status only pays attention to the cache file if you give it
20916 # the --recheck option to rerun configure.
20917 #
20918 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
20919 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
20920 # following values.
20921
20922 _ACEOF
20923
20924 ac_cache_dump |
20925 sed '
20926 /^ac_cv_env_/b end
20927 t clear
20928 :clear
20929 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20930 t end
20931 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20932 :end' >>confcache
20933 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20934 if test -w "$cache_file"; then
20935 if test "x$cache_file" != "x/dev/null"; then
20936 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20937 printf '%s\n' "$as_me: updating cache $cache_file" >&6;}
20938 if test ! -f "$cache_file" || test -h "$cache_file"; then
20939 cat confcache >"$cache_file"
20940 else
20941 case $cache_file in #(
20942 */* | ?:*)
20943 mv -f confcache "$cache_file"$$ &&
20944 mv -f "$cache_file"$$ "$cache_file" ;; #(
20945 *)
20946 mv -f confcache "$cache_file" ;;
20947 esac
20948 fi
20949 fi
20950 else
20951 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20952 printf '%s\n' "$as_me: not updating unwritable cache $cache_file" >&6;}
20953 fi
20954 fi
20955 rm -f confcache
20956
20957 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20958 # Let make expand exec_prefix.
20959 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20960
20961 DEFS=-DHAVE_CONFIG_H
20962
20963 ac_libobjs=
20964 ac_ltlibobjs=
20965 U=
20966 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20967 # 1. Remove the extension, and $U if already installed.
20968 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20969 ac_i=`printf '%s\n' "$ac_i" | sed "$ac_script"`
20970 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20971 # will be set to the directory where LIBOBJS objects are built.
20972 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20973 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20974 done
20975 LIBOBJS=$ac_libobjs
20976
20977 LTLIBOBJS=$ac_ltlibobjs
20978
20979
20980 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20981 printf %s "checking that generated files are newer than configure... " >&6; }
20982 if test -n "$am_sleep_pid"; then
20983 # Hide warnings about reused PIDs.
20984 wait $am_sleep_pid 2>/dev/null
20985 fi
20986 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: done" >&5
20987 printf '%s\n' "done" >&6; }
20988 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20989 as_fn_error $? "conditional \"AMDEP\" was never defined.
20990 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20991 fi
20992 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20993 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20994 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20995 fi
20996 case $enable_silent_rules in # (((
20997 yes) AM_DEFAULT_VERBOSITY=0;;
20998 no) AM_DEFAULT_VERBOSITY=1;;
20999 esac
21000 if test $am_cv_make_support_nested_variables = yes; then
21001 AM_V='$(V)'
21002 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
21003 else
21004 AM_V=$AM_DEFAULT_VERBOSITY
21005 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
21006 fi
21007
21008 if test -n "$EXEEXT"; then
21009 am__EXEEXT_TRUE=
21010 am__EXEEXT_FALSE='#'
21011 else
21012 am__EXEEXT_TRUE='#'
21013 am__EXEEXT_FALSE=
21014 fi
21015
21016 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21017 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
21018 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21019 fi
21020
21021 # Check whether --enable-year2038 was given.
21022 if test ${enable_year2038+y}
21023 then :
21024 enableval=$enable_year2038;
21025 fi
21026
21027 if test -z "${LIB_WITH_DECODER_TRUE}" && test -z "${LIB_WITH_DECODER_FALSE}"; then
21028 as_fn_error $? "conditional \"LIB_WITH_DECODER\" was never defined.
21029 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21030 fi
21031 if test -z "${WITH_XMM_TRUE}" && test -z "${WITH_XMM_FALSE}"; then
21032 as_fn_error $? "conditional \"WITH_XMM\" was never defined.
21033 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21034 fi
21035 if test -z "${WITH_VECTOR_TRUE}" && test -z "${WITH_VECTOR_FALSE}"; then
21036 as_fn_error $? "conditional \"WITH_VECTOR\" was never defined.
21037 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21038 fi
21039 if test -z "${HAVE_NASM_TRUE}" && test -z "${HAVE_NASM_FALSE}"; then
21040 as_fn_error $? "conditional \"HAVE_NASM\" was never defined.
21041 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21042 fi
21043
21044 : "${CONFIG_STATUS=./config.status}"
21045 case $CONFIG_STATUS in #(
21046 -*) :
21047 CONFIG_STATUS=./$CONFIG_STATUS ;; #(
21048 */*) :
21049 ;; #(
21050 *) :
21051 CONFIG_STATUS=./$CONFIG_STATUS ;;
21052 esac
21053
21054 ac_write_fail=0
21055 ac_clean_CONFIG_STATUS='"$CONFIG_STATUS"'
21056 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21057 printf '%s\n' "$as_me: creating $CONFIG_STATUS" >&6;}
21058 as_write_fail=0
21059 cat >"$CONFIG_STATUS" <<_ASEOF || as_write_fail=1
21060 #! $SHELL
21061 # Generated by $as_me.
21062 # Run this file to recreate the current configuration.
21063 # Compiler output produced by configure, useful for debugging
21064 # configure, is in config.log if it exists.
21065
21066 debug=false
21067 ac_cs_recheck=false
21068 ac_cs_silent=false
21069
21070 SHELL=\${CONFIG_SHELL-$SHELL}
21071 export SHELL
21072 _ASEOF
21073 cat >>"$CONFIG_STATUS" <<\_ASEOF || as_write_fail=1
21074 ## -------------------- ##
21075 ## M4sh Initialization. ##
21076 ## -------------------- ##
21077
21078 # Be more Bourne compatible
21079 DUALCASE=1; export DUALCASE # for MKS sh
21080 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21081 then :
21082 emulate sh
21083 NULLCMD=:
21084 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21085 # contradicts POSIX and common usage. Disable this.
21086 alias -g '${1+"$@"}'='"$@"'
21087 setopt NO_GLOB_SUBST
21088 else case e in #(
21089 e) case `(set -o) 2>/dev/null` in #(
21090 *posix*) :
21091 set -o posix ;; #(
21092 *) :
21093 ;;
21094 esac ;;
21095 esac
21096 fi
21097
21098
21099
21100 # Reset variables that may have inherited troublesome values from
21101 # the environment.
21102
21103 # IFS needs to be set, to space, tab, and newline, in precisely that order.
21104 # (If _AS_PATH_WALK were called with IFS unset, it would have the
21105 # side effect of setting IFS to empty, thus disabling word splitting.)
21106 # Quoting is to prevent editors from complaining about space-tab.
21107 as_nl='
21108 '
21109 export as_nl
21110 IFS=" "" $as_nl"
21111
21112 PS1='$ '
21113 PS2='> '
21114 PS4='+ '
21115
21116 # Ensure predictable behavior from utilities with locale-dependent output.
21117 LC_ALL=C
21118 export LC_ALL
21119 LANGUAGE=C
21120 export LANGUAGE
21121
21122 # We cannot yet rely on "unset" to work, but we need these variables
21123 # to be unset--not just set to an empty or harmless value--now, to
21124 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
21125 # also avoids known problems related to "unset" and subshell syntax
21126 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
21127 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
21128 do eval test \${$as_var+y} \
21129 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21130 done
21131
21132 # Ensure that fds 0, 1, and 2 are open.
21133 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
21134 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
21135 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
21136
21137 # The user is always right.
21138 if ${PATH_SEPARATOR+false} :; then
21139 PATH_SEPARATOR=:
21140 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21141 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21142 PATH_SEPARATOR=';'
21143 }
21144 fi
21145
21146
21147 # Find who we are. Look in the path if we contain no directory separator.
21148 as_myself=
21149 case $0 in #((
21150 *[\\/]* ) as_myself=$0 ;;
21151 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21152 for as_dir in $PATH
21153 do
21154 IFS=$as_save_IFS
21155 case $as_dir in #(((
21156 '') as_dir=./ ;;
21157 */) ;;
21158 *) as_dir=$as_dir/ ;;
21159 esac
21160 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
21161 done
21162 IFS=$as_save_IFS
21163
21164 ;;
21165 esac
21166 # We did not find ourselves, most probably we were run as 'sh COMMAND'
21167 # in which case we are not to be found in the path.
21168 if test "x$as_myself" = x; then
21169 as_myself=$0
21170 fi
21171 if test ! -f "$as_myself"; then
21172 printf '%s\n' "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21173 exit 1
21174 fi
21175
21176
21177
21178 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21179 # ----------------------------------------
21180 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21181 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21182 # script with STATUS, using 1 if that was 0.
21183 as_fn_error ()
21184 {
21185 as_status=$1; test $as_status -eq 0 && as_status=1
21186 if test "$4"; then
21187 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21188 printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21189 fi
21190 printf '%s\n' "$as_me: error: $2" >&2
21191 as_fn_exit $as_status
21192 } # as_fn_error
21193
21194
21195 # as_fn_set_status STATUS
21196 # -----------------------
21197 # Set $? to STATUS, without forking.
21198 as_fn_set_status ()
21199 {
21200 return $1
21201 } # as_fn_set_status
21202
21203 # as_fn_exit STATUS
21204 # -----------------
21205 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21206 as_fn_exit ()
21207 {
21208 set +e
21209 as_fn_set_status $1
21210 exit $1
21211 } # as_fn_exit
21212
21213 # as_fn_unset VAR
21214 # ---------------
21215 # Portably unset VAR.
21216 as_fn_unset ()
21217 {
21218 { eval $1=; unset $1;}
21219 }
21220 as_unset=as_fn_unset
21221
21222 # as_fn_append VAR VALUE
21223 # ----------------------
21224 # Append the text in VALUE to the end of the definition contained in VAR. Take
21225 # advantage of any shell optimizations that allow amortized linear growth over
21226 # repeated appends, instead of the typical quadratic growth present in naive
21227 # implementations.
21228 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
21229 then :
21230 eval 'as_fn_append ()
21231 {
21232 eval $1+=\$2
21233 }'
21234 else case e in #(
21235 e) as_fn_append ()
21236 {
21237 eval $1=\$$1\$2
21238 } ;;
21239 esac
21240 fi # as_fn_append
21241
21242 # as_fn_arith ARG...
21243 # ------------------
21244 # Perform arithmetic evaluation on the ARGs, and store the result in the
21245 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21246 # must be portable across $(()) and expr.
21247 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
21248 then :
21249 eval 'as_fn_arith ()
21250 {
21251 as_val=$(( $* ))
21252 }'
21253 else case e in #(
21254 e) as_fn_arith ()
21255 {
21256 as_val=`expr "$@" || test $? -eq 1`
21257 } ;;
21258 esac
21259 fi # as_fn_arith
21260
21261
21262 if expr a : '\(a\)' >/dev/null 2>&1 &&
21263 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21264 as_expr=expr
21265 else
21266 as_expr=false
21267 fi
21268
21269 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21270 as_basename=basename
21271 else
21272 as_basename=false
21273 fi
21274
21275 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21276 as_dirname=dirname
21277 else
21278 as_dirname=false
21279 fi
21280
21281 as_me=`$as_basename -- "$0" ||
21282 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21283 X"$0" : 'X\(//\)$' \| \
21284 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21285 printf '%s\n' X/"$0" |
21286 sed '/^.*\/\([^/][^/]*\)\/*$/{
21287 s//\1/
21288 q
21289 }
21290 /^X\/\(\/\/\)$/{
21291 s//\1/
21292 q
21293 }
21294 /^X\/\(\/\).*/{
21295 s//\1/
21296 q
21297 }
21298 s/.*/./; q'`
21299
21300 # Avoid depending upon Character Ranges.
21301 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21302 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21303 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21304 as_cr_digits='0123456789'
21305 as_cr_alnum=$as_cr_Letters$as_cr_digits
21306
21307 rm -f conf$$ conf$$.exe conf$$.file
21308 if test -d conf$$.dir; then
21309 rm -f conf$$.dir/conf$$.file
21310 else
21311 rm -f conf$$.dir
21312 mkdir conf$$.dir 2>/dev/null
21313 fi
21314 if (echo >conf$$.file) 2>/dev/null; then
21315 if ln -s conf$$.file conf$$ 2>/dev/null; then
21316 as_ln_s='ln -s'
21317 # ... but there are two gotchas:
21318 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
21319 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
21320 # In both cases, we have to default to 'cp -pR'.
21321 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21322 as_ln_s='cp -pR'
21323 elif ln conf$$.file conf$$ 2>/dev/null; then
21324 as_ln_s=ln
21325 else
21326 as_ln_s='cp -pR'
21327 fi
21328 else
21329 as_ln_s='cp -pR'
21330 fi
21331 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21332 rmdir conf$$.dir 2>/dev/null
21333
21334
21335 # as_fn_mkdir_p
21336 # -------------
21337 # Create "$as_dir" as a directory, including parents if necessary.
21338 as_fn_mkdir_p ()
21339 {
21340
21341 case $as_dir in #(
21342 -*) as_dir=./$as_dir;;
21343 esac
21344 test -d "$as_dir" || eval $as_mkdir_p || {
21345 as_dirs=
21346 while :; do
21347 case $as_dir in #(
21348 *\'*) as_qdir=`printf '%s\n' "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21349 *) as_qdir=$as_dir;;
21350 esac
21351 as_dirs="'$as_qdir' $as_dirs"
21352 as_dir=`$as_dirname -- "$as_dir" ||
21353 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21354 X"$as_dir" : 'X\(//\)[^/]' \| \
21355 X"$as_dir" : 'X\(//\)$' \| \
21356 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21357 printf '%s\n' X"$as_dir" |
21358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21359 s//\1/
21360 q
21361 }
21362 /^X\(\/\/\)[^/].*/{
21363 s//\1/
21364 q
21365 }
21366 /^X\(\/\/\)$/{
21367 s//\1/
21368 q
21369 }
21370 /^X\(\/\).*/{
21371 s//\1/
21372 q
21373 }
21374 s/.*/./; q'`
21375 test -d "$as_dir" && break
21376 done
21377 test -z "$as_dirs" || eval "mkdir $as_dirs"
21378 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21379
21380
21381 } # as_fn_mkdir_p
21382 if mkdir -p . 2>/dev/null; then
21383 as_mkdir_p='mkdir -p "$as_dir"'
21384 else
21385 test -d ./-p && rmdir ./-p
21386 as_mkdir_p=false
21387 fi
21388
21389
21390 # as_fn_executable_p FILE
21391 # -----------------------
21392 # Test if FILE is an executable regular file.
21393 as_fn_executable_p ()
21394 {
21395 test -f "$1" && test -x "$1"
21396 } # as_fn_executable_p
21397 as_test_x='test -x'
21398 as_executable_p=as_fn_executable_p
21399
21400 # Sed expression to map a string onto a valid CPP name.
21401 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
21402 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
21403
21404 # Sed expression to map a string onto a valid variable name.
21405 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21406 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
21407
21408
21409 exec 6>&1
21410 ## ------------------------------------- ##
21411 ## Main body of "$CONFIG_STATUS" script. ##
21412 ## ------------------------------------- ##
21413 _ASEOF
21414 test $as_write_fail = 0 && chmod +x "$CONFIG_STATUS" || ac_write_fail=1
21415
21416 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
21417 # Save the log message, to keep $0 and so on meaningful, and to
21418 # report actual input values of CONFIG_FILES etc. instead of their
21419 # values after options handling.
21420 ac_log="
21421 This file was extended by lame $as_me 4.0, which was
21422 generated by GNU Autoconf 2.73. Invocation command line was
21423
21424 CONFIG_FILES = $CONFIG_FILES
21425 CONFIG_HEADERS = $CONFIG_HEADERS
21426 CONFIG_LINKS = $CONFIG_LINKS
21427 CONFIG_COMMANDS = $CONFIG_COMMANDS
21428 $ $0 $@
21429
21430 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21431 "
21432
21433 _ACEOF
21434
21435 case $ac_config_files in *"
21436 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21437 esac
21438
21439 case $ac_config_headers in *"
21440 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21441 esac
21442
21443
21444 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
21445 # Files that config.status was made for.
21446 config_files="$ac_config_files"
21447 config_headers="$ac_config_headers"
21448 config_commands="$ac_config_commands"
21449
21450 _ACEOF
21451
21452 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
21453 ac_cs_usage="\
21454 '$as_me' instantiates files and other configuration actions
21455 from templates according to the current configuration. Unless the files
21456 and actions are specified as TAGs, all are instantiated by default.
21457
21458 Usage: $0 [OPTION]... [TAG]...
21459
21460 -h, --help print this help, then exit
21461 -V, --version print version number and configuration settings, then exit
21462 --config print configuration, then exit
21463 -q, --quiet, --silent
21464 do not print progress messages
21465 -d, --debug don't remove temporary files
21466 --recheck update $as_me by reconfiguring in the same conditions
21467 --file=FILE[:TEMPLATE]
21468 instantiate the configuration file FILE
21469 --header=FILE[:TEMPLATE]
21470 instantiate the configuration header FILE
21471
21472 Configuration files:
21473 $config_files
21474
21475 Configuration headers:
21476 $config_headers
21477
21478 Configuration commands:
21479 $config_commands
21480
21481 Report bugs to <[email protected]>."
21482
21483 _ACEOF
21484 ac_cs_config=`printf '%s\n' "$ac_configure_args" | sed "$ac_safe_unquote"`
21485 ac_cs_config_escaped=`printf '%s\n' "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
21486 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
21487 ac_cs_config='$ac_cs_config_escaped'
21488 ac_cs_version="\\
21489 lame config.status 4.0
21490 configured by $0, generated by GNU Autoconf 2.73,
21491 with options \\"\$ac_cs_config\\"
21492
21493 Copyright (C) 2026 Free Software Foundation, Inc.
21494 This config.status script is free software; the Free Software Foundation
21495 gives unlimited permission to copy, distribute and modify it."
21496
21497 ac_pwd='$ac_pwd'
21498 srcdir='$srcdir'
21499 INSTALL='$INSTALL'
21500 MKDIR_P='$MKDIR_P'
21501 AWK='$AWK'
21502 test -n "\$AWK" || {
21503 awk '' </dev/null ||
21504 as_fn_error \$? "try installing gawk"
21505 AWK=awk
21506 }
21507 _ACEOF
21508
21509 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
21510 # The default lists apply if the user does not specify any file.
21511 ac_need_defaults=:
21512 while test $# != 0
21513 do
21514 case $1 in
21515 --*=?*)
21516 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21517 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21518 ac_shift=:
21519 ;;
21520 --*=)
21521 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21522 ac_optarg=
21523 ac_shift=:
21524 ;;
21525 *)
21526 ac_option=$1
21527 ac_optarg=$2
21528 ac_shift=shift
21529 ;;
21530 esac
21531
21532 case $ac_option in
21533 # Handling of the options.
21534 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21535 ac_cs_recheck=: ;;
21536 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21537 printf '%s\n' "$ac_cs_version"; exit ;;
21538 --config | --confi | --conf | --con | --co | --c )
21539 printf '%s\n' "$ac_cs_config"; exit ;;
21540 --debug | --debu | --deb | --de | --d | -d )
21541 debug=: ;;
21542 --file | --fil | --fi | --f )
21543 $ac_shift
21544 case $ac_optarg in
21545 *\'*) ac_optarg=`printf '%s\n' "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21546 '') as_fn_error $? "missing file argument" ;;
21547 esac
21548 as_fn_append CONFIG_FILES " '$ac_optarg'"
21549 ac_need_defaults=false;;
21550 --header | --heade | --head | --hea )
21551 $ac_shift
21552 case $ac_optarg in
21553 *\'*) ac_optarg=`printf '%s\n' "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21554 esac
21555 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21556 ac_need_defaults=false;;
21557 --he | --h)
21558 # Conflict between --help and --header
21559 as_fn_error $? "ambiguous option: '$1'
21560 Try '$0 --help' for more information.";;
21561 --help | --hel | -h )
21562 printf '%s\n' "$ac_cs_usage"; exit ;;
21563 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21564 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21565 ac_cs_silent=: ;;
21566
21567 # This is an error.
21568 -*) as_fn_error $? "unrecognized option: '$1'
21569 Try '$0 --help' for more information." ;;
21570
21571 *) as_fn_append ac_config_targets " $1"
21572 ac_need_defaults=false ;;
21573
21574 esac
21575 shift
21576 done
21577
21578 ac_configure_extra_args=
21579
21580 if $ac_cs_silent; then
21581 exec 6>/dev/null
21582 ac_configure_extra_args="$ac_configure_extra_args --silent"
21583 fi
21584
21585 _ACEOF
21586 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
21587 if \$ac_cs_recheck; then
21588 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21589 shift
21590 \printf '%s\n' "running CONFIG_SHELL=$SHELL \$*" >&6
21591 CONFIG_SHELL='$SHELL'
21592 export CONFIG_SHELL
21593 exec "\$@"
21594 fi
21595
21596 _ACEOF
21597 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
21598 exec 5>>config.log
21599 {
21600 echo
21601 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21602 ## Running $as_me. ##
21603 _ASBOX
21604 printf '%s\n' "$ac_log"
21605 } >&5
21606
21607 _ACEOF
21608 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
21609 #
21610 # INIT-COMMANDS
21611 #
21612 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21613
21614
21615 # The HP-UX ksh and POSIX shell print the target directory to stdout
21616 # if CDPATH is set.
21617 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21618
21619 sed_quote_subst='$sed_quote_subst'
21620 double_quote_subst='$double_quote_subst'
21621 delay_variable_subst='$delay_variable_subst'
21622 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21623 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21624 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21625 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21626 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21627 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21628 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21629 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21630 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21631 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21632 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21633 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21634 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21635 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21636 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21637 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21638 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21639 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21640 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21641 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21642 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21643 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21644 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21645 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21646 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21647 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21648 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21649 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21650 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21651 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21652 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21653 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21654 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21655 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21656 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
21657 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21658 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21659 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21660 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21661 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21662 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21663 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21664 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21665 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
21666 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21667 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21668 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21669 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21670 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21671 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21672 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21673 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21674 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21675 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21676 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21677 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21678 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21679 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21680 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21681 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21682 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"`'
21683 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21684 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21685 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21686 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21687 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21688 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21689 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21690 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21691 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21692 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21693 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21694 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21695 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21696 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21697 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21698 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21699 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21700 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21701 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21702 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21703 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21704 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21705 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21706 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21707 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21708 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21709 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21710 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21711 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21712 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21713 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21714 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21715 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21716 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21717 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21718 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21719 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21720 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21721 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21722 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21723 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21724 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21725 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21726 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21727 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21728 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21729 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21730 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21731 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21732 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21733 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21734 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21735 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21736 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21737 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21738 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21739 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21740 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21741 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21742 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21743 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21744 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21745 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21746 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21747 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21748 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21749 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21750 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21751 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21752 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21753 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21754 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21755 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21756 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21757 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21758 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21759
21760 LTCC='$LTCC'
21761 LTCFLAGS='$LTCFLAGS'
21762 compiler='$compiler_DEFAULT'
21763
21764 # A function that is used when there is no print builtin or printf.
21765 func_fallback_echo ()
21766 {
21767 eval 'cat <<_LTECHO_EOF
21768 \$1
21769 _LTECHO_EOF'
21770 }
21771
21772 # Quote evaled strings.
21773 for var in SHELL \
21774 ECHO \
21775 PATH_SEPARATOR \
21776 SED \
21777 GREP \
21778 EGREP \
21779 FGREP \
21780 LD \
21781 NM \
21782 LN_S \
21783 lt_SP2NL \
21784 lt_NL2SP \
21785 reload_flag \
21786 FILECMD \
21787 OBJDUMP \
21788 deplibs_check_method \
21789 file_magic_cmd \
21790 file_magic_glob \
21791 want_nocaseglob \
21792 DLLTOOL \
21793 sharedlib_from_linklib_cmd \
21794 AR \
21795 archiver_list_spec \
21796 STRIP \
21797 RANLIB \
21798 CC \
21799 CFLAGS \
21800 compiler \
21801 lt_cv_sys_global_symbol_pipe \
21802 lt_cv_sys_global_symbol_to_cdecl \
21803 lt_cv_sys_global_symbol_to_import \
21804 lt_cv_sys_global_symbol_to_c_name_address \
21805 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21806 lt_cv_nm_interface \
21807 nm_file_list_spec \
21808 lt_cv_truncate_bin \
21809 lt_prog_compiler_no_builtin_flag \
21810 lt_prog_compiler_pic \
21811 lt_prog_compiler_wl \
21812 lt_prog_compiler_static \
21813 lt_cv_prog_compiler_c_o \
21814 need_locks \
21815 MANIFEST_TOOL \
21816 DSYMUTIL \
21817 NMEDIT \
21818 LIPO \
21819 OTOOL \
21820 OTOOL64 \
21821 shrext_cmds \
21822 export_dynamic_flag_spec \
21823 whole_archive_flag_spec \
21824 compiler_needs_object \
21825 with_gnu_ld \
21826 allow_undefined_flag \
21827 no_undefined_flag \
21828 hardcode_libdir_flag_spec \
21829 hardcode_libdir_separator \
21830 exclude_expsyms \
21831 include_expsyms \
21832 file_list_spec \
21833 variables_saved_for_relink \
21834 libname_spec \
21835 library_names_spec \
21836 soname_spec \
21837 install_override_mode \
21838 finish_eval \
21839 old_striplib \
21840 striplib; do
21841 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21842 *[\\\\\\\`\\"\\\$]*)
21843 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21844 ;;
21845 *)
21846 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21847 ;;
21848 esac
21849 done
21850
21851 # Double-quote double-evaled strings.
21852 for var in reload_cmds \
21853 old_postinstall_cmds \
21854 old_postuninstall_cmds \
21855 old_archive_cmds \
21856 extract_expsyms_cmds \
21857 old_archive_from_new_cmds \
21858 old_archive_from_expsyms_cmds \
21859 archive_cmds \
21860 archive_expsym_cmds \
21861 module_cmds \
21862 module_expsym_cmds \
21863 export_symbols_cmds \
21864 prelink_cmds \
21865 postlink_cmds \
21866 postinstall_cmds \
21867 postuninstall_cmds \
21868 finish_cmds \
21869 sys_lib_search_path_spec \
21870 configure_time_dlsearch_path \
21871 configure_time_lt_sys_library_path; do
21872 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21873 *[\\\\\\\`\\"\\\$]*)
21874 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21875 ;;
21876 *)
21877 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21878 ;;
21879 esac
21880 done
21881
21882 ac_aux_dir='$ac_aux_dir'
21883
21884 # See if we are running on zsh, and set the options that allow our
21885 # commands through without removal of \ escapes INIT.
21886 if test -n "\${ZSH_VERSION+set}"; then
21887 setopt NO_GLOB_SUBST
21888 fi
21889
21890
21891 PACKAGE='$PACKAGE'
21892 VERSION='$VERSION'
21893 RM='$RM'
21894 ofile='$ofile'
21895
21896
21897
21898
21899 _ACEOF
21900
21901 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
21902
21903 # Handling of arguments.
21904 for ac_config_target in $ac_config_targets
21905 do
21906 case $ac_config_target in
21907 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21908 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21909 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21910 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21911 "libmp3lame/Makefile") CONFIG_FILES="$CONFIG_FILES libmp3lame/Makefile" ;;
21912 "libmp3lame/i386/Makefile") CONFIG_FILES="$CONFIG_FILES libmp3lame/i386/Makefile" ;;
21913 "libmp3lame/lame.pc") CONFIG_FILES="$CONFIG_FILES libmp3lame/lame.pc" ;;
21914 "libmp3lame/vector/Makefile") CONFIG_FILES="$CONFIG_FILES libmp3lame/vector/Makefile" ;;
21915 "frontend/Makefile") CONFIG_FILES="$CONFIG_FILES frontend/Makefile" ;;
21916 "mpglib/Makefile") CONFIG_FILES="$CONFIG_FILES mpglib/Makefile" ;;
21917 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21918 "doc/html/Makefile") CONFIG_FILES="$CONFIG_FILES doc/html/Makefile" ;;
21919 "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;;
21920 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21921 "Dll/Makefile") CONFIG_FILES="$CONFIG_FILES Dll/Makefile" ;;
21922 "misc/Makefile") CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;;
21923 "dshow/Makefile") CONFIG_FILES="$CONFIG_FILES dshow/Makefile" ;;
21924 "ACM/Makefile") CONFIG_FILES="$CONFIG_FILES ACM/Makefile" ;;
21925 "ACM/ADbg/Makefile") CONFIG_FILES="$CONFIG_FILES ACM/ADbg/Makefile" ;;
21926 "ACM/ddk/Makefile") CONFIG_FILES="$CONFIG_FILES ACM/ddk/Makefile" ;;
21927 "ACM/tinyxml/Makefile") CONFIG_FILES="$CONFIG_FILES ACM/tinyxml/Makefile" ;;
21928 "lame.spec") CONFIG_FILES="$CONFIG_FILES lame.spec" ;;
21929 "mac/Makefile") CONFIG_FILES="$CONFIG_FILES mac/Makefile" ;;
21930 "vc_solution/Makefile") CONFIG_FILES="$CONFIG_FILES vc_solution/Makefile" ;;
21931
21932 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
21933 esac
21934 done
21935
21936
21937 # If the user did not use the arguments to specify the items to instantiate,
21938 # then the envvar interface is used. Set only those that are not.
21939 # We use the long form for the default assignment because of an extremely
21940 # bizarre bug on SunOS 4.1.3.
21941 if $ac_need_defaults; then
21942 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21943 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
21944 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21945 fi
21946
21947 # Have a temporary directory for convenience. Make it in the build tree
21948 # simply because there is no reason against having it here, and in addition,
21949 # creating and moving files from /tmp can sometimes cause problems.
21950 # Hook for its removal unless debugging.
21951 # Note that there is a small window in which the directory will not be cleaned:
21952 # after its creation but before its name has been assigned to '$tmp'.
21953 $debug ||
21954 {
21955 tmp= ac_tmp=
21956 trap 'exit_status=$?
21957 : "${ac_tmp:=$tmp}"
21958 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21959 ' 0
21960 trap 'as_fn_exit 1' 1 2 13 15
21961 }
21962 # Create a (secure) tmp directory for tmp files.
21963
21964 {
21965 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21966 test -d "$tmp"
21967 } ||
21968 {
21969 tmp=./conf$$-$RANDOM
21970 (umask 077 && mkdir "$tmp")
21971 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21972 ac_tmp=$tmp
21973
21974 # Set up the scripts for CONFIG_FILES section.
21975 # No need to generate them if there are no CONFIG_FILES.
21976 # This happens for instance with './config.status config.h'.
21977 if test -n "$CONFIG_FILES"; then
21978
21979
21980 ac_cr=`echo X | tr X '\015'`
21981 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21982 # But we know of no other shell where ac_cr would be empty at this
21983 # point, so we can use a bashism as a fallback.
21984 if test "x$ac_cr" = x; then
21985 eval ac_cr=\$\'\\r\'
21986 fi
21987 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21988 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21989 ac_cs_awk_cr='\\r'
21990 else
21991 ac_cs_awk_cr=$ac_cr
21992 fi
21993
21994 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21995 _ACEOF
21996
21997
21998 {
21999 echo "cat >conf$$subs.awk <<_ACEOF" &&
22000 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22001 echo "_ACEOF"
22002 } >conf$$subs.sh ||
22003 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22004 ac_delim_num=`echo "$ac_subst_vars" | sed -n '$='`
22005 ac_delim='%!_!# '
22006 for ac_last_try in false false false false false :; do
22007 . ./conf$$subs.sh ||
22008 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22009
22010 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | sed -n '$='`
22011 if test $ac_delim_n = $ac_delim_num; then
22012 break
22013 elif $ac_last_try; then
22014 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22015 else
22016 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22017 fi
22018 done
22019 rm -f conf$$subs.sh
22020
22021 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
22022 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22023 _ACEOF
22024 sed -n '
22025 h
22026 s/^/S["/; s/!.*/"]=/
22027 p
22028 g
22029 s/^[^!]*!//
22030 :repl
22031 t repl
22032 s/'"$ac_delim"'$//
22033 t delim
22034 :nl
22035 h
22036 s/\(.\{148\}\)..*/\1/
22037 t more1
22038 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22039 p
22040 n
22041 b repl
22042 :more1
22043 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22044 p
22045 g
22046 s/.\{148\}//
22047 t nl
22048 :delim
22049 h
22050 s/\(.\{148\}\)..*/\1/
22051 t more2
22052 s/["\\]/\\&/g; s/^/"/; s/$/"/
22053 p
22054 b
22055 :more2
22056 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22057 p
22058 g
22059 s/.\{148\}//
22060 t delim
22061 ' <conf$$subs.awk | sed '
22062 /^[^""]/{
22063 N
22064 s/\n//
22065 }
22066 ' >>"$CONFIG_STATUS" || ac_write_fail=1
22067 rm -f conf$$subs.awk
22068 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
22069 _ACAWK
22070 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22071 for (key in S) S_is_set[key] = 1
22072 FS = ""
22073
22074 }
22075 {
22076 line = $ 0
22077 nfields = split(line, field, "@")
22078 substed = 0
22079 len = length(field[1])
22080 for (i = 2; i < nfields; i++) {
22081 key = field[i]
22082 keylen = length(key)
22083 if (S_is_set[key]) {
22084 value = S[key]
22085 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22086 len += length(value) + length(field[++i])
22087 substed = 1
22088 } else
22089 len += 1 + keylen
22090 }
22091
22092 print line
22093 }
22094
22095 _ACAWK
22096 _ACEOF
22097 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
22098 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22099 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22100 else
22101 cat
22102 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22103 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22104 _ACEOF
22105
22106 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22107 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22108 # trailing colons and then remove the whole line if VPATH becomes empty
22109 # (actually we leave an empty line to preserve line numbers).
22110 if test "x$srcdir" = x.; then
22111 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22112 h
22113 s///
22114 s/^/:/
22115 s/[ ]*$/:/
22116 s/:\$(srcdir):/:/g
22117 s/:\${srcdir}:/:/g
22118 s/:@srcdir@:/:/g
22119 s/^:*//
22120 s/:*$//
22121 x
22122 s/\(=[ ]*\).*/\1/
22123 G
22124 s/\n//
22125 s/^[^=]*=[ ]*$//
22126 }'
22127 fi
22128
22129 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
22130 fi # test -n "$CONFIG_FILES"
22131
22132 # Set up the scripts for CONFIG_HEADERS section.
22133 # No need to generate them if there are no CONFIG_HEADERS.
22134 # This happens for instance with './config.status Makefile'.
22135 if test -n "$CONFIG_HEADERS"; then
22136 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22137 BEGIN {
22138 _ACEOF
22139
22140 # Transform confdefs.h into an awk script 'defines.awk', embedded as
22141 # here-document in config.status, that substitutes the proper values into
22142 # config.h.in to produce config.h.
22143
22144 # Create a delimiter string that does not exist in confdefs.h, to ease
22145 # handling of long lines.
22146 ac_delim='%!_!# '
22147 for ac_last_try in false false :; do
22148 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22149 if test -z "$ac_tt"; then
22150 break
22151 elif $ac_last_try; then
22152 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22153 else
22154 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22155 fi
22156 done
22157
22158 # For the awk script, D is an array of macro values keyed by name,
22159 # likewise P contains macro parameters if any. Preserve backslash
22160 # newline sequences.
22161
22162 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22163 sed -n '
22164 s/.\{148\}/&'"$ac_delim"'/g
22165 t rset
22166 :rset
22167 s/^[ ]*#[ ]*define[ ][ ]*/ /
22168 t def
22169 d
22170 :def
22171 s/\\$//
22172 t bsnl
22173 s/["\\]/\\&/g
22174 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22175 D["\1"]=" \3"/p
22176 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22177 d
22178 :bsnl
22179 s/["\\]/\\&/g
22180 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22181 D["\1"]=" \3\\\\\\n"\\/p
22182 t cont
22183 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22184 t cont
22185 d
22186 :cont
22187 n
22188 s/.\{148\}/&'"$ac_delim"'/g
22189 t clear
22190 :clear
22191 s/\\$//
22192 t bsnlc
22193 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22194 d
22195 :bsnlc
22196 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22197 b cont
22198 ' <confdefs.h | sed '
22199 s/'"$ac_delim"'/"\\\
22200 "/g' >>"$CONFIG_STATUS" || ac_write_fail=1
22201
22202 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
22203 for (key in D) D_is_set[key] = 1
22204 FS = ""
22205 }
22206 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22207 line = \$ 0
22208 split(line, arg, " ")
22209 if (arg[1] == "#") {
22210 defundef = arg[2]
22211 mac1 = arg[3]
22212 } else {
22213 defundef = substr(arg[1], 2)
22214 mac1 = arg[2]
22215 }
22216 split(mac1, mac2, "(") #)
22217 macro = mac2[1]
22218 prefix = substr(line, 1, index(line, defundef) - 1)
22219 if (D_is_set[macro]) {
22220 suffix = P[macro] D[macro]
22221 while (suffix ~ /[\t ]$/) {
22222 suffix = substr(suffix, 1, length(suffix) - 1)
22223 }
22224 # Preserve the white space surrounding the "#".
22225 print prefix "define", macro suffix
22226 next
22227 } else {
22228 # Replace #undef with comments. This is necessary, for example,
22229 # in the case of _POSIX_SOURCE, which is predefined and required
22230 # on some systems where configure will not decide to define it.
22231 if (defundef == "undef") {
22232 print "/*", prefix defundef, macro, "*/"
22233 next
22234 }
22235 }
22236 }
22237 { print }
22238 _ACAWK
22239 _ACEOF
22240 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
22241 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22242 fi # test -n "$CONFIG_HEADERS"
22243
22244
22245 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22246 shift
22247 for ac_tag
22248 do
22249 case $ac_tag in
22250 :[FHLC]) ac_mode=$ac_tag; continue;;
22251 esac
22252 case $ac_mode$ac_tag in
22253 :[FHL]*:*);;
22254 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
22255 :[FH]-) ac_tag=-:-;;
22256 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22257 esac
22258 ac_save_IFS=$IFS
22259 IFS=:
22260 set x $ac_tag
22261 IFS=$ac_save_IFS
22262 shift
22263 ac_file=$1
22264 shift
22265
22266 case $ac_mode in
22267 :L) ac_source=$1;;
22268 :[FH])
22269 ac_file_inputs=
22270 for ac_f
22271 do
22272 case $ac_f in
22273 -) ac_f="$ac_tmp/stdin";;
22274 *) # Look for the file first in the build tree, then in the source tree
22275 # (if the path is not absolute). The absolute path cannot be DOS-style,
22276 # because $ac_f cannot contain ':'.
22277 test -f "$ac_f" ||
22278 case $ac_f in
22279 [\\/$]*) false;;
22280 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22281 esac ||
22282 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
22283 esac
22284 case $ac_f in *\'*) ac_f=`printf '%s\n' "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22285 as_fn_append ac_file_inputs " '$ac_f'"
22286 done
22287
22288 # Let's still pretend it is 'configure' which instantiates (i.e., don't
22289 # use $as_me), people would be surprised to read:
22290 # /* config.h. Generated by config.status. */
22291 configure_input='Generated from '`
22292 printf '%s\n' "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22293 `' by configure.'
22294 if test x"$ac_file" != x-; then
22295 configure_input="$ac_file. $configure_input"
22296 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22297 printf '%s\n' "$as_me: creating $ac_file" >&6;}
22298 fi
22299 # Neutralize special characters interpreted by sed in replacement strings.
22300 case $configure_input in #(
22301 *\&* | *\|* | *\\* )
22302 ac_sed_conf_input=`printf '%s\n' "$configure_input" |
22303 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22304 *) ac_sed_conf_input=$configure_input;;
22305 esac
22306
22307 case $ac_tag in
22308 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22309 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22310 esac
22311 ;;
22312 esac
22313
22314 ac_dir=`$as_dirname -- "$ac_file" ||
22315 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22316 X"$ac_file" : 'X\(//\)[^/]' \| \
22317 X"$ac_file" : 'X\(//\)$' \| \
22318 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22319 printf '%s\n' X"$ac_file" |
22320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22321 s//\1/
22322 q
22323 }
22324 /^X\(\/\/\)[^/].*/{
22325 s//\1/
22326 q
22327 }
22328 /^X\(\/\/\)$/{
22329 s//\1/
22330 q
22331 }
22332 /^X\(\/\).*/{
22333 s//\1/
22334 q
22335 }
22336 s/.*/./; q'`
22337 as_dir="$ac_dir"; as_fn_mkdir_p
22338 ac_builddir=.
22339
22340 case "$ac_dir" in
22341 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22342 *)
22343 ac_dir_suffix=/`printf '%s\n' "$ac_dir" | sed 's|^\.[\\/]||'`
22344 # A ".." for each directory in $ac_dir_suffix.
22345 ac_top_builddir_sub=`printf '%s\n' "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22346 case $ac_top_builddir_sub in
22347 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22348 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22349 esac ;;
22350 esac
22351 ac_abs_top_builddir=$ac_pwd
22352 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22353 # for backward compatibility:
22354 ac_top_builddir=$ac_top_build_prefix
22355
22356 case $srcdir in
22357 .) # We are building in place.
22358 ac_srcdir=.
22359 ac_top_srcdir=$ac_top_builddir_sub
22360 ac_abs_top_srcdir=$ac_pwd ;;
22361 [\\/]* | ?:[\\/]* ) # Absolute name.
22362 ac_srcdir=$srcdir$ac_dir_suffix;
22363 ac_top_srcdir=$srcdir
22364 ac_abs_top_srcdir=$srcdir ;;
22365 *) # Relative name.
22366 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22367 ac_top_srcdir=$ac_top_build_prefix$srcdir
22368 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22369 esac
22370 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22371
22372
22373 case $ac_mode in
22374 :F)
22375 #
22376 # CONFIG_FILE
22377 #
22378
22379 case $INSTALL in
22380 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22381 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22382 esac
22383 ac_MKDIR_P=$MKDIR_P
22384 case $MKDIR_P in
22385 [\\/$]* | ?:[\\/]* ) ;;
22386 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22387 esac
22388 _ACEOF
22389
22390 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
22391 # If the template does not know about datarootdir, expand it.
22392 # FIXME: This hack should be removed a few years after 2.60.
22393 ac_datarootdir_hack=; ac_datarootdir_seen=
22394 ac_sed_dataroot='
22395 /datarootdir/ {
22396 p
22397 q
22398 }
22399 /@datadir@/p
22400 /@docdir@/p
22401 /@infodir@/p
22402 /@localedir@/p
22403 /@mandir@/p'
22404 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22405 *datarootdir*) ac_datarootdir_seen=yes;;
22406 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22407 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22408 printf '%s\n' "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22409 _ACEOF
22410 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
22411 ac_datarootdir_hack='
22412 s&@datadir@&$datadir&g
22413 s&@docdir@&$docdir&g
22414 s&@infodir@&$infodir&g
22415 s&@localedir@&$localedir&g
22416 s&@mandir@&$mandir&g
22417 s&\\\${datarootdir}&$datarootdir&g' ;;
22418 esac
22419 _ACEOF
22420
22421 # Neutralize VPATH when '$srcdir' = '.'.
22422 # Shell code in configure.ac might set extrasub.
22423 # FIXME: do we really want to maintain this feature?
22424 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
22425 ac_sed_extra="$ac_vpsub
22426 $extrasub
22427 _ACEOF
22428 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
22429 :t
22430 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22431 s|@configure_input@|$ac_sed_conf_input|;t t
22432 s&@top_builddir@&$ac_top_builddir_sub&;t t
22433 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22434 s&@srcdir@&$ac_srcdir&;t t
22435 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22436 s&@top_srcdir@&$ac_top_srcdir&;t t
22437 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22438 s&@builddir@&$ac_builddir&;t t
22439 s&@abs_builddir@&$ac_abs_builddir&;t t
22440 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22441 s&@INSTALL@&$ac_INSTALL&;t t
22442 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22443 $ac_datarootdir_hack
22444 "
22445 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22446 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22447
22448 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22449 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22450 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22451 "$ac_tmp/out"`; test -z "$ac_out"; } &&
22452 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
22453 which seems to be undefined. Please make sure it is defined" >&5
22454 printf '%s\n' "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
22455 which seems to be undefined. Please make sure it is defined" >&2;}
22456
22457 rm -f "$ac_tmp/stdin"
22458 case $ac_file in
22459 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22460 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22461 esac \
22462 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22463 ;;
22464 :H)
22465 #
22466 # CONFIG_HEADER
22467 #
22468 if test x"$ac_file" != x-; then
22469 {
22470 printf '%s\n' "/* $configure_input */" >&1 \
22471 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22472 } >"$ac_tmp/config.h" \
22473 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22474 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22475 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22476 printf '%s\n' "$as_me: $ac_file is unchanged" >&6;}
22477 else
22478 rm -f "$ac_file"
22479 mv "$ac_tmp/config.h" "$ac_file" \
22480 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22481 fi
22482 else
22483 printf '%s\n' "/* $configure_input */" >&1 \
22484 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22485 || as_fn_error $? "could not create -" "$LINENO" 5
22486 fi
22487 # Compute "$ac_file"'s index in $config_headers.
22488 _am_arg="$ac_file"
22489 _am_stamp_count=1
22490 for _am_header in $config_headers :; do
22491 case $_am_header in
22492 $_am_arg | $_am_arg:* )
22493 break ;;
22494 * )
22495 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22496 esac
22497 done
22498 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22499 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22500 X"$_am_arg" : 'X\(//\)[^/]' \| \
22501 X"$_am_arg" : 'X\(//\)$' \| \
22502 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22503 printf '%s\n' X"$_am_arg" |
22504 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22505 s//\1/
22506 q
22507 }
22508 /^X\(\/\/\)[^/].*/{
22509 s//\1/
22510 q
22511 }
22512 /^X\(\/\/\)$/{
22513 s//\1/
22514 q
22515 }
22516 /^X\(\/\).*/{
22517 s//\1/
22518 q
22519 }
22520 s/.*/./; q'`/stamp-h$_am_stamp_count
22521 ;;
22522
22523 :C) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22524 printf '%s\n' "$as_me: executing $ac_file commands" >&6;}
22525 ;;
22526 esac
22527
22528
22529 case $ac_file$ac_mode in
22530 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22531 # Older Autoconf quotes --file arguments for eval, but not when files
22532 # are listed without --file. Let's play safe and only enable the eval
22533 # if we detect the quoting.
22534 # TODO: see whether this extra hack can be removed once we start
22535 # requiring Autoconf 2.70 or later.
22536 case $CONFIG_FILES in #(
22537 *\'*) :
22538 eval set x "$CONFIG_FILES" ;; #(
22539 *) :
22540 set x $CONFIG_FILES ;; #(
22541 *) :
22542 ;;
22543 esac
22544 shift
22545 # Used to flag and report bootstrapping failures.
22546 am_rc=0
22547 for am_mf
22548 do
22549 # Strip MF so we end up with the name of the file.
22550 am_mf=`printf '%s\n' "$am_mf" | sed -e 's/:.*$//'`
22551 # Check whether this is an Automake generated Makefile which includes
22552 # dependency-tracking related rules and includes.
22553 # Grep'ing the whole file directly is not great: AIX grep has a line
22554 # limit of 2048, but all sed's we know have understand at least 4000.
22555 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22556 || continue
22557 am_dirpart=`$as_dirname -- "$am_mf" ||
22558 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22559 X"$am_mf" : 'X\(//\)[^/]' \| \
22560 X"$am_mf" : 'X\(//\)$' \| \
22561 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22562 printf '%s\n' X"$am_mf" |
22563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22564 s//\1/
22565 q
22566 }
22567 /^X\(\/\/\)[^/].*/{
22568 s//\1/
22569 q
22570 }
22571 /^X\(\/\/\)$/{
22572 s//\1/
22573 q
22574 }
22575 /^X\(\/\).*/{
22576 s//\1/
22577 q
22578 }
22579 s/.*/./; q'`
22580 am_filepart=`$as_basename -- "$am_mf" ||
22581 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22582 X"$am_mf" : 'X\(//\)$' \| \
22583 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22584 printf '%s\n' X/"$am_mf" |
22585 sed '/^.*\/\([^/][^/]*\)\/*$/{
22586 s//\1/
22587 q
22588 }
22589 /^X\/\(\/\/\)$/{
22590 s//\1/
22591 q
22592 }
22593 /^X\/\(\/\).*/{
22594 s//\1/
22595 q
22596 }
22597 s/.*/./; q'`
22598 { echo "$as_me:$LINENO: cd "$am_dirpart" \
22599 && sed -e '/# am--include-marker/d' "$am_filepart" \
22600 | $MAKE -f - am--depfiles" >&5
22601 (cd "$am_dirpart" \
22602 && sed -e '/# am--include-marker/d' "$am_filepart" \
22603 | $MAKE -f - am--depfiles) >&5 2>&5
22604 ac_status=$?
22605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22606 (exit $ac_status); } || am_rc=$?
22607 done
22608 if test $am_rc -ne 0; then
22609 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
22610 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
22611 as_fn_error $? "Something went wrong bootstrapping makefile fragments
22612 for automatic dependency tracking. If GNU make was not used, consider
22613 re-running the configure script with MAKE=\"gmake\" (or whatever is
22614 necessary). You can also try re-running configure with the
22615 '--disable-dependency-tracking' option to at least be able to build
22616 the package (albeit without support for automatic dependency tracking).
22617 See 'config.log' for more details" "$LINENO" 5; }
22618 fi
22619 { am_dirpart=; unset am_dirpart;}
22620 { am_filepart=; unset am_filepart;}
22621 { am_mf=; unset am_mf;}
22622 { am_rc=; unset am_rc;}
22623 rm -f conftest-deps.mk
22624 }
22625 ;;
22626 "libtool":C)
22627
22628 # See if we are running on zsh, and set the options that allow our
22629 # commands through without removal of \ escapes.
22630 if test -n "${ZSH_VERSION+set}"; then
22631 setopt NO_GLOB_SUBST
22632 fi
22633
22634 cfgfile=${ofile}T
22635 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22636 $RM "$cfgfile"
22637
22638 cat <<_LT_EOF >> "$cfgfile"
22639 #! $SHELL
22640 # Generated automatically by $as_me ($PACKAGE) $VERSION
22641 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22642
22643 # Provide generalized library-building support services.
22644 # Written by Gordon Matzigkeit, 1996
22645
22646 # Copyright (C) 2024 Free Software Foundation, Inc.
22647 # This is free software; see the source for copying conditions. There is NO
22648 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22649
22650 # GNU Libtool is free software; you can redistribute it and/or modify
22651 # it under the terms of the GNU General Public License as published by
22652 # the Free Software Foundation; either version 2 of the License, or
22653 # (at your option) any later version.
22654 #
22655 # As a special exception to the GNU General Public License, if you
22656 # distribute this file as part of a program or library that is built
22657 # using GNU Libtool, you may include this file under the same
22658 # distribution terms that you use for the rest of that program.
22659 #
22660 # GNU Libtool is distributed in the hope that it will be useful, but
22661 # WITHOUT ANY WARRANTY; without even the implied warranty of
22662 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22663 # GNU General Public License for more details.
22664 #
22665 # You should have received a copy of the GNU General Public License
22666 # along with this program. If not, see <http://www.gnu.org/licenses/>.
22667
22668
22669 # The names of the tagged configurations supported by this script.
22670 available_tags=''
22671
22672 # Configured defaults for sys_lib_dlsearch_path munging.
22673 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22674
22675 # ### BEGIN LIBTOOL CONFIG
22676
22677 # Which release of libtool.m4 was used?
22678 macro_version=$macro_version
22679 macro_revision=$macro_revision
22680
22681 # Whether or not to build shared libraries.
22682 build_libtool_libs=$enable_shared
22683
22684 # Whether or not to build static libraries.
22685 build_old_libs=$enable_static
22686
22687 # What type of objects to build.
22688 pic_mode=$pic_mode
22689
22690 # Whether or not to optimize for fast installation.
22691 fast_install=$enable_fast_install
22692
22693 # Shared archive member basename,for filename based shared library versioning on AIX.
22694 shared_archive_member_spec=$shared_archive_member_spec
22695
22696 # Shell to use when invoking shell scripts.
22697 SHELL=$lt_SHELL
22698
22699 # An echo program that protects backslashes.
22700 ECHO=$lt_ECHO
22701
22702 # The PATH separator for the build system.
22703 PATH_SEPARATOR=$lt_PATH_SEPARATOR
22704
22705 # The host system.
22706 host_alias=$host_alias
22707 host=$host
22708 host_os=$host_os
22709
22710 # The build system.
22711 build_alias=$build_alias
22712 build=$build
22713 build_os=$build_os
22714
22715 # A sed program that does not truncate output.
22716 SED=$lt_SED
22717
22718 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22719 Xsed="\$SED -e 1s/^X//"
22720
22721 # A grep program that handles long lines.
22722 GREP=$lt_GREP
22723
22724 # An ERE matcher.
22725 EGREP=$lt_EGREP
22726
22727 # A literal string matcher.
22728 FGREP=$lt_FGREP
22729
22730 # A BSD- or MS-compatible name lister.
22731 NM=$lt_NM
22732
22733 # Whether we need soft or hard links.
22734 LN_S=$lt_LN_S
22735
22736 # What is the maximum length of a command?
22737 max_cmd_len=$max_cmd_len
22738
22739 # Object file suffix (normally "o").
22740 objext=$ac_objext
22741
22742 # Executable file suffix (normally "").
22743 exeext=$exeext
22744
22745 # whether the shell understands "unset".
22746 lt_unset=$lt_unset
22747
22748 # turn spaces into newlines.
22749 SP2NL=$lt_lt_SP2NL
22750
22751 # turn newlines into spaces.
22752 NL2SP=$lt_lt_NL2SP
22753
22754 # convert \$build file names to \$host format.
22755 to_host_file_cmd=$lt_cv_to_host_file_cmd
22756
22757 # convert \$build files to toolchain format.
22758 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22759
22760 # A file(cmd) program that detects file types.
22761 FILECMD=$lt_FILECMD
22762
22763 # An object symbol dumper.
22764 OBJDUMP=$lt_OBJDUMP
22765
22766 # Method to check whether dependent libraries are shared objects.
22767 deplibs_check_method=$lt_deplibs_check_method
22768
22769 # Command to use when deplibs_check_method = "file_magic".
22770 file_magic_cmd=$lt_file_magic_cmd
22771
22772 # How to find potential files when deplibs_check_method = "file_magic".
22773 file_magic_glob=$lt_file_magic_glob
22774
22775 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22776 want_nocaseglob=$lt_want_nocaseglob
22777
22778 # DLL creation program.
22779 DLLTOOL=$lt_DLLTOOL
22780
22781 # Command to associate shared and link libraries.
22782 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22783
22784 # The archiver.
22785 AR=$lt_AR
22786
22787 # Flags to create an archive (by configure).
22788 lt_ar_flags=$lt_ar_flags
22789
22790 # Flags to create an archive.
22791 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
22792
22793 # How to feed a file listing to the archiver.
22794 archiver_list_spec=$lt_archiver_list_spec
22795
22796 # A symbol stripping program.
22797 STRIP=$lt_STRIP
22798
22799 # Commands used to install an old-style archive.
22800 RANLIB=$lt_RANLIB
22801 old_postinstall_cmds=$lt_old_postinstall_cmds
22802 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22803
22804 # Whether to use a lock for old archive extraction.
22805 lock_old_archive_extraction=$lock_old_archive_extraction
22806
22807 # A C compiler.
22808 LTCC=$lt_CC
22809
22810 # LTCC compiler flags.
22811 LTCFLAGS=$lt_CFLAGS
22812
22813 # Take the output of nm and produce a listing of raw symbols and C names.
22814 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22815
22816 # Transform the output of nm in a proper C declaration.
22817 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22818
22819 # Transform the output of nm into a list of symbols to manually relocate.
22820 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22821
22822 # Transform the output of nm in a C name address pair.
22823 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22824
22825 # Transform the output of nm in a C name address pair when lib prefix is needed.
22826 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22827
22828 # The name lister interface.
22829 nm_interface=$lt_lt_cv_nm_interface
22830
22831 # Specify filename containing input files for \$NM.
22832 nm_file_list_spec=$lt_nm_file_list_spec
22833
22834 # The root where to search for dependent libraries,and where our libraries should be installed.
22835 lt_sysroot=$lt_sysroot
22836
22837 # Command to truncate a binary pipe.
22838 lt_truncate_bin=$lt_lt_cv_truncate_bin
22839
22840 # The name of the directory that contains temporary libtool files.
22841 objdir=$objdir
22842
22843 # Used to examine libraries when file_magic_cmd begins with "file".
22844 MAGIC_CMD=$MAGIC_CMD
22845
22846 # Must we lock files when doing compilation?
22847 need_locks=$lt_need_locks
22848
22849 # Manifest tool.
22850 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22851
22852 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22853 DSYMUTIL=$lt_DSYMUTIL
22854
22855 # Tool to change global to local symbols on Mac OS X.
22856 NMEDIT=$lt_NMEDIT
22857
22858 # Tool to manipulate fat objects and archives on Mac OS X.
22859 LIPO=$lt_LIPO
22860
22861 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22862 OTOOL=$lt_OTOOL
22863
22864 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22865 OTOOL64=$lt_OTOOL64
22866
22867 # Old archive suffix (normally "a").
22868 libext=$libext
22869
22870 # Shared library suffix (normally ".so").
22871 shrext_cmds=$lt_shrext_cmds
22872
22873 # The commands to extract the exported symbol list from a shared archive.
22874 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22875
22876 # Variables whose values should be saved in libtool wrapper scripts and
22877 # restored at link time.
22878 variables_saved_for_relink=$lt_variables_saved_for_relink
22879
22880 # Do we need the "lib" prefix for modules?
22881 need_lib_prefix=$need_lib_prefix
22882
22883 # Do we need a version for libraries?
22884 need_version=$need_version
22885
22886 # Library versioning type.
22887 version_type=$version_type
22888
22889 # Shared library runtime path variable.
22890 runpath_var=$runpath_var
22891
22892 # Shared library path variable.
22893 shlibpath_var=$shlibpath_var
22894
22895 # Is shlibpath searched before the hard-coded library search path?
22896 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22897
22898 # Format of library name prefix.
22899 libname_spec=$lt_libname_spec
22900
22901 # List of archive names. First name is the real one, the rest are links.
22902 # The last name is the one that the linker finds with -lNAME
22903 library_names_spec=$lt_library_names_spec
22904
22905 # The coded name of the library, if different from the real name.
22906 soname_spec=$lt_soname_spec
22907
22908 # Permission mode override for installation of shared libraries.
22909 install_override_mode=$lt_install_override_mode
22910
22911 # Command to use after installation of a shared archive.
22912 postinstall_cmds=$lt_postinstall_cmds
22913
22914 # Command to use after uninstallation of a shared archive.
22915 postuninstall_cmds=$lt_postuninstall_cmds
22916
22917 # Commands used to finish a libtool library installation in a directory.
22918 finish_cmds=$lt_finish_cmds
22919
22920 # As "finish_cmds", except a single script fragment to be evaled but
22921 # not shown.
22922 finish_eval=$lt_finish_eval
22923
22924 # Whether we should hardcode library paths into libraries.
22925 hardcode_into_libs=$hardcode_into_libs
22926
22927 # Compile-time system search path for libraries.
22928 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22929
22930 # Detected run-time system search path for libraries.
22931 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22932
22933 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22934 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22935
22936 # Whether dlopen is supported.
22937 dlopen_support=$enable_dlopen
22938
22939 # Whether dlopen of programs is supported.
22940 dlopen_self=$enable_dlopen_self
22941
22942 # Whether dlopen of statically linked programs is supported.
22943 dlopen_self_static=$enable_dlopen_self_static
22944
22945 # Commands to strip libraries.
22946 old_striplib=$lt_old_striplib
22947 striplib=$lt_striplib
22948
22949
22950 # The linker used to build libraries.
22951 LD=$lt_LD
22952
22953 # How to create reloadable object files.
22954 reload_flag=$lt_reload_flag
22955 reload_cmds=$lt_reload_cmds
22956
22957 # Commands used to build an old-style archive.
22958 old_archive_cmds=$lt_old_archive_cmds
22959
22960 # A language specific compiler.
22961 CC=$lt_compiler
22962
22963 # Is the compiler the GNU compiler?
22964 with_gcc=$GCC
22965
22966 # Compiler flag to turn off builtin functions.
22967 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22968
22969 # Additional compiler flags for building library objects.
22970 pic_flag=$lt_lt_prog_compiler_pic
22971
22972 # How to pass a linker flag through the compiler.
22973 wl=$lt_lt_prog_compiler_wl
22974
22975 # Compiler flag to prevent dynamic linking.
22976 link_static_flag=$lt_lt_prog_compiler_static
22977
22978 # Does compiler simultaneously support -c and -o options?
22979 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22980
22981 # Whether or not to add -lc for building shared libraries.
22982 build_libtool_need_lc=$archive_cmds_need_lc
22983
22984 # Whether or not to disallow shared libs when runtime libs are static.
22985 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22986
22987 # Compiler flag to allow reflexive dlopens.
22988 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22989
22990 # Compiler flag to generate shared objects directly from archives.
22991 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22992
22993 # Whether the compiler copes with passing no objects directly.
22994 compiler_needs_object=$lt_compiler_needs_object
22995
22996 # Create an old-style archive from a shared archive.
22997 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22998
22999 # Create a temporary old-style archive to link instead of a shared archive.
23000 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23001
23002 # Commands used to build a shared archive.
23003 archive_cmds=$lt_archive_cmds
23004 archive_expsym_cmds=$lt_archive_expsym_cmds
23005
23006 # Commands used to build a loadable module if different from building
23007 # a shared archive.
23008 module_cmds=$lt_module_cmds
23009 module_expsym_cmds=$lt_module_expsym_cmds
23010
23011 # Whether we are building with GNU ld or not.
23012 with_gnu_ld=$lt_with_gnu_ld
23013
23014 # Flag that allows shared libraries with undefined symbols to be built.
23015 allow_undefined_flag=$lt_allow_undefined_flag
23016
23017 # Flag that enforces no undefined symbols.
23018 no_undefined_flag=$lt_no_undefined_flag
23019
23020 # Flag to hardcode \$libdir into a binary during linking.
23021 # This must work even if \$libdir does not exist
23022 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23023
23024 # Whether we need a single "-rpath" flag with a separated argument.
23025 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23026
23027 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23028 # DIR into the resulting binary.
23029 hardcode_direct=$hardcode_direct
23030
23031 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23032 # DIR into the resulting binary and the resulting library dependency is
23033 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
23034 # library is relocated.
23035 hardcode_direct_absolute=$hardcode_direct_absolute
23036
23037 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23038 # into the resulting binary.
23039 hardcode_minus_L=$hardcode_minus_L
23040
23041 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23042 # into the resulting binary.
23043 hardcode_shlibpath_var=$hardcode_shlibpath_var
23044
23045 # Set to "yes" if building a shared library automatically hardcodes DIR
23046 # into the library and all subsequent libraries and executables linked
23047 # against it.
23048 hardcode_automatic=$hardcode_automatic
23049
23050 # Set to yes if linker adds runtime paths of dependent libraries
23051 # to runtime path list.
23052 inherit_rpath=$inherit_rpath
23053
23054 # Whether libtool must link a program against all its dependency libraries.
23055 link_all_deplibs=$link_all_deplibs
23056
23057 # Set to "yes" if exported symbols are required.
23058 always_export_symbols=$always_export_symbols
23059
23060 # The commands to list exported symbols.
23061 export_symbols_cmds=$lt_export_symbols_cmds
23062
23063 # Symbols that should not be listed in the preloaded symbols.
23064 exclude_expsyms=$lt_exclude_expsyms
23065
23066 # Symbols that must always be exported.
23067 include_expsyms=$lt_include_expsyms
23068
23069 # Commands necessary for linking programs (against libraries) with templates.
23070 prelink_cmds=$lt_prelink_cmds
23071
23072 # Commands necessary for finishing linking programs.
23073 postlink_cmds=$lt_postlink_cmds
23074
23075 # Specify filename containing input files.
23076 file_list_spec=$lt_file_list_spec
23077
23078 # How to hardcode a shared library path into an executable.
23079 hardcode_action=$hardcode_action
23080
23081 # ### END LIBTOOL CONFIG
23082
23083 _LT_EOF
23084
23085 cat <<'_LT_EOF' >> "$cfgfile"
23086
23087 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23088
23089 # func_munge_path_list VARIABLE PATH
23090 # -----------------------------------
23091 # VARIABLE is name of variable containing _space_ separated list of
23092 # directories to be munged by the contents of PATH, which is string
23093 # having a format:
23094 # "DIR[:DIR]:"
23095 # string "DIR[ DIR]" will be prepended to VARIABLE
23096 # ":DIR[:DIR]"
23097 # string "DIR[ DIR]" will be appended to VARIABLE
23098 # "DIRP[:DIRP]::[DIRA:]DIRA"
23099 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23100 # "DIRA[ DIRA]" will be appended to VARIABLE
23101 # "DIR[:DIR]"
23102 # VARIABLE will be replaced by "DIR[ DIR]"
23103 func_munge_path_list ()
23104 {
23105 case x$2 in
23106 x)
23107 ;;
23108 *:)
23109 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23110 ;;
23111 x:*)
23112 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23113 ;;
23114 *::*)
23115 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23116 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23117 ;;
23118 *)
23119 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23120 ;;
23121 esac
23122 }
23123
23124
23125 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
23126 func_cc_basename ()
23127 {
23128 for cc_temp in $*""; do
23129 case $cc_temp in
23130 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23131 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23132 \-*) ;;
23133 *) break;;
23134 esac
23135 done
23136 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23137 }
23138
23139
23140 # ### END FUNCTIONS SHARED WITH CONFIGURE
23141
23142 _LT_EOF
23143
23144 case $host_os in
23145 aix3*)
23146 cat <<\_LT_EOF >> "$cfgfile"
23147 # AIX sometimes has problems with the GCC collect2 program. For some
23148 # reason, if we set the COLLECT_NAMES environment variable, the problems
23149 # vanish in a puff of smoke.
23150 if test set != "${COLLECT_NAMES+set}"; then
23151 COLLECT_NAMES=
23152 export COLLECT_NAMES
23153 fi
23154 _LT_EOF
23155 ;;
23156 esac
23157
23158
23159
23160 ltmain=$ac_aux_dir/ltmain.sh
23161
23162
23163 # We use sed instead of cat because bash on DJGPP gets confused if
23164 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23165 # text mode, it properly converts lines to CR/LF. This bash problem
23166 # is reportedly fixed, but why not run on old versions too?
23167 $SED '$q' "$ltmain" >> "$cfgfile" \
23168 || (rm -f "$cfgfile"; exit 1)
23169
23170 mv -f "$cfgfile" "$ofile" ||
23171 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23172 chmod +x "$ofile"
23173
23174 ;;
23175
23176 esac
23177 done # for ac_tag
23178
23179
23180 as_fn_exit 0
23181 _ACEOF
23182 ac_clean_CONFIG_STATUS=
23183
23184 test $ac_write_fail = 0 ||
23185 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23186
23187
23188 # configure is writing to config.log, and then calls config.status.
23189 # config.status does its own redirection, appending to config.log.
23190 # Unfortunately, on DOS this fails, as config.log is still kept open
23191 # by configure, so config.status won't be able to write to it; its
23192 # output is simply discarded. So we exec the FD to /dev/null,
23193 # effectively closing config.log, so it can be properly (re)opened and
23194 # appended to by config.status. When coming back to configure, we
23195 # need to make the FD available again.
23196 if test "$no_create" != yes; then
23197 ac_cs_success=:
23198 case $CONFIG_STATUS in #(
23199 -*) :
23200 ac_no_opts=-- ;; #(
23201 *) :
23202 ac_no_opts= ;;
23203 esac
23204 ac_config_status_args=
23205 test "$silent" = yes &&
23206 ac_config_status_args="$ac_config_status_args --quiet"
23207 exec 5>/dev/null
23208 $SHELL $ac_no_opts "$CONFIG_STATUS" $ac_config_status_args ||
23209 ac_cs_success=false
23210 exec 5>>config.log
23211 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23212 # would make configure fail if this is the last instruction.
23213 $ac_cs_success || as_fn_exit 1
23214 fi
23215 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23216 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23217 printf '%s\n' "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23218 fi
23219
23220