daily update
[binutils.git] / binutils / configure
blob2c1c9f4b33336eff06de83c1121f2f7f090524a0
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
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=
418 PACKAGE_TARNAME=
419 PACKAGE_VERSION=
420 PACKAGE_STRING=
421 PACKAGE_BUGREPORT=
423 ac_unique_file="ar.c"
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 host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO CPP WARN_CFLAGS NO_WERROR YACC LEX LEXLIB LEX_OUTPUT_ROOT USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE HDEFINES CC_FOR_BUILD EXEEXT_FOR_BUILD DEMANGLER_NAME ALLOCA LIBICONV LTLIBICONV NLMCONV_DEFS BUILD_NLMCONV BUILD_SRCONV BUILD_DLLTOOL DLLTOOL_DEFS BUILD_WINDRES BUILD_WINDMC BUILD_DLLWRAP BUILD_MISC BUILD_INSTALL_MISC OBJDUMP_DEFS EMULATION EMULATION_VECTOR datarootdir docdir htmldir 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_CC_set=${CC+set}
904 ac_env_CC_value=$CC
905 ac_cv_env_CC_set=${CC+set}
906 ac_cv_env_CC_value=$CC
907 ac_env_CFLAGS_set=${CFLAGS+set}
908 ac_env_CFLAGS_value=$CFLAGS
909 ac_cv_env_CFLAGS_set=${CFLAGS+set}
910 ac_cv_env_CFLAGS_value=$CFLAGS
911 ac_env_LDFLAGS_set=${LDFLAGS+set}
912 ac_env_LDFLAGS_value=$LDFLAGS
913 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
914 ac_cv_env_LDFLAGS_value=$LDFLAGS
915 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
916 ac_env_CPPFLAGS_value=$CPPFLAGS
917 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
918 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
919 ac_env_CPP_set=${CPP+set}
920 ac_env_CPP_value=$CPP
921 ac_cv_env_CPP_set=${CPP+set}
922 ac_cv_env_CPP_value=$CPP
925 # Report the --help message.
927 if test "$ac_init_help" = "long"; then
928 # Omit some internal or obsolete options to make the list less imposing.
929 # This message is too long to be a string in the A/UX 3.1 sh.
930 cat <<_ACEOF
931 \`configure' configures this package to adapt to many kinds of systems.
933 Usage: $0 [OPTION]... [VAR=VALUE]...
935 To assign environment variables (e.g., CC, CFLAGS...), specify them as
936 VAR=VALUE. See below for descriptions of some of the useful variables.
938 Defaults for the options are specified in brackets.
940 Configuration:
941 -h, --help display this help and exit
942 --help=short display options specific to this package
943 --help=recursive display the short help of all the included packages
944 -V, --version display version information and exit
945 -q, --quiet, --silent do not print \`checking...' messages
946 --cache-file=FILE cache test results in FILE [disabled]
947 -C, --config-cache alias for \`--cache-file=config.cache'
948 -n, --no-create do not create output files
949 --srcdir=DIR find the sources in DIR [configure dir or \`..']
951 _ACEOF
953 cat <<_ACEOF
954 Installation directories:
955 --prefix=PREFIX install architecture-independent files in PREFIX
956 [$ac_default_prefix]
957 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
958 [PREFIX]
960 By default, \`make install' will install all the files in
961 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
962 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
963 for instance \`--prefix=\$HOME'.
965 For better control, use the options below.
967 Fine tuning of the installation directories:
968 --bindir=DIR user executables [EPREFIX/bin]
969 --sbindir=DIR system admin executables [EPREFIX/sbin]
970 --libexecdir=DIR program executables [EPREFIX/libexec]
971 --datadir=DIR read-only architecture-independent data [PREFIX/share]
972 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
973 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
974 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
975 --libdir=DIR object code libraries [EPREFIX/lib]
976 --includedir=DIR C header files [PREFIX/include]
977 --oldincludedir=DIR C header files for non-gcc [/usr/include]
978 --infodir=DIR info documentation [PREFIX/info]
979 --mandir=DIR man documentation [PREFIX/man]
980 _ACEOF
982 cat <<\_ACEOF
984 Program names:
985 --program-prefix=PREFIX prepend PREFIX to installed program names
986 --program-suffix=SUFFIX append SUFFIX to installed program names
987 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
989 System types:
990 --build=BUILD configure for building on BUILD [guessed]
991 --host=HOST cross-compile to build programs to run on HOST [BUILD]
992 --target=TARGET configure for building compilers for TARGET [HOST]
993 _ACEOF
996 if test -n "$ac_init_help"; then
998 cat <<\_ACEOF
1000 Optional Features:
1001 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1002 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1003 --disable-dependency-tracking speeds up one-time build
1004 --enable-dependency-tracking do not reject slow dependency extractors
1005 --enable-shared[=PKGS]
1006 build shared libraries [default=yes]
1007 --enable-static[=PKGS]
1008 build static libraries [default=yes]
1009 --enable-fast-install[=PKGS]
1010 optimize for fast installation [default=yes]
1011 --disable-libtool-lock avoid locking (might break parallel builds)
1012 --enable-targets alternative target configurations
1013 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
1014 --enable-werror treat compile warnings as errors
1015 --enable-build-warnings enable build-time compiler warnings
1016 --disable-nls do not use Native Language Support
1017 --enable-maintainer-mode enable make rules and dependencies not useful
1018 (and sometimes confusing) to the casual installer
1019 --disable-rpath do not hardcode runtime library paths
1021 Optional Packages:
1022 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1023 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1024 --with-pic try to use only PIC/non-PIC objects [default=use
1025 both]
1026 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1027 --with-gnu-ld assume the C compiler uses GNU ld default=no
1028 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1029 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1031 Some influential environment variables:
1032 CC C compiler command
1033 CFLAGS C compiler flags
1034 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1035 nonstandard directory <lib dir>
1036 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1037 headers in a nonstandard directory <include dir>
1038 CPP C preprocessor
1040 Use these variables to override the choices made by `configure' or to help
1041 it to find libraries and programs with nonstandard names/locations.
1043 _ACEOF
1046 if test "$ac_init_help" = "recursive"; then
1047 # If there are subdirs, report their specific --help.
1048 ac_popdir=`pwd`
1049 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1050 test -d $ac_dir || continue
1051 ac_builddir=.
1053 if test "$ac_dir" != .; then
1054 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1055 # A "../" for each directory in $ac_dir_suffix.
1056 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1057 else
1058 ac_dir_suffix= ac_top_builddir=
1061 case $srcdir in
1062 .) # No --srcdir option. We are building in place.
1063 ac_srcdir=.
1064 if test -z "$ac_top_builddir"; then
1065 ac_top_srcdir=.
1066 else
1067 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1068 fi ;;
1069 [\\/]* | ?:[\\/]* ) # Absolute path.
1070 ac_srcdir=$srcdir$ac_dir_suffix;
1071 ac_top_srcdir=$srcdir ;;
1072 *) # Relative path.
1073 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1074 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1075 esac
1077 # Do not use `cd foo && pwd` to compute absolute paths, because
1078 # the directories may not exist.
1079 case `pwd` in
1080 .) ac_abs_builddir="$ac_dir";;
1082 case "$ac_dir" in
1083 .) ac_abs_builddir=`pwd`;;
1084 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1085 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1086 esac;;
1087 esac
1088 case $ac_abs_builddir in
1089 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1091 case ${ac_top_builddir}. in
1092 .) ac_abs_top_builddir=$ac_abs_builddir;;
1093 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1094 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1095 esac;;
1096 esac
1097 case $ac_abs_builddir in
1098 .) ac_abs_srcdir=$ac_srcdir;;
1100 case $ac_srcdir in
1101 .) ac_abs_srcdir=$ac_abs_builddir;;
1102 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1103 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1104 esac;;
1105 esac
1106 case $ac_abs_builddir in
1107 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1109 case $ac_top_srcdir in
1110 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1111 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1112 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1113 esac;;
1114 esac
1116 cd $ac_dir
1117 # Check for guested configure; otherwise get Cygnus style configure.
1118 if test -f $ac_srcdir/configure.gnu; then
1119 echo
1120 $SHELL $ac_srcdir/configure.gnu --help=recursive
1121 elif test -f $ac_srcdir/configure; then
1122 echo
1123 $SHELL $ac_srcdir/configure --help=recursive
1124 elif test -f $ac_srcdir/configure.ac ||
1125 test -f $ac_srcdir/configure.in; then
1126 echo
1127 $ac_configure --help
1128 else
1129 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1131 cd "$ac_popdir"
1132 done
1135 test -n "$ac_init_help" && exit 0
1136 if $ac_init_version; then
1137 cat <<\_ACEOF
1139 Copyright (C) 2003 Free Software Foundation, Inc.
1140 This configure script is free software; the Free Software Foundation
1141 gives unlimited permission to copy, distribute and modify it.
1142 _ACEOF
1143 exit 0
1145 exec 5>config.log
1146 cat >&5 <<_ACEOF
1147 This file contains any messages produced by compilers while
1148 running configure, to aid debugging if configure makes a mistake.
1150 It was created by $as_me, which was
1151 generated by GNU Autoconf 2.59. Invocation command line was
1153 $ $0 $@
1155 _ACEOF
1157 cat <<_ASUNAME
1158 ## --------- ##
1159 ## Platform. ##
1160 ## --------- ##
1162 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1163 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1164 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1165 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1166 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1168 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1169 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1171 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1172 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1173 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1174 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1175 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1176 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1177 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1179 _ASUNAME
1181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1182 for as_dir in $PATH
1184 IFS=$as_save_IFS
1185 test -z "$as_dir" && as_dir=.
1186 echo "PATH: $as_dir"
1187 done
1189 } >&5
1191 cat >&5 <<_ACEOF
1194 ## ----------- ##
1195 ## Core tests. ##
1196 ## ----------- ##
1198 _ACEOF
1201 # Keep a trace of the command line.
1202 # Strip out --no-create and --no-recursion so they do not pile up.
1203 # Strip out --silent because we don't want to record it for future runs.
1204 # Also quote any args containing shell meta-characters.
1205 # Make two passes to allow for proper duplicate-argument suppression.
1206 ac_configure_args=
1207 ac_configure_args0=
1208 ac_configure_args1=
1209 ac_sep=
1210 ac_must_keep_next=false
1211 for ac_pass in 1 2
1213 for ac_arg
1215 case $ac_arg in
1216 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1217 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218 | -silent | --silent | --silen | --sile | --sil)
1219 continue ;;
1220 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1221 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1222 esac
1223 case $ac_pass in
1224 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1226 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1227 if test $ac_must_keep_next = true; then
1228 ac_must_keep_next=false # Got value, back to normal.
1229 else
1230 case $ac_arg in
1231 *=* | --config-cache | -C | -disable-* | --disable-* \
1232 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1233 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1234 | -with-* | --with-* | -without-* | --without-* | --x)
1235 case "$ac_configure_args0 " in
1236 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1237 esac
1239 -* ) ac_must_keep_next=true ;;
1240 esac
1242 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1243 # Get rid of the leading space.
1244 ac_sep=" "
1246 esac
1247 done
1248 done
1249 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1250 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1252 # When interrupted or exit'd, cleanup temporary files, and complete
1253 # config.log. We remove comments because anyway the quotes in there
1254 # would cause problems or look ugly.
1255 # WARNING: Be sure not to use single quotes in there, as some shells,
1256 # such as our DU 5.0 friend, will then `close' the trap.
1257 trap 'exit_status=$?
1258 # Save into config.log some information that might help in debugging.
1260 echo
1262 cat <<\_ASBOX
1263 ## ---------------- ##
1264 ## Cache variables. ##
1265 ## ---------------- ##
1266 _ASBOX
1267 echo
1268 # The following way of writing the cache mishandles newlines in values,
1270 (set) 2>&1 |
1271 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1272 *ac_space=\ *)
1273 sed -n \
1274 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1275 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1278 sed -n \
1279 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1281 esac;
1283 echo
1285 cat <<\_ASBOX
1286 ## ----------------- ##
1287 ## Output variables. ##
1288 ## ----------------- ##
1289 _ASBOX
1290 echo
1291 for ac_var in $ac_subst_vars
1293 eval ac_val=$`echo $ac_var`
1294 echo "$ac_var='"'"'$ac_val'"'"'"
1295 done | sort
1296 echo
1298 if test -n "$ac_subst_files"; then
1299 cat <<\_ASBOX
1300 ## ------------- ##
1301 ## Output files. ##
1302 ## ------------- ##
1303 _ASBOX
1304 echo
1305 for ac_var in $ac_subst_files
1307 eval ac_val=$`echo $ac_var`
1308 echo "$ac_var='"'"'$ac_val'"'"'"
1309 done | sort
1310 echo
1313 if test -s confdefs.h; then
1314 cat <<\_ASBOX
1315 ## ----------- ##
1316 ## confdefs.h. ##
1317 ## ----------- ##
1318 _ASBOX
1319 echo
1320 sed "/^$/d" confdefs.h | sort
1321 echo
1323 test "$ac_signal" != 0 &&
1324 echo "$as_me: caught signal $ac_signal"
1325 echo "$as_me: exit $exit_status"
1326 } >&5
1327 rm -f core *.core &&
1328 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1329 exit $exit_status
1331 for ac_signal in 1 2 13 15; do
1332 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1333 done
1334 ac_signal=0
1336 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1337 rm -rf conftest* confdefs.h
1338 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1339 echo >confdefs.h
1341 # Predefined preprocessor variables.
1343 cat >>confdefs.h <<_ACEOF
1344 #define PACKAGE_NAME "$PACKAGE_NAME"
1345 _ACEOF
1348 cat >>confdefs.h <<_ACEOF
1349 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1350 _ACEOF
1353 cat >>confdefs.h <<_ACEOF
1354 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1355 _ACEOF
1358 cat >>confdefs.h <<_ACEOF
1359 #define PACKAGE_STRING "$PACKAGE_STRING"
1360 _ACEOF
1363 cat >>confdefs.h <<_ACEOF
1364 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1365 _ACEOF
1368 # Let the site file select an alternate cache file if it wants to.
1369 # Prefer explicitly selected file to automatically selected ones.
1370 if test -z "$CONFIG_SITE"; then
1371 if test "x$prefix" != xNONE; then
1372 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1373 else
1374 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1377 for ac_site_file in $CONFIG_SITE; do
1378 if test -r "$ac_site_file"; then
1379 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1380 echo "$as_me: loading site script $ac_site_file" >&6;}
1381 sed 's/^/| /' "$ac_site_file" >&5
1382 . "$ac_site_file"
1384 done
1386 if test -r "$cache_file"; then
1387 # Some versions of bash will fail to source /dev/null (special
1388 # files actually), so we avoid doing that.
1389 if test -f "$cache_file"; then
1390 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1391 echo "$as_me: loading cache $cache_file" >&6;}
1392 case $cache_file in
1393 [\\/]* | ?:[\\/]* ) . $cache_file;;
1394 *) . ./$cache_file;;
1395 esac
1397 else
1398 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1399 echo "$as_me: creating cache $cache_file" >&6;}
1400 >$cache_file
1403 # Check that the precious variables saved in the cache have kept the same
1404 # value.
1405 ac_cache_corrupted=false
1406 for ac_var in `(set) 2>&1 |
1407 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1408 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1409 eval ac_new_set=\$ac_env_${ac_var}_set
1410 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1411 eval ac_new_val="\$ac_env_${ac_var}_value"
1412 case $ac_old_set,$ac_new_set in
1413 set,)
1414 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1415 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1416 ac_cache_corrupted=: ;;
1417 ,set)
1418 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1419 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1420 ac_cache_corrupted=: ;;
1421 ,);;
1423 if test "x$ac_old_val" != "x$ac_new_val"; then
1424 # differences in whitespace do not lead to failure.
1425 ac_old_val_w=`echo x $ac_old_val`
1426 ac_new_val_w=`echo x $ac_new_val`
1427 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1428 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1429 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1430 ac_cache_corrupted=:
1431 else
1432 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1433 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1434 eval $ac_var=\$ac_old_val
1436 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1437 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1438 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1439 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1440 fi;;
1441 esac
1442 # Pass precious variables to config.status.
1443 if test "$ac_new_set" = set; then
1444 case $ac_new_val in
1445 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1446 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1447 *) ac_arg=$ac_var=$ac_new_val ;;
1448 esac
1449 case " $ac_configure_args " in
1450 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1451 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1452 esac
1454 done
1455 if $ac_cache_corrupted; then
1456 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1457 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1458 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1459 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1460 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1461 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1462 { (exit 1); exit 1; }; }
1465 ac_ext=c
1466 ac_cpp='$CPP $CPPFLAGS'
1467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1493 ac_aux_dir=
1494 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1495 if test -f $ac_dir/install-sh; then
1496 ac_aux_dir=$ac_dir
1497 ac_install_sh="$ac_aux_dir/install-sh -c"
1498 break
1499 elif test -f $ac_dir/install.sh; then
1500 ac_aux_dir=$ac_dir
1501 ac_install_sh="$ac_aux_dir/install.sh -c"
1502 break
1503 elif test -f $ac_dir/shtool; then
1504 ac_aux_dir=$ac_dir
1505 ac_install_sh="$ac_aux_dir/shtool install -c"
1506 break
1508 done
1509 if test -z "$ac_aux_dir"; then
1510 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1511 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1512 { (exit 1); exit 1; }; }
1514 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1515 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1516 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1518 # Make sure we can run config.sub.
1519 $ac_config_sub sun4 >/dev/null 2>&1 ||
1520 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1521 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1522 { (exit 1); exit 1; }; }
1524 echo "$as_me:$LINENO: checking build system type" >&5
1525 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1526 if test "${ac_cv_build+set}" = set; then
1527 echo $ECHO_N "(cached) $ECHO_C" >&6
1528 else
1529 ac_cv_build_alias=$build_alias
1530 test -z "$ac_cv_build_alias" &&
1531 ac_cv_build_alias=`$ac_config_guess`
1532 test -z "$ac_cv_build_alias" &&
1533 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1534 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1535 { (exit 1); exit 1; }; }
1536 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1537 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1538 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1539 { (exit 1); exit 1; }; }
1542 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1543 echo "${ECHO_T}$ac_cv_build" >&6
1544 build=$ac_cv_build
1545 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1546 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1547 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1550 echo "$as_me:$LINENO: checking host system type" >&5
1551 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1552 if test "${ac_cv_host+set}" = set; then
1553 echo $ECHO_N "(cached) $ECHO_C" >&6
1554 else
1555 ac_cv_host_alias=$host_alias
1556 test -z "$ac_cv_host_alias" &&
1557 ac_cv_host_alias=$ac_cv_build_alias
1558 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1559 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1560 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1561 { (exit 1); exit 1; }; }
1564 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1565 echo "${ECHO_T}$ac_cv_host" >&6
1566 host=$ac_cv_host
1567 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1568 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1569 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1572 echo "$as_me:$LINENO: checking target system type" >&5
1573 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1574 if test "${ac_cv_target+set}" = set; then
1575 echo $ECHO_N "(cached) $ECHO_C" >&6
1576 else
1577 ac_cv_target_alias=$target_alias
1578 test "x$ac_cv_target_alias" = "x" &&
1579 ac_cv_target_alias=$ac_cv_host_alias
1580 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1581 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1582 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1583 { (exit 1); exit 1; }; }
1586 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1587 echo "${ECHO_T}$ac_cv_target" >&6
1588 target=$ac_cv_target
1589 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1590 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1591 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1594 # The aliases save the names the user supplied, while $host etc.
1595 # will get canonicalized.
1596 test -n "$target_alias" &&
1597 test "$program_prefix$program_suffix$program_transform_name" = \
1598 NONENONEs,x,x, &&
1599 program_prefix=${target_alias}-
1600 ac_ext=c
1601 ac_cpp='$CPP $CPPFLAGS'
1602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1605 if test -n "$ac_tool_prefix"; then
1606 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1607 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1608 echo "$as_me:$LINENO: checking for $ac_word" >&5
1609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1610 if test "${ac_cv_prog_CC+set}" = set; then
1611 echo $ECHO_N "(cached) $ECHO_C" >&6
1612 else
1613 if test -n "$CC"; then
1614 ac_cv_prog_CC="$CC" # Let the user override the test.
1615 else
1616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1617 for as_dir in $PATH
1619 IFS=$as_save_IFS
1620 test -z "$as_dir" && as_dir=.
1621 for ac_exec_ext in '' $ac_executable_extensions; do
1622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1623 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1625 break 2
1627 done
1628 done
1632 CC=$ac_cv_prog_CC
1633 if test -n "$CC"; then
1634 echo "$as_me:$LINENO: result: $CC" >&5
1635 echo "${ECHO_T}$CC" >&6
1636 else
1637 echo "$as_me:$LINENO: result: no" >&5
1638 echo "${ECHO_T}no" >&6
1642 if test -z "$ac_cv_prog_CC"; then
1643 ac_ct_CC=$CC
1644 # Extract the first word of "gcc", so it can be a program name with args.
1645 set dummy gcc; ac_word=$2
1646 echo "$as_me:$LINENO: checking for $ac_word" >&5
1647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1648 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1649 echo $ECHO_N "(cached) $ECHO_C" >&6
1650 else
1651 if test -n "$ac_ct_CC"; then
1652 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1653 else
1654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1655 for as_dir in $PATH
1657 IFS=$as_save_IFS
1658 test -z "$as_dir" && as_dir=.
1659 for ac_exec_ext in '' $ac_executable_extensions; do
1660 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1661 ac_cv_prog_ac_ct_CC="gcc"
1662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1663 break 2
1665 done
1666 done
1670 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1671 if test -n "$ac_ct_CC"; then
1672 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1673 echo "${ECHO_T}$ac_ct_CC" >&6
1674 else
1675 echo "$as_me:$LINENO: result: no" >&5
1676 echo "${ECHO_T}no" >&6
1679 CC=$ac_ct_CC
1680 else
1681 CC="$ac_cv_prog_CC"
1684 if test -z "$CC"; then
1685 if test -n "$ac_tool_prefix"; then
1686 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1687 set dummy ${ac_tool_prefix}cc; ac_word=$2
1688 echo "$as_me:$LINENO: checking for $ac_word" >&5
1689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1690 if test "${ac_cv_prog_CC+set}" = set; then
1691 echo $ECHO_N "(cached) $ECHO_C" >&6
1692 else
1693 if test -n "$CC"; then
1694 ac_cv_prog_CC="$CC" # Let the user override the test.
1695 else
1696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1697 for as_dir in $PATH
1699 IFS=$as_save_IFS
1700 test -z "$as_dir" && as_dir=.
1701 for ac_exec_ext in '' $ac_executable_extensions; do
1702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1703 ac_cv_prog_CC="${ac_tool_prefix}cc"
1704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1705 break 2
1707 done
1708 done
1712 CC=$ac_cv_prog_CC
1713 if test -n "$CC"; then
1714 echo "$as_me:$LINENO: result: $CC" >&5
1715 echo "${ECHO_T}$CC" >&6
1716 else
1717 echo "$as_me:$LINENO: result: no" >&5
1718 echo "${ECHO_T}no" >&6
1722 if test -z "$ac_cv_prog_CC"; then
1723 ac_ct_CC=$CC
1724 # Extract the first word of "cc", so it can be a program name with args.
1725 set dummy cc; ac_word=$2
1726 echo "$as_me:$LINENO: checking for $ac_word" >&5
1727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1728 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1729 echo $ECHO_N "(cached) $ECHO_C" >&6
1730 else
1731 if test -n "$ac_ct_CC"; then
1732 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1733 else
1734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1735 for as_dir in $PATH
1737 IFS=$as_save_IFS
1738 test -z "$as_dir" && as_dir=.
1739 for ac_exec_ext in '' $ac_executable_extensions; do
1740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1741 ac_cv_prog_ac_ct_CC="cc"
1742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1743 break 2
1745 done
1746 done
1750 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1751 if test -n "$ac_ct_CC"; then
1752 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1753 echo "${ECHO_T}$ac_ct_CC" >&6
1754 else
1755 echo "$as_me:$LINENO: result: no" >&5
1756 echo "${ECHO_T}no" >&6
1759 CC=$ac_ct_CC
1760 else
1761 CC="$ac_cv_prog_CC"
1765 if test -z "$CC"; then
1766 # Extract the first word of "cc", so it can be a program name with args.
1767 set dummy cc; ac_word=$2
1768 echo "$as_me:$LINENO: checking for $ac_word" >&5
1769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1770 if test "${ac_cv_prog_CC+set}" = set; then
1771 echo $ECHO_N "(cached) $ECHO_C" >&6
1772 else
1773 if test -n "$CC"; then
1774 ac_cv_prog_CC="$CC" # Let the user override the test.
1775 else
1776 ac_prog_rejected=no
1777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1778 for as_dir in $PATH
1780 IFS=$as_save_IFS
1781 test -z "$as_dir" && as_dir=.
1782 for ac_exec_ext in '' $ac_executable_extensions; do
1783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1784 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1785 ac_prog_rejected=yes
1786 continue
1788 ac_cv_prog_CC="cc"
1789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1790 break 2
1792 done
1793 done
1795 if test $ac_prog_rejected = yes; then
1796 # We found a bogon in the path, so make sure we never use it.
1797 set dummy $ac_cv_prog_CC
1798 shift
1799 if test $# != 0; then
1800 # We chose a different compiler from the bogus one.
1801 # However, it has the same basename, so the bogon will be chosen
1802 # first if we set CC to just the basename; use the full file name.
1803 shift
1804 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1809 CC=$ac_cv_prog_CC
1810 if test -n "$CC"; then
1811 echo "$as_me:$LINENO: result: $CC" >&5
1812 echo "${ECHO_T}$CC" >&6
1813 else
1814 echo "$as_me:$LINENO: result: no" >&5
1815 echo "${ECHO_T}no" >&6
1819 if test -z "$CC"; then
1820 if test -n "$ac_tool_prefix"; then
1821 for ac_prog in cl
1823 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1824 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1825 echo "$as_me:$LINENO: checking for $ac_word" >&5
1826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1827 if test "${ac_cv_prog_CC+set}" = set; then
1828 echo $ECHO_N "(cached) $ECHO_C" >&6
1829 else
1830 if test -n "$CC"; then
1831 ac_cv_prog_CC="$CC" # Let the user override the test.
1832 else
1833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1834 for as_dir in $PATH
1836 IFS=$as_save_IFS
1837 test -z "$as_dir" && as_dir=.
1838 for ac_exec_ext in '' $ac_executable_extensions; do
1839 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1840 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1842 break 2
1844 done
1845 done
1849 CC=$ac_cv_prog_CC
1850 if test -n "$CC"; then
1851 echo "$as_me:$LINENO: result: $CC" >&5
1852 echo "${ECHO_T}$CC" >&6
1853 else
1854 echo "$as_me:$LINENO: result: no" >&5
1855 echo "${ECHO_T}no" >&6
1858 test -n "$CC" && break
1859 done
1861 if test -z "$CC"; then
1862 ac_ct_CC=$CC
1863 for ac_prog in cl
1865 # Extract the first word of "$ac_prog", so it can be a program name with args.
1866 set dummy $ac_prog; ac_word=$2
1867 echo "$as_me:$LINENO: checking for $ac_word" >&5
1868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1869 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1870 echo $ECHO_N "(cached) $ECHO_C" >&6
1871 else
1872 if test -n "$ac_ct_CC"; then
1873 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1874 else
1875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1876 for as_dir in $PATH
1878 IFS=$as_save_IFS
1879 test -z "$as_dir" && as_dir=.
1880 for ac_exec_ext in '' $ac_executable_extensions; do
1881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1882 ac_cv_prog_ac_ct_CC="$ac_prog"
1883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1884 break 2
1886 done
1887 done
1891 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1892 if test -n "$ac_ct_CC"; then
1893 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1894 echo "${ECHO_T}$ac_ct_CC" >&6
1895 else
1896 echo "$as_me:$LINENO: result: no" >&5
1897 echo "${ECHO_T}no" >&6
1900 test -n "$ac_ct_CC" && break
1901 done
1903 CC=$ac_ct_CC
1909 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1910 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1911 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1912 See \`config.log' for more details." >&5
1913 echo "$as_me: error: no acceptable C compiler found in \$PATH
1914 See \`config.log' for more details." >&2;}
1915 { (exit 1); exit 1; }; }; }
1917 # Provide some information about the compiler.
1918 echo "$as_me:$LINENO:" \
1919 "checking for C compiler version" >&5
1920 ac_compiler=`set X $ac_compile; echo $2`
1921 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1922 (eval $ac_compiler --version </dev/null >&5) 2>&5
1923 ac_status=$?
1924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1925 (exit $ac_status); }
1926 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1927 (eval $ac_compiler -v </dev/null >&5) 2>&5
1928 ac_status=$?
1929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1930 (exit $ac_status); }
1931 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1932 (eval $ac_compiler -V </dev/null >&5) 2>&5
1933 ac_status=$?
1934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1935 (exit $ac_status); }
1937 cat >conftest.$ac_ext <<_ACEOF
1938 /* confdefs.h. */
1939 _ACEOF
1940 cat confdefs.h >>conftest.$ac_ext
1941 cat >>conftest.$ac_ext <<_ACEOF
1942 /* end confdefs.h. */
1945 main ()
1949 return 0;
1951 _ACEOF
1952 ac_clean_files_save=$ac_clean_files
1953 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1954 # Try to create an executable without -o first, disregard a.out.
1955 # It will help us diagnose broken compilers, and finding out an intuition
1956 # of exeext.
1957 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1958 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1959 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1960 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1961 (eval $ac_link_default) 2>&5
1962 ac_status=$?
1963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1964 (exit $ac_status); }; then
1965 # Find the output, starting from the most likely. This scheme is
1966 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1967 # resort.
1969 # Be careful to initialize this variable, since it used to be cached.
1970 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1971 ac_cv_exeext=
1972 # b.out is created by i960 compilers.
1973 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1975 test -f "$ac_file" || continue
1976 case $ac_file in
1977 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1979 conftest.$ac_ext )
1980 # This is the source file.
1982 [ab].out )
1983 # We found the default executable, but exeext='' is most
1984 # certainly right.
1985 break;;
1986 *.* )
1987 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1988 # FIXME: I believe we export ac_cv_exeext for Libtool,
1989 # but it would be cool to find out if it's true. Does anybody
1990 # maintain Libtool? --akim.
1991 export ac_cv_exeext
1992 break;;
1994 break;;
1995 esac
1996 done
1997 else
1998 echo "$as_me: failed program was:" >&5
1999 sed 's/^/| /' conftest.$ac_ext >&5
2001 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2002 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2003 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2004 See \`config.log' for more details." >&5
2005 echo "$as_me: error: C compiler cannot create executables
2006 See \`config.log' for more details." >&2;}
2007 { (exit 77); exit 77; }; }; }
2010 ac_exeext=$ac_cv_exeext
2011 echo "$as_me:$LINENO: result: $ac_file" >&5
2012 echo "${ECHO_T}$ac_file" >&6
2014 # Check the compiler produces executables we can run. If not, either
2015 # the compiler is broken, or we cross compile.
2016 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2017 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2018 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2019 # If not cross compiling, check that we can run a simple program.
2020 if test "$cross_compiling" != yes; then
2021 if { ac_try='./$ac_file'
2022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2023 (eval $ac_try) 2>&5
2024 ac_status=$?
2025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2026 (exit $ac_status); }; }; then
2027 cross_compiling=no
2028 else
2029 if test "$cross_compiling" = maybe; then
2030 cross_compiling=yes
2031 else
2032 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2033 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2034 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2035 If you meant to cross compile, use \`--host'.
2036 See \`config.log' for more details." >&5
2037 echo "$as_me: error: cannot run C compiled programs.
2038 If you meant to cross compile, use \`--host'.
2039 See \`config.log' for more details." >&2;}
2040 { (exit 1); exit 1; }; }; }
2044 echo "$as_me:$LINENO: result: yes" >&5
2045 echo "${ECHO_T}yes" >&6
2047 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2048 ac_clean_files=$ac_clean_files_save
2049 # Check the compiler produces executables we can run. If not, either
2050 # the compiler is broken, or we cross compile.
2051 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2052 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2053 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2054 echo "${ECHO_T}$cross_compiling" >&6
2056 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2057 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2059 (eval $ac_link) 2>&5
2060 ac_status=$?
2061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062 (exit $ac_status); }; then
2063 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2064 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2065 # work properly (i.e., refer to `conftest.exe'), while it won't with
2066 # `rm'.
2067 for ac_file in conftest.exe conftest conftest.*; do
2068 test -f "$ac_file" || continue
2069 case $ac_file in
2070 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2071 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2072 export ac_cv_exeext
2073 break;;
2074 * ) break;;
2075 esac
2076 done
2077 else
2078 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2079 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2080 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2081 See \`config.log' for more details." >&5
2082 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2083 See \`config.log' for more details." >&2;}
2084 { (exit 1); exit 1; }; }; }
2087 rm -f conftest$ac_cv_exeext
2088 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2089 echo "${ECHO_T}$ac_cv_exeext" >&6
2091 rm -f conftest.$ac_ext
2092 EXEEXT=$ac_cv_exeext
2093 ac_exeext=$EXEEXT
2094 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2095 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2096 if test "${ac_cv_objext+set}" = set; then
2097 echo $ECHO_N "(cached) $ECHO_C" >&6
2098 else
2099 cat >conftest.$ac_ext <<_ACEOF
2100 /* confdefs.h. */
2101 _ACEOF
2102 cat confdefs.h >>conftest.$ac_ext
2103 cat >>conftest.$ac_ext <<_ACEOF
2104 /* end confdefs.h. */
2107 main ()
2111 return 0;
2113 _ACEOF
2114 rm -f conftest.o conftest.obj
2115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2116 (eval $ac_compile) 2>&5
2117 ac_status=$?
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); }; then
2120 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2121 case $ac_file in
2122 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2123 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2124 break;;
2125 esac
2126 done
2127 else
2128 echo "$as_me: failed program was:" >&5
2129 sed 's/^/| /' conftest.$ac_ext >&5
2131 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2132 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2133 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2134 See \`config.log' for more details." >&5
2135 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2136 See \`config.log' for more details." >&2;}
2137 { (exit 1); exit 1; }; }; }
2140 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2142 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2143 echo "${ECHO_T}$ac_cv_objext" >&6
2144 OBJEXT=$ac_cv_objext
2145 ac_objext=$OBJEXT
2146 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2147 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2148 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2149 echo $ECHO_N "(cached) $ECHO_C" >&6
2150 else
2151 cat >conftest.$ac_ext <<_ACEOF
2152 /* confdefs.h. */
2153 _ACEOF
2154 cat confdefs.h >>conftest.$ac_ext
2155 cat >>conftest.$ac_ext <<_ACEOF
2156 /* end confdefs.h. */
2159 main ()
2161 #ifndef __GNUC__
2162 choke me
2163 #endif
2166 return 0;
2168 _ACEOF
2169 rm -f conftest.$ac_objext
2170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2171 (eval $ac_compile) 2>conftest.er1
2172 ac_status=$?
2173 grep -v '^ *+' conftest.er1 >conftest.err
2174 rm -f conftest.er1
2175 cat conftest.err >&5
2176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177 (exit $ac_status); } &&
2178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2180 (eval $ac_try) 2>&5
2181 ac_status=$?
2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183 (exit $ac_status); }; } &&
2184 { ac_try='test -s conftest.$ac_objext'
2185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2186 (eval $ac_try) 2>&5
2187 ac_status=$?
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); }; }; then
2190 ac_compiler_gnu=yes
2191 else
2192 echo "$as_me: failed program was:" >&5
2193 sed 's/^/| /' conftest.$ac_ext >&5
2195 ac_compiler_gnu=no
2197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2198 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2201 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2202 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2203 GCC=`test $ac_compiler_gnu = yes && echo yes`
2204 ac_test_CFLAGS=${CFLAGS+set}
2205 ac_save_CFLAGS=$CFLAGS
2206 CFLAGS="-g"
2207 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2208 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2209 if test "${ac_cv_prog_cc_g+set}" = set; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
2211 else
2212 cat >conftest.$ac_ext <<_ACEOF
2213 /* confdefs.h. */
2214 _ACEOF
2215 cat confdefs.h >>conftest.$ac_ext
2216 cat >>conftest.$ac_ext <<_ACEOF
2217 /* end confdefs.h. */
2220 main ()
2224 return 0;
2226 _ACEOF
2227 rm -f conftest.$ac_objext
2228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2229 (eval $ac_compile) 2>conftest.er1
2230 ac_status=$?
2231 grep -v '^ *+' conftest.er1 >conftest.err
2232 rm -f conftest.er1
2233 cat conftest.err >&5
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); } &&
2236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238 (eval $ac_try) 2>&5
2239 ac_status=$?
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; } &&
2242 { ac_try='test -s conftest.$ac_objext'
2243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2244 (eval $ac_try) 2>&5
2245 ac_status=$?
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247 (exit $ac_status); }; }; then
2248 ac_cv_prog_cc_g=yes
2249 else
2250 echo "$as_me: failed program was:" >&5
2251 sed 's/^/| /' conftest.$ac_ext >&5
2253 ac_cv_prog_cc_g=no
2255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2257 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2258 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2259 if test "$ac_test_CFLAGS" = set; then
2260 CFLAGS=$ac_save_CFLAGS
2261 elif test $ac_cv_prog_cc_g = yes; then
2262 if test "$GCC" = yes; then
2263 CFLAGS="-g -O2"
2264 else
2265 CFLAGS="-g"
2267 else
2268 if test "$GCC" = yes; then
2269 CFLAGS="-O2"
2270 else
2271 CFLAGS=
2274 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2275 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2276 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2277 echo $ECHO_N "(cached) $ECHO_C" >&6
2278 else
2279 ac_cv_prog_cc_stdc=no
2280 ac_save_CC=$CC
2281 cat >conftest.$ac_ext <<_ACEOF
2282 /* confdefs.h. */
2283 _ACEOF
2284 cat confdefs.h >>conftest.$ac_ext
2285 cat >>conftest.$ac_ext <<_ACEOF
2286 /* end confdefs.h. */
2287 #include <stdarg.h>
2288 #include <stdio.h>
2289 #include <sys/types.h>
2290 #include <sys/stat.h>
2291 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2292 struct buf { int x; };
2293 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2294 static char *e (p, i)
2295 char **p;
2296 int i;
2298 return p[i];
2300 static char *f (char * (*g) (char **, int), char **p, ...)
2302 char *s;
2303 va_list v;
2304 va_start (v,p);
2305 s = g (p, va_arg (v,int));
2306 va_end (v);
2307 return s;
2310 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2311 function prototypes and stuff, but not '\xHH' hex character constants.
2312 These don't provoke an error unfortunately, instead are silently treated
2313 as 'x'. The following induces an error, until -std1 is added to get
2314 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2315 array size at least. It's necessary to write '\x00'==0 to get something
2316 that's true only with -std1. */
2317 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2319 int test (int i, double x);
2320 struct s1 {int (*f) (int a);};
2321 struct s2 {int (*f) (double a);};
2322 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2323 int argc;
2324 char **argv;
2326 main ()
2328 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2330 return 0;
2332 _ACEOF
2333 # Don't try gcc -ansi; that turns off useful extensions and
2334 # breaks some systems' header files.
2335 # AIX -qlanglvl=ansi
2336 # Ultrix and OSF/1 -std1
2337 # HP-UX 10.20 and later -Ae
2338 # HP-UX older versions -Aa -D_HPUX_SOURCE
2339 # SVR4 -Xc -D__EXTENSIONS__
2340 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2342 CC="$ac_save_CC $ac_arg"
2343 rm -f conftest.$ac_objext
2344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2345 (eval $ac_compile) 2>conftest.er1
2346 ac_status=$?
2347 grep -v '^ *+' conftest.er1 >conftest.err
2348 rm -f conftest.er1
2349 cat conftest.err >&5
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); } &&
2352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2354 (eval $ac_try) 2>&5
2355 ac_status=$?
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); }; } &&
2358 { ac_try='test -s conftest.$ac_objext'
2359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2360 (eval $ac_try) 2>&5
2361 ac_status=$?
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); }; }; then
2364 ac_cv_prog_cc_stdc=$ac_arg
2365 break
2366 else
2367 echo "$as_me: failed program was:" >&5
2368 sed 's/^/| /' conftest.$ac_ext >&5
2371 rm -f conftest.err conftest.$ac_objext
2372 done
2373 rm -f conftest.$ac_ext conftest.$ac_objext
2374 CC=$ac_save_CC
2378 case "x$ac_cv_prog_cc_stdc" in
2379 x|xno)
2380 echo "$as_me:$LINENO: result: none needed" >&5
2381 echo "${ECHO_T}none needed" >&6 ;;
2383 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2384 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2385 CC="$CC $ac_cv_prog_cc_stdc" ;;
2386 esac
2388 # Some people use a C++ compiler to compile C. Since we use `exit',
2389 # in C++ we need to declare it. In case someone uses the same compiler
2390 # for both compiling C and C++ we need to have the C++ compiler decide
2391 # the declaration of exit, since it's the most demanding environment.
2392 cat >conftest.$ac_ext <<_ACEOF
2393 #ifndef __cplusplus
2394 choke me
2395 #endif
2396 _ACEOF
2397 rm -f conftest.$ac_objext
2398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2399 (eval $ac_compile) 2>conftest.er1
2400 ac_status=$?
2401 grep -v '^ *+' conftest.er1 >conftest.err
2402 rm -f conftest.er1
2403 cat conftest.err >&5
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); } &&
2406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408 (eval $ac_try) 2>&5
2409 ac_status=$?
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; } &&
2412 { ac_try='test -s conftest.$ac_objext'
2413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414 (eval $ac_try) 2>&5
2415 ac_status=$?
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); }; }; then
2418 for ac_declaration in \
2419 '' \
2420 'extern "C" void std::exit (int) throw (); using std::exit;' \
2421 'extern "C" void std::exit (int); using std::exit;' \
2422 'extern "C" void exit (int) throw ();' \
2423 'extern "C" void exit (int);' \
2424 'void exit (int);'
2426 cat >conftest.$ac_ext <<_ACEOF
2427 /* confdefs.h. */
2428 _ACEOF
2429 cat confdefs.h >>conftest.$ac_ext
2430 cat >>conftest.$ac_ext <<_ACEOF
2431 /* end confdefs.h. */
2432 $ac_declaration
2433 #include <stdlib.h>
2435 main ()
2437 exit (42);
2439 return 0;
2441 _ACEOF
2442 rm -f conftest.$ac_objext
2443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2444 (eval $ac_compile) 2>conftest.er1
2445 ac_status=$?
2446 grep -v '^ *+' conftest.er1 >conftest.err
2447 rm -f conftest.er1
2448 cat conftest.err >&5
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); } &&
2451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2453 (eval $ac_try) 2>&5
2454 ac_status=$?
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); }; } &&
2457 { ac_try='test -s conftest.$ac_objext'
2458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2459 (eval $ac_try) 2>&5
2460 ac_status=$?
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); }; }; then
2464 else
2465 echo "$as_me: failed program was:" >&5
2466 sed 's/^/| /' conftest.$ac_ext >&5
2468 continue
2470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2471 cat >conftest.$ac_ext <<_ACEOF
2472 /* confdefs.h. */
2473 _ACEOF
2474 cat confdefs.h >>conftest.$ac_ext
2475 cat >>conftest.$ac_ext <<_ACEOF
2476 /* end confdefs.h. */
2477 $ac_declaration
2479 main ()
2481 exit (42);
2483 return 0;
2485 _ACEOF
2486 rm -f conftest.$ac_objext
2487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2488 (eval $ac_compile) 2>conftest.er1
2489 ac_status=$?
2490 grep -v '^ *+' conftest.er1 >conftest.err
2491 rm -f conftest.er1
2492 cat conftest.err >&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); } &&
2495 { ac_try='test -z "$ac_c_werror_flag" || 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 break
2508 else
2509 echo "$as_me: failed program was:" >&5
2510 sed 's/^/| /' conftest.$ac_ext >&5
2513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2514 done
2515 rm -f conftest*
2516 if test -n "$ac_declaration"; then
2517 echo '#ifdef __cplusplus' >>confdefs.h
2518 echo $ac_declaration >>confdefs.h
2519 echo '#endif' >>confdefs.h
2522 else
2523 echo "$as_me: failed program was:" >&5
2524 sed 's/^/| /' conftest.$ac_ext >&5
2527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2528 ac_ext=c
2529 ac_cpp='$CPP $CPPFLAGS'
2530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2535 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2536 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2537 if test "${ac_cv_search_strerror+set}" = set; then
2538 echo $ECHO_N "(cached) $ECHO_C" >&6
2539 else
2540 ac_func_search_save_LIBS=$LIBS
2541 ac_cv_search_strerror=no
2542 cat >conftest.$ac_ext <<_ACEOF
2543 /* confdefs.h. */
2544 _ACEOF
2545 cat confdefs.h >>conftest.$ac_ext
2546 cat >>conftest.$ac_ext <<_ACEOF
2547 /* end confdefs.h. */
2549 /* Override any gcc2 internal prototype to avoid an error. */
2550 #ifdef __cplusplus
2551 extern "C"
2552 #endif
2553 /* We use char because int might match the return type of a gcc2
2554 builtin and then its argument prototype would still apply. */
2555 char strerror ();
2557 main ()
2559 strerror ();
2561 return 0;
2563 _ACEOF
2564 rm -f conftest.$ac_objext conftest$ac_exeext
2565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2566 (eval $ac_link) 2>conftest.er1
2567 ac_status=$?
2568 grep -v '^ *+' conftest.er1 >conftest.err
2569 rm -f conftest.er1
2570 cat conftest.err >&5
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); } &&
2573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2575 (eval $ac_try) 2>&5
2576 ac_status=$?
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); }; } &&
2579 { ac_try='test -s conftest$ac_exeext'
2580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581 (eval $ac_try) 2>&5
2582 ac_status=$?
2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); }; }; then
2585 ac_cv_search_strerror="none required"
2586 else
2587 echo "$as_me: failed program was:" >&5
2588 sed 's/^/| /' conftest.$ac_ext >&5
2591 rm -f conftest.err conftest.$ac_objext \
2592 conftest$ac_exeext conftest.$ac_ext
2593 if test "$ac_cv_search_strerror" = no; then
2594 for ac_lib in cposix; do
2595 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2596 cat >conftest.$ac_ext <<_ACEOF
2597 /* confdefs.h. */
2598 _ACEOF
2599 cat confdefs.h >>conftest.$ac_ext
2600 cat >>conftest.$ac_ext <<_ACEOF
2601 /* end confdefs.h. */
2603 /* Override any gcc2 internal prototype to avoid an error. */
2604 #ifdef __cplusplus
2605 extern "C"
2606 #endif
2607 /* We use char because int might match the return type of a gcc2
2608 builtin and then its argument prototype would still apply. */
2609 char strerror ();
2611 main ()
2613 strerror ();
2615 return 0;
2617 _ACEOF
2618 rm -f conftest.$ac_objext conftest$ac_exeext
2619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2620 (eval $ac_link) 2>conftest.er1
2621 ac_status=$?
2622 grep -v '^ *+' conftest.er1 >conftest.err
2623 rm -f conftest.er1
2624 cat conftest.err >&5
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); } &&
2627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629 (eval $ac_try) 2>&5
2630 ac_status=$?
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); }; } &&
2633 { ac_try='test -s conftest$ac_exeext'
2634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635 (eval $ac_try) 2>&5
2636 ac_status=$?
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); }; }; then
2639 ac_cv_search_strerror="-l$ac_lib"
2640 break
2641 else
2642 echo "$as_me: failed program was:" >&5
2643 sed 's/^/| /' conftest.$ac_ext >&5
2646 rm -f conftest.err conftest.$ac_objext \
2647 conftest$ac_exeext conftest.$ac_ext
2648 done
2650 LIBS=$ac_func_search_save_LIBS
2652 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2653 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2654 if test "$ac_cv_search_strerror" != no; then
2655 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2660 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2661 am__api_version="1.9"
2662 # Find a good install program. We prefer a C program (faster),
2663 # so one script is as good as another. But avoid the broken or
2664 # incompatible versions:
2665 # SysV /etc/install, /usr/sbin/install
2666 # SunOS /usr/etc/install
2667 # IRIX /sbin/install
2668 # AIX /bin/install
2669 # AmigaOS /C/install, which installs bootblocks on floppy discs
2670 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2671 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2672 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2673 # OS/2's system install, which has a completely different semantic
2674 # ./install, which can be erroneously created by make from ./install.sh.
2675 # Reject install programs that cannot install multiple files.
2676 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2677 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2678 if test -z "$INSTALL"; then
2679 if test "${ac_cv_path_install+set}" = set; then
2680 echo $ECHO_N "(cached) $ECHO_C" >&6
2681 else
2682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683 for as_dir in $PATH
2685 IFS=$as_save_IFS
2686 test -z "$as_dir" && as_dir=.
2687 # Account for people who put trailing slashes in PATH elements.
2688 case $as_dir/ in
2689 ./ | .// | /cC/* | \
2690 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2691 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2692 /usr/ucb/* ) ;;
2694 # OSF1 and SCO ODT 3.0 have their own names for install.
2695 # Don't use installbsd from OSF since it installs stuff as root
2696 # by default.
2697 for ac_prog in ginstall scoinst install; do
2698 for ac_exec_ext in '' $ac_executable_extensions; do
2699 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2700 if test $ac_prog = install &&
2701 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2702 # AIX install. It has an incompatible calling convention.
2704 elif test $ac_prog = install &&
2705 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2706 # program-specific install script used by HP pwplus--don't use.
2708 else
2709 rm -rf conftest.one conftest.two conftest.dir
2710 echo one > conftest.one
2711 echo two > conftest.two
2712 mkdir conftest.dir
2713 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2714 test -s conftest.one && test -s conftest.two &&
2715 test -s conftest.dir/conftest.one &&
2716 test -s conftest.dir/conftest.two
2717 then
2718 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2719 break 3
2723 done
2724 done
2726 esac
2727 done
2729 rm -rf conftest.one conftest.two conftest.dir
2732 if test "${ac_cv_path_install+set}" = set; then
2733 INSTALL=$ac_cv_path_install
2734 else
2735 # As a last resort, use the slow shell script. Don't cache a
2736 # value for INSTALL within a source directory, because that will
2737 # break other packages using the cache if that directory is
2738 # removed, or if the value is a relative name.
2739 INSTALL=$ac_install_sh
2742 echo "$as_me:$LINENO: result: $INSTALL" >&5
2743 echo "${ECHO_T}$INSTALL" >&6
2745 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2746 # It thinks the first close brace ends the variable substitution.
2747 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2749 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2751 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2753 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2754 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2755 # Just in case
2756 sleep 1
2757 echo timestamp > conftest.file
2758 # Do `set' in a subshell so we don't clobber the current shell's
2759 # arguments. Must try -L first in case configure is actually a
2760 # symlink; some systems play weird games with the mod time of symlinks
2761 # (eg FreeBSD returns the mod time of the symlink's containing
2762 # directory).
2763 if (
2764 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2765 if test "$*" = "X"; then
2766 # -L didn't work.
2767 set X `ls -t $srcdir/configure conftest.file`
2769 rm -f conftest.file
2770 if test "$*" != "X $srcdir/configure conftest.file" \
2771 && test "$*" != "X conftest.file $srcdir/configure"; then
2773 # If neither matched, then we have a broken ls. This can happen
2774 # if, for instance, CONFIG_SHELL is bash and it inherits a
2775 # broken ls alias from the environment. This has actually
2776 # happened. Such a system could not be considered "sane".
2777 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2778 alias in your environment" >&5
2779 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2780 alias in your environment" >&2;}
2781 { (exit 1); exit 1; }; }
2784 test "$2" = conftest.file
2786 then
2787 # Ok.
2789 else
2790 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2791 Check your system clock" >&5
2792 echo "$as_me: error: newly created file is older than distributed files!
2793 Check your system clock" >&2;}
2794 { (exit 1); exit 1; }; }
2796 echo "$as_me:$LINENO: result: yes" >&5
2797 echo "${ECHO_T}yes" >&6
2798 test "$program_prefix" != NONE &&
2799 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2800 # Use a double $ so make ignores it.
2801 test "$program_suffix" != NONE &&
2802 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2803 # Double any \ or $. echo might interpret backslashes.
2804 # By default was `s,x,x', remove it if useless.
2805 cat <<\_ACEOF >conftest.sed
2806 s/[\\$]/&&/g;s/;s,x,x,$//
2807 _ACEOF
2808 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2809 rm conftest.sed
2811 # expand $ac_aux_dir to an absolute path
2812 am_aux_dir=`cd $ac_aux_dir && pwd`
2814 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2815 # Use eval to expand $SHELL
2816 if eval "$MISSING --run true"; then
2817 am_missing_run="$MISSING --run "
2818 else
2819 am_missing_run=
2820 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2821 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2824 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2825 # We used to keeping the `.' as first argument, in order to
2826 # allow $(mkdir_p) to be used without argument. As in
2827 # $(mkdir_p) $(somedir)
2828 # where $(somedir) is conditionally defined. However this is wrong
2829 # for two reasons:
2830 # 1. if the package is installed by a user who cannot write `.'
2831 # make install will fail,
2832 # 2. the above comment should most certainly read
2833 # $(mkdir_p) $(DESTDIR)$(somedir)
2834 # so it does not work when $(somedir) is undefined and
2835 # $(DESTDIR) is not.
2836 # To support the latter case, we have to write
2837 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2838 # so the `.' trick is pointless.
2839 mkdir_p='mkdir -p --'
2840 else
2841 # On NextStep and OpenStep, the `mkdir' command does not
2842 # recognize any option. It will interpret all options as
2843 # directories to create, and then abort because `.' already
2844 # exists.
2845 for d in ./-p ./--version;
2847 test -d $d && rmdir $d
2848 done
2849 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2850 if test -f "$ac_aux_dir/mkinstalldirs"; then
2851 mkdir_p='$(mkinstalldirs)'
2852 else
2853 mkdir_p='$(install_sh) -d'
2857 for ac_prog in gawk mawk nawk awk
2859 # Extract the first word of "$ac_prog", so it can be a program name with args.
2860 set dummy $ac_prog; ac_word=$2
2861 echo "$as_me:$LINENO: checking for $ac_word" >&5
2862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2863 if test "${ac_cv_prog_AWK+set}" = set; then
2864 echo $ECHO_N "(cached) $ECHO_C" >&6
2865 else
2866 if test -n "$AWK"; then
2867 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2868 else
2869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870 for as_dir in $PATH
2872 IFS=$as_save_IFS
2873 test -z "$as_dir" && as_dir=.
2874 for ac_exec_ext in '' $ac_executable_extensions; do
2875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2876 ac_cv_prog_AWK="$ac_prog"
2877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2878 break 2
2880 done
2881 done
2885 AWK=$ac_cv_prog_AWK
2886 if test -n "$AWK"; then
2887 echo "$as_me:$LINENO: result: $AWK" >&5
2888 echo "${ECHO_T}$AWK" >&6
2889 else
2890 echo "$as_me:$LINENO: result: no" >&5
2891 echo "${ECHO_T}no" >&6
2894 test -n "$AWK" && break
2895 done
2897 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2898 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2899 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2900 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2901 echo $ECHO_N "(cached) $ECHO_C" >&6
2902 else
2903 cat >conftest.make <<\_ACEOF
2904 all:
2905 @echo 'ac_maketemp="$(MAKE)"'
2906 _ACEOF
2907 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2908 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2909 if test -n "$ac_maketemp"; then
2910 eval ac_cv_prog_make_${ac_make}_set=yes
2911 else
2912 eval ac_cv_prog_make_${ac_make}_set=no
2914 rm -f conftest.make
2916 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2917 echo "$as_me:$LINENO: result: yes" >&5
2918 echo "${ECHO_T}yes" >&6
2919 SET_MAKE=
2920 else
2921 echo "$as_me:$LINENO: result: no" >&5
2922 echo "${ECHO_T}no" >&6
2923 SET_MAKE="MAKE=${MAKE-make}"
2926 rm -rf .tst 2>/dev/null
2927 mkdir .tst 2>/dev/null
2928 if test -d .tst; then
2929 am__leading_dot=.
2930 else
2931 am__leading_dot=_
2933 rmdir .tst 2>/dev/null
2935 DEPDIR="${am__leading_dot}deps"
2937 ac_config_commands="$ac_config_commands depfiles"
2940 am_make=${MAKE-make}
2941 cat > confinc << 'END'
2942 am__doit:
2943 @echo done
2944 .PHONY: am__doit
2946 # If we don't find an include directive, just comment out the code.
2947 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2948 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2949 am__include="#"
2950 am__quote=
2951 _am_result=none
2952 # First try GNU make style include.
2953 echo "include confinc" > confmf
2954 # We grep out `Entering directory' and `Leaving directory'
2955 # messages which can occur if `w' ends up in MAKEFLAGS.
2956 # In particular we don't look at `^make:' because GNU make might
2957 # be invoked under some other name (usually "gmake"), in which
2958 # case it prints its new name instead of `make'.
2959 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2960 am__include=include
2961 am__quote=
2962 _am_result=GNU
2964 # Now try BSD make style include.
2965 if test "$am__include" = "#"; then
2966 echo '.include "confinc"' > confmf
2967 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2968 am__include=.include
2969 am__quote="\""
2970 _am_result=BSD
2975 echo "$as_me:$LINENO: result: $_am_result" >&5
2976 echo "${ECHO_T}$_am_result" >&6
2977 rm -f confinc confmf
2979 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2980 if test "${enable_dependency_tracking+set}" = set; then
2981 enableval="$enable_dependency_tracking"
2984 if test "x$enable_dependency_tracking" != xno; then
2985 am_depcomp="$ac_aux_dir/depcomp"
2986 AMDEPBACKSLASH='\'
2990 if test "x$enable_dependency_tracking" != xno; then
2991 AMDEP_TRUE=
2992 AMDEP_FALSE='#'
2993 else
2994 AMDEP_TRUE='#'
2995 AMDEP_FALSE=
3000 # test to see if srcdir already configured
3001 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3002 test -f $srcdir/config.status; then
3003 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3004 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3005 { (exit 1); exit 1; }; }
3008 # test whether we have cygpath
3009 if test -z "$CYGPATH_W"; then
3010 if (cygpath --version) >/dev/null 2>/dev/null; then
3011 CYGPATH_W='cygpath -w'
3012 else
3013 CYGPATH_W=echo
3018 # Define the identity of the package.
3019 PACKAGE=binutils
3020 VERSION=${BFD_VERSION}
3023 cat >>confdefs.h <<_ACEOF
3024 #define PACKAGE "$PACKAGE"
3025 _ACEOF
3028 cat >>confdefs.h <<_ACEOF
3029 #define VERSION "$VERSION"
3030 _ACEOF
3032 # Some tools Automake needs.
3034 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3037 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3040 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3043 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3046 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3048 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3050 # Installed binaries are usually stripped using `strip' when the user
3051 # run `make install-strip'. However `strip' might not be the right
3052 # tool to use in cross-compilation environments, therefore Automake
3053 # will honor the `STRIP' environment variable to overrule this program.
3054 if test "$cross_compiling" != no; then
3055 if test -n "$ac_tool_prefix"; then
3056 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3057 set dummy ${ac_tool_prefix}strip; ac_word=$2
3058 echo "$as_me:$LINENO: checking for $ac_word" >&5
3059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3060 if test "${ac_cv_prog_STRIP+set}" = set; then
3061 echo $ECHO_N "(cached) $ECHO_C" >&6
3062 else
3063 if test -n "$STRIP"; then
3064 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3065 else
3066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067 for as_dir in $PATH
3069 IFS=$as_save_IFS
3070 test -z "$as_dir" && as_dir=.
3071 for ac_exec_ext in '' $ac_executable_extensions; do
3072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3073 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3075 break 2
3077 done
3078 done
3082 STRIP=$ac_cv_prog_STRIP
3083 if test -n "$STRIP"; then
3084 echo "$as_me:$LINENO: result: $STRIP" >&5
3085 echo "${ECHO_T}$STRIP" >&6
3086 else
3087 echo "$as_me:$LINENO: result: no" >&5
3088 echo "${ECHO_T}no" >&6
3092 if test -z "$ac_cv_prog_STRIP"; then
3093 ac_ct_STRIP=$STRIP
3094 # Extract the first word of "strip", so it can be a program name with args.
3095 set dummy strip; ac_word=$2
3096 echo "$as_me:$LINENO: checking for $ac_word" >&5
3097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3098 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3099 echo $ECHO_N "(cached) $ECHO_C" >&6
3100 else
3101 if test -n "$ac_ct_STRIP"; then
3102 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3103 else
3104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105 for as_dir in $PATH
3107 IFS=$as_save_IFS
3108 test -z "$as_dir" && as_dir=.
3109 for ac_exec_ext in '' $ac_executable_extensions; do
3110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3111 ac_cv_prog_ac_ct_STRIP="strip"
3112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3113 break 2
3115 done
3116 done
3118 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3121 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3122 if test -n "$ac_ct_STRIP"; then
3123 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3124 echo "${ECHO_T}$ac_ct_STRIP" >&6
3125 else
3126 echo "$as_me:$LINENO: result: no" >&5
3127 echo "${ECHO_T}no" >&6
3130 STRIP=$ac_ct_STRIP
3131 else
3132 STRIP="$ac_cv_prog_STRIP"
3136 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3138 # We need awk for the "check" target. The system "awk" is bad on
3139 # some platforms.
3140 # Always define AMTAR for backward compatibility.
3142 AMTAR=${AMTAR-"${am_missing_run}tar"}
3144 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3149 depcc="$CC" am_compiler_list=
3151 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3152 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3153 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3154 echo $ECHO_N "(cached) $ECHO_C" >&6
3155 else
3156 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3157 # We make a subdir and do the tests there. Otherwise we can end up
3158 # making bogus files that we don't know about and never remove. For
3159 # instance it was reported that on HP-UX the gcc test will end up
3160 # making a dummy file named `D' -- because `-MD' means `put the output
3161 # in D'.
3162 mkdir conftest.dir
3163 # Copy depcomp to subdir because otherwise we won't find it if we're
3164 # using a relative directory.
3165 cp "$am_depcomp" conftest.dir
3166 cd conftest.dir
3167 # We will build objects and dependencies in a subdirectory because
3168 # it helps to detect inapplicable dependency modes. For instance
3169 # both Tru64's cc and ICC support -MD to output dependencies as a
3170 # side effect of compilation, but ICC will put the dependencies in
3171 # the current directory while Tru64 will put them in the object
3172 # directory.
3173 mkdir sub
3175 am_cv_CC_dependencies_compiler_type=none
3176 if test "$am_compiler_list" = ""; then
3177 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3179 for depmode in $am_compiler_list; do
3180 # Setup a source with many dependencies, because some compilers
3181 # like to wrap large dependency lists on column 80 (with \), and
3182 # we should not choose a depcomp mode which is confused by this.
3184 # We need to recreate these files for each test, as the compiler may
3185 # overwrite some of them when testing with obscure command lines.
3186 # This happens at least with the AIX C compiler.
3187 : > sub/conftest.c
3188 for i in 1 2 3 4 5 6; do
3189 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3190 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3191 # Solaris 8's {/usr,}/bin/sh.
3192 touch sub/conftst$i.h
3193 done
3194 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3196 case $depmode in
3197 nosideeffect)
3198 # after this tag, mechanisms are not by side-effect, so they'll
3199 # only be used when explicitly requested
3200 if test "x$enable_dependency_tracking" = xyes; then
3201 continue
3202 else
3203 break
3206 none) break ;;
3207 esac
3208 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3209 # mode. It turns out that the SunPro C++ compiler does not properly
3210 # handle `-M -o', and we need to detect this.
3211 if depmode=$depmode \
3212 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3213 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3214 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3215 >/dev/null 2>conftest.err &&
3216 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3217 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3218 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3219 # icc doesn't choke on unknown options, it will just issue warnings
3220 # or remarks (even with -Werror). So we grep stderr for any message
3221 # that says an option was ignored or not supported.
3222 # When given -MP, icc 7.0 and 7.1 complain thusly:
3223 # icc: Command line warning: ignoring option '-M'; no argument required
3224 # The diagnosis changed in icc 8.0:
3225 # icc: Command line remark: option '-MP' not supported
3226 if (grep 'ignoring option' conftest.err ||
3227 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3228 am_cv_CC_dependencies_compiler_type=$depmode
3229 break
3232 done
3234 cd ..
3235 rm -rf conftest.dir
3236 else
3237 am_cv_CC_dependencies_compiler_type=none
3241 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3242 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3243 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3248 test "x$enable_dependency_tracking" != xno \
3249 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3250 am__fastdepCC_TRUE=
3251 am__fastdepCC_FALSE='#'
3252 else
3253 am__fastdepCC_TRUE='#'
3254 am__fastdepCC_FALSE=
3260 ac_ext=c
3261 ac_cpp='$CPP $CPPFLAGS'
3262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3265 if test -n "$ac_tool_prefix"; then
3266 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3267 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3268 echo "$as_me:$LINENO: checking for $ac_word" >&5
3269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3270 if test "${ac_cv_prog_CC+set}" = set; then
3271 echo $ECHO_N "(cached) $ECHO_C" >&6
3272 else
3273 if test -n "$CC"; then
3274 ac_cv_prog_CC="$CC" # Let the user override the test.
3275 else
3276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277 for as_dir in $PATH
3279 IFS=$as_save_IFS
3280 test -z "$as_dir" && as_dir=.
3281 for ac_exec_ext in '' $ac_executable_extensions; do
3282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3283 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3285 break 2
3287 done
3288 done
3292 CC=$ac_cv_prog_CC
3293 if test -n "$CC"; then
3294 echo "$as_me:$LINENO: result: $CC" >&5
3295 echo "${ECHO_T}$CC" >&6
3296 else
3297 echo "$as_me:$LINENO: result: no" >&5
3298 echo "${ECHO_T}no" >&6
3302 if test -z "$ac_cv_prog_CC"; then
3303 ac_ct_CC=$CC
3304 # Extract the first word of "gcc", so it can be a program name with args.
3305 set dummy gcc; ac_word=$2
3306 echo "$as_me:$LINENO: checking for $ac_word" >&5
3307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3308 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3309 echo $ECHO_N "(cached) $ECHO_C" >&6
3310 else
3311 if test -n "$ac_ct_CC"; then
3312 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3313 else
3314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3315 for as_dir in $PATH
3317 IFS=$as_save_IFS
3318 test -z "$as_dir" && as_dir=.
3319 for ac_exec_ext in '' $ac_executable_extensions; do
3320 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3321 ac_cv_prog_ac_ct_CC="gcc"
3322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3323 break 2
3325 done
3326 done
3330 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3331 if test -n "$ac_ct_CC"; then
3332 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3333 echo "${ECHO_T}$ac_ct_CC" >&6
3334 else
3335 echo "$as_me:$LINENO: result: no" >&5
3336 echo "${ECHO_T}no" >&6
3339 CC=$ac_ct_CC
3340 else
3341 CC="$ac_cv_prog_CC"
3344 if test -z "$CC"; then
3345 if test -n "$ac_tool_prefix"; then
3346 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3347 set dummy ${ac_tool_prefix}cc; ac_word=$2
3348 echo "$as_me:$LINENO: checking for $ac_word" >&5
3349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3350 if test "${ac_cv_prog_CC+set}" = set; then
3351 echo $ECHO_N "(cached) $ECHO_C" >&6
3352 else
3353 if test -n "$CC"; then
3354 ac_cv_prog_CC="$CC" # Let the user override the test.
3355 else
3356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3357 for as_dir in $PATH
3359 IFS=$as_save_IFS
3360 test -z "$as_dir" && as_dir=.
3361 for ac_exec_ext in '' $ac_executable_extensions; do
3362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3363 ac_cv_prog_CC="${ac_tool_prefix}cc"
3364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3365 break 2
3367 done
3368 done
3372 CC=$ac_cv_prog_CC
3373 if test -n "$CC"; then
3374 echo "$as_me:$LINENO: result: $CC" >&5
3375 echo "${ECHO_T}$CC" >&6
3376 else
3377 echo "$as_me:$LINENO: result: no" >&5
3378 echo "${ECHO_T}no" >&6
3382 if test -z "$ac_cv_prog_CC"; then
3383 ac_ct_CC=$CC
3384 # Extract the first word of "cc", so it can be a program name with args.
3385 set dummy cc; ac_word=$2
3386 echo "$as_me:$LINENO: checking for $ac_word" >&5
3387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3388 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3389 echo $ECHO_N "(cached) $ECHO_C" >&6
3390 else
3391 if test -n "$ac_ct_CC"; then
3392 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3393 else
3394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3395 for as_dir in $PATH
3397 IFS=$as_save_IFS
3398 test -z "$as_dir" && as_dir=.
3399 for ac_exec_ext in '' $ac_executable_extensions; do
3400 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3401 ac_cv_prog_ac_ct_CC="cc"
3402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3403 break 2
3405 done
3406 done
3410 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3411 if test -n "$ac_ct_CC"; then
3412 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3413 echo "${ECHO_T}$ac_ct_CC" >&6
3414 else
3415 echo "$as_me:$LINENO: result: no" >&5
3416 echo "${ECHO_T}no" >&6
3419 CC=$ac_ct_CC
3420 else
3421 CC="$ac_cv_prog_CC"
3425 if test -z "$CC"; then
3426 # Extract the first word of "cc", so it can be a program name with args.
3427 set dummy cc; ac_word=$2
3428 echo "$as_me:$LINENO: checking for $ac_word" >&5
3429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3430 if test "${ac_cv_prog_CC+set}" = set; then
3431 echo $ECHO_N "(cached) $ECHO_C" >&6
3432 else
3433 if test -n "$CC"; then
3434 ac_cv_prog_CC="$CC" # Let the user override the test.
3435 else
3436 ac_prog_rejected=no
3437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3438 for as_dir in $PATH
3440 IFS=$as_save_IFS
3441 test -z "$as_dir" && as_dir=.
3442 for ac_exec_ext in '' $ac_executable_extensions; do
3443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3444 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3445 ac_prog_rejected=yes
3446 continue
3448 ac_cv_prog_CC="cc"
3449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3450 break 2
3452 done
3453 done
3455 if test $ac_prog_rejected = yes; then
3456 # We found a bogon in the path, so make sure we never use it.
3457 set dummy $ac_cv_prog_CC
3458 shift
3459 if test $# != 0; then
3460 # We chose a different compiler from the bogus one.
3461 # However, it has the same basename, so the bogon will be chosen
3462 # first if we set CC to just the basename; use the full file name.
3463 shift
3464 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3469 CC=$ac_cv_prog_CC
3470 if test -n "$CC"; then
3471 echo "$as_me:$LINENO: result: $CC" >&5
3472 echo "${ECHO_T}$CC" >&6
3473 else
3474 echo "$as_me:$LINENO: result: no" >&5
3475 echo "${ECHO_T}no" >&6
3479 if test -z "$CC"; then
3480 if test -n "$ac_tool_prefix"; then
3481 for ac_prog in cl
3483 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3484 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3485 echo "$as_me:$LINENO: checking for $ac_word" >&5
3486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3487 if test "${ac_cv_prog_CC+set}" = set; then
3488 echo $ECHO_N "(cached) $ECHO_C" >&6
3489 else
3490 if test -n "$CC"; then
3491 ac_cv_prog_CC="$CC" # Let the user override the test.
3492 else
3493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3494 for as_dir in $PATH
3496 IFS=$as_save_IFS
3497 test -z "$as_dir" && as_dir=.
3498 for ac_exec_ext in '' $ac_executable_extensions; do
3499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3500 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3502 break 2
3504 done
3505 done
3509 CC=$ac_cv_prog_CC
3510 if test -n "$CC"; then
3511 echo "$as_me:$LINENO: result: $CC" >&5
3512 echo "${ECHO_T}$CC" >&6
3513 else
3514 echo "$as_me:$LINENO: result: no" >&5
3515 echo "${ECHO_T}no" >&6
3518 test -n "$CC" && break
3519 done
3521 if test -z "$CC"; then
3522 ac_ct_CC=$CC
3523 for ac_prog in cl
3525 # Extract the first word of "$ac_prog", so it can be a program name with args.
3526 set dummy $ac_prog; ac_word=$2
3527 echo "$as_me:$LINENO: checking for $ac_word" >&5
3528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3529 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3530 echo $ECHO_N "(cached) $ECHO_C" >&6
3531 else
3532 if test -n "$ac_ct_CC"; then
3533 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3534 else
3535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3536 for as_dir in $PATH
3538 IFS=$as_save_IFS
3539 test -z "$as_dir" && as_dir=.
3540 for ac_exec_ext in '' $ac_executable_extensions; do
3541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3542 ac_cv_prog_ac_ct_CC="$ac_prog"
3543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3544 break 2
3546 done
3547 done
3551 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3552 if test -n "$ac_ct_CC"; then
3553 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3554 echo "${ECHO_T}$ac_ct_CC" >&6
3555 else
3556 echo "$as_me:$LINENO: result: no" >&5
3557 echo "${ECHO_T}no" >&6
3560 test -n "$ac_ct_CC" && break
3561 done
3563 CC=$ac_ct_CC
3569 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3570 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3571 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3572 See \`config.log' for more details." >&5
3573 echo "$as_me: error: no acceptable C compiler found in \$PATH
3574 See \`config.log' for more details." >&2;}
3575 { (exit 1); exit 1; }; }; }
3577 # Provide some information about the compiler.
3578 echo "$as_me:$LINENO:" \
3579 "checking for C compiler version" >&5
3580 ac_compiler=`set X $ac_compile; echo $2`
3581 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3582 (eval $ac_compiler --version </dev/null >&5) 2>&5
3583 ac_status=$?
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); }
3586 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3587 (eval $ac_compiler -v </dev/null >&5) 2>&5
3588 ac_status=$?
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); }
3591 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3592 (eval $ac_compiler -V </dev/null >&5) 2>&5
3593 ac_status=$?
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); }
3597 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3598 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3599 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3600 echo $ECHO_N "(cached) $ECHO_C" >&6
3601 else
3602 cat >conftest.$ac_ext <<_ACEOF
3603 /* confdefs.h. */
3604 _ACEOF
3605 cat confdefs.h >>conftest.$ac_ext
3606 cat >>conftest.$ac_ext <<_ACEOF
3607 /* end confdefs.h. */
3610 main ()
3612 #ifndef __GNUC__
3613 choke me
3614 #endif
3617 return 0;
3619 _ACEOF
3620 rm -f conftest.$ac_objext
3621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3622 (eval $ac_compile) 2>conftest.er1
3623 ac_status=$?
3624 grep -v '^ *+' conftest.er1 >conftest.err
3625 rm -f conftest.er1
3626 cat conftest.err >&5
3627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); } &&
3629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3631 (eval $ac_try) 2>&5
3632 ac_status=$?
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); }; } &&
3635 { ac_try='test -s conftest.$ac_objext'
3636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3637 (eval $ac_try) 2>&5
3638 ac_status=$?
3639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640 (exit $ac_status); }; }; then
3641 ac_compiler_gnu=yes
3642 else
3643 echo "$as_me: failed program was:" >&5
3644 sed 's/^/| /' conftest.$ac_ext >&5
3646 ac_compiler_gnu=no
3648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3649 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3652 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3653 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3654 GCC=`test $ac_compiler_gnu = yes && echo yes`
3655 ac_test_CFLAGS=${CFLAGS+set}
3656 ac_save_CFLAGS=$CFLAGS
3657 CFLAGS="-g"
3658 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3659 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3660 if test "${ac_cv_prog_cc_g+set}" = set; then
3661 echo $ECHO_N "(cached) $ECHO_C" >&6
3662 else
3663 cat >conftest.$ac_ext <<_ACEOF
3664 /* confdefs.h. */
3665 _ACEOF
3666 cat confdefs.h >>conftest.$ac_ext
3667 cat >>conftest.$ac_ext <<_ACEOF
3668 /* end confdefs.h. */
3671 main ()
3675 return 0;
3677 _ACEOF
3678 rm -f conftest.$ac_objext
3679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3680 (eval $ac_compile) 2>conftest.er1
3681 ac_status=$?
3682 grep -v '^ *+' conftest.er1 >conftest.err
3683 rm -f conftest.er1
3684 cat conftest.err >&5
3685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686 (exit $ac_status); } &&
3687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3689 (eval $ac_try) 2>&5
3690 ac_status=$?
3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); }; } &&
3693 { ac_try='test -s conftest.$ac_objext'
3694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3695 (eval $ac_try) 2>&5
3696 ac_status=$?
3697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698 (exit $ac_status); }; }; then
3699 ac_cv_prog_cc_g=yes
3700 else
3701 echo "$as_me: failed program was:" >&5
3702 sed 's/^/| /' conftest.$ac_ext >&5
3704 ac_cv_prog_cc_g=no
3706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3708 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3709 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3710 if test "$ac_test_CFLAGS" = set; then
3711 CFLAGS=$ac_save_CFLAGS
3712 elif test $ac_cv_prog_cc_g = yes; then
3713 if test "$GCC" = yes; then
3714 CFLAGS="-g -O2"
3715 else
3716 CFLAGS="-g"
3718 else
3719 if test "$GCC" = yes; then
3720 CFLAGS="-O2"
3721 else
3722 CFLAGS=
3725 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3726 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3727 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3728 echo $ECHO_N "(cached) $ECHO_C" >&6
3729 else
3730 ac_cv_prog_cc_stdc=no
3731 ac_save_CC=$CC
3732 cat >conftest.$ac_ext <<_ACEOF
3733 /* confdefs.h. */
3734 _ACEOF
3735 cat confdefs.h >>conftest.$ac_ext
3736 cat >>conftest.$ac_ext <<_ACEOF
3737 /* end confdefs.h. */
3738 #include <stdarg.h>
3739 #include <stdio.h>
3740 #include <sys/types.h>
3741 #include <sys/stat.h>
3742 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3743 struct buf { int x; };
3744 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3745 static char *e (p, i)
3746 char **p;
3747 int i;
3749 return p[i];
3751 static char *f (char * (*g) (char **, int), char **p, ...)
3753 char *s;
3754 va_list v;
3755 va_start (v,p);
3756 s = g (p, va_arg (v,int));
3757 va_end (v);
3758 return s;
3761 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3762 function prototypes and stuff, but not '\xHH' hex character constants.
3763 These don't provoke an error unfortunately, instead are silently treated
3764 as 'x'. The following induces an error, until -std1 is added to get
3765 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3766 array size at least. It's necessary to write '\x00'==0 to get something
3767 that's true only with -std1. */
3768 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3770 int test (int i, double x);
3771 struct s1 {int (*f) (int a);};
3772 struct s2 {int (*f) (double a);};
3773 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3774 int argc;
3775 char **argv;
3777 main ()
3779 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3781 return 0;
3783 _ACEOF
3784 # Don't try gcc -ansi; that turns off useful extensions and
3785 # breaks some systems' header files.
3786 # AIX -qlanglvl=ansi
3787 # Ultrix and OSF/1 -std1
3788 # HP-UX 10.20 and later -Ae
3789 # HP-UX older versions -Aa -D_HPUX_SOURCE
3790 # SVR4 -Xc -D__EXTENSIONS__
3791 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3793 CC="$ac_save_CC $ac_arg"
3794 rm -f conftest.$ac_objext
3795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3796 (eval $ac_compile) 2>conftest.er1
3797 ac_status=$?
3798 grep -v '^ *+' conftest.er1 >conftest.err
3799 rm -f conftest.er1
3800 cat conftest.err >&5
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); } &&
3803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3805 (eval $ac_try) 2>&5
3806 ac_status=$?
3807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808 (exit $ac_status); }; } &&
3809 { ac_try='test -s conftest.$ac_objext'
3810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3811 (eval $ac_try) 2>&5
3812 ac_status=$?
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); }; }; then
3815 ac_cv_prog_cc_stdc=$ac_arg
3816 break
3817 else
3818 echo "$as_me: failed program was:" >&5
3819 sed 's/^/| /' conftest.$ac_ext >&5
3822 rm -f conftest.err conftest.$ac_objext
3823 done
3824 rm -f conftest.$ac_ext conftest.$ac_objext
3825 CC=$ac_save_CC
3829 case "x$ac_cv_prog_cc_stdc" in
3830 x|xno)
3831 echo "$as_me:$LINENO: result: none needed" >&5
3832 echo "${ECHO_T}none needed" >&6 ;;
3834 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3835 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3836 CC="$CC $ac_cv_prog_cc_stdc" ;;
3837 esac
3839 # Some people use a C++ compiler to compile C. Since we use `exit',
3840 # in C++ we need to declare it. In case someone uses the same compiler
3841 # for both compiling C and C++ we need to have the C++ compiler decide
3842 # the declaration of exit, since it's the most demanding environment.
3843 cat >conftest.$ac_ext <<_ACEOF
3844 #ifndef __cplusplus
3845 choke me
3846 #endif
3847 _ACEOF
3848 rm -f conftest.$ac_objext
3849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3850 (eval $ac_compile) 2>conftest.er1
3851 ac_status=$?
3852 grep -v '^ *+' conftest.er1 >conftest.err
3853 rm -f conftest.er1
3854 cat conftest.err >&5
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); } &&
3857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3859 (eval $ac_try) 2>&5
3860 ac_status=$?
3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862 (exit $ac_status); }; } &&
3863 { ac_try='test -s conftest.$ac_objext'
3864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3865 (eval $ac_try) 2>&5
3866 ac_status=$?
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); }; }; then
3869 for ac_declaration in \
3870 '' \
3871 'extern "C" void std::exit (int) throw (); using std::exit;' \
3872 'extern "C" void std::exit (int); using std::exit;' \
3873 'extern "C" void exit (int) throw ();' \
3874 'extern "C" void exit (int);' \
3875 'void exit (int);'
3877 cat >conftest.$ac_ext <<_ACEOF
3878 /* confdefs.h. */
3879 _ACEOF
3880 cat confdefs.h >>conftest.$ac_ext
3881 cat >>conftest.$ac_ext <<_ACEOF
3882 /* end confdefs.h. */
3883 $ac_declaration
3884 #include <stdlib.h>
3886 main ()
3888 exit (42);
3890 return 0;
3892 _ACEOF
3893 rm -f conftest.$ac_objext
3894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3895 (eval $ac_compile) 2>conftest.er1
3896 ac_status=$?
3897 grep -v '^ *+' conftest.er1 >conftest.err
3898 rm -f conftest.er1
3899 cat conftest.err >&5
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); } &&
3902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3904 (eval $ac_try) 2>&5
3905 ac_status=$?
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); }; } &&
3908 { ac_try='test -s conftest.$ac_objext'
3909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3910 (eval $ac_try) 2>&5
3911 ac_status=$?
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); }; }; then
3915 else
3916 echo "$as_me: failed program was:" >&5
3917 sed 's/^/| /' conftest.$ac_ext >&5
3919 continue
3921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3922 cat >conftest.$ac_ext <<_ACEOF
3923 /* confdefs.h. */
3924 _ACEOF
3925 cat confdefs.h >>conftest.$ac_ext
3926 cat >>conftest.$ac_ext <<_ACEOF
3927 /* end confdefs.h. */
3928 $ac_declaration
3930 main ()
3932 exit (42);
3934 return 0;
3936 _ACEOF
3937 rm -f conftest.$ac_objext
3938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3939 (eval $ac_compile) 2>conftest.er1
3940 ac_status=$?
3941 grep -v '^ *+' conftest.er1 >conftest.err
3942 rm -f conftest.er1
3943 cat conftest.err >&5
3944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945 (exit $ac_status); } &&
3946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3948 (eval $ac_try) 2>&5
3949 ac_status=$?
3950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951 (exit $ac_status); }; } &&
3952 { ac_try='test -s conftest.$ac_objext'
3953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3954 (eval $ac_try) 2>&5
3955 ac_status=$?
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); }; }; then
3958 break
3959 else
3960 echo "$as_me: failed program was:" >&5
3961 sed 's/^/| /' conftest.$ac_ext >&5
3964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3965 done
3966 rm -f conftest*
3967 if test -n "$ac_declaration"; then
3968 echo '#ifdef __cplusplus' >>confdefs.h
3969 echo $ac_declaration >>confdefs.h
3970 echo '#endif' >>confdefs.h
3973 else
3974 echo "$as_me: failed program was:" >&5
3975 sed 's/^/| /' conftest.$ac_ext >&5
3978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3979 ac_ext=c
3980 ac_cpp='$CPP $CPPFLAGS'
3981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3986 cat >>confdefs.h <<\_ACEOF
3987 #define _GNU_SOURCE 1
3988 _ACEOF
3993 macro_version='2.1a'
3994 macro_revision='1.2435'
4007 ltmain="$ac_aux_dir/ltmain.sh"
4009 # Set options
4011 enable_dlopen=no
4014 enable_win32_dll=no
4017 # Check whether --enable-shared or --disable-shared was given.
4018 if test "${enable_shared+set}" = set; then
4019 enableval="$enable_shared"
4020 p=${PACKAGE-default}
4021 case $enableval in
4022 yes) enable_shared=yes ;;
4023 no) enable_shared=no ;;
4025 enable_shared=no
4026 # Look at the argument we got. We use all the common list separators.
4027 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4028 for pkg in $enableval; do
4029 IFS="$lt_save_ifs"
4030 if test "X$pkg" = "X$p"; then
4031 enable_shared=yes
4033 done
4034 IFS="$lt_save_ifs"
4036 esac
4037 else
4038 enable_shared=yes
4048 # Check whether --enable-static or --disable-static was given.
4049 if test "${enable_static+set}" = set; then
4050 enableval="$enable_static"
4051 p=${PACKAGE-default}
4052 case $enableval in
4053 yes) enable_static=yes ;;
4054 no) enable_static=no ;;
4056 enable_static=no
4057 # Look at the argument we got. We use all the common list separators.
4058 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4059 for pkg in $enableval; do
4060 IFS="$lt_save_ifs"
4061 if test "X$pkg" = "X$p"; then
4062 enable_static=yes
4064 done
4065 IFS="$lt_save_ifs"
4067 esac
4068 else
4069 enable_static=yes
4080 # Check whether --with-pic or --without-pic was given.
4081 if test "${with_pic+set}" = set; then
4082 withval="$with_pic"
4083 pic_mode="$withval"
4084 else
4085 pic_mode=default
4088 test -z "$pic_mode" && pic_mode=default
4096 # Check whether --enable-fast-install or --disable-fast-install was given.
4097 if test "${enable_fast_install+set}" = set; then
4098 enableval="$enable_fast_install"
4099 p=${PACKAGE-default}
4100 case $enableval in
4101 yes) enable_fast_install=yes ;;
4102 no) enable_fast_install=no ;;
4104 enable_fast_install=no
4105 # Look at the argument we got. We use all the common list separators.
4106 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4107 for pkg in $enableval; do
4108 IFS="$lt_save_ifs"
4109 if test "X$pkg" = "X$p"; then
4110 enable_fast_install=yes
4112 done
4113 IFS="$lt_save_ifs"
4115 esac
4116 else
4117 enable_fast_install=yes
4127 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4128 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4129 if test "${lt_cv_path_SED+set}" = set; then
4130 echo $ECHO_N "(cached) $ECHO_C" >&6
4131 else
4132 # Loop through the user's path and test for sed and gsed.
4133 # Then use that list of sed's as ones to test for truncation.
4134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135 for as_dir in $PATH
4137 IFS=$as_save_IFS
4138 test -z "$as_dir" && as_dir=.
4139 for lt_ac_prog in sed gsed; do
4140 for ac_exec_ext in '' $ac_executable_extensions; do
4141 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4142 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4144 done
4145 done
4146 done
4147 IFS=$as_save_IFS
4148 lt_ac_max=0
4149 lt_ac_count=0
4150 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4151 # along with /bin/sed that truncates output.
4152 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4153 test ! -f $lt_ac_sed && continue
4154 cat /dev/null > conftest.in
4155 lt_ac_count=0
4156 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4157 # Check for GNU sed and select it if it is found.
4158 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4159 lt_cv_path_SED=$lt_ac_sed
4160 break
4162 while true; do
4163 cat conftest.in conftest.in >conftest.tmp
4164 mv conftest.tmp conftest.in
4165 cp conftest.in conftest.nl
4166 echo >>conftest.nl
4167 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4168 cmp -s conftest.out conftest.nl || break
4169 # 10000 chars as input seems more than enough
4170 test $lt_ac_count -gt 10 && break
4171 lt_ac_count=`expr $lt_ac_count + 1`
4172 if test $lt_ac_count -gt $lt_ac_max; then
4173 lt_ac_max=$lt_ac_count
4174 lt_cv_path_SED=$lt_ac_sed
4176 done
4177 done
4181 SED=$lt_cv_path_SED
4183 echo "$as_me:$LINENO: result: $SED" >&5
4184 echo "${ECHO_T}$SED" >&6
4186 test -z "$SED" && SED=sed
4187 Xsed="$SED -e 1s/^X//"
4199 echo "$as_me:$LINENO: checking for egrep" >&5
4200 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4201 if test "${ac_cv_prog_egrep+set}" = set; then
4202 echo $ECHO_N "(cached) $ECHO_C" >&6
4203 else
4204 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4205 then ac_cv_prog_egrep='grep -E'
4206 else ac_cv_prog_egrep='egrep'
4209 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4210 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4211 EGREP=$ac_cv_prog_egrep
4214 echo "$as_me:$LINENO: checking for fgrep" >&5
4215 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4216 if test "${ac_cv_prog_fgrep+set}" = set; then
4217 echo $ECHO_N "(cached) $ECHO_C" >&6
4218 else
4219 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4220 then ac_cv_prog_fgrep='grep -F'
4221 else ac_cv_prog_fgrep='fgrep'
4224 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4225 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4226 FGREP=$ac_cv_prog_fgrep
4229 test -z "$GREP" && GREP=grep
4249 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4250 if test "${with_gnu_ld+set}" = set; then
4251 withval="$with_gnu_ld"
4252 test "$withval" = no || with_gnu_ld=yes
4253 else
4254 with_gnu_ld=no
4256 ac_prog=ld
4257 if test "$GCC" = yes; then
4258 # Check if gcc -print-prog-name=ld gives a path.
4259 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4260 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4261 case $host in
4262 *-*-mingw*)
4263 # gcc leaves a trailing carriage return which upsets mingw
4264 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4266 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4267 esac
4268 case $ac_prog in
4269 # Accept absolute paths.
4270 [\\/]* | ?:[\\/]*)
4271 re_direlt='/[^/][^/]*/\.\./'
4272 # Canonicalize the pathname of ld
4273 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4274 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4275 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4276 done
4277 test -z "$LD" && LD="$ac_prog"
4280 # If it fails, then pretend we aren't using GCC.
4281 ac_prog=ld
4284 # If it is relative, then search for the first ld in PATH.
4285 with_gnu_ld=unknown
4287 esac
4288 elif test "$with_gnu_ld" = yes; then
4289 echo "$as_me:$LINENO: checking for GNU ld" >&5
4290 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4291 else
4292 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4293 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4295 if test "${lt_cv_path_LD+set}" = set; then
4296 echo $ECHO_N "(cached) $ECHO_C" >&6
4297 else
4298 if test -z "$LD"; then
4299 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4300 for ac_dir in $PATH; do
4301 IFS="$lt_save_ifs"
4302 test -z "$ac_dir" && ac_dir=.
4303 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4304 lt_cv_path_LD="$ac_dir/$ac_prog"
4305 # Check to see if the program is GNU ld. I'd rather use --version,
4306 # but apparently some variants of GNU ld only accept -v.
4307 # Break only if it was the GNU/non-GNU ld that we prefer.
4308 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4309 *GNU* | *'with BFD'*)
4310 test "$with_gnu_ld" != no && break
4313 test "$with_gnu_ld" != yes && break
4315 esac
4317 done
4318 IFS="$lt_save_ifs"
4319 else
4320 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4324 LD="$lt_cv_path_LD"
4325 if test -n "$LD"; then
4326 echo "$as_me:$LINENO: result: $LD" >&5
4327 echo "${ECHO_T}$LD" >&6
4328 else
4329 echo "$as_me:$LINENO: result: no" >&5
4330 echo "${ECHO_T}no" >&6
4332 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4333 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4334 { (exit 1); exit 1; }; }
4335 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4336 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4337 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4338 echo $ECHO_N "(cached) $ECHO_C" >&6
4339 else
4340 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4341 case `$LD -v 2>&1 </dev/null` in
4342 *GNU* | *'with BFD'*)
4343 lt_cv_prog_gnu_ld=yes
4346 lt_cv_prog_gnu_ld=no
4348 esac
4350 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4351 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4352 with_gnu_ld=$lt_cv_prog_gnu_ld
4363 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4364 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4365 if test "${lt_cv_path_NM+set}" = set; then
4366 echo $ECHO_N "(cached) $ECHO_C" >&6
4367 else
4368 if test -n "$NM"; then
4369 # Let the user override the test.
4370 lt_cv_path_NM="$NM"
4371 else
4372 lt_nm_to_check="${ac_tool_prefix}nm"
4373 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4374 lt_nm_to_check="$lt_nm_to_check nm"
4376 for lt_tmp_nm in $lt_nm_to_check; do
4377 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4378 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4379 IFS="$lt_save_ifs"
4380 test -z "$ac_dir" && ac_dir=.
4381 tmp_nm="$ac_dir/$lt_tmp_nm"
4382 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4383 # Check to see if the nm accepts a BSD-compat flag.
4384 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4385 # nm: unknown option "B" ignored
4386 # Tru64's nm complains that /dev/null is an invalid object file
4387 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4388 */dev/null* | *'Invalid file or object type'*)
4389 lt_cv_path_NM="$tmp_nm -B"
4390 break
4393 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4394 */dev/null*)
4395 lt_cv_path_NM="$tmp_nm -p"
4396 break
4399 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4400 continue # so that we can try to find one that supports BSD flags
4402 esac
4404 esac
4406 done
4407 IFS="$lt_save_ifs"
4408 done
4409 : ${lt_cv_path_NM=no}
4412 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4413 echo "${ECHO_T}$lt_cv_path_NM" >&6
4414 if test "$lt_cv_path_NM" != "no"; then
4415 NM="$lt_cv_path_NM"
4416 else
4417 # Didn't find any BSD compatible name lister, look for dumpbin.
4418 if test -n "$ac_tool_prefix"; then
4419 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4421 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4422 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4423 echo "$as_me:$LINENO: checking for $ac_word" >&5
4424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4425 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4426 echo $ECHO_N "(cached) $ECHO_C" >&6
4427 else
4428 if test -n "$DUMPBIN"; then
4429 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4430 else
4431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432 for as_dir in $PATH
4434 IFS=$as_save_IFS
4435 test -z "$as_dir" && as_dir=.
4436 for ac_exec_ext in '' $ac_executable_extensions; do
4437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4438 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4440 break 2
4442 done
4443 done
4447 DUMPBIN=$ac_cv_prog_DUMPBIN
4448 if test -n "$DUMPBIN"; then
4449 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4450 echo "${ECHO_T}$DUMPBIN" >&6
4451 else
4452 echo "$as_me:$LINENO: result: no" >&5
4453 echo "${ECHO_T}no" >&6
4456 test -n "$DUMPBIN" && break
4457 done
4459 if test -z "$DUMPBIN"; then
4460 ac_ct_DUMPBIN=$DUMPBIN
4461 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4463 # Extract the first word of "$ac_prog", so it can be a program name with args.
4464 set dummy $ac_prog; ac_word=$2
4465 echo "$as_me:$LINENO: checking for $ac_word" >&5
4466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4467 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4468 echo $ECHO_N "(cached) $ECHO_C" >&6
4469 else
4470 if test -n "$ac_ct_DUMPBIN"; then
4471 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4472 else
4473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4474 for as_dir in $PATH
4476 IFS=$as_save_IFS
4477 test -z "$as_dir" && as_dir=.
4478 for ac_exec_ext in '' $ac_executable_extensions; do
4479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4480 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4482 break 2
4484 done
4485 done
4489 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4490 if test -n "$ac_ct_DUMPBIN"; then
4491 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4492 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4493 else
4494 echo "$as_me:$LINENO: result: no" >&5
4495 echo "${ECHO_T}no" >&6
4498 test -n "$ac_ct_DUMPBIN" && break
4499 done
4500 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4502 DUMPBIN=$ac_ct_DUMPBIN
4506 if test "$DUMPBIN" != ":"; then
4507 NM="$DUMPBIN"
4510 test -z "$NM" && NM=nm
4517 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4518 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4519 if test "${lt_cv_nm_interface+set}" = set; then
4520 echo $ECHO_N "(cached) $ECHO_C" >&6
4521 else
4522 lt_cv_nm_interface="BSD nm"
4523 echo "int some_variable = 0;" > conftest.$ac_ext
4524 (eval echo "\"\$as_me:4524: $ac_compile\"" >&5)
4525 (eval "$ac_compile" 2>conftest.err)
4526 cat conftest.err >&5
4527 (eval echo "\"\$as_me:4527: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4528 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4529 cat conftest.err >&5
4530 (eval echo "\"\$as_me:4530: output\"" >&5)
4531 cat conftest.out >&5
4532 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4533 lt_cv_nm_interface="MS dumpbin"
4535 rm -f conftest*
4537 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4538 echo "${ECHO_T}$lt_cv_nm_interface" >&6
4540 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4541 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4542 LN_S=$as_ln_s
4543 if test "$LN_S" = "ln -s"; then
4544 echo "$as_me:$LINENO: result: yes" >&5
4545 echo "${ECHO_T}yes" >&6
4546 else
4547 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4548 echo "${ECHO_T}no, using $LN_S" >&6
4551 # find the maximum length of command line arguments
4552 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4553 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4554 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
4556 else
4558 teststring="ABCD"
4560 case $build_os in
4561 msdosdjgpp*)
4562 # On DJGPP, this test can blow up pretty badly due to problems in libc
4563 # (any single argument exceeding 2000 bytes causes a buffer overrun
4564 # during glob expansion). Even if it were fixed, the result of this
4565 # check would be larger than it should be.
4566 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4569 gnu*)
4570 # Under GNU Hurd, this test is not required because there is
4571 # no limit to the length of command line arguments.
4572 # Libtool will interpret -1 as no limit whatsoever
4573 lt_cv_sys_max_cmd_len=-1;
4576 cygwin* | mingw*)
4577 # On Win9x/ME, this test blows up -- it succeeds, but takes
4578 # about 5 minutes as the teststring grows exponentially.
4579 # Worse, since 9x/ME are not pre-emptively multitasking,
4580 # you end up with a "frozen" computer, even though with patience
4581 # the test eventually succeeds (with a max line length of 256k).
4582 # Instead, let's just punt: use the minimum linelength reported by
4583 # all of the supported platforms: 8192 (on NT/2K/XP).
4584 lt_cv_sys_max_cmd_len=8192;
4587 amigaos*)
4588 # On AmigaOS with pdksh, this test takes hours, literally.
4589 # So we just punt and use a minimum line length of 8192.
4590 lt_cv_sys_max_cmd_len=8192;
4593 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4594 # This has been around since 386BSD, at least. Likely further.
4595 if test -x /sbin/sysctl; then
4596 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4597 elif test -x /usr/sbin/sysctl; then
4598 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4599 else
4600 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4602 # And add a safety zone
4603 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4604 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4607 interix*)
4608 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4609 lt_cv_sys_max_cmd_len=196608
4612 osf*)
4613 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4614 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4615 # nice to cause kernel panics so lets avoid the loop below.
4616 # First set a reasonable default.
4617 lt_cv_sys_max_cmd_len=16384
4619 if test -x /sbin/sysconfig; then
4620 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4621 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4622 esac
4625 sco3.2v5*)
4626 lt_cv_sys_max_cmd_len=102400
4628 sysv5* | sco5v6* | sysv4.2uw2*)
4629 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4630 if test -n "$kargmax"; then
4631 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4632 else
4633 lt_cv_sys_max_cmd_len=32768
4637 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4638 if test -n $lt_cv_sys_max_cmd_len; then
4639 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4640 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4641 else
4642 # Make teststring a little bigger before we do anything with it.
4643 # a 1K string should be a reasonable start.
4644 for i in 1 2 3 4 5 6 7 8 ; do
4645 teststring=$teststring$teststring
4646 done
4647 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4648 # If test is not a shell built-in, we'll probably end up computing a
4649 # maximum length that is only half of the actual maximum length, but
4650 # we can't tell.
4651 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4652 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4653 test $i != 17 # 1/2 MB should be enough
4655 i=`expr $i + 1`
4656 teststring=$teststring$teststring
4657 done
4658 # Only check the string length outside the loop.
4659 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4660 teststring=
4661 # Add a significant safety factor because C++ compilers can tack on
4662 # massive amounts of additional arguments before passing them to the
4663 # linker. It appears as though 1/2 is a usable value.
4664 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4667 esac
4671 if test -n $lt_cv_sys_max_cmd_len ; then
4672 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4673 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4674 else
4675 echo "$as_me:$LINENO: result: none" >&5
4676 echo "${ECHO_T}none" >&6
4678 max_cmd_len=$lt_cv_sys_max_cmd_len
4686 : ${CP="cp -f"}
4687 : ${MV="mv -f"}
4688 : ${RM="rm -f"}
4690 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4691 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4692 # Try some XSI features
4693 xsi_shell=no
4694 ( _lt_dummy="a/b/c"
4695 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4696 = c,a/b,, ) >/dev/null 2>&1 \
4697 && xsi_shell=yes
4698 echo "$as_me:$LINENO: result: $xsi_shell" >&5
4699 echo "${ECHO_T}$xsi_shell" >&6
4702 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4703 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4704 lt_shell_append=no
4705 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4706 >/dev/null 2>&1 \
4707 && lt_shell_append=yes
4708 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4709 echo "${ECHO_T}$lt_shell_append" >&6
4712 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4713 lt_unset=unset
4714 else
4715 lt_unset=false
4722 # test EBCDIC or ASCII
4723 case `echo X|tr X '\101'` in
4724 A) # ASCII based system
4725 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4726 lt_SP2NL='tr \040 \012'
4727 lt_NL2SP='tr \015\012 \040\040'
4729 *) # EBCDIC based system
4730 lt_SP2NL='tr \100 \n'
4731 lt_NL2SP='tr \r\n \100\100'
4733 esac
4743 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4744 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4745 if test "${lt_cv_ld_reload_flag+set}" = set; then
4746 echo $ECHO_N "(cached) $ECHO_C" >&6
4747 else
4748 lt_cv_ld_reload_flag='-r'
4750 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4751 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4752 reload_flag=$lt_cv_ld_reload_flag
4753 case $reload_flag in
4754 "" | " "*) ;;
4755 *) reload_flag=" $reload_flag" ;;
4756 esac
4757 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4758 case $host_os in
4759 darwin*)
4760 if test "$GCC" = yes; then
4761 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4762 else
4763 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4766 esac
4777 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4778 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4779 if test "${lt_cv_deplibs_check_method+set}" = set; then
4780 echo $ECHO_N "(cached) $ECHO_C" >&6
4781 else
4782 lt_cv_file_magic_cmd='$MAGIC_CMD'
4783 lt_cv_file_magic_test_file=
4784 lt_cv_deplibs_check_method='unknown'
4785 # Need to set the preceding variable on all platforms that support
4786 # interlibrary dependencies.
4787 # 'none' -- dependencies not supported.
4788 # `unknown' -- same as none, but documents that we really don't know.
4789 # 'pass_all' -- all dependencies passed with no checks.
4790 # 'test_compile' -- check by making test program.
4791 # 'file_magic [[regex]]' -- check by looking for files in library path
4792 # which responds to the $file_magic_cmd with a given extended regex.
4793 # If you have `file' or equivalent on your system and you're not sure
4794 # whether `pass_all' will *always* work, you probably want this one.
4796 case $host_os in
4797 aix[4-9]*)
4798 lt_cv_deplibs_check_method=pass_all
4801 beos*)
4802 lt_cv_deplibs_check_method=pass_all
4805 bsdi[45]*)
4806 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4807 lt_cv_file_magic_cmd='/usr/bin/file -L'
4808 lt_cv_file_magic_test_file=/shlib/libc.so
4811 cygwin*)
4812 # func_win32_libid is a shell function defined in ltmain.sh
4813 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4814 lt_cv_file_magic_cmd='func_win32_libid'
4817 mingw* | pw32*)
4818 # Base MSYS/MinGW do not provide the 'file' command needed by
4819 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4820 # unless we find 'file', for example because we are cross-compiling.
4821 if ( file / ) >/dev/null 2>&1; then
4822 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4823 lt_cv_file_magic_cmd='func_win32_libid'
4824 else
4825 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4826 lt_cv_file_magic_cmd='$OBJDUMP -f'
4830 darwin* | rhapsody*)
4831 lt_cv_deplibs_check_method=pass_all
4834 freebsd* | dragonfly*)
4835 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4836 case $host_cpu in
4837 i*86 )
4838 # Not sure whether the presence of OpenBSD here was a mistake.
4839 # Let's accept both of them until this is cleared up.
4840 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4841 lt_cv_file_magic_cmd=/usr/bin/file
4842 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4844 esac
4845 else
4846 lt_cv_deplibs_check_method=pass_all
4850 gnu*)
4851 lt_cv_deplibs_check_method=pass_all
4854 hpux10.20* | hpux11*)
4855 lt_cv_file_magic_cmd=/usr/bin/file
4856 case $host_cpu in
4857 ia64*)
4858 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4859 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4861 hppa*64*)
4862 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]'
4863 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4866 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4867 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4869 esac
4872 interix[3-9]*)
4873 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4874 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4877 irix5* | irix6* | nonstopux*)
4878 case $LD in
4879 *-32|*"-32 ") libmagic=32-bit;;
4880 *-n32|*"-n32 ") libmagic=N32;;
4881 *-64|*"-64 ") libmagic=64-bit;;
4882 *) libmagic=never-match;;
4883 esac
4884 lt_cv_deplibs_check_method=pass_all
4887 # This must be Linux ELF.
4888 linux* | k*bsd*-gnu)
4889 lt_cv_deplibs_check_method=pass_all
4892 netbsd*)
4893 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4894 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4895 else
4896 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4900 newos6*)
4901 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4902 lt_cv_file_magic_cmd=/usr/bin/file
4903 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4906 *nto* | *qnx*)
4907 lt_cv_deplibs_check_method=pass_all
4910 openbsd*)
4911 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4912 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4913 else
4914 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4918 osf3* | osf4* | osf5*)
4919 lt_cv_deplibs_check_method=pass_all
4922 rdos*)
4923 lt_cv_deplibs_check_method=pass_all
4926 solaris*)
4927 lt_cv_deplibs_check_method=pass_all
4930 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4931 lt_cv_deplibs_check_method=pass_all
4934 sysv4 | sysv4.3*)
4935 case $host_vendor in
4936 motorola)
4937 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]'
4938 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4940 ncr)
4941 lt_cv_deplibs_check_method=pass_all
4943 sequent)
4944 lt_cv_file_magic_cmd='/bin/file'
4945 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4947 sni)
4948 lt_cv_file_magic_cmd='/bin/file'
4949 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4950 lt_cv_file_magic_test_file=/lib/libc.so
4952 siemens)
4953 lt_cv_deplibs_check_method=pass_all
4956 lt_cv_deplibs_check_method=pass_all
4958 esac
4961 tpf*)
4962 lt_cv_deplibs_check_method=pass_all
4964 esac
4967 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4968 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4969 file_magic_cmd=$lt_cv_file_magic_cmd
4970 deplibs_check_method=$lt_cv_deplibs_check_method
4971 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4984 if test -n "$ac_tool_prefix"; then
4985 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4986 set dummy ${ac_tool_prefix}ar; ac_word=$2
4987 echo "$as_me:$LINENO: checking for $ac_word" >&5
4988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4989 if test "${ac_cv_prog_AR+set}" = set; then
4990 echo $ECHO_N "(cached) $ECHO_C" >&6
4991 else
4992 if test -n "$AR"; then
4993 ac_cv_prog_AR="$AR" # Let the user override the test.
4994 else
4995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4996 for as_dir in $PATH
4998 IFS=$as_save_IFS
4999 test -z "$as_dir" && as_dir=.
5000 for ac_exec_ext in '' $ac_executable_extensions; do
5001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5002 ac_cv_prog_AR="${ac_tool_prefix}ar"
5003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5004 break 2
5006 done
5007 done
5011 AR=$ac_cv_prog_AR
5012 if test -n "$AR"; then
5013 echo "$as_me:$LINENO: result: $AR" >&5
5014 echo "${ECHO_T}$AR" >&6
5015 else
5016 echo "$as_me:$LINENO: result: no" >&5
5017 echo "${ECHO_T}no" >&6
5021 if test -z "$ac_cv_prog_AR"; then
5022 ac_ct_AR=$AR
5023 # Extract the first word of "ar", so it can be a program name with args.
5024 set dummy ar; ac_word=$2
5025 echo "$as_me:$LINENO: checking for $ac_word" >&5
5026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5027 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5028 echo $ECHO_N "(cached) $ECHO_C" >&6
5029 else
5030 if test -n "$ac_ct_AR"; then
5031 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5032 else
5033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034 for as_dir in $PATH
5036 IFS=$as_save_IFS
5037 test -z "$as_dir" && as_dir=.
5038 for ac_exec_ext in '' $ac_executable_extensions; do
5039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5040 ac_cv_prog_ac_ct_AR="ar"
5041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5042 break 2
5044 done
5045 done
5047 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5050 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5051 if test -n "$ac_ct_AR"; then
5052 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5053 echo "${ECHO_T}$ac_ct_AR" >&6
5054 else
5055 echo "$as_me:$LINENO: result: no" >&5
5056 echo "${ECHO_T}no" >&6
5059 AR=$ac_ct_AR
5060 else
5061 AR="$ac_cv_prog_AR"
5064 test -z "$AR" && AR=ar
5065 test -z "$AR_FLAGS" && AR_FLAGS=cru
5077 if test -n "$ac_tool_prefix"; then
5078 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5079 set dummy ${ac_tool_prefix}strip; ac_word=$2
5080 echo "$as_me:$LINENO: checking for $ac_word" >&5
5081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5082 if test "${ac_cv_prog_STRIP+set}" = set; then
5083 echo $ECHO_N "(cached) $ECHO_C" >&6
5084 else
5085 if test -n "$STRIP"; then
5086 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5087 else
5088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089 for as_dir in $PATH
5091 IFS=$as_save_IFS
5092 test -z "$as_dir" && as_dir=.
5093 for ac_exec_ext in '' $ac_executable_extensions; do
5094 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5095 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5097 break 2
5099 done
5100 done
5104 STRIP=$ac_cv_prog_STRIP
5105 if test -n "$STRIP"; then
5106 echo "$as_me:$LINENO: result: $STRIP" >&5
5107 echo "${ECHO_T}$STRIP" >&6
5108 else
5109 echo "$as_me:$LINENO: result: no" >&5
5110 echo "${ECHO_T}no" >&6
5114 if test -z "$ac_cv_prog_STRIP"; then
5115 ac_ct_STRIP=$STRIP
5116 # Extract the first word of "strip", so it can be a program name with args.
5117 set dummy strip; ac_word=$2
5118 echo "$as_me:$LINENO: checking for $ac_word" >&5
5119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5120 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5121 echo $ECHO_N "(cached) $ECHO_C" >&6
5122 else
5123 if test -n "$ac_ct_STRIP"; then
5124 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5125 else
5126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127 for as_dir in $PATH
5129 IFS=$as_save_IFS
5130 test -z "$as_dir" && as_dir=.
5131 for ac_exec_ext in '' $ac_executable_extensions; do
5132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5133 ac_cv_prog_ac_ct_STRIP="strip"
5134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5135 break 2
5137 done
5138 done
5140 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5143 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5144 if test -n "$ac_ct_STRIP"; then
5145 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5146 echo "${ECHO_T}$ac_ct_STRIP" >&6
5147 else
5148 echo "$as_me:$LINENO: result: no" >&5
5149 echo "${ECHO_T}no" >&6
5152 STRIP=$ac_ct_STRIP
5153 else
5154 STRIP="$ac_cv_prog_STRIP"
5157 test -z "$STRIP" && STRIP=:
5164 if test -n "$ac_tool_prefix"; then
5165 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5166 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5167 echo "$as_me:$LINENO: checking for $ac_word" >&5
5168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5169 if test "${ac_cv_prog_RANLIB+set}" = set; then
5170 echo $ECHO_N "(cached) $ECHO_C" >&6
5171 else
5172 if test -n "$RANLIB"; then
5173 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5174 else
5175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176 for as_dir in $PATH
5178 IFS=$as_save_IFS
5179 test -z "$as_dir" && as_dir=.
5180 for ac_exec_ext in '' $ac_executable_extensions; do
5181 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5182 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5184 break 2
5186 done
5187 done
5191 RANLIB=$ac_cv_prog_RANLIB
5192 if test -n "$RANLIB"; then
5193 echo "$as_me:$LINENO: result: $RANLIB" >&5
5194 echo "${ECHO_T}$RANLIB" >&6
5195 else
5196 echo "$as_me:$LINENO: result: no" >&5
5197 echo "${ECHO_T}no" >&6
5201 if test -z "$ac_cv_prog_RANLIB"; then
5202 ac_ct_RANLIB=$RANLIB
5203 # Extract the first word of "ranlib", so it can be a program name with args.
5204 set dummy ranlib; ac_word=$2
5205 echo "$as_me:$LINENO: checking for $ac_word" >&5
5206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5207 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5208 echo $ECHO_N "(cached) $ECHO_C" >&6
5209 else
5210 if test -n "$ac_ct_RANLIB"; then
5211 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5212 else
5213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214 for as_dir in $PATH
5216 IFS=$as_save_IFS
5217 test -z "$as_dir" && as_dir=.
5218 for ac_exec_ext in '' $ac_executable_extensions; do
5219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5220 ac_cv_prog_ac_ct_RANLIB="ranlib"
5221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5222 break 2
5224 done
5225 done
5227 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5230 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5231 if test -n "$ac_ct_RANLIB"; then
5232 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5233 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5234 else
5235 echo "$as_me:$LINENO: result: no" >&5
5236 echo "${ECHO_T}no" >&6
5239 RANLIB=$ac_ct_RANLIB
5240 else
5241 RANLIB="$ac_cv_prog_RANLIB"
5244 test -z "$RANLIB" && RANLIB=:
5251 # Determine commands to create old-style static archives.
5252 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5253 old_postinstall_cmds='chmod 644 $oldlib'
5254 old_postuninstall_cmds=
5256 if test -n "$RANLIB"; then
5257 case $host_os in
5258 openbsd*)
5259 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5262 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5264 esac
5265 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5301 # If no C compiler was specified, use CC.
5302 LTCC=${LTCC-"$CC"}
5304 # If no C compiler flags were specified, use CFLAGS.
5305 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5307 # Allow CC to be a program name with arguments.
5308 compiler=$CC
5311 # Check for command to grab the raw symbol name followed by C symbol from nm.
5312 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5313 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5314 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5315 echo $ECHO_N "(cached) $ECHO_C" >&6
5316 else
5318 # These are sane defaults that work on at least a few old systems.
5319 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5321 # Character class describing NM global symbol codes.
5322 symcode='[BCDEGRST]'
5324 # Regexp to match symbols that can be accessed directly from C.
5325 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5327 # Define system-specific variables.
5328 case $host_os in
5329 aix*)
5330 symcode='[BCDT]'
5332 cygwin* | mingw* | pw32*)
5333 symcode='[ABCDGISTW]'
5335 hpux*)
5336 if test "$host_cpu" = ia64; then
5337 symcode='[ABCDEGRST]'
5340 irix* | nonstopux*)
5341 symcode='[BCDEGRST]'
5343 osf*)
5344 symcode='[BCDEGQRST]'
5346 solaris*)
5347 symcode='[BDRT]'
5349 sco3.2v5*)
5350 symcode='[DT]'
5352 sysv4.2uw2*)
5353 symcode='[DT]'
5355 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5356 symcode='[ABDT]'
5358 sysv4)
5359 symcode='[DFNSTU]'
5361 esac
5363 # If we're using GNU nm, then use its standard symbol codes.
5364 case `$NM -V 2>&1` in
5365 *GNU* | *'with BFD'*)
5366 symcode='[ABCDGIRSTW]' ;;
5367 esac
5369 # Transform an extracted symbol line into a proper C declaration.
5370 # Some systems (esp. on ia64) link data and code symbols differently,
5371 # so use this general approach.
5372 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5374 # Transform an extracted symbol line into symbol name and symbol address
5375 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5377 # Handle CRLF in mingw tool chain
5378 opt_cr=
5379 case $build_os in
5380 mingw*)
5381 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5383 esac
5385 # Try without a prefix underscore, then with it.
5386 for ac_symprfx in "" "_"; do
5388 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5389 symxfrm="\\1 $ac_symprfx\\2 \\2"
5391 # Write the raw and C identifiers.
5392 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5393 # Fake it for dumpbin and say T for any non-static function
5394 # and D for any global variable.
5395 # Also find C++ and __fastcall symbols from MSVC++,
5396 # which start with @ or ?.
5397 lt_cv_sys_global_symbol_pipe="$AWK '"\
5398 " {last_section=section; section=\$ 3};"\
5399 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5400 " \$ 0!~/External *\|/{next};"\
5401 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5402 " {if(hide[section]) next};"\
5403 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5404 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5405 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5406 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5407 " ' prfx=^$ac_symprfx"
5408 else
5409 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5412 # Check to see that the pipe works correctly.
5413 pipe_works=no
5415 rm -f conftest*
5416 cat > conftest.$ac_ext <<_LT_EOF
5417 #ifdef __cplusplus
5418 extern "C" {
5419 #endif
5420 char nm_test_var;
5421 void nm_test_func(void);
5422 void nm_test_func(void){}
5423 #ifdef __cplusplus
5425 #endif
5426 int main(){nm_test_var='a';nm_test_func();return(0);}
5427 _LT_EOF
5429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5430 (eval $ac_compile) 2>&5
5431 ac_status=$?
5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433 (exit $ac_status); }; then
5434 # Now try to grab the symbols.
5435 nlist=conftest.nm
5436 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5437 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5438 ac_status=$?
5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440 (exit $ac_status); } && test -s "$nlist"; then
5441 # Try sorting and uniquifying the output.
5442 if sort "$nlist" | uniq > "$nlist"T; then
5443 mv -f "$nlist"T "$nlist"
5444 else
5445 rm -f "$nlist"T
5448 # Make sure that we snagged all the symbols we need.
5449 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5450 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5451 cat <<_LT_EOF > conftest.$ac_ext
5452 #ifdef __cplusplus
5453 extern "C" {
5454 #endif
5456 _LT_EOF
5457 # Now generate the symbol file.
5458 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5460 cat <<_LT_EOF >> conftest.$ac_ext
5462 /* The mapping between symbol names and symbols. */
5463 const struct {
5464 const char *name;
5465 void *address;
5467 lt__PROGRAM__LTX_preloaded_symbols[] =
5469 { "@PROGRAM@", (void *) 0 },
5470 _LT_EOF
5471 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5472 cat <<\_LT_EOF >> conftest.$ac_ext
5473 {0, (void *) 0}
5476 /* This works around a problem in FreeBSD linker */
5477 #ifdef FREEBSD_WORKAROUND
5478 static const void *lt_preloaded_setup() {
5479 return lt__PROGRAM__LTX_preloaded_symbols;
5481 #endif
5483 #ifdef __cplusplus
5485 #endif
5486 _LT_EOF
5487 # Now try linking the two files.
5488 mv conftest.$ac_objext conftstm.$ac_objext
5489 lt_save_LIBS="$LIBS"
5490 lt_save_CFLAGS="$CFLAGS"
5491 LIBS="conftstm.$ac_objext"
5492 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5494 (eval $ac_link) 2>&5
5495 ac_status=$?
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5498 pipe_works=yes
5500 LIBS="$lt_save_LIBS"
5501 CFLAGS="$lt_save_CFLAGS"
5502 else
5503 echo "cannot find nm_test_func in $nlist" >&5
5505 else
5506 echo "cannot find nm_test_var in $nlist" >&5
5508 else
5509 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5511 else
5512 echo "$progname: failed program was:" >&5
5513 cat conftest.$ac_ext >&5
5515 rm -f conftest* conftst*
5517 # Do not use the global_symbol_pipe unless it works.
5518 if test "$pipe_works" = yes; then
5519 break
5520 else
5521 lt_cv_sys_global_symbol_pipe=
5523 done
5527 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5528 lt_cv_sys_global_symbol_to_cdecl=
5530 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5531 echo "$as_me:$LINENO: result: failed" >&5
5532 echo "${ECHO_T}failed" >&6
5533 else
5534 echo "$as_me:$LINENO: result: ok" >&5
5535 echo "${ECHO_T}ok" >&6
5554 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5555 if test "${enable_libtool_lock+set}" = set; then
5556 enableval="$enable_libtool_lock"
5559 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5561 # Some flags need to be propagated to the compiler or linker for good
5562 # libtool support.
5563 case $host in
5564 ia64-*-hpux*)
5565 # Find out which ABI we are using.
5566 echo 'int i;' > conftest.$ac_ext
5567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5568 (eval $ac_compile) 2>&5
5569 ac_status=$?
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); }; then
5572 case `/usr/bin/file conftest.$ac_objext` in
5573 *ELF-32*)
5574 HPUX_IA64_MODE="32"
5576 *ELF-64*)
5577 HPUX_IA64_MODE="64"
5579 esac
5581 rm -rf conftest*
5583 *-*-irix6*)
5584 # Find out which ABI we are using.
5585 echo '#line 5585 "configure"' > conftest.$ac_ext
5586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5587 (eval $ac_compile) 2>&5
5588 ac_status=$?
5589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590 (exit $ac_status); }; then
5591 if test "$lt_cv_prog_gnu_ld" = yes; then
5592 case `/usr/bin/file conftest.$ac_objext` in
5593 *32-bit*)
5594 LD="${LD-ld} -melf32bsmip"
5596 *N32*)
5597 LD="${LD-ld} -melf32bmipn32"
5599 *64-bit*)
5600 LD="${LD-ld} -melf64bmip"
5602 esac
5603 else
5604 case `/usr/bin/file conftest.$ac_objext` in
5605 *32-bit*)
5606 LD="${LD-ld} -32"
5608 *N32*)
5609 LD="${LD-ld} -n32"
5611 *64-bit*)
5612 LD="${LD-ld} -64"
5614 esac
5617 rm -rf conftest*
5620 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5621 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5622 # Find out which ABI we are using.
5623 echo 'int i;' > conftest.$ac_ext
5624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5625 (eval $ac_compile) 2>&5
5626 ac_status=$?
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); }; then
5629 case `/usr/bin/file conftest.o` in
5630 *32-bit*)
5631 case $host in
5632 x86_64-*kfreebsd*-gnu)
5633 LD="${LD-ld} -m elf_i386_fbsd"
5635 x86_64-*linux*)
5636 LD="${LD-ld} -m elf_i386"
5638 ppc64-*linux*|powerpc64-*linux*)
5639 LD="${LD-ld} -m elf32ppclinux"
5641 s390x-*linux*)
5642 LD="${LD-ld} -m elf_s390"
5644 sparc64-*linux*)
5645 LD="${LD-ld} -m elf32_sparc"
5647 esac
5649 *64-bit*)
5650 case $host in
5651 x86_64-*kfreebsd*-gnu)
5652 LD="${LD-ld} -m elf_x86_64_fbsd"
5654 x86_64-*linux*)
5655 LD="${LD-ld} -m elf_x86_64"
5657 ppc*-*linux*|powerpc*-*linux*)
5658 LD="${LD-ld} -m elf64ppc"
5660 s390*-*linux*|s390*-*tpf*)
5661 LD="${LD-ld} -m elf64_s390"
5663 sparc*-*linux*)
5664 LD="${LD-ld} -m elf64_sparc"
5666 esac
5668 esac
5670 rm -rf conftest*
5673 *-*-sco3.2v5*)
5674 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5675 SAVE_CFLAGS="$CFLAGS"
5676 CFLAGS="$CFLAGS -belf"
5677 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5678 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5679 if test "${lt_cv_cc_needs_belf+set}" = set; then
5680 echo $ECHO_N "(cached) $ECHO_C" >&6
5681 else
5682 ac_ext=c
5683 ac_cpp='$CPP $CPPFLAGS'
5684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5688 cat >conftest.$ac_ext <<_ACEOF
5689 /* confdefs.h. */
5690 _ACEOF
5691 cat confdefs.h >>conftest.$ac_ext
5692 cat >>conftest.$ac_ext <<_ACEOF
5693 /* end confdefs.h. */
5696 main ()
5700 return 0;
5702 _ACEOF
5703 rm -f conftest.$ac_objext conftest$ac_exeext
5704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5705 (eval $ac_link) 2>conftest.er1
5706 ac_status=$?
5707 grep -v '^ *+' conftest.er1 >conftest.err
5708 rm -f conftest.er1
5709 cat conftest.err >&5
5710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711 (exit $ac_status); } &&
5712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5714 (eval $ac_try) 2>&5
5715 ac_status=$?
5716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717 (exit $ac_status); }; } &&
5718 { ac_try='test -s conftest$ac_exeext'
5719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5720 (eval $ac_try) 2>&5
5721 ac_status=$?
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); }; }; then
5724 lt_cv_cc_needs_belf=yes
5725 else
5726 echo "$as_me: failed program was:" >&5
5727 sed 's/^/| /' conftest.$ac_ext >&5
5729 lt_cv_cc_needs_belf=no
5731 rm -f conftest.err conftest.$ac_objext \
5732 conftest$ac_exeext conftest.$ac_ext
5733 ac_ext=c
5734 ac_cpp='$CPP $CPPFLAGS'
5735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5740 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5741 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5742 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5743 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5744 CFLAGS="$SAVE_CFLAGS"
5747 sparc*-*solaris*)
5748 # Find out which ABI we are using.
5749 echo 'int i;' > conftest.$ac_ext
5750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5751 (eval $ac_compile) 2>&5
5752 ac_status=$?
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); }; then
5755 case `/usr/bin/file conftest.o` in
5756 *64-bit*)
5757 case $lt_cv_prog_gnu_ld in
5758 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5759 *) LD="${LD-ld} -64" ;;
5760 esac
5762 esac
5764 rm -rf conftest*
5766 esac
5768 need_locks="$enable_libtool_lock"
5770 ac_ext=c
5771 ac_cpp='$CPP $CPPFLAGS'
5772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5775 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5776 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5777 # On Suns, sometimes $CPP names a directory.
5778 if test -n "$CPP" && test -d "$CPP"; then
5779 CPP=
5781 if test -z "$CPP"; then
5782 if test "${ac_cv_prog_CPP+set}" = set; then
5783 echo $ECHO_N "(cached) $ECHO_C" >&6
5784 else
5785 # Double quotes because CPP needs to be expanded
5786 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5788 ac_preproc_ok=false
5789 for ac_c_preproc_warn_flag in '' yes
5791 # Use a header file that comes with gcc, so configuring glibc
5792 # with a fresh cross-compiler works.
5793 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5794 # <limits.h> exists even on freestanding compilers.
5795 # On the NeXT, cc -E runs the code through the compiler's parser,
5796 # not just through cpp. "Syntax error" is here to catch this case.
5797 cat >conftest.$ac_ext <<_ACEOF
5798 /* confdefs.h. */
5799 _ACEOF
5800 cat confdefs.h >>conftest.$ac_ext
5801 cat >>conftest.$ac_ext <<_ACEOF
5802 /* end confdefs.h. */
5803 #ifdef __STDC__
5804 # include <limits.h>
5805 #else
5806 # include <assert.h>
5807 #endif
5808 Syntax error
5809 _ACEOF
5810 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5811 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5812 ac_status=$?
5813 grep -v '^ *+' conftest.er1 >conftest.err
5814 rm -f conftest.er1
5815 cat conftest.err >&5
5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); } >/dev/null; then
5818 if test -s conftest.err; then
5819 ac_cpp_err=$ac_c_preproc_warn_flag
5820 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5821 else
5822 ac_cpp_err=
5824 else
5825 ac_cpp_err=yes
5827 if test -z "$ac_cpp_err"; then
5829 else
5830 echo "$as_me: failed program was:" >&5
5831 sed 's/^/| /' conftest.$ac_ext >&5
5833 # Broken: fails on valid input.
5834 continue
5836 rm -f conftest.err conftest.$ac_ext
5838 # OK, works on sane cases. Now check whether non-existent headers
5839 # can be detected and how.
5840 cat >conftest.$ac_ext <<_ACEOF
5841 /* confdefs.h. */
5842 _ACEOF
5843 cat confdefs.h >>conftest.$ac_ext
5844 cat >>conftest.$ac_ext <<_ACEOF
5845 /* end confdefs.h. */
5846 #include <ac_nonexistent.h>
5847 _ACEOF
5848 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5849 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5850 ac_status=$?
5851 grep -v '^ *+' conftest.er1 >conftest.err
5852 rm -f conftest.er1
5853 cat conftest.err >&5
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); } >/dev/null; then
5856 if test -s conftest.err; then
5857 ac_cpp_err=$ac_c_preproc_warn_flag
5858 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5859 else
5860 ac_cpp_err=
5862 else
5863 ac_cpp_err=yes
5865 if test -z "$ac_cpp_err"; then
5866 # Broken: success on invalid input.
5867 continue
5868 else
5869 echo "$as_me: failed program was:" >&5
5870 sed 's/^/| /' conftest.$ac_ext >&5
5872 # Passes both tests.
5873 ac_preproc_ok=:
5874 break
5876 rm -f conftest.err conftest.$ac_ext
5878 done
5879 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5880 rm -f conftest.err conftest.$ac_ext
5881 if $ac_preproc_ok; then
5882 break
5885 done
5886 ac_cv_prog_CPP=$CPP
5889 CPP=$ac_cv_prog_CPP
5890 else
5891 ac_cv_prog_CPP=$CPP
5893 echo "$as_me:$LINENO: result: $CPP" >&5
5894 echo "${ECHO_T}$CPP" >&6
5895 ac_preproc_ok=false
5896 for ac_c_preproc_warn_flag in '' yes
5898 # Use a header file that comes with gcc, so configuring glibc
5899 # with a fresh cross-compiler works.
5900 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5901 # <limits.h> exists even on freestanding compilers.
5902 # On the NeXT, cc -E runs the code through the compiler's parser,
5903 # not just through cpp. "Syntax error" is here to catch this case.
5904 cat >conftest.$ac_ext <<_ACEOF
5905 /* confdefs.h. */
5906 _ACEOF
5907 cat confdefs.h >>conftest.$ac_ext
5908 cat >>conftest.$ac_ext <<_ACEOF
5909 /* end confdefs.h. */
5910 #ifdef __STDC__
5911 # include <limits.h>
5912 #else
5913 # include <assert.h>
5914 #endif
5915 Syntax error
5916 _ACEOF
5917 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5918 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5919 ac_status=$?
5920 grep -v '^ *+' conftest.er1 >conftest.err
5921 rm -f conftest.er1
5922 cat conftest.err >&5
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); } >/dev/null; then
5925 if test -s conftest.err; then
5926 ac_cpp_err=$ac_c_preproc_warn_flag
5927 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5928 else
5929 ac_cpp_err=
5931 else
5932 ac_cpp_err=yes
5934 if test -z "$ac_cpp_err"; then
5936 else
5937 echo "$as_me: failed program was:" >&5
5938 sed 's/^/| /' conftest.$ac_ext >&5
5940 # Broken: fails on valid input.
5941 continue
5943 rm -f conftest.err conftest.$ac_ext
5945 # OK, works on sane cases. Now check whether non-existent headers
5946 # can be detected and how.
5947 cat >conftest.$ac_ext <<_ACEOF
5948 /* confdefs.h. */
5949 _ACEOF
5950 cat confdefs.h >>conftest.$ac_ext
5951 cat >>conftest.$ac_ext <<_ACEOF
5952 /* end confdefs.h. */
5953 #include <ac_nonexistent.h>
5954 _ACEOF
5955 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5956 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5957 ac_status=$?
5958 grep -v '^ *+' conftest.er1 >conftest.err
5959 rm -f conftest.er1
5960 cat conftest.err >&5
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); } >/dev/null; then
5963 if test -s conftest.err; then
5964 ac_cpp_err=$ac_c_preproc_warn_flag
5965 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5966 else
5967 ac_cpp_err=
5969 else
5970 ac_cpp_err=yes
5972 if test -z "$ac_cpp_err"; then
5973 # Broken: success on invalid input.
5974 continue
5975 else
5976 echo "$as_me: failed program was:" >&5
5977 sed 's/^/| /' conftest.$ac_ext >&5
5979 # Passes both tests.
5980 ac_preproc_ok=:
5981 break
5983 rm -f conftest.err conftest.$ac_ext
5985 done
5986 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5987 rm -f conftest.err conftest.$ac_ext
5988 if $ac_preproc_ok; then
5990 else
5991 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5992 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5993 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5994 See \`config.log' for more details." >&5
5995 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5996 See \`config.log' for more details." >&2;}
5997 { (exit 1); exit 1; }; }; }
6000 ac_ext=c
6001 ac_cpp='$CPP $CPPFLAGS'
6002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6007 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6008 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6009 if test "${ac_cv_header_stdc+set}" = set; then
6010 echo $ECHO_N "(cached) $ECHO_C" >&6
6011 else
6012 cat >conftest.$ac_ext <<_ACEOF
6013 /* confdefs.h. */
6014 _ACEOF
6015 cat confdefs.h >>conftest.$ac_ext
6016 cat >>conftest.$ac_ext <<_ACEOF
6017 /* end confdefs.h. */
6018 #include <stdlib.h>
6019 #include <stdarg.h>
6020 #include <string.h>
6021 #include <float.h>
6024 main ()
6028 return 0;
6030 _ACEOF
6031 rm -f conftest.$ac_objext
6032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6033 (eval $ac_compile) 2>conftest.er1
6034 ac_status=$?
6035 grep -v '^ *+' conftest.er1 >conftest.err
6036 rm -f conftest.er1
6037 cat conftest.err >&5
6038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 (exit $ac_status); } &&
6040 { ac_try='test -z "$ac_c_werror_flag" || 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" || test ! -s conftest.err'
6211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6212 (eval $ac_try) 2>&5
6213 ac_status=$?
6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); }; } &&
6216 { ac_try='test -s conftest.$ac_objext'
6217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6218 (eval $ac_try) 2>&5
6219 ac_status=$?
6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221 (exit $ac_status); }; }; then
6222 eval "$as_ac_Header=yes"
6223 else
6224 echo "$as_me: failed program was:" >&5
6225 sed 's/^/| /' conftest.$ac_ext >&5
6227 eval "$as_ac_Header=no"
6229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6232 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6233 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6234 cat >>confdefs.h <<_ACEOF
6235 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6236 _ACEOF
6240 done
6244 for ac_header in dlfcn.h
6246 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6247 echo "$as_me:$LINENO: checking for $ac_header" >&5
6248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6250 echo $ECHO_N "(cached) $ECHO_C" >&6
6251 else
6252 cat >conftest.$ac_ext <<_ACEOF
6253 /* confdefs.h. */
6254 _ACEOF
6255 cat confdefs.h >>conftest.$ac_ext
6256 cat >>conftest.$ac_ext <<_ACEOF
6257 /* end confdefs.h. */
6258 $ac_includes_default
6260 #include <$ac_header>
6261 _ACEOF
6262 rm -f conftest.$ac_objext
6263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6264 (eval $ac_compile) 2>conftest.er1
6265 ac_status=$?
6266 grep -v '^ *+' conftest.er1 >conftest.err
6267 rm -f conftest.er1
6268 cat conftest.err >&5
6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); } &&
6271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6273 (eval $ac_try) 2>&5
6274 ac_status=$?
6275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276 (exit $ac_status); }; } &&
6277 { ac_try='test -s conftest.$ac_objext'
6278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6279 (eval $ac_try) 2>&5
6280 ac_status=$?
6281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282 (exit $ac_status); }; }; then
6283 eval "$as_ac_Header=yes"
6284 else
6285 echo "$as_me: failed program was:" >&5
6286 sed 's/^/| /' conftest.$ac_ext >&5
6288 eval "$as_ac_Header=no"
6290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6293 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6294 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6295 cat >>confdefs.h <<_ACEOF
6296 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6297 _ACEOF
6301 done
6305 # This can be used to rebuild libtool when needed
6306 LIBTOOL_DEPS="$ltmain"
6308 # Always use our own libtool.
6309 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6335 test -z "$LN_S" && LN_S="ln -s"
6350 if test -n "${ZSH_VERSION+set}" ; then
6351 setopt NO_GLOB_SUBST
6354 echo "$as_me:$LINENO: checking for objdir" >&5
6355 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6356 if test "${lt_cv_objdir+set}" = set; then
6357 echo $ECHO_N "(cached) $ECHO_C" >&6
6358 else
6359 rm -f .libs 2>/dev/null
6360 mkdir .libs 2>/dev/null
6361 if test -d .libs; then
6362 lt_cv_objdir=.libs
6363 else
6364 # MS-DOS does not allow filenames that begin with a dot.
6365 lt_cv_objdir=_libs
6367 rmdir .libs 2>/dev/null
6369 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6370 echo "${ECHO_T}$lt_cv_objdir" >&6
6371 objdir=$lt_cv_objdir
6377 cat >>confdefs.h <<_ACEOF
6378 #define LT_OBJDIR "$lt_cv_objdir/"
6379 _ACEOF
6397 case $host_os in
6398 aix3*)
6399 # AIX sometimes has problems with the GCC collect2 program. For some
6400 # reason, if we set the COLLECT_NAMES environment variable, the problems
6401 # vanish in a puff of smoke.
6402 if test "X${COLLECT_NAMES+set}" != Xset; then
6403 COLLECT_NAMES=
6404 export COLLECT_NAMES
6407 esac
6409 # Sed substitution that helps us do robust quoting. It backslashifies
6410 # metacharacters that are still active within double-quoted strings.
6411 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6413 # Same as above, but do not quote variable references.
6414 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6416 # Sed substitution to delay expansion of an escaped shell variable in a
6417 # double_quote_subst'ed string.
6418 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6420 # Sed substitution to delay expansion of an escaped single quote.
6421 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6423 # Sed substitution to avoid accidental globbing in evaled expressions
6424 no_glob_subst='s/\*/\\\*/g'
6426 # Global variables:
6427 ofile=libtool
6428 can_build_shared=yes
6430 # All known linkers require a `.a' archive for static linking (except MSVC,
6431 # which needs '.lib').
6432 libext=a
6434 with_gnu_ld="$lt_cv_prog_gnu_ld"
6436 old_CC="$CC"
6437 old_CFLAGS="$CFLAGS"
6439 # Set sane defaults for various variables
6440 test -z "$CC" && CC=cc
6441 test -z "$LTCC" && LTCC=$CC
6442 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6443 test -z "$LD" && LD=ld
6444 test -z "$ac_objext" && ac_objext=o
6446 for cc_temp in $compiler""; do
6447 case $cc_temp in
6448 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6449 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6450 \-*) ;;
6451 *) break;;
6452 esac
6453 done
6454 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6457 # Only perform the check for file, if the check method requires it
6458 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6459 case $deplibs_check_method in
6460 file_magic*)
6461 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6462 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6463 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6464 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6465 echo $ECHO_N "(cached) $ECHO_C" >&6
6466 else
6467 case $MAGIC_CMD in
6468 [\\/*] | ?:[\\/]*)
6469 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6472 lt_save_MAGIC_CMD="$MAGIC_CMD"
6473 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6474 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6475 for ac_dir in $ac_dummy; do
6476 IFS="$lt_save_ifs"
6477 test -z "$ac_dir" && ac_dir=.
6478 if test -f $ac_dir/${ac_tool_prefix}file; then
6479 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6480 if test -n "$file_magic_test_file"; then
6481 case $deplibs_check_method in
6482 "file_magic "*)
6483 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6484 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6485 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6486 $EGREP "$file_magic_regex" > /dev/null; then
6488 else
6489 cat <<_LT_EOF 1>&2
6491 *** Warning: the command libtool uses to detect shared libraries,
6492 *** $file_magic_cmd, produces output that libtool cannot recognize.
6493 *** The result is that libtool may fail to recognize shared libraries
6494 *** as such. This will affect the creation of libtool libraries that
6495 *** depend on shared libraries, but programs linked with such libtool
6496 *** libraries will work regardless of this problem. Nevertheless, you
6497 *** may want to report the problem to your system manager and/or to
6498 *** bug-libtool@gnu.org
6500 _LT_EOF
6501 fi ;;
6502 esac
6504 break
6506 done
6507 IFS="$lt_save_ifs"
6508 MAGIC_CMD="$lt_save_MAGIC_CMD"
6510 esac
6513 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6514 if test -n "$MAGIC_CMD"; then
6515 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6516 echo "${ECHO_T}$MAGIC_CMD" >&6
6517 else
6518 echo "$as_me:$LINENO: result: no" >&5
6519 echo "${ECHO_T}no" >&6
6526 if test -z "$lt_cv_path_MAGIC_CMD"; then
6527 if test -n "$ac_tool_prefix"; then
6528 echo "$as_me:$LINENO: checking for file" >&5
6529 echo $ECHO_N "checking for file... $ECHO_C" >&6
6530 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6531 echo $ECHO_N "(cached) $ECHO_C" >&6
6532 else
6533 case $MAGIC_CMD in
6534 [\\/*] | ?:[\\/]*)
6535 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6538 lt_save_MAGIC_CMD="$MAGIC_CMD"
6539 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6540 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6541 for ac_dir in $ac_dummy; do
6542 IFS="$lt_save_ifs"
6543 test -z "$ac_dir" && ac_dir=.
6544 if test -f $ac_dir/file; then
6545 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6546 if test -n "$file_magic_test_file"; then
6547 case $deplibs_check_method in
6548 "file_magic "*)
6549 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6550 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6551 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6552 $EGREP "$file_magic_regex" > /dev/null; then
6554 else
6555 cat <<_LT_EOF 1>&2
6557 *** Warning: the command libtool uses to detect shared libraries,
6558 *** $file_magic_cmd, produces output that libtool cannot recognize.
6559 *** The result is that libtool may fail to recognize shared libraries
6560 *** as such. This will affect the creation of libtool libraries that
6561 *** depend on shared libraries, but programs linked with such libtool
6562 *** libraries will work regardless of this problem. Nevertheless, you
6563 *** may want to report the problem to your system manager and/or to
6564 *** bug-libtool@gnu.org
6566 _LT_EOF
6567 fi ;;
6568 esac
6570 break
6572 done
6573 IFS="$lt_save_ifs"
6574 MAGIC_CMD="$lt_save_MAGIC_CMD"
6576 esac
6579 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6580 if test -n "$MAGIC_CMD"; then
6581 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6582 echo "${ECHO_T}$MAGIC_CMD" >&6
6583 else
6584 echo "$as_me:$LINENO: result: no" >&5
6585 echo "${ECHO_T}no" >&6
6589 else
6590 MAGIC_CMD=:
6596 esac
6598 # Use C for the default configuration in the libtool script
6600 lt_save_CC="$CC"
6601 ac_ext=c
6602 ac_cpp='$CPP $CPPFLAGS'
6603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6608 # Source file extension for C test sources.
6609 ac_ext=c
6611 # Object file extension for compiled C test sources.
6612 objext=o
6613 objext=$objext
6615 # Code to be used in simple compile tests
6616 lt_simple_compile_test_code="int some_variable = 0;"
6618 # Code to be used in simple link tests
6619 lt_simple_link_test_code='int main(){return(0);}'
6627 # If no C compiler was specified, use CC.
6628 LTCC=${LTCC-"$CC"}
6630 # If no C compiler flags were specified, use CFLAGS.
6631 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6633 # Allow CC to be a program name with arguments.
6634 compiler=$CC
6636 # Save the default compiler, since it gets overwritten when the other
6637 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6638 compiler_DEFAULT=$CC
6640 # save warnings/boilerplate of simple test code
6641 ac_outfile=conftest.$ac_objext
6642 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6643 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6644 _lt_compiler_boilerplate=`cat conftest.err`
6645 $RM conftest*
6647 ac_outfile=conftest.$ac_objext
6648 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6649 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6650 _lt_linker_boilerplate=`cat conftest.err`
6651 $RM conftest*
6654 ## CAVEAT EMPTOR:
6655 ## There is no encapsulation within the following macros, do not change
6656 ## the running order or otherwise move them around unless you know exactly
6657 ## what you are doing...
6658 if test -n "$compiler"; then
6660 lt_prog_compiler_no_builtin_flag=
6662 if test "$GCC" = yes; then
6663 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6665 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6666 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6667 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6668 echo $ECHO_N "(cached) $ECHO_C" >&6
6669 else
6670 lt_cv_prog_compiler_rtti_exceptions=no
6671 ac_outfile=conftest.$ac_objext
6672 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6673 lt_compiler_flag="-fno-rtti -fno-exceptions"
6674 # Insert the option either (1) after the last *FLAGS variable, or
6675 # (2) before a word containing "conftest.", or (3) at the end.
6676 # Note that $ac_compile itself does not contain backslashes and begins
6677 # with a dollar sign (not a hyphen), so the echo should work correctly.
6678 # The option is referenced via a variable to avoid confusing sed.
6679 lt_compile=`echo "$ac_compile" | $SED \
6680 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6681 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6682 -e 's:$: $lt_compiler_flag:'`
6683 (eval echo "\"\$as_me:6683: $lt_compile\"" >&5)
6684 (eval "$lt_compile" 2>conftest.err)
6685 ac_status=$?
6686 cat conftest.err >&5
6687 echo "$as_me:6687: \$? = $ac_status" >&5
6688 if (exit $ac_status) && test -s "$ac_outfile"; then
6689 # The compiler can only warn and ignore the option if not recognized
6690 # So say no if there are warnings other than the usual output.
6691 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6692 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6693 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6694 lt_cv_prog_compiler_rtti_exceptions=yes
6697 $RM conftest*
6700 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6701 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6703 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6704 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6705 else
6716 lt_prog_compiler_wl=
6717 lt_prog_compiler_pic=
6718 lt_prog_compiler_static=
6720 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6721 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6723 if test "$GCC" = yes; then
6724 lt_prog_compiler_wl='-Wl,'
6725 lt_prog_compiler_static='-static'
6727 case $host_os in
6728 aix*)
6729 # All AIX code is PIC.
6730 if test "$host_cpu" = ia64; then
6731 # AIX 5 now supports IA64 processor
6732 lt_prog_compiler_static='-Bstatic'
6736 amigaos*)
6737 if test "$host_cpu" = m68k; then
6738 # FIXME: we need at least 68020 code to build shared libraries, but
6739 # adding the `-m68020' flag to GCC prevents building anything better,
6740 # like `-m68040'.
6741 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6745 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6746 # PIC is the default for these OSes.
6749 mingw* | cygwin* | pw32* | os2*)
6750 # This hack is so that the source file can tell whether it is being
6751 # built for inclusion in a dll (and should export symbols for example).
6752 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6753 # (--disable-auto-import) libraries
6754 lt_prog_compiler_pic='-DDLL_EXPORT'
6757 darwin* | rhapsody*)
6758 # PIC is the default on this platform
6759 # Common symbols not allowed in MH_DYLIB files
6760 lt_prog_compiler_pic='-fno-common'
6763 hpux*)
6764 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6765 # not for PA HP-UX.
6766 case $host_cpu in
6767 hppa*64*|ia64*)
6768 # +Z the default
6771 lt_prog_compiler_pic='-fPIC'
6773 esac
6776 interix[3-9]*)
6777 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6778 # Instead, we relocate shared libraries at runtime.
6781 msdosdjgpp*)
6782 # Just because we use GCC doesn't mean we suddenly get shared libraries
6783 # on systems that don't support them.
6784 lt_prog_compiler_can_build_shared=no
6785 enable_shared=no
6788 *nto* | *qnx*)
6789 # QNX uses GNU C++, but need to define -shared option too, otherwise
6790 # it will coredump.
6791 lt_prog_compiler_pic='-fPIC -shared'
6794 sysv4*MP*)
6795 if test -d /usr/nec; then
6796 lt_prog_compiler_pic=-Kconform_pic
6801 lt_prog_compiler_pic='-fPIC'
6803 esac
6804 else
6805 # PORTME Check for flag to pass linker flags through the system compiler.
6806 case $host_os in
6807 aix*)
6808 lt_prog_compiler_wl='-Wl,'
6809 if test "$host_cpu" = ia64; then
6810 # AIX 5 now supports IA64 processor
6811 lt_prog_compiler_static='-Bstatic'
6812 else
6813 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6816 darwin*)
6817 # PIC is the default on this platform
6818 # Common symbols not allowed in MH_DYLIB files
6819 case $cc_basename in
6820 xlc*)
6821 lt_prog_compiler_pic='-qnocommon'
6822 lt_prog_compiler_wl='-Wl,'
6824 esac
6827 mingw* | cygwin* | pw32* | os2*)
6828 # This hack is so that the source file can tell whether it is being
6829 # built for inclusion in a dll (and should export symbols for example).
6830 lt_prog_compiler_pic='-DDLL_EXPORT'
6833 hpux9* | hpux10* | hpux11*)
6834 lt_prog_compiler_wl='-Wl,'
6835 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6836 # not for PA HP-UX.
6837 case $host_cpu in
6838 hppa*64*|ia64*)
6839 # +Z the default
6842 lt_prog_compiler_pic='+Z'
6844 esac
6845 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6846 lt_prog_compiler_static='${wl}-a ${wl}archive'
6849 irix5* | irix6* | nonstopux*)
6850 lt_prog_compiler_wl='-Wl,'
6851 # PIC (with -KPIC) is the default.
6852 lt_prog_compiler_static='-non_shared'
6855 linux* | k*bsd*-gnu)
6856 case $cc_basename in
6857 icc* | ecc*)
6858 lt_prog_compiler_wl='-Wl,'
6859 lt_prog_compiler_pic='-KPIC'
6860 lt_prog_compiler_static='-static'
6862 pgcc* | pgf77* | pgf90* | pgf95*)
6863 # Portland Group compilers (*not* the Pentium gcc compiler,
6864 # which looks to be a dead project)
6865 lt_prog_compiler_wl='-Wl,'
6866 lt_prog_compiler_pic='-fpic'
6867 lt_prog_compiler_static='-Bstatic'
6869 ccc*)
6870 lt_prog_compiler_wl='-Wl,'
6871 # All Alpha code is PIC.
6872 lt_prog_compiler_static='-non_shared'
6875 case `$CC -V 2>&1 | sed 5q` in
6876 *Sun\ C*)
6877 # Sun C 5.9
6878 lt_prog_compiler_pic='-KPIC'
6879 lt_prog_compiler_static='-Bstatic'
6880 lt_prog_compiler_wl='-Wl,'
6882 *Sun\ F*)
6883 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6884 lt_prog_compiler_pic='-KPIC'
6885 lt_prog_compiler_static='-Bstatic'
6886 lt_prog_compiler_wl=''
6888 esac
6890 esac
6893 newsos6)
6894 lt_prog_compiler_pic='-KPIC'
6895 lt_prog_compiler_static='-Bstatic'
6898 *nto* | *qnx*)
6899 # QNX uses GNU C++, but need to define -shared option too, otherwise
6900 # it will coredump.
6901 lt_prog_compiler_pic='-fPIC -shared'
6904 osf3* | osf4* | osf5*)
6905 lt_prog_compiler_wl='-Wl,'
6906 # All OSF/1 code is PIC.
6907 lt_prog_compiler_static='-non_shared'
6910 rdos*)
6911 lt_prog_compiler_static='-non_shared'
6914 solaris*)
6915 lt_prog_compiler_pic='-KPIC'
6916 lt_prog_compiler_static='-Bstatic'
6917 case $cc_basename in
6918 f77* | f90* | f95*)
6919 lt_prog_compiler_wl='-Qoption ld ';;
6921 lt_prog_compiler_wl='-Wl,';;
6922 esac
6925 sunos4*)
6926 lt_prog_compiler_wl='-Qoption ld '
6927 lt_prog_compiler_pic='-PIC'
6928 lt_prog_compiler_static='-Bstatic'
6931 sysv4 | sysv4.2uw2* | sysv4.3*)
6932 lt_prog_compiler_wl='-Wl,'
6933 lt_prog_compiler_pic='-KPIC'
6934 lt_prog_compiler_static='-Bstatic'
6937 sysv4*MP*)
6938 if test -d /usr/nec ;then
6939 lt_prog_compiler_pic='-Kconform_pic'
6940 lt_prog_compiler_static='-Bstatic'
6944 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6945 lt_prog_compiler_wl='-Wl,'
6946 lt_prog_compiler_pic='-KPIC'
6947 lt_prog_compiler_static='-Bstatic'
6950 unicos*)
6951 lt_prog_compiler_wl='-Wl,'
6952 lt_prog_compiler_can_build_shared=no
6955 uts4*)
6956 lt_prog_compiler_pic='-pic'
6957 lt_prog_compiler_static='-Bstatic'
6961 lt_prog_compiler_can_build_shared=no
6963 esac
6966 case $host_os in
6967 # For platforms which do not support PIC, -DPIC is meaningless:
6968 *djgpp*)
6969 lt_prog_compiler_pic=
6972 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6974 esac
6975 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6976 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6984 # Check to make sure the PIC flag actually works.
6986 if test -n "$lt_prog_compiler_pic"; then
6987 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6988 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6989 if test "${lt_prog_compiler_pic_works+set}" = set; then
6990 echo $ECHO_N "(cached) $ECHO_C" >&6
6991 else
6992 lt_prog_compiler_pic_works=no
6993 ac_outfile=conftest.$ac_objext
6994 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6995 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6996 # Insert the option either (1) after the last *FLAGS variable, or
6997 # (2) before a word containing "conftest.", or (3) at the end.
6998 # Note that $ac_compile itself does not contain backslashes and begins
6999 # with a dollar sign (not a hyphen), so the echo should work correctly.
7000 # The option is referenced via a variable to avoid confusing sed.
7001 lt_compile=`echo "$ac_compile" | $SED \
7002 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7003 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7004 -e 's:$: $lt_compiler_flag:'`
7005 (eval echo "\"\$as_me:7005: $lt_compile\"" >&5)
7006 (eval "$lt_compile" 2>conftest.err)
7007 ac_status=$?
7008 cat conftest.err >&5
7009 echo "$as_me:7009: \$? = $ac_status" >&5
7010 if (exit $ac_status) && test -s "$ac_outfile"; then
7011 # The compiler can only warn and ignore the option if not recognized
7012 # So say no if there are warnings other than the usual output.
7013 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7014 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7015 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7016 lt_prog_compiler_pic_works=yes
7019 $RM conftest*
7022 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7023 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7025 if test x"$lt_prog_compiler_pic_works" = xyes; then
7026 case $lt_prog_compiler_pic in
7027 "" | " "*) ;;
7028 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7029 esac
7030 else
7031 lt_prog_compiler_pic=
7032 lt_prog_compiler_can_build_shared=no
7043 # Check to make sure the static flag actually works.
7045 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7046 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7047 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7048 if test "${lt_prog_compiler_static_works+set}" = set; then
7049 echo $ECHO_N "(cached) $ECHO_C" >&6
7050 else
7051 lt_prog_compiler_static_works=no
7052 save_LDFLAGS="$LDFLAGS"
7053 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7054 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7055 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7056 # The linker can only warn and ignore the option if not recognized
7057 # So say no if there are warnings
7058 if test -s conftest.err; then
7059 # Append any errors to the config.log.
7060 cat conftest.err 1>&5
7061 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7062 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7063 if diff conftest.exp conftest.er2 >/dev/null; then
7064 lt_prog_compiler_static_works=yes
7066 else
7067 lt_prog_compiler_static_works=yes
7070 $RM conftest*
7071 LDFLAGS="$save_LDFLAGS"
7074 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7075 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7077 if test x"$lt_prog_compiler_static_works" = xyes; then
7079 else
7080 lt_prog_compiler_static=
7089 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7090 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7091 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7092 echo $ECHO_N "(cached) $ECHO_C" >&6
7093 else
7094 lt_cv_prog_compiler_c_o=no
7095 $RM -r conftest 2>/dev/null
7096 mkdir conftest
7097 cd conftest
7098 mkdir out
7099 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7101 lt_compiler_flag="-o out/conftest2.$ac_objext"
7102 # Insert the option either (1) after the last *FLAGS variable, or
7103 # (2) before a word containing "conftest.", or (3) at the end.
7104 # Note that $ac_compile itself does not contain backslashes and begins
7105 # with a dollar sign (not a hyphen), so the echo should work correctly.
7106 lt_compile=`echo "$ac_compile" | $SED \
7107 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7108 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7109 -e 's:$: $lt_compiler_flag:'`
7110 (eval echo "\"\$as_me:7110: $lt_compile\"" >&5)
7111 (eval "$lt_compile" 2>out/conftest.err)
7112 ac_status=$?
7113 cat out/conftest.err >&5
7114 echo "$as_me:7114: \$? = $ac_status" >&5
7115 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7116 then
7117 # The compiler can only warn and ignore the option if not recognized
7118 # So say no if there are warnings
7119 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7120 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7121 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7122 lt_cv_prog_compiler_c_o=yes
7125 chmod u+w . 2>&5
7126 $RM conftest*
7127 # SGI C++ compiler will create directory out/ii_files/ for
7128 # template instantiation
7129 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7130 $RM out/* && rmdir out
7131 cd ..
7132 $RM -r conftest
7133 $RM conftest*
7136 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7137 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7144 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7145 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7146 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7147 echo $ECHO_N "(cached) $ECHO_C" >&6
7148 else
7149 lt_cv_prog_compiler_c_o=no
7150 $RM -r conftest 2>/dev/null
7151 mkdir conftest
7152 cd conftest
7153 mkdir out
7154 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7156 lt_compiler_flag="-o out/conftest2.$ac_objext"
7157 # Insert the option either (1) after the last *FLAGS variable, or
7158 # (2) before a word containing "conftest.", or (3) at the end.
7159 # Note that $ac_compile itself does not contain backslashes and begins
7160 # with a dollar sign (not a hyphen), so the echo should work correctly.
7161 lt_compile=`echo "$ac_compile" | $SED \
7162 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7163 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7164 -e 's:$: $lt_compiler_flag:'`
7165 (eval echo "\"\$as_me:7165: $lt_compile\"" >&5)
7166 (eval "$lt_compile" 2>out/conftest.err)
7167 ac_status=$?
7168 cat out/conftest.err >&5
7169 echo "$as_me:7169: \$? = $ac_status" >&5
7170 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7171 then
7172 # The compiler can only warn and ignore the option if not recognized
7173 # So say no if there are warnings
7174 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7175 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7176 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7177 lt_cv_prog_compiler_c_o=yes
7180 chmod u+w . 2>&5
7181 $RM conftest*
7182 # SGI C++ compiler will create directory out/ii_files/ for
7183 # template instantiation
7184 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7185 $RM out/* && rmdir out
7186 cd ..
7187 $RM -r conftest
7188 $RM conftest*
7191 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7192 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7197 hard_links="nottested"
7198 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7199 # do not overwrite the value of need_locks provided by the user
7200 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7201 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7202 hard_links=yes
7203 $RM conftest*
7204 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7205 touch conftest.a
7206 ln conftest.a conftest.b 2>&5 || hard_links=no
7207 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7208 echo "$as_me:$LINENO: result: $hard_links" >&5
7209 echo "${ECHO_T}$hard_links" >&6
7210 if test "$hard_links" = no; then
7211 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7212 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7213 need_locks=warn
7215 else
7216 need_locks=no
7224 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7225 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7227 runpath_var=
7228 allow_undefined_flag=
7229 always_export_symbols=no
7230 archive_cmds=
7231 archive_expsym_cmds=
7232 compiler_needs_object=no
7233 enable_shared_with_static_runtimes=no
7234 export_dynamic_flag_spec=
7235 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7236 hardcode_automatic=no
7237 hardcode_direct=no
7238 hardcode_direct_absolute=no
7239 hardcode_libdir_flag_spec=
7240 hardcode_libdir_flag_spec_ld=
7241 hardcode_libdir_separator=
7242 hardcode_minus_L=no
7243 hardcode_shlibpath_var=unsupported
7244 inherit_rpath=no
7245 link_all_deplibs=unknown
7246 module_cmds=
7247 module_expsym_cmds=
7248 old_archive_from_new_cmds=
7249 old_archive_from_expsyms_cmds=
7250 thread_safe_flag_spec=
7251 whole_archive_flag_spec=
7252 # include_expsyms should be a list of space-separated symbols to be *always*
7253 # included in the symbol list
7254 include_expsyms=
7255 # exclude_expsyms can be an extended regexp of symbols to exclude
7256 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7257 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7258 # as well as any symbol that contains `d'.
7259 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7260 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7261 # platforms (ab)use it in PIC code, but their linkers get confused if
7262 # the symbol is explicitly referenced. Since portable code cannot
7263 # rely on this symbol name, it's probably fine to never include it in
7264 # preloaded symbol tables.
7265 extract_expsyms_cmds=
7267 case $host_os in
7268 cygwin* | mingw* | pw32*)
7269 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7270 # When not using gcc, we currently assume that we are using
7271 # Microsoft Visual C++.
7272 if test "$GCC" != yes; then
7273 with_gnu_ld=no
7276 interix*)
7277 # we just hope/assume this is gcc and not c89 (= MSVC++)
7278 with_gnu_ld=yes
7280 openbsd*)
7281 with_gnu_ld=no
7283 esac
7285 ld_shlibs=yes
7286 if test "$with_gnu_ld" = yes; then
7287 # If archive_cmds runs LD, not CC, wlarc should be empty
7288 wlarc='${wl}'
7290 # Set some defaults for GNU ld with shared library support. These
7291 # are reset later if shared libraries are not supported. Putting them
7292 # here allows them to be overridden if necessary.
7293 runpath_var=LD_RUN_PATH
7294 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7295 export_dynamic_flag_spec='${wl}--export-dynamic'
7296 # ancient GNU ld didn't support --whole-archive et. al.
7297 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7298 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7299 else
7300 whole_archive_flag_spec=
7302 supports_anon_versioning=no
7303 case `$LD -v 2>&1` in
7304 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7305 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7306 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7307 *\ 2.11.*) ;; # other 2.11 versions
7308 *) supports_anon_versioning=yes ;;
7309 esac
7311 # See if GNU ld supports shared libraries.
7312 case $host_os in
7313 aix[3-9]*)
7314 # On AIX/PPC, the GNU linker is very broken
7315 if test "$host_cpu" != ia64; then
7316 ld_shlibs=no
7317 cat <<_LT_EOF 1>&2
7319 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7320 *** to be unable to reliably create shared libraries on AIX.
7321 *** Therefore, libtool is disabling shared libraries support. If you
7322 *** really care for shared libraries, you may want to modify your PATH
7323 *** so that a non-GNU linker is found, and then restart.
7325 _LT_EOF
7329 amigaos*)
7330 if test "$host_cpu" = m68k; then
7331 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)'
7332 hardcode_libdir_flag_spec='-L$libdir'
7333 hardcode_minus_L=yes
7336 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7337 # that the semantics of dynamic libraries on AmigaOS, at least up
7338 # to version 4, is to share data among multiple programs linked
7339 # with the same dynamic library. Since this doesn't match the
7340 # behavior of shared libraries on other platforms, we can't use
7341 # them.
7342 ld_shlibs=no
7345 beos*)
7346 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7347 allow_undefined_flag=unsupported
7348 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7349 # support --undefined. This deserves some investigation. FIXME
7350 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7351 else
7352 ld_shlibs=no
7356 cygwin* | mingw* | pw32*)
7357 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7358 # as there is no search path for DLLs.
7359 hardcode_libdir_flag_spec='-L$libdir'
7360 allow_undefined_flag=unsupported
7361 always_export_symbols=no
7362 enable_shared_with_static_runtimes=yes
7363 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7365 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7366 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7367 # If the export-symbols file already is a .def file (1st line
7368 # is EXPORTS), use it as is; otherwise, prepend...
7369 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7370 cp $export_symbols $output_objdir/$soname.def;
7371 else
7372 echo EXPORTS > $output_objdir/$soname.def;
7373 cat $export_symbols >> $output_objdir/$soname.def;
7375 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7376 else
7377 ld_shlibs=no
7381 interix[3-9]*)
7382 hardcode_direct=no
7383 hardcode_shlibpath_var=no
7384 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7385 export_dynamic_flag_spec='${wl}-E'
7386 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7387 # Instead, shared libraries are loaded at an image base (0x10000000 by
7388 # default) and relocated if they conflict, which is a slow very memory
7389 # consuming and fragmenting process. To avoid this, we pick a random,
7390 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7391 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7392 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7393 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'
7396 gnu* | linux* | tpf* | k*bsd*-gnu)
7397 tmp_diet=no
7398 if test "$host_os" = linux-dietlibc; then
7399 case $cc_basename in
7400 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7401 esac
7403 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7404 && test "$tmp_diet" = no
7405 then
7406 tmp_addflag=
7407 case $cc_basename,$host_cpu in
7408 pgcc*) # Portland Group C compiler
7409 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'
7410 tmp_addflag=' $pic_flag'
7412 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7413 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'
7414 tmp_addflag=' $pic_flag -Mnomain' ;;
7415 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7416 tmp_addflag=' -i_dynamic' ;;
7417 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7418 tmp_addflag=' -i_dynamic -nofor_main' ;;
7419 ifc* | ifort*) # Intel Fortran compiler
7420 tmp_addflag=' -nofor_main' ;;
7421 esac
7422 case `$CC -V 2>&1 | sed 5q` in
7423 *Sun\ C*) # Sun C 5.9
7424 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'
7425 compiler_needs_object=yes
7426 tmp_sharedflag='-G' ;;
7427 *Sun\ F*) # Sun Fortran 8.3
7428 tmp_sharedflag='-G' ;;
7430 tmp_sharedflag='-shared' ;;
7431 esac
7432 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7434 if test "x$supports_anon_versioning" = xyes; then
7435 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7436 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7437 echo "local: *; };" >> $output_objdir/$libname.ver~
7438 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7440 else
7441 ld_shlibs=no
7445 netbsd*)
7446 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7447 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7448 wlarc=
7449 else
7450 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7451 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7455 solaris*)
7456 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7457 ld_shlibs=no
7458 cat <<_LT_EOF 1>&2
7460 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7461 *** create shared libraries on Solaris systems. Therefore, libtool
7462 *** is disabling shared libraries support. We urge you to upgrade GNU
7463 *** binutils to release 2.9.1 or newer. Another option is to modify
7464 *** your PATH or compiler configuration so that the native linker is
7465 *** used, and then restart.
7467 _LT_EOF
7468 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7469 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7470 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7471 else
7472 ld_shlibs=no
7476 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7477 case `$LD -v 2>&1` in
7478 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7479 ld_shlibs=no
7480 cat <<_LT_EOF 1>&2
7482 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7483 *** reliably create shared libraries on SCO systems. Therefore, libtool
7484 *** is disabling shared libraries support. We urge you to upgrade GNU
7485 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7486 *** your PATH or compiler configuration so that the native linker is
7487 *** used, and then restart.
7489 _LT_EOF
7492 # For security reasons, it is highly recommended that you always
7493 # use absolute paths for naming shared libraries, and exclude the
7494 # DT_RUNPATH tag from executables and libraries. But doing so
7495 # requires that you compile everything twice, which is a pain.
7496 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7497 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7498 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7499 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7500 else
7501 ld_shlibs=no
7504 esac
7507 sunos4*)
7508 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7509 wlarc=
7510 hardcode_direct=yes
7511 hardcode_shlibpath_var=no
7515 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7516 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7517 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7518 else
7519 ld_shlibs=no
7522 esac
7524 if test "$ld_shlibs" = no; then
7525 runpath_var=
7526 hardcode_libdir_flag_spec=
7527 export_dynamic_flag_spec=
7528 whole_archive_flag_spec=
7530 else
7531 # PORTME fill in a description of your system's linker (not GNU ld)
7532 case $host_os in
7533 aix3*)
7534 allow_undefined_flag=unsupported
7535 always_export_symbols=yes
7536 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'
7537 # Note: this linker hardcodes the directories in LIBPATH if there
7538 # are no directories specified by -L.
7539 hardcode_minus_L=yes
7540 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7541 # Neither direct hardcoding nor static linking is supported with a
7542 # broken collect2.
7543 hardcode_direct=unsupported
7547 aix[4-9]*)
7548 if test "$host_cpu" = ia64; then
7549 # On IA64, the linker does run time linking by default, so we don't
7550 # have to do anything special.
7551 aix_use_runtimelinking=no
7552 exp_sym_flag='-Bexport'
7553 no_entry_flag=""
7554 else
7555 # If we're using GNU nm, then we don't want the "-C" option.
7556 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7557 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7558 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'
7559 else
7560 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'
7562 aix_use_runtimelinking=no
7564 # Test if we are trying to use run time linking or normal
7565 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7566 # need to do runtime linking.
7567 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7568 for ld_flag in $LDFLAGS; do
7569 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7570 aix_use_runtimelinking=yes
7571 break
7573 done
7575 esac
7577 exp_sym_flag='-bexport'
7578 no_entry_flag='-bnoentry'
7581 # When large executables or shared objects are built, AIX ld can
7582 # have problems creating the table of contents. If linking a library
7583 # or program results in "error TOC overflow" add -mminimal-toc to
7584 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7585 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7587 archive_cmds=''
7588 hardcode_direct=yes
7589 hardcode_direct_absolute=yes
7590 hardcode_libdir_separator=':'
7591 link_all_deplibs=yes
7592 file_list_spec='${wl}-f,'
7594 if test "$GCC" = yes; then
7595 case $host_os in aix4.[012]|aix4.[012].*)
7596 # We only want to do this on AIX 4.2 and lower, the check
7597 # below for broken collect2 doesn't work under 4.3+
7598 collect2name=`${CC} -print-prog-name=collect2`
7599 if test -f "$collect2name" &&
7600 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7601 then
7602 # We have reworked collect2
7604 else
7605 # We have old collect2
7606 hardcode_direct=unsupported
7607 # It fails to find uninstalled libraries when the uninstalled
7608 # path is not listed in the libpath. Setting hardcode_minus_L
7609 # to unsupported forces relinking
7610 hardcode_minus_L=yes
7611 hardcode_libdir_flag_spec='-L$libdir'
7612 hardcode_libdir_separator=
7615 esac
7616 shared_flag='-shared'
7617 if test "$aix_use_runtimelinking" = yes; then
7618 shared_flag="$shared_flag "'${wl}-G'
7620 else
7621 # not using gcc
7622 if test "$host_cpu" = ia64; then
7623 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7624 # chokes on -Wl,-G. The following line is correct:
7625 shared_flag='-G'
7626 else
7627 if test "$aix_use_runtimelinking" = yes; then
7628 shared_flag='${wl}-G'
7629 else
7630 shared_flag='${wl}-bM:SRE'
7635 # It seems that -bexpall does not export symbols beginning with
7636 # underscore (_), so it is better to generate a list of symbols to export.
7637 always_export_symbols=yes
7638 if test "$aix_use_runtimelinking" = yes; then
7639 # Warning - without using the other runtime loading flags (-brtl),
7640 # -berok will link without error, but may produce a broken library.
7641 allow_undefined_flag='-berok'
7642 # Determine the default libpath from the value encoded in an
7643 # empty executable.
7644 cat >conftest.$ac_ext <<_ACEOF
7645 /* confdefs.h. */
7646 _ACEOF
7647 cat confdefs.h >>conftest.$ac_ext
7648 cat >>conftest.$ac_ext <<_ACEOF
7649 /* end confdefs.h. */
7652 main ()
7656 return 0;
7658 _ACEOF
7659 rm -f conftest.$ac_objext conftest$ac_exeext
7660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7661 (eval $ac_link) 2>conftest.er1
7662 ac_status=$?
7663 grep -v '^ *+' conftest.er1 >conftest.err
7664 rm -f conftest.er1
7665 cat conftest.err >&5
7666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667 (exit $ac_status); } &&
7668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7670 (eval $ac_try) 2>&5
7671 ac_status=$?
7672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673 (exit $ac_status); }; } &&
7674 { ac_try='test -s conftest$ac_exeext'
7675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7676 (eval $ac_try) 2>&5
7677 ac_status=$?
7678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679 (exit $ac_status); }; }; then
7681 lt_aix_libpath_sed='
7682 /Import File Strings/,/^$/ {
7683 /^0/ {
7684 s/^0 *\(.*\)$/\1/
7688 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7689 # Check for a 64-bit object if we didn't find anything.
7690 if test -z "$aix_libpath"; then
7691 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7693 else
7694 echo "$as_me: failed program was:" >&5
7695 sed 's/^/| /' conftest.$ac_ext >&5
7698 rm -f conftest.err conftest.$ac_objext \
7699 conftest$ac_exeext conftest.$ac_ext
7700 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7702 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7703 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"
7704 else
7705 if test "$host_cpu" = ia64; then
7706 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7707 allow_undefined_flag="-z nodefs"
7708 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"
7709 else
7710 # Determine the default libpath from the value encoded in an
7711 # empty executable.
7712 cat >conftest.$ac_ext <<_ACEOF
7713 /* confdefs.h. */
7714 _ACEOF
7715 cat confdefs.h >>conftest.$ac_ext
7716 cat >>conftest.$ac_ext <<_ACEOF
7717 /* end confdefs.h. */
7720 main ()
7724 return 0;
7726 _ACEOF
7727 rm -f conftest.$ac_objext conftest$ac_exeext
7728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7729 (eval $ac_link) 2>conftest.er1
7730 ac_status=$?
7731 grep -v '^ *+' conftest.er1 >conftest.err
7732 rm -f conftest.er1
7733 cat conftest.err >&5
7734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735 (exit $ac_status); } &&
7736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7738 (eval $ac_try) 2>&5
7739 ac_status=$?
7740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741 (exit $ac_status); }; } &&
7742 { ac_try='test -s conftest$ac_exeext'
7743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7744 (eval $ac_try) 2>&5
7745 ac_status=$?
7746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747 (exit $ac_status); }; }; then
7749 lt_aix_libpath_sed='
7750 /Import File Strings/,/^$/ {
7751 /^0/ {
7752 s/^0 *\(.*\)$/\1/
7756 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7757 # Check for a 64-bit object if we didn't find anything.
7758 if test -z "$aix_libpath"; then
7759 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7761 else
7762 echo "$as_me: failed program was:" >&5
7763 sed 's/^/| /' conftest.$ac_ext >&5
7766 rm -f conftest.err conftest.$ac_objext \
7767 conftest$ac_exeext conftest.$ac_ext
7768 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7770 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7771 # Warning - without using the other run time loading flags,
7772 # -berok will link without error, but may produce a broken library.
7773 no_undefined_flag=' ${wl}-bernotok'
7774 allow_undefined_flag=' ${wl}-berok'
7775 # Exported symbols can be pulled into shared objects from archives
7776 whole_archive_flag_spec='$convenience'
7777 archive_cmds_need_lc=yes
7778 # This is similar to how AIX traditionally builds its shared libraries.
7779 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'
7784 amigaos*)
7785 if test "$host_cpu" = m68k; then
7786 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)'
7787 hardcode_libdir_flag_spec='-L$libdir'
7788 hardcode_minus_L=yes
7790 # see comment about different semantics on the GNU ld section
7791 ld_shlibs=no
7794 bsdi[45]*)
7795 export_dynamic_flag_spec=-rdynamic
7798 cygwin* | mingw* | pw32*)
7799 # When not using gcc, we currently assume that we are using
7800 # Microsoft Visual C++.
7801 # hardcode_libdir_flag_spec is actually meaningless, as there is
7802 # no search path for DLLs.
7803 hardcode_libdir_flag_spec=' '
7804 allow_undefined_flag=unsupported
7805 # Tell ltmain to make .lib files, not .a files.
7806 libext=lib
7807 # Tell ltmain to make .dll files, not .so files.
7808 shrext_cmds=".dll"
7809 # FIXME: Setting linknames here is a bad hack.
7810 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7811 # The linker will automatically build a .lib file if we build a DLL.
7812 old_archive_from_new_cmds='true'
7813 # FIXME: Should let the user specify the lib program.
7814 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7815 fix_srcfile_path='`cygpath -w "$srcfile"`'
7816 enable_shared_with_static_runtimes=yes
7819 darwin* | rhapsody*)
7820 case $host_os in
7821 rhapsody* | darwin1.[012])
7822 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7824 *) # Darwin 1.3 on
7825 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7826 10.[012])
7827 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7829 10.*)
7830 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7832 esac
7834 esac
7835 archive_cmds_need_lc=no
7836 hardcode_direct=no
7837 hardcode_automatic=yes
7838 hardcode_shlibpath_var=unsupported
7839 whole_archive_flag_spec=''
7840 link_all_deplibs=yes
7841 if test "$GCC" = yes ; then
7842 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7843 echo $ECHO_N "(cached) $ECHO_C" >&6
7844 else
7845 lt_cv_apple_cc_single_mod=no
7846 if test -z "${LT_MULTI_MODULE}"; then
7847 # By default we will add the -single_module flag. You can override
7848 # by either setting the environment variable LT_MULTI_MODULE
7849 # non-empty at configure time, or by adding -multi-module to the
7850 # link flags.
7851 echo "int foo(void){return 1;}" > conftest.c
7852 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7853 -dynamiclib ${wl}-single_module conftest.c
7854 if test -f libconftest.dylib; then
7855 lt_cv_apple_cc_single_mod=yes
7856 rm libconftest.dylib
7858 rm conftest.$ac_ext
7862 output_verbose_link_cmd=echo
7863 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7864 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7865 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7866 else
7867 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7868 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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7870 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7871 module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7872 else
7873 case $cc_basename in
7874 xlc*)
7875 output_verbose_link_cmd=echo
7876 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7877 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7878 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7879 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7880 module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7883 ld_shlibs=no
7885 esac
7889 dgux*)
7890 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7891 hardcode_libdir_flag_spec='-L$libdir'
7892 hardcode_shlibpath_var=no
7895 freebsd1*)
7896 ld_shlibs=no
7899 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7900 # support. Future versions do this automatically, but an explicit c++rt0.o
7901 # does not break anything, and helps significantly (at the cost of a little
7902 # extra space).
7903 freebsd2.2*)
7904 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7905 hardcode_libdir_flag_spec='-R$libdir'
7906 hardcode_direct=yes
7907 hardcode_shlibpath_var=no
7910 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7911 freebsd2*)
7912 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7913 hardcode_direct=yes
7914 hardcode_minus_L=yes
7915 hardcode_shlibpath_var=no
7918 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7919 freebsd* | dragonfly*)
7920 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7921 hardcode_libdir_flag_spec='-R$libdir'
7922 hardcode_direct=yes
7923 hardcode_shlibpath_var=no
7926 hpux9*)
7927 if test "$GCC" = yes; then
7928 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'
7929 else
7930 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'
7932 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7933 hardcode_libdir_separator=:
7934 hardcode_direct=yes
7936 # hardcode_minus_L: Not really in the search PATH,
7937 # but as the default location of the library.
7938 hardcode_minus_L=yes
7939 export_dynamic_flag_spec='${wl}-E'
7942 hpux10*)
7943 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7944 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7945 else
7946 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7948 if test "$with_gnu_ld" = no; then
7949 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7950 hardcode_libdir_flag_spec_ld='+b $libdir'
7951 hardcode_libdir_separator=:
7952 hardcode_direct=yes
7953 hardcode_direct_absolute=yes
7954 export_dynamic_flag_spec='${wl}-E'
7955 # hardcode_minus_L: Not really in the search PATH,
7956 # but as the default location of the library.
7957 hardcode_minus_L=yes
7961 hpux11*)
7962 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7963 case $host_cpu in
7964 hppa*64*)
7965 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7967 ia64*)
7968 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7971 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7973 esac
7974 else
7975 case $host_cpu in
7976 hppa*64*)
7977 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7979 ia64*)
7980 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7983 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7985 esac
7987 if test "$with_gnu_ld" = no; then
7988 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7989 hardcode_libdir_separator=:
7991 case $host_cpu in
7992 hppa*64*|ia64*)
7993 hardcode_direct=no
7994 hardcode_shlibpath_var=no
7997 hardcode_direct=yes
7998 hardcode_direct_absolute=yes
7999 export_dynamic_flag_spec='${wl}-E'
8001 # hardcode_minus_L: Not really in the search PATH,
8002 # but as the default location of the library.
8003 hardcode_minus_L=yes
8005 esac
8009 irix5* | irix6* | nonstopux*)
8010 if test "$GCC" = yes; then
8011 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'
8012 # Try to use the -exported_symbol ld option, if it does not
8013 # work, assume that -exports_file does not work either and
8014 # implicitly export all symbols.
8015 save_LDFLAGS="$LDFLAGS"
8016 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8017 cat >conftest.$ac_ext <<_ACEOF
8018 int foo(void) {}
8019 _ACEOF
8020 rm -f conftest.$ac_objext conftest$ac_exeext
8021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8022 (eval $ac_link) 2>conftest.er1
8023 ac_status=$?
8024 grep -v '^ *+' conftest.er1 >conftest.err
8025 rm -f conftest.er1
8026 cat conftest.err >&5
8027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028 (exit $ac_status); } &&
8029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8031 (eval $ac_try) 2>&5
8032 ac_status=$?
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); }; } &&
8035 { ac_try='test -s conftest$ac_exeext'
8036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8037 (eval $ac_try) 2>&5
8038 ac_status=$?
8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 (exit $ac_status); }; }; then
8041 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'
8043 else
8044 echo "$as_me: failed program was:" >&5
8045 sed 's/^/| /' conftest.$ac_ext >&5
8048 rm -f conftest.err conftest.$ac_objext \
8049 conftest$ac_exeext conftest.$ac_ext
8050 LDFLAGS="$save_LDFLAGS"
8051 else
8052 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'
8053 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'
8055 archive_cmds_need_lc='no'
8056 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8057 hardcode_libdir_separator=:
8058 inherit_rpath=yes
8059 link_all_deplibs=yes
8062 netbsd*)
8063 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8064 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8065 else
8066 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8068 hardcode_libdir_flag_spec='-R$libdir'
8069 hardcode_direct=yes
8070 hardcode_shlibpath_var=no
8073 newsos6)
8074 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8075 hardcode_direct=yes
8076 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8077 hardcode_libdir_separator=:
8078 hardcode_shlibpath_var=no
8081 *nto* | *qnx*)
8084 openbsd*)
8085 hardcode_direct=yes
8086 hardcode_shlibpath_var=no
8087 hardcode_direct_absolute=yes
8088 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8089 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8090 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8091 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8092 export_dynamic_flag_spec='${wl}-E'
8093 else
8094 case $host_os in
8095 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8096 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8097 hardcode_libdir_flag_spec='-R$libdir'
8100 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8101 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8103 esac
8107 os2*)
8108 hardcode_libdir_flag_spec='-L$libdir'
8109 hardcode_minus_L=yes
8110 allow_undefined_flag=unsupported
8111 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'
8112 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8115 osf3*)
8116 if test "$GCC" = yes; then
8117 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8118 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'
8119 else
8120 allow_undefined_flag=' -expect_unresolved \*'
8121 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'
8123 archive_cmds_need_lc='no'
8124 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8125 hardcode_libdir_separator=:
8128 osf4* | osf5*) # as osf3* with the addition of -msym flag
8129 if test "$GCC" = yes; then
8130 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8131 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'
8132 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8133 else
8134 allow_undefined_flag=' -expect_unresolved \*'
8135 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'
8136 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~
8137 $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'
8139 # Both c and cxx compiler support -rpath directly
8140 hardcode_libdir_flag_spec='-rpath $libdir'
8142 archive_cmds_need_lc='no'
8143 hardcode_libdir_separator=:
8146 solaris*)
8147 no_undefined_flag=' -z defs'
8148 if test "$GCC" = yes; then
8149 wlarc='${wl}'
8150 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8151 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8152 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8153 else
8154 case `$CC -V 2>&1` in
8155 *"Compilers 5.0"*)
8156 wlarc=''
8157 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8158 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8159 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8162 wlarc='${wl}'
8163 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8164 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8165 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8167 esac
8169 hardcode_libdir_flag_spec='-R$libdir'
8170 hardcode_shlibpath_var=no
8171 case $host_os in
8172 solaris2.[0-5] | solaris2.[0-5].*) ;;
8174 # The compiler driver will combine and reorder linker options,
8175 # but understands `-z linker_flag'. GCC discards it without `$wl',
8176 # but is careful enough not to reorder.
8177 # Supported since Solaris 2.6 (maybe 2.5.1?)
8178 if test "$GCC" = yes; then
8179 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8180 else
8181 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8184 esac
8185 link_all_deplibs=yes
8188 sunos4*)
8189 if test "x$host_vendor" = xsequent; then
8190 # Use $CC to link under sequent, because it throws in some extra .o
8191 # files that make .init and .fini sections work.
8192 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8193 else
8194 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8196 hardcode_libdir_flag_spec='-L$libdir'
8197 hardcode_direct=yes
8198 hardcode_minus_L=yes
8199 hardcode_shlibpath_var=no
8202 sysv4)
8203 case $host_vendor in
8204 sni)
8205 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8206 hardcode_direct=yes # is this really true???
8208 siemens)
8209 ## LD is ld it makes a PLAMLIB
8210 ## CC just makes a GrossModule.
8211 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8212 reload_cmds='$CC -r -o $output$reload_objs'
8213 hardcode_direct=no
8215 motorola)
8216 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8217 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8219 esac
8220 runpath_var='LD_RUN_PATH'
8221 hardcode_shlibpath_var=no
8224 sysv4.3*)
8225 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8226 hardcode_shlibpath_var=no
8227 export_dynamic_flag_spec='-Bexport'
8230 sysv4*MP*)
8231 if test -d /usr/nec; then
8232 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8233 hardcode_shlibpath_var=no
8234 runpath_var=LD_RUN_PATH
8235 hardcode_runpath_var=yes
8236 ld_shlibs=yes
8240 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8241 no_undefined_flag='${wl}-z,text'
8242 archive_cmds_need_lc=no
8243 hardcode_shlibpath_var=no
8244 runpath_var='LD_RUN_PATH'
8246 if test "$GCC" = yes; then
8247 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8248 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8249 else
8250 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8251 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8255 sysv5* | sco3.2v5* | sco5v6*)
8256 # Note: We can NOT use -z defs as we might desire, because we do not
8257 # link with -lc, and that would cause any symbols used from libc to
8258 # always be unresolved, which means just about no library would
8259 # ever link correctly. If we're not using GNU ld we use -z text
8260 # though, which does catch some bad symbols but isn't as heavy-handed
8261 # as -z defs.
8262 no_undefined_flag='${wl}-z,text'
8263 allow_undefined_flag='${wl}-z,nodefs'
8264 archive_cmds_need_lc=no
8265 hardcode_shlibpath_var=no
8266 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8267 hardcode_libdir_separator=':'
8268 link_all_deplibs=yes
8269 export_dynamic_flag_spec='${wl}-Bexport'
8270 runpath_var='LD_RUN_PATH'
8272 if test "$GCC" = yes; then
8273 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8274 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8275 else
8276 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8277 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8281 uts4*)
8282 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8283 hardcode_libdir_flag_spec='-L$libdir'
8284 hardcode_shlibpath_var=no
8288 ld_shlibs=no
8290 esac
8292 if test x$host_vendor = xsni; then
8293 case $host in
8294 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8295 export_dynamic_flag_spec='${wl}-Blargedynsym'
8297 esac
8301 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8302 echo "${ECHO_T}$ld_shlibs" >&6
8303 test "$ld_shlibs" = no && can_build_shared=no
8305 with_gnu_ld=$with_gnu_ld
8322 # Do we need to explicitly link libc?
8324 case "x$archive_cmds_need_lc" in
8325 x|xyes)
8326 # Assume -lc should be added
8327 archive_cmds_need_lc=yes
8329 if test "$enable_shared" = yes && test "$GCC" = yes; then
8330 case $archive_cmds in
8331 *'~'*)
8332 # FIXME: we may have to deal with multi-command sequences.
8334 '$CC '*)
8335 # Test whether the compiler implicitly links with -lc since on some
8336 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8337 # to ld, don't add -lc before -lgcc.
8338 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8339 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8340 $RM conftest*
8341 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8344 (eval $ac_compile) 2>&5
8345 ac_status=$?
8346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347 (exit $ac_status); } 2>conftest.err; then
8348 soname=conftest
8349 lib=conftest
8350 libobjs=conftest.$ac_objext
8351 deplibs=
8352 wl=$lt_prog_compiler_wl
8353 pic_flag=$lt_prog_compiler_pic
8354 compiler_flags=-v
8355 linker_flags=-v
8356 verstring=
8357 output_objdir=.
8358 libname=conftest
8359 lt_save_allow_undefined_flag=$allow_undefined_flag
8360 allow_undefined_flag=
8361 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8362 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8363 ac_status=$?
8364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365 (exit $ac_status); }
8366 then
8367 archive_cmds_need_lc=no
8368 else
8369 archive_cmds_need_lc=yes
8371 allow_undefined_flag=$lt_save_allow_undefined_flag
8372 else
8373 cat conftest.err 1>&5
8375 $RM conftest*
8376 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8377 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8379 esac
8382 esac
8540 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8541 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8542 withGCC=$GCC
8543 if test "$withGCC" = yes; then
8544 case $host_os in
8545 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8546 *) lt_awk_arg="/^libraries:/" ;;
8547 esac
8548 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8549 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8550 # if the path contains ";" then we assume it to be the separator
8551 # otherwise default to the standard path separator (i.e. ":") - it is
8552 # assumed that no part of a normal pathname contains ";" but that should
8553 # okay in the real world where ";" in dirpaths is itself problematic.
8554 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8555 else
8556 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8558 # Ok, now we have the path, separated by spaces, we can step through it
8559 # and add multilib dir if necessary.
8560 lt_tmp_lt_search_path_spec=
8561 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8562 for lt_sys_path in $lt_search_path_spec; do
8563 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8564 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8565 else
8566 test -d "$lt_sys_path" && \
8567 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8569 done
8570 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8571 BEGIN {RS=" "; FS="/|\n";} {
8572 lt_foo="";
8573 lt_count=0;
8574 for (lt_i = NF; lt_i > 0; lt_i--) {
8575 if ($lt_i != "" && $lt_i != ".") {
8576 if ($lt_i == "..") {
8577 lt_count++;
8578 } else {
8579 if (lt_count == 0) {
8580 lt_foo="/" $lt_i lt_foo;
8581 } else {
8582 lt_count--;
8587 if (lt_foo != "") { lt_freq[lt_foo]++; }
8588 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8590 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8591 else
8592 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8594 library_names_spec=
8595 libname_spec='lib$name'
8596 soname_spec=
8597 shrext_cmds=".so"
8598 postinstall_cmds=
8599 postuninstall_cmds=
8600 finish_cmds=
8601 finish_eval=
8602 shlibpath_var=
8603 shlibpath_overrides_runpath=unknown
8604 version_type=none
8605 dynamic_linker="$host_os ld.so"
8606 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8607 need_lib_prefix=unknown
8608 hardcode_into_libs=no
8610 # when you set need_version to no, make sure it does not cause -set_version
8611 # flags to be left without arguments
8612 need_version=unknown
8614 case $host_os in
8615 aix3*)
8616 version_type=linux
8617 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8618 shlibpath_var=LIBPATH
8620 # AIX 3 has no versioning support, so we append a major version to the name.
8621 soname_spec='${libname}${release}${shared_ext}$major'
8624 aix[4-9]*)
8625 version_type=linux
8626 need_lib_prefix=no
8627 need_version=no
8628 hardcode_into_libs=yes
8629 if test "$host_cpu" = ia64; then
8630 # AIX 5 supports IA64
8631 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8632 shlibpath_var=LD_LIBRARY_PATH
8633 else
8634 # With GCC up to 2.95.x, collect2 would create an import file
8635 # for dependence libraries. The import file would start with
8636 # the line `#! .'. This would cause the generated library to
8637 # depend on `.', always an invalid library. This was fixed in
8638 # development snapshots of GCC prior to 3.0.
8639 case $host_os in
8640 aix4 | aix4.[01] | aix4.[01].*)
8641 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8642 echo ' yes '
8643 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8645 else
8646 can_build_shared=no
8649 esac
8650 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8651 # soname into executable. Probably we can add versioning support to
8652 # collect2, so additional links can be useful in future.
8653 if test "$aix_use_runtimelinking" = yes; then
8654 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8655 # instead of lib<name>.a to let people know that these are not
8656 # typical AIX shared libraries.
8657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8658 else
8659 # We preserve .a as extension for shared libraries through AIX4.2
8660 # and later when we are not doing run time linking.
8661 library_names_spec='${libname}${release}.a $libname.a'
8662 soname_spec='${libname}${release}${shared_ext}$major'
8664 shlibpath_var=LIBPATH
8668 amigaos*)
8669 if test "$host_cpu" = m68k; then
8670 library_names_spec='$libname.ixlibrary $libname.a'
8671 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8672 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'
8673 else
8674 dynamic_linker=no
8678 beos*)
8679 library_names_spec='${libname}${shared_ext}'
8680 dynamic_linker="$host_os ld.so"
8681 shlibpath_var=LIBRARY_PATH
8684 bsdi[45]*)
8685 version_type=linux
8686 need_version=no
8687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8688 soname_spec='${libname}${release}${shared_ext}$major'
8689 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8690 shlibpath_var=LD_LIBRARY_PATH
8691 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8692 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8693 # the default ld.so.conf also contains /usr/contrib/lib and
8694 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8695 # libtool to hard-code these into programs
8698 cygwin* | mingw* | pw32*)
8699 version_type=windows
8700 shrext_cmds=".dll"
8701 need_version=no
8702 need_lib_prefix=no
8704 case $withGCC,$host_os in
8705 yes,cygwin* | yes,mingw* | yes,pw32*)
8706 library_names_spec='$libname.dll.a'
8707 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8708 postinstall_cmds='base_file=`basename \${file}`~
8709 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8710 dldir=$destdir/`dirname \$dlpath`~
8711 test -d \$dldir || mkdir -p \$dldir~
8712 $install_prog $dir/$dlname \$dldir/$dlname~
8713 chmod a+x \$dldir/$dlname~
8714 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8715 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8717 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8718 dlpath=$dir/\$dldll~
8719 $RM \$dlpath'
8720 shlibpath_overrides_runpath=yes
8722 case $host_os in
8723 cygwin*)
8724 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8725 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8726 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8728 mingw*)
8729 # MinGW DLLs use traditional 'lib' prefix
8730 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8731 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8732 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8733 # It is most probably a Windows format PATH printed by
8734 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8735 # path with ; separators, and with drive letters. We can handle the
8736 # drive letters (cygwin fileutils understands them), so leave them,
8737 # especially as we might pass files found there to a mingw objdump,
8738 # which wouldn't understand a cygwinified path. Ahh.
8739 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8740 else
8741 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8744 pw32*)
8745 # pw32 DLLs use 'pw' prefix rather than 'lib'
8746 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8748 esac
8752 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8754 esac
8755 dynamic_linker='Win32 ld.exe'
8756 # FIXME: first we should search . and the directory the executable is in
8757 shlibpath_var=PATH
8760 darwin* | rhapsody*)
8761 dynamic_linker="$host_os dyld"
8762 version_type=darwin
8763 need_lib_prefix=no
8764 need_version=no
8765 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8766 soname_spec='${libname}${release}${major}$shared_ext'
8767 shlibpath_overrides_runpath=yes
8768 shlibpath_var=DYLD_LIBRARY_PATH
8769 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8771 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8772 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8775 dgux*)
8776 version_type=linux
8777 need_lib_prefix=no
8778 need_version=no
8779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8780 soname_spec='${libname}${release}${shared_ext}$major'
8781 shlibpath_var=LD_LIBRARY_PATH
8784 freebsd1*)
8785 dynamic_linker=no
8788 freebsd* | dragonfly*)
8789 # DragonFly does not have aout. When/if they implement a new
8790 # versioning mechanism, adjust this.
8791 if test -x /usr/bin/objformat; then
8792 objformat=`/usr/bin/objformat`
8793 else
8794 case $host_os in
8795 freebsd[123]*) objformat=aout ;;
8796 *) objformat=elf ;;
8797 esac
8799 version_type=freebsd-$objformat
8800 case $version_type in
8801 freebsd-elf*)
8802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8803 need_version=no
8804 need_lib_prefix=no
8806 freebsd-*)
8807 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8808 need_version=yes
8810 esac
8811 shlibpath_var=LD_LIBRARY_PATH
8812 case $host_os in
8813 freebsd2*)
8814 shlibpath_overrides_runpath=yes
8816 freebsd3.[01]* | freebsdelf3.[01]*)
8817 shlibpath_overrides_runpath=yes
8818 hardcode_into_libs=yes
8820 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8821 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8822 shlibpath_overrides_runpath=no
8823 hardcode_into_libs=yes
8825 *) # from 4.6 on, and DragonFly
8826 shlibpath_overrides_runpath=yes
8827 hardcode_into_libs=yes
8829 esac
8832 gnu*)
8833 version_type=linux
8834 need_lib_prefix=no
8835 need_version=no
8836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8837 soname_spec='${libname}${release}${shared_ext}$major'
8838 shlibpath_var=LD_LIBRARY_PATH
8839 hardcode_into_libs=yes
8842 hpux9* | hpux10* | hpux11*)
8843 # Give a soname corresponding to the major version so that dld.sl refuses to
8844 # link against other versions.
8845 version_type=sunos
8846 need_lib_prefix=no
8847 need_version=no
8848 case $host_cpu in
8849 ia64*)
8850 shrext_cmds='.so'
8851 hardcode_into_libs=yes
8852 dynamic_linker="$host_os dld.so"
8853 shlibpath_var=LD_LIBRARY_PATH
8854 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8856 soname_spec='${libname}${release}${shared_ext}$major'
8857 if test "X$HPUX_IA64_MODE" = X32; then
8858 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8859 else
8860 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8862 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8864 hppa*64*)
8865 shrext_cmds='.sl'
8866 hardcode_into_libs=yes
8867 dynamic_linker="$host_os dld.sl"
8868 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8869 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8871 soname_spec='${libname}${release}${shared_ext}$major'
8872 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8873 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8876 shrext_cmds='.sl'
8877 dynamic_linker="$host_os dld.sl"
8878 shlibpath_var=SHLIB_PATH
8879 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8881 soname_spec='${libname}${release}${shared_ext}$major'
8883 esac
8884 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8885 postinstall_cmds='chmod 555 $lib'
8888 interix[3-9]*)
8889 version_type=linux
8890 need_lib_prefix=no
8891 need_version=no
8892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8893 soname_spec='${libname}${release}${shared_ext}$major'
8894 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8895 shlibpath_var=LD_LIBRARY_PATH
8896 shlibpath_overrides_runpath=no
8897 hardcode_into_libs=yes
8900 irix5* | irix6* | nonstopux*)
8901 case $host_os in
8902 nonstopux*) version_type=nonstopux ;;
8904 if test "$lt_cv_prog_gnu_ld" = yes; then
8905 version_type=linux
8906 else
8907 version_type=irix
8908 fi ;;
8909 esac
8910 need_lib_prefix=no
8911 need_version=no
8912 soname_spec='${libname}${release}${shared_ext}$major'
8913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8914 case $host_os in
8915 irix5* | nonstopux*)
8916 libsuff= shlibsuff=
8919 case $LD in # libtool.m4 will add one of these switches to LD
8920 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8921 libsuff= shlibsuff= libmagic=32-bit;;
8922 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8923 libsuff=32 shlibsuff=N32 libmagic=N32;;
8924 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8925 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8926 *) libsuff= shlibsuff= libmagic=never-match;;
8927 esac
8929 esac
8930 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8931 shlibpath_overrides_runpath=no
8932 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8933 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8934 hardcode_into_libs=yes
8937 # No shared lib support for Linux oldld, aout, or coff.
8938 linux*oldld* | linux*aout* | linux*coff*)
8939 dynamic_linker=no
8942 # This must be Linux ELF.
8943 linux* | k*bsd*-gnu)
8944 version_type=linux
8945 need_lib_prefix=no
8946 need_version=no
8947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8948 soname_spec='${libname}${release}${shared_ext}$major'
8949 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8950 shlibpath_var=LD_LIBRARY_PATH
8951 shlibpath_overrides_runpath=no
8952 # Some binutils ld are patched to set DT_RUNPATH
8953 save_LDFLAGS=$LDFLAGS
8954 save_libdir=$libdir
8955 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8956 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8957 cat >conftest.$ac_ext <<_ACEOF
8958 /* confdefs.h. */
8959 _ACEOF
8960 cat confdefs.h >>conftest.$ac_ext
8961 cat >>conftest.$ac_ext <<_ACEOF
8962 /* end confdefs.h. */
8965 main ()
8969 return 0;
8971 _ACEOF
8972 rm -f conftest.$ac_objext conftest$ac_exeext
8973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8974 (eval $ac_link) 2>conftest.er1
8975 ac_status=$?
8976 grep -v '^ *+' conftest.er1 >conftest.err
8977 rm -f conftest.er1
8978 cat conftest.err >&5
8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980 (exit $ac_status); } &&
8981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8983 (eval $ac_try) 2>&5
8984 ac_status=$?
8985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986 (exit $ac_status); }; } &&
8987 { ac_try='test -s conftest$ac_exeext'
8988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8989 (eval $ac_try) 2>&5
8990 ac_status=$?
8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 (exit $ac_status); }; }; then
8993 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
8994 shlibpath_overrides_runpath=yes
8997 else
8998 echo "$as_me: failed program was:" >&5
8999 sed 's/^/| /' conftest.$ac_ext >&5
9002 rm -f conftest.err conftest.$ac_objext \
9003 conftest$ac_exeext conftest.$ac_ext
9004 LDFLAGS=$save_LDFLAGS
9005 libdir=$save_libdir
9007 # This implies no fast_install, which is unacceptable.
9008 # Some rework will be needed to allow for fast_install
9009 # before this can be enabled.
9010 hardcode_into_libs=yes
9012 # Append ld.so.conf contents to the search path
9013 if test -f /etc/ld.so.conf; then
9014 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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9015 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9018 # We used to test for /lib/ld.so.1 and disable shared libraries on
9019 # powerpc, because MkLinux only supported shared libraries with the
9020 # GNU dynamic linker. Since this was broken with cross compilers,
9021 # most powerpc-linux boxes support dynamic linking these days and
9022 # people can always --disable-shared, the test was removed, and we
9023 # assume the GNU/Linux dynamic linker is in use.
9024 dynamic_linker='GNU/Linux ld.so'
9027 netbsd*)
9028 version_type=sunos
9029 need_lib_prefix=no
9030 need_version=no
9031 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9033 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9034 dynamic_linker='NetBSD (a.out) ld.so'
9035 else
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'
9038 dynamic_linker='NetBSD ld.elf_so'
9040 shlibpath_var=LD_LIBRARY_PATH
9041 shlibpath_overrides_runpath=yes
9042 hardcode_into_libs=yes
9045 newsos6)
9046 version_type=linux
9047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9048 shlibpath_var=LD_LIBRARY_PATH
9049 shlibpath_overrides_runpath=yes
9052 *nto* | *qnx*)
9053 version_type=qnx
9054 need_lib_prefix=no
9055 need_version=no
9056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9057 soname_spec='${libname}${release}${shared_ext}$major'
9058 shlibpath_var=LD_LIBRARY_PATH
9059 shlibpath_overrides_runpath=no
9060 hardcode_into_libs=yes
9061 dynamic_linker='ldqnx.so'
9064 openbsd*)
9065 version_type=sunos
9066 sys_lib_dlsearch_path_spec="/usr/lib"
9067 need_lib_prefix=no
9068 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9069 case $host_os in
9070 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9071 *) need_version=no ;;
9072 esac
9073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9074 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9075 shlibpath_var=LD_LIBRARY_PATH
9076 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9077 case $host_os in
9078 openbsd2.[89] | openbsd2.[89].*)
9079 shlibpath_overrides_runpath=no
9082 shlibpath_overrides_runpath=yes
9084 esac
9085 else
9086 shlibpath_overrides_runpath=yes
9090 os2*)
9091 libname_spec='$name'
9092 shrext_cmds=".dll"
9093 need_lib_prefix=no
9094 library_names_spec='$libname${shared_ext} $libname.a'
9095 dynamic_linker='OS/2 ld.exe'
9096 shlibpath_var=LIBPATH
9099 osf3* | osf4* | osf5*)
9100 version_type=osf
9101 need_lib_prefix=no
9102 need_version=no
9103 soname_spec='${libname}${release}${shared_ext}$major'
9104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9105 shlibpath_var=LD_LIBRARY_PATH
9106 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9107 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9110 rdos*)
9111 dynamic_linker=no
9114 solaris*)
9115 version_type=linux
9116 need_lib_prefix=no
9117 need_version=no
9118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9119 soname_spec='${libname}${release}${shared_ext}$major'
9120 shlibpath_var=LD_LIBRARY_PATH
9121 shlibpath_overrides_runpath=yes
9122 hardcode_into_libs=yes
9123 # ldd complains unless libraries are executable
9124 postinstall_cmds='chmod +x $lib'
9127 sunos4*)
9128 version_type=sunos
9129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9130 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9131 shlibpath_var=LD_LIBRARY_PATH
9132 shlibpath_overrides_runpath=yes
9133 if test "$with_gnu_ld" = yes; then
9134 need_lib_prefix=no
9136 need_version=yes
9139 sysv4 | sysv4.3*)
9140 version_type=linux
9141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9142 soname_spec='${libname}${release}${shared_ext}$major'
9143 shlibpath_var=LD_LIBRARY_PATH
9144 case $host_vendor in
9145 sni)
9146 shlibpath_overrides_runpath=no
9147 need_lib_prefix=no
9148 runpath_var=LD_RUN_PATH
9150 siemens)
9151 need_lib_prefix=no
9153 motorola)
9154 need_lib_prefix=no
9155 need_version=no
9156 shlibpath_overrides_runpath=no
9157 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9159 esac
9162 sysv4*MP*)
9163 if test -d /usr/nec ;then
9164 version_type=linux
9165 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9166 soname_spec='$libname${shared_ext}.$major'
9167 shlibpath_var=LD_LIBRARY_PATH
9171 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9172 version_type=freebsd-elf
9173 need_lib_prefix=no
9174 need_version=no
9175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9176 soname_spec='${libname}${release}${shared_ext}$major'
9177 shlibpath_var=LD_LIBRARY_PATH
9178 shlibpath_overrides_runpath=yes
9179 hardcode_into_libs=yes
9180 if test "$with_gnu_ld" = yes; then
9181 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9182 else
9183 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9184 case $host_os in
9185 sco3.2v5*)
9186 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9188 esac
9190 sys_lib_dlsearch_path_spec='/usr/lib'
9193 tpf*)
9194 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9195 version_type=linux
9196 need_lib_prefix=no
9197 need_version=no
9198 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9199 shlibpath_var=LD_LIBRARY_PATH
9200 shlibpath_overrides_runpath=no
9201 hardcode_into_libs=yes
9204 uts4*)
9205 version_type=linux
9206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9207 soname_spec='${libname}${release}${shared_ext}$major'
9208 shlibpath_var=LD_LIBRARY_PATH
9212 dynamic_linker=no
9214 esac
9215 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9216 echo "${ECHO_T}$dynamic_linker" >&6
9217 test "$dynamic_linker" = no && can_build_shared=no
9219 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9220 if test "$GCC" = yes; then
9221 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9310 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9311 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9312 hardcode_action=
9313 if test -n "$hardcode_libdir_flag_spec" ||
9314 test -n "$runpath_var" ||
9315 test "X$hardcode_automatic" = "Xyes" ; then
9317 # We can hardcode non-existent directories.
9318 if test "$hardcode_direct" != no &&
9319 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9320 # have to relink, otherwise we might link with an installed library
9321 # when we should be linking with a yet-to-be-installed one
9322 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9323 test "$hardcode_minus_L" != no; then
9324 # Linking always hardcodes the temporary library directory.
9325 hardcode_action=relink
9326 else
9327 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9328 hardcode_action=immediate
9330 else
9331 # We cannot hardcode anything, or else we can only hardcode existing
9332 # directories.
9333 hardcode_action=unsupported
9335 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9336 echo "${ECHO_T}$hardcode_action" >&6
9338 if test "$hardcode_action" = relink ||
9339 test "$inherit_rpath" = yes; then
9340 # Fast installation is not supported
9341 enable_fast_install=no
9342 elif test "$shlibpath_overrides_runpath" = yes ||
9343 test "$enable_shared" = no; then
9344 # Fast installation is not necessary
9345 enable_fast_install=needless
9353 if test "x$enable_dlopen" != xyes; then
9354 enable_dlopen=unknown
9355 enable_dlopen_self=unknown
9356 enable_dlopen_self_static=unknown
9357 else
9358 lt_cv_dlopen=no
9359 lt_cv_dlopen_libs=
9361 case $host_os in
9362 beos*)
9363 lt_cv_dlopen="load_add_on"
9364 lt_cv_dlopen_libs=
9365 lt_cv_dlopen_self=yes
9368 mingw* | pw32*)
9369 lt_cv_dlopen="LoadLibrary"
9370 lt_cv_dlopen_libs=
9373 cygwin*)
9374 lt_cv_dlopen="dlopen"
9375 lt_cv_dlopen_libs=
9378 darwin*)
9379 # if libdl is installed we need to link against it
9380 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9381 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9382 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9383 echo $ECHO_N "(cached) $ECHO_C" >&6
9384 else
9385 ac_check_lib_save_LIBS=$LIBS
9386 LIBS="-ldl $LIBS"
9387 cat >conftest.$ac_ext <<_ACEOF
9388 /* confdefs.h. */
9389 _ACEOF
9390 cat confdefs.h >>conftest.$ac_ext
9391 cat >>conftest.$ac_ext <<_ACEOF
9392 /* end confdefs.h. */
9394 /* Override any gcc2 internal prototype to avoid an error. */
9395 #ifdef __cplusplus
9396 extern "C"
9397 #endif
9398 /* We use char because int might match the return type of a gcc2
9399 builtin and then its argument prototype would still apply. */
9400 char dlopen ();
9402 main ()
9404 dlopen ();
9406 return 0;
9408 _ACEOF
9409 rm -f conftest.$ac_objext conftest$ac_exeext
9410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9411 (eval $ac_link) 2>conftest.er1
9412 ac_status=$?
9413 grep -v '^ *+' conftest.er1 >conftest.err
9414 rm -f conftest.er1
9415 cat conftest.err >&5
9416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417 (exit $ac_status); } &&
9418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9420 (eval $ac_try) 2>&5
9421 ac_status=$?
9422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423 (exit $ac_status); }; } &&
9424 { ac_try='test -s conftest$ac_exeext'
9425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9426 (eval $ac_try) 2>&5
9427 ac_status=$?
9428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9429 (exit $ac_status); }; }; then
9430 ac_cv_lib_dl_dlopen=yes
9431 else
9432 echo "$as_me: failed program was:" >&5
9433 sed 's/^/| /' conftest.$ac_ext >&5
9435 ac_cv_lib_dl_dlopen=no
9437 rm -f conftest.err conftest.$ac_objext \
9438 conftest$ac_exeext conftest.$ac_ext
9439 LIBS=$ac_check_lib_save_LIBS
9441 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9442 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9443 if test $ac_cv_lib_dl_dlopen = yes; then
9444 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9445 else
9447 lt_cv_dlopen="dyld"
9448 lt_cv_dlopen_libs=
9449 lt_cv_dlopen_self=yes
9456 echo "$as_me:$LINENO: checking for shl_load" >&5
9457 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9458 if test "${ac_cv_func_shl_load+set}" = set; then
9459 echo $ECHO_N "(cached) $ECHO_C" >&6
9460 else
9461 cat >conftest.$ac_ext <<_ACEOF
9462 /* confdefs.h. */
9463 _ACEOF
9464 cat confdefs.h >>conftest.$ac_ext
9465 cat >>conftest.$ac_ext <<_ACEOF
9466 /* end confdefs.h. */
9467 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9468 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9469 #define shl_load innocuous_shl_load
9471 /* System header to define __stub macros and hopefully few prototypes,
9472 which can conflict with char shl_load (); below.
9473 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9474 <limits.h> exists even on freestanding compilers. */
9476 #ifdef __STDC__
9477 # include <limits.h>
9478 #else
9479 # include <assert.h>
9480 #endif
9482 #undef shl_load
9484 /* Override any gcc2 internal prototype to avoid an error. */
9485 #ifdef __cplusplus
9486 extern "C"
9488 #endif
9489 /* We use char because int might match the return type of a gcc2
9490 builtin and then its argument prototype would still apply. */
9491 char shl_load ();
9492 /* The GNU C library defines this for functions which it implements
9493 to always fail with ENOSYS. Some functions are actually named
9494 something starting with __ and the normal name is an alias. */
9495 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9496 choke me
9497 #else
9498 char (*f) () = shl_load;
9499 #endif
9500 #ifdef __cplusplus
9502 #endif
9505 main ()
9507 return f != shl_load;
9509 return 0;
9511 _ACEOF
9512 rm -f conftest.$ac_objext conftest$ac_exeext
9513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9514 (eval $ac_link) 2>conftest.er1
9515 ac_status=$?
9516 grep -v '^ *+' conftest.er1 >conftest.err
9517 rm -f conftest.er1
9518 cat conftest.err >&5
9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 (exit $ac_status); } &&
9521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9523 (eval $ac_try) 2>&5
9524 ac_status=$?
9525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526 (exit $ac_status); }; } &&
9527 { ac_try='test -s conftest$ac_exeext'
9528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9529 (eval $ac_try) 2>&5
9530 ac_status=$?
9531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532 (exit $ac_status); }; }; then
9533 ac_cv_func_shl_load=yes
9534 else
9535 echo "$as_me: failed program was:" >&5
9536 sed 's/^/| /' conftest.$ac_ext >&5
9538 ac_cv_func_shl_load=no
9540 rm -f conftest.err conftest.$ac_objext \
9541 conftest$ac_exeext conftest.$ac_ext
9543 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9544 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9545 if test $ac_cv_func_shl_load = yes; then
9546 lt_cv_dlopen="shl_load"
9547 else
9548 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9549 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9550 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9551 echo $ECHO_N "(cached) $ECHO_C" >&6
9552 else
9553 ac_check_lib_save_LIBS=$LIBS
9554 LIBS="-ldld $LIBS"
9555 cat >conftest.$ac_ext <<_ACEOF
9556 /* confdefs.h. */
9557 _ACEOF
9558 cat confdefs.h >>conftest.$ac_ext
9559 cat >>conftest.$ac_ext <<_ACEOF
9560 /* end confdefs.h. */
9562 /* Override any gcc2 internal prototype to avoid an error. */
9563 #ifdef __cplusplus
9564 extern "C"
9565 #endif
9566 /* We use char because int might match the return type of a gcc2
9567 builtin and then its argument prototype would still apply. */
9568 char shl_load ();
9570 main ()
9572 shl_load ();
9574 return 0;
9576 _ACEOF
9577 rm -f conftest.$ac_objext conftest$ac_exeext
9578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9579 (eval $ac_link) 2>conftest.er1
9580 ac_status=$?
9581 grep -v '^ *+' conftest.er1 >conftest.err
9582 rm -f conftest.er1
9583 cat conftest.err >&5
9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); } &&
9586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9588 (eval $ac_try) 2>&5
9589 ac_status=$?
9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 (exit $ac_status); }; } &&
9592 { ac_try='test -s conftest$ac_exeext'
9593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9594 (eval $ac_try) 2>&5
9595 ac_status=$?
9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); }; }; then
9598 ac_cv_lib_dld_shl_load=yes
9599 else
9600 echo "$as_me: failed program was:" >&5
9601 sed 's/^/| /' conftest.$ac_ext >&5
9603 ac_cv_lib_dld_shl_load=no
9605 rm -f conftest.err conftest.$ac_objext \
9606 conftest$ac_exeext conftest.$ac_ext
9607 LIBS=$ac_check_lib_save_LIBS
9609 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9610 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9611 if test $ac_cv_lib_dld_shl_load = yes; then
9612 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9613 else
9614 echo "$as_me:$LINENO: checking for dlopen" >&5
9615 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9616 if test "${ac_cv_func_dlopen+set}" = set; then
9617 echo $ECHO_N "(cached) $ECHO_C" >&6
9618 else
9619 cat >conftest.$ac_ext <<_ACEOF
9620 /* confdefs.h. */
9621 _ACEOF
9622 cat confdefs.h >>conftest.$ac_ext
9623 cat >>conftest.$ac_ext <<_ACEOF
9624 /* end confdefs.h. */
9625 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9626 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9627 #define dlopen innocuous_dlopen
9629 /* System header to define __stub macros and hopefully few prototypes,
9630 which can conflict with char dlopen (); below.
9631 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9632 <limits.h> exists even on freestanding compilers. */
9634 #ifdef __STDC__
9635 # include <limits.h>
9636 #else
9637 # include <assert.h>
9638 #endif
9640 #undef dlopen
9642 /* Override any gcc2 internal prototype to avoid an error. */
9643 #ifdef __cplusplus
9644 extern "C"
9646 #endif
9647 /* We use char because int might match the return type of a gcc2
9648 builtin and then its argument prototype would still apply. */
9649 char dlopen ();
9650 /* The GNU C library defines this for functions which it implements
9651 to always fail with ENOSYS. Some functions are actually named
9652 something starting with __ and the normal name is an alias. */
9653 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9654 choke me
9655 #else
9656 char (*f) () = dlopen;
9657 #endif
9658 #ifdef __cplusplus
9660 #endif
9663 main ()
9665 return f != dlopen;
9667 return 0;
9669 _ACEOF
9670 rm -f conftest.$ac_objext conftest$ac_exeext
9671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9672 (eval $ac_link) 2>conftest.er1
9673 ac_status=$?
9674 grep -v '^ *+' conftest.er1 >conftest.err
9675 rm -f conftest.er1
9676 cat conftest.err >&5
9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 (exit $ac_status); } &&
9679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9681 (eval $ac_try) 2>&5
9682 ac_status=$?
9683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684 (exit $ac_status); }; } &&
9685 { ac_try='test -s conftest$ac_exeext'
9686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9687 (eval $ac_try) 2>&5
9688 ac_status=$?
9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690 (exit $ac_status); }; }; then
9691 ac_cv_func_dlopen=yes
9692 else
9693 echo "$as_me: failed program was:" >&5
9694 sed 's/^/| /' conftest.$ac_ext >&5
9696 ac_cv_func_dlopen=no
9698 rm -f conftest.err conftest.$ac_objext \
9699 conftest$ac_exeext conftest.$ac_ext
9701 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9702 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9703 if test $ac_cv_func_dlopen = yes; then
9704 lt_cv_dlopen="dlopen"
9705 else
9706 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9707 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9708 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9709 echo $ECHO_N "(cached) $ECHO_C" >&6
9710 else
9711 ac_check_lib_save_LIBS=$LIBS
9712 LIBS="-ldl $LIBS"
9713 cat >conftest.$ac_ext <<_ACEOF
9714 /* confdefs.h. */
9715 _ACEOF
9716 cat confdefs.h >>conftest.$ac_ext
9717 cat >>conftest.$ac_ext <<_ACEOF
9718 /* end confdefs.h. */
9720 /* Override any gcc2 internal prototype to avoid an error. */
9721 #ifdef __cplusplus
9722 extern "C"
9723 #endif
9724 /* We use char because int might match the return type of a gcc2
9725 builtin and then its argument prototype would still apply. */
9726 char dlopen ();
9728 main ()
9730 dlopen ();
9732 return 0;
9734 _ACEOF
9735 rm -f conftest.$ac_objext conftest$ac_exeext
9736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9737 (eval $ac_link) 2>conftest.er1
9738 ac_status=$?
9739 grep -v '^ *+' conftest.er1 >conftest.err
9740 rm -f conftest.er1
9741 cat conftest.err >&5
9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743 (exit $ac_status); } &&
9744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9746 (eval $ac_try) 2>&5
9747 ac_status=$?
9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749 (exit $ac_status); }; } &&
9750 { ac_try='test -s conftest$ac_exeext'
9751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9752 (eval $ac_try) 2>&5
9753 ac_status=$?
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); }; }; then
9756 ac_cv_lib_dl_dlopen=yes
9757 else
9758 echo "$as_me: failed program was:" >&5
9759 sed 's/^/| /' conftest.$ac_ext >&5
9761 ac_cv_lib_dl_dlopen=no
9763 rm -f conftest.err conftest.$ac_objext \
9764 conftest$ac_exeext conftest.$ac_ext
9765 LIBS=$ac_check_lib_save_LIBS
9767 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9768 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9769 if test $ac_cv_lib_dl_dlopen = yes; then
9770 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9771 else
9772 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9773 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9774 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9775 echo $ECHO_N "(cached) $ECHO_C" >&6
9776 else
9777 ac_check_lib_save_LIBS=$LIBS
9778 LIBS="-lsvld $LIBS"
9779 cat >conftest.$ac_ext <<_ACEOF
9780 /* confdefs.h. */
9781 _ACEOF
9782 cat confdefs.h >>conftest.$ac_ext
9783 cat >>conftest.$ac_ext <<_ACEOF
9784 /* end confdefs.h. */
9786 /* Override any gcc2 internal prototype to avoid an error. */
9787 #ifdef __cplusplus
9788 extern "C"
9789 #endif
9790 /* We use char because int might match the return type of a gcc2
9791 builtin and then its argument prototype would still apply. */
9792 char dlopen ();
9794 main ()
9796 dlopen ();
9798 return 0;
9800 _ACEOF
9801 rm -f conftest.$ac_objext conftest$ac_exeext
9802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9803 (eval $ac_link) 2>conftest.er1
9804 ac_status=$?
9805 grep -v '^ *+' conftest.er1 >conftest.err
9806 rm -f conftest.er1
9807 cat conftest.err >&5
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); } &&
9810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9812 (eval $ac_try) 2>&5
9813 ac_status=$?
9814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815 (exit $ac_status); }; } &&
9816 { ac_try='test -s conftest$ac_exeext'
9817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9818 (eval $ac_try) 2>&5
9819 ac_status=$?
9820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821 (exit $ac_status); }; }; then
9822 ac_cv_lib_svld_dlopen=yes
9823 else
9824 echo "$as_me: failed program was:" >&5
9825 sed 's/^/| /' conftest.$ac_ext >&5
9827 ac_cv_lib_svld_dlopen=no
9829 rm -f conftest.err conftest.$ac_objext \
9830 conftest$ac_exeext conftest.$ac_ext
9831 LIBS=$ac_check_lib_save_LIBS
9833 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9834 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9835 if test $ac_cv_lib_svld_dlopen = yes; then
9836 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9837 else
9838 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9839 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9840 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9841 echo $ECHO_N "(cached) $ECHO_C" >&6
9842 else
9843 ac_check_lib_save_LIBS=$LIBS
9844 LIBS="-ldld $LIBS"
9845 cat >conftest.$ac_ext <<_ACEOF
9846 /* confdefs.h. */
9847 _ACEOF
9848 cat confdefs.h >>conftest.$ac_ext
9849 cat >>conftest.$ac_ext <<_ACEOF
9850 /* end confdefs.h. */
9852 /* Override any gcc2 internal prototype to avoid an error. */
9853 #ifdef __cplusplus
9854 extern "C"
9855 #endif
9856 /* We use char because int might match the return type of a gcc2
9857 builtin and then its argument prototype would still apply. */
9858 char dld_link ();
9860 main ()
9862 dld_link ();
9864 return 0;
9866 _ACEOF
9867 rm -f conftest.$ac_objext conftest$ac_exeext
9868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9869 (eval $ac_link) 2>conftest.er1
9870 ac_status=$?
9871 grep -v '^ *+' conftest.er1 >conftest.err
9872 rm -f conftest.er1
9873 cat conftest.err >&5
9874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875 (exit $ac_status); } &&
9876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9878 (eval $ac_try) 2>&5
9879 ac_status=$?
9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881 (exit $ac_status); }; } &&
9882 { ac_try='test -s conftest$ac_exeext'
9883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9884 (eval $ac_try) 2>&5
9885 ac_status=$?
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); }; }; then
9888 ac_cv_lib_dld_dld_link=yes
9889 else
9890 echo "$as_me: failed program was:" >&5
9891 sed 's/^/| /' conftest.$ac_ext >&5
9893 ac_cv_lib_dld_dld_link=no
9895 rm -f conftest.err conftest.$ac_objext \
9896 conftest$ac_exeext conftest.$ac_ext
9897 LIBS=$ac_check_lib_save_LIBS
9899 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9900 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9901 if test $ac_cv_lib_dld_dld_link = yes; then
9902 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9921 esac
9923 if test "x$lt_cv_dlopen" != xno; then
9924 enable_dlopen=yes
9925 else
9926 enable_dlopen=no
9929 case $lt_cv_dlopen in
9930 dlopen)
9931 save_CPPFLAGS="$CPPFLAGS"
9932 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9934 save_LDFLAGS="$LDFLAGS"
9935 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9937 save_LIBS="$LIBS"
9938 LIBS="$lt_cv_dlopen_libs $LIBS"
9940 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9941 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9942 if test "${lt_cv_dlopen_self+set}" = set; then
9943 echo $ECHO_N "(cached) $ECHO_C" >&6
9944 else
9945 if test "$cross_compiling" = yes; then :
9946 lt_cv_dlopen_self=cross
9947 else
9948 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9949 lt_status=$lt_dlunknown
9950 cat > conftest.$ac_ext <<_LT_EOF
9951 #line 9951 "configure"
9952 #include "confdefs.h"
9954 #if HAVE_DLFCN_H
9955 #include <dlfcn.h>
9956 #endif
9958 #include <stdio.h>
9960 #ifdef RTLD_GLOBAL
9961 # define LT_DLGLOBAL RTLD_GLOBAL
9962 #else
9963 # ifdef DL_GLOBAL
9964 # define LT_DLGLOBAL DL_GLOBAL
9965 # else
9966 # define LT_DLGLOBAL 0
9967 # endif
9968 #endif
9970 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9971 find out it does not work in some platform. */
9972 #ifndef LT_DLLAZY_OR_NOW
9973 # ifdef RTLD_LAZY
9974 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9975 # else
9976 # ifdef DL_LAZY
9977 # define LT_DLLAZY_OR_NOW DL_LAZY
9978 # else
9979 # ifdef RTLD_NOW
9980 # define LT_DLLAZY_OR_NOW RTLD_NOW
9981 # else
9982 # ifdef DL_NOW
9983 # define LT_DLLAZY_OR_NOW DL_NOW
9984 # else
9985 # define LT_DLLAZY_OR_NOW 0
9986 # endif
9987 # endif
9988 # endif
9989 # endif
9990 #endif
9992 #ifdef __cplusplus
9993 extern "C" void exit (int);
9994 #endif
9996 void fnord() { int i=42;}
9997 int main ()
9999 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10000 int status = $lt_dlunknown;
10002 if (self)
10004 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10005 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10006 /* dlclose (self); */
10008 else
10009 puts (dlerror ());
10011 exit (status);
10013 _LT_EOF
10014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10015 (eval $ac_link) 2>&5
10016 ac_status=$?
10017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10019 (./conftest; exit; ) >&5 2>/dev/null
10020 lt_status=$?
10021 case x$lt_status in
10022 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10023 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10024 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10025 esac
10026 else :
10027 # compilation failed
10028 lt_cv_dlopen_self=no
10031 rm -fr conftest*
10035 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10036 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10038 if test "x$lt_cv_dlopen_self" = xyes; then
10039 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10040 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10041 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10042 if test "${lt_cv_dlopen_self_static+set}" = set; then
10043 echo $ECHO_N "(cached) $ECHO_C" >&6
10044 else
10045 if test "$cross_compiling" = yes; then :
10046 lt_cv_dlopen_self_static=cross
10047 else
10048 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10049 lt_status=$lt_dlunknown
10050 cat > conftest.$ac_ext <<_LT_EOF
10051 #line 10051 "configure"
10052 #include "confdefs.h"
10054 #if HAVE_DLFCN_H
10055 #include <dlfcn.h>
10056 #endif
10058 #include <stdio.h>
10060 #ifdef RTLD_GLOBAL
10061 # define LT_DLGLOBAL RTLD_GLOBAL
10062 #else
10063 # ifdef DL_GLOBAL
10064 # define LT_DLGLOBAL DL_GLOBAL
10065 # else
10066 # define LT_DLGLOBAL 0
10067 # endif
10068 #endif
10070 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10071 find out it does not work in some platform. */
10072 #ifndef LT_DLLAZY_OR_NOW
10073 # ifdef RTLD_LAZY
10074 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10075 # else
10076 # ifdef DL_LAZY
10077 # define LT_DLLAZY_OR_NOW DL_LAZY
10078 # else
10079 # ifdef RTLD_NOW
10080 # define LT_DLLAZY_OR_NOW RTLD_NOW
10081 # else
10082 # ifdef DL_NOW
10083 # define LT_DLLAZY_OR_NOW DL_NOW
10084 # else
10085 # define LT_DLLAZY_OR_NOW 0
10086 # endif
10087 # endif
10088 # endif
10089 # endif
10090 #endif
10092 #ifdef __cplusplus
10093 extern "C" void exit (int);
10094 #endif
10096 void fnord() { int i=42;}
10097 int main ()
10099 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10100 int status = $lt_dlunknown;
10102 if (self)
10104 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10105 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10106 /* dlclose (self); */
10108 else
10109 puts (dlerror ());
10111 exit (status);
10113 _LT_EOF
10114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10115 (eval $ac_link) 2>&5
10116 ac_status=$?
10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10119 (./conftest; exit; ) >&5 2>/dev/null
10120 lt_status=$?
10121 case x$lt_status in
10122 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10123 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10124 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10125 esac
10126 else :
10127 # compilation failed
10128 lt_cv_dlopen_self_static=no
10131 rm -fr conftest*
10135 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10136 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10139 CPPFLAGS="$save_CPPFLAGS"
10140 LDFLAGS="$save_LDFLAGS"
10141 LIBS="$save_LIBS"
10143 esac
10145 case $lt_cv_dlopen_self in
10146 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10147 *) enable_dlopen_self=unknown ;;
10148 esac
10150 case $lt_cv_dlopen_self_static in
10151 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10152 *) enable_dlopen_self_static=unknown ;;
10153 esac
10172 striplib=
10173 old_striplib=
10174 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10175 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10176 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10177 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10178 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10179 echo "$as_me:$LINENO: result: yes" >&5
10180 echo "${ECHO_T}yes" >&6
10181 else
10182 # FIXME - insert some real tests, host_os isn't really good enough
10183 case $host_os in
10184 darwin*)
10185 if test -n "$STRIP" ; then
10186 striplib="$STRIP -x"
10187 old_striplib="$STRIP -S"
10188 echo "$as_me:$LINENO: result: yes" >&5
10189 echo "${ECHO_T}yes" >&6
10190 else
10191 echo "$as_me:$LINENO: result: no" >&5
10192 echo "${ECHO_T}no" >&6
10196 echo "$as_me:$LINENO: result: no" >&5
10197 echo "${ECHO_T}no" >&6
10199 esac
10213 # Report which library types will actually be built
10214 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10215 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10216 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10217 echo "${ECHO_T}$can_build_shared" >&6
10219 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10220 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10221 test "$can_build_shared" = "no" && enable_shared=no
10223 # On AIX, shared libraries and static libraries use the same namespace, and
10224 # are all built from PIC.
10225 case $host_os in
10226 aix3*)
10227 test "$enable_shared" = yes && enable_static=no
10228 if test -n "$RANLIB"; then
10229 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10230 postinstall_cmds='$RANLIB $lib'
10234 aix[4-9]*)
10235 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10236 test "$enable_shared" = yes && enable_static=no
10239 esac
10240 echo "$as_me:$LINENO: result: $enable_shared" >&5
10241 echo "${ECHO_T}$enable_shared" >&6
10243 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10244 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10245 # Make sure either enable_shared or enable_static is yes.
10246 test "$enable_shared" = yes || enable_static=yes
10247 echo "$as_me:$LINENO: result: $enable_static" >&5
10248 echo "${ECHO_T}$enable_static" >&6
10254 ac_ext=c
10255 ac_cpp='$CPP $CPPFLAGS'
10256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10260 CC="$lt_save_CC"
10274 ac_config_commands="$ac_config_commands libtool"
10279 # Only expand once:
10283 # Check whether --enable-targets or --disable-targets was given.
10284 if test "${enable_targets+set}" = set; then
10285 enableval="$enable_targets"
10286 case "${enableval}" in
10287 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
10288 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
10289 { (exit 1); exit 1; }; }
10291 no) enable_targets= ;;
10292 *) enable_targets=$enableval ;;
10293 esac
10294 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
10295 if test "${enable_commonbfdlib+set}" = set; then
10296 enableval="$enable_commonbfdlib"
10297 case "${enableval}" in
10298 yes) commonbfdlib=true ;;
10299 no) commonbfdlib=false ;;
10300 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
10301 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
10302 { (exit 1); exit 1; }; } ;;
10303 esac
10306 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
10308 # Check whether --enable-werror or --disable-werror was given.
10309 if test "${enable_werror+set}" = set; then
10310 enableval="$enable_werror"
10311 case "${enableval}" in
10312 yes | y) ERROR_ON_WARNING="yes" ;;
10313 no | n) ERROR_ON_WARNING="no" ;;
10314 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
10315 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
10316 { (exit 1); exit 1; }; } ;;
10317 esac
10320 # Enable -Wno-format by default when using gcc on mingw
10321 case "${host}" in
10322 *-*-mingw32*)
10323 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10324 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
10327 *) ;;
10328 esac
10330 # Enable -Werror by default when using gcc
10331 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10332 ERROR_ON_WARNING=yes
10335 NO_WERROR=
10336 if test "${ERROR_ON_WARNING}" = yes ; then
10337 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
10338 NO_WERROR="-Wno-error"
10341 if test "${GCC}" = yes ; then
10342 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
10345 # Check whether --enable-build-warnings or --disable-build-warnings was given.
10346 if test "${enable_build_warnings+set}" = set; then
10347 enableval="$enable_build_warnings"
10348 case "${enableval}" in
10349 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
10350 no) if test "${GCC}" = yes ; then
10351 WARN_CFLAGS="-w"
10352 fi;;
10353 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10354 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
10355 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10356 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
10357 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10358 esac
10361 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
10362 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
10369 ac_config_headers="$ac_config_headers config.h:config.in"
10372 if test -z "$target" ; then
10373 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
10374 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
10375 { (exit 1); exit 1; }; }
10377 if test -z "$host" ; then
10378 { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5
10379 echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;}
10380 { (exit 1); exit 1; }; }
10383 for ac_prog in 'bison -y' byacc
10385 # Extract the first word of "$ac_prog", so it can be a program name with args.
10386 set dummy $ac_prog; ac_word=$2
10387 echo "$as_me:$LINENO: checking for $ac_word" >&5
10388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10389 if test "${ac_cv_prog_YACC+set}" = set; then
10390 echo $ECHO_N "(cached) $ECHO_C" >&6
10391 else
10392 if test -n "$YACC"; then
10393 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10394 else
10395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10396 for as_dir in $PATH
10398 IFS=$as_save_IFS
10399 test -z "$as_dir" && as_dir=.
10400 for ac_exec_ext in '' $ac_executable_extensions; do
10401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10402 ac_cv_prog_YACC="$ac_prog"
10403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10404 break 2
10406 done
10407 done
10411 YACC=$ac_cv_prog_YACC
10412 if test -n "$YACC"; then
10413 echo "$as_me:$LINENO: result: $YACC" >&5
10414 echo "${ECHO_T}$YACC" >&6
10415 else
10416 echo "$as_me:$LINENO: result: no" >&5
10417 echo "${ECHO_T}no" >&6
10420 test -n "$YACC" && break
10421 done
10422 test -n "$YACC" || YACC="yacc"
10424 for ac_prog in flex lex
10426 # Extract the first word of "$ac_prog", so it can be a program name with args.
10427 set dummy $ac_prog; ac_word=$2
10428 echo "$as_me:$LINENO: checking for $ac_word" >&5
10429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10430 if test "${ac_cv_prog_LEX+set}" = set; then
10431 echo $ECHO_N "(cached) $ECHO_C" >&6
10432 else
10433 if test -n "$LEX"; then
10434 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10435 else
10436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10437 for as_dir in $PATH
10439 IFS=$as_save_IFS
10440 test -z "$as_dir" && as_dir=.
10441 for ac_exec_ext in '' $ac_executable_extensions; do
10442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10443 ac_cv_prog_LEX="$ac_prog"
10444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10445 break 2
10447 done
10448 done
10452 LEX=$ac_cv_prog_LEX
10453 if test -n "$LEX"; then
10454 echo "$as_me:$LINENO: result: $LEX" >&5
10455 echo "${ECHO_T}$LEX" >&6
10456 else
10457 echo "$as_me:$LINENO: result: no" >&5
10458 echo "${ECHO_T}no" >&6
10461 test -n "$LEX" && break
10462 done
10463 test -n "$LEX" || LEX=":"
10465 if test -z "$LEXLIB"
10466 then
10467 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
10468 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
10469 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
10470 echo $ECHO_N "(cached) $ECHO_C" >&6
10471 else
10472 ac_check_lib_save_LIBS=$LIBS
10473 LIBS="-lfl $LIBS"
10474 cat >conftest.$ac_ext <<_ACEOF
10475 /* confdefs.h. */
10476 _ACEOF
10477 cat confdefs.h >>conftest.$ac_ext
10478 cat >>conftest.$ac_ext <<_ACEOF
10479 /* end confdefs.h. */
10481 /* Override any gcc2 internal prototype to avoid an error. */
10482 #ifdef __cplusplus
10483 extern "C"
10484 #endif
10485 /* We use char because int might match the return type of a gcc2
10486 builtin and then its argument prototype would still apply. */
10487 char yywrap ();
10489 main ()
10491 yywrap ();
10493 return 0;
10495 _ACEOF
10496 rm -f conftest.$ac_objext conftest$ac_exeext
10497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10498 (eval $ac_link) 2>conftest.er1
10499 ac_status=$?
10500 grep -v '^ *+' conftest.er1 >conftest.err
10501 rm -f conftest.er1
10502 cat conftest.err >&5
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); } &&
10505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10507 (eval $ac_try) 2>&5
10508 ac_status=$?
10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510 (exit $ac_status); }; } &&
10511 { ac_try='test -s conftest$ac_exeext'
10512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10513 (eval $ac_try) 2>&5
10514 ac_status=$?
10515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10516 (exit $ac_status); }; }; then
10517 ac_cv_lib_fl_yywrap=yes
10518 else
10519 echo "$as_me: failed program was:" >&5
10520 sed 's/^/| /' conftest.$ac_ext >&5
10522 ac_cv_lib_fl_yywrap=no
10524 rm -f conftest.err conftest.$ac_objext \
10525 conftest$ac_exeext conftest.$ac_ext
10526 LIBS=$ac_check_lib_save_LIBS
10528 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
10529 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
10530 if test $ac_cv_lib_fl_yywrap = yes; then
10531 LEXLIB="-lfl"
10532 else
10533 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
10534 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
10535 if test "${ac_cv_lib_l_yywrap+set}" = set; then
10536 echo $ECHO_N "(cached) $ECHO_C" >&6
10537 else
10538 ac_check_lib_save_LIBS=$LIBS
10539 LIBS="-ll $LIBS"
10540 cat >conftest.$ac_ext <<_ACEOF
10541 /* confdefs.h. */
10542 _ACEOF
10543 cat confdefs.h >>conftest.$ac_ext
10544 cat >>conftest.$ac_ext <<_ACEOF
10545 /* end confdefs.h. */
10547 /* Override any gcc2 internal prototype to avoid an error. */
10548 #ifdef __cplusplus
10549 extern "C"
10550 #endif
10551 /* We use char because int might match the return type of a gcc2
10552 builtin and then its argument prototype would still apply. */
10553 char yywrap ();
10555 main ()
10557 yywrap ();
10559 return 0;
10561 _ACEOF
10562 rm -f conftest.$ac_objext conftest$ac_exeext
10563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10564 (eval $ac_link) 2>conftest.er1
10565 ac_status=$?
10566 grep -v '^ *+' conftest.er1 >conftest.err
10567 rm -f conftest.er1
10568 cat conftest.err >&5
10569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570 (exit $ac_status); } &&
10571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10573 (eval $ac_try) 2>&5
10574 ac_status=$?
10575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576 (exit $ac_status); }; } &&
10577 { ac_try='test -s conftest$ac_exeext'
10578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10579 (eval $ac_try) 2>&5
10580 ac_status=$?
10581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582 (exit $ac_status); }; }; then
10583 ac_cv_lib_l_yywrap=yes
10584 else
10585 echo "$as_me: failed program was:" >&5
10586 sed 's/^/| /' conftest.$ac_ext >&5
10588 ac_cv_lib_l_yywrap=no
10590 rm -f conftest.err conftest.$ac_objext \
10591 conftest$ac_exeext conftest.$ac_ext
10592 LIBS=$ac_check_lib_save_LIBS
10594 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
10595 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
10596 if test $ac_cv_lib_l_yywrap = yes; then
10597 LEXLIB="-ll"
10604 if test "x$LEX" != "x:"; then
10605 echo "$as_me:$LINENO: checking lex output file root" >&5
10606 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
10607 if test "${ac_cv_prog_lex_root+set}" = set; then
10608 echo $ECHO_N "(cached) $ECHO_C" >&6
10609 else
10610 # The minimal lex program is just a single line: %%. But some broken lexes
10611 # (Solaris, I think it was) want two %% lines, so accommodate them.
10612 cat >conftest.l <<_ACEOF
10615 _ACEOF
10616 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
10617 (eval $LEX conftest.l) 2>&5
10618 ac_status=$?
10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); }
10621 if test -f lex.yy.c; then
10622 ac_cv_prog_lex_root=lex.yy
10623 elif test -f lexyy.c; then
10624 ac_cv_prog_lex_root=lexyy
10625 else
10626 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
10627 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
10628 { (exit 1); exit 1; }; }
10631 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
10632 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
10633 rm -f conftest.l
10634 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
10636 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
10637 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
10638 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
10639 echo $ECHO_N "(cached) $ECHO_C" >&6
10640 else
10641 # POSIX says lex can declare yytext either as a pointer or an array; the
10642 # default is implementation-dependent. Figure out which it is, since
10643 # not all implementations provide the %pointer and %array declarations.
10644 ac_cv_prog_lex_yytext_pointer=no
10645 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
10646 ac_save_LIBS=$LIBS
10647 LIBS="$LIBS $LEXLIB"
10648 cat >conftest.$ac_ext <<_ACEOF
10649 `cat $LEX_OUTPUT_ROOT.c`
10650 _ACEOF
10651 rm -f conftest.$ac_objext conftest$ac_exeext
10652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10653 (eval $ac_link) 2>conftest.er1
10654 ac_status=$?
10655 grep -v '^ *+' conftest.er1 >conftest.err
10656 rm -f conftest.er1
10657 cat conftest.err >&5
10658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659 (exit $ac_status); } &&
10660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10662 (eval $ac_try) 2>&5
10663 ac_status=$?
10664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); }; } &&
10666 { ac_try='test -s conftest$ac_exeext'
10667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10668 (eval $ac_try) 2>&5
10669 ac_status=$?
10670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671 (exit $ac_status); }; }; then
10672 ac_cv_prog_lex_yytext_pointer=yes
10673 else
10674 echo "$as_me: failed program was:" >&5
10675 sed 's/^/| /' conftest.$ac_ext >&5
10678 rm -f conftest.err conftest.$ac_objext \
10679 conftest$ac_exeext conftest.$ac_ext
10680 LIBS=$ac_save_LIBS
10681 rm -f "${LEX_OUTPUT_ROOT}.c"
10684 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
10685 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
10686 if test $ac_cv_prog_lex_yytext_pointer = yes; then
10688 cat >>confdefs.h <<\_ACEOF
10689 #define YYTEXT_POINTER 1
10690 _ACEOF
10695 if test "$LEX" = :; then
10696 LEX=${am_missing_run}flex
10699 ALL_LINGUAS="fr tr ja es sv da zh_CN ru ro rw zh_TW fi vi uk sk"
10700 # If we haven't got the data from the intl directory,
10701 # assume NLS is disabled.
10702 USE_NLS=no
10703 LIBINTL=
10704 LIBINTL_DEP=
10705 INCINTL=
10706 XGETTEXT=
10707 GMSGFMT=
10708 POSUB=
10710 if test -f ../intl/config.intl; then
10711 . ../intl/config.intl
10713 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10714 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10715 if test x"$USE_NLS" != xyes; then
10716 echo "$as_me:$LINENO: result: no" >&5
10717 echo "${ECHO_T}no" >&6
10718 else
10719 echo "$as_me:$LINENO: result: yes" >&5
10720 echo "${ECHO_T}yes" >&6
10722 cat >>confdefs.h <<\_ACEOF
10723 #define ENABLE_NLS 1
10724 _ACEOF
10727 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10728 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
10729 # Look for .po and .gmo files in the source directory.
10730 CATALOGS=
10731 XLINGUAS=
10732 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10733 # If there aren't any .gmo files the shell will give us the
10734 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10735 # weeded out.
10736 case "$cat" in *\**)
10737 continue;;
10738 esac
10739 # The quadruple backslash is collapsed to a double backslash
10740 # by the backticks, then collapsed again by the double quotes,
10741 # leaving us with one backslash in the sed expression (right
10742 # before the dot that mustn't act as a wildcard).
10743 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10744 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10745 # The user is allowed to set LINGUAS to a list of languages to
10746 # install catalogs for. If it's empty that means "all of them."
10747 if test "x$LINGUAS" = x; then
10748 CATALOGS="$CATALOGS $cat"
10749 XLINGUAS="$XLINGUAS $lang"
10750 else
10751 case "$LINGUAS" in *$lang*)
10752 CATALOGS="$CATALOGS $cat"
10753 XLINGUAS="$XLINGUAS $lang"
10755 esac
10757 done
10758 LINGUAS="$XLINGUAS"
10759 echo "$as_me:$LINENO: result: $LINGUAS" >&5
10760 echo "${ECHO_T}$LINGUAS" >&6
10763 DATADIRNAME=share
10765 INSTOBJEXT=.mo
10767 GENCAT=gencat
10769 CATOBJEXT=.gmo
10773 MKINSTALLDIRS=
10774 if test -n "$ac_aux_dir"; then
10775 case "$ac_aux_dir" in
10776 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
10777 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
10778 esac
10780 if test -z "$MKINSTALLDIRS"; then
10781 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10786 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10787 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10788 # Check whether --enable-nls or --disable-nls was given.
10789 if test "${enable_nls+set}" = set; then
10790 enableval="$enable_nls"
10791 USE_NLS=$enableval
10792 else
10793 USE_NLS=yes
10795 echo "$as_me:$LINENO: result: $USE_NLS" >&5
10796 echo "${ECHO_T}$USE_NLS" >&6
10803 # Prepare PATH_SEPARATOR.
10804 # The user is always right.
10805 if test "${PATH_SEPARATOR+set}" != set; then
10806 echo "#! /bin/sh" >conf$$.sh
10807 echo "exit 0" >>conf$$.sh
10808 chmod +x conf$$.sh
10809 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10810 PATH_SEPARATOR=';'
10811 else
10812 PATH_SEPARATOR=:
10814 rm -f conf$$.sh
10817 # Find out how to test for executable files. Don't use a zero-byte file,
10818 # as systems may use methods other than mode bits to determine executability.
10819 cat >conf$$.file <<_ASEOF
10820 #! /bin/sh
10821 exit 0
10822 _ASEOF
10823 chmod +x conf$$.file
10824 if test -x conf$$.file >/dev/null 2>&1; then
10825 ac_executable_p="test -x"
10826 else
10827 ac_executable_p="test -f"
10829 rm -f conf$$.file
10831 # Extract the first word of "msgfmt", so it can be a program name with args.
10832 set dummy msgfmt; ac_word=$2
10833 echo "$as_me:$LINENO: checking for $ac_word" >&5
10834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10835 if test "${ac_cv_path_MSGFMT+set}" = set; then
10836 echo $ECHO_N "(cached) $ECHO_C" >&6
10837 else
10838 case "$MSGFMT" in
10839 [\\/]* | ?:[\\/]*)
10840 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10843 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10844 for ac_dir in $PATH; do
10845 IFS="$ac_save_IFS"
10846 test -z "$ac_dir" && ac_dir=.
10847 for ac_exec_ext in '' $ac_executable_extensions; do
10848 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10849 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
10850 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10851 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10852 break 2
10855 done
10856 done
10857 IFS="$ac_save_IFS"
10858 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10860 esac
10862 MSGFMT="$ac_cv_path_MSGFMT"
10863 if test "$MSGFMT" != ":"; then
10864 echo "$as_me:$LINENO: result: $MSGFMT" >&5
10865 echo "${ECHO_T}$MSGFMT" >&6
10866 else
10867 echo "$as_me:$LINENO: result: no" >&5
10868 echo "${ECHO_T}no" >&6
10871 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10872 set dummy gmsgfmt; ac_word=$2
10873 echo "$as_me:$LINENO: checking for $ac_word" >&5
10874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10875 if test "${ac_cv_path_GMSGFMT+set}" = set; then
10876 echo $ECHO_N "(cached) $ECHO_C" >&6
10877 else
10878 case $GMSGFMT in
10879 [\\/]* | ?:[\\/]*)
10880 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10884 for as_dir in $PATH
10886 IFS=$as_save_IFS
10887 test -z "$as_dir" && as_dir=.
10888 for ac_exec_ext in '' $ac_executable_extensions; do
10889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10890 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10892 break 2
10894 done
10895 done
10897 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10899 esac
10901 GMSGFMT=$ac_cv_path_GMSGFMT
10903 if test -n "$GMSGFMT"; then
10904 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10905 echo "${ECHO_T}$GMSGFMT" >&6
10906 else
10907 echo "$as_me:$LINENO: result: no" >&5
10908 echo "${ECHO_T}no" >&6
10913 # Prepare PATH_SEPARATOR.
10914 # The user is always right.
10915 if test "${PATH_SEPARATOR+set}" != set; then
10916 echo "#! /bin/sh" >conf$$.sh
10917 echo "exit 0" >>conf$$.sh
10918 chmod +x conf$$.sh
10919 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10920 PATH_SEPARATOR=';'
10921 else
10922 PATH_SEPARATOR=:
10924 rm -f conf$$.sh
10927 # Find out how to test for executable files. Don't use a zero-byte file,
10928 # as systems may use methods other than mode bits to determine executability.
10929 cat >conf$$.file <<_ASEOF
10930 #! /bin/sh
10931 exit 0
10932 _ASEOF
10933 chmod +x conf$$.file
10934 if test -x conf$$.file >/dev/null 2>&1; then
10935 ac_executable_p="test -x"
10936 else
10937 ac_executable_p="test -f"
10939 rm -f conf$$.file
10941 # Extract the first word of "xgettext", so it can be a program name with args.
10942 set dummy xgettext; ac_word=$2
10943 echo "$as_me:$LINENO: checking for $ac_word" >&5
10944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10945 if test "${ac_cv_path_XGETTEXT+set}" = set; then
10946 echo $ECHO_N "(cached) $ECHO_C" >&6
10947 else
10948 case "$XGETTEXT" in
10949 [\\/]* | ?:[\\/]*)
10950 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10953 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10954 for ac_dir in $PATH; do
10955 IFS="$ac_save_IFS"
10956 test -z "$ac_dir" && ac_dir=.
10957 for ac_exec_ext in '' $ac_executable_extensions; do
10958 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10959 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10960 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10961 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
10962 break 2
10965 done
10966 done
10967 IFS="$ac_save_IFS"
10968 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10970 esac
10972 XGETTEXT="$ac_cv_path_XGETTEXT"
10973 if test "$XGETTEXT" != ":"; then
10974 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
10975 echo "${ECHO_T}$XGETTEXT" >&6
10976 else
10977 echo "$as_me:$LINENO: result: no" >&5
10978 echo "${ECHO_T}no" >&6
10981 rm -f messages.po
10984 # Prepare PATH_SEPARATOR.
10985 # The user is always right.
10986 if test "${PATH_SEPARATOR+set}" != set; then
10987 echo "#! /bin/sh" >conf$$.sh
10988 echo "exit 0" >>conf$$.sh
10989 chmod +x conf$$.sh
10990 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10991 PATH_SEPARATOR=';'
10992 else
10993 PATH_SEPARATOR=:
10995 rm -f conf$$.sh
10998 # Find out how to test for executable files. Don't use a zero-byte file,
10999 # as systems may use methods other than mode bits to determine executability.
11000 cat >conf$$.file <<_ASEOF
11001 #! /bin/sh
11002 exit 0
11003 _ASEOF
11004 chmod +x conf$$.file
11005 if test -x conf$$.file >/dev/null 2>&1; then
11006 ac_executable_p="test -x"
11007 else
11008 ac_executable_p="test -f"
11010 rm -f conf$$.file
11012 # Extract the first word of "msgmerge", so it can be a program name with args.
11013 set dummy msgmerge; ac_word=$2
11014 echo "$as_me:$LINENO: checking for $ac_word" >&5
11015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11016 if test "${ac_cv_path_MSGMERGE+set}" = set; then
11017 echo $ECHO_N "(cached) $ECHO_C" >&6
11018 else
11019 case "$MSGMERGE" in
11020 [\\/]* | ?:[\\/]*)
11021 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11024 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11025 for ac_dir in $PATH; do
11026 IFS="$ac_save_IFS"
11027 test -z "$ac_dir" && ac_dir=.
11028 for ac_exec_ext in '' $ac_executable_extensions; do
11029 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11030 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11031 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11032 break 2
11035 done
11036 done
11037 IFS="$ac_save_IFS"
11038 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11040 esac
11042 MSGMERGE="$ac_cv_path_MSGMERGE"
11043 if test "$MSGMERGE" != ":"; then
11044 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
11045 echo "${ECHO_T}$MSGMERGE" >&6
11046 else
11047 echo "$as_me:$LINENO: result: no" >&5
11048 echo "${ECHO_T}no" >&6
11052 if test "$GMSGFMT" != ":"; then
11053 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11054 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11056 else
11057 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11058 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11059 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
11060 GMSGFMT=":"
11064 if test "$XGETTEXT" != ":"; then
11065 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11066 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11068 else
11069 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11070 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
11071 XGETTEXT=":"
11073 rm -f messages.po
11076 ac_config_commands="$ac_config_commands default-1"
11080 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11081 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11082 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11083 if test "${enable_maintainer_mode+set}" = set; then
11084 enableval="$enable_maintainer_mode"
11085 USE_MAINTAINER_MODE=$enableval
11086 else
11087 USE_MAINTAINER_MODE=no
11089 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11090 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
11093 if test $USE_MAINTAINER_MODE = yes; then
11094 MAINTAINER_MODE_TRUE=
11095 MAINTAINER_MODE_FALSE='#'
11096 else
11097 MAINTAINER_MODE_TRUE='#'
11098 MAINTAINER_MODE_FALSE=
11101 MAINT=$MAINTAINER_MODE_TRUE
11106 if false; then
11107 GENINSRC_NEVER_TRUE=
11108 GENINSRC_NEVER_FALSE='#'
11109 else
11110 GENINSRC_NEVER_TRUE='#'
11111 GENINSRC_NEVER_FALSE=
11115 if test -n "$EXEEXT"; then
11117 cat >>confdefs.h <<\_ACEOF
11118 #define HAVE_EXECUTABLE_SUFFIX 1
11119 _ACEOF
11123 cat >>confdefs.h <<_ACEOF
11124 #define EXECUTABLE_SUFFIX "${EXEEXT}"
11125 _ACEOF
11128 # host-specific stuff:
11130 HDEFINES=
11132 . ${srcdir}/../bfd/configure.host
11135 AR=${AR-ar}
11137 if test -n "$ac_tool_prefix"; then
11138 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11139 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11140 echo "$as_me:$LINENO: checking for $ac_word" >&5
11141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11142 if test "${ac_cv_prog_RANLIB+set}" = set; then
11143 echo $ECHO_N "(cached) $ECHO_C" >&6
11144 else
11145 if test -n "$RANLIB"; then
11146 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11147 else
11148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11149 for as_dir in $PATH
11151 IFS=$as_save_IFS
11152 test -z "$as_dir" && as_dir=.
11153 for ac_exec_ext in '' $ac_executable_extensions; do
11154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11155 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11157 break 2
11159 done
11160 done
11164 RANLIB=$ac_cv_prog_RANLIB
11165 if test -n "$RANLIB"; then
11166 echo "$as_me:$LINENO: result: $RANLIB" >&5
11167 echo "${ECHO_T}$RANLIB" >&6
11168 else
11169 echo "$as_me:$LINENO: result: no" >&5
11170 echo "${ECHO_T}no" >&6
11174 if test -z "$ac_cv_prog_RANLIB"; then
11175 ac_ct_RANLIB=$RANLIB
11176 # Extract the first word of "ranlib", so it can be a program name with args.
11177 set dummy ranlib; ac_word=$2
11178 echo "$as_me:$LINENO: checking for $ac_word" >&5
11179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11180 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11181 echo $ECHO_N "(cached) $ECHO_C" >&6
11182 else
11183 if test -n "$ac_ct_RANLIB"; then
11184 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11185 else
11186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11187 for as_dir in $PATH
11189 IFS=$as_save_IFS
11190 test -z "$as_dir" && as_dir=.
11191 for ac_exec_ext in '' $ac_executable_extensions; do
11192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11193 ac_cv_prog_ac_ct_RANLIB="ranlib"
11194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11195 break 2
11197 done
11198 done
11200 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11203 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11204 if test -n "$ac_ct_RANLIB"; then
11205 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11206 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11207 else
11208 echo "$as_me:$LINENO: result: no" >&5
11209 echo "${ECHO_T}no" >&6
11212 RANLIB=$ac_ct_RANLIB
11213 else
11214 RANLIB="$ac_cv_prog_RANLIB"
11217 # Find a good install program. We prefer a C program (faster),
11218 # so one script is as good as another. But avoid the broken or
11219 # incompatible versions:
11220 # SysV /etc/install, /usr/sbin/install
11221 # SunOS /usr/etc/install
11222 # IRIX /sbin/install
11223 # AIX /bin/install
11224 # AmigaOS /C/install, which installs bootblocks on floppy discs
11225 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11226 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11227 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11228 # OS/2's system install, which has a completely different semantic
11229 # ./install, which can be erroneously created by make from ./install.sh.
11230 # Reject install programs that cannot install multiple files.
11231 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11232 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11233 if test -z "$INSTALL"; then
11234 if test "${ac_cv_path_install+set}" = set; then
11235 echo $ECHO_N "(cached) $ECHO_C" >&6
11236 else
11237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11238 for as_dir in $PATH
11240 IFS=$as_save_IFS
11241 test -z "$as_dir" && as_dir=.
11242 # Account for people who put trailing slashes in PATH elements.
11243 case $as_dir/ in
11244 ./ | .// | /cC/* | \
11245 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11246 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11247 /usr/ucb/* ) ;;
11249 # OSF1 and SCO ODT 3.0 have their own names for install.
11250 # Don't use installbsd from OSF since it installs stuff as root
11251 # by default.
11252 for ac_prog in ginstall scoinst install; do
11253 for ac_exec_ext in '' $ac_executable_extensions; do
11254 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11255 if test $ac_prog = install &&
11256 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11257 # AIX install. It has an incompatible calling convention.
11259 elif test $ac_prog = install &&
11260 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11261 # program-specific install script used by HP pwplus--don't use.
11263 else
11264 rm -rf conftest.one conftest.two conftest.dir
11265 echo one > conftest.one
11266 echo two > conftest.two
11267 mkdir conftest.dir
11268 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11269 test -s conftest.one && test -s conftest.two &&
11270 test -s conftest.dir/conftest.one &&
11271 test -s conftest.dir/conftest.two
11272 then
11273 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11274 break 3
11278 done
11279 done
11281 esac
11282 done
11284 rm -rf conftest.one conftest.two conftest.dir
11287 if test "${ac_cv_path_install+set}" = set; then
11288 INSTALL=$ac_cv_path_install
11289 else
11290 # As a last resort, use the slow shell script. Don't cache a
11291 # value for INSTALL within a source directory, because that will
11292 # break other packages using the cache if that directory is
11293 # removed, or if the value is a relative name.
11294 INSTALL=$ac_install_sh
11297 echo "$as_me:$LINENO: result: $INSTALL" >&5
11298 echo "${ECHO_T}$INSTALL" >&6
11300 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11301 # It thinks the first close brace ends the variable substitution.
11302 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11304 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11306 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11309 # Put a plausible default for CC_FOR_BUILD in Makefile.
11310 if test -z "$CC_FOR_BUILD"; then
11311 if test "x$cross_compiling" = "xno"; then
11312 CC_FOR_BUILD='$(CC)'
11313 else
11314 CC_FOR_BUILD=gcc
11318 # Also set EXEEXT_FOR_BUILD.
11319 if test "x$cross_compiling" = "xno"; then
11320 EXEEXT_FOR_BUILD='$(EXEEXT)'
11321 else
11322 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
11323 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
11324 if test "${bfd_cv_build_exeext+set}" = set; then
11325 echo $ECHO_N "(cached) $ECHO_C" >&6
11326 else
11327 rm -f conftest*
11328 echo 'int main () { return 0; }' > conftest.c
11329 bfd_cv_build_exeext=
11330 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
11331 for file in conftest.*; do
11332 case $file in
11333 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
11334 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
11335 esac
11336 done
11337 rm -f conftest*
11338 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
11340 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
11341 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
11342 EXEEXT_FOR_BUILD=""
11343 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
11347 DEMANGLER_NAME=c++filt
11348 case "${host}" in
11349 *-*-go32* | *-*-msdos*)
11350 DEMANGLER_NAME=cxxfilt
11351 esac
11362 for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h limits.h sys/param.h
11364 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11366 echo "$as_me:$LINENO: checking for $ac_header" >&5
11367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11369 echo $ECHO_N "(cached) $ECHO_C" >&6
11371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11372 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11373 else
11374 # Is the header compilable?
11375 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11376 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11377 cat >conftest.$ac_ext <<_ACEOF
11378 /* confdefs.h. */
11379 _ACEOF
11380 cat confdefs.h >>conftest.$ac_ext
11381 cat >>conftest.$ac_ext <<_ACEOF
11382 /* end confdefs.h. */
11383 $ac_includes_default
11384 #include <$ac_header>
11385 _ACEOF
11386 rm -f conftest.$ac_objext
11387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11388 (eval $ac_compile) 2>conftest.er1
11389 ac_status=$?
11390 grep -v '^ *+' conftest.er1 >conftest.err
11391 rm -f conftest.er1
11392 cat conftest.err >&5
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); } &&
11395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11397 (eval $ac_try) 2>&5
11398 ac_status=$?
11399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400 (exit $ac_status); }; } &&
11401 { ac_try='test -s conftest.$ac_objext'
11402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11403 (eval $ac_try) 2>&5
11404 ac_status=$?
11405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406 (exit $ac_status); }; }; then
11407 ac_header_compiler=yes
11408 else
11409 echo "$as_me: failed program was:" >&5
11410 sed 's/^/| /' conftest.$ac_ext >&5
11412 ac_header_compiler=no
11414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11415 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11416 echo "${ECHO_T}$ac_header_compiler" >&6
11418 # Is the header present?
11419 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11420 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11421 cat >conftest.$ac_ext <<_ACEOF
11422 /* confdefs.h. */
11423 _ACEOF
11424 cat confdefs.h >>conftest.$ac_ext
11425 cat >>conftest.$ac_ext <<_ACEOF
11426 /* end confdefs.h. */
11427 #include <$ac_header>
11428 _ACEOF
11429 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11430 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11431 ac_status=$?
11432 grep -v '^ *+' conftest.er1 >conftest.err
11433 rm -f conftest.er1
11434 cat conftest.err >&5
11435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436 (exit $ac_status); } >/dev/null; then
11437 if test -s conftest.err; then
11438 ac_cpp_err=$ac_c_preproc_warn_flag
11439 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11440 else
11441 ac_cpp_err=
11443 else
11444 ac_cpp_err=yes
11446 if test -z "$ac_cpp_err"; then
11447 ac_header_preproc=yes
11448 else
11449 echo "$as_me: failed program was:" >&5
11450 sed 's/^/| /' conftest.$ac_ext >&5
11452 ac_header_preproc=no
11454 rm -f conftest.err conftest.$ac_ext
11455 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11456 echo "${ECHO_T}$ac_header_preproc" >&6
11458 # So? What about this header?
11459 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11460 yes:no: )
11461 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11462 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11464 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11465 ac_header_preproc=yes
11467 no:yes:* )
11468 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11469 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11470 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11471 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11472 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11473 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11474 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11475 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11477 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11478 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11479 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11481 cat <<\_ASBOX
11482 ## ------------------------------------------ ##
11483 ## Report this to the AC_PACKAGE_NAME lists. ##
11484 ## ------------------------------------------ ##
11485 _ASBOX
11487 sed "s/^/$as_me: WARNING: /" >&2
11489 esac
11490 echo "$as_me:$LINENO: checking for $ac_header" >&5
11491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11493 echo $ECHO_N "(cached) $ECHO_C" >&6
11494 else
11495 eval "$as_ac_Header=\$ac_header_preproc"
11497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11498 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11501 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11502 cat >>confdefs.h <<_ACEOF
11503 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11504 _ACEOF
11508 done
11510 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11511 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
11512 if test "${ac_cv_header_sys_wait_h+set}" = set; then
11513 echo $ECHO_N "(cached) $ECHO_C" >&6
11514 else
11515 cat >conftest.$ac_ext <<_ACEOF
11516 /* confdefs.h. */
11517 _ACEOF
11518 cat confdefs.h >>conftest.$ac_ext
11519 cat >>conftest.$ac_ext <<_ACEOF
11520 /* end confdefs.h. */
11521 #include <sys/types.h>
11522 #include <sys/wait.h>
11523 #ifndef WEXITSTATUS
11524 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
11525 #endif
11526 #ifndef WIFEXITED
11527 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11528 #endif
11531 main ()
11533 int s;
11534 wait (&s);
11535 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11537 return 0;
11539 _ACEOF
11540 rm -f conftest.$ac_objext
11541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11542 (eval $ac_compile) 2>conftest.er1
11543 ac_status=$?
11544 grep -v '^ *+' conftest.er1 >conftest.err
11545 rm -f conftest.er1
11546 cat conftest.err >&5
11547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548 (exit $ac_status); } &&
11549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11551 (eval $ac_try) 2>&5
11552 ac_status=$?
11553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554 (exit $ac_status); }; } &&
11555 { ac_try='test -s conftest.$ac_objext'
11556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11557 (eval $ac_try) 2>&5
11558 ac_status=$?
11559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560 (exit $ac_status); }; }; then
11561 ac_cv_header_sys_wait_h=yes
11562 else
11563 echo "$as_me: failed program was:" >&5
11564 sed 's/^/| /' conftest.$ac_ext >&5
11566 ac_cv_header_sys_wait_h=no
11568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11570 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11571 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
11572 if test $ac_cv_header_sys_wait_h = yes; then
11574 cat >>confdefs.h <<\_ACEOF
11575 #define HAVE_SYS_WAIT_H 1
11576 _ACEOF
11580 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11581 # for constant arguments. Useless!
11582 echo "$as_me:$LINENO: checking for working alloca.h" >&5
11583 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
11584 if test "${ac_cv_working_alloca_h+set}" = set; then
11585 echo $ECHO_N "(cached) $ECHO_C" >&6
11586 else
11587 cat >conftest.$ac_ext <<_ACEOF
11588 /* confdefs.h. */
11589 _ACEOF
11590 cat confdefs.h >>conftest.$ac_ext
11591 cat >>conftest.$ac_ext <<_ACEOF
11592 /* end confdefs.h. */
11593 #include <alloca.h>
11595 main ()
11597 char *p = (char *) alloca (2 * sizeof (int));
11599 return 0;
11601 _ACEOF
11602 rm -f conftest.$ac_objext conftest$ac_exeext
11603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11604 (eval $ac_link) 2>conftest.er1
11605 ac_status=$?
11606 grep -v '^ *+' conftest.er1 >conftest.err
11607 rm -f conftest.er1
11608 cat conftest.err >&5
11609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610 (exit $ac_status); } &&
11611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11613 (eval $ac_try) 2>&5
11614 ac_status=$?
11615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616 (exit $ac_status); }; } &&
11617 { ac_try='test -s conftest$ac_exeext'
11618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11619 (eval $ac_try) 2>&5
11620 ac_status=$?
11621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11622 (exit $ac_status); }; }; then
11623 ac_cv_working_alloca_h=yes
11624 else
11625 echo "$as_me: failed program was:" >&5
11626 sed 's/^/| /' conftest.$ac_ext >&5
11628 ac_cv_working_alloca_h=no
11630 rm -f conftest.err conftest.$ac_objext \
11631 conftest$ac_exeext conftest.$ac_ext
11633 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
11634 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
11635 if test $ac_cv_working_alloca_h = yes; then
11637 cat >>confdefs.h <<\_ACEOF
11638 #define HAVE_ALLOCA_H 1
11639 _ACEOF
11643 echo "$as_me:$LINENO: checking for alloca" >&5
11644 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
11645 if test "${ac_cv_func_alloca_works+set}" = set; then
11646 echo $ECHO_N "(cached) $ECHO_C" >&6
11647 else
11648 cat >conftest.$ac_ext <<_ACEOF
11649 /* confdefs.h. */
11650 _ACEOF
11651 cat confdefs.h >>conftest.$ac_ext
11652 cat >>conftest.$ac_ext <<_ACEOF
11653 /* end confdefs.h. */
11654 #ifdef __GNUC__
11655 # define alloca __builtin_alloca
11656 #else
11657 # ifdef _MSC_VER
11658 # include <malloc.h>
11659 # define alloca _alloca
11660 # else
11661 # if HAVE_ALLOCA_H
11662 # include <alloca.h>
11663 # else
11664 # ifdef _AIX
11665 #pragma alloca
11666 # else
11667 # ifndef alloca /* predefined by HP cc +Olibcalls */
11668 char *alloca ();
11669 # endif
11670 # endif
11671 # endif
11672 # endif
11673 #endif
11676 main ()
11678 char *p = (char *) alloca (1);
11680 return 0;
11682 _ACEOF
11683 rm -f conftest.$ac_objext conftest$ac_exeext
11684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11685 (eval $ac_link) 2>conftest.er1
11686 ac_status=$?
11687 grep -v '^ *+' conftest.er1 >conftest.err
11688 rm -f conftest.er1
11689 cat conftest.err >&5
11690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11691 (exit $ac_status); } &&
11692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11694 (eval $ac_try) 2>&5
11695 ac_status=$?
11696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 (exit $ac_status); }; } &&
11698 { ac_try='test -s conftest$ac_exeext'
11699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11700 (eval $ac_try) 2>&5
11701 ac_status=$?
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); }; }; then
11704 ac_cv_func_alloca_works=yes
11705 else
11706 echo "$as_me: failed program was:" >&5
11707 sed 's/^/| /' conftest.$ac_ext >&5
11709 ac_cv_func_alloca_works=no
11711 rm -f conftest.err conftest.$ac_objext \
11712 conftest$ac_exeext conftest.$ac_ext
11714 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
11715 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
11717 if test $ac_cv_func_alloca_works = yes; then
11719 cat >>confdefs.h <<\_ACEOF
11720 #define HAVE_ALLOCA 1
11721 _ACEOF
11723 else
11724 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11725 # that cause trouble. Some versions do not even contain alloca or
11726 # contain a buggy version. If you still want to use their alloca,
11727 # use ar to extract alloca.o from them instead of compiling alloca.c.
11729 ALLOCA=alloca.$ac_objext
11731 cat >>confdefs.h <<\_ACEOF
11732 #define C_ALLOCA 1
11733 _ACEOF
11736 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
11737 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
11738 if test "${ac_cv_os_cray+set}" = set; then
11739 echo $ECHO_N "(cached) $ECHO_C" >&6
11740 else
11741 cat >conftest.$ac_ext <<_ACEOF
11742 /* confdefs.h. */
11743 _ACEOF
11744 cat confdefs.h >>conftest.$ac_ext
11745 cat >>conftest.$ac_ext <<_ACEOF
11746 /* end confdefs.h. */
11747 #if defined(CRAY) && ! defined(CRAY2)
11748 webecray
11749 #else
11750 wenotbecray
11751 #endif
11753 _ACEOF
11754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11755 $EGREP "webecray" >/dev/null 2>&1; then
11756 ac_cv_os_cray=yes
11757 else
11758 ac_cv_os_cray=no
11760 rm -f conftest*
11763 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
11764 echo "${ECHO_T}$ac_cv_os_cray" >&6
11765 if test $ac_cv_os_cray = yes; then
11766 for ac_func in _getb67 GETB67 getb67; do
11767 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11768 echo "$as_me:$LINENO: checking for $ac_func" >&5
11769 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11770 if eval "test \"\${$as_ac_var+set}\" = set"; then
11771 echo $ECHO_N "(cached) $ECHO_C" >&6
11772 else
11773 cat >conftest.$ac_ext <<_ACEOF
11774 /* confdefs.h. */
11775 _ACEOF
11776 cat confdefs.h >>conftest.$ac_ext
11777 cat >>conftest.$ac_ext <<_ACEOF
11778 /* end confdefs.h. */
11779 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11781 #define $ac_func innocuous_$ac_func
11783 /* System header to define __stub macros and hopefully few prototypes,
11784 which can conflict with char $ac_func (); below.
11785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11786 <limits.h> exists even on freestanding compilers. */
11788 #ifdef __STDC__
11789 # include <limits.h>
11790 #else
11791 # include <assert.h>
11792 #endif
11794 #undef $ac_func
11796 /* Override any gcc2 internal prototype to avoid an error. */
11797 #ifdef __cplusplus
11798 extern "C"
11800 #endif
11801 /* We use char because int might match the return type of a gcc2
11802 builtin and then its argument prototype would still apply. */
11803 char $ac_func ();
11804 /* The GNU C library defines this for functions which it implements
11805 to always fail with ENOSYS. Some functions are actually named
11806 something starting with __ and the normal name is an alias. */
11807 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11808 choke me
11809 #else
11810 char (*f) () = $ac_func;
11811 #endif
11812 #ifdef __cplusplus
11814 #endif
11817 main ()
11819 return f != $ac_func;
11821 return 0;
11823 _ACEOF
11824 rm -f conftest.$ac_objext conftest$ac_exeext
11825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11826 (eval $ac_link) 2>conftest.er1
11827 ac_status=$?
11828 grep -v '^ *+' conftest.er1 >conftest.err
11829 rm -f conftest.er1
11830 cat conftest.err >&5
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); } &&
11833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11835 (eval $ac_try) 2>&5
11836 ac_status=$?
11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); }; } &&
11839 { ac_try='test -s conftest$ac_exeext'
11840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11841 (eval $ac_try) 2>&5
11842 ac_status=$?
11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844 (exit $ac_status); }; }; then
11845 eval "$as_ac_var=yes"
11846 else
11847 echo "$as_me: failed program was:" >&5
11848 sed 's/^/| /' conftest.$ac_ext >&5
11850 eval "$as_ac_var=no"
11852 rm -f conftest.err conftest.$ac_objext \
11853 conftest$ac_exeext conftest.$ac_ext
11855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11856 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11857 if test `eval echo '${'$as_ac_var'}'` = yes; then
11859 cat >>confdefs.h <<_ACEOF
11860 #define CRAY_STACKSEG_END $ac_func
11861 _ACEOF
11863 break
11866 done
11869 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
11870 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
11871 if test "${ac_cv_c_stack_direction+set}" = set; then
11872 echo $ECHO_N "(cached) $ECHO_C" >&6
11873 else
11874 if test "$cross_compiling" = yes; then
11875 ac_cv_c_stack_direction=0
11876 else
11877 cat >conftest.$ac_ext <<_ACEOF
11878 /* confdefs.h. */
11879 _ACEOF
11880 cat confdefs.h >>conftest.$ac_ext
11881 cat >>conftest.$ac_ext <<_ACEOF
11882 /* end confdefs.h. */
11884 find_stack_direction ()
11886 static char *addr = 0;
11887 auto char dummy;
11888 if (addr == 0)
11890 addr = &dummy;
11891 return find_stack_direction ();
11893 else
11894 return (&dummy > addr) ? 1 : -1;
11898 main ()
11900 exit (find_stack_direction () < 0);
11902 _ACEOF
11903 rm -f conftest$ac_exeext
11904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11905 (eval $ac_link) 2>&5
11906 ac_status=$?
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11910 (eval $ac_try) 2>&5
11911 ac_status=$?
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); }; }; then
11914 ac_cv_c_stack_direction=1
11915 else
11916 echo "$as_me: program exited with status $ac_status" >&5
11917 echo "$as_me: failed program was:" >&5
11918 sed 's/^/| /' conftest.$ac_ext >&5
11920 ( exit $ac_status )
11921 ac_cv_c_stack_direction=-1
11923 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11926 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
11927 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
11929 cat >>confdefs.h <<_ACEOF
11930 #define STACK_DIRECTION $ac_cv_c_stack_direction
11931 _ACEOF
11941 for ac_func in sbrk utimes setmode getc_unlocked strcoll
11943 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11944 echo "$as_me:$LINENO: checking for $ac_func" >&5
11945 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11946 if eval "test \"\${$as_ac_var+set}\" = set"; then
11947 echo $ECHO_N "(cached) $ECHO_C" >&6
11948 else
11949 cat >conftest.$ac_ext <<_ACEOF
11950 /* confdefs.h. */
11951 _ACEOF
11952 cat confdefs.h >>conftest.$ac_ext
11953 cat >>conftest.$ac_ext <<_ACEOF
11954 /* end confdefs.h. */
11955 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11956 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11957 #define $ac_func innocuous_$ac_func
11959 /* System header to define __stub macros and hopefully few prototypes,
11960 which can conflict with char $ac_func (); below.
11961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11962 <limits.h> exists even on freestanding compilers. */
11964 #ifdef __STDC__
11965 # include <limits.h>
11966 #else
11967 # include <assert.h>
11968 #endif
11970 #undef $ac_func
11972 /* Override any gcc2 internal prototype to avoid an error. */
11973 #ifdef __cplusplus
11974 extern "C"
11976 #endif
11977 /* We use char because int might match the return type of a gcc2
11978 builtin and then its argument prototype would still apply. */
11979 char $ac_func ();
11980 /* The GNU C library defines this for functions which it implements
11981 to always fail with ENOSYS. Some functions are actually named
11982 something starting with __ and the normal name is an alias. */
11983 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11984 choke me
11985 #else
11986 char (*f) () = $ac_func;
11987 #endif
11988 #ifdef __cplusplus
11990 #endif
11993 main ()
11995 return f != $ac_func;
11997 return 0;
11999 _ACEOF
12000 rm -f conftest.$ac_objext conftest$ac_exeext
12001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12002 (eval $ac_link) 2>conftest.er1
12003 ac_status=$?
12004 grep -v '^ *+' conftest.er1 >conftest.err
12005 rm -f conftest.er1
12006 cat conftest.err >&5
12007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008 (exit $ac_status); } &&
12009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12011 (eval $ac_try) 2>&5
12012 ac_status=$?
12013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 (exit $ac_status); }; } &&
12015 { ac_try='test -s conftest$ac_exeext'
12016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12017 (eval $ac_try) 2>&5
12018 ac_status=$?
12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 (exit $ac_status); }; }; then
12021 eval "$as_ac_var=yes"
12022 else
12023 echo "$as_me: failed program was:" >&5
12024 sed 's/^/| /' conftest.$ac_ext >&5
12026 eval "$as_ac_var=no"
12028 rm -f conftest.err conftest.$ac_objext \
12029 conftest$ac_exeext conftest.$ac_ext
12031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12032 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12033 if test `eval echo '${'$as_ac_var'}'` = yes; then
12034 cat >>confdefs.h <<_ACEOF
12035 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12036 _ACEOF
12039 done
12041 echo "$as_me:$LINENO: checking for mkstemp" >&5
12042 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
12043 if test "${ac_cv_func_mkstemp+set}" = set; then
12044 echo $ECHO_N "(cached) $ECHO_C" >&6
12045 else
12046 cat >conftest.$ac_ext <<_ACEOF
12047 /* confdefs.h. */
12048 _ACEOF
12049 cat confdefs.h >>conftest.$ac_ext
12050 cat >>conftest.$ac_ext <<_ACEOF
12051 /* end confdefs.h. */
12052 /* Define mkstemp to an innocuous variant, in case <limits.h> declares mkstemp.
12053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12054 #define mkstemp innocuous_mkstemp
12056 /* System header to define __stub macros and hopefully few prototypes,
12057 which can conflict with char mkstemp (); below.
12058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12059 <limits.h> exists even on freestanding compilers. */
12061 #ifdef __STDC__
12062 # include <limits.h>
12063 #else
12064 # include <assert.h>
12065 #endif
12067 #undef mkstemp
12069 /* Override any gcc2 internal prototype to avoid an error. */
12070 #ifdef __cplusplus
12071 extern "C"
12073 #endif
12074 /* We use char because int might match the return type of a gcc2
12075 builtin and then its argument prototype would still apply. */
12076 char mkstemp ();
12077 /* The GNU C library defines this for functions which it implements
12078 to always fail with ENOSYS. Some functions are actually named
12079 something starting with __ and the normal name is an alias. */
12080 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
12081 choke me
12082 #else
12083 char (*f) () = mkstemp;
12084 #endif
12085 #ifdef __cplusplus
12087 #endif
12090 main ()
12092 return f != mkstemp;
12094 return 0;
12096 _ACEOF
12097 rm -f conftest.$ac_objext conftest$ac_exeext
12098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12099 (eval $ac_link) 2>conftest.er1
12100 ac_status=$?
12101 grep -v '^ *+' conftest.er1 >conftest.err
12102 rm -f conftest.er1
12103 cat conftest.err >&5
12104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12105 (exit $ac_status); } &&
12106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12108 (eval $ac_try) 2>&5
12109 ac_status=$?
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); }; } &&
12112 { ac_try='test -s conftest$ac_exeext'
12113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12114 (eval $ac_try) 2>&5
12115 ac_status=$?
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); }; }; then
12118 ac_cv_func_mkstemp=yes
12119 else
12120 echo "$as_me: failed program was:" >&5
12121 sed 's/^/| /' conftest.$ac_ext >&5
12123 ac_cv_func_mkstemp=no
12125 rm -f conftest.err conftest.$ac_objext \
12126 conftest$ac_exeext conftest.$ac_ext
12128 echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp" >&5
12129 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
12130 if test $ac_cv_func_mkstemp = yes; then
12132 cat >>confdefs.h <<\_ACEOF
12133 #define HAVE_MKSTEMP 1
12134 _ACEOF
12138 echo "$as_me:$LINENO: checking for mkdtemp" >&5
12139 echo $ECHO_N "checking for mkdtemp... $ECHO_C" >&6
12140 if test "${ac_cv_func_mkdtemp+set}" = set; then
12141 echo $ECHO_N "(cached) $ECHO_C" >&6
12142 else
12143 cat >conftest.$ac_ext <<_ACEOF
12144 /* confdefs.h. */
12145 _ACEOF
12146 cat confdefs.h >>conftest.$ac_ext
12147 cat >>conftest.$ac_ext <<_ACEOF
12148 /* end confdefs.h. */
12149 /* Define mkdtemp to an innocuous variant, in case <limits.h> declares mkdtemp.
12150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12151 #define mkdtemp innocuous_mkdtemp
12153 /* System header to define __stub macros and hopefully few prototypes,
12154 which can conflict with char mkdtemp (); below.
12155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12156 <limits.h> exists even on freestanding compilers. */
12158 #ifdef __STDC__
12159 # include <limits.h>
12160 #else
12161 # include <assert.h>
12162 #endif
12164 #undef mkdtemp
12166 /* Override any gcc2 internal prototype to avoid an error. */
12167 #ifdef __cplusplus
12168 extern "C"
12170 #endif
12171 /* We use char because int might match the return type of a gcc2
12172 builtin and then its argument prototype would still apply. */
12173 char mkdtemp ();
12174 /* The GNU C library defines this for functions which it implements
12175 to always fail with ENOSYS. Some functions are actually named
12176 something starting with __ and the normal name is an alias. */
12177 #if defined (__stub_mkdtemp) || defined (__stub___mkdtemp)
12178 choke me
12179 #else
12180 char (*f) () = mkdtemp;
12181 #endif
12182 #ifdef __cplusplus
12184 #endif
12187 main ()
12189 return f != mkdtemp;
12191 return 0;
12193 _ACEOF
12194 rm -f conftest.$ac_objext conftest$ac_exeext
12195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12196 (eval $ac_link) 2>conftest.er1
12197 ac_status=$?
12198 grep -v '^ *+' conftest.er1 >conftest.err
12199 rm -f conftest.er1
12200 cat conftest.err >&5
12201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202 (exit $ac_status); } &&
12203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12205 (eval $ac_try) 2>&5
12206 ac_status=$?
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); }; } &&
12209 { ac_try='test -s conftest$ac_exeext'
12210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12211 (eval $ac_try) 2>&5
12212 ac_status=$?
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); }; }; then
12215 ac_cv_func_mkdtemp=yes
12216 else
12217 echo "$as_me: failed program was:" >&5
12218 sed 's/^/| /' conftest.$ac_ext >&5
12220 ac_cv_func_mkdtemp=no
12222 rm -f conftest.err conftest.$ac_objext \
12223 conftest$ac_exeext conftest.$ac_ext
12225 echo "$as_me:$LINENO: result: $ac_cv_func_mkdtemp" >&5
12226 echo "${ECHO_T}$ac_cv_func_mkdtemp" >&6
12227 if test $ac_cv_func_mkdtemp = yes; then
12229 cat >>confdefs.h <<\_ACEOF
12230 #define HAVE_MKDTEMP 1
12231 _ACEOF
12236 # Check whether fopen64 is available and whether _LARGEFILE64_SOURCE
12237 # needs to be defined for it
12238 echo "$as_me:$LINENO: checking for fopen64" >&5
12239 echo $ECHO_N "checking for fopen64... $ECHO_C" >&6
12240 if test "${bu_cv_have_fopen64+set}" = set; then
12241 echo $ECHO_N "(cached) $ECHO_C" >&6
12242 else
12243 cat >conftest.$ac_ext <<_ACEOF
12244 /* confdefs.h. */
12245 _ACEOF
12246 cat confdefs.h >>conftest.$ac_ext
12247 cat >>conftest.$ac_ext <<_ACEOF
12248 /* end confdefs.h. */
12249 #include <stdio.h>
12251 main ()
12253 FILE *f = fopen64 ("/tmp/foo","r");
12255 return 0;
12257 _ACEOF
12258 rm -f conftest.$ac_objext conftest$ac_exeext
12259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12260 (eval $ac_link) 2>conftest.er1
12261 ac_status=$?
12262 grep -v '^ *+' conftest.er1 >conftest.err
12263 rm -f conftest.er1
12264 cat conftest.err >&5
12265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266 (exit $ac_status); } &&
12267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12269 (eval $ac_try) 2>&5
12270 ac_status=$?
12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272 (exit $ac_status); }; } &&
12273 { ac_try='test -s conftest$ac_exeext'
12274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12275 (eval $ac_try) 2>&5
12276 ac_status=$?
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); }; }; then
12279 bu_cv_have_fopen64=yes
12280 else
12281 echo "$as_me: failed program was:" >&5
12282 sed 's/^/| /' conftest.$ac_ext >&5
12284 saved_CPPFLAGS=$CPPFLAGS
12285 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
12286 cat >conftest.$ac_ext <<_ACEOF
12287 /* confdefs.h. */
12288 _ACEOF
12289 cat confdefs.h >>conftest.$ac_ext
12290 cat >>conftest.$ac_ext <<_ACEOF
12291 /* end confdefs.h. */
12292 #include <stdio.h>
12294 main ()
12296 FILE *f = fopen64 ("/tmp/foo","r");
12298 return 0;
12300 _ACEOF
12301 rm -f conftest.$ac_objext conftest$ac_exeext
12302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12303 (eval $ac_link) 2>conftest.er1
12304 ac_status=$?
12305 grep -v '^ *+' conftest.er1 >conftest.err
12306 rm -f conftest.er1
12307 cat conftest.err >&5
12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); } &&
12310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12312 (eval $ac_try) 2>&5
12313 ac_status=$?
12314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315 (exit $ac_status); }; } &&
12316 { ac_try='test -s conftest$ac_exeext'
12317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12318 (eval $ac_try) 2>&5
12319 ac_status=$?
12320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321 (exit $ac_status); }; }; then
12322 bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE"
12323 else
12324 echo "$as_me: failed program was:" >&5
12325 sed 's/^/| /' conftest.$ac_ext >&5
12327 bu_cv_have_fopen64=no
12329 rm -f conftest.err conftest.$ac_objext \
12330 conftest$ac_exeext conftest.$ac_ext
12331 CPPFLAGS=$saved_CPPFLAGS
12333 rm -f conftest.err conftest.$ac_objext \
12334 conftest$ac_exeext conftest.$ac_ext
12337 echo "$as_me:$LINENO: result: $bu_cv_have_fopen64" >&5
12338 echo "${ECHO_T}$bu_cv_have_fopen64" >&6
12339 if test "$bu_cv_have_fopen64" != no; then
12341 cat >>confdefs.h <<\_ACEOF
12342 #define HAVE_FOPEN64 1
12343 _ACEOF
12346 echo "$as_me:$LINENO: checking for stat64" >&5
12347 echo $ECHO_N "checking for stat64... $ECHO_C" >&6
12348 if test "${bu_cv_have_stat64+set}" = set; then
12349 echo $ECHO_N "(cached) $ECHO_C" >&6
12350 else
12351 cat >conftest.$ac_ext <<_ACEOF
12352 /* confdefs.h. */
12353 _ACEOF
12354 cat confdefs.h >>conftest.$ac_ext
12355 cat >>conftest.$ac_ext <<_ACEOF
12356 /* end confdefs.h. */
12357 #include <sys/stat.h>
12359 main ()
12361 struct stat64 st; stat64 ("/tmp/foo", &st);
12363 return 0;
12365 _ACEOF
12366 rm -f conftest.$ac_objext conftest$ac_exeext
12367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12368 (eval $ac_link) 2>conftest.er1
12369 ac_status=$?
12370 grep -v '^ *+' conftest.er1 >conftest.err
12371 rm -f conftest.er1
12372 cat conftest.err >&5
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); } &&
12375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12377 (eval $ac_try) 2>&5
12378 ac_status=$?
12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); }; } &&
12381 { ac_try='test -s conftest$ac_exeext'
12382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12383 (eval $ac_try) 2>&5
12384 ac_status=$?
12385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386 (exit $ac_status); }; }; then
12387 bu_cv_have_stat64=yes
12388 else
12389 echo "$as_me: failed program was:" >&5
12390 sed 's/^/| /' conftest.$ac_ext >&5
12392 saved_CPPFLAGS=$CPPFLAGS
12393 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
12394 cat >conftest.$ac_ext <<_ACEOF
12395 /* confdefs.h. */
12396 _ACEOF
12397 cat confdefs.h >>conftest.$ac_ext
12398 cat >>conftest.$ac_ext <<_ACEOF
12399 /* end confdefs.h. */
12400 #include <sys/stat.h>
12402 main ()
12404 struct stat64 st; stat64 ("/tmp/foo", &st);
12406 return 0;
12408 _ACEOF
12409 rm -f conftest.$ac_objext conftest$ac_exeext
12410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12411 (eval $ac_link) 2>conftest.er1
12412 ac_status=$?
12413 grep -v '^ *+' conftest.er1 >conftest.err
12414 rm -f conftest.er1
12415 cat conftest.err >&5
12416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417 (exit $ac_status); } &&
12418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12420 (eval $ac_try) 2>&5
12421 ac_status=$?
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); }; } &&
12424 { ac_try='test -s conftest$ac_exeext'
12425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12426 (eval $ac_try) 2>&5
12427 ac_status=$?
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); }; }; then
12430 bu_cv_have_stat64="need -D_LARGEFILE64_SOURCE"
12431 else
12432 echo "$as_me: failed program was:" >&5
12433 sed 's/^/| /' conftest.$ac_ext >&5
12435 bu_cv_have_stat64=no
12437 rm -f conftest.err conftest.$ac_objext \
12438 conftest$ac_exeext conftest.$ac_ext
12439 CPPFLAGS=$saved_CPPFLAGS
12441 rm -f conftest.err conftest.$ac_objext \
12442 conftest$ac_exeext conftest.$ac_ext
12445 echo "$as_me:$LINENO: result: $bu_cv_have_stat64" >&5
12446 echo "${ECHO_T}$bu_cv_have_stat64" >&6
12447 if test "$bu_cv_have_stat64" != no; then
12449 cat >>confdefs.h <<\_ACEOF
12450 #define HAVE_STAT64 1
12451 _ACEOF
12454 if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE" \
12455 || test "$bu_cv_have_stat64" = "need -D_LARGEFILE64_SOURCE"; then
12457 cat >>confdefs.h <<\_ACEOF
12458 #define _LARGEFILE64_SOURCE 1
12459 _ACEOF
12461 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
12464 # Some systems have frexp only in -lm, not in -lc.
12465 echo "$as_me:$LINENO: checking for library containing frexp" >&5
12466 echo $ECHO_N "checking for library containing frexp... $ECHO_C" >&6
12467 if test "${ac_cv_search_frexp+set}" = set; then
12468 echo $ECHO_N "(cached) $ECHO_C" >&6
12469 else
12470 ac_func_search_save_LIBS=$LIBS
12471 ac_cv_search_frexp=no
12472 cat >conftest.$ac_ext <<_ACEOF
12473 /* confdefs.h. */
12474 _ACEOF
12475 cat confdefs.h >>conftest.$ac_ext
12476 cat >>conftest.$ac_ext <<_ACEOF
12477 /* end confdefs.h. */
12479 /* Override any gcc2 internal prototype to avoid an error. */
12480 #ifdef __cplusplus
12481 extern "C"
12482 #endif
12483 /* We use char because int might match the return type of a gcc2
12484 builtin and then its argument prototype would still apply. */
12485 char frexp ();
12487 main ()
12489 frexp ();
12491 return 0;
12493 _ACEOF
12494 rm -f conftest.$ac_objext conftest$ac_exeext
12495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12496 (eval $ac_link) 2>conftest.er1
12497 ac_status=$?
12498 grep -v '^ *+' conftest.er1 >conftest.err
12499 rm -f conftest.er1
12500 cat conftest.err >&5
12501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502 (exit $ac_status); } &&
12503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12505 (eval $ac_try) 2>&5
12506 ac_status=$?
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); }; } &&
12509 { ac_try='test -s conftest$ac_exeext'
12510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12511 (eval $ac_try) 2>&5
12512 ac_status=$?
12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); }; }; then
12515 ac_cv_search_frexp="none required"
12516 else
12517 echo "$as_me: failed program was:" >&5
12518 sed 's/^/| /' conftest.$ac_ext >&5
12521 rm -f conftest.err conftest.$ac_objext \
12522 conftest$ac_exeext conftest.$ac_ext
12523 if test "$ac_cv_search_frexp" = no; then
12524 for ac_lib in m; do
12525 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12526 cat >conftest.$ac_ext <<_ACEOF
12527 /* confdefs.h. */
12528 _ACEOF
12529 cat confdefs.h >>conftest.$ac_ext
12530 cat >>conftest.$ac_ext <<_ACEOF
12531 /* end confdefs.h. */
12533 /* Override any gcc2 internal prototype to avoid an error. */
12534 #ifdef __cplusplus
12535 extern "C"
12536 #endif
12537 /* We use char because int might match the return type of a gcc2
12538 builtin and then its argument prototype would still apply. */
12539 char frexp ();
12541 main ()
12543 frexp ();
12545 return 0;
12547 _ACEOF
12548 rm -f conftest.$ac_objext conftest$ac_exeext
12549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12550 (eval $ac_link) 2>conftest.er1
12551 ac_status=$?
12552 grep -v '^ *+' conftest.er1 >conftest.err
12553 rm -f conftest.er1
12554 cat conftest.err >&5
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); } &&
12557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12559 (eval $ac_try) 2>&5
12560 ac_status=$?
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); }; } &&
12563 { ac_try='test -s conftest$ac_exeext'
12564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12565 (eval $ac_try) 2>&5
12566 ac_status=$?
12567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568 (exit $ac_status); }; }; then
12569 ac_cv_search_frexp="-l$ac_lib"
12570 break
12571 else
12572 echo "$as_me: failed program was:" >&5
12573 sed 's/^/| /' conftest.$ac_ext >&5
12576 rm -f conftest.err conftest.$ac_objext \
12577 conftest$ac_exeext conftest.$ac_ext
12578 done
12580 LIBS=$ac_func_search_save_LIBS
12582 echo "$as_me:$LINENO: result: $ac_cv_search_frexp" >&5
12583 echo "${ECHO_T}$ac_cv_search_frexp" >&6
12584 if test "$ac_cv_search_frexp" != no; then
12585 test "$ac_cv_search_frexp" = "none required" || LIBS="$ac_cv_search_frexp $LIBS"
12590 echo "$as_me:$LINENO: checking for time_t in time.h" >&5
12591 echo $ECHO_N "checking for time_t in time.h... $ECHO_C" >&6
12592 if test "${bu_cv_decl_time_t_time_h+set}" = set; then
12593 echo $ECHO_N "(cached) $ECHO_C" >&6
12594 else
12595 cat >conftest.$ac_ext <<_ACEOF
12596 /* confdefs.h. */
12597 _ACEOF
12598 cat confdefs.h >>conftest.$ac_ext
12599 cat >>conftest.$ac_ext <<_ACEOF
12600 /* end confdefs.h. */
12601 #include <time.h>
12603 main ()
12605 time_t i;
12607 return 0;
12609 _ACEOF
12610 rm -f conftest.$ac_objext
12611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12612 (eval $ac_compile) 2>conftest.er1
12613 ac_status=$?
12614 grep -v '^ *+' conftest.er1 >conftest.err
12615 rm -f conftest.er1
12616 cat conftest.err >&5
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); } &&
12619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12621 (eval $ac_try) 2>&5
12622 ac_status=$?
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); }; } &&
12625 { ac_try='test -s conftest.$ac_objext'
12626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12627 (eval $ac_try) 2>&5
12628 ac_status=$?
12629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630 (exit $ac_status); }; }; then
12631 bu_cv_decl_time_t_time_h=yes
12632 else
12633 echo "$as_me: failed program was:" >&5
12634 sed 's/^/| /' conftest.$ac_ext >&5
12636 bu_cv_decl_time_t_time_h=no
12638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12641 echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_time_h" >&5
12642 echo "${ECHO_T}$bu_cv_decl_time_t_time_h" >&6
12643 if test $bu_cv_decl_time_t_time_h = yes; then
12645 cat >>confdefs.h <<\_ACEOF
12646 #define HAVE_TIME_T_IN_TIME_H 1
12647 _ACEOF
12651 echo "$as_me:$LINENO: checking for time_t in sys/types.h" >&5
12652 echo $ECHO_N "checking for time_t in sys/types.h... $ECHO_C" >&6
12653 if test "${bu_cv_decl_time_t_types_h+set}" = set; then
12654 echo $ECHO_N "(cached) $ECHO_C" >&6
12655 else
12656 cat >conftest.$ac_ext <<_ACEOF
12657 /* confdefs.h. */
12658 _ACEOF
12659 cat confdefs.h >>conftest.$ac_ext
12660 cat >>conftest.$ac_ext <<_ACEOF
12661 /* end confdefs.h. */
12662 #include <sys/types.h>
12664 main ()
12666 time_t i;
12668 return 0;
12670 _ACEOF
12671 rm -f conftest.$ac_objext
12672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12673 (eval $ac_compile) 2>conftest.er1
12674 ac_status=$?
12675 grep -v '^ *+' conftest.er1 >conftest.err
12676 rm -f conftest.er1
12677 cat conftest.err >&5
12678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679 (exit $ac_status); } &&
12680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12682 (eval $ac_try) 2>&5
12683 ac_status=$?
12684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685 (exit $ac_status); }; } &&
12686 { ac_try='test -s conftest.$ac_objext'
12687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12688 (eval $ac_try) 2>&5
12689 ac_status=$?
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); }; }; then
12692 bu_cv_decl_time_t_types_h=yes
12693 else
12694 echo "$as_me: failed program was:" >&5
12695 sed 's/^/| /' conftest.$ac_ext >&5
12697 bu_cv_decl_time_t_types_h=no
12699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12702 echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_types_h" >&5
12703 echo "${ECHO_T}$bu_cv_decl_time_t_types_h" >&6
12704 if test $bu_cv_decl_time_t_types_h = yes; then
12706 cat >>confdefs.h <<\_ACEOF
12707 #define HAVE_TIME_T_IN_TYPES_H 1
12708 _ACEOF
12712 echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
12713 echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
12714 if test "${bu_cv_decl_getopt_unistd_h+set}" = set; then
12715 echo $ECHO_N "(cached) $ECHO_C" >&6
12716 else
12717 cat >conftest.$ac_ext <<_ACEOF
12718 /* confdefs.h. */
12719 _ACEOF
12720 cat confdefs.h >>conftest.$ac_ext
12721 cat >>conftest.$ac_ext <<_ACEOF
12722 /* end confdefs.h. */
12723 #include <unistd.h>
12725 main ()
12727 extern int getopt (int, char *const*, const char *);
12729 return 0;
12731 _ACEOF
12732 rm -f conftest.$ac_objext
12733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12734 (eval $ac_compile) 2>conftest.er1
12735 ac_status=$?
12736 grep -v '^ *+' conftest.er1 >conftest.err
12737 rm -f conftest.er1
12738 cat conftest.err >&5
12739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12740 (exit $ac_status); } &&
12741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12743 (eval $ac_try) 2>&5
12744 ac_status=$?
12745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746 (exit $ac_status); }; } &&
12747 { ac_try='test -s conftest.$ac_objext'
12748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12749 (eval $ac_try) 2>&5
12750 ac_status=$?
12751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752 (exit $ac_status); }; }; then
12753 bu_cv_decl_getopt_unistd_h=yes
12754 else
12755 echo "$as_me: failed program was:" >&5
12756 sed 's/^/| /' conftest.$ac_ext >&5
12758 bu_cv_decl_getopt_unistd_h=no
12760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12763 echo "$as_me:$LINENO: result: $bu_cv_decl_getopt_unistd_h" >&5
12764 echo "${ECHO_T}$bu_cv_decl_getopt_unistd_h" >&6
12765 if test $bu_cv_decl_getopt_unistd_h = yes; then
12767 cat >>confdefs.h <<\_ACEOF
12768 #define HAVE_DECL_GETOPT 1
12769 _ACEOF
12773 # Under Next 3.2 <utime.h> apparently does not define struct utimbuf
12774 # by default.
12775 echo "$as_me:$LINENO: checking for utime.h" >&5
12776 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
12777 if test "${bu_cv_header_utime_h+set}" = set; then
12778 echo $ECHO_N "(cached) $ECHO_C" >&6
12779 else
12780 cat >conftest.$ac_ext <<_ACEOF
12781 /* confdefs.h. */
12782 _ACEOF
12783 cat confdefs.h >>conftest.$ac_ext
12784 cat >>conftest.$ac_ext <<_ACEOF
12785 /* end confdefs.h. */
12786 #include <sys/types.h>
12787 #ifdef HAVE_TIME_H
12788 #include <time.h>
12789 #endif
12790 #include <utime.h>
12792 main ()
12794 struct utimbuf s;
12796 return 0;
12798 _ACEOF
12799 rm -f conftest.$ac_objext
12800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12801 (eval $ac_compile) 2>conftest.er1
12802 ac_status=$?
12803 grep -v '^ *+' conftest.er1 >conftest.err
12804 rm -f conftest.er1
12805 cat conftest.err >&5
12806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807 (exit $ac_status); } &&
12808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12810 (eval $ac_try) 2>&5
12811 ac_status=$?
12812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813 (exit $ac_status); }; } &&
12814 { ac_try='test -s conftest.$ac_objext'
12815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12816 (eval $ac_try) 2>&5
12817 ac_status=$?
12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819 (exit $ac_status); }; }; then
12820 bu_cv_header_utime_h=yes
12821 else
12822 echo "$as_me: failed program was:" >&5
12823 sed 's/^/| /' conftest.$ac_ext >&5
12825 bu_cv_header_utime_h=no
12827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12830 echo "$as_me:$LINENO: result: $bu_cv_header_utime_h" >&5
12831 echo "${ECHO_T}$bu_cv_header_utime_h" >&6
12832 if test $bu_cv_header_utime_h = yes; then
12834 cat >>confdefs.h <<\_ACEOF
12835 #define HAVE_GOOD_UTIME_H 1
12836 _ACEOF
12840 echo "$as_me:$LINENO: checking whether fprintf is declared" >&5
12841 echo $ECHO_N "checking whether fprintf is declared... $ECHO_C" >&6
12842 if test "${ac_cv_have_decl_fprintf+set}" = set; then
12843 echo $ECHO_N "(cached) $ECHO_C" >&6
12844 else
12845 cat >conftest.$ac_ext <<_ACEOF
12846 /* confdefs.h. */
12847 _ACEOF
12848 cat confdefs.h >>conftest.$ac_ext
12849 cat >>conftest.$ac_ext <<_ACEOF
12850 /* end confdefs.h. */
12851 $ac_includes_default
12853 main ()
12855 #ifndef fprintf
12856 char *p = (char *) fprintf;
12857 #endif
12860 return 0;
12862 _ACEOF
12863 rm -f conftest.$ac_objext
12864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12865 (eval $ac_compile) 2>conftest.er1
12866 ac_status=$?
12867 grep -v '^ *+' conftest.er1 >conftest.err
12868 rm -f conftest.er1
12869 cat conftest.err >&5
12870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871 (exit $ac_status); } &&
12872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12874 (eval $ac_try) 2>&5
12875 ac_status=$?
12876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877 (exit $ac_status); }; } &&
12878 { ac_try='test -s conftest.$ac_objext'
12879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12880 (eval $ac_try) 2>&5
12881 ac_status=$?
12882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); }; }; then
12884 ac_cv_have_decl_fprintf=yes
12885 else
12886 echo "$as_me: failed program was:" >&5
12887 sed 's/^/| /' conftest.$ac_ext >&5
12889 ac_cv_have_decl_fprintf=no
12891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12893 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf" >&5
12894 echo "${ECHO_T}$ac_cv_have_decl_fprintf" >&6
12895 if test $ac_cv_have_decl_fprintf = yes; then
12897 cat >>confdefs.h <<_ACEOF
12898 #define HAVE_DECL_FPRINTF 1
12899 _ACEOF
12902 else
12903 cat >>confdefs.h <<_ACEOF
12904 #define HAVE_DECL_FPRINTF 0
12905 _ACEOF
12909 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
12910 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
12911 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
12912 echo $ECHO_N "(cached) $ECHO_C" >&6
12913 else
12914 cat >conftest.$ac_ext <<_ACEOF
12915 /* confdefs.h. */
12916 _ACEOF
12917 cat confdefs.h >>conftest.$ac_ext
12918 cat >>conftest.$ac_ext <<_ACEOF
12919 /* end confdefs.h. */
12920 $ac_includes_default
12922 main ()
12924 #ifndef stpcpy
12925 char *p = (char *) stpcpy;
12926 #endif
12929 return 0;
12931 _ACEOF
12932 rm -f conftest.$ac_objext
12933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12934 (eval $ac_compile) 2>conftest.er1
12935 ac_status=$?
12936 grep -v '^ *+' conftest.er1 >conftest.err
12937 rm -f conftest.er1
12938 cat conftest.err >&5
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); } &&
12941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12943 (eval $ac_try) 2>&5
12944 ac_status=$?
12945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); }; } &&
12947 { ac_try='test -s conftest.$ac_objext'
12948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12949 (eval $ac_try) 2>&5
12950 ac_status=$?
12951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952 (exit $ac_status); }; }; then
12953 ac_cv_have_decl_stpcpy=yes
12954 else
12955 echo "$as_me: failed program was:" >&5
12956 sed 's/^/| /' conftest.$ac_ext >&5
12958 ac_cv_have_decl_stpcpy=no
12960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12962 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
12963 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
12964 if test $ac_cv_have_decl_stpcpy = yes; then
12966 cat >>confdefs.h <<_ACEOF
12967 #define HAVE_DECL_STPCPY 1
12968 _ACEOF
12971 else
12972 cat >>confdefs.h <<_ACEOF
12973 #define HAVE_DECL_STPCPY 0
12974 _ACEOF
12978 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
12979 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
12980 if test "${ac_cv_have_decl_strstr+set}" = set; then
12981 echo $ECHO_N "(cached) $ECHO_C" >&6
12982 else
12983 cat >conftest.$ac_ext <<_ACEOF
12984 /* confdefs.h. */
12985 _ACEOF
12986 cat confdefs.h >>conftest.$ac_ext
12987 cat >>conftest.$ac_ext <<_ACEOF
12988 /* end confdefs.h. */
12989 $ac_includes_default
12991 main ()
12993 #ifndef strstr
12994 char *p = (char *) strstr;
12995 #endif
12998 return 0;
13000 _ACEOF
13001 rm -f conftest.$ac_objext
13002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13003 (eval $ac_compile) 2>conftest.er1
13004 ac_status=$?
13005 grep -v '^ *+' conftest.er1 >conftest.err
13006 rm -f conftest.er1
13007 cat conftest.err >&5
13008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009 (exit $ac_status); } &&
13010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13012 (eval $ac_try) 2>&5
13013 ac_status=$?
13014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015 (exit $ac_status); }; } &&
13016 { ac_try='test -s conftest.$ac_objext'
13017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13018 (eval $ac_try) 2>&5
13019 ac_status=$?
13020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021 (exit $ac_status); }; }; then
13022 ac_cv_have_decl_strstr=yes
13023 else
13024 echo "$as_me: failed program was:" >&5
13025 sed 's/^/| /' conftest.$ac_ext >&5
13027 ac_cv_have_decl_strstr=no
13029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13031 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
13032 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
13033 if test $ac_cv_have_decl_strstr = yes; then
13035 cat >>confdefs.h <<_ACEOF
13036 #define HAVE_DECL_STRSTR 1
13037 _ACEOF
13040 else
13041 cat >>confdefs.h <<_ACEOF
13042 #define HAVE_DECL_STRSTR 0
13043 _ACEOF
13047 echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
13048 echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
13049 if test "${ac_cv_have_decl_sbrk+set}" = set; then
13050 echo $ECHO_N "(cached) $ECHO_C" >&6
13051 else
13052 cat >conftest.$ac_ext <<_ACEOF
13053 /* confdefs.h. */
13054 _ACEOF
13055 cat confdefs.h >>conftest.$ac_ext
13056 cat >>conftest.$ac_ext <<_ACEOF
13057 /* end confdefs.h. */
13058 $ac_includes_default
13060 main ()
13062 #ifndef sbrk
13063 char *p = (char *) sbrk;
13064 #endif
13067 return 0;
13069 _ACEOF
13070 rm -f conftest.$ac_objext
13071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13072 (eval $ac_compile) 2>conftest.er1
13073 ac_status=$?
13074 grep -v '^ *+' conftest.er1 >conftest.err
13075 rm -f conftest.er1
13076 cat conftest.err >&5
13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); } &&
13079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13081 (eval $ac_try) 2>&5
13082 ac_status=$?
13083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084 (exit $ac_status); }; } &&
13085 { ac_try='test -s conftest.$ac_objext'
13086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13087 (eval $ac_try) 2>&5
13088 ac_status=$?
13089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090 (exit $ac_status); }; }; then
13091 ac_cv_have_decl_sbrk=yes
13092 else
13093 echo "$as_me: failed program was:" >&5
13094 sed 's/^/| /' conftest.$ac_ext >&5
13096 ac_cv_have_decl_sbrk=no
13098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13100 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
13101 echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
13102 if test $ac_cv_have_decl_sbrk = yes; then
13104 cat >>confdefs.h <<_ACEOF
13105 #define HAVE_DECL_SBRK 1
13106 _ACEOF
13109 else
13110 cat >>confdefs.h <<_ACEOF
13111 #define HAVE_DECL_SBRK 0
13112 _ACEOF
13116 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
13117 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
13118 if test "${ac_cv_have_decl_getenv+set}" = set; then
13119 echo $ECHO_N "(cached) $ECHO_C" >&6
13120 else
13121 cat >conftest.$ac_ext <<_ACEOF
13122 /* confdefs.h. */
13123 _ACEOF
13124 cat confdefs.h >>conftest.$ac_ext
13125 cat >>conftest.$ac_ext <<_ACEOF
13126 /* end confdefs.h. */
13127 $ac_includes_default
13129 main ()
13131 #ifndef getenv
13132 char *p = (char *) getenv;
13133 #endif
13136 return 0;
13138 _ACEOF
13139 rm -f conftest.$ac_objext
13140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13141 (eval $ac_compile) 2>conftest.er1
13142 ac_status=$?
13143 grep -v '^ *+' conftest.er1 >conftest.err
13144 rm -f conftest.er1
13145 cat conftest.err >&5
13146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147 (exit $ac_status); } &&
13148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13150 (eval $ac_try) 2>&5
13151 ac_status=$?
13152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153 (exit $ac_status); }; } &&
13154 { ac_try='test -s conftest.$ac_objext'
13155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13156 (eval $ac_try) 2>&5
13157 ac_status=$?
13158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 (exit $ac_status); }; }; then
13160 ac_cv_have_decl_getenv=yes
13161 else
13162 echo "$as_me: failed program was:" >&5
13163 sed 's/^/| /' conftest.$ac_ext >&5
13165 ac_cv_have_decl_getenv=no
13167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13169 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
13170 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
13171 if test $ac_cv_have_decl_getenv = yes; then
13173 cat >>confdefs.h <<_ACEOF
13174 #define HAVE_DECL_GETENV 1
13175 _ACEOF
13178 else
13179 cat >>confdefs.h <<_ACEOF
13180 #define HAVE_DECL_GETENV 0
13181 _ACEOF
13185 echo "$as_me:$LINENO: checking whether environ is declared" >&5
13186 echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6
13187 if test "${ac_cv_have_decl_environ+set}" = set; then
13188 echo $ECHO_N "(cached) $ECHO_C" >&6
13189 else
13190 cat >conftest.$ac_ext <<_ACEOF
13191 /* confdefs.h. */
13192 _ACEOF
13193 cat confdefs.h >>conftest.$ac_ext
13194 cat >>conftest.$ac_ext <<_ACEOF
13195 /* end confdefs.h. */
13196 $ac_includes_default
13198 main ()
13200 #ifndef environ
13201 char *p = (char *) environ;
13202 #endif
13205 return 0;
13207 _ACEOF
13208 rm -f conftest.$ac_objext
13209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13210 (eval $ac_compile) 2>conftest.er1
13211 ac_status=$?
13212 grep -v '^ *+' conftest.er1 >conftest.err
13213 rm -f conftest.er1
13214 cat conftest.err >&5
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); } &&
13217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13219 (eval $ac_try) 2>&5
13220 ac_status=$?
13221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13222 (exit $ac_status); }; } &&
13223 { ac_try='test -s conftest.$ac_objext'
13224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13225 (eval $ac_try) 2>&5
13226 ac_status=$?
13227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228 (exit $ac_status); }; }; then
13229 ac_cv_have_decl_environ=yes
13230 else
13231 echo "$as_me: failed program was:" >&5
13232 sed 's/^/| /' conftest.$ac_ext >&5
13234 ac_cv_have_decl_environ=no
13236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13238 echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
13239 echo "${ECHO_T}$ac_cv_have_decl_environ" >&6
13240 if test $ac_cv_have_decl_environ = yes; then
13242 cat >>confdefs.h <<_ACEOF
13243 #define HAVE_DECL_ENVIRON 1
13244 _ACEOF
13247 else
13248 cat >>confdefs.h <<_ACEOF
13249 #define HAVE_DECL_ENVIRON 0
13250 _ACEOF
13254 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
13255 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
13256 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
13257 echo $ECHO_N "(cached) $ECHO_C" >&6
13258 else
13259 cat >conftest.$ac_ext <<_ACEOF
13260 /* confdefs.h. */
13261 _ACEOF
13262 cat confdefs.h >>conftest.$ac_ext
13263 cat >>conftest.$ac_ext <<_ACEOF
13264 /* end confdefs.h. */
13265 $ac_includes_default
13267 main ()
13269 #ifndef getc_unlocked
13270 char *p = (char *) getc_unlocked;
13271 #endif
13274 return 0;
13276 _ACEOF
13277 rm -f conftest.$ac_objext
13278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13279 (eval $ac_compile) 2>conftest.er1
13280 ac_status=$?
13281 grep -v '^ *+' conftest.er1 >conftest.err
13282 rm -f conftest.er1
13283 cat conftest.err >&5
13284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285 (exit $ac_status); } &&
13286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13288 (eval $ac_try) 2>&5
13289 ac_status=$?
13290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291 (exit $ac_status); }; } &&
13292 { ac_try='test -s conftest.$ac_objext'
13293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13294 (eval $ac_try) 2>&5
13295 ac_status=$?
13296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13297 (exit $ac_status); }; }; then
13298 ac_cv_have_decl_getc_unlocked=yes
13299 else
13300 echo "$as_me: failed program was:" >&5
13301 sed 's/^/| /' conftest.$ac_ext >&5
13303 ac_cv_have_decl_getc_unlocked=no
13305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13307 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
13308 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
13309 if test $ac_cv_have_decl_getc_unlocked = yes; then
13311 cat >>confdefs.h <<_ACEOF
13312 #define HAVE_DECL_GETC_UNLOCKED 1
13313 _ACEOF
13316 else
13317 cat >>confdefs.h <<_ACEOF
13318 #define HAVE_DECL_GETC_UNLOCKED 0
13319 _ACEOF
13323 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
13324 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
13325 if test "${ac_cv_have_decl_snprintf+set}" = set; then
13326 echo $ECHO_N "(cached) $ECHO_C" >&6
13327 else
13328 cat >conftest.$ac_ext <<_ACEOF
13329 /* confdefs.h. */
13330 _ACEOF
13331 cat confdefs.h >>conftest.$ac_ext
13332 cat >>conftest.$ac_ext <<_ACEOF
13333 /* end confdefs.h. */
13334 $ac_includes_default
13336 main ()
13338 #ifndef snprintf
13339 char *p = (char *) snprintf;
13340 #endif
13343 return 0;
13345 _ACEOF
13346 rm -f conftest.$ac_objext
13347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13348 (eval $ac_compile) 2>conftest.er1
13349 ac_status=$?
13350 grep -v '^ *+' conftest.er1 >conftest.err
13351 rm -f conftest.er1
13352 cat conftest.err >&5
13353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354 (exit $ac_status); } &&
13355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13357 (eval $ac_try) 2>&5
13358 ac_status=$?
13359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360 (exit $ac_status); }; } &&
13361 { ac_try='test -s conftest.$ac_objext'
13362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13363 (eval $ac_try) 2>&5
13364 ac_status=$?
13365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366 (exit $ac_status); }; }; then
13367 ac_cv_have_decl_snprintf=yes
13368 else
13369 echo "$as_me: failed program was:" >&5
13370 sed 's/^/| /' conftest.$ac_ext >&5
13372 ac_cv_have_decl_snprintf=no
13374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13376 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
13377 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
13378 if test $ac_cv_have_decl_snprintf = yes; then
13380 cat >>confdefs.h <<_ACEOF
13381 #define HAVE_DECL_SNPRINTF 1
13382 _ACEOF
13385 else
13386 cat >>confdefs.h <<_ACEOF
13387 #define HAVE_DECL_SNPRINTF 0
13388 _ACEOF
13392 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
13393 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
13394 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
13395 echo $ECHO_N "(cached) $ECHO_C" >&6
13396 else
13397 cat >conftest.$ac_ext <<_ACEOF
13398 /* confdefs.h. */
13399 _ACEOF
13400 cat confdefs.h >>conftest.$ac_ext
13401 cat >>conftest.$ac_ext <<_ACEOF
13402 /* end confdefs.h. */
13403 $ac_includes_default
13405 main ()
13407 #ifndef vsnprintf
13408 char *p = (char *) vsnprintf;
13409 #endif
13412 return 0;
13414 _ACEOF
13415 rm -f conftest.$ac_objext
13416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13417 (eval $ac_compile) 2>conftest.er1
13418 ac_status=$?
13419 grep -v '^ *+' conftest.er1 >conftest.err
13420 rm -f conftest.er1
13421 cat conftest.err >&5
13422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423 (exit $ac_status); } &&
13424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13426 (eval $ac_try) 2>&5
13427 ac_status=$?
13428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); }; } &&
13430 { ac_try='test -s conftest.$ac_objext'
13431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13432 (eval $ac_try) 2>&5
13433 ac_status=$?
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); }; }; then
13436 ac_cv_have_decl_vsnprintf=yes
13437 else
13438 echo "$as_me: failed program was:" >&5
13439 sed 's/^/| /' conftest.$ac_ext >&5
13441 ac_cv_have_decl_vsnprintf=no
13443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13445 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
13446 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
13447 if test $ac_cv_have_decl_vsnprintf = yes; then
13449 cat >>confdefs.h <<_ACEOF
13450 #define HAVE_DECL_VSNPRINTF 1
13451 _ACEOF
13454 else
13455 cat >>confdefs.h <<_ACEOF
13456 #define HAVE_DECL_VSNPRINTF 0
13457 _ACEOF
13464 # Link in zlib if we can. This allows us to read compressed debug
13465 # sections. This is used only by readelf.c (objdump uses bfd for
13466 # reading compressed sections).
13467 echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
13468 echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
13469 if test "${ac_cv_search_zlibVersion+set}" = set; then
13470 echo $ECHO_N "(cached) $ECHO_C" >&6
13471 else
13472 ac_func_search_save_LIBS=$LIBS
13473 ac_cv_search_zlibVersion=no
13474 cat >conftest.$ac_ext <<_ACEOF
13475 /* confdefs.h. */
13476 _ACEOF
13477 cat confdefs.h >>conftest.$ac_ext
13478 cat >>conftest.$ac_ext <<_ACEOF
13479 /* end confdefs.h. */
13481 /* Override any gcc2 internal prototype to avoid an error. */
13482 #ifdef __cplusplus
13483 extern "C"
13484 #endif
13485 /* We use char because int might match the return type of a gcc2
13486 builtin and then its argument prototype would still apply. */
13487 char zlibVersion ();
13489 main ()
13491 zlibVersion ();
13493 return 0;
13495 _ACEOF
13496 rm -f conftest.$ac_objext conftest$ac_exeext
13497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13498 (eval $ac_link) 2>conftest.er1
13499 ac_status=$?
13500 grep -v '^ *+' conftest.er1 >conftest.err
13501 rm -f conftest.er1
13502 cat conftest.err >&5
13503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504 (exit $ac_status); } &&
13505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13507 (eval $ac_try) 2>&5
13508 ac_status=$?
13509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510 (exit $ac_status); }; } &&
13511 { ac_try='test -s conftest$ac_exeext'
13512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13513 (eval $ac_try) 2>&5
13514 ac_status=$?
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); }; }; then
13517 ac_cv_search_zlibVersion="none required"
13518 else
13519 echo "$as_me: failed program was:" >&5
13520 sed 's/^/| /' conftest.$ac_ext >&5
13523 rm -f conftest.err conftest.$ac_objext \
13524 conftest$ac_exeext conftest.$ac_ext
13525 if test "$ac_cv_search_zlibVersion" = no; then
13526 for ac_lib in z; do
13527 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13528 cat >conftest.$ac_ext <<_ACEOF
13529 /* confdefs.h. */
13530 _ACEOF
13531 cat confdefs.h >>conftest.$ac_ext
13532 cat >>conftest.$ac_ext <<_ACEOF
13533 /* end confdefs.h. */
13535 /* Override any gcc2 internal prototype to avoid an error. */
13536 #ifdef __cplusplus
13537 extern "C"
13538 #endif
13539 /* We use char because int might match the return type of a gcc2
13540 builtin and then its argument prototype would still apply. */
13541 char zlibVersion ();
13543 main ()
13545 zlibVersion ();
13547 return 0;
13549 _ACEOF
13550 rm -f conftest.$ac_objext conftest$ac_exeext
13551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13552 (eval $ac_link) 2>conftest.er1
13553 ac_status=$?
13554 grep -v '^ *+' conftest.er1 >conftest.err
13555 rm -f conftest.er1
13556 cat conftest.err >&5
13557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558 (exit $ac_status); } &&
13559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13561 (eval $ac_try) 2>&5
13562 ac_status=$?
13563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564 (exit $ac_status); }; } &&
13565 { ac_try='test -s conftest$ac_exeext'
13566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13567 (eval $ac_try) 2>&5
13568 ac_status=$?
13569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570 (exit $ac_status); }; }; then
13571 ac_cv_search_zlibVersion="-l$ac_lib"
13572 break
13573 else
13574 echo "$as_me: failed program was:" >&5
13575 sed 's/^/| /' conftest.$ac_ext >&5
13578 rm -f conftest.err conftest.$ac_objext \
13579 conftest$ac_exeext conftest.$ac_ext
13580 done
13582 LIBS=$ac_func_search_save_LIBS
13584 echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
13585 echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
13586 if test "$ac_cv_search_zlibVersion" != no; then
13587 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
13589 for ac_header in zlib.h
13591 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13592 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13593 echo "$as_me:$LINENO: checking for $ac_header" >&5
13594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13596 echo $ECHO_N "(cached) $ECHO_C" >&6
13598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13599 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13600 else
13601 # Is the header compilable?
13602 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13603 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13604 cat >conftest.$ac_ext <<_ACEOF
13605 /* confdefs.h. */
13606 _ACEOF
13607 cat confdefs.h >>conftest.$ac_ext
13608 cat >>conftest.$ac_ext <<_ACEOF
13609 /* end confdefs.h. */
13610 $ac_includes_default
13611 #include <$ac_header>
13612 _ACEOF
13613 rm -f conftest.$ac_objext
13614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13615 (eval $ac_compile) 2>conftest.er1
13616 ac_status=$?
13617 grep -v '^ *+' conftest.er1 >conftest.err
13618 rm -f conftest.er1
13619 cat conftest.err >&5
13620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621 (exit $ac_status); } &&
13622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13624 (eval $ac_try) 2>&5
13625 ac_status=$?
13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); }; } &&
13628 { ac_try='test -s conftest.$ac_objext'
13629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13630 (eval $ac_try) 2>&5
13631 ac_status=$?
13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633 (exit $ac_status); }; }; then
13634 ac_header_compiler=yes
13635 else
13636 echo "$as_me: failed program was:" >&5
13637 sed 's/^/| /' conftest.$ac_ext >&5
13639 ac_header_compiler=no
13641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13642 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13643 echo "${ECHO_T}$ac_header_compiler" >&6
13645 # Is the header present?
13646 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13647 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13648 cat >conftest.$ac_ext <<_ACEOF
13649 /* confdefs.h. */
13650 _ACEOF
13651 cat confdefs.h >>conftest.$ac_ext
13652 cat >>conftest.$ac_ext <<_ACEOF
13653 /* end confdefs.h. */
13654 #include <$ac_header>
13655 _ACEOF
13656 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13657 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13658 ac_status=$?
13659 grep -v '^ *+' conftest.er1 >conftest.err
13660 rm -f conftest.er1
13661 cat conftest.err >&5
13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663 (exit $ac_status); } >/dev/null; then
13664 if test -s conftest.err; then
13665 ac_cpp_err=$ac_c_preproc_warn_flag
13666 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13667 else
13668 ac_cpp_err=
13670 else
13671 ac_cpp_err=yes
13673 if test -z "$ac_cpp_err"; then
13674 ac_header_preproc=yes
13675 else
13676 echo "$as_me: failed program was:" >&5
13677 sed 's/^/| /' conftest.$ac_ext >&5
13679 ac_header_preproc=no
13681 rm -f conftest.err conftest.$ac_ext
13682 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13683 echo "${ECHO_T}$ac_header_preproc" >&6
13685 # So? What about this header?
13686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13687 yes:no: )
13688 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13689 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13691 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13692 ac_header_preproc=yes
13694 no:yes:* )
13695 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13696 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13697 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13698 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13699 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13700 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13701 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13702 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13703 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13704 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13705 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13706 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13708 cat <<\_ASBOX
13709 ## ------------------------------------------ ##
13710 ## Report this to the AC_PACKAGE_NAME lists. ##
13711 ## ------------------------------------------ ##
13712 _ASBOX
13714 sed "s/^/$as_me: WARNING: /" >&2
13716 esac
13717 echo "$as_me:$LINENO: checking for $ac_header" >&5
13718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13720 echo $ECHO_N "(cached) $ECHO_C" >&6
13721 else
13722 eval "$as_ac_Header=\$ac_header_preproc"
13724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13725 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13729 cat >>confdefs.h <<_ACEOF
13730 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13731 _ACEOF
13735 done
13741 case "${host}" in
13742 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
13744 cat >>confdefs.h <<\_ACEOF
13745 #define USE_BINARY_FOPEN 1
13746 _ACEOF
13748 esac
13750 # target-specific stuff:
13752 # Canonicalize the secondary target names.
13753 if test -n "$enable_targets"; then
13754 for targ in `echo $enable_targets | sed 's/,/ /g'`
13756 result=`$ac_config_sub $targ 2>/dev/null`
13757 if test -n "$result"; then
13758 canon_targets="$canon_targets $result"
13759 else
13760 # Allow targets that config.sub doesn't recognize, like "all".
13761 canon_targets="$canon_targets $targ"
13763 done
13766 if test "${ac_cv_header_iconv_h+set}" = set; then
13767 echo "$as_me:$LINENO: checking for iconv.h" >&5
13768 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
13769 if test "${ac_cv_header_iconv_h+set}" = set; then
13770 echo $ECHO_N "(cached) $ECHO_C" >&6
13772 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
13773 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
13774 else
13775 # Is the header compilable?
13776 echo "$as_me:$LINENO: checking iconv.h usability" >&5
13777 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
13778 cat >conftest.$ac_ext <<_ACEOF
13779 /* confdefs.h. */
13780 _ACEOF
13781 cat confdefs.h >>conftest.$ac_ext
13782 cat >>conftest.$ac_ext <<_ACEOF
13783 /* end confdefs.h. */
13784 $ac_includes_default
13785 #include <iconv.h>
13786 _ACEOF
13787 rm -f conftest.$ac_objext
13788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13789 (eval $ac_compile) 2>conftest.er1
13790 ac_status=$?
13791 grep -v '^ *+' conftest.er1 >conftest.err
13792 rm -f conftest.er1
13793 cat conftest.err >&5
13794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795 (exit $ac_status); } &&
13796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13798 (eval $ac_try) 2>&5
13799 ac_status=$?
13800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801 (exit $ac_status); }; } &&
13802 { ac_try='test -s conftest.$ac_objext'
13803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13804 (eval $ac_try) 2>&5
13805 ac_status=$?
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); }; }; then
13808 ac_header_compiler=yes
13809 else
13810 echo "$as_me: failed program was:" >&5
13811 sed 's/^/| /' conftest.$ac_ext >&5
13813 ac_header_compiler=no
13815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13816 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13817 echo "${ECHO_T}$ac_header_compiler" >&6
13819 # Is the header present?
13820 echo "$as_me:$LINENO: checking iconv.h presence" >&5
13821 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
13822 cat >conftest.$ac_ext <<_ACEOF
13823 /* confdefs.h. */
13824 _ACEOF
13825 cat confdefs.h >>conftest.$ac_ext
13826 cat >>conftest.$ac_ext <<_ACEOF
13827 /* end confdefs.h. */
13828 #include <iconv.h>
13829 _ACEOF
13830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13831 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13832 ac_status=$?
13833 grep -v '^ *+' conftest.er1 >conftest.err
13834 rm -f conftest.er1
13835 cat conftest.err >&5
13836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837 (exit $ac_status); } >/dev/null; then
13838 if test -s conftest.err; then
13839 ac_cpp_err=$ac_c_preproc_warn_flag
13840 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13841 else
13842 ac_cpp_err=
13844 else
13845 ac_cpp_err=yes
13847 if test -z "$ac_cpp_err"; then
13848 ac_header_preproc=yes
13849 else
13850 echo "$as_me: failed program was:" >&5
13851 sed 's/^/| /' conftest.$ac_ext >&5
13853 ac_header_preproc=no
13855 rm -f conftest.err conftest.$ac_ext
13856 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13857 echo "${ECHO_T}$ac_header_preproc" >&6
13859 # So? What about this header?
13860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13861 yes:no: )
13862 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
13863 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13864 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
13865 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
13866 ac_header_preproc=yes
13868 no:yes:* )
13869 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
13870 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
13871 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
13872 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
13873 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
13874 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
13875 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
13876 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
13877 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
13878 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
13879 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
13880 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
13882 cat <<\_ASBOX
13883 ## ------------------------------------------ ##
13884 ## Report this to the AC_PACKAGE_NAME lists. ##
13885 ## ------------------------------------------ ##
13886 _ASBOX
13888 sed "s/^/$as_me: WARNING: /" >&2
13890 esac
13891 echo "$as_me:$LINENO: checking for iconv.h" >&5
13892 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
13893 if test "${ac_cv_header_iconv_h+set}" = set; then
13894 echo $ECHO_N "(cached) $ECHO_C" >&6
13895 else
13896 ac_cv_header_iconv_h=$ac_header_preproc
13898 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
13899 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
13905 if test "X$prefix" = "XNONE"; then
13906 acl_final_prefix="$ac_default_prefix"
13907 else
13908 acl_final_prefix="$prefix"
13910 if test "X$exec_prefix" = "XNONE"; then
13911 acl_final_exec_prefix='${prefix}'
13912 else
13913 acl_final_exec_prefix="$exec_prefix"
13915 acl_save_prefix="$prefix"
13916 prefix="$acl_final_prefix"
13917 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13918 prefix="$acl_save_prefix"
13921 # Check whether --with-gnu-ld or --without-gnu-ld was given.
13922 if test "${with_gnu_ld+set}" = set; then
13923 withval="$with_gnu_ld"
13924 test "$withval" = no || with_gnu_ld=yes
13925 else
13926 with_gnu_ld=no
13928 # Prepare PATH_SEPARATOR.
13929 # The user is always right.
13930 if test "${PATH_SEPARATOR+set}" != set; then
13931 echo "#! /bin/sh" >conf$$.sh
13932 echo "exit 0" >>conf$$.sh
13933 chmod +x conf$$.sh
13934 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13935 PATH_SEPARATOR=';'
13936 else
13937 PATH_SEPARATOR=:
13939 rm -f conf$$.sh
13941 ac_prog=ld
13942 if test "$GCC" = yes; then
13943 # Check if gcc -print-prog-name=ld gives a path.
13944 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
13945 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
13946 case $host in
13947 *-*-mingw*)
13948 # gcc leaves a trailing carriage return which upsets mingw
13949 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13951 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13952 esac
13953 case $ac_prog in
13954 # Accept absolute paths.
13955 [\\/]* | [A-Za-z]:[\\/]*)
13956 re_direlt='/[^/][^/]*/\.\./'
13957 # Canonicalize the path of ld
13958 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13959 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13960 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13961 done
13962 test -z "$LD" && LD="$ac_prog"
13965 # If it fails, then pretend we aren't using GCC.
13966 ac_prog=ld
13969 # If it is relative, then search for the first ld in PATH.
13970 with_gnu_ld=unknown
13972 esac
13973 elif test "$with_gnu_ld" = yes; then
13974 echo "$as_me:$LINENO: checking for GNU ld" >&5
13975 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
13976 else
13977 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13978 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
13980 if test "${acl_cv_path_LD+set}" = set; then
13981 echo $ECHO_N "(cached) $ECHO_C" >&6
13982 else
13983 if test -z "$LD"; then
13984 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13985 for ac_dir in $PATH; do
13986 test -z "$ac_dir" && ac_dir=.
13987 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13988 acl_cv_path_LD="$ac_dir/$ac_prog"
13989 # Check to see if the program is GNU ld. I'd rather use --version,
13990 # but apparently some GNU ld's only accept -v.
13991 # Break only if it was the GNU/non-GNU ld that we prefer.
13992 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
13993 test "$with_gnu_ld" != no && break
13994 else
13995 test "$with_gnu_ld" != yes && break
13998 done
13999 IFS="$ac_save_ifs"
14000 else
14001 acl_cv_path_LD="$LD" # Let the user override the test with a path.
14005 LD="$acl_cv_path_LD"
14006 if test -n "$LD"; then
14007 echo "$as_me:$LINENO: result: $LD" >&5
14008 echo "${ECHO_T}$LD" >&6
14009 else
14010 echo "$as_me:$LINENO: result: no" >&5
14011 echo "${ECHO_T}no" >&6
14013 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14014 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14015 { (exit 1); exit 1; }; }
14016 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14017 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
14018 if test "${acl_cv_prog_gnu_ld+set}" = set; then
14019 echo $ECHO_N "(cached) $ECHO_C" >&6
14020 else
14021 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14022 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
14023 acl_cv_prog_gnu_ld=yes
14024 else
14025 acl_cv_prog_gnu_ld=no
14028 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
14029 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
14030 with_gnu_ld=$acl_cv_prog_gnu_ld
14034 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
14035 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
14036 if test "${acl_cv_rpath+set}" = set; then
14037 echo $ECHO_N "(cached) $ECHO_C" >&6
14038 else
14040 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14041 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14042 . ./conftest.sh
14043 rm -f ./conftest.sh
14044 acl_cv_rpath=done
14047 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
14048 echo "${ECHO_T}$acl_cv_rpath" >&6
14049 wl="$acl_cv_wl"
14050 libext="$acl_cv_libext"
14051 shlibext="$acl_cv_shlibext"
14052 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
14053 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
14054 hardcode_direct="$acl_cv_hardcode_direct"
14055 hardcode_minus_L="$acl_cv_hardcode_minus_L"
14056 # Check whether --enable-rpath or --disable-rpath was given.
14057 if test "${enable_rpath+set}" = set; then
14058 enableval="$enable_rpath"
14060 else
14061 enable_rpath=yes
14070 use_additional=yes
14072 acl_save_prefix="$prefix"
14073 prefix="$acl_final_prefix"
14074 acl_save_exec_prefix="$exec_prefix"
14075 exec_prefix="$acl_final_exec_prefix"
14077 eval additional_includedir=\"$includedir\"
14078 eval additional_libdir=\"$libdir\"
14080 exec_prefix="$acl_save_exec_prefix"
14081 prefix="$acl_save_prefix"
14084 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
14085 if test "${with_libiconv_prefix+set}" = set; then
14086 withval="$with_libiconv_prefix"
14088 if test "X$withval" = "Xno"; then
14089 use_additional=no
14090 else
14091 if test "X$withval" = "X"; then
14093 acl_save_prefix="$prefix"
14094 prefix="$acl_final_prefix"
14095 acl_save_exec_prefix="$exec_prefix"
14096 exec_prefix="$acl_final_exec_prefix"
14098 eval additional_includedir=\"$includedir\"
14099 eval additional_libdir=\"$libdir\"
14101 exec_prefix="$acl_save_exec_prefix"
14102 prefix="$acl_save_prefix"
14104 else
14105 additional_includedir="$withval/include"
14106 additional_libdir="$withval/lib"
14111 LIBICONV=
14112 LTLIBICONV=
14113 INCICONV=
14114 rpathdirs=
14115 ltrpathdirs=
14116 names_already_handled=
14117 names_next_round='iconv '
14118 while test -n "$names_next_round"; do
14119 names_this_round="$names_next_round"
14120 names_next_round=
14121 for name in $names_this_round; do
14122 already_handled=
14123 for n in $names_already_handled; do
14124 if test "$n" = "$name"; then
14125 already_handled=yes
14126 break
14128 done
14129 if test -z "$already_handled"; then
14130 names_already_handled="$names_already_handled $name"
14131 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14132 eval value=\"\$HAVE_LIB$uppername\"
14133 if test -n "$value"; then
14134 if test "$value" = yes; then
14135 eval value=\"\$LIB$uppername\"
14136 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14137 eval value=\"\$LTLIB$uppername\"
14138 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14139 else
14142 else
14143 found_dir=
14144 found_la=
14145 found_so=
14146 found_a=
14147 if test $use_additional = yes; then
14148 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14149 found_dir="$additional_libdir"
14150 found_so="$additional_libdir/lib$name.$shlibext"
14151 if test -f "$additional_libdir/lib$name.la"; then
14152 found_la="$additional_libdir/lib$name.la"
14154 else
14155 if test -f "$additional_libdir/lib$name.$libext"; then
14156 found_dir="$additional_libdir"
14157 found_a="$additional_libdir/lib$name.$libext"
14158 if test -f "$additional_libdir/lib$name.la"; then
14159 found_la="$additional_libdir/lib$name.la"
14164 if test "X$found_dir" = "X"; then
14165 for x in $LDFLAGS $LTLIBICONV; do
14167 acl_save_prefix="$prefix"
14168 prefix="$acl_final_prefix"
14169 acl_save_exec_prefix="$exec_prefix"
14170 exec_prefix="$acl_final_exec_prefix"
14171 eval x=\"$x\"
14172 exec_prefix="$acl_save_exec_prefix"
14173 prefix="$acl_save_prefix"
14175 case "$x" in
14176 -L*)
14177 dir=`echo "X$x" | sed -e 's/^X-L//'`
14178 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14179 found_dir="$dir"
14180 found_so="$dir/lib$name.$shlibext"
14181 if test -f "$dir/lib$name.la"; then
14182 found_la="$dir/lib$name.la"
14184 else
14185 if test -f "$dir/lib$name.$libext"; then
14186 found_dir="$dir"
14187 found_a="$dir/lib$name.$libext"
14188 if test -f "$dir/lib$name.la"; then
14189 found_la="$dir/lib$name.la"
14194 esac
14195 if test "X$found_dir" != "X"; then
14196 break
14198 done
14200 if test "X$found_dir" != "X"; then
14201 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14202 if test "X$found_so" != "X"; then
14203 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14204 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14205 else
14206 haveit=
14207 for x in $ltrpathdirs; do
14208 if test "X$x" = "X$found_dir"; then
14209 haveit=yes
14210 break
14212 done
14213 if test -z "$haveit"; then
14214 ltrpathdirs="$ltrpathdirs $found_dir"
14216 if test "$hardcode_direct" = yes; then
14217 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14218 else
14219 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14220 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14221 haveit=
14222 for x in $rpathdirs; do
14223 if test "X$x" = "X$found_dir"; then
14224 haveit=yes
14225 break
14227 done
14228 if test -z "$haveit"; then
14229 rpathdirs="$rpathdirs $found_dir"
14231 else
14232 haveit=
14233 for x in $LDFLAGS $LIBICONV; do
14235 acl_save_prefix="$prefix"
14236 prefix="$acl_final_prefix"
14237 acl_save_exec_prefix="$exec_prefix"
14238 exec_prefix="$acl_final_exec_prefix"
14239 eval x=\"$x\"
14240 exec_prefix="$acl_save_exec_prefix"
14241 prefix="$acl_save_prefix"
14243 if test "X$x" = "X-L$found_dir"; then
14244 haveit=yes
14245 break
14247 done
14248 if test -z "$haveit"; then
14249 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14251 if test "$hardcode_minus_L" != no; then
14252 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14253 else
14254 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14259 else
14260 if test "X$found_a" != "X"; then
14261 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14262 else
14263 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14266 additional_includedir=
14267 case "$found_dir" in
14268 */lib | */lib/)
14269 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14270 additional_includedir="$basedir/include"
14272 esac
14273 if test "X$additional_includedir" != "X"; then
14274 if test "X$additional_includedir" != "X/usr/include"; then
14275 haveit=
14276 if test "X$additional_includedir" = "X/usr/local/include"; then
14277 if test -n "$GCC"; then
14278 case $host_os in
14279 linux*) haveit=yes;;
14280 esac
14283 if test -z "$haveit"; then
14284 for x in $CPPFLAGS $INCICONV; do
14286 acl_save_prefix="$prefix"
14287 prefix="$acl_final_prefix"
14288 acl_save_exec_prefix="$exec_prefix"
14289 exec_prefix="$acl_final_exec_prefix"
14290 eval x=\"$x\"
14291 exec_prefix="$acl_save_exec_prefix"
14292 prefix="$acl_save_prefix"
14294 if test "X$x" = "X-I$additional_includedir"; then
14295 haveit=yes
14296 break
14298 done
14299 if test -z "$haveit"; then
14300 if test -d "$additional_includedir"; then
14301 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14307 if test -n "$found_la"; then
14308 save_libdir="$libdir"
14309 case "$found_la" in
14310 */* | *\\*) . "$found_la" ;;
14311 *) . "./$found_la" ;;
14312 esac
14313 libdir="$save_libdir"
14314 for dep in $dependency_libs; do
14315 case "$dep" in
14316 -L*)
14317 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14318 if test "X$additional_libdir" != "X/usr/lib"; then
14319 haveit=
14320 if test "X$additional_libdir" = "X/usr/local/lib"; then
14321 if test -n "$GCC"; then
14322 case $host_os in
14323 linux*) haveit=yes;;
14324 esac
14327 if test -z "$haveit"; then
14328 haveit=
14329 for x in $LDFLAGS $LIBICONV; do
14331 acl_save_prefix="$prefix"
14332 prefix="$acl_final_prefix"
14333 acl_save_exec_prefix="$exec_prefix"
14334 exec_prefix="$acl_final_exec_prefix"
14335 eval x=\"$x\"
14336 exec_prefix="$acl_save_exec_prefix"
14337 prefix="$acl_save_prefix"
14339 if test "X$x" = "X-L$additional_libdir"; then
14340 haveit=yes
14341 break
14343 done
14344 if test -z "$haveit"; then
14345 if test -d "$additional_libdir"; then
14346 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14349 haveit=
14350 for x in $LDFLAGS $LTLIBICONV; do
14352 acl_save_prefix="$prefix"
14353 prefix="$acl_final_prefix"
14354 acl_save_exec_prefix="$exec_prefix"
14355 exec_prefix="$acl_final_exec_prefix"
14356 eval x=\"$x\"
14357 exec_prefix="$acl_save_exec_prefix"
14358 prefix="$acl_save_prefix"
14360 if test "X$x" = "X-L$additional_libdir"; then
14361 haveit=yes
14362 break
14364 done
14365 if test -z "$haveit"; then
14366 if test -d "$additional_libdir"; then
14367 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14373 -R*)
14374 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14375 if test "$enable_rpath" != no; then
14376 haveit=
14377 for x in $rpathdirs; do
14378 if test "X$x" = "X$dir"; then
14379 haveit=yes
14380 break
14382 done
14383 if test -z "$haveit"; then
14384 rpathdirs="$rpathdirs $dir"
14386 haveit=
14387 for x in $ltrpathdirs; do
14388 if test "X$x" = "X$dir"; then
14389 haveit=yes
14390 break
14392 done
14393 if test -z "$haveit"; then
14394 ltrpathdirs="$ltrpathdirs $dir"
14398 -l*)
14399 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14401 *.la)
14402 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14405 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14406 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14408 esac
14409 done
14411 else
14412 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14413 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14417 done
14418 done
14419 if test "X$rpathdirs" != "X"; then
14420 if test -n "$hardcode_libdir_separator"; then
14421 alldirs=
14422 for found_dir in $rpathdirs; do
14423 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14424 done
14425 acl_save_libdir="$libdir"
14426 libdir="$alldirs"
14427 eval flag=\"$hardcode_libdir_flag_spec\"
14428 libdir="$acl_save_libdir"
14429 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14430 else
14431 for found_dir in $rpathdirs; do
14432 acl_save_libdir="$libdir"
14433 libdir="$found_dir"
14434 eval flag=\"$hardcode_libdir_flag_spec\"
14435 libdir="$acl_save_libdir"
14436 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14437 done
14440 if test "X$ltrpathdirs" != "X"; then
14441 for found_dir in $ltrpathdirs; do
14442 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14443 done
14452 am_save_CPPFLAGS="$CPPFLAGS"
14454 for element in $INCICONV; do
14455 haveit=
14456 for x in $CPPFLAGS; do
14458 acl_save_prefix="$prefix"
14459 prefix="$acl_final_prefix"
14460 acl_save_exec_prefix="$exec_prefix"
14461 exec_prefix="$acl_final_exec_prefix"
14462 eval x=\"$x\"
14463 exec_prefix="$acl_save_exec_prefix"
14464 prefix="$acl_save_prefix"
14466 if test "X$x" = "X$element"; then
14467 haveit=yes
14468 break
14470 done
14471 if test -z "$haveit"; then
14472 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14474 done
14477 echo "$as_me:$LINENO: checking for iconv" >&5
14478 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
14479 if test "${am_cv_func_iconv+set}" = set; then
14480 echo $ECHO_N "(cached) $ECHO_C" >&6
14481 else
14483 am_cv_func_iconv="no, consider installing GNU libiconv"
14484 am_cv_lib_iconv=no
14485 cat >conftest.$ac_ext <<_ACEOF
14486 /* confdefs.h. */
14487 _ACEOF
14488 cat confdefs.h >>conftest.$ac_ext
14489 cat >>conftest.$ac_ext <<_ACEOF
14490 /* end confdefs.h. */
14491 #include <stdlib.h>
14492 #include <iconv.h>
14494 main ()
14496 iconv_t cd = iconv_open("","");
14497 iconv(cd,NULL,NULL,NULL,NULL);
14498 iconv_close(cd);
14500 return 0;
14502 _ACEOF
14503 rm -f conftest.$ac_objext conftest$ac_exeext
14504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14505 (eval $ac_link) 2>conftest.er1
14506 ac_status=$?
14507 grep -v '^ *+' conftest.er1 >conftest.err
14508 rm -f conftest.er1
14509 cat conftest.err >&5
14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 (exit $ac_status); } &&
14512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14514 (eval $ac_try) 2>&5
14515 ac_status=$?
14516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517 (exit $ac_status); }; } &&
14518 { ac_try='test -s conftest$ac_exeext'
14519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14520 (eval $ac_try) 2>&5
14521 ac_status=$?
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); }; }; then
14524 am_cv_func_iconv=yes
14525 else
14526 echo "$as_me: failed program was:" >&5
14527 sed 's/^/| /' conftest.$ac_ext >&5
14530 rm -f conftest.err conftest.$ac_objext \
14531 conftest$ac_exeext conftest.$ac_ext
14532 if test "$am_cv_func_iconv" != yes; then
14533 am_save_LIBS="$LIBS"
14534 LIBS="$LIBS $LIBICONV"
14535 cat >conftest.$ac_ext <<_ACEOF
14536 /* confdefs.h. */
14537 _ACEOF
14538 cat confdefs.h >>conftest.$ac_ext
14539 cat >>conftest.$ac_ext <<_ACEOF
14540 /* end confdefs.h. */
14541 #include <stdlib.h>
14542 #include <iconv.h>
14544 main ()
14546 iconv_t cd = iconv_open("","");
14547 iconv(cd,NULL,NULL,NULL,NULL);
14548 iconv_close(cd);
14550 return 0;
14552 _ACEOF
14553 rm -f conftest.$ac_objext conftest$ac_exeext
14554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14555 (eval $ac_link) 2>conftest.er1
14556 ac_status=$?
14557 grep -v '^ *+' conftest.er1 >conftest.err
14558 rm -f conftest.er1
14559 cat conftest.err >&5
14560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); } &&
14562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14564 (eval $ac_try) 2>&5
14565 ac_status=$?
14566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567 (exit $ac_status); }; } &&
14568 { ac_try='test -s conftest$ac_exeext'
14569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14570 (eval $ac_try) 2>&5
14571 ac_status=$?
14572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573 (exit $ac_status); }; }; then
14574 am_cv_lib_iconv=yes
14575 am_cv_func_iconv=yes
14576 else
14577 echo "$as_me: failed program was:" >&5
14578 sed 's/^/| /' conftest.$ac_ext >&5
14581 rm -f conftest.err conftest.$ac_objext \
14582 conftest$ac_exeext conftest.$ac_ext
14583 LIBS="$am_save_LIBS"
14587 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
14588 echo "${ECHO_T}$am_cv_func_iconv" >&6
14589 if test "$am_cv_func_iconv" = yes; then
14591 cat >>confdefs.h <<\_ACEOF
14592 #define HAVE_ICONV 1
14593 _ACEOF
14596 if test "$am_cv_lib_iconv" = yes; then
14597 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
14598 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
14599 echo "$as_me:$LINENO: result: $LIBICONV" >&5
14600 echo "${ECHO_T}$LIBICONV" >&6
14601 else
14602 CPPFLAGS="$am_save_CPPFLAGS"
14603 LIBICONV=
14604 LTLIBICONV=
14609 if test "$am_cv_func_iconv" = yes; then
14610 echo "$as_me:$LINENO: checking for iconv declaration" >&5
14611 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
14612 if test "${am_cv_proto_iconv+set}" = set; then
14613 echo $ECHO_N "(cached) $ECHO_C" >&6
14614 else
14616 cat >conftest.$ac_ext <<_ACEOF
14617 /* confdefs.h. */
14618 _ACEOF
14619 cat confdefs.h >>conftest.$ac_ext
14620 cat >>conftest.$ac_ext <<_ACEOF
14621 /* end confdefs.h. */
14623 #include <stdlib.h>
14624 #include <iconv.h>
14625 extern
14626 #ifdef __cplusplus
14628 #endif
14629 #if defined(__STDC__) || defined(__cplusplus)
14630 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14631 #else
14632 size_t iconv();
14633 #endif
14636 main ()
14640 return 0;
14642 _ACEOF
14643 rm -f conftest.$ac_objext
14644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14645 (eval $ac_compile) 2>conftest.er1
14646 ac_status=$?
14647 grep -v '^ *+' conftest.er1 >conftest.err
14648 rm -f conftest.er1
14649 cat conftest.err >&5
14650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651 (exit $ac_status); } &&
14652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14654 (eval $ac_try) 2>&5
14655 ac_status=$?
14656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657 (exit $ac_status); }; } &&
14658 { ac_try='test -s conftest.$ac_objext'
14659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14660 (eval $ac_try) 2>&5
14661 ac_status=$?
14662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663 (exit $ac_status); }; }; then
14664 am_cv_proto_iconv_arg1=""
14665 else
14666 echo "$as_me: failed program was:" >&5
14667 sed 's/^/| /' conftest.$ac_ext >&5
14669 am_cv_proto_iconv_arg1="const"
14671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14672 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
14675 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
14676 echo "$as_me:$LINENO: result: ${ac_t:-
14677 }$am_cv_proto_iconv" >&5
14678 echo "${ECHO_T}${ac_t:-
14679 }$am_cv_proto_iconv" >&6
14681 cat >>confdefs.h <<_ACEOF
14682 #define ICONV_CONST $am_cv_proto_iconv_arg1
14683 _ACEOF
14688 all_targets=false
14689 BUILD_NLMCONV=
14690 NLMCONV_DEFS=
14691 BUILD_SRCONV=
14692 BUILD_DLLTOOL=
14693 DLLTOOL_DEFS=
14694 DLLTOOL_DEFAULT=
14695 BUILD_WINDRES=
14696 BUILD_WINDMC=
14697 BUILD_DLLWRAP=
14698 BUILD_MISC=
14699 BUILD_INSTALL_MISC=
14700 OBJDUMP_DEFS=
14702 for targ in $target $canon_targets
14704 if test "x$targ" = "xall"; then
14705 all_targets=true
14706 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
14707 BUILD_SRCONV='$(SRCONV_PROG)'
14708 NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
14709 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
14710 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14711 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14712 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14713 if test -z "$DLLTOOL_DEFAULT"; then
14714 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14716 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14717 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
14718 else
14719 case $targ in
14720 i[3-7]86*-*-netware*)
14721 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
14722 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
14724 alpha*-*-netware*)
14725 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
14726 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
14728 powerpc*-*-netware*)
14729 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
14730 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
14732 sparc*-*-netware*)
14733 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
14734 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
14736 esac
14737 case $targ in
14738 *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
14739 esac
14740 case $targ in
14741 arm-epoc-pe*)
14742 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14743 if test -z "$DLLTOOL_DEFAULT"; then
14744 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_EPOC"
14746 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
14747 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14748 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14750 arm-wince-pe* | arm-*-wince)
14751 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14752 if test -z "$DLLTOOL_DEFAULT"; then
14753 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
14755 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
14756 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14757 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14759 arm-*-pe*)
14760 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14761 if test -z "$DLLTOOL_DEFAULT"; then
14762 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
14764 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
14765 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14766 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14768 thumb-*-pe*)
14769 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14770 if test -z "$DLLTOOL_DEFAULT"; then
14771 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
14773 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
14774 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14775 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14777 x86_64-*-mingw*)
14778 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14779 if test -z "$DLLTOOL_DEFAULT"; then
14780 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
14782 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
14783 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14784 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14785 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
14787 i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
14788 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14789 if test -z "$DLLTOOL_DEFAULT"; then
14790 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14792 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14793 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14794 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14795 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
14797 i[3-7]86-*-interix)
14798 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
14799 if test -z "$DLLTOOL_DEFAULT"; then
14800 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14802 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14804 powerpc*-aix5.[01])
14806 powerpc*-aix5.*)
14807 OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
14809 powerpc*-*-pe* | powerpc*-*-cygwin*)
14810 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14811 if test -z "$DLLTOOL_DEFAULT"; then
14812 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_PPC"
14814 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
14815 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14816 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14818 powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*)
14819 BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu"
14821 sh*-*-pe)
14822 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14823 if test -z "$DLLTOOL_DEFAULT"; then
14824 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
14826 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
14827 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14828 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14830 spu-*-*)
14831 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
14833 mips*-*-pe)
14834 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14835 if test -z "$DLLTOOL_DEFAULT"; then
14836 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS"
14838 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
14839 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14840 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14842 mcore-*-pe)
14843 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14844 if test -z "$DLLTOOL_DEFAULT"; then
14845 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
14847 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
14848 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14849 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14851 mcore-*-elf)
14852 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14853 if test -z "$DLLTOOL_DEFAULT"; then
14854 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
14856 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
14858 mep-*)
14859 OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
14861 esac
14863 done
14865 DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
14867 if test "${with_windres+set}" = set; then
14868 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14871 if test "${with_windmc+set}" = set; then
14872 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14888 cat >>confdefs.h <<_ACEOF
14889 #define TARGET "${target}"
14890 _ACEOF
14893 targ=$target
14894 . $srcdir/../bfd/config.bfd
14895 if test "x$targ_underscore" = "xyes"; then
14896 UNDERSCORE=1
14897 else
14898 UNDERSCORE=0
14901 cat >>confdefs.h <<_ACEOF
14902 #define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
14903 _ACEOF
14906 # Emulation
14907 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
14909 # Canonicalize the secondary target names.
14910 result=`$ac_config_sub $targ_alias 2>/dev/null`
14911 if test -n "$result"; then
14912 targ=$result
14913 else
14914 targ=$targ_alias
14917 . ${srcdir}/configure.tgt
14919 EMULATION=$targ_emul
14920 EMULATION_VECTOR=$targ_emul_vector
14921 done
14926 # Required for html and install-html
14931 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
14932 cat >confcache <<\_ACEOF
14933 # This file is a shell script that caches the results of configure
14934 # tests run on this system so they can be shared between configure
14935 # scripts and configure runs, see configure's option --config-cache.
14936 # It is not useful on other systems. If it contains results you don't
14937 # want to keep, you may remove or edit it.
14939 # config.status only pays attention to the cache file if you give it
14940 # the --recheck option to rerun configure.
14942 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14943 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14944 # following values.
14946 _ACEOF
14948 # The following way of writing the cache mishandles newlines in values,
14949 # but we know of no workaround that is simple, portable, and efficient.
14950 # So, don't put newlines in cache variables' values.
14951 # Ultrix sh set writes to stderr and can't be redirected directly,
14952 # and sets the high bit in the cache file unless we assign to the vars.
14954 (set) 2>&1 |
14955 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14956 *ac_space=\ *)
14957 # `set' does not quote correctly, so add quotes (double-quote
14958 # substitution turns \\\\ into \\, and sed turns \\ into \).
14959 sed -n \
14960 "s/'/'\\\\''/g;
14961 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14964 # `set' quotes correctly as required by POSIX, so do not add quotes.
14965 sed -n \
14966 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14968 esac;
14970 sed '
14971 t clear
14972 : clear
14973 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14974 t end
14975 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14976 : end' >>confcache
14977 if diff $cache_file confcache >/dev/null 2>&1; then :; else
14978 if test -w $cache_file; then
14979 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14980 cat confcache >$cache_file
14981 else
14982 echo "not updating unwritable cache $cache_file"
14985 rm -f confcache
14987 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14988 # Let make expand exec_prefix.
14989 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14991 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14992 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14993 # trailing colons and then remove the whole line if VPATH becomes empty
14994 # (actually we leave an empty line to preserve line numbers).
14995 if test "x$srcdir" = x.; then
14996 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14997 s/:*\$(srcdir):*/:/;
14998 s/:*\${srcdir}:*/:/;
14999 s/:*@srcdir@:*/:/;
15000 s/^\([^=]*=[ ]*\):*/\1/;
15001 s/:*$//;
15002 s/^[^=]*=[ ]*$//;
15006 DEFS=-DHAVE_CONFIG_H
15008 ac_libobjs=
15009 ac_ltlibobjs=
15010 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15011 # 1. Remove the extension, and $U if already installed.
15012 ac_i=`echo "$ac_i" |
15013 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15014 # 2. Add them.
15015 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15016 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15017 done
15018 LIBOBJS=$ac_libobjs
15020 LTLIBOBJS=$ac_ltlibobjs
15023 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15024 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15025 Usually this means the macro was only invoked conditionally." >&5
15026 echo "$as_me: error: conditional \"AMDEP\" was never defined.
15027 Usually this means the macro was only invoked conditionally." >&2;}
15028 { (exit 1); exit 1; }; }
15030 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15031 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15032 Usually this means the macro was only invoked conditionally." >&5
15033 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15034 Usually this means the macro was only invoked conditionally." >&2;}
15035 { (exit 1); exit 1; }; }
15037 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15038 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
15039 Usually this means the macro was only invoked conditionally." >&5
15040 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
15041 Usually this means the macro was only invoked conditionally." >&2;}
15042 { (exit 1); exit 1; }; }
15044 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
15045 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
15046 Usually this means the macro was only invoked conditionally." >&5
15047 echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
15048 Usually this means the macro was only invoked conditionally." >&2;}
15049 { (exit 1); exit 1; }; }
15052 : ${CONFIG_STATUS=./config.status}
15053 ac_clean_files_save=$ac_clean_files
15054 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15055 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15056 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15057 cat >$CONFIG_STATUS <<_ACEOF
15058 #! $SHELL
15059 # Generated by $as_me.
15060 # Run this file to recreate the current configuration.
15061 # Compiler output produced by configure, useful for debugging
15062 # configure, is in config.log if it exists.
15064 debug=false
15065 ac_cs_recheck=false
15066 ac_cs_silent=false
15067 SHELL=\${CONFIG_SHELL-$SHELL}
15068 _ACEOF
15070 cat >>$CONFIG_STATUS <<\_ACEOF
15071 ## --------------------- ##
15072 ## M4sh Initialization. ##
15073 ## --------------------- ##
15075 # Be Bourne compatible
15076 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15077 emulate sh
15078 NULLCMD=:
15079 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15080 # is contrary to our usage. Disable this feature.
15081 alias -g '${1+"$@"}'='"$@"'
15082 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15083 set -o posix
15085 DUALCASE=1; export DUALCASE # for MKS sh
15087 # Support unset when possible.
15088 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15089 as_unset=unset
15090 else
15091 as_unset=false
15095 # Work around bugs in pre-3.0 UWIN ksh.
15096 $as_unset ENV MAIL MAILPATH
15097 PS1='$ '
15098 PS2='> '
15099 PS4='+ '
15101 # NLS nuisances.
15102 for as_var in \
15103 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15104 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15105 LC_TELEPHONE LC_TIME
15107 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15108 eval $as_var=C; export $as_var
15109 else
15110 $as_unset $as_var
15112 done
15114 # Required to use basename.
15115 if expr a : '\(a\)' >/dev/null 2>&1; then
15116 as_expr=expr
15117 else
15118 as_expr=false
15121 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15122 as_basename=basename
15123 else
15124 as_basename=false
15128 # Name of the executable.
15129 as_me=`$as_basename "$0" ||
15130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15131 X"$0" : 'X\(//\)$' \| \
15132 X"$0" : 'X\(/\)$' \| \
15133 . : '\(.\)' 2>/dev/null ||
15134 echo X/"$0" |
15135 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15136 /^X\/\(\/\/\)$/{ s//\1/; q; }
15137 /^X\/\(\/\).*/{ s//\1/; q; }
15138 s/.*/./; q'`
15141 # PATH needs CR, and LINENO needs CR and PATH.
15142 # Avoid depending upon Character Ranges.
15143 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15144 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15145 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15146 as_cr_digits='0123456789'
15147 as_cr_alnum=$as_cr_Letters$as_cr_digits
15149 # The user is always right.
15150 if test "${PATH_SEPARATOR+set}" != set; then
15151 echo "#! /bin/sh" >conf$$.sh
15152 echo "exit 0" >>conf$$.sh
15153 chmod +x conf$$.sh
15154 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15155 PATH_SEPARATOR=';'
15156 else
15157 PATH_SEPARATOR=:
15159 rm -f conf$$.sh
15163 as_lineno_1=$LINENO
15164 as_lineno_2=$LINENO
15165 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15166 test "x$as_lineno_1" != "x$as_lineno_2" &&
15167 test "x$as_lineno_3" = "x$as_lineno_2" || {
15168 # Find who we are. Look in the path if we contain no path at all
15169 # relative or not.
15170 case $0 in
15171 *[\\/]* ) as_myself=$0 ;;
15172 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15173 for as_dir in $PATH
15175 IFS=$as_save_IFS
15176 test -z "$as_dir" && as_dir=.
15177 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15178 done
15181 esac
15182 # We did not find ourselves, most probably we were run as `sh COMMAND'
15183 # in which case we are not to be found in the path.
15184 if test "x$as_myself" = x; then
15185 as_myself=$0
15187 if test ! -f "$as_myself"; then
15188 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15189 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15190 { (exit 1); exit 1; }; }
15192 case $CONFIG_SHELL in
15194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15195 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15197 IFS=$as_save_IFS
15198 test -z "$as_dir" && as_dir=.
15199 for as_base in sh bash ksh sh5; do
15200 case $as_dir in
15202 if ("$as_dir/$as_base" -c '
15203 as_lineno_1=$LINENO
15204 as_lineno_2=$LINENO
15205 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15206 test "x$as_lineno_1" != "x$as_lineno_2" &&
15207 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
15208 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15209 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15210 CONFIG_SHELL=$as_dir/$as_base
15211 export CONFIG_SHELL
15212 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15213 fi;;
15214 esac
15215 done
15216 done
15218 esac
15220 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15221 # uniformly replaced by the line number. The first 'sed' inserts a
15222 # line-number line before each line; the second 'sed' does the real
15223 # work. The second script uses 'N' to pair each line-number line
15224 # with the numbered line, and appends trailing '-' during
15225 # substitution so that $LINENO is not a special case at line end.
15226 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15227 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15228 sed '=' <$as_myself |
15229 sed '
15231 s,$,-,
15232 : loop
15233 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15234 t loop
15235 s,-$,,
15236 s,^['$as_cr_digits']*\n,,
15237 ' >$as_me.lineno &&
15238 chmod +x $as_me.lineno ||
15239 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15240 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15241 { (exit 1); exit 1; }; }
15243 # Don't try to exec as it changes $[0], causing all sort of problems
15244 # (the dirname of $[0] is not the place where we might find the
15245 # original and so on. Autoconf is especially sensible to this).
15246 . ./$as_me.lineno
15247 # Exit status is that of the last command.
15248 exit
15252 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15253 *c*,-n*) ECHO_N= ECHO_C='
15254 ' ECHO_T=' ' ;;
15255 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15256 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15257 esac
15259 if expr a : '\(a\)' >/dev/null 2>&1; then
15260 as_expr=expr
15261 else
15262 as_expr=false
15265 rm -f conf$$ conf$$.exe conf$$.file
15266 echo >conf$$.file
15267 if ln -s conf$$.file conf$$ 2>/dev/null; then
15268 # We could just check for DJGPP; but this test a) works b) is more generic
15269 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15270 if test -f conf$$.exe; then
15271 # Don't use ln at all; we don't have any links
15272 as_ln_s='cp -p'
15273 else
15274 as_ln_s='ln -s'
15276 elif ln conf$$.file conf$$ 2>/dev/null; then
15277 as_ln_s=ln
15278 else
15279 as_ln_s='cp -p'
15281 rm -f conf$$ conf$$.exe conf$$.file
15283 if mkdir -p . 2>/dev/null; then
15284 as_mkdir_p=:
15285 else
15286 test -d ./-p && rmdir ./-p
15287 as_mkdir_p=false
15290 as_executable_p="test -f"
15292 # Sed expression to map a string onto a valid CPP name.
15293 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15295 # Sed expression to map a string onto a valid variable name.
15296 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15299 # IFS
15300 # We need space, tab and new line, in precisely that order.
15301 as_nl='
15303 IFS=" $as_nl"
15305 # CDPATH.
15306 $as_unset CDPATH
15308 exec 6>&1
15310 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15311 # report actual input values of CONFIG_FILES etc. instead of their
15312 # values after options handling. Logging --version etc. is OK.
15313 exec 5>>config.log
15315 echo
15316 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15317 ## Running $as_me. ##
15318 _ASBOX
15319 } >&5
15320 cat >&5 <<_CSEOF
15322 This file was extended by $as_me, which was
15323 generated by GNU Autoconf 2.59. Invocation command line was
15325 CONFIG_FILES = $CONFIG_FILES
15326 CONFIG_HEADERS = $CONFIG_HEADERS
15327 CONFIG_LINKS = $CONFIG_LINKS
15328 CONFIG_COMMANDS = $CONFIG_COMMANDS
15329 $ $0 $@
15331 _CSEOF
15332 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15333 echo >&5
15334 _ACEOF
15336 # Files that config.status was made for.
15337 if test -n "$ac_config_files"; then
15338 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15341 if test -n "$ac_config_headers"; then
15342 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15345 if test -n "$ac_config_links"; then
15346 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15349 if test -n "$ac_config_commands"; then
15350 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15353 cat >>$CONFIG_STATUS <<\_ACEOF
15355 ac_cs_usage="\
15356 \`$as_me' instantiates files from templates according to the
15357 current configuration.
15359 Usage: $0 [OPTIONS] [FILE]...
15361 -h, --help print this help, then exit
15362 -V, --version print version number, then exit
15363 -q, --quiet do not print progress messages
15364 -d, --debug don't remove temporary files
15365 --recheck update $as_me by reconfiguring in the same conditions
15366 --file=FILE[:TEMPLATE]
15367 instantiate the configuration file FILE
15368 --header=FILE[:TEMPLATE]
15369 instantiate the configuration header FILE
15371 Configuration files:
15372 $config_files
15374 Configuration headers:
15375 $config_headers
15377 Configuration commands:
15378 $config_commands
15380 Report bugs to <bug-autoconf@gnu.org>."
15381 _ACEOF
15383 cat >>$CONFIG_STATUS <<_ACEOF
15384 ac_cs_version="\\
15385 config.status
15386 configured by $0, generated by GNU Autoconf 2.59,
15387 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15389 Copyright (C) 2003 Free Software Foundation, Inc.
15390 This config.status script is free software; the Free Software Foundation
15391 gives unlimited permission to copy, distribute and modify it."
15392 srcdir=$srcdir
15393 INSTALL="$INSTALL"
15394 _ACEOF
15396 cat >>$CONFIG_STATUS <<\_ACEOF
15397 # If no file are specified by the user, then we need to provide default
15398 # value. By we need to know if files were specified by the user.
15399 ac_need_defaults=:
15400 while test $# != 0
15402 case $1 in
15403 --*=*)
15404 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15405 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15406 ac_shift=:
15409 ac_option=$1
15410 ac_optarg=$2
15411 ac_shift=shift
15413 *) # This is not an option, so the user has probably given explicit
15414 # arguments.
15415 ac_option=$1
15416 ac_need_defaults=false;;
15417 esac
15419 case $ac_option in
15420 # Handling of the options.
15421 _ACEOF
15422 cat >>$CONFIG_STATUS <<\_ACEOF
15423 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15424 ac_cs_recheck=: ;;
15425 --version | --vers* | -V )
15426 echo "$ac_cs_version"; exit 0 ;;
15427 --he | --h)
15428 # Conflict between --help and --header
15429 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15430 Try \`$0 --help' for more information." >&5
15431 echo "$as_me: error: ambiguous option: $1
15432 Try \`$0 --help' for more information." >&2;}
15433 { (exit 1); exit 1; }; };;
15434 --help | --hel | -h )
15435 echo "$ac_cs_usage"; exit 0 ;;
15436 --debug | --d* | -d )
15437 debug=: ;;
15438 --file | --fil | --fi | --f )
15439 $ac_shift
15440 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15441 ac_need_defaults=false;;
15442 --header | --heade | --head | --hea )
15443 $ac_shift
15444 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15445 ac_need_defaults=false;;
15446 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15447 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15448 ac_cs_silent=: ;;
15450 # This is an error.
15451 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15452 Try \`$0 --help' for more information." >&5
15453 echo "$as_me: error: unrecognized option: $1
15454 Try \`$0 --help' for more information." >&2;}
15455 { (exit 1); exit 1; }; } ;;
15457 *) ac_config_targets="$ac_config_targets $1" ;;
15459 esac
15460 shift
15461 done
15463 ac_configure_extra_args=
15465 if $ac_cs_silent; then
15466 exec 6>/dev/null
15467 ac_configure_extra_args="$ac_configure_extra_args --silent"
15470 _ACEOF
15471 cat >>$CONFIG_STATUS <<_ACEOF
15472 if \$ac_cs_recheck; then
15473 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15474 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15477 _ACEOF
15479 cat >>$CONFIG_STATUS <<_ACEOF
15481 # INIT-COMMANDS section.
15484 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15487 # The HP-UX ksh and POSIX shell print the target directory to stdout
15488 # if CDPATH is set.
15489 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15491 sed_quote_subst='$sed_quote_subst'
15492 double_quote_subst='$double_quote_subst'
15493 delay_variable_subst='$delay_variable_subst'
15494 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15495 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15496 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15497 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15498 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15499 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15500 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15501 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15502 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15503 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15504 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15505 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15506 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15507 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15508 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15509 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15510 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15511 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15512 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15513 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15514 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15515 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15516 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15517 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15518 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15519 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15520 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15521 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15522 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15523 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15524 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15525 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15526 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15527 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15528 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15529 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15530 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15531 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15532 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15533 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15534 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15535 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15536 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15537 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"`'
15538 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15539 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15540 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15541 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15542 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15543 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15544 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15545 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15546 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15547 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15548 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15549 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15550 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15551 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15552 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15553 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15554 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15555 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15556 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15557 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15558 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15559 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15560 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15561 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15562 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15563 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15564 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15565 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15566 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15567 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15568 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15569 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15570 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15571 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15572 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15573 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15574 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15575 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15576 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15577 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15578 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15579 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15580 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15581 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15582 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15583 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15584 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15585 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15586 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15587 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15588 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15589 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15590 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15591 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15592 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15593 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15594 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15595 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15596 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15597 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15598 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15599 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15600 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15601 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15602 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15603 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15604 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15606 LTCC='$LTCC'
15607 LTCFLAGS='$LTCFLAGS'
15608 compiler='$compiler_DEFAULT'
15610 # Quote evaled strings.
15611 for var in SED \
15612 GREP \
15613 EGREP \
15614 FGREP \
15615 LD \
15616 NM \
15617 LN_S \
15618 lt_SP2NL \
15619 lt_NL2SP \
15620 reload_flag \
15621 deplibs_check_method \
15622 file_magic_cmd \
15623 AR \
15624 AR_FLAGS \
15625 STRIP \
15626 RANLIB \
15627 CC \
15628 CFLAGS \
15629 compiler \
15630 lt_cv_sys_global_symbol_pipe \
15631 lt_cv_sys_global_symbol_to_cdecl \
15632 lt_cv_sys_global_symbol_to_c_name_address \
15633 SHELL \
15634 ECHO \
15635 lt_prog_compiler_no_builtin_flag \
15636 lt_prog_compiler_wl \
15637 lt_prog_compiler_pic \
15638 lt_prog_compiler_static \
15639 lt_cv_prog_compiler_c_o \
15640 need_locks \
15641 shrext_cmds \
15642 export_dynamic_flag_spec \
15643 whole_archive_flag_spec \
15644 compiler_needs_object \
15645 with_gnu_ld \
15646 allow_undefined_flag \
15647 no_undefined_flag \
15648 hardcode_libdir_flag_spec \
15649 hardcode_libdir_flag_spec_ld \
15650 hardcode_libdir_separator \
15651 fix_srcfile_path \
15652 exclude_expsyms \
15653 include_expsyms \
15654 file_list_spec \
15655 variables_saved_for_relink \
15656 libname_spec \
15657 library_names_spec \
15658 soname_spec \
15659 finish_eval \
15660 old_striplib \
15661 striplib; do
15662 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15663 *[\\\\\\\`\\"\\\$]*)
15664 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15667 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15669 esac
15670 done
15672 # Double-quote double-evaled strings.
15673 for var in reload_cmds \
15674 old_postinstall_cmds \
15675 old_postuninstall_cmds \
15676 old_archive_cmds \
15677 extract_expsyms_cmds \
15678 old_archive_from_new_cmds \
15679 old_archive_from_expsyms_cmds \
15680 archive_cmds \
15681 archive_expsym_cmds \
15682 module_cmds \
15683 module_expsym_cmds \
15684 export_symbols_cmds \
15685 prelink_cmds \
15686 postinstall_cmds \
15687 postuninstall_cmds \
15688 finish_cmds \
15689 sys_lib_search_path_spec \
15690 sys_lib_dlsearch_path_spec; do
15691 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15692 *[\\\\\\\`\\"\\\$]*)
15693 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15696 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15698 esac
15699 done
15701 # Fix-up fallback echo if it was mangled by the above quoting rules.
15702 case \$lt_ECHO in
15703 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15705 esac
15707 ac_aux_dir='$ac_aux_dir'
15708 xsi_shell='$xsi_shell'
15709 lt_shell_append='$lt_shell_append'
15711 # See if we are running on zsh, and set the options which allow our
15712 # commands through without removal of \ escapes INIT.
15713 if test -n "\${ZSH_VERSION+set}" ; then
15714 setopt NO_GLOB_SUBST
15718 PACKAGE='$PACKAGE'
15719 VERSION='$VERSION'
15720 TIMESTAMP='$TIMESTAMP'
15721 RM='$RM'
15722 ofile='$ofile'
15726 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15727 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
15728 # from automake.
15729 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15730 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15731 LINGUAS="${LINGUAS-%UNSET%}"
15734 _ACEOF
15738 cat >>$CONFIG_STATUS <<\_ACEOF
15739 for ac_config_target in $ac_config_targets
15741 case "$ac_config_target" in
15742 # Handling of arguments.
15743 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15744 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15745 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
15746 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15747 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15748 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15749 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15750 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15751 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15752 { (exit 1); exit 1; }; };;
15753 esac
15754 done
15756 # If the user did not use the arguments to specify the items to instantiate,
15757 # then the envvar interface is used. Set only those that are not.
15758 # We use the long form for the default assignment because of an extremely
15759 # bizarre bug on SunOS 4.1.3.
15760 if $ac_need_defaults; then
15761 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15762 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15763 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15766 # Have a temporary directory for convenience. Make it in the build tree
15767 # simply because there is no reason to put it here, and in addition,
15768 # creating and moving files from /tmp can sometimes cause problems.
15769 # Create a temporary directory, and hook for its removal unless debugging.
15770 $debug ||
15772 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15773 trap '{ (exit 1); exit 1; }' 1 2 13 15
15776 # Create a (secure) tmp directory for tmp files.
15779 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15780 test -n "$tmp" && test -d "$tmp"
15781 } ||
15783 tmp=./confstat$$-$RANDOM
15784 (umask 077 && mkdir $tmp)
15785 } ||
15787 echo "$me: cannot create a temporary directory in ." >&2
15788 { (exit 1); exit 1; }
15791 _ACEOF
15793 cat >>$CONFIG_STATUS <<_ACEOF
15796 # CONFIG_FILES section.
15799 # No need to generate the scripts if there are no CONFIG_FILES.
15800 # This happens for instance when ./config.status config.h
15801 if test -n "\$CONFIG_FILES"; then
15802 # Protect against being on the right side of a sed subst in config.status.
15803 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15804 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15805 s,@SHELL@,$SHELL,;t t
15806 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15807 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15808 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15809 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15810 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15811 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15812 s,@exec_prefix@,$exec_prefix,;t t
15813 s,@prefix@,$prefix,;t t
15814 s,@program_transform_name@,$program_transform_name,;t t
15815 s,@bindir@,$bindir,;t t
15816 s,@sbindir@,$sbindir,;t t
15817 s,@libexecdir@,$libexecdir,;t t
15818 s,@datadir@,$datadir,;t t
15819 s,@sysconfdir@,$sysconfdir,;t t
15820 s,@sharedstatedir@,$sharedstatedir,;t t
15821 s,@localstatedir@,$localstatedir,;t t
15822 s,@libdir@,$libdir,;t t
15823 s,@includedir@,$includedir,;t t
15824 s,@oldincludedir@,$oldincludedir,;t t
15825 s,@infodir@,$infodir,;t t
15826 s,@mandir@,$mandir,;t t
15827 s,@build_alias@,$build_alias,;t t
15828 s,@host_alias@,$host_alias,;t t
15829 s,@target_alias@,$target_alias,;t t
15830 s,@DEFS@,$DEFS,;t t
15831 s,@ECHO_C@,$ECHO_C,;t t
15832 s,@ECHO_N@,$ECHO_N,;t t
15833 s,@ECHO_T@,$ECHO_T,;t t
15834 s,@LIBS@,$LIBS,;t t
15835 s,@build@,$build,;t t
15836 s,@build_cpu@,$build_cpu,;t t
15837 s,@build_vendor@,$build_vendor,;t t
15838 s,@build_os@,$build_os,;t t
15839 s,@host@,$host,;t t
15840 s,@host_cpu@,$host_cpu,;t t
15841 s,@host_vendor@,$host_vendor,;t t
15842 s,@host_os@,$host_os,;t t
15843 s,@target@,$target,;t t
15844 s,@target_cpu@,$target_cpu,;t t
15845 s,@target_vendor@,$target_vendor,;t t
15846 s,@target_os@,$target_os,;t t
15847 s,@CC@,$CC,;t t
15848 s,@CFLAGS@,$CFLAGS,;t t
15849 s,@LDFLAGS@,$LDFLAGS,;t t
15850 s,@CPPFLAGS@,$CPPFLAGS,;t t
15851 s,@ac_ct_CC@,$ac_ct_CC,;t t
15852 s,@EXEEXT@,$EXEEXT,;t t
15853 s,@OBJEXT@,$OBJEXT,;t t
15854 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15855 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15856 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15857 s,@CYGPATH_W@,$CYGPATH_W,;t t
15858 s,@PACKAGE@,$PACKAGE,;t t
15859 s,@VERSION@,$VERSION,;t t
15860 s,@ACLOCAL@,$ACLOCAL,;t t
15861 s,@AUTOCONF@,$AUTOCONF,;t t
15862 s,@AUTOMAKE@,$AUTOMAKE,;t t
15863 s,@AUTOHEADER@,$AUTOHEADER,;t t
15864 s,@MAKEINFO@,$MAKEINFO,;t t
15865 s,@install_sh@,$install_sh,;t t
15866 s,@STRIP@,$STRIP,;t t
15867 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15868 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
15869 s,@mkdir_p@,$mkdir_p,;t t
15870 s,@AWK@,$AWK,;t t
15871 s,@SET_MAKE@,$SET_MAKE,;t t
15872 s,@am__leading_dot@,$am__leading_dot,;t t
15873 s,@AMTAR@,$AMTAR,;t t
15874 s,@am__tar@,$am__tar,;t t
15875 s,@am__untar@,$am__untar,;t t
15876 s,@DEPDIR@,$DEPDIR,;t t
15877 s,@am__include@,$am__include,;t t
15878 s,@am__quote@,$am__quote,;t t
15879 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
15880 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
15881 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
15882 s,@CCDEPMODE@,$CCDEPMODE,;t t
15883 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
15884 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
15885 s,@LIBTOOL@,$LIBTOOL,;t t
15886 s,@SED@,$SED,;t t
15887 s,@EGREP@,$EGREP,;t t
15888 s,@FGREP@,$FGREP,;t t
15889 s,@GREP@,$GREP,;t t
15890 s,@LD@,$LD,;t t
15891 s,@DUMPBIN@,$DUMPBIN,;t t
15892 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
15893 s,@NM@,$NM,;t t
15894 s,@LN_S@,$LN_S,;t t
15895 s,@AR@,$AR,;t t
15896 s,@ac_ct_AR@,$ac_ct_AR,;t t
15897 s,@RANLIB@,$RANLIB,;t t
15898 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15899 s,@lt_ECHO@,$lt_ECHO,;t t
15900 s,@CPP@,$CPP,;t t
15901 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
15902 s,@NO_WERROR@,$NO_WERROR,;t t
15903 s,@YACC@,$YACC,;t t
15904 s,@LEX@,$LEX,;t t
15905 s,@LEXLIB@,$LEXLIB,;t t
15906 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
15907 s,@USE_NLS@,$USE_NLS,;t t
15908 s,@LIBINTL@,$LIBINTL,;t t
15909 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
15910 s,@INCINTL@,$INCINTL,;t t
15911 s,@XGETTEXT@,$XGETTEXT,;t t
15912 s,@GMSGFMT@,$GMSGFMT,;t t
15913 s,@POSUB@,$POSUB,;t t
15914 s,@CATALOGS@,$CATALOGS,;t t
15915 s,@DATADIRNAME@,$DATADIRNAME,;t t
15916 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
15917 s,@GENCAT@,$GENCAT,;t t
15918 s,@CATOBJEXT@,$CATOBJEXT,;t t
15919 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
15920 s,@MSGFMT@,$MSGFMT,;t t
15921 s,@MSGMERGE@,$MSGMERGE,;t t
15922 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
15923 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
15924 s,@MAINT@,$MAINT,;t t
15925 s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
15926 s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
15927 s,@HDEFINES@,$HDEFINES,;t t
15928 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
15929 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
15930 s,@DEMANGLER_NAME@,$DEMANGLER_NAME,;t t
15931 s,@ALLOCA@,$ALLOCA,;t t
15932 s,@LIBICONV@,$LIBICONV,;t t
15933 s,@LTLIBICONV@,$LTLIBICONV,;t t
15934 s,@NLMCONV_DEFS@,$NLMCONV_DEFS,;t t
15935 s,@BUILD_NLMCONV@,$BUILD_NLMCONV,;t t
15936 s,@BUILD_SRCONV@,$BUILD_SRCONV,;t t
15937 s,@BUILD_DLLTOOL@,$BUILD_DLLTOOL,;t t
15938 s,@DLLTOOL_DEFS@,$DLLTOOL_DEFS,;t t
15939 s,@BUILD_WINDRES@,$BUILD_WINDRES,;t t
15940 s,@BUILD_WINDMC@,$BUILD_WINDMC,;t t
15941 s,@BUILD_DLLWRAP@,$BUILD_DLLWRAP,;t t
15942 s,@BUILD_MISC@,$BUILD_MISC,;t t
15943 s,@BUILD_INSTALL_MISC@,$BUILD_INSTALL_MISC,;t t
15944 s,@OBJDUMP_DEFS@,$OBJDUMP_DEFS,;t t
15945 s,@EMULATION@,$EMULATION,;t t
15946 s,@EMULATION_VECTOR@,$EMULATION_VECTOR,;t t
15947 s,@datarootdir@,$datarootdir,;t t
15948 s,@docdir@,$docdir,;t t
15949 s,@htmldir@,$htmldir,;t t
15950 s,@LIBOBJS@,$LIBOBJS,;t t
15951 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15952 CEOF
15954 _ACEOF
15956 cat >>$CONFIG_STATUS <<\_ACEOF
15957 # Split the substitutions into bite-sized pieces for seds with
15958 # small command number limits, like on Digital OSF/1 and HP-UX.
15959 ac_max_sed_lines=48
15960 ac_sed_frag=1 # Number of current file.
15961 ac_beg=1 # First line for current file.
15962 ac_end=$ac_max_sed_lines # Line after last line for current file.
15963 ac_more_lines=:
15964 ac_sed_cmds=
15965 while $ac_more_lines; do
15966 if test $ac_beg -gt 1; then
15967 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15968 else
15969 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15971 if test ! -s $tmp/subs.frag; then
15972 ac_more_lines=false
15973 else
15974 # The purpose of the label and of the branching condition is to
15975 # speed up the sed processing (if there are no `@' at all, there
15976 # is no need to browse any of the substitutions).
15977 # These are the two extra sed commands mentioned above.
15978 (echo ':t
15979 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15980 if test -z "$ac_sed_cmds"; then
15981 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15982 else
15983 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15985 ac_sed_frag=`expr $ac_sed_frag + 1`
15986 ac_beg=$ac_end
15987 ac_end=`expr $ac_end + $ac_max_sed_lines`
15989 done
15990 if test -z "$ac_sed_cmds"; then
15991 ac_sed_cmds=cat
15993 fi # test -n "$CONFIG_FILES"
15995 _ACEOF
15996 cat >>$CONFIG_STATUS <<\_ACEOF
15997 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15998 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15999 case $ac_file in
16000 - | *:- | *:-:* ) # input from stdin
16001 cat >$tmp/stdin
16002 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16003 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16004 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16005 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16006 * ) ac_file_in=$ac_file.in ;;
16007 esac
16009 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16010 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16011 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16012 X"$ac_file" : 'X\(//\)[^/]' \| \
16013 X"$ac_file" : 'X\(//\)$' \| \
16014 X"$ac_file" : 'X\(/\)' \| \
16015 . : '\(.\)' 2>/dev/null ||
16016 echo X"$ac_file" |
16017 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16018 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16019 /^X\(\/\/\)$/{ s//\1/; q; }
16020 /^X\(\/\).*/{ s//\1/; q; }
16021 s/.*/./; q'`
16022 { if $as_mkdir_p; then
16023 mkdir -p "$ac_dir"
16024 else
16025 as_dir="$ac_dir"
16026 as_dirs=
16027 while test ! -d "$as_dir"; do
16028 as_dirs="$as_dir $as_dirs"
16029 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16030 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16031 X"$as_dir" : 'X\(//\)[^/]' \| \
16032 X"$as_dir" : 'X\(//\)$' \| \
16033 X"$as_dir" : 'X\(/\)' \| \
16034 . : '\(.\)' 2>/dev/null ||
16035 echo X"$as_dir" |
16036 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16037 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16038 /^X\(\/\/\)$/{ s//\1/; q; }
16039 /^X\(\/\).*/{ s//\1/; q; }
16040 s/.*/./; q'`
16041 done
16042 test ! -n "$as_dirs" || mkdir $as_dirs
16043 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16044 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16045 { (exit 1); exit 1; }; }; }
16047 ac_builddir=.
16049 if test "$ac_dir" != .; then
16050 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16051 # A "../" for each directory in $ac_dir_suffix.
16052 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16053 else
16054 ac_dir_suffix= ac_top_builddir=
16057 case $srcdir in
16058 .) # No --srcdir option. We are building in place.
16059 ac_srcdir=.
16060 if test -z "$ac_top_builddir"; then
16061 ac_top_srcdir=.
16062 else
16063 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16064 fi ;;
16065 [\\/]* | ?:[\\/]* ) # Absolute path.
16066 ac_srcdir=$srcdir$ac_dir_suffix;
16067 ac_top_srcdir=$srcdir ;;
16068 *) # Relative path.
16069 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16070 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16071 esac
16073 # Do not use `cd foo && pwd` to compute absolute paths, because
16074 # the directories may not exist.
16075 case `pwd` in
16076 .) ac_abs_builddir="$ac_dir";;
16078 case "$ac_dir" in
16079 .) ac_abs_builddir=`pwd`;;
16080 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16081 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16082 esac;;
16083 esac
16084 case $ac_abs_builddir in
16085 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16087 case ${ac_top_builddir}. in
16088 .) ac_abs_top_builddir=$ac_abs_builddir;;
16089 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16090 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16091 esac;;
16092 esac
16093 case $ac_abs_builddir in
16094 .) ac_abs_srcdir=$ac_srcdir;;
16096 case $ac_srcdir in
16097 .) ac_abs_srcdir=$ac_abs_builddir;;
16098 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16099 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16100 esac;;
16101 esac
16102 case $ac_abs_builddir in
16103 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16105 case $ac_top_srcdir in
16106 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16107 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16108 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16109 esac;;
16110 esac
16113 case $INSTALL in
16114 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16115 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
16116 esac
16118 # Let's still pretend it is `configure' which instantiates (i.e., don't
16119 # use $as_me), people would be surprised to read:
16120 # /* config.h. Generated by config.status. */
16121 if test x"$ac_file" = x-; then
16122 configure_input=
16123 else
16124 configure_input="$ac_file. "
16126 configure_input=$configure_input"Generated from `echo $ac_file_in |
16127 sed 's,.*/,,'` by configure."
16129 # First look for the input files in the build tree, otherwise in the
16130 # src tree.
16131 ac_file_inputs=`IFS=:
16132 for f in $ac_file_in; do
16133 case $f in
16134 -) echo $tmp/stdin ;;
16135 [\\/$]*)
16136 # Absolute (can't be DOS-style, as IFS=:)
16137 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16138 echo "$as_me: error: cannot find input file: $f" >&2;}
16139 { (exit 1); exit 1; }; }
16140 echo "$f";;
16141 *) # Relative
16142 if test -f "$f"; then
16143 # Build tree
16144 echo "$f"
16145 elif test -f "$srcdir/$f"; then
16146 # Source tree
16147 echo "$srcdir/$f"
16148 else
16149 # /dev/null tree
16150 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16151 echo "$as_me: error: cannot find input file: $f" >&2;}
16152 { (exit 1); exit 1; }; }
16153 fi;;
16154 esac
16155 done` || { (exit 1); exit 1; }
16157 if test x"$ac_file" != x-; then
16158 { echo "$as_me:$LINENO: creating $ac_file" >&5
16159 echo "$as_me: creating $ac_file" >&6;}
16160 rm -f "$ac_file"
16162 _ACEOF
16163 cat >>$CONFIG_STATUS <<_ACEOF
16164 sed "$ac_vpsub
16165 $extrasub
16166 _ACEOF
16167 cat >>$CONFIG_STATUS <<\_ACEOF
16169 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16170 s,@configure_input@,$configure_input,;t t
16171 s,@srcdir@,$ac_srcdir,;t t
16172 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16173 s,@top_srcdir@,$ac_top_srcdir,;t t
16174 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16175 s,@builddir@,$ac_builddir,;t t
16176 s,@abs_builddir@,$ac_abs_builddir,;t t
16177 s,@top_builddir@,$ac_top_builddir,;t t
16178 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16179 s,@INSTALL@,$ac_INSTALL,;t t
16180 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16181 rm -f $tmp/stdin
16182 if test x"$ac_file" != x-; then
16183 mv $tmp/out $ac_file
16184 else
16185 cat $tmp/out
16186 rm -f $tmp/out
16189 done
16190 _ACEOF
16191 cat >>$CONFIG_STATUS <<\_ACEOF
16194 # CONFIG_HEADER section.
16197 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16198 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16200 # ac_d sets the value in "#define NAME VALUE" lines.
16201 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16202 ac_dB='[ ].*$,\1#\2'
16203 ac_dC=' '
16204 ac_dD=',;t'
16205 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16206 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16207 ac_uB='$,\1#\2define\3'
16208 ac_uC=' '
16209 ac_uD=',;t'
16211 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16212 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16213 case $ac_file in
16214 - | *:- | *:-:* ) # input from stdin
16215 cat >$tmp/stdin
16216 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16217 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16218 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16219 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16220 * ) ac_file_in=$ac_file.in ;;
16221 esac
16223 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16224 echo "$as_me: creating $ac_file" >&6;}
16226 # First look for the input files in the build tree, otherwise in the
16227 # src tree.
16228 ac_file_inputs=`IFS=:
16229 for f in $ac_file_in; do
16230 case $f in
16231 -) echo $tmp/stdin ;;
16232 [\\/$]*)
16233 # Absolute (can't be DOS-style, as IFS=:)
16234 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16235 echo "$as_me: error: cannot find input file: $f" >&2;}
16236 { (exit 1); exit 1; }; }
16237 # Do quote $f, to prevent DOS paths from being IFS'd.
16238 echo "$f";;
16239 *) # Relative
16240 if test -f "$f"; then
16241 # Build tree
16242 echo "$f"
16243 elif test -f "$srcdir/$f"; then
16244 # Source tree
16245 echo "$srcdir/$f"
16246 else
16247 # /dev/null tree
16248 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16249 echo "$as_me: error: cannot find input file: $f" >&2;}
16250 { (exit 1); exit 1; }; }
16251 fi;;
16252 esac
16253 done` || { (exit 1); exit 1; }
16254 # Remove the trailing spaces.
16255 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16257 _ACEOF
16259 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16260 # `conftest.undefs', that substitutes the proper values into
16261 # config.h.in to produce config.h. The first handles `#define'
16262 # templates, and the second `#undef' templates.
16263 # And first: Protect against being on the right side of a sed subst in
16264 # config.status. Protect against being in an unquoted here document
16265 # in config.status.
16266 rm -f conftest.defines conftest.undefs
16267 # Using a here document instead of a string reduces the quoting nightmare.
16268 # Putting comments in sed scripts is not portable.
16270 # `end' is used to avoid that the second main sed command (meant for
16271 # 0-ary CPP macros) applies to n-ary macro definitions.
16272 # See the Autoconf documentation for `clear'.
16273 cat >confdef2sed.sed <<\_ACEOF
16274 s/[\\&,]/\\&/g
16275 s,[\\$`],\\&,g
16276 t clear
16277 : clear
16278 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16279 t end
16280 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16281 : end
16282 _ACEOF
16283 # If some macros were called several times there might be several times
16284 # the same #defines, which is useless. Nevertheless, we may not want to
16285 # sort them, since we want the *last* AC-DEFINE to be honored.
16286 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16287 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16288 rm -f confdef2sed.sed
16290 # This sed command replaces #undef with comments. This is necessary, for
16291 # example, in the case of _POSIX_SOURCE, which is predefined and required
16292 # on some systems where configure will not decide to define it.
16293 cat >>conftest.undefs <<\_ACEOF
16294 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16295 _ACEOF
16297 # Break up conftest.defines because some shells have a limit on the size
16298 # of here documents, and old seds have small limits too (100 cmds).
16299 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16300 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16301 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16302 echo ' :' >>$CONFIG_STATUS
16303 rm -f conftest.tail
16304 while grep . conftest.defines >/dev/null
16306 # Write a limited-size here document to $tmp/defines.sed.
16307 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16308 # Speed up: don't consider the non `#define' lines.
16309 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16310 # Work around the forget-to-reset-the-flag bug.
16311 echo 't clr' >>$CONFIG_STATUS
16312 echo ': clr' >>$CONFIG_STATUS
16313 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16314 echo 'CEOF
16315 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16316 rm -f $tmp/in
16317 mv $tmp/out $tmp/in
16318 ' >>$CONFIG_STATUS
16319 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16320 rm -f conftest.defines
16321 mv conftest.tail conftest.defines
16322 done
16323 rm -f conftest.defines
16324 echo ' fi # grep' >>$CONFIG_STATUS
16325 echo >>$CONFIG_STATUS
16327 # Break up conftest.undefs because some shells have a limit on the size
16328 # of here documents, and old seds have small limits too (100 cmds).
16329 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16330 rm -f conftest.tail
16331 while grep . conftest.undefs >/dev/null
16333 # Write a limited-size here document to $tmp/undefs.sed.
16334 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16335 # Speed up: don't consider the non `#undef'
16336 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16337 # Work around the forget-to-reset-the-flag bug.
16338 echo 't clr' >>$CONFIG_STATUS
16339 echo ': clr' >>$CONFIG_STATUS
16340 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16341 echo 'CEOF
16342 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16343 rm -f $tmp/in
16344 mv $tmp/out $tmp/in
16345 ' >>$CONFIG_STATUS
16346 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16347 rm -f conftest.undefs
16348 mv conftest.tail conftest.undefs
16349 done
16350 rm -f conftest.undefs
16352 cat >>$CONFIG_STATUS <<\_ACEOF
16353 # Let's still pretend it is `configure' which instantiates (i.e., don't
16354 # use $as_me), people would be surprised to read:
16355 # /* config.h. Generated by config.status. */
16356 if test x"$ac_file" = x-; then
16357 echo "/* Generated by configure. */" >$tmp/config.h
16358 else
16359 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16361 cat $tmp/in >>$tmp/config.h
16362 rm -f $tmp/in
16363 if test x"$ac_file" != x-; then
16364 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16365 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16366 echo "$as_me: $ac_file is unchanged" >&6;}
16367 else
16368 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16369 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16370 X"$ac_file" : 'X\(//\)[^/]' \| \
16371 X"$ac_file" : 'X\(//\)$' \| \
16372 X"$ac_file" : 'X\(/\)' \| \
16373 . : '\(.\)' 2>/dev/null ||
16374 echo X"$ac_file" |
16375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16376 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16377 /^X\(\/\/\)$/{ s//\1/; q; }
16378 /^X\(\/\).*/{ s//\1/; q; }
16379 s/.*/./; q'`
16380 { if $as_mkdir_p; then
16381 mkdir -p "$ac_dir"
16382 else
16383 as_dir="$ac_dir"
16384 as_dirs=
16385 while test ! -d "$as_dir"; do
16386 as_dirs="$as_dir $as_dirs"
16387 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16388 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16389 X"$as_dir" : 'X\(//\)[^/]' \| \
16390 X"$as_dir" : 'X\(//\)$' \| \
16391 X"$as_dir" : 'X\(/\)' \| \
16392 . : '\(.\)' 2>/dev/null ||
16393 echo X"$as_dir" |
16394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16395 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16396 /^X\(\/\/\)$/{ s//\1/; q; }
16397 /^X\(\/\).*/{ s//\1/; q; }
16398 s/.*/./; q'`
16399 done
16400 test ! -n "$as_dirs" || mkdir $as_dirs
16401 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16402 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16403 { (exit 1); exit 1; }; }; }
16405 rm -f $ac_file
16406 mv $tmp/config.h $ac_file
16408 else
16409 cat $tmp/config.h
16410 rm -f $tmp/config.h
16412 # Compute $ac_file's index in $config_headers.
16413 _am_stamp_count=1
16414 for _am_header in $config_headers :; do
16415 case $_am_header in
16416 $ac_file | $ac_file:* )
16417 break ;;
16419 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16420 esac
16421 done
16422 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
16423 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16424 X$ac_file : 'X\(//\)[^/]' \| \
16425 X$ac_file : 'X\(//\)$' \| \
16426 X$ac_file : 'X\(/\)' \| \
16427 . : '\(.\)' 2>/dev/null ||
16428 echo X$ac_file |
16429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16430 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16431 /^X\(\/\/\)$/{ s//\1/; q; }
16432 /^X\(\/\).*/{ s//\1/; q; }
16433 s/.*/./; q'`/stamp-h$_am_stamp_count
16434 done
16435 _ACEOF
16436 cat >>$CONFIG_STATUS <<\_ACEOF
16439 # CONFIG_COMMANDS section.
16441 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16442 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16443 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16444 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16445 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16446 X"$ac_dest" : 'X\(//\)[^/]' \| \
16447 X"$ac_dest" : 'X\(//\)$' \| \
16448 X"$ac_dest" : 'X\(/\)' \| \
16449 . : '\(.\)' 2>/dev/null ||
16450 echo X"$ac_dest" |
16451 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16452 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16453 /^X\(\/\/\)$/{ s//\1/; q; }
16454 /^X\(\/\).*/{ s//\1/; q; }
16455 s/.*/./; q'`
16456 { if $as_mkdir_p; then
16457 mkdir -p "$ac_dir"
16458 else
16459 as_dir="$ac_dir"
16460 as_dirs=
16461 while test ! -d "$as_dir"; do
16462 as_dirs="$as_dir $as_dirs"
16463 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16464 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16465 X"$as_dir" : 'X\(//\)[^/]' \| \
16466 X"$as_dir" : 'X\(//\)$' \| \
16467 X"$as_dir" : 'X\(/\)' \| \
16468 . : '\(.\)' 2>/dev/null ||
16469 echo X"$as_dir" |
16470 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16471 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16472 /^X\(\/\/\)$/{ s//\1/; q; }
16473 /^X\(\/\).*/{ s//\1/; q; }
16474 s/.*/./; q'`
16475 done
16476 test ! -n "$as_dirs" || mkdir $as_dirs
16477 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16478 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16479 { (exit 1); exit 1; }; }; }
16481 ac_builddir=.
16483 if test "$ac_dir" != .; then
16484 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16485 # A "../" for each directory in $ac_dir_suffix.
16486 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16487 else
16488 ac_dir_suffix= ac_top_builddir=
16491 case $srcdir in
16492 .) # No --srcdir option. We are building in place.
16493 ac_srcdir=.
16494 if test -z "$ac_top_builddir"; then
16495 ac_top_srcdir=.
16496 else
16497 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16498 fi ;;
16499 [\\/]* | ?:[\\/]* ) # Absolute path.
16500 ac_srcdir=$srcdir$ac_dir_suffix;
16501 ac_top_srcdir=$srcdir ;;
16502 *) # Relative path.
16503 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16504 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16505 esac
16507 # Do not use `cd foo && pwd` to compute absolute paths, because
16508 # the directories may not exist.
16509 case `pwd` in
16510 .) ac_abs_builddir="$ac_dir";;
16512 case "$ac_dir" in
16513 .) ac_abs_builddir=`pwd`;;
16514 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16515 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16516 esac;;
16517 esac
16518 case $ac_abs_builddir in
16519 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16521 case ${ac_top_builddir}. in
16522 .) ac_abs_top_builddir=$ac_abs_builddir;;
16523 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16524 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16525 esac;;
16526 esac
16527 case $ac_abs_builddir in
16528 .) ac_abs_srcdir=$ac_srcdir;;
16530 case $ac_srcdir in
16531 .) ac_abs_srcdir=$ac_abs_builddir;;
16532 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16533 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16534 esac;;
16535 esac
16536 case $ac_abs_builddir in
16537 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16539 case $ac_top_srcdir in
16540 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16541 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16542 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16543 esac;;
16544 esac
16547 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16548 echo "$as_me: executing $ac_dest commands" >&6;}
16549 case $ac_dest in
16550 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
16551 # Strip MF so we end up with the name of the file.
16552 mf=`echo "$mf" | sed -e 's/:.*$//'`
16553 # Check whether this is an Automake generated Makefile or not.
16554 # We used to match only the files named `Makefile.in', but
16555 # some people rename them; so instead we look at the file content.
16556 # Grep'ing the first line is not enough: some people post-process
16557 # each Makefile.in and add a new line on top of each file to say so.
16558 # So let's grep whole file.
16559 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
16560 dirpart=`(dirname "$mf") 2>/dev/null ||
16561 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16562 X"$mf" : 'X\(//\)[^/]' \| \
16563 X"$mf" : 'X\(//\)$' \| \
16564 X"$mf" : 'X\(/\)' \| \
16565 . : '\(.\)' 2>/dev/null ||
16566 echo X"$mf" |
16567 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16568 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16569 /^X\(\/\/\)$/{ s//\1/; q; }
16570 /^X\(\/\).*/{ s//\1/; q; }
16571 s/.*/./; q'`
16572 else
16573 continue
16575 # Extract the definition of DEPDIR, am__include, and am__quote
16576 # from the Makefile without running `make'.
16577 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16578 test -z "$DEPDIR" && continue
16579 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16580 test -z "am__include" && continue
16581 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16582 # When using ansi2knr, U may be empty or an underscore; expand it
16583 U=`sed -n 's/^U = //p' < "$mf"`
16584 # Find all dependency output files, they are included files with
16585 # $(DEPDIR) in their names. We invoke sed twice because it is the
16586 # simplest approach to changing $(DEPDIR) to its actual value in the
16587 # expansion.
16588 for file in `sed -n "
16589 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16590 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16591 # Make sure the directory exists.
16592 test -f "$dirpart/$file" && continue
16593 fdir=`(dirname "$file") 2>/dev/null ||
16594 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16595 X"$file" : 'X\(//\)[^/]' \| \
16596 X"$file" : 'X\(//\)$' \| \
16597 X"$file" : 'X\(/\)' \| \
16598 . : '\(.\)' 2>/dev/null ||
16599 echo X"$file" |
16600 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16601 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16602 /^X\(\/\/\)$/{ s//\1/; q; }
16603 /^X\(\/\).*/{ s//\1/; q; }
16604 s/.*/./; q'`
16605 { if $as_mkdir_p; then
16606 mkdir -p $dirpart/$fdir
16607 else
16608 as_dir=$dirpart/$fdir
16609 as_dirs=
16610 while test ! -d "$as_dir"; do
16611 as_dirs="$as_dir $as_dirs"
16612 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16613 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16614 X"$as_dir" : 'X\(//\)[^/]' \| \
16615 X"$as_dir" : 'X\(//\)$' \| \
16616 X"$as_dir" : 'X\(/\)' \| \
16617 . : '\(.\)' 2>/dev/null ||
16618 echo X"$as_dir" |
16619 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16620 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16621 /^X\(\/\/\)$/{ s//\1/; q; }
16622 /^X\(\/\).*/{ s//\1/; q; }
16623 s/.*/./; q'`
16624 done
16625 test ! -n "$as_dirs" || mkdir $as_dirs
16626 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
16627 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
16628 { (exit 1); exit 1; }; }; }
16630 # echo "creating $dirpart/$file"
16631 echo '# dummy' > "$dirpart/$file"
16632 done
16633 done
16635 libtool )
16637 # See if we are running on zsh, and set the options which allow our
16638 # commands through without removal of \ escapes.
16639 if test -n "${ZSH_VERSION+set}" ; then
16640 setopt NO_GLOB_SUBST
16643 cfgfile="${ofile}T"
16644 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16645 $RM "$cfgfile"
16647 cat <<_LT_EOF >> "$cfgfile"
16648 #! $SHELL
16650 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16651 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
16652 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16653 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16655 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16656 # 2006, 2007 Free Software Foundation, Inc.
16658 # This file is part of GNU Libtool:
16659 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
16661 # This program is free software; you can redistribute it and/or modify
16662 # it under the terms of the GNU General Public License as published by
16663 # the Free Software Foundation; either version 2 of the License, or
16664 # (at your option) any later version.
16666 # This program is distributed in the hope that it will be useful, but
16667 # WITHOUT ANY WARRANTY; without even the implied warranty of
16668 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16669 # General Public License for more details.
16671 # You should have received a copy of the GNU General Public License
16672 # along with this program; if not, a copy can be downloaded from
16673 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
16674 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16675 # MA 02110-1301, USA.
16677 # As a special exception to the GNU General Public License, if you
16678 # distribute this file as part of a program that contains a
16679 # configuration script generated by Autoconf, you may include it under
16680 # the same distribution terms that you use for the rest of that program.
16683 # The names of the tagged configurations supported by this script.
16684 available_tags=""
16686 # ### BEGIN LIBTOOL CONFIG
16688 # Which release of libtool.m4 was used?
16689 macro_version=$macro_version
16690 macro_revision=$macro_revision
16692 # Whether or not to build shared libraries.
16693 build_libtool_libs=$enable_shared
16695 # Whether or not to build static libraries.
16696 build_old_libs=$enable_static
16698 # What type of objects to build.
16699 pic_mode=$pic_mode
16701 # Whether or not to optimize for fast installation.
16702 fast_install=$enable_fast_install
16704 # The host system.
16705 host_alias=$host_alias
16706 host=$host
16707 host_os=$host_os
16709 # The build system.
16710 build_alias=$build_alias
16711 build=$build
16712 build_os=$build_os
16714 # A sed program that does not truncate output.
16715 SED=$lt_SED
16717 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16718 Xsed="\$SED -e 1s/^X//"
16720 # A grep program that handles long lines.
16721 GREP=$lt_GREP
16723 # An ERE matcher.
16724 EGREP=$lt_EGREP
16726 # A literal string matcher.
16727 FGREP=$lt_FGREP
16729 # A BSD- or MS-compatible name lister.
16730 NM=$lt_NM
16732 # Whether we need soft or hard links.
16733 LN_S=$lt_LN_S
16735 # What is the maximum length of a command?
16736 max_cmd_len=$max_cmd_len
16738 # Object file suffix (normally "o").
16739 objext=$ac_objext
16741 # Executable file suffix (normally "").
16742 exeext=$exeext
16744 # whether the shell understands "unset".
16745 lt_unset=$lt_unset
16747 # turn spaces into newlines.
16748 SP2NL=$lt_lt_SP2NL
16750 # turn newlines into spaces.
16751 NL2SP=$lt_lt_NL2SP
16753 # How to create reloadable object files.
16754 reload_flag=$lt_reload_flag
16755 reload_cmds=$lt_reload_cmds
16757 # Method to check whether dependent libraries are shared objects.
16758 deplibs_check_method=$lt_deplibs_check_method
16760 # Command to use when deplibs_check_method == "file_magic".
16761 file_magic_cmd=$lt_file_magic_cmd
16763 # The archiver.
16764 AR=$lt_AR
16765 AR_FLAGS=$lt_AR_FLAGS
16767 # A symbol stripping program.
16768 STRIP=$lt_STRIP
16770 # Commands used to install an old-style archive.
16771 RANLIB=$lt_RANLIB
16772 old_postinstall_cmds=$lt_old_postinstall_cmds
16773 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16775 # A C compiler.
16776 LTCC=$lt_CC
16778 # LTCC compiler flags.
16779 LTCFLAGS=$lt_CFLAGS
16781 # Take the output of nm and produce a listing of raw symbols and C names.
16782 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16784 # Transform the output of nm in a proper C declaration.
16785 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16787 # Transform the output of nm in a C name address pair.
16788 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16790 # The name of the directory that contains temporary libtool files.
16791 objdir=$objdir
16793 # Shell to use when invoking shell scripts.
16794 SHELL=$lt_SHELL
16796 # An echo program that does not interpret backslashes.
16797 ECHO=$lt_ECHO
16799 # Used to examine libraries when file_magic_cmd begins with "file".
16800 MAGIC_CMD=$MAGIC_CMD
16802 # Must we lock files when doing compilation?
16803 need_locks=$lt_need_locks
16805 # Old archive suffix (normally "a").
16806 libext=$libext
16808 # Shared library suffix (normally ".so").
16809 shrext_cmds=$lt_shrext_cmds
16811 # The commands to extract the exported symbol list from a shared archive.
16812 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16814 # Variables whose values should be saved in libtool wrapper scripts and
16815 # restored at link time.
16816 variables_saved_for_relink=$lt_variables_saved_for_relink
16818 # Do we need the "lib" prefix for modules?
16819 need_lib_prefix=$need_lib_prefix
16821 # Do we need a version for libraries?
16822 need_version=$need_version
16824 # Library versioning type.
16825 version_type=$version_type
16827 # Shared library runtime path variable.
16828 runpath_var=$runpath_var
16830 # Shared library path variable.
16831 shlibpath_var=$shlibpath_var
16833 # Is shlibpath searched before the hard-coded library search path?
16834 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16836 # Format of library name prefix.
16837 libname_spec=$lt_libname_spec
16839 # List of archive names. First name is the real one, the rest are links.
16840 # The last name is the one that the linker finds with -lNAME
16841 library_names_spec=$lt_library_names_spec
16843 # The coded name of the library, if different from the real name.
16844 soname_spec=$lt_soname_spec
16846 # Command to use after installation of a shared archive.
16847 postinstall_cmds=$lt_postinstall_cmds
16849 # Command to use after uninstallation of a shared archive.
16850 postuninstall_cmds=$lt_postuninstall_cmds
16852 # Commands used to finish a libtool library installation in a directory.
16853 finish_cmds=$lt_finish_cmds
16855 # As "finish_cmds", except a single script fragment to be evaled but
16856 # not shown.
16857 finish_eval=$lt_finish_eval
16859 # Whether we should hardcode library paths into libraries.
16860 hardcode_into_libs=$hardcode_into_libs
16862 # Compile-time system search path for libraries.
16863 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16865 # Run-time system search path for libraries.
16866 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16868 # Whether dlopen is supported.
16869 dlopen_support=$enable_dlopen
16871 # Whether dlopen of programs is supported.
16872 dlopen_self=$enable_dlopen_self
16874 # Whether dlopen of statically linked programs is supported.
16875 dlopen_self_static=$enable_dlopen_self_static
16877 # Commands to strip libraries.
16878 old_striplib=$lt_old_striplib
16879 striplib=$lt_striplib
16882 # The linker used to build libraries.
16883 LD=$lt_LD
16885 # Commands used to build an old-style archive.
16886 old_archive_cmds=$lt_old_archive_cmds
16888 # A language specific compiler.
16889 CC=$lt_compiler
16891 # Is the compiler the GNU compiler?
16892 with_gcc=$GCC
16894 # Compiler flag to turn off builtin functions.
16895 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16897 # How to pass a linker flag through the compiler.
16898 wl=$lt_lt_prog_compiler_wl
16900 # Additional compiler flags for building library objects.
16901 pic_flag=$lt_lt_prog_compiler_pic
16903 # Compiler flag to prevent dynamic linking.
16904 link_static_flag=$lt_lt_prog_compiler_static
16906 # Does compiler simultaneously support -c and -o options?
16907 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16909 # Whether or not to add -lc for building shared libraries.
16910 build_libtool_need_lc=$archive_cmds_need_lc
16912 # Whether or not to disallow shared libs when runtime libs are static.
16913 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16915 # Compiler flag to allow reflexive dlopens.
16916 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16918 # Compiler flag to generate shared objects directly from archives.
16919 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16921 # Whether the compiler copes with passing no objects directly.
16922 compiler_needs_object=$lt_compiler_needs_object
16924 # Create an old-style archive from a shared archive.
16925 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16927 # Create a temporary old-style archive to link instead of a shared archive.
16928 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16930 # Commands used to build a shared archive.
16931 archive_cmds=$lt_archive_cmds
16932 archive_expsym_cmds=$lt_archive_expsym_cmds
16934 # Commands used to build a loadable module if different from building
16935 # a shared archive.
16936 module_cmds=$lt_module_cmds
16937 module_expsym_cmds=$lt_module_expsym_cmds
16939 # Whether we are building with GNU ld or not.
16940 with_gnu_ld=$lt_with_gnu_ld
16942 # Flag that allows shared libraries with undefined symbols to be built.
16943 allow_undefined_flag=$lt_allow_undefined_flag
16945 # Flag that enforces no undefined symbols.
16946 no_undefined_flag=$lt_no_undefined_flag
16948 # Flag to hardcode \$libdir into a binary during linking.
16949 # This must work even if \$libdir does not exist
16950 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16952 # If ld is used when linking, flag to hardcode \$libdir into a binary
16953 # during linking. This must work even if \$libdir does not exist.
16954 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16956 # Whether we need a single "-rpath" flag with a separated argument.
16957 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16959 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16960 # DIR into the resulting binary.
16961 hardcode_direct=$hardcode_direct
16963 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16964 # DIR into the resulting binary and the resulting library dependency is
16965 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16966 # library is relocated.
16967 hardcode_direct_absolute=$hardcode_direct_absolute
16969 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16970 # into the resulting binary.
16971 hardcode_minus_L=$hardcode_minus_L
16973 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16974 # into the resulting binary.
16975 hardcode_shlibpath_var=$hardcode_shlibpath_var
16977 # Set to "yes" if building a shared library automatically hardcodes DIR
16978 # into the library and all subsequent libraries and executables linked
16979 # against it.
16980 hardcode_automatic=$hardcode_automatic
16982 # Set to yes if linker adds runtime paths of dependent libraries
16983 # to runtime path list.
16984 inherit_rpath=$inherit_rpath
16986 # Whether libtool must link a program against all its dependency libraries.
16987 link_all_deplibs=$link_all_deplibs
16989 # Fix the shell variable \$srcfile for the compiler.
16990 fix_srcfile_path=$lt_fix_srcfile_path
16992 # Set to "yes" if exported symbols are required.
16993 always_export_symbols=$always_export_symbols
16995 # The commands to list exported symbols.
16996 export_symbols_cmds=$lt_export_symbols_cmds
16998 # Symbols that should not be listed in the preloaded symbols.
16999 exclude_expsyms=$lt_exclude_expsyms
17001 # Symbols that must always be exported.
17002 include_expsyms=$lt_include_expsyms
17004 # Commands necessary for linking programs (against libraries) with templates.
17005 prelink_cmds=$lt_prelink_cmds
17007 # Specify filename containing input files.
17008 file_list_spec=$lt_file_list_spec
17010 # How to hardcode a shared library path into an executable.
17011 hardcode_action=$hardcode_action
17013 # ### END LIBTOOL CONFIG
17015 _LT_EOF
17017 case $host_os in
17018 aix3*)
17019 cat <<\_LT_EOF >> "$cfgfile"
17020 # AIX sometimes has problems with the GCC collect2 program. For some
17021 # reason, if we set the COLLECT_NAMES environment variable, the problems
17022 # vanish in a puff of smoke.
17023 if test "X${COLLECT_NAMES+set}" != Xset; then
17024 COLLECT_NAMES=
17025 export COLLECT_NAMES
17027 _LT_EOF
17029 esac
17032 ltmain="$ac_aux_dir/ltmain.sh"
17035 # We use sed instead of cat because bash on DJGPP gets confused if
17036 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17037 # text mode, it properly converts lines to CR/LF. This bash problem
17038 # is reportedly fixed, but why not run on old versions too?
17039 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17040 || (rm -f "$cfgfile"; exit 1)
17042 case $xsi_shell in
17043 yes)
17044 cat << \_LT_EOF >> "$cfgfile"
17045 # func_dirname file append nondir_replacement
17046 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17047 # otherwise set result to NONDIR_REPLACEMENT.
17048 func_dirname ()
17050 case ${1} in
17051 */*) func_dirname_result="${1%/*}${2}" ;;
17052 * ) func_dirname_result="${3}" ;;
17053 esac
17056 # func_basename file
17057 func_basename ()
17059 func_basename_result="${1##*/}"
17062 # func_stripname prefix suffix name
17063 # strip PREFIX and SUFFIX off of NAME.
17064 # PREFIX and SUFFIX must not contain globbing or regex special
17065 # characters, hashes, percent signs, but SUFFIX may contain a leading
17066 # dot (in which case that matches only a dot).
17067 func_stripname ()
17069 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17070 # positional parameters, so assign one to ordinary parameter first.
17071 func_stripname_result=${3}
17072 func_stripname_result=${func_stripname_result#"${1}"}
17073 func_stripname_result=${func_stripname_result%"${2}"}
17076 # func_opt_split
17077 func_opt_split ()
17079 func_opt_split_opt=${1%%=*}
17080 func_opt_split_arg=${1#*=}
17083 # func_lo2o object
17084 func_lo2o ()
17086 case ${1} in
17087 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17088 *) func_lo2o_result=${1} ;;
17089 esac
17091 _LT_EOF
17093 *) # Bourne compatible functions.
17094 cat << \_LT_EOF >> "$cfgfile"
17095 # func_dirname file append nondir_replacement
17096 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17097 # otherwise set result to NONDIR_REPLACEMENT.
17098 func_dirname ()
17100 # Extract subdirectory from the argument.
17101 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17102 if test "X$func_dirname_result" = "X${1}"; then
17103 func_dirname_result="${3}"
17104 else
17105 func_dirname_result="$func_dirname_result${2}"
17109 # func_basename file
17110 func_basename ()
17112 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17115 # func_stripname prefix suffix name
17116 # strip PREFIX and SUFFIX off of NAME.
17117 # PREFIX and SUFFIX must not contain globbing or regex special
17118 # characters, hashes, percent signs, but SUFFIX may contain a leading
17119 # dot (in which case that matches only a dot).
17120 # func_strip_suffix prefix name
17121 func_stripname ()
17123 case ${2} in
17124 .*) func_stripname_result=`$ECHO "X${3}" \
17125 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17126 *) func_stripname_result=`$ECHO "X${3}" \
17127 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17128 esac
17131 # sed scripts:
17132 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17133 my_sed_long_arg='1s/^-[^=]*=//'
17135 # func_opt_split
17136 func_opt_split ()
17138 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17139 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17142 # func_lo2o object
17143 func_lo2o ()
17145 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17147 _LT_EOF
17148 esac
17150 case $lt_shell_append in
17151 yes)
17152 cat << \_LT_EOF >> "$cfgfile"
17154 # func_append var value
17155 # Append VALUE to the end of shell variable VAR.
17156 func_append ()
17158 eval "$1+=\$2"
17160 _LT_EOF
17163 cat << \_LT_EOF >> "$cfgfile"
17165 # func_append var value
17166 # Append VALUE to the end of shell variable VAR.
17167 func_append ()
17169 eval "$1=\$$1\$2"
17171 _LT_EOF
17173 esac
17176 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17177 || (rm -f "$cfgfile"; exit 1)
17179 mv -f "$cfgfile" "$ofile" ||
17180 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17181 chmod +x "$ofile"
17184 default-1 )
17185 for ac_file in $CONFIG_FILES; do
17186 # Support "outfile[:infile[:infile...]]"
17187 case "$ac_file" in
17188 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17189 esac
17190 # PO directories have a Makefile.in generated from Makefile.in.in.
17191 case "$ac_file" in */Makefile.in)
17192 # Adjust a relative srcdir.
17193 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17194 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17195 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17196 # In autoconf-2.13 it is called $ac_given_srcdir.
17197 # In autoconf-2.50 it is called $srcdir.
17198 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17199 case "$ac_given_srcdir" in
17200 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17201 /*) top_srcdir="$ac_given_srcdir" ;;
17202 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17203 esac
17204 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17205 rm -f "$ac_dir/POTFILES"
17206 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17207 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17208 POMAKEFILEDEPS="POTFILES.in"
17209 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
17210 # on $ac_dir but don't depend on user-specified configuration
17211 # parameters.
17212 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17213 # The LINGUAS file contains the set of available languages.
17214 if test -n "$OBSOLETE_ALL_LINGUAS"; then
17215 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17217 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17218 # Hide the ALL_LINGUAS assigment from automake.
17219 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17220 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17221 else
17222 # The set of available languages was given in configure.in.
17223 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17225 case "$ac_given_srcdir" in
17226 .) srcdirpre= ;;
17227 *) srcdirpre='$(srcdir)/' ;;
17228 esac
17229 POFILES=
17230 GMOFILES=
17231 UPDATEPOFILES=
17232 DUMMYPOFILES=
17233 for lang in $ALL_LINGUAS; do
17234 POFILES="$POFILES $srcdirpre$lang.po"
17235 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17236 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17237 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17238 done
17239 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17240 # environment variable.
17241 INST_LINGUAS=
17242 if test -n "$ALL_LINGUAS"; then
17243 for presentlang in $ALL_LINGUAS; do
17244 useit=no
17245 if test "%UNSET%" != "$LINGUAS"; then
17246 desiredlanguages="$LINGUAS"
17247 else
17248 desiredlanguages="$ALL_LINGUAS"
17250 for desiredlang in $desiredlanguages; do
17251 # Use the presentlang catalog if desiredlang is
17252 # a. equal to presentlang, or
17253 # b. a variant of presentlang (because in this case,
17254 # presentlang can be used as a fallback for messages
17255 # which are not translated in the desiredlang catalog).
17256 case "$desiredlang" in
17257 "$presentlang"*) useit=yes;;
17258 esac
17259 done
17260 if test $useit = yes; then
17261 INST_LINGUAS="$INST_LINGUAS $presentlang"
17263 done
17265 CATALOGS=
17266 if test -n "$INST_LINGUAS"; then
17267 for lang in $INST_LINGUAS; do
17268 CATALOGS="$CATALOGS $lang.gmo"
17269 done
17271 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17272 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
17273 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17274 if test -f "$f"; then
17275 case "$f" in
17276 *.orig | *.bak | *~) ;;
17277 *) cat "$f" >> "$ac_dir/Makefile" ;;
17278 esac
17280 done
17283 esac
17284 done ;;
17285 esac
17286 done
17287 _ACEOF
17289 cat >>$CONFIG_STATUS <<\_ACEOF
17291 { (exit 0); exit 0; }
17292 _ACEOF
17293 chmod +x $CONFIG_STATUS
17294 ac_clean_files=$ac_clean_files_save
17297 # configure is writing to config.log, and then calls config.status.
17298 # config.status does its own redirection, appending to config.log.
17299 # Unfortunately, on DOS this fails, as config.log is still kept open
17300 # by configure, so config.status won't be able to write to it; its
17301 # output is simply discarded. So we exec the FD to /dev/null,
17302 # effectively closing config.log, so it can be properly (re)opened and
17303 # appended to by config.status. When coming back to configure, we
17304 # need to make the FD available again.
17305 if test "$no_create" != yes; then
17306 ac_cs_success=:
17307 ac_config_status_args=
17308 test "$silent" = yes &&
17309 ac_config_status_args="$ac_config_status_args --quiet"
17310 exec 5>/dev/null
17311 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17312 exec 5>>config.log
17313 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17314 # would make configure fail if this is the last instruction.
17315 $ac_cs_success || { (exit 1); exit 1; }