[PR67828] don't unswitch on default defs of non-parms
[official-gcc.git] / lto-plugin / configure
blob36201e63636ae07464a96f4a351ecb0c70382d76
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for LTO plugin for ld 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='LTO plugin for ld'
558 PACKAGE_TARNAME='lto-plugin'
559 PACKAGE_VERSION='0.1'
560 PACKAGE_STRING='LTO plugin for ld 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 target_noncanonical
605 lt_host_flags
606 OTOOL64
607 OTOOL
608 LIPO
609 NMEDIT
610 DSYMUTIL
611 RANLIB
613 OBJDUMP
614 LN_S
616 ac_ct_DUMPBIN
617 DUMPBIN
619 FGREP
621 LIBTOOL
622 real_target_noncanonical
623 accel_dir_suffix
624 gcc_build_dir
625 ac_lto_plugin_ldflags
626 ac_lto_plugin_warn_cflags
627 EGREP
628 GREP
630 am__fastdepCC_FALSE
631 am__fastdepCC_TRUE
632 CCDEPMODE
633 am__nodep
634 AMDEPBACKSLASH
635 AMDEP_FALSE
636 AMDEP_TRUE
637 am__quote
638 am__include
639 DEPDIR
640 OBJEXT
641 EXEEXT
642 ac_ct_CC
643 CPPFLAGS
644 LDFLAGS
645 CFLAGS
647 with_libiberty
648 MAINT
649 MAINTAINER_MODE_FALSE
650 MAINTAINER_MODE_TRUE
651 am__untar
652 am__tar
653 AMTAR
654 am__leading_dot
655 SET_MAKE
657 mkdir_p
658 MKDIR_P
659 INSTALL_STRIP_PROGRAM
660 STRIP
661 install_sh
662 MAKEINFO
663 AUTOHEADER
664 AUTOMAKE
665 AUTOCONF
666 ACLOCAL
667 VERSION
668 PACKAGE
669 CYGPATH_W
670 am__isrc
671 INSTALL_DATA
672 INSTALL_SCRIPT
673 INSTALL_PROGRAM
674 target_subdir
675 host_subdir
676 build_subdir
677 build_libsubdir
678 target_os
679 target_vendor
680 target_cpu
681 target
682 host_os
683 host_vendor
684 host_cpu
685 host
686 build_os
687 build_vendor
688 build_cpu
689 build
690 target_alias
691 host_alias
692 build_alias
693 LIBS
694 ECHO_T
695 ECHO_N
696 ECHO_C
697 DEFS
698 mandir
699 localedir
700 libdir
701 psdir
702 pdfdir
703 dvidir
704 htmldir
705 infodir
706 docdir
707 oldincludedir
708 includedir
709 localstatedir
710 sharedstatedir
711 sysconfdir
712 datadir
713 datarootdir
714 libexecdir
715 sbindir
716 bindir
717 program_transform_name
718 prefix
719 exec_prefix
720 PACKAGE_URL
721 PACKAGE_BUGREPORT
722 PACKAGE_STRING
723 PACKAGE_VERSION
724 PACKAGE_TARNAME
725 PACKAGE_NAME
726 PATH_SEPARATOR
727 SHELL'
728 ac_subst_files=''
729 ac_user_opts='
730 enable_option_checking
731 with_build_libsubdir
732 enable_maintainer_mode
733 with_libiberty
734 enable_dependency_tracking
735 enable_largefile
736 enable_shared
737 enable_static
738 with_pic
739 enable_fast_install
740 with_gnu_ld
741 enable_libtool_lock
743 ac_precious_vars='build_alias
744 host_alias
745 target_alias
747 CFLAGS
748 LDFLAGS
749 LIBS
750 CPPFLAGS
751 CPP'
754 # Initialize some variables set by options.
755 ac_init_help=
756 ac_init_version=false
757 ac_unrecognized_opts=
758 ac_unrecognized_sep=
759 # The variables have the same names as the options, with
760 # dashes changed to underlines.
761 cache_file=/dev/null
762 exec_prefix=NONE
763 no_create=
764 no_recursion=
765 prefix=NONE
766 program_prefix=NONE
767 program_suffix=NONE
768 program_transform_name=s,x,x,
769 silent=
770 site=
771 srcdir=
772 verbose=
773 x_includes=NONE
774 x_libraries=NONE
776 # Installation directory options.
777 # These are left unexpanded so users can "make install exec_prefix=/foo"
778 # and all the variables that are supposed to be based on exec_prefix
779 # by default will actually change.
780 # Use braces instead of parens because sh, perl, etc. also accept them.
781 # (The list follows the same order as the GNU Coding Standards.)
782 bindir='${exec_prefix}/bin'
783 sbindir='${exec_prefix}/sbin'
784 libexecdir='${exec_prefix}/libexec'
785 datarootdir='${prefix}/share'
786 datadir='${datarootdir}'
787 sysconfdir='${prefix}/etc'
788 sharedstatedir='${prefix}/com'
789 localstatedir='${prefix}/var'
790 includedir='${prefix}/include'
791 oldincludedir='/usr/include'
792 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
793 infodir='${datarootdir}/info'
794 htmldir='${docdir}'
795 dvidir='${docdir}'
796 pdfdir='${docdir}'
797 psdir='${docdir}'
798 libdir='${exec_prefix}/lib'
799 localedir='${datarootdir}/locale'
800 mandir='${datarootdir}/man'
802 ac_prev=
803 ac_dashdash=
804 for ac_option
806 # If the previous option needs an argument, assign it.
807 if test -n "$ac_prev"; then
808 eval $ac_prev=\$ac_option
809 ac_prev=
810 continue
813 case $ac_option in
814 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
815 *) ac_optarg=yes ;;
816 esac
818 # Accept the important Cygnus configure options, so we can diagnose typos.
820 case $ac_dashdash$ac_option in
822 ac_dashdash=yes ;;
824 -bindir | --bindir | --bindi | --bind | --bin | --bi)
825 ac_prev=bindir ;;
826 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
827 bindir=$ac_optarg ;;
829 -build | --build | --buil | --bui | --bu)
830 ac_prev=build_alias ;;
831 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
832 build_alias=$ac_optarg ;;
834 -cache-file | --cache-file | --cache-fil | --cache-fi \
835 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
836 ac_prev=cache_file ;;
837 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
838 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
839 cache_file=$ac_optarg ;;
841 --config-cache | -C)
842 cache_file=config.cache ;;
844 -datadir | --datadir | --datadi | --datad)
845 ac_prev=datadir ;;
846 -datadir=* | --datadir=* | --datadi=* | --datad=*)
847 datadir=$ac_optarg ;;
849 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
850 | --dataroo | --dataro | --datar)
851 ac_prev=datarootdir ;;
852 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
853 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
854 datarootdir=$ac_optarg ;;
856 -disable-* | --disable-*)
857 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
858 # Reject names that are not valid shell variable names.
859 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
860 as_fn_error "invalid feature name: $ac_useropt"
861 ac_useropt_orig=$ac_useropt
862 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
863 case $ac_user_opts in
865 "enable_$ac_useropt"
866 "*) ;;
867 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
868 ac_unrecognized_sep=', ';;
869 esac
870 eval enable_$ac_useropt=no ;;
872 -docdir | --docdir | --docdi | --doc | --do)
873 ac_prev=docdir ;;
874 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
875 docdir=$ac_optarg ;;
877 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
878 ac_prev=dvidir ;;
879 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
880 dvidir=$ac_optarg ;;
882 -enable-* | --enable-*)
883 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
884 # Reject names that are not valid shell variable names.
885 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
886 as_fn_error "invalid feature name: $ac_useropt"
887 ac_useropt_orig=$ac_useropt
888 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
889 case $ac_user_opts in
891 "enable_$ac_useropt"
892 "*) ;;
893 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
894 ac_unrecognized_sep=', ';;
895 esac
896 eval enable_$ac_useropt=\$ac_optarg ;;
898 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
899 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
900 | --exec | --exe | --ex)
901 ac_prev=exec_prefix ;;
902 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
903 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
904 | --exec=* | --exe=* | --ex=*)
905 exec_prefix=$ac_optarg ;;
907 -gas | --gas | --ga | --g)
908 # Obsolete; use --with-gas.
909 with_gas=yes ;;
911 -help | --help | --hel | --he | -h)
912 ac_init_help=long ;;
913 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
914 ac_init_help=recursive ;;
915 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
916 ac_init_help=short ;;
918 -host | --host | --hos | --ho)
919 ac_prev=host_alias ;;
920 -host=* | --host=* | --hos=* | --ho=*)
921 host_alias=$ac_optarg ;;
923 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
924 ac_prev=htmldir ;;
925 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
926 | --ht=*)
927 htmldir=$ac_optarg ;;
929 -includedir | --includedir | --includedi | --included | --include \
930 | --includ | --inclu | --incl | --inc)
931 ac_prev=includedir ;;
932 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
933 | --includ=* | --inclu=* | --incl=* | --inc=*)
934 includedir=$ac_optarg ;;
936 -infodir | --infodir | --infodi | --infod | --info | --inf)
937 ac_prev=infodir ;;
938 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
939 infodir=$ac_optarg ;;
941 -libdir | --libdir | --libdi | --libd)
942 ac_prev=libdir ;;
943 -libdir=* | --libdir=* | --libdi=* | --libd=*)
944 libdir=$ac_optarg ;;
946 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
947 | --libexe | --libex | --libe)
948 ac_prev=libexecdir ;;
949 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
950 | --libexe=* | --libex=* | --libe=*)
951 libexecdir=$ac_optarg ;;
953 -localedir | --localedir | --localedi | --localed | --locale)
954 ac_prev=localedir ;;
955 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
956 localedir=$ac_optarg ;;
958 -localstatedir | --localstatedir | --localstatedi | --localstated \
959 | --localstate | --localstat | --localsta | --localst | --locals)
960 ac_prev=localstatedir ;;
961 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
962 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
963 localstatedir=$ac_optarg ;;
965 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
966 ac_prev=mandir ;;
967 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
968 mandir=$ac_optarg ;;
970 -nfp | --nfp | --nf)
971 # Obsolete; use --without-fp.
972 with_fp=no ;;
974 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
975 | --no-cr | --no-c | -n)
976 no_create=yes ;;
978 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
979 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
980 no_recursion=yes ;;
982 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
983 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
984 | --oldin | --oldi | --old | --ol | --o)
985 ac_prev=oldincludedir ;;
986 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
987 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
988 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
989 oldincludedir=$ac_optarg ;;
991 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
992 ac_prev=prefix ;;
993 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
994 prefix=$ac_optarg ;;
996 -program-prefix | --program-prefix | --program-prefi | --program-pref \
997 | --program-pre | --program-pr | --program-p)
998 ac_prev=program_prefix ;;
999 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1000 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1001 program_prefix=$ac_optarg ;;
1003 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1004 | --program-suf | --program-su | --program-s)
1005 ac_prev=program_suffix ;;
1006 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1007 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1008 program_suffix=$ac_optarg ;;
1010 -program-transform-name | --program-transform-name \
1011 | --program-transform-nam | --program-transform-na \
1012 | --program-transform-n | --program-transform- \
1013 | --program-transform | --program-transfor \
1014 | --program-transfo | --program-transf \
1015 | --program-trans | --program-tran \
1016 | --progr-tra | --program-tr | --program-t)
1017 ac_prev=program_transform_name ;;
1018 -program-transform-name=* | --program-transform-name=* \
1019 | --program-transform-nam=* | --program-transform-na=* \
1020 | --program-transform-n=* | --program-transform-=* \
1021 | --program-transform=* | --program-transfor=* \
1022 | --program-transfo=* | --program-transf=* \
1023 | --program-trans=* | --program-tran=* \
1024 | --progr-tra=* | --program-tr=* | --program-t=*)
1025 program_transform_name=$ac_optarg ;;
1027 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1028 ac_prev=pdfdir ;;
1029 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1030 pdfdir=$ac_optarg ;;
1032 -psdir | --psdir | --psdi | --psd | --ps)
1033 ac_prev=psdir ;;
1034 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1035 psdir=$ac_optarg ;;
1037 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1038 | -silent | --silent | --silen | --sile | --sil)
1039 silent=yes ;;
1041 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1042 ac_prev=sbindir ;;
1043 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1044 | --sbi=* | --sb=*)
1045 sbindir=$ac_optarg ;;
1047 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1048 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1049 | --sharedst | --shareds | --shared | --share | --shar \
1050 | --sha | --sh)
1051 ac_prev=sharedstatedir ;;
1052 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1053 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1054 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1055 | --sha=* | --sh=*)
1056 sharedstatedir=$ac_optarg ;;
1058 -site | --site | --sit)
1059 ac_prev=site ;;
1060 -site=* | --site=* | --sit=*)
1061 site=$ac_optarg ;;
1063 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1064 ac_prev=srcdir ;;
1065 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1066 srcdir=$ac_optarg ;;
1068 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1069 | --syscon | --sysco | --sysc | --sys | --sy)
1070 ac_prev=sysconfdir ;;
1071 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1072 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1073 sysconfdir=$ac_optarg ;;
1075 -target | --target | --targe | --targ | --tar | --ta | --t)
1076 ac_prev=target_alias ;;
1077 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1078 target_alias=$ac_optarg ;;
1080 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1081 verbose=yes ;;
1083 -version | --version | --versio | --versi | --vers | -V)
1084 ac_init_version=: ;;
1086 -with-* | --with-*)
1087 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1088 # Reject names that are not valid shell variable names.
1089 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1090 as_fn_error "invalid package name: $ac_useropt"
1091 ac_useropt_orig=$ac_useropt
1092 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1093 case $ac_user_opts in
1095 "with_$ac_useropt"
1096 "*) ;;
1097 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1098 ac_unrecognized_sep=', ';;
1099 esac
1100 eval with_$ac_useropt=\$ac_optarg ;;
1102 -without-* | --without-*)
1103 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1104 # Reject names that are not valid shell variable names.
1105 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1106 as_fn_error "invalid package name: $ac_useropt"
1107 ac_useropt_orig=$ac_useropt
1108 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1109 case $ac_user_opts in
1111 "with_$ac_useropt"
1112 "*) ;;
1113 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1114 ac_unrecognized_sep=', ';;
1115 esac
1116 eval with_$ac_useropt=no ;;
1118 --x)
1119 # Obsolete; use --with-x.
1120 with_x=yes ;;
1122 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1123 | --x-incl | --x-inc | --x-in | --x-i)
1124 ac_prev=x_includes ;;
1125 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1126 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1127 x_includes=$ac_optarg ;;
1129 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1130 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1131 ac_prev=x_libraries ;;
1132 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1133 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1134 x_libraries=$ac_optarg ;;
1136 -*) as_fn_error "unrecognized option: \`$ac_option'
1137 Try \`$0 --help' for more information."
1140 *=*)
1141 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1142 # Reject names that are not valid shell variable names.
1143 case $ac_envvar in #(
1144 '' | [0-9]* | *[!_$as_cr_alnum]* )
1145 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1146 esac
1147 eval $ac_envvar=\$ac_optarg
1148 export $ac_envvar ;;
1151 # FIXME: should be removed in autoconf 3.0.
1152 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1153 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1154 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1155 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1158 esac
1159 done
1161 if test -n "$ac_prev"; then
1162 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1163 as_fn_error "missing argument to $ac_option"
1166 if test -n "$ac_unrecognized_opts"; then
1167 case $enable_option_checking in
1168 no) ;;
1169 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1170 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1171 esac
1174 # Check all directory arguments for consistency.
1175 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1176 datadir sysconfdir sharedstatedir localstatedir includedir \
1177 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1178 libdir localedir mandir
1180 eval ac_val=\$$ac_var
1181 # Remove trailing slashes.
1182 case $ac_val in
1183 */ )
1184 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1185 eval $ac_var=\$ac_val;;
1186 esac
1187 # Be sure to have absolute directory names.
1188 case $ac_val in
1189 [\\/$]* | ?:[\\/]* ) continue;;
1190 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1191 esac
1192 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1193 done
1195 # There might be people who depend on the old broken behavior: `$host'
1196 # used to hold the argument of --host etc.
1197 # FIXME: To remove some day.
1198 build=$build_alias
1199 host=$host_alias
1200 target=$target_alias
1202 # FIXME: To remove some day.
1203 if test "x$host_alias" != x; then
1204 if test "x$build_alias" = x; then
1205 cross_compiling=maybe
1206 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1207 If a cross compiler is detected then cross compile mode will be used." >&2
1208 elif test "x$build_alias" != "x$host_alias"; then
1209 cross_compiling=yes
1213 ac_tool_prefix=
1214 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1216 test "$silent" = yes && exec 6>/dev/null
1219 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1220 ac_ls_di=`ls -di .` &&
1221 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1222 as_fn_error "working directory cannot be determined"
1223 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1224 as_fn_error "pwd does not report name of working directory"
1227 # Find the source files, if location was not specified.
1228 if test -z "$srcdir"; then
1229 ac_srcdir_defaulted=yes
1230 # Try the directory containing this script, then the parent directory.
1231 ac_confdir=`$as_dirname -- "$as_myself" ||
1232 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1233 X"$as_myself" : 'X\(//\)[^/]' \| \
1234 X"$as_myself" : 'X\(//\)$' \| \
1235 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1236 $as_echo X"$as_myself" |
1237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1238 s//\1/
1241 /^X\(\/\/\)[^/].*/{
1242 s//\1/
1245 /^X\(\/\/\)$/{
1246 s//\1/
1249 /^X\(\/\).*/{
1250 s//\1/
1253 s/.*/./; q'`
1254 srcdir=$ac_confdir
1255 if test ! -r "$srcdir/$ac_unique_file"; then
1256 srcdir=..
1258 else
1259 ac_srcdir_defaulted=no
1261 if test ! -r "$srcdir/$ac_unique_file"; then
1262 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1263 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1265 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1266 ac_abs_confdir=`(
1267 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1268 pwd)`
1269 # When building in place, set srcdir=.
1270 if test "$ac_abs_confdir" = "$ac_pwd"; then
1271 srcdir=.
1273 # Remove unnecessary trailing slashes from srcdir.
1274 # Double slashes in file names in object file debugging info
1275 # mess up M-x gdb in Emacs.
1276 case $srcdir in
1277 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1278 esac
1279 for ac_var in $ac_precious_vars; do
1280 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1281 eval ac_env_${ac_var}_value=\$${ac_var}
1282 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1283 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1284 done
1287 # Report the --help message.
1289 if test "$ac_init_help" = "long"; then
1290 # Omit some internal or obsolete options to make the list less imposing.
1291 # This message is too long to be a string in the A/UX 3.1 sh.
1292 cat <<_ACEOF
1293 \`configure' configures LTO plugin for ld 0.1 to adapt to many kinds of systems.
1295 Usage: $0 [OPTION]... [VAR=VALUE]...
1297 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1298 VAR=VALUE. See below for descriptions of some of the useful variables.
1300 Defaults for the options are specified in brackets.
1302 Configuration:
1303 -h, --help display this help and exit
1304 --help=short display options specific to this package
1305 --help=recursive display the short help of all the included packages
1306 -V, --version display version information and exit
1307 -q, --quiet, --silent do not print \`checking...' messages
1308 --cache-file=FILE cache test results in FILE [disabled]
1309 -C, --config-cache alias for \`--cache-file=config.cache'
1310 -n, --no-create do not create output files
1311 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1313 Installation directories:
1314 --prefix=PREFIX install architecture-independent files in PREFIX
1315 [$ac_default_prefix]
1316 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1317 [PREFIX]
1319 By default, \`make install' will install all the files in
1320 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1321 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1322 for instance \`--prefix=\$HOME'.
1324 For better control, use the options below.
1326 Fine tuning of the installation directories:
1327 --bindir=DIR user executables [EPREFIX/bin]
1328 --sbindir=DIR system admin executables [EPREFIX/sbin]
1329 --libexecdir=DIR program executables [EPREFIX/libexec]
1330 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1331 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1332 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1333 --libdir=DIR object code libraries [EPREFIX/lib]
1334 --includedir=DIR C header files [PREFIX/include]
1335 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1336 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1337 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1338 --infodir=DIR info documentation [DATAROOTDIR/info]
1339 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1340 --mandir=DIR man documentation [DATAROOTDIR/man]
1341 --docdir=DIR documentation root [DATAROOTDIR/doc/lto-plugin]
1342 --htmldir=DIR html documentation [DOCDIR]
1343 --dvidir=DIR dvi documentation [DOCDIR]
1344 --pdfdir=DIR pdf documentation [DOCDIR]
1345 --psdir=DIR ps documentation [DOCDIR]
1346 _ACEOF
1348 cat <<\_ACEOF
1350 Program names:
1351 --program-prefix=PREFIX prepend PREFIX to installed program names
1352 --program-suffix=SUFFIX append SUFFIX to installed program names
1353 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1355 System types:
1356 --build=BUILD configure for building on BUILD [guessed]
1357 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1358 --target=TARGET configure for building compilers for TARGET [HOST]
1359 _ACEOF
1362 if test -n "$ac_init_help"; then
1363 case $ac_init_help in
1364 short | recursive ) echo "Configuration of LTO plugin for ld 0.1:";;
1365 esac
1366 cat <<\_ACEOF
1368 Optional Features:
1369 --disable-option-checking ignore unrecognized --enable/--with options
1370 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1371 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1372 --enable-maintainer-mode enable make rules and dependencies not useful
1373 (and sometimes confusing) to the casual installer
1374 --disable-dependency-tracking speeds up one-time build
1375 --enable-dependency-tracking do not reject slow dependency extractors
1376 --disable-largefile omit support for large files
1377 --enable-shared[=PKGS] build shared libraries [default=yes]
1378 --enable-static[=PKGS] build static libraries [default=yes]
1379 --enable-fast-install[=PKGS]
1380 optimize for fast installation [default=yes]
1381 --disable-libtool-lock avoid locking (might break parallel builds)
1383 Optional Packages:
1384 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1385 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1386 --with-build-libsubdir=DIR Directory where to find libraries for build system
1387 --with-libiberty=PATH specify the directory where to find libiberty
1388 [../libiberty]
1389 --with-pic try to use only PIC/non-PIC objects [default=use
1390 both]
1391 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1393 Some influential environment variables:
1394 CC C compiler command
1395 CFLAGS C compiler flags
1396 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1397 nonstandard directory <lib dir>
1398 LIBS libraries to pass to the linker, e.g. -l<library>
1399 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1400 you have headers in a nonstandard directory <include dir>
1401 CPP C preprocessor
1403 Use these variables to override the choices made by `configure' or to help
1404 it to find libraries and programs with nonstandard names/locations.
1406 Report bugs to the package provider.
1407 _ACEOF
1408 ac_status=$?
1411 if test "$ac_init_help" = "recursive"; then
1412 # If there are subdirs, report their specific --help.
1413 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1414 test -d "$ac_dir" ||
1415 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1416 continue
1417 ac_builddir=.
1419 case "$ac_dir" in
1420 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1422 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1423 # A ".." for each directory in $ac_dir_suffix.
1424 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1425 case $ac_top_builddir_sub in
1426 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1427 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1428 esac ;;
1429 esac
1430 ac_abs_top_builddir=$ac_pwd
1431 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1432 # for backward compatibility:
1433 ac_top_builddir=$ac_top_build_prefix
1435 case $srcdir in
1436 .) # We are building in place.
1437 ac_srcdir=.
1438 ac_top_srcdir=$ac_top_builddir_sub
1439 ac_abs_top_srcdir=$ac_pwd ;;
1440 [\\/]* | ?:[\\/]* ) # Absolute name.
1441 ac_srcdir=$srcdir$ac_dir_suffix;
1442 ac_top_srcdir=$srcdir
1443 ac_abs_top_srcdir=$srcdir ;;
1444 *) # Relative name.
1445 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1446 ac_top_srcdir=$ac_top_build_prefix$srcdir
1447 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1448 esac
1449 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1451 cd "$ac_dir" || { ac_status=$?; continue; }
1452 # Check for guested configure.
1453 if test -f "$ac_srcdir/configure.gnu"; then
1454 echo &&
1455 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1456 elif test -f "$ac_srcdir/configure"; then
1457 echo &&
1458 $SHELL "$ac_srcdir/configure" --help=recursive
1459 else
1460 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1461 fi || ac_status=$?
1462 cd "$ac_pwd" || { ac_status=$?; break; }
1463 done
1466 test -n "$ac_init_help" && exit $ac_status
1467 if $ac_init_version; then
1468 cat <<\_ACEOF
1469 LTO plugin for ld configure 0.1
1470 generated by GNU Autoconf 2.64
1472 Copyright (C) 2009 Free Software Foundation, Inc.
1473 This configure script is free software; the Free Software Foundation
1474 gives unlimited permission to copy, distribute and modify it.
1475 _ACEOF
1476 exit
1479 ## ------------------------ ##
1480 ## Autoconf initialization. ##
1481 ## ------------------------ ##
1483 # ac_fn_c_try_compile LINENO
1484 # --------------------------
1485 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1486 ac_fn_c_try_compile ()
1488 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1489 rm -f conftest.$ac_objext
1490 if { { ac_try="$ac_compile"
1491 case "(($ac_try" in
1492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1493 *) ac_try_echo=$ac_try;;
1494 esac
1495 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1496 $as_echo "$ac_try_echo"; } >&5
1497 (eval "$ac_compile") 2>conftest.err
1498 ac_status=$?
1499 if test -s conftest.err; then
1500 grep -v '^ *+' conftest.err >conftest.er1
1501 cat conftest.er1 >&5
1502 mv -f conftest.er1 conftest.err
1504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1505 test $ac_status = 0; } && {
1506 test -z "$ac_c_werror_flag" ||
1507 test ! -s conftest.err
1508 } && test -s conftest.$ac_objext; then :
1509 ac_retval=0
1510 else
1511 $as_echo "$as_me: failed program was:" >&5
1512 sed 's/^/| /' conftest.$ac_ext >&5
1514 ac_retval=1
1516 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1517 return $ac_retval
1519 } # ac_fn_c_try_compile
1521 # ac_fn_c_try_cpp LINENO
1522 # ----------------------
1523 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1524 ac_fn_c_try_cpp ()
1526 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1527 if { { ac_try="$ac_cpp conftest.$ac_ext"
1528 case "(($ac_try" in
1529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1530 *) ac_try_echo=$ac_try;;
1531 esac
1532 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1533 $as_echo "$ac_try_echo"; } >&5
1534 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1535 ac_status=$?
1536 if test -s conftest.err; then
1537 grep -v '^ *+' conftest.err >conftest.er1
1538 cat conftest.er1 >&5
1539 mv -f conftest.er1 conftest.err
1541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1542 test $ac_status = 0; } >/dev/null && {
1543 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1544 test ! -s conftest.err
1545 }; then :
1546 ac_retval=0
1547 else
1548 $as_echo "$as_me: failed program was:" >&5
1549 sed 's/^/| /' conftest.$ac_ext >&5
1551 ac_retval=1
1553 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1554 return $ac_retval
1556 } # ac_fn_c_try_cpp
1558 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1559 # -------------------------------------------------------
1560 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1561 # the include files in INCLUDES and setting the cache variable VAR
1562 # accordingly.
1563 ac_fn_c_check_header_mongrel ()
1565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1566 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1568 $as_echo_n "checking for $2... " >&6; }
1569 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1570 $as_echo_n "(cached) " >&6
1572 eval ac_res=\$$3
1573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1574 $as_echo "$ac_res" >&6; }
1575 else
1576 # Is the header compilable?
1577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1578 $as_echo_n "checking $2 usability... " >&6; }
1579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1580 /* end confdefs.h. */
1582 #include <$2>
1583 _ACEOF
1584 if ac_fn_c_try_compile "$LINENO"; then :
1585 ac_header_compiler=yes
1586 else
1587 ac_header_compiler=no
1589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1591 $as_echo "$ac_header_compiler" >&6; }
1593 # Is the header present?
1594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1595 $as_echo_n "checking $2 presence... " >&6; }
1596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1597 /* end confdefs.h. */
1598 #include <$2>
1599 _ACEOF
1600 if ac_fn_c_try_cpp "$LINENO"; then :
1601 ac_header_preproc=yes
1602 else
1603 ac_header_preproc=no
1605 rm -f conftest.err conftest.$ac_ext
1606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1607 $as_echo "$ac_header_preproc" >&6; }
1609 # So? What about this header?
1610 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1611 yes:no: )
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1613 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1615 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1617 no:yes:* )
1618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1619 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1621 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1623 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1625 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1627 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1629 esac
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1631 $as_echo_n "checking for $2... " >&6; }
1632 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1633 $as_echo_n "(cached) " >&6
1634 else
1635 eval "$3=\$ac_header_compiler"
1637 eval ac_res=\$$3
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1639 $as_echo "$ac_res" >&6; }
1641 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1643 } # ac_fn_c_check_header_mongrel
1645 # ac_fn_c_try_run LINENO
1646 # ----------------------
1647 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1648 # that executables *can* be run.
1649 ac_fn_c_try_run ()
1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652 if { { ac_try="$ac_link"
1653 case "(($ac_try" in
1654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1655 *) ac_try_echo=$ac_try;;
1656 esac
1657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1658 $as_echo "$ac_try_echo"; } >&5
1659 (eval "$ac_link") 2>&5
1660 ac_status=$?
1661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1662 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1663 { { case "(($ac_try" in
1664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665 *) ac_try_echo=$ac_try;;
1666 esac
1667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668 $as_echo "$ac_try_echo"; } >&5
1669 (eval "$ac_try") 2>&5
1670 ac_status=$?
1671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672 test $ac_status = 0; }; }; then :
1673 ac_retval=0
1674 else
1675 $as_echo "$as_me: program exited with status $ac_status" >&5
1676 $as_echo "$as_me: failed program was:" >&5
1677 sed 's/^/| /' conftest.$ac_ext >&5
1679 ac_retval=$ac_status
1681 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1682 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1683 return $ac_retval
1685 } # ac_fn_c_try_run
1687 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1688 # -------------------------------------------------------
1689 # Tests whether HEADER exists and can be compiled using the include files in
1690 # INCLUDES, setting the cache variable VAR accordingly.
1691 ac_fn_c_check_header_compile ()
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1695 $as_echo_n "checking for $2... " >&6; }
1696 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1697 $as_echo_n "(cached) " >&6
1698 else
1699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1700 /* end confdefs.h. */
1702 #include <$2>
1703 _ACEOF
1704 if ac_fn_c_try_compile "$LINENO"; then :
1705 eval "$3=yes"
1706 else
1707 eval "$3=no"
1709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1711 eval ac_res=\$$3
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1713 $as_echo "$ac_res" >&6; }
1714 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1716 } # ac_fn_c_check_header_compile
1718 # ac_fn_c_try_link LINENO
1719 # -----------------------
1720 # Try to link conftest.$ac_ext, and return whether this succeeded.
1721 ac_fn_c_try_link ()
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 rm -f conftest.$ac_objext conftest$ac_exeext
1725 if { { ac_try="$ac_link"
1726 case "(($ac_try" in
1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728 *) ac_try_echo=$ac_try;;
1729 esac
1730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731 $as_echo "$ac_try_echo"; } >&5
1732 (eval "$ac_link") 2>conftest.err
1733 ac_status=$?
1734 if test -s conftest.err; then
1735 grep -v '^ *+' conftest.err >conftest.er1
1736 cat conftest.er1 >&5
1737 mv -f conftest.er1 conftest.err
1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; } && {
1741 test -z "$ac_c_werror_flag" ||
1742 test ! -s conftest.err
1743 } && test -s conftest$ac_exeext && {
1744 test "$cross_compiling" = yes ||
1745 $as_test_x conftest$ac_exeext
1746 }; then :
1747 ac_retval=0
1748 else
1749 $as_echo "$as_me: failed program was:" >&5
1750 sed 's/^/| /' conftest.$ac_ext >&5
1752 ac_retval=1
1754 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1755 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1756 # interfere with the next link command; also delete a directory that is
1757 # left behind by Apple's compiler. We do this before executing the actions.
1758 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1759 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1760 return $ac_retval
1762 } # ac_fn_c_try_link
1764 # ac_fn_c_check_func LINENO FUNC VAR
1765 # ----------------------------------
1766 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1767 ac_fn_c_check_func ()
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1771 $as_echo_n "checking for $2... " >&6; }
1772 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1773 $as_echo_n "(cached) " >&6
1774 else
1775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1776 /* end confdefs.h. */
1777 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1779 #define $2 innocuous_$2
1781 /* System header to define __stub macros and hopefully few prototypes,
1782 which can conflict with char $2 (); below.
1783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1784 <limits.h> exists even on freestanding compilers. */
1786 #ifdef __STDC__
1787 # include <limits.h>
1788 #else
1789 # include <assert.h>
1790 #endif
1792 #undef $2
1794 /* Override any GCC internal prototype to avoid an error.
1795 Use char because int might match the return type of a GCC
1796 builtin and then its argument prototype would still apply. */
1797 #ifdef __cplusplus
1798 extern "C"
1799 #endif
1800 char $2 ();
1801 /* The GNU C library defines this for functions which it implements
1802 to always fail with ENOSYS. Some functions are actually named
1803 something starting with __ and the normal name is an alias. */
1804 #if defined __stub_$2 || defined __stub___$2
1805 choke me
1806 #endif
1809 main ()
1811 return $2 ();
1813 return 0;
1815 _ACEOF
1816 if ac_fn_c_try_link "$LINENO"; then :
1817 eval "$3=yes"
1818 else
1819 eval "$3=no"
1821 rm -f core conftest.err conftest.$ac_objext \
1822 conftest$ac_exeext conftest.$ac_ext
1824 eval ac_res=\$$3
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826 $as_echo "$ac_res" >&6; }
1827 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1829 } # ac_fn_c_check_func
1831 # ac_fn_c_find_intX_t LINENO BITS VAR
1832 # -----------------------------------
1833 # Finds a signed integer type with width BITS, setting cache variable VAR
1834 # accordingly.
1835 ac_fn_c_find_intX_t ()
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1839 $as_echo_n "checking for int$2_t... " >&6; }
1840 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1841 $as_echo_n "(cached) " >&6
1842 else
1843 eval "$3=no"
1844 for ac_type in int$2_t 'int' 'long int' \
1845 'long long int' 'short int' 'signed char'; do
1846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847 /* end confdefs.h. */
1848 $ac_includes_default
1850 main ()
1852 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
1853 test_array [0] = 0
1856 return 0;
1858 _ACEOF
1859 if ac_fn_c_try_compile "$LINENO"; then :
1860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1861 /* end confdefs.h. */
1862 $ac_includes_default
1864 main ()
1866 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
1867 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
1868 test_array [0] = 0
1871 return 0;
1873 _ACEOF
1874 if ac_fn_c_try_compile "$LINENO"; then :
1876 else
1877 case $ac_type in #(
1878 int$2_t) :
1879 eval "$3=yes" ;; #(
1880 *) :
1881 eval "$3=\$ac_type" ;;
1882 esac
1884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1887 eval as_val=\$$3
1888 if test "x$as_val" = x""no; then :
1890 else
1891 break
1893 done
1895 eval ac_res=\$$3
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1897 $as_echo "$ac_res" >&6; }
1898 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1900 } # ac_fn_c_find_intX_t
1902 # ac_fn_c_find_uintX_t LINENO BITS VAR
1903 # ------------------------------------
1904 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1905 # accordingly.
1906 ac_fn_c_find_uintX_t ()
1908 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1910 $as_echo_n "checking for uint$2_t... " >&6; }
1911 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1912 $as_echo_n "(cached) " >&6
1913 else
1914 eval "$3=no"
1915 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1916 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h. */
1919 $ac_includes_default
1921 main ()
1923 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
1924 test_array [0] = 0
1927 return 0;
1929 _ACEOF
1930 if ac_fn_c_try_compile "$LINENO"; then :
1931 case $ac_type in #(
1932 uint$2_t) :
1933 eval "$3=yes" ;; #(
1934 *) :
1935 eval "$3=\$ac_type" ;;
1936 esac
1938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1939 eval as_val=\$$3
1940 if test "x$as_val" = x""no; then :
1942 else
1943 break
1945 done
1947 eval ac_res=\$$3
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1949 $as_echo "$ac_res" >&6; }
1950 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1952 } # ac_fn_c_find_uintX_t
1953 cat >config.log <<_ACEOF
1954 This file contains any messages produced by compilers while
1955 running configure, to aid debugging if configure makes a mistake.
1957 It was created by LTO plugin for ld $as_me 0.1, which was
1958 generated by GNU Autoconf 2.64. Invocation command line was
1960 $ $0 $@
1962 _ACEOF
1963 exec 5>>config.log
1965 cat <<_ASUNAME
1966 ## --------- ##
1967 ## Platform. ##
1968 ## --------- ##
1970 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1971 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1972 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1973 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1974 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1976 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1977 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1979 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1980 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1981 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1982 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1983 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1984 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1985 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1987 _ASUNAME
1989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1990 for as_dir in $PATH
1992 IFS=$as_save_IFS
1993 test -z "$as_dir" && as_dir=.
1994 $as_echo "PATH: $as_dir"
1995 done
1996 IFS=$as_save_IFS
1998 } >&5
2000 cat >&5 <<_ACEOF
2003 ## ----------- ##
2004 ## Core tests. ##
2005 ## ----------- ##
2007 _ACEOF
2010 # Keep a trace of the command line.
2011 # Strip out --no-create and --no-recursion so they do not pile up.
2012 # Strip out --silent because we don't want to record it for future runs.
2013 # Also quote any args containing shell meta-characters.
2014 # Make two passes to allow for proper duplicate-argument suppression.
2015 ac_configure_args=
2016 ac_configure_args0=
2017 ac_configure_args1=
2018 ac_must_keep_next=false
2019 for ac_pass in 1 2
2021 for ac_arg
2023 case $ac_arg in
2024 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2025 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2026 | -silent | --silent | --silen | --sile | --sil)
2027 continue ;;
2028 *\'*)
2029 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2030 esac
2031 case $ac_pass in
2032 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2034 as_fn_append ac_configure_args1 " '$ac_arg'"
2035 if test $ac_must_keep_next = true; then
2036 ac_must_keep_next=false # Got value, back to normal.
2037 else
2038 case $ac_arg in
2039 *=* | --config-cache | -C | -disable-* | --disable-* \
2040 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2041 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2042 | -with-* | --with-* | -without-* | --without-* | --x)
2043 case "$ac_configure_args0 " in
2044 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2045 esac
2047 -* ) ac_must_keep_next=true ;;
2048 esac
2050 as_fn_append ac_configure_args " '$ac_arg'"
2052 esac
2053 done
2054 done
2055 { ac_configure_args0=; unset ac_configure_args0;}
2056 { ac_configure_args1=; unset ac_configure_args1;}
2058 # When interrupted or exit'd, cleanup temporary files, and complete
2059 # config.log. We remove comments because anyway the quotes in there
2060 # would cause problems or look ugly.
2061 # WARNING: Use '\'' to represent an apostrophe within the trap.
2062 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2063 trap 'exit_status=$?
2064 # Save into config.log some information that might help in debugging.
2066 echo
2068 cat <<\_ASBOX
2069 ## ---------------- ##
2070 ## Cache variables. ##
2071 ## ---------------- ##
2072 _ASBOX
2073 echo
2074 # The following way of writing the cache mishandles newlines in values,
2076 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2077 eval ac_val=\$$ac_var
2078 case $ac_val in #(
2079 *${as_nl}*)
2080 case $ac_var in #(
2081 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2082 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2083 esac
2084 case $ac_var in #(
2085 _ | IFS | as_nl) ;; #(
2086 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2087 *) { eval $ac_var=; unset $ac_var;} ;;
2088 esac ;;
2089 esac
2090 done
2091 (set) 2>&1 |
2092 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2093 *${as_nl}ac_space=\ *)
2094 sed -n \
2095 "s/'\''/'\''\\\\'\'''\''/g;
2096 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2097 ;; #(
2099 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2101 esac |
2102 sort
2104 echo
2106 cat <<\_ASBOX
2107 ## ----------------- ##
2108 ## Output variables. ##
2109 ## ----------------- ##
2110 _ASBOX
2111 echo
2112 for ac_var in $ac_subst_vars
2114 eval ac_val=\$$ac_var
2115 case $ac_val in
2116 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2117 esac
2118 $as_echo "$ac_var='\''$ac_val'\''"
2119 done | sort
2120 echo
2122 if test -n "$ac_subst_files"; then
2123 cat <<\_ASBOX
2124 ## ------------------- ##
2125 ## File substitutions. ##
2126 ## ------------------- ##
2127 _ASBOX
2128 echo
2129 for ac_var in $ac_subst_files
2131 eval ac_val=\$$ac_var
2132 case $ac_val in
2133 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2134 esac
2135 $as_echo "$ac_var='\''$ac_val'\''"
2136 done | sort
2137 echo
2140 if test -s confdefs.h; then
2141 cat <<\_ASBOX
2142 ## ----------- ##
2143 ## confdefs.h. ##
2144 ## ----------- ##
2145 _ASBOX
2146 echo
2147 cat confdefs.h
2148 echo
2150 test "$ac_signal" != 0 &&
2151 $as_echo "$as_me: caught signal $ac_signal"
2152 $as_echo "$as_me: exit $exit_status"
2153 } >&5
2154 rm -f core *.core core.conftest.* &&
2155 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2156 exit $exit_status
2158 for ac_signal in 1 2 13 15; do
2159 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2160 done
2161 ac_signal=0
2163 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2164 rm -f -r conftest* confdefs.h
2166 $as_echo "/* confdefs.h */" > confdefs.h
2168 # Predefined preprocessor variables.
2170 cat >>confdefs.h <<_ACEOF
2171 #define PACKAGE_NAME "$PACKAGE_NAME"
2172 _ACEOF
2174 cat >>confdefs.h <<_ACEOF
2175 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2176 _ACEOF
2178 cat >>confdefs.h <<_ACEOF
2179 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2180 _ACEOF
2182 cat >>confdefs.h <<_ACEOF
2183 #define PACKAGE_STRING "$PACKAGE_STRING"
2184 _ACEOF
2186 cat >>confdefs.h <<_ACEOF
2187 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2188 _ACEOF
2190 cat >>confdefs.h <<_ACEOF
2191 #define PACKAGE_URL "$PACKAGE_URL"
2192 _ACEOF
2195 # Let the site file select an alternate cache file if it wants to.
2196 # Prefer an explicitly selected file to automatically selected ones.
2197 ac_site_file1=NONE
2198 ac_site_file2=NONE
2199 if test -n "$CONFIG_SITE"; then
2200 ac_site_file1=$CONFIG_SITE
2201 elif test "x$prefix" != xNONE; then
2202 ac_site_file1=$prefix/share/config.site
2203 ac_site_file2=$prefix/etc/config.site
2204 else
2205 ac_site_file1=$ac_default_prefix/share/config.site
2206 ac_site_file2=$ac_default_prefix/etc/config.site
2208 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2210 test "x$ac_site_file" = xNONE && continue
2211 if test -r "$ac_site_file"; then
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2213 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2214 sed 's/^/| /' "$ac_site_file" >&5
2215 . "$ac_site_file"
2217 done
2219 if test -r "$cache_file"; then
2220 # Some versions of bash will fail to source /dev/null (special
2221 # files actually), so we avoid doing that.
2222 if test -f "$cache_file"; then
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2224 $as_echo "$as_me: loading cache $cache_file" >&6;}
2225 case $cache_file in
2226 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2227 *) . "./$cache_file";;
2228 esac
2230 else
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2232 $as_echo "$as_me: creating cache $cache_file" >&6;}
2233 >$cache_file
2236 # Check that the precious variables saved in the cache have kept the same
2237 # value.
2238 ac_cache_corrupted=false
2239 for ac_var in $ac_precious_vars; do
2240 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2241 eval ac_new_set=\$ac_env_${ac_var}_set
2242 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2243 eval ac_new_val=\$ac_env_${ac_var}_value
2244 case $ac_old_set,$ac_new_set in
2245 set,)
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2247 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2248 ac_cache_corrupted=: ;;
2249 ,set)
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2251 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2252 ac_cache_corrupted=: ;;
2253 ,);;
2255 if test "x$ac_old_val" != "x$ac_new_val"; then
2256 # differences in whitespace do not lead to failure.
2257 ac_old_val_w=`echo x $ac_old_val`
2258 ac_new_val_w=`echo x $ac_new_val`
2259 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2261 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2262 ac_cache_corrupted=:
2263 else
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2265 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2266 eval $ac_var=\$ac_old_val
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2269 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2271 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2272 fi;;
2273 esac
2274 # Pass precious variables to config.status.
2275 if test "$ac_new_set" = set; then
2276 case $ac_new_val in
2277 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2278 *) ac_arg=$ac_var=$ac_new_val ;;
2279 esac
2280 case " $ac_configure_args " in
2281 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2282 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2283 esac
2285 done
2286 if $ac_cache_corrupted; then
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2288 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2290 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2291 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2293 ## -------------------- ##
2294 ## Main body of script. ##
2295 ## -------------------- ##
2297 ac_ext=c
2298 ac_cpp='$CPP $CPPFLAGS'
2299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2307 ac_aux_dir=
2308 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2309 for ac_t in install-sh install.sh shtool; do
2310 if test -f "$ac_dir/$ac_t"; then
2311 ac_aux_dir=$ac_dir
2312 ac_install_sh="$ac_aux_dir/$ac_t -c"
2313 break 2
2315 done
2316 done
2317 if test -z "$ac_aux_dir"; then
2318 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2321 # These three variables are undocumented and unsupported,
2322 # and are intended to be withdrawn in a future Autoconf release.
2323 # They can cause serious problems if a builder's source tree is in a directory
2324 # whose full name contains unusual characters.
2325 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2326 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2327 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2330 # Make sure we can run config.sub.
2331 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2332 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2335 $as_echo_n "checking build system type... " >&6; }
2336 if test "${ac_cv_build+set}" = set; then :
2337 $as_echo_n "(cached) " >&6
2338 else
2339 ac_build_alias=$build_alias
2340 test "x$ac_build_alias" = x &&
2341 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2342 test "x$ac_build_alias" = x &&
2343 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2344 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2345 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2349 $as_echo "$ac_cv_build" >&6; }
2350 case $ac_cv_build in
2351 *-*-*) ;;
2352 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2353 esac
2354 build=$ac_cv_build
2355 ac_save_IFS=$IFS; IFS='-'
2356 set x $ac_cv_build
2357 shift
2358 build_cpu=$1
2359 build_vendor=$2
2360 shift; shift
2361 # Remember, the first character of IFS is used to create $*,
2362 # except with old shells:
2363 build_os=$*
2364 IFS=$ac_save_IFS
2365 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2369 $as_echo_n "checking host system type... " >&6; }
2370 if test "${ac_cv_host+set}" = set; then :
2371 $as_echo_n "(cached) " >&6
2372 else
2373 if test "x$host_alias" = x; then
2374 ac_cv_host=$ac_cv_build
2375 else
2376 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2377 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2382 $as_echo "$ac_cv_host" >&6; }
2383 case $ac_cv_host in
2384 *-*-*) ;;
2385 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2386 esac
2387 host=$ac_cv_host
2388 ac_save_IFS=$IFS; IFS='-'
2389 set x $ac_cv_host
2390 shift
2391 host_cpu=$1
2392 host_vendor=$2
2393 shift; shift
2394 # Remember, the first character of IFS is used to create $*,
2395 # except with old shells:
2396 host_os=$*
2397 IFS=$ac_save_IFS
2398 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2402 $as_echo_n "checking target system type... " >&6; }
2403 if test "${ac_cv_target+set}" = set; then :
2404 $as_echo_n "(cached) " >&6
2405 else
2406 if test "x$target_alias" = x; then
2407 ac_cv_target=$ac_cv_host
2408 else
2409 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2410 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2415 $as_echo "$ac_cv_target" >&6; }
2416 case $ac_cv_target in
2417 *-*-*) ;;
2418 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2419 esac
2420 target=$ac_cv_target
2421 ac_save_IFS=$IFS; IFS='-'
2422 set x $ac_cv_target
2423 shift
2424 target_cpu=$1
2425 target_vendor=$2
2426 shift; shift
2427 # Remember, the first character of IFS is used to create $*,
2428 # except with old shells:
2429 target_os=$*
2430 IFS=$ac_save_IFS
2431 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2434 # The aliases save the names the user supplied, while $host etc.
2435 # will get canonicalized.
2436 test -n "$target_alias" &&
2437 test "$program_prefix$program_suffix$program_transform_name" = \
2438 NONENONEs,x,x, &&
2439 program_prefix=${target_alias}-
2441 case ${build_alias} in
2442 "") build_noncanonical=${build} ;;
2443 *) build_noncanonical=${build_alias} ;;
2444 esac
2446 case ${host_alias} in
2447 "") host_noncanonical=${build_noncanonical} ;;
2448 *) host_noncanonical=${host_alias} ;;
2449 esac
2451 case ${target_alias} in
2452 "") target_noncanonical=${host_noncanonical} ;;
2453 *) target_noncanonical=${target_alias} ;;
2454 esac
2457 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2458 # have matching libraries, they should use host libraries: Makefile.tpl
2459 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2460 # However, they still use the build modules, because the corresponding
2461 # host modules (e.g. bison) are only built for the host when bootstrap
2462 # finishes. So:
2463 # - build_subdir is where we find build modules, and never changes.
2464 # - build_libsubdir is where we find build libraries, and can be overridden.
2466 # Prefix 'build-' so this never conflicts with target_subdir.
2467 build_subdir="build-${build_noncanonical}"
2469 # Check whether --with-build-libsubdir was given.
2470 if test "${with_build_libsubdir+set}" = set; then :
2471 withval=$with_build_libsubdir; build_libsubdir="$withval"
2472 else
2473 build_libsubdir="$build_subdir"
2476 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2477 if ( test $srcdir = . && test -d gcc ) \
2478 || test -d $srcdir/../host-${host_noncanonical}; then
2479 host_subdir="host-${host_noncanonical}"
2480 else
2481 host_subdir=.
2483 # No prefix.
2484 target_subdir=${target_noncanonical}
2486 am__api_version='1.11'
2488 # Find a good install program. We prefer a C program (faster),
2489 # so one script is as good as another. But avoid the broken or
2490 # incompatible versions:
2491 # SysV /etc/install, /usr/sbin/install
2492 # SunOS /usr/etc/install
2493 # IRIX /sbin/install
2494 # AIX /bin/install
2495 # AmigaOS /C/install, which installs bootblocks on floppy discs
2496 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2497 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2498 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2499 # OS/2's system install, which has a completely different semantic
2500 # ./install, which can be erroneously created by make from ./install.sh.
2501 # Reject install programs that cannot install multiple files.
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2503 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2504 if test -z "$INSTALL"; then
2505 if test "${ac_cv_path_install+set}" = set; then :
2506 $as_echo_n "(cached) " >&6
2507 else
2508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509 for as_dir in $PATH
2511 IFS=$as_save_IFS
2512 test -z "$as_dir" && as_dir=.
2513 # Account for people who put trailing slashes in PATH elements.
2514 case $as_dir/ in #((
2515 ./ | .// | /[cC]/* | \
2516 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2517 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2518 /usr/ucb/* ) ;;
2520 # OSF1 and SCO ODT 3.0 have their own names for install.
2521 # Don't use installbsd from OSF since it installs stuff as root
2522 # by default.
2523 for ac_prog in ginstall scoinst install; do
2524 for ac_exec_ext in '' $ac_executable_extensions; do
2525 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2526 if test $ac_prog = install &&
2527 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2528 # AIX install. It has an incompatible calling convention.
2530 elif test $ac_prog = install &&
2531 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2532 # program-specific install script used by HP pwplus--don't use.
2534 else
2535 rm -rf conftest.one conftest.two conftest.dir
2536 echo one > conftest.one
2537 echo two > conftest.two
2538 mkdir conftest.dir
2539 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2540 test -s conftest.one && test -s conftest.two &&
2541 test -s conftest.dir/conftest.one &&
2542 test -s conftest.dir/conftest.two
2543 then
2544 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2545 break 3
2549 done
2550 done
2552 esac
2554 done
2555 IFS=$as_save_IFS
2557 rm -rf conftest.one conftest.two conftest.dir
2560 if test "${ac_cv_path_install+set}" = set; then
2561 INSTALL=$ac_cv_path_install
2562 else
2563 # As a last resort, use the slow shell script. Don't cache a
2564 # value for INSTALL within a source directory, because that will
2565 # break other packages using the cache if that directory is
2566 # removed, or if the value is a relative name.
2567 INSTALL=$ac_install_sh
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2571 $as_echo "$INSTALL" >&6; }
2573 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2574 # It thinks the first close brace ends the variable substitution.
2575 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2577 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2579 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2582 $as_echo_n "checking whether build environment is sane... " >&6; }
2583 # Just in case
2584 sleep 1
2585 echo timestamp > conftest.file
2586 # Reject unsafe characters in $srcdir or the absolute working directory
2587 # name. Accept space and tab only in the latter.
2588 am_lf='
2590 case `pwd` in
2591 *[\\\"\#\$\&\'\`$am_lf]*)
2592 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2593 esac
2594 case $srcdir in
2595 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2596 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2597 esac
2599 # Do `set' in a subshell so we don't clobber the current shell's
2600 # arguments. Must try -L first in case configure is actually a
2601 # symlink; some systems play weird games with the mod time of symlinks
2602 # (eg FreeBSD returns the mod time of the symlink's containing
2603 # directory).
2604 if (
2605 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2606 if test "$*" = "X"; then
2607 # -L didn't work.
2608 set X `ls -t "$srcdir/configure" conftest.file`
2610 rm -f conftest.file
2611 if test "$*" != "X $srcdir/configure conftest.file" \
2612 && test "$*" != "X conftest.file $srcdir/configure"; then
2614 # If neither matched, then we have a broken ls. This can happen
2615 # if, for instance, CONFIG_SHELL is bash and it inherits a
2616 # broken ls alias from the environment. This has actually
2617 # happened. Such a system could not be considered "sane".
2618 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2619 alias in your environment" "$LINENO" 5
2622 test "$2" = conftest.file
2624 then
2625 # Ok.
2627 else
2628 as_fn_error "newly created file is older than distributed files!
2629 Check your system clock" "$LINENO" 5
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2632 $as_echo "yes" >&6; }
2633 test "$program_prefix" != NONE &&
2634 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2635 # Use a double $ so make ignores it.
2636 test "$program_suffix" != NONE &&
2637 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2638 # Double any \ or $.
2639 # By default was `s,x,x', remove it if useless.
2640 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2641 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2643 # expand $ac_aux_dir to an absolute path
2644 am_aux_dir=`cd $ac_aux_dir && pwd`
2646 if test x"${MISSING+set}" != xset; then
2647 case $am_aux_dir in
2648 *\ * | *\ *)
2649 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2651 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2652 esac
2654 # Use eval to expand $SHELL
2655 if eval "$MISSING --run true"; then
2656 am_missing_run="$MISSING --run "
2657 else
2658 am_missing_run=
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2660 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2663 if test x"${install_sh}" != xset; then
2664 case $am_aux_dir in
2665 *\ * | *\ *)
2666 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2668 install_sh="\${SHELL} $am_aux_dir/install-sh"
2669 esac
2672 # Installed binaries are usually stripped using `strip' when the user
2673 # run `make install-strip'. However `strip' might not be the right
2674 # tool to use in cross-compilation environments, therefore Automake
2675 # will honor the `STRIP' environment variable to overrule this program.
2676 if test "$cross_compiling" != no; then
2677 if test -n "$ac_tool_prefix"; then
2678 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2679 set dummy ${ac_tool_prefix}strip; ac_word=$2
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2681 $as_echo_n "checking for $ac_word... " >&6; }
2682 if test "${ac_cv_prog_STRIP+set}" = set; then :
2683 $as_echo_n "(cached) " >&6
2684 else
2685 if test -n "$STRIP"; then
2686 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2687 else
2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689 for as_dir in $PATH
2691 IFS=$as_save_IFS
2692 test -z "$as_dir" && as_dir=.
2693 for ac_exec_ext in '' $ac_executable_extensions; do
2694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2695 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2697 break 2
2699 done
2700 done
2701 IFS=$as_save_IFS
2705 STRIP=$ac_cv_prog_STRIP
2706 if test -n "$STRIP"; then
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2708 $as_echo "$STRIP" >&6; }
2709 else
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2711 $as_echo "no" >&6; }
2716 if test -z "$ac_cv_prog_STRIP"; then
2717 ac_ct_STRIP=$STRIP
2718 # Extract the first word of "strip", so it can be a program name with args.
2719 set dummy strip; ac_word=$2
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2721 $as_echo_n "checking for $ac_word... " >&6; }
2722 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2723 $as_echo_n "(cached) " >&6
2724 else
2725 if test -n "$ac_ct_STRIP"; then
2726 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2727 else
2728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2729 for as_dir in $PATH
2731 IFS=$as_save_IFS
2732 test -z "$as_dir" && as_dir=.
2733 for ac_exec_ext in '' $ac_executable_extensions; do
2734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2735 ac_cv_prog_ac_ct_STRIP="strip"
2736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2737 break 2
2739 done
2740 done
2741 IFS=$as_save_IFS
2745 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2746 if test -n "$ac_ct_STRIP"; then
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2748 $as_echo "$ac_ct_STRIP" >&6; }
2749 else
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2751 $as_echo "no" >&6; }
2754 if test "x$ac_ct_STRIP" = x; then
2755 STRIP=":"
2756 else
2757 case $cross_compiling:$ac_tool_warned in
2758 yes:)
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2760 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2761 ac_tool_warned=yes ;;
2762 esac
2763 STRIP=$ac_ct_STRIP
2765 else
2766 STRIP="$ac_cv_prog_STRIP"
2770 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2773 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2774 if test -z "$MKDIR_P"; then
2775 if test "${ac_cv_path_mkdir+set}" = set; then :
2776 $as_echo_n "(cached) " >&6
2777 else
2778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2781 IFS=$as_save_IFS
2782 test -z "$as_dir" && as_dir=.
2783 for ac_prog in mkdir gmkdir; do
2784 for ac_exec_ext in '' $ac_executable_extensions; do
2785 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2786 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2787 'mkdir (GNU coreutils) '* | \
2788 'mkdir (coreutils) '* | \
2789 'mkdir (fileutils) '4.1*)
2790 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2791 break 3;;
2792 esac
2793 done
2794 done
2795 done
2796 IFS=$as_save_IFS
2800 if test "${ac_cv_path_mkdir+set}" = set; then
2801 MKDIR_P="$ac_cv_path_mkdir -p"
2802 else
2803 # As a last resort, use the slow shell script. Don't cache a
2804 # value for MKDIR_P within a source directory, because that will
2805 # break other packages using the cache if that directory is
2806 # removed, or if the value is a relative name.
2807 test -d ./--version && rmdir ./--version
2808 MKDIR_P="$ac_install_sh -d"
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2812 $as_echo "$MKDIR_P" >&6; }
2814 mkdir_p="$MKDIR_P"
2815 case $mkdir_p in
2816 [\\/$]* | ?:[\\/]*) ;;
2817 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2818 esac
2820 for ac_prog in gawk mawk nawk awk
2822 # Extract the first word of "$ac_prog", so it can be a program name with args.
2823 set dummy $ac_prog; ac_word=$2
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2825 $as_echo_n "checking for $ac_word... " >&6; }
2826 if test "${ac_cv_prog_AWK+set}" = set; then :
2827 $as_echo_n "(cached) " >&6
2828 else
2829 if test -n "$AWK"; then
2830 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2831 else
2832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833 for as_dir in $PATH
2835 IFS=$as_save_IFS
2836 test -z "$as_dir" && as_dir=.
2837 for ac_exec_ext in '' $ac_executable_extensions; do
2838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2839 ac_cv_prog_AWK="$ac_prog"
2840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2841 break 2
2843 done
2844 done
2845 IFS=$as_save_IFS
2849 AWK=$ac_cv_prog_AWK
2850 if test -n "$AWK"; then
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2852 $as_echo "$AWK" >&6; }
2853 else
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2855 $as_echo "no" >&6; }
2859 test -n "$AWK" && break
2860 done
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2863 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2864 set x ${MAKE-make}
2865 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2866 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2867 $as_echo_n "(cached) " >&6
2868 else
2869 cat >conftest.make <<\_ACEOF
2870 SHELL = /bin/sh
2871 all:
2872 @echo '@@@%%%=$(MAKE)=@@@%%%'
2873 _ACEOF
2874 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2875 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2876 *@@@%%%=?*=@@@%%%*)
2877 eval ac_cv_prog_make_${ac_make}_set=yes;;
2879 eval ac_cv_prog_make_${ac_make}_set=no;;
2880 esac
2881 rm -f conftest.make
2883 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2885 $as_echo "yes" >&6; }
2886 SET_MAKE=
2887 else
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2889 $as_echo "no" >&6; }
2890 SET_MAKE="MAKE=${MAKE-make}"
2893 rm -rf .tst 2>/dev/null
2894 mkdir .tst 2>/dev/null
2895 if test -d .tst; then
2896 am__leading_dot=.
2897 else
2898 am__leading_dot=_
2900 rmdir .tst 2>/dev/null
2902 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2903 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2904 # is not polluted with repeated "-I."
2905 am__isrc=' -I$(srcdir)'
2906 # test to see if srcdir already configured
2907 if test -f $srcdir/config.status; then
2908 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2912 # test whether we have cygpath
2913 if test -z "$CYGPATH_W"; then
2914 if (cygpath --version) >/dev/null 2>/dev/null; then
2915 CYGPATH_W='cygpath -w'
2916 else
2917 CYGPATH_W=echo
2922 # Define the identity of the package.
2923 PACKAGE='lto-plugin'
2924 VERSION='0.1'
2927 cat >>confdefs.h <<_ACEOF
2928 #define PACKAGE "$PACKAGE"
2929 _ACEOF
2932 cat >>confdefs.h <<_ACEOF
2933 #define VERSION "$VERSION"
2934 _ACEOF
2936 # Some tools Automake needs.
2938 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2941 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2944 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2947 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2950 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2952 # We need awk for the "check" target. The system "awk" is bad on
2953 # some platforms.
2954 # Always define AMTAR for backward compatibility. Yes, it's still used
2955 # in the wild :-( We should find a proper way to deprecate it ...
2956 AMTAR='$${TAR-tar}'
2958 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2966 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2967 # Check whether --enable-maintainer-mode was given.
2968 if test "${enable_maintainer_mode+set}" = set; then :
2969 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2970 else
2971 USE_MAINTAINER_MODE=no
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2975 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2976 if test $USE_MAINTAINER_MODE = yes; then
2977 MAINTAINER_MODE_TRUE=
2978 MAINTAINER_MODE_FALSE='#'
2979 else
2980 MAINTAINER_MODE_TRUE='#'
2981 MAINTAINER_MODE_FALSE=
2984 MAINT=$MAINTAINER_MODE_TRUE
2988 # Check whether --with-libiberty was given.
2989 if test "${with_libiberty+set}" = set; then :
2990 withval=$with_libiberty;
2991 else
2992 with_libiberty=../libiberty
2996 DEPDIR="${am__leading_dot}deps"
2998 ac_config_commands="$ac_config_commands depfiles"
3001 am_make=${MAKE-make}
3002 cat > confinc << 'END'
3003 am__doit:
3004 @echo this is the am__doit target
3005 .PHONY: am__doit
3007 # If we don't find an include directive, just comment out the code.
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3009 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3010 am__include="#"
3011 am__quote=
3012 _am_result=none
3013 # First try GNU make style include.
3014 echo "include confinc" > confmf
3015 # Ignore all kinds of additional output from `make'.
3016 case `$am_make -s -f confmf 2> /dev/null` in #(
3017 *the\ am__doit\ target*)
3018 am__include=include
3019 am__quote=
3020 _am_result=GNU
3022 esac
3023 # Now try BSD make style include.
3024 if test "$am__include" = "#"; then
3025 echo '.include "confinc"' > confmf
3026 case `$am_make -s -f confmf 2> /dev/null` in #(
3027 *the\ am__doit\ target*)
3028 am__include=.include
3029 am__quote="\""
3030 _am_result=BSD
3032 esac
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3037 $as_echo "$_am_result" >&6; }
3038 rm -f confinc confmf
3040 # Check whether --enable-dependency-tracking was given.
3041 if test "${enable_dependency_tracking+set}" = set; then :
3042 enableval=$enable_dependency_tracking;
3045 if test "x$enable_dependency_tracking" != xno; then
3046 am_depcomp="$ac_aux_dir/depcomp"
3047 AMDEPBACKSLASH='\'
3048 am__nodep='_no'
3050 if test "x$enable_dependency_tracking" != xno; then
3051 AMDEP_TRUE=
3052 AMDEP_FALSE='#'
3053 else
3054 AMDEP_TRUE='#'
3055 AMDEP_FALSE=
3059 ac_ext=c
3060 ac_cpp='$CPP $CPPFLAGS'
3061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3064 if test -n "$ac_tool_prefix"; then
3065 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3066 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3068 $as_echo_n "checking for $ac_word... " >&6; }
3069 if test "${ac_cv_prog_CC+set}" = set; then :
3070 $as_echo_n "(cached) " >&6
3071 else
3072 if test -n "$CC"; then
3073 ac_cv_prog_CC="$CC" # Let the user override the test.
3074 else
3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076 for as_dir in $PATH
3078 IFS=$as_save_IFS
3079 test -z "$as_dir" && as_dir=.
3080 for ac_exec_ext in '' $ac_executable_extensions; do
3081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3082 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3084 break 2
3086 done
3087 done
3088 IFS=$as_save_IFS
3092 CC=$ac_cv_prog_CC
3093 if test -n "$CC"; then
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3095 $as_echo "$CC" >&6; }
3096 else
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3098 $as_echo "no" >&6; }
3103 if test -z "$ac_cv_prog_CC"; then
3104 ac_ct_CC=$CC
3105 # Extract the first word of "gcc", so it can be a program name with args.
3106 set dummy gcc; ac_word=$2
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3108 $as_echo_n "checking for $ac_word... " >&6; }
3109 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3110 $as_echo_n "(cached) " >&6
3111 else
3112 if test -n "$ac_ct_CC"; then
3113 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3114 else
3115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116 for as_dir in $PATH
3118 IFS=$as_save_IFS
3119 test -z "$as_dir" && as_dir=.
3120 for ac_exec_ext in '' $ac_executable_extensions; do
3121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3122 ac_cv_prog_ac_ct_CC="gcc"
3123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3124 break 2
3126 done
3127 done
3128 IFS=$as_save_IFS
3132 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3133 if test -n "$ac_ct_CC"; then
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3135 $as_echo "$ac_ct_CC" >&6; }
3136 else
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3138 $as_echo "no" >&6; }
3141 if test "x$ac_ct_CC" = x; then
3142 CC=""
3143 else
3144 case $cross_compiling:$ac_tool_warned in
3145 yes:)
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3147 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3148 ac_tool_warned=yes ;;
3149 esac
3150 CC=$ac_ct_CC
3152 else
3153 CC="$ac_cv_prog_CC"
3156 if test -z "$CC"; then
3157 if test -n "$ac_tool_prefix"; then
3158 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3159 set dummy ${ac_tool_prefix}cc; ac_word=$2
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3161 $as_echo_n "checking for $ac_word... " >&6; }
3162 if test "${ac_cv_prog_CC+set}" = set; then :
3163 $as_echo_n "(cached) " >&6
3164 else
3165 if test -n "$CC"; then
3166 ac_cv_prog_CC="$CC" # Let the user override the test.
3167 else
3168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3169 for as_dir in $PATH
3171 IFS=$as_save_IFS
3172 test -z "$as_dir" && as_dir=.
3173 for ac_exec_ext in '' $ac_executable_extensions; do
3174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3175 ac_cv_prog_CC="${ac_tool_prefix}cc"
3176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3177 break 2
3179 done
3180 done
3181 IFS=$as_save_IFS
3185 CC=$ac_cv_prog_CC
3186 if test -n "$CC"; then
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3188 $as_echo "$CC" >&6; }
3189 else
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3191 $as_echo "no" >&6; }
3197 if test -z "$CC"; then
3198 # Extract the first word of "cc", so it can be a program name with args.
3199 set dummy cc; ac_word=$2
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3201 $as_echo_n "checking for $ac_word... " >&6; }
3202 if test "${ac_cv_prog_CC+set}" = set; then :
3203 $as_echo_n "(cached) " >&6
3204 else
3205 if test -n "$CC"; then
3206 ac_cv_prog_CC="$CC" # Let the user override the test.
3207 else
3208 ac_prog_rejected=no
3209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210 for as_dir in $PATH
3212 IFS=$as_save_IFS
3213 test -z "$as_dir" && as_dir=.
3214 for ac_exec_ext in '' $ac_executable_extensions; do
3215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3216 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3217 ac_prog_rejected=yes
3218 continue
3220 ac_cv_prog_CC="cc"
3221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3222 break 2
3224 done
3225 done
3226 IFS=$as_save_IFS
3228 if test $ac_prog_rejected = yes; then
3229 # We found a bogon in the path, so make sure we never use it.
3230 set dummy $ac_cv_prog_CC
3231 shift
3232 if test $# != 0; then
3233 # We chose a different compiler from the bogus one.
3234 # However, it has the same basename, so the bogon will be chosen
3235 # first if we set CC to just the basename; use the full file name.
3236 shift
3237 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3242 CC=$ac_cv_prog_CC
3243 if test -n "$CC"; then
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3245 $as_echo "$CC" >&6; }
3246 else
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3248 $as_echo "no" >&6; }
3253 if test -z "$CC"; then
3254 if test -n "$ac_tool_prefix"; then
3255 for ac_prog in cl.exe
3257 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3258 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3260 $as_echo_n "checking for $ac_word... " >&6; }
3261 if test "${ac_cv_prog_CC+set}" = set; then :
3262 $as_echo_n "(cached) " >&6
3263 else
3264 if test -n "$CC"; then
3265 ac_cv_prog_CC="$CC" # Let the user override the test.
3266 else
3267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3268 for as_dir in $PATH
3270 IFS=$as_save_IFS
3271 test -z "$as_dir" && as_dir=.
3272 for ac_exec_ext in '' $ac_executable_extensions; do
3273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3274 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3276 break 2
3278 done
3279 done
3280 IFS=$as_save_IFS
3284 CC=$ac_cv_prog_CC
3285 if test -n "$CC"; then
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3287 $as_echo "$CC" >&6; }
3288 else
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3290 $as_echo "no" >&6; }
3294 test -n "$CC" && break
3295 done
3297 if test -z "$CC"; then
3298 ac_ct_CC=$CC
3299 for ac_prog in cl.exe
3301 # Extract the first word of "$ac_prog", so it can be a program name with args.
3302 set dummy $ac_prog; ac_word=$2
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3304 $as_echo_n "checking for $ac_word... " >&6; }
3305 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3306 $as_echo_n "(cached) " >&6
3307 else
3308 if test -n "$ac_ct_CC"; then
3309 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3310 else
3311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3312 for as_dir in $PATH
3314 IFS=$as_save_IFS
3315 test -z "$as_dir" && as_dir=.
3316 for ac_exec_ext in '' $ac_executable_extensions; do
3317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3318 ac_cv_prog_ac_ct_CC="$ac_prog"
3319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3320 break 2
3322 done
3323 done
3324 IFS=$as_save_IFS
3328 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3329 if test -n "$ac_ct_CC"; then
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3331 $as_echo "$ac_ct_CC" >&6; }
3332 else
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3334 $as_echo "no" >&6; }
3338 test -n "$ac_ct_CC" && break
3339 done
3341 if test "x$ac_ct_CC" = x; then
3342 CC=""
3343 else
3344 case $cross_compiling:$ac_tool_warned in
3345 yes:)
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3347 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3348 ac_tool_warned=yes ;;
3349 esac
3350 CC=$ac_ct_CC
3357 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3358 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3359 as_fn_error "no acceptable C compiler found in \$PATH
3360 See \`config.log' for more details." "$LINENO" 5; }
3362 # Provide some information about the compiler.
3363 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3364 set X $ac_compile
3365 ac_compiler=$2
3366 for ac_option in --version -v -V -qversion; do
3367 { { ac_try="$ac_compiler $ac_option >&5"
3368 case "(($ac_try" in
3369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3370 *) ac_try_echo=$ac_try;;
3371 esac
3372 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3373 $as_echo "$ac_try_echo"; } >&5
3374 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3375 ac_status=$?
3376 if test -s conftest.err; then
3377 sed '10a\
3378 ... rest of stderr output deleted ...
3379 10q' conftest.err >conftest.er1
3380 cat conftest.er1 >&5
3381 rm -f conftest.er1 conftest.err
3383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3384 test $ac_status = 0; }
3385 done
3387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3388 /* end confdefs.h. */
3391 main ()
3395 return 0;
3397 _ACEOF
3398 ac_clean_files_save=$ac_clean_files
3399 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3400 # Try to create an executable without -o first, disregard a.out.
3401 # It will help us diagnose broken compilers, and finding out an intuition
3402 # of exeext.
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3404 $as_echo_n "checking for C compiler default output file name... " >&6; }
3405 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3407 # The possible output files:
3408 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3410 ac_rmfiles=
3411 for ac_file in $ac_files
3413 case $ac_file in
3414 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3415 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3416 esac
3417 done
3418 rm -f $ac_rmfiles
3420 if { { ac_try="$ac_link_default"
3421 case "(($ac_try" in
3422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3423 *) ac_try_echo=$ac_try;;
3424 esac
3425 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3426 $as_echo "$ac_try_echo"; } >&5
3427 (eval "$ac_link_default") 2>&5
3428 ac_status=$?
3429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3430 test $ac_status = 0; }; then :
3431 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3432 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3433 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3434 # so that the user can short-circuit this test for compilers unknown to
3435 # Autoconf.
3436 for ac_file in $ac_files ''
3438 test -f "$ac_file" || continue
3439 case $ac_file in
3440 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3442 [ab].out )
3443 # We found the default executable, but exeext='' is most
3444 # certainly right.
3445 break;;
3446 *.* )
3447 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3448 then :; else
3449 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3451 # We set ac_cv_exeext here because the later test for it is not
3452 # safe: cross compilers may not add the suffix if given an `-o'
3453 # argument, so we may need to know it at that point already.
3454 # Even if this section looks crufty: it has the advantage of
3455 # actually working.
3456 break;;
3458 break;;
3459 esac
3460 done
3461 test "$ac_cv_exeext" = no && ac_cv_exeext=
3463 else
3464 ac_file=''
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3467 $as_echo "$ac_file" >&6; }
3468 if test -z "$ac_file"; then :
3469 $as_echo "$as_me: failed program was:" >&5
3470 sed 's/^/| /' conftest.$ac_ext >&5
3472 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3473 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3474 { as_fn_set_status 77
3475 as_fn_error "C compiler cannot create executables
3476 See \`config.log' for more details." "$LINENO" 5; }; }
3478 ac_exeext=$ac_cv_exeext
3480 # Check that the compiler produces executables we can run. If not, either
3481 # the compiler is broken, or we cross compile.
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3483 $as_echo_n "checking whether the C compiler works... " >&6; }
3484 # If not cross compiling, check that we can run a simple program.
3485 if test "$cross_compiling" != yes; then
3486 if { ac_try='./$ac_file'
3487 { { case "(($ac_try" in
3488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3489 *) ac_try_echo=$ac_try;;
3490 esac
3491 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3492 $as_echo "$ac_try_echo"; } >&5
3493 (eval "$ac_try") 2>&5
3494 ac_status=$?
3495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3496 test $ac_status = 0; }; }; then
3497 cross_compiling=no
3498 else
3499 if test "$cross_compiling" = maybe; then
3500 cross_compiling=yes
3501 else
3502 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3503 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3504 as_fn_error "cannot run C compiled programs.
3505 If you meant to cross compile, use \`--host'.
3506 See \`config.log' for more details." "$LINENO" 5; }
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3511 $as_echo "yes" >&6; }
3513 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3514 ac_clean_files=$ac_clean_files_save
3515 # Check that the compiler produces executables we can run. If not, either
3516 # the compiler is broken, or we cross compile.
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3518 $as_echo_n "checking whether we are cross compiling... " >&6; }
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3520 $as_echo "$cross_compiling" >&6; }
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3523 $as_echo_n "checking for suffix of executables... " >&6; }
3524 if { { ac_try="$ac_link"
3525 case "(($ac_try" in
3526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3527 *) ac_try_echo=$ac_try;;
3528 esac
3529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3530 $as_echo "$ac_try_echo"; } >&5
3531 (eval "$ac_link") 2>&5
3532 ac_status=$?
3533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3534 test $ac_status = 0; }; then :
3535 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3536 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3537 # work properly (i.e., refer to `conftest.exe'), while it won't with
3538 # `rm'.
3539 for ac_file in conftest.exe conftest conftest.*; do
3540 test -f "$ac_file" || continue
3541 case $ac_file in
3542 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3543 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3544 break;;
3545 * ) break;;
3546 esac
3547 done
3548 else
3549 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3550 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3551 as_fn_error "cannot compute suffix of executables: cannot compile and link
3552 See \`config.log' for more details." "$LINENO" 5; }
3554 rm -f conftest$ac_cv_exeext
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3556 $as_echo "$ac_cv_exeext" >&6; }
3558 rm -f conftest.$ac_ext
3559 EXEEXT=$ac_cv_exeext
3560 ac_exeext=$EXEEXT
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3562 $as_echo_n "checking for suffix of object files... " >&6; }
3563 if test "${ac_cv_objext+set}" = set; then :
3564 $as_echo_n "(cached) " >&6
3565 else
3566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3567 /* end confdefs.h. */
3570 main ()
3574 return 0;
3576 _ACEOF
3577 rm -f conftest.o conftest.obj
3578 if { { ac_try="$ac_compile"
3579 case "(($ac_try" in
3580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3581 *) ac_try_echo=$ac_try;;
3582 esac
3583 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3584 $as_echo "$ac_try_echo"; } >&5
3585 (eval "$ac_compile") 2>&5
3586 ac_status=$?
3587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3588 test $ac_status = 0; }; then :
3589 for ac_file in conftest.o conftest.obj conftest.*; do
3590 test -f "$ac_file" || continue;
3591 case $ac_file in
3592 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3593 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3594 break;;
3595 esac
3596 done
3597 else
3598 $as_echo "$as_me: failed program was:" >&5
3599 sed 's/^/| /' conftest.$ac_ext >&5
3601 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3603 as_fn_error "cannot compute suffix of object files: cannot compile
3604 See \`config.log' for more details." "$LINENO" 5; }
3606 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3609 $as_echo "$ac_cv_objext" >&6; }
3610 OBJEXT=$ac_cv_objext
3611 ac_objext=$OBJEXT
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3613 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3614 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3615 $as_echo_n "(cached) " >&6
3616 else
3617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3618 /* end confdefs.h. */
3621 main ()
3623 #ifndef __GNUC__
3624 choke me
3625 #endif
3628 return 0;
3630 _ACEOF
3631 if ac_fn_c_try_compile "$LINENO"; then :
3632 ac_compiler_gnu=yes
3633 else
3634 ac_compiler_gnu=no
3636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3637 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3641 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3642 if test $ac_compiler_gnu = yes; then
3643 GCC=yes
3644 else
3645 GCC=
3647 ac_test_CFLAGS=${CFLAGS+set}
3648 ac_save_CFLAGS=$CFLAGS
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3650 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3651 if test "${ac_cv_prog_cc_g+set}" = set; then :
3652 $as_echo_n "(cached) " >&6
3653 else
3654 ac_save_c_werror_flag=$ac_c_werror_flag
3655 ac_c_werror_flag=yes
3656 ac_cv_prog_cc_g=no
3657 CFLAGS="-g"
3658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3659 /* end confdefs.h. */
3662 main ()
3666 return 0;
3668 _ACEOF
3669 if ac_fn_c_try_compile "$LINENO"; then :
3670 ac_cv_prog_cc_g=yes
3671 else
3672 CFLAGS=""
3673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3674 /* end confdefs.h. */
3677 main ()
3681 return 0;
3683 _ACEOF
3684 if ac_fn_c_try_compile "$LINENO"; then :
3686 else
3687 ac_c_werror_flag=$ac_save_c_werror_flag
3688 CFLAGS="-g"
3689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3690 /* end confdefs.h. */
3693 main ()
3697 return 0;
3699 _ACEOF
3700 if ac_fn_c_try_compile "$LINENO"; then :
3701 ac_cv_prog_cc_g=yes
3703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3708 ac_c_werror_flag=$ac_save_c_werror_flag
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3711 $as_echo "$ac_cv_prog_cc_g" >&6; }
3712 if test "$ac_test_CFLAGS" = set; then
3713 CFLAGS=$ac_save_CFLAGS
3714 elif test $ac_cv_prog_cc_g = yes; then
3715 if test "$GCC" = yes; then
3716 CFLAGS="-g -O2"
3717 else
3718 CFLAGS="-g"
3720 else
3721 if test "$GCC" = yes; then
3722 CFLAGS="-O2"
3723 else
3724 CFLAGS=
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3728 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3729 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3730 $as_echo_n "(cached) " >&6
3731 else
3732 ac_cv_prog_cc_c89=no
3733 ac_save_CC=$CC
3734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3735 /* end confdefs.h. */
3736 #include <stdarg.h>
3737 #include <stdio.h>
3738 #include <sys/types.h>
3739 #include <sys/stat.h>
3740 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3741 struct buf { int x; };
3742 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3743 static char *e (p, i)
3744 char **p;
3745 int i;
3747 return p[i];
3749 static char *f (char * (*g) (char **, int), char **p, ...)
3751 char *s;
3752 va_list v;
3753 va_start (v,p);
3754 s = g (p, va_arg (v,int));
3755 va_end (v);
3756 return s;
3759 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3760 function prototypes and stuff, but not '\xHH' hex character constants.
3761 These don't provoke an error unfortunately, instead are silently treated
3762 as 'x'. The following induces an error, until -std is added to get
3763 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3764 array size at least. It's necessary to write '\x00'==0 to get something
3765 that's true only with -std. */
3766 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3768 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3769 inside strings and character constants. */
3770 #define FOO(x) 'x'
3771 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3773 int test (int i, double x);
3774 struct s1 {int (*f) (int a);};
3775 struct s2 {int (*f) (double a);};
3776 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3777 int argc;
3778 char **argv;
3780 main ()
3782 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3784 return 0;
3786 _ACEOF
3787 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3788 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3790 CC="$ac_save_CC $ac_arg"
3791 if ac_fn_c_try_compile "$LINENO"; then :
3792 ac_cv_prog_cc_c89=$ac_arg
3794 rm -f core conftest.err conftest.$ac_objext
3795 test "x$ac_cv_prog_cc_c89" != "xno" && break
3796 done
3797 rm -f conftest.$ac_ext
3798 CC=$ac_save_CC
3801 # AC_CACHE_VAL
3802 case "x$ac_cv_prog_cc_c89" in
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3805 $as_echo "none needed" >&6; } ;;
3806 xno)
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3808 $as_echo "unsupported" >&6; } ;;
3810 CC="$CC $ac_cv_prog_cc_c89"
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3812 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3813 esac
3814 if test "x$ac_cv_prog_cc_c89" != xno; then :
3818 ac_ext=c
3819 ac_cpp='$CPP $CPPFLAGS'
3820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3824 depcc="$CC" am_compiler_list=
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3827 $as_echo_n "checking dependency style of $depcc... " >&6; }
3828 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3829 $as_echo_n "(cached) " >&6
3830 else
3831 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3832 # We make a subdir and do the tests there. Otherwise we can end up
3833 # making bogus files that we don't know about and never remove. For
3834 # instance it was reported that on HP-UX the gcc test will end up
3835 # making a dummy file named `D' -- because `-MD' means `put the output
3836 # in D'.
3837 rm -rf conftest.dir
3838 mkdir conftest.dir
3839 # Copy depcomp to subdir because otherwise we won't find it if we're
3840 # using a relative directory.
3841 cp "$am_depcomp" conftest.dir
3842 cd conftest.dir
3843 # We will build objects and dependencies in a subdirectory because
3844 # it helps to detect inapplicable dependency modes. For instance
3845 # both Tru64's cc and ICC support -MD to output dependencies as a
3846 # side effect of compilation, but ICC will put the dependencies in
3847 # the current directory while Tru64 will put them in the object
3848 # directory.
3849 mkdir sub
3851 am_cv_CC_dependencies_compiler_type=none
3852 if test "$am_compiler_list" = ""; then
3853 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3855 am__universal=false
3856 case " $depcc " in #(
3857 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3858 esac
3860 for depmode in $am_compiler_list; do
3861 # Setup a source with many dependencies, because some compilers
3862 # like to wrap large dependency lists on column 80 (with \), and
3863 # we should not choose a depcomp mode which is confused by this.
3865 # We need to recreate these files for each test, as the compiler may
3866 # overwrite some of them when testing with obscure command lines.
3867 # This happens at least with the AIX C compiler.
3868 : > sub/conftest.c
3869 for i in 1 2 3 4 5 6; do
3870 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3871 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3872 # Solaris 8's {/usr,}/bin/sh.
3873 touch sub/conftst$i.h
3874 done
3875 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3877 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3878 # mode. It turns out that the SunPro C++ compiler does not properly
3879 # handle `-M -o', and we need to detect this. Also, some Intel
3880 # versions had trouble with output in subdirs
3881 am__obj=sub/conftest.${OBJEXT-o}
3882 am__minus_obj="-o $am__obj"
3883 case $depmode in
3884 gcc)
3885 # This depmode causes a compiler race in universal mode.
3886 test "$am__universal" = false || continue
3888 nosideeffect)
3889 # after this tag, mechanisms are not by side-effect, so they'll
3890 # only be used when explicitly requested
3891 if test "x$enable_dependency_tracking" = xyes; then
3892 continue
3893 else
3894 break
3897 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3898 # This compiler won't grok `-c -o', but also, the minuso test has
3899 # not run yet. These depmodes are late enough in the game, and
3900 # so weak that their functioning should not be impacted.
3901 am__obj=conftest.${OBJEXT-o}
3902 am__minus_obj=
3904 none) break ;;
3905 esac
3906 if depmode=$depmode \
3907 source=sub/conftest.c object=$am__obj \
3908 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3909 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3910 >/dev/null 2>conftest.err &&
3911 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3912 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3913 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3914 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3915 # icc doesn't choke on unknown options, it will just issue warnings
3916 # or remarks (even with -Werror). So we grep stderr for any message
3917 # that says an option was ignored or not supported.
3918 # When given -MP, icc 7.0 and 7.1 complain thusly:
3919 # icc: Command line warning: ignoring option '-M'; no argument required
3920 # The diagnosis changed in icc 8.0:
3921 # icc: Command line remark: option '-MP' not supported
3922 if (grep 'ignoring option' conftest.err ||
3923 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3924 am_cv_CC_dependencies_compiler_type=$depmode
3925 break
3928 done
3930 cd ..
3931 rm -rf conftest.dir
3932 else
3933 am_cv_CC_dependencies_compiler_type=none
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3938 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3939 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3942 test "x$enable_dependency_tracking" != xno \
3943 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3944 am__fastdepCC_TRUE=
3945 am__fastdepCC_FALSE='#'
3946 else
3947 am__fastdepCC_TRUE='#'
3948 am__fastdepCC_FALSE=
3953 ac_ext=c
3954 ac_cpp='$CPP $CPPFLAGS'
3955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3959 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3960 # On Suns, sometimes $CPP names a directory.
3961 if test -n "$CPP" && test -d "$CPP"; then
3962 CPP=
3964 if test -z "$CPP"; then
3965 if test "${ac_cv_prog_CPP+set}" = set; then :
3966 $as_echo_n "(cached) " >&6
3967 else
3968 # Double quotes because CPP needs to be expanded
3969 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3971 ac_preproc_ok=false
3972 for ac_c_preproc_warn_flag in '' yes
3974 # Use a header file that comes with gcc, so configuring glibc
3975 # with a fresh cross-compiler works.
3976 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3977 # <limits.h> exists even on freestanding compilers.
3978 # On the NeXT, cc -E runs the code through the compiler's parser,
3979 # not just through cpp. "Syntax error" is here to catch this case.
3980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3981 /* end confdefs.h. */
3982 #ifdef __STDC__
3983 # include <limits.h>
3984 #else
3985 # include <assert.h>
3986 #endif
3987 Syntax error
3988 _ACEOF
3989 if ac_fn_c_try_cpp "$LINENO"; then :
3991 else
3992 # Broken: fails on valid input.
3993 continue
3995 rm -f conftest.err conftest.$ac_ext
3997 # OK, works on sane cases. Now check whether nonexistent headers
3998 # can be detected and how.
3999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4000 /* end confdefs.h. */
4001 #include <ac_nonexistent.h>
4002 _ACEOF
4003 if ac_fn_c_try_cpp "$LINENO"; then :
4004 # Broken: success on invalid input.
4005 continue
4006 else
4007 # Passes both tests.
4008 ac_preproc_ok=:
4009 break
4011 rm -f conftest.err conftest.$ac_ext
4013 done
4014 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4015 rm -f conftest.err conftest.$ac_ext
4016 if $ac_preproc_ok; then :
4017 break
4020 done
4021 ac_cv_prog_CPP=$CPP
4024 CPP=$ac_cv_prog_CPP
4025 else
4026 ac_cv_prog_CPP=$CPP
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4029 $as_echo "$CPP" >&6; }
4030 ac_preproc_ok=false
4031 for ac_c_preproc_warn_flag in '' yes
4033 # Use a header file that comes with gcc, so configuring glibc
4034 # with a fresh cross-compiler works.
4035 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4036 # <limits.h> exists even on freestanding compilers.
4037 # On the NeXT, cc -E runs the code through the compiler's parser,
4038 # not just through cpp. "Syntax error" is here to catch this case.
4039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4040 /* end confdefs.h. */
4041 #ifdef __STDC__
4042 # include <limits.h>
4043 #else
4044 # include <assert.h>
4045 #endif
4046 Syntax error
4047 _ACEOF
4048 if ac_fn_c_try_cpp "$LINENO"; then :
4050 else
4051 # Broken: fails on valid input.
4052 continue
4054 rm -f conftest.err conftest.$ac_ext
4056 # OK, works on sane cases. Now check whether nonexistent headers
4057 # can be detected and how.
4058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4059 /* end confdefs.h. */
4060 #include <ac_nonexistent.h>
4061 _ACEOF
4062 if ac_fn_c_try_cpp "$LINENO"; then :
4063 # Broken: success on invalid input.
4064 continue
4065 else
4066 # Passes both tests.
4067 ac_preproc_ok=:
4068 break
4070 rm -f conftest.err conftest.$ac_ext
4072 done
4073 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4074 rm -f conftest.err conftest.$ac_ext
4075 if $ac_preproc_ok; then :
4077 else
4078 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4079 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4080 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4081 See \`config.log' for more details." "$LINENO" 5; }
4084 ac_ext=c
4085 ac_cpp='$CPP $CPPFLAGS'
4086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4092 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4093 if test "${ac_cv_path_GREP+set}" = set; then :
4094 $as_echo_n "(cached) " >&6
4095 else
4096 if test -z "$GREP"; then
4097 ac_path_GREP_found=false
4098 # Loop through the user's path and test for each of PROGNAME-LIST
4099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4100 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4102 IFS=$as_save_IFS
4103 test -z "$as_dir" && as_dir=.
4104 for ac_prog in grep ggrep; do
4105 for ac_exec_ext in '' $ac_executable_extensions; do
4106 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4107 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4108 # Check for GNU ac_path_GREP and select it if it is found.
4109 # Check for GNU $ac_path_GREP
4110 case `"$ac_path_GREP" --version 2>&1` in
4111 *GNU*)
4112 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4114 ac_count=0
4115 $as_echo_n 0123456789 >"conftest.in"
4116 while :
4118 cat "conftest.in" "conftest.in" >"conftest.tmp"
4119 mv "conftest.tmp" "conftest.in"
4120 cp "conftest.in" "conftest.nl"
4121 $as_echo 'GREP' >> "conftest.nl"
4122 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4123 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4124 as_fn_arith $ac_count + 1 && ac_count=$as_val
4125 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4126 # Best one so far, save it but keep looking for a better one
4127 ac_cv_path_GREP="$ac_path_GREP"
4128 ac_path_GREP_max=$ac_count
4130 # 10*(2^10) chars as input seems more than enough
4131 test $ac_count -gt 10 && break
4132 done
4133 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4134 esac
4136 $ac_path_GREP_found && break 3
4137 done
4138 done
4139 done
4140 IFS=$as_save_IFS
4141 if test -z "$ac_cv_path_GREP"; then
4142 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4144 else
4145 ac_cv_path_GREP=$GREP
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4150 $as_echo "$ac_cv_path_GREP" >&6; }
4151 GREP="$ac_cv_path_GREP"
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4155 $as_echo_n "checking for egrep... " >&6; }
4156 if test "${ac_cv_path_EGREP+set}" = set; then :
4157 $as_echo_n "(cached) " >&6
4158 else
4159 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4160 then ac_cv_path_EGREP="$GREP -E"
4161 else
4162 if test -z "$EGREP"; then
4163 ac_path_EGREP_found=false
4164 # Loop through the user's path and test for each of PROGNAME-LIST
4165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4166 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4168 IFS=$as_save_IFS
4169 test -z "$as_dir" && as_dir=.
4170 for ac_prog in egrep; do
4171 for ac_exec_ext in '' $ac_executable_extensions; do
4172 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4173 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4174 # Check for GNU ac_path_EGREP and select it if it is found.
4175 # Check for GNU $ac_path_EGREP
4176 case `"$ac_path_EGREP" --version 2>&1` in
4177 *GNU*)
4178 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4180 ac_count=0
4181 $as_echo_n 0123456789 >"conftest.in"
4182 while :
4184 cat "conftest.in" "conftest.in" >"conftest.tmp"
4185 mv "conftest.tmp" "conftest.in"
4186 cp "conftest.in" "conftest.nl"
4187 $as_echo 'EGREP' >> "conftest.nl"
4188 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4189 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4190 as_fn_arith $ac_count + 1 && ac_count=$as_val
4191 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4192 # Best one so far, save it but keep looking for a better one
4193 ac_cv_path_EGREP="$ac_path_EGREP"
4194 ac_path_EGREP_max=$ac_count
4196 # 10*(2^10) chars as input seems more than enough
4197 test $ac_count -gt 10 && break
4198 done
4199 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4200 esac
4202 $ac_path_EGREP_found && break 3
4203 done
4204 done
4205 done
4206 IFS=$as_save_IFS
4207 if test -z "$ac_cv_path_EGREP"; then
4208 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4210 else
4211 ac_cv_path_EGREP=$EGREP
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4217 $as_echo "$ac_cv_path_EGREP" >&6; }
4218 EGREP="$ac_cv_path_EGREP"
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4222 $as_echo_n "checking for ANSI C header files... " >&6; }
4223 if test "${ac_cv_header_stdc+set}" = set; then :
4224 $as_echo_n "(cached) " >&6
4225 else
4226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4227 /* end confdefs.h. */
4228 #include <stdlib.h>
4229 #include <stdarg.h>
4230 #include <string.h>
4231 #include <float.h>
4234 main ()
4238 return 0;
4240 _ACEOF
4241 if ac_fn_c_try_compile "$LINENO"; then :
4242 ac_cv_header_stdc=yes
4243 else
4244 ac_cv_header_stdc=no
4246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4248 if test $ac_cv_header_stdc = yes; then
4249 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4251 /* end confdefs.h. */
4252 #include <string.h>
4254 _ACEOF
4255 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4256 $EGREP "memchr" >/dev/null 2>&1; then :
4258 else
4259 ac_cv_header_stdc=no
4261 rm -f conftest*
4265 if test $ac_cv_header_stdc = yes; then
4266 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4268 /* end confdefs.h. */
4269 #include <stdlib.h>
4271 _ACEOF
4272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4273 $EGREP "free" >/dev/null 2>&1; then :
4275 else
4276 ac_cv_header_stdc=no
4278 rm -f conftest*
4282 if test $ac_cv_header_stdc = yes; then
4283 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4284 if test "$cross_compiling" = yes; then :
4286 else
4287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4288 /* end confdefs.h. */
4289 #include <ctype.h>
4290 #include <stdlib.h>
4291 #if ((' ' & 0x0FF) == 0x020)
4292 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4293 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4294 #else
4295 # define ISLOWER(c) \
4296 (('a' <= (c) && (c) <= 'i') \
4297 || ('j' <= (c) && (c) <= 'r') \
4298 || ('s' <= (c) && (c) <= 'z'))
4299 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4300 #endif
4302 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4304 main ()
4306 int i;
4307 for (i = 0; i < 256; i++)
4308 if (XOR (islower (i), ISLOWER (i))
4309 || toupper (i) != TOUPPER (i))
4310 return 2;
4311 return 0;
4313 _ACEOF
4314 if ac_fn_c_try_run "$LINENO"; then :
4316 else
4317 ac_cv_header_stdc=no
4319 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4320 conftest.$ac_objext conftest.beam conftest.$ac_ext
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4326 $as_echo "$ac_cv_header_stdc" >&6; }
4327 if test $ac_cv_header_stdc = yes; then
4329 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4333 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4334 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4335 inttypes.h stdint.h unistd.h
4336 do :
4337 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4338 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4340 eval as_val=\$$as_ac_Header
4341 if test "x$as_val" = x""yes; then :
4342 cat >>confdefs.h <<_ACEOF
4343 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4344 _ACEOF
4348 done
4352 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4353 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4354 MINIX=yes
4355 else
4356 MINIX=
4360 if test "$MINIX" = yes; then
4362 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4365 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4368 $as_echo "#define _MINIX 1" >>confdefs.h
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4374 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4375 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4376 $as_echo_n "(cached) " >&6
4377 else
4378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379 /* end confdefs.h. */
4381 # define __EXTENSIONS__ 1
4382 $ac_includes_default
4384 main ()
4388 return 0;
4390 _ACEOF
4391 if ac_fn_c_try_compile "$LINENO"; then :
4392 ac_cv_safe_to_define___extensions__=yes
4393 else
4394 ac_cv_safe_to_define___extensions__=no
4396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4399 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4400 test $ac_cv_safe_to_define___extensions__ = yes &&
4401 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4403 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4405 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4407 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4409 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4412 ac_ext=c
4413 ac_cpp='$CPP $CPPFLAGS'
4414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4417 if test -n "$ac_tool_prefix"; then
4418 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4419 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4421 $as_echo_n "checking for $ac_word... " >&6; }
4422 if test "${ac_cv_prog_CC+set}" = set; then :
4423 $as_echo_n "(cached) " >&6
4424 else
4425 if test -n "$CC"; then
4426 ac_cv_prog_CC="$CC" # Let the user override the test.
4427 else
4428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4429 for as_dir in $PATH
4431 IFS=$as_save_IFS
4432 test -z "$as_dir" && as_dir=.
4433 for ac_exec_ext in '' $ac_executable_extensions; do
4434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4435 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4437 break 2
4439 done
4440 done
4441 IFS=$as_save_IFS
4445 CC=$ac_cv_prog_CC
4446 if test -n "$CC"; then
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4448 $as_echo "$CC" >&6; }
4449 else
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4451 $as_echo "no" >&6; }
4456 if test -z "$ac_cv_prog_CC"; then
4457 ac_ct_CC=$CC
4458 # Extract the first word of "gcc", so it can be a program name with args.
4459 set dummy gcc; ac_word=$2
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4461 $as_echo_n "checking for $ac_word... " >&6; }
4462 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4463 $as_echo_n "(cached) " >&6
4464 else
4465 if test -n "$ac_ct_CC"; then
4466 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4467 else
4468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469 for as_dir in $PATH
4471 IFS=$as_save_IFS
4472 test -z "$as_dir" && as_dir=.
4473 for ac_exec_ext in '' $ac_executable_extensions; do
4474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4475 ac_cv_prog_ac_ct_CC="gcc"
4476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4477 break 2
4479 done
4480 done
4481 IFS=$as_save_IFS
4485 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4486 if test -n "$ac_ct_CC"; then
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4488 $as_echo "$ac_ct_CC" >&6; }
4489 else
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4491 $as_echo "no" >&6; }
4494 if test "x$ac_ct_CC" = x; then
4495 CC=""
4496 else
4497 case $cross_compiling:$ac_tool_warned in
4498 yes:)
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4500 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4501 ac_tool_warned=yes ;;
4502 esac
4503 CC=$ac_ct_CC
4505 else
4506 CC="$ac_cv_prog_CC"
4509 if test -z "$CC"; then
4510 if test -n "$ac_tool_prefix"; then
4511 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4512 set dummy ${ac_tool_prefix}cc; ac_word=$2
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4514 $as_echo_n "checking for $ac_word... " >&6; }
4515 if test "${ac_cv_prog_CC+set}" = set; then :
4516 $as_echo_n "(cached) " >&6
4517 else
4518 if test -n "$CC"; then
4519 ac_cv_prog_CC="$CC" # Let the user override the test.
4520 else
4521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522 for as_dir in $PATH
4524 IFS=$as_save_IFS
4525 test -z "$as_dir" && as_dir=.
4526 for ac_exec_ext in '' $ac_executable_extensions; do
4527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4528 ac_cv_prog_CC="${ac_tool_prefix}cc"
4529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4530 break 2
4532 done
4533 done
4534 IFS=$as_save_IFS
4538 CC=$ac_cv_prog_CC
4539 if test -n "$CC"; then
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4541 $as_echo "$CC" >&6; }
4542 else
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4544 $as_echo "no" >&6; }
4550 if test -z "$CC"; then
4551 # Extract the first word of "cc", so it can be a program name with args.
4552 set dummy cc; ac_word=$2
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4554 $as_echo_n "checking for $ac_word... " >&6; }
4555 if test "${ac_cv_prog_CC+set}" = set; then :
4556 $as_echo_n "(cached) " >&6
4557 else
4558 if test -n "$CC"; then
4559 ac_cv_prog_CC="$CC" # Let the user override the test.
4560 else
4561 ac_prog_rejected=no
4562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563 for as_dir in $PATH
4565 IFS=$as_save_IFS
4566 test -z "$as_dir" && as_dir=.
4567 for ac_exec_ext in '' $ac_executable_extensions; do
4568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4569 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4570 ac_prog_rejected=yes
4571 continue
4573 ac_cv_prog_CC="cc"
4574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4575 break 2
4577 done
4578 done
4579 IFS=$as_save_IFS
4581 if test $ac_prog_rejected = yes; then
4582 # We found a bogon in the path, so make sure we never use it.
4583 set dummy $ac_cv_prog_CC
4584 shift
4585 if test $# != 0; then
4586 # We chose a different compiler from the bogus one.
4587 # However, it has the same basename, so the bogon will be chosen
4588 # first if we set CC to just the basename; use the full file name.
4589 shift
4590 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4595 CC=$ac_cv_prog_CC
4596 if test -n "$CC"; then
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4598 $as_echo "$CC" >&6; }
4599 else
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4601 $as_echo "no" >&6; }
4606 if test -z "$CC"; then
4607 if test -n "$ac_tool_prefix"; then
4608 for ac_prog in cl.exe
4610 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4611 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4613 $as_echo_n "checking for $ac_word... " >&6; }
4614 if test "${ac_cv_prog_CC+set}" = set; then :
4615 $as_echo_n "(cached) " >&6
4616 else
4617 if test -n "$CC"; then
4618 ac_cv_prog_CC="$CC" # Let the user override the test.
4619 else
4620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621 for as_dir in $PATH
4623 IFS=$as_save_IFS
4624 test -z "$as_dir" && as_dir=.
4625 for ac_exec_ext in '' $ac_executable_extensions; do
4626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4627 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4629 break 2
4631 done
4632 done
4633 IFS=$as_save_IFS
4637 CC=$ac_cv_prog_CC
4638 if test -n "$CC"; then
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4640 $as_echo "$CC" >&6; }
4641 else
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4643 $as_echo "no" >&6; }
4647 test -n "$CC" && break
4648 done
4650 if test -z "$CC"; then
4651 ac_ct_CC=$CC
4652 for ac_prog in cl.exe
4654 # Extract the first word of "$ac_prog", so it can be a program name with args.
4655 set dummy $ac_prog; ac_word=$2
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4657 $as_echo_n "checking for $ac_word... " >&6; }
4658 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4659 $as_echo_n "(cached) " >&6
4660 else
4661 if test -n "$ac_ct_CC"; then
4662 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4663 else
4664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665 for as_dir in $PATH
4667 IFS=$as_save_IFS
4668 test -z "$as_dir" && as_dir=.
4669 for ac_exec_ext in '' $ac_executable_extensions; do
4670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4671 ac_cv_prog_ac_ct_CC="$ac_prog"
4672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4673 break 2
4675 done
4676 done
4677 IFS=$as_save_IFS
4681 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4682 if test -n "$ac_ct_CC"; then
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4684 $as_echo "$ac_ct_CC" >&6; }
4685 else
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4687 $as_echo "no" >&6; }
4691 test -n "$ac_ct_CC" && break
4692 done
4694 if test "x$ac_ct_CC" = x; then
4695 CC=""
4696 else
4697 case $cross_compiling:$ac_tool_warned in
4698 yes:)
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4700 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4701 ac_tool_warned=yes ;;
4702 esac
4703 CC=$ac_ct_CC
4710 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4711 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4712 as_fn_error "no acceptable C compiler found in \$PATH
4713 See \`config.log' for more details." "$LINENO" 5; }
4715 # Provide some information about the compiler.
4716 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4717 set X $ac_compile
4718 ac_compiler=$2
4719 for ac_option in --version -v -V -qversion; do
4720 { { ac_try="$ac_compiler $ac_option >&5"
4721 case "(($ac_try" in
4722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4723 *) ac_try_echo=$ac_try;;
4724 esac
4725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4726 $as_echo "$ac_try_echo"; } >&5
4727 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4728 ac_status=$?
4729 if test -s conftest.err; then
4730 sed '10a\
4731 ... rest of stderr output deleted ...
4732 10q' conftest.err >conftest.er1
4733 cat conftest.er1 >&5
4734 rm -f conftest.er1 conftest.err
4736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4737 test $ac_status = 0; }
4738 done
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4741 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4742 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4743 $as_echo_n "(cached) " >&6
4744 else
4745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4746 /* end confdefs.h. */
4749 main ()
4751 #ifndef __GNUC__
4752 choke me
4753 #endif
4756 return 0;
4758 _ACEOF
4759 if ac_fn_c_try_compile "$LINENO"; then :
4760 ac_compiler_gnu=yes
4761 else
4762 ac_compiler_gnu=no
4764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4765 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4769 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4770 if test $ac_compiler_gnu = yes; then
4771 GCC=yes
4772 else
4773 GCC=
4775 ac_test_CFLAGS=${CFLAGS+set}
4776 ac_save_CFLAGS=$CFLAGS
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4778 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4779 if test "${ac_cv_prog_cc_g+set}" = set; then :
4780 $as_echo_n "(cached) " >&6
4781 else
4782 ac_save_c_werror_flag=$ac_c_werror_flag
4783 ac_c_werror_flag=yes
4784 ac_cv_prog_cc_g=no
4785 CFLAGS="-g"
4786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4787 /* end confdefs.h. */
4790 main ()
4794 return 0;
4796 _ACEOF
4797 if ac_fn_c_try_compile "$LINENO"; then :
4798 ac_cv_prog_cc_g=yes
4799 else
4800 CFLAGS=""
4801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4802 /* end confdefs.h. */
4805 main ()
4809 return 0;
4811 _ACEOF
4812 if ac_fn_c_try_compile "$LINENO"; then :
4814 else
4815 ac_c_werror_flag=$ac_save_c_werror_flag
4816 CFLAGS="-g"
4817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4818 /* end confdefs.h. */
4821 main ()
4825 return 0;
4827 _ACEOF
4828 if ac_fn_c_try_compile "$LINENO"; then :
4829 ac_cv_prog_cc_g=yes
4831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4836 ac_c_werror_flag=$ac_save_c_werror_flag
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4839 $as_echo "$ac_cv_prog_cc_g" >&6; }
4840 if test "$ac_test_CFLAGS" = set; then
4841 CFLAGS=$ac_save_CFLAGS
4842 elif test $ac_cv_prog_cc_g = yes; then
4843 if test "$GCC" = yes; then
4844 CFLAGS="-g -O2"
4845 else
4846 CFLAGS="-g"
4848 else
4849 if test "$GCC" = yes; then
4850 CFLAGS="-O2"
4851 else
4852 CFLAGS=
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4856 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4857 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4858 $as_echo_n "(cached) " >&6
4859 else
4860 ac_cv_prog_cc_c89=no
4861 ac_save_CC=$CC
4862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4863 /* end confdefs.h. */
4864 #include <stdarg.h>
4865 #include <stdio.h>
4866 #include <sys/types.h>
4867 #include <sys/stat.h>
4868 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4869 struct buf { int x; };
4870 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4871 static char *e (p, i)
4872 char **p;
4873 int i;
4875 return p[i];
4877 static char *f (char * (*g) (char **, int), char **p, ...)
4879 char *s;
4880 va_list v;
4881 va_start (v,p);
4882 s = g (p, va_arg (v,int));
4883 va_end (v);
4884 return s;
4887 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4888 function prototypes and stuff, but not '\xHH' hex character constants.
4889 These don't provoke an error unfortunately, instead are silently treated
4890 as 'x'. The following induces an error, until -std is added to get
4891 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4892 array size at least. It's necessary to write '\x00'==0 to get something
4893 that's true only with -std. */
4894 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4896 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4897 inside strings and character constants. */
4898 #define FOO(x) 'x'
4899 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4901 int test (int i, double x);
4902 struct s1 {int (*f) (int a);};
4903 struct s2 {int (*f) (double a);};
4904 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4905 int argc;
4906 char **argv;
4908 main ()
4910 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4912 return 0;
4914 _ACEOF
4915 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4916 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4918 CC="$ac_save_CC $ac_arg"
4919 if ac_fn_c_try_compile "$LINENO"; then :
4920 ac_cv_prog_cc_c89=$ac_arg
4922 rm -f core conftest.err conftest.$ac_objext
4923 test "x$ac_cv_prog_cc_c89" != "xno" && break
4924 done
4925 rm -f conftest.$ac_ext
4926 CC=$ac_save_CC
4929 # AC_CACHE_VAL
4930 case "x$ac_cv_prog_cc_c89" in
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4933 $as_echo "none needed" >&6; } ;;
4934 xno)
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4936 $as_echo "unsupported" >&6; } ;;
4938 CC="$CC $ac_cv_prog_cc_c89"
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4940 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4941 esac
4942 if test "x$ac_cv_prog_cc_c89" != xno; then :
4946 ac_ext=c
4947 ac_cpp='$CPP $CPPFLAGS'
4948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4952 depcc="$CC" am_compiler_list=
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4955 $as_echo_n "checking dependency style of $depcc... " >&6; }
4956 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4957 $as_echo_n "(cached) " >&6
4958 else
4959 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4960 # We make a subdir and do the tests there. Otherwise we can end up
4961 # making bogus files that we don't know about and never remove. For
4962 # instance it was reported that on HP-UX the gcc test will end up
4963 # making a dummy file named `D' -- because `-MD' means `put the output
4964 # in D'.
4965 rm -rf conftest.dir
4966 mkdir conftest.dir
4967 # Copy depcomp to subdir because otherwise we won't find it if we're
4968 # using a relative directory.
4969 cp "$am_depcomp" conftest.dir
4970 cd conftest.dir
4971 # We will build objects and dependencies in a subdirectory because
4972 # it helps to detect inapplicable dependency modes. For instance
4973 # both Tru64's cc and ICC support -MD to output dependencies as a
4974 # side effect of compilation, but ICC will put the dependencies in
4975 # the current directory while Tru64 will put them in the object
4976 # directory.
4977 mkdir sub
4979 am_cv_CC_dependencies_compiler_type=none
4980 if test "$am_compiler_list" = ""; then
4981 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4983 am__universal=false
4984 case " $depcc " in #(
4985 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4986 esac
4988 for depmode in $am_compiler_list; do
4989 # Setup a source with many dependencies, because some compilers
4990 # like to wrap large dependency lists on column 80 (with \), and
4991 # we should not choose a depcomp mode which is confused by this.
4993 # We need to recreate these files for each test, as the compiler may
4994 # overwrite some of them when testing with obscure command lines.
4995 # This happens at least with the AIX C compiler.
4996 : > sub/conftest.c
4997 for i in 1 2 3 4 5 6; do
4998 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4999 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5000 # Solaris 8's {/usr,}/bin/sh.
5001 touch sub/conftst$i.h
5002 done
5003 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5005 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5006 # mode. It turns out that the SunPro C++ compiler does not properly
5007 # handle `-M -o', and we need to detect this. Also, some Intel
5008 # versions had trouble with output in subdirs
5009 am__obj=sub/conftest.${OBJEXT-o}
5010 am__minus_obj="-o $am__obj"
5011 case $depmode in
5012 gcc)
5013 # This depmode causes a compiler race in universal mode.
5014 test "$am__universal" = false || continue
5016 nosideeffect)
5017 # after this tag, mechanisms are not by side-effect, so they'll
5018 # only be used when explicitly requested
5019 if test "x$enable_dependency_tracking" = xyes; then
5020 continue
5021 else
5022 break
5025 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5026 # This compiler won't grok `-c -o', but also, the minuso test has
5027 # not run yet. These depmodes are late enough in the game, and
5028 # so weak that their functioning should not be impacted.
5029 am__obj=conftest.${OBJEXT-o}
5030 am__minus_obj=
5032 none) break ;;
5033 esac
5034 if depmode=$depmode \
5035 source=sub/conftest.c object=$am__obj \
5036 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5037 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5038 >/dev/null 2>conftest.err &&
5039 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5040 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5041 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5042 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5043 # icc doesn't choke on unknown options, it will just issue warnings
5044 # or remarks (even with -Werror). So we grep stderr for any message
5045 # that says an option was ignored or not supported.
5046 # When given -MP, icc 7.0 and 7.1 complain thusly:
5047 # icc: Command line warning: ignoring option '-M'; no argument required
5048 # The diagnosis changed in icc 8.0:
5049 # icc: Command line remark: option '-MP' not supported
5050 if (grep 'ignoring option' conftest.err ||
5051 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5052 am_cv_CC_dependencies_compiler_type=$depmode
5053 break
5056 done
5058 cd ..
5059 rm -rf conftest.dir
5060 else
5061 am_cv_CC_dependencies_compiler_type=none
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5066 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5067 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5070 test "x$enable_dependency_tracking" != xno \
5071 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5072 am__fastdepCC_TRUE=
5073 am__fastdepCC_FALSE='#'
5074 else
5075 am__fastdepCC_TRUE='#'
5076 am__fastdepCC_FALSE=
5080 # Check whether --enable-largefile was given.
5081 if test "${enable_largefile+set}" = set; then :
5082 enableval=$enable_largefile;
5085 if test "$enable_largefile" != no; then
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5088 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5089 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5090 $as_echo_n "(cached) " >&6
5091 else
5092 ac_cv_sys_largefile_CC=no
5093 if test "$GCC" != yes; then
5094 ac_save_CC=$CC
5095 while :; do
5096 # IRIX 6.2 and later do not support large files by default,
5097 # so use the C compiler's -n32 option if that helps.
5098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5099 /* end confdefs.h. */
5100 #include <sys/types.h>
5101 /* Check that off_t can represent 2**63 - 1 correctly.
5102 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5103 since some C++ compilers masquerading as C compilers
5104 incorrectly reject 9223372036854775807. */
5105 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5106 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5107 && LARGE_OFF_T % 2147483647 == 1)
5108 ? 1 : -1];
5110 main ()
5114 return 0;
5116 _ACEOF
5117 if ac_fn_c_try_compile "$LINENO"; then :
5118 break
5120 rm -f core conftest.err conftest.$ac_objext
5121 CC="$CC -n32"
5122 if ac_fn_c_try_compile "$LINENO"; then :
5123 ac_cv_sys_largefile_CC=' -n32'; break
5125 rm -f core conftest.err conftest.$ac_objext
5126 break
5127 done
5128 CC=$ac_save_CC
5129 rm -f conftest.$ac_ext
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5133 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5134 if test "$ac_cv_sys_largefile_CC" != no; then
5135 CC=$CC$ac_cv_sys_largefile_CC
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5139 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5140 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5141 $as_echo_n "(cached) " >&6
5142 else
5143 while :; do
5144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5145 /* end confdefs.h. */
5146 #include <sys/types.h>
5147 /* Check that off_t can represent 2**63 - 1 correctly.
5148 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5149 since some C++ compilers masquerading as C compilers
5150 incorrectly reject 9223372036854775807. */
5151 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5152 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5153 && LARGE_OFF_T % 2147483647 == 1)
5154 ? 1 : -1];
5156 main ()
5160 return 0;
5162 _ACEOF
5163 if ac_fn_c_try_compile "$LINENO"; then :
5164 ac_cv_sys_file_offset_bits=no; break
5166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5168 /* end confdefs.h. */
5169 #define _FILE_OFFSET_BITS 64
5170 #include <sys/types.h>
5171 /* Check that off_t can represent 2**63 - 1 correctly.
5172 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5173 since some C++ compilers masquerading as C compilers
5174 incorrectly reject 9223372036854775807. */
5175 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5176 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5177 && LARGE_OFF_T % 2147483647 == 1)
5178 ? 1 : -1];
5180 main ()
5184 return 0;
5186 _ACEOF
5187 if ac_fn_c_try_compile "$LINENO"; then :
5188 ac_cv_sys_file_offset_bits=64; break
5190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5191 ac_cv_sys_file_offset_bits=unknown
5192 break
5193 done
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5196 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5197 case $ac_cv_sys_file_offset_bits in #(
5198 no | unknown) ;;
5200 cat >>confdefs.h <<_ACEOF
5201 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5202 _ACEOF
5204 esac
5205 rm -rf conftest*
5206 if test $ac_cv_sys_file_offset_bits = unknown; then
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5208 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5209 if test "${ac_cv_sys_large_files+set}" = set; then :
5210 $as_echo_n "(cached) " >&6
5211 else
5212 while :; do
5213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5214 /* end confdefs.h. */
5215 #include <sys/types.h>
5216 /* Check that off_t can represent 2**63 - 1 correctly.
5217 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5218 since some C++ compilers masquerading as C compilers
5219 incorrectly reject 9223372036854775807. */
5220 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5221 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5222 && LARGE_OFF_T % 2147483647 == 1)
5223 ? 1 : -1];
5225 main ()
5229 return 0;
5231 _ACEOF
5232 if ac_fn_c_try_compile "$LINENO"; then :
5233 ac_cv_sys_large_files=no; break
5235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5237 /* end confdefs.h. */
5238 #define _LARGE_FILES 1
5239 #include <sys/types.h>
5240 /* Check that off_t can represent 2**63 - 1 correctly.
5241 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5242 since some C++ compilers masquerading as C compilers
5243 incorrectly reject 9223372036854775807. */
5244 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5245 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5246 && LARGE_OFF_T % 2147483647 == 1)
5247 ? 1 : -1];
5249 main ()
5253 return 0;
5255 _ACEOF
5256 if ac_fn_c_try_compile "$LINENO"; then :
5257 ac_cv_sys_large_files=1; break
5259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5260 ac_cv_sys_large_files=unknown
5261 break
5262 done
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5265 $as_echo "$ac_cv_sys_large_files" >&6; }
5266 case $ac_cv_sys_large_files in #(
5267 no | unknown) ;;
5269 cat >>confdefs.h <<_ACEOF
5270 #define _LARGE_FILES $ac_cv_sys_large_files
5271 _ACEOF
5273 esac
5274 rm -rf conftest*
5278 ac_ext=c
5279 ac_cpp='$CPP $CPPFLAGS'
5280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5284 ac_lto_plugin_warn_cflags=
5285 save_CFLAGS="$CFLAGS"
5286 for real_option in -Wall; do
5287 # Do the check with the no- prefix removed since gcc silently
5288 # accepts any -Wno-* option on purpose
5289 case $real_option in
5290 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
5291 *) option=$real_option ;;
5292 esac
5293 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
5296 $as_echo_n "checking whether $CC supports $option... " >&6; }
5297 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
5298 $as_echo_n "(cached) " >&6
5299 else
5300 CFLAGS="$option"
5301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5302 /* end confdefs.h. */
5305 main ()
5309 return 0;
5311 _ACEOF
5312 if ac_fn_c_try_compile "$LINENO"; then :
5313 eval "$as_acx_Woption=yes"
5314 else
5315 eval "$as_acx_Woption=no"
5317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5320 eval ac_res=\$$as_acx_Woption
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5322 $as_echo "$ac_res" >&6; }
5323 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
5324 ac_lto_plugin_warn_cflags="$ac_lto_plugin_warn_cflags${ac_lto_plugin_warn_cflags:+ }$real_option"
5326 done
5327 CFLAGS="$save_CFLAGS"
5328 ac_ext=c
5329 ac_cpp='$CPP $CPPFLAGS'
5330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5336 # Check whether -static-libgcc is supported.
5337 saved_LDFLAGS="$LDFLAGS"
5338 LDFLAGS="$LDFLAGS -static-libgcc"
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -static-libgcc" >&5
5340 $as_echo_n "checking for -static-libgcc... " >&6; }
5341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5342 /* end confdefs.h. */
5344 int main() {}
5345 _ACEOF
5346 if ac_fn_c_try_link "$LINENO"; then :
5347 have_static_libgcc=yes
5348 else
5349 have_static_libgcc=no
5351 rm -f core conftest.err conftest.$ac_objext \
5352 conftest$ac_exeext conftest.$ac_ext
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_static_libgcc" >&5
5354 $as_echo "$have_static_libgcc" >&6; };
5355 LDFLAGS="$saved_LDFLAGS"
5356 # Need -Wc to get it through libtool.
5357 if test "x$have_static_libgcc" = xyes; then
5358 ac_lto_plugin_ldflags="-Wc,-static-libgcc"
5362 if test x"$host_subdir" = x.; then
5363 gcc_build_dir=../gcc
5364 else
5365 gcc_build_dir=../../$host_subdir/gcc
5369 # Used for constructing correct paths for offload compilers.
5370 accel_dir_suffix=
5371 real_target_noncanonical=${target_noncanonical}
5372 if test x"$enable_as_accelerator_for" != x; then
5373 accel_dir_suffix=/accel/${target_noncanonical}
5374 real_target_noncanonical=${enable_as_accelerator_for}
5379 case `pwd` in
5380 *\ * | *\ *)
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5382 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5383 esac
5387 macro_version='2.2.7a'
5388 macro_revision='1.3134'
5402 ltmain="$ac_aux_dir/ltmain.sh"
5404 # Backslashify metacharacters that are still active within
5405 # double-quoted strings.
5406 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5408 # Same as above, but do not quote variable references.
5409 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5411 # Sed substitution to delay expansion of an escaped shell variable in a
5412 # double_quote_subst'ed string.
5413 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5415 # Sed substitution to delay expansion of an escaped single quote.
5416 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5418 # Sed substitution to avoid accidental globbing in evaled expressions
5419 no_glob_subst='s/\*/\\\*/g'
5421 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5422 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5423 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5426 $as_echo_n "checking how to print strings... " >&6; }
5427 # Test print first, because it will be a builtin if present.
5428 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5429 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5430 ECHO='print -r --'
5431 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5432 ECHO='printf %s\n'
5433 else
5434 # Use this function as a fallback that always works.
5435 func_fallback_echo ()
5437 eval 'cat <<_LTECHO_EOF
5439 _LTECHO_EOF'
5441 ECHO='func_fallback_echo'
5444 # func_echo_all arg...
5445 # Invoke $ECHO with all args, space-separated.
5446 func_echo_all ()
5448 $ECHO ""
5451 case "$ECHO" in
5452 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5453 $as_echo "printf" >&6; } ;;
5454 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5455 $as_echo "print -r" >&6; } ;;
5456 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5457 $as_echo "cat" >&6; } ;;
5458 esac
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5474 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5475 if test "${ac_cv_path_SED+set}" = set; then :
5476 $as_echo_n "(cached) " >&6
5477 else
5478 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5479 for ac_i in 1 2 3 4 5 6 7; do
5480 ac_script="$ac_script$as_nl$ac_script"
5481 done
5482 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5483 { ac_script=; unset ac_script;}
5484 if test -z "$SED"; then
5485 ac_path_SED_found=false
5486 # Loop through the user's path and test for each of PROGNAME-LIST
5487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5488 for as_dir in $PATH
5490 IFS=$as_save_IFS
5491 test -z "$as_dir" && as_dir=.
5492 for ac_prog in sed gsed; do
5493 for ac_exec_ext in '' $ac_executable_extensions; do
5494 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5495 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5496 # Check for GNU ac_path_SED and select it if it is found.
5497 # Check for GNU $ac_path_SED
5498 case `"$ac_path_SED" --version 2>&1` in
5499 *GNU*)
5500 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5502 ac_count=0
5503 $as_echo_n 0123456789 >"conftest.in"
5504 while :
5506 cat "conftest.in" "conftest.in" >"conftest.tmp"
5507 mv "conftest.tmp" "conftest.in"
5508 cp "conftest.in" "conftest.nl"
5509 $as_echo '' >> "conftest.nl"
5510 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5511 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5512 as_fn_arith $ac_count + 1 && ac_count=$as_val
5513 if test $ac_count -gt ${ac_path_SED_max-0}; then
5514 # Best one so far, save it but keep looking for a better one
5515 ac_cv_path_SED="$ac_path_SED"
5516 ac_path_SED_max=$ac_count
5518 # 10*(2^10) chars as input seems more than enough
5519 test $ac_count -gt 10 && break
5520 done
5521 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5522 esac
5524 $ac_path_SED_found && break 3
5525 done
5526 done
5527 done
5528 IFS=$as_save_IFS
5529 if test -z "$ac_cv_path_SED"; then
5530 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5532 else
5533 ac_cv_path_SED=$SED
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5538 $as_echo "$ac_cv_path_SED" >&6; }
5539 SED="$ac_cv_path_SED"
5540 rm -f conftest.sed
5542 test -z "$SED" && SED=sed
5543 Xsed="$SED -e 1s/^X//"
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5556 $as_echo_n "checking for fgrep... " >&6; }
5557 if test "${ac_cv_path_FGREP+set}" = set; then :
5558 $as_echo_n "(cached) " >&6
5559 else
5560 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5561 then ac_cv_path_FGREP="$GREP -F"
5562 else
5563 if test -z "$FGREP"; then
5564 ac_path_FGREP_found=false
5565 # Loop through the user's path and test for each of PROGNAME-LIST
5566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5567 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5569 IFS=$as_save_IFS
5570 test -z "$as_dir" && as_dir=.
5571 for ac_prog in fgrep; do
5572 for ac_exec_ext in '' $ac_executable_extensions; do
5573 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5574 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5575 # Check for GNU ac_path_FGREP and select it if it is found.
5576 # Check for GNU $ac_path_FGREP
5577 case `"$ac_path_FGREP" --version 2>&1` in
5578 *GNU*)
5579 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5581 ac_count=0
5582 $as_echo_n 0123456789 >"conftest.in"
5583 while :
5585 cat "conftest.in" "conftest.in" >"conftest.tmp"
5586 mv "conftest.tmp" "conftest.in"
5587 cp "conftest.in" "conftest.nl"
5588 $as_echo 'FGREP' >> "conftest.nl"
5589 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5590 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5591 as_fn_arith $ac_count + 1 && ac_count=$as_val
5592 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5593 # Best one so far, save it but keep looking for a better one
5594 ac_cv_path_FGREP="$ac_path_FGREP"
5595 ac_path_FGREP_max=$ac_count
5597 # 10*(2^10) chars as input seems more than enough
5598 test $ac_count -gt 10 && break
5599 done
5600 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5601 esac
5603 $ac_path_FGREP_found && break 3
5604 done
5605 done
5606 done
5607 IFS=$as_save_IFS
5608 if test -z "$ac_cv_path_FGREP"; then
5609 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5611 else
5612 ac_cv_path_FGREP=$FGREP
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5618 $as_echo "$ac_cv_path_FGREP" >&6; }
5619 FGREP="$ac_cv_path_FGREP"
5622 test -z "$GREP" && GREP=grep
5642 # Check whether --with-gnu-ld was given.
5643 if test "${with_gnu_ld+set}" = set; then :
5644 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5645 else
5646 with_gnu_ld=no
5649 ac_prog=ld
5650 if test "$GCC" = yes; then
5651 # Check if gcc -print-prog-name=ld gives a path.
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5653 $as_echo_n "checking for ld used by $CC... " >&6; }
5654 case $host in
5655 *-*-mingw*)
5656 # gcc leaves a trailing carriage return which upsets mingw
5657 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5659 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5660 esac
5661 case $ac_prog in
5662 # Accept absolute paths.
5663 [\\/]* | ?:[\\/]*)
5664 re_direlt='/[^/][^/]*/\.\./'
5665 # Canonicalize the pathname of ld
5666 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5667 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5668 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5669 done
5670 test -z "$LD" && LD="$ac_prog"
5673 # If it fails, then pretend we aren't using GCC.
5674 ac_prog=ld
5677 # If it is relative, then search for the first ld in PATH.
5678 with_gnu_ld=unknown
5680 esac
5681 elif test "$with_gnu_ld" = yes; then
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5683 $as_echo_n "checking for GNU ld... " >&6; }
5684 else
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5686 $as_echo_n "checking for non-GNU ld... " >&6; }
5688 if test "${lt_cv_path_LD+set}" = set; then :
5689 $as_echo_n "(cached) " >&6
5690 else
5691 if test -z "$LD"; then
5692 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5693 for ac_dir in $PATH; do
5694 IFS="$lt_save_ifs"
5695 test -z "$ac_dir" && ac_dir=.
5696 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5697 lt_cv_path_LD="$ac_dir/$ac_prog"
5698 # Check to see if the program is GNU ld. I'd rather use --version,
5699 # but apparently some variants of GNU ld only accept -v.
5700 # Break only if it was the GNU/non-GNU ld that we prefer.
5701 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5702 *GNU* | *'with BFD'*)
5703 test "$with_gnu_ld" != no && break
5706 test "$with_gnu_ld" != yes && break
5708 esac
5710 done
5711 IFS="$lt_save_ifs"
5712 else
5713 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5717 LD="$lt_cv_path_LD"
5718 if test -n "$LD"; then
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5720 $as_echo "$LD" >&6; }
5721 else
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5723 $as_echo "no" >&6; }
5725 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5727 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5728 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5729 $as_echo_n "(cached) " >&6
5730 else
5731 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5732 case `$LD -v 2>&1 </dev/null` in
5733 *GNU* | *'with BFD'*)
5734 lt_cv_prog_gnu_ld=yes
5737 lt_cv_prog_gnu_ld=no
5739 esac
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5742 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5743 with_gnu_ld=$lt_cv_prog_gnu_ld
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5754 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5755 if test "${lt_cv_path_NM+set}" = set; then :
5756 $as_echo_n "(cached) " >&6
5757 else
5758 if test -n "$NM"; then
5759 # Let the user override the test.
5760 lt_cv_path_NM="$NM"
5761 else
5762 lt_nm_to_check="${ac_tool_prefix}nm"
5763 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5764 lt_nm_to_check="$lt_nm_to_check nm"
5766 for lt_tmp_nm in $lt_nm_to_check; do
5767 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5768 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5769 IFS="$lt_save_ifs"
5770 test -z "$ac_dir" && ac_dir=.
5771 tmp_nm="$ac_dir/$lt_tmp_nm"
5772 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5773 # Check to see if the nm accepts a BSD-compat flag.
5774 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5775 # nm: unknown option "B" ignored
5776 # Tru64's nm complains that /dev/null is an invalid object file
5777 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5778 */dev/null* | *'Invalid file or object type'*)
5779 lt_cv_path_NM="$tmp_nm -B"
5780 break
5783 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5784 */dev/null*)
5785 lt_cv_path_NM="$tmp_nm -p"
5786 break
5789 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5790 continue # so that we can try to find one that supports BSD flags
5792 esac
5794 esac
5796 done
5797 IFS="$lt_save_ifs"
5798 done
5799 : ${lt_cv_path_NM=no}
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5803 $as_echo "$lt_cv_path_NM" >&6; }
5804 if test "$lt_cv_path_NM" != "no"; then
5805 NM="$lt_cv_path_NM"
5806 else
5807 # Didn't find any BSD compatible name lister, look for dumpbin.
5808 if test -n "$DUMPBIN"; then :
5809 # Let the user override the test.
5810 else
5811 if test -n "$ac_tool_prefix"; then
5812 for ac_prog in dumpbin "link -dump"
5814 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5815 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5817 $as_echo_n "checking for $ac_word... " >&6; }
5818 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5819 $as_echo_n "(cached) " >&6
5820 else
5821 if test -n "$DUMPBIN"; then
5822 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5823 else
5824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5825 for as_dir in $PATH
5827 IFS=$as_save_IFS
5828 test -z "$as_dir" && as_dir=.
5829 for ac_exec_ext in '' $ac_executable_extensions; do
5830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5831 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5833 break 2
5835 done
5836 done
5837 IFS=$as_save_IFS
5841 DUMPBIN=$ac_cv_prog_DUMPBIN
5842 if test -n "$DUMPBIN"; then
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5844 $as_echo "$DUMPBIN" >&6; }
5845 else
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5847 $as_echo "no" >&6; }
5851 test -n "$DUMPBIN" && break
5852 done
5854 if test -z "$DUMPBIN"; then
5855 ac_ct_DUMPBIN=$DUMPBIN
5856 for ac_prog in dumpbin "link -dump"
5858 # Extract the first word of "$ac_prog", so it can be a program name with args.
5859 set dummy $ac_prog; ac_word=$2
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5861 $as_echo_n "checking for $ac_word... " >&6; }
5862 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5863 $as_echo_n "(cached) " >&6
5864 else
5865 if test -n "$ac_ct_DUMPBIN"; then
5866 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5867 else
5868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5869 for as_dir in $PATH
5871 IFS=$as_save_IFS
5872 test -z "$as_dir" && as_dir=.
5873 for ac_exec_ext in '' $ac_executable_extensions; do
5874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5875 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5877 break 2
5879 done
5880 done
5881 IFS=$as_save_IFS
5885 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5886 if test -n "$ac_ct_DUMPBIN"; then
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5888 $as_echo "$ac_ct_DUMPBIN" >&6; }
5889 else
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5891 $as_echo "no" >&6; }
5895 test -n "$ac_ct_DUMPBIN" && break
5896 done
5898 if test "x$ac_ct_DUMPBIN" = x; then
5899 DUMPBIN=":"
5900 else
5901 case $cross_compiling:$ac_tool_warned in
5902 yes:)
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5905 ac_tool_warned=yes ;;
5906 esac
5907 DUMPBIN=$ac_ct_DUMPBIN
5911 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5912 *COFF*)
5913 DUMPBIN="$DUMPBIN -symbols"
5916 DUMPBIN=:
5918 esac
5921 if test "$DUMPBIN" != ":"; then
5922 NM="$DUMPBIN"
5925 test -z "$NM" && NM=nm
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5933 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5934 if test "${lt_cv_nm_interface+set}" = set; then :
5935 $as_echo_n "(cached) " >&6
5936 else
5937 lt_cv_nm_interface="BSD nm"
5938 echo "int some_variable = 0;" > conftest.$ac_ext
5939 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5940 (eval "$ac_compile" 2>conftest.err)
5941 cat conftest.err >&5
5942 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5943 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5944 cat conftest.err >&5
5945 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5946 cat conftest.out >&5
5947 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5948 lt_cv_nm_interface="MS dumpbin"
5950 rm -f conftest*
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5953 $as_echo "$lt_cv_nm_interface" >&6; }
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5956 $as_echo_n "checking whether ln -s works... " >&6; }
5957 LN_S=$as_ln_s
5958 if test "$LN_S" = "ln -s"; then
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5960 $as_echo "yes" >&6; }
5961 else
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5963 $as_echo "no, using $LN_S" >&6; }
5966 # find the maximum length of command line arguments
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5968 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5969 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5970 $as_echo_n "(cached) " >&6
5971 else
5973 teststring="ABCD"
5975 case $build_os in
5976 msdosdjgpp*)
5977 # On DJGPP, this test can blow up pretty badly due to problems in libc
5978 # (any single argument exceeding 2000 bytes causes a buffer overrun
5979 # during glob expansion). Even if it were fixed, the result of this
5980 # check would be larger than it should be.
5981 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5984 gnu*)
5985 # Under GNU Hurd, this test is not required because there is
5986 # no limit to the length of command line arguments.
5987 # Libtool will interpret -1 as no limit whatsoever
5988 lt_cv_sys_max_cmd_len=-1;
5991 cygwin* | mingw* | cegcc*)
5992 # On Win9x/ME, this test blows up -- it succeeds, but takes
5993 # about 5 minutes as the teststring grows exponentially.
5994 # Worse, since 9x/ME are not pre-emptively multitasking,
5995 # you end up with a "frozen" computer, even though with patience
5996 # the test eventually succeeds (with a max line length of 256k).
5997 # Instead, let's just punt: use the minimum linelength reported by
5998 # all of the supported platforms: 8192 (on NT/2K/XP).
5999 lt_cv_sys_max_cmd_len=8192;
6002 mint*)
6003 # On MiNT this can take a long time and run out of memory.
6004 lt_cv_sys_max_cmd_len=8192;
6007 amigaos*)
6008 # On AmigaOS with pdksh, this test takes hours, literally.
6009 # So we just punt and use a minimum line length of 8192.
6010 lt_cv_sys_max_cmd_len=8192;
6013 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6014 # This has been around since 386BSD, at least. Likely further.
6015 if test -x /sbin/sysctl; then
6016 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6017 elif test -x /usr/sbin/sysctl; then
6018 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6019 else
6020 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6022 # And add a safety zone
6023 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6024 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6027 interix*)
6028 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6029 lt_cv_sys_max_cmd_len=196608
6032 osf*)
6033 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6034 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6035 # nice to cause kernel panics so lets avoid the loop below.
6036 # First set a reasonable default.
6037 lt_cv_sys_max_cmd_len=16384
6039 if test -x /sbin/sysconfig; then
6040 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6041 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6042 esac
6045 sco3.2v5*)
6046 lt_cv_sys_max_cmd_len=102400
6048 sysv5* | sco5v6* | sysv4.2uw2*)
6049 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6050 if test -n "$kargmax"; then
6051 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6052 else
6053 lt_cv_sys_max_cmd_len=32768
6057 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6058 if test -n "$lt_cv_sys_max_cmd_len"; then
6059 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6060 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6061 else
6062 # Make teststring a little bigger before we do anything with it.
6063 # a 1K string should be a reasonable start.
6064 for i in 1 2 3 4 5 6 7 8 ; do
6065 teststring=$teststring$teststring
6066 done
6067 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6068 # If test is not a shell built-in, we'll probably end up computing a
6069 # maximum length that is only half of the actual maximum length, but
6070 # we can't tell.
6071 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6072 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6073 test $i != 17 # 1/2 MB should be enough
6075 i=`expr $i + 1`
6076 teststring=$teststring$teststring
6077 done
6078 # Only check the string length outside the loop.
6079 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6080 teststring=
6081 # Add a significant safety factor because C++ compilers can tack on
6082 # massive amounts of additional arguments before passing them to the
6083 # linker. It appears as though 1/2 is a usable value.
6084 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6087 esac
6091 if test -n $lt_cv_sys_max_cmd_len ; then
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6093 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6094 else
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6096 $as_echo "none" >&6; }
6098 max_cmd_len=$lt_cv_sys_max_cmd_len
6105 : ${CP="cp -f"}
6106 : ${MV="mv -f"}
6107 : ${RM="rm -f"}
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6110 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6111 # Try some XSI features
6112 xsi_shell=no
6113 ( _lt_dummy="a/b/c"
6114 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6115 = c,a/b,, \
6116 && eval 'test $(( 1 + 1 )) -eq 2 \
6117 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6118 && xsi_shell=yes
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6120 $as_echo "$xsi_shell" >&6; }
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6124 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6125 lt_shell_append=no
6126 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6127 >/dev/null 2>&1 \
6128 && lt_shell_append=yes
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6130 $as_echo "$lt_shell_append" >&6; }
6133 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6134 lt_unset=unset
6135 else
6136 lt_unset=false
6143 # test EBCDIC or ASCII
6144 case `echo X|tr X '\101'` in
6145 A) # ASCII based system
6146 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6147 lt_SP2NL='tr \040 \012'
6148 lt_NL2SP='tr \015\012 \040\040'
6150 *) # EBCDIC based system
6151 lt_SP2NL='tr \100 \n'
6152 lt_NL2SP='tr \r\n \100\100'
6154 esac
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6165 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6166 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6167 $as_echo_n "(cached) " >&6
6168 else
6169 lt_cv_ld_reload_flag='-r'
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6172 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6173 reload_flag=$lt_cv_ld_reload_flag
6174 case $reload_flag in
6175 "" | " "*) ;;
6176 *) reload_flag=" $reload_flag" ;;
6177 esac
6178 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6179 case $host_os in
6180 darwin*)
6181 if test "$GCC" = yes; then
6182 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6183 else
6184 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6187 esac
6197 if test -n "$ac_tool_prefix"; then
6198 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6199 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6201 $as_echo_n "checking for $ac_word... " >&6; }
6202 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6203 $as_echo_n "(cached) " >&6
6204 else
6205 if test -n "$OBJDUMP"; then
6206 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6207 else
6208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6209 for as_dir in $PATH
6211 IFS=$as_save_IFS
6212 test -z "$as_dir" && as_dir=.
6213 for ac_exec_ext in '' $ac_executable_extensions; do
6214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6215 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6217 break 2
6219 done
6220 done
6221 IFS=$as_save_IFS
6225 OBJDUMP=$ac_cv_prog_OBJDUMP
6226 if test -n "$OBJDUMP"; then
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6228 $as_echo "$OBJDUMP" >&6; }
6229 else
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6231 $as_echo "no" >&6; }
6236 if test -z "$ac_cv_prog_OBJDUMP"; then
6237 ac_ct_OBJDUMP=$OBJDUMP
6238 # Extract the first word of "objdump", so it can be a program name with args.
6239 set dummy objdump; ac_word=$2
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6241 $as_echo_n "checking for $ac_word... " >&6; }
6242 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6243 $as_echo_n "(cached) " >&6
6244 else
6245 if test -n "$ac_ct_OBJDUMP"; then
6246 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6247 else
6248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6249 for as_dir in $PATH
6251 IFS=$as_save_IFS
6252 test -z "$as_dir" && as_dir=.
6253 for ac_exec_ext in '' $ac_executable_extensions; do
6254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6255 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6257 break 2
6259 done
6260 done
6261 IFS=$as_save_IFS
6265 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6266 if test -n "$ac_ct_OBJDUMP"; then
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6268 $as_echo "$ac_ct_OBJDUMP" >&6; }
6269 else
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6271 $as_echo "no" >&6; }
6274 if test "x$ac_ct_OBJDUMP" = x; then
6275 OBJDUMP="false"
6276 else
6277 case $cross_compiling:$ac_tool_warned in
6278 yes:)
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6281 ac_tool_warned=yes ;;
6282 esac
6283 OBJDUMP=$ac_ct_OBJDUMP
6285 else
6286 OBJDUMP="$ac_cv_prog_OBJDUMP"
6289 test -z "$OBJDUMP" && OBJDUMP=objdump
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6300 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6301 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6302 $as_echo_n "(cached) " >&6
6303 else
6304 lt_cv_file_magic_cmd='$MAGIC_CMD'
6305 lt_cv_file_magic_test_file=
6306 lt_cv_deplibs_check_method='unknown'
6307 # Need to set the preceding variable on all platforms that support
6308 # interlibrary dependencies.
6309 # 'none' -- dependencies not supported.
6310 # `unknown' -- same as none, but documents that we really don't know.
6311 # 'pass_all' -- all dependencies passed with no checks.
6312 # 'test_compile' -- check by making test program.
6313 # 'file_magic [[regex]]' -- check by looking for files in library path
6314 # which responds to the $file_magic_cmd with a given extended regex.
6315 # If you have `file' or equivalent on your system and you're not sure
6316 # whether `pass_all' will *always* work, you probably want this one.
6318 case $host_os in
6319 aix[4-9]*)
6320 lt_cv_deplibs_check_method=pass_all
6323 beos*)
6324 lt_cv_deplibs_check_method=pass_all
6327 bsdi[45]*)
6328 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6329 lt_cv_file_magic_cmd='/usr/bin/file -L'
6330 lt_cv_file_magic_test_file=/shlib/libc.so
6333 cygwin*)
6334 # func_win32_libid is a shell function defined in ltmain.sh
6335 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6336 lt_cv_file_magic_cmd='func_win32_libid'
6339 mingw* | pw32*)
6340 # Base MSYS/MinGW do not provide the 'file' command needed by
6341 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6342 # unless we find 'file', for example because we are cross-compiling.
6343 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6344 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6345 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6346 lt_cv_file_magic_cmd='func_win32_libid'
6347 else
6348 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6349 lt_cv_file_magic_cmd='$OBJDUMP -f'
6353 cegcc*)
6354 # use the weaker test based on 'objdump'. See mingw*.
6355 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6356 lt_cv_file_magic_cmd='$OBJDUMP -f'
6359 darwin* | rhapsody*)
6360 lt_cv_deplibs_check_method=pass_all
6363 freebsd* | dragonfly*)
6364 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6365 case $host_cpu in
6366 i*86 )
6367 # Not sure whether the presence of OpenBSD here was a mistake.
6368 # Let's accept both of them until this is cleared up.
6369 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6370 lt_cv_file_magic_cmd=/usr/bin/file
6371 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6373 esac
6374 else
6375 lt_cv_deplibs_check_method=pass_all
6379 gnu*)
6380 lt_cv_deplibs_check_method=pass_all
6383 haiku*)
6384 lt_cv_deplibs_check_method=pass_all
6387 hpux10.20* | hpux11*)
6388 lt_cv_file_magic_cmd=/usr/bin/file
6389 case $host_cpu in
6390 ia64*)
6391 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6392 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6394 hppa*64*)
6395 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]'
6396 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6399 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6400 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6402 esac
6405 interix[3-9]*)
6406 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6407 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6410 irix5* | irix6* | nonstopux*)
6411 case $LD in
6412 *-32|*"-32 ") libmagic=32-bit;;
6413 *-n32|*"-n32 ") libmagic=N32;;
6414 *-64|*"-64 ") libmagic=64-bit;;
6415 *) libmagic=never-match;;
6416 esac
6417 lt_cv_deplibs_check_method=pass_all
6420 # This must be Linux ELF.
6421 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6422 lt_cv_deplibs_check_method=pass_all
6425 netbsd*)
6426 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6427 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6428 else
6429 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6433 newos6*)
6434 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6435 lt_cv_file_magic_cmd=/usr/bin/file
6436 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6439 *nto* | *qnx*)
6440 lt_cv_deplibs_check_method=pass_all
6443 openbsd*)
6444 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6445 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6446 else
6447 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6451 osf3* | osf4* | osf5*)
6452 lt_cv_deplibs_check_method=pass_all
6455 rdos*)
6456 lt_cv_deplibs_check_method=pass_all
6459 solaris*)
6460 lt_cv_deplibs_check_method=pass_all
6463 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6464 lt_cv_deplibs_check_method=pass_all
6467 sysv4 | sysv4.3*)
6468 case $host_vendor in
6469 motorola)
6470 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]'
6471 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6473 ncr)
6474 lt_cv_deplibs_check_method=pass_all
6476 sequent)
6477 lt_cv_file_magic_cmd='/bin/file'
6478 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6480 sni)
6481 lt_cv_file_magic_cmd='/bin/file'
6482 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6483 lt_cv_file_magic_test_file=/lib/libc.so
6485 siemens)
6486 lt_cv_deplibs_check_method=pass_all
6489 lt_cv_deplibs_check_method=pass_all
6491 esac
6494 tpf*)
6495 lt_cv_deplibs_check_method=pass_all
6497 esac
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6501 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6502 file_magic_cmd=$lt_cv_file_magic_cmd
6503 deplibs_check_method=$lt_cv_deplibs_check_method
6504 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6517 if test -n "$ac_tool_prefix"; then
6518 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6519 set dummy ${ac_tool_prefix}ar; ac_word=$2
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6521 $as_echo_n "checking for $ac_word... " >&6; }
6522 if test "${ac_cv_prog_AR+set}" = set; then :
6523 $as_echo_n "(cached) " >&6
6524 else
6525 if test -n "$AR"; then
6526 ac_cv_prog_AR="$AR" # Let the user override the test.
6527 else
6528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6529 for as_dir in $PATH
6531 IFS=$as_save_IFS
6532 test -z "$as_dir" && as_dir=.
6533 for ac_exec_ext in '' $ac_executable_extensions; do
6534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6535 ac_cv_prog_AR="${ac_tool_prefix}ar"
6536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6537 break 2
6539 done
6540 done
6541 IFS=$as_save_IFS
6545 AR=$ac_cv_prog_AR
6546 if test -n "$AR"; then
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6548 $as_echo "$AR" >&6; }
6549 else
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6551 $as_echo "no" >&6; }
6556 if test -z "$ac_cv_prog_AR"; then
6557 ac_ct_AR=$AR
6558 # Extract the first word of "ar", so it can be a program name with args.
6559 set dummy ar; ac_word=$2
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6561 $as_echo_n "checking for $ac_word... " >&6; }
6562 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6563 $as_echo_n "(cached) " >&6
6564 else
6565 if test -n "$ac_ct_AR"; then
6566 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6567 else
6568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6569 for as_dir in $PATH
6571 IFS=$as_save_IFS
6572 test -z "$as_dir" && as_dir=.
6573 for ac_exec_ext in '' $ac_executable_extensions; do
6574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6575 ac_cv_prog_ac_ct_AR="ar"
6576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6577 break 2
6579 done
6580 done
6581 IFS=$as_save_IFS
6585 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6586 if test -n "$ac_ct_AR"; then
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6588 $as_echo "$ac_ct_AR" >&6; }
6589 else
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6591 $as_echo "no" >&6; }
6594 if test "x$ac_ct_AR" = x; then
6595 AR="false"
6596 else
6597 case $cross_compiling:$ac_tool_warned in
6598 yes:)
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6601 ac_tool_warned=yes ;;
6602 esac
6603 AR=$ac_ct_AR
6605 else
6606 AR="$ac_cv_prog_AR"
6609 test -z "$AR" && AR=ar
6610 test -z "$AR_FLAGS" && AR_FLAGS=cru
6622 if test -n "$ac_tool_prefix"; then
6623 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6624 set dummy ${ac_tool_prefix}strip; ac_word=$2
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6626 $as_echo_n "checking for $ac_word... " >&6; }
6627 if test "${ac_cv_prog_STRIP+set}" = set; then :
6628 $as_echo_n "(cached) " >&6
6629 else
6630 if test -n "$STRIP"; then
6631 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6632 else
6633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6634 for as_dir in $PATH
6636 IFS=$as_save_IFS
6637 test -z "$as_dir" && as_dir=.
6638 for ac_exec_ext in '' $ac_executable_extensions; do
6639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6640 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6642 break 2
6644 done
6645 done
6646 IFS=$as_save_IFS
6650 STRIP=$ac_cv_prog_STRIP
6651 if test -n "$STRIP"; then
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6653 $as_echo "$STRIP" >&6; }
6654 else
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6656 $as_echo "no" >&6; }
6661 if test -z "$ac_cv_prog_STRIP"; then
6662 ac_ct_STRIP=$STRIP
6663 # Extract the first word of "strip", so it can be a program name with args.
6664 set dummy strip; ac_word=$2
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6666 $as_echo_n "checking for $ac_word... " >&6; }
6667 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6668 $as_echo_n "(cached) " >&6
6669 else
6670 if test -n "$ac_ct_STRIP"; then
6671 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6672 else
6673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6674 for as_dir in $PATH
6676 IFS=$as_save_IFS
6677 test -z "$as_dir" && as_dir=.
6678 for ac_exec_ext in '' $ac_executable_extensions; do
6679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6680 ac_cv_prog_ac_ct_STRIP="strip"
6681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6682 break 2
6684 done
6685 done
6686 IFS=$as_save_IFS
6690 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6691 if test -n "$ac_ct_STRIP"; then
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6693 $as_echo "$ac_ct_STRIP" >&6; }
6694 else
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6696 $as_echo "no" >&6; }
6699 if test "x$ac_ct_STRIP" = x; then
6700 STRIP=":"
6701 else
6702 case $cross_compiling:$ac_tool_warned in
6703 yes:)
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6705 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6706 ac_tool_warned=yes ;;
6707 esac
6708 STRIP=$ac_ct_STRIP
6710 else
6711 STRIP="$ac_cv_prog_STRIP"
6714 test -z "$STRIP" && STRIP=:
6721 if test -n "$ac_tool_prefix"; then
6722 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6723 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6725 $as_echo_n "checking for $ac_word... " >&6; }
6726 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6727 $as_echo_n "(cached) " >&6
6728 else
6729 if test -n "$RANLIB"; then
6730 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6731 else
6732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6733 for as_dir in $PATH
6735 IFS=$as_save_IFS
6736 test -z "$as_dir" && as_dir=.
6737 for ac_exec_ext in '' $ac_executable_extensions; do
6738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6739 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6741 break 2
6743 done
6744 done
6745 IFS=$as_save_IFS
6749 RANLIB=$ac_cv_prog_RANLIB
6750 if test -n "$RANLIB"; then
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6752 $as_echo "$RANLIB" >&6; }
6753 else
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6755 $as_echo "no" >&6; }
6760 if test -z "$ac_cv_prog_RANLIB"; then
6761 ac_ct_RANLIB=$RANLIB
6762 # Extract the first word of "ranlib", so it can be a program name with args.
6763 set dummy ranlib; ac_word=$2
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6765 $as_echo_n "checking for $ac_word... " >&6; }
6766 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6767 $as_echo_n "(cached) " >&6
6768 else
6769 if test -n "$ac_ct_RANLIB"; then
6770 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6771 else
6772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773 for as_dir in $PATH
6775 IFS=$as_save_IFS
6776 test -z "$as_dir" && as_dir=.
6777 for ac_exec_ext in '' $ac_executable_extensions; do
6778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6779 ac_cv_prog_ac_ct_RANLIB="ranlib"
6780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6781 break 2
6783 done
6784 done
6785 IFS=$as_save_IFS
6789 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6790 if test -n "$ac_ct_RANLIB"; then
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6792 $as_echo "$ac_ct_RANLIB" >&6; }
6793 else
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6795 $as_echo "no" >&6; }
6798 if test "x$ac_ct_RANLIB" = x; then
6799 RANLIB=":"
6800 else
6801 case $cross_compiling:$ac_tool_warned in
6802 yes:)
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6804 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6805 ac_tool_warned=yes ;;
6806 esac
6807 RANLIB=$ac_ct_RANLIB
6809 else
6810 RANLIB="$ac_cv_prog_RANLIB"
6813 test -z "$RANLIB" && RANLIB=:
6820 # Determine commands to create old-style static archives.
6821 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6822 old_postinstall_cmds='chmod 644 $oldlib'
6823 old_postuninstall_cmds=
6825 if test -n "$RANLIB"; then
6826 case $host_os in
6827 openbsd*)
6828 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6831 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6833 esac
6834 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6837 case $host_os in
6838 darwin*)
6839 lock_old_archive_extraction=yes ;;
6841 lock_old_archive_extraction=no ;;
6842 esac
6882 # If no C compiler was specified, use CC.
6883 LTCC=${LTCC-"$CC"}
6885 # If no C compiler flags were specified, use CFLAGS.
6886 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6888 # Allow CC to be a program name with arguments.
6889 compiler=$CC
6892 # Check for command to grab the raw symbol name followed by C symbol from nm.
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6894 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6895 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6896 $as_echo_n "(cached) " >&6
6897 else
6899 # These are sane defaults that work on at least a few old systems.
6900 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6902 # Character class describing NM global symbol codes.
6903 symcode='[BCDEGRST]'
6905 # Regexp to match symbols that can be accessed directly from C.
6906 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6908 # Define system-specific variables.
6909 case $host_os in
6910 aix*)
6911 symcode='[BCDT]'
6913 cygwin* | mingw* | pw32* | cegcc*)
6914 symcode='[ABCDGISTW]'
6916 hpux*)
6917 if test "$host_cpu" = ia64; then
6918 symcode='[ABCDEGRST]'
6921 irix* | nonstopux*)
6922 symcode='[BCDEGRST]'
6924 osf*)
6925 symcode='[BCDEGQRST]'
6927 solaris*)
6928 symcode='[BDRT]'
6930 sco3.2v5*)
6931 symcode='[DT]'
6933 sysv4.2uw2*)
6934 symcode='[DT]'
6936 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6937 symcode='[ABDT]'
6939 sysv4)
6940 symcode='[DFNSTU]'
6942 esac
6944 # If we're using GNU nm, then use its standard symbol codes.
6945 case `$NM -V 2>&1` in
6946 *GNU* | *'with BFD'*)
6947 symcode='[ABCDGIRSTW]' ;;
6948 esac
6950 # Transform an extracted symbol line into a proper C declaration.
6951 # Some systems (esp. on ia64) link data and code symbols differently,
6952 # so use this general approach.
6953 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6955 # Transform an extracted symbol line into symbol name and symbol address
6956 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6957 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'"
6959 # Handle CRLF in mingw tool chain
6960 opt_cr=
6961 case $build_os in
6962 mingw*)
6963 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6965 esac
6967 # Try without a prefix underscore, then with it.
6968 for ac_symprfx in "" "_"; do
6970 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6971 symxfrm="\\1 $ac_symprfx\\2 \\2"
6973 # Write the raw and C identifiers.
6974 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6975 # Fake it for dumpbin and say T for any non-static function
6976 # and D for any global variable.
6977 # Also find C++ and __fastcall symbols from MSVC++,
6978 # which start with @ or ?.
6979 lt_cv_sys_global_symbol_pipe="$AWK '"\
6980 " {last_section=section; section=\$ 3};"\
6981 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6982 " \$ 0!~/External *\|/{next};"\
6983 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6984 " {if(hide[section]) next};"\
6985 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6986 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6987 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6988 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6989 " ' prfx=^$ac_symprfx"
6990 else
6991 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6994 # Check to see that the pipe works correctly.
6995 pipe_works=no
6997 rm -f conftest*
6998 cat > conftest.$ac_ext <<_LT_EOF
6999 #ifdef __cplusplus
7000 extern "C" {
7001 #endif
7002 char nm_test_var;
7003 void nm_test_func(void);
7004 void nm_test_func(void){}
7005 #ifdef __cplusplus
7007 #endif
7008 int main(){nm_test_var='a';nm_test_func();return(0);}
7009 _LT_EOF
7011 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7012 (eval $ac_compile) 2>&5
7013 ac_status=$?
7014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7015 test $ac_status = 0; }; then
7016 # Now try to grab the symbols.
7017 nlist=conftest.nm
7018 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7019 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7020 ac_status=$?
7021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7022 test $ac_status = 0; } && test -s "$nlist"; then
7023 # Try sorting and uniquifying the output.
7024 if sort "$nlist" | uniq > "$nlist"T; then
7025 mv -f "$nlist"T "$nlist"
7026 else
7027 rm -f "$nlist"T
7030 # Make sure that we snagged all the symbols we need.
7031 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7032 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7033 cat <<_LT_EOF > conftest.$ac_ext
7034 #ifdef __cplusplus
7035 extern "C" {
7036 #endif
7038 _LT_EOF
7039 # Now generate the symbol file.
7040 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7042 cat <<_LT_EOF >> conftest.$ac_ext
7044 /* The mapping between symbol names and symbols. */
7045 const struct {
7046 const char *name;
7047 void *address;
7049 lt__PROGRAM__LTX_preloaded_symbols[] =
7051 { "@PROGRAM@", (void *) 0 },
7052 _LT_EOF
7053 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7054 cat <<\_LT_EOF >> conftest.$ac_ext
7055 {0, (void *) 0}
7058 /* This works around a problem in FreeBSD linker */
7059 #ifdef FREEBSD_WORKAROUND
7060 static const void *lt_preloaded_setup() {
7061 return lt__PROGRAM__LTX_preloaded_symbols;
7063 #endif
7065 #ifdef __cplusplus
7067 #endif
7068 _LT_EOF
7069 # Now try linking the two files.
7070 mv conftest.$ac_objext conftstm.$ac_objext
7071 lt_save_LIBS="$LIBS"
7072 lt_save_CFLAGS="$CFLAGS"
7073 LIBS="conftstm.$ac_objext"
7074 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7075 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7076 (eval $ac_link) 2>&5
7077 ac_status=$?
7078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7079 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7080 pipe_works=yes
7082 LIBS="$lt_save_LIBS"
7083 CFLAGS="$lt_save_CFLAGS"
7084 else
7085 echo "cannot find nm_test_func in $nlist" >&5
7087 else
7088 echo "cannot find nm_test_var in $nlist" >&5
7090 else
7091 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7093 else
7094 echo "$progname: failed program was:" >&5
7095 cat conftest.$ac_ext >&5
7097 rm -rf conftest* conftst*
7099 # Do not use the global_symbol_pipe unless it works.
7100 if test "$pipe_works" = yes; then
7101 break
7102 else
7103 lt_cv_sys_global_symbol_pipe=
7105 done
7109 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7110 lt_cv_sys_global_symbol_to_cdecl=
7112 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7114 $as_echo "failed" >&6; }
7115 else
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7117 $as_echo "ok" >&6; }
7141 # Check whether --enable-libtool-lock was given.
7142 if test "${enable_libtool_lock+set}" = set; then :
7143 enableval=$enable_libtool_lock;
7146 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7148 # Some flags need to be propagated to the compiler or linker for good
7149 # libtool support.
7150 case $host in
7151 ia64-*-hpux*)
7152 # Find out which ABI we are using.
7153 echo 'int i;' > conftest.$ac_ext
7154 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7155 (eval $ac_compile) 2>&5
7156 ac_status=$?
7157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7158 test $ac_status = 0; }; then
7159 case `/usr/bin/file conftest.$ac_objext` in
7160 *ELF-32*)
7161 HPUX_IA64_MODE="32"
7163 *ELF-64*)
7164 HPUX_IA64_MODE="64"
7166 esac
7168 rm -rf conftest*
7170 *-*-irix6*)
7171 # Find out which ABI we are using.
7172 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7173 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7174 (eval $ac_compile) 2>&5
7175 ac_status=$?
7176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7177 test $ac_status = 0; }; then
7178 if test "$lt_cv_prog_gnu_ld" = yes; then
7179 case `/usr/bin/file conftest.$ac_objext` in
7180 *32-bit*)
7181 LD="${LD-ld} -melf32bsmip"
7183 *N32*)
7184 LD="${LD-ld} -melf32bmipn32"
7186 *64-bit*)
7187 LD="${LD-ld} -melf64bmip"
7189 esac
7190 else
7191 case `/usr/bin/file conftest.$ac_objext` in
7192 *32-bit*)
7193 LD="${LD-ld} -32"
7195 *N32*)
7196 LD="${LD-ld} -n32"
7198 *64-bit*)
7199 LD="${LD-ld} -64"
7201 esac
7204 rm -rf conftest*
7207 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7208 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7209 # Find out which ABI we are using.
7210 echo 'int i;' > conftest.$ac_ext
7211 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7212 (eval $ac_compile) 2>&5
7213 ac_status=$?
7214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7215 test $ac_status = 0; }; then
7216 case `/usr/bin/file conftest.o` in
7217 *32-bit*)
7218 case $host in
7219 x86_64-*kfreebsd*-gnu)
7220 LD="${LD-ld} -m elf_i386_fbsd"
7222 x86_64-*linux*)
7223 case `/usr/bin/file conftest.o` in
7224 *x86-64*)
7225 LD="${LD-ld} -m elf32_x86_64"
7228 LD="${LD-ld} -m elf_i386"
7230 esac
7232 powerpc64le-*linux*)
7233 LD="${LD-ld} -m elf32lppclinux"
7235 powerpc64-*linux*)
7236 LD="${LD-ld} -m elf32ppclinux"
7238 s390x-*linux*)
7239 LD="${LD-ld} -m elf_s390"
7241 sparc64-*linux*)
7242 LD="${LD-ld} -m elf32_sparc"
7244 esac
7246 *64-bit*)
7247 case $host in
7248 x86_64-*kfreebsd*-gnu)
7249 LD="${LD-ld} -m elf_x86_64_fbsd"
7251 x86_64-*linux*)
7252 LD="${LD-ld} -m elf_x86_64"
7254 powerpcle-*linux*)
7255 LD="${LD-ld} -m elf64lppc"
7257 powerpc-*linux*)
7258 LD="${LD-ld} -m elf64ppc"
7260 s390*-*linux*|s390*-*tpf*)
7261 LD="${LD-ld} -m elf64_s390"
7263 sparc*-*linux*)
7264 LD="${LD-ld} -m elf64_sparc"
7266 esac
7268 esac
7270 rm -rf conftest*
7273 *-*-sco3.2v5*)
7274 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7275 SAVE_CFLAGS="$CFLAGS"
7276 CFLAGS="$CFLAGS -belf"
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7278 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7279 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7280 $as_echo_n "(cached) " >&6
7281 else
7282 ac_ext=c
7283 ac_cpp='$CPP $CPPFLAGS'
7284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7289 /* end confdefs.h. */
7292 main ()
7296 return 0;
7298 _ACEOF
7299 if ac_fn_c_try_link "$LINENO"; then :
7300 lt_cv_cc_needs_belf=yes
7301 else
7302 lt_cv_cc_needs_belf=no
7304 rm -f core conftest.err conftest.$ac_objext \
7305 conftest$ac_exeext conftest.$ac_ext
7306 ac_ext=c
7307 ac_cpp='$CPP $CPPFLAGS'
7308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7314 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7315 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7316 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7317 CFLAGS="$SAVE_CFLAGS"
7320 sparc*-*solaris*)
7321 # Find out which ABI we are using.
7322 echo 'int i;' > conftest.$ac_ext
7323 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7324 (eval $ac_compile) 2>&5
7325 ac_status=$?
7326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7327 test $ac_status = 0; }; then
7328 case `/usr/bin/file conftest.o` in
7329 *64-bit*)
7330 case $lt_cv_prog_gnu_ld in
7331 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7333 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7334 LD="${LD-ld} -64"
7337 esac
7339 esac
7341 rm -rf conftest*
7343 esac
7345 need_locks="$enable_libtool_lock"
7348 case $host_os in
7349 rhapsody* | darwin*)
7350 if test -n "$ac_tool_prefix"; then
7351 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7352 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7354 $as_echo_n "checking for $ac_word... " >&6; }
7355 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7356 $as_echo_n "(cached) " >&6
7357 else
7358 if test -n "$DSYMUTIL"; then
7359 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7360 else
7361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7362 for as_dir in $PATH
7364 IFS=$as_save_IFS
7365 test -z "$as_dir" && as_dir=.
7366 for ac_exec_ext in '' $ac_executable_extensions; do
7367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7368 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7370 break 2
7372 done
7373 done
7374 IFS=$as_save_IFS
7378 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7379 if test -n "$DSYMUTIL"; then
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7381 $as_echo "$DSYMUTIL" >&6; }
7382 else
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7384 $as_echo "no" >&6; }
7389 if test -z "$ac_cv_prog_DSYMUTIL"; then
7390 ac_ct_DSYMUTIL=$DSYMUTIL
7391 # Extract the first word of "dsymutil", so it can be a program name with args.
7392 set dummy dsymutil; ac_word=$2
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7394 $as_echo_n "checking for $ac_word... " >&6; }
7395 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7396 $as_echo_n "(cached) " >&6
7397 else
7398 if test -n "$ac_ct_DSYMUTIL"; then
7399 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7400 else
7401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7402 for as_dir in $PATH
7404 IFS=$as_save_IFS
7405 test -z "$as_dir" && as_dir=.
7406 for ac_exec_ext in '' $ac_executable_extensions; do
7407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7408 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7410 break 2
7412 done
7413 done
7414 IFS=$as_save_IFS
7418 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7419 if test -n "$ac_ct_DSYMUTIL"; then
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7421 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7422 else
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7424 $as_echo "no" >&6; }
7427 if test "x$ac_ct_DSYMUTIL" = x; then
7428 DSYMUTIL=":"
7429 else
7430 case $cross_compiling:$ac_tool_warned in
7431 yes:)
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7433 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7434 ac_tool_warned=yes ;;
7435 esac
7436 DSYMUTIL=$ac_ct_DSYMUTIL
7438 else
7439 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7442 if test -n "$ac_tool_prefix"; then
7443 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7444 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7446 $as_echo_n "checking for $ac_word... " >&6; }
7447 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7448 $as_echo_n "(cached) " >&6
7449 else
7450 if test -n "$NMEDIT"; then
7451 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7452 else
7453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7454 for as_dir in $PATH
7456 IFS=$as_save_IFS
7457 test -z "$as_dir" && as_dir=.
7458 for ac_exec_ext in '' $ac_executable_extensions; do
7459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7460 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7462 break 2
7464 done
7465 done
7466 IFS=$as_save_IFS
7470 NMEDIT=$ac_cv_prog_NMEDIT
7471 if test -n "$NMEDIT"; then
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7473 $as_echo "$NMEDIT" >&6; }
7474 else
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7476 $as_echo "no" >&6; }
7481 if test -z "$ac_cv_prog_NMEDIT"; then
7482 ac_ct_NMEDIT=$NMEDIT
7483 # Extract the first word of "nmedit", so it can be a program name with args.
7484 set dummy nmedit; ac_word=$2
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7486 $as_echo_n "checking for $ac_word... " >&6; }
7487 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7488 $as_echo_n "(cached) " >&6
7489 else
7490 if test -n "$ac_ct_NMEDIT"; then
7491 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7492 else
7493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7494 for as_dir in $PATH
7496 IFS=$as_save_IFS
7497 test -z "$as_dir" && as_dir=.
7498 for ac_exec_ext in '' $ac_executable_extensions; do
7499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7500 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7502 break 2
7504 done
7505 done
7506 IFS=$as_save_IFS
7510 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7511 if test -n "$ac_ct_NMEDIT"; then
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7513 $as_echo "$ac_ct_NMEDIT" >&6; }
7514 else
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7516 $as_echo "no" >&6; }
7519 if test "x$ac_ct_NMEDIT" = x; then
7520 NMEDIT=":"
7521 else
7522 case $cross_compiling:$ac_tool_warned in
7523 yes:)
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7525 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7526 ac_tool_warned=yes ;;
7527 esac
7528 NMEDIT=$ac_ct_NMEDIT
7530 else
7531 NMEDIT="$ac_cv_prog_NMEDIT"
7534 if test -n "$ac_tool_prefix"; then
7535 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7536 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7538 $as_echo_n "checking for $ac_word... " >&6; }
7539 if test "${ac_cv_prog_LIPO+set}" = set; then :
7540 $as_echo_n "(cached) " >&6
7541 else
7542 if test -n "$LIPO"; then
7543 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7544 else
7545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7546 for as_dir in $PATH
7548 IFS=$as_save_IFS
7549 test -z "$as_dir" && as_dir=.
7550 for ac_exec_ext in '' $ac_executable_extensions; do
7551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7552 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7554 break 2
7556 done
7557 done
7558 IFS=$as_save_IFS
7562 LIPO=$ac_cv_prog_LIPO
7563 if test -n "$LIPO"; then
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7565 $as_echo "$LIPO" >&6; }
7566 else
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7568 $as_echo "no" >&6; }
7573 if test -z "$ac_cv_prog_LIPO"; then
7574 ac_ct_LIPO=$LIPO
7575 # Extract the first word of "lipo", so it can be a program name with args.
7576 set dummy lipo; ac_word=$2
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7578 $as_echo_n "checking for $ac_word... " >&6; }
7579 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7580 $as_echo_n "(cached) " >&6
7581 else
7582 if test -n "$ac_ct_LIPO"; then
7583 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7584 else
7585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7586 for as_dir in $PATH
7588 IFS=$as_save_IFS
7589 test -z "$as_dir" && as_dir=.
7590 for ac_exec_ext in '' $ac_executable_extensions; do
7591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7592 ac_cv_prog_ac_ct_LIPO="lipo"
7593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7594 break 2
7596 done
7597 done
7598 IFS=$as_save_IFS
7602 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7603 if test -n "$ac_ct_LIPO"; then
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7605 $as_echo "$ac_ct_LIPO" >&6; }
7606 else
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7608 $as_echo "no" >&6; }
7611 if test "x$ac_ct_LIPO" = x; then
7612 LIPO=":"
7613 else
7614 case $cross_compiling:$ac_tool_warned in
7615 yes:)
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7618 ac_tool_warned=yes ;;
7619 esac
7620 LIPO=$ac_ct_LIPO
7622 else
7623 LIPO="$ac_cv_prog_LIPO"
7626 if test -n "$ac_tool_prefix"; then
7627 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7628 set dummy ${ac_tool_prefix}otool; ac_word=$2
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7630 $as_echo_n "checking for $ac_word... " >&6; }
7631 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7632 $as_echo_n "(cached) " >&6
7633 else
7634 if test -n "$OTOOL"; then
7635 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7636 else
7637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7638 for as_dir in $PATH
7640 IFS=$as_save_IFS
7641 test -z "$as_dir" && as_dir=.
7642 for ac_exec_ext in '' $ac_executable_extensions; do
7643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7644 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7646 break 2
7648 done
7649 done
7650 IFS=$as_save_IFS
7654 OTOOL=$ac_cv_prog_OTOOL
7655 if test -n "$OTOOL"; then
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7657 $as_echo "$OTOOL" >&6; }
7658 else
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7660 $as_echo "no" >&6; }
7665 if test -z "$ac_cv_prog_OTOOL"; then
7666 ac_ct_OTOOL=$OTOOL
7667 # Extract the first word of "otool", so it can be a program name with args.
7668 set dummy otool; ac_word=$2
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7670 $as_echo_n "checking for $ac_word... " >&6; }
7671 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7672 $as_echo_n "(cached) " >&6
7673 else
7674 if test -n "$ac_ct_OTOOL"; then
7675 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7676 else
7677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7678 for as_dir in $PATH
7680 IFS=$as_save_IFS
7681 test -z "$as_dir" && as_dir=.
7682 for ac_exec_ext in '' $ac_executable_extensions; do
7683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7684 ac_cv_prog_ac_ct_OTOOL="otool"
7685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7686 break 2
7688 done
7689 done
7690 IFS=$as_save_IFS
7694 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7695 if test -n "$ac_ct_OTOOL"; then
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7697 $as_echo "$ac_ct_OTOOL" >&6; }
7698 else
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7700 $as_echo "no" >&6; }
7703 if test "x$ac_ct_OTOOL" = x; then
7704 OTOOL=":"
7705 else
7706 case $cross_compiling:$ac_tool_warned in
7707 yes:)
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7710 ac_tool_warned=yes ;;
7711 esac
7712 OTOOL=$ac_ct_OTOOL
7714 else
7715 OTOOL="$ac_cv_prog_OTOOL"
7718 if test -n "$ac_tool_prefix"; then
7719 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7720 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7722 $as_echo_n "checking for $ac_word... " >&6; }
7723 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7724 $as_echo_n "(cached) " >&6
7725 else
7726 if test -n "$OTOOL64"; then
7727 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7728 else
7729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7730 for as_dir in $PATH
7732 IFS=$as_save_IFS
7733 test -z "$as_dir" && as_dir=.
7734 for ac_exec_ext in '' $ac_executable_extensions; do
7735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7736 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7738 break 2
7740 done
7741 done
7742 IFS=$as_save_IFS
7746 OTOOL64=$ac_cv_prog_OTOOL64
7747 if test -n "$OTOOL64"; then
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7749 $as_echo "$OTOOL64" >&6; }
7750 else
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7752 $as_echo "no" >&6; }
7757 if test -z "$ac_cv_prog_OTOOL64"; then
7758 ac_ct_OTOOL64=$OTOOL64
7759 # Extract the first word of "otool64", so it can be a program name with args.
7760 set dummy otool64; ac_word=$2
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7762 $as_echo_n "checking for $ac_word... " >&6; }
7763 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7764 $as_echo_n "(cached) " >&6
7765 else
7766 if test -n "$ac_ct_OTOOL64"; then
7767 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7768 else
7769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7770 for as_dir in $PATH
7772 IFS=$as_save_IFS
7773 test -z "$as_dir" && as_dir=.
7774 for ac_exec_ext in '' $ac_executable_extensions; do
7775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7776 ac_cv_prog_ac_ct_OTOOL64="otool64"
7777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7778 break 2
7780 done
7781 done
7782 IFS=$as_save_IFS
7786 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7787 if test -n "$ac_ct_OTOOL64"; then
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7789 $as_echo "$ac_ct_OTOOL64" >&6; }
7790 else
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7792 $as_echo "no" >&6; }
7795 if test "x$ac_ct_OTOOL64" = x; then
7796 OTOOL64=":"
7797 else
7798 case $cross_compiling:$ac_tool_warned in
7799 yes:)
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7801 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7802 ac_tool_warned=yes ;;
7803 esac
7804 OTOOL64=$ac_ct_OTOOL64
7806 else
7807 OTOOL64="$ac_cv_prog_OTOOL64"
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7837 $as_echo_n "checking for -single_module linker flag... " >&6; }
7838 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7839 $as_echo_n "(cached) " >&6
7840 else
7841 lt_cv_apple_cc_single_mod=no
7842 if test -z "${LT_MULTI_MODULE}"; then
7843 # By default we will add the -single_module flag. You can override
7844 # by either setting the environment variable LT_MULTI_MODULE
7845 # non-empty at configure time, or by adding -multi_module to the
7846 # link flags.
7847 rm -rf libconftest.dylib*
7848 echo "int foo(void){return 1;}" > conftest.c
7849 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7850 -dynamiclib -Wl,-single_module conftest.c" >&5
7851 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7852 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7853 _lt_result=$?
7854 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7855 lt_cv_apple_cc_single_mod=yes
7856 else
7857 cat conftest.err >&5
7859 rm -rf libconftest.dylib*
7860 rm -f conftest.*
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7864 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7866 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7867 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7868 $as_echo_n "(cached) " >&6
7869 else
7870 lt_cv_ld_exported_symbols_list=no
7871 save_LDFLAGS=$LDFLAGS
7872 echo "_main" > conftest.sym
7873 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7875 /* end confdefs.h. */
7878 main ()
7882 return 0;
7884 _ACEOF
7885 if ac_fn_c_try_link "$LINENO"; then :
7886 lt_cv_ld_exported_symbols_list=yes
7887 else
7888 lt_cv_ld_exported_symbols_list=no
7890 rm -f core conftest.err conftest.$ac_objext \
7891 conftest$ac_exeext conftest.$ac_ext
7892 LDFLAGS="$save_LDFLAGS"
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7896 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7898 $as_echo_n "checking for -force_load linker flag... " >&6; }
7899 if test "${lt_cv_ld_force_load+set}" = set; then :
7900 $as_echo_n "(cached) " >&6
7901 else
7902 lt_cv_ld_force_load=no
7903 cat > conftest.c << _LT_EOF
7904 int forced_loaded() { return 2;}
7905 _LT_EOF
7906 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7907 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7908 echo "$AR cru libconftest.a conftest.o" >&5
7909 $AR cru libconftest.a conftest.o 2>&5
7910 cat > conftest.c << _LT_EOF
7911 int main() { return 0;}
7912 _LT_EOF
7913 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7914 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7915 _lt_result=$?
7916 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7917 lt_cv_ld_force_load=yes
7918 else
7919 cat conftest.err >&5
7921 rm -f conftest.err libconftest.a conftest conftest.c
7922 rm -rf conftest.dSYM
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7926 $as_echo "$lt_cv_ld_force_load" >&6; }
7927 case $host_os in
7928 rhapsody* | darwin1.[012])
7929 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7930 darwin1.*)
7931 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7932 darwin*) # darwin 5.x on
7933 # if running on 10.5 or later, the deployment target defaults
7934 # to the OS version, if on x86, and 10.4, the deployment
7935 # target defaults to 10.4. Don't you love it?
7936 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7937 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7938 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7939 10.[012][,.]*)
7940 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7941 10.*)
7942 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7943 esac
7945 esac
7946 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7947 _lt_dar_single_mod='$single_module'
7949 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7950 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7951 else
7952 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7954 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7955 _lt_dsymutil='~$DSYMUTIL $lib || :'
7956 else
7957 _lt_dsymutil=
7960 esac
7962 for ac_header in dlfcn.h
7963 do :
7964 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7966 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7967 cat >>confdefs.h <<_ACEOF
7968 #define HAVE_DLFCN_H 1
7969 _ACEOF
7973 done
7979 # Set options
7983 enable_dlopen=no
7986 enable_win32_dll=no
7989 # Check whether --enable-shared was given.
7990 if test "${enable_shared+set}" = set; then :
7991 enableval=$enable_shared; p=${PACKAGE-default}
7992 case $enableval in
7993 yes) enable_shared=yes ;;
7994 no) enable_shared=no ;;
7996 enable_shared=no
7997 # Look at the argument we got. We use all the common list separators.
7998 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7999 for pkg in $enableval; do
8000 IFS="$lt_save_ifs"
8001 if test "X$pkg" = "X$p"; then
8002 enable_shared=yes
8004 done
8005 IFS="$lt_save_ifs"
8007 esac
8008 else
8009 enable_shared=yes
8020 # Check whether --enable-static was given.
8021 if test "${enable_static+set}" = set; then :
8022 enableval=$enable_static; p=${PACKAGE-default}
8023 case $enableval in
8024 yes) enable_static=yes ;;
8025 no) enable_static=no ;;
8027 enable_static=no
8028 # Look at the argument we got. We use all the common list separators.
8029 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8030 for pkg in $enableval; do
8031 IFS="$lt_save_ifs"
8032 if test "X$pkg" = "X$p"; then
8033 enable_static=yes
8035 done
8036 IFS="$lt_save_ifs"
8038 esac
8039 else
8040 enable_static=yes
8052 # Check whether --with-pic was given.
8053 if test "${with_pic+set}" = set; then :
8054 withval=$with_pic; pic_mode="$withval"
8055 else
8056 pic_mode=default
8060 test -z "$pic_mode" && pic_mode=default
8068 # Check whether --enable-fast-install was given.
8069 if test "${enable_fast_install+set}" = set; then :
8070 enableval=$enable_fast_install; p=${PACKAGE-default}
8071 case $enableval in
8072 yes) enable_fast_install=yes ;;
8073 no) enable_fast_install=no ;;
8075 enable_fast_install=no
8076 # Look at the argument we got. We use all the common list separators.
8077 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8078 for pkg in $enableval; do
8079 IFS="$lt_save_ifs"
8080 if test "X$pkg" = "X$p"; then
8081 enable_fast_install=yes
8083 done
8084 IFS="$lt_save_ifs"
8086 esac
8087 else
8088 enable_fast_install=yes
8101 # This can be used to rebuild libtool when needed
8102 LIBTOOL_DEPS="$ltmain"
8104 # Always use our own libtool.
8105 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8132 test -z "$LN_S" && LN_S="ln -s"
8147 if test -n "${ZSH_VERSION+set}" ; then
8148 setopt NO_GLOB_SUBST
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8152 $as_echo_n "checking for objdir... " >&6; }
8153 if test "${lt_cv_objdir+set}" = set; then :
8154 $as_echo_n "(cached) " >&6
8155 else
8156 rm -f .libs 2>/dev/null
8157 mkdir .libs 2>/dev/null
8158 if test -d .libs; then
8159 lt_cv_objdir=.libs
8160 else
8161 # MS-DOS does not allow filenames that begin with a dot.
8162 lt_cv_objdir=_libs
8164 rmdir .libs 2>/dev/null
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8167 $as_echo "$lt_cv_objdir" >&6; }
8168 objdir=$lt_cv_objdir
8174 cat >>confdefs.h <<_ACEOF
8175 #define LT_OBJDIR "$lt_cv_objdir/"
8176 _ACEOF
8181 case $host_os in
8182 aix3*)
8183 # AIX sometimes has problems with the GCC collect2 program. For some
8184 # reason, if we set the COLLECT_NAMES environment variable, the problems
8185 # vanish in a puff of smoke.
8186 if test "X${COLLECT_NAMES+set}" != Xset; then
8187 COLLECT_NAMES=
8188 export COLLECT_NAMES
8191 esac
8193 # Global variables:
8194 ofile=libtool
8195 can_build_shared=yes
8197 # All known linkers require a `.a' archive for static linking (except MSVC,
8198 # which needs '.lib').
8199 libext=a
8201 with_gnu_ld="$lt_cv_prog_gnu_ld"
8203 old_CC="$CC"
8204 old_CFLAGS="$CFLAGS"
8206 # Set sane defaults for various variables
8207 test -z "$CC" && CC=cc
8208 test -z "$LTCC" && LTCC=$CC
8209 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8210 test -z "$LD" && LD=ld
8211 test -z "$ac_objext" && ac_objext=o
8213 for cc_temp in $compiler""; do
8214 case $cc_temp in
8215 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8216 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8217 \-*) ;;
8218 *) break;;
8219 esac
8220 done
8221 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8224 # Only perform the check for file, if the check method requires it
8225 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8226 case $deplibs_check_method in
8227 file_magic*)
8228 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8230 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8231 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8232 $as_echo_n "(cached) " >&6
8233 else
8234 case $MAGIC_CMD in
8235 [\\/*] | ?:[\\/]*)
8236 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8239 lt_save_MAGIC_CMD="$MAGIC_CMD"
8240 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8241 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8242 for ac_dir in $ac_dummy; do
8243 IFS="$lt_save_ifs"
8244 test -z "$ac_dir" && ac_dir=.
8245 if test -f $ac_dir/${ac_tool_prefix}file; then
8246 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8247 if test -n "$file_magic_test_file"; then
8248 case $deplibs_check_method in
8249 "file_magic "*)
8250 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8251 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8252 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8253 $EGREP "$file_magic_regex" > /dev/null; then
8255 else
8256 cat <<_LT_EOF 1>&2
8258 *** Warning: the command libtool uses to detect shared libraries,
8259 *** $file_magic_cmd, produces output that libtool cannot recognize.
8260 *** The result is that libtool may fail to recognize shared libraries
8261 *** as such. This will affect the creation of libtool libraries that
8262 *** depend on shared libraries, but programs linked with such libtool
8263 *** libraries will work regardless of this problem. Nevertheless, you
8264 *** may want to report the problem to your system manager and/or to
8265 *** bug-libtool@gnu.org
8267 _LT_EOF
8268 fi ;;
8269 esac
8271 break
8273 done
8274 IFS="$lt_save_ifs"
8275 MAGIC_CMD="$lt_save_MAGIC_CMD"
8277 esac
8280 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8281 if test -n "$MAGIC_CMD"; then
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8283 $as_echo "$MAGIC_CMD" >&6; }
8284 else
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8286 $as_echo "no" >&6; }
8293 if test -z "$lt_cv_path_MAGIC_CMD"; then
8294 if test -n "$ac_tool_prefix"; then
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8296 $as_echo_n "checking for file... " >&6; }
8297 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8298 $as_echo_n "(cached) " >&6
8299 else
8300 case $MAGIC_CMD in
8301 [\\/*] | ?:[\\/]*)
8302 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8305 lt_save_MAGIC_CMD="$MAGIC_CMD"
8306 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8307 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8308 for ac_dir in $ac_dummy; do
8309 IFS="$lt_save_ifs"
8310 test -z "$ac_dir" && ac_dir=.
8311 if test -f $ac_dir/file; then
8312 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8313 if test -n "$file_magic_test_file"; then
8314 case $deplibs_check_method in
8315 "file_magic "*)
8316 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8317 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8318 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8319 $EGREP "$file_magic_regex" > /dev/null; then
8321 else
8322 cat <<_LT_EOF 1>&2
8324 *** Warning: the command libtool uses to detect shared libraries,
8325 *** $file_magic_cmd, produces output that libtool cannot recognize.
8326 *** The result is that libtool may fail to recognize shared libraries
8327 *** as such. This will affect the creation of libtool libraries that
8328 *** depend on shared libraries, but programs linked with such libtool
8329 *** libraries will work regardless of this problem. Nevertheless, you
8330 *** may want to report the problem to your system manager and/or to
8331 *** bug-libtool@gnu.org
8333 _LT_EOF
8334 fi ;;
8335 esac
8337 break
8339 done
8340 IFS="$lt_save_ifs"
8341 MAGIC_CMD="$lt_save_MAGIC_CMD"
8343 esac
8346 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8347 if test -n "$MAGIC_CMD"; then
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8349 $as_echo "$MAGIC_CMD" >&6; }
8350 else
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8352 $as_echo "no" >&6; }
8356 else
8357 MAGIC_CMD=:
8363 esac
8365 # Use C for the default configuration in the libtool script
8367 lt_save_CC="$CC"
8368 ac_ext=c
8369 ac_cpp='$CPP $CPPFLAGS'
8370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8375 # Source file extension for C test sources.
8376 ac_ext=c
8378 # Object file extension for compiled C test sources.
8379 objext=o
8380 objext=$objext
8382 # Code to be used in simple compile tests
8383 lt_simple_compile_test_code="int some_variable = 0;"
8385 # Code to be used in simple link tests
8386 lt_simple_link_test_code='int main(){return(0);}'
8394 # If no C compiler was specified, use CC.
8395 LTCC=${LTCC-"$CC"}
8397 # If no C compiler flags were specified, use CFLAGS.
8398 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8400 # Allow CC to be a program name with arguments.
8401 compiler=$CC
8403 # Save the default compiler, since it gets overwritten when the other
8404 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8405 compiler_DEFAULT=$CC
8407 # save warnings/boilerplate of simple test code
8408 ac_outfile=conftest.$ac_objext
8409 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8410 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8411 _lt_compiler_boilerplate=`cat conftest.err`
8412 $RM conftest*
8414 ac_outfile=conftest.$ac_objext
8415 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8416 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8417 _lt_linker_boilerplate=`cat conftest.err`
8418 $RM -r conftest*
8421 ## CAVEAT EMPTOR:
8422 ## There is no encapsulation within the following macros, do not change
8423 ## the running order or otherwise move them around unless you know exactly
8424 ## what you are doing...
8425 if test -n "$compiler"; then
8427 lt_prog_compiler_no_builtin_flag=
8429 if test "$GCC" = yes; then
8430 case $cc_basename in
8431 nvcc*)
8432 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8434 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8435 esac
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8438 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8439 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8440 $as_echo_n "(cached) " >&6
8441 else
8442 lt_cv_prog_compiler_rtti_exceptions=no
8443 ac_outfile=conftest.$ac_objext
8444 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8445 lt_compiler_flag="-fno-rtti -fno-exceptions"
8446 # Insert the option either (1) after the last *FLAGS variable, or
8447 # (2) before a word containing "conftest.", or (3) at the end.
8448 # Note that $ac_compile itself does not contain backslashes and begins
8449 # with a dollar sign (not a hyphen), so the echo should work correctly.
8450 # The option is referenced via a variable to avoid confusing sed.
8451 lt_compile=`echo "$ac_compile" | $SED \
8452 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8453 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8454 -e 's:$: $lt_compiler_flag:'`
8455 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8456 (eval "$lt_compile" 2>conftest.err)
8457 ac_status=$?
8458 cat conftest.err >&5
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 if (exit $ac_status) && test -s "$ac_outfile"; then
8461 # The compiler can only warn and ignore the option if not recognized
8462 # So say no if there are warnings other than the usual output.
8463 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8464 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8465 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8466 lt_cv_prog_compiler_rtti_exceptions=yes
8469 $RM conftest*
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8473 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8475 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8476 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8477 else
8488 lt_prog_compiler_wl=
8489 lt_prog_compiler_pic=
8490 lt_prog_compiler_static=
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8493 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8495 if test "$GCC" = yes; then
8496 lt_prog_compiler_wl='-Wl,'
8497 lt_prog_compiler_static='-static'
8499 case $host_os in
8500 aix*)
8501 # All AIX code is PIC.
8502 if test "$host_cpu" = ia64; then
8503 # AIX 5 now supports IA64 processor
8504 lt_prog_compiler_static='-Bstatic'
8506 lt_prog_compiler_pic='-fPIC'
8509 amigaos*)
8510 case $host_cpu in
8511 powerpc)
8512 # see comment about AmigaOS4 .so support
8513 lt_prog_compiler_pic='-fPIC'
8515 m68k)
8516 # FIXME: we need at least 68020 code to build shared libraries, but
8517 # adding the `-m68020' flag to GCC prevents building anything better,
8518 # like `-m68040'.
8519 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8521 esac
8524 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8525 # PIC is the default for these OSes.
8528 mingw* | cygwin* | pw32* | os2* | cegcc*)
8529 # This hack is so that the source file can tell whether it is being
8530 # built for inclusion in a dll (and should export symbols for example).
8531 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8532 # (--disable-auto-import) libraries
8533 lt_prog_compiler_pic='-DDLL_EXPORT'
8536 darwin* | rhapsody*)
8537 # PIC is the default on this platform
8538 # Common symbols not allowed in MH_DYLIB files
8539 lt_prog_compiler_pic='-fno-common'
8542 haiku*)
8543 # PIC is the default for Haiku.
8544 # The "-static" flag exists, but is broken.
8545 lt_prog_compiler_static=
8548 hpux*)
8549 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8550 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8551 # sets the default TLS model and affects inlining.
8552 case $host_cpu in
8553 hppa*64*)
8554 # +Z the default
8557 lt_prog_compiler_pic='-fPIC'
8559 esac
8562 interix[3-9]*)
8563 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8564 # Instead, we relocate shared libraries at runtime.
8567 msdosdjgpp*)
8568 # Just because we use GCC doesn't mean we suddenly get shared libraries
8569 # on systems that don't support them.
8570 lt_prog_compiler_can_build_shared=no
8571 enable_shared=no
8574 *nto* | *qnx*)
8575 # QNX uses GNU C++, but need to define -shared option too, otherwise
8576 # it will coredump.
8577 lt_prog_compiler_pic='-fPIC -shared'
8580 sysv4*MP*)
8581 if test -d /usr/nec; then
8582 lt_prog_compiler_pic=-Kconform_pic
8587 lt_prog_compiler_pic='-fPIC'
8589 esac
8591 case $cc_basename in
8592 nvcc*) # Cuda Compiler Driver 2.2
8593 lt_prog_compiler_wl='-Xlinker '
8594 lt_prog_compiler_pic='-Xcompiler -fPIC'
8596 esac
8597 else
8598 # PORTME Check for flag to pass linker flags through the system compiler.
8599 case $host_os in
8600 aix*)
8601 lt_prog_compiler_wl='-Wl,'
8602 if test "$host_cpu" = ia64; then
8603 # AIX 5 now supports IA64 processor
8604 lt_prog_compiler_static='-Bstatic'
8605 else
8606 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8610 mingw* | cygwin* | pw32* | os2* | cegcc*)
8611 # This hack is so that the source file can tell whether it is being
8612 # built for inclusion in a dll (and should export symbols for example).
8613 lt_prog_compiler_pic='-DDLL_EXPORT'
8616 hpux9* | hpux10* | hpux11*)
8617 lt_prog_compiler_wl='-Wl,'
8618 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8619 # not for PA HP-UX.
8620 case $host_cpu in
8621 hppa*64*|ia64*)
8622 # +Z the default
8625 lt_prog_compiler_pic='+Z'
8627 esac
8628 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8629 lt_prog_compiler_static='${wl}-a ${wl}archive'
8632 irix5* | irix6* | nonstopux*)
8633 lt_prog_compiler_wl='-Wl,'
8634 # PIC (with -KPIC) is the default.
8635 lt_prog_compiler_static='-non_shared'
8638 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8639 case $cc_basename in
8640 # old Intel for x86_64 which still supported -KPIC.
8641 ecc*)
8642 lt_prog_compiler_wl='-Wl,'
8643 lt_prog_compiler_pic='-KPIC'
8644 lt_prog_compiler_static='-static'
8646 # icc used to be incompatible with GCC.
8647 # ICC 10 doesn't accept -KPIC any more.
8648 icc* | ifort*)
8649 lt_prog_compiler_wl='-Wl,'
8650 lt_prog_compiler_pic='-fPIC'
8651 lt_prog_compiler_static='-static'
8653 # Lahey Fortran 8.1.
8654 lf95*)
8655 lt_prog_compiler_wl='-Wl,'
8656 lt_prog_compiler_pic='--shared'
8657 lt_prog_compiler_static='--static'
8659 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8660 # Portland Group compilers (*not* the Pentium gcc compiler,
8661 # which looks to be a dead project)
8662 lt_prog_compiler_wl='-Wl,'
8663 lt_prog_compiler_pic='-fpic'
8664 lt_prog_compiler_static='-Bstatic'
8666 ccc*)
8667 lt_prog_compiler_wl='-Wl,'
8668 # All Alpha code is PIC.
8669 lt_prog_compiler_static='-non_shared'
8671 xl* | bgxl* | bgf* | mpixl*)
8672 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8673 lt_prog_compiler_wl='-Wl,'
8674 lt_prog_compiler_pic='-qpic'
8675 lt_prog_compiler_static='-qstaticlink'
8678 case `$CC -V 2>&1 | sed 5q` in
8679 *Sun\ F* | *Sun*Fortran*)
8680 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8681 lt_prog_compiler_pic='-KPIC'
8682 lt_prog_compiler_static='-Bstatic'
8683 lt_prog_compiler_wl=''
8685 *Sun\ C*)
8686 # Sun C 5.9
8687 lt_prog_compiler_pic='-KPIC'
8688 lt_prog_compiler_static='-Bstatic'
8689 lt_prog_compiler_wl='-Wl,'
8691 esac
8693 esac
8696 newsos6)
8697 lt_prog_compiler_pic='-KPIC'
8698 lt_prog_compiler_static='-Bstatic'
8701 *nto* | *qnx*)
8702 # QNX uses GNU C++, but need to define -shared option too, otherwise
8703 # it will coredump.
8704 lt_prog_compiler_pic='-fPIC -shared'
8707 osf3* | osf4* | osf5*)
8708 lt_prog_compiler_wl='-Wl,'
8709 # All OSF/1 code is PIC.
8710 lt_prog_compiler_static='-non_shared'
8713 rdos*)
8714 lt_prog_compiler_static='-non_shared'
8717 solaris*)
8718 lt_prog_compiler_pic='-KPIC'
8719 lt_prog_compiler_static='-Bstatic'
8720 case $cc_basename in
8721 f77* | f90* | f95*)
8722 lt_prog_compiler_wl='-Qoption ld ';;
8724 lt_prog_compiler_wl='-Wl,';;
8725 esac
8728 sunos4*)
8729 lt_prog_compiler_wl='-Qoption ld '
8730 lt_prog_compiler_pic='-PIC'
8731 lt_prog_compiler_static='-Bstatic'
8734 sysv4 | sysv4.2uw2* | sysv4.3*)
8735 lt_prog_compiler_wl='-Wl,'
8736 lt_prog_compiler_pic='-KPIC'
8737 lt_prog_compiler_static='-Bstatic'
8740 sysv4*MP*)
8741 if test -d /usr/nec ;then
8742 lt_prog_compiler_pic='-Kconform_pic'
8743 lt_prog_compiler_static='-Bstatic'
8747 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8748 lt_prog_compiler_wl='-Wl,'
8749 lt_prog_compiler_pic='-KPIC'
8750 lt_prog_compiler_static='-Bstatic'
8753 unicos*)
8754 lt_prog_compiler_wl='-Wl,'
8755 lt_prog_compiler_can_build_shared=no
8758 uts4*)
8759 lt_prog_compiler_pic='-pic'
8760 lt_prog_compiler_static='-Bstatic'
8764 lt_prog_compiler_can_build_shared=no
8766 esac
8769 case $host_os in
8770 # For platforms which do not support PIC, -DPIC is meaningless:
8771 *djgpp*)
8772 lt_prog_compiler_pic=
8775 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8777 esac
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8779 $as_echo "$lt_prog_compiler_pic" >&6; }
8787 # Check to make sure the PIC flag actually works.
8789 if test -n "$lt_prog_compiler_pic"; then
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8791 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8792 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8793 $as_echo_n "(cached) " >&6
8794 else
8795 lt_cv_prog_compiler_pic_works=no
8796 ac_outfile=conftest.$ac_objext
8797 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8798 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8799 # Insert the option either (1) after the last *FLAGS variable, or
8800 # (2) before a word containing "conftest.", or (3) at the end.
8801 # Note that $ac_compile itself does not contain backslashes and begins
8802 # with a dollar sign (not a hyphen), so the echo should work correctly.
8803 # The option is referenced via a variable to avoid confusing sed.
8804 lt_compile=`echo "$ac_compile" | $SED \
8805 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8806 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8807 -e 's:$: $lt_compiler_flag:'`
8808 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8809 (eval "$lt_compile" 2>conftest.err)
8810 ac_status=$?
8811 cat conftest.err >&5
8812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813 if (exit $ac_status) && test -s "$ac_outfile"; then
8814 # The compiler can only warn and ignore the option if not recognized
8815 # So say no if there are warnings other than the usual output.
8816 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8817 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8818 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8819 lt_cv_prog_compiler_pic_works=yes
8822 $RM conftest*
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8826 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8828 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8829 case $lt_prog_compiler_pic in
8830 "" | " "*) ;;
8831 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8832 esac
8833 else
8834 lt_prog_compiler_pic=
8835 lt_prog_compiler_can_build_shared=no
8846 # Check to make sure the static flag actually works.
8848 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8850 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8851 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8852 $as_echo_n "(cached) " >&6
8853 else
8854 lt_cv_prog_compiler_static_works=no
8855 save_LDFLAGS="$LDFLAGS"
8856 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8857 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8858 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8859 # The linker can only warn and ignore the option if not recognized
8860 # So say no if there are warnings
8861 if test -s conftest.err; then
8862 # Append any errors to the config.log.
8863 cat conftest.err 1>&5
8864 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8865 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8866 if diff conftest.exp conftest.er2 >/dev/null; then
8867 lt_cv_prog_compiler_static_works=yes
8869 else
8870 lt_cv_prog_compiler_static_works=yes
8873 $RM -r conftest*
8874 LDFLAGS="$save_LDFLAGS"
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8878 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8880 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8882 else
8883 lt_prog_compiler_static=
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8893 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8894 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8895 $as_echo_n "(cached) " >&6
8896 else
8897 lt_cv_prog_compiler_c_o=no
8898 $RM -r conftest 2>/dev/null
8899 mkdir conftest
8900 cd conftest
8901 mkdir out
8902 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8904 lt_compiler_flag="-o out/conftest2.$ac_objext"
8905 # Insert the option either (1) after the last *FLAGS variable, or
8906 # (2) before a word containing "conftest.", or (3) at the end.
8907 # Note that $ac_compile itself does not contain backslashes and begins
8908 # with a dollar sign (not a hyphen), so the echo should work correctly.
8909 lt_compile=`echo "$ac_compile" | $SED \
8910 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8911 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8912 -e 's:$: $lt_compiler_flag:'`
8913 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8914 (eval "$lt_compile" 2>out/conftest.err)
8915 ac_status=$?
8916 cat out/conftest.err >&5
8917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8919 then
8920 # The compiler can only warn and ignore the option if not recognized
8921 # So say no if there are warnings
8922 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8923 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8924 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8925 lt_cv_prog_compiler_c_o=yes
8928 chmod u+w . 2>&5
8929 $RM conftest*
8930 # SGI C++ compiler will create directory out/ii_files/ for
8931 # template instantiation
8932 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8933 $RM out/* && rmdir out
8934 cd ..
8935 $RM -r conftest
8936 $RM conftest*
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8940 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8948 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8949 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8950 $as_echo_n "(cached) " >&6
8951 else
8952 lt_cv_prog_compiler_c_o=no
8953 $RM -r conftest 2>/dev/null
8954 mkdir conftest
8955 cd conftest
8956 mkdir out
8957 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8959 lt_compiler_flag="-o out/conftest2.$ac_objext"
8960 # Insert the option either (1) after the last *FLAGS variable, or
8961 # (2) before a word containing "conftest.", or (3) at the end.
8962 # Note that $ac_compile itself does not contain backslashes and begins
8963 # with a dollar sign (not a hyphen), so the echo should work correctly.
8964 lt_compile=`echo "$ac_compile" | $SED \
8965 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8966 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8967 -e 's:$: $lt_compiler_flag:'`
8968 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8969 (eval "$lt_compile" 2>out/conftest.err)
8970 ac_status=$?
8971 cat out/conftest.err >&5
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8974 then
8975 # The compiler can only warn and ignore the option if not recognized
8976 # So say no if there are warnings
8977 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8978 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8979 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8980 lt_cv_prog_compiler_c_o=yes
8983 chmod u+w . 2>&5
8984 $RM conftest*
8985 # SGI C++ compiler will create directory out/ii_files/ for
8986 # template instantiation
8987 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8988 $RM out/* && rmdir out
8989 cd ..
8990 $RM -r conftest
8991 $RM conftest*
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8995 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9000 hard_links="nottested"
9001 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9002 # do not overwrite the value of need_locks provided by the user
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9004 $as_echo_n "checking if we can lock with hard links... " >&6; }
9005 hard_links=yes
9006 $RM conftest*
9007 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9008 touch conftest.a
9009 ln conftest.a conftest.b 2>&5 || hard_links=no
9010 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9012 $as_echo "$hard_links" >&6; }
9013 if test "$hard_links" = no; then
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9015 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9016 need_locks=warn
9018 else
9019 need_locks=no
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9028 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9030 runpath_var=
9031 allow_undefined_flag=
9032 always_export_symbols=no
9033 archive_cmds=
9034 archive_expsym_cmds=
9035 compiler_needs_object=no
9036 enable_shared_with_static_runtimes=no
9037 export_dynamic_flag_spec=
9038 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9039 hardcode_automatic=no
9040 hardcode_direct=no
9041 hardcode_direct_absolute=no
9042 hardcode_libdir_flag_spec=
9043 hardcode_libdir_flag_spec_ld=
9044 hardcode_libdir_separator=
9045 hardcode_minus_L=no
9046 hardcode_shlibpath_var=unsupported
9047 inherit_rpath=no
9048 link_all_deplibs=unknown
9049 module_cmds=
9050 module_expsym_cmds=
9051 old_archive_from_new_cmds=
9052 old_archive_from_expsyms_cmds=
9053 thread_safe_flag_spec=
9054 whole_archive_flag_spec=
9055 # include_expsyms should be a list of space-separated symbols to be *always*
9056 # included in the symbol list
9057 include_expsyms=
9058 # exclude_expsyms can be an extended regexp of symbols to exclude
9059 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9060 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9061 # as well as any symbol that contains `d'.
9062 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9063 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9064 # platforms (ab)use it in PIC code, but their linkers get confused if
9065 # the symbol is explicitly referenced. Since portable code cannot
9066 # rely on this symbol name, it's probably fine to never include it in
9067 # preloaded symbol tables.
9068 # Exclude shared library initialization/finalization symbols.
9069 extract_expsyms_cmds=
9071 case $host_os in
9072 cygwin* | mingw* | pw32* | cegcc*)
9073 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9074 # When not using gcc, we currently assume that we are using
9075 # Microsoft Visual C++.
9076 if test "$GCC" != yes; then
9077 with_gnu_ld=no
9080 interix*)
9081 # we just hope/assume this is gcc and not c89 (= MSVC++)
9082 with_gnu_ld=yes
9084 openbsd*)
9085 with_gnu_ld=no
9087 esac
9089 ld_shlibs=yes
9091 # On some targets, GNU ld is compatible enough with the native linker
9092 # that we're better off using the native interface for both.
9093 lt_use_gnu_ld_interface=no
9094 if test "$with_gnu_ld" = yes; then
9095 case $host_os in
9096 aix*)
9097 # The AIX port of GNU ld has always aspired to compatibility
9098 # with the native linker. However, as the warning in the GNU ld
9099 # block says, versions before 2.19.5* couldn't really create working
9100 # shared libraries, regardless of the interface used.
9101 case `$LD -v 2>&1` in
9102 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9103 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9104 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9106 lt_use_gnu_ld_interface=yes
9108 esac
9111 lt_use_gnu_ld_interface=yes
9113 esac
9116 if test "$lt_use_gnu_ld_interface" = yes; then
9117 # If archive_cmds runs LD, not CC, wlarc should be empty
9118 wlarc='${wl}'
9120 # Set some defaults for GNU ld with shared library support. These
9121 # are reset later if shared libraries are not supported. Putting them
9122 # here allows them to be overridden if necessary.
9123 runpath_var=LD_RUN_PATH
9124 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9125 export_dynamic_flag_spec='${wl}--export-dynamic'
9126 # ancient GNU ld didn't support --whole-archive et. al.
9127 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9128 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9129 else
9130 whole_archive_flag_spec=
9132 supports_anon_versioning=no
9133 case `$LD -v 2>&1` in
9134 *GNU\ gold*) supports_anon_versioning=yes ;;
9135 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9136 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9137 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9138 *\ 2.11.*) ;; # other 2.11 versions
9139 *) supports_anon_versioning=yes ;;
9140 esac
9142 # See if GNU ld supports shared libraries.
9143 case $host_os in
9144 aix[3-9]*)
9145 # On AIX/PPC, the GNU linker is very broken
9146 if test "$host_cpu" != ia64; then
9147 ld_shlibs=no
9148 cat <<_LT_EOF 1>&2
9150 *** Warning: the GNU linker, at least up to release 2.19, is reported
9151 *** to be unable to reliably create shared libraries on AIX.
9152 *** Therefore, libtool is disabling shared libraries support. If you
9153 *** really care for shared libraries, you may want to install binutils
9154 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9155 *** You will then need to restart the configuration process.
9157 _LT_EOF
9161 amigaos*)
9162 case $host_cpu in
9163 powerpc)
9164 # see comment about AmigaOS4 .so support
9165 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9166 archive_expsym_cmds=''
9168 m68k)
9169 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)'
9170 hardcode_libdir_flag_spec='-L$libdir'
9171 hardcode_minus_L=yes
9173 esac
9176 beos*)
9177 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9178 allow_undefined_flag=unsupported
9179 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9180 # support --undefined. This deserves some investigation. FIXME
9181 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9182 else
9183 ld_shlibs=no
9187 cygwin* | mingw* | pw32* | cegcc*)
9188 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9189 # as there is no search path for DLLs.
9190 hardcode_libdir_flag_spec='-L$libdir'
9191 export_dynamic_flag_spec='${wl}--export-all-symbols'
9192 allow_undefined_flag=unsupported
9193 always_export_symbols=no
9194 enable_shared_with_static_runtimes=yes
9195 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9197 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9198 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9199 # If the export-symbols file already is a .def file (1st line
9200 # is EXPORTS), use it as is; otherwise, prepend...
9201 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9202 cp $export_symbols $output_objdir/$soname.def;
9203 else
9204 echo EXPORTS > $output_objdir/$soname.def;
9205 cat $export_symbols >> $output_objdir/$soname.def;
9207 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9208 else
9209 ld_shlibs=no
9213 haiku*)
9214 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9215 link_all_deplibs=yes
9218 interix[3-9]*)
9219 hardcode_direct=no
9220 hardcode_shlibpath_var=no
9221 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9222 export_dynamic_flag_spec='${wl}-E'
9223 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9224 # Instead, shared libraries are loaded at an image base (0x10000000 by
9225 # default) and relocated if they conflict, which is a slow very memory
9226 # consuming and fragmenting process. To avoid this, we pick a random,
9227 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9228 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9229 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9230 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'
9233 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9234 tmp_diet=no
9235 if test "$host_os" = linux-dietlibc; then
9236 case $cc_basename in
9237 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9238 esac
9240 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9241 && test "$tmp_diet" = no
9242 then
9243 tmp_addflag=' $pic_flag'
9244 tmp_sharedflag='-shared'
9245 case $cc_basename,$host_cpu in
9246 pgcc*) # Portland Group C compiler
9247 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'
9248 tmp_addflag=' $pic_flag'
9250 pgf77* | pgf90* | pgf95* | pgfortran*)
9251 # Portland Group f77 and f90 compilers
9252 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'
9253 tmp_addflag=' $pic_flag -Mnomain' ;;
9254 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9255 tmp_addflag=' -i_dynamic' ;;
9256 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9257 tmp_addflag=' -i_dynamic -nofor_main' ;;
9258 ifc* | ifort*) # Intel Fortran compiler
9259 tmp_addflag=' -nofor_main' ;;
9260 lf95*) # Lahey Fortran 8.1
9261 whole_archive_flag_spec=
9262 tmp_sharedflag='--shared' ;;
9263 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9264 tmp_sharedflag='-qmkshrobj'
9265 tmp_addflag= ;;
9266 nvcc*) # Cuda Compiler Driver 2.2
9267 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'
9268 compiler_needs_object=yes
9270 esac
9271 case `$CC -V 2>&1 | sed 5q` in
9272 *Sun\ C*) # Sun C 5.9
9273 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'
9274 compiler_needs_object=yes
9275 tmp_sharedflag='-G' ;;
9276 *Sun\ F*) # Sun Fortran 8.3
9277 tmp_sharedflag='-G' ;;
9278 esac
9279 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9281 if test "x$supports_anon_versioning" = xyes; then
9282 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9283 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9284 echo "local: *; };" >> $output_objdir/$libname.ver~
9285 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9288 case $cc_basename in
9289 xlf* | bgf* | bgxlf* | mpixlf*)
9290 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9291 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9292 hardcode_libdir_flag_spec=
9293 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9294 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9295 if test "x$supports_anon_versioning" = xyes; then
9296 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9297 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9298 echo "local: *; };" >> $output_objdir/$libname.ver~
9299 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9302 esac
9303 else
9304 ld_shlibs=no
9308 netbsd*)
9309 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9310 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9311 wlarc=
9312 else
9313 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9314 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9318 solaris*)
9319 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9320 ld_shlibs=no
9321 cat <<_LT_EOF 1>&2
9323 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9324 *** create shared libraries on Solaris systems. Therefore, libtool
9325 *** is disabling shared libraries support. We urge you to upgrade GNU
9326 *** binutils to release 2.9.1 or newer. Another option is to modify
9327 *** your PATH or compiler configuration so that the native linker is
9328 *** used, and then restart.
9330 _LT_EOF
9331 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9332 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9333 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9334 else
9335 ld_shlibs=no
9339 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9340 case `$LD -v 2>&1` in
9341 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9342 ld_shlibs=no
9343 cat <<_LT_EOF 1>&2
9345 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9346 *** reliably create shared libraries on SCO systems. Therefore, libtool
9347 *** is disabling shared libraries support. We urge you to upgrade GNU
9348 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9349 *** your PATH or compiler configuration so that the native linker is
9350 *** used, and then restart.
9352 _LT_EOF
9355 # For security reasons, it is highly recommended that you always
9356 # use absolute paths for naming shared libraries, and exclude the
9357 # DT_RUNPATH tag from executables and libraries. But doing so
9358 # requires that you compile everything twice, which is a pain.
9359 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9360 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9361 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9362 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9363 else
9364 ld_shlibs=no
9367 esac
9370 sunos4*)
9371 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9372 wlarc=
9373 hardcode_direct=yes
9374 hardcode_shlibpath_var=no
9378 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9379 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9380 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9381 else
9382 ld_shlibs=no
9385 esac
9387 if test "$ld_shlibs" = no; then
9388 runpath_var=
9389 hardcode_libdir_flag_spec=
9390 export_dynamic_flag_spec=
9391 whole_archive_flag_spec=
9393 else
9394 # PORTME fill in a description of your system's linker (not GNU ld)
9395 case $host_os in
9396 aix3*)
9397 allow_undefined_flag=unsupported
9398 always_export_symbols=yes
9399 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'
9400 # Note: this linker hardcodes the directories in LIBPATH if there
9401 # are no directories specified by -L.
9402 hardcode_minus_L=yes
9403 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9404 # Neither direct hardcoding nor static linking is supported with a
9405 # broken collect2.
9406 hardcode_direct=unsupported
9410 aix[4-9]*)
9411 if test "$host_cpu" = ia64; then
9412 # On IA64, the linker does run time linking by default, so we don't
9413 # have to do anything special.
9414 aix_use_runtimelinking=no
9415 exp_sym_flag='-Bexport'
9416 no_entry_flag=""
9417 else
9418 # If we're using GNU nm, then we don't want the "-C" option.
9419 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9420 # Also, AIX nm treats weak defined symbols like other global
9421 # defined symbols, whereas GNU nm marks them as "W".
9422 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9423 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'
9424 else
9425 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'
9427 aix_use_runtimelinking=no
9429 # Test if we are trying to use run time linking or normal
9430 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9431 # need to do runtime linking.
9432 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9433 for ld_flag in $LDFLAGS; do
9434 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9435 aix_use_runtimelinking=yes
9436 break
9438 done
9440 esac
9442 exp_sym_flag='-bexport'
9443 no_entry_flag='-bnoentry'
9446 # When large executables or shared objects are built, AIX ld can
9447 # have problems creating the table of contents. If linking a library
9448 # or program results in "error TOC overflow" add -mminimal-toc to
9449 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9450 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9452 archive_cmds=''
9453 hardcode_direct=yes
9454 hardcode_direct_absolute=yes
9455 hardcode_libdir_separator=':'
9456 link_all_deplibs=yes
9457 file_list_spec='${wl}-f,'
9459 if test "$GCC" = yes; then
9460 case $host_os in aix4.[012]|aix4.[012].*)
9461 # We only want to do this on AIX 4.2 and lower, the check
9462 # below for broken collect2 doesn't work under 4.3+
9463 collect2name=`${CC} -print-prog-name=collect2`
9464 if test -f "$collect2name" &&
9465 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9466 then
9467 # We have reworked collect2
9469 else
9470 # We have old collect2
9471 hardcode_direct=unsupported
9472 # It fails to find uninstalled libraries when the uninstalled
9473 # path is not listed in the libpath. Setting hardcode_minus_L
9474 # to unsupported forces relinking
9475 hardcode_minus_L=yes
9476 hardcode_libdir_flag_spec='-L$libdir'
9477 hardcode_libdir_separator=
9480 esac
9481 shared_flag='-shared'
9482 if test "$aix_use_runtimelinking" = yes; then
9483 shared_flag="$shared_flag "'${wl}-G'
9485 else
9486 # not using gcc
9487 if test "$host_cpu" = ia64; then
9488 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9489 # chokes on -Wl,-G. The following line is correct:
9490 shared_flag='-G'
9491 else
9492 if test "$aix_use_runtimelinking" = yes; then
9493 shared_flag='${wl}-G'
9494 else
9495 shared_flag='${wl}-bM:SRE'
9500 export_dynamic_flag_spec='${wl}-bexpall'
9501 # It seems that -bexpall does not export symbols beginning with
9502 # underscore (_), so it is better to generate a list of symbols to export.
9503 always_export_symbols=yes
9504 if test "$aix_use_runtimelinking" = yes; then
9505 # Warning - without using the other runtime loading flags (-brtl),
9506 # -berok will link without error, but may produce a broken library.
9507 allow_undefined_flag='-berok'
9508 # Determine the default libpath from the value encoded in an
9509 # empty executable.
9510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9511 /* end confdefs.h. */
9514 main ()
9518 return 0;
9520 _ACEOF
9521 if ac_fn_c_try_link "$LINENO"; then :
9523 lt_aix_libpath_sed='
9524 /Import File Strings/,/^$/ {
9525 /^0/ {
9526 s/^0 *\(.*\)$/\1/
9530 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9531 # Check for a 64-bit object if we didn't find anything.
9532 if test -z "$aix_libpath"; then
9533 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9536 rm -f core conftest.err conftest.$ac_objext \
9537 conftest$ac_exeext conftest.$ac_ext
9538 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9540 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9541 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"
9542 else
9543 if test "$host_cpu" = ia64; then
9544 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9545 allow_undefined_flag="-z nodefs"
9546 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"
9547 else
9548 # Determine the default libpath from the value encoded in an
9549 # empty executable.
9550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9551 /* end confdefs.h. */
9554 main ()
9558 return 0;
9560 _ACEOF
9561 if ac_fn_c_try_link "$LINENO"; then :
9563 lt_aix_libpath_sed='
9564 /Import File Strings/,/^$/ {
9565 /^0/ {
9566 s/^0 *\(.*\)$/\1/
9570 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9571 # Check for a 64-bit object if we didn't find anything.
9572 if test -z "$aix_libpath"; then
9573 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9576 rm -f core conftest.err conftest.$ac_objext \
9577 conftest$ac_exeext conftest.$ac_ext
9578 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9580 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9581 # Warning - without using the other run time loading flags,
9582 # -berok will link without error, but may produce a broken library.
9583 no_undefined_flag=' ${wl}-bernotok'
9584 allow_undefined_flag=' ${wl}-berok'
9585 if test "$with_gnu_ld" = yes; then
9586 # We only use this code for GNU lds that support --whole-archive.
9587 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9588 else
9589 # Exported symbols can be pulled into shared objects from archives
9590 whole_archive_flag_spec='$convenience'
9592 archive_cmds_need_lc=yes
9593 # This is similar to how AIX traditionally builds its shared libraries.
9594 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'
9599 amigaos*)
9600 case $host_cpu in
9601 powerpc)
9602 # see comment about AmigaOS4 .so support
9603 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9604 archive_expsym_cmds=''
9606 m68k)
9607 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)'
9608 hardcode_libdir_flag_spec='-L$libdir'
9609 hardcode_minus_L=yes
9611 esac
9614 bsdi[45]*)
9615 export_dynamic_flag_spec=-rdynamic
9618 cygwin* | mingw* | pw32* | cegcc*)
9619 # When not using gcc, we currently assume that we are using
9620 # Microsoft Visual C++.
9621 # hardcode_libdir_flag_spec is actually meaningless, as there is
9622 # no search path for DLLs.
9623 hardcode_libdir_flag_spec=' '
9624 allow_undefined_flag=unsupported
9625 # Tell ltmain to make .lib files, not .a files.
9626 libext=lib
9627 # Tell ltmain to make .dll files, not .so files.
9628 shrext_cmds=".dll"
9629 # FIXME: Setting linknames here is a bad hack.
9630 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9631 # The linker will automatically build a .lib file if we build a DLL.
9632 old_archive_from_new_cmds='true'
9633 # FIXME: Should let the user specify the lib program.
9634 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9635 fix_srcfile_path='`cygpath -w "$srcfile"`'
9636 enable_shared_with_static_runtimes=yes
9639 darwin* | rhapsody*)
9642 archive_cmds_need_lc=no
9643 hardcode_direct=no
9644 hardcode_automatic=yes
9645 hardcode_shlibpath_var=unsupported
9646 if test "$lt_cv_ld_force_load" = "yes"; then
9647 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\"`'
9648 else
9649 whole_archive_flag_spec=''
9651 link_all_deplibs=yes
9652 allow_undefined_flag="$_lt_dar_allow_undefined"
9653 case $cc_basename in
9654 ifort*) _lt_dar_can_shared=yes ;;
9655 *) _lt_dar_can_shared=$GCC ;;
9656 esac
9657 if test "$_lt_dar_can_shared" = "yes"; then
9658 output_verbose_link_cmd=func_echo_all
9659 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9660 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9661 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}"
9662 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}"
9664 else
9665 ld_shlibs=no
9670 dgux*)
9671 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9672 hardcode_libdir_flag_spec='-L$libdir'
9673 hardcode_shlibpath_var=no
9676 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9677 # support. Future versions do this automatically, but an explicit c++rt0.o
9678 # does not break anything, and helps significantly (at the cost of a little
9679 # extra space).
9680 freebsd2.2*)
9681 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9682 hardcode_libdir_flag_spec='-R$libdir'
9683 hardcode_direct=yes
9684 hardcode_shlibpath_var=no
9687 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9688 freebsd2.*)
9689 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9690 hardcode_direct=yes
9691 hardcode_minus_L=yes
9692 hardcode_shlibpath_var=no
9695 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9696 freebsd* | dragonfly*)
9697 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9698 hardcode_libdir_flag_spec='-R$libdir'
9699 hardcode_direct=yes
9700 hardcode_shlibpath_var=no
9703 hpux9*)
9704 if test "$GCC" = yes; then
9705 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'
9706 else
9707 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'
9709 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9710 hardcode_libdir_separator=:
9711 hardcode_direct=yes
9713 # hardcode_minus_L: Not really in the search PATH,
9714 # but as the default location of the library.
9715 hardcode_minus_L=yes
9716 export_dynamic_flag_spec='${wl}-E'
9719 hpux10*)
9720 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9721 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9722 else
9723 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9725 if test "$with_gnu_ld" = no; then
9726 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9727 hardcode_libdir_flag_spec_ld='+b $libdir'
9728 hardcode_libdir_separator=:
9729 hardcode_direct=yes
9730 hardcode_direct_absolute=yes
9731 export_dynamic_flag_spec='${wl}-E'
9732 # hardcode_minus_L: Not really in the search PATH,
9733 # but as the default location of the library.
9734 hardcode_minus_L=yes
9738 hpux11*)
9739 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9740 case $host_cpu in
9741 hppa*64*)
9742 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9744 ia64*)
9745 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9748 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9750 esac
9751 else
9752 case $host_cpu in
9753 hppa*64*)
9754 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9756 ia64*)
9757 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9761 # Older versions of the 11.00 compiler do not understand -b yet
9762 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9764 $as_echo_n "checking if $CC understands -b... " >&6; }
9765 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9766 $as_echo_n "(cached) " >&6
9767 else
9768 lt_cv_prog_compiler__b=no
9769 save_LDFLAGS="$LDFLAGS"
9770 LDFLAGS="$LDFLAGS -b"
9771 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9772 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9773 # The linker can only warn and ignore the option if not recognized
9774 # So say no if there are warnings
9775 if test -s conftest.err; then
9776 # Append any errors to the config.log.
9777 cat conftest.err 1>&5
9778 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9779 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9780 if diff conftest.exp conftest.er2 >/dev/null; then
9781 lt_cv_prog_compiler__b=yes
9783 else
9784 lt_cv_prog_compiler__b=yes
9787 $RM -r conftest*
9788 LDFLAGS="$save_LDFLAGS"
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9792 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9794 if test x"$lt_cv_prog_compiler__b" = xyes; then
9795 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9796 else
9797 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9801 esac
9803 if test "$with_gnu_ld" = no; then
9804 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9805 hardcode_libdir_separator=:
9807 case $host_cpu in
9808 hppa*64*|ia64*)
9809 hardcode_direct=no
9810 hardcode_shlibpath_var=no
9813 hardcode_direct=yes
9814 hardcode_direct_absolute=yes
9815 export_dynamic_flag_spec='${wl}-E'
9817 # hardcode_minus_L: Not really in the search PATH,
9818 # but as the default location of the library.
9819 hardcode_minus_L=yes
9821 esac
9825 irix5* | irix6* | nonstopux*)
9826 if test "$GCC" = yes; then
9827 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'
9828 # Try to use the -exported_symbol ld option, if it does not
9829 # work, assume that -exports_file does not work either and
9830 # implicitly export all symbols.
9831 save_LDFLAGS="$LDFLAGS"
9832 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9834 /* end confdefs.h. */
9835 int foo(void) {}
9836 _ACEOF
9837 if ac_fn_c_try_link "$LINENO"; then :
9838 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'
9841 rm -f core conftest.err conftest.$ac_objext \
9842 conftest$ac_exeext conftest.$ac_ext
9843 LDFLAGS="$save_LDFLAGS"
9844 else
9845 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'
9846 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'
9848 archive_cmds_need_lc='no'
9849 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9850 hardcode_libdir_separator=:
9851 inherit_rpath=yes
9852 link_all_deplibs=yes
9855 netbsd*)
9856 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9857 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9858 else
9859 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9861 hardcode_libdir_flag_spec='-R$libdir'
9862 hardcode_direct=yes
9863 hardcode_shlibpath_var=no
9866 newsos6)
9867 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9868 hardcode_direct=yes
9869 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9870 hardcode_libdir_separator=:
9871 hardcode_shlibpath_var=no
9874 *nto* | *qnx*)
9877 openbsd*)
9878 if test -f /usr/libexec/ld.so; then
9879 hardcode_direct=yes
9880 hardcode_shlibpath_var=no
9881 hardcode_direct_absolute=yes
9882 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9883 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9884 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9885 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9886 export_dynamic_flag_spec='${wl}-E'
9887 else
9888 case $host_os in
9889 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9890 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9891 hardcode_libdir_flag_spec='-R$libdir'
9894 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9895 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9897 esac
9899 else
9900 ld_shlibs=no
9904 os2*)
9905 hardcode_libdir_flag_spec='-L$libdir'
9906 hardcode_minus_L=yes
9907 allow_undefined_flag=unsupported
9908 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'
9909 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9912 osf3*)
9913 if test "$GCC" = yes; then
9914 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9915 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'
9916 else
9917 allow_undefined_flag=' -expect_unresolved \*'
9918 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'
9920 archive_cmds_need_lc='no'
9921 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9922 hardcode_libdir_separator=:
9925 osf4* | osf5*) # as osf3* with the addition of -msym flag
9926 if test "$GCC" = yes; then
9927 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9928 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'
9929 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9930 else
9931 allow_undefined_flag=' -expect_unresolved \*'
9932 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'
9933 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~
9934 $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'
9936 # Both c and cxx compiler support -rpath directly
9937 hardcode_libdir_flag_spec='-rpath $libdir'
9939 archive_cmds_need_lc='no'
9940 hardcode_libdir_separator=:
9943 solaris*)
9944 no_undefined_flag=' -z defs'
9945 if test "$GCC" = yes; then
9946 wlarc='${wl}'
9947 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9948 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9949 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9950 else
9951 case `$CC -V 2>&1` in
9952 *"Compilers 5.0"*)
9953 wlarc=''
9954 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9955 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9956 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9959 wlarc='${wl}'
9960 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9961 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9962 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9964 esac
9966 hardcode_libdir_flag_spec='-R$libdir'
9967 hardcode_shlibpath_var=no
9968 case $host_os in
9969 solaris2.[0-5] | solaris2.[0-5].*) ;;
9971 # The compiler driver will combine and reorder linker options,
9972 # but understands `-z linker_flag'. GCC discards it without `$wl',
9973 # but is careful enough not to reorder.
9974 # Supported since Solaris 2.6 (maybe 2.5.1?)
9975 if test "$GCC" = yes; then
9976 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9977 else
9978 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9981 esac
9982 link_all_deplibs=yes
9985 sunos4*)
9986 if test "x$host_vendor" = xsequent; then
9987 # Use $CC to link under sequent, because it throws in some extra .o
9988 # files that make .init and .fini sections work.
9989 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9990 else
9991 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9993 hardcode_libdir_flag_spec='-L$libdir'
9994 hardcode_direct=yes
9995 hardcode_minus_L=yes
9996 hardcode_shlibpath_var=no
9999 sysv4)
10000 case $host_vendor in
10001 sni)
10002 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10003 hardcode_direct=yes # is this really true???
10005 siemens)
10006 ## LD is ld it makes a PLAMLIB
10007 ## CC just makes a GrossModule.
10008 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10009 reload_cmds='$CC -r -o $output$reload_objs'
10010 hardcode_direct=no
10012 motorola)
10013 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10014 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10016 esac
10017 runpath_var='LD_RUN_PATH'
10018 hardcode_shlibpath_var=no
10021 sysv4.3*)
10022 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10023 hardcode_shlibpath_var=no
10024 export_dynamic_flag_spec='-Bexport'
10027 sysv4*MP*)
10028 if test -d /usr/nec; then
10029 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10030 hardcode_shlibpath_var=no
10031 runpath_var=LD_RUN_PATH
10032 hardcode_runpath_var=yes
10033 ld_shlibs=yes
10037 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10038 no_undefined_flag='${wl}-z,text'
10039 archive_cmds_need_lc=no
10040 hardcode_shlibpath_var=no
10041 runpath_var='LD_RUN_PATH'
10043 if test "$GCC" = yes; then
10044 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10045 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10046 else
10047 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10048 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10052 sysv5* | sco3.2v5* | sco5v6*)
10053 # Note: We can NOT use -z defs as we might desire, because we do not
10054 # link with -lc, and that would cause any symbols used from libc to
10055 # always be unresolved, which means just about no library would
10056 # ever link correctly. If we're not using GNU ld we use -z text
10057 # though, which does catch some bad symbols but isn't as heavy-handed
10058 # as -z defs.
10059 no_undefined_flag='${wl}-z,text'
10060 allow_undefined_flag='${wl}-z,nodefs'
10061 archive_cmds_need_lc=no
10062 hardcode_shlibpath_var=no
10063 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10064 hardcode_libdir_separator=':'
10065 link_all_deplibs=yes
10066 export_dynamic_flag_spec='${wl}-Bexport'
10067 runpath_var='LD_RUN_PATH'
10069 if test "$GCC" = yes; then
10070 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10071 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10072 else
10073 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10074 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10078 uts4*)
10079 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10080 hardcode_libdir_flag_spec='-L$libdir'
10081 hardcode_shlibpath_var=no
10085 ld_shlibs=no
10087 esac
10089 if test x$host_vendor = xsni; then
10090 case $host in
10091 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10092 export_dynamic_flag_spec='${wl}-Blargedynsym'
10094 esac
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10099 $as_echo "$ld_shlibs" >&6; }
10100 test "$ld_shlibs" = no && can_build_shared=no
10102 with_gnu_ld=$with_gnu_ld
10119 # Do we need to explicitly link libc?
10121 case "x$archive_cmds_need_lc" in
10122 x|xyes)
10123 # Assume -lc should be added
10124 archive_cmds_need_lc=yes
10126 if test "$enable_shared" = yes && test "$GCC" = yes; then
10127 case $archive_cmds in
10128 *'~'*)
10129 # FIXME: we may have to deal with multi-command sequences.
10131 '$CC '*)
10132 # Test whether the compiler implicitly links with -lc since on some
10133 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10134 # to ld, don't add -lc before -lgcc.
10135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10136 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10137 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10138 $as_echo_n "(cached) " >&6
10139 else
10140 $RM conftest*
10141 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10143 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10144 (eval $ac_compile) 2>&5
10145 ac_status=$?
10146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10147 test $ac_status = 0; } 2>conftest.err; then
10148 soname=conftest
10149 lib=conftest
10150 libobjs=conftest.$ac_objext
10151 deplibs=
10152 wl=$lt_prog_compiler_wl
10153 pic_flag=$lt_prog_compiler_pic
10154 compiler_flags=-v
10155 linker_flags=-v
10156 verstring=
10157 output_objdir=.
10158 libname=conftest
10159 lt_save_allow_undefined_flag=$allow_undefined_flag
10160 allow_undefined_flag=
10161 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10162 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10163 ac_status=$?
10164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10165 test $ac_status = 0; }
10166 then
10167 lt_cv_archive_cmds_need_lc=no
10168 else
10169 lt_cv_archive_cmds_need_lc=yes
10171 allow_undefined_flag=$lt_save_allow_undefined_flag
10172 else
10173 cat conftest.err 1>&5
10175 $RM conftest*
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10179 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10180 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10182 esac
10185 esac
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10344 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10346 if test "$GCC" = yes; then
10347 case $host_os in
10348 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10349 *) lt_awk_arg="/^libraries:/" ;;
10350 esac
10351 case $host_os in
10352 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10353 *) lt_sed_strip_eq="s,=/,/,g" ;;
10354 esac
10355 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10356 case $lt_search_path_spec in
10357 *\;*)
10358 # if the path contains ";" then we assume it to be the separator
10359 # otherwise default to the standard path separator (i.e. ":") - it is
10360 # assumed that no part of a normal pathname contains ";" but that should
10361 # okay in the real world where ";" in dirpaths is itself problematic.
10362 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10365 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10367 esac
10368 # Ok, now we have the path, separated by spaces, we can step through it
10369 # and add multilib dir if necessary.
10370 lt_tmp_lt_search_path_spec=
10371 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10372 for lt_sys_path in $lt_search_path_spec; do
10373 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10374 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10375 else
10376 test -d "$lt_sys_path" && \
10377 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10379 done
10380 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10381 BEGIN {RS=" "; FS="/|\n";} {
10382 lt_foo="";
10383 lt_count=0;
10384 for (lt_i = NF; lt_i > 0; lt_i--) {
10385 if ($lt_i != "" && $lt_i != ".") {
10386 if ($lt_i == "..") {
10387 lt_count++;
10388 } else {
10389 if (lt_count == 0) {
10390 lt_foo="/" $lt_i lt_foo;
10391 } else {
10392 lt_count--;
10397 if (lt_foo != "") { lt_freq[lt_foo]++; }
10398 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10400 # AWK program above erroneously prepends '/' to C:/dos/paths
10401 # for these hosts.
10402 case $host_os in
10403 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10404 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10405 esac
10406 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10407 else
10408 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10410 library_names_spec=
10411 libname_spec='lib$name'
10412 soname_spec=
10413 shrext_cmds=".so"
10414 postinstall_cmds=
10415 postuninstall_cmds=
10416 finish_cmds=
10417 finish_eval=
10418 shlibpath_var=
10419 shlibpath_overrides_runpath=unknown
10420 version_type=none
10421 dynamic_linker="$host_os ld.so"
10422 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10423 need_lib_prefix=unknown
10424 hardcode_into_libs=no
10426 # when you set need_version to no, make sure it does not cause -set_version
10427 # flags to be left without arguments
10428 need_version=unknown
10430 case $host_os in
10431 aix3*)
10432 version_type=linux
10433 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10434 shlibpath_var=LIBPATH
10436 # AIX 3 has no versioning support, so we append a major version to the name.
10437 soname_spec='${libname}${release}${shared_ext}$major'
10440 aix[4-9]*)
10441 version_type=linux
10442 need_lib_prefix=no
10443 need_version=no
10444 hardcode_into_libs=yes
10445 if test "$host_cpu" = ia64; then
10446 # AIX 5 supports IA64
10447 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10448 shlibpath_var=LD_LIBRARY_PATH
10449 else
10450 # With GCC up to 2.95.x, collect2 would create an import file
10451 # for dependence libraries. The import file would start with
10452 # the line `#! .'. This would cause the generated library to
10453 # depend on `.', always an invalid library. This was fixed in
10454 # development snapshots of GCC prior to 3.0.
10455 case $host_os in
10456 aix4 | aix4.[01] | aix4.[01].*)
10457 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10458 echo ' yes '
10459 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10461 else
10462 can_build_shared=no
10465 esac
10466 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10467 # soname into executable. Probably we can add versioning support to
10468 # collect2, so additional links can be useful in future.
10469 if test "$aix_use_runtimelinking" = yes; then
10470 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10471 # instead of lib<name>.a to let people know that these are not
10472 # typical AIX shared libraries.
10473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10474 else
10475 # We preserve .a as extension for shared libraries through AIX4.2
10476 # and later when we are not doing run time linking.
10477 library_names_spec='${libname}${release}.a $libname.a'
10478 soname_spec='${libname}${release}${shared_ext}$major'
10480 shlibpath_var=LIBPATH
10484 amigaos*)
10485 case $host_cpu in
10486 powerpc)
10487 # Since July 2007 AmigaOS4 officially supports .so libraries.
10488 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10491 m68k)
10492 library_names_spec='$libname.ixlibrary $libname.a'
10493 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10494 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'
10496 esac
10499 beos*)
10500 library_names_spec='${libname}${shared_ext}'
10501 dynamic_linker="$host_os ld.so"
10502 shlibpath_var=LIBRARY_PATH
10505 bsdi[45]*)
10506 version_type=linux
10507 need_version=no
10508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10509 soname_spec='${libname}${release}${shared_ext}$major'
10510 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10511 shlibpath_var=LD_LIBRARY_PATH
10512 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10513 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10514 # the default ld.so.conf also contains /usr/contrib/lib and
10515 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10516 # libtool to hard-code these into programs
10519 cygwin* | mingw* | pw32* | cegcc*)
10520 version_type=windows
10521 shrext_cmds=".dll"
10522 need_version=no
10523 need_lib_prefix=no
10525 case $GCC,$host_os in
10526 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10527 library_names_spec='$libname.dll.a'
10528 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10529 postinstall_cmds='base_file=`basename \${file}`~
10530 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10531 dldir=$destdir/`dirname \$dlpath`~
10532 test -d \$dldir || mkdir -p \$dldir~
10533 $install_prog $dir/$dlname \$dldir/$dlname~
10534 chmod a+x \$dldir/$dlname~
10535 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10536 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10538 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10539 dlpath=$dir/\$dldll~
10540 $RM \$dlpath'
10541 shlibpath_overrides_runpath=yes
10543 case $host_os in
10544 cygwin*)
10545 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10546 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10548 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10550 mingw* | cegcc*)
10551 # MinGW DLLs use traditional 'lib' prefix
10552 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10554 pw32*)
10555 # pw32 DLLs use 'pw' prefix rather than 'lib'
10556 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10558 esac
10562 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10564 esac
10565 dynamic_linker='Win32 ld.exe'
10566 # FIXME: first we should search . and the directory the executable is in
10567 shlibpath_var=PATH
10570 darwin* | rhapsody*)
10571 dynamic_linker="$host_os dyld"
10572 version_type=darwin
10573 need_lib_prefix=no
10574 need_version=no
10575 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10576 soname_spec='${libname}${release}${major}$shared_ext'
10577 shlibpath_overrides_runpath=yes
10578 shlibpath_var=DYLD_LIBRARY_PATH
10579 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10581 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10582 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10585 dgux*)
10586 version_type=linux
10587 need_lib_prefix=no
10588 need_version=no
10589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10590 soname_spec='${libname}${release}${shared_ext}$major'
10591 shlibpath_var=LD_LIBRARY_PATH
10594 freebsd* | dragonfly*)
10595 # DragonFly does not have aout. When/if they implement a new
10596 # versioning mechanism, adjust this.
10597 if test -x /usr/bin/objformat; then
10598 objformat=`/usr/bin/objformat`
10599 else
10600 case $host_os in
10601 freebsd[23].*) objformat=aout ;;
10602 *) objformat=elf ;;
10603 esac
10605 version_type=freebsd-$objformat
10606 case $version_type in
10607 freebsd-elf*)
10608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10609 need_version=no
10610 need_lib_prefix=no
10612 freebsd-*)
10613 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10614 need_version=yes
10616 esac
10617 shlibpath_var=LD_LIBRARY_PATH
10618 case $host_os in
10619 freebsd2.*)
10620 shlibpath_overrides_runpath=yes
10622 freebsd3.[01]* | freebsdelf3.[01]*)
10623 shlibpath_overrides_runpath=yes
10624 hardcode_into_libs=yes
10626 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10627 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10628 shlibpath_overrides_runpath=no
10629 hardcode_into_libs=yes
10631 *) # from 4.6 on, and DragonFly
10632 shlibpath_overrides_runpath=yes
10633 hardcode_into_libs=yes
10635 esac
10638 gnu*)
10639 version_type=linux
10640 need_lib_prefix=no
10641 need_version=no
10642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10643 soname_spec='${libname}${release}${shared_ext}$major'
10644 shlibpath_var=LD_LIBRARY_PATH
10645 hardcode_into_libs=yes
10648 haiku*)
10649 version_type=linux
10650 need_lib_prefix=no
10651 need_version=no
10652 dynamic_linker="$host_os runtime_loader"
10653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10654 soname_spec='${libname}${release}${shared_ext}$major'
10655 shlibpath_var=LIBRARY_PATH
10656 shlibpath_overrides_runpath=yes
10657 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10658 hardcode_into_libs=yes
10661 hpux9* | hpux10* | hpux11*)
10662 # Give a soname corresponding to the major version so that dld.sl refuses to
10663 # link against other versions.
10664 version_type=sunos
10665 need_lib_prefix=no
10666 need_version=no
10667 case $host_cpu in
10668 ia64*)
10669 shrext_cmds='.so'
10670 hardcode_into_libs=yes
10671 dynamic_linker="$host_os dld.so"
10672 shlibpath_var=LD_LIBRARY_PATH
10673 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10675 soname_spec='${libname}${release}${shared_ext}$major'
10676 if test "X$HPUX_IA64_MODE" = X32; then
10677 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10678 else
10679 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10681 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10683 hppa*64*)
10684 shrext_cmds='.sl'
10685 hardcode_into_libs=yes
10686 dynamic_linker="$host_os dld.sl"
10687 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10688 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10690 soname_spec='${libname}${release}${shared_ext}$major'
10691 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10692 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10695 shrext_cmds='.sl'
10696 dynamic_linker="$host_os dld.sl"
10697 shlibpath_var=SHLIB_PATH
10698 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10700 soname_spec='${libname}${release}${shared_ext}$major'
10702 esac
10703 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10704 postinstall_cmds='chmod 555 $lib'
10705 # or fails outright, so override atomically:
10706 install_override_mode=555
10709 interix[3-9]*)
10710 version_type=linux
10711 need_lib_prefix=no
10712 need_version=no
10713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10714 soname_spec='${libname}${release}${shared_ext}$major'
10715 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10716 shlibpath_var=LD_LIBRARY_PATH
10717 shlibpath_overrides_runpath=no
10718 hardcode_into_libs=yes
10721 irix5* | irix6* | nonstopux*)
10722 case $host_os in
10723 nonstopux*) version_type=nonstopux ;;
10725 if test "$lt_cv_prog_gnu_ld" = yes; then
10726 version_type=linux
10727 else
10728 version_type=irix
10729 fi ;;
10730 esac
10731 need_lib_prefix=no
10732 need_version=no
10733 soname_spec='${libname}${release}${shared_ext}$major'
10734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10735 case $host_os in
10736 irix5* | nonstopux*)
10737 libsuff= shlibsuff=
10740 case $LD in # libtool.m4 will add one of these switches to LD
10741 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10742 libsuff= shlibsuff= libmagic=32-bit;;
10743 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10744 libsuff=32 shlibsuff=N32 libmagic=N32;;
10745 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10746 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10747 *) libsuff= shlibsuff= libmagic=never-match;;
10748 esac
10750 esac
10751 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10752 shlibpath_overrides_runpath=no
10753 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10754 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10755 hardcode_into_libs=yes
10758 # No shared lib support for Linux oldld, aout, or coff.
10759 linux*oldld* | linux*aout* | linux*coff*)
10760 dynamic_linker=no
10763 # This must be Linux ELF.
10764 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10765 version_type=linux
10766 need_lib_prefix=no
10767 need_version=no
10768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10769 soname_spec='${libname}${release}${shared_ext}$major'
10770 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10771 shlibpath_var=LD_LIBRARY_PATH
10772 shlibpath_overrides_runpath=no
10774 # Some binutils ld are patched to set DT_RUNPATH
10775 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10776 $as_echo_n "(cached) " >&6
10777 else
10778 lt_cv_shlibpath_overrides_runpath=no
10779 save_LDFLAGS=$LDFLAGS
10780 save_libdir=$libdir
10781 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10782 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10784 /* end confdefs.h. */
10787 main ()
10791 return 0;
10793 _ACEOF
10794 if ac_fn_c_try_link "$LINENO"; then :
10795 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10796 lt_cv_shlibpath_overrides_runpath=yes
10799 rm -f core conftest.err conftest.$ac_objext \
10800 conftest$ac_exeext conftest.$ac_ext
10801 LDFLAGS=$save_LDFLAGS
10802 libdir=$save_libdir
10806 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10808 # This implies no fast_install, which is unacceptable.
10809 # Some rework will be needed to allow for fast_install
10810 # before this can be enabled.
10811 hardcode_into_libs=yes
10813 # Append ld.so.conf contents to the search path
10814 if test -f /etc/ld.so.conf; then
10815 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' ' '`
10816 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10819 # We used to test for /lib/ld.so.1 and disable shared libraries on
10820 # powerpc, because MkLinux only supported shared libraries with the
10821 # GNU dynamic linker. Since this was broken with cross compilers,
10822 # most powerpc-linux boxes support dynamic linking these days and
10823 # people can always --disable-shared, the test was removed, and we
10824 # assume the GNU/Linux dynamic linker is in use.
10825 dynamic_linker='GNU/Linux ld.so'
10828 netbsd*)
10829 version_type=sunos
10830 need_lib_prefix=no
10831 need_version=no
10832 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10834 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10835 dynamic_linker='NetBSD (a.out) ld.so'
10836 else
10837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10838 soname_spec='${libname}${release}${shared_ext}$major'
10839 dynamic_linker='NetBSD ld.elf_so'
10841 shlibpath_var=LD_LIBRARY_PATH
10842 shlibpath_overrides_runpath=yes
10843 hardcode_into_libs=yes
10846 newsos6)
10847 version_type=linux
10848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10849 shlibpath_var=LD_LIBRARY_PATH
10850 shlibpath_overrides_runpath=yes
10853 *nto* | *qnx*)
10854 version_type=qnx
10855 need_lib_prefix=no
10856 need_version=no
10857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10858 soname_spec='${libname}${release}${shared_ext}$major'
10859 shlibpath_var=LD_LIBRARY_PATH
10860 shlibpath_overrides_runpath=no
10861 hardcode_into_libs=yes
10862 dynamic_linker='ldqnx.so'
10865 openbsd*)
10866 version_type=sunos
10867 sys_lib_dlsearch_path_spec="/usr/lib"
10868 need_lib_prefix=no
10869 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10870 case $host_os in
10871 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10872 *) need_version=no ;;
10873 esac
10874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10875 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10876 shlibpath_var=LD_LIBRARY_PATH
10877 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10878 case $host_os in
10879 openbsd2.[89] | openbsd2.[89].*)
10880 shlibpath_overrides_runpath=no
10883 shlibpath_overrides_runpath=yes
10885 esac
10886 else
10887 shlibpath_overrides_runpath=yes
10891 os2*)
10892 libname_spec='$name'
10893 shrext_cmds=".dll"
10894 need_lib_prefix=no
10895 library_names_spec='$libname${shared_ext} $libname.a'
10896 dynamic_linker='OS/2 ld.exe'
10897 shlibpath_var=LIBPATH
10900 osf3* | osf4* | osf5*)
10901 version_type=osf
10902 need_lib_prefix=no
10903 need_version=no
10904 soname_spec='${libname}${release}${shared_ext}$major'
10905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10906 shlibpath_var=LD_LIBRARY_PATH
10907 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10908 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10911 rdos*)
10912 dynamic_linker=no
10915 solaris*)
10916 version_type=linux
10917 need_lib_prefix=no
10918 need_version=no
10919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10920 soname_spec='${libname}${release}${shared_ext}$major'
10921 shlibpath_var=LD_LIBRARY_PATH
10922 shlibpath_overrides_runpath=yes
10923 hardcode_into_libs=yes
10924 # ldd complains unless libraries are executable
10925 postinstall_cmds='chmod +x $lib'
10928 sunos4*)
10929 version_type=sunos
10930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10931 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10932 shlibpath_var=LD_LIBRARY_PATH
10933 shlibpath_overrides_runpath=yes
10934 if test "$with_gnu_ld" = yes; then
10935 need_lib_prefix=no
10937 need_version=yes
10940 sysv4 | sysv4.3*)
10941 version_type=linux
10942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10943 soname_spec='${libname}${release}${shared_ext}$major'
10944 shlibpath_var=LD_LIBRARY_PATH
10945 case $host_vendor in
10946 sni)
10947 shlibpath_overrides_runpath=no
10948 need_lib_prefix=no
10949 runpath_var=LD_RUN_PATH
10951 siemens)
10952 need_lib_prefix=no
10954 motorola)
10955 need_lib_prefix=no
10956 need_version=no
10957 shlibpath_overrides_runpath=no
10958 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10960 esac
10963 sysv4*MP*)
10964 if test -d /usr/nec ;then
10965 version_type=linux
10966 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10967 soname_spec='$libname${shared_ext}.$major'
10968 shlibpath_var=LD_LIBRARY_PATH
10972 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10973 version_type=freebsd-elf
10974 need_lib_prefix=no
10975 need_version=no
10976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10977 soname_spec='${libname}${release}${shared_ext}$major'
10978 shlibpath_var=LD_LIBRARY_PATH
10979 shlibpath_overrides_runpath=yes
10980 hardcode_into_libs=yes
10981 if test "$with_gnu_ld" = yes; then
10982 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10983 else
10984 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10985 case $host_os in
10986 sco3.2v5*)
10987 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10989 esac
10991 sys_lib_dlsearch_path_spec='/usr/lib'
10994 tpf*)
10995 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10996 version_type=linux
10997 need_lib_prefix=no
10998 need_version=no
10999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11000 shlibpath_var=LD_LIBRARY_PATH
11001 shlibpath_overrides_runpath=no
11002 hardcode_into_libs=yes
11005 uts4*)
11006 version_type=linux
11007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11008 soname_spec='${libname}${release}${shared_ext}$major'
11009 shlibpath_var=LD_LIBRARY_PATH
11013 dynamic_linker=no
11015 esac
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11017 $as_echo "$dynamic_linker" >&6; }
11018 test "$dynamic_linker" = no && can_build_shared=no
11020 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11021 if test "$GCC" = yes; then
11022 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11025 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11026 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11028 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11029 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11124 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11125 hardcode_action=
11126 if test -n "$hardcode_libdir_flag_spec" ||
11127 test -n "$runpath_var" ||
11128 test "X$hardcode_automatic" = "Xyes" ; then
11130 # We can hardcode non-existent directories.
11131 if test "$hardcode_direct" != no &&
11132 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11133 # have to relink, otherwise we might link with an installed library
11134 # when we should be linking with a yet-to-be-installed one
11135 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11136 test "$hardcode_minus_L" != no; then
11137 # Linking always hardcodes the temporary library directory.
11138 hardcode_action=relink
11139 else
11140 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11141 hardcode_action=immediate
11143 else
11144 # We cannot hardcode anything, or else we can only hardcode existing
11145 # directories.
11146 hardcode_action=unsupported
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11149 $as_echo "$hardcode_action" >&6; }
11151 if test "$hardcode_action" = relink ||
11152 test "$inherit_rpath" = yes; then
11153 # Fast installation is not supported
11154 enable_fast_install=no
11155 elif test "$shlibpath_overrides_runpath" = yes ||
11156 test "$enable_shared" = no; then
11157 # Fast installation is not necessary
11158 enable_fast_install=needless
11166 if test "x$enable_dlopen" != xyes; then
11167 enable_dlopen=unknown
11168 enable_dlopen_self=unknown
11169 enable_dlopen_self_static=unknown
11170 else
11171 lt_cv_dlopen=no
11172 lt_cv_dlopen_libs=
11174 case $host_os in
11175 beos*)
11176 lt_cv_dlopen="load_add_on"
11177 lt_cv_dlopen_libs=
11178 lt_cv_dlopen_self=yes
11181 mingw* | pw32* | cegcc*)
11182 lt_cv_dlopen="LoadLibrary"
11183 lt_cv_dlopen_libs=
11186 cygwin*)
11187 lt_cv_dlopen="dlopen"
11188 lt_cv_dlopen_libs=
11191 darwin*)
11192 # if libdl is installed we need to link against it
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11194 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11195 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11196 $as_echo_n "(cached) " >&6
11197 else
11198 ac_check_lib_save_LIBS=$LIBS
11199 LIBS="-ldl $LIBS"
11200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11201 /* end confdefs.h. */
11203 /* Override any GCC internal prototype to avoid an error.
11204 Use char because int might match the return type of a GCC
11205 builtin and then its argument prototype would still apply. */
11206 #ifdef __cplusplus
11207 extern "C"
11208 #endif
11209 char dlopen ();
11211 main ()
11213 return dlopen ();
11215 return 0;
11217 _ACEOF
11218 if ac_fn_c_try_link "$LINENO"; then :
11219 ac_cv_lib_dl_dlopen=yes
11220 else
11221 ac_cv_lib_dl_dlopen=no
11223 rm -f core conftest.err conftest.$ac_objext \
11224 conftest$ac_exeext conftest.$ac_ext
11225 LIBS=$ac_check_lib_save_LIBS
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11228 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11229 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11230 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11231 else
11233 lt_cv_dlopen="dyld"
11234 lt_cv_dlopen_libs=
11235 lt_cv_dlopen_self=yes
11242 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11243 if test "x$ac_cv_func_shl_load" = x""yes; then :
11244 lt_cv_dlopen="shl_load"
11245 else
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11247 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11248 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11249 $as_echo_n "(cached) " >&6
11250 else
11251 ac_check_lib_save_LIBS=$LIBS
11252 LIBS="-ldld $LIBS"
11253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11254 /* end confdefs.h. */
11256 /* Override any GCC internal prototype to avoid an error.
11257 Use char because int might match the return type of a GCC
11258 builtin and then its argument prototype would still apply. */
11259 #ifdef __cplusplus
11260 extern "C"
11261 #endif
11262 char shl_load ();
11264 main ()
11266 return shl_load ();
11268 return 0;
11270 _ACEOF
11271 if ac_fn_c_try_link "$LINENO"; then :
11272 ac_cv_lib_dld_shl_load=yes
11273 else
11274 ac_cv_lib_dld_shl_load=no
11276 rm -f core conftest.err conftest.$ac_objext \
11277 conftest$ac_exeext conftest.$ac_ext
11278 LIBS=$ac_check_lib_save_LIBS
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11281 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11282 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11283 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11284 else
11285 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11286 if test "x$ac_cv_func_dlopen" = x""yes; then :
11287 lt_cv_dlopen="dlopen"
11288 else
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11290 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11291 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11292 $as_echo_n "(cached) " >&6
11293 else
11294 ac_check_lib_save_LIBS=$LIBS
11295 LIBS="-ldl $LIBS"
11296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11297 /* end confdefs.h. */
11299 /* Override any GCC internal prototype to avoid an error.
11300 Use char because int might match the return type of a GCC
11301 builtin and then its argument prototype would still apply. */
11302 #ifdef __cplusplus
11303 extern "C"
11304 #endif
11305 char dlopen ();
11307 main ()
11309 return dlopen ();
11311 return 0;
11313 _ACEOF
11314 if ac_fn_c_try_link "$LINENO"; then :
11315 ac_cv_lib_dl_dlopen=yes
11316 else
11317 ac_cv_lib_dl_dlopen=no
11319 rm -f core conftest.err conftest.$ac_objext \
11320 conftest$ac_exeext conftest.$ac_ext
11321 LIBS=$ac_check_lib_save_LIBS
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11324 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11325 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11326 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11327 else
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11329 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11330 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11331 $as_echo_n "(cached) " >&6
11332 else
11333 ac_check_lib_save_LIBS=$LIBS
11334 LIBS="-lsvld $LIBS"
11335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11336 /* end confdefs.h. */
11338 /* Override any GCC internal prototype to avoid an error.
11339 Use char because int might match the return type of a GCC
11340 builtin and then its argument prototype would still apply. */
11341 #ifdef __cplusplus
11342 extern "C"
11343 #endif
11344 char dlopen ();
11346 main ()
11348 return dlopen ();
11350 return 0;
11352 _ACEOF
11353 if ac_fn_c_try_link "$LINENO"; then :
11354 ac_cv_lib_svld_dlopen=yes
11355 else
11356 ac_cv_lib_svld_dlopen=no
11358 rm -f core conftest.err conftest.$ac_objext \
11359 conftest$ac_exeext conftest.$ac_ext
11360 LIBS=$ac_check_lib_save_LIBS
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11363 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11364 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11365 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11366 else
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11368 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11369 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11370 $as_echo_n "(cached) " >&6
11371 else
11372 ac_check_lib_save_LIBS=$LIBS
11373 LIBS="-ldld $LIBS"
11374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11375 /* end confdefs.h. */
11377 /* Override any GCC internal prototype to avoid an error.
11378 Use char because int might match the return type of a GCC
11379 builtin and then its argument prototype would still apply. */
11380 #ifdef __cplusplus
11381 extern "C"
11382 #endif
11383 char dld_link ();
11385 main ()
11387 return dld_link ();
11389 return 0;
11391 _ACEOF
11392 if ac_fn_c_try_link "$LINENO"; then :
11393 ac_cv_lib_dld_dld_link=yes
11394 else
11395 ac_cv_lib_dld_dld_link=no
11397 rm -f core conftest.err conftest.$ac_objext \
11398 conftest$ac_exeext conftest.$ac_ext
11399 LIBS=$ac_check_lib_save_LIBS
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11402 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11403 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11404 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11423 esac
11425 if test "x$lt_cv_dlopen" != xno; then
11426 enable_dlopen=yes
11427 else
11428 enable_dlopen=no
11431 case $lt_cv_dlopen in
11432 dlopen)
11433 save_CPPFLAGS="$CPPFLAGS"
11434 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11436 save_LDFLAGS="$LDFLAGS"
11437 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11439 save_LIBS="$LIBS"
11440 LIBS="$lt_cv_dlopen_libs $LIBS"
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11443 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11444 if test "${lt_cv_dlopen_self+set}" = set; then :
11445 $as_echo_n "(cached) " >&6
11446 else
11447 if test "$cross_compiling" = yes; then :
11448 lt_cv_dlopen_self=cross
11449 else
11450 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11451 lt_status=$lt_dlunknown
11452 cat > conftest.$ac_ext <<_LT_EOF
11453 #line 11453 "configure"
11454 #include "confdefs.h"
11456 #if HAVE_DLFCN_H
11457 #include <dlfcn.h>
11458 #endif
11460 #include <stdio.h>
11462 #ifdef RTLD_GLOBAL
11463 # define LT_DLGLOBAL RTLD_GLOBAL
11464 #else
11465 # ifdef DL_GLOBAL
11466 # define LT_DLGLOBAL DL_GLOBAL
11467 # else
11468 # define LT_DLGLOBAL 0
11469 # endif
11470 #endif
11472 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11473 find out it does not work in some platform. */
11474 #ifndef LT_DLLAZY_OR_NOW
11475 # ifdef RTLD_LAZY
11476 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11477 # else
11478 # ifdef DL_LAZY
11479 # define LT_DLLAZY_OR_NOW DL_LAZY
11480 # else
11481 # ifdef RTLD_NOW
11482 # define LT_DLLAZY_OR_NOW RTLD_NOW
11483 # else
11484 # ifdef DL_NOW
11485 # define LT_DLLAZY_OR_NOW DL_NOW
11486 # else
11487 # define LT_DLLAZY_OR_NOW 0
11488 # endif
11489 # endif
11490 # endif
11491 # endif
11492 #endif
11494 /* When -fvisbility=hidden is used, assume the code has been annotated
11495 correspondingly for the symbols needed. */
11496 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11497 void fnord () __attribute__((visibility("default")));
11498 #endif
11500 void fnord () { int i=42; }
11501 int main ()
11503 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11504 int status = $lt_dlunknown;
11506 if (self)
11508 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11509 else
11511 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11512 else puts (dlerror ());
11514 /* dlclose (self); */
11516 else
11517 puts (dlerror ());
11519 return status;
11521 _LT_EOF
11522 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11523 (eval $ac_link) 2>&5
11524 ac_status=$?
11525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11526 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11527 (./conftest; exit; ) >&5 2>/dev/null
11528 lt_status=$?
11529 case x$lt_status in
11530 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11531 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11532 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11533 esac
11534 else :
11535 # compilation failed
11536 lt_cv_dlopen_self=no
11539 rm -fr conftest*
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11544 $as_echo "$lt_cv_dlopen_self" >&6; }
11546 if test "x$lt_cv_dlopen_self" = xyes; then
11547 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11549 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11550 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11551 $as_echo_n "(cached) " >&6
11552 else
11553 if test "$cross_compiling" = yes; then :
11554 lt_cv_dlopen_self_static=cross
11555 else
11556 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11557 lt_status=$lt_dlunknown
11558 cat > conftest.$ac_ext <<_LT_EOF
11559 #line 11559 "configure"
11560 #include "confdefs.h"
11562 #if HAVE_DLFCN_H
11563 #include <dlfcn.h>
11564 #endif
11566 #include <stdio.h>
11568 #ifdef RTLD_GLOBAL
11569 # define LT_DLGLOBAL RTLD_GLOBAL
11570 #else
11571 # ifdef DL_GLOBAL
11572 # define LT_DLGLOBAL DL_GLOBAL
11573 # else
11574 # define LT_DLGLOBAL 0
11575 # endif
11576 #endif
11578 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11579 find out it does not work in some platform. */
11580 #ifndef LT_DLLAZY_OR_NOW
11581 # ifdef RTLD_LAZY
11582 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11583 # else
11584 # ifdef DL_LAZY
11585 # define LT_DLLAZY_OR_NOW DL_LAZY
11586 # else
11587 # ifdef RTLD_NOW
11588 # define LT_DLLAZY_OR_NOW RTLD_NOW
11589 # else
11590 # ifdef DL_NOW
11591 # define LT_DLLAZY_OR_NOW DL_NOW
11592 # else
11593 # define LT_DLLAZY_OR_NOW 0
11594 # endif
11595 # endif
11596 # endif
11597 # endif
11598 #endif
11600 /* When -fvisbility=hidden is used, assume the code has been annotated
11601 correspondingly for the symbols needed. */
11602 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11603 void fnord () __attribute__((visibility("default")));
11604 #endif
11606 void fnord () { int i=42; }
11607 int main ()
11609 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11610 int status = $lt_dlunknown;
11612 if (self)
11614 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11615 else
11617 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11618 else puts (dlerror ());
11620 /* dlclose (self); */
11622 else
11623 puts (dlerror ());
11625 return status;
11627 _LT_EOF
11628 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11629 (eval $ac_link) 2>&5
11630 ac_status=$?
11631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11632 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11633 (./conftest; exit; ) >&5 2>/dev/null
11634 lt_status=$?
11635 case x$lt_status in
11636 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11637 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11638 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11639 esac
11640 else :
11641 # compilation failed
11642 lt_cv_dlopen_self_static=no
11645 rm -fr conftest*
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11650 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11653 CPPFLAGS="$save_CPPFLAGS"
11654 LDFLAGS="$save_LDFLAGS"
11655 LIBS="$save_LIBS"
11657 esac
11659 case $lt_cv_dlopen_self in
11660 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11661 *) enable_dlopen_self=unknown ;;
11662 esac
11664 case $lt_cv_dlopen_self_static in
11665 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11666 *) enable_dlopen_self_static=unknown ;;
11667 esac
11686 striplib=
11687 old_striplib=
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11689 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11690 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11691 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11692 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11694 $as_echo "yes" >&6; }
11695 else
11696 # FIXME - insert some real tests, host_os isn't really good enough
11697 case $host_os in
11698 darwin*)
11699 if test -n "$STRIP" ; then
11700 striplib="$STRIP -x"
11701 old_striplib="$STRIP -S"
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11703 $as_echo "yes" >&6; }
11704 else
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11706 $as_echo "no" >&6; }
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11711 $as_echo "no" >&6; }
11713 esac
11727 # Report which library types will actually be built
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11729 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11731 $as_echo "$can_build_shared" >&6; }
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11734 $as_echo_n "checking whether to build shared libraries... " >&6; }
11735 test "$can_build_shared" = "no" && enable_shared=no
11737 # On AIX, shared libraries and static libraries use the same namespace, and
11738 # are all built from PIC.
11739 case $host_os in
11740 aix3*)
11741 test "$enable_shared" = yes && enable_static=no
11742 if test -n "$RANLIB"; then
11743 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11744 postinstall_cmds='$RANLIB $lib'
11748 aix[4-9]*)
11749 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11750 test "$enable_shared" = yes && enable_static=no
11753 esac
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11755 $as_echo "$enable_shared" >&6; }
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11758 $as_echo_n "checking whether to build static libraries... " >&6; }
11759 # Make sure either enable_shared or enable_static is yes.
11760 test "$enable_shared" = yes || enable_static=yes
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11762 $as_echo "$enable_static" >&6; }
11768 ac_ext=c
11769 ac_cpp='$CPP $CPPFLAGS'
11770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11774 CC="$lt_save_CC"
11788 ac_config_commands="$ac_config_commands libtool"
11793 # Only expand once:
11799 case $host in
11800 *-cygwin* | *-mingw*)
11801 # 'host' will be top-level target in the case of a target lib,
11802 # we must compare to with_cross_host to decide if this is a native
11803 # or cross-compiler and select where to install dlls appropriately.
11804 if test -n "$with_cross_host" &&
11805 test x"$with_cross_host" != x"no"; then
11806 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
11807 else
11808 lt_host_flags='-no-undefined -bindir "$(bindir)"';
11812 lt_host_flags=
11814 esac
11819 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
11820 case $ac_cv_c_int64_t in #(
11821 no|yes) ;; #(
11824 cat >>confdefs.h <<_ACEOF
11825 #define int64_t $ac_cv_c_int64_t
11826 _ACEOF
11828 esac
11830 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
11831 case $ac_cv_c_uint64_t in #(
11832 no|yes) ;; #(
11835 $as_echo "#define _UINT64_T 1" >>confdefs.h
11838 cat >>confdefs.h <<_ACEOF
11839 #define uint64_t $ac_cv_c_uint64_t
11840 _ACEOF
11842 esac
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
11845 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
11846 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
11847 $as_echo_n "(cached) " >&6
11848 else
11849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11850 /* end confdefs.h. */
11851 #include <sys/types.h>
11852 #include <sys/wait.h>
11853 #ifndef WEXITSTATUS
11854 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11855 #endif
11856 #ifndef WIFEXITED
11857 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11858 #endif
11861 main ()
11863 int s;
11864 wait (&s);
11865 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11867 return 0;
11869 _ACEOF
11870 if ac_fn_c_try_compile "$LINENO"; then :
11871 ac_cv_header_sys_wait_h=yes
11872 else
11873 ac_cv_header_sys_wait_h=no
11875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
11878 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
11879 if test $ac_cv_header_sys_wait_h = yes; then
11881 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
11885 ac_config_files="$ac_config_files Makefile"
11887 ac_config_headers="$ac_config_headers config.h"
11889 cat >confcache <<\_ACEOF
11890 # This file is a shell script that caches the results of configure
11891 # tests run on this system so they can be shared between configure
11892 # scripts and configure runs, see configure's option --config-cache.
11893 # It is not useful on other systems. If it contains results you don't
11894 # want to keep, you may remove or edit it.
11896 # config.status only pays attention to the cache file if you give it
11897 # the --recheck option to rerun configure.
11899 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11900 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11901 # following values.
11903 _ACEOF
11905 # The following way of writing the cache mishandles newlines in values,
11906 # but we know of no workaround that is simple, portable, and efficient.
11907 # So, we kill variables containing newlines.
11908 # Ultrix sh set writes to stderr and can't be redirected directly,
11909 # and sets the high bit in the cache file unless we assign to the vars.
11911 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11912 eval ac_val=\$$ac_var
11913 case $ac_val in #(
11914 *${as_nl}*)
11915 case $ac_var in #(
11916 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11917 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11918 esac
11919 case $ac_var in #(
11920 _ | IFS | as_nl) ;; #(
11921 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11922 *) { eval $ac_var=; unset $ac_var;} ;;
11923 esac ;;
11924 esac
11925 done
11927 (set) 2>&1 |
11928 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11929 *${as_nl}ac_space=\ *)
11930 # `set' does not quote correctly, so add quotes: double-quote
11931 # substitution turns \\\\ into \\, and sed turns \\ into \.
11932 sed -n \
11933 "s/'/'\\\\''/g;
11934 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11935 ;; #(
11937 # `set' quotes correctly as required by POSIX, so do not add quotes.
11938 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11940 esac |
11941 sort
11943 sed '
11944 /^ac_cv_env_/b end
11945 t clear
11946 :clear
11947 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11948 t end
11949 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11950 :end' >>confcache
11951 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11952 if test -w "$cache_file"; then
11953 test "x$cache_file" != "x/dev/null" &&
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11955 $as_echo "$as_me: updating cache $cache_file" >&6;}
11956 cat confcache >$cache_file
11957 else
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11959 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11962 rm -f confcache
11964 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11965 # Let make expand exec_prefix.
11966 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11968 DEFS=-DHAVE_CONFIG_H
11970 ac_libobjs=
11971 ac_ltlibobjs=
11972 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11973 # 1. Remove the extension, and $U if already installed.
11974 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11975 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11976 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11977 # will be set to the directory where LIBOBJS objects are built.
11978 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11979 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11980 done
11981 LIBOBJS=$ac_libobjs
11983 LTLIBOBJS=$ac_ltlibobjs
11986 if test -n "$EXEEXT"; then
11987 am__EXEEXT_TRUE=
11988 am__EXEEXT_FALSE='#'
11989 else
11990 am__EXEEXT_TRUE='#'
11991 am__EXEEXT_FALSE=
11994 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11995 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
11996 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11998 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11999 as_fn_error "conditional \"AMDEP\" was never defined.
12000 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12002 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12003 as_fn_error "conditional \"am__fastdepCC\" was never defined.
12004 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12006 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12007 as_fn_error "conditional \"am__fastdepCC\" was never defined.
12008 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12011 : ${CONFIG_STATUS=./config.status}
12012 ac_write_fail=0
12013 ac_clean_files_save=$ac_clean_files
12014 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12016 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12017 as_write_fail=0
12018 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12019 #! $SHELL
12020 # Generated by $as_me.
12021 # Run this file to recreate the current configuration.
12022 # Compiler output produced by configure, useful for debugging
12023 # configure, is in config.log if it exists.
12025 debug=false
12026 ac_cs_recheck=false
12027 ac_cs_silent=false
12029 SHELL=\${CONFIG_SHELL-$SHELL}
12030 export SHELL
12031 _ASEOF
12032 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12033 ## -------------------- ##
12034 ## M4sh Initialization. ##
12035 ## -------------------- ##
12037 # Be more Bourne compatible
12038 DUALCASE=1; export DUALCASE # for MKS sh
12039 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12040 emulate sh
12041 NULLCMD=:
12042 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12043 # is contrary to our usage. Disable this feature.
12044 alias -g '${1+"$@"}'='"$@"'
12045 setopt NO_GLOB_SUBST
12046 else
12047 case `(set -o) 2>/dev/null` in #(
12048 *posix*) :
12049 set -o posix ;; #(
12050 *) :
12052 esac
12056 as_nl='
12058 export as_nl
12059 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12060 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12061 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12062 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12063 # Prefer a ksh shell builtin over an external printf program on Solaris,
12064 # but without wasting forks for bash or zsh.
12065 if test -z "$BASH_VERSION$ZSH_VERSION" \
12066 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12067 as_echo='print -r --'
12068 as_echo_n='print -rn --'
12069 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12070 as_echo='printf %s\n'
12071 as_echo_n='printf %s'
12072 else
12073 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12074 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12075 as_echo_n='/usr/ucb/echo -n'
12076 else
12077 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12078 as_echo_n_body='eval
12079 arg=$1;
12080 case $arg in #(
12081 *"$as_nl"*)
12082 expr "X$arg" : "X\\(.*\\)$as_nl";
12083 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12084 esac;
12085 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12087 export as_echo_n_body
12088 as_echo_n='sh -c $as_echo_n_body as_echo'
12090 export as_echo_body
12091 as_echo='sh -c $as_echo_body as_echo'
12094 # The user is always right.
12095 if test "${PATH_SEPARATOR+set}" != set; then
12096 PATH_SEPARATOR=:
12097 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12098 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12099 PATH_SEPARATOR=';'
12104 # IFS
12105 # We need space, tab and new line, in precisely that order. Quoting is
12106 # there to prevent editors from complaining about space-tab.
12107 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12108 # splitting by setting IFS to empty value.)
12109 IFS=" "" $as_nl"
12111 # Find who we are. Look in the path if we contain no directory separator.
12112 case $0 in #((
12113 *[\\/]* ) as_myself=$0 ;;
12114 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12115 for as_dir in $PATH
12117 IFS=$as_save_IFS
12118 test -z "$as_dir" && as_dir=.
12119 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12120 done
12121 IFS=$as_save_IFS
12124 esac
12125 # We did not find ourselves, most probably we were run as `sh COMMAND'
12126 # in which case we are not to be found in the path.
12127 if test "x$as_myself" = x; then
12128 as_myself=$0
12130 if test ! -f "$as_myself"; then
12131 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12132 exit 1
12135 # Unset variables that we do not need and which cause bugs (e.g. in
12136 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12137 # suppresses any "Segmentation fault" message there. '((' could
12138 # trigger a bug in pdksh 5.2.14.
12139 for as_var in BASH_ENV ENV MAIL MAILPATH
12140 do eval test x\${$as_var+set} = xset \
12141 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12142 done
12143 PS1='$ '
12144 PS2='> '
12145 PS4='+ '
12147 # NLS nuisances.
12148 LC_ALL=C
12149 export LC_ALL
12150 LANGUAGE=C
12151 export LANGUAGE
12153 # CDPATH.
12154 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12157 # as_fn_error ERROR [LINENO LOG_FD]
12158 # ---------------------------------
12159 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12160 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12161 # script with status $?, using 1 if that was 0.
12162 as_fn_error ()
12164 as_status=$?; test $as_status -eq 0 && as_status=1
12165 if test "$3"; then
12166 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12167 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
12169 $as_echo "$as_me: error: $1" >&2
12170 as_fn_exit $as_status
12171 } # as_fn_error
12174 # as_fn_set_status STATUS
12175 # -----------------------
12176 # Set $? to STATUS, without forking.
12177 as_fn_set_status ()
12179 return $1
12180 } # as_fn_set_status
12182 # as_fn_exit STATUS
12183 # -----------------
12184 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12185 as_fn_exit ()
12187 set +e
12188 as_fn_set_status $1
12189 exit $1
12190 } # as_fn_exit
12192 # as_fn_unset VAR
12193 # ---------------
12194 # Portably unset VAR.
12195 as_fn_unset ()
12197 { eval $1=; unset $1;}
12199 as_unset=as_fn_unset
12200 # as_fn_append VAR VALUE
12201 # ----------------------
12202 # Append the text in VALUE to the end of the definition contained in VAR. Take
12203 # advantage of any shell optimizations that allow amortized linear growth over
12204 # repeated appends, instead of the typical quadratic growth present in naive
12205 # implementations.
12206 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12207 eval 'as_fn_append ()
12209 eval $1+=\$2
12211 else
12212 as_fn_append ()
12214 eval $1=\$$1\$2
12216 fi # as_fn_append
12218 # as_fn_arith ARG...
12219 # ------------------
12220 # Perform arithmetic evaluation on the ARGs, and store the result in the
12221 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12222 # must be portable across $(()) and expr.
12223 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12224 eval 'as_fn_arith ()
12226 as_val=$(( $* ))
12228 else
12229 as_fn_arith ()
12231 as_val=`expr "$@" || test $? -eq 1`
12233 fi # as_fn_arith
12236 if expr a : '\(a\)' >/dev/null 2>&1 &&
12237 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12238 as_expr=expr
12239 else
12240 as_expr=false
12243 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12244 as_basename=basename
12245 else
12246 as_basename=false
12249 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12250 as_dirname=dirname
12251 else
12252 as_dirname=false
12255 as_me=`$as_basename -- "$0" ||
12256 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12257 X"$0" : 'X\(//\)$' \| \
12258 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12259 $as_echo X/"$0" |
12260 sed '/^.*\/\([^/][^/]*\)\/*$/{
12261 s//\1/
12264 /^X\/\(\/\/\)$/{
12265 s//\1/
12268 /^X\/\(\/\).*/{
12269 s//\1/
12272 s/.*/./; q'`
12274 # Avoid depending upon Character Ranges.
12275 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12276 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12277 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12278 as_cr_digits='0123456789'
12279 as_cr_alnum=$as_cr_Letters$as_cr_digits
12281 ECHO_C= ECHO_N= ECHO_T=
12282 case `echo -n x` in #(((((
12283 -n*)
12284 case `echo 'xy\c'` in
12285 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12286 xy) ECHO_C='\c';;
12287 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12288 ECHO_T=' ';;
12289 esac;;
12291 ECHO_N='-n';;
12292 esac
12294 rm -f conf$$ conf$$.exe conf$$.file
12295 if test -d conf$$.dir; then
12296 rm -f conf$$.dir/conf$$.file
12297 else
12298 rm -f conf$$.dir
12299 mkdir conf$$.dir 2>/dev/null
12301 if (echo >conf$$.file) 2>/dev/null; then
12302 if ln -s conf$$.file conf$$ 2>/dev/null; then
12303 as_ln_s='ln -s'
12304 # ... but there are two gotchas:
12305 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12306 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12307 # In both cases, we have to default to `cp -p'.
12308 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12309 as_ln_s='cp -p'
12310 elif ln conf$$.file conf$$ 2>/dev/null; then
12311 as_ln_s=ln
12312 else
12313 as_ln_s='cp -p'
12315 else
12316 as_ln_s='cp -p'
12318 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12319 rmdir conf$$.dir 2>/dev/null
12322 # as_fn_mkdir_p
12323 # -------------
12324 # Create "$as_dir" as a directory, including parents if necessary.
12325 as_fn_mkdir_p ()
12328 case $as_dir in #(
12329 -*) as_dir=./$as_dir;;
12330 esac
12331 test -d "$as_dir" || eval $as_mkdir_p || {
12332 as_dirs=
12333 while :; do
12334 case $as_dir in #(
12335 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12336 *) as_qdir=$as_dir;;
12337 esac
12338 as_dirs="'$as_qdir' $as_dirs"
12339 as_dir=`$as_dirname -- "$as_dir" ||
12340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12341 X"$as_dir" : 'X\(//\)[^/]' \| \
12342 X"$as_dir" : 'X\(//\)$' \| \
12343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12344 $as_echo X"$as_dir" |
12345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12346 s//\1/
12349 /^X\(\/\/\)[^/].*/{
12350 s//\1/
12353 /^X\(\/\/\)$/{
12354 s//\1/
12357 /^X\(\/\).*/{
12358 s//\1/
12361 s/.*/./; q'`
12362 test -d "$as_dir" && break
12363 done
12364 test -z "$as_dirs" || eval "mkdir $as_dirs"
12365 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
12368 } # as_fn_mkdir_p
12369 if mkdir -p . 2>/dev/null; then
12370 as_mkdir_p='mkdir -p "$as_dir"'
12371 else
12372 test -d ./-p && rmdir ./-p
12373 as_mkdir_p=false
12376 if test -x / >/dev/null 2>&1; then
12377 as_test_x='test -x'
12378 else
12379 if ls -dL / >/dev/null 2>&1; then
12380 as_ls_L_option=L
12381 else
12382 as_ls_L_option=
12384 as_test_x='
12385 eval sh -c '\''
12386 if test -d "$1"; then
12387 test -d "$1/.";
12388 else
12389 case $1 in #(
12390 -*)set "./$1";;
12391 esac;
12392 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12393 ???[sx]*):;;*)false;;esac;fi
12394 '\'' sh
12397 as_executable_p=$as_test_x
12399 # Sed expression to map a string onto a valid CPP name.
12400 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12402 # Sed expression to map a string onto a valid variable name.
12403 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12406 exec 6>&1
12407 ## ----------------------------------- ##
12408 ## Main body of $CONFIG_STATUS script. ##
12409 ## ----------------------------------- ##
12410 _ASEOF
12411 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12414 # Save the log message, to keep $0 and so on meaningful, and to
12415 # report actual input values of CONFIG_FILES etc. instead of their
12416 # values after options handling.
12417 ac_log="
12418 This file was extended by LTO plugin for ld $as_me 0.1, which was
12419 generated by GNU Autoconf 2.64. Invocation command line was
12421 CONFIG_FILES = $CONFIG_FILES
12422 CONFIG_HEADERS = $CONFIG_HEADERS
12423 CONFIG_LINKS = $CONFIG_LINKS
12424 CONFIG_COMMANDS = $CONFIG_COMMANDS
12425 $ $0 $@
12427 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12430 _ACEOF
12432 case $ac_config_files in *"
12433 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12434 esac
12436 case $ac_config_headers in *"
12437 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12438 esac
12441 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12442 # Files that config.status was made for.
12443 config_files="$ac_config_files"
12444 config_headers="$ac_config_headers"
12445 config_commands="$ac_config_commands"
12447 _ACEOF
12449 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12450 ac_cs_usage="\
12451 \`$as_me' instantiates files and other configuration actions
12452 from templates according to the current configuration. Unless the files
12453 and actions are specified as TAGs, all are instantiated by default.
12455 Usage: $0 [OPTION]... [TAG]...
12457 -h, --help print this help, then exit
12458 -V, --version print version number and configuration settings, then exit
12459 -q, --quiet, --silent
12460 do not print progress messages
12461 -d, --debug don't remove temporary files
12462 --recheck update $as_me by reconfiguring in the same conditions
12463 --file=FILE[:TEMPLATE]
12464 instantiate the configuration file FILE
12465 --header=FILE[:TEMPLATE]
12466 instantiate the configuration header FILE
12468 Configuration files:
12469 $config_files
12471 Configuration headers:
12472 $config_headers
12474 Configuration commands:
12475 $config_commands
12477 Report bugs to the package provider."
12479 _ACEOF
12480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12481 ac_cs_version="\\
12482 LTO plugin for ld config.status 0.1
12483 configured by $0, generated by GNU Autoconf 2.64,
12484 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12486 Copyright (C) 2009 Free Software Foundation, Inc.
12487 This config.status script is free software; the Free Software Foundation
12488 gives unlimited permission to copy, distribute and modify it."
12490 ac_pwd='$ac_pwd'
12491 srcdir='$srcdir'
12492 INSTALL='$INSTALL'
12493 MKDIR_P='$MKDIR_P'
12494 AWK='$AWK'
12495 test -n "\$AWK" || AWK=awk
12496 _ACEOF
12498 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12499 # The default lists apply if the user does not specify any file.
12500 ac_need_defaults=:
12501 while test $# != 0
12503 case $1 in
12504 --*=*)
12505 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12506 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12507 ac_shift=:
12510 ac_option=$1
12511 ac_optarg=$2
12512 ac_shift=shift
12514 esac
12516 case $ac_option in
12517 # Handling of the options.
12518 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12519 ac_cs_recheck=: ;;
12520 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12521 $as_echo "$ac_cs_version"; exit ;;
12522 --debug | --debu | --deb | --de | --d | -d )
12523 debug=: ;;
12524 --file | --fil | --fi | --f )
12525 $ac_shift
12526 case $ac_optarg in
12527 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12528 esac
12529 as_fn_append CONFIG_FILES " '$ac_optarg'"
12530 ac_need_defaults=false;;
12531 --header | --heade | --head | --hea )
12532 $ac_shift
12533 case $ac_optarg in
12534 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12535 esac
12536 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12537 ac_need_defaults=false;;
12538 --he | --h)
12539 # Conflict between --help and --header
12540 as_fn_error "ambiguous option: \`$1'
12541 Try \`$0 --help' for more information.";;
12542 --help | --hel | -h )
12543 $as_echo "$ac_cs_usage"; exit ;;
12544 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12545 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12546 ac_cs_silent=: ;;
12548 # This is an error.
12549 -*) as_fn_error "unrecognized option: \`$1'
12550 Try \`$0 --help' for more information." ;;
12552 *) as_fn_append ac_config_targets " $1"
12553 ac_need_defaults=false ;;
12555 esac
12556 shift
12557 done
12559 ac_configure_extra_args=
12561 if $ac_cs_silent; then
12562 exec 6>/dev/null
12563 ac_configure_extra_args="$ac_configure_extra_args --silent"
12566 _ACEOF
12567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12568 if \$ac_cs_recheck; then
12569 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12570 shift
12571 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12572 CONFIG_SHELL='$SHELL'
12573 export CONFIG_SHELL
12574 exec "\$@"
12577 _ACEOF
12578 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12579 exec 5>>config.log
12581 echo
12582 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12583 ## Running $as_me. ##
12584 _ASBOX
12585 $as_echo "$ac_log"
12586 } >&5
12588 _ACEOF
12589 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12591 # INIT-COMMANDS
12593 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12596 # The HP-UX ksh and POSIX shell print the target directory to stdout
12597 # if CDPATH is set.
12598 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12600 sed_quote_subst='$sed_quote_subst'
12601 double_quote_subst='$double_quote_subst'
12602 delay_variable_subst='$delay_variable_subst'
12603 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12604 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12605 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12606 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12607 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12608 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12609 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12610 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12611 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12612 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12613 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12614 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12615 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12616 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12617 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12618 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12619 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12620 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12621 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12622 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12623 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12624 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12625 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12626 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12627 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12628 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12629 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12630 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12631 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12632 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12633 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12634 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12635 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12636 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12637 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12638 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12639 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12640 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12641 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12642 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12643 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12644 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12645 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12646 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12647 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12648 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12649 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12650 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12651 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"`'
12652 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12653 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12654 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12655 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12656 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12657 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12658 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12659 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12660 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12661 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12662 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12663 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12664 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12665 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12666 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12667 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12668 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12669 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12670 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12671 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12672 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12673 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12674 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12675 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12676 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12677 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12678 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12679 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12680 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12681 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12682 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12683 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12684 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12685 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12686 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12687 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12688 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12689 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12690 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12691 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12692 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12693 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12694 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12695 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12696 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12697 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12698 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12699 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12700 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12701 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12702 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12703 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12704 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12705 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12706 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12707 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12708 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12709 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12710 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12711 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12712 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12713 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12714 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12715 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12716 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12717 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12718 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12719 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12720 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12721 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12722 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12724 LTCC='$LTCC'
12725 LTCFLAGS='$LTCFLAGS'
12726 compiler='$compiler_DEFAULT'
12728 # A function that is used when there is no print builtin or printf.
12729 func_fallback_echo ()
12731 eval 'cat <<_LTECHO_EOF
12733 _LTECHO_EOF'
12736 # Quote evaled strings.
12737 for var in SHELL \
12738 ECHO \
12739 SED \
12740 GREP \
12741 EGREP \
12742 FGREP \
12743 LD \
12744 NM \
12745 LN_S \
12746 lt_SP2NL \
12747 lt_NL2SP \
12748 reload_flag \
12749 OBJDUMP \
12750 deplibs_check_method \
12751 file_magic_cmd \
12752 AR \
12753 AR_FLAGS \
12754 STRIP \
12755 RANLIB \
12756 CC \
12757 CFLAGS \
12758 compiler \
12759 lt_cv_sys_global_symbol_pipe \
12760 lt_cv_sys_global_symbol_to_cdecl \
12761 lt_cv_sys_global_symbol_to_c_name_address \
12762 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12763 lt_prog_compiler_no_builtin_flag \
12764 lt_prog_compiler_wl \
12765 lt_prog_compiler_pic \
12766 lt_prog_compiler_static \
12767 lt_cv_prog_compiler_c_o \
12768 need_locks \
12769 DSYMUTIL \
12770 NMEDIT \
12771 LIPO \
12772 OTOOL \
12773 OTOOL64 \
12774 shrext_cmds \
12775 export_dynamic_flag_spec \
12776 whole_archive_flag_spec \
12777 compiler_needs_object \
12778 with_gnu_ld \
12779 allow_undefined_flag \
12780 no_undefined_flag \
12781 hardcode_libdir_flag_spec \
12782 hardcode_libdir_flag_spec_ld \
12783 hardcode_libdir_separator \
12784 fix_srcfile_path \
12785 exclude_expsyms \
12786 include_expsyms \
12787 file_list_spec \
12788 variables_saved_for_relink \
12789 libname_spec \
12790 library_names_spec \
12791 soname_spec \
12792 install_override_mode \
12793 finish_eval \
12794 old_striplib \
12795 striplib; do
12796 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12797 *[\\\\\\\`\\"\\\$]*)
12798 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12801 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12803 esac
12804 done
12806 # Double-quote double-evaled strings.
12807 for var in reload_cmds \
12808 old_postinstall_cmds \
12809 old_postuninstall_cmds \
12810 old_archive_cmds \
12811 extract_expsyms_cmds \
12812 old_archive_from_new_cmds \
12813 old_archive_from_expsyms_cmds \
12814 archive_cmds \
12815 archive_expsym_cmds \
12816 module_cmds \
12817 module_expsym_cmds \
12818 export_symbols_cmds \
12819 prelink_cmds \
12820 postinstall_cmds \
12821 postuninstall_cmds \
12822 finish_cmds \
12823 sys_lib_search_path_spec \
12824 sys_lib_dlsearch_path_spec; do
12825 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12826 *[\\\\\\\`\\"\\\$]*)
12827 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12830 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12832 esac
12833 done
12835 ac_aux_dir='$ac_aux_dir'
12836 xsi_shell='$xsi_shell'
12837 lt_shell_append='$lt_shell_append'
12839 # See if we are running on zsh, and set the options which allow our
12840 # commands through without removal of \ escapes INIT.
12841 if test -n "\${ZSH_VERSION+set}" ; then
12842 setopt NO_GLOB_SUBST
12846 PACKAGE='$PACKAGE'
12847 VERSION='$VERSION'
12848 TIMESTAMP='$TIMESTAMP'
12849 RM='$RM'
12850 ofile='$ofile'
12855 _ACEOF
12857 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12859 # Handling of arguments.
12860 for ac_config_target in $ac_config_targets
12862 case $ac_config_target in
12863 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12864 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12865 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12866 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12868 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12869 esac
12870 done
12873 # If the user did not use the arguments to specify the items to instantiate,
12874 # then the envvar interface is used. Set only those that are not.
12875 # We use the long form for the default assignment because of an extremely
12876 # bizarre bug on SunOS 4.1.3.
12877 if $ac_need_defaults; then
12878 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12879 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12880 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12883 # Have a temporary directory for convenience. Make it in the build tree
12884 # simply because there is no reason against having it here, and in addition,
12885 # creating and moving files from /tmp can sometimes cause problems.
12886 # Hook for its removal unless debugging.
12887 # Note that there is a small window in which the directory will not be cleaned:
12888 # after its creation but before its name has been assigned to `$tmp'.
12889 $debug ||
12891 tmp=
12892 trap 'exit_status=$?
12893 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12895 trap 'as_fn_exit 1' 1 2 13 15
12897 # Create a (secure) tmp directory for tmp files.
12900 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12901 test -n "$tmp" && test -d "$tmp"
12902 } ||
12904 tmp=./conf$$-$RANDOM
12905 (umask 077 && mkdir "$tmp")
12906 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12908 # Set up the scripts for CONFIG_FILES section.
12909 # No need to generate them if there are no CONFIG_FILES.
12910 # This happens for instance with `./config.status config.h'.
12911 if test -n "$CONFIG_FILES"; then
12914 ac_cr=`echo X | tr X '\015'`
12915 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12916 # But we know of no other shell where ac_cr would be empty at this
12917 # point, so we can use a bashism as a fallback.
12918 if test "x$ac_cr" = x; then
12919 eval ac_cr=\$\'\\r\'
12921 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12922 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12923 ac_cs_awk_cr='\r'
12924 else
12925 ac_cs_awk_cr=$ac_cr
12928 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12929 _ACEOF
12933 echo "cat >conf$$subs.awk <<_ACEOF" &&
12934 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12935 echo "_ACEOF"
12936 } >conf$$subs.sh ||
12937 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12938 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12939 ac_delim='%!_!# '
12940 for ac_last_try in false false false false false :; do
12941 . ./conf$$subs.sh ||
12942 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12944 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12945 if test $ac_delim_n = $ac_delim_num; then
12946 break
12947 elif $ac_last_try; then
12948 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12949 else
12950 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12952 done
12953 rm -f conf$$subs.sh
12955 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12956 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12957 _ACEOF
12958 sed -n '
12960 s/^/S["/; s/!.*/"]=/
12963 s/^[^!]*!//
12964 :repl
12965 t repl
12966 s/'"$ac_delim"'$//
12967 t delim
12970 s/\(.\{148\}\).*/\1/
12971 t more1
12972 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12975 b repl
12976 :more1
12977 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12980 s/.\{148\}//
12981 t nl
12982 :delim
12984 s/\(.\{148\}\).*/\1/
12985 t more2
12986 s/["\\]/\\&/g; s/^/"/; s/$/"/
12989 :more2
12990 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12993 s/.\{148\}//
12994 t delim
12995 ' <conf$$subs.awk | sed '
12996 /^[^""]/{
12998 s/\n//
13000 ' >>$CONFIG_STATUS || ac_write_fail=1
13001 rm -f conf$$subs.awk
13002 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13003 _ACAWK
13004 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13005 for (key in S) S_is_set[key] = 1
13006 FS = "\a"
13010 line = $ 0
13011 nfields = split(line, field, "@")
13012 substed = 0
13013 len = length(field[1])
13014 for (i = 2; i < nfields; i++) {
13015 key = field[i]
13016 keylen = length(key)
13017 if (S_is_set[key]) {
13018 value = S[key]
13019 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13020 len += length(value) + length(field[++i])
13021 substed = 1
13022 } else
13023 len += 1 + keylen
13026 print line
13029 _ACAWK
13030 _ACEOF
13031 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13032 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13033 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13034 else
13036 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13037 || as_fn_error "could not setup config files machinery" "$LINENO" 5
13038 _ACEOF
13040 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13041 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13042 # trailing colons and then remove the whole line if VPATH becomes empty
13043 # (actually we leave an empty line to preserve line numbers).
13044 if test "x$srcdir" = x.; then
13045 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13046 s/:*\$(srcdir):*/:/
13047 s/:*\${srcdir}:*/:/
13048 s/:*@srcdir@:*/:/
13049 s/^\([^=]*=[ ]*\):*/\1/
13050 s/:*$//
13051 s/^[^=]*=[ ]*$//
13055 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13056 fi # test -n "$CONFIG_FILES"
13058 # Set up the scripts for CONFIG_HEADERS section.
13059 # No need to generate them if there are no CONFIG_HEADERS.
13060 # This happens for instance with `./config.status Makefile'.
13061 if test -n "$CONFIG_HEADERS"; then
13062 cat >"$tmp/defines.awk" <<\_ACAWK ||
13063 BEGIN {
13064 _ACEOF
13066 # Transform confdefs.h into an awk script `defines.awk', embedded as
13067 # here-document in config.status, that substitutes the proper values into
13068 # config.h.in to produce config.h.
13070 # Create a delimiter string that does not exist in confdefs.h, to ease
13071 # handling of long lines.
13072 ac_delim='%!_!# '
13073 for ac_last_try in false false :; do
13074 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13075 if test -z "$ac_t"; then
13076 break
13077 elif $ac_last_try; then
13078 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13079 else
13080 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13082 done
13084 # For the awk script, D is an array of macro values keyed by name,
13085 # likewise P contains macro parameters if any. Preserve backslash
13086 # newline sequences.
13088 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13089 sed -n '
13090 s/.\{148\}/&'"$ac_delim"'/g
13091 t rset
13092 :rset
13093 s/^[ ]*#[ ]*define[ ][ ]*/ /
13094 t def
13096 :def
13097 s/\\$//
13098 t bsnl
13099 s/["\\]/\\&/g
13100 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13101 D["\1"]=" \3"/p
13102 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13104 :bsnl
13105 s/["\\]/\\&/g
13106 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13107 D["\1"]=" \3\\\\\\n"\\/p
13108 t cont
13109 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13110 t cont
13112 :cont
13114 s/.\{148\}/&'"$ac_delim"'/g
13115 t clear
13116 :clear
13117 s/\\$//
13118 t bsnlc
13119 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13121 :bsnlc
13122 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13123 b cont
13124 ' <confdefs.h | sed '
13125 s/'"$ac_delim"'/"\\\
13126 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13128 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13129 for (key in D) D_is_set[key] = 1
13130 FS = "\a"
13132 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13133 line = \$ 0
13134 split(line, arg, " ")
13135 if (arg[1] == "#") {
13136 defundef = arg[2]
13137 mac1 = arg[3]
13138 } else {
13139 defundef = substr(arg[1], 2)
13140 mac1 = arg[2]
13142 split(mac1, mac2, "(") #)
13143 macro = mac2[1]
13144 prefix = substr(line, 1, index(line, defundef) - 1)
13145 if (D_is_set[macro]) {
13146 # Preserve the white space surrounding the "#".
13147 print prefix "define", macro P[macro] D[macro]
13148 next
13149 } else {
13150 # Replace #undef with comments. This is necessary, for example,
13151 # in the case of _POSIX_SOURCE, which is predefined and required
13152 # on some systems where configure will not decide to define it.
13153 if (defundef == "undef") {
13154 print "/*", prefix defundef, macro, "*/"
13155 next
13159 { print }
13160 _ACAWK
13161 _ACEOF
13162 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13163 as_fn_error "could not setup config headers machinery" "$LINENO" 5
13164 fi # test -n "$CONFIG_HEADERS"
13167 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13168 shift
13169 for ac_tag
13171 case $ac_tag in
13172 :[FHLC]) ac_mode=$ac_tag; continue;;
13173 esac
13174 case $ac_mode$ac_tag in
13175 :[FHL]*:*);;
13176 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
13177 :[FH]-) ac_tag=-:-;;
13178 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13179 esac
13180 ac_save_IFS=$IFS
13181 IFS=:
13182 set x $ac_tag
13183 IFS=$ac_save_IFS
13184 shift
13185 ac_file=$1
13186 shift
13188 case $ac_mode in
13189 :L) ac_source=$1;;
13190 :[FH])
13191 ac_file_inputs=
13192 for ac_f
13194 case $ac_f in
13195 -) ac_f="$tmp/stdin";;
13196 *) # Look for the file first in the build tree, then in the source tree
13197 # (if the path is not absolute). The absolute path cannot be DOS-style,
13198 # because $ac_f cannot contain `:'.
13199 test -f "$ac_f" ||
13200 case $ac_f in
13201 [\\/$]*) false;;
13202 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13203 esac ||
13204 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13205 esac
13206 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13207 as_fn_append ac_file_inputs " '$ac_f'"
13208 done
13210 # Let's still pretend it is `configure' which instantiates (i.e., don't
13211 # use $as_me), people would be surprised to read:
13212 # /* config.h. Generated by config.status. */
13213 configure_input='Generated from '`
13214 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13215 `' by configure.'
13216 if test x"$ac_file" != x-; then
13217 configure_input="$ac_file. $configure_input"
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13219 $as_echo "$as_me: creating $ac_file" >&6;}
13221 # Neutralize special characters interpreted by sed in replacement strings.
13222 case $configure_input in #(
13223 *\&* | *\|* | *\\* )
13224 ac_sed_conf_input=`$as_echo "$configure_input" |
13225 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13226 *) ac_sed_conf_input=$configure_input;;
13227 esac
13229 case $ac_tag in
13230 *:-:* | *:-) cat >"$tmp/stdin" \
13231 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
13232 esac
13234 esac
13236 ac_dir=`$as_dirname -- "$ac_file" ||
13237 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13238 X"$ac_file" : 'X\(//\)[^/]' \| \
13239 X"$ac_file" : 'X\(//\)$' \| \
13240 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13241 $as_echo X"$ac_file" |
13242 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13243 s//\1/
13246 /^X\(\/\/\)[^/].*/{
13247 s//\1/
13250 /^X\(\/\/\)$/{
13251 s//\1/
13254 /^X\(\/\).*/{
13255 s//\1/
13258 s/.*/./; q'`
13259 as_dir="$ac_dir"; as_fn_mkdir_p
13260 ac_builddir=.
13262 case "$ac_dir" in
13263 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13265 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13266 # A ".." for each directory in $ac_dir_suffix.
13267 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13268 case $ac_top_builddir_sub in
13269 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13270 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13271 esac ;;
13272 esac
13273 ac_abs_top_builddir=$ac_pwd
13274 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13275 # for backward compatibility:
13276 ac_top_builddir=$ac_top_build_prefix
13278 case $srcdir in
13279 .) # We are building in place.
13280 ac_srcdir=.
13281 ac_top_srcdir=$ac_top_builddir_sub
13282 ac_abs_top_srcdir=$ac_pwd ;;
13283 [\\/]* | ?:[\\/]* ) # Absolute name.
13284 ac_srcdir=$srcdir$ac_dir_suffix;
13285 ac_top_srcdir=$srcdir
13286 ac_abs_top_srcdir=$srcdir ;;
13287 *) # Relative name.
13288 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13289 ac_top_srcdir=$ac_top_build_prefix$srcdir
13290 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13291 esac
13292 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13295 case $ac_mode in
13298 # CONFIG_FILE
13301 case $INSTALL in
13302 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13303 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13304 esac
13305 ac_MKDIR_P=$MKDIR_P
13306 case $MKDIR_P in
13307 [\\/$]* | ?:[\\/]* ) ;;
13308 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13309 esac
13310 _ACEOF
13312 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13313 # If the template does not know about datarootdir, expand it.
13314 # FIXME: This hack should be removed a few years after 2.60.
13315 ac_datarootdir_hack=; ac_datarootdir_seen=
13316 ac_sed_dataroot='
13317 /datarootdir/ {
13321 /@datadir@/p
13322 /@docdir@/p
13323 /@infodir@/p
13324 /@localedir@/p
13325 /@mandir@/p'
13326 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13327 *datarootdir*) ac_datarootdir_seen=yes;;
13328 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13330 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13331 _ACEOF
13332 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13333 ac_datarootdir_hack='
13334 s&@datadir@&$datadir&g
13335 s&@docdir@&$docdir&g
13336 s&@infodir@&$infodir&g
13337 s&@localedir@&$localedir&g
13338 s&@mandir@&$mandir&g
13339 s&\\\${datarootdir}&$datarootdir&g' ;;
13340 esac
13341 _ACEOF
13343 # Neutralize VPATH when `$srcdir' = `.'.
13344 # Shell code in configure.ac might set extrasub.
13345 # FIXME: do we really want to maintain this feature?
13346 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13347 ac_sed_extra="$ac_vpsub
13348 $extrasub
13349 _ACEOF
13350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13352 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13353 s|@configure_input@|$ac_sed_conf_input|;t t
13354 s&@top_builddir@&$ac_top_builddir_sub&;t t
13355 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13356 s&@srcdir@&$ac_srcdir&;t t
13357 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13358 s&@top_srcdir@&$ac_top_srcdir&;t t
13359 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13360 s&@builddir@&$ac_builddir&;t t
13361 s&@abs_builddir@&$ac_abs_builddir&;t t
13362 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13363 s&@INSTALL@&$ac_INSTALL&;t t
13364 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13365 $ac_datarootdir_hack
13367 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13368 || as_fn_error "could not create $ac_file" "$LINENO" 5
13370 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13371 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13372 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13374 which seems to be undefined. Please make sure it is defined." >&5
13375 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13376 which seems to be undefined. Please make sure it is defined." >&2;}
13378 rm -f "$tmp/stdin"
13379 case $ac_file in
13380 -) cat "$tmp/out" && rm -f "$tmp/out";;
13381 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13382 esac \
13383 || as_fn_error "could not create $ac_file" "$LINENO" 5
13387 # CONFIG_HEADER
13389 if test x"$ac_file" != x-; then
13391 $as_echo "/* $configure_input */" \
13392 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13393 } >"$tmp/config.h" \
13394 || as_fn_error "could not create $ac_file" "$LINENO" 5
13395 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13397 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13398 else
13399 rm -f "$ac_file"
13400 mv "$tmp/config.h" "$ac_file" \
13401 || as_fn_error "could not create $ac_file" "$LINENO" 5
13403 else
13404 $as_echo "/* $configure_input */" \
13405 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13406 || as_fn_error "could not create -" "$LINENO" 5
13408 # Compute "$ac_file"'s index in $config_headers.
13409 _am_arg="$ac_file"
13410 _am_stamp_count=1
13411 for _am_header in $config_headers :; do
13412 case $_am_header in
13413 $_am_arg | $_am_arg:* )
13414 break ;;
13416 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13417 esac
13418 done
13419 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13420 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13421 X"$_am_arg" : 'X\(//\)[^/]' \| \
13422 X"$_am_arg" : 'X\(//\)$' \| \
13423 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13424 $as_echo X"$_am_arg" |
13425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13426 s//\1/
13429 /^X\(\/\/\)[^/].*/{
13430 s//\1/
13433 /^X\(\/\/\)$/{
13434 s//\1/
13437 /^X\(\/\).*/{
13438 s//\1/
13441 s/.*/./; q'`/stamp-h$_am_stamp_count
13444 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13445 $as_echo "$as_me: executing $ac_file commands" >&6;}
13447 esac
13450 case $ac_file$ac_mode in
13451 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13452 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13453 # are listed without --file. Let's play safe and only enable the eval
13454 # if we detect the quoting.
13455 case $CONFIG_FILES in
13456 *\'*) eval set x "$CONFIG_FILES" ;;
13457 *) set x $CONFIG_FILES ;;
13458 esac
13459 shift
13460 for mf
13462 # Strip MF so we end up with the name of the file.
13463 mf=`echo "$mf" | sed -e 's/:.*$//'`
13464 # Check whether this is an Automake generated Makefile or not.
13465 # We used to match only the files named `Makefile.in', but
13466 # some people rename them; so instead we look at the file content.
13467 # Grep'ing the first line is not enough: some people post-process
13468 # each Makefile.in and add a new line on top of each file to say so.
13469 # Grep'ing the whole file is not good either: AIX grep has a line
13470 # limit of 2048, but all sed's we know have understand at least 4000.
13471 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13472 dirpart=`$as_dirname -- "$mf" ||
13473 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13474 X"$mf" : 'X\(//\)[^/]' \| \
13475 X"$mf" : 'X\(//\)$' \| \
13476 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13477 $as_echo X"$mf" |
13478 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13479 s//\1/
13482 /^X\(\/\/\)[^/].*/{
13483 s//\1/
13486 /^X\(\/\/\)$/{
13487 s//\1/
13490 /^X\(\/\).*/{
13491 s//\1/
13494 s/.*/./; q'`
13495 else
13496 continue
13498 # Extract the definition of DEPDIR, am__include, and am__quote
13499 # from the Makefile without running `make'.
13500 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13501 test -z "$DEPDIR" && continue
13502 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13503 test -z "am__include" && continue
13504 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13505 # When using ansi2knr, U may be empty or an underscore; expand it
13506 U=`sed -n 's/^U = //p' < "$mf"`
13507 # Find all dependency output files, they are included files with
13508 # $(DEPDIR) in their names. We invoke sed twice because it is the
13509 # simplest approach to changing $(DEPDIR) to its actual value in the
13510 # expansion.
13511 for file in `sed -n "
13512 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13513 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13514 # Make sure the directory exists.
13515 test -f "$dirpart/$file" && continue
13516 fdir=`$as_dirname -- "$file" ||
13517 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13518 X"$file" : 'X\(//\)[^/]' \| \
13519 X"$file" : 'X\(//\)$' \| \
13520 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13521 $as_echo X"$file" |
13522 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13523 s//\1/
13526 /^X\(\/\/\)[^/].*/{
13527 s//\1/
13530 /^X\(\/\/\)$/{
13531 s//\1/
13534 /^X\(\/\).*/{
13535 s//\1/
13538 s/.*/./; q'`
13539 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13540 # echo "creating $dirpart/$file"
13541 echo '# dummy' > "$dirpart/$file"
13542 done
13543 done
13546 "libtool":C)
13548 # See if we are running on zsh, and set the options which allow our
13549 # commands through without removal of \ escapes.
13550 if test -n "${ZSH_VERSION+set}" ; then
13551 setopt NO_GLOB_SUBST
13554 cfgfile="${ofile}T"
13555 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13556 $RM "$cfgfile"
13558 cat <<_LT_EOF >> "$cfgfile"
13559 #! $SHELL
13561 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13562 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13563 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13564 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13566 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13567 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
13568 # Written by Gordon Matzigkeit, 1996
13570 # This file is part of GNU Libtool.
13572 # GNU Libtool is free software; you can redistribute it and/or
13573 # modify it under the terms of the GNU General Public License as
13574 # published by the Free Software Foundation; either version 2 of
13575 # the License, or (at your option) any later version.
13577 # As a special exception to the GNU General Public License,
13578 # if you distribute this file as part of a program or library that
13579 # is built using GNU Libtool, you may include this file under the
13580 # same distribution terms that you use for the rest of that program.
13582 # GNU Libtool is distributed in the hope that it will be useful,
13583 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13584 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13585 # GNU General Public License for more details.
13587 # You should have received a copy of the GNU General Public License
13588 # along with GNU Libtool; see the file COPYING. If not, a copy
13589 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13590 # obtained by writing to the Free Software Foundation, Inc.,
13591 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13594 # The names of the tagged configurations supported by this script.
13595 available_tags=""
13597 # ### BEGIN LIBTOOL CONFIG
13599 # Which release of libtool.m4 was used?
13600 macro_version=$macro_version
13601 macro_revision=$macro_revision
13603 # Whether or not to build shared libraries.
13604 build_libtool_libs=$enable_shared
13606 # Whether or not to build static libraries.
13607 build_old_libs=$enable_static
13609 # What type of objects to build.
13610 pic_mode=$pic_mode
13612 # Whether or not to optimize for fast installation.
13613 fast_install=$enable_fast_install
13615 # Shell to use when invoking shell scripts.
13616 SHELL=$lt_SHELL
13618 # An echo program that protects backslashes.
13619 ECHO=$lt_ECHO
13621 # The host system.
13622 host_alias=$host_alias
13623 host=$host
13624 host_os=$host_os
13626 # The build system.
13627 build_alias=$build_alias
13628 build=$build
13629 build_os=$build_os
13631 # A sed program that does not truncate output.
13632 SED=$lt_SED
13634 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13635 Xsed="\$SED -e 1s/^X//"
13637 # A grep program that handles long lines.
13638 GREP=$lt_GREP
13640 # An ERE matcher.
13641 EGREP=$lt_EGREP
13643 # A literal string matcher.
13644 FGREP=$lt_FGREP
13646 # A BSD- or MS-compatible name lister.
13647 NM=$lt_NM
13649 # Whether we need soft or hard links.
13650 LN_S=$lt_LN_S
13652 # What is the maximum length of a command?
13653 max_cmd_len=$max_cmd_len
13655 # Object file suffix (normally "o").
13656 objext=$ac_objext
13658 # Executable file suffix (normally "").
13659 exeext=$exeext
13661 # whether the shell understands "unset".
13662 lt_unset=$lt_unset
13664 # turn spaces into newlines.
13665 SP2NL=$lt_lt_SP2NL
13667 # turn newlines into spaces.
13668 NL2SP=$lt_lt_NL2SP
13670 # An object symbol dumper.
13671 OBJDUMP=$lt_OBJDUMP
13673 # Method to check whether dependent libraries are shared objects.
13674 deplibs_check_method=$lt_deplibs_check_method
13676 # Command to use when deplibs_check_method == "file_magic".
13677 file_magic_cmd=$lt_file_magic_cmd
13679 # The archiver.
13680 AR=$lt_AR
13681 AR_FLAGS=$lt_AR_FLAGS
13683 # A symbol stripping program.
13684 STRIP=$lt_STRIP
13686 # Commands used to install an old-style archive.
13687 RANLIB=$lt_RANLIB
13688 old_postinstall_cmds=$lt_old_postinstall_cmds
13689 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13691 # Whether to use a lock for old archive extraction.
13692 lock_old_archive_extraction=$lock_old_archive_extraction
13694 # A C compiler.
13695 LTCC=$lt_CC
13697 # LTCC compiler flags.
13698 LTCFLAGS=$lt_CFLAGS
13700 # Take the output of nm and produce a listing of raw symbols and C names.
13701 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13703 # Transform the output of nm in a proper C declaration.
13704 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13706 # Transform the output of nm in a C name address pair.
13707 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13709 # Transform the output of nm in a C name address pair when lib prefix is needed.
13710 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13712 # The name of the directory that contains temporary libtool files.
13713 objdir=$objdir
13715 # Used to examine libraries when file_magic_cmd begins with "file".
13716 MAGIC_CMD=$MAGIC_CMD
13718 # Must we lock files when doing compilation?
13719 need_locks=$lt_need_locks
13721 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13722 DSYMUTIL=$lt_DSYMUTIL
13724 # Tool to change global to local symbols on Mac OS X.
13725 NMEDIT=$lt_NMEDIT
13727 # Tool to manipulate fat objects and archives on Mac OS X.
13728 LIPO=$lt_LIPO
13730 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13731 OTOOL=$lt_OTOOL
13733 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13734 OTOOL64=$lt_OTOOL64
13736 # Old archive suffix (normally "a").
13737 libext=$libext
13739 # Shared library suffix (normally ".so").
13740 shrext_cmds=$lt_shrext_cmds
13742 # The commands to extract the exported symbol list from a shared archive.
13743 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13745 # Variables whose values should be saved in libtool wrapper scripts and
13746 # restored at link time.
13747 variables_saved_for_relink=$lt_variables_saved_for_relink
13749 # Do we need the "lib" prefix for modules?
13750 need_lib_prefix=$need_lib_prefix
13752 # Do we need a version for libraries?
13753 need_version=$need_version
13755 # Library versioning type.
13756 version_type=$version_type
13758 # Shared library runtime path variable.
13759 runpath_var=$runpath_var
13761 # Shared library path variable.
13762 shlibpath_var=$shlibpath_var
13764 # Is shlibpath searched before the hard-coded library search path?
13765 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13767 # Format of library name prefix.
13768 libname_spec=$lt_libname_spec
13770 # List of archive names. First name is the real one, the rest are links.
13771 # The last name is the one that the linker finds with -lNAME
13772 library_names_spec=$lt_library_names_spec
13774 # The coded name of the library, if different from the real name.
13775 soname_spec=$lt_soname_spec
13777 # Permission mode override for installation of shared libraries.
13778 install_override_mode=$lt_install_override_mode
13780 # Command to use after installation of a shared archive.
13781 postinstall_cmds=$lt_postinstall_cmds
13783 # Command to use after uninstallation of a shared archive.
13784 postuninstall_cmds=$lt_postuninstall_cmds
13786 # Commands used to finish a libtool library installation in a directory.
13787 finish_cmds=$lt_finish_cmds
13789 # As "finish_cmds", except a single script fragment to be evaled but
13790 # not shown.
13791 finish_eval=$lt_finish_eval
13793 # Whether we should hardcode library paths into libraries.
13794 hardcode_into_libs=$hardcode_into_libs
13796 # Compile-time system search path for libraries.
13797 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13799 # Run-time system search path for libraries.
13800 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13802 # Whether dlopen is supported.
13803 dlopen_support=$enable_dlopen
13805 # Whether dlopen of programs is supported.
13806 dlopen_self=$enable_dlopen_self
13808 # Whether dlopen of statically linked programs is supported.
13809 dlopen_self_static=$enable_dlopen_self_static
13811 # Commands to strip libraries.
13812 old_striplib=$lt_old_striplib
13813 striplib=$lt_striplib
13816 # The linker used to build libraries.
13817 LD=$lt_LD
13819 # How to create reloadable object files.
13820 reload_flag=$lt_reload_flag
13821 reload_cmds=$lt_reload_cmds
13823 # Commands used to build an old-style archive.
13824 old_archive_cmds=$lt_old_archive_cmds
13826 # A language specific compiler.
13827 CC=$lt_compiler
13829 # Is the compiler the GNU compiler?
13830 with_gcc=$GCC
13832 # Compiler flag to turn off builtin functions.
13833 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13835 # How to pass a linker flag through the compiler.
13836 wl=$lt_lt_prog_compiler_wl
13838 # Additional compiler flags for building library objects.
13839 pic_flag=$lt_lt_prog_compiler_pic
13841 # Compiler flag to prevent dynamic linking.
13842 link_static_flag=$lt_lt_prog_compiler_static
13844 # Does compiler simultaneously support -c and -o options?
13845 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13847 # Whether or not to add -lc for building shared libraries.
13848 build_libtool_need_lc=$archive_cmds_need_lc
13850 # Whether or not to disallow shared libs when runtime libs are static.
13851 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13853 # Compiler flag to allow reflexive dlopens.
13854 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13856 # Compiler flag to generate shared objects directly from archives.
13857 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13859 # Whether the compiler copes with passing no objects directly.
13860 compiler_needs_object=$lt_compiler_needs_object
13862 # Create an old-style archive from a shared archive.
13863 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13865 # Create a temporary old-style archive to link instead of a shared archive.
13866 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13868 # Commands used to build a shared archive.
13869 archive_cmds=$lt_archive_cmds
13870 archive_expsym_cmds=$lt_archive_expsym_cmds
13872 # Commands used to build a loadable module if different from building
13873 # a shared archive.
13874 module_cmds=$lt_module_cmds
13875 module_expsym_cmds=$lt_module_expsym_cmds
13877 # Whether we are building with GNU ld or not.
13878 with_gnu_ld=$lt_with_gnu_ld
13880 # Flag that allows shared libraries with undefined symbols to be built.
13881 allow_undefined_flag=$lt_allow_undefined_flag
13883 # Flag that enforces no undefined symbols.
13884 no_undefined_flag=$lt_no_undefined_flag
13886 # Flag to hardcode \$libdir into a binary during linking.
13887 # This must work even if \$libdir does not exist
13888 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13890 # If ld is used when linking, flag to hardcode \$libdir into a binary
13891 # during linking. This must work even if \$libdir does not exist.
13892 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13894 # Whether we need a single "-rpath" flag with a separated argument.
13895 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13897 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13898 # DIR into the resulting binary.
13899 hardcode_direct=$hardcode_direct
13901 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13902 # DIR into the resulting binary and the resulting library dependency is
13903 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13904 # library is relocated.
13905 hardcode_direct_absolute=$hardcode_direct_absolute
13907 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13908 # into the resulting binary.
13909 hardcode_minus_L=$hardcode_minus_L
13911 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13912 # into the resulting binary.
13913 hardcode_shlibpath_var=$hardcode_shlibpath_var
13915 # Set to "yes" if building a shared library automatically hardcodes DIR
13916 # into the library and all subsequent libraries and executables linked
13917 # against it.
13918 hardcode_automatic=$hardcode_automatic
13920 # Set to yes if linker adds runtime paths of dependent libraries
13921 # to runtime path list.
13922 inherit_rpath=$inherit_rpath
13924 # Whether libtool must link a program against all its dependency libraries.
13925 link_all_deplibs=$link_all_deplibs
13927 # Fix the shell variable \$srcfile for the compiler.
13928 fix_srcfile_path=$lt_fix_srcfile_path
13930 # Set to "yes" if exported symbols are required.
13931 always_export_symbols=$always_export_symbols
13933 # The commands to list exported symbols.
13934 export_symbols_cmds=$lt_export_symbols_cmds
13936 # Symbols that should not be listed in the preloaded symbols.
13937 exclude_expsyms=$lt_exclude_expsyms
13939 # Symbols that must always be exported.
13940 include_expsyms=$lt_include_expsyms
13942 # Commands necessary for linking programs (against libraries) with templates.
13943 prelink_cmds=$lt_prelink_cmds
13945 # Specify filename containing input files.
13946 file_list_spec=$lt_file_list_spec
13948 # How to hardcode a shared library path into an executable.
13949 hardcode_action=$hardcode_action
13951 # ### END LIBTOOL CONFIG
13953 _LT_EOF
13955 case $host_os in
13956 aix3*)
13957 cat <<\_LT_EOF >> "$cfgfile"
13958 # AIX sometimes has problems with the GCC collect2 program. For some
13959 # reason, if we set the COLLECT_NAMES environment variable, the problems
13960 # vanish in a puff of smoke.
13961 if test "X${COLLECT_NAMES+set}" != Xset; then
13962 COLLECT_NAMES=
13963 export COLLECT_NAMES
13965 _LT_EOF
13967 esac
13970 ltmain="$ac_aux_dir/ltmain.sh"
13973 # We use sed instead of cat because bash on DJGPP gets confused if
13974 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13975 # text mode, it properly converts lines to CR/LF. This bash problem
13976 # is reportedly fixed, but why not run on old versions too?
13977 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13978 || (rm -f "$cfgfile"; exit 1)
13980 case $xsi_shell in
13981 yes)
13982 cat << \_LT_EOF >> "$cfgfile"
13984 # func_dirname file append nondir_replacement
13985 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13986 # otherwise set result to NONDIR_REPLACEMENT.
13987 func_dirname ()
13989 case ${1} in
13990 */*) func_dirname_result="${1%/*}${2}" ;;
13991 * ) func_dirname_result="${3}" ;;
13992 esac
13995 # func_basename file
13996 func_basename ()
13998 func_basename_result="${1##*/}"
14001 # func_dirname_and_basename file append nondir_replacement
14002 # perform func_basename and func_dirname in a single function
14003 # call:
14004 # dirname: Compute the dirname of FILE. If nonempty,
14005 # add APPEND to the result, otherwise set result
14006 # to NONDIR_REPLACEMENT.
14007 # value returned in "$func_dirname_result"
14008 # basename: Compute filename of FILE.
14009 # value retuned in "$func_basename_result"
14010 # Implementation must be kept synchronized with func_dirname
14011 # and func_basename. For efficiency, we do not delegate to
14012 # those functions but instead duplicate the functionality here.
14013 func_dirname_and_basename ()
14015 case ${1} in
14016 */*) func_dirname_result="${1%/*}${2}" ;;
14017 * ) func_dirname_result="${3}" ;;
14018 esac
14019 func_basename_result="${1##*/}"
14022 # func_stripname prefix suffix name
14023 # strip PREFIX and SUFFIX off of NAME.
14024 # PREFIX and SUFFIX must not contain globbing or regex special
14025 # characters, hashes, percent signs, but SUFFIX may contain a leading
14026 # dot (in which case that matches only a dot).
14027 func_stripname ()
14029 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14030 # positional parameters, so assign one to ordinary parameter first.
14031 func_stripname_result=${3}
14032 func_stripname_result=${func_stripname_result#"${1}"}
14033 func_stripname_result=${func_stripname_result%"${2}"}
14036 # func_opt_split
14037 func_opt_split ()
14039 func_opt_split_opt=${1%%=*}
14040 func_opt_split_arg=${1#*=}
14043 # func_lo2o object
14044 func_lo2o ()
14046 case ${1} in
14047 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14048 *) func_lo2o_result=${1} ;;
14049 esac
14052 # func_xform libobj-or-source
14053 func_xform ()
14055 func_xform_result=${1%.*}.lo
14058 # func_arith arithmetic-term...
14059 func_arith ()
14061 func_arith_result=$(( $* ))
14064 # func_len string
14065 # STRING may not start with a hyphen.
14066 func_len ()
14068 func_len_result=${#1}
14071 _LT_EOF
14073 *) # Bourne compatible functions.
14074 cat << \_LT_EOF >> "$cfgfile"
14076 # func_dirname file append nondir_replacement
14077 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14078 # otherwise set result to NONDIR_REPLACEMENT.
14079 func_dirname ()
14081 # Extract subdirectory from the argument.
14082 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
14083 if test "X$func_dirname_result" = "X${1}"; then
14084 func_dirname_result="${3}"
14085 else
14086 func_dirname_result="$func_dirname_result${2}"
14090 # func_basename file
14091 func_basename ()
14093 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
14097 # func_stripname prefix suffix name
14098 # strip PREFIX and SUFFIX off of NAME.
14099 # PREFIX and SUFFIX must not contain globbing or regex special
14100 # characters, hashes, percent signs, but SUFFIX may contain a leading
14101 # dot (in which case that matches only a dot).
14102 # func_strip_suffix prefix name
14103 func_stripname ()
14105 case ${2} in
14106 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14107 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14108 esac
14111 # sed scripts:
14112 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14113 my_sed_long_arg='1s/^-[^=]*=//'
14115 # func_opt_split
14116 func_opt_split ()
14118 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14119 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
14122 # func_lo2o object
14123 func_lo2o ()
14125 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
14128 # func_xform libobj-or-source
14129 func_xform ()
14131 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
14134 # func_arith arithmetic-term...
14135 func_arith ()
14137 func_arith_result=`expr "$@"`
14140 # func_len string
14141 # STRING may not start with a hyphen.
14142 func_len ()
14144 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14147 _LT_EOF
14148 esac
14150 case $lt_shell_append in
14151 yes)
14152 cat << \_LT_EOF >> "$cfgfile"
14154 # func_append var value
14155 # Append VALUE to the end of shell variable VAR.
14156 func_append ()
14158 eval "$1+=\$2"
14160 _LT_EOF
14163 cat << \_LT_EOF >> "$cfgfile"
14165 # func_append var value
14166 # Append VALUE to the end of shell variable VAR.
14167 func_append ()
14169 eval "$1=\$$1\$2"
14172 _LT_EOF
14174 esac
14177 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14178 || (rm -f "$cfgfile"; exit 1)
14180 mv -f "$cfgfile" "$ofile" ||
14181 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14182 chmod +x "$ofile"
14186 esac
14187 done # for ac_tag
14190 as_fn_exit 0
14191 _ACEOF
14192 ac_clean_files=$ac_clean_files_save
14194 test $ac_write_fail = 0 ||
14195 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14198 # configure is writing to config.log, and then calls config.status.
14199 # config.status does its own redirection, appending to config.log.
14200 # Unfortunately, on DOS this fails, as config.log is still kept open
14201 # by configure, so config.status won't be able to write to it; its
14202 # output is simply discarded. So we exec the FD to /dev/null,
14203 # effectively closing config.log, so it can be properly (re)opened and
14204 # appended to by config.status. When coming back to configure, we
14205 # need to make the FD available again.
14206 if test "$no_create" != yes; then
14207 ac_cs_success=:
14208 ac_config_status_args=
14209 test "$silent" = yes &&
14210 ac_config_status_args="$ac_config_status_args --quiet"
14211 exec 5>/dev/null
14212 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14213 exec 5>>config.log
14214 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14215 # would make configure fail if this is the last instruction.
14216 $ac_cs_success || as_fn_exit $?
14218 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14220 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}