2011-02-14 Janus Weil <janus@gcc.gnu.org>
[official-gcc.git] / libquadmath / configure
blob47021ff49ec8caa99f1d8f095cf66a7c89330772
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for GCC Quad-precision Math Library 0.1.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # 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 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME='GCC Quad-precision Math Library'
558 PACKAGE_TARNAME='libquadmath'
559 PACKAGE_VERSION='0.1'
560 PACKAGE_STRING='GCC Quad-precision Math Library 0.1'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
564 # Factoring default headers for most tests.
565 ac_includes_default="\
566 #include <stdio.h>
567 #ifdef HAVE_SYS_TYPES_H
568 # include <sys/types.h>
569 #endif
570 #ifdef HAVE_SYS_STAT_H
571 # include <sys/stat.h>
572 #endif
573 #ifdef STDC_HEADERS
574 # include <stdlib.h>
575 # include <stddef.h>
576 #else
577 # ifdef HAVE_STDLIB_H
578 # include <stdlib.h>
579 # endif
580 #endif
581 #ifdef HAVE_STRING_H
582 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
583 # include <memory.h>
584 # endif
585 # include <string.h>
586 #endif
587 #ifdef HAVE_STRINGS_H
588 # include <strings.h>
589 #endif
590 #ifdef HAVE_INTTYPES_H
591 # include <inttypes.h>
592 #endif
593 #ifdef HAVE_STDINT_H
594 # include <stdint.h>
595 #endif
596 #ifdef HAVE_UNISTD_H
597 # include <unistd.h>
598 #endif"
600 ac_subst_vars='am__EXEEXT_FALSE
601 am__EXEEXT_TRUE
602 LTLIBOBJS
603 LIBOBJS
604 GENINSRC_FALSE
605 GENINSRC_TRUE
606 BUILD_LIBQUADMATH_FALSE
607 BUILD_LIBQUADMATH_TRUE
608 LIBQUAD_USE_SYMVER_SUN_FALSE
609 LIBQUAD_USE_SYMVER_SUN_TRUE
610 LIBQUAD_USE_SYMVER_GNU_FALSE
611 LIBQUAD_USE_SYMVER_GNU_TRUE
612 LIBQUAD_USE_SYMVER_FALSE
613 LIBQUAD_USE_SYMVER_TRUE
614 toolexeclibdir
615 toolexecdir
616 multi_basedir
617 MAINT
618 MAINTAINER_MODE_FALSE
619 MAINTAINER_MODE_TRUE
620 enable_static
621 enable_shared
622 lt_host_flags
623 OTOOL64
624 OTOOL
625 LIPO
626 NMEDIT
627 DSYMUTIL
628 RANLIB
630 OBJDUMP
631 LN_S
633 ac_ct_DUMPBIN
634 DUMPBIN
636 FGREP
638 LIBTOOL
639 REPORT_BUGS_TEXI
640 REPORT_BUGS_TO
641 BUILD_INFO_FALSE
642 BUILD_INFO_TRUE
643 EGREP
644 GREP
646 am__fastdepCC_FALSE
647 am__fastdepCC_TRUE
648 CCDEPMODE
649 AMDEPBACKSLASH
650 AMDEP_FALSE
651 AMDEP_TRUE
652 am__quote
653 am__include
654 DEPDIR
655 OBJEXT
656 EXEEXT
657 ac_ct_CC
658 CPPFLAGS
659 LDFLAGS
660 CFLAGS
662 am__untar
663 am__tar
664 AMTAR
665 am__leading_dot
666 SET_MAKE
668 mkdir_p
669 MKDIR_P
670 INSTALL_STRIP_PROGRAM
671 STRIP
672 install_sh
673 MAKEINFO
674 AUTOHEADER
675 AUTOMAKE
676 AUTOCONF
677 ACLOCAL
678 VERSION
679 PACKAGE
680 CYGPATH_W
681 am__isrc
682 INSTALL_DATA
683 INSTALL_SCRIPT
684 INSTALL_PROGRAM
685 target_noncanonical
686 target_os
687 target_vendor
688 target_cpu
689 target
690 host_os
691 host_vendor
692 host_cpu
693 host
694 build_os
695 build_vendor
696 build_cpu
697 build
698 target_alias
699 host_alias
700 build_alias
701 LIBS
702 ECHO_T
703 ECHO_N
704 ECHO_C
705 DEFS
706 mandir
707 localedir
708 libdir
709 psdir
710 pdfdir
711 dvidir
712 htmldir
713 infodir
714 docdir
715 oldincludedir
716 includedir
717 localstatedir
718 sharedstatedir
719 sysconfdir
720 datadir
721 datarootdir
722 libexecdir
723 sbindir
724 bindir
725 program_transform_name
726 prefix
727 exec_prefix
728 PACKAGE_URL
729 PACKAGE_BUGREPORT
730 PACKAGE_STRING
731 PACKAGE_VERSION
732 PACKAGE_TARNAME
733 PACKAGE_NAME
734 PATH_SEPARATOR
735 SHELL'
736 ac_subst_files=''
737 ac_user_opts='
738 enable_option_checking
739 enable_version_specific_runtime_libs
740 enable_dependency_tracking
741 with_bugurl
742 enable_shared
743 enable_static
744 with_pic
745 enable_fast_install
746 with_gnu_ld
747 enable_libtool_lock
748 enable_maintainer_mode
749 enable_multilib
750 enable_generated_files_in_srcdir
752 ac_precious_vars='build_alias
753 host_alias
754 target_alias
756 CFLAGS
757 LDFLAGS
758 LIBS
759 CPPFLAGS
760 CPP'
763 # Initialize some variables set by options.
764 ac_init_help=
765 ac_init_version=false
766 ac_unrecognized_opts=
767 ac_unrecognized_sep=
768 # The variables have the same names as the options, with
769 # dashes changed to underlines.
770 cache_file=/dev/null
771 exec_prefix=NONE
772 no_create=
773 no_recursion=
774 prefix=NONE
775 program_prefix=NONE
776 program_suffix=NONE
777 program_transform_name=s,x,x,
778 silent=
779 site=
780 srcdir=
781 verbose=
782 x_includes=NONE
783 x_libraries=NONE
785 # Installation directory options.
786 # These are left unexpanded so users can "make install exec_prefix=/foo"
787 # and all the variables that are supposed to be based on exec_prefix
788 # by default will actually change.
789 # Use braces instead of parens because sh, perl, etc. also accept them.
790 # (The list follows the same order as the GNU Coding Standards.)
791 bindir='${exec_prefix}/bin'
792 sbindir='${exec_prefix}/sbin'
793 libexecdir='${exec_prefix}/libexec'
794 datarootdir='${prefix}/share'
795 datadir='${datarootdir}'
796 sysconfdir='${prefix}/etc'
797 sharedstatedir='${prefix}/com'
798 localstatedir='${prefix}/var'
799 includedir='${prefix}/include'
800 oldincludedir='/usr/include'
801 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
802 infodir='${datarootdir}/info'
803 htmldir='${docdir}'
804 dvidir='${docdir}'
805 pdfdir='${docdir}'
806 psdir='${docdir}'
807 libdir='${exec_prefix}/lib'
808 localedir='${datarootdir}/locale'
809 mandir='${datarootdir}/man'
811 ac_prev=
812 ac_dashdash=
813 for ac_option
815 # If the previous option needs an argument, assign it.
816 if test -n "$ac_prev"; then
817 eval $ac_prev=\$ac_option
818 ac_prev=
819 continue
822 case $ac_option in
823 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
824 *) ac_optarg=yes ;;
825 esac
827 # Accept the important Cygnus configure options, so we can diagnose typos.
829 case $ac_dashdash$ac_option in
831 ac_dashdash=yes ;;
833 -bindir | --bindir | --bindi | --bind | --bin | --bi)
834 ac_prev=bindir ;;
835 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
836 bindir=$ac_optarg ;;
838 -build | --build | --buil | --bui | --bu)
839 ac_prev=build_alias ;;
840 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
841 build_alias=$ac_optarg ;;
843 -cache-file | --cache-file | --cache-fil | --cache-fi \
844 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
845 ac_prev=cache_file ;;
846 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
847 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
848 cache_file=$ac_optarg ;;
850 --config-cache | -C)
851 cache_file=config.cache ;;
853 -datadir | --datadir | --datadi | --datad)
854 ac_prev=datadir ;;
855 -datadir=* | --datadir=* | --datadi=* | --datad=*)
856 datadir=$ac_optarg ;;
858 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
859 | --dataroo | --dataro | --datar)
860 ac_prev=datarootdir ;;
861 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
862 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
863 datarootdir=$ac_optarg ;;
865 -disable-* | --disable-*)
866 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
867 # Reject names that are not valid shell variable names.
868 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
869 as_fn_error "invalid feature name: $ac_useropt"
870 ac_useropt_orig=$ac_useropt
871 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
872 case $ac_user_opts in
874 "enable_$ac_useropt"
875 "*) ;;
876 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
877 ac_unrecognized_sep=', ';;
878 esac
879 eval enable_$ac_useropt=no ;;
881 -docdir | --docdir | --docdi | --doc | --do)
882 ac_prev=docdir ;;
883 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
884 docdir=$ac_optarg ;;
886 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
887 ac_prev=dvidir ;;
888 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
889 dvidir=$ac_optarg ;;
891 -enable-* | --enable-*)
892 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
893 # Reject names that are not valid shell variable names.
894 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
895 as_fn_error "invalid feature name: $ac_useropt"
896 ac_useropt_orig=$ac_useropt
897 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
898 case $ac_user_opts in
900 "enable_$ac_useropt"
901 "*) ;;
902 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
903 ac_unrecognized_sep=', ';;
904 esac
905 eval enable_$ac_useropt=\$ac_optarg ;;
907 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
908 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
909 | --exec | --exe | --ex)
910 ac_prev=exec_prefix ;;
911 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
912 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
913 | --exec=* | --exe=* | --ex=*)
914 exec_prefix=$ac_optarg ;;
916 -gas | --gas | --ga | --g)
917 # Obsolete; use --with-gas.
918 with_gas=yes ;;
920 -help | --help | --hel | --he | -h)
921 ac_init_help=long ;;
922 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
923 ac_init_help=recursive ;;
924 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
925 ac_init_help=short ;;
927 -host | --host | --hos | --ho)
928 ac_prev=host_alias ;;
929 -host=* | --host=* | --hos=* | --ho=*)
930 host_alias=$ac_optarg ;;
932 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
933 ac_prev=htmldir ;;
934 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
935 | --ht=*)
936 htmldir=$ac_optarg ;;
938 -includedir | --includedir | --includedi | --included | --include \
939 | --includ | --inclu | --incl | --inc)
940 ac_prev=includedir ;;
941 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
942 | --includ=* | --inclu=* | --incl=* | --inc=*)
943 includedir=$ac_optarg ;;
945 -infodir | --infodir | --infodi | --infod | --info | --inf)
946 ac_prev=infodir ;;
947 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
948 infodir=$ac_optarg ;;
950 -libdir | --libdir | --libdi | --libd)
951 ac_prev=libdir ;;
952 -libdir=* | --libdir=* | --libdi=* | --libd=*)
953 libdir=$ac_optarg ;;
955 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
956 | --libexe | --libex | --libe)
957 ac_prev=libexecdir ;;
958 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
959 | --libexe=* | --libex=* | --libe=*)
960 libexecdir=$ac_optarg ;;
962 -localedir | --localedir | --localedi | --localed | --locale)
963 ac_prev=localedir ;;
964 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
965 localedir=$ac_optarg ;;
967 -localstatedir | --localstatedir | --localstatedi | --localstated \
968 | --localstate | --localstat | --localsta | --localst | --locals)
969 ac_prev=localstatedir ;;
970 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
971 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
972 localstatedir=$ac_optarg ;;
974 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
975 ac_prev=mandir ;;
976 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
977 mandir=$ac_optarg ;;
979 -nfp | --nfp | --nf)
980 # Obsolete; use --without-fp.
981 with_fp=no ;;
983 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
984 | --no-cr | --no-c | -n)
985 no_create=yes ;;
987 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
988 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
989 no_recursion=yes ;;
991 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
992 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
993 | --oldin | --oldi | --old | --ol | --o)
994 ac_prev=oldincludedir ;;
995 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
996 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
997 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
998 oldincludedir=$ac_optarg ;;
1000 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1001 ac_prev=prefix ;;
1002 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1003 prefix=$ac_optarg ;;
1005 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1006 | --program-pre | --program-pr | --program-p)
1007 ac_prev=program_prefix ;;
1008 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1009 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1010 program_prefix=$ac_optarg ;;
1012 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1013 | --program-suf | --program-su | --program-s)
1014 ac_prev=program_suffix ;;
1015 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1016 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1017 program_suffix=$ac_optarg ;;
1019 -program-transform-name | --program-transform-name \
1020 | --program-transform-nam | --program-transform-na \
1021 | --program-transform-n | --program-transform- \
1022 | --program-transform | --program-transfor \
1023 | --program-transfo | --program-transf \
1024 | --program-trans | --program-tran \
1025 | --progr-tra | --program-tr | --program-t)
1026 ac_prev=program_transform_name ;;
1027 -program-transform-name=* | --program-transform-name=* \
1028 | --program-transform-nam=* | --program-transform-na=* \
1029 | --program-transform-n=* | --program-transform-=* \
1030 | --program-transform=* | --program-transfor=* \
1031 | --program-transfo=* | --program-transf=* \
1032 | --program-trans=* | --program-tran=* \
1033 | --progr-tra=* | --program-tr=* | --program-t=*)
1034 program_transform_name=$ac_optarg ;;
1036 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1037 ac_prev=pdfdir ;;
1038 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1039 pdfdir=$ac_optarg ;;
1041 -psdir | --psdir | --psdi | --psd | --ps)
1042 ac_prev=psdir ;;
1043 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1044 psdir=$ac_optarg ;;
1046 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1047 | -silent | --silent | --silen | --sile | --sil)
1048 silent=yes ;;
1050 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1051 ac_prev=sbindir ;;
1052 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1053 | --sbi=* | --sb=*)
1054 sbindir=$ac_optarg ;;
1056 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1057 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1058 | --sharedst | --shareds | --shared | --share | --shar \
1059 | --sha | --sh)
1060 ac_prev=sharedstatedir ;;
1061 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1062 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1063 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1064 | --sha=* | --sh=*)
1065 sharedstatedir=$ac_optarg ;;
1067 -site | --site | --sit)
1068 ac_prev=site ;;
1069 -site=* | --site=* | --sit=*)
1070 site=$ac_optarg ;;
1072 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1073 ac_prev=srcdir ;;
1074 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1075 srcdir=$ac_optarg ;;
1077 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1078 | --syscon | --sysco | --sysc | --sys | --sy)
1079 ac_prev=sysconfdir ;;
1080 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1081 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1082 sysconfdir=$ac_optarg ;;
1084 -target | --target | --targe | --targ | --tar | --ta | --t)
1085 ac_prev=target_alias ;;
1086 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1087 target_alias=$ac_optarg ;;
1089 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1090 verbose=yes ;;
1092 -version | --version | --versio | --versi | --vers | -V)
1093 ac_init_version=: ;;
1095 -with-* | --with-*)
1096 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1099 as_fn_error "invalid package name: $ac_useropt"
1100 ac_useropt_orig=$ac_useropt
1101 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102 case $ac_user_opts in
1104 "with_$ac_useropt"
1105 "*) ;;
1106 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1107 ac_unrecognized_sep=', ';;
1108 esac
1109 eval with_$ac_useropt=\$ac_optarg ;;
1111 -without-* | --without-*)
1112 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1113 # Reject names that are not valid shell variable names.
1114 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1115 as_fn_error "invalid package name: $ac_useropt"
1116 ac_useropt_orig=$ac_useropt
1117 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1118 case $ac_user_opts in
1120 "with_$ac_useropt"
1121 "*) ;;
1122 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1123 ac_unrecognized_sep=', ';;
1124 esac
1125 eval with_$ac_useropt=no ;;
1127 --x)
1128 # Obsolete; use --with-x.
1129 with_x=yes ;;
1131 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1132 | --x-incl | --x-inc | --x-in | --x-i)
1133 ac_prev=x_includes ;;
1134 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1135 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1136 x_includes=$ac_optarg ;;
1138 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1139 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1140 ac_prev=x_libraries ;;
1141 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1142 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1143 x_libraries=$ac_optarg ;;
1145 -*) as_fn_error "unrecognized option: \`$ac_option'
1146 Try \`$0 --help' for more information."
1149 *=*)
1150 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1151 # Reject names that are not valid shell variable names.
1152 case $ac_envvar in #(
1153 '' | [0-9]* | *[!_$as_cr_alnum]* )
1154 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1155 esac
1156 eval $ac_envvar=\$ac_optarg
1157 export $ac_envvar ;;
1160 # FIXME: should be removed in autoconf 3.0.
1161 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1162 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1163 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1164 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1167 esac
1168 done
1170 if test -n "$ac_prev"; then
1171 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1172 as_fn_error "missing argument to $ac_option"
1175 if test -n "$ac_unrecognized_opts"; then
1176 case $enable_option_checking in
1177 no) ;;
1178 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1179 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1180 esac
1183 # Check all directory arguments for consistency.
1184 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1185 datadir sysconfdir sharedstatedir localstatedir includedir \
1186 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1187 libdir localedir mandir
1189 eval ac_val=\$$ac_var
1190 # Remove trailing slashes.
1191 case $ac_val in
1192 */ )
1193 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1194 eval $ac_var=\$ac_val;;
1195 esac
1196 # Be sure to have absolute directory names.
1197 case $ac_val in
1198 [\\/$]* | ?:[\\/]* ) continue;;
1199 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1200 esac
1201 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1202 done
1204 # There might be people who depend on the old broken behavior: `$host'
1205 # used to hold the argument of --host etc.
1206 # FIXME: To remove some day.
1207 build=$build_alias
1208 host=$host_alias
1209 target=$target_alias
1211 # FIXME: To remove some day.
1212 if test "x$host_alias" != x; then
1213 if test "x$build_alias" = x; then
1214 cross_compiling=maybe
1215 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1216 If a cross compiler is detected then cross compile mode will be used." >&2
1217 elif test "x$build_alias" != "x$host_alias"; then
1218 cross_compiling=yes
1222 ac_tool_prefix=
1223 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1225 test "$silent" = yes && exec 6>/dev/null
1228 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1229 ac_ls_di=`ls -di .` &&
1230 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1231 as_fn_error "working directory cannot be determined"
1232 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1233 as_fn_error "pwd does not report name of working directory"
1236 # Find the source files, if location was not specified.
1237 if test -z "$srcdir"; then
1238 ac_srcdir_defaulted=yes
1239 # Try the directory containing this script, then the parent directory.
1240 ac_confdir=`$as_dirname -- "$as_myself" ||
1241 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1242 X"$as_myself" : 'X\(//\)[^/]' \| \
1243 X"$as_myself" : 'X\(//\)$' \| \
1244 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1245 $as_echo X"$as_myself" |
1246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1247 s//\1/
1250 /^X\(\/\/\)[^/].*/{
1251 s//\1/
1254 /^X\(\/\/\)$/{
1255 s//\1/
1258 /^X\(\/\).*/{
1259 s//\1/
1262 s/.*/./; q'`
1263 srcdir=$ac_confdir
1264 if test ! -r "$srcdir/$ac_unique_file"; then
1265 srcdir=..
1267 else
1268 ac_srcdir_defaulted=no
1270 if test ! -r "$srcdir/$ac_unique_file"; then
1271 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1272 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1274 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1275 ac_abs_confdir=`(
1276 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1277 pwd)`
1278 # When building in place, set srcdir=.
1279 if test "$ac_abs_confdir" = "$ac_pwd"; then
1280 srcdir=.
1282 # Remove unnecessary trailing slashes from srcdir.
1283 # Double slashes in file names in object file debugging info
1284 # mess up M-x gdb in Emacs.
1285 case $srcdir in
1286 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1287 esac
1288 for ac_var in $ac_precious_vars; do
1289 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1290 eval ac_env_${ac_var}_value=\$${ac_var}
1291 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1292 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1293 done
1296 # Report the --help message.
1298 if test "$ac_init_help" = "long"; then
1299 # Omit some internal or obsolete options to make the list less imposing.
1300 # This message is too long to be a string in the A/UX 3.1 sh.
1301 cat <<_ACEOF
1302 \`configure' configures GCC Quad-precision Math Library 0.1 to adapt to many kinds of systems.
1304 Usage: $0 [OPTION]... [VAR=VALUE]...
1306 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1307 VAR=VALUE. See below for descriptions of some of the useful variables.
1309 Defaults for the options are specified in brackets.
1311 Configuration:
1312 -h, --help display this help and exit
1313 --help=short display options specific to this package
1314 --help=recursive display the short help of all the included packages
1315 -V, --version display version information and exit
1316 -q, --quiet, --silent do not print \`checking...' messages
1317 --cache-file=FILE cache test results in FILE [disabled]
1318 -C, --config-cache alias for \`--cache-file=config.cache'
1319 -n, --no-create do not create output files
1320 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1322 Installation directories:
1323 --prefix=PREFIX install architecture-independent files in PREFIX
1324 [$ac_default_prefix]
1325 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1326 [PREFIX]
1328 By default, \`make install' will install all the files in
1329 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1330 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1331 for instance \`--prefix=\$HOME'.
1333 For better control, use the options below.
1335 Fine tuning of the installation directories:
1336 --bindir=DIR user executables [EPREFIX/bin]
1337 --sbindir=DIR system admin executables [EPREFIX/sbin]
1338 --libexecdir=DIR program executables [EPREFIX/libexec]
1339 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1340 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1341 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1342 --libdir=DIR object code libraries [EPREFIX/lib]
1343 --includedir=DIR C header files [PREFIX/include]
1344 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1345 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1346 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1347 --infodir=DIR info documentation [DATAROOTDIR/info]
1348 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1349 --mandir=DIR man documentation [DATAROOTDIR/man]
1350 --docdir=DIR documentation root [DATAROOTDIR/doc/libquadmath]
1351 --htmldir=DIR html documentation [DOCDIR]
1352 --dvidir=DIR dvi documentation [DOCDIR]
1353 --pdfdir=DIR pdf documentation [DOCDIR]
1354 --psdir=DIR ps documentation [DOCDIR]
1355 _ACEOF
1357 cat <<\_ACEOF
1359 Program names:
1360 --program-prefix=PREFIX prepend PREFIX to installed program names
1361 --program-suffix=SUFFIX append SUFFIX to installed program names
1362 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1364 System types:
1365 --build=BUILD configure for building on BUILD [guessed]
1366 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1367 --target=TARGET configure for building compilers for TARGET [HOST]
1368 _ACEOF
1371 if test -n "$ac_init_help"; then
1372 case $ac_init_help in
1373 short | recursive ) echo "Configuration of GCC Quad-precision Math Library 0.1:";;
1374 esac
1375 cat <<\_ACEOF
1377 Optional Features:
1378 --disable-option-checking ignore unrecognized --enable/--with options
1379 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1380 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1381 --enable-version-specific-runtime-libs
1382 specify that runtime libraries should be installed
1383 in a compiler-specific directory
1384 --disable-dependency-tracking speeds up one-time build
1385 --enable-dependency-tracking do not reject slow dependency extractors
1386 --enable-shared[=PKGS] build shared libraries [default=yes]
1387 --enable-static[=PKGS] build static libraries [default=yes]
1388 --enable-fast-install[=PKGS]
1389 optimize for fast installation [default=yes]
1390 --disable-libtool-lock avoid locking (might break parallel builds)
1391 --enable-maintainer-mode enable make rules and dependencies not useful
1392 (and sometimes confusing) to the casual installer
1393 --enable-multilib build many library versions (default)
1394 --enable-generated-files-in-srcdir
1395 put copies of generated files in source dir intended
1396 for creating source tarballs for users without
1397 texinfo bison or flex
1399 Optional Packages:
1400 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1401 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1402 --with-bugurl=URL Direct users to URL to report a bug
1403 --with-pic try to use only PIC/non-PIC objects [default=use
1404 both]
1405 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1407 Some influential environment variables:
1408 CC C compiler command
1409 CFLAGS C compiler flags
1410 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1411 nonstandard directory <lib dir>
1412 LIBS libraries to pass to the linker, e.g. -l<library>
1413 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1414 you have headers in a nonstandard directory <include dir>
1415 CPP C preprocessor
1417 Use these variables to override the choices made by `configure' or to help
1418 it to find libraries and programs with nonstandard names/locations.
1420 Report bugs to the package provider.
1421 _ACEOF
1422 ac_status=$?
1425 if test "$ac_init_help" = "recursive"; then
1426 # If there are subdirs, report their specific --help.
1427 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1428 test -d "$ac_dir" ||
1429 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1430 continue
1431 ac_builddir=.
1433 case "$ac_dir" in
1434 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1436 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1437 # A ".." for each directory in $ac_dir_suffix.
1438 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1439 case $ac_top_builddir_sub in
1440 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1441 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1442 esac ;;
1443 esac
1444 ac_abs_top_builddir=$ac_pwd
1445 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1446 # for backward compatibility:
1447 ac_top_builddir=$ac_top_build_prefix
1449 case $srcdir in
1450 .) # We are building in place.
1451 ac_srcdir=.
1452 ac_top_srcdir=$ac_top_builddir_sub
1453 ac_abs_top_srcdir=$ac_pwd ;;
1454 [\\/]* | ?:[\\/]* ) # Absolute name.
1455 ac_srcdir=$srcdir$ac_dir_suffix;
1456 ac_top_srcdir=$srcdir
1457 ac_abs_top_srcdir=$srcdir ;;
1458 *) # Relative name.
1459 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1460 ac_top_srcdir=$ac_top_build_prefix$srcdir
1461 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1462 esac
1463 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1465 cd "$ac_dir" || { ac_status=$?; continue; }
1466 # Check for guested configure.
1467 if test -f "$ac_srcdir/configure.gnu"; then
1468 echo &&
1469 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1470 elif test -f "$ac_srcdir/configure"; then
1471 echo &&
1472 $SHELL "$ac_srcdir/configure" --help=recursive
1473 else
1474 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1475 fi || ac_status=$?
1476 cd "$ac_pwd" || { ac_status=$?; break; }
1477 done
1480 test -n "$ac_init_help" && exit $ac_status
1481 if $ac_init_version; then
1482 cat <<\_ACEOF
1483 GCC Quad-precision Math Library configure 0.1
1484 generated by GNU Autoconf 2.64
1486 Copyright (C) 2009 Free Software Foundation, Inc.
1487 This configure script is free software; the Free Software Foundation
1488 gives unlimited permission to copy, distribute and modify it.
1489 _ACEOF
1490 exit
1493 ## ------------------------ ##
1494 ## Autoconf initialization. ##
1495 ## ------------------------ ##
1497 # ac_fn_c_try_compile LINENO
1498 # --------------------------
1499 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1500 ac_fn_c_try_compile ()
1502 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1503 rm -f conftest.$ac_objext
1504 if { { ac_try="$ac_compile"
1505 case "(($ac_try" in
1506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1507 *) ac_try_echo=$ac_try;;
1508 esac
1509 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1510 $as_echo "$ac_try_echo"; } >&5
1511 (eval "$ac_compile") 2>conftest.err
1512 ac_status=$?
1513 if test -s conftest.err; then
1514 grep -v '^ *+' conftest.err >conftest.er1
1515 cat conftest.er1 >&5
1516 mv -f conftest.er1 conftest.err
1518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1519 test $ac_status = 0; } && {
1520 test -z "$ac_c_werror_flag" ||
1521 test ! -s conftest.err
1522 } && test -s conftest.$ac_objext; then :
1523 ac_retval=0
1524 else
1525 $as_echo "$as_me: failed program was:" >&5
1526 sed 's/^/| /' conftest.$ac_ext >&5
1528 ac_retval=1
1530 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1531 return $ac_retval
1533 } # ac_fn_c_try_compile
1535 # ac_fn_c_try_cpp LINENO
1536 # ----------------------
1537 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1538 ac_fn_c_try_cpp ()
1540 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1541 if { { ac_try="$ac_cpp conftest.$ac_ext"
1542 case "(($ac_try" in
1543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1544 *) ac_try_echo=$ac_try;;
1545 esac
1546 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1547 $as_echo "$ac_try_echo"; } >&5
1548 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1549 ac_status=$?
1550 if test -s conftest.err; then
1551 grep -v '^ *+' conftest.err >conftest.er1
1552 cat conftest.er1 >&5
1553 mv -f conftest.er1 conftest.err
1555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1556 test $ac_status = 0; } >/dev/null && {
1557 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1558 test ! -s conftest.err
1559 }; then :
1560 ac_retval=0
1561 else
1562 $as_echo "$as_me: failed program was:" >&5
1563 sed 's/^/| /' conftest.$ac_ext >&5
1565 ac_retval=1
1567 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1568 return $ac_retval
1570 } # ac_fn_c_try_cpp
1572 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1573 # -------------------------------------------------------
1574 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1575 # the include files in INCLUDES and setting the cache variable VAR
1576 # accordingly.
1577 ac_fn_c_check_header_mongrel ()
1579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1582 $as_echo_n "checking for $2... " >&6; }
1583 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1584 $as_echo_n "(cached) " >&6
1586 eval ac_res=\$$3
1587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1588 $as_echo "$ac_res" >&6; }
1589 else
1590 # Is the header compilable?
1591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1592 $as_echo_n "checking $2 usability... " >&6; }
1593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1594 /* end confdefs.h. */
1596 #include <$2>
1597 _ACEOF
1598 if ac_fn_c_try_compile "$LINENO"; then :
1599 ac_header_compiler=yes
1600 else
1601 ac_header_compiler=no
1603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1605 $as_echo "$ac_header_compiler" >&6; }
1607 # Is the header present?
1608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1609 $as_echo_n "checking $2 presence... " >&6; }
1610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1611 /* end confdefs.h. */
1612 #include <$2>
1613 _ACEOF
1614 if ac_fn_c_try_cpp "$LINENO"; then :
1615 ac_header_preproc=yes
1616 else
1617 ac_header_preproc=no
1619 rm -f conftest.err conftest.$ac_ext
1620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1621 $as_echo "$ac_header_preproc" >&6; }
1623 # So? What about this header?
1624 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1625 yes:no: )
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1627 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1629 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1631 no:yes:* )
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1633 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1635 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1637 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1639 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1641 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1643 esac
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1645 $as_echo_n "checking for $2... " >&6; }
1646 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1647 $as_echo_n "(cached) " >&6
1648 else
1649 eval "$3=\$ac_header_compiler"
1651 eval ac_res=\$$3
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1653 $as_echo "$ac_res" >&6; }
1655 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1657 } # ac_fn_c_check_header_mongrel
1659 # ac_fn_c_try_run LINENO
1660 # ----------------------
1661 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1662 # that executables *can* be run.
1663 ac_fn_c_try_run ()
1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666 if { { ac_try="$ac_link"
1667 case "(($ac_try" in
1668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1669 *) ac_try_echo=$ac_try;;
1670 esac
1671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1672 $as_echo "$ac_try_echo"; } >&5
1673 (eval "$ac_link") 2>&5
1674 ac_status=$?
1675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1676 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1677 { { case "(($ac_try" in
1678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679 *) ac_try_echo=$ac_try;;
1680 esac
1681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682 $as_echo "$ac_try_echo"; } >&5
1683 (eval "$ac_try") 2>&5
1684 ac_status=$?
1685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686 test $ac_status = 0; }; }; then :
1687 ac_retval=0
1688 else
1689 $as_echo "$as_me: program exited with status $ac_status" >&5
1690 $as_echo "$as_me: failed program was:" >&5
1691 sed 's/^/| /' conftest.$ac_ext >&5
1693 ac_retval=$ac_status
1695 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1696 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1697 return $ac_retval
1699 } # ac_fn_c_try_run
1701 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1702 # -------------------------------------------------------
1703 # Tests whether HEADER exists and can be compiled using the include files in
1704 # INCLUDES, setting the cache variable VAR accordingly.
1705 ac_fn_c_check_header_compile ()
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1709 $as_echo_n "checking for $2... " >&6; }
1710 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1711 $as_echo_n "(cached) " >&6
1712 else
1713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1714 /* end confdefs.h. */
1716 #include <$2>
1717 _ACEOF
1718 if ac_fn_c_try_compile "$LINENO"; then :
1719 eval "$3=yes"
1720 else
1721 eval "$3=no"
1723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1725 eval ac_res=\$$3
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1727 $as_echo "$ac_res" >&6; }
1728 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1730 } # ac_fn_c_check_header_compile
1732 # ac_fn_c_try_link LINENO
1733 # -----------------------
1734 # Try to link conftest.$ac_ext, and return whether this succeeded.
1735 ac_fn_c_try_link ()
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 rm -f conftest.$ac_objext conftest$ac_exeext
1739 if { { ac_try="$ac_link"
1740 case "(($ac_try" in
1741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742 *) ac_try_echo=$ac_try;;
1743 esac
1744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745 $as_echo "$ac_try_echo"; } >&5
1746 (eval "$ac_link") 2>conftest.err
1747 ac_status=$?
1748 if test -s conftest.err; then
1749 grep -v '^ *+' conftest.err >conftest.er1
1750 cat conftest.er1 >&5
1751 mv -f conftest.er1 conftest.err
1753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754 test $ac_status = 0; } && {
1755 test -z "$ac_c_werror_flag" ||
1756 test ! -s conftest.err
1757 } && test -s conftest$ac_exeext && {
1758 test "$cross_compiling" = yes ||
1759 $as_test_x conftest$ac_exeext
1760 }; then :
1761 ac_retval=0
1762 else
1763 $as_echo "$as_me: failed program was:" >&5
1764 sed 's/^/| /' conftest.$ac_ext >&5
1766 ac_retval=1
1768 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1769 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1770 # interfere with the next link command; also delete a directory that is
1771 # left behind by Apple's compiler. We do this before executing the actions.
1772 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1773 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1774 return $ac_retval
1776 } # ac_fn_c_try_link
1778 # ac_fn_c_check_func LINENO FUNC VAR
1779 # ----------------------------------
1780 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1781 ac_fn_c_check_func ()
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1785 $as_echo_n "checking for $2... " >&6; }
1786 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1787 $as_echo_n "(cached) " >&6
1788 else
1789 if test x$gcc_no_link = xyes; then
1790 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1793 /* end confdefs.h. */
1794 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1796 #define $2 innocuous_$2
1798 /* System header to define __stub macros and hopefully few prototypes,
1799 which can conflict with char $2 (); below.
1800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1801 <limits.h> exists even on freestanding compilers. */
1803 #ifdef __STDC__
1804 # include <limits.h>
1805 #else
1806 # include <assert.h>
1807 #endif
1809 #undef $2
1811 /* Override any GCC internal prototype to avoid an error.
1812 Use char because int might match the return type of a GCC
1813 builtin and then its argument prototype would still apply. */
1814 #ifdef __cplusplus
1815 extern "C"
1816 #endif
1817 char $2 ();
1818 /* The GNU C library defines this for functions which it implements
1819 to always fail with ENOSYS. Some functions are actually named
1820 something starting with __ and the normal name is an alias. */
1821 #if defined __stub_$2 || defined __stub___$2
1822 choke me
1823 #endif
1826 main ()
1828 return $2 ();
1830 return 0;
1832 _ACEOF
1833 if ac_fn_c_try_link "$LINENO"; then :
1834 eval "$3=yes"
1835 else
1836 eval "$3=no"
1838 rm -f core conftest.err conftest.$ac_objext \
1839 conftest$ac_exeext conftest.$ac_ext
1841 eval ac_res=\$$3
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1843 $as_echo "$ac_res" >&6; }
1844 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1846 } # ac_fn_c_check_func
1847 cat >config.log <<_ACEOF
1848 This file contains any messages produced by compilers while
1849 running configure, to aid debugging if configure makes a mistake.
1851 It was created by GCC Quad-precision Math Library $as_me 0.1, which was
1852 generated by GNU Autoconf 2.64. Invocation command line was
1854 $ $0 $@
1856 _ACEOF
1857 exec 5>>config.log
1859 cat <<_ASUNAME
1860 ## --------- ##
1861 ## Platform. ##
1862 ## --------- ##
1864 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1865 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1866 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1867 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1868 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1870 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1871 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1873 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1874 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1875 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1876 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1877 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1878 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1879 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1881 _ASUNAME
1883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1884 for as_dir in $PATH
1886 IFS=$as_save_IFS
1887 test -z "$as_dir" && as_dir=.
1888 $as_echo "PATH: $as_dir"
1889 done
1890 IFS=$as_save_IFS
1892 } >&5
1894 cat >&5 <<_ACEOF
1897 ## ----------- ##
1898 ## Core tests. ##
1899 ## ----------- ##
1901 _ACEOF
1904 # Keep a trace of the command line.
1905 # Strip out --no-create and --no-recursion so they do not pile up.
1906 # Strip out --silent because we don't want to record it for future runs.
1907 # Also quote any args containing shell meta-characters.
1908 # Make two passes to allow for proper duplicate-argument suppression.
1909 ac_configure_args=
1910 ac_configure_args0=
1911 ac_configure_args1=
1912 ac_must_keep_next=false
1913 for ac_pass in 1 2
1915 for ac_arg
1917 case $ac_arg in
1918 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1919 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1920 | -silent | --silent | --silen | --sile | --sil)
1921 continue ;;
1922 *\'*)
1923 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1924 esac
1925 case $ac_pass in
1926 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1928 as_fn_append ac_configure_args1 " '$ac_arg'"
1929 if test $ac_must_keep_next = true; then
1930 ac_must_keep_next=false # Got value, back to normal.
1931 else
1932 case $ac_arg in
1933 *=* | --config-cache | -C | -disable-* | --disable-* \
1934 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1935 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1936 | -with-* | --with-* | -without-* | --without-* | --x)
1937 case "$ac_configure_args0 " in
1938 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1939 esac
1941 -* ) ac_must_keep_next=true ;;
1942 esac
1944 as_fn_append ac_configure_args " '$ac_arg'"
1946 esac
1947 done
1948 done
1949 { ac_configure_args0=; unset ac_configure_args0;}
1950 { ac_configure_args1=; unset ac_configure_args1;}
1952 # When interrupted or exit'd, cleanup temporary files, and complete
1953 # config.log. We remove comments because anyway the quotes in there
1954 # would cause problems or look ugly.
1955 # WARNING: Use '\'' to represent an apostrophe within the trap.
1956 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1957 trap 'exit_status=$?
1958 # Save into config.log some information that might help in debugging.
1960 echo
1962 cat <<\_ASBOX
1963 ## ---------------- ##
1964 ## Cache variables. ##
1965 ## ---------------- ##
1966 _ASBOX
1967 echo
1968 # The following way of writing the cache mishandles newlines in values,
1970 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1971 eval ac_val=\$$ac_var
1972 case $ac_val in #(
1973 *${as_nl}*)
1974 case $ac_var in #(
1975 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1976 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1977 esac
1978 case $ac_var in #(
1979 _ | IFS | as_nl) ;; #(
1980 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1981 *) { eval $ac_var=; unset $ac_var;} ;;
1982 esac ;;
1983 esac
1984 done
1985 (set) 2>&1 |
1986 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1987 *${as_nl}ac_space=\ *)
1988 sed -n \
1989 "s/'\''/'\''\\\\'\'''\''/g;
1990 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1991 ;; #(
1993 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1995 esac |
1996 sort
1998 echo
2000 cat <<\_ASBOX
2001 ## ----------------- ##
2002 ## Output variables. ##
2003 ## ----------------- ##
2004 _ASBOX
2005 echo
2006 for ac_var in $ac_subst_vars
2008 eval ac_val=\$$ac_var
2009 case $ac_val in
2010 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2011 esac
2012 $as_echo "$ac_var='\''$ac_val'\''"
2013 done | sort
2014 echo
2016 if test -n "$ac_subst_files"; then
2017 cat <<\_ASBOX
2018 ## ------------------- ##
2019 ## File substitutions. ##
2020 ## ------------------- ##
2021 _ASBOX
2022 echo
2023 for ac_var in $ac_subst_files
2025 eval ac_val=\$$ac_var
2026 case $ac_val in
2027 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2028 esac
2029 $as_echo "$ac_var='\''$ac_val'\''"
2030 done | sort
2031 echo
2034 if test -s confdefs.h; then
2035 cat <<\_ASBOX
2036 ## ----------- ##
2037 ## confdefs.h. ##
2038 ## ----------- ##
2039 _ASBOX
2040 echo
2041 cat confdefs.h
2042 echo
2044 test "$ac_signal" != 0 &&
2045 $as_echo "$as_me: caught signal $ac_signal"
2046 $as_echo "$as_me: exit $exit_status"
2047 } >&5
2048 rm -f core *.core core.conftest.* &&
2049 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2050 exit $exit_status
2052 for ac_signal in 1 2 13 15; do
2053 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2054 done
2055 ac_signal=0
2057 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2058 rm -f -r conftest* confdefs.h
2060 $as_echo "/* confdefs.h */" > confdefs.h
2062 # Predefined preprocessor variables.
2064 cat >>confdefs.h <<_ACEOF
2065 #define PACKAGE_NAME "$PACKAGE_NAME"
2066 _ACEOF
2068 cat >>confdefs.h <<_ACEOF
2069 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2070 _ACEOF
2072 cat >>confdefs.h <<_ACEOF
2073 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2074 _ACEOF
2076 cat >>confdefs.h <<_ACEOF
2077 #define PACKAGE_STRING "$PACKAGE_STRING"
2078 _ACEOF
2080 cat >>confdefs.h <<_ACEOF
2081 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2082 _ACEOF
2084 cat >>confdefs.h <<_ACEOF
2085 #define PACKAGE_URL "$PACKAGE_URL"
2086 _ACEOF
2089 # Let the site file select an alternate cache file if it wants to.
2090 # Prefer an explicitly selected file to automatically selected ones.
2091 ac_site_file1=NONE
2092 ac_site_file2=NONE
2093 if test -n "$CONFIG_SITE"; then
2094 ac_site_file1=$CONFIG_SITE
2095 elif test "x$prefix" != xNONE; then
2096 ac_site_file1=$prefix/share/config.site
2097 ac_site_file2=$prefix/etc/config.site
2098 else
2099 ac_site_file1=$ac_default_prefix/share/config.site
2100 ac_site_file2=$ac_default_prefix/etc/config.site
2102 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2104 test "x$ac_site_file" = xNONE && continue
2105 if test -r "$ac_site_file"; then
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2107 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2108 sed 's/^/| /' "$ac_site_file" >&5
2109 . "$ac_site_file"
2111 done
2113 if test -r "$cache_file"; then
2114 # Some versions of bash will fail to source /dev/null (special
2115 # files actually), so we avoid doing that.
2116 if test -f "$cache_file"; then
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2118 $as_echo "$as_me: loading cache $cache_file" >&6;}
2119 case $cache_file in
2120 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2121 *) . "./$cache_file";;
2122 esac
2124 else
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2126 $as_echo "$as_me: creating cache $cache_file" >&6;}
2127 >$cache_file
2130 # Check that the precious variables saved in the cache have kept the same
2131 # value.
2132 ac_cache_corrupted=false
2133 for ac_var in $ac_precious_vars; do
2134 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2135 eval ac_new_set=\$ac_env_${ac_var}_set
2136 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2137 eval ac_new_val=\$ac_env_${ac_var}_value
2138 case $ac_old_set,$ac_new_set in
2139 set,)
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2141 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2142 ac_cache_corrupted=: ;;
2143 ,set)
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2145 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2146 ac_cache_corrupted=: ;;
2147 ,);;
2149 if test "x$ac_old_val" != "x$ac_new_val"; then
2150 # differences in whitespace do not lead to failure.
2151 ac_old_val_w=`echo x $ac_old_val`
2152 ac_new_val_w=`echo x $ac_new_val`
2153 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2155 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2156 ac_cache_corrupted=:
2157 else
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2159 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2160 eval $ac_var=\$ac_old_val
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2163 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2165 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2166 fi;;
2167 esac
2168 # Pass precious variables to config.status.
2169 if test "$ac_new_set" = set; then
2170 case $ac_new_val in
2171 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2172 *) ac_arg=$ac_var=$ac_new_val ;;
2173 esac
2174 case " $ac_configure_args " in
2175 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2176 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2177 esac
2179 done
2180 if $ac_cache_corrupted; then
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2182 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2184 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2185 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2187 ## -------------------- ##
2188 ## Main body of script. ##
2189 ## -------------------- ##
2191 ac_ext=c
2192 ac_cpp='$CPP $CPPFLAGS'
2193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2201 ac_config_headers="$ac_config_headers config.h"
2204 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2206 # You will slowly go insane if you do not grok the following fact: when
2207 # building this library, the top-level /target/ becomes the library's /host/.
2209 # configure then causes --target to default to --host, exactly like any
2210 # other package using autoconf. Therefore, 'target' and 'host' will
2211 # always be the same. This makes sense both for native and cross compilers
2212 # just think about it for a little while. :-)
2214 # Also, if this library is being configured as part of a cross compiler, the
2215 # top-level configure script will pass the "real" host as $with_cross_host.
2217 # Do not delete or change the following two lines. For why, see
2218 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2219 ac_aux_dir=
2220 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2221 for ac_t in install-sh install.sh shtool; do
2222 if test -f "$ac_dir/$ac_t"; then
2223 ac_aux_dir=$ac_dir
2224 ac_install_sh="$ac_aux_dir/$ac_t -c"
2225 break 2
2227 done
2228 done
2229 if test -z "$ac_aux_dir"; then
2230 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2233 # These three variables are undocumented and unsupported,
2234 # and are intended to be withdrawn in a future Autoconf release.
2235 # They can cause serious problems if a builder's source tree is in a directory
2236 # whose full name contains unusual characters.
2237 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2238 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2239 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2242 # Make sure we can run config.sub.
2243 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2244 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2247 $as_echo_n "checking build system type... " >&6; }
2248 if test "${ac_cv_build+set}" = set; then :
2249 $as_echo_n "(cached) " >&6
2250 else
2251 ac_build_alias=$build_alias
2252 test "x$ac_build_alias" = x &&
2253 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2254 test "x$ac_build_alias" = x &&
2255 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2256 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2257 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2261 $as_echo "$ac_cv_build" >&6; }
2262 case $ac_cv_build in
2263 *-*-*) ;;
2264 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2265 esac
2266 build=$ac_cv_build
2267 ac_save_IFS=$IFS; IFS='-'
2268 set x $ac_cv_build
2269 shift
2270 build_cpu=$1
2271 build_vendor=$2
2272 shift; shift
2273 # Remember, the first character of IFS is used to create $*,
2274 # except with old shells:
2275 build_os=$*
2276 IFS=$ac_save_IFS
2277 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2281 $as_echo_n "checking host system type... " >&6; }
2282 if test "${ac_cv_host+set}" = set; then :
2283 $as_echo_n "(cached) " >&6
2284 else
2285 if test "x$host_alias" = x; then
2286 ac_cv_host=$ac_cv_build
2287 else
2288 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2289 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2294 $as_echo "$ac_cv_host" >&6; }
2295 case $ac_cv_host in
2296 *-*-*) ;;
2297 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2298 esac
2299 host=$ac_cv_host
2300 ac_save_IFS=$IFS; IFS='-'
2301 set x $ac_cv_host
2302 shift
2303 host_cpu=$1
2304 host_vendor=$2
2305 shift; shift
2306 # Remember, the first character of IFS is used to create $*,
2307 # except with old shells:
2308 host_os=$*
2309 IFS=$ac_save_IFS
2310 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2314 $as_echo_n "checking target system type... " >&6; }
2315 if test "${ac_cv_target+set}" = set; then :
2316 $as_echo_n "(cached) " >&6
2317 else
2318 if test "x$target_alias" = x; then
2319 ac_cv_target=$ac_cv_host
2320 else
2321 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2322 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2327 $as_echo "$ac_cv_target" >&6; }
2328 case $ac_cv_target in
2329 *-*-*) ;;
2330 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2331 esac
2332 target=$ac_cv_target
2333 ac_save_IFS=$IFS; IFS='-'
2334 set x $ac_cv_target
2335 shift
2336 target_cpu=$1
2337 target_vendor=$2
2338 shift; shift
2339 # Remember, the first character of IFS is used to create $*,
2340 # except with old shells:
2341 target_os=$*
2342 IFS=$ac_save_IFS
2343 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2346 # The aliases save the names the user supplied, while $host etc.
2347 # will get canonicalized.
2348 test -n "$target_alias" &&
2349 test "$program_prefix$program_suffix$program_transform_name" = \
2350 NONENONEs,x,x, &&
2351 program_prefix=${target_alias}-
2353 case ${build_alias} in
2354 "") build_noncanonical=${build} ;;
2355 *) build_noncanonical=${build_alias} ;;
2356 esac
2358 case ${host_alias} in
2359 "") host_noncanonical=${build_noncanonical} ;;
2360 *) host_noncanonical=${host_alias} ;;
2361 esac
2363 case ${target_alias} in
2364 "") target_noncanonical=${host_noncanonical} ;;
2365 *) target_noncanonical=${target_alias} ;;
2366 esac
2371 target_alias=${target_alias-$host_alias}
2374 am__api_version='1.11'
2376 # Find a good install program. We prefer a C program (faster),
2377 # so one script is as good as another. But avoid the broken or
2378 # incompatible versions:
2379 # SysV /etc/install, /usr/sbin/install
2380 # SunOS /usr/etc/install
2381 # IRIX /sbin/install
2382 # AIX /bin/install
2383 # AmigaOS /C/install, which installs bootblocks on floppy discs
2384 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2385 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2386 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2387 # OS/2's system install, which has a completely different semantic
2388 # ./install, which can be erroneously created by make from ./install.sh.
2389 # Reject install programs that cannot install multiple files.
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2391 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2392 if test -z "$INSTALL"; then
2393 if test "${ac_cv_path_install+set}" = set; then :
2394 $as_echo_n "(cached) " >&6
2395 else
2396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2397 for as_dir in $PATH
2399 IFS=$as_save_IFS
2400 test -z "$as_dir" && as_dir=.
2401 # Account for people who put trailing slashes in PATH elements.
2402 case $as_dir/ in #((
2403 ./ | .// | /[cC]/* | \
2404 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2405 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2406 /usr/ucb/* ) ;;
2408 # OSF1 and SCO ODT 3.0 have their own names for install.
2409 # Don't use installbsd from OSF since it installs stuff as root
2410 # by default.
2411 for ac_prog in ginstall scoinst install; do
2412 for ac_exec_ext in '' $ac_executable_extensions; do
2413 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2414 if test $ac_prog = install &&
2415 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2416 # AIX install. It has an incompatible calling convention.
2418 elif test $ac_prog = install &&
2419 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2420 # program-specific install script used by HP pwplus--don't use.
2422 else
2423 rm -rf conftest.one conftest.two conftest.dir
2424 echo one > conftest.one
2425 echo two > conftest.two
2426 mkdir conftest.dir
2427 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2428 test -s conftest.one && test -s conftest.two &&
2429 test -s conftest.dir/conftest.one &&
2430 test -s conftest.dir/conftest.two
2431 then
2432 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2433 break 3
2437 done
2438 done
2440 esac
2442 done
2443 IFS=$as_save_IFS
2445 rm -rf conftest.one conftest.two conftest.dir
2448 if test "${ac_cv_path_install+set}" = set; then
2449 INSTALL=$ac_cv_path_install
2450 else
2451 # As a last resort, use the slow shell script. Don't cache a
2452 # value for INSTALL within a source directory, because that will
2453 # break other packages using the cache if that directory is
2454 # removed, or if the value is a relative name.
2455 INSTALL=$ac_install_sh
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2459 $as_echo "$INSTALL" >&6; }
2461 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2462 # It thinks the first close brace ends the variable substitution.
2463 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2465 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2467 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2470 $as_echo_n "checking whether build environment is sane... " >&6; }
2471 # Just in case
2472 sleep 1
2473 echo timestamp > conftest.file
2474 # Reject unsafe characters in $srcdir or the absolute working directory
2475 # name. Accept space and tab only in the latter.
2476 am_lf='
2478 case `pwd` in
2479 *[\\\"\#\$\&\'\`$am_lf]*)
2480 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2481 esac
2482 case $srcdir in
2483 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2484 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2485 esac
2487 # Do `set' in a subshell so we don't clobber the current shell's
2488 # arguments. Must try -L first in case configure is actually a
2489 # symlink; some systems play weird games with the mod time of symlinks
2490 # (eg FreeBSD returns the mod time of the symlink's containing
2491 # directory).
2492 if (
2493 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2494 if test "$*" = "X"; then
2495 # -L didn't work.
2496 set X `ls -t "$srcdir/configure" conftest.file`
2498 rm -f conftest.file
2499 if test "$*" != "X $srcdir/configure conftest.file" \
2500 && test "$*" != "X conftest.file $srcdir/configure"; then
2502 # If neither matched, then we have a broken ls. This can happen
2503 # if, for instance, CONFIG_SHELL is bash and it inherits a
2504 # broken ls alias from the environment. This has actually
2505 # happened. Such a system could not be considered "sane".
2506 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2507 alias in your environment" "$LINENO" 5
2510 test "$2" = conftest.file
2512 then
2513 # Ok.
2515 else
2516 as_fn_error "newly created file is older than distributed files!
2517 Check your system clock" "$LINENO" 5
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2520 $as_echo "yes" >&6; }
2521 test "$program_prefix" != NONE &&
2522 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2523 # Use a double $ so make ignores it.
2524 test "$program_suffix" != NONE &&
2525 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2526 # Double any \ or $.
2527 # By default was `s,x,x', remove it if useless.
2528 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2529 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2531 # expand $ac_aux_dir to an absolute path
2532 am_aux_dir=`cd $ac_aux_dir && pwd`
2534 if test x"${MISSING+set}" != xset; then
2535 case $am_aux_dir in
2536 *\ * | *\ *)
2537 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2539 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2540 esac
2542 # Use eval to expand $SHELL
2543 if eval "$MISSING --run true"; then
2544 am_missing_run="$MISSING --run "
2545 else
2546 am_missing_run=
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2548 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2551 if test x"${install_sh}" != xset; then
2552 case $am_aux_dir in
2553 *\ * | *\ *)
2554 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2556 install_sh="\${SHELL} $am_aux_dir/install-sh"
2557 esac
2560 # Installed binaries are usually stripped using `strip' when the user
2561 # run `make install-strip'. However `strip' might not be the right
2562 # tool to use in cross-compilation environments, therefore Automake
2563 # will honor the `STRIP' environment variable to overrule this program.
2564 if test "$cross_compiling" != no; then
2565 if test -n "$ac_tool_prefix"; then
2566 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2567 set dummy ${ac_tool_prefix}strip; ac_word=$2
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2569 $as_echo_n "checking for $ac_word... " >&6; }
2570 if test "${ac_cv_prog_STRIP+set}" = set; then :
2571 $as_echo_n "(cached) " >&6
2572 else
2573 if test -n "$STRIP"; then
2574 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2575 else
2576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577 for as_dir in $PATH
2579 IFS=$as_save_IFS
2580 test -z "$as_dir" && as_dir=.
2581 for ac_exec_ext in '' $ac_executable_extensions; do
2582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2583 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2585 break 2
2587 done
2588 done
2589 IFS=$as_save_IFS
2593 STRIP=$ac_cv_prog_STRIP
2594 if test -n "$STRIP"; then
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2596 $as_echo "$STRIP" >&6; }
2597 else
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2599 $as_echo "no" >&6; }
2604 if test -z "$ac_cv_prog_STRIP"; then
2605 ac_ct_STRIP=$STRIP
2606 # Extract the first word of "strip", so it can be a program name with args.
2607 set dummy strip; ac_word=$2
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2609 $as_echo_n "checking for $ac_word... " >&6; }
2610 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2611 $as_echo_n "(cached) " >&6
2612 else
2613 if test -n "$ac_ct_STRIP"; then
2614 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2615 else
2616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617 for as_dir in $PATH
2619 IFS=$as_save_IFS
2620 test -z "$as_dir" && as_dir=.
2621 for ac_exec_ext in '' $ac_executable_extensions; do
2622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2623 ac_cv_prog_ac_ct_STRIP="strip"
2624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2625 break 2
2627 done
2628 done
2629 IFS=$as_save_IFS
2633 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2634 if test -n "$ac_ct_STRIP"; then
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2636 $as_echo "$ac_ct_STRIP" >&6; }
2637 else
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2639 $as_echo "no" >&6; }
2642 if test "x$ac_ct_STRIP" = x; then
2643 STRIP=":"
2644 else
2645 case $cross_compiling:$ac_tool_warned in
2646 yes:)
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2648 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2649 ac_tool_warned=yes ;;
2650 esac
2651 STRIP=$ac_ct_STRIP
2653 else
2654 STRIP="$ac_cv_prog_STRIP"
2658 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2661 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2662 if test -z "$MKDIR_P"; then
2663 if test "${ac_cv_path_mkdir+set}" = set; then :
2664 $as_echo_n "(cached) " >&6
2665 else
2666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2667 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2669 IFS=$as_save_IFS
2670 test -z "$as_dir" && as_dir=.
2671 for ac_prog in mkdir gmkdir; do
2672 for ac_exec_ext in '' $ac_executable_extensions; do
2673 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2674 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2675 'mkdir (GNU coreutils) '* | \
2676 'mkdir (coreutils) '* | \
2677 'mkdir (fileutils) '4.1*)
2678 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2679 break 3;;
2680 esac
2681 done
2682 done
2683 done
2684 IFS=$as_save_IFS
2688 if test "${ac_cv_path_mkdir+set}" = set; then
2689 MKDIR_P="$ac_cv_path_mkdir -p"
2690 else
2691 # As a last resort, use the slow shell script. Don't cache a
2692 # value for MKDIR_P within a source directory, because that will
2693 # break other packages using the cache if that directory is
2694 # removed, or if the value is a relative name.
2695 test -d ./--version && rmdir ./--version
2696 MKDIR_P="$ac_install_sh -d"
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2700 $as_echo "$MKDIR_P" >&6; }
2702 mkdir_p="$MKDIR_P"
2703 case $mkdir_p in
2704 [\\/$]* | ?:[\\/]*) ;;
2705 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2706 esac
2708 for ac_prog in gawk mawk nawk awk
2710 # Extract the first word of "$ac_prog", so it can be a program name with args.
2711 set dummy $ac_prog; ac_word=$2
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2713 $as_echo_n "checking for $ac_word... " >&6; }
2714 if test "${ac_cv_prog_AWK+set}" = set; then :
2715 $as_echo_n "(cached) " >&6
2716 else
2717 if test -n "$AWK"; then
2718 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2719 else
2720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2721 for as_dir in $PATH
2723 IFS=$as_save_IFS
2724 test -z "$as_dir" && as_dir=.
2725 for ac_exec_ext in '' $ac_executable_extensions; do
2726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2727 ac_cv_prog_AWK="$ac_prog"
2728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2729 break 2
2731 done
2732 done
2733 IFS=$as_save_IFS
2737 AWK=$ac_cv_prog_AWK
2738 if test -n "$AWK"; then
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2740 $as_echo "$AWK" >&6; }
2741 else
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2743 $as_echo "no" >&6; }
2747 test -n "$AWK" && break
2748 done
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2751 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2752 set x ${MAKE-make}
2753 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2754 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2755 $as_echo_n "(cached) " >&6
2756 else
2757 cat >conftest.make <<\_ACEOF
2758 SHELL = /bin/sh
2759 all:
2760 @echo '@@@%%%=$(MAKE)=@@@%%%'
2761 _ACEOF
2762 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2763 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2764 *@@@%%%=?*=@@@%%%*)
2765 eval ac_cv_prog_make_${ac_make}_set=yes;;
2767 eval ac_cv_prog_make_${ac_make}_set=no;;
2768 esac
2769 rm -f conftest.make
2771 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2773 $as_echo "yes" >&6; }
2774 SET_MAKE=
2775 else
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2777 $as_echo "no" >&6; }
2778 SET_MAKE="MAKE=${MAKE-make}"
2781 rm -rf .tst 2>/dev/null
2782 mkdir .tst 2>/dev/null
2783 if test -d .tst; then
2784 am__leading_dot=.
2785 else
2786 am__leading_dot=_
2788 rmdir .tst 2>/dev/null
2790 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2791 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2792 # is not polluted with repeated "-I."
2793 am__isrc=' -I$(srcdir)'
2794 # test to see if srcdir already configured
2795 if test -f $srcdir/config.status; then
2796 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2800 # test whether we have cygpath
2801 if test -z "$CYGPATH_W"; then
2802 if (cygpath --version) >/dev/null 2>/dev/null; then
2803 CYGPATH_W='cygpath -w'
2804 else
2805 CYGPATH_W=echo
2810 # Define the identity of the package.
2811 PACKAGE='libquadmath'
2812 VERSION='0.1'
2815 cat >>confdefs.h <<_ACEOF
2816 #define PACKAGE "$PACKAGE"
2817 _ACEOF
2820 cat >>confdefs.h <<_ACEOF
2821 #define VERSION "$VERSION"
2822 _ACEOF
2824 # Some tools Automake needs.
2826 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2829 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2832 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2835 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2838 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2840 # We need awk for the "check" target. The system "awk" is bad on
2841 # some platforms.
2842 # Always define AMTAR for backward compatibility.
2844 AMTAR=${AMTAR-"${am_missing_run}tar"}
2846 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2854 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2855 # Check whether --enable-version-specific-runtime-libs was given.
2856 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2857 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2858 yes) version_specific_libs=yes ;;
2859 no) version_specific_libs=no ;;
2860 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2861 esac
2862 else
2863 version_specific_libs=no
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2867 $as_echo "$version_specific_libs" >&6; }
2871 DEPDIR="${am__leading_dot}deps"
2873 ac_config_commands="$ac_config_commands depfiles"
2876 am_make=${MAKE-make}
2877 cat > confinc << 'END'
2878 am__doit:
2879 @echo this is the am__doit target
2880 .PHONY: am__doit
2882 # If we don't find an include directive, just comment out the code.
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2884 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2885 am__include="#"
2886 am__quote=
2887 _am_result=none
2888 # First try GNU make style include.
2889 echo "include confinc" > confmf
2890 # Ignore all kinds of additional output from `make'.
2891 case `$am_make -s -f confmf 2> /dev/null` in #(
2892 *the\ am__doit\ target*)
2893 am__include=include
2894 am__quote=
2895 _am_result=GNU
2897 esac
2898 # Now try BSD make style include.
2899 if test "$am__include" = "#"; then
2900 echo '.include "confinc"' > confmf
2901 case `$am_make -s -f confmf 2> /dev/null` in #(
2902 *the\ am__doit\ target*)
2903 am__include=.include
2904 am__quote="\""
2905 _am_result=BSD
2907 esac
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2912 $as_echo "$_am_result" >&6; }
2913 rm -f confinc confmf
2915 # Check whether --enable-dependency-tracking was given.
2916 if test "${enable_dependency_tracking+set}" = set; then :
2917 enableval=$enable_dependency_tracking;
2920 if test "x$enable_dependency_tracking" != xno; then
2921 am_depcomp="$ac_aux_dir/depcomp"
2922 AMDEPBACKSLASH='\'
2924 if test "x$enable_dependency_tracking" != xno; then
2925 AMDEP_TRUE=
2926 AMDEP_FALSE='#'
2927 else
2928 AMDEP_TRUE='#'
2929 AMDEP_FALSE=
2933 ac_ext=c
2934 ac_cpp='$CPP $CPPFLAGS'
2935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2938 if test -n "$ac_tool_prefix"; then
2939 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2940 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2942 $as_echo_n "checking for $ac_word... " >&6; }
2943 if test "${ac_cv_prog_CC+set}" = set; then :
2944 $as_echo_n "(cached) " >&6
2945 else
2946 if test -n "$CC"; then
2947 ac_cv_prog_CC="$CC" # Let the user override the test.
2948 else
2949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950 for as_dir in $PATH
2952 IFS=$as_save_IFS
2953 test -z "$as_dir" && as_dir=.
2954 for ac_exec_ext in '' $ac_executable_extensions; do
2955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2956 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2958 break 2
2960 done
2961 done
2962 IFS=$as_save_IFS
2966 CC=$ac_cv_prog_CC
2967 if test -n "$CC"; then
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2969 $as_echo "$CC" >&6; }
2970 else
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2972 $as_echo "no" >&6; }
2977 if test -z "$ac_cv_prog_CC"; then
2978 ac_ct_CC=$CC
2979 # Extract the first word of "gcc", so it can be a program name with args.
2980 set dummy gcc; ac_word=$2
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2982 $as_echo_n "checking for $ac_word... " >&6; }
2983 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2984 $as_echo_n "(cached) " >&6
2985 else
2986 if test -n "$ac_ct_CC"; then
2987 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2988 else
2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 for as_dir in $PATH
2992 IFS=$as_save_IFS
2993 test -z "$as_dir" && as_dir=.
2994 for ac_exec_ext in '' $ac_executable_extensions; do
2995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2996 ac_cv_prog_ac_ct_CC="gcc"
2997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2998 break 2
3000 done
3001 done
3002 IFS=$as_save_IFS
3006 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3007 if test -n "$ac_ct_CC"; then
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3009 $as_echo "$ac_ct_CC" >&6; }
3010 else
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3012 $as_echo "no" >&6; }
3015 if test "x$ac_ct_CC" = x; then
3016 CC=""
3017 else
3018 case $cross_compiling:$ac_tool_warned in
3019 yes:)
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3021 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3022 ac_tool_warned=yes ;;
3023 esac
3024 CC=$ac_ct_CC
3026 else
3027 CC="$ac_cv_prog_CC"
3030 if test -z "$CC"; then
3031 if test -n "$ac_tool_prefix"; then
3032 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3033 set dummy ${ac_tool_prefix}cc; ac_word=$2
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3035 $as_echo_n "checking for $ac_word... " >&6; }
3036 if test "${ac_cv_prog_CC+set}" = set; then :
3037 $as_echo_n "(cached) " >&6
3038 else
3039 if test -n "$CC"; then
3040 ac_cv_prog_CC="$CC" # Let the user override the test.
3041 else
3042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043 for as_dir in $PATH
3045 IFS=$as_save_IFS
3046 test -z "$as_dir" && as_dir=.
3047 for ac_exec_ext in '' $ac_executable_extensions; do
3048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3049 ac_cv_prog_CC="${ac_tool_prefix}cc"
3050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3051 break 2
3053 done
3054 done
3055 IFS=$as_save_IFS
3059 CC=$ac_cv_prog_CC
3060 if test -n "$CC"; then
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3062 $as_echo "$CC" >&6; }
3063 else
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3065 $as_echo "no" >&6; }
3071 if test -z "$CC"; then
3072 # Extract the first word of "cc", so it can be a program name with args.
3073 set dummy cc; ac_word=$2
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3075 $as_echo_n "checking for $ac_word... " >&6; }
3076 if test "${ac_cv_prog_CC+set}" = set; then :
3077 $as_echo_n "(cached) " >&6
3078 else
3079 if test -n "$CC"; then
3080 ac_cv_prog_CC="$CC" # Let the user override the test.
3081 else
3082 ac_prog_rejected=no
3083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084 for as_dir in $PATH
3086 IFS=$as_save_IFS
3087 test -z "$as_dir" && as_dir=.
3088 for ac_exec_ext in '' $ac_executable_extensions; do
3089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3090 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3091 ac_prog_rejected=yes
3092 continue
3094 ac_cv_prog_CC="cc"
3095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3096 break 2
3098 done
3099 done
3100 IFS=$as_save_IFS
3102 if test $ac_prog_rejected = yes; then
3103 # We found a bogon in the path, so make sure we never use it.
3104 set dummy $ac_cv_prog_CC
3105 shift
3106 if test $# != 0; then
3107 # We chose a different compiler from the bogus one.
3108 # However, it has the same basename, so the bogon will be chosen
3109 # first if we set CC to just the basename; use the full file name.
3110 shift
3111 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3116 CC=$ac_cv_prog_CC
3117 if test -n "$CC"; then
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3119 $as_echo "$CC" >&6; }
3120 else
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3122 $as_echo "no" >&6; }
3127 if test -z "$CC"; then
3128 if test -n "$ac_tool_prefix"; then
3129 for ac_prog in cl.exe
3131 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3132 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3134 $as_echo_n "checking for $ac_word... " >&6; }
3135 if test "${ac_cv_prog_CC+set}" = set; then :
3136 $as_echo_n "(cached) " >&6
3137 else
3138 if test -n "$CC"; then
3139 ac_cv_prog_CC="$CC" # Let the user override the test.
3140 else
3141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3142 for as_dir in $PATH
3144 IFS=$as_save_IFS
3145 test -z "$as_dir" && as_dir=.
3146 for ac_exec_ext in '' $ac_executable_extensions; do
3147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3148 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3150 break 2
3152 done
3153 done
3154 IFS=$as_save_IFS
3158 CC=$ac_cv_prog_CC
3159 if test -n "$CC"; then
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3161 $as_echo "$CC" >&6; }
3162 else
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3164 $as_echo "no" >&6; }
3168 test -n "$CC" && break
3169 done
3171 if test -z "$CC"; then
3172 ac_ct_CC=$CC
3173 for ac_prog in cl.exe
3175 # Extract the first word of "$ac_prog", so it can be a program name with args.
3176 set dummy $ac_prog; ac_word=$2
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3178 $as_echo_n "checking for $ac_word... " >&6; }
3179 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3180 $as_echo_n "(cached) " >&6
3181 else
3182 if test -n "$ac_ct_CC"; then
3183 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3184 else
3185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186 for as_dir in $PATH
3188 IFS=$as_save_IFS
3189 test -z "$as_dir" && as_dir=.
3190 for ac_exec_ext in '' $ac_executable_extensions; do
3191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3192 ac_cv_prog_ac_ct_CC="$ac_prog"
3193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3194 break 2
3196 done
3197 done
3198 IFS=$as_save_IFS
3202 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3203 if test -n "$ac_ct_CC"; then
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3205 $as_echo "$ac_ct_CC" >&6; }
3206 else
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3208 $as_echo "no" >&6; }
3212 test -n "$ac_ct_CC" && break
3213 done
3215 if test "x$ac_ct_CC" = x; then
3216 CC=""
3217 else
3218 case $cross_compiling:$ac_tool_warned in
3219 yes:)
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3221 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3222 ac_tool_warned=yes ;;
3223 esac
3224 CC=$ac_ct_CC
3231 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3233 as_fn_error "no acceptable C compiler found in \$PATH
3234 See \`config.log' for more details." "$LINENO" 5; }
3236 # Provide some information about the compiler.
3237 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3238 set X $ac_compile
3239 ac_compiler=$2
3240 for ac_option in --version -v -V -qversion; do
3241 { { ac_try="$ac_compiler $ac_option >&5"
3242 case "(($ac_try" in
3243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3244 *) ac_try_echo=$ac_try;;
3245 esac
3246 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3247 $as_echo "$ac_try_echo"; } >&5
3248 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3249 ac_status=$?
3250 if test -s conftest.err; then
3251 sed '10a\
3252 ... rest of stderr output deleted ...
3253 10q' conftest.err >conftest.er1
3254 cat conftest.er1 >&5
3255 rm -f conftest.er1 conftest.err
3257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3258 test $ac_status = 0; }
3259 done
3261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3262 /* end confdefs.h. */
3265 main ()
3269 return 0;
3271 _ACEOF
3272 # FIXME: Cleanup?
3273 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3274 (eval $ac_link) 2>&5
3275 ac_status=$?
3276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3277 test $ac_status = 0; }; then :
3278 gcc_no_link=no
3279 else
3280 gcc_no_link=yes
3282 if test x$gcc_no_link = xyes; then
3283 # Setting cross_compile will disable run tests; it will
3284 # also disable AC_CHECK_FILE but that's generally
3285 # correct if we can't link.
3286 cross_compiling=yes
3287 EXEEXT=
3288 else
3289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3290 /* end confdefs.h. */
3293 main ()
3297 return 0;
3299 _ACEOF
3300 ac_clean_files_save=$ac_clean_files
3301 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3302 # Try to create an executable without -o first, disregard a.out.
3303 # It will help us diagnose broken compilers, and finding out an intuition
3304 # of exeext.
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3306 $as_echo_n "checking for C compiler default output file name... " >&6; }
3307 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3309 # The possible output files:
3310 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3312 ac_rmfiles=
3313 for ac_file in $ac_files
3315 case $ac_file in
3316 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3317 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3318 esac
3319 done
3320 rm -f $ac_rmfiles
3322 if { { ac_try="$ac_link_default"
3323 case "(($ac_try" in
3324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325 *) ac_try_echo=$ac_try;;
3326 esac
3327 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3328 $as_echo "$ac_try_echo"; } >&5
3329 (eval "$ac_link_default") 2>&5
3330 ac_status=$?
3331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3332 test $ac_status = 0; }; then :
3333 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3334 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3335 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3336 # so that the user can short-circuit this test for compilers unknown to
3337 # Autoconf.
3338 for ac_file in $ac_files ''
3340 test -f "$ac_file" || continue
3341 case $ac_file in
3342 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3344 [ab].out )
3345 # We found the default executable, but exeext='' is most
3346 # certainly right.
3347 break;;
3348 *.* )
3349 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3350 then :; else
3351 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3353 # We set ac_cv_exeext here because the later test for it is not
3354 # safe: cross compilers may not add the suffix if given an `-o'
3355 # argument, so we may need to know it at that point already.
3356 # Even if this section looks crufty: it has the advantage of
3357 # actually working.
3358 break;;
3360 break;;
3361 esac
3362 done
3363 test "$ac_cv_exeext" = no && ac_cv_exeext=
3365 else
3366 ac_file=''
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3369 $as_echo "$ac_file" >&6; }
3370 if test -z "$ac_file"; then :
3371 $as_echo "$as_me: failed program was:" >&5
3372 sed 's/^/| /' conftest.$ac_ext >&5
3374 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3375 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3376 { as_fn_set_status 77
3377 as_fn_error "C compiler cannot create executables
3378 See \`config.log' for more details." "$LINENO" 5; }; }
3380 ac_exeext=$ac_cv_exeext
3382 # Check that the compiler produces executables we can run. If not, either
3383 # the compiler is broken, or we cross compile.
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3385 $as_echo_n "checking whether the C compiler works... " >&6; }
3386 # If not cross compiling, check that we can run a simple program.
3387 if test "$cross_compiling" != yes; then
3388 if { ac_try='./$ac_file'
3389 { { case "(($ac_try" in
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3392 esac
3393 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3394 $as_echo "$ac_try_echo"; } >&5
3395 (eval "$ac_try") 2>&5
3396 ac_status=$?
3397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3398 test $ac_status = 0; }; }; then
3399 cross_compiling=no
3400 else
3401 if test "$cross_compiling" = maybe; then
3402 cross_compiling=yes
3403 else
3404 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3405 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3406 as_fn_error "cannot run C compiled programs.
3407 If you meant to cross compile, use \`--host'.
3408 See \`config.log' for more details." "$LINENO" 5; }
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3413 $as_echo "yes" >&6; }
3415 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3416 ac_clean_files=$ac_clean_files_save
3417 # Check that the compiler produces executables we can run. If not, either
3418 # the compiler is broken, or we cross compile.
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3420 $as_echo_n "checking whether we are cross compiling... " >&6; }
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3422 $as_echo "$cross_compiling" >&6; }
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3425 $as_echo_n "checking for suffix of executables... " >&6; }
3426 if { { ac_try="$ac_link"
3427 case "(($ac_try" in
3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3430 esac
3431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3432 $as_echo "$ac_try_echo"; } >&5
3433 (eval "$ac_link") 2>&5
3434 ac_status=$?
3435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3436 test $ac_status = 0; }; then :
3437 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3438 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3439 # work properly (i.e., refer to `conftest.exe'), while it won't with
3440 # `rm'.
3441 for ac_file in conftest.exe conftest conftest.*; do
3442 test -f "$ac_file" || continue
3443 case $ac_file in
3444 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3445 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3446 break;;
3447 * ) break;;
3448 esac
3449 done
3450 else
3451 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3453 as_fn_error "cannot compute suffix of executables: cannot compile and link
3454 See \`config.log' for more details." "$LINENO" 5; }
3456 rm -f conftest$ac_cv_exeext
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3458 $as_echo "$ac_cv_exeext" >&6; }
3460 rm -f conftest.$ac_ext
3461 EXEEXT=$ac_cv_exeext
3462 ac_exeext=$EXEEXT
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3465 $as_echo_n "checking for suffix of object files... " >&6; }
3466 if test "${ac_cv_objext+set}" = set; then :
3467 $as_echo_n "(cached) " >&6
3468 else
3469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3470 /* end confdefs.h. */
3473 main ()
3477 return 0;
3479 _ACEOF
3480 rm -f conftest.o conftest.obj
3481 if { { ac_try="$ac_compile"
3482 case "(($ac_try" in
3483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484 *) ac_try_echo=$ac_try;;
3485 esac
3486 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3487 $as_echo "$ac_try_echo"; } >&5
3488 (eval "$ac_compile") 2>&5
3489 ac_status=$?
3490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3491 test $ac_status = 0; }; then :
3492 for ac_file in conftest.o conftest.obj conftest.*; do
3493 test -f "$ac_file" || continue;
3494 case $ac_file in
3495 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3496 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3497 break;;
3498 esac
3499 done
3500 else
3501 $as_echo "$as_me: failed program was:" >&5
3502 sed 's/^/| /' conftest.$ac_ext >&5
3504 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3505 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3506 as_fn_error "cannot compute suffix of object files: cannot compile
3507 See \`config.log' for more details." "$LINENO" 5; }
3509 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3512 $as_echo "$ac_cv_objext" >&6; }
3513 OBJEXT=$ac_cv_objext
3514 ac_objext=$OBJEXT
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3516 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3517 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3518 $as_echo_n "(cached) " >&6
3519 else
3520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3521 /* end confdefs.h. */
3524 main ()
3526 #ifndef __GNUC__
3527 choke me
3528 #endif
3531 return 0;
3533 _ACEOF
3534 if ac_fn_c_try_compile "$LINENO"; then :
3535 ac_compiler_gnu=yes
3536 else
3537 ac_compiler_gnu=no
3539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3540 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3544 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3545 if test $ac_compiler_gnu = yes; then
3546 GCC=yes
3547 else
3548 GCC=
3550 ac_test_CFLAGS=${CFLAGS+set}
3551 ac_save_CFLAGS=$CFLAGS
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3553 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3554 if test "${ac_cv_prog_cc_g+set}" = set; then :
3555 $as_echo_n "(cached) " >&6
3556 else
3557 ac_save_c_werror_flag=$ac_c_werror_flag
3558 ac_c_werror_flag=yes
3559 ac_cv_prog_cc_g=no
3560 CFLAGS="-g"
3561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3562 /* end confdefs.h. */
3565 main ()
3569 return 0;
3571 _ACEOF
3572 if ac_fn_c_try_compile "$LINENO"; then :
3573 ac_cv_prog_cc_g=yes
3574 else
3575 CFLAGS=""
3576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3577 /* end confdefs.h. */
3580 main ()
3584 return 0;
3586 _ACEOF
3587 if ac_fn_c_try_compile "$LINENO"; then :
3589 else
3590 ac_c_werror_flag=$ac_save_c_werror_flag
3591 CFLAGS="-g"
3592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3593 /* end confdefs.h. */
3596 main ()
3600 return 0;
3602 _ACEOF
3603 if ac_fn_c_try_compile "$LINENO"; then :
3604 ac_cv_prog_cc_g=yes
3606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3611 ac_c_werror_flag=$ac_save_c_werror_flag
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3614 $as_echo "$ac_cv_prog_cc_g" >&6; }
3615 if test "$ac_test_CFLAGS" = set; then
3616 CFLAGS=$ac_save_CFLAGS
3617 elif test $ac_cv_prog_cc_g = yes; then
3618 if test "$GCC" = yes; then
3619 CFLAGS="-g -O2"
3620 else
3621 CFLAGS="-g"
3623 else
3624 if test "$GCC" = yes; then
3625 CFLAGS="-O2"
3626 else
3627 CFLAGS=
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3631 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3632 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3633 $as_echo_n "(cached) " >&6
3634 else
3635 ac_cv_prog_cc_c89=no
3636 ac_save_CC=$CC
3637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3638 /* end confdefs.h. */
3639 #include <stdarg.h>
3640 #include <stdio.h>
3641 #include <sys/types.h>
3642 #include <sys/stat.h>
3643 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3644 struct buf { int x; };
3645 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3646 static char *e (p, i)
3647 char **p;
3648 int i;
3650 return p[i];
3652 static char *f (char * (*g) (char **, int), char **p, ...)
3654 char *s;
3655 va_list v;
3656 va_start (v,p);
3657 s = g (p, va_arg (v,int));
3658 va_end (v);
3659 return s;
3662 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3663 function prototypes and stuff, but not '\xHH' hex character constants.
3664 These don't provoke an error unfortunately, instead are silently treated
3665 as 'x'. The following induces an error, until -std is added to get
3666 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3667 array size at least. It's necessary to write '\x00'==0 to get something
3668 that's true only with -std. */
3669 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3671 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3672 inside strings and character constants. */
3673 #define FOO(x) 'x'
3674 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3676 int test (int i, double x);
3677 struct s1 {int (*f) (int a);};
3678 struct s2 {int (*f) (double a);};
3679 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3680 int argc;
3681 char **argv;
3683 main ()
3685 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3687 return 0;
3689 _ACEOF
3690 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3691 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3693 CC="$ac_save_CC $ac_arg"
3694 if ac_fn_c_try_compile "$LINENO"; then :
3695 ac_cv_prog_cc_c89=$ac_arg
3697 rm -f core conftest.err conftest.$ac_objext
3698 test "x$ac_cv_prog_cc_c89" != "xno" && break
3699 done
3700 rm -f conftest.$ac_ext
3701 CC=$ac_save_CC
3704 # AC_CACHE_VAL
3705 case "x$ac_cv_prog_cc_c89" in
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3708 $as_echo "none needed" >&6; } ;;
3709 xno)
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3711 $as_echo "unsupported" >&6; } ;;
3713 CC="$CC $ac_cv_prog_cc_c89"
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3715 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3716 esac
3717 if test "x$ac_cv_prog_cc_c89" != xno; then :
3721 ac_ext=c
3722 ac_cpp='$CPP $CPPFLAGS'
3723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3727 depcc="$CC" am_compiler_list=
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3730 $as_echo_n "checking dependency style of $depcc... " >&6; }
3731 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3732 $as_echo_n "(cached) " >&6
3733 else
3734 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3735 # We make a subdir and do the tests there. Otherwise we can end up
3736 # making bogus files that we don't know about and never remove. For
3737 # instance it was reported that on HP-UX the gcc test will end up
3738 # making a dummy file named `D' -- because `-MD' means `put the output
3739 # in D'.
3740 mkdir conftest.dir
3741 # Copy depcomp to subdir because otherwise we won't find it if we're
3742 # using a relative directory.
3743 cp "$am_depcomp" conftest.dir
3744 cd conftest.dir
3745 # We will build objects and dependencies in a subdirectory because
3746 # it helps to detect inapplicable dependency modes. For instance
3747 # both Tru64's cc and ICC support -MD to output dependencies as a
3748 # side effect of compilation, but ICC will put the dependencies in
3749 # the current directory while Tru64 will put them in the object
3750 # directory.
3751 mkdir sub
3753 am_cv_CC_dependencies_compiler_type=none
3754 if test "$am_compiler_list" = ""; then
3755 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3757 am__universal=false
3758 case " $depcc " in #(
3759 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3760 esac
3762 for depmode in $am_compiler_list; do
3763 # Setup a source with many dependencies, because some compilers
3764 # like to wrap large dependency lists on column 80 (with \), and
3765 # we should not choose a depcomp mode which is confused by this.
3767 # We need to recreate these files for each test, as the compiler may
3768 # overwrite some of them when testing with obscure command lines.
3769 # This happens at least with the AIX C compiler.
3770 : > sub/conftest.c
3771 for i in 1 2 3 4 5 6; do
3772 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3773 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3774 # Solaris 8's {/usr,}/bin/sh.
3775 touch sub/conftst$i.h
3776 done
3777 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3779 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3780 # mode. It turns out that the SunPro C++ compiler does not properly
3781 # handle `-M -o', and we need to detect this. Also, some Intel
3782 # versions had trouble with output in subdirs
3783 am__obj=sub/conftest.${OBJEXT-o}
3784 am__minus_obj="-o $am__obj"
3785 case $depmode in
3786 gcc)
3787 # This depmode causes a compiler race in universal mode.
3788 test "$am__universal" = false || continue
3790 nosideeffect)
3791 # after this tag, mechanisms are not by side-effect, so they'll
3792 # only be used when explicitly requested
3793 if test "x$enable_dependency_tracking" = xyes; then
3794 continue
3795 else
3796 break
3799 msvisualcpp | msvcmsys)
3800 # This compiler won't grok `-c -o', but also, the minuso test has
3801 # not run yet. These depmodes are late enough in the game, and
3802 # so weak that their functioning should not be impacted.
3803 am__obj=conftest.${OBJEXT-o}
3804 am__minus_obj=
3806 none) break ;;
3807 esac
3808 if depmode=$depmode \
3809 source=sub/conftest.c object=$am__obj \
3810 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3811 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3812 >/dev/null 2>conftest.err &&
3813 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3814 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3815 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3816 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3817 # icc doesn't choke on unknown options, it will just issue warnings
3818 # or remarks (even with -Werror). So we grep stderr for any message
3819 # that says an option was ignored or not supported.
3820 # When given -MP, icc 7.0 and 7.1 complain thusly:
3821 # icc: Command line warning: ignoring option '-M'; no argument required
3822 # The diagnosis changed in icc 8.0:
3823 # icc: Command line remark: option '-MP' not supported
3824 if (grep 'ignoring option' conftest.err ||
3825 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3826 am_cv_CC_dependencies_compiler_type=$depmode
3827 break
3830 done
3832 cd ..
3833 rm -rf conftest.dir
3834 else
3835 am_cv_CC_dependencies_compiler_type=none
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3840 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3841 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3844 test "x$enable_dependency_tracking" != xno \
3845 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3846 am__fastdepCC_TRUE=
3847 am__fastdepCC_FALSE='#'
3848 else
3849 am__fastdepCC_TRUE='#'
3850 am__fastdepCC_FALSE=
3855 ac_ext=c
3856 ac_cpp='$CPP $CPPFLAGS'
3857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3861 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3862 # On Suns, sometimes $CPP names a directory.
3863 if test -n "$CPP" && test -d "$CPP"; then
3864 CPP=
3866 if test -z "$CPP"; then
3867 if test "${ac_cv_prog_CPP+set}" = set; then :
3868 $as_echo_n "(cached) " >&6
3869 else
3870 # Double quotes because CPP needs to be expanded
3871 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3873 ac_preproc_ok=false
3874 for ac_c_preproc_warn_flag in '' yes
3876 # Use a header file that comes with gcc, so configuring glibc
3877 # with a fresh cross-compiler works.
3878 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3879 # <limits.h> exists even on freestanding compilers.
3880 # On the NeXT, cc -E runs the code through the compiler's parser,
3881 # not just through cpp. "Syntax error" is here to catch this case.
3882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3883 /* end confdefs.h. */
3884 #ifdef __STDC__
3885 # include <limits.h>
3886 #else
3887 # include <assert.h>
3888 #endif
3889 Syntax error
3890 _ACEOF
3891 if ac_fn_c_try_cpp "$LINENO"; then :
3893 else
3894 # Broken: fails on valid input.
3895 continue
3897 rm -f conftest.err conftest.$ac_ext
3899 # OK, works on sane cases. Now check whether nonexistent headers
3900 # can be detected and how.
3901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3902 /* end confdefs.h. */
3903 #include <ac_nonexistent.h>
3904 _ACEOF
3905 if ac_fn_c_try_cpp "$LINENO"; then :
3906 # Broken: success on invalid input.
3907 continue
3908 else
3909 # Passes both tests.
3910 ac_preproc_ok=:
3911 break
3913 rm -f conftest.err conftest.$ac_ext
3915 done
3916 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3917 rm -f conftest.err conftest.$ac_ext
3918 if $ac_preproc_ok; then :
3919 break
3922 done
3923 ac_cv_prog_CPP=$CPP
3926 CPP=$ac_cv_prog_CPP
3927 else
3928 ac_cv_prog_CPP=$CPP
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3931 $as_echo "$CPP" >&6; }
3932 ac_preproc_ok=false
3933 for ac_c_preproc_warn_flag in '' yes
3935 # Use a header file that comes with gcc, so configuring glibc
3936 # with a fresh cross-compiler works.
3937 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3938 # <limits.h> exists even on freestanding compilers.
3939 # On the NeXT, cc -E runs the code through the compiler's parser,
3940 # not just through cpp. "Syntax error" is here to catch this case.
3941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3942 /* end confdefs.h. */
3943 #ifdef __STDC__
3944 # include <limits.h>
3945 #else
3946 # include <assert.h>
3947 #endif
3948 Syntax error
3949 _ACEOF
3950 if ac_fn_c_try_cpp "$LINENO"; then :
3952 else
3953 # Broken: fails on valid input.
3954 continue
3956 rm -f conftest.err conftest.$ac_ext
3958 # OK, works on sane cases. Now check whether nonexistent headers
3959 # can be detected and how.
3960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3961 /* end confdefs.h. */
3962 #include <ac_nonexistent.h>
3963 _ACEOF
3964 if ac_fn_c_try_cpp "$LINENO"; then :
3965 # Broken: success on invalid input.
3966 continue
3967 else
3968 # Passes both tests.
3969 ac_preproc_ok=:
3970 break
3972 rm -f conftest.err conftest.$ac_ext
3974 done
3975 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3976 rm -f conftest.err conftest.$ac_ext
3977 if $ac_preproc_ok; then :
3979 else
3980 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3981 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3982 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3983 See \`config.log' for more details." "$LINENO" 5; }
3986 ac_ext=c
3987 ac_cpp='$CPP $CPPFLAGS'
3988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3994 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3995 if test "${ac_cv_path_GREP+set}" = set; then :
3996 $as_echo_n "(cached) " >&6
3997 else
3998 if test -z "$GREP"; then
3999 ac_path_GREP_found=false
4000 # Loop through the user's path and test for each of PROGNAME-LIST
4001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4002 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4004 IFS=$as_save_IFS
4005 test -z "$as_dir" && as_dir=.
4006 for ac_prog in grep ggrep; do
4007 for ac_exec_ext in '' $ac_executable_extensions; do
4008 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4009 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4010 # Check for GNU ac_path_GREP and select it if it is found.
4011 # Check for GNU $ac_path_GREP
4012 case `"$ac_path_GREP" --version 2>&1` in
4013 *GNU*)
4014 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4016 ac_count=0
4017 $as_echo_n 0123456789 >"conftest.in"
4018 while :
4020 cat "conftest.in" "conftest.in" >"conftest.tmp"
4021 mv "conftest.tmp" "conftest.in"
4022 cp "conftest.in" "conftest.nl"
4023 $as_echo 'GREP' >> "conftest.nl"
4024 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4025 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4026 as_fn_arith $ac_count + 1 && ac_count=$as_val
4027 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4028 # Best one so far, save it but keep looking for a better one
4029 ac_cv_path_GREP="$ac_path_GREP"
4030 ac_path_GREP_max=$ac_count
4032 # 10*(2^10) chars as input seems more than enough
4033 test $ac_count -gt 10 && break
4034 done
4035 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4036 esac
4038 $ac_path_GREP_found && break 3
4039 done
4040 done
4041 done
4042 IFS=$as_save_IFS
4043 if test -z "$ac_cv_path_GREP"; then
4044 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4046 else
4047 ac_cv_path_GREP=$GREP
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4052 $as_echo "$ac_cv_path_GREP" >&6; }
4053 GREP="$ac_cv_path_GREP"
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4057 $as_echo_n "checking for egrep... " >&6; }
4058 if test "${ac_cv_path_EGREP+set}" = set; then :
4059 $as_echo_n "(cached) " >&6
4060 else
4061 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4062 then ac_cv_path_EGREP="$GREP -E"
4063 else
4064 if test -z "$EGREP"; then
4065 ac_path_EGREP_found=false
4066 # Loop through the user's path and test for each of PROGNAME-LIST
4067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4068 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4070 IFS=$as_save_IFS
4071 test -z "$as_dir" && as_dir=.
4072 for ac_prog in egrep; do
4073 for ac_exec_ext in '' $ac_executable_extensions; do
4074 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4075 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4076 # Check for GNU ac_path_EGREP and select it if it is found.
4077 # Check for GNU $ac_path_EGREP
4078 case `"$ac_path_EGREP" --version 2>&1` in
4079 *GNU*)
4080 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4082 ac_count=0
4083 $as_echo_n 0123456789 >"conftest.in"
4084 while :
4086 cat "conftest.in" "conftest.in" >"conftest.tmp"
4087 mv "conftest.tmp" "conftest.in"
4088 cp "conftest.in" "conftest.nl"
4089 $as_echo 'EGREP' >> "conftest.nl"
4090 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4091 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4092 as_fn_arith $ac_count + 1 && ac_count=$as_val
4093 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4094 # Best one so far, save it but keep looking for a better one
4095 ac_cv_path_EGREP="$ac_path_EGREP"
4096 ac_path_EGREP_max=$ac_count
4098 # 10*(2^10) chars as input seems more than enough
4099 test $ac_count -gt 10 && break
4100 done
4101 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4102 esac
4104 $ac_path_EGREP_found && break 3
4105 done
4106 done
4107 done
4108 IFS=$as_save_IFS
4109 if test -z "$ac_cv_path_EGREP"; then
4110 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4112 else
4113 ac_cv_path_EGREP=$EGREP
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4119 $as_echo "$ac_cv_path_EGREP" >&6; }
4120 EGREP="$ac_cv_path_EGREP"
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4124 $as_echo_n "checking for ANSI C header files... " >&6; }
4125 if test "${ac_cv_header_stdc+set}" = set; then :
4126 $as_echo_n "(cached) " >&6
4127 else
4128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129 /* end confdefs.h. */
4130 #include <stdlib.h>
4131 #include <stdarg.h>
4132 #include <string.h>
4133 #include <float.h>
4136 main ()
4140 return 0;
4142 _ACEOF
4143 if ac_fn_c_try_compile "$LINENO"; then :
4144 ac_cv_header_stdc=yes
4145 else
4146 ac_cv_header_stdc=no
4148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4150 if test $ac_cv_header_stdc = yes; then
4151 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4153 /* end confdefs.h. */
4154 #include <string.h>
4156 _ACEOF
4157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4158 $EGREP "memchr" >/dev/null 2>&1; then :
4160 else
4161 ac_cv_header_stdc=no
4163 rm -f conftest*
4167 if test $ac_cv_header_stdc = yes; then
4168 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4170 /* end confdefs.h. */
4171 #include <stdlib.h>
4173 _ACEOF
4174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4175 $EGREP "free" >/dev/null 2>&1; then :
4177 else
4178 ac_cv_header_stdc=no
4180 rm -f conftest*
4184 if test $ac_cv_header_stdc = yes; then
4185 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4186 if test "$cross_compiling" = yes; then :
4188 else
4189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4190 /* end confdefs.h. */
4191 #include <ctype.h>
4192 #include <stdlib.h>
4193 #if ((' ' & 0x0FF) == 0x020)
4194 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4195 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4196 #else
4197 # define ISLOWER(c) \
4198 (('a' <= (c) && (c) <= 'i') \
4199 || ('j' <= (c) && (c) <= 'r') \
4200 || ('s' <= (c) && (c) <= 'z'))
4201 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4202 #endif
4204 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4206 main ()
4208 int i;
4209 for (i = 0; i < 256; i++)
4210 if (XOR (islower (i), ISLOWER (i))
4211 || toupper (i) != TOUPPER (i))
4212 return 2;
4213 return 0;
4215 _ACEOF
4216 if ac_fn_c_try_run "$LINENO"; then :
4218 else
4219 ac_cv_header_stdc=no
4221 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4222 conftest.$ac_objext conftest.beam conftest.$ac_ext
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4228 $as_echo "$ac_cv_header_stdc" >&6; }
4229 if test $ac_cv_header_stdc = yes; then
4231 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4235 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4236 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4237 inttypes.h stdint.h unistd.h
4238 do :
4239 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4240 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4242 eval as_val=\$$as_ac_Header
4243 if test "x$as_val" = x""yes; then :
4244 cat >>confdefs.h <<_ACEOF
4245 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4246 _ACEOF
4250 done
4254 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4255 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4256 MINIX=yes
4257 else
4258 MINIX=
4262 if test "$MINIX" = yes; then
4264 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4267 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4270 $as_echo "#define _MINIX 1" >>confdefs.h
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4276 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4277 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4278 $as_echo_n "(cached) " >&6
4279 else
4280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4281 /* end confdefs.h. */
4283 # define __EXTENSIONS__ 1
4284 $ac_includes_default
4286 main ()
4290 return 0;
4292 _ACEOF
4293 if ac_fn_c_try_compile "$LINENO"; then :
4294 ac_cv_safe_to_define___extensions__=yes
4295 else
4296 ac_cv_safe_to_define___extensions__=no
4298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4301 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4302 test $ac_cv_safe_to_define___extensions__ = yes &&
4303 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4305 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4307 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4309 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4311 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4315 # See if makeinfo has been installed and is modern enough
4316 # that we can use it.
4318 # Extract the first word of "makeinfo", so it can be a program name with args.
4319 set dummy makeinfo; ac_word=$2
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4321 $as_echo_n "checking for $ac_word... " >&6; }
4322 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
4323 $as_echo_n "(cached) " >&6
4324 else
4325 if test -n "$MAKEINFO"; then
4326 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4327 else
4328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4329 for as_dir in $PATH
4331 IFS=$as_save_IFS
4332 test -z "$as_dir" && as_dir=.
4333 for ac_exec_ext in '' $ac_executable_extensions; do
4334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4335 ac_cv_prog_MAKEINFO="makeinfo"
4336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4337 break 2
4339 done
4340 done
4341 IFS=$as_save_IFS
4345 MAKEINFO=$ac_cv_prog_MAKEINFO
4346 if test -n "$MAKEINFO"; then
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4348 $as_echo "$MAKEINFO" >&6; }
4349 else
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4351 $as_echo "no" >&6; }
4355 if test -n "$MAKEINFO"; then
4356 # Found it, now check the version.
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4358 $as_echo_n "checking for modern makeinfo... " >&6; }
4359 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
4360 $as_echo_n "(cached) " >&6
4361 else
4362 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4363 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4365 case $ac_prog_version in
4366 '') gcc_cv_prog_makeinfo_modern=no;;
4367 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
4368 *) gcc_cv_prog_makeinfo_modern=no;;
4369 esac
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4373 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4374 else
4375 gcc_cv_prog_makeinfo_modern=no
4377 if test $gcc_cv_prog_makeinfo_modern = no; then
4378 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4381 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4382 BUILD_INFO_TRUE=
4383 BUILD_INFO_FALSE='#'
4384 else
4385 BUILD_INFO_TRUE='#'
4386 BUILD_INFO_FALSE=
4392 # Check whether --with-bugurl was given.
4393 if test "${with_bugurl+set}" = set; then :
4394 withval=$with_bugurl; case "$withval" in
4395 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
4396 no) BUGURL=
4398 *) BUGURL="$withval"
4400 esac
4401 else
4402 BUGURL="http://gcc.gnu.org/bugs.html"
4406 case ${BUGURL} in
4408 REPORT_BUGS_TO=
4409 REPORT_BUGS_TEXI=
4412 REPORT_BUGS_TO="<$BUGURL>"
4413 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
4415 esac;
4420 # Configure libtool
4421 case `pwd` in
4422 *\ * | *\ *)
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4424 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4425 esac
4429 macro_version='2.2.7a'
4430 macro_revision='1.3134'
4444 ltmain="$ac_aux_dir/ltmain.sh"
4446 # Backslashify metacharacters that are still active within
4447 # double-quoted strings.
4448 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4450 # Same as above, but do not quote variable references.
4451 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4453 # Sed substitution to delay expansion of an escaped shell variable in a
4454 # double_quote_subst'ed string.
4455 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4457 # Sed substitution to delay expansion of an escaped single quote.
4458 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4460 # Sed substitution to avoid accidental globbing in evaled expressions
4461 no_glob_subst='s/\*/\\\*/g'
4463 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4464 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4465 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4468 $as_echo_n "checking how to print strings... " >&6; }
4469 # Test print first, because it will be a builtin if present.
4470 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4471 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4472 ECHO='print -r --'
4473 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4474 ECHO='printf %s\n'
4475 else
4476 # Use this function as a fallback that always works.
4477 func_fallback_echo ()
4479 eval 'cat <<_LTECHO_EOF
4481 _LTECHO_EOF'
4483 ECHO='func_fallback_echo'
4486 # func_echo_all arg...
4487 # Invoke $ECHO with all args, space-separated.
4488 func_echo_all ()
4490 $ECHO ""
4493 case "$ECHO" in
4494 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4495 $as_echo "printf" >&6; } ;;
4496 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4497 $as_echo "print -r" >&6; } ;;
4498 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4499 $as_echo "cat" >&6; } ;;
4500 esac
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4516 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4517 if test "${ac_cv_path_SED+set}" = set; then :
4518 $as_echo_n "(cached) " >&6
4519 else
4520 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4521 for ac_i in 1 2 3 4 5 6 7; do
4522 ac_script="$ac_script$as_nl$ac_script"
4523 done
4524 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4525 { ac_script=; unset ac_script;}
4526 if test -z "$SED"; then
4527 ac_path_SED_found=false
4528 # Loop through the user's path and test for each of PROGNAME-LIST
4529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4530 for as_dir in $PATH
4532 IFS=$as_save_IFS
4533 test -z "$as_dir" && as_dir=.
4534 for ac_prog in sed gsed; do
4535 for ac_exec_ext in '' $ac_executable_extensions; do
4536 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4537 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4538 # Check for GNU ac_path_SED and select it if it is found.
4539 # Check for GNU $ac_path_SED
4540 case `"$ac_path_SED" --version 2>&1` in
4541 *GNU*)
4542 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4544 ac_count=0
4545 $as_echo_n 0123456789 >"conftest.in"
4546 while :
4548 cat "conftest.in" "conftest.in" >"conftest.tmp"
4549 mv "conftest.tmp" "conftest.in"
4550 cp "conftest.in" "conftest.nl"
4551 $as_echo '' >> "conftest.nl"
4552 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4553 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4554 as_fn_arith $ac_count + 1 && ac_count=$as_val
4555 if test $ac_count -gt ${ac_path_SED_max-0}; then
4556 # Best one so far, save it but keep looking for a better one
4557 ac_cv_path_SED="$ac_path_SED"
4558 ac_path_SED_max=$ac_count
4560 # 10*(2^10) chars as input seems more than enough
4561 test $ac_count -gt 10 && break
4562 done
4563 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4564 esac
4566 $ac_path_SED_found && break 3
4567 done
4568 done
4569 done
4570 IFS=$as_save_IFS
4571 if test -z "$ac_cv_path_SED"; then
4572 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4574 else
4575 ac_cv_path_SED=$SED
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4580 $as_echo "$ac_cv_path_SED" >&6; }
4581 SED="$ac_cv_path_SED"
4582 rm -f conftest.sed
4584 test -z "$SED" && SED=sed
4585 Xsed="$SED -e 1s/^X//"
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4598 $as_echo_n "checking for fgrep... " >&6; }
4599 if test "${ac_cv_path_FGREP+set}" = set; then :
4600 $as_echo_n "(cached) " >&6
4601 else
4602 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4603 then ac_cv_path_FGREP="$GREP -F"
4604 else
4605 if test -z "$FGREP"; then
4606 ac_path_FGREP_found=false
4607 # Loop through the user's path and test for each of PROGNAME-LIST
4608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4611 IFS=$as_save_IFS
4612 test -z "$as_dir" && as_dir=.
4613 for ac_prog in fgrep; do
4614 for ac_exec_ext in '' $ac_executable_extensions; do
4615 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4616 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4617 # Check for GNU ac_path_FGREP and select it if it is found.
4618 # Check for GNU $ac_path_FGREP
4619 case `"$ac_path_FGREP" --version 2>&1` in
4620 *GNU*)
4621 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4623 ac_count=0
4624 $as_echo_n 0123456789 >"conftest.in"
4625 while :
4627 cat "conftest.in" "conftest.in" >"conftest.tmp"
4628 mv "conftest.tmp" "conftest.in"
4629 cp "conftest.in" "conftest.nl"
4630 $as_echo 'FGREP' >> "conftest.nl"
4631 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4632 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4633 as_fn_arith $ac_count + 1 && ac_count=$as_val
4634 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4635 # Best one so far, save it but keep looking for a better one
4636 ac_cv_path_FGREP="$ac_path_FGREP"
4637 ac_path_FGREP_max=$ac_count
4639 # 10*(2^10) chars as input seems more than enough
4640 test $ac_count -gt 10 && break
4641 done
4642 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4643 esac
4645 $ac_path_FGREP_found && break 3
4646 done
4647 done
4648 done
4649 IFS=$as_save_IFS
4650 if test -z "$ac_cv_path_FGREP"; then
4651 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4653 else
4654 ac_cv_path_FGREP=$FGREP
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4660 $as_echo "$ac_cv_path_FGREP" >&6; }
4661 FGREP="$ac_cv_path_FGREP"
4664 test -z "$GREP" && GREP=grep
4684 # Check whether --with-gnu-ld was given.
4685 if test "${with_gnu_ld+set}" = set; then :
4686 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4687 else
4688 with_gnu_ld=no
4691 ac_prog=ld
4692 if test "$GCC" = yes; then
4693 # Check if gcc -print-prog-name=ld gives a path.
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4695 $as_echo_n "checking for ld used by $CC... " >&6; }
4696 case $host in
4697 *-*-mingw*)
4698 # gcc leaves a trailing carriage return which upsets mingw
4699 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4701 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4702 esac
4703 case $ac_prog in
4704 # Accept absolute paths.
4705 [\\/]* | ?:[\\/]*)
4706 re_direlt='/[^/][^/]*/\.\./'
4707 # Canonicalize the pathname of ld
4708 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4709 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4710 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4711 done
4712 test -z "$LD" && LD="$ac_prog"
4715 # If it fails, then pretend we aren't using GCC.
4716 ac_prog=ld
4719 # If it is relative, then search for the first ld in PATH.
4720 with_gnu_ld=unknown
4722 esac
4723 elif test "$with_gnu_ld" = yes; then
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4725 $as_echo_n "checking for GNU ld... " >&6; }
4726 else
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4728 $as_echo_n "checking for non-GNU ld... " >&6; }
4730 if test "${lt_cv_path_LD+set}" = set; then :
4731 $as_echo_n "(cached) " >&6
4732 else
4733 if test -z "$LD"; then
4734 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4735 for ac_dir in $PATH; do
4736 IFS="$lt_save_ifs"
4737 test -z "$ac_dir" && ac_dir=.
4738 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4739 lt_cv_path_LD="$ac_dir/$ac_prog"
4740 # Check to see if the program is GNU ld. I'd rather use --version,
4741 # but apparently some variants of GNU ld only accept -v.
4742 # Break only if it was the GNU/non-GNU ld that we prefer.
4743 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4744 *GNU* | *'with BFD'*)
4745 test "$with_gnu_ld" != no && break
4748 test "$with_gnu_ld" != yes && break
4750 esac
4752 done
4753 IFS="$lt_save_ifs"
4754 else
4755 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4759 LD="$lt_cv_path_LD"
4760 if test -n "$LD"; then
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4762 $as_echo "$LD" >&6; }
4763 else
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4765 $as_echo "no" >&6; }
4767 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4769 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4770 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4771 $as_echo_n "(cached) " >&6
4772 else
4773 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4774 case `$LD -v 2>&1 </dev/null` in
4775 *GNU* | *'with BFD'*)
4776 lt_cv_prog_gnu_ld=yes
4779 lt_cv_prog_gnu_ld=no
4781 esac
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4784 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4785 with_gnu_ld=$lt_cv_prog_gnu_ld
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4796 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4797 if test "${lt_cv_path_NM+set}" = set; then :
4798 $as_echo_n "(cached) " >&6
4799 else
4800 if test -n "$NM"; then
4801 # Let the user override the test.
4802 lt_cv_path_NM="$NM"
4803 else
4804 lt_nm_to_check="${ac_tool_prefix}nm"
4805 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4806 lt_nm_to_check="$lt_nm_to_check nm"
4808 for lt_tmp_nm in $lt_nm_to_check; do
4809 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4810 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4811 IFS="$lt_save_ifs"
4812 test -z "$ac_dir" && ac_dir=.
4813 tmp_nm="$ac_dir/$lt_tmp_nm"
4814 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4815 # Check to see if the nm accepts a BSD-compat flag.
4816 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4817 # nm: unknown option "B" ignored
4818 # Tru64's nm complains that /dev/null is an invalid object file
4819 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4820 */dev/null* | *'Invalid file or object type'*)
4821 lt_cv_path_NM="$tmp_nm -B"
4822 break
4825 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4826 */dev/null*)
4827 lt_cv_path_NM="$tmp_nm -p"
4828 break
4831 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4832 continue # so that we can try to find one that supports BSD flags
4834 esac
4836 esac
4838 done
4839 IFS="$lt_save_ifs"
4840 done
4841 : ${lt_cv_path_NM=no}
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4845 $as_echo "$lt_cv_path_NM" >&6; }
4846 if test "$lt_cv_path_NM" != "no"; then
4847 NM="$lt_cv_path_NM"
4848 else
4849 # Didn't find any BSD compatible name lister, look for dumpbin.
4850 if test -n "$DUMPBIN"; then :
4851 # Let the user override the test.
4852 else
4853 if test -n "$ac_tool_prefix"; then
4854 for ac_prog in dumpbin "link -dump"
4856 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4857 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4859 $as_echo_n "checking for $ac_word... " >&6; }
4860 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4861 $as_echo_n "(cached) " >&6
4862 else
4863 if test -n "$DUMPBIN"; then
4864 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4865 else
4866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 for as_dir in $PATH
4869 IFS=$as_save_IFS
4870 test -z "$as_dir" && as_dir=.
4871 for ac_exec_ext in '' $ac_executable_extensions; do
4872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4873 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4875 break 2
4877 done
4878 done
4879 IFS=$as_save_IFS
4883 DUMPBIN=$ac_cv_prog_DUMPBIN
4884 if test -n "$DUMPBIN"; then
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4886 $as_echo "$DUMPBIN" >&6; }
4887 else
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4889 $as_echo "no" >&6; }
4893 test -n "$DUMPBIN" && break
4894 done
4896 if test -z "$DUMPBIN"; then
4897 ac_ct_DUMPBIN=$DUMPBIN
4898 for ac_prog in dumpbin "link -dump"
4900 # Extract the first word of "$ac_prog", so it can be a program name with args.
4901 set dummy $ac_prog; ac_word=$2
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4903 $as_echo_n "checking for $ac_word... " >&6; }
4904 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4905 $as_echo_n "(cached) " >&6
4906 else
4907 if test -n "$ac_ct_DUMPBIN"; then
4908 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4909 else
4910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911 for as_dir in $PATH
4913 IFS=$as_save_IFS
4914 test -z "$as_dir" && as_dir=.
4915 for ac_exec_ext in '' $ac_executable_extensions; do
4916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4917 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4919 break 2
4921 done
4922 done
4923 IFS=$as_save_IFS
4927 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4928 if test -n "$ac_ct_DUMPBIN"; then
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4930 $as_echo "$ac_ct_DUMPBIN" >&6; }
4931 else
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4933 $as_echo "no" >&6; }
4937 test -n "$ac_ct_DUMPBIN" && break
4938 done
4940 if test "x$ac_ct_DUMPBIN" = x; then
4941 DUMPBIN=":"
4942 else
4943 case $cross_compiling:$ac_tool_warned in
4944 yes:)
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4946 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4947 ac_tool_warned=yes ;;
4948 esac
4949 DUMPBIN=$ac_ct_DUMPBIN
4953 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4954 *COFF*)
4955 DUMPBIN="$DUMPBIN -symbols"
4958 DUMPBIN=:
4960 esac
4963 if test "$DUMPBIN" != ":"; then
4964 NM="$DUMPBIN"
4967 test -z "$NM" && NM=nm
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4975 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4976 if test "${lt_cv_nm_interface+set}" = set; then :
4977 $as_echo_n "(cached) " >&6
4978 else
4979 lt_cv_nm_interface="BSD nm"
4980 echo "int some_variable = 0;" > conftest.$ac_ext
4981 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4982 (eval "$ac_compile" 2>conftest.err)
4983 cat conftest.err >&5
4984 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4985 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4986 cat conftest.err >&5
4987 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4988 cat conftest.out >&5
4989 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4990 lt_cv_nm_interface="MS dumpbin"
4992 rm -f conftest*
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4995 $as_echo "$lt_cv_nm_interface" >&6; }
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4998 $as_echo_n "checking whether ln -s works... " >&6; }
4999 LN_S=$as_ln_s
5000 if test "$LN_S" = "ln -s"; then
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5002 $as_echo "yes" >&6; }
5003 else
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5005 $as_echo "no, using $LN_S" >&6; }
5008 # find the maximum length of command line arguments
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5010 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5011 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5012 $as_echo_n "(cached) " >&6
5013 else
5015 teststring="ABCD"
5017 case $build_os in
5018 msdosdjgpp*)
5019 # On DJGPP, this test can blow up pretty badly due to problems in libc
5020 # (any single argument exceeding 2000 bytes causes a buffer overrun
5021 # during glob expansion). Even if it were fixed, the result of this
5022 # check would be larger than it should be.
5023 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5026 gnu*)
5027 # Under GNU Hurd, this test is not required because there is
5028 # no limit to the length of command line arguments.
5029 # Libtool will interpret -1 as no limit whatsoever
5030 lt_cv_sys_max_cmd_len=-1;
5033 cygwin* | mingw* | cegcc*)
5034 # On Win9x/ME, this test blows up -- it succeeds, but takes
5035 # about 5 minutes as the teststring grows exponentially.
5036 # Worse, since 9x/ME are not pre-emptively multitasking,
5037 # you end up with a "frozen" computer, even though with patience
5038 # the test eventually succeeds (with a max line length of 256k).
5039 # Instead, let's just punt: use the minimum linelength reported by
5040 # all of the supported platforms: 8192 (on NT/2K/XP).
5041 lt_cv_sys_max_cmd_len=8192;
5044 mint*)
5045 # On MiNT this can take a long time and run out of memory.
5046 lt_cv_sys_max_cmd_len=8192;
5049 amigaos*)
5050 # On AmigaOS with pdksh, this test takes hours, literally.
5051 # So we just punt and use a minimum line length of 8192.
5052 lt_cv_sys_max_cmd_len=8192;
5055 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5056 # This has been around since 386BSD, at least. Likely further.
5057 if test -x /sbin/sysctl; then
5058 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5059 elif test -x /usr/sbin/sysctl; then
5060 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5061 else
5062 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5064 # And add a safety zone
5065 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5066 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5069 interix*)
5070 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5071 lt_cv_sys_max_cmd_len=196608
5074 osf*)
5075 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5076 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5077 # nice to cause kernel panics so lets avoid the loop below.
5078 # First set a reasonable default.
5079 lt_cv_sys_max_cmd_len=16384
5081 if test -x /sbin/sysconfig; then
5082 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5083 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5084 esac
5087 sco3.2v5*)
5088 lt_cv_sys_max_cmd_len=102400
5090 sysv5* | sco5v6* | sysv4.2uw2*)
5091 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5092 if test -n "$kargmax"; then
5093 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5094 else
5095 lt_cv_sys_max_cmd_len=32768
5099 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5100 if test -n "$lt_cv_sys_max_cmd_len"; then
5101 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5102 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5103 else
5104 # Make teststring a little bigger before we do anything with it.
5105 # a 1K string should be a reasonable start.
5106 for i in 1 2 3 4 5 6 7 8 ; do
5107 teststring=$teststring$teststring
5108 done
5109 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5110 # If test is not a shell built-in, we'll probably end up computing a
5111 # maximum length that is only half of the actual maximum length, but
5112 # we can't tell.
5113 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5114 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5115 test $i != 17 # 1/2 MB should be enough
5117 i=`expr $i + 1`
5118 teststring=$teststring$teststring
5119 done
5120 # Only check the string length outside the loop.
5121 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5122 teststring=
5123 # Add a significant safety factor because C++ compilers can tack on
5124 # massive amounts of additional arguments before passing them to the
5125 # linker. It appears as though 1/2 is a usable value.
5126 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5129 esac
5133 if test -n $lt_cv_sys_max_cmd_len ; then
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5135 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5136 else
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5138 $as_echo "none" >&6; }
5140 max_cmd_len=$lt_cv_sys_max_cmd_len
5147 : ${CP="cp -f"}
5148 : ${MV="mv -f"}
5149 : ${RM="rm -f"}
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5152 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5153 # Try some XSI features
5154 xsi_shell=no
5155 ( _lt_dummy="a/b/c"
5156 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5157 = c,a/b,, \
5158 && eval 'test $(( 1 + 1 )) -eq 2 \
5159 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5160 && xsi_shell=yes
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5162 $as_echo "$xsi_shell" >&6; }
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5166 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5167 lt_shell_append=no
5168 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5169 >/dev/null 2>&1 \
5170 && lt_shell_append=yes
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5172 $as_echo "$lt_shell_append" >&6; }
5175 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5176 lt_unset=unset
5177 else
5178 lt_unset=false
5185 # test EBCDIC or ASCII
5186 case `echo X|tr X '\101'` in
5187 A) # ASCII based system
5188 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5189 lt_SP2NL='tr \040 \012'
5190 lt_NL2SP='tr \015\012 \040\040'
5192 *) # EBCDIC based system
5193 lt_SP2NL='tr \100 \n'
5194 lt_NL2SP='tr \r\n \100\100'
5196 esac
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5207 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5208 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5209 $as_echo_n "(cached) " >&6
5210 else
5211 lt_cv_ld_reload_flag='-r'
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5214 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5215 reload_flag=$lt_cv_ld_reload_flag
5216 case $reload_flag in
5217 "" | " "*) ;;
5218 *) reload_flag=" $reload_flag" ;;
5219 esac
5220 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5221 case $host_os in
5222 darwin*)
5223 if test "$GCC" = yes; then
5224 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5225 else
5226 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5229 esac
5239 if test -n "$ac_tool_prefix"; then
5240 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5241 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5243 $as_echo_n "checking for $ac_word... " >&6; }
5244 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5245 $as_echo_n "(cached) " >&6
5246 else
5247 if test -n "$OBJDUMP"; then
5248 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5249 else
5250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5251 for as_dir in $PATH
5253 IFS=$as_save_IFS
5254 test -z "$as_dir" && as_dir=.
5255 for ac_exec_ext in '' $ac_executable_extensions; do
5256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5257 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5259 break 2
5261 done
5262 done
5263 IFS=$as_save_IFS
5267 OBJDUMP=$ac_cv_prog_OBJDUMP
5268 if test -n "$OBJDUMP"; then
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5270 $as_echo "$OBJDUMP" >&6; }
5271 else
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5273 $as_echo "no" >&6; }
5278 if test -z "$ac_cv_prog_OBJDUMP"; then
5279 ac_ct_OBJDUMP=$OBJDUMP
5280 # Extract the first word of "objdump", so it can be a program name with args.
5281 set dummy objdump; ac_word=$2
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5283 $as_echo_n "checking for $ac_word... " >&6; }
5284 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5285 $as_echo_n "(cached) " >&6
5286 else
5287 if test -n "$ac_ct_OBJDUMP"; then
5288 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5289 else
5290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5291 for as_dir in $PATH
5293 IFS=$as_save_IFS
5294 test -z "$as_dir" && as_dir=.
5295 for ac_exec_ext in '' $ac_executable_extensions; do
5296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5297 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5299 break 2
5301 done
5302 done
5303 IFS=$as_save_IFS
5307 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5308 if test -n "$ac_ct_OBJDUMP"; then
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5310 $as_echo "$ac_ct_OBJDUMP" >&6; }
5311 else
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5313 $as_echo "no" >&6; }
5316 if test "x$ac_ct_OBJDUMP" = x; then
5317 OBJDUMP="false"
5318 else
5319 case $cross_compiling:$ac_tool_warned in
5320 yes:)
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5322 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5323 ac_tool_warned=yes ;;
5324 esac
5325 OBJDUMP=$ac_ct_OBJDUMP
5327 else
5328 OBJDUMP="$ac_cv_prog_OBJDUMP"
5331 test -z "$OBJDUMP" && OBJDUMP=objdump
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5342 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5343 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5344 $as_echo_n "(cached) " >&6
5345 else
5346 lt_cv_file_magic_cmd='$MAGIC_CMD'
5347 lt_cv_file_magic_test_file=
5348 lt_cv_deplibs_check_method='unknown'
5349 # Need to set the preceding variable on all platforms that support
5350 # interlibrary dependencies.
5351 # 'none' -- dependencies not supported.
5352 # `unknown' -- same as none, but documents that we really don't know.
5353 # 'pass_all' -- all dependencies passed with no checks.
5354 # 'test_compile' -- check by making test program.
5355 # 'file_magic [[regex]]' -- check by looking for files in library path
5356 # which responds to the $file_magic_cmd with a given extended regex.
5357 # If you have `file' or equivalent on your system and you're not sure
5358 # whether `pass_all' will *always* work, you probably want this one.
5360 case $host_os in
5361 aix[4-9]*)
5362 lt_cv_deplibs_check_method=pass_all
5365 beos*)
5366 lt_cv_deplibs_check_method=pass_all
5369 bsdi[45]*)
5370 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5371 lt_cv_file_magic_cmd='/usr/bin/file -L'
5372 lt_cv_file_magic_test_file=/shlib/libc.so
5375 cygwin*)
5376 # func_win32_libid is a shell function defined in ltmain.sh
5377 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5378 lt_cv_file_magic_cmd='func_win32_libid'
5381 mingw* | pw32*)
5382 # Base MSYS/MinGW do not provide the 'file' command needed by
5383 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5384 # unless we find 'file', for example because we are cross-compiling.
5385 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5386 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5387 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5388 lt_cv_file_magic_cmd='func_win32_libid'
5389 else
5390 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5391 lt_cv_file_magic_cmd='$OBJDUMP -f'
5395 cegcc*)
5396 # use the weaker test based on 'objdump'. See mingw*.
5397 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5398 lt_cv_file_magic_cmd='$OBJDUMP -f'
5401 darwin* | rhapsody*)
5402 lt_cv_deplibs_check_method=pass_all
5405 freebsd* | dragonfly*)
5406 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5407 case $host_cpu in
5408 i*86 )
5409 # Not sure whether the presence of OpenBSD here was a mistake.
5410 # Let's accept both of them until this is cleared up.
5411 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5412 lt_cv_file_magic_cmd=/usr/bin/file
5413 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5415 esac
5416 else
5417 lt_cv_deplibs_check_method=pass_all
5421 gnu*)
5422 lt_cv_deplibs_check_method=pass_all
5425 haiku*)
5426 lt_cv_deplibs_check_method=pass_all
5429 hpux10.20* | hpux11*)
5430 lt_cv_file_magic_cmd=/usr/bin/file
5431 case $host_cpu in
5432 ia64*)
5433 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5434 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5436 hppa*64*)
5437 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]'
5438 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5441 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5442 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5444 esac
5447 interix[3-9]*)
5448 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5449 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5452 irix5* | irix6* | nonstopux*)
5453 case $LD in
5454 *-32|*"-32 ") libmagic=32-bit;;
5455 *-n32|*"-n32 ") libmagic=N32;;
5456 *-64|*"-64 ") libmagic=64-bit;;
5457 *) libmagic=never-match;;
5458 esac
5459 lt_cv_deplibs_check_method=pass_all
5462 # This must be Linux ELF.
5463 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5464 lt_cv_deplibs_check_method=pass_all
5467 netbsd*)
5468 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5469 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5470 else
5471 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5475 newos6*)
5476 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5477 lt_cv_file_magic_cmd=/usr/bin/file
5478 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5481 *nto* | *qnx*)
5482 lt_cv_deplibs_check_method=pass_all
5485 openbsd*)
5486 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5487 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5488 else
5489 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5493 osf3* | osf4* | osf5*)
5494 lt_cv_deplibs_check_method=pass_all
5497 rdos*)
5498 lt_cv_deplibs_check_method=pass_all
5501 solaris*)
5502 lt_cv_deplibs_check_method=pass_all
5505 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5506 lt_cv_deplibs_check_method=pass_all
5509 sysv4 | sysv4.3*)
5510 case $host_vendor in
5511 motorola)
5512 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]'
5513 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5515 ncr)
5516 lt_cv_deplibs_check_method=pass_all
5518 sequent)
5519 lt_cv_file_magic_cmd='/bin/file'
5520 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5522 sni)
5523 lt_cv_file_magic_cmd='/bin/file'
5524 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5525 lt_cv_file_magic_test_file=/lib/libc.so
5527 siemens)
5528 lt_cv_deplibs_check_method=pass_all
5531 lt_cv_deplibs_check_method=pass_all
5533 esac
5536 tpf*)
5537 lt_cv_deplibs_check_method=pass_all
5539 esac
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5543 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5544 file_magic_cmd=$lt_cv_file_magic_cmd
5545 deplibs_check_method=$lt_cv_deplibs_check_method
5546 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5559 if test -n "$ac_tool_prefix"; then
5560 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5561 set dummy ${ac_tool_prefix}ar; ac_word=$2
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5563 $as_echo_n "checking for $ac_word... " >&6; }
5564 if test "${ac_cv_prog_AR+set}" = set; then :
5565 $as_echo_n "(cached) " >&6
5566 else
5567 if test -n "$AR"; then
5568 ac_cv_prog_AR="$AR" # Let the user override the test.
5569 else
5570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5571 for as_dir in $PATH
5573 IFS=$as_save_IFS
5574 test -z "$as_dir" && as_dir=.
5575 for ac_exec_ext in '' $ac_executable_extensions; do
5576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5577 ac_cv_prog_AR="${ac_tool_prefix}ar"
5578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5579 break 2
5581 done
5582 done
5583 IFS=$as_save_IFS
5587 AR=$ac_cv_prog_AR
5588 if test -n "$AR"; then
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5590 $as_echo "$AR" >&6; }
5591 else
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5593 $as_echo "no" >&6; }
5598 if test -z "$ac_cv_prog_AR"; then
5599 ac_ct_AR=$AR
5600 # Extract the first word of "ar", so it can be a program name with args.
5601 set dummy ar; ac_word=$2
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5603 $as_echo_n "checking for $ac_word... " >&6; }
5604 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5605 $as_echo_n "(cached) " >&6
5606 else
5607 if test -n "$ac_ct_AR"; then
5608 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5609 else
5610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5611 for as_dir in $PATH
5613 IFS=$as_save_IFS
5614 test -z "$as_dir" && as_dir=.
5615 for ac_exec_ext in '' $ac_executable_extensions; do
5616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5617 ac_cv_prog_ac_ct_AR="ar"
5618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5619 break 2
5621 done
5622 done
5623 IFS=$as_save_IFS
5627 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5628 if test -n "$ac_ct_AR"; then
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5630 $as_echo "$ac_ct_AR" >&6; }
5631 else
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5633 $as_echo "no" >&6; }
5636 if test "x$ac_ct_AR" = x; then
5637 AR="false"
5638 else
5639 case $cross_compiling:$ac_tool_warned in
5640 yes:)
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5642 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5643 ac_tool_warned=yes ;;
5644 esac
5645 AR=$ac_ct_AR
5647 else
5648 AR="$ac_cv_prog_AR"
5651 test -z "$AR" && AR=ar
5652 test -z "$AR_FLAGS" && AR_FLAGS=cru
5664 if test -n "$ac_tool_prefix"; then
5665 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5666 set dummy ${ac_tool_prefix}strip; ac_word=$2
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5668 $as_echo_n "checking for $ac_word... " >&6; }
5669 if test "${ac_cv_prog_STRIP+set}" = set; then :
5670 $as_echo_n "(cached) " >&6
5671 else
5672 if test -n "$STRIP"; then
5673 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5674 else
5675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5676 for as_dir in $PATH
5678 IFS=$as_save_IFS
5679 test -z "$as_dir" && as_dir=.
5680 for ac_exec_ext in '' $ac_executable_extensions; do
5681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5682 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5684 break 2
5686 done
5687 done
5688 IFS=$as_save_IFS
5692 STRIP=$ac_cv_prog_STRIP
5693 if test -n "$STRIP"; then
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5695 $as_echo "$STRIP" >&6; }
5696 else
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5698 $as_echo "no" >&6; }
5703 if test -z "$ac_cv_prog_STRIP"; then
5704 ac_ct_STRIP=$STRIP
5705 # Extract the first word of "strip", so it can be a program name with args.
5706 set dummy strip; ac_word=$2
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5708 $as_echo_n "checking for $ac_word... " >&6; }
5709 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5710 $as_echo_n "(cached) " >&6
5711 else
5712 if test -n "$ac_ct_STRIP"; then
5713 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5714 else
5715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5716 for as_dir in $PATH
5718 IFS=$as_save_IFS
5719 test -z "$as_dir" && as_dir=.
5720 for ac_exec_ext in '' $ac_executable_extensions; do
5721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5722 ac_cv_prog_ac_ct_STRIP="strip"
5723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5724 break 2
5726 done
5727 done
5728 IFS=$as_save_IFS
5732 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5733 if test -n "$ac_ct_STRIP"; then
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5735 $as_echo "$ac_ct_STRIP" >&6; }
5736 else
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5738 $as_echo "no" >&6; }
5741 if test "x$ac_ct_STRIP" = x; then
5742 STRIP=":"
5743 else
5744 case $cross_compiling:$ac_tool_warned in
5745 yes:)
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5747 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5748 ac_tool_warned=yes ;;
5749 esac
5750 STRIP=$ac_ct_STRIP
5752 else
5753 STRIP="$ac_cv_prog_STRIP"
5756 test -z "$STRIP" && STRIP=:
5763 if test -n "$ac_tool_prefix"; then
5764 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5765 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5767 $as_echo_n "checking for $ac_word... " >&6; }
5768 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5769 $as_echo_n "(cached) " >&6
5770 else
5771 if test -n "$RANLIB"; then
5772 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5773 else
5774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5775 for as_dir in $PATH
5777 IFS=$as_save_IFS
5778 test -z "$as_dir" && as_dir=.
5779 for ac_exec_ext in '' $ac_executable_extensions; do
5780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5781 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5783 break 2
5785 done
5786 done
5787 IFS=$as_save_IFS
5791 RANLIB=$ac_cv_prog_RANLIB
5792 if test -n "$RANLIB"; then
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5794 $as_echo "$RANLIB" >&6; }
5795 else
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5797 $as_echo "no" >&6; }
5802 if test -z "$ac_cv_prog_RANLIB"; then
5803 ac_ct_RANLIB=$RANLIB
5804 # Extract the first word of "ranlib", so it can be a program name with args.
5805 set dummy ranlib; ac_word=$2
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5807 $as_echo_n "checking for $ac_word... " >&6; }
5808 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5809 $as_echo_n "(cached) " >&6
5810 else
5811 if test -n "$ac_ct_RANLIB"; then
5812 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5813 else
5814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815 for as_dir in $PATH
5817 IFS=$as_save_IFS
5818 test -z "$as_dir" && as_dir=.
5819 for ac_exec_ext in '' $ac_executable_extensions; do
5820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5821 ac_cv_prog_ac_ct_RANLIB="ranlib"
5822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5823 break 2
5825 done
5826 done
5827 IFS=$as_save_IFS
5831 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5832 if test -n "$ac_ct_RANLIB"; then
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5834 $as_echo "$ac_ct_RANLIB" >&6; }
5835 else
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5837 $as_echo "no" >&6; }
5840 if test "x$ac_ct_RANLIB" = x; then
5841 RANLIB=":"
5842 else
5843 case $cross_compiling:$ac_tool_warned in
5844 yes:)
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5846 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5847 ac_tool_warned=yes ;;
5848 esac
5849 RANLIB=$ac_ct_RANLIB
5851 else
5852 RANLIB="$ac_cv_prog_RANLIB"
5855 test -z "$RANLIB" && RANLIB=:
5862 # Determine commands to create old-style static archives.
5863 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5864 old_postinstall_cmds='chmod 644 $oldlib'
5865 old_postuninstall_cmds=
5867 if test -n "$RANLIB"; then
5868 case $host_os in
5869 openbsd*)
5870 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5873 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5875 esac
5876 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5879 case $host_os in
5880 darwin*)
5881 lock_old_archive_extraction=yes ;;
5883 lock_old_archive_extraction=no ;;
5884 esac
5924 # If no C compiler was specified, use CC.
5925 LTCC=${LTCC-"$CC"}
5927 # If no C compiler flags were specified, use CFLAGS.
5928 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5930 # Allow CC to be a program name with arguments.
5931 compiler=$CC
5934 # Check for command to grab the raw symbol name followed by C symbol from nm.
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5936 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5937 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5938 $as_echo_n "(cached) " >&6
5939 else
5941 # These are sane defaults that work on at least a few old systems.
5942 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5944 # Character class describing NM global symbol codes.
5945 symcode='[BCDEGRST]'
5947 # Regexp to match symbols that can be accessed directly from C.
5948 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5950 # Define system-specific variables.
5951 case $host_os in
5952 aix*)
5953 symcode='[BCDT]'
5955 cygwin* | mingw* | pw32* | cegcc*)
5956 symcode='[ABCDGISTW]'
5958 hpux*)
5959 if test "$host_cpu" = ia64; then
5960 symcode='[ABCDEGRST]'
5963 irix* | nonstopux*)
5964 symcode='[BCDEGRST]'
5966 osf*)
5967 symcode='[BCDEGQRST]'
5969 solaris*)
5970 symcode='[BDRT]'
5972 sco3.2v5*)
5973 symcode='[DT]'
5975 sysv4.2uw2*)
5976 symcode='[DT]'
5978 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5979 symcode='[ABDT]'
5981 sysv4)
5982 symcode='[DFNSTU]'
5984 esac
5986 # If we're using GNU nm, then use its standard symbol codes.
5987 case `$NM -V 2>&1` in
5988 *GNU* | *'with BFD'*)
5989 symcode='[ABCDGIRSTW]' ;;
5990 esac
5992 # Transform an extracted symbol line into a proper C declaration.
5993 # Some systems (esp. on ia64) link data and code symbols differently,
5994 # so use this general approach.
5995 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5997 # Transform an extracted symbol line into symbol name and symbol address
5998 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5999 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'"
6001 # Handle CRLF in mingw tool chain
6002 opt_cr=
6003 case $build_os in
6004 mingw*)
6005 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6007 esac
6009 # Try without a prefix underscore, then with it.
6010 for ac_symprfx in "" "_"; do
6012 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6013 symxfrm="\\1 $ac_symprfx\\2 \\2"
6015 # Write the raw and C identifiers.
6016 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6017 # Fake it for dumpbin and say T for any non-static function
6018 # and D for any global variable.
6019 # Also find C++ and __fastcall symbols from MSVC++,
6020 # which start with @ or ?.
6021 lt_cv_sys_global_symbol_pipe="$AWK '"\
6022 " {last_section=section; section=\$ 3};"\
6023 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6024 " \$ 0!~/External *\|/{next};"\
6025 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6026 " {if(hide[section]) next};"\
6027 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6028 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6029 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6030 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6031 " ' prfx=^$ac_symprfx"
6032 else
6033 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6036 # Check to see that the pipe works correctly.
6037 pipe_works=no
6039 rm -f conftest*
6040 cat > conftest.$ac_ext <<_LT_EOF
6041 #ifdef __cplusplus
6042 extern "C" {
6043 #endif
6044 char nm_test_var;
6045 void nm_test_func(void);
6046 void nm_test_func(void){}
6047 #ifdef __cplusplus
6049 #endif
6050 int main(){nm_test_var='a';nm_test_func();return(0);}
6051 _LT_EOF
6053 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6054 (eval $ac_compile) 2>&5
6055 ac_status=$?
6056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6057 test $ac_status = 0; }; then
6058 # Now try to grab the symbols.
6059 nlist=conftest.nm
6060 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6061 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6062 ac_status=$?
6063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6064 test $ac_status = 0; } && test -s "$nlist"; then
6065 # Try sorting and uniquifying the output.
6066 if sort "$nlist" | uniq > "$nlist"T; then
6067 mv -f "$nlist"T "$nlist"
6068 else
6069 rm -f "$nlist"T
6072 # Make sure that we snagged all the symbols we need.
6073 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6074 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6075 cat <<_LT_EOF > conftest.$ac_ext
6076 #ifdef __cplusplus
6077 extern "C" {
6078 #endif
6080 _LT_EOF
6081 # Now generate the symbol file.
6082 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6084 cat <<_LT_EOF >> conftest.$ac_ext
6086 /* The mapping between symbol names and symbols. */
6087 const struct {
6088 const char *name;
6089 void *address;
6091 lt__PROGRAM__LTX_preloaded_symbols[] =
6093 { "@PROGRAM@", (void *) 0 },
6094 _LT_EOF
6095 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6096 cat <<\_LT_EOF >> conftest.$ac_ext
6097 {0, (void *) 0}
6100 /* This works around a problem in FreeBSD linker */
6101 #ifdef FREEBSD_WORKAROUND
6102 static const void *lt_preloaded_setup() {
6103 return lt__PROGRAM__LTX_preloaded_symbols;
6105 #endif
6107 #ifdef __cplusplus
6109 #endif
6110 _LT_EOF
6111 # Now try linking the two files.
6112 mv conftest.$ac_objext conftstm.$ac_objext
6113 lt_save_LIBS="$LIBS"
6114 lt_save_CFLAGS="$CFLAGS"
6115 LIBS="conftstm.$ac_objext"
6116 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6117 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6118 (eval $ac_link) 2>&5
6119 ac_status=$?
6120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6121 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6122 pipe_works=yes
6124 LIBS="$lt_save_LIBS"
6125 CFLAGS="$lt_save_CFLAGS"
6126 else
6127 echo "cannot find nm_test_func in $nlist" >&5
6129 else
6130 echo "cannot find nm_test_var in $nlist" >&5
6132 else
6133 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6135 else
6136 echo "$progname: failed program was:" >&5
6137 cat conftest.$ac_ext >&5
6139 rm -rf conftest* conftst*
6141 # Do not use the global_symbol_pipe unless it works.
6142 if test "$pipe_works" = yes; then
6143 break
6144 else
6145 lt_cv_sys_global_symbol_pipe=
6147 done
6151 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6152 lt_cv_sys_global_symbol_to_cdecl=
6154 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6156 $as_echo "failed" >&6; }
6157 else
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6159 $as_echo "ok" >&6; }
6183 # Check whether --enable-libtool-lock was given.
6184 if test "${enable_libtool_lock+set}" = set; then :
6185 enableval=$enable_libtool_lock;
6188 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6190 # Some flags need to be propagated to the compiler or linker for good
6191 # libtool support.
6192 case $host in
6193 ia64-*-hpux*)
6194 # Find out which ABI we are using.
6195 echo 'int i;' > conftest.$ac_ext
6196 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6197 (eval $ac_compile) 2>&5
6198 ac_status=$?
6199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6200 test $ac_status = 0; }; then
6201 case `/usr/bin/file conftest.$ac_objext` in
6202 *ELF-32*)
6203 HPUX_IA64_MODE="32"
6205 *ELF-64*)
6206 HPUX_IA64_MODE="64"
6208 esac
6210 rm -rf conftest*
6212 *-*-irix6*)
6213 # Find out which ABI we are using.
6214 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6215 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6216 (eval $ac_compile) 2>&5
6217 ac_status=$?
6218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6219 test $ac_status = 0; }; then
6220 if test "$lt_cv_prog_gnu_ld" = yes; then
6221 case `/usr/bin/file conftest.$ac_objext` in
6222 *32-bit*)
6223 LD="${LD-ld} -melf32bsmip"
6225 *N32*)
6226 LD="${LD-ld} -melf32bmipn32"
6228 *64-bit*)
6229 LD="${LD-ld} -melf64bmip"
6231 esac
6232 else
6233 case `/usr/bin/file conftest.$ac_objext` in
6234 *32-bit*)
6235 LD="${LD-ld} -32"
6237 *N32*)
6238 LD="${LD-ld} -n32"
6240 *64-bit*)
6241 LD="${LD-ld} -64"
6243 esac
6246 rm -rf conftest*
6249 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6250 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6251 # Find out which ABI we are using.
6252 echo 'int i;' > conftest.$ac_ext
6253 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6254 (eval $ac_compile) 2>&5
6255 ac_status=$?
6256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6257 test $ac_status = 0; }; then
6258 case `/usr/bin/file conftest.o` in
6259 *32-bit*)
6260 case $host in
6261 x86_64-*kfreebsd*-gnu)
6262 LD="${LD-ld} -m elf_i386_fbsd"
6264 x86_64-*linux*)
6265 LD="${LD-ld} -m elf_i386"
6267 ppc64-*linux*|powerpc64-*linux*)
6268 LD="${LD-ld} -m elf32ppclinux"
6270 s390x-*linux*)
6271 LD="${LD-ld} -m elf_s390"
6273 sparc64-*linux*)
6274 LD="${LD-ld} -m elf32_sparc"
6276 esac
6278 *64-bit*)
6279 case $host in
6280 x86_64-*kfreebsd*-gnu)
6281 LD="${LD-ld} -m elf_x86_64_fbsd"
6283 x86_64-*linux*)
6284 LD="${LD-ld} -m elf_x86_64"
6286 ppc*-*linux*|powerpc*-*linux*)
6287 LD="${LD-ld} -m elf64ppc"
6289 s390*-*linux*|s390*-*tpf*)
6290 LD="${LD-ld} -m elf64_s390"
6292 sparc*-*linux*)
6293 LD="${LD-ld} -m elf64_sparc"
6295 esac
6297 esac
6299 rm -rf conftest*
6302 *-*-sco3.2v5*)
6303 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6304 SAVE_CFLAGS="$CFLAGS"
6305 CFLAGS="$CFLAGS -belf"
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6307 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6308 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6309 $as_echo_n "(cached) " >&6
6310 else
6311 ac_ext=c
6312 ac_cpp='$CPP $CPPFLAGS'
6313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6317 if test x$gcc_no_link = xyes; then
6318 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6321 /* end confdefs.h. */
6324 main ()
6328 return 0;
6330 _ACEOF
6331 if ac_fn_c_try_link "$LINENO"; then :
6332 lt_cv_cc_needs_belf=yes
6333 else
6334 lt_cv_cc_needs_belf=no
6336 rm -f core conftest.err conftest.$ac_objext \
6337 conftest$ac_exeext conftest.$ac_ext
6338 ac_ext=c
6339 ac_cpp='$CPP $CPPFLAGS'
6340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6346 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6347 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6348 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6349 CFLAGS="$SAVE_CFLAGS"
6352 sparc*-*solaris*)
6353 # Find out which ABI we are using.
6354 echo 'int i;' > conftest.$ac_ext
6355 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6356 (eval $ac_compile) 2>&5
6357 ac_status=$?
6358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6359 test $ac_status = 0; }; then
6360 case `/usr/bin/file conftest.o` in
6361 *64-bit*)
6362 case $lt_cv_prog_gnu_ld in
6363 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6365 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6366 LD="${LD-ld} -64"
6369 esac
6371 esac
6373 rm -rf conftest*
6375 esac
6377 need_locks="$enable_libtool_lock"
6380 case $host_os in
6381 rhapsody* | darwin*)
6382 if test -n "$ac_tool_prefix"; then
6383 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6384 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6386 $as_echo_n "checking for $ac_word... " >&6; }
6387 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6388 $as_echo_n "(cached) " >&6
6389 else
6390 if test -n "$DSYMUTIL"; then
6391 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6392 else
6393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6394 for as_dir in $PATH
6396 IFS=$as_save_IFS
6397 test -z "$as_dir" && as_dir=.
6398 for ac_exec_ext in '' $ac_executable_extensions; do
6399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6400 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6402 break 2
6404 done
6405 done
6406 IFS=$as_save_IFS
6410 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6411 if test -n "$DSYMUTIL"; then
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6413 $as_echo "$DSYMUTIL" >&6; }
6414 else
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6416 $as_echo "no" >&6; }
6421 if test -z "$ac_cv_prog_DSYMUTIL"; then
6422 ac_ct_DSYMUTIL=$DSYMUTIL
6423 # Extract the first word of "dsymutil", so it can be a program name with args.
6424 set dummy dsymutil; ac_word=$2
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6426 $as_echo_n "checking for $ac_word... " >&6; }
6427 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6428 $as_echo_n "(cached) " >&6
6429 else
6430 if test -n "$ac_ct_DSYMUTIL"; then
6431 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6432 else
6433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6434 for as_dir in $PATH
6436 IFS=$as_save_IFS
6437 test -z "$as_dir" && as_dir=.
6438 for ac_exec_ext in '' $ac_executable_extensions; do
6439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6440 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6442 break 2
6444 done
6445 done
6446 IFS=$as_save_IFS
6450 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6451 if test -n "$ac_ct_DSYMUTIL"; then
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6453 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6454 else
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6456 $as_echo "no" >&6; }
6459 if test "x$ac_ct_DSYMUTIL" = x; then
6460 DSYMUTIL=":"
6461 else
6462 case $cross_compiling:$ac_tool_warned in
6463 yes:)
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6466 ac_tool_warned=yes ;;
6467 esac
6468 DSYMUTIL=$ac_ct_DSYMUTIL
6470 else
6471 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6474 if test -n "$ac_tool_prefix"; then
6475 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6476 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6478 $as_echo_n "checking for $ac_word... " >&6; }
6479 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6480 $as_echo_n "(cached) " >&6
6481 else
6482 if test -n "$NMEDIT"; then
6483 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6484 else
6485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6486 for as_dir in $PATH
6488 IFS=$as_save_IFS
6489 test -z "$as_dir" && as_dir=.
6490 for ac_exec_ext in '' $ac_executable_extensions; do
6491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6492 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6494 break 2
6496 done
6497 done
6498 IFS=$as_save_IFS
6502 NMEDIT=$ac_cv_prog_NMEDIT
6503 if test -n "$NMEDIT"; then
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6505 $as_echo "$NMEDIT" >&6; }
6506 else
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6508 $as_echo "no" >&6; }
6513 if test -z "$ac_cv_prog_NMEDIT"; then
6514 ac_ct_NMEDIT=$NMEDIT
6515 # Extract the first word of "nmedit", so it can be a program name with args.
6516 set dummy nmedit; ac_word=$2
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6518 $as_echo_n "checking for $ac_word... " >&6; }
6519 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6520 $as_echo_n "(cached) " >&6
6521 else
6522 if test -n "$ac_ct_NMEDIT"; then
6523 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6524 else
6525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6526 for as_dir in $PATH
6528 IFS=$as_save_IFS
6529 test -z "$as_dir" && as_dir=.
6530 for ac_exec_ext in '' $ac_executable_extensions; do
6531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6532 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6534 break 2
6536 done
6537 done
6538 IFS=$as_save_IFS
6542 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6543 if test -n "$ac_ct_NMEDIT"; then
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6545 $as_echo "$ac_ct_NMEDIT" >&6; }
6546 else
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6548 $as_echo "no" >&6; }
6551 if test "x$ac_ct_NMEDIT" = x; then
6552 NMEDIT=":"
6553 else
6554 case $cross_compiling:$ac_tool_warned in
6555 yes:)
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6558 ac_tool_warned=yes ;;
6559 esac
6560 NMEDIT=$ac_ct_NMEDIT
6562 else
6563 NMEDIT="$ac_cv_prog_NMEDIT"
6566 if test -n "$ac_tool_prefix"; then
6567 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6568 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6570 $as_echo_n "checking for $ac_word... " >&6; }
6571 if test "${ac_cv_prog_LIPO+set}" = set; then :
6572 $as_echo_n "(cached) " >&6
6573 else
6574 if test -n "$LIPO"; then
6575 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6576 else
6577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6578 for as_dir in $PATH
6580 IFS=$as_save_IFS
6581 test -z "$as_dir" && as_dir=.
6582 for ac_exec_ext in '' $ac_executable_extensions; do
6583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6584 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6586 break 2
6588 done
6589 done
6590 IFS=$as_save_IFS
6594 LIPO=$ac_cv_prog_LIPO
6595 if test -n "$LIPO"; then
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6597 $as_echo "$LIPO" >&6; }
6598 else
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6600 $as_echo "no" >&6; }
6605 if test -z "$ac_cv_prog_LIPO"; then
6606 ac_ct_LIPO=$LIPO
6607 # Extract the first word of "lipo", so it can be a program name with args.
6608 set dummy lipo; ac_word=$2
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6610 $as_echo_n "checking for $ac_word... " >&6; }
6611 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6612 $as_echo_n "(cached) " >&6
6613 else
6614 if test -n "$ac_ct_LIPO"; then
6615 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6616 else
6617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6618 for as_dir in $PATH
6620 IFS=$as_save_IFS
6621 test -z "$as_dir" && as_dir=.
6622 for ac_exec_ext in '' $ac_executable_extensions; do
6623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6624 ac_cv_prog_ac_ct_LIPO="lipo"
6625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6626 break 2
6628 done
6629 done
6630 IFS=$as_save_IFS
6634 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6635 if test -n "$ac_ct_LIPO"; then
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6637 $as_echo "$ac_ct_LIPO" >&6; }
6638 else
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6640 $as_echo "no" >&6; }
6643 if test "x$ac_ct_LIPO" = x; then
6644 LIPO=":"
6645 else
6646 case $cross_compiling:$ac_tool_warned in
6647 yes:)
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6649 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6650 ac_tool_warned=yes ;;
6651 esac
6652 LIPO=$ac_ct_LIPO
6654 else
6655 LIPO="$ac_cv_prog_LIPO"
6658 if test -n "$ac_tool_prefix"; then
6659 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6660 set dummy ${ac_tool_prefix}otool; ac_word=$2
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6662 $as_echo_n "checking for $ac_word... " >&6; }
6663 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6664 $as_echo_n "(cached) " >&6
6665 else
6666 if test -n "$OTOOL"; then
6667 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6668 else
6669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6670 for as_dir in $PATH
6672 IFS=$as_save_IFS
6673 test -z "$as_dir" && as_dir=.
6674 for ac_exec_ext in '' $ac_executable_extensions; do
6675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6676 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6678 break 2
6680 done
6681 done
6682 IFS=$as_save_IFS
6686 OTOOL=$ac_cv_prog_OTOOL
6687 if test -n "$OTOOL"; then
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6689 $as_echo "$OTOOL" >&6; }
6690 else
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6692 $as_echo "no" >&6; }
6697 if test -z "$ac_cv_prog_OTOOL"; then
6698 ac_ct_OTOOL=$OTOOL
6699 # Extract the first word of "otool", so it can be a program name with args.
6700 set dummy otool; ac_word=$2
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6702 $as_echo_n "checking for $ac_word... " >&6; }
6703 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6704 $as_echo_n "(cached) " >&6
6705 else
6706 if test -n "$ac_ct_OTOOL"; then
6707 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6708 else
6709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6710 for as_dir in $PATH
6712 IFS=$as_save_IFS
6713 test -z "$as_dir" && as_dir=.
6714 for ac_exec_ext in '' $ac_executable_extensions; do
6715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6716 ac_cv_prog_ac_ct_OTOOL="otool"
6717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6718 break 2
6720 done
6721 done
6722 IFS=$as_save_IFS
6726 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6727 if test -n "$ac_ct_OTOOL"; then
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6729 $as_echo "$ac_ct_OTOOL" >&6; }
6730 else
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6732 $as_echo "no" >&6; }
6735 if test "x$ac_ct_OTOOL" = x; then
6736 OTOOL=":"
6737 else
6738 case $cross_compiling:$ac_tool_warned in
6739 yes:)
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6741 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6742 ac_tool_warned=yes ;;
6743 esac
6744 OTOOL=$ac_ct_OTOOL
6746 else
6747 OTOOL="$ac_cv_prog_OTOOL"
6750 if test -n "$ac_tool_prefix"; then
6751 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6752 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6754 $as_echo_n "checking for $ac_word... " >&6; }
6755 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6756 $as_echo_n "(cached) " >&6
6757 else
6758 if test -n "$OTOOL64"; then
6759 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6760 else
6761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762 for as_dir in $PATH
6764 IFS=$as_save_IFS
6765 test -z "$as_dir" && as_dir=.
6766 for ac_exec_ext in '' $ac_executable_extensions; do
6767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6768 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6770 break 2
6772 done
6773 done
6774 IFS=$as_save_IFS
6778 OTOOL64=$ac_cv_prog_OTOOL64
6779 if test -n "$OTOOL64"; then
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6781 $as_echo "$OTOOL64" >&6; }
6782 else
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6784 $as_echo "no" >&6; }
6789 if test -z "$ac_cv_prog_OTOOL64"; then
6790 ac_ct_OTOOL64=$OTOOL64
6791 # Extract the first word of "otool64", so it can be a program name with args.
6792 set dummy otool64; ac_word=$2
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6794 $as_echo_n "checking for $ac_word... " >&6; }
6795 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6796 $as_echo_n "(cached) " >&6
6797 else
6798 if test -n "$ac_ct_OTOOL64"; then
6799 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6800 else
6801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6802 for as_dir in $PATH
6804 IFS=$as_save_IFS
6805 test -z "$as_dir" && as_dir=.
6806 for ac_exec_ext in '' $ac_executable_extensions; do
6807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6808 ac_cv_prog_ac_ct_OTOOL64="otool64"
6809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6810 break 2
6812 done
6813 done
6814 IFS=$as_save_IFS
6818 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6819 if test -n "$ac_ct_OTOOL64"; then
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6821 $as_echo "$ac_ct_OTOOL64" >&6; }
6822 else
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6824 $as_echo "no" >&6; }
6827 if test "x$ac_ct_OTOOL64" = x; then
6828 OTOOL64=":"
6829 else
6830 case $cross_compiling:$ac_tool_warned in
6831 yes:)
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6834 ac_tool_warned=yes ;;
6835 esac
6836 OTOOL64=$ac_ct_OTOOL64
6838 else
6839 OTOOL64="$ac_cv_prog_OTOOL64"
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6869 $as_echo_n "checking for -single_module linker flag... " >&6; }
6870 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6871 $as_echo_n "(cached) " >&6
6872 else
6873 lt_cv_apple_cc_single_mod=no
6874 if test -z "${LT_MULTI_MODULE}"; then
6875 # By default we will add the -single_module flag. You can override
6876 # by either setting the environment variable LT_MULTI_MODULE
6877 # non-empty at configure time, or by adding -multi_module to the
6878 # link flags.
6879 rm -rf libconftest.dylib*
6880 echo "int foo(void){return 1;}" > conftest.c
6881 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6882 -dynamiclib -Wl,-single_module conftest.c" >&5
6883 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6884 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6885 _lt_result=$?
6886 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6887 lt_cv_apple_cc_single_mod=yes
6888 else
6889 cat conftest.err >&5
6891 rm -rf libconftest.dylib*
6892 rm -f conftest.*
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6896 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6898 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6899 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6900 $as_echo_n "(cached) " >&6
6901 else
6902 lt_cv_ld_exported_symbols_list=no
6903 save_LDFLAGS=$LDFLAGS
6904 echo "_main" > conftest.sym
6905 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6906 if test x$gcc_no_link = xyes; then
6907 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6910 /* end confdefs.h. */
6913 main ()
6917 return 0;
6919 _ACEOF
6920 if ac_fn_c_try_link "$LINENO"; then :
6921 lt_cv_ld_exported_symbols_list=yes
6922 else
6923 lt_cv_ld_exported_symbols_list=no
6925 rm -f core conftest.err conftest.$ac_objext \
6926 conftest$ac_exeext conftest.$ac_ext
6927 LDFLAGS="$save_LDFLAGS"
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6931 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6933 $as_echo_n "checking for -force_load linker flag... " >&6; }
6934 if test "${lt_cv_ld_force_load+set}" = set; then :
6935 $as_echo_n "(cached) " >&6
6936 else
6937 lt_cv_ld_force_load=no
6938 cat > conftest.c << _LT_EOF
6939 int forced_loaded() { return 2;}
6940 _LT_EOF
6941 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6942 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6943 echo "$AR cru libconftest.a conftest.o" >&5
6944 $AR cru libconftest.a conftest.o 2>&5
6945 cat > conftest.c << _LT_EOF
6946 int main() { return 0;}
6947 _LT_EOF
6948 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6949 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6950 _lt_result=$?
6951 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6952 lt_cv_ld_force_load=yes
6953 else
6954 cat conftest.err >&5
6956 rm -f conftest.err libconftest.a conftest conftest.c
6957 rm -rf conftest.dSYM
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6961 $as_echo "$lt_cv_ld_force_load" >&6; }
6962 case $host_os in
6963 rhapsody* | darwin1.[012])
6964 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6965 darwin1.*)
6966 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6967 darwin*) # darwin 5.x on
6968 # if running on 10.5 or later, the deployment target defaults
6969 # to the OS version, if on x86, and 10.4, the deployment
6970 # target defaults to 10.4. Don't you love it?
6971 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6972 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6973 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6974 10.[012]*)
6975 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6976 10.*)
6977 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6978 esac
6980 esac
6981 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6982 _lt_dar_single_mod='$single_module'
6984 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6985 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6986 else
6987 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6989 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6990 _lt_dsymutil='~$DSYMUTIL $lib || :'
6991 else
6992 _lt_dsymutil=
6995 esac
6997 for ac_header in dlfcn.h
6998 do :
6999 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7001 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7002 cat >>confdefs.h <<_ACEOF
7003 #define HAVE_DLFCN_H 1
7004 _ACEOF
7008 done
7014 # Set options
7018 enable_dlopen=no
7021 enable_win32_dll=no
7024 # Check whether --enable-shared was given.
7025 if test "${enable_shared+set}" = set; then :
7026 enableval=$enable_shared; p=${PACKAGE-default}
7027 case $enableval in
7028 yes) enable_shared=yes ;;
7029 no) enable_shared=no ;;
7031 enable_shared=no
7032 # Look at the argument we got. We use all the common list separators.
7033 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7034 for pkg in $enableval; do
7035 IFS="$lt_save_ifs"
7036 if test "X$pkg" = "X$p"; then
7037 enable_shared=yes
7039 done
7040 IFS="$lt_save_ifs"
7042 esac
7043 else
7044 enable_shared=yes
7055 # Check whether --enable-static was given.
7056 if test "${enable_static+set}" = set; then :
7057 enableval=$enable_static; p=${PACKAGE-default}
7058 case $enableval in
7059 yes) enable_static=yes ;;
7060 no) enable_static=no ;;
7062 enable_static=no
7063 # Look at the argument we got. We use all the common list separators.
7064 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7065 for pkg in $enableval; do
7066 IFS="$lt_save_ifs"
7067 if test "X$pkg" = "X$p"; then
7068 enable_static=yes
7070 done
7071 IFS="$lt_save_ifs"
7073 esac
7074 else
7075 enable_static=yes
7087 # Check whether --with-pic was given.
7088 if test "${with_pic+set}" = set; then :
7089 withval=$with_pic; pic_mode="$withval"
7090 else
7091 pic_mode=default
7095 test -z "$pic_mode" && pic_mode=default
7103 # Check whether --enable-fast-install was given.
7104 if test "${enable_fast_install+set}" = set; then :
7105 enableval=$enable_fast_install; p=${PACKAGE-default}
7106 case $enableval in
7107 yes) enable_fast_install=yes ;;
7108 no) enable_fast_install=no ;;
7110 enable_fast_install=no
7111 # Look at the argument we got. We use all the common list separators.
7112 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7113 for pkg in $enableval; do
7114 IFS="$lt_save_ifs"
7115 if test "X$pkg" = "X$p"; then
7116 enable_fast_install=yes
7118 done
7119 IFS="$lt_save_ifs"
7121 esac
7122 else
7123 enable_fast_install=yes
7136 # This can be used to rebuild libtool when needed
7137 LIBTOOL_DEPS="$ltmain"
7139 # Always use our own libtool.
7140 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7167 test -z "$LN_S" && LN_S="ln -s"
7182 if test -n "${ZSH_VERSION+set}" ; then
7183 setopt NO_GLOB_SUBST
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7187 $as_echo_n "checking for objdir... " >&6; }
7188 if test "${lt_cv_objdir+set}" = set; then :
7189 $as_echo_n "(cached) " >&6
7190 else
7191 rm -f .libs 2>/dev/null
7192 mkdir .libs 2>/dev/null
7193 if test -d .libs; then
7194 lt_cv_objdir=.libs
7195 else
7196 # MS-DOS does not allow filenames that begin with a dot.
7197 lt_cv_objdir=_libs
7199 rmdir .libs 2>/dev/null
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7202 $as_echo "$lt_cv_objdir" >&6; }
7203 objdir=$lt_cv_objdir
7209 cat >>confdefs.h <<_ACEOF
7210 #define LT_OBJDIR "$lt_cv_objdir/"
7211 _ACEOF
7216 case $host_os in
7217 aix3*)
7218 # AIX sometimes has problems with the GCC collect2 program. For some
7219 # reason, if we set the COLLECT_NAMES environment variable, the problems
7220 # vanish in a puff of smoke.
7221 if test "X${COLLECT_NAMES+set}" != Xset; then
7222 COLLECT_NAMES=
7223 export COLLECT_NAMES
7226 esac
7228 # Global variables:
7229 ofile=libtool
7230 can_build_shared=yes
7232 # All known linkers require a `.a' archive for static linking (except MSVC,
7233 # which needs '.lib').
7234 libext=a
7236 with_gnu_ld="$lt_cv_prog_gnu_ld"
7238 old_CC="$CC"
7239 old_CFLAGS="$CFLAGS"
7241 # Set sane defaults for various variables
7242 test -z "$CC" && CC=cc
7243 test -z "$LTCC" && LTCC=$CC
7244 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7245 test -z "$LD" && LD=ld
7246 test -z "$ac_objext" && ac_objext=o
7248 for cc_temp in $compiler""; do
7249 case $cc_temp in
7250 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7251 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7252 \-*) ;;
7253 *) break;;
7254 esac
7255 done
7256 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7259 # Only perform the check for file, if the check method requires it
7260 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7261 case $deplibs_check_method in
7262 file_magic*)
7263 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7265 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7266 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7267 $as_echo_n "(cached) " >&6
7268 else
7269 case $MAGIC_CMD in
7270 [\\/*] | ?:[\\/]*)
7271 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7274 lt_save_MAGIC_CMD="$MAGIC_CMD"
7275 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7276 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7277 for ac_dir in $ac_dummy; do
7278 IFS="$lt_save_ifs"
7279 test -z "$ac_dir" && ac_dir=.
7280 if test -f $ac_dir/${ac_tool_prefix}file; then
7281 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7282 if test -n "$file_magic_test_file"; then
7283 case $deplibs_check_method in
7284 "file_magic "*)
7285 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7286 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7287 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7288 $EGREP "$file_magic_regex" > /dev/null; then
7290 else
7291 cat <<_LT_EOF 1>&2
7293 *** Warning: the command libtool uses to detect shared libraries,
7294 *** $file_magic_cmd, produces output that libtool cannot recognize.
7295 *** The result is that libtool may fail to recognize shared libraries
7296 *** as such. This will affect the creation of libtool libraries that
7297 *** depend on shared libraries, but programs linked with such libtool
7298 *** libraries will work regardless of this problem. Nevertheless, you
7299 *** may want to report the problem to your system manager and/or to
7300 *** bug-libtool@gnu.org
7302 _LT_EOF
7303 fi ;;
7304 esac
7306 break
7308 done
7309 IFS="$lt_save_ifs"
7310 MAGIC_CMD="$lt_save_MAGIC_CMD"
7312 esac
7315 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7316 if test -n "$MAGIC_CMD"; then
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7318 $as_echo "$MAGIC_CMD" >&6; }
7319 else
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7321 $as_echo "no" >&6; }
7328 if test -z "$lt_cv_path_MAGIC_CMD"; then
7329 if test -n "$ac_tool_prefix"; then
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7331 $as_echo_n "checking for file... " >&6; }
7332 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7333 $as_echo_n "(cached) " >&6
7334 else
7335 case $MAGIC_CMD in
7336 [\\/*] | ?:[\\/]*)
7337 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7340 lt_save_MAGIC_CMD="$MAGIC_CMD"
7341 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7342 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7343 for ac_dir in $ac_dummy; do
7344 IFS="$lt_save_ifs"
7345 test -z "$ac_dir" && ac_dir=.
7346 if test -f $ac_dir/file; then
7347 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7348 if test -n "$file_magic_test_file"; then
7349 case $deplibs_check_method in
7350 "file_magic "*)
7351 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7352 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7353 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7354 $EGREP "$file_magic_regex" > /dev/null; then
7356 else
7357 cat <<_LT_EOF 1>&2
7359 *** Warning: the command libtool uses to detect shared libraries,
7360 *** $file_magic_cmd, produces output that libtool cannot recognize.
7361 *** The result is that libtool may fail to recognize shared libraries
7362 *** as such. This will affect the creation of libtool libraries that
7363 *** depend on shared libraries, but programs linked with such libtool
7364 *** libraries will work regardless of this problem. Nevertheless, you
7365 *** may want to report the problem to your system manager and/or to
7366 *** bug-libtool@gnu.org
7368 _LT_EOF
7369 fi ;;
7370 esac
7372 break
7374 done
7375 IFS="$lt_save_ifs"
7376 MAGIC_CMD="$lt_save_MAGIC_CMD"
7378 esac
7381 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7382 if test -n "$MAGIC_CMD"; then
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7384 $as_echo "$MAGIC_CMD" >&6; }
7385 else
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7387 $as_echo "no" >&6; }
7391 else
7392 MAGIC_CMD=:
7398 esac
7400 # Use C for the default configuration in the libtool script
7402 lt_save_CC="$CC"
7403 ac_ext=c
7404 ac_cpp='$CPP $CPPFLAGS'
7405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7410 # Source file extension for C test sources.
7411 ac_ext=c
7413 # Object file extension for compiled C test sources.
7414 objext=o
7415 objext=$objext
7417 # Code to be used in simple compile tests
7418 lt_simple_compile_test_code="int some_variable = 0;"
7420 # Code to be used in simple link tests
7421 lt_simple_link_test_code='int main(){return(0);}'
7429 # If no C compiler was specified, use CC.
7430 LTCC=${LTCC-"$CC"}
7432 # If no C compiler flags were specified, use CFLAGS.
7433 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7435 # Allow CC to be a program name with arguments.
7436 compiler=$CC
7438 # Save the default compiler, since it gets overwritten when the other
7439 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7440 compiler_DEFAULT=$CC
7442 # save warnings/boilerplate of simple test code
7443 ac_outfile=conftest.$ac_objext
7444 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7445 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7446 _lt_compiler_boilerplate=`cat conftest.err`
7447 $RM conftest*
7449 ac_outfile=conftest.$ac_objext
7450 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7451 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7452 _lt_linker_boilerplate=`cat conftest.err`
7453 $RM -r conftest*
7456 ## CAVEAT EMPTOR:
7457 ## There is no encapsulation within the following macros, do not change
7458 ## the running order or otherwise move them around unless you know exactly
7459 ## what you are doing...
7460 if test -n "$compiler"; then
7462 lt_prog_compiler_no_builtin_flag=
7464 if test "$GCC" = yes; then
7465 case $cc_basename in
7466 nvcc*)
7467 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7469 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7470 esac
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7473 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7474 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7475 $as_echo_n "(cached) " >&6
7476 else
7477 lt_cv_prog_compiler_rtti_exceptions=no
7478 ac_outfile=conftest.$ac_objext
7479 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7480 lt_compiler_flag="-fno-rtti -fno-exceptions"
7481 # Insert the option either (1) after the last *FLAGS variable, or
7482 # (2) before a word containing "conftest.", or (3) at the end.
7483 # Note that $ac_compile itself does not contain backslashes and begins
7484 # with a dollar sign (not a hyphen), so the echo should work correctly.
7485 # The option is referenced via a variable to avoid confusing sed.
7486 lt_compile=`echo "$ac_compile" | $SED \
7487 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7488 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7489 -e 's:$: $lt_compiler_flag:'`
7490 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7491 (eval "$lt_compile" 2>conftest.err)
7492 ac_status=$?
7493 cat conftest.err >&5
7494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495 if (exit $ac_status) && test -s "$ac_outfile"; then
7496 # The compiler can only warn and ignore the option if not recognized
7497 # So say no if there are warnings other than the usual output.
7498 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7499 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7500 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7501 lt_cv_prog_compiler_rtti_exceptions=yes
7504 $RM conftest*
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7508 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7510 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7511 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7512 else
7523 lt_prog_compiler_wl=
7524 lt_prog_compiler_pic=
7525 lt_prog_compiler_static=
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7528 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7530 if test "$GCC" = yes; then
7531 lt_prog_compiler_wl='-Wl,'
7532 lt_prog_compiler_static='-static'
7534 case $host_os in
7535 aix*)
7536 # All AIX code is PIC.
7537 if test "$host_cpu" = ia64; then
7538 # AIX 5 now supports IA64 processor
7539 lt_prog_compiler_static='-Bstatic'
7543 amigaos*)
7544 case $host_cpu in
7545 powerpc)
7546 # see comment about AmigaOS4 .so support
7547 lt_prog_compiler_pic='-fPIC'
7549 m68k)
7550 # FIXME: we need at least 68020 code to build shared libraries, but
7551 # adding the `-m68020' flag to GCC prevents building anything better,
7552 # like `-m68040'.
7553 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7555 esac
7558 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7559 # PIC is the default for these OSes.
7562 mingw* | cygwin* | pw32* | os2* | cegcc*)
7563 # This hack is so that the source file can tell whether it is being
7564 # built for inclusion in a dll (and should export symbols for example).
7565 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7566 # (--disable-auto-import) libraries
7567 lt_prog_compiler_pic='-DDLL_EXPORT'
7570 darwin* | rhapsody*)
7571 # PIC is the default on this platform
7572 # Common symbols not allowed in MH_DYLIB files
7573 lt_prog_compiler_pic='-fno-common'
7576 haiku*)
7577 # PIC is the default for Haiku.
7578 # The "-static" flag exists, but is broken.
7579 lt_prog_compiler_static=
7582 hpux*)
7583 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7584 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7585 # sets the default TLS model and affects inlining.
7586 case $host_cpu in
7587 hppa*64*)
7588 # +Z the default
7591 lt_prog_compiler_pic='-fPIC'
7593 esac
7596 interix[3-9]*)
7597 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7598 # Instead, we relocate shared libraries at runtime.
7601 msdosdjgpp*)
7602 # Just because we use GCC doesn't mean we suddenly get shared libraries
7603 # on systems that don't support them.
7604 lt_prog_compiler_can_build_shared=no
7605 enable_shared=no
7608 *nto* | *qnx*)
7609 # QNX uses GNU C++, but need to define -shared option too, otherwise
7610 # it will coredump.
7611 lt_prog_compiler_pic='-fPIC -shared'
7614 sysv4*MP*)
7615 if test -d /usr/nec; then
7616 lt_prog_compiler_pic=-Kconform_pic
7621 lt_prog_compiler_pic='-fPIC'
7623 esac
7625 case $cc_basename in
7626 nvcc*) # Cuda Compiler Driver 2.2
7627 lt_prog_compiler_wl='-Xlinker '
7628 lt_prog_compiler_pic='-Xcompiler -fPIC'
7630 esac
7631 else
7632 # PORTME Check for flag to pass linker flags through the system compiler.
7633 case $host_os in
7634 aix*)
7635 lt_prog_compiler_wl='-Wl,'
7636 if test "$host_cpu" = ia64; then
7637 # AIX 5 now supports IA64 processor
7638 lt_prog_compiler_static='-Bstatic'
7639 else
7640 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7644 mingw* | cygwin* | pw32* | os2* | cegcc*)
7645 # This hack is so that the source file can tell whether it is being
7646 # built for inclusion in a dll (and should export symbols for example).
7647 lt_prog_compiler_pic='-DDLL_EXPORT'
7650 hpux9* | hpux10* | hpux11*)
7651 lt_prog_compiler_wl='-Wl,'
7652 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7653 # not for PA HP-UX.
7654 case $host_cpu in
7655 hppa*64*|ia64*)
7656 # +Z the default
7659 lt_prog_compiler_pic='+Z'
7661 esac
7662 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7663 lt_prog_compiler_static='${wl}-a ${wl}archive'
7666 irix5* | irix6* | nonstopux*)
7667 lt_prog_compiler_wl='-Wl,'
7668 # PIC (with -KPIC) is the default.
7669 lt_prog_compiler_static='-non_shared'
7672 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7673 case $cc_basename in
7674 # old Intel for x86_64 which still supported -KPIC.
7675 ecc*)
7676 lt_prog_compiler_wl='-Wl,'
7677 lt_prog_compiler_pic='-KPIC'
7678 lt_prog_compiler_static='-static'
7680 # icc used to be incompatible with GCC.
7681 # ICC 10 doesn't accept -KPIC any more.
7682 icc* | ifort*)
7683 lt_prog_compiler_wl='-Wl,'
7684 lt_prog_compiler_pic='-fPIC'
7685 lt_prog_compiler_static='-static'
7687 # Lahey Fortran 8.1.
7688 lf95*)
7689 lt_prog_compiler_wl='-Wl,'
7690 lt_prog_compiler_pic='--shared'
7691 lt_prog_compiler_static='--static'
7693 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7694 # Portland Group compilers (*not* the Pentium gcc compiler,
7695 # which looks to be a dead project)
7696 lt_prog_compiler_wl='-Wl,'
7697 lt_prog_compiler_pic='-fpic'
7698 lt_prog_compiler_static='-Bstatic'
7700 ccc*)
7701 lt_prog_compiler_wl='-Wl,'
7702 # All Alpha code is PIC.
7703 lt_prog_compiler_static='-non_shared'
7705 xl* | bgxl* | bgf* | mpixl*)
7706 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7707 lt_prog_compiler_wl='-Wl,'
7708 lt_prog_compiler_pic='-qpic'
7709 lt_prog_compiler_static='-qstaticlink'
7712 case `$CC -V 2>&1 | sed 5q` in
7713 *Sun\ F* | *Sun*Fortran*)
7714 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7715 lt_prog_compiler_pic='-KPIC'
7716 lt_prog_compiler_static='-Bstatic'
7717 lt_prog_compiler_wl=''
7719 *Sun\ C*)
7720 # Sun C 5.9
7721 lt_prog_compiler_pic='-KPIC'
7722 lt_prog_compiler_static='-Bstatic'
7723 lt_prog_compiler_wl='-Wl,'
7725 esac
7727 esac
7730 newsos6)
7731 lt_prog_compiler_pic='-KPIC'
7732 lt_prog_compiler_static='-Bstatic'
7735 *nto* | *qnx*)
7736 # QNX uses GNU C++, but need to define -shared option too, otherwise
7737 # it will coredump.
7738 lt_prog_compiler_pic='-fPIC -shared'
7741 osf3* | osf4* | osf5*)
7742 lt_prog_compiler_wl='-Wl,'
7743 # All OSF/1 code is PIC.
7744 lt_prog_compiler_static='-non_shared'
7747 rdos*)
7748 lt_prog_compiler_static='-non_shared'
7751 solaris*)
7752 lt_prog_compiler_pic='-KPIC'
7753 lt_prog_compiler_static='-Bstatic'
7754 case $cc_basename in
7755 f77* | f90* | f95*)
7756 lt_prog_compiler_wl='-Qoption ld ';;
7758 lt_prog_compiler_wl='-Wl,';;
7759 esac
7762 sunos4*)
7763 lt_prog_compiler_wl='-Qoption ld '
7764 lt_prog_compiler_pic='-PIC'
7765 lt_prog_compiler_static='-Bstatic'
7768 sysv4 | sysv4.2uw2* | sysv4.3*)
7769 lt_prog_compiler_wl='-Wl,'
7770 lt_prog_compiler_pic='-KPIC'
7771 lt_prog_compiler_static='-Bstatic'
7774 sysv4*MP*)
7775 if test -d /usr/nec ;then
7776 lt_prog_compiler_pic='-Kconform_pic'
7777 lt_prog_compiler_static='-Bstatic'
7781 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7782 lt_prog_compiler_wl='-Wl,'
7783 lt_prog_compiler_pic='-KPIC'
7784 lt_prog_compiler_static='-Bstatic'
7787 unicos*)
7788 lt_prog_compiler_wl='-Wl,'
7789 lt_prog_compiler_can_build_shared=no
7792 uts4*)
7793 lt_prog_compiler_pic='-pic'
7794 lt_prog_compiler_static='-Bstatic'
7798 lt_prog_compiler_can_build_shared=no
7800 esac
7803 case $host_os in
7804 # For platforms which do not support PIC, -DPIC is meaningless:
7805 *djgpp*)
7806 lt_prog_compiler_pic=
7809 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7811 esac
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7813 $as_echo "$lt_prog_compiler_pic" >&6; }
7821 # Check to make sure the PIC flag actually works.
7823 if test -n "$lt_prog_compiler_pic"; then
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7825 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7826 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7827 $as_echo_n "(cached) " >&6
7828 else
7829 lt_cv_prog_compiler_pic_works=no
7830 ac_outfile=conftest.$ac_objext
7831 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7832 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7833 # Insert the option either (1) after the last *FLAGS variable, or
7834 # (2) before a word containing "conftest.", or (3) at the end.
7835 # Note that $ac_compile itself does not contain backslashes and begins
7836 # with a dollar sign (not a hyphen), so the echo should work correctly.
7837 # The option is referenced via a variable to avoid confusing sed.
7838 lt_compile=`echo "$ac_compile" | $SED \
7839 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7840 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7841 -e 's:$: $lt_compiler_flag:'`
7842 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7843 (eval "$lt_compile" 2>conftest.err)
7844 ac_status=$?
7845 cat conftest.err >&5
7846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847 if (exit $ac_status) && test -s "$ac_outfile"; then
7848 # The compiler can only warn and ignore the option if not recognized
7849 # So say no if there are warnings other than the usual output.
7850 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7851 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7852 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7853 lt_cv_prog_compiler_pic_works=yes
7856 $RM conftest*
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7860 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7862 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7863 case $lt_prog_compiler_pic in
7864 "" | " "*) ;;
7865 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7866 esac
7867 else
7868 lt_prog_compiler_pic=
7869 lt_prog_compiler_can_build_shared=no
7880 # Check to make sure the static flag actually works.
7882 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7884 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7885 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7886 $as_echo_n "(cached) " >&6
7887 else
7888 lt_cv_prog_compiler_static_works=no
7889 save_LDFLAGS="$LDFLAGS"
7890 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7891 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7892 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7893 # The linker can only warn and ignore the option if not recognized
7894 # So say no if there are warnings
7895 if test -s conftest.err; then
7896 # Append any errors to the config.log.
7897 cat conftest.err 1>&5
7898 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7899 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7900 if diff conftest.exp conftest.er2 >/dev/null; then
7901 lt_cv_prog_compiler_static_works=yes
7903 else
7904 lt_cv_prog_compiler_static_works=yes
7907 $RM -r conftest*
7908 LDFLAGS="$save_LDFLAGS"
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7912 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7914 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7916 else
7917 lt_prog_compiler_static=
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7927 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7928 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7929 $as_echo_n "(cached) " >&6
7930 else
7931 lt_cv_prog_compiler_c_o=no
7932 $RM -r conftest 2>/dev/null
7933 mkdir conftest
7934 cd conftest
7935 mkdir out
7936 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7938 lt_compiler_flag="-o out/conftest2.$ac_objext"
7939 # Insert the option either (1) after the last *FLAGS variable, or
7940 # (2) before a word containing "conftest.", or (3) at the end.
7941 # Note that $ac_compile itself does not contain backslashes and begins
7942 # with a dollar sign (not a hyphen), so the echo should work correctly.
7943 lt_compile=`echo "$ac_compile" | $SED \
7944 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7945 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7946 -e 's:$: $lt_compiler_flag:'`
7947 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7948 (eval "$lt_compile" 2>out/conftest.err)
7949 ac_status=$?
7950 cat out/conftest.err >&5
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7953 then
7954 # The compiler can only warn and ignore the option if not recognized
7955 # So say no if there are warnings
7956 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7957 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7958 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7959 lt_cv_prog_compiler_c_o=yes
7962 chmod u+w . 2>&5
7963 $RM conftest*
7964 # SGI C++ compiler will create directory out/ii_files/ for
7965 # template instantiation
7966 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7967 $RM out/* && rmdir out
7968 cd ..
7969 $RM -r conftest
7970 $RM conftest*
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7974 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7982 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7983 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7984 $as_echo_n "(cached) " >&6
7985 else
7986 lt_cv_prog_compiler_c_o=no
7987 $RM -r conftest 2>/dev/null
7988 mkdir conftest
7989 cd conftest
7990 mkdir out
7991 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7993 lt_compiler_flag="-o out/conftest2.$ac_objext"
7994 # Insert the option either (1) after the last *FLAGS variable, or
7995 # (2) before a word containing "conftest.", or (3) at the end.
7996 # Note that $ac_compile itself does not contain backslashes and begins
7997 # with a dollar sign (not a hyphen), so the echo should work correctly.
7998 lt_compile=`echo "$ac_compile" | $SED \
7999 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8000 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8001 -e 's:$: $lt_compiler_flag:'`
8002 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8003 (eval "$lt_compile" 2>out/conftest.err)
8004 ac_status=$?
8005 cat out/conftest.err >&5
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8008 then
8009 # The compiler can only warn and ignore the option if not recognized
8010 # So say no if there are warnings
8011 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8012 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8013 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8014 lt_cv_prog_compiler_c_o=yes
8017 chmod u+w . 2>&5
8018 $RM conftest*
8019 # SGI C++ compiler will create directory out/ii_files/ for
8020 # template instantiation
8021 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8022 $RM out/* && rmdir out
8023 cd ..
8024 $RM -r conftest
8025 $RM conftest*
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8029 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8034 hard_links="nottested"
8035 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8036 # do not overwrite the value of need_locks provided by the user
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8038 $as_echo_n "checking if we can lock with hard links... " >&6; }
8039 hard_links=yes
8040 $RM conftest*
8041 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8042 touch conftest.a
8043 ln conftest.a conftest.b 2>&5 || hard_links=no
8044 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8046 $as_echo "$hard_links" >&6; }
8047 if test "$hard_links" = no; then
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8049 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8050 need_locks=warn
8052 else
8053 need_locks=no
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8062 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8064 runpath_var=
8065 allow_undefined_flag=
8066 always_export_symbols=no
8067 archive_cmds=
8068 archive_expsym_cmds=
8069 compiler_needs_object=no
8070 enable_shared_with_static_runtimes=no
8071 export_dynamic_flag_spec=
8072 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8073 hardcode_automatic=no
8074 hardcode_direct=no
8075 hardcode_direct_absolute=no
8076 hardcode_libdir_flag_spec=
8077 hardcode_libdir_flag_spec_ld=
8078 hardcode_libdir_separator=
8079 hardcode_minus_L=no
8080 hardcode_shlibpath_var=unsupported
8081 inherit_rpath=no
8082 link_all_deplibs=unknown
8083 module_cmds=
8084 module_expsym_cmds=
8085 old_archive_from_new_cmds=
8086 old_archive_from_expsyms_cmds=
8087 thread_safe_flag_spec=
8088 whole_archive_flag_spec=
8089 # include_expsyms should be a list of space-separated symbols to be *always*
8090 # included in the symbol list
8091 include_expsyms=
8092 # exclude_expsyms can be an extended regexp of symbols to exclude
8093 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8094 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8095 # as well as any symbol that contains `d'.
8096 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8097 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8098 # platforms (ab)use it in PIC code, but their linkers get confused if
8099 # the symbol is explicitly referenced. Since portable code cannot
8100 # rely on this symbol name, it's probably fine to never include it in
8101 # preloaded symbol tables.
8102 # Exclude shared library initialization/finalization symbols.
8103 extract_expsyms_cmds=
8105 case $host_os in
8106 cygwin* | mingw* | pw32* | cegcc*)
8107 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8108 # When not using gcc, we currently assume that we are using
8109 # Microsoft Visual C++.
8110 if test "$GCC" != yes; then
8111 with_gnu_ld=no
8114 interix*)
8115 # we just hope/assume this is gcc and not c89 (= MSVC++)
8116 with_gnu_ld=yes
8118 openbsd*)
8119 with_gnu_ld=no
8121 esac
8123 ld_shlibs=yes
8125 # On some targets, GNU ld is compatible enough with the native linker
8126 # that we're better off using the native interface for both.
8127 lt_use_gnu_ld_interface=no
8128 if test "$with_gnu_ld" = yes; then
8129 case $host_os in
8130 aix*)
8131 # The AIX port of GNU ld has always aspired to compatibility
8132 # with the native linker. However, as the warning in the GNU ld
8133 # block says, versions before 2.19.5* couldn't really create working
8134 # shared libraries, regardless of the interface used.
8135 case `$LD -v 2>&1` in
8136 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8137 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8138 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8140 lt_use_gnu_ld_interface=yes
8142 esac
8145 lt_use_gnu_ld_interface=yes
8147 esac
8150 if test "$lt_use_gnu_ld_interface" = yes; then
8151 # If archive_cmds runs LD, not CC, wlarc should be empty
8152 wlarc='${wl}'
8154 # Set some defaults for GNU ld with shared library support. These
8155 # are reset later if shared libraries are not supported. Putting them
8156 # here allows them to be overridden if necessary.
8157 runpath_var=LD_RUN_PATH
8158 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8159 export_dynamic_flag_spec='${wl}--export-dynamic'
8160 # ancient GNU ld didn't support --whole-archive et. al.
8161 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8162 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8163 else
8164 whole_archive_flag_spec=
8166 supports_anon_versioning=no
8167 case `$LD -v 2>&1` in
8168 *GNU\ gold*) supports_anon_versioning=yes ;;
8169 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8170 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8171 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8172 *\ 2.11.*) ;; # other 2.11 versions
8173 *) supports_anon_versioning=yes ;;
8174 esac
8176 # See if GNU ld supports shared libraries.
8177 case $host_os in
8178 aix[3-9]*)
8179 # On AIX/PPC, the GNU linker is very broken
8180 if test "$host_cpu" != ia64; then
8181 ld_shlibs=no
8182 cat <<_LT_EOF 1>&2
8184 *** Warning: the GNU linker, at least up to release 2.19, is reported
8185 *** to be unable to reliably create shared libraries on AIX.
8186 *** Therefore, libtool is disabling shared libraries support. If you
8187 *** really care for shared libraries, you may want to install binutils
8188 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8189 *** You will then need to restart the configuration process.
8191 _LT_EOF
8195 amigaos*)
8196 case $host_cpu in
8197 powerpc)
8198 # see comment about AmigaOS4 .so support
8199 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8200 archive_expsym_cmds=''
8202 m68k)
8203 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)'
8204 hardcode_libdir_flag_spec='-L$libdir'
8205 hardcode_minus_L=yes
8207 esac
8210 beos*)
8211 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8212 allow_undefined_flag=unsupported
8213 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8214 # support --undefined. This deserves some investigation. FIXME
8215 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8216 else
8217 ld_shlibs=no
8221 cygwin* | mingw* | pw32* | cegcc*)
8222 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8223 # as there is no search path for DLLs.
8224 hardcode_libdir_flag_spec='-L$libdir'
8225 export_dynamic_flag_spec='${wl}--export-all-symbols'
8226 allow_undefined_flag=unsupported
8227 always_export_symbols=no
8228 enable_shared_with_static_runtimes=yes
8229 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8231 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8232 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8233 # If the export-symbols file already is a .def file (1st line
8234 # is EXPORTS), use it as is; otherwise, prepend...
8235 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8236 cp $export_symbols $output_objdir/$soname.def;
8237 else
8238 echo EXPORTS > $output_objdir/$soname.def;
8239 cat $export_symbols >> $output_objdir/$soname.def;
8241 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8242 else
8243 ld_shlibs=no
8247 haiku*)
8248 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8249 link_all_deplibs=yes
8252 interix[3-9]*)
8253 hardcode_direct=no
8254 hardcode_shlibpath_var=no
8255 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8256 export_dynamic_flag_spec='${wl}-E'
8257 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8258 # Instead, shared libraries are loaded at an image base (0x10000000 by
8259 # default) and relocated if they conflict, which is a slow very memory
8260 # consuming and fragmenting process. To avoid this, we pick a random,
8261 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8262 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8263 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8264 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'
8267 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8268 tmp_diet=no
8269 if test "$host_os" = linux-dietlibc; then
8270 case $cc_basename in
8271 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8272 esac
8274 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8275 && test "$tmp_diet" = no
8276 then
8277 tmp_addflag=
8278 tmp_sharedflag='-shared'
8279 case $cc_basename,$host_cpu in
8280 pgcc*) # Portland Group C compiler
8281 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'
8282 tmp_addflag=' $pic_flag'
8284 pgf77* | pgf90* | pgf95* | pgfortran*)
8285 # Portland Group f77 and f90 compilers
8286 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'
8287 tmp_addflag=' $pic_flag -Mnomain' ;;
8288 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8289 tmp_addflag=' -i_dynamic' ;;
8290 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8291 tmp_addflag=' -i_dynamic -nofor_main' ;;
8292 ifc* | ifort*) # Intel Fortran compiler
8293 tmp_addflag=' -nofor_main' ;;
8294 lf95*) # Lahey Fortran 8.1
8295 whole_archive_flag_spec=
8296 tmp_sharedflag='--shared' ;;
8297 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8298 tmp_sharedflag='-qmkshrobj'
8299 tmp_addflag= ;;
8300 nvcc*) # Cuda Compiler Driver 2.2
8301 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'
8302 compiler_needs_object=yes
8304 esac
8305 case `$CC -V 2>&1 | sed 5q` in
8306 *Sun\ C*) # Sun C 5.9
8307 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'
8308 compiler_needs_object=yes
8309 tmp_sharedflag='-G' ;;
8310 *Sun\ F*) # Sun Fortran 8.3
8311 tmp_sharedflag='-G' ;;
8312 esac
8313 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8315 if test "x$supports_anon_versioning" = xyes; then
8316 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8317 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8318 echo "local: *; };" >> $output_objdir/$libname.ver~
8319 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8322 case $cc_basename in
8323 xlf* | bgf* | bgxlf* | mpixlf*)
8324 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8325 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8326 hardcode_libdir_flag_spec=
8327 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8328 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8329 if test "x$supports_anon_versioning" = xyes; then
8330 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8331 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8332 echo "local: *; };" >> $output_objdir/$libname.ver~
8333 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8336 esac
8337 else
8338 ld_shlibs=no
8342 netbsd*)
8343 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8344 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8345 wlarc=
8346 else
8347 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8348 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8352 solaris*)
8353 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8354 ld_shlibs=no
8355 cat <<_LT_EOF 1>&2
8357 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8358 *** create shared libraries on Solaris systems. Therefore, libtool
8359 *** is disabling shared libraries support. We urge you to upgrade GNU
8360 *** binutils to release 2.9.1 or newer. Another option is to modify
8361 *** your PATH or compiler configuration so that the native linker is
8362 *** used, and then restart.
8364 _LT_EOF
8365 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8366 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8367 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8368 else
8369 ld_shlibs=no
8373 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8374 case `$LD -v 2>&1` in
8375 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8376 ld_shlibs=no
8377 cat <<_LT_EOF 1>&2
8379 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8380 *** reliably create shared libraries on SCO systems. Therefore, libtool
8381 *** is disabling shared libraries support. We urge you to upgrade GNU
8382 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8383 *** your PATH or compiler configuration so that the native linker is
8384 *** used, and then restart.
8386 _LT_EOF
8389 # For security reasons, it is highly recommended that you always
8390 # use absolute paths for naming shared libraries, and exclude the
8391 # DT_RUNPATH tag from executables and libraries. But doing so
8392 # requires that you compile everything twice, which is a pain.
8393 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8394 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8395 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8396 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8397 else
8398 ld_shlibs=no
8401 esac
8404 sunos4*)
8405 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8406 wlarc=
8407 hardcode_direct=yes
8408 hardcode_shlibpath_var=no
8412 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8413 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8414 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8415 else
8416 ld_shlibs=no
8419 esac
8421 if test "$ld_shlibs" = no; then
8422 runpath_var=
8423 hardcode_libdir_flag_spec=
8424 export_dynamic_flag_spec=
8425 whole_archive_flag_spec=
8427 else
8428 # PORTME fill in a description of your system's linker (not GNU ld)
8429 case $host_os in
8430 aix3*)
8431 allow_undefined_flag=unsupported
8432 always_export_symbols=yes
8433 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'
8434 # Note: this linker hardcodes the directories in LIBPATH if there
8435 # are no directories specified by -L.
8436 hardcode_minus_L=yes
8437 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8438 # Neither direct hardcoding nor static linking is supported with a
8439 # broken collect2.
8440 hardcode_direct=unsupported
8444 aix[4-9]*)
8445 if test "$host_cpu" = ia64; then
8446 # On IA64, the linker does run time linking by default, so we don't
8447 # have to do anything special.
8448 aix_use_runtimelinking=no
8449 exp_sym_flag='-Bexport'
8450 no_entry_flag=""
8451 else
8452 # If we're using GNU nm, then we don't want the "-C" option.
8453 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8454 # Also, AIX nm treats weak defined symbols like other global
8455 # defined symbols, whereas GNU nm marks them as "W".
8456 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8457 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'
8458 else
8459 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8461 aix_use_runtimelinking=no
8463 # Test if we are trying to use run time linking or normal
8464 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8465 # need to do runtime linking.
8466 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8467 for ld_flag in $LDFLAGS; do
8468 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8469 aix_use_runtimelinking=yes
8470 break
8472 done
8474 esac
8476 exp_sym_flag='-bexport'
8477 no_entry_flag='-bnoentry'
8480 # When large executables or shared objects are built, AIX ld can
8481 # have problems creating the table of contents. If linking a library
8482 # or program results in "error TOC overflow" add -mminimal-toc to
8483 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8484 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8486 archive_cmds=''
8487 hardcode_direct=yes
8488 hardcode_direct_absolute=yes
8489 hardcode_libdir_separator=':'
8490 link_all_deplibs=yes
8491 file_list_spec='${wl}-f,'
8493 if test "$GCC" = yes; then
8494 case $host_os in aix4.[012]|aix4.[012].*)
8495 # We only want to do this on AIX 4.2 and lower, the check
8496 # below for broken collect2 doesn't work under 4.3+
8497 collect2name=`${CC} -print-prog-name=collect2`
8498 if test -f "$collect2name" &&
8499 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8500 then
8501 # We have reworked collect2
8503 else
8504 # We have old collect2
8505 hardcode_direct=unsupported
8506 # It fails to find uninstalled libraries when the uninstalled
8507 # path is not listed in the libpath. Setting hardcode_minus_L
8508 # to unsupported forces relinking
8509 hardcode_minus_L=yes
8510 hardcode_libdir_flag_spec='-L$libdir'
8511 hardcode_libdir_separator=
8514 esac
8515 shared_flag='-shared'
8516 if test "$aix_use_runtimelinking" = yes; then
8517 shared_flag="$shared_flag "'${wl}-G'
8519 else
8520 # not using gcc
8521 if test "$host_cpu" = ia64; then
8522 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8523 # chokes on -Wl,-G. The following line is correct:
8524 shared_flag='-G'
8525 else
8526 if test "$aix_use_runtimelinking" = yes; then
8527 shared_flag='${wl}-G'
8528 else
8529 shared_flag='${wl}-bM:SRE'
8534 export_dynamic_flag_spec='${wl}-bexpall'
8535 # It seems that -bexpall does not export symbols beginning with
8536 # underscore (_), so it is better to generate a list of symbols to export.
8537 always_export_symbols=yes
8538 if test "$aix_use_runtimelinking" = yes; then
8539 # Warning - without using the other runtime loading flags (-brtl),
8540 # -berok will link without error, but may produce a broken library.
8541 allow_undefined_flag='-berok'
8542 # Determine the default libpath from the value encoded in an
8543 # empty executable.
8544 if test x$gcc_no_link = xyes; then
8545 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8548 /* end confdefs.h. */
8551 main ()
8555 return 0;
8557 _ACEOF
8558 if ac_fn_c_try_link "$LINENO"; then :
8560 lt_aix_libpath_sed='
8561 /Import File Strings/,/^$/ {
8562 /^0/ {
8563 s/^0 *\(.*\)$/\1/
8567 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8568 # Check for a 64-bit object if we didn't find anything.
8569 if test -z "$aix_libpath"; then
8570 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8573 rm -f core conftest.err conftest.$ac_objext \
8574 conftest$ac_exeext conftest.$ac_ext
8575 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8577 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8578 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"
8579 else
8580 if test "$host_cpu" = ia64; then
8581 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8582 allow_undefined_flag="-z nodefs"
8583 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"
8584 else
8585 # Determine the default libpath from the value encoded in an
8586 # empty executable.
8587 if test x$gcc_no_link = xyes; then
8588 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8591 /* end confdefs.h. */
8594 main ()
8598 return 0;
8600 _ACEOF
8601 if ac_fn_c_try_link "$LINENO"; then :
8603 lt_aix_libpath_sed='
8604 /Import File Strings/,/^$/ {
8605 /^0/ {
8606 s/^0 *\(.*\)$/\1/
8610 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8611 # Check for a 64-bit object if we didn't find anything.
8612 if test -z "$aix_libpath"; then
8613 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8616 rm -f core conftest.err conftest.$ac_objext \
8617 conftest$ac_exeext conftest.$ac_ext
8618 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8620 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8621 # Warning - without using the other run time loading flags,
8622 # -berok will link without error, but may produce a broken library.
8623 no_undefined_flag=' ${wl}-bernotok'
8624 allow_undefined_flag=' ${wl}-berok'
8625 if test "$with_gnu_ld" = yes; then
8626 # We only use this code for GNU lds that support --whole-archive.
8627 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8628 else
8629 # Exported symbols can be pulled into shared objects from archives
8630 whole_archive_flag_spec='$convenience'
8632 archive_cmds_need_lc=yes
8633 # This is similar to how AIX traditionally builds its shared libraries.
8634 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'
8639 amigaos*)
8640 case $host_cpu in
8641 powerpc)
8642 # see comment about AmigaOS4 .so support
8643 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8644 archive_expsym_cmds=''
8646 m68k)
8647 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)'
8648 hardcode_libdir_flag_spec='-L$libdir'
8649 hardcode_minus_L=yes
8651 esac
8654 bsdi[45]*)
8655 export_dynamic_flag_spec=-rdynamic
8658 cygwin* | mingw* | pw32* | cegcc*)
8659 # When not using gcc, we currently assume that we are using
8660 # Microsoft Visual C++.
8661 # hardcode_libdir_flag_spec is actually meaningless, as there is
8662 # no search path for DLLs.
8663 hardcode_libdir_flag_spec=' '
8664 allow_undefined_flag=unsupported
8665 # Tell ltmain to make .lib files, not .a files.
8666 libext=lib
8667 # Tell ltmain to make .dll files, not .so files.
8668 shrext_cmds=".dll"
8669 # FIXME: Setting linknames here is a bad hack.
8670 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8671 # The linker will automatically build a .lib file if we build a DLL.
8672 old_archive_from_new_cmds='true'
8673 # FIXME: Should let the user specify the lib program.
8674 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8675 fix_srcfile_path='`cygpath -w "$srcfile"`'
8676 enable_shared_with_static_runtimes=yes
8679 darwin* | rhapsody*)
8682 archive_cmds_need_lc=no
8683 hardcode_direct=no
8684 hardcode_automatic=yes
8685 hardcode_shlibpath_var=unsupported
8686 if test "$lt_cv_ld_force_load" = "yes"; then
8687 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\"`'
8688 else
8689 whole_archive_flag_spec=''
8691 link_all_deplibs=yes
8692 allow_undefined_flag="$_lt_dar_allow_undefined"
8693 case $cc_basename in
8694 ifort*) _lt_dar_can_shared=yes ;;
8695 *) _lt_dar_can_shared=$GCC ;;
8696 esac
8697 if test "$_lt_dar_can_shared" = "yes"; then
8698 output_verbose_link_cmd=func_echo_all
8699 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8700 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8701 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}"
8702 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}"
8704 else
8705 ld_shlibs=no
8710 dgux*)
8711 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8712 hardcode_libdir_flag_spec='-L$libdir'
8713 hardcode_shlibpath_var=no
8716 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8717 # support. Future versions do this automatically, but an explicit c++rt0.o
8718 # does not break anything, and helps significantly (at the cost of a little
8719 # extra space).
8720 freebsd2.2*)
8721 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8722 hardcode_libdir_flag_spec='-R$libdir'
8723 hardcode_direct=yes
8724 hardcode_shlibpath_var=no
8727 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8728 freebsd2*)
8729 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8730 hardcode_direct=yes
8731 hardcode_minus_L=yes
8732 hardcode_shlibpath_var=no
8735 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8736 freebsd* | dragonfly*)
8737 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8738 hardcode_libdir_flag_spec='-R$libdir'
8739 hardcode_direct=yes
8740 hardcode_shlibpath_var=no
8743 hpux9*)
8744 if test "$GCC" = yes; then
8745 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'
8746 else
8747 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'
8749 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8750 hardcode_libdir_separator=:
8751 hardcode_direct=yes
8753 # hardcode_minus_L: Not really in the search PATH,
8754 # but as the default location of the library.
8755 hardcode_minus_L=yes
8756 export_dynamic_flag_spec='${wl}-E'
8759 hpux10*)
8760 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8761 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8762 else
8763 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8765 if test "$with_gnu_ld" = no; then
8766 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8767 hardcode_libdir_flag_spec_ld='+b $libdir'
8768 hardcode_libdir_separator=:
8769 hardcode_direct=yes
8770 hardcode_direct_absolute=yes
8771 export_dynamic_flag_spec='${wl}-E'
8772 # hardcode_minus_L: Not really in the search PATH,
8773 # but as the default location of the library.
8774 hardcode_minus_L=yes
8778 hpux11*)
8779 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8780 case $host_cpu in
8781 hppa*64*)
8782 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8784 ia64*)
8785 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8788 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8790 esac
8791 else
8792 case $host_cpu in
8793 hppa*64*)
8794 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8796 ia64*)
8797 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8801 # Older versions of the 11.00 compiler do not understand -b yet
8802 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8804 $as_echo_n "checking if $CC understands -b... " >&6; }
8805 if test "${lt_cv_prog_compiler__b+set}" = set; then :
8806 $as_echo_n "(cached) " >&6
8807 else
8808 lt_cv_prog_compiler__b=no
8809 save_LDFLAGS="$LDFLAGS"
8810 LDFLAGS="$LDFLAGS -b"
8811 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8812 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8813 # The linker can only warn and ignore the option if not recognized
8814 # So say no if there are warnings
8815 if test -s conftest.err; then
8816 # Append any errors to the config.log.
8817 cat conftest.err 1>&5
8818 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8819 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8820 if diff conftest.exp conftest.er2 >/dev/null; then
8821 lt_cv_prog_compiler__b=yes
8823 else
8824 lt_cv_prog_compiler__b=yes
8827 $RM -r conftest*
8828 LDFLAGS="$save_LDFLAGS"
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8832 $as_echo "$lt_cv_prog_compiler__b" >&6; }
8834 if test x"$lt_cv_prog_compiler__b" = xyes; then
8835 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8836 else
8837 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8841 esac
8843 if test "$with_gnu_ld" = no; then
8844 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8845 hardcode_libdir_separator=:
8847 case $host_cpu in
8848 hppa*64*|ia64*)
8849 hardcode_direct=no
8850 hardcode_shlibpath_var=no
8853 hardcode_direct=yes
8854 hardcode_direct_absolute=yes
8855 export_dynamic_flag_spec='${wl}-E'
8857 # hardcode_minus_L: Not really in the search PATH,
8858 # but as the default location of the library.
8859 hardcode_minus_L=yes
8861 esac
8865 irix5* | irix6* | nonstopux*)
8866 if test "$GCC" = yes; then
8867 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'
8868 # Try to use the -exported_symbol ld option, if it does not
8869 # work, assume that -exports_file does not work either and
8870 # implicitly export all symbols.
8871 save_LDFLAGS="$LDFLAGS"
8872 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8873 if test x$gcc_no_link = xyes; then
8874 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8877 /* end confdefs.h. */
8878 int foo(void) {}
8879 _ACEOF
8880 if ac_fn_c_try_link "$LINENO"; then :
8881 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'
8884 rm -f core conftest.err conftest.$ac_objext \
8885 conftest$ac_exeext conftest.$ac_ext
8886 LDFLAGS="$save_LDFLAGS"
8887 else
8888 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'
8889 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'
8891 archive_cmds_need_lc='no'
8892 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8893 hardcode_libdir_separator=:
8894 inherit_rpath=yes
8895 link_all_deplibs=yes
8898 netbsd*)
8899 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8900 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8901 else
8902 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8904 hardcode_libdir_flag_spec='-R$libdir'
8905 hardcode_direct=yes
8906 hardcode_shlibpath_var=no
8909 newsos6)
8910 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8911 hardcode_direct=yes
8912 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8913 hardcode_libdir_separator=:
8914 hardcode_shlibpath_var=no
8917 *nto* | *qnx*)
8920 openbsd*)
8921 if test -f /usr/libexec/ld.so; then
8922 hardcode_direct=yes
8923 hardcode_shlibpath_var=no
8924 hardcode_direct_absolute=yes
8925 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8926 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8927 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8928 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8929 export_dynamic_flag_spec='${wl}-E'
8930 else
8931 case $host_os in
8932 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8933 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8934 hardcode_libdir_flag_spec='-R$libdir'
8937 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8938 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8940 esac
8942 else
8943 ld_shlibs=no
8947 os2*)
8948 hardcode_libdir_flag_spec='-L$libdir'
8949 hardcode_minus_L=yes
8950 allow_undefined_flag=unsupported
8951 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'
8952 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8955 osf3*)
8956 if test "$GCC" = yes; then
8957 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8958 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'
8959 else
8960 allow_undefined_flag=' -expect_unresolved \*'
8961 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'
8963 archive_cmds_need_lc='no'
8964 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8965 hardcode_libdir_separator=:
8968 osf4* | osf5*) # as osf3* with the addition of -msym flag
8969 if test "$GCC" = yes; then
8970 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8971 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'
8972 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8973 else
8974 allow_undefined_flag=' -expect_unresolved \*'
8975 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'
8976 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~
8977 $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'
8979 # Both c and cxx compiler support -rpath directly
8980 hardcode_libdir_flag_spec='-rpath $libdir'
8982 archive_cmds_need_lc='no'
8983 hardcode_libdir_separator=:
8986 solaris*)
8987 no_undefined_flag=' -z defs'
8988 if test "$GCC" = yes; then
8989 wlarc='${wl}'
8990 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8991 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8992 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8993 else
8994 case `$CC -V 2>&1` in
8995 *"Compilers 5.0"*)
8996 wlarc=''
8997 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8998 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8999 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9002 wlarc='${wl}'
9003 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9004 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9005 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9007 esac
9009 hardcode_libdir_flag_spec='-R$libdir'
9010 hardcode_shlibpath_var=no
9011 case $host_os in
9012 solaris2.[0-5] | solaris2.[0-5].*) ;;
9014 # The compiler driver will combine and reorder linker options,
9015 # but understands `-z linker_flag'. GCC discards it without `$wl',
9016 # but is careful enough not to reorder.
9017 # Supported since Solaris 2.6 (maybe 2.5.1?)
9018 if test "$GCC" = yes; then
9019 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9020 else
9021 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9024 esac
9025 link_all_deplibs=yes
9028 sunos4*)
9029 if test "x$host_vendor" = xsequent; then
9030 # Use $CC to link under sequent, because it throws in some extra .o
9031 # files that make .init and .fini sections work.
9032 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9033 else
9034 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9036 hardcode_libdir_flag_spec='-L$libdir'
9037 hardcode_direct=yes
9038 hardcode_minus_L=yes
9039 hardcode_shlibpath_var=no
9042 sysv4)
9043 case $host_vendor in
9044 sni)
9045 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9046 hardcode_direct=yes # is this really true???
9048 siemens)
9049 ## LD is ld it makes a PLAMLIB
9050 ## CC just makes a GrossModule.
9051 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9052 reload_cmds='$CC -r -o $output$reload_objs'
9053 hardcode_direct=no
9055 motorola)
9056 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9057 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9059 esac
9060 runpath_var='LD_RUN_PATH'
9061 hardcode_shlibpath_var=no
9064 sysv4.3*)
9065 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9066 hardcode_shlibpath_var=no
9067 export_dynamic_flag_spec='-Bexport'
9070 sysv4*MP*)
9071 if test -d /usr/nec; then
9072 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9073 hardcode_shlibpath_var=no
9074 runpath_var=LD_RUN_PATH
9075 hardcode_runpath_var=yes
9076 ld_shlibs=yes
9080 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9081 no_undefined_flag='${wl}-z,text'
9082 archive_cmds_need_lc=no
9083 hardcode_shlibpath_var=no
9084 runpath_var='LD_RUN_PATH'
9086 if test "$GCC" = yes; then
9087 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9088 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9089 else
9090 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9091 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9095 sysv5* | sco3.2v5* | sco5v6*)
9096 # Note: We can NOT use -z defs as we might desire, because we do not
9097 # link with -lc, and that would cause any symbols used from libc to
9098 # always be unresolved, which means just about no library would
9099 # ever link correctly. If we're not using GNU ld we use -z text
9100 # though, which does catch some bad symbols but isn't as heavy-handed
9101 # as -z defs.
9102 no_undefined_flag='${wl}-z,text'
9103 allow_undefined_flag='${wl}-z,nodefs'
9104 archive_cmds_need_lc=no
9105 hardcode_shlibpath_var=no
9106 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9107 hardcode_libdir_separator=':'
9108 link_all_deplibs=yes
9109 export_dynamic_flag_spec='${wl}-Bexport'
9110 runpath_var='LD_RUN_PATH'
9112 if test "$GCC" = yes; then
9113 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9114 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9115 else
9116 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9117 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9121 uts4*)
9122 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9123 hardcode_libdir_flag_spec='-L$libdir'
9124 hardcode_shlibpath_var=no
9128 ld_shlibs=no
9130 esac
9132 if test x$host_vendor = xsni; then
9133 case $host in
9134 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9135 export_dynamic_flag_spec='${wl}-Blargedynsym'
9137 esac
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9142 $as_echo "$ld_shlibs" >&6; }
9143 test "$ld_shlibs" = no && can_build_shared=no
9145 with_gnu_ld=$with_gnu_ld
9162 # Do we need to explicitly link libc?
9164 case "x$archive_cmds_need_lc" in
9165 x|xyes)
9166 # Assume -lc should be added
9167 archive_cmds_need_lc=yes
9169 if test "$enable_shared" = yes && test "$GCC" = yes; then
9170 case $archive_cmds in
9171 *'~'*)
9172 # FIXME: we may have to deal with multi-command sequences.
9174 '$CC '*)
9175 # Test whether the compiler implicitly links with -lc since on some
9176 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9177 # to ld, don't add -lc before -lgcc.
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9179 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9180 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9181 $as_echo_n "(cached) " >&6
9182 else
9183 $RM conftest*
9184 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9186 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9187 (eval $ac_compile) 2>&5
9188 ac_status=$?
9189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9190 test $ac_status = 0; } 2>conftest.err; then
9191 soname=conftest
9192 lib=conftest
9193 libobjs=conftest.$ac_objext
9194 deplibs=
9195 wl=$lt_prog_compiler_wl
9196 pic_flag=$lt_prog_compiler_pic
9197 compiler_flags=-v
9198 linker_flags=-v
9199 verstring=
9200 output_objdir=.
9201 libname=conftest
9202 lt_save_allow_undefined_flag=$allow_undefined_flag
9203 allow_undefined_flag=
9204 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9205 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9206 ac_status=$?
9207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9208 test $ac_status = 0; }
9209 then
9210 lt_cv_archive_cmds_need_lc=no
9211 else
9212 lt_cv_archive_cmds_need_lc=yes
9214 allow_undefined_flag=$lt_save_allow_undefined_flag
9215 else
9216 cat conftest.err 1>&5
9218 $RM conftest*
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9222 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9223 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9225 esac
9228 esac
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9387 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9389 if test "$GCC" = yes; then
9390 case $host_os in
9391 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9392 *) lt_awk_arg="/^libraries:/" ;;
9393 esac
9394 case $host_os in
9395 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9396 *) lt_sed_strip_eq="s,=/,/,g" ;;
9397 esac
9398 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9399 case $lt_search_path_spec in
9400 *\;*)
9401 # if the path contains ";" then we assume it to be the separator
9402 # otherwise default to the standard path separator (i.e. ":") - it is
9403 # assumed that no part of a normal pathname contains ";" but that should
9404 # okay in the real world where ";" in dirpaths is itself problematic.
9405 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9408 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9410 esac
9411 # Ok, now we have the path, separated by spaces, we can step through it
9412 # and add multilib dir if necessary.
9413 lt_tmp_lt_search_path_spec=
9414 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9415 for lt_sys_path in $lt_search_path_spec; do
9416 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9417 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9418 else
9419 test -d "$lt_sys_path" && \
9420 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9422 done
9423 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9424 BEGIN {RS=" "; FS="/|\n";} {
9425 lt_foo="";
9426 lt_count=0;
9427 for (lt_i = NF; lt_i > 0; lt_i--) {
9428 if ($lt_i != "" && $lt_i != ".") {
9429 if ($lt_i == "..") {
9430 lt_count++;
9431 } else {
9432 if (lt_count == 0) {
9433 lt_foo="/" $lt_i lt_foo;
9434 } else {
9435 lt_count--;
9440 if (lt_foo != "") { lt_freq[lt_foo]++; }
9441 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9443 # AWK program above erroneously prepends '/' to C:/dos/paths
9444 # for these hosts.
9445 case $host_os in
9446 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9447 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9448 esac
9449 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9450 else
9451 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9453 library_names_spec=
9454 libname_spec='lib$name'
9455 soname_spec=
9456 shrext_cmds=".so"
9457 postinstall_cmds=
9458 postuninstall_cmds=
9459 finish_cmds=
9460 finish_eval=
9461 shlibpath_var=
9462 shlibpath_overrides_runpath=unknown
9463 version_type=none
9464 dynamic_linker="$host_os ld.so"
9465 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9466 need_lib_prefix=unknown
9467 hardcode_into_libs=no
9469 # when you set need_version to no, make sure it does not cause -set_version
9470 # flags to be left without arguments
9471 need_version=unknown
9473 case $host_os in
9474 aix3*)
9475 version_type=linux
9476 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9477 shlibpath_var=LIBPATH
9479 # AIX 3 has no versioning support, so we append a major version to the name.
9480 soname_spec='${libname}${release}${shared_ext}$major'
9483 aix[4-9]*)
9484 version_type=linux
9485 need_lib_prefix=no
9486 need_version=no
9487 hardcode_into_libs=yes
9488 if test "$host_cpu" = ia64; then
9489 # AIX 5 supports IA64
9490 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9491 shlibpath_var=LD_LIBRARY_PATH
9492 else
9493 # With GCC up to 2.95.x, collect2 would create an import file
9494 # for dependence libraries. The import file would start with
9495 # the line `#! .'. This would cause the generated library to
9496 # depend on `.', always an invalid library. This was fixed in
9497 # development snapshots of GCC prior to 3.0.
9498 case $host_os in
9499 aix4 | aix4.[01] | aix4.[01].*)
9500 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9501 echo ' yes '
9502 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9504 else
9505 can_build_shared=no
9508 esac
9509 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9510 # soname into executable. Probably we can add versioning support to
9511 # collect2, so additional links can be useful in future.
9512 if test "$aix_use_runtimelinking" = yes; then
9513 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9514 # instead of lib<name>.a to let people know that these are not
9515 # typical AIX shared libraries.
9516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9517 else
9518 # We preserve .a as extension for shared libraries through AIX4.2
9519 # and later when we are not doing run time linking.
9520 library_names_spec='${libname}${release}.a $libname.a'
9521 soname_spec='${libname}${release}${shared_ext}$major'
9523 shlibpath_var=LIBPATH
9527 amigaos*)
9528 case $host_cpu in
9529 powerpc)
9530 # Since July 2007 AmigaOS4 officially supports .so libraries.
9531 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9534 m68k)
9535 library_names_spec='$libname.ixlibrary $libname.a'
9536 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9537 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'
9539 esac
9542 beos*)
9543 library_names_spec='${libname}${shared_ext}'
9544 dynamic_linker="$host_os ld.so"
9545 shlibpath_var=LIBRARY_PATH
9548 bsdi[45]*)
9549 version_type=linux
9550 need_version=no
9551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9552 soname_spec='${libname}${release}${shared_ext}$major'
9553 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9554 shlibpath_var=LD_LIBRARY_PATH
9555 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9556 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9557 # the default ld.so.conf also contains /usr/contrib/lib and
9558 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9559 # libtool to hard-code these into programs
9562 cygwin* | mingw* | pw32* | cegcc*)
9563 version_type=windows
9564 shrext_cmds=".dll"
9565 need_version=no
9566 need_lib_prefix=no
9568 case $GCC,$host_os in
9569 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9570 library_names_spec='$libname.dll.a'
9571 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9572 postinstall_cmds='base_file=`basename \${file}`~
9573 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9574 dldir=$destdir/`dirname \$dlpath`~
9575 test -d \$dldir || mkdir -p \$dldir~
9576 $install_prog $dir/$dlname \$dldir/$dlname~
9577 chmod a+x \$dldir/$dlname~
9578 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9579 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9581 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9582 dlpath=$dir/\$dldll~
9583 $RM \$dlpath'
9584 shlibpath_overrides_runpath=yes
9586 case $host_os in
9587 cygwin*)
9588 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9589 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9591 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9593 mingw* | cegcc*)
9594 # MinGW DLLs use traditional 'lib' prefix
9595 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9597 pw32*)
9598 # pw32 DLLs use 'pw' prefix rather than 'lib'
9599 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9601 esac
9605 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9607 esac
9608 dynamic_linker='Win32 ld.exe'
9609 # FIXME: first we should search . and the directory the executable is in
9610 shlibpath_var=PATH
9613 darwin* | rhapsody*)
9614 dynamic_linker="$host_os dyld"
9615 version_type=darwin
9616 need_lib_prefix=no
9617 need_version=no
9618 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9619 soname_spec='${libname}${release}${major}$shared_ext'
9620 shlibpath_overrides_runpath=yes
9621 shlibpath_var=DYLD_LIBRARY_PATH
9622 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9624 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9625 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9628 dgux*)
9629 version_type=linux
9630 need_lib_prefix=no
9631 need_version=no
9632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9633 soname_spec='${libname}${release}${shared_ext}$major'
9634 shlibpath_var=LD_LIBRARY_PATH
9637 freebsd* | dragonfly*)
9638 # DragonFly does not have aout. When/if they implement a new
9639 # versioning mechanism, adjust this.
9640 if test -x /usr/bin/objformat; then
9641 objformat=`/usr/bin/objformat`
9642 else
9643 case $host_os in
9644 freebsd[123]*) objformat=aout ;;
9645 *) objformat=elf ;;
9646 esac
9648 version_type=freebsd-$objformat
9649 case $version_type in
9650 freebsd-elf*)
9651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9652 need_version=no
9653 need_lib_prefix=no
9655 freebsd-*)
9656 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9657 need_version=yes
9659 esac
9660 shlibpath_var=LD_LIBRARY_PATH
9661 case $host_os in
9662 freebsd2*)
9663 shlibpath_overrides_runpath=yes
9665 freebsd3.[01]* | freebsdelf3.[01]*)
9666 shlibpath_overrides_runpath=yes
9667 hardcode_into_libs=yes
9669 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9670 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9671 shlibpath_overrides_runpath=no
9672 hardcode_into_libs=yes
9674 *) # from 4.6 on, and DragonFly
9675 shlibpath_overrides_runpath=yes
9676 hardcode_into_libs=yes
9678 esac
9681 gnu*)
9682 version_type=linux
9683 need_lib_prefix=no
9684 need_version=no
9685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9686 soname_spec='${libname}${release}${shared_ext}$major'
9687 shlibpath_var=LD_LIBRARY_PATH
9688 hardcode_into_libs=yes
9691 haiku*)
9692 version_type=linux
9693 need_lib_prefix=no
9694 need_version=no
9695 dynamic_linker="$host_os runtime_loader"
9696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9697 soname_spec='${libname}${release}${shared_ext}$major'
9698 shlibpath_var=LIBRARY_PATH
9699 shlibpath_overrides_runpath=yes
9700 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9701 hardcode_into_libs=yes
9704 hpux9* | hpux10* | hpux11*)
9705 # Give a soname corresponding to the major version so that dld.sl refuses to
9706 # link against other versions.
9707 version_type=sunos
9708 need_lib_prefix=no
9709 need_version=no
9710 case $host_cpu in
9711 ia64*)
9712 shrext_cmds='.so'
9713 hardcode_into_libs=yes
9714 dynamic_linker="$host_os dld.so"
9715 shlibpath_var=LD_LIBRARY_PATH
9716 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9718 soname_spec='${libname}${release}${shared_ext}$major'
9719 if test "X$HPUX_IA64_MODE" = X32; then
9720 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9721 else
9722 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9724 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9726 hppa*64*)
9727 shrext_cmds='.sl'
9728 hardcode_into_libs=yes
9729 dynamic_linker="$host_os dld.sl"
9730 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9731 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9733 soname_spec='${libname}${release}${shared_ext}$major'
9734 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9735 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9738 shrext_cmds='.sl'
9739 dynamic_linker="$host_os dld.sl"
9740 shlibpath_var=SHLIB_PATH
9741 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9743 soname_spec='${libname}${release}${shared_ext}$major'
9745 esac
9746 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9747 postinstall_cmds='chmod 555 $lib'
9748 # or fails outright, so override atomically:
9749 install_override_mode=555
9752 interix[3-9]*)
9753 version_type=linux
9754 need_lib_prefix=no
9755 need_version=no
9756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9757 soname_spec='${libname}${release}${shared_ext}$major'
9758 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9759 shlibpath_var=LD_LIBRARY_PATH
9760 shlibpath_overrides_runpath=no
9761 hardcode_into_libs=yes
9764 irix5* | irix6* | nonstopux*)
9765 case $host_os in
9766 nonstopux*) version_type=nonstopux ;;
9768 if test "$lt_cv_prog_gnu_ld" = yes; then
9769 version_type=linux
9770 else
9771 version_type=irix
9772 fi ;;
9773 esac
9774 need_lib_prefix=no
9775 need_version=no
9776 soname_spec='${libname}${release}${shared_ext}$major'
9777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9778 case $host_os in
9779 irix5* | nonstopux*)
9780 libsuff= shlibsuff=
9783 case $LD in # libtool.m4 will add one of these switches to LD
9784 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9785 libsuff= shlibsuff= libmagic=32-bit;;
9786 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9787 libsuff=32 shlibsuff=N32 libmagic=N32;;
9788 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9789 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9790 *) libsuff= shlibsuff= libmagic=never-match;;
9791 esac
9793 esac
9794 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9795 shlibpath_overrides_runpath=no
9796 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9797 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9798 hardcode_into_libs=yes
9801 # No shared lib support for Linux oldld, aout, or coff.
9802 linux*oldld* | linux*aout* | linux*coff*)
9803 dynamic_linker=no
9806 # This must be Linux ELF.
9807 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9808 version_type=linux
9809 need_lib_prefix=no
9810 need_version=no
9811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9812 soname_spec='${libname}${release}${shared_ext}$major'
9813 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9814 shlibpath_var=LD_LIBRARY_PATH
9815 shlibpath_overrides_runpath=no
9817 # Some binutils ld are patched to set DT_RUNPATH
9818 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9819 $as_echo_n "(cached) " >&6
9820 else
9821 lt_cv_shlibpath_overrides_runpath=no
9822 save_LDFLAGS=$LDFLAGS
9823 save_libdir=$libdir
9824 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9825 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9826 if test x$gcc_no_link = xyes; then
9827 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9830 /* end confdefs.h. */
9833 main ()
9837 return 0;
9839 _ACEOF
9840 if ac_fn_c_try_link "$LINENO"; then :
9841 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9842 lt_cv_shlibpath_overrides_runpath=yes
9845 rm -f core conftest.err conftest.$ac_objext \
9846 conftest$ac_exeext conftest.$ac_ext
9847 LDFLAGS=$save_LDFLAGS
9848 libdir=$save_libdir
9852 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9854 # This implies no fast_install, which is unacceptable.
9855 # Some rework will be needed to allow for fast_install
9856 # before this can be enabled.
9857 hardcode_into_libs=yes
9859 # Append ld.so.conf contents to the search path
9860 if test -f /etc/ld.so.conf; then
9861 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' ' '`
9862 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9865 # We used to test for /lib/ld.so.1 and disable shared libraries on
9866 # powerpc, because MkLinux only supported shared libraries with the
9867 # GNU dynamic linker. Since this was broken with cross compilers,
9868 # most powerpc-linux boxes support dynamic linking these days and
9869 # people can always --disable-shared, the test was removed, and we
9870 # assume the GNU/Linux dynamic linker is in use.
9871 dynamic_linker='GNU/Linux ld.so'
9874 netbsd*)
9875 version_type=sunos
9876 need_lib_prefix=no
9877 need_version=no
9878 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9880 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9881 dynamic_linker='NetBSD (a.out) ld.so'
9882 else
9883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9884 soname_spec='${libname}${release}${shared_ext}$major'
9885 dynamic_linker='NetBSD ld.elf_so'
9887 shlibpath_var=LD_LIBRARY_PATH
9888 shlibpath_overrides_runpath=yes
9889 hardcode_into_libs=yes
9892 newsos6)
9893 version_type=linux
9894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9895 shlibpath_var=LD_LIBRARY_PATH
9896 shlibpath_overrides_runpath=yes
9899 *nto* | *qnx*)
9900 version_type=qnx
9901 need_lib_prefix=no
9902 need_version=no
9903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9904 soname_spec='${libname}${release}${shared_ext}$major'
9905 shlibpath_var=LD_LIBRARY_PATH
9906 shlibpath_overrides_runpath=no
9907 hardcode_into_libs=yes
9908 dynamic_linker='ldqnx.so'
9911 openbsd*)
9912 version_type=sunos
9913 sys_lib_dlsearch_path_spec="/usr/lib"
9914 need_lib_prefix=no
9915 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9916 case $host_os in
9917 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9918 *) need_version=no ;;
9919 esac
9920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9921 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9922 shlibpath_var=LD_LIBRARY_PATH
9923 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9924 case $host_os in
9925 openbsd2.[89] | openbsd2.[89].*)
9926 shlibpath_overrides_runpath=no
9929 shlibpath_overrides_runpath=yes
9931 esac
9932 else
9933 shlibpath_overrides_runpath=yes
9937 os2*)
9938 libname_spec='$name'
9939 shrext_cmds=".dll"
9940 need_lib_prefix=no
9941 library_names_spec='$libname${shared_ext} $libname.a'
9942 dynamic_linker='OS/2 ld.exe'
9943 shlibpath_var=LIBPATH
9946 osf3* | osf4* | osf5*)
9947 version_type=osf
9948 need_lib_prefix=no
9949 need_version=no
9950 soname_spec='${libname}${release}${shared_ext}$major'
9951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9952 shlibpath_var=LD_LIBRARY_PATH
9953 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9954 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9957 rdos*)
9958 dynamic_linker=no
9961 solaris*)
9962 version_type=linux
9963 need_lib_prefix=no
9964 need_version=no
9965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9966 soname_spec='${libname}${release}${shared_ext}$major'
9967 shlibpath_var=LD_LIBRARY_PATH
9968 shlibpath_overrides_runpath=yes
9969 hardcode_into_libs=yes
9970 # ldd complains unless libraries are executable
9971 postinstall_cmds='chmod +x $lib'
9974 sunos4*)
9975 version_type=sunos
9976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9977 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9978 shlibpath_var=LD_LIBRARY_PATH
9979 shlibpath_overrides_runpath=yes
9980 if test "$with_gnu_ld" = yes; then
9981 need_lib_prefix=no
9983 need_version=yes
9986 sysv4 | sysv4.3*)
9987 version_type=linux
9988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9989 soname_spec='${libname}${release}${shared_ext}$major'
9990 shlibpath_var=LD_LIBRARY_PATH
9991 case $host_vendor in
9992 sni)
9993 shlibpath_overrides_runpath=no
9994 need_lib_prefix=no
9995 runpath_var=LD_RUN_PATH
9997 siemens)
9998 need_lib_prefix=no
10000 motorola)
10001 need_lib_prefix=no
10002 need_version=no
10003 shlibpath_overrides_runpath=no
10004 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10006 esac
10009 sysv4*MP*)
10010 if test -d /usr/nec ;then
10011 version_type=linux
10012 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10013 soname_spec='$libname${shared_ext}.$major'
10014 shlibpath_var=LD_LIBRARY_PATH
10018 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10019 version_type=freebsd-elf
10020 need_lib_prefix=no
10021 need_version=no
10022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10023 soname_spec='${libname}${release}${shared_ext}$major'
10024 shlibpath_var=LD_LIBRARY_PATH
10025 shlibpath_overrides_runpath=yes
10026 hardcode_into_libs=yes
10027 if test "$with_gnu_ld" = yes; then
10028 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10029 else
10030 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10031 case $host_os in
10032 sco3.2v5*)
10033 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10035 esac
10037 sys_lib_dlsearch_path_spec='/usr/lib'
10040 tpf*)
10041 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10042 version_type=linux
10043 need_lib_prefix=no
10044 need_version=no
10045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10046 shlibpath_var=LD_LIBRARY_PATH
10047 shlibpath_overrides_runpath=no
10048 hardcode_into_libs=yes
10051 uts4*)
10052 version_type=linux
10053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10054 soname_spec='${libname}${release}${shared_ext}$major'
10055 shlibpath_var=LD_LIBRARY_PATH
10059 dynamic_linker=no
10061 esac
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10063 $as_echo "$dynamic_linker" >&6; }
10064 test "$dynamic_linker" = no && can_build_shared=no
10066 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10067 if test "$GCC" = yes; then
10068 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10071 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10072 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10074 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10075 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10170 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10171 hardcode_action=
10172 if test -n "$hardcode_libdir_flag_spec" ||
10173 test -n "$runpath_var" ||
10174 test "X$hardcode_automatic" = "Xyes" ; then
10176 # We can hardcode non-existent directories.
10177 if test "$hardcode_direct" != no &&
10178 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10179 # have to relink, otherwise we might link with an installed library
10180 # when we should be linking with a yet-to-be-installed one
10181 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10182 test "$hardcode_minus_L" != no; then
10183 # Linking always hardcodes the temporary library directory.
10184 hardcode_action=relink
10185 else
10186 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10187 hardcode_action=immediate
10189 else
10190 # We cannot hardcode anything, or else we can only hardcode existing
10191 # directories.
10192 hardcode_action=unsupported
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10195 $as_echo "$hardcode_action" >&6; }
10197 if test "$hardcode_action" = relink ||
10198 test "$inherit_rpath" = yes; then
10199 # Fast installation is not supported
10200 enable_fast_install=no
10201 elif test "$shlibpath_overrides_runpath" = yes ||
10202 test "$enable_shared" = no; then
10203 # Fast installation is not necessary
10204 enable_fast_install=needless
10212 if test "x$enable_dlopen" != xyes; then
10213 enable_dlopen=unknown
10214 enable_dlopen_self=unknown
10215 enable_dlopen_self_static=unknown
10216 else
10217 lt_cv_dlopen=no
10218 lt_cv_dlopen_libs=
10220 case $host_os in
10221 beos*)
10222 lt_cv_dlopen="load_add_on"
10223 lt_cv_dlopen_libs=
10224 lt_cv_dlopen_self=yes
10227 mingw* | pw32* | cegcc*)
10228 lt_cv_dlopen="LoadLibrary"
10229 lt_cv_dlopen_libs=
10232 cygwin*)
10233 lt_cv_dlopen="dlopen"
10234 lt_cv_dlopen_libs=
10237 darwin*)
10238 # if libdl is installed we need to link against it
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10240 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10241 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10242 $as_echo_n "(cached) " >&6
10243 else
10244 ac_check_lib_save_LIBS=$LIBS
10245 LIBS="-ldl $LIBS"
10246 if test x$gcc_no_link = xyes; then
10247 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10250 /* end confdefs.h. */
10252 /* Override any GCC internal prototype to avoid an error.
10253 Use char because int might match the return type of a GCC
10254 builtin and then its argument prototype would still apply. */
10255 #ifdef __cplusplus
10256 extern "C"
10257 #endif
10258 char dlopen ();
10260 main ()
10262 return dlopen ();
10264 return 0;
10266 _ACEOF
10267 if ac_fn_c_try_link "$LINENO"; then :
10268 ac_cv_lib_dl_dlopen=yes
10269 else
10270 ac_cv_lib_dl_dlopen=no
10272 rm -f core conftest.err conftest.$ac_objext \
10273 conftest$ac_exeext conftest.$ac_ext
10274 LIBS=$ac_check_lib_save_LIBS
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10277 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10278 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10279 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10280 else
10282 lt_cv_dlopen="dyld"
10283 lt_cv_dlopen_libs=
10284 lt_cv_dlopen_self=yes
10291 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10292 if test "x$ac_cv_func_shl_load" = x""yes; then :
10293 lt_cv_dlopen="shl_load"
10294 else
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10296 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10297 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10298 $as_echo_n "(cached) " >&6
10299 else
10300 ac_check_lib_save_LIBS=$LIBS
10301 LIBS="-ldld $LIBS"
10302 if test x$gcc_no_link = xyes; then
10303 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10306 /* end confdefs.h. */
10308 /* Override any GCC internal prototype to avoid an error.
10309 Use char because int might match the return type of a GCC
10310 builtin and then its argument prototype would still apply. */
10311 #ifdef __cplusplus
10312 extern "C"
10313 #endif
10314 char shl_load ();
10316 main ()
10318 return shl_load ();
10320 return 0;
10322 _ACEOF
10323 if ac_fn_c_try_link "$LINENO"; then :
10324 ac_cv_lib_dld_shl_load=yes
10325 else
10326 ac_cv_lib_dld_shl_load=no
10328 rm -f core conftest.err conftest.$ac_objext \
10329 conftest$ac_exeext conftest.$ac_ext
10330 LIBS=$ac_check_lib_save_LIBS
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10333 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10334 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10335 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10336 else
10337 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10338 if test "x$ac_cv_func_dlopen" = x""yes; then :
10339 lt_cv_dlopen="dlopen"
10340 else
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10342 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10343 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10344 $as_echo_n "(cached) " >&6
10345 else
10346 ac_check_lib_save_LIBS=$LIBS
10347 LIBS="-ldl $LIBS"
10348 if test x$gcc_no_link = xyes; then
10349 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10352 /* end confdefs.h. */
10354 /* Override any GCC internal prototype to avoid an error.
10355 Use char because int might match the return type of a GCC
10356 builtin and then its argument prototype would still apply. */
10357 #ifdef __cplusplus
10358 extern "C"
10359 #endif
10360 char dlopen ();
10362 main ()
10364 return dlopen ();
10366 return 0;
10368 _ACEOF
10369 if ac_fn_c_try_link "$LINENO"; then :
10370 ac_cv_lib_dl_dlopen=yes
10371 else
10372 ac_cv_lib_dl_dlopen=no
10374 rm -f core conftest.err conftest.$ac_objext \
10375 conftest$ac_exeext conftest.$ac_ext
10376 LIBS=$ac_check_lib_save_LIBS
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10379 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10380 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10381 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10382 else
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10384 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10385 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10386 $as_echo_n "(cached) " >&6
10387 else
10388 ac_check_lib_save_LIBS=$LIBS
10389 LIBS="-lsvld $LIBS"
10390 if test x$gcc_no_link = xyes; then
10391 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10394 /* end confdefs.h. */
10396 /* Override any GCC internal prototype to avoid an error.
10397 Use char because int might match the return type of a GCC
10398 builtin and then its argument prototype would still apply. */
10399 #ifdef __cplusplus
10400 extern "C"
10401 #endif
10402 char dlopen ();
10404 main ()
10406 return dlopen ();
10408 return 0;
10410 _ACEOF
10411 if ac_fn_c_try_link "$LINENO"; then :
10412 ac_cv_lib_svld_dlopen=yes
10413 else
10414 ac_cv_lib_svld_dlopen=no
10416 rm -f core conftest.err conftest.$ac_objext \
10417 conftest$ac_exeext conftest.$ac_ext
10418 LIBS=$ac_check_lib_save_LIBS
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10421 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10422 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10423 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10424 else
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10426 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10427 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10428 $as_echo_n "(cached) " >&6
10429 else
10430 ac_check_lib_save_LIBS=$LIBS
10431 LIBS="-ldld $LIBS"
10432 if test x$gcc_no_link = xyes; then
10433 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10436 /* end confdefs.h. */
10438 /* Override any GCC internal prototype to avoid an error.
10439 Use char because int might match the return type of a GCC
10440 builtin and then its argument prototype would still apply. */
10441 #ifdef __cplusplus
10442 extern "C"
10443 #endif
10444 char dld_link ();
10446 main ()
10448 return dld_link ();
10450 return 0;
10452 _ACEOF
10453 if ac_fn_c_try_link "$LINENO"; then :
10454 ac_cv_lib_dld_dld_link=yes
10455 else
10456 ac_cv_lib_dld_dld_link=no
10458 rm -f core conftest.err conftest.$ac_objext \
10459 conftest$ac_exeext conftest.$ac_ext
10460 LIBS=$ac_check_lib_save_LIBS
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10463 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10464 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10465 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10484 esac
10486 if test "x$lt_cv_dlopen" != xno; then
10487 enable_dlopen=yes
10488 else
10489 enable_dlopen=no
10492 case $lt_cv_dlopen in
10493 dlopen)
10494 save_CPPFLAGS="$CPPFLAGS"
10495 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10497 save_LDFLAGS="$LDFLAGS"
10498 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10500 save_LIBS="$LIBS"
10501 LIBS="$lt_cv_dlopen_libs $LIBS"
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10504 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10505 if test "${lt_cv_dlopen_self+set}" = set; then :
10506 $as_echo_n "(cached) " >&6
10507 else
10508 if test "$cross_compiling" = yes; then :
10509 lt_cv_dlopen_self=cross
10510 else
10511 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10512 lt_status=$lt_dlunknown
10513 cat > conftest.$ac_ext <<_LT_EOF
10514 #line 10514 "configure"
10515 #include "confdefs.h"
10517 #if HAVE_DLFCN_H
10518 #include <dlfcn.h>
10519 #endif
10521 #include <stdio.h>
10523 #ifdef RTLD_GLOBAL
10524 # define LT_DLGLOBAL RTLD_GLOBAL
10525 #else
10526 # ifdef DL_GLOBAL
10527 # define LT_DLGLOBAL DL_GLOBAL
10528 # else
10529 # define LT_DLGLOBAL 0
10530 # endif
10531 #endif
10533 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10534 find out it does not work in some platform. */
10535 #ifndef LT_DLLAZY_OR_NOW
10536 # ifdef RTLD_LAZY
10537 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10538 # else
10539 # ifdef DL_LAZY
10540 # define LT_DLLAZY_OR_NOW DL_LAZY
10541 # else
10542 # ifdef RTLD_NOW
10543 # define LT_DLLAZY_OR_NOW RTLD_NOW
10544 # else
10545 # ifdef DL_NOW
10546 # define LT_DLLAZY_OR_NOW DL_NOW
10547 # else
10548 # define LT_DLLAZY_OR_NOW 0
10549 # endif
10550 # endif
10551 # endif
10552 # endif
10553 #endif
10555 /* When -fvisbility=hidden is used, assume the code has been annotated
10556 correspondingly for the symbols needed. */
10557 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10558 void fnord () __attribute__((visibility("default")));
10559 #endif
10561 void fnord () { int i=42; }
10562 int main ()
10564 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10565 int status = $lt_dlunknown;
10567 if (self)
10569 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10570 else
10572 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10573 else puts (dlerror ());
10575 /* dlclose (self); */
10577 else
10578 puts (dlerror ());
10580 return status;
10582 _LT_EOF
10583 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10584 (eval $ac_link) 2>&5
10585 ac_status=$?
10586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10587 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10588 (./conftest; exit; ) >&5 2>/dev/null
10589 lt_status=$?
10590 case x$lt_status in
10591 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10592 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10593 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10594 esac
10595 else :
10596 # compilation failed
10597 lt_cv_dlopen_self=no
10600 rm -fr conftest*
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10605 $as_echo "$lt_cv_dlopen_self" >&6; }
10607 if test "x$lt_cv_dlopen_self" = xyes; then
10608 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10610 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10611 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10612 $as_echo_n "(cached) " >&6
10613 else
10614 if test "$cross_compiling" = yes; then :
10615 lt_cv_dlopen_self_static=cross
10616 else
10617 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10618 lt_status=$lt_dlunknown
10619 cat > conftest.$ac_ext <<_LT_EOF
10620 #line 10620 "configure"
10621 #include "confdefs.h"
10623 #if HAVE_DLFCN_H
10624 #include <dlfcn.h>
10625 #endif
10627 #include <stdio.h>
10629 #ifdef RTLD_GLOBAL
10630 # define LT_DLGLOBAL RTLD_GLOBAL
10631 #else
10632 # ifdef DL_GLOBAL
10633 # define LT_DLGLOBAL DL_GLOBAL
10634 # else
10635 # define LT_DLGLOBAL 0
10636 # endif
10637 #endif
10639 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10640 find out it does not work in some platform. */
10641 #ifndef LT_DLLAZY_OR_NOW
10642 # ifdef RTLD_LAZY
10643 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10644 # else
10645 # ifdef DL_LAZY
10646 # define LT_DLLAZY_OR_NOW DL_LAZY
10647 # else
10648 # ifdef RTLD_NOW
10649 # define LT_DLLAZY_OR_NOW RTLD_NOW
10650 # else
10651 # ifdef DL_NOW
10652 # define LT_DLLAZY_OR_NOW DL_NOW
10653 # else
10654 # define LT_DLLAZY_OR_NOW 0
10655 # endif
10656 # endif
10657 # endif
10658 # endif
10659 #endif
10661 /* When -fvisbility=hidden is used, assume the code has been annotated
10662 correspondingly for the symbols needed. */
10663 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10664 void fnord () __attribute__((visibility("default")));
10665 #endif
10667 void fnord () { int i=42; }
10668 int main ()
10670 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10671 int status = $lt_dlunknown;
10673 if (self)
10675 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10676 else
10678 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10679 else puts (dlerror ());
10681 /* dlclose (self); */
10683 else
10684 puts (dlerror ());
10686 return status;
10688 _LT_EOF
10689 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10690 (eval $ac_link) 2>&5
10691 ac_status=$?
10692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10693 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10694 (./conftest; exit; ) >&5 2>/dev/null
10695 lt_status=$?
10696 case x$lt_status in
10697 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10698 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10699 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10700 esac
10701 else :
10702 # compilation failed
10703 lt_cv_dlopen_self_static=no
10706 rm -fr conftest*
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10711 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10714 CPPFLAGS="$save_CPPFLAGS"
10715 LDFLAGS="$save_LDFLAGS"
10716 LIBS="$save_LIBS"
10718 esac
10720 case $lt_cv_dlopen_self in
10721 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10722 *) enable_dlopen_self=unknown ;;
10723 esac
10725 case $lt_cv_dlopen_self_static in
10726 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10727 *) enable_dlopen_self_static=unknown ;;
10728 esac
10747 striplib=
10748 old_striplib=
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10750 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10751 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10752 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10753 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10755 $as_echo "yes" >&6; }
10756 else
10757 # FIXME - insert some real tests, host_os isn't really good enough
10758 case $host_os in
10759 darwin*)
10760 if test -n "$STRIP" ; then
10761 striplib="$STRIP -x"
10762 old_striplib="$STRIP -S"
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10764 $as_echo "yes" >&6; }
10765 else
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10767 $as_echo "no" >&6; }
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10772 $as_echo "no" >&6; }
10774 esac
10788 # Report which library types will actually be built
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10790 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10792 $as_echo "$can_build_shared" >&6; }
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10795 $as_echo_n "checking whether to build shared libraries... " >&6; }
10796 test "$can_build_shared" = "no" && enable_shared=no
10798 # On AIX, shared libraries and static libraries use the same namespace, and
10799 # are all built from PIC.
10800 case $host_os in
10801 aix3*)
10802 test "$enable_shared" = yes && enable_static=no
10803 if test -n "$RANLIB"; then
10804 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10805 postinstall_cmds='$RANLIB $lib'
10809 aix[4-9]*)
10810 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10811 test "$enable_shared" = yes && enable_static=no
10814 esac
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10816 $as_echo "$enable_shared" >&6; }
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10819 $as_echo_n "checking whether to build static libraries... " >&6; }
10820 # Make sure either enable_shared or enable_static is yes.
10821 test "$enable_shared" = yes || enable_static=yes
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10823 $as_echo "$enable_static" >&6; }
10829 ac_ext=c
10830 ac_cpp='$CPP $CPPFLAGS'
10831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10835 CC="$lt_save_CC"
10849 ac_config_commands="$ac_config_commands libtool"
10854 # Only expand once:
10860 case $host in
10861 *-cygwin* | *-mingw*)
10862 # 'host' will be top-level target in the case of a target lib,
10863 # we must compare to with_cross_host to decide if this is a native
10864 # or cross-compiler and select where to install dlls appropriately.
10865 if test -n "$with_cross_host" &&
10866 test x"$with_cross_host" != x"no"; then
10867 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
10868 else
10869 lt_host_flags='-no-undefined -bindir "$(bindir)"';
10873 lt_host_flags=
10875 esac
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
10884 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
10885 # Check whether --enable-maintainer-mode was given.
10886 if test "${enable_maintainer_mode+set}" = set; then :
10887 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
10888 else
10889 USE_MAINTAINER_MODE=no
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
10893 $as_echo "$USE_MAINTAINER_MODE" >&6; }
10894 if test $USE_MAINTAINER_MODE = yes; then
10895 MAINTAINER_MODE_TRUE=
10896 MAINTAINER_MODE_FALSE='#'
10897 else
10898 MAINTAINER_MODE_TRUE='#'
10899 MAINTAINER_MODE_FALSE=
10902 MAINT=$MAINTAINER_MODE_TRUE
10905 # Default to --enable-multilib
10906 # Check whether --enable-multilib was given.
10907 if test "${enable_multilib+set}" = set; then :
10908 enableval=$enable_multilib; case "$enableval" in
10909 yes) multilib=yes ;;
10910 no) multilib=no ;;
10911 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
10912 esac
10913 else
10914 multilib=yes
10918 # We may get other options which we leave undocumented:
10919 # --with-target-subdir, --with-multisrctop, --with-multisubdir
10920 # See config-ml.in if you want the gory details.
10922 if test "$srcdir" = "."; then
10923 if test "$with_target_subdir" != "."; then
10924 multi_basedir="$srcdir/$with_multisrctop../.."
10925 else
10926 multi_basedir="$srcdir/$with_multisrctop.."
10928 else
10929 multi_basedir="$srcdir/.."
10933 # Even if the default multilib is not a cross compilation,
10934 # it may be that some of the other multilibs are.
10935 if test $cross_compiling = no && test $multilib = yes \
10936 && test "x${with_multisubdir}" != x ; then
10937 cross_compiling=maybe
10940 ac_config_commands="$ac_config_commands default-1"
10943 ac_ext=c
10944 ac_cpp='$CPP $CPPFLAGS'
10945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10949 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
10950 # We must force CC to /not/ be precious variables; otherwise
10951 # the wrong, non-multilib-adjusted value will be used in multilibs.
10952 # As a side effect, we have to subst CFLAGS ourselves.
10956 ac_ext=c
10957 ac_cpp='$CPP $CPPFLAGS'
10958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10961 if test -n "$ac_tool_prefix"; then
10962 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10963 set dummy ${ac_tool_prefix}gcc; ac_word=$2
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10965 $as_echo_n "checking for $ac_word... " >&6; }
10966 if test "${ac_cv_prog_CC+set}" = set; then :
10967 $as_echo_n "(cached) " >&6
10968 else
10969 if test -n "$CC"; then
10970 ac_cv_prog_CC="$CC" # Let the user override the test.
10971 else
10972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10973 for as_dir in $PATH
10975 IFS=$as_save_IFS
10976 test -z "$as_dir" && as_dir=.
10977 for ac_exec_ext in '' $ac_executable_extensions; do
10978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10979 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10981 break 2
10983 done
10984 done
10985 IFS=$as_save_IFS
10989 CC=$ac_cv_prog_CC
10990 if test -n "$CC"; then
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10992 $as_echo "$CC" >&6; }
10993 else
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10995 $as_echo "no" >&6; }
11000 if test -z "$ac_cv_prog_CC"; then
11001 ac_ct_CC=$CC
11002 # Extract the first word of "gcc", so it can be a program name with args.
11003 set dummy gcc; ac_word=$2
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11005 $as_echo_n "checking for $ac_word... " >&6; }
11006 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11007 $as_echo_n "(cached) " >&6
11008 else
11009 if test -n "$ac_ct_CC"; then
11010 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11011 else
11012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11013 for as_dir in $PATH
11015 IFS=$as_save_IFS
11016 test -z "$as_dir" && as_dir=.
11017 for ac_exec_ext in '' $ac_executable_extensions; do
11018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11019 ac_cv_prog_ac_ct_CC="gcc"
11020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11021 break 2
11023 done
11024 done
11025 IFS=$as_save_IFS
11029 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11030 if test -n "$ac_ct_CC"; then
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11032 $as_echo "$ac_ct_CC" >&6; }
11033 else
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11035 $as_echo "no" >&6; }
11038 if test "x$ac_ct_CC" = x; then
11039 CC=""
11040 else
11041 case $cross_compiling:$ac_tool_warned in
11042 yes:)
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11044 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11045 ac_tool_warned=yes ;;
11046 esac
11047 CC=$ac_ct_CC
11049 else
11050 CC="$ac_cv_prog_CC"
11053 if test -z "$CC"; then
11054 if test -n "$ac_tool_prefix"; then
11055 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11056 set dummy ${ac_tool_prefix}cc; ac_word=$2
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11058 $as_echo_n "checking for $ac_word... " >&6; }
11059 if test "${ac_cv_prog_CC+set}" = set; then :
11060 $as_echo_n "(cached) " >&6
11061 else
11062 if test -n "$CC"; then
11063 ac_cv_prog_CC="$CC" # Let the user override the test.
11064 else
11065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11066 for as_dir in $PATH
11068 IFS=$as_save_IFS
11069 test -z "$as_dir" && as_dir=.
11070 for ac_exec_ext in '' $ac_executable_extensions; do
11071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11072 ac_cv_prog_CC="${ac_tool_prefix}cc"
11073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11074 break 2
11076 done
11077 done
11078 IFS=$as_save_IFS
11082 CC=$ac_cv_prog_CC
11083 if test -n "$CC"; then
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11085 $as_echo "$CC" >&6; }
11086 else
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11088 $as_echo "no" >&6; }
11094 if test -z "$CC"; then
11095 # Extract the first word of "cc", so it can be a program name with args.
11096 set dummy cc; ac_word=$2
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11098 $as_echo_n "checking for $ac_word... " >&6; }
11099 if test "${ac_cv_prog_CC+set}" = set; then :
11100 $as_echo_n "(cached) " >&6
11101 else
11102 if test -n "$CC"; then
11103 ac_cv_prog_CC="$CC" # Let the user override the test.
11104 else
11105 ac_prog_rejected=no
11106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11107 for as_dir in $PATH
11109 IFS=$as_save_IFS
11110 test -z "$as_dir" && as_dir=.
11111 for ac_exec_ext in '' $ac_executable_extensions; do
11112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11113 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11114 ac_prog_rejected=yes
11115 continue
11117 ac_cv_prog_CC="cc"
11118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11119 break 2
11121 done
11122 done
11123 IFS=$as_save_IFS
11125 if test $ac_prog_rejected = yes; then
11126 # We found a bogon in the path, so make sure we never use it.
11127 set dummy $ac_cv_prog_CC
11128 shift
11129 if test $# != 0; then
11130 # We chose a different compiler from the bogus one.
11131 # However, it has the same basename, so the bogon will be chosen
11132 # first if we set CC to just the basename; use the full file name.
11133 shift
11134 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11139 CC=$ac_cv_prog_CC
11140 if test -n "$CC"; then
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11142 $as_echo "$CC" >&6; }
11143 else
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11145 $as_echo "no" >&6; }
11150 if test -z "$CC"; then
11151 if test -n "$ac_tool_prefix"; then
11152 for ac_prog in cl.exe
11154 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11155 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11157 $as_echo_n "checking for $ac_word... " >&6; }
11158 if test "${ac_cv_prog_CC+set}" = set; then :
11159 $as_echo_n "(cached) " >&6
11160 else
11161 if test -n "$CC"; then
11162 ac_cv_prog_CC="$CC" # Let the user override the test.
11163 else
11164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11165 for as_dir in $PATH
11167 IFS=$as_save_IFS
11168 test -z "$as_dir" && as_dir=.
11169 for ac_exec_ext in '' $ac_executable_extensions; do
11170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11171 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11173 break 2
11175 done
11176 done
11177 IFS=$as_save_IFS
11181 CC=$ac_cv_prog_CC
11182 if test -n "$CC"; then
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11184 $as_echo "$CC" >&6; }
11185 else
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11187 $as_echo "no" >&6; }
11191 test -n "$CC" && break
11192 done
11194 if test -z "$CC"; then
11195 ac_ct_CC=$CC
11196 for ac_prog in cl.exe
11198 # Extract the first word of "$ac_prog", so it can be a program name with args.
11199 set dummy $ac_prog; ac_word=$2
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11201 $as_echo_n "checking for $ac_word... " >&6; }
11202 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11203 $as_echo_n "(cached) " >&6
11204 else
11205 if test -n "$ac_ct_CC"; then
11206 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11207 else
11208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11209 for as_dir in $PATH
11211 IFS=$as_save_IFS
11212 test -z "$as_dir" && as_dir=.
11213 for ac_exec_ext in '' $ac_executable_extensions; do
11214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11215 ac_cv_prog_ac_ct_CC="$ac_prog"
11216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11217 break 2
11219 done
11220 done
11221 IFS=$as_save_IFS
11225 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11226 if test -n "$ac_ct_CC"; then
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11228 $as_echo "$ac_ct_CC" >&6; }
11229 else
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11231 $as_echo "no" >&6; }
11235 test -n "$ac_ct_CC" && break
11236 done
11238 if test "x$ac_ct_CC" = x; then
11239 CC=""
11240 else
11241 case $cross_compiling:$ac_tool_warned in
11242 yes:)
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11245 ac_tool_warned=yes ;;
11246 esac
11247 CC=$ac_ct_CC
11254 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11256 as_fn_error "no acceptable C compiler found in \$PATH
11257 See \`config.log' for more details." "$LINENO" 5; }
11259 # Provide some information about the compiler.
11260 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11261 set X $ac_compile
11262 ac_compiler=$2
11263 for ac_option in --version -v -V -qversion; do
11264 { { ac_try="$ac_compiler $ac_option >&5"
11265 case "(($ac_try" in
11266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11267 *) ac_try_echo=$ac_try;;
11268 esac
11269 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11270 $as_echo "$ac_try_echo"; } >&5
11271 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11272 ac_status=$?
11273 if test -s conftest.err; then
11274 sed '10a\
11275 ... rest of stderr output deleted ...
11276 10q' conftest.err >conftest.er1
11277 cat conftest.er1 >&5
11278 rm -f conftest.er1 conftest.err
11280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11281 test $ac_status = 0; }
11282 done
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11285 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11286 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
11287 $as_echo_n "(cached) " >&6
11288 else
11289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11290 /* end confdefs.h. */
11293 main ()
11295 #ifndef __GNUC__
11296 choke me
11297 #endif
11300 return 0;
11302 _ACEOF
11303 if ac_fn_c_try_compile "$LINENO"; then :
11304 ac_compiler_gnu=yes
11305 else
11306 ac_compiler_gnu=no
11308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11309 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11313 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11314 if test $ac_compiler_gnu = yes; then
11315 GCC=yes
11316 else
11317 GCC=
11319 ac_test_CFLAGS=${CFLAGS+set}
11320 ac_save_CFLAGS=$CFLAGS
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11322 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11323 if test "${ac_cv_prog_cc_g+set}" = set; then :
11324 $as_echo_n "(cached) " >&6
11325 else
11326 ac_save_c_werror_flag=$ac_c_werror_flag
11327 ac_c_werror_flag=yes
11328 ac_cv_prog_cc_g=no
11329 CFLAGS="-g"
11330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11331 /* end confdefs.h. */
11334 main ()
11338 return 0;
11340 _ACEOF
11341 if ac_fn_c_try_compile "$LINENO"; then :
11342 ac_cv_prog_cc_g=yes
11343 else
11344 CFLAGS=""
11345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11346 /* end confdefs.h. */
11349 main ()
11353 return 0;
11355 _ACEOF
11356 if ac_fn_c_try_compile "$LINENO"; then :
11358 else
11359 ac_c_werror_flag=$ac_save_c_werror_flag
11360 CFLAGS="-g"
11361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11362 /* end confdefs.h. */
11365 main ()
11369 return 0;
11371 _ACEOF
11372 if ac_fn_c_try_compile "$LINENO"; then :
11373 ac_cv_prog_cc_g=yes
11375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11380 ac_c_werror_flag=$ac_save_c_werror_flag
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11383 $as_echo "$ac_cv_prog_cc_g" >&6; }
11384 if test "$ac_test_CFLAGS" = set; then
11385 CFLAGS=$ac_save_CFLAGS
11386 elif test $ac_cv_prog_cc_g = yes; then
11387 if test "$GCC" = yes; then
11388 CFLAGS="-g -O2"
11389 else
11390 CFLAGS="-g"
11392 else
11393 if test "$GCC" = yes; then
11394 CFLAGS="-O2"
11395 else
11396 CFLAGS=
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11400 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11401 if test "${ac_cv_prog_cc_c89+set}" = set; then :
11402 $as_echo_n "(cached) " >&6
11403 else
11404 ac_cv_prog_cc_c89=no
11405 ac_save_CC=$CC
11406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11407 /* end confdefs.h. */
11408 #include <stdarg.h>
11409 #include <stdio.h>
11410 #include <sys/types.h>
11411 #include <sys/stat.h>
11412 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11413 struct buf { int x; };
11414 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11415 static char *e (p, i)
11416 char **p;
11417 int i;
11419 return p[i];
11421 static char *f (char * (*g) (char **, int), char **p, ...)
11423 char *s;
11424 va_list v;
11425 va_start (v,p);
11426 s = g (p, va_arg (v,int));
11427 va_end (v);
11428 return s;
11431 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11432 function prototypes and stuff, but not '\xHH' hex character constants.
11433 These don't provoke an error unfortunately, instead are silently treated
11434 as 'x'. The following induces an error, until -std is added to get
11435 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11436 array size at least. It's necessary to write '\x00'==0 to get something
11437 that's true only with -std. */
11438 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11440 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11441 inside strings and character constants. */
11442 #define FOO(x) 'x'
11443 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11445 int test (int i, double x);
11446 struct s1 {int (*f) (int a);};
11447 struct s2 {int (*f) (double a);};
11448 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11449 int argc;
11450 char **argv;
11452 main ()
11454 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11456 return 0;
11458 _ACEOF
11459 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11460 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11462 CC="$ac_save_CC $ac_arg"
11463 if ac_fn_c_try_compile "$LINENO"; then :
11464 ac_cv_prog_cc_c89=$ac_arg
11466 rm -f core conftest.err conftest.$ac_objext
11467 test "x$ac_cv_prog_cc_c89" != "xno" && break
11468 done
11469 rm -f conftest.$ac_ext
11470 CC=$ac_save_CC
11473 # AC_CACHE_VAL
11474 case "x$ac_cv_prog_cc_c89" in
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11477 $as_echo "none needed" >&6; } ;;
11478 xno)
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11480 $as_echo "unsupported" >&6; } ;;
11482 CC="$CC $ac_cv_prog_cc_c89"
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11484 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11485 esac
11486 if test "x$ac_cv_prog_cc_c89" != xno; then :
11490 ac_ext=c
11491 ac_cpp='$CPP $CPPFLAGS'
11492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11496 depcc="$CC" am_compiler_list=
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11499 $as_echo_n "checking dependency style of $depcc... " >&6; }
11500 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
11501 $as_echo_n "(cached) " >&6
11502 else
11503 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11504 # We make a subdir and do the tests there. Otherwise we can end up
11505 # making bogus files that we don't know about and never remove. For
11506 # instance it was reported that on HP-UX the gcc test will end up
11507 # making a dummy file named `D' -- because `-MD' means `put the output
11508 # in D'.
11509 mkdir conftest.dir
11510 # Copy depcomp to subdir because otherwise we won't find it if we're
11511 # using a relative directory.
11512 cp "$am_depcomp" conftest.dir
11513 cd conftest.dir
11514 # We will build objects and dependencies in a subdirectory because
11515 # it helps to detect inapplicable dependency modes. For instance
11516 # both Tru64's cc and ICC support -MD to output dependencies as a
11517 # side effect of compilation, but ICC will put the dependencies in
11518 # the current directory while Tru64 will put them in the object
11519 # directory.
11520 mkdir sub
11522 am_cv_CC_dependencies_compiler_type=none
11523 if test "$am_compiler_list" = ""; then
11524 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11526 am__universal=false
11527 case " $depcc " in #(
11528 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11529 esac
11531 for depmode in $am_compiler_list; do
11532 # Setup a source with many dependencies, because some compilers
11533 # like to wrap large dependency lists on column 80 (with \), and
11534 # we should not choose a depcomp mode which is confused by this.
11536 # We need to recreate these files for each test, as the compiler may
11537 # overwrite some of them when testing with obscure command lines.
11538 # This happens at least with the AIX C compiler.
11539 : > sub/conftest.c
11540 for i in 1 2 3 4 5 6; do
11541 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11542 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11543 # Solaris 8's {/usr,}/bin/sh.
11544 touch sub/conftst$i.h
11545 done
11546 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11548 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11549 # mode. It turns out that the SunPro C++ compiler does not properly
11550 # handle `-M -o', and we need to detect this. Also, some Intel
11551 # versions had trouble with output in subdirs
11552 am__obj=sub/conftest.${OBJEXT-o}
11553 am__minus_obj="-o $am__obj"
11554 case $depmode in
11555 gcc)
11556 # This depmode causes a compiler race in universal mode.
11557 test "$am__universal" = false || continue
11559 nosideeffect)
11560 # after this tag, mechanisms are not by side-effect, so they'll
11561 # only be used when explicitly requested
11562 if test "x$enable_dependency_tracking" = xyes; then
11563 continue
11564 else
11565 break
11568 msvisualcpp | msvcmsys)
11569 # This compiler won't grok `-c -o', but also, the minuso test has
11570 # not run yet. These depmodes are late enough in the game, and
11571 # so weak that their functioning should not be impacted.
11572 am__obj=conftest.${OBJEXT-o}
11573 am__minus_obj=
11575 none) break ;;
11576 esac
11577 if depmode=$depmode \
11578 source=sub/conftest.c object=$am__obj \
11579 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11580 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11581 >/dev/null 2>conftest.err &&
11582 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11583 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11584 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11585 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11586 # icc doesn't choke on unknown options, it will just issue warnings
11587 # or remarks (even with -Werror). So we grep stderr for any message
11588 # that says an option was ignored or not supported.
11589 # When given -MP, icc 7.0 and 7.1 complain thusly:
11590 # icc: Command line warning: ignoring option '-M'; no argument required
11591 # The diagnosis changed in icc 8.0:
11592 # icc: Command line remark: option '-MP' not supported
11593 if (grep 'ignoring option' conftest.err ||
11594 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11595 am_cv_CC_dependencies_compiler_type=$depmode
11596 break
11599 done
11601 cd ..
11602 rm -rf conftest.dir
11603 else
11604 am_cv_CC_dependencies_compiler_type=none
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11609 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11610 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11613 test "x$enable_dependency_tracking" != xno \
11614 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11615 am__fastdepCC_TRUE=
11616 am__fastdepCC_FALSE='#'
11617 else
11618 am__fastdepCC_TRUE='#'
11619 am__fastdepCC_FALSE=
11627 if test "x$CC" != xcc; then
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
11629 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11630 else
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
11632 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11634 set dummy $CC; ac_cc=`$as_echo "$2" |
11635 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11636 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
11637 $as_echo_n "(cached) " >&6
11638 else
11639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11640 /* end confdefs.h. */
11643 main ()
11647 return 0;
11649 _ACEOF
11650 # Make sure it works both with $CC and with simple cc.
11651 # We do the test twice because some compilers refuse to overwrite an
11652 # existing .o file with -o, though they will create one.
11653 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11654 rm -f conftest2.*
11655 if { { case "(($ac_try" in
11656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11657 *) ac_try_echo=$ac_try;;
11658 esac
11659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11660 $as_echo "$ac_try_echo"; } >&5
11661 (eval "$ac_try") 2>&5
11662 ac_status=$?
11663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11664 test $ac_status = 0; } &&
11665 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11667 *) ac_try_echo=$ac_try;;
11668 esac
11669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11670 $as_echo "$ac_try_echo"; } >&5
11671 (eval "$ac_try") 2>&5
11672 ac_status=$?
11673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11674 test $ac_status = 0; };
11675 then
11676 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11677 if test "x$CC" != xcc; then
11678 # Test first that cc exists at all.
11679 if { ac_try='cc -c conftest.$ac_ext >&5'
11680 { { case "(($ac_try" in
11681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11682 *) ac_try_echo=$ac_try;;
11683 esac
11684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11685 $as_echo "$ac_try_echo"; } >&5
11686 (eval "$ac_try") 2>&5
11687 ac_status=$?
11688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11689 test $ac_status = 0; }; }; then
11690 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11691 rm -f conftest2.*
11692 if { { case "(($ac_try" in
11693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11694 *) ac_try_echo=$ac_try;;
11695 esac
11696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11697 $as_echo "$ac_try_echo"; } >&5
11698 (eval "$ac_try") 2>&5
11699 ac_status=$?
11700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11701 test $ac_status = 0; } &&
11702 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11704 *) ac_try_echo=$ac_try;;
11705 esac
11706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11707 $as_echo "$ac_try_echo"; } >&5
11708 (eval "$ac_try") 2>&5
11709 ac_status=$?
11710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11711 test $ac_status = 0; };
11712 then
11713 # cc works too.
11715 else
11716 # cc exists but doesn't like -o.
11717 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11721 else
11722 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11724 rm -f core conftest*
11727 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11729 $as_echo "yes" >&6; }
11730 else
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11732 $as_echo "no" >&6; }
11734 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11738 # FIXME: we rely on the cache variable name because
11739 # there is no other way.
11740 set dummy $CC
11741 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11742 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11743 if test "$am_t" != yes; then
11744 # Losing compiler, so override with the script.
11745 # FIXME: It is wrong to rewrite CC.
11746 # But if we don't then we get into trouble of one sort or another.
11747 # A longer-term fix would be to have automake use am__CC in this case,
11748 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11749 CC="$am_aux_dir/compile $CC"
11754 if test "x$GCC" != "xyes"; then
11755 as_fn_error "libquadmath must be built with GCC" "$LINENO" 5
11757 ac_ext=c
11758 ac_cpp='$CPP $CPPFLAGS'
11759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
11763 $as_echo_n "checking how to run the C preprocessor... " >&6; }
11764 # On Suns, sometimes $CPP names a directory.
11765 if test -n "$CPP" && test -d "$CPP"; then
11766 CPP=
11768 if test -z "$CPP"; then
11769 if test "${ac_cv_prog_CPP+set}" = set; then :
11770 $as_echo_n "(cached) " >&6
11771 else
11772 # Double quotes because CPP needs to be expanded
11773 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11775 ac_preproc_ok=false
11776 for ac_c_preproc_warn_flag in '' yes
11778 # Use a header file that comes with gcc, so configuring glibc
11779 # with a fresh cross-compiler works.
11780 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11781 # <limits.h> exists even on freestanding compilers.
11782 # On the NeXT, cc -E runs the code through the compiler's parser,
11783 # not just through cpp. "Syntax error" is here to catch this case.
11784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11785 /* end confdefs.h. */
11786 #ifdef __STDC__
11787 # include <limits.h>
11788 #else
11789 # include <assert.h>
11790 #endif
11791 Syntax error
11792 _ACEOF
11793 if ac_fn_c_try_cpp "$LINENO"; then :
11795 else
11796 # Broken: fails on valid input.
11797 continue
11799 rm -f conftest.err conftest.$ac_ext
11801 # OK, works on sane cases. Now check whether nonexistent headers
11802 # can be detected and how.
11803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11804 /* end confdefs.h. */
11805 #include <ac_nonexistent.h>
11806 _ACEOF
11807 if ac_fn_c_try_cpp "$LINENO"; then :
11808 # Broken: success on invalid input.
11809 continue
11810 else
11811 # Passes both tests.
11812 ac_preproc_ok=:
11813 break
11815 rm -f conftest.err conftest.$ac_ext
11817 done
11818 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11819 rm -f conftest.err conftest.$ac_ext
11820 if $ac_preproc_ok; then :
11821 break
11824 done
11825 ac_cv_prog_CPP=$CPP
11828 CPP=$ac_cv_prog_CPP
11829 else
11830 ac_cv_prog_CPP=$CPP
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
11833 $as_echo "$CPP" >&6; }
11834 ac_preproc_ok=false
11835 for ac_c_preproc_warn_flag in '' yes
11837 # Use a header file that comes with gcc, so configuring glibc
11838 # with a fresh cross-compiler works.
11839 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11840 # <limits.h> exists even on freestanding compilers.
11841 # On the NeXT, cc -E runs the code through the compiler's parser,
11842 # not just through cpp. "Syntax error" is here to catch this case.
11843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11844 /* end confdefs.h. */
11845 #ifdef __STDC__
11846 # include <limits.h>
11847 #else
11848 # include <assert.h>
11849 #endif
11850 Syntax error
11851 _ACEOF
11852 if ac_fn_c_try_cpp "$LINENO"; then :
11854 else
11855 # Broken: fails on valid input.
11856 continue
11858 rm -f conftest.err conftest.$ac_ext
11860 # OK, works on sane cases. Now check whether nonexistent headers
11861 # can be detected and how.
11862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11863 /* end confdefs.h. */
11864 #include <ac_nonexistent.h>
11865 _ACEOF
11866 if ac_fn_c_try_cpp "$LINENO"; then :
11867 # Broken: success on invalid input.
11868 continue
11869 else
11870 # Passes both tests.
11871 ac_preproc_ok=:
11872 break
11874 rm -f conftest.err conftest.$ac_ext
11876 done
11877 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11878 rm -f conftest.err conftest.$ac_ext
11879 if $ac_preproc_ok; then :
11881 else
11882 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11883 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11884 as_fn_error "C preprocessor \"$CPP\" fails sanity check
11885 See \`config.log' for more details." "$LINENO" 5; }
11888 ac_ext=c
11889 ac_cpp='$CPP $CPPFLAGS'
11890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11895 # Calculate toolexeclibdir
11896 # Also toolexecdir, though it's only used in toolexeclibdir
11897 case ${version_specific_libs} in
11898 yes)
11899 # Need the gcc compiler version to know where to install libraries
11900 # and header files if --enable-version-specific-runtime-libs option
11901 # is selected.
11902 toolexecdir='$(libdir)/gcc/$(target_alias)'
11903 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
11906 if test -n "$with_cross_host" &&
11907 test x"$with_cross_host" != x"no"; then
11908 # Install a library built with a cross compiler in tooldir, not libdir.
11909 toolexecdir='$(exec_prefix)/$(target_alias)'
11910 toolexeclibdir='$(toolexecdir)/lib'
11911 else
11912 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
11913 toolexeclibdir='$(libdir)'
11915 multi_os_directory=`$CC -print-multi-os-directory`
11916 case $multi_os_directory in
11917 .) ;; # Avoid trailing /.
11918 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
11919 esac
11921 esac
11925 for ac_header in fenv.h langinfo.h wchar.h wctype.h limits.h ctype.h printf.h errno.h
11926 do :
11927 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11928 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11929 eval as_val=\$$as_ac_Header
11930 if test "x$as_val" = x""yes; then :
11931 cat >>confdefs.h <<_ACEOF
11932 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11933 _ACEOF
11937 done
11940 # If available, sqrtl and cbrtl speed up the calculation -
11941 # but they are not required
11942 if test x$gcc_no_link != xyes; then
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl in -lm" >&5
11944 $as_echo_n "checking for sqrtl in -lm... " >&6; }
11945 if test "${ac_cv_lib_m_sqrtl+set}" = set; then :
11946 $as_echo_n "(cached) " >&6
11947 else
11948 ac_check_lib_save_LIBS=$LIBS
11949 LIBS="-lm $LIBS"
11950 if test x$gcc_no_link = xyes; then
11951 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11954 /* end confdefs.h. */
11956 /* Override any GCC internal prototype to avoid an error.
11957 Use char because int might match the return type of a GCC
11958 builtin and then its argument prototype would still apply. */
11959 #ifdef __cplusplus
11960 extern "C"
11961 #endif
11962 char sqrtl ();
11964 main ()
11966 return sqrtl ();
11968 return 0;
11970 _ACEOF
11971 if ac_fn_c_try_link "$LINENO"; then :
11972 ac_cv_lib_m_sqrtl=yes
11973 else
11974 ac_cv_lib_m_sqrtl=no
11976 rm -f core conftest.err conftest.$ac_objext \
11977 conftest$ac_exeext conftest.$ac_ext
11978 LIBS=$ac_check_lib_save_LIBS
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrtl" >&5
11981 $as_echo "$ac_cv_lib_m_sqrtl" >&6; }
11982 if test "x$ac_cv_lib_m_sqrtl" = x""yes; then :
11984 $as_echo "#define HAVE_SQRTL 1" >>confdefs.h
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cbrtl in -lm" >&5
11989 $as_echo_n "checking for cbrtl in -lm... " >&6; }
11990 if test "${ac_cv_lib_m_cbrtl+set}" = set; then :
11991 $as_echo_n "(cached) " >&6
11992 else
11993 ac_check_lib_save_LIBS=$LIBS
11994 LIBS="-lm $LIBS"
11995 if test x$gcc_no_link = xyes; then
11996 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11999 /* end confdefs.h. */
12001 /* Override any GCC internal prototype to avoid an error.
12002 Use char because int might match the return type of a GCC
12003 builtin and then its argument prototype would still apply. */
12004 #ifdef __cplusplus
12005 extern "C"
12006 #endif
12007 char cbrtl ();
12009 main ()
12011 return cbrtl ();
12013 return 0;
12015 _ACEOF
12016 if ac_fn_c_try_link "$LINENO"; then :
12017 ac_cv_lib_m_cbrtl=yes
12018 else
12019 ac_cv_lib_m_cbrtl=no
12021 rm -f core conftest.err conftest.$ac_objext \
12022 conftest$ac_exeext conftest.$ac_ext
12023 LIBS=$ac_check_lib_save_LIBS
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cbrtl" >&5
12026 $as_echo "$ac_cv_lib_m_cbrtl" >&6; }
12027 if test "x$ac_cv_lib_m_cbrtl" = x""yes; then :
12029 $as_echo "#define HAVE_CBRTL 1" >>confdefs.h
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feholdexcept in -lm" >&5
12034 $as_echo_n "checking for feholdexcept in -lm... " >&6; }
12035 if test "${ac_cv_lib_m_feholdexcept+set}" = set; then :
12036 $as_echo_n "(cached) " >&6
12037 else
12038 ac_check_lib_save_LIBS=$LIBS
12039 LIBS="-lm $LIBS"
12040 if test x$gcc_no_link = xyes; then
12041 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12044 /* end confdefs.h. */
12046 /* Override any GCC internal prototype to avoid an error.
12047 Use char because int might match the return type of a GCC
12048 builtin and then its argument prototype would still apply. */
12049 #ifdef __cplusplus
12050 extern "C"
12051 #endif
12052 char feholdexcept ();
12054 main ()
12056 return feholdexcept ();
12058 return 0;
12060 _ACEOF
12061 if ac_fn_c_try_link "$LINENO"; then :
12062 ac_cv_lib_m_feholdexcept=yes
12063 else
12064 ac_cv_lib_m_feholdexcept=no
12066 rm -f core conftest.err conftest.$ac_objext \
12067 conftest$ac_exeext conftest.$ac_ext
12068 LIBS=$ac_check_lib_save_LIBS
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feholdexcept" >&5
12071 $as_echo "$ac_cv_lib_m_feholdexcept" >&6; }
12072 if test "x$ac_cv_lib_m_feholdexcept" = x""yes; then :
12074 $as_echo "#define HAVE_FEHOLDEXCEPT 1" >>confdefs.h
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fesetround in -lm" >&5
12079 $as_echo_n "checking for fesetround in -lm... " >&6; }
12080 if test "${ac_cv_lib_m_fesetround+set}" = set; then :
12081 $as_echo_n "(cached) " >&6
12082 else
12083 ac_check_lib_save_LIBS=$LIBS
12084 LIBS="-lm $LIBS"
12085 if test x$gcc_no_link = xyes; then
12086 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12089 /* end confdefs.h. */
12091 /* Override any GCC internal prototype to avoid an error.
12092 Use char because int might match the return type of a GCC
12093 builtin and then its argument prototype would still apply. */
12094 #ifdef __cplusplus
12095 extern "C"
12096 #endif
12097 char fesetround ();
12099 main ()
12101 return fesetround ();
12103 return 0;
12105 _ACEOF
12106 if ac_fn_c_try_link "$LINENO"; then :
12107 ac_cv_lib_m_fesetround=yes
12108 else
12109 ac_cv_lib_m_fesetround=no
12111 rm -f core conftest.err conftest.$ac_objext \
12112 conftest$ac_exeext conftest.$ac_ext
12113 LIBS=$ac_check_lib_save_LIBS
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fesetround" >&5
12116 $as_echo "$ac_cv_lib_m_fesetround" >&6; }
12117 if test "x$ac_cv_lib_m_fesetround" = x""yes; then :
12119 $as_echo "#define HAVE_FESETROUND 1" >>confdefs.h
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feupdateenv in -lm" >&5
12124 $as_echo_n "checking for feupdateenv in -lm... " >&6; }
12125 if test "${ac_cv_lib_m_feupdateenv+set}" = set; then :
12126 $as_echo_n "(cached) " >&6
12127 else
12128 ac_check_lib_save_LIBS=$LIBS
12129 LIBS="-lm $LIBS"
12130 if test x$gcc_no_link = xyes; then
12131 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12134 /* end confdefs.h. */
12136 /* Override any GCC internal prototype to avoid an error.
12137 Use char because int might match the return type of a GCC
12138 builtin and then its argument prototype would still apply. */
12139 #ifdef __cplusplus
12140 extern "C"
12141 #endif
12142 char feupdateenv ();
12144 main ()
12146 return feupdateenv ();
12148 return 0;
12150 _ACEOF
12151 if ac_fn_c_try_link "$LINENO"; then :
12152 ac_cv_lib_m_feupdateenv=yes
12153 else
12154 ac_cv_lib_m_feupdateenv=no
12156 rm -f core conftest.err conftest.$ac_objext \
12157 conftest$ac_exeext conftest.$ac_ext
12158 LIBS=$ac_check_lib_save_LIBS
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feupdateenv" >&5
12161 $as_echo "$ac_cv_lib_m_feupdateenv" >&6; }
12162 if test "x$ac_cv_lib_m_feupdateenv" = x""yes; then :
12164 $as_echo "#define HAVE_FEUPDATEENV 1" >>confdefs.h
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fesetenv in -lm" >&5
12169 $as_echo_n "checking for fesetenv in -lm... " >&6; }
12170 if test "${ac_cv_lib_m_fesetenv+set}" = set; then :
12171 $as_echo_n "(cached) " >&6
12172 else
12173 ac_check_lib_save_LIBS=$LIBS
12174 LIBS="-lm $LIBS"
12175 if test x$gcc_no_link = xyes; then
12176 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12179 /* end confdefs.h. */
12181 /* Override any GCC internal prototype to avoid an error.
12182 Use char because int might match the return type of a GCC
12183 builtin and then its argument prototype would still apply. */
12184 #ifdef __cplusplus
12185 extern "C"
12186 #endif
12187 char fesetenv ();
12189 main ()
12191 return fesetenv ();
12193 return 0;
12195 _ACEOF
12196 if ac_fn_c_try_link "$LINENO"; then :
12197 ac_cv_lib_m_fesetenv=yes
12198 else
12199 ac_cv_lib_m_fesetenv=no
12201 rm -f core conftest.err conftest.$ac_objext \
12202 conftest$ac_exeext conftest.$ac_ext
12203 LIBS=$ac_check_lib_save_LIBS
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fesetenv" >&5
12206 $as_echo "$ac_cv_lib_m_fesetenv" >&6; }
12207 if test "x$ac_cv_lib_m_fesetenv" = x""yes; then :
12209 $as_echo "#define HAVE_FESETENV 1" >>confdefs.h
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fetestexcept in -lm" >&5
12214 $as_echo_n "checking for fetestexcept in -lm... " >&6; }
12215 if test "${ac_cv_lib_m_fetestexcept+set}" = set; then :
12216 $as_echo_n "(cached) " >&6
12217 else
12218 ac_check_lib_save_LIBS=$LIBS
12219 LIBS="-lm $LIBS"
12220 if test x$gcc_no_link = xyes; then
12221 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12224 /* end confdefs.h. */
12226 /* Override any GCC internal prototype to avoid an error.
12227 Use char because int might match the return type of a GCC
12228 builtin and then its argument prototype would still apply. */
12229 #ifdef __cplusplus
12230 extern "C"
12231 #endif
12232 char fetestexcept ();
12234 main ()
12236 return fetestexcept ();
12238 return 0;
12240 _ACEOF
12241 if ac_fn_c_try_link "$LINENO"; then :
12242 ac_cv_lib_m_fetestexcept=yes
12243 else
12244 ac_cv_lib_m_fetestexcept=no
12246 rm -f core conftest.err conftest.$ac_objext \
12247 conftest$ac_exeext conftest.$ac_ext
12248 LIBS=$ac_check_lib_save_LIBS
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fetestexcept" >&5
12251 $as_echo "$ac_cv_lib_m_fetestexcept" >&6; }
12252 if test "x$ac_cv_lib_m_fetestexcept" = x""yes; then :
12254 $as_echo "#define HAVE_FETESTEXCEPT 1" >>confdefs.h
12258 else
12259 if test "x$ac_cv_lib_m_sqrtl" = x""yes; then
12261 $as_echo "#define HAVE_SQRTL 1" >>confdefs.h
12264 if test "x$ac_cv_lib_m_cbrtl" = x""yes; then
12266 $as_echo "#define HAVE_CBRTL 1" >>confdefs.h
12269 if test "x$ac_cv_lib_m_feholdexcept" = x""yes; then
12271 $as_echo "#define HAVE_FEHOLDEXCEPT 1" >>confdefs.h
12274 if test "x$ac_cv_lib_m_fesetround" = x""yes; then
12276 $as_echo "#define HAVE_FESETROUND 1" >>confdefs.h
12279 if test "x$ac_cv_lib_m_feupdateenv" = x""yes; then
12281 $as_echo "#define HAVE_FEUPDATEENV 1" >>confdefs.h
12284 if test "x$ac_cv_lib_m_fesetenv" = x""yes; then
12286 $as_echo "#define HAVE_FESETENV 1" >>confdefs.h
12289 if test "x$ac_cv_lib_m_fetestexcept" = x""yes; then
12291 $as_echo "#define HAVE_FETESTEXCEPT 1" >>confdefs.h
12296 # Check for hidden visibility (copied from libssp).
12297 saved_CFLAGS="$CFLAGS"
12298 CFLAGS="$CFLAGS -Werror"
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hidden visibility is supported" >&5
12300 $as_echo_n "checking whether hidden visibility is supported... " >&6; }
12301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12302 /* end confdefs.h. */
12304 void __attribute__((visibility ("hidden"))) bar (void) {}
12306 main ()
12310 return 0;
12312 _ACEOF
12313 if ac_fn_c_try_compile "$LINENO"; then :
12314 quadmath_hidden=yes
12315 else
12316 quadmath_hidden=no
12318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_hidden" >&5
12320 $as_echo "$quadmath_hidden" >&6; }
12321 if test x$quadmath_hidden = xyes; then
12323 $as_echo "#define HAVE_HIDDEN_VISIBILITY 1" >>confdefs.h
12326 CFLAGS="$saved_CFLAGS"
12328 # Check for symbol versioning (copied from libssp).
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
12330 $as_echo_n "checking whether symbol versioning is supported... " >&6; }
12331 if test x$gcc_no_link = xyes; then
12332 # If we cannot link, we cannot build shared libraries, so do not use
12333 # symbol versioning.
12334 quadmath_use_symver=no
12335 else
12336 save_LDFLAGS="$LDFLAGS"
12337 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
12338 cat > conftest.map <<EOF
12339 FOO_1.0 {
12340 global: *foo*; bar; local: *;
12343 if test x$gcc_no_link = xyes; then
12344 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12347 /* end confdefs.h. */
12348 int foo;
12350 main ()
12354 return 0;
12356 _ACEOF
12357 if ac_fn_c_try_link "$LINENO"; then :
12358 quadmath_use_symver=gnu
12359 else
12360 quadmath_use_symver=no
12362 rm -f core conftest.err conftest.$ac_objext \
12363 conftest$ac_exeext conftest.$ac_ext
12364 if test x$quadmath_use_symver = xno; then
12365 case "$target_os" in
12366 solaris2*)
12367 LDFLAGS="$save_LDFLAGS"
12368 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
12369 # Sun ld cannot handle wildcards and treats all entries as undefined.
12370 cat > conftest.map <<EOF
12371 FOO_1.0 {
12372 global: foo; local: *;
12375 if test x$gcc_no_link = xyes; then
12376 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12379 /* end confdefs.h. */
12380 int foo;
12382 main ()
12386 return 0;
12388 _ACEOF
12389 if ac_fn_c_try_link "$LINENO"; then :
12390 quadmath_use_symver=sun
12391 else
12392 quadmath_use_symver=no
12394 rm -f core conftest.err conftest.$ac_objext \
12395 conftest$ac_exeext conftest.$ac_ext
12397 esac
12399 LDFLAGS="$save_LDFLAGS"
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_symver" >&5
12402 $as_echo "$quadmath_use_symver" >&6; }
12403 if test "x$quadmath_use_symver" != xno; then
12404 LIBQUAD_USE_SYMVER_TRUE=
12405 LIBQUAD_USE_SYMVER_FALSE='#'
12406 else
12407 LIBQUAD_USE_SYMVER_TRUE='#'
12408 LIBQUAD_USE_SYMVER_FALSE=
12411 if test "x$quadmath_use_symver" = xgnu; then
12412 LIBQUAD_USE_SYMVER_GNU_TRUE=
12413 LIBQUAD_USE_SYMVER_GNU_FALSE='#'
12414 else
12415 LIBQUAD_USE_SYMVER_GNU_TRUE='#'
12416 LIBQUAD_USE_SYMVER_GNU_FALSE=
12419 if test "x$quadmath_use_symver" = xsun; then
12420 LIBQUAD_USE_SYMVER_SUN_TRUE=
12421 LIBQUAD_USE_SYMVER_SUN_FALSE='#'
12422 else
12423 LIBQUAD_USE_SYMVER_SUN_TRUE='#'
12424 LIBQUAD_USE_SYMVER_SUN_FALSE=
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __float128 is supported" >&5
12429 $as_echo_n "checking whether __float128 is supported... " >&6; }
12430 if test "${libquad_cv_have_float128+set}" = set; then :
12431 $as_echo_n "(cached) " >&6
12432 else
12433 if test x$gcc_no_link = xyes; then
12434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12435 /* end confdefs.h. */
12437 typedef _Complex float __attribute__((mode(TC))) __complex128;
12439 __float128 foo (__float128 x)
12442 __complex128 z1, z2;
12444 z1 = x;
12445 z2 = x / 7.Q;
12446 z2 /= z1;
12448 return (__float128) z2;
12451 __float128 bar (__float128 x)
12453 return x * __builtin_huge_valq ();
12457 main ()
12460 foo (1.2Q);
12461 bar (1.2Q);
12464 return 0;
12466 _ACEOF
12467 if ac_fn_c_try_compile "$LINENO"; then :
12469 libquad_cv_have_float128=yes
12471 else
12473 libquad_cv_have_float128=no
12476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12477 else
12478 if test x$gcc_no_link = xyes; then
12479 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12482 /* end confdefs.h. */
12484 typedef _Complex float __attribute__((mode(TC))) __complex128;
12486 __float128 foo (__float128 x)
12489 __complex128 z1, z2;
12491 z1 = x;
12492 z2 = x / 7.Q;
12493 z2 /= z1;
12495 return (__float128) z2;
12498 __float128 bar (__float128 x)
12500 return x * __builtin_huge_valq ();
12504 main ()
12507 foo (1.2Q);
12508 bar (1.2Q);
12511 return 0;
12513 _ACEOF
12514 if ac_fn_c_try_link "$LINENO"; then :
12516 libquad_cv_have_float128=yes
12518 else
12520 libquad_cv_have_float128=no
12523 rm -f core conftest.err conftest.$ac_objext \
12524 conftest$ac_exeext conftest.$ac_ext
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libquad_cv_have_float128" >&5
12528 $as_echo "$libquad_cv_have_float128" >&6; }
12529 if test "x$libquad_cv_have_float128" = xyes; then
12530 BUILD_LIBQUADMATH_TRUE=
12531 BUILD_LIBQUADMATH_FALSE='#'
12532 else
12533 BUILD_LIBQUADMATH_TRUE='#'
12534 BUILD_LIBQUADMATH_FALSE=
12538 # Check for printf hook support.
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf hooks are supported" >&5
12540 $as_echo_n "checking whether printf hooks are supported... " >&6; }
12541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12542 /* end confdefs.h. */
12544 #include <printf.h>
12545 #include <stdarg.h>
12546 #include <stdlib.h>
12547 extern void flt128_va (void *, va_list *);
12548 extern int flt128_ais (const struct printf_info *, size_t, int *, int *);
12549 extern int flt128_printf_fp (FILE *, const struct printf_info *, const void *const *);
12552 main ()
12555 int pa_flt128 = register_printf_type (flt128_va);
12556 int mod_Q = register_printf_modifier (L"Q");
12557 int res = register_printf_specifier ('f', flt128_printf_fp, flt128_ais);
12558 struct printf_info info = { .user = -1 };
12561 return 0;
12563 _ACEOF
12564 if ac_fn_c_try_compile "$LINENO"; then :
12565 quadmath_printf_hooks=yes
12566 else
12567 quadmath_printf_hooks=no
12569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_printf_hooks" >&5
12571 $as_echo "$quadmath_printf_hooks" >&6; }
12572 if test x$quadmath_printf_hooks = xyes; then
12574 $as_echo "#define HAVE_PRINTF_HOOKS 1" >>confdefs.h
12578 # Check for whether locale support for quadmath_snprintf or Q printf hooks
12579 # should be provided.
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale support for quadmath_snprintf should be added" >&5
12581 $as_echo_n "checking whether locale support for quadmath_snprintf should be added... " >&6; }
12582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12583 /* end confdefs.h. */
12584 #include <langinfo.h>
12586 main ()
12589 const char *s;
12590 s = nl_langinfo (DECIMAL_POINT);
12591 s = nl_langinfo (MON_DECIMAL_POINT);
12592 s = nl_langinfo (GROUPING);
12593 s = nl_langinfo (MON_GROUPING);
12594 s = nl_langinfo (THOUSANDS_SEP);
12595 s = nl_langinfo (MON_THOUSANDS_SEP);
12596 s = nl_langinfo (_NL_NUMERIC_DECIMAL_POINT_WC);
12597 s = nl_langinfo (_NL_MONETARY_DECIMAL_POINT_WC);
12598 s = nl_langinfo (_NL_NUMERIC_THOUSANDS_SEP_WC);
12599 s = nl_langinfo (_NL_MONETARY_THOUSANDS_SEP_WC);
12600 s = nl_langinfo (_NL_CTYPE_MB_CUR_MAX);
12601 (void) s;
12604 return 0;
12606 _ACEOF
12607 if ac_fn_c_try_compile "$LINENO"; then :
12608 quadmath_use_locale_support=yes
12609 else
12610 quadmath_use_locale_support=no
12612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_locale_support" >&5
12614 $as_echo "$quadmath_use_locale_support" >&6; }
12615 if test x$quadmath_use_locale_support = xyes; then
12617 $as_echo "#define USE_LOCALE_SUPPORT 1" >>confdefs.h
12621 # Check for whether i18n number rewriting support for quadmath_snprintf
12622 # or Q printf hooks should be provided.
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether i18n number rewriting support for quadmath_snprintf should be added" >&5
12624 $as_echo_n "checking whether i18n number rewriting support for quadmath_snprintf should be added... " >&6; }
12625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12626 /* end confdefs.h. */
12627 #include <langinfo.h>
12628 #include <limits.h>
12629 #include <string.h>
12630 #include <wchar.h>
12631 #include <wctype.h>
12633 main ()
12636 const char *s;
12637 char decimal[MB_LEN_MAX];
12638 wctrans_t map = wctrans ("to_outpunct");
12639 wint_t wdecimal = towctrans (L'.', map);
12640 mbstate_t state;
12641 memset (&state, '\0', sizeof (state));
12642 wcrtomb (decimal, wdecimal, &state);
12643 s = nl_langinfo (_NL_CTYPE_OUTDIGIT0_MB);
12644 s = nl_langinfo (_NL_CTYPE_OUTDIGIT0_WC);
12645 (void) s;
12648 return 0;
12650 _ACEOF
12651 if ac_fn_c_try_compile "$LINENO"; then :
12652 quadmath_use_i18n_number_h=yes
12653 else
12654 quadmath_use_i18n_number_h=no
12656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_i18n_number_h" >&5
12658 $as_echo "$quadmath_use_i18n_number_h" >&6; }
12659 if test x$quadmath_use_i18n_number_h = xyes; then
12661 $as_echo "#define USE_I18N_NUMBER_H 1" >>confdefs.h
12665 cat >confcache <<\_ACEOF
12666 # This file is a shell script that caches the results of configure
12667 # tests run on this system so they can be shared between configure
12668 # scripts and configure runs, see configure's option --config-cache.
12669 # It is not useful on other systems. If it contains results you don't
12670 # want to keep, you may remove or edit it.
12672 # config.status only pays attention to the cache file if you give it
12673 # the --recheck option to rerun configure.
12675 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12676 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12677 # following values.
12679 _ACEOF
12681 # The following way of writing the cache mishandles newlines in values,
12682 # but we know of no workaround that is simple, portable, and efficient.
12683 # So, we kill variables containing newlines.
12684 # Ultrix sh set writes to stderr and can't be redirected directly,
12685 # and sets the high bit in the cache file unless we assign to the vars.
12687 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12688 eval ac_val=\$$ac_var
12689 case $ac_val in #(
12690 *${as_nl}*)
12691 case $ac_var in #(
12692 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12693 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12694 esac
12695 case $ac_var in #(
12696 _ | IFS | as_nl) ;; #(
12697 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12698 *) { eval $ac_var=; unset $ac_var;} ;;
12699 esac ;;
12700 esac
12701 done
12703 (set) 2>&1 |
12704 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12705 *${as_nl}ac_space=\ *)
12706 # `set' does not quote correctly, so add quotes: double-quote
12707 # substitution turns \\\\ into \\, and sed turns \\ into \.
12708 sed -n \
12709 "s/'/'\\\\''/g;
12710 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12711 ;; #(
12713 # `set' quotes correctly as required by POSIX, so do not add quotes.
12714 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12716 esac |
12717 sort
12719 sed '
12720 /^ac_cv_env_/b end
12721 t clear
12722 :clear
12723 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12724 t end
12725 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12726 :end' >>confcache
12727 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12728 if test -w "$cache_file"; then
12729 test "x$cache_file" != "x/dev/null" &&
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12731 $as_echo "$as_me: updating cache $cache_file" >&6;}
12732 cat confcache >$cache_file
12733 else
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12735 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12738 rm -f confcache
12740 if test ${multilib} = yes; then
12741 multilib_arg="--enable-multilib"
12742 else
12743 multilib_arg=
12747 # We would like our source tree to be readonly. However when releases or
12748 # pre-releases are generated, the flex/bison generated files as well as the
12749 # various formats of manuals need to be included along with the rest of the
12750 # sources. Therefore we have --enable-generated-files-in-srcdir to do
12751 # just that.
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking generated-files-in-srcdir" >&5
12753 $as_echo_n "checking generated-files-in-srcdir... " >&6; }
12754 # Check whether --enable-generated-files-in-srcdir was given.
12755 if test "${enable_generated_files_in_srcdir+set}" = set; then :
12756 enableval=$enable_generated_files_in_srcdir; case "$enableval" in
12757 yes) enable_generated_files_in_srcdir=yes ;;
12758 no) enable_generated_files_in_srcdir=no ;;
12759 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
12760 esac
12761 else
12762 enable_generated_files_in_srcdir=no
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
12766 $as_echo "$enable_generated_files_in_srcdir" >&6; }
12767 if test "$enable_generated_files_in_srcdir" = yes; then
12768 GENINSRC_TRUE=
12769 GENINSRC_FALSE='#'
12770 else
12771 GENINSRC_TRUE='#'
12772 GENINSRC_FALSE=
12777 ac_config_files="$ac_config_files Makefile"
12779 cat >confcache <<\_ACEOF
12780 # This file is a shell script that caches the results of configure
12781 # tests run on this system so they can be shared between configure
12782 # scripts and configure runs, see configure's option --config-cache.
12783 # It is not useful on other systems. If it contains results you don't
12784 # want to keep, you may remove or edit it.
12786 # config.status only pays attention to the cache file if you give it
12787 # the --recheck option to rerun configure.
12789 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12790 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12791 # following values.
12793 _ACEOF
12795 # The following way of writing the cache mishandles newlines in values,
12796 # but we know of no workaround that is simple, portable, and efficient.
12797 # So, we kill variables containing newlines.
12798 # Ultrix sh set writes to stderr and can't be redirected directly,
12799 # and sets the high bit in the cache file unless we assign to the vars.
12801 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12802 eval ac_val=\$$ac_var
12803 case $ac_val in #(
12804 *${as_nl}*)
12805 case $ac_var in #(
12806 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12807 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12808 esac
12809 case $ac_var in #(
12810 _ | IFS | as_nl) ;; #(
12811 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12812 *) { eval $ac_var=; unset $ac_var;} ;;
12813 esac ;;
12814 esac
12815 done
12817 (set) 2>&1 |
12818 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12819 *${as_nl}ac_space=\ *)
12820 # `set' does not quote correctly, so add quotes: double-quote
12821 # substitution turns \\\\ into \\, and sed turns \\ into \.
12822 sed -n \
12823 "s/'/'\\\\''/g;
12824 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12825 ;; #(
12827 # `set' quotes correctly as required by POSIX, so do not add quotes.
12828 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12830 esac |
12831 sort
12833 sed '
12834 /^ac_cv_env_/b end
12835 t clear
12836 :clear
12837 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12838 t end
12839 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12840 :end' >>confcache
12841 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12842 if test -w "$cache_file"; then
12843 test "x$cache_file" != "x/dev/null" &&
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12845 $as_echo "$as_me: updating cache $cache_file" >&6;}
12846 cat confcache >$cache_file
12847 else
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12849 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12852 rm -f confcache
12854 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12855 # Let make expand exec_prefix.
12856 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12858 DEFS=-DHAVE_CONFIG_H
12860 ac_libobjs=
12861 ac_ltlibobjs=
12862 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12863 # 1. Remove the extension, and $U if already installed.
12864 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12865 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12866 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12867 # will be set to the directory where LIBOBJS objects are built.
12868 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12869 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12870 done
12871 LIBOBJS=$ac_libobjs
12873 LTLIBOBJS=$ac_ltlibobjs
12876 if test -n "$EXEEXT"; then
12877 am__EXEEXT_TRUE=
12878 am__EXEEXT_FALSE='#'
12879 else
12880 am__EXEEXT_TRUE='#'
12881 am__EXEEXT_FALSE=
12884 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12885 as_fn_error "conditional \"AMDEP\" was never defined.
12886 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12888 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12889 as_fn_error "conditional \"am__fastdepCC\" was never defined.
12890 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12892 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
12893 as_fn_error "conditional \"BUILD_INFO\" was never defined.
12894 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12896 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12897 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
12898 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12900 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12901 as_fn_error "conditional \"am__fastdepCC\" was never defined.
12902 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12904 if test -z "${LIBQUAD_USE_SYMVER_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_FALSE}"; then
12905 as_fn_error "conditional \"LIBQUAD_USE_SYMVER\" was never defined.
12906 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12908 if test -z "${LIBQUAD_USE_SYMVER_GNU_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_GNU_FALSE}"; then
12909 as_fn_error "conditional \"LIBQUAD_USE_SYMVER_GNU\" was never defined.
12910 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12912 if test -z "${LIBQUAD_USE_SYMVER_SUN_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_SUN_FALSE}"; then
12913 as_fn_error "conditional \"LIBQUAD_USE_SYMVER_SUN\" was never defined.
12914 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12916 if test -z "${BUILD_LIBQUADMATH_TRUE}" && test -z "${BUILD_LIBQUADMATH_FALSE}"; then
12917 as_fn_error "conditional \"BUILD_LIBQUADMATH\" was never defined.
12918 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12920 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
12921 as_fn_error "conditional \"GENINSRC\" was never defined.
12922 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12925 : ${CONFIG_STATUS=./config.status}
12926 ac_write_fail=0
12927 ac_clean_files_save=$ac_clean_files
12928 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12930 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12931 as_write_fail=0
12932 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12933 #! $SHELL
12934 # Generated by $as_me.
12935 # Run this file to recreate the current configuration.
12936 # Compiler output produced by configure, useful for debugging
12937 # configure, is in config.log if it exists.
12939 debug=false
12940 ac_cs_recheck=false
12941 ac_cs_silent=false
12943 SHELL=\${CONFIG_SHELL-$SHELL}
12944 export SHELL
12945 _ASEOF
12946 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12947 ## -------------------- ##
12948 ## M4sh Initialization. ##
12949 ## -------------------- ##
12951 # Be more Bourne compatible
12952 DUALCASE=1; export DUALCASE # for MKS sh
12953 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12954 emulate sh
12955 NULLCMD=:
12956 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12957 # is contrary to our usage. Disable this feature.
12958 alias -g '${1+"$@"}'='"$@"'
12959 setopt NO_GLOB_SUBST
12960 else
12961 case `(set -o) 2>/dev/null` in #(
12962 *posix*) :
12963 set -o posix ;; #(
12964 *) :
12966 esac
12970 as_nl='
12972 export as_nl
12973 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12974 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12975 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12976 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12977 # Prefer a ksh shell builtin over an external printf program on Solaris,
12978 # but without wasting forks for bash or zsh.
12979 if test -z "$BASH_VERSION$ZSH_VERSION" \
12980 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12981 as_echo='print -r --'
12982 as_echo_n='print -rn --'
12983 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12984 as_echo='printf %s\n'
12985 as_echo_n='printf %s'
12986 else
12987 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12988 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12989 as_echo_n='/usr/ucb/echo -n'
12990 else
12991 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12992 as_echo_n_body='eval
12993 arg=$1;
12994 case $arg in #(
12995 *"$as_nl"*)
12996 expr "X$arg" : "X\\(.*\\)$as_nl";
12997 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12998 esac;
12999 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13001 export as_echo_n_body
13002 as_echo_n='sh -c $as_echo_n_body as_echo'
13004 export as_echo_body
13005 as_echo='sh -c $as_echo_body as_echo'
13008 # The user is always right.
13009 if test "${PATH_SEPARATOR+set}" != set; then
13010 PATH_SEPARATOR=:
13011 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13012 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13013 PATH_SEPARATOR=';'
13018 # IFS
13019 # We need space, tab and new line, in precisely that order. Quoting is
13020 # there to prevent editors from complaining about space-tab.
13021 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13022 # splitting by setting IFS to empty value.)
13023 IFS=" "" $as_nl"
13025 # Find who we are. Look in the path if we contain no directory separator.
13026 case $0 in #((
13027 *[\\/]* ) as_myself=$0 ;;
13028 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13029 for as_dir in $PATH
13031 IFS=$as_save_IFS
13032 test -z "$as_dir" && as_dir=.
13033 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13034 done
13035 IFS=$as_save_IFS
13038 esac
13039 # We did not find ourselves, most probably we were run as `sh COMMAND'
13040 # in which case we are not to be found in the path.
13041 if test "x$as_myself" = x; then
13042 as_myself=$0
13044 if test ! -f "$as_myself"; then
13045 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13046 exit 1
13049 # Unset variables that we do not need and which cause bugs (e.g. in
13050 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13051 # suppresses any "Segmentation fault" message there. '((' could
13052 # trigger a bug in pdksh 5.2.14.
13053 for as_var in BASH_ENV ENV MAIL MAILPATH
13054 do eval test x\${$as_var+set} = xset \
13055 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13056 done
13057 PS1='$ '
13058 PS2='> '
13059 PS4='+ '
13061 # NLS nuisances.
13062 LC_ALL=C
13063 export LC_ALL
13064 LANGUAGE=C
13065 export LANGUAGE
13067 # CDPATH.
13068 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13071 # as_fn_error ERROR [LINENO LOG_FD]
13072 # ---------------------------------
13073 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13074 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13075 # script with status $?, using 1 if that was 0.
13076 as_fn_error ()
13078 as_status=$?; test $as_status -eq 0 && as_status=1
13079 if test "$3"; then
13080 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13081 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13083 $as_echo "$as_me: error: $1" >&2
13084 as_fn_exit $as_status
13085 } # as_fn_error
13088 # as_fn_set_status STATUS
13089 # -----------------------
13090 # Set $? to STATUS, without forking.
13091 as_fn_set_status ()
13093 return $1
13094 } # as_fn_set_status
13096 # as_fn_exit STATUS
13097 # -----------------
13098 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13099 as_fn_exit ()
13101 set +e
13102 as_fn_set_status $1
13103 exit $1
13104 } # as_fn_exit
13106 # as_fn_unset VAR
13107 # ---------------
13108 # Portably unset VAR.
13109 as_fn_unset ()
13111 { eval $1=; unset $1;}
13113 as_unset=as_fn_unset
13114 # as_fn_append VAR VALUE
13115 # ----------------------
13116 # Append the text in VALUE to the end of the definition contained in VAR. Take
13117 # advantage of any shell optimizations that allow amortized linear growth over
13118 # repeated appends, instead of the typical quadratic growth present in naive
13119 # implementations.
13120 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13121 eval 'as_fn_append ()
13123 eval $1+=\$2
13125 else
13126 as_fn_append ()
13128 eval $1=\$$1\$2
13130 fi # as_fn_append
13132 # as_fn_arith ARG...
13133 # ------------------
13134 # Perform arithmetic evaluation on the ARGs, and store the result in the
13135 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13136 # must be portable across $(()) and expr.
13137 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13138 eval 'as_fn_arith ()
13140 as_val=$(( $* ))
13142 else
13143 as_fn_arith ()
13145 as_val=`expr "$@" || test $? -eq 1`
13147 fi # as_fn_arith
13150 if expr a : '\(a\)' >/dev/null 2>&1 &&
13151 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13152 as_expr=expr
13153 else
13154 as_expr=false
13157 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13158 as_basename=basename
13159 else
13160 as_basename=false
13163 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13164 as_dirname=dirname
13165 else
13166 as_dirname=false
13169 as_me=`$as_basename -- "$0" ||
13170 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13171 X"$0" : 'X\(//\)$' \| \
13172 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13173 $as_echo X/"$0" |
13174 sed '/^.*\/\([^/][^/]*\)\/*$/{
13175 s//\1/
13178 /^X\/\(\/\/\)$/{
13179 s//\1/
13182 /^X\/\(\/\).*/{
13183 s//\1/
13186 s/.*/./; q'`
13188 # Avoid depending upon Character Ranges.
13189 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13190 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13191 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13192 as_cr_digits='0123456789'
13193 as_cr_alnum=$as_cr_Letters$as_cr_digits
13195 ECHO_C= ECHO_N= ECHO_T=
13196 case `echo -n x` in #(((((
13197 -n*)
13198 case `echo 'xy\c'` in
13199 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13200 xy) ECHO_C='\c';;
13201 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13202 ECHO_T=' ';;
13203 esac;;
13205 ECHO_N='-n';;
13206 esac
13208 rm -f conf$$ conf$$.exe conf$$.file
13209 if test -d conf$$.dir; then
13210 rm -f conf$$.dir/conf$$.file
13211 else
13212 rm -f conf$$.dir
13213 mkdir conf$$.dir 2>/dev/null
13215 if (echo >conf$$.file) 2>/dev/null; then
13216 if ln -s conf$$.file conf$$ 2>/dev/null; then
13217 as_ln_s='ln -s'
13218 # ... but there are two gotchas:
13219 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13220 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13221 # In both cases, we have to default to `cp -p'.
13222 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13223 as_ln_s='cp -p'
13224 elif ln conf$$.file conf$$ 2>/dev/null; then
13225 as_ln_s=ln
13226 else
13227 as_ln_s='cp -p'
13229 else
13230 as_ln_s='cp -p'
13232 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13233 rmdir conf$$.dir 2>/dev/null
13236 # as_fn_mkdir_p
13237 # -------------
13238 # Create "$as_dir" as a directory, including parents if necessary.
13239 as_fn_mkdir_p ()
13242 case $as_dir in #(
13243 -*) as_dir=./$as_dir;;
13244 esac
13245 test -d "$as_dir" || eval $as_mkdir_p || {
13246 as_dirs=
13247 while :; do
13248 case $as_dir in #(
13249 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13250 *) as_qdir=$as_dir;;
13251 esac
13252 as_dirs="'$as_qdir' $as_dirs"
13253 as_dir=`$as_dirname -- "$as_dir" ||
13254 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13255 X"$as_dir" : 'X\(//\)[^/]' \| \
13256 X"$as_dir" : 'X\(//\)$' \| \
13257 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13258 $as_echo X"$as_dir" |
13259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13260 s//\1/
13263 /^X\(\/\/\)[^/].*/{
13264 s//\1/
13267 /^X\(\/\/\)$/{
13268 s//\1/
13271 /^X\(\/\).*/{
13272 s//\1/
13275 s/.*/./; q'`
13276 test -d "$as_dir" && break
13277 done
13278 test -z "$as_dirs" || eval "mkdir $as_dirs"
13279 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13282 } # as_fn_mkdir_p
13283 if mkdir -p . 2>/dev/null; then
13284 as_mkdir_p='mkdir -p "$as_dir"'
13285 else
13286 test -d ./-p && rmdir ./-p
13287 as_mkdir_p=false
13290 if test -x / >/dev/null 2>&1; then
13291 as_test_x='test -x'
13292 else
13293 if ls -dL / >/dev/null 2>&1; then
13294 as_ls_L_option=L
13295 else
13296 as_ls_L_option=
13298 as_test_x='
13299 eval sh -c '\''
13300 if test -d "$1"; then
13301 test -d "$1/.";
13302 else
13303 case $1 in #(
13304 -*)set "./$1";;
13305 esac;
13306 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13307 ???[sx]*):;;*)false;;esac;fi
13308 '\'' sh
13311 as_executable_p=$as_test_x
13313 # Sed expression to map a string onto a valid CPP name.
13314 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13316 # Sed expression to map a string onto a valid variable name.
13317 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13320 exec 6>&1
13321 ## ----------------------------------- ##
13322 ## Main body of $CONFIG_STATUS script. ##
13323 ## ----------------------------------- ##
13324 _ASEOF
13325 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13328 # Save the log message, to keep $0 and so on meaningful, and to
13329 # report actual input values of CONFIG_FILES etc. instead of their
13330 # values after options handling.
13331 ac_log="
13332 This file was extended by GCC Quad-precision Math Library $as_me 0.1, which was
13333 generated by GNU Autoconf 2.64. Invocation command line was
13335 CONFIG_FILES = $CONFIG_FILES
13336 CONFIG_HEADERS = $CONFIG_HEADERS
13337 CONFIG_LINKS = $CONFIG_LINKS
13338 CONFIG_COMMANDS = $CONFIG_COMMANDS
13339 $ $0 $@
13341 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13344 _ACEOF
13346 case $ac_config_files in *"
13347 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13348 esac
13350 case $ac_config_headers in *"
13351 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13352 esac
13355 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13356 # Files that config.status was made for.
13357 config_files="$ac_config_files"
13358 config_headers="$ac_config_headers"
13359 config_commands="$ac_config_commands"
13361 _ACEOF
13363 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13364 ac_cs_usage="\
13365 \`$as_me' instantiates files and other configuration actions
13366 from templates according to the current configuration. Unless the files
13367 and actions are specified as TAGs, all are instantiated by default.
13369 Usage: $0 [OPTION]... [TAG]...
13371 -h, --help print this help, then exit
13372 -V, --version print version number and configuration settings, then exit
13373 -q, --quiet, --silent
13374 do not print progress messages
13375 -d, --debug don't remove temporary files
13376 --recheck update $as_me by reconfiguring in the same conditions
13377 --file=FILE[:TEMPLATE]
13378 instantiate the configuration file FILE
13379 --header=FILE[:TEMPLATE]
13380 instantiate the configuration header FILE
13382 Configuration files:
13383 $config_files
13385 Configuration headers:
13386 $config_headers
13388 Configuration commands:
13389 $config_commands
13391 Report bugs to the package provider."
13393 _ACEOF
13394 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13395 ac_cs_version="\\
13396 GCC Quad-precision Math Library config.status 0.1
13397 configured by $0, generated by GNU Autoconf 2.64,
13398 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13400 Copyright (C) 2009 Free Software Foundation, Inc.
13401 This config.status script is free software; the Free Software Foundation
13402 gives unlimited permission to copy, distribute and modify it."
13404 ac_pwd='$ac_pwd'
13405 srcdir='$srcdir'
13406 INSTALL='$INSTALL'
13407 MKDIR_P='$MKDIR_P'
13408 AWK='$AWK'
13409 test -n "\$AWK" || AWK=awk
13410 _ACEOF
13412 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13413 # The default lists apply if the user does not specify any file.
13414 ac_need_defaults=:
13415 while test $# != 0
13417 case $1 in
13418 --*=*)
13419 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13420 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13421 ac_shift=:
13424 ac_option=$1
13425 ac_optarg=$2
13426 ac_shift=shift
13428 esac
13430 case $ac_option in
13431 # Handling of the options.
13432 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13433 ac_cs_recheck=: ;;
13434 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13435 $as_echo "$ac_cs_version"; exit ;;
13436 --debug | --debu | --deb | --de | --d | -d )
13437 debug=: ;;
13438 --file | --fil | --fi | --f )
13439 $ac_shift
13440 case $ac_optarg in
13441 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13442 esac
13443 as_fn_append CONFIG_FILES " '$ac_optarg'"
13444 ac_need_defaults=false;;
13445 --header | --heade | --head | --hea )
13446 $ac_shift
13447 case $ac_optarg in
13448 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13449 esac
13450 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13451 ac_need_defaults=false;;
13452 --he | --h)
13453 # Conflict between --help and --header
13454 as_fn_error "ambiguous option: \`$1'
13455 Try \`$0 --help' for more information.";;
13456 --help | --hel | -h )
13457 $as_echo "$ac_cs_usage"; exit ;;
13458 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13459 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13460 ac_cs_silent=: ;;
13462 # This is an error.
13463 -*) as_fn_error "unrecognized option: \`$1'
13464 Try \`$0 --help' for more information." ;;
13466 *) as_fn_append ac_config_targets " $1"
13467 ac_need_defaults=false ;;
13469 esac
13470 shift
13471 done
13473 ac_configure_extra_args=
13475 if $ac_cs_silent; then
13476 exec 6>/dev/null
13477 ac_configure_extra_args="$ac_configure_extra_args --silent"
13480 _ACEOF
13481 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13482 if \$ac_cs_recheck; then
13483 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13484 shift
13485 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13486 CONFIG_SHELL='$SHELL'
13487 export CONFIG_SHELL
13488 exec "\$@"
13491 _ACEOF
13492 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13493 exec 5>>config.log
13495 echo
13496 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13497 ## Running $as_me. ##
13498 _ASBOX
13499 $as_echo "$ac_log"
13500 } >&5
13502 _ACEOF
13503 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13505 # INIT-COMMANDS
13507 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13510 # The HP-UX ksh and POSIX shell print the target directory to stdout
13511 # if CDPATH is set.
13512 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13514 sed_quote_subst='$sed_quote_subst'
13515 double_quote_subst='$double_quote_subst'
13516 delay_variable_subst='$delay_variable_subst'
13517 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13518 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13519 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13520 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13521 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13522 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13523 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13524 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13525 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13526 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13527 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13528 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13529 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13530 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13531 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13532 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13533 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13534 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13535 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13536 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13537 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13538 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13539 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13540 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13541 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13542 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13543 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13544 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13545 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13546 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13547 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13548 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13549 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13550 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13551 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13552 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13553 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13554 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13555 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13556 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13557 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13558 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13559 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13560 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13561 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13562 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13563 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13564 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13565 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"`'
13566 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13567 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13568 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13569 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13570 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13571 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13572 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13573 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13574 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13575 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13576 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13577 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13578 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13579 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13580 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13581 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13582 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13583 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13584 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13585 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13586 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13587 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13588 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13589 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13590 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13591 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13592 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13593 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13594 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13595 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13596 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13597 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13598 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13599 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13600 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13601 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13602 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13603 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13604 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13605 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13606 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13607 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13608 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13609 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13610 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13611 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13612 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13613 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13614 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13615 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13616 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13617 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13618 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13619 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13620 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13621 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13622 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13623 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13624 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13625 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13626 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13627 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13628 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13629 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13630 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13631 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13632 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13633 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13634 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13635 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13636 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13638 LTCC='$LTCC'
13639 LTCFLAGS='$LTCFLAGS'
13640 compiler='$compiler_DEFAULT'
13642 # A function that is used when there is no print builtin or printf.
13643 func_fallback_echo ()
13645 eval 'cat <<_LTECHO_EOF
13647 _LTECHO_EOF'
13650 # Quote evaled strings.
13651 for var in SHELL \
13652 ECHO \
13653 SED \
13654 GREP \
13655 EGREP \
13656 FGREP \
13657 LD \
13658 NM \
13659 LN_S \
13660 lt_SP2NL \
13661 lt_NL2SP \
13662 reload_flag \
13663 OBJDUMP \
13664 deplibs_check_method \
13665 file_magic_cmd \
13666 AR \
13667 AR_FLAGS \
13668 STRIP \
13669 RANLIB \
13670 CC \
13671 CFLAGS \
13672 compiler \
13673 lt_cv_sys_global_symbol_pipe \
13674 lt_cv_sys_global_symbol_to_cdecl \
13675 lt_cv_sys_global_symbol_to_c_name_address \
13676 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13677 lt_prog_compiler_no_builtin_flag \
13678 lt_prog_compiler_wl \
13679 lt_prog_compiler_pic \
13680 lt_prog_compiler_static \
13681 lt_cv_prog_compiler_c_o \
13682 need_locks \
13683 DSYMUTIL \
13684 NMEDIT \
13685 LIPO \
13686 OTOOL \
13687 OTOOL64 \
13688 shrext_cmds \
13689 export_dynamic_flag_spec \
13690 whole_archive_flag_spec \
13691 compiler_needs_object \
13692 with_gnu_ld \
13693 allow_undefined_flag \
13694 no_undefined_flag \
13695 hardcode_libdir_flag_spec \
13696 hardcode_libdir_flag_spec_ld \
13697 hardcode_libdir_separator \
13698 fix_srcfile_path \
13699 exclude_expsyms \
13700 include_expsyms \
13701 file_list_spec \
13702 variables_saved_for_relink \
13703 libname_spec \
13704 library_names_spec \
13705 soname_spec \
13706 install_override_mode \
13707 finish_eval \
13708 old_striplib \
13709 striplib; do
13710 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13711 *[\\\\\\\`\\"\\\$]*)
13712 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13715 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13717 esac
13718 done
13720 # Double-quote double-evaled strings.
13721 for var in reload_cmds \
13722 old_postinstall_cmds \
13723 old_postuninstall_cmds \
13724 old_archive_cmds \
13725 extract_expsyms_cmds \
13726 old_archive_from_new_cmds \
13727 old_archive_from_expsyms_cmds \
13728 archive_cmds \
13729 archive_expsym_cmds \
13730 module_cmds \
13731 module_expsym_cmds \
13732 export_symbols_cmds \
13733 prelink_cmds \
13734 postinstall_cmds \
13735 postuninstall_cmds \
13736 finish_cmds \
13737 sys_lib_search_path_spec \
13738 sys_lib_dlsearch_path_spec; do
13739 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13740 *[\\\\\\\`\\"\\\$]*)
13741 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13744 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13746 esac
13747 done
13749 ac_aux_dir='$ac_aux_dir'
13750 xsi_shell='$xsi_shell'
13751 lt_shell_append='$lt_shell_append'
13753 # See if we are running on zsh, and set the options which allow our
13754 # commands through without removal of \ escapes INIT.
13755 if test -n "\${ZSH_VERSION+set}" ; then
13756 setopt NO_GLOB_SUBST
13760 PACKAGE='$PACKAGE'
13761 VERSION='$VERSION'
13762 TIMESTAMP='$TIMESTAMP'
13763 RM='$RM'
13764 ofile='$ofile'
13769 srcdir="$srcdir"
13770 host="$host"
13771 target="$target"
13772 with_multisubdir="$with_multisubdir"
13773 with_multisrctop="$with_multisrctop"
13774 with_target_subdir="$with_target_subdir"
13775 ac_configure_args="${multilib_arg} ${ac_configure_args}"
13776 multi_basedir="$multi_basedir"
13777 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
13778 CC="$CC"
13779 CXX="$CXX"
13780 GFORTRAN="$GFORTRAN"
13781 GCJ="$GCJ"
13783 _ACEOF
13785 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13787 # Handling of arguments.
13788 for ac_config_target in $ac_config_targets
13790 case $ac_config_target in
13791 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13792 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13793 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13794 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13795 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13797 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13798 esac
13799 done
13802 # If the user did not use the arguments to specify the items to instantiate,
13803 # then the envvar interface is used. Set only those that are not.
13804 # We use the long form for the default assignment because of an extremely
13805 # bizarre bug on SunOS 4.1.3.
13806 if $ac_need_defaults; then
13807 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13808 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13809 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13812 # Have a temporary directory for convenience. Make it in the build tree
13813 # simply because there is no reason against having it here, and in addition,
13814 # creating and moving files from /tmp can sometimes cause problems.
13815 # Hook for its removal unless debugging.
13816 # Note that there is a small window in which the directory will not be cleaned:
13817 # after its creation but before its name has been assigned to `$tmp'.
13818 $debug ||
13820 tmp=
13821 trap 'exit_status=$?
13822 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13824 trap 'as_fn_exit 1' 1 2 13 15
13826 # Create a (secure) tmp directory for tmp files.
13829 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13830 test -n "$tmp" && test -d "$tmp"
13831 } ||
13833 tmp=./conf$$-$RANDOM
13834 (umask 077 && mkdir "$tmp")
13835 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13837 # Set up the scripts for CONFIG_FILES section.
13838 # No need to generate them if there are no CONFIG_FILES.
13839 # This happens for instance with `./config.status config.h'.
13840 if test -n "$CONFIG_FILES"; then
13843 ac_cr=`echo X | tr X '\015'`
13844 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13845 # But we know of no other shell where ac_cr would be empty at this
13846 # point, so we can use a bashism as a fallback.
13847 if test "x$ac_cr" = x; then
13848 eval ac_cr=\$\'\\r\'
13850 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13851 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13852 ac_cs_awk_cr='\r'
13853 else
13854 ac_cs_awk_cr=$ac_cr
13857 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13858 _ACEOF
13862 echo "cat >conf$$subs.awk <<_ACEOF" &&
13863 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13864 echo "_ACEOF"
13865 } >conf$$subs.sh ||
13866 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13867 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13868 ac_delim='%!_!# '
13869 for ac_last_try in false false false false false :; do
13870 . ./conf$$subs.sh ||
13871 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13873 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13874 if test $ac_delim_n = $ac_delim_num; then
13875 break
13876 elif $ac_last_try; then
13877 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13878 else
13879 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13881 done
13882 rm -f conf$$subs.sh
13884 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13885 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13886 _ACEOF
13887 sed -n '
13889 s/^/S["/; s/!.*/"]=/
13892 s/^[^!]*!//
13893 :repl
13894 t repl
13895 s/'"$ac_delim"'$//
13896 t delim
13899 s/\(.\{148\}\).*/\1/
13900 t more1
13901 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13904 b repl
13905 :more1
13906 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13909 s/.\{148\}//
13910 t nl
13911 :delim
13913 s/\(.\{148\}\).*/\1/
13914 t more2
13915 s/["\\]/\\&/g; s/^/"/; s/$/"/
13918 :more2
13919 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13922 s/.\{148\}//
13923 t delim
13924 ' <conf$$subs.awk | sed '
13925 /^[^""]/{
13927 s/\n//
13929 ' >>$CONFIG_STATUS || ac_write_fail=1
13930 rm -f conf$$subs.awk
13931 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13932 _ACAWK
13933 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13934 for (key in S) S_is_set[key] = 1
13935 FS = "\a"
13939 line = $ 0
13940 nfields = split(line, field, "@")
13941 substed = 0
13942 len = length(field[1])
13943 for (i = 2; i < nfields; i++) {
13944 key = field[i]
13945 keylen = length(key)
13946 if (S_is_set[key]) {
13947 value = S[key]
13948 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13949 len += length(value) + length(field[++i])
13950 substed = 1
13951 } else
13952 len += 1 + keylen
13955 print line
13958 _ACAWK
13959 _ACEOF
13960 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13961 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13962 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13963 else
13965 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13966 || as_fn_error "could not setup config files machinery" "$LINENO" 5
13967 _ACEOF
13969 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13970 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13971 # trailing colons and then remove the whole line if VPATH becomes empty
13972 # (actually we leave an empty line to preserve line numbers).
13973 if test "x$srcdir" = x.; then
13974 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13975 s/:*\$(srcdir):*/:/
13976 s/:*\${srcdir}:*/:/
13977 s/:*@srcdir@:*/:/
13978 s/^\([^=]*=[ ]*\):*/\1/
13979 s/:*$//
13980 s/^[^=]*=[ ]*$//
13984 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13985 fi # test -n "$CONFIG_FILES"
13987 # Set up the scripts for CONFIG_HEADERS section.
13988 # No need to generate them if there are no CONFIG_HEADERS.
13989 # This happens for instance with `./config.status Makefile'.
13990 if test -n "$CONFIG_HEADERS"; then
13991 cat >"$tmp/defines.awk" <<\_ACAWK ||
13992 BEGIN {
13993 _ACEOF
13995 # Transform confdefs.h into an awk script `defines.awk', embedded as
13996 # here-document in config.status, that substitutes the proper values into
13997 # config.h.in to produce config.h.
13999 # Create a delimiter string that does not exist in confdefs.h, to ease
14000 # handling of long lines.
14001 ac_delim='%!_!# '
14002 for ac_last_try in false false :; do
14003 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14004 if test -z "$ac_t"; then
14005 break
14006 elif $ac_last_try; then
14007 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14008 else
14009 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14011 done
14013 # For the awk script, D is an array of macro values keyed by name,
14014 # likewise P contains macro parameters if any. Preserve backslash
14015 # newline sequences.
14017 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14018 sed -n '
14019 s/.\{148\}/&'"$ac_delim"'/g
14020 t rset
14021 :rset
14022 s/^[ ]*#[ ]*define[ ][ ]*/ /
14023 t def
14025 :def
14026 s/\\$//
14027 t bsnl
14028 s/["\\]/\\&/g
14029 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14030 D["\1"]=" \3"/p
14031 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14033 :bsnl
14034 s/["\\]/\\&/g
14035 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14036 D["\1"]=" \3\\\\\\n"\\/p
14037 t cont
14038 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14039 t cont
14041 :cont
14043 s/.\{148\}/&'"$ac_delim"'/g
14044 t clear
14045 :clear
14046 s/\\$//
14047 t bsnlc
14048 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14050 :bsnlc
14051 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14052 b cont
14053 ' <confdefs.h | sed '
14054 s/'"$ac_delim"'/"\\\
14055 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14057 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14058 for (key in D) D_is_set[key] = 1
14059 FS = "\a"
14061 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14062 line = \$ 0
14063 split(line, arg, " ")
14064 if (arg[1] == "#") {
14065 defundef = arg[2]
14066 mac1 = arg[3]
14067 } else {
14068 defundef = substr(arg[1], 2)
14069 mac1 = arg[2]
14071 split(mac1, mac2, "(") #)
14072 macro = mac2[1]
14073 prefix = substr(line, 1, index(line, defundef) - 1)
14074 if (D_is_set[macro]) {
14075 # Preserve the white space surrounding the "#".
14076 print prefix "define", macro P[macro] D[macro]
14077 next
14078 } else {
14079 # Replace #undef with comments. This is necessary, for example,
14080 # in the case of _POSIX_SOURCE, which is predefined and required
14081 # on some systems where configure will not decide to define it.
14082 if (defundef == "undef") {
14083 print "/*", prefix defundef, macro, "*/"
14084 next
14088 { print }
14089 _ACAWK
14090 _ACEOF
14091 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14092 as_fn_error "could not setup config headers machinery" "$LINENO" 5
14093 fi # test -n "$CONFIG_HEADERS"
14096 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14097 shift
14098 for ac_tag
14100 case $ac_tag in
14101 :[FHLC]) ac_mode=$ac_tag; continue;;
14102 esac
14103 case $ac_mode$ac_tag in
14104 :[FHL]*:*);;
14105 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14106 :[FH]-) ac_tag=-:-;;
14107 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14108 esac
14109 ac_save_IFS=$IFS
14110 IFS=:
14111 set x $ac_tag
14112 IFS=$ac_save_IFS
14113 shift
14114 ac_file=$1
14115 shift
14117 case $ac_mode in
14118 :L) ac_source=$1;;
14119 :[FH])
14120 ac_file_inputs=
14121 for ac_f
14123 case $ac_f in
14124 -) ac_f="$tmp/stdin";;
14125 *) # Look for the file first in the build tree, then in the source tree
14126 # (if the path is not absolute). The absolute path cannot be DOS-style,
14127 # because $ac_f cannot contain `:'.
14128 test -f "$ac_f" ||
14129 case $ac_f in
14130 [\\/$]*) false;;
14131 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14132 esac ||
14133 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14134 esac
14135 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14136 as_fn_append ac_file_inputs " '$ac_f'"
14137 done
14139 # Let's still pretend it is `configure' which instantiates (i.e., don't
14140 # use $as_me), people would be surprised to read:
14141 # /* config.h. Generated by config.status. */
14142 configure_input='Generated from '`
14143 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14144 `' by configure.'
14145 if test x"$ac_file" != x-; then
14146 configure_input="$ac_file. $configure_input"
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14148 $as_echo "$as_me: creating $ac_file" >&6;}
14150 # Neutralize special characters interpreted by sed in replacement strings.
14151 case $configure_input in #(
14152 *\&* | *\|* | *\\* )
14153 ac_sed_conf_input=`$as_echo "$configure_input" |
14154 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14155 *) ac_sed_conf_input=$configure_input;;
14156 esac
14158 case $ac_tag in
14159 *:-:* | *:-) cat >"$tmp/stdin" \
14160 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14161 esac
14163 esac
14165 ac_dir=`$as_dirname -- "$ac_file" ||
14166 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14167 X"$ac_file" : 'X\(//\)[^/]' \| \
14168 X"$ac_file" : 'X\(//\)$' \| \
14169 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14170 $as_echo X"$ac_file" |
14171 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14172 s//\1/
14175 /^X\(\/\/\)[^/].*/{
14176 s//\1/
14179 /^X\(\/\/\)$/{
14180 s//\1/
14183 /^X\(\/\).*/{
14184 s//\1/
14187 s/.*/./; q'`
14188 as_dir="$ac_dir"; as_fn_mkdir_p
14189 ac_builddir=.
14191 case "$ac_dir" in
14192 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14194 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14195 # A ".." for each directory in $ac_dir_suffix.
14196 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14197 case $ac_top_builddir_sub in
14198 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14199 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14200 esac ;;
14201 esac
14202 ac_abs_top_builddir=$ac_pwd
14203 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14204 # for backward compatibility:
14205 ac_top_builddir=$ac_top_build_prefix
14207 case $srcdir in
14208 .) # We are building in place.
14209 ac_srcdir=.
14210 ac_top_srcdir=$ac_top_builddir_sub
14211 ac_abs_top_srcdir=$ac_pwd ;;
14212 [\\/]* | ?:[\\/]* ) # Absolute name.
14213 ac_srcdir=$srcdir$ac_dir_suffix;
14214 ac_top_srcdir=$srcdir
14215 ac_abs_top_srcdir=$srcdir ;;
14216 *) # Relative name.
14217 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14218 ac_top_srcdir=$ac_top_build_prefix$srcdir
14219 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14220 esac
14221 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14224 case $ac_mode in
14227 # CONFIG_FILE
14230 case $INSTALL in
14231 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14232 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14233 esac
14234 ac_MKDIR_P=$MKDIR_P
14235 case $MKDIR_P in
14236 [\\/$]* | ?:[\\/]* ) ;;
14237 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14238 esac
14239 _ACEOF
14241 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14242 # If the template does not know about datarootdir, expand it.
14243 # FIXME: This hack should be removed a few years after 2.60.
14244 ac_datarootdir_hack=; ac_datarootdir_seen=
14245 ac_sed_dataroot='
14246 /datarootdir/ {
14250 /@datadir@/p
14251 /@docdir@/p
14252 /@infodir@/p
14253 /@localedir@/p
14254 /@mandir@/p'
14255 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14256 *datarootdir*) ac_datarootdir_seen=yes;;
14257 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14259 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14260 _ACEOF
14261 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14262 ac_datarootdir_hack='
14263 s&@datadir@&$datadir&g
14264 s&@docdir@&$docdir&g
14265 s&@infodir@&$infodir&g
14266 s&@localedir@&$localedir&g
14267 s&@mandir@&$mandir&g
14268 s&\\\${datarootdir}&$datarootdir&g' ;;
14269 esac
14270 _ACEOF
14272 # Neutralize VPATH when `$srcdir' = `.'.
14273 # Shell code in configure.ac might set extrasub.
14274 # FIXME: do we really want to maintain this feature?
14275 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14276 ac_sed_extra="$ac_vpsub
14277 $extrasub
14278 _ACEOF
14279 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14281 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14282 s|@configure_input@|$ac_sed_conf_input|;t t
14283 s&@top_builddir@&$ac_top_builddir_sub&;t t
14284 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14285 s&@srcdir@&$ac_srcdir&;t t
14286 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14287 s&@top_srcdir@&$ac_top_srcdir&;t t
14288 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14289 s&@builddir@&$ac_builddir&;t t
14290 s&@abs_builddir@&$ac_abs_builddir&;t t
14291 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14292 s&@INSTALL@&$ac_INSTALL&;t t
14293 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14294 $ac_datarootdir_hack
14296 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14297 || as_fn_error "could not create $ac_file" "$LINENO" 5
14299 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14300 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14301 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14303 which seems to be undefined. Please make sure it is defined." >&5
14304 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14305 which seems to be undefined. Please make sure it is defined." >&2;}
14307 rm -f "$tmp/stdin"
14308 case $ac_file in
14309 -) cat "$tmp/out" && rm -f "$tmp/out";;
14310 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14311 esac \
14312 || as_fn_error "could not create $ac_file" "$LINENO" 5
14316 # CONFIG_HEADER
14318 if test x"$ac_file" != x-; then
14320 $as_echo "/* $configure_input */" \
14321 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14322 } >"$tmp/config.h" \
14323 || as_fn_error "could not create $ac_file" "$LINENO" 5
14324 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14326 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14327 else
14328 rm -f "$ac_file"
14329 mv "$tmp/config.h" "$ac_file" \
14330 || as_fn_error "could not create $ac_file" "$LINENO" 5
14332 else
14333 $as_echo "/* $configure_input */" \
14334 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14335 || as_fn_error "could not create -" "$LINENO" 5
14337 # Compute "$ac_file"'s index in $config_headers.
14338 _am_arg="$ac_file"
14339 _am_stamp_count=1
14340 for _am_header in $config_headers :; do
14341 case $_am_header in
14342 $_am_arg | $_am_arg:* )
14343 break ;;
14345 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14346 esac
14347 done
14348 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14349 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14350 X"$_am_arg" : 'X\(//\)[^/]' \| \
14351 X"$_am_arg" : 'X\(//\)$' \| \
14352 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14353 $as_echo X"$_am_arg" |
14354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14355 s//\1/
14358 /^X\(\/\/\)[^/].*/{
14359 s//\1/
14362 /^X\(\/\/\)$/{
14363 s//\1/
14366 /^X\(\/\).*/{
14367 s//\1/
14370 s/.*/./; q'`/stamp-h$_am_stamp_count
14373 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14374 $as_echo "$as_me: executing $ac_file commands" >&6;}
14376 esac
14379 case $ac_file$ac_mode in
14380 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14381 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14382 # are listed without --file. Let's play safe and only enable the eval
14383 # if we detect the quoting.
14384 case $CONFIG_FILES in
14385 *\'*) eval set x "$CONFIG_FILES" ;;
14386 *) set x $CONFIG_FILES ;;
14387 esac
14388 shift
14389 for mf
14391 # Strip MF so we end up with the name of the file.
14392 mf=`echo "$mf" | sed -e 's/:.*$//'`
14393 # Check whether this is an Automake generated Makefile or not.
14394 # We used to match only the files named `Makefile.in', but
14395 # some people rename them; so instead we look at the file content.
14396 # Grep'ing the first line is not enough: some people post-process
14397 # each Makefile.in and add a new line on top of each file to say so.
14398 # Grep'ing the whole file is not good either: AIX grep has a line
14399 # limit of 2048, but all sed's we know have understand at least 4000.
14400 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14401 dirpart=`$as_dirname -- "$mf" ||
14402 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14403 X"$mf" : 'X\(//\)[^/]' \| \
14404 X"$mf" : 'X\(//\)$' \| \
14405 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14406 $as_echo X"$mf" |
14407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14408 s//\1/
14411 /^X\(\/\/\)[^/].*/{
14412 s//\1/
14415 /^X\(\/\/\)$/{
14416 s//\1/
14419 /^X\(\/\).*/{
14420 s//\1/
14423 s/.*/./; q'`
14424 else
14425 continue
14427 # Extract the definition of DEPDIR, am__include, and am__quote
14428 # from the Makefile without running `make'.
14429 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14430 test -z "$DEPDIR" && continue
14431 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14432 test -z "am__include" && continue
14433 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14434 # When using ansi2knr, U may be empty or an underscore; expand it
14435 U=`sed -n 's/^U = //p' < "$mf"`
14436 # Find all dependency output files, they are included files with
14437 # $(DEPDIR) in their names. We invoke sed twice because it is the
14438 # simplest approach to changing $(DEPDIR) to its actual value in the
14439 # expansion.
14440 for file in `sed -n "
14441 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14442 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14443 # Make sure the directory exists.
14444 test -f "$dirpart/$file" && continue
14445 fdir=`$as_dirname -- "$file" ||
14446 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14447 X"$file" : 'X\(//\)[^/]' \| \
14448 X"$file" : 'X\(//\)$' \| \
14449 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14450 $as_echo X"$file" |
14451 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14452 s//\1/
14455 /^X\(\/\/\)[^/].*/{
14456 s//\1/
14459 /^X\(\/\/\)$/{
14460 s//\1/
14463 /^X\(\/\).*/{
14464 s//\1/
14467 s/.*/./; q'`
14468 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14469 # echo "creating $dirpart/$file"
14470 echo '# dummy' > "$dirpart/$file"
14471 done
14472 done
14475 "libtool":C)
14477 # See if we are running on zsh, and set the options which allow our
14478 # commands through without removal of \ escapes.
14479 if test -n "${ZSH_VERSION+set}" ; then
14480 setopt NO_GLOB_SUBST
14483 cfgfile="${ofile}T"
14484 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14485 $RM "$cfgfile"
14487 cat <<_LT_EOF >> "$cfgfile"
14488 #! $SHELL
14490 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14491 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14492 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14493 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14495 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14496 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
14497 # Written by Gordon Matzigkeit, 1996
14499 # This file is part of GNU Libtool.
14501 # GNU Libtool is free software; you can redistribute it and/or
14502 # modify it under the terms of the GNU General Public License as
14503 # published by the Free Software Foundation; either version 2 of
14504 # the License, or (at your option) any later version.
14506 # As a special exception to the GNU General Public License,
14507 # if you distribute this file as part of a program or library that
14508 # is built using GNU Libtool, you may include this file under the
14509 # same distribution terms that you use for the rest of that program.
14511 # GNU Libtool is distributed in the hope that it will be useful,
14512 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14513 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14514 # GNU General Public License for more details.
14516 # You should have received a copy of the GNU General Public License
14517 # along with GNU Libtool; see the file COPYING. If not, a copy
14518 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14519 # obtained by writing to the Free Software Foundation, Inc.,
14520 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14523 # The names of the tagged configurations supported by this script.
14524 available_tags=""
14526 # ### BEGIN LIBTOOL CONFIG
14528 # Which release of libtool.m4 was used?
14529 macro_version=$macro_version
14530 macro_revision=$macro_revision
14532 # Whether or not to build shared libraries.
14533 build_libtool_libs=$enable_shared
14535 # Whether or not to build static libraries.
14536 build_old_libs=$enable_static
14538 # What type of objects to build.
14539 pic_mode=$pic_mode
14541 # Whether or not to optimize for fast installation.
14542 fast_install=$enable_fast_install
14544 # Shell to use when invoking shell scripts.
14545 SHELL=$lt_SHELL
14547 # An echo program that protects backslashes.
14548 ECHO=$lt_ECHO
14550 # The host system.
14551 host_alias=$host_alias
14552 host=$host
14553 host_os=$host_os
14555 # The build system.
14556 build_alias=$build_alias
14557 build=$build
14558 build_os=$build_os
14560 # A sed program that does not truncate output.
14561 SED=$lt_SED
14563 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14564 Xsed="\$SED -e 1s/^X//"
14566 # A grep program that handles long lines.
14567 GREP=$lt_GREP
14569 # An ERE matcher.
14570 EGREP=$lt_EGREP
14572 # A literal string matcher.
14573 FGREP=$lt_FGREP
14575 # A BSD- or MS-compatible name lister.
14576 NM=$lt_NM
14578 # Whether we need soft or hard links.
14579 LN_S=$lt_LN_S
14581 # What is the maximum length of a command?
14582 max_cmd_len=$max_cmd_len
14584 # Object file suffix (normally "o").
14585 objext=$ac_objext
14587 # Executable file suffix (normally "").
14588 exeext=$exeext
14590 # whether the shell understands "unset".
14591 lt_unset=$lt_unset
14593 # turn spaces into newlines.
14594 SP2NL=$lt_lt_SP2NL
14596 # turn newlines into spaces.
14597 NL2SP=$lt_lt_NL2SP
14599 # An object symbol dumper.
14600 OBJDUMP=$lt_OBJDUMP
14602 # Method to check whether dependent libraries are shared objects.
14603 deplibs_check_method=$lt_deplibs_check_method
14605 # Command to use when deplibs_check_method == "file_magic".
14606 file_magic_cmd=$lt_file_magic_cmd
14608 # The archiver.
14609 AR=$lt_AR
14610 AR_FLAGS=$lt_AR_FLAGS
14612 # A symbol stripping program.
14613 STRIP=$lt_STRIP
14615 # Commands used to install an old-style archive.
14616 RANLIB=$lt_RANLIB
14617 old_postinstall_cmds=$lt_old_postinstall_cmds
14618 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14620 # Whether to use a lock for old archive extraction.
14621 lock_old_archive_extraction=$lock_old_archive_extraction
14623 # A C compiler.
14624 LTCC=$lt_CC
14626 # LTCC compiler flags.
14627 LTCFLAGS=$lt_CFLAGS
14629 # Take the output of nm and produce a listing of raw symbols and C names.
14630 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14632 # Transform the output of nm in a proper C declaration.
14633 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14635 # Transform the output of nm in a C name address pair.
14636 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14638 # Transform the output of nm in a C name address pair when lib prefix is needed.
14639 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14641 # The name of the directory that contains temporary libtool files.
14642 objdir=$objdir
14644 # Used to examine libraries when file_magic_cmd begins with "file".
14645 MAGIC_CMD=$MAGIC_CMD
14647 # Must we lock files when doing compilation?
14648 need_locks=$lt_need_locks
14650 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14651 DSYMUTIL=$lt_DSYMUTIL
14653 # Tool to change global to local symbols on Mac OS X.
14654 NMEDIT=$lt_NMEDIT
14656 # Tool to manipulate fat objects and archives on Mac OS X.
14657 LIPO=$lt_LIPO
14659 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14660 OTOOL=$lt_OTOOL
14662 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14663 OTOOL64=$lt_OTOOL64
14665 # Old archive suffix (normally "a").
14666 libext=$libext
14668 # Shared library suffix (normally ".so").
14669 shrext_cmds=$lt_shrext_cmds
14671 # The commands to extract the exported symbol list from a shared archive.
14672 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14674 # Variables whose values should be saved in libtool wrapper scripts and
14675 # restored at link time.
14676 variables_saved_for_relink=$lt_variables_saved_for_relink
14678 # Do we need the "lib" prefix for modules?
14679 need_lib_prefix=$need_lib_prefix
14681 # Do we need a version for libraries?
14682 need_version=$need_version
14684 # Library versioning type.
14685 version_type=$version_type
14687 # Shared library runtime path variable.
14688 runpath_var=$runpath_var
14690 # Shared library path variable.
14691 shlibpath_var=$shlibpath_var
14693 # Is shlibpath searched before the hard-coded library search path?
14694 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14696 # Format of library name prefix.
14697 libname_spec=$lt_libname_spec
14699 # List of archive names. First name is the real one, the rest are links.
14700 # The last name is the one that the linker finds with -lNAME
14701 library_names_spec=$lt_library_names_spec
14703 # The coded name of the library, if different from the real name.
14704 soname_spec=$lt_soname_spec
14706 # Permission mode override for installation of shared libraries.
14707 install_override_mode=$lt_install_override_mode
14709 # Command to use after installation of a shared archive.
14710 postinstall_cmds=$lt_postinstall_cmds
14712 # Command to use after uninstallation of a shared archive.
14713 postuninstall_cmds=$lt_postuninstall_cmds
14715 # Commands used to finish a libtool library installation in a directory.
14716 finish_cmds=$lt_finish_cmds
14718 # As "finish_cmds", except a single script fragment to be evaled but
14719 # not shown.
14720 finish_eval=$lt_finish_eval
14722 # Whether we should hardcode library paths into libraries.
14723 hardcode_into_libs=$hardcode_into_libs
14725 # Compile-time system search path for libraries.
14726 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14728 # Run-time system search path for libraries.
14729 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14731 # Whether dlopen is supported.
14732 dlopen_support=$enable_dlopen
14734 # Whether dlopen of programs is supported.
14735 dlopen_self=$enable_dlopen_self
14737 # Whether dlopen of statically linked programs is supported.
14738 dlopen_self_static=$enable_dlopen_self_static
14740 # Commands to strip libraries.
14741 old_striplib=$lt_old_striplib
14742 striplib=$lt_striplib
14745 # The linker used to build libraries.
14746 LD=$lt_LD
14748 # How to create reloadable object files.
14749 reload_flag=$lt_reload_flag
14750 reload_cmds=$lt_reload_cmds
14752 # Commands used to build an old-style archive.
14753 old_archive_cmds=$lt_old_archive_cmds
14755 # A language specific compiler.
14756 CC=$lt_compiler
14758 # Is the compiler the GNU compiler?
14759 with_gcc=$GCC
14761 # Compiler flag to turn off builtin functions.
14762 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14764 # How to pass a linker flag through the compiler.
14765 wl=$lt_lt_prog_compiler_wl
14767 # Additional compiler flags for building library objects.
14768 pic_flag=$lt_lt_prog_compiler_pic
14770 # Compiler flag to prevent dynamic linking.
14771 link_static_flag=$lt_lt_prog_compiler_static
14773 # Does compiler simultaneously support -c and -o options?
14774 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14776 # Whether or not to add -lc for building shared libraries.
14777 build_libtool_need_lc=$archive_cmds_need_lc
14779 # Whether or not to disallow shared libs when runtime libs are static.
14780 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14782 # Compiler flag to allow reflexive dlopens.
14783 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14785 # Compiler flag to generate shared objects directly from archives.
14786 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14788 # Whether the compiler copes with passing no objects directly.
14789 compiler_needs_object=$lt_compiler_needs_object
14791 # Create an old-style archive from a shared archive.
14792 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14794 # Create a temporary old-style archive to link instead of a shared archive.
14795 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14797 # Commands used to build a shared archive.
14798 archive_cmds=$lt_archive_cmds
14799 archive_expsym_cmds=$lt_archive_expsym_cmds
14801 # Commands used to build a loadable module if different from building
14802 # a shared archive.
14803 module_cmds=$lt_module_cmds
14804 module_expsym_cmds=$lt_module_expsym_cmds
14806 # Whether we are building with GNU ld or not.
14807 with_gnu_ld=$lt_with_gnu_ld
14809 # Flag that allows shared libraries with undefined symbols to be built.
14810 allow_undefined_flag=$lt_allow_undefined_flag
14812 # Flag that enforces no undefined symbols.
14813 no_undefined_flag=$lt_no_undefined_flag
14815 # Flag to hardcode \$libdir into a binary during linking.
14816 # This must work even if \$libdir does not exist
14817 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14819 # If ld is used when linking, flag to hardcode \$libdir into a binary
14820 # during linking. This must work even if \$libdir does not exist.
14821 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14823 # Whether we need a single "-rpath" flag with a separated argument.
14824 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14826 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14827 # DIR into the resulting binary.
14828 hardcode_direct=$hardcode_direct
14830 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14831 # DIR into the resulting binary and the resulting library dependency is
14832 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14833 # library is relocated.
14834 hardcode_direct_absolute=$hardcode_direct_absolute
14836 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14837 # into the resulting binary.
14838 hardcode_minus_L=$hardcode_minus_L
14840 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14841 # into the resulting binary.
14842 hardcode_shlibpath_var=$hardcode_shlibpath_var
14844 # Set to "yes" if building a shared library automatically hardcodes DIR
14845 # into the library and all subsequent libraries and executables linked
14846 # against it.
14847 hardcode_automatic=$hardcode_automatic
14849 # Set to yes if linker adds runtime paths of dependent libraries
14850 # to runtime path list.
14851 inherit_rpath=$inherit_rpath
14853 # Whether libtool must link a program against all its dependency libraries.
14854 link_all_deplibs=$link_all_deplibs
14856 # Fix the shell variable \$srcfile for the compiler.
14857 fix_srcfile_path=$lt_fix_srcfile_path
14859 # Set to "yes" if exported symbols are required.
14860 always_export_symbols=$always_export_symbols
14862 # The commands to list exported symbols.
14863 export_symbols_cmds=$lt_export_symbols_cmds
14865 # Symbols that should not be listed in the preloaded symbols.
14866 exclude_expsyms=$lt_exclude_expsyms
14868 # Symbols that must always be exported.
14869 include_expsyms=$lt_include_expsyms
14871 # Commands necessary for linking programs (against libraries) with templates.
14872 prelink_cmds=$lt_prelink_cmds
14874 # Specify filename containing input files.
14875 file_list_spec=$lt_file_list_spec
14877 # How to hardcode a shared library path into an executable.
14878 hardcode_action=$hardcode_action
14880 # ### END LIBTOOL CONFIG
14882 _LT_EOF
14884 case $host_os in
14885 aix3*)
14886 cat <<\_LT_EOF >> "$cfgfile"
14887 # AIX sometimes has problems with the GCC collect2 program. For some
14888 # reason, if we set the COLLECT_NAMES environment variable, the problems
14889 # vanish in a puff of smoke.
14890 if test "X${COLLECT_NAMES+set}" != Xset; then
14891 COLLECT_NAMES=
14892 export COLLECT_NAMES
14894 _LT_EOF
14896 esac
14899 ltmain="$ac_aux_dir/ltmain.sh"
14902 # We use sed instead of cat because bash on DJGPP gets confused if
14903 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14904 # text mode, it properly converts lines to CR/LF. This bash problem
14905 # is reportedly fixed, but why not run on old versions too?
14906 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14907 || (rm -f "$cfgfile"; exit 1)
14909 case $xsi_shell in
14910 yes)
14911 cat << \_LT_EOF >> "$cfgfile"
14913 # func_dirname file append nondir_replacement
14914 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14915 # otherwise set result to NONDIR_REPLACEMENT.
14916 func_dirname ()
14918 case ${1} in
14919 */*) func_dirname_result="${1%/*}${2}" ;;
14920 * ) func_dirname_result="${3}" ;;
14921 esac
14924 # func_basename file
14925 func_basename ()
14927 func_basename_result="${1##*/}"
14930 # func_dirname_and_basename file append nondir_replacement
14931 # perform func_basename and func_dirname in a single function
14932 # call:
14933 # dirname: Compute the dirname of FILE. If nonempty,
14934 # add APPEND to the result, otherwise set result
14935 # to NONDIR_REPLACEMENT.
14936 # value returned in "$func_dirname_result"
14937 # basename: Compute filename of FILE.
14938 # value retuned in "$func_basename_result"
14939 # Implementation must be kept synchronized with func_dirname
14940 # and func_basename. For efficiency, we do not delegate to
14941 # those functions but instead duplicate the functionality here.
14942 func_dirname_and_basename ()
14944 case ${1} in
14945 */*) func_dirname_result="${1%/*}${2}" ;;
14946 * ) func_dirname_result="${3}" ;;
14947 esac
14948 func_basename_result="${1##*/}"
14951 # func_stripname prefix suffix name
14952 # strip PREFIX and SUFFIX off of NAME.
14953 # PREFIX and SUFFIX must not contain globbing or regex special
14954 # characters, hashes, percent signs, but SUFFIX may contain a leading
14955 # dot (in which case that matches only a dot).
14956 func_stripname ()
14958 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14959 # positional parameters, so assign one to ordinary parameter first.
14960 func_stripname_result=${3}
14961 func_stripname_result=${func_stripname_result#"${1}"}
14962 func_stripname_result=${func_stripname_result%"${2}"}
14965 # func_opt_split
14966 func_opt_split ()
14968 func_opt_split_opt=${1%%=*}
14969 func_opt_split_arg=${1#*=}
14972 # func_lo2o object
14973 func_lo2o ()
14975 case ${1} in
14976 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14977 *) func_lo2o_result=${1} ;;
14978 esac
14981 # func_xform libobj-or-source
14982 func_xform ()
14984 func_xform_result=${1%.*}.lo
14987 # func_arith arithmetic-term...
14988 func_arith ()
14990 func_arith_result=$(( $* ))
14993 # func_len string
14994 # STRING may not start with a hyphen.
14995 func_len ()
14997 func_len_result=${#1}
15000 _LT_EOF
15002 *) # Bourne compatible functions.
15003 cat << \_LT_EOF >> "$cfgfile"
15005 # func_dirname file append nondir_replacement
15006 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15007 # otherwise set result to NONDIR_REPLACEMENT.
15008 func_dirname ()
15010 # Extract subdirectory from the argument.
15011 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
15012 if test "X$func_dirname_result" = "X${1}"; then
15013 func_dirname_result="${3}"
15014 else
15015 func_dirname_result="$func_dirname_result${2}"
15019 # func_basename file
15020 func_basename ()
15022 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
15026 # func_stripname prefix suffix name
15027 # strip PREFIX and SUFFIX off of NAME.
15028 # PREFIX and SUFFIX must not contain globbing or regex special
15029 # characters, hashes, percent signs, but SUFFIX may contain a leading
15030 # dot (in which case that matches only a dot).
15031 # func_strip_suffix prefix name
15032 func_stripname ()
15034 case ${2} in
15035 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
15036 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
15037 esac
15040 # sed scripts:
15041 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15042 my_sed_long_arg='1s/^-[^=]*=//'
15044 # func_opt_split
15045 func_opt_split ()
15047 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
15048 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
15051 # func_lo2o object
15052 func_lo2o ()
15054 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
15057 # func_xform libobj-or-source
15058 func_xform ()
15060 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
15063 # func_arith arithmetic-term...
15064 func_arith ()
15066 func_arith_result=`expr "$@"`
15069 # func_len string
15070 # STRING may not start with a hyphen.
15071 func_len ()
15073 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15076 _LT_EOF
15077 esac
15079 case $lt_shell_append in
15080 yes)
15081 cat << \_LT_EOF >> "$cfgfile"
15083 # func_append var value
15084 # Append VALUE to the end of shell variable VAR.
15085 func_append ()
15087 eval "$1+=\$2"
15089 _LT_EOF
15092 cat << \_LT_EOF >> "$cfgfile"
15094 # func_append var value
15095 # Append VALUE to the end of shell variable VAR.
15096 func_append ()
15098 eval "$1=\$$1\$2"
15101 _LT_EOF
15103 esac
15106 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15107 || (rm -f "$cfgfile"; exit 1)
15109 mv -f "$cfgfile" "$ofile" ||
15110 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15111 chmod +x "$ofile"
15114 "default-1":C)
15115 # Only add multilib support code if we just rebuilt the top-level
15116 # Makefile.
15117 case " $CONFIG_FILES " in
15118 *" Makefile "*)
15119 ac_file=Makefile . ${multi_basedir}/config-ml.in
15121 esac ;;
15123 esac
15124 done # for ac_tag
15127 as_fn_exit 0
15128 _ACEOF
15129 ac_clean_files=$ac_clean_files_save
15131 test $ac_write_fail = 0 ||
15132 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15135 # configure is writing to config.log, and then calls config.status.
15136 # config.status does its own redirection, appending to config.log.
15137 # Unfortunately, on DOS this fails, as config.log is still kept open
15138 # by configure, so config.status won't be able to write to it; its
15139 # output is simply discarded. So we exec the FD to /dev/null,
15140 # effectively closing config.log, so it can be properly (re)opened and
15141 # appended to by config.status. When coming back to configure, we
15142 # need to make the FD available again.
15143 if test "$no_create" != yes; then
15144 ac_cs_success=:
15145 ac_config_status_args=
15146 test "$silent" = yes &&
15147 ac_config_status_args="$ac_config_status_args --quiet"
15148 exec 5>/dev/null
15149 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15150 exec 5>>config.log
15151 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15152 # would make configure fail if this is the last instruction.
15153 $ac_cs_success || as_fn_exit $?
15155 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15157 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}