Daily bump.
[official-gcc.git] / lto-plugin / configure
blob2683520064a8c10408d5c6707040d3fd04deef78
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
173 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 PATH=/empty FPATH=/empty; export PATH FPATH
178 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
180 test \$(( 1 + 1 )) = 2 || 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
607 OTOOL64
608 OTOOL
609 LIPO
610 NMEDIT
611 DSYMUTIL
612 RANLIB
614 OBJDUMP
615 LN_S
617 ac_ct_DUMPBIN
618 DUMPBIN
620 FGREP
621 EGREP
622 GREP
624 LIBTOOL
625 real_target_noncanonical
626 accel_dir_suffix
627 gcc_build_dir
628 ac_lto_plugin_ldflags
629 ac_lto_plugin_warn_cflags
630 am__fastdepCC_FALSE
631 am__fastdepCC_TRUE
632 CCDEPMODE
633 AMDEPBACKSLASH
634 AMDEP_FALSE
635 AMDEP_TRUE
636 am__quote
637 am__include
638 DEPDIR
639 OBJEXT
640 EXEEXT
641 ac_ct_CC
642 CPPFLAGS
643 LDFLAGS
644 CFLAGS
646 with_libiberty
647 MAINT
648 MAINTAINER_MODE_FALSE
649 MAINTAINER_MODE_TRUE
650 am__untar
651 am__tar
652 AMTAR
653 am__leading_dot
654 SET_MAKE
656 mkdir_p
657 MKDIR_P
658 INSTALL_STRIP_PROGRAM
659 STRIP
660 install_sh
661 MAKEINFO
662 AUTOHEADER
663 AUTOMAKE
664 AUTOCONF
665 ACLOCAL
666 VERSION
667 PACKAGE
668 CYGPATH_W
669 am__isrc
670 INSTALL_DATA
671 INSTALL_SCRIPT
672 INSTALL_PROGRAM
673 target_subdir
674 host_subdir
675 build_subdir
676 build_libsubdir
677 target_os
678 target_vendor
679 target_cpu
680 target
681 host_os
682 host_vendor
683 host_cpu
684 host
685 build_os
686 build_vendor
687 build_cpu
688 build
689 target_alias
690 host_alias
691 build_alias
692 LIBS
693 ECHO_T
694 ECHO_N
695 ECHO_C
696 DEFS
697 mandir
698 localedir
699 libdir
700 psdir
701 pdfdir
702 dvidir
703 htmldir
704 infodir
705 docdir
706 oldincludedir
707 includedir
708 localstatedir
709 sharedstatedir
710 sysconfdir
711 datadir
712 datarootdir
713 libexecdir
714 sbindir
715 bindir
716 program_transform_name
717 prefix
718 exec_prefix
719 PACKAGE_URL
720 PACKAGE_BUGREPORT
721 PACKAGE_STRING
722 PACKAGE_VERSION
723 PACKAGE_TARNAME
724 PACKAGE_NAME
725 PATH_SEPARATOR
726 SHELL'
727 ac_subst_files=''
728 ac_user_opts='
729 enable_option_checking
730 with_build_libsubdir
731 enable_maintainer_mode
732 with_libiberty
733 enable_dependency_tracking
734 enable_largefile
735 enable_shared
736 enable_static
737 with_pic
738 enable_fast_install
739 with_gnu_ld
740 enable_libtool_lock
742 ac_precious_vars='build_alias
743 host_alias
744 target_alias
746 CFLAGS
747 LDFLAGS
748 LIBS
749 CPPFLAGS
750 CPP'
753 # Initialize some variables set by options.
754 ac_init_help=
755 ac_init_version=false
756 ac_unrecognized_opts=
757 ac_unrecognized_sep=
758 # The variables have the same names as the options, with
759 # dashes changed to underlines.
760 cache_file=/dev/null
761 exec_prefix=NONE
762 no_create=
763 no_recursion=
764 prefix=NONE
765 program_prefix=NONE
766 program_suffix=NONE
767 program_transform_name=s,x,x,
768 silent=
769 site=
770 srcdir=
771 verbose=
772 x_includes=NONE
773 x_libraries=NONE
775 # Installation directory options.
776 # These are left unexpanded so users can "make install exec_prefix=/foo"
777 # and all the variables that are supposed to be based on exec_prefix
778 # by default will actually change.
779 # Use braces instead of parens because sh, perl, etc. also accept them.
780 # (The list follows the same order as the GNU Coding Standards.)
781 bindir='${exec_prefix}/bin'
782 sbindir='${exec_prefix}/sbin'
783 libexecdir='${exec_prefix}/libexec'
784 datarootdir='${prefix}/share'
785 datadir='${datarootdir}'
786 sysconfdir='${prefix}/etc'
787 sharedstatedir='${prefix}/com'
788 localstatedir='${prefix}/var'
789 includedir='${prefix}/include'
790 oldincludedir='/usr/include'
791 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
792 infodir='${datarootdir}/info'
793 htmldir='${docdir}'
794 dvidir='${docdir}'
795 pdfdir='${docdir}'
796 psdir='${docdir}'
797 libdir='${exec_prefix}/lib'
798 localedir='${datarootdir}/locale'
799 mandir='${datarootdir}/man'
801 ac_prev=
802 ac_dashdash=
803 for ac_option
805 # If the previous option needs an argument, assign it.
806 if test -n "$ac_prev"; then
807 eval $ac_prev=\$ac_option
808 ac_prev=
809 continue
812 case $ac_option in
813 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
814 *) ac_optarg=yes ;;
815 esac
817 # Accept the important Cygnus configure options, so we can diagnose typos.
819 case $ac_dashdash$ac_option in
821 ac_dashdash=yes ;;
823 -bindir | --bindir | --bindi | --bind | --bin | --bi)
824 ac_prev=bindir ;;
825 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
826 bindir=$ac_optarg ;;
828 -build | --build | --buil | --bui | --bu)
829 ac_prev=build_alias ;;
830 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
831 build_alias=$ac_optarg ;;
833 -cache-file | --cache-file | --cache-fil | --cache-fi \
834 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
835 ac_prev=cache_file ;;
836 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
837 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
838 cache_file=$ac_optarg ;;
840 --config-cache | -C)
841 cache_file=config.cache ;;
843 -datadir | --datadir | --datadi | --datad)
844 ac_prev=datadir ;;
845 -datadir=* | --datadir=* | --datadi=* | --datad=*)
846 datadir=$ac_optarg ;;
848 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
849 | --dataroo | --dataro | --datar)
850 ac_prev=datarootdir ;;
851 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
852 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
853 datarootdir=$ac_optarg ;;
855 -disable-* | --disable-*)
856 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
857 # Reject names that are not valid shell variable names.
858 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
859 as_fn_error "invalid feature name: $ac_useropt"
860 ac_useropt_orig=$ac_useropt
861 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
862 case $ac_user_opts in
864 "enable_$ac_useropt"
865 "*) ;;
866 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
867 ac_unrecognized_sep=', ';;
868 esac
869 eval enable_$ac_useropt=no ;;
871 -docdir | --docdir | --docdi | --doc | --do)
872 ac_prev=docdir ;;
873 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
874 docdir=$ac_optarg ;;
876 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
877 ac_prev=dvidir ;;
878 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
879 dvidir=$ac_optarg ;;
881 -enable-* | --enable-*)
882 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
883 # Reject names that are not valid shell variable names.
884 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
885 as_fn_error "invalid feature name: $ac_useropt"
886 ac_useropt_orig=$ac_useropt
887 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
888 case $ac_user_opts in
890 "enable_$ac_useropt"
891 "*) ;;
892 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
893 ac_unrecognized_sep=', ';;
894 esac
895 eval enable_$ac_useropt=\$ac_optarg ;;
897 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
898 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
899 | --exec | --exe | --ex)
900 ac_prev=exec_prefix ;;
901 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
902 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
903 | --exec=* | --exe=* | --ex=*)
904 exec_prefix=$ac_optarg ;;
906 -gas | --gas | --ga | --g)
907 # Obsolete; use --with-gas.
908 with_gas=yes ;;
910 -help | --help | --hel | --he | -h)
911 ac_init_help=long ;;
912 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
913 ac_init_help=recursive ;;
914 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
915 ac_init_help=short ;;
917 -host | --host | --hos | --ho)
918 ac_prev=host_alias ;;
919 -host=* | --host=* | --hos=* | --ho=*)
920 host_alias=$ac_optarg ;;
922 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
923 ac_prev=htmldir ;;
924 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
925 | --ht=*)
926 htmldir=$ac_optarg ;;
928 -includedir | --includedir | --includedi | --included | --include \
929 | --includ | --inclu | --incl | --inc)
930 ac_prev=includedir ;;
931 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
932 | --includ=* | --inclu=* | --incl=* | --inc=*)
933 includedir=$ac_optarg ;;
935 -infodir | --infodir | --infodi | --infod | --info | --inf)
936 ac_prev=infodir ;;
937 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
938 infodir=$ac_optarg ;;
940 -libdir | --libdir | --libdi | --libd)
941 ac_prev=libdir ;;
942 -libdir=* | --libdir=* | --libdi=* | --libd=*)
943 libdir=$ac_optarg ;;
945 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
946 | --libexe | --libex | --libe)
947 ac_prev=libexecdir ;;
948 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
949 | --libexe=* | --libex=* | --libe=*)
950 libexecdir=$ac_optarg ;;
952 -localedir | --localedir | --localedi | --localed | --locale)
953 ac_prev=localedir ;;
954 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
955 localedir=$ac_optarg ;;
957 -localstatedir | --localstatedir | --localstatedi | --localstated \
958 | --localstate | --localstat | --localsta | --localst | --locals)
959 ac_prev=localstatedir ;;
960 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
961 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
962 localstatedir=$ac_optarg ;;
964 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
965 ac_prev=mandir ;;
966 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
967 mandir=$ac_optarg ;;
969 -nfp | --nfp | --nf)
970 # Obsolete; use --without-fp.
971 with_fp=no ;;
973 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
974 | --no-cr | --no-c | -n)
975 no_create=yes ;;
977 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
978 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
979 no_recursion=yes ;;
981 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
982 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
983 | --oldin | --oldi | --old | --ol | --o)
984 ac_prev=oldincludedir ;;
985 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
986 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
987 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
988 oldincludedir=$ac_optarg ;;
990 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
991 ac_prev=prefix ;;
992 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
993 prefix=$ac_optarg ;;
995 -program-prefix | --program-prefix | --program-prefi | --program-pref \
996 | --program-pre | --program-pr | --program-p)
997 ac_prev=program_prefix ;;
998 -program-prefix=* | --program-prefix=* | --program-prefi=* \
999 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1000 program_prefix=$ac_optarg ;;
1002 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1003 | --program-suf | --program-su | --program-s)
1004 ac_prev=program_suffix ;;
1005 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1006 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1007 program_suffix=$ac_optarg ;;
1009 -program-transform-name | --program-transform-name \
1010 | --program-transform-nam | --program-transform-na \
1011 | --program-transform-n | --program-transform- \
1012 | --program-transform | --program-transfor \
1013 | --program-transfo | --program-transf \
1014 | --program-trans | --program-tran \
1015 | --progr-tra | --program-tr | --program-t)
1016 ac_prev=program_transform_name ;;
1017 -program-transform-name=* | --program-transform-name=* \
1018 | --program-transform-nam=* | --program-transform-na=* \
1019 | --program-transform-n=* | --program-transform-=* \
1020 | --program-transform=* | --program-transfor=* \
1021 | --program-transfo=* | --program-transf=* \
1022 | --program-trans=* | --program-tran=* \
1023 | --progr-tra=* | --program-tr=* | --program-t=*)
1024 program_transform_name=$ac_optarg ;;
1026 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1027 ac_prev=pdfdir ;;
1028 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1029 pdfdir=$ac_optarg ;;
1031 -psdir | --psdir | --psdi | --psd | --ps)
1032 ac_prev=psdir ;;
1033 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1034 psdir=$ac_optarg ;;
1036 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1037 | -silent | --silent | --silen | --sile | --sil)
1038 silent=yes ;;
1040 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1041 ac_prev=sbindir ;;
1042 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1043 | --sbi=* | --sb=*)
1044 sbindir=$ac_optarg ;;
1046 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1047 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1048 | --sharedst | --shareds | --shared | --share | --shar \
1049 | --sha | --sh)
1050 ac_prev=sharedstatedir ;;
1051 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1052 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1053 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1054 | --sha=* | --sh=*)
1055 sharedstatedir=$ac_optarg ;;
1057 -site | --site | --sit)
1058 ac_prev=site ;;
1059 -site=* | --site=* | --sit=*)
1060 site=$ac_optarg ;;
1062 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1063 ac_prev=srcdir ;;
1064 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1065 srcdir=$ac_optarg ;;
1067 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1068 | --syscon | --sysco | --sysc | --sys | --sy)
1069 ac_prev=sysconfdir ;;
1070 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1071 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1072 sysconfdir=$ac_optarg ;;
1074 -target | --target | --targe | --targ | --tar | --ta | --t)
1075 ac_prev=target_alias ;;
1076 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1077 target_alias=$ac_optarg ;;
1079 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1080 verbose=yes ;;
1082 -version | --version | --versio | --versi | --vers | -V)
1083 ac_init_version=: ;;
1085 -with-* | --with-*)
1086 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1087 # Reject names that are not valid shell variable names.
1088 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1089 as_fn_error "invalid package name: $ac_useropt"
1090 ac_useropt_orig=$ac_useropt
1091 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1092 case $ac_user_opts in
1094 "with_$ac_useropt"
1095 "*) ;;
1096 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1097 ac_unrecognized_sep=', ';;
1098 esac
1099 eval with_$ac_useropt=\$ac_optarg ;;
1101 -without-* | --without-*)
1102 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105 as_fn_error "invalid package name: $ac_useropt"
1106 ac_useropt_orig=$ac_useropt
1107 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1108 case $ac_user_opts in
1110 "with_$ac_useropt"
1111 "*) ;;
1112 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1113 ac_unrecognized_sep=', ';;
1114 esac
1115 eval with_$ac_useropt=no ;;
1117 --x)
1118 # Obsolete; use --with-x.
1119 with_x=yes ;;
1121 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1122 | --x-incl | --x-inc | --x-in | --x-i)
1123 ac_prev=x_includes ;;
1124 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1125 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1126 x_includes=$ac_optarg ;;
1128 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1129 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1130 ac_prev=x_libraries ;;
1131 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1132 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1133 x_libraries=$ac_optarg ;;
1135 -*) as_fn_error "unrecognized option: \`$ac_option'
1136 Try \`$0 --help' for more information."
1139 *=*)
1140 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1141 # Reject names that are not valid shell variable names.
1142 case $ac_envvar in #(
1143 '' | [0-9]* | *[!_$as_cr_alnum]* )
1144 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1145 esac
1146 eval $ac_envvar=\$ac_optarg
1147 export $ac_envvar ;;
1150 # FIXME: should be removed in autoconf 3.0.
1151 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1152 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1153 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1154 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1157 esac
1158 done
1160 if test -n "$ac_prev"; then
1161 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1162 as_fn_error "missing argument to $ac_option"
1165 if test -n "$ac_unrecognized_opts"; then
1166 case $enable_option_checking in
1167 no) ;;
1168 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1169 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1170 esac
1173 # Check all directory arguments for consistency.
1174 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1175 datadir sysconfdir sharedstatedir localstatedir includedir \
1176 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1177 libdir localedir mandir
1179 eval ac_val=\$$ac_var
1180 # Remove trailing slashes.
1181 case $ac_val in
1182 */ )
1183 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1184 eval $ac_var=\$ac_val;;
1185 esac
1186 # Be sure to have absolute directory names.
1187 case $ac_val in
1188 [\\/$]* | ?:[\\/]* ) continue;;
1189 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1190 esac
1191 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1192 done
1194 # There might be people who depend on the old broken behavior: `$host'
1195 # used to hold the argument of --host etc.
1196 # FIXME: To remove some day.
1197 build=$build_alias
1198 host=$host_alias
1199 target=$target_alias
1201 # FIXME: To remove some day.
1202 if test "x$host_alias" != x; then
1203 if test "x$build_alias" = x; then
1204 cross_compiling=maybe
1205 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1206 If a cross compiler is detected then cross compile mode will be used." >&2
1207 elif test "x$build_alias" != "x$host_alias"; then
1208 cross_compiling=yes
1212 ac_tool_prefix=
1213 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1215 test "$silent" = yes && exec 6>/dev/null
1218 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1219 ac_ls_di=`ls -di .` &&
1220 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1221 as_fn_error "working directory cannot be determined"
1222 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1223 as_fn_error "pwd does not report name of working directory"
1226 # Find the source files, if location was not specified.
1227 if test -z "$srcdir"; then
1228 ac_srcdir_defaulted=yes
1229 # Try the directory containing this script, then the parent directory.
1230 ac_confdir=`$as_dirname -- "$as_myself" ||
1231 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1232 X"$as_myself" : 'X\(//\)[^/]' \| \
1233 X"$as_myself" : 'X\(//\)$' \| \
1234 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1235 $as_echo X"$as_myself" |
1236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1237 s//\1/
1240 /^X\(\/\/\)[^/].*/{
1241 s//\1/
1244 /^X\(\/\/\)$/{
1245 s//\1/
1248 /^X\(\/\).*/{
1249 s//\1/
1252 s/.*/./; q'`
1253 srcdir=$ac_confdir
1254 if test ! -r "$srcdir/$ac_unique_file"; then
1255 srcdir=..
1257 else
1258 ac_srcdir_defaulted=no
1260 if test ! -r "$srcdir/$ac_unique_file"; then
1261 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1262 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1264 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1265 ac_abs_confdir=`(
1266 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1267 pwd)`
1268 # When building in place, set srcdir=.
1269 if test "$ac_abs_confdir" = "$ac_pwd"; then
1270 srcdir=.
1272 # Remove unnecessary trailing slashes from srcdir.
1273 # Double slashes in file names in object file debugging info
1274 # mess up M-x gdb in Emacs.
1275 case $srcdir in
1276 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1277 esac
1278 for ac_var in $ac_precious_vars; do
1279 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1280 eval ac_env_${ac_var}_value=\$${ac_var}
1281 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1282 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1283 done
1286 # Report the --help message.
1288 if test "$ac_init_help" = "long"; then
1289 # Omit some internal or obsolete options to make the list less imposing.
1290 # This message is too long to be a string in the A/UX 3.1 sh.
1291 cat <<_ACEOF
1292 \`configure' configures LTO plugin for ld 0.1 to adapt to many kinds of systems.
1294 Usage: $0 [OPTION]... [VAR=VALUE]...
1296 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1297 VAR=VALUE. See below for descriptions of some of the useful variables.
1299 Defaults for the options are specified in brackets.
1301 Configuration:
1302 -h, --help display this help and exit
1303 --help=short display options specific to this package
1304 --help=recursive display the short help of all the included packages
1305 -V, --version display version information and exit
1306 -q, --quiet, --silent do not print \`checking...' messages
1307 --cache-file=FILE cache test results in FILE [disabled]
1308 -C, --config-cache alias for \`--cache-file=config.cache'
1309 -n, --no-create do not create output files
1310 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1312 Installation directories:
1313 --prefix=PREFIX install architecture-independent files in PREFIX
1314 [$ac_default_prefix]
1315 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1316 [PREFIX]
1318 By default, \`make install' will install all the files in
1319 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1320 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1321 for instance \`--prefix=\$HOME'.
1323 For better control, use the options below.
1325 Fine tuning of the installation directories:
1326 --bindir=DIR user executables [EPREFIX/bin]
1327 --sbindir=DIR system admin executables [EPREFIX/sbin]
1328 --libexecdir=DIR program executables [EPREFIX/libexec]
1329 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1330 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1331 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1332 --libdir=DIR object code libraries [EPREFIX/lib]
1333 --includedir=DIR C header files [PREFIX/include]
1334 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1335 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1336 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1337 --infodir=DIR info documentation [DATAROOTDIR/info]
1338 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1339 --mandir=DIR man documentation [DATAROOTDIR/man]
1340 --docdir=DIR documentation root [DATAROOTDIR/doc/lto-plugin]
1341 --htmldir=DIR html documentation [DOCDIR]
1342 --dvidir=DIR dvi documentation [DOCDIR]
1343 --pdfdir=DIR pdf documentation [DOCDIR]
1344 --psdir=DIR ps documentation [DOCDIR]
1345 _ACEOF
1347 cat <<\_ACEOF
1349 Program names:
1350 --program-prefix=PREFIX prepend PREFIX to installed program names
1351 --program-suffix=SUFFIX append SUFFIX to installed program names
1352 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1354 System types:
1355 --build=BUILD configure for building on BUILD [guessed]
1356 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1357 --target=TARGET configure for building compilers for TARGET [HOST]
1358 _ACEOF
1361 if test -n "$ac_init_help"; then
1362 case $ac_init_help in
1363 short | recursive ) echo "Configuration of LTO plugin for ld 0.1:";;
1364 esac
1365 cat <<\_ACEOF
1367 Optional Features:
1368 --disable-option-checking ignore unrecognized --enable/--with options
1369 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1370 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1371 --enable-maintainer-mode enable make rules and dependencies not useful
1372 (and sometimes confusing) to the casual installer
1373 --disable-dependency-tracking speeds up one-time build
1374 --enable-dependency-tracking do not reject slow dependency extractors
1375 --disable-largefile omit support for large files
1376 --enable-shared[=PKGS] build shared libraries [default=yes]
1377 --enable-static[=PKGS] build static libraries [default=yes]
1378 --enable-fast-install[=PKGS]
1379 optimize for fast installation [default=yes]
1380 --disable-libtool-lock avoid locking (might break parallel builds)
1382 Optional Packages:
1383 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1384 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1385 --with-build-libsubdir=DIR Directory where to find libraries for build system
1386 --with-libiberty=PATH specify the directory where to find libiberty
1387 [../libiberty]
1388 --with-pic try to use only PIC/non-PIC objects [default=use
1389 both]
1390 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1392 Some influential environment variables:
1393 CC C compiler command
1394 CFLAGS C compiler flags
1395 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1396 nonstandard directory <lib dir>
1397 LIBS libraries to pass to the linker, e.g. -l<library>
1398 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1399 you have headers in a nonstandard directory <include dir>
1400 CPP C preprocessor
1402 Use these variables to override the choices made by `configure' or to help
1403 it to find libraries and programs with nonstandard names/locations.
1405 Report bugs to the package provider.
1406 _ACEOF
1407 ac_status=$?
1410 if test "$ac_init_help" = "recursive"; then
1411 # If there are subdirs, report their specific --help.
1412 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1413 test -d "$ac_dir" ||
1414 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1415 continue
1416 ac_builddir=.
1418 case "$ac_dir" in
1419 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1421 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1422 # A ".." for each directory in $ac_dir_suffix.
1423 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1424 case $ac_top_builddir_sub in
1425 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1426 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1427 esac ;;
1428 esac
1429 ac_abs_top_builddir=$ac_pwd
1430 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1431 # for backward compatibility:
1432 ac_top_builddir=$ac_top_build_prefix
1434 case $srcdir in
1435 .) # We are building in place.
1436 ac_srcdir=.
1437 ac_top_srcdir=$ac_top_builddir_sub
1438 ac_abs_top_srcdir=$ac_pwd ;;
1439 [\\/]* | ?:[\\/]* ) # Absolute name.
1440 ac_srcdir=$srcdir$ac_dir_suffix;
1441 ac_top_srcdir=$srcdir
1442 ac_abs_top_srcdir=$srcdir ;;
1443 *) # Relative name.
1444 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1445 ac_top_srcdir=$ac_top_build_prefix$srcdir
1446 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1447 esac
1448 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1450 cd "$ac_dir" || { ac_status=$?; continue; }
1451 # Check for guested configure.
1452 if test -f "$ac_srcdir/configure.gnu"; then
1453 echo &&
1454 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1455 elif test -f "$ac_srcdir/configure"; then
1456 echo &&
1457 $SHELL "$ac_srcdir/configure" --help=recursive
1458 else
1459 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1460 fi || ac_status=$?
1461 cd "$ac_pwd" || { ac_status=$?; break; }
1462 done
1465 test -n "$ac_init_help" && exit $ac_status
1466 if $ac_init_version; then
1467 cat <<\_ACEOF
1468 LTO plugin for ld configure 0.1
1469 generated by GNU Autoconf 2.64
1471 Copyright (C) 2009 Free Software Foundation, Inc.
1472 This configure script is free software; the Free Software Foundation
1473 gives unlimited permission to copy, distribute and modify it.
1474 _ACEOF
1475 exit
1478 ## ------------------------ ##
1479 ## Autoconf initialization. ##
1480 ## ------------------------ ##
1482 # ac_fn_c_try_compile LINENO
1483 # --------------------------
1484 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1485 ac_fn_c_try_compile ()
1487 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1488 rm -f conftest.$ac_objext
1489 if { { ac_try="$ac_compile"
1490 case "(($ac_try" in
1491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1492 *) ac_try_echo=$ac_try;;
1493 esac
1494 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1495 $as_echo "$ac_try_echo"; } >&5
1496 (eval "$ac_compile") 2>conftest.err
1497 ac_status=$?
1498 if test -s conftest.err; then
1499 grep -v '^ *+' conftest.err >conftest.er1
1500 cat conftest.er1 >&5
1501 mv -f conftest.er1 conftest.err
1503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1504 test $ac_status = 0; } && {
1505 test -z "$ac_c_werror_flag" ||
1506 test ! -s conftest.err
1507 } && test -s conftest.$ac_objext; then :
1508 ac_retval=0
1509 else
1510 $as_echo "$as_me: failed program was:" >&5
1511 sed 's/^/| /' conftest.$ac_ext >&5
1513 ac_retval=1
1515 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1516 return $ac_retval
1518 } # ac_fn_c_try_compile
1520 # ac_fn_c_try_link LINENO
1521 # -----------------------
1522 # Try to link conftest.$ac_ext, and return whether this succeeded.
1523 ac_fn_c_try_link ()
1525 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1526 rm -f conftest.$ac_objext conftest$ac_exeext
1527 if { { ac_try="$ac_link"
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_link") 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; } && {
1543 test -z "$ac_c_werror_flag" ||
1544 test ! -s conftest.err
1545 } && test -s conftest$ac_exeext && {
1546 test "$cross_compiling" = yes ||
1547 $as_test_x conftest$ac_exeext
1548 }; then :
1549 ac_retval=0
1550 else
1551 $as_echo "$as_me: failed program was:" >&5
1552 sed 's/^/| /' conftest.$ac_ext >&5
1554 ac_retval=1
1556 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1557 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1558 # interfere with the next link command; also delete a directory that is
1559 # left behind by Apple's compiler. We do this before executing the actions.
1560 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1561 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1562 return $ac_retval
1564 } # ac_fn_c_try_link
1566 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1567 # -------------------------------------------------------
1568 # Tests whether HEADER exists and can be compiled using the include files in
1569 # INCLUDES, setting the cache variable VAR accordingly.
1570 ac_fn_c_check_header_compile ()
1572 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1574 $as_echo_n "checking for $2... " >&6; }
1575 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1576 $as_echo_n "(cached) " >&6
1577 else
1578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1579 /* end confdefs.h. */
1581 #include <$2>
1582 _ACEOF
1583 if ac_fn_c_try_compile "$LINENO"; then :
1584 eval "$3=yes"
1585 else
1586 eval "$3=no"
1588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1590 eval ac_res=\$$3
1591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1592 $as_echo "$ac_res" >&6; }
1593 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1595 } # ac_fn_c_check_header_compile
1597 # ac_fn_c_try_cpp LINENO
1598 # ----------------------
1599 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1600 ac_fn_c_try_cpp ()
1602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603 if { { ac_try="$ac_cpp conftest.$ac_ext"
1604 case "(($ac_try" in
1605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1606 *) ac_try_echo=$ac_try;;
1607 esac
1608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1609 $as_echo "$ac_try_echo"; } >&5
1610 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1611 ac_status=$?
1612 if test -s conftest.err; then
1613 grep -v '^ *+' conftest.err >conftest.er1
1614 cat conftest.er1 >&5
1615 mv -f conftest.er1 conftest.err
1617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1618 test $ac_status = 0; } >/dev/null && {
1619 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1620 test ! -s conftest.err
1621 }; then :
1622 ac_retval=0
1623 else
1624 $as_echo "$as_me: failed program was:" >&5
1625 sed 's/^/| /' conftest.$ac_ext >&5
1627 ac_retval=1
1629 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1630 return $ac_retval
1632 } # ac_fn_c_try_cpp
1634 # ac_fn_c_try_run LINENO
1635 # ----------------------
1636 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1637 # that executables *can* be run.
1638 ac_fn_c_try_run ()
1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641 if { { ac_try="$ac_link"
1642 case "(($ac_try" in
1643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1644 *) ac_try_echo=$ac_try;;
1645 esac
1646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1647 $as_echo "$ac_try_echo"; } >&5
1648 (eval "$ac_link") 2>&5
1649 ac_status=$?
1650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1652 { { case "(($ac_try" in
1653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654 *) ac_try_echo=$ac_try;;
1655 esac
1656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657 $as_echo "$ac_try_echo"; } >&5
1658 (eval "$ac_try") 2>&5
1659 ac_status=$?
1660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661 test $ac_status = 0; }; }; then :
1662 ac_retval=0
1663 else
1664 $as_echo "$as_me: program exited with status $ac_status" >&5
1665 $as_echo "$as_me: failed program was:" >&5
1666 sed 's/^/| /' conftest.$ac_ext >&5
1668 ac_retval=$ac_status
1670 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1671 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1672 return $ac_retval
1674 } # ac_fn_c_try_run
1676 # ac_fn_c_check_func LINENO FUNC VAR
1677 # ----------------------------------
1678 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1679 ac_fn_c_check_func ()
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1683 $as_echo_n "checking for $2... " >&6; }
1684 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1685 $as_echo_n "(cached) " >&6
1686 else
1687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1688 /* end confdefs.h. */
1689 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1691 #define $2 innocuous_$2
1693 /* System header to define __stub macros and hopefully few prototypes,
1694 which can conflict with char $2 (); below.
1695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1696 <limits.h> exists even on freestanding compilers. */
1698 #ifdef __STDC__
1699 # include <limits.h>
1700 #else
1701 # include <assert.h>
1702 #endif
1704 #undef $2
1706 /* Override any GCC internal prototype to avoid an error.
1707 Use char because int might match the return type of a GCC
1708 builtin and then its argument prototype would still apply. */
1709 #ifdef __cplusplus
1710 extern "C"
1711 #endif
1712 char $2 ();
1713 /* The GNU C library defines this for functions which it implements
1714 to always fail with ENOSYS. Some functions are actually named
1715 something starting with __ and the normal name is an alias. */
1716 #if defined __stub_$2 || defined __stub___$2
1717 choke me
1718 #endif
1721 main ()
1723 return $2 ();
1725 return 0;
1727 _ACEOF
1728 if ac_fn_c_try_link "$LINENO"; then :
1729 eval "$3=yes"
1730 else
1731 eval "$3=no"
1733 rm -f core conftest.err conftest.$ac_objext \
1734 conftest$ac_exeext conftest.$ac_ext
1736 eval ac_res=\$$3
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1738 $as_echo "$ac_res" >&6; }
1739 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1741 } # ac_fn_c_check_func
1743 # ac_fn_c_find_intX_t LINENO BITS VAR
1744 # -----------------------------------
1745 # Finds a signed integer type with width BITS, setting cache variable VAR
1746 # accordingly.
1747 ac_fn_c_find_intX_t ()
1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1751 $as_echo_n "checking for int$2_t... " >&6; }
1752 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1753 $as_echo_n "(cached) " >&6
1754 else
1755 eval "$3=no"
1756 for ac_type in int$2_t 'int' 'long int' \
1757 'long long int' 'short int' 'signed char'; do
1758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1759 /* end confdefs.h. */
1760 $ac_includes_default
1762 main ()
1764 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
1765 test_array [0] = 0
1768 return 0;
1770 _ACEOF
1771 if ac_fn_c_try_compile "$LINENO"; then :
1772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1773 /* end confdefs.h. */
1774 $ac_includes_default
1776 main ()
1778 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
1779 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
1780 test_array [0] = 0
1783 return 0;
1785 _ACEOF
1786 if ac_fn_c_try_compile "$LINENO"; then :
1788 else
1789 case $ac_type in #(
1790 int$2_t) :
1791 eval "$3=yes" ;; #(
1792 *) :
1793 eval "$3=\$ac_type" ;;
1794 esac
1796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1799 eval as_val=\$$3
1800 if test "x$as_val" = x""no; then :
1802 else
1803 break
1805 done
1807 eval ac_res=\$$3
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1809 $as_echo "$ac_res" >&6; }
1810 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1812 } # ac_fn_c_find_intX_t
1814 # ac_fn_c_find_uintX_t LINENO BITS VAR
1815 # ------------------------------------
1816 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1817 # accordingly.
1818 ac_fn_c_find_uintX_t ()
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1822 $as_echo_n "checking for uint$2_t... " >&6; }
1823 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1824 $as_echo_n "(cached) " >&6
1825 else
1826 eval "$3=no"
1827 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1828 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1830 /* end confdefs.h. */
1831 $ac_includes_default
1833 main ()
1835 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
1836 test_array [0] = 0
1839 return 0;
1841 _ACEOF
1842 if ac_fn_c_try_compile "$LINENO"; then :
1843 case $ac_type in #(
1844 uint$2_t) :
1845 eval "$3=yes" ;; #(
1846 *) :
1847 eval "$3=\$ac_type" ;;
1848 esac
1850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1851 eval as_val=\$$3
1852 if test "x$as_val" = x""no; then :
1854 else
1855 break
1857 done
1859 eval ac_res=\$$3
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1861 $as_echo "$ac_res" >&6; }
1862 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1864 } # ac_fn_c_find_uintX_t
1865 cat >config.log <<_ACEOF
1866 This file contains any messages produced by compilers while
1867 running configure, to aid debugging if configure makes a mistake.
1869 It was created by LTO plugin for ld $as_me 0.1, which was
1870 generated by GNU Autoconf 2.64. Invocation command line was
1872 $ $0 $@
1874 _ACEOF
1875 exec 5>>config.log
1877 cat <<_ASUNAME
1878 ## --------- ##
1879 ## Platform. ##
1880 ## --------- ##
1882 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1883 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1884 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1885 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1886 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1888 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1889 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1891 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1892 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1893 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1894 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1895 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1896 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1897 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1899 _ASUNAME
1901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1902 for as_dir in $PATH
1904 IFS=$as_save_IFS
1905 test -z "$as_dir" && as_dir=.
1906 $as_echo "PATH: $as_dir"
1907 done
1908 IFS=$as_save_IFS
1910 } >&5
1912 cat >&5 <<_ACEOF
1915 ## ----------- ##
1916 ## Core tests. ##
1917 ## ----------- ##
1919 _ACEOF
1922 # Keep a trace of the command line.
1923 # Strip out --no-create and --no-recursion so they do not pile up.
1924 # Strip out --silent because we don't want to record it for future runs.
1925 # Also quote any args containing shell meta-characters.
1926 # Make two passes to allow for proper duplicate-argument suppression.
1927 ac_configure_args=
1928 ac_configure_args0=
1929 ac_configure_args1=
1930 ac_must_keep_next=false
1931 for ac_pass in 1 2
1933 for ac_arg
1935 case $ac_arg in
1936 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1937 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1938 | -silent | --silent | --silen | --sile | --sil)
1939 continue ;;
1940 *\'*)
1941 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1942 esac
1943 case $ac_pass in
1944 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1946 as_fn_append ac_configure_args1 " '$ac_arg'"
1947 if test $ac_must_keep_next = true; then
1948 ac_must_keep_next=false # Got value, back to normal.
1949 else
1950 case $ac_arg in
1951 *=* | --config-cache | -C | -disable-* | --disable-* \
1952 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1953 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1954 | -with-* | --with-* | -without-* | --without-* | --x)
1955 case "$ac_configure_args0 " in
1956 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1957 esac
1959 -* ) ac_must_keep_next=true ;;
1960 esac
1962 as_fn_append ac_configure_args " '$ac_arg'"
1964 esac
1965 done
1966 done
1967 { ac_configure_args0=; unset ac_configure_args0;}
1968 { ac_configure_args1=; unset ac_configure_args1;}
1970 # When interrupted or exit'd, cleanup temporary files, and complete
1971 # config.log. We remove comments because anyway the quotes in there
1972 # would cause problems or look ugly.
1973 # WARNING: Use '\'' to represent an apostrophe within the trap.
1974 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1975 trap 'exit_status=$?
1976 # Save into config.log some information that might help in debugging.
1978 echo
1980 cat <<\_ASBOX
1981 ## ---------------- ##
1982 ## Cache variables. ##
1983 ## ---------------- ##
1984 _ASBOX
1985 echo
1986 # The following way of writing the cache mishandles newlines in values,
1988 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1989 eval ac_val=\$$ac_var
1990 case $ac_val in #(
1991 *${as_nl}*)
1992 case $ac_var in #(
1993 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1994 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1995 esac
1996 case $ac_var in #(
1997 _ | IFS | as_nl) ;; #(
1998 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1999 *) { eval $ac_var=; unset $ac_var;} ;;
2000 esac ;;
2001 esac
2002 done
2003 (set) 2>&1 |
2004 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2005 *${as_nl}ac_space=\ *)
2006 sed -n \
2007 "s/'\''/'\''\\\\'\'''\''/g;
2008 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2009 ;; #(
2011 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2013 esac |
2014 sort
2016 echo
2018 cat <<\_ASBOX
2019 ## ----------------- ##
2020 ## Output variables. ##
2021 ## ----------------- ##
2022 _ASBOX
2023 echo
2024 for ac_var in $ac_subst_vars
2026 eval ac_val=\$$ac_var
2027 case $ac_val in
2028 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2029 esac
2030 $as_echo "$ac_var='\''$ac_val'\''"
2031 done | sort
2032 echo
2034 if test -n "$ac_subst_files"; then
2035 cat <<\_ASBOX
2036 ## ------------------- ##
2037 ## File substitutions. ##
2038 ## ------------------- ##
2039 _ASBOX
2040 echo
2041 for ac_var in $ac_subst_files
2043 eval ac_val=\$$ac_var
2044 case $ac_val in
2045 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2046 esac
2047 $as_echo "$ac_var='\''$ac_val'\''"
2048 done | sort
2049 echo
2052 if test -s confdefs.h; then
2053 cat <<\_ASBOX
2054 ## ----------- ##
2055 ## confdefs.h. ##
2056 ## ----------- ##
2057 _ASBOX
2058 echo
2059 cat confdefs.h
2060 echo
2062 test "$ac_signal" != 0 &&
2063 $as_echo "$as_me: caught signal $ac_signal"
2064 $as_echo "$as_me: exit $exit_status"
2065 } >&5
2066 rm -f core *.core core.conftest.* &&
2067 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2068 exit $exit_status
2070 for ac_signal in 1 2 13 15; do
2071 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2072 done
2073 ac_signal=0
2075 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2076 rm -f -r conftest* confdefs.h
2078 $as_echo "/* confdefs.h */" > confdefs.h
2080 # Predefined preprocessor variables.
2082 cat >>confdefs.h <<_ACEOF
2083 #define PACKAGE_NAME "$PACKAGE_NAME"
2084 _ACEOF
2086 cat >>confdefs.h <<_ACEOF
2087 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2088 _ACEOF
2090 cat >>confdefs.h <<_ACEOF
2091 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2092 _ACEOF
2094 cat >>confdefs.h <<_ACEOF
2095 #define PACKAGE_STRING "$PACKAGE_STRING"
2096 _ACEOF
2098 cat >>confdefs.h <<_ACEOF
2099 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2100 _ACEOF
2102 cat >>confdefs.h <<_ACEOF
2103 #define PACKAGE_URL "$PACKAGE_URL"
2104 _ACEOF
2107 # Let the site file select an alternate cache file if it wants to.
2108 # Prefer an explicitly selected file to automatically selected ones.
2109 ac_site_file1=NONE
2110 ac_site_file2=NONE
2111 if test -n "$CONFIG_SITE"; then
2112 ac_site_file1=$CONFIG_SITE
2113 elif test "x$prefix" != xNONE; then
2114 ac_site_file1=$prefix/share/config.site
2115 ac_site_file2=$prefix/etc/config.site
2116 else
2117 ac_site_file1=$ac_default_prefix/share/config.site
2118 ac_site_file2=$ac_default_prefix/etc/config.site
2120 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2122 test "x$ac_site_file" = xNONE && continue
2123 if test -r "$ac_site_file"; then
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2125 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2126 sed 's/^/| /' "$ac_site_file" >&5
2127 . "$ac_site_file"
2129 done
2131 if test -r "$cache_file"; then
2132 # Some versions of bash will fail to source /dev/null (special
2133 # files actually), so we avoid doing that.
2134 if test -f "$cache_file"; then
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2136 $as_echo "$as_me: loading cache $cache_file" >&6;}
2137 case $cache_file in
2138 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2139 *) . "./$cache_file";;
2140 esac
2142 else
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2144 $as_echo "$as_me: creating cache $cache_file" >&6;}
2145 >$cache_file
2148 # Check that the precious variables saved in the cache have kept the same
2149 # value.
2150 ac_cache_corrupted=false
2151 for ac_var in $ac_precious_vars; do
2152 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2153 eval ac_new_set=\$ac_env_${ac_var}_set
2154 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2155 eval ac_new_val=\$ac_env_${ac_var}_value
2156 case $ac_old_set,$ac_new_set in
2157 set,)
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2159 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2160 ac_cache_corrupted=: ;;
2161 ,set)
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2163 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2164 ac_cache_corrupted=: ;;
2165 ,);;
2167 if test "x$ac_old_val" != "x$ac_new_val"; then
2168 # differences in whitespace do not lead to failure.
2169 ac_old_val_w=`echo x $ac_old_val`
2170 ac_new_val_w=`echo x $ac_new_val`
2171 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2173 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2174 ac_cache_corrupted=:
2175 else
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2177 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2178 eval $ac_var=\$ac_old_val
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2181 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2183 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2184 fi;;
2185 esac
2186 # Pass precious variables to config.status.
2187 if test "$ac_new_set" = set; then
2188 case $ac_new_val in
2189 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2190 *) ac_arg=$ac_var=$ac_new_val ;;
2191 esac
2192 case " $ac_configure_args " in
2193 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2194 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2195 esac
2197 done
2198 if $ac_cache_corrupted; then
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2200 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2202 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2203 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2205 ## -------------------- ##
2206 ## Main body of script. ##
2207 ## -------------------- ##
2209 ac_ext=c
2210 ac_cpp='$CPP $CPPFLAGS'
2211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2219 ac_aux_dir=
2220 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2221 for ac_t in install-sh install.sh shtool; do
2222 if test -f "$ac_dir/$ac_t"; then
2223 ac_aux_dir=$ac_dir
2224 ac_install_sh="$ac_aux_dir/$ac_t -c"
2225 break 2
2227 done
2228 done
2229 if test -z "$ac_aux_dir"; then
2230 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2233 # These three variables are undocumented and unsupported,
2234 # and are intended to be withdrawn in a future Autoconf release.
2235 # They can cause serious problems if a builder's source tree is in a directory
2236 # whose full name contains unusual characters.
2237 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2238 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2239 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2242 # Make sure we can run config.sub.
2243 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2244 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2247 $as_echo_n "checking build system type... " >&6; }
2248 if test "${ac_cv_build+set}" = set; then :
2249 $as_echo_n "(cached) " >&6
2250 else
2251 ac_build_alias=$build_alias
2252 test "x$ac_build_alias" = x &&
2253 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2254 test "x$ac_build_alias" = x &&
2255 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2256 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2257 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2261 $as_echo "$ac_cv_build" >&6; }
2262 case $ac_cv_build in
2263 *-*-*) ;;
2264 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2265 esac
2266 build=$ac_cv_build
2267 ac_save_IFS=$IFS; IFS='-'
2268 set x $ac_cv_build
2269 shift
2270 build_cpu=$1
2271 build_vendor=$2
2272 shift; shift
2273 # Remember, the first character of IFS is used to create $*,
2274 # except with old shells:
2275 build_os=$*
2276 IFS=$ac_save_IFS
2277 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2281 $as_echo_n "checking host system type... " >&6; }
2282 if test "${ac_cv_host+set}" = set; then :
2283 $as_echo_n "(cached) " >&6
2284 else
2285 if test "x$host_alias" = x; then
2286 ac_cv_host=$ac_cv_build
2287 else
2288 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2289 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2294 $as_echo "$ac_cv_host" >&6; }
2295 case $ac_cv_host in
2296 *-*-*) ;;
2297 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2298 esac
2299 host=$ac_cv_host
2300 ac_save_IFS=$IFS; IFS='-'
2301 set x $ac_cv_host
2302 shift
2303 host_cpu=$1
2304 host_vendor=$2
2305 shift; shift
2306 # Remember, the first character of IFS is used to create $*,
2307 # except with old shells:
2308 host_os=$*
2309 IFS=$ac_save_IFS
2310 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2314 $as_echo_n "checking target system type... " >&6; }
2315 if test "${ac_cv_target+set}" = set; then :
2316 $as_echo_n "(cached) " >&6
2317 else
2318 if test "x$target_alias" = x; then
2319 ac_cv_target=$ac_cv_host
2320 else
2321 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2322 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2327 $as_echo "$ac_cv_target" >&6; }
2328 case $ac_cv_target in
2329 *-*-*) ;;
2330 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2331 esac
2332 target=$ac_cv_target
2333 ac_save_IFS=$IFS; IFS='-'
2334 set x $ac_cv_target
2335 shift
2336 target_cpu=$1
2337 target_vendor=$2
2338 shift; shift
2339 # Remember, the first character of IFS is used to create $*,
2340 # except with old shells:
2341 target_os=$*
2342 IFS=$ac_save_IFS
2343 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2346 # The aliases save the names the user supplied, while $host etc.
2347 # will get canonicalized.
2348 test -n "$target_alias" &&
2349 test "$program_prefix$program_suffix$program_transform_name" = \
2350 NONENONEs,x,x, &&
2351 program_prefix=${target_alias}-
2353 case ${build_alias} in
2354 "") build_noncanonical=${build} ;;
2355 *) build_noncanonical=${build_alias} ;;
2356 esac
2358 case ${host_alias} in
2359 "") host_noncanonical=${build_noncanonical} ;;
2360 *) host_noncanonical=${host_alias} ;;
2361 esac
2363 case ${target_alias} in
2364 "") target_noncanonical=${host_noncanonical} ;;
2365 *) target_noncanonical=${target_alias} ;;
2366 esac
2369 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2370 # have matching libraries, they should use host libraries: Makefile.tpl
2371 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2372 # However, they still use the build modules, because the corresponding
2373 # host modules (e.g. bison) are only built for the host when bootstrap
2374 # finishes. So:
2375 # - build_subdir is where we find build modules, and never changes.
2376 # - build_libsubdir is where we find build libraries, and can be overridden.
2378 # Prefix 'build-' so this never conflicts with target_subdir.
2379 build_subdir="build-${build_noncanonical}"
2381 # Check whether --with-build-libsubdir was given.
2382 if test "${with_build_libsubdir+set}" = set; then :
2383 withval=$with_build_libsubdir; build_libsubdir="$withval"
2384 else
2385 build_libsubdir="$build_subdir"
2388 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2389 if ( test $srcdir = . && test -d gcc ) \
2390 || test -d $srcdir/../host-${host_noncanonical}; then
2391 host_subdir="host-${host_noncanonical}"
2392 else
2393 host_subdir=.
2395 # No prefix.
2396 target_subdir=${target_noncanonical}
2398 am__api_version='1.11'
2400 # Find a good install program. We prefer a C program (faster),
2401 # so one script is as good as another. But avoid the broken or
2402 # incompatible versions:
2403 # SysV /etc/install, /usr/sbin/install
2404 # SunOS /usr/etc/install
2405 # IRIX /sbin/install
2406 # AIX /bin/install
2407 # AmigaOS /C/install, which installs bootblocks on floppy discs
2408 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2409 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2410 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2411 # OS/2's system install, which has a completely different semantic
2412 # ./install, which can be erroneously created by make from ./install.sh.
2413 # Reject install programs that cannot install multiple files.
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2415 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2416 if test -z "$INSTALL"; then
2417 if test "${ac_cv_path_install+set}" = set; then :
2418 $as_echo_n "(cached) " >&6
2419 else
2420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2421 for as_dir in $PATH
2423 IFS=$as_save_IFS
2424 test -z "$as_dir" && as_dir=.
2425 # Account for people who put trailing slashes in PATH elements.
2426 case $as_dir/ in #((
2427 ./ | .// | /[cC]/* | \
2428 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2429 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2430 /usr/ucb/* ) ;;
2432 # OSF1 and SCO ODT 3.0 have their own names for install.
2433 # Don't use installbsd from OSF since it installs stuff as root
2434 # by default.
2435 for ac_prog in ginstall scoinst install; do
2436 for ac_exec_ext in '' $ac_executable_extensions; do
2437 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2438 if test $ac_prog = install &&
2439 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2440 # AIX install. It has an incompatible calling convention.
2442 elif test $ac_prog = install &&
2443 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2444 # program-specific install script used by HP pwplus--don't use.
2446 else
2447 rm -rf conftest.one conftest.two conftest.dir
2448 echo one > conftest.one
2449 echo two > conftest.two
2450 mkdir conftest.dir
2451 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2452 test -s conftest.one && test -s conftest.two &&
2453 test -s conftest.dir/conftest.one &&
2454 test -s conftest.dir/conftest.two
2455 then
2456 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2457 break 3
2461 done
2462 done
2464 esac
2466 done
2467 IFS=$as_save_IFS
2469 rm -rf conftest.one conftest.two conftest.dir
2472 if test "${ac_cv_path_install+set}" = set; then
2473 INSTALL=$ac_cv_path_install
2474 else
2475 # As a last resort, use the slow shell script. Don't cache a
2476 # value for INSTALL within a source directory, because that will
2477 # break other packages using the cache if that directory is
2478 # removed, or if the value is a relative name.
2479 INSTALL=$ac_install_sh
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2483 $as_echo "$INSTALL" >&6; }
2485 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2486 # It thinks the first close brace ends the variable substitution.
2487 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2489 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2491 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2494 $as_echo_n "checking whether build environment is sane... " >&6; }
2495 # Just in case
2496 sleep 1
2497 echo timestamp > conftest.file
2498 # Reject unsafe characters in $srcdir or the absolute working directory
2499 # name. Accept space and tab only in the latter.
2500 am_lf='
2502 case `pwd` in
2503 *[\\\"\#\$\&\'\`$am_lf]*)
2504 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2505 esac
2506 case $srcdir in
2507 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2508 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2509 esac
2511 # Do `set' in a subshell so we don't clobber the current shell's
2512 # arguments. Must try -L first in case configure is actually a
2513 # symlink; some systems play weird games with the mod time of symlinks
2514 # (eg FreeBSD returns the mod time of the symlink's containing
2515 # directory).
2516 if (
2517 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2518 if test "$*" = "X"; then
2519 # -L didn't work.
2520 set X `ls -t "$srcdir/configure" conftest.file`
2522 rm -f conftest.file
2523 if test "$*" != "X $srcdir/configure conftest.file" \
2524 && test "$*" != "X conftest.file $srcdir/configure"; then
2526 # If neither matched, then we have a broken ls. This can happen
2527 # if, for instance, CONFIG_SHELL is bash and it inherits a
2528 # broken ls alias from the environment. This has actually
2529 # happened. Such a system could not be considered "sane".
2530 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2531 alias in your environment" "$LINENO" 5
2534 test "$2" = conftest.file
2536 then
2537 # Ok.
2539 else
2540 as_fn_error "newly created file is older than distributed files!
2541 Check your system clock" "$LINENO" 5
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2544 $as_echo "yes" >&6; }
2545 test "$program_prefix" != NONE &&
2546 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2547 # Use a double $ so make ignores it.
2548 test "$program_suffix" != NONE &&
2549 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2550 # Double any \ or $.
2551 # By default was `s,x,x', remove it if useless.
2552 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2553 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2555 # expand $ac_aux_dir to an absolute path
2556 am_aux_dir=`cd $ac_aux_dir && pwd`
2558 if test x"${MISSING+set}" != xset; then
2559 case $am_aux_dir in
2560 *\ * | *\ *)
2561 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2563 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2564 esac
2566 # Use eval to expand $SHELL
2567 if eval "$MISSING --run true"; then
2568 am_missing_run="$MISSING --run "
2569 else
2570 am_missing_run=
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2572 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2575 if test x"${install_sh}" != xset; then
2576 case $am_aux_dir in
2577 *\ * | *\ *)
2578 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2580 install_sh="\${SHELL} $am_aux_dir/install-sh"
2581 esac
2584 # Installed binaries are usually stripped using `strip' when the user
2585 # run `make install-strip'. However `strip' might not be the right
2586 # tool to use in cross-compilation environments, therefore Automake
2587 # will honor the `STRIP' environment variable to overrule this program.
2588 if test "$cross_compiling" != no; then
2589 if test -n "$ac_tool_prefix"; then
2590 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2591 set dummy ${ac_tool_prefix}strip; ac_word=$2
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2593 $as_echo_n "checking for $ac_word... " >&6; }
2594 if test "${ac_cv_prog_STRIP+set}" = set; then :
2595 $as_echo_n "(cached) " >&6
2596 else
2597 if test -n "$STRIP"; then
2598 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2599 else
2600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2601 for as_dir in $PATH
2603 IFS=$as_save_IFS
2604 test -z "$as_dir" && as_dir=.
2605 for ac_exec_ext in '' $ac_executable_extensions; do
2606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2607 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2609 break 2
2611 done
2612 done
2613 IFS=$as_save_IFS
2617 STRIP=$ac_cv_prog_STRIP
2618 if test -n "$STRIP"; then
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2620 $as_echo "$STRIP" >&6; }
2621 else
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2623 $as_echo "no" >&6; }
2628 if test -z "$ac_cv_prog_STRIP"; then
2629 ac_ct_STRIP=$STRIP
2630 # Extract the first word of "strip", so it can be a program name with args.
2631 set dummy strip; ac_word=$2
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2633 $as_echo_n "checking for $ac_word... " >&6; }
2634 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2635 $as_echo_n "(cached) " >&6
2636 else
2637 if test -n "$ac_ct_STRIP"; then
2638 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2639 else
2640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641 for as_dir in $PATH
2643 IFS=$as_save_IFS
2644 test -z "$as_dir" && as_dir=.
2645 for ac_exec_ext in '' $ac_executable_extensions; do
2646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2647 ac_cv_prog_ac_ct_STRIP="strip"
2648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2649 break 2
2651 done
2652 done
2653 IFS=$as_save_IFS
2657 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2658 if test -n "$ac_ct_STRIP"; then
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2660 $as_echo "$ac_ct_STRIP" >&6; }
2661 else
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2663 $as_echo "no" >&6; }
2666 if test "x$ac_ct_STRIP" = x; then
2667 STRIP=":"
2668 else
2669 case $cross_compiling:$ac_tool_warned in
2670 yes:)
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2672 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2673 ac_tool_warned=yes ;;
2674 esac
2675 STRIP=$ac_ct_STRIP
2677 else
2678 STRIP="$ac_cv_prog_STRIP"
2682 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2685 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2686 if test -z "$MKDIR_P"; then
2687 if test "${ac_cv_path_mkdir+set}" = set; then :
2688 $as_echo_n "(cached) " >&6
2689 else
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2693 IFS=$as_save_IFS
2694 test -z "$as_dir" && as_dir=.
2695 for ac_prog in mkdir gmkdir; do
2696 for ac_exec_ext in '' $ac_executable_extensions; do
2697 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2698 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2699 'mkdir (GNU coreutils) '* | \
2700 'mkdir (coreutils) '* | \
2701 'mkdir (fileutils) '4.1*)
2702 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2703 break 3;;
2704 esac
2705 done
2706 done
2707 done
2708 IFS=$as_save_IFS
2712 if test "${ac_cv_path_mkdir+set}" = set; then
2713 MKDIR_P="$ac_cv_path_mkdir -p"
2714 else
2715 # As a last resort, use the slow shell script. Don't cache a
2716 # value for MKDIR_P within a source directory, because that will
2717 # break other packages using the cache if that directory is
2718 # removed, or if the value is a relative name.
2719 test -d ./--version && rmdir ./--version
2720 MKDIR_P="$ac_install_sh -d"
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2724 $as_echo "$MKDIR_P" >&6; }
2726 mkdir_p="$MKDIR_P"
2727 case $mkdir_p in
2728 [\\/$]* | ?:[\\/]*) ;;
2729 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2730 esac
2732 for ac_prog in gawk mawk nawk awk
2734 # Extract the first word of "$ac_prog", so it can be a program name with args.
2735 set dummy $ac_prog; ac_word=$2
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2737 $as_echo_n "checking for $ac_word... " >&6; }
2738 if test "${ac_cv_prog_AWK+set}" = set; then :
2739 $as_echo_n "(cached) " >&6
2740 else
2741 if test -n "$AWK"; then
2742 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2743 else
2744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745 for as_dir in $PATH
2747 IFS=$as_save_IFS
2748 test -z "$as_dir" && as_dir=.
2749 for ac_exec_ext in '' $ac_executable_extensions; do
2750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2751 ac_cv_prog_AWK="$ac_prog"
2752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2753 break 2
2755 done
2756 done
2757 IFS=$as_save_IFS
2761 AWK=$ac_cv_prog_AWK
2762 if test -n "$AWK"; then
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2764 $as_echo "$AWK" >&6; }
2765 else
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2767 $as_echo "no" >&6; }
2771 test -n "$AWK" && break
2772 done
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2775 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2776 set x ${MAKE-make}
2777 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2778 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2779 $as_echo_n "(cached) " >&6
2780 else
2781 cat >conftest.make <<\_ACEOF
2782 SHELL = /bin/sh
2783 all:
2784 @echo '@@@%%%=$(MAKE)=@@@%%%'
2785 _ACEOF
2786 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2787 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2788 *@@@%%%=?*=@@@%%%*)
2789 eval ac_cv_prog_make_${ac_make}_set=yes;;
2791 eval ac_cv_prog_make_${ac_make}_set=no;;
2792 esac
2793 rm -f conftest.make
2795 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2797 $as_echo "yes" >&6; }
2798 SET_MAKE=
2799 else
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2801 $as_echo "no" >&6; }
2802 SET_MAKE="MAKE=${MAKE-make}"
2805 rm -rf .tst 2>/dev/null
2806 mkdir .tst 2>/dev/null
2807 if test -d .tst; then
2808 am__leading_dot=.
2809 else
2810 am__leading_dot=_
2812 rmdir .tst 2>/dev/null
2814 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2815 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2816 # is not polluted with repeated "-I."
2817 am__isrc=' -I$(srcdir)'
2818 # test to see if srcdir already configured
2819 if test -f $srcdir/config.status; then
2820 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2824 # test whether we have cygpath
2825 if test -z "$CYGPATH_W"; then
2826 if (cygpath --version) >/dev/null 2>/dev/null; then
2827 CYGPATH_W='cygpath -w'
2828 else
2829 CYGPATH_W=echo
2834 # Define the identity of the package.
2835 PACKAGE='lto-plugin'
2836 VERSION='0.1'
2839 cat >>confdefs.h <<_ACEOF
2840 #define PACKAGE "$PACKAGE"
2841 _ACEOF
2844 cat >>confdefs.h <<_ACEOF
2845 #define VERSION "$VERSION"
2846 _ACEOF
2848 # Some tools Automake needs.
2850 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2853 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2856 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2859 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2862 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2864 # We need awk for the "check" target. The system "awk" is bad on
2865 # some platforms.
2866 # Always define AMTAR for backward compatibility.
2868 AMTAR=${AMTAR-"${am_missing_run}tar"}
2870 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2878 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2879 # Check whether --enable-maintainer-mode was given.
2880 if test "${enable_maintainer_mode+set}" = set; then :
2881 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2882 else
2883 USE_MAINTAINER_MODE=no
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2887 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2888 if test $USE_MAINTAINER_MODE = yes; then
2889 MAINTAINER_MODE_TRUE=
2890 MAINTAINER_MODE_FALSE='#'
2891 else
2892 MAINTAINER_MODE_TRUE='#'
2893 MAINTAINER_MODE_FALSE=
2896 MAINT=$MAINTAINER_MODE_TRUE
2900 # Check whether --with-libiberty was given.
2901 if test "${with_libiberty+set}" = set; then :
2902 withval=$with_libiberty;
2903 else
2904 with_libiberty=../libiberty
2908 ac_ext=c
2909 ac_cpp='$CPP $CPPFLAGS'
2910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2913 if test -n "$ac_tool_prefix"; then
2914 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2915 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2917 $as_echo_n "checking for $ac_word... " >&6; }
2918 if test "${ac_cv_prog_CC+set}" = set; then :
2919 $as_echo_n "(cached) " >&6
2920 else
2921 if test -n "$CC"; then
2922 ac_cv_prog_CC="$CC" # Let the user override the test.
2923 else
2924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2925 for as_dir in $PATH
2927 IFS=$as_save_IFS
2928 test -z "$as_dir" && as_dir=.
2929 for ac_exec_ext in '' $ac_executable_extensions; do
2930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2931 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2933 break 2
2935 done
2936 done
2937 IFS=$as_save_IFS
2941 CC=$ac_cv_prog_CC
2942 if test -n "$CC"; then
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2944 $as_echo "$CC" >&6; }
2945 else
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2947 $as_echo "no" >&6; }
2952 if test -z "$ac_cv_prog_CC"; then
2953 ac_ct_CC=$CC
2954 # Extract the first word of "gcc", so it can be a program name with args.
2955 set dummy gcc; ac_word=$2
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2957 $as_echo_n "checking for $ac_word... " >&6; }
2958 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2959 $as_echo_n "(cached) " >&6
2960 else
2961 if test -n "$ac_ct_CC"; then
2962 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2963 else
2964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2965 for as_dir in $PATH
2967 IFS=$as_save_IFS
2968 test -z "$as_dir" && as_dir=.
2969 for ac_exec_ext in '' $ac_executable_extensions; do
2970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2971 ac_cv_prog_ac_ct_CC="gcc"
2972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2973 break 2
2975 done
2976 done
2977 IFS=$as_save_IFS
2981 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2982 if test -n "$ac_ct_CC"; then
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2984 $as_echo "$ac_ct_CC" >&6; }
2985 else
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2987 $as_echo "no" >&6; }
2990 if test "x$ac_ct_CC" = x; then
2991 CC=""
2992 else
2993 case $cross_compiling:$ac_tool_warned in
2994 yes:)
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2996 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2997 ac_tool_warned=yes ;;
2998 esac
2999 CC=$ac_ct_CC
3001 else
3002 CC="$ac_cv_prog_CC"
3005 if test -z "$CC"; then
3006 if test -n "$ac_tool_prefix"; then
3007 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3008 set dummy ${ac_tool_prefix}cc; ac_word=$2
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3010 $as_echo_n "checking for $ac_word... " >&6; }
3011 if test "${ac_cv_prog_CC+set}" = set; then :
3012 $as_echo_n "(cached) " >&6
3013 else
3014 if test -n "$CC"; then
3015 ac_cv_prog_CC="$CC" # Let the user override the test.
3016 else
3017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018 for as_dir in $PATH
3020 IFS=$as_save_IFS
3021 test -z "$as_dir" && as_dir=.
3022 for ac_exec_ext in '' $ac_executable_extensions; do
3023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3024 ac_cv_prog_CC="${ac_tool_prefix}cc"
3025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3026 break 2
3028 done
3029 done
3030 IFS=$as_save_IFS
3034 CC=$ac_cv_prog_CC
3035 if test -n "$CC"; then
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3037 $as_echo "$CC" >&6; }
3038 else
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3040 $as_echo "no" >&6; }
3046 if test -z "$CC"; then
3047 # Extract the first word of "cc", so it can be a program name with args.
3048 set dummy cc; ac_word=$2
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3050 $as_echo_n "checking for $ac_word... " >&6; }
3051 if test "${ac_cv_prog_CC+set}" = set; then :
3052 $as_echo_n "(cached) " >&6
3053 else
3054 if test -n "$CC"; then
3055 ac_cv_prog_CC="$CC" # Let the user override the test.
3056 else
3057 ac_prog_rejected=no
3058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3059 for as_dir in $PATH
3061 IFS=$as_save_IFS
3062 test -z "$as_dir" && as_dir=.
3063 for ac_exec_ext in '' $ac_executable_extensions; do
3064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3065 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3066 ac_prog_rejected=yes
3067 continue
3069 ac_cv_prog_CC="cc"
3070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3071 break 2
3073 done
3074 done
3075 IFS=$as_save_IFS
3077 if test $ac_prog_rejected = yes; then
3078 # We found a bogon in the path, so make sure we never use it.
3079 set dummy $ac_cv_prog_CC
3080 shift
3081 if test $# != 0; then
3082 # We chose a different compiler from the bogus one.
3083 # However, it has the same basename, so the bogon will be chosen
3084 # first if we set CC to just the basename; use the full file name.
3085 shift
3086 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3091 CC=$ac_cv_prog_CC
3092 if test -n "$CC"; then
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3094 $as_echo "$CC" >&6; }
3095 else
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3097 $as_echo "no" >&6; }
3102 if test -z "$CC"; then
3103 if test -n "$ac_tool_prefix"; then
3104 for ac_prog in cl.exe
3106 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3107 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3109 $as_echo_n "checking for $ac_word... " >&6; }
3110 if test "${ac_cv_prog_CC+set}" = set; then :
3111 $as_echo_n "(cached) " >&6
3112 else
3113 if test -n "$CC"; then
3114 ac_cv_prog_CC="$CC" # Let the user override the test.
3115 else
3116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3117 for as_dir in $PATH
3119 IFS=$as_save_IFS
3120 test -z "$as_dir" && as_dir=.
3121 for ac_exec_ext in '' $ac_executable_extensions; do
3122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3123 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3125 break 2
3127 done
3128 done
3129 IFS=$as_save_IFS
3133 CC=$ac_cv_prog_CC
3134 if test -n "$CC"; then
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3136 $as_echo "$CC" >&6; }
3137 else
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3139 $as_echo "no" >&6; }
3143 test -n "$CC" && break
3144 done
3146 if test -z "$CC"; then
3147 ac_ct_CC=$CC
3148 for ac_prog in cl.exe
3150 # Extract the first word of "$ac_prog", so it can be a program name with args.
3151 set dummy $ac_prog; ac_word=$2
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3153 $as_echo_n "checking for $ac_word... " >&6; }
3154 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3155 $as_echo_n "(cached) " >&6
3156 else
3157 if test -n "$ac_ct_CC"; then
3158 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3159 else
3160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161 for as_dir in $PATH
3163 IFS=$as_save_IFS
3164 test -z "$as_dir" && as_dir=.
3165 for ac_exec_ext in '' $ac_executable_extensions; do
3166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3167 ac_cv_prog_ac_ct_CC="$ac_prog"
3168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3169 break 2
3171 done
3172 done
3173 IFS=$as_save_IFS
3177 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3178 if test -n "$ac_ct_CC"; then
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3180 $as_echo "$ac_ct_CC" >&6; }
3181 else
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3183 $as_echo "no" >&6; }
3187 test -n "$ac_ct_CC" && break
3188 done
3190 if test "x$ac_ct_CC" = x; then
3191 CC=""
3192 else
3193 case $cross_compiling:$ac_tool_warned in
3194 yes:)
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3196 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3197 ac_tool_warned=yes ;;
3198 esac
3199 CC=$ac_ct_CC
3206 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3207 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3208 as_fn_error "no acceptable C compiler found in \$PATH
3209 See \`config.log' for more details." "$LINENO" 5; }
3211 # Provide some information about the compiler.
3212 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3213 set X $ac_compile
3214 ac_compiler=$2
3215 for ac_option in --version -v -V -qversion; do
3216 { { ac_try="$ac_compiler $ac_option >&5"
3217 case "(($ac_try" in
3218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3219 *) ac_try_echo=$ac_try;;
3220 esac
3221 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3222 $as_echo "$ac_try_echo"; } >&5
3223 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3224 ac_status=$?
3225 if test -s conftest.err; then
3226 sed '10a\
3227 ... rest of stderr output deleted ...
3228 10q' conftest.err >conftest.er1
3229 cat conftest.er1 >&5
3230 rm -f conftest.er1 conftest.err
3232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3233 test $ac_status = 0; }
3234 done
3236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3237 /* end confdefs.h. */
3240 main ()
3244 return 0;
3246 _ACEOF
3247 ac_clean_files_save=$ac_clean_files
3248 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3249 # Try to create an executable without -o first, disregard a.out.
3250 # It will help us diagnose broken compilers, and finding out an intuition
3251 # of exeext.
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3253 $as_echo_n "checking for C compiler default output file name... " >&6; }
3254 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3256 # The possible output files:
3257 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3259 ac_rmfiles=
3260 for ac_file in $ac_files
3262 case $ac_file in
3263 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3264 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3265 esac
3266 done
3267 rm -f $ac_rmfiles
3269 if { { ac_try="$ac_link_default"
3270 case "(($ac_try" in
3271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272 *) ac_try_echo=$ac_try;;
3273 esac
3274 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3275 $as_echo "$ac_try_echo"; } >&5
3276 (eval "$ac_link_default") 2>&5
3277 ac_status=$?
3278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3279 test $ac_status = 0; }; then :
3280 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3281 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3282 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3283 # so that the user can short-circuit this test for compilers unknown to
3284 # Autoconf.
3285 for ac_file in $ac_files ''
3287 test -f "$ac_file" || continue
3288 case $ac_file in
3289 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3291 [ab].out )
3292 # We found the default executable, but exeext='' is most
3293 # certainly right.
3294 break;;
3295 *.* )
3296 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3297 then :; else
3298 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3300 # We set ac_cv_exeext here because the later test for it is not
3301 # safe: cross compilers may not add the suffix if given an `-o'
3302 # argument, so we may need to know it at that point already.
3303 # Even if this section looks crufty: it has the advantage of
3304 # actually working.
3305 break;;
3307 break;;
3308 esac
3309 done
3310 test "$ac_cv_exeext" = no && ac_cv_exeext=
3312 else
3313 ac_file=''
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3316 $as_echo "$ac_file" >&6; }
3317 if test -z "$ac_file"; then :
3318 $as_echo "$as_me: failed program was:" >&5
3319 sed 's/^/| /' conftest.$ac_ext >&5
3321 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3322 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3323 { as_fn_set_status 77
3324 as_fn_error "C compiler cannot create executables
3325 See \`config.log' for more details." "$LINENO" 5; }; }
3327 ac_exeext=$ac_cv_exeext
3329 # Check that the compiler produces executables we can run. If not, either
3330 # the compiler is broken, or we cross compile.
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3332 $as_echo_n "checking whether the C compiler works... " >&6; }
3333 # If not cross compiling, check that we can run a simple program.
3334 if test "$cross_compiling" != yes; then
3335 if { ac_try='./$ac_file'
3336 { { case "(($ac_try" in
3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 *) ac_try_echo=$ac_try;;
3339 esac
3340 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3341 $as_echo "$ac_try_echo"; } >&5
3342 (eval "$ac_try") 2>&5
3343 ac_status=$?
3344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3345 test $ac_status = 0; }; }; then
3346 cross_compiling=no
3347 else
3348 if test "$cross_compiling" = maybe; then
3349 cross_compiling=yes
3350 else
3351 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3352 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3353 as_fn_error "cannot run C compiled programs.
3354 If you meant to cross compile, use \`--host'.
3355 See \`config.log' for more details." "$LINENO" 5; }
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3360 $as_echo "yes" >&6; }
3362 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3363 ac_clean_files=$ac_clean_files_save
3364 # Check that the compiler produces executables we can run. If not, either
3365 # the compiler is broken, or we cross compile.
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3367 $as_echo_n "checking whether we are cross compiling... " >&6; }
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3369 $as_echo "$cross_compiling" >&6; }
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3372 $as_echo_n "checking for suffix of executables... " >&6; }
3373 if { { ac_try="$ac_link"
3374 case "(($ac_try" in
3375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376 *) ac_try_echo=$ac_try;;
3377 esac
3378 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3379 $as_echo "$ac_try_echo"; } >&5
3380 (eval "$ac_link") 2>&5
3381 ac_status=$?
3382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3383 test $ac_status = 0; }; then :
3384 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3385 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3386 # work properly (i.e., refer to `conftest.exe'), while it won't with
3387 # `rm'.
3388 for ac_file in conftest.exe conftest conftest.*; do
3389 test -f "$ac_file" || continue
3390 case $ac_file in
3391 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3392 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3393 break;;
3394 * ) break;;
3395 esac
3396 done
3397 else
3398 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3400 as_fn_error "cannot compute suffix of executables: cannot compile and link
3401 See \`config.log' for more details." "$LINENO" 5; }
3403 rm -f conftest$ac_cv_exeext
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3405 $as_echo "$ac_cv_exeext" >&6; }
3407 rm -f conftest.$ac_ext
3408 EXEEXT=$ac_cv_exeext
3409 ac_exeext=$EXEEXT
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3411 $as_echo_n "checking for suffix of object files... " >&6; }
3412 if test "${ac_cv_objext+set}" = set; then :
3413 $as_echo_n "(cached) " >&6
3414 else
3415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3416 /* end confdefs.h. */
3419 main ()
3423 return 0;
3425 _ACEOF
3426 rm -f conftest.o conftest.obj
3427 if { { ac_try="$ac_compile"
3428 case "(($ac_try" in
3429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430 *) ac_try_echo=$ac_try;;
3431 esac
3432 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3433 $as_echo "$ac_try_echo"; } >&5
3434 (eval "$ac_compile") 2>&5
3435 ac_status=$?
3436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3437 test $ac_status = 0; }; then :
3438 for ac_file in conftest.o conftest.obj conftest.*; do
3439 test -f "$ac_file" || continue;
3440 case $ac_file in
3441 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3442 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3443 break;;
3444 esac
3445 done
3446 else
3447 $as_echo "$as_me: failed program was:" >&5
3448 sed 's/^/| /' conftest.$ac_ext >&5
3450 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3451 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3452 as_fn_error "cannot compute suffix of object files: cannot compile
3453 See \`config.log' for more details." "$LINENO" 5; }
3455 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3458 $as_echo "$ac_cv_objext" >&6; }
3459 OBJEXT=$ac_cv_objext
3460 ac_objext=$OBJEXT
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3462 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3463 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3464 $as_echo_n "(cached) " >&6
3465 else
3466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3467 /* end confdefs.h. */
3470 main ()
3472 #ifndef __GNUC__
3473 choke me
3474 #endif
3477 return 0;
3479 _ACEOF
3480 if ac_fn_c_try_compile "$LINENO"; then :
3481 ac_compiler_gnu=yes
3482 else
3483 ac_compiler_gnu=no
3485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3486 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3490 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3491 if test $ac_compiler_gnu = yes; then
3492 GCC=yes
3493 else
3494 GCC=
3496 ac_test_CFLAGS=${CFLAGS+set}
3497 ac_save_CFLAGS=$CFLAGS
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3499 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3500 if test "${ac_cv_prog_cc_g+set}" = set; then :
3501 $as_echo_n "(cached) " >&6
3502 else
3503 ac_save_c_werror_flag=$ac_c_werror_flag
3504 ac_c_werror_flag=yes
3505 ac_cv_prog_cc_g=no
3506 CFLAGS="-g"
3507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3508 /* end confdefs.h. */
3511 main ()
3515 return 0;
3517 _ACEOF
3518 if ac_fn_c_try_compile "$LINENO"; then :
3519 ac_cv_prog_cc_g=yes
3520 else
3521 CFLAGS=""
3522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3523 /* end confdefs.h. */
3526 main ()
3530 return 0;
3532 _ACEOF
3533 if ac_fn_c_try_compile "$LINENO"; then :
3535 else
3536 ac_c_werror_flag=$ac_save_c_werror_flag
3537 CFLAGS="-g"
3538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3539 /* end confdefs.h. */
3542 main ()
3546 return 0;
3548 _ACEOF
3549 if ac_fn_c_try_compile "$LINENO"; then :
3550 ac_cv_prog_cc_g=yes
3552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3557 ac_c_werror_flag=$ac_save_c_werror_flag
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3560 $as_echo "$ac_cv_prog_cc_g" >&6; }
3561 if test "$ac_test_CFLAGS" = set; then
3562 CFLAGS=$ac_save_CFLAGS
3563 elif test $ac_cv_prog_cc_g = yes; then
3564 if test "$GCC" = yes; then
3565 CFLAGS="-g -O2"
3566 else
3567 CFLAGS="-g"
3569 else
3570 if test "$GCC" = yes; then
3571 CFLAGS="-O2"
3572 else
3573 CFLAGS=
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3577 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3578 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3579 $as_echo_n "(cached) " >&6
3580 else
3581 ac_cv_prog_cc_c89=no
3582 ac_save_CC=$CC
3583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3584 /* end confdefs.h. */
3585 #include <stdarg.h>
3586 #include <stdio.h>
3587 #include <sys/types.h>
3588 #include <sys/stat.h>
3589 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3590 struct buf { int x; };
3591 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3592 static char *e (p, i)
3593 char **p;
3594 int i;
3596 return p[i];
3598 static char *f (char * (*g) (char **, int), char **p, ...)
3600 char *s;
3601 va_list v;
3602 va_start (v,p);
3603 s = g (p, va_arg (v,int));
3604 va_end (v);
3605 return s;
3608 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3609 function prototypes and stuff, but not '\xHH' hex character constants.
3610 These don't provoke an error unfortunately, instead are silently treated
3611 as 'x'. The following induces an error, until -std is added to get
3612 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3613 array size at least. It's necessary to write '\x00'==0 to get something
3614 that's true only with -std. */
3615 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3617 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3618 inside strings and character constants. */
3619 #define FOO(x) 'x'
3620 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3622 int test (int i, double x);
3623 struct s1 {int (*f) (int a);};
3624 struct s2 {int (*f) (double a);};
3625 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3626 int argc;
3627 char **argv;
3629 main ()
3631 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3633 return 0;
3635 _ACEOF
3636 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3637 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3639 CC="$ac_save_CC $ac_arg"
3640 if ac_fn_c_try_compile "$LINENO"; then :
3641 ac_cv_prog_cc_c89=$ac_arg
3643 rm -f core conftest.err conftest.$ac_objext
3644 test "x$ac_cv_prog_cc_c89" != "xno" && break
3645 done
3646 rm -f conftest.$ac_ext
3647 CC=$ac_save_CC
3650 # AC_CACHE_VAL
3651 case "x$ac_cv_prog_cc_c89" in
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3654 $as_echo "none needed" >&6; } ;;
3655 xno)
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3657 $as_echo "unsupported" >&6; } ;;
3659 CC="$CC $ac_cv_prog_cc_c89"
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3661 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3662 esac
3663 if test "x$ac_cv_prog_cc_c89" != xno; then :
3667 ac_ext=c
3668 ac_cpp='$CPP $CPPFLAGS'
3669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3672 DEPDIR="${am__leading_dot}deps"
3674 ac_config_commands="$ac_config_commands depfiles"
3677 am_make=${MAKE-make}
3678 cat > confinc << 'END'
3679 am__doit:
3680 @echo this is the am__doit target
3681 .PHONY: am__doit
3683 # If we don't find an include directive, just comment out the code.
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3685 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3686 am__include="#"
3687 am__quote=
3688 _am_result=none
3689 # First try GNU make style include.
3690 echo "include confinc" > confmf
3691 # Ignore all kinds of additional output from `make'.
3692 case `$am_make -s -f confmf 2> /dev/null` in #(
3693 *the\ am__doit\ target*)
3694 am__include=include
3695 am__quote=
3696 _am_result=GNU
3698 esac
3699 # Now try BSD make style include.
3700 if test "$am__include" = "#"; then
3701 echo '.include "confinc"' > confmf
3702 case `$am_make -s -f confmf 2> /dev/null` in #(
3703 *the\ am__doit\ target*)
3704 am__include=.include
3705 am__quote="\""
3706 _am_result=BSD
3708 esac
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3713 $as_echo "$_am_result" >&6; }
3714 rm -f confinc confmf
3716 # Check whether --enable-dependency-tracking was given.
3717 if test "${enable_dependency_tracking+set}" = set; then :
3718 enableval=$enable_dependency_tracking;
3721 if test "x$enable_dependency_tracking" != xno; then
3722 am_depcomp="$ac_aux_dir/depcomp"
3723 AMDEPBACKSLASH='\'
3725 if test "x$enable_dependency_tracking" != xno; then
3726 AMDEP_TRUE=
3727 AMDEP_FALSE='#'
3728 else
3729 AMDEP_TRUE='#'
3730 AMDEP_FALSE=
3735 depcc="$CC" am_compiler_list=
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3738 $as_echo_n "checking dependency style of $depcc... " >&6; }
3739 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3740 $as_echo_n "(cached) " >&6
3741 else
3742 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3743 # We make a subdir and do the tests there. Otherwise we can end up
3744 # making bogus files that we don't know about and never remove. For
3745 # instance it was reported that on HP-UX the gcc test will end up
3746 # making a dummy file named `D' -- because `-MD' means `put the output
3747 # in D'.
3748 mkdir conftest.dir
3749 # Copy depcomp to subdir because otherwise we won't find it if we're
3750 # using a relative directory.
3751 cp "$am_depcomp" conftest.dir
3752 cd conftest.dir
3753 # We will build objects and dependencies in a subdirectory because
3754 # it helps to detect inapplicable dependency modes. For instance
3755 # both Tru64's cc and ICC support -MD to output dependencies as a
3756 # side effect of compilation, but ICC will put the dependencies in
3757 # the current directory while Tru64 will put them in the object
3758 # directory.
3759 mkdir sub
3761 am_cv_CC_dependencies_compiler_type=none
3762 if test "$am_compiler_list" = ""; then
3763 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3765 am__universal=false
3766 case " $depcc " in #(
3767 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3768 esac
3770 for depmode in $am_compiler_list; do
3771 # Setup a source with many dependencies, because some compilers
3772 # like to wrap large dependency lists on column 80 (with \), and
3773 # we should not choose a depcomp mode which is confused by this.
3775 # We need to recreate these files for each test, as the compiler may
3776 # overwrite some of them when testing with obscure command lines.
3777 # This happens at least with the AIX C compiler.
3778 : > sub/conftest.c
3779 for i in 1 2 3 4 5 6; do
3780 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3781 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3782 # Solaris 8's {/usr,}/bin/sh.
3783 touch sub/conftst$i.h
3784 done
3785 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3787 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3788 # mode. It turns out that the SunPro C++ compiler does not properly
3789 # handle `-M -o', and we need to detect this. Also, some Intel
3790 # versions had trouble with output in subdirs
3791 am__obj=sub/conftest.${OBJEXT-o}
3792 am__minus_obj="-o $am__obj"
3793 case $depmode in
3794 gcc)
3795 # This depmode causes a compiler race in universal mode.
3796 test "$am__universal" = false || continue
3798 nosideeffect)
3799 # after this tag, mechanisms are not by side-effect, so they'll
3800 # only be used when explicitly requested
3801 if test "x$enable_dependency_tracking" = xyes; then
3802 continue
3803 else
3804 break
3807 msvisualcpp | msvcmsys)
3808 # This compiler won't grok `-c -o', but also, the minuso test has
3809 # not run yet. These depmodes are late enough in the game, and
3810 # so weak that their functioning should not be impacted.
3811 am__obj=conftest.${OBJEXT-o}
3812 am__minus_obj=
3814 none) break ;;
3815 esac
3816 if depmode=$depmode \
3817 source=sub/conftest.c object=$am__obj \
3818 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3819 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3820 >/dev/null 2>conftest.err &&
3821 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3822 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3823 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3824 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3825 # icc doesn't choke on unknown options, it will just issue warnings
3826 # or remarks (even with -Werror). So we grep stderr for any message
3827 # that says an option was ignored or not supported.
3828 # When given -MP, icc 7.0 and 7.1 complain thusly:
3829 # icc: Command line warning: ignoring option '-M'; no argument required
3830 # The diagnosis changed in icc 8.0:
3831 # icc: Command line remark: option '-MP' not supported
3832 if (grep 'ignoring option' conftest.err ||
3833 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3834 am_cv_CC_dependencies_compiler_type=$depmode
3835 break
3838 done
3840 cd ..
3841 rm -rf conftest.dir
3842 else
3843 am_cv_CC_dependencies_compiler_type=none
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3848 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3849 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3852 test "x$enable_dependency_tracking" != xno \
3853 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3854 am__fastdepCC_TRUE=
3855 am__fastdepCC_FALSE='#'
3856 else
3857 am__fastdepCC_TRUE='#'
3858 am__fastdepCC_FALSE=
3863 # Check whether --enable-largefile was given.
3864 if test "${enable_largefile+set}" = set; then :
3865 enableval=$enable_largefile;
3868 if test "$enable_largefile" != no; then
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3871 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3872 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
3873 $as_echo_n "(cached) " >&6
3874 else
3875 ac_cv_sys_largefile_CC=no
3876 if test "$GCC" != yes; then
3877 ac_save_CC=$CC
3878 while :; do
3879 # IRIX 6.2 and later do not support large files by default,
3880 # so use the C compiler's -n32 option if that helps.
3881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3882 /* end confdefs.h. */
3883 #include <sys/types.h>
3884 /* Check that off_t can represent 2**63 - 1 correctly.
3885 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3886 since some C++ compilers masquerading as C compilers
3887 incorrectly reject 9223372036854775807. */
3888 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3889 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3890 && LARGE_OFF_T % 2147483647 == 1)
3891 ? 1 : -1];
3893 main ()
3897 return 0;
3899 _ACEOF
3900 if ac_fn_c_try_compile "$LINENO"; then :
3901 break
3903 rm -f core conftest.err conftest.$ac_objext
3904 CC="$CC -n32"
3905 if ac_fn_c_try_compile "$LINENO"; then :
3906 ac_cv_sys_largefile_CC=' -n32'; break
3908 rm -f core conftest.err conftest.$ac_objext
3909 break
3910 done
3911 CC=$ac_save_CC
3912 rm -f conftest.$ac_ext
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
3916 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
3917 if test "$ac_cv_sys_largefile_CC" != no; then
3918 CC=$CC$ac_cv_sys_largefile_CC
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3922 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
3923 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
3924 $as_echo_n "(cached) " >&6
3925 else
3926 while :; do
3927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3928 /* end confdefs.h. */
3929 #include <sys/types.h>
3930 /* Check that off_t can represent 2**63 - 1 correctly.
3931 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3932 since some C++ compilers masquerading as C compilers
3933 incorrectly reject 9223372036854775807. */
3934 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3935 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3936 && LARGE_OFF_T % 2147483647 == 1)
3937 ? 1 : -1];
3939 main ()
3943 return 0;
3945 _ACEOF
3946 if ac_fn_c_try_compile "$LINENO"; then :
3947 ac_cv_sys_file_offset_bits=no; break
3949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3951 /* end confdefs.h. */
3952 #define _FILE_OFFSET_BITS 64
3953 #include <sys/types.h>
3954 /* Check that off_t can represent 2**63 - 1 correctly.
3955 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3956 since some C++ compilers masquerading as C compilers
3957 incorrectly reject 9223372036854775807. */
3958 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3959 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3960 && LARGE_OFF_T % 2147483647 == 1)
3961 ? 1 : -1];
3963 main ()
3967 return 0;
3969 _ACEOF
3970 if ac_fn_c_try_compile "$LINENO"; then :
3971 ac_cv_sys_file_offset_bits=64; break
3973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3974 ac_cv_sys_file_offset_bits=unknown
3975 break
3976 done
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
3979 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
3980 case $ac_cv_sys_file_offset_bits in #(
3981 no | unknown) ;;
3983 cat >>confdefs.h <<_ACEOF
3984 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3985 _ACEOF
3987 esac
3988 rm -rf conftest*
3989 if test $ac_cv_sys_file_offset_bits = unknown; then
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
3991 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
3992 if test "${ac_cv_sys_large_files+set}" = set; then :
3993 $as_echo_n "(cached) " >&6
3994 else
3995 while :; do
3996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3997 /* end confdefs.h. */
3998 #include <sys/types.h>
3999 /* Check that off_t can represent 2**63 - 1 correctly.
4000 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4001 since some C++ compilers masquerading as C compilers
4002 incorrectly reject 9223372036854775807. */
4003 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4004 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4005 && LARGE_OFF_T % 2147483647 == 1)
4006 ? 1 : -1];
4008 main ()
4012 return 0;
4014 _ACEOF
4015 if ac_fn_c_try_compile "$LINENO"; then :
4016 ac_cv_sys_large_files=no; break
4018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4020 /* end confdefs.h. */
4021 #define _LARGE_FILES 1
4022 #include <sys/types.h>
4023 /* Check that off_t can represent 2**63 - 1 correctly.
4024 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4025 since some C++ compilers masquerading as C compilers
4026 incorrectly reject 9223372036854775807. */
4027 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4028 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4029 && LARGE_OFF_T % 2147483647 == 1)
4030 ? 1 : -1];
4032 main ()
4036 return 0;
4038 _ACEOF
4039 if ac_fn_c_try_compile "$LINENO"; then :
4040 ac_cv_sys_large_files=1; break
4042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4043 ac_cv_sys_large_files=unknown
4044 break
4045 done
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4048 $as_echo "$ac_cv_sys_large_files" >&6; }
4049 case $ac_cv_sys_large_files in #(
4050 no | unknown) ;;
4052 cat >>confdefs.h <<_ACEOF
4053 #define _LARGE_FILES $ac_cv_sys_large_files
4054 _ACEOF
4056 esac
4057 rm -rf conftest*
4061 ac_lto_plugin_warn_cflags=
4062 save_CFLAGS="$CFLAGS"
4063 for real_option in -Wall; do
4064 # Do the check with the no- prefix removed since gcc silently
4065 # accepts any -Wno-* option on purpose
4066 case $real_option in
4067 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
4068 *) option=$real_option ;;
4069 esac
4070 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
4073 $as_echo_n "checking whether $CC supports $option... " >&6; }
4074 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
4075 $as_echo_n "(cached) " >&6
4076 else
4077 CFLAGS="$option"
4078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079 /* end confdefs.h. */
4082 main ()
4086 return 0;
4088 _ACEOF
4089 if ac_fn_c_try_compile "$LINENO"; then :
4090 eval "$as_acx_Woption=yes"
4091 else
4092 eval "$as_acx_Woption=no"
4094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4097 eval ac_res=\$$as_acx_Woption
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4099 $as_echo "$ac_res" >&6; }
4100 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
4101 ac_lto_plugin_warn_cflags="$ac_lto_plugin_warn_cflags${ac_lto_plugin_warn_cflags:+ }$real_option"
4103 done
4104 CFLAGS="$save_CFLAGS"
4107 # Check whether -static-libgcc is supported.
4108 saved_LDFLAGS="$LDFLAGS"
4109 LDFLAGS="$LDFLAGS -static-libgcc"
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -static-libgcc" >&5
4111 $as_echo_n "checking for -static-libgcc... " >&6; }
4112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4113 /* end confdefs.h. */
4115 int main() {}
4116 _ACEOF
4117 if ac_fn_c_try_link "$LINENO"; then :
4118 have_static_libgcc=yes
4119 else
4120 have_static_libgcc=no
4122 rm -f core conftest.err conftest.$ac_objext \
4123 conftest$ac_exeext conftest.$ac_ext
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_static_libgcc" >&5
4125 $as_echo "$have_static_libgcc" >&6; };
4126 LDFLAGS="$saved_LDFLAGS"
4127 # Need -Wc to get it through libtool.
4128 if test "x$have_static_libgcc" = xyes; then
4129 ac_lto_plugin_ldflags="-Wc,-static-libgcc"
4133 if test x"$host_subdir" = x.; then
4134 gcc_build_dir=../gcc
4135 else
4136 gcc_build_dir=../../$host_subdir/gcc
4140 # Used for constructing correct paths for offload compilers.
4141 accel_dir_suffix=
4142 real_target_noncanonical=${target_noncanonical}
4143 if test x"$enable_as_accelerator_for" != x; then
4144 accel_dir_suffix=/accel/${target_noncanonical}
4145 real_target_noncanonical=${enable_as_accelerator_for}
4150 case `pwd` in
4151 *\ * | *\ *)
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4153 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4154 esac
4158 macro_version='2.2.7a'
4159 macro_revision='1.3134'
4173 ltmain="$ac_aux_dir/ltmain.sh"
4175 # Backslashify metacharacters that are still active within
4176 # double-quoted strings.
4177 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4179 # Same as above, but do not quote variable references.
4180 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4182 # Sed substitution to delay expansion of an escaped shell variable in a
4183 # double_quote_subst'ed string.
4184 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4186 # Sed substitution to delay expansion of an escaped single quote.
4187 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4189 # Sed substitution to avoid accidental globbing in evaled expressions
4190 no_glob_subst='s/\*/\\\*/g'
4192 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4193 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4194 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4197 $as_echo_n "checking how to print strings... " >&6; }
4198 # Test print first, because it will be a builtin if present.
4199 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4200 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4201 ECHO='print -r --'
4202 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4203 ECHO='printf %s\n'
4204 else
4205 # Use this function as a fallback that always works.
4206 func_fallback_echo ()
4208 eval 'cat <<_LTECHO_EOF
4210 _LTECHO_EOF'
4212 ECHO='func_fallback_echo'
4215 # func_echo_all arg...
4216 # Invoke $ECHO with all args, space-separated.
4217 func_echo_all ()
4219 $ECHO ""
4222 case "$ECHO" in
4223 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4224 $as_echo "printf" >&6; } ;;
4225 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4226 $as_echo "print -r" >&6; } ;;
4227 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4228 $as_echo "cat" >&6; } ;;
4229 esac
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4245 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4246 if test "${ac_cv_path_SED+set}" = set; then :
4247 $as_echo_n "(cached) " >&6
4248 else
4249 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4250 for ac_i in 1 2 3 4 5 6 7; do
4251 ac_script="$ac_script$as_nl$ac_script"
4252 done
4253 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4254 { ac_script=; unset ac_script;}
4255 if test -z "$SED"; then
4256 ac_path_SED_found=false
4257 # Loop through the user's path and test for each of PROGNAME-LIST
4258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4259 for as_dir in $PATH
4261 IFS=$as_save_IFS
4262 test -z "$as_dir" && as_dir=.
4263 for ac_prog in sed gsed; do
4264 for ac_exec_ext in '' $ac_executable_extensions; do
4265 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4266 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4267 # Check for GNU ac_path_SED and select it if it is found.
4268 # Check for GNU $ac_path_SED
4269 case `"$ac_path_SED" --version 2>&1` in
4270 *GNU*)
4271 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4273 ac_count=0
4274 $as_echo_n 0123456789 >"conftest.in"
4275 while :
4277 cat "conftest.in" "conftest.in" >"conftest.tmp"
4278 mv "conftest.tmp" "conftest.in"
4279 cp "conftest.in" "conftest.nl"
4280 $as_echo '' >> "conftest.nl"
4281 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4282 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4283 as_fn_arith $ac_count + 1 && ac_count=$as_val
4284 if test $ac_count -gt ${ac_path_SED_max-0}; then
4285 # Best one so far, save it but keep looking for a better one
4286 ac_cv_path_SED="$ac_path_SED"
4287 ac_path_SED_max=$ac_count
4289 # 10*(2^10) chars as input seems more than enough
4290 test $ac_count -gt 10 && break
4291 done
4292 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4293 esac
4295 $ac_path_SED_found && break 3
4296 done
4297 done
4298 done
4299 IFS=$as_save_IFS
4300 if test -z "$ac_cv_path_SED"; then
4301 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4303 else
4304 ac_cv_path_SED=$SED
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4309 $as_echo "$ac_cv_path_SED" >&6; }
4310 SED="$ac_cv_path_SED"
4311 rm -f conftest.sed
4313 test -z "$SED" && SED=sed
4314 Xsed="$SED -e 1s/^X//"
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4327 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4328 if test "${ac_cv_path_GREP+set}" = set; then :
4329 $as_echo_n "(cached) " >&6
4330 else
4331 if test -z "$GREP"; then
4332 ac_path_GREP_found=false
4333 # Loop through the user's path and test for each of PROGNAME-LIST
4334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4337 IFS=$as_save_IFS
4338 test -z "$as_dir" && as_dir=.
4339 for ac_prog in grep ggrep; do
4340 for ac_exec_ext in '' $ac_executable_extensions; do
4341 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4342 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4343 # Check for GNU ac_path_GREP and select it if it is found.
4344 # Check for GNU $ac_path_GREP
4345 case `"$ac_path_GREP" --version 2>&1` in
4346 *GNU*)
4347 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4349 ac_count=0
4350 $as_echo_n 0123456789 >"conftest.in"
4351 while :
4353 cat "conftest.in" "conftest.in" >"conftest.tmp"
4354 mv "conftest.tmp" "conftest.in"
4355 cp "conftest.in" "conftest.nl"
4356 $as_echo 'GREP' >> "conftest.nl"
4357 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4358 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4359 as_fn_arith $ac_count + 1 && ac_count=$as_val
4360 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4361 # Best one so far, save it but keep looking for a better one
4362 ac_cv_path_GREP="$ac_path_GREP"
4363 ac_path_GREP_max=$ac_count
4365 # 10*(2^10) chars as input seems more than enough
4366 test $ac_count -gt 10 && break
4367 done
4368 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4369 esac
4371 $ac_path_GREP_found && break 3
4372 done
4373 done
4374 done
4375 IFS=$as_save_IFS
4376 if test -z "$ac_cv_path_GREP"; then
4377 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4379 else
4380 ac_cv_path_GREP=$GREP
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4385 $as_echo "$ac_cv_path_GREP" >&6; }
4386 GREP="$ac_cv_path_GREP"
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4390 $as_echo_n "checking for egrep... " >&6; }
4391 if test "${ac_cv_path_EGREP+set}" = set; then :
4392 $as_echo_n "(cached) " >&6
4393 else
4394 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4395 then ac_cv_path_EGREP="$GREP -E"
4396 else
4397 if test -z "$EGREP"; then
4398 ac_path_EGREP_found=false
4399 # Loop through the user's path and test for each of PROGNAME-LIST
4400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4403 IFS=$as_save_IFS
4404 test -z "$as_dir" && as_dir=.
4405 for ac_prog in egrep; do
4406 for ac_exec_ext in '' $ac_executable_extensions; do
4407 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4408 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4409 # Check for GNU ac_path_EGREP and select it if it is found.
4410 # Check for GNU $ac_path_EGREP
4411 case `"$ac_path_EGREP" --version 2>&1` in
4412 *GNU*)
4413 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4415 ac_count=0
4416 $as_echo_n 0123456789 >"conftest.in"
4417 while :
4419 cat "conftest.in" "conftest.in" >"conftest.tmp"
4420 mv "conftest.tmp" "conftest.in"
4421 cp "conftest.in" "conftest.nl"
4422 $as_echo 'EGREP' >> "conftest.nl"
4423 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4424 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4425 as_fn_arith $ac_count + 1 && ac_count=$as_val
4426 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4427 # Best one so far, save it but keep looking for a better one
4428 ac_cv_path_EGREP="$ac_path_EGREP"
4429 ac_path_EGREP_max=$ac_count
4431 # 10*(2^10) chars as input seems more than enough
4432 test $ac_count -gt 10 && break
4433 done
4434 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4435 esac
4437 $ac_path_EGREP_found && break 3
4438 done
4439 done
4440 done
4441 IFS=$as_save_IFS
4442 if test -z "$ac_cv_path_EGREP"; then
4443 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4445 else
4446 ac_cv_path_EGREP=$EGREP
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4452 $as_echo "$ac_cv_path_EGREP" >&6; }
4453 EGREP="$ac_cv_path_EGREP"
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4457 $as_echo_n "checking for fgrep... " >&6; }
4458 if test "${ac_cv_path_FGREP+set}" = set; then :
4459 $as_echo_n "(cached) " >&6
4460 else
4461 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4462 then ac_cv_path_FGREP="$GREP -F"
4463 else
4464 if test -z "$FGREP"; then
4465 ac_path_FGREP_found=false
4466 # Loop through the user's path and test for each of PROGNAME-LIST
4467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4468 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4470 IFS=$as_save_IFS
4471 test -z "$as_dir" && as_dir=.
4472 for ac_prog in fgrep; do
4473 for ac_exec_ext in '' $ac_executable_extensions; do
4474 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4475 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4476 # Check for GNU ac_path_FGREP and select it if it is found.
4477 # Check for GNU $ac_path_FGREP
4478 case `"$ac_path_FGREP" --version 2>&1` in
4479 *GNU*)
4480 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4482 ac_count=0
4483 $as_echo_n 0123456789 >"conftest.in"
4484 while :
4486 cat "conftest.in" "conftest.in" >"conftest.tmp"
4487 mv "conftest.tmp" "conftest.in"
4488 cp "conftest.in" "conftest.nl"
4489 $as_echo 'FGREP' >> "conftest.nl"
4490 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4491 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4492 as_fn_arith $ac_count + 1 && ac_count=$as_val
4493 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4494 # Best one so far, save it but keep looking for a better one
4495 ac_cv_path_FGREP="$ac_path_FGREP"
4496 ac_path_FGREP_max=$ac_count
4498 # 10*(2^10) chars as input seems more than enough
4499 test $ac_count -gt 10 && break
4500 done
4501 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4502 esac
4504 $ac_path_FGREP_found && break 3
4505 done
4506 done
4507 done
4508 IFS=$as_save_IFS
4509 if test -z "$ac_cv_path_FGREP"; then
4510 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4512 else
4513 ac_cv_path_FGREP=$FGREP
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4519 $as_echo "$ac_cv_path_FGREP" >&6; }
4520 FGREP="$ac_cv_path_FGREP"
4523 test -z "$GREP" && GREP=grep
4543 # Check whether --with-gnu-ld was given.
4544 if test "${with_gnu_ld+set}" = set; then :
4545 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4546 else
4547 with_gnu_ld=no
4550 ac_prog=ld
4551 if test "$GCC" = yes; then
4552 # Check if gcc -print-prog-name=ld gives a path.
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4554 $as_echo_n "checking for ld used by $CC... " >&6; }
4555 case $host in
4556 *-*-mingw*)
4557 # gcc leaves a trailing carriage return which upsets mingw
4558 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4560 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4561 esac
4562 case $ac_prog in
4563 # Accept absolute paths.
4564 [\\/]* | ?:[\\/]*)
4565 re_direlt='/[^/][^/]*/\.\./'
4566 # Canonicalize the pathname of ld
4567 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4568 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4569 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4570 done
4571 test -z "$LD" && LD="$ac_prog"
4574 # If it fails, then pretend we aren't using GCC.
4575 ac_prog=ld
4578 # If it is relative, then search for the first ld in PATH.
4579 with_gnu_ld=unknown
4581 esac
4582 elif test "$with_gnu_ld" = yes; then
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4584 $as_echo_n "checking for GNU ld... " >&6; }
4585 else
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4587 $as_echo_n "checking for non-GNU ld... " >&6; }
4589 if test "${lt_cv_path_LD+set}" = set; then :
4590 $as_echo_n "(cached) " >&6
4591 else
4592 if test -z "$LD"; then
4593 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4594 for ac_dir in $PATH; do
4595 IFS="$lt_save_ifs"
4596 test -z "$ac_dir" && ac_dir=.
4597 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4598 lt_cv_path_LD="$ac_dir/$ac_prog"
4599 # Check to see if the program is GNU ld. I'd rather use --version,
4600 # but apparently some variants of GNU ld only accept -v.
4601 # Break only if it was the GNU/non-GNU ld that we prefer.
4602 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4603 *GNU* | *'with BFD'*)
4604 test "$with_gnu_ld" != no && break
4607 test "$with_gnu_ld" != yes && break
4609 esac
4611 done
4612 IFS="$lt_save_ifs"
4613 else
4614 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4618 LD="$lt_cv_path_LD"
4619 if test -n "$LD"; then
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4621 $as_echo "$LD" >&6; }
4622 else
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4624 $as_echo "no" >&6; }
4626 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4628 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4629 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4630 $as_echo_n "(cached) " >&6
4631 else
4632 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4633 case `$LD -v 2>&1 </dev/null` in
4634 *GNU* | *'with BFD'*)
4635 lt_cv_prog_gnu_ld=yes
4638 lt_cv_prog_gnu_ld=no
4640 esac
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4643 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4644 with_gnu_ld=$lt_cv_prog_gnu_ld
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4655 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4656 if test "${lt_cv_path_NM+set}" = set; then :
4657 $as_echo_n "(cached) " >&6
4658 else
4659 if test -n "$NM"; then
4660 # Let the user override the test.
4661 lt_cv_path_NM="$NM"
4662 else
4663 lt_nm_to_check="${ac_tool_prefix}nm"
4664 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4665 lt_nm_to_check="$lt_nm_to_check nm"
4667 for lt_tmp_nm in $lt_nm_to_check; do
4668 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4669 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4670 IFS="$lt_save_ifs"
4671 test -z "$ac_dir" && ac_dir=.
4672 tmp_nm="$ac_dir/$lt_tmp_nm"
4673 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4674 # Check to see if the nm accepts a BSD-compat flag.
4675 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4676 # nm: unknown option "B" ignored
4677 # Tru64's nm complains that /dev/null is an invalid object file
4678 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4679 */dev/null* | *'Invalid file or object type'*)
4680 lt_cv_path_NM="$tmp_nm -B"
4681 break
4684 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4685 */dev/null*)
4686 lt_cv_path_NM="$tmp_nm -p"
4687 break
4690 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4691 continue # so that we can try to find one that supports BSD flags
4693 esac
4695 esac
4697 done
4698 IFS="$lt_save_ifs"
4699 done
4700 : ${lt_cv_path_NM=no}
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4704 $as_echo "$lt_cv_path_NM" >&6; }
4705 if test "$lt_cv_path_NM" != "no"; then
4706 NM="$lt_cv_path_NM"
4707 else
4708 # Didn't find any BSD compatible name lister, look for dumpbin.
4709 if test -n "$DUMPBIN"; then :
4710 # Let the user override the test.
4711 else
4712 if test -n "$ac_tool_prefix"; then
4713 for ac_prog in dumpbin "link -dump"
4715 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4716 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4718 $as_echo_n "checking for $ac_word... " >&6; }
4719 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4720 $as_echo_n "(cached) " >&6
4721 else
4722 if test -n "$DUMPBIN"; then
4723 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4724 else
4725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4726 for as_dir in $PATH
4728 IFS=$as_save_IFS
4729 test -z "$as_dir" && as_dir=.
4730 for ac_exec_ext in '' $ac_executable_extensions; do
4731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4732 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4734 break 2
4736 done
4737 done
4738 IFS=$as_save_IFS
4742 DUMPBIN=$ac_cv_prog_DUMPBIN
4743 if test -n "$DUMPBIN"; then
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4745 $as_echo "$DUMPBIN" >&6; }
4746 else
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4748 $as_echo "no" >&6; }
4752 test -n "$DUMPBIN" && break
4753 done
4755 if test -z "$DUMPBIN"; then
4756 ac_ct_DUMPBIN=$DUMPBIN
4757 for ac_prog in dumpbin "link -dump"
4759 # Extract the first word of "$ac_prog", so it can be a program name with args.
4760 set dummy $ac_prog; ac_word=$2
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4762 $as_echo_n "checking for $ac_word... " >&6; }
4763 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4764 $as_echo_n "(cached) " >&6
4765 else
4766 if test -n "$ac_ct_DUMPBIN"; then
4767 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4768 else
4769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4770 for as_dir in $PATH
4772 IFS=$as_save_IFS
4773 test -z "$as_dir" && as_dir=.
4774 for ac_exec_ext in '' $ac_executable_extensions; do
4775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4776 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4778 break 2
4780 done
4781 done
4782 IFS=$as_save_IFS
4786 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4787 if test -n "$ac_ct_DUMPBIN"; then
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4789 $as_echo "$ac_ct_DUMPBIN" >&6; }
4790 else
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4792 $as_echo "no" >&6; }
4796 test -n "$ac_ct_DUMPBIN" && break
4797 done
4799 if test "x$ac_ct_DUMPBIN" = x; then
4800 DUMPBIN=":"
4801 else
4802 case $cross_compiling:$ac_tool_warned in
4803 yes:)
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4805 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4806 ac_tool_warned=yes ;;
4807 esac
4808 DUMPBIN=$ac_ct_DUMPBIN
4812 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4813 *COFF*)
4814 DUMPBIN="$DUMPBIN -symbols"
4817 DUMPBIN=:
4819 esac
4822 if test "$DUMPBIN" != ":"; then
4823 NM="$DUMPBIN"
4826 test -z "$NM" && NM=nm
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4834 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4835 if test "${lt_cv_nm_interface+set}" = set; then :
4836 $as_echo_n "(cached) " >&6
4837 else
4838 lt_cv_nm_interface="BSD nm"
4839 echo "int some_variable = 0;" > conftest.$ac_ext
4840 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4841 (eval "$ac_compile" 2>conftest.err)
4842 cat conftest.err >&5
4843 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4844 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4845 cat conftest.err >&5
4846 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4847 cat conftest.out >&5
4848 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4849 lt_cv_nm_interface="MS dumpbin"
4851 rm -f conftest*
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4854 $as_echo "$lt_cv_nm_interface" >&6; }
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4857 $as_echo_n "checking whether ln -s works... " >&6; }
4858 LN_S=$as_ln_s
4859 if test "$LN_S" = "ln -s"; then
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4861 $as_echo "yes" >&6; }
4862 else
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4864 $as_echo "no, using $LN_S" >&6; }
4867 # find the maximum length of command line arguments
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4869 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4870 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4871 $as_echo_n "(cached) " >&6
4872 else
4874 teststring="ABCD"
4876 case $build_os in
4877 msdosdjgpp*)
4878 # On DJGPP, this test can blow up pretty badly due to problems in libc
4879 # (any single argument exceeding 2000 bytes causes a buffer overrun
4880 # during glob expansion). Even if it were fixed, the result of this
4881 # check would be larger than it should be.
4882 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4885 gnu*)
4886 # Under GNU Hurd, this test is not required because there is
4887 # no limit to the length of command line arguments.
4888 # Libtool will interpret -1 as no limit whatsoever
4889 lt_cv_sys_max_cmd_len=-1;
4892 cygwin* | mingw* | cegcc*)
4893 # On Win9x/ME, this test blows up -- it succeeds, but takes
4894 # about 5 minutes as the teststring grows exponentially.
4895 # Worse, since 9x/ME are not pre-emptively multitasking,
4896 # you end up with a "frozen" computer, even though with patience
4897 # the test eventually succeeds (with a max line length of 256k).
4898 # Instead, let's just punt: use the minimum linelength reported by
4899 # all of the supported platforms: 8192 (on NT/2K/XP).
4900 lt_cv_sys_max_cmd_len=8192;
4903 mint*)
4904 # On MiNT this can take a long time and run out of memory.
4905 lt_cv_sys_max_cmd_len=8192;
4908 amigaos*)
4909 # On AmigaOS with pdksh, this test takes hours, literally.
4910 # So we just punt and use a minimum line length of 8192.
4911 lt_cv_sys_max_cmd_len=8192;
4914 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4915 # This has been around since 386BSD, at least. Likely further.
4916 if test -x /sbin/sysctl; then
4917 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4918 elif test -x /usr/sbin/sysctl; then
4919 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4920 else
4921 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4923 # And add a safety zone
4924 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4925 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4928 interix*)
4929 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4930 lt_cv_sys_max_cmd_len=196608
4933 osf*)
4934 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4935 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4936 # nice to cause kernel panics so lets avoid the loop below.
4937 # First set a reasonable default.
4938 lt_cv_sys_max_cmd_len=16384
4940 if test -x /sbin/sysconfig; then
4941 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4942 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4943 esac
4946 sco3.2v5*)
4947 lt_cv_sys_max_cmd_len=102400
4949 sysv5* | sco5v6* | sysv4.2uw2*)
4950 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4951 if test -n "$kargmax"; then
4952 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4953 else
4954 lt_cv_sys_max_cmd_len=32768
4958 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4959 if test -n "$lt_cv_sys_max_cmd_len"; then
4960 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4961 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4962 else
4963 # Make teststring a little bigger before we do anything with it.
4964 # a 1K string should be a reasonable start.
4965 for i in 1 2 3 4 5 6 7 8 ; do
4966 teststring=$teststring$teststring
4967 done
4968 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4969 # If test is not a shell built-in, we'll probably end up computing a
4970 # maximum length that is only half of the actual maximum length, but
4971 # we can't tell.
4972 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4973 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4974 test $i != 17 # 1/2 MB should be enough
4976 i=`expr $i + 1`
4977 teststring=$teststring$teststring
4978 done
4979 # Only check the string length outside the loop.
4980 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4981 teststring=
4982 # Add a significant safety factor because C++ compilers can tack on
4983 # massive amounts of additional arguments before passing them to the
4984 # linker. It appears as though 1/2 is a usable value.
4985 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4988 esac
4992 if test -n $lt_cv_sys_max_cmd_len ; then
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4994 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4995 else
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4997 $as_echo "none" >&6; }
4999 max_cmd_len=$lt_cv_sys_max_cmd_len
5006 : ${CP="cp -f"}
5007 : ${MV="mv -f"}
5008 : ${RM="rm -f"}
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5011 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5012 # Try some XSI features
5013 xsi_shell=no
5014 ( _lt_dummy="a/b/c"
5015 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5016 = c,a/b,, \
5017 && eval 'test $(( 1 + 1 )) -eq 2 \
5018 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5019 && xsi_shell=yes
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5021 $as_echo "$xsi_shell" >&6; }
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5025 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5026 lt_shell_append=no
5027 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5028 >/dev/null 2>&1 \
5029 && lt_shell_append=yes
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5031 $as_echo "$lt_shell_append" >&6; }
5034 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5035 lt_unset=unset
5036 else
5037 lt_unset=false
5044 # test EBCDIC or ASCII
5045 case `echo X|tr X '\101'` in
5046 A) # ASCII based system
5047 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5048 lt_SP2NL='tr \040 \012'
5049 lt_NL2SP='tr \015\012 \040\040'
5051 *) # EBCDIC based system
5052 lt_SP2NL='tr \100 \n'
5053 lt_NL2SP='tr \r\n \100\100'
5055 esac
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5066 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5067 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5068 $as_echo_n "(cached) " >&6
5069 else
5070 lt_cv_ld_reload_flag='-r'
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5073 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5074 reload_flag=$lt_cv_ld_reload_flag
5075 case $reload_flag in
5076 "" | " "*) ;;
5077 *) reload_flag=" $reload_flag" ;;
5078 esac
5079 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5080 case $host_os in
5081 darwin*)
5082 if test "$GCC" = yes; then
5083 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5084 else
5085 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5088 esac
5098 if test -n "$ac_tool_prefix"; then
5099 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5100 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5102 $as_echo_n "checking for $ac_word... " >&6; }
5103 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5104 $as_echo_n "(cached) " >&6
5105 else
5106 if test -n "$OBJDUMP"; then
5107 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5108 else
5109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5110 for as_dir in $PATH
5112 IFS=$as_save_IFS
5113 test -z "$as_dir" && as_dir=.
5114 for ac_exec_ext in '' $ac_executable_extensions; do
5115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5116 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5118 break 2
5120 done
5121 done
5122 IFS=$as_save_IFS
5126 OBJDUMP=$ac_cv_prog_OBJDUMP
5127 if test -n "$OBJDUMP"; then
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5129 $as_echo "$OBJDUMP" >&6; }
5130 else
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5132 $as_echo "no" >&6; }
5137 if test -z "$ac_cv_prog_OBJDUMP"; then
5138 ac_ct_OBJDUMP=$OBJDUMP
5139 # Extract the first word of "objdump", so it can be a program name with args.
5140 set dummy objdump; ac_word=$2
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5142 $as_echo_n "checking for $ac_word... " >&6; }
5143 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5144 $as_echo_n "(cached) " >&6
5145 else
5146 if test -n "$ac_ct_OBJDUMP"; then
5147 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5148 else
5149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150 for as_dir in $PATH
5152 IFS=$as_save_IFS
5153 test -z "$as_dir" && as_dir=.
5154 for ac_exec_ext in '' $ac_executable_extensions; do
5155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5156 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5158 break 2
5160 done
5161 done
5162 IFS=$as_save_IFS
5166 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5167 if test -n "$ac_ct_OBJDUMP"; then
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5169 $as_echo "$ac_ct_OBJDUMP" >&6; }
5170 else
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5172 $as_echo "no" >&6; }
5175 if test "x$ac_ct_OBJDUMP" = x; then
5176 OBJDUMP="false"
5177 else
5178 case $cross_compiling:$ac_tool_warned in
5179 yes:)
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5181 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5182 ac_tool_warned=yes ;;
5183 esac
5184 OBJDUMP=$ac_ct_OBJDUMP
5186 else
5187 OBJDUMP="$ac_cv_prog_OBJDUMP"
5190 test -z "$OBJDUMP" && OBJDUMP=objdump
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5201 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5202 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5203 $as_echo_n "(cached) " >&6
5204 else
5205 lt_cv_file_magic_cmd='$MAGIC_CMD'
5206 lt_cv_file_magic_test_file=
5207 lt_cv_deplibs_check_method='unknown'
5208 # Need to set the preceding variable on all platforms that support
5209 # interlibrary dependencies.
5210 # 'none' -- dependencies not supported.
5211 # `unknown' -- same as none, but documents that we really don't know.
5212 # 'pass_all' -- all dependencies passed with no checks.
5213 # 'test_compile' -- check by making test program.
5214 # 'file_magic [[regex]]' -- check by looking for files in library path
5215 # which responds to the $file_magic_cmd with a given extended regex.
5216 # If you have `file' or equivalent on your system and you're not sure
5217 # whether `pass_all' will *always* work, you probably want this one.
5219 case $host_os in
5220 aix[4-9]*)
5221 lt_cv_deplibs_check_method=pass_all
5224 beos*)
5225 lt_cv_deplibs_check_method=pass_all
5228 bsdi[45]*)
5229 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5230 lt_cv_file_magic_cmd='/usr/bin/file -L'
5231 lt_cv_file_magic_test_file=/shlib/libc.so
5234 cygwin*)
5235 # func_win32_libid is a shell function defined in ltmain.sh
5236 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5237 lt_cv_file_magic_cmd='func_win32_libid'
5240 mingw* | pw32*)
5241 # Base MSYS/MinGW do not provide the 'file' command needed by
5242 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5243 # unless we find 'file', for example because we are cross-compiling.
5244 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5245 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5246 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5247 lt_cv_file_magic_cmd='func_win32_libid'
5248 else
5249 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5250 lt_cv_file_magic_cmd='$OBJDUMP -f'
5254 cegcc*)
5255 # use the weaker test based on 'objdump'. See mingw*.
5256 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5257 lt_cv_file_magic_cmd='$OBJDUMP -f'
5260 darwin* | rhapsody*)
5261 lt_cv_deplibs_check_method=pass_all
5264 freebsd* | dragonfly*)
5265 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5266 case $host_cpu in
5267 i*86 )
5268 # Not sure whether the presence of OpenBSD here was a mistake.
5269 # Let's accept both of them until this is cleared up.
5270 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5271 lt_cv_file_magic_cmd=/usr/bin/file
5272 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5274 esac
5275 else
5276 lt_cv_deplibs_check_method=pass_all
5280 gnu*)
5281 lt_cv_deplibs_check_method=pass_all
5284 haiku*)
5285 lt_cv_deplibs_check_method=pass_all
5288 hpux10.20* | hpux11*)
5289 lt_cv_file_magic_cmd=/usr/bin/file
5290 case $host_cpu in
5291 ia64*)
5292 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5293 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5295 hppa*64*)
5296 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]'
5297 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5300 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5301 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5303 esac
5306 interix[3-9]*)
5307 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5308 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5311 irix5* | irix6* | nonstopux*)
5312 case $LD in
5313 *-32|*"-32 ") libmagic=32-bit;;
5314 *-n32|*"-n32 ") libmagic=N32;;
5315 *-64|*"-64 ") libmagic=64-bit;;
5316 *) libmagic=never-match;;
5317 esac
5318 lt_cv_deplibs_check_method=pass_all
5321 # This must be Linux ELF.
5322 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5323 lt_cv_deplibs_check_method=pass_all
5326 netbsd*)
5327 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5328 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5329 else
5330 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5334 newos6*)
5335 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5336 lt_cv_file_magic_cmd=/usr/bin/file
5337 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5340 *nto* | *qnx*)
5341 lt_cv_deplibs_check_method=pass_all
5344 openbsd*)
5345 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5346 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5347 else
5348 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5352 osf3* | osf4* | osf5*)
5353 lt_cv_deplibs_check_method=pass_all
5356 rdos*)
5357 lt_cv_deplibs_check_method=pass_all
5360 solaris*)
5361 lt_cv_deplibs_check_method=pass_all
5364 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5365 lt_cv_deplibs_check_method=pass_all
5368 sysv4 | sysv4.3*)
5369 case $host_vendor in
5370 motorola)
5371 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]'
5372 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5374 ncr)
5375 lt_cv_deplibs_check_method=pass_all
5377 sequent)
5378 lt_cv_file_magic_cmd='/bin/file'
5379 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5381 sni)
5382 lt_cv_file_magic_cmd='/bin/file'
5383 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5384 lt_cv_file_magic_test_file=/lib/libc.so
5386 siemens)
5387 lt_cv_deplibs_check_method=pass_all
5390 lt_cv_deplibs_check_method=pass_all
5392 esac
5395 tpf*)
5396 lt_cv_deplibs_check_method=pass_all
5398 esac
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5402 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5403 file_magic_cmd=$lt_cv_file_magic_cmd
5404 deplibs_check_method=$lt_cv_deplibs_check_method
5405 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5418 if test -n "$ac_tool_prefix"; then
5419 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5420 set dummy ${ac_tool_prefix}ar; ac_word=$2
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5422 $as_echo_n "checking for $ac_word... " >&6; }
5423 if test "${ac_cv_prog_AR+set}" = set; then :
5424 $as_echo_n "(cached) " >&6
5425 else
5426 if test -n "$AR"; then
5427 ac_cv_prog_AR="$AR" # Let the user override the test.
5428 else
5429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5430 for as_dir in $PATH
5432 IFS=$as_save_IFS
5433 test -z "$as_dir" && as_dir=.
5434 for ac_exec_ext in '' $ac_executable_extensions; do
5435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5436 ac_cv_prog_AR="${ac_tool_prefix}ar"
5437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5438 break 2
5440 done
5441 done
5442 IFS=$as_save_IFS
5446 AR=$ac_cv_prog_AR
5447 if test -n "$AR"; then
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5449 $as_echo "$AR" >&6; }
5450 else
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5452 $as_echo "no" >&6; }
5457 if test -z "$ac_cv_prog_AR"; then
5458 ac_ct_AR=$AR
5459 # Extract the first word of "ar", so it can be a program name with args.
5460 set dummy ar; ac_word=$2
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5462 $as_echo_n "checking for $ac_word... " >&6; }
5463 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5464 $as_echo_n "(cached) " >&6
5465 else
5466 if test -n "$ac_ct_AR"; then
5467 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5468 else
5469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5470 for as_dir in $PATH
5472 IFS=$as_save_IFS
5473 test -z "$as_dir" && as_dir=.
5474 for ac_exec_ext in '' $ac_executable_extensions; do
5475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5476 ac_cv_prog_ac_ct_AR="ar"
5477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5478 break 2
5480 done
5481 done
5482 IFS=$as_save_IFS
5486 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5487 if test -n "$ac_ct_AR"; then
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5489 $as_echo "$ac_ct_AR" >&6; }
5490 else
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5492 $as_echo "no" >&6; }
5495 if test "x$ac_ct_AR" = x; then
5496 AR="false"
5497 else
5498 case $cross_compiling:$ac_tool_warned in
5499 yes:)
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5501 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5502 ac_tool_warned=yes ;;
5503 esac
5504 AR=$ac_ct_AR
5506 else
5507 AR="$ac_cv_prog_AR"
5510 test -z "$AR" && AR=ar
5511 test -z "$AR_FLAGS" && AR_FLAGS=cru
5523 if test -n "$ac_tool_prefix"; then
5524 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5525 set dummy ${ac_tool_prefix}strip; ac_word=$2
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5527 $as_echo_n "checking for $ac_word... " >&6; }
5528 if test "${ac_cv_prog_STRIP+set}" = set; then :
5529 $as_echo_n "(cached) " >&6
5530 else
5531 if test -n "$STRIP"; then
5532 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5533 else
5534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5535 for as_dir in $PATH
5537 IFS=$as_save_IFS
5538 test -z "$as_dir" && as_dir=.
5539 for ac_exec_ext in '' $ac_executable_extensions; do
5540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5541 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5543 break 2
5545 done
5546 done
5547 IFS=$as_save_IFS
5551 STRIP=$ac_cv_prog_STRIP
5552 if test -n "$STRIP"; then
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5554 $as_echo "$STRIP" >&6; }
5555 else
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5557 $as_echo "no" >&6; }
5562 if test -z "$ac_cv_prog_STRIP"; then
5563 ac_ct_STRIP=$STRIP
5564 # Extract the first word of "strip", so it can be a program name with args.
5565 set dummy strip; ac_word=$2
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5567 $as_echo_n "checking for $ac_word... " >&6; }
5568 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5569 $as_echo_n "(cached) " >&6
5570 else
5571 if test -n "$ac_ct_STRIP"; then
5572 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5573 else
5574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5575 for as_dir in $PATH
5577 IFS=$as_save_IFS
5578 test -z "$as_dir" && as_dir=.
5579 for ac_exec_ext in '' $ac_executable_extensions; do
5580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5581 ac_cv_prog_ac_ct_STRIP="strip"
5582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5583 break 2
5585 done
5586 done
5587 IFS=$as_save_IFS
5591 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5592 if test -n "$ac_ct_STRIP"; then
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5594 $as_echo "$ac_ct_STRIP" >&6; }
5595 else
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5597 $as_echo "no" >&6; }
5600 if test "x$ac_ct_STRIP" = x; then
5601 STRIP=":"
5602 else
5603 case $cross_compiling:$ac_tool_warned in
5604 yes:)
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5606 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5607 ac_tool_warned=yes ;;
5608 esac
5609 STRIP=$ac_ct_STRIP
5611 else
5612 STRIP="$ac_cv_prog_STRIP"
5615 test -z "$STRIP" && STRIP=:
5622 if test -n "$ac_tool_prefix"; then
5623 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5624 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5626 $as_echo_n "checking for $ac_word... " >&6; }
5627 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5628 $as_echo_n "(cached) " >&6
5629 else
5630 if test -n "$RANLIB"; then
5631 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5632 else
5633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5634 for as_dir in $PATH
5636 IFS=$as_save_IFS
5637 test -z "$as_dir" && as_dir=.
5638 for ac_exec_ext in '' $ac_executable_extensions; do
5639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5640 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5642 break 2
5644 done
5645 done
5646 IFS=$as_save_IFS
5650 RANLIB=$ac_cv_prog_RANLIB
5651 if test -n "$RANLIB"; then
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5653 $as_echo "$RANLIB" >&6; }
5654 else
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5656 $as_echo "no" >&6; }
5661 if test -z "$ac_cv_prog_RANLIB"; then
5662 ac_ct_RANLIB=$RANLIB
5663 # Extract the first word of "ranlib", so it can be a program name with args.
5664 set dummy ranlib; ac_word=$2
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5666 $as_echo_n "checking for $ac_word... " >&6; }
5667 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5668 $as_echo_n "(cached) " >&6
5669 else
5670 if test -n "$ac_ct_RANLIB"; then
5671 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5672 else
5673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5674 for as_dir in $PATH
5676 IFS=$as_save_IFS
5677 test -z "$as_dir" && as_dir=.
5678 for ac_exec_ext in '' $ac_executable_extensions; do
5679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5680 ac_cv_prog_ac_ct_RANLIB="ranlib"
5681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5682 break 2
5684 done
5685 done
5686 IFS=$as_save_IFS
5690 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5691 if test -n "$ac_ct_RANLIB"; then
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5693 $as_echo "$ac_ct_RANLIB" >&6; }
5694 else
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5696 $as_echo "no" >&6; }
5699 if test "x$ac_ct_RANLIB" = x; then
5700 RANLIB=":"
5701 else
5702 case $cross_compiling:$ac_tool_warned in
5703 yes:)
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5705 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5706 ac_tool_warned=yes ;;
5707 esac
5708 RANLIB=$ac_ct_RANLIB
5710 else
5711 RANLIB="$ac_cv_prog_RANLIB"
5714 test -z "$RANLIB" && RANLIB=:
5721 # Determine commands to create old-style static archives.
5722 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5723 old_postinstall_cmds='chmod 644 $oldlib'
5724 old_postuninstall_cmds=
5726 if test -n "$RANLIB"; then
5727 case $host_os in
5728 openbsd*)
5729 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5732 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5734 esac
5735 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5738 case $host_os in
5739 darwin*)
5740 lock_old_archive_extraction=yes ;;
5742 lock_old_archive_extraction=no ;;
5743 esac
5783 # If no C compiler was specified, use CC.
5784 LTCC=${LTCC-"$CC"}
5786 # If no C compiler flags were specified, use CFLAGS.
5787 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5789 # Allow CC to be a program name with arguments.
5790 compiler=$CC
5793 # Check for command to grab the raw symbol name followed by C symbol from nm.
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5795 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5796 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5797 $as_echo_n "(cached) " >&6
5798 else
5800 # These are sane defaults that work on at least a few old systems.
5801 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5803 # Character class describing NM global symbol codes.
5804 symcode='[BCDEGRST]'
5806 # Regexp to match symbols that can be accessed directly from C.
5807 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5809 # Define system-specific variables.
5810 case $host_os in
5811 aix*)
5812 symcode='[BCDT]'
5814 cygwin* | mingw* | pw32* | cegcc*)
5815 symcode='[ABCDGISTW]'
5817 hpux*)
5818 if test "$host_cpu" = ia64; then
5819 symcode='[ABCDEGRST]'
5822 irix* | nonstopux*)
5823 symcode='[BCDEGRST]'
5825 osf*)
5826 symcode='[BCDEGQRST]'
5828 solaris*)
5829 symcode='[BDRT]'
5831 sco3.2v5*)
5832 symcode='[DT]'
5834 sysv4.2uw2*)
5835 symcode='[DT]'
5837 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5838 symcode='[ABDT]'
5840 sysv4)
5841 symcode='[DFNSTU]'
5843 esac
5845 # If we're using GNU nm, then use its standard symbol codes.
5846 case `$NM -V 2>&1` in
5847 *GNU* | *'with BFD'*)
5848 symcode='[ABCDGIRSTW]' ;;
5849 esac
5851 # Transform an extracted symbol line into a proper C declaration.
5852 # Some systems (esp. on ia64) link data and code symbols differently,
5853 # so use this general approach.
5854 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5856 # Transform an extracted symbol line into symbol name and symbol address
5857 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5858 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'"
5860 # Handle CRLF in mingw tool chain
5861 opt_cr=
5862 case $build_os in
5863 mingw*)
5864 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5866 esac
5868 # Try without a prefix underscore, then with it.
5869 for ac_symprfx in "" "_"; do
5871 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5872 symxfrm="\\1 $ac_symprfx\\2 \\2"
5874 # Write the raw and C identifiers.
5875 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5876 # Fake it for dumpbin and say T for any non-static function
5877 # and D for any global variable.
5878 # Also find C++ and __fastcall symbols from MSVC++,
5879 # which start with @ or ?.
5880 lt_cv_sys_global_symbol_pipe="$AWK '"\
5881 " {last_section=section; section=\$ 3};"\
5882 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5883 " \$ 0!~/External *\|/{next};"\
5884 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5885 " {if(hide[section]) next};"\
5886 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5887 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5888 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5889 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5890 " ' prfx=^$ac_symprfx"
5891 else
5892 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5895 # Check to see that the pipe works correctly.
5896 pipe_works=no
5898 rm -f conftest*
5899 cat > conftest.$ac_ext <<_LT_EOF
5900 #ifdef __cplusplus
5901 extern "C" {
5902 #endif
5903 char nm_test_var;
5904 void nm_test_func(void);
5905 void nm_test_func(void){}
5906 #ifdef __cplusplus
5908 #endif
5909 int main(){nm_test_var='a';nm_test_func();return(0);}
5910 _LT_EOF
5912 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5913 (eval $ac_compile) 2>&5
5914 ac_status=$?
5915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5916 test $ac_status = 0; }; then
5917 # Now try to grab the symbols.
5918 nlist=conftest.nm
5919 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5920 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5921 ac_status=$?
5922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5923 test $ac_status = 0; } && test -s "$nlist"; then
5924 # Try sorting and uniquifying the output.
5925 if sort "$nlist" | uniq > "$nlist"T; then
5926 mv -f "$nlist"T "$nlist"
5927 else
5928 rm -f "$nlist"T
5931 # Make sure that we snagged all the symbols we need.
5932 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5933 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5934 cat <<_LT_EOF > conftest.$ac_ext
5935 #ifdef __cplusplus
5936 extern "C" {
5937 #endif
5939 _LT_EOF
5940 # Now generate the symbol file.
5941 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5943 cat <<_LT_EOF >> conftest.$ac_ext
5945 /* The mapping between symbol names and symbols. */
5946 const struct {
5947 const char *name;
5948 void *address;
5950 lt__PROGRAM__LTX_preloaded_symbols[] =
5952 { "@PROGRAM@", (void *) 0 },
5953 _LT_EOF
5954 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5955 cat <<\_LT_EOF >> conftest.$ac_ext
5956 {0, (void *) 0}
5959 /* This works around a problem in FreeBSD linker */
5960 #ifdef FREEBSD_WORKAROUND
5961 static const void *lt_preloaded_setup() {
5962 return lt__PROGRAM__LTX_preloaded_symbols;
5964 #endif
5966 #ifdef __cplusplus
5968 #endif
5969 _LT_EOF
5970 # Now try linking the two files.
5971 mv conftest.$ac_objext conftstm.$ac_objext
5972 lt_save_LIBS="$LIBS"
5973 lt_save_CFLAGS="$CFLAGS"
5974 LIBS="conftstm.$ac_objext"
5975 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5976 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5977 (eval $ac_link) 2>&5
5978 ac_status=$?
5979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5980 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5981 pipe_works=yes
5983 LIBS="$lt_save_LIBS"
5984 CFLAGS="$lt_save_CFLAGS"
5985 else
5986 echo "cannot find nm_test_func in $nlist" >&5
5988 else
5989 echo "cannot find nm_test_var in $nlist" >&5
5991 else
5992 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5994 else
5995 echo "$progname: failed program was:" >&5
5996 cat conftest.$ac_ext >&5
5998 rm -rf conftest* conftst*
6000 # Do not use the global_symbol_pipe unless it works.
6001 if test "$pipe_works" = yes; then
6002 break
6003 else
6004 lt_cv_sys_global_symbol_pipe=
6006 done
6010 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6011 lt_cv_sys_global_symbol_to_cdecl=
6013 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6015 $as_echo "failed" >&6; }
6016 else
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6018 $as_echo "ok" >&6; }
6042 # Check whether --enable-libtool-lock was given.
6043 if test "${enable_libtool_lock+set}" = set; then :
6044 enableval=$enable_libtool_lock;
6047 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6049 # Some flags need to be propagated to the compiler or linker for good
6050 # libtool support.
6051 case $host in
6052 ia64-*-hpux*)
6053 # Find out which ABI we are using.
6054 echo 'int i;' > conftest.$ac_ext
6055 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6056 (eval $ac_compile) 2>&5
6057 ac_status=$?
6058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6059 test $ac_status = 0; }; then
6060 case `/usr/bin/file conftest.$ac_objext` in
6061 *ELF-32*)
6062 HPUX_IA64_MODE="32"
6064 *ELF-64*)
6065 HPUX_IA64_MODE="64"
6067 esac
6069 rm -rf conftest*
6071 *-*-irix6*)
6072 # Find out which ABI we are using.
6073 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6074 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6075 (eval $ac_compile) 2>&5
6076 ac_status=$?
6077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6078 test $ac_status = 0; }; then
6079 if test "$lt_cv_prog_gnu_ld" = yes; then
6080 case `/usr/bin/file conftest.$ac_objext` in
6081 *32-bit*)
6082 LD="${LD-ld} -melf32bsmip"
6084 *N32*)
6085 LD="${LD-ld} -melf32bmipn32"
6087 *64-bit*)
6088 LD="${LD-ld} -melf64bmip"
6090 esac
6091 else
6092 case `/usr/bin/file conftest.$ac_objext` in
6093 *32-bit*)
6094 LD="${LD-ld} -32"
6096 *N32*)
6097 LD="${LD-ld} -n32"
6099 *64-bit*)
6100 LD="${LD-ld} -64"
6102 esac
6105 rm -rf conftest*
6108 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6109 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6110 # Find out which ABI we are using.
6111 echo 'int i;' > conftest.$ac_ext
6112 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6113 (eval $ac_compile) 2>&5
6114 ac_status=$?
6115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6116 test $ac_status = 0; }; then
6117 case `/usr/bin/file conftest.o` in
6118 *32-bit*)
6119 case $host in
6120 x86_64-*kfreebsd*-gnu)
6121 LD="${LD-ld} -m elf_i386_fbsd"
6123 x86_64-*linux*)
6124 case `/usr/bin/file conftest.o` in
6125 *x86-64*)
6126 LD="${LD-ld} -m elf32_x86_64"
6129 LD="${LD-ld} -m elf_i386"
6131 esac
6133 powerpc64le-*linux*)
6134 LD="${LD-ld} -m elf32lppclinux"
6136 powerpc64-*linux*)
6137 LD="${LD-ld} -m elf32ppclinux"
6139 s390x-*linux*)
6140 LD="${LD-ld} -m elf_s390"
6142 sparc64-*linux*)
6143 LD="${LD-ld} -m elf32_sparc"
6145 esac
6147 *64-bit*)
6148 case $host in
6149 x86_64-*kfreebsd*-gnu)
6150 LD="${LD-ld} -m elf_x86_64_fbsd"
6152 x86_64-*linux*)
6153 LD="${LD-ld} -m elf_x86_64"
6155 powerpcle-*linux*)
6156 LD="${LD-ld} -m elf64lppc"
6158 powerpc-*linux*)
6159 LD="${LD-ld} -m elf64ppc"
6161 s390*-*linux*|s390*-*tpf*)
6162 LD="${LD-ld} -m elf64_s390"
6164 sparc*-*linux*)
6165 LD="${LD-ld} -m elf64_sparc"
6167 esac
6169 esac
6171 rm -rf conftest*
6174 *-*-sco3.2v5*)
6175 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6176 SAVE_CFLAGS="$CFLAGS"
6177 CFLAGS="$CFLAGS -belf"
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6179 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6180 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6181 $as_echo_n "(cached) " >&6
6182 else
6183 ac_ext=c
6184 ac_cpp='$CPP $CPPFLAGS'
6185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6190 /* end confdefs.h. */
6193 main ()
6197 return 0;
6199 _ACEOF
6200 if ac_fn_c_try_link "$LINENO"; then :
6201 lt_cv_cc_needs_belf=yes
6202 else
6203 lt_cv_cc_needs_belf=no
6205 rm -f core conftest.err conftest.$ac_objext \
6206 conftest$ac_exeext conftest.$ac_ext
6207 ac_ext=c
6208 ac_cpp='$CPP $CPPFLAGS'
6209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6215 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6216 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6217 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6218 CFLAGS="$SAVE_CFLAGS"
6221 sparc*-*solaris*)
6222 # Find out which ABI we are using.
6223 echo 'int i;' > conftest.$ac_ext
6224 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6225 (eval $ac_compile) 2>&5
6226 ac_status=$?
6227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6228 test $ac_status = 0; }; then
6229 case `/usr/bin/file conftest.o` in
6230 *64-bit*)
6231 case $lt_cv_prog_gnu_ld in
6232 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6234 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6235 LD="${LD-ld} -64"
6238 esac
6240 esac
6242 rm -rf conftest*
6244 esac
6246 need_locks="$enable_libtool_lock"
6249 case $host_os in
6250 rhapsody* | darwin*)
6251 if test -n "$ac_tool_prefix"; then
6252 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6253 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6255 $as_echo_n "checking for $ac_word... " >&6; }
6256 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6257 $as_echo_n "(cached) " >&6
6258 else
6259 if test -n "$DSYMUTIL"; then
6260 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6261 else
6262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6263 for as_dir in $PATH
6265 IFS=$as_save_IFS
6266 test -z "$as_dir" && as_dir=.
6267 for ac_exec_ext in '' $ac_executable_extensions; do
6268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6269 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6271 break 2
6273 done
6274 done
6275 IFS=$as_save_IFS
6279 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6280 if test -n "$DSYMUTIL"; then
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6282 $as_echo "$DSYMUTIL" >&6; }
6283 else
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6285 $as_echo "no" >&6; }
6290 if test -z "$ac_cv_prog_DSYMUTIL"; then
6291 ac_ct_DSYMUTIL=$DSYMUTIL
6292 # Extract the first word of "dsymutil", so it can be a program name with args.
6293 set dummy dsymutil; ac_word=$2
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6295 $as_echo_n "checking for $ac_word... " >&6; }
6296 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6297 $as_echo_n "(cached) " >&6
6298 else
6299 if test -n "$ac_ct_DSYMUTIL"; then
6300 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6301 else
6302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6303 for as_dir in $PATH
6305 IFS=$as_save_IFS
6306 test -z "$as_dir" && as_dir=.
6307 for ac_exec_ext in '' $ac_executable_extensions; do
6308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6309 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6311 break 2
6313 done
6314 done
6315 IFS=$as_save_IFS
6319 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6320 if test -n "$ac_ct_DSYMUTIL"; then
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6322 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6323 else
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6325 $as_echo "no" >&6; }
6328 if test "x$ac_ct_DSYMUTIL" = x; then
6329 DSYMUTIL=":"
6330 else
6331 case $cross_compiling:$ac_tool_warned in
6332 yes:)
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6334 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6335 ac_tool_warned=yes ;;
6336 esac
6337 DSYMUTIL=$ac_ct_DSYMUTIL
6339 else
6340 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6343 if test -n "$ac_tool_prefix"; then
6344 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6345 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6347 $as_echo_n "checking for $ac_word... " >&6; }
6348 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6349 $as_echo_n "(cached) " >&6
6350 else
6351 if test -n "$NMEDIT"; then
6352 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6353 else
6354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355 for as_dir in $PATH
6357 IFS=$as_save_IFS
6358 test -z "$as_dir" && as_dir=.
6359 for ac_exec_ext in '' $ac_executable_extensions; do
6360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6361 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6363 break 2
6365 done
6366 done
6367 IFS=$as_save_IFS
6371 NMEDIT=$ac_cv_prog_NMEDIT
6372 if test -n "$NMEDIT"; then
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6374 $as_echo "$NMEDIT" >&6; }
6375 else
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6377 $as_echo "no" >&6; }
6382 if test -z "$ac_cv_prog_NMEDIT"; then
6383 ac_ct_NMEDIT=$NMEDIT
6384 # Extract the first word of "nmedit", so it can be a program name with args.
6385 set dummy nmedit; ac_word=$2
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6387 $as_echo_n "checking for $ac_word... " >&6; }
6388 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6389 $as_echo_n "(cached) " >&6
6390 else
6391 if test -n "$ac_ct_NMEDIT"; then
6392 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6393 else
6394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6395 for as_dir in $PATH
6397 IFS=$as_save_IFS
6398 test -z "$as_dir" && as_dir=.
6399 for ac_exec_ext in '' $ac_executable_extensions; do
6400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6401 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6403 break 2
6405 done
6406 done
6407 IFS=$as_save_IFS
6411 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6412 if test -n "$ac_ct_NMEDIT"; then
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6414 $as_echo "$ac_ct_NMEDIT" >&6; }
6415 else
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6417 $as_echo "no" >&6; }
6420 if test "x$ac_ct_NMEDIT" = x; then
6421 NMEDIT=":"
6422 else
6423 case $cross_compiling:$ac_tool_warned in
6424 yes:)
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6427 ac_tool_warned=yes ;;
6428 esac
6429 NMEDIT=$ac_ct_NMEDIT
6431 else
6432 NMEDIT="$ac_cv_prog_NMEDIT"
6435 if test -n "$ac_tool_prefix"; then
6436 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6437 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6439 $as_echo_n "checking for $ac_word... " >&6; }
6440 if test "${ac_cv_prog_LIPO+set}" = set; then :
6441 $as_echo_n "(cached) " >&6
6442 else
6443 if test -n "$LIPO"; then
6444 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6445 else
6446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6447 for as_dir in $PATH
6449 IFS=$as_save_IFS
6450 test -z "$as_dir" && as_dir=.
6451 for ac_exec_ext in '' $ac_executable_extensions; do
6452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6453 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6455 break 2
6457 done
6458 done
6459 IFS=$as_save_IFS
6463 LIPO=$ac_cv_prog_LIPO
6464 if test -n "$LIPO"; then
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6466 $as_echo "$LIPO" >&6; }
6467 else
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6469 $as_echo "no" >&6; }
6474 if test -z "$ac_cv_prog_LIPO"; then
6475 ac_ct_LIPO=$LIPO
6476 # Extract the first word of "lipo", so it can be a program name with args.
6477 set dummy lipo; ac_word=$2
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6479 $as_echo_n "checking for $ac_word... " >&6; }
6480 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6481 $as_echo_n "(cached) " >&6
6482 else
6483 if test -n "$ac_ct_LIPO"; then
6484 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6485 else
6486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6487 for as_dir in $PATH
6489 IFS=$as_save_IFS
6490 test -z "$as_dir" && as_dir=.
6491 for ac_exec_ext in '' $ac_executable_extensions; do
6492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6493 ac_cv_prog_ac_ct_LIPO="lipo"
6494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6495 break 2
6497 done
6498 done
6499 IFS=$as_save_IFS
6503 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6504 if test -n "$ac_ct_LIPO"; then
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6506 $as_echo "$ac_ct_LIPO" >&6; }
6507 else
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6509 $as_echo "no" >&6; }
6512 if test "x$ac_ct_LIPO" = x; then
6513 LIPO=":"
6514 else
6515 case $cross_compiling:$ac_tool_warned in
6516 yes:)
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6518 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6519 ac_tool_warned=yes ;;
6520 esac
6521 LIPO=$ac_ct_LIPO
6523 else
6524 LIPO="$ac_cv_prog_LIPO"
6527 if test -n "$ac_tool_prefix"; then
6528 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6529 set dummy ${ac_tool_prefix}otool; ac_word=$2
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6531 $as_echo_n "checking for $ac_word... " >&6; }
6532 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6533 $as_echo_n "(cached) " >&6
6534 else
6535 if test -n "$OTOOL"; then
6536 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6537 else
6538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6539 for as_dir in $PATH
6541 IFS=$as_save_IFS
6542 test -z "$as_dir" && as_dir=.
6543 for ac_exec_ext in '' $ac_executable_extensions; do
6544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6545 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6547 break 2
6549 done
6550 done
6551 IFS=$as_save_IFS
6555 OTOOL=$ac_cv_prog_OTOOL
6556 if test -n "$OTOOL"; then
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6558 $as_echo "$OTOOL" >&6; }
6559 else
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6561 $as_echo "no" >&6; }
6566 if test -z "$ac_cv_prog_OTOOL"; then
6567 ac_ct_OTOOL=$OTOOL
6568 # Extract the first word of "otool", so it can be a program name with args.
6569 set dummy otool; ac_word=$2
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6571 $as_echo_n "checking for $ac_word... " >&6; }
6572 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6573 $as_echo_n "(cached) " >&6
6574 else
6575 if test -n "$ac_ct_OTOOL"; then
6576 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6577 else
6578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6579 for as_dir in $PATH
6581 IFS=$as_save_IFS
6582 test -z "$as_dir" && as_dir=.
6583 for ac_exec_ext in '' $ac_executable_extensions; do
6584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6585 ac_cv_prog_ac_ct_OTOOL="otool"
6586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6587 break 2
6589 done
6590 done
6591 IFS=$as_save_IFS
6595 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6596 if test -n "$ac_ct_OTOOL"; then
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6598 $as_echo "$ac_ct_OTOOL" >&6; }
6599 else
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6601 $as_echo "no" >&6; }
6604 if test "x$ac_ct_OTOOL" = x; then
6605 OTOOL=":"
6606 else
6607 case $cross_compiling:$ac_tool_warned in
6608 yes:)
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6610 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6611 ac_tool_warned=yes ;;
6612 esac
6613 OTOOL=$ac_ct_OTOOL
6615 else
6616 OTOOL="$ac_cv_prog_OTOOL"
6619 if test -n "$ac_tool_prefix"; then
6620 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6621 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6623 $as_echo_n "checking for $ac_word... " >&6; }
6624 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6625 $as_echo_n "(cached) " >&6
6626 else
6627 if test -n "$OTOOL64"; then
6628 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6629 else
6630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6631 for as_dir in $PATH
6633 IFS=$as_save_IFS
6634 test -z "$as_dir" && as_dir=.
6635 for ac_exec_ext in '' $ac_executable_extensions; do
6636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6637 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6639 break 2
6641 done
6642 done
6643 IFS=$as_save_IFS
6647 OTOOL64=$ac_cv_prog_OTOOL64
6648 if test -n "$OTOOL64"; then
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6650 $as_echo "$OTOOL64" >&6; }
6651 else
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6653 $as_echo "no" >&6; }
6658 if test -z "$ac_cv_prog_OTOOL64"; then
6659 ac_ct_OTOOL64=$OTOOL64
6660 # Extract the first word of "otool64", so it can be a program name with args.
6661 set dummy otool64; ac_word=$2
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6663 $as_echo_n "checking for $ac_word... " >&6; }
6664 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6665 $as_echo_n "(cached) " >&6
6666 else
6667 if test -n "$ac_ct_OTOOL64"; then
6668 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6669 else
6670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6671 for as_dir in $PATH
6673 IFS=$as_save_IFS
6674 test -z "$as_dir" && as_dir=.
6675 for ac_exec_ext in '' $ac_executable_extensions; do
6676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6677 ac_cv_prog_ac_ct_OTOOL64="otool64"
6678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6679 break 2
6681 done
6682 done
6683 IFS=$as_save_IFS
6687 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6688 if test -n "$ac_ct_OTOOL64"; then
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6690 $as_echo "$ac_ct_OTOOL64" >&6; }
6691 else
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6693 $as_echo "no" >&6; }
6696 if test "x$ac_ct_OTOOL64" = x; then
6697 OTOOL64=":"
6698 else
6699 case $cross_compiling:$ac_tool_warned in
6700 yes:)
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6702 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6703 ac_tool_warned=yes ;;
6704 esac
6705 OTOOL64=$ac_ct_OTOOL64
6707 else
6708 OTOOL64="$ac_cv_prog_OTOOL64"
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6738 $as_echo_n "checking for -single_module linker flag... " >&6; }
6739 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6740 $as_echo_n "(cached) " >&6
6741 else
6742 lt_cv_apple_cc_single_mod=no
6743 if test -z "${LT_MULTI_MODULE}"; then
6744 # By default we will add the -single_module flag. You can override
6745 # by either setting the environment variable LT_MULTI_MODULE
6746 # non-empty at configure time, or by adding -multi_module to the
6747 # link flags.
6748 rm -rf libconftest.dylib*
6749 echo "int foo(void){return 1;}" > conftest.c
6750 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6751 -dynamiclib -Wl,-single_module conftest.c" >&5
6752 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6753 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6754 _lt_result=$?
6755 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6756 lt_cv_apple_cc_single_mod=yes
6757 else
6758 cat conftest.err >&5
6760 rm -rf libconftest.dylib*
6761 rm -f conftest.*
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6765 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6767 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6768 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6769 $as_echo_n "(cached) " >&6
6770 else
6771 lt_cv_ld_exported_symbols_list=no
6772 save_LDFLAGS=$LDFLAGS
6773 echo "_main" > conftest.sym
6774 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6776 /* end confdefs.h. */
6779 main ()
6783 return 0;
6785 _ACEOF
6786 if ac_fn_c_try_link "$LINENO"; then :
6787 lt_cv_ld_exported_symbols_list=yes
6788 else
6789 lt_cv_ld_exported_symbols_list=no
6791 rm -f core conftest.err conftest.$ac_objext \
6792 conftest$ac_exeext conftest.$ac_ext
6793 LDFLAGS="$save_LDFLAGS"
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6797 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6799 $as_echo_n "checking for -force_load linker flag... " >&6; }
6800 if test "${lt_cv_ld_force_load+set}" = set; then :
6801 $as_echo_n "(cached) " >&6
6802 else
6803 lt_cv_ld_force_load=no
6804 cat > conftest.c << _LT_EOF
6805 int forced_loaded() { return 2;}
6806 _LT_EOF
6807 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6808 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6809 echo "$AR cru libconftest.a conftest.o" >&5
6810 $AR cru libconftest.a conftest.o 2>&5
6811 cat > conftest.c << _LT_EOF
6812 int main() { return 0;}
6813 _LT_EOF
6814 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6815 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6816 _lt_result=$?
6817 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6818 lt_cv_ld_force_load=yes
6819 else
6820 cat conftest.err >&5
6822 rm -f conftest.err libconftest.a conftest conftest.c
6823 rm -rf conftest.dSYM
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6827 $as_echo "$lt_cv_ld_force_load" >&6; }
6828 case $host_os in
6829 rhapsody* | darwin1.[012])
6830 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6831 darwin1.*)
6832 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6833 darwin*) # darwin 5.x on
6834 # if running on 10.5 or later, the deployment target defaults
6835 # to the OS version, if on x86, and 10.4, the deployment
6836 # target defaults to 10.4. Don't you love it?
6837 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6838 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6839 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6840 10.[012][,.]*)
6841 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6842 10.*)
6843 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6844 esac
6846 esac
6847 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6848 _lt_dar_single_mod='$single_module'
6850 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6851 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6852 else
6853 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6855 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6856 _lt_dsymutil='~$DSYMUTIL $lib || :'
6857 else
6858 _lt_dsymutil=
6861 esac
6863 ac_ext=c
6864 ac_cpp='$CPP $CPPFLAGS'
6865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6869 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6870 # On Suns, sometimes $CPP names a directory.
6871 if test -n "$CPP" && test -d "$CPP"; then
6872 CPP=
6874 if test -z "$CPP"; then
6875 if test "${ac_cv_prog_CPP+set}" = set; then :
6876 $as_echo_n "(cached) " >&6
6877 else
6878 # Double quotes because CPP needs to be expanded
6879 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6881 ac_preproc_ok=false
6882 for ac_c_preproc_warn_flag in '' yes
6884 # Use a header file that comes with gcc, so configuring glibc
6885 # with a fresh cross-compiler works.
6886 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6887 # <limits.h> exists even on freestanding compilers.
6888 # On the NeXT, cc -E runs the code through the compiler's parser,
6889 # not just through cpp. "Syntax error" is here to catch this case.
6890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6891 /* end confdefs.h. */
6892 #ifdef __STDC__
6893 # include <limits.h>
6894 #else
6895 # include <assert.h>
6896 #endif
6897 Syntax error
6898 _ACEOF
6899 if ac_fn_c_try_cpp "$LINENO"; then :
6901 else
6902 # Broken: fails on valid input.
6903 continue
6905 rm -f conftest.err conftest.$ac_ext
6907 # OK, works on sane cases. Now check whether nonexistent headers
6908 # can be detected and how.
6909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6910 /* end confdefs.h. */
6911 #include <ac_nonexistent.h>
6912 _ACEOF
6913 if ac_fn_c_try_cpp "$LINENO"; then :
6914 # Broken: success on invalid input.
6915 continue
6916 else
6917 # Passes both tests.
6918 ac_preproc_ok=:
6919 break
6921 rm -f conftest.err conftest.$ac_ext
6923 done
6924 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6925 rm -f conftest.err conftest.$ac_ext
6926 if $ac_preproc_ok; then :
6927 break
6930 done
6931 ac_cv_prog_CPP=$CPP
6934 CPP=$ac_cv_prog_CPP
6935 else
6936 ac_cv_prog_CPP=$CPP
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6939 $as_echo "$CPP" >&6; }
6940 ac_preproc_ok=false
6941 for ac_c_preproc_warn_flag in '' yes
6943 # Use a header file that comes with gcc, so configuring glibc
6944 # with a fresh cross-compiler works.
6945 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6946 # <limits.h> exists even on freestanding compilers.
6947 # On the NeXT, cc -E runs the code through the compiler's parser,
6948 # not just through cpp. "Syntax error" is here to catch this case.
6949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6950 /* end confdefs.h. */
6951 #ifdef __STDC__
6952 # include <limits.h>
6953 #else
6954 # include <assert.h>
6955 #endif
6956 Syntax error
6957 _ACEOF
6958 if ac_fn_c_try_cpp "$LINENO"; then :
6960 else
6961 # Broken: fails on valid input.
6962 continue
6964 rm -f conftest.err conftest.$ac_ext
6966 # OK, works on sane cases. Now check whether nonexistent headers
6967 # can be detected and how.
6968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6969 /* end confdefs.h. */
6970 #include <ac_nonexistent.h>
6971 _ACEOF
6972 if ac_fn_c_try_cpp "$LINENO"; then :
6973 # Broken: success on invalid input.
6974 continue
6975 else
6976 # Passes both tests.
6977 ac_preproc_ok=:
6978 break
6980 rm -f conftest.err conftest.$ac_ext
6982 done
6983 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6984 rm -f conftest.err conftest.$ac_ext
6985 if $ac_preproc_ok; then :
6987 else
6988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6990 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6991 See \`config.log' for more details." "$LINENO" 5; }
6994 ac_ext=c
6995 ac_cpp='$CPP $CPPFLAGS'
6996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7002 $as_echo_n "checking for ANSI C header files... " >&6; }
7003 if test "${ac_cv_header_stdc+set}" = set; then :
7004 $as_echo_n "(cached) " >&6
7005 else
7006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7007 /* end confdefs.h. */
7008 #include <stdlib.h>
7009 #include <stdarg.h>
7010 #include <string.h>
7011 #include <float.h>
7014 main ()
7018 return 0;
7020 _ACEOF
7021 if ac_fn_c_try_compile "$LINENO"; then :
7022 ac_cv_header_stdc=yes
7023 else
7024 ac_cv_header_stdc=no
7026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7028 if test $ac_cv_header_stdc = yes; then
7029 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7031 /* end confdefs.h. */
7032 #include <string.h>
7034 _ACEOF
7035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7036 $EGREP "memchr" >/dev/null 2>&1; then :
7038 else
7039 ac_cv_header_stdc=no
7041 rm -f conftest*
7045 if test $ac_cv_header_stdc = yes; then
7046 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7048 /* end confdefs.h. */
7049 #include <stdlib.h>
7051 _ACEOF
7052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7053 $EGREP "free" >/dev/null 2>&1; then :
7055 else
7056 ac_cv_header_stdc=no
7058 rm -f conftest*
7062 if test $ac_cv_header_stdc = yes; then
7063 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7064 if test "$cross_compiling" = yes; then :
7066 else
7067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7068 /* end confdefs.h. */
7069 #include <ctype.h>
7070 #include <stdlib.h>
7071 #if ((' ' & 0x0FF) == 0x020)
7072 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7073 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7074 #else
7075 # define ISLOWER(c) \
7076 (('a' <= (c) && (c) <= 'i') \
7077 || ('j' <= (c) && (c) <= 'r') \
7078 || ('s' <= (c) && (c) <= 'z'))
7079 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7080 #endif
7082 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7084 main ()
7086 int i;
7087 for (i = 0; i < 256; i++)
7088 if (XOR (islower (i), ISLOWER (i))
7089 || toupper (i) != TOUPPER (i))
7090 return 2;
7091 return 0;
7093 _ACEOF
7094 if ac_fn_c_try_run "$LINENO"; then :
7096 else
7097 ac_cv_header_stdc=no
7099 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7100 conftest.$ac_objext conftest.beam conftest.$ac_ext
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7106 $as_echo "$ac_cv_header_stdc" >&6; }
7107 if test $ac_cv_header_stdc = yes; then
7109 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7113 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7114 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7115 inttypes.h stdint.h unistd.h
7116 do :
7117 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7118 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7120 eval as_val=\$$as_ac_Header
7121 if test "x$as_val" = x""yes; then :
7122 cat >>confdefs.h <<_ACEOF
7123 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7124 _ACEOF
7128 done
7131 for ac_header in dlfcn.h
7132 do :
7133 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7135 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7136 cat >>confdefs.h <<_ACEOF
7137 #define HAVE_DLFCN_H 1
7138 _ACEOF
7142 done
7148 # Set options
7152 enable_dlopen=no
7155 enable_win32_dll=no
7158 # Check whether --enable-shared was given.
7159 if test "${enable_shared+set}" = set; then :
7160 enableval=$enable_shared; p=${PACKAGE-default}
7161 case $enableval in
7162 yes) enable_shared=yes ;;
7163 no) enable_shared=no ;;
7165 enable_shared=no
7166 # Look at the argument we got. We use all the common list separators.
7167 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7168 for pkg in $enableval; do
7169 IFS="$lt_save_ifs"
7170 if test "X$pkg" = "X$p"; then
7171 enable_shared=yes
7173 done
7174 IFS="$lt_save_ifs"
7176 esac
7177 else
7178 enable_shared=yes
7189 # Check whether --enable-static was given.
7190 if test "${enable_static+set}" = set; then :
7191 enableval=$enable_static; p=${PACKAGE-default}
7192 case $enableval in
7193 yes) enable_static=yes ;;
7194 no) enable_static=no ;;
7196 enable_static=no
7197 # Look at the argument we got. We use all the common list separators.
7198 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7199 for pkg in $enableval; do
7200 IFS="$lt_save_ifs"
7201 if test "X$pkg" = "X$p"; then
7202 enable_static=yes
7204 done
7205 IFS="$lt_save_ifs"
7207 esac
7208 else
7209 enable_static=yes
7221 # Check whether --with-pic was given.
7222 if test "${with_pic+set}" = set; then :
7223 withval=$with_pic; pic_mode="$withval"
7224 else
7225 pic_mode=default
7229 test -z "$pic_mode" && pic_mode=default
7237 # Check whether --enable-fast-install was given.
7238 if test "${enable_fast_install+set}" = set; then :
7239 enableval=$enable_fast_install; p=${PACKAGE-default}
7240 case $enableval in
7241 yes) enable_fast_install=yes ;;
7242 no) enable_fast_install=no ;;
7244 enable_fast_install=no
7245 # Look at the argument we got. We use all the common list separators.
7246 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7247 for pkg in $enableval; do
7248 IFS="$lt_save_ifs"
7249 if test "X$pkg" = "X$p"; then
7250 enable_fast_install=yes
7252 done
7253 IFS="$lt_save_ifs"
7255 esac
7256 else
7257 enable_fast_install=yes
7270 # This can be used to rebuild libtool when needed
7271 LIBTOOL_DEPS="$ltmain"
7273 # Always use our own libtool.
7274 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7301 test -z "$LN_S" && LN_S="ln -s"
7316 if test -n "${ZSH_VERSION+set}" ; then
7317 setopt NO_GLOB_SUBST
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7321 $as_echo_n "checking for objdir... " >&6; }
7322 if test "${lt_cv_objdir+set}" = set; then :
7323 $as_echo_n "(cached) " >&6
7324 else
7325 rm -f .libs 2>/dev/null
7326 mkdir .libs 2>/dev/null
7327 if test -d .libs; then
7328 lt_cv_objdir=.libs
7329 else
7330 # MS-DOS does not allow filenames that begin with a dot.
7331 lt_cv_objdir=_libs
7333 rmdir .libs 2>/dev/null
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7336 $as_echo "$lt_cv_objdir" >&6; }
7337 objdir=$lt_cv_objdir
7343 cat >>confdefs.h <<_ACEOF
7344 #define LT_OBJDIR "$lt_cv_objdir/"
7345 _ACEOF
7350 case $host_os in
7351 aix3*)
7352 # AIX sometimes has problems with the GCC collect2 program. For some
7353 # reason, if we set the COLLECT_NAMES environment variable, the problems
7354 # vanish in a puff of smoke.
7355 if test "X${COLLECT_NAMES+set}" != Xset; then
7356 COLLECT_NAMES=
7357 export COLLECT_NAMES
7360 esac
7362 # Global variables:
7363 ofile=libtool
7364 can_build_shared=yes
7366 # All known linkers require a `.a' archive for static linking (except MSVC,
7367 # which needs '.lib').
7368 libext=a
7370 with_gnu_ld="$lt_cv_prog_gnu_ld"
7372 old_CC="$CC"
7373 old_CFLAGS="$CFLAGS"
7375 # Set sane defaults for various variables
7376 test -z "$CC" && CC=cc
7377 test -z "$LTCC" && LTCC=$CC
7378 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7379 test -z "$LD" && LD=ld
7380 test -z "$ac_objext" && ac_objext=o
7382 for cc_temp in $compiler""; do
7383 case $cc_temp in
7384 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7385 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7386 \-*) ;;
7387 *) break;;
7388 esac
7389 done
7390 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7393 # Only perform the check for file, if the check method requires it
7394 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7395 case $deplibs_check_method in
7396 file_magic*)
7397 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7399 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7400 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7401 $as_echo_n "(cached) " >&6
7402 else
7403 case $MAGIC_CMD in
7404 [\\/*] | ?:[\\/]*)
7405 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7408 lt_save_MAGIC_CMD="$MAGIC_CMD"
7409 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7410 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7411 for ac_dir in $ac_dummy; do
7412 IFS="$lt_save_ifs"
7413 test -z "$ac_dir" && ac_dir=.
7414 if test -f $ac_dir/${ac_tool_prefix}file; then
7415 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7416 if test -n "$file_magic_test_file"; then
7417 case $deplibs_check_method in
7418 "file_magic "*)
7419 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7420 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7421 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7422 $EGREP "$file_magic_regex" > /dev/null; then
7424 else
7425 cat <<_LT_EOF 1>&2
7427 *** Warning: the command libtool uses to detect shared libraries,
7428 *** $file_magic_cmd, produces output that libtool cannot recognize.
7429 *** The result is that libtool may fail to recognize shared libraries
7430 *** as such. This will affect the creation of libtool libraries that
7431 *** depend on shared libraries, but programs linked with such libtool
7432 *** libraries will work regardless of this problem. Nevertheless, you
7433 *** may want to report the problem to your system manager and/or to
7434 *** bug-libtool@gnu.org
7436 _LT_EOF
7437 fi ;;
7438 esac
7440 break
7442 done
7443 IFS="$lt_save_ifs"
7444 MAGIC_CMD="$lt_save_MAGIC_CMD"
7446 esac
7449 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7450 if test -n "$MAGIC_CMD"; then
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7452 $as_echo "$MAGIC_CMD" >&6; }
7453 else
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7455 $as_echo "no" >&6; }
7462 if test -z "$lt_cv_path_MAGIC_CMD"; then
7463 if test -n "$ac_tool_prefix"; then
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7465 $as_echo_n "checking for file... " >&6; }
7466 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7467 $as_echo_n "(cached) " >&6
7468 else
7469 case $MAGIC_CMD in
7470 [\\/*] | ?:[\\/]*)
7471 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7474 lt_save_MAGIC_CMD="$MAGIC_CMD"
7475 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7476 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7477 for ac_dir in $ac_dummy; do
7478 IFS="$lt_save_ifs"
7479 test -z "$ac_dir" && ac_dir=.
7480 if test -f $ac_dir/file; then
7481 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7482 if test -n "$file_magic_test_file"; then
7483 case $deplibs_check_method in
7484 "file_magic "*)
7485 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7486 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7487 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7488 $EGREP "$file_magic_regex" > /dev/null; then
7490 else
7491 cat <<_LT_EOF 1>&2
7493 *** Warning: the command libtool uses to detect shared libraries,
7494 *** $file_magic_cmd, produces output that libtool cannot recognize.
7495 *** The result is that libtool may fail to recognize shared libraries
7496 *** as such. This will affect the creation of libtool libraries that
7497 *** depend on shared libraries, but programs linked with such libtool
7498 *** libraries will work regardless of this problem. Nevertheless, you
7499 *** may want to report the problem to your system manager and/or to
7500 *** bug-libtool@gnu.org
7502 _LT_EOF
7503 fi ;;
7504 esac
7506 break
7508 done
7509 IFS="$lt_save_ifs"
7510 MAGIC_CMD="$lt_save_MAGIC_CMD"
7512 esac
7515 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7516 if test -n "$MAGIC_CMD"; then
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7518 $as_echo "$MAGIC_CMD" >&6; }
7519 else
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7521 $as_echo "no" >&6; }
7525 else
7526 MAGIC_CMD=:
7532 esac
7534 # Use C for the default configuration in the libtool script
7536 lt_save_CC="$CC"
7537 ac_ext=c
7538 ac_cpp='$CPP $CPPFLAGS'
7539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7544 # Source file extension for C test sources.
7545 ac_ext=c
7547 # Object file extension for compiled C test sources.
7548 objext=o
7549 objext=$objext
7551 # Code to be used in simple compile tests
7552 lt_simple_compile_test_code="int some_variable = 0;"
7554 # Code to be used in simple link tests
7555 lt_simple_link_test_code='int main(){return(0);}'
7563 # If no C compiler was specified, use CC.
7564 LTCC=${LTCC-"$CC"}
7566 # If no C compiler flags were specified, use CFLAGS.
7567 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7569 # Allow CC to be a program name with arguments.
7570 compiler=$CC
7572 # Save the default compiler, since it gets overwritten when the other
7573 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7574 compiler_DEFAULT=$CC
7576 # save warnings/boilerplate of simple test code
7577 ac_outfile=conftest.$ac_objext
7578 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7579 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7580 _lt_compiler_boilerplate=`cat conftest.err`
7581 $RM conftest*
7583 ac_outfile=conftest.$ac_objext
7584 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7585 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7586 _lt_linker_boilerplate=`cat conftest.err`
7587 $RM -r conftest*
7590 ## CAVEAT EMPTOR:
7591 ## There is no encapsulation within the following macros, do not change
7592 ## the running order or otherwise move them around unless you know exactly
7593 ## what you are doing...
7594 if test -n "$compiler"; then
7596 lt_prog_compiler_no_builtin_flag=
7598 if test "$GCC" = yes; then
7599 case $cc_basename in
7600 nvcc*)
7601 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7603 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7604 esac
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7607 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7608 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7609 $as_echo_n "(cached) " >&6
7610 else
7611 lt_cv_prog_compiler_rtti_exceptions=no
7612 ac_outfile=conftest.$ac_objext
7613 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7614 lt_compiler_flag="-fno-rtti -fno-exceptions"
7615 # Insert the option either (1) after the last *FLAGS variable, or
7616 # (2) before a word containing "conftest.", or (3) at the end.
7617 # Note that $ac_compile itself does not contain backslashes and begins
7618 # with a dollar sign (not a hyphen), so the echo should work correctly.
7619 # The option is referenced via a variable to avoid confusing sed.
7620 lt_compile=`echo "$ac_compile" | $SED \
7621 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7622 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7623 -e 's:$: $lt_compiler_flag:'`
7624 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7625 (eval "$lt_compile" 2>conftest.err)
7626 ac_status=$?
7627 cat conftest.err >&5
7628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629 if (exit $ac_status) && test -s "$ac_outfile"; then
7630 # The compiler can only warn and ignore the option if not recognized
7631 # So say no if there are warnings other than the usual output.
7632 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7633 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7634 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7635 lt_cv_prog_compiler_rtti_exceptions=yes
7638 $RM conftest*
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7642 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7644 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7645 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7646 else
7657 lt_prog_compiler_wl=
7658 lt_prog_compiler_pic=
7659 lt_prog_compiler_static=
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7662 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7664 if test "$GCC" = yes; then
7665 lt_prog_compiler_wl='-Wl,'
7666 lt_prog_compiler_static='-static'
7668 case $host_os in
7669 aix*)
7670 # All AIX code is PIC.
7671 if test "$host_cpu" = ia64; then
7672 # AIX 5 now supports IA64 processor
7673 lt_prog_compiler_static='-Bstatic'
7675 lt_prog_compiler_pic='-fPIC'
7678 amigaos*)
7679 case $host_cpu in
7680 powerpc)
7681 # see comment about AmigaOS4 .so support
7682 lt_prog_compiler_pic='-fPIC'
7684 m68k)
7685 # FIXME: we need at least 68020 code to build shared libraries, but
7686 # adding the `-m68020' flag to GCC prevents building anything better,
7687 # like `-m68040'.
7688 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7690 esac
7693 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7694 # PIC is the default for these OSes.
7697 mingw* | cygwin* | pw32* | os2* | cegcc*)
7698 # This hack is so that the source file can tell whether it is being
7699 # built for inclusion in a dll (and should export symbols for example).
7700 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7701 # (--disable-auto-import) libraries
7702 lt_prog_compiler_pic='-DDLL_EXPORT'
7705 darwin* | rhapsody*)
7706 # PIC is the default on this platform
7707 # Common symbols not allowed in MH_DYLIB files
7708 lt_prog_compiler_pic='-fno-common'
7711 haiku*)
7712 # PIC is the default for Haiku.
7713 # The "-static" flag exists, but is broken.
7714 lt_prog_compiler_static=
7717 hpux*)
7718 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7719 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7720 # sets the default TLS model and affects inlining.
7721 case $host_cpu in
7722 hppa*64*)
7723 # +Z the default
7726 lt_prog_compiler_pic='-fPIC'
7728 esac
7731 interix[3-9]*)
7732 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7733 # Instead, we relocate shared libraries at runtime.
7736 msdosdjgpp*)
7737 # Just because we use GCC doesn't mean we suddenly get shared libraries
7738 # on systems that don't support them.
7739 lt_prog_compiler_can_build_shared=no
7740 enable_shared=no
7743 *nto* | *qnx*)
7744 # QNX uses GNU C++, but need to define -shared option too, otherwise
7745 # it will coredump.
7746 lt_prog_compiler_pic='-fPIC -shared'
7749 sysv4*MP*)
7750 if test -d /usr/nec; then
7751 lt_prog_compiler_pic=-Kconform_pic
7756 lt_prog_compiler_pic='-fPIC'
7758 esac
7760 case $cc_basename in
7761 nvcc*) # Cuda Compiler Driver 2.2
7762 lt_prog_compiler_wl='-Xlinker '
7763 lt_prog_compiler_pic='-Xcompiler -fPIC'
7765 esac
7766 else
7767 # PORTME Check for flag to pass linker flags through the system compiler.
7768 case $host_os in
7769 aix*)
7770 lt_prog_compiler_wl='-Wl,'
7771 if test "$host_cpu" = ia64; then
7772 # AIX 5 now supports IA64 processor
7773 lt_prog_compiler_static='-Bstatic'
7774 else
7775 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7779 mingw* | cygwin* | pw32* | os2* | cegcc*)
7780 # This hack is so that the source file can tell whether it is being
7781 # built for inclusion in a dll (and should export symbols for example).
7782 lt_prog_compiler_pic='-DDLL_EXPORT'
7785 hpux9* | hpux10* | hpux11*)
7786 lt_prog_compiler_wl='-Wl,'
7787 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7788 # not for PA HP-UX.
7789 case $host_cpu in
7790 hppa*64*|ia64*)
7791 # +Z the default
7794 lt_prog_compiler_pic='+Z'
7796 esac
7797 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7798 lt_prog_compiler_static='${wl}-a ${wl}archive'
7801 irix5* | irix6* | nonstopux*)
7802 lt_prog_compiler_wl='-Wl,'
7803 # PIC (with -KPIC) is the default.
7804 lt_prog_compiler_static='-non_shared'
7807 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7808 case $cc_basename in
7809 # old Intel for x86_64 which still supported -KPIC.
7810 ecc*)
7811 lt_prog_compiler_wl='-Wl,'
7812 lt_prog_compiler_pic='-KPIC'
7813 lt_prog_compiler_static='-static'
7815 # icc used to be incompatible with GCC.
7816 # ICC 10 doesn't accept -KPIC any more.
7817 icc* | ifort*)
7818 lt_prog_compiler_wl='-Wl,'
7819 lt_prog_compiler_pic='-fPIC'
7820 lt_prog_compiler_static='-static'
7822 # Lahey Fortran 8.1.
7823 lf95*)
7824 lt_prog_compiler_wl='-Wl,'
7825 lt_prog_compiler_pic='--shared'
7826 lt_prog_compiler_static='--static'
7828 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7829 # Portland Group compilers (*not* the Pentium gcc compiler,
7830 # which looks to be a dead project)
7831 lt_prog_compiler_wl='-Wl,'
7832 lt_prog_compiler_pic='-fpic'
7833 lt_prog_compiler_static='-Bstatic'
7835 ccc*)
7836 lt_prog_compiler_wl='-Wl,'
7837 # All Alpha code is PIC.
7838 lt_prog_compiler_static='-non_shared'
7840 xl* | bgxl* | bgf* | mpixl*)
7841 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7842 lt_prog_compiler_wl='-Wl,'
7843 lt_prog_compiler_pic='-qpic'
7844 lt_prog_compiler_static='-qstaticlink'
7847 case `$CC -V 2>&1 | sed 5q` in
7848 *Sun\ F* | *Sun*Fortran*)
7849 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7850 lt_prog_compiler_pic='-KPIC'
7851 lt_prog_compiler_static='-Bstatic'
7852 lt_prog_compiler_wl=''
7854 *Sun\ C*)
7855 # Sun C 5.9
7856 lt_prog_compiler_pic='-KPIC'
7857 lt_prog_compiler_static='-Bstatic'
7858 lt_prog_compiler_wl='-Wl,'
7860 esac
7862 esac
7865 newsos6)
7866 lt_prog_compiler_pic='-KPIC'
7867 lt_prog_compiler_static='-Bstatic'
7870 *nto* | *qnx*)
7871 # QNX uses GNU C++, but need to define -shared option too, otherwise
7872 # it will coredump.
7873 lt_prog_compiler_pic='-fPIC -shared'
7876 osf3* | osf4* | osf5*)
7877 lt_prog_compiler_wl='-Wl,'
7878 # All OSF/1 code is PIC.
7879 lt_prog_compiler_static='-non_shared'
7882 rdos*)
7883 lt_prog_compiler_static='-non_shared'
7886 solaris*)
7887 lt_prog_compiler_pic='-KPIC'
7888 lt_prog_compiler_static='-Bstatic'
7889 case $cc_basename in
7890 f77* | f90* | f95*)
7891 lt_prog_compiler_wl='-Qoption ld ';;
7893 lt_prog_compiler_wl='-Wl,';;
7894 esac
7897 sunos4*)
7898 lt_prog_compiler_wl='-Qoption ld '
7899 lt_prog_compiler_pic='-PIC'
7900 lt_prog_compiler_static='-Bstatic'
7903 sysv4 | sysv4.2uw2* | sysv4.3*)
7904 lt_prog_compiler_wl='-Wl,'
7905 lt_prog_compiler_pic='-KPIC'
7906 lt_prog_compiler_static='-Bstatic'
7909 sysv4*MP*)
7910 if test -d /usr/nec ;then
7911 lt_prog_compiler_pic='-Kconform_pic'
7912 lt_prog_compiler_static='-Bstatic'
7916 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7917 lt_prog_compiler_wl='-Wl,'
7918 lt_prog_compiler_pic='-KPIC'
7919 lt_prog_compiler_static='-Bstatic'
7922 unicos*)
7923 lt_prog_compiler_wl='-Wl,'
7924 lt_prog_compiler_can_build_shared=no
7927 uts4*)
7928 lt_prog_compiler_pic='-pic'
7929 lt_prog_compiler_static='-Bstatic'
7933 lt_prog_compiler_can_build_shared=no
7935 esac
7938 case $host_os in
7939 # For platforms which do not support PIC, -DPIC is meaningless:
7940 *djgpp*)
7941 lt_prog_compiler_pic=
7944 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7946 esac
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7948 $as_echo "$lt_prog_compiler_pic" >&6; }
7956 # Check to make sure the PIC flag actually works.
7958 if test -n "$lt_prog_compiler_pic"; then
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7960 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7961 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7962 $as_echo_n "(cached) " >&6
7963 else
7964 lt_cv_prog_compiler_pic_works=no
7965 ac_outfile=conftest.$ac_objext
7966 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7967 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7968 # Insert the option either (1) after the last *FLAGS variable, or
7969 # (2) before a word containing "conftest.", or (3) at the end.
7970 # Note that $ac_compile itself does not contain backslashes and begins
7971 # with a dollar sign (not a hyphen), so the echo should work correctly.
7972 # The option is referenced via a variable to avoid confusing sed.
7973 lt_compile=`echo "$ac_compile" | $SED \
7974 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7975 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7976 -e 's:$: $lt_compiler_flag:'`
7977 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7978 (eval "$lt_compile" 2>conftest.err)
7979 ac_status=$?
7980 cat conftest.err >&5
7981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982 if (exit $ac_status) && test -s "$ac_outfile"; then
7983 # The compiler can only warn and ignore the option if not recognized
7984 # So say no if there are warnings other than the usual output.
7985 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7986 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7987 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7988 lt_cv_prog_compiler_pic_works=yes
7991 $RM conftest*
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7995 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7997 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7998 case $lt_prog_compiler_pic in
7999 "" | " "*) ;;
8000 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8001 esac
8002 else
8003 lt_prog_compiler_pic=
8004 lt_prog_compiler_can_build_shared=no
8015 # Check to make sure the static flag actually works.
8017 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8019 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8020 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8021 $as_echo_n "(cached) " >&6
8022 else
8023 lt_cv_prog_compiler_static_works=no
8024 save_LDFLAGS="$LDFLAGS"
8025 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8026 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8027 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8028 # The linker can only warn and ignore the option if not recognized
8029 # So say no if there are warnings
8030 if test -s conftest.err; then
8031 # Append any errors to the config.log.
8032 cat conftest.err 1>&5
8033 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8034 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8035 if diff conftest.exp conftest.er2 >/dev/null; then
8036 lt_cv_prog_compiler_static_works=yes
8038 else
8039 lt_cv_prog_compiler_static_works=yes
8042 $RM -r conftest*
8043 LDFLAGS="$save_LDFLAGS"
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8047 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8049 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8051 else
8052 lt_prog_compiler_static=
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8062 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8063 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8064 $as_echo_n "(cached) " >&6
8065 else
8066 lt_cv_prog_compiler_c_o=no
8067 $RM -r conftest 2>/dev/null
8068 mkdir conftest
8069 cd conftest
8070 mkdir out
8071 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8073 lt_compiler_flag="-o out/conftest2.$ac_objext"
8074 # Insert the option either (1) after the last *FLAGS variable, or
8075 # (2) before a word containing "conftest.", or (3) at the end.
8076 # Note that $ac_compile itself does not contain backslashes and begins
8077 # with a dollar sign (not a hyphen), so the echo should work correctly.
8078 lt_compile=`echo "$ac_compile" | $SED \
8079 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8080 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8081 -e 's:$: $lt_compiler_flag:'`
8082 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8083 (eval "$lt_compile" 2>out/conftest.err)
8084 ac_status=$?
8085 cat out/conftest.err >&5
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8088 then
8089 # The compiler can only warn and ignore the option if not recognized
8090 # So say no if there are warnings
8091 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8092 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8093 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8094 lt_cv_prog_compiler_c_o=yes
8097 chmod u+w . 2>&5
8098 $RM conftest*
8099 # SGI C++ compiler will create directory out/ii_files/ for
8100 # template instantiation
8101 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8102 $RM out/* && rmdir out
8103 cd ..
8104 $RM -r conftest
8105 $RM conftest*
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8109 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8117 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8118 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8119 $as_echo_n "(cached) " >&6
8120 else
8121 lt_cv_prog_compiler_c_o=no
8122 $RM -r conftest 2>/dev/null
8123 mkdir conftest
8124 cd conftest
8125 mkdir out
8126 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8128 lt_compiler_flag="-o out/conftest2.$ac_objext"
8129 # Insert the option either (1) after the last *FLAGS variable, or
8130 # (2) before a word containing "conftest.", or (3) at the end.
8131 # Note that $ac_compile itself does not contain backslashes and begins
8132 # with a dollar sign (not a hyphen), so the echo should work correctly.
8133 lt_compile=`echo "$ac_compile" | $SED \
8134 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8135 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8136 -e 's:$: $lt_compiler_flag:'`
8137 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8138 (eval "$lt_compile" 2>out/conftest.err)
8139 ac_status=$?
8140 cat out/conftest.err >&5
8141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8142 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8143 then
8144 # The compiler can only warn and ignore the option if not recognized
8145 # So say no if there are warnings
8146 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8147 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8148 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8149 lt_cv_prog_compiler_c_o=yes
8152 chmod u+w . 2>&5
8153 $RM conftest*
8154 # SGI C++ compiler will create directory out/ii_files/ for
8155 # template instantiation
8156 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8157 $RM out/* && rmdir out
8158 cd ..
8159 $RM -r conftest
8160 $RM conftest*
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8164 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8169 hard_links="nottested"
8170 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8171 # do not overwrite the value of need_locks provided by the user
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8173 $as_echo_n "checking if we can lock with hard links... " >&6; }
8174 hard_links=yes
8175 $RM conftest*
8176 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8177 touch conftest.a
8178 ln conftest.a conftest.b 2>&5 || hard_links=no
8179 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8181 $as_echo "$hard_links" >&6; }
8182 if test "$hard_links" = no; then
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8184 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8185 need_locks=warn
8187 else
8188 need_locks=no
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8197 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8199 runpath_var=
8200 allow_undefined_flag=
8201 always_export_symbols=no
8202 archive_cmds=
8203 archive_expsym_cmds=
8204 compiler_needs_object=no
8205 enable_shared_with_static_runtimes=no
8206 export_dynamic_flag_spec=
8207 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8208 hardcode_automatic=no
8209 hardcode_direct=no
8210 hardcode_direct_absolute=no
8211 hardcode_libdir_flag_spec=
8212 hardcode_libdir_flag_spec_ld=
8213 hardcode_libdir_separator=
8214 hardcode_minus_L=no
8215 hardcode_shlibpath_var=unsupported
8216 inherit_rpath=no
8217 link_all_deplibs=unknown
8218 module_cmds=
8219 module_expsym_cmds=
8220 old_archive_from_new_cmds=
8221 old_archive_from_expsyms_cmds=
8222 thread_safe_flag_spec=
8223 whole_archive_flag_spec=
8224 # include_expsyms should be a list of space-separated symbols to be *always*
8225 # included in the symbol list
8226 include_expsyms=
8227 # exclude_expsyms can be an extended regexp of symbols to exclude
8228 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8229 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8230 # as well as any symbol that contains `d'.
8231 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8232 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8233 # platforms (ab)use it in PIC code, but their linkers get confused if
8234 # the symbol is explicitly referenced. Since portable code cannot
8235 # rely on this symbol name, it's probably fine to never include it in
8236 # preloaded symbol tables.
8237 # Exclude shared library initialization/finalization symbols.
8238 extract_expsyms_cmds=
8240 case $host_os in
8241 cygwin* | mingw* | pw32* | cegcc*)
8242 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8243 # When not using gcc, we currently assume that we are using
8244 # Microsoft Visual C++.
8245 if test "$GCC" != yes; then
8246 with_gnu_ld=no
8249 interix*)
8250 # we just hope/assume this is gcc and not c89 (= MSVC++)
8251 with_gnu_ld=yes
8253 openbsd*)
8254 with_gnu_ld=no
8256 esac
8258 ld_shlibs=yes
8260 # On some targets, GNU ld is compatible enough with the native linker
8261 # that we're better off using the native interface for both.
8262 lt_use_gnu_ld_interface=no
8263 if test "$with_gnu_ld" = yes; then
8264 case $host_os in
8265 aix*)
8266 # The AIX port of GNU ld has always aspired to compatibility
8267 # with the native linker. However, as the warning in the GNU ld
8268 # block says, versions before 2.19.5* couldn't really create working
8269 # shared libraries, regardless of the interface used.
8270 case `$LD -v 2>&1` in
8271 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8272 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8273 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8275 lt_use_gnu_ld_interface=yes
8277 esac
8280 lt_use_gnu_ld_interface=yes
8282 esac
8285 if test "$lt_use_gnu_ld_interface" = yes; then
8286 # If archive_cmds runs LD, not CC, wlarc should be empty
8287 wlarc='${wl}'
8289 # Set some defaults for GNU ld with shared library support. These
8290 # are reset later if shared libraries are not supported. Putting them
8291 # here allows them to be overridden if necessary.
8292 runpath_var=LD_RUN_PATH
8293 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8294 export_dynamic_flag_spec='${wl}--export-dynamic'
8295 # ancient GNU ld didn't support --whole-archive et. al.
8296 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8297 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8298 else
8299 whole_archive_flag_spec=
8301 supports_anon_versioning=no
8302 case `$LD -v 2>&1` in
8303 *GNU\ gold*) supports_anon_versioning=yes ;;
8304 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8305 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8306 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8307 *\ 2.11.*) ;; # other 2.11 versions
8308 *) supports_anon_versioning=yes ;;
8309 esac
8311 # See if GNU ld supports shared libraries.
8312 case $host_os in
8313 aix[3-9]*)
8314 # On AIX/PPC, the GNU linker is very broken
8315 if test "$host_cpu" != ia64; then
8316 ld_shlibs=no
8317 cat <<_LT_EOF 1>&2
8319 *** Warning: the GNU linker, at least up to release 2.19, is reported
8320 *** to be unable to reliably create shared libraries on AIX.
8321 *** Therefore, libtool is disabling shared libraries support. If you
8322 *** really care for shared libraries, you may want to install binutils
8323 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8324 *** You will then need to restart the configuration process.
8326 _LT_EOF
8330 amigaos*)
8331 case $host_cpu in
8332 powerpc)
8333 # see comment about AmigaOS4 .so support
8334 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8335 archive_expsym_cmds=''
8337 m68k)
8338 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)'
8339 hardcode_libdir_flag_spec='-L$libdir'
8340 hardcode_minus_L=yes
8342 esac
8345 beos*)
8346 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8347 allow_undefined_flag=unsupported
8348 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8349 # support --undefined. This deserves some investigation. FIXME
8350 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8351 else
8352 ld_shlibs=no
8356 cygwin* | mingw* | pw32* | cegcc*)
8357 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8358 # as there is no search path for DLLs.
8359 hardcode_libdir_flag_spec='-L$libdir'
8360 export_dynamic_flag_spec='${wl}--export-all-symbols'
8361 allow_undefined_flag=unsupported
8362 always_export_symbols=no
8363 enable_shared_with_static_runtimes=yes
8364 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8366 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8367 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8368 # If the export-symbols file already is a .def file (1st line
8369 # is EXPORTS), use it as is; otherwise, prepend...
8370 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8371 cp $export_symbols $output_objdir/$soname.def;
8372 else
8373 echo EXPORTS > $output_objdir/$soname.def;
8374 cat $export_symbols >> $output_objdir/$soname.def;
8376 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8377 else
8378 ld_shlibs=no
8382 haiku*)
8383 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8384 link_all_deplibs=yes
8387 interix[3-9]*)
8388 hardcode_direct=no
8389 hardcode_shlibpath_var=no
8390 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8391 export_dynamic_flag_spec='${wl}-E'
8392 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8393 # Instead, shared libraries are loaded at an image base (0x10000000 by
8394 # default) and relocated if they conflict, which is a slow very memory
8395 # consuming and fragmenting process. To avoid this, we pick a random,
8396 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8397 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8398 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8399 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'
8402 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8403 tmp_diet=no
8404 if test "$host_os" = linux-dietlibc; then
8405 case $cc_basename in
8406 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8407 esac
8409 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8410 && test "$tmp_diet" = no
8411 then
8412 tmp_addflag=' $pic_flag'
8413 tmp_sharedflag='-shared'
8414 case $cc_basename,$host_cpu in
8415 pgcc*) # Portland Group C compiler
8416 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'
8417 tmp_addflag=' $pic_flag'
8419 pgf77* | pgf90* | pgf95* | pgfortran*)
8420 # Portland Group f77 and f90 compilers
8421 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'
8422 tmp_addflag=' $pic_flag -Mnomain' ;;
8423 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8424 tmp_addflag=' -i_dynamic' ;;
8425 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8426 tmp_addflag=' -i_dynamic -nofor_main' ;;
8427 ifc* | ifort*) # Intel Fortran compiler
8428 tmp_addflag=' -nofor_main' ;;
8429 lf95*) # Lahey Fortran 8.1
8430 whole_archive_flag_spec=
8431 tmp_sharedflag='--shared' ;;
8432 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8433 tmp_sharedflag='-qmkshrobj'
8434 tmp_addflag= ;;
8435 nvcc*) # Cuda Compiler Driver 2.2
8436 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'
8437 compiler_needs_object=yes
8439 esac
8440 case `$CC -V 2>&1 | sed 5q` in
8441 *Sun\ C*) # Sun C 5.9
8442 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'
8443 compiler_needs_object=yes
8444 tmp_sharedflag='-G' ;;
8445 *Sun\ F*) # Sun Fortran 8.3
8446 tmp_sharedflag='-G' ;;
8447 esac
8448 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8450 if test "x$supports_anon_versioning" = xyes; then
8451 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8452 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8453 echo "local: *; };" >> $output_objdir/$libname.ver~
8454 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8457 case $cc_basename in
8458 xlf* | bgf* | bgxlf* | mpixlf*)
8459 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8460 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8461 hardcode_libdir_flag_spec=
8462 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8463 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8464 if test "x$supports_anon_versioning" = xyes; then
8465 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8466 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8467 echo "local: *; };" >> $output_objdir/$libname.ver~
8468 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8471 esac
8472 else
8473 ld_shlibs=no
8477 netbsd*)
8478 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8479 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8480 wlarc=
8481 else
8482 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8483 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8487 solaris*)
8488 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8489 ld_shlibs=no
8490 cat <<_LT_EOF 1>&2
8492 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8493 *** create shared libraries on Solaris systems. Therefore, libtool
8494 *** is disabling shared libraries support. We urge you to upgrade GNU
8495 *** binutils to release 2.9.1 or newer. Another option is to modify
8496 *** your PATH or compiler configuration so that the native linker is
8497 *** used, and then restart.
8499 _LT_EOF
8500 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8501 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8502 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8503 else
8504 ld_shlibs=no
8508 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8509 case `$LD -v 2>&1` in
8510 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8511 ld_shlibs=no
8512 cat <<_LT_EOF 1>&2
8514 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8515 *** reliably create shared libraries on SCO systems. Therefore, libtool
8516 *** is disabling shared libraries support. We urge you to upgrade GNU
8517 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8518 *** your PATH or compiler configuration so that the native linker is
8519 *** used, and then restart.
8521 _LT_EOF
8524 # For security reasons, it is highly recommended that you always
8525 # use absolute paths for naming shared libraries, and exclude the
8526 # DT_RUNPATH tag from executables and libraries. But doing so
8527 # requires that you compile everything twice, which is a pain.
8528 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8529 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8530 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8531 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8532 else
8533 ld_shlibs=no
8536 esac
8539 sunos4*)
8540 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8541 wlarc=
8542 hardcode_direct=yes
8543 hardcode_shlibpath_var=no
8547 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8548 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8549 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8550 else
8551 ld_shlibs=no
8554 esac
8556 if test "$ld_shlibs" = no; then
8557 runpath_var=
8558 hardcode_libdir_flag_spec=
8559 export_dynamic_flag_spec=
8560 whole_archive_flag_spec=
8562 else
8563 # PORTME fill in a description of your system's linker (not GNU ld)
8564 case $host_os in
8565 aix3*)
8566 allow_undefined_flag=unsupported
8567 always_export_symbols=yes
8568 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'
8569 # Note: this linker hardcodes the directories in LIBPATH if there
8570 # are no directories specified by -L.
8571 hardcode_minus_L=yes
8572 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8573 # Neither direct hardcoding nor static linking is supported with a
8574 # broken collect2.
8575 hardcode_direct=unsupported
8579 aix[4-9]*)
8580 if test "$host_cpu" = ia64; then
8581 # On IA64, the linker does run time linking by default, so we don't
8582 # have to do anything special.
8583 aix_use_runtimelinking=no
8584 exp_sym_flag='-Bexport'
8585 no_entry_flag=""
8586 else
8587 # If we're using GNU nm, then we don't want the "-C" option.
8588 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8589 # Also, AIX nm treats weak defined symbols like other global
8590 # defined symbols, whereas GNU nm marks them as "W".
8591 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8592 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'
8593 else
8594 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'
8596 aix_use_runtimelinking=no
8598 # Test if we are trying to use run time linking or normal
8599 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8600 # need to do runtime linking.
8601 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8602 for ld_flag in $LDFLAGS; do
8603 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8604 aix_use_runtimelinking=yes
8605 break
8607 done
8609 esac
8611 exp_sym_flag='-bexport'
8612 no_entry_flag='-bnoentry'
8615 # When large executables or shared objects are built, AIX ld can
8616 # have problems creating the table of contents. If linking a library
8617 # or program results in "error TOC overflow" add -mminimal-toc to
8618 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8619 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8621 archive_cmds=''
8622 hardcode_direct=yes
8623 hardcode_direct_absolute=yes
8624 hardcode_libdir_separator=':'
8625 link_all_deplibs=yes
8626 file_list_spec='${wl}-f,'
8628 if test "$GCC" = yes; then
8629 case $host_os in aix4.[012]|aix4.[012].*)
8630 # We only want to do this on AIX 4.2 and lower, the check
8631 # below for broken collect2 doesn't work under 4.3+
8632 collect2name=`${CC} -print-prog-name=collect2`
8633 if test -f "$collect2name" &&
8634 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8635 then
8636 # We have reworked collect2
8638 else
8639 # We have old collect2
8640 hardcode_direct=unsupported
8641 # It fails to find uninstalled libraries when the uninstalled
8642 # path is not listed in the libpath. Setting hardcode_minus_L
8643 # to unsupported forces relinking
8644 hardcode_minus_L=yes
8645 hardcode_libdir_flag_spec='-L$libdir'
8646 hardcode_libdir_separator=
8649 esac
8650 shared_flag='-shared'
8651 if test "$aix_use_runtimelinking" = yes; then
8652 shared_flag="$shared_flag "'${wl}-G'
8654 else
8655 # not using gcc
8656 if test "$host_cpu" = ia64; then
8657 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8658 # chokes on -Wl,-G. The following line is correct:
8659 shared_flag='-G'
8660 else
8661 if test "$aix_use_runtimelinking" = yes; then
8662 shared_flag='${wl}-G'
8663 else
8664 shared_flag='${wl}-bM:SRE'
8669 export_dynamic_flag_spec='${wl}-bexpall'
8670 # It seems that -bexpall does not export symbols beginning with
8671 # underscore (_), so it is better to generate a list of symbols to export.
8672 always_export_symbols=yes
8673 if test "$aix_use_runtimelinking" = yes; then
8674 # Warning - without using the other runtime loading flags (-brtl),
8675 # -berok will link without error, but may produce a broken library.
8676 allow_undefined_flag='-berok'
8677 # Determine the default libpath from the value encoded in an
8678 # empty executable.
8679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8680 /* end confdefs.h. */
8683 main ()
8687 return 0;
8689 _ACEOF
8690 if ac_fn_c_try_link "$LINENO"; then :
8692 lt_aix_libpath_sed='
8693 /Import File Strings/,/^$/ {
8694 /^0/ {
8695 s/^0 *\(.*\)$/\1/
8699 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8700 # Check for a 64-bit object if we didn't find anything.
8701 if test -z "$aix_libpath"; then
8702 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8705 rm -f core conftest.err conftest.$ac_objext \
8706 conftest$ac_exeext conftest.$ac_ext
8707 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8709 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8710 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"
8711 else
8712 if test "$host_cpu" = ia64; then
8713 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8714 allow_undefined_flag="-z nodefs"
8715 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"
8716 else
8717 # Determine the default libpath from the value encoded in an
8718 # empty executable.
8719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8720 /* end confdefs.h. */
8723 main ()
8727 return 0;
8729 _ACEOF
8730 if ac_fn_c_try_link "$LINENO"; then :
8732 lt_aix_libpath_sed='
8733 /Import File Strings/,/^$/ {
8734 /^0/ {
8735 s/^0 *\(.*\)$/\1/
8739 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8740 # Check for a 64-bit object if we didn't find anything.
8741 if test -z "$aix_libpath"; then
8742 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8745 rm -f core conftest.err conftest.$ac_objext \
8746 conftest$ac_exeext conftest.$ac_ext
8747 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8749 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8750 # Warning - without using the other run time loading flags,
8751 # -berok will link without error, but may produce a broken library.
8752 no_undefined_flag=' ${wl}-bernotok'
8753 allow_undefined_flag=' ${wl}-berok'
8754 if test "$with_gnu_ld" = yes; then
8755 # We only use this code for GNU lds that support --whole-archive.
8756 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8757 else
8758 # Exported symbols can be pulled into shared objects from archives
8759 whole_archive_flag_spec='$convenience'
8761 archive_cmds_need_lc=yes
8762 # This is similar to how AIX traditionally builds its shared libraries.
8763 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'
8768 amigaos*)
8769 case $host_cpu in
8770 powerpc)
8771 # see comment about AmigaOS4 .so support
8772 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8773 archive_expsym_cmds=''
8775 m68k)
8776 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)'
8777 hardcode_libdir_flag_spec='-L$libdir'
8778 hardcode_minus_L=yes
8780 esac
8783 bsdi[45]*)
8784 export_dynamic_flag_spec=-rdynamic
8787 cygwin* | mingw* | pw32* | cegcc*)
8788 # When not using gcc, we currently assume that we are using
8789 # Microsoft Visual C++.
8790 # hardcode_libdir_flag_spec is actually meaningless, as there is
8791 # no search path for DLLs.
8792 hardcode_libdir_flag_spec=' '
8793 allow_undefined_flag=unsupported
8794 # Tell ltmain to make .lib files, not .a files.
8795 libext=lib
8796 # Tell ltmain to make .dll files, not .so files.
8797 shrext_cmds=".dll"
8798 # FIXME: Setting linknames here is a bad hack.
8799 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8800 # The linker will automatically build a .lib file if we build a DLL.
8801 old_archive_from_new_cmds='true'
8802 # FIXME: Should let the user specify the lib program.
8803 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8804 fix_srcfile_path='`cygpath -w "$srcfile"`'
8805 enable_shared_with_static_runtimes=yes
8808 darwin* | rhapsody*)
8811 archive_cmds_need_lc=no
8812 hardcode_direct=no
8813 hardcode_automatic=yes
8814 hardcode_shlibpath_var=unsupported
8815 if test "$lt_cv_ld_force_load" = "yes"; then
8816 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\"`'
8817 else
8818 whole_archive_flag_spec=''
8820 link_all_deplibs=yes
8821 allow_undefined_flag="$_lt_dar_allow_undefined"
8822 case $cc_basename in
8823 ifort*) _lt_dar_can_shared=yes ;;
8824 *) _lt_dar_can_shared=$GCC ;;
8825 esac
8826 if test "$_lt_dar_can_shared" = "yes"; then
8827 output_verbose_link_cmd=func_echo_all
8828 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8829 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8830 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}"
8831 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}"
8833 else
8834 ld_shlibs=no
8839 dgux*)
8840 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8841 hardcode_libdir_flag_spec='-L$libdir'
8842 hardcode_shlibpath_var=no
8845 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8846 # support. Future versions do this automatically, but an explicit c++rt0.o
8847 # does not break anything, and helps significantly (at the cost of a little
8848 # extra space).
8849 freebsd2.2*)
8850 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8851 hardcode_libdir_flag_spec='-R$libdir'
8852 hardcode_direct=yes
8853 hardcode_shlibpath_var=no
8856 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8857 freebsd2.*)
8858 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8859 hardcode_direct=yes
8860 hardcode_minus_L=yes
8861 hardcode_shlibpath_var=no
8864 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8865 freebsd* | dragonfly*)
8866 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8867 hardcode_libdir_flag_spec='-R$libdir'
8868 hardcode_direct=yes
8869 hardcode_shlibpath_var=no
8872 hpux9*)
8873 if test "$GCC" = yes; then
8874 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'
8875 else
8876 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'
8878 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8879 hardcode_libdir_separator=:
8880 hardcode_direct=yes
8882 # hardcode_minus_L: Not really in the search PATH,
8883 # but as the default location of the library.
8884 hardcode_minus_L=yes
8885 export_dynamic_flag_spec='${wl}-E'
8888 hpux10*)
8889 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8890 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8891 else
8892 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8894 if test "$with_gnu_ld" = no; then
8895 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8896 hardcode_libdir_flag_spec_ld='+b $libdir'
8897 hardcode_libdir_separator=:
8898 hardcode_direct=yes
8899 hardcode_direct_absolute=yes
8900 export_dynamic_flag_spec='${wl}-E'
8901 # hardcode_minus_L: Not really in the search PATH,
8902 # but as the default location of the library.
8903 hardcode_minus_L=yes
8907 hpux11*)
8908 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8909 case $host_cpu in
8910 hppa*64*)
8911 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8913 ia64*)
8914 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8917 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8919 esac
8920 else
8921 case $host_cpu in
8922 hppa*64*)
8923 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8925 ia64*)
8926 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8930 # Older versions of the 11.00 compiler do not understand -b yet
8931 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8933 $as_echo_n "checking if $CC understands -b... " >&6; }
8934 if test "${lt_cv_prog_compiler__b+set}" = set; then :
8935 $as_echo_n "(cached) " >&6
8936 else
8937 lt_cv_prog_compiler__b=no
8938 save_LDFLAGS="$LDFLAGS"
8939 LDFLAGS="$LDFLAGS -b"
8940 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8941 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8942 # The linker can only warn and ignore the option if not recognized
8943 # So say no if there are warnings
8944 if test -s conftest.err; then
8945 # Append any errors to the config.log.
8946 cat conftest.err 1>&5
8947 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8948 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8949 if diff conftest.exp conftest.er2 >/dev/null; then
8950 lt_cv_prog_compiler__b=yes
8952 else
8953 lt_cv_prog_compiler__b=yes
8956 $RM -r conftest*
8957 LDFLAGS="$save_LDFLAGS"
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8961 $as_echo "$lt_cv_prog_compiler__b" >&6; }
8963 if test x"$lt_cv_prog_compiler__b" = xyes; then
8964 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8965 else
8966 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8970 esac
8972 if test "$with_gnu_ld" = no; then
8973 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8974 hardcode_libdir_separator=:
8976 case $host_cpu in
8977 hppa*64*|ia64*)
8978 hardcode_direct=no
8979 hardcode_shlibpath_var=no
8982 hardcode_direct=yes
8983 hardcode_direct_absolute=yes
8984 export_dynamic_flag_spec='${wl}-E'
8986 # hardcode_minus_L: Not really in the search PATH,
8987 # but as the default location of the library.
8988 hardcode_minus_L=yes
8990 esac
8994 irix5* | irix6* | nonstopux*)
8995 if test "$GCC" = yes; then
8996 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'
8997 # Try to use the -exported_symbol ld option, if it does not
8998 # work, assume that -exports_file does not work either and
8999 # implicitly export all symbols.
9000 save_LDFLAGS="$LDFLAGS"
9001 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9003 /* end confdefs.h. */
9004 int foo(void) {}
9005 _ACEOF
9006 if ac_fn_c_try_link "$LINENO"; then :
9007 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'
9010 rm -f core conftest.err conftest.$ac_objext \
9011 conftest$ac_exeext conftest.$ac_ext
9012 LDFLAGS="$save_LDFLAGS"
9013 else
9014 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'
9015 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'
9017 archive_cmds_need_lc='no'
9018 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9019 hardcode_libdir_separator=:
9020 inherit_rpath=yes
9021 link_all_deplibs=yes
9024 netbsd*)
9025 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9026 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9027 else
9028 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9030 hardcode_libdir_flag_spec='-R$libdir'
9031 hardcode_direct=yes
9032 hardcode_shlibpath_var=no
9035 newsos6)
9036 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9037 hardcode_direct=yes
9038 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9039 hardcode_libdir_separator=:
9040 hardcode_shlibpath_var=no
9043 *nto* | *qnx*)
9046 openbsd*)
9047 if test -f /usr/libexec/ld.so; then
9048 hardcode_direct=yes
9049 hardcode_shlibpath_var=no
9050 hardcode_direct_absolute=yes
9051 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9052 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9053 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9054 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9055 export_dynamic_flag_spec='${wl}-E'
9056 else
9057 case $host_os in
9058 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9059 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9060 hardcode_libdir_flag_spec='-R$libdir'
9063 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9064 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9066 esac
9068 else
9069 ld_shlibs=no
9073 os2*)
9074 hardcode_libdir_flag_spec='-L$libdir'
9075 hardcode_minus_L=yes
9076 allow_undefined_flag=unsupported
9077 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'
9078 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9081 osf3*)
9082 if test "$GCC" = yes; then
9083 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9084 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'
9085 else
9086 allow_undefined_flag=' -expect_unresolved \*'
9087 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'
9089 archive_cmds_need_lc='no'
9090 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9091 hardcode_libdir_separator=:
9094 osf4* | osf5*) # as osf3* with the addition of -msym flag
9095 if test "$GCC" = yes; then
9096 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9097 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'
9098 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9099 else
9100 allow_undefined_flag=' -expect_unresolved \*'
9101 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'
9102 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~
9103 $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'
9105 # Both c and cxx compiler support -rpath directly
9106 hardcode_libdir_flag_spec='-rpath $libdir'
9108 archive_cmds_need_lc='no'
9109 hardcode_libdir_separator=:
9112 solaris*)
9113 no_undefined_flag=' -z defs'
9114 if test "$GCC" = yes; then
9115 wlarc='${wl}'
9116 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9117 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9118 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9119 else
9120 case `$CC -V 2>&1` in
9121 *"Compilers 5.0"*)
9122 wlarc=''
9123 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9124 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9125 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9128 wlarc='${wl}'
9129 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9130 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9131 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9133 esac
9135 hardcode_libdir_flag_spec='-R$libdir'
9136 hardcode_shlibpath_var=no
9137 case $host_os in
9138 solaris2.[0-5] | solaris2.[0-5].*) ;;
9140 # The compiler driver will combine and reorder linker options,
9141 # but understands `-z linker_flag'. GCC discards it without `$wl',
9142 # but is careful enough not to reorder.
9143 # Supported since Solaris 2.6 (maybe 2.5.1?)
9144 if test "$GCC" = yes; then
9145 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9146 else
9147 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9150 esac
9151 link_all_deplibs=yes
9154 sunos4*)
9155 if test "x$host_vendor" = xsequent; then
9156 # Use $CC to link under sequent, because it throws in some extra .o
9157 # files that make .init and .fini sections work.
9158 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9159 else
9160 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9162 hardcode_libdir_flag_spec='-L$libdir'
9163 hardcode_direct=yes
9164 hardcode_minus_L=yes
9165 hardcode_shlibpath_var=no
9168 sysv4)
9169 case $host_vendor in
9170 sni)
9171 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9172 hardcode_direct=yes # is this really true???
9174 siemens)
9175 ## LD is ld it makes a PLAMLIB
9176 ## CC just makes a GrossModule.
9177 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9178 reload_cmds='$CC -r -o $output$reload_objs'
9179 hardcode_direct=no
9181 motorola)
9182 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9183 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9185 esac
9186 runpath_var='LD_RUN_PATH'
9187 hardcode_shlibpath_var=no
9190 sysv4.3*)
9191 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9192 hardcode_shlibpath_var=no
9193 export_dynamic_flag_spec='-Bexport'
9196 sysv4*MP*)
9197 if test -d /usr/nec; then
9198 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9199 hardcode_shlibpath_var=no
9200 runpath_var=LD_RUN_PATH
9201 hardcode_runpath_var=yes
9202 ld_shlibs=yes
9206 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9207 no_undefined_flag='${wl}-z,text'
9208 archive_cmds_need_lc=no
9209 hardcode_shlibpath_var=no
9210 runpath_var='LD_RUN_PATH'
9212 if test "$GCC" = yes; then
9213 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9214 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9215 else
9216 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9217 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9221 sysv5* | sco3.2v5* | sco5v6*)
9222 # Note: We can NOT use -z defs as we might desire, because we do not
9223 # link with -lc, and that would cause any symbols used from libc to
9224 # always be unresolved, which means just about no library would
9225 # ever link correctly. If we're not using GNU ld we use -z text
9226 # though, which does catch some bad symbols but isn't as heavy-handed
9227 # as -z defs.
9228 no_undefined_flag='${wl}-z,text'
9229 allow_undefined_flag='${wl}-z,nodefs'
9230 archive_cmds_need_lc=no
9231 hardcode_shlibpath_var=no
9232 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9233 hardcode_libdir_separator=':'
9234 link_all_deplibs=yes
9235 export_dynamic_flag_spec='${wl}-Bexport'
9236 runpath_var='LD_RUN_PATH'
9238 if test "$GCC" = yes; then
9239 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9240 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9241 else
9242 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9243 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9247 uts4*)
9248 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9249 hardcode_libdir_flag_spec='-L$libdir'
9250 hardcode_shlibpath_var=no
9254 ld_shlibs=no
9256 esac
9258 if test x$host_vendor = xsni; then
9259 case $host in
9260 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9261 export_dynamic_flag_spec='${wl}-Blargedynsym'
9263 esac
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9268 $as_echo "$ld_shlibs" >&6; }
9269 test "$ld_shlibs" = no && can_build_shared=no
9271 with_gnu_ld=$with_gnu_ld
9288 # Do we need to explicitly link libc?
9290 case "x$archive_cmds_need_lc" in
9291 x|xyes)
9292 # Assume -lc should be added
9293 archive_cmds_need_lc=yes
9295 if test "$enable_shared" = yes && test "$GCC" = yes; then
9296 case $archive_cmds in
9297 *'~'*)
9298 # FIXME: we may have to deal with multi-command sequences.
9300 '$CC '*)
9301 # Test whether the compiler implicitly links with -lc since on some
9302 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9303 # to ld, don't add -lc before -lgcc.
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9305 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9306 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9307 $as_echo_n "(cached) " >&6
9308 else
9309 $RM conftest*
9310 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9312 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9313 (eval $ac_compile) 2>&5
9314 ac_status=$?
9315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9316 test $ac_status = 0; } 2>conftest.err; then
9317 soname=conftest
9318 lib=conftest
9319 libobjs=conftest.$ac_objext
9320 deplibs=
9321 wl=$lt_prog_compiler_wl
9322 pic_flag=$lt_prog_compiler_pic
9323 compiler_flags=-v
9324 linker_flags=-v
9325 verstring=
9326 output_objdir=.
9327 libname=conftest
9328 lt_save_allow_undefined_flag=$allow_undefined_flag
9329 allow_undefined_flag=
9330 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9331 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9332 ac_status=$?
9333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9334 test $ac_status = 0; }
9335 then
9336 lt_cv_archive_cmds_need_lc=no
9337 else
9338 lt_cv_archive_cmds_need_lc=yes
9340 allow_undefined_flag=$lt_save_allow_undefined_flag
9341 else
9342 cat conftest.err 1>&5
9344 $RM conftest*
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9348 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9349 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9351 esac
9354 esac
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9513 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9515 if test "$GCC" = yes; then
9516 case $host_os in
9517 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9518 *) lt_awk_arg="/^libraries:/" ;;
9519 esac
9520 case $host_os in
9521 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9522 *) lt_sed_strip_eq="s,=/,/,g" ;;
9523 esac
9524 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9525 case $lt_search_path_spec in
9526 *\;*)
9527 # if the path contains ";" then we assume it to be the separator
9528 # otherwise default to the standard path separator (i.e. ":") - it is
9529 # assumed that no part of a normal pathname contains ";" but that should
9530 # okay in the real world where ";" in dirpaths is itself problematic.
9531 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9534 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9536 esac
9537 # Ok, now we have the path, separated by spaces, we can step through it
9538 # and add multilib dir if necessary.
9539 lt_tmp_lt_search_path_spec=
9540 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9541 for lt_sys_path in $lt_search_path_spec; do
9542 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9543 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9544 else
9545 test -d "$lt_sys_path" && \
9546 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9548 done
9549 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9550 BEGIN {RS=" "; FS="/|\n";} {
9551 lt_foo="";
9552 lt_count=0;
9553 for (lt_i = NF; lt_i > 0; lt_i--) {
9554 if ($lt_i != "" && $lt_i != ".") {
9555 if ($lt_i == "..") {
9556 lt_count++;
9557 } else {
9558 if (lt_count == 0) {
9559 lt_foo="/" $lt_i lt_foo;
9560 } else {
9561 lt_count--;
9566 if (lt_foo != "") { lt_freq[lt_foo]++; }
9567 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9569 # AWK program above erroneously prepends '/' to C:/dos/paths
9570 # for these hosts.
9571 case $host_os in
9572 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9573 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9574 esac
9575 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9576 else
9577 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9579 library_names_spec=
9580 libname_spec='lib$name'
9581 soname_spec=
9582 shrext_cmds=".so"
9583 postinstall_cmds=
9584 postuninstall_cmds=
9585 finish_cmds=
9586 finish_eval=
9587 shlibpath_var=
9588 shlibpath_overrides_runpath=unknown
9589 version_type=none
9590 dynamic_linker="$host_os ld.so"
9591 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9592 need_lib_prefix=unknown
9593 hardcode_into_libs=no
9595 # when you set need_version to no, make sure it does not cause -set_version
9596 # flags to be left without arguments
9597 need_version=unknown
9599 case $host_os in
9600 aix3*)
9601 version_type=linux
9602 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9603 shlibpath_var=LIBPATH
9605 # AIX 3 has no versioning support, so we append a major version to the name.
9606 soname_spec='${libname}${release}${shared_ext}$major'
9609 aix[4-9]*)
9610 version_type=linux
9611 need_lib_prefix=no
9612 need_version=no
9613 hardcode_into_libs=yes
9614 if test "$host_cpu" = ia64; then
9615 # AIX 5 supports IA64
9616 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9617 shlibpath_var=LD_LIBRARY_PATH
9618 else
9619 # With GCC up to 2.95.x, collect2 would create an import file
9620 # for dependence libraries. The import file would start with
9621 # the line `#! .'. This would cause the generated library to
9622 # depend on `.', always an invalid library. This was fixed in
9623 # development snapshots of GCC prior to 3.0.
9624 case $host_os in
9625 aix4 | aix4.[01] | aix4.[01].*)
9626 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9627 echo ' yes '
9628 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9630 else
9631 can_build_shared=no
9634 esac
9635 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9636 # soname into executable. Probably we can add versioning support to
9637 # collect2, so additional links can be useful in future.
9638 if test "$aix_use_runtimelinking" = yes; then
9639 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9640 # instead of lib<name>.a to let people know that these are not
9641 # typical AIX shared libraries.
9642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9643 else
9644 # We preserve .a as extension for shared libraries through AIX4.2
9645 # and later when we are not doing run time linking.
9646 library_names_spec='${libname}${release}.a $libname.a'
9647 soname_spec='${libname}${release}${shared_ext}$major'
9649 shlibpath_var=LIBPATH
9653 amigaos*)
9654 case $host_cpu in
9655 powerpc)
9656 # Since July 2007 AmigaOS4 officially supports .so libraries.
9657 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9660 m68k)
9661 library_names_spec='$libname.ixlibrary $libname.a'
9662 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9663 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'
9665 esac
9668 beos*)
9669 library_names_spec='${libname}${shared_ext}'
9670 dynamic_linker="$host_os ld.so"
9671 shlibpath_var=LIBRARY_PATH
9674 bsdi[45]*)
9675 version_type=linux
9676 need_version=no
9677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9678 soname_spec='${libname}${release}${shared_ext}$major'
9679 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9680 shlibpath_var=LD_LIBRARY_PATH
9681 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9682 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9683 # the default ld.so.conf also contains /usr/contrib/lib and
9684 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9685 # libtool to hard-code these into programs
9688 cygwin* | mingw* | pw32* | cegcc*)
9689 version_type=windows
9690 shrext_cmds=".dll"
9691 need_version=no
9692 need_lib_prefix=no
9694 case $GCC,$host_os in
9695 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9696 library_names_spec='$libname.dll.a'
9697 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9698 postinstall_cmds='base_file=`basename \${file}`~
9699 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9700 dldir=$destdir/`dirname \$dlpath`~
9701 test -d \$dldir || mkdir -p \$dldir~
9702 $install_prog $dir/$dlname \$dldir/$dlname~
9703 chmod a+x \$dldir/$dlname~
9704 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9705 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9707 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9708 dlpath=$dir/\$dldll~
9709 $RM \$dlpath'
9710 shlibpath_overrides_runpath=yes
9712 case $host_os in
9713 cygwin*)
9714 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9715 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9717 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9719 mingw* | cegcc*)
9720 # MinGW DLLs use traditional 'lib' prefix
9721 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9723 pw32*)
9724 # pw32 DLLs use 'pw' prefix rather than 'lib'
9725 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9727 esac
9731 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9733 esac
9734 dynamic_linker='Win32 ld.exe'
9735 # FIXME: first we should search . and the directory the executable is in
9736 shlibpath_var=PATH
9739 darwin* | rhapsody*)
9740 dynamic_linker="$host_os dyld"
9741 version_type=darwin
9742 need_lib_prefix=no
9743 need_version=no
9744 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9745 soname_spec='${libname}${release}${major}$shared_ext'
9746 shlibpath_overrides_runpath=yes
9747 shlibpath_var=DYLD_LIBRARY_PATH
9748 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9750 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9751 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9754 dgux*)
9755 version_type=linux
9756 need_lib_prefix=no
9757 need_version=no
9758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9759 soname_spec='${libname}${release}${shared_ext}$major'
9760 shlibpath_var=LD_LIBRARY_PATH
9763 freebsd* | dragonfly*)
9764 # DragonFly does not have aout. When/if they implement a new
9765 # versioning mechanism, adjust this.
9766 if test -x /usr/bin/objformat; then
9767 objformat=`/usr/bin/objformat`
9768 else
9769 case $host_os in
9770 freebsd[23].*) objformat=aout ;;
9771 *) objformat=elf ;;
9772 esac
9774 version_type=freebsd-$objformat
9775 case $version_type in
9776 freebsd-elf*)
9777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9778 need_version=no
9779 need_lib_prefix=no
9781 freebsd-*)
9782 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9783 need_version=yes
9785 esac
9786 shlibpath_var=LD_LIBRARY_PATH
9787 case $host_os in
9788 freebsd2.*)
9789 shlibpath_overrides_runpath=yes
9791 freebsd3.[01]* | freebsdelf3.[01]*)
9792 shlibpath_overrides_runpath=yes
9793 hardcode_into_libs=yes
9795 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9796 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9797 shlibpath_overrides_runpath=no
9798 hardcode_into_libs=yes
9800 *) # from 4.6 on, and DragonFly
9801 shlibpath_overrides_runpath=yes
9802 hardcode_into_libs=yes
9804 esac
9807 gnu*)
9808 version_type=linux
9809 need_lib_prefix=no
9810 need_version=no
9811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9812 soname_spec='${libname}${release}${shared_ext}$major'
9813 shlibpath_var=LD_LIBRARY_PATH
9814 hardcode_into_libs=yes
9817 haiku*)
9818 version_type=linux
9819 need_lib_prefix=no
9820 need_version=no
9821 dynamic_linker="$host_os runtime_loader"
9822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9823 soname_spec='${libname}${release}${shared_ext}$major'
9824 shlibpath_var=LIBRARY_PATH
9825 shlibpath_overrides_runpath=yes
9826 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9827 hardcode_into_libs=yes
9830 hpux9* | hpux10* | hpux11*)
9831 # Give a soname corresponding to the major version so that dld.sl refuses to
9832 # link against other versions.
9833 version_type=sunos
9834 need_lib_prefix=no
9835 need_version=no
9836 case $host_cpu in
9837 ia64*)
9838 shrext_cmds='.so'
9839 hardcode_into_libs=yes
9840 dynamic_linker="$host_os dld.so"
9841 shlibpath_var=LD_LIBRARY_PATH
9842 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9844 soname_spec='${libname}${release}${shared_ext}$major'
9845 if test "X$HPUX_IA64_MODE" = X32; then
9846 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9847 else
9848 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9850 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9852 hppa*64*)
9853 shrext_cmds='.sl'
9854 hardcode_into_libs=yes
9855 dynamic_linker="$host_os dld.sl"
9856 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9857 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9859 soname_spec='${libname}${release}${shared_ext}$major'
9860 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9861 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9864 shrext_cmds='.sl'
9865 dynamic_linker="$host_os dld.sl"
9866 shlibpath_var=SHLIB_PATH
9867 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9869 soname_spec='${libname}${release}${shared_ext}$major'
9871 esac
9872 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9873 postinstall_cmds='chmod 555 $lib'
9874 # or fails outright, so override atomically:
9875 install_override_mode=555
9878 interix[3-9]*)
9879 version_type=linux
9880 need_lib_prefix=no
9881 need_version=no
9882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9883 soname_spec='${libname}${release}${shared_ext}$major'
9884 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9885 shlibpath_var=LD_LIBRARY_PATH
9886 shlibpath_overrides_runpath=no
9887 hardcode_into_libs=yes
9890 irix5* | irix6* | nonstopux*)
9891 case $host_os in
9892 nonstopux*) version_type=nonstopux ;;
9894 if test "$lt_cv_prog_gnu_ld" = yes; then
9895 version_type=linux
9896 else
9897 version_type=irix
9898 fi ;;
9899 esac
9900 need_lib_prefix=no
9901 need_version=no
9902 soname_spec='${libname}${release}${shared_ext}$major'
9903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9904 case $host_os in
9905 irix5* | nonstopux*)
9906 libsuff= shlibsuff=
9909 case $LD in # libtool.m4 will add one of these switches to LD
9910 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9911 libsuff= shlibsuff= libmagic=32-bit;;
9912 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9913 libsuff=32 shlibsuff=N32 libmagic=N32;;
9914 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9915 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9916 *) libsuff= shlibsuff= libmagic=never-match;;
9917 esac
9919 esac
9920 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9921 shlibpath_overrides_runpath=no
9922 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9923 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9924 hardcode_into_libs=yes
9927 # No shared lib support for Linux oldld, aout, or coff.
9928 linux*oldld* | linux*aout* | linux*coff*)
9929 dynamic_linker=no
9932 # This must be Linux ELF.
9933 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9934 version_type=linux
9935 need_lib_prefix=no
9936 need_version=no
9937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9938 soname_spec='${libname}${release}${shared_ext}$major'
9939 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9940 shlibpath_var=LD_LIBRARY_PATH
9941 shlibpath_overrides_runpath=no
9943 # Some binutils ld are patched to set DT_RUNPATH
9944 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9945 $as_echo_n "(cached) " >&6
9946 else
9947 lt_cv_shlibpath_overrides_runpath=no
9948 save_LDFLAGS=$LDFLAGS
9949 save_libdir=$libdir
9950 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9951 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9953 /* end confdefs.h. */
9956 main ()
9960 return 0;
9962 _ACEOF
9963 if ac_fn_c_try_link "$LINENO"; then :
9964 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9965 lt_cv_shlibpath_overrides_runpath=yes
9968 rm -f core conftest.err conftest.$ac_objext \
9969 conftest$ac_exeext conftest.$ac_ext
9970 LDFLAGS=$save_LDFLAGS
9971 libdir=$save_libdir
9975 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9977 # This implies no fast_install, which is unacceptable.
9978 # Some rework will be needed to allow for fast_install
9979 # before this can be enabled.
9980 hardcode_into_libs=yes
9982 # Append ld.so.conf contents to the search path
9983 if test -f /etc/ld.so.conf; then
9984 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' ' '`
9985 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9988 # We used to test for /lib/ld.so.1 and disable shared libraries on
9989 # powerpc, because MkLinux only supported shared libraries with the
9990 # GNU dynamic linker. Since this was broken with cross compilers,
9991 # most powerpc-linux boxes support dynamic linking these days and
9992 # people can always --disable-shared, the test was removed, and we
9993 # assume the GNU/Linux dynamic linker is in use.
9994 dynamic_linker='GNU/Linux ld.so'
9997 netbsd*)
9998 version_type=sunos
9999 need_lib_prefix=no
10000 need_version=no
10001 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10003 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10004 dynamic_linker='NetBSD (a.out) ld.so'
10005 else
10006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10007 soname_spec='${libname}${release}${shared_ext}$major'
10008 dynamic_linker='NetBSD ld.elf_so'
10010 shlibpath_var=LD_LIBRARY_PATH
10011 shlibpath_overrides_runpath=yes
10012 hardcode_into_libs=yes
10015 newsos6)
10016 version_type=linux
10017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10018 shlibpath_var=LD_LIBRARY_PATH
10019 shlibpath_overrides_runpath=yes
10022 *nto* | *qnx*)
10023 version_type=qnx
10024 need_lib_prefix=no
10025 need_version=no
10026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10027 soname_spec='${libname}${release}${shared_ext}$major'
10028 shlibpath_var=LD_LIBRARY_PATH
10029 shlibpath_overrides_runpath=no
10030 hardcode_into_libs=yes
10031 dynamic_linker='ldqnx.so'
10034 openbsd*)
10035 version_type=sunos
10036 sys_lib_dlsearch_path_spec="/usr/lib"
10037 need_lib_prefix=no
10038 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10039 case $host_os in
10040 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10041 *) need_version=no ;;
10042 esac
10043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10044 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10045 shlibpath_var=LD_LIBRARY_PATH
10046 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10047 case $host_os in
10048 openbsd2.[89] | openbsd2.[89].*)
10049 shlibpath_overrides_runpath=no
10052 shlibpath_overrides_runpath=yes
10054 esac
10055 else
10056 shlibpath_overrides_runpath=yes
10060 os2*)
10061 libname_spec='$name'
10062 shrext_cmds=".dll"
10063 need_lib_prefix=no
10064 library_names_spec='$libname${shared_ext} $libname.a'
10065 dynamic_linker='OS/2 ld.exe'
10066 shlibpath_var=LIBPATH
10069 osf3* | osf4* | osf5*)
10070 version_type=osf
10071 need_lib_prefix=no
10072 need_version=no
10073 soname_spec='${libname}${release}${shared_ext}$major'
10074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10075 shlibpath_var=LD_LIBRARY_PATH
10076 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10077 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10080 rdos*)
10081 dynamic_linker=no
10084 solaris*)
10085 version_type=linux
10086 need_lib_prefix=no
10087 need_version=no
10088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10089 soname_spec='${libname}${release}${shared_ext}$major'
10090 shlibpath_var=LD_LIBRARY_PATH
10091 shlibpath_overrides_runpath=yes
10092 hardcode_into_libs=yes
10093 # ldd complains unless libraries are executable
10094 postinstall_cmds='chmod +x $lib'
10097 sunos4*)
10098 version_type=sunos
10099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10100 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10101 shlibpath_var=LD_LIBRARY_PATH
10102 shlibpath_overrides_runpath=yes
10103 if test "$with_gnu_ld" = yes; then
10104 need_lib_prefix=no
10106 need_version=yes
10109 sysv4 | sysv4.3*)
10110 version_type=linux
10111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10112 soname_spec='${libname}${release}${shared_ext}$major'
10113 shlibpath_var=LD_LIBRARY_PATH
10114 case $host_vendor in
10115 sni)
10116 shlibpath_overrides_runpath=no
10117 need_lib_prefix=no
10118 runpath_var=LD_RUN_PATH
10120 siemens)
10121 need_lib_prefix=no
10123 motorola)
10124 need_lib_prefix=no
10125 need_version=no
10126 shlibpath_overrides_runpath=no
10127 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10129 esac
10132 sysv4*MP*)
10133 if test -d /usr/nec ;then
10134 version_type=linux
10135 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10136 soname_spec='$libname${shared_ext}.$major'
10137 shlibpath_var=LD_LIBRARY_PATH
10141 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10142 version_type=freebsd-elf
10143 need_lib_prefix=no
10144 need_version=no
10145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10146 soname_spec='${libname}${release}${shared_ext}$major'
10147 shlibpath_var=LD_LIBRARY_PATH
10148 shlibpath_overrides_runpath=yes
10149 hardcode_into_libs=yes
10150 if test "$with_gnu_ld" = yes; then
10151 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10152 else
10153 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10154 case $host_os in
10155 sco3.2v5*)
10156 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10158 esac
10160 sys_lib_dlsearch_path_spec='/usr/lib'
10163 tpf*)
10164 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10165 version_type=linux
10166 need_lib_prefix=no
10167 need_version=no
10168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10169 shlibpath_var=LD_LIBRARY_PATH
10170 shlibpath_overrides_runpath=no
10171 hardcode_into_libs=yes
10174 uts4*)
10175 version_type=linux
10176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10177 soname_spec='${libname}${release}${shared_ext}$major'
10178 shlibpath_var=LD_LIBRARY_PATH
10182 dynamic_linker=no
10184 esac
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10186 $as_echo "$dynamic_linker" >&6; }
10187 test "$dynamic_linker" = no && can_build_shared=no
10189 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10190 if test "$GCC" = yes; then
10191 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10194 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10195 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10197 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10198 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10293 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10294 hardcode_action=
10295 if test -n "$hardcode_libdir_flag_spec" ||
10296 test -n "$runpath_var" ||
10297 test "X$hardcode_automatic" = "Xyes" ; then
10299 # We can hardcode non-existent directories.
10300 if test "$hardcode_direct" != no &&
10301 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10302 # have to relink, otherwise we might link with an installed library
10303 # when we should be linking with a yet-to-be-installed one
10304 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10305 test "$hardcode_minus_L" != no; then
10306 # Linking always hardcodes the temporary library directory.
10307 hardcode_action=relink
10308 else
10309 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10310 hardcode_action=immediate
10312 else
10313 # We cannot hardcode anything, or else we can only hardcode existing
10314 # directories.
10315 hardcode_action=unsupported
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10318 $as_echo "$hardcode_action" >&6; }
10320 if test "$hardcode_action" = relink ||
10321 test "$inherit_rpath" = yes; then
10322 # Fast installation is not supported
10323 enable_fast_install=no
10324 elif test "$shlibpath_overrides_runpath" = yes ||
10325 test "$enable_shared" = no; then
10326 # Fast installation is not necessary
10327 enable_fast_install=needless
10335 if test "x$enable_dlopen" != xyes; then
10336 enable_dlopen=unknown
10337 enable_dlopen_self=unknown
10338 enable_dlopen_self_static=unknown
10339 else
10340 lt_cv_dlopen=no
10341 lt_cv_dlopen_libs=
10343 case $host_os in
10344 beos*)
10345 lt_cv_dlopen="load_add_on"
10346 lt_cv_dlopen_libs=
10347 lt_cv_dlopen_self=yes
10350 mingw* | pw32* | cegcc*)
10351 lt_cv_dlopen="LoadLibrary"
10352 lt_cv_dlopen_libs=
10355 cygwin*)
10356 lt_cv_dlopen="dlopen"
10357 lt_cv_dlopen_libs=
10360 darwin*)
10361 # if libdl is installed we need to link against it
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10363 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10364 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10365 $as_echo_n "(cached) " >&6
10366 else
10367 ac_check_lib_save_LIBS=$LIBS
10368 LIBS="-ldl $LIBS"
10369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10370 /* end confdefs.h. */
10372 /* Override any GCC internal prototype to avoid an error.
10373 Use char because int might match the return type of a GCC
10374 builtin and then its argument prototype would still apply. */
10375 #ifdef __cplusplus
10376 extern "C"
10377 #endif
10378 char dlopen ();
10380 main ()
10382 return dlopen ();
10384 return 0;
10386 _ACEOF
10387 if ac_fn_c_try_link "$LINENO"; then :
10388 ac_cv_lib_dl_dlopen=yes
10389 else
10390 ac_cv_lib_dl_dlopen=no
10392 rm -f core conftest.err conftest.$ac_objext \
10393 conftest$ac_exeext conftest.$ac_ext
10394 LIBS=$ac_check_lib_save_LIBS
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10397 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10398 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10399 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10400 else
10402 lt_cv_dlopen="dyld"
10403 lt_cv_dlopen_libs=
10404 lt_cv_dlopen_self=yes
10411 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10412 if test "x$ac_cv_func_shl_load" = x""yes; then :
10413 lt_cv_dlopen="shl_load"
10414 else
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10416 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10417 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10418 $as_echo_n "(cached) " >&6
10419 else
10420 ac_check_lib_save_LIBS=$LIBS
10421 LIBS="-ldld $LIBS"
10422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10423 /* end confdefs.h. */
10425 /* Override any GCC internal prototype to avoid an error.
10426 Use char because int might match the return type of a GCC
10427 builtin and then its argument prototype would still apply. */
10428 #ifdef __cplusplus
10429 extern "C"
10430 #endif
10431 char shl_load ();
10433 main ()
10435 return shl_load ();
10437 return 0;
10439 _ACEOF
10440 if ac_fn_c_try_link "$LINENO"; then :
10441 ac_cv_lib_dld_shl_load=yes
10442 else
10443 ac_cv_lib_dld_shl_load=no
10445 rm -f core conftest.err conftest.$ac_objext \
10446 conftest$ac_exeext conftest.$ac_ext
10447 LIBS=$ac_check_lib_save_LIBS
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10450 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10451 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10452 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10453 else
10454 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10455 if test "x$ac_cv_func_dlopen" = x""yes; then :
10456 lt_cv_dlopen="dlopen"
10457 else
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10459 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10460 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10461 $as_echo_n "(cached) " >&6
10462 else
10463 ac_check_lib_save_LIBS=$LIBS
10464 LIBS="-ldl $LIBS"
10465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10466 /* end confdefs.h. */
10468 /* Override any GCC internal prototype to avoid an error.
10469 Use char because int might match the return type of a GCC
10470 builtin and then its argument prototype would still apply. */
10471 #ifdef __cplusplus
10472 extern "C"
10473 #endif
10474 char dlopen ();
10476 main ()
10478 return dlopen ();
10480 return 0;
10482 _ACEOF
10483 if ac_fn_c_try_link "$LINENO"; then :
10484 ac_cv_lib_dl_dlopen=yes
10485 else
10486 ac_cv_lib_dl_dlopen=no
10488 rm -f core conftest.err conftest.$ac_objext \
10489 conftest$ac_exeext conftest.$ac_ext
10490 LIBS=$ac_check_lib_save_LIBS
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10493 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10494 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10495 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10496 else
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10498 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10499 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10500 $as_echo_n "(cached) " >&6
10501 else
10502 ac_check_lib_save_LIBS=$LIBS
10503 LIBS="-lsvld $LIBS"
10504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10505 /* end confdefs.h. */
10507 /* Override any GCC internal prototype to avoid an error.
10508 Use char because int might match the return type of a GCC
10509 builtin and then its argument prototype would still apply. */
10510 #ifdef __cplusplus
10511 extern "C"
10512 #endif
10513 char dlopen ();
10515 main ()
10517 return dlopen ();
10519 return 0;
10521 _ACEOF
10522 if ac_fn_c_try_link "$LINENO"; then :
10523 ac_cv_lib_svld_dlopen=yes
10524 else
10525 ac_cv_lib_svld_dlopen=no
10527 rm -f core conftest.err conftest.$ac_objext \
10528 conftest$ac_exeext conftest.$ac_ext
10529 LIBS=$ac_check_lib_save_LIBS
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10532 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10533 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10534 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10535 else
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10537 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10538 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10539 $as_echo_n "(cached) " >&6
10540 else
10541 ac_check_lib_save_LIBS=$LIBS
10542 LIBS="-ldld $LIBS"
10543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10544 /* end confdefs.h. */
10546 /* Override any GCC internal prototype to avoid an error.
10547 Use char because int might match the return type of a GCC
10548 builtin and then its argument prototype would still apply. */
10549 #ifdef __cplusplus
10550 extern "C"
10551 #endif
10552 char dld_link ();
10554 main ()
10556 return dld_link ();
10558 return 0;
10560 _ACEOF
10561 if ac_fn_c_try_link "$LINENO"; then :
10562 ac_cv_lib_dld_dld_link=yes
10563 else
10564 ac_cv_lib_dld_dld_link=no
10566 rm -f core conftest.err conftest.$ac_objext \
10567 conftest$ac_exeext conftest.$ac_ext
10568 LIBS=$ac_check_lib_save_LIBS
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10571 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10572 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10573 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10592 esac
10594 if test "x$lt_cv_dlopen" != xno; then
10595 enable_dlopen=yes
10596 else
10597 enable_dlopen=no
10600 case $lt_cv_dlopen in
10601 dlopen)
10602 save_CPPFLAGS="$CPPFLAGS"
10603 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10605 save_LDFLAGS="$LDFLAGS"
10606 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10608 save_LIBS="$LIBS"
10609 LIBS="$lt_cv_dlopen_libs $LIBS"
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10612 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10613 if test "${lt_cv_dlopen_self+set}" = set; then :
10614 $as_echo_n "(cached) " >&6
10615 else
10616 if test "$cross_compiling" = yes; then :
10617 lt_cv_dlopen_self=cross
10618 else
10619 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10620 lt_status=$lt_dlunknown
10621 cat > conftest.$ac_ext <<_LT_EOF
10622 #line 10622 "configure"
10623 #include "confdefs.h"
10625 #if HAVE_DLFCN_H
10626 #include <dlfcn.h>
10627 #endif
10629 #include <stdio.h>
10631 #ifdef RTLD_GLOBAL
10632 # define LT_DLGLOBAL RTLD_GLOBAL
10633 #else
10634 # ifdef DL_GLOBAL
10635 # define LT_DLGLOBAL DL_GLOBAL
10636 # else
10637 # define LT_DLGLOBAL 0
10638 # endif
10639 #endif
10641 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10642 find out it does not work in some platform. */
10643 #ifndef LT_DLLAZY_OR_NOW
10644 # ifdef RTLD_LAZY
10645 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10646 # else
10647 # ifdef DL_LAZY
10648 # define LT_DLLAZY_OR_NOW DL_LAZY
10649 # else
10650 # ifdef RTLD_NOW
10651 # define LT_DLLAZY_OR_NOW RTLD_NOW
10652 # else
10653 # ifdef DL_NOW
10654 # define LT_DLLAZY_OR_NOW DL_NOW
10655 # else
10656 # define LT_DLLAZY_OR_NOW 0
10657 # endif
10658 # endif
10659 # endif
10660 # endif
10661 #endif
10663 /* When -fvisbility=hidden is used, assume the code has been annotated
10664 correspondingly for the symbols needed. */
10665 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10666 void fnord () __attribute__((visibility("default")));
10667 #endif
10669 void fnord () { int i=42; }
10670 int main ()
10672 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10673 int status = $lt_dlunknown;
10675 if (self)
10677 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10678 else
10680 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10681 else puts (dlerror ());
10683 /* dlclose (self); */
10685 else
10686 puts (dlerror ());
10688 return status;
10690 _LT_EOF
10691 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10692 (eval $ac_link) 2>&5
10693 ac_status=$?
10694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10695 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10696 (./conftest; exit; ) >&5 2>/dev/null
10697 lt_status=$?
10698 case x$lt_status in
10699 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10700 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10701 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10702 esac
10703 else :
10704 # compilation failed
10705 lt_cv_dlopen_self=no
10708 rm -fr conftest*
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10713 $as_echo "$lt_cv_dlopen_self" >&6; }
10715 if test "x$lt_cv_dlopen_self" = xyes; then
10716 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10718 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10719 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10720 $as_echo_n "(cached) " >&6
10721 else
10722 if test "$cross_compiling" = yes; then :
10723 lt_cv_dlopen_self_static=cross
10724 else
10725 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10726 lt_status=$lt_dlunknown
10727 cat > conftest.$ac_ext <<_LT_EOF
10728 #line 10728 "configure"
10729 #include "confdefs.h"
10731 #if HAVE_DLFCN_H
10732 #include <dlfcn.h>
10733 #endif
10735 #include <stdio.h>
10737 #ifdef RTLD_GLOBAL
10738 # define LT_DLGLOBAL RTLD_GLOBAL
10739 #else
10740 # ifdef DL_GLOBAL
10741 # define LT_DLGLOBAL DL_GLOBAL
10742 # else
10743 # define LT_DLGLOBAL 0
10744 # endif
10745 #endif
10747 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10748 find out it does not work in some platform. */
10749 #ifndef LT_DLLAZY_OR_NOW
10750 # ifdef RTLD_LAZY
10751 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10752 # else
10753 # ifdef DL_LAZY
10754 # define LT_DLLAZY_OR_NOW DL_LAZY
10755 # else
10756 # ifdef RTLD_NOW
10757 # define LT_DLLAZY_OR_NOW RTLD_NOW
10758 # else
10759 # ifdef DL_NOW
10760 # define LT_DLLAZY_OR_NOW DL_NOW
10761 # else
10762 # define LT_DLLAZY_OR_NOW 0
10763 # endif
10764 # endif
10765 # endif
10766 # endif
10767 #endif
10769 /* When -fvisbility=hidden is used, assume the code has been annotated
10770 correspondingly for the symbols needed. */
10771 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10772 void fnord () __attribute__((visibility("default")));
10773 #endif
10775 void fnord () { int i=42; }
10776 int main ()
10778 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10779 int status = $lt_dlunknown;
10781 if (self)
10783 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10784 else
10786 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10787 else puts (dlerror ());
10789 /* dlclose (self); */
10791 else
10792 puts (dlerror ());
10794 return status;
10796 _LT_EOF
10797 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10798 (eval $ac_link) 2>&5
10799 ac_status=$?
10800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10801 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10802 (./conftest; exit; ) >&5 2>/dev/null
10803 lt_status=$?
10804 case x$lt_status in
10805 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10806 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10807 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10808 esac
10809 else :
10810 # compilation failed
10811 lt_cv_dlopen_self_static=no
10814 rm -fr conftest*
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10819 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10822 CPPFLAGS="$save_CPPFLAGS"
10823 LDFLAGS="$save_LDFLAGS"
10824 LIBS="$save_LIBS"
10826 esac
10828 case $lt_cv_dlopen_self in
10829 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10830 *) enable_dlopen_self=unknown ;;
10831 esac
10833 case $lt_cv_dlopen_self_static in
10834 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10835 *) enable_dlopen_self_static=unknown ;;
10836 esac
10855 striplib=
10856 old_striplib=
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10858 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10859 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10860 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10861 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10863 $as_echo "yes" >&6; }
10864 else
10865 # FIXME - insert some real tests, host_os isn't really good enough
10866 case $host_os in
10867 darwin*)
10868 if test -n "$STRIP" ; then
10869 striplib="$STRIP -x"
10870 old_striplib="$STRIP -S"
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10872 $as_echo "yes" >&6; }
10873 else
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10875 $as_echo "no" >&6; }
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10880 $as_echo "no" >&6; }
10882 esac
10896 # Report which library types will actually be built
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10898 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10900 $as_echo "$can_build_shared" >&6; }
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10903 $as_echo_n "checking whether to build shared libraries... " >&6; }
10904 test "$can_build_shared" = "no" && enable_shared=no
10906 # On AIX, shared libraries and static libraries use the same namespace, and
10907 # are all built from PIC.
10908 case $host_os in
10909 aix3*)
10910 test "$enable_shared" = yes && enable_static=no
10911 if test -n "$RANLIB"; then
10912 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10913 postinstall_cmds='$RANLIB $lib'
10917 aix[4-9]*)
10918 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10919 test "$enable_shared" = yes && enable_static=no
10922 esac
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10924 $as_echo "$enable_shared" >&6; }
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10927 $as_echo_n "checking whether to build static libraries... " >&6; }
10928 # Make sure either enable_shared or enable_static is yes.
10929 test "$enable_shared" = yes || enable_static=yes
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10931 $as_echo "$enable_static" >&6; }
10937 ac_ext=c
10938 ac_cpp='$CPP $CPPFLAGS'
10939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10943 CC="$lt_save_CC"
10957 ac_config_commands="$ac_config_commands libtool"
10962 # Only expand once:
10968 case $host in
10969 *-cygwin* | *-mingw*)
10970 # 'host' will be top-level target in the case of a target lib,
10971 # we must compare to with_cross_host to decide if this is a native
10972 # or cross-compiler and select where to install dlls appropriately.
10973 if test -n "$with_cross_host" &&
10974 test x"$with_cross_host" != x"no"; then
10975 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
10976 else
10977 lt_host_flags='-no-undefined -bindir "$(bindir)"';
10981 lt_host_flags=
10983 esac
10988 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
10989 case $ac_cv_c_int64_t in #(
10990 no|yes) ;; #(
10993 cat >>confdefs.h <<_ACEOF
10994 #define int64_t $ac_cv_c_int64_t
10995 _ACEOF
10997 esac
10999 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
11000 case $ac_cv_c_uint64_t in #(
11001 no|yes) ;; #(
11004 $as_echo "#define _UINT64_T 1" >>confdefs.h
11007 cat >>confdefs.h <<_ACEOF
11008 #define uint64_t $ac_cv_c_uint64_t
11009 _ACEOF
11011 esac
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
11014 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
11015 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
11016 $as_echo_n "(cached) " >&6
11017 else
11018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11019 /* end confdefs.h. */
11020 #include <sys/types.h>
11021 #include <sys/wait.h>
11022 #ifndef WEXITSTATUS
11023 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11024 #endif
11025 #ifndef WIFEXITED
11026 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11027 #endif
11030 main ()
11032 int s;
11033 wait (&s);
11034 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11036 return 0;
11038 _ACEOF
11039 if ac_fn_c_try_compile "$LINENO"; then :
11040 ac_cv_header_sys_wait_h=yes
11041 else
11042 ac_cv_header_sys_wait_h=no
11044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
11047 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
11048 if test $ac_cv_header_sys_wait_h = yes; then
11050 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
11054 ac_config_files="$ac_config_files Makefile"
11056 ac_config_headers="$ac_config_headers config.h"
11058 cat >confcache <<\_ACEOF
11059 # This file is a shell script that caches the results of configure
11060 # tests run on this system so they can be shared between configure
11061 # scripts and configure runs, see configure's option --config-cache.
11062 # It is not useful on other systems. If it contains results you don't
11063 # want to keep, you may remove or edit it.
11065 # config.status only pays attention to the cache file if you give it
11066 # the --recheck option to rerun configure.
11068 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11069 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11070 # following values.
11072 _ACEOF
11074 # The following way of writing the cache mishandles newlines in values,
11075 # but we know of no workaround that is simple, portable, and efficient.
11076 # So, we kill variables containing newlines.
11077 # Ultrix sh set writes to stderr and can't be redirected directly,
11078 # and sets the high bit in the cache file unless we assign to the vars.
11080 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11081 eval ac_val=\$$ac_var
11082 case $ac_val in #(
11083 *${as_nl}*)
11084 case $ac_var in #(
11085 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11086 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11087 esac
11088 case $ac_var in #(
11089 _ | IFS | as_nl) ;; #(
11090 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11091 *) { eval $ac_var=; unset $ac_var;} ;;
11092 esac ;;
11093 esac
11094 done
11096 (set) 2>&1 |
11097 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11098 *${as_nl}ac_space=\ *)
11099 # `set' does not quote correctly, so add quotes: double-quote
11100 # substitution turns \\\\ into \\, and sed turns \\ into \.
11101 sed -n \
11102 "s/'/'\\\\''/g;
11103 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11104 ;; #(
11106 # `set' quotes correctly as required by POSIX, so do not add quotes.
11107 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11109 esac |
11110 sort
11112 sed '
11113 /^ac_cv_env_/b end
11114 t clear
11115 :clear
11116 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11117 t end
11118 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11119 :end' >>confcache
11120 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11121 if test -w "$cache_file"; then
11122 test "x$cache_file" != "x/dev/null" &&
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11124 $as_echo "$as_me: updating cache $cache_file" >&6;}
11125 cat confcache >$cache_file
11126 else
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11128 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11131 rm -f confcache
11133 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11134 # Let make expand exec_prefix.
11135 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11137 DEFS=-DHAVE_CONFIG_H
11139 ac_libobjs=
11140 ac_ltlibobjs=
11141 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11142 # 1. Remove the extension, and $U if already installed.
11143 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11144 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11145 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11146 # will be set to the directory where LIBOBJS objects are built.
11147 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11148 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11149 done
11150 LIBOBJS=$ac_libobjs
11152 LTLIBOBJS=$ac_ltlibobjs
11155 if test -n "$EXEEXT"; then
11156 am__EXEEXT_TRUE=
11157 am__EXEEXT_FALSE='#'
11158 else
11159 am__EXEEXT_TRUE='#'
11160 am__EXEEXT_FALSE=
11163 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11164 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
11165 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11167 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11168 as_fn_error "conditional \"AMDEP\" was never defined.
11169 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11171 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11172 as_fn_error "conditional \"am__fastdepCC\" was never defined.
11173 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11176 : ${CONFIG_STATUS=./config.status}
11177 ac_write_fail=0
11178 ac_clean_files_save=$ac_clean_files
11179 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11181 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11182 as_write_fail=0
11183 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11184 #! $SHELL
11185 # Generated by $as_me.
11186 # Run this file to recreate the current configuration.
11187 # Compiler output produced by configure, useful for debugging
11188 # configure, is in config.log if it exists.
11190 debug=false
11191 ac_cs_recheck=false
11192 ac_cs_silent=false
11194 SHELL=\${CONFIG_SHELL-$SHELL}
11195 export SHELL
11196 _ASEOF
11197 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11198 ## -------------------- ##
11199 ## M4sh Initialization. ##
11200 ## -------------------- ##
11202 # Be more Bourne compatible
11203 DUALCASE=1; export DUALCASE # for MKS sh
11204 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11205 emulate sh
11206 NULLCMD=:
11207 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11208 # is contrary to our usage. Disable this feature.
11209 alias -g '${1+"$@"}'='"$@"'
11210 setopt NO_GLOB_SUBST
11211 else
11212 case `(set -o) 2>/dev/null` in #(
11213 *posix*) :
11214 set -o posix ;; #(
11215 *) :
11217 esac
11221 as_nl='
11223 export as_nl
11224 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11225 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11226 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11227 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11228 # Prefer a ksh shell builtin over an external printf program on Solaris,
11229 # but without wasting forks for bash or zsh.
11230 if test -z "$BASH_VERSION$ZSH_VERSION" \
11231 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11232 as_echo='print -r --'
11233 as_echo_n='print -rn --'
11234 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11235 as_echo='printf %s\n'
11236 as_echo_n='printf %s'
11237 else
11238 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11239 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11240 as_echo_n='/usr/ucb/echo -n'
11241 else
11242 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11243 as_echo_n_body='eval
11244 arg=$1;
11245 case $arg in #(
11246 *"$as_nl"*)
11247 expr "X$arg" : "X\\(.*\\)$as_nl";
11248 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11249 esac;
11250 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11252 export as_echo_n_body
11253 as_echo_n='sh -c $as_echo_n_body as_echo'
11255 export as_echo_body
11256 as_echo='sh -c $as_echo_body as_echo'
11259 # The user is always right.
11260 if test "${PATH_SEPARATOR+set}" != set; then
11261 PATH_SEPARATOR=:
11262 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11263 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11264 PATH_SEPARATOR=';'
11269 # IFS
11270 # We need space, tab and new line, in precisely that order. Quoting is
11271 # there to prevent editors from complaining about space-tab.
11272 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11273 # splitting by setting IFS to empty value.)
11274 IFS=" "" $as_nl"
11276 # Find who we are. Look in the path if we contain no directory separator.
11277 case $0 in #((
11278 *[\\/]* ) as_myself=$0 ;;
11279 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11280 for as_dir in $PATH
11282 IFS=$as_save_IFS
11283 test -z "$as_dir" && as_dir=.
11284 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11285 done
11286 IFS=$as_save_IFS
11289 esac
11290 # We did not find ourselves, most probably we were run as `sh COMMAND'
11291 # in which case we are not to be found in the path.
11292 if test "x$as_myself" = x; then
11293 as_myself=$0
11295 if test ! -f "$as_myself"; then
11296 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11297 exit 1
11300 # Unset variables that we do not need and which cause bugs (e.g. in
11301 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11302 # suppresses any "Segmentation fault" message there. '((' could
11303 # trigger a bug in pdksh 5.2.14.
11304 for as_var in BASH_ENV ENV MAIL MAILPATH
11305 do eval test x\${$as_var+set} = xset \
11306 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11307 done
11308 PS1='$ '
11309 PS2='> '
11310 PS4='+ '
11312 # NLS nuisances.
11313 LC_ALL=C
11314 export LC_ALL
11315 LANGUAGE=C
11316 export LANGUAGE
11318 # CDPATH.
11319 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11322 # as_fn_error ERROR [LINENO LOG_FD]
11323 # ---------------------------------
11324 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11325 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11326 # script with status $?, using 1 if that was 0.
11327 as_fn_error ()
11329 as_status=$?; test $as_status -eq 0 && as_status=1
11330 if test "$3"; then
11331 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11332 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11334 $as_echo "$as_me: error: $1" >&2
11335 as_fn_exit $as_status
11336 } # as_fn_error
11339 # as_fn_set_status STATUS
11340 # -----------------------
11341 # Set $? to STATUS, without forking.
11342 as_fn_set_status ()
11344 return $1
11345 } # as_fn_set_status
11347 # as_fn_exit STATUS
11348 # -----------------
11349 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11350 as_fn_exit ()
11352 set +e
11353 as_fn_set_status $1
11354 exit $1
11355 } # as_fn_exit
11357 # as_fn_unset VAR
11358 # ---------------
11359 # Portably unset VAR.
11360 as_fn_unset ()
11362 { eval $1=; unset $1;}
11364 as_unset=as_fn_unset
11365 # as_fn_append VAR VALUE
11366 # ----------------------
11367 # Append the text in VALUE to the end of the definition contained in VAR. Take
11368 # advantage of any shell optimizations that allow amortized linear growth over
11369 # repeated appends, instead of the typical quadratic growth present in naive
11370 # implementations.
11371 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11372 eval 'as_fn_append ()
11374 eval $1+=\$2
11376 else
11377 as_fn_append ()
11379 eval $1=\$$1\$2
11381 fi # as_fn_append
11383 # as_fn_arith ARG...
11384 # ------------------
11385 # Perform arithmetic evaluation on the ARGs, and store the result in the
11386 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11387 # must be portable across $(()) and expr.
11388 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11389 eval 'as_fn_arith ()
11391 as_val=$(( $* ))
11393 else
11394 as_fn_arith ()
11396 as_val=`expr "$@" || test $? -eq 1`
11398 fi # as_fn_arith
11401 if expr a : '\(a\)' >/dev/null 2>&1 &&
11402 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11403 as_expr=expr
11404 else
11405 as_expr=false
11408 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11409 as_basename=basename
11410 else
11411 as_basename=false
11414 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11415 as_dirname=dirname
11416 else
11417 as_dirname=false
11420 as_me=`$as_basename -- "$0" ||
11421 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11422 X"$0" : 'X\(//\)$' \| \
11423 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11424 $as_echo X/"$0" |
11425 sed '/^.*\/\([^/][^/]*\)\/*$/{
11426 s//\1/
11429 /^X\/\(\/\/\)$/{
11430 s//\1/
11433 /^X\/\(\/\).*/{
11434 s//\1/
11437 s/.*/./; q'`
11439 # Avoid depending upon Character Ranges.
11440 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11441 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11442 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11443 as_cr_digits='0123456789'
11444 as_cr_alnum=$as_cr_Letters$as_cr_digits
11446 ECHO_C= ECHO_N= ECHO_T=
11447 case `echo -n x` in #(((((
11448 -n*)
11449 case `echo 'xy\c'` in
11450 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11451 xy) ECHO_C='\c';;
11452 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11453 ECHO_T=' ';;
11454 esac;;
11456 ECHO_N='-n';;
11457 esac
11459 rm -f conf$$ conf$$.exe conf$$.file
11460 if test -d conf$$.dir; then
11461 rm -f conf$$.dir/conf$$.file
11462 else
11463 rm -f conf$$.dir
11464 mkdir conf$$.dir 2>/dev/null
11466 if (echo >conf$$.file) 2>/dev/null; then
11467 if ln -s conf$$.file conf$$ 2>/dev/null; then
11468 as_ln_s='ln -s'
11469 # ... but there are two gotchas:
11470 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11471 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11472 # In both cases, we have to default to `cp -p'.
11473 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11474 as_ln_s='cp -p'
11475 elif ln conf$$.file conf$$ 2>/dev/null; then
11476 as_ln_s=ln
11477 else
11478 as_ln_s='cp -p'
11480 else
11481 as_ln_s='cp -p'
11483 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11484 rmdir conf$$.dir 2>/dev/null
11487 # as_fn_mkdir_p
11488 # -------------
11489 # Create "$as_dir" as a directory, including parents if necessary.
11490 as_fn_mkdir_p ()
11493 case $as_dir in #(
11494 -*) as_dir=./$as_dir;;
11495 esac
11496 test -d "$as_dir" || eval $as_mkdir_p || {
11497 as_dirs=
11498 while :; do
11499 case $as_dir in #(
11500 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11501 *) as_qdir=$as_dir;;
11502 esac
11503 as_dirs="'$as_qdir' $as_dirs"
11504 as_dir=`$as_dirname -- "$as_dir" ||
11505 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11506 X"$as_dir" : 'X\(//\)[^/]' \| \
11507 X"$as_dir" : 'X\(//\)$' \| \
11508 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11509 $as_echo X"$as_dir" |
11510 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11511 s//\1/
11514 /^X\(\/\/\)[^/].*/{
11515 s//\1/
11518 /^X\(\/\/\)$/{
11519 s//\1/
11522 /^X\(\/\).*/{
11523 s//\1/
11526 s/.*/./; q'`
11527 test -d "$as_dir" && break
11528 done
11529 test -z "$as_dirs" || eval "mkdir $as_dirs"
11530 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11533 } # as_fn_mkdir_p
11534 if mkdir -p . 2>/dev/null; then
11535 as_mkdir_p='mkdir -p "$as_dir"'
11536 else
11537 test -d ./-p && rmdir ./-p
11538 as_mkdir_p=false
11541 if test -x / >/dev/null 2>&1; then
11542 as_test_x='test -x'
11543 else
11544 if ls -dL / >/dev/null 2>&1; then
11545 as_ls_L_option=L
11546 else
11547 as_ls_L_option=
11549 as_test_x='
11550 eval sh -c '\''
11551 if test -d "$1"; then
11552 test -d "$1/.";
11553 else
11554 case $1 in #(
11555 -*)set "./$1";;
11556 esac;
11557 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11558 ???[sx]*):;;*)false;;esac;fi
11559 '\'' sh
11562 as_executable_p=$as_test_x
11564 # Sed expression to map a string onto a valid CPP name.
11565 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11567 # Sed expression to map a string onto a valid variable name.
11568 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11571 exec 6>&1
11572 ## ----------------------------------- ##
11573 ## Main body of $CONFIG_STATUS script. ##
11574 ## ----------------------------------- ##
11575 _ASEOF
11576 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11578 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11579 # Save the log message, to keep $0 and so on meaningful, and to
11580 # report actual input values of CONFIG_FILES etc. instead of their
11581 # values after options handling.
11582 ac_log="
11583 This file was extended by LTO plugin for ld $as_me 0.1, which was
11584 generated by GNU Autoconf 2.64. Invocation command line was
11586 CONFIG_FILES = $CONFIG_FILES
11587 CONFIG_HEADERS = $CONFIG_HEADERS
11588 CONFIG_LINKS = $CONFIG_LINKS
11589 CONFIG_COMMANDS = $CONFIG_COMMANDS
11590 $ $0 $@
11592 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11595 _ACEOF
11597 case $ac_config_files in *"
11598 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11599 esac
11601 case $ac_config_headers in *"
11602 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11603 esac
11606 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11607 # Files that config.status was made for.
11608 config_files="$ac_config_files"
11609 config_headers="$ac_config_headers"
11610 config_commands="$ac_config_commands"
11612 _ACEOF
11614 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11615 ac_cs_usage="\
11616 \`$as_me' instantiates files and other configuration actions
11617 from templates according to the current configuration. Unless the files
11618 and actions are specified as TAGs, all are instantiated by default.
11620 Usage: $0 [OPTION]... [TAG]...
11622 -h, --help print this help, then exit
11623 -V, --version print version number and configuration settings, then exit
11624 -q, --quiet, --silent
11625 do not print progress messages
11626 -d, --debug don't remove temporary files
11627 --recheck update $as_me by reconfiguring in the same conditions
11628 --file=FILE[:TEMPLATE]
11629 instantiate the configuration file FILE
11630 --header=FILE[:TEMPLATE]
11631 instantiate the configuration header FILE
11633 Configuration files:
11634 $config_files
11636 Configuration headers:
11637 $config_headers
11639 Configuration commands:
11640 $config_commands
11642 Report bugs to the package provider."
11644 _ACEOF
11645 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11646 ac_cs_version="\\
11647 LTO plugin for ld config.status 0.1
11648 configured by $0, generated by GNU Autoconf 2.64,
11649 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11651 Copyright (C) 2009 Free Software Foundation, Inc.
11652 This config.status script is free software; the Free Software Foundation
11653 gives unlimited permission to copy, distribute and modify it."
11655 ac_pwd='$ac_pwd'
11656 srcdir='$srcdir'
11657 INSTALL='$INSTALL'
11658 MKDIR_P='$MKDIR_P'
11659 AWK='$AWK'
11660 test -n "\$AWK" || AWK=awk
11661 _ACEOF
11663 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11664 # The default lists apply if the user does not specify any file.
11665 ac_need_defaults=:
11666 while test $# != 0
11668 case $1 in
11669 --*=*)
11670 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11671 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11672 ac_shift=:
11675 ac_option=$1
11676 ac_optarg=$2
11677 ac_shift=shift
11679 esac
11681 case $ac_option in
11682 # Handling of the options.
11683 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11684 ac_cs_recheck=: ;;
11685 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11686 $as_echo "$ac_cs_version"; exit ;;
11687 --debug | --debu | --deb | --de | --d | -d )
11688 debug=: ;;
11689 --file | --fil | --fi | --f )
11690 $ac_shift
11691 case $ac_optarg in
11692 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11693 esac
11694 as_fn_append CONFIG_FILES " '$ac_optarg'"
11695 ac_need_defaults=false;;
11696 --header | --heade | --head | --hea )
11697 $ac_shift
11698 case $ac_optarg in
11699 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11700 esac
11701 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11702 ac_need_defaults=false;;
11703 --he | --h)
11704 # Conflict between --help and --header
11705 as_fn_error "ambiguous option: \`$1'
11706 Try \`$0 --help' for more information.";;
11707 --help | --hel | -h )
11708 $as_echo "$ac_cs_usage"; exit ;;
11709 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11710 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11711 ac_cs_silent=: ;;
11713 # This is an error.
11714 -*) as_fn_error "unrecognized option: \`$1'
11715 Try \`$0 --help' for more information." ;;
11717 *) as_fn_append ac_config_targets " $1"
11718 ac_need_defaults=false ;;
11720 esac
11721 shift
11722 done
11724 ac_configure_extra_args=
11726 if $ac_cs_silent; then
11727 exec 6>/dev/null
11728 ac_configure_extra_args="$ac_configure_extra_args --silent"
11731 _ACEOF
11732 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11733 if \$ac_cs_recheck; then
11734 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11735 shift
11736 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11737 CONFIG_SHELL='$SHELL'
11738 export CONFIG_SHELL
11739 exec "\$@"
11742 _ACEOF
11743 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11744 exec 5>>config.log
11746 echo
11747 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11748 ## Running $as_me. ##
11749 _ASBOX
11750 $as_echo "$ac_log"
11751 } >&5
11753 _ACEOF
11754 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11756 # INIT-COMMANDS
11758 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11761 # The HP-UX ksh and POSIX shell print the target directory to stdout
11762 # if CDPATH is set.
11763 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11765 sed_quote_subst='$sed_quote_subst'
11766 double_quote_subst='$double_quote_subst'
11767 delay_variable_subst='$delay_variable_subst'
11768 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
11769 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
11770 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
11771 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
11772 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
11773 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
11774 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
11775 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
11776 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
11777 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
11778 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
11779 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
11780 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
11781 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
11782 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
11783 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
11784 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
11785 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
11786 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
11787 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
11788 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
11789 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
11790 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
11791 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
11792 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
11793 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
11794 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
11795 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
11796 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
11797 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
11798 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
11799 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
11800 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
11801 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
11802 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
11803 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
11804 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
11805 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
11806 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
11807 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
11808 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
11809 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
11810 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
11811 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
11812 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
11813 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
11814 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
11815 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
11816 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"`'
11817 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
11818 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
11819 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
11820 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
11821 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
11822 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
11823 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
11824 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
11825 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
11826 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
11827 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
11828 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
11829 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
11830 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
11831 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
11832 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
11833 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
11834 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
11835 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
11836 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
11837 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
11838 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
11839 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
11840 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
11841 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
11842 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
11843 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
11844 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
11845 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
11846 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
11847 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
11848 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
11849 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
11850 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
11851 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
11852 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
11853 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
11854 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
11855 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
11856 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
11857 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
11858 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
11859 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
11860 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
11861 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
11862 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
11863 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
11864 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
11865 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
11866 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
11867 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
11868 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
11869 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
11870 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
11871 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
11872 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
11873 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
11874 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
11875 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
11876 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
11877 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
11878 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
11879 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
11880 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
11881 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
11882 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
11883 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
11884 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
11885 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
11886 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
11887 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
11889 LTCC='$LTCC'
11890 LTCFLAGS='$LTCFLAGS'
11891 compiler='$compiler_DEFAULT'
11893 # A function that is used when there is no print builtin or printf.
11894 func_fallback_echo ()
11896 eval 'cat <<_LTECHO_EOF
11898 _LTECHO_EOF'
11901 # Quote evaled strings.
11902 for var in SHELL \
11903 ECHO \
11904 SED \
11905 GREP \
11906 EGREP \
11907 FGREP \
11908 LD \
11909 NM \
11910 LN_S \
11911 lt_SP2NL \
11912 lt_NL2SP \
11913 reload_flag \
11914 OBJDUMP \
11915 deplibs_check_method \
11916 file_magic_cmd \
11917 AR \
11918 AR_FLAGS \
11919 STRIP \
11920 RANLIB \
11921 CC \
11922 CFLAGS \
11923 compiler \
11924 lt_cv_sys_global_symbol_pipe \
11925 lt_cv_sys_global_symbol_to_cdecl \
11926 lt_cv_sys_global_symbol_to_c_name_address \
11927 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
11928 lt_prog_compiler_no_builtin_flag \
11929 lt_prog_compiler_wl \
11930 lt_prog_compiler_pic \
11931 lt_prog_compiler_static \
11932 lt_cv_prog_compiler_c_o \
11933 need_locks \
11934 DSYMUTIL \
11935 NMEDIT \
11936 LIPO \
11937 OTOOL \
11938 OTOOL64 \
11939 shrext_cmds \
11940 export_dynamic_flag_spec \
11941 whole_archive_flag_spec \
11942 compiler_needs_object \
11943 with_gnu_ld \
11944 allow_undefined_flag \
11945 no_undefined_flag \
11946 hardcode_libdir_flag_spec \
11947 hardcode_libdir_flag_spec_ld \
11948 hardcode_libdir_separator \
11949 fix_srcfile_path \
11950 exclude_expsyms \
11951 include_expsyms \
11952 file_list_spec \
11953 variables_saved_for_relink \
11954 libname_spec \
11955 library_names_spec \
11956 soname_spec \
11957 install_override_mode \
11958 finish_eval \
11959 old_striplib \
11960 striplib; do
11961 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
11962 *[\\\\\\\`\\"\\\$]*)
11963 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
11966 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11968 esac
11969 done
11971 # Double-quote double-evaled strings.
11972 for var in reload_cmds \
11973 old_postinstall_cmds \
11974 old_postuninstall_cmds \
11975 old_archive_cmds \
11976 extract_expsyms_cmds \
11977 old_archive_from_new_cmds \
11978 old_archive_from_expsyms_cmds \
11979 archive_cmds \
11980 archive_expsym_cmds \
11981 module_cmds \
11982 module_expsym_cmds \
11983 export_symbols_cmds \
11984 prelink_cmds \
11985 postinstall_cmds \
11986 postuninstall_cmds \
11987 finish_cmds \
11988 sys_lib_search_path_spec \
11989 sys_lib_dlsearch_path_spec; do
11990 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
11991 *[\\\\\\\`\\"\\\$]*)
11992 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
11995 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11997 esac
11998 done
12000 ac_aux_dir='$ac_aux_dir'
12001 xsi_shell='$xsi_shell'
12002 lt_shell_append='$lt_shell_append'
12004 # See if we are running on zsh, and set the options which allow our
12005 # commands through without removal of \ escapes INIT.
12006 if test -n "\${ZSH_VERSION+set}" ; then
12007 setopt NO_GLOB_SUBST
12011 PACKAGE='$PACKAGE'
12012 VERSION='$VERSION'
12013 TIMESTAMP='$TIMESTAMP'
12014 RM='$RM'
12015 ofile='$ofile'
12020 _ACEOF
12022 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12024 # Handling of arguments.
12025 for ac_config_target in $ac_config_targets
12027 case $ac_config_target in
12028 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12029 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12030 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12031 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12033 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12034 esac
12035 done
12038 # If the user did not use the arguments to specify the items to instantiate,
12039 # then the envvar interface is used. Set only those that are not.
12040 # We use the long form for the default assignment because of an extremely
12041 # bizarre bug on SunOS 4.1.3.
12042 if $ac_need_defaults; then
12043 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12044 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12045 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12048 # Have a temporary directory for convenience. Make it in the build tree
12049 # simply because there is no reason against having it here, and in addition,
12050 # creating and moving files from /tmp can sometimes cause problems.
12051 # Hook for its removal unless debugging.
12052 # Note that there is a small window in which the directory will not be cleaned:
12053 # after its creation but before its name has been assigned to `$tmp'.
12054 $debug ||
12056 tmp=
12057 trap 'exit_status=$?
12058 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12060 trap 'as_fn_exit 1' 1 2 13 15
12062 # Create a (secure) tmp directory for tmp files.
12065 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12066 test -n "$tmp" && test -d "$tmp"
12067 } ||
12069 tmp=./conf$$-$RANDOM
12070 (umask 077 && mkdir "$tmp")
12071 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12073 # Set up the scripts for CONFIG_FILES section.
12074 # No need to generate them if there are no CONFIG_FILES.
12075 # This happens for instance with `./config.status config.h'.
12076 if test -n "$CONFIG_FILES"; then
12079 ac_cr=`echo X | tr X '\015'`
12080 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12081 # But we know of no other shell where ac_cr would be empty at this
12082 # point, so we can use a bashism as a fallback.
12083 if test "x$ac_cr" = x; then
12084 eval ac_cr=\$\'\\r\'
12086 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12087 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12088 ac_cs_awk_cr='\r'
12089 else
12090 ac_cs_awk_cr=$ac_cr
12093 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12094 _ACEOF
12098 echo "cat >conf$$subs.awk <<_ACEOF" &&
12099 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12100 echo "_ACEOF"
12101 } >conf$$subs.sh ||
12102 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12103 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12104 ac_delim='%!_!# '
12105 for ac_last_try in false false false false false :; do
12106 . ./conf$$subs.sh ||
12107 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12109 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12110 if test $ac_delim_n = $ac_delim_num; then
12111 break
12112 elif $ac_last_try; then
12113 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12114 else
12115 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12117 done
12118 rm -f conf$$subs.sh
12120 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12121 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12122 _ACEOF
12123 sed -n '
12125 s/^/S["/; s/!.*/"]=/
12128 s/^[^!]*!//
12129 :repl
12130 t repl
12131 s/'"$ac_delim"'$//
12132 t delim
12135 s/\(.\{148\}\).*/\1/
12136 t more1
12137 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12140 b repl
12141 :more1
12142 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12145 s/.\{148\}//
12146 t nl
12147 :delim
12149 s/\(.\{148\}\).*/\1/
12150 t more2
12151 s/["\\]/\\&/g; s/^/"/; s/$/"/
12154 :more2
12155 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12158 s/.\{148\}//
12159 t delim
12160 ' <conf$$subs.awk | sed '
12161 /^[^""]/{
12163 s/\n//
12165 ' >>$CONFIG_STATUS || ac_write_fail=1
12166 rm -f conf$$subs.awk
12167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12168 _ACAWK
12169 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12170 for (key in S) S_is_set[key] = 1
12171 FS = "\a"
12175 line = $ 0
12176 nfields = split(line, field, "@")
12177 substed = 0
12178 len = length(field[1])
12179 for (i = 2; i < nfields; i++) {
12180 key = field[i]
12181 keylen = length(key)
12182 if (S_is_set[key]) {
12183 value = S[key]
12184 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12185 len += length(value) + length(field[++i])
12186 substed = 1
12187 } else
12188 len += 1 + keylen
12191 print line
12194 _ACAWK
12195 _ACEOF
12196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12197 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12198 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12199 else
12201 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12202 || as_fn_error "could not setup config files machinery" "$LINENO" 5
12203 _ACEOF
12205 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12206 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12207 # trailing colons and then remove the whole line if VPATH becomes empty
12208 # (actually we leave an empty line to preserve line numbers).
12209 if test "x$srcdir" = x.; then
12210 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12211 s/:*\$(srcdir):*/:/
12212 s/:*\${srcdir}:*/:/
12213 s/:*@srcdir@:*/:/
12214 s/^\([^=]*=[ ]*\):*/\1/
12215 s/:*$//
12216 s/^[^=]*=[ ]*$//
12220 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12221 fi # test -n "$CONFIG_FILES"
12223 # Set up the scripts for CONFIG_HEADERS section.
12224 # No need to generate them if there are no CONFIG_HEADERS.
12225 # This happens for instance with `./config.status Makefile'.
12226 if test -n "$CONFIG_HEADERS"; then
12227 cat >"$tmp/defines.awk" <<\_ACAWK ||
12228 BEGIN {
12229 _ACEOF
12231 # Transform confdefs.h into an awk script `defines.awk', embedded as
12232 # here-document in config.status, that substitutes the proper values into
12233 # config.h.in to produce config.h.
12235 # Create a delimiter string that does not exist in confdefs.h, to ease
12236 # handling of long lines.
12237 ac_delim='%!_!# '
12238 for ac_last_try in false false :; do
12239 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12240 if test -z "$ac_t"; then
12241 break
12242 elif $ac_last_try; then
12243 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12244 else
12245 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12247 done
12249 # For the awk script, D is an array of macro values keyed by name,
12250 # likewise P contains macro parameters if any. Preserve backslash
12251 # newline sequences.
12253 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12254 sed -n '
12255 s/.\{148\}/&'"$ac_delim"'/g
12256 t rset
12257 :rset
12258 s/^[ ]*#[ ]*define[ ][ ]*/ /
12259 t def
12261 :def
12262 s/\\$//
12263 t bsnl
12264 s/["\\]/\\&/g
12265 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12266 D["\1"]=" \3"/p
12267 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12269 :bsnl
12270 s/["\\]/\\&/g
12271 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12272 D["\1"]=" \3\\\\\\n"\\/p
12273 t cont
12274 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12275 t cont
12277 :cont
12279 s/.\{148\}/&'"$ac_delim"'/g
12280 t clear
12281 :clear
12282 s/\\$//
12283 t bsnlc
12284 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12286 :bsnlc
12287 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12288 b cont
12289 ' <confdefs.h | sed '
12290 s/'"$ac_delim"'/"\\\
12291 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12294 for (key in D) D_is_set[key] = 1
12295 FS = "\a"
12297 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12298 line = \$ 0
12299 split(line, arg, " ")
12300 if (arg[1] == "#") {
12301 defundef = arg[2]
12302 mac1 = arg[3]
12303 } else {
12304 defundef = substr(arg[1], 2)
12305 mac1 = arg[2]
12307 split(mac1, mac2, "(") #)
12308 macro = mac2[1]
12309 prefix = substr(line, 1, index(line, defundef) - 1)
12310 if (D_is_set[macro]) {
12311 # Preserve the white space surrounding the "#".
12312 print prefix "define", macro P[macro] D[macro]
12313 next
12314 } else {
12315 # Replace #undef with comments. This is necessary, for example,
12316 # in the case of _POSIX_SOURCE, which is predefined and required
12317 # on some systems where configure will not decide to define it.
12318 if (defundef == "undef") {
12319 print "/*", prefix defundef, macro, "*/"
12320 next
12324 { print }
12325 _ACAWK
12326 _ACEOF
12327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12328 as_fn_error "could not setup config headers machinery" "$LINENO" 5
12329 fi # test -n "$CONFIG_HEADERS"
12332 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12333 shift
12334 for ac_tag
12336 case $ac_tag in
12337 :[FHLC]) ac_mode=$ac_tag; continue;;
12338 esac
12339 case $ac_mode$ac_tag in
12340 :[FHL]*:*);;
12341 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12342 :[FH]-) ac_tag=-:-;;
12343 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12344 esac
12345 ac_save_IFS=$IFS
12346 IFS=:
12347 set x $ac_tag
12348 IFS=$ac_save_IFS
12349 shift
12350 ac_file=$1
12351 shift
12353 case $ac_mode in
12354 :L) ac_source=$1;;
12355 :[FH])
12356 ac_file_inputs=
12357 for ac_f
12359 case $ac_f in
12360 -) ac_f="$tmp/stdin";;
12361 *) # Look for the file first in the build tree, then in the source tree
12362 # (if the path is not absolute). The absolute path cannot be DOS-style,
12363 # because $ac_f cannot contain `:'.
12364 test -f "$ac_f" ||
12365 case $ac_f in
12366 [\\/$]*) false;;
12367 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12368 esac ||
12369 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12370 esac
12371 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12372 as_fn_append ac_file_inputs " '$ac_f'"
12373 done
12375 # Let's still pretend it is `configure' which instantiates (i.e., don't
12376 # use $as_me), people would be surprised to read:
12377 # /* config.h. Generated by config.status. */
12378 configure_input='Generated from '`
12379 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12380 `' by configure.'
12381 if test x"$ac_file" != x-; then
12382 configure_input="$ac_file. $configure_input"
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12384 $as_echo "$as_me: creating $ac_file" >&6;}
12386 # Neutralize special characters interpreted by sed in replacement strings.
12387 case $configure_input in #(
12388 *\&* | *\|* | *\\* )
12389 ac_sed_conf_input=`$as_echo "$configure_input" |
12390 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12391 *) ac_sed_conf_input=$configure_input;;
12392 esac
12394 case $ac_tag in
12395 *:-:* | *:-) cat >"$tmp/stdin" \
12396 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12397 esac
12399 esac
12401 ac_dir=`$as_dirname -- "$ac_file" ||
12402 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12403 X"$ac_file" : 'X\(//\)[^/]' \| \
12404 X"$ac_file" : 'X\(//\)$' \| \
12405 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12406 $as_echo X"$ac_file" |
12407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12408 s//\1/
12411 /^X\(\/\/\)[^/].*/{
12412 s//\1/
12415 /^X\(\/\/\)$/{
12416 s//\1/
12419 /^X\(\/\).*/{
12420 s//\1/
12423 s/.*/./; q'`
12424 as_dir="$ac_dir"; as_fn_mkdir_p
12425 ac_builddir=.
12427 case "$ac_dir" in
12428 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12430 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12431 # A ".." for each directory in $ac_dir_suffix.
12432 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12433 case $ac_top_builddir_sub in
12434 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12435 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12436 esac ;;
12437 esac
12438 ac_abs_top_builddir=$ac_pwd
12439 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12440 # for backward compatibility:
12441 ac_top_builddir=$ac_top_build_prefix
12443 case $srcdir in
12444 .) # We are building in place.
12445 ac_srcdir=.
12446 ac_top_srcdir=$ac_top_builddir_sub
12447 ac_abs_top_srcdir=$ac_pwd ;;
12448 [\\/]* | ?:[\\/]* ) # Absolute name.
12449 ac_srcdir=$srcdir$ac_dir_suffix;
12450 ac_top_srcdir=$srcdir
12451 ac_abs_top_srcdir=$srcdir ;;
12452 *) # Relative name.
12453 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12454 ac_top_srcdir=$ac_top_build_prefix$srcdir
12455 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12456 esac
12457 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12460 case $ac_mode in
12463 # CONFIG_FILE
12466 case $INSTALL in
12467 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12468 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12469 esac
12470 ac_MKDIR_P=$MKDIR_P
12471 case $MKDIR_P in
12472 [\\/$]* | ?:[\\/]* ) ;;
12473 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12474 esac
12475 _ACEOF
12477 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12478 # If the template does not know about datarootdir, expand it.
12479 # FIXME: This hack should be removed a few years after 2.60.
12480 ac_datarootdir_hack=; ac_datarootdir_seen=
12481 ac_sed_dataroot='
12482 /datarootdir/ {
12486 /@datadir@/p
12487 /@docdir@/p
12488 /@infodir@/p
12489 /@localedir@/p
12490 /@mandir@/p'
12491 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12492 *datarootdir*) ac_datarootdir_seen=yes;;
12493 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12495 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12496 _ACEOF
12497 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12498 ac_datarootdir_hack='
12499 s&@datadir@&$datadir&g
12500 s&@docdir@&$docdir&g
12501 s&@infodir@&$infodir&g
12502 s&@localedir@&$localedir&g
12503 s&@mandir@&$mandir&g
12504 s&\\\${datarootdir}&$datarootdir&g' ;;
12505 esac
12506 _ACEOF
12508 # Neutralize VPATH when `$srcdir' = `.'.
12509 # Shell code in configure.ac might set extrasub.
12510 # FIXME: do we really want to maintain this feature?
12511 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12512 ac_sed_extra="$ac_vpsub
12513 $extrasub
12514 _ACEOF
12515 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12517 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12518 s|@configure_input@|$ac_sed_conf_input|;t t
12519 s&@top_builddir@&$ac_top_builddir_sub&;t t
12520 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12521 s&@srcdir@&$ac_srcdir&;t t
12522 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12523 s&@top_srcdir@&$ac_top_srcdir&;t t
12524 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12525 s&@builddir@&$ac_builddir&;t t
12526 s&@abs_builddir@&$ac_abs_builddir&;t t
12527 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12528 s&@INSTALL@&$ac_INSTALL&;t t
12529 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12530 $ac_datarootdir_hack
12532 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12533 || as_fn_error "could not create $ac_file" "$LINENO" 5
12535 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12536 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12537 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12539 which seems to be undefined. Please make sure it is defined." >&5
12540 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12541 which seems to be undefined. Please make sure it is defined." >&2;}
12543 rm -f "$tmp/stdin"
12544 case $ac_file in
12545 -) cat "$tmp/out" && rm -f "$tmp/out";;
12546 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12547 esac \
12548 || as_fn_error "could not create $ac_file" "$LINENO" 5
12552 # CONFIG_HEADER
12554 if test x"$ac_file" != x-; then
12556 $as_echo "/* $configure_input */" \
12557 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12558 } >"$tmp/config.h" \
12559 || as_fn_error "could not create $ac_file" "$LINENO" 5
12560 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12562 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12563 else
12564 rm -f "$ac_file"
12565 mv "$tmp/config.h" "$ac_file" \
12566 || as_fn_error "could not create $ac_file" "$LINENO" 5
12568 else
12569 $as_echo "/* $configure_input */" \
12570 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12571 || as_fn_error "could not create -" "$LINENO" 5
12573 # Compute "$ac_file"'s index in $config_headers.
12574 _am_arg="$ac_file"
12575 _am_stamp_count=1
12576 for _am_header in $config_headers :; do
12577 case $_am_header in
12578 $_am_arg | $_am_arg:* )
12579 break ;;
12581 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12582 esac
12583 done
12584 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12585 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12586 X"$_am_arg" : 'X\(//\)[^/]' \| \
12587 X"$_am_arg" : 'X\(//\)$' \| \
12588 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12589 $as_echo X"$_am_arg" |
12590 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12591 s//\1/
12594 /^X\(\/\/\)[^/].*/{
12595 s//\1/
12598 /^X\(\/\/\)$/{
12599 s//\1/
12602 /^X\(\/\).*/{
12603 s//\1/
12606 s/.*/./; q'`/stamp-h$_am_stamp_count
12609 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12610 $as_echo "$as_me: executing $ac_file commands" >&6;}
12612 esac
12615 case $ac_file$ac_mode in
12616 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12617 # Autoconf 2.62 quotes --file arguments for eval, but not when files
12618 # are listed without --file. Let's play safe and only enable the eval
12619 # if we detect the quoting.
12620 case $CONFIG_FILES in
12621 *\'*) eval set x "$CONFIG_FILES" ;;
12622 *) set x $CONFIG_FILES ;;
12623 esac
12624 shift
12625 for mf
12627 # Strip MF so we end up with the name of the file.
12628 mf=`echo "$mf" | sed -e 's/:.*$//'`
12629 # Check whether this is an Automake generated Makefile or not.
12630 # We used to match only the files named `Makefile.in', but
12631 # some people rename them; so instead we look at the file content.
12632 # Grep'ing the first line is not enough: some people post-process
12633 # each Makefile.in and add a new line on top of each file to say so.
12634 # Grep'ing the whole file is not good either: AIX grep has a line
12635 # limit of 2048, but all sed's we know have understand at least 4000.
12636 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12637 dirpart=`$as_dirname -- "$mf" ||
12638 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12639 X"$mf" : 'X\(//\)[^/]' \| \
12640 X"$mf" : 'X\(//\)$' \| \
12641 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12642 $as_echo X"$mf" |
12643 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12644 s//\1/
12647 /^X\(\/\/\)[^/].*/{
12648 s//\1/
12651 /^X\(\/\/\)$/{
12652 s//\1/
12655 /^X\(\/\).*/{
12656 s//\1/
12659 s/.*/./; q'`
12660 else
12661 continue
12663 # Extract the definition of DEPDIR, am__include, and am__quote
12664 # from the Makefile without running `make'.
12665 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12666 test -z "$DEPDIR" && continue
12667 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12668 test -z "am__include" && continue
12669 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12670 # When using ansi2knr, U may be empty or an underscore; expand it
12671 U=`sed -n 's/^U = //p' < "$mf"`
12672 # Find all dependency output files, they are included files with
12673 # $(DEPDIR) in their names. We invoke sed twice because it is the
12674 # simplest approach to changing $(DEPDIR) to its actual value in the
12675 # expansion.
12676 for file in `sed -n "
12677 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12678 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12679 # Make sure the directory exists.
12680 test -f "$dirpart/$file" && continue
12681 fdir=`$as_dirname -- "$file" ||
12682 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12683 X"$file" : 'X\(//\)[^/]' \| \
12684 X"$file" : 'X\(//\)$' \| \
12685 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12686 $as_echo X"$file" |
12687 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12688 s//\1/
12691 /^X\(\/\/\)[^/].*/{
12692 s//\1/
12695 /^X\(\/\/\)$/{
12696 s//\1/
12699 /^X\(\/\).*/{
12700 s//\1/
12703 s/.*/./; q'`
12704 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12705 # echo "creating $dirpart/$file"
12706 echo '# dummy' > "$dirpart/$file"
12707 done
12708 done
12711 "libtool":C)
12713 # See if we are running on zsh, and set the options which allow our
12714 # commands through without removal of \ escapes.
12715 if test -n "${ZSH_VERSION+set}" ; then
12716 setopt NO_GLOB_SUBST
12719 cfgfile="${ofile}T"
12720 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12721 $RM "$cfgfile"
12723 cat <<_LT_EOF >> "$cfgfile"
12724 #! $SHELL
12726 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12727 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12728 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12729 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12731 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12732 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
12733 # Written by Gordon Matzigkeit, 1996
12735 # This file is part of GNU Libtool.
12737 # GNU Libtool is free software; you can redistribute it and/or
12738 # modify it under the terms of the GNU General Public License as
12739 # published by the Free Software Foundation; either version 2 of
12740 # the License, or (at your option) any later version.
12742 # As a special exception to the GNU General Public License,
12743 # if you distribute this file as part of a program or library that
12744 # is built using GNU Libtool, you may include this file under the
12745 # same distribution terms that you use for the rest of that program.
12747 # GNU Libtool is distributed in the hope that it will be useful,
12748 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12749 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12750 # GNU General Public License for more details.
12752 # You should have received a copy of the GNU General Public License
12753 # along with GNU Libtool; see the file COPYING. If not, a copy
12754 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12755 # obtained by writing to the Free Software Foundation, Inc.,
12756 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12759 # The names of the tagged configurations supported by this script.
12760 available_tags=""
12762 # ### BEGIN LIBTOOL CONFIG
12764 # Which release of libtool.m4 was used?
12765 macro_version=$macro_version
12766 macro_revision=$macro_revision
12768 # Whether or not to build shared libraries.
12769 build_libtool_libs=$enable_shared
12771 # Whether or not to build static libraries.
12772 build_old_libs=$enable_static
12774 # What type of objects to build.
12775 pic_mode=$pic_mode
12777 # Whether or not to optimize for fast installation.
12778 fast_install=$enable_fast_install
12780 # Shell to use when invoking shell scripts.
12781 SHELL=$lt_SHELL
12783 # An echo program that protects backslashes.
12784 ECHO=$lt_ECHO
12786 # The host system.
12787 host_alias=$host_alias
12788 host=$host
12789 host_os=$host_os
12791 # The build system.
12792 build_alias=$build_alias
12793 build=$build
12794 build_os=$build_os
12796 # A sed program that does not truncate output.
12797 SED=$lt_SED
12799 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12800 Xsed="\$SED -e 1s/^X//"
12802 # A grep program that handles long lines.
12803 GREP=$lt_GREP
12805 # An ERE matcher.
12806 EGREP=$lt_EGREP
12808 # A literal string matcher.
12809 FGREP=$lt_FGREP
12811 # A BSD- or MS-compatible name lister.
12812 NM=$lt_NM
12814 # Whether we need soft or hard links.
12815 LN_S=$lt_LN_S
12817 # What is the maximum length of a command?
12818 max_cmd_len=$max_cmd_len
12820 # Object file suffix (normally "o").
12821 objext=$ac_objext
12823 # Executable file suffix (normally "").
12824 exeext=$exeext
12826 # whether the shell understands "unset".
12827 lt_unset=$lt_unset
12829 # turn spaces into newlines.
12830 SP2NL=$lt_lt_SP2NL
12832 # turn newlines into spaces.
12833 NL2SP=$lt_lt_NL2SP
12835 # An object symbol dumper.
12836 OBJDUMP=$lt_OBJDUMP
12838 # Method to check whether dependent libraries are shared objects.
12839 deplibs_check_method=$lt_deplibs_check_method
12841 # Command to use when deplibs_check_method == "file_magic".
12842 file_magic_cmd=$lt_file_magic_cmd
12844 # The archiver.
12845 AR=$lt_AR
12846 AR_FLAGS=$lt_AR_FLAGS
12848 # A symbol stripping program.
12849 STRIP=$lt_STRIP
12851 # Commands used to install an old-style archive.
12852 RANLIB=$lt_RANLIB
12853 old_postinstall_cmds=$lt_old_postinstall_cmds
12854 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12856 # Whether to use a lock for old archive extraction.
12857 lock_old_archive_extraction=$lock_old_archive_extraction
12859 # A C compiler.
12860 LTCC=$lt_CC
12862 # LTCC compiler flags.
12863 LTCFLAGS=$lt_CFLAGS
12865 # Take the output of nm and produce a listing of raw symbols and C names.
12866 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12868 # Transform the output of nm in a proper C declaration.
12869 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12871 # Transform the output of nm in a C name address pair.
12872 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12874 # Transform the output of nm in a C name address pair when lib prefix is needed.
12875 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12877 # The name of the directory that contains temporary libtool files.
12878 objdir=$objdir
12880 # Used to examine libraries when file_magic_cmd begins with "file".
12881 MAGIC_CMD=$MAGIC_CMD
12883 # Must we lock files when doing compilation?
12884 need_locks=$lt_need_locks
12886 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12887 DSYMUTIL=$lt_DSYMUTIL
12889 # Tool to change global to local symbols on Mac OS X.
12890 NMEDIT=$lt_NMEDIT
12892 # Tool to manipulate fat objects and archives on Mac OS X.
12893 LIPO=$lt_LIPO
12895 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
12896 OTOOL=$lt_OTOOL
12898 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
12899 OTOOL64=$lt_OTOOL64
12901 # Old archive suffix (normally "a").
12902 libext=$libext
12904 # Shared library suffix (normally ".so").
12905 shrext_cmds=$lt_shrext_cmds
12907 # The commands to extract the exported symbol list from a shared archive.
12908 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12910 # Variables whose values should be saved in libtool wrapper scripts and
12911 # restored at link time.
12912 variables_saved_for_relink=$lt_variables_saved_for_relink
12914 # Do we need the "lib" prefix for modules?
12915 need_lib_prefix=$need_lib_prefix
12917 # Do we need a version for libraries?
12918 need_version=$need_version
12920 # Library versioning type.
12921 version_type=$version_type
12923 # Shared library runtime path variable.
12924 runpath_var=$runpath_var
12926 # Shared library path variable.
12927 shlibpath_var=$shlibpath_var
12929 # Is shlibpath searched before the hard-coded library search path?
12930 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12932 # Format of library name prefix.
12933 libname_spec=$lt_libname_spec
12935 # List of archive names. First name is the real one, the rest are links.
12936 # The last name is the one that the linker finds with -lNAME
12937 library_names_spec=$lt_library_names_spec
12939 # The coded name of the library, if different from the real name.
12940 soname_spec=$lt_soname_spec
12942 # Permission mode override for installation of shared libraries.
12943 install_override_mode=$lt_install_override_mode
12945 # Command to use after installation of a shared archive.
12946 postinstall_cmds=$lt_postinstall_cmds
12948 # Command to use after uninstallation of a shared archive.
12949 postuninstall_cmds=$lt_postuninstall_cmds
12951 # Commands used to finish a libtool library installation in a directory.
12952 finish_cmds=$lt_finish_cmds
12954 # As "finish_cmds", except a single script fragment to be evaled but
12955 # not shown.
12956 finish_eval=$lt_finish_eval
12958 # Whether we should hardcode library paths into libraries.
12959 hardcode_into_libs=$hardcode_into_libs
12961 # Compile-time system search path for libraries.
12962 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12964 # Run-time system search path for libraries.
12965 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12967 # Whether dlopen is supported.
12968 dlopen_support=$enable_dlopen
12970 # Whether dlopen of programs is supported.
12971 dlopen_self=$enable_dlopen_self
12973 # Whether dlopen of statically linked programs is supported.
12974 dlopen_self_static=$enable_dlopen_self_static
12976 # Commands to strip libraries.
12977 old_striplib=$lt_old_striplib
12978 striplib=$lt_striplib
12981 # The linker used to build libraries.
12982 LD=$lt_LD
12984 # How to create reloadable object files.
12985 reload_flag=$lt_reload_flag
12986 reload_cmds=$lt_reload_cmds
12988 # Commands used to build an old-style archive.
12989 old_archive_cmds=$lt_old_archive_cmds
12991 # A language specific compiler.
12992 CC=$lt_compiler
12994 # Is the compiler the GNU compiler?
12995 with_gcc=$GCC
12997 # Compiler flag to turn off builtin functions.
12998 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13000 # How to pass a linker flag through the compiler.
13001 wl=$lt_lt_prog_compiler_wl
13003 # Additional compiler flags for building library objects.
13004 pic_flag=$lt_lt_prog_compiler_pic
13006 # Compiler flag to prevent dynamic linking.
13007 link_static_flag=$lt_lt_prog_compiler_static
13009 # Does compiler simultaneously support -c and -o options?
13010 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13012 # Whether or not to add -lc for building shared libraries.
13013 build_libtool_need_lc=$archive_cmds_need_lc
13015 # Whether or not to disallow shared libs when runtime libs are static.
13016 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13018 # Compiler flag to allow reflexive dlopens.
13019 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13021 # Compiler flag to generate shared objects directly from archives.
13022 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13024 # Whether the compiler copes with passing no objects directly.
13025 compiler_needs_object=$lt_compiler_needs_object
13027 # Create an old-style archive from a shared archive.
13028 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13030 # Create a temporary old-style archive to link instead of a shared archive.
13031 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13033 # Commands used to build a shared archive.
13034 archive_cmds=$lt_archive_cmds
13035 archive_expsym_cmds=$lt_archive_expsym_cmds
13037 # Commands used to build a loadable module if different from building
13038 # a shared archive.
13039 module_cmds=$lt_module_cmds
13040 module_expsym_cmds=$lt_module_expsym_cmds
13042 # Whether we are building with GNU ld or not.
13043 with_gnu_ld=$lt_with_gnu_ld
13045 # Flag that allows shared libraries with undefined symbols to be built.
13046 allow_undefined_flag=$lt_allow_undefined_flag
13048 # Flag that enforces no undefined symbols.
13049 no_undefined_flag=$lt_no_undefined_flag
13051 # Flag to hardcode \$libdir into a binary during linking.
13052 # This must work even if \$libdir does not exist
13053 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13055 # If ld is used when linking, flag to hardcode \$libdir into a binary
13056 # during linking. This must work even if \$libdir does not exist.
13057 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13059 # Whether we need a single "-rpath" flag with a separated argument.
13060 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13062 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13063 # DIR into the resulting binary.
13064 hardcode_direct=$hardcode_direct
13066 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13067 # DIR into the resulting binary and the resulting library dependency is
13068 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13069 # library is relocated.
13070 hardcode_direct_absolute=$hardcode_direct_absolute
13072 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13073 # into the resulting binary.
13074 hardcode_minus_L=$hardcode_minus_L
13076 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13077 # into the resulting binary.
13078 hardcode_shlibpath_var=$hardcode_shlibpath_var
13080 # Set to "yes" if building a shared library automatically hardcodes DIR
13081 # into the library and all subsequent libraries and executables linked
13082 # against it.
13083 hardcode_automatic=$hardcode_automatic
13085 # Set to yes if linker adds runtime paths of dependent libraries
13086 # to runtime path list.
13087 inherit_rpath=$inherit_rpath
13089 # Whether libtool must link a program against all its dependency libraries.
13090 link_all_deplibs=$link_all_deplibs
13092 # Fix the shell variable \$srcfile for the compiler.
13093 fix_srcfile_path=$lt_fix_srcfile_path
13095 # Set to "yes" if exported symbols are required.
13096 always_export_symbols=$always_export_symbols
13098 # The commands to list exported symbols.
13099 export_symbols_cmds=$lt_export_symbols_cmds
13101 # Symbols that should not be listed in the preloaded symbols.
13102 exclude_expsyms=$lt_exclude_expsyms
13104 # Symbols that must always be exported.
13105 include_expsyms=$lt_include_expsyms
13107 # Commands necessary for linking programs (against libraries) with templates.
13108 prelink_cmds=$lt_prelink_cmds
13110 # Specify filename containing input files.
13111 file_list_spec=$lt_file_list_spec
13113 # How to hardcode a shared library path into an executable.
13114 hardcode_action=$hardcode_action
13116 # ### END LIBTOOL CONFIG
13118 _LT_EOF
13120 case $host_os in
13121 aix3*)
13122 cat <<\_LT_EOF >> "$cfgfile"
13123 # AIX sometimes has problems with the GCC collect2 program. For some
13124 # reason, if we set the COLLECT_NAMES environment variable, the problems
13125 # vanish in a puff of smoke.
13126 if test "X${COLLECT_NAMES+set}" != Xset; then
13127 COLLECT_NAMES=
13128 export COLLECT_NAMES
13130 _LT_EOF
13132 esac
13135 ltmain="$ac_aux_dir/ltmain.sh"
13138 # We use sed instead of cat because bash on DJGPP gets confused if
13139 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13140 # text mode, it properly converts lines to CR/LF. This bash problem
13141 # is reportedly fixed, but why not run on old versions too?
13142 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13143 || (rm -f "$cfgfile"; exit 1)
13145 case $xsi_shell in
13146 yes)
13147 cat << \_LT_EOF >> "$cfgfile"
13149 # func_dirname file append nondir_replacement
13150 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13151 # otherwise set result to NONDIR_REPLACEMENT.
13152 func_dirname ()
13154 case ${1} in
13155 */*) func_dirname_result="${1%/*}${2}" ;;
13156 * ) func_dirname_result="${3}" ;;
13157 esac
13160 # func_basename file
13161 func_basename ()
13163 func_basename_result="${1##*/}"
13166 # func_dirname_and_basename file append nondir_replacement
13167 # perform func_basename and func_dirname in a single function
13168 # call:
13169 # dirname: Compute the dirname of FILE. If nonempty,
13170 # add APPEND to the result, otherwise set result
13171 # to NONDIR_REPLACEMENT.
13172 # value returned in "$func_dirname_result"
13173 # basename: Compute filename of FILE.
13174 # value retuned in "$func_basename_result"
13175 # Implementation must be kept synchronized with func_dirname
13176 # and func_basename. For efficiency, we do not delegate to
13177 # those functions but instead duplicate the functionality here.
13178 func_dirname_and_basename ()
13180 case ${1} in
13181 */*) func_dirname_result="${1%/*}${2}" ;;
13182 * ) func_dirname_result="${3}" ;;
13183 esac
13184 func_basename_result="${1##*/}"
13187 # func_stripname prefix suffix name
13188 # strip PREFIX and SUFFIX off of NAME.
13189 # PREFIX and SUFFIX must not contain globbing or regex special
13190 # characters, hashes, percent signs, but SUFFIX may contain a leading
13191 # dot (in which case that matches only a dot).
13192 func_stripname ()
13194 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13195 # positional parameters, so assign one to ordinary parameter first.
13196 func_stripname_result=${3}
13197 func_stripname_result=${func_stripname_result#"${1}"}
13198 func_stripname_result=${func_stripname_result%"${2}"}
13201 # func_opt_split
13202 func_opt_split ()
13204 func_opt_split_opt=${1%%=*}
13205 func_opt_split_arg=${1#*=}
13208 # func_lo2o object
13209 func_lo2o ()
13211 case ${1} in
13212 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13213 *) func_lo2o_result=${1} ;;
13214 esac
13217 # func_xform libobj-or-source
13218 func_xform ()
13220 func_xform_result=${1%.*}.lo
13223 # func_arith arithmetic-term...
13224 func_arith ()
13226 func_arith_result=$(( $* ))
13229 # func_len string
13230 # STRING may not start with a hyphen.
13231 func_len ()
13233 func_len_result=${#1}
13236 _LT_EOF
13238 *) # Bourne compatible functions.
13239 cat << \_LT_EOF >> "$cfgfile"
13241 # func_dirname file append nondir_replacement
13242 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13243 # otherwise set result to NONDIR_REPLACEMENT.
13244 func_dirname ()
13246 # Extract subdirectory from the argument.
13247 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
13248 if test "X$func_dirname_result" = "X${1}"; then
13249 func_dirname_result="${3}"
13250 else
13251 func_dirname_result="$func_dirname_result${2}"
13255 # func_basename file
13256 func_basename ()
13258 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
13262 # func_stripname prefix suffix name
13263 # strip PREFIX and SUFFIX off of NAME.
13264 # PREFIX and SUFFIX must not contain globbing or regex special
13265 # characters, hashes, percent signs, but SUFFIX may contain a leading
13266 # dot (in which case that matches only a dot).
13267 # func_strip_suffix prefix name
13268 func_stripname ()
13270 case ${2} in
13271 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13272 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13273 esac
13276 # sed scripts:
13277 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13278 my_sed_long_arg='1s/^-[^=]*=//'
13280 # func_opt_split
13281 func_opt_split ()
13283 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13284 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
13287 # func_lo2o object
13288 func_lo2o ()
13290 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
13293 # func_xform libobj-or-source
13294 func_xform ()
13296 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
13299 # func_arith arithmetic-term...
13300 func_arith ()
13302 func_arith_result=`expr "$@"`
13305 # func_len string
13306 # STRING may not start with a hyphen.
13307 func_len ()
13309 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13312 _LT_EOF
13313 esac
13315 case $lt_shell_append in
13316 yes)
13317 cat << \_LT_EOF >> "$cfgfile"
13319 # func_append var value
13320 # Append VALUE to the end of shell variable VAR.
13321 func_append ()
13323 eval "$1+=\$2"
13325 _LT_EOF
13328 cat << \_LT_EOF >> "$cfgfile"
13330 # func_append var value
13331 # Append VALUE to the end of shell variable VAR.
13332 func_append ()
13334 eval "$1=\$$1\$2"
13337 _LT_EOF
13339 esac
13342 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13343 || (rm -f "$cfgfile"; exit 1)
13345 mv -f "$cfgfile" "$ofile" ||
13346 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13347 chmod +x "$ofile"
13351 esac
13352 done # for ac_tag
13355 as_fn_exit 0
13356 _ACEOF
13357 ac_clean_files=$ac_clean_files_save
13359 test $ac_write_fail = 0 ||
13360 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13363 # configure is writing to config.log, and then calls config.status.
13364 # config.status does its own redirection, appending to config.log.
13365 # Unfortunately, on DOS this fails, as config.log is still kept open
13366 # by configure, so config.status won't be able to write to it; its
13367 # output is simply discarded. So we exec the FD to /dev/null,
13368 # effectively closing config.log, so it can be properly (re)opened and
13369 # appended to by config.status. When coming back to configure, we
13370 # need to make the FD available again.
13371 if test "$no_create" != yes; then
13372 ac_cs_success=:
13373 ac_config_status_args=
13374 test "$silent" = yes &&
13375 ac_config_status_args="$ac_config_status_args --quiet"
13376 exec 5>/dev/null
13377 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13378 exec 5>>config.log
13379 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13380 # would make configure fail if this is the last instruction.
13381 $ac_cs_success || as_fn_exit $?
13383 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13385 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}