* df-scan.c (df_scan_start_dump): Add space between regno and regname.
[official-gcc.git] / libcc1 / configure
blobbbd3e724175758aa226f85002b501299a0b0596e
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for libcc1 version-unused.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME='libcc1'
558 PACKAGE_TARNAME='libcc1'
559 PACKAGE_VERSION='version-unused'
560 PACKAGE_STRING='libcc1 version-unused'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
564 ac_unique_file="libcc1.cc"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 ENABLE_PLUGIN_FALSE
606 ENABLE_PLUGIN_TRUE
607 libsuffix
608 GMPINC
609 WERROR
610 WARN_FLAGS
611 gcc_version
612 visibility
613 CXXCPP
614 am__fastdepCXX_FALSE
615 am__fastdepCXX_TRUE
616 CXXDEPMODE
617 ac_ct_CXX
618 CXXFLAGS
620 OTOOL64
621 OTOOL
622 LIPO
623 NMEDIT
624 DSYMUTIL
625 RANLIB
627 OBJDUMP
628 LN_S
630 ac_ct_DUMPBIN
631 DUMPBIN
633 FGREP
635 LIBTOOL
636 MAINT
637 MAINTAINER_MODE_FALSE
638 MAINTAINER_MODE_TRUE
639 am__fastdepCC_FALSE
640 am__fastdepCC_TRUE
641 CCDEPMODE
642 am__nodep
643 AMDEPBACKSLASH
644 AMDEP_FALSE
645 AMDEP_TRUE
646 am__quote
647 am__include
648 DEPDIR
649 am__untar
650 am__tar
651 AMTAR
652 am__leading_dot
653 SET_MAKE
655 mkdir_p
656 MKDIR_P
657 INSTALL_STRIP_PROGRAM
658 STRIP
659 install_sh
660 MAKEINFO
661 AUTOHEADER
662 AUTOMAKE
663 AUTOCONF
664 ACLOCAL
665 VERSION
666 PACKAGE
667 CYGPATH_W
668 am__isrc
669 INSTALL_DATA
670 INSTALL_SCRIPT
671 INSTALL_PROGRAM
672 target_subdir
673 host_subdir
674 build_subdir
675 build_libsubdir
676 target_noncanonical
677 EGREP
678 GREP
680 OBJEXT
681 EXEEXT
682 ac_ct_CC
683 CPPFLAGS
684 LDFLAGS
685 CFLAGS
687 target_os
688 target_vendor
689 target_cpu
690 target
691 host_os
692 host_vendor
693 host_cpu
694 host
695 build_os
696 build_vendor
697 build_cpu
698 build
699 target_alias
700 host_alias
701 build_alias
702 LIBS
703 ECHO_T
704 ECHO_N
705 ECHO_C
706 DEFS
707 mandir
708 localedir
709 libdir
710 psdir
711 pdfdir
712 dvidir
713 htmldir
714 infodir
715 docdir
716 oldincludedir
717 includedir
718 localstatedir
719 sharedstatedir
720 sysconfdir
721 datadir
722 datarootdir
723 libexecdir
724 sbindir
725 bindir
726 program_transform_name
727 prefix
728 exec_prefix
729 PACKAGE_URL
730 PACKAGE_BUGREPORT
731 PACKAGE_STRING
732 PACKAGE_VERSION
733 PACKAGE_TARNAME
734 PACKAGE_NAME
735 PATH_SEPARATOR
736 SHELL'
737 ac_subst_files=''
738 ac_user_opts='
739 enable_option_checking
740 with_build_libsubdir
741 enable_dependency_tracking
742 enable_maintainer_mode
743 enable_static
744 enable_shared
745 with_pic
746 enable_fast_install
747 with_gnu_ld
748 enable_libtool_lock
749 enable_werror_always
750 enable_plugin
752 ac_precious_vars='build_alias
753 host_alias
754 target_alias
756 CFLAGS
757 LDFLAGS
758 LIBS
759 CPPFLAGS
762 CXXFLAGS
764 CXXCPP
765 GMPINC'
768 # Initialize some variables set by options.
769 ac_init_help=
770 ac_init_version=false
771 ac_unrecognized_opts=
772 ac_unrecognized_sep=
773 # The variables have the same names as the options, with
774 # dashes changed to underlines.
775 cache_file=/dev/null
776 exec_prefix=NONE
777 no_create=
778 no_recursion=
779 prefix=NONE
780 program_prefix=NONE
781 program_suffix=NONE
782 program_transform_name=s,x,x,
783 silent=
784 site=
785 srcdir=
786 verbose=
787 x_includes=NONE
788 x_libraries=NONE
790 # Installation directory options.
791 # These are left unexpanded so users can "make install exec_prefix=/foo"
792 # and all the variables that are supposed to be based on exec_prefix
793 # by default will actually change.
794 # Use braces instead of parens because sh, perl, etc. also accept them.
795 # (The list follows the same order as the GNU Coding Standards.)
796 bindir='${exec_prefix}/bin'
797 sbindir='${exec_prefix}/sbin'
798 libexecdir='${exec_prefix}/libexec'
799 datarootdir='${prefix}/share'
800 datadir='${datarootdir}'
801 sysconfdir='${prefix}/etc'
802 sharedstatedir='${prefix}/com'
803 localstatedir='${prefix}/var'
804 includedir='${prefix}/include'
805 oldincludedir='/usr/include'
806 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
807 infodir='${datarootdir}/info'
808 htmldir='${docdir}'
809 dvidir='${docdir}'
810 pdfdir='${docdir}'
811 psdir='${docdir}'
812 libdir='${exec_prefix}/lib'
813 localedir='${datarootdir}/locale'
814 mandir='${datarootdir}/man'
816 ac_prev=
817 ac_dashdash=
818 for ac_option
820 # If the previous option needs an argument, assign it.
821 if test -n "$ac_prev"; then
822 eval $ac_prev=\$ac_option
823 ac_prev=
824 continue
827 case $ac_option in
828 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
829 *) ac_optarg=yes ;;
830 esac
832 # Accept the important Cygnus configure options, so we can diagnose typos.
834 case $ac_dashdash$ac_option in
836 ac_dashdash=yes ;;
838 -bindir | --bindir | --bindi | --bind | --bin | --bi)
839 ac_prev=bindir ;;
840 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
841 bindir=$ac_optarg ;;
843 -build | --build | --buil | --bui | --bu)
844 ac_prev=build_alias ;;
845 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
846 build_alias=$ac_optarg ;;
848 -cache-file | --cache-file | --cache-fil | --cache-fi \
849 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
850 ac_prev=cache_file ;;
851 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
852 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
853 cache_file=$ac_optarg ;;
855 --config-cache | -C)
856 cache_file=config.cache ;;
858 -datadir | --datadir | --datadi | --datad)
859 ac_prev=datadir ;;
860 -datadir=* | --datadir=* | --datadi=* | --datad=*)
861 datadir=$ac_optarg ;;
863 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
864 | --dataroo | --dataro | --datar)
865 ac_prev=datarootdir ;;
866 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
867 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
868 datarootdir=$ac_optarg ;;
870 -disable-* | --disable-*)
871 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
872 # Reject names that are not valid shell variable names.
873 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
874 as_fn_error "invalid feature name: $ac_useropt"
875 ac_useropt_orig=$ac_useropt
876 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
877 case $ac_user_opts in
879 "enable_$ac_useropt"
880 "*) ;;
881 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
882 ac_unrecognized_sep=', ';;
883 esac
884 eval enable_$ac_useropt=no ;;
886 -docdir | --docdir | --docdi | --doc | --do)
887 ac_prev=docdir ;;
888 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
889 docdir=$ac_optarg ;;
891 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
892 ac_prev=dvidir ;;
893 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
894 dvidir=$ac_optarg ;;
896 -enable-* | --enable-*)
897 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
898 # Reject names that are not valid shell variable names.
899 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
900 as_fn_error "invalid feature name: $ac_useropt"
901 ac_useropt_orig=$ac_useropt
902 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
903 case $ac_user_opts in
905 "enable_$ac_useropt"
906 "*) ;;
907 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
908 ac_unrecognized_sep=', ';;
909 esac
910 eval enable_$ac_useropt=\$ac_optarg ;;
912 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
913 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
914 | --exec | --exe | --ex)
915 ac_prev=exec_prefix ;;
916 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
917 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
918 | --exec=* | --exe=* | --ex=*)
919 exec_prefix=$ac_optarg ;;
921 -gas | --gas | --ga | --g)
922 # Obsolete; use --with-gas.
923 with_gas=yes ;;
925 -help | --help | --hel | --he | -h)
926 ac_init_help=long ;;
927 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
928 ac_init_help=recursive ;;
929 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
930 ac_init_help=short ;;
932 -host | --host | --hos | --ho)
933 ac_prev=host_alias ;;
934 -host=* | --host=* | --hos=* | --ho=*)
935 host_alias=$ac_optarg ;;
937 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
938 ac_prev=htmldir ;;
939 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
940 | --ht=*)
941 htmldir=$ac_optarg ;;
943 -includedir | --includedir | --includedi | --included | --include \
944 | --includ | --inclu | --incl | --inc)
945 ac_prev=includedir ;;
946 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
947 | --includ=* | --inclu=* | --incl=* | --inc=*)
948 includedir=$ac_optarg ;;
950 -infodir | --infodir | --infodi | --infod | --info | --inf)
951 ac_prev=infodir ;;
952 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
953 infodir=$ac_optarg ;;
955 -libdir | --libdir | --libdi | --libd)
956 ac_prev=libdir ;;
957 -libdir=* | --libdir=* | --libdi=* | --libd=*)
958 libdir=$ac_optarg ;;
960 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
961 | --libexe | --libex | --libe)
962 ac_prev=libexecdir ;;
963 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
964 | --libexe=* | --libex=* | --libe=*)
965 libexecdir=$ac_optarg ;;
967 -localedir | --localedir | --localedi | --localed | --locale)
968 ac_prev=localedir ;;
969 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
970 localedir=$ac_optarg ;;
972 -localstatedir | --localstatedir | --localstatedi | --localstated \
973 | --localstate | --localstat | --localsta | --localst | --locals)
974 ac_prev=localstatedir ;;
975 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
976 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
977 localstatedir=$ac_optarg ;;
979 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
980 ac_prev=mandir ;;
981 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
982 mandir=$ac_optarg ;;
984 -nfp | --nfp | --nf)
985 # Obsolete; use --without-fp.
986 with_fp=no ;;
988 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
989 | --no-cr | --no-c | -n)
990 no_create=yes ;;
992 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
993 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
994 no_recursion=yes ;;
996 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
997 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
998 | --oldin | --oldi | --old | --ol | --o)
999 ac_prev=oldincludedir ;;
1000 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1001 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1002 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1003 oldincludedir=$ac_optarg ;;
1005 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1006 ac_prev=prefix ;;
1007 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1008 prefix=$ac_optarg ;;
1010 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1011 | --program-pre | --program-pr | --program-p)
1012 ac_prev=program_prefix ;;
1013 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1014 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1015 program_prefix=$ac_optarg ;;
1017 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1018 | --program-suf | --program-su | --program-s)
1019 ac_prev=program_suffix ;;
1020 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1021 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1022 program_suffix=$ac_optarg ;;
1024 -program-transform-name | --program-transform-name \
1025 | --program-transform-nam | --program-transform-na \
1026 | --program-transform-n | --program-transform- \
1027 | --program-transform | --program-transfor \
1028 | --program-transfo | --program-transf \
1029 | --program-trans | --program-tran \
1030 | --progr-tra | --program-tr | --program-t)
1031 ac_prev=program_transform_name ;;
1032 -program-transform-name=* | --program-transform-name=* \
1033 | --program-transform-nam=* | --program-transform-na=* \
1034 | --program-transform-n=* | --program-transform-=* \
1035 | --program-transform=* | --program-transfor=* \
1036 | --program-transfo=* | --program-transf=* \
1037 | --program-trans=* | --program-tran=* \
1038 | --progr-tra=* | --program-tr=* | --program-t=*)
1039 program_transform_name=$ac_optarg ;;
1041 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1042 ac_prev=pdfdir ;;
1043 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1044 pdfdir=$ac_optarg ;;
1046 -psdir | --psdir | --psdi | --psd | --ps)
1047 ac_prev=psdir ;;
1048 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1049 psdir=$ac_optarg ;;
1051 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1052 | -silent | --silent | --silen | --sile | --sil)
1053 silent=yes ;;
1055 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1056 ac_prev=sbindir ;;
1057 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1058 | --sbi=* | --sb=*)
1059 sbindir=$ac_optarg ;;
1061 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1062 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1063 | --sharedst | --shareds | --shared | --share | --shar \
1064 | --sha | --sh)
1065 ac_prev=sharedstatedir ;;
1066 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1067 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1068 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1069 | --sha=* | --sh=*)
1070 sharedstatedir=$ac_optarg ;;
1072 -site | --site | --sit)
1073 ac_prev=site ;;
1074 -site=* | --site=* | --sit=*)
1075 site=$ac_optarg ;;
1077 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1078 ac_prev=srcdir ;;
1079 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1080 srcdir=$ac_optarg ;;
1082 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1083 | --syscon | --sysco | --sysc | --sys | --sy)
1084 ac_prev=sysconfdir ;;
1085 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1086 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1087 sysconfdir=$ac_optarg ;;
1089 -target | --target | --targe | --targ | --tar | --ta | --t)
1090 ac_prev=target_alias ;;
1091 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1092 target_alias=$ac_optarg ;;
1094 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1095 verbose=yes ;;
1097 -version | --version | --versio | --versi | --vers | -V)
1098 ac_init_version=: ;;
1100 -with-* | --with-*)
1101 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1102 # Reject names that are not valid shell variable names.
1103 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1104 as_fn_error "invalid package name: $ac_useropt"
1105 ac_useropt_orig=$ac_useropt
1106 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1107 case $ac_user_opts in
1109 "with_$ac_useropt"
1110 "*) ;;
1111 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1112 ac_unrecognized_sep=', ';;
1113 esac
1114 eval with_$ac_useropt=\$ac_optarg ;;
1116 -without-* | --without-*)
1117 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1118 # Reject names that are not valid shell variable names.
1119 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1120 as_fn_error "invalid package name: $ac_useropt"
1121 ac_useropt_orig=$ac_useropt
1122 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123 case $ac_user_opts in
1125 "with_$ac_useropt"
1126 "*) ;;
1127 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1128 ac_unrecognized_sep=', ';;
1129 esac
1130 eval with_$ac_useropt=no ;;
1132 --x)
1133 # Obsolete; use --with-x.
1134 with_x=yes ;;
1136 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1137 | --x-incl | --x-inc | --x-in | --x-i)
1138 ac_prev=x_includes ;;
1139 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1140 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1141 x_includes=$ac_optarg ;;
1143 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1144 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1145 ac_prev=x_libraries ;;
1146 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1147 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1148 x_libraries=$ac_optarg ;;
1150 -*) as_fn_error "unrecognized option: \`$ac_option'
1151 Try \`$0 --help' for more information."
1154 *=*)
1155 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1156 # Reject names that are not valid shell variable names.
1157 case $ac_envvar in #(
1158 '' | [0-9]* | *[!_$as_cr_alnum]* )
1159 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1160 esac
1161 eval $ac_envvar=\$ac_optarg
1162 export $ac_envvar ;;
1165 # FIXME: should be removed in autoconf 3.0.
1166 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1167 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1168 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1169 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1172 esac
1173 done
1175 if test -n "$ac_prev"; then
1176 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1177 as_fn_error "missing argument to $ac_option"
1180 if test -n "$ac_unrecognized_opts"; then
1181 case $enable_option_checking in
1182 no) ;;
1183 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1184 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1185 esac
1188 # Check all directory arguments for consistency.
1189 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1190 datadir sysconfdir sharedstatedir localstatedir includedir \
1191 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1192 libdir localedir mandir
1194 eval ac_val=\$$ac_var
1195 # Remove trailing slashes.
1196 case $ac_val in
1197 */ )
1198 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1199 eval $ac_var=\$ac_val;;
1200 esac
1201 # Be sure to have absolute directory names.
1202 case $ac_val in
1203 [\\/$]* | ?:[\\/]* ) continue;;
1204 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1205 esac
1206 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1207 done
1209 # There might be people who depend on the old broken behavior: `$host'
1210 # used to hold the argument of --host etc.
1211 # FIXME: To remove some day.
1212 build=$build_alias
1213 host=$host_alias
1214 target=$target_alias
1216 # FIXME: To remove some day.
1217 if test "x$host_alias" != x; then
1218 if test "x$build_alias" = x; then
1219 cross_compiling=maybe
1220 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1221 If a cross compiler is detected then cross compile mode will be used." >&2
1222 elif test "x$build_alias" != "x$host_alias"; then
1223 cross_compiling=yes
1227 ac_tool_prefix=
1228 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1230 test "$silent" = yes && exec 6>/dev/null
1233 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1234 ac_ls_di=`ls -di .` &&
1235 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1236 as_fn_error "working directory cannot be determined"
1237 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1238 as_fn_error "pwd does not report name of working directory"
1241 # Find the source files, if location was not specified.
1242 if test -z "$srcdir"; then
1243 ac_srcdir_defaulted=yes
1244 # Try the directory containing this script, then the parent directory.
1245 ac_confdir=`$as_dirname -- "$as_myself" ||
1246 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1247 X"$as_myself" : 'X\(//\)[^/]' \| \
1248 X"$as_myself" : 'X\(//\)$' \| \
1249 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1250 $as_echo X"$as_myself" |
1251 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1252 s//\1/
1255 /^X\(\/\/\)[^/].*/{
1256 s//\1/
1259 /^X\(\/\/\)$/{
1260 s//\1/
1263 /^X\(\/\).*/{
1264 s//\1/
1267 s/.*/./; q'`
1268 srcdir=$ac_confdir
1269 if test ! -r "$srcdir/$ac_unique_file"; then
1270 srcdir=..
1272 else
1273 ac_srcdir_defaulted=no
1275 if test ! -r "$srcdir/$ac_unique_file"; then
1276 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1277 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1279 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1280 ac_abs_confdir=`(
1281 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1282 pwd)`
1283 # When building in place, set srcdir=.
1284 if test "$ac_abs_confdir" = "$ac_pwd"; then
1285 srcdir=.
1287 # Remove unnecessary trailing slashes from srcdir.
1288 # Double slashes in file names in object file debugging info
1289 # mess up M-x gdb in Emacs.
1290 case $srcdir in
1291 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1292 esac
1293 for ac_var in $ac_precious_vars; do
1294 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1295 eval ac_env_${ac_var}_value=\$${ac_var}
1296 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1297 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1298 done
1301 # Report the --help message.
1303 if test "$ac_init_help" = "long"; then
1304 # Omit some internal or obsolete options to make the list less imposing.
1305 # This message is too long to be a string in the A/UX 3.1 sh.
1306 cat <<_ACEOF
1307 \`configure' configures libcc1 version-unused to adapt to many kinds of systems.
1309 Usage: $0 [OPTION]... [VAR=VALUE]...
1311 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1312 VAR=VALUE. See below for descriptions of some of the useful variables.
1314 Defaults for the options are specified in brackets.
1316 Configuration:
1317 -h, --help display this help and exit
1318 --help=short display options specific to this package
1319 --help=recursive display the short help of all the included packages
1320 -V, --version display version information and exit
1321 -q, --quiet, --silent do not print \`checking...' messages
1322 --cache-file=FILE cache test results in FILE [disabled]
1323 -C, --config-cache alias for \`--cache-file=config.cache'
1324 -n, --no-create do not create output files
1325 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1327 Installation directories:
1328 --prefix=PREFIX install architecture-independent files in PREFIX
1329 [$ac_default_prefix]
1330 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1331 [PREFIX]
1333 By default, \`make install' will install all the files in
1334 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1335 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1336 for instance \`--prefix=\$HOME'.
1338 For better control, use the options below.
1340 Fine tuning of the installation directories:
1341 --bindir=DIR user executables [EPREFIX/bin]
1342 --sbindir=DIR system admin executables [EPREFIX/sbin]
1343 --libexecdir=DIR program executables [EPREFIX/libexec]
1344 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1345 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1346 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1347 --libdir=DIR object code libraries [EPREFIX/lib]
1348 --includedir=DIR C header files [PREFIX/include]
1349 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1350 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1351 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1352 --infodir=DIR info documentation [DATAROOTDIR/info]
1353 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1354 --mandir=DIR man documentation [DATAROOTDIR/man]
1355 --docdir=DIR documentation root [DATAROOTDIR/doc/libcc1]
1356 --htmldir=DIR html documentation [DOCDIR]
1357 --dvidir=DIR dvi documentation [DOCDIR]
1358 --pdfdir=DIR pdf documentation [DOCDIR]
1359 --psdir=DIR ps documentation [DOCDIR]
1360 _ACEOF
1362 cat <<\_ACEOF
1364 Program names:
1365 --program-prefix=PREFIX prepend PREFIX to installed program names
1366 --program-suffix=SUFFIX append SUFFIX to installed program names
1367 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1369 System types:
1370 --build=BUILD configure for building on BUILD [guessed]
1371 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1372 --target=TARGET configure for building compilers for TARGET [HOST]
1373 _ACEOF
1376 if test -n "$ac_init_help"; then
1377 case $ac_init_help in
1378 short | recursive ) echo "Configuration of libcc1 version-unused:";;
1379 esac
1380 cat <<\_ACEOF
1382 Optional Features:
1383 --disable-option-checking ignore unrecognized --enable/--with options
1384 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1385 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1386 --disable-dependency-tracking speeds up one-time build
1387 --enable-dependency-tracking do not reject slow dependency extractors
1388 --enable-maintainer-mode enable make rules and dependencies not useful
1389 (and sometimes confusing) to the casual installer
1390 --enable-static[=PKGS] build static libraries [default=no]
1391 --enable-shared[=PKGS] build shared libraries [default=yes]
1392 --enable-fast-install[=PKGS]
1393 optimize for fast installation [default=yes]
1394 --disable-libtool-lock avoid locking (might break parallel builds)
1395 --enable-werror-always enable -Werror despite compiler version
1396 --enable-plugin enable plugin support
1398 Optional Packages:
1399 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1400 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1401 --with-build-libsubdir=DIR Directory where to find libraries for build system
1402 --with-pic try to use only PIC/non-PIC objects [default=use
1403 both]
1404 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1406 Some influential environment variables:
1407 CC C compiler command
1408 CFLAGS C compiler flags
1409 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1410 nonstandard directory <lib dir>
1411 LIBS libraries to pass to the linker, e.g. -l<library>
1412 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1413 you have headers in a nonstandard directory <include dir>
1414 CPP C preprocessor
1415 CXX C++ compiler command
1416 CXXFLAGS C++ compiler flags
1417 CXXCPP C++ preprocessor
1418 GMPINC How to find GMP include files
1420 Use these variables to override the choices made by `configure' or to help
1421 it to find libraries and programs with nonstandard names/locations.
1423 Report bugs to the package provider.
1424 _ACEOF
1425 ac_status=$?
1428 if test "$ac_init_help" = "recursive"; then
1429 # If there are subdirs, report their specific --help.
1430 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1431 test -d "$ac_dir" ||
1432 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1433 continue
1434 ac_builddir=.
1436 case "$ac_dir" in
1437 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1439 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1440 # A ".." for each directory in $ac_dir_suffix.
1441 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1442 case $ac_top_builddir_sub in
1443 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1444 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1445 esac ;;
1446 esac
1447 ac_abs_top_builddir=$ac_pwd
1448 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1449 # for backward compatibility:
1450 ac_top_builddir=$ac_top_build_prefix
1452 case $srcdir in
1453 .) # We are building in place.
1454 ac_srcdir=.
1455 ac_top_srcdir=$ac_top_builddir_sub
1456 ac_abs_top_srcdir=$ac_pwd ;;
1457 [\\/]* | ?:[\\/]* ) # Absolute name.
1458 ac_srcdir=$srcdir$ac_dir_suffix;
1459 ac_top_srcdir=$srcdir
1460 ac_abs_top_srcdir=$srcdir ;;
1461 *) # Relative name.
1462 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1463 ac_top_srcdir=$ac_top_build_prefix$srcdir
1464 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1465 esac
1466 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1468 cd "$ac_dir" || { ac_status=$?; continue; }
1469 # Check for guested configure.
1470 if test -f "$ac_srcdir/configure.gnu"; then
1471 echo &&
1472 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1473 elif test -f "$ac_srcdir/configure"; then
1474 echo &&
1475 $SHELL "$ac_srcdir/configure" --help=recursive
1476 else
1477 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1478 fi || ac_status=$?
1479 cd "$ac_pwd" || { ac_status=$?; break; }
1480 done
1483 test -n "$ac_init_help" && exit $ac_status
1484 if $ac_init_version; then
1485 cat <<\_ACEOF
1486 libcc1 configure version-unused
1487 generated by GNU Autoconf 2.64
1489 Copyright (C) 2009 Free Software Foundation, Inc.
1490 This configure script is free software; the Free Software Foundation
1491 gives unlimited permission to copy, distribute and modify it.
1492 _ACEOF
1493 exit
1496 ## ------------------------ ##
1497 ## Autoconf initialization. ##
1498 ## ------------------------ ##
1500 # ac_fn_c_try_compile LINENO
1501 # --------------------------
1502 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1503 ac_fn_c_try_compile ()
1505 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1506 rm -f conftest.$ac_objext
1507 if { { ac_try="$ac_compile"
1508 case "(($ac_try" in
1509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1510 *) ac_try_echo=$ac_try;;
1511 esac
1512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1513 $as_echo "$ac_try_echo"; } >&5
1514 (eval "$ac_compile") 2>conftest.err
1515 ac_status=$?
1516 if test -s conftest.err; then
1517 grep -v '^ *+' conftest.err >conftest.er1
1518 cat conftest.er1 >&5
1519 mv -f conftest.er1 conftest.err
1521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1522 test $ac_status = 0; } && {
1523 test -z "$ac_c_werror_flag" ||
1524 test ! -s conftest.err
1525 } && test -s conftest.$ac_objext; then :
1526 ac_retval=0
1527 else
1528 $as_echo "$as_me: failed program was:" >&5
1529 sed 's/^/| /' conftest.$ac_ext >&5
1531 ac_retval=1
1533 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1534 return $ac_retval
1536 } # ac_fn_c_try_compile
1538 # ac_fn_c_try_cpp LINENO
1539 # ----------------------
1540 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1541 ac_fn_c_try_cpp ()
1543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1544 if { { ac_try="$ac_cpp conftest.$ac_ext"
1545 case "(($ac_try" in
1546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1547 *) ac_try_echo=$ac_try;;
1548 esac
1549 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1550 $as_echo "$ac_try_echo"; } >&5
1551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1552 ac_status=$?
1553 if test -s conftest.err; then
1554 grep -v '^ *+' conftest.err >conftest.er1
1555 cat conftest.er1 >&5
1556 mv -f conftest.er1 conftest.err
1558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1559 test $ac_status = 0; } >/dev/null && {
1560 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1561 test ! -s conftest.err
1562 }; then :
1563 ac_retval=0
1564 else
1565 $as_echo "$as_me: failed program was:" >&5
1566 sed 's/^/| /' conftest.$ac_ext >&5
1568 ac_retval=1
1570 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1571 return $ac_retval
1573 } # ac_fn_c_try_cpp
1575 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1576 # -------------------------------------------------------
1577 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1578 # the include files in INCLUDES and setting the cache variable VAR
1579 # accordingly.
1580 ac_fn_c_check_header_mongrel ()
1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1585 $as_echo_n "checking for $2... " >&6; }
1586 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1587 $as_echo_n "(cached) " >&6
1589 eval ac_res=\$$3
1590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1591 $as_echo "$ac_res" >&6; }
1592 else
1593 # Is the header compilable?
1594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1595 $as_echo_n "checking $2 usability... " >&6; }
1596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1597 /* end confdefs.h. */
1599 #include <$2>
1600 _ACEOF
1601 if ac_fn_c_try_compile "$LINENO"; then :
1602 ac_header_compiler=yes
1603 else
1604 ac_header_compiler=no
1606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1608 $as_echo "$ac_header_compiler" >&6; }
1610 # Is the header present?
1611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1612 $as_echo_n "checking $2 presence... " >&6; }
1613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1614 /* end confdefs.h. */
1615 #include <$2>
1616 _ACEOF
1617 if ac_fn_c_try_cpp "$LINENO"; then :
1618 ac_header_preproc=yes
1619 else
1620 ac_header_preproc=no
1622 rm -f conftest.err conftest.$ac_ext
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1624 $as_echo "$ac_header_preproc" >&6; }
1626 # So? What about this header?
1627 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1628 yes:no: )
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1630 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1632 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1634 no:yes:* )
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1636 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1638 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1640 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1642 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1644 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1646 esac
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1648 $as_echo_n "checking for $2... " >&6; }
1649 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1650 $as_echo_n "(cached) " >&6
1651 else
1652 eval "$3=\$ac_header_compiler"
1654 eval ac_res=\$$3
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1656 $as_echo "$ac_res" >&6; }
1658 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1660 } # ac_fn_c_check_header_mongrel
1662 # ac_fn_c_try_run LINENO
1663 # ----------------------
1664 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1665 # that executables *can* be run.
1666 ac_fn_c_try_run ()
1668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669 if { { ac_try="$ac_link"
1670 case "(($ac_try" in
1671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1672 *) ac_try_echo=$ac_try;;
1673 esac
1674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675 $as_echo "$ac_try_echo"; } >&5
1676 (eval "$ac_link") 2>&5
1677 ac_status=$?
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1680 { { case "(($ac_try" in
1681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682 *) ac_try_echo=$ac_try;;
1683 esac
1684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685 $as_echo "$ac_try_echo"; } >&5
1686 (eval "$ac_try") 2>&5
1687 ac_status=$?
1688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689 test $ac_status = 0; }; }; then :
1690 ac_retval=0
1691 else
1692 $as_echo "$as_me: program exited with status $ac_status" >&5
1693 $as_echo "$as_me: failed program was:" >&5
1694 sed 's/^/| /' conftest.$ac_ext >&5
1696 ac_retval=$ac_status
1698 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1699 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1700 return $ac_retval
1702 } # ac_fn_c_try_run
1704 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1705 # -------------------------------------------------------
1706 # Tests whether HEADER exists and can be compiled using the include files in
1707 # INCLUDES, setting the cache variable VAR accordingly.
1708 ac_fn_c_check_header_compile ()
1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1712 $as_echo_n "checking for $2... " >&6; }
1713 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1714 $as_echo_n "(cached) " >&6
1715 else
1716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1717 /* end confdefs.h. */
1719 #include <$2>
1720 _ACEOF
1721 if ac_fn_c_try_compile "$LINENO"; then :
1722 eval "$3=yes"
1723 else
1724 eval "$3=no"
1726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1728 eval ac_res=\$$3
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1730 $as_echo "$ac_res" >&6; }
1731 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1733 } # ac_fn_c_check_header_compile
1735 # ac_fn_c_try_link LINENO
1736 # -----------------------
1737 # Try to link conftest.$ac_ext, and return whether this succeeded.
1738 ac_fn_c_try_link ()
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 rm -f conftest.$ac_objext conftest$ac_exeext
1742 if { { ac_try="$ac_link"
1743 case "(($ac_try" in
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1746 esac
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_link") 2>conftest.err
1750 ac_status=$?
1751 if test -s conftest.err; then
1752 grep -v '^ *+' conftest.err >conftest.er1
1753 cat conftest.er1 >&5
1754 mv -f conftest.er1 conftest.err
1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757 test $ac_status = 0; } && {
1758 test -z "$ac_c_werror_flag" ||
1759 test ! -s conftest.err
1760 } && test -s conftest$ac_exeext && {
1761 test "$cross_compiling" = yes ||
1762 $as_test_x conftest$ac_exeext
1763 }; then :
1764 ac_retval=0
1765 else
1766 $as_echo "$as_me: failed program was:" >&5
1767 sed 's/^/| /' conftest.$ac_ext >&5
1769 ac_retval=1
1771 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1772 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1773 # interfere with the next link command; also delete a directory that is
1774 # left behind by Apple's compiler. We do this before executing the actions.
1775 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1776 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1777 return $ac_retval
1779 } # ac_fn_c_try_link
1781 # ac_fn_c_check_func LINENO FUNC VAR
1782 # ----------------------------------
1783 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1784 ac_fn_c_check_func ()
1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1788 $as_echo_n "checking for $2... " >&6; }
1789 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1790 $as_echo_n "(cached) " >&6
1791 else
1792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1793 /* end confdefs.h. */
1794 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1796 #define $2 innocuous_$2
1798 /* System header to define __stub macros and hopefully few prototypes,
1799 which can conflict with char $2 (); below.
1800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1801 <limits.h> exists even on freestanding compilers. */
1803 #ifdef __STDC__
1804 # include <limits.h>
1805 #else
1806 # include <assert.h>
1807 #endif
1809 #undef $2
1811 /* Override any GCC internal prototype to avoid an error.
1812 Use char because int might match the return type of a GCC
1813 builtin and then its argument prototype would still apply. */
1814 #ifdef __cplusplus
1815 extern "C"
1816 #endif
1817 char $2 ();
1818 /* The GNU C library defines this for functions which it implements
1819 to always fail with ENOSYS. Some functions are actually named
1820 something starting with __ and the normal name is an alias. */
1821 #if defined __stub_$2 || defined __stub___$2
1822 choke me
1823 #endif
1826 main ()
1828 return $2 ();
1830 return 0;
1832 _ACEOF
1833 if ac_fn_c_try_link "$LINENO"; then :
1834 eval "$3=yes"
1835 else
1836 eval "$3=no"
1838 rm -f core conftest.err conftest.$ac_objext \
1839 conftest$ac_exeext conftest.$ac_ext
1841 eval ac_res=\$$3
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1843 $as_echo "$ac_res" >&6; }
1844 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1846 } # ac_fn_c_check_func
1848 # ac_fn_cxx_try_compile LINENO
1849 # ----------------------------
1850 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1851 ac_fn_cxx_try_compile ()
1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854 rm -f conftest.$ac_objext
1855 if { { ac_try="$ac_compile"
1856 case "(($ac_try" in
1857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1858 *) ac_try_echo=$ac_try;;
1859 esac
1860 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1861 $as_echo "$ac_try_echo"; } >&5
1862 (eval "$ac_compile") 2>conftest.err
1863 ac_status=$?
1864 if test -s conftest.err; then
1865 grep -v '^ *+' conftest.err >conftest.er1
1866 cat conftest.er1 >&5
1867 mv -f conftest.er1 conftest.err
1869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1870 test $ac_status = 0; } && {
1871 test -z "$ac_cxx_werror_flag" ||
1872 test ! -s conftest.err
1873 } && test -s conftest.$ac_objext; then :
1874 ac_retval=0
1875 else
1876 $as_echo "$as_me: failed program was:" >&5
1877 sed 's/^/| /' conftest.$ac_ext >&5
1879 ac_retval=1
1881 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1882 return $ac_retval
1884 } # ac_fn_cxx_try_compile
1886 # ac_fn_cxx_try_cpp LINENO
1887 # ------------------------
1888 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1889 ac_fn_cxx_try_cpp ()
1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892 if { { ac_try="$ac_cpp conftest.$ac_ext"
1893 case "(($ac_try" in
1894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1895 *) ac_try_echo=$ac_try;;
1896 esac
1897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1898 $as_echo "$ac_try_echo"; } >&5
1899 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1900 ac_status=$?
1901 if test -s conftest.err; then
1902 grep -v '^ *+' conftest.err >conftest.er1
1903 cat conftest.er1 >&5
1904 mv -f conftest.er1 conftest.err
1906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1907 test $ac_status = 0; } >/dev/null && {
1908 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1909 test ! -s conftest.err
1910 }; then :
1911 ac_retval=0
1912 else
1913 $as_echo "$as_me: failed program was:" >&5
1914 sed 's/^/| /' conftest.$ac_ext >&5
1916 ac_retval=1
1918 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1919 return $ac_retval
1921 } # ac_fn_cxx_try_cpp
1923 # ac_fn_cxx_try_link LINENO
1924 # -------------------------
1925 # Try to link conftest.$ac_ext, and return whether this succeeded.
1926 ac_fn_cxx_try_link ()
1928 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929 rm -f conftest.$ac_objext conftest$ac_exeext
1930 if { { ac_try="$ac_link"
1931 case "(($ac_try" in
1932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1933 *) ac_try_echo=$ac_try;;
1934 esac
1935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1936 $as_echo "$ac_try_echo"; } >&5
1937 (eval "$ac_link") 2>conftest.err
1938 ac_status=$?
1939 if test -s conftest.err; then
1940 grep -v '^ *+' conftest.err >conftest.er1
1941 cat conftest.er1 >&5
1942 mv -f conftest.er1 conftest.err
1944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1945 test $ac_status = 0; } && {
1946 test -z "$ac_cxx_werror_flag" ||
1947 test ! -s conftest.err
1948 } && test -s conftest$ac_exeext && {
1949 test "$cross_compiling" = yes ||
1950 $as_test_x conftest$ac_exeext
1951 }; then :
1952 ac_retval=0
1953 else
1954 $as_echo "$as_me: failed program was:" >&5
1955 sed 's/^/| /' conftest.$ac_ext >&5
1957 ac_retval=1
1959 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1960 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1961 # interfere with the next link command; also delete a directory that is
1962 # left behind by Apple's compiler. We do this before executing the actions.
1963 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1964 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1965 return $ac_retval
1967 } # ac_fn_cxx_try_link
1969 # ac_fn_c_check_decl LINENO SYMBOL VAR
1970 # ------------------------------------
1971 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1972 ac_fn_c_check_decl ()
1974 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1975 as_decl_name=`echo $2|sed 's/ *(.*//'`
1976 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1978 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1979 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1980 $as_echo_n "(cached) " >&6
1981 else
1982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983 /* end confdefs.h. */
1986 main ()
1988 #ifndef $as_decl_name
1989 #ifdef __cplusplus
1990 (void) $as_decl_use;
1991 #else
1992 (void) $as_decl_name;
1993 #endif
1994 #endif
1997 return 0;
1999 _ACEOF
2000 if ac_fn_c_try_compile "$LINENO"; then :
2001 eval "$3=yes"
2002 else
2003 eval "$3=no"
2005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2007 eval ac_res=\$$3
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2009 $as_echo "$ac_res" >&6; }
2010 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2012 } # ac_fn_c_check_decl
2013 cat >config.log <<_ACEOF
2014 This file contains any messages produced by compilers while
2015 running configure, to aid debugging if configure makes a mistake.
2017 It was created by libcc1 $as_me version-unused, which was
2018 generated by GNU Autoconf 2.64. Invocation command line was
2020 $ $0 $@
2022 _ACEOF
2023 exec 5>>config.log
2025 cat <<_ASUNAME
2026 ## --------- ##
2027 ## Platform. ##
2028 ## --------- ##
2030 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2031 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2032 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2033 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2034 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2036 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2037 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2039 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2040 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2041 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2042 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2043 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2044 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2045 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2047 _ASUNAME
2049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2050 for as_dir in $PATH
2052 IFS=$as_save_IFS
2053 test -z "$as_dir" && as_dir=.
2054 $as_echo "PATH: $as_dir"
2055 done
2056 IFS=$as_save_IFS
2058 } >&5
2060 cat >&5 <<_ACEOF
2063 ## ----------- ##
2064 ## Core tests. ##
2065 ## ----------- ##
2067 _ACEOF
2070 # Keep a trace of the command line.
2071 # Strip out --no-create and --no-recursion so they do not pile up.
2072 # Strip out --silent because we don't want to record it for future runs.
2073 # Also quote any args containing shell meta-characters.
2074 # Make two passes to allow for proper duplicate-argument suppression.
2075 ac_configure_args=
2076 ac_configure_args0=
2077 ac_configure_args1=
2078 ac_must_keep_next=false
2079 for ac_pass in 1 2
2081 for ac_arg
2083 case $ac_arg in
2084 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2086 | -silent | --silent | --silen | --sile | --sil)
2087 continue ;;
2088 *\'*)
2089 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2090 esac
2091 case $ac_pass in
2092 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2094 as_fn_append ac_configure_args1 " '$ac_arg'"
2095 if test $ac_must_keep_next = true; then
2096 ac_must_keep_next=false # Got value, back to normal.
2097 else
2098 case $ac_arg in
2099 *=* | --config-cache | -C | -disable-* | --disable-* \
2100 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2101 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2102 | -with-* | --with-* | -without-* | --without-* | --x)
2103 case "$ac_configure_args0 " in
2104 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2105 esac
2107 -* ) ac_must_keep_next=true ;;
2108 esac
2110 as_fn_append ac_configure_args " '$ac_arg'"
2112 esac
2113 done
2114 done
2115 { ac_configure_args0=; unset ac_configure_args0;}
2116 { ac_configure_args1=; unset ac_configure_args1;}
2118 # When interrupted or exit'd, cleanup temporary files, and complete
2119 # config.log. We remove comments because anyway the quotes in there
2120 # would cause problems or look ugly.
2121 # WARNING: Use '\'' to represent an apostrophe within the trap.
2122 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2123 trap 'exit_status=$?
2124 # Save into config.log some information that might help in debugging.
2126 echo
2128 cat <<\_ASBOX
2129 ## ---------------- ##
2130 ## Cache variables. ##
2131 ## ---------------- ##
2132 _ASBOX
2133 echo
2134 # The following way of writing the cache mishandles newlines in values,
2136 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2137 eval ac_val=\$$ac_var
2138 case $ac_val in #(
2139 *${as_nl}*)
2140 case $ac_var in #(
2141 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2142 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2143 esac
2144 case $ac_var in #(
2145 _ | IFS | as_nl) ;; #(
2146 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2147 *) { eval $ac_var=; unset $ac_var;} ;;
2148 esac ;;
2149 esac
2150 done
2151 (set) 2>&1 |
2152 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2153 *${as_nl}ac_space=\ *)
2154 sed -n \
2155 "s/'\''/'\''\\\\'\'''\''/g;
2156 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2157 ;; #(
2159 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2161 esac |
2162 sort
2164 echo
2166 cat <<\_ASBOX
2167 ## ----------------- ##
2168 ## Output variables. ##
2169 ## ----------------- ##
2170 _ASBOX
2171 echo
2172 for ac_var in $ac_subst_vars
2174 eval ac_val=\$$ac_var
2175 case $ac_val in
2176 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2177 esac
2178 $as_echo "$ac_var='\''$ac_val'\''"
2179 done | sort
2180 echo
2182 if test -n "$ac_subst_files"; then
2183 cat <<\_ASBOX
2184 ## ------------------- ##
2185 ## File substitutions. ##
2186 ## ------------------- ##
2187 _ASBOX
2188 echo
2189 for ac_var in $ac_subst_files
2191 eval ac_val=\$$ac_var
2192 case $ac_val in
2193 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2194 esac
2195 $as_echo "$ac_var='\''$ac_val'\''"
2196 done | sort
2197 echo
2200 if test -s confdefs.h; then
2201 cat <<\_ASBOX
2202 ## ----------- ##
2203 ## confdefs.h. ##
2204 ## ----------- ##
2205 _ASBOX
2206 echo
2207 cat confdefs.h
2208 echo
2210 test "$ac_signal" != 0 &&
2211 $as_echo "$as_me: caught signal $ac_signal"
2212 $as_echo "$as_me: exit $exit_status"
2213 } >&5
2214 rm -f core *.core core.conftest.* &&
2215 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2216 exit $exit_status
2218 for ac_signal in 1 2 13 15; do
2219 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2220 done
2221 ac_signal=0
2223 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2224 rm -f -r conftest* confdefs.h
2226 $as_echo "/* confdefs.h */" > confdefs.h
2228 # Predefined preprocessor variables.
2230 cat >>confdefs.h <<_ACEOF
2231 #define PACKAGE_NAME "$PACKAGE_NAME"
2232 _ACEOF
2234 cat >>confdefs.h <<_ACEOF
2235 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2236 _ACEOF
2238 cat >>confdefs.h <<_ACEOF
2239 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2240 _ACEOF
2242 cat >>confdefs.h <<_ACEOF
2243 #define PACKAGE_STRING "$PACKAGE_STRING"
2244 _ACEOF
2246 cat >>confdefs.h <<_ACEOF
2247 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2248 _ACEOF
2250 cat >>confdefs.h <<_ACEOF
2251 #define PACKAGE_URL "$PACKAGE_URL"
2252 _ACEOF
2255 # Let the site file select an alternate cache file if it wants to.
2256 # Prefer an explicitly selected file to automatically selected ones.
2257 ac_site_file1=NONE
2258 ac_site_file2=NONE
2259 if test -n "$CONFIG_SITE"; then
2260 ac_site_file1=$CONFIG_SITE
2261 elif test "x$prefix" != xNONE; then
2262 ac_site_file1=$prefix/share/config.site
2263 ac_site_file2=$prefix/etc/config.site
2264 else
2265 ac_site_file1=$ac_default_prefix/share/config.site
2266 ac_site_file2=$ac_default_prefix/etc/config.site
2268 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2270 test "x$ac_site_file" = xNONE && continue
2271 if test -r "$ac_site_file"; then
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2273 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2274 sed 's/^/| /' "$ac_site_file" >&5
2275 . "$ac_site_file"
2277 done
2279 if test -r "$cache_file"; then
2280 # Some versions of bash will fail to source /dev/null (special
2281 # files actually), so we avoid doing that.
2282 if test -f "$cache_file"; then
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2284 $as_echo "$as_me: loading cache $cache_file" >&6;}
2285 case $cache_file in
2286 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2287 *) . "./$cache_file";;
2288 esac
2290 else
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2292 $as_echo "$as_me: creating cache $cache_file" >&6;}
2293 >$cache_file
2296 # Check that the precious variables saved in the cache have kept the same
2297 # value.
2298 ac_cache_corrupted=false
2299 for ac_var in $ac_precious_vars; do
2300 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2301 eval ac_new_set=\$ac_env_${ac_var}_set
2302 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2303 eval ac_new_val=\$ac_env_${ac_var}_value
2304 case $ac_old_set,$ac_new_set in
2305 set,)
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2307 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2308 ac_cache_corrupted=: ;;
2309 ,set)
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2311 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2312 ac_cache_corrupted=: ;;
2313 ,);;
2315 if test "x$ac_old_val" != "x$ac_new_val"; then
2316 # differences in whitespace do not lead to failure.
2317 ac_old_val_w=`echo x $ac_old_val`
2318 ac_new_val_w=`echo x $ac_new_val`
2319 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2321 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2322 ac_cache_corrupted=:
2323 else
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2325 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2326 eval $ac_var=\$ac_old_val
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2329 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2331 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2332 fi;;
2333 esac
2334 # Pass precious variables to config.status.
2335 if test "$ac_new_set" = set; then
2336 case $ac_new_val in
2337 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2338 *) ac_arg=$ac_var=$ac_new_val ;;
2339 esac
2340 case " $ac_configure_args " in
2341 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2342 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2343 esac
2345 done
2346 if $ac_cache_corrupted; then
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2348 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2350 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2351 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2353 ## -------------------- ##
2354 ## Main body of script. ##
2355 ## -------------------- ##
2357 ac_ext=c
2358 ac_cpp='$CPP $CPPFLAGS'
2359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2368 ac_config_headers="$ac_config_headers cc1plugin-config.h"
2371 ac_aux_dir=
2372 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2373 for ac_t in install-sh install.sh shtool; do
2374 if test -f "$ac_dir/$ac_t"; then
2375 ac_aux_dir=$ac_dir
2376 ac_install_sh="$ac_aux_dir/$ac_t -c"
2377 break 2
2379 done
2380 done
2381 if test -z "$ac_aux_dir"; then
2382 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2385 # These three variables are undocumented and unsupported,
2386 # and are intended to be withdrawn in a future Autoconf release.
2387 # They can cause serious problems if a builder's source tree is in a directory
2388 # whose full name contains unusual characters.
2389 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2390 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2391 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2394 # Make sure we can run config.sub.
2395 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2396 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2399 $as_echo_n "checking build system type... " >&6; }
2400 if test "${ac_cv_build+set}" = set; then :
2401 $as_echo_n "(cached) " >&6
2402 else
2403 ac_build_alias=$build_alias
2404 test "x$ac_build_alias" = x &&
2405 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2406 test "x$ac_build_alias" = x &&
2407 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2408 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2409 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2413 $as_echo "$ac_cv_build" >&6; }
2414 case $ac_cv_build in
2415 *-*-*) ;;
2416 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2417 esac
2418 build=$ac_cv_build
2419 ac_save_IFS=$IFS; IFS='-'
2420 set x $ac_cv_build
2421 shift
2422 build_cpu=$1
2423 build_vendor=$2
2424 shift; shift
2425 # Remember, the first character of IFS is used to create $*,
2426 # except with old shells:
2427 build_os=$*
2428 IFS=$ac_save_IFS
2429 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2433 $as_echo_n "checking host system type... " >&6; }
2434 if test "${ac_cv_host+set}" = set; then :
2435 $as_echo_n "(cached) " >&6
2436 else
2437 if test "x$host_alias" = x; then
2438 ac_cv_host=$ac_cv_build
2439 else
2440 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2441 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2446 $as_echo "$ac_cv_host" >&6; }
2447 case $ac_cv_host in
2448 *-*-*) ;;
2449 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2450 esac
2451 host=$ac_cv_host
2452 ac_save_IFS=$IFS; IFS='-'
2453 set x $ac_cv_host
2454 shift
2455 host_cpu=$1
2456 host_vendor=$2
2457 shift; shift
2458 # Remember, the first character of IFS is used to create $*,
2459 # except with old shells:
2460 host_os=$*
2461 IFS=$ac_save_IFS
2462 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2466 $as_echo_n "checking target system type... " >&6; }
2467 if test "${ac_cv_target+set}" = set; then :
2468 $as_echo_n "(cached) " >&6
2469 else
2470 if test "x$target_alias" = x; then
2471 ac_cv_target=$ac_cv_host
2472 else
2473 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2474 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2479 $as_echo "$ac_cv_target" >&6; }
2480 case $ac_cv_target in
2481 *-*-*) ;;
2482 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2483 esac
2484 target=$ac_cv_target
2485 ac_save_IFS=$IFS; IFS='-'
2486 set x $ac_cv_target
2487 shift
2488 target_cpu=$1
2489 target_vendor=$2
2490 shift; shift
2491 # Remember, the first character of IFS is used to create $*,
2492 # except with old shells:
2493 target_os=$*
2494 IFS=$ac_save_IFS
2495 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2498 # The aliases save the names the user supplied, while $host etc.
2499 # will get canonicalized.
2500 test -n "$target_alias" &&
2501 test "$program_prefix$program_suffix$program_transform_name" = \
2502 NONENONEs,x,x, &&
2503 program_prefix=${target_alias}-
2505 ac_ext=c
2506 ac_cpp='$CPP $CPPFLAGS'
2507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2510 if test -n "$ac_tool_prefix"; then
2511 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2512 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2514 $as_echo_n "checking for $ac_word... " >&6; }
2515 if test "${ac_cv_prog_CC+set}" = set; then :
2516 $as_echo_n "(cached) " >&6
2517 else
2518 if test -n "$CC"; then
2519 ac_cv_prog_CC="$CC" # Let the user override the test.
2520 else
2521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522 for as_dir in $PATH
2524 IFS=$as_save_IFS
2525 test -z "$as_dir" && as_dir=.
2526 for ac_exec_ext in '' $ac_executable_extensions; do
2527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2528 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2530 break 2
2532 done
2533 done
2534 IFS=$as_save_IFS
2538 CC=$ac_cv_prog_CC
2539 if test -n "$CC"; then
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2541 $as_echo "$CC" >&6; }
2542 else
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2544 $as_echo "no" >&6; }
2549 if test -z "$ac_cv_prog_CC"; then
2550 ac_ct_CC=$CC
2551 # Extract the first word of "gcc", so it can be a program name with args.
2552 set dummy gcc; ac_word=$2
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2554 $as_echo_n "checking for $ac_word... " >&6; }
2555 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2556 $as_echo_n "(cached) " >&6
2557 else
2558 if test -n "$ac_ct_CC"; then
2559 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2560 else
2561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2562 for as_dir in $PATH
2564 IFS=$as_save_IFS
2565 test -z "$as_dir" && as_dir=.
2566 for ac_exec_ext in '' $ac_executable_extensions; do
2567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2568 ac_cv_prog_ac_ct_CC="gcc"
2569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2570 break 2
2572 done
2573 done
2574 IFS=$as_save_IFS
2578 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2579 if test -n "$ac_ct_CC"; then
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2581 $as_echo "$ac_ct_CC" >&6; }
2582 else
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2584 $as_echo "no" >&6; }
2587 if test "x$ac_ct_CC" = x; then
2588 CC=""
2589 else
2590 case $cross_compiling:$ac_tool_warned in
2591 yes:)
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2593 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2594 ac_tool_warned=yes ;;
2595 esac
2596 CC=$ac_ct_CC
2598 else
2599 CC="$ac_cv_prog_CC"
2602 if test -z "$CC"; then
2603 if test -n "$ac_tool_prefix"; then
2604 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2605 set dummy ${ac_tool_prefix}cc; ac_word=$2
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2607 $as_echo_n "checking for $ac_word... " >&6; }
2608 if test "${ac_cv_prog_CC+set}" = set; then :
2609 $as_echo_n "(cached) " >&6
2610 else
2611 if test -n "$CC"; then
2612 ac_cv_prog_CC="$CC" # Let the user override the test.
2613 else
2614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615 for as_dir in $PATH
2617 IFS=$as_save_IFS
2618 test -z "$as_dir" && as_dir=.
2619 for ac_exec_ext in '' $ac_executable_extensions; do
2620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2621 ac_cv_prog_CC="${ac_tool_prefix}cc"
2622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2623 break 2
2625 done
2626 done
2627 IFS=$as_save_IFS
2631 CC=$ac_cv_prog_CC
2632 if test -n "$CC"; then
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2634 $as_echo "$CC" >&6; }
2635 else
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2637 $as_echo "no" >&6; }
2643 if test -z "$CC"; then
2644 # Extract the first word of "cc", so it can be a program name with args.
2645 set dummy cc; ac_word=$2
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2647 $as_echo_n "checking for $ac_word... " >&6; }
2648 if test "${ac_cv_prog_CC+set}" = set; then :
2649 $as_echo_n "(cached) " >&6
2650 else
2651 if test -n "$CC"; then
2652 ac_cv_prog_CC="$CC" # Let the user override the test.
2653 else
2654 ac_prog_rejected=no
2655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656 for as_dir in $PATH
2658 IFS=$as_save_IFS
2659 test -z "$as_dir" && as_dir=.
2660 for ac_exec_ext in '' $ac_executable_extensions; do
2661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2662 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2663 ac_prog_rejected=yes
2664 continue
2666 ac_cv_prog_CC="cc"
2667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2668 break 2
2670 done
2671 done
2672 IFS=$as_save_IFS
2674 if test $ac_prog_rejected = yes; then
2675 # We found a bogon in the path, so make sure we never use it.
2676 set dummy $ac_cv_prog_CC
2677 shift
2678 if test $# != 0; then
2679 # We chose a different compiler from the bogus one.
2680 # However, it has the same basename, so the bogon will be chosen
2681 # first if we set CC to just the basename; use the full file name.
2682 shift
2683 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2688 CC=$ac_cv_prog_CC
2689 if test -n "$CC"; then
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2691 $as_echo "$CC" >&6; }
2692 else
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2694 $as_echo "no" >&6; }
2699 if test -z "$CC"; then
2700 if test -n "$ac_tool_prefix"; then
2701 for ac_prog in cl.exe
2703 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2704 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2706 $as_echo_n "checking for $ac_word... " >&6; }
2707 if test "${ac_cv_prog_CC+set}" = set; then :
2708 $as_echo_n "(cached) " >&6
2709 else
2710 if test -n "$CC"; then
2711 ac_cv_prog_CC="$CC" # Let the user override the test.
2712 else
2713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714 for as_dir in $PATH
2716 IFS=$as_save_IFS
2717 test -z "$as_dir" && as_dir=.
2718 for ac_exec_ext in '' $ac_executable_extensions; do
2719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2720 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2722 break 2
2724 done
2725 done
2726 IFS=$as_save_IFS
2730 CC=$ac_cv_prog_CC
2731 if test -n "$CC"; then
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2733 $as_echo "$CC" >&6; }
2734 else
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2736 $as_echo "no" >&6; }
2740 test -n "$CC" && break
2741 done
2743 if test -z "$CC"; then
2744 ac_ct_CC=$CC
2745 for ac_prog in cl.exe
2747 # Extract the first word of "$ac_prog", so it can be a program name with args.
2748 set dummy $ac_prog; ac_word=$2
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2750 $as_echo_n "checking for $ac_word... " >&6; }
2751 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2752 $as_echo_n "(cached) " >&6
2753 else
2754 if test -n "$ac_ct_CC"; then
2755 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2756 else
2757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2758 for as_dir in $PATH
2760 IFS=$as_save_IFS
2761 test -z "$as_dir" && as_dir=.
2762 for ac_exec_ext in '' $ac_executable_extensions; do
2763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2764 ac_cv_prog_ac_ct_CC="$ac_prog"
2765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2766 break 2
2768 done
2769 done
2770 IFS=$as_save_IFS
2774 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2775 if test -n "$ac_ct_CC"; then
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2777 $as_echo "$ac_ct_CC" >&6; }
2778 else
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2780 $as_echo "no" >&6; }
2784 test -n "$ac_ct_CC" && break
2785 done
2787 if test "x$ac_ct_CC" = x; then
2788 CC=""
2789 else
2790 case $cross_compiling:$ac_tool_warned in
2791 yes:)
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2793 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2794 ac_tool_warned=yes ;;
2795 esac
2796 CC=$ac_ct_CC
2803 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2804 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2805 as_fn_error "no acceptable C compiler found in \$PATH
2806 See \`config.log' for more details." "$LINENO" 5; }
2808 # Provide some information about the compiler.
2809 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2810 set X $ac_compile
2811 ac_compiler=$2
2812 for ac_option in --version -v -V -qversion; do
2813 { { ac_try="$ac_compiler $ac_option >&5"
2814 case "(($ac_try" in
2815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2816 *) ac_try_echo=$ac_try;;
2817 esac
2818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2819 $as_echo "$ac_try_echo"; } >&5
2820 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2821 ac_status=$?
2822 if test -s conftest.err; then
2823 sed '10a\
2824 ... rest of stderr output deleted ...
2825 10q' conftest.err >conftest.er1
2826 cat conftest.er1 >&5
2827 rm -f conftest.er1 conftest.err
2829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2830 test $ac_status = 0; }
2831 done
2833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2834 /* end confdefs.h. */
2837 main ()
2841 return 0;
2843 _ACEOF
2844 ac_clean_files_save=$ac_clean_files
2845 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2846 # Try to create an executable without -o first, disregard a.out.
2847 # It will help us diagnose broken compilers, and finding out an intuition
2848 # of exeext.
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2850 $as_echo_n "checking for C compiler default output file name... " >&6; }
2851 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2853 # The possible output files:
2854 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2856 ac_rmfiles=
2857 for ac_file in $ac_files
2859 case $ac_file in
2860 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2861 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2862 esac
2863 done
2864 rm -f $ac_rmfiles
2866 if { { ac_try="$ac_link_default"
2867 case "(($ac_try" in
2868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2869 *) ac_try_echo=$ac_try;;
2870 esac
2871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2872 $as_echo "$ac_try_echo"; } >&5
2873 (eval "$ac_link_default") 2>&5
2874 ac_status=$?
2875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2876 test $ac_status = 0; }; then :
2877 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2878 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2879 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2880 # so that the user can short-circuit this test for compilers unknown to
2881 # Autoconf.
2882 for ac_file in $ac_files ''
2884 test -f "$ac_file" || continue
2885 case $ac_file in
2886 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2888 [ab].out )
2889 # We found the default executable, but exeext='' is most
2890 # certainly right.
2891 break;;
2892 *.* )
2893 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2894 then :; else
2895 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2897 # We set ac_cv_exeext here because the later test for it is not
2898 # safe: cross compilers may not add the suffix if given an `-o'
2899 # argument, so we may need to know it at that point already.
2900 # Even if this section looks crufty: it has the advantage of
2901 # actually working.
2902 break;;
2904 break;;
2905 esac
2906 done
2907 test "$ac_cv_exeext" = no && ac_cv_exeext=
2909 else
2910 ac_file=''
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2913 $as_echo "$ac_file" >&6; }
2914 if test -z "$ac_file"; then :
2915 $as_echo "$as_me: failed program was:" >&5
2916 sed 's/^/| /' conftest.$ac_ext >&5
2918 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2919 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2920 { as_fn_set_status 77
2921 as_fn_error "C compiler cannot create executables
2922 See \`config.log' for more details." "$LINENO" 5; }; }
2924 ac_exeext=$ac_cv_exeext
2926 # Check that the compiler produces executables we can run. If not, either
2927 # the compiler is broken, or we cross compile.
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2929 $as_echo_n "checking whether the C compiler works... " >&6; }
2930 # If not cross compiling, check that we can run a simple program.
2931 if test "$cross_compiling" != yes; then
2932 if { ac_try='./$ac_file'
2933 { { case "(($ac_try" in
2934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2935 *) ac_try_echo=$ac_try;;
2936 esac
2937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2938 $as_echo "$ac_try_echo"; } >&5
2939 (eval "$ac_try") 2>&5
2940 ac_status=$?
2941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2942 test $ac_status = 0; }; }; then
2943 cross_compiling=no
2944 else
2945 if test "$cross_compiling" = maybe; then
2946 cross_compiling=yes
2947 else
2948 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2949 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2950 as_fn_error "cannot run C compiled programs.
2951 If you meant to cross compile, use \`--host'.
2952 See \`config.log' for more details." "$LINENO" 5; }
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2957 $as_echo "yes" >&6; }
2959 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2960 ac_clean_files=$ac_clean_files_save
2961 # Check that the compiler produces executables we can run. If not, either
2962 # the compiler is broken, or we cross compile.
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2964 $as_echo_n "checking whether we are cross compiling... " >&6; }
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2966 $as_echo "$cross_compiling" >&6; }
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2969 $as_echo_n "checking for suffix of executables... " >&6; }
2970 if { { ac_try="$ac_link"
2971 case "(($ac_try" in
2972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973 *) ac_try_echo=$ac_try;;
2974 esac
2975 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2976 $as_echo "$ac_try_echo"; } >&5
2977 (eval "$ac_link") 2>&5
2978 ac_status=$?
2979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2980 test $ac_status = 0; }; then :
2981 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2982 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2983 # work properly (i.e., refer to `conftest.exe'), while it won't with
2984 # `rm'.
2985 for ac_file in conftest.exe conftest conftest.*; do
2986 test -f "$ac_file" || continue
2987 case $ac_file in
2988 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2989 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2990 break;;
2991 * ) break;;
2992 esac
2993 done
2994 else
2995 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2996 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2997 as_fn_error "cannot compute suffix of executables: cannot compile and link
2998 See \`config.log' for more details." "$LINENO" 5; }
3000 rm -f conftest$ac_cv_exeext
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3002 $as_echo "$ac_cv_exeext" >&6; }
3004 rm -f conftest.$ac_ext
3005 EXEEXT=$ac_cv_exeext
3006 ac_exeext=$EXEEXT
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3008 $as_echo_n "checking for suffix of object files... " >&6; }
3009 if test "${ac_cv_objext+set}" = set; then :
3010 $as_echo_n "(cached) " >&6
3011 else
3012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3013 /* end confdefs.h. */
3016 main ()
3020 return 0;
3022 _ACEOF
3023 rm -f conftest.o conftest.obj
3024 if { { ac_try="$ac_compile"
3025 case "(($ac_try" in
3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027 *) ac_try_echo=$ac_try;;
3028 esac
3029 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3030 $as_echo "$ac_try_echo"; } >&5
3031 (eval "$ac_compile") 2>&5
3032 ac_status=$?
3033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3034 test $ac_status = 0; }; then :
3035 for ac_file in conftest.o conftest.obj conftest.*; do
3036 test -f "$ac_file" || continue;
3037 case $ac_file in
3038 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3039 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3040 break;;
3041 esac
3042 done
3043 else
3044 $as_echo "$as_me: failed program was:" >&5
3045 sed 's/^/| /' conftest.$ac_ext >&5
3047 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3048 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3049 as_fn_error "cannot compute suffix of object files: cannot compile
3050 See \`config.log' for more details." "$LINENO" 5; }
3052 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3055 $as_echo "$ac_cv_objext" >&6; }
3056 OBJEXT=$ac_cv_objext
3057 ac_objext=$OBJEXT
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3059 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3060 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3061 $as_echo_n "(cached) " >&6
3062 else
3063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3064 /* end confdefs.h. */
3067 main ()
3069 #ifndef __GNUC__
3070 choke me
3071 #endif
3074 return 0;
3076 _ACEOF
3077 if ac_fn_c_try_compile "$LINENO"; then :
3078 ac_compiler_gnu=yes
3079 else
3080 ac_compiler_gnu=no
3082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3083 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3087 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3088 if test $ac_compiler_gnu = yes; then
3089 GCC=yes
3090 else
3091 GCC=
3093 ac_test_CFLAGS=${CFLAGS+set}
3094 ac_save_CFLAGS=$CFLAGS
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3096 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3097 if test "${ac_cv_prog_cc_g+set}" = set; then :
3098 $as_echo_n "(cached) " >&6
3099 else
3100 ac_save_c_werror_flag=$ac_c_werror_flag
3101 ac_c_werror_flag=yes
3102 ac_cv_prog_cc_g=no
3103 CFLAGS="-g"
3104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3105 /* end confdefs.h. */
3108 main ()
3112 return 0;
3114 _ACEOF
3115 if ac_fn_c_try_compile "$LINENO"; then :
3116 ac_cv_prog_cc_g=yes
3117 else
3118 CFLAGS=""
3119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3120 /* end confdefs.h. */
3123 main ()
3127 return 0;
3129 _ACEOF
3130 if ac_fn_c_try_compile "$LINENO"; then :
3132 else
3133 ac_c_werror_flag=$ac_save_c_werror_flag
3134 CFLAGS="-g"
3135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3136 /* end confdefs.h. */
3139 main ()
3143 return 0;
3145 _ACEOF
3146 if ac_fn_c_try_compile "$LINENO"; then :
3147 ac_cv_prog_cc_g=yes
3149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3154 ac_c_werror_flag=$ac_save_c_werror_flag
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3157 $as_echo "$ac_cv_prog_cc_g" >&6; }
3158 if test "$ac_test_CFLAGS" = set; then
3159 CFLAGS=$ac_save_CFLAGS
3160 elif test $ac_cv_prog_cc_g = yes; then
3161 if test "$GCC" = yes; then
3162 CFLAGS="-g -O2"
3163 else
3164 CFLAGS="-g"
3166 else
3167 if test "$GCC" = yes; then
3168 CFLAGS="-O2"
3169 else
3170 CFLAGS=
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3174 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3175 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3176 $as_echo_n "(cached) " >&6
3177 else
3178 ac_cv_prog_cc_c89=no
3179 ac_save_CC=$CC
3180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3181 /* end confdefs.h. */
3182 #include <stdarg.h>
3183 #include <stdio.h>
3184 #include <sys/types.h>
3185 #include <sys/stat.h>
3186 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3187 struct buf { int x; };
3188 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3189 static char *e (p, i)
3190 char **p;
3191 int i;
3193 return p[i];
3195 static char *f (char * (*g) (char **, int), char **p, ...)
3197 char *s;
3198 va_list v;
3199 va_start (v,p);
3200 s = g (p, va_arg (v,int));
3201 va_end (v);
3202 return s;
3205 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3206 function prototypes and stuff, but not '\xHH' hex character constants.
3207 These don't provoke an error unfortunately, instead are silently treated
3208 as 'x'. The following induces an error, until -std is added to get
3209 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3210 array size at least. It's necessary to write '\x00'==0 to get something
3211 that's true only with -std. */
3212 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3214 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3215 inside strings and character constants. */
3216 #define FOO(x) 'x'
3217 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3219 int test (int i, double x);
3220 struct s1 {int (*f) (int a);};
3221 struct s2 {int (*f) (double a);};
3222 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3223 int argc;
3224 char **argv;
3226 main ()
3228 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3230 return 0;
3232 _ACEOF
3233 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3234 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3236 CC="$ac_save_CC $ac_arg"
3237 if ac_fn_c_try_compile "$LINENO"; then :
3238 ac_cv_prog_cc_c89=$ac_arg
3240 rm -f core conftest.err conftest.$ac_objext
3241 test "x$ac_cv_prog_cc_c89" != "xno" && break
3242 done
3243 rm -f conftest.$ac_ext
3244 CC=$ac_save_CC
3247 # AC_CACHE_VAL
3248 case "x$ac_cv_prog_cc_c89" in
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3251 $as_echo "none needed" >&6; } ;;
3252 xno)
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3254 $as_echo "unsupported" >&6; } ;;
3256 CC="$CC $ac_cv_prog_cc_c89"
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3258 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3259 esac
3260 if test "x$ac_cv_prog_cc_c89" != xno; then :
3264 ac_ext=c
3265 ac_cpp='$CPP $CPPFLAGS'
3266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3271 ac_ext=c
3272 ac_cpp='$CPP $CPPFLAGS'
3273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3277 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3278 # On Suns, sometimes $CPP names a directory.
3279 if test -n "$CPP" && test -d "$CPP"; then
3280 CPP=
3282 if test -z "$CPP"; then
3283 if test "${ac_cv_prog_CPP+set}" = set; then :
3284 $as_echo_n "(cached) " >&6
3285 else
3286 # Double quotes because CPP needs to be expanded
3287 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3289 ac_preproc_ok=false
3290 for ac_c_preproc_warn_flag in '' yes
3292 # Use a header file that comes with gcc, so configuring glibc
3293 # with a fresh cross-compiler works.
3294 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3295 # <limits.h> exists even on freestanding compilers.
3296 # On the NeXT, cc -E runs the code through the compiler's parser,
3297 # not just through cpp. "Syntax error" is here to catch this case.
3298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3299 /* end confdefs.h. */
3300 #ifdef __STDC__
3301 # include <limits.h>
3302 #else
3303 # include <assert.h>
3304 #endif
3305 Syntax error
3306 _ACEOF
3307 if ac_fn_c_try_cpp "$LINENO"; then :
3309 else
3310 # Broken: fails on valid input.
3311 continue
3313 rm -f conftest.err conftest.$ac_ext
3315 # OK, works on sane cases. Now check whether nonexistent headers
3316 # can be detected and how.
3317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3318 /* end confdefs.h. */
3319 #include <ac_nonexistent.h>
3320 _ACEOF
3321 if ac_fn_c_try_cpp "$LINENO"; then :
3322 # Broken: success on invalid input.
3323 continue
3324 else
3325 # Passes both tests.
3326 ac_preproc_ok=:
3327 break
3329 rm -f conftest.err conftest.$ac_ext
3331 done
3332 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3333 rm -f conftest.err conftest.$ac_ext
3334 if $ac_preproc_ok; then :
3335 break
3338 done
3339 ac_cv_prog_CPP=$CPP
3342 CPP=$ac_cv_prog_CPP
3343 else
3344 ac_cv_prog_CPP=$CPP
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3347 $as_echo "$CPP" >&6; }
3348 ac_preproc_ok=false
3349 for ac_c_preproc_warn_flag in '' yes
3351 # Use a header file that comes with gcc, so configuring glibc
3352 # with a fresh cross-compiler works.
3353 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3354 # <limits.h> exists even on freestanding compilers.
3355 # On the NeXT, cc -E runs the code through the compiler's parser,
3356 # not just through cpp. "Syntax error" is here to catch this case.
3357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3358 /* end confdefs.h. */
3359 #ifdef __STDC__
3360 # include <limits.h>
3361 #else
3362 # include <assert.h>
3363 #endif
3364 Syntax error
3365 _ACEOF
3366 if ac_fn_c_try_cpp "$LINENO"; then :
3368 else
3369 # Broken: fails on valid input.
3370 continue
3372 rm -f conftest.err conftest.$ac_ext
3374 # OK, works on sane cases. Now check whether nonexistent headers
3375 # can be detected and how.
3376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3377 /* end confdefs.h. */
3378 #include <ac_nonexistent.h>
3379 _ACEOF
3380 if ac_fn_c_try_cpp "$LINENO"; then :
3381 # Broken: success on invalid input.
3382 continue
3383 else
3384 # Passes both tests.
3385 ac_preproc_ok=:
3386 break
3388 rm -f conftest.err conftest.$ac_ext
3390 done
3391 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3392 rm -f conftest.err conftest.$ac_ext
3393 if $ac_preproc_ok; then :
3395 else
3396 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3397 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3398 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3399 See \`config.log' for more details." "$LINENO" 5; }
3402 ac_ext=c
3403 ac_cpp='$CPP $CPPFLAGS'
3404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3410 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3411 if test "${ac_cv_path_GREP+set}" = set; then :
3412 $as_echo_n "(cached) " >&6
3413 else
3414 if test -z "$GREP"; then
3415 ac_path_GREP_found=false
3416 # Loop through the user's path and test for each of PROGNAME-LIST
3417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3418 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3420 IFS=$as_save_IFS
3421 test -z "$as_dir" && as_dir=.
3422 for ac_prog in grep ggrep; do
3423 for ac_exec_ext in '' $ac_executable_extensions; do
3424 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3425 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3426 # Check for GNU ac_path_GREP and select it if it is found.
3427 # Check for GNU $ac_path_GREP
3428 case `"$ac_path_GREP" --version 2>&1` in
3429 *GNU*)
3430 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3432 ac_count=0
3433 $as_echo_n 0123456789 >"conftest.in"
3434 while :
3436 cat "conftest.in" "conftest.in" >"conftest.tmp"
3437 mv "conftest.tmp" "conftest.in"
3438 cp "conftest.in" "conftest.nl"
3439 $as_echo 'GREP' >> "conftest.nl"
3440 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3441 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3442 as_fn_arith $ac_count + 1 && ac_count=$as_val
3443 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3444 # Best one so far, save it but keep looking for a better one
3445 ac_cv_path_GREP="$ac_path_GREP"
3446 ac_path_GREP_max=$ac_count
3448 # 10*(2^10) chars as input seems more than enough
3449 test $ac_count -gt 10 && break
3450 done
3451 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3452 esac
3454 $ac_path_GREP_found && break 3
3455 done
3456 done
3457 done
3458 IFS=$as_save_IFS
3459 if test -z "$ac_cv_path_GREP"; then
3460 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3462 else
3463 ac_cv_path_GREP=$GREP
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3468 $as_echo "$ac_cv_path_GREP" >&6; }
3469 GREP="$ac_cv_path_GREP"
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3473 $as_echo_n "checking for egrep... " >&6; }
3474 if test "${ac_cv_path_EGREP+set}" = set; then :
3475 $as_echo_n "(cached) " >&6
3476 else
3477 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3478 then ac_cv_path_EGREP="$GREP -E"
3479 else
3480 if test -z "$EGREP"; then
3481 ac_path_EGREP_found=false
3482 # Loop through the user's path and test for each of PROGNAME-LIST
3483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3486 IFS=$as_save_IFS
3487 test -z "$as_dir" && as_dir=.
3488 for ac_prog in egrep; do
3489 for ac_exec_ext in '' $ac_executable_extensions; do
3490 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3491 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3492 # Check for GNU ac_path_EGREP and select it if it is found.
3493 # Check for GNU $ac_path_EGREP
3494 case `"$ac_path_EGREP" --version 2>&1` in
3495 *GNU*)
3496 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3498 ac_count=0
3499 $as_echo_n 0123456789 >"conftest.in"
3500 while :
3502 cat "conftest.in" "conftest.in" >"conftest.tmp"
3503 mv "conftest.tmp" "conftest.in"
3504 cp "conftest.in" "conftest.nl"
3505 $as_echo 'EGREP' >> "conftest.nl"
3506 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3507 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3508 as_fn_arith $ac_count + 1 && ac_count=$as_val
3509 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3510 # Best one so far, save it but keep looking for a better one
3511 ac_cv_path_EGREP="$ac_path_EGREP"
3512 ac_path_EGREP_max=$ac_count
3514 # 10*(2^10) chars as input seems more than enough
3515 test $ac_count -gt 10 && break
3516 done
3517 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3518 esac
3520 $ac_path_EGREP_found && break 3
3521 done
3522 done
3523 done
3524 IFS=$as_save_IFS
3525 if test -z "$ac_cv_path_EGREP"; then
3526 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3528 else
3529 ac_cv_path_EGREP=$EGREP
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3535 $as_echo "$ac_cv_path_EGREP" >&6; }
3536 EGREP="$ac_cv_path_EGREP"
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3540 $as_echo_n "checking for ANSI C header files... " >&6; }
3541 if test "${ac_cv_header_stdc+set}" = set; then :
3542 $as_echo_n "(cached) " >&6
3543 else
3544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3545 /* end confdefs.h. */
3546 #include <stdlib.h>
3547 #include <stdarg.h>
3548 #include <string.h>
3549 #include <float.h>
3552 main ()
3556 return 0;
3558 _ACEOF
3559 if ac_fn_c_try_compile "$LINENO"; then :
3560 ac_cv_header_stdc=yes
3561 else
3562 ac_cv_header_stdc=no
3564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3566 if test $ac_cv_header_stdc = yes; then
3567 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3569 /* end confdefs.h. */
3570 #include <string.h>
3572 _ACEOF
3573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3574 $EGREP "memchr" >/dev/null 2>&1; then :
3576 else
3577 ac_cv_header_stdc=no
3579 rm -f conftest*
3583 if test $ac_cv_header_stdc = yes; then
3584 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3586 /* end confdefs.h. */
3587 #include <stdlib.h>
3589 _ACEOF
3590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3591 $EGREP "free" >/dev/null 2>&1; then :
3593 else
3594 ac_cv_header_stdc=no
3596 rm -f conftest*
3600 if test $ac_cv_header_stdc = yes; then
3601 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3602 if test "$cross_compiling" = yes; then :
3604 else
3605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3606 /* end confdefs.h. */
3607 #include <ctype.h>
3608 #include <stdlib.h>
3609 #if ((' ' & 0x0FF) == 0x020)
3610 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3611 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3612 #else
3613 # define ISLOWER(c) \
3614 (('a' <= (c) && (c) <= 'i') \
3615 || ('j' <= (c) && (c) <= 'r') \
3616 || ('s' <= (c) && (c) <= 'z'))
3617 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3618 #endif
3620 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3622 main ()
3624 int i;
3625 for (i = 0; i < 256; i++)
3626 if (XOR (islower (i), ISLOWER (i))
3627 || toupper (i) != TOUPPER (i))
3628 return 2;
3629 return 0;
3631 _ACEOF
3632 if ac_fn_c_try_run "$LINENO"; then :
3634 else
3635 ac_cv_header_stdc=no
3637 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3638 conftest.$ac_objext conftest.beam conftest.$ac_ext
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3644 $as_echo "$ac_cv_header_stdc" >&6; }
3645 if test $ac_cv_header_stdc = yes; then
3647 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3651 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3652 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3653 inttypes.h stdint.h unistd.h
3654 do :
3655 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3656 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3658 eval as_val=\$$as_ac_Header
3659 if test "x$as_val" = x""yes; then :
3660 cat >>confdefs.h <<_ACEOF
3661 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3662 _ACEOF
3666 done
3670 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3671 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3672 MINIX=yes
3673 else
3674 MINIX=
3678 if test "$MINIX" = yes; then
3680 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3683 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3686 $as_echo "#define _MINIX 1" >>confdefs.h
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3692 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3693 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3694 $as_echo_n "(cached) " >&6
3695 else
3696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3697 /* end confdefs.h. */
3699 # define __EXTENSIONS__ 1
3700 $ac_includes_default
3702 main ()
3706 return 0;
3708 _ACEOF
3709 if ac_fn_c_try_compile "$LINENO"; then :
3710 ac_cv_safe_to_define___extensions__=yes
3711 else
3712 ac_cv_safe_to_define___extensions__=no
3714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3717 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3718 test $ac_cv_safe_to_define___extensions__ = yes &&
3719 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3721 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3723 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3725 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3727 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3730 # Determine the noncanonical target name, for directory use.
3731 case ${build_alias} in
3732 "") build_noncanonical=${build} ;;
3733 *) build_noncanonical=${build_alias} ;;
3734 esac
3736 case ${host_alias} in
3737 "") host_noncanonical=${build_noncanonical} ;;
3738 *) host_noncanonical=${host_alias} ;;
3739 esac
3741 case ${target_alias} in
3742 "") target_noncanonical=${host_noncanonical} ;;
3743 *) target_noncanonical=${target_alias} ;;
3744 esac
3749 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3750 # have matching libraries, they should use host libraries: Makefile.tpl
3751 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3752 # However, they still use the build modules, because the corresponding
3753 # host modules (e.g. bison) are only built for the host when bootstrap
3754 # finishes. So:
3755 # - build_subdir is where we find build modules, and never changes.
3756 # - build_libsubdir is where we find build libraries, and can be overridden.
3758 # Prefix 'build-' so this never conflicts with target_subdir.
3759 build_subdir="build-${build_noncanonical}"
3761 # Check whether --with-build-libsubdir was given.
3762 if test "${with_build_libsubdir+set}" = set; then :
3763 withval=$with_build_libsubdir; build_libsubdir="$withval"
3764 else
3765 build_libsubdir="$build_subdir"
3768 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3769 if ( test $srcdir = . && test -d gcc ) \
3770 || test -d $srcdir/../host-${host_noncanonical}; then
3771 host_subdir="host-${host_noncanonical}"
3772 else
3773 host_subdir=.
3775 # No prefix.
3776 target_subdir=${target_noncanonical}
3779 # 1.11.1: Require that version of automake.
3780 # foreign: Don't require README, INSTALL, NEWS, etc.
3781 # no-define: Don't define PACKAGE and VERSION.
3782 # -Wall: Issue all automake warnings.
3783 # -Wno-portability: Don't warn about constructs supported by GNU make.
3784 # (because GCC requires GNU make anyhow).
3785 am__api_version='1.11'
3787 # Find a good install program. We prefer a C program (faster),
3788 # so one script is as good as another. But avoid the broken or
3789 # incompatible versions:
3790 # SysV /etc/install, /usr/sbin/install
3791 # SunOS /usr/etc/install
3792 # IRIX /sbin/install
3793 # AIX /bin/install
3794 # AmigaOS /C/install, which installs bootblocks on floppy discs
3795 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3796 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3797 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3798 # OS/2's system install, which has a completely different semantic
3799 # ./install, which can be erroneously created by make from ./install.sh.
3800 # Reject install programs that cannot install multiple files.
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3802 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3803 if test -z "$INSTALL"; then
3804 if test "${ac_cv_path_install+set}" = set; then :
3805 $as_echo_n "(cached) " >&6
3806 else
3807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808 for as_dir in $PATH
3810 IFS=$as_save_IFS
3811 test -z "$as_dir" && as_dir=.
3812 # Account for people who put trailing slashes in PATH elements.
3813 case $as_dir/ in #((
3814 ./ | .// | /[cC]/* | \
3815 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3816 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3817 /usr/ucb/* ) ;;
3819 # OSF1 and SCO ODT 3.0 have their own names for install.
3820 # Don't use installbsd from OSF since it installs stuff as root
3821 # by default.
3822 for ac_prog in ginstall scoinst install; do
3823 for ac_exec_ext in '' $ac_executable_extensions; do
3824 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3825 if test $ac_prog = install &&
3826 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3827 # AIX install. It has an incompatible calling convention.
3829 elif test $ac_prog = install &&
3830 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3831 # program-specific install script used by HP pwplus--don't use.
3833 else
3834 rm -rf conftest.one conftest.two conftest.dir
3835 echo one > conftest.one
3836 echo two > conftest.two
3837 mkdir conftest.dir
3838 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3839 test -s conftest.one && test -s conftest.two &&
3840 test -s conftest.dir/conftest.one &&
3841 test -s conftest.dir/conftest.two
3842 then
3843 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3844 break 3
3848 done
3849 done
3851 esac
3853 done
3854 IFS=$as_save_IFS
3856 rm -rf conftest.one conftest.two conftest.dir
3859 if test "${ac_cv_path_install+set}" = set; then
3860 INSTALL=$ac_cv_path_install
3861 else
3862 # As a last resort, use the slow shell script. Don't cache a
3863 # value for INSTALL within a source directory, because that will
3864 # break other packages using the cache if that directory is
3865 # removed, or if the value is a relative name.
3866 INSTALL=$ac_install_sh
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3870 $as_echo "$INSTALL" >&6; }
3872 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3873 # It thinks the first close brace ends the variable substitution.
3874 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3876 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3878 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3881 $as_echo_n "checking whether build environment is sane... " >&6; }
3882 # Just in case
3883 sleep 1
3884 echo timestamp > conftest.file
3885 # Reject unsafe characters in $srcdir or the absolute working directory
3886 # name. Accept space and tab only in the latter.
3887 am_lf='
3889 case `pwd` in
3890 *[\\\"\#\$\&\'\`$am_lf]*)
3891 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3892 esac
3893 case $srcdir in
3894 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3895 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3896 esac
3898 # Do `set' in a subshell so we don't clobber the current shell's
3899 # arguments. Must try -L first in case configure is actually a
3900 # symlink; some systems play weird games with the mod time of symlinks
3901 # (eg FreeBSD returns the mod time of the symlink's containing
3902 # directory).
3903 if (
3904 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3905 if test "$*" = "X"; then
3906 # -L didn't work.
3907 set X `ls -t "$srcdir/configure" conftest.file`
3909 rm -f conftest.file
3910 if test "$*" != "X $srcdir/configure conftest.file" \
3911 && test "$*" != "X conftest.file $srcdir/configure"; then
3913 # If neither matched, then we have a broken ls. This can happen
3914 # if, for instance, CONFIG_SHELL is bash and it inherits a
3915 # broken ls alias from the environment. This has actually
3916 # happened. Such a system could not be considered "sane".
3917 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3918 alias in your environment" "$LINENO" 5
3921 test "$2" = conftest.file
3923 then
3924 # Ok.
3926 else
3927 as_fn_error "newly created file is older than distributed files!
3928 Check your system clock" "$LINENO" 5
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3931 $as_echo "yes" >&6; }
3932 test "$program_prefix" != NONE &&
3933 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3934 # Use a double $ so make ignores it.
3935 test "$program_suffix" != NONE &&
3936 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3937 # Double any \ or $.
3938 # By default was `s,x,x', remove it if useless.
3939 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3940 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3942 # expand $ac_aux_dir to an absolute path
3943 am_aux_dir=`cd $ac_aux_dir && pwd`
3945 if test x"${MISSING+set}" != xset; then
3946 case $am_aux_dir in
3947 *\ * | *\ *)
3948 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3950 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3951 esac
3953 # Use eval to expand $SHELL
3954 if eval "$MISSING --run true"; then
3955 am_missing_run="$MISSING --run "
3956 else
3957 am_missing_run=
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3959 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3962 if test x"${install_sh}" != xset; then
3963 case $am_aux_dir in
3964 *\ * | *\ *)
3965 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3967 install_sh="\${SHELL} $am_aux_dir/install-sh"
3968 esac
3971 # Installed binaries are usually stripped using `strip' when the user
3972 # run `make install-strip'. However `strip' might not be the right
3973 # tool to use in cross-compilation environments, therefore Automake
3974 # will honor the `STRIP' environment variable to overrule this program.
3975 if test "$cross_compiling" != no; then
3976 if test -n "$ac_tool_prefix"; then
3977 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3978 set dummy ${ac_tool_prefix}strip; ac_word=$2
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3980 $as_echo_n "checking for $ac_word... " >&6; }
3981 if test "${ac_cv_prog_STRIP+set}" = set; then :
3982 $as_echo_n "(cached) " >&6
3983 else
3984 if test -n "$STRIP"; then
3985 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3986 else
3987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3988 for as_dir in $PATH
3990 IFS=$as_save_IFS
3991 test -z "$as_dir" && as_dir=.
3992 for ac_exec_ext in '' $ac_executable_extensions; do
3993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3994 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3996 break 2
3998 done
3999 done
4000 IFS=$as_save_IFS
4004 STRIP=$ac_cv_prog_STRIP
4005 if test -n "$STRIP"; then
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4007 $as_echo "$STRIP" >&6; }
4008 else
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4010 $as_echo "no" >&6; }
4015 if test -z "$ac_cv_prog_STRIP"; then
4016 ac_ct_STRIP=$STRIP
4017 # Extract the first word of "strip", so it can be a program name with args.
4018 set dummy strip; ac_word=$2
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4020 $as_echo_n "checking for $ac_word... " >&6; }
4021 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4022 $as_echo_n "(cached) " >&6
4023 else
4024 if test -n "$ac_ct_STRIP"; then
4025 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4026 else
4027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4028 for as_dir in $PATH
4030 IFS=$as_save_IFS
4031 test -z "$as_dir" && as_dir=.
4032 for ac_exec_ext in '' $ac_executable_extensions; do
4033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4034 ac_cv_prog_ac_ct_STRIP="strip"
4035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4036 break 2
4038 done
4039 done
4040 IFS=$as_save_IFS
4044 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4045 if test -n "$ac_ct_STRIP"; then
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4047 $as_echo "$ac_ct_STRIP" >&6; }
4048 else
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4050 $as_echo "no" >&6; }
4053 if test "x$ac_ct_STRIP" = x; then
4054 STRIP=":"
4055 else
4056 case $cross_compiling:$ac_tool_warned in
4057 yes:)
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4059 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4060 ac_tool_warned=yes ;;
4061 esac
4062 STRIP=$ac_ct_STRIP
4064 else
4065 STRIP="$ac_cv_prog_STRIP"
4069 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4072 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4073 if test -z "$MKDIR_P"; then
4074 if test "${ac_cv_path_mkdir+set}" = set; then :
4075 $as_echo_n "(cached) " >&6
4076 else
4077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4078 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4080 IFS=$as_save_IFS
4081 test -z "$as_dir" && as_dir=.
4082 for ac_prog in mkdir gmkdir; do
4083 for ac_exec_ext in '' $ac_executable_extensions; do
4084 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4085 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4086 'mkdir (GNU coreutils) '* | \
4087 'mkdir (coreutils) '* | \
4088 'mkdir (fileutils) '4.1*)
4089 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4090 break 3;;
4091 esac
4092 done
4093 done
4094 done
4095 IFS=$as_save_IFS
4099 if test "${ac_cv_path_mkdir+set}" = set; then
4100 MKDIR_P="$ac_cv_path_mkdir -p"
4101 else
4102 # As a last resort, use the slow shell script. Don't cache a
4103 # value for MKDIR_P within a source directory, because that will
4104 # break other packages using the cache if that directory is
4105 # removed, or if the value is a relative name.
4106 test -d ./--version && rmdir ./--version
4107 MKDIR_P="$ac_install_sh -d"
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4111 $as_echo "$MKDIR_P" >&6; }
4113 mkdir_p="$MKDIR_P"
4114 case $mkdir_p in
4115 [\\/$]* | ?:[\\/]*) ;;
4116 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4117 esac
4119 for ac_prog in gawk mawk nawk awk
4121 # Extract the first word of "$ac_prog", so it can be a program name with args.
4122 set dummy $ac_prog; ac_word=$2
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4124 $as_echo_n "checking for $ac_word... " >&6; }
4125 if test "${ac_cv_prog_AWK+set}" = set; then :
4126 $as_echo_n "(cached) " >&6
4127 else
4128 if test -n "$AWK"; then
4129 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4130 else
4131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4132 for as_dir in $PATH
4134 IFS=$as_save_IFS
4135 test -z "$as_dir" && as_dir=.
4136 for ac_exec_ext in '' $ac_executable_extensions; do
4137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4138 ac_cv_prog_AWK="$ac_prog"
4139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4140 break 2
4142 done
4143 done
4144 IFS=$as_save_IFS
4148 AWK=$ac_cv_prog_AWK
4149 if test -n "$AWK"; then
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4151 $as_echo "$AWK" >&6; }
4152 else
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4154 $as_echo "no" >&6; }
4158 test -n "$AWK" && break
4159 done
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4162 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4163 set x ${MAKE-make}
4164 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4165 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4166 $as_echo_n "(cached) " >&6
4167 else
4168 cat >conftest.make <<\_ACEOF
4169 SHELL = /bin/sh
4170 all:
4171 @echo '@@@%%%=$(MAKE)=@@@%%%'
4172 _ACEOF
4173 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4174 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4175 *@@@%%%=?*=@@@%%%*)
4176 eval ac_cv_prog_make_${ac_make}_set=yes;;
4178 eval ac_cv_prog_make_${ac_make}_set=no;;
4179 esac
4180 rm -f conftest.make
4182 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4184 $as_echo "yes" >&6; }
4185 SET_MAKE=
4186 else
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4188 $as_echo "no" >&6; }
4189 SET_MAKE="MAKE=${MAKE-make}"
4192 rm -rf .tst 2>/dev/null
4193 mkdir .tst 2>/dev/null
4194 if test -d .tst; then
4195 am__leading_dot=.
4196 else
4197 am__leading_dot=_
4199 rmdir .tst 2>/dev/null
4201 DEPDIR="${am__leading_dot}deps"
4203 ac_config_commands="$ac_config_commands depfiles"
4206 am_make=${MAKE-make}
4207 cat > confinc << 'END'
4208 am__doit:
4209 @echo this is the am__doit target
4210 .PHONY: am__doit
4212 # If we don't find an include directive, just comment out the code.
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4214 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4215 am__include="#"
4216 am__quote=
4217 _am_result=none
4218 # First try GNU make style include.
4219 echo "include confinc" > confmf
4220 # Ignore all kinds of additional output from `make'.
4221 case `$am_make -s -f confmf 2> /dev/null` in #(
4222 *the\ am__doit\ target*)
4223 am__include=include
4224 am__quote=
4225 _am_result=GNU
4227 esac
4228 # Now try BSD make style include.
4229 if test "$am__include" = "#"; then
4230 echo '.include "confinc"' > confmf
4231 case `$am_make -s -f confmf 2> /dev/null` in #(
4232 *the\ am__doit\ target*)
4233 am__include=.include
4234 am__quote="\""
4235 _am_result=BSD
4237 esac
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4242 $as_echo "$_am_result" >&6; }
4243 rm -f confinc confmf
4245 # Check whether --enable-dependency-tracking was given.
4246 if test "${enable_dependency_tracking+set}" = set; then :
4247 enableval=$enable_dependency_tracking;
4250 if test "x$enable_dependency_tracking" != xno; then
4251 am_depcomp="$ac_aux_dir/depcomp"
4252 AMDEPBACKSLASH='\'
4253 am__nodep='_no'
4255 if test "x$enable_dependency_tracking" != xno; then
4256 AMDEP_TRUE=
4257 AMDEP_FALSE='#'
4258 else
4259 AMDEP_TRUE='#'
4260 AMDEP_FALSE=
4264 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4265 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4266 # is not polluted with repeated "-I."
4267 am__isrc=' -I$(srcdir)'
4268 # test to see if srcdir already configured
4269 if test -f $srcdir/config.status; then
4270 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4274 # test whether we have cygpath
4275 if test -z "$CYGPATH_W"; then
4276 if (cygpath --version) >/dev/null 2>/dev/null; then
4277 CYGPATH_W='cygpath -w'
4278 else
4279 CYGPATH_W=echo
4284 # Define the identity of the package.
4285 PACKAGE='libcc1'
4286 VERSION='version-unused'
4289 # Some tools Automake needs.
4291 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4294 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4297 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4300 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4303 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4305 # We need awk for the "check" target. The system "awk" is bad on
4306 # some platforms.
4307 # Always define AMTAR for backward compatibility. Yes, it's still used
4308 # in the wild :-( We should find a proper way to deprecate it ...
4309 AMTAR='$${TAR-tar}'
4311 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4316 depcc="$CC" am_compiler_list=
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4319 $as_echo_n "checking dependency style of $depcc... " >&6; }
4320 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4321 $as_echo_n "(cached) " >&6
4322 else
4323 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4324 # We make a subdir and do the tests there. Otherwise we can end up
4325 # making bogus files that we don't know about and never remove. For
4326 # instance it was reported that on HP-UX the gcc test will end up
4327 # making a dummy file named `D' -- because `-MD' means `put the output
4328 # in D'.
4329 rm -rf conftest.dir
4330 mkdir conftest.dir
4331 # Copy depcomp to subdir because otherwise we won't find it if we're
4332 # using a relative directory.
4333 cp "$am_depcomp" conftest.dir
4334 cd conftest.dir
4335 # We will build objects and dependencies in a subdirectory because
4336 # it helps to detect inapplicable dependency modes. For instance
4337 # both Tru64's cc and ICC support -MD to output dependencies as a
4338 # side effect of compilation, but ICC will put the dependencies in
4339 # the current directory while Tru64 will put them in the object
4340 # directory.
4341 mkdir sub
4343 am_cv_CC_dependencies_compiler_type=none
4344 if test "$am_compiler_list" = ""; then
4345 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4347 am__universal=false
4348 case " $depcc " in #(
4349 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4350 esac
4352 for depmode in $am_compiler_list; do
4353 # Setup a source with many dependencies, because some compilers
4354 # like to wrap large dependency lists on column 80 (with \), and
4355 # we should not choose a depcomp mode which is confused by this.
4357 # We need to recreate these files for each test, as the compiler may
4358 # overwrite some of them when testing with obscure command lines.
4359 # This happens at least with the AIX C compiler.
4360 : > sub/conftest.c
4361 for i in 1 2 3 4 5 6; do
4362 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4363 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4364 # Solaris 8's {/usr,}/bin/sh.
4365 touch sub/conftst$i.h
4366 done
4367 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4369 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4370 # mode. It turns out that the SunPro C++ compiler does not properly
4371 # handle `-M -o', and we need to detect this. Also, some Intel
4372 # versions had trouble with output in subdirs
4373 am__obj=sub/conftest.${OBJEXT-o}
4374 am__minus_obj="-o $am__obj"
4375 case $depmode in
4376 gcc)
4377 # This depmode causes a compiler race in universal mode.
4378 test "$am__universal" = false || continue
4380 nosideeffect)
4381 # after this tag, mechanisms are not by side-effect, so they'll
4382 # only be used when explicitly requested
4383 if test "x$enable_dependency_tracking" = xyes; then
4384 continue
4385 else
4386 break
4389 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4390 # This compiler won't grok `-c -o', but also, the minuso test has
4391 # not run yet. These depmodes are late enough in the game, and
4392 # so weak that their functioning should not be impacted.
4393 am__obj=conftest.${OBJEXT-o}
4394 am__minus_obj=
4396 none) break ;;
4397 esac
4398 if depmode=$depmode \
4399 source=sub/conftest.c object=$am__obj \
4400 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4401 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4402 >/dev/null 2>conftest.err &&
4403 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4404 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4405 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4406 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4407 # icc doesn't choke on unknown options, it will just issue warnings
4408 # or remarks (even with -Werror). So we grep stderr for any message
4409 # that says an option was ignored or not supported.
4410 # When given -MP, icc 7.0 and 7.1 complain thusly:
4411 # icc: Command line warning: ignoring option '-M'; no argument required
4412 # The diagnosis changed in icc 8.0:
4413 # icc: Command line remark: option '-MP' not supported
4414 if (grep 'ignoring option' conftest.err ||
4415 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4416 am_cv_CC_dependencies_compiler_type=$depmode
4417 break
4420 done
4422 cd ..
4423 rm -rf conftest.dir
4424 else
4425 am_cv_CC_dependencies_compiler_type=none
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4430 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4431 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4434 test "x$enable_dependency_tracking" != xno \
4435 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4436 am__fastdepCC_TRUE=
4437 am__fastdepCC_FALSE='#'
4438 else
4439 am__fastdepCC_TRUE='#'
4440 am__fastdepCC_FALSE=
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4447 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4448 # Check whether --enable-maintainer-mode was given.
4449 if test "${enable_maintainer_mode+set}" = set; then :
4450 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4451 else
4452 USE_MAINTAINER_MODE=no
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4456 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4457 if test $USE_MAINTAINER_MODE = yes; then
4458 MAINTAINER_MODE_TRUE=
4459 MAINTAINER_MODE_FALSE='#'
4460 else
4461 MAINTAINER_MODE_TRUE='#'
4462 MAINTAINER_MODE_FALSE=
4465 MAINT=$MAINTAINER_MODE_TRUE
4469 case `pwd` in
4470 *\ * | *\ *)
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4472 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4473 esac
4477 macro_version='2.2.7a'
4478 macro_revision='1.3134'
4492 ltmain="$ac_aux_dir/ltmain.sh"
4494 # Backslashify metacharacters that are still active within
4495 # double-quoted strings.
4496 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4498 # Same as above, but do not quote variable references.
4499 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4501 # Sed substitution to delay expansion of an escaped shell variable in a
4502 # double_quote_subst'ed string.
4503 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4505 # Sed substitution to delay expansion of an escaped single quote.
4506 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4508 # Sed substitution to avoid accidental globbing in evaled expressions
4509 no_glob_subst='s/\*/\\\*/g'
4511 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4512 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4513 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4516 $as_echo_n "checking how to print strings... " >&6; }
4517 # Test print first, because it will be a builtin if present.
4518 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4519 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4520 ECHO='print -r --'
4521 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4522 ECHO='printf %s\n'
4523 else
4524 # Use this function as a fallback that always works.
4525 func_fallback_echo ()
4527 eval 'cat <<_LTECHO_EOF
4529 _LTECHO_EOF'
4531 ECHO='func_fallback_echo'
4534 # func_echo_all arg...
4535 # Invoke $ECHO with all args, space-separated.
4536 func_echo_all ()
4538 $ECHO ""
4541 case "$ECHO" in
4542 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4543 $as_echo "printf" >&6; } ;;
4544 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4545 $as_echo "print -r" >&6; } ;;
4546 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4547 $as_echo "cat" >&6; } ;;
4548 esac
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4564 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4565 if test "${ac_cv_path_SED+set}" = set; then :
4566 $as_echo_n "(cached) " >&6
4567 else
4568 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4569 for ac_i in 1 2 3 4 5 6 7; do
4570 ac_script="$ac_script$as_nl$ac_script"
4571 done
4572 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4573 { ac_script=; unset ac_script;}
4574 if test -z "$SED"; then
4575 ac_path_SED_found=false
4576 # Loop through the user's path and test for each of PROGNAME-LIST
4577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4578 for as_dir in $PATH
4580 IFS=$as_save_IFS
4581 test -z "$as_dir" && as_dir=.
4582 for ac_prog in sed gsed; do
4583 for ac_exec_ext in '' $ac_executable_extensions; do
4584 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4585 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4586 # Check for GNU ac_path_SED and select it if it is found.
4587 # Check for GNU $ac_path_SED
4588 case `"$ac_path_SED" --version 2>&1` in
4589 *GNU*)
4590 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4592 ac_count=0
4593 $as_echo_n 0123456789 >"conftest.in"
4594 while :
4596 cat "conftest.in" "conftest.in" >"conftest.tmp"
4597 mv "conftest.tmp" "conftest.in"
4598 cp "conftest.in" "conftest.nl"
4599 $as_echo '' >> "conftest.nl"
4600 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4601 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4602 as_fn_arith $ac_count + 1 && ac_count=$as_val
4603 if test $ac_count -gt ${ac_path_SED_max-0}; then
4604 # Best one so far, save it but keep looking for a better one
4605 ac_cv_path_SED="$ac_path_SED"
4606 ac_path_SED_max=$ac_count
4608 # 10*(2^10) chars as input seems more than enough
4609 test $ac_count -gt 10 && break
4610 done
4611 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4612 esac
4614 $ac_path_SED_found && break 3
4615 done
4616 done
4617 done
4618 IFS=$as_save_IFS
4619 if test -z "$ac_cv_path_SED"; then
4620 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4622 else
4623 ac_cv_path_SED=$SED
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4628 $as_echo "$ac_cv_path_SED" >&6; }
4629 SED="$ac_cv_path_SED"
4630 rm -f conftest.sed
4632 test -z "$SED" && SED=sed
4633 Xsed="$SED -e 1s/^X//"
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4646 $as_echo_n "checking for fgrep... " >&6; }
4647 if test "${ac_cv_path_FGREP+set}" = set; then :
4648 $as_echo_n "(cached) " >&6
4649 else
4650 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4651 then ac_cv_path_FGREP="$GREP -F"
4652 else
4653 if test -z "$FGREP"; then
4654 ac_path_FGREP_found=false
4655 # Loop through the user's path and test for each of PROGNAME-LIST
4656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4659 IFS=$as_save_IFS
4660 test -z "$as_dir" && as_dir=.
4661 for ac_prog in fgrep; do
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4664 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4665 # Check for GNU ac_path_FGREP and select it if it is found.
4666 # Check for GNU $ac_path_FGREP
4667 case `"$ac_path_FGREP" --version 2>&1` in
4668 *GNU*)
4669 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4671 ac_count=0
4672 $as_echo_n 0123456789 >"conftest.in"
4673 while :
4675 cat "conftest.in" "conftest.in" >"conftest.tmp"
4676 mv "conftest.tmp" "conftest.in"
4677 cp "conftest.in" "conftest.nl"
4678 $as_echo 'FGREP' >> "conftest.nl"
4679 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4680 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4681 as_fn_arith $ac_count + 1 && ac_count=$as_val
4682 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4683 # Best one so far, save it but keep looking for a better one
4684 ac_cv_path_FGREP="$ac_path_FGREP"
4685 ac_path_FGREP_max=$ac_count
4687 # 10*(2^10) chars as input seems more than enough
4688 test $ac_count -gt 10 && break
4689 done
4690 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4691 esac
4693 $ac_path_FGREP_found && break 3
4694 done
4695 done
4696 done
4697 IFS=$as_save_IFS
4698 if test -z "$ac_cv_path_FGREP"; then
4699 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4701 else
4702 ac_cv_path_FGREP=$FGREP
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4708 $as_echo "$ac_cv_path_FGREP" >&6; }
4709 FGREP="$ac_cv_path_FGREP"
4712 test -z "$GREP" && GREP=grep
4732 # Check whether --with-gnu-ld was given.
4733 if test "${with_gnu_ld+set}" = set; then :
4734 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4735 else
4736 with_gnu_ld=no
4739 ac_prog=ld
4740 if test "$GCC" = yes; then
4741 # Check if gcc -print-prog-name=ld gives a path.
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4743 $as_echo_n "checking for ld used by $CC... " >&6; }
4744 case $host in
4745 *-*-mingw*)
4746 # gcc leaves a trailing carriage return which upsets mingw
4747 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4749 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4750 esac
4751 case $ac_prog in
4752 # Accept absolute paths.
4753 [\\/]* | ?:[\\/]*)
4754 re_direlt='/[^/][^/]*/\.\./'
4755 # Canonicalize the pathname of ld
4756 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4757 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4758 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4759 done
4760 test -z "$LD" && LD="$ac_prog"
4763 # If it fails, then pretend we aren't using GCC.
4764 ac_prog=ld
4767 # If it is relative, then search for the first ld in PATH.
4768 with_gnu_ld=unknown
4770 esac
4771 elif test "$with_gnu_ld" = yes; then
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4773 $as_echo_n "checking for GNU ld... " >&6; }
4774 else
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4776 $as_echo_n "checking for non-GNU ld... " >&6; }
4778 if test "${lt_cv_path_LD+set}" = set; then :
4779 $as_echo_n "(cached) " >&6
4780 else
4781 if test -z "$LD"; then
4782 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4783 for ac_dir in $PATH; do
4784 IFS="$lt_save_ifs"
4785 test -z "$ac_dir" && ac_dir=.
4786 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4787 lt_cv_path_LD="$ac_dir/$ac_prog"
4788 # Check to see if the program is GNU ld. I'd rather use --version,
4789 # but apparently some variants of GNU ld only accept -v.
4790 # Break only if it was the GNU/non-GNU ld that we prefer.
4791 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4792 *GNU* | *'with BFD'*)
4793 test "$with_gnu_ld" != no && break
4796 test "$with_gnu_ld" != yes && break
4798 esac
4800 done
4801 IFS="$lt_save_ifs"
4802 else
4803 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4807 LD="$lt_cv_path_LD"
4808 if test -n "$LD"; then
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4810 $as_echo "$LD" >&6; }
4811 else
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4813 $as_echo "no" >&6; }
4815 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4817 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4818 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4819 $as_echo_n "(cached) " >&6
4820 else
4821 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4822 case `$LD -v 2>&1 </dev/null` in
4823 *GNU* | *'with BFD'*)
4824 lt_cv_prog_gnu_ld=yes
4827 lt_cv_prog_gnu_ld=no
4829 esac
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4832 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4833 with_gnu_ld=$lt_cv_prog_gnu_ld
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4844 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4845 if test "${lt_cv_path_NM+set}" = set; then :
4846 $as_echo_n "(cached) " >&6
4847 else
4848 if test -n "$NM"; then
4849 # Let the user override the test.
4850 lt_cv_path_NM="$NM"
4851 else
4852 lt_nm_to_check="${ac_tool_prefix}nm"
4853 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4854 lt_nm_to_check="$lt_nm_to_check nm"
4856 for lt_tmp_nm in $lt_nm_to_check; do
4857 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4858 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4859 IFS="$lt_save_ifs"
4860 test -z "$ac_dir" && ac_dir=.
4861 tmp_nm="$ac_dir/$lt_tmp_nm"
4862 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4863 # Check to see if the nm accepts a BSD-compat flag.
4864 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4865 # nm: unknown option "B" ignored
4866 # Tru64's nm complains that /dev/null is an invalid object file
4867 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4868 */dev/null* | *'Invalid file or object type'*)
4869 lt_cv_path_NM="$tmp_nm -B"
4870 break
4873 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4874 */dev/null*)
4875 lt_cv_path_NM="$tmp_nm -p"
4876 break
4879 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4880 continue # so that we can try to find one that supports BSD flags
4882 esac
4884 esac
4886 done
4887 IFS="$lt_save_ifs"
4888 done
4889 : ${lt_cv_path_NM=no}
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4893 $as_echo "$lt_cv_path_NM" >&6; }
4894 if test "$lt_cv_path_NM" != "no"; then
4895 NM="$lt_cv_path_NM"
4896 else
4897 # Didn't find any BSD compatible name lister, look for dumpbin.
4898 if test -n "$DUMPBIN"; then :
4899 # Let the user override the test.
4900 else
4901 if test -n "$ac_tool_prefix"; then
4902 for ac_prog in dumpbin "link -dump"
4904 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4905 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4907 $as_echo_n "checking for $ac_word... " >&6; }
4908 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4909 $as_echo_n "(cached) " >&6
4910 else
4911 if test -n "$DUMPBIN"; then
4912 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4913 else
4914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4915 for as_dir in $PATH
4917 IFS=$as_save_IFS
4918 test -z "$as_dir" && as_dir=.
4919 for ac_exec_ext in '' $ac_executable_extensions; do
4920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4921 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4923 break 2
4925 done
4926 done
4927 IFS=$as_save_IFS
4931 DUMPBIN=$ac_cv_prog_DUMPBIN
4932 if test -n "$DUMPBIN"; then
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4934 $as_echo "$DUMPBIN" >&6; }
4935 else
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4937 $as_echo "no" >&6; }
4941 test -n "$DUMPBIN" && break
4942 done
4944 if test -z "$DUMPBIN"; then
4945 ac_ct_DUMPBIN=$DUMPBIN
4946 for ac_prog in dumpbin "link -dump"
4948 # Extract the first word of "$ac_prog", so it can be a program name with args.
4949 set dummy $ac_prog; ac_word=$2
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4951 $as_echo_n "checking for $ac_word... " >&6; }
4952 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4953 $as_echo_n "(cached) " >&6
4954 else
4955 if test -n "$ac_ct_DUMPBIN"; then
4956 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4957 else
4958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4959 for as_dir in $PATH
4961 IFS=$as_save_IFS
4962 test -z "$as_dir" && as_dir=.
4963 for ac_exec_ext in '' $ac_executable_extensions; do
4964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4965 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4967 break 2
4969 done
4970 done
4971 IFS=$as_save_IFS
4975 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4976 if test -n "$ac_ct_DUMPBIN"; then
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4978 $as_echo "$ac_ct_DUMPBIN" >&6; }
4979 else
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4981 $as_echo "no" >&6; }
4985 test -n "$ac_ct_DUMPBIN" && break
4986 done
4988 if test "x$ac_ct_DUMPBIN" = x; then
4989 DUMPBIN=":"
4990 else
4991 case $cross_compiling:$ac_tool_warned in
4992 yes:)
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4994 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4995 ac_tool_warned=yes ;;
4996 esac
4997 DUMPBIN=$ac_ct_DUMPBIN
5001 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5002 *COFF*)
5003 DUMPBIN="$DUMPBIN -symbols"
5006 DUMPBIN=:
5008 esac
5011 if test "$DUMPBIN" != ":"; then
5012 NM="$DUMPBIN"
5015 test -z "$NM" && NM=nm
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5023 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5024 if test "${lt_cv_nm_interface+set}" = set; then :
5025 $as_echo_n "(cached) " >&6
5026 else
5027 lt_cv_nm_interface="BSD nm"
5028 echo "int some_variable = 0;" > conftest.$ac_ext
5029 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5030 (eval "$ac_compile" 2>conftest.err)
5031 cat conftest.err >&5
5032 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5033 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5034 cat conftest.err >&5
5035 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5036 cat conftest.out >&5
5037 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5038 lt_cv_nm_interface="MS dumpbin"
5040 rm -f conftest*
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5043 $as_echo "$lt_cv_nm_interface" >&6; }
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5046 $as_echo_n "checking whether ln -s works... " >&6; }
5047 LN_S=$as_ln_s
5048 if test "$LN_S" = "ln -s"; then
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5050 $as_echo "yes" >&6; }
5051 else
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5053 $as_echo "no, using $LN_S" >&6; }
5056 # find the maximum length of command line arguments
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5058 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5059 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5060 $as_echo_n "(cached) " >&6
5061 else
5063 teststring="ABCD"
5065 case $build_os in
5066 msdosdjgpp*)
5067 # On DJGPP, this test can blow up pretty badly due to problems in libc
5068 # (any single argument exceeding 2000 bytes causes a buffer overrun
5069 # during glob expansion). Even if it were fixed, the result of this
5070 # check would be larger than it should be.
5071 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5074 gnu*)
5075 # Under GNU Hurd, this test is not required because there is
5076 # no limit to the length of command line arguments.
5077 # Libtool will interpret -1 as no limit whatsoever
5078 lt_cv_sys_max_cmd_len=-1;
5081 cygwin* | mingw* | cegcc*)
5082 # On Win9x/ME, this test blows up -- it succeeds, but takes
5083 # about 5 minutes as the teststring grows exponentially.
5084 # Worse, since 9x/ME are not pre-emptively multitasking,
5085 # you end up with a "frozen" computer, even though with patience
5086 # the test eventually succeeds (with a max line length of 256k).
5087 # Instead, let's just punt: use the minimum linelength reported by
5088 # all of the supported platforms: 8192 (on NT/2K/XP).
5089 lt_cv_sys_max_cmd_len=8192;
5092 mint*)
5093 # On MiNT this can take a long time and run out of memory.
5094 lt_cv_sys_max_cmd_len=8192;
5097 amigaos*)
5098 # On AmigaOS with pdksh, this test takes hours, literally.
5099 # So we just punt and use a minimum line length of 8192.
5100 lt_cv_sys_max_cmd_len=8192;
5103 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5104 # This has been around since 386BSD, at least. Likely further.
5105 if test -x /sbin/sysctl; then
5106 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5107 elif test -x /usr/sbin/sysctl; then
5108 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5109 else
5110 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5112 # And add a safety zone
5113 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5114 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5117 interix*)
5118 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5119 lt_cv_sys_max_cmd_len=196608
5122 osf*)
5123 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5124 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5125 # nice to cause kernel panics so lets avoid the loop below.
5126 # First set a reasonable default.
5127 lt_cv_sys_max_cmd_len=16384
5129 if test -x /sbin/sysconfig; then
5130 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5131 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5132 esac
5135 sco3.2v5*)
5136 lt_cv_sys_max_cmd_len=102400
5138 sysv5* | sco5v6* | sysv4.2uw2*)
5139 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5140 if test -n "$kargmax"; then
5141 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5142 else
5143 lt_cv_sys_max_cmd_len=32768
5147 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5148 if test -n "$lt_cv_sys_max_cmd_len"; then
5149 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5150 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5151 else
5152 # Make teststring a little bigger before we do anything with it.
5153 # a 1K string should be a reasonable start.
5154 for i in 1 2 3 4 5 6 7 8 ; do
5155 teststring=$teststring$teststring
5156 done
5157 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5158 # If test is not a shell built-in, we'll probably end up computing a
5159 # maximum length that is only half of the actual maximum length, but
5160 # we can't tell.
5161 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5162 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5163 test $i != 17 # 1/2 MB should be enough
5165 i=`expr $i + 1`
5166 teststring=$teststring$teststring
5167 done
5168 # Only check the string length outside the loop.
5169 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5170 teststring=
5171 # Add a significant safety factor because C++ compilers can tack on
5172 # massive amounts of additional arguments before passing them to the
5173 # linker. It appears as though 1/2 is a usable value.
5174 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5177 esac
5181 if test -n $lt_cv_sys_max_cmd_len ; then
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5183 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5184 else
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5186 $as_echo "none" >&6; }
5188 max_cmd_len=$lt_cv_sys_max_cmd_len
5195 : ${CP="cp -f"}
5196 : ${MV="mv -f"}
5197 : ${RM="rm -f"}
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5200 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5201 # Try some XSI features
5202 xsi_shell=no
5203 ( _lt_dummy="a/b/c"
5204 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5205 = c,a/b,, \
5206 && eval 'test $(( 1 + 1 )) -eq 2 \
5207 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5208 && xsi_shell=yes
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5210 $as_echo "$xsi_shell" >&6; }
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5214 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5215 lt_shell_append=no
5216 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5217 >/dev/null 2>&1 \
5218 && lt_shell_append=yes
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5220 $as_echo "$lt_shell_append" >&6; }
5223 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5224 lt_unset=unset
5225 else
5226 lt_unset=false
5233 # test EBCDIC or ASCII
5234 case `echo X|tr X '\101'` in
5235 A) # ASCII based system
5236 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5237 lt_SP2NL='tr \040 \012'
5238 lt_NL2SP='tr \015\012 \040\040'
5240 *) # EBCDIC based system
5241 lt_SP2NL='tr \100 \n'
5242 lt_NL2SP='tr \r\n \100\100'
5244 esac
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5255 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5256 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5257 $as_echo_n "(cached) " >&6
5258 else
5259 lt_cv_ld_reload_flag='-r'
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5262 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5263 reload_flag=$lt_cv_ld_reload_flag
5264 case $reload_flag in
5265 "" | " "*) ;;
5266 *) reload_flag=" $reload_flag" ;;
5267 esac
5268 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5269 case $host_os in
5270 darwin*)
5271 if test "$GCC" = yes; then
5272 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5273 else
5274 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5277 esac
5287 if test -n "$ac_tool_prefix"; then
5288 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5289 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5291 $as_echo_n "checking for $ac_word... " >&6; }
5292 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5293 $as_echo_n "(cached) " >&6
5294 else
5295 if test -n "$OBJDUMP"; then
5296 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5297 else
5298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5299 for as_dir in $PATH
5301 IFS=$as_save_IFS
5302 test -z "$as_dir" && as_dir=.
5303 for ac_exec_ext in '' $ac_executable_extensions; do
5304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5305 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5307 break 2
5309 done
5310 done
5311 IFS=$as_save_IFS
5315 OBJDUMP=$ac_cv_prog_OBJDUMP
5316 if test -n "$OBJDUMP"; then
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5318 $as_echo "$OBJDUMP" >&6; }
5319 else
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5321 $as_echo "no" >&6; }
5326 if test -z "$ac_cv_prog_OBJDUMP"; then
5327 ac_ct_OBJDUMP=$OBJDUMP
5328 # Extract the first word of "objdump", so it can be a program name with args.
5329 set dummy objdump; ac_word=$2
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5331 $as_echo_n "checking for $ac_word... " >&6; }
5332 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5333 $as_echo_n "(cached) " >&6
5334 else
5335 if test -n "$ac_ct_OBJDUMP"; then
5336 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5337 else
5338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5339 for as_dir in $PATH
5341 IFS=$as_save_IFS
5342 test -z "$as_dir" && as_dir=.
5343 for ac_exec_ext in '' $ac_executable_extensions; do
5344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5345 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5347 break 2
5349 done
5350 done
5351 IFS=$as_save_IFS
5355 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5356 if test -n "$ac_ct_OBJDUMP"; then
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5358 $as_echo "$ac_ct_OBJDUMP" >&6; }
5359 else
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5361 $as_echo "no" >&6; }
5364 if test "x$ac_ct_OBJDUMP" = x; then
5365 OBJDUMP="false"
5366 else
5367 case $cross_compiling:$ac_tool_warned in
5368 yes:)
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5370 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5371 ac_tool_warned=yes ;;
5372 esac
5373 OBJDUMP=$ac_ct_OBJDUMP
5375 else
5376 OBJDUMP="$ac_cv_prog_OBJDUMP"
5379 test -z "$OBJDUMP" && OBJDUMP=objdump
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5390 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5391 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5392 $as_echo_n "(cached) " >&6
5393 else
5394 lt_cv_file_magic_cmd='$MAGIC_CMD'
5395 lt_cv_file_magic_test_file=
5396 lt_cv_deplibs_check_method='unknown'
5397 # Need to set the preceding variable on all platforms that support
5398 # interlibrary dependencies.
5399 # 'none' -- dependencies not supported.
5400 # `unknown' -- same as none, but documents that we really don't know.
5401 # 'pass_all' -- all dependencies passed with no checks.
5402 # 'test_compile' -- check by making test program.
5403 # 'file_magic [[regex]]' -- check by looking for files in library path
5404 # which responds to the $file_magic_cmd with a given extended regex.
5405 # If you have `file' or equivalent on your system and you're not sure
5406 # whether `pass_all' will *always* work, you probably want this one.
5408 case $host_os in
5409 aix[4-9]*)
5410 lt_cv_deplibs_check_method=pass_all
5413 beos*)
5414 lt_cv_deplibs_check_method=pass_all
5417 bsdi[45]*)
5418 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5419 lt_cv_file_magic_cmd='/usr/bin/file -L'
5420 lt_cv_file_magic_test_file=/shlib/libc.so
5423 cygwin*)
5424 # func_win32_libid is a shell function defined in ltmain.sh
5425 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5426 lt_cv_file_magic_cmd='func_win32_libid'
5429 mingw* | pw32*)
5430 # Base MSYS/MinGW do not provide the 'file' command needed by
5431 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5432 # unless we find 'file', for example because we are cross-compiling.
5433 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5434 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5435 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5436 lt_cv_file_magic_cmd='func_win32_libid'
5437 else
5438 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5439 lt_cv_file_magic_cmd='$OBJDUMP -f'
5443 cegcc*)
5444 # use the weaker test based on 'objdump'. See mingw*.
5445 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5446 lt_cv_file_magic_cmd='$OBJDUMP -f'
5449 darwin* | rhapsody*)
5450 lt_cv_deplibs_check_method=pass_all
5453 freebsd* | dragonfly*)
5454 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5455 case $host_cpu in
5456 i*86 )
5457 # Not sure whether the presence of OpenBSD here was a mistake.
5458 # Let's accept both of them until this is cleared up.
5459 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5460 lt_cv_file_magic_cmd=/usr/bin/file
5461 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5463 esac
5464 else
5465 lt_cv_deplibs_check_method=pass_all
5469 gnu*)
5470 lt_cv_deplibs_check_method=pass_all
5473 haiku*)
5474 lt_cv_deplibs_check_method=pass_all
5477 hpux10.20* | hpux11*)
5478 lt_cv_file_magic_cmd=/usr/bin/file
5479 case $host_cpu in
5480 ia64*)
5481 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5482 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5484 hppa*64*)
5485 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]'
5486 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5489 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5490 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5492 esac
5495 interix[3-9]*)
5496 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5497 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5500 irix5* | irix6* | nonstopux*)
5501 case $LD in
5502 *-32|*"-32 ") libmagic=32-bit;;
5503 *-n32|*"-n32 ") libmagic=N32;;
5504 *-64|*"-64 ") libmagic=64-bit;;
5505 *) libmagic=never-match;;
5506 esac
5507 lt_cv_deplibs_check_method=pass_all
5510 # This must be Linux ELF.
5511 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5512 lt_cv_deplibs_check_method=pass_all
5515 netbsd*)
5516 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5517 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5518 else
5519 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5523 newos6*)
5524 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5525 lt_cv_file_magic_cmd=/usr/bin/file
5526 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5529 *nto* | *qnx*)
5530 lt_cv_deplibs_check_method=pass_all
5533 openbsd*)
5534 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5535 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5536 else
5537 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5541 osf3* | osf4* | osf5*)
5542 lt_cv_deplibs_check_method=pass_all
5545 rdos*)
5546 lt_cv_deplibs_check_method=pass_all
5549 solaris*)
5550 lt_cv_deplibs_check_method=pass_all
5553 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5554 lt_cv_deplibs_check_method=pass_all
5557 sysv4 | sysv4.3*)
5558 case $host_vendor in
5559 motorola)
5560 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]'
5561 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5563 ncr)
5564 lt_cv_deplibs_check_method=pass_all
5566 sequent)
5567 lt_cv_file_magic_cmd='/bin/file'
5568 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5570 sni)
5571 lt_cv_file_magic_cmd='/bin/file'
5572 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5573 lt_cv_file_magic_test_file=/lib/libc.so
5575 siemens)
5576 lt_cv_deplibs_check_method=pass_all
5579 lt_cv_deplibs_check_method=pass_all
5581 esac
5584 tpf*)
5585 lt_cv_deplibs_check_method=pass_all
5587 esac
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5591 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5592 file_magic_cmd=$lt_cv_file_magic_cmd
5593 deplibs_check_method=$lt_cv_deplibs_check_method
5594 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5607 if test -n "$ac_tool_prefix"; then
5608 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5609 set dummy ${ac_tool_prefix}ar; ac_word=$2
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5611 $as_echo_n "checking for $ac_word... " >&6; }
5612 if test "${ac_cv_prog_AR+set}" = set; then :
5613 $as_echo_n "(cached) " >&6
5614 else
5615 if test -n "$AR"; then
5616 ac_cv_prog_AR="$AR" # Let the user override the test.
5617 else
5618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5619 for as_dir in $PATH
5621 IFS=$as_save_IFS
5622 test -z "$as_dir" && as_dir=.
5623 for ac_exec_ext in '' $ac_executable_extensions; do
5624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5625 ac_cv_prog_AR="${ac_tool_prefix}ar"
5626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5627 break 2
5629 done
5630 done
5631 IFS=$as_save_IFS
5635 AR=$ac_cv_prog_AR
5636 if test -n "$AR"; then
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5638 $as_echo "$AR" >&6; }
5639 else
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5641 $as_echo "no" >&6; }
5646 if test -z "$ac_cv_prog_AR"; then
5647 ac_ct_AR=$AR
5648 # Extract the first word of "ar", so it can be a program name with args.
5649 set dummy ar; ac_word=$2
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5651 $as_echo_n "checking for $ac_word... " >&6; }
5652 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5653 $as_echo_n "(cached) " >&6
5654 else
5655 if test -n "$ac_ct_AR"; then
5656 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5657 else
5658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5659 for as_dir in $PATH
5661 IFS=$as_save_IFS
5662 test -z "$as_dir" && as_dir=.
5663 for ac_exec_ext in '' $ac_executable_extensions; do
5664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5665 ac_cv_prog_ac_ct_AR="ar"
5666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5667 break 2
5669 done
5670 done
5671 IFS=$as_save_IFS
5675 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5676 if test -n "$ac_ct_AR"; then
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5678 $as_echo "$ac_ct_AR" >&6; }
5679 else
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5681 $as_echo "no" >&6; }
5684 if test "x$ac_ct_AR" = x; then
5685 AR="false"
5686 else
5687 case $cross_compiling:$ac_tool_warned in
5688 yes:)
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5690 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5691 ac_tool_warned=yes ;;
5692 esac
5693 AR=$ac_ct_AR
5695 else
5696 AR="$ac_cv_prog_AR"
5699 test -z "$AR" && AR=ar
5700 test -z "$AR_FLAGS" && AR_FLAGS=cru
5712 if test -n "$ac_tool_prefix"; then
5713 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5714 set dummy ${ac_tool_prefix}strip; ac_word=$2
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5716 $as_echo_n "checking for $ac_word... " >&6; }
5717 if test "${ac_cv_prog_STRIP+set}" = set; then :
5718 $as_echo_n "(cached) " >&6
5719 else
5720 if test -n "$STRIP"; then
5721 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5722 else
5723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5724 for as_dir in $PATH
5726 IFS=$as_save_IFS
5727 test -z "$as_dir" && as_dir=.
5728 for ac_exec_ext in '' $ac_executable_extensions; do
5729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5730 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5732 break 2
5734 done
5735 done
5736 IFS=$as_save_IFS
5740 STRIP=$ac_cv_prog_STRIP
5741 if test -n "$STRIP"; then
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5743 $as_echo "$STRIP" >&6; }
5744 else
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5746 $as_echo "no" >&6; }
5751 if test -z "$ac_cv_prog_STRIP"; then
5752 ac_ct_STRIP=$STRIP
5753 # Extract the first word of "strip", so it can be a program name with args.
5754 set dummy strip; ac_word=$2
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5756 $as_echo_n "checking for $ac_word... " >&6; }
5757 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5758 $as_echo_n "(cached) " >&6
5759 else
5760 if test -n "$ac_ct_STRIP"; then
5761 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5762 else
5763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5764 for as_dir in $PATH
5766 IFS=$as_save_IFS
5767 test -z "$as_dir" && as_dir=.
5768 for ac_exec_ext in '' $ac_executable_extensions; do
5769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5770 ac_cv_prog_ac_ct_STRIP="strip"
5771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5772 break 2
5774 done
5775 done
5776 IFS=$as_save_IFS
5780 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5781 if test -n "$ac_ct_STRIP"; then
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5783 $as_echo "$ac_ct_STRIP" >&6; }
5784 else
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5786 $as_echo "no" >&6; }
5789 if test "x$ac_ct_STRIP" = x; then
5790 STRIP=":"
5791 else
5792 case $cross_compiling:$ac_tool_warned in
5793 yes:)
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5796 ac_tool_warned=yes ;;
5797 esac
5798 STRIP=$ac_ct_STRIP
5800 else
5801 STRIP="$ac_cv_prog_STRIP"
5804 test -z "$STRIP" && STRIP=:
5811 if test -n "$ac_tool_prefix"; then
5812 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5813 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5815 $as_echo_n "checking for $ac_word... " >&6; }
5816 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5817 $as_echo_n "(cached) " >&6
5818 else
5819 if test -n "$RANLIB"; then
5820 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5821 else
5822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5823 for as_dir in $PATH
5825 IFS=$as_save_IFS
5826 test -z "$as_dir" && as_dir=.
5827 for ac_exec_ext in '' $ac_executable_extensions; do
5828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5829 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5831 break 2
5833 done
5834 done
5835 IFS=$as_save_IFS
5839 RANLIB=$ac_cv_prog_RANLIB
5840 if test -n "$RANLIB"; then
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5842 $as_echo "$RANLIB" >&6; }
5843 else
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5845 $as_echo "no" >&6; }
5850 if test -z "$ac_cv_prog_RANLIB"; then
5851 ac_ct_RANLIB=$RANLIB
5852 # Extract the first word of "ranlib", so it can be a program name with args.
5853 set dummy ranlib; ac_word=$2
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5855 $as_echo_n "checking for $ac_word... " >&6; }
5856 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5857 $as_echo_n "(cached) " >&6
5858 else
5859 if test -n "$ac_ct_RANLIB"; then
5860 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5861 else
5862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5863 for as_dir in $PATH
5865 IFS=$as_save_IFS
5866 test -z "$as_dir" && as_dir=.
5867 for ac_exec_ext in '' $ac_executable_extensions; do
5868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5869 ac_cv_prog_ac_ct_RANLIB="ranlib"
5870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5871 break 2
5873 done
5874 done
5875 IFS=$as_save_IFS
5879 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5880 if test -n "$ac_ct_RANLIB"; then
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5882 $as_echo "$ac_ct_RANLIB" >&6; }
5883 else
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5885 $as_echo "no" >&6; }
5888 if test "x$ac_ct_RANLIB" = x; then
5889 RANLIB=":"
5890 else
5891 case $cross_compiling:$ac_tool_warned in
5892 yes:)
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5894 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5895 ac_tool_warned=yes ;;
5896 esac
5897 RANLIB=$ac_ct_RANLIB
5899 else
5900 RANLIB="$ac_cv_prog_RANLIB"
5903 test -z "$RANLIB" && RANLIB=:
5910 # Determine commands to create old-style static archives.
5911 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5912 old_postinstall_cmds='chmod 644 $oldlib'
5913 old_postuninstall_cmds=
5915 if test -n "$RANLIB"; then
5916 case $host_os in
5917 openbsd*)
5918 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5921 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5923 esac
5924 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5927 case $host_os in
5928 darwin*)
5929 lock_old_archive_extraction=yes ;;
5931 lock_old_archive_extraction=no ;;
5932 esac
5972 # If no C compiler was specified, use CC.
5973 LTCC=${LTCC-"$CC"}
5975 # If no C compiler flags were specified, use CFLAGS.
5976 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5978 # Allow CC to be a program name with arguments.
5979 compiler=$CC
5982 # Check for command to grab the raw symbol name followed by C symbol from nm.
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5984 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5985 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5986 $as_echo_n "(cached) " >&6
5987 else
5989 # These are sane defaults that work on at least a few old systems.
5990 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5992 # Character class describing NM global symbol codes.
5993 symcode='[BCDEGRST]'
5995 # Regexp to match symbols that can be accessed directly from C.
5996 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5998 # Define system-specific variables.
5999 case $host_os in
6000 aix*)
6001 symcode='[BCDT]'
6003 cygwin* | mingw* | pw32* | cegcc*)
6004 symcode='[ABCDGISTW]'
6006 hpux*)
6007 if test "$host_cpu" = ia64; then
6008 symcode='[ABCDEGRST]'
6011 irix* | nonstopux*)
6012 symcode='[BCDEGRST]'
6014 osf*)
6015 symcode='[BCDEGQRST]'
6017 solaris*)
6018 symcode='[BDRT]'
6020 sco3.2v5*)
6021 symcode='[DT]'
6023 sysv4.2uw2*)
6024 symcode='[DT]'
6026 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6027 symcode='[ABDT]'
6029 sysv4)
6030 symcode='[DFNSTU]'
6032 esac
6034 # If we're using GNU nm, then use its standard symbol codes.
6035 case `$NM -V 2>&1` in
6036 *GNU* | *'with BFD'*)
6037 symcode='[ABCDGIRSTW]' ;;
6038 esac
6040 # Transform an extracted symbol line into a proper C declaration.
6041 # Some systems (esp. on ia64) link data and code symbols differently,
6042 # so use this general approach.
6043 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6045 # Transform an extracted symbol line into symbol name and symbol address
6046 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6047 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'"
6049 # Handle CRLF in mingw tool chain
6050 opt_cr=
6051 case $build_os in
6052 mingw*)
6053 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6055 esac
6057 # Try without a prefix underscore, then with it.
6058 for ac_symprfx in "" "_"; do
6060 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6061 symxfrm="\\1 $ac_symprfx\\2 \\2"
6063 # Write the raw and C identifiers.
6064 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6065 # Fake it for dumpbin and say T for any non-static function
6066 # and D for any global variable.
6067 # Also find C++ and __fastcall symbols from MSVC++,
6068 # which start with @ or ?.
6069 lt_cv_sys_global_symbol_pipe="$AWK '"\
6070 " {last_section=section; section=\$ 3};"\
6071 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6072 " \$ 0!~/External *\|/{next};"\
6073 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6074 " {if(hide[section]) next};"\
6075 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6076 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6077 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6078 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6079 " ' prfx=^$ac_symprfx"
6080 else
6081 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6084 # Check to see that the pipe works correctly.
6085 pipe_works=no
6087 rm -f conftest*
6088 cat > conftest.$ac_ext <<_LT_EOF
6089 #ifdef __cplusplus
6090 extern "C" {
6091 #endif
6092 char nm_test_var;
6093 void nm_test_func(void);
6094 void nm_test_func(void){}
6095 #ifdef __cplusplus
6097 #endif
6098 int main(){nm_test_var='a';nm_test_func();return(0);}
6099 _LT_EOF
6101 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6102 (eval $ac_compile) 2>&5
6103 ac_status=$?
6104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6105 test $ac_status = 0; }; then
6106 # Now try to grab the symbols.
6107 nlist=conftest.nm
6108 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6109 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6110 ac_status=$?
6111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6112 test $ac_status = 0; } && test -s "$nlist"; then
6113 # Try sorting and uniquifying the output.
6114 if sort "$nlist" | uniq > "$nlist"T; then
6115 mv -f "$nlist"T "$nlist"
6116 else
6117 rm -f "$nlist"T
6120 # Make sure that we snagged all the symbols we need.
6121 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6122 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6123 cat <<_LT_EOF > conftest.$ac_ext
6124 #ifdef __cplusplus
6125 extern "C" {
6126 #endif
6128 _LT_EOF
6129 # Now generate the symbol file.
6130 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6132 cat <<_LT_EOF >> conftest.$ac_ext
6134 /* The mapping between symbol names and symbols. */
6135 const struct {
6136 const char *name;
6137 void *address;
6139 lt__PROGRAM__LTX_preloaded_symbols[] =
6141 { "@PROGRAM@", (void *) 0 },
6142 _LT_EOF
6143 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6144 cat <<\_LT_EOF >> conftest.$ac_ext
6145 {0, (void *) 0}
6148 /* This works around a problem in FreeBSD linker */
6149 #ifdef FREEBSD_WORKAROUND
6150 static const void *lt_preloaded_setup() {
6151 return lt__PROGRAM__LTX_preloaded_symbols;
6153 #endif
6155 #ifdef __cplusplus
6157 #endif
6158 _LT_EOF
6159 # Now try linking the two files.
6160 mv conftest.$ac_objext conftstm.$ac_objext
6161 lt_save_LIBS="$LIBS"
6162 lt_save_CFLAGS="$CFLAGS"
6163 LIBS="conftstm.$ac_objext"
6164 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6165 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6166 (eval $ac_link) 2>&5
6167 ac_status=$?
6168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6169 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6170 pipe_works=yes
6172 LIBS="$lt_save_LIBS"
6173 CFLAGS="$lt_save_CFLAGS"
6174 else
6175 echo "cannot find nm_test_func in $nlist" >&5
6177 else
6178 echo "cannot find nm_test_var in $nlist" >&5
6180 else
6181 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6183 else
6184 echo "$progname: failed program was:" >&5
6185 cat conftest.$ac_ext >&5
6187 rm -rf conftest* conftst*
6189 # Do not use the global_symbol_pipe unless it works.
6190 if test "$pipe_works" = yes; then
6191 break
6192 else
6193 lt_cv_sys_global_symbol_pipe=
6195 done
6199 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6200 lt_cv_sys_global_symbol_to_cdecl=
6202 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6204 $as_echo "failed" >&6; }
6205 else
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6207 $as_echo "ok" >&6; }
6231 # Check whether --enable-libtool-lock was given.
6232 if test "${enable_libtool_lock+set}" = set; then :
6233 enableval=$enable_libtool_lock;
6236 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6238 # Some flags need to be propagated to the compiler or linker for good
6239 # libtool support.
6240 case $host in
6241 ia64-*-hpux*)
6242 # Find out which ABI we are using.
6243 echo 'int i;' > conftest.$ac_ext
6244 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6245 (eval $ac_compile) 2>&5
6246 ac_status=$?
6247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6248 test $ac_status = 0; }; then
6249 case `/usr/bin/file conftest.$ac_objext` in
6250 *ELF-32*)
6251 HPUX_IA64_MODE="32"
6253 *ELF-64*)
6254 HPUX_IA64_MODE="64"
6256 esac
6258 rm -rf conftest*
6260 *-*-irix6*)
6261 # Find out which ABI we are using.
6262 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6263 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6264 (eval $ac_compile) 2>&5
6265 ac_status=$?
6266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6267 test $ac_status = 0; }; then
6268 if test "$lt_cv_prog_gnu_ld" = yes; then
6269 case `/usr/bin/file conftest.$ac_objext` in
6270 *32-bit*)
6271 LD="${LD-ld} -melf32bsmip"
6273 *N32*)
6274 LD="${LD-ld} -melf32bmipn32"
6276 *64-bit*)
6277 LD="${LD-ld} -melf64bmip"
6279 esac
6280 else
6281 case `/usr/bin/file conftest.$ac_objext` in
6282 *32-bit*)
6283 LD="${LD-ld} -32"
6285 *N32*)
6286 LD="${LD-ld} -n32"
6288 *64-bit*)
6289 LD="${LD-ld} -64"
6291 esac
6294 rm -rf conftest*
6297 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6298 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6299 # Find out which ABI we are using.
6300 echo 'int i;' > conftest.$ac_ext
6301 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6302 (eval $ac_compile) 2>&5
6303 ac_status=$?
6304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6305 test $ac_status = 0; }; then
6306 case `/usr/bin/file conftest.o` in
6307 *32-bit*)
6308 case $host in
6309 x86_64-*kfreebsd*-gnu)
6310 LD="${LD-ld} -m elf_i386_fbsd"
6312 x86_64-*linux*)
6313 case `/usr/bin/file conftest.o` in
6314 *x86-64*)
6315 LD="${LD-ld} -m elf32_x86_64"
6318 LD="${LD-ld} -m elf_i386"
6320 esac
6322 powerpc64le-*linux*)
6323 LD="${LD-ld} -m elf32lppclinux"
6325 powerpc64-*linux*)
6326 LD="${LD-ld} -m elf32ppclinux"
6328 s390x-*linux*)
6329 LD="${LD-ld} -m elf_s390"
6331 sparc64-*linux*)
6332 LD="${LD-ld} -m elf32_sparc"
6334 esac
6336 *64-bit*)
6337 case $host in
6338 x86_64-*kfreebsd*-gnu)
6339 LD="${LD-ld} -m elf_x86_64_fbsd"
6341 x86_64-*linux*)
6342 LD="${LD-ld} -m elf_x86_64"
6344 powerpcle-*linux*)
6345 LD="${LD-ld} -m elf64lppc"
6347 powerpc-*linux*)
6348 LD="${LD-ld} -m elf64ppc"
6350 s390*-*linux*|s390*-*tpf*)
6351 LD="${LD-ld} -m elf64_s390"
6353 sparc*-*linux*)
6354 LD="${LD-ld} -m elf64_sparc"
6356 esac
6358 esac
6360 rm -rf conftest*
6363 *-*-sco3.2v5*)
6364 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6365 SAVE_CFLAGS="$CFLAGS"
6366 CFLAGS="$CFLAGS -belf"
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6368 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6369 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6370 $as_echo_n "(cached) " >&6
6371 else
6372 ac_ext=c
6373 ac_cpp='$CPP $CPPFLAGS'
6374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6379 /* end confdefs.h. */
6382 main ()
6386 return 0;
6388 _ACEOF
6389 if ac_fn_c_try_link "$LINENO"; then :
6390 lt_cv_cc_needs_belf=yes
6391 else
6392 lt_cv_cc_needs_belf=no
6394 rm -f core conftest.err conftest.$ac_objext \
6395 conftest$ac_exeext conftest.$ac_ext
6396 ac_ext=c
6397 ac_cpp='$CPP $CPPFLAGS'
6398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6404 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6405 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6406 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6407 CFLAGS="$SAVE_CFLAGS"
6410 sparc*-*solaris*)
6411 # Find out which ABI we are using.
6412 echo 'int i;' > conftest.$ac_ext
6413 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6414 (eval $ac_compile) 2>&5
6415 ac_status=$?
6416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6417 test $ac_status = 0; }; then
6418 case `/usr/bin/file conftest.o` in
6419 *64-bit*)
6420 case $lt_cv_prog_gnu_ld in
6421 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6423 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6424 LD="${LD-ld} -64"
6427 esac
6429 esac
6431 rm -rf conftest*
6433 esac
6435 need_locks="$enable_libtool_lock"
6438 case $host_os in
6439 rhapsody* | darwin*)
6440 if test -n "$ac_tool_prefix"; then
6441 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6442 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6444 $as_echo_n "checking for $ac_word... " >&6; }
6445 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6446 $as_echo_n "(cached) " >&6
6447 else
6448 if test -n "$DSYMUTIL"; then
6449 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6450 else
6451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6452 for as_dir in $PATH
6454 IFS=$as_save_IFS
6455 test -z "$as_dir" && as_dir=.
6456 for ac_exec_ext in '' $ac_executable_extensions; do
6457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6458 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6460 break 2
6462 done
6463 done
6464 IFS=$as_save_IFS
6468 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6469 if test -n "$DSYMUTIL"; then
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6471 $as_echo "$DSYMUTIL" >&6; }
6472 else
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6474 $as_echo "no" >&6; }
6479 if test -z "$ac_cv_prog_DSYMUTIL"; then
6480 ac_ct_DSYMUTIL=$DSYMUTIL
6481 # Extract the first word of "dsymutil", so it can be a program name with args.
6482 set dummy dsymutil; ac_word=$2
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6484 $as_echo_n "checking for $ac_word... " >&6; }
6485 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6486 $as_echo_n "(cached) " >&6
6487 else
6488 if test -n "$ac_ct_DSYMUTIL"; then
6489 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6490 else
6491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6492 for as_dir in $PATH
6494 IFS=$as_save_IFS
6495 test -z "$as_dir" && as_dir=.
6496 for ac_exec_ext in '' $ac_executable_extensions; do
6497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6498 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6500 break 2
6502 done
6503 done
6504 IFS=$as_save_IFS
6508 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6509 if test -n "$ac_ct_DSYMUTIL"; then
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6511 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6512 else
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6514 $as_echo "no" >&6; }
6517 if test "x$ac_ct_DSYMUTIL" = x; then
6518 DSYMUTIL=":"
6519 else
6520 case $cross_compiling:$ac_tool_warned in
6521 yes:)
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6523 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6524 ac_tool_warned=yes ;;
6525 esac
6526 DSYMUTIL=$ac_ct_DSYMUTIL
6528 else
6529 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6532 if test -n "$ac_tool_prefix"; then
6533 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6534 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6536 $as_echo_n "checking for $ac_word... " >&6; }
6537 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6538 $as_echo_n "(cached) " >&6
6539 else
6540 if test -n "$NMEDIT"; then
6541 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6542 else
6543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6544 for as_dir in $PATH
6546 IFS=$as_save_IFS
6547 test -z "$as_dir" && as_dir=.
6548 for ac_exec_ext in '' $ac_executable_extensions; do
6549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6550 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6552 break 2
6554 done
6555 done
6556 IFS=$as_save_IFS
6560 NMEDIT=$ac_cv_prog_NMEDIT
6561 if test -n "$NMEDIT"; then
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6563 $as_echo "$NMEDIT" >&6; }
6564 else
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6566 $as_echo "no" >&6; }
6571 if test -z "$ac_cv_prog_NMEDIT"; then
6572 ac_ct_NMEDIT=$NMEDIT
6573 # Extract the first word of "nmedit", so it can be a program name with args.
6574 set dummy nmedit; ac_word=$2
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6576 $as_echo_n "checking for $ac_word... " >&6; }
6577 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6578 $as_echo_n "(cached) " >&6
6579 else
6580 if test -n "$ac_ct_NMEDIT"; then
6581 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6582 else
6583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584 for as_dir in $PATH
6586 IFS=$as_save_IFS
6587 test -z "$as_dir" && as_dir=.
6588 for ac_exec_ext in '' $ac_executable_extensions; do
6589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6590 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6592 break 2
6594 done
6595 done
6596 IFS=$as_save_IFS
6600 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6601 if test -n "$ac_ct_NMEDIT"; then
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6603 $as_echo "$ac_ct_NMEDIT" >&6; }
6604 else
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6606 $as_echo "no" >&6; }
6609 if test "x$ac_ct_NMEDIT" = x; then
6610 NMEDIT=":"
6611 else
6612 case $cross_compiling:$ac_tool_warned in
6613 yes:)
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6616 ac_tool_warned=yes ;;
6617 esac
6618 NMEDIT=$ac_ct_NMEDIT
6620 else
6621 NMEDIT="$ac_cv_prog_NMEDIT"
6624 if test -n "$ac_tool_prefix"; then
6625 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6626 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6628 $as_echo_n "checking for $ac_word... " >&6; }
6629 if test "${ac_cv_prog_LIPO+set}" = set; then :
6630 $as_echo_n "(cached) " >&6
6631 else
6632 if test -n "$LIPO"; then
6633 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6634 else
6635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636 for as_dir in $PATH
6638 IFS=$as_save_IFS
6639 test -z "$as_dir" && as_dir=.
6640 for ac_exec_ext in '' $ac_executable_extensions; do
6641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6642 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6644 break 2
6646 done
6647 done
6648 IFS=$as_save_IFS
6652 LIPO=$ac_cv_prog_LIPO
6653 if test -n "$LIPO"; then
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6655 $as_echo "$LIPO" >&6; }
6656 else
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6658 $as_echo "no" >&6; }
6663 if test -z "$ac_cv_prog_LIPO"; then
6664 ac_ct_LIPO=$LIPO
6665 # Extract the first word of "lipo", so it can be a program name with args.
6666 set dummy lipo; ac_word=$2
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6668 $as_echo_n "checking for $ac_word... " >&6; }
6669 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6670 $as_echo_n "(cached) " >&6
6671 else
6672 if test -n "$ac_ct_LIPO"; then
6673 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6674 else
6675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676 for as_dir in $PATH
6678 IFS=$as_save_IFS
6679 test -z "$as_dir" && as_dir=.
6680 for ac_exec_ext in '' $ac_executable_extensions; do
6681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6682 ac_cv_prog_ac_ct_LIPO="lipo"
6683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6684 break 2
6686 done
6687 done
6688 IFS=$as_save_IFS
6692 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6693 if test -n "$ac_ct_LIPO"; then
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6695 $as_echo "$ac_ct_LIPO" >&6; }
6696 else
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6698 $as_echo "no" >&6; }
6701 if test "x$ac_ct_LIPO" = x; then
6702 LIPO=":"
6703 else
6704 case $cross_compiling:$ac_tool_warned in
6705 yes:)
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6707 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6708 ac_tool_warned=yes ;;
6709 esac
6710 LIPO=$ac_ct_LIPO
6712 else
6713 LIPO="$ac_cv_prog_LIPO"
6716 if test -n "$ac_tool_prefix"; then
6717 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6718 set dummy ${ac_tool_prefix}otool; ac_word=$2
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6720 $as_echo_n "checking for $ac_word... " >&6; }
6721 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6722 $as_echo_n "(cached) " >&6
6723 else
6724 if test -n "$OTOOL"; then
6725 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6726 else
6727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728 for as_dir in $PATH
6730 IFS=$as_save_IFS
6731 test -z "$as_dir" && as_dir=.
6732 for ac_exec_ext in '' $ac_executable_extensions; do
6733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6734 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6736 break 2
6738 done
6739 done
6740 IFS=$as_save_IFS
6744 OTOOL=$ac_cv_prog_OTOOL
6745 if test -n "$OTOOL"; then
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6747 $as_echo "$OTOOL" >&6; }
6748 else
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6750 $as_echo "no" >&6; }
6755 if test -z "$ac_cv_prog_OTOOL"; then
6756 ac_ct_OTOOL=$OTOOL
6757 # Extract the first word of "otool", so it can be a program name with args.
6758 set dummy otool; ac_word=$2
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6760 $as_echo_n "checking for $ac_word... " >&6; }
6761 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6762 $as_echo_n "(cached) " >&6
6763 else
6764 if test -n "$ac_ct_OTOOL"; then
6765 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6766 else
6767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6768 for as_dir in $PATH
6770 IFS=$as_save_IFS
6771 test -z "$as_dir" && as_dir=.
6772 for ac_exec_ext in '' $ac_executable_extensions; do
6773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6774 ac_cv_prog_ac_ct_OTOOL="otool"
6775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6776 break 2
6778 done
6779 done
6780 IFS=$as_save_IFS
6784 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6785 if test -n "$ac_ct_OTOOL"; then
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6787 $as_echo "$ac_ct_OTOOL" >&6; }
6788 else
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6790 $as_echo "no" >&6; }
6793 if test "x$ac_ct_OTOOL" = x; then
6794 OTOOL=":"
6795 else
6796 case $cross_compiling:$ac_tool_warned in
6797 yes:)
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6799 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6800 ac_tool_warned=yes ;;
6801 esac
6802 OTOOL=$ac_ct_OTOOL
6804 else
6805 OTOOL="$ac_cv_prog_OTOOL"
6808 if test -n "$ac_tool_prefix"; then
6809 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6810 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6812 $as_echo_n "checking for $ac_word... " >&6; }
6813 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6814 $as_echo_n "(cached) " >&6
6815 else
6816 if test -n "$OTOOL64"; then
6817 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6818 else
6819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820 for as_dir in $PATH
6822 IFS=$as_save_IFS
6823 test -z "$as_dir" && as_dir=.
6824 for ac_exec_ext in '' $ac_executable_extensions; do
6825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6826 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6828 break 2
6830 done
6831 done
6832 IFS=$as_save_IFS
6836 OTOOL64=$ac_cv_prog_OTOOL64
6837 if test -n "$OTOOL64"; then
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6839 $as_echo "$OTOOL64" >&6; }
6840 else
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6842 $as_echo "no" >&6; }
6847 if test -z "$ac_cv_prog_OTOOL64"; then
6848 ac_ct_OTOOL64=$OTOOL64
6849 # Extract the first word of "otool64", so it can be a program name with args.
6850 set dummy otool64; ac_word=$2
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6852 $as_echo_n "checking for $ac_word... " >&6; }
6853 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6854 $as_echo_n "(cached) " >&6
6855 else
6856 if test -n "$ac_ct_OTOOL64"; then
6857 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6858 else
6859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860 for as_dir in $PATH
6862 IFS=$as_save_IFS
6863 test -z "$as_dir" && as_dir=.
6864 for ac_exec_ext in '' $ac_executable_extensions; do
6865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6866 ac_cv_prog_ac_ct_OTOOL64="otool64"
6867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6868 break 2
6870 done
6871 done
6872 IFS=$as_save_IFS
6876 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6877 if test -n "$ac_ct_OTOOL64"; then
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6879 $as_echo "$ac_ct_OTOOL64" >&6; }
6880 else
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6882 $as_echo "no" >&6; }
6885 if test "x$ac_ct_OTOOL64" = x; then
6886 OTOOL64=":"
6887 else
6888 case $cross_compiling:$ac_tool_warned in
6889 yes:)
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6891 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6892 ac_tool_warned=yes ;;
6893 esac
6894 OTOOL64=$ac_ct_OTOOL64
6896 else
6897 OTOOL64="$ac_cv_prog_OTOOL64"
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6927 $as_echo_n "checking for -single_module linker flag... " >&6; }
6928 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6929 $as_echo_n "(cached) " >&6
6930 else
6931 lt_cv_apple_cc_single_mod=no
6932 if test -z "${LT_MULTI_MODULE}"; then
6933 # By default we will add the -single_module flag. You can override
6934 # by either setting the environment variable LT_MULTI_MODULE
6935 # non-empty at configure time, or by adding -multi_module to the
6936 # link flags.
6937 rm -rf libconftest.dylib*
6938 echo "int foo(void){return 1;}" > conftest.c
6939 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6940 -dynamiclib -Wl,-single_module conftest.c" >&5
6941 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6942 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6943 _lt_result=$?
6944 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6945 lt_cv_apple_cc_single_mod=yes
6946 else
6947 cat conftest.err >&5
6949 rm -rf libconftest.dylib*
6950 rm -f conftest.*
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6954 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6956 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6957 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6958 $as_echo_n "(cached) " >&6
6959 else
6960 lt_cv_ld_exported_symbols_list=no
6961 save_LDFLAGS=$LDFLAGS
6962 echo "_main" > conftest.sym
6963 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6965 /* end confdefs.h. */
6968 main ()
6972 return 0;
6974 _ACEOF
6975 if ac_fn_c_try_link "$LINENO"; then :
6976 lt_cv_ld_exported_symbols_list=yes
6977 else
6978 lt_cv_ld_exported_symbols_list=no
6980 rm -f core conftest.err conftest.$ac_objext \
6981 conftest$ac_exeext conftest.$ac_ext
6982 LDFLAGS="$save_LDFLAGS"
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6986 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6988 $as_echo_n "checking for -force_load linker flag... " >&6; }
6989 if test "${lt_cv_ld_force_load+set}" = set; then :
6990 $as_echo_n "(cached) " >&6
6991 else
6992 lt_cv_ld_force_load=no
6993 cat > conftest.c << _LT_EOF
6994 int forced_loaded() { return 2;}
6995 _LT_EOF
6996 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6997 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6998 echo "$AR cru libconftest.a conftest.o" >&5
6999 $AR cru libconftest.a conftest.o 2>&5
7000 cat > conftest.c << _LT_EOF
7001 int main() { return 0;}
7002 _LT_EOF
7003 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7004 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7005 _lt_result=$?
7006 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7007 lt_cv_ld_force_load=yes
7008 else
7009 cat conftest.err >&5
7011 rm -f conftest.err libconftest.a conftest conftest.c
7012 rm -rf conftest.dSYM
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7016 $as_echo "$lt_cv_ld_force_load" >&6; }
7017 case $host_os in
7018 rhapsody* | darwin1.[012])
7019 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7020 darwin1.*)
7021 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7022 darwin*) # darwin 5.x on
7023 # if running on 10.5 or later, the deployment target defaults
7024 # to the OS version, if on x86, and 10.4, the deployment
7025 # target defaults to 10.4. Don't you love it?
7026 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7027 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7028 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7029 10.[012][,.]*)
7030 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7031 10.*)
7032 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7033 esac
7035 esac
7036 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7037 _lt_dar_single_mod='$single_module'
7039 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7040 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7041 else
7042 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7044 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7045 _lt_dsymutil='~$DSYMUTIL $lib || :'
7046 else
7047 _lt_dsymutil=
7050 esac
7052 for ac_header in dlfcn.h
7053 do :
7054 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7056 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7057 cat >>confdefs.h <<_ACEOF
7058 #define HAVE_DLFCN_H 1
7059 _ACEOF
7063 done
7069 # Set options
7070 # Check whether --enable-static was given.
7071 if test "${enable_static+set}" = set; then :
7072 enableval=$enable_static; p=${PACKAGE-default}
7073 case $enableval in
7074 yes) enable_static=yes ;;
7075 no) enable_static=no ;;
7077 enable_static=no
7078 # Look at the argument we got. We use all the common list separators.
7079 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7080 for pkg in $enableval; do
7081 IFS="$lt_save_ifs"
7082 if test "X$pkg" = "X$p"; then
7083 enable_static=yes
7085 done
7086 IFS="$lt_save_ifs"
7088 esac
7089 else
7090 enable_static=no
7102 enable_dlopen=no
7105 enable_win32_dll=no
7108 # Check whether --enable-shared was given.
7109 if test "${enable_shared+set}" = set; then :
7110 enableval=$enable_shared; p=${PACKAGE-default}
7111 case $enableval in
7112 yes) enable_shared=yes ;;
7113 no) enable_shared=no ;;
7115 enable_shared=no
7116 # Look at the argument we got. We use all the common list separators.
7117 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7118 for pkg in $enableval; do
7119 IFS="$lt_save_ifs"
7120 if test "X$pkg" = "X$p"; then
7121 enable_shared=yes
7123 done
7124 IFS="$lt_save_ifs"
7126 esac
7127 else
7128 enable_shared=yes
7141 # Check whether --with-pic was given.
7142 if test "${with_pic+set}" = set; then :
7143 withval=$with_pic; pic_mode="$withval"
7144 else
7145 pic_mode=default
7149 test -z "$pic_mode" && pic_mode=default
7157 # Check whether --enable-fast-install was given.
7158 if test "${enable_fast_install+set}" = set; then :
7159 enableval=$enable_fast_install; p=${PACKAGE-default}
7160 case $enableval in
7161 yes) enable_fast_install=yes ;;
7162 no) enable_fast_install=no ;;
7164 enable_fast_install=no
7165 # Look at the argument we got. We use all the common list separators.
7166 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7167 for pkg in $enableval; do
7168 IFS="$lt_save_ifs"
7169 if test "X$pkg" = "X$p"; then
7170 enable_fast_install=yes
7172 done
7173 IFS="$lt_save_ifs"
7175 esac
7176 else
7177 enable_fast_install=yes
7190 # This can be used to rebuild libtool when needed
7191 LIBTOOL_DEPS="$ltmain"
7193 # Always use our own libtool.
7194 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7221 test -z "$LN_S" && LN_S="ln -s"
7236 if test -n "${ZSH_VERSION+set}" ; then
7237 setopt NO_GLOB_SUBST
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7241 $as_echo_n "checking for objdir... " >&6; }
7242 if test "${lt_cv_objdir+set}" = set; then :
7243 $as_echo_n "(cached) " >&6
7244 else
7245 rm -f .libs 2>/dev/null
7246 mkdir .libs 2>/dev/null
7247 if test -d .libs; then
7248 lt_cv_objdir=.libs
7249 else
7250 # MS-DOS does not allow filenames that begin with a dot.
7251 lt_cv_objdir=_libs
7253 rmdir .libs 2>/dev/null
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7256 $as_echo "$lt_cv_objdir" >&6; }
7257 objdir=$lt_cv_objdir
7263 cat >>confdefs.h <<_ACEOF
7264 #define LT_OBJDIR "$lt_cv_objdir/"
7265 _ACEOF
7270 case $host_os in
7271 aix3*)
7272 # AIX sometimes has problems with the GCC collect2 program. For some
7273 # reason, if we set the COLLECT_NAMES environment variable, the problems
7274 # vanish in a puff of smoke.
7275 if test "X${COLLECT_NAMES+set}" != Xset; then
7276 COLLECT_NAMES=
7277 export COLLECT_NAMES
7280 esac
7282 # Global variables:
7283 ofile=libtool
7284 can_build_shared=yes
7286 # All known linkers require a `.a' archive for static linking (except MSVC,
7287 # which needs '.lib').
7288 libext=a
7290 with_gnu_ld="$lt_cv_prog_gnu_ld"
7292 old_CC="$CC"
7293 old_CFLAGS="$CFLAGS"
7295 # Set sane defaults for various variables
7296 test -z "$CC" && CC=cc
7297 test -z "$LTCC" && LTCC=$CC
7298 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7299 test -z "$LD" && LD=ld
7300 test -z "$ac_objext" && ac_objext=o
7302 for cc_temp in $compiler""; do
7303 case $cc_temp in
7304 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7305 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7306 \-*) ;;
7307 *) break;;
7308 esac
7309 done
7310 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7313 # Only perform the check for file, if the check method requires it
7314 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7315 case $deplibs_check_method in
7316 file_magic*)
7317 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7319 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7320 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7321 $as_echo_n "(cached) " >&6
7322 else
7323 case $MAGIC_CMD in
7324 [\\/*] | ?:[\\/]*)
7325 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7328 lt_save_MAGIC_CMD="$MAGIC_CMD"
7329 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7330 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7331 for ac_dir in $ac_dummy; do
7332 IFS="$lt_save_ifs"
7333 test -z "$ac_dir" && ac_dir=.
7334 if test -f $ac_dir/${ac_tool_prefix}file; then
7335 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7336 if test -n "$file_magic_test_file"; then
7337 case $deplibs_check_method in
7338 "file_magic "*)
7339 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7340 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7341 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7342 $EGREP "$file_magic_regex" > /dev/null; then
7344 else
7345 cat <<_LT_EOF 1>&2
7347 *** Warning: the command libtool uses to detect shared libraries,
7348 *** $file_magic_cmd, produces output that libtool cannot recognize.
7349 *** The result is that libtool may fail to recognize shared libraries
7350 *** as such. This will affect the creation of libtool libraries that
7351 *** depend on shared libraries, but programs linked with such libtool
7352 *** libraries will work regardless of this problem. Nevertheless, you
7353 *** may want to report the problem to your system manager and/or to
7354 *** bug-libtool@gnu.org
7356 _LT_EOF
7357 fi ;;
7358 esac
7360 break
7362 done
7363 IFS="$lt_save_ifs"
7364 MAGIC_CMD="$lt_save_MAGIC_CMD"
7366 esac
7369 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7370 if test -n "$MAGIC_CMD"; then
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7372 $as_echo "$MAGIC_CMD" >&6; }
7373 else
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7375 $as_echo "no" >&6; }
7382 if test -z "$lt_cv_path_MAGIC_CMD"; then
7383 if test -n "$ac_tool_prefix"; then
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7385 $as_echo_n "checking for file... " >&6; }
7386 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7387 $as_echo_n "(cached) " >&6
7388 else
7389 case $MAGIC_CMD in
7390 [\\/*] | ?:[\\/]*)
7391 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7394 lt_save_MAGIC_CMD="$MAGIC_CMD"
7395 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7396 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7397 for ac_dir in $ac_dummy; do
7398 IFS="$lt_save_ifs"
7399 test -z "$ac_dir" && ac_dir=.
7400 if test -f $ac_dir/file; then
7401 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7402 if test -n "$file_magic_test_file"; then
7403 case $deplibs_check_method in
7404 "file_magic "*)
7405 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7406 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7407 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7408 $EGREP "$file_magic_regex" > /dev/null; then
7410 else
7411 cat <<_LT_EOF 1>&2
7413 *** Warning: the command libtool uses to detect shared libraries,
7414 *** $file_magic_cmd, produces output that libtool cannot recognize.
7415 *** The result is that libtool may fail to recognize shared libraries
7416 *** as such. This will affect the creation of libtool libraries that
7417 *** depend on shared libraries, but programs linked with such libtool
7418 *** libraries will work regardless of this problem. Nevertheless, you
7419 *** may want to report the problem to your system manager and/or to
7420 *** bug-libtool@gnu.org
7422 _LT_EOF
7423 fi ;;
7424 esac
7426 break
7428 done
7429 IFS="$lt_save_ifs"
7430 MAGIC_CMD="$lt_save_MAGIC_CMD"
7432 esac
7435 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7436 if test -n "$MAGIC_CMD"; then
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7438 $as_echo "$MAGIC_CMD" >&6; }
7439 else
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7441 $as_echo "no" >&6; }
7445 else
7446 MAGIC_CMD=:
7452 esac
7454 # Use C for the default configuration in the libtool script
7456 lt_save_CC="$CC"
7457 ac_ext=c
7458 ac_cpp='$CPP $CPPFLAGS'
7459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7464 # Source file extension for C test sources.
7465 ac_ext=c
7467 # Object file extension for compiled C test sources.
7468 objext=o
7469 objext=$objext
7471 # Code to be used in simple compile tests
7472 lt_simple_compile_test_code="int some_variable = 0;"
7474 # Code to be used in simple link tests
7475 lt_simple_link_test_code='int main(){return(0);}'
7483 # If no C compiler was specified, use CC.
7484 LTCC=${LTCC-"$CC"}
7486 # If no C compiler flags were specified, use CFLAGS.
7487 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7489 # Allow CC to be a program name with arguments.
7490 compiler=$CC
7492 # Save the default compiler, since it gets overwritten when the other
7493 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7494 compiler_DEFAULT=$CC
7496 # save warnings/boilerplate of simple test code
7497 ac_outfile=conftest.$ac_objext
7498 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7499 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7500 _lt_compiler_boilerplate=`cat conftest.err`
7501 $RM conftest*
7503 ac_outfile=conftest.$ac_objext
7504 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7505 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7506 _lt_linker_boilerplate=`cat conftest.err`
7507 $RM -r conftest*
7510 ## CAVEAT EMPTOR:
7511 ## There is no encapsulation within the following macros, do not change
7512 ## the running order or otherwise move them around unless you know exactly
7513 ## what you are doing...
7514 if test -n "$compiler"; then
7516 lt_prog_compiler_no_builtin_flag=
7518 if test "$GCC" = yes; then
7519 case $cc_basename in
7520 nvcc*)
7521 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7523 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7524 esac
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7527 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7528 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7529 $as_echo_n "(cached) " >&6
7530 else
7531 lt_cv_prog_compiler_rtti_exceptions=no
7532 ac_outfile=conftest.$ac_objext
7533 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7534 lt_compiler_flag="-fno-rtti -fno-exceptions"
7535 # Insert the option either (1) after the last *FLAGS variable, or
7536 # (2) before a word containing "conftest.", or (3) at the end.
7537 # Note that $ac_compile itself does not contain backslashes and begins
7538 # with a dollar sign (not a hyphen), so the echo should work correctly.
7539 # The option is referenced via a variable to avoid confusing sed.
7540 lt_compile=`echo "$ac_compile" | $SED \
7541 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7542 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7543 -e 's:$: $lt_compiler_flag:'`
7544 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7545 (eval "$lt_compile" 2>conftest.err)
7546 ac_status=$?
7547 cat conftest.err >&5
7548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7549 if (exit $ac_status) && test -s "$ac_outfile"; then
7550 # The compiler can only warn and ignore the option if not recognized
7551 # So say no if there are warnings other than the usual output.
7552 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7553 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7554 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7555 lt_cv_prog_compiler_rtti_exceptions=yes
7558 $RM conftest*
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7562 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7564 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7565 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7566 else
7577 lt_prog_compiler_wl=
7578 lt_prog_compiler_pic=
7579 lt_prog_compiler_static=
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7582 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7584 if test "$GCC" = yes; then
7585 lt_prog_compiler_wl='-Wl,'
7586 lt_prog_compiler_static='-static'
7588 case $host_os in
7589 aix*)
7590 # All AIX code is PIC.
7591 if test "$host_cpu" = ia64; then
7592 # AIX 5 now supports IA64 processor
7593 lt_prog_compiler_static='-Bstatic'
7595 lt_prog_compiler_pic='-fPIC'
7598 amigaos*)
7599 case $host_cpu in
7600 powerpc)
7601 # see comment about AmigaOS4 .so support
7602 lt_prog_compiler_pic='-fPIC'
7604 m68k)
7605 # FIXME: we need at least 68020 code to build shared libraries, but
7606 # adding the `-m68020' flag to GCC prevents building anything better,
7607 # like `-m68040'.
7608 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7610 esac
7613 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7614 # PIC is the default for these OSes.
7617 mingw* | cygwin* | pw32* | os2* | cegcc*)
7618 # This hack is so that the source file can tell whether it is being
7619 # built for inclusion in a dll (and should export symbols for example).
7620 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7621 # (--disable-auto-import) libraries
7622 lt_prog_compiler_pic='-DDLL_EXPORT'
7625 darwin* | rhapsody*)
7626 # PIC is the default on this platform
7627 # Common symbols not allowed in MH_DYLIB files
7628 lt_prog_compiler_pic='-fno-common'
7631 haiku*)
7632 # PIC is the default for Haiku.
7633 # The "-static" flag exists, but is broken.
7634 lt_prog_compiler_static=
7637 hpux*)
7638 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7639 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7640 # sets the default TLS model and affects inlining.
7641 case $host_cpu in
7642 hppa*64*)
7643 # +Z the default
7646 lt_prog_compiler_pic='-fPIC'
7648 esac
7651 interix[3-9]*)
7652 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7653 # Instead, we relocate shared libraries at runtime.
7656 msdosdjgpp*)
7657 # Just because we use GCC doesn't mean we suddenly get shared libraries
7658 # on systems that don't support them.
7659 lt_prog_compiler_can_build_shared=no
7660 enable_shared=no
7663 *nto* | *qnx*)
7664 # QNX uses GNU C++, but need to define -shared option too, otherwise
7665 # it will coredump.
7666 lt_prog_compiler_pic='-fPIC -shared'
7669 sysv4*MP*)
7670 if test -d /usr/nec; then
7671 lt_prog_compiler_pic=-Kconform_pic
7676 lt_prog_compiler_pic='-fPIC'
7678 esac
7680 case $cc_basename in
7681 nvcc*) # Cuda Compiler Driver 2.2
7682 lt_prog_compiler_wl='-Xlinker '
7683 lt_prog_compiler_pic='-Xcompiler -fPIC'
7685 esac
7686 else
7687 # PORTME Check for flag to pass linker flags through the system compiler.
7688 case $host_os in
7689 aix*)
7690 lt_prog_compiler_wl='-Wl,'
7691 if test "$host_cpu" = ia64; then
7692 # AIX 5 now supports IA64 processor
7693 lt_prog_compiler_static='-Bstatic'
7694 else
7695 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7699 mingw* | cygwin* | pw32* | os2* | cegcc*)
7700 # This hack is so that the source file can tell whether it is being
7701 # built for inclusion in a dll (and should export symbols for example).
7702 lt_prog_compiler_pic='-DDLL_EXPORT'
7705 hpux9* | hpux10* | hpux11*)
7706 lt_prog_compiler_wl='-Wl,'
7707 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7708 # not for PA HP-UX.
7709 case $host_cpu in
7710 hppa*64*|ia64*)
7711 # +Z the default
7714 lt_prog_compiler_pic='+Z'
7716 esac
7717 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7718 lt_prog_compiler_static='${wl}-a ${wl}archive'
7721 irix5* | irix6* | nonstopux*)
7722 lt_prog_compiler_wl='-Wl,'
7723 # PIC (with -KPIC) is the default.
7724 lt_prog_compiler_static='-non_shared'
7727 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7728 case $cc_basename in
7729 # old Intel for x86_64 which still supported -KPIC.
7730 ecc*)
7731 lt_prog_compiler_wl='-Wl,'
7732 lt_prog_compiler_pic='-KPIC'
7733 lt_prog_compiler_static='-static'
7735 # icc used to be incompatible with GCC.
7736 # ICC 10 doesn't accept -KPIC any more.
7737 icc* | ifort*)
7738 lt_prog_compiler_wl='-Wl,'
7739 lt_prog_compiler_pic='-fPIC'
7740 lt_prog_compiler_static='-static'
7742 # Lahey Fortran 8.1.
7743 lf95*)
7744 lt_prog_compiler_wl='-Wl,'
7745 lt_prog_compiler_pic='--shared'
7746 lt_prog_compiler_static='--static'
7748 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7749 # Portland Group compilers (*not* the Pentium gcc compiler,
7750 # which looks to be a dead project)
7751 lt_prog_compiler_wl='-Wl,'
7752 lt_prog_compiler_pic='-fpic'
7753 lt_prog_compiler_static='-Bstatic'
7755 ccc*)
7756 lt_prog_compiler_wl='-Wl,'
7757 # All Alpha code is PIC.
7758 lt_prog_compiler_static='-non_shared'
7760 xl* | bgxl* | bgf* | mpixl*)
7761 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7762 lt_prog_compiler_wl='-Wl,'
7763 lt_prog_compiler_pic='-qpic'
7764 lt_prog_compiler_static='-qstaticlink'
7767 case `$CC -V 2>&1 | sed 5q` in
7768 *Sun\ F* | *Sun*Fortran*)
7769 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7770 lt_prog_compiler_pic='-KPIC'
7771 lt_prog_compiler_static='-Bstatic'
7772 lt_prog_compiler_wl=''
7774 *Sun\ C*)
7775 # Sun C 5.9
7776 lt_prog_compiler_pic='-KPIC'
7777 lt_prog_compiler_static='-Bstatic'
7778 lt_prog_compiler_wl='-Wl,'
7780 esac
7782 esac
7785 newsos6)
7786 lt_prog_compiler_pic='-KPIC'
7787 lt_prog_compiler_static='-Bstatic'
7790 *nto* | *qnx*)
7791 # QNX uses GNU C++, but need to define -shared option too, otherwise
7792 # it will coredump.
7793 lt_prog_compiler_pic='-fPIC -shared'
7796 osf3* | osf4* | osf5*)
7797 lt_prog_compiler_wl='-Wl,'
7798 # All OSF/1 code is PIC.
7799 lt_prog_compiler_static='-non_shared'
7802 rdos*)
7803 lt_prog_compiler_static='-non_shared'
7806 solaris*)
7807 lt_prog_compiler_pic='-KPIC'
7808 lt_prog_compiler_static='-Bstatic'
7809 case $cc_basename in
7810 f77* | f90* | f95*)
7811 lt_prog_compiler_wl='-Qoption ld ';;
7813 lt_prog_compiler_wl='-Wl,';;
7814 esac
7817 sunos4*)
7818 lt_prog_compiler_wl='-Qoption ld '
7819 lt_prog_compiler_pic='-PIC'
7820 lt_prog_compiler_static='-Bstatic'
7823 sysv4 | sysv4.2uw2* | sysv4.3*)
7824 lt_prog_compiler_wl='-Wl,'
7825 lt_prog_compiler_pic='-KPIC'
7826 lt_prog_compiler_static='-Bstatic'
7829 sysv4*MP*)
7830 if test -d /usr/nec ;then
7831 lt_prog_compiler_pic='-Kconform_pic'
7832 lt_prog_compiler_static='-Bstatic'
7836 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7837 lt_prog_compiler_wl='-Wl,'
7838 lt_prog_compiler_pic='-KPIC'
7839 lt_prog_compiler_static='-Bstatic'
7842 unicos*)
7843 lt_prog_compiler_wl='-Wl,'
7844 lt_prog_compiler_can_build_shared=no
7847 uts4*)
7848 lt_prog_compiler_pic='-pic'
7849 lt_prog_compiler_static='-Bstatic'
7853 lt_prog_compiler_can_build_shared=no
7855 esac
7858 case $host_os in
7859 # For platforms which do not support PIC, -DPIC is meaningless:
7860 *djgpp*)
7861 lt_prog_compiler_pic=
7864 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7866 esac
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7868 $as_echo "$lt_prog_compiler_pic" >&6; }
7876 # Check to make sure the PIC flag actually works.
7878 if test -n "$lt_prog_compiler_pic"; then
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7880 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7881 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7882 $as_echo_n "(cached) " >&6
7883 else
7884 lt_cv_prog_compiler_pic_works=no
7885 ac_outfile=conftest.$ac_objext
7886 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7887 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7888 # Insert the option either (1) after the last *FLAGS variable, or
7889 # (2) before a word containing "conftest.", or (3) at the end.
7890 # Note that $ac_compile itself does not contain backslashes and begins
7891 # with a dollar sign (not a hyphen), so the echo should work correctly.
7892 # The option is referenced via a variable to avoid confusing sed.
7893 lt_compile=`echo "$ac_compile" | $SED \
7894 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7895 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7896 -e 's:$: $lt_compiler_flag:'`
7897 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7898 (eval "$lt_compile" 2>conftest.err)
7899 ac_status=$?
7900 cat conftest.err >&5
7901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902 if (exit $ac_status) && test -s "$ac_outfile"; then
7903 # The compiler can only warn and ignore the option if not recognized
7904 # So say no if there are warnings other than the usual output.
7905 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7906 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7907 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7908 lt_cv_prog_compiler_pic_works=yes
7911 $RM conftest*
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7915 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7917 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7918 case $lt_prog_compiler_pic in
7919 "" | " "*) ;;
7920 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7921 esac
7922 else
7923 lt_prog_compiler_pic=
7924 lt_prog_compiler_can_build_shared=no
7935 # Check to make sure the static flag actually works.
7937 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7939 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7940 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7941 $as_echo_n "(cached) " >&6
7942 else
7943 lt_cv_prog_compiler_static_works=no
7944 save_LDFLAGS="$LDFLAGS"
7945 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7946 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7947 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7948 # The linker can only warn and ignore the option if not recognized
7949 # So say no if there are warnings
7950 if test -s conftest.err; then
7951 # Append any errors to the config.log.
7952 cat conftest.err 1>&5
7953 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7954 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7955 if diff conftest.exp conftest.er2 >/dev/null; then
7956 lt_cv_prog_compiler_static_works=yes
7958 else
7959 lt_cv_prog_compiler_static_works=yes
7962 $RM -r conftest*
7963 LDFLAGS="$save_LDFLAGS"
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7967 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7969 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7971 else
7972 lt_prog_compiler_static=
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7982 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7983 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7984 $as_echo_n "(cached) " >&6
7985 else
7986 lt_cv_prog_compiler_c_o=no
7987 $RM -r conftest 2>/dev/null
7988 mkdir conftest
7989 cd conftest
7990 mkdir out
7991 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7993 lt_compiler_flag="-o out/conftest2.$ac_objext"
7994 # Insert the option either (1) after the last *FLAGS variable, or
7995 # (2) before a word containing "conftest.", or (3) at the end.
7996 # Note that $ac_compile itself does not contain backslashes and begins
7997 # with a dollar sign (not a hyphen), so the echo should work correctly.
7998 lt_compile=`echo "$ac_compile" | $SED \
7999 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8000 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8001 -e 's:$: $lt_compiler_flag:'`
8002 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8003 (eval "$lt_compile" 2>out/conftest.err)
8004 ac_status=$?
8005 cat out/conftest.err >&5
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8008 then
8009 # The compiler can only warn and ignore the option if not recognized
8010 # So say no if there are warnings
8011 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8012 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8013 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8014 lt_cv_prog_compiler_c_o=yes
8017 chmod u+w . 2>&5
8018 $RM conftest*
8019 # SGI C++ compiler will create directory out/ii_files/ for
8020 # template instantiation
8021 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8022 $RM out/* && rmdir out
8023 cd ..
8024 $RM -r conftest
8025 $RM conftest*
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8029 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8037 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8038 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8039 $as_echo_n "(cached) " >&6
8040 else
8041 lt_cv_prog_compiler_c_o=no
8042 $RM -r conftest 2>/dev/null
8043 mkdir conftest
8044 cd conftest
8045 mkdir out
8046 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8048 lt_compiler_flag="-o out/conftest2.$ac_objext"
8049 # Insert the option either (1) after the last *FLAGS variable, or
8050 # (2) before a word containing "conftest.", or (3) at the end.
8051 # Note that $ac_compile itself does not contain backslashes and begins
8052 # with a dollar sign (not a hyphen), so the echo should work correctly.
8053 lt_compile=`echo "$ac_compile" | $SED \
8054 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8055 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8056 -e 's:$: $lt_compiler_flag:'`
8057 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8058 (eval "$lt_compile" 2>out/conftest.err)
8059 ac_status=$?
8060 cat out/conftest.err >&5
8061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8063 then
8064 # The compiler can only warn and ignore the option if not recognized
8065 # So say no if there are warnings
8066 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8067 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8068 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8069 lt_cv_prog_compiler_c_o=yes
8072 chmod u+w . 2>&5
8073 $RM conftest*
8074 # SGI C++ compiler will create directory out/ii_files/ for
8075 # template instantiation
8076 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8077 $RM out/* && rmdir out
8078 cd ..
8079 $RM -r conftest
8080 $RM conftest*
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8084 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8089 hard_links="nottested"
8090 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8091 # do not overwrite the value of need_locks provided by the user
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8093 $as_echo_n "checking if we can lock with hard links... " >&6; }
8094 hard_links=yes
8095 $RM conftest*
8096 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8097 touch conftest.a
8098 ln conftest.a conftest.b 2>&5 || hard_links=no
8099 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8101 $as_echo "$hard_links" >&6; }
8102 if test "$hard_links" = no; then
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8104 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8105 need_locks=warn
8107 else
8108 need_locks=no
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8117 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8119 runpath_var=
8120 allow_undefined_flag=
8121 always_export_symbols=no
8122 archive_cmds=
8123 archive_expsym_cmds=
8124 compiler_needs_object=no
8125 enable_shared_with_static_runtimes=no
8126 export_dynamic_flag_spec=
8127 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8128 hardcode_automatic=no
8129 hardcode_direct=no
8130 hardcode_direct_absolute=no
8131 hardcode_libdir_flag_spec=
8132 hardcode_libdir_flag_spec_ld=
8133 hardcode_libdir_separator=
8134 hardcode_minus_L=no
8135 hardcode_shlibpath_var=unsupported
8136 inherit_rpath=no
8137 link_all_deplibs=unknown
8138 module_cmds=
8139 module_expsym_cmds=
8140 old_archive_from_new_cmds=
8141 old_archive_from_expsyms_cmds=
8142 thread_safe_flag_spec=
8143 whole_archive_flag_spec=
8144 # include_expsyms should be a list of space-separated symbols to be *always*
8145 # included in the symbol list
8146 include_expsyms=
8147 # exclude_expsyms can be an extended regexp of symbols to exclude
8148 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8149 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8150 # as well as any symbol that contains `d'.
8151 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8152 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8153 # platforms (ab)use it in PIC code, but their linkers get confused if
8154 # the symbol is explicitly referenced. Since portable code cannot
8155 # rely on this symbol name, it's probably fine to never include it in
8156 # preloaded symbol tables.
8157 # Exclude shared library initialization/finalization symbols.
8158 extract_expsyms_cmds=
8160 case $host_os in
8161 cygwin* | mingw* | pw32* | cegcc*)
8162 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8163 # When not using gcc, we currently assume that we are using
8164 # Microsoft Visual C++.
8165 if test "$GCC" != yes; then
8166 with_gnu_ld=no
8169 interix*)
8170 # we just hope/assume this is gcc and not c89 (= MSVC++)
8171 with_gnu_ld=yes
8173 openbsd*)
8174 with_gnu_ld=no
8176 esac
8178 ld_shlibs=yes
8180 # On some targets, GNU ld is compatible enough with the native linker
8181 # that we're better off using the native interface for both.
8182 lt_use_gnu_ld_interface=no
8183 if test "$with_gnu_ld" = yes; then
8184 case $host_os in
8185 aix*)
8186 # The AIX port of GNU ld has always aspired to compatibility
8187 # with the native linker. However, as the warning in the GNU ld
8188 # block says, versions before 2.19.5* couldn't really create working
8189 # shared libraries, regardless of the interface used.
8190 case `$LD -v 2>&1` in
8191 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8192 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8193 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8195 lt_use_gnu_ld_interface=yes
8197 esac
8200 lt_use_gnu_ld_interface=yes
8202 esac
8205 if test "$lt_use_gnu_ld_interface" = yes; then
8206 # If archive_cmds runs LD, not CC, wlarc should be empty
8207 wlarc='${wl}'
8209 # Set some defaults for GNU ld with shared library support. These
8210 # are reset later if shared libraries are not supported. Putting them
8211 # here allows them to be overridden if necessary.
8212 runpath_var=LD_RUN_PATH
8213 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8214 export_dynamic_flag_spec='${wl}--export-dynamic'
8215 # ancient GNU ld didn't support --whole-archive et. al.
8216 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8217 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8218 else
8219 whole_archive_flag_spec=
8221 supports_anon_versioning=no
8222 case `$LD -v 2>&1` in
8223 *GNU\ gold*) supports_anon_versioning=yes ;;
8224 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8225 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8226 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8227 *\ 2.11.*) ;; # other 2.11 versions
8228 *) supports_anon_versioning=yes ;;
8229 esac
8231 # See if GNU ld supports shared libraries.
8232 case $host_os in
8233 aix[3-9]*)
8234 # On AIX/PPC, the GNU linker is very broken
8235 if test "$host_cpu" != ia64; then
8236 ld_shlibs=no
8237 cat <<_LT_EOF 1>&2
8239 *** Warning: the GNU linker, at least up to release 2.19, is reported
8240 *** to be unable to reliably create shared libraries on AIX.
8241 *** Therefore, libtool is disabling shared libraries support. If you
8242 *** really care for shared libraries, you may want to install binutils
8243 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8244 *** You will then need to restart the configuration process.
8246 _LT_EOF
8250 amigaos*)
8251 case $host_cpu in
8252 powerpc)
8253 # see comment about AmigaOS4 .so support
8254 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8255 archive_expsym_cmds=''
8257 m68k)
8258 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)'
8259 hardcode_libdir_flag_spec='-L$libdir'
8260 hardcode_minus_L=yes
8262 esac
8265 beos*)
8266 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8267 allow_undefined_flag=unsupported
8268 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8269 # support --undefined. This deserves some investigation. FIXME
8270 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8271 else
8272 ld_shlibs=no
8276 cygwin* | mingw* | pw32* | cegcc*)
8277 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8278 # as there is no search path for DLLs.
8279 hardcode_libdir_flag_spec='-L$libdir'
8280 export_dynamic_flag_spec='${wl}--export-all-symbols'
8281 allow_undefined_flag=unsupported
8282 always_export_symbols=no
8283 enable_shared_with_static_runtimes=yes
8284 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8286 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8287 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8288 # If the export-symbols file already is a .def file (1st line
8289 # is EXPORTS), use it as is; otherwise, prepend...
8290 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8291 cp $export_symbols $output_objdir/$soname.def;
8292 else
8293 echo EXPORTS > $output_objdir/$soname.def;
8294 cat $export_symbols >> $output_objdir/$soname.def;
8296 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8297 else
8298 ld_shlibs=no
8302 haiku*)
8303 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8304 link_all_deplibs=yes
8307 interix[3-9]*)
8308 hardcode_direct=no
8309 hardcode_shlibpath_var=no
8310 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8311 export_dynamic_flag_spec='${wl}-E'
8312 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8313 # Instead, shared libraries are loaded at an image base (0x10000000 by
8314 # default) and relocated if they conflict, which is a slow very memory
8315 # consuming and fragmenting process. To avoid this, we pick a random,
8316 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8317 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8318 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8319 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'
8322 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8323 tmp_diet=no
8324 if test "$host_os" = linux-dietlibc; then
8325 case $cc_basename in
8326 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8327 esac
8329 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8330 && test "$tmp_diet" = no
8331 then
8332 tmp_addflag=' $pic_flag'
8333 tmp_sharedflag='-shared'
8334 case $cc_basename,$host_cpu in
8335 pgcc*) # Portland Group C compiler
8336 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'
8337 tmp_addflag=' $pic_flag'
8339 pgf77* | pgf90* | pgf95* | pgfortran*)
8340 # Portland Group f77 and f90 compilers
8341 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'
8342 tmp_addflag=' $pic_flag -Mnomain' ;;
8343 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8344 tmp_addflag=' -i_dynamic' ;;
8345 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8346 tmp_addflag=' -i_dynamic -nofor_main' ;;
8347 ifc* | ifort*) # Intel Fortran compiler
8348 tmp_addflag=' -nofor_main' ;;
8349 lf95*) # Lahey Fortran 8.1
8350 whole_archive_flag_spec=
8351 tmp_sharedflag='--shared' ;;
8352 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8353 tmp_sharedflag='-qmkshrobj'
8354 tmp_addflag= ;;
8355 nvcc*) # Cuda Compiler Driver 2.2
8356 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'
8357 compiler_needs_object=yes
8359 esac
8360 case `$CC -V 2>&1 | sed 5q` in
8361 *Sun\ C*) # Sun C 5.9
8362 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'
8363 compiler_needs_object=yes
8364 tmp_sharedflag='-G' ;;
8365 *Sun\ F*) # Sun Fortran 8.3
8366 tmp_sharedflag='-G' ;;
8367 esac
8368 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8370 if test "x$supports_anon_versioning" = xyes; then
8371 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8372 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8373 echo "local: *; };" >> $output_objdir/$libname.ver~
8374 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8377 case $cc_basename in
8378 xlf* | bgf* | bgxlf* | mpixlf*)
8379 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8380 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8381 hardcode_libdir_flag_spec=
8382 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8383 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8384 if test "x$supports_anon_versioning" = xyes; then
8385 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8386 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8387 echo "local: *; };" >> $output_objdir/$libname.ver~
8388 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8391 esac
8392 else
8393 ld_shlibs=no
8397 netbsd*)
8398 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8399 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8400 wlarc=
8401 else
8402 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8403 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8407 solaris*)
8408 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8409 ld_shlibs=no
8410 cat <<_LT_EOF 1>&2
8412 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8413 *** create shared libraries on Solaris systems. Therefore, libtool
8414 *** is disabling shared libraries support. We urge you to upgrade GNU
8415 *** binutils to release 2.9.1 or newer. Another option is to modify
8416 *** your PATH or compiler configuration so that the native linker is
8417 *** used, and then restart.
8419 _LT_EOF
8420 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8421 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8422 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8423 else
8424 ld_shlibs=no
8428 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8429 case `$LD -v 2>&1` in
8430 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8431 ld_shlibs=no
8432 cat <<_LT_EOF 1>&2
8434 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8435 *** reliably create shared libraries on SCO systems. Therefore, libtool
8436 *** is disabling shared libraries support. We urge you to upgrade GNU
8437 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8438 *** your PATH or compiler configuration so that the native linker is
8439 *** used, and then restart.
8441 _LT_EOF
8444 # For security reasons, it is highly recommended that you always
8445 # use absolute paths for naming shared libraries, and exclude the
8446 # DT_RUNPATH tag from executables and libraries. But doing so
8447 # requires that you compile everything twice, which is a pain.
8448 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8449 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8450 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8451 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8452 else
8453 ld_shlibs=no
8456 esac
8459 sunos4*)
8460 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8461 wlarc=
8462 hardcode_direct=yes
8463 hardcode_shlibpath_var=no
8467 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8468 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8469 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8470 else
8471 ld_shlibs=no
8474 esac
8476 if test "$ld_shlibs" = no; then
8477 runpath_var=
8478 hardcode_libdir_flag_spec=
8479 export_dynamic_flag_spec=
8480 whole_archive_flag_spec=
8482 else
8483 # PORTME fill in a description of your system's linker (not GNU ld)
8484 case $host_os in
8485 aix3*)
8486 allow_undefined_flag=unsupported
8487 always_export_symbols=yes
8488 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'
8489 # Note: this linker hardcodes the directories in LIBPATH if there
8490 # are no directories specified by -L.
8491 hardcode_minus_L=yes
8492 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8493 # Neither direct hardcoding nor static linking is supported with a
8494 # broken collect2.
8495 hardcode_direct=unsupported
8499 aix[4-9]*)
8500 if test "$host_cpu" = ia64; then
8501 # On IA64, the linker does run time linking by default, so we don't
8502 # have to do anything special.
8503 aix_use_runtimelinking=no
8504 exp_sym_flag='-Bexport'
8505 no_entry_flag=""
8506 else
8507 # If we're using GNU nm, then we don't want the "-C" option.
8508 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8509 # Also, AIX nm treats weak defined symbols like other global
8510 # defined symbols, whereas GNU nm marks them as "W".
8511 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8512 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'
8513 else
8514 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'
8516 aix_use_runtimelinking=no
8518 # Test if we are trying to use run time linking or normal
8519 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8520 # need to do runtime linking.
8521 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8522 for ld_flag in $LDFLAGS; do
8523 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8524 aix_use_runtimelinking=yes
8525 break
8527 done
8529 esac
8531 exp_sym_flag='-bexport'
8532 no_entry_flag='-bnoentry'
8535 # When large executables or shared objects are built, AIX ld can
8536 # have problems creating the table of contents. If linking a library
8537 # or program results in "error TOC overflow" add -mminimal-toc to
8538 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8539 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8541 archive_cmds=''
8542 hardcode_direct=yes
8543 hardcode_direct_absolute=yes
8544 hardcode_libdir_separator=':'
8545 link_all_deplibs=yes
8546 file_list_spec='${wl}-f,'
8548 if test "$GCC" = yes; then
8549 case $host_os in aix4.[012]|aix4.[012].*)
8550 # We only want to do this on AIX 4.2 and lower, the check
8551 # below for broken collect2 doesn't work under 4.3+
8552 collect2name=`${CC} -print-prog-name=collect2`
8553 if test -f "$collect2name" &&
8554 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8555 then
8556 # We have reworked collect2
8558 else
8559 # We have old collect2
8560 hardcode_direct=unsupported
8561 # It fails to find uninstalled libraries when the uninstalled
8562 # path is not listed in the libpath. Setting hardcode_minus_L
8563 # to unsupported forces relinking
8564 hardcode_minus_L=yes
8565 hardcode_libdir_flag_spec='-L$libdir'
8566 hardcode_libdir_separator=
8569 esac
8570 shared_flag='-shared'
8571 if test "$aix_use_runtimelinking" = yes; then
8572 shared_flag="$shared_flag "'${wl}-G'
8574 else
8575 # not using gcc
8576 if test "$host_cpu" = ia64; then
8577 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8578 # chokes on -Wl,-G. The following line is correct:
8579 shared_flag='-G'
8580 else
8581 if test "$aix_use_runtimelinking" = yes; then
8582 shared_flag='${wl}-G'
8583 else
8584 shared_flag='${wl}-bM:SRE'
8589 export_dynamic_flag_spec='${wl}-bexpall'
8590 # It seems that -bexpall does not export symbols beginning with
8591 # underscore (_), so it is better to generate a list of symbols to export.
8592 always_export_symbols=yes
8593 if test "$aix_use_runtimelinking" = yes; then
8594 # Warning - without using the other runtime loading flags (-brtl),
8595 # -berok will link without error, but may produce a broken library.
8596 allow_undefined_flag='-berok'
8597 # Determine the default libpath from the value encoded in an
8598 # empty executable.
8599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8600 /* end confdefs.h. */
8603 main ()
8607 return 0;
8609 _ACEOF
8610 if ac_fn_c_try_link "$LINENO"; then :
8612 lt_aix_libpath_sed='
8613 /Import File Strings/,/^$/ {
8614 /^0/ {
8615 s/^0 *\(.*\)$/\1/
8619 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8620 # Check for a 64-bit object if we didn't find anything.
8621 if test -z "$aix_libpath"; then
8622 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8625 rm -f core conftest.err conftest.$ac_objext \
8626 conftest$ac_exeext conftest.$ac_ext
8627 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8629 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8630 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"
8631 else
8632 if test "$host_cpu" = ia64; then
8633 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8634 allow_undefined_flag="-z nodefs"
8635 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"
8636 else
8637 # Determine the default libpath from the value encoded in an
8638 # empty executable.
8639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8640 /* end confdefs.h. */
8643 main ()
8647 return 0;
8649 _ACEOF
8650 if ac_fn_c_try_link "$LINENO"; then :
8652 lt_aix_libpath_sed='
8653 /Import File Strings/,/^$/ {
8654 /^0/ {
8655 s/^0 *\(.*\)$/\1/
8659 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8660 # Check for a 64-bit object if we didn't find anything.
8661 if test -z "$aix_libpath"; then
8662 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8665 rm -f core conftest.err conftest.$ac_objext \
8666 conftest$ac_exeext conftest.$ac_ext
8667 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8669 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8670 # Warning - without using the other run time loading flags,
8671 # -berok will link without error, but may produce a broken library.
8672 no_undefined_flag=' ${wl}-bernotok'
8673 allow_undefined_flag=' ${wl}-berok'
8674 if test "$with_gnu_ld" = yes; then
8675 # We only use this code for GNU lds that support --whole-archive.
8676 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8677 else
8678 # Exported symbols can be pulled into shared objects from archives
8679 whole_archive_flag_spec='$convenience'
8681 archive_cmds_need_lc=yes
8682 # This is similar to how AIX traditionally builds its shared libraries.
8683 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'
8688 amigaos*)
8689 case $host_cpu in
8690 powerpc)
8691 # see comment about AmigaOS4 .so support
8692 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8693 archive_expsym_cmds=''
8695 m68k)
8696 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)'
8697 hardcode_libdir_flag_spec='-L$libdir'
8698 hardcode_minus_L=yes
8700 esac
8703 bsdi[45]*)
8704 export_dynamic_flag_spec=-rdynamic
8707 cygwin* | mingw* | pw32* | cegcc*)
8708 # When not using gcc, we currently assume that we are using
8709 # Microsoft Visual C++.
8710 # hardcode_libdir_flag_spec is actually meaningless, as there is
8711 # no search path for DLLs.
8712 hardcode_libdir_flag_spec=' '
8713 allow_undefined_flag=unsupported
8714 # Tell ltmain to make .lib files, not .a files.
8715 libext=lib
8716 # Tell ltmain to make .dll files, not .so files.
8717 shrext_cmds=".dll"
8718 # FIXME: Setting linknames here is a bad hack.
8719 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8720 # The linker will automatically build a .lib file if we build a DLL.
8721 old_archive_from_new_cmds='true'
8722 # FIXME: Should let the user specify the lib program.
8723 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8724 fix_srcfile_path='`cygpath -w "$srcfile"`'
8725 enable_shared_with_static_runtimes=yes
8728 darwin* | rhapsody*)
8731 archive_cmds_need_lc=no
8732 hardcode_direct=no
8733 hardcode_automatic=yes
8734 hardcode_shlibpath_var=unsupported
8735 if test "$lt_cv_ld_force_load" = "yes"; then
8736 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\"`'
8737 else
8738 whole_archive_flag_spec=''
8740 link_all_deplibs=yes
8741 allow_undefined_flag="$_lt_dar_allow_undefined"
8742 case $cc_basename in
8743 ifort*) _lt_dar_can_shared=yes ;;
8744 *) _lt_dar_can_shared=$GCC ;;
8745 esac
8746 if test "$_lt_dar_can_shared" = "yes"; then
8747 output_verbose_link_cmd=func_echo_all
8748 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8749 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8750 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}"
8751 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}"
8753 else
8754 ld_shlibs=no
8759 dgux*)
8760 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8761 hardcode_libdir_flag_spec='-L$libdir'
8762 hardcode_shlibpath_var=no
8765 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8766 # support. Future versions do this automatically, but an explicit c++rt0.o
8767 # does not break anything, and helps significantly (at the cost of a little
8768 # extra space).
8769 freebsd2.2*)
8770 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8771 hardcode_libdir_flag_spec='-R$libdir'
8772 hardcode_direct=yes
8773 hardcode_shlibpath_var=no
8776 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8777 freebsd2.*)
8778 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8779 hardcode_direct=yes
8780 hardcode_minus_L=yes
8781 hardcode_shlibpath_var=no
8784 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8785 freebsd* | dragonfly*)
8786 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8787 hardcode_libdir_flag_spec='-R$libdir'
8788 hardcode_direct=yes
8789 hardcode_shlibpath_var=no
8792 hpux9*)
8793 if test "$GCC" = yes; then
8794 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'
8795 else
8796 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'
8798 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8799 hardcode_libdir_separator=:
8800 hardcode_direct=yes
8802 # hardcode_minus_L: Not really in the search PATH,
8803 # but as the default location of the library.
8804 hardcode_minus_L=yes
8805 export_dynamic_flag_spec='${wl}-E'
8808 hpux10*)
8809 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8810 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8811 else
8812 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8814 if test "$with_gnu_ld" = no; then
8815 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8816 hardcode_libdir_flag_spec_ld='+b $libdir'
8817 hardcode_libdir_separator=:
8818 hardcode_direct=yes
8819 hardcode_direct_absolute=yes
8820 export_dynamic_flag_spec='${wl}-E'
8821 # hardcode_minus_L: Not really in the search PATH,
8822 # but as the default location of the library.
8823 hardcode_minus_L=yes
8827 hpux11*)
8828 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8829 case $host_cpu in
8830 hppa*64*)
8831 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8833 ia64*)
8834 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8837 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8839 esac
8840 else
8841 case $host_cpu in
8842 hppa*64*)
8843 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8845 ia64*)
8846 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8850 # Older versions of the 11.00 compiler do not understand -b yet
8851 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8853 $as_echo_n "checking if $CC understands -b... " >&6; }
8854 if test "${lt_cv_prog_compiler__b+set}" = set; then :
8855 $as_echo_n "(cached) " >&6
8856 else
8857 lt_cv_prog_compiler__b=no
8858 save_LDFLAGS="$LDFLAGS"
8859 LDFLAGS="$LDFLAGS -b"
8860 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8861 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8862 # The linker can only warn and ignore the option if not recognized
8863 # So say no if there are warnings
8864 if test -s conftest.err; then
8865 # Append any errors to the config.log.
8866 cat conftest.err 1>&5
8867 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8868 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8869 if diff conftest.exp conftest.er2 >/dev/null; then
8870 lt_cv_prog_compiler__b=yes
8872 else
8873 lt_cv_prog_compiler__b=yes
8876 $RM -r conftest*
8877 LDFLAGS="$save_LDFLAGS"
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8881 $as_echo "$lt_cv_prog_compiler__b" >&6; }
8883 if test x"$lt_cv_prog_compiler__b" = xyes; then
8884 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8885 else
8886 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8890 esac
8892 if test "$with_gnu_ld" = no; then
8893 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8894 hardcode_libdir_separator=:
8896 case $host_cpu in
8897 hppa*64*|ia64*)
8898 hardcode_direct=no
8899 hardcode_shlibpath_var=no
8902 hardcode_direct=yes
8903 hardcode_direct_absolute=yes
8904 export_dynamic_flag_spec='${wl}-E'
8906 # hardcode_minus_L: Not really in the search PATH,
8907 # but as the default location of the library.
8908 hardcode_minus_L=yes
8910 esac
8914 irix5* | irix6* | nonstopux*)
8915 if test "$GCC" = yes; then
8916 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'
8917 # Try to use the -exported_symbol ld option, if it does not
8918 # work, assume that -exports_file does not work either and
8919 # implicitly export all symbols.
8920 save_LDFLAGS="$LDFLAGS"
8921 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8923 /* end confdefs.h. */
8924 int foo(void) {}
8925 _ACEOF
8926 if ac_fn_c_try_link "$LINENO"; then :
8927 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'
8930 rm -f core conftest.err conftest.$ac_objext \
8931 conftest$ac_exeext conftest.$ac_ext
8932 LDFLAGS="$save_LDFLAGS"
8933 else
8934 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'
8935 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'
8937 archive_cmds_need_lc='no'
8938 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8939 hardcode_libdir_separator=:
8940 inherit_rpath=yes
8941 link_all_deplibs=yes
8944 netbsd*)
8945 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8946 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8947 else
8948 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8950 hardcode_libdir_flag_spec='-R$libdir'
8951 hardcode_direct=yes
8952 hardcode_shlibpath_var=no
8955 newsos6)
8956 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8957 hardcode_direct=yes
8958 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8959 hardcode_libdir_separator=:
8960 hardcode_shlibpath_var=no
8963 *nto* | *qnx*)
8966 openbsd*)
8967 if test -f /usr/libexec/ld.so; then
8968 hardcode_direct=yes
8969 hardcode_shlibpath_var=no
8970 hardcode_direct_absolute=yes
8971 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8972 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8973 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8974 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8975 export_dynamic_flag_spec='${wl}-E'
8976 else
8977 case $host_os in
8978 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8979 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8980 hardcode_libdir_flag_spec='-R$libdir'
8983 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8984 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8986 esac
8988 else
8989 ld_shlibs=no
8993 os2*)
8994 hardcode_libdir_flag_spec='-L$libdir'
8995 hardcode_minus_L=yes
8996 allow_undefined_flag=unsupported
8997 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'
8998 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9001 osf3*)
9002 if test "$GCC" = yes; then
9003 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9004 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'
9005 else
9006 allow_undefined_flag=' -expect_unresolved \*'
9007 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'
9009 archive_cmds_need_lc='no'
9010 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9011 hardcode_libdir_separator=:
9014 osf4* | osf5*) # as osf3* with the addition of -msym flag
9015 if test "$GCC" = yes; then
9016 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9017 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'
9018 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9019 else
9020 allow_undefined_flag=' -expect_unresolved \*'
9021 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'
9022 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~
9023 $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'
9025 # Both c and cxx compiler support -rpath directly
9026 hardcode_libdir_flag_spec='-rpath $libdir'
9028 archive_cmds_need_lc='no'
9029 hardcode_libdir_separator=:
9032 solaris*)
9033 no_undefined_flag=' -z defs'
9034 if test "$GCC" = yes; then
9035 wlarc='${wl}'
9036 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9037 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9038 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9039 else
9040 case `$CC -V 2>&1` in
9041 *"Compilers 5.0"*)
9042 wlarc=''
9043 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9044 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9045 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9048 wlarc='${wl}'
9049 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9050 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9051 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9053 esac
9055 hardcode_libdir_flag_spec='-R$libdir'
9056 hardcode_shlibpath_var=no
9057 case $host_os in
9058 solaris2.[0-5] | solaris2.[0-5].*) ;;
9060 # The compiler driver will combine and reorder linker options,
9061 # but understands `-z linker_flag'. GCC discards it without `$wl',
9062 # but is careful enough not to reorder.
9063 # Supported since Solaris 2.6 (maybe 2.5.1?)
9064 if test "$GCC" = yes; then
9065 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9066 else
9067 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9070 esac
9071 link_all_deplibs=yes
9074 sunos4*)
9075 if test "x$host_vendor" = xsequent; then
9076 # Use $CC to link under sequent, because it throws in some extra .o
9077 # files that make .init and .fini sections work.
9078 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9079 else
9080 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9082 hardcode_libdir_flag_spec='-L$libdir'
9083 hardcode_direct=yes
9084 hardcode_minus_L=yes
9085 hardcode_shlibpath_var=no
9088 sysv4)
9089 case $host_vendor in
9090 sni)
9091 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9092 hardcode_direct=yes # is this really true???
9094 siemens)
9095 ## LD is ld it makes a PLAMLIB
9096 ## CC just makes a GrossModule.
9097 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9098 reload_cmds='$CC -r -o $output$reload_objs'
9099 hardcode_direct=no
9101 motorola)
9102 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9103 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9105 esac
9106 runpath_var='LD_RUN_PATH'
9107 hardcode_shlibpath_var=no
9110 sysv4.3*)
9111 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9112 hardcode_shlibpath_var=no
9113 export_dynamic_flag_spec='-Bexport'
9116 sysv4*MP*)
9117 if test -d /usr/nec; then
9118 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9119 hardcode_shlibpath_var=no
9120 runpath_var=LD_RUN_PATH
9121 hardcode_runpath_var=yes
9122 ld_shlibs=yes
9126 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9127 no_undefined_flag='${wl}-z,text'
9128 archive_cmds_need_lc=no
9129 hardcode_shlibpath_var=no
9130 runpath_var='LD_RUN_PATH'
9132 if test "$GCC" = yes; then
9133 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9134 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9135 else
9136 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9137 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9141 sysv5* | sco3.2v5* | sco5v6*)
9142 # Note: We can NOT use -z defs as we might desire, because we do not
9143 # link with -lc, and that would cause any symbols used from libc to
9144 # always be unresolved, which means just about no library would
9145 # ever link correctly. If we're not using GNU ld we use -z text
9146 # though, which does catch some bad symbols but isn't as heavy-handed
9147 # as -z defs.
9148 no_undefined_flag='${wl}-z,text'
9149 allow_undefined_flag='${wl}-z,nodefs'
9150 archive_cmds_need_lc=no
9151 hardcode_shlibpath_var=no
9152 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9153 hardcode_libdir_separator=':'
9154 link_all_deplibs=yes
9155 export_dynamic_flag_spec='${wl}-Bexport'
9156 runpath_var='LD_RUN_PATH'
9158 if test "$GCC" = yes; then
9159 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9160 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9161 else
9162 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9163 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9167 uts4*)
9168 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9169 hardcode_libdir_flag_spec='-L$libdir'
9170 hardcode_shlibpath_var=no
9174 ld_shlibs=no
9176 esac
9178 if test x$host_vendor = xsni; then
9179 case $host in
9180 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9181 export_dynamic_flag_spec='${wl}-Blargedynsym'
9183 esac
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9188 $as_echo "$ld_shlibs" >&6; }
9189 test "$ld_shlibs" = no && can_build_shared=no
9191 with_gnu_ld=$with_gnu_ld
9208 # Do we need to explicitly link libc?
9210 case "x$archive_cmds_need_lc" in
9211 x|xyes)
9212 # Assume -lc should be added
9213 archive_cmds_need_lc=yes
9215 if test "$enable_shared" = yes && test "$GCC" = yes; then
9216 case $archive_cmds in
9217 *'~'*)
9218 # FIXME: we may have to deal with multi-command sequences.
9220 '$CC '*)
9221 # Test whether the compiler implicitly links with -lc since on some
9222 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9223 # to ld, don't add -lc before -lgcc.
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9225 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9226 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9227 $as_echo_n "(cached) " >&6
9228 else
9229 $RM conftest*
9230 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9232 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9233 (eval $ac_compile) 2>&5
9234 ac_status=$?
9235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9236 test $ac_status = 0; } 2>conftest.err; then
9237 soname=conftest
9238 lib=conftest
9239 libobjs=conftest.$ac_objext
9240 deplibs=
9241 wl=$lt_prog_compiler_wl
9242 pic_flag=$lt_prog_compiler_pic
9243 compiler_flags=-v
9244 linker_flags=-v
9245 verstring=
9246 output_objdir=.
9247 libname=conftest
9248 lt_save_allow_undefined_flag=$allow_undefined_flag
9249 allow_undefined_flag=
9250 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9251 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9252 ac_status=$?
9253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9254 test $ac_status = 0; }
9255 then
9256 lt_cv_archive_cmds_need_lc=no
9257 else
9258 lt_cv_archive_cmds_need_lc=yes
9260 allow_undefined_flag=$lt_save_allow_undefined_flag
9261 else
9262 cat conftest.err 1>&5
9264 $RM conftest*
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9268 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9269 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9271 esac
9274 esac
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9433 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9435 if test "$GCC" = yes; then
9436 case $host_os in
9437 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9438 *) lt_awk_arg="/^libraries:/" ;;
9439 esac
9440 case $host_os in
9441 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9442 *) lt_sed_strip_eq="s,=/,/,g" ;;
9443 esac
9444 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9445 case $lt_search_path_spec in
9446 *\;*)
9447 # if the path contains ";" then we assume it to be the separator
9448 # otherwise default to the standard path separator (i.e. ":") - it is
9449 # assumed that no part of a normal pathname contains ";" but that should
9450 # okay in the real world where ";" in dirpaths is itself problematic.
9451 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9454 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9456 esac
9457 # Ok, now we have the path, separated by spaces, we can step through it
9458 # and add multilib dir if necessary.
9459 lt_tmp_lt_search_path_spec=
9460 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9461 for lt_sys_path in $lt_search_path_spec; do
9462 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9463 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9464 else
9465 test -d "$lt_sys_path" && \
9466 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9468 done
9469 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9470 BEGIN {RS=" "; FS="/|\n";} {
9471 lt_foo="";
9472 lt_count=0;
9473 for (lt_i = NF; lt_i > 0; lt_i--) {
9474 if ($lt_i != "" && $lt_i != ".") {
9475 if ($lt_i == "..") {
9476 lt_count++;
9477 } else {
9478 if (lt_count == 0) {
9479 lt_foo="/" $lt_i lt_foo;
9480 } else {
9481 lt_count--;
9486 if (lt_foo != "") { lt_freq[lt_foo]++; }
9487 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9489 # AWK program above erroneously prepends '/' to C:/dos/paths
9490 # for these hosts.
9491 case $host_os in
9492 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9493 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9494 esac
9495 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9496 else
9497 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9499 library_names_spec=
9500 libname_spec='lib$name'
9501 soname_spec=
9502 shrext_cmds=".so"
9503 postinstall_cmds=
9504 postuninstall_cmds=
9505 finish_cmds=
9506 finish_eval=
9507 shlibpath_var=
9508 shlibpath_overrides_runpath=unknown
9509 version_type=none
9510 dynamic_linker="$host_os ld.so"
9511 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9512 need_lib_prefix=unknown
9513 hardcode_into_libs=no
9515 # when you set need_version to no, make sure it does not cause -set_version
9516 # flags to be left without arguments
9517 need_version=unknown
9519 case $host_os in
9520 aix3*)
9521 version_type=linux
9522 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9523 shlibpath_var=LIBPATH
9525 # AIX 3 has no versioning support, so we append a major version to the name.
9526 soname_spec='${libname}${release}${shared_ext}$major'
9529 aix[4-9]*)
9530 version_type=linux
9531 need_lib_prefix=no
9532 need_version=no
9533 hardcode_into_libs=yes
9534 if test "$host_cpu" = ia64; then
9535 # AIX 5 supports IA64
9536 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9537 shlibpath_var=LD_LIBRARY_PATH
9538 else
9539 # With GCC up to 2.95.x, collect2 would create an import file
9540 # for dependence libraries. The import file would start with
9541 # the line `#! .'. This would cause the generated library to
9542 # depend on `.', always an invalid library. This was fixed in
9543 # development snapshots of GCC prior to 3.0.
9544 case $host_os in
9545 aix4 | aix4.[01] | aix4.[01].*)
9546 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9547 echo ' yes '
9548 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9550 else
9551 can_build_shared=no
9554 esac
9555 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9556 # soname into executable. Probably we can add versioning support to
9557 # collect2, so additional links can be useful in future.
9558 if test "$aix_use_runtimelinking" = yes; then
9559 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9560 # instead of lib<name>.a to let people know that these are not
9561 # typical AIX shared libraries.
9562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9563 else
9564 # We preserve .a as extension for shared libraries through AIX4.2
9565 # and later when we are not doing run time linking.
9566 library_names_spec='${libname}${release}.a $libname.a'
9567 soname_spec='${libname}${release}${shared_ext}$major'
9569 shlibpath_var=LIBPATH
9573 amigaos*)
9574 case $host_cpu in
9575 powerpc)
9576 # Since July 2007 AmigaOS4 officially supports .so libraries.
9577 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9580 m68k)
9581 library_names_spec='$libname.ixlibrary $libname.a'
9582 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9583 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'
9585 esac
9588 beos*)
9589 library_names_spec='${libname}${shared_ext}'
9590 dynamic_linker="$host_os ld.so"
9591 shlibpath_var=LIBRARY_PATH
9594 bsdi[45]*)
9595 version_type=linux
9596 need_version=no
9597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9598 soname_spec='${libname}${release}${shared_ext}$major'
9599 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9600 shlibpath_var=LD_LIBRARY_PATH
9601 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9602 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9603 # the default ld.so.conf also contains /usr/contrib/lib and
9604 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9605 # libtool to hard-code these into programs
9608 cygwin* | mingw* | pw32* | cegcc*)
9609 version_type=windows
9610 shrext_cmds=".dll"
9611 need_version=no
9612 need_lib_prefix=no
9614 case $GCC,$host_os in
9615 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9616 library_names_spec='$libname.dll.a'
9617 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9618 postinstall_cmds='base_file=`basename \${file}`~
9619 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9620 dldir=$destdir/`dirname \$dlpath`~
9621 test -d \$dldir || mkdir -p \$dldir~
9622 $install_prog $dir/$dlname \$dldir/$dlname~
9623 chmod a+x \$dldir/$dlname~
9624 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9625 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9627 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9628 dlpath=$dir/\$dldll~
9629 $RM \$dlpath'
9630 shlibpath_overrides_runpath=yes
9632 case $host_os in
9633 cygwin*)
9634 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9635 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9637 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9639 mingw* | cegcc*)
9640 # MinGW DLLs use traditional 'lib' prefix
9641 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9643 pw32*)
9644 # pw32 DLLs use 'pw' prefix rather than 'lib'
9645 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9647 esac
9651 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9653 esac
9654 dynamic_linker='Win32 ld.exe'
9655 # FIXME: first we should search . and the directory the executable is in
9656 shlibpath_var=PATH
9659 darwin* | rhapsody*)
9660 dynamic_linker="$host_os dyld"
9661 version_type=darwin
9662 need_lib_prefix=no
9663 need_version=no
9664 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9665 soname_spec='${libname}${release}${major}$shared_ext'
9666 shlibpath_overrides_runpath=yes
9667 shlibpath_var=DYLD_LIBRARY_PATH
9668 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9670 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9671 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9674 dgux*)
9675 version_type=linux
9676 need_lib_prefix=no
9677 need_version=no
9678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9679 soname_spec='${libname}${release}${shared_ext}$major'
9680 shlibpath_var=LD_LIBRARY_PATH
9683 freebsd* | dragonfly*)
9684 # DragonFly does not have aout. When/if they implement a new
9685 # versioning mechanism, adjust this.
9686 if test -x /usr/bin/objformat; then
9687 objformat=`/usr/bin/objformat`
9688 else
9689 case $host_os in
9690 freebsd[23].*) objformat=aout ;;
9691 *) objformat=elf ;;
9692 esac
9694 version_type=freebsd-$objformat
9695 case $version_type in
9696 freebsd-elf*)
9697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9698 need_version=no
9699 need_lib_prefix=no
9701 freebsd-*)
9702 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9703 need_version=yes
9705 esac
9706 shlibpath_var=LD_LIBRARY_PATH
9707 case $host_os in
9708 freebsd2.*)
9709 shlibpath_overrides_runpath=yes
9711 freebsd3.[01]* | freebsdelf3.[01]*)
9712 shlibpath_overrides_runpath=yes
9713 hardcode_into_libs=yes
9715 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9716 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9717 shlibpath_overrides_runpath=no
9718 hardcode_into_libs=yes
9720 *) # from 4.6 on, and DragonFly
9721 shlibpath_overrides_runpath=yes
9722 hardcode_into_libs=yes
9724 esac
9727 gnu*)
9728 version_type=linux
9729 need_lib_prefix=no
9730 need_version=no
9731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9732 soname_spec='${libname}${release}${shared_ext}$major'
9733 shlibpath_var=LD_LIBRARY_PATH
9734 hardcode_into_libs=yes
9737 haiku*)
9738 version_type=linux
9739 need_lib_prefix=no
9740 need_version=no
9741 dynamic_linker="$host_os runtime_loader"
9742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9743 soname_spec='${libname}${release}${shared_ext}$major'
9744 shlibpath_var=LIBRARY_PATH
9745 shlibpath_overrides_runpath=yes
9746 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9747 hardcode_into_libs=yes
9750 hpux9* | hpux10* | hpux11*)
9751 # Give a soname corresponding to the major version so that dld.sl refuses to
9752 # link against other versions.
9753 version_type=sunos
9754 need_lib_prefix=no
9755 need_version=no
9756 case $host_cpu in
9757 ia64*)
9758 shrext_cmds='.so'
9759 hardcode_into_libs=yes
9760 dynamic_linker="$host_os dld.so"
9761 shlibpath_var=LD_LIBRARY_PATH
9762 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9764 soname_spec='${libname}${release}${shared_ext}$major'
9765 if test "X$HPUX_IA64_MODE" = X32; then
9766 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9767 else
9768 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9770 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9772 hppa*64*)
9773 shrext_cmds='.sl'
9774 hardcode_into_libs=yes
9775 dynamic_linker="$host_os dld.sl"
9776 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9777 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9779 soname_spec='${libname}${release}${shared_ext}$major'
9780 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9781 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9784 shrext_cmds='.sl'
9785 dynamic_linker="$host_os dld.sl"
9786 shlibpath_var=SHLIB_PATH
9787 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9789 soname_spec='${libname}${release}${shared_ext}$major'
9791 esac
9792 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9793 postinstall_cmds='chmod 555 $lib'
9794 # or fails outright, so override atomically:
9795 install_override_mode=555
9798 interix[3-9]*)
9799 version_type=linux
9800 need_lib_prefix=no
9801 need_version=no
9802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9803 soname_spec='${libname}${release}${shared_ext}$major'
9804 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9805 shlibpath_var=LD_LIBRARY_PATH
9806 shlibpath_overrides_runpath=no
9807 hardcode_into_libs=yes
9810 irix5* | irix6* | nonstopux*)
9811 case $host_os in
9812 nonstopux*) version_type=nonstopux ;;
9814 if test "$lt_cv_prog_gnu_ld" = yes; then
9815 version_type=linux
9816 else
9817 version_type=irix
9818 fi ;;
9819 esac
9820 need_lib_prefix=no
9821 need_version=no
9822 soname_spec='${libname}${release}${shared_ext}$major'
9823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9824 case $host_os in
9825 irix5* | nonstopux*)
9826 libsuff= shlibsuff=
9829 case $LD in # libtool.m4 will add one of these switches to LD
9830 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9831 libsuff= shlibsuff= libmagic=32-bit;;
9832 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9833 libsuff=32 shlibsuff=N32 libmagic=N32;;
9834 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9835 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9836 *) libsuff= shlibsuff= libmagic=never-match;;
9837 esac
9839 esac
9840 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9841 shlibpath_overrides_runpath=no
9842 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9843 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9844 hardcode_into_libs=yes
9847 # No shared lib support for Linux oldld, aout, or coff.
9848 linux*oldld* | linux*aout* | linux*coff*)
9849 dynamic_linker=no
9852 # This must be Linux ELF.
9853 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9854 version_type=linux
9855 need_lib_prefix=no
9856 need_version=no
9857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9858 soname_spec='${libname}${release}${shared_ext}$major'
9859 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9860 shlibpath_var=LD_LIBRARY_PATH
9861 shlibpath_overrides_runpath=no
9863 # Some binutils ld are patched to set DT_RUNPATH
9864 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9865 $as_echo_n "(cached) " >&6
9866 else
9867 lt_cv_shlibpath_overrides_runpath=no
9868 save_LDFLAGS=$LDFLAGS
9869 save_libdir=$libdir
9870 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9871 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9873 /* end confdefs.h. */
9876 main ()
9880 return 0;
9882 _ACEOF
9883 if ac_fn_c_try_link "$LINENO"; then :
9884 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9885 lt_cv_shlibpath_overrides_runpath=yes
9888 rm -f core conftest.err conftest.$ac_objext \
9889 conftest$ac_exeext conftest.$ac_ext
9890 LDFLAGS=$save_LDFLAGS
9891 libdir=$save_libdir
9895 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9897 # This implies no fast_install, which is unacceptable.
9898 # Some rework will be needed to allow for fast_install
9899 # before this can be enabled.
9900 hardcode_into_libs=yes
9902 # Append ld.so.conf contents to the search path
9903 if test -f /etc/ld.so.conf; then
9904 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' ' '`
9905 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9908 # We used to test for /lib/ld.so.1 and disable shared libraries on
9909 # powerpc, because MkLinux only supported shared libraries with the
9910 # GNU dynamic linker. Since this was broken with cross compilers,
9911 # most powerpc-linux boxes support dynamic linking these days and
9912 # people can always --disable-shared, the test was removed, and we
9913 # assume the GNU/Linux dynamic linker is in use.
9914 dynamic_linker='GNU/Linux ld.so'
9917 netbsd*)
9918 version_type=sunos
9919 need_lib_prefix=no
9920 need_version=no
9921 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9923 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9924 dynamic_linker='NetBSD (a.out) ld.so'
9925 else
9926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9927 soname_spec='${libname}${release}${shared_ext}$major'
9928 dynamic_linker='NetBSD ld.elf_so'
9930 shlibpath_var=LD_LIBRARY_PATH
9931 shlibpath_overrides_runpath=yes
9932 hardcode_into_libs=yes
9935 newsos6)
9936 version_type=linux
9937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9938 shlibpath_var=LD_LIBRARY_PATH
9939 shlibpath_overrides_runpath=yes
9942 *nto* | *qnx*)
9943 version_type=qnx
9944 need_lib_prefix=no
9945 need_version=no
9946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9947 soname_spec='${libname}${release}${shared_ext}$major'
9948 shlibpath_var=LD_LIBRARY_PATH
9949 shlibpath_overrides_runpath=no
9950 hardcode_into_libs=yes
9951 dynamic_linker='ldqnx.so'
9954 openbsd*)
9955 version_type=sunos
9956 sys_lib_dlsearch_path_spec="/usr/lib"
9957 need_lib_prefix=no
9958 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9959 case $host_os in
9960 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9961 *) need_version=no ;;
9962 esac
9963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9964 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9965 shlibpath_var=LD_LIBRARY_PATH
9966 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9967 case $host_os in
9968 openbsd2.[89] | openbsd2.[89].*)
9969 shlibpath_overrides_runpath=no
9972 shlibpath_overrides_runpath=yes
9974 esac
9975 else
9976 shlibpath_overrides_runpath=yes
9980 os2*)
9981 libname_spec='$name'
9982 shrext_cmds=".dll"
9983 need_lib_prefix=no
9984 library_names_spec='$libname${shared_ext} $libname.a'
9985 dynamic_linker='OS/2 ld.exe'
9986 shlibpath_var=LIBPATH
9989 osf3* | osf4* | osf5*)
9990 version_type=osf
9991 need_lib_prefix=no
9992 need_version=no
9993 soname_spec='${libname}${release}${shared_ext}$major'
9994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9995 shlibpath_var=LD_LIBRARY_PATH
9996 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9997 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10000 rdos*)
10001 dynamic_linker=no
10004 solaris*)
10005 version_type=linux
10006 need_lib_prefix=no
10007 need_version=no
10008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10009 soname_spec='${libname}${release}${shared_ext}$major'
10010 shlibpath_var=LD_LIBRARY_PATH
10011 shlibpath_overrides_runpath=yes
10012 hardcode_into_libs=yes
10013 # ldd complains unless libraries are executable
10014 postinstall_cmds='chmod +x $lib'
10017 sunos4*)
10018 version_type=sunos
10019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10020 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10021 shlibpath_var=LD_LIBRARY_PATH
10022 shlibpath_overrides_runpath=yes
10023 if test "$with_gnu_ld" = yes; then
10024 need_lib_prefix=no
10026 need_version=yes
10029 sysv4 | sysv4.3*)
10030 version_type=linux
10031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10032 soname_spec='${libname}${release}${shared_ext}$major'
10033 shlibpath_var=LD_LIBRARY_PATH
10034 case $host_vendor in
10035 sni)
10036 shlibpath_overrides_runpath=no
10037 need_lib_prefix=no
10038 runpath_var=LD_RUN_PATH
10040 siemens)
10041 need_lib_prefix=no
10043 motorola)
10044 need_lib_prefix=no
10045 need_version=no
10046 shlibpath_overrides_runpath=no
10047 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10049 esac
10052 sysv4*MP*)
10053 if test -d /usr/nec ;then
10054 version_type=linux
10055 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10056 soname_spec='$libname${shared_ext}.$major'
10057 shlibpath_var=LD_LIBRARY_PATH
10061 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10062 version_type=freebsd-elf
10063 need_lib_prefix=no
10064 need_version=no
10065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10066 soname_spec='${libname}${release}${shared_ext}$major'
10067 shlibpath_var=LD_LIBRARY_PATH
10068 shlibpath_overrides_runpath=yes
10069 hardcode_into_libs=yes
10070 if test "$with_gnu_ld" = yes; then
10071 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10072 else
10073 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10074 case $host_os in
10075 sco3.2v5*)
10076 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10078 esac
10080 sys_lib_dlsearch_path_spec='/usr/lib'
10083 tpf*)
10084 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
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 shlibpath_var=LD_LIBRARY_PATH
10090 shlibpath_overrides_runpath=no
10091 hardcode_into_libs=yes
10094 uts4*)
10095 version_type=linux
10096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10097 soname_spec='${libname}${release}${shared_ext}$major'
10098 shlibpath_var=LD_LIBRARY_PATH
10102 dynamic_linker=no
10104 esac
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10106 $as_echo "$dynamic_linker" >&6; }
10107 test "$dynamic_linker" = no && can_build_shared=no
10109 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10110 if test "$GCC" = yes; then
10111 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10114 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10115 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10117 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10118 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10213 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10214 hardcode_action=
10215 if test -n "$hardcode_libdir_flag_spec" ||
10216 test -n "$runpath_var" ||
10217 test "X$hardcode_automatic" = "Xyes" ; then
10219 # We can hardcode non-existent directories.
10220 if test "$hardcode_direct" != no &&
10221 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10222 # have to relink, otherwise we might link with an installed library
10223 # when we should be linking with a yet-to-be-installed one
10224 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10225 test "$hardcode_minus_L" != no; then
10226 # Linking always hardcodes the temporary library directory.
10227 hardcode_action=relink
10228 else
10229 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10230 hardcode_action=immediate
10232 else
10233 # We cannot hardcode anything, or else we can only hardcode existing
10234 # directories.
10235 hardcode_action=unsupported
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10238 $as_echo "$hardcode_action" >&6; }
10240 if test "$hardcode_action" = relink ||
10241 test "$inherit_rpath" = yes; then
10242 # Fast installation is not supported
10243 enable_fast_install=no
10244 elif test "$shlibpath_overrides_runpath" = yes ||
10245 test "$enable_shared" = no; then
10246 # Fast installation is not necessary
10247 enable_fast_install=needless
10255 if test "x$enable_dlopen" != xyes; then
10256 enable_dlopen=unknown
10257 enable_dlopen_self=unknown
10258 enable_dlopen_self_static=unknown
10259 else
10260 lt_cv_dlopen=no
10261 lt_cv_dlopen_libs=
10263 case $host_os in
10264 beos*)
10265 lt_cv_dlopen="load_add_on"
10266 lt_cv_dlopen_libs=
10267 lt_cv_dlopen_self=yes
10270 mingw* | pw32* | cegcc*)
10271 lt_cv_dlopen="LoadLibrary"
10272 lt_cv_dlopen_libs=
10275 cygwin*)
10276 lt_cv_dlopen="dlopen"
10277 lt_cv_dlopen_libs=
10280 darwin*)
10281 # if libdl is installed we need to link against it
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10283 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10284 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10285 $as_echo_n "(cached) " >&6
10286 else
10287 ac_check_lib_save_LIBS=$LIBS
10288 LIBS="-ldl $LIBS"
10289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10290 /* end confdefs.h. */
10292 /* Override any GCC internal prototype to avoid an error.
10293 Use char because int might match the return type of a GCC
10294 builtin and then its argument prototype would still apply. */
10295 #ifdef __cplusplus
10296 extern "C"
10297 #endif
10298 char dlopen ();
10300 main ()
10302 return dlopen ();
10304 return 0;
10306 _ACEOF
10307 if ac_fn_c_try_link "$LINENO"; then :
10308 ac_cv_lib_dl_dlopen=yes
10309 else
10310 ac_cv_lib_dl_dlopen=no
10312 rm -f core conftest.err conftest.$ac_objext \
10313 conftest$ac_exeext conftest.$ac_ext
10314 LIBS=$ac_check_lib_save_LIBS
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10317 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10318 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10319 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10320 else
10322 lt_cv_dlopen="dyld"
10323 lt_cv_dlopen_libs=
10324 lt_cv_dlopen_self=yes
10331 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10332 if test "x$ac_cv_func_shl_load" = x""yes; then :
10333 lt_cv_dlopen="shl_load"
10334 else
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10336 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10337 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10338 $as_echo_n "(cached) " >&6
10339 else
10340 ac_check_lib_save_LIBS=$LIBS
10341 LIBS="-ldld $LIBS"
10342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10343 /* end confdefs.h. */
10345 /* Override any GCC internal prototype to avoid an error.
10346 Use char because int might match the return type of a GCC
10347 builtin and then its argument prototype would still apply. */
10348 #ifdef __cplusplus
10349 extern "C"
10350 #endif
10351 char shl_load ();
10353 main ()
10355 return shl_load ();
10357 return 0;
10359 _ACEOF
10360 if ac_fn_c_try_link "$LINENO"; then :
10361 ac_cv_lib_dld_shl_load=yes
10362 else
10363 ac_cv_lib_dld_shl_load=no
10365 rm -f core conftest.err conftest.$ac_objext \
10366 conftest$ac_exeext conftest.$ac_ext
10367 LIBS=$ac_check_lib_save_LIBS
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10370 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10371 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10372 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10373 else
10374 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10375 if test "x$ac_cv_func_dlopen" = x""yes; then :
10376 lt_cv_dlopen="dlopen"
10377 else
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10379 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10380 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10381 $as_echo_n "(cached) " >&6
10382 else
10383 ac_check_lib_save_LIBS=$LIBS
10384 LIBS="-ldl $LIBS"
10385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10386 /* end confdefs.h. */
10388 /* Override any GCC internal prototype to avoid an error.
10389 Use char because int might match the return type of a GCC
10390 builtin and then its argument prototype would still apply. */
10391 #ifdef __cplusplus
10392 extern "C"
10393 #endif
10394 char dlopen ();
10396 main ()
10398 return dlopen ();
10400 return 0;
10402 _ACEOF
10403 if ac_fn_c_try_link "$LINENO"; then :
10404 ac_cv_lib_dl_dlopen=yes
10405 else
10406 ac_cv_lib_dl_dlopen=no
10408 rm -f core conftest.err conftest.$ac_objext \
10409 conftest$ac_exeext conftest.$ac_ext
10410 LIBS=$ac_check_lib_save_LIBS
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10413 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10414 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10415 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10416 else
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10418 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10419 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10420 $as_echo_n "(cached) " >&6
10421 else
10422 ac_check_lib_save_LIBS=$LIBS
10423 LIBS="-lsvld $LIBS"
10424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10425 /* end confdefs.h. */
10427 /* Override any GCC internal prototype to avoid an error.
10428 Use char because int might match the return type of a GCC
10429 builtin and then its argument prototype would still apply. */
10430 #ifdef __cplusplus
10431 extern "C"
10432 #endif
10433 char dlopen ();
10435 main ()
10437 return dlopen ();
10439 return 0;
10441 _ACEOF
10442 if ac_fn_c_try_link "$LINENO"; then :
10443 ac_cv_lib_svld_dlopen=yes
10444 else
10445 ac_cv_lib_svld_dlopen=no
10447 rm -f core conftest.err conftest.$ac_objext \
10448 conftest$ac_exeext conftest.$ac_ext
10449 LIBS=$ac_check_lib_save_LIBS
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10452 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10453 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10454 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10455 else
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10457 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10458 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10459 $as_echo_n "(cached) " >&6
10460 else
10461 ac_check_lib_save_LIBS=$LIBS
10462 LIBS="-ldld $LIBS"
10463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10464 /* end confdefs.h. */
10466 /* Override any GCC internal prototype to avoid an error.
10467 Use char because int might match the return type of a GCC
10468 builtin and then its argument prototype would still apply. */
10469 #ifdef __cplusplus
10470 extern "C"
10471 #endif
10472 char dld_link ();
10474 main ()
10476 return dld_link ();
10478 return 0;
10480 _ACEOF
10481 if ac_fn_c_try_link "$LINENO"; then :
10482 ac_cv_lib_dld_dld_link=yes
10483 else
10484 ac_cv_lib_dld_dld_link=no
10486 rm -f core conftest.err conftest.$ac_objext \
10487 conftest$ac_exeext conftest.$ac_ext
10488 LIBS=$ac_check_lib_save_LIBS
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10491 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10492 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10493 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10512 esac
10514 if test "x$lt_cv_dlopen" != xno; then
10515 enable_dlopen=yes
10516 else
10517 enable_dlopen=no
10520 case $lt_cv_dlopen in
10521 dlopen)
10522 save_CPPFLAGS="$CPPFLAGS"
10523 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10525 save_LDFLAGS="$LDFLAGS"
10526 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10528 save_LIBS="$LIBS"
10529 LIBS="$lt_cv_dlopen_libs $LIBS"
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10532 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10533 if test "${lt_cv_dlopen_self+set}" = set; then :
10534 $as_echo_n "(cached) " >&6
10535 else
10536 if test "$cross_compiling" = yes; then :
10537 lt_cv_dlopen_self=cross
10538 else
10539 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10540 lt_status=$lt_dlunknown
10541 cat > conftest.$ac_ext <<_LT_EOF
10542 #line 10542 "configure"
10543 #include "confdefs.h"
10545 #if HAVE_DLFCN_H
10546 #include <dlfcn.h>
10547 #endif
10549 #include <stdio.h>
10551 #ifdef RTLD_GLOBAL
10552 # define LT_DLGLOBAL RTLD_GLOBAL
10553 #else
10554 # ifdef DL_GLOBAL
10555 # define LT_DLGLOBAL DL_GLOBAL
10556 # else
10557 # define LT_DLGLOBAL 0
10558 # endif
10559 #endif
10561 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10562 find out it does not work in some platform. */
10563 #ifndef LT_DLLAZY_OR_NOW
10564 # ifdef RTLD_LAZY
10565 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10566 # else
10567 # ifdef DL_LAZY
10568 # define LT_DLLAZY_OR_NOW DL_LAZY
10569 # else
10570 # ifdef RTLD_NOW
10571 # define LT_DLLAZY_OR_NOW RTLD_NOW
10572 # else
10573 # ifdef DL_NOW
10574 # define LT_DLLAZY_OR_NOW DL_NOW
10575 # else
10576 # define LT_DLLAZY_OR_NOW 0
10577 # endif
10578 # endif
10579 # endif
10580 # endif
10581 #endif
10583 /* When -fvisbility=hidden is used, assume the code has been annotated
10584 correspondingly for the symbols needed. */
10585 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10586 void fnord () __attribute__((visibility("default")));
10587 #endif
10589 void fnord () { int i=42; }
10590 int main ()
10592 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10593 int status = $lt_dlunknown;
10595 if (self)
10597 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10598 else
10600 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10601 else puts (dlerror ());
10603 /* dlclose (self); */
10605 else
10606 puts (dlerror ());
10608 return status;
10610 _LT_EOF
10611 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10612 (eval $ac_link) 2>&5
10613 ac_status=$?
10614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10615 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10616 (./conftest; exit; ) >&5 2>/dev/null
10617 lt_status=$?
10618 case x$lt_status in
10619 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10620 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10621 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10622 esac
10623 else :
10624 # compilation failed
10625 lt_cv_dlopen_self=no
10628 rm -fr conftest*
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10633 $as_echo "$lt_cv_dlopen_self" >&6; }
10635 if test "x$lt_cv_dlopen_self" = xyes; then
10636 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10638 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10639 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10640 $as_echo_n "(cached) " >&6
10641 else
10642 if test "$cross_compiling" = yes; then :
10643 lt_cv_dlopen_self_static=cross
10644 else
10645 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10646 lt_status=$lt_dlunknown
10647 cat > conftest.$ac_ext <<_LT_EOF
10648 #line 10648 "configure"
10649 #include "confdefs.h"
10651 #if HAVE_DLFCN_H
10652 #include <dlfcn.h>
10653 #endif
10655 #include <stdio.h>
10657 #ifdef RTLD_GLOBAL
10658 # define LT_DLGLOBAL RTLD_GLOBAL
10659 #else
10660 # ifdef DL_GLOBAL
10661 # define LT_DLGLOBAL DL_GLOBAL
10662 # else
10663 # define LT_DLGLOBAL 0
10664 # endif
10665 #endif
10667 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10668 find out it does not work in some platform. */
10669 #ifndef LT_DLLAZY_OR_NOW
10670 # ifdef RTLD_LAZY
10671 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10672 # else
10673 # ifdef DL_LAZY
10674 # define LT_DLLAZY_OR_NOW DL_LAZY
10675 # else
10676 # ifdef RTLD_NOW
10677 # define LT_DLLAZY_OR_NOW RTLD_NOW
10678 # else
10679 # ifdef DL_NOW
10680 # define LT_DLLAZY_OR_NOW DL_NOW
10681 # else
10682 # define LT_DLLAZY_OR_NOW 0
10683 # endif
10684 # endif
10685 # endif
10686 # endif
10687 #endif
10689 /* When -fvisbility=hidden is used, assume the code has been annotated
10690 correspondingly for the symbols needed. */
10691 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10692 void fnord () __attribute__((visibility("default")));
10693 #endif
10695 void fnord () { int i=42; }
10696 int main ()
10698 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10699 int status = $lt_dlunknown;
10701 if (self)
10703 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10704 else
10706 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10707 else puts (dlerror ());
10709 /* dlclose (self); */
10711 else
10712 puts (dlerror ());
10714 return status;
10716 _LT_EOF
10717 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10718 (eval $ac_link) 2>&5
10719 ac_status=$?
10720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10721 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10722 (./conftest; exit; ) >&5 2>/dev/null
10723 lt_status=$?
10724 case x$lt_status in
10725 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10726 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10727 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10728 esac
10729 else :
10730 # compilation failed
10731 lt_cv_dlopen_self_static=no
10734 rm -fr conftest*
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10739 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10742 CPPFLAGS="$save_CPPFLAGS"
10743 LDFLAGS="$save_LDFLAGS"
10744 LIBS="$save_LIBS"
10746 esac
10748 case $lt_cv_dlopen_self in
10749 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10750 *) enable_dlopen_self=unknown ;;
10751 esac
10753 case $lt_cv_dlopen_self_static in
10754 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10755 *) enable_dlopen_self_static=unknown ;;
10756 esac
10775 striplib=
10776 old_striplib=
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10778 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10779 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10780 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10781 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10783 $as_echo "yes" >&6; }
10784 else
10785 # FIXME - insert some real tests, host_os isn't really good enough
10786 case $host_os in
10787 darwin*)
10788 if test -n "$STRIP" ; then
10789 striplib="$STRIP -x"
10790 old_striplib="$STRIP -S"
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10792 $as_echo "yes" >&6; }
10793 else
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10795 $as_echo "no" >&6; }
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10800 $as_echo "no" >&6; }
10802 esac
10816 # Report which library types will actually be built
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10818 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10820 $as_echo "$can_build_shared" >&6; }
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10823 $as_echo_n "checking whether to build shared libraries... " >&6; }
10824 test "$can_build_shared" = "no" && enable_shared=no
10826 # On AIX, shared libraries and static libraries use the same namespace, and
10827 # are all built from PIC.
10828 case $host_os in
10829 aix3*)
10830 test "$enable_shared" = yes && enable_static=no
10831 if test -n "$RANLIB"; then
10832 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10833 postinstall_cmds='$RANLIB $lib'
10837 aix[4-9]*)
10838 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10839 test "$enable_shared" = yes && enable_static=no
10842 esac
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10844 $as_echo "$enable_shared" >&6; }
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10847 $as_echo_n "checking whether to build static libraries... " >&6; }
10848 # Make sure either enable_shared or enable_static is yes.
10849 test "$enable_shared" = yes || enable_static=yes
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10851 $as_echo "$enable_static" >&6; }
10857 ac_ext=c
10858 ac_cpp='$CPP $CPPFLAGS'
10859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10863 CC="$lt_save_CC"
10877 ac_config_commands="$ac_config_commands libtool"
10882 # Only expand once:
10886 ac_ext=cpp
10887 ac_cpp='$CXXCPP $CPPFLAGS'
10888 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10889 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10890 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10891 if test -z "$CXX"; then
10892 if test -n "$CCC"; then
10893 CXX=$CCC
10894 else
10895 if test -n "$ac_tool_prefix"; then
10896 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10898 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10899 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10901 $as_echo_n "checking for $ac_word... " >&6; }
10902 if test "${ac_cv_prog_CXX+set}" = set; then :
10903 $as_echo_n "(cached) " >&6
10904 else
10905 if test -n "$CXX"; then
10906 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10907 else
10908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10909 for as_dir in $PATH
10911 IFS=$as_save_IFS
10912 test -z "$as_dir" && as_dir=.
10913 for ac_exec_ext in '' $ac_executable_extensions; do
10914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10915 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10917 break 2
10919 done
10920 done
10921 IFS=$as_save_IFS
10925 CXX=$ac_cv_prog_CXX
10926 if test -n "$CXX"; then
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10928 $as_echo "$CXX" >&6; }
10929 else
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10931 $as_echo "no" >&6; }
10935 test -n "$CXX" && break
10936 done
10938 if test -z "$CXX"; then
10939 ac_ct_CXX=$CXX
10940 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10942 # Extract the first word of "$ac_prog", so it can be a program name with args.
10943 set dummy $ac_prog; ac_word=$2
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10945 $as_echo_n "checking for $ac_word... " >&6; }
10946 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
10947 $as_echo_n "(cached) " >&6
10948 else
10949 if test -n "$ac_ct_CXX"; then
10950 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10951 else
10952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10953 for as_dir in $PATH
10955 IFS=$as_save_IFS
10956 test -z "$as_dir" && as_dir=.
10957 for ac_exec_ext in '' $ac_executable_extensions; do
10958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10959 ac_cv_prog_ac_ct_CXX="$ac_prog"
10960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10961 break 2
10963 done
10964 done
10965 IFS=$as_save_IFS
10969 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10970 if test -n "$ac_ct_CXX"; then
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10972 $as_echo "$ac_ct_CXX" >&6; }
10973 else
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10975 $as_echo "no" >&6; }
10979 test -n "$ac_ct_CXX" && break
10980 done
10982 if test "x$ac_ct_CXX" = x; then
10983 CXX="g++"
10984 else
10985 case $cross_compiling:$ac_tool_warned in
10986 yes:)
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10988 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10989 ac_tool_warned=yes ;;
10990 esac
10991 CXX=$ac_ct_CXX
10997 # Provide some information about the compiler.
10998 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
10999 set X $ac_compile
11000 ac_compiler=$2
11001 for ac_option in --version -v -V -qversion; do
11002 { { ac_try="$ac_compiler $ac_option >&5"
11003 case "(($ac_try" in
11004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11005 *) ac_try_echo=$ac_try;;
11006 esac
11007 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11008 $as_echo "$ac_try_echo"; } >&5
11009 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11010 ac_status=$?
11011 if test -s conftest.err; then
11012 sed '10a\
11013 ... rest of stderr output deleted ...
11014 10q' conftest.err >conftest.er1
11015 cat conftest.er1 >&5
11016 rm -f conftest.er1 conftest.err
11018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11019 test $ac_status = 0; }
11020 done
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11023 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11024 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11025 $as_echo_n "(cached) " >&6
11026 else
11027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11028 /* end confdefs.h. */
11031 main ()
11033 #ifndef __GNUC__
11034 choke me
11035 #endif
11038 return 0;
11040 _ACEOF
11041 if ac_fn_cxx_try_compile "$LINENO"; then :
11042 ac_compiler_gnu=yes
11043 else
11044 ac_compiler_gnu=no
11046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11047 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11051 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11052 if test $ac_compiler_gnu = yes; then
11053 GXX=yes
11054 else
11055 GXX=
11057 ac_test_CXXFLAGS=${CXXFLAGS+set}
11058 ac_save_CXXFLAGS=$CXXFLAGS
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11060 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11061 if test "${ac_cv_prog_cxx_g+set}" = set; then :
11062 $as_echo_n "(cached) " >&6
11063 else
11064 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11065 ac_cxx_werror_flag=yes
11066 ac_cv_prog_cxx_g=no
11067 CXXFLAGS="-g"
11068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11069 /* end confdefs.h. */
11072 main ()
11076 return 0;
11078 _ACEOF
11079 if ac_fn_cxx_try_compile "$LINENO"; then :
11080 ac_cv_prog_cxx_g=yes
11081 else
11082 CXXFLAGS=""
11083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11084 /* end confdefs.h. */
11087 main ()
11091 return 0;
11093 _ACEOF
11094 if ac_fn_cxx_try_compile "$LINENO"; then :
11096 else
11097 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11098 CXXFLAGS="-g"
11099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11100 /* end confdefs.h. */
11103 main ()
11107 return 0;
11109 _ACEOF
11110 if ac_fn_cxx_try_compile "$LINENO"; then :
11111 ac_cv_prog_cxx_g=yes
11113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11118 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11121 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11122 if test "$ac_test_CXXFLAGS" = set; then
11123 CXXFLAGS=$ac_save_CXXFLAGS
11124 elif test $ac_cv_prog_cxx_g = yes; then
11125 if test "$GXX" = yes; then
11126 CXXFLAGS="-g -O2"
11127 else
11128 CXXFLAGS="-g"
11130 else
11131 if test "$GXX" = yes; then
11132 CXXFLAGS="-O2"
11133 else
11134 CXXFLAGS=
11137 ac_ext=c
11138 ac_cpp='$CPP $CPPFLAGS'
11139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11143 depcc="$CXX" am_compiler_list=
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11146 $as_echo_n "checking dependency style of $depcc... " >&6; }
11147 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11148 $as_echo_n "(cached) " >&6
11149 else
11150 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11151 # We make a subdir and do the tests there. Otherwise we can end up
11152 # making bogus files that we don't know about and never remove. For
11153 # instance it was reported that on HP-UX the gcc test will end up
11154 # making a dummy file named `D' -- because `-MD' means `put the output
11155 # in D'.
11156 rm -rf conftest.dir
11157 mkdir conftest.dir
11158 # Copy depcomp to subdir because otherwise we won't find it if we're
11159 # using a relative directory.
11160 cp "$am_depcomp" conftest.dir
11161 cd conftest.dir
11162 # We will build objects and dependencies in a subdirectory because
11163 # it helps to detect inapplicable dependency modes. For instance
11164 # both Tru64's cc and ICC support -MD to output dependencies as a
11165 # side effect of compilation, but ICC will put the dependencies in
11166 # the current directory while Tru64 will put them in the object
11167 # directory.
11168 mkdir sub
11170 am_cv_CXX_dependencies_compiler_type=none
11171 if test "$am_compiler_list" = ""; then
11172 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11174 am__universal=false
11175 case " $depcc " in #(
11176 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11177 esac
11179 for depmode in $am_compiler_list; do
11180 # Setup a source with many dependencies, because some compilers
11181 # like to wrap large dependency lists on column 80 (with \), and
11182 # we should not choose a depcomp mode which is confused by this.
11184 # We need to recreate these files for each test, as the compiler may
11185 # overwrite some of them when testing with obscure command lines.
11186 # This happens at least with the AIX C compiler.
11187 : > sub/conftest.c
11188 for i in 1 2 3 4 5 6; do
11189 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11190 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11191 # Solaris 8's {/usr,}/bin/sh.
11192 touch sub/conftst$i.h
11193 done
11194 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11196 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11197 # mode. It turns out that the SunPro C++ compiler does not properly
11198 # handle `-M -o', and we need to detect this. Also, some Intel
11199 # versions had trouble with output in subdirs
11200 am__obj=sub/conftest.${OBJEXT-o}
11201 am__minus_obj="-o $am__obj"
11202 case $depmode in
11203 gcc)
11204 # This depmode causes a compiler race in universal mode.
11205 test "$am__universal" = false || continue
11207 nosideeffect)
11208 # after this tag, mechanisms are not by side-effect, so they'll
11209 # only be used when explicitly requested
11210 if test "x$enable_dependency_tracking" = xyes; then
11211 continue
11212 else
11213 break
11216 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
11217 # This compiler won't grok `-c -o', but also, the minuso test has
11218 # not run yet. These depmodes are late enough in the game, and
11219 # so weak that their functioning should not be impacted.
11220 am__obj=conftest.${OBJEXT-o}
11221 am__minus_obj=
11223 none) break ;;
11224 esac
11225 if depmode=$depmode \
11226 source=sub/conftest.c object=$am__obj \
11227 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11228 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11229 >/dev/null 2>conftest.err &&
11230 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11231 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11232 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11233 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11234 # icc doesn't choke on unknown options, it will just issue warnings
11235 # or remarks (even with -Werror). So we grep stderr for any message
11236 # that says an option was ignored or not supported.
11237 # When given -MP, icc 7.0 and 7.1 complain thusly:
11238 # icc: Command line warning: ignoring option '-M'; no argument required
11239 # The diagnosis changed in icc 8.0:
11240 # icc: Command line remark: option '-MP' not supported
11241 if (grep 'ignoring option' conftest.err ||
11242 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11243 am_cv_CXX_dependencies_compiler_type=$depmode
11244 break
11247 done
11249 cd ..
11250 rm -rf conftest.dir
11251 else
11252 am_cv_CXX_dependencies_compiler_type=none
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11257 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11258 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11261 test "x$enable_dependency_tracking" != xno \
11262 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11263 am__fastdepCXX_TRUE=
11264 am__fastdepCXX_FALSE='#'
11265 else
11266 am__fastdepCXX_TRUE='#'
11267 am__fastdepCXX_FALSE=
11271 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11272 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11273 (test "X$CXX" != "Xg++"))) ; then
11274 ac_ext=cpp
11275 ac_cpp='$CXXCPP $CPPFLAGS'
11276 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11277 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11278 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11280 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11281 if test -z "$CXXCPP"; then
11282 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11283 $as_echo_n "(cached) " >&6
11284 else
11285 # Double quotes because CXXCPP needs to be expanded
11286 for CXXCPP in "$CXX -E" "/lib/cpp"
11288 ac_preproc_ok=false
11289 for ac_cxx_preproc_warn_flag in '' yes
11291 # Use a header file that comes with gcc, so configuring glibc
11292 # with a fresh cross-compiler works.
11293 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11294 # <limits.h> exists even on freestanding compilers.
11295 # On the NeXT, cc -E runs the code through the compiler's parser,
11296 # not just through cpp. "Syntax error" is here to catch this case.
11297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11298 /* end confdefs.h. */
11299 #ifdef __STDC__
11300 # include <limits.h>
11301 #else
11302 # include <assert.h>
11303 #endif
11304 Syntax error
11305 _ACEOF
11306 if ac_fn_cxx_try_cpp "$LINENO"; then :
11308 else
11309 # Broken: fails on valid input.
11310 continue
11312 rm -f conftest.err conftest.$ac_ext
11314 # OK, works on sane cases. Now check whether nonexistent headers
11315 # can be detected and how.
11316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11317 /* end confdefs.h. */
11318 #include <ac_nonexistent.h>
11319 _ACEOF
11320 if ac_fn_cxx_try_cpp "$LINENO"; then :
11321 # Broken: success on invalid input.
11322 continue
11323 else
11324 # Passes both tests.
11325 ac_preproc_ok=:
11326 break
11328 rm -f conftest.err conftest.$ac_ext
11330 done
11331 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11332 rm -f conftest.err conftest.$ac_ext
11333 if $ac_preproc_ok; then :
11334 break
11337 done
11338 ac_cv_prog_CXXCPP=$CXXCPP
11341 CXXCPP=$ac_cv_prog_CXXCPP
11342 else
11343 ac_cv_prog_CXXCPP=$CXXCPP
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11346 $as_echo "$CXXCPP" >&6; }
11347 ac_preproc_ok=false
11348 for ac_cxx_preproc_warn_flag in '' yes
11350 # Use a header file that comes with gcc, so configuring glibc
11351 # with a fresh cross-compiler works.
11352 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11353 # <limits.h> exists even on freestanding compilers.
11354 # On the NeXT, cc -E runs the code through the compiler's parser,
11355 # not just through cpp. "Syntax error" is here to catch this case.
11356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11357 /* end confdefs.h. */
11358 #ifdef __STDC__
11359 # include <limits.h>
11360 #else
11361 # include <assert.h>
11362 #endif
11363 Syntax error
11364 _ACEOF
11365 if ac_fn_cxx_try_cpp "$LINENO"; then :
11367 else
11368 # Broken: fails on valid input.
11369 continue
11371 rm -f conftest.err conftest.$ac_ext
11373 # OK, works on sane cases. Now check whether nonexistent headers
11374 # can be detected and how.
11375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11376 /* end confdefs.h. */
11377 #include <ac_nonexistent.h>
11378 _ACEOF
11379 if ac_fn_cxx_try_cpp "$LINENO"; then :
11380 # Broken: success on invalid input.
11381 continue
11382 else
11383 # Passes both tests.
11384 ac_preproc_ok=:
11385 break
11387 rm -f conftest.err conftest.$ac_ext
11389 done
11390 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11391 rm -f conftest.err conftest.$ac_ext
11392 if $ac_preproc_ok; then :
11394 else
11395 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11397 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
11398 See \`config.log' for more details." "$LINENO" 5; }
11401 ac_ext=c
11402 ac_cpp='$CPP $CPPFLAGS'
11403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11407 else
11408 _lt_caught_CXX_error=yes
11411 ac_ext=cpp
11412 ac_cpp='$CXXCPP $CPPFLAGS'
11413 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11414 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11415 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11417 archive_cmds_need_lc_CXX=no
11418 allow_undefined_flag_CXX=
11419 always_export_symbols_CXX=no
11420 archive_expsym_cmds_CXX=
11421 compiler_needs_object_CXX=no
11422 export_dynamic_flag_spec_CXX=
11423 hardcode_direct_CXX=no
11424 hardcode_direct_absolute_CXX=no
11425 hardcode_libdir_flag_spec_CXX=
11426 hardcode_libdir_flag_spec_ld_CXX=
11427 hardcode_libdir_separator_CXX=
11428 hardcode_minus_L_CXX=no
11429 hardcode_shlibpath_var_CXX=unsupported
11430 hardcode_automatic_CXX=no
11431 inherit_rpath_CXX=no
11432 module_cmds_CXX=
11433 module_expsym_cmds_CXX=
11434 link_all_deplibs_CXX=unknown
11435 old_archive_cmds_CXX=$old_archive_cmds
11436 reload_flag_CXX=$reload_flag
11437 reload_cmds_CXX=$reload_cmds
11438 no_undefined_flag_CXX=
11439 whole_archive_flag_spec_CXX=
11440 enable_shared_with_static_runtimes_CXX=no
11442 # Source file extension for C++ test sources.
11443 ac_ext=cpp
11445 # Object file extension for compiled C++ test sources.
11446 objext=o
11447 objext_CXX=$objext
11449 # No sense in running all these tests if we already determined that
11450 # the CXX compiler isn't working. Some variables (like enable_shared)
11451 # are currently assumed to apply to all compilers on this platform,
11452 # and will be corrupted by setting them based on a non-working compiler.
11453 if test "$_lt_caught_CXX_error" != yes; then
11454 # Code to be used in simple compile tests
11455 lt_simple_compile_test_code="int some_variable = 0;"
11457 # Code to be used in simple link tests
11458 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11460 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11467 # If no C compiler was specified, use CC.
11468 LTCC=${LTCC-"$CC"}
11470 # If no C compiler flags were specified, use CFLAGS.
11471 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11473 # Allow CC to be a program name with arguments.
11474 compiler=$CC
11477 # save warnings/boilerplate of simple test code
11478 ac_outfile=conftest.$ac_objext
11479 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11480 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11481 _lt_compiler_boilerplate=`cat conftest.err`
11482 $RM conftest*
11484 ac_outfile=conftest.$ac_objext
11485 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11486 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11487 _lt_linker_boilerplate=`cat conftest.err`
11488 $RM -r conftest*
11491 # Allow CC to be a program name with arguments.
11492 lt_save_CC=$CC
11493 lt_save_LD=$LD
11494 lt_save_GCC=$GCC
11495 GCC=$GXX
11496 lt_save_with_gnu_ld=$with_gnu_ld
11497 lt_save_path_LD=$lt_cv_path_LD
11498 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11499 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11500 else
11501 $as_unset lt_cv_prog_gnu_ld
11503 if test -n "${lt_cv_path_LDCXX+set}"; then
11504 lt_cv_path_LD=$lt_cv_path_LDCXX
11505 else
11506 $as_unset lt_cv_path_LD
11508 test -z "${LDCXX+set}" || LD=$LDCXX
11509 CC=${CXX-"c++"}
11510 compiler=$CC
11511 compiler_CXX=$CC
11512 for cc_temp in $compiler""; do
11513 case $cc_temp in
11514 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11515 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11516 \-*) ;;
11517 *) break;;
11518 esac
11519 done
11520 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11523 if test -n "$compiler"; then
11524 # We don't want -fno-exception when compiling C++ code, so set the
11525 # no_builtin_flag separately
11526 if test "$GXX" = yes; then
11527 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11528 else
11529 lt_prog_compiler_no_builtin_flag_CXX=
11532 if test "$GXX" = yes; then
11533 # Set up default GNU C++ configuration
11537 # Check whether --with-gnu-ld was given.
11538 if test "${with_gnu_ld+set}" = set; then :
11539 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11540 else
11541 with_gnu_ld=no
11544 ac_prog=ld
11545 if test "$GCC" = yes; then
11546 # Check if gcc -print-prog-name=ld gives a path.
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11548 $as_echo_n "checking for ld used by $CC... " >&6; }
11549 case $host in
11550 *-*-mingw*)
11551 # gcc leaves a trailing carriage return which upsets mingw
11552 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11554 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11555 esac
11556 case $ac_prog in
11557 # Accept absolute paths.
11558 [\\/]* | ?:[\\/]*)
11559 re_direlt='/[^/][^/]*/\.\./'
11560 # Canonicalize the pathname of ld
11561 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11562 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11563 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11564 done
11565 test -z "$LD" && LD="$ac_prog"
11568 # If it fails, then pretend we aren't using GCC.
11569 ac_prog=ld
11572 # If it is relative, then search for the first ld in PATH.
11573 with_gnu_ld=unknown
11575 esac
11576 elif test "$with_gnu_ld" = yes; then
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11578 $as_echo_n "checking for GNU ld... " >&6; }
11579 else
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11581 $as_echo_n "checking for non-GNU ld... " >&6; }
11583 if test "${lt_cv_path_LD+set}" = set; then :
11584 $as_echo_n "(cached) " >&6
11585 else
11586 if test -z "$LD"; then
11587 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11588 for ac_dir in $PATH; do
11589 IFS="$lt_save_ifs"
11590 test -z "$ac_dir" && ac_dir=.
11591 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11592 lt_cv_path_LD="$ac_dir/$ac_prog"
11593 # Check to see if the program is GNU ld. I'd rather use --version,
11594 # but apparently some variants of GNU ld only accept -v.
11595 # Break only if it was the GNU/non-GNU ld that we prefer.
11596 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11597 *GNU* | *'with BFD'*)
11598 test "$with_gnu_ld" != no && break
11601 test "$with_gnu_ld" != yes && break
11603 esac
11605 done
11606 IFS="$lt_save_ifs"
11607 else
11608 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11612 LD="$lt_cv_path_LD"
11613 if test -n "$LD"; then
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11615 $as_echo "$LD" >&6; }
11616 else
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11618 $as_echo "no" >&6; }
11620 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11622 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11623 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11624 $as_echo_n "(cached) " >&6
11625 else
11626 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11627 case `$LD -v 2>&1 </dev/null` in
11628 *GNU* | *'with BFD'*)
11629 lt_cv_prog_gnu_ld=yes
11632 lt_cv_prog_gnu_ld=no
11634 esac
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11637 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11638 with_gnu_ld=$lt_cv_prog_gnu_ld
11646 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11647 # archiving commands below assume that GNU ld is being used.
11648 if test "$with_gnu_ld" = yes; then
11649 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11650 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11652 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11653 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11655 # If archive_cmds runs LD, not CC, wlarc should be empty
11656 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11657 # investigate it a little bit more. (MM)
11658 wlarc='${wl}'
11660 # ancient GNU ld didn't support --whole-archive et. al.
11661 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11662 $GREP 'no-whole-archive' > /dev/null; then
11663 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11664 else
11665 whole_archive_flag_spec_CXX=
11667 else
11668 with_gnu_ld=no
11669 wlarc=
11671 # A generic and very simple default shared library creation
11672 # command for GNU C++ for the case where it uses the native
11673 # linker, instead of GNU ld. If possible, this setting should
11674 # overridden to take advantage of the native linker features on
11675 # the platform it is being used on.
11676 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11679 # Commands to make compiler produce verbose output that lists
11680 # what "hidden" libraries, object files and flags are used when
11681 # linking a shared library.
11682 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
11684 else
11685 GXX=no
11686 with_gnu_ld=no
11687 wlarc=
11690 # PORTME: fill in a description of your system's C++ link characteristics
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11692 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11693 ld_shlibs_CXX=yes
11694 case $host_os in
11695 aix3*)
11696 # FIXME: insert proper C++ library support
11697 ld_shlibs_CXX=no
11699 aix[4-9]*)
11700 if test "$host_cpu" = ia64; then
11701 # On IA64, the linker does run time linking by default, so we don't
11702 # have to do anything special.
11703 aix_use_runtimelinking=no
11704 exp_sym_flag='-Bexport'
11705 no_entry_flag=""
11706 else
11707 aix_use_runtimelinking=no
11709 # Test if we are trying to use run time linking or normal
11710 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11711 # need to do runtime linking.
11712 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11713 for ld_flag in $LDFLAGS; do
11714 case $ld_flag in
11715 *-brtl*)
11716 aix_use_runtimelinking=yes
11717 break
11719 esac
11720 done
11722 esac
11724 exp_sym_flag='-bexport'
11725 no_entry_flag='-bnoentry'
11728 # When large executables or shared objects are built, AIX ld can
11729 # have problems creating the table of contents. If linking a library
11730 # or program results in "error TOC overflow" add -mminimal-toc to
11731 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11732 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11734 archive_cmds_CXX=''
11735 hardcode_direct_CXX=yes
11736 hardcode_direct_absolute_CXX=yes
11737 hardcode_libdir_separator_CXX=':'
11738 link_all_deplibs_CXX=yes
11739 file_list_spec_CXX='${wl}-f,'
11741 if test "$GXX" = yes; then
11742 case $host_os in aix4.[012]|aix4.[012].*)
11743 # We only want to do this on AIX 4.2 and lower, the check
11744 # below for broken collect2 doesn't work under 4.3+
11745 collect2name=`${CC} -print-prog-name=collect2`
11746 if test -f "$collect2name" &&
11747 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11748 then
11749 # We have reworked collect2
11751 else
11752 # We have old collect2
11753 hardcode_direct_CXX=unsupported
11754 # It fails to find uninstalled libraries when the uninstalled
11755 # path is not listed in the libpath. Setting hardcode_minus_L
11756 # to unsupported forces relinking
11757 hardcode_minus_L_CXX=yes
11758 hardcode_libdir_flag_spec_CXX='-L$libdir'
11759 hardcode_libdir_separator_CXX=
11761 esac
11762 shared_flag='-shared'
11763 if test "$aix_use_runtimelinking" = yes; then
11764 shared_flag="$shared_flag "'${wl}-G'
11766 else
11767 # not using gcc
11768 if test "$host_cpu" = ia64; then
11769 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11770 # chokes on -Wl,-G. The following line is correct:
11771 shared_flag='-G'
11772 else
11773 if test "$aix_use_runtimelinking" = yes; then
11774 shared_flag='${wl}-G'
11775 else
11776 shared_flag='${wl}-bM:SRE'
11781 export_dynamic_flag_spec_CXX='${wl}-bexpall'
11782 # It seems that -bexpall does not export symbols beginning with
11783 # underscore (_), so it is better to generate a list of symbols to
11784 # export.
11785 always_export_symbols_CXX=yes
11786 if test "$aix_use_runtimelinking" = yes; then
11787 # Warning - without using the other runtime loading flags (-brtl),
11788 # -berok will link without error, but may produce a broken library.
11789 allow_undefined_flag_CXX='-berok'
11790 # Determine the default libpath from the value encoded in an empty
11791 # executable.
11792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11793 /* end confdefs.h. */
11796 main ()
11800 return 0;
11802 _ACEOF
11803 if ac_fn_cxx_try_link "$LINENO"; then :
11805 lt_aix_libpath_sed='
11806 /Import File Strings/,/^$/ {
11807 /^0/ {
11808 s/^0 *\(.*\)$/\1/
11812 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11813 # Check for a 64-bit object if we didn't find anything.
11814 if test -z "$aix_libpath"; then
11815 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11818 rm -f core conftest.err conftest.$ac_objext \
11819 conftest$ac_exeext conftest.$ac_ext
11820 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11822 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11824 archive_expsym_cmds_CXX='$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"
11825 else
11826 if test "$host_cpu" = ia64; then
11827 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11828 allow_undefined_flag_CXX="-z nodefs"
11829 archive_expsym_cmds_CXX="\$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"
11830 else
11831 # Determine the default libpath from the value encoded in an
11832 # empty executable.
11833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11834 /* end confdefs.h. */
11837 main ()
11841 return 0;
11843 _ACEOF
11844 if ac_fn_cxx_try_link "$LINENO"; then :
11846 lt_aix_libpath_sed='
11847 /Import File Strings/,/^$/ {
11848 /^0/ {
11849 s/^0 *\(.*\)$/\1/
11853 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11854 # Check for a 64-bit object if we didn't find anything.
11855 if test -z "$aix_libpath"; then
11856 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11859 rm -f core conftest.err conftest.$ac_objext \
11860 conftest$ac_exeext conftest.$ac_ext
11861 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11863 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11864 # Warning - without using the other run time loading flags,
11865 # -berok will link without error, but may produce a broken library.
11866 no_undefined_flag_CXX=' ${wl}-bernotok'
11867 allow_undefined_flag_CXX=' ${wl}-berok'
11868 if test "$with_gnu_ld" = yes; then
11869 # We only use this code for GNU lds that support --whole-archive.
11870 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11871 else
11872 # Exported symbols can be pulled into shared objects from archives
11873 whole_archive_flag_spec_CXX='$convenience'
11875 archive_cmds_need_lc_CXX=yes
11876 # This is similar to how AIX traditionally builds its shared
11877 # libraries.
11878 archive_expsym_cmds_CXX="\$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'
11883 beos*)
11884 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11885 allow_undefined_flag_CXX=unsupported
11886 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11887 # support --undefined. This deserves some investigation. FIXME
11888 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11889 else
11890 ld_shlibs_CXX=no
11894 chorus*)
11895 case $cc_basename in
11897 # FIXME: insert proper C++ library support
11898 ld_shlibs_CXX=no
11900 esac
11903 cygwin* | mingw* | pw32* | cegcc*)
11904 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11905 # as there is no search path for DLLs.
11906 hardcode_libdir_flag_spec_CXX='-L$libdir'
11907 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
11908 allow_undefined_flag_CXX=unsupported
11909 always_export_symbols_CXX=no
11910 enable_shared_with_static_runtimes_CXX=yes
11912 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11913 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11914 # If the export-symbols file already is a .def file (1st line
11915 # is EXPORTS), use it as is; otherwise, prepend...
11916 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11917 cp $export_symbols $output_objdir/$soname.def;
11918 else
11919 echo EXPORTS > $output_objdir/$soname.def;
11920 cat $export_symbols >> $output_objdir/$soname.def;
11922 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11923 else
11924 ld_shlibs_CXX=no
11927 darwin* | rhapsody*)
11930 archive_cmds_need_lc_CXX=no
11931 hardcode_direct_CXX=no
11932 hardcode_automatic_CXX=yes
11933 hardcode_shlibpath_var_CXX=unsupported
11934 if test "$lt_cv_ld_force_load" = "yes"; then
11935 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
11936 else
11937 whole_archive_flag_spec_CXX=''
11939 link_all_deplibs_CXX=yes
11940 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11941 case $cc_basename in
11942 ifort*) _lt_dar_can_shared=yes ;;
11943 *) _lt_dar_can_shared=$GCC ;;
11944 esac
11945 if test "$_lt_dar_can_shared" = "yes"; then
11946 output_verbose_link_cmd=func_echo_all
11947 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11948 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11949 archive_expsym_cmds_CXX="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}"
11950 module_expsym_cmds_CXX="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}"
11951 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11952 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
11953 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11956 else
11957 ld_shlibs_CXX=no
11962 dgux*)
11963 case $cc_basename in
11964 ec++*)
11965 # FIXME: insert proper C++ library support
11966 ld_shlibs_CXX=no
11968 ghcx*)
11969 # Green Hills C++ Compiler
11970 # FIXME: insert proper C++ library support
11971 ld_shlibs_CXX=no
11974 # FIXME: insert proper C++ library support
11975 ld_shlibs_CXX=no
11977 esac
11980 freebsd2.*)
11981 # C++ shared libraries reported to be fairly broken before
11982 # switch to ELF
11983 ld_shlibs_CXX=no
11986 freebsd-elf*)
11987 archive_cmds_need_lc_CXX=no
11990 freebsd* | dragonfly*)
11991 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11992 # conventions
11993 ld_shlibs_CXX=yes
11996 gnu*)
11999 haiku*)
12000 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12001 link_all_deplibs_CXX=yes
12004 hpux9*)
12005 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12006 hardcode_libdir_separator_CXX=:
12007 export_dynamic_flag_spec_CXX='${wl}-E'
12008 hardcode_direct_CXX=yes
12009 hardcode_minus_L_CXX=yes # Not in the search PATH,
12010 # but as the default
12011 # location of the library.
12013 case $cc_basename in
12014 CC*)
12015 # FIXME: insert proper C++ library support
12016 ld_shlibs_CXX=no
12018 aCC*)
12019 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12020 # Commands to make compiler produce verbose output that lists
12021 # what "hidden" libraries, object files and flags are used when
12022 # linking a shared library.
12024 # There doesn't appear to be a way to prevent this compiler from
12025 # explicitly linking system object files so we need to strip them
12026 # from the output so that they don't get included in the library
12027 # dependencies.
12028 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12031 if test "$GXX" = yes; then
12032 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12033 else
12034 # FIXME: insert proper C++ library support
12035 ld_shlibs_CXX=no
12038 esac
12041 hpux10*|hpux11*)
12042 if test $with_gnu_ld = no; then
12043 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12044 hardcode_libdir_separator_CXX=:
12046 case $host_cpu in
12047 hppa*64*|ia64*)
12050 export_dynamic_flag_spec_CXX='${wl}-E'
12052 esac
12054 case $host_cpu in
12055 hppa*64*|ia64*)
12056 hardcode_direct_CXX=no
12057 hardcode_shlibpath_var_CXX=no
12060 hardcode_direct_CXX=yes
12061 hardcode_direct_absolute_CXX=yes
12062 hardcode_minus_L_CXX=yes # Not in the search PATH,
12063 # but as the default
12064 # location of the library.
12066 esac
12068 case $cc_basename in
12069 CC*)
12070 # FIXME: insert proper C++ library support
12071 ld_shlibs_CXX=no
12073 aCC*)
12074 case $host_cpu in
12075 hppa*64*)
12076 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12078 ia64*)
12079 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12082 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12084 esac
12085 # Commands to make compiler produce verbose output that lists
12086 # what "hidden" libraries, object files and flags are used when
12087 # linking a shared library.
12089 # There doesn't appear to be a way to prevent this compiler from
12090 # explicitly linking system object files so we need to strip them
12091 # from the output so that they don't get included in the library
12092 # dependencies.
12093 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12096 if test "$GXX" = yes; then
12097 if test $with_gnu_ld = no; then
12098 case $host_cpu in
12099 hppa*64*)
12100 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12102 ia64*)
12103 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12106 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12108 esac
12110 else
12111 # FIXME: insert proper C++ library support
12112 ld_shlibs_CXX=no
12115 esac
12118 interix[3-9]*)
12119 hardcode_direct_CXX=no
12120 hardcode_shlibpath_var_CXX=no
12121 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12122 export_dynamic_flag_spec_CXX='${wl}-E'
12123 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12124 # Instead, shared libraries are loaded at an image base (0x10000000 by
12125 # default) and relocated if they conflict, which is a slow very memory
12126 # consuming and fragmenting process. To avoid this, we pick a random,
12127 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12128 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12129 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12130 archive_expsym_cmds_CXX='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'
12132 irix5* | irix6*)
12133 case $cc_basename in
12134 CC*)
12135 # SGI C++
12136 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12138 # Archives containing C++ object files must be created using
12139 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12140 # necessary to make sure instantiated templates are included
12141 # in the archive.
12142 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12145 if test "$GXX" = yes; then
12146 if test "$with_gnu_ld" = no; then
12147 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
12148 else
12149 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12152 link_all_deplibs_CXX=yes
12154 esac
12155 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12156 hardcode_libdir_separator_CXX=:
12157 inherit_rpath_CXX=yes
12160 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12161 case $cc_basename in
12162 KCC*)
12163 # Kuck and Associates, Inc. (KAI) C++ Compiler
12165 # KCC will only create a shared library if the output file
12166 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12167 # to its proper name (with version) after linking.
12168 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12169 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12170 # Commands to make compiler produce verbose output that lists
12171 # what "hidden" libraries, object files and flags are used when
12172 # linking a shared library.
12174 # There doesn't appear to be a way to prevent this compiler from
12175 # explicitly linking system object files so we need to strip them
12176 # from the output so that they don't get included in the library
12177 # dependencies.
12178 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12180 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12181 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12183 # Archives containing C++ object files must be created using
12184 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12185 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12187 icpc* | ecpc* )
12188 # Intel C++
12189 with_gnu_ld=yes
12190 # version 8.0 and above of icpc choke on multiply defined symbols
12191 # if we add $predep_objects and $postdep_objects, however 7.1 and
12192 # earlier do not add the objects themselves.
12193 case `$CC -V 2>&1` in
12194 *"Version 7."*)
12195 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12196 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12198 *) # Version 8.0 or newer
12199 tmp_idyn=
12200 case $host_cpu in
12201 ia64*) tmp_idyn=' -i_dynamic';;
12202 esac
12203 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12204 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12206 esac
12207 archive_cmds_need_lc_CXX=no
12208 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12209 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12210 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12212 pgCC* | pgcpp*)
12213 # Portland Group C++ compiler
12214 case `$CC -V` in
12215 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12216 prelink_cmds_CXX='tpldir=Template.dir~
12217 rm -rf $tpldir~
12218 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12219 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12220 old_archive_cmds_CXX='tpldir=Template.dir~
12221 rm -rf $tpldir~
12222 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12223 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12224 $RANLIB $oldlib'
12225 archive_cmds_CXX='tpldir=Template.dir~
12226 rm -rf $tpldir~
12227 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12228 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12229 archive_expsym_cmds_CXX='tpldir=Template.dir~
12230 rm -rf $tpldir~
12231 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12232 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12234 *) # Version 6 and above use weak symbols
12235 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12236 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12238 esac
12240 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12241 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12242 whole_archive_flag_spec_CXX='${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'
12244 cxx*)
12245 # Compaq C++
12246 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12247 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12249 runpath_var=LD_RUN_PATH
12250 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12251 hardcode_libdir_separator_CXX=:
12253 # Commands to make compiler produce verbose output that lists
12254 # what "hidden" libraries, object files and flags are used when
12255 # linking a shared library.
12257 # There doesn't appear to be a way to prevent this compiler from
12258 # explicitly linking system object files so we need to strip them
12259 # from the output so that they don't get included in the library
12260 # dependencies.
12261 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
12263 xl* | mpixl* | bgxl*)
12264 # IBM XL 8.0 on PPC, with GNU ld
12265 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12266 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12267 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12268 if test "x$supports_anon_versioning" = xyes; then
12269 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12270 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12271 echo "local: *; };" >> $output_objdir/$libname.ver~
12272 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12276 case `$CC -V 2>&1 | sed 5q` in
12277 *Sun\ C*)
12278 # Sun C++ 5.9
12279 no_undefined_flag_CXX=' -zdefs'
12280 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12281 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12282 hardcode_libdir_flag_spec_CXX='-R$libdir'
12283 whole_archive_flag_spec_CXX='${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'
12284 compiler_needs_object_CXX=yes
12286 # Not sure whether something based on
12287 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12288 # would be better.
12289 output_verbose_link_cmd='func_echo_all'
12291 # Archives containing C++ object files must be created using
12292 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12293 # necessary to make sure instantiated templates are included
12294 # in the archive.
12295 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12297 esac
12299 esac
12302 lynxos*)
12303 # FIXME: insert proper C++ library support
12304 ld_shlibs_CXX=no
12307 m88k*)
12308 # FIXME: insert proper C++ library support
12309 ld_shlibs_CXX=no
12312 mvs*)
12313 case $cc_basename in
12314 cxx*)
12315 # FIXME: insert proper C++ library support
12316 ld_shlibs_CXX=no
12319 # FIXME: insert proper C++ library support
12320 ld_shlibs_CXX=no
12322 esac
12325 netbsd*)
12326 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12327 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12328 wlarc=
12329 hardcode_libdir_flag_spec_CXX='-R$libdir'
12330 hardcode_direct_CXX=yes
12331 hardcode_shlibpath_var_CXX=no
12333 # Workaround some broken pre-1.5 toolchains
12334 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12337 *nto* | *qnx*)
12338 ld_shlibs_CXX=yes
12341 openbsd2*)
12342 # C++ shared libraries are fairly broken
12343 ld_shlibs_CXX=no
12346 openbsd*)
12347 if test -f /usr/libexec/ld.so; then
12348 hardcode_direct_CXX=yes
12349 hardcode_shlibpath_var_CXX=no
12350 hardcode_direct_absolute_CXX=yes
12351 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12352 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12353 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12354 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12355 export_dynamic_flag_spec_CXX='${wl}-E'
12356 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12358 output_verbose_link_cmd=func_echo_all
12359 else
12360 ld_shlibs_CXX=no
12364 osf3* | osf4* | osf5*)
12365 case $cc_basename in
12366 KCC*)
12367 # Kuck and Associates, Inc. (KAI) C++ Compiler
12369 # KCC will only create a shared library if the output file
12370 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12371 # to its proper name (with version) after linking.
12372 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12374 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12375 hardcode_libdir_separator_CXX=:
12377 # Archives containing C++ object files must be created using
12378 # the KAI C++ compiler.
12379 case $host in
12380 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12381 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12382 esac
12384 RCC*)
12385 # Rational C++ 2.4.1
12386 # FIXME: insert proper C++ library support
12387 ld_shlibs_CXX=no
12389 cxx*)
12390 case $host in
12391 osf3*)
12392 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12393 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12394 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12397 allow_undefined_flag_CXX=' -expect_unresolved \*'
12398 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12399 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12400 echo "-hidden">> $lib.exp~
12401 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
12402 $RM $lib.exp'
12403 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12405 esac
12407 hardcode_libdir_separator_CXX=:
12409 # Commands to make compiler produce verbose output that lists
12410 # what "hidden" libraries, object files and flags are used when
12411 # linking a shared library.
12413 # There doesn't appear to be a way to prevent this compiler from
12414 # explicitly linking system object files so we need to strip them
12415 # from the output so that they don't get included in the library
12416 # dependencies.
12417 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12420 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12421 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12422 case $host in
12423 osf3*)
12424 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
12427 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
12429 esac
12431 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12432 hardcode_libdir_separator_CXX=:
12434 # Commands to make compiler produce verbose output that lists
12435 # what "hidden" libraries, object files and flags are used when
12436 # linking a shared library.
12437 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12439 else
12440 # FIXME: insert proper C++ library support
12441 ld_shlibs_CXX=no
12444 esac
12447 psos*)
12448 # FIXME: insert proper C++ library support
12449 ld_shlibs_CXX=no
12452 sunos4*)
12453 case $cc_basename in
12454 CC*)
12455 # Sun C++ 4.x
12456 # FIXME: insert proper C++ library support
12457 ld_shlibs_CXX=no
12459 lcc*)
12460 # Lucid
12461 # FIXME: insert proper C++ library support
12462 ld_shlibs_CXX=no
12465 # FIXME: insert proper C++ library support
12466 ld_shlibs_CXX=no
12468 esac
12471 solaris*)
12472 case $cc_basename in
12473 CC*)
12474 # Sun C++ 4.2, 5.x and Centerline C++
12475 archive_cmds_need_lc_CXX=yes
12476 no_undefined_flag_CXX=' -zdefs'
12477 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12478 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12479 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12481 hardcode_libdir_flag_spec_CXX='-R$libdir'
12482 hardcode_shlibpath_var_CXX=no
12483 case $host_os in
12484 solaris2.[0-5] | solaris2.[0-5].*) ;;
12486 # The compiler driver will combine and reorder linker options,
12487 # but understands `-z linker_flag'.
12488 # Supported since Solaris 2.6 (maybe 2.5.1?)
12489 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12491 esac
12492 link_all_deplibs_CXX=yes
12494 output_verbose_link_cmd='func_echo_all'
12496 # Archives containing C++ object files must be created using
12497 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12498 # necessary to make sure instantiated templates are included
12499 # in the archive.
12500 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12502 gcx*)
12503 # Green Hills C++ Compiler
12504 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12506 # The C++ compiler must be used to create the archive.
12507 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12510 # GNU C++ compiler with Solaris linker
12511 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12512 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12513 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12514 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12515 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12516 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12518 # Commands to make compiler produce verbose output that lists
12519 # what "hidden" libraries, object files and flags are used when
12520 # linking a shared library.
12521 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12522 else
12523 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12524 # platform.
12525 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12526 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12527 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12529 # Commands to make compiler produce verbose output that lists
12530 # what "hidden" libraries, object files and flags are used when
12531 # linking a shared library.
12532 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12535 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12536 case $host_os in
12537 solaris2.[0-5] | solaris2.[0-5].*) ;;
12539 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12541 esac
12544 esac
12547 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12548 no_undefined_flag_CXX='${wl}-z,text'
12549 archive_cmds_need_lc_CXX=no
12550 hardcode_shlibpath_var_CXX=no
12551 runpath_var='LD_RUN_PATH'
12553 case $cc_basename in
12554 CC*)
12555 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12556 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12559 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12560 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12562 esac
12565 sysv5* | sco3.2v5* | sco5v6*)
12566 # Note: We can NOT use -z defs as we might desire, because we do not
12567 # link with -lc, and that would cause any symbols used from libc to
12568 # always be unresolved, which means just about no library would
12569 # ever link correctly. If we're not using GNU ld we use -z text
12570 # though, which does catch some bad symbols but isn't as heavy-handed
12571 # as -z defs.
12572 no_undefined_flag_CXX='${wl}-z,text'
12573 allow_undefined_flag_CXX='${wl}-z,nodefs'
12574 archive_cmds_need_lc_CXX=no
12575 hardcode_shlibpath_var_CXX=no
12576 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12577 hardcode_libdir_separator_CXX=':'
12578 link_all_deplibs_CXX=yes
12579 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12580 runpath_var='LD_RUN_PATH'
12582 case $cc_basename in
12583 CC*)
12584 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12585 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12586 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
12587 '"$old_archive_cmds_CXX"
12588 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
12589 '"$reload_cmds_CXX"
12592 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12593 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12595 esac
12598 tandem*)
12599 case $cc_basename in
12600 NCC*)
12601 # NonStop-UX NCC 3.20
12602 # FIXME: insert proper C++ library support
12603 ld_shlibs_CXX=no
12606 # FIXME: insert proper C++ library support
12607 ld_shlibs_CXX=no
12609 esac
12612 vxworks*)
12613 # FIXME: insert proper C++ library support
12614 ld_shlibs_CXX=no
12618 # FIXME: insert proper C++ library support
12619 ld_shlibs_CXX=no
12621 esac
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12624 $as_echo "$ld_shlibs_CXX" >&6; }
12625 test "$ld_shlibs_CXX" = no && can_build_shared=no
12627 GCC_CXX="$GXX"
12628 LD_CXX="$LD"
12630 ## CAVEAT EMPTOR:
12631 ## There is no encapsulation within the following macros, do not change
12632 ## the running order or otherwise move them around unless you know exactly
12633 ## what you are doing...
12634 # Dependencies to place before and after the object being linked:
12635 predep_objects_CXX=
12636 postdep_objects_CXX=
12637 predeps_CXX=
12638 postdeps_CXX=
12639 compiler_lib_search_path_CXX=
12641 cat > conftest.$ac_ext <<_LT_EOF
12642 class Foo
12644 public:
12645 Foo (void) { a = 0; }
12646 private:
12647 int a;
12649 _LT_EOF
12651 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12652 (eval $ac_compile) 2>&5
12653 ac_status=$?
12654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12655 test $ac_status = 0; }; then
12656 # Parse the compiler output and extract the necessary
12657 # objects, libraries and library flags.
12659 # Sentinel used to keep track of whether or not we are before
12660 # the conftest object file.
12661 pre_test_object_deps_done=no
12663 for p in `eval "$output_verbose_link_cmd"`; do
12664 case $p in
12666 -L* | -R* | -l*)
12667 # Some compilers place space between "-{L,R}" and the path.
12668 # Remove the space.
12669 if test $p = "-L" ||
12670 test $p = "-R"; then
12671 prev=$p
12672 continue
12673 else
12674 prev=
12677 if test "$pre_test_object_deps_done" = no; then
12678 case $p in
12679 -L* | -R*)
12680 # Internal compiler library paths should come after those
12681 # provided the user. The postdeps already come after the
12682 # user supplied libs so there is no need to process them.
12683 if test -z "$compiler_lib_search_path_CXX"; then
12684 compiler_lib_search_path_CXX="${prev}${p}"
12685 else
12686 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12689 # The "-l" case would never come before the object being
12690 # linked, so don't bother handling this case.
12691 esac
12692 else
12693 if test -z "$postdeps_CXX"; then
12694 postdeps_CXX="${prev}${p}"
12695 else
12696 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12701 *.$objext)
12702 # This assumes that the test object file only shows up
12703 # once in the compiler output.
12704 if test "$p" = "conftest.$objext"; then
12705 pre_test_object_deps_done=yes
12706 continue
12709 if test "$pre_test_object_deps_done" = no; then
12710 if test -z "$predep_objects_CXX"; then
12711 predep_objects_CXX="$p"
12712 else
12713 predep_objects_CXX="$predep_objects_CXX $p"
12715 else
12716 if test -z "$postdep_objects_CXX"; then
12717 postdep_objects_CXX="$p"
12718 else
12719 postdep_objects_CXX="$postdep_objects_CXX $p"
12724 *) ;; # Ignore the rest.
12726 esac
12727 done
12729 # Clean up.
12730 rm -f a.out a.exe
12731 else
12732 echo "libtool.m4: error: problem compiling CXX test program"
12735 $RM -f confest.$objext
12737 # PORTME: override above test on systems where it is broken
12738 case $host_os in
12739 interix[3-9]*)
12740 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12741 # hack all around it, let's just trust "g++" to DTRT.
12742 predep_objects_CXX=
12743 postdep_objects_CXX=
12744 postdeps_CXX=
12747 linux*)
12748 case `$CC -V 2>&1 | sed 5q` in
12749 *Sun\ C*)
12750 # Sun C++ 5.9
12752 # The more standards-conforming stlport4 library is
12753 # incompatible with the Cstd library. Avoid specifying
12754 # it if it's in CXXFLAGS. Ignore libCrun as
12755 # -library=stlport4 depends on it.
12756 case " $CXX $CXXFLAGS " in
12757 *" -library=stlport4 "*)
12758 solaris_use_stlport4=yes
12760 esac
12762 if test "$solaris_use_stlport4" != yes; then
12763 postdeps_CXX='-library=Cstd -library=Crun'
12766 esac
12769 solaris*)
12770 case $cc_basename in
12771 CC*)
12772 # The more standards-conforming stlport4 library is
12773 # incompatible with the Cstd library. Avoid specifying
12774 # it if it's in CXXFLAGS. Ignore libCrun as
12775 # -library=stlport4 depends on it.
12776 case " $CXX $CXXFLAGS " in
12777 *" -library=stlport4 "*)
12778 solaris_use_stlport4=yes
12780 esac
12782 # Adding this requires a known-good setup of shared libraries for
12783 # Sun compiler versions before 5.6, else PIC objects from an old
12784 # archive will be linked into the output, leading to subtle bugs.
12785 if test "$solaris_use_stlport4" != yes; then
12786 postdeps_CXX='-library=Cstd -library=Crun'
12789 esac
12791 esac
12794 case " $postdeps_CXX " in
12795 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12796 esac
12797 compiler_lib_search_dirs_CXX=
12798 if test -n "${compiler_lib_search_path_CXX}"; then
12799 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12832 lt_prog_compiler_wl_CXX=
12833 lt_prog_compiler_pic_CXX=
12834 lt_prog_compiler_static_CXX=
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12837 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12839 # C++ specific cases for pic, static, wl, etc.
12840 if test "$GXX" = yes; then
12841 lt_prog_compiler_wl_CXX='-Wl,'
12842 lt_prog_compiler_static_CXX='-static'
12844 case $host_os in
12845 aix*)
12846 # All AIX code is PIC.
12847 if test "$host_cpu" = ia64; then
12848 # AIX 5 now supports IA64 processor
12849 lt_prog_compiler_static_CXX='-Bstatic'
12851 lt_prog_compiler_pic_CXX='-fPIC'
12854 amigaos*)
12855 case $host_cpu in
12856 powerpc)
12857 # see comment about AmigaOS4 .so support
12858 lt_prog_compiler_pic_CXX='-fPIC'
12860 m68k)
12861 # FIXME: we need at least 68020 code to build shared libraries, but
12862 # adding the `-m68020' flag to GCC prevents building anything better,
12863 # like `-m68040'.
12864 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12866 esac
12869 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12870 # PIC is the default for these OSes.
12872 mingw* | cygwin* | os2* | pw32* | cegcc*)
12873 # This hack is so that the source file can tell whether it is being
12874 # built for inclusion in a dll (and should export symbols for example).
12875 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12876 # (--disable-auto-import) libraries
12877 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12879 darwin* | rhapsody*)
12880 # PIC is the default on this platform
12881 # Common symbols not allowed in MH_DYLIB files
12882 lt_prog_compiler_pic_CXX='-fno-common'
12884 *djgpp*)
12885 # DJGPP does not support shared libraries at all
12886 lt_prog_compiler_pic_CXX=
12888 haiku*)
12889 # PIC is the default for Haiku.
12890 # The "-static" flag exists, but is broken.
12891 lt_prog_compiler_static_CXX=
12893 interix[3-9]*)
12894 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12895 # Instead, we relocate shared libraries at runtime.
12897 sysv4*MP*)
12898 if test -d /usr/nec; then
12899 lt_prog_compiler_pic_CXX=-Kconform_pic
12902 hpux*)
12903 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12904 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12905 # sets the default TLS model and affects inlining.
12906 case $host_cpu in
12907 hppa*64*)
12910 lt_prog_compiler_pic_CXX='-fPIC'
12912 esac
12914 *qnx* | *nto*)
12915 # QNX uses GNU C++, but need to define -shared option too, otherwise
12916 # it will coredump.
12917 lt_prog_compiler_pic_CXX='-fPIC -shared'
12920 lt_prog_compiler_pic_CXX='-fPIC'
12922 esac
12923 else
12924 case $host_os in
12925 aix[4-9]*)
12926 # All AIX code is PIC.
12927 if test "$host_cpu" = ia64; then
12928 # AIX 5 now supports IA64 processor
12929 lt_prog_compiler_static_CXX='-Bstatic'
12930 else
12931 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12934 chorus*)
12935 case $cc_basename in
12936 cxch68*)
12937 # Green Hills C++ Compiler
12938 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12940 esac
12942 dgux*)
12943 case $cc_basename in
12944 ec++*)
12945 lt_prog_compiler_pic_CXX='-KPIC'
12947 ghcx*)
12948 # Green Hills C++ Compiler
12949 lt_prog_compiler_pic_CXX='-pic'
12953 esac
12955 freebsd* | dragonfly*)
12956 # FreeBSD uses GNU C++
12958 hpux9* | hpux10* | hpux11*)
12959 case $cc_basename in
12960 CC*)
12961 lt_prog_compiler_wl_CXX='-Wl,'
12962 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12963 if test "$host_cpu" != ia64; then
12964 lt_prog_compiler_pic_CXX='+Z'
12967 aCC*)
12968 lt_prog_compiler_wl_CXX='-Wl,'
12969 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12970 case $host_cpu in
12971 hppa*64*|ia64*)
12972 # +Z the default
12975 lt_prog_compiler_pic_CXX='+Z'
12977 esac
12981 esac
12983 interix*)
12984 # This is c89, which is MS Visual C++ (no shared libs)
12985 # Anyone wants to do a port?
12987 irix5* | irix6* | nonstopux*)
12988 case $cc_basename in
12989 CC*)
12990 lt_prog_compiler_wl_CXX='-Wl,'
12991 lt_prog_compiler_static_CXX='-non_shared'
12992 # CC pic flag -KPIC is the default.
12996 esac
12998 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12999 case $cc_basename in
13000 KCC*)
13001 # KAI C++ Compiler
13002 lt_prog_compiler_wl_CXX='--backend -Wl,'
13003 lt_prog_compiler_pic_CXX='-fPIC'
13005 ecpc* )
13006 # old Intel C++ for x86_64 which still supported -KPIC.
13007 lt_prog_compiler_wl_CXX='-Wl,'
13008 lt_prog_compiler_pic_CXX='-KPIC'
13009 lt_prog_compiler_static_CXX='-static'
13011 icpc* )
13012 # Intel C++, used to be incompatible with GCC.
13013 # ICC 10 doesn't accept -KPIC any more.
13014 lt_prog_compiler_wl_CXX='-Wl,'
13015 lt_prog_compiler_pic_CXX='-fPIC'
13016 lt_prog_compiler_static_CXX='-static'
13018 pgCC* | pgcpp*)
13019 # Portland Group C++ compiler
13020 lt_prog_compiler_wl_CXX='-Wl,'
13021 lt_prog_compiler_pic_CXX='-fpic'
13022 lt_prog_compiler_static_CXX='-Bstatic'
13024 cxx*)
13025 # Compaq C++
13026 # Make sure the PIC flag is empty. It appears that all Alpha
13027 # Linux and Compaq Tru64 Unix objects are PIC.
13028 lt_prog_compiler_pic_CXX=
13029 lt_prog_compiler_static_CXX='-non_shared'
13031 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13032 # IBM XL 8.0, 9.0 on PPC and BlueGene
13033 lt_prog_compiler_wl_CXX='-Wl,'
13034 lt_prog_compiler_pic_CXX='-qpic'
13035 lt_prog_compiler_static_CXX='-qstaticlink'
13038 case `$CC -V 2>&1 | sed 5q` in
13039 *Sun\ C*)
13040 # Sun C++ 5.9
13041 lt_prog_compiler_pic_CXX='-KPIC'
13042 lt_prog_compiler_static_CXX='-Bstatic'
13043 lt_prog_compiler_wl_CXX='-Qoption ld '
13045 esac
13047 esac
13049 lynxos*)
13051 m88k*)
13053 mvs*)
13054 case $cc_basename in
13055 cxx*)
13056 lt_prog_compiler_pic_CXX='-W c,exportall'
13060 esac
13062 netbsd*)
13064 *qnx* | *nto*)
13065 # QNX uses GNU C++, but need to define -shared option too, otherwise
13066 # it will coredump.
13067 lt_prog_compiler_pic_CXX='-fPIC -shared'
13069 osf3* | osf4* | osf5*)
13070 case $cc_basename in
13071 KCC*)
13072 lt_prog_compiler_wl_CXX='--backend -Wl,'
13074 RCC*)
13075 # Rational C++ 2.4.1
13076 lt_prog_compiler_pic_CXX='-pic'
13078 cxx*)
13079 # Digital/Compaq C++
13080 lt_prog_compiler_wl_CXX='-Wl,'
13081 # Make sure the PIC flag is empty. It appears that all Alpha
13082 # Linux and Compaq Tru64 Unix objects are PIC.
13083 lt_prog_compiler_pic_CXX=
13084 lt_prog_compiler_static_CXX='-non_shared'
13088 esac
13090 psos*)
13092 solaris*)
13093 case $cc_basename in
13094 CC*)
13095 # Sun C++ 4.2, 5.x and Centerline C++
13096 lt_prog_compiler_pic_CXX='-KPIC'
13097 lt_prog_compiler_static_CXX='-Bstatic'
13098 lt_prog_compiler_wl_CXX='-Qoption ld '
13100 gcx*)
13101 # Green Hills C++ Compiler
13102 lt_prog_compiler_pic_CXX='-PIC'
13106 esac
13108 sunos4*)
13109 case $cc_basename in
13110 CC*)
13111 # Sun C++ 4.x
13112 lt_prog_compiler_pic_CXX='-pic'
13113 lt_prog_compiler_static_CXX='-Bstatic'
13115 lcc*)
13116 # Lucid
13117 lt_prog_compiler_pic_CXX='-pic'
13121 esac
13123 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13124 case $cc_basename in
13125 CC*)
13126 lt_prog_compiler_wl_CXX='-Wl,'
13127 lt_prog_compiler_pic_CXX='-KPIC'
13128 lt_prog_compiler_static_CXX='-Bstatic'
13130 esac
13132 tandem*)
13133 case $cc_basename in
13134 NCC*)
13135 # NonStop-UX NCC 3.20
13136 lt_prog_compiler_pic_CXX='-KPIC'
13140 esac
13142 vxworks*)
13145 lt_prog_compiler_can_build_shared_CXX=no
13147 esac
13150 case $host_os in
13151 # For platforms which do not support PIC, -DPIC is meaningless:
13152 *djgpp*)
13153 lt_prog_compiler_pic_CXX=
13156 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13158 esac
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13160 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13165 # Check to make sure the PIC flag actually works.
13167 if test -n "$lt_prog_compiler_pic_CXX"; then
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13169 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13170 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13171 $as_echo_n "(cached) " >&6
13172 else
13173 lt_cv_prog_compiler_pic_works_CXX=no
13174 ac_outfile=conftest.$ac_objext
13175 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13176 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13177 # Insert the option either (1) after the last *FLAGS variable, or
13178 # (2) before a word containing "conftest.", or (3) at the end.
13179 # Note that $ac_compile itself does not contain backslashes and begins
13180 # with a dollar sign (not a hyphen), so the echo should work correctly.
13181 # The option is referenced via a variable to avoid confusing sed.
13182 lt_compile=`echo "$ac_compile" | $SED \
13183 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13184 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13185 -e 's:$: $lt_compiler_flag:'`
13186 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13187 (eval "$lt_compile" 2>conftest.err)
13188 ac_status=$?
13189 cat conftest.err >&5
13190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13191 if (exit $ac_status) && test -s "$ac_outfile"; then
13192 # The compiler can only warn and ignore the option if not recognized
13193 # So say no if there are warnings other than the usual output.
13194 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13195 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13196 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13197 lt_cv_prog_compiler_pic_works_CXX=yes
13200 $RM conftest*
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13204 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13206 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13207 case $lt_prog_compiler_pic_CXX in
13208 "" | " "*) ;;
13209 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13210 esac
13211 else
13212 lt_prog_compiler_pic_CXX=
13213 lt_prog_compiler_can_build_shared_CXX=no
13221 # Check to make sure the static flag actually works.
13223 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13225 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13226 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13227 $as_echo_n "(cached) " >&6
13228 else
13229 lt_cv_prog_compiler_static_works_CXX=no
13230 save_LDFLAGS="$LDFLAGS"
13231 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13232 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13233 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13234 # The linker can only warn and ignore the option if not recognized
13235 # So say no if there are warnings
13236 if test -s conftest.err; then
13237 # Append any errors to the config.log.
13238 cat conftest.err 1>&5
13239 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13240 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13241 if diff conftest.exp conftest.er2 >/dev/null; then
13242 lt_cv_prog_compiler_static_works_CXX=yes
13244 else
13245 lt_cv_prog_compiler_static_works_CXX=yes
13248 $RM -r conftest*
13249 LDFLAGS="$save_LDFLAGS"
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13253 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13255 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13257 else
13258 lt_prog_compiler_static_CXX=
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13265 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13266 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13267 $as_echo_n "(cached) " >&6
13268 else
13269 lt_cv_prog_compiler_c_o_CXX=no
13270 $RM -r conftest 2>/dev/null
13271 mkdir conftest
13272 cd conftest
13273 mkdir out
13274 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13276 lt_compiler_flag="-o out/conftest2.$ac_objext"
13277 # Insert the option either (1) after the last *FLAGS variable, or
13278 # (2) before a word containing "conftest.", or (3) at the end.
13279 # Note that $ac_compile itself does not contain backslashes and begins
13280 # with a dollar sign (not a hyphen), so the echo should work correctly.
13281 lt_compile=`echo "$ac_compile" | $SED \
13282 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13283 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13284 -e 's:$: $lt_compiler_flag:'`
13285 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13286 (eval "$lt_compile" 2>out/conftest.err)
13287 ac_status=$?
13288 cat out/conftest.err >&5
13289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13291 then
13292 # The compiler can only warn and ignore the option if not recognized
13293 # So say no if there are warnings
13294 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13295 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13296 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13297 lt_cv_prog_compiler_c_o_CXX=yes
13300 chmod u+w . 2>&5
13301 $RM conftest*
13302 # SGI C++ compiler will create directory out/ii_files/ for
13303 # template instantiation
13304 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13305 $RM out/* && rmdir out
13306 cd ..
13307 $RM -r conftest
13308 $RM conftest*
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13312 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13317 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13318 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13319 $as_echo_n "(cached) " >&6
13320 else
13321 lt_cv_prog_compiler_c_o_CXX=no
13322 $RM -r conftest 2>/dev/null
13323 mkdir conftest
13324 cd conftest
13325 mkdir out
13326 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13328 lt_compiler_flag="-o out/conftest2.$ac_objext"
13329 # Insert the option either (1) after the last *FLAGS variable, or
13330 # (2) before a word containing "conftest.", or (3) at the end.
13331 # Note that $ac_compile itself does not contain backslashes and begins
13332 # with a dollar sign (not a hyphen), so the echo should work correctly.
13333 lt_compile=`echo "$ac_compile" | $SED \
13334 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13335 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13336 -e 's:$: $lt_compiler_flag:'`
13337 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13338 (eval "$lt_compile" 2>out/conftest.err)
13339 ac_status=$?
13340 cat out/conftest.err >&5
13341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13342 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13343 then
13344 # The compiler can only warn and ignore the option if not recognized
13345 # So say no if there are warnings
13346 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13347 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13348 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13349 lt_cv_prog_compiler_c_o_CXX=yes
13352 chmod u+w . 2>&5
13353 $RM conftest*
13354 # SGI C++ compiler will create directory out/ii_files/ for
13355 # template instantiation
13356 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13357 $RM out/* && rmdir out
13358 cd ..
13359 $RM -r conftest
13360 $RM conftest*
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13364 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13369 hard_links="nottested"
13370 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13371 # do not overwrite the value of need_locks provided by the user
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13373 $as_echo_n "checking if we can lock with hard links... " >&6; }
13374 hard_links=yes
13375 $RM conftest*
13376 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13377 touch conftest.a
13378 ln conftest.a conftest.b 2>&5 || hard_links=no
13379 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13381 $as_echo "$hard_links" >&6; }
13382 if test "$hard_links" = no; then
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13384 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13385 need_locks=warn
13387 else
13388 need_locks=no
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13394 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13396 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13397 case $host_os in
13398 aix[4-9]*)
13399 # If we're using GNU nm, then we don't want the "-C" option.
13400 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13401 # Also, AIX nm treats weak defined symbols like other global defined
13402 # symbols, whereas GNU nm marks them as "W".
13403 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13404 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13405 else
13406 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13409 pw32*)
13410 export_symbols_cmds_CXX="$ltdll_cmds"
13412 cygwin* | mingw* | cegcc*)
13413 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13416 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13418 esac
13419 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13422 $as_echo "$ld_shlibs_CXX" >&6; }
13423 test "$ld_shlibs_CXX" = no && can_build_shared=no
13425 with_gnu_ld_CXX=$with_gnu_ld
13433 # Do we need to explicitly link libc?
13435 case "x$archive_cmds_need_lc_CXX" in
13436 x|xyes)
13437 # Assume -lc should be added
13438 archive_cmds_need_lc_CXX=yes
13440 if test "$enable_shared" = yes && test "$GCC" = yes; then
13441 case $archive_cmds_CXX in
13442 *'~'*)
13443 # FIXME: we may have to deal with multi-command sequences.
13445 '$CC '*)
13446 # Test whether the compiler implicitly links with -lc since on some
13447 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13448 # to ld, don't add -lc before -lgcc.
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13450 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13451 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
13452 $as_echo_n "(cached) " >&6
13453 else
13454 $RM conftest*
13455 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13457 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13458 (eval $ac_compile) 2>&5
13459 ac_status=$?
13460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13461 test $ac_status = 0; } 2>conftest.err; then
13462 soname=conftest
13463 lib=conftest
13464 libobjs=conftest.$ac_objext
13465 deplibs=
13466 wl=$lt_prog_compiler_wl_CXX
13467 pic_flag=$lt_prog_compiler_pic_CXX
13468 compiler_flags=-v
13469 linker_flags=-v
13470 verstring=
13471 output_objdir=.
13472 libname=conftest
13473 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13474 allow_undefined_flag_CXX=
13475 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13476 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13477 ac_status=$?
13478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13479 test $ac_status = 0; }
13480 then
13481 lt_cv_archive_cmds_need_lc_CXX=no
13482 else
13483 lt_cv_archive_cmds_need_lc_CXX=yes
13485 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13486 else
13487 cat conftest.err 1>&5
13489 $RM conftest*
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13493 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13494 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13496 esac
13499 esac
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13565 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13567 library_names_spec=
13568 libname_spec='lib$name'
13569 soname_spec=
13570 shrext_cmds=".so"
13571 postinstall_cmds=
13572 postuninstall_cmds=
13573 finish_cmds=
13574 finish_eval=
13575 shlibpath_var=
13576 shlibpath_overrides_runpath=unknown
13577 version_type=none
13578 dynamic_linker="$host_os ld.so"
13579 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13580 need_lib_prefix=unknown
13581 hardcode_into_libs=no
13583 # when you set need_version to no, make sure it does not cause -set_version
13584 # flags to be left without arguments
13585 need_version=unknown
13587 case $host_os in
13588 aix3*)
13589 version_type=linux
13590 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13591 shlibpath_var=LIBPATH
13593 # AIX 3 has no versioning support, so we append a major version to the name.
13594 soname_spec='${libname}${release}${shared_ext}$major'
13597 aix[4-9]*)
13598 version_type=linux
13599 need_lib_prefix=no
13600 need_version=no
13601 hardcode_into_libs=yes
13602 if test "$host_cpu" = ia64; then
13603 # AIX 5 supports IA64
13604 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13605 shlibpath_var=LD_LIBRARY_PATH
13606 else
13607 # With GCC up to 2.95.x, collect2 would create an import file
13608 # for dependence libraries. The import file would start with
13609 # the line `#! .'. This would cause the generated library to
13610 # depend on `.', always an invalid library. This was fixed in
13611 # development snapshots of GCC prior to 3.0.
13612 case $host_os in
13613 aix4 | aix4.[01] | aix4.[01].*)
13614 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13615 echo ' yes '
13616 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13618 else
13619 can_build_shared=no
13622 esac
13623 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13624 # soname into executable. Probably we can add versioning support to
13625 # collect2, so additional links can be useful in future.
13626 if test "$aix_use_runtimelinking" = yes; then
13627 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13628 # instead of lib<name>.a to let people know that these are not
13629 # typical AIX shared libraries.
13630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13631 else
13632 # We preserve .a as extension for shared libraries through AIX4.2
13633 # and later when we are not doing run time linking.
13634 library_names_spec='${libname}${release}.a $libname.a'
13635 soname_spec='${libname}${release}${shared_ext}$major'
13637 shlibpath_var=LIBPATH
13641 amigaos*)
13642 case $host_cpu in
13643 powerpc)
13644 # Since July 2007 AmigaOS4 officially supports .so libraries.
13645 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13648 m68k)
13649 library_names_spec='$libname.ixlibrary $libname.a'
13650 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13651 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'
13653 esac
13656 beos*)
13657 library_names_spec='${libname}${shared_ext}'
13658 dynamic_linker="$host_os ld.so"
13659 shlibpath_var=LIBRARY_PATH
13662 bsdi[45]*)
13663 version_type=linux
13664 need_version=no
13665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13666 soname_spec='${libname}${release}${shared_ext}$major'
13667 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13668 shlibpath_var=LD_LIBRARY_PATH
13669 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13670 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13671 # the default ld.so.conf also contains /usr/contrib/lib and
13672 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13673 # libtool to hard-code these into programs
13676 cygwin* | mingw* | pw32* | cegcc*)
13677 version_type=windows
13678 shrext_cmds=".dll"
13679 need_version=no
13680 need_lib_prefix=no
13682 case $GCC,$host_os in
13683 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13684 library_names_spec='$libname.dll.a'
13685 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13686 postinstall_cmds='base_file=`basename \${file}`~
13687 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13688 dldir=$destdir/`dirname \$dlpath`~
13689 test -d \$dldir || mkdir -p \$dldir~
13690 $install_prog $dir/$dlname \$dldir/$dlname~
13691 chmod a+x \$dldir/$dlname~
13692 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13693 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13695 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13696 dlpath=$dir/\$dldll~
13697 $RM \$dlpath'
13698 shlibpath_overrides_runpath=yes
13700 case $host_os in
13701 cygwin*)
13702 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13703 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13706 mingw* | cegcc*)
13707 # MinGW DLLs use traditional 'lib' prefix
13708 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13710 pw32*)
13711 # pw32 DLLs use 'pw' prefix rather than 'lib'
13712 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13714 esac
13718 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13720 esac
13721 dynamic_linker='Win32 ld.exe'
13722 # FIXME: first we should search . and the directory the executable is in
13723 shlibpath_var=PATH
13726 darwin* | rhapsody*)
13727 dynamic_linker="$host_os dyld"
13728 version_type=darwin
13729 need_lib_prefix=no
13730 need_version=no
13731 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13732 soname_spec='${libname}${release}${major}$shared_ext'
13733 shlibpath_overrides_runpath=yes
13734 shlibpath_var=DYLD_LIBRARY_PATH
13735 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13737 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13740 dgux*)
13741 version_type=linux
13742 need_lib_prefix=no
13743 need_version=no
13744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13745 soname_spec='${libname}${release}${shared_ext}$major'
13746 shlibpath_var=LD_LIBRARY_PATH
13749 freebsd* | dragonfly*)
13750 # DragonFly does not have aout. When/if they implement a new
13751 # versioning mechanism, adjust this.
13752 if test -x /usr/bin/objformat; then
13753 objformat=`/usr/bin/objformat`
13754 else
13755 case $host_os in
13756 freebsd[23].*) objformat=aout ;;
13757 *) objformat=elf ;;
13758 esac
13760 version_type=freebsd-$objformat
13761 case $version_type in
13762 freebsd-elf*)
13763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13764 need_version=no
13765 need_lib_prefix=no
13767 freebsd-*)
13768 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13769 need_version=yes
13771 esac
13772 shlibpath_var=LD_LIBRARY_PATH
13773 case $host_os in
13774 freebsd2.*)
13775 shlibpath_overrides_runpath=yes
13777 freebsd3.[01]* | freebsdelf3.[01]*)
13778 shlibpath_overrides_runpath=yes
13779 hardcode_into_libs=yes
13781 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13782 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13783 shlibpath_overrides_runpath=no
13784 hardcode_into_libs=yes
13786 *) # from 4.6 on, and DragonFly
13787 shlibpath_overrides_runpath=yes
13788 hardcode_into_libs=yes
13790 esac
13793 gnu*)
13794 version_type=linux
13795 need_lib_prefix=no
13796 need_version=no
13797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13798 soname_spec='${libname}${release}${shared_ext}$major'
13799 shlibpath_var=LD_LIBRARY_PATH
13800 hardcode_into_libs=yes
13803 haiku*)
13804 version_type=linux
13805 need_lib_prefix=no
13806 need_version=no
13807 dynamic_linker="$host_os runtime_loader"
13808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13809 soname_spec='${libname}${release}${shared_ext}$major'
13810 shlibpath_var=LIBRARY_PATH
13811 shlibpath_overrides_runpath=yes
13812 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
13813 hardcode_into_libs=yes
13816 hpux9* | hpux10* | hpux11*)
13817 # Give a soname corresponding to the major version so that dld.sl refuses to
13818 # link against other versions.
13819 version_type=sunos
13820 need_lib_prefix=no
13821 need_version=no
13822 case $host_cpu in
13823 ia64*)
13824 shrext_cmds='.so'
13825 hardcode_into_libs=yes
13826 dynamic_linker="$host_os dld.so"
13827 shlibpath_var=LD_LIBRARY_PATH
13828 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13830 soname_spec='${libname}${release}${shared_ext}$major'
13831 if test "X$HPUX_IA64_MODE" = X32; then
13832 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13833 else
13834 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13836 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13838 hppa*64*)
13839 shrext_cmds='.sl'
13840 hardcode_into_libs=yes
13841 dynamic_linker="$host_os dld.sl"
13842 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13843 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13845 soname_spec='${libname}${release}${shared_ext}$major'
13846 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13847 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13850 shrext_cmds='.sl'
13851 dynamic_linker="$host_os dld.sl"
13852 shlibpath_var=SHLIB_PATH
13853 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13855 soname_spec='${libname}${release}${shared_ext}$major'
13857 esac
13858 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13859 postinstall_cmds='chmod 555 $lib'
13860 # or fails outright, so override atomically:
13861 install_override_mode=555
13864 interix[3-9]*)
13865 version_type=linux
13866 need_lib_prefix=no
13867 need_version=no
13868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13869 soname_spec='${libname}${release}${shared_ext}$major'
13870 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13871 shlibpath_var=LD_LIBRARY_PATH
13872 shlibpath_overrides_runpath=no
13873 hardcode_into_libs=yes
13876 irix5* | irix6* | nonstopux*)
13877 case $host_os in
13878 nonstopux*) version_type=nonstopux ;;
13880 if test "$lt_cv_prog_gnu_ld" = yes; then
13881 version_type=linux
13882 else
13883 version_type=irix
13884 fi ;;
13885 esac
13886 need_lib_prefix=no
13887 need_version=no
13888 soname_spec='${libname}${release}${shared_ext}$major'
13889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13890 case $host_os in
13891 irix5* | nonstopux*)
13892 libsuff= shlibsuff=
13895 case $LD in # libtool.m4 will add one of these switches to LD
13896 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13897 libsuff= shlibsuff= libmagic=32-bit;;
13898 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13899 libsuff=32 shlibsuff=N32 libmagic=N32;;
13900 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13901 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13902 *) libsuff= shlibsuff= libmagic=never-match;;
13903 esac
13905 esac
13906 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13907 shlibpath_overrides_runpath=no
13908 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13909 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13910 hardcode_into_libs=yes
13913 # No shared lib support for Linux oldld, aout, or coff.
13914 linux*oldld* | linux*aout* | linux*coff*)
13915 dynamic_linker=no
13918 # This must be Linux ELF.
13919 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13920 version_type=linux
13921 need_lib_prefix=no
13922 need_version=no
13923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13924 soname_spec='${libname}${release}${shared_ext}$major'
13925 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13926 shlibpath_var=LD_LIBRARY_PATH
13927 shlibpath_overrides_runpath=no
13929 # Some binutils ld are patched to set DT_RUNPATH
13930 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
13931 $as_echo_n "(cached) " >&6
13932 else
13933 lt_cv_shlibpath_overrides_runpath=no
13934 save_LDFLAGS=$LDFLAGS
13935 save_libdir=$libdir
13936 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13937 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13939 /* end confdefs.h. */
13942 main ()
13946 return 0;
13948 _ACEOF
13949 if ac_fn_cxx_try_link "$LINENO"; then :
13950 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13951 lt_cv_shlibpath_overrides_runpath=yes
13954 rm -f core conftest.err conftest.$ac_objext \
13955 conftest$ac_exeext conftest.$ac_ext
13956 LDFLAGS=$save_LDFLAGS
13957 libdir=$save_libdir
13961 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13963 # This implies no fast_install, which is unacceptable.
13964 # Some rework will be needed to allow for fast_install
13965 # before this can be enabled.
13966 hardcode_into_libs=yes
13968 # Append ld.so.conf contents to the search path
13969 if test -f /etc/ld.so.conf; then
13970 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' ' '`
13971 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13974 # We used to test for /lib/ld.so.1 and disable shared libraries on
13975 # powerpc, because MkLinux only supported shared libraries with the
13976 # GNU dynamic linker. Since this was broken with cross compilers,
13977 # most powerpc-linux boxes support dynamic linking these days and
13978 # people can always --disable-shared, the test was removed, and we
13979 # assume the GNU/Linux dynamic linker is in use.
13980 dynamic_linker='GNU/Linux ld.so'
13983 netbsd*)
13984 version_type=sunos
13985 need_lib_prefix=no
13986 need_version=no
13987 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13989 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13990 dynamic_linker='NetBSD (a.out) ld.so'
13991 else
13992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13993 soname_spec='${libname}${release}${shared_ext}$major'
13994 dynamic_linker='NetBSD ld.elf_so'
13996 shlibpath_var=LD_LIBRARY_PATH
13997 shlibpath_overrides_runpath=yes
13998 hardcode_into_libs=yes
14001 newsos6)
14002 version_type=linux
14003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14004 shlibpath_var=LD_LIBRARY_PATH
14005 shlibpath_overrides_runpath=yes
14008 *nto* | *qnx*)
14009 version_type=qnx
14010 need_lib_prefix=no
14011 need_version=no
14012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14013 soname_spec='${libname}${release}${shared_ext}$major'
14014 shlibpath_var=LD_LIBRARY_PATH
14015 shlibpath_overrides_runpath=no
14016 hardcode_into_libs=yes
14017 dynamic_linker='ldqnx.so'
14020 openbsd*)
14021 version_type=sunos
14022 sys_lib_dlsearch_path_spec="/usr/lib"
14023 need_lib_prefix=no
14024 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14025 case $host_os in
14026 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14027 *) need_version=no ;;
14028 esac
14029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14030 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14031 shlibpath_var=LD_LIBRARY_PATH
14032 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14033 case $host_os in
14034 openbsd2.[89] | openbsd2.[89].*)
14035 shlibpath_overrides_runpath=no
14038 shlibpath_overrides_runpath=yes
14040 esac
14041 else
14042 shlibpath_overrides_runpath=yes
14046 os2*)
14047 libname_spec='$name'
14048 shrext_cmds=".dll"
14049 need_lib_prefix=no
14050 library_names_spec='$libname${shared_ext} $libname.a'
14051 dynamic_linker='OS/2 ld.exe'
14052 shlibpath_var=LIBPATH
14055 osf3* | osf4* | osf5*)
14056 version_type=osf
14057 need_lib_prefix=no
14058 need_version=no
14059 soname_spec='${libname}${release}${shared_ext}$major'
14060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14061 shlibpath_var=LD_LIBRARY_PATH
14062 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14063 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14066 rdos*)
14067 dynamic_linker=no
14070 solaris*)
14071 version_type=linux
14072 need_lib_prefix=no
14073 need_version=no
14074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14075 soname_spec='${libname}${release}${shared_ext}$major'
14076 shlibpath_var=LD_LIBRARY_PATH
14077 shlibpath_overrides_runpath=yes
14078 hardcode_into_libs=yes
14079 # ldd complains unless libraries are executable
14080 postinstall_cmds='chmod +x $lib'
14083 sunos4*)
14084 version_type=sunos
14085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14086 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14087 shlibpath_var=LD_LIBRARY_PATH
14088 shlibpath_overrides_runpath=yes
14089 if test "$with_gnu_ld" = yes; then
14090 need_lib_prefix=no
14092 need_version=yes
14095 sysv4 | sysv4.3*)
14096 version_type=linux
14097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14098 soname_spec='${libname}${release}${shared_ext}$major'
14099 shlibpath_var=LD_LIBRARY_PATH
14100 case $host_vendor in
14101 sni)
14102 shlibpath_overrides_runpath=no
14103 need_lib_prefix=no
14104 runpath_var=LD_RUN_PATH
14106 siemens)
14107 need_lib_prefix=no
14109 motorola)
14110 need_lib_prefix=no
14111 need_version=no
14112 shlibpath_overrides_runpath=no
14113 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14115 esac
14118 sysv4*MP*)
14119 if test -d /usr/nec ;then
14120 version_type=linux
14121 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14122 soname_spec='$libname${shared_ext}.$major'
14123 shlibpath_var=LD_LIBRARY_PATH
14127 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14128 version_type=freebsd-elf
14129 need_lib_prefix=no
14130 need_version=no
14131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14132 soname_spec='${libname}${release}${shared_ext}$major'
14133 shlibpath_var=LD_LIBRARY_PATH
14134 shlibpath_overrides_runpath=yes
14135 hardcode_into_libs=yes
14136 if test "$with_gnu_ld" = yes; then
14137 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14138 else
14139 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14140 case $host_os in
14141 sco3.2v5*)
14142 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14144 esac
14146 sys_lib_dlsearch_path_spec='/usr/lib'
14149 tpf*)
14150 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14151 version_type=linux
14152 need_lib_prefix=no
14153 need_version=no
14154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14155 shlibpath_var=LD_LIBRARY_PATH
14156 shlibpath_overrides_runpath=no
14157 hardcode_into_libs=yes
14160 uts4*)
14161 version_type=linux
14162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14163 soname_spec='${libname}${release}${shared_ext}$major'
14164 shlibpath_var=LD_LIBRARY_PATH
14168 dynamic_linker=no
14170 esac
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14172 $as_echo "$dynamic_linker" >&6; }
14173 test "$dynamic_linker" = no && can_build_shared=no
14175 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14176 if test "$GCC" = yes; then
14177 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14180 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14181 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14183 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14184 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14225 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14226 hardcode_action_CXX=
14227 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14228 test -n "$runpath_var_CXX" ||
14229 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14231 # We can hardcode non-existent directories.
14232 if test "$hardcode_direct_CXX" != no &&
14233 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14234 # have to relink, otherwise we might link with an installed library
14235 # when we should be linking with a yet-to-be-installed one
14236 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14237 test "$hardcode_minus_L_CXX" != no; then
14238 # Linking always hardcodes the temporary library directory.
14239 hardcode_action_CXX=relink
14240 else
14241 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14242 hardcode_action_CXX=immediate
14244 else
14245 # We cannot hardcode anything, or else we can only hardcode existing
14246 # directories.
14247 hardcode_action_CXX=unsupported
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14250 $as_echo "$hardcode_action_CXX" >&6; }
14252 if test "$hardcode_action_CXX" = relink ||
14253 test "$inherit_rpath_CXX" = yes; then
14254 # Fast installation is not supported
14255 enable_fast_install=no
14256 elif test "$shlibpath_overrides_runpath" = yes ||
14257 test "$enable_shared" = no; then
14258 # Fast installation is not necessary
14259 enable_fast_install=needless
14268 fi # test -n "$compiler"
14270 CC=$lt_save_CC
14271 LDCXX=$LD
14272 LD=$lt_save_LD
14273 GCC=$lt_save_GCC
14274 with_gnu_ld=$lt_save_with_gnu_ld
14275 lt_cv_path_LDCXX=$lt_cv_path_LD
14276 lt_cv_path_LD=$lt_save_path_LD
14277 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14278 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14279 fi # test "$_lt_caught_CXX_error" != yes
14281 ac_ext=c
14282 ac_cpp='$CPP $CPPFLAGS'
14283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14289 visibility=
14290 if test "$GXX" = yes; then
14291 visibility=-fvisibility=hidden
14295 ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
14296 if test "x$ac_cv_have_decl_basename" = x""yes; then :
14297 ac_have_decl=1
14298 else
14299 ac_have_decl=0
14302 cat >>confdefs.h <<_ACEOF
14303 #define HAVE_DECL_BASENAME $ac_have_decl
14304 _ACEOF
14307 gcc_version=`cat $srcdir/../gcc/BASE-VER`
14310 WARN_FLAGS=
14311 save_CFLAGS="$CFLAGS"
14312 for real_option in -W -Wall; do
14313 # Do the check with the no- prefix removed since gcc silently
14314 # accepts any -Wno-* option on purpose
14315 case $real_option in
14316 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
14317 *) option=$real_option ;;
14318 esac
14319 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
14322 $as_echo_n "checking whether $CC supports $option... " >&6; }
14323 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
14324 $as_echo_n "(cached) " >&6
14325 else
14326 CFLAGS="$option"
14327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14328 /* end confdefs.h. */
14331 main ()
14335 return 0;
14337 _ACEOF
14338 if ac_fn_c_try_compile "$LINENO"; then :
14339 eval "$as_acx_Woption=yes"
14340 else
14341 eval "$as_acx_Woption=no"
14343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14346 eval ac_res=\$$as_acx_Woption
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14348 $as_echo "$ac_res" >&6; }
14349 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
14350 WARN_FLAGS="$WARN_FLAGS${WARN_FLAGS:+ }$real_option"
14352 done
14353 CFLAGS="$save_CFLAGS"
14356 WERROR=
14357 # Check whether --enable-werror-always was given.
14358 if test "${enable_werror_always+set}" = set; then :
14359 enableval=$enable_werror_always;
14360 else
14361 enable_werror_always=no
14364 if test $enable_werror_always = yes; then :
14365 WERROR="$WERROR${WERROR:+ }-Werror"
14372 libsuffix=
14373 if test "$GXX" = yes; then
14374 libsuffix=`$CXX -print-multi-os-directory`
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14379 $as_echo_n "checking for socket libraries... " >&6; }
14380 if test "${libcc1_cv_lib_sockets+set}" = set; then :
14381 $as_echo_n "(cached) " >&6
14382 else
14383 libcc1_cv_lib_sockets=
14384 libcc1_check_both=no
14385 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
14386 if test "x$ac_cv_func_connect" = x""yes; then :
14387 libcc1_check_socket=no
14388 else
14389 libcc1_check_socket=yes
14392 if test "$libcc1_check_socket" = "yes"; then
14393 unset ac_cv_func_connect
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
14395 $as_echo_n "checking for main in -lsocket... " >&6; }
14396 if test "${ac_cv_lib_socket_main+set}" = set; then :
14397 $as_echo_n "(cached) " >&6
14398 else
14399 ac_check_lib_save_LIBS=$LIBS
14400 LIBS="-lsocket $LIBS"
14401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14402 /* end confdefs.h. */
14406 main ()
14408 return main ();
14410 return 0;
14412 _ACEOF
14413 if ac_fn_c_try_link "$LINENO"; then :
14414 ac_cv_lib_socket_main=yes
14415 else
14416 ac_cv_lib_socket_main=no
14418 rm -f core conftest.err conftest.$ac_objext \
14419 conftest$ac_exeext conftest.$ac_ext
14420 LIBS=$ac_check_lib_save_LIBS
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14423 $as_echo "$ac_cv_lib_socket_main" >&6; }
14424 if test "x$ac_cv_lib_socket_main" = x""yes; then :
14425 libcc1_cv_lib_sockets="-lsocket"
14426 else
14427 libcc1_check_both=yes
14431 if test "$libcc1_check_both" = "yes"; then
14432 libcc1_old_libs=$LIBS
14433 LIBS="$LIBS -lsocket -lnsl"
14434 unset ac_cv_func_accept
14435 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
14436 if test "x$ac_cv_func_accept" = x""yes; then :
14437 libcc1_check_nsl=no
14438 libcc1_cv_lib_sockets="-lsocket -lnsl"
14441 unset ac_cv_func_accept
14442 LIBS=$libcc1_old_libs
14444 unset ac_cv_func_gethostbyname
14445 libcc1_old_libs="$LIBS"
14446 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14447 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
14449 else
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14451 $as_echo_n "checking for main in -lnsl... " >&6; }
14452 if test "${ac_cv_lib_nsl_main+set}" = set; then :
14453 $as_echo_n "(cached) " >&6
14454 else
14455 ac_check_lib_save_LIBS=$LIBS
14456 LIBS="-lnsl $LIBS"
14457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14458 /* end confdefs.h. */
14462 main ()
14464 return main ();
14466 return 0;
14468 _ACEOF
14469 if ac_fn_c_try_link "$LINENO"; then :
14470 ac_cv_lib_nsl_main=yes
14471 else
14472 ac_cv_lib_nsl_main=no
14474 rm -f core conftest.err conftest.$ac_objext \
14475 conftest$ac_exeext conftest.$ac_ext
14476 LIBS=$ac_check_lib_save_LIBS
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14479 $as_echo "$ac_cv_lib_nsl_main" >&6; }
14480 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
14481 libcc1_cv_lib_sockets="$libcc1_cv_lib_sockets -lnsl"
14486 unset ac_cv_func_gethostbyname
14487 LIBS=$libcc1_old_libs
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcc1_cv_lib_sockets" >&5
14491 $as_echo "$libcc1_cv_lib_sockets" >&6; }
14492 LIBS="$LIBS $libcc1_cv_lib_sockets"
14494 # If any of these functions are missing, simply don't bother building
14495 # this plugin.
14496 # Check for plugin support
14497 # Check whether --enable-plugin was given.
14498 if test "${enable_plugin+set}" = set; then :
14499 enableval=$enable_plugin; enable_plugin=$enableval
14500 else
14501 enable_plugin=yes; default_plugin=yes
14505 pluginlibs=
14507 case "${host}" in
14508 *-*-darwin*)
14509 if test x$build = x$host; then
14510 export_sym_check="nm${exeext} -g"
14511 elif test x$host = x$target; then
14512 export_sym_check="$gcc_cv_nm -g"
14513 else
14514 export_sym_check=
14518 if test x$build = x$host; then
14519 export_sym_check="objdump${exeext} -T"
14520 elif test x$host = x$target; then
14521 export_sym_check="$gcc_cv_objdump -T"
14522 else
14523 export_sym_check=
14526 esac
14528 if test x"$enable_plugin" = x"yes"; then
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
14531 $as_echo_n "checking for exported symbols... " >&6; }
14532 if test "x$export_sym_check" != x; then
14533 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
14534 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
14535 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
14536 : # No need to use a flag
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14538 $as_echo "yes" >&6; }
14539 else
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14541 $as_echo "yes" >&6; }
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
14543 $as_echo_n "checking for -rdynamic... " >&6; }
14544 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
14545 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
14546 plugin_rdynamic=yes
14547 pluginlibs="-rdynamic"
14548 else
14549 plugin_rdynamic=no
14550 enable_plugin=no
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
14553 $as_echo "$plugin_rdynamic" >&6; }
14555 else
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
14557 $as_echo "unable to check" >&6; }
14560 # Check -ldl
14561 saved_LIBS="$LIBS"
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
14563 $as_echo_n "checking for library containing dlopen... " >&6; }
14564 if test "${ac_cv_search_dlopen+set}" = set; then :
14565 $as_echo_n "(cached) " >&6
14566 else
14567 ac_func_search_save_LIBS=$LIBS
14568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14569 /* end confdefs.h. */
14571 /* Override any GCC internal prototype to avoid an error.
14572 Use char because int might match the return type of a GCC
14573 builtin and then its argument prototype would still apply. */
14574 #ifdef __cplusplus
14575 extern "C"
14576 #endif
14577 char dlopen ();
14579 main ()
14581 return dlopen ();
14583 return 0;
14585 _ACEOF
14586 for ac_lib in '' dl; do
14587 if test -z "$ac_lib"; then
14588 ac_res="none required"
14589 else
14590 ac_res=-l$ac_lib
14591 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14593 if ac_fn_c_try_link "$LINENO"; then :
14594 ac_cv_search_dlopen=$ac_res
14596 rm -f core conftest.err conftest.$ac_objext \
14597 conftest$ac_exeext
14598 if test "${ac_cv_search_dlopen+set}" = set; then :
14599 break
14601 done
14602 if test "${ac_cv_search_dlopen+set}" = set; then :
14604 else
14605 ac_cv_search_dlopen=no
14607 rm conftest.$ac_ext
14608 LIBS=$ac_func_search_save_LIBS
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
14611 $as_echo "$ac_cv_search_dlopen" >&6; }
14612 ac_res=$ac_cv_search_dlopen
14613 if test "$ac_res" != no; then :
14614 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14618 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
14619 pluginlibs="$pluginlibs -ldl"
14621 LIBS="$saved_LIBS"
14623 # Check that we can build shared objects with -fPIC -shared
14624 saved_LDFLAGS="$LDFLAGS"
14625 saved_CFLAGS="$CFLAGS"
14626 case "${host}" in
14627 *-*-darwin*)
14628 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
14629 CFLAGS="$CFLAGS -fPIC"
14630 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
14633 CFLAGS="$CFLAGS -fPIC"
14634 LDFLAGS="$LDFLAGS -fPIC -shared"
14636 esac
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
14638 $as_echo_n "checking for -fPIC -shared... " >&6; }
14639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14640 /* end confdefs.h. */
14641 extern int X;
14643 main ()
14645 return X == 0;
14647 return 0;
14649 _ACEOF
14650 if ac_fn_c_try_link "$LINENO"; then :
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14652 $as_echo "yes" >&6; }; have_pic_shared=yes
14653 else
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14655 $as_echo "no" >&6; }; have_pic_shared=no
14657 rm -f core conftest.err conftest.$ac_objext \
14658 conftest$ac_exeext conftest.$ac_ext
14659 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
14660 pluginlibs=
14661 enable_plugin=no
14663 LDFLAGS="$saved_LDFLAGS"
14664 CFLAGS="$saved_CFLAGS"
14666 # If plugin support had been requested but not available, fail.
14667 if test x"$enable_plugin" = x"no" ; then
14668 if test x"$default_plugin" != x"yes"; then
14669 as_fn_error "
14670 Building GCC with plugin support requires a host that supports
14671 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
14676 ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
14677 if test "x$ac_cv_func_socketpair" = x""yes; then :
14679 else
14680 enable_plugin=no
14683 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
14684 if test "x$ac_cv_func_select" = x""yes; then :
14686 else
14687 enable_plugin=no
14690 ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
14691 if test "x$ac_cv_func_fork" = x""yes; then :
14693 else
14694 enable_plugin=no
14697 if test $enable_plugin = yes; then
14698 ENABLE_PLUGIN_TRUE=
14699 ENABLE_PLUGIN_FALSE='#'
14700 else
14701 ENABLE_PLUGIN_TRUE='#'
14702 ENABLE_PLUGIN_FALSE=
14706 ac_config_files="$ac_config_files Makefile"
14708 cat >confcache <<\_ACEOF
14709 # This file is a shell script that caches the results of configure
14710 # tests run on this system so they can be shared between configure
14711 # scripts and configure runs, see configure's option --config-cache.
14712 # It is not useful on other systems. If it contains results you don't
14713 # want to keep, you may remove or edit it.
14715 # config.status only pays attention to the cache file if you give it
14716 # the --recheck option to rerun configure.
14718 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14719 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14720 # following values.
14722 _ACEOF
14724 # The following way of writing the cache mishandles newlines in values,
14725 # but we know of no workaround that is simple, portable, and efficient.
14726 # So, we kill variables containing newlines.
14727 # Ultrix sh set writes to stderr and can't be redirected directly,
14728 # and sets the high bit in the cache file unless we assign to the vars.
14730 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14731 eval ac_val=\$$ac_var
14732 case $ac_val in #(
14733 *${as_nl}*)
14734 case $ac_var in #(
14735 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14736 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14737 esac
14738 case $ac_var in #(
14739 _ | IFS | as_nl) ;; #(
14740 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14741 *) { eval $ac_var=; unset $ac_var;} ;;
14742 esac ;;
14743 esac
14744 done
14746 (set) 2>&1 |
14747 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14748 *${as_nl}ac_space=\ *)
14749 # `set' does not quote correctly, so add quotes: double-quote
14750 # substitution turns \\\\ into \\, and sed turns \\ into \.
14751 sed -n \
14752 "s/'/'\\\\''/g;
14753 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14754 ;; #(
14756 # `set' quotes correctly as required by POSIX, so do not add quotes.
14757 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14759 esac |
14760 sort
14762 sed '
14763 /^ac_cv_env_/b end
14764 t clear
14765 :clear
14766 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14767 t end
14768 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14769 :end' >>confcache
14770 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14771 if test -w "$cache_file"; then
14772 test "x$cache_file" != "x/dev/null" &&
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14774 $as_echo "$as_me: updating cache $cache_file" >&6;}
14775 cat confcache >$cache_file
14776 else
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14778 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14781 rm -f confcache
14783 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14784 # Let make expand exec_prefix.
14785 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14787 DEFS=-DHAVE_CONFIG_H
14789 ac_libobjs=
14790 ac_ltlibobjs=
14791 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14792 # 1. Remove the extension, and $U if already installed.
14793 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14794 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14795 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14796 # will be set to the directory where LIBOBJS objects are built.
14797 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14798 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14799 done
14800 LIBOBJS=$ac_libobjs
14802 LTLIBOBJS=$ac_ltlibobjs
14805 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14806 as_fn_error "conditional \"AMDEP\" was never defined.
14807 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14809 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14810 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14811 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14813 if test -n "$EXEEXT"; then
14814 am__EXEEXT_TRUE=
14815 am__EXEEXT_FALSE='#'
14816 else
14817 am__EXEEXT_TRUE='#'
14818 am__EXEEXT_FALSE=
14821 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14822 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14823 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14825 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14826 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
14827 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14829 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
14830 as_fn_error "conditional \"ENABLE_PLUGIN\" was never defined.
14831 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14834 : ${CONFIG_STATUS=./config.status}
14835 ac_write_fail=0
14836 ac_clean_files_save=$ac_clean_files
14837 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14839 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14840 as_write_fail=0
14841 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14842 #! $SHELL
14843 # Generated by $as_me.
14844 # Run this file to recreate the current configuration.
14845 # Compiler output produced by configure, useful for debugging
14846 # configure, is in config.log if it exists.
14848 debug=false
14849 ac_cs_recheck=false
14850 ac_cs_silent=false
14852 SHELL=\${CONFIG_SHELL-$SHELL}
14853 export SHELL
14854 _ASEOF
14855 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14856 ## -------------------- ##
14857 ## M4sh Initialization. ##
14858 ## -------------------- ##
14860 # Be more Bourne compatible
14861 DUALCASE=1; export DUALCASE # for MKS sh
14862 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14863 emulate sh
14864 NULLCMD=:
14865 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14866 # is contrary to our usage. Disable this feature.
14867 alias -g '${1+"$@"}'='"$@"'
14868 setopt NO_GLOB_SUBST
14869 else
14870 case `(set -o) 2>/dev/null` in #(
14871 *posix*) :
14872 set -o posix ;; #(
14873 *) :
14875 esac
14879 as_nl='
14881 export as_nl
14882 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14883 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14884 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14885 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14886 # Prefer a ksh shell builtin over an external printf program on Solaris,
14887 # but without wasting forks for bash or zsh.
14888 if test -z "$BASH_VERSION$ZSH_VERSION" \
14889 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14890 as_echo='print -r --'
14891 as_echo_n='print -rn --'
14892 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14893 as_echo='printf %s\n'
14894 as_echo_n='printf %s'
14895 else
14896 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14897 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14898 as_echo_n='/usr/ucb/echo -n'
14899 else
14900 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14901 as_echo_n_body='eval
14902 arg=$1;
14903 case $arg in #(
14904 *"$as_nl"*)
14905 expr "X$arg" : "X\\(.*\\)$as_nl";
14906 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14907 esac;
14908 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14910 export as_echo_n_body
14911 as_echo_n='sh -c $as_echo_n_body as_echo'
14913 export as_echo_body
14914 as_echo='sh -c $as_echo_body as_echo'
14917 # The user is always right.
14918 if test "${PATH_SEPARATOR+set}" != set; then
14919 PATH_SEPARATOR=:
14920 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14921 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14922 PATH_SEPARATOR=';'
14927 # IFS
14928 # We need space, tab and new line, in precisely that order. Quoting is
14929 # there to prevent editors from complaining about space-tab.
14930 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14931 # splitting by setting IFS to empty value.)
14932 IFS=" "" $as_nl"
14934 # Find who we are. Look in the path if we contain no directory separator.
14935 case $0 in #((
14936 *[\\/]* ) as_myself=$0 ;;
14937 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14938 for as_dir in $PATH
14940 IFS=$as_save_IFS
14941 test -z "$as_dir" && as_dir=.
14942 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14943 done
14944 IFS=$as_save_IFS
14947 esac
14948 # We did not find ourselves, most probably we were run as `sh COMMAND'
14949 # in which case we are not to be found in the path.
14950 if test "x$as_myself" = x; then
14951 as_myself=$0
14953 if test ! -f "$as_myself"; then
14954 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14955 exit 1
14958 # Unset variables that we do not need and which cause bugs (e.g. in
14959 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14960 # suppresses any "Segmentation fault" message there. '((' could
14961 # trigger a bug in pdksh 5.2.14.
14962 for as_var in BASH_ENV ENV MAIL MAILPATH
14963 do eval test x\${$as_var+set} = xset \
14964 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14965 done
14966 PS1='$ '
14967 PS2='> '
14968 PS4='+ '
14970 # NLS nuisances.
14971 LC_ALL=C
14972 export LC_ALL
14973 LANGUAGE=C
14974 export LANGUAGE
14976 # CDPATH.
14977 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14980 # as_fn_error ERROR [LINENO LOG_FD]
14981 # ---------------------------------
14982 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14983 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14984 # script with status $?, using 1 if that was 0.
14985 as_fn_error ()
14987 as_status=$?; test $as_status -eq 0 && as_status=1
14988 if test "$3"; then
14989 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14990 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14992 $as_echo "$as_me: error: $1" >&2
14993 as_fn_exit $as_status
14994 } # as_fn_error
14997 # as_fn_set_status STATUS
14998 # -----------------------
14999 # Set $? to STATUS, without forking.
15000 as_fn_set_status ()
15002 return $1
15003 } # as_fn_set_status
15005 # as_fn_exit STATUS
15006 # -----------------
15007 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15008 as_fn_exit ()
15010 set +e
15011 as_fn_set_status $1
15012 exit $1
15013 } # as_fn_exit
15015 # as_fn_unset VAR
15016 # ---------------
15017 # Portably unset VAR.
15018 as_fn_unset ()
15020 { eval $1=; unset $1;}
15022 as_unset=as_fn_unset
15023 # as_fn_append VAR VALUE
15024 # ----------------------
15025 # Append the text in VALUE to the end of the definition contained in VAR. Take
15026 # advantage of any shell optimizations that allow amortized linear growth over
15027 # repeated appends, instead of the typical quadratic growth present in naive
15028 # implementations.
15029 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15030 eval 'as_fn_append ()
15032 eval $1+=\$2
15034 else
15035 as_fn_append ()
15037 eval $1=\$$1\$2
15039 fi # as_fn_append
15041 # as_fn_arith ARG...
15042 # ------------------
15043 # Perform arithmetic evaluation on the ARGs, and store the result in the
15044 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15045 # must be portable across $(()) and expr.
15046 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15047 eval 'as_fn_arith ()
15049 as_val=$(( $* ))
15051 else
15052 as_fn_arith ()
15054 as_val=`expr "$@" || test $? -eq 1`
15056 fi # as_fn_arith
15059 if expr a : '\(a\)' >/dev/null 2>&1 &&
15060 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15061 as_expr=expr
15062 else
15063 as_expr=false
15066 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15067 as_basename=basename
15068 else
15069 as_basename=false
15072 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15073 as_dirname=dirname
15074 else
15075 as_dirname=false
15078 as_me=`$as_basename -- "$0" ||
15079 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15080 X"$0" : 'X\(//\)$' \| \
15081 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15082 $as_echo X/"$0" |
15083 sed '/^.*\/\([^/][^/]*\)\/*$/{
15084 s//\1/
15087 /^X\/\(\/\/\)$/{
15088 s//\1/
15091 /^X\/\(\/\).*/{
15092 s//\1/
15095 s/.*/./; q'`
15097 # Avoid depending upon Character Ranges.
15098 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15099 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15100 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15101 as_cr_digits='0123456789'
15102 as_cr_alnum=$as_cr_Letters$as_cr_digits
15104 ECHO_C= ECHO_N= ECHO_T=
15105 case `echo -n x` in #(((((
15106 -n*)
15107 case `echo 'xy\c'` in
15108 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15109 xy) ECHO_C='\c';;
15110 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15111 ECHO_T=' ';;
15112 esac;;
15114 ECHO_N='-n';;
15115 esac
15117 rm -f conf$$ conf$$.exe conf$$.file
15118 if test -d conf$$.dir; then
15119 rm -f conf$$.dir/conf$$.file
15120 else
15121 rm -f conf$$.dir
15122 mkdir conf$$.dir 2>/dev/null
15124 if (echo >conf$$.file) 2>/dev/null; then
15125 if ln -s conf$$.file conf$$ 2>/dev/null; then
15126 as_ln_s='ln -s'
15127 # ... but there are two gotchas:
15128 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15129 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15130 # In both cases, we have to default to `cp -p'.
15131 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15132 as_ln_s='cp -p'
15133 elif ln conf$$.file conf$$ 2>/dev/null; then
15134 as_ln_s=ln
15135 else
15136 as_ln_s='cp -p'
15138 else
15139 as_ln_s='cp -p'
15141 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15142 rmdir conf$$.dir 2>/dev/null
15145 # as_fn_mkdir_p
15146 # -------------
15147 # Create "$as_dir" as a directory, including parents if necessary.
15148 as_fn_mkdir_p ()
15151 case $as_dir in #(
15152 -*) as_dir=./$as_dir;;
15153 esac
15154 test -d "$as_dir" || eval $as_mkdir_p || {
15155 as_dirs=
15156 while :; do
15157 case $as_dir in #(
15158 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15159 *) as_qdir=$as_dir;;
15160 esac
15161 as_dirs="'$as_qdir' $as_dirs"
15162 as_dir=`$as_dirname -- "$as_dir" ||
15163 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15164 X"$as_dir" : 'X\(//\)[^/]' \| \
15165 X"$as_dir" : 'X\(//\)$' \| \
15166 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15167 $as_echo X"$as_dir" |
15168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15169 s//\1/
15172 /^X\(\/\/\)[^/].*/{
15173 s//\1/
15176 /^X\(\/\/\)$/{
15177 s//\1/
15180 /^X\(\/\).*/{
15181 s//\1/
15184 s/.*/./; q'`
15185 test -d "$as_dir" && break
15186 done
15187 test -z "$as_dirs" || eval "mkdir $as_dirs"
15188 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15191 } # as_fn_mkdir_p
15192 if mkdir -p . 2>/dev/null; then
15193 as_mkdir_p='mkdir -p "$as_dir"'
15194 else
15195 test -d ./-p && rmdir ./-p
15196 as_mkdir_p=false
15199 if test -x / >/dev/null 2>&1; then
15200 as_test_x='test -x'
15201 else
15202 if ls -dL / >/dev/null 2>&1; then
15203 as_ls_L_option=L
15204 else
15205 as_ls_L_option=
15207 as_test_x='
15208 eval sh -c '\''
15209 if test -d "$1"; then
15210 test -d "$1/.";
15211 else
15212 case $1 in #(
15213 -*)set "./$1";;
15214 esac;
15215 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15216 ???[sx]*):;;*)false;;esac;fi
15217 '\'' sh
15220 as_executable_p=$as_test_x
15222 # Sed expression to map a string onto a valid CPP name.
15223 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15225 # Sed expression to map a string onto a valid variable name.
15226 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15229 exec 6>&1
15230 ## ----------------------------------- ##
15231 ## Main body of $CONFIG_STATUS script. ##
15232 ## ----------------------------------- ##
15233 _ASEOF
15234 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15236 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15237 # Save the log message, to keep $0 and so on meaningful, and to
15238 # report actual input values of CONFIG_FILES etc. instead of their
15239 # values after options handling.
15240 ac_log="
15241 This file was extended by libcc1 $as_me version-unused, which was
15242 generated by GNU Autoconf 2.64. Invocation command line was
15244 CONFIG_FILES = $CONFIG_FILES
15245 CONFIG_HEADERS = $CONFIG_HEADERS
15246 CONFIG_LINKS = $CONFIG_LINKS
15247 CONFIG_COMMANDS = $CONFIG_COMMANDS
15248 $ $0 $@
15250 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15253 _ACEOF
15255 case $ac_config_files in *"
15256 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15257 esac
15259 case $ac_config_headers in *"
15260 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15261 esac
15264 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15265 # Files that config.status was made for.
15266 config_files="$ac_config_files"
15267 config_headers="$ac_config_headers"
15268 config_commands="$ac_config_commands"
15270 _ACEOF
15272 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15273 ac_cs_usage="\
15274 \`$as_me' instantiates files and other configuration actions
15275 from templates according to the current configuration. Unless the files
15276 and actions are specified as TAGs, all are instantiated by default.
15278 Usage: $0 [OPTION]... [TAG]...
15280 -h, --help print this help, then exit
15281 -V, --version print version number and configuration settings, then exit
15282 -q, --quiet, --silent
15283 do not print progress messages
15284 -d, --debug don't remove temporary files
15285 --recheck update $as_me by reconfiguring in the same conditions
15286 --file=FILE[:TEMPLATE]
15287 instantiate the configuration file FILE
15288 --header=FILE[:TEMPLATE]
15289 instantiate the configuration header FILE
15291 Configuration files:
15292 $config_files
15294 Configuration headers:
15295 $config_headers
15297 Configuration commands:
15298 $config_commands
15300 Report bugs to the package provider."
15302 _ACEOF
15303 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15304 ac_cs_version="\\
15305 libcc1 config.status version-unused
15306 configured by $0, generated by GNU Autoconf 2.64,
15307 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15309 Copyright (C) 2009 Free Software Foundation, Inc.
15310 This config.status script is free software; the Free Software Foundation
15311 gives unlimited permission to copy, distribute and modify it."
15313 ac_pwd='$ac_pwd'
15314 srcdir='$srcdir'
15315 INSTALL='$INSTALL'
15316 MKDIR_P='$MKDIR_P'
15317 AWK='$AWK'
15318 test -n "\$AWK" || AWK=awk
15319 _ACEOF
15321 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15322 # The default lists apply if the user does not specify any file.
15323 ac_need_defaults=:
15324 while test $# != 0
15326 case $1 in
15327 --*=*)
15328 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15329 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15330 ac_shift=:
15333 ac_option=$1
15334 ac_optarg=$2
15335 ac_shift=shift
15337 esac
15339 case $ac_option in
15340 # Handling of the options.
15341 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15342 ac_cs_recheck=: ;;
15343 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15344 $as_echo "$ac_cs_version"; exit ;;
15345 --debug | --debu | --deb | --de | --d | -d )
15346 debug=: ;;
15347 --file | --fil | --fi | --f )
15348 $ac_shift
15349 case $ac_optarg in
15350 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15351 esac
15352 as_fn_append CONFIG_FILES " '$ac_optarg'"
15353 ac_need_defaults=false;;
15354 --header | --heade | --head | --hea )
15355 $ac_shift
15356 case $ac_optarg in
15357 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15358 esac
15359 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15360 ac_need_defaults=false;;
15361 --he | --h)
15362 # Conflict between --help and --header
15363 as_fn_error "ambiguous option: \`$1'
15364 Try \`$0 --help' for more information.";;
15365 --help | --hel | -h )
15366 $as_echo "$ac_cs_usage"; exit ;;
15367 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15368 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15369 ac_cs_silent=: ;;
15371 # This is an error.
15372 -*) as_fn_error "unrecognized option: \`$1'
15373 Try \`$0 --help' for more information." ;;
15375 *) as_fn_append ac_config_targets " $1"
15376 ac_need_defaults=false ;;
15378 esac
15379 shift
15380 done
15382 ac_configure_extra_args=
15384 if $ac_cs_silent; then
15385 exec 6>/dev/null
15386 ac_configure_extra_args="$ac_configure_extra_args --silent"
15389 _ACEOF
15390 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15391 if \$ac_cs_recheck; then
15392 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15393 shift
15394 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15395 CONFIG_SHELL='$SHELL'
15396 export CONFIG_SHELL
15397 exec "\$@"
15400 _ACEOF
15401 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15402 exec 5>>config.log
15404 echo
15405 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15406 ## Running $as_me. ##
15407 _ASBOX
15408 $as_echo "$ac_log"
15409 } >&5
15411 _ACEOF
15412 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15414 # INIT-COMMANDS
15416 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15419 # The HP-UX ksh and POSIX shell print the target directory to stdout
15420 # if CDPATH is set.
15421 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15423 sed_quote_subst='$sed_quote_subst'
15424 double_quote_subst='$double_quote_subst'
15425 delay_variable_subst='$delay_variable_subst'
15426 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15427 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15428 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15429 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15430 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15431 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15432 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15433 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15434 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15435 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15436 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15437 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15438 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15439 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15440 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15441 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15442 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15443 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15444 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15445 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15446 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15447 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15448 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15449 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15450 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15451 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15452 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15453 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15454 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15455 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15456 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15457 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15458 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15459 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15460 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15461 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15462 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15463 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15464 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15465 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15466 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15467 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15468 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15469 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15470 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15471 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15472 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15473 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15474 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"`'
15475 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15476 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15477 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15478 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15479 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15480 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15481 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15482 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15483 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15484 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15485 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15486 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15487 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15488 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15489 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15490 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15491 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15492 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15493 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15494 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15495 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15496 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15497 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15498 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15499 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15500 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15501 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15502 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15503 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15504 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15505 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15506 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15507 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15508 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15509 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15510 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15511 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15512 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15513 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15514 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15515 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15516 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15517 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15518 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15519 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15520 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15521 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15522 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15523 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15524 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15525 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15526 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15527 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15528 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15529 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15530 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15531 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15532 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15533 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15534 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15535 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15536 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15537 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15538 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15539 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15540 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15541 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15542 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15543 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15544 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15545 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15546 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
15547 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
15548 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
15549 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
15550 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
15551 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
15552 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
15553 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
15554 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15555 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15556 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
15557 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
15558 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
15559 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
15560 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
15561 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
15562 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
15563 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
15564 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
15565 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15566 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15567 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
15568 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15569 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15570 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15571 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15572 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15573 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15574 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
15575 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15576 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15577 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15578 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
15579 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
15580 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
15581 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
15582 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
15583 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
15584 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
15585 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
15586 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
15587 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
15588 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
15589 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15590 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15591 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15592 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15593 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
15594 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
15595 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
15596 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15597 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15598 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
15599 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
15600 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
15602 LTCC='$LTCC'
15603 LTCFLAGS='$LTCFLAGS'
15604 compiler='$compiler_DEFAULT'
15606 # A function that is used when there is no print builtin or printf.
15607 func_fallback_echo ()
15609 eval 'cat <<_LTECHO_EOF
15611 _LTECHO_EOF'
15614 # Quote evaled strings.
15615 for var in SHELL \
15616 ECHO \
15617 SED \
15618 GREP \
15619 EGREP \
15620 FGREP \
15621 LD \
15622 NM \
15623 LN_S \
15624 lt_SP2NL \
15625 lt_NL2SP \
15626 reload_flag \
15627 OBJDUMP \
15628 deplibs_check_method \
15629 file_magic_cmd \
15630 AR \
15631 AR_FLAGS \
15632 STRIP \
15633 RANLIB \
15634 CC \
15635 CFLAGS \
15636 compiler \
15637 lt_cv_sys_global_symbol_pipe \
15638 lt_cv_sys_global_symbol_to_cdecl \
15639 lt_cv_sys_global_symbol_to_c_name_address \
15640 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15641 lt_prog_compiler_no_builtin_flag \
15642 lt_prog_compiler_wl \
15643 lt_prog_compiler_pic \
15644 lt_prog_compiler_static \
15645 lt_cv_prog_compiler_c_o \
15646 need_locks \
15647 DSYMUTIL \
15648 NMEDIT \
15649 LIPO \
15650 OTOOL \
15651 OTOOL64 \
15652 shrext_cmds \
15653 export_dynamic_flag_spec \
15654 whole_archive_flag_spec \
15655 compiler_needs_object \
15656 with_gnu_ld \
15657 allow_undefined_flag \
15658 no_undefined_flag \
15659 hardcode_libdir_flag_spec \
15660 hardcode_libdir_flag_spec_ld \
15661 hardcode_libdir_separator \
15662 fix_srcfile_path \
15663 exclude_expsyms \
15664 include_expsyms \
15665 file_list_spec \
15666 variables_saved_for_relink \
15667 libname_spec \
15668 library_names_spec \
15669 soname_spec \
15670 install_override_mode \
15671 finish_eval \
15672 old_striplib \
15673 striplib \
15674 compiler_lib_search_dirs \
15675 predep_objects \
15676 postdep_objects \
15677 predeps \
15678 postdeps \
15679 compiler_lib_search_path \
15680 LD_CXX \
15681 reload_flag_CXX \
15682 compiler_CXX \
15683 lt_prog_compiler_no_builtin_flag_CXX \
15684 lt_prog_compiler_wl_CXX \
15685 lt_prog_compiler_pic_CXX \
15686 lt_prog_compiler_static_CXX \
15687 lt_cv_prog_compiler_c_o_CXX \
15688 export_dynamic_flag_spec_CXX \
15689 whole_archive_flag_spec_CXX \
15690 compiler_needs_object_CXX \
15691 with_gnu_ld_CXX \
15692 allow_undefined_flag_CXX \
15693 no_undefined_flag_CXX \
15694 hardcode_libdir_flag_spec_CXX \
15695 hardcode_libdir_flag_spec_ld_CXX \
15696 hardcode_libdir_separator_CXX \
15697 fix_srcfile_path_CXX \
15698 exclude_expsyms_CXX \
15699 include_expsyms_CXX \
15700 file_list_spec_CXX \
15701 compiler_lib_search_dirs_CXX \
15702 predep_objects_CXX \
15703 postdep_objects_CXX \
15704 predeps_CXX \
15705 postdeps_CXX \
15706 compiler_lib_search_path_CXX; do
15707 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15708 *[\\\\\\\`\\"\\\$]*)
15709 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15712 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15714 esac
15715 done
15717 # Double-quote double-evaled strings.
15718 for var in reload_cmds \
15719 old_postinstall_cmds \
15720 old_postuninstall_cmds \
15721 old_archive_cmds \
15722 extract_expsyms_cmds \
15723 old_archive_from_new_cmds \
15724 old_archive_from_expsyms_cmds \
15725 archive_cmds \
15726 archive_expsym_cmds \
15727 module_cmds \
15728 module_expsym_cmds \
15729 export_symbols_cmds \
15730 prelink_cmds \
15731 postinstall_cmds \
15732 postuninstall_cmds \
15733 finish_cmds \
15734 sys_lib_search_path_spec \
15735 sys_lib_dlsearch_path_spec \
15736 reload_cmds_CXX \
15737 old_archive_cmds_CXX \
15738 old_archive_from_new_cmds_CXX \
15739 old_archive_from_expsyms_cmds_CXX \
15740 archive_cmds_CXX \
15741 archive_expsym_cmds_CXX \
15742 module_cmds_CXX \
15743 module_expsym_cmds_CXX \
15744 export_symbols_cmds_CXX \
15745 prelink_cmds_CXX; do
15746 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15747 *[\\\\\\\`\\"\\\$]*)
15748 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15751 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15753 esac
15754 done
15756 ac_aux_dir='$ac_aux_dir'
15757 xsi_shell='$xsi_shell'
15758 lt_shell_append='$lt_shell_append'
15760 # See if we are running on zsh, and set the options which allow our
15761 # commands through without removal of \ escapes INIT.
15762 if test -n "\${ZSH_VERSION+set}" ; then
15763 setopt NO_GLOB_SUBST
15767 PACKAGE='$PACKAGE'
15768 VERSION='$VERSION'
15769 TIMESTAMP='$TIMESTAMP'
15770 RM='$RM'
15771 ofile='$ofile'
15778 _ACEOF
15780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15782 # Handling of arguments.
15783 for ac_config_target in $ac_config_targets
15785 case $ac_config_target in
15786 "cc1plugin-config.h") CONFIG_HEADERS="$CONFIG_HEADERS cc1plugin-config.h" ;;
15787 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15788 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15789 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15791 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15792 esac
15793 done
15796 # If the user did not use the arguments to specify the items to instantiate,
15797 # then the envvar interface is used. Set only those that are not.
15798 # We use the long form for the default assignment because of an extremely
15799 # bizarre bug on SunOS 4.1.3.
15800 if $ac_need_defaults; then
15801 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15802 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15803 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15806 # Have a temporary directory for convenience. Make it in the build tree
15807 # simply because there is no reason against having it here, and in addition,
15808 # creating and moving files from /tmp can sometimes cause problems.
15809 # Hook for its removal unless debugging.
15810 # Note that there is a small window in which the directory will not be cleaned:
15811 # after its creation but before its name has been assigned to `$tmp'.
15812 $debug ||
15814 tmp=
15815 trap 'exit_status=$?
15816 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15818 trap 'as_fn_exit 1' 1 2 13 15
15820 # Create a (secure) tmp directory for tmp files.
15823 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15824 test -n "$tmp" && test -d "$tmp"
15825 } ||
15827 tmp=./conf$$-$RANDOM
15828 (umask 077 && mkdir "$tmp")
15829 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15831 # Set up the scripts for CONFIG_FILES section.
15832 # No need to generate them if there are no CONFIG_FILES.
15833 # This happens for instance with `./config.status config.h'.
15834 if test -n "$CONFIG_FILES"; then
15837 ac_cr=`echo X | tr X '\015'`
15838 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15839 # But we know of no other shell where ac_cr would be empty at this
15840 # point, so we can use a bashism as a fallback.
15841 if test "x$ac_cr" = x; then
15842 eval ac_cr=\$\'\\r\'
15844 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15845 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15846 ac_cs_awk_cr='\r'
15847 else
15848 ac_cs_awk_cr=$ac_cr
15851 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15852 _ACEOF
15856 echo "cat >conf$$subs.awk <<_ACEOF" &&
15857 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15858 echo "_ACEOF"
15859 } >conf$$subs.sh ||
15860 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15861 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15862 ac_delim='%!_!# '
15863 for ac_last_try in false false false false false :; do
15864 . ./conf$$subs.sh ||
15865 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15867 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15868 if test $ac_delim_n = $ac_delim_num; then
15869 break
15870 elif $ac_last_try; then
15871 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15872 else
15873 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15875 done
15876 rm -f conf$$subs.sh
15878 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15879 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15880 _ACEOF
15881 sed -n '
15883 s/^/S["/; s/!.*/"]=/
15886 s/^[^!]*!//
15887 :repl
15888 t repl
15889 s/'"$ac_delim"'$//
15890 t delim
15893 s/\(.\{148\}\).*/\1/
15894 t more1
15895 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15898 b repl
15899 :more1
15900 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15903 s/.\{148\}//
15904 t nl
15905 :delim
15907 s/\(.\{148\}\).*/\1/
15908 t more2
15909 s/["\\]/\\&/g; s/^/"/; s/$/"/
15912 :more2
15913 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15916 s/.\{148\}//
15917 t delim
15918 ' <conf$$subs.awk | sed '
15919 /^[^""]/{
15921 s/\n//
15923 ' >>$CONFIG_STATUS || ac_write_fail=1
15924 rm -f conf$$subs.awk
15925 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15926 _ACAWK
15927 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15928 for (key in S) S_is_set[key] = 1
15929 FS = "\a"
15933 line = $ 0
15934 nfields = split(line, field, "@")
15935 substed = 0
15936 len = length(field[1])
15937 for (i = 2; i < nfields; i++) {
15938 key = field[i]
15939 keylen = length(key)
15940 if (S_is_set[key]) {
15941 value = S[key]
15942 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15943 len += length(value) + length(field[++i])
15944 substed = 1
15945 } else
15946 len += 1 + keylen
15949 print line
15952 _ACAWK
15953 _ACEOF
15954 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15955 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15956 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15957 else
15959 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15960 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15961 _ACEOF
15963 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15964 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15965 # trailing colons and then remove the whole line if VPATH becomes empty
15966 # (actually we leave an empty line to preserve line numbers).
15967 if test "x$srcdir" = x.; then
15968 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15969 s/:*\$(srcdir):*/:/
15970 s/:*\${srcdir}:*/:/
15971 s/:*@srcdir@:*/:/
15972 s/^\([^=]*=[ ]*\):*/\1/
15973 s/:*$//
15974 s/^[^=]*=[ ]*$//
15978 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15979 fi # test -n "$CONFIG_FILES"
15981 # Set up the scripts for CONFIG_HEADERS section.
15982 # No need to generate them if there are no CONFIG_HEADERS.
15983 # This happens for instance with `./config.status Makefile'.
15984 if test -n "$CONFIG_HEADERS"; then
15985 cat >"$tmp/defines.awk" <<\_ACAWK ||
15986 BEGIN {
15987 _ACEOF
15989 # Transform confdefs.h into an awk script `defines.awk', embedded as
15990 # here-document in config.status, that substitutes the proper values into
15991 # config.h.in to produce config.h.
15993 # Create a delimiter string that does not exist in confdefs.h, to ease
15994 # handling of long lines.
15995 ac_delim='%!_!# '
15996 for ac_last_try in false false :; do
15997 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15998 if test -z "$ac_t"; then
15999 break
16000 elif $ac_last_try; then
16001 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16002 else
16003 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16005 done
16007 # For the awk script, D is an array of macro values keyed by name,
16008 # likewise P contains macro parameters if any. Preserve backslash
16009 # newline sequences.
16011 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16012 sed -n '
16013 s/.\{148\}/&'"$ac_delim"'/g
16014 t rset
16015 :rset
16016 s/^[ ]*#[ ]*define[ ][ ]*/ /
16017 t def
16019 :def
16020 s/\\$//
16021 t bsnl
16022 s/["\\]/\\&/g
16023 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16024 D["\1"]=" \3"/p
16025 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16027 :bsnl
16028 s/["\\]/\\&/g
16029 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16030 D["\1"]=" \3\\\\\\n"\\/p
16031 t cont
16032 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16033 t cont
16035 :cont
16037 s/.\{148\}/&'"$ac_delim"'/g
16038 t clear
16039 :clear
16040 s/\\$//
16041 t bsnlc
16042 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16044 :bsnlc
16045 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16046 b cont
16047 ' <confdefs.h | sed '
16048 s/'"$ac_delim"'/"\\\
16049 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16051 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16052 for (key in D) D_is_set[key] = 1
16053 FS = "\a"
16055 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16056 line = \$ 0
16057 split(line, arg, " ")
16058 if (arg[1] == "#") {
16059 defundef = arg[2]
16060 mac1 = arg[3]
16061 } else {
16062 defundef = substr(arg[1], 2)
16063 mac1 = arg[2]
16065 split(mac1, mac2, "(") #)
16066 macro = mac2[1]
16067 prefix = substr(line, 1, index(line, defundef) - 1)
16068 if (D_is_set[macro]) {
16069 # Preserve the white space surrounding the "#".
16070 print prefix "define", macro P[macro] D[macro]
16071 next
16072 } else {
16073 # Replace #undef with comments. This is necessary, for example,
16074 # in the case of _POSIX_SOURCE, which is predefined and required
16075 # on some systems where configure will not decide to define it.
16076 if (defundef == "undef") {
16077 print "/*", prefix defundef, macro, "*/"
16078 next
16082 { print }
16083 _ACAWK
16084 _ACEOF
16085 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16086 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16087 fi # test -n "$CONFIG_HEADERS"
16090 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16091 shift
16092 for ac_tag
16094 case $ac_tag in
16095 :[FHLC]) ac_mode=$ac_tag; continue;;
16096 esac
16097 case $ac_mode$ac_tag in
16098 :[FHL]*:*);;
16099 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16100 :[FH]-) ac_tag=-:-;;
16101 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16102 esac
16103 ac_save_IFS=$IFS
16104 IFS=:
16105 set x $ac_tag
16106 IFS=$ac_save_IFS
16107 shift
16108 ac_file=$1
16109 shift
16111 case $ac_mode in
16112 :L) ac_source=$1;;
16113 :[FH])
16114 ac_file_inputs=
16115 for ac_f
16117 case $ac_f in
16118 -) ac_f="$tmp/stdin";;
16119 *) # Look for the file first in the build tree, then in the source tree
16120 # (if the path is not absolute). The absolute path cannot be DOS-style,
16121 # because $ac_f cannot contain `:'.
16122 test -f "$ac_f" ||
16123 case $ac_f in
16124 [\\/$]*) false;;
16125 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16126 esac ||
16127 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16128 esac
16129 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16130 as_fn_append ac_file_inputs " '$ac_f'"
16131 done
16133 # Let's still pretend it is `configure' which instantiates (i.e., don't
16134 # use $as_me), people would be surprised to read:
16135 # /* config.h. Generated by config.status. */
16136 configure_input='Generated from '`
16137 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16138 `' by configure.'
16139 if test x"$ac_file" != x-; then
16140 configure_input="$ac_file. $configure_input"
16141 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16142 $as_echo "$as_me: creating $ac_file" >&6;}
16144 # Neutralize special characters interpreted by sed in replacement strings.
16145 case $configure_input in #(
16146 *\&* | *\|* | *\\* )
16147 ac_sed_conf_input=`$as_echo "$configure_input" |
16148 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16149 *) ac_sed_conf_input=$configure_input;;
16150 esac
16152 case $ac_tag in
16153 *:-:* | *:-) cat >"$tmp/stdin" \
16154 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16155 esac
16157 esac
16159 ac_dir=`$as_dirname -- "$ac_file" ||
16160 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16161 X"$ac_file" : 'X\(//\)[^/]' \| \
16162 X"$ac_file" : 'X\(//\)$' \| \
16163 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16164 $as_echo X"$ac_file" |
16165 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16166 s//\1/
16169 /^X\(\/\/\)[^/].*/{
16170 s//\1/
16173 /^X\(\/\/\)$/{
16174 s//\1/
16177 /^X\(\/\).*/{
16178 s//\1/
16181 s/.*/./; q'`
16182 as_dir="$ac_dir"; as_fn_mkdir_p
16183 ac_builddir=.
16185 case "$ac_dir" in
16186 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16188 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16189 # A ".." for each directory in $ac_dir_suffix.
16190 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16191 case $ac_top_builddir_sub in
16192 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16193 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16194 esac ;;
16195 esac
16196 ac_abs_top_builddir=$ac_pwd
16197 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16198 # for backward compatibility:
16199 ac_top_builddir=$ac_top_build_prefix
16201 case $srcdir in
16202 .) # We are building in place.
16203 ac_srcdir=.
16204 ac_top_srcdir=$ac_top_builddir_sub
16205 ac_abs_top_srcdir=$ac_pwd ;;
16206 [\\/]* | ?:[\\/]* ) # Absolute name.
16207 ac_srcdir=$srcdir$ac_dir_suffix;
16208 ac_top_srcdir=$srcdir
16209 ac_abs_top_srcdir=$srcdir ;;
16210 *) # Relative name.
16211 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16212 ac_top_srcdir=$ac_top_build_prefix$srcdir
16213 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16214 esac
16215 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16218 case $ac_mode in
16221 # CONFIG_FILE
16224 case $INSTALL in
16225 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16226 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16227 esac
16228 ac_MKDIR_P=$MKDIR_P
16229 case $MKDIR_P in
16230 [\\/$]* | ?:[\\/]* ) ;;
16231 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16232 esac
16233 _ACEOF
16235 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16236 # If the template does not know about datarootdir, expand it.
16237 # FIXME: This hack should be removed a few years after 2.60.
16238 ac_datarootdir_hack=; ac_datarootdir_seen=
16239 ac_sed_dataroot='
16240 /datarootdir/ {
16244 /@datadir@/p
16245 /@docdir@/p
16246 /@infodir@/p
16247 /@localedir@/p
16248 /@mandir@/p'
16249 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16250 *datarootdir*) ac_datarootdir_seen=yes;;
16251 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16253 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16254 _ACEOF
16255 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16256 ac_datarootdir_hack='
16257 s&@datadir@&$datadir&g
16258 s&@docdir@&$docdir&g
16259 s&@infodir@&$infodir&g
16260 s&@localedir@&$localedir&g
16261 s&@mandir@&$mandir&g
16262 s&\\\${datarootdir}&$datarootdir&g' ;;
16263 esac
16264 _ACEOF
16266 # Neutralize VPATH when `$srcdir' = `.'.
16267 # Shell code in configure.ac might set extrasub.
16268 # FIXME: do we really want to maintain this feature?
16269 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16270 ac_sed_extra="$ac_vpsub
16271 $extrasub
16272 _ACEOF
16273 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16275 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16276 s|@configure_input@|$ac_sed_conf_input|;t t
16277 s&@top_builddir@&$ac_top_builddir_sub&;t t
16278 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16279 s&@srcdir@&$ac_srcdir&;t t
16280 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16281 s&@top_srcdir@&$ac_top_srcdir&;t t
16282 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16283 s&@builddir@&$ac_builddir&;t t
16284 s&@abs_builddir@&$ac_abs_builddir&;t t
16285 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16286 s&@INSTALL@&$ac_INSTALL&;t t
16287 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16288 $ac_datarootdir_hack
16290 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16291 || as_fn_error "could not create $ac_file" "$LINENO" 5
16293 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16294 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16295 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16297 which seems to be undefined. Please make sure it is defined." >&5
16298 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16299 which seems to be undefined. Please make sure it is defined." >&2;}
16301 rm -f "$tmp/stdin"
16302 case $ac_file in
16303 -) cat "$tmp/out" && rm -f "$tmp/out";;
16304 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16305 esac \
16306 || as_fn_error "could not create $ac_file" "$LINENO" 5
16310 # CONFIG_HEADER
16312 if test x"$ac_file" != x-; then
16314 $as_echo "/* $configure_input */" \
16315 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16316 } >"$tmp/config.h" \
16317 || as_fn_error "could not create $ac_file" "$LINENO" 5
16318 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16320 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16321 else
16322 rm -f "$ac_file"
16323 mv "$tmp/config.h" "$ac_file" \
16324 || as_fn_error "could not create $ac_file" "$LINENO" 5
16326 else
16327 $as_echo "/* $configure_input */" \
16328 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16329 || as_fn_error "could not create -" "$LINENO" 5
16331 # Compute "$ac_file"'s index in $config_headers.
16332 _am_arg="$ac_file"
16333 _am_stamp_count=1
16334 for _am_header in $config_headers :; do
16335 case $_am_header in
16336 $_am_arg | $_am_arg:* )
16337 break ;;
16339 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16340 esac
16341 done
16342 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16343 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16344 X"$_am_arg" : 'X\(//\)[^/]' \| \
16345 X"$_am_arg" : 'X\(//\)$' \| \
16346 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16347 $as_echo X"$_am_arg" |
16348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16349 s//\1/
16352 /^X\(\/\/\)[^/].*/{
16353 s//\1/
16356 /^X\(\/\/\)$/{
16357 s//\1/
16360 /^X\(\/\).*/{
16361 s//\1/
16364 s/.*/./; q'`/stamp-h$_am_stamp_count
16367 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16368 $as_echo "$as_me: executing $ac_file commands" >&6;}
16370 esac
16373 case $ac_file$ac_mode in
16374 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16375 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16376 # are listed without --file. Let's play safe and only enable the eval
16377 # if we detect the quoting.
16378 case $CONFIG_FILES in
16379 *\'*) eval set x "$CONFIG_FILES" ;;
16380 *) set x $CONFIG_FILES ;;
16381 esac
16382 shift
16383 for mf
16385 # Strip MF so we end up with the name of the file.
16386 mf=`echo "$mf" | sed -e 's/:.*$//'`
16387 # Check whether this is an Automake generated Makefile or not.
16388 # We used to match only the files named `Makefile.in', but
16389 # some people rename them; so instead we look at the file content.
16390 # Grep'ing the first line is not enough: some people post-process
16391 # each Makefile.in and add a new line on top of each file to say so.
16392 # Grep'ing the whole file is not good either: AIX grep has a line
16393 # limit of 2048, but all sed's we know have understand at least 4000.
16394 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16395 dirpart=`$as_dirname -- "$mf" ||
16396 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16397 X"$mf" : 'X\(//\)[^/]' \| \
16398 X"$mf" : 'X\(//\)$' \| \
16399 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16400 $as_echo X"$mf" |
16401 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16402 s//\1/
16405 /^X\(\/\/\)[^/].*/{
16406 s//\1/
16409 /^X\(\/\/\)$/{
16410 s//\1/
16413 /^X\(\/\).*/{
16414 s//\1/
16417 s/.*/./; q'`
16418 else
16419 continue
16421 # Extract the definition of DEPDIR, am__include, and am__quote
16422 # from the Makefile without running `make'.
16423 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16424 test -z "$DEPDIR" && continue
16425 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16426 test -z "am__include" && continue
16427 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16428 # When using ansi2knr, U may be empty or an underscore; expand it
16429 U=`sed -n 's/^U = //p' < "$mf"`
16430 # Find all dependency output files, they are included files with
16431 # $(DEPDIR) in their names. We invoke sed twice because it is the
16432 # simplest approach to changing $(DEPDIR) to its actual value in the
16433 # expansion.
16434 for file in `sed -n "
16435 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16436 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16437 # Make sure the directory exists.
16438 test -f "$dirpart/$file" && continue
16439 fdir=`$as_dirname -- "$file" ||
16440 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16441 X"$file" : 'X\(//\)[^/]' \| \
16442 X"$file" : 'X\(//\)$' \| \
16443 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16444 $as_echo X"$file" |
16445 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16446 s//\1/
16449 /^X\(\/\/\)[^/].*/{
16450 s//\1/
16453 /^X\(\/\/\)$/{
16454 s//\1/
16457 /^X\(\/\).*/{
16458 s//\1/
16461 s/.*/./; q'`
16462 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16463 # echo "creating $dirpart/$file"
16464 echo '# dummy' > "$dirpart/$file"
16465 done
16466 done
16469 "libtool":C)
16471 # See if we are running on zsh, and set the options which allow our
16472 # commands through without removal of \ escapes.
16473 if test -n "${ZSH_VERSION+set}" ; then
16474 setopt NO_GLOB_SUBST
16477 cfgfile="${ofile}T"
16478 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16479 $RM "$cfgfile"
16481 cat <<_LT_EOF >> "$cfgfile"
16482 #! $SHELL
16484 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16485 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16486 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16487 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16489 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16490 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16491 # Written by Gordon Matzigkeit, 1996
16493 # This file is part of GNU Libtool.
16495 # GNU Libtool is free software; you can redistribute it and/or
16496 # modify it under the terms of the GNU General Public License as
16497 # published by the Free Software Foundation; either version 2 of
16498 # the License, or (at your option) any later version.
16500 # As a special exception to the GNU General Public License,
16501 # if you distribute this file as part of a program or library that
16502 # is built using GNU Libtool, you may include this file under the
16503 # same distribution terms that you use for the rest of that program.
16505 # GNU Libtool is distributed in the hope that it will be useful,
16506 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16507 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16508 # GNU General Public License for more details.
16510 # You should have received a copy of the GNU General Public License
16511 # along with GNU Libtool; see the file COPYING. If not, a copy
16512 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16513 # obtained by writing to the Free Software Foundation, Inc.,
16514 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16517 # The names of the tagged configurations supported by this script.
16518 available_tags="CXX "
16520 # ### BEGIN LIBTOOL CONFIG
16522 # Which release of libtool.m4 was used?
16523 macro_version=$macro_version
16524 macro_revision=$macro_revision
16526 # Whether or not to build static libraries.
16527 build_old_libs=$enable_static
16529 # Whether or not to build shared libraries.
16530 build_libtool_libs=$enable_shared
16532 # What type of objects to build.
16533 pic_mode=$pic_mode
16535 # Whether or not to optimize for fast installation.
16536 fast_install=$enable_fast_install
16538 # Shell to use when invoking shell scripts.
16539 SHELL=$lt_SHELL
16541 # An echo program that protects backslashes.
16542 ECHO=$lt_ECHO
16544 # The host system.
16545 host_alias=$host_alias
16546 host=$host
16547 host_os=$host_os
16549 # The build system.
16550 build_alias=$build_alias
16551 build=$build
16552 build_os=$build_os
16554 # A sed program that does not truncate output.
16555 SED=$lt_SED
16557 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16558 Xsed="\$SED -e 1s/^X//"
16560 # A grep program that handles long lines.
16561 GREP=$lt_GREP
16563 # An ERE matcher.
16564 EGREP=$lt_EGREP
16566 # A literal string matcher.
16567 FGREP=$lt_FGREP
16569 # A BSD- or MS-compatible name lister.
16570 NM=$lt_NM
16572 # Whether we need soft or hard links.
16573 LN_S=$lt_LN_S
16575 # What is the maximum length of a command?
16576 max_cmd_len=$max_cmd_len
16578 # Object file suffix (normally "o").
16579 objext=$ac_objext
16581 # Executable file suffix (normally "").
16582 exeext=$exeext
16584 # whether the shell understands "unset".
16585 lt_unset=$lt_unset
16587 # turn spaces into newlines.
16588 SP2NL=$lt_lt_SP2NL
16590 # turn newlines into spaces.
16591 NL2SP=$lt_lt_NL2SP
16593 # An object symbol dumper.
16594 OBJDUMP=$lt_OBJDUMP
16596 # Method to check whether dependent libraries are shared objects.
16597 deplibs_check_method=$lt_deplibs_check_method
16599 # Command to use when deplibs_check_method == "file_magic".
16600 file_magic_cmd=$lt_file_magic_cmd
16602 # The archiver.
16603 AR=$lt_AR
16604 AR_FLAGS=$lt_AR_FLAGS
16606 # A symbol stripping program.
16607 STRIP=$lt_STRIP
16609 # Commands used to install an old-style archive.
16610 RANLIB=$lt_RANLIB
16611 old_postinstall_cmds=$lt_old_postinstall_cmds
16612 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16614 # Whether to use a lock for old archive extraction.
16615 lock_old_archive_extraction=$lock_old_archive_extraction
16617 # A C compiler.
16618 LTCC=$lt_CC
16620 # LTCC compiler flags.
16621 LTCFLAGS=$lt_CFLAGS
16623 # Take the output of nm and produce a listing of raw symbols and C names.
16624 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16626 # Transform the output of nm in a proper C declaration.
16627 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16629 # Transform the output of nm in a C name address pair.
16630 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16632 # Transform the output of nm in a C name address pair when lib prefix is needed.
16633 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16635 # The name of the directory that contains temporary libtool files.
16636 objdir=$objdir
16638 # Used to examine libraries when file_magic_cmd begins with "file".
16639 MAGIC_CMD=$MAGIC_CMD
16641 # Must we lock files when doing compilation?
16642 need_locks=$lt_need_locks
16644 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16645 DSYMUTIL=$lt_DSYMUTIL
16647 # Tool to change global to local symbols on Mac OS X.
16648 NMEDIT=$lt_NMEDIT
16650 # Tool to manipulate fat objects and archives on Mac OS X.
16651 LIPO=$lt_LIPO
16653 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16654 OTOOL=$lt_OTOOL
16656 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16657 OTOOL64=$lt_OTOOL64
16659 # Old archive suffix (normally "a").
16660 libext=$libext
16662 # Shared library suffix (normally ".so").
16663 shrext_cmds=$lt_shrext_cmds
16665 # The commands to extract the exported symbol list from a shared archive.
16666 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16668 # Variables whose values should be saved in libtool wrapper scripts and
16669 # restored at link time.
16670 variables_saved_for_relink=$lt_variables_saved_for_relink
16672 # Do we need the "lib" prefix for modules?
16673 need_lib_prefix=$need_lib_prefix
16675 # Do we need a version for libraries?
16676 need_version=$need_version
16678 # Library versioning type.
16679 version_type=$version_type
16681 # Shared library runtime path variable.
16682 runpath_var=$runpath_var
16684 # Shared library path variable.
16685 shlibpath_var=$shlibpath_var
16687 # Is shlibpath searched before the hard-coded library search path?
16688 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16690 # Format of library name prefix.
16691 libname_spec=$lt_libname_spec
16693 # List of archive names. First name is the real one, the rest are links.
16694 # The last name is the one that the linker finds with -lNAME
16695 library_names_spec=$lt_library_names_spec
16697 # The coded name of the library, if different from the real name.
16698 soname_spec=$lt_soname_spec
16700 # Permission mode override for installation of shared libraries.
16701 install_override_mode=$lt_install_override_mode
16703 # Command to use after installation of a shared archive.
16704 postinstall_cmds=$lt_postinstall_cmds
16706 # Command to use after uninstallation of a shared archive.
16707 postuninstall_cmds=$lt_postuninstall_cmds
16709 # Commands used to finish a libtool library installation in a directory.
16710 finish_cmds=$lt_finish_cmds
16712 # As "finish_cmds", except a single script fragment to be evaled but
16713 # not shown.
16714 finish_eval=$lt_finish_eval
16716 # Whether we should hardcode library paths into libraries.
16717 hardcode_into_libs=$hardcode_into_libs
16719 # Compile-time system search path for libraries.
16720 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16722 # Run-time system search path for libraries.
16723 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16725 # Whether dlopen is supported.
16726 dlopen_support=$enable_dlopen
16728 # Whether dlopen of programs is supported.
16729 dlopen_self=$enable_dlopen_self
16731 # Whether dlopen of statically linked programs is supported.
16732 dlopen_self_static=$enable_dlopen_self_static
16734 # Commands to strip libraries.
16735 old_striplib=$lt_old_striplib
16736 striplib=$lt_striplib
16739 # The linker used to build libraries.
16740 LD=$lt_LD
16742 # How to create reloadable object files.
16743 reload_flag=$lt_reload_flag
16744 reload_cmds=$lt_reload_cmds
16746 # Commands used to build an old-style archive.
16747 old_archive_cmds=$lt_old_archive_cmds
16749 # A language specific compiler.
16750 CC=$lt_compiler
16752 # Is the compiler the GNU compiler?
16753 with_gcc=$GCC
16755 # Compiler flag to turn off builtin functions.
16756 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16758 # How to pass a linker flag through the compiler.
16759 wl=$lt_lt_prog_compiler_wl
16761 # Additional compiler flags for building library objects.
16762 pic_flag=$lt_lt_prog_compiler_pic
16764 # Compiler flag to prevent dynamic linking.
16765 link_static_flag=$lt_lt_prog_compiler_static
16767 # Does compiler simultaneously support -c and -o options?
16768 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16770 # Whether or not to add -lc for building shared libraries.
16771 build_libtool_need_lc=$archive_cmds_need_lc
16773 # Whether or not to disallow shared libs when runtime libs are static.
16774 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16776 # Compiler flag to allow reflexive dlopens.
16777 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16779 # Compiler flag to generate shared objects directly from archives.
16780 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16782 # Whether the compiler copes with passing no objects directly.
16783 compiler_needs_object=$lt_compiler_needs_object
16785 # Create an old-style archive from a shared archive.
16786 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16788 # Create a temporary old-style archive to link instead of a shared archive.
16789 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16791 # Commands used to build a shared archive.
16792 archive_cmds=$lt_archive_cmds
16793 archive_expsym_cmds=$lt_archive_expsym_cmds
16795 # Commands used to build a loadable module if different from building
16796 # a shared archive.
16797 module_cmds=$lt_module_cmds
16798 module_expsym_cmds=$lt_module_expsym_cmds
16800 # Whether we are building with GNU ld or not.
16801 with_gnu_ld=$lt_with_gnu_ld
16803 # Flag that allows shared libraries with undefined symbols to be built.
16804 allow_undefined_flag=$lt_allow_undefined_flag
16806 # Flag that enforces no undefined symbols.
16807 no_undefined_flag=$lt_no_undefined_flag
16809 # Flag to hardcode \$libdir into a binary during linking.
16810 # This must work even if \$libdir does not exist
16811 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16813 # If ld is used when linking, flag to hardcode \$libdir into a binary
16814 # during linking. This must work even if \$libdir does not exist.
16815 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16817 # Whether we need a single "-rpath" flag with a separated argument.
16818 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16820 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16821 # DIR into the resulting binary.
16822 hardcode_direct=$hardcode_direct
16824 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16825 # DIR into the resulting binary and the resulting library dependency is
16826 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16827 # library is relocated.
16828 hardcode_direct_absolute=$hardcode_direct_absolute
16830 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16831 # into the resulting binary.
16832 hardcode_minus_L=$hardcode_minus_L
16834 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16835 # into the resulting binary.
16836 hardcode_shlibpath_var=$hardcode_shlibpath_var
16838 # Set to "yes" if building a shared library automatically hardcodes DIR
16839 # into the library and all subsequent libraries and executables linked
16840 # against it.
16841 hardcode_automatic=$hardcode_automatic
16843 # Set to yes if linker adds runtime paths of dependent libraries
16844 # to runtime path list.
16845 inherit_rpath=$inherit_rpath
16847 # Whether libtool must link a program against all its dependency libraries.
16848 link_all_deplibs=$link_all_deplibs
16850 # Fix the shell variable \$srcfile for the compiler.
16851 fix_srcfile_path=$lt_fix_srcfile_path
16853 # Set to "yes" if exported symbols are required.
16854 always_export_symbols=$always_export_symbols
16856 # The commands to list exported symbols.
16857 export_symbols_cmds=$lt_export_symbols_cmds
16859 # Symbols that should not be listed in the preloaded symbols.
16860 exclude_expsyms=$lt_exclude_expsyms
16862 # Symbols that must always be exported.
16863 include_expsyms=$lt_include_expsyms
16865 # Commands necessary for linking programs (against libraries) with templates.
16866 prelink_cmds=$lt_prelink_cmds
16868 # Specify filename containing input files.
16869 file_list_spec=$lt_file_list_spec
16871 # How to hardcode a shared library path into an executable.
16872 hardcode_action=$hardcode_action
16874 # The directories searched by this compiler when creating a shared library.
16875 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16877 # Dependencies to place before and after the objects being linked to
16878 # create a shared library.
16879 predep_objects=$lt_predep_objects
16880 postdep_objects=$lt_postdep_objects
16881 predeps=$lt_predeps
16882 postdeps=$lt_postdeps
16884 # The library search path used internally by the compiler when linking
16885 # a shared library.
16886 compiler_lib_search_path=$lt_compiler_lib_search_path
16888 # ### END LIBTOOL CONFIG
16890 _LT_EOF
16892 case $host_os in
16893 aix3*)
16894 cat <<\_LT_EOF >> "$cfgfile"
16895 # AIX sometimes has problems with the GCC collect2 program. For some
16896 # reason, if we set the COLLECT_NAMES environment variable, the problems
16897 # vanish in a puff of smoke.
16898 if test "X${COLLECT_NAMES+set}" != Xset; then
16899 COLLECT_NAMES=
16900 export COLLECT_NAMES
16902 _LT_EOF
16904 esac
16907 ltmain="$ac_aux_dir/ltmain.sh"
16910 # We use sed instead of cat because bash on DJGPP gets confused if
16911 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16912 # text mode, it properly converts lines to CR/LF. This bash problem
16913 # is reportedly fixed, but why not run on old versions too?
16914 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16915 || (rm -f "$cfgfile"; exit 1)
16917 case $xsi_shell in
16918 yes)
16919 cat << \_LT_EOF >> "$cfgfile"
16921 # func_dirname file append nondir_replacement
16922 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16923 # otherwise set result to NONDIR_REPLACEMENT.
16924 func_dirname ()
16926 case ${1} in
16927 */*) func_dirname_result="${1%/*}${2}" ;;
16928 * ) func_dirname_result="${3}" ;;
16929 esac
16932 # func_basename file
16933 func_basename ()
16935 func_basename_result="${1##*/}"
16938 # func_dirname_and_basename file append nondir_replacement
16939 # perform func_basename and func_dirname in a single function
16940 # call:
16941 # dirname: Compute the dirname of FILE. If nonempty,
16942 # add APPEND to the result, otherwise set result
16943 # to NONDIR_REPLACEMENT.
16944 # value returned in "$func_dirname_result"
16945 # basename: Compute filename of FILE.
16946 # value retuned in "$func_basename_result"
16947 # Implementation must be kept synchronized with func_dirname
16948 # and func_basename. For efficiency, we do not delegate to
16949 # those functions but instead duplicate the functionality here.
16950 func_dirname_and_basename ()
16952 case ${1} in
16953 */*) func_dirname_result="${1%/*}${2}" ;;
16954 * ) func_dirname_result="${3}" ;;
16955 esac
16956 func_basename_result="${1##*/}"
16959 # func_stripname prefix suffix name
16960 # strip PREFIX and SUFFIX off of NAME.
16961 # PREFIX and SUFFIX must not contain globbing or regex special
16962 # characters, hashes, percent signs, but SUFFIX may contain a leading
16963 # dot (in which case that matches only a dot).
16964 func_stripname ()
16966 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16967 # positional parameters, so assign one to ordinary parameter first.
16968 func_stripname_result=${3}
16969 func_stripname_result=${func_stripname_result#"${1}"}
16970 func_stripname_result=${func_stripname_result%"${2}"}
16973 # func_opt_split
16974 func_opt_split ()
16976 func_opt_split_opt=${1%%=*}
16977 func_opt_split_arg=${1#*=}
16980 # func_lo2o object
16981 func_lo2o ()
16983 case ${1} in
16984 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16985 *) func_lo2o_result=${1} ;;
16986 esac
16989 # func_xform libobj-or-source
16990 func_xform ()
16992 func_xform_result=${1%.*}.lo
16995 # func_arith arithmetic-term...
16996 func_arith ()
16998 func_arith_result=$(( $* ))
17001 # func_len string
17002 # STRING may not start with a hyphen.
17003 func_len ()
17005 func_len_result=${#1}
17008 _LT_EOF
17010 *) # Bourne compatible functions.
17011 cat << \_LT_EOF >> "$cfgfile"
17013 # func_dirname file append nondir_replacement
17014 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17015 # otherwise set result to NONDIR_REPLACEMENT.
17016 func_dirname ()
17018 # Extract subdirectory from the argument.
17019 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17020 if test "X$func_dirname_result" = "X${1}"; then
17021 func_dirname_result="${3}"
17022 else
17023 func_dirname_result="$func_dirname_result${2}"
17027 # func_basename file
17028 func_basename ()
17030 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17034 # func_stripname prefix suffix name
17035 # strip PREFIX and SUFFIX off of NAME.
17036 # PREFIX and SUFFIX must not contain globbing or regex special
17037 # characters, hashes, percent signs, but SUFFIX may contain a leading
17038 # dot (in which case that matches only a dot).
17039 # func_strip_suffix prefix name
17040 func_stripname ()
17042 case ${2} in
17043 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17044 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17045 esac
17048 # sed scripts:
17049 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17050 my_sed_long_arg='1s/^-[^=]*=//'
17052 # func_opt_split
17053 func_opt_split ()
17055 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17056 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17059 # func_lo2o object
17060 func_lo2o ()
17062 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17065 # func_xform libobj-or-source
17066 func_xform ()
17068 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17071 # func_arith arithmetic-term...
17072 func_arith ()
17074 func_arith_result=`expr "$@"`
17077 # func_len string
17078 # STRING may not start with a hyphen.
17079 func_len ()
17081 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17084 _LT_EOF
17085 esac
17087 case $lt_shell_append in
17088 yes)
17089 cat << \_LT_EOF >> "$cfgfile"
17091 # func_append var value
17092 # Append VALUE to the end of shell variable VAR.
17093 func_append ()
17095 eval "$1+=\$2"
17097 _LT_EOF
17100 cat << \_LT_EOF >> "$cfgfile"
17102 # func_append var value
17103 # Append VALUE to the end of shell variable VAR.
17104 func_append ()
17106 eval "$1=\$$1\$2"
17109 _LT_EOF
17111 esac
17114 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17115 || (rm -f "$cfgfile"; exit 1)
17117 mv -f "$cfgfile" "$ofile" ||
17118 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17119 chmod +x "$ofile"
17122 cat <<_LT_EOF >> "$ofile"
17124 # ### BEGIN LIBTOOL TAG CONFIG: CXX
17126 # The linker used to build libraries.
17127 LD=$lt_LD_CXX
17129 # How to create reloadable object files.
17130 reload_flag=$lt_reload_flag_CXX
17131 reload_cmds=$lt_reload_cmds_CXX
17133 # Commands used to build an old-style archive.
17134 old_archive_cmds=$lt_old_archive_cmds_CXX
17136 # A language specific compiler.
17137 CC=$lt_compiler_CXX
17139 # Is the compiler the GNU compiler?
17140 with_gcc=$GCC_CXX
17142 # Compiler flag to turn off builtin functions.
17143 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17145 # How to pass a linker flag through the compiler.
17146 wl=$lt_lt_prog_compiler_wl_CXX
17148 # Additional compiler flags for building library objects.
17149 pic_flag=$lt_lt_prog_compiler_pic_CXX
17151 # Compiler flag to prevent dynamic linking.
17152 link_static_flag=$lt_lt_prog_compiler_static_CXX
17154 # Does compiler simultaneously support -c and -o options?
17155 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17157 # Whether or not to add -lc for building shared libraries.
17158 build_libtool_need_lc=$archive_cmds_need_lc_CXX
17160 # Whether or not to disallow shared libs when runtime libs are static.
17161 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17163 # Compiler flag to allow reflexive dlopens.
17164 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17166 # Compiler flag to generate shared objects directly from archives.
17167 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17169 # Whether the compiler copes with passing no objects directly.
17170 compiler_needs_object=$lt_compiler_needs_object_CXX
17172 # Create an old-style archive from a shared archive.
17173 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17175 # Create a temporary old-style archive to link instead of a shared archive.
17176 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17178 # Commands used to build a shared archive.
17179 archive_cmds=$lt_archive_cmds_CXX
17180 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17182 # Commands used to build a loadable module if different from building
17183 # a shared archive.
17184 module_cmds=$lt_module_cmds_CXX
17185 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17187 # Whether we are building with GNU ld or not.
17188 with_gnu_ld=$lt_with_gnu_ld_CXX
17190 # Flag that allows shared libraries with undefined symbols to be built.
17191 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17193 # Flag that enforces no undefined symbols.
17194 no_undefined_flag=$lt_no_undefined_flag_CXX
17196 # Flag to hardcode \$libdir into a binary during linking.
17197 # This must work even if \$libdir does not exist
17198 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17200 # If ld is used when linking, flag to hardcode \$libdir into a binary
17201 # during linking. This must work even if \$libdir does not exist.
17202 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17204 # Whether we need a single "-rpath" flag with a separated argument.
17205 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17207 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17208 # DIR into the resulting binary.
17209 hardcode_direct=$hardcode_direct_CXX
17211 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17212 # DIR into the resulting binary and the resulting library dependency is
17213 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17214 # library is relocated.
17215 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17217 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17218 # into the resulting binary.
17219 hardcode_minus_L=$hardcode_minus_L_CXX
17221 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17222 # into the resulting binary.
17223 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17225 # Set to "yes" if building a shared library automatically hardcodes DIR
17226 # into the library and all subsequent libraries and executables linked
17227 # against it.
17228 hardcode_automatic=$hardcode_automatic_CXX
17230 # Set to yes if linker adds runtime paths of dependent libraries
17231 # to runtime path list.
17232 inherit_rpath=$inherit_rpath_CXX
17234 # Whether libtool must link a program against all its dependency libraries.
17235 link_all_deplibs=$link_all_deplibs_CXX
17237 # Fix the shell variable \$srcfile for the compiler.
17238 fix_srcfile_path=$lt_fix_srcfile_path_CXX
17240 # Set to "yes" if exported symbols are required.
17241 always_export_symbols=$always_export_symbols_CXX
17243 # The commands to list exported symbols.
17244 export_symbols_cmds=$lt_export_symbols_cmds_CXX
17246 # Symbols that should not be listed in the preloaded symbols.
17247 exclude_expsyms=$lt_exclude_expsyms_CXX
17249 # Symbols that must always be exported.
17250 include_expsyms=$lt_include_expsyms_CXX
17252 # Commands necessary for linking programs (against libraries) with templates.
17253 prelink_cmds=$lt_prelink_cmds_CXX
17255 # Specify filename containing input files.
17256 file_list_spec=$lt_file_list_spec_CXX
17258 # How to hardcode a shared library path into an executable.
17259 hardcode_action=$hardcode_action_CXX
17261 # The directories searched by this compiler when creating a shared library.
17262 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17264 # Dependencies to place before and after the objects being linked to
17265 # create a shared library.
17266 predep_objects=$lt_predep_objects_CXX
17267 postdep_objects=$lt_postdep_objects_CXX
17268 predeps=$lt_predeps_CXX
17269 postdeps=$lt_postdeps_CXX
17271 # The library search path used internally by the compiler when linking
17272 # a shared library.
17273 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17275 # ### END LIBTOOL TAG CONFIG: CXX
17276 _LT_EOF
17280 esac
17281 done # for ac_tag
17284 as_fn_exit 0
17285 _ACEOF
17286 ac_clean_files=$ac_clean_files_save
17288 test $ac_write_fail = 0 ||
17289 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17292 # configure is writing to config.log, and then calls config.status.
17293 # config.status does its own redirection, appending to config.log.
17294 # Unfortunately, on DOS this fails, as config.log is still kept open
17295 # by configure, so config.status won't be able to write to it; its
17296 # output is simply discarded. So we exec the FD to /dev/null,
17297 # effectively closing config.log, so it can be properly (re)opened and
17298 # appended to by config.status. When coming back to configure, we
17299 # need to make the FD available again.
17300 if test "$no_create" != yes; then
17301 ac_cs_success=:
17302 ac_config_status_args=
17303 test "$silent" = yes &&
17304 ac_config_status_args="$ac_config_status_args --quiet"
17305 exec 5>/dev/null
17306 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17307 exec 5>>config.log
17308 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17309 # would make configure fail if this is the last instruction.
17310 $ac_cs_success || as_fn_exit $?
17312 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17314 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}