* Make-lang.in (cp/class.o): Depend upon gt-cp-class.h.
[official-gcc.git] / libobjc / configure
blob5f75083bd74237840af2a5607639e512e1db59a7
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for package-unused version-unused.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
248 case X$lt_ECHO in
249 X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
253 esac
255 ECHO=${lt_ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
262 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
265 else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<_LT_EOF
275 _LT_EOF
276 exit 0
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
283 if test -z "$lt_ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290 then
291 break
293 done
296 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298 test "X$echo_testing_string" = "X$echo_test_string"; then
300 else
301 # The Solaris, AIX, and Digital Unix default echo programs unquote
302 # backslashes. This makes it impossible to quote backslashes using
303 # echo "$something" | sed 's/\\/\\\\/g'
305 # So, first we look for a working echo in the user's PATH.
307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308 for dir in $PATH /usr/ucb; do
309 IFS="$lt_save_ifs"
310 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313 test "X$echo_testing_string" = "X$echo_test_string"; then
314 ECHO="$dir/echo"
315 break
317 done
318 IFS="$lt_save_ifs"
320 if test "X$ECHO" = Xecho; then
321 # We didn't find a better echo, so look for alternatives.
322 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
325 # This shell has a builtin print -r that does the trick.
326 ECHO='print -r'
327 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328 test "X$CONFIG_SHELL" != X/bin/ksh; then
329 # If we have ksh, try running configure again with it.
330 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331 export ORIGINAL_CONFIG_SHELL
332 CONFIG_SHELL=/bin/ksh
333 export CONFIG_SHELL
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335 else
336 # Try using printf.
337 ECHO='printf %s\n'
338 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340 test "X$echo_testing_string" = "X$echo_test_string"; then
341 # Cool, printf works
343 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344 test "X$echo_testing_string" = 'X\t' &&
345 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346 test "X$echo_testing_string" = "X$echo_test_string"; then
347 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348 export CONFIG_SHELL
349 SHELL="$CONFIG_SHELL"
350 export SHELL
351 ECHO="$CONFIG_SHELL $0 --fallback-echo"
352 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 ECHO="$CONFIG_SHELL $0 --fallback-echo"
357 else
358 # maybe with a smaller string...
359 prev=:
361 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363 then
364 break
366 prev="$cmd"
367 done
369 if test "$prev" != 'sed 50q "$0"'; then
370 echo_test_string=`eval $prev`
371 export echo_test_string
372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373 else
374 # Oops. We lost completely, so just stick with echo.
375 ECHO=echo
383 # Copy echo and quote the copy suitably for passing to libtool from
384 # the Makefile, instead of quoting the original, which is used later.
385 lt_ECHO=$ECHO
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393 # Name of the host.
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
398 exec 6>&1
401 # Initializations.
403 ac_default_prefix=/usr/local
404 ac_config_libobj_dir=.
405 cross_compiling=no
406 subdirs=
407 MFLAGS=
408 MAKEFLAGS=
409 SHELL=${CONFIG_SHELL-/bin/sh}
411 # Maximum number of lines to put in a shell here document.
412 # This variable seems obsolete. It should probably be removed, and
413 # only ac_max_sed_lines should be used.
414 : ${ac_max_here_lines=38}
416 # Identity of this package.
417 PACKAGE_NAME='package-unused'
418 PACKAGE_TARNAME='libobjc'
419 PACKAGE_VERSION='version-unused'
420 PACKAGE_STRING='package-unused version-unused'
421 PACKAGE_BUGREPORT=''
423 ac_unique_file="objc/objc.h"
424 # Factoring default headers for most tests.
425 ac_includes_default="\
426 #include <stdio.h>
427 #if HAVE_SYS_TYPES_H
428 # include <sys/types.h>
429 #endif
430 #if HAVE_SYS_STAT_H
431 # include <sys/stat.h>
432 #endif
433 #if STDC_HEADERS
434 # include <stdlib.h>
435 # include <stddef.h>
436 #else
437 # if HAVE_STDLIB_H
438 # include <stdlib.h>
439 # endif
440 #endif
441 #if HAVE_STRING_H
442 # if !STDC_HEADERS && HAVE_MEMORY_H
443 # include <memory.h>
444 # endif
445 # include <string.h>
446 #endif
447 #if HAVE_STRINGS_H
448 # include <strings.h>
449 #endif
450 #if HAVE_INTTYPES_H
451 # include <inttypes.h>
452 #else
453 # if HAVE_STDINT_H
454 # include <stdint.h>
455 # endif
456 #endif
457 #if HAVE_UNISTD_H
458 # include <unistd.h>
459 #endif"
461 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_libsubdir build_subdir host_subdir target_subdir VERSION OBJC_BOEHM_GC OBJC_BOEHM_GC_INCLUDES multi_basedir host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical glibcpp_srcdir toolexecdir toolexeclibdir includedirname libsuffix CC ac_ct_CC EXEEXT OBJEXT extra_ldflags_libobjc CFLAGS AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT DLLTOOL ac_ct_DLLTOOL OBJDUMP ac_ct_OBJDUMP LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S STRIP ac_ct_STRIP lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 CPP CPPFLAGS SET_MAKE LIBOBJS LTLIBOBJS'
462 ac_subst_files=''
463 ac_pwd=`pwd`
465 # Initialize some variables set by options.
466 ac_init_help=
467 ac_init_version=false
468 # The variables have the same names as the options, with
469 # dashes changed to underlines.
470 cache_file=/dev/null
471 exec_prefix=NONE
472 no_create=
473 no_recursion=
474 prefix=NONE
475 program_prefix=NONE
476 program_suffix=NONE
477 program_transform_name=s,x,x,
478 silent=
479 site=
480 srcdir=
481 verbose=
482 x_includes=NONE
483 x_libraries=NONE
485 # Installation directory options.
486 # These are left unexpanded so users can "make install exec_prefix=/foo"
487 # and all the variables that are supposed to be based on exec_prefix
488 # by default will actually change.
489 # Use braces instead of parens because sh, perl, etc. also accept them.
490 bindir='${exec_prefix}/bin'
491 sbindir='${exec_prefix}/sbin'
492 libexecdir='${exec_prefix}/libexec'
493 datadir='${prefix}/share'
494 sysconfdir='${prefix}/etc'
495 sharedstatedir='${prefix}/com'
496 localstatedir='${prefix}/var'
497 libdir='${exec_prefix}/lib'
498 includedir='${prefix}/include'
499 oldincludedir='/usr/include'
500 infodir='${prefix}/info'
501 mandir='${prefix}/man'
503 ac_prev=
504 for ac_option
506 # If the previous option needs an argument, assign it.
507 if test -n "$ac_prev"; then
508 eval "$ac_prev=\$ac_option"
509 ac_prev=
510 continue
513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
515 # Accept the important Cygnus configure options, so we can diagnose typos.
517 case $ac_option in
519 -bindir | --bindir | --bindi | --bind | --bin | --bi)
520 ac_prev=bindir ;;
521 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
522 bindir=$ac_optarg ;;
524 -build | --build | --buil | --bui | --bu)
525 ac_prev=build_alias ;;
526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
527 build_alias=$ac_optarg ;;
529 -cache-file | --cache-file | --cache-fil | --cache-fi \
530 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531 ac_prev=cache_file ;;
532 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
534 cache_file=$ac_optarg ;;
536 --config-cache | -C)
537 cache_file=config.cache ;;
539 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540 ac_prev=datadir ;;
541 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542 | --da=*)
543 datadir=$ac_optarg ;;
545 -disable-* | --disable-*)
546 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
547 # Reject names that are not valid shell variable names.
548 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550 { (exit 1); exit 1; }; }
551 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552 eval "enable_$ac_feature=no" ;;
554 -enable-* | --enable-*)
555 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
556 # Reject names that are not valid shell variable names.
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 case $ac_option in
562 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
563 *) ac_optarg=yes ;;
564 esac
565 eval "enable_$ac_feature='$ac_optarg'" ;;
567 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569 | --exec | --exe | --ex)
570 ac_prev=exec_prefix ;;
571 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573 | --exec=* | --exe=* | --ex=*)
574 exec_prefix=$ac_optarg ;;
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
578 with_gas=yes ;;
580 -help | --help | --hel | --he | -h)
581 ac_init_help=long ;;
582 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583 ac_init_help=recursive ;;
584 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585 ac_init_help=short ;;
587 -host | --host | --hos | --ho)
588 ac_prev=host_alias ;;
589 -host=* | --host=* | --hos=* | --ho=*)
590 host_alias=$ac_optarg ;;
592 -includedir | --includedir | --includedi | --included | --include \
593 | --includ | --inclu | --incl | --inc)
594 ac_prev=includedir ;;
595 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596 | --includ=* | --inclu=* | --incl=* | --inc=*)
597 includedir=$ac_optarg ;;
599 -infodir | --infodir | --infodi | --infod | --info | --inf)
600 ac_prev=infodir ;;
601 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
602 infodir=$ac_optarg ;;
604 -libdir | --libdir | --libdi | --libd)
605 ac_prev=libdir ;;
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
607 libdir=$ac_optarg ;;
609 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610 | --libexe | --libex | --libe)
611 ac_prev=libexecdir ;;
612 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613 | --libexe=* | --libex=* | --libe=*)
614 libexecdir=$ac_optarg ;;
616 -localstatedir | --localstatedir | --localstatedi | --localstated \
617 | --localstate | --localstat | --localsta | --localst \
618 | --locals | --local | --loca | --loc | --lo)
619 ac_prev=localstatedir ;;
620 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
623 localstatedir=$ac_optarg ;;
625 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626 ac_prev=mandir ;;
627 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
628 mandir=$ac_optarg ;;
630 -nfp | --nfp | --nf)
631 # Obsolete; use --without-fp.
632 with_fp=no ;;
634 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
635 | --no-cr | --no-c | -n)
636 no_create=yes ;;
638 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640 no_recursion=yes ;;
642 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644 | --oldin | --oldi | --old | --ol | --o)
645 ac_prev=oldincludedir ;;
646 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
649 oldincludedir=$ac_optarg ;;
651 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652 ac_prev=prefix ;;
653 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
654 prefix=$ac_optarg ;;
656 -program-prefix | --program-prefix | --program-prefi | --program-pref \
657 | --program-pre | --program-pr | --program-p)
658 ac_prev=program_prefix ;;
659 -program-prefix=* | --program-prefix=* | --program-prefi=* \
660 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
661 program_prefix=$ac_optarg ;;
663 -program-suffix | --program-suffix | --program-suffi | --program-suff \
664 | --program-suf | --program-su | --program-s)
665 ac_prev=program_suffix ;;
666 -program-suffix=* | --program-suffix=* | --program-suffi=* \
667 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
668 program_suffix=$ac_optarg ;;
670 -program-transform-name | --program-transform-name \
671 | --program-transform-nam | --program-transform-na \
672 | --program-transform-n | --program-transform- \
673 | --program-transform | --program-transfor \
674 | --program-transfo | --program-transf \
675 | --program-trans | --program-tran \
676 | --progr-tra | --program-tr | --program-t)
677 ac_prev=program_transform_name ;;
678 -program-transform-name=* | --program-transform-name=* \
679 | --program-transform-nam=* | --program-transform-na=* \
680 | --program-transform-n=* | --program-transform-=* \
681 | --program-transform=* | --program-transfor=* \
682 | --program-transfo=* | --program-transf=* \
683 | --program-trans=* | --program-tran=* \
684 | --progr-tra=* | --program-tr=* | --program-t=*)
685 program_transform_name=$ac_optarg ;;
687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688 | -silent | --silent | --silen | --sile | --sil)
689 silent=yes ;;
691 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692 ac_prev=sbindir ;;
693 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694 | --sbi=* | --sb=*)
695 sbindir=$ac_optarg ;;
697 -sharedstatedir | --sharedstatedir | --sharedstatedi \
698 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699 | --sharedst | --shareds | --shared | --share | --shar \
700 | --sha | --sh)
701 ac_prev=sharedstatedir ;;
702 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705 | --sha=* | --sh=*)
706 sharedstatedir=$ac_optarg ;;
708 -site | --site | --sit)
709 ac_prev=site ;;
710 -site=* | --site=* | --sit=*)
711 site=$ac_optarg ;;
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 ac_prev=srcdir ;;
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
716 srcdir=$ac_optarg ;;
718 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719 | --syscon | --sysco | --sysc | --sys | --sy)
720 ac_prev=sysconfdir ;;
721 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
723 sysconfdir=$ac_optarg ;;
725 -target | --target | --targe | --targ | --tar | --ta | --t)
726 ac_prev=target_alias ;;
727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
728 target_alias=$ac_optarg ;;
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
731 verbose=yes ;;
733 -version | --version | --versio | --versi | --vers | -V)
734 ac_init_version=: ;;
736 -with-* | --with-*)
737 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
738 # Reject names that are not valid shell variable names.
739 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740 { echo "$as_me: error: invalid package name: $ac_package" >&2
741 { (exit 1); exit 1; }; }
742 ac_package=`echo $ac_package| sed 's/-/_/g'`
743 case $ac_option in
744 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
745 *) ac_optarg=yes ;;
746 esac
747 eval "with_$ac_package='$ac_optarg'" ;;
749 -without-* | --without-*)
750 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
751 # Reject names that are not valid shell variable names.
752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753 { echo "$as_me: error: invalid package name: $ac_package" >&2
754 { (exit 1); exit 1; }; }
755 ac_package=`echo $ac_package | sed 's/-/_/g'`
756 eval "with_$ac_package=no" ;;
758 --x)
759 # Obsolete; use --with-x.
760 with_x=yes ;;
762 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763 | --x-incl | --x-inc | --x-in | --x-i)
764 ac_prev=x_includes ;;
765 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
767 x_includes=$ac_optarg ;;
769 -x-libraries | --x-libraries | --x-librarie | --x-librari \
770 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771 ac_prev=x_libraries ;;
772 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
774 x_libraries=$ac_optarg ;;
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777 Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
781 *=*)
782 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783 # Reject names that are not valid shell variable names.
784 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786 { (exit 1); exit 1; }; }
787 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788 eval "$ac_envvar='$ac_optarg'"
789 export $ac_envvar ;;
792 # FIXME: should be removed in autoconf 3.0.
793 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
799 esac
800 done
802 if test -n "$ac_prev"; then
803 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804 { echo "$as_me: error: missing argument to $ac_option" >&2
805 { (exit 1); exit 1; }; }
808 # Be sure to have absolute paths.
809 for ac_var in exec_prefix prefix
811 eval ac_val=$`echo $ac_var`
812 case $ac_val in
813 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815 { (exit 1); exit 1; }; };;
816 esac
817 done
819 # Be sure to have absolute paths.
820 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
823 eval ac_val=$`echo $ac_var`
824 case $ac_val in
825 [\\/$]* | ?:[\\/]* ) ;;
826 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827 { (exit 1); exit 1; }; };;
828 esac
829 done
831 # There might be people who depend on the old broken behavior: `$host'
832 # used to hold the argument of --host etc.
833 # FIXME: To remove some day.
834 build=$build_alias
835 host=$host_alias
836 target=$target_alias
838 # FIXME: To remove some day.
839 if test "x$host_alias" != x; then
840 if test "x$build_alias" = x; then
841 cross_compiling=maybe
842 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843 If a cross compiler is detected then cross compile mode will be used." >&2
844 elif test "x$build_alias" != "x$host_alias"; then
845 cross_compiling=yes
849 ac_tool_prefix=
850 test -n "$host_alias" && ac_tool_prefix=$host_alias-
852 test "$silent" = yes && exec 6>/dev/null
855 # Find the source files, if location was not specified.
856 if test -z "$srcdir"; then
857 ac_srcdir_defaulted=yes
858 # Try the directory containing this script, then its parent.
859 ac_confdir=`(dirname "$0") 2>/dev/null ||
860 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861 X"$0" : 'X\(//\)[^/]' \| \
862 X"$0" : 'X\(//\)$' \| \
863 X"$0" : 'X\(/\)' \| \
864 . : '\(.\)' 2>/dev/null ||
865 echo X"$0" |
866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868 /^X\(\/\/\)$/{ s//\1/; q; }
869 /^X\(\/\).*/{ s//\1/; q; }
870 s/.*/./; q'`
871 srcdir=$ac_confdir
872 if test ! -r $srcdir/$ac_unique_file; then
873 srcdir=..
875 else
876 ac_srcdir_defaulted=no
878 if test ! -r $srcdir/$ac_unique_file; then
879 if test "$ac_srcdir_defaulted" = yes; then
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
882 else
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
887 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889 { (exit 1); exit 1; }; }
890 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891 ac_env_build_alias_set=${build_alias+set}
892 ac_env_build_alias_value=$build_alias
893 ac_cv_env_build_alias_set=${build_alias+set}
894 ac_cv_env_build_alias_value=$build_alias
895 ac_env_host_alias_set=${host_alias+set}
896 ac_env_host_alias_value=$host_alias
897 ac_cv_env_host_alias_set=${host_alias+set}
898 ac_cv_env_host_alias_value=$host_alias
899 ac_env_target_alias_set=${target_alias+set}
900 ac_env_target_alias_value=$target_alias
901 ac_cv_env_target_alias_set=${target_alias+set}
902 ac_cv_env_target_alias_value=$target_alias
903 ac_env_CPP_set=${CPP+set}
904 ac_env_CPP_value=$CPP
905 ac_cv_env_CPP_set=${CPP+set}
906 ac_cv_env_CPP_value=$CPP
907 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
908 ac_env_CPPFLAGS_value=$CPPFLAGS
909 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
910 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
913 # Report the --help message.
915 if test "$ac_init_help" = "long"; then
916 # Omit some internal or obsolete options to make the list less imposing.
917 # This message is too long to be a string in the A/UX 3.1 sh.
918 cat <<_ACEOF
919 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
921 Usage: $0 [OPTION]... [VAR=VALUE]...
923 To assign environment variables (e.g., CC, CFLAGS...), specify them as
924 VAR=VALUE. See below for descriptions of some of the useful variables.
926 Defaults for the options are specified in brackets.
928 Configuration:
929 -h, --help display this help and exit
930 --help=short display options specific to this package
931 --help=recursive display the short help of all the included packages
932 -V, --version display version information and exit
933 -q, --quiet, --silent do not print \`checking...' messages
934 --cache-file=FILE cache test results in FILE [disabled]
935 -C, --config-cache alias for \`--cache-file=config.cache'
936 -n, --no-create do not create output files
937 --srcdir=DIR find the sources in DIR [configure dir or \`..']
939 _ACEOF
941 cat <<_ACEOF
942 Installation directories:
943 --prefix=PREFIX install architecture-independent files in PREFIX
944 [$ac_default_prefix]
945 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
946 [PREFIX]
948 By default, \`make install' will install all the files in
949 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
950 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
951 for instance \`--prefix=\$HOME'.
953 For better control, use the options below.
955 Fine tuning of the installation directories:
956 --bindir=DIR user executables [EPREFIX/bin]
957 --sbindir=DIR system admin executables [EPREFIX/sbin]
958 --libexecdir=DIR program executables [EPREFIX/libexec]
959 --datadir=DIR read-only architecture-independent data [PREFIX/share]
960 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
961 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
962 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
963 --libdir=DIR object code libraries [EPREFIX/lib]
964 --includedir=DIR C header files [PREFIX/include]
965 --oldincludedir=DIR C header files for non-gcc [/usr/include]
966 --infodir=DIR info documentation [PREFIX/info]
967 --mandir=DIR man documentation [PREFIX/man]
968 _ACEOF
970 cat <<\_ACEOF
972 System types:
973 --build=BUILD configure for building on BUILD [guessed]
974 --host=HOST cross-compile to build programs to run on HOST [BUILD]
975 --target=TARGET configure for building compilers for TARGET [HOST]
976 _ACEOF
979 if test -n "$ac_init_help"; then
980 case $ac_init_help in
981 short | recursive ) echo "Configuration of package-unused version-unused:";;
982 esac
983 cat <<\_ACEOF
985 Optional Features:
986 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
987 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
988 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
989 --enable-objc-gc enable the use of Boehm's garbage collector with
990 the GNU Objective-C runtime.
991 --enable-multilib build many library versions (default)
992 --enable-maintainer-mode enable make rules and dependencies not useful
993 (and sometimes confusing) to the casual installer
994 --enable-shared[=PKGS]
995 build shared libraries [default=yes]
996 --enable-static[=PKGS]
997 build static libraries [default=yes]
998 --enable-fast-install[=PKGS]
999 optimize for fast installation [default=yes]
1000 --disable-libtool-lock avoid locking (might break parallel builds)
1001 --enable-sjlj-exceptions
1002 force use of builtin_setjmp for exceptions
1004 Optional Packages:
1005 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1006 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1007 --with-build-libsubdir=DIR Directory where to find libraries for build system
1008 --with-target-subdir=SUBDIR
1009 configuring in a subdirectory
1010 --with-cross-host=HOST configuring with a cross compiler
1011 --with-pic try to use only PIC/non-PIC objects [default=use
1012 both]
1013 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1015 Some influential environment variables:
1016 CC C compiler command
1017 CFLAGS C compiler flags
1018 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1019 nonstandard directory <lib dir>
1020 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1021 headers in a nonstandard directory <include dir>
1022 CPP C preprocessor
1024 Use these variables to override the choices made by `configure' or to help
1025 it to find libraries and programs with nonstandard names/locations.
1027 _ACEOF
1030 if test "$ac_init_help" = "recursive"; then
1031 # If there are subdirs, report their specific --help.
1032 ac_popdir=`pwd`
1033 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1034 test -d $ac_dir || continue
1035 ac_builddir=.
1037 if test "$ac_dir" != .; then
1038 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1039 # A "../" for each directory in $ac_dir_suffix.
1040 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1041 else
1042 ac_dir_suffix= ac_top_builddir=
1045 case $srcdir in
1046 .) # No --srcdir option. We are building in place.
1047 ac_srcdir=.
1048 if test -z "$ac_top_builddir"; then
1049 ac_top_srcdir=.
1050 else
1051 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1052 fi ;;
1053 [\\/]* | ?:[\\/]* ) # Absolute path.
1054 ac_srcdir=$srcdir$ac_dir_suffix;
1055 ac_top_srcdir=$srcdir ;;
1056 *) # Relative path.
1057 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1058 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1059 esac
1061 # Do not use `cd foo && pwd` to compute absolute paths, because
1062 # the directories may not exist.
1063 case `pwd` in
1064 .) ac_abs_builddir="$ac_dir";;
1066 case "$ac_dir" in
1067 .) ac_abs_builddir=`pwd`;;
1068 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1069 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1070 esac;;
1071 esac
1072 case $ac_abs_builddir in
1073 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1075 case ${ac_top_builddir}. in
1076 .) ac_abs_top_builddir=$ac_abs_builddir;;
1077 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1078 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1079 esac;;
1080 esac
1081 case $ac_abs_builddir in
1082 .) ac_abs_srcdir=$ac_srcdir;;
1084 case $ac_srcdir in
1085 .) ac_abs_srcdir=$ac_abs_builddir;;
1086 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1087 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1088 esac;;
1089 esac
1090 case $ac_abs_builddir in
1091 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1093 case $ac_top_srcdir in
1094 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1095 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1096 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1097 esac;;
1098 esac
1100 cd $ac_dir
1101 # Check for guested configure; otherwise get Cygnus style configure.
1102 if test -f $ac_srcdir/configure.gnu; then
1103 echo
1104 $SHELL $ac_srcdir/configure.gnu --help=recursive
1105 elif test -f $ac_srcdir/configure; then
1106 echo
1107 $SHELL $ac_srcdir/configure --help=recursive
1108 elif test -f $ac_srcdir/configure.ac ||
1109 test -f $ac_srcdir/configure.in; then
1110 echo
1111 $ac_configure --help
1112 else
1113 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1115 cd $ac_popdir
1116 done
1119 test -n "$ac_init_help" && exit 0
1120 if $ac_init_version; then
1121 cat <<\_ACEOF
1122 package-unused configure version-unused
1123 generated by GNU Autoconf 2.59
1125 Copyright (C) 2003 Free Software Foundation, Inc.
1126 This configure script is free software; the Free Software Foundation
1127 gives unlimited permission to copy, distribute and modify it.
1128 _ACEOF
1129 exit 0
1131 exec 5>config.log
1132 cat >&5 <<_ACEOF
1133 This file contains any messages produced by compilers while
1134 running configure, to aid debugging if configure makes a mistake.
1136 It was created by package-unused $as_me version-unused, which was
1137 generated by GNU Autoconf 2.59. Invocation command line was
1139 $ $0 $@
1141 _ACEOF
1143 cat <<_ASUNAME
1144 ## --------- ##
1145 ## Platform. ##
1146 ## --------- ##
1148 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1149 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1150 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1151 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1152 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1154 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1155 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1157 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1158 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1159 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1160 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1161 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1162 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1163 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1165 _ASUNAME
1167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1168 for as_dir in $PATH
1170 IFS=$as_save_IFS
1171 test -z "$as_dir" && as_dir=.
1172 echo "PATH: $as_dir"
1173 done
1175 } >&5
1177 cat >&5 <<_ACEOF
1180 ## ----------- ##
1181 ## Core tests. ##
1182 ## ----------- ##
1184 _ACEOF
1187 # Keep a trace of the command line.
1188 # Strip out --no-create and --no-recursion so they do not pile up.
1189 # Strip out --silent because we don't want to record it for future runs.
1190 # Also quote any args containing shell meta-characters.
1191 # Make two passes to allow for proper duplicate-argument suppression.
1192 ac_configure_args=
1193 ac_configure_args0=
1194 ac_configure_args1=
1195 ac_sep=
1196 ac_must_keep_next=false
1197 for ac_pass in 1 2
1199 for ac_arg
1201 case $ac_arg in
1202 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1203 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1204 | -silent | --silent | --silen | --sile | --sil)
1205 continue ;;
1206 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1207 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1208 esac
1209 case $ac_pass in
1210 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1212 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1213 if test $ac_must_keep_next = true; then
1214 ac_must_keep_next=false # Got value, back to normal.
1215 else
1216 case $ac_arg in
1217 *=* | --config-cache | -C | -disable-* | --disable-* \
1218 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1219 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1220 | -with-* | --with-* | -without-* | --without-* | --x)
1221 case "$ac_configure_args0 " in
1222 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1223 esac
1225 -* ) ac_must_keep_next=true ;;
1226 esac
1228 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1229 # Get rid of the leading space.
1230 ac_sep=" "
1232 esac
1233 done
1234 done
1235 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1236 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1238 # When interrupted or exit'd, cleanup temporary files, and complete
1239 # config.log. We remove comments because anyway the quotes in there
1240 # would cause problems or look ugly.
1241 # WARNING: Be sure not to use single quotes in there, as some shells,
1242 # such as our DU 5.0 friend, will then `close' the trap.
1243 trap 'exit_status=$?
1244 # Save into config.log some information that might help in debugging.
1246 echo
1248 cat <<\_ASBOX
1249 ## ---------------- ##
1250 ## Cache variables. ##
1251 ## ---------------- ##
1252 _ASBOX
1253 echo
1254 # The following way of writing the cache mishandles newlines in values,
1256 (set) 2>&1 |
1257 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1258 *ac_space=\ *)
1259 sed -n \
1260 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1261 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1264 sed -n \
1265 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1267 esac;
1269 echo
1271 cat <<\_ASBOX
1272 ## ----------------- ##
1273 ## Output variables. ##
1274 ## ----------------- ##
1275 _ASBOX
1276 echo
1277 for ac_var in $ac_subst_vars
1279 eval ac_val=$`echo $ac_var`
1280 echo "$ac_var='"'"'$ac_val'"'"'"
1281 done | sort
1282 echo
1284 if test -n "$ac_subst_files"; then
1285 cat <<\_ASBOX
1286 ## ------------- ##
1287 ## Output files. ##
1288 ## ------------- ##
1289 _ASBOX
1290 echo
1291 for ac_var in $ac_subst_files
1293 eval ac_val=$`echo $ac_var`
1294 echo "$ac_var='"'"'$ac_val'"'"'"
1295 done | sort
1296 echo
1299 if test -s confdefs.h; then
1300 cat <<\_ASBOX
1301 ## ----------- ##
1302 ## confdefs.h. ##
1303 ## ----------- ##
1304 _ASBOX
1305 echo
1306 sed "/^$/d" confdefs.h | sort
1307 echo
1309 test "$ac_signal" != 0 &&
1310 echo "$as_me: caught signal $ac_signal"
1311 echo "$as_me: exit $exit_status"
1312 } >&5
1313 rm -f core *.core &&
1314 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1315 exit $exit_status
1317 for ac_signal in 1 2 13 15; do
1318 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1319 done
1320 ac_signal=0
1322 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1323 rm -rf conftest* confdefs.h
1324 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1325 echo >confdefs.h
1327 # Predefined preprocessor variables.
1329 cat >>confdefs.h <<_ACEOF
1330 #define PACKAGE_NAME "$PACKAGE_NAME"
1331 _ACEOF
1334 cat >>confdefs.h <<_ACEOF
1335 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1336 _ACEOF
1339 cat >>confdefs.h <<_ACEOF
1340 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1341 _ACEOF
1344 cat >>confdefs.h <<_ACEOF
1345 #define PACKAGE_STRING "$PACKAGE_STRING"
1346 _ACEOF
1349 cat >>confdefs.h <<_ACEOF
1350 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1351 _ACEOF
1354 # Let the site file select an alternate cache file if it wants to.
1355 # Prefer explicitly selected file to automatically selected ones.
1356 if test -z "$CONFIG_SITE"; then
1357 if test "x$prefix" != xNONE; then
1358 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1359 else
1360 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1363 for ac_site_file in $CONFIG_SITE; do
1364 if test -r "$ac_site_file"; then
1365 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1366 echo "$as_me: loading site script $ac_site_file" >&6;}
1367 sed 's/^/| /' "$ac_site_file" >&5
1368 . "$ac_site_file"
1370 done
1372 if test -r "$cache_file"; then
1373 # Some versions of bash will fail to source /dev/null (special
1374 # files actually), so we avoid doing that.
1375 if test -f "$cache_file"; then
1376 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1377 echo "$as_me: loading cache $cache_file" >&6;}
1378 case $cache_file in
1379 [\\/]* | ?:[\\/]* ) . $cache_file;;
1380 *) . ./$cache_file;;
1381 esac
1383 else
1384 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1385 echo "$as_me: creating cache $cache_file" >&6;}
1386 >$cache_file
1389 # Check that the precious variables saved in the cache have kept the same
1390 # value.
1391 ac_cache_corrupted=false
1392 for ac_var in `(set) 2>&1 |
1393 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1394 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1395 eval ac_new_set=\$ac_env_${ac_var}_set
1396 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1397 eval ac_new_val="\$ac_env_${ac_var}_value"
1398 case $ac_old_set,$ac_new_set in
1399 set,)
1400 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1401 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1402 ac_cache_corrupted=: ;;
1403 ,set)
1404 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1405 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1406 ac_cache_corrupted=: ;;
1407 ,);;
1409 if test "x$ac_old_val" != "x$ac_new_val"; then
1410 # differences in whitespace do not lead to failure.
1411 ac_old_val_w=`echo x $ac_old_val`
1412 ac_new_val_w=`echo x $ac_new_val`
1413 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1414 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1415 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1416 ac_cache_corrupted=:
1417 else
1418 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1419 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1420 eval $ac_var=\$ac_old_val
1422 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1423 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1424 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1425 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1426 fi;;
1427 esac
1428 # Pass precious variables to config.status.
1429 if test "$ac_new_set" = set; then
1430 case $ac_new_val in
1431 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1432 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1433 *) ac_arg=$ac_var=$ac_new_val ;;
1434 esac
1435 case " $ac_configure_args " in
1436 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1437 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1438 esac
1440 done
1441 if $ac_cache_corrupted; then
1442 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1443 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1444 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1445 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1446 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1447 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1448 { (exit 1); exit 1; }; }
1451 ac_ext=c
1452 ac_cpp='$CPP $CPPFLAGS'
1453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1487 ac_aux_dir=
1488 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1489 if test -f $ac_dir/install-sh; then
1490 ac_aux_dir=$ac_dir
1491 ac_install_sh="$ac_aux_dir/install-sh -c"
1492 break
1493 elif test -f $ac_dir/install.sh; then
1494 ac_aux_dir=$ac_dir
1495 ac_install_sh="$ac_aux_dir/install.sh -c"
1496 break
1497 elif test -f $ac_dir/shtool; then
1498 ac_aux_dir=$ac_dir
1499 ac_install_sh="$ac_aux_dir/shtool install -c"
1500 break
1502 done
1503 if test -z "$ac_aux_dir"; then
1504 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1505 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1506 { (exit 1); exit 1; }; }
1508 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1509 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1510 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1512 # Make sure we can run config.sub.
1513 $ac_config_sub sun4 >/dev/null 2>&1 ||
1514 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1515 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1516 { (exit 1); exit 1; }; }
1518 echo "$as_me:$LINENO: checking build system type" >&5
1519 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1520 if test "${ac_cv_build+set}" = set; then
1521 echo $ECHO_N "(cached) $ECHO_C" >&6
1522 else
1523 ac_cv_build_alias=$build_alias
1524 test -z "$ac_cv_build_alias" &&
1525 ac_cv_build_alias=`$ac_config_guess`
1526 test -z "$ac_cv_build_alias" &&
1527 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1528 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1529 { (exit 1); exit 1; }; }
1530 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1531 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1532 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1533 { (exit 1); exit 1; }; }
1536 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1537 echo "${ECHO_T}$ac_cv_build" >&6
1538 build=$ac_cv_build
1539 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1540 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1541 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1544 case ${build_alias} in
1545 "") build_noncanonical=${build} ;;
1546 *) build_noncanonical=${build_alias} ;;
1547 esac
1549 case ${host_alias} in
1550 "") host_noncanonical=${build_noncanonical} ;;
1551 *) host_noncanonical=${host_alias} ;;
1552 esac
1554 case ${target_alias} in
1555 "") target_noncanonical=${host_noncanonical} ;;
1556 *) target_noncanonical=${target_alias} ;;
1557 esac
1560 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1561 # have matching libraries, they should use host libraries: Makefile.tpl
1562 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1563 # However, they still use the build modules, because the corresponding
1564 # host modules (e.g. bison) are only built for the host when bootstrap
1565 # finishes. So:
1566 # - build_subdir is where we find build modules, and never changes.
1567 # - build_libsubdir is where we find build libraries, and can be overridden.
1569 # Prefix 'build-' so this never conflicts with target_subdir.
1570 build_subdir="build-${build_noncanonical}"
1572 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1573 if test "${with_build_libsubdir+set}" = set; then
1574 withval="$with_build_libsubdir"
1575 build_libsubdir="$withval"
1576 else
1577 build_libsubdir="$build_subdir"
1579 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1580 if ( test $srcdir = . && test -d gcc ) \
1581 || test -d $srcdir/../host-${host_noncanonical}; then
1582 host_subdir="host-${host_noncanonical}"
1583 else
1584 host_subdir=.
1586 # No prefix.
1587 target_subdir=${target_noncanonical}
1590 # We need the following definitions because AC_PROG_LIBTOOL relies on them
1591 PACKAGE=libobjc
1592 # Version is pulled out to make it a bit easier to change using sed.
1593 VERSION=2:0:0
1596 # This works around the fact that libtool configuration may change LD
1597 # for this particular configuration, but some shells, instead of
1598 # keeping the changes in LD private, export them just because LD is
1599 # exported.
1600 ORIGINAL_LD_FOR_MULTILIBS=$LD
1602 # -------
1603 # Options
1604 # -------
1606 # We use these options to decide which functions to include.
1608 # Check whether --with-target-subdir or --without-target-subdir was given.
1609 if test "${with_target_subdir+set}" = set; then
1610 withval="$with_target_subdir"
1614 # Check whether --with-cross-host or --without-cross-host was given.
1615 if test "${with_cross_host+set}" = set; then
1616 withval="$with_cross_host"
1620 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1621 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
1622 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1623 if test "${enable_version_specific_runtime_libs+set}" = set; then
1624 enableval="$enable_version_specific_runtime_libs"
1625 case "$enableval" in
1626 yes) version_specific_libs=yes ;;
1627 no) version_specific_libs=no ;;
1628 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1629 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1630 { (exit 1); exit 1; }; };;
1631 esac
1632 else
1633 version_specific_libs=no
1635 echo "$as_me:$LINENO: result: $version_specific_libs" >&5
1636 echo "${ECHO_T}$version_specific_libs" >&6
1638 # Check whether --enable-objc-gc or --disable-objc-gc was given.
1639 if test "${enable_objc_gc+set}" = set; then
1640 enableval="$enable_objc_gc"
1641 case $enable_objc_gc in
1643 OBJC_BOEHM_GC=''
1644 OBJC_BOEHM_GC_INCLUDES=''
1647 OBJC_BOEHM_GC=libobjc_gc.la
1648 OBJC_BOEHM_GC_INCLUDES='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
1650 esac
1651 else
1652 OBJC_BOEHM_GC=''; OBJC_BOEHM_GC_INCLUDES=''
1657 # -----------
1658 # Directories
1659 # -----------
1661 # Find the rest of the source tree framework.
1662 # Default to --enable-multilib
1663 # Check whether --enable-multilib or --disable-multilib was given.
1664 if test "${enable_multilib+set}" = set; then
1665 enableval="$enable_multilib"
1666 case "$enableval" in
1667 yes) multilib=yes ;;
1668 no) multilib=no ;;
1669 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1670 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1671 { (exit 1); exit 1; }; } ;;
1672 esac
1673 else
1674 multilib=yes
1677 # We may get other options which we leave undocumented:
1678 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1679 # See config-ml.in if you want the gory details.
1681 if test "$srcdir" = "."; then
1682 if test "$with_target_subdir" != "."; then
1683 multi_basedir="$srcdir/$with_multisrctop../.."
1684 else
1685 multi_basedir="$srcdir/$with_multisrctop.."
1687 else
1688 multi_basedir="$srcdir/.."
1692 # Even if the default multilib is not a cross compilation,
1693 # it may be that some of the other multilibs are.
1694 if test $cross_compiling = no && test $multilib = yes \
1695 && test "x${with_multisubdir}" != x ; then
1696 cross_compiling=maybe
1699 ac_config_commands="$ac_config_commands default-1"
1702 echo "$as_me:$LINENO: checking host system type" >&5
1703 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1704 if test "${ac_cv_host+set}" = set; then
1705 echo $ECHO_N "(cached) $ECHO_C" >&6
1706 else
1707 ac_cv_host_alias=$host_alias
1708 test -z "$ac_cv_host_alias" &&
1709 ac_cv_host_alias=$ac_cv_build_alias
1710 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1711 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1712 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1713 { (exit 1); exit 1; }; }
1716 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1717 echo "${ECHO_T}$ac_cv_host" >&6
1718 host=$ac_cv_host
1719 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1720 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1721 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1724 echo "$as_me:$LINENO: checking target system type" >&5
1725 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1726 if test "${ac_cv_target+set}" = set; then
1727 echo $ECHO_N "(cached) $ECHO_C" >&6
1728 else
1729 ac_cv_target_alias=$target_alias
1730 test "x$ac_cv_target_alias" = "x" &&
1731 ac_cv_target_alias=$ac_cv_host_alias
1732 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1733 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1734 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1735 { (exit 1); exit 1; }; }
1738 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1739 echo "${ECHO_T}$ac_cv_target" >&6
1740 target=$ac_cv_target
1741 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1742 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1743 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1746 # The aliases save the names the user supplied, while $host etc.
1747 # will get canonicalized.
1748 test -n "$target_alias" &&
1749 test "$program_prefix$program_suffix$program_transform_name" = \
1750 NONENONEs,x,x, &&
1751 program_prefix=${target_alias}-
1755 # Export source directory.
1756 # These need to be absolute paths, yet at the same time need to
1757 # canonicalize only relative paths, because then amd will not unmount
1758 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
1759 case $srcdir in
1760 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
1761 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
1762 esac
1765 # Calculate toolexeclibdir
1766 # Also toolexecdir, though it's only used in toolexeclibdir
1767 case ${version_specific_libs} in
1768 yes)
1769 # Need the gcc compiler version to know where to install libraries
1770 # and header files if --enable-version-specific-runtime-libs option
1771 # is selected.
1772 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
1773 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
1776 if test -n "$with_cross_host" &&
1777 test x"$with_cross_host" != x"no"; then
1778 # Install a library built with a cross compiler in tooldir, not libdir.
1779 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
1780 toolexeclibdir='$(toolexecdir)/lib'
1781 else
1782 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
1783 toolexeclibdir='$(libdir)'
1785 multi_os_directory=`$CC -print-multi-os-directory`
1786 case $multi_os_directory in
1787 .) ;; # Avoid trailing /.
1788 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
1789 esac
1791 esac
1795 # Figure out if we want to name the include directory and the
1796 # library name changes differently.
1797 includedirname=include
1798 libsuffix=
1799 case "${host}" in
1800 *-darwin*)
1801 # Darwin is the only target so far that needs a different include directory.
1802 includedirname=include-gnu-runtime
1803 libsuffix=-gnu
1805 esac
1809 ac_config_headers="$ac_config_headers config.h"
1812 # --------
1813 # Programs
1814 # --------
1818 # We must force CC to /not/ be a precious variable; otherwise
1819 # the wrong, non-multilib-adjusted value will be used in multilibs.
1820 # As a side effect, we have to subst CFLAGS ourselves.
1823 ac_ext=c
1824 ac_cpp='$CPP $CPPFLAGS'
1825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1828 if test -n "$ac_tool_prefix"; then
1829 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1830 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1831 echo "$as_me:$LINENO: checking for $ac_word" >&5
1832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1833 if test "${ac_cv_prog_CC+set}" = set; then
1834 echo $ECHO_N "(cached) $ECHO_C" >&6
1835 else
1836 if test -n "$CC"; then
1837 ac_cv_prog_CC="$CC" # Let the user override the test.
1838 else
1839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1840 for as_dir in $PATH
1842 IFS=$as_save_IFS
1843 test -z "$as_dir" && as_dir=.
1844 for ac_exec_ext in '' $ac_executable_extensions; do
1845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1846 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1848 break 2
1850 done
1851 done
1855 CC=$ac_cv_prog_CC
1856 if test -n "$CC"; then
1857 echo "$as_me:$LINENO: result: $CC" >&5
1858 echo "${ECHO_T}$CC" >&6
1859 else
1860 echo "$as_me:$LINENO: result: no" >&5
1861 echo "${ECHO_T}no" >&6
1865 if test -z "$ac_cv_prog_CC"; then
1866 ac_ct_CC=$CC
1867 # Extract the first word of "gcc", so it can be a program name with args.
1868 set dummy gcc; ac_word=$2
1869 echo "$as_me:$LINENO: checking for $ac_word" >&5
1870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1871 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1872 echo $ECHO_N "(cached) $ECHO_C" >&6
1873 else
1874 if test -n "$ac_ct_CC"; then
1875 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1876 else
1877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1878 for as_dir in $PATH
1880 IFS=$as_save_IFS
1881 test -z "$as_dir" && as_dir=.
1882 for ac_exec_ext in '' $ac_executable_extensions; do
1883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1884 ac_cv_prog_ac_ct_CC="gcc"
1885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1886 break 2
1888 done
1889 done
1893 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1894 if test -n "$ac_ct_CC"; then
1895 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1896 echo "${ECHO_T}$ac_ct_CC" >&6
1897 else
1898 echo "$as_me:$LINENO: result: no" >&5
1899 echo "${ECHO_T}no" >&6
1902 CC=$ac_ct_CC
1903 else
1904 CC="$ac_cv_prog_CC"
1907 if test -z "$CC"; then
1908 if test -n "$ac_tool_prefix"; then
1909 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1910 set dummy ${ac_tool_prefix}cc; ac_word=$2
1911 echo "$as_me:$LINENO: checking for $ac_word" >&5
1912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1913 if test "${ac_cv_prog_CC+set}" = set; then
1914 echo $ECHO_N "(cached) $ECHO_C" >&6
1915 else
1916 if test -n "$CC"; then
1917 ac_cv_prog_CC="$CC" # Let the user override the test.
1918 else
1919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1920 for as_dir in $PATH
1922 IFS=$as_save_IFS
1923 test -z "$as_dir" && as_dir=.
1924 for ac_exec_ext in '' $ac_executable_extensions; do
1925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1926 ac_cv_prog_CC="${ac_tool_prefix}cc"
1927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1928 break 2
1930 done
1931 done
1935 CC=$ac_cv_prog_CC
1936 if test -n "$CC"; then
1937 echo "$as_me:$LINENO: result: $CC" >&5
1938 echo "${ECHO_T}$CC" >&6
1939 else
1940 echo "$as_me:$LINENO: result: no" >&5
1941 echo "${ECHO_T}no" >&6
1945 if test -z "$ac_cv_prog_CC"; then
1946 ac_ct_CC=$CC
1947 # Extract the first word of "cc", so it can be a program name with args.
1948 set dummy cc; ac_word=$2
1949 echo "$as_me:$LINENO: checking for $ac_word" >&5
1950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1951 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1952 echo $ECHO_N "(cached) $ECHO_C" >&6
1953 else
1954 if test -n "$ac_ct_CC"; then
1955 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1956 else
1957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1958 for as_dir in $PATH
1960 IFS=$as_save_IFS
1961 test -z "$as_dir" && as_dir=.
1962 for ac_exec_ext in '' $ac_executable_extensions; do
1963 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1964 ac_cv_prog_ac_ct_CC="cc"
1965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1966 break 2
1968 done
1969 done
1973 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1974 if test -n "$ac_ct_CC"; then
1975 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1976 echo "${ECHO_T}$ac_ct_CC" >&6
1977 else
1978 echo "$as_me:$LINENO: result: no" >&5
1979 echo "${ECHO_T}no" >&6
1982 CC=$ac_ct_CC
1983 else
1984 CC="$ac_cv_prog_CC"
1988 if test -z "$CC"; then
1989 # Extract the first word of "cc", so it can be a program name with args.
1990 set dummy cc; ac_word=$2
1991 echo "$as_me:$LINENO: checking for $ac_word" >&5
1992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1993 if test "${ac_cv_prog_CC+set}" = set; then
1994 echo $ECHO_N "(cached) $ECHO_C" >&6
1995 else
1996 if test -n "$CC"; then
1997 ac_cv_prog_CC="$CC" # Let the user override the test.
1998 else
1999 ac_prog_rejected=no
2000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2001 for as_dir in $PATH
2003 IFS=$as_save_IFS
2004 test -z "$as_dir" && as_dir=.
2005 for ac_exec_ext in '' $ac_executable_extensions; do
2006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2007 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2008 ac_prog_rejected=yes
2009 continue
2011 ac_cv_prog_CC="cc"
2012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2013 break 2
2015 done
2016 done
2018 if test $ac_prog_rejected = yes; then
2019 # We found a bogon in the path, so make sure we never use it.
2020 set dummy $ac_cv_prog_CC
2021 shift
2022 if test $# != 0; then
2023 # We chose a different compiler from the bogus one.
2024 # However, it has the same basename, so the bogon will be chosen
2025 # first if we set CC to just the basename; use the full file name.
2026 shift
2027 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2032 CC=$ac_cv_prog_CC
2033 if test -n "$CC"; then
2034 echo "$as_me:$LINENO: result: $CC" >&5
2035 echo "${ECHO_T}$CC" >&6
2036 else
2037 echo "$as_me:$LINENO: result: no" >&5
2038 echo "${ECHO_T}no" >&6
2042 if test -z "$CC"; then
2043 if test -n "$ac_tool_prefix"; then
2044 for ac_prog in cl
2046 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2047 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2048 echo "$as_me:$LINENO: checking for $ac_word" >&5
2049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2050 if test "${ac_cv_prog_CC+set}" = set; then
2051 echo $ECHO_N "(cached) $ECHO_C" >&6
2052 else
2053 if test -n "$CC"; then
2054 ac_cv_prog_CC="$CC" # Let the user override the test.
2055 else
2056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057 for as_dir in $PATH
2059 IFS=$as_save_IFS
2060 test -z "$as_dir" && as_dir=.
2061 for ac_exec_ext in '' $ac_executable_extensions; do
2062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2063 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2065 break 2
2067 done
2068 done
2072 CC=$ac_cv_prog_CC
2073 if test -n "$CC"; then
2074 echo "$as_me:$LINENO: result: $CC" >&5
2075 echo "${ECHO_T}$CC" >&6
2076 else
2077 echo "$as_me:$LINENO: result: no" >&5
2078 echo "${ECHO_T}no" >&6
2081 test -n "$CC" && break
2082 done
2084 if test -z "$CC"; then
2085 ac_ct_CC=$CC
2086 for ac_prog in cl
2088 # Extract the first word of "$ac_prog", so it can be a program name with args.
2089 set dummy $ac_prog; ac_word=$2
2090 echo "$as_me:$LINENO: checking for $ac_word" >&5
2091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2092 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2093 echo $ECHO_N "(cached) $ECHO_C" >&6
2094 else
2095 if test -n "$ac_ct_CC"; then
2096 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2097 else
2098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2099 for as_dir in $PATH
2101 IFS=$as_save_IFS
2102 test -z "$as_dir" && as_dir=.
2103 for ac_exec_ext in '' $ac_executable_extensions; do
2104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2105 ac_cv_prog_ac_ct_CC="$ac_prog"
2106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2107 break 2
2109 done
2110 done
2114 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2115 if test -n "$ac_ct_CC"; then
2116 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2117 echo "${ECHO_T}$ac_ct_CC" >&6
2118 else
2119 echo "$as_me:$LINENO: result: no" >&5
2120 echo "${ECHO_T}no" >&6
2123 test -n "$ac_ct_CC" && break
2124 done
2126 CC=$ac_ct_CC
2132 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2133 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2134 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2135 See \`config.log' for more details." >&5
2136 echo "$as_me: error: no acceptable C compiler found in \$PATH
2137 See \`config.log' for more details." >&2;}
2138 { (exit 1); exit 1; }; }; }
2140 # Provide some information about the compiler.
2141 echo "$as_me:$LINENO:" \
2142 "checking for C compiler version" >&5
2143 ac_compiler=`set X $ac_compile; echo $2`
2144 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2145 (eval $ac_compiler --version </dev/null >&5) 2>&5
2146 ac_status=$?
2147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148 (exit $ac_status); }
2149 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2150 (eval $ac_compiler -v </dev/null >&5) 2>&5
2151 ac_status=$?
2152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153 (exit $ac_status); }
2154 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2155 (eval $ac_compiler -V </dev/null >&5) 2>&5
2156 ac_status=$?
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); }
2160 cat >conftest.$ac_ext <<_ACEOF
2161 /* confdefs.h. */
2162 _ACEOF
2163 cat confdefs.h >>conftest.$ac_ext
2164 cat >>conftest.$ac_ext <<_ACEOF
2165 /* end confdefs.h. */
2168 main ()
2172 return 0;
2174 _ACEOF
2175 # FIXME: Cleanup?
2176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2177 (eval $ac_link) 2>&5
2178 ac_status=$?
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); }; then
2181 gcc_no_link=no
2182 else
2183 gcc_no_link=yes
2186 if test x$gcc_no_link = xyes; then
2187 # Setting cross_compile will disable run tests; it will
2188 # also disable AC_CHECK_FILE but that's generally
2189 # correct if we can't link.
2190 cross_compiling=yes
2191 EXEEXT=
2192 else
2193 cat >conftest.$ac_ext <<_ACEOF
2194 /* confdefs.h. */
2195 _ACEOF
2196 cat confdefs.h >>conftest.$ac_ext
2197 cat >>conftest.$ac_ext <<_ACEOF
2198 /* end confdefs.h. */
2201 main ()
2205 return 0;
2207 _ACEOF
2208 ac_clean_files_save=$ac_clean_files
2209 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2210 # Try to create an executable without -o first, disregard a.out.
2211 # It will help us diagnose broken compilers, and finding out an intuition
2212 # of exeext.
2213 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2214 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2215 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2216 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2217 (eval $ac_link_default) 2>&5
2218 ac_status=$?
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); }; then
2221 # Find the output, starting from the most likely. This scheme is
2222 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2223 # resort.
2225 # Be careful to initialize this variable, since it used to be cached.
2226 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2227 ac_cv_exeext=
2228 # b.out is created by i960 compilers.
2229 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2231 test -f "$ac_file" || continue
2232 case $ac_file in
2233 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2235 conftest.$ac_ext )
2236 # This is the source file.
2238 [ab].out )
2239 # We found the default executable, but exeext='' is most
2240 # certainly right.
2241 break;;
2242 *.* )
2243 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2244 # FIXME: I believe we export ac_cv_exeext for Libtool,
2245 # but it would be cool to find out if it's true. Does anybody
2246 # maintain Libtool? --akim.
2247 export ac_cv_exeext
2248 break;;
2250 break;;
2251 esac
2252 done
2253 else
2254 echo "$as_me: failed program was:" >&5
2255 sed 's/^/| /' conftest.$ac_ext >&5
2257 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2258 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2259 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2260 See \`config.log' for more details." >&5
2261 echo "$as_me: error: C compiler cannot create executables
2262 See \`config.log' for more details." >&2;}
2263 { (exit 77); exit 77; }; }; }
2266 ac_exeext=$ac_cv_exeext
2267 echo "$as_me:$LINENO: result: $ac_file" >&5
2268 echo "${ECHO_T}$ac_file" >&6
2270 # Check the compiler produces executables we can run. If not, either
2271 # the compiler is broken, or we cross compile.
2272 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2273 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2274 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2275 # If not cross compiling, check that we can run a simple program.
2276 if test "$cross_compiling" != yes; then
2277 if { ac_try='./$ac_file'
2278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2279 (eval $ac_try) 2>&5
2280 ac_status=$?
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); }; }; then
2283 cross_compiling=no
2284 else
2285 if test "$cross_compiling" = maybe; then
2286 cross_compiling=yes
2287 else
2288 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2289 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2290 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2291 If you meant to cross compile, use \`--host'.
2292 See \`config.log' for more details." >&5
2293 echo "$as_me: error: cannot run C compiled programs.
2294 If you meant to cross compile, use \`--host'.
2295 See \`config.log' for more details." >&2;}
2296 { (exit 1); exit 1; }; }; }
2300 echo "$as_me:$LINENO: result: yes" >&5
2301 echo "${ECHO_T}yes" >&6
2303 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2304 ac_clean_files=$ac_clean_files_save
2305 # Check the compiler produces executables we can run. If not, either
2306 # the compiler is broken, or we cross compile.
2307 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2308 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2309 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2310 echo "${ECHO_T}$cross_compiling" >&6
2312 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2313 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2315 (eval $ac_link) 2>&5
2316 ac_status=$?
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); }; then
2319 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2320 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2321 # work properly (i.e., refer to `conftest.exe'), while it won't with
2322 # `rm'.
2323 for ac_file in conftest.exe conftest conftest.*; do
2324 test -f "$ac_file" || continue
2325 case $ac_file in
2326 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2327 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2328 export ac_cv_exeext
2329 break;;
2330 * ) break;;
2331 esac
2332 done
2333 else
2334 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2335 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2336 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2337 See \`config.log' for more details." >&5
2338 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2339 See \`config.log' for more details." >&2;}
2340 { (exit 1); exit 1; }; }; }
2343 rm -f conftest$ac_cv_exeext
2344 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2345 echo "${ECHO_T}$ac_cv_exeext" >&6
2347 rm -f conftest.$ac_ext
2348 EXEEXT=$ac_cv_exeext
2349 ac_exeext=$EXEEXT
2351 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2352 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2353 if test "${ac_cv_objext+set}" = set; then
2354 echo $ECHO_N "(cached) $ECHO_C" >&6
2355 else
2356 cat >conftest.$ac_ext <<_ACEOF
2357 /* confdefs.h. */
2358 _ACEOF
2359 cat confdefs.h >>conftest.$ac_ext
2360 cat >>conftest.$ac_ext <<_ACEOF
2361 /* end confdefs.h. */
2364 main ()
2368 return 0;
2370 _ACEOF
2371 rm -f conftest.o conftest.obj
2372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2373 (eval $ac_compile) 2>&5
2374 ac_status=$?
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); }; then
2377 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2378 case $ac_file in
2379 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2380 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2381 break;;
2382 esac
2383 done
2384 else
2385 echo "$as_me: failed program was:" >&5
2386 sed 's/^/| /' conftest.$ac_ext >&5
2388 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2389 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2390 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2391 See \`config.log' for more details." >&5
2392 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2393 See \`config.log' for more details." >&2;}
2394 { (exit 1); exit 1; }; }; }
2397 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2399 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2400 echo "${ECHO_T}$ac_cv_objext" >&6
2401 OBJEXT=$ac_cv_objext
2402 ac_objext=$OBJEXT
2403 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2404 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2405 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2406 echo $ECHO_N "(cached) $ECHO_C" >&6
2407 else
2408 cat >conftest.$ac_ext <<_ACEOF
2409 /* confdefs.h. */
2410 _ACEOF
2411 cat confdefs.h >>conftest.$ac_ext
2412 cat >>conftest.$ac_ext <<_ACEOF
2413 /* end confdefs.h. */
2416 main ()
2418 #ifndef __GNUC__
2419 choke me
2420 #endif
2423 return 0;
2425 _ACEOF
2426 rm -f conftest.$ac_objext
2427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2428 (eval $ac_compile) 2>conftest.er1
2429 ac_status=$?
2430 grep -v '^ *+' conftest.er1 >conftest.err
2431 rm -f conftest.er1
2432 cat conftest.err >&5
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); } &&
2435 { ac_try='test -z "$ac_c_werror_flag"
2436 || test ! -s conftest.err'
2437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2438 (eval $ac_try) 2>&5
2439 ac_status=$?
2440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441 (exit $ac_status); }; } &&
2442 { ac_try='test -s conftest.$ac_objext'
2443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444 (eval $ac_try) 2>&5
2445 ac_status=$?
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447 (exit $ac_status); }; }; then
2448 ac_compiler_gnu=yes
2449 else
2450 echo "$as_me: failed program was:" >&5
2451 sed 's/^/| /' conftest.$ac_ext >&5
2453 ac_compiler_gnu=no
2455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2456 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2459 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2460 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2461 GCC=`test $ac_compiler_gnu = yes && echo yes`
2462 ac_test_CFLAGS=${CFLAGS+set}
2463 ac_save_CFLAGS=$CFLAGS
2464 CFLAGS="-g"
2465 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2466 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2467 if test "${ac_cv_prog_cc_g+set}" = set; then
2468 echo $ECHO_N "(cached) $ECHO_C" >&6
2469 else
2470 cat >conftest.$ac_ext <<_ACEOF
2471 /* confdefs.h. */
2472 _ACEOF
2473 cat confdefs.h >>conftest.$ac_ext
2474 cat >>conftest.$ac_ext <<_ACEOF
2475 /* end confdefs.h. */
2478 main ()
2482 return 0;
2484 _ACEOF
2485 rm -f conftest.$ac_objext
2486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2487 (eval $ac_compile) 2>conftest.er1
2488 ac_status=$?
2489 grep -v '^ *+' conftest.er1 >conftest.err
2490 rm -f conftest.er1
2491 cat conftest.err >&5
2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493 (exit $ac_status); } &&
2494 { ac_try='test -z "$ac_c_werror_flag"
2495 || test ! -s conftest.err'
2496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2497 (eval $ac_try) 2>&5
2498 ac_status=$?
2499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500 (exit $ac_status); }; } &&
2501 { ac_try='test -s conftest.$ac_objext'
2502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2503 (eval $ac_try) 2>&5
2504 ac_status=$?
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); }; }; then
2507 ac_cv_prog_cc_g=yes
2508 else
2509 echo "$as_me: failed program was:" >&5
2510 sed 's/^/| /' conftest.$ac_ext >&5
2512 ac_cv_prog_cc_g=no
2514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2516 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2517 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2518 if test "$ac_test_CFLAGS" = set; then
2519 CFLAGS=$ac_save_CFLAGS
2520 elif test $ac_cv_prog_cc_g = yes; then
2521 if test "$GCC" = yes; then
2522 CFLAGS="-g -O2"
2523 else
2524 CFLAGS="-g"
2526 else
2527 if test "$GCC" = yes; then
2528 CFLAGS="-O2"
2529 else
2530 CFLAGS=
2533 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2534 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2535 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2536 echo $ECHO_N "(cached) $ECHO_C" >&6
2537 else
2538 ac_cv_prog_cc_stdc=no
2539 ac_save_CC=$CC
2540 cat >conftest.$ac_ext <<_ACEOF
2541 /* confdefs.h. */
2542 _ACEOF
2543 cat confdefs.h >>conftest.$ac_ext
2544 cat >>conftest.$ac_ext <<_ACEOF
2545 /* end confdefs.h. */
2546 #include <stdarg.h>
2547 #include <stdio.h>
2548 #include <sys/types.h>
2549 #include <sys/stat.h>
2550 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2551 struct buf { int x; };
2552 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2553 static char *e (p, i)
2554 char **p;
2555 int i;
2557 return p[i];
2559 static char *f (char * (*g) (char **, int), char **p, ...)
2561 char *s;
2562 va_list v;
2563 va_start (v,p);
2564 s = g (p, va_arg (v,int));
2565 va_end (v);
2566 return s;
2569 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2570 function prototypes and stuff, but not '\xHH' hex character constants.
2571 These don't provoke an error unfortunately, instead are silently treated
2572 as 'x'. The following induces an error, until -std1 is added to get
2573 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2574 array size at least. It's necessary to write '\x00'==0 to get something
2575 that's true only with -std1. */
2576 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2578 int test (int i, double x);
2579 struct s1 {int (*f) (int a);};
2580 struct s2 {int (*f) (double a);};
2581 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2582 int argc;
2583 char **argv;
2585 main ()
2587 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2589 return 0;
2591 _ACEOF
2592 # Don't try gcc -ansi; that turns off useful extensions and
2593 # breaks some systems' header files.
2594 # AIX -qlanglvl=ansi
2595 # Ultrix and OSF/1 -std1
2596 # HP-UX 10.20 and later -Ae
2597 # HP-UX older versions -Aa -D_HPUX_SOURCE
2598 # SVR4 -Xc -D__EXTENSIONS__
2599 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2601 CC="$ac_save_CC $ac_arg"
2602 rm -f conftest.$ac_objext
2603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2604 (eval $ac_compile) 2>conftest.er1
2605 ac_status=$?
2606 grep -v '^ *+' conftest.er1 >conftest.err
2607 rm -f conftest.er1
2608 cat conftest.err >&5
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); } &&
2611 { ac_try='test -z "$ac_c_werror_flag"
2612 || test ! -s conftest.err'
2613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614 (eval $ac_try) 2>&5
2615 ac_status=$?
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); }; } &&
2618 { ac_try='test -s conftest.$ac_objext'
2619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2620 (eval $ac_try) 2>&5
2621 ac_status=$?
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); }; }; then
2624 ac_cv_prog_cc_stdc=$ac_arg
2625 break
2626 else
2627 echo "$as_me: failed program was:" >&5
2628 sed 's/^/| /' conftest.$ac_ext >&5
2631 rm -f conftest.err conftest.$ac_objext
2632 done
2633 rm -f conftest.$ac_ext conftest.$ac_objext
2634 CC=$ac_save_CC
2638 case "x$ac_cv_prog_cc_stdc" in
2639 x|xno)
2640 echo "$as_me:$LINENO: result: none needed" >&5
2641 echo "${ECHO_T}none needed" >&6 ;;
2643 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2644 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2645 CC="$CC $ac_cv_prog_cc_stdc" ;;
2646 esac
2648 # Some people use a C++ compiler to compile C. Since we use `exit',
2649 # in C++ we need to declare it. In case someone uses the same compiler
2650 # for both compiling C and C++ we need to have the C++ compiler decide
2651 # the declaration of exit, since it's the most demanding environment.
2652 cat >conftest.$ac_ext <<_ACEOF
2653 #ifndef __cplusplus
2654 choke me
2655 #endif
2656 _ACEOF
2657 rm -f conftest.$ac_objext
2658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2659 (eval $ac_compile) 2>conftest.er1
2660 ac_status=$?
2661 grep -v '^ *+' conftest.er1 >conftest.err
2662 rm -f conftest.er1
2663 cat conftest.err >&5
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); } &&
2666 { ac_try='test -z "$ac_c_werror_flag"
2667 || test ! -s conftest.err'
2668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2669 (eval $ac_try) 2>&5
2670 ac_status=$?
2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 (exit $ac_status); }; } &&
2673 { ac_try='test -s conftest.$ac_objext'
2674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675 (eval $ac_try) 2>&5
2676 ac_status=$?
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); }; }; then
2679 for ac_declaration in \
2680 '' \
2681 'extern "C" void std::exit (int) throw (); using std::exit;' \
2682 'extern "C" void std::exit (int); using std::exit;' \
2683 'extern "C" void exit (int) throw ();' \
2684 'extern "C" void exit (int);' \
2685 'void exit (int);'
2687 cat >conftest.$ac_ext <<_ACEOF
2688 /* confdefs.h. */
2689 _ACEOF
2690 cat confdefs.h >>conftest.$ac_ext
2691 cat >>conftest.$ac_ext <<_ACEOF
2692 /* end confdefs.h. */
2693 $ac_declaration
2694 #include <stdlib.h>
2696 main ()
2698 exit (42);
2700 return 0;
2702 _ACEOF
2703 rm -f conftest.$ac_objext
2704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2705 (eval $ac_compile) 2>conftest.er1
2706 ac_status=$?
2707 grep -v '^ *+' conftest.er1 >conftest.err
2708 rm -f conftest.er1
2709 cat conftest.err >&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); } &&
2712 { ac_try='test -z "$ac_c_werror_flag"
2713 || test ! -s conftest.err'
2714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715 (eval $ac_try) 2>&5
2716 ac_status=$?
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); }; } &&
2719 { ac_try='test -s conftest.$ac_objext'
2720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2721 (eval $ac_try) 2>&5
2722 ac_status=$?
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); }; }; then
2726 else
2727 echo "$as_me: failed program was:" >&5
2728 sed 's/^/| /' conftest.$ac_ext >&5
2730 continue
2732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2733 cat >conftest.$ac_ext <<_ACEOF
2734 /* confdefs.h. */
2735 _ACEOF
2736 cat confdefs.h >>conftest.$ac_ext
2737 cat >>conftest.$ac_ext <<_ACEOF
2738 /* end confdefs.h. */
2739 $ac_declaration
2741 main ()
2743 exit (42);
2745 return 0;
2747 _ACEOF
2748 rm -f conftest.$ac_objext
2749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2750 (eval $ac_compile) 2>conftest.er1
2751 ac_status=$?
2752 grep -v '^ *+' conftest.er1 >conftest.err
2753 rm -f conftest.er1
2754 cat conftest.err >&5
2755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756 (exit $ac_status); } &&
2757 { ac_try='test -z "$ac_c_werror_flag"
2758 || test ! -s conftest.err'
2759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2760 (eval $ac_try) 2>&5
2761 ac_status=$?
2762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763 (exit $ac_status); }; } &&
2764 { ac_try='test -s conftest.$ac_objext'
2765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2766 (eval $ac_try) 2>&5
2767 ac_status=$?
2768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769 (exit $ac_status); }; }; then
2770 break
2771 else
2772 echo "$as_me: failed program was:" >&5
2773 sed 's/^/| /' conftest.$ac_ext >&5
2776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2777 done
2778 rm -f conftest*
2779 if test -n "$ac_declaration"; then
2780 echo '#ifdef __cplusplus' >>confdefs.h
2781 echo $ac_declaration >>confdefs.h
2782 echo '#endif' >>confdefs.h
2785 else
2786 echo "$as_me: failed program was:" >&5
2787 sed 's/^/| /' conftest.$ac_ext >&5
2790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2791 ac_ext=c
2792 ac_cpp='$CPP $CPPFLAGS'
2793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2799 # extra LD Flags which are required for targets
2800 case "${host}" in
2801 *-darwin*)
2802 # Darwin needs -single_module when linking libobjc
2803 extra_ldflags_libobjc=-Wl,-single_module
2805 esac
2810 if test -n "$ac_tool_prefix"; then
2811 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2812 set dummy ${ac_tool_prefix}as; ac_word=$2
2813 echo "$as_me:$LINENO: checking for $ac_word" >&5
2814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2815 if test "${ac_cv_prog_AS+set}" = set; then
2816 echo $ECHO_N "(cached) $ECHO_C" >&6
2817 else
2818 if test -n "$AS"; then
2819 ac_cv_prog_AS="$AS" # Let the user override the test.
2820 else
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822 for as_dir in $PATH
2824 IFS=$as_save_IFS
2825 test -z "$as_dir" && as_dir=.
2826 for ac_exec_ext in '' $ac_executable_extensions; do
2827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2828 ac_cv_prog_AS="${ac_tool_prefix}as"
2829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2830 break 2
2832 done
2833 done
2837 AS=$ac_cv_prog_AS
2838 if test -n "$AS"; then
2839 echo "$as_me:$LINENO: result: $AS" >&5
2840 echo "${ECHO_T}$AS" >&6
2841 else
2842 echo "$as_me:$LINENO: result: no" >&5
2843 echo "${ECHO_T}no" >&6
2847 if test -z "$ac_cv_prog_AS"; then
2848 ac_ct_AS=$AS
2849 # Extract the first word of "as", so it can be a program name with args.
2850 set dummy as; ac_word=$2
2851 echo "$as_me:$LINENO: checking for $ac_word" >&5
2852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2853 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
2854 echo $ECHO_N "(cached) $ECHO_C" >&6
2855 else
2856 if test -n "$ac_ct_AS"; then
2857 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
2858 else
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860 for as_dir in $PATH
2862 IFS=$as_save_IFS
2863 test -z "$as_dir" && as_dir=.
2864 for ac_exec_ext in '' $ac_executable_extensions; do
2865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2866 ac_cv_prog_ac_ct_AS="as"
2867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2868 break 2
2870 done
2871 done
2875 ac_ct_AS=$ac_cv_prog_ac_ct_AS
2876 if test -n "$ac_ct_AS"; then
2877 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
2878 echo "${ECHO_T}$ac_ct_AS" >&6
2879 else
2880 echo "$as_me:$LINENO: result: no" >&5
2881 echo "${ECHO_T}no" >&6
2884 AS=$ac_ct_AS
2885 else
2886 AS="$ac_cv_prog_AS"
2889 if test -n "$ac_tool_prefix"; then
2890 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2891 set dummy ${ac_tool_prefix}ar; ac_word=$2
2892 echo "$as_me:$LINENO: checking for $ac_word" >&5
2893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2894 if test "${ac_cv_prog_AR+set}" = set; then
2895 echo $ECHO_N "(cached) $ECHO_C" >&6
2896 else
2897 if test -n "$AR"; then
2898 ac_cv_prog_AR="$AR" # Let the user override the test.
2899 else
2900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2901 for as_dir in $PATH
2903 IFS=$as_save_IFS
2904 test -z "$as_dir" && as_dir=.
2905 for ac_exec_ext in '' $ac_executable_extensions; do
2906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2907 ac_cv_prog_AR="${ac_tool_prefix}ar"
2908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2909 break 2
2911 done
2912 done
2916 AR=$ac_cv_prog_AR
2917 if test -n "$AR"; then
2918 echo "$as_me:$LINENO: result: $AR" >&5
2919 echo "${ECHO_T}$AR" >&6
2920 else
2921 echo "$as_me:$LINENO: result: no" >&5
2922 echo "${ECHO_T}no" >&6
2926 if test -z "$ac_cv_prog_AR"; then
2927 ac_ct_AR=$AR
2928 # Extract the first word of "ar", so it can be a program name with args.
2929 set dummy ar; ac_word=$2
2930 echo "$as_me:$LINENO: checking for $ac_word" >&5
2931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2932 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2933 echo $ECHO_N "(cached) $ECHO_C" >&6
2934 else
2935 if test -n "$ac_ct_AR"; then
2936 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2937 else
2938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939 for as_dir in $PATH
2941 IFS=$as_save_IFS
2942 test -z "$as_dir" && as_dir=.
2943 for ac_exec_ext in '' $ac_executable_extensions; do
2944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2945 ac_cv_prog_ac_ct_AR="ar"
2946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2947 break 2
2949 done
2950 done
2954 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2955 if test -n "$ac_ct_AR"; then
2956 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2957 echo "${ECHO_T}$ac_ct_AR" >&6
2958 else
2959 echo "$as_me:$LINENO: result: no" >&5
2960 echo "${ECHO_T}no" >&6
2963 AR=$ac_ct_AR
2964 else
2965 AR="$ac_cv_prog_AR"
2968 if test -n "$ac_tool_prefix"; then
2969 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2970 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2971 echo "$as_me:$LINENO: checking for $ac_word" >&5
2972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2973 if test "${ac_cv_prog_RANLIB+set}" = set; then
2974 echo $ECHO_N "(cached) $ECHO_C" >&6
2975 else
2976 if test -n "$RANLIB"; then
2977 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2978 else
2979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980 for as_dir in $PATH
2982 IFS=$as_save_IFS
2983 test -z "$as_dir" && as_dir=.
2984 for ac_exec_ext in '' $ac_executable_extensions; do
2985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2986 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2988 break 2
2990 done
2991 done
2995 RANLIB=$ac_cv_prog_RANLIB
2996 if test -n "$RANLIB"; then
2997 echo "$as_me:$LINENO: result: $RANLIB" >&5
2998 echo "${ECHO_T}$RANLIB" >&6
2999 else
3000 echo "$as_me:$LINENO: result: no" >&5
3001 echo "${ECHO_T}no" >&6
3005 if test -z "$ac_cv_prog_RANLIB"; then
3006 ac_ct_RANLIB=$RANLIB
3007 # Extract the first word of "ranlib", so it can be a program name with args.
3008 set dummy ranlib; ac_word=$2
3009 echo "$as_me:$LINENO: checking for $ac_word" >&5
3010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3011 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3012 echo $ECHO_N "(cached) $ECHO_C" >&6
3013 else
3014 if test -n "$ac_ct_RANLIB"; then
3015 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3016 else
3017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018 for as_dir in $PATH
3020 IFS=$as_save_IFS
3021 test -z "$as_dir" && as_dir=.
3022 for ac_exec_ext in '' $ac_executable_extensions; do
3023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3024 ac_cv_prog_ac_ct_RANLIB="ranlib"
3025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3026 break 2
3028 done
3029 done
3031 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3034 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3035 if test -n "$ac_ct_RANLIB"; then
3036 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3037 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3038 else
3039 echo "$as_me:$LINENO: result: no" >&5
3040 echo "${ECHO_T}no" >&6
3043 RANLIB=$ac_ct_RANLIB
3044 else
3045 RANLIB="$ac_cv_prog_RANLIB"
3048 # Find a good install program. We prefer a C program (faster),
3049 # so one script is as good as another. But avoid the broken or
3050 # incompatible versions:
3051 # SysV /etc/install, /usr/sbin/install
3052 # SunOS /usr/etc/install
3053 # IRIX /sbin/install
3054 # AIX /bin/install
3055 # AmigaOS /C/install, which installs bootblocks on floppy discs
3056 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3057 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3058 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3059 # OS/2's system install, which has a completely different semantic
3060 # ./install, which can be erroneously created by make from ./install.sh.
3061 # Reject install programs that cannot install multiple files.
3062 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3063 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3064 if test -z "$INSTALL"; then
3065 if test "${ac_cv_path_install+set}" = set; then
3066 echo $ECHO_N "(cached) $ECHO_C" >&6
3067 else
3068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3069 for as_dir in $PATH
3071 IFS=$as_save_IFS
3072 test -z "$as_dir" && as_dir=.
3073 # Account for people who put trailing slashes in PATH elements.
3074 case $as_dir/ in
3075 ./ | .// | /cC/* | \
3076 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3077 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3078 /usr/ucb/* ) ;;
3080 # OSF1 and SCO ODT 3.0 have their own names for install.
3081 # Don't use installbsd from OSF since it installs stuff as root
3082 # by default.
3083 for ac_prog in ginstall scoinst install; do
3084 for ac_exec_ext in '' $ac_executable_extensions; do
3085 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3086 if test $ac_prog = install &&
3087 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3088 # AIX install. It has an incompatible calling convention.
3090 elif test $ac_prog = install &&
3091 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3092 # program-specific install script used by HP pwplus--don't use.
3094 else
3095 rm -rf conftest.one conftest.two conftest.dir
3096 echo one > conftest.one
3097 echo two > conftest.two
3098 mkdir conftest.dir
3099 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3100 test -s conftest.one && test -s conftest.two &&
3101 test -s conftest.dir/conftest.one &&
3102 test -s conftest.dir/conftest.two
3103 then
3104 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3105 break 3
3109 done
3110 done
3112 esac
3113 done
3115 rm -rf conftest.one conftest.two conftest.dir
3118 if test "${ac_cv_path_install+set}" = set; then
3119 INSTALL=$ac_cv_path_install
3120 else
3121 # As a last resort, use the slow shell script. Don't cache a
3122 # value for INSTALL within a source directory, because that will
3123 # break other packages using the cache if that directory is
3124 # removed, or if the value is a relative name.
3125 INSTALL=$ac_install_sh
3128 echo "$as_me:$LINENO: result: $INSTALL" >&5
3129 echo "${ECHO_T}$INSTALL" >&6
3131 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3132 # It thinks the first close brace ends the variable substitution.
3133 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3135 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3137 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3140 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3141 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3142 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3143 if test "${enable_maintainer_mode+set}" = set; then
3144 enableval="$enable_maintainer_mode"
3145 USE_MAINTAINER_MODE=$enableval
3146 else
3147 USE_MAINTAINER_MODE=no
3149 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3150 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3153 if test $USE_MAINTAINER_MODE = yes; then
3154 MAINTAINER_MODE_TRUE=
3155 MAINTAINER_MODE_FALSE='#'
3156 else
3157 MAINTAINER_MODE_TRUE='#'
3158 MAINTAINER_MODE_FALSE=
3161 MAINT=$MAINTAINER_MODE_TRUE
3165 # Enable Win32 DLL on MS Windows - FIXME
3166 enable_win32_dll=yes
3168 case $host in
3169 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
3170 if test -n "$ac_tool_prefix"; then
3171 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3172 set dummy ${ac_tool_prefix}as; ac_word=$2
3173 echo "$as_me:$LINENO: checking for $ac_word" >&5
3174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3175 if test "${ac_cv_prog_AS+set}" = set; then
3176 echo $ECHO_N "(cached) $ECHO_C" >&6
3177 else
3178 if test -n "$AS"; then
3179 ac_cv_prog_AS="$AS" # Let the user override the test.
3180 else
3181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182 for as_dir in $PATH
3184 IFS=$as_save_IFS
3185 test -z "$as_dir" && as_dir=.
3186 for ac_exec_ext in '' $ac_executable_extensions; do
3187 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3188 ac_cv_prog_AS="${ac_tool_prefix}as"
3189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3190 break 2
3192 done
3193 done
3197 AS=$ac_cv_prog_AS
3198 if test -n "$AS"; then
3199 echo "$as_me:$LINENO: result: $AS" >&5
3200 echo "${ECHO_T}$AS" >&6
3201 else
3202 echo "$as_me:$LINENO: result: no" >&5
3203 echo "${ECHO_T}no" >&6
3207 if test -z "$ac_cv_prog_AS"; then
3208 ac_ct_AS=$AS
3209 # Extract the first word of "as", so it can be a program name with args.
3210 set dummy as; ac_word=$2
3211 echo "$as_me:$LINENO: checking for $ac_word" >&5
3212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3213 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3214 echo $ECHO_N "(cached) $ECHO_C" >&6
3215 else
3216 if test -n "$ac_ct_AS"; then
3217 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3218 else
3219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3220 for as_dir in $PATH
3222 IFS=$as_save_IFS
3223 test -z "$as_dir" && as_dir=.
3224 for ac_exec_ext in '' $ac_executable_extensions; do
3225 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3226 ac_cv_prog_ac_ct_AS="as"
3227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3228 break 2
3230 done
3231 done
3233 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
3236 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3237 if test -n "$ac_ct_AS"; then
3238 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3239 echo "${ECHO_T}$ac_ct_AS" >&6
3240 else
3241 echo "$as_me:$LINENO: result: no" >&5
3242 echo "${ECHO_T}no" >&6
3245 AS=$ac_ct_AS
3246 else
3247 AS="$ac_cv_prog_AS"
3250 if test -n "$ac_tool_prefix"; then
3251 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3252 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3253 echo "$as_me:$LINENO: checking for $ac_word" >&5
3254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3255 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
3256 echo $ECHO_N "(cached) $ECHO_C" >&6
3257 else
3258 if test -n "$DLLTOOL"; then
3259 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3260 else
3261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262 for as_dir in $PATH
3264 IFS=$as_save_IFS
3265 test -z "$as_dir" && as_dir=.
3266 for ac_exec_ext in '' $ac_executable_extensions; do
3267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3268 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3270 break 2
3272 done
3273 done
3277 DLLTOOL=$ac_cv_prog_DLLTOOL
3278 if test -n "$DLLTOOL"; then
3279 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
3280 echo "${ECHO_T}$DLLTOOL" >&6
3281 else
3282 echo "$as_me:$LINENO: result: no" >&5
3283 echo "${ECHO_T}no" >&6
3287 if test -z "$ac_cv_prog_DLLTOOL"; then
3288 ac_ct_DLLTOOL=$DLLTOOL
3289 # Extract the first word of "dlltool", so it can be a program name with args.
3290 set dummy dlltool; ac_word=$2
3291 echo "$as_me:$LINENO: checking for $ac_word" >&5
3292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3293 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
3294 echo $ECHO_N "(cached) $ECHO_C" >&6
3295 else
3296 if test -n "$ac_ct_DLLTOOL"; then
3297 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3298 else
3299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3300 for as_dir in $PATH
3302 IFS=$as_save_IFS
3303 test -z "$as_dir" && as_dir=.
3304 for ac_exec_ext in '' $ac_executable_extensions; do
3305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3306 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
3307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3308 break 2
3310 done
3311 done
3313 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
3316 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
3317 if test -n "$ac_ct_DLLTOOL"; then
3318 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
3319 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
3320 else
3321 echo "$as_me:$LINENO: result: no" >&5
3322 echo "${ECHO_T}no" >&6
3325 DLLTOOL=$ac_ct_DLLTOOL
3326 else
3327 DLLTOOL="$ac_cv_prog_DLLTOOL"
3330 if test -n "$ac_tool_prefix"; then
3331 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3332 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3333 echo "$as_me:$LINENO: checking for $ac_word" >&5
3334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3335 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
3336 echo $ECHO_N "(cached) $ECHO_C" >&6
3337 else
3338 if test -n "$OBJDUMP"; then
3339 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3340 else
3341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3342 for as_dir in $PATH
3344 IFS=$as_save_IFS
3345 test -z "$as_dir" && as_dir=.
3346 for ac_exec_ext in '' $ac_executable_extensions; do
3347 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3348 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3350 break 2
3352 done
3353 done
3357 OBJDUMP=$ac_cv_prog_OBJDUMP
3358 if test -n "$OBJDUMP"; then
3359 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
3360 echo "${ECHO_T}$OBJDUMP" >&6
3361 else
3362 echo "$as_me:$LINENO: result: no" >&5
3363 echo "${ECHO_T}no" >&6
3367 if test -z "$ac_cv_prog_OBJDUMP"; then
3368 ac_ct_OBJDUMP=$OBJDUMP
3369 # Extract the first word of "objdump", so it can be a program name with args.
3370 set dummy objdump; ac_word=$2
3371 echo "$as_me:$LINENO: checking for $ac_word" >&5
3372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3373 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
3374 echo $ECHO_N "(cached) $ECHO_C" >&6
3375 else
3376 if test -n "$ac_ct_OBJDUMP"; then
3377 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
3378 else
3379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3380 for as_dir in $PATH
3382 IFS=$as_save_IFS
3383 test -z "$as_dir" && as_dir=.
3384 for ac_exec_ext in '' $ac_executable_extensions; do
3385 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3386 ac_cv_prog_ac_ct_OBJDUMP="objdump"
3387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3388 break 2
3390 done
3391 done
3393 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
3396 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
3397 if test -n "$ac_ct_OBJDUMP"; then
3398 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
3399 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
3400 else
3401 echo "$as_me:$LINENO: result: no" >&5
3402 echo "${ECHO_T}no" >&6
3405 OBJDUMP=$ac_ct_OBJDUMP
3406 else
3407 OBJDUMP="$ac_cv_prog_OBJDUMP"
3411 esac
3413 test -z "$AS" && AS=as
3419 test -z "$DLLTOOL" && DLLTOOL=dlltool
3425 test -z "$OBJDUMP" && OBJDUMP=objdump
3434 case `pwd` in
3435 *\ * | *\ *)
3436 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3437 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3438 esac
3442 macro_version='2.2.6'
3443 macro_revision='1.3012'
3457 ltmain="$ac_aux_dir/ltmain.sh"
3459 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3460 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3461 if test "${lt_cv_path_SED+set}" = set; then
3462 echo $ECHO_N "(cached) $ECHO_C" >&6
3463 else
3464 # Loop through the user's path and test for sed and gsed.
3465 # Then use that list of sed's as ones to test for truncation.
3466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3467 for as_dir in $PATH
3469 IFS=$as_save_IFS
3470 test -z "$as_dir" && as_dir=.
3471 for lt_ac_prog in sed gsed; do
3472 for ac_exec_ext in '' $ac_executable_extensions; do
3473 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3474 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3476 done
3477 done
3478 done
3479 IFS=$as_save_IFS
3480 lt_ac_max=0
3481 lt_ac_count=0
3482 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3483 # along with /bin/sed that truncates output.
3484 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3485 test ! -f $lt_ac_sed && continue
3486 cat /dev/null > conftest.in
3487 lt_ac_count=0
3488 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3489 # Check for GNU sed and select it if it is found.
3490 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3491 lt_cv_path_SED=$lt_ac_sed
3492 break
3494 while true; do
3495 cat conftest.in conftest.in >conftest.tmp
3496 mv conftest.tmp conftest.in
3497 cp conftest.in conftest.nl
3498 echo >>conftest.nl
3499 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3500 cmp -s conftest.out conftest.nl || break
3501 # 10000 chars as input seems more than enough
3502 test $lt_ac_count -gt 10 && break
3503 lt_ac_count=`expr $lt_ac_count + 1`
3504 if test $lt_ac_count -gt $lt_ac_max; then
3505 lt_ac_max=$lt_ac_count
3506 lt_cv_path_SED=$lt_ac_sed
3508 done
3509 done
3513 SED=$lt_cv_path_SED
3515 echo "$as_me:$LINENO: result: $SED" >&5
3516 echo "${ECHO_T}$SED" >&6
3518 test -z "$SED" && SED=sed
3519 Xsed="$SED -e 1s/^X//"
3531 echo "$as_me:$LINENO: checking for egrep" >&5
3532 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3533 if test "${ac_cv_prog_egrep+set}" = set; then
3534 echo $ECHO_N "(cached) $ECHO_C" >&6
3535 else
3536 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3537 then ac_cv_prog_egrep='grep -E'
3538 else ac_cv_prog_egrep='egrep'
3541 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3542 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3543 EGREP=$ac_cv_prog_egrep
3546 echo "$as_me:$LINENO: checking for fgrep" >&5
3547 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3548 if test "${ac_cv_prog_fgrep+set}" = set; then
3549 echo $ECHO_N "(cached) $ECHO_C" >&6
3550 else
3551 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3552 then ac_cv_prog_fgrep='grep -F'
3553 else ac_cv_prog_fgrep='fgrep'
3556 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3557 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3558 FGREP=$ac_cv_prog_fgrep
3561 test -z "$GREP" && GREP=grep
3581 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3582 if test "${with_gnu_ld+set}" = set; then
3583 withval="$with_gnu_ld"
3584 test "$withval" = no || with_gnu_ld=yes
3585 else
3586 with_gnu_ld=no
3588 ac_prog=ld
3589 if test "$GCC" = yes; then
3590 # Check if gcc -print-prog-name=ld gives a path.
3591 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3592 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3593 case $host in
3594 *-*-mingw*)
3595 # gcc leaves a trailing carriage return which upsets mingw
3596 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3598 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3599 esac
3600 case $ac_prog in
3601 # Accept absolute paths.
3602 [\\/]* | ?:[\\/]*)
3603 re_direlt='/[^/][^/]*/\.\./'
3604 # Canonicalize the pathname of ld
3605 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3606 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3607 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3608 done
3609 test -z "$LD" && LD="$ac_prog"
3612 # If it fails, then pretend we aren't using GCC.
3613 ac_prog=ld
3616 # If it is relative, then search for the first ld in PATH.
3617 with_gnu_ld=unknown
3619 esac
3620 elif test "$with_gnu_ld" = yes; then
3621 echo "$as_me:$LINENO: checking for GNU ld" >&5
3622 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3623 else
3624 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3625 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3627 if test "${lt_cv_path_LD+set}" = set; then
3628 echo $ECHO_N "(cached) $ECHO_C" >&6
3629 else
3630 if test -z "$LD"; then
3631 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3632 for ac_dir in $PATH; do
3633 IFS="$lt_save_ifs"
3634 test -z "$ac_dir" && ac_dir=.
3635 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3636 lt_cv_path_LD="$ac_dir/$ac_prog"
3637 # Check to see if the program is GNU ld. I'd rather use --version,
3638 # but apparently some variants of GNU ld only accept -v.
3639 # Break only if it was the GNU/non-GNU ld that we prefer.
3640 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3641 *GNU* | *'with BFD'*)
3642 test "$with_gnu_ld" != no && break
3645 test "$with_gnu_ld" != yes && break
3647 esac
3649 done
3650 IFS="$lt_save_ifs"
3651 else
3652 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3656 LD="$lt_cv_path_LD"
3657 if test -n "$LD"; then
3658 echo "$as_me:$LINENO: result: $LD" >&5
3659 echo "${ECHO_T}$LD" >&6
3660 else
3661 echo "$as_me:$LINENO: result: no" >&5
3662 echo "${ECHO_T}no" >&6
3664 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3665 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3666 { (exit 1); exit 1; }; }
3667 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3668 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3669 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3670 echo $ECHO_N "(cached) $ECHO_C" >&6
3671 else
3672 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3673 case `$LD -v 2>&1 </dev/null` in
3674 *GNU* | *'with BFD'*)
3675 lt_cv_prog_gnu_ld=yes
3678 lt_cv_prog_gnu_ld=no
3680 esac
3682 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3683 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3684 with_gnu_ld=$lt_cv_prog_gnu_ld
3694 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3695 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
3696 if test "${lt_cv_path_NM+set}" = set; then
3697 echo $ECHO_N "(cached) $ECHO_C" >&6
3698 else
3699 if test -n "$NM"; then
3700 # Let the user override the test.
3701 lt_cv_path_NM="$NM"
3702 else
3703 lt_nm_to_check="${ac_tool_prefix}nm"
3704 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3705 lt_nm_to_check="$lt_nm_to_check nm"
3707 for lt_tmp_nm in $lt_nm_to_check; do
3708 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3709 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3710 IFS="$lt_save_ifs"
3711 test -z "$ac_dir" && ac_dir=.
3712 tmp_nm="$ac_dir/$lt_tmp_nm"
3713 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3714 # Check to see if the nm accepts a BSD-compat flag.
3715 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3716 # nm: unknown option "B" ignored
3717 # Tru64's nm complains that /dev/null is an invalid object file
3718 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3719 */dev/null* | *'Invalid file or object type'*)
3720 lt_cv_path_NM="$tmp_nm -B"
3721 break
3724 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3725 */dev/null*)
3726 lt_cv_path_NM="$tmp_nm -p"
3727 break
3730 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3731 continue # so that we can try to find one that supports BSD flags
3733 esac
3735 esac
3737 done
3738 IFS="$lt_save_ifs"
3739 done
3740 : ${lt_cv_path_NM=no}
3743 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3744 echo "${ECHO_T}$lt_cv_path_NM" >&6
3745 if test "$lt_cv_path_NM" != "no"; then
3746 NM="$lt_cv_path_NM"
3747 else
3748 # Didn't find any BSD compatible name lister, look for dumpbin.
3749 if test -n "$ac_tool_prefix"; then
3750 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3752 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3753 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3754 echo "$as_me:$LINENO: checking for $ac_word" >&5
3755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3756 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3758 else
3759 if test -n "$DUMPBIN"; then
3760 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3761 else
3762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3763 for as_dir in $PATH
3765 IFS=$as_save_IFS
3766 test -z "$as_dir" && as_dir=.
3767 for ac_exec_ext in '' $ac_executable_extensions; do
3768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3769 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3771 break 2
3773 done
3774 done
3778 DUMPBIN=$ac_cv_prog_DUMPBIN
3779 if test -n "$DUMPBIN"; then
3780 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3781 echo "${ECHO_T}$DUMPBIN" >&6
3782 else
3783 echo "$as_me:$LINENO: result: no" >&5
3784 echo "${ECHO_T}no" >&6
3787 test -n "$DUMPBIN" && break
3788 done
3790 if test -z "$DUMPBIN"; then
3791 ac_ct_DUMPBIN=$DUMPBIN
3792 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3794 # Extract the first word of "$ac_prog", so it can be a program name with args.
3795 set dummy $ac_prog; ac_word=$2
3796 echo "$as_me:$LINENO: checking for $ac_word" >&5
3797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3798 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3799 echo $ECHO_N "(cached) $ECHO_C" >&6
3800 else
3801 if test -n "$ac_ct_DUMPBIN"; then
3802 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3803 else
3804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805 for as_dir in $PATH
3807 IFS=$as_save_IFS
3808 test -z "$as_dir" && as_dir=.
3809 for ac_exec_ext in '' $ac_executable_extensions; do
3810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3811 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3813 break 2
3815 done
3816 done
3820 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3821 if test -n "$ac_ct_DUMPBIN"; then
3822 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3823 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
3824 else
3825 echo "$as_me:$LINENO: result: no" >&5
3826 echo "${ECHO_T}no" >&6
3829 test -n "$ac_ct_DUMPBIN" && break
3830 done
3831 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
3833 DUMPBIN=$ac_ct_DUMPBIN
3837 if test "$DUMPBIN" != ":"; then
3838 NM="$DUMPBIN"
3841 test -z "$NM" && NM=nm
3848 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3849 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
3850 if test "${lt_cv_nm_interface+set}" = set; then
3851 echo $ECHO_N "(cached) $ECHO_C" >&6
3852 else
3853 lt_cv_nm_interface="BSD nm"
3854 echo "int some_variable = 0;" > conftest.$ac_ext
3855 (eval echo "\"\$as_me:3855: $ac_compile\"" >&5)
3856 (eval "$ac_compile" 2>conftest.err)
3857 cat conftest.err >&5
3858 (eval echo "\"\$as_me:3858: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3859 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3860 cat conftest.err >&5
3861 (eval echo "\"\$as_me:3861: output\"" >&5)
3862 cat conftest.out >&5
3863 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3864 lt_cv_nm_interface="MS dumpbin"
3866 rm -f conftest*
3868 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3869 echo "${ECHO_T}$lt_cv_nm_interface" >&6
3871 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3872 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3873 LN_S=$as_ln_s
3874 if test "$LN_S" = "ln -s"; then
3875 echo "$as_me:$LINENO: result: yes" >&5
3876 echo "${ECHO_T}yes" >&6
3877 else
3878 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3879 echo "${ECHO_T}no, using $LN_S" >&6
3882 # find the maximum length of command line arguments
3883 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3884 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3885 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
3887 else
3889 teststring="ABCD"
3891 case $build_os in
3892 msdosdjgpp*)
3893 # On DJGPP, this test can blow up pretty badly due to problems in libc
3894 # (any single argument exceeding 2000 bytes causes a buffer overrun
3895 # during glob expansion). Even if it were fixed, the result of this
3896 # check would be larger than it should be.
3897 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3900 gnu*)
3901 # Under GNU Hurd, this test is not required because there is
3902 # no limit to the length of command line arguments.
3903 # Libtool will interpret -1 as no limit whatsoever
3904 lt_cv_sys_max_cmd_len=-1;
3907 cygwin* | mingw* | cegcc*)
3908 # On Win9x/ME, this test blows up -- it succeeds, but takes
3909 # about 5 minutes as the teststring grows exponentially.
3910 # Worse, since 9x/ME are not pre-emptively multitasking,
3911 # you end up with a "frozen" computer, even though with patience
3912 # the test eventually succeeds (with a max line length of 256k).
3913 # Instead, let's just punt: use the minimum linelength reported by
3914 # all of the supported platforms: 8192 (on NT/2K/XP).
3915 lt_cv_sys_max_cmd_len=8192;
3918 amigaos*)
3919 # On AmigaOS with pdksh, this test takes hours, literally.
3920 # So we just punt and use a minimum line length of 8192.
3921 lt_cv_sys_max_cmd_len=8192;
3924 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3925 # This has been around since 386BSD, at least. Likely further.
3926 if test -x /sbin/sysctl; then
3927 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3928 elif test -x /usr/sbin/sysctl; then
3929 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3930 else
3931 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
3933 # And add a safety zone
3934 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3935 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3938 interix*)
3939 # We know the value 262144 and hardcode it with a safety zone (like BSD)
3940 lt_cv_sys_max_cmd_len=196608
3943 osf*)
3944 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3945 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3946 # nice to cause kernel panics so lets avoid the loop below.
3947 # First set a reasonable default.
3948 lt_cv_sys_max_cmd_len=16384
3950 if test -x /sbin/sysconfig; then
3951 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3952 *1*) lt_cv_sys_max_cmd_len=-1 ;;
3953 esac
3956 sco3.2v5*)
3957 lt_cv_sys_max_cmd_len=102400
3959 sysv5* | sco5v6* | sysv4.2uw2*)
3960 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3961 if test -n "$kargmax"; then
3962 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
3963 else
3964 lt_cv_sys_max_cmd_len=32768
3968 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
3969 if test -n "$lt_cv_sys_max_cmd_len"; then
3970 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3971 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3972 else
3973 # Make teststring a little bigger before we do anything with it.
3974 # a 1K string should be a reasonable start.
3975 for i in 1 2 3 4 5 6 7 8 ; do
3976 teststring=$teststring$teststring
3977 done
3978 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3979 # If test is not a shell built-in, we'll probably end up computing a
3980 # maximum length that is only half of the actual maximum length, but
3981 # we can't tell.
3982 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3983 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3984 test $i != 17 # 1/2 MB should be enough
3986 i=`expr $i + 1`
3987 teststring=$teststring$teststring
3988 done
3989 # Only check the string length outside the loop.
3990 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3991 teststring=
3992 # Add a significant safety factor because C++ compilers can tack on
3993 # massive amounts of additional arguments before passing them to the
3994 # linker. It appears as though 1/2 is a usable value.
3995 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3998 esac
4002 if test -n $lt_cv_sys_max_cmd_len ; then
4003 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4004 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4005 else
4006 echo "$as_me:$LINENO: result: none" >&5
4007 echo "${ECHO_T}none" >&6
4009 max_cmd_len=$lt_cv_sys_max_cmd_len
4016 : ${CP="cp -f"}
4017 : ${MV="mv -f"}
4018 : ${RM="rm -f"}
4020 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4021 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4022 # Try some XSI features
4023 xsi_shell=no
4024 ( _lt_dummy="a/b/c"
4025 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4026 = c,a/b,, \
4027 && eval 'test $(( 1 + 1 )) -eq 2 \
4028 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4029 && xsi_shell=yes
4030 echo "$as_me:$LINENO: result: $xsi_shell" >&5
4031 echo "${ECHO_T}$xsi_shell" >&6
4034 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4035 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4036 lt_shell_append=no
4037 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4038 >/dev/null 2>&1 \
4039 && lt_shell_append=yes
4040 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4041 echo "${ECHO_T}$lt_shell_append" >&6
4044 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4045 lt_unset=unset
4046 else
4047 lt_unset=false
4054 # test EBCDIC or ASCII
4055 case `echo X|tr X '\101'` in
4056 A) # ASCII based system
4057 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4058 lt_SP2NL='tr \040 \012'
4059 lt_NL2SP='tr \015\012 \040\040'
4061 *) # EBCDIC based system
4062 lt_SP2NL='tr \100 \n'
4063 lt_NL2SP='tr \r\n \100\100'
4065 esac
4075 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4076 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4077 if test "${lt_cv_ld_reload_flag+set}" = set; then
4078 echo $ECHO_N "(cached) $ECHO_C" >&6
4079 else
4080 lt_cv_ld_reload_flag='-r'
4082 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4083 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4084 reload_flag=$lt_cv_ld_reload_flag
4085 case $reload_flag in
4086 "" | " "*) ;;
4087 *) reload_flag=" $reload_flag" ;;
4088 esac
4089 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4090 case $host_os in
4091 darwin*)
4092 if test "$GCC" = yes; then
4093 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4094 else
4095 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4098 esac
4108 if test -n "$ac_tool_prefix"; then
4109 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4110 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4111 echo "$as_me:$LINENO: checking for $ac_word" >&5
4112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4113 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4114 echo $ECHO_N "(cached) $ECHO_C" >&6
4115 else
4116 if test -n "$OBJDUMP"; then
4117 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4118 else
4119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4120 for as_dir in $PATH
4122 IFS=$as_save_IFS
4123 test -z "$as_dir" && as_dir=.
4124 for ac_exec_ext in '' $ac_executable_extensions; do
4125 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4126 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4128 break 2
4130 done
4131 done
4135 OBJDUMP=$ac_cv_prog_OBJDUMP
4136 if test -n "$OBJDUMP"; then
4137 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4138 echo "${ECHO_T}$OBJDUMP" >&6
4139 else
4140 echo "$as_me:$LINENO: result: no" >&5
4141 echo "${ECHO_T}no" >&6
4145 if test -z "$ac_cv_prog_OBJDUMP"; then
4146 ac_ct_OBJDUMP=$OBJDUMP
4147 # Extract the first word of "objdump", so it can be a program name with args.
4148 set dummy objdump; ac_word=$2
4149 echo "$as_me:$LINENO: checking for $ac_word" >&5
4150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4151 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4152 echo $ECHO_N "(cached) $ECHO_C" >&6
4153 else
4154 if test -n "$ac_ct_OBJDUMP"; then
4155 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4156 else
4157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4158 for as_dir in $PATH
4160 IFS=$as_save_IFS
4161 test -z "$as_dir" && as_dir=.
4162 for ac_exec_ext in '' $ac_executable_extensions; do
4163 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4164 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4166 break 2
4168 done
4169 done
4171 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4174 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4175 if test -n "$ac_ct_OBJDUMP"; then
4176 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4177 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4178 else
4179 echo "$as_me:$LINENO: result: no" >&5
4180 echo "${ECHO_T}no" >&6
4183 OBJDUMP=$ac_ct_OBJDUMP
4184 else
4185 OBJDUMP="$ac_cv_prog_OBJDUMP"
4188 test -z "$OBJDUMP" && OBJDUMP=objdump
4195 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4196 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4197 if test "${lt_cv_deplibs_check_method+set}" = set; then
4198 echo $ECHO_N "(cached) $ECHO_C" >&6
4199 else
4200 lt_cv_file_magic_cmd='$MAGIC_CMD'
4201 lt_cv_file_magic_test_file=
4202 lt_cv_deplibs_check_method='unknown'
4203 # Need to set the preceding variable on all platforms that support
4204 # interlibrary dependencies.
4205 # 'none' -- dependencies not supported.
4206 # `unknown' -- same as none, but documents that we really don't know.
4207 # 'pass_all' -- all dependencies passed with no checks.
4208 # 'test_compile' -- check by making test program.
4209 # 'file_magic [[regex]]' -- check by looking for files in library path
4210 # which responds to the $file_magic_cmd with a given extended regex.
4211 # If you have `file' or equivalent on your system and you're not sure
4212 # whether `pass_all' will *always* work, you probably want this one.
4214 case $host_os in
4215 aix[4-9]*)
4216 lt_cv_deplibs_check_method=pass_all
4219 beos*)
4220 lt_cv_deplibs_check_method=pass_all
4223 bsdi[45]*)
4224 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4225 lt_cv_file_magic_cmd='/usr/bin/file -L'
4226 lt_cv_file_magic_test_file=/shlib/libc.so
4229 cygwin*)
4230 # func_win32_libid is a shell function defined in ltmain.sh
4231 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4232 lt_cv_file_magic_cmd='func_win32_libid'
4235 mingw* | pw32*)
4236 # Base MSYS/MinGW do not provide the 'file' command needed by
4237 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4238 # unless we find 'file', for example because we are cross-compiling.
4239 if ( file / ) >/dev/null 2>&1; then
4240 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4241 lt_cv_file_magic_cmd='func_win32_libid'
4242 else
4243 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4244 lt_cv_file_magic_cmd='$OBJDUMP -f'
4248 cegcc)
4249 # use the weaker test based on 'objdump'. See mingw*.
4250 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4251 lt_cv_file_magic_cmd='$OBJDUMP -f'
4254 darwin* | rhapsody*)
4255 lt_cv_deplibs_check_method=pass_all
4258 freebsd* | dragonfly*)
4259 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4260 case $host_cpu in
4261 i*86 )
4262 # Not sure whether the presence of OpenBSD here was a mistake.
4263 # Let's accept both of them until this is cleared up.
4264 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4265 lt_cv_file_magic_cmd=/usr/bin/file
4266 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4268 esac
4269 else
4270 lt_cv_deplibs_check_method=pass_all
4274 gnu*)
4275 lt_cv_deplibs_check_method=pass_all
4278 hpux10.20* | hpux11*)
4279 lt_cv_file_magic_cmd=/usr/bin/file
4280 case $host_cpu in
4281 ia64*)
4282 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4283 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4285 hppa*64*)
4286 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4287 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4290 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4291 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4293 esac
4296 interix[3-9]*)
4297 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4298 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4301 irix5* | irix6* | nonstopux*)
4302 case $LD in
4303 *-32|*"-32 ") libmagic=32-bit;;
4304 *-n32|*"-n32 ") libmagic=N32;;
4305 *-64|*"-64 ") libmagic=64-bit;;
4306 *) libmagic=never-match;;
4307 esac
4308 lt_cv_deplibs_check_method=pass_all
4311 # This must be Linux ELF.
4312 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4313 lt_cv_deplibs_check_method=pass_all
4316 netbsd*)
4317 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4318 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4319 else
4320 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4324 newos6*)
4325 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4326 lt_cv_file_magic_cmd=/usr/bin/file
4327 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4330 *nto* | *qnx*)
4331 lt_cv_deplibs_check_method=pass_all
4334 openbsd*)
4335 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4336 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4337 else
4338 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4342 osf3* | osf4* | osf5*)
4343 lt_cv_deplibs_check_method=pass_all
4346 rdos*)
4347 lt_cv_deplibs_check_method=pass_all
4350 solaris*)
4351 lt_cv_deplibs_check_method=pass_all
4354 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4355 lt_cv_deplibs_check_method=pass_all
4358 sysv4 | sysv4.3*)
4359 case $host_vendor in
4360 motorola)
4361 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]'
4362 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4364 ncr)
4365 lt_cv_deplibs_check_method=pass_all
4367 sequent)
4368 lt_cv_file_magic_cmd='/bin/file'
4369 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4371 sni)
4372 lt_cv_file_magic_cmd='/bin/file'
4373 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4374 lt_cv_file_magic_test_file=/lib/libc.so
4376 siemens)
4377 lt_cv_deplibs_check_method=pass_all
4380 lt_cv_deplibs_check_method=pass_all
4382 esac
4385 tpf*)
4386 lt_cv_deplibs_check_method=pass_all
4388 esac
4391 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4392 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4393 file_magic_cmd=$lt_cv_file_magic_cmd
4394 deplibs_check_method=$lt_cv_deplibs_check_method
4395 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4408 if test -n "$ac_tool_prefix"; then
4409 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4410 set dummy ${ac_tool_prefix}ar; ac_word=$2
4411 echo "$as_me:$LINENO: checking for $ac_word" >&5
4412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4413 if test "${ac_cv_prog_AR+set}" = set; then
4414 echo $ECHO_N "(cached) $ECHO_C" >&6
4415 else
4416 if test -n "$AR"; then
4417 ac_cv_prog_AR="$AR" # Let the user override the test.
4418 else
4419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4420 for as_dir in $PATH
4422 IFS=$as_save_IFS
4423 test -z "$as_dir" && as_dir=.
4424 for ac_exec_ext in '' $ac_executable_extensions; do
4425 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4426 ac_cv_prog_AR="${ac_tool_prefix}ar"
4427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4428 break 2
4430 done
4431 done
4435 AR=$ac_cv_prog_AR
4436 if test -n "$AR"; then
4437 echo "$as_me:$LINENO: result: $AR" >&5
4438 echo "${ECHO_T}$AR" >&6
4439 else
4440 echo "$as_me:$LINENO: result: no" >&5
4441 echo "${ECHO_T}no" >&6
4445 if test -z "$ac_cv_prog_AR"; then
4446 ac_ct_AR=$AR
4447 # Extract the first word of "ar", so it can be a program name with args.
4448 set dummy ar; ac_word=$2
4449 echo "$as_me:$LINENO: checking for $ac_word" >&5
4450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4451 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4452 echo $ECHO_N "(cached) $ECHO_C" >&6
4453 else
4454 if test -n "$ac_ct_AR"; then
4455 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4456 else
4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458 for as_dir in $PATH
4460 IFS=$as_save_IFS
4461 test -z "$as_dir" && as_dir=.
4462 for ac_exec_ext in '' $ac_executable_extensions; do
4463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4464 ac_cv_prog_ac_ct_AR="ar"
4465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4466 break 2
4468 done
4469 done
4471 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
4474 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4475 if test -n "$ac_ct_AR"; then
4476 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4477 echo "${ECHO_T}$ac_ct_AR" >&6
4478 else
4479 echo "$as_me:$LINENO: result: no" >&5
4480 echo "${ECHO_T}no" >&6
4483 AR=$ac_ct_AR
4484 else
4485 AR="$ac_cv_prog_AR"
4488 test -z "$AR" && AR=ar
4489 test -z "$AR_FLAGS" && AR_FLAGS=cru
4501 if test -n "$ac_tool_prefix"; then
4502 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4503 set dummy ${ac_tool_prefix}strip; ac_word=$2
4504 echo "$as_me:$LINENO: checking for $ac_word" >&5
4505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4506 if test "${ac_cv_prog_STRIP+set}" = set; then
4507 echo $ECHO_N "(cached) $ECHO_C" >&6
4508 else
4509 if test -n "$STRIP"; then
4510 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4511 else
4512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4513 for as_dir in $PATH
4515 IFS=$as_save_IFS
4516 test -z "$as_dir" && as_dir=.
4517 for ac_exec_ext in '' $ac_executable_extensions; do
4518 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4519 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4521 break 2
4523 done
4524 done
4528 STRIP=$ac_cv_prog_STRIP
4529 if test -n "$STRIP"; then
4530 echo "$as_me:$LINENO: result: $STRIP" >&5
4531 echo "${ECHO_T}$STRIP" >&6
4532 else
4533 echo "$as_me:$LINENO: result: no" >&5
4534 echo "${ECHO_T}no" >&6
4538 if test -z "$ac_cv_prog_STRIP"; then
4539 ac_ct_STRIP=$STRIP
4540 # Extract the first word of "strip", so it can be a program name with args.
4541 set dummy strip; ac_word=$2
4542 echo "$as_me:$LINENO: checking for $ac_word" >&5
4543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4544 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4545 echo $ECHO_N "(cached) $ECHO_C" >&6
4546 else
4547 if test -n "$ac_ct_STRIP"; then
4548 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4549 else
4550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4551 for as_dir in $PATH
4553 IFS=$as_save_IFS
4554 test -z "$as_dir" && as_dir=.
4555 for ac_exec_ext in '' $ac_executable_extensions; do
4556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4557 ac_cv_prog_ac_ct_STRIP="strip"
4558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4559 break 2
4561 done
4562 done
4564 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4567 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4568 if test -n "$ac_ct_STRIP"; then
4569 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4570 echo "${ECHO_T}$ac_ct_STRIP" >&6
4571 else
4572 echo "$as_me:$LINENO: result: no" >&5
4573 echo "${ECHO_T}no" >&6
4576 STRIP=$ac_ct_STRIP
4577 else
4578 STRIP="$ac_cv_prog_STRIP"
4581 test -z "$STRIP" && STRIP=:
4588 if test -n "$ac_tool_prefix"; then
4589 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4590 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4591 echo "$as_me:$LINENO: checking for $ac_word" >&5
4592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4593 if test "${ac_cv_prog_RANLIB+set}" = set; then
4594 echo $ECHO_N "(cached) $ECHO_C" >&6
4595 else
4596 if test -n "$RANLIB"; then
4597 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4598 else
4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600 for as_dir in $PATH
4602 IFS=$as_save_IFS
4603 test -z "$as_dir" && as_dir=.
4604 for ac_exec_ext in '' $ac_executable_extensions; do
4605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4606 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4608 break 2
4610 done
4611 done
4615 RANLIB=$ac_cv_prog_RANLIB
4616 if test -n "$RANLIB"; then
4617 echo "$as_me:$LINENO: result: $RANLIB" >&5
4618 echo "${ECHO_T}$RANLIB" >&6
4619 else
4620 echo "$as_me:$LINENO: result: no" >&5
4621 echo "${ECHO_T}no" >&6
4625 if test -z "$ac_cv_prog_RANLIB"; then
4626 ac_ct_RANLIB=$RANLIB
4627 # Extract the first word of "ranlib", so it can be a program name with args.
4628 set dummy ranlib; ac_word=$2
4629 echo "$as_me:$LINENO: checking for $ac_word" >&5
4630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4631 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4632 echo $ECHO_N "(cached) $ECHO_C" >&6
4633 else
4634 if test -n "$ac_ct_RANLIB"; then
4635 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4636 else
4637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638 for as_dir in $PATH
4640 IFS=$as_save_IFS
4641 test -z "$as_dir" && as_dir=.
4642 for ac_exec_ext in '' $ac_executable_extensions; do
4643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4644 ac_cv_prog_ac_ct_RANLIB="ranlib"
4645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4646 break 2
4648 done
4649 done
4651 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4654 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4655 if test -n "$ac_ct_RANLIB"; then
4656 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4657 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4658 else
4659 echo "$as_me:$LINENO: result: no" >&5
4660 echo "${ECHO_T}no" >&6
4663 RANLIB=$ac_ct_RANLIB
4664 else
4665 RANLIB="$ac_cv_prog_RANLIB"
4668 test -z "$RANLIB" && RANLIB=:
4675 # Determine commands to create old-style static archives.
4676 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4677 old_postinstall_cmds='chmod 644 $oldlib'
4678 old_postuninstall_cmds=
4680 if test -n "$RANLIB"; then
4681 case $host_os in
4682 openbsd*)
4683 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4686 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4688 esac
4689 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4725 # If no C compiler was specified, use CC.
4726 LTCC=${LTCC-"$CC"}
4728 # If no C compiler flags were specified, use CFLAGS.
4729 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4731 # Allow CC to be a program name with arguments.
4732 compiler=$CC
4735 # Check for command to grab the raw symbol name followed by C symbol from nm.
4736 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4737 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4738 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4739 echo $ECHO_N "(cached) $ECHO_C" >&6
4740 else
4742 # These are sane defaults that work on at least a few old systems.
4743 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4745 # Character class describing NM global symbol codes.
4746 symcode='[BCDEGRST]'
4748 # Regexp to match symbols that can be accessed directly from C.
4749 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4751 # Define system-specific variables.
4752 case $host_os in
4753 aix*)
4754 symcode='[BCDT]'
4756 cygwin* | mingw* | pw32* | cegcc*)
4757 symcode='[ABCDGISTW]'
4759 hpux*)
4760 if test "$host_cpu" = ia64; then
4761 symcode='[ABCDEGRST]'
4764 irix* | nonstopux*)
4765 symcode='[BCDEGRST]'
4767 osf*)
4768 symcode='[BCDEGQRST]'
4770 solaris*)
4771 symcode='[BDRT]'
4773 sco3.2v5*)
4774 symcode='[DT]'
4776 sysv4.2uw2*)
4777 symcode='[DT]'
4779 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4780 symcode='[ABDT]'
4782 sysv4)
4783 symcode='[DFNSTU]'
4785 esac
4787 # If we're using GNU nm, then use its standard symbol codes.
4788 case `$NM -V 2>&1` in
4789 *GNU* | *'with BFD'*)
4790 symcode='[ABCDGIRSTW]' ;;
4791 esac
4793 # Transform an extracted symbol line into a proper C declaration.
4794 # Some systems (esp. on ia64) link data and code symbols differently,
4795 # so use this general approach.
4796 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4798 # Transform an extracted symbol line into symbol name and symbol address
4799 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4800 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'"
4802 # Handle CRLF in mingw tool chain
4803 opt_cr=
4804 case $build_os in
4805 mingw*)
4806 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4808 esac
4810 # Try without a prefix underscore, then with it.
4811 for ac_symprfx in "" "_"; do
4813 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4814 symxfrm="\\1 $ac_symprfx\\2 \\2"
4816 # Write the raw and C identifiers.
4817 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4818 # Fake it for dumpbin and say T for any non-static function
4819 # and D for any global variable.
4820 # Also find C++ and __fastcall symbols from MSVC++,
4821 # which start with @ or ?.
4822 lt_cv_sys_global_symbol_pipe="$AWK '"\
4823 " {last_section=section; section=\$ 3};"\
4824 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4825 " \$ 0!~/External *\|/{next};"\
4826 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4827 " {if(hide[section]) next};"\
4828 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4829 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4830 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
4831 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4832 " ' prfx=^$ac_symprfx"
4833 else
4834 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4837 # Check to see that the pipe works correctly.
4838 pipe_works=no
4840 rm -f conftest*
4841 cat > conftest.$ac_ext <<_LT_EOF
4842 #ifdef __cplusplus
4843 extern "C" {
4844 #endif
4845 char nm_test_var;
4846 void nm_test_func(void);
4847 void nm_test_func(void){}
4848 #ifdef __cplusplus
4850 #endif
4851 int main(){nm_test_var='a';nm_test_func();return(0);}
4852 _LT_EOF
4854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4855 (eval $ac_compile) 2>&5
4856 ac_status=$?
4857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858 (exit $ac_status); }; then
4859 # Now try to grab the symbols.
4860 nlist=conftest.nm
4861 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4862 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4863 ac_status=$?
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); } && test -s "$nlist"; then
4866 # Try sorting and uniquifying the output.
4867 if sort "$nlist" | uniq > "$nlist"T; then
4868 mv -f "$nlist"T "$nlist"
4869 else
4870 rm -f "$nlist"T
4873 # Make sure that we snagged all the symbols we need.
4874 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4875 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4876 cat <<_LT_EOF > conftest.$ac_ext
4877 #ifdef __cplusplus
4878 extern "C" {
4879 #endif
4881 _LT_EOF
4882 # Now generate the symbol file.
4883 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4885 cat <<_LT_EOF >> conftest.$ac_ext
4887 /* The mapping between symbol names and symbols. */
4888 const struct {
4889 const char *name;
4890 void *address;
4892 lt__PROGRAM__LTX_preloaded_symbols[] =
4894 { "@PROGRAM@", (void *) 0 },
4895 _LT_EOF
4896 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4897 cat <<\_LT_EOF >> conftest.$ac_ext
4898 {0, (void *) 0}
4901 /* This works around a problem in FreeBSD linker */
4902 #ifdef FREEBSD_WORKAROUND
4903 static const void *lt_preloaded_setup() {
4904 return lt__PROGRAM__LTX_preloaded_symbols;
4906 #endif
4908 #ifdef __cplusplus
4910 #endif
4911 _LT_EOF
4912 # Now try linking the two files.
4913 mv conftest.$ac_objext conftstm.$ac_objext
4914 lt_save_LIBS="$LIBS"
4915 lt_save_CFLAGS="$CFLAGS"
4916 LIBS="conftstm.$ac_objext"
4917 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4919 (eval $ac_link) 2>&5
4920 ac_status=$?
4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4923 pipe_works=yes
4925 LIBS="$lt_save_LIBS"
4926 CFLAGS="$lt_save_CFLAGS"
4927 else
4928 echo "cannot find nm_test_func in $nlist" >&5
4930 else
4931 echo "cannot find nm_test_var in $nlist" >&5
4933 else
4934 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4936 else
4937 echo "$progname: failed program was:" >&5
4938 cat conftest.$ac_ext >&5
4940 rm -rf conftest* conftst*
4942 # Do not use the global_symbol_pipe unless it works.
4943 if test "$pipe_works" = yes; then
4944 break
4945 else
4946 lt_cv_sys_global_symbol_pipe=
4948 done
4952 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4953 lt_cv_sys_global_symbol_to_cdecl=
4955 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4956 echo "$as_me:$LINENO: result: failed" >&5
4957 echo "${ECHO_T}failed" >&6
4958 else
4959 echo "$as_me:$LINENO: result: ok" >&5
4960 echo "${ECHO_T}ok" >&6
4985 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4986 if test "${enable_libtool_lock+set}" = set; then
4987 enableval="$enable_libtool_lock"
4990 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4992 # Some flags need to be propagated to the compiler or linker for good
4993 # libtool support.
4994 case $host in
4995 ia64-*-hpux*)
4996 # Find out which ABI we are using.
4997 echo 'int i;' > conftest.$ac_ext
4998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4999 (eval $ac_compile) 2>&5
5000 ac_status=$?
5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002 (exit $ac_status); }; then
5003 case `/usr/bin/file conftest.$ac_objext` in
5004 *ELF-32*)
5005 HPUX_IA64_MODE="32"
5007 *ELF-64*)
5008 HPUX_IA64_MODE="64"
5010 esac
5012 rm -rf conftest*
5014 *-*-irix6*)
5015 # Find out which ABI we are using.
5016 echo '#line 5016 "configure"' > conftest.$ac_ext
5017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5018 (eval $ac_compile) 2>&5
5019 ac_status=$?
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); }; then
5022 if test "$lt_cv_prog_gnu_ld" = yes; then
5023 case `/usr/bin/file conftest.$ac_objext` in
5024 *32-bit*)
5025 LD="${LD-ld} -melf32bsmip"
5027 *N32*)
5028 LD="${LD-ld} -melf32bmipn32"
5030 *64-bit*)
5031 LD="${LD-ld} -melf64bmip"
5033 esac
5034 else
5035 case `/usr/bin/file conftest.$ac_objext` in
5036 *32-bit*)
5037 LD="${LD-ld} -32"
5039 *N32*)
5040 LD="${LD-ld} -n32"
5042 *64-bit*)
5043 LD="${LD-ld} -64"
5045 esac
5048 rm -rf conftest*
5051 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5052 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5053 # Find out which ABI we are using.
5054 echo 'int i;' > conftest.$ac_ext
5055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5056 (eval $ac_compile) 2>&5
5057 ac_status=$?
5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); }; then
5060 case `/usr/bin/file conftest.o` in
5061 *32-bit*)
5062 case $host in
5063 x86_64-*kfreebsd*-gnu)
5064 LD="${LD-ld} -m elf_i386_fbsd"
5066 x86_64-*linux*)
5067 LD="${LD-ld} -m elf_i386"
5069 ppc64-*linux*|powerpc64-*linux*)
5070 LD="${LD-ld} -m elf32ppclinux"
5072 s390x-*linux*)
5073 LD="${LD-ld} -m elf_s390"
5075 sparc64-*linux*)
5076 LD="${LD-ld} -m elf32_sparc"
5078 esac
5080 *64-bit*)
5081 case $host in
5082 x86_64-*kfreebsd*-gnu)
5083 LD="${LD-ld} -m elf_x86_64_fbsd"
5085 x86_64-*linux*)
5086 LD="${LD-ld} -m elf_x86_64"
5088 ppc*-*linux*|powerpc*-*linux*)
5089 LD="${LD-ld} -m elf64ppc"
5091 s390*-*linux*|s390*-*tpf*)
5092 LD="${LD-ld} -m elf64_s390"
5094 sparc*-*linux*)
5095 LD="${LD-ld} -m elf64_sparc"
5097 esac
5099 esac
5101 rm -rf conftest*
5104 *-*-sco3.2v5*)
5105 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5106 SAVE_CFLAGS="$CFLAGS"
5107 CFLAGS="$CFLAGS -belf"
5108 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5109 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5110 if test "${lt_cv_cc_needs_belf+set}" = set; then
5111 echo $ECHO_N "(cached) $ECHO_C" >&6
5112 else
5113 ac_ext=c
5114 ac_cpp='$CPP $CPPFLAGS'
5115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5119 if test x$gcc_no_link = xyes; then
5120 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5121 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5122 { (exit 1); exit 1; }; }
5124 cat >conftest.$ac_ext <<_ACEOF
5125 /* confdefs.h. */
5126 _ACEOF
5127 cat confdefs.h >>conftest.$ac_ext
5128 cat >>conftest.$ac_ext <<_ACEOF
5129 /* end confdefs.h. */
5132 main ()
5136 return 0;
5138 _ACEOF
5139 rm -f conftest.$ac_objext conftest$ac_exeext
5140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5141 (eval $ac_link) 2>conftest.er1
5142 ac_status=$?
5143 grep -v '^ *+' conftest.er1 >conftest.err
5144 rm -f conftest.er1
5145 cat conftest.err >&5
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); } &&
5148 { ac_try='test -z "$ac_c_werror_flag"
5149 || test ! -s conftest.err'
5150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5151 (eval $ac_try) 2>&5
5152 ac_status=$?
5153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154 (exit $ac_status); }; } &&
5155 { ac_try='test -s conftest$ac_exeext'
5156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5157 (eval $ac_try) 2>&5
5158 ac_status=$?
5159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160 (exit $ac_status); }; }; then
5161 lt_cv_cc_needs_belf=yes
5162 else
5163 echo "$as_me: failed program was:" >&5
5164 sed 's/^/| /' conftest.$ac_ext >&5
5166 lt_cv_cc_needs_belf=no
5168 rm -f conftest.err conftest.$ac_objext \
5169 conftest$ac_exeext conftest.$ac_ext
5170 ac_ext=c
5171 ac_cpp='$CPP $CPPFLAGS'
5172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5177 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5178 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5179 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5180 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5181 CFLAGS="$SAVE_CFLAGS"
5184 sparc*-*solaris*)
5185 # Find out which ABI we are using.
5186 echo 'int i;' > conftest.$ac_ext
5187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5188 (eval $ac_compile) 2>&5
5189 ac_status=$?
5190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191 (exit $ac_status); }; then
5192 case `/usr/bin/file conftest.o` in
5193 *64-bit*)
5194 case $lt_cv_prog_gnu_ld in
5195 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5197 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5198 LD="${LD-ld} -64"
5201 esac
5203 esac
5205 rm -rf conftest*
5207 esac
5209 need_locks="$enable_libtool_lock"
5212 case $host_os in
5213 rhapsody* | darwin*)
5214 if test -n "$ac_tool_prefix"; then
5215 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5216 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5217 echo "$as_me:$LINENO: checking for $ac_word" >&5
5218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5219 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5220 echo $ECHO_N "(cached) $ECHO_C" >&6
5221 else
5222 if test -n "$DSYMUTIL"; then
5223 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5224 else
5225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226 for as_dir in $PATH
5228 IFS=$as_save_IFS
5229 test -z "$as_dir" && as_dir=.
5230 for ac_exec_ext in '' $ac_executable_extensions; do
5231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5232 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5234 break 2
5236 done
5237 done
5241 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5242 if test -n "$DSYMUTIL"; then
5243 echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5244 echo "${ECHO_T}$DSYMUTIL" >&6
5245 else
5246 echo "$as_me:$LINENO: result: no" >&5
5247 echo "${ECHO_T}no" >&6
5251 if test -z "$ac_cv_prog_DSYMUTIL"; then
5252 ac_ct_DSYMUTIL=$DSYMUTIL
5253 # Extract the first word of "dsymutil", so it can be a program name with args.
5254 set dummy dsymutil; ac_word=$2
5255 echo "$as_me:$LINENO: checking for $ac_word" >&5
5256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5257 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5258 echo $ECHO_N "(cached) $ECHO_C" >&6
5259 else
5260 if test -n "$ac_ct_DSYMUTIL"; then
5261 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5262 else
5263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5264 for as_dir in $PATH
5266 IFS=$as_save_IFS
5267 test -z "$as_dir" && as_dir=.
5268 for ac_exec_ext in '' $ac_executable_extensions; do
5269 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5270 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5272 break 2
5274 done
5275 done
5277 test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
5280 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5281 if test -n "$ac_ct_DSYMUTIL"; then
5282 echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5283 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
5284 else
5285 echo "$as_me:$LINENO: result: no" >&5
5286 echo "${ECHO_T}no" >&6
5289 DSYMUTIL=$ac_ct_DSYMUTIL
5290 else
5291 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5294 if test -n "$ac_tool_prefix"; then
5295 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5296 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5297 echo "$as_me:$LINENO: checking for $ac_word" >&5
5298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5299 if test "${ac_cv_prog_NMEDIT+set}" = set; then
5300 echo $ECHO_N "(cached) $ECHO_C" >&6
5301 else
5302 if test -n "$NMEDIT"; then
5303 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5304 else
5305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5306 for as_dir in $PATH
5308 IFS=$as_save_IFS
5309 test -z "$as_dir" && as_dir=.
5310 for ac_exec_ext in '' $ac_executable_extensions; do
5311 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5312 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5314 break 2
5316 done
5317 done
5321 NMEDIT=$ac_cv_prog_NMEDIT
5322 if test -n "$NMEDIT"; then
5323 echo "$as_me:$LINENO: result: $NMEDIT" >&5
5324 echo "${ECHO_T}$NMEDIT" >&6
5325 else
5326 echo "$as_me:$LINENO: result: no" >&5
5327 echo "${ECHO_T}no" >&6
5331 if test -z "$ac_cv_prog_NMEDIT"; then
5332 ac_ct_NMEDIT=$NMEDIT
5333 # Extract the first word of "nmedit", so it can be a program name with args.
5334 set dummy nmedit; ac_word=$2
5335 echo "$as_me:$LINENO: checking for $ac_word" >&5
5336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5337 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5338 echo $ECHO_N "(cached) $ECHO_C" >&6
5339 else
5340 if test -n "$ac_ct_NMEDIT"; then
5341 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5342 else
5343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344 for as_dir in $PATH
5346 IFS=$as_save_IFS
5347 test -z "$as_dir" && as_dir=.
5348 for ac_exec_ext in '' $ac_executable_extensions; do
5349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5350 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5352 break 2
5354 done
5355 done
5357 test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
5360 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5361 if test -n "$ac_ct_NMEDIT"; then
5362 echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5363 echo "${ECHO_T}$ac_ct_NMEDIT" >&6
5364 else
5365 echo "$as_me:$LINENO: result: no" >&5
5366 echo "${ECHO_T}no" >&6
5369 NMEDIT=$ac_ct_NMEDIT
5370 else
5371 NMEDIT="$ac_cv_prog_NMEDIT"
5374 if test -n "$ac_tool_prefix"; then
5375 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5376 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5377 echo "$as_me:$LINENO: checking for $ac_word" >&5
5378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5379 if test "${ac_cv_prog_LIPO+set}" = set; then
5380 echo $ECHO_N "(cached) $ECHO_C" >&6
5381 else
5382 if test -n "$LIPO"; then
5383 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5384 else
5385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5386 for as_dir in $PATH
5388 IFS=$as_save_IFS
5389 test -z "$as_dir" && as_dir=.
5390 for ac_exec_ext in '' $ac_executable_extensions; do
5391 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5392 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5394 break 2
5396 done
5397 done
5401 LIPO=$ac_cv_prog_LIPO
5402 if test -n "$LIPO"; then
5403 echo "$as_me:$LINENO: result: $LIPO" >&5
5404 echo "${ECHO_T}$LIPO" >&6
5405 else
5406 echo "$as_me:$LINENO: result: no" >&5
5407 echo "${ECHO_T}no" >&6
5411 if test -z "$ac_cv_prog_LIPO"; then
5412 ac_ct_LIPO=$LIPO
5413 # Extract the first word of "lipo", so it can be a program name with args.
5414 set dummy lipo; ac_word=$2
5415 echo "$as_me:$LINENO: checking for $ac_word" >&5
5416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5417 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
5418 echo $ECHO_N "(cached) $ECHO_C" >&6
5419 else
5420 if test -n "$ac_ct_LIPO"; then
5421 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5422 else
5423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5424 for as_dir in $PATH
5426 IFS=$as_save_IFS
5427 test -z "$as_dir" && as_dir=.
5428 for ac_exec_ext in '' $ac_executable_extensions; do
5429 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5430 ac_cv_prog_ac_ct_LIPO="lipo"
5431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5432 break 2
5434 done
5435 done
5437 test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
5440 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5441 if test -n "$ac_ct_LIPO"; then
5442 echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
5443 echo "${ECHO_T}$ac_ct_LIPO" >&6
5444 else
5445 echo "$as_me:$LINENO: result: no" >&5
5446 echo "${ECHO_T}no" >&6
5449 LIPO=$ac_ct_LIPO
5450 else
5451 LIPO="$ac_cv_prog_LIPO"
5454 if test -n "$ac_tool_prefix"; then
5455 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5456 set dummy ${ac_tool_prefix}otool; ac_word=$2
5457 echo "$as_me:$LINENO: checking for $ac_word" >&5
5458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5459 if test "${ac_cv_prog_OTOOL+set}" = set; then
5460 echo $ECHO_N "(cached) $ECHO_C" >&6
5461 else
5462 if test -n "$OTOOL"; then
5463 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5464 else
5465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5466 for as_dir in $PATH
5468 IFS=$as_save_IFS
5469 test -z "$as_dir" && as_dir=.
5470 for ac_exec_ext in '' $ac_executable_extensions; do
5471 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5472 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5474 break 2
5476 done
5477 done
5481 OTOOL=$ac_cv_prog_OTOOL
5482 if test -n "$OTOOL"; then
5483 echo "$as_me:$LINENO: result: $OTOOL" >&5
5484 echo "${ECHO_T}$OTOOL" >&6
5485 else
5486 echo "$as_me:$LINENO: result: no" >&5
5487 echo "${ECHO_T}no" >&6
5491 if test -z "$ac_cv_prog_OTOOL"; then
5492 ac_ct_OTOOL=$OTOOL
5493 # Extract the first word of "otool", so it can be a program name with args.
5494 set dummy otool; ac_word=$2
5495 echo "$as_me:$LINENO: checking for $ac_word" >&5
5496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5497 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
5498 echo $ECHO_N "(cached) $ECHO_C" >&6
5499 else
5500 if test -n "$ac_ct_OTOOL"; then
5501 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5502 else
5503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5504 for as_dir in $PATH
5506 IFS=$as_save_IFS
5507 test -z "$as_dir" && as_dir=.
5508 for ac_exec_ext in '' $ac_executable_extensions; do
5509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5510 ac_cv_prog_ac_ct_OTOOL="otool"
5511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5512 break 2
5514 done
5515 done
5517 test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
5520 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5521 if test -n "$ac_ct_OTOOL"; then
5522 echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
5523 echo "${ECHO_T}$ac_ct_OTOOL" >&6
5524 else
5525 echo "$as_me:$LINENO: result: no" >&5
5526 echo "${ECHO_T}no" >&6
5529 OTOOL=$ac_ct_OTOOL
5530 else
5531 OTOOL="$ac_cv_prog_OTOOL"
5534 if test -n "$ac_tool_prefix"; then
5535 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5536 set dummy ${ac_tool_prefix}otool64; ac_word=$2
5537 echo "$as_me:$LINENO: checking for $ac_word" >&5
5538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5539 if test "${ac_cv_prog_OTOOL64+set}" = set; then
5540 echo $ECHO_N "(cached) $ECHO_C" >&6
5541 else
5542 if test -n "$OTOOL64"; then
5543 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5544 else
5545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5546 for as_dir in $PATH
5548 IFS=$as_save_IFS
5549 test -z "$as_dir" && as_dir=.
5550 for ac_exec_ext in '' $ac_executable_extensions; do
5551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5552 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5554 break 2
5556 done
5557 done
5561 OTOOL64=$ac_cv_prog_OTOOL64
5562 if test -n "$OTOOL64"; then
5563 echo "$as_me:$LINENO: result: $OTOOL64" >&5
5564 echo "${ECHO_T}$OTOOL64" >&6
5565 else
5566 echo "$as_me:$LINENO: result: no" >&5
5567 echo "${ECHO_T}no" >&6
5571 if test -z "$ac_cv_prog_OTOOL64"; then
5572 ac_ct_OTOOL64=$OTOOL64
5573 # Extract the first word of "otool64", so it can be a program name with args.
5574 set dummy otool64; ac_word=$2
5575 echo "$as_me:$LINENO: checking for $ac_word" >&5
5576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5577 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
5578 echo $ECHO_N "(cached) $ECHO_C" >&6
5579 else
5580 if test -n "$ac_ct_OTOOL64"; then
5581 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5582 else
5583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5584 for as_dir in $PATH
5586 IFS=$as_save_IFS
5587 test -z "$as_dir" && as_dir=.
5588 for ac_exec_ext in '' $ac_executable_extensions; do
5589 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5590 ac_cv_prog_ac_ct_OTOOL64="otool64"
5591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5592 break 2
5594 done
5595 done
5597 test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
5600 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5601 if test -n "$ac_ct_OTOOL64"; then
5602 echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
5603 echo "${ECHO_T}$ac_ct_OTOOL64" >&6
5604 else
5605 echo "$as_me:$LINENO: result: no" >&5
5606 echo "${ECHO_T}no" >&6
5609 OTOOL64=$ac_ct_OTOOL64
5610 else
5611 OTOOL64="$ac_cv_prog_OTOOL64"
5640 echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
5641 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
5642 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
5643 echo $ECHO_N "(cached) $ECHO_C" >&6
5644 else
5645 lt_cv_apple_cc_single_mod=no
5646 if test -z "${LT_MULTI_MODULE}"; then
5647 # By default we will add the -single_module flag. You can override
5648 # by either setting the environment variable LT_MULTI_MODULE
5649 # non-empty at configure time, or by adding -multi_module to the
5650 # link flags.
5651 rm -rf libconftest.dylib*
5652 echo "int foo(void){return 1;}" > conftest.c
5653 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5654 -dynamiclib -Wl,-single_module conftest.c" >&5
5655 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5656 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5657 _lt_result=$?
5658 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5659 lt_cv_apple_cc_single_mod=yes
5660 else
5661 cat conftest.err >&5
5663 rm -rf libconftest.dylib*
5664 rm -f conftest.*
5667 echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
5668 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
5669 echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
5670 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
5671 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
5672 echo $ECHO_N "(cached) $ECHO_C" >&6
5673 else
5674 lt_cv_ld_exported_symbols_list=no
5675 save_LDFLAGS=$LDFLAGS
5676 echo "_main" > conftest.sym
5677 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5678 if test x$gcc_no_link = xyes; then
5679 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5680 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5681 { (exit 1); exit 1; }; }
5683 cat >conftest.$ac_ext <<_ACEOF
5684 /* confdefs.h. */
5685 _ACEOF
5686 cat confdefs.h >>conftest.$ac_ext
5687 cat >>conftest.$ac_ext <<_ACEOF
5688 /* end confdefs.h. */
5691 main ()
5695 return 0;
5697 _ACEOF
5698 rm -f conftest.$ac_objext conftest$ac_exeext
5699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5700 (eval $ac_link) 2>conftest.er1
5701 ac_status=$?
5702 grep -v '^ *+' conftest.er1 >conftest.err
5703 rm -f conftest.er1
5704 cat conftest.err >&5
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); } &&
5707 { ac_try='test -z "$ac_c_werror_flag"
5708 || test ! -s conftest.err'
5709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5710 (eval $ac_try) 2>&5
5711 ac_status=$?
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); }; } &&
5714 { ac_try='test -s conftest$ac_exeext'
5715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5716 (eval $ac_try) 2>&5
5717 ac_status=$?
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); }; }; then
5720 lt_cv_ld_exported_symbols_list=yes
5721 else
5722 echo "$as_me: failed program was:" >&5
5723 sed 's/^/| /' conftest.$ac_ext >&5
5725 lt_cv_ld_exported_symbols_list=no
5727 rm -f conftest.err conftest.$ac_objext \
5728 conftest$ac_exeext conftest.$ac_ext
5729 LDFLAGS="$save_LDFLAGS"
5732 echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
5733 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
5734 case $host_os in
5735 rhapsody* | darwin1.[012])
5736 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5737 darwin1.*)
5738 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5739 darwin*) # darwin 5.x on
5740 # if running on 10.5 or later, the deployment target defaults
5741 # to the OS version, if on x86, and 10.4, the deployment
5742 # target defaults to 10.4. Don't you love it?
5743 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5744 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5745 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5746 10.[012]*)
5747 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5748 10.*)
5749 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5750 esac
5752 esac
5753 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5754 _lt_dar_single_mod='$single_module'
5756 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5757 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5758 else
5759 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5761 if test "$DSYMUTIL" != ":"; then
5762 _lt_dsymutil='~$DSYMUTIL $lib || :'
5763 else
5764 _lt_dsymutil=
5767 esac
5769 ac_ext=c
5770 ac_cpp='$CPP $CPPFLAGS'
5771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5774 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5775 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5776 # On Suns, sometimes $CPP names a directory.
5777 if test -n "$CPP" && test -d "$CPP"; then
5778 CPP=
5780 if test -z "$CPP"; then
5781 if test "${ac_cv_prog_CPP+set}" = set; then
5782 echo $ECHO_N "(cached) $ECHO_C" >&6
5783 else
5784 # Double quotes because CPP needs to be expanded
5785 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5787 ac_preproc_ok=false
5788 for ac_c_preproc_warn_flag in '' yes
5790 # Use a header file that comes with gcc, so configuring glibc
5791 # with a fresh cross-compiler works.
5792 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5793 # <limits.h> exists even on freestanding compilers.
5794 # On the NeXT, cc -E runs the code through the compiler's parser,
5795 # not just through cpp. "Syntax error" is here to catch this case.
5796 cat >conftest.$ac_ext <<_ACEOF
5797 /* confdefs.h. */
5798 _ACEOF
5799 cat confdefs.h >>conftest.$ac_ext
5800 cat >>conftest.$ac_ext <<_ACEOF
5801 /* end confdefs.h. */
5802 #ifdef __STDC__
5803 # include <limits.h>
5804 #else
5805 # include <assert.h>
5806 #endif
5807 Syntax error
5808 _ACEOF
5809 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5810 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5811 ac_status=$?
5812 grep -v '^ *+' conftest.er1 >conftest.err
5813 rm -f conftest.er1
5814 cat conftest.err >&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); } >/dev/null; then
5817 if test -s conftest.err; then
5818 ac_cpp_err=$ac_c_preproc_warn_flag
5819 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5820 else
5821 ac_cpp_err=
5823 else
5824 ac_cpp_err=yes
5826 if test -z "$ac_cpp_err"; then
5828 else
5829 echo "$as_me: failed program was:" >&5
5830 sed 's/^/| /' conftest.$ac_ext >&5
5832 # Broken: fails on valid input.
5833 continue
5835 rm -f conftest.err conftest.$ac_ext
5837 # OK, works on sane cases. Now check whether non-existent headers
5838 # can be detected and how.
5839 cat >conftest.$ac_ext <<_ACEOF
5840 /* confdefs.h. */
5841 _ACEOF
5842 cat confdefs.h >>conftest.$ac_ext
5843 cat >>conftest.$ac_ext <<_ACEOF
5844 /* end confdefs.h. */
5845 #include <ac_nonexistent.h>
5846 _ACEOF
5847 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5848 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5849 ac_status=$?
5850 grep -v '^ *+' conftest.er1 >conftest.err
5851 rm -f conftest.er1
5852 cat conftest.err >&5
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); } >/dev/null; then
5855 if test -s conftest.err; then
5856 ac_cpp_err=$ac_c_preproc_warn_flag
5857 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5858 else
5859 ac_cpp_err=
5861 else
5862 ac_cpp_err=yes
5864 if test -z "$ac_cpp_err"; then
5865 # Broken: success on invalid input.
5866 continue
5867 else
5868 echo "$as_me: failed program was:" >&5
5869 sed 's/^/| /' conftest.$ac_ext >&5
5871 # Passes both tests.
5872 ac_preproc_ok=:
5873 break
5875 rm -f conftest.err conftest.$ac_ext
5877 done
5878 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5879 rm -f conftest.err conftest.$ac_ext
5880 if $ac_preproc_ok; then
5881 break
5884 done
5885 ac_cv_prog_CPP=$CPP
5888 CPP=$ac_cv_prog_CPP
5889 else
5890 ac_cv_prog_CPP=$CPP
5892 echo "$as_me:$LINENO: result: $CPP" >&5
5893 echo "${ECHO_T}$CPP" >&6
5894 ac_preproc_ok=false
5895 for ac_c_preproc_warn_flag in '' yes
5897 # Use a header file that comes with gcc, so configuring glibc
5898 # with a fresh cross-compiler works.
5899 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5900 # <limits.h> exists even on freestanding compilers.
5901 # On the NeXT, cc -E runs the code through the compiler's parser,
5902 # not just through cpp. "Syntax error" is here to catch this case.
5903 cat >conftest.$ac_ext <<_ACEOF
5904 /* confdefs.h. */
5905 _ACEOF
5906 cat confdefs.h >>conftest.$ac_ext
5907 cat >>conftest.$ac_ext <<_ACEOF
5908 /* end confdefs.h. */
5909 #ifdef __STDC__
5910 # include <limits.h>
5911 #else
5912 # include <assert.h>
5913 #endif
5914 Syntax error
5915 _ACEOF
5916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5917 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5918 ac_status=$?
5919 grep -v '^ *+' conftest.er1 >conftest.err
5920 rm -f conftest.er1
5921 cat conftest.err >&5
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 (exit $ac_status); } >/dev/null; then
5924 if test -s conftest.err; then
5925 ac_cpp_err=$ac_c_preproc_warn_flag
5926 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5927 else
5928 ac_cpp_err=
5930 else
5931 ac_cpp_err=yes
5933 if test -z "$ac_cpp_err"; then
5935 else
5936 echo "$as_me: failed program was:" >&5
5937 sed 's/^/| /' conftest.$ac_ext >&5
5939 # Broken: fails on valid input.
5940 continue
5942 rm -f conftest.err conftest.$ac_ext
5944 # OK, works on sane cases. Now check whether non-existent headers
5945 # can be detected and how.
5946 cat >conftest.$ac_ext <<_ACEOF
5947 /* confdefs.h. */
5948 _ACEOF
5949 cat confdefs.h >>conftest.$ac_ext
5950 cat >>conftest.$ac_ext <<_ACEOF
5951 /* end confdefs.h. */
5952 #include <ac_nonexistent.h>
5953 _ACEOF
5954 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5955 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5956 ac_status=$?
5957 grep -v '^ *+' conftest.er1 >conftest.err
5958 rm -f conftest.er1
5959 cat conftest.err >&5
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); } >/dev/null; then
5962 if test -s conftest.err; then
5963 ac_cpp_err=$ac_c_preproc_warn_flag
5964 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5965 else
5966 ac_cpp_err=
5968 else
5969 ac_cpp_err=yes
5971 if test -z "$ac_cpp_err"; then
5972 # Broken: success on invalid input.
5973 continue
5974 else
5975 echo "$as_me: failed program was:" >&5
5976 sed 's/^/| /' conftest.$ac_ext >&5
5978 # Passes both tests.
5979 ac_preproc_ok=:
5980 break
5982 rm -f conftest.err conftest.$ac_ext
5984 done
5985 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5986 rm -f conftest.err conftest.$ac_ext
5987 if $ac_preproc_ok; then
5989 else
5990 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5991 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5992 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5993 See \`config.log' for more details." >&5
5994 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5995 See \`config.log' for more details." >&2;}
5996 { (exit 1); exit 1; }; }; }
5999 ac_ext=c
6000 ac_cpp='$CPP $CPPFLAGS'
6001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6006 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6007 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6008 if test "${ac_cv_header_stdc+set}" = set; then
6009 echo $ECHO_N "(cached) $ECHO_C" >&6
6010 else
6011 cat >conftest.$ac_ext <<_ACEOF
6012 /* confdefs.h. */
6013 _ACEOF
6014 cat confdefs.h >>conftest.$ac_ext
6015 cat >>conftest.$ac_ext <<_ACEOF
6016 /* end confdefs.h. */
6017 #include <stdlib.h>
6018 #include <stdarg.h>
6019 #include <string.h>
6020 #include <float.h>
6023 main ()
6027 return 0;
6029 _ACEOF
6030 rm -f conftest.$ac_objext
6031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6032 (eval $ac_compile) 2>conftest.er1
6033 ac_status=$?
6034 grep -v '^ *+' conftest.er1 >conftest.err
6035 rm -f conftest.er1
6036 cat conftest.err >&5
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); } &&
6039 { ac_try='test -z "$ac_c_werror_flag"
6040 || test ! -s conftest.err'
6041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6042 (eval $ac_try) 2>&5
6043 ac_status=$?
6044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045 (exit $ac_status); }; } &&
6046 { ac_try='test -s conftest.$ac_objext'
6047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6048 (eval $ac_try) 2>&5
6049 ac_status=$?
6050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); }; }; then
6052 ac_cv_header_stdc=yes
6053 else
6054 echo "$as_me: failed program was:" >&5
6055 sed 's/^/| /' conftest.$ac_ext >&5
6057 ac_cv_header_stdc=no
6059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6061 if test $ac_cv_header_stdc = yes; then
6062 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6063 cat >conftest.$ac_ext <<_ACEOF
6064 /* confdefs.h. */
6065 _ACEOF
6066 cat confdefs.h >>conftest.$ac_ext
6067 cat >>conftest.$ac_ext <<_ACEOF
6068 /* end confdefs.h. */
6069 #include <string.h>
6071 _ACEOF
6072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6073 $EGREP "memchr" >/dev/null 2>&1; then
6075 else
6076 ac_cv_header_stdc=no
6078 rm -f conftest*
6082 if test $ac_cv_header_stdc = yes; then
6083 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6084 cat >conftest.$ac_ext <<_ACEOF
6085 /* confdefs.h. */
6086 _ACEOF
6087 cat confdefs.h >>conftest.$ac_ext
6088 cat >>conftest.$ac_ext <<_ACEOF
6089 /* end confdefs.h. */
6090 #include <stdlib.h>
6092 _ACEOF
6093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6094 $EGREP "free" >/dev/null 2>&1; then
6096 else
6097 ac_cv_header_stdc=no
6099 rm -f conftest*
6103 if test $ac_cv_header_stdc = yes; then
6104 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6105 if test "$cross_compiling" = yes; then
6107 else
6108 cat >conftest.$ac_ext <<_ACEOF
6109 /* confdefs.h. */
6110 _ACEOF
6111 cat confdefs.h >>conftest.$ac_ext
6112 cat >>conftest.$ac_ext <<_ACEOF
6113 /* end confdefs.h. */
6114 #include <ctype.h>
6115 #if ((' ' & 0x0FF) == 0x020)
6116 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6117 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6118 #else
6119 # define ISLOWER(c) \
6120 (('a' <= (c) && (c) <= 'i') \
6121 || ('j' <= (c) && (c) <= 'r') \
6122 || ('s' <= (c) && (c) <= 'z'))
6123 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6124 #endif
6126 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6128 main ()
6130 int i;
6131 for (i = 0; i < 256; i++)
6132 if (XOR (islower (i), ISLOWER (i))
6133 || toupper (i) != TOUPPER (i))
6134 exit(2);
6135 exit (0);
6137 _ACEOF
6138 rm -f conftest$ac_exeext
6139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6140 (eval $ac_link) 2>&5
6141 ac_status=$?
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6145 (eval $ac_try) 2>&5
6146 ac_status=$?
6147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148 (exit $ac_status); }; }; then
6150 else
6151 echo "$as_me: program exited with status $ac_status" >&5
6152 echo "$as_me: failed program was:" >&5
6153 sed 's/^/| /' conftest.$ac_ext >&5
6155 ( exit $ac_status )
6156 ac_cv_header_stdc=no
6158 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6162 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6163 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6164 if test $ac_cv_header_stdc = yes; then
6166 cat >>confdefs.h <<\_ACEOF
6167 #define STDC_HEADERS 1
6168 _ACEOF
6172 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6182 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6183 inttypes.h stdint.h unistd.h
6185 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6186 echo "$as_me:$LINENO: checking for $ac_header" >&5
6187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6189 echo $ECHO_N "(cached) $ECHO_C" >&6
6190 else
6191 cat >conftest.$ac_ext <<_ACEOF
6192 /* confdefs.h. */
6193 _ACEOF
6194 cat confdefs.h >>conftest.$ac_ext
6195 cat >>conftest.$ac_ext <<_ACEOF
6196 /* end confdefs.h. */
6197 $ac_includes_default
6199 #include <$ac_header>
6200 _ACEOF
6201 rm -f conftest.$ac_objext
6202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6203 (eval $ac_compile) 2>conftest.er1
6204 ac_status=$?
6205 grep -v '^ *+' conftest.er1 >conftest.err
6206 rm -f conftest.er1
6207 cat conftest.err >&5
6208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209 (exit $ac_status); } &&
6210 { ac_try='test -z "$ac_c_werror_flag"
6211 || test ! -s conftest.err'
6212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6213 (eval $ac_try) 2>&5
6214 ac_status=$?
6215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); }; } &&
6217 { ac_try='test -s conftest.$ac_objext'
6218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6219 (eval $ac_try) 2>&5
6220 ac_status=$?
6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); }; }; then
6223 eval "$as_ac_Header=yes"
6224 else
6225 echo "$as_me: failed program was:" >&5
6226 sed 's/^/| /' conftest.$ac_ext >&5
6228 eval "$as_ac_Header=no"
6230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6232 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6233 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6234 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6235 cat >>confdefs.h <<_ACEOF
6236 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6237 _ACEOF
6241 done
6245 for ac_header in dlfcn.h
6247 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6248 echo "$as_me:$LINENO: checking for $ac_header" >&5
6249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6251 echo $ECHO_N "(cached) $ECHO_C" >&6
6252 else
6253 cat >conftest.$ac_ext <<_ACEOF
6254 /* confdefs.h. */
6255 _ACEOF
6256 cat confdefs.h >>conftest.$ac_ext
6257 cat >>conftest.$ac_ext <<_ACEOF
6258 /* end confdefs.h. */
6259 $ac_includes_default
6261 #include <$ac_header>
6262 _ACEOF
6263 rm -f conftest.$ac_objext
6264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6265 (eval $ac_compile) 2>conftest.er1
6266 ac_status=$?
6267 grep -v '^ *+' conftest.er1 >conftest.err
6268 rm -f conftest.er1
6269 cat conftest.err >&5
6270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271 (exit $ac_status); } &&
6272 { ac_try='test -z "$ac_c_werror_flag"
6273 || test ! -s conftest.err'
6274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6275 (eval $ac_try) 2>&5
6276 ac_status=$?
6277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278 (exit $ac_status); }; } &&
6279 { ac_try='test -s conftest.$ac_objext'
6280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6281 (eval $ac_try) 2>&5
6282 ac_status=$?
6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); }; }; then
6285 eval "$as_ac_Header=yes"
6286 else
6287 echo "$as_me: failed program was:" >&5
6288 sed 's/^/| /' conftest.$ac_ext >&5
6290 eval "$as_ac_Header=no"
6292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6294 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6295 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6296 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6297 cat >>confdefs.h <<_ACEOF
6298 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6299 _ACEOF
6303 done
6307 # Set options
6311 enable_dlopen=no
6315 # Check whether --enable-shared or --disable-shared was given.
6316 if test "${enable_shared+set}" = set; then
6317 enableval="$enable_shared"
6318 p=${PACKAGE-default}
6319 case $enableval in
6320 yes) enable_shared=yes ;;
6321 no) enable_shared=no ;;
6323 enable_shared=no
6324 # Look at the argument we got. We use all the common list separators.
6325 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6326 for pkg in $enableval; do
6327 IFS="$lt_save_ifs"
6328 if test "X$pkg" = "X$p"; then
6329 enable_shared=yes
6331 done
6332 IFS="$lt_save_ifs"
6334 esac
6335 else
6336 enable_shared=yes
6346 # Check whether --enable-static or --disable-static was given.
6347 if test "${enable_static+set}" = set; then
6348 enableval="$enable_static"
6349 p=${PACKAGE-default}
6350 case $enableval in
6351 yes) enable_static=yes ;;
6352 no) enable_static=no ;;
6354 enable_static=no
6355 # Look at the argument we got. We use all the common list separators.
6356 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6357 for pkg in $enableval; do
6358 IFS="$lt_save_ifs"
6359 if test "X$pkg" = "X$p"; then
6360 enable_static=yes
6362 done
6363 IFS="$lt_save_ifs"
6365 esac
6366 else
6367 enable_static=yes
6378 # Check whether --with-pic or --without-pic was given.
6379 if test "${with_pic+set}" = set; then
6380 withval="$with_pic"
6381 pic_mode="$withval"
6382 else
6383 pic_mode=default
6386 test -z "$pic_mode" && pic_mode=default
6394 # Check whether --enable-fast-install or --disable-fast-install was given.
6395 if test "${enable_fast_install+set}" = set; then
6396 enableval="$enable_fast_install"
6397 p=${PACKAGE-default}
6398 case $enableval in
6399 yes) enable_fast_install=yes ;;
6400 no) enable_fast_install=no ;;
6402 enable_fast_install=no
6403 # Look at the argument we got. We use all the common list separators.
6404 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6405 for pkg in $enableval; do
6406 IFS="$lt_save_ifs"
6407 if test "X$pkg" = "X$p"; then
6408 enable_fast_install=yes
6410 done
6411 IFS="$lt_save_ifs"
6413 esac
6414 else
6415 enable_fast_install=yes
6427 # This can be used to rebuild libtool when needed
6428 LIBTOOL_DEPS="$ltmain"
6430 # Always use our own libtool.
6431 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6457 test -z "$LN_S" && LN_S="ln -s"
6472 if test -n "${ZSH_VERSION+set}" ; then
6473 setopt NO_GLOB_SUBST
6476 echo "$as_me:$LINENO: checking for objdir" >&5
6477 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6478 if test "${lt_cv_objdir+set}" = set; then
6479 echo $ECHO_N "(cached) $ECHO_C" >&6
6480 else
6481 rm -f .libs 2>/dev/null
6482 mkdir .libs 2>/dev/null
6483 if test -d .libs; then
6484 lt_cv_objdir=.libs
6485 else
6486 # MS-DOS does not allow filenames that begin with a dot.
6487 lt_cv_objdir=_libs
6489 rmdir .libs 2>/dev/null
6491 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6492 echo "${ECHO_T}$lt_cv_objdir" >&6
6493 objdir=$lt_cv_objdir
6499 cat >>confdefs.h <<_ACEOF
6500 #define LT_OBJDIR "$lt_cv_objdir/"
6501 _ACEOF
6519 case $host_os in
6520 aix3*)
6521 # AIX sometimes has problems with the GCC collect2 program. For some
6522 # reason, if we set the COLLECT_NAMES environment variable, the problems
6523 # vanish in a puff of smoke.
6524 if test "X${COLLECT_NAMES+set}" != Xset; then
6525 COLLECT_NAMES=
6526 export COLLECT_NAMES
6529 esac
6531 # Sed substitution that helps us do robust quoting. It backslashifies
6532 # metacharacters that are still active within double-quoted strings.
6533 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6535 # Same as above, but do not quote variable references.
6536 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6538 # Sed substitution to delay expansion of an escaped shell variable in a
6539 # double_quote_subst'ed string.
6540 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6542 # Sed substitution to delay expansion of an escaped single quote.
6543 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6545 # Sed substitution to avoid accidental globbing in evaled expressions
6546 no_glob_subst='s/\*/\\\*/g'
6548 # Global variables:
6549 ofile=libtool
6550 can_build_shared=yes
6552 # All known linkers require a `.a' archive for static linking (except MSVC,
6553 # which needs '.lib').
6554 libext=a
6556 with_gnu_ld="$lt_cv_prog_gnu_ld"
6558 old_CC="$CC"
6559 old_CFLAGS="$CFLAGS"
6561 # Set sane defaults for various variables
6562 test -z "$CC" && CC=cc
6563 test -z "$LTCC" && LTCC=$CC
6564 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6565 test -z "$LD" && LD=ld
6566 test -z "$ac_objext" && ac_objext=o
6568 for cc_temp in $compiler""; do
6569 case $cc_temp in
6570 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6571 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6572 \-*) ;;
6573 *) break;;
6574 esac
6575 done
6576 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6579 # Only perform the check for file, if the check method requires it
6580 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6581 case $deplibs_check_method in
6582 file_magic*)
6583 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6584 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6585 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6586 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6587 echo $ECHO_N "(cached) $ECHO_C" >&6
6588 else
6589 case $MAGIC_CMD in
6590 [\\/*] | ?:[\\/]*)
6591 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6594 lt_save_MAGIC_CMD="$MAGIC_CMD"
6595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6596 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6597 for ac_dir in $ac_dummy; do
6598 IFS="$lt_save_ifs"
6599 test -z "$ac_dir" && ac_dir=.
6600 if test -f $ac_dir/${ac_tool_prefix}file; then
6601 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6602 if test -n "$file_magic_test_file"; then
6603 case $deplibs_check_method in
6604 "file_magic "*)
6605 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6606 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6607 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6608 $EGREP "$file_magic_regex" > /dev/null; then
6610 else
6611 cat <<_LT_EOF 1>&2
6613 *** Warning: the command libtool uses to detect shared libraries,
6614 *** $file_magic_cmd, produces output that libtool cannot recognize.
6615 *** The result is that libtool may fail to recognize shared libraries
6616 *** as such. This will affect the creation of libtool libraries that
6617 *** depend on shared libraries, but programs linked with such libtool
6618 *** libraries will work regardless of this problem. Nevertheless, you
6619 *** may want to report the problem to your system manager and/or to
6620 *** bug-libtool@gnu.org
6622 _LT_EOF
6623 fi ;;
6624 esac
6626 break
6628 done
6629 IFS="$lt_save_ifs"
6630 MAGIC_CMD="$lt_save_MAGIC_CMD"
6632 esac
6635 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6636 if test -n "$MAGIC_CMD"; then
6637 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6638 echo "${ECHO_T}$MAGIC_CMD" >&6
6639 else
6640 echo "$as_me:$LINENO: result: no" >&5
6641 echo "${ECHO_T}no" >&6
6648 if test -z "$lt_cv_path_MAGIC_CMD"; then
6649 if test -n "$ac_tool_prefix"; then
6650 echo "$as_me:$LINENO: checking for file" >&5
6651 echo $ECHO_N "checking for file... $ECHO_C" >&6
6652 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6653 echo $ECHO_N "(cached) $ECHO_C" >&6
6654 else
6655 case $MAGIC_CMD in
6656 [\\/*] | ?:[\\/]*)
6657 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6660 lt_save_MAGIC_CMD="$MAGIC_CMD"
6661 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6662 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6663 for ac_dir in $ac_dummy; do
6664 IFS="$lt_save_ifs"
6665 test -z "$ac_dir" && ac_dir=.
6666 if test -f $ac_dir/file; then
6667 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6668 if test -n "$file_magic_test_file"; then
6669 case $deplibs_check_method in
6670 "file_magic "*)
6671 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6672 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6673 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6674 $EGREP "$file_magic_regex" > /dev/null; then
6676 else
6677 cat <<_LT_EOF 1>&2
6679 *** Warning: the command libtool uses to detect shared libraries,
6680 *** $file_magic_cmd, produces output that libtool cannot recognize.
6681 *** The result is that libtool may fail to recognize shared libraries
6682 *** as such. This will affect the creation of libtool libraries that
6683 *** depend on shared libraries, but programs linked with such libtool
6684 *** libraries will work regardless of this problem. Nevertheless, you
6685 *** may want to report the problem to your system manager and/or to
6686 *** bug-libtool@gnu.org
6688 _LT_EOF
6689 fi ;;
6690 esac
6692 break
6694 done
6695 IFS="$lt_save_ifs"
6696 MAGIC_CMD="$lt_save_MAGIC_CMD"
6698 esac
6701 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6702 if test -n "$MAGIC_CMD"; then
6703 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6704 echo "${ECHO_T}$MAGIC_CMD" >&6
6705 else
6706 echo "$as_me:$LINENO: result: no" >&5
6707 echo "${ECHO_T}no" >&6
6711 else
6712 MAGIC_CMD=:
6718 esac
6720 # Use C for the default configuration in the libtool script
6722 lt_save_CC="$CC"
6723 ac_ext=c
6724 ac_cpp='$CPP $CPPFLAGS'
6725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6730 # Source file extension for C test sources.
6731 ac_ext=c
6733 # Object file extension for compiled C test sources.
6734 objext=o
6735 objext=$objext
6737 # Code to be used in simple compile tests
6738 lt_simple_compile_test_code="int some_variable = 0;"
6740 # Code to be used in simple link tests
6741 lt_simple_link_test_code='int main(){return(0);}'
6749 # If no C compiler was specified, use CC.
6750 LTCC=${LTCC-"$CC"}
6752 # If no C compiler flags were specified, use CFLAGS.
6753 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6755 # Allow CC to be a program name with arguments.
6756 compiler=$CC
6758 # Save the default compiler, since it gets overwritten when the other
6759 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6760 compiler_DEFAULT=$CC
6762 # save warnings/boilerplate of simple test code
6763 ac_outfile=conftest.$ac_objext
6764 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6765 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6766 _lt_compiler_boilerplate=`cat conftest.err`
6767 $RM conftest*
6769 ac_outfile=conftest.$ac_objext
6770 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6771 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6772 _lt_linker_boilerplate=`cat conftest.err`
6773 $RM -r conftest*
6776 ## CAVEAT EMPTOR:
6777 ## There is no encapsulation within the following macros, do not change
6778 ## the running order or otherwise move them around unless you know exactly
6779 ## what you are doing...
6780 if test -n "$compiler"; then
6782 lt_prog_compiler_no_builtin_flag=
6784 if test "$GCC" = yes; then
6785 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6787 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6788 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6789 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6790 echo $ECHO_N "(cached) $ECHO_C" >&6
6791 else
6792 lt_cv_prog_compiler_rtti_exceptions=no
6793 ac_outfile=conftest.$ac_objext
6794 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6795 lt_compiler_flag="-fno-rtti -fno-exceptions"
6796 # Insert the option either (1) after the last *FLAGS variable, or
6797 # (2) before a word containing "conftest.", or (3) at the end.
6798 # Note that $ac_compile itself does not contain backslashes and begins
6799 # with a dollar sign (not a hyphen), so the echo should work correctly.
6800 # The option is referenced via a variable to avoid confusing sed.
6801 lt_compile=`echo "$ac_compile" | $SED \
6802 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6803 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6804 -e 's:$: $lt_compiler_flag:'`
6805 (eval echo "\"\$as_me:6805: $lt_compile\"" >&5)
6806 (eval "$lt_compile" 2>conftest.err)
6807 ac_status=$?
6808 cat conftest.err >&5
6809 echo "$as_me:6809: \$? = $ac_status" >&5
6810 if (exit $ac_status) && test -s "$ac_outfile"; then
6811 # The compiler can only warn and ignore the option if not recognized
6812 # So say no if there are warnings other than the usual output.
6813 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6814 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6815 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6816 lt_cv_prog_compiler_rtti_exceptions=yes
6819 $RM conftest*
6822 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6823 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6825 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6826 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6827 else
6838 lt_prog_compiler_wl=
6839 lt_prog_compiler_pic=
6840 lt_prog_compiler_static=
6842 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6843 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6845 if test "$GCC" = yes; then
6846 lt_prog_compiler_wl='-Wl,'
6847 lt_prog_compiler_static='-static'
6849 case $host_os in
6850 aix*)
6851 # All AIX code is PIC.
6852 if test "$host_cpu" = ia64; then
6853 # AIX 5 now supports IA64 processor
6854 lt_prog_compiler_static='-Bstatic'
6858 amigaos*)
6859 case $host_cpu in
6860 powerpc)
6861 # see comment about AmigaOS4 .so support
6862 lt_prog_compiler_pic='-fPIC'
6864 m68k)
6865 # FIXME: we need at least 68020 code to build shared libraries, but
6866 # adding the `-m68020' flag to GCC prevents building anything better,
6867 # like `-m68040'.
6868 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6870 esac
6873 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6874 # PIC is the default for these OSes.
6877 mingw* | cygwin* | pw32* | os2* | cegcc*)
6878 # This hack is so that the source file can tell whether it is being
6879 # built for inclusion in a dll (and should export symbols for example).
6880 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6881 # (--disable-auto-import) libraries
6882 lt_prog_compiler_pic='-DDLL_EXPORT'
6885 darwin* | rhapsody*)
6886 # PIC is the default on this platform
6887 # Common symbols not allowed in MH_DYLIB files
6888 lt_prog_compiler_pic='-fno-common'
6891 hpux*)
6892 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6893 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6894 # sets the default TLS model and affects inlining.
6895 case $host_cpu in
6896 hppa*64*)
6897 # +Z the default
6900 lt_prog_compiler_pic='-fPIC'
6902 esac
6905 interix[3-9]*)
6906 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6907 # Instead, we relocate shared libraries at runtime.
6910 msdosdjgpp*)
6911 # Just because we use GCC doesn't mean we suddenly get shared libraries
6912 # on systems that don't support them.
6913 lt_prog_compiler_can_build_shared=no
6914 enable_shared=no
6917 *nto* | *qnx*)
6918 # QNX uses GNU C++, but need to define -shared option too, otherwise
6919 # it will coredump.
6920 lt_prog_compiler_pic='-fPIC -shared'
6923 sysv4*MP*)
6924 if test -d /usr/nec; then
6925 lt_prog_compiler_pic=-Kconform_pic
6930 lt_prog_compiler_pic='-fPIC'
6932 esac
6933 else
6934 # PORTME Check for flag to pass linker flags through the system compiler.
6935 case $host_os in
6936 aix*)
6937 lt_prog_compiler_wl='-Wl,'
6938 if test "$host_cpu" = ia64; then
6939 # AIX 5 now supports IA64 processor
6940 lt_prog_compiler_static='-Bstatic'
6941 else
6942 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6946 mingw* | cygwin* | pw32* | os2* | cegcc*)
6947 # This hack is so that the source file can tell whether it is being
6948 # built for inclusion in a dll (and should export symbols for example).
6949 lt_prog_compiler_pic='-DDLL_EXPORT'
6952 hpux9* | hpux10* | hpux11*)
6953 lt_prog_compiler_wl='-Wl,'
6954 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6955 # not for PA HP-UX.
6956 case $host_cpu in
6957 hppa*64*|ia64*)
6958 # +Z the default
6961 lt_prog_compiler_pic='+Z'
6963 esac
6964 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6965 lt_prog_compiler_static='${wl}-a ${wl}archive'
6968 irix5* | irix6* | nonstopux*)
6969 lt_prog_compiler_wl='-Wl,'
6970 # PIC (with -KPIC) is the default.
6971 lt_prog_compiler_static='-non_shared'
6974 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6975 case $cc_basename in
6976 # old Intel for x86_64 which still supported -KPIC.
6977 ecc*)
6978 lt_prog_compiler_wl='-Wl,'
6979 lt_prog_compiler_pic='-KPIC'
6980 lt_prog_compiler_static='-static'
6982 # icc used to be incompatible with GCC.
6983 # ICC 10 doesn't accept -KPIC any more.
6984 icc* | ifort*)
6985 lt_prog_compiler_wl='-Wl,'
6986 lt_prog_compiler_pic='-fPIC'
6987 lt_prog_compiler_static='-static'
6989 # Lahey Fortran 8.1.
6990 lf95*)
6991 lt_prog_compiler_wl='-Wl,'
6992 lt_prog_compiler_pic='--shared'
6993 lt_prog_compiler_static='--static'
6995 pgcc* | pgf77* | pgf90* | pgf95*)
6996 # Portland Group compilers (*not* the Pentium gcc compiler,
6997 # which looks to be a dead project)
6998 lt_prog_compiler_wl='-Wl,'
6999 lt_prog_compiler_pic='-fpic'
7000 lt_prog_compiler_static='-Bstatic'
7002 ccc*)
7003 lt_prog_compiler_wl='-Wl,'
7004 # All Alpha code is PIC.
7005 lt_prog_compiler_static='-non_shared'
7007 xl*)
7008 # IBM XL C 8.0/Fortran 10.1 on PPC
7009 lt_prog_compiler_wl='-Wl,'
7010 lt_prog_compiler_pic='-qpic'
7011 lt_prog_compiler_static='-qstaticlink'
7014 case `$CC -V 2>&1 | sed 5q` in
7015 *Sun\ C*)
7016 # Sun C 5.9
7017 lt_prog_compiler_pic='-KPIC'
7018 lt_prog_compiler_static='-Bstatic'
7019 lt_prog_compiler_wl='-Wl,'
7021 *Sun\ F*)
7022 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7023 lt_prog_compiler_pic='-KPIC'
7024 lt_prog_compiler_static='-Bstatic'
7025 lt_prog_compiler_wl=''
7027 esac
7029 esac
7032 newsos6)
7033 lt_prog_compiler_pic='-KPIC'
7034 lt_prog_compiler_static='-Bstatic'
7037 *nto* | *qnx*)
7038 # QNX uses GNU C++, but need to define -shared option too, otherwise
7039 # it will coredump.
7040 lt_prog_compiler_pic='-fPIC -shared'
7043 osf3* | osf4* | osf5*)
7044 lt_prog_compiler_wl='-Wl,'
7045 # All OSF/1 code is PIC.
7046 lt_prog_compiler_static='-non_shared'
7049 rdos*)
7050 lt_prog_compiler_static='-non_shared'
7053 solaris*)
7054 lt_prog_compiler_pic='-KPIC'
7055 lt_prog_compiler_static='-Bstatic'
7056 case $cc_basename in
7057 f77* | f90* | f95*)
7058 lt_prog_compiler_wl='-Qoption ld ';;
7060 lt_prog_compiler_wl='-Wl,';;
7061 esac
7064 sunos4*)
7065 lt_prog_compiler_wl='-Qoption ld '
7066 lt_prog_compiler_pic='-PIC'
7067 lt_prog_compiler_static='-Bstatic'
7070 sysv4 | sysv4.2uw2* | sysv4.3*)
7071 lt_prog_compiler_wl='-Wl,'
7072 lt_prog_compiler_pic='-KPIC'
7073 lt_prog_compiler_static='-Bstatic'
7076 sysv4*MP*)
7077 if test -d /usr/nec ;then
7078 lt_prog_compiler_pic='-Kconform_pic'
7079 lt_prog_compiler_static='-Bstatic'
7083 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7084 lt_prog_compiler_wl='-Wl,'
7085 lt_prog_compiler_pic='-KPIC'
7086 lt_prog_compiler_static='-Bstatic'
7089 unicos*)
7090 lt_prog_compiler_wl='-Wl,'
7091 lt_prog_compiler_can_build_shared=no
7094 uts4*)
7095 lt_prog_compiler_pic='-pic'
7096 lt_prog_compiler_static='-Bstatic'
7100 lt_prog_compiler_can_build_shared=no
7102 esac
7105 case $host_os in
7106 # For platforms which do not support PIC, -DPIC is meaningless:
7107 *djgpp*)
7108 lt_prog_compiler_pic=
7111 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7113 esac
7114 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7115 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7123 # Check to make sure the PIC flag actually works.
7125 if test -n "$lt_prog_compiler_pic"; then
7126 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7127 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7128 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7129 echo $ECHO_N "(cached) $ECHO_C" >&6
7130 else
7131 lt_cv_prog_compiler_pic_works=no
7132 ac_outfile=conftest.$ac_objext
7133 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7134 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7135 # Insert the option either (1) after the last *FLAGS variable, or
7136 # (2) before a word containing "conftest.", or (3) at the end.
7137 # Note that $ac_compile itself does not contain backslashes and begins
7138 # with a dollar sign (not a hyphen), so the echo should work correctly.
7139 # The option is referenced via a variable to avoid confusing sed.
7140 lt_compile=`echo "$ac_compile" | $SED \
7141 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7142 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7143 -e 's:$: $lt_compiler_flag:'`
7144 (eval echo "\"\$as_me:7144: $lt_compile\"" >&5)
7145 (eval "$lt_compile" 2>conftest.err)
7146 ac_status=$?
7147 cat conftest.err >&5
7148 echo "$as_me:7148: \$? = $ac_status" >&5
7149 if (exit $ac_status) && test -s "$ac_outfile"; then
7150 # The compiler can only warn and ignore the option if not recognized
7151 # So say no if there are warnings other than the usual output.
7152 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7153 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7154 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7155 lt_cv_prog_compiler_pic_works=yes
7158 $RM conftest*
7161 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7162 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
7164 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7165 case $lt_prog_compiler_pic in
7166 "" | " "*) ;;
7167 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7168 esac
7169 else
7170 lt_prog_compiler_pic=
7171 lt_prog_compiler_can_build_shared=no
7182 # Check to make sure the static flag actually works.
7184 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7185 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7186 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7187 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7188 echo $ECHO_N "(cached) $ECHO_C" >&6
7189 else
7190 lt_cv_prog_compiler_static_works=no
7191 save_LDFLAGS="$LDFLAGS"
7192 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7193 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7194 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7195 # The linker can only warn and ignore the option if not recognized
7196 # So say no if there are warnings
7197 if test -s conftest.err; then
7198 # Append any errors to the config.log.
7199 cat conftest.err 1>&5
7200 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7201 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7202 if diff conftest.exp conftest.er2 >/dev/null; then
7203 lt_cv_prog_compiler_static_works=yes
7205 else
7206 lt_cv_prog_compiler_static_works=yes
7209 $RM -r conftest*
7210 LDFLAGS="$save_LDFLAGS"
7213 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7214 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
7216 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7218 else
7219 lt_prog_compiler_static=
7228 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7229 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7230 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7231 echo $ECHO_N "(cached) $ECHO_C" >&6
7232 else
7233 lt_cv_prog_compiler_c_o=no
7234 $RM -r conftest 2>/dev/null
7235 mkdir conftest
7236 cd conftest
7237 mkdir out
7238 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7240 lt_compiler_flag="-o out/conftest2.$ac_objext"
7241 # Insert the option either (1) after the last *FLAGS variable, or
7242 # (2) before a word containing "conftest.", or (3) at the end.
7243 # Note that $ac_compile itself does not contain backslashes and begins
7244 # with a dollar sign (not a hyphen), so the echo should work correctly.
7245 lt_compile=`echo "$ac_compile" | $SED \
7246 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7247 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7248 -e 's:$: $lt_compiler_flag:'`
7249 (eval echo "\"\$as_me:7249: $lt_compile\"" >&5)
7250 (eval "$lt_compile" 2>out/conftest.err)
7251 ac_status=$?
7252 cat out/conftest.err >&5
7253 echo "$as_me:7253: \$? = $ac_status" >&5
7254 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7255 then
7256 # The compiler can only warn and ignore the option if not recognized
7257 # So say no if there are warnings
7258 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7259 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7260 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7261 lt_cv_prog_compiler_c_o=yes
7264 chmod u+w . 2>&5
7265 $RM conftest*
7266 # SGI C++ compiler will create directory out/ii_files/ for
7267 # template instantiation
7268 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7269 $RM out/* && rmdir out
7270 cd ..
7271 $RM -r conftest
7272 $RM conftest*
7275 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7276 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7283 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7284 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7285 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7286 echo $ECHO_N "(cached) $ECHO_C" >&6
7287 else
7288 lt_cv_prog_compiler_c_o=no
7289 $RM -r conftest 2>/dev/null
7290 mkdir conftest
7291 cd conftest
7292 mkdir out
7293 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7295 lt_compiler_flag="-o out/conftest2.$ac_objext"
7296 # Insert the option either (1) after the last *FLAGS variable, or
7297 # (2) before a word containing "conftest.", or (3) at the end.
7298 # Note that $ac_compile itself does not contain backslashes and begins
7299 # with a dollar sign (not a hyphen), so the echo should work correctly.
7300 lt_compile=`echo "$ac_compile" | $SED \
7301 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7302 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7303 -e 's:$: $lt_compiler_flag:'`
7304 (eval echo "\"\$as_me:7304: $lt_compile\"" >&5)
7305 (eval "$lt_compile" 2>out/conftest.err)
7306 ac_status=$?
7307 cat out/conftest.err >&5
7308 echo "$as_me:7308: \$? = $ac_status" >&5
7309 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7310 then
7311 # The compiler can only warn and ignore the option if not recognized
7312 # So say no if there are warnings
7313 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7314 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7315 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7316 lt_cv_prog_compiler_c_o=yes
7319 chmod u+w . 2>&5
7320 $RM conftest*
7321 # SGI C++ compiler will create directory out/ii_files/ for
7322 # template instantiation
7323 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7324 $RM out/* && rmdir out
7325 cd ..
7326 $RM -r conftest
7327 $RM conftest*
7330 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7331 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7336 hard_links="nottested"
7337 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7338 # do not overwrite the value of need_locks provided by the user
7339 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7340 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7341 hard_links=yes
7342 $RM conftest*
7343 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7344 touch conftest.a
7345 ln conftest.a conftest.b 2>&5 || hard_links=no
7346 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7347 echo "$as_me:$LINENO: result: $hard_links" >&5
7348 echo "${ECHO_T}$hard_links" >&6
7349 if test "$hard_links" = no; then
7350 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7351 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7352 need_locks=warn
7354 else
7355 need_locks=no
7363 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7364 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7366 runpath_var=
7367 allow_undefined_flag=
7368 always_export_symbols=no
7369 archive_cmds=
7370 archive_expsym_cmds=
7371 compiler_needs_object=no
7372 enable_shared_with_static_runtimes=no
7373 export_dynamic_flag_spec=
7374 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7375 hardcode_automatic=no
7376 hardcode_direct=no
7377 hardcode_direct_absolute=no
7378 hardcode_libdir_flag_spec=
7379 hardcode_libdir_flag_spec_ld=
7380 hardcode_libdir_separator=
7381 hardcode_minus_L=no
7382 hardcode_shlibpath_var=unsupported
7383 inherit_rpath=no
7384 link_all_deplibs=unknown
7385 module_cmds=
7386 module_expsym_cmds=
7387 old_archive_from_new_cmds=
7388 old_archive_from_expsyms_cmds=
7389 thread_safe_flag_spec=
7390 whole_archive_flag_spec=
7391 # include_expsyms should be a list of space-separated symbols to be *always*
7392 # included in the symbol list
7393 include_expsyms=
7394 # exclude_expsyms can be an extended regexp of symbols to exclude
7395 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7396 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7397 # as well as any symbol that contains `d'.
7398 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7399 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7400 # platforms (ab)use it in PIC code, but their linkers get confused if
7401 # the symbol is explicitly referenced. Since portable code cannot
7402 # rely on this symbol name, it's probably fine to never include it in
7403 # preloaded symbol tables.
7404 # Exclude shared library initialization/finalization symbols.
7405 extract_expsyms_cmds=
7407 case $host_os in
7408 cygwin* | mingw* | pw32* | cegcc*)
7409 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7410 # When not using gcc, we currently assume that we are using
7411 # Microsoft Visual C++.
7412 if test "$GCC" != yes; then
7413 with_gnu_ld=no
7416 interix*)
7417 # we just hope/assume this is gcc and not c89 (= MSVC++)
7418 with_gnu_ld=yes
7420 openbsd*)
7421 with_gnu_ld=no
7423 esac
7425 ld_shlibs=yes
7426 if test "$with_gnu_ld" = yes; then
7427 # If archive_cmds runs LD, not CC, wlarc should be empty
7428 wlarc='${wl}'
7430 # Set some defaults for GNU ld with shared library support. These
7431 # are reset later if shared libraries are not supported. Putting them
7432 # here allows them to be overridden if necessary.
7433 runpath_var=LD_RUN_PATH
7434 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7435 export_dynamic_flag_spec='${wl}--export-dynamic'
7436 # ancient GNU ld didn't support --whole-archive et. al.
7437 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7438 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7439 else
7440 whole_archive_flag_spec=
7442 supports_anon_versioning=no
7443 case `$LD -v 2>&1` in
7444 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7445 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7446 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7447 *\ 2.11.*) ;; # other 2.11 versions
7448 *) supports_anon_versioning=yes ;;
7449 esac
7451 # See if GNU ld supports shared libraries.
7452 case $host_os in
7453 aix[3-9]*)
7454 # On AIX/PPC, the GNU linker is very broken
7455 if test "$host_cpu" != ia64; then
7456 ld_shlibs=no
7457 cat <<_LT_EOF 1>&2
7459 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7460 *** to be unable to reliably create shared libraries on AIX.
7461 *** Therefore, libtool is disabling shared libraries support. If you
7462 *** really care for shared libraries, you may want to modify your PATH
7463 *** so that a non-GNU linker is found, and then restart.
7465 _LT_EOF
7469 amigaos*)
7470 case $host_cpu in
7471 powerpc)
7472 # see comment about AmigaOS4 .so support
7473 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7474 archive_expsym_cmds=''
7476 m68k)
7477 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)'
7478 hardcode_libdir_flag_spec='-L$libdir'
7479 hardcode_minus_L=yes
7481 esac
7484 beos*)
7485 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7486 allow_undefined_flag=unsupported
7487 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7488 # support --undefined. This deserves some investigation. FIXME
7489 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7490 else
7491 ld_shlibs=no
7495 cygwin* | mingw* | pw32* | cegcc*)
7496 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7497 # as there is no search path for DLLs.
7498 hardcode_libdir_flag_spec='-L$libdir'
7499 allow_undefined_flag=unsupported
7500 always_export_symbols=no
7501 enable_shared_with_static_runtimes=yes
7502 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7504 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7505 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7506 # If the export-symbols file already is a .def file (1st line
7507 # is EXPORTS), use it as is; otherwise, prepend...
7508 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7509 cp $export_symbols $output_objdir/$soname.def;
7510 else
7511 echo EXPORTS > $output_objdir/$soname.def;
7512 cat $export_symbols >> $output_objdir/$soname.def;
7514 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7515 else
7516 ld_shlibs=no
7520 interix[3-9]*)
7521 hardcode_direct=no
7522 hardcode_shlibpath_var=no
7523 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7524 export_dynamic_flag_spec='${wl}-E'
7525 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7526 # Instead, shared libraries are loaded at an image base (0x10000000 by
7527 # default) and relocated if they conflict, which is a slow very memory
7528 # consuming and fragmenting process. To avoid this, we pick a random,
7529 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7530 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7531 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7532 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'
7535 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
7536 tmp_diet=no
7537 if test "$host_os" = linux-dietlibc; then
7538 case $cc_basename in
7539 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7540 esac
7542 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7543 && test "$tmp_diet" = no
7544 then
7545 tmp_addflag=
7546 tmp_sharedflag='-shared'
7547 case $cc_basename,$host_cpu in
7548 pgcc*) # Portland Group C compiler
7549 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7550 tmp_addflag=' $pic_flag'
7552 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7553 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7554 tmp_addflag=' $pic_flag -Mnomain' ;;
7555 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7556 tmp_addflag=' -i_dynamic' ;;
7557 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7558 tmp_addflag=' -i_dynamic -nofor_main' ;;
7559 ifc* | ifort*) # Intel Fortran compiler
7560 tmp_addflag=' -nofor_main' ;;
7561 lf95*) # Lahey Fortran 8.1
7562 whole_archive_flag_spec=
7563 tmp_sharedflag='--shared' ;;
7564 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7565 tmp_sharedflag='-qmkshrobj'
7566 tmp_addflag= ;;
7567 esac
7568 case `$CC -V 2>&1 | sed 5q` in
7569 *Sun\ C*) # Sun C 5.9
7570 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7571 compiler_needs_object=yes
7572 tmp_sharedflag='-G' ;;
7573 *Sun\ F*) # Sun Fortran 8.3
7574 tmp_sharedflag='-G' ;;
7575 esac
7576 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7578 if test "x$supports_anon_versioning" = xyes; then
7579 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7580 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7581 echo "local: *; };" >> $output_objdir/$libname.ver~
7582 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7585 case $cc_basename in
7586 xlf*)
7587 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7588 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7589 hardcode_libdir_flag_spec=
7590 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7591 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7592 if test "x$supports_anon_versioning" = xyes; then
7593 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7594 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7595 echo "local: *; };" >> $output_objdir/$libname.ver~
7596 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7599 esac
7600 else
7601 ld_shlibs=no
7605 netbsd*)
7606 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7607 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7608 wlarc=
7609 else
7610 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7611 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7615 solaris*)
7616 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7617 ld_shlibs=no
7618 cat <<_LT_EOF 1>&2
7620 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7621 *** create shared libraries on Solaris systems. Therefore, libtool
7622 *** is disabling shared libraries support. We urge you to upgrade GNU
7623 *** binutils to release 2.9.1 or newer. Another option is to modify
7624 *** your PATH or compiler configuration so that the native linker is
7625 *** used, and then restart.
7627 _LT_EOF
7628 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7629 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7630 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7631 else
7632 ld_shlibs=no
7636 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7637 case `$LD -v 2>&1` in
7638 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7639 ld_shlibs=no
7640 cat <<_LT_EOF 1>&2
7642 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7643 *** reliably create shared libraries on SCO systems. Therefore, libtool
7644 *** is disabling shared libraries support. We urge you to upgrade GNU
7645 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7646 *** your PATH or compiler configuration so that the native linker is
7647 *** used, and then restart.
7649 _LT_EOF
7652 # For security reasons, it is highly recommended that you always
7653 # use absolute paths for naming shared libraries, and exclude the
7654 # DT_RUNPATH tag from executables and libraries. But doing so
7655 # requires that you compile everything twice, which is a pain.
7656 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7657 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7658 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7659 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7660 else
7661 ld_shlibs=no
7664 esac
7667 sunos4*)
7668 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7669 wlarc=
7670 hardcode_direct=yes
7671 hardcode_shlibpath_var=no
7675 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7676 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7677 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7678 else
7679 ld_shlibs=no
7682 esac
7684 if test "$ld_shlibs" = no; then
7685 runpath_var=
7686 hardcode_libdir_flag_spec=
7687 export_dynamic_flag_spec=
7688 whole_archive_flag_spec=
7690 else
7691 # PORTME fill in a description of your system's linker (not GNU ld)
7692 case $host_os in
7693 aix3*)
7694 allow_undefined_flag=unsupported
7695 always_export_symbols=yes
7696 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'
7697 # Note: this linker hardcodes the directories in LIBPATH if there
7698 # are no directories specified by -L.
7699 hardcode_minus_L=yes
7700 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7701 # Neither direct hardcoding nor static linking is supported with a
7702 # broken collect2.
7703 hardcode_direct=unsupported
7707 aix[4-9]*)
7708 if test "$host_cpu" = ia64; then
7709 # On IA64, the linker does run time linking by default, so we don't
7710 # have to do anything special.
7711 aix_use_runtimelinking=no
7712 exp_sym_flag='-Bexport'
7713 no_entry_flag=""
7714 else
7715 # If we're using GNU nm, then we don't want the "-C" option.
7716 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7717 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7718 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7719 else
7720 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'
7722 aix_use_runtimelinking=no
7724 # Test if we are trying to use run time linking or normal
7725 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7726 # need to do runtime linking.
7727 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7728 for ld_flag in $LDFLAGS; do
7729 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7730 aix_use_runtimelinking=yes
7731 break
7733 done
7735 esac
7737 exp_sym_flag='-bexport'
7738 no_entry_flag='-bnoentry'
7741 # When large executables or shared objects are built, AIX ld can
7742 # have problems creating the table of contents. If linking a library
7743 # or program results in "error TOC overflow" add -mminimal-toc to
7744 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7745 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7747 archive_cmds=''
7748 hardcode_direct=yes
7749 hardcode_direct_absolute=yes
7750 hardcode_libdir_separator=':'
7751 link_all_deplibs=yes
7752 file_list_spec='${wl}-f,'
7754 if test "$GCC" = yes; then
7755 case $host_os in aix4.[012]|aix4.[012].*)
7756 # We only want to do this on AIX 4.2 and lower, the check
7757 # below for broken collect2 doesn't work under 4.3+
7758 collect2name=`${CC} -print-prog-name=collect2`
7759 if test -f "$collect2name" &&
7760 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7761 then
7762 # We have reworked collect2
7764 else
7765 # We have old collect2
7766 hardcode_direct=unsupported
7767 # It fails to find uninstalled libraries when the uninstalled
7768 # path is not listed in the libpath. Setting hardcode_minus_L
7769 # to unsupported forces relinking
7770 hardcode_minus_L=yes
7771 hardcode_libdir_flag_spec='-L$libdir'
7772 hardcode_libdir_separator=
7775 esac
7776 shared_flag='-shared'
7777 if test "$aix_use_runtimelinking" = yes; then
7778 shared_flag="$shared_flag "'${wl}-G'
7780 else
7781 # not using gcc
7782 if test "$host_cpu" = ia64; then
7783 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7784 # chokes on -Wl,-G. The following line is correct:
7785 shared_flag='-G'
7786 else
7787 if test "$aix_use_runtimelinking" = yes; then
7788 shared_flag='${wl}-G'
7789 else
7790 shared_flag='${wl}-bM:SRE'
7795 export_dynamic_flag_spec='${wl}-bexpall'
7796 # It seems that -bexpall does not export symbols beginning with
7797 # underscore (_), so it is better to generate a list of symbols to export.
7798 always_export_symbols=yes
7799 if test "$aix_use_runtimelinking" = yes; then
7800 # Warning - without using the other runtime loading flags (-brtl),
7801 # -berok will link without error, but may produce a broken library.
7802 allow_undefined_flag='-berok'
7803 # Determine the default libpath from the value encoded in an
7804 # empty executable.
7805 if test x$gcc_no_link = xyes; then
7806 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7807 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7808 { (exit 1); exit 1; }; }
7810 cat >conftest.$ac_ext <<_ACEOF
7811 /* confdefs.h. */
7812 _ACEOF
7813 cat confdefs.h >>conftest.$ac_ext
7814 cat >>conftest.$ac_ext <<_ACEOF
7815 /* end confdefs.h. */
7818 main ()
7822 return 0;
7824 _ACEOF
7825 rm -f conftest.$ac_objext conftest$ac_exeext
7826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7827 (eval $ac_link) 2>conftest.er1
7828 ac_status=$?
7829 grep -v '^ *+' conftest.er1 >conftest.err
7830 rm -f conftest.er1
7831 cat conftest.err >&5
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); } &&
7834 { ac_try='test -z "$ac_c_werror_flag"
7835 || test ! -s conftest.err'
7836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7837 (eval $ac_try) 2>&5
7838 ac_status=$?
7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); }; } &&
7841 { ac_try='test -s conftest$ac_exeext'
7842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7843 (eval $ac_try) 2>&5
7844 ac_status=$?
7845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846 (exit $ac_status); }; }; then
7848 lt_aix_libpath_sed='
7849 /Import File Strings/,/^$/ {
7850 /^0/ {
7851 s/^0 *\(.*\)$/\1/
7855 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7856 # Check for a 64-bit object if we didn't find anything.
7857 if test -z "$aix_libpath"; then
7858 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7860 else
7861 echo "$as_me: failed program was:" >&5
7862 sed 's/^/| /' conftest.$ac_ext >&5
7865 rm -f conftest.err conftest.$ac_objext \
7866 conftest$ac_exeext conftest.$ac_ext
7867 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7869 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7870 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7871 else
7872 if test "$host_cpu" = ia64; then
7873 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7874 allow_undefined_flag="-z nodefs"
7875 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"
7876 else
7877 # Determine the default libpath from the value encoded in an
7878 # empty executable.
7879 if test x$gcc_no_link = xyes; then
7880 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7881 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7882 { (exit 1); exit 1; }; }
7884 cat >conftest.$ac_ext <<_ACEOF
7885 /* confdefs.h. */
7886 _ACEOF
7887 cat confdefs.h >>conftest.$ac_ext
7888 cat >>conftest.$ac_ext <<_ACEOF
7889 /* end confdefs.h. */
7892 main ()
7896 return 0;
7898 _ACEOF
7899 rm -f conftest.$ac_objext conftest$ac_exeext
7900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7901 (eval $ac_link) 2>conftest.er1
7902 ac_status=$?
7903 grep -v '^ *+' conftest.er1 >conftest.err
7904 rm -f conftest.er1
7905 cat conftest.err >&5
7906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 (exit $ac_status); } &&
7908 { ac_try='test -z "$ac_c_werror_flag"
7909 || test ! -s conftest.err'
7910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7911 (eval $ac_try) 2>&5
7912 ac_status=$?
7913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914 (exit $ac_status); }; } &&
7915 { ac_try='test -s conftest$ac_exeext'
7916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7917 (eval $ac_try) 2>&5
7918 ac_status=$?
7919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920 (exit $ac_status); }; }; then
7922 lt_aix_libpath_sed='
7923 /Import File Strings/,/^$/ {
7924 /^0/ {
7925 s/^0 *\(.*\)$/\1/
7929 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7930 # Check for a 64-bit object if we didn't find anything.
7931 if test -z "$aix_libpath"; then
7932 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7934 else
7935 echo "$as_me: failed program was:" >&5
7936 sed 's/^/| /' conftest.$ac_ext >&5
7939 rm -f conftest.err conftest.$ac_objext \
7940 conftest$ac_exeext conftest.$ac_ext
7941 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7943 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7944 # Warning - without using the other run time loading flags,
7945 # -berok will link without error, but may produce a broken library.
7946 no_undefined_flag=' ${wl}-bernotok'
7947 allow_undefined_flag=' ${wl}-berok'
7948 # Exported symbols can be pulled into shared objects from archives
7949 whole_archive_flag_spec='$convenience'
7950 archive_cmds_need_lc=yes
7951 # This is similar to how AIX traditionally builds its shared libraries.
7952 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'
7957 amigaos*)
7958 case $host_cpu in
7959 powerpc)
7960 # see comment about AmigaOS4 .so support
7961 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7962 archive_expsym_cmds=''
7964 m68k)
7965 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)'
7966 hardcode_libdir_flag_spec='-L$libdir'
7967 hardcode_minus_L=yes
7969 esac
7972 bsdi[45]*)
7973 export_dynamic_flag_spec=-rdynamic
7976 cygwin* | mingw* | pw32* | cegcc*)
7977 # When not using gcc, we currently assume that we are using
7978 # Microsoft Visual C++.
7979 # hardcode_libdir_flag_spec is actually meaningless, as there is
7980 # no search path for DLLs.
7981 hardcode_libdir_flag_spec=' '
7982 allow_undefined_flag=unsupported
7983 # Tell ltmain to make .lib files, not .a files.
7984 libext=lib
7985 # Tell ltmain to make .dll files, not .so files.
7986 shrext_cmds=".dll"
7987 # FIXME: Setting linknames here is a bad hack.
7988 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7989 # The linker will automatically build a .lib file if we build a DLL.
7990 old_archive_from_new_cmds='true'
7991 # FIXME: Should let the user specify the lib program.
7992 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7993 fix_srcfile_path='`cygpath -w "$srcfile"`'
7994 enable_shared_with_static_runtimes=yes
7997 darwin* | rhapsody*)
8000 archive_cmds_need_lc=no
8001 hardcode_direct=no
8002 hardcode_automatic=yes
8003 hardcode_shlibpath_var=unsupported
8004 whole_archive_flag_spec=''
8005 link_all_deplibs=yes
8006 allow_undefined_flag="$_lt_dar_allow_undefined"
8007 case $cc_basename in
8008 ifort*) _lt_dar_can_shared=yes ;;
8009 *) _lt_dar_can_shared=$GCC ;;
8010 esac
8011 if test "$_lt_dar_can_shared" = "yes"; then
8012 output_verbose_link_cmd=echo
8013 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8014 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8015 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}"
8016 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}"
8018 else
8019 ld_shlibs=no
8024 dgux*)
8025 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8026 hardcode_libdir_flag_spec='-L$libdir'
8027 hardcode_shlibpath_var=no
8030 freebsd1*)
8031 ld_shlibs=no
8034 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8035 # support. Future versions do this automatically, but an explicit c++rt0.o
8036 # does not break anything, and helps significantly (at the cost of a little
8037 # extra space).
8038 freebsd2.2*)
8039 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8040 hardcode_libdir_flag_spec='-R$libdir'
8041 hardcode_direct=yes
8042 hardcode_shlibpath_var=no
8045 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8046 freebsd2*)
8047 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8048 hardcode_direct=yes
8049 hardcode_minus_L=yes
8050 hardcode_shlibpath_var=no
8053 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8054 freebsd* | dragonfly*)
8055 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8056 hardcode_libdir_flag_spec='-R$libdir'
8057 hardcode_direct=yes
8058 hardcode_shlibpath_var=no
8061 hpux9*)
8062 if test "$GCC" = yes; then
8063 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'
8064 else
8065 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'
8067 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8068 hardcode_libdir_separator=:
8069 hardcode_direct=yes
8071 # hardcode_minus_L: Not really in the search PATH,
8072 # but as the default location of the library.
8073 hardcode_minus_L=yes
8074 export_dynamic_flag_spec='${wl}-E'
8077 hpux10*)
8078 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8079 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8080 else
8081 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8083 if test "$with_gnu_ld" = no; then
8084 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8085 hardcode_libdir_flag_spec_ld='+b $libdir'
8086 hardcode_libdir_separator=:
8087 hardcode_direct=yes
8088 hardcode_direct_absolute=yes
8089 export_dynamic_flag_spec='${wl}-E'
8090 # hardcode_minus_L: Not really in the search PATH,
8091 # but as the default location of the library.
8092 hardcode_minus_L=yes
8096 hpux11*)
8097 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8098 case $host_cpu in
8099 hppa*64*)
8100 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8102 ia64*)
8103 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8106 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8108 esac
8109 else
8110 case $host_cpu in
8111 hppa*64*)
8112 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8114 ia64*)
8115 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8118 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8120 esac
8122 if test "$with_gnu_ld" = no; then
8123 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8124 hardcode_libdir_separator=:
8126 case $host_cpu in
8127 hppa*64*|ia64*)
8128 hardcode_direct=no
8129 hardcode_shlibpath_var=no
8132 hardcode_direct=yes
8133 hardcode_direct_absolute=yes
8134 export_dynamic_flag_spec='${wl}-E'
8136 # hardcode_minus_L: Not really in the search PATH,
8137 # but as the default location of the library.
8138 hardcode_minus_L=yes
8140 esac
8144 irix5* | irix6* | nonstopux*)
8145 if test "$GCC" = yes; then
8146 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8147 # Try to use the -exported_symbol ld option, if it does not
8148 # work, assume that -exports_file does not work either and
8149 # implicitly export all symbols.
8150 save_LDFLAGS="$LDFLAGS"
8151 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8152 if test x$gcc_no_link = xyes; then
8153 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8154 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8155 { (exit 1); exit 1; }; }
8157 cat >conftest.$ac_ext <<_ACEOF
8158 int foo(void) {}
8159 _ACEOF
8160 rm -f conftest.$ac_objext conftest$ac_exeext
8161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8162 (eval $ac_link) 2>conftest.er1
8163 ac_status=$?
8164 grep -v '^ *+' conftest.er1 >conftest.err
8165 rm -f conftest.er1
8166 cat conftest.err >&5
8167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168 (exit $ac_status); } &&
8169 { ac_try='test -z "$ac_c_werror_flag"
8170 || test ! -s conftest.err'
8171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8172 (eval $ac_try) 2>&5
8173 ac_status=$?
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); }; } &&
8176 { ac_try='test -s conftest$ac_exeext'
8177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8178 (eval $ac_try) 2>&5
8179 ac_status=$?
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 (exit $ac_status); }; }; then
8182 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8184 else
8185 echo "$as_me: failed program was:" >&5
8186 sed 's/^/| /' conftest.$ac_ext >&5
8189 rm -f conftest.err conftest.$ac_objext \
8190 conftest$ac_exeext conftest.$ac_ext
8191 LDFLAGS="$save_LDFLAGS"
8192 else
8193 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8194 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8196 archive_cmds_need_lc='no'
8197 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8198 hardcode_libdir_separator=:
8199 inherit_rpath=yes
8200 link_all_deplibs=yes
8203 netbsd*)
8204 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8205 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8206 else
8207 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8209 hardcode_libdir_flag_spec='-R$libdir'
8210 hardcode_direct=yes
8211 hardcode_shlibpath_var=no
8214 newsos6)
8215 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8216 hardcode_direct=yes
8217 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8218 hardcode_libdir_separator=:
8219 hardcode_shlibpath_var=no
8222 *nto* | *qnx*)
8225 openbsd*)
8226 if test -f /usr/libexec/ld.so; then
8227 hardcode_direct=yes
8228 hardcode_shlibpath_var=no
8229 hardcode_direct_absolute=yes
8230 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8231 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8232 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8233 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8234 export_dynamic_flag_spec='${wl}-E'
8235 else
8236 case $host_os in
8237 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8238 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8239 hardcode_libdir_flag_spec='-R$libdir'
8242 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8243 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8245 esac
8247 else
8248 ld_shlibs=no
8252 os2*)
8253 hardcode_libdir_flag_spec='-L$libdir'
8254 hardcode_minus_L=yes
8255 allow_undefined_flag=unsupported
8256 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'
8257 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8260 osf3*)
8261 if test "$GCC" = yes; then
8262 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8263 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8264 else
8265 allow_undefined_flag=' -expect_unresolved \*'
8266 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8268 archive_cmds_need_lc='no'
8269 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8270 hardcode_libdir_separator=:
8273 osf4* | osf5*) # as osf3* with the addition of -msym flag
8274 if test "$GCC" = yes; then
8275 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8276 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8277 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8278 else
8279 allow_undefined_flag=' -expect_unresolved \*'
8280 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8281 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~
8282 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8284 # Both c and cxx compiler support -rpath directly
8285 hardcode_libdir_flag_spec='-rpath $libdir'
8287 archive_cmds_need_lc='no'
8288 hardcode_libdir_separator=:
8291 solaris*)
8292 no_undefined_flag=' -z defs'
8293 if test "$GCC" = yes; then
8294 wlarc='${wl}'
8295 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8296 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8297 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8298 else
8299 case `$CC -V 2>&1` in
8300 *"Compilers 5.0"*)
8301 wlarc=''
8302 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8303 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8304 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8307 wlarc='${wl}'
8308 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8309 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8310 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8312 esac
8314 hardcode_libdir_flag_spec='-R$libdir'
8315 hardcode_shlibpath_var=no
8316 case $host_os in
8317 solaris2.[0-5] | solaris2.[0-5].*) ;;
8319 # The compiler driver will combine and reorder linker options,
8320 # but understands `-z linker_flag'. GCC discards it without `$wl',
8321 # but is careful enough not to reorder.
8322 # Supported since Solaris 2.6 (maybe 2.5.1?)
8323 if test "$GCC" = yes; then
8324 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8325 else
8326 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8329 esac
8330 link_all_deplibs=yes
8333 sunos4*)
8334 if test "x$host_vendor" = xsequent; then
8335 # Use $CC to link under sequent, because it throws in some extra .o
8336 # files that make .init and .fini sections work.
8337 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8338 else
8339 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8341 hardcode_libdir_flag_spec='-L$libdir'
8342 hardcode_direct=yes
8343 hardcode_minus_L=yes
8344 hardcode_shlibpath_var=no
8347 sysv4)
8348 case $host_vendor in
8349 sni)
8350 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8351 hardcode_direct=yes # is this really true???
8353 siemens)
8354 ## LD is ld it makes a PLAMLIB
8355 ## CC just makes a GrossModule.
8356 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8357 reload_cmds='$CC -r -o $output$reload_objs'
8358 hardcode_direct=no
8360 motorola)
8361 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8362 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8364 esac
8365 runpath_var='LD_RUN_PATH'
8366 hardcode_shlibpath_var=no
8369 sysv4.3*)
8370 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8371 hardcode_shlibpath_var=no
8372 export_dynamic_flag_spec='-Bexport'
8375 sysv4*MP*)
8376 if test -d /usr/nec; then
8377 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8378 hardcode_shlibpath_var=no
8379 runpath_var=LD_RUN_PATH
8380 hardcode_runpath_var=yes
8381 ld_shlibs=yes
8385 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8386 no_undefined_flag='${wl}-z,text'
8387 archive_cmds_need_lc=no
8388 hardcode_shlibpath_var=no
8389 runpath_var='LD_RUN_PATH'
8391 if test "$GCC" = yes; then
8392 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8393 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8394 else
8395 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8396 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8400 sysv5* | sco3.2v5* | sco5v6*)
8401 # Note: We can NOT use -z defs as we might desire, because we do not
8402 # link with -lc, and that would cause any symbols used from libc to
8403 # always be unresolved, which means just about no library would
8404 # ever link correctly. If we're not using GNU ld we use -z text
8405 # though, which does catch some bad symbols but isn't as heavy-handed
8406 # as -z defs.
8407 no_undefined_flag='${wl}-z,text'
8408 allow_undefined_flag='${wl}-z,nodefs'
8409 archive_cmds_need_lc=no
8410 hardcode_shlibpath_var=no
8411 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8412 hardcode_libdir_separator=':'
8413 link_all_deplibs=yes
8414 export_dynamic_flag_spec='${wl}-Bexport'
8415 runpath_var='LD_RUN_PATH'
8417 if test "$GCC" = yes; then
8418 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8419 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8420 else
8421 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8422 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8426 uts4*)
8427 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8428 hardcode_libdir_flag_spec='-L$libdir'
8429 hardcode_shlibpath_var=no
8433 ld_shlibs=no
8435 esac
8437 if test x$host_vendor = xsni; then
8438 case $host in
8439 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8440 export_dynamic_flag_spec='${wl}-Blargedynsym'
8442 esac
8446 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8447 echo "${ECHO_T}$ld_shlibs" >&6
8448 test "$ld_shlibs" = no && can_build_shared=no
8450 with_gnu_ld=$with_gnu_ld
8467 # Do we need to explicitly link libc?
8469 case "x$archive_cmds_need_lc" in
8470 x|xyes)
8471 # Assume -lc should be added
8472 archive_cmds_need_lc=yes
8474 if test "$enable_shared" = yes && test "$GCC" = yes; then
8475 case $archive_cmds in
8476 *'~'*)
8477 # FIXME: we may have to deal with multi-command sequences.
8479 '$CC '*)
8480 # Test whether the compiler implicitly links with -lc since on some
8481 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8482 # to ld, don't add -lc before -lgcc.
8483 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8484 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8485 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
8486 echo $ECHO_N "(cached) $ECHO_C" >&6
8487 else
8488 $RM conftest*
8489 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8492 (eval $ac_compile) 2>&5
8493 ac_status=$?
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); } 2>conftest.err; then
8496 soname=conftest
8497 lib=conftest
8498 libobjs=conftest.$ac_objext
8499 deplibs=
8500 wl=$lt_prog_compiler_wl
8501 pic_flag=$lt_prog_compiler_pic
8502 compiler_flags=-v
8503 linker_flags=-v
8504 verstring=
8505 output_objdir=.
8506 libname=conftest
8507 lt_save_allow_undefined_flag=$allow_undefined_flag
8508 allow_undefined_flag=
8509 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8510 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8511 ac_status=$?
8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513 (exit $ac_status); }
8514 then
8515 lt_cv_archive_cmds_need_lc=no
8516 else
8517 lt_cv_archive_cmds_need_lc=yes
8519 allow_undefined_flag=$lt_save_allow_undefined_flag
8520 else
8521 cat conftest.err 1>&5
8523 $RM conftest*
8526 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
8527 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
8528 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
8530 esac
8533 esac
8691 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8692 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8694 if test "$GCC" = yes; then
8695 case $host_os in
8696 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8697 *) lt_awk_arg="/^libraries:/" ;;
8698 esac
8699 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8700 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8701 # if the path contains ";" then we assume it to be the separator
8702 # otherwise default to the standard path separator (i.e. ":") - it is
8703 # assumed that no part of a normal pathname contains ";" but that should
8704 # okay in the real world where ";" in dirpaths is itself problematic.
8705 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8706 else
8707 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8709 # Ok, now we have the path, separated by spaces, we can step through it
8710 # and add multilib dir if necessary.
8711 lt_tmp_lt_search_path_spec=
8712 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8713 for lt_sys_path in $lt_search_path_spec; do
8714 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8715 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8716 else
8717 test -d "$lt_sys_path" && \
8718 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8720 done
8721 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8722 BEGIN {RS=" "; FS="/|\n";} {
8723 lt_foo="";
8724 lt_count=0;
8725 for (lt_i = NF; lt_i > 0; lt_i--) {
8726 if ($lt_i != "" && $lt_i != ".") {
8727 if ($lt_i == "..") {
8728 lt_count++;
8729 } else {
8730 if (lt_count == 0) {
8731 lt_foo="/" $lt_i lt_foo;
8732 } else {
8733 lt_count--;
8738 if (lt_foo != "") { lt_freq[lt_foo]++; }
8739 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8741 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8742 else
8743 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8745 library_names_spec=
8746 libname_spec='lib$name'
8747 soname_spec=
8748 shrext_cmds=".so"
8749 postinstall_cmds=
8750 postuninstall_cmds=
8751 finish_cmds=
8752 finish_eval=
8753 shlibpath_var=
8754 shlibpath_overrides_runpath=unknown
8755 version_type=none
8756 dynamic_linker="$host_os ld.so"
8757 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8758 need_lib_prefix=unknown
8759 hardcode_into_libs=no
8761 # when you set need_version to no, make sure it does not cause -set_version
8762 # flags to be left without arguments
8763 need_version=unknown
8765 case $host_os in
8766 aix3*)
8767 version_type=linux
8768 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8769 shlibpath_var=LIBPATH
8771 # AIX 3 has no versioning support, so we append a major version to the name.
8772 soname_spec='${libname}${release}${shared_ext}$major'
8775 aix[4-9]*)
8776 version_type=linux
8777 need_lib_prefix=no
8778 need_version=no
8779 hardcode_into_libs=yes
8780 if test "$host_cpu" = ia64; then
8781 # AIX 5 supports IA64
8782 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8783 shlibpath_var=LD_LIBRARY_PATH
8784 else
8785 # With GCC up to 2.95.x, collect2 would create an import file
8786 # for dependence libraries. The import file would start with
8787 # the line `#! .'. This would cause the generated library to
8788 # depend on `.', always an invalid library. This was fixed in
8789 # development snapshots of GCC prior to 3.0.
8790 case $host_os in
8791 aix4 | aix4.[01] | aix4.[01].*)
8792 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8793 echo ' yes '
8794 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8796 else
8797 can_build_shared=no
8800 esac
8801 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8802 # soname into executable. Probably we can add versioning support to
8803 # collect2, so additional links can be useful in future.
8804 if test "$aix_use_runtimelinking" = yes; then
8805 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8806 # instead of lib<name>.a to let people know that these are not
8807 # typical AIX shared libraries.
8808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8809 else
8810 # We preserve .a as extension for shared libraries through AIX4.2
8811 # and later when we are not doing run time linking.
8812 library_names_spec='${libname}${release}.a $libname.a'
8813 soname_spec='${libname}${release}${shared_ext}$major'
8815 shlibpath_var=LIBPATH
8819 amigaos*)
8820 case $host_cpu in
8821 powerpc)
8822 # Since July 2007 AmigaOS4 officially supports .so libraries.
8823 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8826 m68k)
8827 library_names_spec='$libname.ixlibrary $libname.a'
8828 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8829 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
8831 esac
8834 beos*)
8835 library_names_spec='${libname}${shared_ext}'
8836 dynamic_linker="$host_os ld.so"
8837 shlibpath_var=LIBRARY_PATH
8840 bsdi[45]*)
8841 version_type=linux
8842 need_version=no
8843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8844 soname_spec='${libname}${release}${shared_ext}$major'
8845 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8846 shlibpath_var=LD_LIBRARY_PATH
8847 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8848 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8849 # the default ld.so.conf also contains /usr/contrib/lib and
8850 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8851 # libtool to hard-code these into programs
8854 cygwin* | mingw* | pw32* | cegcc*)
8855 version_type=windows
8856 shrext_cmds=".dll"
8857 need_version=no
8858 need_lib_prefix=no
8860 case $GCC,$host_os in
8861 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
8862 library_names_spec='$libname.dll.a'
8863 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8864 postinstall_cmds='base_file=`basename \${file}`~
8865 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8866 dldir=$destdir/`dirname \$dlpath`~
8867 test -d \$dldir || mkdir -p \$dldir~
8868 $install_prog $dir/$dlname \$dldir/$dlname~
8869 chmod a+x \$dldir/$dlname~
8870 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8871 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8873 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8874 dlpath=$dir/\$dldll~
8875 $RM \$dlpath'
8876 shlibpath_overrides_runpath=yes
8878 case $host_os in
8879 cygwin*)
8880 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8881 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8882 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8884 mingw* | cegcc*)
8885 # MinGW DLLs use traditional 'lib' prefix
8886 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8887 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8888 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8889 # It is most probably a Windows format PATH printed by
8890 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8891 # path with ; separators, and with drive letters. We can handle the
8892 # drive letters (cygwin fileutils understands them), so leave them,
8893 # especially as we might pass files found there to a mingw objdump,
8894 # which wouldn't understand a cygwinified path. Ahh.
8895 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8896 else
8897 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8900 pw32*)
8901 # pw32 DLLs use 'pw' prefix rather than 'lib'
8902 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8904 esac
8908 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8910 esac
8911 dynamic_linker='Win32 ld.exe'
8912 # FIXME: first we should search . and the directory the executable is in
8913 shlibpath_var=PATH
8916 darwin* | rhapsody*)
8917 dynamic_linker="$host_os dyld"
8918 version_type=darwin
8919 need_lib_prefix=no
8920 need_version=no
8921 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8922 soname_spec='${libname}${release}${major}$shared_ext'
8923 shlibpath_overrides_runpath=yes
8924 shlibpath_var=DYLD_LIBRARY_PATH
8925 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8927 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8928 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8931 dgux*)
8932 version_type=linux
8933 need_lib_prefix=no
8934 need_version=no
8935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8936 soname_spec='${libname}${release}${shared_ext}$major'
8937 shlibpath_var=LD_LIBRARY_PATH
8940 freebsd1*)
8941 dynamic_linker=no
8944 freebsd* | dragonfly*)
8945 # DragonFly does not have aout. When/if they implement a new
8946 # versioning mechanism, adjust this.
8947 if test -x /usr/bin/objformat; then
8948 objformat=`/usr/bin/objformat`
8949 else
8950 case $host_os in
8951 freebsd[123]*) objformat=aout ;;
8952 *) objformat=elf ;;
8953 esac
8955 version_type=freebsd-$objformat
8956 case $version_type in
8957 freebsd-elf*)
8958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8959 need_version=no
8960 need_lib_prefix=no
8962 freebsd-*)
8963 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8964 need_version=yes
8966 esac
8967 shlibpath_var=LD_LIBRARY_PATH
8968 case $host_os in
8969 freebsd2*)
8970 shlibpath_overrides_runpath=yes
8972 freebsd3.[01]* | freebsdelf3.[01]*)
8973 shlibpath_overrides_runpath=yes
8974 hardcode_into_libs=yes
8976 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8977 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8978 shlibpath_overrides_runpath=no
8979 hardcode_into_libs=yes
8981 *) # from 4.6 on, and DragonFly
8982 shlibpath_overrides_runpath=yes
8983 hardcode_into_libs=yes
8985 esac
8988 gnu*)
8989 version_type=linux
8990 need_lib_prefix=no
8991 need_version=no
8992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8993 soname_spec='${libname}${release}${shared_ext}$major'
8994 shlibpath_var=LD_LIBRARY_PATH
8995 hardcode_into_libs=yes
8998 hpux9* | hpux10* | hpux11*)
8999 # Give a soname corresponding to the major version so that dld.sl refuses to
9000 # link against other versions.
9001 version_type=sunos
9002 need_lib_prefix=no
9003 need_version=no
9004 case $host_cpu in
9005 ia64*)
9006 shrext_cmds='.so'
9007 hardcode_into_libs=yes
9008 dynamic_linker="$host_os dld.so"
9009 shlibpath_var=LD_LIBRARY_PATH
9010 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9012 soname_spec='${libname}${release}${shared_ext}$major'
9013 if test "X$HPUX_IA64_MODE" = X32; then
9014 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9015 else
9016 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9018 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9020 hppa*64*)
9021 shrext_cmds='.sl'
9022 hardcode_into_libs=yes
9023 dynamic_linker="$host_os dld.sl"
9024 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9025 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9027 soname_spec='${libname}${release}${shared_ext}$major'
9028 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9029 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9032 shrext_cmds='.sl'
9033 dynamic_linker="$host_os dld.sl"
9034 shlibpath_var=SHLIB_PATH
9035 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9037 soname_spec='${libname}${release}${shared_ext}$major'
9039 esac
9040 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9041 postinstall_cmds='chmod 555 $lib'
9044 interix[3-9]*)
9045 version_type=linux
9046 need_lib_prefix=no
9047 need_version=no
9048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9049 soname_spec='${libname}${release}${shared_ext}$major'
9050 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9051 shlibpath_var=LD_LIBRARY_PATH
9052 shlibpath_overrides_runpath=no
9053 hardcode_into_libs=yes
9056 irix5* | irix6* | nonstopux*)
9057 case $host_os in
9058 nonstopux*) version_type=nonstopux ;;
9060 if test "$lt_cv_prog_gnu_ld" = yes; then
9061 version_type=linux
9062 else
9063 version_type=irix
9064 fi ;;
9065 esac
9066 need_lib_prefix=no
9067 need_version=no
9068 soname_spec='${libname}${release}${shared_ext}$major'
9069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9070 case $host_os in
9071 irix5* | nonstopux*)
9072 libsuff= shlibsuff=
9075 case $LD in # libtool.m4 will add one of these switches to LD
9076 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9077 libsuff= shlibsuff= libmagic=32-bit;;
9078 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9079 libsuff=32 shlibsuff=N32 libmagic=N32;;
9080 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9081 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9082 *) libsuff= shlibsuff= libmagic=never-match;;
9083 esac
9085 esac
9086 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9087 shlibpath_overrides_runpath=no
9088 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9089 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9090 hardcode_into_libs=yes
9093 # No shared lib support for Linux oldld, aout, or coff.
9094 linux*oldld* | linux*aout* | linux*coff*)
9095 dynamic_linker=no
9098 # This must be Linux ELF.
9099 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9100 version_type=linux
9101 need_lib_prefix=no
9102 need_version=no
9103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9104 soname_spec='${libname}${release}${shared_ext}$major'
9105 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9106 shlibpath_var=LD_LIBRARY_PATH
9107 shlibpath_overrides_runpath=no
9109 # Some binutils ld are patched to set DT_RUNPATH
9110 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
9111 echo $ECHO_N "(cached) $ECHO_C" >&6
9112 else
9113 lt_cv_shlibpath_overrides_runpath=no
9114 save_LDFLAGS=$LDFLAGS
9115 save_libdir=$libdir
9116 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9117 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9118 if test x$gcc_no_link = xyes; then
9119 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9120 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9121 { (exit 1); exit 1; }; }
9123 cat >conftest.$ac_ext <<_ACEOF
9124 /* confdefs.h. */
9125 _ACEOF
9126 cat confdefs.h >>conftest.$ac_ext
9127 cat >>conftest.$ac_ext <<_ACEOF
9128 /* end confdefs.h. */
9131 main ()
9135 return 0;
9137 _ACEOF
9138 rm -f conftest.$ac_objext conftest$ac_exeext
9139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9140 (eval $ac_link) 2>conftest.er1
9141 ac_status=$?
9142 grep -v '^ *+' conftest.er1 >conftest.err
9143 rm -f conftest.er1
9144 cat conftest.err >&5
9145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146 (exit $ac_status); } &&
9147 { ac_try='test -z "$ac_c_werror_flag"
9148 || test ! -s conftest.err'
9149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9150 (eval $ac_try) 2>&5
9151 ac_status=$?
9152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153 (exit $ac_status); }; } &&
9154 { ac_try='test -s conftest$ac_exeext'
9155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9156 (eval $ac_try) 2>&5
9157 ac_status=$?
9158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159 (exit $ac_status); }; }; then
9160 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9161 lt_cv_shlibpath_overrides_runpath=yes
9164 else
9165 echo "$as_me: failed program was:" >&5
9166 sed 's/^/| /' conftest.$ac_ext >&5
9169 rm -f conftest.err conftest.$ac_objext \
9170 conftest$ac_exeext conftest.$ac_ext
9171 LDFLAGS=$save_LDFLAGS
9172 libdir=$save_libdir
9176 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9178 # This implies no fast_install, which is unacceptable.
9179 # Some rework will be needed to allow for fast_install
9180 # before this can be enabled.
9181 hardcode_into_libs=yes
9183 # Append ld.so.conf contents to the search path
9184 if test -f /etc/ld.so.conf; then
9185 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;/^$/d' | tr '\n' ' '`
9186 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9189 # We used to test for /lib/ld.so.1 and disable shared libraries on
9190 # powerpc, because MkLinux only supported shared libraries with the
9191 # GNU dynamic linker. Since this was broken with cross compilers,
9192 # most powerpc-linux boxes support dynamic linking these days and
9193 # people can always --disable-shared, the test was removed, and we
9194 # assume the GNU/Linux dynamic linker is in use.
9195 dynamic_linker='GNU/Linux ld.so'
9198 netbsd*)
9199 version_type=sunos
9200 need_lib_prefix=no
9201 need_version=no
9202 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9204 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9205 dynamic_linker='NetBSD (a.out) ld.so'
9206 else
9207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9208 soname_spec='${libname}${release}${shared_ext}$major'
9209 dynamic_linker='NetBSD ld.elf_so'
9211 shlibpath_var=LD_LIBRARY_PATH
9212 shlibpath_overrides_runpath=yes
9213 hardcode_into_libs=yes
9216 newsos6)
9217 version_type=linux
9218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9219 shlibpath_var=LD_LIBRARY_PATH
9220 shlibpath_overrides_runpath=yes
9223 *nto* | *qnx*)
9224 version_type=qnx
9225 need_lib_prefix=no
9226 need_version=no
9227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9228 soname_spec='${libname}${release}${shared_ext}$major'
9229 shlibpath_var=LD_LIBRARY_PATH
9230 shlibpath_overrides_runpath=no
9231 hardcode_into_libs=yes
9232 dynamic_linker='ldqnx.so'
9235 openbsd*)
9236 version_type=sunos
9237 sys_lib_dlsearch_path_spec="/usr/lib"
9238 need_lib_prefix=no
9239 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9240 case $host_os in
9241 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9242 *) need_version=no ;;
9243 esac
9244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9245 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9246 shlibpath_var=LD_LIBRARY_PATH
9247 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9248 case $host_os in
9249 openbsd2.[89] | openbsd2.[89].*)
9250 shlibpath_overrides_runpath=no
9253 shlibpath_overrides_runpath=yes
9255 esac
9256 else
9257 shlibpath_overrides_runpath=yes
9261 os2*)
9262 libname_spec='$name'
9263 shrext_cmds=".dll"
9264 need_lib_prefix=no
9265 library_names_spec='$libname${shared_ext} $libname.a'
9266 dynamic_linker='OS/2 ld.exe'
9267 shlibpath_var=LIBPATH
9270 osf3* | osf4* | osf5*)
9271 version_type=osf
9272 need_lib_prefix=no
9273 need_version=no
9274 soname_spec='${libname}${release}${shared_ext}$major'
9275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9276 shlibpath_var=LD_LIBRARY_PATH
9277 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9278 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9281 rdos*)
9282 dynamic_linker=no
9285 solaris*)
9286 version_type=linux
9287 need_lib_prefix=no
9288 need_version=no
9289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9290 soname_spec='${libname}${release}${shared_ext}$major'
9291 shlibpath_var=LD_LIBRARY_PATH
9292 shlibpath_overrides_runpath=yes
9293 hardcode_into_libs=yes
9294 # ldd complains unless libraries are executable
9295 postinstall_cmds='chmod +x $lib'
9298 sunos4*)
9299 version_type=sunos
9300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9301 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9302 shlibpath_var=LD_LIBRARY_PATH
9303 shlibpath_overrides_runpath=yes
9304 if test "$with_gnu_ld" = yes; then
9305 need_lib_prefix=no
9307 need_version=yes
9310 sysv4 | sysv4.3*)
9311 version_type=linux
9312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9313 soname_spec='${libname}${release}${shared_ext}$major'
9314 shlibpath_var=LD_LIBRARY_PATH
9315 case $host_vendor in
9316 sni)
9317 shlibpath_overrides_runpath=no
9318 need_lib_prefix=no
9319 runpath_var=LD_RUN_PATH
9321 siemens)
9322 need_lib_prefix=no
9324 motorola)
9325 need_lib_prefix=no
9326 need_version=no
9327 shlibpath_overrides_runpath=no
9328 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9330 esac
9333 sysv4*MP*)
9334 if test -d /usr/nec ;then
9335 version_type=linux
9336 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9337 soname_spec='$libname${shared_ext}.$major'
9338 shlibpath_var=LD_LIBRARY_PATH
9342 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9343 version_type=freebsd-elf
9344 need_lib_prefix=no
9345 need_version=no
9346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9347 soname_spec='${libname}${release}${shared_ext}$major'
9348 shlibpath_var=LD_LIBRARY_PATH
9349 shlibpath_overrides_runpath=yes
9350 hardcode_into_libs=yes
9351 if test "$with_gnu_ld" = yes; then
9352 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9353 else
9354 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9355 case $host_os in
9356 sco3.2v5*)
9357 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9359 esac
9361 sys_lib_dlsearch_path_spec='/usr/lib'
9364 tpf*)
9365 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9366 version_type=linux
9367 need_lib_prefix=no
9368 need_version=no
9369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9370 shlibpath_var=LD_LIBRARY_PATH
9371 shlibpath_overrides_runpath=no
9372 hardcode_into_libs=yes
9375 uts4*)
9376 version_type=linux
9377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9378 soname_spec='${libname}${release}${shared_ext}$major'
9379 shlibpath_var=LD_LIBRARY_PATH
9383 dynamic_linker=no
9385 esac
9386 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9387 echo "${ECHO_T}$dynamic_linker" >&6
9388 test "$dynamic_linker" = no && can_build_shared=no
9390 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9391 if test "$GCC" = yes; then
9392 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9395 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9396 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9398 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9399 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9488 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9489 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9490 hardcode_action=
9491 if test -n "$hardcode_libdir_flag_spec" ||
9492 test -n "$runpath_var" ||
9493 test "X$hardcode_automatic" = "Xyes" ; then
9495 # We can hardcode non-existent directories.
9496 if test "$hardcode_direct" != no &&
9497 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9498 # have to relink, otherwise we might link with an installed library
9499 # when we should be linking with a yet-to-be-installed one
9500 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9501 test "$hardcode_minus_L" != no; then
9502 # Linking always hardcodes the temporary library directory.
9503 hardcode_action=relink
9504 else
9505 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9506 hardcode_action=immediate
9508 else
9509 # We cannot hardcode anything, or else we can only hardcode existing
9510 # directories.
9511 hardcode_action=unsupported
9513 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9514 echo "${ECHO_T}$hardcode_action" >&6
9516 if test "$hardcode_action" = relink ||
9517 test "$inherit_rpath" = yes; then
9518 # Fast installation is not supported
9519 enable_fast_install=no
9520 elif test "$shlibpath_overrides_runpath" = yes ||
9521 test "$enable_shared" = no; then
9522 # Fast installation is not necessary
9523 enable_fast_install=needless
9531 if test "x$enable_dlopen" != xyes; then
9532 enable_dlopen=unknown
9533 enable_dlopen_self=unknown
9534 enable_dlopen_self_static=unknown
9535 else
9536 lt_cv_dlopen=no
9537 lt_cv_dlopen_libs=
9539 case $host_os in
9540 beos*)
9541 lt_cv_dlopen="load_add_on"
9542 lt_cv_dlopen_libs=
9543 lt_cv_dlopen_self=yes
9546 mingw* | pw32* | cegcc*)
9547 lt_cv_dlopen="LoadLibrary"
9548 lt_cv_dlopen_libs=
9551 cygwin*)
9552 lt_cv_dlopen="dlopen"
9553 lt_cv_dlopen_libs=
9556 darwin*)
9557 # if libdl is installed we need to link against it
9558 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9559 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9560 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9561 echo $ECHO_N "(cached) $ECHO_C" >&6
9562 else
9563 ac_check_lib_save_LIBS=$LIBS
9564 LIBS="-ldl $LIBS"
9565 if test x$gcc_no_link = xyes; then
9566 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9567 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9568 { (exit 1); exit 1; }; }
9570 cat >conftest.$ac_ext <<_ACEOF
9571 /* confdefs.h. */
9572 _ACEOF
9573 cat confdefs.h >>conftest.$ac_ext
9574 cat >>conftest.$ac_ext <<_ACEOF
9575 /* end confdefs.h. */
9577 /* Override any gcc2 internal prototype to avoid an error. */
9578 #ifdef __cplusplus
9579 extern "C"
9580 #endif
9581 /* We use char because int might match the return type of a gcc2
9582 builtin and then its argument prototype would still apply. */
9583 char dlopen ();
9585 main ()
9587 dlopen ();
9589 return 0;
9591 _ACEOF
9592 rm -f conftest.$ac_objext conftest$ac_exeext
9593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9594 (eval $ac_link) 2>conftest.er1
9595 ac_status=$?
9596 grep -v '^ *+' conftest.er1 >conftest.err
9597 rm -f conftest.er1
9598 cat conftest.err >&5
9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600 (exit $ac_status); } &&
9601 { ac_try='test -z "$ac_c_werror_flag"
9602 || test ! -s conftest.err'
9603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9604 (eval $ac_try) 2>&5
9605 ac_status=$?
9606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607 (exit $ac_status); }; } &&
9608 { ac_try='test -s conftest$ac_exeext'
9609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9610 (eval $ac_try) 2>&5
9611 ac_status=$?
9612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613 (exit $ac_status); }; }; then
9614 ac_cv_lib_dl_dlopen=yes
9615 else
9616 echo "$as_me: failed program was:" >&5
9617 sed 's/^/| /' conftest.$ac_ext >&5
9619 ac_cv_lib_dl_dlopen=no
9621 rm -f conftest.err conftest.$ac_objext \
9622 conftest$ac_exeext conftest.$ac_ext
9623 LIBS=$ac_check_lib_save_LIBS
9625 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9626 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9627 if test $ac_cv_lib_dl_dlopen = yes; then
9628 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9629 else
9631 lt_cv_dlopen="dyld"
9632 lt_cv_dlopen_libs=
9633 lt_cv_dlopen_self=yes
9640 echo "$as_me:$LINENO: checking for shl_load" >&5
9641 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9642 if test "${ac_cv_func_shl_load+set}" = set; then
9643 echo $ECHO_N "(cached) $ECHO_C" >&6
9644 else
9645 if test x$gcc_no_link = xyes; then
9646 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9647 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9648 { (exit 1); exit 1; }; }
9650 cat >conftest.$ac_ext <<_ACEOF
9651 /* confdefs.h. */
9652 _ACEOF
9653 cat confdefs.h >>conftest.$ac_ext
9654 cat >>conftest.$ac_ext <<_ACEOF
9655 /* end confdefs.h. */
9656 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9657 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9658 #define shl_load innocuous_shl_load
9660 /* System header to define __stub macros and hopefully few prototypes,
9661 which can conflict with char shl_load (); below.
9662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9663 <limits.h> exists even on freestanding compilers. */
9665 #ifdef __STDC__
9666 # include <limits.h>
9667 #else
9668 # include <assert.h>
9669 #endif
9671 #undef shl_load
9673 /* Override any gcc2 internal prototype to avoid an error. */
9674 #ifdef __cplusplus
9675 extern "C"
9677 #endif
9678 /* We use char because int might match the return type of a gcc2
9679 builtin and then its argument prototype would still apply. */
9680 char shl_load ();
9681 /* The GNU C library defines this for functions which it implements
9682 to always fail with ENOSYS. Some functions are actually named
9683 something starting with __ and the normal name is an alias. */
9684 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9685 choke me
9686 #else
9687 char (*f) () = shl_load;
9688 #endif
9689 #ifdef __cplusplus
9691 #endif
9694 main ()
9696 return f != shl_load;
9698 return 0;
9700 _ACEOF
9701 rm -f conftest.$ac_objext conftest$ac_exeext
9702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9703 (eval $ac_link) 2>conftest.er1
9704 ac_status=$?
9705 grep -v '^ *+' conftest.er1 >conftest.err
9706 rm -f conftest.er1
9707 cat conftest.err >&5
9708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709 (exit $ac_status); } &&
9710 { ac_try='test -z "$ac_c_werror_flag"
9711 || test ! -s conftest.err'
9712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9713 (eval $ac_try) 2>&5
9714 ac_status=$?
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); }; } &&
9717 { ac_try='test -s conftest$ac_exeext'
9718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9719 (eval $ac_try) 2>&5
9720 ac_status=$?
9721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722 (exit $ac_status); }; }; then
9723 ac_cv_func_shl_load=yes
9724 else
9725 echo "$as_me: failed program was:" >&5
9726 sed 's/^/| /' conftest.$ac_ext >&5
9728 ac_cv_func_shl_load=no
9730 rm -f conftest.err conftest.$ac_objext \
9731 conftest$ac_exeext conftest.$ac_ext
9733 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9734 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9735 if test $ac_cv_func_shl_load = yes; then
9736 lt_cv_dlopen="shl_load"
9737 else
9738 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9739 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9740 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9741 echo $ECHO_N "(cached) $ECHO_C" >&6
9742 else
9743 ac_check_lib_save_LIBS=$LIBS
9744 LIBS="-ldld $LIBS"
9745 if test x$gcc_no_link = xyes; then
9746 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9747 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9748 { (exit 1); exit 1; }; }
9750 cat >conftest.$ac_ext <<_ACEOF
9751 /* confdefs.h. */
9752 _ACEOF
9753 cat confdefs.h >>conftest.$ac_ext
9754 cat >>conftest.$ac_ext <<_ACEOF
9755 /* end confdefs.h. */
9757 /* Override any gcc2 internal prototype to avoid an error. */
9758 #ifdef __cplusplus
9759 extern "C"
9760 #endif
9761 /* We use char because int might match the return type of a gcc2
9762 builtin and then its argument prototype would still apply. */
9763 char shl_load ();
9765 main ()
9767 shl_load ();
9769 return 0;
9771 _ACEOF
9772 rm -f conftest.$ac_objext conftest$ac_exeext
9773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9774 (eval $ac_link) 2>conftest.er1
9775 ac_status=$?
9776 grep -v '^ *+' conftest.er1 >conftest.err
9777 rm -f conftest.er1
9778 cat conftest.err >&5
9779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780 (exit $ac_status); } &&
9781 { ac_try='test -z "$ac_c_werror_flag"
9782 || test ! -s conftest.err'
9783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9784 (eval $ac_try) 2>&5
9785 ac_status=$?
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); }; } &&
9788 { ac_try='test -s conftest$ac_exeext'
9789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9790 (eval $ac_try) 2>&5
9791 ac_status=$?
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 (exit $ac_status); }; }; then
9794 ac_cv_lib_dld_shl_load=yes
9795 else
9796 echo "$as_me: failed program was:" >&5
9797 sed 's/^/| /' conftest.$ac_ext >&5
9799 ac_cv_lib_dld_shl_load=no
9801 rm -f conftest.err conftest.$ac_objext \
9802 conftest$ac_exeext conftest.$ac_ext
9803 LIBS=$ac_check_lib_save_LIBS
9805 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9806 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9807 if test $ac_cv_lib_dld_shl_load = yes; then
9808 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9809 else
9810 echo "$as_me:$LINENO: checking for dlopen" >&5
9811 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9812 if test "${ac_cv_func_dlopen+set}" = set; then
9813 echo $ECHO_N "(cached) $ECHO_C" >&6
9814 else
9815 if test x$gcc_no_link = xyes; then
9816 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9817 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9818 { (exit 1); exit 1; }; }
9820 cat >conftest.$ac_ext <<_ACEOF
9821 /* confdefs.h. */
9822 _ACEOF
9823 cat confdefs.h >>conftest.$ac_ext
9824 cat >>conftest.$ac_ext <<_ACEOF
9825 /* end confdefs.h. */
9826 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9828 #define dlopen innocuous_dlopen
9830 /* System header to define __stub macros and hopefully few prototypes,
9831 which can conflict with char dlopen (); below.
9832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9833 <limits.h> exists even on freestanding compilers. */
9835 #ifdef __STDC__
9836 # include <limits.h>
9837 #else
9838 # include <assert.h>
9839 #endif
9841 #undef dlopen
9843 /* Override any gcc2 internal prototype to avoid an error. */
9844 #ifdef __cplusplus
9845 extern "C"
9847 #endif
9848 /* We use char because int might match the return type of a gcc2
9849 builtin and then its argument prototype would still apply. */
9850 char dlopen ();
9851 /* The GNU C library defines this for functions which it implements
9852 to always fail with ENOSYS. Some functions are actually named
9853 something starting with __ and the normal name is an alias. */
9854 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9855 choke me
9856 #else
9857 char (*f) () = dlopen;
9858 #endif
9859 #ifdef __cplusplus
9861 #endif
9864 main ()
9866 return f != dlopen;
9868 return 0;
9870 _ACEOF
9871 rm -f conftest.$ac_objext conftest$ac_exeext
9872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9873 (eval $ac_link) 2>conftest.er1
9874 ac_status=$?
9875 grep -v '^ *+' conftest.er1 >conftest.err
9876 rm -f conftest.er1
9877 cat conftest.err >&5
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 (exit $ac_status); } &&
9880 { ac_try='test -z "$ac_c_werror_flag"
9881 || test ! -s conftest.err'
9882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9883 (eval $ac_try) 2>&5
9884 ac_status=$?
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); }; } &&
9887 { ac_try='test -s conftest$ac_exeext'
9888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9889 (eval $ac_try) 2>&5
9890 ac_status=$?
9891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892 (exit $ac_status); }; }; then
9893 ac_cv_func_dlopen=yes
9894 else
9895 echo "$as_me: failed program was:" >&5
9896 sed 's/^/| /' conftest.$ac_ext >&5
9898 ac_cv_func_dlopen=no
9900 rm -f conftest.err conftest.$ac_objext \
9901 conftest$ac_exeext conftest.$ac_ext
9903 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9904 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9905 if test $ac_cv_func_dlopen = yes; then
9906 lt_cv_dlopen="dlopen"
9907 else
9908 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9909 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9910 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9911 echo $ECHO_N "(cached) $ECHO_C" >&6
9912 else
9913 ac_check_lib_save_LIBS=$LIBS
9914 LIBS="-ldl $LIBS"
9915 if test x$gcc_no_link = xyes; then
9916 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9917 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9918 { (exit 1); exit 1; }; }
9920 cat >conftest.$ac_ext <<_ACEOF
9921 /* confdefs.h. */
9922 _ACEOF
9923 cat confdefs.h >>conftest.$ac_ext
9924 cat >>conftest.$ac_ext <<_ACEOF
9925 /* end confdefs.h. */
9927 /* Override any gcc2 internal prototype to avoid an error. */
9928 #ifdef __cplusplus
9929 extern "C"
9930 #endif
9931 /* We use char because int might match the return type of a gcc2
9932 builtin and then its argument prototype would still apply. */
9933 char dlopen ();
9935 main ()
9937 dlopen ();
9939 return 0;
9941 _ACEOF
9942 rm -f conftest.$ac_objext conftest$ac_exeext
9943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9944 (eval $ac_link) 2>conftest.er1
9945 ac_status=$?
9946 grep -v '^ *+' conftest.er1 >conftest.err
9947 rm -f conftest.er1
9948 cat conftest.err >&5
9949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950 (exit $ac_status); } &&
9951 { ac_try='test -z "$ac_c_werror_flag"
9952 || test ! -s conftest.err'
9953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9954 (eval $ac_try) 2>&5
9955 ac_status=$?
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957 (exit $ac_status); }; } &&
9958 { ac_try='test -s conftest$ac_exeext'
9959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9960 (eval $ac_try) 2>&5
9961 ac_status=$?
9962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963 (exit $ac_status); }; }; then
9964 ac_cv_lib_dl_dlopen=yes
9965 else
9966 echo "$as_me: failed program was:" >&5
9967 sed 's/^/| /' conftest.$ac_ext >&5
9969 ac_cv_lib_dl_dlopen=no
9971 rm -f conftest.err conftest.$ac_objext \
9972 conftest$ac_exeext conftest.$ac_ext
9973 LIBS=$ac_check_lib_save_LIBS
9975 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9976 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9977 if test $ac_cv_lib_dl_dlopen = yes; then
9978 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9979 else
9980 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9981 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9982 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9983 echo $ECHO_N "(cached) $ECHO_C" >&6
9984 else
9985 ac_check_lib_save_LIBS=$LIBS
9986 LIBS="-lsvld $LIBS"
9987 if test x$gcc_no_link = xyes; then
9988 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9989 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9990 { (exit 1); exit 1; }; }
9992 cat >conftest.$ac_ext <<_ACEOF
9993 /* confdefs.h. */
9994 _ACEOF
9995 cat confdefs.h >>conftest.$ac_ext
9996 cat >>conftest.$ac_ext <<_ACEOF
9997 /* end confdefs.h. */
9999 /* Override any gcc2 internal prototype to avoid an error. */
10000 #ifdef __cplusplus
10001 extern "C"
10002 #endif
10003 /* We use char because int might match the return type of a gcc2
10004 builtin and then its argument prototype would still apply. */
10005 char dlopen ();
10007 main ()
10009 dlopen ();
10011 return 0;
10013 _ACEOF
10014 rm -f conftest.$ac_objext conftest$ac_exeext
10015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10016 (eval $ac_link) 2>conftest.er1
10017 ac_status=$?
10018 grep -v '^ *+' conftest.er1 >conftest.err
10019 rm -f conftest.er1
10020 cat conftest.err >&5
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); } &&
10023 { ac_try='test -z "$ac_c_werror_flag"
10024 || test ! -s conftest.err'
10025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10026 (eval $ac_try) 2>&5
10027 ac_status=$?
10028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029 (exit $ac_status); }; } &&
10030 { ac_try='test -s conftest$ac_exeext'
10031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10032 (eval $ac_try) 2>&5
10033 ac_status=$?
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); }; }; then
10036 ac_cv_lib_svld_dlopen=yes
10037 else
10038 echo "$as_me: failed program was:" >&5
10039 sed 's/^/| /' conftest.$ac_ext >&5
10041 ac_cv_lib_svld_dlopen=no
10043 rm -f conftest.err conftest.$ac_objext \
10044 conftest$ac_exeext conftest.$ac_ext
10045 LIBS=$ac_check_lib_save_LIBS
10047 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10048 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10049 if test $ac_cv_lib_svld_dlopen = yes; then
10050 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10051 else
10052 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10053 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10054 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10055 echo $ECHO_N "(cached) $ECHO_C" >&6
10056 else
10057 ac_check_lib_save_LIBS=$LIBS
10058 LIBS="-ldld $LIBS"
10059 if test x$gcc_no_link = xyes; then
10060 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10061 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10062 { (exit 1); exit 1; }; }
10064 cat >conftest.$ac_ext <<_ACEOF
10065 /* confdefs.h. */
10066 _ACEOF
10067 cat confdefs.h >>conftest.$ac_ext
10068 cat >>conftest.$ac_ext <<_ACEOF
10069 /* end confdefs.h. */
10071 /* Override any gcc2 internal prototype to avoid an error. */
10072 #ifdef __cplusplus
10073 extern "C"
10074 #endif
10075 /* We use char because int might match the return type of a gcc2
10076 builtin and then its argument prototype would still apply. */
10077 char dld_link ();
10079 main ()
10081 dld_link ();
10083 return 0;
10085 _ACEOF
10086 rm -f conftest.$ac_objext conftest$ac_exeext
10087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10088 (eval $ac_link) 2>conftest.er1
10089 ac_status=$?
10090 grep -v '^ *+' conftest.er1 >conftest.err
10091 rm -f conftest.er1
10092 cat conftest.err >&5
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); } &&
10095 { ac_try='test -z "$ac_c_werror_flag"
10096 || test ! -s conftest.err'
10097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10098 (eval $ac_try) 2>&5
10099 ac_status=$?
10100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101 (exit $ac_status); }; } &&
10102 { ac_try='test -s conftest$ac_exeext'
10103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10104 (eval $ac_try) 2>&5
10105 ac_status=$?
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); }; }; then
10108 ac_cv_lib_dld_dld_link=yes
10109 else
10110 echo "$as_me: failed program was:" >&5
10111 sed 's/^/| /' conftest.$ac_ext >&5
10113 ac_cv_lib_dld_dld_link=no
10115 rm -f conftest.err conftest.$ac_objext \
10116 conftest$ac_exeext conftest.$ac_ext
10117 LIBS=$ac_check_lib_save_LIBS
10119 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10120 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10121 if test $ac_cv_lib_dld_dld_link = yes; then
10122 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10141 esac
10143 if test "x$lt_cv_dlopen" != xno; then
10144 enable_dlopen=yes
10145 else
10146 enable_dlopen=no
10149 case $lt_cv_dlopen in
10150 dlopen)
10151 save_CPPFLAGS="$CPPFLAGS"
10152 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10154 save_LDFLAGS="$LDFLAGS"
10155 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10157 save_LIBS="$LIBS"
10158 LIBS="$lt_cv_dlopen_libs $LIBS"
10160 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10161 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10162 if test "${lt_cv_dlopen_self+set}" = set; then
10163 echo $ECHO_N "(cached) $ECHO_C" >&6
10164 else
10165 if test "$cross_compiling" = yes; then :
10166 lt_cv_dlopen_self=cross
10167 else
10168 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10169 lt_status=$lt_dlunknown
10170 cat > conftest.$ac_ext <<_LT_EOF
10171 #line 10171 "configure"
10172 #include "confdefs.h"
10174 #if HAVE_DLFCN_H
10175 #include <dlfcn.h>
10176 #endif
10178 #include <stdio.h>
10180 #ifdef RTLD_GLOBAL
10181 # define LT_DLGLOBAL RTLD_GLOBAL
10182 #else
10183 # ifdef DL_GLOBAL
10184 # define LT_DLGLOBAL DL_GLOBAL
10185 # else
10186 # define LT_DLGLOBAL 0
10187 # endif
10188 #endif
10190 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10191 find out it does not work in some platform. */
10192 #ifndef LT_DLLAZY_OR_NOW
10193 # ifdef RTLD_LAZY
10194 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10195 # else
10196 # ifdef DL_LAZY
10197 # define LT_DLLAZY_OR_NOW DL_LAZY
10198 # else
10199 # ifdef RTLD_NOW
10200 # define LT_DLLAZY_OR_NOW RTLD_NOW
10201 # else
10202 # ifdef DL_NOW
10203 # define LT_DLLAZY_OR_NOW DL_NOW
10204 # else
10205 # define LT_DLLAZY_OR_NOW 0
10206 # endif
10207 # endif
10208 # endif
10209 # endif
10210 #endif
10212 void fnord() { int i=42;}
10213 int main ()
10215 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10216 int status = $lt_dlunknown;
10218 if (self)
10220 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10221 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10222 /* dlclose (self); */
10224 else
10225 puts (dlerror ());
10227 return status;
10229 _LT_EOF
10230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10231 (eval $ac_link) 2>&5
10232 ac_status=$?
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10235 (./conftest; exit; ) >&5 2>/dev/null
10236 lt_status=$?
10237 case x$lt_status in
10238 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10239 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10240 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10241 esac
10242 else :
10243 # compilation failed
10244 lt_cv_dlopen_self=no
10247 rm -fr conftest*
10251 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10252 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10254 if test "x$lt_cv_dlopen_self" = xyes; then
10255 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10256 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10257 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10258 if test "${lt_cv_dlopen_self_static+set}" = set; then
10259 echo $ECHO_N "(cached) $ECHO_C" >&6
10260 else
10261 if test "$cross_compiling" = yes; then :
10262 lt_cv_dlopen_self_static=cross
10263 else
10264 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10265 lt_status=$lt_dlunknown
10266 cat > conftest.$ac_ext <<_LT_EOF
10267 #line 10267 "configure"
10268 #include "confdefs.h"
10270 #if HAVE_DLFCN_H
10271 #include <dlfcn.h>
10272 #endif
10274 #include <stdio.h>
10276 #ifdef RTLD_GLOBAL
10277 # define LT_DLGLOBAL RTLD_GLOBAL
10278 #else
10279 # ifdef DL_GLOBAL
10280 # define LT_DLGLOBAL DL_GLOBAL
10281 # else
10282 # define LT_DLGLOBAL 0
10283 # endif
10284 #endif
10286 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10287 find out it does not work in some platform. */
10288 #ifndef LT_DLLAZY_OR_NOW
10289 # ifdef RTLD_LAZY
10290 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10291 # else
10292 # ifdef DL_LAZY
10293 # define LT_DLLAZY_OR_NOW DL_LAZY
10294 # else
10295 # ifdef RTLD_NOW
10296 # define LT_DLLAZY_OR_NOW RTLD_NOW
10297 # else
10298 # ifdef DL_NOW
10299 # define LT_DLLAZY_OR_NOW DL_NOW
10300 # else
10301 # define LT_DLLAZY_OR_NOW 0
10302 # endif
10303 # endif
10304 # endif
10305 # endif
10306 #endif
10308 void fnord() { int i=42;}
10309 int main ()
10311 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10312 int status = $lt_dlunknown;
10314 if (self)
10316 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10317 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10318 /* dlclose (self); */
10320 else
10321 puts (dlerror ());
10323 return status;
10325 _LT_EOF
10326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10327 (eval $ac_link) 2>&5
10328 ac_status=$?
10329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10331 (./conftest; exit; ) >&5 2>/dev/null
10332 lt_status=$?
10333 case x$lt_status in
10334 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10335 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10336 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10337 esac
10338 else :
10339 # compilation failed
10340 lt_cv_dlopen_self_static=no
10343 rm -fr conftest*
10347 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10348 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10351 CPPFLAGS="$save_CPPFLAGS"
10352 LDFLAGS="$save_LDFLAGS"
10353 LIBS="$save_LIBS"
10355 esac
10357 case $lt_cv_dlopen_self in
10358 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10359 *) enable_dlopen_self=unknown ;;
10360 esac
10362 case $lt_cv_dlopen_self_static in
10363 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10364 *) enable_dlopen_self_static=unknown ;;
10365 esac
10384 striplib=
10385 old_striplib=
10386 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10387 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10388 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10389 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10390 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10391 echo "$as_me:$LINENO: result: yes" >&5
10392 echo "${ECHO_T}yes" >&6
10393 else
10394 # FIXME - insert some real tests, host_os isn't really good enough
10395 case $host_os in
10396 darwin*)
10397 if test -n "$STRIP" ; then
10398 striplib="$STRIP -x"
10399 old_striplib="$STRIP -S"
10400 echo "$as_me:$LINENO: result: yes" >&5
10401 echo "${ECHO_T}yes" >&6
10402 else
10403 echo "$as_me:$LINENO: result: no" >&5
10404 echo "${ECHO_T}no" >&6
10408 echo "$as_me:$LINENO: result: no" >&5
10409 echo "${ECHO_T}no" >&6
10411 esac
10425 # Report which library types will actually be built
10426 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10427 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10428 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10429 echo "${ECHO_T}$can_build_shared" >&6
10431 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10432 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10433 test "$can_build_shared" = "no" && enable_shared=no
10435 # On AIX, shared libraries and static libraries use the same namespace, and
10436 # are all built from PIC.
10437 case $host_os in
10438 aix3*)
10439 test "$enable_shared" = yes && enable_static=no
10440 if test -n "$RANLIB"; then
10441 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10442 postinstall_cmds='$RANLIB $lib'
10446 aix[4-9]*)
10447 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10448 test "$enable_shared" = yes && enable_static=no
10451 esac
10452 echo "$as_me:$LINENO: result: $enable_shared" >&5
10453 echo "${ECHO_T}$enable_shared" >&6
10455 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10456 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10457 # Make sure either enable_shared or enable_static is yes.
10458 test "$enable_shared" = yes || enable_static=yes
10459 echo "$as_me:$LINENO: result: $enable_static" >&5
10460 echo "${ECHO_T}$enable_static" >&6
10466 ac_ext=c
10467 ac_cpp='$CPP $CPPFLAGS'
10468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10472 CC="$lt_save_CC"
10486 ac_config_commands="$ac_config_commands libtool"
10491 # Only expand once:
10495 if test "x$CC" != xcc; then
10496 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
10497 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
10498 else
10499 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
10500 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
10502 set dummy $CC; ac_cc=`echo $2 |
10503 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
10504 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
10505 echo $ECHO_N "(cached) $ECHO_C" >&6
10506 else
10507 cat >conftest.$ac_ext <<_ACEOF
10508 /* confdefs.h. */
10509 _ACEOF
10510 cat confdefs.h >>conftest.$ac_ext
10511 cat >>conftest.$ac_ext <<_ACEOF
10512 /* end confdefs.h. */
10515 main ()
10519 return 0;
10521 _ACEOF
10522 # Make sure it works both with $CC and with simple cc.
10523 # We do the test twice because some compilers refuse to overwrite an
10524 # existing .o file with -o, though they will create one.
10525 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
10526 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10527 (eval $ac_try) 2>&5
10528 ac_status=$?
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); } &&
10531 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10532 (eval $ac_try) 2>&5
10533 ac_status=$?
10534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535 (exit $ac_status); };
10536 then
10537 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
10538 if test "x$CC" != xcc; then
10539 # Test first that cc exists at all.
10540 if { ac_try='cc -c conftest.$ac_ext >&5'
10541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10542 (eval $ac_try) 2>&5
10543 ac_status=$?
10544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); }; }; then
10546 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
10547 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10548 (eval $ac_try) 2>&5
10549 ac_status=$?
10550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551 (exit $ac_status); } &&
10552 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10553 (eval $ac_try) 2>&5
10554 ac_status=$?
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); };
10557 then
10558 # cc works too.
10560 else
10561 # cc exists but doesn't like -o.
10562 eval ac_cv_prog_cc_${ac_cc}_c_o=no
10566 else
10567 eval ac_cv_prog_cc_${ac_cc}_c_o=no
10569 rm -f conftest*
10572 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
10573 echo "$as_me:$LINENO: result: yes" >&5
10574 echo "${ECHO_T}yes" >&6
10575 else
10576 echo "$as_me:$LINENO: result: no" >&5
10577 echo "${ECHO_T}no" >&6
10579 cat >>confdefs.h <<\_ACEOF
10580 #define NO_MINUS_C_MINUS_O 1
10581 _ACEOF
10585 # expand $ac_aux_dir to an absolute path
10586 am_aux_dir=`cd $ac_aux_dir && pwd`
10588 # FIXME: we rely on the cache variable name because
10589 # there is no other way.
10590 set dummy $CC
10591 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
10592 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
10593 # Losing compiler, so override with the script.
10594 # FIXME: It is wrong to rewrite CC.
10595 # But if we don't then we get into trouble of one sort or another.
10596 # A longer-term fix would be to have automake use am__CC in this case,
10597 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
10598 CC="$am_aux_dir/compile $CC"
10602 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10603 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
10604 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
10605 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
10606 echo $ECHO_N "(cached) $ECHO_C" >&6
10607 else
10608 cat >conftest.make <<\_ACEOF
10609 all:
10610 @echo 'ac_maketemp="$(MAKE)"'
10611 _ACEOF
10612 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10613 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
10614 if test -n "$ac_maketemp"; then
10615 eval ac_cv_prog_make_${ac_make}_set=yes
10616 else
10617 eval ac_cv_prog_make_${ac_make}_set=no
10619 rm -f conftest.make
10621 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
10622 echo "$as_me:$LINENO: result: yes" >&5
10623 echo "${ECHO_T}yes" >&6
10624 SET_MAKE=
10625 else
10626 echo "$as_me:$LINENO: result: no" >&5
10627 echo "${ECHO_T}no" >&6
10628 SET_MAKE="MAKE=${MAKE-make}"
10632 # -------
10633 # Headers
10634 # -------
10636 # Sanity check for the cross-compilation case:
10637 if test "${ac_cv_header_stdio_h+set}" = set; then
10638 echo "$as_me:$LINENO: checking for stdio.h" >&5
10639 echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6
10640 if test "${ac_cv_header_stdio_h+set}" = set; then
10641 echo $ECHO_N "(cached) $ECHO_C" >&6
10643 echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
10644 echo "${ECHO_T}$ac_cv_header_stdio_h" >&6
10645 else
10646 # Is the header compilable?
10647 echo "$as_me:$LINENO: checking stdio.h usability" >&5
10648 echo $ECHO_N "checking stdio.h usability... $ECHO_C" >&6
10649 cat >conftest.$ac_ext <<_ACEOF
10650 /* confdefs.h. */
10651 _ACEOF
10652 cat confdefs.h >>conftest.$ac_ext
10653 cat >>conftest.$ac_ext <<_ACEOF
10654 /* end confdefs.h. */
10655 $ac_includes_default
10656 #include <stdio.h>
10657 _ACEOF
10658 rm -f conftest.$ac_objext
10659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10660 (eval $ac_compile) 2>conftest.er1
10661 ac_status=$?
10662 grep -v '^ *+' conftest.er1 >conftest.err
10663 rm -f conftest.er1
10664 cat conftest.err >&5
10665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666 (exit $ac_status); } &&
10667 { ac_try='test -z "$ac_c_werror_flag"
10668 || test ! -s conftest.err'
10669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10670 (eval $ac_try) 2>&5
10671 ac_status=$?
10672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673 (exit $ac_status); }; } &&
10674 { ac_try='test -s conftest.$ac_objext'
10675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10676 (eval $ac_try) 2>&5
10677 ac_status=$?
10678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679 (exit $ac_status); }; }; then
10680 ac_header_compiler=yes
10681 else
10682 echo "$as_me: failed program was:" >&5
10683 sed 's/^/| /' conftest.$ac_ext >&5
10685 ac_header_compiler=no
10687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10688 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10689 echo "${ECHO_T}$ac_header_compiler" >&6
10691 # Is the header present?
10692 echo "$as_me:$LINENO: checking stdio.h presence" >&5
10693 echo $ECHO_N "checking stdio.h presence... $ECHO_C" >&6
10694 cat >conftest.$ac_ext <<_ACEOF
10695 /* confdefs.h. */
10696 _ACEOF
10697 cat confdefs.h >>conftest.$ac_ext
10698 cat >>conftest.$ac_ext <<_ACEOF
10699 /* end confdefs.h. */
10700 #include <stdio.h>
10701 _ACEOF
10702 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10703 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10704 ac_status=$?
10705 grep -v '^ *+' conftest.er1 >conftest.err
10706 rm -f conftest.er1
10707 cat conftest.err >&5
10708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709 (exit $ac_status); } >/dev/null; then
10710 if test -s conftest.err; then
10711 ac_cpp_err=$ac_c_preproc_warn_flag
10712 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10713 else
10714 ac_cpp_err=
10716 else
10717 ac_cpp_err=yes
10719 if test -z "$ac_cpp_err"; then
10720 ac_header_preproc=yes
10721 else
10722 echo "$as_me: failed program was:" >&5
10723 sed 's/^/| /' conftest.$ac_ext >&5
10725 ac_header_preproc=no
10727 rm -f conftest.err conftest.$ac_ext
10728 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10729 echo "${ECHO_T}$ac_header_preproc" >&6
10731 # So? What about this header?
10732 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10733 yes:no: )
10734 { echo "$as_me:$LINENO: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&5
10735 echo "$as_me: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10736 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the compiler's result" >&5
10737 echo "$as_me: WARNING: stdio.h: proceeding with the compiler's result" >&2;}
10738 ac_header_preproc=yes
10740 no:yes:* )
10741 { echo "$as_me:$LINENO: WARNING: stdio.h: present but cannot be compiled" >&5
10742 echo "$as_me: WARNING: stdio.h: present but cannot be compiled" >&2;}
10743 { echo "$as_me:$LINENO: WARNING: stdio.h: check for missing prerequisite headers?" >&5
10744 echo "$as_me: WARNING: stdio.h: check for missing prerequisite headers?" >&2;}
10745 { echo "$as_me:$LINENO: WARNING: stdio.h: see the Autoconf documentation" >&5
10746 echo "$as_me: WARNING: stdio.h: see the Autoconf documentation" >&2;}
10747 { echo "$as_me:$LINENO: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&5
10748 echo "$as_me: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&2;}
10749 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the preprocessor's result" >&5
10750 echo "$as_me: WARNING: stdio.h: proceeding with the preprocessor's result" >&2;}
10751 { echo "$as_me:$LINENO: WARNING: stdio.h: in the future, the compiler will take precedence" >&5
10752 echo "$as_me: WARNING: stdio.h: in the future, the compiler will take precedence" >&2;}
10754 cat <<\_ASBOX
10755 ## ----------------------------------------- ##
10756 ## Report this to the package-unused lists. ##
10757 ## ----------------------------------------- ##
10758 _ASBOX
10760 sed "s/^/$as_me: WARNING: /" >&2
10762 esac
10763 echo "$as_me:$LINENO: checking for stdio.h" >&5
10764 echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6
10765 if test "${ac_cv_header_stdio_h+set}" = set; then
10766 echo $ECHO_N "(cached) $ECHO_C" >&6
10767 else
10768 ac_cv_header_stdio_h=$ac_header_preproc
10770 echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
10771 echo "${ECHO_T}$ac_cv_header_stdio_h" >&6
10774 if test $ac_cv_header_stdio_h = yes; then
10776 else
10777 { { echo "$as_me:$LINENO: error: Can't find stdio.h.
10778 You must have a usable C system for the target already installed, at least
10779 including headers and, preferably, the library, before you can configure
10780 the Objective C runtime system. If necessary, install gcc now with
10781 \`LANGUAGES=c', then the target library, then build with \`LANGUAGES=objc'." >&5
10782 echo "$as_me: error: Can't find stdio.h.
10783 You must have a usable C system for the target already installed, at least
10784 including headers and, preferably, the library, before you can configure
10785 the Objective C runtime system. If necessary, install gcc now with
10786 \`LANGUAGES=c', then the target library, then build with \`LANGUAGES=objc'." >&2;}
10787 { (exit 1); exit 1; }; }
10792 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10793 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10794 if test "${ac_cv_header_stdc+set}" = set; then
10795 echo $ECHO_N "(cached) $ECHO_C" >&6
10796 else
10797 cat >conftest.$ac_ext <<_ACEOF
10798 /* confdefs.h. */
10799 _ACEOF
10800 cat confdefs.h >>conftest.$ac_ext
10801 cat >>conftest.$ac_ext <<_ACEOF
10802 /* end confdefs.h. */
10803 #include <stdlib.h>
10804 #include <stdarg.h>
10805 #include <string.h>
10806 #include <float.h>
10809 main ()
10813 return 0;
10815 _ACEOF
10816 rm -f conftest.$ac_objext
10817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10818 (eval $ac_compile) 2>conftest.er1
10819 ac_status=$?
10820 grep -v '^ *+' conftest.er1 >conftest.err
10821 rm -f conftest.er1
10822 cat conftest.err >&5
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); } &&
10825 { ac_try='test -z "$ac_c_werror_flag"
10826 || test ! -s conftest.err'
10827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10828 (eval $ac_try) 2>&5
10829 ac_status=$?
10830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831 (exit $ac_status); }; } &&
10832 { ac_try='test -s conftest.$ac_objext'
10833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10834 (eval $ac_try) 2>&5
10835 ac_status=$?
10836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837 (exit $ac_status); }; }; then
10838 ac_cv_header_stdc=yes
10839 else
10840 echo "$as_me: failed program was:" >&5
10841 sed 's/^/| /' conftest.$ac_ext >&5
10843 ac_cv_header_stdc=no
10845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10847 if test $ac_cv_header_stdc = yes; then
10848 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10849 cat >conftest.$ac_ext <<_ACEOF
10850 /* confdefs.h. */
10851 _ACEOF
10852 cat confdefs.h >>conftest.$ac_ext
10853 cat >>conftest.$ac_ext <<_ACEOF
10854 /* end confdefs.h. */
10855 #include <string.h>
10857 _ACEOF
10858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10859 $EGREP "memchr" >/dev/null 2>&1; then
10861 else
10862 ac_cv_header_stdc=no
10864 rm -f conftest*
10868 if test $ac_cv_header_stdc = yes; then
10869 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10870 cat >conftest.$ac_ext <<_ACEOF
10871 /* confdefs.h. */
10872 _ACEOF
10873 cat confdefs.h >>conftest.$ac_ext
10874 cat >>conftest.$ac_ext <<_ACEOF
10875 /* end confdefs.h. */
10876 #include <stdlib.h>
10878 _ACEOF
10879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10880 $EGREP "free" >/dev/null 2>&1; then
10882 else
10883 ac_cv_header_stdc=no
10885 rm -f conftest*
10889 if test $ac_cv_header_stdc = yes; then
10890 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10891 if test "$cross_compiling" = yes; then
10893 else
10894 cat >conftest.$ac_ext <<_ACEOF
10895 /* confdefs.h. */
10896 _ACEOF
10897 cat confdefs.h >>conftest.$ac_ext
10898 cat >>conftest.$ac_ext <<_ACEOF
10899 /* end confdefs.h. */
10900 #include <ctype.h>
10901 #if ((' ' & 0x0FF) == 0x020)
10902 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10903 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10904 #else
10905 # define ISLOWER(c) \
10906 (('a' <= (c) && (c) <= 'i') \
10907 || ('j' <= (c) && (c) <= 'r') \
10908 || ('s' <= (c) && (c) <= 'z'))
10909 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10910 #endif
10912 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10914 main ()
10916 int i;
10917 for (i = 0; i < 256; i++)
10918 if (XOR (islower (i), ISLOWER (i))
10919 || toupper (i) != TOUPPER (i))
10920 exit(2);
10921 exit (0);
10923 _ACEOF
10924 rm -f conftest$ac_exeext
10925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10926 (eval $ac_link) 2>&5
10927 ac_status=$?
10928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10931 (eval $ac_try) 2>&5
10932 ac_status=$?
10933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934 (exit $ac_status); }; }; then
10936 else
10937 echo "$as_me: program exited with status $ac_status" >&5
10938 echo "$as_me: failed program was:" >&5
10939 sed 's/^/| /' conftest.$ac_ext >&5
10941 ( exit $ac_status )
10942 ac_cv_header_stdc=no
10944 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10948 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10949 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10950 if test $ac_cv_header_stdc = yes; then
10952 cat >>confdefs.h <<\_ACEOF
10953 #define STDC_HEADERS 1
10954 _ACEOF
10960 for ac_header in sched.h
10962 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10964 echo "$as_me:$LINENO: checking for $ac_header" >&5
10965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10967 echo $ECHO_N "(cached) $ECHO_C" >&6
10969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10970 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10971 else
10972 # Is the header compilable?
10973 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10974 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10975 cat >conftest.$ac_ext <<_ACEOF
10976 /* confdefs.h. */
10977 _ACEOF
10978 cat confdefs.h >>conftest.$ac_ext
10979 cat >>conftest.$ac_ext <<_ACEOF
10980 /* end confdefs.h. */
10981 $ac_includes_default
10982 #include <$ac_header>
10983 _ACEOF
10984 rm -f conftest.$ac_objext
10985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10986 (eval $ac_compile) 2>conftest.er1
10987 ac_status=$?
10988 grep -v '^ *+' conftest.er1 >conftest.err
10989 rm -f conftest.er1
10990 cat conftest.err >&5
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); } &&
10993 { ac_try='test -z "$ac_c_werror_flag"
10994 || test ! -s conftest.err'
10995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10996 (eval $ac_try) 2>&5
10997 ac_status=$?
10998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999 (exit $ac_status); }; } &&
11000 { ac_try='test -s conftest.$ac_objext'
11001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11002 (eval $ac_try) 2>&5
11003 ac_status=$?
11004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005 (exit $ac_status); }; }; then
11006 ac_header_compiler=yes
11007 else
11008 echo "$as_me: failed program was:" >&5
11009 sed 's/^/| /' conftest.$ac_ext >&5
11011 ac_header_compiler=no
11013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11014 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11015 echo "${ECHO_T}$ac_header_compiler" >&6
11017 # Is the header present?
11018 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11019 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11020 cat >conftest.$ac_ext <<_ACEOF
11021 /* confdefs.h. */
11022 _ACEOF
11023 cat confdefs.h >>conftest.$ac_ext
11024 cat >>conftest.$ac_ext <<_ACEOF
11025 /* end confdefs.h. */
11026 #include <$ac_header>
11027 _ACEOF
11028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11029 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11030 ac_status=$?
11031 grep -v '^ *+' conftest.er1 >conftest.err
11032 rm -f conftest.er1
11033 cat conftest.err >&5
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); } >/dev/null; then
11036 if test -s conftest.err; then
11037 ac_cpp_err=$ac_c_preproc_warn_flag
11038 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11039 else
11040 ac_cpp_err=
11042 else
11043 ac_cpp_err=yes
11045 if test -z "$ac_cpp_err"; then
11046 ac_header_preproc=yes
11047 else
11048 echo "$as_me: failed program was:" >&5
11049 sed 's/^/| /' conftest.$ac_ext >&5
11051 ac_header_preproc=no
11053 rm -f conftest.err conftest.$ac_ext
11054 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11055 echo "${ECHO_T}$ac_header_preproc" >&6
11057 # So? What about this header?
11058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11059 yes:no: )
11060 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11061 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11063 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11064 ac_header_preproc=yes
11066 no:yes:* )
11067 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11068 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11069 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11070 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11071 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11072 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11073 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11074 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11076 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11077 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11078 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11080 cat <<\_ASBOX
11081 ## ----------------------------------------- ##
11082 ## Report this to the package-unused lists. ##
11083 ## ----------------------------------------- ##
11084 _ASBOX
11086 sed "s/^/$as_me: WARNING: /" >&2
11088 esac
11089 echo "$as_me:$LINENO: checking for $ac_header" >&5
11090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11092 echo $ECHO_N "(cached) $ECHO_C" >&6
11093 else
11094 eval "$as_ac_Header=\$ac_header_preproc"
11096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11100 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11101 cat >>confdefs.h <<_ACEOF
11102 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11103 _ACEOF
11107 done
11110 # -----------
11111 # Miscellanea
11112 # -----------
11114 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
11115 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
11116 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
11117 echo "$as_me:$LINENO: result: $target_thread_file" >&5
11118 echo "${ECHO_T}$target_thread_file" >&6
11120 if test $target_thread_file != single; then
11122 cat >>confdefs.h <<\_ACEOF
11123 #define HAVE_GTHR_DEFAULT 1
11124 _ACEOF
11129 echo "$as_me:$LINENO: checking for exception model to use" >&5
11130 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
11131 ac_ext=c
11132 ac_cpp='$CPP $CPPFLAGS'
11133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11137 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
11138 if test "${enable_sjlj_exceptions+set}" = set; then
11139 enableval="$enable_sjlj_exceptions"
11141 else
11142 cat > conftest.$ac_ext << EOF
11143 #line 11143 "configure"
11144 @interface Frob
11145 @end
11146 @implementation Frob
11147 @end
11148 int proc();
11149 int foo()
11151 @try {
11152 return proc();
11154 @catch (Frob* ex) {
11155 return 0;
11159 old_CFLAGS="$CFLAGS"
11160 CFLAGS="-x objective-c -fgnu-runtime -fobjc-exceptions -S"
11161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11162 (eval $ac_compile) 2>&5
11163 ac_status=$?
11164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165 (exit $ac_status); }; then
11166 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
11167 enable_sjlj_exceptions=yes
11168 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
11169 enable_sjlj_exceptions=no
11172 CFLAGS="$old_CFLAGS"
11173 rm -f conftest*
11175 if test x$enable_sjlj_exceptions = xyes; then
11177 cat >>confdefs.h <<\_ACEOF
11178 #define SJLJ_EXCEPTIONS 1
11179 _ACEOF
11181 ac_exception_model_name=sjlj
11182 elif test x$enable_sjlj_exceptions = xno; then
11183 ac_exception_model_name="call frame"
11184 else
11185 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
11186 echo "$as_me: error: unable to detect exception model" >&2;}
11187 { (exit 1); exit 1; }; }
11189 ac_ext=c
11190 ac_cpp='$CPP $CPPFLAGS'
11191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11195 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
11196 echo "${ECHO_T}$ac_exception_model_name" >&6
11198 # ------
11199 # Output
11200 # ------
11202 if test ${multilib} = yes; then
11203 multilib_arg="--enable-multilib"
11204 else
11205 multilib_arg=
11208 ac_config_files="$ac_config_files Makefile"
11210 cat >confcache <<\_ACEOF
11211 # This file is a shell script that caches the results of configure
11212 # tests run on this system so they can be shared between configure
11213 # scripts and configure runs, see configure's option --config-cache.
11214 # It is not useful on other systems. If it contains results you don't
11215 # want to keep, you may remove or edit it.
11217 # config.status only pays attention to the cache file if you give it
11218 # the --recheck option to rerun configure.
11220 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11221 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11222 # following values.
11224 _ACEOF
11226 # The following way of writing the cache mishandles newlines in values,
11227 # but we know of no workaround that is simple, portable, and efficient.
11228 # So, don't put newlines in cache variables' values.
11229 # Ultrix sh set writes to stderr and can't be redirected directly,
11230 # and sets the high bit in the cache file unless we assign to the vars.
11232 (set) 2>&1 |
11233 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11234 *ac_space=\ *)
11235 # `set' does not quote correctly, so add quotes (double-quote
11236 # substitution turns \\\\ into \\, and sed turns \\ into \).
11237 sed -n \
11238 "s/'/'\\\\''/g;
11239 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11242 # `set' quotes correctly as required by POSIX, so do not add quotes.
11243 sed -n \
11244 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11246 esac;
11248 sed '
11249 t clear
11250 : clear
11251 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11252 t end
11253 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11254 : end' >>confcache
11255 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11256 if test -w $cache_file; then
11257 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11258 cat confcache >$cache_file
11259 else
11260 echo "not updating unwritable cache $cache_file"
11263 rm -f confcache
11265 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11266 # Let make expand exec_prefix.
11267 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11269 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11270 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11271 # trailing colons and then remove the whole line if VPATH becomes empty
11272 # (actually we leave an empty line to preserve line numbers).
11273 if test "x$srcdir" = x.; then
11274 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11275 s/:*\$(srcdir):*/:/;
11276 s/:*\${srcdir}:*/:/;
11277 s/:*@srcdir@:*/:/;
11278 s/^\([^=]*=[ ]*\):*/\1/;
11279 s/:*$//;
11280 s/^[^=]*=[ ]*$//;
11284 DEFS=-DHAVE_CONFIG_H
11286 ac_libobjs=
11287 ac_ltlibobjs=
11288 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11289 # 1. Remove the extension, and $U if already installed.
11290 ac_i=`echo "$ac_i" |
11291 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11292 # 2. Add them.
11293 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11294 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11295 done
11296 LIBOBJS=$ac_libobjs
11298 LTLIBOBJS=$ac_ltlibobjs
11301 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11302 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11303 Usually this means the macro was only invoked conditionally." >&5
11304 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11305 Usually this means the macro was only invoked conditionally." >&2;}
11306 { (exit 1); exit 1; }; }
11309 : ${CONFIG_STATUS=./config.status}
11310 ac_clean_files_save=$ac_clean_files
11311 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11312 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11313 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11314 cat >$CONFIG_STATUS <<_ACEOF
11315 #! $SHELL
11316 # Generated by $as_me.
11317 # Run this file to recreate the current configuration.
11318 # Compiler output produced by configure, useful for debugging
11319 # configure, is in config.log if it exists.
11321 debug=false
11322 ac_cs_recheck=false
11323 ac_cs_silent=false
11324 SHELL=\${CONFIG_SHELL-$SHELL}
11325 _ACEOF
11327 cat >>$CONFIG_STATUS <<\_ACEOF
11328 ## --------------------- ##
11329 ## M4sh Initialization. ##
11330 ## --------------------- ##
11332 # Be Bourne compatible
11333 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11334 emulate sh
11335 NULLCMD=:
11336 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11337 # is contrary to our usage. Disable this feature.
11338 alias -g '${1+"$@"}'='"$@"'
11339 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11340 set -o posix
11342 DUALCASE=1; export DUALCASE # for MKS sh
11344 # Support unset when possible.
11345 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11346 as_unset=unset
11347 else
11348 as_unset=false
11352 # Work around bugs in pre-3.0 UWIN ksh.
11353 $as_unset ENV MAIL MAILPATH
11354 PS1='$ '
11355 PS2='> '
11356 PS4='+ '
11358 # NLS nuisances.
11359 for as_var in \
11360 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11361 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11362 LC_TELEPHONE LC_TIME
11364 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11365 eval $as_var=C; export $as_var
11366 else
11367 $as_unset $as_var
11369 done
11371 # Required to use basename.
11372 if expr a : '\(a\)' >/dev/null 2>&1; then
11373 as_expr=expr
11374 else
11375 as_expr=false
11378 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11379 as_basename=basename
11380 else
11381 as_basename=false
11385 # Name of the executable.
11386 as_me=`$as_basename "$0" ||
11387 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11388 X"$0" : 'X\(//\)$' \| \
11389 X"$0" : 'X\(/\)$' \| \
11390 . : '\(.\)' 2>/dev/null ||
11391 echo X/"$0" |
11392 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11393 /^X\/\(\/\/\)$/{ s//\1/; q; }
11394 /^X\/\(\/\).*/{ s//\1/; q; }
11395 s/.*/./; q'`
11398 # PATH needs CR, and LINENO needs CR and PATH.
11399 # Avoid depending upon Character Ranges.
11400 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11401 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11402 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11403 as_cr_digits='0123456789'
11404 as_cr_alnum=$as_cr_Letters$as_cr_digits
11406 # The user is always right.
11407 if test "${PATH_SEPARATOR+set}" != set; then
11408 echo "#! /bin/sh" >conf$$.sh
11409 echo "exit 0" >>conf$$.sh
11410 chmod +x conf$$.sh
11411 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11412 PATH_SEPARATOR=';'
11413 else
11414 PATH_SEPARATOR=:
11416 rm -f conf$$.sh
11420 as_lineno_1=$LINENO
11421 as_lineno_2=$LINENO
11422 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11423 test "x$as_lineno_1" != "x$as_lineno_2" &&
11424 test "x$as_lineno_3" = "x$as_lineno_2" || {
11425 # Find who we are. Look in the path if we contain no path at all
11426 # relative or not.
11427 case $0 in
11428 *[\\/]* ) as_myself=$0 ;;
11429 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11430 for as_dir in $PATH
11432 IFS=$as_save_IFS
11433 test -z "$as_dir" && as_dir=.
11434 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11435 done
11438 esac
11439 # We did not find ourselves, most probably we were run as `sh COMMAND'
11440 # in which case we are not to be found in the path.
11441 if test "x$as_myself" = x; then
11442 as_myself=$0
11444 if test ! -f "$as_myself"; then
11445 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11446 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11447 { (exit 1); exit 1; }; }
11449 case $CONFIG_SHELL in
11451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11452 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11454 IFS=$as_save_IFS
11455 test -z "$as_dir" && as_dir=.
11456 for as_base in sh bash ksh sh5; do
11457 case $as_dir in
11459 if ("$as_dir/$as_base" -c '
11460 as_lineno_1=$LINENO
11461 as_lineno_2=$LINENO
11462 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11463 test "x$as_lineno_1" != "x$as_lineno_2" &&
11464 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11465 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11466 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11467 CONFIG_SHELL=$as_dir/$as_base
11468 export CONFIG_SHELL
11469 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11470 fi;;
11471 esac
11472 done
11473 done
11475 esac
11477 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11478 # uniformly replaced by the line number. The first 'sed' inserts a
11479 # line-number line before each line; the second 'sed' does the real
11480 # work. The second script uses 'N' to pair each line-number line
11481 # with the numbered line, and appends trailing '-' during
11482 # substitution so that $LINENO is not a special case at line end.
11483 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11484 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11485 sed '=' <$as_myself |
11486 sed '
11488 s,$,-,
11489 : loop
11490 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11491 t loop
11492 s,-$,,
11493 s,^['$as_cr_digits']*\n,,
11494 ' >$as_me.lineno &&
11495 chmod +x $as_me.lineno ||
11496 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11497 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11498 { (exit 1); exit 1; }; }
11500 # Don't try to exec as it changes $[0], causing all sort of problems
11501 # (the dirname of $[0] is not the place where we might find the
11502 # original and so on. Autoconf is especially sensible to this).
11503 . ./$as_me.lineno
11504 # Exit status is that of the last command.
11505 exit
11509 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11510 *c*,-n*) ECHO_N= ECHO_C='
11511 ' ECHO_T=' ' ;;
11512 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11513 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11514 esac
11516 if expr a : '\(a\)' >/dev/null 2>&1; then
11517 as_expr=expr
11518 else
11519 as_expr=false
11522 rm -f conf$$ conf$$.exe conf$$.file
11523 echo >conf$$.file
11524 if ln -s conf$$.file conf$$ 2>/dev/null; then
11525 # We could just check for DJGPP; but this test a) works b) is more generic
11526 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11527 if test -f conf$$.exe; then
11528 # Don't use ln at all; we don't have any links
11529 as_ln_s='cp -p'
11530 else
11531 as_ln_s='ln -s'
11533 elif ln conf$$.file conf$$ 2>/dev/null; then
11534 as_ln_s=ln
11535 else
11536 as_ln_s='cp -p'
11538 rm -f conf$$ conf$$.exe conf$$.file
11540 if mkdir -p . 2>/dev/null; then
11541 as_mkdir_p=:
11542 else
11543 test -d ./-p && rmdir ./-p
11544 as_mkdir_p=false
11547 as_executable_p="test -f"
11549 # Sed expression to map a string onto a valid CPP name.
11550 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11552 # Sed expression to map a string onto a valid variable name.
11553 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11556 # IFS
11557 # We need space, tab and new line, in precisely that order.
11558 as_nl='
11560 IFS=" $as_nl"
11562 # CDPATH.
11563 $as_unset CDPATH
11565 exec 6>&1
11567 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11568 # report actual input values of CONFIG_FILES etc. instead of their
11569 # values after options handling. Logging --version etc. is OK.
11570 exec 5>>config.log
11572 echo
11573 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11574 ## Running $as_me. ##
11575 _ASBOX
11576 } >&5
11577 cat >&5 <<_CSEOF
11579 This file was extended by package-unused $as_me version-unused, which was
11580 generated by GNU Autoconf 2.59. Invocation command line was
11582 CONFIG_FILES = $CONFIG_FILES
11583 CONFIG_HEADERS = $CONFIG_HEADERS
11584 CONFIG_LINKS = $CONFIG_LINKS
11585 CONFIG_COMMANDS = $CONFIG_COMMANDS
11586 $ $0 $@
11588 _CSEOF
11589 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11590 echo >&5
11591 _ACEOF
11593 # Files that config.status was made for.
11594 if test -n "$ac_config_files"; then
11595 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11598 if test -n "$ac_config_headers"; then
11599 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11602 if test -n "$ac_config_links"; then
11603 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11606 if test -n "$ac_config_commands"; then
11607 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11610 cat >>$CONFIG_STATUS <<\_ACEOF
11612 ac_cs_usage="\
11613 \`$as_me' instantiates files from templates according to the
11614 current configuration.
11616 Usage: $0 [OPTIONS] [FILE]...
11618 -h, --help print this help, then exit
11619 -V, --version print version number, then exit
11620 -q, --quiet do not print progress messages
11621 -d, --debug don't remove temporary files
11622 --recheck update $as_me by reconfiguring in the same conditions
11623 --file=FILE[:TEMPLATE]
11624 instantiate the configuration file FILE
11625 --header=FILE[:TEMPLATE]
11626 instantiate the configuration header FILE
11628 Configuration files:
11629 $config_files
11631 Configuration headers:
11632 $config_headers
11634 Configuration commands:
11635 $config_commands
11637 Report bugs to <bug-autoconf@gnu.org>."
11638 _ACEOF
11640 cat >>$CONFIG_STATUS <<_ACEOF
11641 ac_cs_version="\\
11642 package-unused config.status version-unused
11643 configured by $0, generated by GNU Autoconf 2.59,
11644 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11646 Copyright (C) 2003 Free Software Foundation, Inc.
11647 This config.status script is free software; the Free Software Foundation
11648 gives unlimited permission to copy, distribute and modify it."
11649 srcdir=$srcdir
11650 INSTALL="$INSTALL"
11651 _ACEOF
11653 cat >>$CONFIG_STATUS <<\_ACEOF
11654 # If no file are specified by the user, then we need to provide default
11655 # value. By we need to know if files were specified by the user.
11656 ac_need_defaults=:
11657 while test $# != 0
11659 case $1 in
11660 --*=*)
11661 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11662 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11663 ac_shift=:
11666 ac_option=$1
11667 ac_optarg=$2
11668 ac_shift=shift
11670 *) # This is not an option, so the user has probably given explicit
11671 # arguments.
11672 ac_option=$1
11673 ac_need_defaults=false;;
11674 esac
11676 case $ac_option in
11677 # Handling of the options.
11678 _ACEOF
11679 cat >>$CONFIG_STATUS <<\_ACEOF
11680 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11681 ac_cs_recheck=: ;;
11682 --version | --vers* | -V )
11683 echo "$ac_cs_version"; exit 0 ;;
11684 --he | --h)
11685 # Conflict between --help and --header
11686 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11687 Try \`$0 --help' for more information." >&5
11688 echo "$as_me: error: ambiguous option: $1
11689 Try \`$0 --help' for more information." >&2;}
11690 { (exit 1); exit 1; }; };;
11691 --help | --hel | -h )
11692 echo "$ac_cs_usage"; exit 0 ;;
11693 --debug | --d* | -d )
11694 debug=: ;;
11695 --file | --fil | --fi | --f )
11696 $ac_shift
11697 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11698 ac_need_defaults=false;;
11699 --header | --heade | --head | --hea )
11700 $ac_shift
11701 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11702 ac_need_defaults=false;;
11703 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11704 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11705 ac_cs_silent=: ;;
11707 # This is an error.
11708 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11709 Try \`$0 --help' for more information." >&5
11710 echo "$as_me: error: unrecognized option: $1
11711 Try \`$0 --help' for more information." >&2;}
11712 { (exit 1); exit 1; }; } ;;
11714 *) ac_config_targets="$ac_config_targets $1" ;;
11716 esac
11717 shift
11718 done
11720 ac_configure_extra_args=
11722 if $ac_cs_silent; then
11723 exec 6>/dev/null
11724 ac_configure_extra_args="$ac_configure_extra_args --silent"
11727 _ACEOF
11728 cat >>$CONFIG_STATUS <<_ACEOF
11729 if \$ac_cs_recheck; then
11730 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11731 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11734 _ACEOF
11736 cat >>$CONFIG_STATUS <<_ACEOF
11738 # INIT-COMMANDS section.
11742 srcdir="$srcdir"
11743 host="$host"
11744 target="$target"
11745 with_multisubdir="$with_multisubdir"
11746 with_multisrctop="$with_multisrctop"
11747 with_target_subdir="$with_target_subdir"
11748 ac_configure_args="${multilib_arg} ${ac_configure_args}"
11749 multi_basedir="$multi_basedir"
11750 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
11751 CC="$CC"
11754 # The HP-UX ksh and POSIX shell print the target directory to stdout
11755 # if CDPATH is set.
11756 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11758 sed_quote_subst='$sed_quote_subst'
11759 double_quote_subst='$double_quote_subst'
11760 delay_variable_subst='$delay_variable_subst'
11761 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
11762 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
11763 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
11764 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
11765 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
11766 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
11767 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
11768 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
11769 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
11770 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
11771 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
11772 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
11773 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
11774 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
11775 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
11776 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
11777 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
11778 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
11779 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
11780 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
11781 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
11782 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
11783 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
11784 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
11785 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
11786 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
11787 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
11788 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
11789 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
11790 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
11791 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11792 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
11793 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
11794 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
11795 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11796 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
11797 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
11798 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11799 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11800 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11801 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
11802 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11803 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
11804 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
11805 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
11806 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
11807 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
11808 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11809 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
11810 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
11811 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
11812 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
11813 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
11814 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
11815 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
11816 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
11817 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
11818 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
11819 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
11820 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
11821 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
11822 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
11823 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
11824 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
11825 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11826 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11827 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
11828 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
11829 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11830 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11831 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
11832 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11833 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11834 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11835 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11836 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11837 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11838 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
11839 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11840 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11841 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11842 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
11843 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
11844 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
11845 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
11846 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
11847 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11848 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
11849 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
11850 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
11851 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
11852 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
11853 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11854 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11855 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11856 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11857 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
11858 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
11859 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11860 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
11861 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
11862 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11863 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11864 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
11865 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11866 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
11867 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11868 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11869 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11870 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11871 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
11872 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
11873 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11874 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11875 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
11876 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
11877 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
11878 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
11879 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
11880 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
11882 LTCC='$LTCC'
11883 LTCFLAGS='$LTCFLAGS'
11884 compiler='$compiler_DEFAULT'
11886 # Quote evaled strings.
11887 for var in SED \
11888 GREP \
11889 EGREP \
11890 FGREP \
11891 LD \
11892 NM \
11893 LN_S \
11894 lt_SP2NL \
11895 lt_NL2SP \
11896 reload_flag \
11897 deplibs_check_method \
11898 file_magic_cmd \
11899 AR \
11900 AR_FLAGS \
11901 STRIP \
11902 RANLIB \
11903 CC \
11904 CFLAGS \
11905 compiler \
11906 lt_cv_sys_global_symbol_pipe \
11907 lt_cv_sys_global_symbol_to_cdecl \
11908 lt_cv_sys_global_symbol_to_c_name_address \
11909 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
11910 SHELL \
11911 ECHO \
11912 lt_prog_compiler_no_builtin_flag \
11913 lt_prog_compiler_wl \
11914 lt_prog_compiler_pic \
11915 lt_prog_compiler_static \
11916 lt_cv_prog_compiler_c_o \
11917 need_locks \
11918 DSYMUTIL \
11919 NMEDIT \
11920 LIPO \
11921 OTOOL \
11922 OTOOL64 \
11923 shrext_cmds \
11924 export_dynamic_flag_spec \
11925 whole_archive_flag_spec \
11926 compiler_needs_object \
11927 with_gnu_ld \
11928 allow_undefined_flag \
11929 no_undefined_flag \
11930 hardcode_libdir_flag_spec \
11931 hardcode_libdir_flag_spec_ld \
11932 hardcode_libdir_separator \
11933 fix_srcfile_path \
11934 exclude_expsyms \
11935 include_expsyms \
11936 file_list_spec \
11937 variables_saved_for_relink \
11938 libname_spec \
11939 library_names_spec \
11940 soname_spec \
11941 finish_eval \
11942 old_striplib \
11943 striplib; do
11944 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11945 *[\\\\\\\`\\"\\\$]*)
11946 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
11949 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11951 esac
11952 done
11954 # Double-quote double-evaled strings.
11955 for var in reload_cmds \
11956 old_postinstall_cmds \
11957 old_postuninstall_cmds \
11958 old_archive_cmds \
11959 extract_expsyms_cmds \
11960 old_archive_from_new_cmds \
11961 old_archive_from_expsyms_cmds \
11962 archive_cmds \
11963 archive_expsym_cmds \
11964 module_cmds \
11965 module_expsym_cmds \
11966 export_symbols_cmds \
11967 prelink_cmds \
11968 postinstall_cmds \
11969 postuninstall_cmds \
11970 finish_cmds \
11971 sys_lib_search_path_spec \
11972 sys_lib_dlsearch_path_spec; do
11973 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11974 *[\\\\\\\`\\"\\\$]*)
11975 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
11978 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11980 esac
11981 done
11983 # Fix-up fallback echo if it was mangled by the above quoting rules.
11984 case \$lt_ECHO in
11985 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
11987 esac
11989 ac_aux_dir='$ac_aux_dir'
11990 xsi_shell='$xsi_shell'
11991 lt_shell_append='$lt_shell_append'
11993 # See if we are running on zsh, and set the options which allow our
11994 # commands through without removal of \ escapes INIT.
11995 if test -n "\${ZSH_VERSION+set}" ; then
11996 setopt NO_GLOB_SUBST
12000 PACKAGE='$PACKAGE'
12001 VERSION='$VERSION'
12002 TIMESTAMP='$TIMESTAMP'
12003 RM='$RM'
12004 ofile='$ofile'
12009 _ACEOF
12013 cat >>$CONFIG_STATUS <<\_ACEOF
12014 for ac_config_target in $ac_config_targets
12016 case "$ac_config_target" in
12017 # Handling of arguments.
12018 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12019 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12020 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12021 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12022 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12023 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12024 { (exit 1); exit 1; }; };;
12025 esac
12026 done
12028 # If the user did not use the arguments to specify the items to instantiate,
12029 # then the envvar interface is used. Set only those that are not.
12030 # We use the long form for the default assignment because of an extremely
12031 # bizarre bug on SunOS 4.1.3.
12032 if $ac_need_defaults; then
12033 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12034 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12035 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12038 # Have a temporary directory for convenience. Make it in the build tree
12039 # simply because there is no reason to put it here, and in addition,
12040 # creating and moving files from /tmp can sometimes cause problems.
12041 # Create a temporary directory, and hook for its removal unless debugging.
12042 $debug ||
12044 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12045 trap '{ (exit 1); exit 1; }' 1 2 13 15
12048 # Create a (secure) tmp directory for tmp files.
12051 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12052 test -n "$tmp" && test -d "$tmp"
12053 } ||
12055 tmp=./confstat$$-$RANDOM
12056 (umask 077 && mkdir $tmp)
12057 } ||
12059 echo "$me: cannot create a temporary directory in ." >&2
12060 { (exit 1); exit 1; }
12063 _ACEOF
12065 cat >>$CONFIG_STATUS <<_ACEOF
12068 # CONFIG_FILES section.
12071 # No need to generate the scripts if there are no CONFIG_FILES.
12072 # This happens for instance when ./config.status config.h
12073 if test -n "\$CONFIG_FILES"; then
12074 # Protect against being on the right side of a sed subst in config.status.
12075 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12076 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12077 s,@SHELL@,$SHELL,;t t
12078 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12079 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12080 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12081 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12082 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12083 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12084 s,@exec_prefix@,$exec_prefix,;t t
12085 s,@prefix@,$prefix,;t t
12086 s,@program_transform_name@,$program_transform_name,;t t
12087 s,@bindir@,$bindir,;t t
12088 s,@sbindir@,$sbindir,;t t
12089 s,@libexecdir@,$libexecdir,;t t
12090 s,@datadir@,$datadir,;t t
12091 s,@sysconfdir@,$sysconfdir,;t t
12092 s,@sharedstatedir@,$sharedstatedir,;t t
12093 s,@localstatedir@,$localstatedir,;t t
12094 s,@libdir@,$libdir,;t t
12095 s,@includedir@,$includedir,;t t
12096 s,@oldincludedir@,$oldincludedir,;t t
12097 s,@infodir@,$infodir,;t t
12098 s,@mandir@,$mandir,;t t
12099 s,@build_alias@,$build_alias,;t t
12100 s,@host_alias@,$host_alias,;t t
12101 s,@target_alias@,$target_alias,;t t
12102 s,@DEFS@,$DEFS,;t t
12103 s,@ECHO_C@,$ECHO_C,;t t
12104 s,@ECHO_N@,$ECHO_N,;t t
12105 s,@ECHO_T@,$ECHO_T,;t t
12106 s,@LIBS@,$LIBS,;t t
12107 s,@build@,$build,;t t
12108 s,@build_cpu@,$build_cpu,;t t
12109 s,@build_vendor@,$build_vendor,;t t
12110 s,@build_os@,$build_os,;t t
12111 s,@build_libsubdir@,$build_libsubdir,;t t
12112 s,@build_subdir@,$build_subdir,;t t
12113 s,@host_subdir@,$host_subdir,;t t
12114 s,@target_subdir@,$target_subdir,;t t
12115 s,@VERSION@,$VERSION,;t t
12116 s,@OBJC_BOEHM_GC@,$OBJC_BOEHM_GC,;t t
12117 s,@OBJC_BOEHM_GC_INCLUDES@,$OBJC_BOEHM_GC_INCLUDES,;t t
12118 s,@multi_basedir@,$multi_basedir,;t t
12119 s,@host@,$host,;t t
12120 s,@host_cpu@,$host_cpu,;t t
12121 s,@host_vendor@,$host_vendor,;t t
12122 s,@host_os@,$host_os,;t t
12123 s,@target@,$target,;t t
12124 s,@target_cpu@,$target_cpu,;t t
12125 s,@target_vendor@,$target_vendor,;t t
12126 s,@target_os@,$target_os,;t t
12127 s,@target_noncanonical@,$target_noncanonical,;t t
12128 s,@glibcpp_srcdir@,$glibcpp_srcdir,;t t
12129 s,@toolexecdir@,$toolexecdir,;t t
12130 s,@toolexeclibdir@,$toolexeclibdir,;t t
12131 s,@includedirname@,$includedirname,;t t
12132 s,@libsuffix@,$libsuffix,;t t
12133 s,@CC@,$CC,;t t
12134 s,@ac_ct_CC@,$ac_ct_CC,;t t
12135 s,@EXEEXT@,$EXEEXT,;t t
12136 s,@OBJEXT@,$OBJEXT,;t t
12137 s,@extra_ldflags_libobjc@,$extra_ldflags_libobjc,;t t
12138 s,@CFLAGS@,$CFLAGS,;t t
12139 s,@AS@,$AS,;t t
12140 s,@ac_ct_AS@,$ac_ct_AS,;t t
12141 s,@AR@,$AR,;t t
12142 s,@ac_ct_AR@,$ac_ct_AR,;t t
12143 s,@RANLIB@,$RANLIB,;t t
12144 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12145 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12146 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12147 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12148 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12149 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12150 s,@MAINT@,$MAINT,;t t
12151 s,@DLLTOOL@,$DLLTOOL,;t t
12152 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
12153 s,@OBJDUMP@,$OBJDUMP,;t t
12154 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
12155 s,@LIBTOOL@,$LIBTOOL,;t t
12156 s,@SED@,$SED,;t t
12157 s,@EGREP@,$EGREP,;t t
12158 s,@FGREP@,$FGREP,;t t
12159 s,@GREP@,$GREP,;t t
12160 s,@LD@,$LD,;t t
12161 s,@DUMPBIN@,$DUMPBIN,;t t
12162 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
12163 s,@NM@,$NM,;t t
12164 s,@LN_S@,$LN_S,;t t
12165 s,@STRIP@,$STRIP,;t t
12166 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12167 s,@lt_ECHO@,$lt_ECHO,;t t
12168 s,@DSYMUTIL@,$DSYMUTIL,;t t
12169 s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
12170 s,@NMEDIT@,$NMEDIT,;t t
12171 s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
12172 s,@LIPO@,$LIPO,;t t
12173 s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
12174 s,@OTOOL@,$OTOOL,;t t
12175 s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
12176 s,@OTOOL64@,$OTOOL64,;t t
12177 s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
12178 s,@CPP@,$CPP,;t t
12179 s,@CPPFLAGS@,$CPPFLAGS,;t t
12180 s,@SET_MAKE@,$SET_MAKE,;t t
12181 s,@LIBOBJS@,$LIBOBJS,;t t
12182 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12183 CEOF
12185 _ACEOF
12187 cat >>$CONFIG_STATUS <<\_ACEOF
12188 # Split the substitutions into bite-sized pieces for seds with
12189 # small command number limits, like on Digital OSF/1 and HP-UX.
12190 ac_max_sed_lines=48
12191 ac_sed_frag=1 # Number of current file.
12192 ac_beg=1 # First line for current file.
12193 ac_end=$ac_max_sed_lines # Line after last line for current file.
12194 ac_more_lines=:
12195 ac_sed_cmds=
12196 while $ac_more_lines; do
12197 if test $ac_beg -gt 1; then
12198 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12199 else
12200 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12202 if test ! -s $tmp/subs.frag; then
12203 ac_more_lines=false
12204 else
12205 # The purpose of the label and of the branching condition is to
12206 # speed up the sed processing (if there are no `@' at all, there
12207 # is no need to browse any of the substitutions).
12208 # These are the two extra sed commands mentioned above.
12209 (echo ':t
12210 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12211 if test -z "$ac_sed_cmds"; then
12212 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12213 else
12214 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12216 ac_sed_frag=`expr $ac_sed_frag + 1`
12217 ac_beg=$ac_end
12218 ac_end=`expr $ac_end + $ac_max_sed_lines`
12220 done
12221 if test -z "$ac_sed_cmds"; then
12222 ac_sed_cmds=cat
12224 fi # test -n "$CONFIG_FILES"
12226 _ACEOF
12227 cat >>$CONFIG_STATUS <<\_ACEOF
12228 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12229 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12230 case $ac_file in
12231 - | *:- | *:-:* ) # input from stdin
12232 cat >$tmp/stdin
12233 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12234 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12235 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12236 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12237 * ) ac_file_in=$ac_file.in ;;
12238 esac
12240 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12241 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12242 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12243 X"$ac_file" : 'X\(//\)[^/]' \| \
12244 X"$ac_file" : 'X\(//\)$' \| \
12245 X"$ac_file" : 'X\(/\)' \| \
12246 . : '\(.\)' 2>/dev/null ||
12247 echo X"$ac_file" |
12248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12249 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12250 /^X\(\/\/\)$/{ s//\1/; q; }
12251 /^X\(\/\).*/{ s//\1/; q; }
12252 s/.*/./; q'`
12253 { if $as_mkdir_p; then
12254 mkdir -p "$ac_dir"
12255 else
12256 as_dir="$ac_dir"
12257 as_dirs=
12258 while test ! -d "$as_dir"; do
12259 as_dirs="$as_dir $as_dirs"
12260 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12261 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12262 X"$as_dir" : 'X\(//\)[^/]' \| \
12263 X"$as_dir" : 'X\(//\)$' \| \
12264 X"$as_dir" : 'X\(/\)' \| \
12265 . : '\(.\)' 2>/dev/null ||
12266 echo X"$as_dir" |
12267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12268 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12269 /^X\(\/\/\)$/{ s//\1/; q; }
12270 /^X\(\/\).*/{ s//\1/; q; }
12271 s/.*/./; q'`
12272 done
12273 test ! -n "$as_dirs" || mkdir $as_dirs
12274 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12275 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12276 { (exit 1); exit 1; }; }; }
12278 ac_builddir=.
12280 if test "$ac_dir" != .; then
12281 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12282 # A "../" for each directory in $ac_dir_suffix.
12283 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12284 else
12285 ac_dir_suffix= ac_top_builddir=
12288 case $srcdir in
12289 .) # No --srcdir option. We are building in place.
12290 ac_srcdir=.
12291 if test -z "$ac_top_builddir"; then
12292 ac_top_srcdir=.
12293 else
12294 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12295 fi ;;
12296 [\\/]* | ?:[\\/]* ) # Absolute path.
12297 ac_srcdir=$srcdir$ac_dir_suffix;
12298 ac_top_srcdir=$srcdir ;;
12299 *) # Relative path.
12300 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12301 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12302 esac
12304 # Do not use `cd foo && pwd` to compute absolute paths, because
12305 # the directories may not exist.
12306 case `pwd` in
12307 .) ac_abs_builddir="$ac_dir";;
12309 case "$ac_dir" in
12310 .) ac_abs_builddir=`pwd`;;
12311 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12312 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12313 esac;;
12314 esac
12315 case $ac_abs_builddir in
12316 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12318 case ${ac_top_builddir}. in
12319 .) ac_abs_top_builddir=$ac_abs_builddir;;
12320 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12321 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12322 esac;;
12323 esac
12324 case $ac_abs_builddir in
12325 .) ac_abs_srcdir=$ac_srcdir;;
12327 case $ac_srcdir in
12328 .) ac_abs_srcdir=$ac_abs_builddir;;
12329 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12330 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12331 esac;;
12332 esac
12333 case $ac_abs_builddir in
12334 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12336 case $ac_top_srcdir in
12337 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12338 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12339 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12340 esac;;
12341 esac
12344 case $INSTALL in
12345 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12346 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12347 esac
12349 if test x"$ac_file" != x-; then
12350 { echo "$as_me:$LINENO: creating $ac_file" >&5
12351 echo "$as_me: creating $ac_file" >&6;}
12352 rm -f "$ac_file"
12354 # Let's still pretend it is `configure' which instantiates (i.e., don't
12355 # use $as_me), people would be surprised to read:
12356 # /* config.h. Generated by config.status. */
12357 if test x"$ac_file" = x-; then
12358 configure_input=
12359 else
12360 configure_input="$ac_file. "
12362 configure_input=$configure_input"Generated from `echo $ac_file_in |
12363 sed 's,.*/,,'` by configure."
12365 # First look for the input files in the build tree, otherwise in the
12366 # src tree.
12367 ac_file_inputs=`IFS=:
12368 for f in $ac_file_in; do
12369 case $f in
12370 -) echo $tmp/stdin ;;
12371 [\\/$]*)
12372 # Absolute (can't be DOS-style, as IFS=:)
12373 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12374 echo "$as_me: error: cannot find input file: $f" >&2;}
12375 { (exit 1); exit 1; }; }
12376 echo "$f";;
12377 *) # Relative
12378 if test -f "$f"; then
12379 # Build tree
12380 echo "$f"
12381 elif test -f "$srcdir/$f"; then
12382 # Source tree
12383 echo "$srcdir/$f"
12384 else
12385 # /dev/null tree
12386 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12387 echo "$as_me: error: cannot find input file: $f" >&2;}
12388 { (exit 1); exit 1; }; }
12389 fi;;
12390 esac
12391 done` || { (exit 1); exit 1; }
12392 _ACEOF
12393 cat >>$CONFIG_STATUS <<_ACEOF
12394 sed "$ac_vpsub
12395 $extrasub
12396 _ACEOF
12397 cat >>$CONFIG_STATUS <<\_ACEOF
12399 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12400 s,@configure_input@,$configure_input,;t t
12401 s,@srcdir@,$ac_srcdir,;t t
12402 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12403 s,@top_srcdir@,$ac_top_srcdir,;t t
12404 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12405 s,@builddir@,$ac_builddir,;t t
12406 s,@abs_builddir@,$ac_abs_builddir,;t t
12407 s,@top_builddir@,$ac_top_builddir,;t t
12408 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12409 s,@INSTALL@,$ac_INSTALL,;t t
12410 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12411 rm -f $tmp/stdin
12412 if test x"$ac_file" != x-; then
12413 mv $tmp/out $ac_file
12414 else
12415 cat $tmp/out
12416 rm -f $tmp/out
12419 done
12420 _ACEOF
12421 cat >>$CONFIG_STATUS <<\_ACEOF
12424 # CONFIG_HEADER section.
12427 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12428 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12430 # ac_d sets the value in "#define NAME VALUE" lines.
12431 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12432 ac_dB='[ ].*$,\1#\2'
12433 ac_dC=' '
12434 ac_dD=',;t'
12435 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12436 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12437 ac_uB='$,\1#\2define\3'
12438 ac_uC=' '
12439 ac_uD=',;t'
12441 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12442 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12443 case $ac_file in
12444 - | *:- | *:-:* ) # input from stdin
12445 cat >$tmp/stdin
12446 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12447 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12448 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12449 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12450 * ) ac_file_in=$ac_file.in ;;
12451 esac
12453 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12454 echo "$as_me: creating $ac_file" >&6;}
12456 # First look for the input files in the build tree, otherwise in the
12457 # src tree.
12458 ac_file_inputs=`IFS=:
12459 for f in $ac_file_in; do
12460 case $f in
12461 -) echo $tmp/stdin ;;
12462 [\\/$]*)
12463 # Absolute (can't be DOS-style, as IFS=:)
12464 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12465 echo "$as_me: error: cannot find input file: $f" >&2;}
12466 { (exit 1); exit 1; }; }
12467 # Do quote $f, to prevent DOS paths from being IFS'd.
12468 echo "$f";;
12469 *) # Relative
12470 if test -f "$f"; then
12471 # Build tree
12472 echo "$f"
12473 elif test -f "$srcdir/$f"; then
12474 # Source tree
12475 echo "$srcdir/$f"
12476 else
12477 # /dev/null tree
12478 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12479 echo "$as_me: error: cannot find input file: $f" >&2;}
12480 { (exit 1); exit 1; }; }
12481 fi;;
12482 esac
12483 done` || { (exit 1); exit 1; }
12484 # Remove the trailing spaces.
12485 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12487 _ACEOF
12489 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12490 # `conftest.undefs', that substitutes the proper values into
12491 # config.h.in to produce config.h. The first handles `#define'
12492 # templates, and the second `#undef' templates.
12493 # And first: Protect against being on the right side of a sed subst in
12494 # config.status. Protect against being in an unquoted here document
12495 # in config.status.
12496 rm -f conftest.defines conftest.undefs
12497 # Using a here document instead of a string reduces the quoting nightmare.
12498 # Putting comments in sed scripts is not portable.
12500 # `end' is used to avoid that the second main sed command (meant for
12501 # 0-ary CPP macros) applies to n-ary macro definitions.
12502 # See the Autoconf documentation for `clear'.
12503 cat >confdef2sed.sed <<\_ACEOF
12504 s/[\\&,]/\\&/g
12505 s,[\\$`],\\&,g
12506 t clear
12507 : clear
12508 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12509 t end
12510 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12511 : end
12512 _ACEOF
12513 # If some macros were called several times there might be several times
12514 # the same #defines, which is useless. Nevertheless, we may not want to
12515 # sort them, since we want the *last* AC-DEFINE to be honored.
12516 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12517 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12518 rm -f confdef2sed.sed
12520 # This sed command replaces #undef with comments. This is necessary, for
12521 # example, in the case of _POSIX_SOURCE, which is predefined and required
12522 # on some systems where configure will not decide to define it.
12523 cat >>conftest.undefs <<\_ACEOF
12524 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12525 _ACEOF
12527 # Break up conftest.defines because some shells have a limit on the size
12528 # of here documents, and old seds have small limits too (100 cmds).
12529 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12530 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12531 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12532 echo ' :' >>$CONFIG_STATUS
12533 rm -f conftest.tail
12534 while grep . conftest.defines >/dev/null
12536 # Write a limited-size here document to $tmp/defines.sed.
12537 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12538 # Speed up: don't consider the non `#define' lines.
12539 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12540 # Work around the forget-to-reset-the-flag bug.
12541 echo 't clr' >>$CONFIG_STATUS
12542 echo ': clr' >>$CONFIG_STATUS
12543 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12544 echo 'CEOF
12545 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12546 rm -f $tmp/in
12547 mv $tmp/out $tmp/in
12548 ' >>$CONFIG_STATUS
12549 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12550 rm -f conftest.defines
12551 mv conftest.tail conftest.defines
12552 done
12553 rm -f conftest.defines
12554 echo ' fi # grep' >>$CONFIG_STATUS
12555 echo >>$CONFIG_STATUS
12557 # Break up conftest.undefs because some shells have a limit on the size
12558 # of here documents, and old seds have small limits too (100 cmds).
12559 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12560 rm -f conftest.tail
12561 while grep . conftest.undefs >/dev/null
12563 # Write a limited-size here document to $tmp/undefs.sed.
12564 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12565 # Speed up: don't consider the non `#undef'
12566 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12567 # Work around the forget-to-reset-the-flag bug.
12568 echo 't clr' >>$CONFIG_STATUS
12569 echo ': clr' >>$CONFIG_STATUS
12570 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12571 echo 'CEOF
12572 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12573 rm -f $tmp/in
12574 mv $tmp/out $tmp/in
12575 ' >>$CONFIG_STATUS
12576 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12577 rm -f conftest.undefs
12578 mv conftest.tail conftest.undefs
12579 done
12580 rm -f conftest.undefs
12582 cat >>$CONFIG_STATUS <<\_ACEOF
12583 # Let's still pretend it is `configure' which instantiates (i.e., don't
12584 # use $as_me), people would be surprised to read:
12585 # /* config.h. Generated by config.status. */
12586 if test x"$ac_file" = x-; then
12587 echo "/* Generated by configure. */" >$tmp/config.h
12588 else
12589 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12591 cat $tmp/in >>$tmp/config.h
12592 rm -f $tmp/in
12593 if test x"$ac_file" != x-; then
12594 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12595 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12596 echo "$as_me: $ac_file is unchanged" >&6;}
12597 else
12598 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12599 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12600 X"$ac_file" : 'X\(//\)[^/]' \| \
12601 X"$ac_file" : 'X\(//\)$' \| \
12602 X"$ac_file" : 'X\(/\)' \| \
12603 . : '\(.\)' 2>/dev/null ||
12604 echo X"$ac_file" |
12605 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12606 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12607 /^X\(\/\/\)$/{ s//\1/; q; }
12608 /^X\(\/\).*/{ s//\1/; q; }
12609 s/.*/./; q'`
12610 { if $as_mkdir_p; then
12611 mkdir -p "$ac_dir"
12612 else
12613 as_dir="$ac_dir"
12614 as_dirs=
12615 while test ! -d "$as_dir"; do
12616 as_dirs="$as_dir $as_dirs"
12617 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12618 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12619 X"$as_dir" : 'X\(//\)[^/]' \| \
12620 X"$as_dir" : 'X\(//\)$' \| \
12621 X"$as_dir" : 'X\(/\)' \| \
12622 . : '\(.\)' 2>/dev/null ||
12623 echo X"$as_dir" |
12624 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12625 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12626 /^X\(\/\/\)$/{ s//\1/; q; }
12627 /^X\(\/\).*/{ s//\1/; q; }
12628 s/.*/./; q'`
12629 done
12630 test ! -n "$as_dirs" || mkdir $as_dirs
12631 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12632 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12633 { (exit 1); exit 1; }; }; }
12635 rm -f $ac_file
12636 mv $tmp/config.h $ac_file
12638 else
12639 cat $tmp/config.h
12640 rm -f $tmp/config.h
12642 done
12643 _ACEOF
12644 cat >>$CONFIG_STATUS <<\_ACEOF
12647 # CONFIG_COMMANDS section.
12649 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12650 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12651 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12652 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12653 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12654 X"$ac_dest" : 'X\(//\)[^/]' \| \
12655 X"$ac_dest" : 'X\(//\)$' \| \
12656 X"$ac_dest" : 'X\(/\)' \| \
12657 . : '\(.\)' 2>/dev/null ||
12658 echo X"$ac_dest" |
12659 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12660 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12661 /^X\(\/\/\)$/{ s//\1/; q; }
12662 /^X\(\/\).*/{ s//\1/; q; }
12663 s/.*/./; q'`
12664 { if $as_mkdir_p; then
12665 mkdir -p "$ac_dir"
12666 else
12667 as_dir="$ac_dir"
12668 as_dirs=
12669 while test ! -d "$as_dir"; do
12670 as_dirs="$as_dir $as_dirs"
12671 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12672 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12673 X"$as_dir" : 'X\(//\)[^/]' \| \
12674 X"$as_dir" : 'X\(//\)$' \| \
12675 X"$as_dir" : 'X\(/\)' \| \
12676 . : '\(.\)' 2>/dev/null ||
12677 echo X"$as_dir" |
12678 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12679 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12680 /^X\(\/\/\)$/{ s//\1/; q; }
12681 /^X\(\/\).*/{ s//\1/; q; }
12682 s/.*/./; q'`
12683 done
12684 test ! -n "$as_dirs" || mkdir $as_dirs
12685 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12686 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12687 { (exit 1); exit 1; }; }; }
12689 ac_builddir=.
12691 if test "$ac_dir" != .; then
12692 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12693 # A "../" for each directory in $ac_dir_suffix.
12694 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12695 else
12696 ac_dir_suffix= ac_top_builddir=
12699 case $srcdir in
12700 .) # No --srcdir option. We are building in place.
12701 ac_srcdir=.
12702 if test -z "$ac_top_builddir"; then
12703 ac_top_srcdir=.
12704 else
12705 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12706 fi ;;
12707 [\\/]* | ?:[\\/]* ) # Absolute path.
12708 ac_srcdir=$srcdir$ac_dir_suffix;
12709 ac_top_srcdir=$srcdir ;;
12710 *) # Relative path.
12711 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12712 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12713 esac
12715 # Do not use `cd foo && pwd` to compute absolute paths, because
12716 # the directories may not exist.
12717 case `pwd` in
12718 .) ac_abs_builddir="$ac_dir";;
12720 case "$ac_dir" in
12721 .) ac_abs_builddir=`pwd`;;
12722 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12723 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12724 esac;;
12725 esac
12726 case $ac_abs_builddir in
12727 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12729 case ${ac_top_builddir}. in
12730 .) ac_abs_top_builddir=$ac_abs_builddir;;
12731 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12732 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12733 esac;;
12734 esac
12735 case $ac_abs_builddir in
12736 .) ac_abs_srcdir=$ac_srcdir;;
12738 case $ac_srcdir in
12739 .) ac_abs_srcdir=$ac_abs_builddir;;
12740 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12741 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12742 esac;;
12743 esac
12744 case $ac_abs_builddir in
12745 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12747 case $ac_top_srcdir in
12748 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12749 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12750 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12751 esac;;
12752 esac
12755 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12756 echo "$as_me: executing $ac_dest commands" >&6;}
12757 case $ac_dest in
12758 default-1 )
12759 # Only add multilib support code if we just rebuilt the top-level
12760 # Makefile.
12761 case " $CONFIG_FILES " in
12762 *" Makefile "*)
12763 ac_file=Makefile . ${multi_basedir}/config-ml.in
12765 esac ;;
12766 libtool )
12768 # See if we are running on zsh, and set the options which allow our
12769 # commands through without removal of \ escapes.
12770 if test -n "${ZSH_VERSION+set}" ; then
12771 setopt NO_GLOB_SUBST
12774 cfgfile="${ofile}T"
12775 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12776 $RM "$cfgfile"
12778 cat <<_LT_EOF >> "$cfgfile"
12779 #! $SHELL
12781 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12782 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12783 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12784 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12786 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12787 # 2006, 2007, 2008 Free Software Foundation, Inc.
12788 # Written by Gordon Matzigkeit, 1996
12790 # This file is part of GNU Libtool.
12792 # GNU Libtool is free software; you can redistribute it and/or
12793 # modify it under the terms of the GNU General Public License as
12794 # published by the Free Software Foundation; either version 2 of
12795 # the License, or (at your option) any later version.
12797 # As a special exception to the GNU General Public License,
12798 # if you distribute this file as part of a program or library that
12799 # is built using GNU Libtool, you may include this file under the
12800 # same distribution terms that you use for the rest of that program.
12802 # GNU Libtool is distributed in the hope that it will be useful,
12803 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12804 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12805 # GNU General Public License for more details.
12807 # You should have received a copy of the GNU General Public License
12808 # along with GNU Libtool; see the file COPYING. If not, a copy
12809 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12810 # obtained by writing to the Free Software Foundation, Inc.,
12811 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12814 # The names of the tagged configurations supported by this script.
12815 available_tags=""
12817 # ### BEGIN LIBTOOL CONFIG
12819 # Assembler program.
12820 AS=$AS
12822 # DLL creation program.
12823 DLLTOOL=$DLLTOOL
12825 # Object dumper program.
12826 OBJDUMP=$OBJDUMP
12828 # Which release of libtool.m4 was used?
12829 macro_version=$macro_version
12830 macro_revision=$macro_revision
12832 # Whether or not to build shared libraries.
12833 build_libtool_libs=$enable_shared
12835 # Whether or not to build static libraries.
12836 build_old_libs=$enable_static
12838 # What type of objects to build.
12839 pic_mode=$pic_mode
12841 # Whether or not to optimize for fast installation.
12842 fast_install=$enable_fast_install
12844 # The host system.
12845 host_alias=$host_alias
12846 host=$host
12847 host_os=$host_os
12849 # The build system.
12850 build_alias=$build_alias
12851 build=$build
12852 build_os=$build_os
12854 # A sed program that does not truncate output.
12855 SED=$lt_SED
12857 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12858 Xsed="\$SED -e 1s/^X//"
12860 # A grep program that handles long lines.
12861 GREP=$lt_GREP
12863 # An ERE matcher.
12864 EGREP=$lt_EGREP
12866 # A literal string matcher.
12867 FGREP=$lt_FGREP
12869 # A BSD- or MS-compatible name lister.
12870 NM=$lt_NM
12872 # Whether we need soft or hard links.
12873 LN_S=$lt_LN_S
12875 # What is the maximum length of a command?
12876 max_cmd_len=$max_cmd_len
12878 # Object file suffix (normally "o").
12879 objext=$ac_objext
12881 # Executable file suffix (normally "").
12882 exeext=$exeext
12884 # whether the shell understands "unset".
12885 lt_unset=$lt_unset
12887 # turn spaces into newlines.
12888 SP2NL=$lt_lt_SP2NL
12890 # turn newlines into spaces.
12891 NL2SP=$lt_lt_NL2SP
12893 # How to create reloadable object files.
12894 reload_flag=$lt_reload_flag
12895 reload_cmds=$lt_reload_cmds
12897 # Method to check whether dependent libraries are shared objects.
12898 deplibs_check_method=$lt_deplibs_check_method
12900 # Command to use when deplibs_check_method == "file_magic".
12901 file_magic_cmd=$lt_file_magic_cmd
12903 # The archiver.
12904 AR=$lt_AR
12905 AR_FLAGS=$lt_AR_FLAGS
12907 # A symbol stripping program.
12908 STRIP=$lt_STRIP
12910 # Commands used to install an old-style archive.
12911 RANLIB=$lt_RANLIB
12912 old_postinstall_cmds=$lt_old_postinstall_cmds
12913 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12915 # A C compiler.
12916 LTCC=$lt_CC
12918 # LTCC compiler flags.
12919 LTCFLAGS=$lt_CFLAGS
12921 # Take the output of nm and produce a listing of raw symbols and C names.
12922 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12924 # Transform the output of nm in a proper C declaration.
12925 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12927 # Transform the output of nm in a C name address pair.
12928 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12930 # Transform the output of nm in a C name address pair when lib prefix is needed.
12931 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12933 # The name of the directory that contains temporary libtool files.
12934 objdir=$objdir
12936 # Shell to use when invoking shell scripts.
12937 SHELL=$lt_SHELL
12939 # An echo program that does not interpret backslashes.
12940 ECHO=$lt_ECHO
12942 # Used to examine libraries when file_magic_cmd begins with "file".
12943 MAGIC_CMD=$MAGIC_CMD
12945 # Must we lock files when doing compilation?
12946 need_locks=$lt_need_locks
12948 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12949 DSYMUTIL=$lt_DSYMUTIL
12951 # Tool to change global to local symbols on Mac OS X.
12952 NMEDIT=$lt_NMEDIT
12954 # Tool to manipulate fat objects and archives on Mac OS X.
12955 LIPO=$lt_LIPO
12957 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
12958 OTOOL=$lt_OTOOL
12960 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
12961 OTOOL64=$lt_OTOOL64
12963 # Old archive suffix (normally "a").
12964 libext=$libext
12966 # Shared library suffix (normally ".so").
12967 shrext_cmds=$lt_shrext_cmds
12969 # The commands to extract the exported symbol list from a shared archive.
12970 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12972 # Variables whose values should be saved in libtool wrapper scripts and
12973 # restored at link time.
12974 variables_saved_for_relink=$lt_variables_saved_for_relink
12976 # Do we need the "lib" prefix for modules?
12977 need_lib_prefix=$need_lib_prefix
12979 # Do we need a version for libraries?
12980 need_version=$need_version
12982 # Library versioning type.
12983 version_type=$version_type
12985 # Shared library runtime path variable.
12986 runpath_var=$runpath_var
12988 # Shared library path variable.
12989 shlibpath_var=$shlibpath_var
12991 # Is shlibpath searched before the hard-coded library search path?
12992 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12994 # Format of library name prefix.
12995 libname_spec=$lt_libname_spec
12997 # List of archive names. First name is the real one, the rest are links.
12998 # The last name is the one that the linker finds with -lNAME
12999 library_names_spec=$lt_library_names_spec
13001 # The coded name of the library, if different from the real name.
13002 soname_spec=$lt_soname_spec
13004 # Command to use after installation of a shared archive.
13005 postinstall_cmds=$lt_postinstall_cmds
13007 # Command to use after uninstallation of a shared archive.
13008 postuninstall_cmds=$lt_postuninstall_cmds
13010 # Commands used to finish a libtool library installation in a directory.
13011 finish_cmds=$lt_finish_cmds
13013 # As "finish_cmds", except a single script fragment to be evaled but
13014 # not shown.
13015 finish_eval=$lt_finish_eval
13017 # Whether we should hardcode library paths into libraries.
13018 hardcode_into_libs=$hardcode_into_libs
13020 # Compile-time system search path for libraries.
13021 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13023 # Run-time system search path for libraries.
13024 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13026 # Whether dlopen is supported.
13027 dlopen_support=$enable_dlopen
13029 # Whether dlopen of programs is supported.
13030 dlopen_self=$enable_dlopen_self
13032 # Whether dlopen of statically linked programs is supported.
13033 dlopen_self_static=$enable_dlopen_self_static
13035 # Commands to strip libraries.
13036 old_striplib=$lt_old_striplib
13037 striplib=$lt_striplib
13040 # The linker used to build libraries.
13041 LD=$lt_LD
13043 # Commands used to build an old-style archive.
13044 old_archive_cmds=$lt_old_archive_cmds
13046 # A language specific compiler.
13047 CC=$lt_compiler
13049 # Is the compiler the GNU compiler?
13050 with_gcc=$GCC
13052 # Compiler flag to turn off builtin functions.
13053 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13055 # How to pass a linker flag through the compiler.
13056 wl=$lt_lt_prog_compiler_wl
13058 # Additional compiler flags for building library objects.
13059 pic_flag=$lt_lt_prog_compiler_pic
13061 # Compiler flag to prevent dynamic linking.
13062 link_static_flag=$lt_lt_prog_compiler_static
13064 # Does compiler simultaneously support -c and -o options?
13065 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13067 # Whether or not to add -lc for building shared libraries.
13068 build_libtool_need_lc=$archive_cmds_need_lc
13070 # Whether or not to disallow shared libs when runtime libs are static.
13071 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13073 # Compiler flag to allow reflexive dlopens.
13074 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13076 # Compiler flag to generate shared objects directly from archives.
13077 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13079 # Whether the compiler copes with passing no objects directly.
13080 compiler_needs_object=$lt_compiler_needs_object
13082 # Create an old-style archive from a shared archive.
13083 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13085 # Create a temporary old-style archive to link instead of a shared archive.
13086 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13088 # Commands used to build a shared archive.
13089 archive_cmds=$lt_archive_cmds
13090 archive_expsym_cmds=$lt_archive_expsym_cmds
13092 # Commands used to build a loadable module if different from building
13093 # a shared archive.
13094 module_cmds=$lt_module_cmds
13095 module_expsym_cmds=$lt_module_expsym_cmds
13097 # Whether we are building with GNU ld or not.
13098 with_gnu_ld=$lt_with_gnu_ld
13100 # Flag that allows shared libraries with undefined symbols to be built.
13101 allow_undefined_flag=$lt_allow_undefined_flag
13103 # Flag that enforces no undefined symbols.
13104 no_undefined_flag=$lt_no_undefined_flag
13106 # Flag to hardcode \$libdir into a binary during linking.
13107 # This must work even if \$libdir does not exist
13108 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13110 # If ld is used when linking, flag to hardcode \$libdir into a binary
13111 # during linking. This must work even if \$libdir does not exist.
13112 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13114 # Whether we need a single "-rpath" flag with a separated argument.
13115 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13117 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13118 # DIR into the resulting binary.
13119 hardcode_direct=$hardcode_direct
13121 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13122 # DIR into the resulting binary and the resulting library dependency is
13123 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13124 # library is relocated.
13125 hardcode_direct_absolute=$hardcode_direct_absolute
13127 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13128 # into the resulting binary.
13129 hardcode_minus_L=$hardcode_minus_L
13131 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13132 # into the resulting binary.
13133 hardcode_shlibpath_var=$hardcode_shlibpath_var
13135 # Set to "yes" if building a shared library automatically hardcodes DIR
13136 # into the library and all subsequent libraries and executables linked
13137 # against it.
13138 hardcode_automatic=$hardcode_automatic
13140 # Set to yes if linker adds runtime paths of dependent libraries
13141 # to runtime path list.
13142 inherit_rpath=$inherit_rpath
13144 # Whether libtool must link a program against all its dependency libraries.
13145 link_all_deplibs=$link_all_deplibs
13147 # Fix the shell variable \$srcfile for the compiler.
13148 fix_srcfile_path=$lt_fix_srcfile_path
13150 # Set to "yes" if exported symbols are required.
13151 always_export_symbols=$always_export_symbols
13153 # The commands to list exported symbols.
13154 export_symbols_cmds=$lt_export_symbols_cmds
13156 # Symbols that should not be listed in the preloaded symbols.
13157 exclude_expsyms=$lt_exclude_expsyms
13159 # Symbols that must always be exported.
13160 include_expsyms=$lt_include_expsyms
13162 # Commands necessary for linking programs (against libraries) with templates.
13163 prelink_cmds=$lt_prelink_cmds
13165 # Specify filename containing input files.
13166 file_list_spec=$lt_file_list_spec
13168 # How to hardcode a shared library path into an executable.
13169 hardcode_action=$hardcode_action
13171 # ### END LIBTOOL CONFIG
13173 _LT_EOF
13175 case $host_os in
13176 aix3*)
13177 cat <<\_LT_EOF >> "$cfgfile"
13178 # AIX sometimes has problems with the GCC collect2 program. For some
13179 # reason, if we set the COLLECT_NAMES environment variable, the problems
13180 # vanish in a puff of smoke.
13181 if test "X${COLLECT_NAMES+set}" != Xset; then
13182 COLLECT_NAMES=
13183 export COLLECT_NAMES
13185 _LT_EOF
13187 esac
13190 ltmain="$ac_aux_dir/ltmain.sh"
13193 # We use sed instead of cat because bash on DJGPP gets confused if
13194 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13195 # text mode, it properly converts lines to CR/LF. This bash problem
13196 # is reportedly fixed, but why not run on old versions too?
13197 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13198 || (rm -f "$cfgfile"; exit 1)
13200 case $xsi_shell in
13201 yes)
13202 cat << \_LT_EOF >> "$cfgfile"
13204 # func_dirname file append nondir_replacement
13205 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13206 # otherwise set result to NONDIR_REPLACEMENT.
13207 func_dirname ()
13209 case ${1} in
13210 */*) func_dirname_result="${1%/*}${2}" ;;
13211 * ) func_dirname_result="${3}" ;;
13212 esac
13215 # func_basename file
13216 func_basename ()
13218 func_basename_result="${1##*/}"
13221 # func_dirname_and_basename file append nondir_replacement
13222 # perform func_basename and func_dirname in a single function
13223 # call:
13224 # dirname: Compute the dirname of FILE. If nonempty,
13225 # add APPEND to the result, otherwise set result
13226 # to NONDIR_REPLACEMENT.
13227 # value returned in "$func_dirname_result"
13228 # basename: Compute filename of FILE.
13229 # value retuned in "$func_basename_result"
13230 # Implementation must be kept synchronized with func_dirname
13231 # and func_basename. For efficiency, we do not delegate to
13232 # those functions but instead duplicate the functionality here.
13233 func_dirname_and_basename ()
13235 case ${1} in
13236 */*) func_dirname_result="${1%/*}${2}" ;;
13237 * ) func_dirname_result="${3}" ;;
13238 esac
13239 func_basename_result="${1##*/}"
13242 # func_stripname prefix suffix name
13243 # strip PREFIX and SUFFIX off of NAME.
13244 # PREFIX and SUFFIX must not contain globbing or regex special
13245 # characters, hashes, percent signs, but SUFFIX may contain a leading
13246 # dot (in which case that matches only a dot).
13247 func_stripname ()
13249 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13250 # positional parameters, so assign one to ordinary parameter first.
13251 func_stripname_result=${3}
13252 func_stripname_result=${func_stripname_result#"${1}"}
13253 func_stripname_result=${func_stripname_result%"${2}"}
13256 # func_opt_split
13257 func_opt_split ()
13259 func_opt_split_opt=${1%%=*}
13260 func_opt_split_arg=${1#*=}
13263 # func_lo2o object
13264 func_lo2o ()
13266 case ${1} in
13267 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13268 *) func_lo2o_result=${1} ;;
13269 esac
13272 # func_xform libobj-or-source
13273 func_xform ()
13275 func_xform_result=${1%.*}.lo
13278 # func_arith arithmetic-term...
13279 func_arith ()
13281 func_arith_result=$(( $* ))
13284 # func_len string
13285 # STRING may not start with a hyphen.
13286 func_len ()
13288 func_len_result=${#1}
13291 _LT_EOF
13293 *) # Bourne compatible functions.
13294 cat << \_LT_EOF >> "$cfgfile"
13296 # func_dirname file append nondir_replacement
13297 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13298 # otherwise set result to NONDIR_REPLACEMENT.
13299 func_dirname ()
13301 # Extract subdirectory from the argument.
13302 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13303 if test "X$func_dirname_result" = "X${1}"; then
13304 func_dirname_result="${3}"
13305 else
13306 func_dirname_result="$func_dirname_result${2}"
13310 # func_basename file
13311 func_basename ()
13313 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13317 # func_stripname prefix suffix name
13318 # strip PREFIX and SUFFIX off of NAME.
13319 # PREFIX and SUFFIX must not contain globbing or regex special
13320 # characters, hashes, percent signs, but SUFFIX may contain a leading
13321 # dot (in which case that matches only a dot).
13322 # func_strip_suffix prefix name
13323 func_stripname ()
13325 case ${2} in
13326 .*) func_stripname_result=`$ECHO "X${3}" \
13327 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13328 *) func_stripname_result=`$ECHO "X${3}" \
13329 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13330 esac
13333 # sed scripts:
13334 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13335 my_sed_long_arg='1s/^-[^=]*=//'
13337 # func_opt_split
13338 func_opt_split ()
13340 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13341 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13344 # func_lo2o object
13345 func_lo2o ()
13347 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13350 # func_xform libobj-or-source
13351 func_xform ()
13353 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13356 # func_arith arithmetic-term...
13357 func_arith ()
13359 func_arith_result=`expr "$@"`
13362 # func_len string
13363 # STRING may not start with a hyphen.
13364 func_len ()
13366 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13369 _LT_EOF
13370 esac
13372 case $lt_shell_append in
13373 yes)
13374 cat << \_LT_EOF >> "$cfgfile"
13376 # func_append var value
13377 # Append VALUE to the end of shell variable VAR.
13378 func_append ()
13380 eval "$1+=\$2"
13382 _LT_EOF
13385 cat << \_LT_EOF >> "$cfgfile"
13387 # func_append var value
13388 # Append VALUE to the end of shell variable VAR.
13389 func_append ()
13391 eval "$1=\$$1\$2"
13394 _LT_EOF
13396 esac
13399 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13400 || (rm -f "$cfgfile"; exit 1)
13402 mv -f "$cfgfile" "$ofile" ||
13403 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13404 chmod +x "$ofile"
13407 esac
13408 done
13409 _ACEOF
13411 cat >>$CONFIG_STATUS <<\_ACEOF
13413 { (exit 0); exit 0; }
13414 _ACEOF
13415 chmod +x $CONFIG_STATUS
13416 ac_clean_files=$ac_clean_files_save
13419 # configure is writing to config.log, and then calls config.status.
13420 # config.status does its own redirection, appending to config.log.
13421 # Unfortunately, on DOS this fails, as config.log is still kept open
13422 # by configure, so config.status won't be able to write to it; its
13423 # output is simply discarded. So we exec the FD to /dev/null,
13424 # effectively closing config.log, so it can be properly (re)opened and
13425 # appended to by config.status. When coming back to configure, we
13426 # need to make the FD available again.
13427 if test "$no_create" != yes; then
13428 ac_cs_success=:
13429 ac_config_status_args=
13430 test "$silent" = yes &&
13431 ac_config_status_args="$ac_config_status_args --quiet"
13432 exec 5>/dev/null
13433 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13434 exec 5>>config.log
13435 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13436 # would make configure fail if this is the last instruction.
13437 $ac_cs_success || { (exit 1); exit 1; }