Add new binutils target: moxie
[binutils.git] / binutils / configure
blobd646ab6913f8114798316234b6046580c2520584
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 CPP EGREP LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S OBJDUMP ac_ct_OBJDUMP AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 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 pdfdir 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 --disable-largefile omit support for large files
1006 --enable-shared[=PKGS]
1007 build shared libraries [default=yes]
1008 --enable-static[=PKGS]
1009 build static libraries [default=yes]
1010 --enable-fast-install[=PKGS]
1011 optimize for fast installation [default=yes]
1012 --disable-libtool-lock avoid locking (might break parallel builds)
1013 --enable-targets alternative target configurations
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
1494 ac_aux_dir=
1495 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1496 if test -f $ac_dir/install-sh; then
1497 ac_aux_dir=$ac_dir
1498 ac_install_sh="$ac_aux_dir/install-sh -c"
1499 break
1500 elif test -f $ac_dir/install.sh; then
1501 ac_aux_dir=$ac_dir
1502 ac_install_sh="$ac_aux_dir/install.sh -c"
1503 break
1504 elif test -f $ac_dir/shtool; then
1505 ac_aux_dir=$ac_dir
1506 ac_install_sh="$ac_aux_dir/shtool install -c"
1507 break
1509 done
1510 if test -z "$ac_aux_dir"; then
1511 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1512 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1513 { (exit 1); exit 1; }; }
1515 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1516 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1517 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1519 # Make sure we can run config.sub.
1520 $ac_config_sub sun4 >/dev/null 2>&1 ||
1521 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1522 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1523 { (exit 1); exit 1; }; }
1525 echo "$as_me:$LINENO: checking build system type" >&5
1526 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1527 if test "${ac_cv_build+set}" = set; then
1528 echo $ECHO_N "(cached) $ECHO_C" >&6
1529 else
1530 ac_cv_build_alias=$build_alias
1531 test -z "$ac_cv_build_alias" &&
1532 ac_cv_build_alias=`$ac_config_guess`
1533 test -z "$ac_cv_build_alias" &&
1534 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1535 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1536 { (exit 1); exit 1; }; }
1537 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1538 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1539 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1540 { (exit 1); exit 1; }; }
1543 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1544 echo "${ECHO_T}$ac_cv_build" >&6
1545 build=$ac_cv_build
1546 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1547 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1548 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1551 echo "$as_me:$LINENO: checking host system type" >&5
1552 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1553 if test "${ac_cv_host+set}" = set; then
1554 echo $ECHO_N "(cached) $ECHO_C" >&6
1555 else
1556 ac_cv_host_alias=$host_alias
1557 test -z "$ac_cv_host_alias" &&
1558 ac_cv_host_alias=$ac_cv_build_alias
1559 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1560 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1561 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1562 { (exit 1); exit 1; }; }
1565 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1566 echo "${ECHO_T}$ac_cv_host" >&6
1567 host=$ac_cv_host
1568 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1569 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1570 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1573 echo "$as_me:$LINENO: checking target system type" >&5
1574 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1575 if test "${ac_cv_target+set}" = set; then
1576 echo $ECHO_N "(cached) $ECHO_C" >&6
1577 else
1578 ac_cv_target_alias=$target_alias
1579 test "x$ac_cv_target_alias" = "x" &&
1580 ac_cv_target_alias=$ac_cv_host_alias
1581 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1582 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1583 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1584 { (exit 1); exit 1; }; }
1587 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1588 echo "${ECHO_T}$ac_cv_target" >&6
1589 target=$ac_cv_target
1590 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1591 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1592 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1595 # The aliases save the names the user supplied, while $host etc.
1596 # will get canonicalized.
1597 test -n "$target_alias" &&
1598 test "$program_prefix$program_suffix$program_transform_name" = \
1599 NONENONEs,x,x, &&
1600 program_prefix=${target_alias}-
1601 ac_ext=c
1602 ac_cpp='$CPP $CPPFLAGS'
1603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1606 if test -n "$ac_tool_prefix"; then
1607 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1608 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1609 echo "$as_me:$LINENO: checking for $ac_word" >&5
1610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1611 if test "${ac_cv_prog_CC+set}" = set; then
1612 echo $ECHO_N "(cached) $ECHO_C" >&6
1613 else
1614 if test -n "$CC"; then
1615 ac_cv_prog_CC="$CC" # Let the user override the test.
1616 else
1617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1618 for as_dir in $PATH
1620 IFS=$as_save_IFS
1621 test -z "$as_dir" && as_dir=.
1622 for ac_exec_ext in '' $ac_executable_extensions; do
1623 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1624 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1626 break 2
1628 done
1629 done
1633 CC=$ac_cv_prog_CC
1634 if test -n "$CC"; then
1635 echo "$as_me:$LINENO: result: $CC" >&5
1636 echo "${ECHO_T}$CC" >&6
1637 else
1638 echo "$as_me:$LINENO: result: no" >&5
1639 echo "${ECHO_T}no" >&6
1643 if test -z "$ac_cv_prog_CC"; then
1644 ac_ct_CC=$CC
1645 # Extract the first word of "gcc", so it can be a program name with args.
1646 set dummy gcc; ac_word=$2
1647 echo "$as_me:$LINENO: checking for $ac_word" >&5
1648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1649 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1650 echo $ECHO_N "(cached) $ECHO_C" >&6
1651 else
1652 if test -n "$ac_ct_CC"; then
1653 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1654 else
1655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1656 for as_dir in $PATH
1658 IFS=$as_save_IFS
1659 test -z "$as_dir" && as_dir=.
1660 for ac_exec_ext in '' $ac_executable_extensions; do
1661 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1662 ac_cv_prog_ac_ct_CC="gcc"
1663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1664 break 2
1666 done
1667 done
1671 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1672 if test -n "$ac_ct_CC"; then
1673 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1674 echo "${ECHO_T}$ac_ct_CC" >&6
1675 else
1676 echo "$as_me:$LINENO: result: no" >&5
1677 echo "${ECHO_T}no" >&6
1680 CC=$ac_ct_CC
1681 else
1682 CC="$ac_cv_prog_CC"
1685 if test -z "$CC"; then
1686 if test -n "$ac_tool_prefix"; then
1687 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1688 set dummy ${ac_tool_prefix}cc; ac_word=$2
1689 echo "$as_me:$LINENO: checking for $ac_word" >&5
1690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1691 if test "${ac_cv_prog_CC+set}" = set; then
1692 echo $ECHO_N "(cached) $ECHO_C" >&6
1693 else
1694 if test -n "$CC"; then
1695 ac_cv_prog_CC="$CC" # Let the user override the test.
1696 else
1697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1698 for as_dir in $PATH
1700 IFS=$as_save_IFS
1701 test -z "$as_dir" && as_dir=.
1702 for ac_exec_ext in '' $ac_executable_extensions; do
1703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1704 ac_cv_prog_CC="${ac_tool_prefix}cc"
1705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1706 break 2
1708 done
1709 done
1713 CC=$ac_cv_prog_CC
1714 if test -n "$CC"; then
1715 echo "$as_me:$LINENO: result: $CC" >&5
1716 echo "${ECHO_T}$CC" >&6
1717 else
1718 echo "$as_me:$LINENO: result: no" >&5
1719 echo "${ECHO_T}no" >&6
1723 if test -z "$ac_cv_prog_CC"; then
1724 ac_ct_CC=$CC
1725 # Extract the first word of "cc", so it can be a program name with args.
1726 set dummy cc; ac_word=$2
1727 echo "$as_me:$LINENO: checking for $ac_word" >&5
1728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1729 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1730 echo $ECHO_N "(cached) $ECHO_C" >&6
1731 else
1732 if test -n "$ac_ct_CC"; then
1733 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1734 else
1735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1736 for as_dir in $PATH
1738 IFS=$as_save_IFS
1739 test -z "$as_dir" && as_dir=.
1740 for ac_exec_ext in '' $ac_executable_extensions; do
1741 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1742 ac_cv_prog_ac_ct_CC="cc"
1743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1744 break 2
1746 done
1747 done
1751 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1752 if test -n "$ac_ct_CC"; then
1753 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1754 echo "${ECHO_T}$ac_ct_CC" >&6
1755 else
1756 echo "$as_me:$LINENO: result: no" >&5
1757 echo "${ECHO_T}no" >&6
1760 CC=$ac_ct_CC
1761 else
1762 CC="$ac_cv_prog_CC"
1766 if test -z "$CC"; then
1767 # Extract the first word of "cc", so it can be a program name with args.
1768 set dummy cc; ac_word=$2
1769 echo "$as_me:$LINENO: checking for $ac_word" >&5
1770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1771 if test "${ac_cv_prog_CC+set}" = set; then
1772 echo $ECHO_N "(cached) $ECHO_C" >&6
1773 else
1774 if test -n "$CC"; then
1775 ac_cv_prog_CC="$CC" # Let the user override the test.
1776 else
1777 ac_prog_rejected=no
1778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1779 for as_dir in $PATH
1781 IFS=$as_save_IFS
1782 test -z "$as_dir" && as_dir=.
1783 for ac_exec_ext in '' $ac_executable_extensions; do
1784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1785 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1786 ac_prog_rejected=yes
1787 continue
1789 ac_cv_prog_CC="cc"
1790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1791 break 2
1793 done
1794 done
1796 if test $ac_prog_rejected = yes; then
1797 # We found a bogon in the path, so make sure we never use it.
1798 set dummy $ac_cv_prog_CC
1799 shift
1800 if test $# != 0; then
1801 # We chose a different compiler from the bogus one.
1802 # However, it has the same basename, so the bogon will be chosen
1803 # first if we set CC to just the basename; use the full file name.
1804 shift
1805 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1810 CC=$ac_cv_prog_CC
1811 if test -n "$CC"; then
1812 echo "$as_me:$LINENO: result: $CC" >&5
1813 echo "${ECHO_T}$CC" >&6
1814 else
1815 echo "$as_me:$LINENO: result: no" >&5
1816 echo "${ECHO_T}no" >&6
1820 if test -z "$CC"; then
1821 if test -n "$ac_tool_prefix"; then
1822 for ac_prog in cl
1824 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1825 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1826 echo "$as_me:$LINENO: checking for $ac_word" >&5
1827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1828 if test "${ac_cv_prog_CC+set}" = set; then
1829 echo $ECHO_N "(cached) $ECHO_C" >&6
1830 else
1831 if test -n "$CC"; then
1832 ac_cv_prog_CC="$CC" # Let the user override the test.
1833 else
1834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1835 for as_dir in $PATH
1837 IFS=$as_save_IFS
1838 test -z "$as_dir" && as_dir=.
1839 for ac_exec_ext in '' $ac_executable_extensions; do
1840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1841 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1843 break 2
1845 done
1846 done
1850 CC=$ac_cv_prog_CC
1851 if test -n "$CC"; then
1852 echo "$as_me:$LINENO: result: $CC" >&5
1853 echo "${ECHO_T}$CC" >&6
1854 else
1855 echo "$as_me:$LINENO: result: no" >&5
1856 echo "${ECHO_T}no" >&6
1859 test -n "$CC" && break
1860 done
1862 if test -z "$CC"; then
1863 ac_ct_CC=$CC
1864 for ac_prog in cl
1866 # Extract the first word of "$ac_prog", so it can be a program name with args.
1867 set dummy $ac_prog; ac_word=$2
1868 echo "$as_me:$LINENO: checking for $ac_word" >&5
1869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1870 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1871 echo $ECHO_N "(cached) $ECHO_C" >&6
1872 else
1873 if test -n "$ac_ct_CC"; then
1874 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1875 else
1876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1877 for as_dir in $PATH
1879 IFS=$as_save_IFS
1880 test -z "$as_dir" && as_dir=.
1881 for ac_exec_ext in '' $ac_executable_extensions; do
1882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1883 ac_cv_prog_ac_ct_CC="$ac_prog"
1884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1885 break 2
1887 done
1888 done
1892 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1893 if test -n "$ac_ct_CC"; then
1894 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1895 echo "${ECHO_T}$ac_ct_CC" >&6
1896 else
1897 echo "$as_me:$LINENO: result: no" >&5
1898 echo "${ECHO_T}no" >&6
1901 test -n "$ac_ct_CC" && break
1902 done
1904 CC=$ac_ct_CC
1910 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1911 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1912 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1913 See \`config.log' for more details." >&5
1914 echo "$as_me: error: no acceptable C compiler found in \$PATH
1915 See \`config.log' for more details." >&2;}
1916 { (exit 1); exit 1; }; }; }
1918 # Provide some information about the compiler.
1919 echo "$as_me:$LINENO:" \
1920 "checking for C compiler version" >&5
1921 ac_compiler=`set X $ac_compile; echo $2`
1922 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1923 (eval $ac_compiler --version </dev/null >&5) 2>&5
1924 ac_status=$?
1925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1926 (exit $ac_status); }
1927 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1928 (eval $ac_compiler -v </dev/null >&5) 2>&5
1929 ac_status=$?
1930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1931 (exit $ac_status); }
1932 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1933 (eval $ac_compiler -V </dev/null >&5) 2>&5
1934 ac_status=$?
1935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1936 (exit $ac_status); }
1938 cat >conftest.$ac_ext <<_ACEOF
1939 /* confdefs.h. */
1940 _ACEOF
1941 cat confdefs.h >>conftest.$ac_ext
1942 cat >>conftest.$ac_ext <<_ACEOF
1943 /* end confdefs.h. */
1946 main ()
1950 return 0;
1952 _ACEOF
1953 ac_clean_files_save=$ac_clean_files
1954 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1955 # Try to create an executable without -o first, disregard a.out.
1956 # It will help us diagnose broken compilers, and finding out an intuition
1957 # of exeext.
1958 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1959 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1960 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1961 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1962 (eval $ac_link_default) 2>&5
1963 ac_status=$?
1964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1965 (exit $ac_status); }; then
1966 # Find the output, starting from the most likely. This scheme is
1967 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1968 # resort.
1970 # Be careful to initialize this variable, since it used to be cached.
1971 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1972 ac_cv_exeext=
1973 # b.out is created by i960 compilers.
1974 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1976 test -f "$ac_file" || continue
1977 case $ac_file in
1978 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1980 conftest.$ac_ext )
1981 # This is the source file.
1983 [ab].out )
1984 # We found the default executable, but exeext='' is most
1985 # certainly right.
1986 break;;
1987 *.* )
1988 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1989 # FIXME: I believe we export ac_cv_exeext for Libtool,
1990 # but it would be cool to find out if it's true. Does anybody
1991 # maintain Libtool? --akim.
1992 export ac_cv_exeext
1993 break;;
1995 break;;
1996 esac
1997 done
1998 else
1999 echo "$as_me: failed program was:" >&5
2000 sed 's/^/| /' conftest.$ac_ext >&5
2002 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2003 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2004 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2005 See \`config.log' for more details." >&5
2006 echo "$as_me: error: C compiler cannot create executables
2007 See \`config.log' for more details." >&2;}
2008 { (exit 77); exit 77; }; }; }
2011 ac_exeext=$ac_cv_exeext
2012 echo "$as_me:$LINENO: result: $ac_file" >&5
2013 echo "${ECHO_T}$ac_file" >&6
2015 # Check the compiler produces executables we can run. If not, either
2016 # the compiler is broken, or we cross compile.
2017 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2018 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2019 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2020 # If not cross compiling, check that we can run a simple program.
2021 if test "$cross_compiling" != yes; then
2022 if { ac_try='./$ac_file'
2023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2024 (eval $ac_try) 2>&5
2025 ac_status=$?
2026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2027 (exit $ac_status); }; }; then
2028 cross_compiling=no
2029 else
2030 if test "$cross_compiling" = maybe; then
2031 cross_compiling=yes
2032 else
2033 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2034 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2035 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2036 If you meant to cross compile, use \`--host'.
2037 See \`config.log' for more details." >&5
2038 echo "$as_me: error: cannot run C compiled programs.
2039 If you meant to cross compile, use \`--host'.
2040 See \`config.log' for more details." >&2;}
2041 { (exit 1); exit 1; }; }; }
2045 echo "$as_me:$LINENO: result: yes" >&5
2046 echo "${ECHO_T}yes" >&6
2048 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2049 ac_clean_files=$ac_clean_files_save
2050 # Check the compiler produces executables we can run. If not, either
2051 # the compiler is broken, or we cross compile.
2052 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2053 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2054 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2055 echo "${ECHO_T}$cross_compiling" >&6
2057 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2058 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2060 (eval $ac_link) 2>&5
2061 ac_status=$?
2062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063 (exit $ac_status); }; then
2064 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2065 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2066 # work properly (i.e., refer to `conftest.exe'), while it won't with
2067 # `rm'.
2068 for ac_file in conftest.exe conftest conftest.*; do
2069 test -f "$ac_file" || continue
2070 case $ac_file in
2071 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2072 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2073 export ac_cv_exeext
2074 break;;
2075 * ) break;;
2076 esac
2077 done
2078 else
2079 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2080 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2081 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2082 See \`config.log' for more details." >&5
2083 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2084 See \`config.log' for more details." >&2;}
2085 { (exit 1); exit 1; }; }; }
2088 rm -f conftest$ac_cv_exeext
2089 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2090 echo "${ECHO_T}$ac_cv_exeext" >&6
2092 rm -f conftest.$ac_ext
2093 EXEEXT=$ac_cv_exeext
2094 ac_exeext=$EXEEXT
2095 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2096 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2097 if test "${ac_cv_objext+set}" = set; then
2098 echo $ECHO_N "(cached) $ECHO_C" >&6
2099 else
2100 cat >conftest.$ac_ext <<_ACEOF
2101 /* confdefs.h. */
2102 _ACEOF
2103 cat confdefs.h >>conftest.$ac_ext
2104 cat >>conftest.$ac_ext <<_ACEOF
2105 /* end confdefs.h. */
2108 main ()
2112 return 0;
2114 _ACEOF
2115 rm -f conftest.o conftest.obj
2116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2117 (eval $ac_compile) 2>&5
2118 ac_status=$?
2119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120 (exit $ac_status); }; then
2121 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2122 case $ac_file in
2123 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2124 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2125 break;;
2126 esac
2127 done
2128 else
2129 echo "$as_me: failed program was:" >&5
2130 sed 's/^/| /' conftest.$ac_ext >&5
2132 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2133 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2134 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2135 See \`config.log' for more details." >&5
2136 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2137 See \`config.log' for more details." >&2;}
2138 { (exit 1); exit 1; }; }; }
2141 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2143 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2144 echo "${ECHO_T}$ac_cv_objext" >&6
2145 OBJEXT=$ac_cv_objext
2146 ac_objext=$OBJEXT
2147 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2148 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2149 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2150 echo $ECHO_N "(cached) $ECHO_C" >&6
2151 else
2152 cat >conftest.$ac_ext <<_ACEOF
2153 /* confdefs.h. */
2154 _ACEOF
2155 cat confdefs.h >>conftest.$ac_ext
2156 cat >>conftest.$ac_ext <<_ACEOF
2157 /* end confdefs.h. */
2160 main ()
2162 #ifndef __GNUC__
2163 choke me
2164 #endif
2167 return 0;
2169 _ACEOF
2170 rm -f conftest.$ac_objext
2171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2172 (eval $ac_compile) 2>conftest.er1
2173 ac_status=$?
2174 grep -v '^ *+' conftest.er1 >conftest.err
2175 rm -f conftest.er1
2176 cat conftest.err >&5
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); } &&
2179 { ac_try='test -z "$ac_c_werror_flag"
2180 || test ! -s conftest.err'
2181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2182 (eval $ac_try) 2>&5
2183 ac_status=$?
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); }; } &&
2186 { ac_try='test -s conftest.$ac_objext'
2187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2188 (eval $ac_try) 2>&5
2189 ac_status=$?
2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); }; }; then
2192 ac_compiler_gnu=yes
2193 else
2194 echo "$as_me: failed program was:" >&5
2195 sed 's/^/| /' conftest.$ac_ext >&5
2197 ac_compiler_gnu=no
2199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2200 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2203 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2204 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2205 GCC=`test $ac_compiler_gnu = yes && echo yes`
2206 ac_test_CFLAGS=${CFLAGS+set}
2207 ac_save_CFLAGS=$CFLAGS
2208 CFLAGS="-g"
2209 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2210 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2211 if test "${ac_cv_prog_cc_g+set}" = set; then
2212 echo $ECHO_N "(cached) $ECHO_C" >&6
2213 else
2214 cat >conftest.$ac_ext <<_ACEOF
2215 /* confdefs.h. */
2216 _ACEOF
2217 cat confdefs.h >>conftest.$ac_ext
2218 cat >>conftest.$ac_ext <<_ACEOF
2219 /* end confdefs.h. */
2222 main ()
2226 return 0;
2228 _ACEOF
2229 rm -f conftest.$ac_objext
2230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2231 (eval $ac_compile) 2>conftest.er1
2232 ac_status=$?
2233 grep -v '^ *+' conftest.er1 >conftest.err
2234 rm -f conftest.er1
2235 cat conftest.err >&5
2236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237 (exit $ac_status); } &&
2238 { ac_try='test -z "$ac_c_werror_flag"
2239 || test ! -s conftest.err'
2240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2241 (eval $ac_try) 2>&5
2242 ac_status=$?
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); }; } &&
2245 { ac_try='test -s conftest.$ac_objext'
2246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2247 (eval $ac_try) 2>&5
2248 ac_status=$?
2249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250 (exit $ac_status); }; }; then
2251 ac_cv_prog_cc_g=yes
2252 else
2253 echo "$as_me: failed program was:" >&5
2254 sed 's/^/| /' conftest.$ac_ext >&5
2256 ac_cv_prog_cc_g=no
2258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2260 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2261 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2262 if test "$ac_test_CFLAGS" = set; then
2263 CFLAGS=$ac_save_CFLAGS
2264 elif test $ac_cv_prog_cc_g = yes; then
2265 if test "$GCC" = yes; then
2266 CFLAGS="-g -O2"
2267 else
2268 CFLAGS="-g"
2270 else
2271 if test "$GCC" = yes; then
2272 CFLAGS="-O2"
2273 else
2274 CFLAGS=
2277 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2278 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2279 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2280 echo $ECHO_N "(cached) $ECHO_C" >&6
2281 else
2282 ac_cv_prog_cc_stdc=no
2283 ac_save_CC=$CC
2284 cat >conftest.$ac_ext <<_ACEOF
2285 /* confdefs.h. */
2286 _ACEOF
2287 cat confdefs.h >>conftest.$ac_ext
2288 cat >>conftest.$ac_ext <<_ACEOF
2289 /* end confdefs.h. */
2290 #include <stdarg.h>
2291 #include <stdio.h>
2292 #include <sys/types.h>
2293 #include <sys/stat.h>
2294 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2295 struct buf { int x; };
2296 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2297 static char *e (p, i)
2298 char **p;
2299 int i;
2301 return p[i];
2303 static char *f (char * (*g) (char **, int), char **p, ...)
2305 char *s;
2306 va_list v;
2307 va_start (v,p);
2308 s = g (p, va_arg (v,int));
2309 va_end (v);
2310 return s;
2313 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2314 function prototypes and stuff, but not '\xHH' hex character constants.
2315 These don't provoke an error unfortunately, instead are silently treated
2316 as 'x'. The following induces an error, until -std1 is added to get
2317 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2318 array size at least. It's necessary to write '\x00'==0 to get something
2319 that's true only with -std1. */
2320 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2322 int test (int i, double x);
2323 struct s1 {int (*f) (int a);};
2324 struct s2 {int (*f) (double a);};
2325 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2326 int argc;
2327 char **argv;
2329 main ()
2331 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2333 return 0;
2335 _ACEOF
2336 # Don't try gcc -ansi; that turns off useful extensions and
2337 # breaks some systems' header files.
2338 # AIX -qlanglvl=ansi
2339 # Ultrix and OSF/1 -std1
2340 # HP-UX 10.20 and later -Ae
2341 # HP-UX older versions -Aa -D_HPUX_SOURCE
2342 # SVR4 -Xc -D__EXTENSIONS__
2343 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2345 CC="$ac_save_CC $ac_arg"
2346 rm -f conftest.$ac_objext
2347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2348 (eval $ac_compile) 2>conftest.er1
2349 ac_status=$?
2350 grep -v '^ *+' conftest.er1 >conftest.err
2351 rm -f conftest.er1
2352 cat conftest.err >&5
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); } &&
2355 { ac_try='test -z "$ac_c_werror_flag"
2356 || test ! -s conftest.err'
2357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2358 (eval $ac_try) 2>&5
2359 ac_status=$?
2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361 (exit $ac_status); }; } &&
2362 { ac_try='test -s conftest.$ac_objext'
2363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2364 (eval $ac_try) 2>&5
2365 ac_status=$?
2366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367 (exit $ac_status); }; }; then
2368 ac_cv_prog_cc_stdc=$ac_arg
2369 break
2370 else
2371 echo "$as_me: failed program was:" >&5
2372 sed 's/^/| /' conftest.$ac_ext >&5
2375 rm -f conftest.err conftest.$ac_objext
2376 done
2377 rm -f conftest.$ac_ext conftest.$ac_objext
2378 CC=$ac_save_CC
2382 case "x$ac_cv_prog_cc_stdc" in
2383 x|xno)
2384 echo "$as_me:$LINENO: result: none needed" >&5
2385 echo "${ECHO_T}none needed" >&6 ;;
2387 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2388 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2389 CC="$CC $ac_cv_prog_cc_stdc" ;;
2390 esac
2392 # Some people use a C++ compiler to compile C. Since we use `exit',
2393 # in C++ we need to declare it. In case someone uses the same compiler
2394 # for both compiling C and C++ we need to have the C++ compiler decide
2395 # the declaration of exit, since it's the most demanding environment.
2396 cat >conftest.$ac_ext <<_ACEOF
2397 #ifndef __cplusplus
2398 choke me
2399 #endif
2400 _ACEOF
2401 rm -f conftest.$ac_objext
2402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2403 (eval $ac_compile) 2>conftest.er1
2404 ac_status=$?
2405 grep -v '^ *+' conftest.er1 >conftest.err
2406 rm -f conftest.er1
2407 cat conftest.err >&5
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); } &&
2410 { ac_try='test -z "$ac_c_werror_flag"
2411 || test ! -s conftest.err'
2412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2413 (eval $ac_try) 2>&5
2414 ac_status=$?
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); }; } &&
2417 { ac_try='test -s conftest.$ac_objext'
2418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2419 (eval $ac_try) 2>&5
2420 ac_status=$?
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); }; }; then
2423 for ac_declaration in \
2424 '' \
2425 'extern "C" void std::exit (int) throw (); using std::exit;' \
2426 'extern "C" void std::exit (int); using std::exit;' \
2427 'extern "C" void exit (int) throw ();' \
2428 'extern "C" void exit (int);' \
2429 'void exit (int);'
2431 cat >conftest.$ac_ext <<_ACEOF
2432 /* confdefs.h. */
2433 _ACEOF
2434 cat confdefs.h >>conftest.$ac_ext
2435 cat >>conftest.$ac_ext <<_ACEOF
2436 /* end confdefs.h. */
2437 $ac_declaration
2438 #include <stdlib.h>
2440 main ()
2442 exit (42);
2444 return 0;
2446 _ACEOF
2447 rm -f conftest.$ac_objext
2448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2449 (eval $ac_compile) 2>conftest.er1
2450 ac_status=$?
2451 grep -v '^ *+' conftest.er1 >conftest.err
2452 rm -f conftest.er1
2453 cat conftest.err >&5
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); } &&
2456 { ac_try='test -z "$ac_c_werror_flag"
2457 || test ! -s conftest.err'
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); }; } &&
2463 { ac_try='test -s conftest.$ac_objext'
2464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465 (eval $ac_try) 2>&5
2466 ac_status=$?
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); }; }; then
2470 else
2471 echo "$as_me: failed program was:" >&5
2472 sed 's/^/| /' conftest.$ac_ext >&5
2474 continue
2476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2477 cat >conftest.$ac_ext <<_ACEOF
2478 /* confdefs.h. */
2479 _ACEOF
2480 cat confdefs.h >>conftest.$ac_ext
2481 cat >>conftest.$ac_ext <<_ACEOF
2482 /* end confdefs.h. */
2483 $ac_declaration
2485 main ()
2487 exit (42);
2489 return 0;
2491 _ACEOF
2492 rm -f conftest.$ac_objext
2493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2494 (eval $ac_compile) 2>conftest.er1
2495 ac_status=$?
2496 grep -v '^ *+' conftest.er1 >conftest.err
2497 rm -f conftest.er1
2498 cat conftest.err >&5
2499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500 (exit $ac_status); } &&
2501 { ac_try='test -z "$ac_c_werror_flag"
2502 || test ! -s conftest.err'
2503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2504 (eval $ac_try) 2>&5
2505 ac_status=$?
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); }; } &&
2508 { ac_try='test -s conftest.$ac_objext'
2509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2510 (eval $ac_try) 2>&5
2511 ac_status=$?
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }; }; then
2514 break
2515 else
2516 echo "$as_me: failed program was:" >&5
2517 sed 's/^/| /' conftest.$ac_ext >&5
2520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2521 done
2522 rm -f conftest*
2523 if test -n "$ac_declaration"; then
2524 echo '#ifdef __cplusplus' >>confdefs.h
2525 echo $ac_declaration >>confdefs.h
2526 echo '#endif' >>confdefs.h
2529 else
2530 echo "$as_me: failed program was:" >&5
2531 sed 's/^/| /' conftest.$ac_ext >&5
2534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2535 ac_ext=c
2536 ac_cpp='$CPP $CPPFLAGS'
2537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2542 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2543 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2544 if test "${ac_cv_search_strerror+set}" = set; then
2545 echo $ECHO_N "(cached) $ECHO_C" >&6
2546 else
2547 ac_func_search_save_LIBS=$LIBS
2548 ac_cv_search_strerror=no
2549 cat >conftest.$ac_ext <<_ACEOF
2550 /* confdefs.h. */
2551 _ACEOF
2552 cat confdefs.h >>conftest.$ac_ext
2553 cat >>conftest.$ac_ext <<_ACEOF
2554 /* end confdefs.h. */
2556 /* Override any gcc2 internal prototype to avoid an error. */
2557 #ifdef __cplusplus
2558 extern "C"
2559 #endif
2560 /* We use char because int might match the return type of a gcc2
2561 builtin and then its argument prototype would still apply. */
2562 char strerror ();
2564 main ()
2566 strerror ();
2568 return 0;
2570 _ACEOF
2571 rm -f conftest.$ac_objext conftest$ac_exeext
2572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2573 (eval $ac_link) 2>conftest.er1
2574 ac_status=$?
2575 grep -v '^ *+' conftest.er1 >conftest.err
2576 rm -f conftest.er1
2577 cat conftest.err >&5
2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579 (exit $ac_status); } &&
2580 { ac_try='test -z "$ac_c_werror_flag"
2581 || test ! -s conftest.err'
2582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2583 (eval $ac_try) 2>&5
2584 ac_status=$?
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); }; } &&
2587 { ac_try='test -s conftest$ac_exeext'
2588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2589 (eval $ac_try) 2>&5
2590 ac_status=$?
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); }; }; then
2593 ac_cv_search_strerror="none required"
2594 else
2595 echo "$as_me: failed program was:" >&5
2596 sed 's/^/| /' conftest.$ac_ext >&5
2599 rm -f conftest.err conftest.$ac_objext \
2600 conftest$ac_exeext conftest.$ac_ext
2601 if test "$ac_cv_search_strerror" = no; then
2602 for ac_lib in cposix; do
2603 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2604 cat >conftest.$ac_ext <<_ACEOF
2605 /* confdefs.h. */
2606 _ACEOF
2607 cat confdefs.h >>conftest.$ac_ext
2608 cat >>conftest.$ac_ext <<_ACEOF
2609 /* end confdefs.h. */
2611 /* Override any gcc2 internal prototype to avoid an error. */
2612 #ifdef __cplusplus
2613 extern "C"
2614 #endif
2615 /* We use char because int might match the return type of a gcc2
2616 builtin and then its argument prototype would still apply. */
2617 char strerror ();
2619 main ()
2621 strerror ();
2623 return 0;
2625 _ACEOF
2626 rm -f conftest.$ac_objext conftest$ac_exeext
2627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2628 (eval $ac_link) 2>conftest.er1
2629 ac_status=$?
2630 grep -v '^ *+' conftest.er1 >conftest.err
2631 rm -f conftest.er1
2632 cat conftest.err >&5
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); } &&
2635 { ac_try='test -z "$ac_c_werror_flag"
2636 || test ! -s conftest.err'
2637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2638 (eval $ac_try) 2>&5
2639 ac_status=$?
2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); }; } &&
2642 { ac_try='test -s conftest$ac_exeext'
2643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2644 (eval $ac_try) 2>&5
2645 ac_status=$?
2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); }; }; then
2648 ac_cv_search_strerror="-l$ac_lib"
2649 break
2650 else
2651 echo "$as_me: failed program was:" >&5
2652 sed 's/^/| /' conftest.$ac_ext >&5
2655 rm -f conftest.err conftest.$ac_objext \
2656 conftest$ac_exeext conftest.$ac_ext
2657 done
2659 LIBS=$ac_func_search_save_LIBS
2661 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2662 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2663 if test "$ac_cv_search_strerror" != no; then
2664 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2669 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2670 am__api_version="1.9"
2671 # Find a good install program. We prefer a C program (faster),
2672 # so one script is as good as another. But avoid the broken or
2673 # incompatible versions:
2674 # SysV /etc/install, /usr/sbin/install
2675 # SunOS /usr/etc/install
2676 # IRIX /sbin/install
2677 # AIX /bin/install
2678 # AmigaOS /C/install, which installs bootblocks on floppy discs
2679 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2680 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2681 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2682 # OS/2's system install, which has a completely different semantic
2683 # ./install, which can be erroneously created by make from ./install.sh.
2684 # Reject install programs that cannot install multiple files.
2685 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2686 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2687 if test -z "$INSTALL"; then
2688 if test "${ac_cv_path_install+set}" = set; then
2689 echo $ECHO_N "(cached) $ECHO_C" >&6
2690 else
2691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692 for as_dir in $PATH
2694 IFS=$as_save_IFS
2695 test -z "$as_dir" && as_dir=.
2696 # Account for people who put trailing slashes in PATH elements.
2697 case $as_dir/ in
2698 ./ | .// | /cC/* | \
2699 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2700 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2701 /usr/ucb/* ) ;;
2703 # OSF1 and SCO ODT 3.0 have their own names for install.
2704 # Don't use installbsd from OSF since it installs stuff as root
2705 # by default.
2706 for ac_prog in ginstall scoinst install; do
2707 for ac_exec_ext in '' $ac_executable_extensions; do
2708 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2709 if test $ac_prog = install &&
2710 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2711 # AIX install. It has an incompatible calling convention.
2713 elif test $ac_prog = install &&
2714 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2715 # program-specific install script used by HP pwplus--don't use.
2717 else
2718 rm -rf conftest.one conftest.two conftest.dir
2719 echo one > conftest.one
2720 echo two > conftest.two
2721 mkdir conftest.dir
2722 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2723 test -s conftest.one && test -s conftest.two &&
2724 test -s conftest.dir/conftest.one &&
2725 test -s conftest.dir/conftest.two
2726 then
2727 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2728 break 3
2732 done
2733 done
2735 esac
2736 done
2738 rm -rf conftest.one conftest.two conftest.dir
2741 if test "${ac_cv_path_install+set}" = set; then
2742 INSTALL=$ac_cv_path_install
2743 else
2744 # As a last resort, use the slow shell script. Don't cache a
2745 # value for INSTALL within a source directory, because that will
2746 # break other packages using the cache if that directory is
2747 # removed, or if the value is a relative name.
2748 INSTALL=$ac_install_sh
2751 echo "$as_me:$LINENO: result: $INSTALL" >&5
2752 echo "${ECHO_T}$INSTALL" >&6
2754 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2755 # It thinks the first close brace ends the variable substitution.
2756 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2758 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2760 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2762 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2763 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2764 # Just in case
2765 sleep 1
2766 echo timestamp > conftest.file
2767 # Do `set' in a subshell so we don't clobber the current shell's
2768 # arguments. Must try -L first in case configure is actually a
2769 # symlink; some systems play weird games with the mod time of symlinks
2770 # (eg FreeBSD returns the mod time of the symlink's containing
2771 # directory).
2772 if (
2773 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2774 if test "$*" = "X"; then
2775 # -L didn't work.
2776 set X `ls -t $srcdir/configure conftest.file`
2778 rm -f conftest.file
2779 if test "$*" != "X $srcdir/configure conftest.file" \
2780 && test "$*" != "X conftest.file $srcdir/configure"; then
2782 # If neither matched, then we have a broken ls. This can happen
2783 # if, for instance, CONFIG_SHELL is bash and it inherits a
2784 # broken ls alias from the environment. This has actually
2785 # happened. Such a system could not be considered "sane".
2786 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2787 alias in your environment" >&5
2788 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2789 alias in your environment" >&2;}
2790 { (exit 1); exit 1; }; }
2793 test "$2" = conftest.file
2795 then
2796 # Ok.
2798 else
2799 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2800 Check your system clock" >&5
2801 echo "$as_me: error: newly created file is older than distributed files!
2802 Check your system clock" >&2;}
2803 { (exit 1); exit 1; }; }
2805 echo "$as_me:$LINENO: result: yes" >&5
2806 echo "${ECHO_T}yes" >&6
2807 test "$program_prefix" != NONE &&
2808 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2809 # Use a double $ so make ignores it.
2810 test "$program_suffix" != NONE &&
2811 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2812 # Double any \ or $. echo might interpret backslashes.
2813 # By default was `s,x,x', remove it if useless.
2814 cat <<\_ACEOF >conftest.sed
2815 s/[\\$]/&&/g;s/;s,x,x,$//
2816 _ACEOF
2817 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2818 rm conftest.sed
2820 # expand $ac_aux_dir to an absolute path
2821 am_aux_dir=`cd $ac_aux_dir && pwd`
2823 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2824 # Use eval to expand $SHELL
2825 if eval "$MISSING --run true"; then
2826 am_missing_run="$MISSING --run "
2827 else
2828 am_missing_run=
2829 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2830 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2833 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2834 # We used to keeping the `.' as first argument, in order to
2835 # allow $(mkdir_p) to be used without argument. As in
2836 # $(mkdir_p) $(somedir)
2837 # where $(somedir) is conditionally defined. However this is wrong
2838 # for two reasons:
2839 # 1. if the package is installed by a user who cannot write `.'
2840 # make install will fail,
2841 # 2. the above comment should most certainly read
2842 # $(mkdir_p) $(DESTDIR)$(somedir)
2843 # so it does not work when $(somedir) is undefined and
2844 # $(DESTDIR) is not.
2845 # To support the latter case, we have to write
2846 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2847 # so the `.' trick is pointless.
2848 mkdir_p='mkdir -p --'
2849 else
2850 # On NextStep and OpenStep, the `mkdir' command does not
2851 # recognize any option. It will interpret all options as
2852 # directories to create, and then abort because `.' already
2853 # exists.
2854 for d in ./-p ./--version;
2856 test -d $d && rmdir $d
2857 done
2858 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2859 if test -f "$ac_aux_dir/mkinstalldirs"; then
2860 mkdir_p='$(mkinstalldirs)'
2861 else
2862 mkdir_p='$(install_sh) -d'
2866 for ac_prog in gawk mawk nawk awk
2868 # Extract the first word of "$ac_prog", so it can be a program name with args.
2869 set dummy $ac_prog; ac_word=$2
2870 echo "$as_me:$LINENO: checking for $ac_word" >&5
2871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2872 if test "${ac_cv_prog_AWK+set}" = set; then
2873 echo $ECHO_N "(cached) $ECHO_C" >&6
2874 else
2875 if test -n "$AWK"; then
2876 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2877 else
2878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879 for as_dir in $PATH
2881 IFS=$as_save_IFS
2882 test -z "$as_dir" && as_dir=.
2883 for ac_exec_ext in '' $ac_executable_extensions; do
2884 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2885 ac_cv_prog_AWK="$ac_prog"
2886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2887 break 2
2889 done
2890 done
2894 AWK=$ac_cv_prog_AWK
2895 if test -n "$AWK"; then
2896 echo "$as_me:$LINENO: result: $AWK" >&5
2897 echo "${ECHO_T}$AWK" >&6
2898 else
2899 echo "$as_me:$LINENO: result: no" >&5
2900 echo "${ECHO_T}no" >&6
2903 test -n "$AWK" && break
2904 done
2906 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2907 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2908 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2909 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2910 echo $ECHO_N "(cached) $ECHO_C" >&6
2911 else
2912 cat >conftest.make <<\_ACEOF
2913 all:
2914 @echo 'ac_maketemp="$(MAKE)"'
2915 _ACEOF
2916 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2917 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2918 if test -n "$ac_maketemp"; then
2919 eval ac_cv_prog_make_${ac_make}_set=yes
2920 else
2921 eval ac_cv_prog_make_${ac_make}_set=no
2923 rm -f conftest.make
2925 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2926 echo "$as_me:$LINENO: result: yes" >&5
2927 echo "${ECHO_T}yes" >&6
2928 SET_MAKE=
2929 else
2930 echo "$as_me:$LINENO: result: no" >&5
2931 echo "${ECHO_T}no" >&6
2932 SET_MAKE="MAKE=${MAKE-make}"
2935 rm -rf .tst 2>/dev/null
2936 mkdir .tst 2>/dev/null
2937 if test -d .tst; then
2938 am__leading_dot=.
2939 else
2940 am__leading_dot=_
2942 rmdir .tst 2>/dev/null
2944 DEPDIR="${am__leading_dot}deps"
2946 ac_config_commands="$ac_config_commands depfiles"
2949 am_make=${MAKE-make}
2950 cat > confinc << 'END'
2951 am__doit:
2952 @echo done
2953 .PHONY: am__doit
2955 # If we don't find an include directive, just comment out the code.
2956 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2957 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2958 am__include="#"
2959 am__quote=
2960 _am_result=none
2961 # First try GNU make style include.
2962 echo "include confinc" > confmf
2963 # We grep out `Entering directory' and `Leaving directory'
2964 # messages which can occur if `w' ends up in MAKEFLAGS.
2965 # In particular we don't look at `^make:' because GNU make might
2966 # be invoked under some other name (usually "gmake"), in which
2967 # case it prints its new name instead of `make'.
2968 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2969 am__include=include
2970 am__quote=
2971 _am_result=GNU
2973 # Now try BSD make style include.
2974 if test "$am__include" = "#"; then
2975 echo '.include "confinc"' > confmf
2976 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2977 am__include=.include
2978 am__quote="\""
2979 _am_result=BSD
2984 echo "$as_me:$LINENO: result: $_am_result" >&5
2985 echo "${ECHO_T}$_am_result" >&6
2986 rm -f confinc confmf
2988 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2989 if test "${enable_dependency_tracking+set}" = set; then
2990 enableval="$enable_dependency_tracking"
2993 if test "x$enable_dependency_tracking" != xno; then
2994 am_depcomp="$ac_aux_dir/depcomp"
2995 AMDEPBACKSLASH='\'
2999 if test "x$enable_dependency_tracking" != xno; then
3000 AMDEP_TRUE=
3001 AMDEP_FALSE='#'
3002 else
3003 AMDEP_TRUE='#'
3004 AMDEP_FALSE=
3009 # test to see if srcdir already configured
3010 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3011 test -f $srcdir/config.status; then
3012 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3013 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3014 { (exit 1); exit 1; }; }
3017 # test whether we have cygpath
3018 if test -z "$CYGPATH_W"; then
3019 if (cygpath --version) >/dev/null 2>/dev/null; then
3020 CYGPATH_W='cygpath -w'
3021 else
3022 CYGPATH_W=echo
3027 # Define the identity of the package.
3028 PACKAGE=binutils
3029 VERSION=${BFD_VERSION}
3032 cat >>confdefs.h <<_ACEOF
3033 #define PACKAGE "$PACKAGE"
3034 _ACEOF
3037 cat >>confdefs.h <<_ACEOF
3038 #define VERSION "$VERSION"
3039 _ACEOF
3041 # Some tools Automake needs.
3043 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3046 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3049 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3052 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3055 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3057 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3059 # Installed binaries are usually stripped using `strip' when the user
3060 # run `make install-strip'. However `strip' might not be the right
3061 # tool to use in cross-compilation environments, therefore Automake
3062 # will honor the `STRIP' environment variable to overrule this program.
3063 if test "$cross_compiling" != no; then
3064 if test -n "$ac_tool_prefix"; then
3065 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3066 set dummy ${ac_tool_prefix}strip; ac_word=$2
3067 echo "$as_me:$LINENO: checking for $ac_word" >&5
3068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3069 if test "${ac_cv_prog_STRIP+set}" = set; then
3070 echo $ECHO_N "(cached) $ECHO_C" >&6
3071 else
3072 if test -n "$STRIP"; then
3073 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3074 else
3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076 for as_dir in $PATH
3078 IFS=$as_save_IFS
3079 test -z "$as_dir" && as_dir=.
3080 for ac_exec_ext in '' $ac_executable_extensions; do
3081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3082 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3084 break 2
3086 done
3087 done
3091 STRIP=$ac_cv_prog_STRIP
3092 if test -n "$STRIP"; then
3093 echo "$as_me:$LINENO: result: $STRIP" >&5
3094 echo "${ECHO_T}$STRIP" >&6
3095 else
3096 echo "$as_me:$LINENO: result: no" >&5
3097 echo "${ECHO_T}no" >&6
3101 if test -z "$ac_cv_prog_STRIP"; then
3102 ac_ct_STRIP=$STRIP
3103 # Extract the first word of "strip", so it can be a program name with args.
3104 set dummy strip; ac_word=$2
3105 echo "$as_me:$LINENO: checking for $ac_word" >&5
3106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3107 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3108 echo $ECHO_N "(cached) $ECHO_C" >&6
3109 else
3110 if test -n "$ac_ct_STRIP"; then
3111 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3112 else
3113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114 for as_dir in $PATH
3116 IFS=$as_save_IFS
3117 test -z "$as_dir" && as_dir=.
3118 for ac_exec_ext in '' $ac_executable_extensions; do
3119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3120 ac_cv_prog_ac_ct_STRIP="strip"
3121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3122 break 2
3124 done
3125 done
3127 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3130 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3131 if test -n "$ac_ct_STRIP"; then
3132 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3133 echo "${ECHO_T}$ac_ct_STRIP" >&6
3134 else
3135 echo "$as_me:$LINENO: result: no" >&5
3136 echo "${ECHO_T}no" >&6
3139 STRIP=$ac_ct_STRIP
3140 else
3141 STRIP="$ac_cv_prog_STRIP"
3145 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3147 # We need awk for the "check" target. The system "awk" is bad on
3148 # some platforms.
3149 # Always define AMTAR for backward compatibility.
3151 AMTAR=${AMTAR-"${am_missing_run}tar"}
3153 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3158 depcc="$CC" am_compiler_list=
3160 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3161 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3162 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3163 echo $ECHO_N "(cached) $ECHO_C" >&6
3164 else
3165 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3166 # We make a subdir and do the tests there. Otherwise we can end up
3167 # making bogus files that we don't know about and never remove. For
3168 # instance it was reported that on HP-UX the gcc test will end up
3169 # making a dummy file named `D' -- because `-MD' means `put the output
3170 # in D'.
3171 mkdir conftest.dir
3172 # Copy depcomp to subdir because otherwise we won't find it if we're
3173 # using a relative directory.
3174 cp "$am_depcomp" conftest.dir
3175 cd conftest.dir
3176 # We will build objects and dependencies in a subdirectory because
3177 # it helps to detect inapplicable dependency modes. For instance
3178 # both Tru64's cc and ICC support -MD to output dependencies as a
3179 # side effect of compilation, but ICC will put the dependencies in
3180 # the current directory while Tru64 will put them in the object
3181 # directory.
3182 mkdir sub
3184 am_cv_CC_dependencies_compiler_type=none
3185 if test "$am_compiler_list" = ""; then
3186 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3188 for depmode in $am_compiler_list; do
3189 # Setup a source with many dependencies, because some compilers
3190 # like to wrap large dependency lists on column 80 (with \), and
3191 # we should not choose a depcomp mode which is confused by this.
3193 # We need to recreate these files for each test, as the compiler may
3194 # overwrite some of them when testing with obscure command lines.
3195 # This happens at least with the AIX C compiler.
3196 : > sub/conftest.c
3197 for i in 1 2 3 4 5 6; do
3198 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3199 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3200 # Solaris 8's {/usr,}/bin/sh.
3201 touch sub/conftst$i.h
3202 done
3203 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3205 case $depmode in
3206 nosideeffect)
3207 # after this tag, mechanisms are not by side-effect, so they'll
3208 # only be used when explicitly requested
3209 if test "x$enable_dependency_tracking" = xyes; then
3210 continue
3211 else
3212 break
3215 none) break ;;
3216 esac
3217 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3218 # mode. It turns out that the SunPro C++ compiler does not properly
3219 # handle `-M -o', and we need to detect this.
3220 if depmode=$depmode \
3221 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3222 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3223 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3224 >/dev/null 2>conftest.err &&
3225 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3226 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3227 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3228 # icc doesn't choke on unknown options, it will just issue warnings
3229 # or remarks (even with -Werror). So we grep stderr for any message
3230 # that says an option was ignored or not supported.
3231 # When given -MP, icc 7.0 and 7.1 complain thusly:
3232 # icc: Command line warning: ignoring option '-M'; no argument required
3233 # The diagnosis changed in icc 8.0:
3234 # icc: Command line remark: option '-MP' not supported
3235 if (grep 'ignoring option' conftest.err ||
3236 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3237 am_cv_CC_dependencies_compiler_type=$depmode
3238 break
3241 done
3243 cd ..
3244 rm -rf conftest.dir
3245 else
3246 am_cv_CC_dependencies_compiler_type=none
3250 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3251 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3252 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3257 test "x$enable_dependency_tracking" != xno \
3258 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3259 am__fastdepCC_TRUE=
3260 am__fastdepCC_FALSE='#'
3261 else
3262 am__fastdepCC_TRUE='#'
3263 am__fastdepCC_FALSE=
3269 ac_ext=c
3270 ac_cpp='$CPP $CPPFLAGS'
3271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3274 if test -n "$ac_tool_prefix"; then
3275 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3276 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3277 echo "$as_me:$LINENO: checking for $ac_word" >&5
3278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3279 if test "${ac_cv_prog_CC+set}" = set; then
3280 echo $ECHO_N "(cached) $ECHO_C" >&6
3281 else
3282 if test -n "$CC"; then
3283 ac_cv_prog_CC="$CC" # Let the user override the test.
3284 else
3285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3286 for as_dir in $PATH
3288 IFS=$as_save_IFS
3289 test -z "$as_dir" && as_dir=.
3290 for ac_exec_ext in '' $ac_executable_extensions; do
3291 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3292 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3294 break 2
3296 done
3297 done
3301 CC=$ac_cv_prog_CC
3302 if test -n "$CC"; then
3303 echo "$as_me:$LINENO: result: $CC" >&5
3304 echo "${ECHO_T}$CC" >&6
3305 else
3306 echo "$as_me:$LINENO: result: no" >&5
3307 echo "${ECHO_T}no" >&6
3311 if test -z "$ac_cv_prog_CC"; then
3312 ac_ct_CC=$CC
3313 # Extract the first word of "gcc", so it can be a program name with args.
3314 set dummy gcc; ac_word=$2
3315 echo "$as_me:$LINENO: checking for $ac_word" >&5
3316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3317 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3318 echo $ECHO_N "(cached) $ECHO_C" >&6
3319 else
3320 if test -n "$ac_ct_CC"; then
3321 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3322 else
3323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324 for as_dir in $PATH
3326 IFS=$as_save_IFS
3327 test -z "$as_dir" && as_dir=.
3328 for ac_exec_ext in '' $ac_executable_extensions; do
3329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3330 ac_cv_prog_ac_ct_CC="gcc"
3331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3332 break 2
3334 done
3335 done
3339 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3340 if test -n "$ac_ct_CC"; then
3341 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3342 echo "${ECHO_T}$ac_ct_CC" >&6
3343 else
3344 echo "$as_me:$LINENO: result: no" >&5
3345 echo "${ECHO_T}no" >&6
3348 CC=$ac_ct_CC
3349 else
3350 CC="$ac_cv_prog_CC"
3353 if test -z "$CC"; then
3354 if test -n "$ac_tool_prefix"; then
3355 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3356 set dummy ${ac_tool_prefix}cc; ac_word=$2
3357 echo "$as_me:$LINENO: checking for $ac_word" >&5
3358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3359 if test "${ac_cv_prog_CC+set}" = set; then
3360 echo $ECHO_N "(cached) $ECHO_C" >&6
3361 else
3362 if test -n "$CC"; then
3363 ac_cv_prog_CC="$CC" # Let the user override the test.
3364 else
3365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3366 for as_dir in $PATH
3368 IFS=$as_save_IFS
3369 test -z "$as_dir" && as_dir=.
3370 for ac_exec_ext in '' $ac_executable_extensions; do
3371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3372 ac_cv_prog_CC="${ac_tool_prefix}cc"
3373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3374 break 2
3376 done
3377 done
3381 CC=$ac_cv_prog_CC
3382 if test -n "$CC"; then
3383 echo "$as_me:$LINENO: result: $CC" >&5
3384 echo "${ECHO_T}$CC" >&6
3385 else
3386 echo "$as_me:$LINENO: result: no" >&5
3387 echo "${ECHO_T}no" >&6
3391 if test -z "$ac_cv_prog_CC"; then
3392 ac_ct_CC=$CC
3393 # Extract the first word of "cc", so it can be a program name with args.
3394 set dummy cc; ac_word=$2
3395 echo "$as_me:$LINENO: checking for $ac_word" >&5
3396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3397 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
3399 else
3400 if test -n "$ac_ct_CC"; then
3401 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3402 else
3403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404 for as_dir in $PATH
3406 IFS=$as_save_IFS
3407 test -z "$as_dir" && as_dir=.
3408 for ac_exec_ext in '' $ac_executable_extensions; do
3409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3410 ac_cv_prog_ac_ct_CC="cc"
3411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3412 break 2
3414 done
3415 done
3419 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3420 if test -n "$ac_ct_CC"; then
3421 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3422 echo "${ECHO_T}$ac_ct_CC" >&6
3423 else
3424 echo "$as_me:$LINENO: result: no" >&5
3425 echo "${ECHO_T}no" >&6
3428 CC=$ac_ct_CC
3429 else
3430 CC="$ac_cv_prog_CC"
3434 if test -z "$CC"; then
3435 # Extract the first word of "cc", so it can be a program name with args.
3436 set dummy cc; ac_word=$2
3437 echo "$as_me:$LINENO: checking for $ac_word" >&5
3438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3439 if test "${ac_cv_prog_CC+set}" = set; then
3440 echo $ECHO_N "(cached) $ECHO_C" >&6
3441 else
3442 if test -n "$CC"; then
3443 ac_cv_prog_CC="$CC" # Let the user override the test.
3444 else
3445 ac_prog_rejected=no
3446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3447 for as_dir in $PATH
3449 IFS=$as_save_IFS
3450 test -z "$as_dir" && as_dir=.
3451 for ac_exec_ext in '' $ac_executable_extensions; do
3452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3453 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3454 ac_prog_rejected=yes
3455 continue
3457 ac_cv_prog_CC="cc"
3458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3459 break 2
3461 done
3462 done
3464 if test $ac_prog_rejected = yes; then
3465 # We found a bogon in the path, so make sure we never use it.
3466 set dummy $ac_cv_prog_CC
3467 shift
3468 if test $# != 0; then
3469 # We chose a different compiler from the bogus one.
3470 # However, it has the same basename, so the bogon will be chosen
3471 # first if we set CC to just the basename; use the full file name.
3472 shift
3473 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3478 CC=$ac_cv_prog_CC
3479 if test -n "$CC"; then
3480 echo "$as_me:$LINENO: result: $CC" >&5
3481 echo "${ECHO_T}$CC" >&6
3482 else
3483 echo "$as_me:$LINENO: result: no" >&5
3484 echo "${ECHO_T}no" >&6
3488 if test -z "$CC"; then
3489 if test -n "$ac_tool_prefix"; then
3490 for ac_prog in cl
3492 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3493 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3494 echo "$as_me:$LINENO: checking for $ac_word" >&5
3495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3496 if test "${ac_cv_prog_CC+set}" = set; then
3497 echo $ECHO_N "(cached) $ECHO_C" >&6
3498 else
3499 if test -n "$CC"; then
3500 ac_cv_prog_CC="$CC" # Let the user override the test.
3501 else
3502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3503 for as_dir in $PATH
3505 IFS=$as_save_IFS
3506 test -z "$as_dir" && as_dir=.
3507 for ac_exec_ext in '' $ac_executable_extensions; do
3508 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3509 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3511 break 2
3513 done
3514 done
3518 CC=$ac_cv_prog_CC
3519 if test -n "$CC"; then
3520 echo "$as_me:$LINENO: result: $CC" >&5
3521 echo "${ECHO_T}$CC" >&6
3522 else
3523 echo "$as_me:$LINENO: result: no" >&5
3524 echo "${ECHO_T}no" >&6
3527 test -n "$CC" && break
3528 done
3530 if test -z "$CC"; then
3531 ac_ct_CC=$CC
3532 for ac_prog in cl
3534 # Extract the first word of "$ac_prog", so it can be a program name with args.
3535 set dummy $ac_prog; ac_word=$2
3536 echo "$as_me:$LINENO: checking for $ac_word" >&5
3537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3538 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3539 echo $ECHO_N "(cached) $ECHO_C" >&6
3540 else
3541 if test -n "$ac_ct_CC"; then
3542 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3543 else
3544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545 for as_dir in $PATH
3547 IFS=$as_save_IFS
3548 test -z "$as_dir" && as_dir=.
3549 for ac_exec_ext in '' $ac_executable_extensions; do
3550 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3551 ac_cv_prog_ac_ct_CC="$ac_prog"
3552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3553 break 2
3555 done
3556 done
3560 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3561 if test -n "$ac_ct_CC"; then
3562 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3563 echo "${ECHO_T}$ac_ct_CC" >&6
3564 else
3565 echo "$as_me:$LINENO: result: no" >&5
3566 echo "${ECHO_T}no" >&6
3569 test -n "$ac_ct_CC" && break
3570 done
3572 CC=$ac_ct_CC
3578 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3579 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3580 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3581 See \`config.log' for more details." >&5
3582 echo "$as_me: error: no acceptable C compiler found in \$PATH
3583 See \`config.log' for more details." >&2;}
3584 { (exit 1); exit 1; }; }; }
3586 # Provide some information about the compiler.
3587 echo "$as_me:$LINENO:" \
3588 "checking for C compiler version" >&5
3589 ac_compiler=`set X $ac_compile; echo $2`
3590 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3591 (eval $ac_compiler --version </dev/null >&5) 2>&5
3592 ac_status=$?
3593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594 (exit $ac_status); }
3595 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3596 (eval $ac_compiler -v </dev/null >&5) 2>&5
3597 ac_status=$?
3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); }
3600 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3601 (eval $ac_compiler -V </dev/null >&5) 2>&5
3602 ac_status=$?
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); }
3606 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3607 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3608 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
3610 else
3611 cat >conftest.$ac_ext <<_ACEOF
3612 /* confdefs.h. */
3613 _ACEOF
3614 cat confdefs.h >>conftest.$ac_ext
3615 cat >>conftest.$ac_ext <<_ACEOF
3616 /* end confdefs.h. */
3619 main ()
3621 #ifndef __GNUC__
3622 choke me
3623 #endif
3626 return 0;
3628 _ACEOF
3629 rm -f conftest.$ac_objext
3630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3631 (eval $ac_compile) 2>conftest.er1
3632 ac_status=$?
3633 grep -v '^ *+' conftest.er1 >conftest.err
3634 rm -f conftest.er1
3635 cat conftest.err >&5
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); } &&
3638 { ac_try='test -z "$ac_c_werror_flag"
3639 || test ! -s conftest.err'
3640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3641 (eval $ac_try) 2>&5
3642 ac_status=$?
3643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644 (exit $ac_status); }; } &&
3645 { ac_try='test -s conftest.$ac_objext'
3646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3647 (eval $ac_try) 2>&5
3648 ac_status=$?
3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); }; }; then
3651 ac_compiler_gnu=yes
3652 else
3653 echo "$as_me: failed program was:" >&5
3654 sed 's/^/| /' conftest.$ac_ext >&5
3656 ac_compiler_gnu=no
3658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3659 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3662 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3663 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3664 GCC=`test $ac_compiler_gnu = yes && echo yes`
3665 ac_test_CFLAGS=${CFLAGS+set}
3666 ac_save_CFLAGS=$CFLAGS
3667 CFLAGS="-g"
3668 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3669 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3670 if test "${ac_cv_prog_cc_g+set}" = set; then
3671 echo $ECHO_N "(cached) $ECHO_C" >&6
3672 else
3673 cat >conftest.$ac_ext <<_ACEOF
3674 /* confdefs.h. */
3675 _ACEOF
3676 cat confdefs.h >>conftest.$ac_ext
3677 cat >>conftest.$ac_ext <<_ACEOF
3678 /* end confdefs.h. */
3681 main ()
3685 return 0;
3687 _ACEOF
3688 rm -f conftest.$ac_objext
3689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3690 (eval $ac_compile) 2>conftest.er1
3691 ac_status=$?
3692 grep -v '^ *+' conftest.er1 >conftest.err
3693 rm -f conftest.er1
3694 cat conftest.err >&5
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); } &&
3697 { ac_try='test -z "$ac_c_werror_flag"
3698 || test ! -s conftest.err'
3699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3700 (eval $ac_try) 2>&5
3701 ac_status=$?
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); }; } &&
3704 { ac_try='test -s conftest.$ac_objext'
3705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3706 (eval $ac_try) 2>&5
3707 ac_status=$?
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); }; }; then
3710 ac_cv_prog_cc_g=yes
3711 else
3712 echo "$as_me: failed program was:" >&5
3713 sed 's/^/| /' conftest.$ac_ext >&5
3715 ac_cv_prog_cc_g=no
3717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3719 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3720 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3721 if test "$ac_test_CFLAGS" = set; then
3722 CFLAGS=$ac_save_CFLAGS
3723 elif test $ac_cv_prog_cc_g = yes; then
3724 if test "$GCC" = yes; then
3725 CFLAGS="-g -O2"
3726 else
3727 CFLAGS="-g"
3729 else
3730 if test "$GCC" = yes; then
3731 CFLAGS="-O2"
3732 else
3733 CFLAGS=
3736 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3737 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3738 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3739 echo $ECHO_N "(cached) $ECHO_C" >&6
3740 else
3741 ac_cv_prog_cc_stdc=no
3742 ac_save_CC=$CC
3743 cat >conftest.$ac_ext <<_ACEOF
3744 /* confdefs.h. */
3745 _ACEOF
3746 cat confdefs.h >>conftest.$ac_ext
3747 cat >>conftest.$ac_ext <<_ACEOF
3748 /* end confdefs.h. */
3749 #include <stdarg.h>
3750 #include <stdio.h>
3751 #include <sys/types.h>
3752 #include <sys/stat.h>
3753 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3754 struct buf { int x; };
3755 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3756 static char *e (p, i)
3757 char **p;
3758 int i;
3760 return p[i];
3762 static char *f (char * (*g) (char **, int), char **p, ...)
3764 char *s;
3765 va_list v;
3766 va_start (v,p);
3767 s = g (p, va_arg (v,int));
3768 va_end (v);
3769 return s;
3772 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3773 function prototypes and stuff, but not '\xHH' hex character constants.
3774 These don't provoke an error unfortunately, instead are silently treated
3775 as 'x'. The following induces an error, until -std1 is added to get
3776 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3777 array size at least. It's necessary to write '\x00'==0 to get something
3778 that's true only with -std1. */
3779 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3781 int test (int i, double x);
3782 struct s1 {int (*f) (int a);};
3783 struct s2 {int (*f) (double a);};
3784 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3785 int argc;
3786 char **argv;
3788 main ()
3790 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3792 return 0;
3794 _ACEOF
3795 # Don't try gcc -ansi; that turns off useful extensions and
3796 # breaks some systems' header files.
3797 # AIX -qlanglvl=ansi
3798 # Ultrix and OSF/1 -std1
3799 # HP-UX 10.20 and later -Ae
3800 # HP-UX older versions -Aa -D_HPUX_SOURCE
3801 # SVR4 -Xc -D__EXTENSIONS__
3802 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3804 CC="$ac_save_CC $ac_arg"
3805 rm -f conftest.$ac_objext
3806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3807 (eval $ac_compile) 2>conftest.er1
3808 ac_status=$?
3809 grep -v '^ *+' conftest.er1 >conftest.err
3810 rm -f conftest.er1
3811 cat conftest.err >&5
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); } &&
3814 { ac_try='test -z "$ac_c_werror_flag"
3815 || test ! -s conftest.err'
3816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3817 (eval $ac_try) 2>&5
3818 ac_status=$?
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); }; } &&
3821 { ac_try='test -s conftest.$ac_objext'
3822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3823 (eval $ac_try) 2>&5
3824 ac_status=$?
3825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); }; }; then
3827 ac_cv_prog_cc_stdc=$ac_arg
3828 break
3829 else
3830 echo "$as_me: failed program was:" >&5
3831 sed 's/^/| /' conftest.$ac_ext >&5
3834 rm -f conftest.err conftest.$ac_objext
3835 done
3836 rm -f conftest.$ac_ext conftest.$ac_objext
3837 CC=$ac_save_CC
3841 case "x$ac_cv_prog_cc_stdc" in
3842 x|xno)
3843 echo "$as_me:$LINENO: result: none needed" >&5
3844 echo "${ECHO_T}none needed" >&6 ;;
3846 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3847 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3848 CC="$CC $ac_cv_prog_cc_stdc" ;;
3849 esac
3851 # Some people use a C++ compiler to compile C. Since we use `exit',
3852 # in C++ we need to declare it. In case someone uses the same compiler
3853 # for both compiling C and C++ we need to have the C++ compiler decide
3854 # the declaration of exit, since it's the most demanding environment.
3855 cat >conftest.$ac_ext <<_ACEOF
3856 #ifndef __cplusplus
3857 choke me
3858 #endif
3859 _ACEOF
3860 rm -f conftest.$ac_objext
3861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3862 (eval $ac_compile) 2>conftest.er1
3863 ac_status=$?
3864 grep -v '^ *+' conftest.er1 >conftest.err
3865 rm -f conftest.er1
3866 cat conftest.err >&5
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); } &&
3869 { ac_try='test -z "$ac_c_werror_flag"
3870 || test ! -s conftest.err'
3871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3872 (eval $ac_try) 2>&5
3873 ac_status=$?
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); }; } &&
3876 { ac_try='test -s conftest.$ac_objext'
3877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3878 (eval $ac_try) 2>&5
3879 ac_status=$?
3880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881 (exit $ac_status); }; }; then
3882 for ac_declaration in \
3883 '' \
3884 'extern "C" void std::exit (int) throw (); using std::exit;' \
3885 'extern "C" void std::exit (int); using std::exit;' \
3886 'extern "C" void exit (int) throw ();' \
3887 'extern "C" void exit (int);' \
3888 'void exit (int);'
3890 cat >conftest.$ac_ext <<_ACEOF
3891 /* confdefs.h. */
3892 _ACEOF
3893 cat confdefs.h >>conftest.$ac_ext
3894 cat >>conftest.$ac_ext <<_ACEOF
3895 /* end confdefs.h. */
3896 $ac_declaration
3897 #include <stdlib.h>
3899 main ()
3901 exit (42);
3903 return 0;
3905 _ACEOF
3906 rm -f conftest.$ac_objext
3907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3908 (eval $ac_compile) 2>conftest.er1
3909 ac_status=$?
3910 grep -v '^ *+' conftest.er1 >conftest.err
3911 rm -f conftest.er1
3912 cat conftest.err >&5
3913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914 (exit $ac_status); } &&
3915 { ac_try='test -z "$ac_c_werror_flag"
3916 || test ! -s conftest.err'
3917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3918 (eval $ac_try) 2>&5
3919 ac_status=$?
3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); }; } &&
3922 { ac_try='test -s conftest.$ac_objext'
3923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3924 (eval $ac_try) 2>&5
3925 ac_status=$?
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); }; }; then
3929 else
3930 echo "$as_me: failed program was:" >&5
3931 sed 's/^/| /' conftest.$ac_ext >&5
3933 continue
3935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3936 cat >conftest.$ac_ext <<_ACEOF
3937 /* confdefs.h. */
3938 _ACEOF
3939 cat confdefs.h >>conftest.$ac_ext
3940 cat >>conftest.$ac_ext <<_ACEOF
3941 /* end confdefs.h. */
3942 $ac_declaration
3944 main ()
3946 exit (42);
3948 return 0;
3950 _ACEOF
3951 rm -f conftest.$ac_objext
3952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3953 (eval $ac_compile) 2>conftest.er1
3954 ac_status=$?
3955 grep -v '^ *+' conftest.er1 >conftest.err
3956 rm -f conftest.er1
3957 cat conftest.err >&5
3958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959 (exit $ac_status); } &&
3960 { ac_try='test -z "$ac_c_werror_flag"
3961 || test ! -s conftest.err'
3962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3963 (eval $ac_try) 2>&5
3964 ac_status=$?
3965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966 (exit $ac_status); }; } &&
3967 { ac_try='test -s conftest.$ac_objext'
3968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3969 (eval $ac_try) 2>&5
3970 ac_status=$?
3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); }; }; then
3973 break
3974 else
3975 echo "$as_me: failed program was:" >&5
3976 sed 's/^/| /' conftest.$ac_ext >&5
3979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3980 done
3981 rm -f conftest*
3982 if test -n "$ac_declaration"; then
3983 echo '#ifdef __cplusplus' >>confdefs.h
3984 echo $ac_declaration >>confdefs.h
3985 echo '#endif' >>confdefs.h
3988 else
3989 echo "$as_me: failed program was:" >&5
3990 sed 's/^/| /' conftest.$ac_ext >&5
3993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3994 ac_ext=c
3995 ac_cpp='$CPP $CPPFLAGS'
3996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4001 cat >>confdefs.h <<\_ACEOF
4002 #define _GNU_SOURCE 1
4003 _ACEOF
4006 ac_ext=c
4007 ac_cpp='$CPP $CPPFLAGS'
4008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4011 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4012 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4013 # On Suns, sometimes $CPP names a directory.
4014 if test -n "$CPP" && test -d "$CPP"; then
4015 CPP=
4017 if test -z "$CPP"; then
4018 if test "${ac_cv_prog_CPP+set}" = set; then
4019 echo $ECHO_N "(cached) $ECHO_C" >&6
4020 else
4021 # Double quotes because CPP needs to be expanded
4022 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4024 ac_preproc_ok=false
4025 for ac_c_preproc_warn_flag in '' yes
4027 # Use a header file that comes with gcc, so configuring glibc
4028 # with a fresh cross-compiler works.
4029 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4030 # <limits.h> exists even on freestanding compilers.
4031 # On the NeXT, cc -E runs the code through the compiler's parser,
4032 # not just through cpp. "Syntax error" is here to catch this case.
4033 cat >conftest.$ac_ext <<_ACEOF
4034 /* confdefs.h. */
4035 _ACEOF
4036 cat confdefs.h >>conftest.$ac_ext
4037 cat >>conftest.$ac_ext <<_ACEOF
4038 /* end confdefs.h. */
4039 #ifdef __STDC__
4040 # include <limits.h>
4041 #else
4042 # include <assert.h>
4043 #endif
4044 Syntax error
4045 _ACEOF
4046 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4047 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4048 ac_status=$?
4049 grep -v '^ *+' conftest.er1 >conftest.err
4050 rm -f conftest.er1
4051 cat conftest.err >&5
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); } >/dev/null; then
4054 if test -s conftest.err; then
4055 ac_cpp_err=$ac_c_preproc_warn_flag
4056 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4057 else
4058 ac_cpp_err=
4060 else
4061 ac_cpp_err=yes
4063 if test -z "$ac_cpp_err"; then
4065 else
4066 echo "$as_me: failed program was:" >&5
4067 sed 's/^/| /' conftest.$ac_ext >&5
4069 # Broken: fails on valid input.
4070 continue
4072 rm -f conftest.err conftest.$ac_ext
4074 # OK, works on sane cases. Now check whether non-existent headers
4075 # can be detected and how.
4076 cat >conftest.$ac_ext <<_ACEOF
4077 /* confdefs.h. */
4078 _ACEOF
4079 cat confdefs.h >>conftest.$ac_ext
4080 cat >>conftest.$ac_ext <<_ACEOF
4081 /* end confdefs.h. */
4082 #include <ac_nonexistent.h>
4083 _ACEOF
4084 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4085 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4086 ac_status=$?
4087 grep -v '^ *+' conftest.er1 >conftest.err
4088 rm -f conftest.er1
4089 cat conftest.err >&5
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); } >/dev/null; then
4092 if test -s conftest.err; then
4093 ac_cpp_err=$ac_c_preproc_warn_flag
4094 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4095 else
4096 ac_cpp_err=
4098 else
4099 ac_cpp_err=yes
4101 if test -z "$ac_cpp_err"; then
4102 # Broken: success on invalid input.
4103 continue
4104 else
4105 echo "$as_me: failed program was:" >&5
4106 sed 's/^/| /' conftest.$ac_ext >&5
4108 # Passes both tests.
4109 ac_preproc_ok=:
4110 break
4112 rm -f conftest.err conftest.$ac_ext
4114 done
4115 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4116 rm -f conftest.err conftest.$ac_ext
4117 if $ac_preproc_ok; then
4118 break
4121 done
4122 ac_cv_prog_CPP=$CPP
4125 CPP=$ac_cv_prog_CPP
4126 else
4127 ac_cv_prog_CPP=$CPP
4129 echo "$as_me:$LINENO: result: $CPP" >&5
4130 echo "${ECHO_T}$CPP" >&6
4131 ac_preproc_ok=false
4132 for ac_c_preproc_warn_flag in '' yes
4134 # Use a header file that comes with gcc, so configuring glibc
4135 # with a fresh cross-compiler works.
4136 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4137 # <limits.h> exists even on freestanding compilers.
4138 # On the NeXT, cc -E runs the code through the compiler's parser,
4139 # not just through cpp. "Syntax error" is here to catch this case.
4140 cat >conftest.$ac_ext <<_ACEOF
4141 /* confdefs.h. */
4142 _ACEOF
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h. */
4146 #ifdef __STDC__
4147 # include <limits.h>
4148 #else
4149 # include <assert.h>
4150 #endif
4151 Syntax error
4152 _ACEOF
4153 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4154 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4155 ac_status=$?
4156 grep -v '^ *+' conftest.er1 >conftest.err
4157 rm -f conftest.er1
4158 cat conftest.err >&5
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); } >/dev/null; then
4161 if test -s conftest.err; then
4162 ac_cpp_err=$ac_c_preproc_warn_flag
4163 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4164 else
4165 ac_cpp_err=
4167 else
4168 ac_cpp_err=yes
4170 if test -z "$ac_cpp_err"; then
4172 else
4173 echo "$as_me: failed program was:" >&5
4174 sed 's/^/| /' conftest.$ac_ext >&5
4176 # Broken: fails on valid input.
4177 continue
4179 rm -f conftest.err conftest.$ac_ext
4181 # OK, works on sane cases. Now check whether non-existent headers
4182 # can be detected and how.
4183 cat >conftest.$ac_ext <<_ACEOF
4184 /* confdefs.h. */
4185 _ACEOF
4186 cat confdefs.h >>conftest.$ac_ext
4187 cat >>conftest.$ac_ext <<_ACEOF
4188 /* end confdefs.h. */
4189 #include <ac_nonexistent.h>
4190 _ACEOF
4191 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4192 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4193 ac_status=$?
4194 grep -v '^ *+' conftest.er1 >conftest.err
4195 rm -f conftest.er1
4196 cat conftest.err >&5
4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); } >/dev/null; then
4199 if test -s conftest.err; then
4200 ac_cpp_err=$ac_c_preproc_warn_flag
4201 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4202 else
4203 ac_cpp_err=
4205 else
4206 ac_cpp_err=yes
4208 if test -z "$ac_cpp_err"; then
4209 # Broken: success on invalid input.
4210 continue
4211 else
4212 echo "$as_me: failed program was:" >&5
4213 sed 's/^/| /' conftest.$ac_ext >&5
4215 # Passes both tests.
4216 ac_preproc_ok=:
4217 break
4219 rm -f conftest.err conftest.$ac_ext
4221 done
4222 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4223 rm -f conftest.err conftest.$ac_ext
4224 if $ac_preproc_ok; then
4226 else
4227 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4228 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4229 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4230 See \`config.log' for more details." >&5
4231 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4232 See \`config.log' for more details." >&2;}
4233 { (exit 1); exit 1; }; }; }
4236 ac_ext=c
4237 ac_cpp='$CPP $CPPFLAGS'
4238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4243 echo "$as_me:$LINENO: checking for egrep" >&5
4244 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4245 if test "${ac_cv_prog_egrep+set}" = set; then
4246 echo $ECHO_N "(cached) $ECHO_C" >&6
4247 else
4248 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4249 then ac_cv_prog_egrep='grep -E'
4250 else ac_cv_prog_egrep='egrep'
4253 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4254 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4255 EGREP=$ac_cv_prog_egrep
4258 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4259 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4260 if test "${ac_cv_header_stdc+set}" = set; then
4261 echo $ECHO_N "(cached) $ECHO_C" >&6
4262 else
4263 cat >conftest.$ac_ext <<_ACEOF
4264 /* confdefs.h. */
4265 _ACEOF
4266 cat confdefs.h >>conftest.$ac_ext
4267 cat >>conftest.$ac_ext <<_ACEOF
4268 /* end confdefs.h. */
4269 #include <stdlib.h>
4270 #include <stdarg.h>
4271 #include <string.h>
4272 #include <float.h>
4275 main ()
4279 return 0;
4281 _ACEOF
4282 rm -f conftest.$ac_objext
4283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4284 (eval $ac_compile) 2>conftest.er1
4285 ac_status=$?
4286 grep -v '^ *+' conftest.er1 >conftest.err
4287 rm -f conftest.er1
4288 cat conftest.err >&5
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); } &&
4291 { ac_try='test -z "$ac_c_werror_flag"
4292 || test ! -s conftest.err'
4293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4294 (eval $ac_try) 2>&5
4295 ac_status=$?
4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297 (exit $ac_status); }; } &&
4298 { ac_try='test -s conftest.$ac_objext'
4299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4300 (eval $ac_try) 2>&5
4301 ac_status=$?
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); }; }; then
4304 ac_cv_header_stdc=yes
4305 else
4306 echo "$as_me: failed program was:" >&5
4307 sed 's/^/| /' conftest.$ac_ext >&5
4309 ac_cv_header_stdc=no
4311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4313 if test $ac_cv_header_stdc = yes; then
4314 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4315 cat >conftest.$ac_ext <<_ACEOF
4316 /* confdefs.h. */
4317 _ACEOF
4318 cat confdefs.h >>conftest.$ac_ext
4319 cat >>conftest.$ac_ext <<_ACEOF
4320 /* end confdefs.h. */
4321 #include <string.h>
4323 _ACEOF
4324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4325 $EGREP "memchr" >/dev/null 2>&1; then
4327 else
4328 ac_cv_header_stdc=no
4330 rm -f conftest*
4334 if test $ac_cv_header_stdc = yes; then
4335 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4336 cat >conftest.$ac_ext <<_ACEOF
4337 /* confdefs.h. */
4338 _ACEOF
4339 cat confdefs.h >>conftest.$ac_ext
4340 cat >>conftest.$ac_ext <<_ACEOF
4341 /* end confdefs.h. */
4342 #include <stdlib.h>
4344 _ACEOF
4345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4346 $EGREP "free" >/dev/null 2>&1; then
4348 else
4349 ac_cv_header_stdc=no
4351 rm -f conftest*
4355 if test $ac_cv_header_stdc = yes; then
4356 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4357 if test "$cross_compiling" = yes; then
4359 else
4360 cat >conftest.$ac_ext <<_ACEOF
4361 /* confdefs.h. */
4362 _ACEOF
4363 cat confdefs.h >>conftest.$ac_ext
4364 cat >>conftest.$ac_ext <<_ACEOF
4365 /* end confdefs.h. */
4366 #include <ctype.h>
4367 #if ((' ' & 0x0FF) == 0x020)
4368 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4369 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4370 #else
4371 # define ISLOWER(c) \
4372 (('a' <= (c) && (c) <= 'i') \
4373 || ('j' <= (c) && (c) <= 'r') \
4374 || ('s' <= (c) && (c) <= 'z'))
4375 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4376 #endif
4378 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4380 main ()
4382 int i;
4383 for (i = 0; i < 256; i++)
4384 if (XOR (islower (i), ISLOWER (i))
4385 || toupper (i) != TOUPPER (i))
4386 exit(2);
4387 exit (0);
4389 _ACEOF
4390 rm -f conftest$ac_exeext
4391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4392 (eval $ac_link) 2>&5
4393 ac_status=$?
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4397 (eval $ac_try) 2>&5
4398 ac_status=$?
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); }; }; then
4402 else
4403 echo "$as_me: program exited with status $ac_status" >&5
4404 echo "$as_me: failed program was:" >&5
4405 sed 's/^/| /' conftest.$ac_ext >&5
4407 ( exit $ac_status )
4408 ac_cv_header_stdc=no
4410 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4414 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4415 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4416 if test $ac_cv_header_stdc = yes; then
4418 cat >>confdefs.h <<\_ACEOF
4419 #define STDC_HEADERS 1
4420 _ACEOF
4424 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4434 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4435 inttypes.h stdint.h unistd.h
4437 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4438 echo "$as_me:$LINENO: checking for $ac_header" >&5
4439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4441 echo $ECHO_N "(cached) $ECHO_C" >&6
4442 else
4443 cat >conftest.$ac_ext <<_ACEOF
4444 /* confdefs.h. */
4445 _ACEOF
4446 cat confdefs.h >>conftest.$ac_ext
4447 cat >>conftest.$ac_ext <<_ACEOF
4448 /* end confdefs.h. */
4449 $ac_includes_default
4451 #include <$ac_header>
4452 _ACEOF
4453 rm -f conftest.$ac_objext
4454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4455 (eval $ac_compile) 2>conftest.er1
4456 ac_status=$?
4457 grep -v '^ *+' conftest.er1 >conftest.err
4458 rm -f conftest.er1
4459 cat conftest.err >&5
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); } &&
4462 { ac_try='test -z "$ac_c_werror_flag"
4463 || test ! -s conftest.err'
4464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4465 (eval $ac_try) 2>&5
4466 ac_status=$?
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); }; } &&
4469 { ac_try='test -s conftest.$ac_objext'
4470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4471 (eval $ac_try) 2>&5
4472 ac_status=$?
4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); }; }; then
4475 eval "$as_ac_Header=yes"
4476 else
4477 echo "$as_me: failed program was:" >&5
4478 sed 's/^/| /' conftest.$ac_ext >&5
4480 eval "$as_ac_Header=no"
4482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4487 cat >>confdefs.h <<_ACEOF
4488 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4489 _ACEOF
4493 done
4497 if test "${ac_cv_header_minix_config_h+set}" = set; then
4498 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4499 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4500 if test "${ac_cv_header_minix_config_h+set}" = set; then
4501 echo $ECHO_N "(cached) $ECHO_C" >&6
4503 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4504 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4505 else
4506 # Is the header compilable?
4507 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4508 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
4509 cat >conftest.$ac_ext <<_ACEOF
4510 /* confdefs.h. */
4511 _ACEOF
4512 cat confdefs.h >>conftest.$ac_ext
4513 cat >>conftest.$ac_ext <<_ACEOF
4514 /* end confdefs.h. */
4515 $ac_includes_default
4516 #include <minix/config.h>
4517 _ACEOF
4518 rm -f conftest.$ac_objext
4519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4520 (eval $ac_compile) 2>conftest.er1
4521 ac_status=$?
4522 grep -v '^ *+' conftest.er1 >conftest.err
4523 rm -f conftest.er1
4524 cat conftest.err >&5
4525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 (exit $ac_status); } &&
4527 { ac_try='test -z "$ac_c_werror_flag"
4528 || test ! -s conftest.err'
4529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4530 (eval $ac_try) 2>&5
4531 ac_status=$?
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); }; } &&
4534 { ac_try='test -s conftest.$ac_objext'
4535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4536 (eval $ac_try) 2>&5
4537 ac_status=$?
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); }; }; then
4540 ac_header_compiler=yes
4541 else
4542 echo "$as_me: failed program was:" >&5
4543 sed 's/^/| /' conftest.$ac_ext >&5
4545 ac_header_compiler=no
4547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4548 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4549 echo "${ECHO_T}$ac_header_compiler" >&6
4551 # Is the header present?
4552 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4553 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
4554 cat >conftest.$ac_ext <<_ACEOF
4555 /* confdefs.h. */
4556 _ACEOF
4557 cat confdefs.h >>conftest.$ac_ext
4558 cat >>conftest.$ac_ext <<_ACEOF
4559 /* end confdefs.h. */
4560 #include <minix/config.h>
4561 _ACEOF
4562 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4563 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4564 ac_status=$?
4565 grep -v '^ *+' conftest.er1 >conftest.err
4566 rm -f conftest.er1
4567 cat conftest.err >&5
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); } >/dev/null; then
4570 if test -s conftest.err; then
4571 ac_cpp_err=$ac_c_preproc_warn_flag
4572 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4573 else
4574 ac_cpp_err=
4576 else
4577 ac_cpp_err=yes
4579 if test -z "$ac_cpp_err"; then
4580 ac_header_preproc=yes
4581 else
4582 echo "$as_me: failed program was:" >&5
4583 sed 's/^/| /' conftest.$ac_ext >&5
4585 ac_header_preproc=no
4587 rm -f conftest.err conftest.$ac_ext
4588 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4589 echo "${ECHO_T}$ac_header_preproc" >&6
4591 # So? What about this header?
4592 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4593 yes:no: )
4594 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4595 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4596 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4597 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4598 ac_header_preproc=yes
4600 no:yes:* )
4601 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4602 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4603 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4604 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4605 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4606 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4607 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4608 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4609 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4610 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4611 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4612 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4614 cat <<\_ASBOX
4615 ## ------------------------------------------ ##
4616 ## Report this to the AC_PACKAGE_NAME lists. ##
4617 ## ------------------------------------------ ##
4618 _ASBOX
4620 sed "s/^/$as_me: WARNING: /" >&2
4622 esac
4623 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4624 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4625 if test "${ac_cv_header_minix_config_h+set}" = set; then
4626 echo $ECHO_N "(cached) $ECHO_C" >&6
4627 else
4628 ac_cv_header_minix_config_h=$ac_header_preproc
4630 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4631 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4634 if test $ac_cv_header_minix_config_h = yes; then
4635 MINIX=yes
4636 else
4637 MINIX=
4641 if test "$MINIX" = yes; then
4643 cat >>confdefs.h <<\_ACEOF
4644 #define _POSIX_SOURCE 1
4645 _ACEOF
4648 cat >>confdefs.h <<\_ACEOF
4649 #define _POSIX_1_SOURCE 2
4650 _ACEOF
4653 cat >>confdefs.h <<\_ACEOF
4654 #define _MINIX 1
4655 _ACEOF
4661 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4662 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
4663 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4664 echo $ECHO_N "(cached) $ECHO_C" >&6
4665 else
4666 cat >conftest.$ac_ext <<_ACEOF
4667 /* confdefs.h. */
4668 _ACEOF
4669 cat confdefs.h >>conftest.$ac_ext
4670 cat >>conftest.$ac_ext <<_ACEOF
4671 /* end confdefs.h. */
4673 # define __EXTENSIONS__ 1
4674 $ac_includes_default
4676 main ()
4680 return 0;
4682 _ACEOF
4683 rm -f conftest.$ac_objext
4684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4685 (eval $ac_compile) 2>conftest.er1
4686 ac_status=$?
4687 grep -v '^ *+' conftest.er1 >conftest.err
4688 rm -f conftest.er1
4689 cat conftest.err >&5
4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); } &&
4692 { ac_try='test -z "$ac_c_werror_flag"
4693 || test ! -s conftest.err'
4694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4695 (eval $ac_try) 2>&5
4696 ac_status=$?
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); }; } &&
4699 { ac_try='test -s conftest.$ac_objext'
4700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4701 (eval $ac_try) 2>&5
4702 ac_status=$?
4703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704 (exit $ac_status); }; }; then
4705 ac_cv_safe_to_define___extensions__=yes
4706 else
4707 echo "$as_me: failed program was:" >&5
4708 sed 's/^/| /' conftest.$ac_ext >&5
4710 ac_cv_safe_to_define___extensions__=no
4712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4714 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4715 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4716 test $ac_cv_safe_to_define___extensions__ = yes &&
4717 cat >>confdefs.h <<\_ACEOF
4718 #define __EXTENSIONS__ 1
4719 _ACEOF
4721 cat >>confdefs.h <<\_ACEOF
4722 #define _ALL_SOURCE 1
4723 _ACEOF
4725 cat >>confdefs.h <<\_ACEOF
4726 #define _GNU_SOURCE 1
4727 _ACEOF
4729 cat >>confdefs.h <<\_ACEOF
4730 #define _POSIX_PTHREAD_SEMANTICS 1
4731 _ACEOF
4733 cat >>confdefs.h <<\_ACEOF
4734 #define _TANDEM_SOURCE 1
4735 _ACEOF
4739 case "${target}" in
4740 sparc-*-solaris*|i[3-7]86-*-solaris*)
4741 # See comment in bfd/configure.in for the reason for this test.
4742 # PR 9992/binutils: We have to duplicate the behaviour of bfd's
4743 # configure script so that the utilities in this directory agree
4744 # on the size of structures used to describe files.
4745 if test "${target}" = "${host}" -a "$enable_largefile" != 'yes'; then
4746 enable_largefile="no"
4749 esac
4751 # Check whether --enable-largefile or --disable-largefile was given.
4752 if test "${enable_largefile+set}" = set; then
4753 enableval="$enable_largefile"
4756 if test "$enable_largefile" != no; then
4758 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4759 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4760 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4761 echo $ECHO_N "(cached) $ECHO_C" >&6
4762 else
4763 ac_cv_sys_largefile_CC=no
4764 if test "$GCC" != yes; then
4765 ac_save_CC=$CC
4766 while :; do
4767 # IRIX 6.2 and later do not support large files by default,
4768 # so use the C compiler's -n32 option if that helps.
4769 cat >conftest.$ac_ext <<_ACEOF
4770 /* confdefs.h. */
4771 _ACEOF
4772 cat confdefs.h >>conftest.$ac_ext
4773 cat >>conftest.$ac_ext <<_ACEOF
4774 /* end confdefs.h. */
4775 #include <sys/types.h>
4776 /* Check that off_t can represent 2**63 - 1 correctly.
4777 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4778 since some C++ compilers masquerading as C compilers
4779 incorrectly reject 9223372036854775807. */
4780 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4781 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4782 && LARGE_OFF_T % 2147483647 == 1)
4783 ? 1 : -1];
4785 main ()
4789 return 0;
4791 _ACEOF
4792 rm -f conftest.$ac_objext
4793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4794 (eval $ac_compile) 2>conftest.er1
4795 ac_status=$?
4796 grep -v '^ *+' conftest.er1 >conftest.err
4797 rm -f conftest.er1
4798 cat conftest.err >&5
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); } &&
4801 { ac_try='test -z "$ac_c_werror_flag"
4802 || test ! -s conftest.err'
4803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4804 (eval $ac_try) 2>&5
4805 ac_status=$?
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); }; } &&
4808 { ac_try='test -s conftest.$ac_objext'
4809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4810 (eval $ac_try) 2>&5
4811 ac_status=$?
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); }; }; then
4814 break
4815 else
4816 echo "$as_me: failed program was:" >&5
4817 sed 's/^/| /' conftest.$ac_ext >&5
4820 rm -f conftest.err conftest.$ac_objext
4821 CC="$CC -n32"
4822 rm -f conftest.$ac_objext
4823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4824 (eval $ac_compile) 2>conftest.er1
4825 ac_status=$?
4826 grep -v '^ *+' conftest.er1 >conftest.err
4827 rm -f conftest.er1
4828 cat conftest.err >&5
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); } &&
4831 { ac_try='test -z "$ac_c_werror_flag"
4832 || test ! -s conftest.err'
4833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4834 (eval $ac_try) 2>&5
4835 ac_status=$?
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); }; } &&
4838 { ac_try='test -s conftest.$ac_objext'
4839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4840 (eval $ac_try) 2>&5
4841 ac_status=$?
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); }; }; then
4844 ac_cv_sys_largefile_CC=' -n32'; break
4845 else
4846 echo "$as_me: failed program was:" >&5
4847 sed 's/^/| /' conftest.$ac_ext >&5
4850 rm -f conftest.err conftest.$ac_objext
4851 break
4852 done
4853 CC=$ac_save_CC
4854 rm -f conftest.$ac_ext
4857 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4858 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4859 if test "$ac_cv_sys_largefile_CC" != no; then
4860 CC=$CC$ac_cv_sys_largefile_CC
4863 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4864 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4865 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4866 echo $ECHO_N "(cached) $ECHO_C" >&6
4867 else
4868 while :; do
4869 ac_cv_sys_file_offset_bits=no
4870 cat >conftest.$ac_ext <<_ACEOF
4871 /* confdefs.h. */
4872 _ACEOF
4873 cat confdefs.h >>conftest.$ac_ext
4874 cat >>conftest.$ac_ext <<_ACEOF
4875 /* end confdefs.h. */
4876 #include <sys/types.h>
4877 /* Check that off_t can represent 2**63 - 1 correctly.
4878 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4879 since some C++ compilers masquerading as C compilers
4880 incorrectly reject 9223372036854775807. */
4881 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4882 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4883 && LARGE_OFF_T % 2147483647 == 1)
4884 ? 1 : -1];
4886 main ()
4890 return 0;
4892 _ACEOF
4893 rm -f conftest.$ac_objext
4894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4895 (eval $ac_compile) 2>conftest.er1
4896 ac_status=$?
4897 grep -v '^ *+' conftest.er1 >conftest.err
4898 rm -f conftest.er1
4899 cat conftest.err >&5
4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901 (exit $ac_status); } &&
4902 { ac_try='test -z "$ac_c_werror_flag"
4903 || test ! -s conftest.err'
4904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4905 (eval $ac_try) 2>&5
4906 ac_status=$?
4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908 (exit $ac_status); }; } &&
4909 { ac_try='test -s conftest.$ac_objext'
4910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4911 (eval $ac_try) 2>&5
4912 ac_status=$?
4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); }; }; then
4915 break
4916 else
4917 echo "$as_me: failed program was:" >&5
4918 sed 's/^/| /' conftest.$ac_ext >&5
4921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4922 cat >conftest.$ac_ext <<_ACEOF
4923 /* confdefs.h. */
4924 _ACEOF
4925 cat confdefs.h >>conftest.$ac_ext
4926 cat >>conftest.$ac_ext <<_ACEOF
4927 /* end confdefs.h. */
4928 #define _FILE_OFFSET_BITS 64
4929 #include <sys/types.h>
4930 /* Check that off_t can represent 2**63 - 1 correctly.
4931 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4932 since some C++ compilers masquerading as C compilers
4933 incorrectly reject 9223372036854775807. */
4934 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4935 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4936 && LARGE_OFF_T % 2147483647 == 1)
4937 ? 1 : -1];
4939 main ()
4943 return 0;
4945 _ACEOF
4946 rm -f conftest.$ac_objext
4947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4948 (eval $ac_compile) 2>conftest.er1
4949 ac_status=$?
4950 grep -v '^ *+' conftest.er1 >conftest.err
4951 rm -f conftest.er1
4952 cat conftest.err >&5
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); } &&
4955 { ac_try='test -z "$ac_c_werror_flag"
4956 || test ! -s conftest.err'
4957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4958 (eval $ac_try) 2>&5
4959 ac_status=$?
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); }; } &&
4962 { ac_try='test -s conftest.$ac_objext'
4963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4964 (eval $ac_try) 2>&5
4965 ac_status=$?
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); }; }; then
4968 ac_cv_sys_file_offset_bits=64; break
4969 else
4970 echo "$as_me: failed program was:" >&5
4971 sed 's/^/| /' conftest.$ac_ext >&5
4974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4975 break
4976 done
4978 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4979 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4980 if test "$ac_cv_sys_file_offset_bits" != no; then
4982 cat >>confdefs.h <<_ACEOF
4983 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4984 _ACEOF
4987 rm -f conftest*
4988 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4989 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4990 if test "${ac_cv_sys_large_files+set}" = set; then
4991 echo $ECHO_N "(cached) $ECHO_C" >&6
4992 else
4993 while :; do
4994 ac_cv_sys_large_files=no
4995 cat >conftest.$ac_ext <<_ACEOF
4996 /* confdefs.h. */
4997 _ACEOF
4998 cat confdefs.h >>conftest.$ac_ext
4999 cat >>conftest.$ac_ext <<_ACEOF
5000 /* end confdefs.h. */
5001 #include <sys/types.h>
5002 /* Check that off_t can represent 2**63 - 1 correctly.
5003 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5004 since some C++ compilers masquerading as C compilers
5005 incorrectly reject 9223372036854775807. */
5006 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5007 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5008 && LARGE_OFF_T % 2147483647 == 1)
5009 ? 1 : -1];
5011 main ()
5015 return 0;
5017 _ACEOF
5018 rm -f conftest.$ac_objext
5019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5020 (eval $ac_compile) 2>conftest.er1
5021 ac_status=$?
5022 grep -v '^ *+' conftest.er1 >conftest.err
5023 rm -f conftest.er1
5024 cat conftest.err >&5
5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026 (exit $ac_status); } &&
5027 { ac_try='test -z "$ac_c_werror_flag"
5028 || test ! -s conftest.err'
5029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5030 (eval $ac_try) 2>&5
5031 ac_status=$?
5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033 (exit $ac_status); }; } &&
5034 { ac_try='test -s conftest.$ac_objext'
5035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5036 (eval $ac_try) 2>&5
5037 ac_status=$?
5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 (exit $ac_status); }; }; then
5040 break
5041 else
5042 echo "$as_me: failed program was:" >&5
5043 sed 's/^/| /' conftest.$ac_ext >&5
5046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5047 cat >conftest.$ac_ext <<_ACEOF
5048 /* confdefs.h. */
5049 _ACEOF
5050 cat confdefs.h >>conftest.$ac_ext
5051 cat >>conftest.$ac_ext <<_ACEOF
5052 /* end confdefs.h. */
5053 #define _LARGE_FILES 1
5054 #include <sys/types.h>
5055 /* Check that off_t can represent 2**63 - 1 correctly.
5056 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5057 since some C++ compilers masquerading as C compilers
5058 incorrectly reject 9223372036854775807. */
5059 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5060 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5061 && LARGE_OFF_T % 2147483647 == 1)
5062 ? 1 : -1];
5064 main ()
5068 return 0;
5070 _ACEOF
5071 rm -f conftest.$ac_objext
5072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5073 (eval $ac_compile) 2>conftest.er1
5074 ac_status=$?
5075 grep -v '^ *+' conftest.er1 >conftest.err
5076 rm -f conftest.er1
5077 cat conftest.err >&5
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); } &&
5080 { ac_try='test -z "$ac_c_werror_flag"
5081 || test ! -s conftest.err'
5082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5083 (eval $ac_try) 2>&5
5084 ac_status=$?
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); }; } &&
5087 { ac_try='test -s conftest.$ac_objext'
5088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5089 (eval $ac_try) 2>&5
5090 ac_status=$?
5091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092 (exit $ac_status); }; }; then
5093 ac_cv_sys_large_files=1; break
5094 else
5095 echo "$as_me: failed program was:" >&5
5096 sed 's/^/| /' conftest.$ac_ext >&5
5099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5100 break
5101 done
5103 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5104 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5105 if test "$ac_cv_sys_large_files" != no; then
5107 cat >>confdefs.h <<_ACEOF
5108 #define _LARGE_FILES $ac_cv_sys_large_files
5109 _ACEOF
5112 rm -f conftest*
5115 case `pwd` in
5116 *\ * | *\ *)
5117 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5118 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5119 esac
5123 macro_version='2.2.6'
5124 macro_revision='1.3012'
5138 ltmain="$ac_aux_dir/ltmain.sh"
5140 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5141 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5142 if test "${lt_cv_path_SED+set}" = set; then
5143 echo $ECHO_N "(cached) $ECHO_C" >&6
5144 else
5145 # Loop through the user's path and test for sed and gsed.
5146 # Then use that list of sed's as ones to test for truncation.
5147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5148 for as_dir in $PATH
5150 IFS=$as_save_IFS
5151 test -z "$as_dir" && as_dir=.
5152 for lt_ac_prog in sed gsed; do
5153 for ac_exec_ext in '' $ac_executable_extensions; do
5154 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5155 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5157 done
5158 done
5159 done
5160 IFS=$as_save_IFS
5161 lt_ac_max=0
5162 lt_ac_count=0
5163 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5164 # along with /bin/sed that truncates output.
5165 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5166 test ! -f $lt_ac_sed && continue
5167 cat /dev/null > conftest.in
5168 lt_ac_count=0
5169 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5170 # Check for GNU sed and select it if it is found.
5171 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5172 lt_cv_path_SED=$lt_ac_sed
5173 break
5175 while true; do
5176 cat conftest.in conftest.in >conftest.tmp
5177 mv conftest.tmp conftest.in
5178 cp conftest.in conftest.nl
5179 echo >>conftest.nl
5180 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5181 cmp -s conftest.out conftest.nl || break
5182 # 10000 chars as input seems more than enough
5183 test $lt_ac_count -gt 10 && break
5184 lt_ac_count=`expr $lt_ac_count + 1`
5185 if test $lt_ac_count -gt $lt_ac_max; then
5186 lt_ac_max=$lt_ac_count
5187 lt_cv_path_SED=$lt_ac_sed
5189 done
5190 done
5194 SED=$lt_cv_path_SED
5196 echo "$as_me:$LINENO: result: $SED" >&5
5197 echo "${ECHO_T}$SED" >&6
5199 test -z "$SED" && SED=sed
5200 Xsed="$SED -e 1s/^X//"
5212 echo "$as_me:$LINENO: checking for fgrep" >&5
5213 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5214 if test "${ac_cv_prog_fgrep+set}" = set; then
5215 echo $ECHO_N "(cached) $ECHO_C" >&6
5216 else
5217 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5218 then ac_cv_prog_fgrep='grep -F'
5219 else ac_cv_prog_fgrep='fgrep'
5222 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5223 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5224 FGREP=$ac_cv_prog_fgrep
5227 test -z "$GREP" && GREP=grep
5247 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5248 if test "${with_gnu_ld+set}" = set; then
5249 withval="$with_gnu_ld"
5250 test "$withval" = no || with_gnu_ld=yes
5251 else
5252 with_gnu_ld=no
5254 ac_prog=ld
5255 if test "$GCC" = yes; then
5256 # Check if gcc -print-prog-name=ld gives a path.
5257 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5258 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5259 case $host in
5260 *-*-mingw*)
5261 # gcc leaves a trailing carriage return which upsets mingw
5262 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5264 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5265 esac
5266 case $ac_prog in
5267 # Accept absolute paths.
5268 [\\/]* | ?:[\\/]*)
5269 re_direlt='/[^/][^/]*/\.\./'
5270 # Canonicalize the pathname of ld
5271 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5272 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5273 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5274 done
5275 test -z "$LD" && LD="$ac_prog"
5278 # If it fails, then pretend we aren't using GCC.
5279 ac_prog=ld
5282 # If it is relative, then search for the first ld in PATH.
5283 with_gnu_ld=unknown
5285 esac
5286 elif test "$with_gnu_ld" = yes; then
5287 echo "$as_me:$LINENO: checking for GNU ld" >&5
5288 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5289 else
5290 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5291 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5293 if test "${lt_cv_path_LD+set}" = set; then
5294 echo $ECHO_N "(cached) $ECHO_C" >&6
5295 else
5296 if test -z "$LD"; then
5297 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5298 for ac_dir in $PATH; do
5299 IFS="$lt_save_ifs"
5300 test -z "$ac_dir" && ac_dir=.
5301 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5302 lt_cv_path_LD="$ac_dir/$ac_prog"
5303 # Check to see if the program is GNU ld. I'd rather use --version,
5304 # but apparently some variants of GNU ld only accept -v.
5305 # Break only if it was the GNU/non-GNU ld that we prefer.
5306 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5307 *GNU* | *'with BFD'*)
5308 test "$with_gnu_ld" != no && break
5311 test "$with_gnu_ld" != yes && break
5313 esac
5315 done
5316 IFS="$lt_save_ifs"
5317 else
5318 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5322 LD="$lt_cv_path_LD"
5323 if test -n "$LD"; then
5324 echo "$as_me:$LINENO: result: $LD" >&5
5325 echo "${ECHO_T}$LD" >&6
5326 else
5327 echo "$as_me:$LINENO: result: no" >&5
5328 echo "${ECHO_T}no" >&6
5330 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5331 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5332 { (exit 1); exit 1; }; }
5333 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5334 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5335 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5336 echo $ECHO_N "(cached) $ECHO_C" >&6
5337 else
5338 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5339 case `$LD -v 2>&1 </dev/null` in
5340 *GNU* | *'with BFD'*)
5341 lt_cv_prog_gnu_ld=yes
5344 lt_cv_prog_gnu_ld=no
5346 esac
5348 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5349 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5350 with_gnu_ld=$lt_cv_prog_gnu_ld
5360 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5361 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
5362 if test "${lt_cv_path_NM+set}" = set; then
5363 echo $ECHO_N "(cached) $ECHO_C" >&6
5364 else
5365 if test -n "$NM"; then
5366 # Let the user override the test.
5367 lt_cv_path_NM="$NM"
5368 else
5369 lt_nm_to_check="${ac_tool_prefix}nm"
5370 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5371 lt_nm_to_check="$lt_nm_to_check nm"
5373 for lt_tmp_nm in $lt_nm_to_check; do
5374 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5375 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5376 IFS="$lt_save_ifs"
5377 test -z "$ac_dir" && ac_dir=.
5378 tmp_nm="$ac_dir/$lt_tmp_nm"
5379 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5380 # Check to see if the nm accepts a BSD-compat flag.
5381 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5382 # nm: unknown option "B" ignored
5383 # Tru64's nm complains that /dev/null is an invalid object file
5384 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5385 */dev/null* | *'Invalid file or object type'*)
5386 lt_cv_path_NM="$tmp_nm -B"
5387 break
5390 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5391 */dev/null*)
5392 lt_cv_path_NM="$tmp_nm -p"
5393 break
5396 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5397 continue # so that we can try to find one that supports BSD flags
5399 esac
5401 esac
5403 done
5404 IFS="$lt_save_ifs"
5405 done
5406 : ${lt_cv_path_NM=no}
5409 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5410 echo "${ECHO_T}$lt_cv_path_NM" >&6
5411 if test "$lt_cv_path_NM" != "no"; then
5412 NM="$lt_cv_path_NM"
5413 else
5414 # Didn't find any BSD compatible name lister, look for dumpbin.
5415 if test -n "$ac_tool_prefix"; then
5416 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5418 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5419 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5420 echo "$as_me:$LINENO: checking for $ac_word" >&5
5421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5422 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5423 echo $ECHO_N "(cached) $ECHO_C" >&6
5424 else
5425 if test -n "$DUMPBIN"; then
5426 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5427 else
5428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5429 for as_dir in $PATH
5431 IFS=$as_save_IFS
5432 test -z "$as_dir" && as_dir=.
5433 for ac_exec_ext in '' $ac_executable_extensions; do
5434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5435 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5437 break 2
5439 done
5440 done
5444 DUMPBIN=$ac_cv_prog_DUMPBIN
5445 if test -n "$DUMPBIN"; then
5446 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5447 echo "${ECHO_T}$DUMPBIN" >&6
5448 else
5449 echo "$as_me:$LINENO: result: no" >&5
5450 echo "${ECHO_T}no" >&6
5453 test -n "$DUMPBIN" && break
5454 done
5456 if test -z "$DUMPBIN"; then
5457 ac_ct_DUMPBIN=$DUMPBIN
5458 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5460 # Extract the first word of "$ac_prog", so it can be a program name with args.
5461 set dummy $ac_prog; ac_word=$2
5462 echo "$as_me:$LINENO: checking for $ac_word" >&5
5463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5464 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5465 echo $ECHO_N "(cached) $ECHO_C" >&6
5466 else
5467 if test -n "$ac_ct_DUMPBIN"; then
5468 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5469 else
5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471 for as_dir in $PATH
5473 IFS=$as_save_IFS
5474 test -z "$as_dir" && as_dir=.
5475 for ac_exec_ext in '' $ac_executable_extensions; do
5476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5477 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5479 break 2
5481 done
5482 done
5486 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5487 if test -n "$ac_ct_DUMPBIN"; then
5488 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5489 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5490 else
5491 echo "$as_me:$LINENO: result: no" >&5
5492 echo "${ECHO_T}no" >&6
5495 test -n "$ac_ct_DUMPBIN" && break
5496 done
5497 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
5499 DUMPBIN=$ac_ct_DUMPBIN
5503 if test "$DUMPBIN" != ":"; then
5504 NM="$DUMPBIN"
5507 test -z "$NM" && NM=nm
5514 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5515 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5516 if test "${lt_cv_nm_interface+set}" = set; then
5517 echo $ECHO_N "(cached) $ECHO_C" >&6
5518 else
5519 lt_cv_nm_interface="BSD nm"
5520 echo "int some_variable = 0;" > conftest.$ac_ext
5521 (eval echo "\"\$as_me:5521: $ac_compile\"" >&5)
5522 (eval "$ac_compile" 2>conftest.err)
5523 cat conftest.err >&5
5524 (eval echo "\"\$as_me:5524: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5525 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5526 cat conftest.err >&5
5527 (eval echo "\"\$as_me:5527: output\"" >&5)
5528 cat conftest.out >&5
5529 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5530 lt_cv_nm_interface="MS dumpbin"
5532 rm -f conftest*
5534 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5535 echo "${ECHO_T}$lt_cv_nm_interface" >&6
5537 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5538 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5539 LN_S=$as_ln_s
5540 if test "$LN_S" = "ln -s"; then
5541 echo "$as_me:$LINENO: result: yes" >&5
5542 echo "${ECHO_T}yes" >&6
5543 else
5544 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5545 echo "${ECHO_T}no, using $LN_S" >&6
5548 # find the maximum length of command line arguments
5549 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5550 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5551 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5552 echo $ECHO_N "(cached) $ECHO_C" >&6
5553 else
5555 teststring="ABCD"
5557 case $build_os in
5558 msdosdjgpp*)
5559 # On DJGPP, this test can blow up pretty badly due to problems in libc
5560 # (any single argument exceeding 2000 bytes causes a buffer overrun
5561 # during glob expansion). Even if it were fixed, the result of this
5562 # check would be larger than it should be.
5563 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5566 gnu*)
5567 # Under GNU Hurd, this test is not required because there is
5568 # no limit to the length of command line arguments.
5569 # Libtool will interpret -1 as no limit whatsoever
5570 lt_cv_sys_max_cmd_len=-1;
5573 cygwin* | mingw* | cegcc*)
5574 # On Win9x/ME, this test blows up -- it succeeds, but takes
5575 # about 5 minutes as the teststring grows exponentially.
5576 # Worse, since 9x/ME are not pre-emptively multitasking,
5577 # you end up with a "frozen" computer, even though with patience
5578 # the test eventually succeeds (with a max line length of 256k).
5579 # Instead, let's just punt: use the minimum linelength reported by
5580 # all of the supported platforms: 8192 (on NT/2K/XP).
5581 lt_cv_sys_max_cmd_len=8192;
5584 amigaos*)
5585 # On AmigaOS with pdksh, this test takes hours, literally.
5586 # So we just punt and use a minimum line length of 8192.
5587 lt_cv_sys_max_cmd_len=8192;
5590 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5591 # This has been around since 386BSD, at least. Likely further.
5592 if test -x /sbin/sysctl; then
5593 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5594 elif test -x /usr/sbin/sysctl; then
5595 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5596 else
5597 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5599 # And add a safety zone
5600 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5601 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5604 interix*)
5605 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5606 lt_cv_sys_max_cmd_len=196608
5609 osf*)
5610 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5611 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5612 # nice to cause kernel panics so lets avoid the loop below.
5613 # First set a reasonable default.
5614 lt_cv_sys_max_cmd_len=16384
5616 if test -x /sbin/sysconfig; then
5617 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5618 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5619 esac
5622 sco3.2v5*)
5623 lt_cv_sys_max_cmd_len=102400
5625 sysv5* | sco5v6* | sysv4.2uw2*)
5626 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5627 if test -n "$kargmax"; then
5628 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5629 else
5630 lt_cv_sys_max_cmd_len=32768
5634 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5635 if test -n "$lt_cv_sys_max_cmd_len"; then
5636 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5637 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5638 else
5639 # Make teststring a little bigger before we do anything with it.
5640 # a 1K string should be a reasonable start.
5641 for i in 1 2 3 4 5 6 7 8 ; do
5642 teststring=$teststring$teststring
5643 done
5644 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5645 # If test is not a shell built-in, we'll probably end up computing a
5646 # maximum length that is only half of the actual maximum length, but
5647 # we can't tell.
5648 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5649 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5650 test $i != 17 # 1/2 MB should be enough
5652 i=`expr $i + 1`
5653 teststring=$teststring$teststring
5654 done
5655 # Only check the string length outside the loop.
5656 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5657 teststring=
5658 # Add a significant safety factor because C++ compilers can tack on
5659 # massive amounts of additional arguments before passing them to the
5660 # linker. It appears as though 1/2 is a usable value.
5661 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5664 esac
5668 if test -n $lt_cv_sys_max_cmd_len ; then
5669 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5670 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5671 else
5672 echo "$as_me:$LINENO: result: none" >&5
5673 echo "${ECHO_T}none" >&6
5675 max_cmd_len=$lt_cv_sys_max_cmd_len
5682 : ${CP="cp -f"}
5683 : ${MV="mv -f"}
5684 : ${RM="rm -f"}
5686 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5687 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
5688 # Try some XSI features
5689 xsi_shell=no
5690 ( _lt_dummy="a/b/c"
5691 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5692 = c,a/b,, \
5693 && eval 'test $(( 1 + 1 )) -eq 2 \
5694 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5695 && xsi_shell=yes
5696 echo "$as_me:$LINENO: result: $xsi_shell" >&5
5697 echo "${ECHO_T}$xsi_shell" >&6
5700 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5701 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
5702 lt_shell_append=no
5703 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5704 >/dev/null 2>&1 \
5705 && lt_shell_append=yes
5706 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5707 echo "${ECHO_T}$lt_shell_append" >&6
5710 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5711 lt_unset=unset
5712 else
5713 lt_unset=false
5720 # test EBCDIC or ASCII
5721 case `echo X|tr X '\101'` in
5722 A) # ASCII based system
5723 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5724 lt_SP2NL='tr \040 \012'
5725 lt_NL2SP='tr \015\012 \040\040'
5727 *) # EBCDIC based system
5728 lt_SP2NL='tr \100 \n'
5729 lt_NL2SP='tr \r\n \100\100'
5731 esac
5741 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5742 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5743 if test "${lt_cv_ld_reload_flag+set}" = set; then
5744 echo $ECHO_N "(cached) $ECHO_C" >&6
5745 else
5746 lt_cv_ld_reload_flag='-r'
5748 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5749 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5750 reload_flag=$lt_cv_ld_reload_flag
5751 case $reload_flag in
5752 "" | " "*) ;;
5753 *) reload_flag=" $reload_flag" ;;
5754 esac
5755 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5756 case $host_os in
5757 darwin*)
5758 if test "$GCC" = yes; then
5759 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5760 else
5761 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5764 esac
5774 if test -n "$ac_tool_prefix"; then
5775 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5776 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5777 echo "$as_me:$LINENO: checking for $ac_word" >&5
5778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5779 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5780 echo $ECHO_N "(cached) $ECHO_C" >&6
5781 else
5782 if test -n "$OBJDUMP"; then
5783 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5784 else
5785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5786 for as_dir in $PATH
5788 IFS=$as_save_IFS
5789 test -z "$as_dir" && as_dir=.
5790 for ac_exec_ext in '' $ac_executable_extensions; do
5791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5792 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5794 break 2
5796 done
5797 done
5801 OBJDUMP=$ac_cv_prog_OBJDUMP
5802 if test -n "$OBJDUMP"; then
5803 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5804 echo "${ECHO_T}$OBJDUMP" >&6
5805 else
5806 echo "$as_me:$LINENO: result: no" >&5
5807 echo "${ECHO_T}no" >&6
5811 if test -z "$ac_cv_prog_OBJDUMP"; then
5812 ac_ct_OBJDUMP=$OBJDUMP
5813 # Extract the first word of "objdump", so it can be a program name with args.
5814 set dummy objdump; ac_word=$2
5815 echo "$as_me:$LINENO: checking for $ac_word" >&5
5816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5817 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5818 echo $ECHO_N "(cached) $ECHO_C" >&6
5819 else
5820 if test -n "$ac_ct_OBJDUMP"; then
5821 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5822 else
5823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5824 for as_dir in $PATH
5826 IFS=$as_save_IFS
5827 test -z "$as_dir" && as_dir=.
5828 for ac_exec_ext in '' $ac_executable_extensions; do
5829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5830 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5832 break 2
5834 done
5835 done
5837 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5840 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5841 if test -n "$ac_ct_OBJDUMP"; then
5842 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5843 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5844 else
5845 echo "$as_me:$LINENO: result: no" >&5
5846 echo "${ECHO_T}no" >&6
5849 OBJDUMP=$ac_ct_OBJDUMP
5850 else
5851 OBJDUMP="$ac_cv_prog_OBJDUMP"
5854 test -z "$OBJDUMP" && OBJDUMP=objdump
5864 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5865 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5866 if test "${lt_cv_deplibs_check_method+set}" = set; then
5867 echo $ECHO_N "(cached) $ECHO_C" >&6
5868 else
5869 lt_cv_file_magic_cmd='$MAGIC_CMD'
5870 lt_cv_file_magic_test_file=
5871 lt_cv_deplibs_check_method='unknown'
5872 # Need to set the preceding variable on all platforms that support
5873 # interlibrary dependencies.
5874 # 'none' -- dependencies not supported.
5875 # `unknown' -- same as none, but documents that we really don't know.
5876 # 'pass_all' -- all dependencies passed with no checks.
5877 # 'test_compile' -- check by making test program.
5878 # 'file_magic [[regex]]' -- check by looking for files in library path
5879 # which responds to the $file_magic_cmd with a given extended regex.
5880 # If you have `file' or equivalent on your system and you're not sure
5881 # whether `pass_all' will *always* work, you probably want this one.
5883 case $host_os in
5884 aix[4-9]*)
5885 lt_cv_deplibs_check_method=pass_all
5888 beos*)
5889 lt_cv_deplibs_check_method=pass_all
5892 bsdi[45]*)
5893 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5894 lt_cv_file_magic_cmd='/usr/bin/file -L'
5895 lt_cv_file_magic_test_file=/shlib/libc.so
5898 cygwin*)
5899 # func_win32_libid is a shell function defined in ltmain.sh
5900 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5901 lt_cv_file_magic_cmd='func_win32_libid'
5904 mingw* | pw32*)
5905 # Base MSYS/MinGW do not provide the 'file' command needed by
5906 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5907 # unless we find 'file', for example because we are cross-compiling.
5908 if ( file / ) >/dev/null 2>&1; then
5909 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5910 lt_cv_file_magic_cmd='func_win32_libid'
5911 else
5912 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5913 lt_cv_file_magic_cmd='$OBJDUMP -f'
5917 cegcc)
5918 # use the weaker test based on 'objdump'. See mingw*.
5919 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5920 lt_cv_file_magic_cmd='$OBJDUMP -f'
5923 darwin* | rhapsody*)
5924 lt_cv_deplibs_check_method=pass_all
5927 freebsd* | dragonfly*)
5928 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5929 case $host_cpu in
5930 i*86 )
5931 # Not sure whether the presence of OpenBSD here was a mistake.
5932 # Let's accept both of them until this is cleared up.
5933 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5934 lt_cv_file_magic_cmd=/usr/bin/file
5935 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5937 esac
5938 else
5939 lt_cv_deplibs_check_method=pass_all
5943 gnu*)
5944 lt_cv_deplibs_check_method=pass_all
5947 hpux10.20* | hpux11*)
5948 lt_cv_file_magic_cmd=/usr/bin/file
5949 case $host_cpu in
5950 ia64*)
5951 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5952 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5954 hppa*64*)
5955 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]'
5956 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5959 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5960 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5962 esac
5965 interix[3-9]*)
5966 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5967 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5970 irix5* | irix6* | nonstopux*)
5971 case $LD in
5972 *-32|*"-32 ") libmagic=32-bit;;
5973 *-n32|*"-n32 ") libmagic=N32;;
5974 *-64|*"-64 ") libmagic=64-bit;;
5975 *) libmagic=never-match;;
5976 esac
5977 lt_cv_deplibs_check_method=pass_all
5980 # This must be Linux ELF.
5981 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5982 lt_cv_deplibs_check_method=pass_all
5985 netbsd*)
5986 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5987 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5988 else
5989 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5993 newos6*)
5994 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5995 lt_cv_file_magic_cmd=/usr/bin/file
5996 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5999 *nto* | *qnx*)
6000 lt_cv_deplibs_check_method=pass_all
6003 openbsd*)
6004 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6005 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6006 else
6007 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6011 osf3* | osf4* | osf5*)
6012 lt_cv_deplibs_check_method=pass_all
6015 rdos*)
6016 lt_cv_deplibs_check_method=pass_all
6019 solaris*)
6020 lt_cv_deplibs_check_method=pass_all
6023 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6024 lt_cv_deplibs_check_method=pass_all
6027 sysv4 | sysv4.3*)
6028 case $host_vendor in
6029 motorola)
6030 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]'
6031 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6033 ncr)
6034 lt_cv_deplibs_check_method=pass_all
6036 sequent)
6037 lt_cv_file_magic_cmd='/bin/file'
6038 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6040 sni)
6041 lt_cv_file_magic_cmd='/bin/file'
6042 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6043 lt_cv_file_magic_test_file=/lib/libc.so
6045 siemens)
6046 lt_cv_deplibs_check_method=pass_all
6049 lt_cv_deplibs_check_method=pass_all
6051 esac
6054 tpf*)
6055 lt_cv_deplibs_check_method=pass_all
6057 esac
6060 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6061 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6062 file_magic_cmd=$lt_cv_file_magic_cmd
6063 deplibs_check_method=$lt_cv_deplibs_check_method
6064 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6077 if test -n "$ac_tool_prefix"; then
6078 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6079 set dummy ${ac_tool_prefix}ar; ac_word=$2
6080 echo "$as_me:$LINENO: checking for $ac_word" >&5
6081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6082 if test "${ac_cv_prog_AR+set}" = set; then
6083 echo $ECHO_N "(cached) $ECHO_C" >&6
6084 else
6085 if test -n "$AR"; then
6086 ac_cv_prog_AR="$AR" # Let the user override the test.
6087 else
6088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6089 for as_dir in $PATH
6091 IFS=$as_save_IFS
6092 test -z "$as_dir" && as_dir=.
6093 for ac_exec_ext in '' $ac_executable_extensions; do
6094 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6095 ac_cv_prog_AR="${ac_tool_prefix}ar"
6096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6097 break 2
6099 done
6100 done
6104 AR=$ac_cv_prog_AR
6105 if test -n "$AR"; then
6106 echo "$as_me:$LINENO: result: $AR" >&5
6107 echo "${ECHO_T}$AR" >&6
6108 else
6109 echo "$as_me:$LINENO: result: no" >&5
6110 echo "${ECHO_T}no" >&6
6114 if test -z "$ac_cv_prog_AR"; then
6115 ac_ct_AR=$AR
6116 # Extract the first word of "ar", so it can be a program name with args.
6117 set dummy ar; ac_word=$2
6118 echo "$as_me:$LINENO: checking for $ac_word" >&5
6119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6120 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6121 echo $ECHO_N "(cached) $ECHO_C" >&6
6122 else
6123 if test -n "$ac_ct_AR"; then
6124 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6125 else
6126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127 for as_dir in $PATH
6129 IFS=$as_save_IFS
6130 test -z "$as_dir" && as_dir=.
6131 for ac_exec_ext in '' $ac_executable_extensions; do
6132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6133 ac_cv_prog_ac_ct_AR="ar"
6134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6135 break 2
6137 done
6138 done
6140 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6143 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6144 if test -n "$ac_ct_AR"; then
6145 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6146 echo "${ECHO_T}$ac_ct_AR" >&6
6147 else
6148 echo "$as_me:$LINENO: result: no" >&5
6149 echo "${ECHO_T}no" >&6
6152 AR=$ac_ct_AR
6153 else
6154 AR="$ac_cv_prog_AR"
6157 test -z "$AR" && AR=ar
6158 test -z "$AR_FLAGS" && AR_FLAGS=cru
6170 if test -n "$ac_tool_prefix"; then
6171 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6172 set dummy ${ac_tool_prefix}strip; ac_word=$2
6173 echo "$as_me:$LINENO: checking for $ac_word" >&5
6174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6175 if test "${ac_cv_prog_STRIP+set}" = set; then
6176 echo $ECHO_N "(cached) $ECHO_C" >&6
6177 else
6178 if test -n "$STRIP"; then
6179 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6180 else
6181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6182 for as_dir in $PATH
6184 IFS=$as_save_IFS
6185 test -z "$as_dir" && as_dir=.
6186 for ac_exec_ext in '' $ac_executable_extensions; do
6187 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6188 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6190 break 2
6192 done
6193 done
6197 STRIP=$ac_cv_prog_STRIP
6198 if test -n "$STRIP"; then
6199 echo "$as_me:$LINENO: result: $STRIP" >&5
6200 echo "${ECHO_T}$STRIP" >&6
6201 else
6202 echo "$as_me:$LINENO: result: no" >&5
6203 echo "${ECHO_T}no" >&6
6207 if test -z "$ac_cv_prog_STRIP"; then
6208 ac_ct_STRIP=$STRIP
6209 # Extract the first word of "strip", so it can be a program name with args.
6210 set dummy strip; ac_word=$2
6211 echo "$as_me:$LINENO: checking for $ac_word" >&5
6212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6213 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6214 echo $ECHO_N "(cached) $ECHO_C" >&6
6215 else
6216 if test -n "$ac_ct_STRIP"; then
6217 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6218 else
6219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220 for as_dir in $PATH
6222 IFS=$as_save_IFS
6223 test -z "$as_dir" && as_dir=.
6224 for ac_exec_ext in '' $ac_executable_extensions; do
6225 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6226 ac_cv_prog_ac_ct_STRIP="strip"
6227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6228 break 2
6230 done
6231 done
6233 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6236 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6237 if test -n "$ac_ct_STRIP"; then
6238 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6239 echo "${ECHO_T}$ac_ct_STRIP" >&6
6240 else
6241 echo "$as_me:$LINENO: result: no" >&5
6242 echo "${ECHO_T}no" >&6
6245 STRIP=$ac_ct_STRIP
6246 else
6247 STRIP="$ac_cv_prog_STRIP"
6250 test -z "$STRIP" && STRIP=:
6257 if test -n "$ac_tool_prefix"; then
6258 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6259 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6260 echo "$as_me:$LINENO: checking for $ac_word" >&5
6261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6262 if test "${ac_cv_prog_RANLIB+set}" = set; then
6263 echo $ECHO_N "(cached) $ECHO_C" >&6
6264 else
6265 if test -n "$RANLIB"; then
6266 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6267 else
6268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6269 for as_dir in $PATH
6271 IFS=$as_save_IFS
6272 test -z "$as_dir" && as_dir=.
6273 for ac_exec_ext in '' $ac_executable_extensions; do
6274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6275 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6277 break 2
6279 done
6280 done
6284 RANLIB=$ac_cv_prog_RANLIB
6285 if test -n "$RANLIB"; then
6286 echo "$as_me:$LINENO: result: $RANLIB" >&5
6287 echo "${ECHO_T}$RANLIB" >&6
6288 else
6289 echo "$as_me:$LINENO: result: no" >&5
6290 echo "${ECHO_T}no" >&6
6294 if test -z "$ac_cv_prog_RANLIB"; then
6295 ac_ct_RANLIB=$RANLIB
6296 # Extract the first word of "ranlib", so it can be a program name with args.
6297 set dummy ranlib; ac_word=$2
6298 echo "$as_me:$LINENO: checking for $ac_word" >&5
6299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6300 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6301 echo $ECHO_N "(cached) $ECHO_C" >&6
6302 else
6303 if test -n "$ac_ct_RANLIB"; then
6304 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6305 else
6306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6307 for as_dir in $PATH
6309 IFS=$as_save_IFS
6310 test -z "$as_dir" && as_dir=.
6311 for ac_exec_ext in '' $ac_executable_extensions; do
6312 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6313 ac_cv_prog_ac_ct_RANLIB="ranlib"
6314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6315 break 2
6317 done
6318 done
6320 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6323 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6324 if test -n "$ac_ct_RANLIB"; then
6325 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6326 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6327 else
6328 echo "$as_me:$LINENO: result: no" >&5
6329 echo "${ECHO_T}no" >&6
6332 RANLIB=$ac_ct_RANLIB
6333 else
6334 RANLIB="$ac_cv_prog_RANLIB"
6337 test -z "$RANLIB" && RANLIB=:
6344 # Determine commands to create old-style static archives.
6345 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6346 old_postinstall_cmds='chmod 644 $oldlib'
6347 old_postuninstall_cmds=
6349 if test -n "$RANLIB"; then
6350 case $host_os in
6351 openbsd*)
6352 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6355 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6357 esac
6358 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6394 # If no C compiler was specified, use CC.
6395 LTCC=${LTCC-"$CC"}
6397 # If no C compiler flags were specified, use CFLAGS.
6398 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6400 # Allow CC to be a program name with arguments.
6401 compiler=$CC
6404 # Check for command to grab the raw symbol name followed by C symbol from nm.
6405 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6406 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6407 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6408 echo $ECHO_N "(cached) $ECHO_C" >&6
6409 else
6411 # These are sane defaults that work on at least a few old systems.
6412 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6414 # Character class describing NM global symbol codes.
6415 symcode='[BCDEGRST]'
6417 # Regexp to match symbols that can be accessed directly from C.
6418 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6420 # Define system-specific variables.
6421 case $host_os in
6422 aix*)
6423 symcode='[BCDT]'
6425 cygwin* | mingw* | pw32* | cegcc*)
6426 symcode='[ABCDGISTW]'
6428 hpux*)
6429 if test "$host_cpu" = ia64; then
6430 symcode='[ABCDEGRST]'
6433 irix* | nonstopux*)
6434 symcode='[BCDEGRST]'
6436 osf*)
6437 symcode='[BCDEGQRST]'
6439 solaris*)
6440 symcode='[BDRT]'
6442 sco3.2v5*)
6443 symcode='[DT]'
6445 sysv4.2uw2*)
6446 symcode='[DT]'
6448 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6449 symcode='[ABDT]'
6451 sysv4)
6452 symcode='[DFNSTU]'
6454 esac
6456 # If we're using GNU nm, then use its standard symbol codes.
6457 case `$NM -V 2>&1` in
6458 *GNU* | *'with BFD'*)
6459 symcode='[ABCDGIRSTW]' ;;
6460 esac
6462 # Transform an extracted symbol line into a proper C declaration.
6463 # Some systems (esp. on ia64) link data and code symbols differently,
6464 # so use this general approach.
6465 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6467 # Transform an extracted symbol line into symbol name and symbol address
6468 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6469 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6471 # Handle CRLF in mingw tool chain
6472 opt_cr=
6473 case $build_os in
6474 mingw*)
6475 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6477 esac
6479 # Try without a prefix underscore, then with it.
6480 for ac_symprfx in "" "_"; do
6482 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6483 symxfrm="\\1 $ac_symprfx\\2 \\2"
6485 # Write the raw and C identifiers.
6486 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6487 # Fake it for dumpbin and say T for any non-static function
6488 # and D for any global variable.
6489 # Also find C++ and __fastcall symbols from MSVC++,
6490 # which start with @ or ?.
6491 lt_cv_sys_global_symbol_pipe="$AWK '"\
6492 " {last_section=section; section=\$ 3};"\
6493 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6494 " \$ 0!~/External *\|/{next};"\
6495 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6496 " {if(hide[section]) next};"\
6497 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6498 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6499 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6500 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6501 " ' prfx=^$ac_symprfx"
6502 else
6503 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6506 # Check to see that the pipe works correctly.
6507 pipe_works=no
6509 rm -f conftest*
6510 cat > conftest.$ac_ext <<_LT_EOF
6511 #ifdef __cplusplus
6512 extern "C" {
6513 #endif
6514 char nm_test_var;
6515 void nm_test_func(void);
6516 void nm_test_func(void){}
6517 #ifdef __cplusplus
6519 #endif
6520 int main(){nm_test_var='a';nm_test_func();return(0);}
6521 _LT_EOF
6523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6524 (eval $ac_compile) 2>&5
6525 ac_status=$?
6526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527 (exit $ac_status); }; then
6528 # Now try to grab the symbols.
6529 nlist=conftest.nm
6530 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6531 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6532 ac_status=$?
6533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534 (exit $ac_status); } && test -s "$nlist"; then
6535 # Try sorting and uniquifying the output.
6536 if sort "$nlist" | uniq > "$nlist"T; then
6537 mv -f "$nlist"T "$nlist"
6538 else
6539 rm -f "$nlist"T
6542 # Make sure that we snagged all the symbols we need.
6543 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6544 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6545 cat <<_LT_EOF > conftest.$ac_ext
6546 #ifdef __cplusplus
6547 extern "C" {
6548 #endif
6550 _LT_EOF
6551 # Now generate the symbol file.
6552 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6554 cat <<_LT_EOF >> conftest.$ac_ext
6556 /* The mapping between symbol names and symbols. */
6557 const struct {
6558 const char *name;
6559 void *address;
6561 lt__PROGRAM__LTX_preloaded_symbols[] =
6563 { "@PROGRAM@", (void *) 0 },
6564 _LT_EOF
6565 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6566 cat <<\_LT_EOF >> conftest.$ac_ext
6567 {0, (void *) 0}
6570 /* This works around a problem in FreeBSD linker */
6571 #ifdef FREEBSD_WORKAROUND
6572 static const void *lt_preloaded_setup() {
6573 return lt__PROGRAM__LTX_preloaded_symbols;
6575 #endif
6577 #ifdef __cplusplus
6579 #endif
6580 _LT_EOF
6581 # Now try linking the two files.
6582 mv conftest.$ac_objext conftstm.$ac_objext
6583 lt_save_LIBS="$LIBS"
6584 lt_save_CFLAGS="$CFLAGS"
6585 LIBS="conftstm.$ac_objext"
6586 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6588 (eval $ac_link) 2>&5
6589 ac_status=$?
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6592 pipe_works=yes
6594 LIBS="$lt_save_LIBS"
6595 CFLAGS="$lt_save_CFLAGS"
6596 else
6597 echo "cannot find nm_test_func in $nlist" >&5
6599 else
6600 echo "cannot find nm_test_var in $nlist" >&5
6602 else
6603 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6605 else
6606 echo "$progname: failed program was:" >&5
6607 cat conftest.$ac_ext >&5
6609 rm -rf conftest* conftst*
6611 # Do not use the global_symbol_pipe unless it works.
6612 if test "$pipe_works" = yes; then
6613 break
6614 else
6615 lt_cv_sys_global_symbol_pipe=
6617 done
6621 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6622 lt_cv_sys_global_symbol_to_cdecl=
6624 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6625 echo "$as_me:$LINENO: result: failed" >&5
6626 echo "${ECHO_T}failed" >&6
6627 else
6628 echo "$as_me:$LINENO: result: ok" >&5
6629 echo "${ECHO_T}ok" >&6
6653 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6654 if test "${enable_libtool_lock+set}" = set; then
6655 enableval="$enable_libtool_lock"
6658 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6660 # Some flags need to be propagated to the compiler or linker for good
6661 # libtool support.
6662 case $host in
6663 ia64-*-hpux*)
6664 # Find out which ABI we are using.
6665 echo 'int i;' > conftest.$ac_ext
6666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6667 (eval $ac_compile) 2>&5
6668 ac_status=$?
6669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670 (exit $ac_status); }; then
6671 case `/usr/bin/file conftest.$ac_objext` in
6672 *ELF-32*)
6673 HPUX_IA64_MODE="32"
6675 *ELF-64*)
6676 HPUX_IA64_MODE="64"
6678 esac
6680 rm -rf conftest*
6682 *-*-irix6*)
6683 # Find out which ABI we are using.
6684 echo '#line 6684 "configure"' > conftest.$ac_ext
6685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6686 (eval $ac_compile) 2>&5
6687 ac_status=$?
6688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689 (exit $ac_status); }; then
6690 if test "$lt_cv_prog_gnu_ld" = yes; then
6691 case `/usr/bin/file conftest.$ac_objext` in
6692 *32-bit*)
6693 LD="${LD-ld} -melf32bsmip"
6695 *N32*)
6696 LD="${LD-ld} -melf32bmipn32"
6698 *64-bit*)
6699 LD="${LD-ld} -melf64bmip"
6701 esac
6702 else
6703 case `/usr/bin/file conftest.$ac_objext` in
6704 *32-bit*)
6705 LD="${LD-ld} -32"
6707 *N32*)
6708 LD="${LD-ld} -n32"
6710 *64-bit*)
6711 LD="${LD-ld} -64"
6713 esac
6716 rm -rf conftest*
6719 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6720 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6721 # Find out which ABI we are using.
6722 echo 'int i;' > conftest.$ac_ext
6723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6724 (eval $ac_compile) 2>&5
6725 ac_status=$?
6726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727 (exit $ac_status); }; then
6728 case `/usr/bin/file conftest.o` in
6729 *32-bit*)
6730 case $host in
6731 x86_64-*kfreebsd*-gnu)
6732 LD="${LD-ld} -m elf_i386_fbsd"
6734 x86_64-*linux*)
6735 LD="${LD-ld} -m elf_i386"
6737 ppc64-*linux*|powerpc64-*linux*)
6738 LD="${LD-ld} -m elf32ppclinux"
6740 s390x-*linux*)
6741 LD="${LD-ld} -m elf_s390"
6743 sparc64-*linux*)
6744 LD="${LD-ld} -m elf32_sparc"
6746 esac
6748 *64-bit*)
6749 case $host in
6750 x86_64-*kfreebsd*-gnu)
6751 LD="${LD-ld} -m elf_x86_64_fbsd"
6753 x86_64-*linux*)
6754 LD="${LD-ld} -m elf_x86_64"
6756 ppc*-*linux*|powerpc*-*linux*)
6757 LD="${LD-ld} -m elf64ppc"
6759 s390*-*linux*|s390*-*tpf*)
6760 LD="${LD-ld} -m elf64_s390"
6762 sparc*-*linux*)
6763 LD="${LD-ld} -m elf64_sparc"
6765 esac
6767 esac
6769 rm -rf conftest*
6772 *-*-sco3.2v5*)
6773 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6774 SAVE_CFLAGS="$CFLAGS"
6775 CFLAGS="$CFLAGS -belf"
6776 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6777 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6778 if test "${lt_cv_cc_needs_belf+set}" = set; then
6779 echo $ECHO_N "(cached) $ECHO_C" >&6
6780 else
6781 ac_ext=c
6782 ac_cpp='$CPP $CPPFLAGS'
6783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6787 cat >conftest.$ac_ext <<_ACEOF
6788 /* confdefs.h. */
6789 _ACEOF
6790 cat confdefs.h >>conftest.$ac_ext
6791 cat >>conftest.$ac_ext <<_ACEOF
6792 /* end confdefs.h. */
6795 main ()
6799 return 0;
6801 _ACEOF
6802 rm -f conftest.$ac_objext conftest$ac_exeext
6803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6804 (eval $ac_link) 2>conftest.er1
6805 ac_status=$?
6806 grep -v '^ *+' conftest.er1 >conftest.err
6807 rm -f conftest.er1
6808 cat conftest.err >&5
6809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 (exit $ac_status); } &&
6811 { ac_try='test -z "$ac_c_werror_flag"
6812 || test ! -s conftest.err'
6813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6814 (eval $ac_try) 2>&5
6815 ac_status=$?
6816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817 (exit $ac_status); }; } &&
6818 { ac_try='test -s conftest$ac_exeext'
6819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6820 (eval $ac_try) 2>&5
6821 ac_status=$?
6822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 (exit $ac_status); }; }; then
6824 lt_cv_cc_needs_belf=yes
6825 else
6826 echo "$as_me: failed program was:" >&5
6827 sed 's/^/| /' conftest.$ac_ext >&5
6829 lt_cv_cc_needs_belf=no
6831 rm -f conftest.err conftest.$ac_objext \
6832 conftest$ac_exeext conftest.$ac_ext
6833 ac_ext=c
6834 ac_cpp='$CPP $CPPFLAGS'
6835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6840 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6841 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6842 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6843 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6844 CFLAGS="$SAVE_CFLAGS"
6847 sparc*-*solaris*)
6848 # Find out which ABI we are using.
6849 echo 'int i;' > conftest.$ac_ext
6850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6851 (eval $ac_compile) 2>&5
6852 ac_status=$?
6853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854 (exit $ac_status); }; then
6855 case `/usr/bin/file conftest.o` in
6856 *64-bit*)
6857 case $lt_cv_prog_gnu_ld in
6858 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6860 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6861 LD="${LD-ld} -64"
6864 esac
6866 esac
6868 rm -rf conftest*
6870 esac
6872 need_locks="$enable_libtool_lock"
6875 case $host_os in
6876 rhapsody* | darwin*)
6877 if test -n "$ac_tool_prefix"; then
6878 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6879 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6880 echo "$as_me:$LINENO: checking for $ac_word" >&5
6881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6882 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6883 echo $ECHO_N "(cached) $ECHO_C" >&6
6884 else
6885 if test -n "$DSYMUTIL"; then
6886 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6887 else
6888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6889 for as_dir in $PATH
6891 IFS=$as_save_IFS
6892 test -z "$as_dir" && as_dir=.
6893 for ac_exec_ext in '' $ac_executable_extensions; do
6894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6895 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6897 break 2
6899 done
6900 done
6904 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6905 if test -n "$DSYMUTIL"; then
6906 echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6907 echo "${ECHO_T}$DSYMUTIL" >&6
6908 else
6909 echo "$as_me:$LINENO: result: no" >&5
6910 echo "${ECHO_T}no" >&6
6914 if test -z "$ac_cv_prog_DSYMUTIL"; then
6915 ac_ct_DSYMUTIL=$DSYMUTIL
6916 # Extract the first word of "dsymutil", so it can be a program name with args.
6917 set dummy dsymutil; ac_word=$2
6918 echo "$as_me:$LINENO: checking for $ac_word" >&5
6919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6920 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6921 echo $ECHO_N "(cached) $ECHO_C" >&6
6922 else
6923 if test -n "$ac_ct_DSYMUTIL"; then
6924 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6925 else
6926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6927 for as_dir in $PATH
6929 IFS=$as_save_IFS
6930 test -z "$as_dir" && as_dir=.
6931 for ac_exec_ext in '' $ac_executable_extensions; do
6932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6933 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6935 break 2
6937 done
6938 done
6940 test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
6943 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6944 if test -n "$ac_ct_DSYMUTIL"; then
6945 echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6946 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
6947 else
6948 echo "$as_me:$LINENO: result: no" >&5
6949 echo "${ECHO_T}no" >&6
6952 DSYMUTIL=$ac_ct_DSYMUTIL
6953 else
6954 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6957 if test -n "$ac_tool_prefix"; then
6958 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6959 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6960 echo "$as_me:$LINENO: checking for $ac_word" >&5
6961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6962 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6963 echo $ECHO_N "(cached) $ECHO_C" >&6
6964 else
6965 if test -n "$NMEDIT"; then
6966 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6967 else
6968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6969 for as_dir in $PATH
6971 IFS=$as_save_IFS
6972 test -z "$as_dir" && as_dir=.
6973 for ac_exec_ext in '' $ac_executable_extensions; do
6974 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6975 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6977 break 2
6979 done
6980 done
6984 NMEDIT=$ac_cv_prog_NMEDIT
6985 if test -n "$NMEDIT"; then
6986 echo "$as_me:$LINENO: result: $NMEDIT" >&5
6987 echo "${ECHO_T}$NMEDIT" >&6
6988 else
6989 echo "$as_me:$LINENO: result: no" >&5
6990 echo "${ECHO_T}no" >&6
6994 if test -z "$ac_cv_prog_NMEDIT"; then
6995 ac_ct_NMEDIT=$NMEDIT
6996 # Extract the first word of "nmedit", so it can be a program name with args.
6997 set dummy nmedit; ac_word=$2
6998 echo "$as_me:$LINENO: checking for $ac_word" >&5
6999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7000 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7001 echo $ECHO_N "(cached) $ECHO_C" >&6
7002 else
7003 if test -n "$ac_ct_NMEDIT"; then
7004 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7005 else
7006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7007 for as_dir in $PATH
7009 IFS=$as_save_IFS
7010 test -z "$as_dir" && as_dir=.
7011 for ac_exec_ext in '' $ac_executable_extensions; do
7012 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7013 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7015 break 2
7017 done
7018 done
7020 test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
7023 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7024 if test -n "$ac_ct_NMEDIT"; then
7025 echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7026 echo "${ECHO_T}$ac_ct_NMEDIT" >&6
7027 else
7028 echo "$as_me:$LINENO: result: no" >&5
7029 echo "${ECHO_T}no" >&6
7032 NMEDIT=$ac_ct_NMEDIT
7033 else
7034 NMEDIT="$ac_cv_prog_NMEDIT"
7037 if test -n "$ac_tool_prefix"; then
7038 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7039 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7040 echo "$as_me:$LINENO: checking for $ac_word" >&5
7041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7042 if test "${ac_cv_prog_LIPO+set}" = set; then
7043 echo $ECHO_N "(cached) $ECHO_C" >&6
7044 else
7045 if test -n "$LIPO"; then
7046 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7047 else
7048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7049 for as_dir in $PATH
7051 IFS=$as_save_IFS
7052 test -z "$as_dir" && as_dir=.
7053 for ac_exec_ext in '' $ac_executable_extensions; do
7054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7055 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7057 break 2
7059 done
7060 done
7064 LIPO=$ac_cv_prog_LIPO
7065 if test -n "$LIPO"; then
7066 echo "$as_me:$LINENO: result: $LIPO" >&5
7067 echo "${ECHO_T}$LIPO" >&6
7068 else
7069 echo "$as_me:$LINENO: result: no" >&5
7070 echo "${ECHO_T}no" >&6
7074 if test -z "$ac_cv_prog_LIPO"; then
7075 ac_ct_LIPO=$LIPO
7076 # Extract the first word of "lipo", so it can be a program name with args.
7077 set dummy lipo; ac_word=$2
7078 echo "$as_me:$LINENO: checking for $ac_word" >&5
7079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7080 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7081 echo $ECHO_N "(cached) $ECHO_C" >&6
7082 else
7083 if test -n "$ac_ct_LIPO"; then
7084 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7085 else
7086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7087 for as_dir in $PATH
7089 IFS=$as_save_IFS
7090 test -z "$as_dir" && as_dir=.
7091 for ac_exec_ext in '' $ac_executable_extensions; do
7092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7093 ac_cv_prog_ac_ct_LIPO="lipo"
7094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7095 break 2
7097 done
7098 done
7100 test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
7103 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7104 if test -n "$ac_ct_LIPO"; then
7105 echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7106 echo "${ECHO_T}$ac_ct_LIPO" >&6
7107 else
7108 echo "$as_me:$LINENO: result: no" >&5
7109 echo "${ECHO_T}no" >&6
7112 LIPO=$ac_ct_LIPO
7113 else
7114 LIPO="$ac_cv_prog_LIPO"
7117 if test -n "$ac_tool_prefix"; then
7118 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7119 set dummy ${ac_tool_prefix}otool; ac_word=$2
7120 echo "$as_me:$LINENO: checking for $ac_word" >&5
7121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7122 if test "${ac_cv_prog_OTOOL+set}" = set; then
7123 echo $ECHO_N "(cached) $ECHO_C" >&6
7124 else
7125 if test -n "$OTOOL"; then
7126 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7127 else
7128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7129 for as_dir in $PATH
7131 IFS=$as_save_IFS
7132 test -z "$as_dir" && as_dir=.
7133 for ac_exec_ext in '' $ac_executable_extensions; do
7134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7135 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7137 break 2
7139 done
7140 done
7144 OTOOL=$ac_cv_prog_OTOOL
7145 if test -n "$OTOOL"; then
7146 echo "$as_me:$LINENO: result: $OTOOL" >&5
7147 echo "${ECHO_T}$OTOOL" >&6
7148 else
7149 echo "$as_me:$LINENO: result: no" >&5
7150 echo "${ECHO_T}no" >&6
7154 if test -z "$ac_cv_prog_OTOOL"; then
7155 ac_ct_OTOOL=$OTOOL
7156 # Extract the first word of "otool", so it can be a program name with args.
7157 set dummy otool; ac_word=$2
7158 echo "$as_me:$LINENO: checking for $ac_word" >&5
7159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7160 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7161 echo $ECHO_N "(cached) $ECHO_C" >&6
7162 else
7163 if test -n "$ac_ct_OTOOL"; then
7164 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7165 else
7166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7167 for as_dir in $PATH
7169 IFS=$as_save_IFS
7170 test -z "$as_dir" && as_dir=.
7171 for ac_exec_ext in '' $ac_executable_extensions; do
7172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7173 ac_cv_prog_ac_ct_OTOOL="otool"
7174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7175 break 2
7177 done
7178 done
7180 test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
7183 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7184 if test -n "$ac_ct_OTOOL"; then
7185 echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7186 echo "${ECHO_T}$ac_ct_OTOOL" >&6
7187 else
7188 echo "$as_me:$LINENO: result: no" >&5
7189 echo "${ECHO_T}no" >&6
7192 OTOOL=$ac_ct_OTOOL
7193 else
7194 OTOOL="$ac_cv_prog_OTOOL"
7197 if test -n "$ac_tool_prefix"; then
7198 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7199 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7200 echo "$as_me:$LINENO: checking for $ac_word" >&5
7201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7202 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7203 echo $ECHO_N "(cached) $ECHO_C" >&6
7204 else
7205 if test -n "$OTOOL64"; then
7206 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7207 else
7208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7209 for as_dir in $PATH
7211 IFS=$as_save_IFS
7212 test -z "$as_dir" && as_dir=.
7213 for ac_exec_ext in '' $ac_executable_extensions; do
7214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7215 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7217 break 2
7219 done
7220 done
7224 OTOOL64=$ac_cv_prog_OTOOL64
7225 if test -n "$OTOOL64"; then
7226 echo "$as_me:$LINENO: result: $OTOOL64" >&5
7227 echo "${ECHO_T}$OTOOL64" >&6
7228 else
7229 echo "$as_me:$LINENO: result: no" >&5
7230 echo "${ECHO_T}no" >&6
7234 if test -z "$ac_cv_prog_OTOOL64"; then
7235 ac_ct_OTOOL64=$OTOOL64
7236 # Extract the first word of "otool64", so it can be a program name with args.
7237 set dummy otool64; ac_word=$2
7238 echo "$as_me:$LINENO: checking for $ac_word" >&5
7239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7240 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7241 echo $ECHO_N "(cached) $ECHO_C" >&6
7242 else
7243 if test -n "$ac_ct_OTOOL64"; then
7244 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7245 else
7246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7247 for as_dir in $PATH
7249 IFS=$as_save_IFS
7250 test -z "$as_dir" && as_dir=.
7251 for ac_exec_ext in '' $ac_executable_extensions; do
7252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7253 ac_cv_prog_ac_ct_OTOOL64="otool64"
7254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7255 break 2
7257 done
7258 done
7260 test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
7263 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7264 if test -n "$ac_ct_OTOOL64"; then
7265 echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7266 echo "${ECHO_T}$ac_ct_OTOOL64" >&6
7267 else
7268 echo "$as_me:$LINENO: result: no" >&5
7269 echo "${ECHO_T}no" >&6
7272 OTOOL64=$ac_ct_OTOOL64
7273 else
7274 OTOOL64="$ac_cv_prog_OTOOL64"
7303 echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7304 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
7305 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7306 echo $ECHO_N "(cached) $ECHO_C" >&6
7307 else
7308 lt_cv_apple_cc_single_mod=no
7309 if test -z "${LT_MULTI_MODULE}"; then
7310 # By default we will add the -single_module flag. You can override
7311 # by either setting the environment variable LT_MULTI_MODULE
7312 # non-empty at configure time, or by adding -multi_module to the
7313 # link flags.
7314 rm -rf libconftest.dylib*
7315 echo "int foo(void){return 1;}" > conftest.c
7316 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7317 -dynamiclib -Wl,-single_module conftest.c" >&5
7318 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7319 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7320 _lt_result=$?
7321 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7322 lt_cv_apple_cc_single_mod=yes
7323 else
7324 cat conftest.err >&5
7326 rm -rf libconftest.dylib*
7327 rm -f conftest.*
7330 echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7331 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
7332 echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7333 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
7334 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7335 echo $ECHO_N "(cached) $ECHO_C" >&6
7336 else
7337 lt_cv_ld_exported_symbols_list=no
7338 save_LDFLAGS=$LDFLAGS
7339 echo "_main" > conftest.sym
7340 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7341 cat >conftest.$ac_ext <<_ACEOF
7342 /* confdefs.h. */
7343 _ACEOF
7344 cat confdefs.h >>conftest.$ac_ext
7345 cat >>conftest.$ac_ext <<_ACEOF
7346 /* end confdefs.h. */
7349 main ()
7353 return 0;
7355 _ACEOF
7356 rm -f conftest.$ac_objext conftest$ac_exeext
7357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7358 (eval $ac_link) 2>conftest.er1
7359 ac_status=$?
7360 grep -v '^ *+' conftest.er1 >conftest.err
7361 rm -f conftest.er1
7362 cat conftest.err >&5
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); } &&
7365 { ac_try='test -z "$ac_c_werror_flag"
7366 || test ! -s conftest.err'
7367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7368 (eval $ac_try) 2>&5
7369 ac_status=$?
7370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371 (exit $ac_status); }; } &&
7372 { ac_try='test -s conftest$ac_exeext'
7373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7374 (eval $ac_try) 2>&5
7375 ac_status=$?
7376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377 (exit $ac_status); }; }; then
7378 lt_cv_ld_exported_symbols_list=yes
7379 else
7380 echo "$as_me: failed program was:" >&5
7381 sed 's/^/| /' conftest.$ac_ext >&5
7383 lt_cv_ld_exported_symbols_list=no
7385 rm -f conftest.err conftest.$ac_objext \
7386 conftest$ac_exeext conftest.$ac_ext
7387 LDFLAGS="$save_LDFLAGS"
7390 echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7391 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
7392 case $host_os in
7393 rhapsody* | darwin1.[012])
7394 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7395 darwin1.*)
7396 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7397 darwin*) # darwin 5.x on
7398 # if running on 10.5 or later, the deployment target defaults
7399 # to the OS version, if on x86, and 10.4, the deployment
7400 # target defaults to 10.4. Don't you love it?
7401 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7402 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7403 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7404 10.[012]*)
7405 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7406 10.*)
7407 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7408 esac
7410 esac
7411 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7412 _lt_dar_single_mod='$single_module'
7414 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7415 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7416 else
7417 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7419 if test "$DSYMUTIL" != ":"; then
7420 _lt_dsymutil='~$DSYMUTIL $lib || :'
7421 else
7422 _lt_dsymutil=
7425 esac
7428 for ac_header in dlfcn.h
7430 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7431 echo "$as_me:$LINENO: checking for $ac_header" >&5
7432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7434 echo $ECHO_N "(cached) $ECHO_C" >&6
7435 else
7436 cat >conftest.$ac_ext <<_ACEOF
7437 /* confdefs.h. */
7438 _ACEOF
7439 cat confdefs.h >>conftest.$ac_ext
7440 cat >>conftest.$ac_ext <<_ACEOF
7441 /* end confdefs.h. */
7442 $ac_includes_default
7444 #include <$ac_header>
7445 _ACEOF
7446 rm -f conftest.$ac_objext
7447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7448 (eval $ac_compile) 2>conftest.er1
7449 ac_status=$?
7450 grep -v '^ *+' conftest.er1 >conftest.err
7451 rm -f conftest.er1
7452 cat conftest.err >&5
7453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454 (exit $ac_status); } &&
7455 { ac_try='test -z "$ac_c_werror_flag"
7456 || test ! -s conftest.err'
7457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7458 (eval $ac_try) 2>&5
7459 ac_status=$?
7460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461 (exit $ac_status); }; } &&
7462 { ac_try='test -s conftest.$ac_objext'
7463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7464 (eval $ac_try) 2>&5
7465 ac_status=$?
7466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467 (exit $ac_status); }; }; then
7468 eval "$as_ac_Header=yes"
7469 else
7470 echo "$as_me: failed program was:" >&5
7471 sed 's/^/| /' conftest.$ac_ext >&5
7473 eval "$as_ac_Header=no"
7475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7477 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7478 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7479 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7480 cat >>confdefs.h <<_ACEOF
7481 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7482 _ACEOF
7486 done
7490 # Set options
7494 enable_dlopen=no
7497 enable_win32_dll=no
7500 # Check whether --enable-shared or --disable-shared was given.
7501 if test "${enable_shared+set}" = set; then
7502 enableval="$enable_shared"
7503 p=${PACKAGE-default}
7504 case $enableval in
7505 yes) enable_shared=yes ;;
7506 no) enable_shared=no ;;
7508 enable_shared=no
7509 # Look at the argument we got. We use all the common list separators.
7510 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7511 for pkg in $enableval; do
7512 IFS="$lt_save_ifs"
7513 if test "X$pkg" = "X$p"; then
7514 enable_shared=yes
7516 done
7517 IFS="$lt_save_ifs"
7519 esac
7520 else
7521 enable_shared=yes
7531 # Check whether --enable-static or --disable-static was given.
7532 if test "${enable_static+set}" = set; then
7533 enableval="$enable_static"
7534 p=${PACKAGE-default}
7535 case $enableval in
7536 yes) enable_static=yes ;;
7537 no) enable_static=no ;;
7539 enable_static=no
7540 # Look at the argument we got. We use all the common list separators.
7541 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7542 for pkg in $enableval; do
7543 IFS="$lt_save_ifs"
7544 if test "X$pkg" = "X$p"; then
7545 enable_static=yes
7547 done
7548 IFS="$lt_save_ifs"
7550 esac
7551 else
7552 enable_static=yes
7563 # Check whether --with-pic or --without-pic was given.
7564 if test "${with_pic+set}" = set; then
7565 withval="$with_pic"
7566 pic_mode="$withval"
7567 else
7568 pic_mode=default
7571 test -z "$pic_mode" && pic_mode=default
7579 # Check whether --enable-fast-install or --disable-fast-install was given.
7580 if test "${enable_fast_install+set}" = set; then
7581 enableval="$enable_fast_install"
7582 p=${PACKAGE-default}
7583 case $enableval in
7584 yes) enable_fast_install=yes ;;
7585 no) enable_fast_install=no ;;
7587 enable_fast_install=no
7588 # Look at the argument we got. We use all the common list separators.
7589 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7590 for pkg in $enableval; do
7591 IFS="$lt_save_ifs"
7592 if test "X$pkg" = "X$p"; then
7593 enable_fast_install=yes
7595 done
7596 IFS="$lt_save_ifs"
7598 esac
7599 else
7600 enable_fast_install=yes
7612 # This can be used to rebuild libtool when needed
7613 LIBTOOL_DEPS="$ltmain"
7615 # Always use our own libtool.
7616 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7642 test -z "$LN_S" && LN_S="ln -s"
7657 if test -n "${ZSH_VERSION+set}" ; then
7658 setopt NO_GLOB_SUBST
7661 echo "$as_me:$LINENO: checking for objdir" >&5
7662 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7663 if test "${lt_cv_objdir+set}" = set; then
7664 echo $ECHO_N "(cached) $ECHO_C" >&6
7665 else
7666 rm -f .libs 2>/dev/null
7667 mkdir .libs 2>/dev/null
7668 if test -d .libs; then
7669 lt_cv_objdir=.libs
7670 else
7671 # MS-DOS does not allow filenames that begin with a dot.
7672 lt_cv_objdir=_libs
7674 rmdir .libs 2>/dev/null
7676 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7677 echo "${ECHO_T}$lt_cv_objdir" >&6
7678 objdir=$lt_cv_objdir
7684 cat >>confdefs.h <<_ACEOF
7685 #define LT_OBJDIR "$lt_cv_objdir/"
7686 _ACEOF
7704 case $host_os in
7705 aix3*)
7706 # AIX sometimes has problems with the GCC collect2 program. For some
7707 # reason, if we set the COLLECT_NAMES environment variable, the problems
7708 # vanish in a puff of smoke.
7709 if test "X${COLLECT_NAMES+set}" != Xset; then
7710 COLLECT_NAMES=
7711 export COLLECT_NAMES
7714 esac
7716 # Sed substitution that helps us do robust quoting. It backslashifies
7717 # metacharacters that are still active within double-quoted strings.
7718 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7720 # Same as above, but do not quote variable references.
7721 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7723 # Sed substitution to delay expansion of an escaped shell variable in a
7724 # double_quote_subst'ed string.
7725 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7727 # Sed substitution to delay expansion of an escaped single quote.
7728 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7730 # Sed substitution to avoid accidental globbing in evaled expressions
7731 no_glob_subst='s/\*/\\\*/g'
7733 # Global variables:
7734 ofile=libtool
7735 can_build_shared=yes
7737 # All known linkers require a `.a' archive for static linking (except MSVC,
7738 # which needs '.lib').
7739 libext=a
7741 with_gnu_ld="$lt_cv_prog_gnu_ld"
7743 old_CC="$CC"
7744 old_CFLAGS="$CFLAGS"
7746 # Set sane defaults for various variables
7747 test -z "$CC" && CC=cc
7748 test -z "$LTCC" && LTCC=$CC
7749 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7750 test -z "$LD" && LD=ld
7751 test -z "$ac_objext" && ac_objext=o
7753 for cc_temp in $compiler""; do
7754 case $cc_temp in
7755 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7756 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7757 \-*) ;;
7758 *) break;;
7759 esac
7760 done
7761 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7764 # Only perform the check for file, if the check method requires it
7765 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7766 case $deplibs_check_method in
7767 file_magic*)
7768 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7769 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7770 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7771 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7772 echo $ECHO_N "(cached) $ECHO_C" >&6
7773 else
7774 case $MAGIC_CMD in
7775 [\\/*] | ?:[\\/]*)
7776 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7779 lt_save_MAGIC_CMD="$MAGIC_CMD"
7780 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7781 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7782 for ac_dir in $ac_dummy; do
7783 IFS="$lt_save_ifs"
7784 test -z "$ac_dir" && ac_dir=.
7785 if test -f $ac_dir/${ac_tool_prefix}file; then
7786 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7787 if test -n "$file_magic_test_file"; then
7788 case $deplibs_check_method in
7789 "file_magic "*)
7790 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7791 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7792 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7793 $EGREP "$file_magic_regex" > /dev/null; then
7795 else
7796 cat <<_LT_EOF 1>&2
7798 *** Warning: the command libtool uses to detect shared libraries,
7799 *** $file_magic_cmd, produces output that libtool cannot recognize.
7800 *** The result is that libtool may fail to recognize shared libraries
7801 *** as such. This will affect the creation of libtool libraries that
7802 *** depend on shared libraries, but programs linked with such libtool
7803 *** libraries will work regardless of this problem. Nevertheless, you
7804 *** may want to report the problem to your system manager and/or to
7805 *** bug-libtool@gnu.org
7807 _LT_EOF
7808 fi ;;
7809 esac
7811 break
7813 done
7814 IFS="$lt_save_ifs"
7815 MAGIC_CMD="$lt_save_MAGIC_CMD"
7817 esac
7820 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7821 if test -n "$MAGIC_CMD"; then
7822 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7823 echo "${ECHO_T}$MAGIC_CMD" >&6
7824 else
7825 echo "$as_me:$LINENO: result: no" >&5
7826 echo "${ECHO_T}no" >&6
7833 if test -z "$lt_cv_path_MAGIC_CMD"; then
7834 if test -n "$ac_tool_prefix"; then
7835 echo "$as_me:$LINENO: checking for file" >&5
7836 echo $ECHO_N "checking for file... $ECHO_C" >&6
7837 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7838 echo $ECHO_N "(cached) $ECHO_C" >&6
7839 else
7840 case $MAGIC_CMD in
7841 [\\/*] | ?:[\\/]*)
7842 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7845 lt_save_MAGIC_CMD="$MAGIC_CMD"
7846 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7847 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7848 for ac_dir in $ac_dummy; do
7849 IFS="$lt_save_ifs"
7850 test -z "$ac_dir" && ac_dir=.
7851 if test -f $ac_dir/file; then
7852 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7853 if test -n "$file_magic_test_file"; then
7854 case $deplibs_check_method in
7855 "file_magic "*)
7856 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7857 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7858 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7859 $EGREP "$file_magic_regex" > /dev/null; then
7861 else
7862 cat <<_LT_EOF 1>&2
7864 *** Warning: the command libtool uses to detect shared libraries,
7865 *** $file_magic_cmd, produces output that libtool cannot recognize.
7866 *** The result is that libtool may fail to recognize shared libraries
7867 *** as such. This will affect the creation of libtool libraries that
7868 *** depend on shared libraries, but programs linked with such libtool
7869 *** libraries will work regardless of this problem. Nevertheless, you
7870 *** may want to report the problem to your system manager and/or to
7871 *** bug-libtool@gnu.org
7873 _LT_EOF
7874 fi ;;
7875 esac
7877 break
7879 done
7880 IFS="$lt_save_ifs"
7881 MAGIC_CMD="$lt_save_MAGIC_CMD"
7883 esac
7886 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7887 if test -n "$MAGIC_CMD"; then
7888 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7889 echo "${ECHO_T}$MAGIC_CMD" >&6
7890 else
7891 echo "$as_me:$LINENO: result: no" >&5
7892 echo "${ECHO_T}no" >&6
7896 else
7897 MAGIC_CMD=:
7903 esac
7905 # Use C for the default configuration in the libtool script
7907 lt_save_CC="$CC"
7908 ac_ext=c
7909 ac_cpp='$CPP $CPPFLAGS'
7910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7915 # Source file extension for C test sources.
7916 ac_ext=c
7918 # Object file extension for compiled C test sources.
7919 objext=o
7920 objext=$objext
7922 # Code to be used in simple compile tests
7923 lt_simple_compile_test_code="int some_variable = 0;"
7925 # Code to be used in simple link tests
7926 lt_simple_link_test_code='int main(){return(0);}'
7934 # If no C compiler was specified, use CC.
7935 LTCC=${LTCC-"$CC"}
7937 # If no C compiler flags were specified, use CFLAGS.
7938 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7940 # Allow CC to be a program name with arguments.
7941 compiler=$CC
7943 # Save the default compiler, since it gets overwritten when the other
7944 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7945 compiler_DEFAULT=$CC
7947 # save warnings/boilerplate of simple test code
7948 ac_outfile=conftest.$ac_objext
7949 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7950 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7951 _lt_compiler_boilerplate=`cat conftest.err`
7952 $RM conftest*
7954 ac_outfile=conftest.$ac_objext
7955 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7956 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7957 _lt_linker_boilerplate=`cat conftest.err`
7958 $RM -r conftest*
7961 ## CAVEAT EMPTOR:
7962 ## There is no encapsulation within the following macros, do not change
7963 ## the running order or otherwise move them around unless you know exactly
7964 ## what you are doing...
7965 if test -n "$compiler"; then
7967 lt_prog_compiler_no_builtin_flag=
7969 if test "$GCC" = yes; then
7970 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7972 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7973 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7974 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7975 echo $ECHO_N "(cached) $ECHO_C" >&6
7976 else
7977 lt_cv_prog_compiler_rtti_exceptions=no
7978 ac_outfile=conftest.$ac_objext
7979 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7980 lt_compiler_flag="-fno-rtti -fno-exceptions"
7981 # Insert the option either (1) after the last *FLAGS variable, or
7982 # (2) before a word containing "conftest.", or (3) at the end.
7983 # Note that $ac_compile itself does not contain backslashes and begins
7984 # with a dollar sign (not a hyphen), so the echo should work correctly.
7985 # The option is referenced via a variable to avoid confusing sed.
7986 lt_compile=`echo "$ac_compile" | $SED \
7987 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7988 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7989 -e 's:$: $lt_compiler_flag:'`
7990 (eval echo "\"\$as_me:7990: $lt_compile\"" >&5)
7991 (eval "$lt_compile" 2>conftest.err)
7992 ac_status=$?
7993 cat conftest.err >&5
7994 echo "$as_me:7994: \$? = $ac_status" >&5
7995 if (exit $ac_status) && test -s "$ac_outfile"; then
7996 # The compiler can only warn and ignore the option if not recognized
7997 # So say no if there are warnings other than the usual output.
7998 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7999 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8000 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8001 lt_cv_prog_compiler_rtti_exceptions=yes
8004 $RM conftest*
8007 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8008 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8010 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8011 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8012 else
8023 lt_prog_compiler_wl=
8024 lt_prog_compiler_pic=
8025 lt_prog_compiler_static=
8027 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8028 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8030 if test "$GCC" = yes; then
8031 lt_prog_compiler_wl='-Wl,'
8032 lt_prog_compiler_static='-static'
8034 case $host_os in
8035 aix*)
8036 # All AIX code is PIC.
8037 if test "$host_cpu" = ia64; then
8038 # AIX 5 now supports IA64 processor
8039 lt_prog_compiler_static='-Bstatic'
8043 amigaos*)
8044 case $host_cpu in
8045 powerpc)
8046 # see comment about AmigaOS4 .so support
8047 lt_prog_compiler_pic='-fPIC'
8049 m68k)
8050 # FIXME: we need at least 68020 code to build shared libraries, but
8051 # adding the `-m68020' flag to GCC prevents building anything better,
8052 # like `-m68040'.
8053 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8055 esac
8058 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8059 # PIC is the default for these OSes.
8062 mingw* | cygwin* | pw32* | os2* | cegcc*)
8063 # This hack is so that the source file can tell whether it is being
8064 # built for inclusion in a dll (and should export symbols for example).
8065 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8066 # (--disable-auto-import) libraries
8067 lt_prog_compiler_pic='-DDLL_EXPORT'
8070 darwin* | rhapsody*)
8071 # PIC is the default on this platform
8072 # Common symbols not allowed in MH_DYLIB files
8073 lt_prog_compiler_pic='-fno-common'
8076 hpux*)
8077 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8078 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8079 # sets the default TLS model and affects inlining.
8080 case $host_cpu in
8081 hppa*64*)
8082 # +Z the default
8085 lt_prog_compiler_pic='-fPIC'
8087 esac
8090 interix[3-9]*)
8091 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8092 # Instead, we relocate shared libraries at runtime.
8095 msdosdjgpp*)
8096 # Just because we use GCC doesn't mean we suddenly get shared libraries
8097 # on systems that don't support them.
8098 lt_prog_compiler_can_build_shared=no
8099 enable_shared=no
8102 *nto* | *qnx*)
8103 # QNX uses GNU C++, but need to define -shared option too, otherwise
8104 # it will coredump.
8105 lt_prog_compiler_pic='-fPIC -shared'
8108 sysv4*MP*)
8109 if test -d /usr/nec; then
8110 lt_prog_compiler_pic=-Kconform_pic
8115 lt_prog_compiler_pic='-fPIC'
8117 esac
8118 else
8119 # PORTME Check for flag to pass linker flags through the system compiler.
8120 case $host_os in
8121 aix*)
8122 lt_prog_compiler_wl='-Wl,'
8123 if test "$host_cpu" = ia64; then
8124 # AIX 5 now supports IA64 processor
8125 lt_prog_compiler_static='-Bstatic'
8126 else
8127 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8131 mingw* | cygwin* | pw32* | os2* | cegcc*)
8132 # This hack is so that the source file can tell whether it is being
8133 # built for inclusion in a dll (and should export symbols for example).
8134 lt_prog_compiler_pic='-DDLL_EXPORT'
8137 hpux9* | hpux10* | hpux11*)
8138 lt_prog_compiler_wl='-Wl,'
8139 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8140 # not for PA HP-UX.
8141 case $host_cpu in
8142 hppa*64*|ia64*)
8143 # +Z the default
8146 lt_prog_compiler_pic='+Z'
8148 esac
8149 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8150 lt_prog_compiler_static='${wl}-a ${wl}archive'
8153 irix5* | irix6* | nonstopux*)
8154 lt_prog_compiler_wl='-Wl,'
8155 # PIC (with -KPIC) is the default.
8156 lt_prog_compiler_static='-non_shared'
8159 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8160 case $cc_basename in
8161 # old Intel for x86_64 which still supported -KPIC.
8162 ecc*)
8163 lt_prog_compiler_wl='-Wl,'
8164 lt_prog_compiler_pic='-KPIC'
8165 lt_prog_compiler_static='-static'
8167 # icc used to be incompatible with GCC.
8168 # ICC 10 doesn't accept -KPIC any more.
8169 icc* | ifort*)
8170 lt_prog_compiler_wl='-Wl,'
8171 lt_prog_compiler_pic='-fPIC'
8172 lt_prog_compiler_static='-static'
8174 # Lahey Fortran 8.1.
8175 lf95*)
8176 lt_prog_compiler_wl='-Wl,'
8177 lt_prog_compiler_pic='--shared'
8178 lt_prog_compiler_static='--static'
8180 pgcc* | pgf77* | pgf90* | pgf95*)
8181 # Portland Group compilers (*not* the Pentium gcc compiler,
8182 # which looks to be a dead project)
8183 lt_prog_compiler_wl='-Wl,'
8184 lt_prog_compiler_pic='-fpic'
8185 lt_prog_compiler_static='-Bstatic'
8187 ccc*)
8188 lt_prog_compiler_wl='-Wl,'
8189 # All Alpha code is PIC.
8190 lt_prog_compiler_static='-non_shared'
8192 xl*)
8193 # IBM XL C 8.0/Fortran 10.1 on PPC
8194 lt_prog_compiler_wl='-Wl,'
8195 lt_prog_compiler_pic='-qpic'
8196 lt_prog_compiler_static='-qstaticlink'
8199 case `$CC -V 2>&1 | sed 5q` in
8200 *Sun\ C*)
8201 # Sun C 5.9
8202 lt_prog_compiler_pic='-KPIC'
8203 lt_prog_compiler_static='-Bstatic'
8204 lt_prog_compiler_wl='-Wl,'
8206 *Sun\ F*)
8207 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8208 lt_prog_compiler_pic='-KPIC'
8209 lt_prog_compiler_static='-Bstatic'
8210 lt_prog_compiler_wl=''
8212 esac
8214 esac
8217 newsos6)
8218 lt_prog_compiler_pic='-KPIC'
8219 lt_prog_compiler_static='-Bstatic'
8222 *nto* | *qnx*)
8223 # QNX uses GNU C++, but need to define -shared option too, otherwise
8224 # it will coredump.
8225 lt_prog_compiler_pic='-fPIC -shared'
8228 osf3* | osf4* | osf5*)
8229 lt_prog_compiler_wl='-Wl,'
8230 # All OSF/1 code is PIC.
8231 lt_prog_compiler_static='-non_shared'
8234 rdos*)
8235 lt_prog_compiler_static='-non_shared'
8238 solaris*)
8239 lt_prog_compiler_pic='-KPIC'
8240 lt_prog_compiler_static='-Bstatic'
8241 case $cc_basename in
8242 f77* | f90* | f95*)
8243 lt_prog_compiler_wl='-Qoption ld ';;
8245 lt_prog_compiler_wl='-Wl,';;
8246 esac
8249 sunos4*)
8250 lt_prog_compiler_wl='-Qoption ld '
8251 lt_prog_compiler_pic='-PIC'
8252 lt_prog_compiler_static='-Bstatic'
8255 sysv4 | sysv4.2uw2* | sysv4.3*)
8256 lt_prog_compiler_wl='-Wl,'
8257 lt_prog_compiler_pic='-KPIC'
8258 lt_prog_compiler_static='-Bstatic'
8261 sysv4*MP*)
8262 if test -d /usr/nec ;then
8263 lt_prog_compiler_pic='-Kconform_pic'
8264 lt_prog_compiler_static='-Bstatic'
8268 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8269 lt_prog_compiler_wl='-Wl,'
8270 lt_prog_compiler_pic='-KPIC'
8271 lt_prog_compiler_static='-Bstatic'
8274 unicos*)
8275 lt_prog_compiler_wl='-Wl,'
8276 lt_prog_compiler_can_build_shared=no
8279 uts4*)
8280 lt_prog_compiler_pic='-pic'
8281 lt_prog_compiler_static='-Bstatic'
8285 lt_prog_compiler_can_build_shared=no
8287 esac
8290 case $host_os in
8291 # For platforms which do not support PIC, -DPIC is meaningless:
8292 *djgpp*)
8293 lt_prog_compiler_pic=
8296 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8298 esac
8299 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8300 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8308 # Check to make sure the PIC flag actually works.
8310 if test -n "$lt_prog_compiler_pic"; then
8311 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8312 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8313 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8314 echo $ECHO_N "(cached) $ECHO_C" >&6
8315 else
8316 lt_cv_prog_compiler_pic_works=no
8317 ac_outfile=conftest.$ac_objext
8318 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8319 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8320 # Insert the option either (1) after the last *FLAGS variable, or
8321 # (2) before a word containing "conftest.", or (3) at the end.
8322 # Note that $ac_compile itself does not contain backslashes and begins
8323 # with a dollar sign (not a hyphen), so the echo should work correctly.
8324 # The option is referenced via a variable to avoid confusing sed.
8325 lt_compile=`echo "$ac_compile" | $SED \
8326 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8327 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8328 -e 's:$: $lt_compiler_flag:'`
8329 (eval echo "\"\$as_me:8329: $lt_compile\"" >&5)
8330 (eval "$lt_compile" 2>conftest.err)
8331 ac_status=$?
8332 cat conftest.err >&5
8333 echo "$as_me:8333: \$? = $ac_status" >&5
8334 if (exit $ac_status) && test -s "$ac_outfile"; then
8335 # The compiler can only warn and ignore the option if not recognized
8336 # So say no if there are warnings other than the usual output.
8337 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8338 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8339 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8340 lt_cv_prog_compiler_pic_works=yes
8343 $RM conftest*
8346 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8347 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
8349 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8350 case $lt_prog_compiler_pic in
8351 "" | " "*) ;;
8352 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8353 esac
8354 else
8355 lt_prog_compiler_pic=
8356 lt_prog_compiler_can_build_shared=no
8367 # Check to make sure the static flag actually works.
8369 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8370 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8371 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8372 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8373 echo $ECHO_N "(cached) $ECHO_C" >&6
8374 else
8375 lt_cv_prog_compiler_static_works=no
8376 save_LDFLAGS="$LDFLAGS"
8377 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8378 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8379 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8380 # The linker can only warn and ignore the option if not recognized
8381 # So say no if there are warnings
8382 if test -s conftest.err; then
8383 # Append any errors to the config.log.
8384 cat conftest.err 1>&5
8385 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8386 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8387 if diff conftest.exp conftest.er2 >/dev/null; then
8388 lt_cv_prog_compiler_static_works=yes
8390 else
8391 lt_cv_prog_compiler_static_works=yes
8394 $RM -r conftest*
8395 LDFLAGS="$save_LDFLAGS"
8398 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8399 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
8401 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8403 else
8404 lt_prog_compiler_static=
8413 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8414 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8415 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8416 echo $ECHO_N "(cached) $ECHO_C" >&6
8417 else
8418 lt_cv_prog_compiler_c_o=no
8419 $RM -r conftest 2>/dev/null
8420 mkdir conftest
8421 cd conftest
8422 mkdir out
8423 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8425 lt_compiler_flag="-o out/conftest2.$ac_objext"
8426 # Insert the option either (1) after the last *FLAGS variable, or
8427 # (2) before a word containing "conftest.", or (3) at the end.
8428 # Note that $ac_compile itself does not contain backslashes and begins
8429 # with a dollar sign (not a hyphen), so the echo should work correctly.
8430 lt_compile=`echo "$ac_compile" | $SED \
8431 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8432 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8433 -e 's:$: $lt_compiler_flag:'`
8434 (eval echo "\"\$as_me:8434: $lt_compile\"" >&5)
8435 (eval "$lt_compile" 2>out/conftest.err)
8436 ac_status=$?
8437 cat out/conftest.err >&5
8438 echo "$as_me:8438: \$? = $ac_status" >&5
8439 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8440 then
8441 # The compiler can only warn and ignore the option if not recognized
8442 # So say no if there are warnings
8443 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8444 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8445 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8446 lt_cv_prog_compiler_c_o=yes
8449 chmod u+w . 2>&5
8450 $RM conftest*
8451 # SGI C++ compiler will create directory out/ii_files/ for
8452 # template instantiation
8453 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8454 $RM out/* && rmdir out
8455 cd ..
8456 $RM -r conftest
8457 $RM conftest*
8460 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8461 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8468 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8469 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8470 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8471 echo $ECHO_N "(cached) $ECHO_C" >&6
8472 else
8473 lt_cv_prog_compiler_c_o=no
8474 $RM -r conftest 2>/dev/null
8475 mkdir conftest
8476 cd conftest
8477 mkdir out
8478 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8480 lt_compiler_flag="-o out/conftest2.$ac_objext"
8481 # Insert the option either (1) after the last *FLAGS variable, or
8482 # (2) before a word containing "conftest.", or (3) at the end.
8483 # Note that $ac_compile itself does not contain backslashes and begins
8484 # with a dollar sign (not a hyphen), so the echo should work correctly.
8485 lt_compile=`echo "$ac_compile" | $SED \
8486 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8487 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8488 -e 's:$: $lt_compiler_flag:'`
8489 (eval echo "\"\$as_me:8489: $lt_compile\"" >&5)
8490 (eval "$lt_compile" 2>out/conftest.err)
8491 ac_status=$?
8492 cat out/conftest.err >&5
8493 echo "$as_me:8493: \$? = $ac_status" >&5
8494 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8495 then
8496 # The compiler can only warn and ignore the option if not recognized
8497 # So say no if there are warnings
8498 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8499 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8500 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8501 lt_cv_prog_compiler_c_o=yes
8504 chmod u+w . 2>&5
8505 $RM conftest*
8506 # SGI C++ compiler will create directory out/ii_files/ for
8507 # template instantiation
8508 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8509 $RM out/* && rmdir out
8510 cd ..
8511 $RM -r conftest
8512 $RM conftest*
8515 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8516 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8521 hard_links="nottested"
8522 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8523 # do not overwrite the value of need_locks provided by the user
8524 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8525 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8526 hard_links=yes
8527 $RM conftest*
8528 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8529 touch conftest.a
8530 ln conftest.a conftest.b 2>&5 || hard_links=no
8531 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8532 echo "$as_me:$LINENO: result: $hard_links" >&5
8533 echo "${ECHO_T}$hard_links" >&6
8534 if test "$hard_links" = no; then
8535 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8536 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8537 need_locks=warn
8539 else
8540 need_locks=no
8548 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8549 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8551 runpath_var=
8552 allow_undefined_flag=
8553 always_export_symbols=no
8554 archive_cmds=
8555 archive_expsym_cmds=
8556 compiler_needs_object=no
8557 enable_shared_with_static_runtimes=no
8558 export_dynamic_flag_spec=
8559 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8560 hardcode_automatic=no
8561 hardcode_direct=no
8562 hardcode_direct_absolute=no
8563 hardcode_libdir_flag_spec=
8564 hardcode_libdir_flag_spec_ld=
8565 hardcode_libdir_separator=
8566 hardcode_minus_L=no
8567 hardcode_shlibpath_var=unsupported
8568 inherit_rpath=no
8569 link_all_deplibs=unknown
8570 module_cmds=
8571 module_expsym_cmds=
8572 old_archive_from_new_cmds=
8573 old_archive_from_expsyms_cmds=
8574 thread_safe_flag_spec=
8575 whole_archive_flag_spec=
8576 # include_expsyms should be a list of space-separated symbols to be *always*
8577 # included in the symbol list
8578 include_expsyms=
8579 # exclude_expsyms can be an extended regexp of symbols to exclude
8580 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8581 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8582 # as well as any symbol that contains `d'.
8583 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8584 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8585 # platforms (ab)use it in PIC code, but their linkers get confused if
8586 # the symbol is explicitly referenced. Since portable code cannot
8587 # rely on this symbol name, it's probably fine to never include it in
8588 # preloaded symbol tables.
8589 # Exclude shared library initialization/finalization symbols.
8590 extract_expsyms_cmds=
8592 case $host_os in
8593 cygwin* | mingw* | pw32* | cegcc*)
8594 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8595 # When not using gcc, we currently assume that we are using
8596 # Microsoft Visual C++.
8597 if test "$GCC" != yes; then
8598 with_gnu_ld=no
8601 interix*)
8602 # we just hope/assume this is gcc and not c89 (= MSVC++)
8603 with_gnu_ld=yes
8605 openbsd*)
8606 with_gnu_ld=no
8608 esac
8610 ld_shlibs=yes
8611 if test "$with_gnu_ld" = yes; then
8612 # If archive_cmds runs LD, not CC, wlarc should be empty
8613 wlarc='${wl}'
8615 # Set some defaults for GNU ld with shared library support. These
8616 # are reset later if shared libraries are not supported. Putting them
8617 # here allows them to be overridden if necessary.
8618 runpath_var=LD_RUN_PATH
8619 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8620 export_dynamic_flag_spec='${wl}--export-dynamic'
8621 # ancient GNU ld didn't support --whole-archive et. al.
8622 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8623 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8624 else
8625 whole_archive_flag_spec=
8627 supports_anon_versioning=no
8628 case `$LD -v 2>&1` in
8629 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8630 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8631 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8632 *\ 2.11.*) ;; # other 2.11 versions
8633 *) supports_anon_versioning=yes ;;
8634 esac
8636 # See if GNU ld supports shared libraries.
8637 case $host_os in
8638 aix[3-9]*)
8639 # On AIX/PPC, the GNU linker is very broken
8640 if test "$host_cpu" != ia64; then
8641 ld_shlibs=no
8642 cat <<_LT_EOF 1>&2
8644 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8645 *** to be unable to reliably create shared libraries on AIX.
8646 *** Therefore, libtool is disabling shared libraries support. If you
8647 *** really care for shared libraries, you may want to modify your PATH
8648 *** so that a non-GNU linker is found, and then restart.
8650 _LT_EOF
8654 amigaos*)
8655 case $host_cpu in
8656 powerpc)
8657 # see comment about AmigaOS4 .so support
8658 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8659 archive_expsym_cmds=''
8661 m68k)
8662 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)'
8663 hardcode_libdir_flag_spec='-L$libdir'
8664 hardcode_minus_L=yes
8666 esac
8669 beos*)
8670 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8671 allow_undefined_flag=unsupported
8672 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8673 # support --undefined. This deserves some investigation. FIXME
8674 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8675 else
8676 ld_shlibs=no
8680 cygwin* | mingw* | pw32* | cegcc*)
8681 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8682 # as there is no search path for DLLs.
8683 hardcode_libdir_flag_spec='-L$libdir'
8684 allow_undefined_flag=unsupported
8685 always_export_symbols=no
8686 enable_shared_with_static_runtimes=yes
8687 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8689 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8690 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8691 # If the export-symbols file already is a .def file (1st line
8692 # is EXPORTS), use it as is; otherwise, prepend...
8693 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8694 cp $export_symbols $output_objdir/$soname.def;
8695 else
8696 echo EXPORTS > $output_objdir/$soname.def;
8697 cat $export_symbols >> $output_objdir/$soname.def;
8699 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8700 else
8701 ld_shlibs=no
8705 interix[3-9]*)
8706 hardcode_direct=no
8707 hardcode_shlibpath_var=no
8708 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8709 export_dynamic_flag_spec='${wl}-E'
8710 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8711 # Instead, shared libraries are loaded at an image base (0x10000000 by
8712 # default) and relocated if they conflict, which is a slow very memory
8713 # consuming and fragmenting process. To avoid this, we pick a random,
8714 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8715 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8716 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8717 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'
8720 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8721 tmp_diet=no
8722 if test "$host_os" = linux-dietlibc; then
8723 case $cc_basename in
8724 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8725 esac
8727 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8728 && test "$tmp_diet" = no
8729 then
8730 tmp_addflag=
8731 tmp_sharedflag='-shared'
8732 case $cc_basename,$host_cpu in
8733 pgcc*) # Portland Group C compiler
8734 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'
8735 tmp_addflag=' $pic_flag'
8737 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8738 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'
8739 tmp_addflag=' $pic_flag -Mnomain' ;;
8740 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8741 tmp_addflag=' -i_dynamic' ;;
8742 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8743 tmp_addflag=' -i_dynamic -nofor_main' ;;
8744 ifc* | ifort*) # Intel Fortran compiler
8745 tmp_addflag=' -nofor_main' ;;
8746 lf95*) # Lahey Fortran 8.1
8747 whole_archive_flag_spec=
8748 tmp_sharedflag='--shared' ;;
8749 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8750 tmp_sharedflag='-qmkshrobj'
8751 tmp_addflag= ;;
8752 esac
8753 case `$CC -V 2>&1 | sed 5q` in
8754 *Sun\ C*) # Sun C 5.9
8755 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'
8756 compiler_needs_object=yes
8757 tmp_sharedflag='-G' ;;
8758 *Sun\ F*) # Sun Fortran 8.3
8759 tmp_sharedflag='-G' ;;
8760 esac
8761 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8763 if test "x$supports_anon_versioning" = xyes; then
8764 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8765 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8766 echo "local: *; };" >> $output_objdir/$libname.ver~
8767 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8770 case $cc_basename in
8771 xlf*)
8772 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8773 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8774 hardcode_libdir_flag_spec=
8775 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8776 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8777 if test "x$supports_anon_versioning" = xyes; then
8778 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8779 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8780 echo "local: *; };" >> $output_objdir/$libname.ver~
8781 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8784 esac
8785 else
8786 ld_shlibs=no
8790 netbsd*)
8791 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8792 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8793 wlarc=
8794 else
8795 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8796 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8800 solaris*)
8801 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8802 ld_shlibs=no
8803 cat <<_LT_EOF 1>&2
8805 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8806 *** create shared libraries on Solaris systems. Therefore, libtool
8807 *** is disabling shared libraries support. We urge you to upgrade GNU
8808 *** binutils to release 2.9.1 or newer. Another option is to modify
8809 *** your PATH or compiler configuration so that the native linker is
8810 *** used, and then restart.
8812 _LT_EOF
8813 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8814 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8815 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8816 else
8817 ld_shlibs=no
8821 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8822 case `$LD -v 2>&1` in
8823 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8824 ld_shlibs=no
8825 cat <<_LT_EOF 1>&2
8827 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8828 *** reliably create shared libraries on SCO systems. Therefore, libtool
8829 *** is disabling shared libraries support. We urge you to upgrade GNU
8830 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8831 *** your PATH or compiler configuration so that the native linker is
8832 *** used, and then restart.
8834 _LT_EOF
8837 # For security reasons, it is highly recommended that you always
8838 # use absolute paths for naming shared libraries, and exclude the
8839 # DT_RUNPATH tag from executables and libraries. But doing so
8840 # requires that you compile everything twice, which is a pain.
8841 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8842 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8843 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8844 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8845 else
8846 ld_shlibs=no
8849 esac
8852 sunos4*)
8853 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8854 wlarc=
8855 hardcode_direct=yes
8856 hardcode_shlibpath_var=no
8860 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8861 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8862 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8863 else
8864 ld_shlibs=no
8867 esac
8869 if test "$ld_shlibs" = no; then
8870 runpath_var=
8871 hardcode_libdir_flag_spec=
8872 export_dynamic_flag_spec=
8873 whole_archive_flag_spec=
8875 else
8876 # PORTME fill in a description of your system's linker (not GNU ld)
8877 case $host_os in
8878 aix3*)
8879 allow_undefined_flag=unsupported
8880 always_export_symbols=yes
8881 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'
8882 # Note: this linker hardcodes the directories in LIBPATH if there
8883 # are no directories specified by -L.
8884 hardcode_minus_L=yes
8885 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8886 # Neither direct hardcoding nor static linking is supported with a
8887 # broken collect2.
8888 hardcode_direct=unsupported
8892 aix[4-9]*)
8893 if test "$host_cpu" = ia64; then
8894 # On IA64, the linker does run time linking by default, so we don't
8895 # have to do anything special.
8896 aix_use_runtimelinking=no
8897 exp_sym_flag='-Bexport'
8898 no_entry_flag=""
8899 else
8900 # If we're using GNU nm, then we don't want the "-C" option.
8901 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8902 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8903 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'
8904 else
8905 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'
8907 aix_use_runtimelinking=no
8909 # Test if we are trying to use run time linking or normal
8910 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8911 # need to do runtime linking.
8912 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8913 for ld_flag in $LDFLAGS; do
8914 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8915 aix_use_runtimelinking=yes
8916 break
8918 done
8920 esac
8922 exp_sym_flag='-bexport'
8923 no_entry_flag='-bnoentry'
8926 # When large executables or shared objects are built, AIX ld can
8927 # have problems creating the table of contents. If linking a library
8928 # or program results in "error TOC overflow" add -mminimal-toc to
8929 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8930 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8932 archive_cmds=''
8933 hardcode_direct=yes
8934 hardcode_direct_absolute=yes
8935 hardcode_libdir_separator=':'
8936 link_all_deplibs=yes
8937 file_list_spec='${wl}-f,'
8939 if test "$GCC" = yes; then
8940 case $host_os in aix4.[012]|aix4.[012].*)
8941 # We only want to do this on AIX 4.2 and lower, the check
8942 # below for broken collect2 doesn't work under 4.3+
8943 collect2name=`${CC} -print-prog-name=collect2`
8944 if test -f "$collect2name" &&
8945 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8946 then
8947 # We have reworked collect2
8949 else
8950 # We have old collect2
8951 hardcode_direct=unsupported
8952 # It fails to find uninstalled libraries when the uninstalled
8953 # path is not listed in the libpath. Setting hardcode_minus_L
8954 # to unsupported forces relinking
8955 hardcode_minus_L=yes
8956 hardcode_libdir_flag_spec='-L$libdir'
8957 hardcode_libdir_separator=
8960 esac
8961 shared_flag='-shared'
8962 if test "$aix_use_runtimelinking" = yes; then
8963 shared_flag="$shared_flag "'${wl}-G'
8965 else
8966 # not using gcc
8967 if test "$host_cpu" = ia64; then
8968 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8969 # chokes on -Wl,-G. The following line is correct:
8970 shared_flag='-G'
8971 else
8972 if test "$aix_use_runtimelinking" = yes; then
8973 shared_flag='${wl}-G'
8974 else
8975 shared_flag='${wl}-bM:SRE'
8980 export_dynamic_flag_spec='${wl}-bexpall'
8981 # It seems that -bexpall does not export symbols beginning with
8982 # underscore (_), so it is better to generate a list of symbols to export.
8983 always_export_symbols=yes
8984 if test "$aix_use_runtimelinking" = yes; then
8985 # Warning - without using the other runtime loading flags (-brtl),
8986 # -berok will link without error, but may produce a broken library.
8987 allow_undefined_flag='-berok'
8988 # Determine the default libpath from the value encoded in an
8989 # empty executable.
8990 cat >conftest.$ac_ext <<_ACEOF
8991 /* confdefs.h. */
8992 _ACEOF
8993 cat confdefs.h >>conftest.$ac_ext
8994 cat >>conftest.$ac_ext <<_ACEOF
8995 /* end confdefs.h. */
8998 main ()
9002 return 0;
9004 _ACEOF
9005 rm -f conftest.$ac_objext conftest$ac_exeext
9006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9007 (eval $ac_link) 2>conftest.er1
9008 ac_status=$?
9009 grep -v '^ *+' conftest.er1 >conftest.err
9010 rm -f conftest.er1
9011 cat conftest.err >&5
9012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013 (exit $ac_status); } &&
9014 { ac_try='test -z "$ac_c_werror_flag"
9015 || test ! -s conftest.err'
9016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9017 (eval $ac_try) 2>&5
9018 ac_status=$?
9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 (exit $ac_status); }; } &&
9021 { ac_try='test -s conftest$ac_exeext'
9022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9023 (eval $ac_try) 2>&5
9024 ac_status=$?
9025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026 (exit $ac_status); }; }; then
9028 lt_aix_libpath_sed='
9029 /Import File Strings/,/^$/ {
9030 /^0/ {
9031 s/^0 *\(.*\)$/\1/
9035 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9036 # Check for a 64-bit object if we didn't find anything.
9037 if test -z "$aix_libpath"; then
9038 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9040 else
9041 echo "$as_me: failed program was:" >&5
9042 sed 's/^/| /' conftest.$ac_ext >&5
9045 rm -f conftest.err conftest.$ac_objext \
9046 conftest$ac_exeext conftest.$ac_ext
9047 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9049 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9050 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"
9051 else
9052 if test "$host_cpu" = ia64; then
9053 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9054 allow_undefined_flag="-z nodefs"
9055 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"
9056 else
9057 # Determine the default libpath from the value encoded in an
9058 # empty executable.
9059 cat >conftest.$ac_ext <<_ACEOF
9060 /* confdefs.h. */
9061 _ACEOF
9062 cat confdefs.h >>conftest.$ac_ext
9063 cat >>conftest.$ac_ext <<_ACEOF
9064 /* end confdefs.h. */
9067 main ()
9071 return 0;
9073 _ACEOF
9074 rm -f conftest.$ac_objext conftest$ac_exeext
9075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9076 (eval $ac_link) 2>conftest.er1
9077 ac_status=$?
9078 grep -v '^ *+' conftest.er1 >conftest.err
9079 rm -f conftest.er1
9080 cat conftest.err >&5
9081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082 (exit $ac_status); } &&
9083 { ac_try='test -z "$ac_c_werror_flag"
9084 || test ! -s conftest.err'
9085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9086 (eval $ac_try) 2>&5
9087 ac_status=$?
9088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9089 (exit $ac_status); }; } &&
9090 { ac_try='test -s conftest$ac_exeext'
9091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9092 (eval $ac_try) 2>&5
9093 ac_status=$?
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 (exit $ac_status); }; }; then
9097 lt_aix_libpath_sed='
9098 /Import File Strings/,/^$/ {
9099 /^0/ {
9100 s/^0 *\(.*\)$/\1/
9104 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9105 # Check for a 64-bit object if we didn't find anything.
9106 if test -z "$aix_libpath"; then
9107 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9109 else
9110 echo "$as_me: failed program was:" >&5
9111 sed 's/^/| /' conftest.$ac_ext >&5
9114 rm -f conftest.err conftest.$ac_objext \
9115 conftest$ac_exeext conftest.$ac_ext
9116 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9118 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9119 # Warning - without using the other run time loading flags,
9120 # -berok will link without error, but may produce a broken library.
9121 no_undefined_flag=' ${wl}-bernotok'
9122 allow_undefined_flag=' ${wl}-berok'
9123 # Exported symbols can be pulled into shared objects from archives
9124 whole_archive_flag_spec='$convenience'
9125 archive_cmds_need_lc=yes
9126 # This is similar to how AIX traditionally builds its shared libraries.
9127 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'
9132 amigaos*)
9133 case $host_cpu in
9134 powerpc)
9135 # see comment about AmigaOS4 .so support
9136 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9137 archive_expsym_cmds=''
9139 m68k)
9140 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)'
9141 hardcode_libdir_flag_spec='-L$libdir'
9142 hardcode_minus_L=yes
9144 esac
9147 bsdi[45]*)
9148 export_dynamic_flag_spec=-rdynamic
9151 cygwin* | mingw* | pw32* | cegcc*)
9152 # When not using gcc, we currently assume that we are using
9153 # Microsoft Visual C++.
9154 # hardcode_libdir_flag_spec is actually meaningless, as there is
9155 # no search path for DLLs.
9156 hardcode_libdir_flag_spec=' '
9157 allow_undefined_flag=unsupported
9158 # Tell ltmain to make .lib files, not .a files.
9159 libext=lib
9160 # Tell ltmain to make .dll files, not .so files.
9161 shrext_cmds=".dll"
9162 # FIXME: Setting linknames here is a bad hack.
9163 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9164 # The linker will automatically build a .lib file if we build a DLL.
9165 old_archive_from_new_cmds='true'
9166 # FIXME: Should let the user specify the lib program.
9167 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9168 fix_srcfile_path='`cygpath -w "$srcfile"`'
9169 enable_shared_with_static_runtimes=yes
9172 darwin* | rhapsody*)
9175 archive_cmds_need_lc=no
9176 hardcode_direct=no
9177 hardcode_automatic=yes
9178 hardcode_shlibpath_var=unsupported
9179 whole_archive_flag_spec=''
9180 link_all_deplibs=yes
9181 allow_undefined_flag="$_lt_dar_allow_undefined"
9182 case $cc_basename in
9183 ifort*) _lt_dar_can_shared=yes ;;
9184 *) _lt_dar_can_shared=$GCC ;;
9185 esac
9186 if test "$_lt_dar_can_shared" = "yes"; then
9187 output_verbose_link_cmd=echo
9188 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9189 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9190 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9191 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9193 else
9194 ld_shlibs=no
9199 dgux*)
9200 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9201 hardcode_libdir_flag_spec='-L$libdir'
9202 hardcode_shlibpath_var=no
9205 freebsd1*)
9206 ld_shlibs=no
9209 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9210 # support. Future versions do this automatically, but an explicit c++rt0.o
9211 # does not break anything, and helps significantly (at the cost of a little
9212 # extra space).
9213 freebsd2.2*)
9214 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9215 hardcode_libdir_flag_spec='-R$libdir'
9216 hardcode_direct=yes
9217 hardcode_shlibpath_var=no
9220 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9221 freebsd2*)
9222 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9223 hardcode_direct=yes
9224 hardcode_minus_L=yes
9225 hardcode_shlibpath_var=no
9228 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9229 freebsd* | dragonfly*)
9230 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9231 hardcode_libdir_flag_spec='-R$libdir'
9232 hardcode_direct=yes
9233 hardcode_shlibpath_var=no
9236 hpux9*)
9237 if test "$GCC" = yes; then
9238 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'
9239 else
9240 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'
9242 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9243 hardcode_libdir_separator=:
9244 hardcode_direct=yes
9246 # hardcode_minus_L: Not really in the search PATH,
9247 # but as the default location of the library.
9248 hardcode_minus_L=yes
9249 export_dynamic_flag_spec='${wl}-E'
9252 hpux10*)
9253 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9254 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9255 else
9256 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9258 if test "$with_gnu_ld" = no; then
9259 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9260 hardcode_libdir_flag_spec_ld='+b $libdir'
9261 hardcode_libdir_separator=:
9262 hardcode_direct=yes
9263 hardcode_direct_absolute=yes
9264 export_dynamic_flag_spec='${wl}-E'
9265 # hardcode_minus_L: Not really in the search PATH,
9266 # but as the default location of the library.
9267 hardcode_minus_L=yes
9271 hpux11*)
9272 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9273 case $host_cpu in
9274 hppa*64*)
9275 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9277 ia64*)
9278 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9281 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9283 esac
9284 else
9285 case $host_cpu in
9286 hppa*64*)
9287 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9289 ia64*)
9290 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9293 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9295 esac
9297 if test "$with_gnu_ld" = no; then
9298 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9299 hardcode_libdir_separator=:
9301 case $host_cpu in
9302 hppa*64*|ia64*)
9303 hardcode_direct=no
9304 hardcode_shlibpath_var=no
9307 hardcode_direct=yes
9308 hardcode_direct_absolute=yes
9309 export_dynamic_flag_spec='${wl}-E'
9311 # hardcode_minus_L: Not really in the search PATH,
9312 # but as the default location of the library.
9313 hardcode_minus_L=yes
9315 esac
9319 irix5* | irix6* | nonstopux*)
9320 if test "$GCC" = yes; then
9321 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'
9322 # Try to use the -exported_symbol ld option, if it does not
9323 # work, assume that -exports_file does not work either and
9324 # implicitly export all symbols.
9325 save_LDFLAGS="$LDFLAGS"
9326 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9327 cat >conftest.$ac_ext <<_ACEOF
9328 int foo(void) {}
9329 _ACEOF
9330 rm -f conftest.$ac_objext conftest$ac_exeext
9331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9332 (eval $ac_link) 2>conftest.er1
9333 ac_status=$?
9334 grep -v '^ *+' conftest.er1 >conftest.err
9335 rm -f conftest.er1
9336 cat conftest.err >&5
9337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338 (exit $ac_status); } &&
9339 { ac_try='test -z "$ac_c_werror_flag"
9340 || test ! -s conftest.err'
9341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9342 (eval $ac_try) 2>&5
9343 ac_status=$?
9344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345 (exit $ac_status); }; } &&
9346 { ac_try='test -s conftest$ac_exeext'
9347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9348 (eval $ac_try) 2>&5
9349 ac_status=$?
9350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351 (exit $ac_status); }; }; then
9352 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'
9354 else
9355 echo "$as_me: failed program was:" >&5
9356 sed 's/^/| /' conftest.$ac_ext >&5
9359 rm -f conftest.err conftest.$ac_objext \
9360 conftest$ac_exeext conftest.$ac_ext
9361 LDFLAGS="$save_LDFLAGS"
9362 else
9363 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'
9364 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'
9366 archive_cmds_need_lc='no'
9367 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9368 hardcode_libdir_separator=:
9369 inherit_rpath=yes
9370 link_all_deplibs=yes
9373 netbsd*)
9374 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9375 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9376 else
9377 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9379 hardcode_libdir_flag_spec='-R$libdir'
9380 hardcode_direct=yes
9381 hardcode_shlibpath_var=no
9384 newsos6)
9385 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9386 hardcode_direct=yes
9387 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9388 hardcode_libdir_separator=:
9389 hardcode_shlibpath_var=no
9392 *nto* | *qnx*)
9395 openbsd*)
9396 if test -f /usr/libexec/ld.so; then
9397 hardcode_direct=yes
9398 hardcode_shlibpath_var=no
9399 hardcode_direct_absolute=yes
9400 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9401 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9402 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9403 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9404 export_dynamic_flag_spec='${wl}-E'
9405 else
9406 case $host_os in
9407 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9408 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9409 hardcode_libdir_flag_spec='-R$libdir'
9412 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9413 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9415 esac
9417 else
9418 ld_shlibs=no
9422 os2*)
9423 hardcode_libdir_flag_spec='-L$libdir'
9424 hardcode_minus_L=yes
9425 allow_undefined_flag=unsupported
9426 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'
9427 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9430 osf3*)
9431 if test "$GCC" = yes; then
9432 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9433 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'
9434 else
9435 allow_undefined_flag=' -expect_unresolved \*'
9436 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'
9438 archive_cmds_need_lc='no'
9439 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9440 hardcode_libdir_separator=:
9443 osf4* | osf5*) # as osf3* with the addition of -msym flag
9444 if test "$GCC" = yes; then
9445 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9446 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'
9447 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9448 else
9449 allow_undefined_flag=' -expect_unresolved \*'
9450 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'
9451 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~
9452 $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'
9454 # Both c and cxx compiler support -rpath directly
9455 hardcode_libdir_flag_spec='-rpath $libdir'
9457 archive_cmds_need_lc='no'
9458 hardcode_libdir_separator=:
9461 solaris*)
9462 no_undefined_flag=' -z defs'
9463 if test "$GCC" = yes; then
9464 wlarc='${wl}'
9465 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9466 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9467 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9468 else
9469 case `$CC -V 2>&1` in
9470 *"Compilers 5.0"*)
9471 wlarc=''
9472 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9473 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9474 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9477 wlarc='${wl}'
9478 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9479 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9480 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9482 esac
9484 hardcode_libdir_flag_spec='-R$libdir'
9485 hardcode_shlibpath_var=no
9486 case $host_os in
9487 solaris2.[0-5] | solaris2.[0-5].*) ;;
9489 # The compiler driver will combine and reorder linker options,
9490 # but understands `-z linker_flag'. GCC discards it without `$wl',
9491 # but is careful enough not to reorder.
9492 # Supported since Solaris 2.6 (maybe 2.5.1?)
9493 if test "$GCC" = yes; then
9494 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9495 else
9496 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9499 esac
9500 link_all_deplibs=yes
9503 sunos4*)
9504 if test "x$host_vendor" = xsequent; then
9505 # Use $CC to link under sequent, because it throws in some extra .o
9506 # files that make .init and .fini sections work.
9507 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9508 else
9509 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9511 hardcode_libdir_flag_spec='-L$libdir'
9512 hardcode_direct=yes
9513 hardcode_minus_L=yes
9514 hardcode_shlibpath_var=no
9517 sysv4)
9518 case $host_vendor in
9519 sni)
9520 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9521 hardcode_direct=yes # is this really true???
9523 siemens)
9524 ## LD is ld it makes a PLAMLIB
9525 ## CC just makes a GrossModule.
9526 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9527 reload_cmds='$CC -r -o $output$reload_objs'
9528 hardcode_direct=no
9530 motorola)
9531 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9532 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9534 esac
9535 runpath_var='LD_RUN_PATH'
9536 hardcode_shlibpath_var=no
9539 sysv4.3*)
9540 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9541 hardcode_shlibpath_var=no
9542 export_dynamic_flag_spec='-Bexport'
9545 sysv4*MP*)
9546 if test -d /usr/nec; then
9547 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9548 hardcode_shlibpath_var=no
9549 runpath_var=LD_RUN_PATH
9550 hardcode_runpath_var=yes
9551 ld_shlibs=yes
9555 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9556 no_undefined_flag='${wl}-z,text'
9557 archive_cmds_need_lc=no
9558 hardcode_shlibpath_var=no
9559 runpath_var='LD_RUN_PATH'
9561 if test "$GCC" = yes; then
9562 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9563 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9564 else
9565 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9566 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9570 sysv5* | sco3.2v5* | sco5v6*)
9571 # Note: We can NOT use -z defs as we might desire, because we do not
9572 # link with -lc, and that would cause any symbols used from libc to
9573 # always be unresolved, which means just about no library would
9574 # ever link correctly. If we're not using GNU ld we use -z text
9575 # though, which does catch some bad symbols but isn't as heavy-handed
9576 # as -z defs.
9577 no_undefined_flag='${wl}-z,text'
9578 allow_undefined_flag='${wl}-z,nodefs'
9579 archive_cmds_need_lc=no
9580 hardcode_shlibpath_var=no
9581 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9582 hardcode_libdir_separator=':'
9583 link_all_deplibs=yes
9584 export_dynamic_flag_spec='${wl}-Bexport'
9585 runpath_var='LD_RUN_PATH'
9587 if test "$GCC" = yes; then
9588 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9589 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9590 else
9591 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9592 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9596 uts4*)
9597 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9598 hardcode_libdir_flag_spec='-L$libdir'
9599 hardcode_shlibpath_var=no
9603 ld_shlibs=no
9605 esac
9607 if test x$host_vendor = xsni; then
9608 case $host in
9609 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9610 export_dynamic_flag_spec='${wl}-Blargedynsym'
9612 esac
9616 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9617 echo "${ECHO_T}$ld_shlibs" >&6
9618 test "$ld_shlibs" = no && can_build_shared=no
9620 with_gnu_ld=$with_gnu_ld
9637 # Do we need to explicitly link libc?
9639 case "x$archive_cmds_need_lc" in
9640 x|xyes)
9641 # Assume -lc should be added
9642 archive_cmds_need_lc=yes
9644 if test "$enable_shared" = yes && test "$GCC" = yes; then
9645 case $archive_cmds in
9646 *'~'*)
9647 # FIXME: we may have to deal with multi-command sequences.
9649 '$CC '*)
9650 # Test whether the compiler implicitly links with -lc since on some
9651 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9652 # to ld, don't add -lc before -lgcc.
9653 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9654 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9655 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
9656 echo $ECHO_N "(cached) $ECHO_C" >&6
9657 else
9658 $RM conftest*
9659 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9662 (eval $ac_compile) 2>&5
9663 ac_status=$?
9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665 (exit $ac_status); } 2>conftest.err; then
9666 soname=conftest
9667 lib=conftest
9668 libobjs=conftest.$ac_objext
9669 deplibs=
9670 wl=$lt_prog_compiler_wl
9671 pic_flag=$lt_prog_compiler_pic
9672 compiler_flags=-v
9673 linker_flags=-v
9674 verstring=
9675 output_objdir=.
9676 libname=conftest
9677 lt_save_allow_undefined_flag=$allow_undefined_flag
9678 allow_undefined_flag=
9679 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9680 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9681 ac_status=$?
9682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683 (exit $ac_status); }
9684 then
9685 lt_cv_archive_cmds_need_lc=no
9686 else
9687 lt_cv_archive_cmds_need_lc=yes
9689 allow_undefined_flag=$lt_save_allow_undefined_flag
9690 else
9691 cat conftest.err 1>&5
9693 $RM conftest*
9696 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
9697 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
9698 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9700 esac
9703 esac
9861 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9862 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9864 if test "$GCC" = yes; then
9865 case $host_os in
9866 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9867 *) lt_awk_arg="/^libraries:/" ;;
9868 esac
9869 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9870 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9871 # if the path contains ";" then we assume it to be the separator
9872 # otherwise default to the standard path separator (i.e. ":") - it is
9873 # assumed that no part of a normal pathname contains ";" but that should
9874 # okay in the real world where ";" in dirpaths is itself problematic.
9875 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9876 else
9877 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9879 # Ok, now we have the path, separated by spaces, we can step through it
9880 # and add multilib dir if necessary.
9881 lt_tmp_lt_search_path_spec=
9882 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9883 for lt_sys_path in $lt_search_path_spec; do
9884 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9885 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9886 else
9887 test -d "$lt_sys_path" && \
9888 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9890 done
9891 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9892 BEGIN {RS=" "; FS="/|\n";} {
9893 lt_foo="";
9894 lt_count=0;
9895 for (lt_i = NF; lt_i > 0; lt_i--) {
9896 if ($lt_i != "" && $lt_i != ".") {
9897 if ($lt_i == "..") {
9898 lt_count++;
9899 } else {
9900 if (lt_count == 0) {
9901 lt_foo="/" $lt_i lt_foo;
9902 } else {
9903 lt_count--;
9908 if (lt_foo != "") { lt_freq[lt_foo]++; }
9909 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9911 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9912 else
9913 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9915 library_names_spec=
9916 libname_spec='lib$name'
9917 soname_spec=
9918 shrext_cmds=".so"
9919 postinstall_cmds=
9920 postuninstall_cmds=
9921 finish_cmds=
9922 finish_eval=
9923 shlibpath_var=
9924 shlibpath_overrides_runpath=unknown
9925 version_type=none
9926 dynamic_linker="$host_os ld.so"
9927 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9928 need_lib_prefix=unknown
9929 hardcode_into_libs=no
9931 # when you set need_version to no, make sure it does not cause -set_version
9932 # flags to be left without arguments
9933 need_version=unknown
9935 case $host_os in
9936 aix3*)
9937 version_type=linux
9938 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9939 shlibpath_var=LIBPATH
9941 # AIX 3 has no versioning support, so we append a major version to the name.
9942 soname_spec='${libname}${release}${shared_ext}$major'
9945 aix[4-9]*)
9946 version_type=linux
9947 need_lib_prefix=no
9948 need_version=no
9949 hardcode_into_libs=yes
9950 if test "$host_cpu" = ia64; then
9951 # AIX 5 supports IA64
9952 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9953 shlibpath_var=LD_LIBRARY_PATH
9954 else
9955 # With GCC up to 2.95.x, collect2 would create an import file
9956 # for dependence libraries. The import file would start with
9957 # the line `#! .'. This would cause the generated library to
9958 # depend on `.', always an invalid library. This was fixed in
9959 # development snapshots of GCC prior to 3.0.
9960 case $host_os in
9961 aix4 | aix4.[01] | aix4.[01].*)
9962 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9963 echo ' yes '
9964 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9966 else
9967 can_build_shared=no
9970 esac
9971 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9972 # soname into executable. Probably we can add versioning support to
9973 # collect2, so additional links can be useful in future.
9974 if test "$aix_use_runtimelinking" = yes; then
9975 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9976 # instead of lib<name>.a to let people know that these are not
9977 # typical AIX shared libraries.
9978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9979 else
9980 # We preserve .a as extension for shared libraries through AIX4.2
9981 # and later when we are not doing run time linking.
9982 library_names_spec='${libname}${release}.a $libname.a'
9983 soname_spec='${libname}${release}${shared_ext}$major'
9985 shlibpath_var=LIBPATH
9989 amigaos*)
9990 case $host_cpu in
9991 powerpc)
9992 # Since July 2007 AmigaOS4 officially supports .so libraries.
9993 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9996 m68k)
9997 library_names_spec='$libname.ixlibrary $libname.a'
9998 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9999 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'
10001 esac
10004 beos*)
10005 library_names_spec='${libname}${shared_ext}'
10006 dynamic_linker="$host_os ld.so"
10007 shlibpath_var=LIBRARY_PATH
10010 bsdi[45]*)
10011 version_type=linux
10012 need_version=no
10013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10014 soname_spec='${libname}${release}${shared_ext}$major'
10015 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10016 shlibpath_var=LD_LIBRARY_PATH
10017 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10018 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10019 # the default ld.so.conf also contains /usr/contrib/lib and
10020 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10021 # libtool to hard-code these into programs
10024 cygwin* | mingw* | pw32* | cegcc*)
10025 version_type=windows
10026 shrext_cmds=".dll"
10027 need_version=no
10028 need_lib_prefix=no
10030 case $GCC,$host_os in
10031 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10032 library_names_spec='$libname.dll.a'
10033 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10034 postinstall_cmds='base_file=`basename \${file}`~
10035 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10036 dldir=$destdir/`dirname \$dlpath`~
10037 test -d \$dldir || mkdir -p \$dldir~
10038 $install_prog $dir/$dlname \$dldir/$dlname~
10039 chmod a+x \$dldir/$dlname~
10040 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10041 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10043 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10044 dlpath=$dir/\$dldll~
10045 $RM \$dlpath'
10046 shlibpath_overrides_runpath=yes
10048 case $host_os in
10049 cygwin*)
10050 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10051 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10052 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10054 mingw* | cegcc*)
10055 # MinGW DLLs use traditional 'lib' prefix
10056 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10057 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10058 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10059 # It is most probably a Windows format PATH printed by
10060 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10061 # path with ; separators, and with drive letters. We can handle the
10062 # drive letters (cygwin fileutils understands them), so leave them,
10063 # especially as we might pass files found there to a mingw objdump,
10064 # which wouldn't understand a cygwinified path. Ahh.
10065 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10066 else
10067 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10070 pw32*)
10071 # pw32 DLLs use 'pw' prefix rather than 'lib'
10072 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10074 esac
10078 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10080 esac
10081 dynamic_linker='Win32 ld.exe'
10082 # FIXME: first we should search . and the directory the executable is in
10083 shlibpath_var=PATH
10086 darwin* | rhapsody*)
10087 dynamic_linker="$host_os dyld"
10088 version_type=darwin
10089 need_lib_prefix=no
10090 need_version=no
10091 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10092 soname_spec='${libname}${release}${major}$shared_ext'
10093 shlibpath_overrides_runpath=yes
10094 shlibpath_var=DYLD_LIBRARY_PATH
10095 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10097 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10098 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10101 dgux*)
10102 version_type=linux
10103 need_lib_prefix=no
10104 need_version=no
10105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10106 soname_spec='${libname}${release}${shared_ext}$major'
10107 shlibpath_var=LD_LIBRARY_PATH
10110 freebsd1*)
10111 dynamic_linker=no
10114 freebsd* | dragonfly*)
10115 # DragonFly does not have aout. When/if they implement a new
10116 # versioning mechanism, adjust this.
10117 if test -x /usr/bin/objformat; then
10118 objformat=`/usr/bin/objformat`
10119 else
10120 case $host_os in
10121 freebsd[123]*) objformat=aout ;;
10122 *) objformat=elf ;;
10123 esac
10125 version_type=freebsd-$objformat
10126 case $version_type in
10127 freebsd-elf*)
10128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10129 need_version=no
10130 need_lib_prefix=no
10132 freebsd-*)
10133 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10134 need_version=yes
10136 esac
10137 shlibpath_var=LD_LIBRARY_PATH
10138 case $host_os in
10139 freebsd2*)
10140 shlibpath_overrides_runpath=yes
10142 freebsd3.[01]* | freebsdelf3.[01]*)
10143 shlibpath_overrides_runpath=yes
10144 hardcode_into_libs=yes
10146 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10147 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10148 shlibpath_overrides_runpath=no
10149 hardcode_into_libs=yes
10151 *) # from 4.6 on, and DragonFly
10152 shlibpath_overrides_runpath=yes
10153 hardcode_into_libs=yes
10155 esac
10158 gnu*)
10159 version_type=linux
10160 need_lib_prefix=no
10161 need_version=no
10162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10163 soname_spec='${libname}${release}${shared_ext}$major'
10164 shlibpath_var=LD_LIBRARY_PATH
10165 hardcode_into_libs=yes
10168 hpux9* | hpux10* | hpux11*)
10169 # Give a soname corresponding to the major version so that dld.sl refuses to
10170 # link against other versions.
10171 version_type=sunos
10172 need_lib_prefix=no
10173 need_version=no
10174 case $host_cpu in
10175 ia64*)
10176 shrext_cmds='.so'
10177 hardcode_into_libs=yes
10178 dynamic_linker="$host_os dld.so"
10179 shlibpath_var=LD_LIBRARY_PATH
10180 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10182 soname_spec='${libname}${release}${shared_ext}$major'
10183 if test "X$HPUX_IA64_MODE" = X32; then
10184 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10185 else
10186 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10188 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10190 hppa*64*)
10191 shrext_cmds='.sl'
10192 hardcode_into_libs=yes
10193 dynamic_linker="$host_os dld.sl"
10194 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10195 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10197 soname_spec='${libname}${release}${shared_ext}$major'
10198 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10199 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10202 shrext_cmds='.sl'
10203 dynamic_linker="$host_os dld.sl"
10204 shlibpath_var=SHLIB_PATH
10205 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10207 soname_spec='${libname}${release}${shared_ext}$major'
10209 esac
10210 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10211 postinstall_cmds='chmod 555 $lib'
10214 interix[3-9]*)
10215 version_type=linux
10216 need_lib_prefix=no
10217 need_version=no
10218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10219 soname_spec='${libname}${release}${shared_ext}$major'
10220 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10221 shlibpath_var=LD_LIBRARY_PATH
10222 shlibpath_overrides_runpath=no
10223 hardcode_into_libs=yes
10226 irix5* | irix6* | nonstopux*)
10227 case $host_os in
10228 nonstopux*) version_type=nonstopux ;;
10230 if test "$lt_cv_prog_gnu_ld" = yes; then
10231 version_type=linux
10232 else
10233 version_type=irix
10234 fi ;;
10235 esac
10236 need_lib_prefix=no
10237 need_version=no
10238 soname_spec='${libname}${release}${shared_ext}$major'
10239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10240 case $host_os in
10241 irix5* | nonstopux*)
10242 libsuff= shlibsuff=
10245 case $LD in # libtool.m4 will add one of these switches to LD
10246 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10247 libsuff= shlibsuff= libmagic=32-bit;;
10248 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10249 libsuff=32 shlibsuff=N32 libmagic=N32;;
10250 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10251 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10252 *) libsuff= shlibsuff= libmagic=never-match;;
10253 esac
10255 esac
10256 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10257 shlibpath_overrides_runpath=no
10258 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10259 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10260 hardcode_into_libs=yes
10263 # No shared lib support for Linux oldld, aout, or coff.
10264 linux*oldld* | linux*aout* | linux*coff*)
10265 dynamic_linker=no
10268 # This must be Linux ELF.
10269 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10270 version_type=linux
10271 need_lib_prefix=no
10272 need_version=no
10273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10274 soname_spec='${libname}${release}${shared_ext}$major'
10275 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10276 shlibpath_var=LD_LIBRARY_PATH
10277 shlibpath_overrides_runpath=no
10279 # Some binutils ld are patched to set DT_RUNPATH
10280 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
10281 echo $ECHO_N "(cached) $ECHO_C" >&6
10282 else
10283 lt_cv_shlibpath_overrides_runpath=no
10284 save_LDFLAGS=$LDFLAGS
10285 save_libdir=$libdir
10286 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10287 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10288 cat >conftest.$ac_ext <<_ACEOF
10289 /* confdefs.h. */
10290 _ACEOF
10291 cat confdefs.h >>conftest.$ac_ext
10292 cat >>conftest.$ac_ext <<_ACEOF
10293 /* end confdefs.h. */
10296 main ()
10300 return 0;
10302 _ACEOF
10303 rm -f conftest.$ac_objext conftest$ac_exeext
10304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10305 (eval $ac_link) 2>conftest.er1
10306 ac_status=$?
10307 grep -v '^ *+' conftest.er1 >conftest.err
10308 rm -f conftest.er1
10309 cat conftest.err >&5
10310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311 (exit $ac_status); } &&
10312 { ac_try='test -z "$ac_c_werror_flag"
10313 || test ! -s conftest.err'
10314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10315 (eval $ac_try) 2>&5
10316 ac_status=$?
10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318 (exit $ac_status); }; } &&
10319 { ac_try='test -s conftest$ac_exeext'
10320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10321 (eval $ac_try) 2>&5
10322 ac_status=$?
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); }; }; then
10325 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10326 lt_cv_shlibpath_overrides_runpath=yes
10329 else
10330 echo "$as_me: failed program was:" >&5
10331 sed 's/^/| /' conftest.$ac_ext >&5
10334 rm -f conftest.err conftest.$ac_objext \
10335 conftest$ac_exeext conftest.$ac_ext
10336 LDFLAGS=$save_LDFLAGS
10337 libdir=$save_libdir
10341 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10343 # This implies no fast_install, which is unacceptable.
10344 # Some rework will be needed to allow for fast_install
10345 # before this can be enabled.
10346 hardcode_into_libs=yes
10348 # Append ld.so.conf contents to the search path
10349 if test -f /etc/ld.so.conf; then
10350 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10351 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10354 # We used to test for /lib/ld.so.1 and disable shared libraries on
10355 # powerpc, because MkLinux only supported shared libraries with the
10356 # GNU dynamic linker. Since this was broken with cross compilers,
10357 # most powerpc-linux boxes support dynamic linking these days and
10358 # people can always --disable-shared, the test was removed, and we
10359 # assume the GNU/Linux dynamic linker is in use.
10360 dynamic_linker='GNU/Linux ld.so'
10363 netbsd*)
10364 version_type=sunos
10365 need_lib_prefix=no
10366 need_version=no
10367 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10369 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10370 dynamic_linker='NetBSD (a.out) ld.so'
10371 else
10372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10373 soname_spec='${libname}${release}${shared_ext}$major'
10374 dynamic_linker='NetBSD ld.elf_so'
10376 shlibpath_var=LD_LIBRARY_PATH
10377 shlibpath_overrides_runpath=yes
10378 hardcode_into_libs=yes
10381 newsos6)
10382 version_type=linux
10383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10384 shlibpath_var=LD_LIBRARY_PATH
10385 shlibpath_overrides_runpath=yes
10388 *nto* | *qnx*)
10389 version_type=qnx
10390 need_lib_prefix=no
10391 need_version=no
10392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10393 soname_spec='${libname}${release}${shared_ext}$major'
10394 shlibpath_var=LD_LIBRARY_PATH
10395 shlibpath_overrides_runpath=no
10396 hardcode_into_libs=yes
10397 dynamic_linker='ldqnx.so'
10400 openbsd*)
10401 version_type=sunos
10402 sys_lib_dlsearch_path_spec="/usr/lib"
10403 need_lib_prefix=no
10404 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10405 case $host_os in
10406 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10407 *) need_version=no ;;
10408 esac
10409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10410 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10411 shlibpath_var=LD_LIBRARY_PATH
10412 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10413 case $host_os in
10414 openbsd2.[89] | openbsd2.[89].*)
10415 shlibpath_overrides_runpath=no
10418 shlibpath_overrides_runpath=yes
10420 esac
10421 else
10422 shlibpath_overrides_runpath=yes
10426 os2*)
10427 libname_spec='$name'
10428 shrext_cmds=".dll"
10429 need_lib_prefix=no
10430 library_names_spec='$libname${shared_ext} $libname.a'
10431 dynamic_linker='OS/2 ld.exe'
10432 shlibpath_var=LIBPATH
10435 osf3* | osf4* | osf5*)
10436 version_type=osf
10437 need_lib_prefix=no
10438 need_version=no
10439 soname_spec='${libname}${release}${shared_ext}$major'
10440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10441 shlibpath_var=LD_LIBRARY_PATH
10442 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10443 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10446 rdos*)
10447 dynamic_linker=no
10450 solaris*)
10451 version_type=linux
10452 need_lib_prefix=no
10453 need_version=no
10454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10455 soname_spec='${libname}${release}${shared_ext}$major'
10456 shlibpath_var=LD_LIBRARY_PATH
10457 shlibpath_overrides_runpath=yes
10458 hardcode_into_libs=yes
10459 # ldd complains unless libraries are executable
10460 postinstall_cmds='chmod +x $lib'
10463 sunos4*)
10464 version_type=sunos
10465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10466 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10467 shlibpath_var=LD_LIBRARY_PATH
10468 shlibpath_overrides_runpath=yes
10469 if test "$with_gnu_ld" = yes; then
10470 need_lib_prefix=no
10472 need_version=yes
10475 sysv4 | sysv4.3*)
10476 version_type=linux
10477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10478 soname_spec='${libname}${release}${shared_ext}$major'
10479 shlibpath_var=LD_LIBRARY_PATH
10480 case $host_vendor in
10481 sni)
10482 shlibpath_overrides_runpath=no
10483 need_lib_prefix=no
10484 runpath_var=LD_RUN_PATH
10486 siemens)
10487 need_lib_prefix=no
10489 motorola)
10490 need_lib_prefix=no
10491 need_version=no
10492 shlibpath_overrides_runpath=no
10493 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10495 esac
10498 sysv4*MP*)
10499 if test -d /usr/nec ;then
10500 version_type=linux
10501 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10502 soname_spec='$libname${shared_ext}.$major'
10503 shlibpath_var=LD_LIBRARY_PATH
10507 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10508 version_type=freebsd-elf
10509 need_lib_prefix=no
10510 need_version=no
10511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10512 soname_spec='${libname}${release}${shared_ext}$major'
10513 shlibpath_var=LD_LIBRARY_PATH
10514 shlibpath_overrides_runpath=yes
10515 hardcode_into_libs=yes
10516 if test "$with_gnu_ld" = yes; then
10517 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10518 else
10519 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10520 case $host_os in
10521 sco3.2v5*)
10522 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10524 esac
10526 sys_lib_dlsearch_path_spec='/usr/lib'
10529 tpf*)
10530 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10531 version_type=linux
10532 need_lib_prefix=no
10533 need_version=no
10534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10535 shlibpath_var=LD_LIBRARY_PATH
10536 shlibpath_overrides_runpath=no
10537 hardcode_into_libs=yes
10540 uts4*)
10541 version_type=linux
10542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10543 soname_spec='${libname}${release}${shared_ext}$major'
10544 shlibpath_var=LD_LIBRARY_PATH
10548 dynamic_linker=no
10550 esac
10551 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10552 echo "${ECHO_T}$dynamic_linker" >&6
10553 test "$dynamic_linker" = no && can_build_shared=no
10555 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10556 if test "$GCC" = yes; then
10557 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10560 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10561 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10563 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10564 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10653 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10654 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10655 hardcode_action=
10656 if test -n "$hardcode_libdir_flag_spec" ||
10657 test -n "$runpath_var" ||
10658 test "X$hardcode_automatic" = "Xyes" ; then
10660 # We can hardcode non-existent directories.
10661 if test "$hardcode_direct" != no &&
10662 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10663 # have to relink, otherwise we might link with an installed library
10664 # when we should be linking with a yet-to-be-installed one
10665 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10666 test "$hardcode_minus_L" != no; then
10667 # Linking always hardcodes the temporary library directory.
10668 hardcode_action=relink
10669 else
10670 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10671 hardcode_action=immediate
10673 else
10674 # We cannot hardcode anything, or else we can only hardcode existing
10675 # directories.
10676 hardcode_action=unsupported
10678 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10679 echo "${ECHO_T}$hardcode_action" >&6
10681 if test "$hardcode_action" = relink ||
10682 test "$inherit_rpath" = yes; then
10683 # Fast installation is not supported
10684 enable_fast_install=no
10685 elif test "$shlibpath_overrides_runpath" = yes ||
10686 test "$enable_shared" = no; then
10687 # Fast installation is not necessary
10688 enable_fast_install=needless
10696 if test "x$enable_dlopen" != xyes; then
10697 enable_dlopen=unknown
10698 enable_dlopen_self=unknown
10699 enable_dlopen_self_static=unknown
10700 else
10701 lt_cv_dlopen=no
10702 lt_cv_dlopen_libs=
10704 case $host_os in
10705 beos*)
10706 lt_cv_dlopen="load_add_on"
10707 lt_cv_dlopen_libs=
10708 lt_cv_dlopen_self=yes
10711 mingw* | pw32* | cegcc*)
10712 lt_cv_dlopen="LoadLibrary"
10713 lt_cv_dlopen_libs=
10716 cygwin*)
10717 lt_cv_dlopen="dlopen"
10718 lt_cv_dlopen_libs=
10721 darwin*)
10722 # if libdl is installed we need to link against it
10723 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10724 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10725 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10726 echo $ECHO_N "(cached) $ECHO_C" >&6
10727 else
10728 ac_check_lib_save_LIBS=$LIBS
10729 LIBS="-ldl $LIBS"
10730 cat >conftest.$ac_ext <<_ACEOF
10731 /* confdefs.h. */
10732 _ACEOF
10733 cat confdefs.h >>conftest.$ac_ext
10734 cat >>conftest.$ac_ext <<_ACEOF
10735 /* end confdefs.h. */
10737 /* Override any gcc2 internal prototype to avoid an error. */
10738 #ifdef __cplusplus
10739 extern "C"
10740 #endif
10741 /* We use char because int might match the return type of a gcc2
10742 builtin and then its argument prototype would still apply. */
10743 char dlopen ();
10745 main ()
10747 dlopen ();
10749 return 0;
10751 _ACEOF
10752 rm -f conftest.$ac_objext conftest$ac_exeext
10753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10754 (eval $ac_link) 2>conftest.er1
10755 ac_status=$?
10756 grep -v '^ *+' conftest.er1 >conftest.err
10757 rm -f conftest.er1
10758 cat conftest.err >&5
10759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); } &&
10761 { ac_try='test -z "$ac_c_werror_flag"
10762 || test ! -s conftest.err'
10763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10764 (eval $ac_try) 2>&5
10765 ac_status=$?
10766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767 (exit $ac_status); }; } &&
10768 { ac_try='test -s conftest$ac_exeext'
10769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10770 (eval $ac_try) 2>&5
10771 ac_status=$?
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); }; }; then
10774 ac_cv_lib_dl_dlopen=yes
10775 else
10776 echo "$as_me: failed program was:" >&5
10777 sed 's/^/| /' conftest.$ac_ext >&5
10779 ac_cv_lib_dl_dlopen=no
10781 rm -f conftest.err conftest.$ac_objext \
10782 conftest$ac_exeext conftest.$ac_ext
10783 LIBS=$ac_check_lib_save_LIBS
10785 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10786 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10787 if test $ac_cv_lib_dl_dlopen = yes; then
10788 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10789 else
10791 lt_cv_dlopen="dyld"
10792 lt_cv_dlopen_libs=
10793 lt_cv_dlopen_self=yes
10800 echo "$as_me:$LINENO: checking for shl_load" >&5
10801 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10802 if test "${ac_cv_func_shl_load+set}" = set; then
10803 echo $ECHO_N "(cached) $ECHO_C" >&6
10804 else
10805 cat >conftest.$ac_ext <<_ACEOF
10806 /* confdefs.h. */
10807 _ACEOF
10808 cat confdefs.h >>conftest.$ac_ext
10809 cat >>conftest.$ac_ext <<_ACEOF
10810 /* end confdefs.h. */
10811 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10813 #define shl_load innocuous_shl_load
10815 /* System header to define __stub macros and hopefully few prototypes,
10816 which can conflict with char shl_load (); below.
10817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10818 <limits.h> exists even on freestanding compilers. */
10820 #ifdef __STDC__
10821 # include <limits.h>
10822 #else
10823 # include <assert.h>
10824 #endif
10826 #undef shl_load
10828 /* Override any gcc2 internal prototype to avoid an error. */
10829 #ifdef __cplusplus
10830 extern "C"
10832 #endif
10833 /* We use char because int might match the return type of a gcc2
10834 builtin and then its argument prototype would still apply. */
10835 char shl_load ();
10836 /* The GNU C library defines this for functions which it implements
10837 to always fail with ENOSYS. Some functions are actually named
10838 something starting with __ and the normal name is an alias. */
10839 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10840 choke me
10841 #else
10842 char (*f) () = shl_load;
10843 #endif
10844 #ifdef __cplusplus
10846 #endif
10849 main ()
10851 return f != shl_load;
10853 return 0;
10855 _ACEOF
10856 rm -f conftest.$ac_objext conftest$ac_exeext
10857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10858 (eval $ac_link) 2>conftest.er1
10859 ac_status=$?
10860 grep -v '^ *+' conftest.er1 >conftest.err
10861 rm -f conftest.er1
10862 cat conftest.err >&5
10863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864 (exit $ac_status); } &&
10865 { ac_try='test -z "$ac_c_werror_flag"
10866 || test ! -s conftest.err'
10867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10868 (eval $ac_try) 2>&5
10869 ac_status=$?
10870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871 (exit $ac_status); }; } &&
10872 { ac_try='test -s conftest$ac_exeext'
10873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10874 (eval $ac_try) 2>&5
10875 ac_status=$?
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); }; }; then
10878 ac_cv_func_shl_load=yes
10879 else
10880 echo "$as_me: failed program was:" >&5
10881 sed 's/^/| /' conftest.$ac_ext >&5
10883 ac_cv_func_shl_load=no
10885 rm -f conftest.err conftest.$ac_objext \
10886 conftest$ac_exeext conftest.$ac_ext
10888 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10889 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10890 if test $ac_cv_func_shl_load = yes; then
10891 lt_cv_dlopen="shl_load"
10892 else
10893 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10894 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10895 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10896 echo $ECHO_N "(cached) $ECHO_C" >&6
10897 else
10898 ac_check_lib_save_LIBS=$LIBS
10899 LIBS="-ldld $LIBS"
10900 cat >conftest.$ac_ext <<_ACEOF
10901 /* confdefs.h. */
10902 _ACEOF
10903 cat confdefs.h >>conftest.$ac_ext
10904 cat >>conftest.$ac_ext <<_ACEOF
10905 /* end confdefs.h. */
10907 /* Override any gcc2 internal prototype to avoid an error. */
10908 #ifdef __cplusplus
10909 extern "C"
10910 #endif
10911 /* We use char because int might match the return type of a gcc2
10912 builtin and then its argument prototype would still apply. */
10913 char shl_load ();
10915 main ()
10917 shl_load ();
10919 return 0;
10921 _ACEOF
10922 rm -f conftest.$ac_objext conftest$ac_exeext
10923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10924 (eval $ac_link) 2>conftest.er1
10925 ac_status=$?
10926 grep -v '^ *+' conftest.er1 >conftest.err
10927 rm -f conftest.er1
10928 cat conftest.err >&5
10929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); } &&
10931 { ac_try='test -z "$ac_c_werror_flag"
10932 || test ! -s conftest.err'
10933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10934 (eval $ac_try) 2>&5
10935 ac_status=$?
10936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937 (exit $ac_status); }; } &&
10938 { ac_try='test -s conftest$ac_exeext'
10939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10940 (eval $ac_try) 2>&5
10941 ac_status=$?
10942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943 (exit $ac_status); }; }; then
10944 ac_cv_lib_dld_shl_load=yes
10945 else
10946 echo "$as_me: failed program was:" >&5
10947 sed 's/^/| /' conftest.$ac_ext >&5
10949 ac_cv_lib_dld_shl_load=no
10951 rm -f conftest.err conftest.$ac_objext \
10952 conftest$ac_exeext conftest.$ac_ext
10953 LIBS=$ac_check_lib_save_LIBS
10955 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10956 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10957 if test $ac_cv_lib_dld_shl_load = yes; then
10958 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10959 else
10960 echo "$as_me:$LINENO: checking for dlopen" >&5
10961 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10962 if test "${ac_cv_func_dlopen+set}" = set; then
10963 echo $ECHO_N "(cached) $ECHO_C" >&6
10964 else
10965 cat >conftest.$ac_ext <<_ACEOF
10966 /* confdefs.h. */
10967 _ACEOF
10968 cat confdefs.h >>conftest.$ac_ext
10969 cat >>conftest.$ac_ext <<_ACEOF
10970 /* end confdefs.h. */
10971 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10973 #define dlopen innocuous_dlopen
10975 /* System header to define __stub macros and hopefully few prototypes,
10976 which can conflict with char dlopen (); below.
10977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10978 <limits.h> exists even on freestanding compilers. */
10980 #ifdef __STDC__
10981 # include <limits.h>
10982 #else
10983 # include <assert.h>
10984 #endif
10986 #undef dlopen
10988 /* Override any gcc2 internal prototype to avoid an error. */
10989 #ifdef __cplusplus
10990 extern "C"
10992 #endif
10993 /* We use char because int might match the return type of a gcc2
10994 builtin and then its argument prototype would still apply. */
10995 char dlopen ();
10996 /* The GNU C library defines this for functions which it implements
10997 to always fail with ENOSYS. Some functions are actually named
10998 something starting with __ and the normal name is an alias. */
10999 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11000 choke me
11001 #else
11002 char (*f) () = dlopen;
11003 #endif
11004 #ifdef __cplusplus
11006 #endif
11009 main ()
11011 return f != dlopen;
11013 return 0;
11015 _ACEOF
11016 rm -f conftest.$ac_objext conftest$ac_exeext
11017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11018 (eval $ac_link) 2>conftest.er1
11019 ac_status=$?
11020 grep -v '^ *+' conftest.er1 >conftest.err
11021 rm -f conftest.er1
11022 cat conftest.err >&5
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); } &&
11025 { ac_try='test -z "$ac_c_werror_flag"
11026 || test ! -s conftest.err'
11027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11028 (eval $ac_try) 2>&5
11029 ac_status=$?
11030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031 (exit $ac_status); }; } &&
11032 { ac_try='test -s conftest$ac_exeext'
11033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11034 (eval $ac_try) 2>&5
11035 ac_status=$?
11036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); }; }; then
11038 ac_cv_func_dlopen=yes
11039 else
11040 echo "$as_me: failed program was:" >&5
11041 sed 's/^/| /' conftest.$ac_ext >&5
11043 ac_cv_func_dlopen=no
11045 rm -f conftest.err conftest.$ac_objext \
11046 conftest$ac_exeext conftest.$ac_ext
11048 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11049 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11050 if test $ac_cv_func_dlopen = yes; then
11051 lt_cv_dlopen="dlopen"
11052 else
11053 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11054 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11055 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11056 echo $ECHO_N "(cached) $ECHO_C" >&6
11057 else
11058 ac_check_lib_save_LIBS=$LIBS
11059 LIBS="-ldl $LIBS"
11060 cat >conftest.$ac_ext <<_ACEOF
11061 /* confdefs.h. */
11062 _ACEOF
11063 cat confdefs.h >>conftest.$ac_ext
11064 cat >>conftest.$ac_ext <<_ACEOF
11065 /* end confdefs.h. */
11067 /* Override any gcc2 internal prototype to avoid an error. */
11068 #ifdef __cplusplus
11069 extern "C"
11070 #endif
11071 /* We use char because int might match the return type of a gcc2
11072 builtin and then its argument prototype would still apply. */
11073 char dlopen ();
11075 main ()
11077 dlopen ();
11079 return 0;
11081 _ACEOF
11082 rm -f conftest.$ac_objext conftest$ac_exeext
11083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11084 (eval $ac_link) 2>conftest.er1
11085 ac_status=$?
11086 grep -v '^ *+' conftest.er1 >conftest.err
11087 rm -f conftest.er1
11088 cat conftest.err >&5
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); } &&
11091 { ac_try='test -z "$ac_c_werror_flag"
11092 || test ! -s conftest.err'
11093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11094 (eval $ac_try) 2>&5
11095 ac_status=$?
11096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097 (exit $ac_status); }; } &&
11098 { ac_try='test -s conftest$ac_exeext'
11099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11100 (eval $ac_try) 2>&5
11101 ac_status=$?
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); }; }; then
11104 ac_cv_lib_dl_dlopen=yes
11105 else
11106 echo "$as_me: failed program was:" >&5
11107 sed 's/^/| /' conftest.$ac_ext >&5
11109 ac_cv_lib_dl_dlopen=no
11111 rm -f conftest.err conftest.$ac_objext \
11112 conftest$ac_exeext conftest.$ac_ext
11113 LIBS=$ac_check_lib_save_LIBS
11115 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11116 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11117 if test $ac_cv_lib_dl_dlopen = yes; then
11118 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11119 else
11120 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11121 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11122 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11123 echo $ECHO_N "(cached) $ECHO_C" >&6
11124 else
11125 ac_check_lib_save_LIBS=$LIBS
11126 LIBS="-lsvld $LIBS"
11127 cat >conftest.$ac_ext <<_ACEOF
11128 /* confdefs.h. */
11129 _ACEOF
11130 cat confdefs.h >>conftest.$ac_ext
11131 cat >>conftest.$ac_ext <<_ACEOF
11132 /* end confdefs.h. */
11134 /* Override any gcc2 internal prototype to avoid an error. */
11135 #ifdef __cplusplus
11136 extern "C"
11137 #endif
11138 /* We use char because int might match the return type of a gcc2
11139 builtin and then its argument prototype would still apply. */
11140 char dlopen ();
11142 main ()
11144 dlopen ();
11146 return 0;
11148 _ACEOF
11149 rm -f conftest.$ac_objext conftest$ac_exeext
11150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11151 (eval $ac_link) 2>conftest.er1
11152 ac_status=$?
11153 grep -v '^ *+' conftest.er1 >conftest.err
11154 rm -f conftest.er1
11155 cat conftest.err >&5
11156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157 (exit $ac_status); } &&
11158 { ac_try='test -z "$ac_c_werror_flag"
11159 || test ! -s conftest.err'
11160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11161 (eval $ac_try) 2>&5
11162 ac_status=$?
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); }; } &&
11165 { ac_try='test -s conftest$ac_exeext'
11166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11167 (eval $ac_try) 2>&5
11168 ac_status=$?
11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170 (exit $ac_status); }; }; then
11171 ac_cv_lib_svld_dlopen=yes
11172 else
11173 echo "$as_me: failed program was:" >&5
11174 sed 's/^/| /' conftest.$ac_ext >&5
11176 ac_cv_lib_svld_dlopen=no
11178 rm -f conftest.err conftest.$ac_objext \
11179 conftest$ac_exeext conftest.$ac_ext
11180 LIBS=$ac_check_lib_save_LIBS
11182 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11183 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11184 if test $ac_cv_lib_svld_dlopen = yes; then
11185 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11186 else
11187 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11188 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11189 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11190 echo $ECHO_N "(cached) $ECHO_C" >&6
11191 else
11192 ac_check_lib_save_LIBS=$LIBS
11193 LIBS="-ldld $LIBS"
11194 cat >conftest.$ac_ext <<_ACEOF
11195 /* confdefs.h. */
11196 _ACEOF
11197 cat confdefs.h >>conftest.$ac_ext
11198 cat >>conftest.$ac_ext <<_ACEOF
11199 /* end confdefs.h. */
11201 /* Override any gcc2 internal prototype to avoid an error. */
11202 #ifdef __cplusplus
11203 extern "C"
11204 #endif
11205 /* We use char because int might match the return type of a gcc2
11206 builtin and then its argument prototype would still apply. */
11207 char dld_link ();
11209 main ()
11211 dld_link ();
11213 return 0;
11215 _ACEOF
11216 rm -f conftest.$ac_objext conftest$ac_exeext
11217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11218 (eval $ac_link) 2>conftest.er1
11219 ac_status=$?
11220 grep -v '^ *+' conftest.er1 >conftest.err
11221 rm -f conftest.er1
11222 cat conftest.err >&5
11223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224 (exit $ac_status); } &&
11225 { ac_try='test -z "$ac_c_werror_flag"
11226 || test ! -s conftest.err'
11227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11228 (eval $ac_try) 2>&5
11229 ac_status=$?
11230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231 (exit $ac_status); }; } &&
11232 { ac_try='test -s conftest$ac_exeext'
11233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11234 (eval $ac_try) 2>&5
11235 ac_status=$?
11236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237 (exit $ac_status); }; }; then
11238 ac_cv_lib_dld_dld_link=yes
11239 else
11240 echo "$as_me: failed program was:" >&5
11241 sed 's/^/| /' conftest.$ac_ext >&5
11243 ac_cv_lib_dld_dld_link=no
11245 rm -f conftest.err conftest.$ac_objext \
11246 conftest$ac_exeext conftest.$ac_ext
11247 LIBS=$ac_check_lib_save_LIBS
11249 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11250 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11251 if test $ac_cv_lib_dld_dld_link = yes; then
11252 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11271 esac
11273 if test "x$lt_cv_dlopen" != xno; then
11274 enable_dlopen=yes
11275 else
11276 enable_dlopen=no
11279 case $lt_cv_dlopen in
11280 dlopen)
11281 save_CPPFLAGS="$CPPFLAGS"
11282 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11284 save_LDFLAGS="$LDFLAGS"
11285 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11287 save_LIBS="$LIBS"
11288 LIBS="$lt_cv_dlopen_libs $LIBS"
11290 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11291 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11292 if test "${lt_cv_dlopen_self+set}" = set; then
11293 echo $ECHO_N "(cached) $ECHO_C" >&6
11294 else
11295 if test "$cross_compiling" = yes; then :
11296 lt_cv_dlopen_self=cross
11297 else
11298 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11299 lt_status=$lt_dlunknown
11300 cat > conftest.$ac_ext <<_LT_EOF
11301 #line 11301 "configure"
11302 #include "confdefs.h"
11304 #if HAVE_DLFCN_H
11305 #include <dlfcn.h>
11306 #endif
11308 #include <stdio.h>
11310 #ifdef RTLD_GLOBAL
11311 # define LT_DLGLOBAL RTLD_GLOBAL
11312 #else
11313 # ifdef DL_GLOBAL
11314 # define LT_DLGLOBAL DL_GLOBAL
11315 # else
11316 # define LT_DLGLOBAL 0
11317 # endif
11318 #endif
11320 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11321 find out it does not work in some platform. */
11322 #ifndef LT_DLLAZY_OR_NOW
11323 # ifdef RTLD_LAZY
11324 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11325 # else
11326 # ifdef DL_LAZY
11327 # define LT_DLLAZY_OR_NOW DL_LAZY
11328 # else
11329 # ifdef RTLD_NOW
11330 # define LT_DLLAZY_OR_NOW RTLD_NOW
11331 # else
11332 # ifdef DL_NOW
11333 # define LT_DLLAZY_OR_NOW DL_NOW
11334 # else
11335 # define LT_DLLAZY_OR_NOW 0
11336 # endif
11337 # endif
11338 # endif
11339 # endif
11340 #endif
11342 void fnord() { int i=42;}
11343 int main ()
11345 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11346 int status = $lt_dlunknown;
11348 if (self)
11350 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11351 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11352 /* dlclose (self); */
11354 else
11355 puts (dlerror ());
11357 return status;
11359 _LT_EOF
11360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11361 (eval $ac_link) 2>&5
11362 ac_status=$?
11363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11365 (./conftest; exit; ) >&5 2>/dev/null
11366 lt_status=$?
11367 case x$lt_status in
11368 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11369 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11370 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11371 esac
11372 else :
11373 # compilation failed
11374 lt_cv_dlopen_self=no
11377 rm -fr conftest*
11381 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11382 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11384 if test "x$lt_cv_dlopen_self" = xyes; then
11385 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11386 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11387 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11388 if test "${lt_cv_dlopen_self_static+set}" = set; then
11389 echo $ECHO_N "(cached) $ECHO_C" >&6
11390 else
11391 if test "$cross_compiling" = yes; then :
11392 lt_cv_dlopen_self_static=cross
11393 else
11394 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11395 lt_status=$lt_dlunknown
11396 cat > conftest.$ac_ext <<_LT_EOF
11397 #line 11397 "configure"
11398 #include "confdefs.h"
11400 #if HAVE_DLFCN_H
11401 #include <dlfcn.h>
11402 #endif
11404 #include <stdio.h>
11406 #ifdef RTLD_GLOBAL
11407 # define LT_DLGLOBAL RTLD_GLOBAL
11408 #else
11409 # ifdef DL_GLOBAL
11410 # define LT_DLGLOBAL DL_GLOBAL
11411 # else
11412 # define LT_DLGLOBAL 0
11413 # endif
11414 #endif
11416 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11417 find out it does not work in some platform. */
11418 #ifndef LT_DLLAZY_OR_NOW
11419 # ifdef RTLD_LAZY
11420 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11421 # else
11422 # ifdef DL_LAZY
11423 # define LT_DLLAZY_OR_NOW DL_LAZY
11424 # else
11425 # ifdef RTLD_NOW
11426 # define LT_DLLAZY_OR_NOW RTLD_NOW
11427 # else
11428 # ifdef DL_NOW
11429 # define LT_DLLAZY_OR_NOW DL_NOW
11430 # else
11431 # define LT_DLLAZY_OR_NOW 0
11432 # endif
11433 # endif
11434 # endif
11435 # endif
11436 #endif
11438 void fnord() { int i=42;}
11439 int main ()
11441 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11442 int status = $lt_dlunknown;
11444 if (self)
11446 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11447 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11448 /* dlclose (self); */
11450 else
11451 puts (dlerror ());
11453 return status;
11455 _LT_EOF
11456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11457 (eval $ac_link) 2>&5
11458 ac_status=$?
11459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11461 (./conftest; exit; ) >&5 2>/dev/null
11462 lt_status=$?
11463 case x$lt_status in
11464 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11465 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11466 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11467 esac
11468 else :
11469 # compilation failed
11470 lt_cv_dlopen_self_static=no
11473 rm -fr conftest*
11477 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11478 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11481 CPPFLAGS="$save_CPPFLAGS"
11482 LDFLAGS="$save_LDFLAGS"
11483 LIBS="$save_LIBS"
11485 esac
11487 case $lt_cv_dlopen_self in
11488 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11489 *) enable_dlopen_self=unknown ;;
11490 esac
11492 case $lt_cv_dlopen_self_static in
11493 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11494 *) enable_dlopen_self_static=unknown ;;
11495 esac
11514 striplib=
11515 old_striplib=
11516 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11517 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11518 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11519 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11520 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11521 echo "$as_me:$LINENO: result: yes" >&5
11522 echo "${ECHO_T}yes" >&6
11523 else
11524 # FIXME - insert some real tests, host_os isn't really good enough
11525 case $host_os in
11526 darwin*)
11527 if test -n "$STRIP" ; then
11528 striplib="$STRIP -x"
11529 old_striplib="$STRIP -S"
11530 echo "$as_me:$LINENO: result: yes" >&5
11531 echo "${ECHO_T}yes" >&6
11532 else
11533 echo "$as_me:$LINENO: result: no" >&5
11534 echo "${ECHO_T}no" >&6
11538 echo "$as_me:$LINENO: result: no" >&5
11539 echo "${ECHO_T}no" >&6
11541 esac
11555 # Report which library types will actually be built
11556 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11557 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11558 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11559 echo "${ECHO_T}$can_build_shared" >&6
11561 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11562 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11563 test "$can_build_shared" = "no" && enable_shared=no
11565 # On AIX, shared libraries and static libraries use the same namespace, and
11566 # are all built from PIC.
11567 case $host_os in
11568 aix3*)
11569 test "$enable_shared" = yes && enable_static=no
11570 if test -n "$RANLIB"; then
11571 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11572 postinstall_cmds='$RANLIB $lib'
11576 aix[4-9]*)
11577 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11578 test "$enable_shared" = yes && enable_static=no
11581 esac
11582 echo "$as_me:$LINENO: result: $enable_shared" >&5
11583 echo "${ECHO_T}$enable_shared" >&6
11585 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11586 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11587 # Make sure either enable_shared or enable_static is yes.
11588 test "$enable_shared" = yes || enable_static=yes
11589 echo "$as_me:$LINENO: result: $enable_static" >&5
11590 echo "${ECHO_T}$enable_static" >&6
11596 ac_ext=c
11597 ac_cpp='$CPP $CPPFLAGS'
11598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11602 CC="$lt_save_CC"
11616 ac_config_commands="$ac_config_commands libtool"
11621 # Only expand once:
11625 # Check whether --enable-targets or --disable-targets was given.
11626 if test "${enable_targets+set}" = set; then
11627 enableval="$enable_targets"
11628 case "${enableval}" in
11629 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
11630 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
11631 { (exit 1); exit 1; }; }
11633 no) enable_targets= ;;
11634 *) enable_targets=$enableval ;;
11635 esac
11638 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11640 # Check whether --enable-werror or --disable-werror was given.
11641 if test "${enable_werror+set}" = set; then
11642 enableval="$enable_werror"
11643 case "${enableval}" in
11644 yes | y) ERROR_ON_WARNING="yes" ;;
11645 no | n) ERROR_ON_WARNING="no" ;;
11646 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
11647 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
11648 { (exit 1); exit 1; }; } ;;
11649 esac
11652 # Enable -Wno-format by default when using gcc on mingw
11653 case "${host}" in
11654 *-*-mingw32*)
11655 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11656 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11659 *) ;;
11660 esac
11662 # Enable -Werror by default when using gcc
11663 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11664 ERROR_ON_WARNING=yes
11667 NO_WERROR=
11668 if test "${ERROR_ON_WARNING}" = yes ; then
11669 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11670 NO_WERROR="-Wno-error"
11673 if test "${GCC}" = yes ; then
11674 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11677 # Check whether --enable-build-warnings or --disable-build-warnings was given.
11678 if test "${enable_build_warnings+set}" = set; then
11679 enableval="$enable_build_warnings"
11680 case "${enableval}" in
11681 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11682 no) if test "${GCC}" = yes ; then
11683 WARN_CFLAGS="-w"
11684 fi;;
11685 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11686 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
11687 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11688 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
11689 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11690 esac
11693 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11694 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
11701 ac_config_headers="$ac_config_headers config.h:config.in"
11704 if test -z "$target" ; then
11705 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
11706 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
11707 { (exit 1); exit 1; }; }
11709 if test -z "$host" ; then
11710 { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5
11711 echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;}
11712 { (exit 1); exit 1; }; }
11715 for ac_prog in 'bison -y' byacc
11717 # Extract the first word of "$ac_prog", so it can be a program name with args.
11718 set dummy $ac_prog; ac_word=$2
11719 echo "$as_me:$LINENO: checking for $ac_word" >&5
11720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11721 if test "${ac_cv_prog_YACC+set}" = set; then
11722 echo $ECHO_N "(cached) $ECHO_C" >&6
11723 else
11724 if test -n "$YACC"; then
11725 ac_cv_prog_YACC="$YACC" # Let the user override the test.
11726 else
11727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11728 for as_dir in $PATH
11730 IFS=$as_save_IFS
11731 test -z "$as_dir" && as_dir=.
11732 for ac_exec_ext in '' $ac_executable_extensions; do
11733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11734 ac_cv_prog_YACC="$ac_prog"
11735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11736 break 2
11738 done
11739 done
11743 YACC=$ac_cv_prog_YACC
11744 if test -n "$YACC"; then
11745 echo "$as_me:$LINENO: result: $YACC" >&5
11746 echo "${ECHO_T}$YACC" >&6
11747 else
11748 echo "$as_me:$LINENO: result: no" >&5
11749 echo "${ECHO_T}no" >&6
11752 test -n "$YACC" && break
11753 done
11754 test -n "$YACC" || YACC="yacc"
11756 for ac_prog in flex lex
11758 # Extract the first word of "$ac_prog", so it can be a program name with args.
11759 set dummy $ac_prog; ac_word=$2
11760 echo "$as_me:$LINENO: checking for $ac_word" >&5
11761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11762 if test "${ac_cv_prog_LEX+set}" = set; then
11763 echo $ECHO_N "(cached) $ECHO_C" >&6
11764 else
11765 if test -n "$LEX"; then
11766 ac_cv_prog_LEX="$LEX" # Let the user override the test.
11767 else
11768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11769 for as_dir in $PATH
11771 IFS=$as_save_IFS
11772 test -z "$as_dir" && as_dir=.
11773 for ac_exec_ext in '' $ac_executable_extensions; do
11774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11775 ac_cv_prog_LEX="$ac_prog"
11776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11777 break 2
11779 done
11780 done
11784 LEX=$ac_cv_prog_LEX
11785 if test -n "$LEX"; then
11786 echo "$as_me:$LINENO: result: $LEX" >&5
11787 echo "${ECHO_T}$LEX" >&6
11788 else
11789 echo "$as_me:$LINENO: result: no" >&5
11790 echo "${ECHO_T}no" >&6
11793 test -n "$LEX" && break
11794 done
11795 test -n "$LEX" || LEX=":"
11797 if test -z "$LEXLIB"
11798 then
11799 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
11800 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
11801 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
11802 echo $ECHO_N "(cached) $ECHO_C" >&6
11803 else
11804 ac_check_lib_save_LIBS=$LIBS
11805 LIBS="-lfl $LIBS"
11806 cat >conftest.$ac_ext <<_ACEOF
11807 /* confdefs.h. */
11808 _ACEOF
11809 cat confdefs.h >>conftest.$ac_ext
11810 cat >>conftest.$ac_ext <<_ACEOF
11811 /* end confdefs.h. */
11813 /* Override any gcc2 internal prototype to avoid an error. */
11814 #ifdef __cplusplus
11815 extern "C"
11816 #endif
11817 /* We use char because int might match the return type of a gcc2
11818 builtin and then its argument prototype would still apply. */
11819 char yywrap ();
11821 main ()
11823 yywrap ();
11825 return 0;
11827 _ACEOF
11828 rm -f conftest.$ac_objext conftest$ac_exeext
11829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11830 (eval $ac_link) 2>conftest.er1
11831 ac_status=$?
11832 grep -v '^ *+' conftest.er1 >conftest.err
11833 rm -f conftest.er1
11834 cat conftest.err >&5
11835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836 (exit $ac_status); } &&
11837 { ac_try='test -z "$ac_c_werror_flag"
11838 || test ! -s conftest.err'
11839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11840 (eval $ac_try) 2>&5
11841 ac_status=$?
11842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843 (exit $ac_status); }; } &&
11844 { ac_try='test -s conftest$ac_exeext'
11845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11846 (eval $ac_try) 2>&5
11847 ac_status=$?
11848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); }; }; then
11850 ac_cv_lib_fl_yywrap=yes
11851 else
11852 echo "$as_me: failed program was:" >&5
11853 sed 's/^/| /' conftest.$ac_ext >&5
11855 ac_cv_lib_fl_yywrap=no
11857 rm -f conftest.err conftest.$ac_objext \
11858 conftest$ac_exeext conftest.$ac_ext
11859 LIBS=$ac_check_lib_save_LIBS
11861 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
11862 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
11863 if test $ac_cv_lib_fl_yywrap = yes; then
11864 LEXLIB="-lfl"
11865 else
11866 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
11867 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
11868 if test "${ac_cv_lib_l_yywrap+set}" = set; then
11869 echo $ECHO_N "(cached) $ECHO_C" >&6
11870 else
11871 ac_check_lib_save_LIBS=$LIBS
11872 LIBS="-ll $LIBS"
11873 cat >conftest.$ac_ext <<_ACEOF
11874 /* confdefs.h. */
11875 _ACEOF
11876 cat confdefs.h >>conftest.$ac_ext
11877 cat >>conftest.$ac_ext <<_ACEOF
11878 /* end confdefs.h. */
11880 /* Override any gcc2 internal prototype to avoid an error. */
11881 #ifdef __cplusplus
11882 extern "C"
11883 #endif
11884 /* We use char because int might match the return type of a gcc2
11885 builtin and then its argument prototype would still apply. */
11886 char yywrap ();
11888 main ()
11890 yywrap ();
11892 return 0;
11894 _ACEOF
11895 rm -f conftest.$ac_objext conftest$ac_exeext
11896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11897 (eval $ac_link) 2>conftest.er1
11898 ac_status=$?
11899 grep -v '^ *+' conftest.er1 >conftest.err
11900 rm -f conftest.er1
11901 cat conftest.err >&5
11902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903 (exit $ac_status); } &&
11904 { ac_try='test -z "$ac_c_werror_flag"
11905 || test ! -s conftest.err'
11906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11907 (eval $ac_try) 2>&5
11908 ac_status=$?
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); }; } &&
11911 { ac_try='test -s conftest$ac_exeext'
11912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11913 (eval $ac_try) 2>&5
11914 ac_status=$?
11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 (exit $ac_status); }; }; then
11917 ac_cv_lib_l_yywrap=yes
11918 else
11919 echo "$as_me: failed program was:" >&5
11920 sed 's/^/| /' conftest.$ac_ext >&5
11922 ac_cv_lib_l_yywrap=no
11924 rm -f conftest.err conftest.$ac_objext \
11925 conftest$ac_exeext conftest.$ac_ext
11926 LIBS=$ac_check_lib_save_LIBS
11928 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
11929 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
11930 if test $ac_cv_lib_l_yywrap = yes; then
11931 LEXLIB="-ll"
11938 if test "x$LEX" != "x:"; then
11939 echo "$as_me:$LINENO: checking lex output file root" >&5
11940 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
11941 if test "${ac_cv_prog_lex_root+set}" = set; then
11942 echo $ECHO_N "(cached) $ECHO_C" >&6
11943 else
11944 # The minimal lex program is just a single line: %%. But some broken lexes
11945 # (Solaris, I think it was) want two %% lines, so accommodate them.
11946 cat >conftest.l <<_ACEOF
11949 _ACEOF
11950 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
11951 (eval $LEX conftest.l) 2>&5
11952 ac_status=$?
11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); }
11955 if test -f lex.yy.c; then
11956 ac_cv_prog_lex_root=lex.yy
11957 elif test -f lexyy.c; then
11958 ac_cv_prog_lex_root=lexyy
11959 else
11960 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
11961 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
11962 { (exit 1); exit 1; }; }
11965 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
11966 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
11967 rm -f conftest.l
11968 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
11970 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
11971 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
11972 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
11973 echo $ECHO_N "(cached) $ECHO_C" >&6
11974 else
11975 # POSIX says lex can declare yytext either as a pointer or an array; the
11976 # default is implementation-dependent. Figure out which it is, since
11977 # not all implementations provide the %pointer and %array declarations.
11978 ac_cv_prog_lex_yytext_pointer=no
11979 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
11980 ac_save_LIBS=$LIBS
11981 LIBS="$LIBS $LEXLIB"
11982 cat >conftest.$ac_ext <<_ACEOF
11983 `cat $LEX_OUTPUT_ROOT.c`
11984 _ACEOF
11985 rm -f conftest.$ac_objext conftest$ac_exeext
11986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11987 (eval $ac_link) 2>conftest.er1
11988 ac_status=$?
11989 grep -v '^ *+' conftest.er1 >conftest.err
11990 rm -f conftest.er1
11991 cat conftest.err >&5
11992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993 (exit $ac_status); } &&
11994 { ac_try='test -z "$ac_c_werror_flag"
11995 || test ! -s conftest.err'
11996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11997 (eval $ac_try) 2>&5
11998 ac_status=$?
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); }; } &&
12001 { ac_try='test -s conftest$ac_exeext'
12002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12003 (eval $ac_try) 2>&5
12004 ac_status=$?
12005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006 (exit $ac_status); }; }; then
12007 ac_cv_prog_lex_yytext_pointer=yes
12008 else
12009 echo "$as_me: failed program was:" >&5
12010 sed 's/^/| /' conftest.$ac_ext >&5
12013 rm -f conftest.err conftest.$ac_objext \
12014 conftest$ac_exeext conftest.$ac_ext
12015 LIBS=$ac_save_LIBS
12016 rm -f "${LEX_OUTPUT_ROOT}.c"
12019 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
12020 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
12021 if test $ac_cv_prog_lex_yytext_pointer = yes; then
12023 cat >>confdefs.h <<\_ACEOF
12024 #define YYTEXT_POINTER 1
12025 _ACEOF
12030 if test "$LEX" = :; then
12031 LEX=${am_missing_run}flex
12034 ALL_LINGUAS="da es fi fr id ja ro ru rw sk sv tr uk vi zh_CN zh_TW"
12035 # If we haven't got the data from the intl directory,
12036 # assume NLS is disabled.
12037 USE_NLS=no
12038 LIBINTL=
12039 LIBINTL_DEP=
12040 INCINTL=
12041 XGETTEXT=
12042 GMSGFMT=
12043 POSUB=
12045 if test -f ../intl/config.intl; then
12046 . ../intl/config.intl
12048 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12049 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12050 if test x"$USE_NLS" != xyes; then
12051 echo "$as_me:$LINENO: result: no" >&5
12052 echo "${ECHO_T}no" >&6
12053 else
12054 echo "$as_me:$LINENO: result: yes" >&5
12055 echo "${ECHO_T}yes" >&6
12057 cat >>confdefs.h <<\_ACEOF
12058 #define ENABLE_NLS 1
12059 _ACEOF
12062 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12063 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12064 # Look for .po and .gmo files in the source directory.
12065 CATALOGS=
12066 XLINGUAS=
12067 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12068 # If there aren't any .gmo files the shell will give us the
12069 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12070 # weeded out.
12071 case "$cat" in *\**)
12072 continue;;
12073 esac
12074 # The quadruple backslash is collapsed to a double backslash
12075 # by the backticks, then collapsed again by the double quotes,
12076 # leaving us with one backslash in the sed expression (right
12077 # before the dot that mustn't act as a wildcard).
12078 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12079 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12080 # The user is allowed to set LINGUAS to a list of languages to
12081 # install catalogs for. If it's empty that means "all of them."
12082 if test "x$LINGUAS" = x; then
12083 CATALOGS="$CATALOGS $cat"
12084 XLINGUAS="$XLINGUAS $lang"
12085 else
12086 case "$LINGUAS" in *$lang*)
12087 CATALOGS="$CATALOGS $cat"
12088 XLINGUAS="$XLINGUAS $lang"
12090 esac
12092 done
12093 LINGUAS="$XLINGUAS"
12094 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12095 echo "${ECHO_T}$LINGUAS" >&6
12098 DATADIRNAME=share
12100 INSTOBJEXT=.mo
12102 GENCAT=gencat
12104 CATOBJEXT=.gmo
12108 MKINSTALLDIRS=
12109 if test -n "$ac_aux_dir"; then
12110 case "$ac_aux_dir" in
12111 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12112 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12113 esac
12115 if test -z "$MKINSTALLDIRS"; then
12116 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12121 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12122 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12123 # Check whether --enable-nls or --disable-nls was given.
12124 if test "${enable_nls+set}" = set; then
12125 enableval="$enable_nls"
12126 USE_NLS=$enableval
12127 else
12128 USE_NLS=yes
12130 echo "$as_me:$LINENO: result: $USE_NLS" >&5
12131 echo "${ECHO_T}$USE_NLS" >&6
12138 # Prepare PATH_SEPARATOR.
12139 # The user is always right.
12140 if test "${PATH_SEPARATOR+set}" != set; then
12141 echo "#! /bin/sh" >conf$$.sh
12142 echo "exit 0" >>conf$$.sh
12143 chmod +x conf$$.sh
12144 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12145 PATH_SEPARATOR=';'
12146 else
12147 PATH_SEPARATOR=:
12149 rm -f conf$$.sh
12152 # Find out how to test for executable files. Don't use a zero-byte file,
12153 # as systems may use methods other than mode bits to determine executability.
12154 cat >conf$$.file <<_ASEOF
12155 #! /bin/sh
12156 exit 0
12157 _ASEOF
12158 chmod +x conf$$.file
12159 if test -x conf$$.file >/dev/null 2>&1; then
12160 ac_executable_p="test -x"
12161 else
12162 ac_executable_p="test -f"
12164 rm -f conf$$.file
12166 # Extract the first word of "msgfmt", so it can be a program name with args.
12167 set dummy msgfmt; ac_word=$2
12168 echo "$as_me:$LINENO: checking for $ac_word" >&5
12169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12170 if test "${ac_cv_path_MSGFMT+set}" = set; then
12171 echo $ECHO_N "(cached) $ECHO_C" >&6
12172 else
12173 case "$MSGFMT" in
12174 [\\/]* | ?:[\\/]*)
12175 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12178 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12179 for ac_dir in $PATH; do
12180 IFS="$ac_save_IFS"
12181 test -z "$ac_dir" && ac_dir=.
12182 for ac_exec_ext in '' $ac_executable_extensions; do
12183 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12184 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12185 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12186 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12187 break 2
12190 done
12191 done
12192 IFS="$ac_save_IFS"
12193 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12195 esac
12197 MSGFMT="$ac_cv_path_MSGFMT"
12198 if test "$MSGFMT" != ":"; then
12199 echo "$as_me:$LINENO: result: $MSGFMT" >&5
12200 echo "${ECHO_T}$MSGFMT" >&6
12201 else
12202 echo "$as_me:$LINENO: result: no" >&5
12203 echo "${ECHO_T}no" >&6
12206 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12207 set dummy gmsgfmt; ac_word=$2
12208 echo "$as_me:$LINENO: checking for $ac_word" >&5
12209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12210 if test "${ac_cv_path_GMSGFMT+set}" = set; then
12211 echo $ECHO_N "(cached) $ECHO_C" >&6
12212 else
12213 case $GMSGFMT in
12214 [\\/]* | ?:[\\/]*)
12215 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12219 for as_dir in $PATH
12221 IFS=$as_save_IFS
12222 test -z "$as_dir" && as_dir=.
12223 for ac_exec_ext in '' $ac_executable_extensions; do
12224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12225 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12227 break 2
12229 done
12230 done
12232 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12234 esac
12236 GMSGFMT=$ac_cv_path_GMSGFMT
12238 if test -n "$GMSGFMT"; then
12239 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
12240 echo "${ECHO_T}$GMSGFMT" >&6
12241 else
12242 echo "$as_me:$LINENO: result: no" >&5
12243 echo "${ECHO_T}no" >&6
12248 # Prepare PATH_SEPARATOR.
12249 # The user is always right.
12250 if test "${PATH_SEPARATOR+set}" != set; then
12251 echo "#! /bin/sh" >conf$$.sh
12252 echo "exit 0" >>conf$$.sh
12253 chmod +x conf$$.sh
12254 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12255 PATH_SEPARATOR=';'
12256 else
12257 PATH_SEPARATOR=:
12259 rm -f conf$$.sh
12262 # Find out how to test for executable files. Don't use a zero-byte file,
12263 # as systems may use methods other than mode bits to determine executability.
12264 cat >conf$$.file <<_ASEOF
12265 #! /bin/sh
12266 exit 0
12267 _ASEOF
12268 chmod +x conf$$.file
12269 if test -x conf$$.file >/dev/null 2>&1; then
12270 ac_executable_p="test -x"
12271 else
12272 ac_executable_p="test -f"
12274 rm -f conf$$.file
12276 # Extract the first word of "xgettext", so it can be a program name with args.
12277 set dummy xgettext; ac_word=$2
12278 echo "$as_me:$LINENO: checking for $ac_word" >&5
12279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12280 if test "${ac_cv_path_XGETTEXT+set}" = set; then
12281 echo $ECHO_N "(cached) $ECHO_C" >&6
12282 else
12283 case "$XGETTEXT" in
12284 [\\/]* | ?:[\\/]*)
12285 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12288 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12289 for ac_dir in $PATH; do
12290 IFS="$ac_save_IFS"
12291 test -z "$ac_dir" && ac_dir=.
12292 for ac_exec_ext in '' $ac_executable_extensions; do
12293 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12294 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12295 (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
12296 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12297 break 2
12300 done
12301 done
12302 IFS="$ac_save_IFS"
12303 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12305 esac
12307 XGETTEXT="$ac_cv_path_XGETTEXT"
12308 if test "$XGETTEXT" != ":"; then
12309 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
12310 echo "${ECHO_T}$XGETTEXT" >&6
12311 else
12312 echo "$as_me:$LINENO: result: no" >&5
12313 echo "${ECHO_T}no" >&6
12316 rm -f messages.po
12319 # Prepare PATH_SEPARATOR.
12320 # The user is always right.
12321 if test "${PATH_SEPARATOR+set}" != set; then
12322 echo "#! /bin/sh" >conf$$.sh
12323 echo "exit 0" >>conf$$.sh
12324 chmod +x conf$$.sh
12325 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12326 PATH_SEPARATOR=';'
12327 else
12328 PATH_SEPARATOR=:
12330 rm -f conf$$.sh
12333 # Find out how to test for executable files. Don't use a zero-byte file,
12334 # as systems may use methods other than mode bits to determine executability.
12335 cat >conf$$.file <<_ASEOF
12336 #! /bin/sh
12337 exit 0
12338 _ASEOF
12339 chmod +x conf$$.file
12340 if test -x conf$$.file >/dev/null 2>&1; then
12341 ac_executable_p="test -x"
12342 else
12343 ac_executable_p="test -f"
12345 rm -f conf$$.file
12347 # Extract the first word of "msgmerge", so it can be a program name with args.
12348 set dummy msgmerge; ac_word=$2
12349 echo "$as_me:$LINENO: checking for $ac_word" >&5
12350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12351 if test "${ac_cv_path_MSGMERGE+set}" = set; then
12352 echo $ECHO_N "(cached) $ECHO_C" >&6
12353 else
12354 case "$MSGMERGE" in
12355 [\\/]* | ?:[\\/]*)
12356 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12359 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12360 for ac_dir in $PATH; do
12361 IFS="$ac_save_IFS"
12362 test -z "$ac_dir" && ac_dir=.
12363 for ac_exec_ext in '' $ac_executable_extensions; do
12364 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12365 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12366 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12367 break 2
12370 done
12371 done
12372 IFS="$ac_save_IFS"
12373 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12375 esac
12377 MSGMERGE="$ac_cv_path_MSGMERGE"
12378 if test "$MSGMERGE" != ":"; then
12379 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
12380 echo "${ECHO_T}$MSGMERGE" >&6
12381 else
12382 echo "$as_me:$LINENO: result: no" >&5
12383 echo "${ECHO_T}no" >&6
12387 if test "$GMSGFMT" != ":"; then
12388 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12389 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12391 else
12392 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12393 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12394 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
12395 GMSGFMT=":"
12399 if test "$XGETTEXT" != ":"; then
12400 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12401 (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
12403 else
12404 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
12405 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
12406 XGETTEXT=":"
12408 rm -f messages.po
12411 ac_config_commands="$ac_config_commands default-1"
12415 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12416 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12417 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12418 if test "${enable_maintainer_mode+set}" = set; then
12419 enableval="$enable_maintainer_mode"
12420 USE_MAINTAINER_MODE=$enableval
12421 else
12422 USE_MAINTAINER_MODE=no
12424 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12425 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
12428 if test $USE_MAINTAINER_MODE = yes; then
12429 MAINTAINER_MODE_TRUE=
12430 MAINTAINER_MODE_FALSE='#'
12431 else
12432 MAINTAINER_MODE_TRUE='#'
12433 MAINTAINER_MODE_FALSE=
12436 MAINT=$MAINTAINER_MODE_TRUE
12441 if false; then
12442 GENINSRC_NEVER_TRUE=
12443 GENINSRC_NEVER_FALSE='#'
12444 else
12445 GENINSRC_NEVER_TRUE='#'
12446 GENINSRC_NEVER_FALSE=
12450 if test -n "$EXEEXT"; then
12452 cat >>confdefs.h <<\_ACEOF
12453 #define HAVE_EXECUTABLE_SUFFIX 1
12454 _ACEOF
12458 cat >>confdefs.h <<_ACEOF
12459 #define EXECUTABLE_SUFFIX "${EXEEXT}"
12460 _ACEOF
12463 # host-specific stuff:
12465 HDEFINES=
12467 . ${srcdir}/../bfd/configure.host
12470 AR=${AR-ar}
12472 if test -n "$ac_tool_prefix"; then
12473 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12474 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12475 echo "$as_me:$LINENO: checking for $ac_word" >&5
12476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12477 if test "${ac_cv_prog_RANLIB+set}" = set; then
12478 echo $ECHO_N "(cached) $ECHO_C" >&6
12479 else
12480 if test -n "$RANLIB"; then
12481 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12482 else
12483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12484 for as_dir in $PATH
12486 IFS=$as_save_IFS
12487 test -z "$as_dir" && as_dir=.
12488 for ac_exec_ext in '' $ac_executable_extensions; do
12489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12490 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12492 break 2
12494 done
12495 done
12499 RANLIB=$ac_cv_prog_RANLIB
12500 if test -n "$RANLIB"; then
12501 echo "$as_me:$LINENO: result: $RANLIB" >&5
12502 echo "${ECHO_T}$RANLIB" >&6
12503 else
12504 echo "$as_me:$LINENO: result: no" >&5
12505 echo "${ECHO_T}no" >&6
12509 if test -z "$ac_cv_prog_RANLIB"; then
12510 ac_ct_RANLIB=$RANLIB
12511 # Extract the first word of "ranlib", so it can be a program name with args.
12512 set dummy ranlib; ac_word=$2
12513 echo "$as_me:$LINENO: checking for $ac_word" >&5
12514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12515 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12516 echo $ECHO_N "(cached) $ECHO_C" >&6
12517 else
12518 if test -n "$ac_ct_RANLIB"; then
12519 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12520 else
12521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12522 for as_dir in $PATH
12524 IFS=$as_save_IFS
12525 test -z "$as_dir" && as_dir=.
12526 for ac_exec_ext in '' $ac_executable_extensions; do
12527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12528 ac_cv_prog_ac_ct_RANLIB="ranlib"
12529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12530 break 2
12532 done
12533 done
12535 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
12538 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12539 if test -n "$ac_ct_RANLIB"; then
12540 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12541 echo "${ECHO_T}$ac_ct_RANLIB" >&6
12542 else
12543 echo "$as_me:$LINENO: result: no" >&5
12544 echo "${ECHO_T}no" >&6
12547 RANLIB=$ac_ct_RANLIB
12548 else
12549 RANLIB="$ac_cv_prog_RANLIB"
12552 # Find a good install program. We prefer a C program (faster),
12553 # so one script is as good as another. But avoid the broken or
12554 # incompatible versions:
12555 # SysV /etc/install, /usr/sbin/install
12556 # SunOS /usr/etc/install
12557 # IRIX /sbin/install
12558 # AIX /bin/install
12559 # AmigaOS /C/install, which installs bootblocks on floppy discs
12560 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12561 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
12562 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12563 # OS/2's system install, which has a completely different semantic
12564 # ./install, which can be erroneously created by make from ./install.sh.
12565 # Reject install programs that cannot install multiple files.
12566 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12567 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12568 if test -z "$INSTALL"; then
12569 if test "${ac_cv_path_install+set}" = set; then
12570 echo $ECHO_N "(cached) $ECHO_C" >&6
12571 else
12572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12573 for as_dir in $PATH
12575 IFS=$as_save_IFS
12576 test -z "$as_dir" && as_dir=.
12577 # Account for people who put trailing slashes in PATH elements.
12578 case $as_dir/ in
12579 ./ | .// | /cC/* | \
12580 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12581 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12582 /usr/ucb/* ) ;;
12584 # OSF1 and SCO ODT 3.0 have their own names for install.
12585 # Don't use installbsd from OSF since it installs stuff as root
12586 # by default.
12587 for ac_prog in ginstall scoinst install; do
12588 for ac_exec_ext in '' $ac_executable_extensions; do
12589 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12590 if test $ac_prog = install &&
12591 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12592 # AIX install. It has an incompatible calling convention.
12594 elif test $ac_prog = install &&
12595 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12596 # program-specific install script used by HP pwplus--don't use.
12598 else
12599 rm -rf conftest.one conftest.two conftest.dir
12600 echo one > conftest.one
12601 echo two > conftest.two
12602 mkdir conftest.dir
12603 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
12604 test -s conftest.one && test -s conftest.two &&
12605 test -s conftest.dir/conftest.one &&
12606 test -s conftest.dir/conftest.two
12607 then
12608 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12609 break 3
12613 done
12614 done
12616 esac
12617 done
12619 rm -rf conftest.one conftest.two conftest.dir
12622 if test "${ac_cv_path_install+set}" = set; then
12623 INSTALL=$ac_cv_path_install
12624 else
12625 # As a last resort, use the slow shell script. Don't cache a
12626 # value for INSTALL within a source directory, because that will
12627 # break other packages using the cache if that directory is
12628 # removed, or if the value is a relative name.
12629 INSTALL=$ac_install_sh
12632 echo "$as_me:$LINENO: result: $INSTALL" >&5
12633 echo "${ECHO_T}$INSTALL" >&6
12635 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12636 # It thinks the first close brace ends the variable substitution.
12637 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12639 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12641 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12644 # Put a plausible default for CC_FOR_BUILD in Makefile.
12645 if test -z "$CC_FOR_BUILD"; then
12646 if test "x$cross_compiling" = "xno"; then
12647 CC_FOR_BUILD='$(CC)'
12648 else
12649 CC_FOR_BUILD=gcc
12653 # Also set EXEEXT_FOR_BUILD.
12654 if test "x$cross_compiling" = "xno"; then
12655 EXEEXT_FOR_BUILD='$(EXEEXT)'
12656 else
12657 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
12658 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
12659 if test "${bfd_cv_build_exeext+set}" = set; then
12660 echo $ECHO_N "(cached) $ECHO_C" >&6
12661 else
12662 rm -f conftest*
12663 echo 'int main () { return 0; }' > conftest.c
12664 bfd_cv_build_exeext=
12665 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
12666 for file in conftest.*; do
12667 case $file in
12668 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
12669 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
12670 esac
12671 done
12672 rm -f conftest*
12673 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
12675 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
12676 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
12677 EXEEXT_FOR_BUILD=""
12678 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
12682 DEMANGLER_NAME=c++filt
12683 case "${host}" in
12684 *-*-go32* | *-*-msdos*)
12685 DEMANGLER_NAME=cxxfilt
12686 esac
12697 for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h limits.h sys/param.h
12699 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12701 echo "$as_me:$LINENO: checking for $ac_header" >&5
12702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12704 echo $ECHO_N "(cached) $ECHO_C" >&6
12706 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12707 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12708 else
12709 # Is the header compilable?
12710 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12711 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12712 cat >conftest.$ac_ext <<_ACEOF
12713 /* confdefs.h. */
12714 _ACEOF
12715 cat confdefs.h >>conftest.$ac_ext
12716 cat >>conftest.$ac_ext <<_ACEOF
12717 /* end confdefs.h. */
12718 $ac_includes_default
12719 #include <$ac_header>
12720 _ACEOF
12721 rm -f conftest.$ac_objext
12722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12723 (eval $ac_compile) 2>conftest.er1
12724 ac_status=$?
12725 grep -v '^ *+' conftest.er1 >conftest.err
12726 rm -f conftest.er1
12727 cat conftest.err >&5
12728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729 (exit $ac_status); } &&
12730 { ac_try='test -z "$ac_c_werror_flag"
12731 || test ! -s conftest.err'
12732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12733 (eval $ac_try) 2>&5
12734 ac_status=$?
12735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736 (exit $ac_status); }; } &&
12737 { ac_try='test -s conftest.$ac_objext'
12738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12739 (eval $ac_try) 2>&5
12740 ac_status=$?
12741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); }; }; then
12743 ac_header_compiler=yes
12744 else
12745 echo "$as_me: failed program was:" >&5
12746 sed 's/^/| /' conftest.$ac_ext >&5
12748 ac_header_compiler=no
12750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12751 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12752 echo "${ECHO_T}$ac_header_compiler" >&6
12754 # Is the header present?
12755 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12756 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12757 cat >conftest.$ac_ext <<_ACEOF
12758 /* confdefs.h. */
12759 _ACEOF
12760 cat confdefs.h >>conftest.$ac_ext
12761 cat >>conftest.$ac_ext <<_ACEOF
12762 /* end confdefs.h. */
12763 #include <$ac_header>
12764 _ACEOF
12765 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12766 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12767 ac_status=$?
12768 grep -v '^ *+' conftest.er1 >conftest.err
12769 rm -f conftest.er1
12770 cat conftest.err >&5
12771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772 (exit $ac_status); } >/dev/null; then
12773 if test -s conftest.err; then
12774 ac_cpp_err=$ac_c_preproc_warn_flag
12775 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12776 else
12777 ac_cpp_err=
12779 else
12780 ac_cpp_err=yes
12782 if test -z "$ac_cpp_err"; then
12783 ac_header_preproc=yes
12784 else
12785 echo "$as_me: failed program was:" >&5
12786 sed 's/^/| /' conftest.$ac_ext >&5
12788 ac_header_preproc=no
12790 rm -f conftest.err conftest.$ac_ext
12791 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12792 echo "${ECHO_T}$ac_header_preproc" >&6
12794 # So? What about this header?
12795 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12796 yes:no: )
12797 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12798 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12800 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12801 ac_header_preproc=yes
12803 no:yes:* )
12804 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12805 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12806 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12807 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12808 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12809 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12810 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12811 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12813 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12814 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12815 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12817 cat <<\_ASBOX
12818 ## ------------------------------------------ ##
12819 ## Report this to the AC_PACKAGE_NAME lists. ##
12820 ## ------------------------------------------ ##
12821 _ASBOX
12823 sed "s/^/$as_me: WARNING: /" >&2
12825 esac
12826 echo "$as_me:$LINENO: checking for $ac_header" >&5
12827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12828 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12829 echo $ECHO_N "(cached) $ECHO_C" >&6
12830 else
12831 eval "$as_ac_Header=\$ac_header_preproc"
12833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12834 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12837 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12838 cat >>confdefs.h <<_ACEOF
12839 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12840 _ACEOF
12844 done
12846 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
12847 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
12848 if test "${ac_cv_header_sys_wait_h+set}" = set; then
12849 echo $ECHO_N "(cached) $ECHO_C" >&6
12850 else
12851 cat >conftest.$ac_ext <<_ACEOF
12852 /* confdefs.h. */
12853 _ACEOF
12854 cat confdefs.h >>conftest.$ac_ext
12855 cat >>conftest.$ac_ext <<_ACEOF
12856 /* end confdefs.h. */
12857 #include <sys/types.h>
12858 #include <sys/wait.h>
12859 #ifndef WEXITSTATUS
12860 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
12861 #endif
12862 #ifndef WIFEXITED
12863 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12864 #endif
12867 main ()
12869 int s;
12870 wait (&s);
12871 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12873 return 0;
12875 _ACEOF
12876 rm -f conftest.$ac_objext
12877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12878 (eval $ac_compile) 2>conftest.er1
12879 ac_status=$?
12880 grep -v '^ *+' conftest.er1 >conftest.err
12881 rm -f conftest.er1
12882 cat conftest.err >&5
12883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884 (exit $ac_status); } &&
12885 { ac_try='test -z "$ac_c_werror_flag"
12886 || test ! -s conftest.err'
12887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12888 (eval $ac_try) 2>&5
12889 ac_status=$?
12890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12891 (exit $ac_status); }; } &&
12892 { ac_try='test -s conftest.$ac_objext'
12893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12894 (eval $ac_try) 2>&5
12895 ac_status=$?
12896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897 (exit $ac_status); }; }; then
12898 ac_cv_header_sys_wait_h=yes
12899 else
12900 echo "$as_me: failed program was:" >&5
12901 sed 's/^/| /' conftest.$ac_ext >&5
12903 ac_cv_header_sys_wait_h=no
12905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12907 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
12908 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
12909 if test $ac_cv_header_sys_wait_h = yes; then
12911 cat >>confdefs.h <<\_ACEOF
12912 #define HAVE_SYS_WAIT_H 1
12913 _ACEOF
12917 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12918 # for constant arguments. Useless!
12919 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12920 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12921 if test "${ac_cv_working_alloca_h+set}" = set; then
12922 echo $ECHO_N "(cached) $ECHO_C" >&6
12923 else
12924 cat >conftest.$ac_ext <<_ACEOF
12925 /* confdefs.h. */
12926 _ACEOF
12927 cat confdefs.h >>conftest.$ac_ext
12928 cat >>conftest.$ac_ext <<_ACEOF
12929 /* end confdefs.h. */
12930 #include <alloca.h>
12932 main ()
12934 char *p = (char *) alloca (2 * sizeof (int));
12936 return 0;
12938 _ACEOF
12939 rm -f conftest.$ac_objext conftest$ac_exeext
12940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12941 (eval $ac_link) 2>conftest.er1
12942 ac_status=$?
12943 grep -v '^ *+' conftest.er1 >conftest.err
12944 rm -f conftest.er1
12945 cat conftest.err >&5
12946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12947 (exit $ac_status); } &&
12948 { ac_try='test -z "$ac_c_werror_flag"
12949 || test ! -s conftest.err'
12950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12951 (eval $ac_try) 2>&5
12952 ac_status=$?
12953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954 (exit $ac_status); }; } &&
12955 { ac_try='test -s conftest$ac_exeext'
12956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12957 (eval $ac_try) 2>&5
12958 ac_status=$?
12959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960 (exit $ac_status); }; }; then
12961 ac_cv_working_alloca_h=yes
12962 else
12963 echo "$as_me: failed program was:" >&5
12964 sed 's/^/| /' conftest.$ac_ext >&5
12966 ac_cv_working_alloca_h=no
12968 rm -f conftest.err conftest.$ac_objext \
12969 conftest$ac_exeext conftest.$ac_ext
12971 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12972 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12973 if test $ac_cv_working_alloca_h = yes; then
12975 cat >>confdefs.h <<\_ACEOF
12976 #define HAVE_ALLOCA_H 1
12977 _ACEOF
12981 echo "$as_me:$LINENO: checking for alloca" >&5
12982 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12983 if test "${ac_cv_func_alloca_works+set}" = set; then
12984 echo $ECHO_N "(cached) $ECHO_C" >&6
12985 else
12986 cat >conftest.$ac_ext <<_ACEOF
12987 /* confdefs.h. */
12988 _ACEOF
12989 cat confdefs.h >>conftest.$ac_ext
12990 cat >>conftest.$ac_ext <<_ACEOF
12991 /* end confdefs.h. */
12992 #ifdef __GNUC__
12993 # define alloca __builtin_alloca
12994 #else
12995 # ifdef _MSC_VER
12996 # include <malloc.h>
12997 # define alloca _alloca
12998 # else
12999 # if HAVE_ALLOCA_H
13000 # include <alloca.h>
13001 # else
13002 # ifdef _AIX
13003 #pragma alloca
13004 # else
13005 # ifndef alloca /* predefined by HP cc +Olibcalls */
13006 char *alloca ();
13007 # endif
13008 # endif
13009 # endif
13010 # endif
13011 #endif
13014 main ()
13016 char *p = (char *) alloca (1);
13018 return 0;
13020 _ACEOF
13021 rm -f conftest.$ac_objext conftest$ac_exeext
13022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13023 (eval $ac_link) 2>conftest.er1
13024 ac_status=$?
13025 grep -v '^ *+' conftest.er1 >conftest.err
13026 rm -f conftest.er1
13027 cat conftest.err >&5
13028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029 (exit $ac_status); } &&
13030 { ac_try='test -z "$ac_c_werror_flag"
13031 || test ! -s conftest.err'
13032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13033 (eval $ac_try) 2>&5
13034 ac_status=$?
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); }; } &&
13037 { ac_try='test -s conftest$ac_exeext'
13038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13039 (eval $ac_try) 2>&5
13040 ac_status=$?
13041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); }; }; then
13043 ac_cv_func_alloca_works=yes
13044 else
13045 echo "$as_me: failed program was:" >&5
13046 sed 's/^/| /' conftest.$ac_ext >&5
13048 ac_cv_func_alloca_works=no
13050 rm -f conftest.err conftest.$ac_objext \
13051 conftest$ac_exeext conftest.$ac_ext
13053 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13054 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13056 if test $ac_cv_func_alloca_works = yes; then
13058 cat >>confdefs.h <<\_ACEOF
13059 #define HAVE_ALLOCA 1
13060 _ACEOF
13062 else
13063 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13064 # that cause trouble. Some versions do not even contain alloca or
13065 # contain a buggy version. If you still want to use their alloca,
13066 # use ar to extract alloca.o from them instead of compiling alloca.c.
13068 ALLOCA=alloca.$ac_objext
13070 cat >>confdefs.h <<\_ACEOF
13071 #define C_ALLOCA 1
13072 _ACEOF
13075 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13076 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13077 if test "${ac_cv_os_cray+set}" = set; then
13078 echo $ECHO_N "(cached) $ECHO_C" >&6
13079 else
13080 cat >conftest.$ac_ext <<_ACEOF
13081 /* confdefs.h. */
13082 _ACEOF
13083 cat confdefs.h >>conftest.$ac_ext
13084 cat >>conftest.$ac_ext <<_ACEOF
13085 /* end confdefs.h. */
13086 #if defined(CRAY) && ! defined(CRAY2)
13087 webecray
13088 #else
13089 wenotbecray
13090 #endif
13092 _ACEOF
13093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13094 $EGREP "webecray" >/dev/null 2>&1; then
13095 ac_cv_os_cray=yes
13096 else
13097 ac_cv_os_cray=no
13099 rm -f conftest*
13102 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13103 echo "${ECHO_T}$ac_cv_os_cray" >&6
13104 if test $ac_cv_os_cray = yes; then
13105 for ac_func in _getb67 GETB67 getb67; do
13106 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13107 echo "$as_me:$LINENO: checking for $ac_func" >&5
13108 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13109 if eval "test \"\${$as_ac_var+set}\" = set"; then
13110 echo $ECHO_N "(cached) $ECHO_C" >&6
13111 else
13112 cat >conftest.$ac_ext <<_ACEOF
13113 /* confdefs.h. */
13114 _ACEOF
13115 cat confdefs.h >>conftest.$ac_ext
13116 cat >>conftest.$ac_ext <<_ACEOF
13117 /* end confdefs.h. */
13118 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13120 #define $ac_func innocuous_$ac_func
13122 /* System header to define __stub macros and hopefully few prototypes,
13123 which can conflict with char $ac_func (); below.
13124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13125 <limits.h> exists even on freestanding compilers. */
13127 #ifdef __STDC__
13128 # include <limits.h>
13129 #else
13130 # include <assert.h>
13131 #endif
13133 #undef $ac_func
13135 /* Override any gcc2 internal prototype to avoid an error. */
13136 #ifdef __cplusplus
13137 extern "C"
13139 #endif
13140 /* We use char because int might match the return type of a gcc2
13141 builtin and then its argument prototype would still apply. */
13142 char $ac_func ();
13143 /* The GNU C library defines this for functions which it implements
13144 to always fail with ENOSYS. Some functions are actually named
13145 something starting with __ and the normal name is an alias. */
13146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13147 choke me
13148 #else
13149 char (*f) () = $ac_func;
13150 #endif
13151 #ifdef __cplusplus
13153 #endif
13156 main ()
13158 return f != $ac_func;
13160 return 0;
13162 _ACEOF
13163 rm -f conftest.$ac_objext conftest$ac_exeext
13164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13165 (eval $ac_link) 2>conftest.er1
13166 ac_status=$?
13167 grep -v '^ *+' conftest.er1 >conftest.err
13168 rm -f conftest.er1
13169 cat conftest.err >&5
13170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171 (exit $ac_status); } &&
13172 { ac_try='test -z "$ac_c_werror_flag"
13173 || test ! -s conftest.err'
13174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13175 (eval $ac_try) 2>&5
13176 ac_status=$?
13177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178 (exit $ac_status); }; } &&
13179 { ac_try='test -s conftest$ac_exeext'
13180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13181 (eval $ac_try) 2>&5
13182 ac_status=$?
13183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184 (exit $ac_status); }; }; then
13185 eval "$as_ac_var=yes"
13186 else
13187 echo "$as_me: failed program was:" >&5
13188 sed 's/^/| /' conftest.$ac_ext >&5
13190 eval "$as_ac_var=no"
13192 rm -f conftest.err conftest.$ac_objext \
13193 conftest$ac_exeext conftest.$ac_ext
13195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13196 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13197 if test `eval echo '${'$as_ac_var'}'` = yes; then
13199 cat >>confdefs.h <<_ACEOF
13200 #define CRAY_STACKSEG_END $ac_func
13201 _ACEOF
13203 break
13206 done
13209 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13210 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13211 if test "${ac_cv_c_stack_direction+set}" = set; then
13212 echo $ECHO_N "(cached) $ECHO_C" >&6
13213 else
13214 if test "$cross_compiling" = yes; then
13215 ac_cv_c_stack_direction=0
13216 else
13217 cat >conftest.$ac_ext <<_ACEOF
13218 /* confdefs.h. */
13219 _ACEOF
13220 cat confdefs.h >>conftest.$ac_ext
13221 cat >>conftest.$ac_ext <<_ACEOF
13222 /* end confdefs.h. */
13224 find_stack_direction ()
13226 static char *addr = 0;
13227 auto char dummy;
13228 if (addr == 0)
13230 addr = &dummy;
13231 return find_stack_direction ();
13233 else
13234 return (&dummy > addr) ? 1 : -1;
13238 main ()
13240 exit (find_stack_direction () < 0);
13242 _ACEOF
13243 rm -f conftest$ac_exeext
13244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13245 (eval $ac_link) 2>&5
13246 ac_status=$?
13247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13250 (eval $ac_try) 2>&5
13251 ac_status=$?
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); }; }; then
13254 ac_cv_c_stack_direction=1
13255 else
13256 echo "$as_me: program exited with status $ac_status" >&5
13257 echo "$as_me: failed program was:" >&5
13258 sed 's/^/| /' conftest.$ac_ext >&5
13260 ( exit $ac_status )
13261 ac_cv_c_stack_direction=-1
13263 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13266 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13267 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13269 cat >>confdefs.h <<_ACEOF
13270 #define STACK_DIRECTION $ac_cv_c_stack_direction
13271 _ACEOF
13281 for ac_func in sbrk utimes setmode getc_unlocked strcoll
13283 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13284 echo "$as_me:$LINENO: checking for $ac_func" >&5
13285 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13286 if eval "test \"\${$as_ac_var+set}\" = set"; then
13287 echo $ECHO_N "(cached) $ECHO_C" >&6
13288 else
13289 cat >conftest.$ac_ext <<_ACEOF
13290 /* confdefs.h. */
13291 _ACEOF
13292 cat confdefs.h >>conftest.$ac_ext
13293 cat >>conftest.$ac_ext <<_ACEOF
13294 /* end confdefs.h. */
13295 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13296 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13297 #define $ac_func innocuous_$ac_func
13299 /* System header to define __stub macros and hopefully few prototypes,
13300 which can conflict with char $ac_func (); below.
13301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13302 <limits.h> exists even on freestanding compilers. */
13304 #ifdef __STDC__
13305 # include <limits.h>
13306 #else
13307 # include <assert.h>
13308 #endif
13310 #undef $ac_func
13312 /* Override any gcc2 internal prototype to avoid an error. */
13313 #ifdef __cplusplus
13314 extern "C"
13316 #endif
13317 /* We use char because int might match the return type of a gcc2
13318 builtin and then its argument prototype would still apply. */
13319 char $ac_func ();
13320 /* The GNU C library defines this for functions which it implements
13321 to always fail with ENOSYS. Some functions are actually named
13322 something starting with __ and the normal name is an alias. */
13323 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13324 choke me
13325 #else
13326 char (*f) () = $ac_func;
13327 #endif
13328 #ifdef __cplusplus
13330 #endif
13333 main ()
13335 return f != $ac_func;
13337 return 0;
13339 _ACEOF
13340 rm -f conftest.$ac_objext conftest$ac_exeext
13341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13342 (eval $ac_link) 2>conftest.er1
13343 ac_status=$?
13344 grep -v '^ *+' conftest.er1 >conftest.err
13345 rm -f conftest.er1
13346 cat conftest.err >&5
13347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348 (exit $ac_status); } &&
13349 { ac_try='test -z "$ac_c_werror_flag"
13350 || test ! -s conftest.err'
13351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13352 (eval $ac_try) 2>&5
13353 ac_status=$?
13354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13355 (exit $ac_status); }; } &&
13356 { ac_try='test -s conftest$ac_exeext'
13357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13358 (eval $ac_try) 2>&5
13359 ac_status=$?
13360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361 (exit $ac_status); }; }; then
13362 eval "$as_ac_var=yes"
13363 else
13364 echo "$as_me: failed program was:" >&5
13365 sed 's/^/| /' conftest.$ac_ext >&5
13367 eval "$as_ac_var=no"
13369 rm -f conftest.err conftest.$ac_objext \
13370 conftest$ac_exeext conftest.$ac_ext
13372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13373 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13374 if test `eval echo '${'$as_ac_var'}'` = yes; then
13375 cat >>confdefs.h <<_ACEOF
13376 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13377 _ACEOF
13380 done
13382 echo "$as_me:$LINENO: checking for mkstemp" >&5
13383 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
13384 if test "${ac_cv_func_mkstemp+set}" = set; then
13385 echo $ECHO_N "(cached) $ECHO_C" >&6
13386 else
13387 cat >conftest.$ac_ext <<_ACEOF
13388 /* confdefs.h. */
13389 _ACEOF
13390 cat confdefs.h >>conftest.$ac_ext
13391 cat >>conftest.$ac_ext <<_ACEOF
13392 /* end confdefs.h. */
13393 /* Define mkstemp to an innocuous variant, in case <limits.h> declares mkstemp.
13394 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13395 #define mkstemp innocuous_mkstemp
13397 /* System header to define __stub macros and hopefully few prototypes,
13398 which can conflict with char mkstemp (); below.
13399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13400 <limits.h> exists even on freestanding compilers. */
13402 #ifdef __STDC__
13403 # include <limits.h>
13404 #else
13405 # include <assert.h>
13406 #endif
13408 #undef mkstemp
13410 /* Override any gcc2 internal prototype to avoid an error. */
13411 #ifdef __cplusplus
13412 extern "C"
13414 #endif
13415 /* We use char because int might match the return type of a gcc2
13416 builtin and then its argument prototype would still apply. */
13417 char mkstemp ();
13418 /* The GNU C library defines this for functions which it implements
13419 to always fail with ENOSYS. Some functions are actually named
13420 something starting with __ and the normal name is an alias. */
13421 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
13422 choke me
13423 #else
13424 char (*f) () = mkstemp;
13425 #endif
13426 #ifdef __cplusplus
13428 #endif
13431 main ()
13433 return f != mkstemp;
13435 return 0;
13437 _ACEOF
13438 rm -f conftest.$ac_objext conftest$ac_exeext
13439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13440 (eval $ac_link) 2>conftest.er1
13441 ac_status=$?
13442 grep -v '^ *+' conftest.er1 >conftest.err
13443 rm -f conftest.er1
13444 cat conftest.err >&5
13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); } &&
13447 { ac_try='test -z "$ac_c_werror_flag"
13448 || test ! -s conftest.err'
13449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13450 (eval $ac_try) 2>&5
13451 ac_status=$?
13452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 (exit $ac_status); }; } &&
13454 { ac_try='test -s conftest$ac_exeext'
13455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13456 (eval $ac_try) 2>&5
13457 ac_status=$?
13458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459 (exit $ac_status); }; }; then
13460 ac_cv_func_mkstemp=yes
13461 else
13462 echo "$as_me: failed program was:" >&5
13463 sed 's/^/| /' conftest.$ac_ext >&5
13465 ac_cv_func_mkstemp=no
13467 rm -f conftest.err conftest.$ac_objext \
13468 conftest$ac_exeext conftest.$ac_ext
13470 echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp" >&5
13471 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
13472 if test $ac_cv_func_mkstemp = yes; then
13474 cat >>confdefs.h <<\_ACEOF
13475 #define HAVE_MKSTEMP 1
13476 _ACEOF
13480 echo "$as_me:$LINENO: checking for mkdtemp" >&5
13481 echo $ECHO_N "checking for mkdtemp... $ECHO_C" >&6
13482 if test "${ac_cv_func_mkdtemp+set}" = set; then
13483 echo $ECHO_N "(cached) $ECHO_C" >&6
13484 else
13485 cat >conftest.$ac_ext <<_ACEOF
13486 /* confdefs.h. */
13487 _ACEOF
13488 cat confdefs.h >>conftest.$ac_ext
13489 cat >>conftest.$ac_ext <<_ACEOF
13490 /* end confdefs.h. */
13491 /* Define mkdtemp to an innocuous variant, in case <limits.h> declares mkdtemp.
13492 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13493 #define mkdtemp innocuous_mkdtemp
13495 /* System header to define __stub macros and hopefully few prototypes,
13496 which can conflict with char mkdtemp (); below.
13497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13498 <limits.h> exists even on freestanding compilers. */
13500 #ifdef __STDC__
13501 # include <limits.h>
13502 #else
13503 # include <assert.h>
13504 #endif
13506 #undef mkdtemp
13508 /* Override any gcc2 internal prototype to avoid an error. */
13509 #ifdef __cplusplus
13510 extern "C"
13512 #endif
13513 /* We use char because int might match the return type of a gcc2
13514 builtin and then its argument prototype would still apply. */
13515 char mkdtemp ();
13516 /* The GNU C library defines this for functions which it implements
13517 to always fail with ENOSYS. Some functions are actually named
13518 something starting with __ and the normal name is an alias. */
13519 #if defined (__stub_mkdtemp) || defined (__stub___mkdtemp)
13520 choke me
13521 #else
13522 char (*f) () = mkdtemp;
13523 #endif
13524 #ifdef __cplusplus
13526 #endif
13529 main ()
13531 return f != mkdtemp;
13533 return 0;
13535 _ACEOF
13536 rm -f conftest.$ac_objext conftest$ac_exeext
13537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13538 (eval $ac_link) 2>conftest.er1
13539 ac_status=$?
13540 grep -v '^ *+' conftest.er1 >conftest.err
13541 rm -f conftest.er1
13542 cat conftest.err >&5
13543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13544 (exit $ac_status); } &&
13545 { ac_try='test -z "$ac_c_werror_flag"
13546 || test ! -s conftest.err'
13547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13548 (eval $ac_try) 2>&5
13549 ac_status=$?
13550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551 (exit $ac_status); }; } &&
13552 { ac_try='test -s conftest$ac_exeext'
13553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13554 (eval $ac_try) 2>&5
13555 ac_status=$?
13556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557 (exit $ac_status); }; }; then
13558 ac_cv_func_mkdtemp=yes
13559 else
13560 echo "$as_me: failed program was:" >&5
13561 sed 's/^/| /' conftest.$ac_ext >&5
13563 ac_cv_func_mkdtemp=no
13565 rm -f conftest.err conftest.$ac_objext \
13566 conftest$ac_exeext conftest.$ac_ext
13568 echo "$as_me:$LINENO: result: $ac_cv_func_mkdtemp" >&5
13569 echo "${ECHO_T}$ac_cv_func_mkdtemp" >&6
13570 if test $ac_cv_func_mkdtemp = yes; then
13572 cat >>confdefs.h <<\_ACEOF
13573 #define HAVE_MKDTEMP 1
13574 _ACEOF
13579 # Check whether fopen64 is available and whether _LARGEFILE64_SOURCE
13580 # needs to be defined for it
13581 echo "$as_me:$LINENO: checking for fopen64" >&5
13582 echo $ECHO_N "checking for fopen64... $ECHO_C" >&6
13583 if test "${bu_cv_have_fopen64+set}" = set; then
13584 echo $ECHO_N "(cached) $ECHO_C" >&6
13585 else
13586 cat >conftest.$ac_ext <<_ACEOF
13587 /* confdefs.h. */
13588 _ACEOF
13589 cat confdefs.h >>conftest.$ac_ext
13590 cat >>conftest.$ac_ext <<_ACEOF
13591 /* end confdefs.h. */
13592 #include <stdio.h>
13594 main ()
13596 FILE *f = fopen64 ("/tmp/foo","r");
13598 return 0;
13600 _ACEOF
13601 rm -f conftest.$ac_objext conftest$ac_exeext
13602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13603 (eval $ac_link) 2>conftest.er1
13604 ac_status=$?
13605 grep -v '^ *+' conftest.er1 >conftest.err
13606 rm -f conftest.er1
13607 cat conftest.err >&5
13608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609 (exit $ac_status); } &&
13610 { ac_try='test -z "$ac_c_werror_flag"
13611 || test ! -s conftest.err'
13612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13613 (eval $ac_try) 2>&5
13614 ac_status=$?
13615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616 (exit $ac_status); }; } &&
13617 { ac_try='test -s conftest$ac_exeext'
13618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13619 (eval $ac_try) 2>&5
13620 ac_status=$?
13621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622 (exit $ac_status); }; }; then
13623 bu_cv_have_fopen64=yes
13624 else
13625 echo "$as_me: failed program was:" >&5
13626 sed 's/^/| /' conftest.$ac_ext >&5
13628 saved_CPPFLAGS=$CPPFLAGS
13629 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
13630 cat >conftest.$ac_ext <<_ACEOF
13631 /* confdefs.h. */
13632 _ACEOF
13633 cat confdefs.h >>conftest.$ac_ext
13634 cat >>conftest.$ac_ext <<_ACEOF
13635 /* end confdefs.h. */
13636 #include <stdio.h>
13638 main ()
13640 FILE *f = fopen64 ("/tmp/foo","r");
13642 return 0;
13644 _ACEOF
13645 rm -f conftest.$ac_objext conftest$ac_exeext
13646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13647 (eval $ac_link) 2>conftest.er1
13648 ac_status=$?
13649 grep -v '^ *+' conftest.er1 >conftest.err
13650 rm -f conftest.er1
13651 cat conftest.err >&5
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); } &&
13654 { ac_try='test -z "$ac_c_werror_flag"
13655 || test ! -s conftest.err'
13656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13657 (eval $ac_try) 2>&5
13658 ac_status=$?
13659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 (exit $ac_status); }; } &&
13661 { ac_try='test -s conftest$ac_exeext'
13662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13663 (eval $ac_try) 2>&5
13664 ac_status=$?
13665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666 (exit $ac_status); }; }; then
13667 bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE"
13668 else
13669 echo "$as_me: failed program was:" >&5
13670 sed 's/^/| /' conftest.$ac_ext >&5
13672 bu_cv_have_fopen64=no
13674 rm -f conftest.err conftest.$ac_objext \
13675 conftest$ac_exeext conftest.$ac_ext
13676 CPPFLAGS=$saved_CPPFLAGS
13678 rm -f conftest.err conftest.$ac_objext \
13679 conftest$ac_exeext conftest.$ac_ext
13682 echo "$as_me:$LINENO: result: $bu_cv_have_fopen64" >&5
13683 echo "${ECHO_T}$bu_cv_have_fopen64" >&6
13684 if test "$bu_cv_have_fopen64" != no; then
13686 cat >>confdefs.h <<\_ACEOF
13687 #define HAVE_FOPEN64 1
13688 _ACEOF
13691 echo "$as_me:$LINENO: checking for stat64" >&5
13692 echo $ECHO_N "checking for stat64... $ECHO_C" >&6
13693 if test "${bu_cv_have_stat64+set}" = set; then
13694 echo $ECHO_N "(cached) $ECHO_C" >&6
13695 else
13696 cat >conftest.$ac_ext <<_ACEOF
13697 /* confdefs.h. */
13698 _ACEOF
13699 cat confdefs.h >>conftest.$ac_ext
13700 cat >>conftest.$ac_ext <<_ACEOF
13701 /* end confdefs.h. */
13702 #include <sys/stat.h>
13704 main ()
13706 struct stat64 st; stat64 ("/tmp/foo", &st);
13708 return 0;
13710 _ACEOF
13711 rm -f conftest.$ac_objext conftest$ac_exeext
13712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13713 (eval $ac_link) 2>conftest.er1
13714 ac_status=$?
13715 grep -v '^ *+' conftest.er1 >conftest.err
13716 rm -f conftest.er1
13717 cat conftest.err >&5
13718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719 (exit $ac_status); } &&
13720 { ac_try='test -z "$ac_c_werror_flag"
13721 || test ! -s conftest.err'
13722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13723 (eval $ac_try) 2>&5
13724 ac_status=$?
13725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726 (exit $ac_status); }; } &&
13727 { ac_try='test -s conftest$ac_exeext'
13728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13729 (eval $ac_try) 2>&5
13730 ac_status=$?
13731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732 (exit $ac_status); }; }; then
13733 bu_cv_have_stat64=yes
13734 else
13735 echo "$as_me: failed program was:" >&5
13736 sed 's/^/| /' conftest.$ac_ext >&5
13738 saved_CPPFLAGS=$CPPFLAGS
13739 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
13740 cat >conftest.$ac_ext <<_ACEOF
13741 /* confdefs.h. */
13742 _ACEOF
13743 cat confdefs.h >>conftest.$ac_ext
13744 cat >>conftest.$ac_ext <<_ACEOF
13745 /* end confdefs.h. */
13746 #include <sys/stat.h>
13748 main ()
13750 struct stat64 st; stat64 ("/tmp/foo", &st);
13752 return 0;
13754 _ACEOF
13755 rm -f conftest.$ac_objext conftest$ac_exeext
13756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13757 (eval $ac_link) 2>conftest.er1
13758 ac_status=$?
13759 grep -v '^ *+' conftest.er1 >conftest.err
13760 rm -f conftest.er1
13761 cat conftest.err >&5
13762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763 (exit $ac_status); } &&
13764 { ac_try='test -z "$ac_c_werror_flag"
13765 || test ! -s conftest.err'
13766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13767 (eval $ac_try) 2>&5
13768 ac_status=$?
13769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770 (exit $ac_status); }; } &&
13771 { ac_try='test -s conftest$ac_exeext'
13772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13773 (eval $ac_try) 2>&5
13774 ac_status=$?
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); }; }; then
13777 bu_cv_have_stat64="need -D_LARGEFILE64_SOURCE"
13778 else
13779 echo "$as_me: failed program was:" >&5
13780 sed 's/^/| /' conftest.$ac_ext >&5
13782 bu_cv_have_stat64=no
13784 rm -f conftest.err conftest.$ac_objext \
13785 conftest$ac_exeext conftest.$ac_ext
13786 CPPFLAGS=$saved_CPPFLAGS
13788 rm -f conftest.err conftest.$ac_objext \
13789 conftest$ac_exeext conftest.$ac_ext
13792 echo "$as_me:$LINENO: result: $bu_cv_have_stat64" >&5
13793 echo "${ECHO_T}$bu_cv_have_stat64" >&6
13794 if test "$bu_cv_have_stat64" != no; then
13796 cat >>confdefs.h <<\_ACEOF
13797 #define HAVE_STAT64 1
13798 _ACEOF
13801 if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE" \
13802 || test "$bu_cv_have_stat64" = "need -D_LARGEFILE64_SOURCE"; then
13804 cat >>confdefs.h <<\_ACEOF
13805 #define _LARGEFILE64_SOURCE 1
13806 _ACEOF
13808 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
13811 # Some systems have frexp only in -lm, not in -lc.
13812 echo "$as_me:$LINENO: checking for library containing frexp" >&5
13813 echo $ECHO_N "checking for library containing frexp... $ECHO_C" >&6
13814 if test "${ac_cv_search_frexp+set}" = set; then
13815 echo $ECHO_N "(cached) $ECHO_C" >&6
13816 else
13817 ac_func_search_save_LIBS=$LIBS
13818 ac_cv_search_frexp=no
13819 cat >conftest.$ac_ext <<_ACEOF
13820 /* confdefs.h. */
13821 _ACEOF
13822 cat confdefs.h >>conftest.$ac_ext
13823 cat >>conftest.$ac_ext <<_ACEOF
13824 /* end confdefs.h. */
13826 /* Override any gcc2 internal prototype to avoid an error. */
13827 #ifdef __cplusplus
13828 extern "C"
13829 #endif
13830 /* We use char because int might match the return type of a gcc2
13831 builtin and then its argument prototype would still apply. */
13832 char frexp ();
13834 main ()
13836 frexp ();
13838 return 0;
13840 _ACEOF
13841 rm -f conftest.$ac_objext conftest$ac_exeext
13842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13843 (eval $ac_link) 2>conftest.er1
13844 ac_status=$?
13845 grep -v '^ *+' conftest.er1 >conftest.err
13846 rm -f conftest.er1
13847 cat conftest.err >&5
13848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849 (exit $ac_status); } &&
13850 { ac_try='test -z "$ac_c_werror_flag"
13851 || test ! -s conftest.err'
13852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13853 (eval $ac_try) 2>&5
13854 ac_status=$?
13855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856 (exit $ac_status); }; } &&
13857 { ac_try='test -s conftest$ac_exeext'
13858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13859 (eval $ac_try) 2>&5
13860 ac_status=$?
13861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862 (exit $ac_status); }; }; then
13863 ac_cv_search_frexp="none required"
13864 else
13865 echo "$as_me: failed program was:" >&5
13866 sed 's/^/| /' conftest.$ac_ext >&5
13869 rm -f conftest.err conftest.$ac_objext \
13870 conftest$ac_exeext conftest.$ac_ext
13871 if test "$ac_cv_search_frexp" = no; then
13872 for ac_lib in m; do
13873 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13874 cat >conftest.$ac_ext <<_ACEOF
13875 /* confdefs.h. */
13876 _ACEOF
13877 cat confdefs.h >>conftest.$ac_ext
13878 cat >>conftest.$ac_ext <<_ACEOF
13879 /* end confdefs.h. */
13881 /* Override any gcc2 internal prototype to avoid an error. */
13882 #ifdef __cplusplus
13883 extern "C"
13884 #endif
13885 /* We use char because int might match the return type of a gcc2
13886 builtin and then its argument prototype would still apply. */
13887 char frexp ();
13889 main ()
13891 frexp ();
13893 return 0;
13895 _ACEOF
13896 rm -f conftest.$ac_objext conftest$ac_exeext
13897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13898 (eval $ac_link) 2>conftest.er1
13899 ac_status=$?
13900 grep -v '^ *+' conftest.er1 >conftest.err
13901 rm -f conftest.er1
13902 cat conftest.err >&5
13903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904 (exit $ac_status); } &&
13905 { ac_try='test -z "$ac_c_werror_flag"
13906 || test ! -s conftest.err'
13907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13908 (eval $ac_try) 2>&5
13909 ac_status=$?
13910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911 (exit $ac_status); }; } &&
13912 { ac_try='test -s conftest$ac_exeext'
13913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13914 (eval $ac_try) 2>&5
13915 ac_status=$?
13916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917 (exit $ac_status); }; }; then
13918 ac_cv_search_frexp="-l$ac_lib"
13919 break
13920 else
13921 echo "$as_me: failed program was:" >&5
13922 sed 's/^/| /' conftest.$ac_ext >&5
13925 rm -f conftest.err conftest.$ac_objext \
13926 conftest$ac_exeext conftest.$ac_ext
13927 done
13929 LIBS=$ac_func_search_save_LIBS
13931 echo "$as_me:$LINENO: result: $ac_cv_search_frexp" >&5
13932 echo "${ECHO_T}$ac_cv_search_frexp" >&6
13933 if test "$ac_cv_search_frexp" != no; then
13934 test "$ac_cv_search_frexp" = "none required" || LIBS="$ac_cv_search_frexp $LIBS"
13939 echo "$as_me:$LINENO: checking for time_t in time.h" >&5
13940 echo $ECHO_N "checking for time_t in time.h... $ECHO_C" >&6
13941 if test "${bu_cv_decl_time_t_time_h+set}" = set; then
13942 echo $ECHO_N "(cached) $ECHO_C" >&6
13943 else
13944 cat >conftest.$ac_ext <<_ACEOF
13945 /* confdefs.h. */
13946 _ACEOF
13947 cat confdefs.h >>conftest.$ac_ext
13948 cat >>conftest.$ac_ext <<_ACEOF
13949 /* end confdefs.h. */
13950 #include <time.h>
13952 main ()
13954 time_t i;
13956 return 0;
13958 _ACEOF
13959 rm -f conftest.$ac_objext
13960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13961 (eval $ac_compile) 2>conftest.er1
13962 ac_status=$?
13963 grep -v '^ *+' conftest.er1 >conftest.err
13964 rm -f conftest.er1
13965 cat conftest.err >&5
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); } &&
13968 { ac_try='test -z "$ac_c_werror_flag"
13969 || test ! -s conftest.err'
13970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13971 (eval $ac_try) 2>&5
13972 ac_status=$?
13973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974 (exit $ac_status); }; } &&
13975 { ac_try='test -s conftest.$ac_objext'
13976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13977 (eval $ac_try) 2>&5
13978 ac_status=$?
13979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13980 (exit $ac_status); }; }; then
13981 bu_cv_decl_time_t_time_h=yes
13982 else
13983 echo "$as_me: failed program was:" >&5
13984 sed 's/^/| /' conftest.$ac_ext >&5
13986 bu_cv_decl_time_t_time_h=no
13988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13991 echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_time_h" >&5
13992 echo "${ECHO_T}$bu_cv_decl_time_t_time_h" >&6
13993 if test $bu_cv_decl_time_t_time_h = yes; then
13995 cat >>confdefs.h <<\_ACEOF
13996 #define HAVE_TIME_T_IN_TIME_H 1
13997 _ACEOF
14001 echo "$as_me:$LINENO: checking for time_t in sys/types.h" >&5
14002 echo $ECHO_N "checking for time_t in sys/types.h... $ECHO_C" >&6
14003 if test "${bu_cv_decl_time_t_types_h+set}" = set; then
14004 echo $ECHO_N "(cached) $ECHO_C" >&6
14005 else
14006 cat >conftest.$ac_ext <<_ACEOF
14007 /* confdefs.h. */
14008 _ACEOF
14009 cat confdefs.h >>conftest.$ac_ext
14010 cat >>conftest.$ac_ext <<_ACEOF
14011 /* end confdefs.h. */
14012 #include <sys/types.h>
14014 main ()
14016 time_t i;
14018 return 0;
14020 _ACEOF
14021 rm -f conftest.$ac_objext
14022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14023 (eval $ac_compile) 2>conftest.er1
14024 ac_status=$?
14025 grep -v '^ *+' conftest.er1 >conftest.err
14026 rm -f conftest.er1
14027 cat conftest.err >&5
14028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029 (exit $ac_status); } &&
14030 { ac_try='test -z "$ac_c_werror_flag"
14031 || test ! -s conftest.err'
14032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14033 (eval $ac_try) 2>&5
14034 ac_status=$?
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); }; } &&
14037 { ac_try='test -s conftest.$ac_objext'
14038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14039 (eval $ac_try) 2>&5
14040 ac_status=$?
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); }; }; then
14043 bu_cv_decl_time_t_types_h=yes
14044 else
14045 echo "$as_me: failed program was:" >&5
14046 sed 's/^/| /' conftest.$ac_ext >&5
14048 bu_cv_decl_time_t_types_h=no
14050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14053 echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_types_h" >&5
14054 echo "${ECHO_T}$bu_cv_decl_time_t_types_h" >&6
14055 if test $bu_cv_decl_time_t_types_h = yes; then
14057 cat >>confdefs.h <<\_ACEOF
14058 #define HAVE_TIME_T_IN_TYPES_H 1
14059 _ACEOF
14063 echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
14064 echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
14065 if test "${bu_cv_decl_getopt_unistd_h+set}" = set; then
14066 echo $ECHO_N "(cached) $ECHO_C" >&6
14067 else
14068 cat >conftest.$ac_ext <<_ACEOF
14069 /* confdefs.h. */
14070 _ACEOF
14071 cat confdefs.h >>conftest.$ac_ext
14072 cat >>conftest.$ac_ext <<_ACEOF
14073 /* end confdefs.h. */
14074 #include <unistd.h>
14076 main ()
14078 extern int getopt (int, char *const*, const char *);
14080 return 0;
14082 _ACEOF
14083 rm -f conftest.$ac_objext
14084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14085 (eval $ac_compile) 2>conftest.er1
14086 ac_status=$?
14087 grep -v '^ *+' conftest.er1 >conftest.err
14088 rm -f conftest.er1
14089 cat conftest.err >&5
14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); } &&
14092 { ac_try='test -z "$ac_c_werror_flag"
14093 || test ! -s conftest.err'
14094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14095 (eval $ac_try) 2>&5
14096 ac_status=$?
14097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098 (exit $ac_status); }; } &&
14099 { ac_try='test -s conftest.$ac_objext'
14100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14101 (eval $ac_try) 2>&5
14102 ac_status=$?
14103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); }; }; then
14105 bu_cv_decl_getopt_unistd_h=yes
14106 else
14107 echo "$as_me: failed program was:" >&5
14108 sed 's/^/| /' conftest.$ac_ext >&5
14110 bu_cv_decl_getopt_unistd_h=no
14112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14115 echo "$as_me:$LINENO: result: $bu_cv_decl_getopt_unistd_h" >&5
14116 echo "${ECHO_T}$bu_cv_decl_getopt_unistd_h" >&6
14117 if test $bu_cv_decl_getopt_unistd_h = yes; then
14119 cat >>confdefs.h <<\_ACEOF
14120 #define HAVE_DECL_GETOPT 1
14121 _ACEOF
14125 # Under Next 3.2 <utime.h> apparently does not define struct utimbuf
14126 # by default.
14127 echo "$as_me:$LINENO: checking for utime.h" >&5
14128 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
14129 if test "${bu_cv_header_utime_h+set}" = set; then
14130 echo $ECHO_N "(cached) $ECHO_C" >&6
14131 else
14132 cat >conftest.$ac_ext <<_ACEOF
14133 /* confdefs.h. */
14134 _ACEOF
14135 cat confdefs.h >>conftest.$ac_ext
14136 cat >>conftest.$ac_ext <<_ACEOF
14137 /* end confdefs.h. */
14138 #include <sys/types.h>
14139 #ifdef HAVE_TIME_H
14140 #include <time.h>
14141 #endif
14142 #include <utime.h>
14144 main ()
14146 struct utimbuf s;
14148 return 0;
14150 _ACEOF
14151 rm -f conftest.$ac_objext
14152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14153 (eval $ac_compile) 2>conftest.er1
14154 ac_status=$?
14155 grep -v '^ *+' conftest.er1 >conftest.err
14156 rm -f conftest.er1
14157 cat conftest.err >&5
14158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159 (exit $ac_status); } &&
14160 { ac_try='test -z "$ac_c_werror_flag"
14161 || test ! -s conftest.err'
14162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14163 (eval $ac_try) 2>&5
14164 ac_status=$?
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); }; } &&
14167 { ac_try='test -s conftest.$ac_objext'
14168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14169 (eval $ac_try) 2>&5
14170 ac_status=$?
14171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172 (exit $ac_status); }; }; then
14173 bu_cv_header_utime_h=yes
14174 else
14175 echo "$as_me: failed program was:" >&5
14176 sed 's/^/| /' conftest.$ac_ext >&5
14178 bu_cv_header_utime_h=no
14180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14183 echo "$as_me:$LINENO: result: $bu_cv_header_utime_h" >&5
14184 echo "${ECHO_T}$bu_cv_header_utime_h" >&6
14185 if test $bu_cv_header_utime_h = yes; then
14187 cat >>confdefs.h <<\_ACEOF
14188 #define HAVE_GOOD_UTIME_H 1
14189 _ACEOF
14193 echo "$as_me:$LINENO: checking whether fprintf is declared" >&5
14194 echo $ECHO_N "checking whether fprintf is declared... $ECHO_C" >&6
14195 if test "${ac_cv_have_decl_fprintf+set}" = set; then
14196 echo $ECHO_N "(cached) $ECHO_C" >&6
14197 else
14198 cat >conftest.$ac_ext <<_ACEOF
14199 /* confdefs.h. */
14200 _ACEOF
14201 cat confdefs.h >>conftest.$ac_ext
14202 cat >>conftest.$ac_ext <<_ACEOF
14203 /* end confdefs.h. */
14204 $ac_includes_default
14206 main ()
14208 #ifndef fprintf
14209 char *p = (char *) fprintf;
14210 #endif
14213 return 0;
14215 _ACEOF
14216 rm -f conftest.$ac_objext
14217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14218 (eval $ac_compile) 2>conftest.er1
14219 ac_status=$?
14220 grep -v '^ *+' conftest.er1 >conftest.err
14221 rm -f conftest.er1
14222 cat conftest.err >&5
14223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224 (exit $ac_status); } &&
14225 { ac_try='test -z "$ac_c_werror_flag"
14226 || test ! -s conftest.err'
14227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14228 (eval $ac_try) 2>&5
14229 ac_status=$?
14230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14231 (exit $ac_status); }; } &&
14232 { ac_try='test -s conftest.$ac_objext'
14233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14234 (eval $ac_try) 2>&5
14235 ac_status=$?
14236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237 (exit $ac_status); }; }; then
14238 ac_cv_have_decl_fprintf=yes
14239 else
14240 echo "$as_me: failed program was:" >&5
14241 sed 's/^/| /' conftest.$ac_ext >&5
14243 ac_cv_have_decl_fprintf=no
14245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14247 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf" >&5
14248 echo "${ECHO_T}$ac_cv_have_decl_fprintf" >&6
14249 if test $ac_cv_have_decl_fprintf = yes; then
14251 cat >>confdefs.h <<_ACEOF
14252 #define HAVE_DECL_FPRINTF 1
14253 _ACEOF
14256 else
14257 cat >>confdefs.h <<_ACEOF
14258 #define HAVE_DECL_FPRINTF 0
14259 _ACEOF
14263 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
14264 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
14265 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
14266 echo $ECHO_N "(cached) $ECHO_C" >&6
14267 else
14268 cat >conftest.$ac_ext <<_ACEOF
14269 /* confdefs.h. */
14270 _ACEOF
14271 cat confdefs.h >>conftest.$ac_ext
14272 cat >>conftest.$ac_ext <<_ACEOF
14273 /* end confdefs.h. */
14274 $ac_includes_default
14276 main ()
14278 #ifndef stpcpy
14279 char *p = (char *) stpcpy;
14280 #endif
14283 return 0;
14285 _ACEOF
14286 rm -f conftest.$ac_objext
14287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14288 (eval $ac_compile) 2>conftest.er1
14289 ac_status=$?
14290 grep -v '^ *+' conftest.er1 >conftest.err
14291 rm -f conftest.er1
14292 cat conftest.err >&5
14293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294 (exit $ac_status); } &&
14295 { ac_try='test -z "$ac_c_werror_flag"
14296 || test ! -s conftest.err'
14297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14298 (eval $ac_try) 2>&5
14299 ac_status=$?
14300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301 (exit $ac_status); }; } &&
14302 { ac_try='test -s conftest.$ac_objext'
14303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14304 (eval $ac_try) 2>&5
14305 ac_status=$?
14306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14307 (exit $ac_status); }; }; then
14308 ac_cv_have_decl_stpcpy=yes
14309 else
14310 echo "$as_me: failed program was:" >&5
14311 sed 's/^/| /' conftest.$ac_ext >&5
14313 ac_cv_have_decl_stpcpy=no
14315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14317 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
14318 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
14319 if test $ac_cv_have_decl_stpcpy = yes; then
14321 cat >>confdefs.h <<_ACEOF
14322 #define HAVE_DECL_STPCPY 1
14323 _ACEOF
14326 else
14327 cat >>confdefs.h <<_ACEOF
14328 #define HAVE_DECL_STPCPY 0
14329 _ACEOF
14333 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
14334 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
14335 if test "${ac_cv_have_decl_strstr+set}" = set; then
14336 echo $ECHO_N "(cached) $ECHO_C" >&6
14337 else
14338 cat >conftest.$ac_ext <<_ACEOF
14339 /* confdefs.h. */
14340 _ACEOF
14341 cat confdefs.h >>conftest.$ac_ext
14342 cat >>conftest.$ac_ext <<_ACEOF
14343 /* end confdefs.h. */
14344 $ac_includes_default
14346 main ()
14348 #ifndef strstr
14349 char *p = (char *) strstr;
14350 #endif
14353 return 0;
14355 _ACEOF
14356 rm -f conftest.$ac_objext
14357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14358 (eval $ac_compile) 2>conftest.er1
14359 ac_status=$?
14360 grep -v '^ *+' conftest.er1 >conftest.err
14361 rm -f conftest.er1
14362 cat conftest.err >&5
14363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364 (exit $ac_status); } &&
14365 { ac_try='test -z "$ac_c_werror_flag"
14366 || test ! -s conftest.err'
14367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14368 (eval $ac_try) 2>&5
14369 ac_status=$?
14370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371 (exit $ac_status); }; } &&
14372 { ac_try='test -s conftest.$ac_objext'
14373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14374 (eval $ac_try) 2>&5
14375 ac_status=$?
14376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377 (exit $ac_status); }; }; then
14378 ac_cv_have_decl_strstr=yes
14379 else
14380 echo "$as_me: failed program was:" >&5
14381 sed 's/^/| /' conftest.$ac_ext >&5
14383 ac_cv_have_decl_strstr=no
14385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14387 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
14388 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
14389 if test $ac_cv_have_decl_strstr = yes; then
14391 cat >>confdefs.h <<_ACEOF
14392 #define HAVE_DECL_STRSTR 1
14393 _ACEOF
14396 else
14397 cat >>confdefs.h <<_ACEOF
14398 #define HAVE_DECL_STRSTR 0
14399 _ACEOF
14403 echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
14404 echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
14405 if test "${ac_cv_have_decl_sbrk+set}" = set; then
14406 echo $ECHO_N "(cached) $ECHO_C" >&6
14407 else
14408 cat >conftest.$ac_ext <<_ACEOF
14409 /* confdefs.h. */
14410 _ACEOF
14411 cat confdefs.h >>conftest.$ac_ext
14412 cat >>conftest.$ac_ext <<_ACEOF
14413 /* end confdefs.h. */
14414 $ac_includes_default
14416 main ()
14418 #ifndef sbrk
14419 char *p = (char *) sbrk;
14420 #endif
14423 return 0;
14425 _ACEOF
14426 rm -f conftest.$ac_objext
14427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14428 (eval $ac_compile) 2>conftest.er1
14429 ac_status=$?
14430 grep -v '^ *+' conftest.er1 >conftest.err
14431 rm -f conftest.er1
14432 cat conftest.err >&5
14433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434 (exit $ac_status); } &&
14435 { ac_try='test -z "$ac_c_werror_flag"
14436 || test ! -s conftest.err'
14437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14438 (eval $ac_try) 2>&5
14439 ac_status=$?
14440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14441 (exit $ac_status); }; } &&
14442 { ac_try='test -s conftest.$ac_objext'
14443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14444 (eval $ac_try) 2>&5
14445 ac_status=$?
14446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447 (exit $ac_status); }; }; then
14448 ac_cv_have_decl_sbrk=yes
14449 else
14450 echo "$as_me: failed program was:" >&5
14451 sed 's/^/| /' conftest.$ac_ext >&5
14453 ac_cv_have_decl_sbrk=no
14455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14457 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
14458 echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
14459 if test $ac_cv_have_decl_sbrk = yes; then
14461 cat >>confdefs.h <<_ACEOF
14462 #define HAVE_DECL_SBRK 1
14463 _ACEOF
14466 else
14467 cat >>confdefs.h <<_ACEOF
14468 #define HAVE_DECL_SBRK 0
14469 _ACEOF
14473 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
14474 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
14475 if test "${ac_cv_have_decl_getenv+set}" = set; then
14476 echo $ECHO_N "(cached) $ECHO_C" >&6
14477 else
14478 cat >conftest.$ac_ext <<_ACEOF
14479 /* confdefs.h. */
14480 _ACEOF
14481 cat confdefs.h >>conftest.$ac_ext
14482 cat >>conftest.$ac_ext <<_ACEOF
14483 /* end confdefs.h. */
14484 $ac_includes_default
14486 main ()
14488 #ifndef getenv
14489 char *p = (char *) getenv;
14490 #endif
14493 return 0;
14495 _ACEOF
14496 rm -f conftest.$ac_objext
14497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14498 (eval $ac_compile) 2>conftest.er1
14499 ac_status=$?
14500 grep -v '^ *+' conftest.er1 >conftest.err
14501 rm -f conftest.er1
14502 cat conftest.err >&5
14503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504 (exit $ac_status); } &&
14505 { ac_try='test -z "$ac_c_werror_flag"
14506 || test ! -s conftest.err'
14507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14508 (eval $ac_try) 2>&5
14509 ac_status=$?
14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 (exit $ac_status); }; } &&
14512 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14518 ac_cv_have_decl_getenv=yes
14519 else
14520 echo "$as_me: failed program was:" >&5
14521 sed 's/^/| /' conftest.$ac_ext >&5
14523 ac_cv_have_decl_getenv=no
14525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14527 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
14528 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
14529 if test $ac_cv_have_decl_getenv = yes; then
14531 cat >>confdefs.h <<_ACEOF
14532 #define HAVE_DECL_GETENV 1
14533 _ACEOF
14536 else
14537 cat >>confdefs.h <<_ACEOF
14538 #define HAVE_DECL_GETENV 0
14539 _ACEOF
14543 echo "$as_me:$LINENO: checking whether environ is declared" >&5
14544 echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6
14545 if test "${ac_cv_have_decl_environ+set}" = set; then
14546 echo $ECHO_N "(cached) $ECHO_C" >&6
14547 else
14548 cat >conftest.$ac_ext <<_ACEOF
14549 /* confdefs.h. */
14550 _ACEOF
14551 cat confdefs.h >>conftest.$ac_ext
14552 cat >>conftest.$ac_ext <<_ACEOF
14553 /* end confdefs.h. */
14554 $ac_includes_default
14556 main ()
14558 #ifndef environ
14559 char *p = (char *) environ;
14560 #endif
14563 return 0;
14565 _ACEOF
14566 rm -f conftest.$ac_objext
14567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14568 (eval $ac_compile) 2>conftest.er1
14569 ac_status=$?
14570 grep -v '^ *+' conftest.er1 >conftest.err
14571 rm -f conftest.er1
14572 cat conftest.err >&5
14573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574 (exit $ac_status); } &&
14575 { ac_try='test -z "$ac_c_werror_flag"
14576 || test ! -s conftest.err'
14577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14578 (eval $ac_try) 2>&5
14579 ac_status=$?
14580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581 (exit $ac_status); }; } &&
14582 { ac_try='test -s conftest.$ac_objext'
14583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14584 (eval $ac_try) 2>&5
14585 ac_status=$?
14586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587 (exit $ac_status); }; }; then
14588 ac_cv_have_decl_environ=yes
14589 else
14590 echo "$as_me: failed program was:" >&5
14591 sed 's/^/| /' conftest.$ac_ext >&5
14593 ac_cv_have_decl_environ=no
14595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14597 echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
14598 echo "${ECHO_T}$ac_cv_have_decl_environ" >&6
14599 if test $ac_cv_have_decl_environ = yes; then
14601 cat >>confdefs.h <<_ACEOF
14602 #define HAVE_DECL_ENVIRON 1
14603 _ACEOF
14606 else
14607 cat >>confdefs.h <<_ACEOF
14608 #define HAVE_DECL_ENVIRON 0
14609 _ACEOF
14613 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
14614 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
14615 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
14616 echo $ECHO_N "(cached) $ECHO_C" >&6
14617 else
14618 cat >conftest.$ac_ext <<_ACEOF
14619 /* confdefs.h. */
14620 _ACEOF
14621 cat confdefs.h >>conftest.$ac_ext
14622 cat >>conftest.$ac_ext <<_ACEOF
14623 /* end confdefs.h. */
14624 $ac_includes_default
14626 main ()
14628 #ifndef getc_unlocked
14629 char *p = (char *) getc_unlocked;
14630 #endif
14633 return 0;
14635 _ACEOF
14636 rm -f conftest.$ac_objext
14637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14638 (eval $ac_compile) 2>conftest.er1
14639 ac_status=$?
14640 grep -v '^ *+' conftest.er1 >conftest.err
14641 rm -f conftest.er1
14642 cat conftest.err >&5
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); } &&
14645 { ac_try='test -z "$ac_c_werror_flag"
14646 || test ! -s conftest.err'
14647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14648 (eval $ac_try) 2>&5
14649 ac_status=$?
14650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651 (exit $ac_status); }; } &&
14652 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14658 ac_cv_have_decl_getc_unlocked=yes
14659 else
14660 echo "$as_me: failed program was:" >&5
14661 sed 's/^/| /' conftest.$ac_ext >&5
14663 ac_cv_have_decl_getc_unlocked=no
14665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14667 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
14668 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
14669 if test $ac_cv_have_decl_getc_unlocked = yes; then
14671 cat >>confdefs.h <<_ACEOF
14672 #define HAVE_DECL_GETC_UNLOCKED 1
14673 _ACEOF
14676 else
14677 cat >>confdefs.h <<_ACEOF
14678 #define HAVE_DECL_GETC_UNLOCKED 0
14679 _ACEOF
14683 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
14684 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
14685 if test "${ac_cv_have_decl_snprintf+set}" = set; then
14686 echo $ECHO_N "(cached) $ECHO_C" >&6
14687 else
14688 cat >conftest.$ac_ext <<_ACEOF
14689 /* confdefs.h. */
14690 _ACEOF
14691 cat confdefs.h >>conftest.$ac_ext
14692 cat >>conftest.$ac_ext <<_ACEOF
14693 /* end confdefs.h. */
14694 $ac_includes_default
14696 main ()
14698 #ifndef snprintf
14699 char *p = (char *) snprintf;
14700 #endif
14703 return 0;
14705 _ACEOF
14706 rm -f conftest.$ac_objext
14707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14708 (eval $ac_compile) 2>conftest.er1
14709 ac_status=$?
14710 grep -v '^ *+' conftest.er1 >conftest.err
14711 rm -f conftest.er1
14712 cat conftest.err >&5
14713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714 (exit $ac_status); } &&
14715 { ac_try='test -z "$ac_c_werror_flag"
14716 || test ! -s conftest.err'
14717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14718 (eval $ac_try) 2>&5
14719 ac_status=$?
14720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721 (exit $ac_status); }; } &&
14722 { ac_try='test -s conftest.$ac_objext'
14723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14724 (eval $ac_try) 2>&5
14725 ac_status=$?
14726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14727 (exit $ac_status); }; }; then
14728 ac_cv_have_decl_snprintf=yes
14729 else
14730 echo "$as_me: failed program was:" >&5
14731 sed 's/^/| /' conftest.$ac_ext >&5
14733 ac_cv_have_decl_snprintf=no
14735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14737 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
14738 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
14739 if test $ac_cv_have_decl_snprintf = yes; then
14741 cat >>confdefs.h <<_ACEOF
14742 #define HAVE_DECL_SNPRINTF 1
14743 _ACEOF
14746 else
14747 cat >>confdefs.h <<_ACEOF
14748 #define HAVE_DECL_SNPRINTF 0
14749 _ACEOF
14753 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
14754 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
14755 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
14756 echo $ECHO_N "(cached) $ECHO_C" >&6
14757 else
14758 cat >conftest.$ac_ext <<_ACEOF
14759 /* confdefs.h. */
14760 _ACEOF
14761 cat confdefs.h >>conftest.$ac_ext
14762 cat >>conftest.$ac_ext <<_ACEOF
14763 /* end confdefs.h. */
14764 $ac_includes_default
14766 main ()
14768 #ifndef vsnprintf
14769 char *p = (char *) vsnprintf;
14770 #endif
14773 return 0;
14775 _ACEOF
14776 rm -f conftest.$ac_objext
14777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14778 (eval $ac_compile) 2>conftest.er1
14779 ac_status=$?
14780 grep -v '^ *+' conftest.er1 >conftest.err
14781 rm -f conftest.er1
14782 cat conftest.err >&5
14783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784 (exit $ac_status); } &&
14785 { ac_try='test -z "$ac_c_werror_flag"
14786 || test ! -s conftest.err'
14787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14788 (eval $ac_try) 2>&5
14789 ac_status=$?
14790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791 (exit $ac_status); }; } &&
14792 { ac_try='test -s conftest.$ac_objext'
14793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14794 (eval $ac_try) 2>&5
14795 ac_status=$?
14796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797 (exit $ac_status); }; }; then
14798 ac_cv_have_decl_vsnprintf=yes
14799 else
14800 echo "$as_me: failed program was:" >&5
14801 sed 's/^/| /' conftest.$ac_ext >&5
14803 ac_cv_have_decl_vsnprintf=no
14805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14807 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
14808 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
14809 if test $ac_cv_have_decl_vsnprintf = yes; then
14811 cat >>confdefs.h <<_ACEOF
14812 #define HAVE_DECL_VSNPRINTF 1
14813 _ACEOF
14816 else
14817 cat >>confdefs.h <<_ACEOF
14818 #define HAVE_DECL_VSNPRINTF 0
14819 _ACEOF
14826 # Link in zlib if we can. This allows us to read compressed debug
14827 # sections. This is used only by readelf.c (objdump uses bfd for
14828 # reading compressed sections).
14829 echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
14830 echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
14831 if test "${ac_cv_search_zlibVersion+set}" = set; then
14832 echo $ECHO_N "(cached) $ECHO_C" >&6
14833 else
14834 ac_func_search_save_LIBS=$LIBS
14835 ac_cv_search_zlibVersion=no
14836 cat >conftest.$ac_ext <<_ACEOF
14837 /* confdefs.h. */
14838 _ACEOF
14839 cat confdefs.h >>conftest.$ac_ext
14840 cat >>conftest.$ac_ext <<_ACEOF
14841 /* end confdefs.h. */
14843 /* Override any gcc2 internal prototype to avoid an error. */
14844 #ifdef __cplusplus
14845 extern "C"
14846 #endif
14847 /* We use char because int might match the return type of a gcc2
14848 builtin and then its argument prototype would still apply. */
14849 char zlibVersion ();
14851 main ()
14853 zlibVersion ();
14855 return 0;
14857 _ACEOF
14858 rm -f conftest.$ac_objext conftest$ac_exeext
14859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14860 (eval $ac_link) 2>conftest.er1
14861 ac_status=$?
14862 grep -v '^ *+' conftest.er1 >conftest.err
14863 rm -f conftest.er1
14864 cat conftest.err >&5
14865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866 (exit $ac_status); } &&
14867 { ac_try='test -z "$ac_c_werror_flag"
14868 || test ! -s conftest.err'
14869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14870 (eval $ac_try) 2>&5
14871 ac_status=$?
14872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873 (exit $ac_status); }; } &&
14874 { ac_try='test -s conftest$ac_exeext'
14875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14876 (eval $ac_try) 2>&5
14877 ac_status=$?
14878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879 (exit $ac_status); }; }; then
14880 ac_cv_search_zlibVersion="none required"
14881 else
14882 echo "$as_me: failed program was:" >&5
14883 sed 's/^/| /' conftest.$ac_ext >&5
14886 rm -f conftest.err conftest.$ac_objext \
14887 conftest$ac_exeext conftest.$ac_ext
14888 if test "$ac_cv_search_zlibVersion" = no; then
14889 for ac_lib in z; do
14890 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14891 cat >conftest.$ac_ext <<_ACEOF
14892 /* confdefs.h. */
14893 _ACEOF
14894 cat confdefs.h >>conftest.$ac_ext
14895 cat >>conftest.$ac_ext <<_ACEOF
14896 /* end confdefs.h. */
14898 /* Override any gcc2 internal prototype to avoid an error. */
14899 #ifdef __cplusplus
14900 extern "C"
14901 #endif
14902 /* We use char because int might match the return type of a gcc2
14903 builtin and then its argument prototype would still apply. */
14904 char zlibVersion ();
14906 main ()
14908 zlibVersion ();
14910 return 0;
14912 _ACEOF
14913 rm -f conftest.$ac_objext conftest$ac_exeext
14914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14915 (eval $ac_link) 2>conftest.er1
14916 ac_status=$?
14917 grep -v '^ *+' conftest.er1 >conftest.err
14918 rm -f conftest.er1
14919 cat conftest.err >&5
14920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921 (exit $ac_status); } &&
14922 { ac_try='test -z "$ac_c_werror_flag"
14923 || test ! -s conftest.err'
14924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14925 (eval $ac_try) 2>&5
14926 ac_status=$?
14927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928 (exit $ac_status); }; } &&
14929 { ac_try='test -s conftest$ac_exeext'
14930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14931 (eval $ac_try) 2>&5
14932 ac_status=$?
14933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934 (exit $ac_status); }; }; then
14935 ac_cv_search_zlibVersion="-l$ac_lib"
14936 break
14937 else
14938 echo "$as_me: failed program was:" >&5
14939 sed 's/^/| /' conftest.$ac_ext >&5
14942 rm -f conftest.err conftest.$ac_objext \
14943 conftest$ac_exeext conftest.$ac_ext
14944 done
14946 LIBS=$ac_func_search_save_LIBS
14948 echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
14949 echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
14950 if test "$ac_cv_search_zlibVersion" != no; then
14951 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
14953 for ac_header in zlib.h
14955 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14957 echo "$as_me:$LINENO: checking for $ac_header" >&5
14958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14960 echo $ECHO_N "(cached) $ECHO_C" >&6
14962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14963 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14964 else
14965 # Is the header compilable?
14966 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14967 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14968 cat >conftest.$ac_ext <<_ACEOF
14969 /* confdefs.h. */
14970 _ACEOF
14971 cat confdefs.h >>conftest.$ac_ext
14972 cat >>conftest.$ac_ext <<_ACEOF
14973 /* end confdefs.h. */
14974 $ac_includes_default
14975 #include <$ac_header>
14976 _ACEOF
14977 rm -f conftest.$ac_objext
14978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14979 (eval $ac_compile) 2>conftest.er1
14980 ac_status=$?
14981 grep -v '^ *+' conftest.er1 >conftest.err
14982 rm -f conftest.er1
14983 cat conftest.err >&5
14984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985 (exit $ac_status); } &&
14986 { ac_try='test -z "$ac_c_werror_flag"
14987 || test ! -s conftest.err'
14988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14989 (eval $ac_try) 2>&5
14990 ac_status=$?
14991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992 (exit $ac_status); }; } &&
14993 { ac_try='test -s conftest.$ac_objext'
14994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14995 (eval $ac_try) 2>&5
14996 ac_status=$?
14997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998 (exit $ac_status); }; }; then
14999 ac_header_compiler=yes
15000 else
15001 echo "$as_me: failed program was:" >&5
15002 sed 's/^/| /' conftest.$ac_ext >&5
15004 ac_header_compiler=no
15006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15007 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15008 echo "${ECHO_T}$ac_header_compiler" >&6
15010 # Is the header present?
15011 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15012 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15013 cat >conftest.$ac_ext <<_ACEOF
15014 /* confdefs.h. */
15015 _ACEOF
15016 cat confdefs.h >>conftest.$ac_ext
15017 cat >>conftest.$ac_ext <<_ACEOF
15018 /* end confdefs.h. */
15019 #include <$ac_header>
15020 _ACEOF
15021 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15022 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15023 ac_status=$?
15024 grep -v '^ *+' conftest.er1 >conftest.err
15025 rm -f conftest.er1
15026 cat conftest.err >&5
15027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028 (exit $ac_status); } >/dev/null; then
15029 if test -s conftest.err; then
15030 ac_cpp_err=$ac_c_preproc_warn_flag
15031 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15032 else
15033 ac_cpp_err=
15035 else
15036 ac_cpp_err=yes
15038 if test -z "$ac_cpp_err"; then
15039 ac_header_preproc=yes
15040 else
15041 echo "$as_me: failed program was:" >&5
15042 sed 's/^/| /' conftest.$ac_ext >&5
15044 ac_header_preproc=no
15046 rm -f conftest.err conftest.$ac_ext
15047 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15048 echo "${ECHO_T}$ac_header_preproc" >&6
15050 # So? What about this header?
15051 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15052 yes:no: )
15053 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15054 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15056 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15057 ac_header_preproc=yes
15059 no:yes:* )
15060 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15061 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15062 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15063 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15064 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15065 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15066 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15067 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15069 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15070 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15071 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15073 cat <<\_ASBOX
15074 ## ------------------------------------------ ##
15075 ## Report this to the AC_PACKAGE_NAME lists. ##
15076 ## ------------------------------------------ ##
15077 _ASBOX
15079 sed "s/^/$as_me: WARNING: /" >&2
15081 esac
15082 echo "$as_me:$LINENO: checking for $ac_header" >&5
15083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15085 echo $ECHO_N "(cached) $ECHO_C" >&6
15086 else
15087 eval "$as_ac_Header=\$ac_header_preproc"
15089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15090 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15093 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15094 cat >>confdefs.h <<_ACEOF
15095 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15096 _ACEOF
15100 done
15106 case "${host}" in
15107 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
15109 cat >>confdefs.h <<\_ACEOF
15110 #define USE_BINARY_FOPEN 1
15111 _ACEOF
15113 esac
15115 # target-specific stuff:
15117 # Canonicalize the secondary target names.
15118 if test -n "$enable_targets"; then
15119 for targ in `echo $enable_targets | sed 's/,/ /g'`
15121 result=`$ac_config_sub $targ 2>/dev/null`
15122 if test -n "$result"; then
15123 canon_targets="$canon_targets $result"
15124 else
15125 # Allow targets that config.sub doesn't recognize, like "all".
15126 canon_targets="$canon_targets $targ"
15128 done
15131 if test "${ac_cv_header_iconv_h+set}" = set; then
15132 echo "$as_me:$LINENO: checking for iconv.h" >&5
15133 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
15134 if test "${ac_cv_header_iconv_h+set}" = set; then
15135 echo $ECHO_N "(cached) $ECHO_C" >&6
15137 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
15138 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
15139 else
15140 # Is the header compilable?
15141 echo "$as_me:$LINENO: checking iconv.h usability" >&5
15142 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
15143 cat >conftest.$ac_ext <<_ACEOF
15144 /* confdefs.h. */
15145 _ACEOF
15146 cat confdefs.h >>conftest.$ac_ext
15147 cat >>conftest.$ac_ext <<_ACEOF
15148 /* end confdefs.h. */
15149 $ac_includes_default
15150 #include <iconv.h>
15151 _ACEOF
15152 rm -f conftest.$ac_objext
15153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15154 (eval $ac_compile) 2>conftest.er1
15155 ac_status=$?
15156 grep -v '^ *+' conftest.er1 >conftest.err
15157 rm -f conftest.er1
15158 cat conftest.err >&5
15159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160 (exit $ac_status); } &&
15161 { ac_try='test -z "$ac_c_werror_flag"
15162 || test ! -s conftest.err'
15163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15164 (eval $ac_try) 2>&5
15165 ac_status=$?
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); }; } &&
15168 { ac_try='test -s conftest.$ac_objext'
15169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15170 (eval $ac_try) 2>&5
15171 ac_status=$?
15172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); }; }; then
15174 ac_header_compiler=yes
15175 else
15176 echo "$as_me: failed program was:" >&5
15177 sed 's/^/| /' conftest.$ac_ext >&5
15179 ac_header_compiler=no
15181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15182 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15183 echo "${ECHO_T}$ac_header_compiler" >&6
15185 # Is the header present?
15186 echo "$as_me:$LINENO: checking iconv.h presence" >&5
15187 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
15188 cat >conftest.$ac_ext <<_ACEOF
15189 /* confdefs.h. */
15190 _ACEOF
15191 cat confdefs.h >>conftest.$ac_ext
15192 cat >>conftest.$ac_ext <<_ACEOF
15193 /* end confdefs.h. */
15194 #include <iconv.h>
15195 _ACEOF
15196 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15197 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15198 ac_status=$?
15199 grep -v '^ *+' conftest.er1 >conftest.err
15200 rm -f conftest.er1
15201 cat conftest.err >&5
15202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15203 (exit $ac_status); } >/dev/null; then
15204 if test -s conftest.err; then
15205 ac_cpp_err=$ac_c_preproc_warn_flag
15206 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15207 else
15208 ac_cpp_err=
15210 else
15211 ac_cpp_err=yes
15213 if test -z "$ac_cpp_err"; then
15214 ac_header_preproc=yes
15215 else
15216 echo "$as_me: failed program was:" >&5
15217 sed 's/^/| /' conftest.$ac_ext >&5
15219 ac_header_preproc=no
15221 rm -f conftest.err conftest.$ac_ext
15222 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15223 echo "${ECHO_T}$ac_header_preproc" >&6
15225 # So? What about this header?
15226 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15227 yes:no: )
15228 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
15229 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15230 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
15231 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
15232 ac_header_preproc=yes
15234 no:yes:* )
15235 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
15236 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
15237 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
15238 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
15239 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
15240 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
15241 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
15242 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
15243 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
15244 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
15245 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
15246 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
15248 cat <<\_ASBOX
15249 ## ------------------------------------------ ##
15250 ## Report this to the AC_PACKAGE_NAME lists. ##
15251 ## ------------------------------------------ ##
15252 _ASBOX
15254 sed "s/^/$as_me: WARNING: /" >&2
15256 esac
15257 echo "$as_me:$LINENO: checking for iconv.h" >&5
15258 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
15259 if test "${ac_cv_header_iconv_h+set}" = set; then
15260 echo $ECHO_N "(cached) $ECHO_C" >&6
15261 else
15262 ac_cv_header_iconv_h=$ac_header_preproc
15264 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
15265 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
15271 if test "X$prefix" = "XNONE"; then
15272 acl_final_prefix="$ac_default_prefix"
15273 else
15274 acl_final_prefix="$prefix"
15276 if test "X$exec_prefix" = "XNONE"; then
15277 acl_final_exec_prefix='${prefix}'
15278 else
15279 acl_final_exec_prefix="$exec_prefix"
15281 acl_save_prefix="$prefix"
15282 prefix="$acl_final_prefix"
15283 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
15284 prefix="$acl_save_prefix"
15287 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15288 if test "${with_gnu_ld+set}" = set; then
15289 withval="$with_gnu_ld"
15290 test "$withval" = no || with_gnu_ld=yes
15291 else
15292 with_gnu_ld=no
15294 # Prepare PATH_SEPARATOR.
15295 # The user is always right.
15296 if test "${PATH_SEPARATOR+set}" != set; then
15297 echo "#! /bin/sh" >conf$$.sh
15298 echo "exit 0" >>conf$$.sh
15299 chmod +x conf$$.sh
15300 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15301 PATH_SEPARATOR=';'
15302 else
15303 PATH_SEPARATOR=:
15305 rm -f conf$$.sh
15307 ac_prog=ld
15308 if test "$GCC" = yes; then
15309 # Check if gcc -print-prog-name=ld gives a path.
15310 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
15311 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
15312 case $host in
15313 *-*-mingw*)
15314 # gcc leaves a trailing carriage return which upsets mingw
15315 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15317 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15318 esac
15319 case $ac_prog in
15320 # Accept absolute paths.
15321 [\\/]* | [A-Za-z]:[\\/]*)
15322 re_direlt='/[^/][^/]*/\.\./'
15323 # Canonicalize the path of ld
15324 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
15325 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15326 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
15327 done
15328 test -z "$LD" && LD="$ac_prog"
15331 # If it fails, then pretend we aren't using GCC.
15332 ac_prog=ld
15335 # If it is relative, then search for the first ld in PATH.
15336 with_gnu_ld=unknown
15338 esac
15339 elif test "$with_gnu_ld" = yes; then
15340 echo "$as_me:$LINENO: checking for GNU ld" >&5
15341 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15342 else
15343 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15344 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15346 if test "${acl_cv_path_LD+set}" = set; then
15347 echo $ECHO_N "(cached) $ECHO_C" >&6
15348 else
15349 if test -z "$LD"; then
15350 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
15351 for ac_dir in $PATH; do
15352 test -z "$ac_dir" && ac_dir=.
15353 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15354 acl_cv_path_LD="$ac_dir/$ac_prog"
15355 # Check to see if the program is GNU ld. I'd rather use --version,
15356 # but apparently some GNU ld's only accept -v.
15357 # Break only if it was the GNU/non-GNU ld that we prefer.
15358 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
15359 test "$with_gnu_ld" != no && break
15360 else
15361 test "$with_gnu_ld" != yes && break
15364 done
15365 IFS="$ac_save_ifs"
15366 else
15367 acl_cv_path_LD="$LD" # Let the user override the test with a path.
15371 LD="$acl_cv_path_LD"
15372 if test -n "$LD"; then
15373 echo "$as_me:$LINENO: result: $LD" >&5
15374 echo "${ECHO_T}$LD" >&6
15375 else
15376 echo "$as_me:$LINENO: result: no" >&5
15377 echo "${ECHO_T}no" >&6
15379 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15380 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15381 { (exit 1); exit 1; }; }
15382 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15383 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15384 if test "${acl_cv_prog_gnu_ld+set}" = set; then
15385 echo $ECHO_N "(cached) $ECHO_C" >&6
15386 else
15387 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15388 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
15389 acl_cv_prog_gnu_ld=yes
15390 else
15391 acl_cv_prog_gnu_ld=no
15394 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
15395 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
15396 with_gnu_ld=$acl_cv_prog_gnu_ld
15400 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
15401 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
15402 if test "${acl_cv_rpath+set}" = set; then
15403 echo $ECHO_N "(cached) $ECHO_C" >&6
15404 else
15406 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
15407 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
15408 . ./conftest.sh
15409 rm -f ./conftest.sh
15410 acl_cv_rpath=done
15413 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
15414 echo "${ECHO_T}$acl_cv_rpath" >&6
15415 wl="$acl_cv_wl"
15416 libext="$acl_cv_libext"
15417 shlibext="$acl_cv_shlibext"
15418 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
15419 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
15420 hardcode_direct="$acl_cv_hardcode_direct"
15421 hardcode_minus_L="$acl_cv_hardcode_minus_L"
15422 # Check whether --enable-rpath or --disable-rpath was given.
15423 if test "${enable_rpath+set}" = set; then
15424 enableval="$enable_rpath"
15426 else
15427 enable_rpath=yes
15436 use_additional=yes
15438 acl_save_prefix="$prefix"
15439 prefix="$acl_final_prefix"
15440 acl_save_exec_prefix="$exec_prefix"
15441 exec_prefix="$acl_final_exec_prefix"
15443 eval additional_includedir=\"$includedir\"
15444 eval additional_libdir=\"$libdir\"
15446 exec_prefix="$acl_save_exec_prefix"
15447 prefix="$acl_save_prefix"
15450 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
15451 if test "${with_libiconv_prefix+set}" = set; then
15452 withval="$with_libiconv_prefix"
15454 if test "X$withval" = "Xno"; then
15455 use_additional=no
15456 else
15457 if test "X$withval" = "X"; then
15459 acl_save_prefix="$prefix"
15460 prefix="$acl_final_prefix"
15461 acl_save_exec_prefix="$exec_prefix"
15462 exec_prefix="$acl_final_exec_prefix"
15464 eval additional_includedir=\"$includedir\"
15465 eval additional_libdir=\"$libdir\"
15467 exec_prefix="$acl_save_exec_prefix"
15468 prefix="$acl_save_prefix"
15470 else
15471 additional_includedir="$withval/include"
15472 additional_libdir="$withval/lib"
15477 LIBICONV=
15478 LTLIBICONV=
15479 INCICONV=
15480 rpathdirs=
15481 ltrpathdirs=
15482 names_already_handled=
15483 names_next_round='iconv '
15484 while test -n "$names_next_round"; do
15485 names_this_round="$names_next_round"
15486 names_next_round=
15487 for name in $names_this_round; do
15488 already_handled=
15489 for n in $names_already_handled; do
15490 if test "$n" = "$name"; then
15491 already_handled=yes
15492 break
15494 done
15495 if test -z "$already_handled"; then
15496 names_already_handled="$names_already_handled $name"
15497 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15498 eval value=\"\$HAVE_LIB$uppername\"
15499 if test -n "$value"; then
15500 if test "$value" = yes; then
15501 eval value=\"\$LIB$uppername\"
15502 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
15503 eval value=\"\$LTLIB$uppername\"
15504 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
15505 else
15508 else
15509 found_dir=
15510 found_la=
15511 found_so=
15512 found_a=
15513 if test $use_additional = yes; then
15514 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
15515 found_dir="$additional_libdir"
15516 found_so="$additional_libdir/lib$name.$shlibext"
15517 if test -f "$additional_libdir/lib$name.la"; then
15518 found_la="$additional_libdir/lib$name.la"
15520 else
15521 if test -f "$additional_libdir/lib$name.$libext"; then
15522 found_dir="$additional_libdir"
15523 found_a="$additional_libdir/lib$name.$libext"
15524 if test -f "$additional_libdir/lib$name.la"; then
15525 found_la="$additional_libdir/lib$name.la"
15530 if test "X$found_dir" = "X"; then
15531 for x in $LDFLAGS $LTLIBICONV; do
15533 acl_save_prefix="$prefix"
15534 prefix="$acl_final_prefix"
15535 acl_save_exec_prefix="$exec_prefix"
15536 exec_prefix="$acl_final_exec_prefix"
15537 eval x=\"$x\"
15538 exec_prefix="$acl_save_exec_prefix"
15539 prefix="$acl_save_prefix"
15541 case "$x" in
15542 -L*)
15543 dir=`echo "X$x" | sed -e 's/^X-L//'`
15544 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
15545 found_dir="$dir"
15546 found_so="$dir/lib$name.$shlibext"
15547 if test -f "$dir/lib$name.la"; then
15548 found_la="$dir/lib$name.la"
15550 else
15551 if test -f "$dir/lib$name.$libext"; then
15552 found_dir="$dir"
15553 found_a="$dir/lib$name.$libext"
15554 if test -f "$dir/lib$name.la"; then
15555 found_la="$dir/lib$name.la"
15560 esac
15561 if test "X$found_dir" != "X"; then
15562 break
15564 done
15566 if test "X$found_dir" != "X"; then
15567 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
15568 if test "X$found_so" != "X"; then
15569 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
15570 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15571 else
15572 haveit=
15573 for x in $ltrpathdirs; do
15574 if test "X$x" = "X$found_dir"; then
15575 haveit=yes
15576 break
15578 done
15579 if test -z "$haveit"; then
15580 ltrpathdirs="$ltrpathdirs $found_dir"
15582 if test "$hardcode_direct" = yes; then
15583 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15584 else
15585 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
15586 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15587 haveit=
15588 for x in $rpathdirs; do
15589 if test "X$x" = "X$found_dir"; then
15590 haveit=yes
15591 break
15593 done
15594 if test -z "$haveit"; then
15595 rpathdirs="$rpathdirs $found_dir"
15597 else
15598 haveit=
15599 for x in $LDFLAGS $LIBICONV; do
15601 acl_save_prefix="$prefix"
15602 prefix="$acl_final_prefix"
15603 acl_save_exec_prefix="$exec_prefix"
15604 exec_prefix="$acl_final_exec_prefix"
15605 eval x=\"$x\"
15606 exec_prefix="$acl_save_exec_prefix"
15607 prefix="$acl_save_prefix"
15609 if test "X$x" = "X-L$found_dir"; then
15610 haveit=yes
15611 break
15613 done
15614 if test -z "$haveit"; then
15615 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
15617 if test "$hardcode_minus_L" != no; then
15618 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15619 else
15620 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15625 else
15626 if test "X$found_a" != "X"; then
15627 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
15628 else
15629 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
15632 additional_includedir=
15633 case "$found_dir" in
15634 */lib | */lib/)
15635 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
15636 additional_includedir="$basedir/include"
15638 esac
15639 if test "X$additional_includedir" != "X"; then
15640 if test "X$additional_includedir" != "X/usr/include"; then
15641 haveit=
15642 if test "X$additional_includedir" = "X/usr/local/include"; then
15643 if test -n "$GCC"; then
15644 case $host_os in
15645 linux*) haveit=yes;;
15646 esac
15649 if test -z "$haveit"; then
15650 for x in $CPPFLAGS $INCICONV; do
15652 acl_save_prefix="$prefix"
15653 prefix="$acl_final_prefix"
15654 acl_save_exec_prefix="$exec_prefix"
15655 exec_prefix="$acl_final_exec_prefix"
15656 eval x=\"$x\"
15657 exec_prefix="$acl_save_exec_prefix"
15658 prefix="$acl_save_prefix"
15660 if test "X$x" = "X-I$additional_includedir"; then
15661 haveit=yes
15662 break
15664 done
15665 if test -z "$haveit"; then
15666 if test -d "$additional_includedir"; then
15667 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
15673 if test -n "$found_la"; then
15674 save_libdir="$libdir"
15675 case "$found_la" in
15676 */* | *\\*) . "$found_la" ;;
15677 *) . "./$found_la" ;;
15678 esac
15679 libdir="$save_libdir"
15680 for dep in $dependency_libs; do
15681 case "$dep" in
15682 -L*)
15683 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15684 if test "X$additional_libdir" != "X/usr/lib"; then
15685 haveit=
15686 if test "X$additional_libdir" = "X/usr/local/lib"; then
15687 if test -n "$GCC"; then
15688 case $host_os in
15689 linux*) haveit=yes;;
15690 esac
15693 if test -z "$haveit"; then
15694 haveit=
15695 for x in $LDFLAGS $LIBICONV; do
15697 acl_save_prefix="$prefix"
15698 prefix="$acl_final_prefix"
15699 acl_save_exec_prefix="$exec_prefix"
15700 exec_prefix="$acl_final_exec_prefix"
15701 eval x=\"$x\"
15702 exec_prefix="$acl_save_exec_prefix"
15703 prefix="$acl_save_prefix"
15705 if test "X$x" = "X-L$additional_libdir"; then
15706 haveit=yes
15707 break
15709 done
15710 if test -z "$haveit"; then
15711 if test -d "$additional_libdir"; then
15712 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
15715 haveit=
15716 for x in $LDFLAGS $LTLIBICONV; do
15718 acl_save_prefix="$prefix"
15719 prefix="$acl_final_prefix"
15720 acl_save_exec_prefix="$exec_prefix"
15721 exec_prefix="$acl_final_exec_prefix"
15722 eval x=\"$x\"
15723 exec_prefix="$acl_save_exec_prefix"
15724 prefix="$acl_save_prefix"
15726 if test "X$x" = "X-L$additional_libdir"; then
15727 haveit=yes
15728 break
15730 done
15731 if test -z "$haveit"; then
15732 if test -d "$additional_libdir"; then
15733 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
15739 -R*)
15740 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15741 if test "$enable_rpath" != no; then
15742 haveit=
15743 for x in $rpathdirs; do
15744 if test "X$x" = "X$dir"; then
15745 haveit=yes
15746 break
15748 done
15749 if test -z "$haveit"; then
15750 rpathdirs="$rpathdirs $dir"
15752 haveit=
15753 for x in $ltrpathdirs; do
15754 if test "X$x" = "X$dir"; then
15755 haveit=yes
15756 break
15758 done
15759 if test -z "$haveit"; then
15760 ltrpathdirs="$ltrpathdirs $dir"
15764 -l*)
15765 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15767 *.la)
15768 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15771 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
15772 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
15774 esac
15775 done
15777 else
15778 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15779 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
15783 done
15784 done
15785 if test "X$rpathdirs" != "X"; then
15786 if test -n "$hardcode_libdir_separator"; then
15787 alldirs=
15788 for found_dir in $rpathdirs; do
15789 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15790 done
15791 acl_save_libdir="$libdir"
15792 libdir="$alldirs"
15793 eval flag=\"$hardcode_libdir_flag_spec\"
15794 libdir="$acl_save_libdir"
15795 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15796 else
15797 for found_dir in $rpathdirs; do
15798 acl_save_libdir="$libdir"
15799 libdir="$found_dir"
15800 eval flag=\"$hardcode_libdir_flag_spec\"
15801 libdir="$acl_save_libdir"
15802 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15803 done
15806 if test "X$ltrpathdirs" != "X"; then
15807 for found_dir in $ltrpathdirs; do
15808 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
15809 done
15818 am_save_CPPFLAGS="$CPPFLAGS"
15820 for element in $INCICONV; do
15821 haveit=
15822 for x in $CPPFLAGS; do
15824 acl_save_prefix="$prefix"
15825 prefix="$acl_final_prefix"
15826 acl_save_exec_prefix="$exec_prefix"
15827 exec_prefix="$acl_final_exec_prefix"
15828 eval x=\"$x\"
15829 exec_prefix="$acl_save_exec_prefix"
15830 prefix="$acl_save_prefix"
15832 if test "X$x" = "X$element"; then
15833 haveit=yes
15834 break
15836 done
15837 if test -z "$haveit"; then
15838 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15840 done
15843 echo "$as_me:$LINENO: checking for iconv" >&5
15844 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
15845 if test "${am_cv_func_iconv+set}" = set; then
15846 echo $ECHO_N "(cached) $ECHO_C" >&6
15847 else
15849 am_cv_func_iconv="no, consider installing GNU libiconv"
15850 am_cv_lib_iconv=no
15851 cat >conftest.$ac_ext <<_ACEOF
15852 /* confdefs.h. */
15853 _ACEOF
15854 cat confdefs.h >>conftest.$ac_ext
15855 cat >>conftest.$ac_ext <<_ACEOF
15856 /* end confdefs.h. */
15857 #include <stdlib.h>
15858 #include <iconv.h>
15860 main ()
15862 iconv_t cd = iconv_open("","");
15863 iconv(cd,NULL,NULL,NULL,NULL);
15864 iconv_close(cd);
15866 return 0;
15868 _ACEOF
15869 rm -f conftest.$ac_objext conftest$ac_exeext
15870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15871 (eval $ac_link) 2>conftest.er1
15872 ac_status=$?
15873 grep -v '^ *+' conftest.er1 >conftest.err
15874 rm -f conftest.er1
15875 cat conftest.err >&5
15876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877 (exit $ac_status); } &&
15878 { ac_try='test -z "$ac_c_werror_flag"
15879 || test ! -s conftest.err'
15880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15881 (eval $ac_try) 2>&5
15882 ac_status=$?
15883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884 (exit $ac_status); }; } &&
15885 { ac_try='test -s conftest$ac_exeext'
15886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15887 (eval $ac_try) 2>&5
15888 ac_status=$?
15889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15890 (exit $ac_status); }; }; then
15891 am_cv_func_iconv=yes
15892 else
15893 echo "$as_me: failed program was:" >&5
15894 sed 's/^/| /' conftest.$ac_ext >&5
15897 rm -f conftest.err conftest.$ac_objext \
15898 conftest$ac_exeext conftest.$ac_ext
15899 if test "$am_cv_func_iconv" != yes; then
15900 am_save_LIBS="$LIBS"
15901 LIBS="$LIBS $LIBICONV"
15902 cat >conftest.$ac_ext <<_ACEOF
15903 /* confdefs.h. */
15904 _ACEOF
15905 cat confdefs.h >>conftest.$ac_ext
15906 cat >>conftest.$ac_ext <<_ACEOF
15907 /* end confdefs.h. */
15908 #include <stdlib.h>
15909 #include <iconv.h>
15911 main ()
15913 iconv_t cd = iconv_open("","");
15914 iconv(cd,NULL,NULL,NULL,NULL);
15915 iconv_close(cd);
15917 return 0;
15919 _ACEOF
15920 rm -f conftest.$ac_objext conftest$ac_exeext
15921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15922 (eval $ac_link) 2>conftest.er1
15923 ac_status=$?
15924 grep -v '^ *+' conftest.er1 >conftest.err
15925 rm -f conftest.er1
15926 cat conftest.err >&5
15927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928 (exit $ac_status); } &&
15929 { ac_try='test -z "$ac_c_werror_flag"
15930 || test ! -s conftest.err'
15931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15932 (eval $ac_try) 2>&5
15933 ac_status=$?
15934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935 (exit $ac_status); }; } &&
15936 { ac_try='test -s conftest$ac_exeext'
15937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15938 (eval $ac_try) 2>&5
15939 ac_status=$?
15940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941 (exit $ac_status); }; }; then
15942 am_cv_lib_iconv=yes
15943 am_cv_func_iconv=yes
15944 else
15945 echo "$as_me: failed program was:" >&5
15946 sed 's/^/| /' conftest.$ac_ext >&5
15949 rm -f conftest.err conftest.$ac_objext \
15950 conftest$ac_exeext conftest.$ac_ext
15951 LIBS="$am_save_LIBS"
15955 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
15956 echo "${ECHO_T}$am_cv_func_iconv" >&6
15957 if test "$am_cv_func_iconv" = yes; then
15959 cat >>confdefs.h <<\_ACEOF
15960 #define HAVE_ICONV 1
15961 _ACEOF
15964 if test "$am_cv_lib_iconv" = yes; then
15965 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
15966 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
15967 echo "$as_me:$LINENO: result: $LIBICONV" >&5
15968 echo "${ECHO_T}$LIBICONV" >&6
15969 else
15970 CPPFLAGS="$am_save_CPPFLAGS"
15971 LIBICONV=
15972 LTLIBICONV=
15977 if test "$am_cv_func_iconv" = yes; then
15978 echo "$as_me:$LINENO: checking for iconv declaration" >&5
15979 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
15980 if test "${am_cv_proto_iconv+set}" = set; then
15981 echo $ECHO_N "(cached) $ECHO_C" >&6
15982 else
15984 cat >conftest.$ac_ext <<_ACEOF
15985 /* confdefs.h. */
15986 _ACEOF
15987 cat confdefs.h >>conftest.$ac_ext
15988 cat >>conftest.$ac_ext <<_ACEOF
15989 /* end confdefs.h. */
15991 #include <stdlib.h>
15992 #include <iconv.h>
15993 extern
15994 #ifdef __cplusplus
15996 #endif
15997 #if defined(__STDC__) || defined(__cplusplus)
15998 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
15999 #else
16000 size_t iconv();
16001 #endif
16004 main ()
16008 return 0;
16010 _ACEOF
16011 rm -f conftest.$ac_objext
16012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16013 (eval $ac_compile) 2>conftest.er1
16014 ac_status=$?
16015 grep -v '^ *+' conftest.er1 >conftest.err
16016 rm -f conftest.er1
16017 cat conftest.err >&5
16018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019 (exit $ac_status); } &&
16020 { ac_try='test -z "$ac_c_werror_flag"
16021 || test ! -s conftest.err'
16022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16023 (eval $ac_try) 2>&5
16024 ac_status=$?
16025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16026 (exit $ac_status); }; } &&
16027 { ac_try='test -s conftest.$ac_objext'
16028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16029 (eval $ac_try) 2>&5
16030 ac_status=$?
16031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032 (exit $ac_status); }; }; then
16033 am_cv_proto_iconv_arg1=""
16034 else
16035 echo "$as_me: failed program was:" >&5
16036 sed 's/^/| /' conftest.$ac_ext >&5
16038 am_cv_proto_iconv_arg1="const"
16040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16041 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);"
16044 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
16045 echo "$as_me:$LINENO: result: ${ac_t:-
16046 }$am_cv_proto_iconv" >&5
16047 echo "${ECHO_T}${ac_t:-
16048 }$am_cv_proto_iconv" >&6
16050 cat >>confdefs.h <<_ACEOF
16051 #define ICONV_CONST $am_cv_proto_iconv_arg1
16052 _ACEOF
16057 all_targets=false
16058 BUILD_NLMCONV=
16059 NLMCONV_DEFS=
16060 BUILD_SRCONV=
16061 BUILD_DLLTOOL=
16062 DLLTOOL_DEFS=
16063 DLLTOOL_DEFAULT=
16064 BUILD_WINDRES=
16065 BUILD_WINDMC=
16066 BUILD_DLLWRAP=
16067 BUILD_MISC=
16068 BUILD_INSTALL_MISC=
16069 OBJDUMP_DEFS=
16071 for targ in $target $canon_targets
16073 if test "x$targ" = "xall"; then
16074 all_targets=true
16075 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
16076 BUILD_SRCONV='$(SRCONV_PROG)'
16077 NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
16078 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
16079 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16080 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16081 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16082 if test -z "$DLLTOOL_DEFAULT"; then
16083 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
16085 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
16086 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
16087 else
16088 case $targ in
16089 i[3-7]86*-*-netware*)
16090 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
16091 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
16093 alpha*-*-netware*)
16094 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
16095 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
16097 powerpc*-*-netware*)
16098 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
16099 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
16101 sparc*-*-netware*)
16102 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
16103 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
16105 esac
16106 case $targ in
16107 *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
16108 esac
16109 case $targ in
16110 arm-epoc-pe*)
16111 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16112 if test -z "$DLLTOOL_DEFAULT"; then
16113 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_EPOC"
16115 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
16116 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16117 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16119 arm-wince-pe* | arm-*-wince)
16120 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16121 if test -z "$DLLTOOL_DEFAULT"; then
16122 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
16124 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
16125 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16126 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16128 arm-*-pe*)
16129 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16130 if test -z "$DLLTOOL_DEFAULT"; then
16131 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
16133 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
16134 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16135 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16137 thumb-*-pe*)
16138 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16139 if test -z "$DLLTOOL_DEFAULT"; then
16140 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
16142 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
16143 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16144 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16146 x86_64-*-mingw*)
16147 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16148 if test -z "$DLLTOOL_DEFAULT"; then
16149 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
16151 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
16152 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16153 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16154 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
16156 i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
16157 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16158 if test -z "$DLLTOOL_DEFAULT"; then
16159 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
16161 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
16162 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16163 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16164 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
16166 i[3-7]86-*-interix)
16167 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
16168 if test -z "$DLLTOOL_DEFAULT"; then
16169 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
16171 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
16173 powerpc*-aix5.[01])
16175 powerpc*-aix[5-9].*)
16176 OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
16178 powerpc*-*-pe* | powerpc*-*-cygwin*)
16179 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16180 if test -z "$DLLTOOL_DEFAULT"; then
16181 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_PPC"
16183 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
16184 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16185 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16187 powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*)
16188 BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu"
16190 sh*-*-pe)
16191 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16192 if test -z "$DLLTOOL_DEFAULT"; then
16193 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
16195 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
16196 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16197 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16199 spu-*-*)
16200 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
16202 mips*-*-pe)
16203 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16204 if test -z "$DLLTOOL_DEFAULT"; then
16205 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS"
16207 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
16208 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16209 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16211 mcore-*-pe)
16212 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16213 if test -z "$DLLTOOL_DEFAULT"; then
16214 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
16216 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
16217 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16218 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16220 mcore-*-elf)
16221 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16222 if test -z "$DLLTOOL_DEFAULT"; then
16223 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
16225 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
16227 mep-*)
16228 OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
16230 esac
16232 done
16234 DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
16236 if test "${with_windres+set}" = set; then
16237 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16240 if test "${with_windmc+set}" = set; then
16241 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16257 cat >>confdefs.h <<_ACEOF
16258 #define TARGET "${target}"
16259 _ACEOF
16262 targ=$target
16263 . $srcdir/../bfd/config.bfd
16264 if test "x$targ_underscore" = "xyes"; then
16265 UNDERSCORE=1
16266 else
16267 UNDERSCORE=0
16270 cat >>confdefs.h <<_ACEOF
16271 #define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
16272 _ACEOF
16275 # Emulation
16276 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
16278 # Canonicalize the secondary target names.
16279 result=`$ac_config_sub $targ_alias 2>/dev/null`
16280 if test -n "$result"; then
16281 targ=$result
16282 else
16283 targ=$targ_alias
16286 . ${srcdir}/configure.tgt
16288 EMULATION=$targ_emul
16289 EMULATION_VECTOR=$targ_emul_vector
16290 done
16295 # Required for html and install-html
16301 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
16303 cat >confcache <<\_ACEOF
16304 # This file is a shell script that caches the results of configure
16305 # tests run on this system so they can be shared between configure
16306 # scripts and configure runs, see configure's option --config-cache.
16307 # It is not useful on other systems. If it contains results you don't
16308 # want to keep, you may remove or edit it.
16310 # config.status only pays attention to the cache file if you give it
16311 # the --recheck option to rerun configure.
16313 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16314 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16315 # following values.
16317 _ACEOF
16319 # The following way of writing the cache mishandles newlines in values,
16320 # but we know of no workaround that is simple, portable, and efficient.
16321 # So, don't put newlines in cache variables' values.
16322 # Ultrix sh set writes to stderr and can't be redirected directly,
16323 # and sets the high bit in the cache file unless we assign to the vars.
16325 (set) 2>&1 |
16326 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16327 *ac_space=\ *)
16328 # `set' does not quote correctly, so add quotes (double-quote
16329 # substitution turns \\\\ into \\, and sed turns \\ into \).
16330 sed -n \
16331 "s/'/'\\\\''/g;
16332 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16335 # `set' quotes correctly as required by POSIX, so do not add quotes.
16336 sed -n \
16337 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16339 esac;
16341 sed '
16342 t clear
16343 : clear
16344 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16345 t end
16346 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16347 : end' >>confcache
16348 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16349 if test -w $cache_file; then
16350 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16351 cat confcache >$cache_file
16352 else
16353 echo "not updating unwritable cache $cache_file"
16356 rm -f confcache
16358 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16359 # Let make expand exec_prefix.
16360 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16362 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16363 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16364 # trailing colons and then remove the whole line if VPATH becomes empty
16365 # (actually we leave an empty line to preserve line numbers).
16366 if test "x$srcdir" = x.; then
16367 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16368 s/:*\$(srcdir):*/:/;
16369 s/:*\${srcdir}:*/:/;
16370 s/:*@srcdir@:*/:/;
16371 s/^\([^=]*=[ ]*\):*/\1/;
16372 s/:*$//;
16373 s/^[^=]*=[ ]*$//;
16377 DEFS=-DHAVE_CONFIG_H
16379 ac_libobjs=
16380 ac_ltlibobjs=
16381 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16382 # 1. Remove the extension, and $U if already installed.
16383 ac_i=`echo "$ac_i" |
16384 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16385 # 2. Add them.
16386 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16387 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16388 done
16389 LIBOBJS=$ac_libobjs
16391 LTLIBOBJS=$ac_ltlibobjs
16394 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16395 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16396 Usually this means the macro was only invoked conditionally." >&5
16397 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16398 Usually this means the macro was only invoked conditionally." >&2;}
16399 { (exit 1); exit 1; }; }
16401 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16402 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16403 Usually this means the macro was only invoked conditionally." >&5
16404 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16405 Usually this means the macro was only invoked conditionally." >&2;}
16406 { (exit 1); exit 1; }; }
16408 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16409 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16410 Usually this means the macro was only invoked conditionally." >&5
16411 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16412 Usually this means the macro was only invoked conditionally." >&2;}
16413 { (exit 1); exit 1; }; }
16415 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
16416 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
16417 Usually this means the macro was only invoked conditionally." >&5
16418 echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
16419 Usually this means the macro was only invoked conditionally." >&2;}
16420 { (exit 1); exit 1; }; }
16423 : ${CONFIG_STATUS=./config.status}
16424 ac_clean_files_save=$ac_clean_files
16425 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16426 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16427 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16428 cat >$CONFIG_STATUS <<_ACEOF
16429 #! $SHELL
16430 # Generated by $as_me.
16431 # Run this file to recreate the current configuration.
16432 # Compiler output produced by configure, useful for debugging
16433 # configure, is in config.log if it exists.
16435 debug=false
16436 ac_cs_recheck=false
16437 ac_cs_silent=false
16438 SHELL=\${CONFIG_SHELL-$SHELL}
16439 _ACEOF
16441 cat >>$CONFIG_STATUS <<\_ACEOF
16442 ## --------------------- ##
16443 ## M4sh Initialization. ##
16444 ## --------------------- ##
16446 # Be Bourne compatible
16447 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16448 emulate sh
16449 NULLCMD=:
16450 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16451 # is contrary to our usage. Disable this feature.
16452 alias -g '${1+"$@"}'='"$@"'
16453 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16454 set -o posix
16456 DUALCASE=1; export DUALCASE # for MKS sh
16458 # Support unset when possible.
16459 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16460 as_unset=unset
16461 else
16462 as_unset=false
16466 # Work around bugs in pre-3.0 UWIN ksh.
16467 $as_unset ENV MAIL MAILPATH
16468 PS1='$ '
16469 PS2='> '
16470 PS4='+ '
16472 # NLS nuisances.
16473 for as_var in \
16474 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16475 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16476 LC_TELEPHONE LC_TIME
16478 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16479 eval $as_var=C; export $as_var
16480 else
16481 $as_unset $as_var
16483 done
16485 # Required to use basename.
16486 if expr a : '\(a\)' >/dev/null 2>&1; then
16487 as_expr=expr
16488 else
16489 as_expr=false
16492 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16493 as_basename=basename
16494 else
16495 as_basename=false
16499 # Name of the executable.
16500 as_me=`$as_basename "$0" ||
16501 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16502 X"$0" : 'X\(//\)$' \| \
16503 X"$0" : 'X\(/\)$' \| \
16504 . : '\(.\)' 2>/dev/null ||
16505 echo X/"$0" |
16506 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16507 /^X\/\(\/\/\)$/{ s//\1/; q; }
16508 /^X\/\(\/\).*/{ s//\1/; q; }
16509 s/.*/./; q'`
16512 # PATH needs CR, and LINENO needs CR and PATH.
16513 # Avoid depending upon Character Ranges.
16514 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16515 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16516 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16517 as_cr_digits='0123456789'
16518 as_cr_alnum=$as_cr_Letters$as_cr_digits
16520 # The user is always right.
16521 if test "${PATH_SEPARATOR+set}" != set; then
16522 echo "#! /bin/sh" >conf$$.sh
16523 echo "exit 0" >>conf$$.sh
16524 chmod +x conf$$.sh
16525 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16526 PATH_SEPARATOR=';'
16527 else
16528 PATH_SEPARATOR=:
16530 rm -f conf$$.sh
16534 as_lineno_1=$LINENO
16535 as_lineno_2=$LINENO
16536 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16537 test "x$as_lineno_1" != "x$as_lineno_2" &&
16538 test "x$as_lineno_3" = "x$as_lineno_2" || {
16539 # Find who we are. Look in the path if we contain no path at all
16540 # relative or not.
16541 case $0 in
16542 *[\\/]* ) as_myself=$0 ;;
16543 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16544 for as_dir in $PATH
16546 IFS=$as_save_IFS
16547 test -z "$as_dir" && as_dir=.
16548 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16549 done
16552 esac
16553 # We did not find ourselves, most probably we were run as `sh COMMAND'
16554 # in which case we are not to be found in the path.
16555 if test "x$as_myself" = x; then
16556 as_myself=$0
16558 if test ! -f "$as_myself"; then
16559 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16560 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16561 { (exit 1); exit 1; }; }
16563 case $CONFIG_SHELL in
16565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16566 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16568 IFS=$as_save_IFS
16569 test -z "$as_dir" && as_dir=.
16570 for as_base in sh bash ksh sh5; do
16571 case $as_dir in
16573 if ("$as_dir/$as_base" -c '
16574 as_lineno_1=$LINENO
16575 as_lineno_2=$LINENO
16576 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16577 test "x$as_lineno_1" != "x$as_lineno_2" &&
16578 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16579 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16580 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16581 CONFIG_SHELL=$as_dir/$as_base
16582 export CONFIG_SHELL
16583 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16584 fi;;
16585 esac
16586 done
16587 done
16589 esac
16591 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16592 # uniformly replaced by the line number. The first 'sed' inserts a
16593 # line-number line before each line; the second 'sed' does the real
16594 # work. The second script uses 'N' to pair each line-number line
16595 # with the numbered line, and appends trailing '-' during
16596 # substitution so that $LINENO is not a special case at line end.
16597 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16598 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16599 sed '=' <$as_myself |
16600 sed '
16602 s,$,-,
16603 : loop
16604 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16605 t loop
16606 s,-$,,
16607 s,^['$as_cr_digits']*\n,,
16608 ' >$as_me.lineno &&
16609 chmod +x $as_me.lineno ||
16610 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16611 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16612 { (exit 1); exit 1; }; }
16614 # Don't try to exec as it changes $[0], causing all sort of problems
16615 # (the dirname of $[0] is not the place where we might find the
16616 # original and so on. Autoconf is especially sensible to this).
16617 . ./$as_me.lineno
16618 # Exit status is that of the last command.
16619 exit
16623 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16624 *c*,-n*) ECHO_N= ECHO_C='
16625 ' ECHO_T=' ' ;;
16626 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16627 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16628 esac
16630 if expr a : '\(a\)' >/dev/null 2>&1; then
16631 as_expr=expr
16632 else
16633 as_expr=false
16636 rm -f conf$$ conf$$.exe conf$$.file
16637 echo >conf$$.file
16638 if ln -s conf$$.file conf$$ 2>/dev/null; then
16639 # We could just check for DJGPP; but this test a) works b) is more generic
16640 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16641 if test -f conf$$.exe; then
16642 # Don't use ln at all; we don't have any links
16643 as_ln_s='cp -p'
16644 else
16645 as_ln_s='ln -s'
16647 elif ln conf$$.file conf$$ 2>/dev/null; then
16648 as_ln_s=ln
16649 else
16650 as_ln_s='cp -p'
16652 rm -f conf$$ conf$$.exe conf$$.file
16654 if mkdir -p . 2>/dev/null; then
16655 as_mkdir_p=:
16656 else
16657 test -d ./-p && rmdir ./-p
16658 as_mkdir_p=false
16661 as_executable_p="test -f"
16663 # Sed expression to map a string onto a valid CPP name.
16664 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16666 # Sed expression to map a string onto a valid variable name.
16667 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16670 # IFS
16671 # We need space, tab and new line, in precisely that order.
16672 as_nl='
16674 IFS=" $as_nl"
16676 # CDPATH.
16677 $as_unset CDPATH
16679 exec 6>&1
16681 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16682 # report actual input values of CONFIG_FILES etc. instead of their
16683 # values after options handling. Logging --version etc. is OK.
16684 exec 5>>config.log
16686 echo
16687 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16688 ## Running $as_me. ##
16689 _ASBOX
16690 } >&5
16691 cat >&5 <<_CSEOF
16693 This file was extended by $as_me, which was
16694 generated by GNU Autoconf 2.59. Invocation command line was
16696 CONFIG_FILES = $CONFIG_FILES
16697 CONFIG_HEADERS = $CONFIG_HEADERS
16698 CONFIG_LINKS = $CONFIG_LINKS
16699 CONFIG_COMMANDS = $CONFIG_COMMANDS
16700 $ $0 $@
16702 _CSEOF
16703 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16704 echo >&5
16705 _ACEOF
16707 # Files that config.status was made for.
16708 if test -n "$ac_config_files"; then
16709 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16712 if test -n "$ac_config_headers"; then
16713 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16716 if test -n "$ac_config_links"; then
16717 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16720 if test -n "$ac_config_commands"; then
16721 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16724 cat >>$CONFIG_STATUS <<\_ACEOF
16726 ac_cs_usage="\
16727 \`$as_me' instantiates files from templates according to the
16728 current configuration.
16730 Usage: $0 [OPTIONS] [FILE]...
16732 -h, --help print this help, then exit
16733 -V, --version print version number, then exit
16734 -q, --quiet do not print progress messages
16735 -d, --debug don't remove temporary files
16736 --recheck update $as_me by reconfiguring in the same conditions
16737 --file=FILE[:TEMPLATE]
16738 instantiate the configuration file FILE
16739 --header=FILE[:TEMPLATE]
16740 instantiate the configuration header FILE
16742 Configuration files:
16743 $config_files
16745 Configuration headers:
16746 $config_headers
16748 Configuration commands:
16749 $config_commands
16751 Report bugs to <bug-autoconf@gnu.org>."
16752 _ACEOF
16754 cat >>$CONFIG_STATUS <<_ACEOF
16755 ac_cs_version="\\
16756 config.status
16757 configured by $0, generated by GNU Autoconf 2.59,
16758 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16760 Copyright (C) 2003 Free Software Foundation, Inc.
16761 This config.status script is free software; the Free Software Foundation
16762 gives unlimited permission to copy, distribute and modify it."
16763 srcdir=$srcdir
16764 INSTALL="$INSTALL"
16765 _ACEOF
16767 cat >>$CONFIG_STATUS <<\_ACEOF
16768 # If no file are specified by the user, then we need to provide default
16769 # value. By we need to know if files were specified by the user.
16770 ac_need_defaults=:
16771 while test $# != 0
16773 case $1 in
16774 --*=*)
16775 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16776 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16777 ac_shift=:
16780 ac_option=$1
16781 ac_optarg=$2
16782 ac_shift=shift
16784 *) # This is not an option, so the user has probably given explicit
16785 # arguments.
16786 ac_option=$1
16787 ac_need_defaults=false;;
16788 esac
16790 case $ac_option in
16791 # Handling of the options.
16792 _ACEOF
16793 cat >>$CONFIG_STATUS <<\_ACEOF
16794 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16795 ac_cs_recheck=: ;;
16796 --version | --vers* | -V )
16797 echo "$ac_cs_version"; exit 0 ;;
16798 --he | --h)
16799 # Conflict between --help and --header
16800 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16801 Try \`$0 --help' for more information." >&5
16802 echo "$as_me: error: ambiguous option: $1
16803 Try \`$0 --help' for more information." >&2;}
16804 { (exit 1); exit 1; }; };;
16805 --help | --hel | -h )
16806 echo "$ac_cs_usage"; exit 0 ;;
16807 --debug | --d* | -d )
16808 debug=: ;;
16809 --file | --fil | --fi | --f )
16810 $ac_shift
16811 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16812 ac_need_defaults=false;;
16813 --header | --heade | --head | --hea )
16814 $ac_shift
16815 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16816 ac_need_defaults=false;;
16817 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16818 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16819 ac_cs_silent=: ;;
16821 # This is an error.
16822 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16823 Try \`$0 --help' for more information." >&5
16824 echo "$as_me: error: unrecognized option: $1
16825 Try \`$0 --help' for more information." >&2;}
16826 { (exit 1); exit 1; }; } ;;
16828 *) ac_config_targets="$ac_config_targets $1" ;;
16830 esac
16831 shift
16832 done
16834 ac_configure_extra_args=
16836 if $ac_cs_silent; then
16837 exec 6>/dev/null
16838 ac_configure_extra_args="$ac_configure_extra_args --silent"
16841 _ACEOF
16842 cat >>$CONFIG_STATUS <<_ACEOF
16843 if \$ac_cs_recheck; then
16844 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16845 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16848 _ACEOF
16850 cat >>$CONFIG_STATUS <<_ACEOF
16852 # INIT-COMMANDS section.
16855 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16858 # The HP-UX ksh and POSIX shell print the target directory to stdout
16859 # if CDPATH is set.
16860 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16862 sed_quote_subst='$sed_quote_subst'
16863 double_quote_subst='$double_quote_subst'
16864 delay_variable_subst='$delay_variable_subst'
16865 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16866 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16867 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16868 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16869 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16870 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16871 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16872 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16873 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16874 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16875 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16876 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16877 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16878 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16879 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16880 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16881 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16882 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16883 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16884 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16885 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16886 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16887 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16888 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16889 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16890 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16891 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16892 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16893 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
16894 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16895 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16896 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16897 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16898 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16899 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16900 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16901 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16902 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16903 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16904 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16905 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16906 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16907 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16908 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16909 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"`'
16910 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16911 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16912 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16913 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16914 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16915 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16916 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16917 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16918 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16919 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16920 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16921 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16922 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16923 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
16924 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16925 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
16926 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16927 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16928 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16929 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16930 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16931 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16932 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16933 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16934 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16935 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16936 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16937 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16938 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16939 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16940 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16941 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16942 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16943 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16944 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16945 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16946 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16947 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16948 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16949 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16950 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16951 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16952 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16953 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16954 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16955 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16956 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16957 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16958 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16959 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16960 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16961 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16962 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16963 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16964 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16965 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16966 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16967 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16968 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16969 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16970 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16971 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16972 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16973 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16974 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16975 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16976 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16977 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16978 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16979 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16980 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16981 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16982 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16984 LTCC='$LTCC'
16985 LTCFLAGS='$LTCFLAGS'
16986 compiler='$compiler_DEFAULT'
16988 # Quote evaled strings.
16989 for var in SED \
16990 GREP \
16991 EGREP \
16992 FGREP \
16993 LD \
16994 NM \
16995 LN_S \
16996 lt_SP2NL \
16997 lt_NL2SP \
16998 reload_flag \
16999 OBJDUMP \
17000 deplibs_check_method \
17001 file_magic_cmd \
17002 AR \
17003 AR_FLAGS \
17004 STRIP \
17005 RANLIB \
17006 CC \
17007 CFLAGS \
17008 compiler \
17009 lt_cv_sys_global_symbol_pipe \
17010 lt_cv_sys_global_symbol_to_cdecl \
17011 lt_cv_sys_global_symbol_to_c_name_address \
17012 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17013 SHELL \
17014 ECHO \
17015 lt_prog_compiler_no_builtin_flag \
17016 lt_prog_compiler_wl \
17017 lt_prog_compiler_pic \
17018 lt_prog_compiler_static \
17019 lt_cv_prog_compiler_c_o \
17020 need_locks \
17021 DSYMUTIL \
17022 NMEDIT \
17023 LIPO \
17024 OTOOL \
17025 OTOOL64 \
17026 shrext_cmds \
17027 export_dynamic_flag_spec \
17028 whole_archive_flag_spec \
17029 compiler_needs_object \
17030 with_gnu_ld \
17031 allow_undefined_flag \
17032 no_undefined_flag \
17033 hardcode_libdir_flag_spec \
17034 hardcode_libdir_flag_spec_ld \
17035 hardcode_libdir_separator \
17036 fix_srcfile_path \
17037 exclude_expsyms \
17038 include_expsyms \
17039 file_list_spec \
17040 variables_saved_for_relink \
17041 libname_spec \
17042 library_names_spec \
17043 soname_spec \
17044 finish_eval \
17045 old_striplib \
17046 striplib; do
17047 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17048 *[\\\\\\\`\\"\\\$]*)
17049 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17052 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17054 esac
17055 done
17057 # Double-quote double-evaled strings.
17058 for var in reload_cmds \
17059 old_postinstall_cmds \
17060 old_postuninstall_cmds \
17061 old_archive_cmds \
17062 extract_expsyms_cmds \
17063 old_archive_from_new_cmds \
17064 old_archive_from_expsyms_cmds \
17065 archive_cmds \
17066 archive_expsym_cmds \
17067 module_cmds \
17068 module_expsym_cmds \
17069 export_symbols_cmds \
17070 prelink_cmds \
17071 postinstall_cmds \
17072 postuninstall_cmds \
17073 finish_cmds \
17074 sys_lib_search_path_spec \
17075 sys_lib_dlsearch_path_spec; do
17076 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17077 *[\\\\\\\`\\"\\\$]*)
17078 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17081 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17083 esac
17084 done
17086 # Fix-up fallback echo if it was mangled by the above quoting rules.
17087 case \$lt_ECHO in
17088 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17090 esac
17092 ac_aux_dir='$ac_aux_dir'
17093 xsi_shell='$xsi_shell'
17094 lt_shell_append='$lt_shell_append'
17096 # See if we are running on zsh, and set the options which allow our
17097 # commands through without removal of \ escapes INIT.
17098 if test -n "\${ZSH_VERSION+set}" ; then
17099 setopt NO_GLOB_SUBST
17103 PACKAGE='$PACKAGE'
17104 VERSION='$VERSION'
17105 TIMESTAMP='$TIMESTAMP'
17106 RM='$RM'
17107 ofile='$ofile'
17111 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17112 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
17113 # from automake.
17114 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17115 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17116 LINGUAS="${LINGUAS-%UNSET%}"
17119 _ACEOF
17123 cat >>$CONFIG_STATUS <<\_ACEOF
17124 for ac_config_target in $ac_config_targets
17126 case "$ac_config_target" in
17127 # Handling of arguments.
17128 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17129 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17130 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
17131 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17132 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17133 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17134 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
17135 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17136 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17137 { (exit 1); exit 1; }; };;
17138 esac
17139 done
17141 # If the user did not use the arguments to specify the items to instantiate,
17142 # then the envvar interface is used. Set only those that are not.
17143 # We use the long form for the default assignment because of an extremely
17144 # bizarre bug on SunOS 4.1.3.
17145 if $ac_need_defaults; then
17146 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17147 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17148 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17151 # Have a temporary directory for convenience. Make it in the build tree
17152 # simply because there is no reason to put it here, and in addition,
17153 # creating and moving files from /tmp can sometimes cause problems.
17154 # Create a temporary directory, and hook for its removal unless debugging.
17155 $debug ||
17157 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17158 trap '{ (exit 1); exit 1; }' 1 2 13 15
17161 # Create a (secure) tmp directory for tmp files.
17164 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17165 test -n "$tmp" && test -d "$tmp"
17166 } ||
17168 tmp=./confstat$$-$RANDOM
17169 (umask 077 && mkdir $tmp)
17170 } ||
17172 echo "$me: cannot create a temporary directory in ." >&2
17173 { (exit 1); exit 1; }
17176 _ACEOF
17178 cat >>$CONFIG_STATUS <<_ACEOF
17181 # CONFIG_FILES section.
17184 # No need to generate the scripts if there are no CONFIG_FILES.
17185 # This happens for instance when ./config.status config.h
17186 if test -n "\$CONFIG_FILES"; then
17187 # Protect against being on the right side of a sed subst in config.status.
17188 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17189 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17190 s,@SHELL@,$SHELL,;t t
17191 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17192 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17193 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17194 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17195 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17196 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17197 s,@exec_prefix@,$exec_prefix,;t t
17198 s,@prefix@,$prefix,;t t
17199 s,@program_transform_name@,$program_transform_name,;t t
17200 s,@bindir@,$bindir,;t t
17201 s,@sbindir@,$sbindir,;t t
17202 s,@libexecdir@,$libexecdir,;t t
17203 s,@datadir@,$datadir,;t t
17204 s,@sysconfdir@,$sysconfdir,;t t
17205 s,@sharedstatedir@,$sharedstatedir,;t t
17206 s,@localstatedir@,$localstatedir,;t t
17207 s,@libdir@,$libdir,;t t
17208 s,@includedir@,$includedir,;t t
17209 s,@oldincludedir@,$oldincludedir,;t t
17210 s,@infodir@,$infodir,;t t
17211 s,@mandir@,$mandir,;t t
17212 s,@build_alias@,$build_alias,;t t
17213 s,@host_alias@,$host_alias,;t t
17214 s,@target_alias@,$target_alias,;t t
17215 s,@DEFS@,$DEFS,;t t
17216 s,@ECHO_C@,$ECHO_C,;t t
17217 s,@ECHO_N@,$ECHO_N,;t t
17218 s,@ECHO_T@,$ECHO_T,;t t
17219 s,@LIBS@,$LIBS,;t t
17220 s,@build@,$build,;t t
17221 s,@build_cpu@,$build_cpu,;t t
17222 s,@build_vendor@,$build_vendor,;t t
17223 s,@build_os@,$build_os,;t t
17224 s,@host@,$host,;t t
17225 s,@host_cpu@,$host_cpu,;t t
17226 s,@host_vendor@,$host_vendor,;t t
17227 s,@host_os@,$host_os,;t t
17228 s,@target@,$target,;t t
17229 s,@target_cpu@,$target_cpu,;t t
17230 s,@target_vendor@,$target_vendor,;t t
17231 s,@target_os@,$target_os,;t t
17232 s,@CC@,$CC,;t t
17233 s,@CFLAGS@,$CFLAGS,;t t
17234 s,@LDFLAGS@,$LDFLAGS,;t t
17235 s,@CPPFLAGS@,$CPPFLAGS,;t t
17236 s,@ac_ct_CC@,$ac_ct_CC,;t t
17237 s,@EXEEXT@,$EXEEXT,;t t
17238 s,@OBJEXT@,$OBJEXT,;t t
17239 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17240 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17241 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17242 s,@CYGPATH_W@,$CYGPATH_W,;t t
17243 s,@PACKAGE@,$PACKAGE,;t t
17244 s,@VERSION@,$VERSION,;t t
17245 s,@ACLOCAL@,$ACLOCAL,;t t
17246 s,@AUTOCONF@,$AUTOCONF,;t t
17247 s,@AUTOMAKE@,$AUTOMAKE,;t t
17248 s,@AUTOHEADER@,$AUTOHEADER,;t t
17249 s,@MAKEINFO@,$MAKEINFO,;t t
17250 s,@install_sh@,$install_sh,;t t
17251 s,@STRIP@,$STRIP,;t t
17252 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17253 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17254 s,@mkdir_p@,$mkdir_p,;t t
17255 s,@AWK@,$AWK,;t t
17256 s,@SET_MAKE@,$SET_MAKE,;t t
17257 s,@am__leading_dot@,$am__leading_dot,;t t
17258 s,@AMTAR@,$AMTAR,;t t
17259 s,@am__tar@,$am__tar,;t t
17260 s,@am__untar@,$am__untar,;t t
17261 s,@DEPDIR@,$DEPDIR,;t t
17262 s,@am__include@,$am__include,;t t
17263 s,@am__quote@,$am__quote,;t t
17264 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17265 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17266 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17267 s,@CCDEPMODE@,$CCDEPMODE,;t t
17268 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17269 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17270 s,@CPP@,$CPP,;t t
17271 s,@EGREP@,$EGREP,;t t
17272 s,@LIBTOOL@,$LIBTOOL,;t t
17273 s,@SED@,$SED,;t t
17274 s,@FGREP@,$FGREP,;t t
17275 s,@GREP@,$GREP,;t t
17276 s,@LD@,$LD,;t t
17277 s,@DUMPBIN@,$DUMPBIN,;t t
17278 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
17279 s,@NM@,$NM,;t t
17280 s,@LN_S@,$LN_S,;t t
17281 s,@OBJDUMP@,$OBJDUMP,;t t
17282 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
17283 s,@AR@,$AR,;t t
17284 s,@ac_ct_AR@,$ac_ct_AR,;t t
17285 s,@RANLIB@,$RANLIB,;t t
17286 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17287 s,@lt_ECHO@,$lt_ECHO,;t t
17288 s,@DSYMUTIL@,$DSYMUTIL,;t t
17289 s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
17290 s,@NMEDIT@,$NMEDIT,;t t
17291 s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
17292 s,@LIPO@,$LIPO,;t t
17293 s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
17294 s,@OTOOL@,$OTOOL,;t t
17295 s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
17296 s,@OTOOL64@,$OTOOL64,;t t
17297 s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
17298 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
17299 s,@NO_WERROR@,$NO_WERROR,;t t
17300 s,@YACC@,$YACC,;t t
17301 s,@LEX@,$LEX,;t t
17302 s,@LEXLIB@,$LEXLIB,;t t
17303 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
17304 s,@USE_NLS@,$USE_NLS,;t t
17305 s,@LIBINTL@,$LIBINTL,;t t
17306 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
17307 s,@INCINTL@,$INCINTL,;t t
17308 s,@XGETTEXT@,$XGETTEXT,;t t
17309 s,@GMSGFMT@,$GMSGFMT,;t t
17310 s,@POSUB@,$POSUB,;t t
17311 s,@CATALOGS@,$CATALOGS,;t t
17312 s,@DATADIRNAME@,$DATADIRNAME,;t t
17313 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
17314 s,@GENCAT@,$GENCAT,;t t
17315 s,@CATOBJEXT@,$CATOBJEXT,;t t
17316 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
17317 s,@MSGFMT@,$MSGFMT,;t t
17318 s,@MSGMERGE@,$MSGMERGE,;t t
17319 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17320 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17321 s,@MAINT@,$MAINT,;t t
17322 s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
17323 s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
17324 s,@HDEFINES@,$HDEFINES,;t t
17325 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
17326 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
17327 s,@DEMANGLER_NAME@,$DEMANGLER_NAME,;t t
17328 s,@ALLOCA@,$ALLOCA,;t t
17329 s,@LIBICONV@,$LIBICONV,;t t
17330 s,@LTLIBICONV@,$LTLIBICONV,;t t
17331 s,@NLMCONV_DEFS@,$NLMCONV_DEFS,;t t
17332 s,@BUILD_NLMCONV@,$BUILD_NLMCONV,;t t
17333 s,@BUILD_SRCONV@,$BUILD_SRCONV,;t t
17334 s,@BUILD_DLLTOOL@,$BUILD_DLLTOOL,;t t
17335 s,@DLLTOOL_DEFS@,$DLLTOOL_DEFS,;t t
17336 s,@BUILD_WINDRES@,$BUILD_WINDRES,;t t
17337 s,@BUILD_WINDMC@,$BUILD_WINDMC,;t t
17338 s,@BUILD_DLLWRAP@,$BUILD_DLLWRAP,;t t
17339 s,@BUILD_MISC@,$BUILD_MISC,;t t
17340 s,@BUILD_INSTALL_MISC@,$BUILD_INSTALL_MISC,;t t
17341 s,@OBJDUMP_DEFS@,$OBJDUMP_DEFS,;t t
17342 s,@EMULATION@,$EMULATION,;t t
17343 s,@EMULATION_VECTOR@,$EMULATION_VECTOR,;t t
17344 s,@datarootdir@,$datarootdir,;t t
17345 s,@docdir@,$docdir,;t t
17346 s,@htmldir@,$htmldir,;t t
17347 s,@pdfdir@,$pdfdir,;t t
17348 s,@LIBOBJS@,$LIBOBJS,;t t
17349 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17350 CEOF
17352 _ACEOF
17354 cat >>$CONFIG_STATUS <<\_ACEOF
17355 # Split the substitutions into bite-sized pieces for seds with
17356 # small command number limits, like on Digital OSF/1 and HP-UX.
17357 ac_max_sed_lines=48
17358 ac_sed_frag=1 # Number of current file.
17359 ac_beg=1 # First line for current file.
17360 ac_end=$ac_max_sed_lines # Line after last line for current file.
17361 ac_more_lines=:
17362 ac_sed_cmds=
17363 while $ac_more_lines; do
17364 if test $ac_beg -gt 1; then
17365 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17366 else
17367 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17369 if test ! -s $tmp/subs.frag; then
17370 ac_more_lines=false
17371 else
17372 # The purpose of the label and of the branching condition is to
17373 # speed up the sed processing (if there are no `@' at all, there
17374 # is no need to browse any of the substitutions).
17375 # These are the two extra sed commands mentioned above.
17376 (echo ':t
17377 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17378 if test -z "$ac_sed_cmds"; then
17379 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17380 else
17381 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17383 ac_sed_frag=`expr $ac_sed_frag + 1`
17384 ac_beg=$ac_end
17385 ac_end=`expr $ac_end + $ac_max_sed_lines`
17387 done
17388 if test -z "$ac_sed_cmds"; then
17389 ac_sed_cmds=cat
17391 fi # test -n "$CONFIG_FILES"
17393 _ACEOF
17394 cat >>$CONFIG_STATUS <<\_ACEOF
17395 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17396 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17397 case $ac_file in
17398 - | *:- | *:-:* ) # input from stdin
17399 cat >$tmp/stdin
17400 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17401 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17402 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17403 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17404 * ) ac_file_in=$ac_file.in ;;
17405 esac
17407 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17408 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17409 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17410 X"$ac_file" : 'X\(//\)[^/]' \| \
17411 X"$ac_file" : 'X\(//\)$' \| \
17412 X"$ac_file" : 'X\(/\)' \| \
17413 . : '\(.\)' 2>/dev/null ||
17414 echo X"$ac_file" |
17415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17416 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17417 /^X\(\/\/\)$/{ s//\1/; q; }
17418 /^X\(\/\).*/{ s//\1/; q; }
17419 s/.*/./; q'`
17420 { if $as_mkdir_p; then
17421 mkdir -p "$ac_dir"
17422 else
17423 as_dir="$ac_dir"
17424 as_dirs=
17425 while test ! -d "$as_dir"; do
17426 as_dirs="$as_dir $as_dirs"
17427 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17428 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17429 X"$as_dir" : 'X\(//\)[^/]' \| \
17430 X"$as_dir" : 'X\(//\)$' \| \
17431 X"$as_dir" : 'X\(/\)' \| \
17432 . : '\(.\)' 2>/dev/null ||
17433 echo X"$as_dir" |
17434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17435 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17436 /^X\(\/\/\)$/{ s//\1/; q; }
17437 /^X\(\/\).*/{ s//\1/; q; }
17438 s/.*/./; q'`
17439 done
17440 test ! -n "$as_dirs" || mkdir $as_dirs
17441 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17442 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17443 { (exit 1); exit 1; }; }; }
17445 ac_builddir=.
17447 if test "$ac_dir" != .; then
17448 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17449 # A "../" for each directory in $ac_dir_suffix.
17450 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17451 else
17452 ac_dir_suffix= ac_top_builddir=
17455 case $srcdir in
17456 .) # No --srcdir option. We are building in place.
17457 ac_srcdir=.
17458 if test -z "$ac_top_builddir"; then
17459 ac_top_srcdir=.
17460 else
17461 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17462 fi ;;
17463 [\\/]* | ?:[\\/]* ) # Absolute path.
17464 ac_srcdir=$srcdir$ac_dir_suffix;
17465 ac_top_srcdir=$srcdir ;;
17466 *) # Relative path.
17467 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17468 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17469 esac
17471 # Do not use `cd foo && pwd` to compute absolute paths, because
17472 # the directories may not exist.
17473 case `pwd` in
17474 .) ac_abs_builddir="$ac_dir";;
17476 case "$ac_dir" in
17477 .) ac_abs_builddir=`pwd`;;
17478 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17479 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17480 esac;;
17481 esac
17482 case $ac_abs_builddir in
17483 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17485 case ${ac_top_builddir}. in
17486 .) ac_abs_top_builddir=$ac_abs_builddir;;
17487 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17488 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17489 esac;;
17490 esac
17491 case $ac_abs_builddir in
17492 .) ac_abs_srcdir=$ac_srcdir;;
17494 case $ac_srcdir in
17495 .) ac_abs_srcdir=$ac_abs_builddir;;
17496 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17497 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17498 esac;;
17499 esac
17500 case $ac_abs_builddir in
17501 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17503 case $ac_top_srcdir in
17504 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17505 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17506 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17507 esac;;
17508 esac
17511 case $INSTALL in
17512 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17513 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17514 esac
17516 if test x"$ac_file" != x-; then
17517 { echo "$as_me:$LINENO: creating $ac_file" >&5
17518 echo "$as_me: creating $ac_file" >&6;}
17519 rm -f "$ac_file"
17521 # Let's still pretend it is `configure' which instantiates (i.e., don't
17522 # use $as_me), people would be surprised to read:
17523 # /* config.h. Generated by config.status. */
17524 if test x"$ac_file" = x-; then
17525 configure_input=
17526 else
17527 configure_input="$ac_file. "
17529 configure_input=$configure_input"Generated from `echo $ac_file_in |
17530 sed 's,.*/,,'` by configure."
17532 # First look for the input files in the build tree, otherwise in the
17533 # src tree.
17534 ac_file_inputs=`IFS=:
17535 for f in $ac_file_in; do
17536 case $f in
17537 -) echo $tmp/stdin ;;
17538 [\\/$]*)
17539 # Absolute (can't be DOS-style, as IFS=:)
17540 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17541 echo "$as_me: error: cannot find input file: $f" >&2;}
17542 { (exit 1); exit 1; }; }
17543 echo "$f";;
17544 *) # Relative
17545 if test -f "$f"; then
17546 # Build tree
17547 echo "$f"
17548 elif test -f "$srcdir/$f"; then
17549 # Source tree
17550 echo "$srcdir/$f"
17551 else
17552 # /dev/null tree
17553 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17554 echo "$as_me: error: cannot find input file: $f" >&2;}
17555 { (exit 1); exit 1; }; }
17556 fi;;
17557 esac
17558 done` || { (exit 1); exit 1; }
17559 _ACEOF
17560 cat >>$CONFIG_STATUS <<_ACEOF
17561 sed "$ac_vpsub
17562 $extrasub
17563 _ACEOF
17564 cat >>$CONFIG_STATUS <<\_ACEOF
17566 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17567 s,@configure_input@,$configure_input,;t t
17568 s,@srcdir@,$ac_srcdir,;t t
17569 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17570 s,@top_srcdir@,$ac_top_srcdir,;t t
17571 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17572 s,@builddir@,$ac_builddir,;t t
17573 s,@abs_builddir@,$ac_abs_builddir,;t t
17574 s,@top_builddir@,$ac_top_builddir,;t t
17575 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17576 s,@INSTALL@,$ac_INSTALL,;t t
17577 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17578 rm -f $tmp/stdin
17579 if test x"$ac_file" != x-; then
17580 mv $tmp/out $ac_file
17581 else
17582 cat $tmp/out
17583 rm -f $tmp/out
17586 done
17587 _ACEOF
17588 cat >>$CONFIG_STATUS <<\_ACEOF
17591 # CONFIG_HEADER section.
17594 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17595 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17597 # ac_d sets the value in "#define NAME VALUE" lines.
17598 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17599 ac_dB='[ ].*$,\1#\2'
17600 ac_dC=' '
17601 ac_dD=',;t'
17602 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17603 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17604 ac_uB='$,\1#\2define\3'
17605 ac_uC=' '
17606 ac_uD=',;t'
17608 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17609 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17610 case $ac_file in
17611 - | *:- | *:-:* ) # input from stdin
17612 cat >$tmp/stdin
17613 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17614 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17615 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17616 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17617 * ) ac_file_in=$ac_file.in ;;
17618 esac
17620 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17621 echo "$as_me: creating $ac_file" >&6;}
17623 # First look for the input files in the build tree, otherwise in the
17624 # src tree.
17625 ac_file_inputs=`IFS=:
17626 for f in $ac_file_in; do
17627 case $f in
17628 -) echo $tmp/stdin ;;
17629 [\\/$]*)
17630 # Absolute (can't be DOS-style, as IFS=:)
17631 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17632 echo "$as_me: error: cannot find input file: $f" >&2;}
17633 { (exit 1); exit 1; }; }
17634 # Do quote $f, to prevent DOS paths from being IFS'd.
17635 echo "$f";;
17636 *) # Relative
17637 if test -f "$f"; then
17638 # Build tree
17639 echo "$f"
17640 elif test -f "$srcdir/$f"; then
17641 # Source tree
17642 echo "$srcdir/$f"
17643 else
17644 # /dev/null tree
17645 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17646 echo "$as_me: error: cannot find input file: $f" >&2;}
17647 { (exit 1); exit 1; }; }
17648 fi;;
17649 esac
17650 done` || { (exit 1); exit 1; }
17651 # Remove the trailing spaces.
17652 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17654 _ACEOF
17656 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17657 # `conftest.undefs', that substitutes the proper values into
17658 # config.h.in to produce config.h. The first handles `#define'
17659 # templates, and the second `#undef' templates.
17660 # And first: Protect against being on the right side of a sed subst in
17661 # config.status. Protect against being in an unquoted here document
17662 # in config.status.
17663 rm -f conftest.defines conftest.undefs
17664 # Using a here document instead of a string reduces the quoting nightmare.
17665 # Putting comments in sed scripts is not portable.
17667 # `end' is used to avoid that the second main sed command (meant for
17668 # 0-ary CPP macros) applies to n-ary macro definitions.
17669 # See the Autoconf documentation for `clear'.
17670 cat >confdef2sed.sed <<\_ACEOF
17671 s/[\\&,]/\\&/g
17672 s,[\\$`],\\&,g
17673 t clear
17674 : clear
17675 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17676 t end
17677 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17678 : end
17679 _ACEOF
17680 # If some macros were called several times there might be several times
17681 # the same #defines, which is useless. Nevertheless, we may not want to
17682 # sort them, since we want the *last* AC-DEFINE to be honored.
17683 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17684 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17685 rm -f confdef2sed.sed
17687 # This sed command replaces #undef with comments. This is necessary, for
17688 # example, in the case of _POSIX_SOURCE, which is predefined and required
17689 # on some systems where configure will not decide to define it.
17690 cat >>conftest.undefs <<\_ACEOF
17691 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17692 _ACEOF
17694 # Break up conftest.defines because some shells have a limit on the size
17695 # of here documents, and old seds have small limits too (100 cmds).
17696 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17697 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17698 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17699 echo ' :' >>$CONFIG_STATUS
17700 rm -f conftest.tail
17701 while grep . conftest.defines >/dev/null
17703 # Write a limited-size here document to $tmp/defines.sed.
17704 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17705 # Speed up: don't consider the non `#define' lines.
17706 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17707 # Work around the forget-to-reset-the-flag bug.
17708 echo 't clr' >>$CONFIG_STATUS
17709 echo ': clr' >>$CONFIG_STATUS
17710 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17711 echo 'CEOF
17712 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17713 rm -f $tmp/in
17714 mv $tmp/out $tmp/in
17715 ' >>$CONFIG_STATUS
17716 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17717 rm -f conftest.defines
17718 mv conftest.tail conftest.defines
17719 done
17720 rm -f conftest.defines
17721 echo ' fi # grep' >>$CONFIG_STATUS
17722 echo >>$CONFIG_STATUS
17724 # Break up conftest.undefs because some shells have a limit on the size
17725 # of here documents, and old seds have small limits too (100 cmds).
17726 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17727 rm -f conftest.tail
17728 while grep . conftest.undefs >/dev/null
17730 # Write a limited-size here document to $tmp/undefs.sed.
17731 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17732 # Speed up: don't consider the non `#undef'
17733 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17734 # Work around the forget-to-reset-the-flag bug.
17735 echo 't clr' >>$CONFIG_STATUS
17736 echo ': clr' >>$CONFIG_STATUS
17737 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17738 echo 'CEOF
17739 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17740 rm -f $tmp/in
17741 mv $tmp/out $tmp/in
17742 ' >>$CONFIG_STATUS
17743 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17744 rm -f conftest.undefs
17745 mv conftest.tail conftest.undefs
17746 done
17747 rm -f conftest.undefs
17749 cat >>$CONFIG_STATUS <<\_ACEOF
17750 # Let's still pretend it is `configure' which instantiates (i.e., don't
17751 # use $as_me), people would be surprised to read:
17752 # /* config.h. Generated by config.status. */
17753 if test x"$ac_file" = x-; then
17754 echo "/* Generated by configure. */" >$tmp/config.h
17755 else
17756 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17758 cat $tmp/in >>$tmp/config.h
17759 rm -f $tmp/in
17760 if test x"$ac_file" != x-; then
17761 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17762 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17763 echo "$as_me: $ac_file is unchanged" >&6;}
17764 else
17765 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17766 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17767 X"$ac_file" : 'X\(//\)[^/]' \| \
17768 X"$ac_file" : 'X\(//\)$' \| \
17769 X"$ac_file" : 'X\(/\)' \| \
17770 . : '\(.\)' 2>/dev/null ||
17771 echo X"$ac_file" |
17772 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17773 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17774 /^X\(\/\/\)$/{ s//\1/; q; }
17775 /^X\(\/\).*/{ s//\1/; q; }
17776 s/.*/./; q'`
17777 { if $as_mkdir_p; then
17778 mkdir -p "$ac_dir"
17779 else
17780 as_dir="$ac_dir"
17781 as_dirs=
17782 while test ! -d "$as_dir"; do
17783 as_dirs="$as_dir $as_dirs"
17784 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17785 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17786 X"$as_dir" : 'X\(//\)[^/]' \| \
17787 X"$as_dir" : 'X\(//\)$' \| \
17788 X"$as_dir" : 'X\(/\)' \| \
17789 . : '\(.\)' 2>/dev/null ||
17790 echo X"$as_dir" |
17791 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17792 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17793 /^X\(\/\/\)$/{ s//\1/; q; }
17794 /^X\(\/\).*/{ s//\1/; q; }
17795 s/.*/./; q'`
17796 done
17797 test ! -n "$as_dirs" || mkdir $as_dirs
17798 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17799 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17800 { (exit 1); exit 1; }; }; }
17802 rm -f $ac_file
17803 mv $tmp/config.h $ac_file
17805 else
17806 cat $tmp/config.h
17807 rm -f $tmp/config.h
17809 # Compute $ac_file's index in $config_headers.
17810 _am_stamp_count=1
17811 for _am_header in $config_headers :; do
17812 case $_am_header in
17813 $ac_file | $ac_file:* )
17814 break ;;
17816 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17817 esac
17818 done
17819 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
17820 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17821 X$ac_file : 'X\(//\)[^/]' \| \
17822 X$ac_file : 'X\(//\)$' \| \
17823 X$ac_file : 'X\(/\)' \| \
17824 . : '\(.\)' 2>/dev/null ||
17825 echo X$ac_file |
17826 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17827 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17828 /^X\(\/\/\)$/{ s//\1/; q; }
17829 /^X\(\/\).*/{ s//\1/; q; }
17830 s/.*/./; q'`/stamp-h$_am_stamp_count
17831 done
17832 _ACEOF
17833 cat >>$CONFIG_STATUS <<\_ACEOF
17836 # CONFIG_COMMANDS section.
17838 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17839 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17840 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17841 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17842 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17843 X"$ac_dest" : 'X\(//\)[^/]' \| \
17844 X"$ac_dest" : 'X\(//\)$' \| \
17845 X"$ac_dest" : 'X\(/\)' \| \
17846 . : '\(.\)' 2>/dev/null ||
17847 echo X"$ac_dest" |
17848 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17849 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17850 /^X\(\/\/\)$/{ s//\1/; q; }
17851 /^X\(\/\).*/{ s//\1/; q; }
17852 s/.*/./; q'`
17853 { if $as_mkdir_p; then
17854 mkdir -p "$ac_dir"
17855 else
17856 as_dir="$ac_dir"
17857 as_dirs=
17858 while test ! -d "$as_dir"; do
17859 as_dirs="$as_dir $as_dirs"
17860 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17861 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17862 X"$as_dir" : 'X\(//\)[^/]' \| \
17863 X"$as_dir" : 'X\(//\)$' \| \
17864 X"$as_dir" : 'X\(/\)' \| \
17865 . : '\(.\)' 2>/dev/null ||
17866 echo X"$as_dir" |
17867 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17868 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17869 /^X\(\/\/\)$/{ s//\1/; q; }
17870 /^X\(\/\).*/{ s//\1/; q; }
17871 s/.*/./; q'`
17872 done
17873 test ! -n "$as_dirs" || mkdir $as_dirs
17874 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17875 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17876 { (exit 1); exit 1; }; }; }
17878 ac_builddir=.
17880 if test "$ac_dir" != .; then
17881 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17882 # A "../" for each directory in $ac_dir_suffix.
17883 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17884 else
17885 ac_dir_suffix= ac_top_builddir=
17888 case $srcdir in
17889 .) # No --srcdir option. We are building in place.
17890 ac_srcdir=.
17891 if test -z "$ac_top_builddir"; then
17892 ac_top_srcdir=.
17893 else
17894 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17895 fi ;;
17896 [\\/]* | ?:[\\/]* ) # Absolute path.
17897 ac_srcdir=$srcdir$ac_dir_suffix;
17898 ac_top_srcdir=$srcdir ;;
17899 *) # Relative path.
17900 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17901 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17902 esac
17904 # Do not use `cd foo && pwd` to compute absolute paths, because
17905 # the directories may not exist.
17906 case `pwd` in
17907 .) ac_abs_builddir="$ac_dir";;
17909 case "$ac_dir" in
17910 .) ac_abs_builddir=`pwd`;;
17911 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17912 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17913 esac;;
17914 esac
17915 case $ac_abs_builddir in
17916 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17918 case ${ac_top_builddir}. in
17919 .) ac_abs_top_builddir=$ac_abs_builddir;;
17920 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17921 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17922 esac;;
17923 esac
17924 case $ac_abs_builddir in
17925 .) ac_abs_srcdir=$ac_srcdir;;
17927 case $ac_srcdir in
17928 .) ac_abs_srcdir=$ac_abs_builddir;;
17929 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17930 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17931 esac;;
17932 esac
17933 case $ac_abs_builddir in
17934 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17936 case $ac_top_srcdir in
17937 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17938 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17939 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17940 esac;;
17941 esac
17944 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17945 echo "$as_me: executing $ac_dest commands" >&6;}
17946 case $ac_dest in
17947 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17948 # Strip MF so we end up with the name of the file.
17949 mf=`echo "$mf" | sed -e 's/:.*$//'`
17950 # Check whether this is an Automake generated Makefile or not.
17951 # We used to match only the files named `Makefile.in', but
17952 # some people rename them; so instead we look at the file content.
17953 # Grep'ing the first line is not enough: some people post-process
17954 # each Makefile.in and add a new line on top of each file to say so.
17955 # So let's grep whole file.
17956 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17957 dirpart=`(dirname "$mf") 2>/dev/null ||
17958 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17959 X"$mf" : 'X\(//\)[^/]' \| \
17960 X"$mf" : 'X\(//\)$' \| \
17961 X"$mf" : 'X\(/\)' \| \
17962 . : '\(.\)' 2>/dev/null ||
17963 echo X"$mf" |
17964 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17965 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17966 /^X\(\/\/\)$/{ s//\1/; q; }
17967 /^X\(\/\).*/{ s//\1/; q; }
17968 s/.*/./; q'`
17969 else
17970 continue
17972 # Extract the definition of DEPDIR, am__include, and am__quote
17973 # from the Makefile without running `make'.
17974 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17975 test -z "$DEPDIR" && continue
17976 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17977 test -z "am__include" && continue
17978 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17979 # When using ansi2knr, U may be empty or an underscore; expand it
17980 U=`sed -n 's/^U = //p' < "$mf"`
17981 # Find all dependency output files, they are included files with
17982 # $(DEPDIR) in their names. We invoke sed twice because it is the
17983 # simplest approach to changing $(DEPDIR) to its actual value in the
17984 # expansion.
17985 for file in `sed -n "
17986 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17987 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17988 # Make sure the directory exists.
17989 test -f "$dirpart/$file" && continue
17990 fdir=`(dirname "$file") 2>/dev/null ||
17991 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17992 X"$file" : 'X\(//\)[^/]' \| \
17993 X"$file" : 'X\(//\)$' \| \
17994 X"$file" : 'X\(/\)' \| \
17995 . : '\(.\)' 2>/dev/null ||
17996 echo X"$file" |
17997 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17998 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17999 /^X\(\/\/\)$/{ s//\1/; q; }
18000 /^X\(\/\).*/{ s//\1/; q; }
18001 s/.*/./; q'`
18002 { if $as_mkdir_p; then
18003 mkdir -p $dirpart/$fdir
18004 else
18005 as_dir=$dirpart/$fdir
18006 as_dirs=
18007 while test ! -d "$as_dir"; do
18008 as_dirs="$as_dir $as_dirs"
18009 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18010 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18011 X"$as_dir" : 'X\(//\)[^/]' \| \
18012 X"$as_dir" : 'X\(//\)$' \| \
18013 X"$as_dir" : 'X\(/\)' \| \
18014 . : '\(.\)' 2>/dev/null ||
18015 echo X"$as_dir" |
18016 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18017 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18018 /^X\(\/\/\)$/{ s//\1/; q; }
18019 /^X\(\/\).*/{ s//\1/; q; }
18020 s/.*/./; q'`
18021 done
18022 test ! -n "$as_dirs" || mkdir $as_dirs
18023 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18024 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18025 { (exit 1); exit 1; }; }; }
18027 # echo "creating $dirpart/$file"
18028 echo '# dummy' > "$dirpart/$file"
18029 done
18030 done
18032 libtool )
18034 # See if we are running on zsh, and set the options which allow our
18035 # commands through without removal of \ escapes.
18036 if test -n "${ZSH_VERSION+set}" ; then
18037 setopt NO_GLOB_SUBST
18040 cfgfile="${ofile}T"
18041 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18042 $RM "$cfgfile"
18044 cat <<_LT_EOF >> "$cfgfile"
18045 #! $SHELL
18047 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18048 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18049 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18050 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18052 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18053 # 2006, 2007, 2008 Free Software Foundation, Inc.
18054 # Written by Gordon Matzigkeit, 1996
18056 # This file is part of GNU Libtool.
18058 # GNU Libtool is free software; you can redistribute it and/or
18059 # modify it under the terms of the GNU General Public License as
18060 # published by the Free Software Foundation; either version 2 of
18061 # the License, or (at your option) any later version.
18063 # As a special exception to the GNU General Public License,
18064 # if you distribute this file as part of a program or library that
18065 # is built using GNU Libtool, you may include this file under the
18066 # same distribution terms that you use for the rest of that program.
18068 # GNU Libtool is distributed in the hope that it will be useful,
18069 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18070 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18071 # GNU General Public License for more details.
18073 # You should have received a copy of the GNU General Public License
18074 # along with GNU Libtool; see the file COPYING. If not, a copy
18075 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18076 # obtained by writing to the Free Software Foundation, Inc.,
18077 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18080 # The names of the tagged configurations supported by this script.
18081 available_tags=""
18083 # ### BEGIN LIBTOOL CONFIG
18085 # Which release of libtool.m4 was used?
18086 macro_version=$macro_version
18087 macro_revision=$macro_revision
18089 # Whether or not to build shared libraries.
18090 build_libtool_libs=$enable_shared
18092 # Whether or not to build static libraries.
18093 build_old_libs=$enable_static
18095 # What type of objects to build.
18096 pic_mode=$pic_mode
18098 # Whether or not to optimize for fast installation.
18099 fast_install=$enable_fast_install
18101 # The host system.
18102 host_alias=$host_alias
18103 host=$host
18104 host_os=$host_os
18106 # The build system.
18107 build_alias=$build_alias
18108 build=$build
18109 build_os=$build_os
18111 # A sed program that does not truncate output.
18112 SED=$lt_SED
18114 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18115 Xsed="\$SED -e 1s/^X//"
18117 # A grep program that handles long lines.
18118 GREP=$lt_GREP
18120 # An ERE matcher.
18121 EGREP=$lt_EGREP
18123 # A literal string matcher.
18124 FGREP=$lt_FGREP
18126 # A BSD- or MS-compatible name lister.
18127 NM=$lt_NM
18129 # Whether we need soft or hard links.
18130 LN_S=$lt_LN_S
18132 # What is the maximum length of a command?
18133 max_cmd_len=$max_cmd_len
18135 # Object file suffix (normally "o").
18136 objext=$ac_objext
18138 # Executable file suffix (normally "").
18139 exeext=$exeext
18141 # whether the shell understands "unset".
18142 lt_unset=$lt_unset
18144 # turn spaces into newlines.
18145 SP2NL=$lt_lt_SP2NL
18147 # turn newlines into spaces.
18148 NL2SP=$lt_lt_NL2SP
18150 # How to create reloadable object files.
18151 reload_flag=$lt_reload_flag
18152 reload_cmds=$lt_reload_cmds
18154 # An object symbol dumper.
18155 OBJDUMP=$lt_OBJDUMP
18157 # Method to check whether dependent libraries are shared objects.
18158 deplibs_check_method=$lt_deplibs_check_method
18160 # Command to use when deplibs_check_method == "file_magic".
18161 file_magic_cmd=$lt_file_magic_cmd
18163 # The archiver.
18164 AR=$lt_AR
18165 AR_FLAGS=$lt_AR_FLAGS
18167 # A symbol stripping program.
18168 STRIP=$lt_STRIP
18170 # Commands used to install an old-style archive.
18171 RANLIB=$lt_RANLIB
18172 old_postinstall_cmds=$lt_old_postinstall_cmds
18173 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18175 # A C compiler.
18176 LTCC=$lt_CC
18178 # LTCC compiler flags.
18179 LTCFLAGS=$lt_CFLAGS
18181 # Take the output of nm and produce a listing of raw symbols and C names.
18182 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18184 # Transform the output of nm in a proper C declaration.
18185 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18187 # Transform the output of nm in a C name address pair.
18188 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18190 # Transform the output of nm in a C name address pair when lib prefix is needed.
18191 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18193 # The name of the directory that contains temporary libtool files.
18194 objdir=$objdir
18196 # Shell to use when invoking shell scripts.
18197 SHELL=$lt_SHELL
18199 # An echo program that does not interpret backslashes.
18200 ECHO=$lt_ECHO
18202 # Used to examine libraries when file_magic_cmd begins with "file".
18203 MAGIC_CMD=$MAGIC_CMD
18205 # Must we lock files when doing compilation?
18206 need_locks=$lt_need_locks
18208 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18209 DSYMUTIL=$lt_DSYMUTIL
18211 # Tool to change global to local symbols on Mac OS X.
18212 NMEDIT=$lt_NMEDIT
18214 # Tool to manipulate fat objects and archives on Mac OS X.
18215 LIPO=$lt_LIPO
18217 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18218 OTOOL=$lt_OTOOL
18220 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18221 OTOOL64=$lt_OTOOL64
18223 # Old archive suffix (normally "a").
18224 libext=$libext
18226 # Shared library suffix (normally ".so").
18227 shrext_cmds=$lt_shrext_cmds
18229 # The commands to extract the exported symbol list from a shared archive.
18230 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18232 # Variables whose values should be saved in libtool wrapper scripts and
18233 # restored at link time.
18234 variables_saved_for_relink=$lt_variables_saved_for_relink
18236 # Do we need the "lib" prefix for modules?
18237 need_lib_prefix=$need_lib_prefix
18239 # Do we need a version for libraries?
18240 need_version=$need_version
18242 # Library versioning type.
18243 version_type=$version_type
18245 # Shared library runtime path variable.
18246 runpath_var=$runpath_var
18248 # Shared library path variable.
18249 shlibpath_var=$shlibpath_var
18251 # Is shlibpath searched before the hard-coded library search path?
18252 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18254 # Format of library name prefix.
18255 libname_spec=$lt_libname_spec
18257 # List of archive names. First name is the real one, the rest are links.
18258 # The last name is the one that the linker finds with -lNAME
18259 library_names_spec=$lt_library_names_spec
18261 # The coded name of the library, if different from the real name.
18262 soname_spec=$lt_soname_spec
18264 # Command to use after installation of a shared archive.
18265 postinstall_cmds=$lt_postinstall_cmds
18267 # Command to use after uninstallation of a shared archive.
18268 postuninstall_cmds=$lt_postuninstall_cmds
18270 # Commands used to finish a libtool library installation in a directory.
18271 finish_cmds=$lt_finish_cmds
18273 # As "finish_cmds", except a single script fragment to be evaled but
18274 # not shown.
18275 finish_eval=$lt_finish_eval
18277 # Whether we should hardcode library paths into libraries.
18278 hardcode_into_libs=$hardcode_into_libs
18280 # Compile-time system search path for libraries.
18281 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18283 # Run-time system search path for libraries.
18284 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18286 # Whether dlopen is supported.
18287 dlopen_support=$enable_dlopen
18289 # Whether dlopen of programs is supported.
18290 dlopen_self=$enable_dlopen_self
18292 # Whether dlopen of statically linked programs is supported.
18293 dlopen_self_static=$enable_dlopen_self_static
18295 # Commands to strip libraries.
18296 old_striplib=$lt_old_striplib
18297 striplib=$lt_striplib
18300 # The linker used to build libraries.
18301 LD=$lt_LD
18303 # Commands used to build an old-style archive.
18304 old_archive_cmds=$lt_old_archive_cmds
18306 # A language specific compiler.
18307 CC=$lt_compiler
18309 # Is the compiler the GNU compiler?
18310 with_gcc=$GCC
18312 # Compiler flag to turn off builtin functions.
18313 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18315 # How to pass a linker flag through the compiler.
18316 wl=$lt_lt_prog_compiler_wl
18318 # Additional compiler flags for building library objects.
18319 pic_flag=$lt_lt_prog_compiler_pic
18321 # Compiler flag to prevent dynamic linking.
18322 link_static_flag=$lt_lt_prog_compiler_static
18324 # Does compiler simultaneously support -c and -o options?
18325 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18327 # Whether or not to add -lc for building shared libraries.
18328 build_libtool_need_lc=$archive_cmds_need_lc
18330 # Whether or not to disallow shared libs when runtime libs are static.
18331 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18333 # Compiler flag to allow reflexive dlopens.
18334 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18336 # Compiler flag to generate shared objects directly from archives.
18337 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18339 # Whether the compiler copes with passing no objects directly.
18340 compiler_needs_object=$lt_compiler_needs_object
18342 # Create an old-style archive from a shared archive.
18343 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18345 # Create a temporary old-style archive to link instead of a shared archive.
18346 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18348 # Commands used to build a shared archive.
18349 archive_cmds=$lt_archive_cmds
18350 archive_expsym_cmds=$lt_archive_expsym_cmds
18352 # Commands used to build a loadable module if different from building
18353 # a shared archive.
18354 module_cmds=$lt_module_cmds
18355 module_expsym_cmds=$lt_module_expsym_cmds
18357 # Whether we are building with GNU ld or not.
18358 with_gnu_ld=$lt_with_gnu_ld
18360 # Flag that allows shared libraries with undefined symbols to be built.
18361 allow_undefined_flag=$lt_allow_undefined_flag
18363 # Flag that enforces no undefined symbols.
18364 no_undefined_flag=$lt_no_undefined_flag
18366 # Flag to hardcode \$libdir into a binary during linking.
18367 # This must work even if \$libdir does not exist
18368 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18370 # If ld is used when linking, flag to hardcode \$libdir into a binary
18371 # during linking. This must work even if \$libdir does not exist.
18372 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18374 # Whether we need a single "-rpath" flag with a separated argument.
18375 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18377 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18378 # DIR into the resulting binary.
18379 hardcode_direct=$hardcode_direct
18381 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18382 # DIR into the resulting binary and the resulting library dependency is
18383 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18384 # library is relocated.
18385 hardcode_direct_absolute=$hardcode_direct_absolute
18387 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18388 # into the resulting binary.
18389 hardcode_minus_L=$hardcode_minus_L
18391 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18392 # into the resulting binary.
18393 hardcode_shlibpath_var=$hardcode_shlibpath_var
18395 # Set to "yes" if building a shared library automatically hardcodes DIR
18396 # into the library and all subsequent libraries and executables linked
18397 # against it.
18398 hardcode_automatic=$hardcode_automatic
18400 # Set to yes if linker adds runtime paths of dependent libraries
18401 # to runtime path list.
18402 inherit_rpath=$inherit_rpath
18404 # Whether libtool must link a program against all its dependency libraries.
18405 link_all_deplibs=$link_all_deplibs
18407 # Fix the shell variable \$srcfile for the compiler.
18408 fix_srcfile_path=$lt_fix_srcfile_path
18410 # Set to "yes" if exported symbols are required.
18411 always_export_symbols=$always_export_symbols
18413 # The commands to list exported symbols.
18414 export_symbols_cmds=$lt_export_symbols_cmds
18416 # Symbols that should not be listed in the preloaded symbols.
18417 exclude_expsyms=$lt_exclude_expsyms
18419 # Symbols that must always be exported.
18420 include_expsyms=$lt_include_expsyms
18422 # Commands necessary for linking programs (against libraries) with templates.
18423 prelink_cmds=$lt_prelink_cmds
18425 # Specify filename containing input files.
18426 file_list_spec=$lt_file_list_spec
18428 # How to hardcode a shared library path into an executable.
18429 hardcode_action=$hardcode_action
18431 # ### END LIBTOOL CONFIG
18433 _LT_EOF
18435 case $host_os in
18436 aix3*)
18437 cat <<\_LT_EOF >> "$cfgfile"
18438 # AIX sometimes has problems with the GCC collect2 program. For some
18439 # reason, if we set the COLLECT_NAMES environment variable, the problems
18440 # vanish in a puff of smoke.
18441 if test "X${COLLECT_NAMES+set}" != Xset; then
18442 COLLECT_NAMES=
18443 export COLLECT_NAMES
18445 _LT_EOF
18447 esac
18450 ltmain="$ac_aux_dir/ltmain.sh"
18453 # We use sed instead of cat because bash on DJGPP gets confused if
18454 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18455 # text mode, it properly converts lines to CR/LF. This bash problem
18456 # is reportedly fixed, but why not run on old versions too?
18457 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18458 || (rm -f "$cfgfile"; exit 1)
18460 case $xsi_shell in
18461 yes)
18462 cat << \_LT_EOF >> "$cfgfile"
18464 # func_dirname file append nondir_replacement
18465 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18466 # otherwise set result to NONDIR_REPLACEMENT.
18467 func_dirname ()
18469 case ${1} in
18470 */*) func_dirname_result="${1%/*}${2}" ;;
18471 * ) func_dirname_result="${3}" ;;
18472 esac
18475 # func_basename file
18476 func_basename ()
18478 func_basename_result="${1##*/}"
18481 # func_dirname_and_basename file append nondir_replacement
18482 # perform func_basename and func_dirname in a single function
18483 # call:
18484 # dirname: Compute the dirname of FILE. If nonempty,
18485 # add APPEND to the result, otherwise set result
18486 # to NONDIR_REPLACEMENT.
18487 # value returned in "$func_dirname_result"
18488 # basename: Compute filename of FILE.
18489 # value retuned in "$func_basename_result"
18490 # Implementation must be kept synchronized with func_dirname
18491 # and func_basename. For efficiency, we do not delegate to
18492 # those functions but instead duplicate the functionality here.
18493 func_dirname_and_basename ()
18495 case ${1} in
18496 */*) func_dirname_result="${1%/*}${2}" ;;
18497 * ) func_dirname_result="${3}" ;;
18498 esac
18499 func_basename_result="${1##*/}"
18502 # func_stripname prefix suffix name
18503 # strip PREFIX and SUFFIX off of NAME.
18504 # PREFIX and SUFFIX must not contain globbing or regex special
18505 # characters, hashes, percent signs, but SUFFIX may contain a leading
18506 # dot (in which case that matches only a dot).
18507 func_stripname ()
18509 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18510 # positional parameters, so assign one to ordinary parameter first.
18511 func_stripname_result=${3}
18512 func_stripname_result=${func_stripname_result#"${1}"}
18513 func_stripname_result=${func_stripname_result%"${2}"}
18516 # func_opt_split
18517 func_opt_split ()
18519 func_opt_split_opt=${1%%=*}
18520 func_opt_split_arg=${1#*=}
18523 # func_lo2o object
18524 func_lo2o ()
18526 case ${1} in
18527 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18528 *) func_lo2o_result=${1} ;;
18529 esac
18532 # func_xform libobj-or-source
18533 func_xform ()
18535 func_xform_result=${1%.*}.lo
18538 # func_arith arithmetic-term...
18539 func_arith ()
18541 func_arith_result=$(( $* ))
18544 # func_len string
18545 # STRING may not start with a hyphen.
18546 func_len ()
18548 func_len_result=${#1}
18551 _LT_EOF
18553 *) # Bourne compatible functions.
18554 cat << \_LT_EOF >> "$cfgfile"
18556 # func_dirname file append nondir_replacement
18557 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18558 # otherwise set result to NONDIR_REPLACEMENT.
18559 func_dirname ()
18561 # Extract subdirectory from the argument.
18562 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18563 if test "X$func_dirname_result" = "X${1}"; then
18564 func_dirname_result="${3}"
18565 else
18566 func_dirname_result="$func_dirname_result${2}"
18570 # func_basename file
18571 func_basename ()
18573 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18577 # func_stripname prefix suffix name
18578 # strip PREFIX and SUFFIX off of NAME.
18579 # PREFIX and SUFFIX must not contain globbing or regex special
18580 # characters, hashes, percent signs, but SUFFIX may contain a leading
18581 # dot (in which case that matches only a dot).
18582 # func_strip_suffix prefix name
18583 func_stripname ()
18585 case ${2} in
18586 .*) func_stripname_result=`$ECHO "X${3}" \
18587 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18588 *) func_stripname_result=`$ECHO "X${3}" \
18589 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18590 esac
18593 # sed scripts:
18594 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18595 my_sed_long_arg='1s/^-[^=]*=//'
18597 # func_opt_split
18598 func_opt_split ()
18600 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18601 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18604 # func_lo2o object
18605 func_lo2o ()
18607 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18610 # func_xform libobj-or-source
18611 func_xform ()
18613 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
18616 # func_arith arithmetic-term...
18617 func_arith ()
18619 func_arith_result=`expr "$@"`
18622 # func_len string
18623 # STRING may not start with a hyphen.
18624 func_len ()
18626 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18629 _LT_EOF
18630 esac
18632 case $lt_shell_append in
18633 yes)
18634 cat << \_LT_EOF >> "$cfgfile"
18636 # func_append var value
18637 # Append VALUE to the end of shell variable VAR.
18638 func_append ()
18640 eval "$1+=\$2"
18642 _LT_EOF
18645 cat << \_LT_EOF >> "$cfgfile"
18647 # func_append var value
18648 # Append VALUE to the end of shell variable VAR.
18649 func_append ()
18651 eval "$1=\$$1\$2"
18654 _LT_EOF
18656 esac
18659 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18660 || (rm -f "$cfgfile"; exit 1)
18662 mv -f "$cfgfile" "$ofile" ||
18663 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18664 chmod +x "$ofile"
18667 default-1 )
18668 for ac_file in $CONFIG_FILES; do
18669 # Support "outfile[:infile[:infile...]]"
18670 case "$ac_file" in
18671 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18672 esac
18673 # PO directories have a Makefile.in generated from Makefile.in.in.
18674 case "$ac_file" in */Makefile.in)
18675 # Adjust a relative srcdir.
18676 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18677 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
18678 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18679 # In autoconf-2.13 it is called $ac_given_srcdir.
18680 # In autoconf-2.50 it is called $srcdir.
18681 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18682 case "$ac_given_srcdir" in
18683 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18684 /*) top_srcdir="$ac_given_srcdir" ;;
18685 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
18686 esac
18687 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18688 rm -f "$ac_dir/POTFILES"
18689 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18690 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
18691 POMAKEFILEDEPS="POTFILES.in"
18692 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
18693 # on $ac_dir but don't depend on user-specified configuration
18694 # parameters.
18695 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18696 # The LINGUAS file contains the set of available languages.
18697 if test -n "$OBSOLETE_ALL_LINGUAS"; then
18698 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
18700 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18701 # Hide the ALL_LINGUAS assigment from automake.
18702 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18703 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
18704 else
18705 # The set of available languages was given in configure.in.
18706 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
18708 case "$ac_given_srcdir" in
18709 .) srcdirpre= ;;
18710 *) srcdirpre='$(srcdir)/' ;;
18711 esac
18712 POFILES=
18713 GMOFILES=
18714 UPDATEPOFILES=
18715 DUMMYPOFILES=
18716 for lang in $ALL_LINGUAS; do
18717 POFILES="$POFILES $srcdirpre$lang.po"
18718 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18719 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
18720 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
18721 done
18722 # CATALOGS depends on both $ac_dir and the user's LINGUAS
18723 # environment variable.
18724 INST_LINGUAS=
18725 if test -n "$ALL_LINGUAS"; then
18726 for presentlang in $ALL_LINGUAS; do
18727 useit=no
18728 if test "%UNSET%" != "$LINGUAS"; then
18729 desiredlanguages="$LINGUAS"
18730 else
18731 desiredlanguages="$ALL_LINGUAS"
18733 for desiredlang in $desiredlanguages; do
18734 # Use the presentlang catalog if desiredlang is
18735 # a. equal to presentlang, or
18736 # b. a variant of presentlang (because in this case,
18737 # presentlang can be used as a fallback for messages
18738 # which are not translated in the desiredlang catalog).
18739 case "$desiredlang" in
18740 "$presentlang"*) useit=yes;;
18741 esac
18742 done
18743 if test $useit = yes; then
18744 INST_LINGUAS="$INST_LINGUAS $presentlang"
18746 done
18748 CATALOGS=
18749 if test -n "$INST_LINGUAS"; then
18750 for lang in $INST_LINGUAS; do
18751 CATALOGS="$CATALOGS $lang.gmo"
18752 done
18754 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18755 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"
18756 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18757 if test -f "$f"; then
18758 case "$f" in
18759 *.orig | *.bak | *~) ;;
18760 *) cat "$f" >> "$ac_dir/Makefile" ;;
18761 esac
18763 done
18766 esac
18767 done ;;
18768 esac
18769 done
18770 _ACEOF
18772 cat >>$CONFIG_STATUS <<\_ACEOF
18774 { (exit 0); exit 0; }
18775 _ACEOF
18776 chmod +x $CONFIG_STATUS
18777 ac_clean_files=$ac_clean_files_save
18780 # configure is writing to config.log, and then calls config.status.
18781 # config.status does its own redirection, appending to config.log.
18782 # Unfortunately, on DOS this fails, as config.log is still kept open
18783 # by configure, so config.status won't be able to write to it; its
18784 # output is simply discarded. So we exec the FD to /dev/null,
18785 # effectively closing config.log, so it can be properly (re)opened and
18786 # appended to by config.status. When coming back to configure, we
18787 # need to make the FD available again.
18788 if test "$no_create" != yes; then
18789 ac_cs_success=:
18790 ac_config_status_args=
18791 test "$silent" = yes &&
18792 ac_config_status_args="$ac_config_status_args --quiet"
18793 exec 5>/dev/null
18794 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18795 exec 5>>config.log
18796 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18797 # would make configure fail if this is the last instruction.
18798 $ac_cs_success || { (exit 1); exit 1; }