Fix handling of large arguments passed by value.
[official-gcc.git] / libquadmath / configure
blob958fb876c5b17d8cd0ef8403b0ea45e1e112d3fe
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GCC Quad-precision Math Library 0.1.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
280 exit 1
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
298 { eval $1=; unset $1;}
300 as_unset=as_fn_unset
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
307 return $1
308 } # as_fn_set_status
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
351 /^X\(\/\/\)$/{
352 s//\1/
355 /^X\(\/\).*/{
356 s//\1/
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366 } # as_fn_mkdir_p
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
384 eval $1+=\$2
386 else
387 as_fn_append ()
389 eval $1=\$$1\$2
391 fi # as_fn_append
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
401 as_val=$(( $* ))
403 else
404 as_fn_arith ()
406 as_val=`expr "$@" || test $? -eq 1`
408 fi # as_fn_arith
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
455 /^X\/\(\/\/\)$/{
456 s//\1/
459 /^X\/\(\/\).*/{
460 s//\1/
463 s/.*/./; q'`
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
486 :lineno
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
518 ECHO_N='-n';;
519 esac
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
542 else
543 as_ln_s='cp -pR'
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
576 # Initializations.
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
587 # Identity of this package.
588 PACKAGE_NAME='GCC Quad-precision Math Library'
589 PACKAGE_TARNAME='libquadmath'
590 PACKAGE_VERSION='0.1'
591 PACKAGE_STRING='GCC Quad-precision Math Library 0.1'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
595 # Factoring default headers for most tests.
596 ac_includes_default="\
597 #include <stdio.h>
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
600 #endif
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
603 #endif
604 #ifdef STDC_HEADERS
605 # include <stdlib.h>
606 # include <stddef.h>
607 #else
608 # ifdef HAVE_STDLIB_H
609 # include <stdlib.h>
610 # endif
611 #endif
612 #ifdef HAVE_STRING_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614 # include <memory.h>
615 # endif
616 # include <string.h>
617 #endif
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_UNISTD_H
628 # include <unistd.h>
629 #endif"
631 ac_subst_vars='am__EXEEXT_FALSE
632 am__EXEEXT_TRUE
633 LTLIBOBJS
634 LIBOBJS
635 get_gcc_base_ver
636 GENINSRC_FALSE
637 GENINSRC_TRUE
638 XCFLAGS
639 BUILD_LIBQUADMATH_FALSE
640 BUILD_LIBQUADMATH_TRUE
641 LIBQUAD_USE_SYMVER_SUN_FALSE
642 LIBQUAD_USE_SYMVER_SUN_TRUE
643 LIBQUAD_USE_SYMVER_GNU_FALSE
644 LIBQUAD_USE_SYMVER_GNU_TRUE
645 LIBQUAD_USE_SYMVER_FALSE
646 LIBQUAD_USE_SYMVER_TRUE
647 toolexeclibdir
648 toolexecdir
649 MAINT
650 MAINTAINER_MODE_FALSE
651 MAINTAINER_MODE_TRUE
652 enable_static
653 enable_shared
654 lt_host_flags
655 OTOOL64
656 OTOOL
657 LIPO
658 NMEDIT
659 DSYMUTIL
660 RANLIB
662 OBJDUMP
663 LN_S
665 ac_ct_DUMPBIN
666 DUMPBIN
668 FGREP
670 LIBTOOL
671 REPORT_BUGS_TEXI
672 REPORT_BUGS_TO
673 BUILD_INFO_FALSE
674 BUILD_INFO_TRUE
675 EGREP
676 GREP
678 am__fastdepCC_FALSE
679 am__fastdepCC_TRUE
680 CCDEPMODE
681 am__nodep
682 AMDEPBACKSLASH
683 AMDEP_FALSE
684 AMDEP_TRUE
685 am__quote
686 am__include
687 DEPDIR
688 OBJEXT
689 EXEEXT
690 ac_ct_CC
691 CPPFLAGS
692 LDFLAGS
693 CFLAGS
695 AM_BACKSLASH
696 AM_DEFAULT_VERBOSITY
697 AM_DEFAULT_V
698 AM_V
699 am__untar
700 am__tar
701 AMTAR
702 am__leading_dot
703 SET_MAKE
705 mkdir_p
706 MKDIR_P
707 INSTALL_STRIP_PROGRAM
708 STRIP
709 install_sh
710 MAKEINFO
711 AUTOHEADER
712 AUTOMAKE
713 AUTOCONF
714 ACLOCAL
715 VERSION
716 PACKAGE
717 CYGPATH_W
718 am__isrc
719 INSTALL_DATA
720 INSTALL_SCRIPT
721 INSTALL_PROGRAM
722 multi_basedir
723 target_noncanonical
724 target_os
725 target_vendor
726 target_cpu
727 target
728 host_os
729 host_vendor
730 host_cpu
731 host
732 build_os
733 build_vendor
734 build_cpu
735 build
736 target_alias
737 host_alias
738 build_alias
739 LIBS
740 ECHO_T
741 ECHO_N
742 ECHO_C
743 DEFS
744 mandir
745 localedir
746 libdir
747 psdir
748 pdfdir
749 dvidir
750 htmldir
751 infodir
752 docdir
753 oldincludedir
754 includedir
755 localstatedir
756 sharedstatedir
757 sysconfdir
758 datadir
759 datarootdir
760 libexecdir
761 sbindir
762 bindir
763 program_transform_name
764 prefix
765 exec_prefix
766 PACKAGE_URL
767 PACKAGE_BUGREPORT
768 PACKAGE_STRING
769 PACKAGE_VERSION
770 PACKAGE_TARNAME
771 PACKAGE_NAME
772 PATH_SEPARATOR
773 SHELL'
774 ac_subst_files=''
775 ac_user_opts='
776 enable_option_checking
777 enable_multilib
778 enable_silent_rules
779 enable_version_specific_runtime_libs
780 enable_dependency_tracking
781 with_bugurl
782 enable_shared
783 enable_static
784 with_pic
785 enable_fast_install
786 with_gnu_ld
787 enable_libtool_lock
788 enable_maintainer_mode
789 with_toolexeclibdir
790 enable_symvers
791 enable_cet
792 enable_generated_files_in_srcdir
793 with_gcc_major_version_only
795 ac_precious_vars='build_alias
796 host_alias
797 target_alias
799 CFLAGS
800 LDFLAGS
801 LIBS
802 CPPFLAGS
803 CPP'
806 # Initialize some variables set by options.
807 ac_init_help=
808 ac_init_version=false
809 ac_unrecognized_opts=
810 ac_unrecognized_sep=
811 # The variables have the same names as the options, with
812 # dashes changed to underlines.
813 cache_file=/dev/null
814 exec_prefix=NONE
815 no_create=
816 no_recursion=
817 prefix=NONE
818 program_prefix=NONE
819 program_suffix=NONE
820 program_transform_name=s,x,x,
821 silent=
822 site=
823 srcdir=
824 verbose=
825 x_includes=NONE
826 x_libraries=NONE
828 # Installation directory options.
829 # These are left unexpanded so users can "make install exec_prefix=/foo"
830 # and all the variables that are supposed to be based on exec_prefix
831 # by default will actually change.
832 # Use braces instead of parens because sh, perl, etc. also accept them.
833 # (The list follows the same order as the GNU Coding Standards.)
834 bindir='${exec_prefix}/bin'
835 sbindir='${exec_prefix}/sbin'
836 libexecdir='${exec_prefix}/libexec'
837 datarootdir='${prefix}/share'
838 datadir='${datarootdir}'
839 sysconfdir='${prefix}/etc'
840 sharedstatedir='${prefix}/com'
841 localstatedir='${prefix}/var'
842 includedir='${prefix}/include'
843 oldincludedir='/usr/include'
844 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
845 infodir='${datarootdir}/info'
846 htmldir='${docdir}'
847 dvidir='${docdir}'
848 pdfdir='${docdir}'
849 psdir='${docdir}'
850 libdir='${exec_prefix}/lib'
851 localedir='${datarootdir}/locale'
852 mandir='${datarootdir}/man'
854 ac_prev=
855 ac_dashdash=
856 for ac_option
858 # If the previous option needs an argument, assign it.
859 if test -n "$ac_prev"; then
860 eval $ac_prev=\$ac_option
861 ac_prev=
862 continue
865 case $ac_option in
866 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
867 *=) ac_optarg= ;;
868 *) ac_optarg=yes ;;
869 esac
871 # Accept the important Cygnus configure options, so we can diagnose typos.
873 case $ac_dashdash$ac_option in
875 ac_dashdash=yes ;;
877 -bindir | --bindir | --bindi | --bind | --bin | --bi)
878 ac_prev=bindir ;;
879 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
880 bindir=$ac_optarg ;;
882 -build | --build | --buil | --bui | --bu)
883 ac_prev=build_alias ;;
884 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
885 build_alias=$ac_optarg ;;
887 -cache-file | --cache-file | --cache-fil | --cache-fi \
888 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
889 ac_prev=cache_file ;;
890 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
891 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
892 cache_file=$ac_optarg ;;
894 --config-cache | -C)
895 cache_file=config.cache ;;
897 -datadir | --datadir | --datadi | --datad)
898 ac_prev=datadir ;;
899 -datadir=* | --datadir=* | --datadi=* | --datad=*)
900 datadir=$ac_optarg ;;
902 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
903 | --dataroo | --dataro | --datar)
904 ac_prev=datarootdir ;;
905 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
906 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
907 datarootdir=$ac_optarg ;;
909 -disable-* | --disable-*)
910 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
911 # Reject names that are not valid shell variable names.
912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
913 as_fn_error $? "invalid feature name: $ac_useropt"
914 ac_useropt_orig=$ac_useropt
915 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916 case $ac_user_opts in
918 "enable_$ac_useropt"
919 "*) ;;
920 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
921 ac_unrecognized_sep=', ';;
922 esac
923 eval enable_$ac_useropt=no ;;
925 -docdir | --docdir | --docdi | --doc | --do)
926 ac_prev=docdir ;;
927 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
928 docdir=$ac_optarg ;;
930 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
931 ac_prev=dvidir ;;
932 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
933 dvidir=$ac_optarg ;;
935 -enable-* | --enable-*)
936 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
937 # Reject names that are not valid shell variable names.
938 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
939 as_fn_error $? "invalid feature name: $ac_useropt"
940 ac_useropt_orig=$ac_useropt
941 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
942 case $ac_user_opts in
944 "enable_$ac_useropt"
945 "*) ;;
946 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
947 ac_unrecognized_sep=', ';;
948 esac
949 eval enable_$ac_useropt=\$ac_optarg ;;
951 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
952 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
953 | --exec | --exe | --ex)
954 ac_prev=exec_prefix ;;
955 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
956 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
957 | --exec=* | --exe=* | --ex=*)
958 exec_prefix=$ac_optarg ;;
960 -gas | --gas | --ga | --g)
961 # Obsolete; use --with-gas.
962 with_gas=yes ;;
964 -help | --help | --hel | --he | -h)
965 ac_init_help=long ;;
966 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
967 ac_init_help=recursive ;;
968 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
969 ac_init_help=short ;;
971 -host | --host | --hos | --ho)
972 ac_prev=host_alias ;;
973 -host=* | --host=* | --hos=* | --ho=*)
974 host_alias=$ac_optarg ;;
976 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
977 ac_prev=htmldir ;;
978 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
979 | --ht=*)
980 htmldir=$ac_optarg ;;
982 -includedir | --includedir | --includedi | --included | --include \
983 | --includ | --inclu | --incl | --inc)
984 ac_prev=includedir ;;
985 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
986 | --includ=* | --inclu=* | --incl=* | --inc=*)
987 includedir=$ac_optarg ;;
989 -infodir | --infodir | --infodi | --infod | --info | --inf)
990 ac_prev=infodir ;;
991 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
992 infodir=$ac_optarg ;;
994 -libdir | --libdir | --libdi | --libd)
995 ac_prev=libdir ;;
996 -libdir=* | --libdir=* | --libdi=* | --libd=*)
997 libdir=$ac_optarg ;;
999 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1000 | --libexe | --libex | --libe)
1001 ac_prev=libexecdir ;;
1002 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1003 | --libexe=* | --libex=* | --libe=*)
1004 libexecdir=$ac_optarg ;;
1006 -localedir | --localedir | --localedi | --localed | --locale)
1007 ac_prev=localedir ;;
1008 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1009 localedir=$ac_optarg ;;
1011 -localstatedir | --localstatedir | --localstatedi | --localstated \
1012 | --localstate | --localstat | --localsta | --localst | --locals)
1013 ac_prev=localstatedir ;;
1014 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1015 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1016 localstatedir=$ac_optarg ;;
1018 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1019 ac_prev=mandir ;;
1020 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1021 mandir=$ac_optarg ;;
1023 -nfp | --nfp | --nf)
1024 # Obsolete; use --without-fp.
1025 with_fp=no ;;
1027 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1028 | --no-cr | --no-c | -n)
1029 no_create=yes ;;
1031 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033 no_recursion=yes ;;
1035 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1036 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1037 | --oldin | --oldi | --old | --ol | --o)
1038 ac_prev=oldincludedir ;;
1039 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1040 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1041 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1042 oldincludedir=$ac_optarg ;;
1044 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1045 ac_prev=prefix ;;
1046 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1047 prefix=$ac_optarg ;;
1049 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1050 | --program-pre | --program-pr | --program-p)
1051 ac_prev=program_prefix ;;
1052 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1053 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1054 program_prefix=$ac_optarg ;;
1056 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1057 | --program-suf | --program-su | --program-s)
1058 ac_prev=program_suffix ;;
1059 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1060 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1061 program_suffix=$ac_optarg ;;
1063 -program-transform-name | --program-transform-name \
1064 | --program-transform-nam | --program-transform-na \
1065 | --program-transform-n | --program-transform- \
1066 | --program-transform | --program-transfor \
1067 | --program-transfo | --program-transf \
1068 | --program-trans | --program-tran \
1069 | --progr-tra | --program-tr | --program-t)
1070 ac_prev=program_transform_name ;;
1071 -program-transform-name=* | --program-transform-name=* \
1072 | --program-transform-nam=* | --program-transform-na=* \
1073 | --program-transform-n=* | --program-transform-=* \
1074 | --program-transform=* | --program-transfor=* \
1075 | --program-transfo=* | --program-transf=* \
1076 | --program-trans=* | --program-tran=* \
1077 | --progr-tra=* | --program-tr=* | --program-t=*)
1078 program_transform_name=$ac_optarg ;;
1080 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1081 ac_prev=pdfdir ;;
1082 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1083 pdfdir=$ac_optarg ;;
1085 -psdir | --psdir | --psdi | --psd | --ps)
1086 ac_prev=psdir ;;
1087 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1088 psdir=$ac_optarg ;;
1090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091 | -silent | --silent | --silen | --sile | --sil)
1092 silent=yes ;;
1094 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1095 ac_prev=sbindir ;;
1096 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1097 | --sbi=* | --sb=*)
1098 sbindir=$ac_optarg ;;
1100 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1101 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1102 | --sharedst | --shareds | --shared | --share | --shar \
1103 | --sha | --sh)
1104 ac_prev=sharedstatedir ;;
1105 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1106 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1107 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1108 | --sha=* | --sh=*)
1109 sharedstatedir=$ac_optarg ;;
1111 -site | --site | --sit)
1112 ac_prev=site ;;
1113 -site=* | --site=* | --sit=*)
1114 site=$ac_optarg ;;
1116 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1117 ac_prev=srcdir ;;
1118 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1119 srcdir=$ac_optarg ;;
1121 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1122 | --syscon | --sysco | --sysc | --sys | --sy)
1123 ac_prev=sysconfdir ;;
1124 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1125 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1126 sysconfdir=$ac_optarg ;;
1128 -target | --target | --targe | --targ | --tar | --ta | --t)
1129 ac_prev=target_alias ;;
1130 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1131 target_alias=$ac_optarg ;;
1133 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1134 verbose=yes ;;
1136 -version | --version | --versio | --versi | --vers | -V)
1137 ac_init_version=: ;;
1139 -with-* | --with-*)
1140 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143 as_fn_error $? "invalid package name: $ac_useropt"
1144 ac_useropt_orig=$ac_useropt
1145 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146 case $ac_user_opts in
1148 "with_$ac_useropt"
1149 "*) ;;
1150 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1151 ac_unrecognized_sep=', ';;
1152 esac
1153 eval with_$ac_useropt=\$ac_optarg ;;
1155 -without-* | --without-*)
1156 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1157 # Reject names that are not valid shell variable names.
1158 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159 as_fn_error $? "invalid package name: $ac_useropt"
1160 ac_useropt_orig=$ac_useropt
1161 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162 case $ac_user_opts in
1164 "with_$ac_useropt"
1165 "*) ;;
1166 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1167 ac_unrecognized_sep=', ';;
1168 esac
1169 eval with_$ac_useropt=no ;;
1171 --x)
1172 # Obsolete; use --with-x.
1173 with_x=yes ;;
1175 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1176 | --x-incl | --x-inc | --x-in | --x-i)
1177 ac_prev=x_includes ;;
1178 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1179 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1180 x_includes=$ac_optarg ;;
1182 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1183 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1184 ac_prev=x_libraries ;;
1185 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1186 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1187 x_libraries=$ac_optarg ;;
1189 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1190 Try \`$0 --help' for more information"
1193 *=*)
1194 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1195 # Reject names that are not valid shell variable names.
1196 case $ac_envvar in #(
1197 '' | [0-9]* | *[!_$as_cr_alnum]* )
1198 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1199 esac
1200 eval $ac_envvar=\$ac_optarg
1201 export $ac_envvar ;;
1204 # FIXME: should be removed in autoconf 3.0.
1205 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1206 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1207 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1208 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1211 esac
1212 done
1214 if test -n "$ac_prev"; then
1215 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1216 as_fn_error $? "missing argument to $ac_option"
1219 if test -n "$ac_unrecognized_opts"; then
1220 case $enable_option_checking in
1221 no) ;;
1222 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1223 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1224 esac
1227 # Check all directory arguments for consistency.
1228 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1229 datadir sysconfdir sharedstatedir localstatedir includedir \
1230 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1231 libdir localedir mandir
1233 eval ac_val=\$$ac_var
1234 # Remove trailing slashes.
1235 case $ac_val in
1236 */ )
1237 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1238 eval $ac_var=\$ac_val;;
1239 esac
1240 # Be sure to have absolute directory names.
1241 case $ac_val in
1242 [\\/$]* | ?:[\\/]* ) continue;;
1243 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1244 esac
1245 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1246 done
1248 # There might be people who depend on the old broken behavior: `$host'
1249 # used to hold the argument of --host etc.
1250 # FIXME: To remove some day.
1251 build=$build_alias
1252 host=$host_alias
1253 target=$target_alias
1255 # FIXME: To remove some day.
1256 if test "x$host_alias" != x; then
1257 if test "x$build_alias" = x; then
1258 cross_compiling=maybe
1259 elif test "x$build_alias" != "x$host_alias"; then
1260 cross_compiling=yes
1264 ac_tool_prefix=
1265 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1267 test "$silent" = yes && exec 6>/dev/null
1270 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1271 ac_ls_di=`ls -di .` &&
1272 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1273 as_fn_error $? "working directory cannot be determined"
1274 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1275 as_fn_error $? "pwd does not report name of working directory"
1278 # Find the source files, if location was not specified.
1279 if test -z "$srcdir"; then
1280 ac_srcdir_defaulted=yes
1281 # Try the directory containing this script, then the parent directory.
1282 ac_confdir=`$as_dirname -- "$as_myself" ||
1283 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1284 X"$as_myself" : 'X\(//\)[^/]' \| \
1285 X"$as_myself" : 'X\(//\)$' \| \
1286 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1287 $as_echo X"$as_myself" |
1288 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1289 s//\1/
1292 /^X\(\/\/\)[^/].*/{
1293 s//\1/
1296 /^X\(\/\/\)$/{
1297 s//\1/
1300 /^X\(\/\).*/{
1301 s//\1/
1304 s/.*/./; q'`
1305 srcdir=$ac_confdir
1306 if test ! -r "$srcdir/$ac_unique_file"; then
1307 srcdir=..
1309 else
1310 ac_srcdir_defaulted=no
1312 if test ! -r "$srcdir/$ac_unique_file"; then
1313 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1314 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1316 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1317 ac_abs_confdir=`(
1318 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1319 pwd)`
1320 # When building in place, set srcdir=.
1321 if test "$ac_abs_confdir" = "$ac_pwd"; then
1322 srcdir=.
1324 # Remove unnecessary trailing slashes from srcdir.
1325 # Double slashes in file names in object file debugging info
1326 # mess up M-x gdb in Emacs.
1327 case $srcdir in
1328 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1329 esac
1330 for ac_var in $ac_precious_vars; do
1331 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1332 eval ac_env_${ac_var}_value=\$${ac_var}
1333 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1334 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1335 done
1338 # Report the --help message.
1340 if test "$ac_init_help" = "long"; then
1341 # Omit some internal or obsolete options to make the list less imposing.
1342 # This message is too long to be a string in the A/UX 3.1 sh.
1343 cat <<_ACEOF
1344 \`configure' configures GCC Quad-precision Math Library 0.1 to adapt to many kinds of systems.
1346 Usage: $0 [OPTION]... [VAR=VALUE]...
1348 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1349 VAR=VALUE. See below for descriptions of some of the useful variables.
1351 Defaults for the options are specified in brackets.
1353 Configuration:
1354 -h, --help display this help and exit
1355 --help=short display options specific to this package
1356 --help=recursive display the short help of all the included packages
1357 -V, --version display version information and exit
1358 -q, --quiet, --silent do not print \`checking ...' messages
1359 --cache-file=FILE cache test results in FILE [disabled]
1360 -C, --config-cache alias for \`--cache-file=config.cache'
1361 -n, --no-create do not create output files
1362 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1364 Installation directories:
1365 --prefix=PREFIX install architecture-independent files in PREFIX
1366 [$ac_default_prefix]
1367 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1368 [PREFIX]
1370 By default, \`make install' will install all the files in
1371 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1372 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1373 for instance \`--prefix=\$HOME'.
1375 For better control, use the options below.
1377 Fine tuning of the installation directories:
1378 --bindir=DIR user executables [EPREFIX/bin]
1379 --sbindir=DIR system admin executables [EPREFIX/sbin]
1380 --libexecdir=DIR program executables [EPREFIX/libexec]
1381 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1382 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1383 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1384 --libdir=DIR object code libraries [EPREFIX/lib]
1385 --includedir=DIR C header files [PREFIX/include]
1386 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1387 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1388 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1389 --infodir=DIR info documentation [DATAROOTDIR/info]
1390 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1391 --mandir=DIR man documentation [DATAROOTDIR/man]
1392 --docdir=DIR documentation root [DATAROOTDIR/doc/libquadmath]
1393 --htmldir=DIR html documentation [DOCDIR]
1394 --dvidir=DIR dvi documentation [DOCDIR]
1395 --pdfdir=DIR pdf documentation [DOCDIR]
1396 --psdir=DIR ps documentation [DOCDIR]
1397 _ACEOF
1399 cat <<\_ACEOF
1401 Program names:
1402 --program-prefix=PREFIX prepend PREFIX to installed program names
1403 --program-suffix=SUFFIX append SUFFIX to installed program names
1404 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1406 System types:
1407 --build=BUILD configure for building on BUILD [guessed]
1408 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1409 --target=TARGET configure for building compilers for TARGET [HOST]
1410 _ACEOF
1413 if test -n "$ac_init_help"; then
1414 case $ac_init_help in
1415 short | recursive ) echo "Configuration of GCC Quad-precision Math Library 0.1:";;
1416 esac
1417 cat <<\_ACEOF
1419 Optional Features:
1420 --disable-option-checking ignore unrecognized --enable/--with options
1421 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1422 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1423 --enable-multilib build many library versions (default)
1424 --enable-silent-rules less verbose build output (undo: "make V=1")
1425 --disable-silent-rules verbose build output (undo: "make V=0")
1426 --enable-version-specific-runtime-libs
1427 specify that runtime libraries should be installed
1428 in a compiler-specific directory
1429 --enable-dependency-tracking
1430 do not reject slow dependency extractors
1431 --disable-dependency-tracking
1432 speeds up one-time build
1433 --enable-shared[=PKGS] build shared libraries [default=yes]
1434 --enable-static[=PKGS] build static libraries [default=yes]
1435 --enable-fast-install[=PKGS]
1436 optimize for fast installation [default=yes]
1437 --disable-libtool-lock avoid locking (might break parallel builds)
1438 --enable-maintainer-mode
1439 enable make rules and dependencies not useful (and
1440 sometimes confusing) to the casual installer
1441 --disable-symvers disable symbol versioning for libquadmath
1442 --enable-cet enable Intel CET in target libraries [default=auto]
1443 --enable-generated-files-in-srcdir
1444 put copies of generated files in source dir intended
1445 for creating source tarballs for users without
1446 texinfo bison or flex
1448 Optional Packages:
1449 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1450 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1451 --with-bugurl=URL Direct users to URL to report a bug
1452 --with-pic try to use only PIC/non-PIC objects [default=use
1453 both]
1454 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1455 --with-toolexeclibdir=DIR
1456 install libraries built with a cross compiler within
1458 --with-gcc-major-version-only
1459 use only GCC major number in filesystem paths
1461 Some influential environment variables:
1462 CC C compiler command
1463 CFLAGS C compiler flags
1464 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1465 nonstandard directory <lib dir>
1466 LIBS libraries to pass to the linker, e.g. -l<library>
1467 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1468 you have headers in a nonstandard directory <include dir>
1469 CPP C preprocessor
1471 Use these variables to override the choices made by `configure' or to help
1472 it to find libraries and programs with nonstandard names/locations.
1474 Report bugs to the package provider.
1475 _ACEOF
1476 ac_status=$?
1479 if test "$ac_init_help" = "recursive"; then
1480 # If there are subdirs, report their specific --help.
1481 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1482 test -d "$ac_dir" ||
1483 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1484 continue
1485 ac_builddir=.
1487 case "$ac_dir" in
1488 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1491 # A ".." for each directory in $ac_dir_suffix.
1492 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1493 case $ac_top_builddir_sub in
1494 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1496 esac ;;
1497 esac
1498 ac_abs_top_builddir=$ac_pwd
1499 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1500 # for backward compatibility:
1501 ac_top_builddir=$ac_top_build_prefix
1503 case $srcdir in
1504 .) # We are building in place.
1505 ac_srcdir=.
1506 ac_top_srcdir=$ac_top_builddir_sub
1507 ac_abs_top_srcdir=$ac_pwd ;;
1508 [\\/]* | ?:[\\/]* ) # Absolute name.
1509 ac_srcdir=$srcdir$ac_dir_suffix;
1510 ac_top_srcdir=$srcdir
1511 ac_abs_top_srcdir=$srcdir ;;
1512 *) # Relative name.
1513 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1514 ac_top_srcdir=$ac_top_build_prefix$srcdir
1515 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1516 esac
1517 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1519 cd "$ac_dir" || { ac_status=$?; continue; }
1520 # Check for guested configure.
1521 if test -f "$ac_srcdir/configure.gnu"; then
1522 echo &&
1523 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1524 elif test -f "$ac_srcdir/configure"; then
1525 echo &&
1526 $SHELL "$ac_srcdir/configure" --help=recursive
1527 else
1528 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1529 fi || ac_status=$?
1530 cd "$ac_pwd" || { ac_status=$?; break; }
1531 done
1534 test -n "$ac_init_help" && exit $ac_status
1535 if $ac_init_version; then
1536 cat <<\_ACEOF
1537 GCC Quad-precision Math Library configure 0.1
1538 generated by GNU Autoconf 2.69
1540 Copyright (C) 2012 Free Software Foundation, Inc.
1541 This configure script is free software; the Free Software Foundation
1542 gives unlimited permission to copy, distribute and modify it.
1543 _ACEOF
1544 exit
1547 ## ------------------------ ##
1548 ## Autoconf initialization. ##
1549 ## ------------------------ ##
1551 # ac_fn_c_try_compile LINENO
1552 # --------------------------
1553 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1554 ac_fn_c_try_compile ()
1556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1557 rm -f conftest.$ac_objext
1558 if { { ac_try="$ac_compile"
1559 case "(($ac_try" in
1560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1561 *) ac_try_echo=$ac_try;;
1562 esac
1563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1564 $as_echo "$ac_try_echo"; } >&5
1565 (eval "$ac_compile") 2>conftest.err
1566 ac_status=$?
1567 if test -s conftest.err; then
1568 grep -v '^ *+' conftest.err >conftest.er1
1569 cat conftest.er1 >&5
1570 mv -f conftest.er1 conftest.err
1572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1573 test $ac_status = 0; } && {
1574 test -z "$ac_c_werror_flag" ||
1575 test ! -s conftest.err
1576 } && test -s conftest.$ac_objext; then :
1577 ac_retval=0
1578 else
1579 $as_echo "$as_me: failed program was:" >&5
1580 sed 's/^/| /' conftest.$ac_ext >&5
1582 ac_retval=1
1584 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1585 as_fn_set_status $ac_retval
1587 } # ac_fn_c_try_compile
1589 # ac_fn_c_try_cpp LINENO
1590 # ----------------------
1591 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1592 ac_fn_c_try_cpp ()
1594 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1595 if { { ac_try="$ac_cpp conftest.$ac_ext"
1596 case "(($ac_try" in
1597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1598 *) ac_try_echo=$ac_try;;
1599 esac
1600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1601 $as_echo "$ac_try_echo"; } >&5
1602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1603 ac_status=$?
1604 if test -s conftest.err; then
1605 grep -v '^ *+' conftest.err >conftest.er1
1606 cat conftest.er1 >&5
1607 mv -f conftest.er1 conftest.err
1609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1610 test $ac_status = 0; } > conftest.i && {
1611 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1612 test ! -s conftest.err
1613 }; then :
1614 ac_retval=0
1615 else
1616 $as_echo "$as_me: failed program was:" >&5
1617 sed 's/^/| /' conftest.$ac_ext >&5
1619 ac_retval=1
1621 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1622 as_fn_set_status $ac_retval
1624 } # ac_fn_c_try_cpp
1626 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1627 # -------------------------------------------------------
1628 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1629 # the include files in INCLUDES and setting the cache variable VAR
1630 # accordingly.
1631 ac_fn_c_check_header_mongrel ()
1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634 if eval \${$3+:} false; then :
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1636 $as_echo_n "checking for $2... " >&6; }
1637 if eval \${$3+:} false; then :
1638 $as_echo_n "(cached) " >&6
1640 eval ac_res=\$$3
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1642 $as_echo "$ac_res" >&6; }
1643 else
1644 # Is the header compilable?
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1646 $as_echo_n "checking $2 usability... " >&6; }
1647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1648 /* end confdefs.h. */
1650 #include <$2>
1651 _ACEOF
1652 if ac_fn_c_try_compile "$LINENO"; then :
1653 ac_header_compiler=yes
1654 else
1655 ac_header_compiler=no
1657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1659 $as_echo "$ac_header_compiler" >&6; }
1661 # Is the header present?
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1663 $as_echo_n "checking $2 presence... " >&6; }
1664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1665 /* end confdefs.h. */
1666 #include <$2>
1667 _ACEOF
1668 if ac_fn_c_try_cpp "$LINENO"; then :
1669 ac_header_preproc=yes
1670 else
1671 ac_header_preproc=no
1673 rm -f conftest.err conftest.i conftest.$ac_ext
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1675 $as_echo "$ac_header_preproc" >&6; }
1677 # So? What about this header?
1678 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1679 yes:no: )
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1681 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1683 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1685 no:yes:* )
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1687 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1689 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1691 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1693 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1695 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1697 esac
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1699 $as_echo_n "checking for $2... " >&6; }
1700 if eval \${$3+:} false; then :
1701 $as_echo_n "(cached) " >&6
1702 else
1703 eval "$3=\$ac_header_compiler"
1705 eval ac_res=\$$3
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1707 $as_echo "$ac_res" >&6; }
1709 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711 } # ac_fn_c_check_header_mongrel
1713 # ac_fn_c_try_run LINENO
1714 # ----------------------
1715 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1716 # that executables *can* be run.
1717 ac_fn_c_try_run ()
1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720 if { { ac_try="$ac_link"
1721 case "(($ac_try" in
1722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723 *) ac_try_echo=$ac_try;;
1724 esac
1725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726 $as_echo "$ac_try_echo"; } >&5
1727 (eval "$ac_link") 2>&5
1728 ac_status=$?
1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1731 { { case "(($ac_try" in
1732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733 *) ac_try_echo=$ac_try;;
1734 esac
1735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737 (eval "$ac_try") 2>&5
1738 ac_status=$?
1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; }; }; then :
1741 ac_retval=0
1742 else
1743 $as_echo "$as_me: program exited with status $ac_status" >&5
1744 $as_echo "$as_me: failed program was:" >&5
1745 sed 's/^/| /' conftest.$ac_ext >&5
1747 ac_retval=$ac_status
1749 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751 as_fn_set_status $ac_retval
1753 } # ac_fn_c_try_run
1755 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1756 # -------------------------------------------------------
1757 # Tests whether HEADER exists and can be compiled using the include files in
1758 # INCLUDES, setting the cache variable VAR accordingly.
1759 ac_fn_c_check_header_compile ()
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1763 $as_echo_n "checking for $2... " >&6; }
1764 if eval \${$3+:} false; then :
1765 $as_echo_n "(cached) " >&6
1766 else
1767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768 /* end confdefs.h. */
1770 #include <$2>
1771 _ACEOF
1772 if ac_fn_c_try_compile "$LINENO"; then :
1773 eval "$3=yes"
1774 else
1775 eval "$3=no"
1777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1779 eval ac_res=\$$3
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781 $as_echo "$ac_res" >&6; }
1782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784 } # ac_fn_c_check_header_compile
1786 # ac_fn_c_try_link LINENO
1787 # -----------------------
1788 # Try to link conftest.$ac_ext, and return whether this succeeded.
1789 ac_fn_c_try_link ()
1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792 rm -f conftest.$ac_objext conftest$ac_exeext
1793 if { { ac_try="$ac_link"
1794 case "(($ac_try" in
1795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796 *) ac_try_echo=$ac_try;;
1797 esac
1798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799 $as_echo "$ac_try_echo"; } >&5
1800 (eval "$ac_link") 2>conftest.err
1801 ac_status=$?
1802 if test -s conftest.err; then
1803 grep -v '^ *+' conftest.err >conftest.er1
1804 cat conftest.er1 >&5
1805 mv -f conftest.er1 conftest.err
1807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808 test $ac_status = 0; } && {
1809 test -z "$ac_c_werror_flag" ||
1810 test ! -s conftest.err
1811 } && test -s conftest$ac_exeext && {
1812 test "$cross_compiling" = yes ||
1813 test -x conftest$ac_exeext
1814 }; then :
1815 ac_retval=0
1816 else
1817 $as_echo "$as_me: failed program was:" >&5
1818 sed 's/^/| /' conftest.$ac_ext >&5
1820 ac_retval=1
1822 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1823 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1824 # interfere with the next link command; also delete a directory that is
1825 # left behind by Apple's compiler. We do this before executing the actions.
1826 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1828 as_fn_set_status $ac_retval
1830 } # ac_fn_c_try_link
1832 # ac_fn_c_check_func LINENO FUNC VAR
1833 # ----------------------------------
1834 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1835 ac_fn_c_check_func ()
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1839 $as_echo_n "checking for $2... " >&6; }
1840 if eval \${$3+:} false; then :
1841 $as_echo_n "(cached) " >&6
1842 else
1843 if test x$gcc_no_link = xyes; then
1844 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847 /* end confdefs.h. */
1848 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1850 #define $2 innocuous_$2
1852 /* System header to define __stub macros and hopefully few prototypes,
1853 which can conflict with char $2 (); below.
1854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1855 <limits.h> exists even on freestanding compilers. */
1857 #ifdef __STDC__
1858 # include <limits.h>
1859 #else
1860 # include <assert.h>
1861 #endif
1863 #undef $2
1865 /* Override any GCC internal prototype to avoid an error.
1866 Use char because int might match the return type of a GCC
1867 builtin and then its argument prototype would still apply. */
1868 #ifdef __cplusplus
1869 extern "C"
1870 #endif
1871 char $2 ();
1872 /* The GNU C library defines this for functions which it implements
1873 to always fail with ENOSYS. Some functions are actually named
1874 something starting with __ and the normal name is an alias. */
1875 #if defined __stub_$2 || defined __stub___$2
1876 choke me
1877 #endif
1880 main ()
1882 return $2 ();
1884 return 0;
1886 _ACEOF
1887 if ac_fn_c_try_link "$LINENO"; then :
1888 eval "$3=yes"
1889 else
1890 eval "$3=no"
1892 rm -f core conftest.err conftest.$ac_objext \
1893 conftest$ac_exeext conftest.$ac_ext
1895 eval ac_res=\$$3
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1897 $as_echo "$ac_res" >&6; }
1898 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1900 } # ac_fn_c_check_func
1901 cat >config.log <<_ACEOF
1902 This file contains any messages produced by compilers while
1903 running configure, to aid debugging if configure makes a mistake.
1905 It was created by GCC Quad-precision Math Library $as_me 0.1, which was
1906 generated by GNU Autoconf 2.69. Invocation command line was
1908 $ $0 $@
1910 _ACEOF
1911 exec 5>>config.log
1913 cat <<_ASUNAME
1914 ## --------- ##
1915 ## Platform. ##
1916 ## --------- ##
1918 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1919 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1920 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1921 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1922 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1924 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1925 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1927 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1928 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1929 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1930 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1931 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1932 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1933 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1935 _ASUNAME
1937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1938 for as_dir in $PATH
1940 IFS=$as_save_IFS
1941 test -z "$as_dir" && as_dir=.
1942 $as_echo "PATH: $as_dir"
1943 done
1944 IFS=$as_save_IFS
1946 } >&5
1948 cat >&5 <<_ACEOF
1951 ## ----------- ##
1952 ## Core tests. ##
1953 ## ----------- ##
1955 _ACEOF
1958 # Keep a trace of the command line.
1959 # Strip out --no-create and --no-recursion so they do not pile up.
1960 # Strip out --silent because we don't want to record it for future runs.
1961 # Also quote any args containing shell meta-characters.
1962 # Make two passes to allow for proper duplicate-argument suppression.
1963 ac_configure_args=
1964 ac_configure_args0=
1965 ac_configure_args1=
1966 ac_must_keep_next=false
1967 for ac_pass in 1 2
1969 for ac_arg
1971 case $ac_arg in
1972 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1973 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1974 | -silent | --silent | --silen | --sile | --sil)
1975 continue ;;
1976 *\'*)
1977 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1978 esac
1979 case $ac_pass in
1980 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1982 as_fn_append ac_configure_args1 " '$ac_arg'"
1983 if test $ac_must_keep_next = true; then
1984 ac_must_keep_next=false # Got value, back to normal.
1985 else
1986 case $ac_arg in
1987 *=* | --config-cache | -C | -disable-* | --disable-* \
1988 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1989 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1990 | -with-* | --with-* | -without-* | --without-* | --x)
1991 case "$ac_configure_args0 " in
1992 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1993 esac
1995 -* ) ac_must_keep_next=true ;;
1996 esac
1998 as_fn_append ac_configure_args " '$ac_arg'"
2000 esac
2001 done
2002 done
2003 { ac_configure_args0=; unset ac_configure_args0;}
2004 { ac_configure_args1=; unset ac_configure_args1;}
2006 # When interrupted or exit'd, cleanup temporary files, and complete
2007 # config.log. We remove comments because anyway the quotes in there
2008 # would cause problems or look ugly.
2009 # WARNING: Use '\'' to represent an apostrophe within the trap.
2010 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2011 trap 'exit_status=$?
2012 # Save into config.log some information that might help in debugging.
2014 echo
2016 $as_echo "## ---------------- ##
2017 ## Cache variables. ##
2018 ## ---------------- ##"
2019 echo
2020 # The following way of writing the cache mishandles newlines in values,
2022 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2023 eval ac_val=\$$ac_var
2024 case $ac_val in #(
2025 *${as_nl}*)
2026 case $ac_var in #(
2027 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2028 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2029 esac
2030 case $ac_var in #(
2031 _ | IFS | as_nl) ;; #(
2032 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2033 *) { eval $ac_var=; unset $ac_var;} ;;
2034 esac ;;
2035 esac
2036 done
2037 (set) 2>&1 |
2038 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2039 *${as_nl}ac_space=\ *)
2040 sed -n \
2041 "s/'\''/'\''\\\\'\'''\''/g;
2042 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2043 ;; #(
2045 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2047 esac |
2048 sort
2050 echo
2052 $as_echo "## ----------------- ##
2053 ## Output variables. ##
2054 ## ----------------- ##"
2055 echo
2056 for ac_var in $ac_subst_vars
2058 eval ac_val=\$$ac_var
2059 case $ac_val in
2060 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2061 esac
2062 $as_echo "$ac_var='\''$ac_val'\''"
2063 done | sort
2064 echo
2066 if test -n "$ac_subst_files"; then
2067 $as_echo "## ------------------- ##
2068 ## File substitutions. ##
2069 ## ------------------- ##"
2070 echo
2071 for ac_var in $ac_subst_files
2073 eval ac_val=\$$ac_var
2074 case $ac_val in
2075 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2076 esac
2077 $as_echo "$ac_var='\''$ac_val'\''"
2078 done | sort
2079 echo
2082 if test -s confdefs.h; then
2083 $as_echo "## ----------- ##
2084 ## confdefs.h. ##
2085 ## ----------- ##"
2086 echo
2087 cat confdefs.h
2088 echo
2090 test "$ac_signal" != 0 &&
2091 $as_echo "$as_me: caught signal $ac_signal"
2092 $as_echo "$as_me: exit $exit_status"
2093 } >&5
2094 rm -f core *.core core.conftest.* &&
2095 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2096 exit $exit_status
2098 for ac_signal in 1 2 13 15; do
2099 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2100 done
2101 ac_signal=0
2103 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2104 rm -f -r conftest* confdefs.h
2106 $as_echo "/* confdefs.h */" > confdefs.h
2108 # Predefined preprocessor variables.
2110 cat >>confdefs.h <<_ACEOF
2111 #define PACKAGE_NAME "$PACKAGE_NAME"
2112 _ACEOF
2114 cat >>confdefs.h <<_ACEOF
2115 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2116 _ACEOF
2118 cat >>confdefs.h <<_ACEOF
2119 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2120 _ACEOF
2122 cat >>confdefs.h <<_ACEOF
2123 #define PACKAGE_STRING "$PACKAGE_STRING"
2124 _ACEOF
2126 cat >>confdefs.h <<_ACEOF
2127 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2128 _ACEOF
2130 cat >>confdefs.h <<_ACEOF
2131 #define PACKAGE_URL "$PACKAGE_URL"
2132 _ACEOF
2135 # Let the site file select an alternate cache file if it wants to.
2136 # Prefer an explicitly selected file to automatically selected ones.
2137 ac_site_file1=NONE
2138 ac_site_file2=NONE
2139 if test -n "$CONFIG_SITE"; then
2140 # We do not want a PATH search for config.site.
2141 case $CONFIG_SITE in #((
2142 -*) ac_site_file1=./$CONFIG_SITE;;
2143 */*) ac_site_file1=$CONFIG_SITE;;
2144 *) ac_site_file1=./$CONFIG_SITE;;
2145 esac
2146 elif test "x$prefix" != xNONE; then
2147 ac_site_file1=$prefix/share/config.site
2148 ac_site_file2=$prefix/etc/config.site
2149 else
2150 ac_site_file1=$ac_default_prefix/share/config.site
2151 ac_site_file2=$ac_default_prefix/etc/config.site
2153 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2155 test "x$ac_site_file" = xNONE && continue
2156 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2158 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2159 sed 's/^/| /' "$ac_site_file" >&5
2160 . "$ac_site_file" \
2161 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2162 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2163 as_fn_error $? "failed to load site script $ac_site_file
2164 See \`config.log' for more details" "$LINENO" 5; }
2166 done
2168 if test -r "$cache_file"; then
2169 # Some versions of bash will fail to source /dev/null (special files
2170 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2171 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2173 $as_echo "$as_me: loading cache $cache_file" >&6;}
2174 case $cache_file in
2175 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2176 *) . "./$cache_file";;
2177 esac
2179 else
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2181 $as_echo "$as_me: creating cache $cache_file" >&6;}
2182 >$cache_file
2185 # Check that the precious variables saved in the cache have kept the same
2186 # value.
2187 ac_cache_corrupted=false
2188 for ac_var in $ac_precious_vars; do
2189 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2190 eval ac_new_set=\$ac_env_${ac_var}_set
2191 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2192 eval ac_new_val=\$ac_env_${ac_var}_value
2193 case $ac_old_set,$ac_new_set in
2194 set,)
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2196 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2197 ac_cache_corrupted=: ;;
2198 ,set)
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2200 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2201 ac_cache_corrupted=: ;;
2202 ,);;
2204 if test "x$ac_old_val" != "x$ac_new_val"; then
2205 # differences in whitespace do not lead to failure.
2206 ac_old_val_w=`echo x $ac_old_val`
2207 ac_new_val_w=`echo x $ac_new_val`
2208 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2210 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2211 ac_cache_corrupted=:
2212 else
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2214 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2215 eval $ac_var=\$ac_old_val
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2218 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2220 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2221 fi;;
2222 esac
2223 # Pass precious variables to config.status.
2224 if test "$ac_new_set" = set; then
2225 case $ac_new_val in
2226 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2227 *) ac_arg=$ac_var=$ac_new_val ;;
2228 esac
2229 case " $ac_configure_args " in
2230 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2231 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2232 esac
2234 done
2235 if $ac_cache_corrupted; then
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2237 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2239 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2240 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2242 ## -------------------- ##
2243 ## Main body of script. ##
2244 ## -------------------- ##
2246 ac_ext=c
2247 ac_cpp='$CPP $CPPFLAGS'
2248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2256 ac_config_headers="$ac_config_headers config.h"
2259 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2261 # You will slowly go insane if you do not grok the following fact: when
2262 # building this library, the top-level /target/ becomes the library's /host/.
2264 # configure then causes --target to default to --host, exactly like any
2265 # other package using autoconf. Therefore, 'target' and 'host' will
2266 # always be the same. This makes sense both for native and cross compilers
2267 # just think about it for a little while. :-)
2269 # Also, if this library is being configured as part of a cross compiler, the
2270 # top-level configure script will pass the "real" host as $with_cross_host.
2272 # Do not delete or change the following two lines. For why, see
2273 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2274 ac_aux_dir=
2275 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2276 if test -f "$ac_dir/install-sh"; then
2277 ac_aux_dir=$ac_dir
2278 ac_install_sh="$ac_aux_dir/install-sh -c"
2279 break
2280 elif test -f "$ac_dir/install.sh"; then
2281 ac_aux_dir=$ac_dir
2282 ac_install_sh="$ac_aux_dir/install.sh -c"
2283 break
2284 elif test -f "$ac_dir/shtool"; then
2285 ac_aux_dir=$ac_dir
2286 ac_install_sh="$ac_aux_dir/shtool install -c"
2287 break
2289 done
2290 if test -z "$ac_aux_dir"; then
2291 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2294 # These three variables are undocumented and unsupported,
2295 # and are intended to be withdrawn in a future Autoconf release.
2296 # They can cause serious problems if a builder's source tree is in a directory
2297 # whose full name contains unusual characters.
2298 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2299 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2300 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2303 # Make sure we can run config.sub.
2304 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2305 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2308 $as_echo_n "checking build system type... " >&6; }
2309 if ${ac_cv_build+:} false; then :
2310 $as_echo_n "(cached) " >&6
2311 else
2312 ac_build_alias=$build_alias
2313 test "x$ac_build_alias" = x &&
2314 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2315 test "x$ac_build_alias" = x &&
2316 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2317 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2318 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2322 $as_echo "$ac_cv_build" >&6; }
2323 case $ac_cv_build in
2324 *-*-*) ;;
2325 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2326 esac
2327 build=$ac_cv_build
2328 ac_save_IFS=$IFS; IFS='-'
2329 set x $ac_cv_build
2330 shift
2331 build_cpu=$1
2332 build_vendor=$2
2333 shift; shift
2334 # Remember, the first character of IFS is used to create $*,
2335 # except with old shells:
2336 build_os=$*
2337 IFS=$ac_save_IFS
2338 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2342 $as_echo_n "checking host system type... " >&6; }
2343 if ${ac_cv_host+:} false; then :
2344 $as_echo_n "(cached) " >&6
2345 else
2346 if test "x$host_alias" = x; then
2347 ac_cv_host=$ac_cv_build
2348 else
2349 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2350 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2355 $as_echo "$ac_cv_host" >&6; }
2356 case $ac_cv_host in
2357 *-*-*) ;;
2358 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2359 esac
2360 host=$ac_cv_host
2361 ac_save_IFS=$IFS; IFS='-'
2362 set x $ac_cv_host
2363 shift
2364 host_cpu=$1
2365 host_vendor=$2
2366 shift; shift
2367 # Remember, the first character of IFS is used to create $*,
2368 # except with old shells:
2369 host_os=$*
2370 IFS=$ac_save_IFS
2371 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2375 $as_echo_n "checking target system type... " >&6; }
2376 if ${ac_cv_target+:} false; then :
2377 $as_echo_n "(cached) " >&6
2378 else
2379 if test "x$target_alias" = x; then
2380 ac_cv_target=$ac_cv_host
2381 else
2382 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2383 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2388 $as_echo "$ac_cv_target" >&6; }
2389 case $ac_cv_target in
2390 *-*-*) ;;
2391 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2392 esac
2393 target=$ac_cv_target
2394 ac_save_IFS=$IFS; IFS='-'
2395 set x $ac_cv_target
2396 shift
2397 target_cpu=$1
2398 target_vendor=$2
2399 shift; shift
2400 # Remember, the first character of IFS is used to create $*,
2401 # except with old shells:
2402 target_os=$*
2403 IFS=$ac_save_IFS
2404 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2407 # The aliases save the names the user supplied, while $host etc.
2408 # will get canonicalized.
2409 test -n "$target_alias" &&
2410 test "$program_prefix$program_suffix$program_transform_name" = \
2411 NONENONEs,x,x, &&
2412 program_prefix=${target_alias}-
2414 case ${build_alias} in
2415 "") build_noncanonical=${build} ;;
2416 *) build_noncanonical=${build_alias} ;;
2417 esac
2419 case ${host_alias} in
2420 "") host_noncanonical=${build_noncanonical} ;;
2421 *) host_noncanonical=${host_alias} ;;
2422 esac
2424 case ${target_alias} in
2425 "") target_noncanonical=${host_noncanonical} ;;
2426 *) target_noncanonical=${target_alias} ;;
2427 esac
2432 # Default to --enable-multilib
2433 # Check whether --enable-multilib was given.
2434 if test "${enable_multilib+set}" = set; then :
2435 enableval=$enable_multilib; case "$enableval" in
2436 yes) multilib=yes ;;
2437 no) multilib=no ;;
2438 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2439 esac
2440 else
2441 multilib=yes
2445 # We may get other options which we leave undocumented:
2446 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2447 # See config-ml.in if you want the gory details.
2449 if test "$srcdir" = "."; then
2450 if test "$with_target_subdir" != "."; then
2451 multi_basedir="$srcdir/$with_multisrctop../.."
2452 else
2453 multi_basedir="$srcdir/$with_multisrctop.."
2455 else
2456 multi_basedir="$srcdir/.."
2460 # Even if the default multilib is not a cross compilation,
2461 # it may be that some of the other multilibs are.
2462 if test $cross_compiling = no && test $multilib = yes \
2463 && test "x${with_multisubdir}" != x ; then
2464 cross_compiling=maybe
2467 ac_config_commands="$ac_config_commands default-1"
2470 target_alias=${target_alias-$host_alias}
2473 am__api_version='1.15'
2475 # Find a good install program. We prefer a C program (faster),
2476 # so one script is as good as another. But avoid the broken or
2477 # incompatible versions:
2478 # SysV /etc/install, /usr/sbin/install
2479 # SunOS /usr/etc/install
2480 # IRIX /sbin/install
2481 # AIX /bin/install
2482 # AmigaOS /C/install, which installs bootblocks on floppy discs
2483 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2484 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2485 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2486 # OS/2's system install, which has a completely different semantic
2487 # ./install, which can be erroneously created by make from ./install.sh.
2488 # Reject install programs that cannot install multiple files.
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2490 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2491 if test -z "$INSTALL"; then
2492 if ${ac_cv_path_install+:} false; then :
2493 $as_echo_n "(cached) " >&6
2494 else
2495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496 for as_dir in $PATH
2498 IFS=$as_save_IFS
2499 test -z "$as_dir" && as_dir=.
2500 # Account for people who put trailing slashes in PATH elements.
2501 case $as_dir/ in #((
2502 ./ | .// | /[cC]/* | \
2503 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2504 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2505 /usr/ucb/* ) ;;
2507 # OSF1 and SCO ODT 3.0 have their own names for install.
2508 # Don't use installbsd from OSF since it installs stuff as root
2509 # by default.
2510 for ac_prog in ginstall scoinst install; do
2511 for ac_exec_ext in '' $ac_executable_extensions; do
2512 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2513 if test $ac_prog = install &&
2514 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2515 # AIX install. It has an incompatible calling convention.
2517 elif test $ac_prog = install &&
2518 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2519 # program-specific install script used by HP pwplus--don't use.
2521 else
2522 rm -rf conftest.one conftest.two conftest.dir
2523 echo one > conftest.one
2524 echo two > conftest.two
2525 mkdir conftest.dir
2526 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2527 test -s conftest.one && test -s conftest.two &&
2528 test -s conftest.dir/conftest.one &&
2529 test -s conftest.dir/conftest.two
2530 then
2531 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2532 break 3
2536 done
2537 done
2539 esac
2541 done
2542 IFS=$as_save_IFS
2544 rm -rf conftest.one conftest.two conftest.dir
2547 if test "${ac_cv_path_install+set}" = set; then
2548 INSTALL=$ac_cv_path_install
2549 else
2550 # As a last resort, use the slow shell script. Don't cache a
2551 # value for INSTALL within a source directory, because that will
2552 # break other packages using the cache if that directory is
2553 # removed, or if the value is a relative name.
2554 INSTALL=$ac_install_sh
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2558 $as_echo "$INSTALL" >&6; }
2560 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2561 # It thinks the first close brace ends the variable substitution.
2562 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2564 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2566 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2569 $as_echo_n "checking whether build environment is sane... " >&6; }
2570 # Reject unsafe characters in $srcdir or the absolute working directory
2571 # name. Accept space and tab only in the latter.
2572 am_lf='
2574 case `pwd` in
2575 *[\\\"\#\$\&\'\`$am_lf]*)
2576 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2577 esac
2578 case $srcdir in
2579 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2580 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2581 esac
2583 # Do 'set' in a subshell so we don't clobber the current shell's
2584 # arguments. Must try -L first in case configure is actually a
2585 # symlink; some systems play weird games with the mod time of symlinks
2586 # (eg FreeBSD returns the mod time of the symlink's containing
2587 # directory).
2588 if (
2589 am_has_slept=no
2590 for am_try in 1 2; do
2591 echo "timestamp, slept: $am_has_slept" > conftest.file
2592 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2593 if test "$*" = "X"; then
2594 # -L didn't work.
2595 set X `ls -t "$srcdir/configure" conftest.file`
2597 if test "$*" != "X $srcdir/configure conftest.file" \
2598 && test "$*" != "X conftest.file $srcdir/configure"; then
2600 # If neither matched, then we have a broken ls. This can happen
2601 # if, for instance, CONFIG_SHELL is bash and it inherits a
2602 # broken ls alias from the environment. This has actually
2603 # happened. Such a system could not be considered "sane".
2604 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2605 alias in your environment" "$LINENO" 5
2607 if test "$2" = conftest.file || test $am_try -eq 2; then
2608 break
2610 # Just in case.
2611 sleep 1
2612 am_has_slept=yes
2613 done
2614 test "$2" = conftest.file
2616 then
2617 # Ok.
2619 else
2620 as_fn_error $? "newly created file is older than distributed files!
2621 Check your system clock" "$LINENO" 5
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2624 $as_echo "yes" >&6; }
2625 # If we didn't sleep, we still need to ensure time stamps of config.status and
2626 # generated files are strictly newer.
2627 am_sleep_pid=
2628 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2629 ( sleep 1 ) &
2630 am_sleep_pid=$!
2633 rm -f conftest.file
2635 test "$program_prefix" != NONE &&
2636 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2637 # Use a double $ so make ignores it.
2638 test "$program_suffix" != NONE &&
2639 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2640 # Double any \ or $.
2641 # By default was `s,x,x', remove it if useless.
2642 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2643 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2645 # Expand $ac_aux_dir to an absolute path.
2646 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2648 if test x"${MISSING+set}" != xset; then
2649 case $am_aux_dir in
2650 *\ * | *\ *)
2651 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2653 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2654 esac
2656 # Use eval to expand $SHELL
2657 if eval "$MISSING --is-lightweight"; then
2658 am_missing_run="$MISSING "
2659 else
2660 am_missing_run=
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2662 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2665 if test x"${install_sh+set}" != xset; then
2666 case $am_aux_dir in
2667 *\ * | *\ *)
2668 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2670 install_sh="\${SHELL} $am_aux_dir/install-sh"
2671 esac
2674 # Installed binaries are usually stripped using 'strip' when the user
2675 # run "make install-strip". However 'strip' might not be the right
2676 # tool to use in cross-compilation environments, therefore Automake
2677 # will honor the 'STRIP' environment variable to overrule this program.
2678 if test "$cross_compiling" != no; then
2679 if test -n "$ac_tool_prefix"; then
2680 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2681 set dummy ${ac_tool_prefix}strip; ac_word=$2
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2683 $as_echo_n "checking for $ac_word... " >&6; }
2684 if ${ac_cv_prog_STRIP+:} false; then :
2685 $as_echo_n "(cached) " >&6
2686 else
2687 if test -n "$STRIP"; then
2688 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2689 else
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 for as_dir in $PATH
2693 IFS=$as_save_IFS
2694 test -z "$as_dir" && as_dir=.
2695 for ac_exec_ext in '' $ac_executable_extensions; do
2696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2697 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2699 break 2
2701 done
2702 done
2703 IFS=$as_save_IFS
2707 STRIP=$ac_cv_prog_STRIP
2708 if test -n "$STRIP"; then
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2710 $as_echo "$STRIP" >&6; }
2711 else
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2713 $as_echo "no" >&6; }
2718 if test -z "$ac_cv_prog_STRIP"; then
2719 ac_ct_STRIP=$STRIP
2720 # Extract the first word of "strip", so it can be a program name with args.
2721 set dummy strip; ac_word=$2
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2723 $as_echo_n "checking for $ac_word... " >&6; }
2724 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2725 $as_echo_n "(cached) " >&6
2726 else
2727 if test -n "$ac_ct_STRIP"; then
2728 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2729 else
2730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731 for as_dir in $PATH
2733 IFS=$as_save_IFS
2734 test -z "$as_dir" && as_dir=.
2735 for ac_exec_ext in '' $ac_executable_extensions; do
2736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2737 ac_cv_prog_ac_ct_STRIP="strip"
2738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2739 break 2
2741 done
2742 done
2743 IFS=$as_save_IFS
2747 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2748 if test -n "$ac_ct_STRIP"; then
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2750 $as_echo "$ac_ct_STRIP" >&6; }
2751 else
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2753 $as_echo "no" >&6; }
2756 if test "x$ac_ct_STRIP" = x; then
2757 STRIP=":"
2758 else
2759 case $cross_compiling:$ac_tool_warned in
2760 yes:)
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2762 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2763 ac_tool_warned=yes ;;
2764 esac
2765 STRIP=$ac_ct_STRIP
2767 else
2768 STRIP="$ac_cv_prog_STRIP"
2772 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2775 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2776 if test -z "$MKDIR_P"; then
2777 if ${ac_cv_path_mkdir+:} false; then :
2778 $as_echo_n "(cached) " >&6
2779 else
2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2783 IFS=$as_save_IFS
2784 test -z "$as_dir" && as_dir=.
2785 for ac_prog in mkdir gmkdir; do
2786 for ac_exec_ext in '' $ac_executable_extensions; do
2787 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2788 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2789 'mkdir (GNU coreutils) '* | \
2790 'mkdir (coreutils) '* | \
2791 'mkdir (fileutils) '4.1*)
2792 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2793 break 3;;
2794 esac
2795 done
2796 done
2797 done
2798 IFS=$as_save_IFS
2802 test -d ./--version && rmdir ./--version
2803 if test "${ac_cv_path_mkdir+set}" = set; then
2804 MKDIR_P="$ac_cv_path_mkdir -p"
2805 else
2806 # As a last resort, use the slow shell script. Don't cache a
2807 # value for MKDIR_P within a source directory, because that will
2808 # break other packages using the cache if that directory is
2809 # removed, or if the value is a relative name.
2810 MKDIR_P="$ac_install_sh -d"
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2814 $as_echo "$MKDIR_P" >&6; }
2816 for ac_prog in gawk mawk nawk awk
2818 # Extract the first word of "$ac_prog", so it can be a program name with args.
2819 set dummy $ac_prog; ac_word=$2
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2821 $as_echo_n "checking for $ac_word... " >&6; }
2822 if ${ac_cv_prog_AWK+:} false; then :
2823 $as_echo_n "(cached) " >&6
2824 else
2825 if test -n "$AWK"; then
2826 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2827 else
2828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829 for as_dir in $PATH
2831 IFS=$as_save_IFS
2832 test -z "$as_dir" && as_dir=.
2833 for ac_exec_ext in '' $ac_executable_extensions; do
2834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2835 ac_cv_prog_AWK="$ac_prog"
2836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2837 break 2
2839 done
2840 done
2841 IFS=$as_save_IFS
2845 AWK=$ac_cv_prog_AWK
2846 if test -n "$AWK"; then
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2848 $as_echo "$AWK" >&6; }
2849 else
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2851 $as_echo "no" >&6; }
2855 test -n "$AWK" && break
2856 done
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2859 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2860 set x ${MAKE-make}
2861 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2862 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2863 $as_echo_n "(cached) " >&6
2864 else
2865 cat >conftest.make <<\_ACEOF
2866 SHELL = /bin/sh
2867 all:
2868 @echo '@@@%%%=$(MAKE)=@@@%%%'
2869 _ACEOF
2870 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2871 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2872 *@@@%%%=?*=@@@%%%*)
2873 eval ac_cv_prog_make_${ac_make}_set=yes;;
2875 eval ac_cv_prog_make_${ac_make}_set=no;;
2876 esac
2877 rm -f conftest.make
2879 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2881 $as_echo "yes" >&6; }
2882 SET_MAKE=
2883 else
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2885 $as_echo "no" >&6; }
2886 SET_MAKE="MAKE=${MAKE-make}"
2889 rm -rf .tst 2>/dev/null
2890 mkdir .tst 2>/dev/null
2891 if test -d .tst; then
2892 am__leading_dot=.
2893 else
2894 am__leading_dot=_
2896 rmdir .tst 2>/dev/null
2898 # Check whether --enable-silent-rules was given.
2899 if test "${enable_silent_rules+set}" = set; then :
2900 enableval=$enable_silent_rules;
2903 case $enable_silent_rules in # (((
2904 yes) AM_DEFAULT_VERBOSITY=0;;
2905 no) AM_DEFAULT_VERBOSITY=1;;
2906 *) AM_DEFAULT_VERBOSITY=1;;
2907 esac
2908 am_make=${MAKE-make}
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2910 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2911 if ${am_cv_make_support_nested_variables+:} false; then :
2912 $as_echo_n "(cached) " >&6
2913 else
2914 if $as_echo 'TRUE=$(BAR$(V))
2915 BAR0=false
2916 BAR1=true
2918 am__doit:
2919 @$(TRUE)
2920 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2921 am_cv_make_support_nested_variables=yes
2922 else
2923 am_cv_make_support_nested_variables=no
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2927 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2928 if test $am_cv_make_support_nested_variables = yes; then
2929 AM_V='$(V)'
2930 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2931 else
2932 AM_V=$AM_DEFAULT_VERBOSITY
2933 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2935 AM_BACKSLASH='\'
2937 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2938 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2939 # is not polluted with repeated "-I."
2940 am__isrc=' -I$(srcdir)'
2941 # test to see if srcdir already configured
2942 if test -f $srcdir/config.status; then
2943 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2947 # test whether we have cygpath
2948 if test -z "$CYGPATH_W"; then
2949 if (cygpath --version) >/dev/null 2>/dev/null; then
2950 CYGPATH_W='cygpath -w'
2951 else
2952 CYGPATH_W=echo
2957 # Define the identity of the package.
2958 PACKAGE='libquadmath'
2959 VERSION='0.1'
2962 cat >>confdefs.h <<_ACEOF
2963 #define PACKAGE "$PACKAGE"
2964 _ACEOF
2967 cat >>confdefs.h <<_ACEOF
2968 #define VERSION "$VERSION"
2969 _ACEOF
2971 # Some tools Automake needs.
2973 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2976 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2979 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2982 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2985 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2987 # For better backward compatibility. To be removed once Automake 1.9.x
2988 # dies out for good. For more background, see:
2989 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2990 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2991 mkdir_p='$(MKDIR_P)'
2993 # We need awk for the "check" target (and possibly the TAP driver). The
2994 # system "awk" is bad on some platforms.
2995 # Always define AMTAR for backward compatibility. Yes, it's still used
2996 # in the wild :-( We should find a proper way to deprecate it ...
2997 AMTAR='$${TAR-tar}'
3000 # We'll loop over all known methods to create a tar archive until one works.
3001 _am_tools='gnutar pax cpio none'
3003 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3010 # POSIX will say in a future version that running "rm -f" with no argument
3011 # is OK; and we want to be able to make that assumption in our Makefile
3012 # recipes. So use an aggressive probe to check that the usage we want is
3013 # actually supported "in the wild" to an acceptable degree.
3014 # See automake bug#10828.
3015 # To make any issue more visible, cause the running configure to be aborted
3016 # by default if the 'rm' program in use doesn't match our expectations; the
3017 # user can still override this though.
3018 if rm -f && rm -fr && rm -rf; then : OK; else
3019 cat >&2 <<'END'
3020 Oops!
3022 Your 'rm' program seems unable to run without file operands specified
3023 on the command line, even when the '-f' option is present. This is contrary
3024 to the behaviour of most rm programs out there, and not conforming with
3025 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3027 Please tell bug-automake@gnu.org about your system, including the value
3028 of your $PATH and any error possibly output before this message. This
3029 can help us improve future automake versions.
3032 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3033 echo 'Configuration will proceed anyway, since you have set the' >&2
3034 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3035 echo >&2
3036 else
3037 cat >&2 <<'END'
3038 Aborting the configuration process, to ensure you take notice of the issue.
3040 You can download and install GNU coreutils to get an 'rm' implementation
3041 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3043 If you want to complete the configuration process using your problematic
3044 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3045 to "yes", and re-run configure.
3048 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
3054 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
3055 # Check whether --enable-version-specific-runtime-libs was given.
3056 if test "${enable_version_specific_runtime_libs+set}" = set; then :
3057 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
3058 yes) version_specific_libs=yes ;;
3059 no) version_specific_libs=no ;;
3060 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
3061 esac
3062 else
3063 version_specific_libs=no
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
3067 $as_echo "$version_specific_libs" >&6; }
3071 DEPDIR="${am__leading_dot}deps"
3073 ac_config_commands="$ac_config_commands depfiles"
3076 am_make=${MAKE-make}
3077 cat > confinc << 'END'
3078 am__doit:
3079 @echo this is the am__doit target
3080 .PHONY: am__doit
3082 # If we don't find an include directive, just comment out the code.
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3084 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3085 am__include="#"
3086 am__quote=
3087 _am_result=none
3088 # First try GNU make style include.
3089 echo "include confinc" > confmf
3090 # Ignore all kinds of additional output from 'make'.
3091 case `$am_make -s -f confmf 2> /dev/null` in #(
3092 *the\ am__doit\ target*)
3093 am__include=include
3094 am__quote=
3095 _am_result=GNU
3097 esac
3098 # Now try BSD make style include.
3099 if test "$am__include" = "#"; then
3100 echo '.include "confinc"' > confmf
3101 case `$am_make -s -f confmf 2> /dev/null` in #(
3102 *the\ am__doit\ target*)
3103 am__include=.include
3104 am__quote="\""
3105 _am_result=BSD
3107 esac
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3112 $as_echo "$_am_result" >&6; }
3113 rm -f confinc confmf
3115 # Check whether --enable-dependency-tracking was given.
3116 if test "${enable_dependency_tracking+set}" = set; then :
3117 enableval=$enable_dependency_tracking;
3120 if test "x$enable_dependency_tracking" != xno; then
3121 am_depcomp="$ac_aux_dir/depcomp"
3122 AMDEPBACKSLASH='\'
3123 am__nodep='_no'
3125 if test "x$enable_dependency_tracking" != xno; then
3126 AMDEP_TRUE=
3127 AMDEP_FALSE='#'
3128 else
3129 AMDEP_TRUE='#'
3130 AMDEP_FALSE=
3134 ac_ext=c
3135 ac_cpp='$CPP $CPPFLAGS'
3136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3139 if test -n "$ac_tool_prefix"; then
3140 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3141 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3143 $as_echo_n "checking for $ac_word... " >&6; }
3144 if ${ac_cv_prog_CC+:} false; then :
3145 $as_echo_n "(cached) " >&6
3146 else
3147 if test -n "$CC"; then
3148 ac_cv_prog_CC="$CC" # Let the user override the test.
3149 else
3150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151 for as_dir in $PATH
3153 IFS=$as_save_IFS
3154 test -z "$as_dir" && as_dir=.
3155 for ac_exec_ext in '' $ac_executable_extensions; do
3156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3157 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3159 break 2
3161 done
3162 done
3163 IFS=$as_save_IFS
3167 CC=$ac_cv_prog_CC
3168 if test -n "$CC"; then
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3170 $as_echo "$CC" >&6; }
3171 else
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3173 $as_echo "no" >&6; }
3178 if test -z "$ac_cv_prog_CC"; then
3179 ac_ct_CC=$CC
3180 # Extract the first word of "gcc", so it can be a program name with args.
3181 set dummy gcc; ac_word=$2
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3183 $as_echo_n "checking for $ac_word... " >&6; }
3184 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3185 $as_echo_n "(cached) " >&6
3186 else
3187 if test -n "$ac_ct_CC"; then
3188 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3189 else
3190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191 for as_dir in $PATH
3193 IFS=$as_save_IFS
3194 test -z "$as_dir" && as_dir=.
3195 for ac_exec_ext in '' $ac_executable_extensions; do
3196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3197 ac_cv_prog_ac_ct_CC="gcc"
3198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3199 break 2
3201 done
3202 done
3203 IFS=$as_save_IFS
3207 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3208 if test -n "$ac_ct_CC"; then
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3210 $as_echo "$ac_ct_CC" >&6; }
3211 else
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3213 $as_echo "no" >&6; }
3216 if test "x$ac_ct_CC" = x; then
3217 CC=""
3218 else
3219 case $cross_compiling:$ac_tool_warned in
3220 yes:)
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3223 ac_tool_warned=yes ;;
3224 esac
3225 CC=$ac_ct_CC
3227 else
3228 CC="$ac_cv_prog_CC"
3231 if test -z "$CC"; then
3232 if test -n "$ac_tool_prefix"; then
3233 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3234 set dummy ${ac_tool_prefix}cc; ac_word=$2
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3236 $as_echo_n "checking for $ac_word... " >&6; }
3237 if ${ac_cv_prog_CC+:} false; then :
3238 $as_echo_n "(cached) " >&6
3239 else
3240 if test -n "$CC"; then
3241 ac_cv_prog_CC="$CC" # Let the user override the test.
3242 else
3243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3244 for as_dir in $PATH
3246 IFS=$as_save_IFS
3247 test -z "$as_dir" && as_dir=.
3248 for ac_exec_ext in '' $ac_executable_extensions; do
3249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3250 ac_cv_prog_CC="${ac_tool_prefix}cc"
3251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3252 break 2
3254 done
3255 done
3256 IFS=$as_save_IFS
3260 CC=$ac_cv_prog_CC
3261 if test -n "$CC"; then
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3263 $as_echo "$CC" >&6; }
3264 else
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3266 $as_echo "no" >&6; }
3272 if test -z "$CC"; then
3273 # Extract the first word of "cc", so it can be a program name with args.
3274 set dummy cc; ac_word=$2
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3276 $as_echo_n "checking for $ac_word... " >&6; }
3277 if ${ac_cv_prog_CC+:} false; then :
3278 $as_echo_n "(cached) " >&6
3279 else
3280 if test -n "$CC"; then
3281 ac_cv_prog_CC="$CC" # Let the user override the test.
3282 else
3283 ac_prog_rejected=no
3284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285 for as_dir in $PATH
3287 IFS=$as_save_IFS
3288 test -z "$as_dir" && as_dir=.
3289 for ac_exec_ext in '' $ac_executable_extensions; do
3290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3291 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3292 ac_prog_rejected=yes
3293 continue
3295 ac_cv_prog_CC="cc"
3296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3297 break 2
3299 done
3300 done
3301 IFS=$as_save_IFS
3303 if test $ac_prog_rejected = yes; then
3304 # We found a bogon in the path, so make sure we never use it.
3305 set dummy $ac_cv_prog_CC
3306 shift
3307 if test $# != 0; then
3308 # We chose a different compiler from the bogus one.
3309 # However, it has the same basename, so the bogon will be chosen
3310 # first if we set CC to just the basename; use the full file name.
3311 shift
3312 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3317 CC=$ac_cv_prog_CC
3318 if test -n "$CC"; then
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3320 $as_echo "$CC" >&6; }
3321 else
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3323 $as_echo "no" >&6; }
3328 if test -z "$CC"; then
3329 if test -n "$ac_tool_prefix"; then
3330 for ac_prog in cl.exe
3332 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3333 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3335 $as_echo_n "checking for $ac_word... " >&6; }
3336 if ${ac_cv_prog_CC+:} false; then :
3337 $as_echo_n "(cached) " >&6
3338 else
3339 if test -n "$CC"; then
3340 ac_cv_prog_CC="$CC" # Let the user override the test.
3341 else
3342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3343 for as_dir in $PATH
3345 IFS=$as_save_IFS
3346 test -z "$as_dir" && as_dir=.
3347 for ac_exec_ext in '' $ac_executable_extensions; do
3348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3349 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3351 break 2
3353 done
3354 done
3355 IFS=$as_save_IFS
3359 CC=$ac_cv_prog_CC
3360 if test -n "$CC"; then
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3362 $as_echo "$CC" >&6; }
3363 else
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3365 $as_echo "no" >&6; }
3369 test -n "$CC" && break
3370 done
3372 if test -z "$CC"; then
3373 ac_ct_CC=$CC
3374 for ac_prog in cl.exe
3376 # Extract the first word of "$ac_prog", so it can be a program name with args.
3377 set dummy $ac_prog; ac_word=$2
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3379 $as_echo_n "checking for $ac_word... " >&6; }
3380 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3381 $as_echo_n "(cached) " >&6
3382 else
3383 if test -n "$ac_ct_CC"; then
3384 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3385 else
3386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387 for as_dir in $PATH
3389 IFS=$as_save_IFS
3390 test -z "$as_dir" && as_dir=.
3391 for ac_exec_ext in '' $ac_executable_extensions; do
3392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3393 ac_cv_prog_ac_ct_CC="$ac_prog"
3394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3395 break 2
3397 done
3398 done
3399 IFS=$as_save_IFS
3403 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3404 if test -n "$ac_ct_CC"; then
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3406 $as_echo "$ac_ct_CC" >&6; }
3407 else
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3409 $as_echo "no" >&6; }
3413 test -n "$ac_ct_CC" && break
3414 done
3416 if test "x$ac_ct_CC" = x; then
3417 CC=""
3418 else
3419 case $cross_compiling:$ac_tool_warned in
3420 yes:)
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3422 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3423 ac_tool_warned=yes ;;
3424 esac
3425 CC=$ac_ct_CC
3432 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3433 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3434 as_fn_error $? "no acceptable C compiler found in \$PATH
3435 See \`config.log' for more details" "$LINENO" 5; }
3437 # Provide some information about the compiler.
3438 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3439 set X $ac_compile
3440 ac_compiler=$2
3441 for ac_option in --version -v -V -qversion; do
3442 { { ac_try="$ac_compiler $ac_option >&5"
3443 case "(($ac_try" in
3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445 *) ac_try_echo=$ac_try;;
3446 esac
3447 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3448 $as_echo "$ac_try_echo"; } >&5
3449 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3450 ac_status=$?
3451 if test -s conftest.err; then
3452 sed '10a\
3453 ... rest of stderr output deleted ...
3454 10q' conftest.err >conftest.er1
3455 cat conftest.er1 >&5
3457 rm -f conftest.er1 conftest.err
3458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3459 test $ac_status = 0; }
3460 done
3462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3463 /* end confdefs.h. */
3464 #include <stdio.h>
3466 main ()
3468 printf ("hello world\n");
3470 return 0;
3472 _ACEOF
3473 # FIXME: Cleanup?
3474 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3475 (eval $ac_link) 2>&5
3476 ac_status=$?
3477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3478 test $ac_status = 0; }; then :
3479 gcc_no_link=no
3480 else
3481 gcc_no_link=yes
3483 if test x$gcc_no_link = xyes; then
3484 # Setting cross_compile will disable run tests; it will
3485 # also disable AC_CHECK_FILE but that's generally
3486 # correct if we can't link.
3487 cross_compiling=yes
3488 EXEEXT=
3489 else
3490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3491 /* end confdefs.h. */
3494 main ()
3498 return 0;
3500 _ACEOF
3501 ac_clean_files_save=$ac_clean_files
3502 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3503 # Try to create an executable without -o first, disregard a.out.
3504 # It will help us diagnose broken compilers, and finding out an intuition
3505 # of exeext.
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3507 $as_echo_n "checking whether the C compiler works... " >&6; }
3508 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3510 # The possible output files:
3511 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3513 ac_rmfiles=
3514 for ac_file in $ac_files
3516 case $ac_file in
3517 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3518 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3519 esac
3520 done
3521 rm -f $ac_rmfiles
3523 if { { ac_try="$ac_link_default"
3524 case "(($ac_try" in
3525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3526 *) ac_try_echo=$ac_try;;
3527 esac
3528 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3529 $as_echo "$ac_try_echo"; } >&5
3530 (eval "$ac_link_default") 2>&5
3531 ac_status=$?
3532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3533 test $ac_status = 0; }; then :
3534 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3535 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3536 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3537 # so that the user can short-circuit this test for compilers unknown to
3538 # Autoconf.
3539 for ac_file in $ac_files ''
3541 test -f "$ac_file" || continue
3542 case $ac_file in
3543 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3545 [ab].out )
3546 # We found the default executable, but exeext='' is most
3547 # certainly right.
3548 break;;
3549 *.* )
3550 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3551 then :; else
3552 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3554 # We set ac_cv_exeext here because the later test for it is not
3555 # safe: cross compilers may not add the suffix if given an `-o'
3556 # argument, so we may need to know it at that point already.
3557 # Even if this section looks crufty: it has the advantage of
3558 # actually working.
3559 break;;
3561 break;;
3562 esac
3563 done
3564 test "$ac_cv_exeext" = no && ac_cv_exeext=
3566 else
3567 ac_file=''
3569 if test -z "$ac_file"; then :
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3571 $as_echo "no" >&6; }
3572 $as_echo "$as_me: failed program was:" >&5
3573 sed 's/^/| /' conftest.$ac_ext >&5
3575 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3576 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3577 as_fn_error 77 "C compiler cannot create executables
3578 See \`config.log' for more details" "$LINENO" 5; }
3579 else
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3581 $as_echo "yes" >&6; }
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3584 $as_echo_n "checking for C compiler default output file name... " >&6; }
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3586 $as_echo "$ac_file" >&6; }
3587 ac_exeext=$ac_cv_exeext
3589 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3590 ac_clean_files=$ac_clean_files_save
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3592 $as_echo_n "checking for suffix of executables... " >&6; }
3593 if { { ac_try="$ac_link"
3594 case "(($ac_try" in
3595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3596 *) ac_try_echo=$ac_try;;
3597 esac
3598 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3599 $as_echo "$ac_try_echo"; } >&5
3600 (eval "$ac_link") 2>&5
3601 ac_status=$?
3602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3603 test $ac_status = 0; }; then :
3604 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3605 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3606 # work properly (i.e., refer to `conftest.exe'), while it won't with
3607 # `rm'.
3608 for ac_file in conftest.exe conftest conftest.*; do
3609 test -f "$ac_file" || continue
3610 case $ac_file in
3611 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3612 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3613 break;;
3614 * ) break;;
3615 esac
3616 done
3617 else
3618 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3620 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3621 See \`config.log' for more details" "$LINENO" 5; }
3623 rm -f conftest conftest$ac_cv_exeext
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3625 $as_echo "$ac_cv_exeext" >&6; }
3627 rm -f conftest.$ac_ext
3628 EXEEXT=$ac_cv_exeext
3629 ac_exeext=$EXEEXT
3630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3631 /* end confdefs.h. */
3632 #include <stdio.h>
3634 main ()
3636 FILE *f = fopen ("conftest.out", "w");
3637 return ferror (f) || fclose (f) != 0;
3640 return 0;
3642 _ACEOF
3643 ac_clean_files="$ac_clean_files conftest.out"
3644 # Check that the compiler produces executables we can run. If not, either
3645 # the compiler is broken, or we cross compile.
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3647 $as_echo_n "checking whether we are cross compiling... " >&6; }
3648 if test "$cross_compiling" != yes; then
3649 { { ac_try="$ac_link"
3650 case "(($ac_try" in
3651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3652 *) ac_try_echo=$ac_try;;
3653 esac
3654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3655 $as_echo "$ac_try_echo"; } >&5
3656 (eval "$ac_link") 2>&5
3657 ac_status=$?
3658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3659 test $ac_status = 0; }
3660 if { ac_try='./conftest$ac_cv_exeext'
3661 { { case "(($ac_try" in
3662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3663 *) ac_try_echo=$ac_try;;
3664 esac
3665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3666 $as_echo "$ac_try_echo"; } >&5
3667 (eval "$ac_try") 2>&5
3668 ac_status=$?
3669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3670 test $ac_status = 0; }; }; then
3671 cross_compiling=no
3672 else
3673 if test "$cross_compiling" = maybe; then
3674 cross_compiling=yes
3675 else
3676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3678 as_fn_error $? "cannot run C compiled programs.
3679 If you meant to cross compile, use \`--host'.
3680 See \`config.log' for more details" "$LINENO" 5; }
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3685 $as_echo "$cross_compiling" >&6; }
3687 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3688 ac_clean_files=$ac_clean_files_save
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3691 $as_echo_n "checking for suffix of object files... " >&6; }
3692 if ${ac_cv_objext+:} false; then :
3693 $as_echo_n "(cached) " >&6
3694 else
3695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696 /* end confdefs.h. */
3699 main ()
3703 return 0;
3705 _ACEOF
3706 rm -f conftest.o conftest.obj
3707 if { { ac_try="$ac_compile"
3708 case "(($ac_try" in
3709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710 *) ac_try_echo=$ac_try;;
3711 esac
3712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3713 $as_echo "$ac_try_echo"; } >&5
3714 (eval "$ac_compile") 2>&5
3715 ac_status=$?
3716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3717 test $ac_status = 0; }; then :
3718 for ac_file in conftest.o conftest.obj conftest.*; do
3719 test -f "$ac_file" || continue;
3720 case $ac_file in
3721 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3722 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3723 break;;
3724 esac
3725 done
3726 else
3727 $as_echo "$as_me: failed program was:" >&5
3728 sed 's/^/| /' conftest.$ac_ext >&5
3730 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3731 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3732 as_fn_error $? "cannot compute suffix of object files: cannot compile
3733 See \`config.log' for more details" "$LINENO" 5; }
3735 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3738 $as_echo "$ac_cv_objext" >&6; }
3739 OBJEXT=$ac_cv_objext
3740 ac_objext=$OBJEXT
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3742 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3743 if ${ac_cv_c_compiler_gnu+:} false; then :
3744 $as_echo_n "(cached) " >&6
3745 else
3746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3747 /* end confdefs.h. */
3750 main ()
3752 #ifndef __GNUC__
3753 choke me
3754 #endif
3757 return 0;
3759 _ACEOF
3760 if ac_fn_c_try_compile "$LINENO"; then :
3761 ac_compiler_gnu=yes
3762 else
3763 ac_compiler_gnu=no
3765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3766 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3770 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3771 if test $ac_compiler_gnu = yes; then
3772 GCC=yes
3773 else
3774 GCC=
3776 ac_test_CFLAGS=${CFLAGS+set}
3777 ac_save_CFLAGS=$CFLAGS
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3779 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3780 if ${ac_cv_prog_cc_g+:} false; then :
3781 $as_echo_n "(cached) " >&6
3782 else
3783 ac_save_c_werror_flag=$ac_c_werror_flag
3784 ac_c_werror_flag=yes
3785 ac_cv_prog_cc_g=no
3786 CFLAGS="-g"
3787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788 /* end confdefs.h. */
3791 main ()
3795 return 0;
3797 _ACEOF
3798 if ac_fn_c_try_compile "$LINENO"; then :
3799 ac_cv_prog_cc_g=yes
3800 else
3801 CFLAGS=""
3802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3803 /* end confdefs.h. */
3806 main ()
3810 return 0;
3812 _ACEOF
3813 if ac_fn_c_try_compile "$LINENO"; then :
3815 else
3816 ac_c_werror_flag=$ac_save_c_werror_flag
3817 CFLAGS="-g"
3818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3819 /* end confdefs.h. */
3822 main ()
3826 return 0;
3828 _ACEOF
3829 if ac_fn_c_try_compile "$LINENO"; then :
3830 ac_cv_prog_cc_g=yes
3832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3837 ac_c_werror_flag=$ac_save_c_werror_flag
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3840 $as_echo "$ac_cv_prog_cc_g" >&6; }
3841 if test "$ac_test_CFLAGS" = set; then
3842 CFLAGS=$ac_save_CFLAGS
3843 elif test $ac_cv_prog_cc_g = yes; then
3844 if test "$GCC" = yes; then
3845 CFLAGS="-g -O2"
3846 else
3847 CFLAGS="-g"
3849 else
3850 if test "$GCC" = yes; then
3851 CFLAGS="-O2"
3852 else
3853 CFLAGS=
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3857 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3858 if ${ac_cv_prog_cc_c89+:} false; then :
3859 $as_echo_n "(cached) " >&6
3860 else
3861 ac_cv_prog_cc_c89=no
3862 ac_save_CC=$CC
3863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3864 /* end confdefs.h. */
3865 #include <stdarg.h>
3866 #include <stdio.h>
3867 struct stat;
3868 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3869 struct buf { int x; };
3870 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3871 static char *e (p, i)
3872 char **p;
3873 int i;
3875 return p[i];
3877 static char *f (char * (*g) (char **, int), char **p, ...)
3879 char *s;
3880 va_list v;
3881 va_start (v,p);
3882 s = g (p, va_arg (v,int));
3883 va_end (v);
3884 return s;
3887 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3888 function prototypes and stuff, but not '\xHH' hex character constants.
3889 These don't provoke an error unfortunately, instead are silently treated
3890 as 'x'. The following induces an error, until -std is added to get
3891 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3892 array size at least. It's necessary to write '\x00'==0 to get something
3893 that's true only with -std. */
3894 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3896 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3897 inside strings and character constants. */
3898 #define FOO(x) 'x'
3899 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3901 int test (int i, double x);
3902 struct s1 {int (*f) (int a);};
3903 struct s2 {int (*f) (double a);};
3904 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3905 int argc;
3906 char **argv;
3908 main ()
3910 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3912 return 0;
3914 _ACEOF
3915 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3916 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3918 CC="$ac_save_CC $ac_arg"
3919 if ac_fn_c_try_compile "$LINENO"; then :
3920 ac_cv_prog_cc_c89=$ac_arg
3922 rm -f core conftest.err conftest.$ac_objext
3923 test "x$ac_cv_prog_cc_c89" != "xno" && break
3924 done
3925 rm -f conftest.$ac_ext
3926 CC=$ac_save_CC
3929 # AC_CACHE_VAL
3930 case "x$ac_cv_prog_cc_c89" in
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3933 $as_echo "none needed" >&6; } ;;
3934 xno)
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3936 $as_echo "unsupported" >&6; } ;;
3938 CC="$CC $ac_cv_prog_cc_c89"
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3940 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3941 esac
3942 if test "x$ac_cv_prog_cc_c89" != xno; then :
3946 ac_ext=c
3947 ac_cpp='$CPP $CPPFLAGS'
3948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3952 ac_ext=c
3953 ac_cpp='$CPP $CPPFLAGS'
3954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3958 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3959 if ${am_cv_prog_cc_c_o+:} false; then :
3960 $as_echo_n "(cached) " >&6
3961 else
3962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3963 /* end confdefs.h. */
3966 main ()
3970 return 0;
3972 _ACEOF
3973 # Make sure it works both with $CC and with simple cc.
3974 # Following AC_PROG_CC_C_O, we do the test twice because some
3975 # compilers refuse to overwrite an existing .o file with -o,
3976 # though they will create one.
3977 am_cv_prog_cc_c_o=yes
3978 for am_i in 1 2; do
3979 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3980 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3981 ac_status=$?
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); } \
3984 && test -f conftest2.$ac_objext; then
3985 : OK
3986 else
3987 am_cv_prog_cc_c_o=no
3988 break
3990 done
3991 rm -f core conftest*
3992 unset am_i
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3995 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3996 if test "$am_cv_prog_cc_c_o" != yes; then
3997 # Losing compiler, so override with the script.
3998 # FIXME: It is wrong to rewrite CC.
3999 # But if we don't then we get into trouble of one sort or another.
4000 # A longer-term fix would be to have automake use am__CC in this case,
4001 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4002 CC="$am_aux_dir/compile $CC"
4004 ac_ext=c
4005 ac_cpp='$CPP $CPPFLAGS'
4006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4011 depcc="$CC" am_compiler_list=
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4014 $as_echo_n "checking dependency style of $depcc... " >&6; }
4015 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4016 $as_echo_n "(cached) " >&6
4017 else
4018 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4019 # We make a subdir and do the tests there. Otherwise we can end up
4020 # making bogus files that we don't know about and never remove. For
4021 # instance it was reported that on HP-UX the gcc test will end up
4022 # making a dummy file named 'D' -- because '-MD' means "put the output
4023 # in D".
4024 rm -rf conftest.dir
4025 mkdir conftest.dir
4026 # Copy depcomp to subdir because otherwise we won't find it if we're
4027 # using a relative directory.
4028 cp "$am_depcomp" conftest.dir
4029 cd conftest.dir
4030 # We will build objects and dependencies in a subdirectory because
4031 # it helps to detect inapplicable dependency modes. For instance
4032 # both Tru64's cc and ICC support -MD to output dependencies as a
4033 # side effect of compilation, but ICC will put the dependencies in
4034 # the current directory while Tru64 will put them in the object
4035 # directory.
4036 mkdir sub
4038 am_cv_CC_dependencies_compiler_type=none
4039 if test "$am_compiler_list" = ""; then
4040 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4042 am__universal=false
4043 case " $depcc " in #(
4044 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4045 esac
4047 for depmode in $am_compiler_list; do
4048 # Setup a source with many dependencies, because some compilers
4049 # like to wrap large dependency lists on column 80 (with \), and
4050 # we should not choose a depcomp mode which is confused by this.
4052 # We need to recreate these files for each test, as the compiler may
4053 # overwrite some of them when testing with obscure command lines.
4054 # This happens at least with the AIX C compiler.
4055 : > sub/conftest.c
4056 for i in 1 2 3 4 5 6; do
4057 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4058 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4059 # Solaris 10 /bin/sh.
4060 echo '/* dummy */' > sub/conftst$i.h
4061 done
4062 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4064 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4065 # mode. It turns out that the SunPro C++ compiler does not properly
4066 # handle '-M -o', and we need to detect this. Also, some Intel
4067 # versions had trouble with output in subdirs.
4068 am__obj=sub/conftest.${OBJEXT-o}
4069 am__minus_obj="-o $am__obj"
4070 case $depmode in
4071 gcc)
4072 # This depmode causes a compiler race in universal mode.
4073 test "$am__universal" = false || continue
4075 nosideeffect)
4076 # After this tag, mechanisms are not by side-effect, so they'll
4077 # only be used when explicitly requested.
4078 if test "x$enable_dependency_tracking" = xyes; then
4079 continue
4080 else
4081 break
4084 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4085 # This compiler won't grok '-c -o', but also, the minuso test has
4086 # not run yet. These depmodes are late enough in the game, and
4087 # so weak that their functioning should not be impacted.
4088 am__obj=conftest.${OBJEXT-o}
4089 am__minus_obj=
4091 none) break ;;
4092 esac
4093 if depmode=$depmode \
4094 source=sub/conftest.c object=$am__obj \
4095 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4096 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4097 >/dev/null 2>conftest.err &&
4098 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4099 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4100 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4101 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4102 # icc doesn't choke on unknown options, it will just issue warnings
4103 # or remarks (even with -Werror). So we grep stderr for any message
4104 # that says an option was ignored or not supported.
4105 # When given -MP, icc 7.0 and 7.1 complain thusly:
4106 # icc: Command line warning: ignoring option '-M'; no argument required
4107 # The diagnosis changed in icc 8.0:
4108 # icc: Command line remark: option '-MP' not supported
4109 if (grep 'ignoring option' conftest.err ||
4110 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4111 am_cv_CC_dependencies_compiler_type=$depmode
4112 break
4115 done
4117 cd ..
4118 rm -rf conftest.dir
4119 else
4120 am_cv_CC_dependencies_compiler_type=none
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4125 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4126 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4129 test "x$enable_dependency_tracking" != xno \
4130 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4131 am__fastdepCC_TRUE=
4132 am__fastdepCC_FALSE='#'
4133 else
4134 am__fastdepCC_TRUE='#'
4135 am__fastdepCC_FALSE=
4140 ac_ext=c
4141 ac_cpp='$CPP $CPPFLAGS'
4142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4146 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4147 # On Suns, sometimes $CPP names a directory.
4148 if test -n "$CPP" && test -d "$CPP"; then
4149 CPP=
4151 if test -z "$CPP"; then
4152 if ${ac_cv_prog_CPP+:} false; then :
4153 $as_echo_n "(cached) " >&6
4154 else
4155 # Double quotes because CPP needs to be expanded
4156 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4158 ac_preproc_ok=false
4159 for ac_c_preproc_warn_flag in '' yes
4161 # Use a header file that comes with gcc, so configuring glibc
4162 # with a fresh cross-compiler works.
4163 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4164 # <limits.h> exists even on freestanding compilers.
4165 # On the NeXT, cc -E runs the code through the compiler's parser,
4166 # not just through cpp. "Syntax error" is here to catch this case.
4167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4168 /* end confdefs.h. */
4169 #ifdef __STDC__
4170 # include <limits.h>
4171 #else
4172 # include <assert.h>
4173 #endif
4174 Syntax error
4175 _ACEOF
4176 if ac_fn_c_try_cpp "$LINENO"; then :
4178 else
4179 # Broken: fails on valid input.
4180 continue
4182 rm -f conftest.err conftest.i conftest.$ac_ext
4184 # OK, works on sane cases. Now check whether nonexistent headers
4185 # can be detected and how.
4186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4187 /* end confdefs.h. */
4188 #include <ac_nonexistent.h>
4189 _ACEOF
4190 if ac_fn_c_try_cpp "$LINENO"; then :
4191 # Broken: success on invalid input.
4192 continue
4193 else
4194 # Passes both tests.
4195 ac_preproc_ok=:
4196 break
4198 rm -f conftest.err conftest.i conftest.$ac_ext
4200 done
4201 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4202 rm -f conftest.i conftest.err conftest.$ac_ext
4203 if $ac_preproc_ok; then :
4204 break
4207 done
4208 ac_cv_prog_CPP=$CPP
4211 CPP=$ac_cv_prog_CPP
4212 else
4213 ac_cv_prog_CPP=$CPP
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4216 $as_echo "$CPP" >&6; }
4217 ac_preproc_ok=false
4218 for ac_c_preproc_warn_flag in '' yes
4220 # Use a header file that comes with gcc, so configuring glibc
4221 # with a fresh cross-compiler works.
4222 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4223 # <limits.h> exists even on freestanding compilers.
4224 # On the NeXT, cc -E runs the code through the compiler's parser,
4225 # not just through cpp. "Syntax error" is here to catch this case.
4226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4227 /* end confdefs.h. */
4228 #ifdef __STDC__
4229 # include <limits.h>
4230 #else
4231 # include <assert.h>
4232 #endif
4233 Syntax error
4234 _ACEOF
4235 if ac_fn_c_try_cpp "$LINENO"; then :
4237 else
4238 # Broken: fails on valid input.
4239 continue
4241 rm -f conftest.err conftest.i conftest.$ac_ext
4243 # OK, works on sane cases. Now check whether nonexistent headers
4244 # can be detected and how.
4245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4246 /* end confdefs.h. */
4247 #include <ac_nonexistent.h>
4248 _ACEOF
4249 if ac_fn_c_try_cpp "$LINENO"; then :
4250 # Broken: success on invalid input.
4251 continue
4252 else
4253 # Passes both tests.
4254 ac_preproc_ok=:
4255 break
4257 rm -f conftest.err conftest.i conftest.$ac_ext
4259 done
4260 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4261 rm -f conftest.i conftest.err conftest.$ac_ext
4262 if $ac_preproc_ok; then :
4264 else
4265 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4266 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4267 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4268 See \`config.log' for more details" "$LINENO" 5; }
4271 ac_ext=c
4272 ac_cpp='$CPP $CPPFLAGS'
4273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4279 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4280 if ${ac_cv_path_GREP+:} false; then :
4281 $as_echo_n "(cached) " >&6
4282 else
4283 if test -z "$GREP"; then
4284 ac_path_GREP_found=false
4285 # Loop through the user's path and test for each of PROGNAME-LIST
4286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4289 IFS=$as_save_IFS
4290 test -z "$as_dir" && as_dir=.
4291 for ac_prog in grep ggrep; do
4292 for ac_exec_ext in '' $ac_executable_extensions; do
4293 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4294 as_fn_executable_p "$ac_path_GREP" || continue
4295 # Check for GNU ac_path_GREP and select it if it is found.
4296 # Check for GNU $ac_path_GREP
4297 case `"$ac_path_GREP" --version 2>&1` in
4298 *GNU*)
4299 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4301 ac_count=0
4302 $as_echo_n 0123456789 >"conftest.in"
4303 while :
4305 cat "conftest.in" "conftest.in" >"conftest.tmp"
4306 mv "conftest.tmp" "conftest.in"
4307 cp "conftest.in" "conftest.nl"
4308 $as_echo 'GREP' >> "conftest.nl"
4309 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4310 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4311 as_fn_arith $ac_count + 1 && ac_count=$as_val
4312 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4313 # Best one so far, save it but keep looking for a better one
4314 ac_cv_path_GREP="$ac_path_GREP"
4315 ac_path_GREP_max=$ac_count
4317 # 10*(2^10) chars as input seems more than enough
4318 test $ac_count -gt 10 && break
4319 done
4320 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4321 esac
4323 $ac_path_GREP_found && break 3
4324 done
4325 done
4326 done
4327 IFS=$as_save_IFS
4328 if test -z "$ac_cv_path_GREP"; then
4329 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4331 else
4332 ac_cv_path_GREP=$GREP
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4337 $as_echo "$ac_cv_path_GREP" >&6; }
4338 GREP="$ac_cv_path_GREP"
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4342 $as_echo_n "checking for egrep... " >&6; }
4343 if ${ac_cv_path_EGREP+:} false; then :
4344 $as_echo_n "(cached) " >&6
4345 else
4346 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4347 then ac_cv_path_EGREP="$GREP -E"
4348 else
4349 if test -z "$EGREP"; then
4350 ac_path_EGREP_found=false
4351 # Loop through the user's path and test for each of PROGNAME-LIST
4352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4355 IFS=$as_save_IFS
4356 test -z "$as_dir" && as_dir=.
4357 for ac_prog in egrep; do
4358 for ac_exec_ext in '' $ac_executable_extensions; do
4359 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4360 as_fn_executable_p "$ac_path_EGREP" || continue
4361 # Check for GNU ac_path_EGREP and select it if it is found.
4362 # Check for GNU $ac_path_EGREP
4363 case `"$ac_path_EGREP" --version 2>&1` in
4364 *GNU*)
4365 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4367 ac_count=0
4368 $as_echo_n 0123456789 >"conftest.in"
4369 while :
4371 cat "conftest.in" "conftest.in" >"conftest.tmp"
4372 mv "conftest.tmp" "conftest.in"
4373 cp "conftest.in" "conftest.nl"
4374 $as_echo 'EGREP' >> "conftest.nl"
4375 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4376 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4377 as_fn_arith $ac_count + 1 && ac_count=$as_val
4378 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4379 # Best one so far, save it but keep looking for a better one
4380 ac_cv_path_EGREP="$ac_path_EGREP"
4381 ac_path_EGREP_max=$ac_count
4383 # 10*(2^10) chars as input seems more than enough
4384 test $ac_count -gt 10 && break
4385 done
4386 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4387 esac
4389 $ac_path_EGREP_found && break 3
4390 done
4391 done
4392 done
4393 IFS=$as_save_IFS
4394 if test -z "$ac_cv_path_EGREP"; then
4395 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4397 else
4398 ac_cv_path_EGREP=$EGREP
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4404 $as_echo "$ac_cv_path_EGREP" >&6; }
4405 EGREP="$ac_cv_path_EGREP"
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4409 $as_echo_n "checking for ANSI C header files... " >&6; }
4410 if ${ac_cv_header_stdc+:} false; then :
4411 $as_echo_n "(cached) " >&6
4412 else
4413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4414 /* end confdefs.h. */
4415 #include <stdlib.h>
4416 #include <stdarg.h>
4417 #include <string.h>
4418 #include <float.h>
4421 main ()
4425 return 0;
4427 _ACEOF
4428 if ac_fn_c_try_compile "$LINENO"; then :
4429 ac_cv_header_stdc=yes
4430 else
4431 ac_cv_header_stdc=no
4433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4435 if test $ac_cv_header_stdc = yes; then
4436 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4438 /* end confdefs.h. */
4439 #include <string.h>
4441 _ACEOF
4442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4443 $EGREP "memchr" >/dev/null 2>&1; then :
4445 else
4446 ac_cv_header_stdc=no
4448 rm -f conftest*
4452 if test $ac_cv_header_stdc = yes; then
4453 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4455 /* end confdefs.h. */
4456 #include <stdlib.h>
4458 _ACEOF
4459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4460 $EGREP "free" >/dev/null 2>&1; then :
4462 else
4463 ac_cv_header_stdc=no
4465 rm -f conftest*
4469 if test $ac_cv_header_stdc = yes; then
4470 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4471 if test "$cross_compiling" = yes; then :
4473 else
4474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4475 /* end confdefs.h. */
4476 #include <ctype.h>
4477 #include <stdlib.h>
4478 #if ((' ' & 0x0FF) == 0x020)
4479 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4480 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4481 #else
4482 # define ISLOWER(c) \
4483 (('a' <= (c) && (c) <= 'i') \
4484 || ('j' <= (c) && (c) <= 'r') \
4485 || ('s' <= (c) && (c) <= 'z'))
4486 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4487 #endif
4489 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4491 main ()
4493 int i;
4494 for (i = 0; i < 256; i++)
4495 if (XOR (islower (i), ISLOWER (i))
4496 || toupper (i) != TOUPPER (i))
4497 return 2;
4498 return 0;
4500 _ACEOF
4501 if ac_fn_c_try_run "$LINENO"; then :
4503 else
4504 ac_cv_header_stdc=no
4506 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4507 conftest.$ac_objext conftest.beam conftest.$ac_ext
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4513 $as_echo "$ac_cv_header_stdc" >&6; }
4514 if test $ac_cv_header_stdc = yes; then
4516 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4520 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4521 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4522 inttypes.h stdint.h unistd.h
4523 do :
4524 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4525 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4527 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4528 cat >>confdefs.h <<_ACEOF
4529 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4530 _ACEOF
4534 done
4538 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4539 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4540 MINIX=yes
4541 else
4542 MINIX=
4546 if test "$MINIX" = yes; then
4548 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4551 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4554 $as_echo "#define _MINIX 1" >>confdefs.h
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4560 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4561 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4562 $as_echo_n "(cached) " >&6
4563 else
4564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4565 /* end confdefs.h. */
4567 # define __EXTENSIONS__ 1
4568 $ac_includes_default
4570 main ()
4574 return 0;
4576 _ACEOF
4577 if ac_fn_c_try_compile "$LINENO"; then :
4578 ac_cv_safe_to_define___extensions__=yes
4579 else
4580 ac_cv_safe_to_define___extensions__=no
4582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4585 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4586 test $ac_cv_safe_to_define___extensions__ = yes &&
4587 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4589 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4591 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4593 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4595 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4599 # See if makeinfo has been installed and is modern enough
4600 # that we can use it.
4602 # Extract the first word of "makeinfo", so it can be a program name with args.
4603 set dummy makeinfo; ac_word=$2
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4605 $as_echo_n "checking for $ac_word... " >&6; }
4606 if ${ac_cv_prog_MAKEINFO+:} false; then :
4607 $as_echo_n "(cached) " >&6
4608 else
4609 if test -n "$MAKEINFO"; then
4610 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4611 else
4612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613 for as_dir in $PATH
4615 IFS=$as_save_IFS
4616 test -z "$as_dir" && as_dir=.
4617 for ac_exec_ext in '' $ac_executable_extensions; do
4618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4619 ac_cv_prog_MAKEINFO="makeinfo"
4620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4621 break 2
4623 done
4624 done
4625 IFS=$as_save_IFS
4629 MAKEINFO=$ac_cv_prog_MAKEINFO
4630 if test -n "$MAKEINFO"; then
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4632 $as_echo "$MAKEINFO" >&6; }
4633 else
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4635 $as_echo "no" >&6; }
4639 if test -n "$MAKEINFO"; then
4640 # Found it, now check the version.
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4642 $as_echo_n "checking for modern makeinfo... " >&6; }
4643 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
4644 $as_echo_n "(cached) " >&6
4645 else
4646 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4647 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4649 case $ac_prog_version in
4650 '') gcc_cv_prog_makeinfo_modern=no;;
4651 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
4652 *) gcc_cv_prog_makeinfo_modern=no;;
4653 esac
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4657 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4658 else
4659 gcc_cv_prog_makeinfo_modern=no
4661 if test $gcc_cv_prog_makeinfo_modern = no; then
4662 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4665 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4666 BUILD_INFO_TRUE=
4667 BUILD_INFO_FALSE='#'
4668 else
4669 BUILD_INFO_TRUE='#'
4670 BUILD_INFO_FALSE=
4676 # Check whether --with-bugurl was given.
4677 if test "${with_bugurl+set}" = set; then :
4678 withval=$with_bugurl; case "$withval" in
4679 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
4680 no) BUGURL=
4682 *) BUGURL="$withval"
4684 esac
4685 else
4686 BUGURL="https://gcc.gnu.org/bugs/"
4690 case ${BUGURL} in
4692 REPORT_BUGS_TO=
4693 REPORT_BUGS_TEXI=
4696 REPORT_BUGS_TO="<$BUGURL>"
4697 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
4699 esac;
4704 # Configure libtool
4705 case `pwd` in
4706 *\ * | *\ *)
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4708 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4709 esac
4713 macro_version='2.2.7a'
4714 macro_revision='1.3134'
4728 ltmain="$ac_aux_dir/ltmain.sh"
4730 # Backslashify metacharacters that are still active within
4731 # double-quoted strings.
4732 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4734 # Same as above, but do not quote variable references.
4735 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4737 # Sed substitution to delay expansion of an escaped shell variable in a
4738 # double_quote_subst'ed string.
4739 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4741 # Sed substitution to delay expansion of an escaped single quote.
4742 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4744 # Sed substitution to avoid accidental globbing in evaled expressions
4745 no_glob_subst='s/\*/\\\*/g'
4747 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4748 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4749 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4752 $as_echo_n "checking how to print strings... " >&6; }
4753 # Test print first, because it will be a builtin if present.
4754 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4755 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4756 ECHO='print -r --'
4757 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4758 ECHO='printf %s\n'
4759 else
4760 # Use this function as a fallback that always works.
4761 func_fallback_echo ()
4763 eval 'cat <<_LTECHO_EOF
4765 _LTECHO_EOF'
4767 ECHO='func_fallback_echo'
4770 # func_echo_all arg...
4771 # Invoke $ECHO with all args, space-separated.
4772 func_echo_all ()
4774 $ECHO ""
4777 case "$ECHO" in
4778 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4779 $as_echo "printf" >&6; } ;;
4780 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4781 $as_echo "print -r" >&6; } ;;
4782 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4783 $as_echo "cat" >&6; } ;;
4784 esac
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4800 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4801 if ${ac_cv_path_SED+:} false; then :
4802 $as_echo_n "(cached) " >&6
4803 else
4804 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4805 for ac_i in 1 2 3 4 5 6 7; do
4806 ac_script="$ac_script$as_nl$ac_script"
4807 done
4808 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4809 { ac_script=; unset ac_script;}
4810 if test -z "$SED"; then
4811 ac_path_SED_found=false
4812 # Loop through the user's path and test for each of PROGNAME-LIST
4813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4814 for as_dir in $PATH
4816 IFS=$as_save_IFS
4817 test -z "$as_dir" && as_dir=.
4818 for ac_prog in sed gsed; do
4819 for ac_exec_ext in '' $ac_executable_extensions; do
4820 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4821 as_fn_executable_p "$ac_path_SED" || continue
4822 # Check for GNU ac_path_SED and select it if it is found.
4823 # Check for GNU $ac_path_SED
4824 case `"$ac_path_SED" --version 2>&1` in
4825 *GNU*)
4826 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4828 ac_count=0
4829 $as_echo_n 0123456789 >"conftest.in"
4830 while :
4832 cat "conftest.in" "conftest.in" >"conftest.tmp"
4833 mv "conftest.tmp" "conftest.in"
4834 cp "conftest.in" "conftest.nl"
4835 $as_echo '' >> "conftest.nl"
4836 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4837 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4838 as_fn_arith $ac_count + 1 && ac_count=$as_val
4839 if test $ac_count -gt ${ac_path_SED_max-0}; then
4840 # Best one so far, save it but keep looking for a better one
4841 ac_cv_path_SED="$ac_path_SED"
4842 ac_path_SED_max=$ac_count
4844 # 10*(2^10) chars as input seems more than enough
4845 test $ac_count -gt 10 && break
4846 done
4847 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4848 esac
4850 $ac_path_SED_found && break 3
4851 done
4852 done
4853 done
4854 IFS=$as_save_IFS
4855 if test -z "$ac_cv_path_SED"; then
4856 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4858 else
4859 ac_cv_path_SED=$SED
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4864 $as_echo "$ac_cv_path_SED" >&6; }
4865 SED="$ac_cv_path_SED"
4866 rm -f conftest.sed
4868 test -z "$SED" && SED=sed
4869 Xsed="$SED -e 1s/^X//"
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4882 $as_echo_n "checking for fgrep... " >&6; }
4883 if ${ac_cv_path_FGREP+:} false; then :
4884 $as_echo_n "(cached) " >&6
4885 else
4886 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4887 then ac_cv_path_FGREP="$GREP -F"
4888 else
4889 if test -z "$FGREP"; then
4890 ac_path_FGREP_found=false
4891 # Loop through the user's path and test for each of PROGNAME-LIST
4892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4893 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4895 IFS=$as_save_IFS
4896 test -z "$as_dir" && as_dir=.
4897 for ac_prog in fgrep; do
4898 for ac_exec_ext in '' $ac_executable_extensions; do
4899 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4900 as_fn_executable_p "$ac_path_FGREP" || continue
4901 # Check for GNU ac_path_FGREP and select it if it is found.
4902 # Check for GNU $ac_path_FGREP
4903 case `"$ac_path_FGREP" --version 2>&1` in
4904 *GNU*)
4905 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4907 ac_count=0
4908 $as_echo_n 0123456789 >"conftest.in"
4909 while :
4911 cat "conftest.in" "conftest.in" >"conftest.tmp"
4912 mv "conftest.tmp" "conftest.in"
4913 cp "conftest.in" "conftest.nl"
4914 $as_echo 'FGREP' >> "conftest.nl"
4915 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4916 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4917 as_fn_arith $ac_count + 1 && ac_count=$as_val
4918 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4919 # Best one so far, save it but keep looking for a better one
4920 ac_cv_path_FGREP="$ac_path_FGREP"
4921 ac_path_FGREP_max=$ac_count
4923 # 10*(2^10) chars as input seems more than enough
4924 test $ac_count -gt 10 && break
4925 done
4926 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4927 esac
4929 $ac_path_FGREP_found && break 3
4930 done
4931 done
4932 done
4933 IFS=$as_save_IFS
4934 if test -z "$ac_cv_path_FGREP"; then
4935 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4937 else
4938 ac_cv_path_FGREP=$FGREP
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4944 $as_echo "$ac_cv_path_FGREP" >&6; }
4945 FGREP="$ac_cv_path_FGREP"
4948 test -z "$GREP" && GREP=grep
4968 # Check whether --with-gnu-ld was given.
4969 if test "${with_gnu_ld+set}" = set; then :
4970 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4971 else
4972 with_gnu_ld=no
4975 ac_prog=ld
4976 if test "$GCC" = yes; then
4977 # Check if gcc -print-prog-name=ld gives a path.
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4979 $as_echo_n "checking for ld used by $CC... " >&6; }
4980 case $host in
4981 *-*-mingw*)
4982 # gcc leaves a trailing carriage return which upsets mingw
4983 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4985 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4986 esac
4987 case $ac_prog in
4988 # Accept absolute paths.
4989 [\\/]* | ?:[\\/]*)
4990 re_direlt='/[^/][^/]*/\.\./'
4991 # Canonicalize the pathname of ld
4992 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4993 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4994 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4995 done
4996 test -z "$LD" && LD="$ac_prog"
4999 # If it fails, then pretend we aren't using GCC.
5000 ac_prog=ld
5003 # If it is relative, then search for the first ld in PATH.
5004 with_gnu_ld=unknown
5006 esac
5007 elif test "$with_gnu_ld" = yes; then
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5009 $as_echo_n "checking for GNU ld... " >&6; }
5010 else
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5012 $as_echo_n "checking for non-GNU ld... " >&6; }
5014 if ${lt_cv_path_LD+:} false; then :
5015 $as_echo_n "(cached) " >&6
5016 else
5017 if test -z "$LD"; then
5018 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5019 for ac_dir in $PATH; do
5020 IFS="$lt_save_ifs"
5021 test -z "$ac_dir" && ac_dir=.
5022 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5023 lt_cv_path_LD="$ac_dir/$ac_prog"
5024 # Check to see if the program is GNU ld. I'd rather use --version,
5025 # but apparently some variants of GNU ld only accept -v.
5026 # Break only if it was the GNU/non-GNU ld that we prefer.
5027 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5028 *GNU* | *'with BFD'*)
5029 test "$with_gnu_ld" != no && break
5032 test "$with_gnu_ld" != yes && break
5034 esac
5036 done
5037 IFS="$lt_save_ifs"
5038 else
5039 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5043 LD="$lt_cv_path_LD"
5044 if test -n "$LD"; then
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5046 $as_echo "$LD" >&6; }
5047 else
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5049 $as_echo "no" >&6; }
5051 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5053 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5054 if ${lt_cv_prog_gnu_ld+:} false; then :
5055 $as_echo_n "(cached) " >&6
5056 else
5057 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5058 case `$LD -v 2>&1 </dev/null` in
5059 *GNU* | *'with BFD'*)
5060 lt_cv_prog_gnu_ld=yes
5063 lt_cv_prog_gnu_ld=no
5065 esac
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5068 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5069 with_gnu_ld=$lt_cv_prog_gnu_ld
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5080 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5081 if ${lt_cv_path_NM+:} false; then :
5082 $as_echo_n "(cached) " >&6
5083 else
5084 if test -n "$NM"; then
5085 # Let the user override the test.
5086 lt_cv_path_NM="$NM"
5087 else
5088 lt_nm_to_check="${ac_tool_prefix}nm"
5089 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5090 lt_nm_to_check="$lt_nm_to_check nm"
5092 for lt_tmp_nm in $lt_nm_to_check; do
5093 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5094 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5095 IFS="$lt_save_ifs"
5096 test -z "$ac_dir" && ac_dir=.
5097 tmp_nm="$ac_dir/$lt_tmp_nm"
5098 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5099 # Check to see if the nm accepts a BSD-compat flag.
5100 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5101 # nm: unknown option "B" ignored
5102 # Tru64's nm complains that /dev/null is an invalid object file
5103 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5104 */dev/null* | *'Invalid file or object type'*)
5105 lt_cv_path_NM="$tmp_nm -B"
5106 break
5109 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5110 */dev/null*)
5111 lt_cv_path_NM="$tmp_nm -p"
5112 break
5115 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5116 continue # so that we can try to find one that supports BSD flags
5118 esac
5120 esac
5122 done
5123 IFS="$lt_save_ifs"
5124 done
5125 : ${lt_cv_path_NM=no}
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5129 $as_echo "$lt_cv_path_NM" >&6; }
5130 if test "$lt_cv_path_NM" != "no"; then
5131 NM="$lt_cv_path_NM"
5132 else
5133 # Didn't find any BSD compatible name lister, look for dumpbin.
5134 if test -n "$DUMPBIN"; then :
5135 # Let the user override the test.
5136 else
5137 if test -n "$ac_tool_prefix"; then
5138 for ac_prog in dumpbin "link -dump"
5140 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5141 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5143 $as_echo_n "checking for $ac_word... " >&6; }
5144 if ${ac_cv_prog_DUMPBIN+:} false; then :
5145 $as_echo_n "(cached) " >&6
5146 else
5147 if test -n "$DUMPBIN"; then
5148 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5149 else
5150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151 for as_dir in $PATH
5153 IFS=$as_save_IFS
5154 test -z "$as_dir" && as_dir=.
5155 for ac_exec_ext in '' $ac_executable_extensions; do
5156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5157 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5159 break 2
5161 done
5162 done
5163 IFS=$as_save_IFS
5167 DUMPBIN=$ac_cv_prog_DUMPBIN
5168 if test -n "$DUMPBIN"; then
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5170 $as_echo "$DUMPBIN" >&6; }
5171 else
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5173 $as_echo "no" >&6; }
5177 test -n "$DUMPBIN" && break
5178 done
5180 if test -z "$DUMPBIN"; then
5181 ac_ct_DUMPBIN=$DUMPBIN
5182 for ac_prog in dumpbin "link -dump"
5184 # Extract the first word of "$ac_prog", so it can be a program name with args.
5185 set dummy $ac_prog; ac_word=$2
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5187 $as_echo_n "checking for $ac_word... " >&6; }
5188 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5189 $as_echo_n "(cached) " >&6
5190 else
5191 if test -n "$ac_ct_DUMPBIN"; then
5192 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5193 else
5194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195 for as_dir in $PATH
5197 IFS=$as_save_IFS
5198 test -z "$as_dir" && as_dir=.
5199 for ac_exec_ext in '' $ac_executable_extensions; do
5200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5201 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5203 break 2
5205 done
5206 done
5207 IFS=$as_save_IFS
5211 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5212 if test -n "$ac_ct_DUMPBIN"; then
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5214 $as_echo "$ac_ct_DUMPBIN" >&6; }
5215 else
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5217 $as_echo "no" >&6; }
5221 test -n "$ac_ct_DUMPBIN" && break
5222 done
5224 if test "x$ac_ct_DUMPBIN" = x; then
5225 DUMPBIN=":"
5226 else
5227 case $cross_compiling:$ac_tool_warned in
5228 yes:)
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5231 ac_tool_warned=yes ;;
5232 esac
5233 DUMPBIN=$ac_ct_DUMPBIN
5237 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5238 *COFF*)
5239 DUMPBIN="$DUMPBIN -symbols"
5242 DUMPBIN=:
5244 esac
5247 if test "$DUMPBIN" != ":"; then
5248 NM="$DUMPBIN"
5251 test -z "$NM" && NM=nm
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5259 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5260 if ${lt_cv_nm_interface+:} false; then :
5261 $as_echo_n "(cached) " >&6
5262 else
5263 lt_cv_nm_interface="BSD nm"
5264 echo "int some_variable = 0;" > conftest.$ac_ext
5265 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5266 (eval "$ac_compile" 2>conftest.err)
5267 cat conftest.err >&5
5268 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5269 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5270 cat conftest.err >&5
5271 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5272 cat conftest.out >&5
5273 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5274 lt_cv_nm_interface="MS dumpbin"
5276 rm -f conftest*
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5279 $as_echo "$lt_cv_nm_interface" >&6; }
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5282 $as_echo_n "checking whether ln -s works... " >&6; }
5283 LN_S=$as_ln_s
5284 if test "$LN_S" = "ln -s"; then
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5286 $as_echo "yes" >&6; }
5287 else
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5289 $as_echo "no, using $LN_S" >&6; }
5292 # find the maximum length of command line arguments
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5294 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5295 if ${lt_cv_sys_max_cmd_len+:} false; then :
5296 $as_echo_n "(cached) " >&6
5297 else
5299 teststring="ABCD"
5301 case $build_os in
5302 msdosdjgpp*)
5303 # On DJGPP, this test can blow up pretty badly due to problems in libc
5304 # (any single argument exceeding 2000 bytes causes a buffer overrun
5305 # during glob expansion). Even if it were fixed, the result of this
5306 # check would be larger than it should be.
5307 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5310 gnu*)
5311 # Under GNU Hurd, this test is not required because there is
5312 # no limit to the length of command line arguments.
5313 # Libtool will interpret -1 as no limit whatsoever
5314 lt_cv_sys_max_cmd_len=-1;
5317 cygwin* | mingw* | cegcc*)
5318 # On Win9x/ME, this test blows up -- it succeeds, but takes
5319 # about 5 minutes as the teststring grows exponentially.
5320 # Worse, since 9x/ME are not pre-emptively multitasking,
5321 # you end up with a "frozen" computer, even though with patience
5322 # the test eventually succeeds (with a max line length of 256k).
5323 # Instead, let's just punt: use the minimum linelength reported by
5324 # all of the supported platforms: 8192 (on NT/2K/XP).
5325 lt_cv_sys_max_cmd_len=8192;
5328 mint*)
5329 # On MiNT this can take a long time and run out of memory.
5330 lt_cv_sys_max_cmd_len=8192;
5333 amigaos*)
5334 # On AmigaOS with pdksh, this test takes hours, literally.
5335 # So we just punt and use a minimum line length of 8192.
5336 lt_cv_sys_max_cmd_len=8192;
5339 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5340 # This has been around since 386BSD, at least. Likely further.
5341 if test -x /sbin/sysctl; then
5342 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5343 elif test -x /usr/sbin/sysctl; then
5344 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5345 else
5346 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5348 # And add a safety zone
5349 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5350 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5353 interix*)
5354 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5355 lt_cv_sys_max_cmd_len=196608
5358 osf*)
5359 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5360 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5361 # nice to cause kernel panics so lets avoid the loop below.
5362 # First set a reasonable default.
5363 lt_cv_sys_max_cmd_len=16384
5365 if test -x /sbin/sysconfig; then
5366 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5367 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5368 esac
5371 sco3.2v5*)
5372 lt_cv_sys_max_cmd_len=102400
5374 sysv5* | sco5v6* | sysv4.2uw2*)
5375 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5376 if test -n "$kargmax"; then
5377 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5378 else
5379 lt_cv_sys_max_cmd_len=32768
5383 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5384 if test -n "$lt_cv_sys_max_cmd_len"; then
5385 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5386 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5387 else
5388 # Make teststring a little bigger before we do anything with it.
5389 # a 1K string should be a reasonable start.
5390 for i in 1 2 3 4 5 6 7 8 ; do
5391 teststring=$teststring$teststring
5392 done
5393 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5394 # If test is not a shell built-in, we'll probably end up computing a
5395 # maximum length that is only half of the actual maximum length, but
5396 # we can't tell.
5397 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5398 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5399 test $i != 17 # 1/2 MB should be enough
5401 i=`expr $i + 1`
5402 teststring=$teststring$teststring
5403 done
5404 # Only check the string length outside the loop.
5405 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5406 teststring=
5407 # Add a significant safety factor because C++ compilers can tack on
5408 # massive amounts of additional arguments before passing them to the
5409 # linker. It appears as though 1/2 is a usable value.
5410 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5413 esac
5417 if test -n $lt_cv_sys_max_cmd_len ; then
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5419 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5420 else
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5422 $as_echo "none" >&6; }
5424 max_cmd_len=$lt_cv_sys_max_cmd_len
5431 : ${CP="cp -f"}
5432 : ${MV="mv -f"}
5433 : ${RM="rm -f"}
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5436 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5437 # Try some XSI features
5438 xsi_shell=no
5439 ( _lt_dummy="a/b/c"
5440 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5441 = c,a/b,, \
5442 && eval 'test $(( 1 + 1 )) -eq 2 \
5443 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5444 && xsi_shell=yes
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5446 $as_echo "$xsi_shell" >&6; }
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5450 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5451 lt_shell_append=no
5452 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5453 >/dev/null 2>&1 \
5454 && lt_shell_append=yes
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5456 $as_echo "$lt_shell_append" >&6; }
5459 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5460 lt_unset=unset
5461 else
5462 lt_unset=false
5469 # test EBCDIC or ASCII
5470 case `echo X|tr X '\101'` in
5471 A) # ASCII based system
5472 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5473 lt_SP2NL='tr \040 \012'
5474 lt_NL2SP='tr \015\012 \040\040'
5476 *) # EBCDIC based system
5477 lt_SP2NL='tr \100 \n'
5478 lt_NL2SP='tr \r\n \100\100'
5480 esac
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5491 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5492 if ${lt_cv_ld_reload_flag+:} false; then :
5493 $as_echo_n "(cached) " >&6
5494 else
5495 lt_cv_ld_reload_flag='-r'
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5498 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5499 reload_flag=$lt_cv_ld_reload_flag
5500 case $reload_flag in
5501 "" | " "*) ;;
5502 *) reload_flag=" $reload_flag" ;;
5503 esac
5504 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5505 case $host_os in
5506 darwin*)
5507 if test "$GCC" = yes; then
5508 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5509 else
5510 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5513 esac
5523 if test -n "$ac_tool_prefix"; then
5524 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5525 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5527 $as_echo_n "checking for $ac_word... " >&6; }
5528 if ${ac_cv_prog_OBJDUMP+:} false; then :
5529 $as_echo_n "(cached) " >&6
5530 else
5531 if test -n "$OBJDUMP"; then
5532 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5533 else
5534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5535 for as_dir in $PATH
5537 IFS=$as_save_IFS
5538 test -z "$as_dir" && as_dir=.
5539 for ac_exec_ext in '' $ac_executable_extensions; do
5540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5541 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5543 break 2
5545 done
5546 done
5547 IFS=$as_save_IFS
5551 OBJDUMP=$ac_cv_prog_OBJDUMP
5552 if test -n "$OBJDUMP"; then
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5554 $as_echo "$OBJDUMP" >&6; }
5555 else
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5557 $as_echo "no" >&6; }
5562 if test -z "$ac_cv_prog_OBJDUMP"; then
5563 ac_ct_OBJDUMP=$OBJDUMP
5564 # Extract the first word of "objdump", so it can be a program name with args.
5565 set dummy objdump; ac_word=$2
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5567 $as_echo_n "checking for $ac_word... " >&6; }
5568 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5569 $as_echo_n "(cached) " >&6
5570 else
5571 if test -n "$ac_ct_OBJDUMP"; then
5572 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5573 else
5574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5575 for as_dir in $PATH
5577 IFS=$as_save_IFS
5578 test -z "$as_dir" && as_dir=.
5579 for ac_exec_ext in '' $ac_executable_extensions; do
5580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5581 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5583 break 2
5585 done
5586 done
5587 IFS=$as_save_IFS
5591 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5592 if test -n "$ac_ct_OBJDUMP"; then
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5594 $as_echo "$ac_ct_OBJDUMP" >&6; }
5595 else
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5597 $as_echo "no" >&6; }
5600 if test "x$ac_ct_OBJDUMP" = x; then
5601 OBJDUMP="false"
5602 else
5603 case $cross_compiling:$ac_tool_warned in
5604 yes:)
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5606 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5607 ac_tool_warned=yes ;;
5608 esac
5609 OBJDUMP=$ac_ct_OBJDUMP
5611 else
5612 OBJDUMP="$ac_cv_prog_OBJDUMP"
5615 test -z "$OBJDUMP" && OBJDUMP=objdump
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5626 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5627 if ${lt_cv_deplibs_check_method+:} false; then :
5628 $as_echo_n "(cached) " >&6
5629 else
5630 lt_cv_file_magic_cmd='$MAGIC_CMD'
5631 lt_cv_file_magic_test_file=
5632 lt_cv_deplibs_check_method='unknown'
5633 # Need to set the preceding variable on all platforms that support
5634 # interlibrary dependencies.
5635 # 'none' -- dependencies not supported.
5636 # `unknown' -- same as none, but documents that we really don't know.
5637 # 'pass_all' -- all dependencies passed with no checks.
5638 # 'test_compile' -- check by making test program.
5639 # 'file_magic [[regex]]' -- check by looking for files in library path
5640 # which responds to the $file_magic_cmd with a given extended regex.
5641 # If you have `file' or equivalent on your system and you're not sure
5642 # whether `pass_all' will *always* work, you probably want this one.
5644 case $host_os in
5645 aix[4-9]*)
5646 lt_cv_deplibs_check_method=pass_all
5649 beos*)
5650 lt_cv_deplibs_check_method=pass_all
5653 bsdi[45]*)
5654 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5655 lt_cv_file_magic_cmd='/usr/bin/file -L'
5656 lt_cv_file_magic_test_file=/shlib/libc.so
5659 cygwin*)
5660 # func_win32_libid is a shell function defined in ltmain.sh
5661 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5662 lt_cv_file_magic_cmd='func_win32_libid'
5665 mingw* | pw32*)
5666 # Base MSYS/MinGW do not provide the 'file' command needed by
5667 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5668 # unless we find 'file', for example because we are cross-compiling.
5669 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5670 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5671 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5672 lt_cv_file_magic_cmd='func_win32_libid'
5673 else
5674 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5675 lt_cv_file_magic_cmd='$OBJDUMP -f'
5679 cegcc*)
5680 # use the weaker test based on 'objdump'. See mingw*.
5681 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5682 lt_cv_file_magic_cmd='$OBJDUMP -f'
5685 darwin* | rhapsody*)
5686 lt_cv_deplibs_check_method=pass_all
5689 freebsd* | dragonfly*)
5690 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5691 case $host_cpu in
5692 i*86 )
5693 # Not sure whether the presence of OpenBSD here was a mistake.
5694 # Let's accept both of them until this is cleared up.
5695 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5696 lt_cv_file_magic_cmd=/usr/bin/file
5697 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5699 esac
5700 else
5701 lt_cv_deplibs_check_method=pass_all
5705 gnu*)
5706 lt_cv_deplibs_check_method=pass_all
5709 haiku*)
5710 lt_cv_deplibs_check_method=pass_all
5713 hpux10.20* | hpux11*)
5714 lt_cv_file_magic_cmd=/usr/bin/file
5715 case $host_cpu in
5716 ia64*)
5717 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5718 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5720 hppa*64*)
5721 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]'
5722 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5725 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5726 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5728 esac
5731 interix[3-9]*)
5732 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5733 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5736 irix5* | irix6* | nonstopux*)
5737 case $LD in
5738 *-32|*"-32 ") libmagic=32-bit;;
5739 *-n32|*"-n32 ") libmagic=N32;;
5740 *-64|*"-64 ") libmagic=64-bit;;
5741 *) libmagic=never-match;;
5742 esac
5743 lt_cv_deplibs_check_method=pass_all
5746 # This must be Linux ELF.
5747 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
5748 lt_cv_deplibs_check_method=pass_all
5751 netbsd*)
5752 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5753 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5754 else
5755 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5759 newos6*)
5760 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5761 lt_cv_file_magic_cmd=/usr/bin/file
5762 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5765 *nto* | *qnx*)
5766 lt_cv_deplibs_check_method=pass_all
5769 openbsd*)
5770 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5771 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5772 else
5773 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5777 osf3* | osf4* | osf5*)
5778 lt_cv_deplibs_check_method=pass_all
5781 rdos*)
5782 lt_cv_deplibs_check_method=pass_all
5785 solaris*)
5786 lt_cv_deplibs_check_method=pass_all
5789 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5790 lt_cv_deplibs_check_method=pass_all
5793 sysv4 | sysv4.3*)
5794 case $host_vendor in
5795 motorola)
5796 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]'
5797 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5799 ncr)
5800 lt_cv_deplibs_check_method=pass_all
5802 sequent)
5803 lt_cv_file_magic_cmd='/bin/file'
5804 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5806 sni)
5807 lt_cv_file_magic_cmd='/bin/file'
5808 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5809 lt_cv_file_magic_test_file=/lib/libc.so
5811 siemens)
5812 lt_cv_deplibs_check_method=pass_all
5815 lt_cv_deplibs_check_method=pass_all
5817 esac
5820 tpf*)
5821 lt_cv_deplibs_check_method=pass_all
5823 vxworks*)
5824 # Assume VxWorks cross toolchains are built on Linux, possibly
5825 # as canadian for Windows hosts.
5826 lt_cv_deplibs_check_method=pass_all
5828 esac
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5832 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5833 file_magic_cmd=$lt_cv_file_magic_cmd
5834 deplibs_check_method=$lt_cv_deplibs_check_method
5835 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5848 if test -n "$ac_tool_prefix"; then
5849 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5850 set dummy ${ac_tool_prefix}ar; ac_word=$2
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5852 $as_echo_n "checking for $ac_word... " >&6; }
5853 if ${ac_cv_prog_AR+:} false; then :
5854 $as_echo_n "(cached) " >&6
5855 else
5856 if test -n "$AR"; then
5857 ac_cv_prog_AR="$AR" # Let the user override the test.
5858 else
5859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5860 for as_dir in $PATH
5862 IFS=$as_save_IFS
5863 test -z "$as_dir" && as_dir=.
5864 for ac_exec_ext in '' $ac_executable_extensions; do
5865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5866 ac_cv_prog_AR="${ac_tool_prefix}ar"
5867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5868 break 2
5870 done
5871 done
5872 IFS=$as_save_IFS
5876 AR=$ac_cv_prog_AR
5877 if test -n "$AR"; then
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5879 $as_echo "$AR" >&6; }
5880 else
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5882 $as_echo "no" >&6; }
5887 if test -z "$ac_cv_prog_AR"; then
5888 ac_ct_AR=$AR
5889 # Extract the first word of "ar", so it can be a program name with args.
5890 set dummy ar; ac_word=$2
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5892 $as_echo_n "checking for $ac_word... " >&6; }
5893 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5894 $as_echo_n "(cached) " >&6
5895 else
5896 if test -n "$ac_ct_AR"; then
5897 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5898 else
5899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5900 for as_dir in $PATH
5902 IFS=$as_save_IFS
5903 test -z "$as_dir" && as_dir=.
5904 for ac_exec_ext in '' $ac_executable_extensions; do
5905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5906 ac_cv_prog_ac_ct_AR="ar"
5907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5908 break 2
5910 done
5911 done
5912 IFS=$as_save_IFS
5916 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5917 if test -n "$ac_ct_AR"; then
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5919 $as_echo "$ac_ct_AR" >&6; }
5920 else
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5922 $as_echo "no" >&6; }
5925 if test "x$ac_ct_AR" = x; then
5926 AR="false"
5927 else
5928 case $cross_compiling:$ac_tool_warned in
5929 yes:)
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5932 ac_tool_warned=yes ;;
5933 esac
5934 AR=$ac_ct_AR
5936 else
5937 AR="$ac_cv_prog_AR"
5940 test -z "$AR" && AR=ar
5941 test -z "$AR_FLAGS" && AR_FLAGS=cru
5953 if test -n "$ac_tool_prefix"; then
5954 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5955 set dummy ${ac_tool_prefix}strip; ac_word=$2
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5957 $as_echo_n "checking for $ac_word... " >&6; }
5958 if ${ac_cv_prog_STRIP+:} false; then :
5959 $as_echo_n "(cached) " >&6
5960 else
5961 if test -n "$STRIP"; then
5962 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5963 else
5964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5965 for as_dir in $PATH
5967 IFS=$as_save_IFS
5968 test -z "$as_dir" && as_dir=.
5969 for ac_exec_ext in '' $ac_executable_extensions; do
5970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5971 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5973 break 2
5975 done
5976 done
5977 IFS=$as_save_IFS
5981 STRIP=$ac_cv_prog_STRIP
5982 if test -n "$STRIP"; then
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5984 $as_echo "$STRIP" >&6; }
5985 else
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5987 $as_echo "no" >&6; }
5992 if test -z "$ac_cv_prog_STRIP"; then
5993 ac_ct_STRIP=$STRIP
5994 # Extract the first word of "strip", so it can be a program name with args.
5995 set dummy strip; ac_word=$2
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5997 $as_echo_n "checking for $ac_word... " >&6; }
5998 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5999 $as_echo_n "(cached) " >&6
6000 else
6001 if test -n "$ac_ct_STRIP"; then
6002 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6003 else
6004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6005 for as_dir in $PATH
6007 IFS=$as_save_IFS
6008 test -z "$as_dir" && as_dir=.
6009 for ac_exec_ext in '' $ac_executable_extensions; do
6010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6011 ac_cv_prog_ac_ct_STRIP="strip"
6012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6013 break 2
6015 done
6016 done
6017 IFS=$as_save_IFS
6021 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6022 if test -n "$ac_ct_STRIP"; then
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6024 $as_echo "$ac_ct_STRIP" >&6; }
6025 else
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6027 $as_echo "no" >&6; }
6030 if test "x$ac_ct_STRIP" = x; then
6031 STRIP=":"
6032 else
6033 case $cross_compiling:$ac_tool_warned in
6034 yes:)
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6036 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6037 ac_tool_warned=yes ;;
6038 esac
6039 STRIP=$ac_ct_STRIP
6041 else
6042 STRIP="$ac_cv_prog_STRIP"
6045 test -z "$STRIP" && STRIP=:
6052 if test -n "$ac_tool_prefix"; then
6053 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6054 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6056 $as_echo_n "checking for $ac_word... " >&6; }
6057 if ${ac_cv_prog_RANLIB+:} false; then :
6058 $as_echo_n "(cached) " >&6
6059 else
6060 if test -n "$RANLIB"; then
6061 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6062 else
6063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6064 for as_dir in $PATH
6066 IFS=$as_save_IFS
6067 test -z "$as_dir" && as_dir=.
6068 for ac_exec_ext in '' $ac_executable_extensions; do
6069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6070 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6072 break 2
6074 done
6075 done
6076 IFS=$as_save_IFS
6080 RANLIB=$ac_cv_prog_RANLIB
6081 if test -n "$RANLIB"; then
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6083 $as_echo "$RANLIB" >&6; }
6084 else
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6086 $as_echo "no" >&6; }
6091 if test -z "$ac_cv_prog_RANLIB"; then
6092 ac_ct_RANLIB=$RANLIB
6093 # Extract the first word of "ranlib", so it can be a program name with args.
6094 set dummy ranlib; ac_word=$2
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6096 $as_echo_n "checking for $ac_word... " >&6; }
6097 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6098 $as_echo_n "(cached) " >&6
6099 else
6100 if test -n "$ac_ct_RANLIB"; then
6101 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6102 else
6103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6104 for as_dir in $PATH
6106 IFS=$as_save_IFS
6107 test -z "$as_dir" && as_dir=.
6108 for ac_exec_ext in '' $ac_executable_extensions; do
6109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6110 ac_cv_prog_ac_ct_RANLIB="ranlib"
6111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6112 break 2
6114 done
6115 done
6116 IFS=$as_save_IFS
6120 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6121 if test -n "$ac_ct_RANLIB"; then
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6123 $as_echo "$ac_ct_RANLIB" >&6; }
6124 else
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6126 $as_echo "no" >&6; }
6129 if test "x$ac_ct_RANLIB" = x; then
6130 RANLIB=":"
6131 else
6132 case $cross_compiling:$ac_tool_warned in
6133 yes:)
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6136 ac_tool_warned=yes ;;
6137 esac
6138 RANLIB=$ac_ct_RANLIB
6140 else
6141 RANLIB="$ac_cv_prog_RANLIB"
6144 test -z "$RANLIB" && RANLIB=:
6151 # Determine commands to create old-style static archives.
6152 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6153 old_postinstall_cmds='chmod 644 $oldlib'
6154 old_postuninstall_cmds=
6156 if test -n "$RANLIB"; then
6157 case $host_os in
6158 openbsd*)
6159 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6162 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6164 esac
6165 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6168 case $host_os in
6169 darwin*)
6170 lock_old_archive_extraction=yes ;;
6172 lock_old_archive_extraction=no ;;
6173 esac
6213 # If no C compiler was specified, use CC.
6214 LTCC=${LTCC-"$CC"}
6216 # If no C compiler flags were specified, use CFLAGS.
6217 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6219 # Allow CC to be a program name with arguments.
6220 compiler=$CC
6223 # Check for command to grab the raw symbol name followed by C symbol from nm.
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6225 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6226 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6227 $as_echo_n "(cached) " >&6
6228 else
6230 # These are sane defaults that work on at least a few old systems.
6231 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6233 # Character class describing NM global symbol codes.
6234 symcode='[BCDEGRST]'
6236 # Regexp to match symbols that can be accessed directly from C.
6237 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6239 # Define system-specific variables.
6240 case $host_os in
6241 aix*)
6242 symcode='[BCDT]'
6244 cygwin* | mingw* | pw32* | cegcc*)
6245 symcode='[ABCDGISTW]'
6247 hpux*)
6248 if test "$host_cpu" = ia64; then
6249 symcode='[ABCDEGRST]'
6252 irix* | nonstopux*)
6253 symcode='[BCDEGRST]'
6255 osf*)
6256 symcode='[BCDEGQRST]'
6258 solaris*)
6259 symcode='[BDRT]'
6261 sco3.2v5*)
6262 symcode='[DT]'
6264 sysv4.2uw2*)
6265 symcode='[DT]'
6267 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6268 symcode='[ABDT]'
6270 sysv4)
6271 symcode='[DFNSTU]'
6273 esac
6275 # If we're using GNU nm, then use its standard symbol codes.
6276 case `$NM -V 2>&1` in
6277 *GNU* | *'with BFD'*)
6278 symcode='[ABCDGIRSTW]' ;;
6279 esac
6281 # Transform an extracted symbol line into a proper C declaration.
6282 # Some systems (esp. on ia64) link data and code symbols differently,
6283 # so use this general approach.
6284 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6286 # Transform an extracted symbol line into symbol name and symbol address
6287 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6288 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6290 # Handle CRLF in mingw tool chain
6291 opt_cr=
6292 case $build_os in
6293 mingw*)
6294 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6296 esac
6298 # Try without a prefix underscore, then with it.
6299 for ac_symprfx in "" "_"; do
6301 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6302 symxfrm="\\1 $ac_symprfx\\2 \\2"
6304 # Write the raw and C identifiers.
6305 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6306 # Fake it for dumpbin and say T for any non-static function
6307 # and D for any global variable.
6308 # Also find C++ and __fastcall symbols from MSVC++,
6309 # which start with @ or ?.
6310 lt_cv_sys_global_symbol_pipe="$AWK '"\
6311 " {last_section=section; section=\$ 3};"\
6312 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6313 " \$ 0!~/External *\|/{next};"\
6314 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6315 " {if(hide[section]) next};"\
6316 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6317 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6318 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6319 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6320 " ' prfx=^$ac_symprfx"
6321 else
6322 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6325 # Check to see that the pipe works correctly.
6326 pipe_works=no
6328 rm -f conftest*
6329 cat > conftest.$ac_ext <<_LT_EOF
6330 #ifdef __cplusplus
6331 extern "C" {
6332 #endif
6333 char nm_test_var;
6334 void nm_test_func(void);
6335 void nm_test_func(void){}
6336 #ifdef __cplusplus
6338 #endif
6339 int main(){nm_test_var='a';nm_test_func();return(0);}
6340 _LT_EOF
6342 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6343 (eval $ac_compile) 2>&5
6344 ac_status=$?
6345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6346 test $ac_status = 0; }; then
6347 # Now try to grab the symbols.
6348 nlist=conftest.nm
6349 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6350 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6351 ac_status=$?
6352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6353 test $ac_status = 0; } && test -s "$nlist"; then
6354 # Try sorting and uniquifying the output.
6355 if sort "$nlist" | uniq > "$nlist"T; then
6356 mv -f "$nlist"T "$nlist"
6357 else
6358 rm -f "$nlist"T
6361 # Make sure that we snagged all the symbols we need.
6362 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6363 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6364 cat <<_LT_EOF > conftest.$ac_ext
6365 #ifdef __cplusplus
6366 extern "C" {
6367 #endif
6369 _LT_EOF
6370 # Now generate the symbol file.
6371 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6373 cat <<_LT_EOF >> conftest.$ac_ext
6375 /* The mapping between symbol names and symbols. */
6376 const struct {
6377 const char *name;
6378 void *address;
6380 lt__PROGRAM__LTX_preloaded_symbols[] =
6382 { "@PROGRAM@", (void *) 0 },
6383 _LT_EOF
6384 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6385 cat <<\_LT_EOF >> conftest.$ac_ext
6386 {0, (void *) 0}
6389 /* This works around a problem in FreeBSD linker */
6390 #ifdef FREEBSD_WORKAROUND
6391 static const void *lt_preloaded_setup() {
6392 return lt__PROGRAM__LTX_preloaded_symbols;
6394 #endif
6396 #ifdef __cplusplus
6398 #endif
6399 _LT_EOF
6400 # Now try linking the two files.
6401 mv conftest.$ac_objext conftstm.$ac_objext
6402 lt_save_LIBS="$LIBS"
6403 lt_save_CFLAGS="$CFLAGS"
6404 LIBS="conftstm.$ac_objext"
6405 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6406 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6407 (eval $ac_link) 2>&5
6408 ac_status=$?
6409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6410 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6411 pipe_works=yes
6413 LIBS="$lt_save_LIBS"
6414 CFLAGS="$lt_save_CFLAGS"
6415 else
6416 echo "cannot find nm_test_func in $nlist" >&5
6418 else
6419 echo "cannot find nm_test_var in $nlist" >&5
6421 else
6422 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6424 else
6425 echo "$progname: failed program was:" >&5
6426 cat conftest.$ac_ext >&5
6428 rm -rf conftest* conftst*
6430 # Do not use the global_symbol_pipe unless it works.
6431 if test "$pipe_works" = yes; then
6432 break
6433 else
6434 lt_cv_sys_global_symbol_pipe=
6436 done
6440 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6441 lt_cv_sys_global_symbol_to_cdecl=
6443 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6445 $as_echo "failed" >&6; }
6446 else
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6448 $as_echo "ok" >&6; }
6472 # Check whether --enable-libtool-lock was given.
6473 if test "${enable_libtool_lock+set}" = set; then :
6474 enableval=$enable_libtool_lock;
6477 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6479 # Some flags need to be propagated to the compiler or linker for good
6480 # libtool support.
6481 case $host in
6482 ia64-*-hpux*)
6483 # Find out which ABI we are using.
6484 echo 'int i;' > conftest.$ac_ext
6485 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6486 (eval $ac_compile) 2>&5
6487 ac_status=$?
6488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6489 test $ac_status = 0; }; then
6490 case `/usr/bin/file conftest.$ac_objext` in
6491 *ELF-32*)
6492 HPUX_IA64_MODE="32"
6494 *ELF-64*)
6495 HPUX_IA64_MODE="64"
6497 esac
6499 rm -rf conftest*
6501 *-*-irix6*)
6502 # Find out which ABI we are using.
6503 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6504 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6505 (eval $ac_compile) 2>&5
6506 ac_status=$?
6507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6508 test $ac_status = 0; }; then
6509 if test "$lt_cv_prog_gnu_ld" = yes; then
6510 case `/usr/bin/file conftest.$ac_objext` in
6511 *32-bit*)
6512 LD="${LD-ld} -melf32bsmip"
6514 *N32*)
6515 LD="${LD-ld} -melf32bmipn32"
6517 *64-bit*)
6518 LD="${LD-ld} -melf64bmip"
6520 esac
6521 else
6522 case `/usr/bin/file conftest.$ac_objext` in
6523 *32-bit*)
6524 LD="${LD-ld} -32"
6526 *N32*)
6527 LD="${LD-ld} -n32"
6529 *64-bit*)
6530 LD="${LD-ld} -64"
6532 esac
6535 rm -rf conftest*
6538 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6539 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6540 # Find out which ABI we are using.
6541 echo 'int i;' > conftest.$ac_ext
6542 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6543 (eval $ac_compile) 2>&5
6544 ac_status=$?
6545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6546 test $ac_status = 0; }; then
6547 case `/usr/bin/file conftest.o` in
6548 *32-bit*)
6549 case $host in
6550 x86_64-*kfreebsd*-gnu)
6551 LD="${LD-ld} -m elf_i386_fbsd"
6553 x86_64-*linux*)
6554 case `/usr/bin/file conftest.o` in
6555 *x86-64*)
6556 LD="${LD-ld} -m elf32_x86_64"
6559 LD="${LD-ld} -m elf_i386"
6561 esac
6563 powerpc64le-*linux*)
6564 LD="${LD-ld} -m elf32lppclinux"
6566 powerpc64-*linux*)
6567 LD="${LD-ld} -m elf32ppclinux"
6569 s390x-*linux*)
6570 LD="${LD-ld} -m elf_s390"
6572 sparc64-*linux*)
6573 LD="${LD-ld} -m elf32_sparc"
6575 esac
6577 *64-bit*)
6578 case $host in
6579 x86_64-*kfreebsd*-gnu)
6580 LD="${LD-ld} -m elf_x86_64_fbsd"
6582 x86_64-*linux*)
6583 LD="${LD-ld} -m elf_x86_64"
6585 powerpcle-*linux*)
6586 LD="${LD-ld} -m elf64lppc"
6588 powerpc-*linux*)
6589 LD="${LD-ld} -m elf64ppc"
6591 s390*-*linux*|s390*-*tpf*)
6592 LD="${LD-ld} -m elf64_s390"
6594 sparc*-*linux*)
6595 LD="${LD-ld} -m elf64_sparc"
6597 esac
6599 esac
6601 rm -rf conftest*
6604 *-*-sco3.2v5*)
6605 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6606 SAVE_CFLAGS="$CFLAGS"
6607 CFLAGS="$CFLAGS -belf"
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6609 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6610 if ${lt_cv_cc_needs_belf+:} false; then :
6611 $as_echo_n "(cached) " >&6
6612 else
6613 ac_ext=c
6614 ac_cpp='$CPP $CPPFLAGS'
6615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6619 if test x$gcc_no_link = xyes; then
6620 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6623 /* end confdefs.h. */
6626 main ()
6630 return 0;
6632 _ACEOF
6633 if ac_fn_c_try_link "$LINENO"; then :
6634 lt_cv_cc_needs_belf=yes
6635 else
6636 lt_cv_cc_needs_belf=no
6638 rm -f core conftest.err conftest.$ac_objext \
6639 conftest$ac_exeext conftest.$ac_ext
6640 ac_ext=c
6641 ac_cpp='$CPP $CPPFLAGS'
6642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6648 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6649 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6650 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6651 CFLAGS="$SAVE_CFLAGS"
6654 sparc*-*solaris*)
6655 # Find out which ABI we are using.
6656 echo 'int i;' > conftest.$ac_ext
6657 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6658 (eval $ac_compile) 2>&5
6659 ac_status=$?
6660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6661 test $ac_status = 0; }; then
6662 case `/usr/bin/file conftest.o` in
6663 *64-bit*)
6664 case $lt_cv_prog_gnu_ld in
6665 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6667 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6668 LD="${LD-ld} -64"
6671 esac
6673 esac
6675 rm -rf conftest*
6677 esac
6679 need_locks="$enable_libtool_lock"
6682 case $host_os in
6683 rhapsody* | darwin*)
6684 if test -n "$ac_tool_prefix"; then
6685 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6686 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6688 $as_echo_n "checking for $ac_word... " >&6; }
6689 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6690 $as_echo_n "(cached) " >&6
6691 else
6692 if test -n "$DSYMUTIL"; then
6693 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6694 else
6695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6696 for as_dir in $PATH
6698 IFS=$as_save_IFS
6699 test -z "$as_dir" && as_dir=.
6700 for ac_exec_ext in '' $ac_executable_extensions; do
6701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6702 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6704 break 2
6706 done
6707 done
6708 IFS=$as_save_IFS
6712 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6713 if test -n "$DSYMUTIL"; then
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6715 $as_echo "$DSYMUTIL" >&6; }
6716 else
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6718 $as_echo "no" >&6; }
6723 if test -z "$ac_cv_prog_DSYMUTIL"; then
6724 ac_ct_DSYMUTIL=$DSYMUTIL
6725 # Extract the first word of "dsymutil", so it can be a program name with args.
6726 set dummy dsymutil; ac_word=$2
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6728 $as_echo_n "checking for $ac_word... " >&6; }
6729 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6730 $as_echo_n "(cached) " >&6
6731 else
6732 if test -n "$ac_ct_DSYMUTIL"; then
6733 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6734 else
6735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6736 for as_dir in $PATH
6738 IFS=$as_save_IFS
6739 test -z "$as_dir" && as_dir=.
6740 for ac_exec_ext in '' $ac_executable_extensions; do
6741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6742 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6744 break 2
6746 done
6747 done
6748 IFS=$as_save_IFS
6752 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6753 if test -n "$ac_ct_DSYMUTIL"; then
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6755 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6756 else
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6758 $as_echo "no" >&6; }
6761 if test "x$ac_ct_DSYMUTIL" = x; then
6762 DSYMUTIL=":"
6763 else
6764 case $cross_compiling:$ac_tool_warned in
6765 yes:)
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6767 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6768 ac_tool_warned=yes ;;
6769 esac
6770 DSYMUTIL=$ac_ct_DSYMUTIL
6772 else
6773 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6776 if test -n "$ac_tool_prefix"; then
6777 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6778 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6780 $as_echo_n "checking for $ac_word... " >&6; }
6781 if ${ac_cv_prog_NMEDIT+:} false; then :
6782 $as_echo_n "(cached) " >&6
6783 else
6784 if test -n "$NMEDIT"; then
6785 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6786 else
6787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788 for as_dir in $PATH
6790 IFS=$as_save_IFS
6791 test -z "$as_dir" && as_dir=.
6792 for ac_exec_ext in '' $ac_executable_extensions; do
6793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6794 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6796 break 2
6798 done
6799 done
6800 IFS=$as_save_IFS
6804 NMEDIT=$ac_cv_prog_NMEDIT
6805 if test -n "$NMEDIT"; then
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6807 $as_echo "$NMEDIT" >&6; }
6808 else
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6810 $as_echo "no" >&6; }
6815 if test -z "$ac_cv_prog_NMEDIT"; then
6816 ac_ct_NMEDIT=$NMEDIT
6817 # Extract the first word of "nmedit", so it can be a program name with args.
6818 set dummy nmedit; ac_word=$2
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6820 $as_echo_n "checking for $ac_word... " >&6; }
6821 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6822 $as_echo_n "(cached) " >&6
6823 else
6824 if test -n "$ac_ct_NMEDIT"; then
6825 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6826 else
6827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828 for as_dir in $PATH
6830 IFS=$as_save_IFS
6831 test -z "$as_dir" && as_dir=.
6832 for ac_exec_ext in '' $ac_executable_extensions; do
6833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6834 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6836 break 2
6838 done
6839 done
6840 IFS=$as_save_IFS
6844 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6845 if test -n "$ac_ct_NMEDIT"; then
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6847 $as_echo "$ac_ct_NMEDIT" >&6; }
6848 else
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6850 $as_echo "no" >&6; }
6853 if test "x$ac_ct_NMEDIT" = x; then
6854 NMEDIT=":"
6855 else
6856 case $cross_compiling:$ac_tool_warned in
6857 yes:)
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6859 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6860 ac_tool_warned=yes ;;
6861 esac
6862 NMEDIT=$ac_ct_NMEDIT
6864 else
6865 NMEDIT="$ac_cv_prog_NMEDIT"
6868 if test -n "$ac_tool_prefix"; then
6869 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6870 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6872 $as_echo_n "checking for $ac_word... " >&6; }
6873 if ${ac_cv_prog_LIPO+:} false; then :
6874 $as_echo_n "(cached) " >&6
6875 else
6876 if test -n "$LIPO"; then
6877 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6878 else
6879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6880 for as_dir in $PATH
6882 IFS=$as_save_IFS
6883 test -z "$as_dir" && as_dir=.
6884 for ac_exec_ext in '' $ac_executable_extensions; do
6885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6886 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6888 break 2
6890 done
6891 done
6892 IFS=$as_save_IFS
6896 LIPO=$ac_cv_prog_LIPO
6897 if test -n "$LIPO"; then
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6899 $as_echo "$LIPO" >&6; }
6900 else
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6902 $as_echo "no" >&6; }
6907 if test -z "$ac_cv_prog_LIPO"; then
6908 ac_ct_LIPO=$LIPO
6909 # Extract the first word of "lipo", so it can be a program name with args.
6910 set dummy lipo; ac_word=$2
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6912 $as_echo_n "checking for $ac_word... " >&6; }
6913 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6914 $as_echo_n "(cached) " >&6
6915 else
6916 if test -n "$ac_ct_LIPO"; then
6917 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6918 else
6919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6920 for as_dir in $PATH
6922 IFS=$as_save_IFS
6923 test -z "$as_dir" && as_dir=.
6924 for ac_exec_ext in '' $ac_executable_extensions; do
6925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6926 ac_cv_prog_ac_ct_LIPO="lipo"
6927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6928 break 2
6930 done
6931 done
6932 IFS=$as_save_IFS
6936 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6937 if test -n "$ac_ct_LIPO"; then
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6939 $as_echo "$ac_ct_LIPO" >&6; }
6940 else
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6942 $as_echo "no" >&6; }
6945 if test "x$ac_ct_LIPO" = x; then
6946 LIPO=":"
6947 else
6948 case $cross_compiling:$ac_tool_warned in
6949 yes:)
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6951 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6952 ac_tool_warned=yes ;;
6953 esac
6954 LIPO=$ac_ct_LIPO
6956 else
6957 LIPO="$ac_cv_prog_LIPO"
6960 if test -n "$ac_tool_prefix"; then
6961 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6962 set dummy ${ac_tool_prefix}otool; ac_word=$2
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6964 $as_echo_n "checking for $ac_word... " >&6; }
6965 if ${ac_cv_prog_OTOOL+:} false; then :
6966 $as_echo_n "(cached) " >&6
6967 else
6968 if test -n "$OTOOL"; then
6969 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6970 else
6971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6972 for as_dir in $PATH
6974 IFS=$as_save_IFS
6975 test -z "$as_dir" && as_dir=.
6976 for ac_exec_ext in '' $ac_executable_extensions; do
6977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6978 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6980 break 2
6982 done
6983 done
6984 IFS=$as_save_IFS
6988 OTOOL=$ac_cv_prog_OTOOL
6989 if test -n "$OTOOL"; then
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6991 $as_echo "$OTOOL" >&6; }
6992 else
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6994 $as_echo "no" >&6; }
6999 if test -z "$ac_cv_prog_OTOOL"; then
7000 ac_ct_OTOOL=$OTOOL
7001 # Extract the first word of "otool", so it can be a program name with args.
7002 set dummy otool; ac_word=$2
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7004 $as_echo_n "checking for $ac_word... " >&6; }
7005 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7006 $as_echo_n "(cached) " >&6
7007 else
7008 if test -n "$ac_ct_OTOOL"; then
7009 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7010 else
7011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7012 for as_dir in $PATH
7014 IFS=$as_save_IFS
7015 test -z "$as_dir" && as_dir=.
7016 for ac_exec_ext in '' $ac_executable_extensions; do
7017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7018 ac_cv_prog_ac_ct_OTOOL="otool"
7019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7020 break 2
7022 done
7023 done
7024 IFS=$as_save_IFS
7028 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7029 if test -n "$ac_ct_OTOOL"; then
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7031 $as_echo "$ac_ct_OTOOL" >&6; }
7032 else
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7034 $as_echo "no" >&6; }
7037 if test "x$ac_ct_OTOOL" = x; then
7038 OTOOL=":"
7039 else
7040 case $cross_compiling:$ac_tool_warned in
7041 yes:)
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7043 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7044 ac_tool_warned=yes ;;
7045 esac
7046 OTOOL=$ac_ct_OTOOL
7048 else
7049 OTOOL="$ac_cv_prog_OTOOL"
7052 if test -n "$ac_tool_prefix"; then
7053 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7054 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7056 $as_echo_n "checking for $ac_word... " >&6; }
7057 if ${ac_cv_prog_OTOOL64+:} false; then :
7058 $as_echo_n "(cached) " >&6
7059 else
7060 if test -n "$OTOOL64"; then
7061 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7062 else
7063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7064 for as_dir in $PATH
7066 IFS=$as_save_IFS
7067 test -z "$as_dir" && as_dir=.
7068 for ac_exec_ext in '' $ac_executable_extensions; do
7069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7070 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7072 break 2
7074 done
7075 done
7076 IFS=$as_save_IFS
7080 OTOOL64=$ac_cv_prog_OTOOL64
7081 if test -n "$OTOOL64"; then
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7083 $as_echo "$OTOOL64" >&6; }
7084 else
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7086 $as_echo "no" >&6; }
7091 if test -z "$ac_cv_prog_OTOOL64"; then
7092 ac_ct_OTOOL64=$OTOOL64
7093 # Extract the first word of "otool64", so it can be a program name with args.
7094 set dummy otool64; ac_word=$2
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7096 $as_echo_n "checking for $ac_word... " >&6; }
7097 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7098 $as_echo_n "(cached) " >&6
7099 else
7100 if test -n "$ac_ct_OTOOL64"; then
7101 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7102 else
7103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7104 for as_dir in $PATH
7106 IFS=$as_save_IFS
7107 test -z "$as_dir" && as_dir=.
7108 for ac_exec_ext in '' $ac_executable_extensions; do
7109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7110 ac_cv_prog_ac_ct_OTOOL64="otool64"
7111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7112 break 2
7114 done
7115 done
7116 IFS=$as_save_IFS
7120 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7121 if test -n "$ac_ct_OTOOL64"; then
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7123 $as_echo "$ac_ct_OTOOL64" >&6; }
7124 else
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7126 $as_echo "no" >&6; }
7129 if test "x$ac_ct_OTOOL64" = x; then
7130 OTOOL64=":"
7131 else
7132 case $cross_compiling:$ac_tool_warned in
7133 yes:)
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7136 ac_tool_warned=yes ;;
7137 esac
7138 OTOOL64=$ac_ct_OTOOL64
7140 else
7141 OTOOL64="$ac_cv_prog_OTOOL64"
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7171 $as_echo_n "checking for -single_module linker flag... " >&6; }
7172 if ${lt_cv_apple_cc_single_mod+:} false; then :
7173 $as_echo_n "(cached) " >&6
7174 else
7175 lt_cv_apple_cc_single_mod=no
7176 if test -z "${LT_MULTI_MODULE}"; then
7177 # By default we will add the -single_module flag. You can override
7178 # by either setting the environment variable LT_MULTI_MODULE
7179 # non-empty at configure time, or by adding -multi_module to the
7180 # link flags.
7181 rm -rf libconftest.dylib*
7182 echo "int foo(void){return 1;}" > conftest.c
7183 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7184 -dynamiclib -Wl,-single_module conftest.c" >&5
7185 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7186 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7187 _lt_result=$?
7188 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7189 lt_cv_apple_cc_single_mod=yes
7190 else
7191 cat conftest.err >&5
7193 rm -rf libconftest.dylib*
7194 rm -f conftest.*
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7198 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7200 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7201 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7202 $as_echo_n "(cached) " >&6
7203 else
7204 lt_cv_ld_exported_symbols_list=no
7205 save_LDFLAGS=$LDFLAGS
7206 echo "_main" > conftest.sym
7207 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7208 if test x$gcc_no_link = xyes; then
7209 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
7211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7212 /* end confdefs.h. */
7215 main ()
7219 return 0;
7221 _ACEOF
7222 if ac_fn_c_try_link "$LINENO"; then :
7223 lt_cv_ld_exported_symbols_list=yes
7224 else
7225 lt_cv_ld_exported_symbols_list=no
7227 rm -f core conftest.err conftest.$ac_objext \
7228 conftest$ac_exeext conftest.$ac_ext
7229 LDFLAGS="$save_LDFLAGS"
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7233 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7235 $as_echo_n "checking for -force_load linker flag... " >&6; }
7236 if ${lt_cv_ld_force_load+:} false; then :
7237 $as_echo_n "(cached) " >&6
7238 else
7239 lt_cv_ld_force_load=no
7240 cat > conftest.c << _LT_EOF
7241 int forced_loaded() { return 2;}
7242 _LT_EOF
7243 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7244 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7245 echo "$AR cru libconftest.a conftest.o" >&5
7246 $AR cru libconftest.a conftest.o 2>&5
7247 cat > conftest.c << _LT_EOF
7248 int main() { return 0;}
7249 _LT_EOF
7250 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7251 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7252 _lt_result=$?
7253 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7254 lt_cv_ld_force_load=yes
7255 else
7256 cat conftest.err >&5
7258 rm -f conftest.err libconftest.a conftest conftest.c
7259 rm -rf conftest.dSYM
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7263 $as_echo "$lt_cv_ld_force_load" >&6; }
7264 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
7265 # build without first building modern cctools / linker.
7266 case $host_cpu-$host_os in
7267 *-rhapsody* | *-darwin1.[012])
7268 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7269 *-darwin1.*)
7270 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7271 *-darwin*)
7272 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
7273 # deployment target is forced to an earlier version.
7274 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
7275 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
7277 10.[012][,.]*)
7278 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7282 esac
7284 esac
7285 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7286 _lt_dar_single_mod='$single_module'
7288 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7289 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7290 else
7291 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7293 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7294 _lt_dsymutil='~$DSYMUTIL $lib || :'
7295 else
7296 _lt_dsymutil=
7299 esac
7301 for ac_header in dlfcn.h
7302 do :
7303 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7305 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7306 cat >>confdefs.h <<_ACEOF
7307 #define HAVE_DLFCN_H 1
7308 _ACEOF
7312 done
7318 # Set options
7322 enable_dlopen=no
7325 enable_win32_dll=no
7328 # Check whether --enable-shared was given.
7329 if test "${enable_shared+set}" = set; then :
7330 enableval=$enable_shared; p=${PACKAGE-default}
7331 case $enableval in
7332 yes) enable_shared=yes ;;
7333 no) enable_shared=no ;;
7335 enable_shared=no
7336 # Look at the argument we got. We use all the common list separators.
7337 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7338 for pkg in $enableval; do
7339 IFS="$lt_save_ifs"
7340 if test "X$pkg" = "X$p"; then
7341 enable_shared=yes
7343 done
7344 IFS="$lt_save_ifs"
7346 esac
7347 else
7348 enable_shared=yes
7359 # Check whether --enable-static was given.
7360 if test "${enable_static+set}" = set; then :
7361 enableval=$enable_static; p=${PACKAGE-default}
7362 case $enableval in
7363 yes) enable_static=yes ;;
7364 no) enable_static=no ;;
7366 enable_static=no
7367 # Look at the argument we got. We use all the common list separators.
7368 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7369 for pkg in $enableval; do
7370 IFS="$lt_save_ifs"
7371 if test "X$pkg" = "X$p"; then
7372 enable_static=yes
7374 done
7375 IFS="$lt_save_ifs"
7377 esac
7378 else
7379 enable_static=yes
7391 # Check whether --with-pic was given.
7392 if test "${with_pic+set}" = set; then :
7393 withval=$with_pic; pic_mode="$withval"
7394 else
7395 pic_mode=default
7399 test -z "$pic_mode" && pic_mode=default
7407 # Check whether --enable-fast-install was given.
7408 if test "${enable_fast_install+set}" = set; then :
7409 enableval=$enable_fast_install; p=${PACKAGE-default}
7410 case $enableval in
7411 yes) enable_fast_install=yes ;;
7412 no) enable_fast_install=no ;;
7414 enable_fast_install=no
7415 # Look at the argument we got. We use all the common list separators.
7416 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7417 for pkg in $enableval; do
7418 IFS="$lt_save_ifs"
7419 if test "X$pkg" = "X$p"; then
7420 enable_fast_install=yes
7422 done
7423 IFS="$lt_save_ifs"
7425 esac
7426 else
7427 enable_fast_install=yes
7440 # This can be used to rebuild libtool when needed
7441 LIBTOOL_DEPS="$ltmain"
7443 # Always use our own libtool.
7444 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7471 test -z "$LN_S" && LN_S="ln -s"
7486 if test -n "${ZSH_VERSION+set}" ; then
7487 setopt NO_GLOB_SUBST
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7491 $as_echo_n "checking for objdir... " >&6; }
7492 if ${lt_cv_objdir+:} false; then :
7493 $as_echo_n "(cached) " >&6
7494 else
7495 rm -f .libs 2>/dev/null
7496 mkdir .libs 2>/dev/null
7497 if test -d .libs; then
7498 lt_cv_objdir=.libs
7499 else
7500 # MS-DOS does not allow filenames that begin with a dot.
7501 lt_cv_objdir=_libs
7503 rmdir .libs 2>/dev/null
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7506 $as_echo "$lt_cv_objdir" >&6; }
7507 objdir=$lt_cv_objdir
7513 cat >>confdefs.h <<_ACEOF
7514 #define LT_OBJDIR "$lt_cv_objdir/"
7515 _ACEOF
7520 case $host_os in
7521 aix3*)
7522 # AIX sometimes has problems with the GCC collect2 program. For some
7523 # reason, if we set the COLLECT_NAMES environment variable, the problems
7524 # vanish in a puff of smoke.
7525 if test "X${COLLECT_NAMES+set}" != Xset; then
7526 COLLECT_NAMES=
7527 export COLLECT_NAMES
7530 esac
7532 # Global variables:
7533 ofile=libtool
7534 can_build_shared=yes
7536 # All known linkers require a `.a' archive for static linking (except MSVC,
7537 # which needs '.lib').
7538 libext=a
7540 with_gnu_ld="$lt_cv_prog_gnu_ld"
7542 old_CC="$CC"
7543 old_CFLAGS="$CFLAGS"
7545 # Set sane defaults for various variables
7546 test -z "$CC" && CC=cc
7547 test -z "$LTCC" && LTCC=$CC
7548 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7549 test -z "$LD" && LD=ld
7550 test -z "$ac_objext" && ac_objext=o
7552 for cc_temp in $compiler""; do
7553 case $cc_temp in
7554 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7555 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7556 \-*) ;;
7557 *) break;;
7558 esac
7559 done
7560 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7563 # Only perform the check for file, if the check method requires it
7564 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7565 case $deplibs_check_method in
7566 file_magic*)
7567 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7569 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7570 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7571 $as_echo_n "(cached) " >&6
7572 else
7573 case $MAGIC_CMD in
7574 [\\/*] | ?:[\\/]*)
7575 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7578 lt_save_MAGIC_CMD="$MAGIC_CMD"
7579 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7580 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7581 for ac_dir in $ac_dummy; do
7582 IFS="$lt_save_ifs"
7583 test -z "$ac_dir" && ac_dir=.
7584 if test -f $ac_dir/${ac_tool_prefix}file; then
7585 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7586 if test -n "$file_magic_test_file"; then
7587 case $deplibs_check_method in
7588 "file_magic "*)
7589 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7590 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7591 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7592 $EGREP "$file_magic_regex" > /dev/null; then
7594 else
7595 cat <<_LT_EOF 1>&2
7597 *** Warning: the command libtool uses to detect shared libraries,
7598 *** $file_magic_cmd, produces output that libtool cannot recognize.
7599 *** The result is that libtool may fail to recognize shared libraries
7600 *** as such. This will affect the creation of libtool libraries that
7601 *** depend on shared libraries, but programs linked with such libtool
7602 *** libraries will work regardless of this problem. Nevertheless, you
7603 *** may want to report the problem to your system manager and/or to
7604 *** bug-libtool@gnu.org
7606 _LT_EOF
7607 fi ;;
7608 esac
7610 break
7612 done
7613 IFS="$lt_save_ifs"
7614 MAGIC_CMD="$lt_save_MAGIC_CMD"
7616 esac
7619 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7620 if test -n "$MAGIC_CMD"; then
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7622 $as_echo "$MAGIC_CMD" >&6; }
7623 else
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7625 $as_echo "no" >&6; }
7632 if test -z "$lt_cv_path_MAGIC_CMD"; then
7633 if test -n "$ac_tool_prefix"; then
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7635 $as_echo_n "checking for file... " >&6; }
7636 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7637 $as_echo_n "(cached) " >&6
7638 else
7639 case $MAGIC_CMD in
7640 [\\/*] | ?:[\\/]*)
7641 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7644 lt_save_MAGIC_CMD="$MAGIC_CMD"
7645 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7646 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7647 for ac_dir in $ac_dummy; do
7648 IFS="$lt_save_ifs"
7649 test -z "$ac_dir" && ac_dir=.
7650 if test -f $ac_dir/file; then
7651 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7652 if test -n "$file_magic_test_file"; then
7653 case $deplibs_check_method in
7654 "file_magic "*)
7655 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7656 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7657 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7658 $EGREP "$file_magic_regex" > /dev/null; then
7660 else
7661 cat <<_LT_EOF 1>&2
7663 *** Warning: the command libtool uses to detect shared libraries,
7664 *** $file_magic_cmd, produces output that libtool cannot recognize.
7665 *** The result is that libtool may fail to recognize shared libraries
7666 *** as such. This will affect the creation of libtool libraries that
7667 *** depend on shared libraries, but programs linked with such libtool
7668 *** libraries will work regardless of this problem. Nevertheless, you
7669 *** may want to report the problem to your system manager and/or to
7670 *** bug-libtool@gnu.org
7672 _LT_EOF
7673 fi ;;
7674 esac
7676 break
7678 done
7679 IFS="$lt_save_ifs"
7680 MAGIC_CMD="$lt_save_MAGIC_CMD"
7682 esac
7685 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7686 if test -n "$MAGIC_CMD"; then
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7688 $as_echo "$MAGIC_CMD" >&6; }
7689 else
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7691 $as_echo "no" >&6; }
7695 else
7696 MAGIC_CMD=:
7702 esac
7704 # Use C for the default configuration in the libtool script
7706 lt_save_CC="$CC"
7707 ac_ext=c
7708 ac_cpp='$CPP $CPPFLAGS'
7709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7714 # Source file extension for C test sources.
7715 ac_ext=c
7717 # Object file extension for compiled C test sources.
7718 objext=o
7719 objext=$objext
7721 # Code to be used in simple compile tests
7722 lt_simple_compile_test_code="int some_variable = 0;"
7724 # Code to be used in simple link tests
7725 lt_simple_link_test_code='int main(){return(0);}'
7733 # If no C compiler was specified, use CC.
7734 LTCC=${LTCC-"$CC"}
7736 # If no C compiler flags were specified, use CFLAGS.
7737 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7739 # Allow CC to be a program name with arguments.
7740 compiler=$CC
7742 # Save the default compiler, since it gets overwritten when the other
7743 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7744 compiler_DEFAULT=$CC
7746 # save warnings/boilerplate of simple test code
7747 ac_outfile=conftest.$ac_objext
7748 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7749 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7750 _lt_compiler_boilerplate=`cat conftest.err`
7751 $RM conftest*
7753 ac_outfile=conftest.$ac_objext
7754 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7755 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7756 _lt_linker_boilerplate=`cat conftest.err`
7757 $RM -r conftest*
7760 ## CAVEAT EMPTOR:
7761 ## There is no encapsulation within the following macros, do not change
7762 ## the running order or otherwise move them around unless you know exactly
7763 ## what you are doing...
7764 if test -n "$compiler"; then
7766 lt_prog_compiler_no_builtin_flag=
7768 if test "$GCC" = yes; then
7769 case $cc_basename in
7770 nvcc*)
7771 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7773 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7774 esac
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7777 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7778 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7779 $as_echo_n "(cached) " >&6
7780 else
7781 lt_cv_prog_compiler_rtti_exceptions=no
7782 ac_outfile=conftest.$ac_objext
7783 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7784 lt_compiler_flag="-fno-rtti -fno-exceptions"
7785 # Insert the option either (1) after the last *FLAGS variable, or
7786 # (2) before a word containing "conftest.", or (3) at the end.
7787 # Note that $ac_compile itself does not contain backslashes and begins
7788 # with a dollar sign (not a hyphen), so the echo should work correctly.
7789 # The option is referenced via a variable to avoid confusing sed.
7790 lt_compile=`echo "$ac_compile" | $SED \
7791 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7792 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7793 -e 's:$: $lt_compiler_flag:'`
7794 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7795 (eval "$lt_compile" 2>conftest.err)
7796 ac_status=$?
7797 cat conftest.err >&5
7798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799 if (exit $ac_status) && test -s "$ac_outfile"; then
7800 # The compiler can only warn and ignore the option if not recognized
7801 # So say no if there are warnings other than the usual output.
7802 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7803 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7804 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7805 lt_cv_prog_compiler_rtti_exceptions=yes
7808 $RM conftest*
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7812 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7814 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7815 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7816 else
7827 lt_prog_compiler_wl=
7828 lt_prog_compiler_pic=
7829 lt_prog_compiler_static=
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7832 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7834 if test "$GCC" = yes; then
7835 lt_prog_compiler_wl='-Wl,'
7836 lt_prog_compiler_static='-static'
7838 case $host_os in
7839 aix*)
7840 # All AIX code is PIC.
7841 if test "$host_cpu" = ia64; then
7842 # AIX 5 now supports IA64 processor
7843 lt_prog_compiler_static='-Bstatic'
7845 lt_prog_compiler_pic='-fPIC'
7848 amigaos*)
7849 case $host_cpu in
7850 powerpc)
7851 # see comment about AmigaOS4 .so support
7852 lt_prog_compiler_pic='-fPIC'
7854 m68k)
7855 # FIXME: we need at least 68020 code to build shared libraries, but
7856 # adding the `-m68020' flag to GCC prevents building anything better,
7857 # like `-m68040'.
7858 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7860 esac
7863 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7864 # PIC is the default for these OSes.
7867 mingw* | cygwin* | pw32* | os2* | cegcc*)
7868 # This hack is so that the source file can tell whether it is being
7869 # built for inclusion in a dll (and should export symbols for example).
7870 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7871 # (--disable-auto-import) libraries
7872 lt_prog_compiler_pic='-DDLL_EXPORT'
7875 darwin* | rhapsody*)
7876 # PIC is the default on this platform
7877 # Common symbols not allowed in MH_DYLIB files
7878 lt_prog_compiler_pic='-fno-common'
7881 haiku*)
7882 # PIC is the default for Haiku.
7883 # The "-static" flag exists, but is broken.
7884 lt_prog_compiler_static=
7887 hpux*)
7888 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7889 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7890 # sets the default TLS model and affects inlining.
7891 case $host_cpu in
7892 hppa*64*)
7893 # +Z the default
7896 lt_prog_compiler_pic='-fPIC'
7898 esac
7901 interix[3-9]*)
7902 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7903 # Instead, we relocate shared libraries at runtime.
7906 msdosdjgpp*)
7907 # Just because we use GCC doesn't mean we suddenly get shared libraries
7908 # on systems that don't support them.
7909 lt_prog_compiler_can_build_shared=no
7910 enable_shared=no
7913 *nto* | *qnx*)
7914 # QNX uses GNU C++, but need to define -shared option too, otherwise
7915 # it will coredump.
7916 lt_prog_compiler_pic='-fPIC -shared'
7919 sysv4*MP*)
7920 if test -d /usr/nec; then
7921 lt_prog_compiler_pic=-Kconform_pic
7926 lt_prog_compiler_pic='-fPIC'
7928 esac
7930 case $cc_basename in
7931 nvcc*) # Cuda Compiler Driver 2.2
7932 lt_prog_compiler_wl='-Xlinker '
7933 lt_prog_compiler_pic='-Xcompiler -fPIC'
7935 esac
7936 else
7937 # PORTME Check for flag to pass linker flags through the system compiler.
7938 case $host_os in
7939 aix*)
7940 lt_prog_compiler_wl='-Wl,'
7941 if test "$host_cpu" = ia64; then
7942 # AIX 5 now supports IA64 processor
7943 lt_prog_compiler_static='-Bstatic'
7944 else
7945 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7949 mingw* | cygwin* | pw32* | os2* | cegcc*)
7950 # This hack is so that the source file can tell whether it is being
7951 # built for inclusion in a dll (and should export symbols for example).
7952 lt_prog_compiler_pic='-DDLL_EXPORT'
7955 hpux9* | hpux10* | hpux11*)
7956 lt_prog_compiler_wl='-Wl,'
7957 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7958 # not for PA HP-UX.
7959 case $host_cpu in
7960 hppa*64*|ia64*)
7961 # +Z the default
7964 lt_prog_compiler_pic='+Z'
7966 esac
7967 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7968 lt_prog_compiler_static='${wl}-a ${wl}archive'
7971 irix5* | irix6* | nonstopux*)
7972 lt_prog_compiler_wl='-Wl,'
7973 # PIC (with -KPIC) is the default.
7974 lt_prog_compiler_static='-non_shared'
7977 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7978 case $cc_basename in
7979 # old Intel for x86_64 which still supported -KPIC.
7980 ecc*)
7981 lt_prog_compiler_wl='-Wl,'
7982 lt_prog_compiler_pic='-KPIC'
7983 lt_prog_compiler_static='-static'
7985 # icc used to be incompatible with GCC.
7986 # ICC 10 doesn't accept -KPIC any more.
7987 icc* | ifort*)
7988 lt_prog_compiler_wl='-Wl,'
7989 lt_prog_compiler_pic='-fPIC'
7990 lt_prog_compiler_static='-static'
7992 # Lahey Fortran 8.1.
7993 lf95*)
7994 lt_prog_compiler_wl='-Wl,'
7995 lt_prog_compiler_pic='--shared'
7996 lt_prog_compiler_static='--static'
7998 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7999 # Portland Group compilers (*not* the Pentium gcc compiler,
8000 # which looks to be a dead project)
8001 lt_prog_compiler_wl='-Wl,'
8002 lt_prog_compiler_pic='-fpic'
8003 lt_prog_compiler_static='-Bstatic'
8005 ccc*)
8006 lt_prog_compiler_wl='-Wl,'
8007 # All Alpha code is PIC.
8008 lt_prog_compiler_static='-non_shared'
8010 xl* | bgxl* | bgf* | mpixl*)
8011 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8012 lt_prog_compiler_wl='-Wl,'
8013 lt_prog_compiler_pic='-qpic'
8014 lt_prog_compiler_static='-qstaticlink'
8017 case `$CC -V 2>&1 | sed 5q` in
8018 *Sun\ F* | *Sun*Fortran*)
8019 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8020 lt_prog_compiler_pic='-KPIC'
8021 lt_prog_compiler_static='-Bstatic'
8022 lt_prog_compiler_wl=''
8024 *Sun\ C*)
8025 # Sun C 5.9
8026 lt_prog_compiler_pic='-KPIC'
8027 lt_prog_compiler_static='-Bstatic'
8028 lt_prog_compiler_wl='-Wl,'
8030 esac
8032 esac
8035 newsos6)
8036 lt_prog_compiler_pic='-KPIC'
8037 lt_prog_compiler_static='-Bstatic'
8040 *nto* | *qnx*)
8041 # QNX uses GNU C++, but need to define -shared option too, otherwise
8042 # it will coredump.
8043 lt_prog_compiler_pic='-fPIC -shared'
8046 osf3* | osf4* | osf5*)
8047 lt_prog_compiler_wl='-Wl,'
8048 # All OSF/1 code is PIC.
8049 lt_prog_compiler_static='-non_shared'
8052 rdos*)
8053 lt_prog_compiler_static='-non_shared'
8056 solaris*)
8057 lt_prog_compiler_pic='-KPIC'
8058 lt_prog_compiler_static='-Bstatic'
8059 case $cc_basename in
8060 f77* | f90* | f95*)
8061 lt_prog_compiler_wl='-Qoption ld ';;
8063 lt_prog_compiler_wl='-Wl,';;
8064 esac
8067 sunos4*)
8068 lt_prog_compiler_wl='-Qoption ld '
8069 lt_prog_compiler_pic='-PIC'
8070 lt_prog_compiler_static='-Bstatic'
8073 sysv4 | sysv4.2uw2* | sysv4.3*)
8074 lt_prog_compiler_wl='-Wl,'
8075 lt_prog_compiler_pic='-KPIC'
8076 lt_prog_compiler_static='-Bstatic'
8079 sysv4*MP*)
8080 if test -d /usr/nec ;then
8081 lt_prog_compiler_pic='-Kconform_pic'
8082 lt_prog_compiler_static='-Bstatic'
8086 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8087 lt_prog_compiler_wl='-Wl,'
8088 lt_prog_compiler_pic='-KPIC'
8089 lt_prog_compiler_static='-Bstatic'
8092 unicos*)
8093 lt_prog_compiler_wl='-Wl,'
8094 lt_prog_compiler_can_build_shared=no
8097 uts4*)
8098 lt_prog_compiler_pic='-pic'
8099 lt_prog_compiler_static='-Bstatic'
8103 lt_prog_compiler_can_build_shared=no
8105 esac
8108 case $host_os in
8109 # For platforms which do not support PIC, -DPIC is meaningless:
8110 *djgpp*)
8111 lt_prog_compiler_pic=
8114 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8116 esac
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8118 $as_echo "$lt_prog_compiler_pic" >&6; }
8126 # Check to make sure the PIC flag actually works.
8128 if test -n "$lt_prog_compiler_pic"; then
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8130 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8131 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8132 $as_echo_n "(cached) " >&6
8133 else
8134 lt_cv_prog_compiler_pic_works=no
8135 ac_outfile=conftest.$ac_objext
8136 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8137 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8138 # Insert the option either (1) after the last *FLAGS variable, or
8139 # (2) before a word containing "conftest.", or (3) at the end.
8140 # Note that $ac_compile itself does not contain backslashes and begins
8141 # with a dollar sign (not a hyphen), so the echo should work correctly.
8142 # The option is referenced via a variable to avoid confusing sed.
8143 lt_compile=`echo "$ac_compile" | $SED \
8144 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8145 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8146 -e 's:$: $lt_compiler_flag:'`
8147 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8148 (eval "$lt_compile" 2>conftest.err)
8149 ac_status=$?
8150 cat conftest.err >&5
8151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152 if (exit $ac_status) && test -s "$ac_outfile"; then
8153 # The compiler can only warn and ignore the option if not recognized
8154 # So say no if there are warnings other than the usual output.
8155 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8156 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8157 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8158 lt_cv_prog_compiler_pic_works=yes
8161 $RM conftest*
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8165 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8167 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8168 case $lt_prog_compiler_pic in
8169 "" | " "*) ;;
8170 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8171 esac
8172 else
8173 lt_prog_compiler_pic=
8174 lt_prog_compiler_can_build_shared=no
8185 # Check to make sure the static flag actually works.
8187 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8189 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8190 if ${lt_cv_prog_compiler_static_works+:} false; then :
8191 $as_echo_n "(cached) " >&6
8192 else
8193 lt_cv_prog_compiler_static_works=no
8194 save_LDFLAGS="$LDFLAGS"
8195 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8196 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8197 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8198 # The linker can only warn and ignore the option if not recognized
8199 # So say no if there are warnings
8200 if test -s conftest.err; then
8201 # Append any errors to the config.log.
8202 cat conftest.err 1>&5
8203 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8204 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8205 if diff conftest.exp conftest.er2 >/dev/null; then
8206 lt_cv_prog_compiler_static_works=yes
8208 else
8209 lt_cv_prog_compiler_static_works=yes
8212 $RM -r conftest*
8213 LDFLAGS="$save_LDFLAGS"
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8217 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8219 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8221 else
8222 lt_prog_compiler_static=
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8232 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8233 if ${lt_cv_prog_compiler_c_o+:} false; then :
8234 $as_echo_n "(cached) " >&6
8235 else
8236 lt_cv_prog_compiler_c_o=no
8237 $RM -r conftest 2>/dev/null
8238 mkdir conftest
8239 cd conftest
8240 mkdir out
8241 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8243 lt_compiler_flag="-o out/conftest2.$ac_objext"
8244 # Insert the option either (1) after the last *FLAGS variable, or
8245 # (2) before a word containing "conftest.", or (3) at the end.
8246 # Note that $ac_compile itself does not contain backslashes and begins
8247 # with a dollar sign (not a hyphen), so the echo should work correctly.
8248 lt_compile=`echo "$ac_compile" | $SED \
8249 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8250 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8251 -e 's:$: $lt_compiler_flag:'`
8252 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8253 (eval "$lt_compile" 2>out/conftest.err)
8254 ac_status=$?
8255 cat out/conftest.err >&5
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8258 then
8259 # The compiler can only warn and ignore the option if not recognized
8260 # So say no if there are warnings
8261 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8262 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8263 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8264 lt_cv_prog_compiler_c_o=yes
8267 chmod u+w . 2>&5
8268 $RM conftest*
8269 # SGI C++ compiler will create directory out/ii_files/ for
8270 # template instantiation
8271 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8272 $RM out/* && rmdir out
8273 cd ..
8274 $RM -r conftest
8275 $RM conftest*
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8279 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8287 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8288 if ${lt_cv_prog_compiler_c_o+:} false; then :
8289 $as_echo_n "(cached) " >&6
8290 else
8291 lt_cv_prog_compiler_c_o=no
8292 $RM -r conftest 2>/dev/null
8293 mkdir conftest
8294 cd conftest
8295 mkdir out
8296 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8298 lt_compiler_flag="-o out/conftest2.$ac_objext"
8299 # Insert the option either (1) after the last *FLAGS variable, or
8300 # (2) before a word containing "conftest.", or (3) at the end.
8301 # Note that $ac_compile itself does not contain backslashes and begins
8302 # with a dollar sign (not a hyphen), so the echo should work correctly.
8303 lt_compile=`echo "$ac_compile" | $SED \
8304 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8305 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8306 -e 's:$: $lt_compiler_flag:'`
8307 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8308 (eval "$lt_compile" 2>out/conftest.err)
8309 ac_status=$?
8310 cat out/conftest.err >&5
8311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8313 then
8314 # The compiler can only warn and ignore the option if not recognized
8315 # So say no if there are warnings
8316 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8317 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8318 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8319 lt_cv_prog_compiler_c_o=yes
8322 chmod u+w . 2>&5
8323 $RM conftest*
8324 # SGI C++ compiler will create directory out/ii_files/ for
8325 # template instantiation
8326 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8327 $RM out/* && rmdir out
8328 cd ..
8329 $RM -r conftest
8330 $RM conftest*
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8334 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8339 hard_links="nottested"
8340 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8341 # do not overwrite the value of need_locks provided by the user
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8343 $as_echo_n "checking if we can lock with hard links... " >&6; }
8344 hard_links=yes
8345 $RM conftest*
8346 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8347 touch conftest.a
8348 ln conftest.a conftest.b 2>&5 || hard_links=no
8349 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8351 $as_echo "$hard_links" >&6; }
8352 if test "$hard_links" = no; then
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8354 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8355 need_locks=warn
8357 else
8358 need_locks=no
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8367 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8369 runpath_var=
8370 allow_undefined_flag=
8371 always_export_symbols=no
8372 archive_cmds=
8373 archive_expsym_cmds=
8374 compiler_needs_object=no
8375 enable_shared_with_static_runtimes=no
8376 export_dynamic_flag_spec=
8377 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8378 hardcode_automatic=no
8379 hardcode_direct=no
8380 hardcode_direct_absolute=no
8381 hardcode_libdir_flag_spec=
8382 hardcode_libdir_flag_spec_ld=
8383 hardcode_libdir_separator=
8384 hardcode_minus_L=no
8385 hardcode_shlibpath_var=unsupported
8386 inherit_rpath=no
8387 link_all_deplibs=unknown
8388 module_cmds=
8389 module_expsym_cmds=
8390 old_archive_from_new_cmds=
8391 old_archive_from_expsyms_cmds=
8392 thread_safe_flag_spec=
8393 whole_archive_flag_spec=
8394 # include_expsyms should be a list of space-separated symbols to be *always*
8395 # included in the symbol list
8396 include_expsyms=
8397 # exclude_expsyms can be an extended regexp of symbols to exclude
8398 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8399 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8400 # as well as any symbol that contains `d'.
8401 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8402 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8403 # platforms (ab)use it in PIC code, but their linkers get confused if
8404 # the symbol is explicitly referenced. Since portable code cannot
8405 # rely on this symbol name, it's probably fine to never include it in
8406 # preloaded symbol tables.
8407 # Exclude shared library initialization/finalization symbols.
8408 extract_expsyms_cmds=
8410 case $host_os in
8411 cygwin* | mingw* | pw32* | cegcc*)
8412 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8413 # When not using gcc, we currently assume that we are using
8414 # Microsoft Visual C++.
8415 if test "$GCC" != yes; then
8416 with_gnu_ld=no
8419 interix*)
8420 # we just hope/assume this is gcc and not c89 (= MSVC++)
8421 with_gnu_ld=yes
8423 openbsd*)
8424 with_gnu_ld=no
8426 esac
8428 ld_shlibs=yes
8430 # On some targets, GNU ld is compatible enough with the native linker
8431 # that we're better off using the native interface for both.
8432 lt_use_gnu_ld_interface=no
8433 if test "$with_gnu_ld" = yes; then
8434 case $host_os in
8435 aix*)
8436 # The AIX port of GNU ld has always aspired to compatibility
8437 # with the native linker. However, as the warning in the GNU ld
8438 # block says, versions before 2.19.5* couldn't really create working
8439 # shared libraries, regardless of the interface used.
8440 case `$LD -v 2>&1` in
8441 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8442 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8443 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8445 lt_use_gnu_ld_interface=yes
8447 esac
8450 lt_use_gnu_ld_interface=yes
8452 esac
8455 if test "$lt_use_gnu_ld_interface" = yes; then
8456 # If archive_cmds runs LD, not CC, wlarc should be empty
8457 wlarc='${wl}'
8459 # Set some defaults for GNU ld with shared library support. These
8460 # are reset later if shared libraries are not supported. Putting them
8461 # here allows them to be overridden if necessary.
8462 runpath_var=LD_RUN_PATH
8463 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8464 export_dynamic_flag_spec='${wl}--export-dynamic'
8465 # ancient GNU ld didn't support --whole-archive et. al.
8466 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8467 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8468 else
8469 whole_archive_flag_spec=
8471 supports_anon_versioning=no
8472 case `$LD -v 2>&1` in
8473 *GNU\ gold*) supports_anon_versioning=yes ;;
8474 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8475 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8476 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8477 *\ 2.11.*) ;; # other 2.11 versions
8478 *) supports_anon_versioning=yes ;;
8479 esac
8481 # See if GNU ld supports shared libraries.
8482 case $host_os in
8483 aix[3-9]*)
8484 # On AIX/PPC, the GNU linker is very broken
8485 if test "$host_cpu" != ia64; then
8486 ld_shlibs=no
8487 cat <<_LT_EOF 1>&2
8489 *** Warning: the GNU linker, at least up to release 2.19, is reported
8490 *** to be unable to reliably create shared libraries on AIX.
8491 *** Therefore, libtool is disabling shared libraries support. If you
8492 *** really care for shared libraries, you may want to install binutils
8493 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8494 *** You will then need to restart the configuration process.
8496 _LT_EOF
8500 amigaos*)
8501 case $host_cpu in
8502 powerpc)
8503 # see comment about AmigaOS4 .so support
8504 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8505 archive_expsym_cmds=''
8507 m68k)
8508 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)'
8509 hardcode_libdir_flag_spec='-L$libdir'
8510 hardcode_minus_L=yes
8512 esac
8515 beos*)
8516 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8517 allow_undefined_flag=unsupported
8518 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8519 # support --undefined. This deserves some investigation. FIXME
8520 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8521 else
8522 ld_shlibs=no
8526 cygwin* | mingw* | pw32* | cegcc*)
8527 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8528 # as there is no search path for DLLs.
8529 hardcode_libdir_flag_spec='-L$libdir'
8530 export_dynamic_flag_spec='${wl}--export-all-symbols'
8531 allow_undefined_flag=unsupported
8532 always_export_symbols=no
8533 enable_shared_with_static_runtimes=yes
8534 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8536 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8537 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8538 # If the export-symbols file already is a .def file (1st line
8539 # is EXPORTS), use it as is; otherwise, prepend...
8540 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8541 cp $export_symbols $output_objdir/$soname.def;
8542 else
8543 echo EXPORTS > $output_objdir/$soname.def;
8544 cat $export_symbols >> $output_objdir/$soname.def;
8546 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8547 else
8548 ld_shlibs=no
8552 haiku*)
8553 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8554 link_all_deplibs=yes
8557 interix[3-9]*)
8558 hardcode_direct=no
8559 hardcode_shlibpath_var=no
8560 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8561 export_dynamic_flag_spec='${wl}-E'
8562 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8563 # Instead, shared libraries are loaded at an image base (0x10000000 by
8564 # default) and relocated if they conflict, which is a slow very memory
8565 # consuming and fragmenting process. To avoid this, we pick a random,
8566 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8567 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8568 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8569 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'
8572 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
8573 tmp_diet=no
8574 if test "$host_os" = linux-dietlibc; then
8575 case $cc_basename in
8576 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8577 esac
8579 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8580 && test "$tmp_diet" = no
8581 then
8582 tmp_addflag=' $pic_flag'
8583 tmp_sharedflag='-shared'
8584 case $cc_basename,$host_cpu in
8585 pgcc*) # Portland Group C compiler
8586 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'
8587 tmp_addflag=' $pic_flag'
8589 pgf77* | pgf90* | pgf95* | pgfortran*)
8590 # Portland Group f77 and f90 compilers
8591 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'
8592 tmp_addflag=' $pic_flag -Mnomain' ;;
8593 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8594 tmp_addflag=' -i_dynamic' ;;
8595 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8596 tmp_addflag=' -i_dynamic -nofor_main' ;;
8597 ifc* | ifort*) # Intel Fortran compiler
8598 tmp_addflag=' -nofor_main' ;;
8599 lf95*) # Lahey Fortran 8.1
8600 whole_archive_flag_spec=
8601 tmp_sharedflag='--shared' ;;
8602 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8603 tmp_sharedflag='-qmkshrobj'
8604 tmp_addflag= ;;
8605 nvcc*) # Cuda Compiler Driver 2.2
8606 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'
8607 compiler_needs_object=yes
8609 esac
8610 case `$CC -V 2>&1 | sed 5q` in
8611 *Sun\ C*) # Sun C 5.9
8612 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'
8613 compiler_needs_object=yes
8614 tmp_sharedflag='-G' ;;
8615 *Sun\ F*) # Sun Fortran 8.3
8616 tmp_sharedflag='-G' ;;
8617 esac
8618 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8620 if test "x$supports_anon_versioning" = xyes; then
8621 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8622 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8623 echo "local: *; };" >> $output_objdir/$libname.ver~
8624 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8627 case $cc_basename in
8628 xlf* | bgf* | bgxlf* | mpixlf*)
8629 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8630 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8631 hardcode_libdir_flag_spec=
8632 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8633 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8634 if test "x$supports_anon_versioning" = xyes; then
8635 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8636 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8637 echo "local: *; };" >> $output_objdir/$libname.ver~
8638 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8641 esac
8642 else
8643 ld_shlibs=no
8647 netbsd*)
8648 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8649 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8650 wlarc=
8651 else
8652 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8653 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8657 solaris*)
8658 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8659 ld_shlibs=no
8660 cat <<_LT_EOF 1>&2
8662 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8663 *** create shared libraries on Solaris systems. Therefore, libtool
8664 *** is disabling shared libraries support. We urge you to upgrade GNU
8665 *** binutils to release 2.9.1 or newer. Another option is to modify
8666 *** your PATH or compiler configuration so that the native linker is
8667 *** used, and then restart.
8669 _LT_EOF
8670 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8671 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8672 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8673 else
8674 ld_shlibs=no
8678 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8679 case `$LD -v 2>&1` in
8680 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8681 ld_shlibs=no
8682 cat <<_LT_EOF 1>&2
8684 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8685 *** reliably create shared libraries on SCO systems. Therefore, libtool
8686 *** is disabling shared libraries support. We urge you to upgrade GNU
8687 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8688 *** your PATH or compiler configuration so that the native linker is
8689 *** used, and then restart.
8691 _LT_EOF
8694 # For security reasons, it is highly recommended that you always
8695 # use absolute paths for naming shared libraries, and exclude the
8696 # DT_RUNPATH tag from executables and libraries. But doing so
8697 # requires that you compile everything twice, which is a pain.
8698 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8699 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8700 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8701 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8702 else
8703 ld_shlibs=no
8706 esac
8709 sunos4*)
8710 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8711 wlarc=
8712 hardcode_direct=yes
8713 hardcode_shlibpath_var=no
8717 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8718 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8719 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8720 else
8721 ld_shlibs=no
8724 esac
8726 if test "$ld_shlibs" = no; then
8727 runpath_var=
8728 hardcode_libdir_flag_spec=
8729 export_dynamic_flag_spec=
8730 whole_archive_flag_spec=
8732 else
8733 # PORTME fill in a description of your system's linker (not GNU ld)
8734 case $host_os in
8735 aix3*)
8736 allow_undefined_flag=unsupported
8737 always_export_symbols=yes
8738 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'
8739 # Note: this linker hardcodes the directories in LIBPATH if there
8740 # are no directories specified by -L.
8741 hardcode_minus_L=yes
8742 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8743 # Neither direct hardcoding nor static linking is supported with a
8744 # broken collect2.
8745 hardcode_direct=unsupported
8749 aix[4-9]*)
8750 if test "$host_cpu" = ia64; then
8751 # On IA64, the linker does run time linking by default, so we don't
8752 # have to do anything special.
8753 aix_use_runtimelinking=no
8754 exp_sym_flag='-Bexport'
8755 no_entry_flag=""
8756 else
8757 # If we're using GNU nm, then we don't want the "-C" option.
8758 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8759 # Also, AIX nm treats weak defined symbols like other global
8760 # defined symbols, whereas GNU nm marks them as "W".
8761 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8762 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8763 else
8764 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8766 aix_use_runtimelinking=no
8768 # Test if we are trying to use run time linking or normal
8769 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8770 # need to do runtime linking.
8771 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8772 for ld_flag in $LDFLAGS; do
8773 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8774 aix_use_runtimelinking=yes
8775 break
8777 done
8779 esac
8781 exp_sym_flag='-bexport'
8782 no_entry_flag='-bnoentry'
8785 # When large executables or shared objects are built, AIX ld can
8786 # have problems creating the table of contents. If linking a library
8787 # or program results in "error TOC overflow" add -mminimal-toc to
8788 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8789 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8791 archive_cmds=''
8792 hardcode_direct=yes
8793 hardcode_direct_absolute=yes
8794 hardcode_libdir_separator=':'
8795 link_all_deplibs=yes
8796 file_list_spec='${wl}-f,'
8798 if test "$GCC" = yes; then
8799 case $host_os in aix4.[012]|aix4.[012].*)
8800 # We only want to do this on AIX 4.2 and lower, the check
8801 # below for broken collect2 doesn't work under 4.3+
8802 collect2name=`${CC} -print-prog-name=collect2`
8803 if test -f "$collect2name" &&
8804 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8805 then
8806 # We have reworked collect2
8808 else
8809 # We have old collect2
8810 hardcode_direct=unsupported
8811 # It fails to find uninstalled libraries when the uninstalled
8812 # path is not listed in the libpath. Setting hardcode_minus_L
8813 # to unsupported forces relinking
8814 hardcode_minus_L=yes
8815 hardcode_libdir_flag_spec='-L$libdir'
8816 hardcode_libdir_separator=
8819 esac
8820 shared_flag='-shared'
8821 if test "$aix_use_runtimelinking" = yes; then
8822 shared_flag="$shared_flag "'${wl}-G'
8824 else
8825 # not using gcc
8826 if test "$host_cpu" = ia64; then
8827 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8828 # chokes on -Wl,-G. The following line is correct:
8829 shared_flag='-G'
8830 else
8831 if test "$aix_use_runtimelinking" = yes; then
8832 shared_flag='${wl}-G'
8833 else
8834 shared_flag='${wl}-bM:SRE'
8839 export_dynamic_flag_spec='${wl}-bexpall'
8840 # It seems that -bexpall does not export symbols beginning with
8841 # underscore (_), so it is better to generate a list of symbols to export.
8842 always_export_symbols=yes
8843 if test "$aix_use_runtimelinking" = yes; then
8844 # Warning - without using the other runtime loading flags (-brtl),
8845 # -berok will link without error, but may produce a broken library.
8846 allow_undefined_flag='-berok'
8847 # Determine the default libpath from the value encoded in an
8848 # empty executable.
8849 if test x$gcc_no_link = xyes; then
8850 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8853 /* end confdefs.h. */
8856 main ()
8860 return 0;
8862 _ACEOF
8863 if ac_fn_c_try_link "$LINENO"; then :
8865 lt_aix_libpath_sed='
8866 /Import File Strings/,/^$/ {
8867 /^0/ {
8868 s/^0 *\(.*\)$/\1/
8872 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8873 # Check for a 64-bit object if we didn't find anything.
8874 if test -z "$aix_libpath"; then
8875 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8878 rm -f core conftest.err conftest.$ac_objext \
8879 conftest$ac_exeext conftest.$ac_ext
8880 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8882 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8883 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8884 else
8885 if test "$host_cpu" = ia64; then
8886 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8887 allow_undefined_flag="-z nodefs"
8888 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"
8889 else
8890 # Determine the default libpath from the value encoded in an
8891 # empty executable.
8892 if test x$gcc_no_link = xyes; then
8893 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8896 /* end confdefs.h. */
8899 main ()
8903 return 0;
8905 _ACEOF
8906 if ac_fn_c_try_link "$LINENO"; then :
8908 lt_aix_libpath_sed='
8909 /Import File Strings/,/^$/ {
8910 /^0/ {
8911 s/^0 *\(.*\)$/\1/
8915 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8916 # Check for a 64-bit object if we didn't find anything.
8917 if test -z "$aix_libpath"; then
8918 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8921 rm -f core conftest.err conftest.$ac_objext \
8922 conftest$ac_exeext conftest.$ac_ext
8923 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8925 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8926 # Warning - without using the other run time loading flags,
8927 # -berok will link without error, but may produce a broken library.
8928 no_undefined_flag=' ${wl}-bernotok'
8929 allow_undefined_flag=' ${wl}-berok'
8930 if test "$with_gnu_ld" = yes; then
8931 # We only use this code for GNU lds that support --whole-archive.
8932 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8933 else
8934 # Exported symbols can be pulled into shared objects from archives
8935 whole_archive_flag_spec='$convenience'
8937 archive_cmds_need_lc=yes
8938 # This is similar to how AIX traditionally builds its shared libraries.
8939 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8944 amigaos*)
8945 case $host_cpu in
8946 powerpc)
8947 # see comment about AmigaOS4 .so support
8948 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8949 archive_expsym_cmds=''
8951 m68k)
8952 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)'
8953 hardcode_libdir_flag_spec='-L$libdir'
8954 hardcode_minus_L=yes
8956 esac
8959 bsdi[45]*)
8960 export_dynamic_flag_spec=-rdynamic
8963 cygwin* | mingw* | pw32* | cegcc*)
8964 # When not using gcc, we currently assume that we are using
8965 # Microsoft Visual C++.
8966 # hardcode_libdir_flag_spec is actually meaningless, as there is
8967 # no search path for DLLs.
8968 hardcode_libdir_flag_spec=' '
8969 allow_undefined_flag=unsupported
8970 # Tell ltmain to make .lib files, not .a files.
8971 libext=lib
8972 # Tell ltmain to make .dll files, not .so files.
8973 shrext_cmds=".dll"
8974 # FIXME: Setting linknames here is a bad hack.
8975 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8976 # The linker will automatically build a .lib file if we build a DLL.
8977 old_archive_from_new_cmds='true'
8978 # FIXME: Should let the user specify the lib program.
8979 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8980 fix_srcfile_path='`cygpath -w "$srcfile"`'
8981 enable_shared_with_static_runtimes=yes
8984 darwin* | rhapsody*)
8987 archive_cmds_need_lc=no
8988 hardcode_direct=no
8989 hardcode_automatic=yes
8990 hardcode_shlibpath_var=unsupported
8991 if test "$lt_cv_ld_force_load" = "yes"; then
8992 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\"`'
8993 else
8994 whole_archive_flag_spec=''
8996 link_all_deplibs=yes
8997 allow_undefined_flag="$_lt_dar_allow_undefined"
8998 case $cc_basename in
8999 ifort*) _lt_dar_can_shared=yes ;;
9000 *) _lt_dar_can_shared=$GCC ;;
9001 esac
9002 if test "$_lt_dar_can_shared" = "yes"; then
9003 output_verbose_link_cmd=func_echo_all
9004 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9005 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9006 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}"
9007 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}"
9009 else
9010 ld_shlibs=no
9015 dgux*)
9016 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9017 hardcode_libdir_flag_spec='-L$libdir'
9018 hardcode_shlibpath_var=no
9021 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9022 # support. Future versions do this automatically, but an explicit c++rt0.o
9023 # does not break anything, and helps significantly (at the cost of a little
9024 # extra space).
9025 freebsd2.2*)
9026 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9027 hardcode_libdir_flag_spec='-R$libdir'
9028 hardcode_direct=yes
9029 hardcode_shlibpath_var=no
9032 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9033 freebsd2.*)
9034 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9035 hardcode_direct=yes
9036 hardcode_minus_L=yes
9037 hardcode_shlibpath_var=no
9040 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9041 freebsd* | dragonfly*)
9042 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9043 hardcode_libdir_flag_spec='-R$libdir'
9044 hardcode_direct=yes
9045 hardcode_shlibpath_var=no
9048 hpux9*)
9049 if test "$GCC" = yes; then
9050 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9051 else
9052 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9054 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9055 hardcode_libdir_separator=:
9056 hardcode_direct=yes
9058 # hardcode_minus_L: Not really in the search PATH,
9059 # but as the default location of the library.
9060 hardcode_minus_L=yes
9061 export_dynamic_flag_spec='${wl}-E'
9064 hpux10*)
9065 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9066 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9067 else
9068 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9070 if test "$with_gnu_ld" = no; then
9071 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9072 hardcode_libdir_flag_spec_ld='+b $libdir'
9073 hardcode_libdir_separator=:
9074 hardcode_direct=yes
9075 hardcode_direct_absolute=yes
9076 export_dynamic_flag_spec='${wl}-E'
9077 # hardcode_minus_L: Not really in the search PATH,
9078 # but as the default location of the library.
9079 hardcode_minus_L=yes
9083 hpux11*)
9084 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9085 case $host_cpu in
9086 hppa*64*)
9087 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9089 ia64*)
9090 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9093 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9095 esac
9096 else
9097 case $host_cpu in
9098 hppa*64*)
9099 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9101 ia64*)
9102 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9106 # Older versions of the 11.00 compiler do not understand -b yet
9107 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9109 $as_echo_n "checking if $CC understands -b... " >&6; }
9110 if ${lt_cv_prog_compiler__b+:} false; then :
9111 $as_echo_n "(cached) " >&6
9112 else
9113 lt_cv_prog_compiler__b=no
9114 save_LDFLAGS="$LDFLAGS"
9115 LDFLAGS="$LDFLAGS -b"
9116 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9117 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9118 # The linker can only warn and ignore the option if not recognized
9119 # So say no if there are warnings
9120 if test -s conftest.err; then
9121 # Append any errors to the config.log.
9122 cat conftest.err 1>&5
9123 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9124 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9125 if diff conftest.exp conftest.er2 >/dev/null; then
9126 lt_cv_prog_compiler__b=yes
9128 else
9129 lt_cv_prog_compiler__b=yes
9132 $RM -r conftest*
9133 LDFLAGS="$save_LDFLAGS"
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9137 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9139 if test x"$lt_cv_prog_compiler__b" = xyes; then
9140 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9141 else
9142 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9146 esac
9148 if test "$with_gnu_ld" = no; then
9149 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9150 hardcode_libdir_separator=:
9152 case $host_cpu in
9153 hppa*64*|ia64*)
9154 hardcode_direct=no
9155 hardcode_shlibpath_var=no
9158 hardcode_direct=yes
9159 hardcode_direct_absolute=yes
9160 export_dynamic_flag_spec='${wl}-E'
9162 # hardcode_minus_L: Not really in the search PATH,
9163 # but as the default location of the library.
9164 hardcode_minus_L=yes
9166 esac
9170 irix5* | irix6* | nonstopux*)
9171 if test "$GCC" = yes; then
9172 archive_cmds='$CC -shared $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'
9173 # Try to use the -exported_symbol ld option, if it does not
9174 # work, assume that -exports_file does not work either and
9175 # implicitly export all symbols.
9176 save_LDFLAGS="$LDFLAGS"
9177 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9178 if test x$gcc_no_link = xyes; then
9179 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9182 /* end confdefs.h. */
9183 int foo(void) {}
9184 _ACEOF
9185 if ac_fn_c_try_link "$LINENO"; then :
9186 archive_expsym_cmds='$CC -shared $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'
9189 rm -f core conftest.err conftest.$ac_objext \
9190 conftest$ac_exeext conftest.$ac_ext
9191 LDFLAGS="$save_LDFLAGS"
9192 else
9193 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'
9194 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'
9196 archive_cmds_need_lc='no'
9197 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9198 hardcode_libdir_separator=:
9199 inherit_rpath=yes
9200 link_all_deplibs=yes
9203 netbsd*)
9204 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9205 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9206 else
9207 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9209 hardcode_libdir_flag_spec='-R$libdir'
9210 hardcode_direct=yes
9211 hardcode_shlibpath_var=no
9214 newsos6)
9215 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9216 hardcode_direct=yes
9217 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9218 hardcode_libdir_separator=:
9219 hardcode_shlibpath_var=no
9222 *nto* | *qnx*)
9225 openbsd*)
9226 if test -f /usr/libexec/ld.so; then
9227 hardcode_direct=yes
9228 hardcode_shlibpath_var=no
9229 hardcode_direct_absolute=yes
9230 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9231 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9232 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9233 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9234 export_dynamic_flag_spec='${wl}-E'
9235 else
9236 case $host_os in
9237 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9238 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9239 hardcode_libdir_flag_spec='-R$libdir'
9242 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9243 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9245 esac
9247 else
9248 ld_shlibs=no
9252 os2*)
9253 hardcode_libdir_flag_spec='-L$libdir'
9254 hardcode_minus_L=yes
9255 allow_undefined_flag=unsupported
9256 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9257 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9260 osf3*)
9261 if test "$GCC" = yes; then
9262 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9263 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'
9264 else
9265 allow_undefined_flag=' -expect_unresolved \*'
9266 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'
9268 archive_cmds_need_lc='no'
9269 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9270 hardcode_libdir_separator=:
9273 osf4* | osf5*) # as osf3* with the addition of -msym flag
9274 if test "$GCC" = yes; then
9275 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9276 archive_cmds='$CC -shared${allow_undefined_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'
9277 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9278 else
9279 allow_undefined_flag=' -expect_unresolved \*'
9280 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'
9281 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~
9282 $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'
9284 # Both c and cxx compiler support -rpath directly
9285 hardcode_libdir_flag_spec='-rpath $libdir'
9287 archive_cmds_need_lc='no'
9288 hardcode_libdir_separator=:
9291 solaris*)
9292 no_undefined_flag=' -z defs'
9293 if test "$GCC" = yes; then
9294 wlarc='${wl}'
9295 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9296 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9297 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9298 else
9299 case `$CC -V 2>&1` in
9300 *"Compilers 5.0"*)
9301 wlarc=''
9302 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9303 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9304 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9307 wlarc='${wl}'
9308 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9309 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9310 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9312 esac
9314 hardcode_libdir_flag_spec='-R$libdir'
9315 hardcode_shlibpath_var=no
9316 case $host_os in
9317 solaris2.[0-5] | solaris2.[0-5].*) ;;
9319 # The compiler driver will combine and reorder linker options,
9320 # but understands `-z linker_flag'. GCC discards it without `$wl',
9321 # but is careful enough not to reorder.
9322 # Supported since Solaris 2.6 (maybe 2.5.1?)
9323 if test "$GCC" = yes; then
9324 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9325 else
9326 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9329 esac
9330 link_all_deplibs=yes
9333 sunos4*)
9334 if test "x$host_vendor" = xsequent; then
9335 # Use $CC to link under sequent, because it throws in some extra .o
9336 # files that make .init and .fini sections work.
9337 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9338 else
9339 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9341 hardcode_libdir_flag_spec='-L$libdir'
9342 hardcode_direct=yes
9343 hardcode_minus_L=yes
9344 hardcode_shlibpath_var=no
9347 sysv4)
9348 case $host_vendor in
9349 sni)
9350 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9351 hardcode_direct=yes # is this really true???
9353 siemens)
9354 ## LD is ld it makes a PLAMLIB
9355 ## CC just makes a GrossModule.
9356 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9357 reload_cmds='$CC -r -o $output$reload_objs'
9358 hardcode_direct=no
9360 motorola)
9361 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9362 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9364 esac
9365 runpath_var='LD_RUN_PATH'
9366 hardcode_shlibpath_var=no
9369 sysv4.3*)
9370 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9371 hardcode_shlibpath_var=no
9372 export_dynamic_flag_spec='-Bexport'
9375 sysv4*MP*)
9376 if test -d /usr/nec; then
9377 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9378 hardcode_shlibpath_var=no
9379 runpath_var=LD_RUN_PATH
9380 hardcode_runpath_var=yes
9381 ld_shlibs=yes
9385 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9386 no_undefined_flag='${wl}-z,text'
9387 archive_cmds_need_lc=no
9388 hardcode_shlibpath_var=no
9389 runpath_var='LD_RUN_PATH'
9391 if test "$GCC" = yes; then
9392 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9393 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9394 else
9395 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9396 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9400 sysv5* | sco3.2v5* | sco5v6*)
9401 # Note: We can NOT use -z defs as we might desire, because we do not
9402 # link with -lc, and that would cause any symbols used from libc to
9403 # always be unresolved, which means just about no library would
9404 # ever link correctly. If we're not using GNU ld we use -z text
9405 # though, which does catch some bad symbols but isn't as heavy-handed
9406 # as -z defs.
9407 no_undefined_flag='${wl}-z,text'
9408 allow_undefined_flag='${wl}-z,nodefs'
9409 archive_cmds_need_lc=no
9410 hardcode_shlibpath_var=no
9411 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9412 hardcode_libdir_separator=':'
9413 link_all_deplibs=yes
9414 export_dynamic_flag_spec='${wl}-Bexport'
9415 runpath_var='LD_RUN_PATH'
9417 if test "$GCC" = yes; then
9418 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9419 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9420 else
9421 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9422 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9426 uts4*)
9427 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9428 hardcode_libdir_flag_spec='-L$libdir'
9429 hardcode_shlibpath_var=no
9433 ld_shlibs=no
9435 esac
9437 if test x$host_vendor = xsni; then
9438 case $host in
9439 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9440 export_dynamic_flag_spec='${wl}-Blargedynsym'
9442 esac
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9447 $as_echo "$ld_shlibs" >&6; }
9448 test "$ld_shlibs" = no && can_build_shared=no
9450 with_gnu_ld=$with_gnu_ld
9467 # Do we need to explicitly link libc?
9469 case "x$archive_cmds_need_lc" in
9470 x|xyes)
9471 # Assume -lc should be added
9472 archive_cmds_need_lc=yes
9474 if test "$enable_shared" = yes && test "$GCC" = yes; then
9475 case $archive_cmds in
9476 *'~'*)
9477 # FIXME: we may have to deal with multi-command sequences.
9479 '$CC '*)
9480 # Test whether the compiler implicitly links with -lc since on some
9481 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9482 # to ld, don't add -lc before -lgcc.
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9484 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9485 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9486 $as_echo_n "(cached) " >&6
9487 else
9488 $RM conftest*
9489 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9491 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9492 (eval $ac_compile) 2>&5
9493 ac_status=$?
9494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9495 test $ac_status = 0; } 2>conftest.err; then
9496 soname=conftest
9497 lib=conftest
9498 libobjs=conftest.$ac_objext
9499 deplibs=
9500 wl=$lt_prog_compiler_wl
9501 pic_flag=$lt_prog_compiler_pic
9502 compiler_flags=-v
9503 linker_flags=-v
9504 verstring=
9505 output_objdir=.
9506 libname=conftest
9507 lt_save_allow_undefined_flag=$allow_undefined_flag
9508 allow_undefined_flag=
9509 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9510 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9511 ac_status=$?
9512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9513 test $ac_status = 0; }
9514 then
9515 lt_cv_archive_cmds_need_lc=no
9516 else
9517 lt_cv_archive_cmds_need_lc=yes
9519 allow_undefined_flag=$lt_save_allow_undefined_flag
9520 else
9521 cat conftest.err 1>&5
9523 $RM conftest*
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9527 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9528 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9530 esac
9533 esac
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9692 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9694 if test "$GCC" = yes; then
9695 case $host_os in
9696 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9697 *) lt_awk_arg="/^libraries:/" ;;
9698 esac
9699 case $host_os in
9700 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9701 *) lt_sed_strip_eq="s,=/,/,g" ;;
9702 esac
9703 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9704 case $lt_search_path_spec in
9705 *\;*)
9706 # if the path contains ";" then we assume it to be the separator
9707 # otherwise default to the standard path separator (i.e. ":") - it is
9708 # assumed that no part of a normal pathname contains ";" but that should
9709 # okay in the real world where ";" in dirpaths is itself problematic.
9710 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9713 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9715 esac
9716 # Ok, now we have the path, separated by spaces, we can step through it
9717 # and add multilib dir if necessary.
9718 lt_tmp_lt_search_path_spec=
9719 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9720 for lt_sys_path in $lt_search_path_spec; do
9721 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9722 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9723 else
9724 test -d "$lt_sys_path" && \
9725 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9727 done
9728 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9729 BEGIN {RS=" "; FS="/|\n";} {
9730 lt_foo="";
9731 lt_count=0;
9732 for (lt_i = NF; lt_i > 0; lt_i--) {
9733 if ($lt_i != "" && $lt_i != ".") {
9734 if ($lt_i == "..") {
9735 lt_count++;
9736 } else {
9737 if (lt_count == 0) {
9738 lt_foo="/" $lt_i lt_foo;
9739 } else {
9740 lt_count--;
9745 if (lt_foo != "") { lt_freq[lt_foo]++; }
9746 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9748 # AWK program above erroneously prepends '/' to C:/dos/paths
9749 # for these hosts.
9750 case $host_os in
9751 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9752 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9753 esac
9754 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9755 else
9756 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9758 library_names_spec=
9759 libname_spec='lib$name'
9760 soname_spec=
9761 shrext_cmds=".so"
9762 postinstall_cmds=
9763 postuninstall_cmds=
9764 finish_cmds=
9765 finish_eval=
9766 shlibpath_var=
9767 shlibpath_overrides_runpath=unknown
9768 version_type=none
9769 dynamic_linker="$host_os ld.so"
9770 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9771 need_lib_prefix=unknown
9772 hardcode_into_libs=no
9774 # when you set need_version to no, make sure it does not cause -set_version
9775 # flags to be left without arguments
9776 need_version=unknown
9778 case $host_os in
9779 aix3*)
9780 version_type=linux
9781 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9782 shlibpath_var=LIBPATH
9784 # AIX 3 has no versioning support, so we append a major version to the name.
9785 soname_spec='${libname}${release}${shared_ext}$major'
9788 aix[4-9]*)
9789 version_type=linux
9790 need_lib_prefix=no
9791 need_version=no
9792 hardcode_into_libs=yes
9793 if test "$host_cpu" = ia64; then
9794 # AIX 5 supports IA64
9795 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9796 shlibpath_var=LD_LIBRARY_PATH
9797 else
9798 # With GCC up to 2.95.x, collect2 would create an import file
9799 # for dependence libraries. The import file would start with
9800 # the line `#! .'. This would cause the generated library to
9801 # depend on `.', always an invalid library. This was fixed in
9802 # development snapshots of GCC prior to 3.0.
9803 case $host_os in
9804 aix4 | aix4.[01] | aix4.[01].*)
9805 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9806 echo ' yes '
9807 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9809 else
9810 can_build_shared=no
9813 esac
9814 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9815 # soname into executable. Probably we can add versioning support to
9816 # collect2, so additional links can be useful in future.
9817 if test "$aix_use_runtimelinking" = yes; then
9818 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9819 # instead of lib<name>.a to let people know that these are not
9820 # typical AIX shared libraries.
9821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9822 else
9823 # We preserve .a as extension for shared libraries through AIX4.2
9824 # and later when we are not doing run time linking.
9825 library_names_spec='${libname}${release}.a $libname.a'
9826 soname_spec='${libname}${release}${shared_ext}$major'
9828 shlibpath_var=LIBPATH
9832 amigaos*)
9833 case $host_cpu in
9834 powerpc)
9835 # Since July 2007 AmigaOS4 officially supports .so libraries.
9836 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9839 m68k)
9840 library_names_spec='$libname.ixlibrary $libname.a'
9841 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9842 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
9844 esac
9847 beos*)
9848 library_names_spec='${libname}${shared_ext}'
9849 dynamic_linker="$host_os ld.so"
9850 shlibpath_var=LIBRARY_PATH
9853 bsdi[45]*)
9854 version_type=linux
9855 need_version=no
9856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9857 soname_spec='${libname}${release}${shared_ext}$major'
9858 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9859 shlibpath_var=LD_LIBRARY_PATH
9860 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9861 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9862 # the default ld.so.conf also contains /usr/contrib/lib and
9863 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9864 # libtool to hard-code these into programs
9867 cygwin* | mingw* | pw32* | cegcc*)
9868 version_type=windows
9869 shrext_cmds=".dll"
9870 need_version=no
9871 need_lib_prefix=no
9873 case $GCC,$host_os in
9874 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9875 library_names_spec='$libname.dll.a'
9876 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9877 postinstall_cmds='base_file=`basename \${file}`~
9878 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9879 dldir=$destdir/`dirname \$dlpath`~
9880 test -d \$dldir || mkdir -p \$dldir~
9881 $install_prog $dir/$dlname \$dldir/$dlname~
9882 chmod a+x \$dldir/$dlname~
9883 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9884 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9886 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9887 dlpath=$dir/\$dldll~
9888 $RM \$dlpath'
9889 shlibpath_overrides_runpath=yes
9891 case $host_os in
9892 cygwin*)
9893 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9894 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9896 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9898 mingw* | cegcc*)
9899 # MinGW DLLs use traditional 'lib' prefix
9900 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9902 pw32*)
9903 # pw32 DLLs use 'pw' prefix rather than 'lib'
9904 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9906 esac
9910 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9912 esac
9913 dynamic_linker='Win32 ld.exe'
9914 # FIXME: first we should search . and the directory the executable is in
9915 shlibpath_var=PATH
9918 darwin* | rhapsody*)
9919 dynamic_linker="$host_os dyld"
9920 version_type=darwin
9921 need_lib_prefix=no
9922 need_version=no
9923 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9924 soname_spec='${libname}${release}${major}$shared_ext'
9925 shlibpath_overrides_runpath=yes
9926 shlibpath_var=DYLD_LIBRARY_PATH
9927 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9929 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9930 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9933 dgux*)
9934 version_type=linux
9935 need_lib_prefix=no
9936 need_version=no
9937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9938 soname_spec='${libname}${release}${shared_ext}$major'
9939 shlibpath_var=LD_LIBRARY_PATH
9942 freebsd* | dragonfly*)
9943 # DragonFly does not have aout. When/if they implement a new
9944 # versioning mechanism, adjust this.
9945 if test -x /usr/bin/objformat; then
9946 objformat=`/usr/bin/objformat`
9947 else
9948 case $host_os in
9949 freebsd[23].*) objformat=aout ;;
9950 *) objformat=elf ;;
9951 esac
9953 version_type=freebsd-$objformat
9954 case $version_type in
9955 freebsd-elf*)
9956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9957 need_version=no
9958 need_lib_prefix=no
9960 freebsd-*)
9961 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9962 need_version=yes
9964 esac
9965 shlibpath_var=LD_LIBRARY_PATH
9966 case $host_os in
9967 freebsd2.*)
9968 shlibpath_overrides_runpath=yes
9970 freebsd3.[01]* | freebsdelf3.[01]*)
9971 shlibpath_overrides_runpath=yes
9972 hardcode_into_libs=yes
9974 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9975 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9976 shlibpath_overrides_runpath=no
9977 hardcode_into_libs=yes
9979 *) # from 4.6 on, and DragonFly
9980 shlibpath_overrides_runpath=yes
9981 hardcode_into_libs=yes
9983 esac
9986 haiku*)
9987 version_type=linux
9988 need_lib_prefix=no
9989 need_version=no
9990 dynamic_linker="$host_os runtime_loader"
9991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9992 soname_spec='${libname}${release}${shared_ext}$major'
9993 shlibpath_var=LIBRARY_PATH
9994 shlibpath_overrides_runpath=yes
9995 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9996 hardcode_into_libs=yes
9999 hpux9* | hpux10* | hpux11*)
10000 # Give a soname corresponding to the major version so that dld.sl refuses to
10001 # link against other versions.
10002 version_type=sunos
10003 need_lib_prefix=no
10004 need_version=no
10005 case $host_cpu in
10006 ia64*)
10007 shrext_cmds='.so'
10008 hardcode_into_libs=yes
10009 dynamic_linker="$host_os dld.so"
10010 shlibpath_var=LD_LIBRARY_PATH
10011 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10013 soname_spec='${libname}${release}${shared_ext}$major'
10014 if test "X$HPUX_IA64_MODE" = X32; then
10015 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10016 else
10017 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10019 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10021 hppa*64*)
10022 shrext_cmds='.sl'
10023 hardcode_into_libs=yes
10024 dynamic_linker="$host_os dld.sl"
10025 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10026 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10028 soname_spec='${libname}${release}${shared_ext}$major'
10029 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10030 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10033 shrext_cmds='.sl'
10034 dynamic_linker="$host_os dld.sl"
10035 shlibpath_var=SHLIB_PATH
10036 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10038 soname_spec='${libname}${release}${shared_ext}$major'
10040 esac
10041 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10042 postinstall_cmds='chmod 555 $lib'
10043 # or fails outright, so override atomically:
10044 install_override_mode=555
10047 interix[3-9]*)
10048 version_type=linux
10049 need_lib_prefix=no
10050 need_version=no
10051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10052 soname_spec='${libname}${release}${shared_ext}$major'
10053 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10054 shlibpath_var=LD_LIBRARY_PATH
10055 shlibpath_overrides_runpath=no
10056 hardcode_into_libs=yes
10059 irix5* | irix6* | nonstopux*)
10060 case $host_os in
10061 nonstopux*) version_type=nonstopux ;;
10063 if test "$lt_cv_prog_gnu_ld" = yes; then
10064 version_type=linux
10065 else
10066 version_type=irix
10067 fi ;;
10068 esac
10069 need_lib_prefix=no
10070 need_version=no
10071 soname_spec='${libname}${release}${shared_ext}$major'
10072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10073 case $host_os in
10074 irix5* | nonstopux*)
10075 libsuff= shlibsuff=
10078 case $LD in # libtool.m4 will add one of these switches to LD
10079 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10080 libsuff= shlibsuff= libmagic=32-bit;;
10081 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10082 libsuff=32 shlibsuff=N32 libmagic=N32;;
10083 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10084 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10085 *) libsuff= shlibsuff= libmagic=never-match;;
10086 esac
10088 esac
10089 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10090 shlibpath_overrides_runpath=no
10091 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10092 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10093 hardcode_into_libs=yes
10096 # No shared lib support for Linux oldld, aout, or coff.
10097 linux*oldld* | linux*aout* | linux*coff*)
10098 dynamic_linker=no
10101 # This must be Linux ELF.
10103 # uclinux* changes (here and below) have been submitted to the libtool
10104 # project, but have not yet been accepted: they are GCC-local changes
10105 # for the time being. (See
10106 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10107 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
10108 version_type=linux
10109 need_lib_prefix=no
10110 need_version=no
10111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10112 soname_spec='${libname}${release}${shared_ext}$major'
10113 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10114 shlibpath_var=LD_LIBRARY_PATH
10115 shlibpath_overrides_runpath=no
10117 # Some binutils ld are patched to set DT_RUNPATH
10118 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10119 $as_echo_n "(cached) " >&6
10120 else
10121 lt_cv_shlibpath_overrides_runpath=no
10122 save_LDFLAGS=$LDFLAGS
10123 save_libdir=$libdir
10124 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10125 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10126 if test x$gcc_no_link = xyes; then
10127 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10130 /* end confdefs.h. */
10133 main ()
10137 return 0;
10139 _ACEOF
10140 if ac_fn_c_try_link "$LINENO"; then :
10141 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10142 lt_cv_shlibpath_overrides_runpath=yes
10145 rm -f core conftest.err conftest.$ac_objext \
10146 conftest$ac_exeext conftest.$ac_ext
10147 LDFLAGS=$save_LDFLAGS
10148 libdir=$save_libdir
10152 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10154 # This implies no fast_install, which is unacceptable.
10155 # Some rework will be needed to allow for fast_install
10156 # before this can be enabled.
10157 hardcode_into_libs=yes
10159 # Append ld.so.conf contents to the search path
10160 if test -f /etc/ld.so.conf; then
10161 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' ' '`
10162 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10165 # We used to test for /lib/ld.so.1 and disable shared libraries on
10166 # powerpc, because MkLinux only supported shared libraries with the
10167 # GNU dynamic linker. Since this was broken with cross compilers,
10168 # most powerpc-linux boxes support dynamic linking these days and
10169 # people can always --disable-shared, the test was removed, and we
10170 # assume the GNU/Linux dynamic linker is in use.
10171 dynamic_linker='GNU/Linux ld.so'
10174 netbsd*)
10175 version_type=sunos
10176 need_lib_prefix=no
10177 need_version=no
10178 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10180 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10181 dynamic_linker='NetBSD (a.out) ld.so'
10182 else
10183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10184 soname_spec='${libname}${release}${shared_ext}$major'
10185 dynamic_linker='NetBSD ld.elf_so'
10187 shlibpath_var=LD_LIBRARY_PATH
10188 shlibpath_overrides_runpath=yes
10189 hardcode_into_libs=yes
10192 newsos6)
10193 version_type=linux
10194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10195 shlibpath_var=LD_LIBRARY_PATH
10196 shlibpath_overrides_runpath=yes
10199 *nto* | *qnx*)
10200 version_type=qnx
10201 need_lib_prefix=no
10202 need_version=no
10203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10204 soname_spec='${libname}${release}${shared_ext}$major'
10205 shlibpath_var=LD_LIBRARY_PATH
10206 shlibpath_overrides_runpath=no
10207 hardcode_into_libs=yes
10208 dynamic_linker='ldqnx.so'
10211 openbsd*)
10212 version_type=sunos
10213 sys_lib_dlsearch_path_spec="/usr/lib"
10214 need_lib_prefix=no
10215 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10216 case $host_os in
10217 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10218 *) need_version=no ;;
10219 esac
10220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10221 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10222 shlibpath_var=LD_LIBRARY_PATH
10223 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10224 case $host_os in
10225 openbsd2.[89] | openbsd2.[89].*)
10226 shlibpath_overrides_runpath=no
10229 shlibpath_overrides_runpath=yes
10231 esac
10232 else
10233 shlibpath_overrides_runpath=yes
10237 os2*)
10238 libname_spec='$name'
10239 shrext_cmds=".dll"
10240 need_lib_prefix=no
10241 library_names_spec='$libname${shared_ext} $libname.a'
10242 dynamic_linker='OS/2 ld.exe'
10243 shlibpath_var=LIBPATH
10246 osf3* | osf4* | osf5*)
10247 version_type=osf
10248 need_lib_prefix=no
10249 need_version=no
10250 soname_spec='${libname}${release}${shared_ext}$major'
10251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10252 shlibpath_var=LD_LIBRARY_PATH
10253 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10254 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10257 rdos*)
10258 dynamic_linker=no
10261 solaris*)
10262 version_type=linux
10263 need_lib_prefix=no
10264 need_version=no
10265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10266 soname_spec='${libname}${release}${shared_ext}$major'
10267 shlibpath_var=LD_LIBRARY_PATH
10268 shlibpath_overrides_runpath=yes
10269 hardcode_into_libs=yes
10270 # ldd complains unless libraries are executable
10271 postinstall_cmds='chmod +x $lib'
10274 sunos4*)
10275 version_type=sunos
10276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10277 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10278 shlibpath_var=LD_LIBRARY_PATH
10279 shlibpath_overrides_runpath=yes
10280 if test "$with_gnu_ld" = yes; then
10281 need_lib_prefix=no
10283 need_version=yes
10286 sysv4 | sysv4.3*)
10287 version_type=linux
10288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10289 soname_spec='${libname}${release}${shared_ext}$major'
10290 shlibpath_var=LD_LIBRARY_PATH
10291 case $host_vendor in
10292 sni)
10293 shlibpath_overrides_runpath=no
10294 need_lib_prefix=no
10295 runpath_var=LD_RUN_PATH
10297 siemens)
10298 need_lib_prefix=no
10300 motorola)
10301 need_lib_prefix=no
10302 need_version=no
10303 shlibpath_overrides_runpath=no
10304 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10306 esac
10309 sysv4*MP*)
10310 if test -d /usr/nec ;then
10311 version_type=linux
10312 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10313 soname_spec='$libname${shared_ext}.$major'
10314 shlibpath_var=LD_LIBRARY_PATH
10318 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10319 version_type=freebsd-elf
10320 need_lib_prefix=no
10321 need_version=no
10322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10323 soname_spec='${libname}${release}${shared_ext}$major'
10324 shlibpath_var=LD_LIBRARY_PATH
10325 shlibpath_overrides_runpath=yes
10326 hardcode_into_libs=yes
10327 if test "$with_gnu_ld" = yes; then
10328 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10329 else
10330 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10331 case $host_os in
10332 sco3.2v5*)
10333 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10335 esac
10337 sys_lib_dlsearch_path_spec='/usr/lib'
10340 tpf*)
10341 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10342 version_type=linux
10343 need_lib_prefix=no
10344 need_version=no
10345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10346 shlibpath_var=LD_LIBRARY_PATH
10347 shlibpath_overrides_runpath=no
10348 hardcode_into_libs=yes
10351 uts4*)
10352 version_type=linux
10353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10354 soname_spec='${libname}${release}${shared_ext}$major'
10355 shlibpath_var=LD_LIBRARY_PATH
10358 # Shared libraries for VwWorks, >= 7 only at this stage
10359 # and (fpic) still incompatible with "large" code models
10360 # in a few configurations. Only for RTP mode in any case,
10361 # and upon explicit request at configure time.
10362 vxworks7*)
10363 dynamic_linker=no
10364 case ${with_multisubdir}-${enable_shared} in
10365 *large*)
10367 *mrtp*-yes)
10368 version_type=linux
10369 need_lib_prefix=no
10370 need_version=no
10371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10372 soname_spec='${libname}${release}${shared_ext}$major'
10373 dynamic_linker="$host_os module_loader"
10375 esac
10378 dynamic_linker=no
10380 esac
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10382 $as_echo "$dynamic_linker" >&6; }
10383 test "$dynamic_linker" = no && can_build_shared=no
10385 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10386 if test "$GCC" = yes; then
10387 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10390 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10391 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10393 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10394 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10489 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10490 hardcode_action=
10491 if test -n "$hardcode_libdir_flag_spec" ||
10492 test -n "$runpath_var" ||
10493 test "X$hardcode_automatic" = "Xyes" ; then
10495 # We can hardcode non-existent directories.
10496 if test "$hardcode_direct" != no &&
10497 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10498 # have to relink, otherwise we might link with an installed library
10499 # when we should be linking with a yet-to-be-installed one
10500 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10501 test "$hardcode_minus_L" != no; then
10502 # Linking always hardcodes the temporary library directory.
10503 hardcode_action=relink
10504 else
10505 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10506 hardcode_action=immediate
10508 else
10509 # We cannot hardcode anything, or else we can only hardcode existing
10510 # directories.
10511 hardcode_action=unsupported
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10514 $as_echo "$hardcode_action" >&6; }
10516 if test "$hardcode_action" = relink ||
10517 test "$inherit_rpath" = yes; then
10518 # Fast installation is not supported
10519 enable_fast_install=no
10520 elif test "$shlibpath_overrides_runpath" = yes ||
10521 test "$enable_shared" = no; then
10522 # Fast installation is not necessary
10523 enable_fast_install=needless
10531 if test "x$enable_dlopen" != xyes; then
10532 enable_dlopen=unknown
10533 enable_dlopen_self=unknown
10534 enable_dlopen_self_static=unknown
10535 else
10536 lt_cv_dlopen=no
10537 lt_cv_dlopen_libs=
10539 case $host_os in
10540 beos*)
10541 lt_cv_dlopen="load_add_on"
10542 lt_cv_dlopen_libs=
10543 lt_cv_dlopen_self=yes
10546 mingw* | pw32* | cegcc*)
10547 lt_cv_dlopen="LoadLibrary"
10548 lt_cv_dlopen_libs=
10551 cygwin*)
10552 lt_cv_dlopen="dlopen"
10553 lt_cv_dlopen_libs=
10556 darwin*)
10557 # if libdl is installed we need to link against it
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10559 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10560 if ${ac_cv_lib_dl_dlopen+:} false; then :
10561 $as_echo_n "(cached) " >&6
10562 else
10563 ac_check_lib_save_LIBS=$LIBS
10564 LIBS="-ldl $LIBS"
10565 if test x$gcc_no_link = xyes; then
10566 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10569 /* end confdefs.h. */
10571 /* Override any GCC internal prototype to avoid an error.
10572 Use char because int might match the return type of a GCC
10573 builtin and then its argument prototype would still apply. */
10574 #ifdef __cplusplus
10575 extern "C"
10576 #endif
10577 char dlopen ();
10579 main ()
10581 return dlopen ();
10583 return 0;
10585 _ACEOF
10586 if ac_fn_c_try_link "$LINENO"; then :
10587 ac_cv_lib_dl_dlopen=yes
10588 else
10589 ac_cv_lib_dl_dlopen=no
10591 rm -f core conftest.err conftest.$ac_objext \
10592 conftest$ac_exeext conftest.$ac_ext
10593 LIBS=$ac_check_lib_save_LIBS
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10596 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10597 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10598 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10599 else
10601 lt_cv_dlopen="dyld"
10602 lt_cv_dlopen_libs=
10603 lt_cv_dlopen_self=yes
10610 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10611 if test "x$ac_cv_func_shl_load" = xyes; then :
10612 lt_cv_dlopen="shl_load"
10613 else
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10615 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10616 if ${ac_cv_lib_dld_shl_load+:} false; then :
10617 $as_echo_n "(cached) " >&6
10618 else
10619 ac_check_lib_save_LIBS=$LIBS
10620 LIBS="-ldld $LIBS"
10621 if test x$gcc_no_link = xyes; then
10622 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10625 /* end confdefs.h. */
10627 /* Override any GCC internal prototype to avoid an error.
10628 Use char because int might match the return type of a GCC
10629 builtin and then its argument prototype would still apply. */
10630 #ifdef __cplusplus
10631 extern "C"
10632 #endif
10633 char shl_load ();
10635 main ()
10637 return shl_load ();
10639 return 0;
10641 _ACEOF
10642 if ac_fn_c_try_link "$LINENO"; then :
10643 ac_cv_lib_dld_shl_load=yes
10644 else
10645 ac_cv_lib_dld_shl_load=no
10647 rm -f core conftest.err conftest.$ac_objext \
10648 conftest$ac_exeext conftest.$ac_ext
10649 LIBS=$ac_check_lib_save_LIBS
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10652 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10653 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10654 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10655 else
10656 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10657 if test "x$ac_cv_func_dlopen" = xyes; then :
10658 lt_cv_dlopen="dlopen"
10659 else
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10661 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10662 if ${ac_cv_lib_dl_dlopen+:} false; then :
10663 $as_echo_n "(cached) " >&6
10664 else
10665 ac_check_lib_save_LIBS=$LIBS
10666 LIBS="-ldl $LIBS"
10667 if test x$gcc_no_link = xyes; then
10668 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10671 /* end confdefs.h. */
10673 /* Override any GCC internal prototype to avoid an error.
10674 Use char because int might match the return type of a GCC
10675 builtin and then its argument prototype would still apply. */
10676 #ifdef __cplusplus
10677 extern "C"
10678 #endif
10679 char dlopen ();
10681 main ()
10683 return dlopen ();
10685 return 0;
10687 _ACEOF
10688 if ac_fn_c_try_link "$LINENO"; then :
10689 ac_cv_lib_dl_dlopen=yes
10690 else
10691 ac_cv_lib_dl_dlopen=no
10693 rm -f core conftest.err conftest.$ac_objext \
10694 conftest$ac_exeext conftest.$ac_ext
10695 LIBS=$ac_check_lib_save_LIBS
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10698 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10699 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10700 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10701 else
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10703 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10704 if ${ac_cv_lib_svld_dlopen+:} false; then :
10705 $as_echo_n "(cached) " >&6
10706 else
10707 ac_check_lib_save_LIBS=$LIBS
10708 LIBS="-lsvld $LIBS"
10709 if test x$gcc_no_link = xyes; then
10710 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10713 /* end confdefs.h. */
10715 /* Override any GCC internal prototype to avoid an error.
10716 Use char because int might match the return type of a GCC
10717 builtin and then its argument prototype would still apply. */
10718 #ifdef __cplusplus
10719 extern "C"
10720 #endif
10721 char dlopen ();
10723 main ()
10725 return dlopen ();
10727 return 0;
10729 _ACEOF
10730 if ac_fn_c_try_link "$LINENO"; then :
10731 ac_cv_lib_svld_dlopen=yes
10732 else
10733 ac_cv_lib_svld_dlopen=no
10735 rm -f core conftest.err conftest.$ac_objext \
10736 conftest$ac_exeext conftest.$ac_ext
10737 LIBS=$ac_check_lib_save_LIBS
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10740 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10741 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10742 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10743 else
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10745 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10746 if ${ac_cv_lib_dld_dld_link+:} false; then :
10747 $as_echo_n "(cached) " >&6
10748 else
10749 ac_check_lib_save_LIBS=$LIBS
10750 LIBS="-ldld $LIBS"
10751 if test x$gcc_no_link = xyes; then
10752 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10755 /* end confdefs.h. */
10757 /* Override any GCC internal prototype to avoid an error.
10758 Use char because int might match the return type of a GCC
10759 builtin and then its argument prototype would still apply. */
10760 #ifdef __cplusplus
10761 extern "C"
10762 #endif
10763 char dld_link ();
10765 main ()
10767 return dld_link ();
10769 return 0;
10771 _ACEOF
10772 if ac_fn_c_try_link "$LINENO"; then :
10773 ac_cv_lib_dld_dld_link=yes
10774 else
10775 ac_cv_lib_dld_dld_link=no
10777 rm -f core conftest.err conftest.$ac_objext \
10778 conftest$ac_exeext conftest.$ac_ext
10779 LIBS=$ac_check_lib_save_LIBS
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10782 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10783 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10784 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10803 esac
10805 if test "x$lt_cv_dlopen" != xno; then
10806 enable_dlopen=yes
10807 else
10808 enable_dlopen=no
10811 case $lt_cv_dlopen in
10812 dlopen)
10813 save_CPPFLAGS="$CPPFLAGS"
10814 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10816 save_LDFLAGS="$LDFLAGS"
10817 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10819 save_LIBS="$LIBS"
10820 LIBS="$lt_cv_dlopen_libs $LIBS"
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10823 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10824 if ${lt_cv_dlopen_self+:} false; then :
10825 $as_echo_n "(cached) " >&6
10826 else
10827 if test "$cross_compiling" = yes; then :
10828 lt_cv_dlopen_self=cross
10829 else
10830 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10831 lt_status=$lt_dlunknown
10832 cat > conftest.$ac_ext <<_LT_EOF
10833 #line 10833 "configure"
10834 #include "confdefs.h"
10836 #if HAVE_DLFCN_H
10837 #include <dlfcn.h>
10838 #endif
10840 #include <stdio.h>
10842 #ifdef RTLD_GLOBAL
10843 # define LT_DLGLOBAL RTLD_GLOBAL
10844 #else
10845 # ifdef DL_GLOBAL
10846 # define LT_DLGLOBAL DL_GLOBAL
10847 # else
10848 # define LT_DLGLOBAL 0
10849 # endif
10850 #endif
10852 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10853 find out it does not work in some platform. */
10854 #ifndef LT_DLLAZY_OR_NOW
10855 # ifdef RTLD_LAZY
10856 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10857 # else
10858 # ifdef DL_LAZY
10859 # define LT_DLLAZY_OR_NOW DL_LAZY
10860 # else
10861 # ifdef RTLD_NOW
10862 # define LT_DLLAZY_OR_NOW RTLD_NOW
10863 # else
10864 # ifdef DL_NOW
10865 # define LT_DLLAZY_OR_NOW DL_NOW
10866 # else
10867 # define LT_DLLAZY_OR_NOW 0
10868 # endif
10869 # endif
10870 # endif
10871 # endif
10872 #endif
10874 /* When -fvisbility=hidden is used, assume the code has been annotated
10875 correspondingly for the symbols needed. */
10876 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10877 void fnord () __attribute__((visibility("default")));
10878 #endif
10880 void fnord () { int i=42; }
10881 int main ()
10883 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10884 int status = $lt_dlunknown;
10886 if (self)
10888 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10889 else
10891 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10892 else puts (dlerror ());
10894 /* dlclose (self); */
10896 else
10897 puts (dlerror ());
10899 return status;
10901 _LT_EOF
10902 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10903 (eval $ac_link) 2>&5
10904 ac_status=$?
10905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10906 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10907 (./conftest; exit; ) >&5 2>/dev/null
10908 lt_status=$?
10909 case x$lt_status in
10910 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10911 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10912 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10913 esac
10914 else :
10915 # compilation failed
10916 lt_cv_dlopen_self=no
10919 rm -fr conftest*
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10924 $as_echo "$lt_cv_dlopen_self" >&6; }
10926 if test "x$lt_cv_dlopen_self" = xyes; then
10927 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10929 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10930 if ${lt_cv_dlopen_self_static+:} false; then :
10931 $as_echo_n "(cached) " >&6
10932 else
10933 if test "$cross_compiling" = yes; then :
10934 lt_cv_dlopen_self_static=cross
10935 else
10936 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10937 lt_status=$lt_dlunknown
10938 cat > conftest.$ac_ext <<_LT_EOF
10939 #line 10939 "configure"
10940 #include "confdefs.h"
10942 #if HAVE_DLFCN_H
10943 #include <dlfcn.h>
10944 #endif
10946 #include <stdio.h>
10948 #ifdef RTLD_GLOBAL
10949 # define LT_DLGLOBAL RTLD_GLOBAL
10950 #else
10951 # ifdef DL_GLOBAL
10952 # define LT_DLGLOBAL DL_GLOBAL
10953 # else
10954 # define LT_DLGLOBAL 0
10955 # endif
10956 #endif
10958 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10959 find out it does not work in some platform. */
10960 #ifndef LT_DLLAZY_OR_NOW
10961 # ifdef RTLD_LAZY
10962 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10963 # else
10964 # ifdef DL_LAZY
10965 # define LT_DLLAZY_OR_NOW DL_LAZY
10966 # else
10967 # ifdef RTLD_NOW
10968 # define LT_DLLAZY_OR_NOW RTLD_NOW
10969 # else
10970 # ifdef DL_NOW
10971 # define LT_DLLAZY_OR_NOW DL_NOW
10972 # else
10973 # define LT_DLLAZY_OR_NOW 0
10974 # endif
10975 # endif
10976 # endif
10977 # endif
10978 #endif
10980 /* When -fvisbility=hidden is used, assume the code has been annotated
10981 correspondingly for the symbols needed. */
10982 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10983 void fnord () __attribute__((visibility("default")));
10984 #endif
10986 void fnord () { int i=42; }
10987 int main ()
10989 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10990 int status = $lt_dlunknown;
10992 if (self)
10994 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10995 else
10997 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10998 else puts (dlerror ());
11000 /* dlclose (self); */
11002 else
11003 puts (dlerror ());
11005 return status;
11007 _LT_EOF
11008 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11009 (eval $ac_link) 2>&5
11010 ac_status=$?
11011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11012 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11013 (./conftest; exit; ) >&5 2>/dev/null
11014 lt_status=$?
11015 case x$lt_status in
11016 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11017 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11018 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11019 esac
11020 else :
11021 # compilation failed
11022 lt_cv_dlopen_self_static=no
11025 rm -fr conftest*
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11030 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11033 CPPFLAGS="$save_CPPFLAGS"
11034 LDFLAGS="$save_LDFLAGS"
11035 LIBS="$save_LIBS"
11037 esac
11039 case $lt_cv_dlopen_self in
11040 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11041 *) enable_dlopen_self=unknown ;;
11042 esac
11044 case $lt_cv_dlopen_self_static in
11045 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11046 *) enable_dlopen_self_static=unknown ;;
11047 esac
11066 striplib=
11067 old_striplib=
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11069 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11070 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11071 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11072 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11074 $as_echo "yes" >&6; }
11075 else
11076 # FIXME - insert some real tests, host_os isn't really good enough
11077 case $host_os in
11078 darwin*)
11079 if test -n "$STRIP" ; then
11080 striplib="$STRIP -x"
11081 old_striplib="$STRIP -S"
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11083 $as_echo "yes" >&6; }
11084 else
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11086 $as_echo "no" >&6; }
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11091 $as_echo "no" >&6; }
11093 esac
11107 # Report which library types will actually be built
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11109 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11111 $as_echo "$can_build_shared" >&6; }
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11114 $as_echo_n "checking whether to build shared libraries... " >&6; }
11115 test "$can_build_shared" = "no" && enable_shared=no
11117 # On AIX, shared libraries and static libraries use the same namespace, and
11118 # are all built from PIC.
11119 case $host_os in
11120 aix3*)
11121 test "$enable_shared" = yes && enable_static=no
11122 if test -n "$RANLIB"; then
11123 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11124 postinstall_cmds='$RANLIB $lib'
11128 aix[4-9]*)
11129 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11130 test "$enable_shared" = yes && enable_static=no
11133 esac
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11135 $as_echo "$enable_shared" >&6; }
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11138 $as_echo_n "checking whether to build static libraries... " >&6; }
11139 # Make sure either enable_shared or enable_static is yes.
11140 test "$enable_shared" = yes || enable_static=yes
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11142 $as_echo "$enable_static" >&6; }
11148 ac_ext=c
11149 ac_cpp='$CPP $CPPFLAGS'
11150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11154 CC="$lt_save_CC"
11168 ac_config_commands="$ac_config_commands libtool"
11173 # Only expand once:
11179 case $host in
11180 *-cygwin* | *-mingw*)
11181 # 'host' will be top-level target in the case of a target lib,
11182 # we must compare to with_cross_host to decide if this is a native
11183 # or cross-compiler and select where to install dlls appropriately.
11184 if test -n "$with_cross_host" &&
11185 test x"$with_cross_host" != x"no"; then
11186 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
11187 else
11188 lt_host_flags='-no-undefined -bindir "$(bindir)"';
11192 lt_host_flags=
11194 esac
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11203 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11204 # Check whether --enable-maintainer-mode was given.
11205 if test "${enable_maintainer_mode+set}" = set; then :
11206 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11207 else
11208 USE_MAINTAINER_MODE=no
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11212 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11213 if test $USE_MAINTAINER_MODE = yes; then
11214 MAINTAINER_MODE_TRUE=
11215 MAINTAINER_MODE_FALSE='#'
11216 else
11217 MAINTAINER_MODE_TRUE='#'
11218 MAINTAINER_MODE_FALSE=
11221 MAINT=$MAINTAINER_MODE_TRUE
11225 ac_ext=c
11226 ac_cpp='$CPP $CPPFLAGS'
11227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11231 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
11232 # We must force CC to /not/ be precious variables; otherwise
11233 # the wrong, non-multilib-adjusted value will be used in multilibs.
11234 # As a side effect, we have to subst CFLAGS ourselves.
11238 ac_ext=c
11239 ac_cpp='$CPP $CPPFLAGS'
11240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11243 if test -n "$ac_tool_prefix"; then
11244 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11245 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11247 $as_echo_n "checking for $ac_word... " >&6; }
11248 if ${ac_cv_prog_CC+:} false; then :
11249 $as_echo_n "(cached) " >&6
11250 else
11251 if test -n "$CC"; then
11252 ac_cv_prog_CC="$CC" # Let the user override the test.
11253 else
11254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11255 for as_dir in $PATH
11257 IFS=$as_save_IFS
11258 test -z "$as_dir" && as_dir=.
11259 for ac_exec_ext in '' $ac_executable_extensions; do
11260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11261 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11263 break 2
11265 done
11266 done
11267 IFS=$as_save_IFS
11271 CC=$ac_cv_prog_CC
11272 if test -n "$CC"; then
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11274 $as_echo "$CC" >&6; }
11275 else
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11277 $as_echo "no" >&6; }
11282 if test -z "$ac_cv_prog_CC"; then
11283 ac_ct_CC=$CC
11284 # Extract the first word of "gcc", so it can be a program name with args.
11285 set dummy gcc; ac_word=$2
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11287 $as_echo_n "checking for $ac_word... " >&6; }
11288 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11289 $as_echo_n "(cached) " >&6
11290 else
11291 if test -n "$ac_ct_CC"; then
11292 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11293 else
11294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11295 for as_dir in $PATH
11297 IFS=$as_save_IFS
11298 test -z "$as_dir" && as_dir=.
11299 for ac_exec_ext in '' $ac_executable_extensions; do
11300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11301 ac_cv_prog_ac_ct_CC="gcc"
11302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11303 break 2
11305 done
11306 done
11307 IFS=$as_save_IFS
11311 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11312 if test -n "$ac_ct_CC"; then
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11314 $as_echo "$ac_ct_CC" >&6; }
11315 else
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11317 $as_echo "no" >&6; }
11320 if test "x$ac_ct_CC" = x; then
11321 CC=""
11322 else
11323 case $cross_compiling:$ac_tool_warned in
11324 yes:)
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11326 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11327 ac_tool_warned=yes ;;
11328 esac
11329 CC=$ac_ct_CC
11331 else
11332 CC="$ac_cv_prog_CC"
11335 if test -z "$CC"; then
11336 if test -n "$ac_tool_prefix"; then
11337 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11338 set dummy ${ac_tool_prefix}cc; ac_word=$2
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11340 $as_echo_n "checking for $ac_word... " >&6; }
11341 if ${ac_cv_prog_CC+:} false; then :
11342 $as_echo_n "(cached) " >&6
11343 else
11344 if test -n "$CC"; then
11345 ac_cv_prog_CC="$CC" # Let the user override the test.
11346 else
11347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11348 for as_dir in $PATH
11350 IFS=$as_save_IFS
11351 test -z "$as_dir" && as_dir=.
11352 for ac_exec_ext in '' $ac_executable_extensions; do
11353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11354 ac_cv_prog_CC="${ac_tool_prefix}cc"
11355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11356 break 2
11358 done
11359 done
11360 IFS=$as_save_IFS
11364 CC=$ac_cv_prog_CC
11365 if test -n "$CC"; then
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11367 $as_echo "$CC" >&6; }
11368 else
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11370 $as_echo "no" >&6; }
11376 if test -z "$CC"; then
11377 # Extract the first word of "cc", so it can be a program name with args.
11378 set dummy cc; ac_word=$2
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11380 $as_echo_n "checking for $ac_word... " >&6; }
11381 if ${ac_cv_prog_CC+:} false; then :
11382 $as_echo_n "(cached) " >&6
11383 else
11384 if test -n "$CC"; then
11385 ac_cv_prog_CC="$CC" # Let the user override the test.
11386 else
11387 ac_prog_rejected=no
11388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11389 for as_dir in $PATH
11391 IFS=$as_save_IFS
11392 test -z "$as_dir" && as_dir=.
11393 for ac_exec_ext in '' $ac_executable_extensions; do
11394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11395 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11396 ac_prog_rejected=yes
11397 continue
11399 ac_cv_prog_CC="cc"
11400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11401 break 2
11403 done
11404 done
11405 IFS=$as_save_IFS
11407 if test $ac_prog_rejected = yes; then
11408 # We found a bogon in the path, so make sure we never use it.
11409 set dummy $ac_cv_prog_CC
11410 shift
11411 if test $# != 0; then
11412 # We chose a different compiler from the bogus one.
11413 # However, it has the same basename, so the bogon will be chosen
11414 # first if we set CC to just the basename; use the full file name.
11415 shift
11416 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11421 CC=$ac_cv_prog_CC
11422 if test -n "$CC"; then
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11424 $as_echo "$CC" >&6; }
11425 else
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11427 $as_echo "no" >&6; }
11432 if test -z "$CC"; then
11433 if test -n "$ac_tool_prefix"; then
11434 for ac_prog in cl.exe
11436 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11437 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11439 $as_echo_n "checking for $ac_word... " >&6; }
11440 if ${ac_cv_prog_CC+:} false; then :
11441 $as_echo_n "(cached) " >&6
11442 else
11443 if test -n "$CC"; then
11444 ac_cv_prog_CC="$CC" # Let the user override the test.
11445 else
11446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11447 for as_dir in $PATH
11449 IFS=$as_save_IFS
11450 test -z "$as_dir" && as_dir=.
11451 for ac_exec_ext in '' $ac_executable_extensions; do
11452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11453 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11455 break 2
11457 done
11458 done
11459 IFS=$as_save_IFS
11463 CC=$ac_cv_prog_CC
11464 if test -n "$CC"; then
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11466 $as_echo "$CC" >&6; }
11467 else
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11469 $as_echo "no" >&6; }
11473 test -n "$CC" && break
11474 done
11476 if test -z "$CC"; then
11477 ac_ct_CC=$CC
11478 for ac_prog in cl.exe
11480 # Extract the first word of "$ac_prog", so it can be a program name with args.
11481 set dummy $ac_prog; ac_word=$2
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11483 $as_echo_n "checking for $ac_word... " >&6; }
11484 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11485 $as_echo_n "(cached) " >&6
11486 else
11487 if test -n "$ac_ct_CC"; then
11488 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11489 else
11490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11491 for as_dir in $PATH
11493 IFS=$as_save_IFS
11494 test -z "$as_dir" && as_dir=.
11495 for ac_exec_ext in '' $ac_executable_extensions; do
11496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11497 ac_cv_prog_ac_ct_CC="$ac_prog"
11498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11499 break 2
11501 done
11502 done
11503 IFS=$as_save_IFS
11507 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11508 if test -n "$ac_ct_CC"; then
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11510 $as_echo "$ac_ct_CC" >&6; }
11511 else
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11513 $as_echo "no" >&6; }
11517 test -n "$ac_ct_CC" && break
11518 done
11520 if test "x$ac_ct_CC" = x; then
11521 CC=""
11522 else
11523 case $cross_compiling:$ac_tool_warned in
11524 yes:)
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11526 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11527 ac_tool_warned=yes ;;
11528 esac
11529 CC=$ac_ct_CC
11536 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11537 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11538 as_fn_error $? "no acceptable C compiler found in \$PATH
11539 See \`config.log' for more details" "$LINENO" 5; }
11541 # Provide some information about the compiler.
11542 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11543 set X $ac_compile
11544 ac_compiler=$2
11545 for ac_option in --version -v -V -qversion; do
11546 { { ac_try="$ac_compiler $ac_option >&5"
11547 case "(($ac_try" in
11548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11549 *) ac_try_echo=$ac_try;;
11550 esac
11551 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11552 $as_echo "$ac_try_echo"; } >&5
11553 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11554 ac_status=$?
11555 if test -s conftest.err; then
11556 sed '10a\
11557 ... rest of stderr output deleted ...
11558 10q' conftest.err >conftest.er1
11559 cat conftest.er1 >&5
11561 rm -f conftest.er1 conftest.err
11562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11563 test $ac_status = 0; }
11564 done
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11567 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11568 if ${ac_cv_c_compiler_gnu+:} false; then :
11569 $as_echo_n "(cached) " >&6
11570 else
11571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11572 /* end confdefs.h. */
11575 main ()
11577 #ifndef __GNUC__
11578 choke me
11579 #endif
11582 return 0;
11584 _ACEOF
11585 if ac_fn_c_try_compile "$LINENO"; then :
11586 ac_compiler_gnu=yes
11587 else
11588 ac_compiler_gnu=no
11590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11591 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11595 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11596 if test $ac_compiler_gnu = yes; then
11597 GCC=yes
11598 else
11599 GCC=
11601 ac_test_CFLAGS=${CFLAGS+set}
11602 ac_save_CFLAGS=$CFLAGS
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11604 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11605 if ${ac_cv_prog_cc_g+:} false; then :
11606 $as_echo_n "(cached) " >&6
11607 else
11608 ac_save_c_werror_flag=$ac_c_werror_flag
11609 ac_c_werror_flag=yes
11610 ac_cv_prog_cc_g=no
11611 CFLAGS="-g"
11612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11613 /* end confdefs.h. */
11616 main ()
11620 return 0;
11622 _ACEOF
11623 if ac_fn_c_try_compile "$LINENO"; then :
11624 ac_cv_prog_cc_g=yes
11625 else
11626 CFLAGS=""
11627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11628 /* end confdefs.h. */
11631 main ()
11635 return 0;
11637 _ACEOF
11638 if ac_fn_c_try_compile "$LINENO"; then :
11640 else
11641 ac_c_werror_flag=$ac_save_c_werror_flag
11642 CFLAGS="-g"
11643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11644 /* end confdefs.h. */
11647 main ()
11651 return 0;
11653 _ACEOF
11654 if ac_fn_c_try_compile "$LINENO"; then :
11655 ac_cv_prog_cc_g=yes
11657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11662 ac_c_werror_flag=$ac_save_c_werror_flag
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11665 $as_echo "$ac_cv_prog_cc_g" >&6; }
11666 if test "$ac_test_CFLAGS" = set; then
11667 CFLAGS=$ac_save_CFLAGS
11668 elif test $ac_cv_prog_cc_g = yes; then
11669 if test "$GCC" = yes; then
11670 CFLAGS="-g -O2"
11671 else
11672 CFLAGS="-g"
11674 else
11675 if test "$GCC" = yes; then
11676 CFLAGS="-O2"
11677 else
11678 CFLAGS=
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11682 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11683 if ${ac_cv_prog_cc_c89+:} false; then :
11684 $as_echo_n "(cached) " >&6
11685 else
11686 ac_cv_prog_cc_c89=no
11687 ac_save_CC=$CC
11688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11689 /* end confdefs.h. */
11690 #include <stdarg.h>
11691 #include <stdio.h>
11692 struct stat;
11693 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11694 struct buf { int x; };
11695 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11696 static char *e (p, i)
11697 char **p;
11698 int i;
11700 return p[i];
11702 static char *f (char * (*g) (char **, int), char **p, ...)
11704 char *s;
11705 va_list v;
11706 va_start (v,p);
11707 s = g (p, va_arg (v,int));
11708 va_end (v);
11709 return s;
11712 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11713 function prototypes and stuff, but not '\xHH' hex character constants.
11714 These don't provoke an error unfortunately, instead are silently treated
11715 as 'x'. The following induces an error, until -std is added to get
11716 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11717 array size at least. It's necessary to write '\x00'==0 to get something
11718 that's true only with -std. */
11719 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11721 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11722 inside strings and character constants. */
11723 #define FOO(x) 'x'
11724 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11726 int test (int i, double x);
11727 struct s1 {int (*f) (int a);};
11728 struct s2 {int (*f) (double a);};
11729 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11730 int argc;
11731 char **argv;
11733 main ()
11735 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11737 return 0;
11739 _ACEOF
11740 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11741 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11743 CC="$ac_save_CC $ac_arg"
11744 if ac_fn_c_try_compile "$LINENO"; then :
11745 ac_cv_prog_cc_c89=$ac_arg
11747 rm -f core conftest.err conftest.$ac_objext
11748 test "x$ac_cv_prog_cc_c89" != "xno" && break
11749 done
11750 rm -f conftest.$ac_ext
11751 CC=$ac_save_CC
11754 # AC_CACHE_VAL
11755 case "x$ac_cv_prog_cc_c89" in
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11758 $as_echo "none needed" >&6; } ;;
11759 xno)
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11761 $as_echo "unsupported" >&6; } ;;
11763 CC="$CC $ac_cv_prog_cc_c89"
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11765 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11766 esac
11767 if test "x$ac_cv_prog_cc_c89" != xno; then :
11771 ac_ext=c
11772 ac_cpp='$CPP $CPPFLAGS'
11773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11777 ac_ext=c
11778 ac_cpp='$CPP $CPPFLAGS'
11779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
11783 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
11784 if ${am_cv_prog_cc_c_o+:} false; then :
11785 $as_echo_n "(cached) " >&6
11786 else
11787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11788 /* end confdefs.h. */
11791 main ()
11795 return 0;
11797 _ACEOF
11798 # Make sure it works both with $CC and with simple cc.
11799 # Following AC_PROG_CC_C_O, we do the test twice because some
11800 # compilers refuse to overwrite an existing .o file with -o,
11801 # though they will create one.
11802 am_cv_prog_cc_c_o=yes
11803 for am_i in 1 2; do
11804 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
11805 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
11806 ac_status=$?
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); } \
11809 && test -f conftest2.$ac_objext; then
11810 : OK
11811 else
11812 am_cv_prog_cc_c_o=no
11813 break
11815 done
11816 rm -f core conftest*
11817 unset am_i
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
11820 $as_echo "$am_cv_prog_cc_c_o" >&6; }
11821 if test "$am_cv_prog_cc_c_o" != yes; then
11822 # Losing compiler, so override with the script.
11823 # FIXME: It is wrong to rewrite CC.
11824 # But if we don't then we get into trouble of one sort or another.
11825 # A longer-term fix would be to have automake use am__CC in this case,
11826 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11827 CC="$am_aux_dir/compile $CC"
11829 ac_ext=c
11830 ac_cpp='$CPP $CPPFLAGS'
11831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11836 depcc="$CC" am_compiler_list=
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11839 $as_echo_n "checking dependency style of $depcc... " >&6; }
11840 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
11841 $as_echo_n "(cached) " >&6
11842 else
11843 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11844 # We make a subdir and do the tests there. Otherwise we can end up
11845 # making bogus files that we don't know about and never remove. For
11846 # instance it was reported that on HP-UX the gcc test will end up
11847 # making a dummy file named 'D' -- because '-MD' means "put the output
11848 # in D".
11849 rm -rf conftest.dir
11850 mkdir conftest.dir
11851 # Copy depcomp to subdir because otherwise we won't find it if we're
11852 # using a relative directory.
11853 cp "$am_depcomp" conftest.dir
11854 cd conftest.dir
11855 # We will build objects and dependencies in a subdirectory because
11856 # it helps to detect inapplicable dependency modes. For instance
11857 # both Tru64's cc and ICC support -MD to output dependencies as a
11858 # side effect of compilation, but ICC will put the dependencies in
11859 # the current directory while Tru64 will put them in the object
11860 # directory.
11861 mkdir sub
11863 am_cv_CC_dependencies_compiler_type=none
11864 if test "$am_compiler_list" = ""; then
11865 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11867 am__universal=false
11868 case " $depcc " in #(
11869 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11870 esac
11872 for depmode in $am_compiler_list; do
11873 # Setup a source with many dependencies, because some compilers
11874 # like to wrap large dependency lists on column 80 (with \), and
11875 # we should not choose a depcomp mode which is confused by this.
11877 # We need to recreate these files for each test, as the compiler may
11878 # overwrite some of them when testing with obscure command lines.
11879 # This happens at least with the AIX C compiler.
11880 : > sub/conftest.c
11881 for i in 1 2 3 4 5 6; do
11882 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11883 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
11884 # Solaris 10 /bin/sh.
11885 echo '/* dummy */' > sub/conftst$i.h
11886 done
11887 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11889 # We check with '-c' and '-o' for the sake of the "dashmstdout"
11890 # mode. It turns out that the SunPro C++ compiler does not properly
11891 # handle '-M -o', and we need to detect this. Also, some Intel
11892 # versions had trouble with output in subdirs.
11893 am__obj=sub/conftest.${OBJEXT-o}
11894 am__minus_obj="-o $am__obj"
11895 case $depmode in
11896 gcc)
11897 # This depmode causes a compiler race in universal mode.
11898 test "$am__universal" = false || continue
11900 nosideeffect)
11901 # After this tag, mechanisms are not by side-effect, so they'll
11902 # only be used when explicitly requested.
11903 if test "x$enable_dependency_tracking" = xyes; then
11904 continue
11905 else
11906 break
11909 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
11910 # This compiler won't grok '-c -o', but also, the minuso test has
11911 # not run yet. These depmodes are late enough in the game, and
11912 # so weak that their functioning should not be impacted.
11913 am__obj=conftest.${OBJEXT-o}
11914 am__minus_obj=
11916 none) break ;;
11917 esac
11918 if depmode=$depmode \
11919 source=sub/conftest.c object=$am__obj \
11920 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11921 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11922 >/dev/null 2>conftest.err &&
11923 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11924 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11925 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11926 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11927 # icc doesn't choke on unknown options, it will just issue warnings
11928 # or remarks (even with -Werror). So we grep stderr for any message
11929 # that says an option was ignored or not supported.
11930 # When given -MP, icc 7.0 and 7.1 complain thusly:
11931 # icc: Command line warning: ignoring option '-M'; no argument required
11932 # The diagnosis changed in icc 8.0:
11933 # icc: Command line remark: option '-MP' not supported
11934 if (grep 'ignoring option' conftest.err ||
11935 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11936 am_cv_CC_dependencies_compiler_type=$depmode
11937 break
11940 done
11942 cd ..
11943 rm -rf conftest.dir
11944 else
11945 am_cv_CC_dependencies_compiler_type=none
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11950 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11951 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11954 test "x$enable_dependency_tracking" != xno \
11955 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11956 am__fastdepCC_TRUE=
11957 am__fastdepCC_FALSE='#'
11958 else
11959 am__fastdepCC_TRUE='#'
11960 am__fastdepCC_FALSE=
11970 if test "x$GCC" != "xyes"; then
11971 as_fn_error $? "libquadmath must be built with GCC" "$LINENO" 5
11973 ac_ext=c
11974 ac_cpp='$CPP $CPPFLAGS'
11975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
11979 $as_echo_n "checking how to run the C preprocessor... " >&6; }
11980 # On Suns, sometimes $CPP names a directory.
11981 if test -n "$CPP" && test -d "$CPP"; then
11982 CPP=
11984 if test -z "$CPP"; then
11985 if ${ac_cv_prog_CPP+:} false; then :
11986 $as_echo_n "(cached) " >&6
11987 else
11988 # Double quotes because CPP needs to be expanded
11989 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11991 ac_preproc_ok=false
11992 for ac_c_preproc_warn_flag in '' yes
11994 # Use a header file that comes with gcc, so configuring glibc
11995 # with a fresh cross-compiler works.
11996 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11997 # <limits.h> exists even on freestanding compilers.
11998 # On the NeXT, cc -E runs the code through the compiler's parser,
11999 # not just through cpp. "Syntax error" is here to catch this case.
12000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12001 /* end confdefs.h. */
12002 #ifdef __STDC__
12003 # include <limits.h>
12004 #else
12005 # include <assert.h>
12006 #endif
12007 Syntax error
12008 _ACEOF
12009 if ac_fn_c_try_cpp "$LINENO"; then :
12011 else
12012 # Broken: fails on valid input.
12013 continue
12015 rm -f conftest.err conftest.i conftest.$ac_ext
12017 # OK, works on sane cases. Now check whether nonexistent headers
12018 # can be detected and how.
12019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12020 /* end confdefs.h. */
12021 #include <ac_nonexistent.h>
12022 _ACEOF
12023 if ac_fn_c_try_cpp "$LINENO"; then :
12024 # Broken: success on invalid input.
12025 continue
12026 else
12027 # Passes both tests.
12028 ac_preproc_ok=:
12029 break
12031 rm -f conftest.err conftest.i conftest.$ac_ext
12033 done
12034 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12035 rm -f conftest.i conftest.err conftest.$ac_ext
12036 if $ac_preproc_ok; then :
12037 break
12040 done
12041 ac_cv_prog_CPP=$CPP
12044 CPP=$ac_cv_prog_CPP
12045 else
12046 ac_cv_prog_CPP=$CPP
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
12049 $as_echo "$CPP" >&6; }
12050 ac_preproc_ok=false
12051 for ac_c_preproc_warn_flag in '' yes
12053 # Use a header file that comes with gcc, so configuring glibc
12054 # with a fresh cross-compiler works.
12055 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12056 # <limits.h> exists even on freestanding compilers.
12057 # On the NeXT, cc -E runs the code through the compiler's parser,
12058 # not just through cpp. "Syntax error" is here to catch this case.
12059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12060 /* end confdefs.h. */
12061 #ifdef __STDC__
12062 # include <limits.h>
12063 #else
12064 # include <assert.h>
12065 #endif
12066 Syntax error
12067 _ACEOF
12068 if ac_fn_c_try_cpp "$LINENO"; then :
12070 else
12071 # Broken: fails on valid input.
12072 continue
12074 rm -f conftest.err conftest.i conftest.$ac_ext
12076 # OK, works on sane cases. Now check whether nonexistent headers
12077 # can be detected and how.
12078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12079 /* end confdefs.h. */
12080 #include <ac_nonexistent.h>
12081 _ACEOF
12082 if ac_fn_c_try_cpp "$LINENO"; then :
12083 # Broken: success on invalid input.
12084 continue
12085 else
12086 # Passes both tests.
12087 ac_preproc_ok=:
12088 break
12090 rm -f conftest.err conftest.i conftest.$ac_ext
12092 done
12093 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12094 rm -f conftest.i conftest.err conftest.$ac_ext
12095 if $ac_preproc_ok; then :
12097 else
12098 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12099 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12100 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
12101 See \`config.log' for more details" "$LINENO" 5; }
12104 ac_ext=c
12105 ac_cpp='$CPP $CPPFLAGS'
12106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12112 # Check whether --with-toolexeclibdir was given.
12113 if test "${with_toolexeclibdir+set}" = set; then :
12114 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
12118 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
12120 esac
12121 else
12122 with_toolexeclibdir=no
12127 # Calculate toolexeclibdir
12128 # Also toolexecdir, though it's only used in toolexeclibdir
12129 case ${version_specific_libs} in
12130 yes)
12131 # Need the gcc compiler version to know where to install libraries
12132 # and header files if --enable-version-specific-runtime-libs option
12133 # is selected.
12134 toolexecdir='$(libdir)/gcc/$(target_alias)'
12135 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
12138 if test -n "$with_cross_host" &&
12139 test x"$with_cross_host" != x"no"; then
12140 # Install a library built with a cross compiler in tooldir, not libdir.
12141 toolexecdir='$(exec_prefix)/$(target_alias)'
12142 case ${with_toolexeclibdir} in
12144 toolexeclibdir='$(toolexecdir)/lib'
12147 toolexeclibdir=${with_toolexeclibdir}
12149 esac
12150 else
12151 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
12152 toolexeclibdir='$(libdir)'
12154 multi_os_directory=`$CC -print-multi-os-directory`
12155 case $multi_os_directory in
12156 .) ;; # Avoid trailing /.
12157 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
12158 esac
12160 esac
12164 for ac_header in fenv.h langinfo.h locale.h wchar.h wctype.h limits.h ctype.h printf.h errno.h
12165 do :
12166 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12167 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12168 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12169 cat >>confdefs.h <<_ACEOF
12170 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12171 _ACEOF
12175 done
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the math.h includes POSIX's signgam" >&5
12179 $as_echo_n "checking whether the math.h includes POSIX's signgam... " >&6; }
12180 if ${libgfor_cv_have_math_h_signgam+:} false; then :
12181 $as_echo_n "(cached) " >&6
12182 else
12184 save_CFLAGS="$CFLAGS"
12185 CFLAGS="$CFLAGS -Werror"
12186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12187 /* end confdefs.h. */
12189 #include <math.h>
12190 void foo(void) { signgam = 1; }
12192 main ()
12196 return 0;
12198 _ACEOF
12199 if ac_fn_c_try_compile "$LINENO"; then :
12200 libgfor_cv_have_math_h_signgam=yes
12201 else
12202 libgfor_cv_have_math_h_signgam=no
12204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12205 CFLAGS="$save_CFLAGS"
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_math_h_signgam" >&5
12208 $as_echo "$libgfor_cv_have_math_h_signgam" >&6; }
12209 if test $libgfor_cv_have_math_h_signgam = yes; then
12211 $as_echo "#define HAVE_MATH_H_SIGNGAM 1" >>confdefs.h
12215 # If available, sqrtl and cbrtl speed up the calculation -
12216 # but they are not required
12217 if test x$gcc_no_link != xyes; then
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl in -lm" >&5
12219 $as_echo_n "checking for sqrtl in -lm... " >&6; }
12220 if ${ac_cv_lib_m_sqrtl+:} false; then :
12221 $as_echo_n "(cached) " >&6
12222 else
12223 ac_check_lib_save_LIBS=$LIBS
12224 LIBS="-lm $LIBS"
12225 if test x$gcc_no_link = xyes; then
12226 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12229 /* end confdefs.h. */
12231 /* Override any GCC internal prototype to avoid an error.
12232 Use char because int might match the return type of a GCC
12233 builtin and then its argument prototype would still apply. */
12234 #ifdef __cplusplus
12235 extern "C"
12236 #endif
12237 char sqrtl ();
12239 main ()
12241 return sqrtl ();
12243 return 0;
12245 _ACEOF
12246 if ac_fn_c_try_link "$LINENO"; then :
12247 ac_cv_lib_m_sqrtl=yes
12248 else
12249 ac_cv_lib_m_sqrtl=no
12251 rm -f core conftest.err conftest.$ac_objext \
12252 conftest$ac_exeext conftest.$ac_ext
12253 LIBS=$ac_check_lib_save_LIBS
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrtl" >&5
12256 $as_echo "$ac_cv_lib_m_sqrtl" >&6; }
12257 if test "x$ac_cv_lib_m_sqrtl" = xyes; then :
12259 $as_echo "#define HAVE_SQRTL 1" >>confdefs.h
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cbrtl in -lm" >&5
12264 $as_echo_n "checking for cbrtl in -lm... " >&6; }
12265 if ${ac_cv_lib_m_cbrtl+:} false; then :
12266 $as_echo_n "(cached) " >&6
12267 else
12268 ac_check_lib_save_LIBS=$LIBS
12269 LIBS="-lm $LIBS"
12270 if test x$gcc_no_link = xyes; then
12271 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12274 /* end confdefs.h. */
12276 /* Override any GCC internal prototype to avoid an error.
12277 Use char because int might match the return type of a GCC
12278 builtin and then its argument prototype would still apply. */
12279 #ifdef __cplusplus
12280 extern "C"
12281 #endif
12282 char cbrtl ();
12284 main ()
12286 return cbrtl ();
12288 return 0;
12290 _ACEOF
12291 if ac_fn_c_try_link "$LINENO"; then :
12292 ac_cv_lib_m_cbrtl=yes
12293 else
12294 ac_cv_lib_m_cbrtl=no
12296 rm -f core conftest.err conftest.$ac_objext \
12297 conftest$ac_exeext conftest.$ac_ext
12298 LIBS=$ac_check_lib_save_LIBS
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cbrtl" >&5
12301 $as_echo "$ac_cv_lib_m_cbrtl" >&6; }
12302 if test "x$ac_cv_lib_m_cbrtl" = xyes; then :
12304 $as_echo "#define HAVE_CBRTL 1" >>confdefs.h
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feholdexcept in -lm" >&5
12309 $as_echo_n "checking for feholdexcept in -lm... " >&6; }
12310 if ${ac_cv_lib_m_feholdexcept+:} false; then :
12311 $as_echo_n "(cached) " >&6
12312 else
12313 ac_check_lib_save_LIBS=$LIBS
12314 LIBS="-lm $LIBS"
12315 if test x$gcc_no_link = xyes; then
12316 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12319 /* end confdefs.h. */
12321 /* Override any GCC internal prototype to avoid an error.
12322 Use char because int might match the return type of a GCC
12323 builtin and then its argument prototype would still apply. */
12324 #ifdef __cplusplus
12325 extern "C"
12326 #endif
12327 char feholdexcept ();
12329 main ()
12331 return feholdexcept ();
12333 return 0;
12335 _ACEOF
12336 if ac_fn_c_try_link "$LINENO"; then :
12337 ac_cv_lib_m_feholdexcept=yes
12338 else
12339 ac_cv_lib_m_feholdexcept=no
12341 rm -f core conftest.err conftest.$ac_objext \
12342 conftest$ac_exeext conftest.$ac_ext
12343 LIBS=$ac_check_lib_save_LIBS
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feholdexcept" >&5
12346 $as_echo "$ac_cv_lib_m_feholdexcept" >&6; }
12347 if test "x$ac_cv_lib_m_feholdexcept" = xyes; then :
12349 $as_echo "#define HAVE_FEHOLDEXCEPT 1" >>confdefs.h
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fesetround in -lm" >&5
12354 $as_echo_n "checking for fesetround in -lm... " >&6; }
12355 if ${ac_cv_lib_m_fesetround+:} false; then :
12356 $as_echo_n "(cached) " >&6
12357 else
12358 ac_check_lib_save_LIBS=$LIBS
12359 LIBS="-lm $LIBS"
12360 if test x$gcc_no_link = xyes; then
12361 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12364 /* end confdefs.h. */
12366 /* Override any GCC internal prototype to avoid an error.
12367 Use char because int might match the return type of a GCC
12368 builtin and then its argument prototype would still apply. */
12369 #ifdef __cplusplus
12370 extern "C"
12371 #endif
12372 char fesetround ();
12374 main ()
12376 return fesetround ();
12378 return 0;
12380 _ACEOF
12381 if ac_fn_c_try_link "$LINENO"; then :
12382 ac_cv_lib_m_fesetround=yes
12383 else
12384 ac_cv_lib_m_fesetround=no
12386 rm -f core conftest.err conftest.$ac_objext \
12387 conftest$ac_exeext conftest.$ac_ext
12388 LIBS=$ac_check_lib_save_LIBS
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fesetround" >&5
12391 $as_echo "$ac_cv_lib_m_fesetround" >&6; }
12392 if test "x$ac_cv_lib_m_fesetround" = xyes; then :
12394 $as_echo "#define HAVE_FESETROUND 1" >>confdefs.h
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feupdateenv in -lm" >&5
12399 $as_echo_n "checking for feupdateenv in -lm... " >&6; }
12400 if ${ac_cv_lib_m_feupdateenv+:} false; then :
12401 $as_echo_n "(cached) " >&6
12402 else
12403 ac_check_lib_save_LIBS=$LIBS
12404 LIBS="-lm $LIBS"
12405 if test x$gcc_no_link = xyes; then
12406 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12409 /* end confdefs.h. */
12411 /* Override any GCC internal prototype to avoid an error.
12412 Use char because int might match the return type of a GCC
12413 builtin and then its argument prototype would still apply. */
12414 #ifdef __cplusplus
12415 extern "C"
12416 #endif
12417 char feupdateenv ();
12419 main ()
12421 return feupdateenv ();
12423 return 0;
12425 _ACEOF
12426 if ac_fn_c_try_link "$LINENO"; then :
12427 ac_cv_lib_m_feupdateenv=yes
12428 else
12429 ac_cv_lib_m_feupdateenv=no
12431 rm -f core conftest.err conftest.$ac_objext \
12432 conftest$ac_exeext conftest.$ac_ext
12433 LIBS=$ac_check_lib_save_LIBS
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feupdateenv" >&5
12436 $as_echo "$ac_cv_lib_m_feupdateenv" >&6; }
12437 if test "x$ac_cv_lib_m_feupdateenv" = xyes; then :
12439 $as_echo "#define HAVE_FEUPDATEENV 1" >>confdefs.h
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fesetenv in -lm" >&5
12444 $as_echo_n "checking for fesetenv in -lm... " >&6; }
12445 if ${ac_cv_lib_m_fesetenv+:} false; then :
12446 $as_echo_n "(cached) " >&6
12447 else
12448 ac_check_lib_save_LIBS=$LIBS
12449 LIBS="-lm $LIBS"
12450 if test x$gcc_no_link = xyes; then
12451 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12454 /* end confdefs.h. */
12456 /* Override any GCC internal prototype to avoid an error.
12457 Use char because int might match the return type of a GCC
12458 builtin and then its argument prototype would still apply. */
12459 #ifdef __cplusplus
12460 extern "C"
12461 #endif
12462 char fesetenv ();
12464 main ()
12466 return fesetenv ();
12468 return 0;
12470 _ACEOF
12471 if ac_fn_c_try_link "$LINENO"; then :
12472 ac_cv_lib_m_fesetenv=yes
12473 else
12474 ac_cv_lib_m_fesetenv=no
12476 rm -f core conftest.err conftest.$ac_objext \
12477 conftest$ac_exeext conftest.$ac_ext
12478 LIBS=$ac_check_lib_save_LIBS
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fesetenv" >&5
12481 $as_echo "$ac_cv_lib_m_fesetenv" >&6; }
12482 if test "x$ac_cv_lib_m_fesetenv" = xyes; then :
12484 $as_echo "#define HAVE_FESETENV 1" >>confdefs.h
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fetestexcept in -lm" >&5
12489 $as_echo_n "checking for fetestexcept in -lm... " >&6; }
12490 if ${ac_cv_lib_m_fetestexcept+:} false; then :
12491 $as_echo_n "(cached) " >&6
12492 else
12493 ac_check_lib_save_LIBS=$LIBS
12494 LIBS="-lm $LIBS"
12495 if test x$gcc_no_link = xyes; then
12496 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12499 /* end confdefs.h. */
12501 /* Override any GCC internal prototype to avoid an error.
12502 Use char because int might match the return type of a GCC
12503 builtin and then its argument prototype would still apply. */
12504 #ifdef __cplusplus
12505 extern "C"
12506 #endif
12507 char fetestexcept ();
12509 main ()
12511 return fetestexcept ();
12513 return 0;
12515 _ACEOF
12516 if ac_fn_c_try_link "$LINENO"; then :
12517 ac_cv_lib_m_fetestexcept=yes
12518 else
12519 ac_cv_lib_m_fetestexcept=no
12521 rm -f core conftest.err conftest.$ac_objext \
12522 conftest$ac_exeext conftest.$ac_ext
12523 LIBS=$ac_check_lib_save_LIBS
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fetestexcept" >&5
12526 $as_echo "$ac_cv_lib_m_fetestexcept" >&6; }
12527 if test "x$ac_cv_lib_m_fetestexcept" = xyes; then :
12529 $as_echo "#define HAVE_FETESTEXCEPT 1" >>confdefs.h
12533 for ac_func in strtoull
12534 do :
12535 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
12536 if test "x$ac_cv_func_strtoull" = xyes; then :
12537 cat >>confdefs.h <<_ACEOF
12538 #define HAVE_STRTOULL 1
12539 _ACEOF
12542 done
12544 else
12545 if test "x$ac_cv_lib_m_sqrtl" = x""yes; then
12547 $as_echo "#define HAVE_SQRTL 1" >>confdefs.h
12550 if test "x$ac_cv_lib_m_cbrtl" = x""yes; then
12552 $as_echo "#define HAVE_CBRTL 1" >>confdefs.h
12555 if test "x$ac_cv_lib_m_feholdexcept" = x""yes; then
12557 $as_echo "#define HAVE_FEHOLDEXCEPT 1" >>confdefs.h
12560 if test "x$ac_cv_lib_m_fesetround" = x""yes; then
12562 $as_echo "#define HAVE_FESETROUND 1" >>confdefs.h
12565 if test "x$ac_cv_lib_m_feupdateenv" = x""yes; then
12567 $as_echo "#define HAVE_FEUPDATEENV 1" >>confdefs.h
12570 if test "x$ac_cv_lib_m_fesetenv" = x""yes; then
12572 $as_echo "#define HAVE_FESETENV 1" >>confdefs.h
12575 if test "x$ac_cv_lib_m_fetestexcept" = x""yes; then
12577 $as_echo "#define HAVE_FETESTEXCEPT 1" >>confdefs.h
12582 # Check for hidden visibility (copied from libssp).
12583 saved_CFLAGS="$CFLAGS"
12584 CFLAGS="$CFLAGS -Werror"
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hidden visibility is supported" >&5
12586 $as_echo_n "checking whether hidden visibility is supported... " >&6; }
12587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12588 /* end confdefs.h. */
12590 void __attribute__((visibility ("hidden"))) bar (void) {}
12592 main ()
12596 return 0;
12598 _ACEOF
12599 if ac_fn_c_try_compile "$LINENO"; then :
12600 quadmath_hidden=yes
12601 else
12602 quadmath_hidden=no
12604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_hidden" >&5
12606 $as_echo "$quadmath_hidden" >&6; }
12607 if test x$quadmath_hidden = xyes; then
12609 $as_echo "#define HAVE_HIDDEN_VISIBILITY 1" >>confdefs.h
12612 CFLAGS="$saved_CFLAGS"
12614 # Check for symbol versioning (copied from libssp).
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
12616 $as_echo_n "checking whether symbol versioning is supported... " >&6; }
12617 # Check whether --enable-symvers was given.
12618 if test "${enable_symvers+set}" = set; then :
12619 enableval=$enable_symvers; quadmath_use_symver=$enableval
12620 else
12621 quadmath_use_symver=yes
12624 if test "x$quadmath_use_symver" != xno; then
12625 if test x$gcc_no_link = xyes; then
12626 # If we cannot link, we cannot build shared libraries, so do not use
12627 # symbol versioning.
12628 quadmath_use_symver=no
12629 else
12630 save_LDFLAGS="$LDFLAGS"
12631 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
12632 cat > conftest.map <<EOF
12633 FOO_1.0 {
12634 global: *foo*; bar; local: *;
12637 if test x$gcc_no_link = xyes; then
12638 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12641 /* end confdefs.h. */
12642 int foo;
12644 main ()
12648 return 0;
12650 _ACEOF
12651 if ac_fn_c_try_link "$LINENO"; then :
12652 quadmath_use_symver=gnu
12653 else
12654 quadmath_use_symver=no
12656 rm -f core conftest.err conftest.$ac_objext \
12657 conftest$ac_exeext conftest.$ac_ext
12658 if test x$quadmath_use_symver = xno; then
12659 case "$target_os" in
12660 solaris2*)
12661 LDFLAGS="$save_LDFLAGS"
12662 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
12663 # Sun ld cannot handle wildcards and treats all entries as undefined.
12664 cat > conftest.map <<EOF
12665 FOO_1.0 {
12666 global: foo; local: *;
12669 if test x$gcc_no_link = xyes; then
12670 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12673 /* end confdefs.h. */
12674 int foo;
12676 main ()
12680 return 0;
12682 _ACEOF
12683 if ac_fn_c_try_link "$LINENO"; then :
12684 quadmath_use_symver=sun
12685 else
12686 quadmath_use_symver=no
12688 rm -f core conftest.err conftest.$ac_objext \
12689 conftest$ac_exeext conftest.$ac_ext
12691 esac
12693 LDFLAGS="$save_LDFLAGS"
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_symver" >&5
12697 $as_echo "$quadmath_use_symver" >&6; }
12698 if test "x$quadmath_use_symver" != xno; then
12699 LIBQUAD_USE_SYMVER_TRUE=
12700 LIBQUAD_USE_SYMVER_FALSE='#'
12701 else
12702 LIBQUAD_USE_SYMVER_TRUE='#'
12703 LIBQUAD_USE_SYMVER_FALSE=
12706 if test "x$quadmath_use_symver" = xgnu; then
12707 LIBQUAD_USE_SYMVER_GNU_TRUE=
12708 LIBQUAD_USE_SYMVER_GNU_FALSE='#'
12709 else
12710 LIBQUAD_USE_SYMVER_GNU_TRUE='#'
12711 LIBQUAD_USE_SYMVER_GNU_FALSE=
12714 if test "x$quadmath_use_symver" = xsun; then
12715 LIBQUAD_USE_SYMVER_SUN_TRUE=
12716 LIBQUAD_USE_SYMVER_SUN_FALSE='#'
12717 else
12718 LIBQUAD_USE_SYMVER_SUN_TRUE='#'
12719 LIBQUAD_USE_SYMVER_SUN_FALSE=
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __float128 is supported" >&5
12724 $as_echo_n "checking whether __float128 is supported... " >&6; }
12725 if ${libquad_cv_have_float128+:} false; then :
12726 $as_echo_n "(cached) " >&6
12727 else
12728 if test x$gcc_no_link = xyes; then
12729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12730 /* end confdefs.h. */
12732 #if (!defined(_ARCH_PPC)) || defined(__LONG_DOUBLE_IEEE128__)
12733 typedef _Complex float __attribute__((mode(TC))) __complex128;
12734 #else
12735 typedef _Complex float __attribute__((mode(KC))) __complex128;
12736 #endif
12738 __float128 foo (__float128 x)
12741 __complex128 z1, z2;
12743 z1 = x;
12744 z2 = x / 7.Q;
12745 z2 /= z1;
12747 return (__float128) z2;
12750 __float128 bar (__float128 x)
12752 return x * __builtin_huge_valq ();
12756 main ()
12759 foo (1.2Q);
12760 bar (1.2Q);
12763 return 0;
12765 _ACEOF
12766 if ac_fn_c_try_compile "$LINENO"; then :
12768 libquad_cv_have_float128=yes
12770 else
12772 libquad_cv_have_float128=no
12775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12776 else
12777 if test x$gcc_no_link = xyes; then
12778 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12781 /* end confdefs.h. */
12783 #if (!defined(_ARCH_PPC)) || defined(__LONG_DOUBLE_IEEE128__)
12784 typedef _Complex float __attribute__((mode(TC))) __complex128;
12785 #else
12786 typedef _Complex float __attribute__((mode(KC))) __complex128;
12787 #endif
12789 __float128 foo (__float128 x)
12792 __complex128 z1, z2;
12794 z1 = x;
12795 z2 = x / 7.Q;
12796 z2 /= z1;
12798 return (__float128) z2;
12801 __float128 bar (__float128 x)
12803 return x * __builtin_huge_valq ();
12807 main ()
12810 foo (1.2Q);
12811 bar (1.2Q);
12814 return 0;
12816 _ACEOF
12817 if ac_fn_c_try_link "$LINENO"; then :
12819 libquad_cv_have_float128=yes
12821 else
12823 libquad_cv_have_float128=no
12826 rm -f core conftest.err conftest.$ac_objext \
12827 conftest$ac_exeext conftest.$ac_ext
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libquad_cv_have_float128" >&5
12831 $as_echo "$libquad_cv_have_float128" >&6; }
12832 if test "x$libquad_cv_have_float128" = xyes; then
12833 BUILD_LIBQUADMATH_TRUE=
12834 BUILD_LIBQUADMATH_FALSE='#'
12835 else
12836 BUILD_LIBQUADMATH_TRUE='#'
12837 BUILD_LIBQUADMATH_FALSE=
12841 # Check for printf hook support.
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf hooks are supported" >&5
12843 $as_echo_n "checking whether printf hooks are supported... " >&6; }
12844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12845 /* end confdefs.h. */
12847 #include <printf.h>
12848 #include <stdarg.h>
12849 #include <stdlib.h>
12850 extern void flt128_va (void *, va_list *);
12851 extern int flt128_ais (const struct printf_info *, size_t, int *, int *);
12852 extern int flt128_printf_fp (FILE *, const struct printf_info *, const void *const *);
12855 main ()
12858 int pa_flt128 = register_printf_type (flt128_va);
12859 int mod_Q = register_printf_modifier (L"Q");
12860 int res = register_printf_specifier ('f', flt128_printf_fp, flt128_ais);
12861 struct printf_info info = { .user = -1 };
12864 return 0;
12866 _ACEOF
12867 if ac_fn_c_try_compile "$LINENO"; then :
12868 quadmath_printf_hooks=yes
12869 else
12870 quadmath_printf_hooks=no
12872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_printf_hooks" >&5
12874 $as_echo "$quadmath_printf_hooks" >&6; }
12875 if test x$quadmath_printf_hooks = xyes; then
12877 $as_echo "#define HAVE_PRINTF_HOOKS 1" >>confdefs.h
12881 # Check for whether locale support for quadmath_snprintf or Q printf hooks
12882 # should be provided.
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nl_langinfo should be used" >&5
12884 $as_echo_n "checking whether nl_langinfo should be used... " >&6; }
12885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12886 /* end confdefs.h. */
12887 #include <langinfo.h>
12889 main ()
12892 const char *s;
12893 s = nl_langinfo (DECIMAL_POINT);
12894 s = nl_langinfo (MON_DECIMAL_POINT);
12895 s = nl_langinfo (GROUPING);
12896 s = nl_langinfo (MON_GROUPING);
12897 s = nl_langinfo (THOUSANDS_SEP);
12898 s = nl_langinfo (MON_THOUSANDS_SEP);
12899 (void) s;
12902 return 0;
12904 _ACEOF
12905 if ac_fn_c_try_compile "$LINENO"; then :
12906 quadmath_use_nl_langinfo=yes
12907 else
12908 quadmath_use_nl_langinfo=no
12910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_nl_langinfo" >&5
12912 $as_echo "$quadmath_use_nl_langinfo" >&6; }
12913 if test x$quadmath_use_nl_langinfo = xyes; then
12915 $as_echo "#define USE_NL_LANGINFO 1" >>confdefs.h
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nl_langinfo should be used for wide char locale info" >&5
12920 $as_echo_n "checking whether nl_langinfo should be used for wide char locale info... " >&6; }
12921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12922 /* end confdefs.h. */
12923 #include <langinfo.h>
12925 main ()
12928 const char *s;
12929 s = nl_langinfo (_NL_NUMERIC_DECIMAL_POINT_WC);
12930 s = nl_langinfo (_NL_MONETARY_DECIMAL_POINT_WC);
12931 s = nl_langinfo (_NL_NUMERIC_THOUSANDS_SEP_WC);
12932 s = nl_langinfo (_NL_MONETARY_THOUSANDS_SEP_WC);
12933 (void) s;
12936 return 0;
12938 _ACEOF
12939 if ac_fn_c_try_compile "$LINENO"; then :
12940 quadmath_use_nl_langinfo_wc=yes
12941 else
12942 quadmath_use_nl_langinfo_wc=no
12944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_nl_langinfo_wc" >&5
12946 $as_echo "$quadmath_use_nl_langinfo_wc" >&6; }
12947 if test x$quadmath_use_nl_langinfo_wc = xyes; then
12949 $as_echo "#define USE_NL_LANGINFO_WC 1" >>confdefs.h
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localeconv should be used" >&5
12954 $as_echo_n "checking whether localeconv should be used... " >&6; }
12955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12956 /* end confdefs.h. */
12957 #include <locale.h>
12959 main ()
12962 const struct lconv *l = localeconv ();
12963 const char *s;
12964 s = l->decimal_point;
12965 s = l->mon_decimal_point;
12966 s = l->grouping;
12967 s = l->mon_grouping;
12968 s = l->thousands_sep;
12969 s = l->mon_thousands_sep;
12970 (void) s;
12973 return 0;
12975 _ACEOF
12976 if ac_fn_c_try_compile "$LINENO"; then :
12977 quadmath_use_localeconv=yes
12978 else
12979 quadmath_use_localeconv=no
12981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_localeconv" >&5
12983 $as_echo "$quadmath_use_localeconv" >&6; }
12984 if test x$quadmath_use_localeconv = xyes; then
12986 $as_echo "#define USE_LOCALECONV 1" >>confdefs.h
12990 # Check for whether i18n number rewriting support for quadmath_snprintf
12991 # or Q printf hooks should be provided.
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether i18n number rewriting support for quadmath_snprintf should be added" >&5
12993 $as_echo_n "checking whether i18n number rewriting support for quadmath_snprintf should be added... " >&6; }
12994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12995 /* end confdefs.h. */
12996 #include <langinfo.h>
12997 #include <limits.h>
12998 #include <string.h>
12999 #include <wchar.h>
13000 #include <wctype.h>
13002 main ()
13005 const char *s;
13006 char decimal[MB_LEN_MAX];
13007 wctrans_t map = wctrans ("to_outpunct");
13008 wint_t wdecimal = towctrans (L'.', map);
13009 mbstate_t state;
13010 memset (&state, '\0', sizeof (state));
13011 wcrtomb (decimal, wdecimal, &state);
13012 s = nl_langinfo (_NL_CTYPE_OUTDIGIT0_MB);
13013 s = nl_langinfo (_NL_CTYPE_OUTDIGIT0_WC);
13014 s = nl_langinfo (_NL_CTYPE_MB_CUR_MAX);
13015 (void) s;
13018 return 0;
13020 _ACEOF
13021 if ac_fn_c_try_compile "$LINENO"; then :
13022 quadmath_use_i18n_number_h=yes
13023 else
13024 quadmath_use_i18n_number_h=no
13026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_i18n_number_h" >&5
13028 $as_echo "$quadmath_use_i18n_number_h" >&6; }
13029 if test x$quadmath_use_i18n_number_h = xyes; then
13031 $as_echo "#define USE_I18N_NUMBER_H 1" >>confdefs.h
13035 # Add CET specific flags if CET is enabled
13036 # Check whether --enable-cet was given.
13037 if test "${enable_cet+set}" = set; then :
13038 enableval=$enable_cet;
13039 case "$enableval" in
13040 yes|no|auto) ;;
13041 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
13042 esac
13044 else
13045 enable_cet=auto
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
13050 $as_echo_n "checking for CET support... " >&6; }
13052 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
13053 case "$host" in
13054 i[34567]86-*-linux* | x86_64-*-linux*)
13055 case "$enable_cet" in
13056 auto)
13057 # Check if target supports multi-byte NOPs
13058 # and if compiler and assembler support CET insn.
13059 cet_save_CFLAGS="$CFLAGS"
13060 CFLAGS="$CFLAGS -fcf-protection"
13061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13062 /* end confdefs.h. */
13065 main ()
13068 #if !defined(__SSE2__)
13069 #error target does not support multi-byte NOPs
13070 #else
13071 asm ("setssbsy");
13072 #endif
13075 return 0;
13077 _ACEOF
13078 if ac_fn_c_try_compile "$LINENO"; then :
13079 enable_cet=yes
13080 else
13081 enable_cet=no
13083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13084 CFLAGS="$cet_save_CFLAGS"
13086 yes)
13087 # Check if assembler supports CET.
13088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13089 /* end confdefs.h. */
13092 main ()
13094 asm ("setssbsy");
13096 return 0;
13098 _ACEOF
13099 if ac_fn_c_try_compile "$LINENO"; then :
13101 else
13102 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
13104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13106 esac
13109 enable_cet=no
13111 esac
13112 if test x$enable_cet = xyes; then
13113 CET_FLAGS="-fcf-protection -mshstk"
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13115 $as_echo "yes" >&6; }
13116 else
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13118 $as_echo "no" >&6; }
13121 XCFLAGS="$XCFLAGS $CET_FLAGS"
13123 case x$target in
13124 xpowerpc64le*-linux*)
13125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13126 /* end confdefs.h. */
13127 #if __SIZEOF_LONG_DOUBLE__ != 16
13128 #error long double is double
13129 #endif
13131 main ()
13133 (void) 0;
13135 return 0;
13137 _ACEOF
13138 if ac_fn_c_try_cpp "$LINENO"; then :
13139 XCFLAGS="$XCFLAGS -mno-gnu-attribute"
13141 rm -f conftest.err conftest.i conftest.$ac_ext
13145 esac
13148 cat >confcache <<\_ACEOF
13149 # This file is a shell script that caches the results of configure
13150 # tests run on this system so they can be shared between configure
13151 # scripts and configure runs, see configure's option --config-cache.
13152 # It is not useful on other systems. If it contains results you don't
13153 # want to keep, you may remove or edit it.
13155 # config.status only pays attention to the cache file if you give it
13156 # the --recheck option to rerun configure.
13158 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13159 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13160 # following values.
13162 _ACEOF
13164 # The following way of writing the cache mishandles newlines in values,
13165 # but we know of no workaround that is simple, portable, and efficient.
13166 # So, we kill variables containing newlines.
13167 # Ultrix sh set writes to stderr and can't be redirected directly,
13168 # and sets the high bit in the cache file unless we assign to the vars.
13170 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13171 eval ac_val=\$$ac_var
13172 case $ac_val in #(
13173 *${as_nl}*)
13174 case $ac_var in #(
13175 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13176 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13177 esac
13178 case $ac_var in #(
13179 _ | IFS | as_nl) ;; #(
13180 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13181 *) { eval $ac_var=; unset $ac_var;} ;;
13182 esac ;;
13183 esac
13184 done
13186 (set) 2>&1 |
13187 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13188 *${as_nl}ac_space=\ *)
13189 # `set' does not quote correctly, so add quotes: double-quote
13190 # substitution turns \\\\ into \\, and sed turns \\ into \.
13191 sed -n \
13192 "s/'/'\\\\''/g;
13193 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13194 ;; #(
13196 # `set' quotes correctly as required by POSIX, so do not add quotes.
13197 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13199 esac |
13200 sort
13202 sed '
13203 /^ac_cv_env_/b end
13204 t clear
13205 :clear
13206 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13207 t end
13208 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13209 :end' >>confcache
13210 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13211 if test -w "$cache_file"; then
13212 if test "x$cache_file" != "x/dev/null"; then
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13214 $as_echo "$as_me: updating cache $cache_file" >&6;}
13215 if test ! -f "$cache_file" || test -h "$cache_file"; then
13216 cat confcache >"$cache_file"
13217 else
13218 case $cache_file in #(
13219 */* | ?:*)
13220 mv -f confcache "$cache_file"$$ &&
13221 mv -f "$cache_file"$$ "$cache_file" ;; #(
13223 mv -f confcache "$cache_file" ;;
13224 esac
13227 else
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13229 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13232 rm -f confcache
13234 if test ${multilib} = yes; then
13235 multilib_arg="--enable-multilib"
13236 else
13237 multilib_arg=
13241 # We would like our source tree to be readonly. However when releases or
13242 # pre-releases are generated, the flex/bison generated files as well as the
13243 # various formats of manuals need to be included along with the rest of the
13244 # sources. Therefore we have --enable-generated-files-in-srcdir to do
13245 # just that.
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking generated-files-in-srcdir" >&5
13247 $as_echo_n "checking generated-files-in-srcdir... " >&6; }
13248 # Check whether --enable-generated-files-in-srcdir was given.
13249 if test "${enable_generated_files_in_srcdir+set}" = set; then :
13250 enableval=$enable_generated_files_in_srcdir; case "$enableval" in
13251 yes) enable_generated_files_in_srcdir=yes ;;
13252 no) enable_generated_files_in_srcdir=no ;;
13253 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13254 esac
13255 else
13256 enable_generated_files_in_srcdir=no
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
13260 $as_echo "$enable_generated_files_in_srcdir" >&6; }
13261 if test "$enable_generated_files_in_srcdir" = yes; then
13262 GENINSRC_TRUE=
13263 GENINSRC_FALSE='#'
13264 else
13265 GENINSRC_TRUE='#'
13266 GENINSRC_FALSE=
13270 # Determine what GCC version number to use in filesystem paths.
13272 get_gcc_base_ver="cat"
13274 # Check whether --with-gcc-major-version-only was given.
13275 if test "${with_gcc_major_version_only+set}" = set; then :
13276 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13277 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
13285 ac_config_files="$ac_config_files Makefile"
13287 cat >confcache <<\_ACEOF
13288 # This file is a shell script that caches the results of configure
13289 # tests run on this system so they can be shared between configure
13290 # scripts and configure runs, see configure's option --config-cache.
13291 # It is not useful on other systems. If it contains results you don't
13292 # want to keep, you may remove or edit it.
13294 # config.status only pays attention to the cache file if you give it
13295 # the --recheck option to rerun configure.
13297 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13298 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13299 # following values.
13301 _ACEOF
13303 # The following way of writing the cache mishandles newlines in values,
13304 # but we know of no workaround that is simple, portable, and efficient.
13305 # So, we kill variables containing newlines.
13306 # Ultrix sh set writes to stderr and can't be redirected directly,
13307 # and sets the high bit in the cache file unless we assign to the vars.
13309 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13310 eval ac_val=\$$ac_var
13311 case $ac_val in #(
13312 *${as_nl}*)
13313 case $ac_var in #(
13314 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13315 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13316 esac
13317 case $ac_var in #(
13318 _ | IFS | as_nl) ;; #(
13319 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13320 *) { eval $ac_var=; unset $ac_var;} ;;
13321 esac ;;
13322 esac
13323 done
13325 (set) 2>&1 |
13326 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13327 *${as_nl}ac_space=\ *)
13328 # `set' does not quote correctly, so add quotes: double-quote
13329 # substitution turns \\\\ into \\, and sed turns \\ into \.
13330 sed -n \
13331 "s/'/'\\\\''/g;
13332 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13333 ;; #(
13335 # `set' quotes correctly as required by POSIX, so do not add quotes.
13336 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13338 esac |
13339 sort
13341 sed '
13342 /^ac_cv_env_/b end
13343 t clear
13344 :clear
13345 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13346 t end
13347 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13348 :end' >>confcache
13349 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13350 if test -w "$cache_file"; then
13351 if test "x$cache_file" != "x/dev/null"; then
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13353 $as_echo "$as_me: updating cache $cache_file" >&6;}
13354 if test ! -f "$cache_file" || test -h "$cache_file"; then
13355 cat confcache >"$cache_file"
13356 else
13357 case $cache_file in #(
13358 */* | ?:*)
13359 mv -f confcache "$cache_file"$$ &&
13360 mv -f "$cache_file"$$ "$cache_file" ;; #(
13362 mv -f confcache "$cache_file" ;;
13363 esac
13366 else
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13368 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13371 rm -f confcache
13373 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13374 # Let make expand exec_prefix.
13375 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13377 DEFS=-DHAVE_CONFIG_H
13379 ac_libobjs=
13380 ac_ltlibobjs=
13382 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13383 # 1. Remove the extension, and $U if already installed.
13384 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13385 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13386 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13387 # will be set to the directory where LIBOBJS objects are built.
13388 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13389 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13390 done
13391 LIBOBJS=$ac_libobjs
13393 LTLIBOBJS=$ac_ltlibobjs
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13397 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13398 if test -n "$am_sleep_pid"; then
13399 # Hide warnings about reused PIDs.
13400 wait $am_sleep_pid 2>/dev/null
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13403 $as_echo "done" >&6; }
13404 if test -n "$EXEEXT"; then
13405 am__EXEEXT_TRUE=
13406 am__EXEEXT_FALSE='#'
13407 else
13408 am__EXEEXT_TRUE='#'
13409 am__EXEEXT_FALSE=
13412 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13413 as_fn_error $? "conditional \"AMDEP\" was never defined.
13414 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13416 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13417 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13418 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13420 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
13421 as_fn_error $? "conditional \"BUILD_INFO\" was never defined.
13422 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13424 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13425 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13426 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13428 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13429 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13430 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13432 if test -z "${LIBQUAD_USE_SYMVER_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_FALSE}"; then
13433 as_fn_error $? "conditional \"LIBQUAD_USE_SYMVER\" was never defined.
13434 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13436 if test -z "${LIBQUAD_USE_SYMVER_GNU_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_GNU_FALSE}"; then
13437 as_fn_error $? "conditional \"LIBQUAD_USE_SYMVER_GNU\" was never defined.
13438 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13440 if test -z "${LIBQUAD_USE_SYMVER_SUN_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_SUN_FALSE}"; then
13441 as_fn_error $? "conditional \"LIBQUAD_USE_SYMVER_SUN\" was never defined.
13442 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13444 if test -z "${BUILD_LIBQUADMATH_TRUE}" && test -z "${BUILD_LIBQUADMATH_FALSE}"; then
13445 as_fn_error $? "conditional \"BUILD_LIBQUADMATH\" was never defined.
13446 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13448 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
13449 as_fn_error $? "conditional \"GENINSRC\" was never defined.
13450 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13453 : "${CONFIG_STATUS=./config.status}"
13454 ac_write_fail=0
13455 ac_clean_files_save=$ac_clean_files
13456 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13458 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13459 as_write_fail=0
13460 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13461 #! $SHELL
13462 # Generated by $as_me.
13463 # Run this file to recreate the current configuration.
13464 # Compiler output produced by configure, useful for debugging
13465 # configure, is in config.log if it exists.
13467 debug=false
13468 ac_cs_recheck=false
13469 ac_cs_silent=false
13471 SHELL=\${CONFIG_SHELL-$SHELL}
13472 export SHELL
13473 _ASEOF
13474 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13475 ## -------------------- ##
13476 ## M4sh Initialization. ##
13477 ## -------------------- ##
13479 # Be more Bourne compatible
13480 DUALCASE=1; export DUALCASE # for MKS sh
13481 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13482 emulate sh
13483 NULLCMD=:
13484 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13485 # is contrary to our usage. Disable this feature.
13486 alias -g '${1+"$@"}'='"$@"'
13487 setopt NO_GLOB_SUBST
13488 else
13489 case `(set -o) 2>/dev/null` in #(
13490 *posix*) :
13491 set -o posix ;; #(
13492 *) :
13494 esac
13498 as_nl='
13500 export as_nl
13501 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13502 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13503 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13504 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13505 # Prefer a ksh shell builtin over an external printf program on Solaris,
13506 # but without wasting forks for bash or zsh.
13507 if test -z "$BASH_VERSION$ZSH_VERSION" \
13508 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13509 as_echo='print -r --'
13510 as_echo_n='print -rn --'
13511 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13512 as_echo='printf %s\n'
13513 as_echo_n='printf %s'
13514 else
13515 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13516 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13517 as_echo_n='/usr/ucb/echo -n'
13518 else
13519 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13520 as_echo_n_body='eval
13521 arg=$1;
13522 case $arg in #(
13523 *"$as_nl"*)
13524 expr "X$arg" : "X\\(.*\\)$as_nl";
13525 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13526 esac;
13527 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13529 export as_echo_n_body
13530 as_echo_n='sh -c $as_echo_n_body as_echo'
13532 export as_echo_body
13533 as_echo='sh -c $as_echo_body as_echo'
13536 # The user is always right.
13537 if test "${PATH_SEPARATOR+set}" != set; then
13538 PATH_SEPARATOR=:
13539 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13540 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13541 PATH_SEPARATOR=';'
13546 # IFS
13547 # We need space, tab and new line, in precisely that order. Quoting is
13548 # there to prevent editors from complaining about space-tab.
13549 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13550 # splitting by setting IFS to empty value.)
13551 IFS=" "" $as_nl"
13553 # Find who we are. Look in the path if we contain no directory separator.
13554 as_myself=
13555 case $0 in #((
13556 *[\\/]* ) as_myself=$0 ;;
13557 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13558 for as_dir in $PATH
13560 IFS=$as_save_IFS
13561 test -z "$as_dir" && as_dir=.
13562 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13563 done
13564 IFS=$as_save_IFS
13567 esac
13568 # We did not find ourselves, most probably we were run as `sh COMMAND'
13569 # in which case we are not to be found in the path.
13570 if test "x$as_myself" = x; then
13571 as_myself=$0
13573 if test ! -f "$as_myself"; then
13574 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13575 exit 1
13578 # Unset variables that we do not need and which cause bugs (e.g. in
13579 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13580 # suppresses any "Segmentation fault" message there. '((' could
13581 # trigger a bug in pdksh 5.2.14.
13582 for as_var in BASH_ENV ENV MAIL MAILPATH
13583 do eval test x\${$as_var+set} = xset \
13584 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13585 done
13586 PS1='$ '
13587 PS2='> '
13588 PS4='+ '
13590 # NLS nuisances.
13591 LC_ALL=C
13592 export LC_ALL
13593 LANGUAGE=C
13594 export LANGUAGE
13596 # CDPATH.
13597 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13600 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13601 # ----------------------------------------
13602 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13603 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13604 # script with STATUS, using 1 if that was 0.
13605 as_fn_error ()
13607 as_status=$1; test $as_status -eq 0 && as_status=1
13608 if test "$4"; then
13609 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13610 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13612 $as_echo "$as_me: error: $2" >&2
13613 as_fn_exit $as_status
13614 } # as_fn_error
13617 # as_fn_set_status STATUS
13618 # -----------------------
13619 # Set $? to STATUS, without forking.
13620 as_fn_set_status ()
13622 return $1
13623 } # as_fn_set_status
13625 # as_fn_exit STATUS
13626 # -----------------
13627 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13628 as_fn_exit ()
13630 set +e
13631 as_fn_set_status $1
13632 exit $1
13633 } # as_fn_exit
13635 # as_fn_unset VAR
13636 # ---------------
13637 # Portably unset VAR.
13638 as_fn_unset ()
13640 { eval $1=; unset $1;}
13642 as_unset=as_fn_unset
13643 # as_fn_append VAR VALUE
13644 # ----------------------
13645 # Append the text in VALUE to the end of the definition contained in VAR. Take
13646 # advantage of any shell optimizations that allow amortized linear growth over
13647 # repeated appends, instead of the typical quadratic growth present in naive
13648 # implementations.
13649 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13650 eval 'as_fn_append ()
13652 eval $1+=\$2
13654 else
13655 as_fn_append ()
13657 eval $1=\$$1\$2
13659 fi # as_fn_append
13661 # as_fn_arith ARG...
13662 # ------------------
13663 # Perform arithmetic evaluation on the ARGs, and store the result in the
13664 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13665 # must be portable across $(()) and expr.
13666 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13667 eval 'as_fn_arith ()
13669 as_val=$(( $* ))
13671 else
13672 as_fn_arith ()
13674 as_val=`expr "$@" || test $? -eq 1`
13676 fi # as_fn_arith
13679 if expr a : '\(a\)' >/dev/null 2>&1 &&
13680 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13681 as_expr=expr
13682 else
13683 as_expr=false
13686 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13687 as_basename=basename
13688 else
13689 as_basename=false
13692 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13693 as_dirname=dirname
13694 else
13695 as_dirname=false
13698 as_me=`$as_basename -- "$0" ||
13699 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13700 X"$0" : 'X\(//\)$' \| \
13701 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13702 $as_echo X/"$0" |
13703 sed '/^.*\/\([^/][^/]*\)\/*$/{
13704 s//\1/
13707 /^X\/\(\/\/\)$/{
13708 s//\1/
13711 /^X\/\(\/\).*/{
13712 s//\1/
13715 s/.*/./; q'`
13717 # Avoid depending upon Character Ranges.
13718 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13719 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13720 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13721 as_cr_digits='0123456789'
13722 as_cr_alnum=$as_cr_Letters$as_cr_digits
13724 ECHO_C= ECHO_N= ECHO_T=
13725 case `echo -n x` in #(((((
13726 -n*)
13727 case `echo 'xy\c'` in
13728 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13729 xy) ECHO_C='\c';;
13730 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13731 ECHO_T=' ';;
13732 esac;;
13734 ECHO_N='-n';;
13735 esac
13737 rm -f conf$$ conf$$.exe conf$$.file
13738 if test -d conf$$.dir; then
13739 rm -f conf$$.dir/conf$$.file
13740 else
13741 rm -f conf$$.dir
13742 mkdir conf$$.dir 2>/dev/null
13744 if (echo >conf$$.file) 2>/dev/null; then
13745 if ln -s conf$$.file conf$$ 2>/dev/null; then
13746 as_ln_s='ln -s'
13747 # ... but there are two gotchas:
13748 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13749 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13750 # In both cases, we have to default to `cp -pR'.
13751 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13752 as_ln_s='cp -pR'
13753 elif ln conf$$.file conf$$ 2>/dev/null; then
13754 as_ln_s=ln
13755 else
13756 as_ln_s='cp -pR'
13758 else
13759 as_ln_s='cp -pR'
13761 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13762 rmdir conf$$.dir 2>/dev/null
13765 # as_fn_mkdir_p
13766 # -------------
13767 # Create "$as_dir" as a directory, including parents if necessary.
13768 as_fn_mkdir_p ()
13771 case $as_dir in #(
13772 -*) as_dir=./$as_dir;;
13773 esac
13774 test -d "$as_dir" || eval $as_mkdir_p || {
13775 as_dirs=
13776 while :; do
13777 case $as_dir in #(
13778 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13779 *) as_qdir=$as_dir;;
13780 esac
13781 as_dirs="'$as_qdir' $as_dirs"
13782 as_dir=`$as_dirname -- "$as_dir" ||
13783 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13784 X"$as_dir" : 'X\(//\)[^/]' \| \
13785 X"$as_dir" : 'X\(//\)$' \| \
13786 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13787 $as_echo X"$as_dir" |
13788 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13789 s//\1/
13792 /^X\(\/\/\)[^/].*/{
13793 s//\1/
13796 /^X\(\/\/\)$/{
13797 s//\1/
13800 /^X\(\/\).*/{
13801 s//\1/
13804 s/.*/./; q'`
13805 test -d "$as_dir" && break
13806 done
13807 test -z "$as_dirs" || eval "mkdir $as_dirs"
13808 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13811 } # as_fn_mkdir_p
13812 if mkdir -p . 2>/dev/null; then
13813 as_mkdir_p='mkdir -p "$as_dir"'
13814 else
13815 test -d ./-p && rmdir ./-p
13816 as_mkdir_p=false
13820 # as_fn_executable_p FILE
13821 # -----------------------
13822 # Test if FILE is an executable regular file.
13823 as_fn_executable_p ()
13825 test -f "$1" && test -x "$1"
13826 } # as_fn_executable_p
13827 as_test_x='test -x'
13828 as_executable_p=as_fn_executable_p
13830 # Sed expression to map a string onto a valid CPP name.
13831 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13833 # Sed expression to map a string onto a valid variable name.
13834 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13837 exec 6>&1
13838 ## ----------------------------------- ##
13839 ## Main body of $CONFIG_STATUS script. ##
13840 ## ----------------------------------- ##
13841 _ASEOF
13842 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13844 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13845 # Save the log message, to keep $0 and so on meaningful, and to
13846 # report actual input values of CONFIG_FILES etc. instead of their
13847 # values after options handling.
13848 ac_log="
13849 This file was extended by GCC Quad-precision Math Library $as_me 0.1, which was
13850 generated by GNU Autoconf 2.69. Invocation command line was
13852 CONFIG_FILES = $CONFIG_FILES
13853 CONFIG_HEADERS = $CONFIG_HEADERS
13854 CONFIG_LINKS = $CONFIG_LINKS
13855 CONFIG_COMMANDS = $CONFIG_COMMANDS
13856 $ $0 $@
13858 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13861 _ACEOF
13863 case $ac_config_files in *"
13864 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13865 esac
13867 case $ac_config_headers in *"
13868 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13869 esac
13872 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13873 # Files that config.status was made for.
13874 config_files="$ac_config_files"
13875 config_headers="$ac_config_headers"
13876 config_commands="$ac_config_commands"
13878 _ACEOF
13880 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13881 ac_cs_usage="\
13882 \`$as_me' instantiates files and other configuration actions
13883 from templates according to the current configuration. Unless the files
13884 and actions are specified as TAGs, all are instantiated by default.
13886 Usage: $0 [OPTION]... [TAG]...
13888 -h, --help print this help, then exit
13889 -V, --version print version number and configuration settings, then exit
13890 --config print configuration, then exit
13891 -q, --quiet, --silent
13892 do not print progress messages
13893 -d, --debug don't remove temporary files
13894 --recheck update $as_me by reconfiguring in the same conditions
13895 --file=FILE[:TEMPLATE]
13896 instantiate the configuration file FILE
13897 --header=FILE[:TEMPLATE]
13898 instantiate the configuration header FILE
13900 Configuration files:
13901 $config_files
13903 Configuration headers:
13904 $config_headers
13906 Configuration commands:
13907 $config_commands
13909 Report bugs to the package provider."
13911 _ACEOF
13912 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13913 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13914 ac_cs_version="\\
13915 GCC Quad-precision Math Library config.status 0.1
13916 configured by $0, generated by GNU Autoconf 2.69,
13917 with options \\"\$ac_cs_config\\"
13919 Copyright (C) 2012 Free Software Foundation, Inc.
13920 This config.status script is free software; the Free Software Foundation
13921 gives unlimited permission to copy, distribute and modify it."
13923 ac_pwd='$ac_pwd'
13924 srcdir='$srcdir'
13925 INSTALL='$INSTALL'
13926 MKDIR_P='$MKDIR_P'
13927 AWK='$AWK'
13928 test -n "\$AWK" || AWK=awk
13929 _ACEOF
13931 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13932 # The default lists apply if the user does not specify any file.
13933 ac_need_defaults=:
13934 while test $# != 0
13936 case $1 in
13937 --*=?*)
13938 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13939 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13940 ac_shift=:
13942 --*=)
13943 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13944 ac_optarg=
13945 ac_shift=:
13948 ac_option=$1
13949 ac_optarg=$2
13950 ac_shift=shift
13952 esac
13954 case $ac_option in
13955 # Handling of the options.
13956 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13957 ac_cs_recheck=: ;;
13958 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13959 $as_echo "$ac_cs_version"; exit ;;
13960 --config | --confi | --conf | --con | --co | --c )
13961 $as_echo "$ac_cs_config"; exit ;;
13962 --debug | --debu | --deb | --de | --d | -d )
13963 debug=: ;;
13964 --file | --fil | --fi | --f )
13965 $ac_shift
13966 case $ac_optarg in
13967 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13968 '') as_fn_error $? "missing file argument" ;;
13969 esac
13970 as_fn_append CONFIG_FILES " '$ac_optarg'"
13971 ac_need_defaults=false;;
13972 --header | --heade | --head | --hea )
13973 $ac_shift
13974 case $ac_optarg in
13975 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13976 esac
13977 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13978 ac_need_defaults=false;;
13979 --he | --h)
13980 # Conflict between --help and --header
13981 as_fn_error $? "ambiguous option: \`$1'
13982 Try \`$0 --help' for more information.";;
13983 --help | --hel | -h )
13984 $as_echo "$ac_cs_usage"; exit ;;
13985 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13986 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13987 ac_cs_silent=: ;;
13989 # This is an error.
13990 -*) as_fn_error $? "unrecognized option: \`$1'
13991 Try \`$0 --help' for more information." ;;
13993 *) as_fn_append ac_config_targets " $1"
13994 ac_need_defaults=false ;;
13996 esac
13997 shift
13998 done
14000 ac_configure_extra_args=
14002 if $ac_cs_silent; then
14003 exec 6>/dev/null
14004 ac_configure_extra_args="$ac_configure_extra_args --silent"
14007 _ACEOF
14008 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14009 if \$ac_cs_recheck; then
14010 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14011 shift
14012 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14013 CONFIG_SHELL='$SHELL'
14014 export CONFIG_SHELL
14015 exec "\$@"
14018 _ACEOF
14019 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14020 exec 5>>config.log
14022 echo
14023 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14024 ## Running $as_me. ##
14025 _ASBOX
14026 $as_echo "$ac_log"
14027 } >&5
14029 _ACEOF
14030 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14032 # INIT-COMMANDS
14035 srcdir="$srcdir"
14036 host="$host"
14037 target="$target"
14038 with_multisubdir="$with_multisubdir"
14039 with_multisrctop="$with_multisrctop"
14040 with_target_subdir="$with_target_subdir"
14041 ac_configure_args="${multilib_arg} ${ac_configure_args}"
14042 multi_basedir="$multi_basedir"
14043 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
14044 CC="$CC"
14045 CXX="$CXX"
14046 GFORTRAN="$GFORTRAN"
14047 GDC="$GDC"
14048 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14051 # The HP-UX ksh and POSIX shell print the target directory to stdout
14052 # if CDPATH is set.
14053 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14055 sed_quote_subst='$sed_quote_subst'
14056 double_quote_subst='$double_quote_subst'
14057 delay_variable_subst='$delay_variable_subst'
14058 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14059 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14060 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14061 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14062 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14063 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14064 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14065 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14066 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14067 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14068 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14069 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14070 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14071 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14072 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14073 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14074 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14075 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14076 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14077 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14078 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14079 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14080 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14081 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14082 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14083 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14084 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14085 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14086 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14087 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14088 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14089 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14090 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14091 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14092 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14093 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14094 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14095 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14096 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14097 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14098 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14099 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14100 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14101 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14102 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14103 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14104 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14105 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14106 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"`'
14107 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14108 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14109 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14110 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14111 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14112 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14113 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14114 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14115 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14116 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14117 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14118 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14119 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14120 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14121 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14122 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14123 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14124 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14125 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14126 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14127 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14128 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14129 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14130 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14131 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14132 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14133 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14134 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14135 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14136 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14137 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14138 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
14139 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14140 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14141 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14142 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14143 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14144 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14145 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14146 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14147 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
14148 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14149 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14150 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14151 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14152 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14153 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14154 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14155 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14156 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14157 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14158 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14159 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14160 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14161 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14162 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14163 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14164 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14165 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14166 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14167 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14168 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14169 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14170 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14171 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14172 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14173 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14174 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14175 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14176 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14177 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14179 LTCC='$LTCC'
14180 LTCFLAGS='$LTCFLAGS'
14181 compiler='$compiler_DEFAULT'
14183 # A function that is used when there is no print builtin or printf.
14184 func_fallback_echo ()
14186 eval 'cat <<_LTECHO_EOF
14188 _LTECHO_EOF'
14191 # Quote evaled strings.
14192 for var in SHELL \
14193 ECHO \
14194 SED \
14195 GREP \
14196 EGREP \
14197 FGREP \
14198 LD \
14199 NM \
14200 LN_S \
14201 lt_SP2NL \
14202 lt_NL2SP \
14203 reload_flag \
14204 OBJDUMP \
14205 deplibs_check_method \
14206 file_magic_cmd \
14207 AR \
14208 AR_FLAGS \
14209 STRIP \
14210 RANLIB \
14211 CC \
14212 CFLAGS \
14213 compiler \
14214 lt_cv_sys_global_symbol_pipe \
14215 lt_cv_sys_global_symbol_to_cdecl \
14216 lt_cv_sys_global_symbol_to_c_name_address \
14217 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14218 lt_prog_compiler_no_builtin_flag \
14219 lt_prog_compiler_wl \
14220 lt_prog_compiler_pic \
14221 lt_prog_compiler_static \
14222 lt_cv_prog_compiler_c_o \
14223 need_locks \
14224 DSYMUTIL \
14225 NMEDIT \
14226 LIPO \
14227 OTOOL \
14228 OTOOL64 \
14229 shrext_cmds \
14230 export_dynamic_flag_spec \
14231 whole_archive_flag_spec \
14232 compiler_needs_object \
14233 with_gnu_ld \
14234 allow_undefined_flag \
14235 no_undefined_flag \
14236 hardcode_libdir_flag_spec \
14237 hardcode_libdir_flag_spec_ld \
14238 hardcode_libdir_separator \
14239 fix_srcfile_path \
14240 exclude_expsyms \
14241 include_expsyms \
14242 file_list_spec \
14243 variables_saved_for_relink \
14244 libname_spec \
14245 library_names_spec \
14246 soname_spec \
14247 install_override_mode \
14248 finish_eval \
14249 old_striplib \
14250 striplib; do
14251 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14252 *[\\\\\\\`\\"\\\$]*)
14253 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14256 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14258 esac
14259 done
14261 # Double-quote double-evaled strings.
14262 for var in reload_cmds \
14263 old_postinstall_cmds \
14264 old_postuninstall_cmds \
14265 old_archive_cmds \
14266 extract_expsyms_cmds \
14267 old_archive_from_new_cmds \
14268 old_archive_from_expsyms_cmds \
14269 archive_cmds \
14270 archive_expsym_cmds \
14271 module_cmds \
14272 module_expsym_cmds \
14273 export_symbols_cmds \
14274 prelink_cmds \
14275 postinstall_cmds \
14276 postuninstall_cmds \
14277 finish_cmds \
14278 sys_lib_search_path_spec \
14279 sys_lib_dlsearch_path_spec; do
14280 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14281 *[\\\\\\\`\\"\\\$]*)
14282 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14285 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14287 esac
14288 done
14290 ac_aux_dir='$ac_aux_dir'
14291 xsi_shell='$xsi_shell'
14292 lt_shell_append='$lt_shell_append'
14294 # See if we are running on zsh, and set the options which allow our
14295 # commands through without removal of \ escapes INIT.
14296 if test -n "\${ZSH_VERSION+set}" ; then
14297 setopt NO_GLOB_SUBST
14301 PACKAGE='$PACKAGE'
14302 VERSION='$VERSION'
14303 TIMESTAMP='$TIMESTAMP'
14304 RM='$RM'
14305 ofile='$ofile'
14310 _ACEOF
14312 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14314 # Handling of arguments.
14315 for ac_config_target in $ac_config_targets
14317 case $ac_config_target in
14318 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14319 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14320 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14321 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14322 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14324 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14325 esac
14326 done
14329 # If the user did not use the arguments to specify the items to instantiate,
14330 # then the envvar interface is used. Set only those that are not.
14331 # We use the long form for the default assignment because of an extremely
14332 # bizarre bug on SunOS 4.1.3.
14333 if $ac_need_defaults; then
14334 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14335 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14336 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14339 # Have a temporary directory for convenience. Make it in the build tree
14340 # simply because there is no reason against having it here, and in addition,
14341 # creating and moving files from /tmp can sometimes cause problems.
14342 # Hook for its removal unless debugging.
14343 # Note that there is a small window in which the directory will not be cleaned:
14344 # after its creation but before its name has been assigned to `$tmp'.
14345 $debug ||
14347 tmp= ac_tmp=
14348 trap 'exit_status=$?
14349 : "${ac_tmp:=$tmp}"
14350 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14352 trap 'as_fn_exit 1' 1 2 13 15
14354 # Create a (secure) tmp directory for tmp files.
14357 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14358 test -d "$tmp"
14359 } ||
14361 tmp=./conf$$-$RANDOM
14362 (umask 077 && mkdir "$tmp")
14363 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14364 ac_tmp=$tmp
14366 # Set up the scripts for CONFIG_FILES section.
14367 # No need to generate them if there are no CONFIG_FILES.
14368 # This happens for instance with `./config.status config.h'.
14369 if test -n "$CONFIG_FILES"; then
14372 ac_cr=`echo X | tr X '\015'`
14373 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14374 # But we know of no other shell where ac_cr would be empty at this
14375 # point, so we can use a bashism as a fallback.
14376 if test "x$ac_cr" = x; then
14377 eval ac_cr=\$\'\\r\'
14379 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14380 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14381 ac_cs_awk_cr='\\r'
14382 else
14383 ac_cs_awk_cr=$ac_cr
14386 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14387 _ACEOF
14391 echo "cat >conf$$subs.awk <<_ACEOF" &&
14392 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14393 echo "_ACEOF"
14394 } >conf$$subs.sh ||
14395 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14396 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14397 ac_delim='%!_!# '
14398 for ac_last_try in false false false false false :; do
14399 . ./conf$$subs.sh ||
14400 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14402 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14403 if test $ac_delim_n = $ac_delim_num; then
14404 break
14405 elif $ac_last_try; then
14406 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14407 else
14408 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14410 done
14411 rm -f conf$$subs.sh
14413 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14414 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14415 _ACEOF
14416 sed -n '
14418 s/^/S["/; s/!.*/"]=/
14421 s/^[^!]*!//
14422 :repl
14423 t repl
14424 s/'"$ac_delim"'$//
14425 t delim
14428 s/\(.\{148\}\)..*/\1/
14429 t more1
14430 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14433 b repl
14434 :more1
14435 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14438 s/.\{148\}//
14439 t nl
14440 :delim
14442 s/\(.\{148\}\)..*/\1/
14443 t more2
14444 s/["\\]/\\&/g; s/^/"/; s/$/"/
14447 :more2
14448 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14451 s/.\{148\}//
14452 t delim
14453 ' <conf$$subs.awk | sed '
14454 /^[^""]/{
14456 s/\n//
14458 ' >>$CONFIG_STATUS || ac_write_fail=1
14459 rm -f conf$$subs.awk
14460 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14461 _ACAWK
14462 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14463 for (key in S) S_is_set[key] = 1
14464 FS = "\a"
14468 line = $ 0
14469 nfields = split(line, field, "@")
14470 substed = 0
14471 len = length(field[1])
14472 for (i = 2; i < nfields; i++) {
14473 key = field[i]
14474 keylen = length(key)
14475 if (S_is_set[key]) {
14476 value = S[key]
14477 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14478 len += length(value) + length(field[++i])
14479 substed = 1
14480 } else
14481 len += 1 + keylen
14484 print line
14487 _ACAWK
14488 _ACEOF
14489 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14490 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14491 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14492 else
14494 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14495 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14496 _ACEOF
14498 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14499 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14500 # trailing colons and then remove the whole line if VPATH becomes empty
14501 # (actually we leave an empty line to preserve line numbers).
14502 if test "x$srcdir" = x.; then
14503 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14505 s///
14506 s/^/:/
14507 s/[ ]*$/:/
14508 s/:\$(srcdir):/:/g
14509 s/:\${srcdir}:/:/g
14510 s/:@srcdir@:/:/g
14511 s/^:*//
14512 s/:*$//
14514 s/\(=[ ]*\).*/\1/
14516 s/\n//
14517 s/^[^=]*=[ ]*$//
14521 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14522 fi # test -n "$CONFIG_FILES"
14524 # Set up the scripts for CONFIG_HEADERS section.
14525 # No need to generate them if there are no CONFIG_HEADERS.
14526 # This happens for instance with `./config.status Makefile'.
14527 if test -n "$CONFIG_HEADERS"; then
14528 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14529 BEGIN {
14530 _ACEOF
14532 # Transform confdefs.h into an awk script `defines.awk', embedded as
14533 # here-document in config.status, that substitutes the proper values into
14534 # config.h.in to produce config.h.
14536 # Create a delimiter string that does not exist in confdefs.h, to ease
14537 # handling of long lines.
14538 ac_delim='%!_!# '
14539 for ac_last_try in false false :; do
14540 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14541 if test -z "$ac_tt"; then
14542 break
14543 elif $ac_last_try; then
14544 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14545 else
14546 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14548 done
14550 # For the awk script, D is an array of macro values keyed by name,
14551 # likewise P contains macro parameters if any. Preserve backslash
14552 # newline sequences.
14554 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14555 sed -n '
14556 s/.\{148\}/&'"$ac_delim"'/g
14557 t rset
14558 :rset
14559 s/^[ ]*#[ ]*define[ ][ ]*/ /
14560 t def
14562 :def
14563 s/\\$//
14564 t bsnl
14565 s/["\\]/\\&/g
14566 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14567 D["\1"]=" \3"/p
14568 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14570 :bsnl
14571 s/["\\]/\\&/g
14572 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14573 D["\1"]=" \3\\\\\\n"\\/p
14574 t cont
14575 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14576 t cont
14578 :cont
14580 s/.\{148\}/&'"$ac_delim"'/g
14581 t clear
14582 :clear
14583 s/\\$//
14584 t bsnlc
14585 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14587 :bsnlc
14588 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14589 b cont
14590 ' <confdefs.h | sed '
14591 s/'"$ac_delim"'/"\\\
14592 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14594 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14595 for (key in D) D_is_set[key] = 1
14596 FS = "\a"
14598 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14599 line = \$ 0
14600 split(line, arg, " ")
14601 if (arg[1] == "#") {
14602 defundef = arg[2]
14603 mac1 = arg[3]
14604 } else {
14605 defundef = substr(arg[1], 2)
14606 mac1 = arg[2]
14608 split(mac1, mac2, "(") #)
14609 macro = mac2[1]
14610 prefix = substr(line, 1, index(line, defundef) - 1)
14611 if (D_is_set[macro]) {
14612 # Preserve the white space surrounding the "#".
14613 print prefix "define", macro P[macro] D[macro]
14614 next
14615 } else {
14616 # Replace #undef with comments. This is necessary, for example,
14617 # in the case of _POSIX_SOURCE, which is predefined and required
14618 # on some systems where configure will not decide to define it.
14619 if (defundef == "undef") {
14620 print "/*", prefix defundef, macro, "*/"
14621 next
14625 { print }
14626 _ACAWK
14627 _ACEOF
14628 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14629 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14630 fi # test -n "$CONFIG_HEADERS"
14633 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14634 shift
14635 for ac_tag
14637 case $ac_tag in
14638 :[FHLC]) ac_mode=$ac_tag; continue;;
14639 esac
14640 case $ac_mode$ac_tag in
14641 :[FHL]*:*);;
14642 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14643 :[FH]-) ac_tag=-:-;;
14644 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14645 esac
14646 ac_save_IFS=$IFS
14647 IFS=:
14648 set x $ac_tag
14649 IFS=$ac_save_IFS
14650 shift
14651 ac_file=$1
14652 shift
14654 case $ac_mode in
14655 :L) ac_source=$1;;
14656 :[FH])
14657 ac_file_inputs=
14658 for ac_f
14660 case $ac_f in
14661 -) ac_f="$ac_tmp/stdin";;
14662 *) # Look for the file first in the build tree, then in the source tree
14663 # (if the path is not absolute). The absolute path cannot be DOS-style,
14664 # because $ac_f cannot contain `:'.
14665 test -f "$ac_f" ||
14666 case $ac_f in
14667 [\\/$]*) false;;
14668 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14669 esac ||
14670 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14671 esac
14672 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14673 as_fn_append ac_file_inputs " '$ac_f'"
14674 done
14676 # Let's still pretend it is `configure' which instantiates (i.e., don't
14677 # use $as_me), people would be surprised to read:
14678 # /* config.h. Generated by config.status. */
14679 configure_input='Generated from '`
14680 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14681 `' by configure.'
14682 if test x"$ac_file" != x-; then
14683 configure_input="$ac_file. $configure_input"
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14685 $as_echo "$as_me: creating $ac_file" >&6;}
14687 # Neutralize special characters interpreted by sed in replacement strings.
14688 case $configure_input in #(
14689 *\&* | *\|* | *\\* )
14690 ac_sed_conf_input=`$as_echo "$configure_input" |
14691 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14692 *) ac_sed_conf_input=$configure_input;;
14693 esac
14695 case $ac_tag in
14696 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14697 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14698 esac
14700 esac
14702 ac_dir=`$as_dirname -- "$ac_file" ||
14703 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14704 X"$ac_file" : 'X\(//\)[^/]' \| \
14705 X"$ac_file" : 'X\(//\)$' \| \
14706 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14707 $as_echo X"$ac_file" |
14708 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14709 s//\1/
14712 /^X\(\/\/\)[^/].*/{
14713 s//\1/
14716 /^X\(\/\/\)$/{
14717 s//\1/
14720 /^X\(\/\).*/{
14721 s//\1/
14724 s/.*/./; q'`
14725 as_dir="$ac_dir"; as_fn_mkdir_p
14726 ac_builddir=.
14728 case "$ac_dir" in
14729 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14731 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14732 # A ".." for each directory in $ac_dir_suffix.
14733 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14734 case $ac_top_builddir_sub in
14735 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14736 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14737 esac ;;
14738 esac
14739 ac_abs_top_builddir=$ac_pwd
14740 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14741 # for backward compatibility:
14742 ac_top_builddir=$ac_top_build_prefix
14744 case $srcdir in
14745 .) # We are building in place.
14746 ac_srcdir=.
14747 ac_top_srcdir=$ac_top_builddir_sub
14748 ac_abs_top_srcdir=$ac_pwd ;;
14749 [\\/]* | ?:[\\/]* ) # Absolute name.
14750 ac_srcdir=$srcdir$ac_dir_suffix;
14751 ac_top_srcdir=$srcdir
14752 ac_abs_top_srcdir=$srcdir ;;
14753 *) # Relative name.
14754 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14755 ac_top_srcdir=$ac_top_build_prefix$srcdir
14756 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14757 esac
14758 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14761 case $ac_mode in
14764 # CONFIG_FILE
14767 case $INSTALL in
14768 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14769 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14770 esac
14771 ac_MKDIR_P=$MKDIR_P
14772 case $MKDIR_P in
14773 [\\/$]* | ?:[\\/]* ) ;;
14774 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14775 esac
14776 _ACEOF
14778 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14779 # If the template does not know about datarootdir, expand it.
14780 # FIXME: This hack should be removed a few years after 2.60.
14781 ac_datarootdir_hack=; ac_datarootdir_seen=
14782 ac_sed_dataroot='
14783 /datarootdir/ {
14787 /@datadir@/p
14788 /@docdir@/p
14789 /@infodir@/p
14790 /@localedir@/p
14791 /@mandir@/p'
14792 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14793 *datarootdir*) ac_datarootdir_seen=yes;;
14794 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14796 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14797 _ACEOF
14798 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14799 ac_datarootdir_hack='
14800 s&@datadir@&$datadir&g
14801 s&@docdir@&$docdir&g
14802 s&@infodir@&$infodir&g
14803 s&@localedir@&$localedir&g
14804 s&@mandir@&$mandir&g
14805 s&\\\${datarootdir}&$datarootdir&g' ;;
14806 esac
14807 _ACEOF
14809 # Neutralize VPATH when `$srcdir' = `.'.
14810 # Shell code in configure.ac might set extrasub.
14811 # FIXME: do we really want to maintain this feature?
14812 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14813 ac_sed_extra="$ac_vpsub
14814 $extrasub
14815 _ACEOF
14816 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14818 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14819 s|@configure_input@|$ac_sed_conf_input|;t t
14820 s&@top_builddir@&$ac_top_builddir_sub&;t t
14821 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14822 s&@srcdir@&$ac_srcdir&;t t
14823 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14824 s&@top_srcdir@&$ac_top_srcdir&;t t
14825 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14826 s&@builddir@&$ac_builddir&;t t
14827 s&@abs_builddir@&$ac_abs_builddir&;t t
14828 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14829 s&@INSTALL@&$ac_INSTALL&;t t
14830 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14831 $ac_datarootdir_hack
14833 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14834 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14836 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14837 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14838 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14839 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14841 which seems to be undefined. Please make sure it is defined" >&5
14842 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14843 which seems to be undefined. Please make sure it is defined" >&2;}
14845 rm -f "$ac_tmp/stdin"
14846 case $ac_file in
14847 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14848 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14849 esac \
14850 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14854 # CONFIG_HEADER
14856 if test x"$ac_file" != x-; then
14858 $as_echo "/* $configure_input */" \
14859 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14860 } >"$ac_tmp/config.h" \
14861 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14862 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14864 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14865 else
14866 rm -f "$ac_file"
14867 mv "$ac_tmp/config.h" "$ac_file" \
14868 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14870 else
14871 $as_echo "/* $configure_input */" \
14872 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14873 || as_fn_error $? "could not create -" "$LINENO" 5
14875 # Compute "$ac_file"'s index in $config_headers.
14876 _am_arg="$ac_file"
14877 _am_stamp_count=1
14878 for _am_header in $config_headers :; do
14879 case $_am_header in
14880 $_am_arg | $_am_arg:* )
14881 break ;;
14883 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14884 esac
14885 done
14886 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14887 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14888 X"$_am_arg" : 'X\(//\)[^/]' \| \
14889 X"$_am_arg" : 'X\(//\)$' \| \
14890 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14891 $as_echo X"$_am_arg" |
14892 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14893 s//\1/
14896 /^X\(\/\/\)[^/].*/{
14897 s//\1/
14900 /^X\(\/\/\)$/{
14901 s//\1/
14904 /^X\(\/\).*/{
14905 s//\1/
14908 s/.*/./; q'`/stamp-h$_am_stamp_count
14911 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14912 $as_echo "$as_me: executing $ac_file commands" >&6;}
14914 esac
14917 case $ac_file$ac_mode in
14918 "default-1":C)
14919 # Only add multilib support code if we just rebuilt the top-level
14920 # Makefile.
14921 case " $CONFIG_FILES " in
14922 *" Makefile "*)
14923 ac_file=Makefile . ${multi_basedir}/config-ml.in
14925 esac ;;
14926 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14927 # Older Autoconf quotes --file arguments for eval, but not when files
14928 # are listed without --file. Let's play safe and only enable the eval
14929 # if we detect the quoting.
14930 case $CONFIG_FILES in
14931 *\'*) eval set x "$CONFIG_FILES" ;;
14932 *) set x $CONFIG_FILES ;;
14933 esac
14934 shift
14935 for mf
14937 # Strip MF so we end up with the name of the file.
14938 mf=`echo "$mf" | sed -e 's/:.*$//'`
14939 # Check whether this is an Automake generated Makefile or not.
14940 # We used to match only the files named 'Makefile.in', but
14941 # some people rename them; so instead we look at the file content.
14942 # Grep'ing the first line is not enough: some people post-process
14943 # each Makefile.in and add a new line on top of each file to say so.
14944 # Grep'ing the whole file is not good either: AIX grep has a line
14945 # limit of 2048, but all sed's we know have understand at least 4000.
14946 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14947 dirpart=`$as_dirname -- "$mf" ||
14948 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14949 X"$mf" : 'X\(//\)[^/]' \| \
14950 X"$mf" : 'X\(//\)$' \| \
14951 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14952 $as_echo X"$mf" |
14953 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14954 s//\1/
14957 /^X\(\/\/\)[^/].*/{
14958 s//\1/
14961 /^X\(\/\/\)$/{
14962 s//\1/
14965 /^X\(\/\).*/{
14966 s//\1/
14969 s/.*/./; q'`
14970 else
14971 continue
14973 # Extract the definition of DEPDIR, am__include, and am__quote
14974 # from the Makefile without running 'make'.
14975 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14976 test -z "$DEPDIR" && continue
14977 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14978 test -z "$am__include" && continue
14979 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14980 # Find all dependency output files, they are included files with
14981 # $(DEPDIR) in their names. We invoke sed twice because it is the
14982 # simplest approach to changing $(DEPDIR) to its actual value in the
14983 # expansion.
14984 for file in `sed -n "
14985 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14986 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14987 # Make sure the directory exists.
14988 test -f "$dirpart/$file" && continue
14989 fdir=`$as_dirname -- "$file" ||
14990 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14991 X"$file" : 'X\(//\)[^/]' \| \
14992 X"$file" : 'X\(//\)$' \| \
14993 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14994 $as_echo X"$file" |
14995 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14996 s//\1/
14999 /^X\(\/\/\)[^/].*/{
15000 s//\1/
15003 /^X\(\/\/\)$/{
15004 s//\1/
15007 /^X\(\/\).*/{
15008 s//\1/
15011 s/.*/./; q'`
15012 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15013 # echo "creating $dirpart/$file"
15014 echo '# dummy' > "$dirpart/$file"
15015 done
15016 done
15019 "libtool":C)
15021 # See if we are running on zsh, and set the options which allow our
15022 # commands through without removal of \ escapes.
15023 if test -n "${ZSH_VERSION+set}" ; then
15024 setopt NO_GLOB_SUBST
15027 cfgfile="${ofile}T"
15028 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15029 $RM "$cfgfile"
15031 cat <<_LT_EOF >> "$cfgfile"
15032 #! $SHELL
15034 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15035 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15036 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15037 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15039 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15040 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
15041 # Written by Gordon Matzigkeit, 1996
15043 # This file is part of GNU Libtool.
15045 # GNU Libtool is free software; you can redistribute it and/or
15046 # modify it under the terms of the GNU General Public License as
15047 # published by the Free Software Foundation; either version 2 of
15048 # the License, or (at your option) any later version.
15050 # As a special exception to the GNU General Public License,
15051 # if you distribute this file as part of a program or library that
15052 # is built using GNU Libtool, you may include this file under the
15053 # same distribution terms that you use for the rest of that program.
15055 # GNU Libtool is distributed in the hope that it will be useful,
15056 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15057 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15058 # GNU General Public License for more details.
15060 # You should have received a copy of the GNU General Public License
15061 # along with GNU Libtool; see the file COPYING. If not, a copy
15062 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15063 # obtained by writing to the Free Software Foundation, Inc.,
15064 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15067 # The names of the tagged configurations supported by this script.
15068 available_tags=""
15070 # ### BEGIN LIBTOOL CONFIG
15072 # Which release of libtool.m4 was used?
15073 macro_version=$macro_version
15074 macro_revision=$macro_revision
15076 # Whether or not to build shared libraries.
15077 build_libtool_libs=$enable_shared
15079 # Whether or not to build static libraries.
15080 build_old_libs=$enable_static
15082 # What type of objects to build.
15083 pic_mode=$pic_mode
15085 # Whether or not to optimize for fast installation.
15086 fast_install=$enable_fast_install
15088 # Shell to use when invoking shell scripts.
15089 SHELL=$lt_SHELL
15091 # An echo program that protects backslashes.
15092 ECHO=$lt_ECHO
15094 # The host system.
15095 host_alias=$host_alias
15096 host=$host
15097 host_os=$host_os
15099 # The build system.
15100 build_alias=$build_alias
15101 build=$build
15102 build_os=$build_os
15104 # A sed program that does not truncate output.
15105 SED=$lt_SED
15107 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15108 Xsed="\$SED -e 1s/^X//"
15110 # A grep program that handles long lines.
15111 GREP=$lt_GREP
15113 # An ERE matcher.
15114 EGREP=$lt_EGREP
15116 # A literal string matcher.
15117 FGREP=$lt_FGREP
15119 # A BSD- or MS-compatible name lister.
15120 NM=$lt_NM
15122 # Whether we need soft or hard links.
15123 LN_S=$lt_LN_S
15125 # What is the maximum length of a command?
15126 max_cmd_len=$max_cmd_len
15128 # Object file suffix (normally "o").
15129 objext=$ac_objext
15131 # Executable file suffix (normally "").
15132 exeext=$exeext
15134 # whether the shell understands "unset".
15135 lt_unset=$lt_unset
15137 # turn spaces into newlines.
15138 SP2NL=$lt_lt_SP2NL
15140 # turn newlines into spaces.
15141 NL2SP=$lt_lt_NL2SP
15143 # An object symbol dumper.
15144 OBJDUMP=$lt_OBJDUMP
15146 # Method to check whether dependent libraries are shared objects.
15147 deplibs_check_method=$lt_deplibs_check_method
15149 # Command to use when deplibs_check_method == "file_magic".
15150 file_magic_cmd=$lt_file_magic_cmd
15152 # The archiver.
15153 AR=$lt_AR
15154 AR_FLAGS=$lt_AR_FLAGS
15156 # A symbol stripping program.
15157 STRIP=$lt_STRIP
15159 # Commands used to install an old-style archive.
15160 RANLIB=$lt_RANLIB
15161 old_postinstall_cmds=$lt_old_postinstall_cmds
15162 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15164 # Whether to use a lock for old archive extraction.
15165 lock_old_archive_extraction=$lock_old_archive_extraction
15167 # A C compiler.
15168 LTCC=$lt_CC
15170 # LTCC compiler flags.
15171 LTCFLAGS=$lt_CFLAGS
15173 # Take the output of nm and produce a listing of raw symbols and C names.
15174 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15176 # Transform the output of nm in a proper C declaration.
15177 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15179 # Transform the output of nm in a C name address pair.
15180 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15182 # Transform the output of nm in a C name address pair when lib prefix is needed.
15183 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15185 # The name of the directory that contains temporary libtool files.
15186 objdir=$objdir
15188 # Used to examine libraries when file_magic_cmd begins with "file".
15189 MAGIC_CMD=$MAGIC_CMD
15191 # Must we lock files when doing compilation?
15192 need_locks=$lt_need_locks
15194 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15195 DSYMUTIL=$lt_DSYMUTIL
15197 # Tool to change global to local symbols on Mac OS X.
15198 NMEDIT=$lt_NMEDIT
15200 # Tool to manipulate fat objects and archives on Mac OS X.
15201 LIPO=$lt_LIPO
15203 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15204 OTOOL=$lt_OTOOL
15206 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15207 OTOOL64=$lt_OTOOL64
15209 # Old archive suffix (normally "a").
15210 libext=$libext
15212 # Shared library suffix (normally ".so").
15213 shrext_cmds=$lt_shrext_cmds
15215 # The commands to extract the exported symbol list from a shared archive.
15216 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15218 # Variables whose values should be saved in libtool wrapper scripts and
15219 # restored at link time.
15220 variables_saved_for_relink=$lt_variables_saved_for_relink
15222 # Do we need the "lib" prefix for modules?
15223 need_lib_prefix=$need_lib_prefix
15225 # Do we need a version for libraries?
15226 need_version=$need_version
15228 # Library versioning type.
15229 version_type=$version_type
15231 # Shared library runtime path variable.
15232 runpath_var=$runpath_var
15234 # Shared library path variable.
15235 shlibpath_var=$shlibpath_var
15237 # Is shlibpath searched before the hard-coded library search path?
15238 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15240 # Format of library name prefix.
15241 libname_spec=$lt_libname_spec
15243 # List of archive names. First name is the real one, the rest are links.
15244 # The last name is the one that the linker finds with -lNAME
15245 library_names_spec=$lt_library_names_spec
15247 # The coded name of the library, if different from the real name.
15248 soname_spec=$lt_soname_spec
15250 # Permission mode override for installation of shared libraries.
15251 install_override_mode=$lt_install_override_mode
15253 # Command to use after installation of a shared archive.
15254 postinstall_cmds=$lt_postinstall_cmds
15256 # Command to use after uninstallation of a shared archive.
15257 postuninstall_cmds=$lt_postuninstall_cmds
15259 # Commands used to finish a libtool library installation in a directory.
15260 finish_cmds=$lt_finish_cmds
15262 # As "finish_cmds", except a single script fragment to be evaled but
15263 # not shown.
15264 finish_eval=$lt_finish_eval
15266 # Whether we should hardcode library paths into libraries.
15267 hardcode_into_libs=$hardcode_into_libs
15269 # Compile-time system search path for libraries.
15270 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15272 # Run-time system search path for libraries.
15273 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15275 # Whether dlopen is supported.
15276 dlopen_support=$enable_dlopen
15278 # Whether dlopen of programs is supported.
15279 dlopen_self=$enable_dlopen_self
15281 # Whether dlopen of statically linked programs is supported.
15282 dlopen_self_static=$enable_dlopen_self_static
15284 # Commands to strip libraries.
15285 old_striplib=$lt_old_striplib
15286 striplib=$lt_striplib
15289 # The linker used to build libraries.
15290 LD=$lt_LD
15292 # How to create reloadable object files.
15293 reload_flag=$lt_reload_flag
15294 reload_cmds=$lt_reload_cmds
15296 # Commands used to build an old-style archive.
15297 old_archive_cmds=$lt_old_archive_cmds
15299 # A language specific compiler.
15300 CC=$lt_compiler
15302 # Is the compiler the GNU compiler?
15303 with_gcc=$GCC
15305 # Compiler flag to turn off builtin functions.
15306 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15308 # How to pass a linker flag through the compiler.
15309 wl=$lt_lt_prog_compiler_wl
15311 # Additional compiler flags for building library objects.
15312 pic_flag=$lt_lt_prog_compiler_pic
15314 # Compiler flag to prevent dynamic linking.
15315 link_static_flag=$lt_lt_prog_compiler_static
15317 # Does compiler simultaneously support -c and -o options?
15318 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15320 # Whether or not to add -lc for building shared libraries.
15321 build_libtool_need_lc=$archive_cmds_need_lc
15323 # Whether or not to disallow shared libs when runtime libs are static.
15324 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15326 # Compiler flag to allow reflexive dlopens.
15327 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15329 # Compiler flag to generate shared objects directly from archives.
15330 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15332 # Whether the compiler copes with passing no objects directly.
15333 compiler_needs_object=$lt_compiler_needs_object
15335 # Create an old-style archive from a shared archive.
15336 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15338 # Create a temporary old-style archive to link instead of a shared archive.
15339 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15341 # Commands used to build a shared archive.
15342 archive_cmds=$lt_archive_cmds
15343 archive_expsym_cmds=$lt_archive_expsym_cmds
15345 # Commands used to build a loadable module if different from building
15346 # a shared archive.
15347 module_cmds=$lt_module_cmds
15348 module_expsym_cmds=$lt_module_expsym_cmds
15350 # Whether we are building with GNU ld or not.
15351 with_gnu_ld=$lt_with_gnu_ld
15353 # Flag that allows shared libraries with undefined symbols to be built.
15354 allow_undefined_flag=$lt_allow_undefined_flag
15356 # Flag that enforces no undefined symbols.
15357 no_undefined_flag=$lt_no_undefined_flag
15359 # Flag to hardcode \$libdir into a binary during linking.
15360 # This must work even if \$libdir does not exist
15361 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15363 # If ld is used when linking, flag to hardcode \$libdir into a binary
15364 # during linking. This must work even if \$libdir does not exist.
15365 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15367 # Whether we need a single "-rpath" flag with a separated argument.
15368 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15370 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15371 # DIR into the resulting binary.
15372 hardcode_direct=$hardcode_direct
15374 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15375 # DIR into the resulting binary and the resulting library dependency is
15376 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15377 # library is relocated.
15378 hardcode_direct_absolute=$hardcode_direct_absolute
15380 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15381 # into the resulting binary.
15382 hardcode_minus_L=$hardcode_minus_L
15384 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15385 # into the resulting binary.
15386 hardcode_shlibpath_var=$hardcode_shlibpath_var
15388 # Set to "yes" if building a shared library automatically hardcodes DIR
15389 # into the library and all subsequent libraries and executables linked
15390 # against it.
15391 hardcode_automatic=$hardcode_automatic
15393 # Set to yes if linker adds runtime paths of dependent libraries
15394 # to runtime path list.
15395 inherit_rpath=$inherit_rpath
15397 # Whether libtool must link a program against all its dependency libraries.
15398 link_all_deplibs=$link_all_deplibs
15400 # Fix the shell variable \$srcfile for the compiler.
15401 fix_srcfile_path=$lt_fix_srcfile_path
15403 # Set to "yes" if exported symbols are required.
15404 always_export_symbols=$always_export_symbols
15406 # The commands to list exported symbols.
15407 export_symbols_cmds=$lt_export_symbols_cmds
15409 # Symbols that should not be listed in the preloaded symbols.
15410 exclude_expsyms=$lt_exclude_expsyms
15412 # Symbols that must always be exported.
15413 include_expsyms=$lt_include_expsyms
15415 # Commands necessary for linking programs (against libraries) with templates.
15416 prelink_cmds=$lt_prelink_cmds
15418 # Specify filename containing input files.
15419 file_list_spec=$lt_file_list_spec
15421 # How to hardcode a shared library path into an executable.
15422 hardcode_action=$hardcode_action
15424 # ### END LIBTOOL CONFIG
15426 _LT_EOF
15428 case $host_os in
15429 aix3*)
15430 cat <<\_LT_EOF >> "$cfgfile"
15431 # AIX sometimes has problems with the GCC collect2 program. For some
15432 # reason, if we set the COLLECT_NAMES environment variable, the problems
15433 # vanish in a puff of smoke.
15434 if test "X${COLLECT_NAMES+set}" != Xset; then
15435 COLLECT_NAMES=
15436 export COLLECT_NAMES
15438 _LT_EOF
15440 esac
15443 ltmain="$ac_aux_dir/ltmain.sh"
15446 # We use sed instead of cat because bash on DJGPP gets confused if
15447 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15448 # text mode, it properly converts lines to CR/LF. This bash problem
15449 # is reportedly fixed, but why not run on old versions too?
15450 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15451 || (rm -f "$cfgfile"; exit 1)
15453 case $xsi_shell in
15454 yes)
15455 cat << \_LT_EOF >> "$cfgfile"
15457 # func_dirname file append nondir_replacement
15458 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15459 # otherwise set result to NONDIR_REPLACEMENT.
15460 func_dirname ()
15462 case ${1} in
15463 */*) func_dirname_result="${1%/*}${2}" ;;
15464 * ) func_dirname_result="${3}" ;;
15465 esac
15468 # func_basename file
15469 func_basename ()
15471 func_basename_result="${1##*/}"
15474 # func_dirname_and_basename file append nondir_replacement
15475 # perform func_basename and func_dirname in a single function
15476 # call:
15477 # dirname: Compute the dirname of FILE. If nonempty,
15478 # add APPEND to the result, otherwise set result
15479 # to NONDIR_REPLACEMENT.
15480 # value returned in "$func_dirname_result"
15481 # basename: Compute filename of FILE.
15482 # value retuned in "$func_basename_result"
15483 # Implementation must be kept synchronized with func_dirname
15484 # and func_basename. For efficiency, we do not delegate to
15485 # those functions but instead duplicate the functionality here.
15486 func_dirname_and_basename ()
15488 case ${1} in
15489 */*) func_dirname_result="${1%/*}${2}" ;;
15490 * ) func_dirname_result="${3}" ;;
15491 esac
15492 func_basename_result="${1##*/}"
15495 # func_stripname prefix suffix name
15496 # strip PREFIX and SUFFIX off of NAME.
15497 # PREFIX and SUFFIX must not contain globbing or regex special
15498 # characters, hashes, percent signs, but SUFFIX may contain a leading
15499 # dot (in which case that matches only a dot).
15500 func_stripname ()
15502 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15503 # positional parameters, so assign one to ordinary parameter first.
15504 func_stripname_result=${3}
15505 func_stripname_result=${func_stripname_result#"${1}"}
15506 func_stripname_result=${func_stripname_result%"${2}"}
15509 # func_opt_split
15510 func_opt_split ()
15512 func_opt_split_opt=${1%%=*}
15513 func_opt_split_arg=${1#*=}
15516 # func_lo2o object
15517 func_lo2o ()
15519 case ${1} in
15520 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15521 *) func_lo2o_result=${1} ;;
15522 esac
15525 # func_xform libobj-or-source
15526 func_xform ()
15528 func_xform_result=${1%.*}.lo
15531 # func_arith arithmetic-term...
15532 func_arith ()
15534 func_arith_result=$(( $* ))
15537 # func_len string
15538 # STRING may not start with a hyphen.
15539 func_len ()
15541 func_len_result=${#1}
15544 _LT_EOF
15546 *) # Bourne compatible functions.
15547 cat << \_LT_EOF >> "$cfgfile"
15549 # func_dirname file append nondir_replacement
15550 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15551 # otherwise set result to NONDIR_REPLACEMENT.
15552 func_dirname ()
15554 # Extract subdirectory from the argument.
15555 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
15556 if test "X$func_dirname_result" = "X${1}"; then
15557 func_dirname_result="${3}"
15558 else
15559 func_dirname_result="$func_dirname_result${2}"
15563 # func_basename file
15564 func_basename ()
15566 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
15570 # func_stripname prefix suffix name
15571 # strip PREFIX and SUFFIX off of NAME.
15572 # PREFIX and SUFFIX must not contain globbing or regex special
15573 # characters, hashes, percent signs, but SUFFIX may contain a leading
15574 # dot (in which case that matches only a dot).
15575 # func_strip_suffix prefix name
15576 func_stripname ()
15578 case ${2} in
15579 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
15580 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
15581 esac
15584 # sed scripts:
15585 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15586 my_sed_long_arg='1s/^-[^=]*=//'
15588 # func_opt_split
15589 func_opt_split ()
15591 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
15592 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
15595 # func_lo2o object
15596 func_lo2o ()
15598 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
15601 # func_xform libobj-or-source
15602 func_xform ()
15604 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
15607 # func_arith arithmetic-term...
15608 func_arith ()
15610 func_arith_result=`expr "$@"`
15613 # func_len string
15614 # STRING may not start with a hyphen.
15615 func_len ()
15617 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15620 _LT_EOF
15621 esac
15623 case $lt_shell_append in
15624 yes)
15625 cat << \_LT_EOF >> "$cfgfile"
15627 # func_append var value
15628 # Append VALUE to the end of shell variable VAR.
15629 func_append ()
15631 eval "$1+=\$2"
15633 _LT_EOF
15636 cat << \_LT_EOF >> "$cfgfile"
15638 # func_append var value
15639 # Append VALUE to the end of shell variable VAR.
15640 func_append ()
15642 eval "$1=\$$1\$2"
15645 _LT_EOF
15647 esac
15650 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15651 || (rm -f "$cfgfile"; exit 1)
15653 mv -f "$cfgfile" "$ofile" ||
15654 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15655 chmod +x "$ofile"
15659 esac
15660 done # for ac_tag
15663 as_fn_exit 0
15664 _ACEOF
15665 ac_clean_files=$ac_clean_files_save
15667 test $ac_write_fail = 0 ||
15668 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15671 # configure is writing to config.log, and then calls config.status.
15672 # config.status does its own redirection, appending to config.log.
15673 # Unfortunately, on DOS this fails, as config.log is still kept open
15674 # by configure, so config.status won't be able to write to it; its
15675 # output is simply discarded. So we exec the FD to /dev/null,
15676 # effectively closing config.log, so it can be properly (re)opened and
15677 # appended to by config.status. When coming back to configure, we
15678 # need to make the FD available again.
15679 if test "$no_create" != yes; then
15680 ac_cs_success=:
15681 ac_config_status_args=
15682 test "$silent" = yes &&
15683 ac_config_status_args="$ac_config_status_args --quiet"
15684 exec 5>/dev/null
15685 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15686 exec 5>>config.log
15687 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15688 # would make configure fail if this is the last instruction.
15689 $ac_cs_success || as_fn_exit 1
15691 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15693 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}