* write.c (relax_segment <rs_org>): Include current stretch
[binutils.git] / binutils / configure
blobb5923c24828d0c006c87faca72034dd4a5be017b
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
248 case X$lt_ECHO in
249 X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
253 esac
255 ECHO=${lt_ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
262 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
265 else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<_LT_EOF
275 _LT_EOF
276 exit 0
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
283 if test -z "$lt_ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290 then
291 break
293 done
296 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298 test "X$echo_testing_string" = "X$echo_test_string"; then
300 else
301 # The Solaris, AIX, and Digital Unix default echo programs unquote
302 # backslashes. This makes it impossible to quote backslashes using
303 # echo "$something" | sed 's/\\/\\\\/g'
305 # So, first we look for a working echo in the user's PATH.
307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308 for dir in $PATH /usr/ucb; do
309 IFS="$lt_save_ifs"
310 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313 test "X$echo_testing_string" = "X$echo_test_string"; then
314 ECHO="$dir/echo"
315 break
317 done
318 IFS="$lt_save_ifs"
320 if test "X$ECHO" = Xecho; then
321 # We didn't find a better echo, so look for alternatives.
322 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
325 # This shell has a builtin print -r that does the trick.
326 ECHO='print -r'
327 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328 test "X$CONFIG_SHELL" != X/bin/ksh; then
329 # If we have ksh, try running configure again with it.
330 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331 export ORIGINAL_CONFIG_SHELL
332 CONFIG_SHELL=/bin/ksh
333 export CONFIG_SHELL
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335 else
336 # Try using printf.
337 ECHO='printf %s\n'
338 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340 test "X$echo_testing_string" = "X$echo_test_string"; then
341 # Cool, printf works
343 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344 test "X$echo_testing_string" = 'X\t' &&
345 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346 test "X$echo_testing_string" = "X$echo_test_string"; then
347 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348 export CONFIG_SHELL
349 SHELL="$CONFIG_SHELL"
350 export SHELL
351 ECHO="$CONFIG_SHELL $0 --fallback-echo"
352 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 ECHO="$CONFIG_SHELL $0 --fallback-echo"
357 else
358 # maybe with a smaller string...
359 prev=:
361 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363 then
364 break
366 prev="$cmd"
367 done
369 if test "$prev" != 'sed 50q "$0"'; then
370 echo_test_string=`eval $prev`
371 export echo_test_string
372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373 else
374 # Oops. We lost completely, so just stick with echo.
375 ECHO=echo
383 # Copy echo and quote the copy suitably for passing to libtool from
384 # the Makefile, instead of quoting the original, which is used later.
385 lt_ECHO=$ECHO
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393 # Name of the host.
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
398 exec 6>&1
401 # Initializations.
403 ac_default_prefix=/usr/local
404 ac_config_libobj_dir=.
405 cross_compiling=no
406 subdirs=
407 MFLAGS=
408 MAKEFLAGS=
409 SHELL=${CONFIG_SHELL-/bin/sh}
411 # Maximum number of lines to put in a shell here document.
412 # This variable seems obsolete. It should probably be removed, and
413 # only ac_max_sed_lines should be used.
414 : ${ac_max_here_lines=38}
416 # Identity of this package.
417 PACKAGE_NAME=
418 PACKAGE_TARNAME=
419 PACKAGE_VERSION=
420 PACKAGE_STRING=
421 PACKAGE_BUGREPORT=
423 ac_unique_file="ar.c"
424 # Factoring default headers for most tests.
425 ac_includes_default="\
426 #include <stdio.h>
427 #if HAVE_SYS_TYPES_H
428 # include <sys/types.h>
429 #endif
430 #if HAVE_SYS_STAT_H
431 # include <sys/stat.h>
432 #endif
433 #if STDC_HEADERS
434 # include <stdlib.h>
435 # include <stddef.h>
436 #else
437 # if HAVE_STDLIB_H
438 # include <stdlib.h>
439 # endif
440 #endif
441 #if HAVE_STRING_H
442 # if !STDC_HEADERS && HAVE_MEMORY_H
443 # include <memory.h>
444 # endif
445 # include <string.h>
446 #endif
447 #if HAVE_STRINGS_H
448 # include <strings.h>
449 #endif
450 #if HAVE_INTTYPES_H
451 # include <inttypes.h>
452 #else
453 # if HAVE_STDINT_H
454 # include <stdint.h>
455 # endif
456 #endif
457 #if HAVE_UNISTD_H
458 # include <unistd.h>
459 #endif"
461 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO CPP WARN_CFLAGS NO_WERROR YACC LEX LEXLIB LEX_OUTPUT_ROOT USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE HDEFINES CC_FOR_BUILD EXEEXT_FOR_BUILD DEMANGLER_NAME ALLOCA LIBICONV LTLIBICONV NLMCONV_DEFS BUILD_NLMCONV BUILD_SRCONV BUILD_DLLTOOL DLLTOOL_DEFS BUILD_WINDRES BUILD_WINDMC BUILD_DLLWRAP BUILD_MISC BUILD_INSTALL_MISC OBJDUMP_DEFS EMULATION EMULATION_VECTOR datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
462 ac_subst_files=''
463 ac_pwd=`pwd`
465 # Initialize some variables set by options.
466 ac_init_help=
467 ac_init_version=false
468 # The variables have the same names as the options, with
469 # dashes changed to underlines.
470 cache_file=/dev/null
471 exec_prefix=NONE
472 no_create=
473 no_recursion=
474 prefix=NONE
475 program_prefix=NONE
476 program_suffix=NONE
477 program_transform_name=s,x,x,
478 silent=
479 site=
480 srcdir=
481 verbose=
482 x_includes=NONE
483 x_libraries=NONE
485 # Installation directory options.
486 # These are left unexpanded so users can "make install exec_prefix=/foo"
487 # and all the variables that are supposed to be based on exec_prefix
488 # by default will actually change.
489 # Use braces instead of parens because sh, perl, etc. also accept them.
490 bindir='${exec_prefix}/bin'
491 sbindir='${exec_prefix}/sbin'
492 libexecdir='${exec_prefix}/libexec'
493 datadir='${prefix}/share'
494 sysconfdir='${prefix}/etc'
495 sharedstatedir='${prefix}/com'
496 localstatedir='${prefix}/var'
497 libdir='${exec_prefix}/lib'
498 includedir='${prefix}/include'
499 oldincludedir='/usr/include'
500 infodir='${prefix}/info'
501 mandir='${prefix}/man'
503 ac_prev=
504 for ac_option
506 # If the previous option needs an argument, assign it.
507 if test -n "$ac_prev"; then
508 eval "$ac_prev=\$ac_option"
509 ac_prev=
510 continue
513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
515 # Accept the important Cygnus configure options, so we can diagnose typos.
517 case $ac_option in
519 -bindir | --bindir | --bindi | --bind | --bin | --bi)
520 ac_prev=bindir ;;
521 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
522 bindir=$ac_optarg ;;
524 -build | --build | --buil | --bui | --bu)
525 ac_prev=build_alias ;;
526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
527 build_alias=$ac_optarg ;;
529 -cache-file | --cache-file | --cache-fil | --cache-fi \
530 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531 ac_prev=cache_file ;;
532 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
534 cache_file=$ac_optarg ;;
536 --config-cache | -C)
537 cache_file=config.cache ;;
539 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540 ac_prev=datadir ;;
541 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542 | --da=*)
543 datadir=$ac_optarg ;;
545 -disable-* | --disable-*)
546 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
547 # Reject names that are not valid shell variable names.
548 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550 { (exit 1); exit 1; }; }
551 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552 eval "enable_$ac_feature=no" ;;
554 -enable-* | --enable-*)
555 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
556 # Reject names that are not valid shell variable names.
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 case $ac_option in
562 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
563 *) ac_optarg=yes ;;
564 esac
565 eval "enable_$ac_feature='$ac_optarg'" ;;
567 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569 | --exec | --exe | --ex)
570 ac_prev=exec_prefix ;;
571 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573 | --exec=* | --exe=* | --ex=*)
574 exec_prefix=$ac_optarg ;;
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
578 with_gas=yes ;;
580 -help | --help | --hel | --he | -h)
581 ac_init_help=long ;;
582 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583 ac_init_help=recursive ;;
584 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585 ac_init_help=short ;;
587 -host | --host | --hos | --ho)
588 ac_prev=host_alias ;;
589 -host=* | --host=* | --hos=* | --ho=*)
590 host_alias=$ac_optarg ;;
592 -includedir | --includedir | --includedi | --included | --include \
593 | --includ | --inclu | --incl | --inc)
594 ac_prev=includedir ;;
595 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596 | --includ=* | --inclu=* | --incl=* | --inc=*)
597 includedir=$ac_optarg ;;
599 -infodir | --infodir | --infodi | --infod | --info | --inf)
600 ac_prev=infodir ;;
601 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
602 infodir=$ac_optarg ;;
604 -libdir | --libdir | --libdi | --libd)
605 ac_prev=libdir ;;
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
607 libdir=$ac_optarg ;;
609 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610 | --libexe | --libex | --libe)
611 ac_prev=libexecdir ;;
612 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613 | --libexe=* | --libex=* | --libe=*)
614 libexecdir=$ac_optarg ;;
616 -localstatedir | --localstatedir | --localstatedi | --localstated \
617 | --localstate | --localstat | --localsta | --localst \
618 | --locals | --local | --loca | --loc | --lo)
619 ac_prev=localstatedir ;;
620 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
623 localstatedir=$ac_optarg ;;
625 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626 ac_prev=mandir ;;
627 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
628 mandir=$ac_optarg ;;
630 -nfp | --nfp | --nf)
631 # Obsolete; use --without-fp.
632 with_fp=no ;;
634 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
635 | --no-cr | --no-c | -n)
636 no_create=yes ;;
638 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640 no_recursion=yes ;;
642 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644 | --oldin | --oldi | --old | --ol | --o)
645 ac_prev=oldincludedir ;;
646 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
649 oldincludedir=$ac_optarg ;;
651 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652 ac_prev=prefix ;;
653 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
654 prefix=$ac_optarg ;;
656 -program-prefix | --program-prefix | --program-prefi | --program-pref \
657 | --program-pre | --program-pr | --program-p)
658 ac_prev=program_prefix ;;
659 -program-prefix=* | --program-prefix=* | --program-prefi=* \
660 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
661 program_prefix=$ac_optarg ;;
663 -program-suffix | --program-suffix | --program-suffi | --program-suff \
664 | --program-suf | --program-su | --program-s)
665 ac_prev=program_suffix ;;
666 -program-suffix=* | --program-suffix=* | --program-suffi=* \
667 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
668 program_suffix=$ac_optarg ;;
670 -program-transform-name | --program-transform-name \
671 | --program-transform-nam | --program-transform-na \
672 | --program-transform-n | --program-transform- \
673 | --program-transform | --program-transfor \
674 | --program-transfo | --program-transf \
675 | --program-trans | --program-tran \
676 | --progr-tra | --program-tr | --program-t)
677 ac_prev=program_transform_name ;;
678 -program-transform-name=* | --program-transform-name=* \
679 | --program-transform-nam=* | --program-transform-na=* \
680 | --program-transform-n=* | --program-transform-=* \
681 | --program-transform=* | --program-transfor=* \
682 | --program-transfo=* | --program-transf=* \
683 | --program-trans=* | --program-tran=* \
684 | --progr-tra=* | --program-tr=* | --program-t=*)
685 program_transform_name=$ac_optarg ;;
687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688 | -silent | --silent | --silen | --sile | --sil)
689 silent=yes ;;
691 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692 ac_prev=sbindir ;;
693 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694 | --sbi=* | --sb=*)
695 sbindir=$ac_optarg ;;
697 -sharedstatedir | --sharedstatedir | --sharedstatedi \
698 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699 | --sharedst | --shareds | --shared | --share | --shar \
700 | --sha | --sh)
701 ac_prev=sharedstatedir ;;
702 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705 | --sha=* | --sh=*)
706 sharedstatedir=$ac_optarg ;;
708 -site | --site | --sit)
709 ac_prev=site ;;
710 -site=* | --site=* | --sit=*)
711 site=$ac_optarg ;;
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 ac_prev=srcdir ;;
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
716 srcdir=$ac_optarg ;;
718 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719 | --syscon | --sysco | --sysc | --sys | --sy)
720 ac_prev=sysconfdir ;;
721 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
723 sysconfdir=$ac_optarg ;;
725 -target | --target | --targe | --targ | --tar | --ta | --t)
726 ac_prev=target_alias ;;
727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
728 target_alias=$ac_optarg ;;
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
731 verbose=yes ;;
733 -version | --version | --versio | --versi | --vers | -V)
734 ac_init_version=: ;;
736 -with-* | --with-*)
737 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
738 # Reject names that are not valid shell variable names.
739 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740 { echo "$as_me: error: invalid package name: $ac_package" >&2
741 { (exit 1); exit 1; }; }
742 ac_package=`echo $ac_package| sed 's/-/_/g'`
743 case $ac_option in
744 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
745 *) ac_optarg=yes ;;
746 esac
747 eval "with_$ac_package='$ac_optarg'" ;;
749 -without-* | --without-*)
750 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
751 # Reject names that are not valid shell variable names.
752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753 { echo "$as_me: error: invalid package name: $ac_package" >&2
754 { (exit 1); exit 1; }; }
755 ac_package=`echo $ac_package | sed 's/-/_/g'`
756 eval "with_$ac_package=no" ;;
758 --x)
759 # Obsolete; use --with-x.
760 with_x=yes ;;
762 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763 | --x-incl | --x-inc | --x-in | --x-i)
764 ac_prev=x_includes ;;
765 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
767 x_includes=$ac_optarg ;;
769 -x-libraries | --x-libraries | --x-librarie | --x-librari \
770 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771 ac_prev=x_libraries ;;
772 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
774 x_libraries=$ac_optarg ;;
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777 Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
781 *=*)
782 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783 # Reject names that are not valid shell variable names.
784 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786 { (exit 1); exit 1; }; }
787 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788 eval "$ac_envvar='$ac_optarg'"
789 export $ac_envvar ;;
792 # FIXME: should be removed in autoconf 3.0.
793 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
799 esac
800 done
802 if test -n "$ac_prev"; then
803 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804 { echo "$as_me: error: missing argument to $ac_option" >&2
805 { (exit 1); exit 1; }; }
808 # Be sure to have absolute paths.
809 for ac_var in exec_prefix prefix
811 eval ac_val=$`echo $ac_var`
812 case $ac_val in
813 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815 { (exit 1); exit 1; }; };;
816 esac
817 done
819 # Be sure to have absolute paths.
820 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
823 eval ac_val=$`echo $ac_var`
824 case $ac_val in
825 [\\/$]* | ?:[\\/]* ) ;;
826 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827 { (exit 1); exit 1; }; };;
828 esac
829 done
831 # There might be people who depend on the old broken behavior: `$host'
832 # used to hold the argument of --host etc.
833 # FIXME: To remove some day.
834 build=$build_alias
835 host=$host_alias
836 target=$target_alias
838 # FIXME: To remove some day.
839 if test "x$host_alias" != x; then
840 if test "x$build_alias" = x; then
841 cross_compiling=maybe
842 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843 If a cross compiler is detected then cross compile mode will be used." >&2
844 elif test "x$build_alias" != "x$host_alias"; then
845 cross_compiling=yes
849 ac_tool_prefix=
850 test -n "$host_alias" && ac_tool_prefix=$host_alias-
852 test "$silent" = yes && exec 6>/dev/null
855 # Find the source files, if location was not specified.
856 if test -z "$srcdir"; then
857 ac_srcdir_defaulted=yes
858 # Try the directory containing this script, then its parent.
859 ac_confdir=`(dirname "$0") 2>/dev/null ||
860 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861 X"$0" : 'X\(//\)[^/]' \| \
862 X"$0" : 'X\(//\)$' \| \
863 X"$0" : 'X\(/\)' \| \
864 . : '\(.\)' 2>/dev/null ||
865 echo X"$0" |
866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868 /^X\(\/\/\)$/{ s//\1/; q; }
869 /^X\(\/\).*/{ s//\1/; q; }
870 s/.*/./; q'`
871 srcdir=$ac_confdir
872 if test ! -r $srcdir/$ac_unique_file; then
873 srcdir=..
875 else
876 ac_srcdir_defaulted=no
878 if test ! -r $srcdir/$ac_unique_file; then
879 if test "$ac_srcdir_defaulted" = yes; then
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
882 else
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
887 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889 { (exit 1); exit 1; }; }
890 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891 ac_env_build_alias_set=${build_alias+set}
892 ac_env_build_alias_value=$build_alias
893 ac_cv_env_build_alias_set=${build_alias+set}
894 ac_cv_env_build_alias_value=$build_alias
895 ac_env_host_alias_set=${host_alias+set}
896 ac_env_host_alias_value=$host_alias
897 ac_cv_env_host_alias_set=${host_alias+set}
898 ac_cv_env_host_alias_value=$host_alias
899 ac_env_target_alias_set=${target_alias+set}
900 ac_env_target_alias_value=$target_alias
901 ac_cv_env_target_alias_set=${target_alias+set}
902 ac_cv_env_target_alias_value=$target_alias
903 ac_env_CC_set=${CC+set}
904 ac_env_CC_value=$CC
905 ac_cv_env_CC_set=${CC+set}
906 ac_cv_env_CC_value=$CC
907 ac_env_CFLAGS_set=${CFLAGS+set}
908 ac_env_CFLAGS_value=$CFLAGS
909 ac_cv_env_CFLAGS_set=${CFLAGS+set}
910 ac_cv_env_CFLAGS_value=$CFLAGS
911 ac_env_LDFLAGS_set=${LDFLAGS+set}
912 ac_env_LDFLAGS_value=$LDFLAGS
913 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
914 ac_cv_env_LDFLAGS_value=$LDFLAGS
915 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
916 ac_env_CPPFLAGS_value=$CPPFLAGS
917 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
918 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
919 ac_env_CPP_set=${CPP+set}
920 ac_env_CPP_value=$CPP
921 ac_cv_env_CPP_set=${CPP+set}
922 ac_cv_env_CPP_value=$CPP
925 # Report the --help message.
927 if test "$ac_init_help" = "long"; then
928 # Omit some internal or obsolete options to make the list less imposing.
929 # This message is too long to be a string in the A/UX 3.1 sh.
930 cat <<_ACEOF
931 \`configure' configures this package to adapt to many kinds of systems.
933 Usage: $0 [OPTION]... [VAR=VALUE]...
935 To assign environment variables (e.g., CC, CFLAGS...), specify them as
936 VAR=VALUE. See below for descriptions of some of the useful variables.
938 Defaults for the options are specified in brackets.
940 Configuration:
941 -h, --help display this help and exit
942 --help=short display options specific to this package
943 --help=recursive display the short help of all the included packages
944 -V, --version display version information and exit
945 -q, --quiet, --silent do not print \`checking...' messages
946 --cache-file=FILE cache test results in FILE [disabled]
947 -C, --config-cache alias for \`--cache-file=config.cache'
948 -n, --no-create do not create output files
949 --srcdir=DIR find the sources in DIR [configure dir or \`..']
951 _ACEOF
953 cat <<_ACEOF
954 Installation directories:
955 --prefix=PREFIX install architecture-independent files in PREFIX
956 [$ac_default_prefix]
957 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
958 [PREFIX]
960 By default, \`make install' will install all the files in
961 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
962 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
963 for instance \`--prefix=\$HOME'.
965 For better control, use the options below.
967 Fine tuning of the installation directories:
968 --bindir=DIR user executables [EPREFIX/bin]
969 --sbindir=DIR system admin executables [EPREFIX/sbin]
970 --libexecdir=DIR program executables [EPREFIX/libexec]
971 --datadir=DIR read-only architecture-independent data [PREFIX/share]
972 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
973 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
974 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
975 --libdir=DIR object code libraries [EPREFIX/lib]
976 --includedir=DIR C header files [PREFIX/include]
977 --oldincludedir=DIR C header files for non-gcc [/usr/include]
978 --infodir=DIR info documentation [PREFIX/info]
979 --mandir=DIR man documentation [PREFIX/man]
980 _ACEOF
982 cat <<\_ACEOF
984 Program names:
985 --program-prefix=PREFIX prepend PREFIX to installed program names
986 --program-suffix=SUFFIX append SUFFIX to installed program names
987 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
989 System types:
990 --build=BUILD configure for building on BUILD [guessed]
991 --host=HOST cross-compile to build programs to run on HOST [BUILD]
992 --target=TARGET configure for building compilers for TARGET [HOST]
993 _ACEOF
996 if test -n "$ac_init_help"; then
998 cat <<\_ACEOF
1000 Optional Features:
1001 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1002 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1003 --disable-dependency-tracking speeds up one-time build
1004 --enable-dependency-tracking do not reject slow dependency extractors
1005 --enable-shared[=PKGS]
1006 build shared libraries [default=yes]
1007 --enable-static[=PKGS]
1008 build static libraries [default=yes]
1009 --enable-fast-install[=PKGS]
1010 optimize for fast installation [default=yes]
1011 --disable-libtool-lock avoid locking (might break parallel builds)
1012 --enable-targets alternative target configurations
1013 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
1014 --enable-werror treat compile warnings as errors
1015 --enable-build-warnings enable build-time compiler warnings
1016 --disable-nls do not use Native Language Support
1017 --enable-maintainer-mode enable make rules and dependencies not useful
1018 (and sometimes confusing) to the casual installer
1019 --disable-rpath do not hardcode runtime library paths
1021 Optional Packages:
1022 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1023 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1024 --with-pic try to use only PIC/non-PIC objects [default=use
1025 both]
1026 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1027 --with-gnu-ld assume the C compiler uses GNU ld default=no
1028 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1029 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1031 Some influential environment variables:
1032 CC C compiler command
1033 CFLAGS C compiler flags
1034 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1035 nonstandard directory <lib dir>
1036 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1037 headers in a nonstandard directory <include dir>
1038 CPP C preprocessor
1040 Use these variables to override the choices made by `configure' or to help
1041 it to find libraries and programs with nonstandard names/locations.
1043 _ACEOF
1046 if test "$ac_init_help" = "recursive"; then
1047 # If there are subdirs, report their specific --help.
1048 ac_popdir=`pwd`
1049 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1050 test -d $ac_dir || continue
1051 ac_builddir=.
1053 if test "$ac_dir" != .; then
1054 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1055 # A "../" for each directory in $ac_dir_suffix.
1056 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1057 else
1058 ac_dir_suffix= ac_top_builddir=
1061 case $srcdir in
1062 .) # No --srcdir option. We are building in place.
1063 ac_srcdir=.
1064 if test -z "$ac_top_builddir"; then
1065 ac_top_srcdir=.
1066 else
1067 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1068 fi ;;
1069 [\\/]* | ?:[\\/]* ) # Absolute path.
1070 ac_srcdir=$srcdir$ac_dir_suffix;
1071 ac_top_srcdir=$srcdir ;;
1072 *) # Relative path.
1073 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1074 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1075 esac
1077 # Do not use `cd foo && pwd` to compute absolute paths, because
1078 # the directories may not exist.
1079 case `pwd` in
1080 .) ac_abs_builddir="$ac_dir";;
1082 case "$ac_dir" in
1083 .) ac_abs_builddir=`pwd`;;
1084 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1085 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1086 esac;;
1087 esac
1088 case $ac_abs_builddir in
1089 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1091 case ${ac_top_builddir}. in
1092 .) ac_abs_top_builddir=$ac_abs_builddir;;
1093 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1094 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1095 esac;;
1096 esac
1097 case $ac_abs_builddir in
1098 .) ac_abs_srcdir=$ac_srcdir;;
1100 case $ac_srcdir in
1101 .) ac_abs_srcdir=$ac_abs_builddir;;
1102 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1103 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1104 esac;;
1105 esac
1106 case $ac_abs_builddir in
1107 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1109 case $ac_top_srcdir in
1110 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1111 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1112 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1113 esac;;
1114 esac
1116 cd $ac_dir
1117 # Check for guested configure; otherwise get Cygnus style configure.
1118 if test -f $ac_srcdir/configure.gnu; then
1119 echo
1120 $SHELL $ac_srcdir/configure.gnu --help=recursive
1121 elif test -f $ac_srcdir/configure; then
1122 echo
1123 $SHELL $ac_srcdir/configure --help=recursive
1124 elif test -f $ac_srcdir/configure.ac ||
1125 test -f $ac_srcdir/configure.in; then
1126 echo
1127 $ac_configure --help
1128 else
1129 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1131 cd $ac_popdir
1132 done
1135 test -n "$ac_init_help" && exit 0
1136 if $ac_init_version; then
1137 cat <<\_ACEOF
1139 Copyright (C) 2003 Free Software Foundation, Inc.
1140 This configure script is free software; the Free Software Foundation
1141 gives unlimited permission to copy, distribute and modify it.
1142 _ACEOF
1143 exit 0
1145 exec 5>config.log
1146 cat >&5 <<_ACEOF
1147 This file contains any messages produced by compilers while
1148 running configure, to aid debugging if configure makes a mistake.
1150 It was created by $as_me, which was
1151 generated by GNU Autoconf 2.59. Invocation command line was
1153 $ $0 $@
1155 _ACEOF
1157 cat <<_ASUNAME
1158 ## --------- ##
1159 ## Platform. ##
1160 ## --------- ##
1162 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1163 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1164 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1165 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1166 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1168 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1169 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1171 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1172 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1173 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1174 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1175 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1176 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1177 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1179 _ASUNAME
1181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1182 for as_dir in $PATH
1184 IFS=$as_save_IFS
1185 test -z "$as_dir" && as_dir=.
1186 echo "PATH: $as_dir"
1187 done
1189 } >&5
1191 cat >&5 <<_ACEOF
1194 ## ----------- ##
1195 ## Core tests. ##
1196 ## ----------- ##
1198 _ACEOF
1201 # Keep a trace of the command line.
1202 # Strip out --no-create and --no-recursion so they do not pile up.
1203 # Strip out --silent because we don't want to record it for future runs.
1204 # Also quote any args containing shell meta-characters.
1205 # Make two passes to allow for proper duplicate-argument suppression.
1206 ac_configure_args=
1207 ac_configure_args0=
1208 ac_configure_args1=
1209 ac_sep=
1210 ac_must_keep_next=false
1211 for ac_pass in 1 2
1213 for ac_arg
1215 case $ac_arg in
1216 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1217 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218 | -silent | --silent | --silen | --sile | --sil)
1219 continue ;;
1220 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1221 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1222 esac
1223 case $ac_pass in
1224 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1226 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1227 if test $ac_must_keep_next = true; then
1228 ac_must_keep_next=false # Got value, back to normal.
1229 else
1230 case $ac_arg in
1231 *=* | --config-cache | -C | -disable-* | --disable-* \
1232 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1233 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1234 | -with-* | --with-* | -without-* | --without-* | --x)
1235 case "$ac_configure_args0 " in
1236 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1237 esac
1239 -* ) ac_must_keep_next=true ;;
1240 esac
1242 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1243 # Get rid of the leading space.
1244 ac_sep=" "
1246 esac
1247 done
1248 done
1249 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1250 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1252 # When interrupted or exit'd, cleanup temporary files, and complete
1253 # config.log. We remove comments because anyway the quotes in there
1254 # would cause problems or look ugly.
1255 # WARNING: Be sure not to use single quotes in there, as some shells,
1256 # such as our DU 5.0 friend, will then `close' the trap.
1257 trap 'exit_status=$?
1258 # Save into config.log some information that might help in debugging.
1260 echo
1262 cat <<\_ASBOX
1263 ## ---------------- ##
1264 ## Cache variables. ##
1265 ## ---------------- ##
1266 _ASBOX
1267 echo
1268 # The following way of writing the cache mishandles newlines in values,
1270 (set) 2>&1 |
1271 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1272 *ac_space=\ *)
1273 sed -n \
1274 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1275 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1278 sed -n \
1279 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1281 esac;
1283 echo
1285 cat <<\_ASBOX
1286 ## ----------------- ##
1287 ## Output variables. ##
1288 ## ----------------- ##
1289 _ASBOX
1290 echo
1291 for ac_var in $ac_subst_vars
1293 eval ac_val=$`echo $ac_var`
1294 echo "$ac_var='"'"'$ac_val'"'"'"
1295 done | sort
1296 echo
1298 if test -n "$ac_subst_files"; then
1299 cat <<\_ASBOX
1300 ## ------------- ##
1301 ## Output files. ##
1302 ## ------------- ##
1303 _ASBOX
1304 echo
1305 for ac_var in $ac_subst_files
1307 eval ac_val=$`echo $ac_var`
1308 echo "$ac_var='"'"'$ac_val'"'"'"
1309 done | sort
1310 echo
1313 if test -s confdefs.h; then
1314 cat <<\_ASBOX
1315 ## ----------- ##
1316 ## confdefs.h. ##
1317 ## ----------- ##
1318 _ASBOX
1319 echo
1320 sed "/^$/d" confdefs.h | sort
1321 echo
1323 test "$ac_signal" != 0 &&
1324 echo "$as_me: caught signal $ac_signal"
1325 echo "$as_me: exit $exit_status"
1326 } >&5
1327 rm -f core *.core &&
1328 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1329 exit $exit_status
1331 for ac_signal in 1 2 13 15; do
1332 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1333 done
1334 ac_signal=0
1336 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1337 rm -rf conftest* confdefs.h
1338 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1339 echo >confdefs.h
1341 # Predefined preprocessor variables.
1343 cat >>confdefs.h <<_ACEOF
1344 #define PACKAGE_NAME "$PACKAGE_NAME"
1345 _ACEOF
1348 cat >>confdefs.h <<_ACEOF
1349 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1350 _ACEOF
1353 cat >>confdefs.h <<_ACEOF
1354 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1355 _ACEOF
1358 cat >>confdefs.h <<_ACEOF
1359 #define PACKAGE_STRING "$PACKAGE_STRING"
1360 _ACEOF
1363 cat >>confdefs.h <<_ACEOF
1364 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1365 _ACEOF
1368 # Let the site file select an alternate cache file if it wants to.
1369 # Prefer explicitly selected file to automatically selected ones.
1370 if test -z "$CONFIG_SITE"; then
1371 if test "x$prefix" != xNONE; then
1372 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1373 else
1374 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1377 for ac_site_file in $CONFIG_SITE; do
1378 if test -r "$ac_site_file"; then
1379 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1380 echo "$as_me: loading site script $ac_site_file" >&6;}
1381 sed 's/^/| /' "$ac_site_file" >&5
1382 . "$ac_site_file"
1384 done
1386 if test -r "$cache_file"; then
1387 # Some versions of bash will fail to source /dev/null (special
1388 # files actually), so we avoid doing that.
1389 if test -f "$cache_file"; then
1390 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1391 echo "$as_me: loading cache $cache_file" >&6;}
1392 case $cache_file in
1393 [\\/]* | ?:[\\/]* ) . $cache_file;;
1394 *) . ./$cache_file;;
1395 esac
1397 else
1398 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1399 echo "$as_me: creating cache $cache_file" >&6;}
1400 >$cache_file
1403 # Check that the precious variables saved in the cache have kept the same
1404 # value.
1405 ac_cache_corrupted=false
1406 for ac_var in `(set) 2>&1 |
1407 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1408 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1409 eval ac_new_set=\$ac_env_${ac_var}_set
1410 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1411 eval ac_new_val="\$ac_env_${ac_var}_value"
1412 case $ac_old_set,$ac_new_set in
1413 set,)
1414 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1415 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1416 ac_cache_corrupted=: ;;
1417 ,set)
1418 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1419 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1420 ac_cache_corrupted=: ;;
1421 ,);;
1423 if test "x$ac_old_val" != "x$ac_new_val"; then
1424 # differences in whitespace do not lead to failure.
1425 ac_old_val_w=`echo x $ac_old_val`
1426 ac_new_val_w=`echo x $ac_new_val`
1427 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1428 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1429 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1430 ac_cache_corrupted=:
1431 else
1432 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1433 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1434 eval $ac_var=\$ac_old_val
1436 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1437 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1438 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1439 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1440 fi;;
1441 esac
1442 # Pass precious variables to config.status.
1443 if test "$ac_new_set" = set; then
1444 case $ac_new_val in
1445 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1446 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1447 *) ac_arg=$ac_var=$ac_new_val ;;
1448 esac
1449 case " $ac_configure_args " in
1450 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1451 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1452 esac
1454 done
1455 if $ac_cache_corrupted; then
1456 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1457 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1458 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1459 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1460 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1461 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1462 { (exit 1); exit 1; }; }
1465 ac_ext=c
1466 ac_cpp='$CPP $CPPFLAGS'
1467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1493 ac_aux_dir=
1494 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1495 if test -f $ac_dir/install-sh; then
1496 ac_aux_dir=$ac_dir
1497 ac_install_sh="$ac_aux_dir/install-sh -c"
1498 break
1499 elif test -f $ac_dir/install.sh; then
1500 ac_aux_dir=$ac_dir
1501 ac_install_sh="$ac_aux_dir/install.sh -c"
1502 break
1503 elif test -f $ac_dir/shtool; then
1504 ac_aux_dir=$ac_dir
1505 ac_install_sh="$ac_aux_dir/shtool install -c"
1506 break
1508 done
1509 if test -z "$ac_aux_dir"; then
1510 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1511 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1512 { (exit 1); exit 1; }; }
1514 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1515 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1516 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1518 # Make sure we can run config.sub.
1519 $ac_config_sub sun4 >/dev/null 2>&1 ||
1520 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1521 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1522 { (exit 1); exit 1; }; }
1524 echo "$as_me:$LINENO: checking build system type" >&5
1525 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1526 if test "${ac_cv_build+set}" = set; then
1527 echo $ECHO_N "(cached) $ECHO_C" >&6
1528 else
1529 ac_cv_build_alias=$build_alias
1530 test -z "$ac_cv_build_alias" &&
1531 ac_cv_build_alias=`$ac_config_guess`
1532 test -z "$ac_cv_build_alias" &&
1533 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1534 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1535 { (exit 1); exit 1; }; }
1536 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1537 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1538 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1539 { (exit 1); exit 1; }; }
1542 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1543 echo "${ECHO_T}$ac_cv_build" >&6
1544 build=$ac_cv_build
1545 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1546 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1547 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1550 echo "$as_me:$LINENO: checking host system type" >&5
1551 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1552 if test "${ac_cv_host+set}" = set; then
1553 echo $ECHO_N "(cached) $ECHO_C" >&6
1554 else
1555 ac_cv_host_alias=$host_alias
1556 test -z "$ac_cv_host_alias" &&
1557 ac_cv_host_alias=$ac_cv_build_alias
1558 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1559 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1560 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1561 { (exit 1); exit 1; }; }
1564 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1565 echo "${ECHO_T}$ac_cv_host" >&6
1566 host=$ac_cv_host
1567 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1568 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1569 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1572 echo "$as_me:$LINENO: checking target system type" >&5
1573 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1574 if test "${ac_cv_target+set}" = set; then
1575 echo $ECHO_N "(cached) $ECHO_C" >&6
1576 else
1577 ac_cv_target_alias=$target_alias
1578 test "x$ac_cv_target_alias" = "x" &&
1579 ac_cv_target_alias=$ac_cv_host_alias
1580 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1581 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1582 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1583 { (exit 1); exit 1; }; }
1586 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1587 echo "${ECHO_T}$ac_cv_target" >&6
1588 target=$ac_cv_target
1589 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1590 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1591 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1594 # The aliases save the names the user supplied, while $host etc.
1595 # will get canonicalized.
1596 test -n "$target_alias" &&
1597 test "$program_prefix$program_suffix$program_transform_name" = \
1598 NONENONEs,x,x, &&
1599 program_prefix=${target_alias}-
1600 ac_ext=c
1601 ac_cpp='$CPP $CPPFLAGS'
1602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1605 if test -n "$ac_tool_prefix"; then
1606 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1607 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1608 echo "$as_me:$LINENO: checking for $ac_word" >&5
1609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1610 if test "${ac_cv_prog_CC+set}" = set; then
1611 echo $ECHO_N "(cached) $ECHO_C" >&6
1612 else
1613 if test -n "$CC"; then
1614 ac_cv_prog_CC="$CC" # Let the user override the test.
1615 else
1616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1617 for as_dir in $PATH
1619 IFS=$as_save_IFS
1620 test -z "$as_dir" && as_dir=.
1621 for ac_exec_ext in '' $ac_executable_extensions; do
1622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1623 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1625 break 2
1627 done
1628 done
1632 CC=$ac_cv_prog_CC
1633 if test -n "$CC"; then
1634 echo "$as_me:$LINENO: result: $CC" >&5
1635 echo "${ECHO_T}$CC" >&6
1636 else
1637 echo "$as_me:$LINENO: result: no" >&5
1638 echo "${ECHO_T}no" >&6
1642 if test -z "$ac_cv_prog_CC"; then
1643 ac_ct_CC=$CC
1644 # Extract the first word of "gcc", so it can be a program name with args.
1645 set dummy gcc; ac_word=$2
1646 echo "$as_me:$LINENO: checking for $ac_word" >&5
1647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1648 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1649 echo $ECHO_N "(cached) $ECHO_C" >&6
1650 else
1651 if test -n "$ac_ct_CC"; then
1652 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1653 else
1654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1655 for as_dir in $PATH
1657 IFS=$as_save_IFS
1658 test -z "$as_dir" && as_dir=.
1659 for ac_exec_ext in '' $ac_executable_extensions; do
1660 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1661 ac_cv_prog_ac_ct_CC="gcc"
1662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1663 break 2
1665 done
1666 done
1670 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1671 if test -n "$ac_ct_CC"; then
1672 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1673 echo "${ECHO_T}$ac_ct_CC" >&6
1674 else
1675 echo "$as_me:$LINENO: result: no" >&5
1676 echo "${ECHO_T}no" >&6
1679 CC=$ac_ct_CC
1680 else
1681 CC="$ac_cv_prog_CC"
1684 if test -z "$CC"; then
1685 if test -n "$ac_tool_prefix"; then
1686 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1687 set dummy ${ac_tool_prefix}cc; ac_word=$2
1688 echo "$as_me:$LINENO: checking for $ac_word" >&5
1689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1690 if test "${ac_cv_prog_CC+set}" = set; then
1691 echo $ECHO_N "(cached) $ECHO_C" >&6
1692 else
1693 if test -n "$CC"; then
1694 ac_cv_prog_CC="$CC" # Let the user override the test.
1695 else
1696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1697 for as_dir in $PATH
1699 IFS=$as_save_IFS
1700 test -z "$as_dir" && as_dir=.
1701 for ac_exec_ext in '' $ac_executable_extensions; do
1702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1703 ac_cv_prog_CC="${ac_tool_prefix}cc"
1704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1705 break 2
1707 done
1708 done
1712 CC=$ac_cv_prog_CC
1713 if test -n "$CC"; then
1714 echo "$as_me:$LINENO: result: $CC" >&5
1715 echo "${ECHO_T}$CC" >&6
1716 else
1717 echo "$as_me:$LINENO: result: no" >&5
1718 echo "${ECHO_T}no" >&6
1722 if test -z "$ac_cv_prog_CC"; then
1723 ac_ct_CC=$CC
1724 # Extract the first word of "cc", so it can be a program name with args.
1725 set dummy cc; ac_word=$2
1726 echo "$as_me:$LINENO: checking for $ac_word" >&5
1727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1728 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1729 echo $ECHO_N "(cached) $ECHO_C" >&6
1730 else
1731 if test -n "$ac_ct_CC"; then
1732 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1733 else
1734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1735 for as_dir in $PATH
1737 IFS=$as_save_IFS
1738 test -z "$as_dir" && as_dir=.
1739 for ac_exec_ext in '' $ac_executable_extensions; do
1740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1741 ac_cv_prog_ac_ct_CC="cc"
1742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1743 break 2
1745 done
1746 done
1750 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1751 if test -n "$ac_ct_CC"; then
1752 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1753 echo "${ECHO_T}$ac_ct_CC" >&6
1754 else
1755 echo "$as_me:$LINENO: result: no" >&5
1756 echo "${ECHO_T}no" >&6
1759 CC=$ac_ct_CC
1760 else
1761 CC="$ac_cv_prog_CC"
1765 if test -z "$CC"; then
1766 # Extract the first word of "cc", so it can be a program name with args.
1767 set dummy cc; ac_word=$2
1768 echo "$as_me:$LINENO: checking for $ac_word" >&5
1769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1770 if test "${ac_cv_prog_CC+set}" = set; then
1771 echo $ECHO_N "(cached) $ECHO_C" >&6
1772 else
1773 if test -n "$CC"; then
1774 ac_cv_prog_CC="$CC" # Let the user override the test.
1775 else
1776 ac_prog_rejected=no
1777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1778 for as_dir in $PATH
1780 IFS=$as_save_IFS
1781 test -z "$as_dir" && as_dir=.
1782 for ac_exec_ext in '' $ac_executable_extensions; do
1783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1784 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1785 ac_prog_rejected=yes
1786 continue
1788 ac_cv_prog_CC="cc"
1789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1790 break 2
1792 done
1793 done
1795 if test $ac_prog_rejected = yes; then
1796 # We found a bogon in the path, so make sure we never use it.
1797 set dummy $ac_cv_prog_CC
1798 shift
1799 if test $# != 0; then
1800 # We chose a different compiler from the bogus one.
1801 # However, it has the same basename, so the bogon will be chosen
1802 # first if we set CC to just the basename; use the full file name.
1803 shift
1804 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1809 CC=$ac_cv_prog_CC
1810 if test -n "$CC"; then
1811 echo "$as_me:$LINENO: result: $CC" >&5
1812 echo "${ECHO_T}$CC" >&6
1813 else
1814 echo "$as_me:$LINENO: result: no" >&5
1815 echo "${ECHO_T}no" >&6
1819 if test -z "$CC"; then
1820 if test -n "$ac_tool_prefix"; then
1821 for ac_prog in cl
1823 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1824 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1825 echo "$as_me:$LINENO: checking for $ac_word" >&5
1826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1827 if test "${ac_cv_prog_CC+set}" = set; then
1828 echo $ECHO_N "(cached) $ECHO_C" >&6
1829 else
1830 if test -n "$CC"; then
1831 ac_cv_prog_CC="$CC" # Let the user override the test.
1832 else
1833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1834 for as_dir in $PATH
1836 IFS=$as_save_IFS
1837 test -z "$as_dir" && as_dir=.
1838 for ac_exec_ext in '' $ac_executable_extensions; do
1839 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1840 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1842 break 2
1844 done
1845 done
1849 CC=$ac_cv_prog_CC
1850 if test -n "$CC"; then
1851 echo "$as_me:$LINENO: result: $CC" >&5
1852 echo "${ECHO_T}$CC" >&6
1853 else
1854 echo "$as_me:$LINENO: result: no" >&5
1855 echo "${ECHO_T}no" >&6
1858 test -n "$CC" && break
1859 done
1861 if test -z "$CC"; then
1862 ac_ct_CC=$CC
1863 for ac_prog in cl
1865 # Extract the first word of "$ac_prog", so it can be a program name with args.
1866 set dummy $ac_prog; ac_word=$2
1867 echo "$as_me:$LINENO: checking for $ac_word" >&5
1868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1869 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1870 echo $ECHO_N "(cached) $ECHO_C" >&6
1871 else
1872 if test -n "$ac_ct_CC"; then
1873 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1874 else
1875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1876 for as_dir in $PATH
1878 IFS=$as_save_IFS
1879 test -z "$as_dir" && as_dir=.
1880 for ac_exec_ext in '' $ac_executable_extensions; do
1881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1882 ac_cv_prog_ac_ct_CC="$ac_prog"
1883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1884 break 2
1886 done
1887 done
1891 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1892 if test -n "$ac_ct_CC"; then
1893 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1894 echo "${ECHO_T}$ac_ct_CC" >&6
1895 else
1896 echo "$as_me:$LINENO: result: no" >&5
1897 echo "${ECHO_T}no" >&6
1900 test -n "$ac_ct_CC" && break
1901 done
1903 CC=$ac_ct_CC
1909 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1910 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1911 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1912 See \`config.log' for more details." >&5
1913 echo "$as_me: error: no acceptable C compiler found in \$PATH
1914 See \`config.log' for more details." >&2;}
1915 { (exit 1); exit 1; }; }; }
1917 # Provide some information about the compiler.
1918 echo "$as_me:$LINENO:" \
1919 "checking for C compiler version" >&5
1920 ac_compiler=`set X $ac_compile; echo $2`
1921 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1922 (eval $ac_compiler --version </dev/null >&5) 2>&5
1923 ac_status=$?
1924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1925 (exit $ac_status); }
1926 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1927 (eval $ac_compiler -v </dev/null >&5) 2>&5
1928 ac_status=$?
1929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1930 (exit $ac_status); }
1931 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1932 (eval $ac_compiler -V </dev/null >&5) 2>&5
1933 ac_status=$?
1934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1935 (exit $ac_status); }
1937 cat >conftest.$ac_ext <<_ACEOF
1938 /* confdefs.h. */
1939 _ACEOF
1940 cat confdefs.h >>conftest.$ac_ext
1941 cat >>conftest.$ac_ext <<_ACEOF
1942 /* end confdefs.h. */
1945 main ()
1949 return 0;
1951 _ACEOF
1952 ac_clean_files_save=$ac_clean_files
1953 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1954 # Try to create an executable without -o first, disregard a.out.
1955 # It will help us diagnose broken compilers, and finding out an intuition
1956 # of exeext.
1957 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1958 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1959 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1960 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1961 (eval $ac_link_default) 2>&5
1962 ac_status=$?
1963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1964 (exit $ac_status); }; then
1965 # Find the output, starting from the most likely. This scheme is
1966 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1967 # resort.
1969 # Be careful to initialize this variable, since it used to be cached.
1970 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1971 ac_cv_exeext=
1972 # b.out is created by i960 compilers.
1973 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1975 test -f "$ac_file" || continue
1976 case $ac_file in
1977 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1979 conftest.$ac_ext )
1980 # This is the source file.
1982 [ab].out )
1983 # We found the default executable, but exeext='' is most
1984 # certainly right.
1985 break;;
1986 *.* )
1987 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1988 # FIXME: I believe we export ac_cv_exeext for Libtool,
1989 # but it would be cool to find out if it's true. Does anybody
1990 # maintain Libtool? --akim.
1991 export ac_cv_exeext
1992 break;;
1994 break;;
1995 esac
1996 done
1997 else
1998 echo "$as_me: failed program was:" >&5
1999 sed 's/^/| /' conftest.$ac_ext >&5
2001 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2002 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2003 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2004 See \`config.log' for more details." >&5
2005 echo "$as_me: error: C compiler cannot create executables
2006 See \`config.log' for more details." >&2;}
2007 { (exit 77); exit 77; }; }; }
2010 ac_exeext=$ac_cv_exeext
2011 echo "$as_me:$LINENO: result: $ac_file" >&5
2012 echo "${ECHO_T}$ac_file" >&6
2014 # Check the compiler produces executables we can run. If not, either
2015 # the compiler is broken, or we cross compile.
2016 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2017 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2018 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2019 # If not cross compiling, check that we can run a simple program.
2020 if test "$cross_compiling" != yes; then
2021 if { ac_try='./$ac_file'
2022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2023 (eval $ac_try) 2>&5
2024 ac_status=$?
2025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2026 (exit $ac_status); }; }; then
2027 cross_compiling=no
2028 else
2029 if test "$cross_compiling" = maybe; then
2030 cross_compiling=yes
2031 else
2032 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2033 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2034 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2035 If you meant to cross compile, use \`--host'.
2036 See \`config.log' for more details." >&5
2037 echo "$as_me: error: cannot run C compiled programs.
2038 If you meant to cross compile, use \`--host'.
2039 See \`config.log' for more details." >&2;}
2040 { (exit 1); exit 1; }; }; }
2044 echo "$as_me:$LINENO: result: yes" >&5
2045 echo "${ECHO_T}yes" >&6
2047 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2048 ac_clean_files=$ac_clean_files_save
2049 # Check the compiler produces executables we can run. If not, either
2050 # the compiler is broken, or we cross compile.
2051 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2052 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2053 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2054 echo "${ECHO_T}$cross_compiling" >&6
2056 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2057 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2059 (eval $ac_link) 2>&5
2060 ac_status=$?
2061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062 (exit $ac_status); }; then
2063 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2064 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2065 # work properly (i.e., refer to `conftest.exe'), while it won't with
2066 # `rm'.
2067 for ac_file in conftest.exe conftest conftest.*; do
2068 test -f "$ac_file" || continue
2069 case $ac_file in
2070 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2071 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2072 export ac_cv_exeext
2073 break;;
2074 * ) break;;
2075 esac
2076 done
2077 else
2078 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2079 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2080 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2081 See \`config.log' for more details." >&5
2082 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2083 See \`config.log' for more details." >&2;}
2084 { (exit 1); exit 1; }; }; }
2087 rm -f conftest$ac_cv_exeext
2088 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2089 echo "${ECHO_T}$ac_cv_exeext" >&6
2091 rm -f conftest.$ac_ext
2092 EXEEXT=$ac_cv_exeext
2093 ac_exeext=$EXEEXT
2094 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2095 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2096 if test "${ac_cv_objext+set}" = set; then
2097 echo $ECHO_N "(cached) $ECHO_C" >&6
2098 else
2099 cat >conftest.$ac_ext <<_ACEOF
2100 /* confdefs.h. */
2101 _ACEOF
2102 cat confdefs.h >>conftest.$ac_ext
2103 cat >>conftest.$ac_ext <<_ACEOF
2104 /* end confdefs.h. */
2107 main ()
2111 return 0;
2113 _ACEOF
2114 rm -f conftest.o conftest.obj
2115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2116 (eval $ac_compile) 2>&5
2117 ac_status=$?
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); }; then
2120 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2121 case $ac_file in
2122 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2123 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2124 break;;
2125 esac
2126 done
2127 else
2128 echo "$as_me: failed program was:" >&5
2129 sed 's/^/| /' conftest.$ac_ext >&5
2131 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2132 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2133 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2134 See \`config.log' for more details." >&5
2135 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2136 See \`config.log' for more details." >&2;}
2137 { (exit 1); exit 1; }; }; }
2140 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2142 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2143 echo "${ECHO_T}$ac_cv_objext" >&6
2144 OBJEXT=$ac_cv_objext
2145 ac_objext=$OBJEXT
2146 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2147 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2148 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2149 echo $ECHO_N "(cached) $ECHO_C" >&6
2150 else
2151 cat >conftest.$ac_ext <<_ACEOF
2152 /* confdefs.h. */
2153 _ACEOF
2154 cat confdefs.h >>conftest.$ac_ext
2155 cat >>conftest.$ac_ext <<_ACEOF
2156 /* end confdefs.h. */
2159 main ()
2161 #ifndef __GNUC__
2162 choke me
2163 #endif
2166 return 0;
2168 _ACEOF
2169 rm -f conftest.$ac_objext
2170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2171 (eval $ac_compile) 2>conftest.er1
2172 ac_status=$?
2173 grep -v '^ *+' conftest.er1 >conftest.err
2174 rm -f conftest.er1
2175 cat conftest.err >&5
2176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177 (exit $ac_status); } &&
2178 { ac_try='test -z "$ac_c_werror_flag"
2179 || test ! -s conftest.err'
2180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2181 (eval $ac_try) 2>&5
2182 ac_status=$?
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); }; } &&
2185 { ac_try='test -s conftest.$ac_objext'
2186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2187 (eval $ac_try) 2>&5
2188 ac_status=$?
2189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190 (exit $ac_status); }; }; then
2191 ac_compiler_gnu=yes
2192 else
2193 echo "$as_me: failed program was:" >&5
2194 sed 's/^/| /' conftest.$ac_ext >&5
2196 ac_compiler_gnu=no
2198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2199 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2202 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2203 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2204 GCC=`test $ac_compiler_gnu = yes && echo yes`
2205 ac_test_CFLAGS=${CFLAGS+set}
2206 ac_save_CFLAGS=$CFLAGS
2207 CFLAGS="-g"
2208 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2209 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2210 if test "${ac_cv_prog_cc_g+set}" = set; then
2211 echo $ECHO_N "(cached) $ECHO_C" >&6
2212 else
2213 cat >conftest.$ac_ext <<_ACEOF
2214 /* confdefs.h. */
2215 _ACEOF
2216 cat confdefs.h >>conftest.$ac_ext
2217 cat >>conftest.$ac_ext <<_ACEOF
2218 /* end confdefs.h. */
2221 main ()
2225 return 0;
2227 _ACEOF
2228 rm -f conftest.$ac_objext
2229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2230 (eval $ac_compile) 2>conftest.er1
2231 ac_status=$?
2232 grep -v '^ *+' conftest.er1 >conftest.err
2233 rm -f conftest.er1
2234 cat conftest.err >&5
2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236 (exit $ac_status); } &&
2237 { ac_try='test -z "$ac_c_werror_flag"
2238 || test ! -s conftest.err'
2239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2240 (eval $ac_try) 2>&5
2241 ac_status=$?
2242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243 (exit $ac_status); }; } &&
2244 { ac_try='test -s conftest.$ac_objext'
2245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2246 (eval $ac_try) 2>&5
2247 ac_status=$?
2248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249 (exit $ac_status); }; }; then
2250 ac_cv_prog_cc_g=yes
2251 else
2252 echo "$as_me: failed program was:" >&5
2253 sed 's/^/| /' conftest.$ac_ext >&5
2255 ac_cv_prog_cc_g=no
2257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2259 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2260 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2261 if test "$ac_test_CFLAGS" = set; then
2262 CFLAGS=$ac_save_CFLAGS
2263 elif test $ac_cv_prog_cc_g = yes; then
2264 if test "$GCC" = yes; then
2265 CFLAGS="-g -O2"
2266 else
2267 CFLAGS="-g"
2269 else
2270 if test "$GCC" = yes; then
2271 CFLAGS="-O2"
2272 else
2273 CFLAGS=
2276 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2277 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2278 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2279 echo $ECHO_N "(cached) $ECHO_C" >&6
2280 else
2281 ac_cv_prog_cc_stdc=no
2282 ac_save_CC=$CC
2283 cat >conftest.$ac_ext <<_ACEOF
2284 /* confdefs.h. */
2285 _ACEOF
2286 cat confdefs.h >>conftest.$ac_ext
2287 cat >>conftest.$ac_ext <<_ACEOF
2288 /* end confdefs.h. */
2289 #include <stdarg.h>
2290 #include <stdio.h>
2291 #include <sys/types.h>
2292 #include <sys/stat.h>
2293 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2294 struct buf { int x; };
2295 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2296 static char *e (p, i)
2297 char **p;
2298 int i;
2300 return p[i];
2302 static char *f (char * (*g) (char **, int), char **p, ...)
2304 char *s;
2305 va_list v;
2306 va_start (v,p);
2307 s = g (p, va_arg (v,int));
2308 va_end (v);
2309 return s;
2312 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2313 function prototypes and stuff, but not '\xHH' hex character constants.
2314 These don't provoke an error unfortunately, instead are silently treated
2315 as 'x'. The following induces an error, until -std1 is added to get
2316 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2317 array size at least. It's necessary to write '\x00'==0 to get something
2318 that's true only with -std1. */
2319 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2321 int test (int i, double x);
2322 struct s1 {int (*f) (int a);};
2323 struct s2 {int (*f) (double a);};
2324 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2325 int argc;
2326 char **argv;
2328 main ()
2330 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2332 return 0;
2334 _ACEOF
2335 # Don't try gcc -ansi; that turns off useful extensions and
2336 # breaks some systems' header files.
2337 # AIX -qlanglvl=ansi
2338 # Ultrix and OSF/1 -std1
2339 # HP-UX 10.20 and later -Ae
2340 # HP-UX older versions -Aa -D_HPUX_SOURCE
2341 # SVR4 -Xc -D__EXTENSIONS__
2342 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2344 CC="$ac_save_CC $ac_arg"
2345 rm -f conftest.$ac_objext
2346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2347 (eval $ac_compile) 2>conftest.er1
2348 ac_status=$?
2349 grep -v '^ *+' conftest.er1 >conftest.err
2350 rm -f conftest.er1
2351 cat conftest.err >&5
2352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353 (exit $ac_status); } &&
2354 { ac_try='test -z "$ac_c_werror_flag"
2355 || test ! -s conftest.err'
2356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2357 (eval $ac_try) 2>&5
2358 ac_status=$?
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); }; } &&
2361 { ac_try='test -s conftest.$ac_objext'
2362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2363 (eval $ac_try) 2>&5
2364 ac_status=$?
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); }; }; then
2367 ac_cv_prog_cc_stdc=$ac_arg
2368 break
2369 else
2370 echo "$as_me: failed program was:" >&5
2371 sed 's/^/| /' conftest.$ac_ext >&5
2374 rm -f conftest.err conftest.$ac_objext
2375 done
2376 rm -f conftest.$ac_ext conftest.$ac_objext
2377 CC=$ac_save_CC
2381 case "x$ac_cv_prog_cc_stdc" in
2382 x|xno)
2383 echo "$as_me:$LINENO: result: none needed" >&5
2384 echo "${ECHO_T}none needed" >&6 ;;
2386 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2387 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2388 CC="$CC $ac_cv_prog_cc_stdc" ;;
2389 esac
2391 # Some people use a C++ compiler to compile C. Since we use `exit',
2392 # in C++ we need to declare it. In case someone uses the same compiler
2393 # for both compiling C and C++ we need to have the C++ compiler decide
2394 # the declaration of exit, since it's the most demanding environment.
2395 cat >conftest.$ac_ext <<_ACEOF
2396 #ifndef __cplusplus
2397 choke me
2398 #endif
2399 _ACEOF
2400 rm -f conftest.$ac_objext
2401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2402 (eval $ac_compile) 2>conftest.er1
2403 ac_status=$?
2404 grep -v '^ *+' conftest.er1 >conftest.err
2405 rm -f conftest.er1
2406 cat conftest.err >&5
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); } &&
2409 { ac_try='test -z "$ac_c_werror_flag"
2410 || test ! -s conftest.err'
2411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2412 (eval $ac_try) 2>&5
2413 ac_status=$?
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; } &&
2416 { ac_try='test -s conftest.$ac_objext'
2417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2418 (eval $ac_try) 2>&5
2419 ac_status=$?
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); }; }; then
2422 for ac_declaration in \
2423 '' \
2424 'extern "C" void std::exit (int) throw (); using std::exit;' \
2425 'extern "C" void std::exit (int); using std::exit;' \
2426 'extern "C" void exit (int) throw ();' \
2427 'extern "C" void exit (int);' \
2428 'void exit (int);'
2430 cat >conftest.$ac_ext <<_ACEOF
2431 /* confdefs.h. */
2432 _ACEOF
2433 cat confdefs.h >>conftest.$ac_ext
2434 cat >>conftest.$ac_ext <<_ACEOF
2435 /* end confdefs.h. */
2436 $ac_declaration
2437 #include <stdlib.h>
2439 main ()
2441 exit (42);
2443 return 0;
2445 _ACEOF
2446 rm -f conftest.$ac_objext
2447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2448 (eval $ac_compile) 2>conftest.er1
2449 ac_status=$?
2450 grep -v '^ *+' conftest.er1 >conftest.err
2451 rm -f conftest.er1
2452 cat conftest.err >&5
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); } &&
2455 { ac_try='test -z "$ac_c_werror_flag"
2456 || test ! -s conftest.err'
2457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2458 (eval $ac_try) 2>&5
2459 ac_status=$?
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); }; } &&
2462 { ac_try='test -s conftest.$ac_objext'
2463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2464 (eval $ac_try) 2>&5
2465 ac_status=$?
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); }; }; then
2469 else
2470 echo "$as_me: failed program was:" >&5
2471 sed 's/^/| /' conftest.$ac_ext >&5
2473 continue
2475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2476 cat >conftest.$ac_ext <<_ACEOF
2477 /* confdefs.h. */
2478 _ACEOF
2479 cat confdefs.h >>conftest.$ac_ext
2480 cat >>conftest.$ac_ext <<_ACEOF
2481 /* end confdefs.h. */
2482 $ac_declaration
2484 main ()
2486 exit (42);
2488 return 0;
2490 _ACEOF
2491 rm -f conftest.$ac_objext
2492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2493 (eval $ac_compile) 2>conftest.er1
2494 ac_status=$?
2495 grep -v '^ *+' conftest.er1 >conftest.err
2496 rm -f conftest.er1
2497 cat conftest.err >&5
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); } &&
2500 { ac_try='test -z "$ac_c_werror_flag"
2501 || test ! -s conftest.err'
2502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2503 (eval $ac_try) 2>&5
2504 ac_status=$?
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); }; } &&
2507 { ac_try='test -s conftest.$ac_objext'
2508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2509 (eval $ac_try) 2>&5
2510 ac_status=$?
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); }; }; then
2513 break
2514 else
2515 echo "$as_me: failed program was:" >&5
2516 sed 's/^/| /' conftest.$ac_ext >&5
2519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2520 done
2521 rm -f conftest*
2522 if test -n "$ac_declaration"; then
2523 echo '#ifdef __cplusplus' >>confdefs.h
2524 echo $ac_declaration >>confdefs.h
2525 echo '#endif' >>confdefs.h
2528 else
2529 echo "$as_me: failed program was:" >&5
2530 sed 's/^/| /' conftest.$ac_ext >&5
2533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2534 ac_ext=c
2535 ac_cpp='$CPP $CPPFLAGS'
2536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2541 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2542 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2543 if test "${ac_cv_search_strerror+set}" = set; then
2544 echo $ECHO_N "(cached) $ECHO_C" >&6
2545 else
2546 ac_func_search_save_LIBS=$LIBS
2547 ac_cv_search_strerror=no
2548 cat >conftest.$ac_ext <<_ACEOF
2549 /* confdefs.h. */
2550 _ACEOF
2551 cat confdefs.h >>conftest.$ac_ext
2552 cat >>conftest.$ac_ext <<_ACEOF
2553 /* end confdefs.h. */
2555 /* Override any gcc2 internal prototype to avoid an error. */
2556 #ifdef __cplusplus
2557 extern "C"
2558 #endif
2559 /* We use char because int might match the return type of a gcc2
2560 builtin and then its argument prototype would still apply. */
2561 char strerror ();
2563 main ()
2565 strerror ();
2567 return 0;
2569 _ACEOF
2570 rm -f conftest.$ac_objext conftest$ac_exeext
2571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2572 (eval $ac_link) 2>conftest.er1
2573 ac_status=$?
2574 grep -v '^ *+' conftest.er1 >conftest.err
2575 rm -f conftest.er1
2576 cat conftest.err >&5
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); } &&
2579 { ac_try='test -z "$ac_c_werror_flag"
2580 || test ! -s conftest.err'
2581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2582 (eval $ac_try) 2>&5
2583 ac_status=$?
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); }; } &&
2586 { ac_try='test -s conftest$ac_exeext'
2587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2588 (eval $ac_try) 2>&5
2589 ac_status=$?
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); }; }; then
2592 ac_cv_search_strerror="none required"
2593 else
2594 echo "$as_me: failed program was:" >&5
2595 sed 's/^/| /' conftest.$ac_ext >&5
2598 rm -f conftest.err conftest.$ac_objext \
2599 conftest$ac_exeext conftest.$ac_ext
2600 if test "$ac_cv_search_strerror" = no; then
2601 for ac_lib in cposix; do
2602 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2603 cat >conftest.$ac_ext <<_ACEOF
2604 /* confdefs.h. */
2605 _ACEOF
2606 cat confdefs.h >>conftest.$ac_ext
2607 cat >>conftest.$ac_ext <<_ACEOF
2608 /* end confdefs.h. */
2610 /* Override any gcc2 internal prototype to avoid an error. */
2611 #ifdef __cplusplus
2612 extern "C"
2613 #endif
2614 /* We use char because int might match the return type of a gcc2
2615 builtin and then its argument prototype would still apply. */
2616 char strerror ();
2618 main ()
2620 strerror ();
2622 return 0;
2624 _ACEOF
2625 rm -f conftest.$ac_objext conftest$ac_exeext
2626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2627 (eval $ac_link) 2>conftest.er1
2628 ac_status=$?
2629 grep -v '^ *+' conftest.er1 >conftest.err
2630 rm -f conftest.er1
2631 cat conftest.err >&5
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); } &&
2634 { ac_try='test -z "$ac_c_werror_flag"
2635 || test ! -s conftest.err'
2636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637 (eval $ac_try) 2>&5
2638 ac_status=$?
2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); }; } &&
2641 { ac_try='test -s conftest$ac_exeext'
2642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2643 (eval $ac_try) 2>&5
2644 ac_status=$?
2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646 (exit $ac_status); }; }; then
2647 ac_cv_search_strerror="-l$ac_lib"
2648 break
2649 else
2650 echo "$as_me: failed program was:" >&5
2651 sed 's/^/| /' conftest.$ac_ext >&5
2654 rm -f conftest.err conftest.$ac_objext \
2655 conftest$ac_exeext conftest.$ac_ext
2656 done
2658 LIBS=$ac_func_search_save_LIBS
2660 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2661 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2662 if test "$ac_cv_search_strerror" != no; then
2663 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2668 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2669 am__api_version="1.9"
2670 # Find a good install program. We prefer a C program (faster),
2671 # so one script is as good as another. But avoid the broken or
2672 # incompatible versions:
2673 # SysV /etc/install, /usr/sbin/install
2674 # SunOS /usr/etc/install
2675 # IRIX /sbin/install
2676 # AIX /bin/install
2677 # AmigaOS /C/install, which installs bootblocks on floppy discs
2678 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2679 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2680 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2681 # OS/2's system install, which has a completely different semantic
2682 # ./install, which can be erroneously created by make from ./install.sh.
2683 # Reject install programs that cannot install multiple files.
2684 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2685 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2686 if test -z "$INSTALL"; then
2687 if test "${ac_cv_path_install+set}" = set; then
2688 echo $ECHO_N "(cached) $ECHO_C" >&6
2689 else
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 for as_dir in $PATH
2693 IFS=$as_save_IFS
2694 test -z "$as_dir" && as_dir=.
2695 # Account for people who put trailing slashes in PATH elements.
2696 case $as_dir/ in
2697 ./ | .// | /cC/* | \
2698 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2699 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2700 /usr/ucb/* ) ;;
2702 # OSF1 and SCO ODT 3.0 have their own names for install.
2703 # Don't use installbsd from OSF since it installs stuff as root
2704 # by default.
2705 for ac_prog in ginstall scoinst install; do
2706 for ac_exec_ext in '' $ac_executable_extensions; do
2707 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2708 if test $ac_prog = install &&
2709 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2710 # AIX install. It has an incompatible calling convention.
2712 elif test $ac_prog = install &&
2713 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2714 # program-specific install script used by HP pwplus--don't use.
2716 else
2717 rm -rf conftest.one conftest.two conftest.dir
2718 echo one > conftest.one
2719 echo two > conftest.two
2720 mkdir conftest.dir
2721 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2722 test -s conftest.one && test -s conftest.two &&
2723 test -s conftest.dir/conftest.one &&
2724 test -s conftest.dir/conftest.two
2725 then
2726 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2727 break 3
2731 done
2732 done
2734 esac
2735 done
2737 rm -rf conftest.one conftest.two conftest.dir
2740 if test "${ac_cv_path_install+set}" = set; then
2741 INSTALL=$ac_cv_path_install
2742 else
2743 # As a last resort, use the slow shell script. Don't cache a
2744 # value for INSTALL within a source directory, because that will
2745 # break other packages using the cache if that directory is
2746 # removed, or if the value is a relative name.
2747 INSTALL=$ac_install_sh
2750 echo "$as_me:$LINENO: result: $INSTALL" >&5
2751 echo "${ECHO_T}$INSTALL" >&6
2753 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2754 # It thinks the first close brace ends the variable substitution.
2755 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2757 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2759 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2761 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2762 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2763 # Just in case
2764 sleep 1
2765 echo timestamp > conftest.file
2766 # Do `set' in a subshell so we don't clobber the current shell's
2767 # arguments. Must try -L first in case configure is actually a
2768 # symlink; some systems play weird games with the mod time of symlinks
2769 # (eg FreeBSD returns the mod time of the symlink's containing
2770 # directory).
2771 if (
2772 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2773 if test "$*" = "X"; then
2774 # -L didn't work.
2775 set X `ls -t $srcdir/configure conftest.file`
2777 rm -f conftest.file
2778 if test "$*" != "X $srcdir/configure conftest.file" \
2779 && test "$*" != "X conftest.file $srcdir/configure"; then
2781 # If neither matched, then we have a broken ls. This can happen
2782 # if, for instance, CONFIG_SHELL is bash and it inherits a
2783 # broken ls alias from the environment. This has actually
2784 # happened. Such a system could not be considered "sane".
2785 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2786 alias in your environment" >&5
2787 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2788 alias in your environment" >&2;}
2789 { (exit 1); exit 1; }; }
2792 test "$2" = conftest.file
2794 then
2795 # Ok.
2797 else
2798 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2799 Check your system clock" >&5
2800 echo "$as_me: error: newly created file is older than distributed files!
2801 Check your system clock" >&2;}
2802 { (exit 1); exit 1; }; }
2804 echo "$as_me:$LINENO: result: yes" >&5
2805 echo "${ECHO_T}yes" >&6
2806 test "$program_prefix" != NONE &&
2807 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2808 # Use a double $ so make ignores it.
2809 test "$program_suffix" != NONE &&
2810 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2811 # Double any \ or $. echo might interpret backslashes.
2812 # By default was `s,x,x', remove it if useless.
2813 cat <<\_ACEOF >conftest.sed
2814 s/[\\$]/&&/g;s/;s,x,x,$//
2815 _ACEOF
2816 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2817 rm conftest.sed
2819 # expand $ac_aux_dir to an absolute path
2820 am_aux_dir=`cd $ac_aux_dir && pwd`
2822 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2823 # Use eval to expand $SHELL
2824 if eval "$MISSING --run true"; then
2825 am_missing_run="$MISSING --run "
2826 else
2827 am_missing_run=
2828 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2829 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2832 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2833 # We used to keeping the `.' as first argument, in order to
2834 # allow $(mkdir_p) to be used without argument. As in
2835 # $(mkdir_p) $(somedir)
2836 # where $(somedir) is conditionally defined. However this is wrong
2837 # for two reasons:
2838 # 1. if the package is installed by a user who cannot write `.'
2839 # make install will fail,
2840 # 2. the above comment should most certainly read
2841 # $(mkdir_p) $(DESTDIR)$(somedir)
2842 # so it does not work when $(somedir) is undefined and
2843 # $(DESTDIR) is not.
2844 # To support the latter case, we have to write
2845 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2846 # so the `.' trick is pointless.
2847 mkdir_p='mkdir -p --'
2848 else
2849 # On NextStep and OpenStep, the `mkdir' command does not
2850 # recognize any option. It will interpret all options as
2851 # directories to create, and then abort because `.' already
2852 # exists.
2853 for d in ./-p ./--version;
2855 test -d $d && rmdir $d
2856 done
2857 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2858 if test -f "$ac_aux_dir/mkinstalldirs"; then
2859 mkdir_p='$(mkinstalldirs)'
2860 else
2861 mkdir_p='$(install_sh) -d'
2865 for ac_prog in gawk mawk nawk awk
2867 # Extract the first word of "$ac_prog", so it can be a program name with args.
2868 set dummy $ac_prog; ac_word=$2
2869 echo "$as_me:$LINENO: checking for $ac_word" >&5
2870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2871 if test "${ac_cv_prog_AWK+set}" = set; then
2872 echo $ECHO_N "(cached) $ECHO_C" >&6
2873 else
2874 if test -n "$AWK"; then
2875 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2876 else
2877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878 for as_dir in $PATH
2880 IFS=$as_save_IFS
2881 test -z "$as_dir" && as_dir=.
2882 for ac_exec_ext in '' $ac_executable_extensions; do
2883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2884 ac_cv_prog_AWK="$ac_prog"
2885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2886 break 2
2888 done
2889 done
2893 AWK=$ac_cv_prog_AWK
2894 if test -n "$AWK"; then
2895 echo "$as_me:$LINENO: result: $AWK" >&5
2896 echo "${ECHO_T}$AWK" >&6
2897 else
2898 echo "$as_me:$LINENO: result: no" >&5
2899 echo "${ECHO_T}no" >&6
2902 test -n "$AWK" && break
2903 done
2905 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2906 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2907 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2908 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2909 echo $ECHO_N "(cached) $ECHO_C" >&6
2910 else
2911 cat >conftest.make <<\_ACEOF
2912 all:
2913 @echo 'ac_maketemp="$(MAKE)"'
2914 _ACEOF
2915 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2916 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2917 if test -n "$ac_maketemp"; then
2918 eval ac_cv_prog_make_${ac_make}_set=yes
2919 else
2920 eval ac_cv_prog_make_${ac_make}_set=no
2922 rm -f conftest.make
2924 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2925 echo "$as_me:$LINENO: result: yes" >&5
2926 echo "${ECHO_T}yes" >&6
2927 SET_MAKE=
2928 else
2929 echo "$as_me:$LINENO: result: no" >&5
2930 echo "${ECHO_T}no" >&6
2931 SET_MAKE="MAKE=${MAKE-make}"
2934 rm -rf .tst 2>/dev/null
2935 mkdir .tst 2>/dev/null
2936 if test -d .tst; then
2937 am__leading_dot=.
2938 else
2939 am__leading_dot=_
2941 rmdir .tst 2>/dev/null
2943 DEPDIR="${am__leading_dot}deps"
2945 ac_config_commands="$ac_config_commands depfiles"
2948 am_make=${MAKE-make}
2949 cat > confinc << 'END'
2950 am__doit:
2951 @echo done
2952 .PHONY: am__doit
2954 # If we don't find an include directive, just comment out the code.
2955 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2956 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2957 am__include="#"
2958 am__quote=
2959 _am_result=none
2960 # First try GNU make style include.
2961 echo "include confinc" > confmf
2962 # We grep out `Entering directory' and `Leaving directory'
2963 # messages which can occur if `w' ends up in MAKEFLAGS.
2964 # In particular we don't look at `^make:' because GNU make might
2965 # be invoked under some other name (usually "gmake"), in which
2966 # case it prints its new name instead of `make'.
2967 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2968 am__include=include
2969 am__quote=
2970 _am_result=GNU
2972 # Now try BSD make style include.
2973 if test "$am__include" = "#"; then
2974 echo '.include "confinc"' > confmf
2975 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2976 am__include=.include
2977 am__quote="\""
2978 _am_result=BSD
2983 echo "$as_me:$LINENO: result: $_am_result" >&5
2984 echo "${ECHO_T}$_am_result" >&6
2985 rm -f confinc confmf
2987 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2988 if test "${enable_dependency_tracking+set}" = set; then
2989 enableval="$enable_dependency_tracking"
2992 if test "x$enable_dependency_tracking" != xno; then
2993 am_depcomp="$ac_aux_dir/depcomp"
2994 AMDEPBACKSLASH='\'
2998 if test "x$enable_dependency_tracking" != xno; then
2999 AMDEP_TRUE=
3000 AMDEP_FALSE='#'
3001 else
3002 AMDEP_TRUE='#'
3003 AMDEP_FALSE=
3008 # test to see if srcdir already configured
3009 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3010 test -f $srcdir/config.status; then
3011 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3012 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3013 { (exit 1); exit 1; }; }
3016 # test whether we have cygpath
3017 if test -z "$CYGPATH_W"; then
3018 if (cygpath --version) >/dev/null 2>/dev/null; then
3019 CYGPATH_W='cygpath -w'
3020 else
3021 CYGPATH_W=echo
3026 # Define the identity of the package.
3027 PACKAGE=binutils
3028 VERSION=${BFD_VERSION}
3031 cat >>confdefs.h <<_ACEOF
3032 #define PACKAGE "$PACKAGE"
3033 _ACEOF
3036 cat >>confdefs.h <<_ACEOF
3037 #define VERSION "$VERSION"
3038 _ACEOF
3040 # Some tools Automake needs.
3042 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3045 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3048 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3051 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3054 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3056 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3058 # Installed binaries are usually stripped using `strip' when the user
3059 # run `make install-strip'. However `strip' might not be the right
3060 # tool to use in cross-compilation environments, therefore Automake
3061 # will honor the `STRIP' environment variable to overrule this program.
3062 if test "$cross_compiling" != no; then
3063 if test -n "$ac_tool_prefix"; then
3064 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3065 set dummy ${ac_tool_prefix}strip; ac_word=$2
3066 echo "$as_me:$LINENO: checking for $ac_word" >&5
3067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3068 if test "${ac_cv_prog_STRIP+set}" = set; then
3069 echo $ECHO_N "(cached) $ECHO_C" >&6
3070 else
3071 if test -n "$STRIP"; then
3072 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3073 else
3074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075 for as_dir in $PATH
3077 IFS=$as_save_IFS
3078 test -z "$as_dir" && as_dir=.
3079 for ac_exec_ext in '' $ac_executable_extensions; do
3080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3081 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3083 break 2
3085 done
3086 done
3090 STRIP=$ac_cv_prog_STRIP
3091 if test -n "$STRIP"; then
3092 echo "$as_me:$LINENO: result: $STRIP" >&5
3093 echo "${ECHO_T}$STRIP" >&6
3094 else
3095 echo "$as_me:$LINENO: result: no" >&5
3096 echo "${ECHO_T}no" >&6
3100 if test -z "$ac_cv_prog_STRIP"; then
3101 ac_ct_STRIP=$STRIP
3102 # Extract the first word of "strip", so it can be a program name with args.
3103 set dummy strip; ac_word=$2
3104 echo "$as_me:$LINENO: checking for $ac_word" >&5
3105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3106 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3107 echo $ECHO_N "(cached) $ECHO_C" >&6
3108 else
3109 if test -n "$ac_ct_STRIP"; then
3110 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3111 else
3112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113 for as_dir in $PATH
3115 IFS=$as_save_IFS
3116 test -z "$as_dir" && as_dir=.
3117 for ac_exec_ext in '' $ac_executable_extensions; do
3118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3119 ac_cv_prog_ac_ct_STRIP="strip"
3120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3121 break 2
3123 done
3124 done
3126 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3129 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3130 if test -n "$ac_ct_STRIP"; then
3131 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3132 echo "${ECHO_T}$ac_ct_STRIP" >&6
3133 else
3134 echo "$as_me:$LINENO: result: no" >&5
3135 echo "${ECHO_T}no" >&6
3138 STRIP=$ac_ct_STRIP
3139 else
3140 STRIP="$ac_cv_prog_STRIP"
3144 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3146 # We need awk for the "check" target. The system "awk" is bad on
3147 # some platforms.
3148 # Always define AMTAR for backward compatibility.
3150 AMTAR=${AMTAR-"${am_missing_run}tar"}
3152 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3157 depcc="$CC" am_compiler_list=
3159 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3160 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3161 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3162 echo $ECHO_N "(cached) $ECHO_C" >&6
3163 else
3164 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3165 # We make a subdir and do the tests there. Otherwise we can end up
3166 # making bogus files that we don't know about and never remove. For
3167 # instance it was reported that on HP-UX the gcc test will end up
3168 # making a dummy file named `D' -- because `-MD' means `put the output
3169 # in D'.
3170 mkdir conftest.dir
3171 # Copy depcomp to subdir because otherwise we won't find it if we're
3172 # using a relative directory.
3173 cp "$am_depcomp" conftest.dir
3174 cd conftest.dir
3175 # We will build objects and dependencies in a subdirectory because
3176 # it helps to detect inapplicable dependency modes. For instance
3177 # both Tru64's cc and ICC support -MD to output dependencies as a
3178 # side effect of compilation, but ICC will put the dependencies in
3179 # the current directory while Tru64 will put them in the object
3180 # directory.
3181 mkdir sub
3183 am_cv_CC_dependencies_compiler_type=none
3184 if test "$am_compiler_list" = ""; then
3185 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3187 for depmode in $am_compiler_list; do
3188 # Setup a source with many dependencies, because some compilers
3189 # like to wrap large dependency lists on column 80 (with \), and
3190 # we should not choose a depcomp mode which is confused by this.
3192 # We need to recreate these files for each test, as the compiler may
3193 # overwrite some of them when testing with obscure command lines.
3194 # This happens at least with the AIX C compiler.
3195 : > sub/conftest.c
3196 for i in 1 2 3 4 5 6; do
3197 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3198 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3199 # Solaris 8's {/usr,}/bin/sh.
3200 touch sub/conftst$i.h
3201 done
3202 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3204 case $depmode in
3205 nosideeffect)
3206 # after this tag, mechanisms are not by side-effect, so they'll
3207 # only be used when explicitly requested
3208 if test "x$enable_dependency_tracking" = xyes; then
3209 continue
3210 else
3211 break
3214 none) break ;;
3215 esac
3216 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3217 # mode. It turns out that the SunPro C++ compiler does not properly
3218 # handle `-M -o', and we need to detect this.
3219 if depmode=$depmode \
3220 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3221 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3222 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3223 >/dev/null 2>conftest.err &&
3224 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3225 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3226 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3227 # icc doesn't choke on unknown options, it will just issue warnings
3228 # or remarks (even with -Werror). So we grep stderr for any message
3229 # that says an option was ignored or not supported.
3230 # When given -MP, icc 7.0 and 7.1 complain thusly:
3231 # icc: Command line warning: ignoring option '-M'; no argument required
3232 # The diagnosis changed in icc 8.0:
3233 # icc: Command line remark: option '-MP' not supported
3234 if (grep 'ignoring option' conftest.err ||
3235 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3236 am_cv_CC_dependencies_compiler_type=$depmode
3237 break
3240 done
3242 cd ..
3243 rm -rf conftest.dir
3244 else
3245 am_cv_CC_dependencies_compiler_type=none
3249 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3250 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3251 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3256 test "x$enable_dependency_tracking" != xno \
3257 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3258 am__fastdepCC_TRUE=
3259 am__fastdepCC_FALSE='#'
3260 else
3261 am__fastdepCC_TRUE='#'
3262 am__fastdepCC_FALSE=
3268 ac_ext=c
3269 ac_cpp='$CPP $CPPFLAGS'
3270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3273 if test -n "$ac_tool_prefix"; then
3274 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3275 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3276 echo "$as_me:$LINENO: checking for $ac_word" >&5
3277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3278 if test "${ac_cv_prog_CC+set}" = set; then
3279 echo $ECHO_N "(cached) $ECHO_C" >&6
3280 else
3281 if test -n "$CC"; then
3282 ac_cv_prog_CC="$CC" # Let the user override the test.
3283 else
3284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285 for as_dir in $PATH
3287 IFS=$as_save_IFS
3288 test -z "$as_dir" && as_dir=.
3289 for ac_exec_ext in '' $ac_executable_extensions; do
3290 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3291 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3293 break 2
3295 done
3296 done
3300 CC=$ac_cv_prog_CC
3301 if test -n "$CC"; then
3302 echo "$as_me:$LINENO: result: $CC" >&5
3303 echo "${ECHO_T}$CC" >&6
3304 else
3305 echo "$as_me:$LINENO: result: no" >&5
3306 echo "${ECHO_T}no" >&6
3310 if test -z "$ac_cv_prog_CC"; then
3311 ac_ct_CC=$CC
3312 # Extract the first word of "gcc", so it can be a program name with args.
3313 set dummy gcc; ac_word=$2
3314 echo "$as_me:$LINENO: checking for $ac_word" >&5
3315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3316 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3317 echo $ECHO_N "(cached) $ECHO_C" >&6
3318 else
3319 if test -n "$ac_ct_CC"; then
3320 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3321 else
3322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3323 for as_dir in $PATH
3325 IFS=$as_save_IFS
3326 test -z "$as_dir" && as_dir=.
3327 for ac_exec_ext in '' $ac_executable_extensions; do
3328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3329 ac_cv_prog_ac_ct_CC="gcc"
3330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3331 break 2
3333 done
3334 done
3338 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3339 if test -n "$ac_ct_CC"; then
3340 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3341 echo "${ECHO_T}$ac_ct_CC" >&6
3342 else
3343 echo "$as_me:$LINENO: result: no" >&5
3344 echo "${ECHO_T}no" >&6
3347 CC=$ac_ct_CC
3348 else
3349 CC="$ac_cv_prog_CC"
3352 if test -z "$CC"; then
3353 if test -n "$ac_tool_prefix"; then
3354 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3355 set dummy ${ac_tool_prefix}cc; ac_word=$2
3356 echo "$as_me:$LINENO: checking for $ac_word" >&5
3357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3358 if test "${ac_cv_prog_CC+set}" = set; then
3359 echo $ECHO_N "(cached) $ECHO_C" >&6
3360 else
3361 if test -n "$CC"; then
3362 ac_cv_prog_CC="$CC" # Let the user override the test.
3363 else
3364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3365 for as_dir in $PATH
3367 IFS=$as_save_IFS
3368 test -z "$as_dir" && as_dir=.
3369 for ac_exec_ext in '' $ac_executable_extensions; do
3370 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3371 ac_cv_prog_CC="${ac_tool_prefix}cc"
3372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3373 break 2
3375 done
3376 done
3380 CC=$ac_cv_prog_CC
3381 if test -n "$CC"; then
3382 echo "$as_me:$LINENO: result: $CC" >&5
3383 echo "${ECHO_T}$CC" >&6
3384 else
3385 echo "$as_me:$LINENO: result: no" >&5
3386 echo "${ECHO_T}no" >&6
3390 if test -z "$ac_cv_prog_CC"; then
3391 ac_ct_CC=$CC
3392 # Extract the first word of "cc", so it can be a program name with args.
3393 set dummy cc; ac_word=$2
3394 echo "$as_me:$LINENO: checking for $ac_word" >&5
3395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3396 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3397 echo $ECHO_N "(cached) $ECHO_C" >&6
3398 else
3399 if test -n "$ac_ct_CC"; then
3400 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3401 else
3402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3403 for as_dir in $PATH
3405 IFS=$as_save_IFS
3406 test -z "$as_dir" && as_dir=.
3407 for ac_exec_ext in '' $ac_executable_extensions; do
3408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3409 ac_cv_prog_ac_ct_CC="cc"
3410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3411 break 2
3413 done
3414 done
3418 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3419 if test -n "$ac_ct_CC"; then
3420 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3421 echo "${ECHO_T}$ac_ct_CC" >&6
3422 else
3423 echo "$as_me:$LINENO: result: no" >&5
3424 echo "${ECHO_T}no" >&6
3427 CC=$ac_ct_CC
3428 else
3429 CC="$ac_cv_prog_CC"
3433 if test -z "$CC"; then
3434 # Extract the first word of "cc", so it can be a program name with args.
3435 set dummy cc; ac_word=$2
3436 echo "$as_me:$LINENO: checking for $ac_word" >&5
3437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3438 if test "${ac_cv_prog_CC+set}" = set; then
3439 echo $ECHO_N "(cached) $ECHO_C" >&6
3440 else
3441 if test -n "$CC"; then
3442 ac_cv_prog_CC="$CC" # Let the user override the test.
3443 else
3444 ac_prog_rejected=no
3445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3446 for as_dir in $PATH
3448 IFS=$as_save_IFS
3449 test -z "$as_dir" && as_dir=.
3450 for ac_exec_ext in '' $ac_executable_extensions; do
3451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3452 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3453 ac_prog_rejected=yes
3454 continue
3456 ac_cv_prog_CC="cc"
3457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3458 break 2
3460 done
3461 done
3463 if test $ac_prog_rejected = yes; then
3464 # We found a bogon in the path, so make sure we never use it.
3465 set dummy $ac_cv_prog_CC
3466 shift
3467 if test $# != 0; then
3468 # We chose a different compiler from the bogus one.
3469 # However, it has the same basename, so the bogon will be chosen
3470 # first if we set CC to just the basename; use the full file name.
3471 shift
3472 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3477 CC=$ac_cv_prog_CC
3478 if test -n "$CC"; then
3479 echo "$as_me:$LINENO: result: $CC" >&5
3480 echo "${ECHO_T}$CC" >&6
3481 else
3482 echo "$as_me:$LINENO: result: no" >&5
3483 echo "${ECHO_T}no" >&6
3487 if test -z "$CC"; then
3488 if test -n "$ac_tool_prefix"; then
3489 for ac_prog in cl
3491 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3492 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3493 echo "$as_me:$LINENO: checking for $ac_word" >&5
3494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3495 if test "${ac_cv_prog_CC+set}" = set; then
3496 echo $ECHO_N "(cached) $ECHO_C" >&6
3497 else
3498 if test -n "$CC"; then
3499 ac_cv_prog_CC="$CC" # Let the user override the test.
3500 else
3501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3502 for as_dir in $PATH
3504 IFS=$as_save_IFS
3505 test -z "$as_dir" && as_dir=.
3506 for ac_exec_ext in '' $ac_executable_extensions; do
3507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3508 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3510 break 2
3512 done
3513 done
3517 CC=$ac_cv_prog_CC
3518 if test -n "$CC"; then
3519 echo "$as_me:$LINENO: result: $CC" >&5
3520 echo "${ECHO_T}$CC" >&6
3521 else
3522 echo "$as_me:$LINENO: result: no" >&5
3523 echo "${ECHO_T}no" >&6
3526 test -n "$CC" && break
3527 done
3529 if test -z "$CC"; then
3530 ac_ct_CC=$CC
3531 for ac_prog in cl
3533 # Extract the first word of "$ac_prog", so it can be a program name with args.
3534 set dummy $ac_prog; ac_word=$2
3535 echo "$as_me:$LINENO: checking for $ac_word" >&5
3536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3537 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3538 echo $ECHO_N "(cached) $ECHO_C" >&6
3539 else
3540 if test -n "$ac_ct_CC"; then
3541 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3542 else
3543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3544 for as_dir in $PATH
3546 IFS=$as_save_IFS
3547 test -z "$as_dir" && as_dir=.
3548 for ac_exec_ext in '' $ac_executable_extensions; do
3549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3550 ac_cv_prog_ac_ct_CC="$ac_prog"
3551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3552 break 2
3554 done
3555 done
3559 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3560 if test -n "$ac_ct_CC"; then
3561 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3562 echo "${ECHO_T}$ac_ct_CC" >&6
3563 else
3564 echo "$as_me:$LINENO: result: no" >&5
3565 echo "${ECHO_T}no" >&6
3568 test -n "$ac_ct_CC" && break
3569 done
3571 CC=$ac_ct_CC
3577 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3578 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3579 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3580 See \`config.log' for more details." >&5
3581 echo "$as_me: error: no acceptable C compiler found in \$PATH
3582 See \`config.log' for more details." >&2;}
3583 { (exit 1); exit 1; }; }; }
3585 # Provide some information about the compiler.
3586 echo "$as_me:$LINENO:" \
3587 "checking for C compiler version" >&5
3588 ac_compiler=`set X $ac_compile; echo $2`
3589 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3590 (eval $ac_compiler --version </dev/null >&5) 2>&5
3591 ac_status=$?
3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593 (exit $ac_status); }
3594 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3595 (eval $ac_compiler -v </dev/null >&5) 2>&5
3596 ac_status=$?
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); }
3599 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3600 (eval $ac_compiler -V </dev/null >&5) 2>&5
3601 ac_status=$?
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); }
3605 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3606 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3607 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
3609 else
3610 cat >conftest.$ac_ext <<_ACEOF
3611 /* confdefs.h. */
3612 _ACEOF
3613 cat confdefs.h >>conftest.$ac_ext
3614 cat >>conftest.$ac_ext <<_ACEOF
3615 /* end confdefs.h. */
3618 main ()
3620 #ifndef __GNUC__
3621 choke me
3622 #endif
3625 return 0;
3627 _ACEOF
3628 rm -f conftest.$ac_objext
3629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3630 (eval $ac_compile) 2>conftest.er1
3631 ac_status=$?
3632 grep -v '^ *+' conftest.er1 >conftest.err
3633 rm -f conftest.er1
3634 cat conftest.err >&5
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); } &&
3637 { ac_try='test -z "$ac_c_werror_flag"
3638 || test ! -s conftest.err'
3639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3640 (eval $ac_try) 2>&5
3641 ac_status=$?
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); }; } &&
3644 { ac_try='test -s conftest.$ac_objext'
3645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3646 (eval $ac_try) 2>&5
3647 ac_status=$?
3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); }; }; then
3650 ac_compiler_gnu=yes
3651 else
3652 echo "$as_me: failed program was:" >&5
3653 sed 's/^/| /' conftest.$ac_ext >&5
3655 ac_compiler_gnu=no
3657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3658 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3661 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3662 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3663 GCC=`test $ac_compiler_gnu = yes && echo yes`
3664 ac_test_CFLAGS=${CFLAGS+set}
3665 ac_save_CFLAGS=$CFLAGS
3666 CFLAGS="-g"
3667 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3668 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3669 if test "${ac_cv_prog_cc_g+set}" = set; then
3670 echo $ECHO_N "(cached) $ECHO_C" >&6
3671 else
3672 cat >conftest.$ac_ext <<_ACEOF
3673 /* confdefs.h. */
3674 _ACEOF
3675 cat confdefs.h >>conftest.$ac_ext
3676 cat >>conftest.$ac_ext <<_ACEOF
3677 /* end confdefs.h. */
3680 main ()
3684 return 0;
3686 _ACEOF
3687 rm -f conftest.$ac_objext
3688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3689 (eval $ac_compile) 2>conftest.er1
3690 ac_status=$?
3691 grep -v '^ *+' conftest.er1 >conftest.err
3692 rm -f conftest.er1
3693 cat conftest.err >&5
3694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695 (exit $ac_status); } &&
3696 { ac_try='test -z "$ac_c_werror_flag"
3697 || test ! -s conftest.err'
3698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3699 (eval $ac_try) 2>&5
3700 ac_status=$?
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); }; } &&
3703 { ac_try='test -s conftest.$ac_objext'
3704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3705 (eval $ac_try) 2>&5
3706 ac_status=$?
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); }; }; then
3709 ac_cv_prog_cc_g=yes
3710 else
3711 echo "$as_me: failed program was:" >&5
3712 sed 's/^/| /' conftest.$ac_ext >&5
3714 ac_cv_prog_cc_g=no
3716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3718 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3719 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3720 if test "$ac_test_CFLAGS" = set; then
3721 CFLAGS=$ac_save_CFLAGS
3722 elif test $ac_cv_prog_cc_g = yes; then
3723 if test "$GCC" = yes; then
3724 CFLAGS="-g -O2"
3725 else
3726 CFLAGS="-g"
3728 else
3729 if test "$GCC" = yes; then
3730 CFLAGS="-O2"
3731 else
3732 CFLAGS=
3735 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3736 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3737 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3739 else
3740 ac_cv_prog_cc_stdc=no
3741 ac_save_CC=$CC
3742 cat >conftest.$ac_ext <<_ACEOF
3743 /* confdefs.h. */
3744 _ACEOF
3745 cat confdefs.h >>conftest.$ac_ext
3746 cat >>conftest.$ac_ext <<_ACEOF
3747 /* end confdefs.h. */
3748 #include <stdarg.h>
3749 #include <stdio.h>
3750 #include <sys/types.h>
3751 #include <sys/stat.h>
3752 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3753 struct buf { int x; };
3754 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3755 static char *e (p, i)
3756 char **p;
3757 int i;
3759 return p[i];
3761 static char *f (char * (*g) (char **, int), char **p, ...)
3763 char *s;
3764 va_list v;
3765 va_start (v,p);
3766 s = g (p, va_arg (v,int));
3767 va_end (v);
3768 return s;
3771 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3772 function prototypes and stuff, but not '\xHH' hex character constants.
3773 These don't provoke an error unfortunately, instead are silently treated
3774 as 'x'. The following induces an error, until -std1 is added to get
3775 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3776 array size at least. It's necessary to write '\x00'==0 to get something
3777 that's true only with -std1. */
3778 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3780 int test (int i, double x);
3781 struct s1 {int (*f) (int a);};
3782 struct s2 {int (*f) (double a);};
3783 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3784 int argc;
3785 char **argv;
3787 main ()
3789 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3791 return 0;
3793 _ACEOF
3794 # Don't try gcc -ansi; that turns off useful extensions and
3795 # breaks some systems' header files.
3796 # AIX -qlanglvl=ansi
3797 # Ultrix and OSF/1 -std1
3798 # HP-UX 10.20 and later -Ae
3799 # HP-UX older versions -Aa -D_HPUX_SOURCE
3800 # SVR4 -Xc -D__EXTENSIONS__
3801 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3803 CC="$ac_save_CC $ac_arg"
3804 rm -f conftest.$ac_objext
3805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3806 (eval $ac_compile) 2>conftest.er1
3807 ac_status=$?
3808 grep -v '^ *+' conftest.er1 >conftest.err
3809 rm -f conftest.er1
3810 cat conftest.err >&5
3811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812 (exit $ac_status); } &&
3813 { ac_try='test -z "$ac_c_werror_flag"
3814 || test ! -s conftest.err'
3815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3816 (eval $ac_try) 2>&5
3817 ac_status=$?
3818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819 (exit $ac_status); }; } &&
3820 { ac_try='test -s conftest.$ac_objext'
3821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3822 (eval $ac_try) 2>&5
3823 ac_status=$?
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); }; }; then
3826 ac_cv_prog_cc_stdc=$ac_arg
3827 break
3828 else
3829 echo "$as_me: failed program was:" >&5
3830 sed 's/^/| /' conftest.$ac_ext >&5
3833 rm -f conftest.err conftest.$ac_objext
3834 done
3835 rm -f conftest.$ac_ext conftest.$ac_objext
3836 CC=$ac_save_CC
3840 case "x$ac_cv_prog_cc_stdc" in
3841 x|xno)
3842 echo "$as_me:$LINENO: result: none needed" >&5
3843 echo "${ECHO_T}none needed" >&6 ;;
3845 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3846 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3847 CC="$CC $ac_cv_prog_cc_stdc" ;;
3848 esac
3850 # Some people use a C++ compiler to compile C. Since we use `exit',
3851 # in C++ we need to declare it. In case someone uses the same compiler
3852 # for both compiling C and C++ we need to have the C++ compiler decide
3853 # the declaration of exit, since it's the most demanding environment.
3854 cat >conftest.$ac_ext <<_ACEOF
3855 #ifndef __cplusplus
3856 choke me
3857 #endif
3858 _ACEOF
3859 rm -f conftest.$ac_objext
3860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3861 (eval $ac_compile) 2>conftest.er1
3862 ac_status=$?
3863 grep -v '^ *+' conftest.er1 >conftest.err
3864 rm -f conftest.er1
3865 cat conftest.err >&5
3866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867 (exit $ac_status); } &&
3868 { ac_try='test -z "$ac_c_werror_flag"
3869 || test ! -s conftest.err'
3870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3871 (eval $ac_try) 2>&5
3872 ac_status=$?
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); }; } &&
3875 { ac_try='test -s conftest.$ac_objext'
3876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3877 (eval $ac_try) 2>&5
3878 ac_status=$?
3879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880 (exit $ac_status); }; }; then
3881 for ac_declaration in \
3882 '' \
3883 'extern "C" void std::exit (int) throw (); using std::exit;' \
3884 'extern "C" void std::exit (int); using std::exit;' \
3885 'extern "C" void exit (int) throw ();' \
3886 'extern "C" void exit (int);' \
3887 'void exit (int);'
3889 cat >conftest.$ac_ext <<_ACEOF
3890 /* confdefs.h. */
3891 _ACEOF
3892 cat confdefs.h >>conftest.$ac_ext
3893 cat >>conftest.$ac_ext <<_ACEOF
3894 /* end confdefs.h. */
3895 $ac_declaration
3896 #include <stdlib.h>
3898 main ()
3900 exit (42);
3902 return 0;
3904 _ACEOF
3905 rm -f conftest.$ac_objext
3906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3907 (eval $ac_compile) 2>conftest.er1
3908 ac_status=$?
3909 grep -v '^ *+' conftest.er1 >conftest.err
3910 rm -f conftest.er1
3911 cat conftest.err >&5
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); } &&
3914 { ac_try='test -z "$ac_c_werror_flag"
3915 || test ! -s conftest.err'
3916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3917 (eval $ac_try) 2>&5
3918 ac_status=$?
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); }; } &&
3921 { ac_try='test -s conftest.$ac_objext'
3922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3923 (eval $ac_try) 2>&5
3924 ac_status=$?
3925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926 (exit $ac_status); }; }; then
3928 else
3929 echo "$as_me: failed program was:" >&5
3930 sed 's/^/| /' conftest.$ac_ext >&5
3932 continue
3934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3935 cat >conftest.$ac_ext <<_ACEOF
3936 /* confdefs.h. */
3937 _ACEOF
3938 cat confdefs.h >>conftest.$ac_ext
3939 cat >>conftest.$ac_ext <<_ACEOF
3940 /* end confdefs.h. */
3941 $ac_declaration
3943 main ()
3945 exit (42);
3947 return 0;
3949 _ACEOF
3950 rm -f conftest.$ac_objext
3951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3952 (eval $ac_compile) 2>conftest.er1
3953 ac_status=$?
3954 grep -v '^ *+' conftest.er1 >conftest.err
3955 rm -f conftest.er1
3956 cat conftest.err >&5
3957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958 (exit $ac_status); } &&
3959 { ac_try='test -z "$ac_c_werror_flag"
3960 || test ! -s conftest.err'
3961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3962 (eval $ac_try) 2>&5
3963 ac_status=$?
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); }; } &&
3966 { ac_try='test -s conftest.$ac_objext'
3967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3968 (eval $ac_try) 2>&5
3969 ac_status=$?
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); }; }; then
3972 break
3973 else
3974 echo "$as_me: failed program was:" >&5
3975 sed 's/^/| /' conftest.$ac_ext >&5
3978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3979 done
3980 rm -f conftest*
3981 if test -n "$ac_declaration"; then
3982 echo '#ifdef __cplusplus' >>confdefs.h
3983 echo $ac_declaration >>confdefs.h
3984 echo '#endif' >>confdefs.h
3987 else
3988 echo "$as_me: failed program was:" >&5
3989 sed 's/^/| /' conftest.$ac_ext >&5
3992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3993 ac_ext=c
3994 ac_cpp='$CPP $CPPFLAGS'
3995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4000 cat >>confdefs.h <<\_ACEOF
4001 #define _GNU_SOURCE 1
4002 _ACEOF
4007 macro_version='2.1a'
4008 macro_revision='1.2435'
4021 ltmain="$ac_aux_dir/ltmain.sh"
4023 # Set options
4025 enable_dlopen=no
4028 enable_win32_dll=no
4031 # Check whether --enable-shared or --disable-shared was given.
4032 if test "${enable_shared+set}" = set; then
4033 enableval="$enable_shared"
4034 p=${PACKAGE-default}
4035 case $enableval in
4036 yes) enable_shared=yes ;;
4037 no) enable_shared=no ;;
4039 enable_shared=no
4040 # Look at the argument we got. We use all the common list separators.
4041 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4042 for pkg in $enableval; do
4043 IFS="$lt_save_ifs"
4044 if test "X$pkg" = "X$p"; then
4045 enable_shared=yes
4047 done
4048 IFS="$lt_save_ifs"
4050 esac
4051 else
4052 enable_shared=yes
4062 # Check whether --enable-static or --disable-static was given.
4063 if test "${enable_static+set}" = set; then
4064 enableval="$enable_static"
4065 p=${PACKAGE-default}
4066 case $enableval in
4067 yes) enable_static=yes ;;
4068 no) enable_static=no ;;
4070 enable_static=no
4071 # Look at the argument we got. We use all the common list separators.
4072 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4073 for pkg in $enableval; do
4074 IFS="$lt_save_ifs"
4075 if test "X$pkg" = "X$p"; then
4076 enable_static=yes
4078 done
4079 IFS="$lt_save_ifs"
4081 esac
4082 else
4083 enable_static=yes
4094 # Check whether --with-pic or --without-pic was given.
4095 if test "${with_pic+set}" = set; then
4096 withval="$with_pic"
4097 pic_mode="$withval"
4098 else
4099 pic_mode=default
4102 test -z "$pic_mode" && pic_mode=default
4110 # Check whether --enable-fast-install or --disable-fast-install was given.
4111 if test "${enable_fast_install+set}" = set; then
4112 enableval="$enable_fast_install"
4113 p=${PACKAGE-default}
4114 case $enableval in
4115 yes) enable_fast_install=yes ;;
4116 no) enable_fast_install=no ;;
4118 enable_fast_install=no
4119 # Look at the argument we got. We use all the common list separators.
4120 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4121 for pkg in $enableval; do
4122 IFS="$lt_save_ifs"
4123 if test "X$pkg" = "X$p"; then
4124 enable_fast_install=yes
4126 done
4127 IFS="$lt_save_ifs"
4129 esac
4130 else
4131 enable_fast_install=yes
4141 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4142 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4143 if test "${lt_cv_path_SED+set}" = set; then
4144 echo $ECHO_N "(cached) $ECHO_C" >&6
4145 else
4146 # Loop through the user's path and test for sed and gsed.
4147 # Then use that list of sed's as ones to test for truncation.
4148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4149 for as_dir in $PATH
4151 IFS=$as_save_IFS
4152 test -z "$as_dir" && as_dir=.
4153 for lt_ac_prog in sed gsed; do
4154 for ac_exec_ext in '' $ac_executable_extensions; do
4155 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4156 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4158 done
4159 done
4160 done
4161 IFS=$as_save_IFS
4162 lt_ac_max=0
4163 lt_ac_count=0
4164 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4165 # along with /bin/sed that truncates output.
4166 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4167 test ! -f $lt_ac_sed && continue
4168 cat /dev/null > conftest.in
4169 lt_ac_count=0
4170 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4171 # Check for GNU sed and select it if it is found.
4172 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4173 lt_cv_path_SED=$lt_ac_sed
4174 break
4176 while true; do
4177 cat conftest.in conftest.in >conftest.tmp
4178 mv conftest.tmp conftest.in
4179 cp conftest.in conftest.nl
4180 echo >>conftest.nl
4181 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4182 cmp -s conftest.out conftest.nl || break
4183 # 10000 chars as input seems more than enough
4184 test $lt_ac_count -gt 10 && break
4185 lt_ac_count=`expr $lt_ac_count + 1`
4186 if test $lt_ac_count -gt $lt_ac_max; then
4187 lt_ac_max=$lt_ac_count
4188 lt_cv_path_SED=$lt_ac_sed
4190 done
4191 done
4195 SED=$lt_cv_path_SED
4197 echo "$as_me:$LINENO: result: $SED" >&5
4198 echo "${ECHO_T}$SED" >&6
4200 test -z "$SED" && SED=sed
4201 Xsed="$SED -e 1s/^X//"
4213 echo "$as_me:$LINENO: checking for egrep" >&5
4214 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4215 if test "${ac_cv_prog_egrep+set}" = set; then
4216 echo $ECHO_N "(cached) $ECHO_C" >&6
4217 else
4218 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4219 then ac_cv_prog_egrep='grep -E'
4220 else ac_cv_prog_egrep='egrep'
4223 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4224 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4225 EGREP=$ac_cv_prog_egrep
4228 echo "$as_me:$LINENO: checking for fgrep" >&5
4229 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4230 if test "${ac_cv_prog_fgrep+set}" = set; then
4231 echo $ECHO_N "(cached) $ECHO_C" >&6
4232 else
4233 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4234 then ac_cv_prog_fgrep='grep -F'
4235 else ac_cv_prog_fgrep='fgrep'
4238 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4239 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4240 FGREP=$ac_cv_prog_fgrep
4243 test -z "$GREP" && GREP=grep
4263 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4264 if test "${with_gnu_ld+set}" = set; then
4265 withval="$with_gnu_ld"
4266 test "$withval" = no || with_gnu_ld=yes
4267 else
4268 with_gnu_ld=no
4270 ac_prog=ld
4271 if test "$GCC" = yes; then
4272 # Check if gcc -print-prog-name=ld gives a path.
4273 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4274 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4275 case $host in
4276 *-*-mingw*)
4277 # gcc leaves a trailing carriage return which upsets mingw
4278 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4280 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4281 esac
4282 case $ac_prog in
4283 # Accept absolute paths.
4284 [\\/]* | ?:[\\/]*)
4285 re_direlt='/[^/][^/]*/\.\./'
4286 # Canonicalize the pathname of ld
4287 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4288 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4289 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4290 done
4291 test -z "$LD" && LD="$ac_prog"
4294 # If it fails, then pretend we aren't using GCC.
4295 ac_prog=ld
4298 # If it is relative, then search for the first ld in PATH.
4299 with_gnu_ld=unknown
4301 esac
4302 elif test "$with_gnu_ld" = yes; then
4303 echo "$as_me:$LINENO: checking for GNU ld" >&5
4304 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4305 else
4306 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4307 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4309 if test "${lt_cv_path_LD+set}" = set; then
4310 echo $ECHO_N "(cached) $ECHO_C" >&6
4311 else
4312 if test -z "$LD"; then
4313 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4314 for ac_dir in $PATH; do
4315 IFS="$lt_save_ifs"
4316 test -z "$ac_dir" && ac_dir=.
4317 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4318 lt_cv_path_LD="$ac_dir/$ac_prog"
4319 # Check to see if the program is GNU ld. I'd rather use --version,
4320 # but apparently some variants of GNU ld only accept -v.
4321 # Break only if it was the GNU/non-GNU ld that we prefer.
4322 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4323 *GNU* | *'with BFD'*)
4324 test "$with_gnu_ld" != no && break
4327 test "$with_gnu_ld" != yes && break
4329 esac
4331 done
4332 IFS="$lt_save_ifs"
4333 else
4334 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4338 LD="$lt_cv_path_LD"
4339 if test -n "$LD"; then
4340 echo "$as_me:$LINENO: result: $LD" >&5
4341 echo "${ECHO_T}$LD" >&6
4342 else
4343 echo "$as_me:$LINENO: result: no" >&5
4344 echo "${ECHO_T}no" >&6
4346 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4347 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4348 { (exit 1); exit 1; }; }
4349 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4350 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4351 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4352 echo $ECHO_N "(cached) $ECHO_C" >&6
4353 else
4354 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4355 case `$LD -v 2>&1 </dev/null` in
4356 *GNU* | *'with BFD'*)
4357 lt_cv_prog_gnu_ld=yes
4360 lt_cv_prog_gnu_ld=no
4362 esac
4364 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4365 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4366 with_gnu_ld=$lt_cv_prog_gnu_ld
4377 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4378 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4379 if test "${lt_cv_path_NM+set}" = set; then
4380 echo $ECHO_N "(cached) $ECHO_C" >&6
4381 else
4382 if test -n "$NM"; then
4383 # Let the user override the test.
4384 lt_cv_path_NM="$NM"
4385 else
4386 lt_nm_to_check="${ac_tool_prefix}nm"
4387 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4388 lt_nm_to_check="$lt_nm_to_check nm"
4390 for lt_tmp_nm in $lt_nm_to_check; do
4391 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4392 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4393 IFS="$lt_save_ifs"
4394 test -z "$ac_dir" && ac_dir=.
4395 tmp_nm="$ac_dir/$lt_tmp_nm"
4396 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4397 # Check to see if the nm accepts a BSD-compat flag.
4398 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4399 # nm: unknown option "B" ignored
4400 # Tru64's nm complains that /dev/null is an invalid object file
4401 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4402 */dev/null* | *'Invalid file or object type'*)
4403 lt_cv_path_NM="$tmp_nm -B"
4404 break
4407 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4408 */dev/null*)
4409 lt_cv_path_NM="$tmp_nm -p"
4410 break
4413 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4414 continue # so that we can try to find one that supports BSD flags
4416 esac
4418 esac
4420 done
4421 IFS="$lt_save_ifs"
4422 done
4423 : ${lt_cv_path_NM=no}
4426 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4427 echo "${ECHO_T}$lt_cv_path_NM" >&6
4428 if test "$lt_cv_path_NM" != "no"; then
4429 NM="$lt_cv_path_NM"
4430 else
4431 # Didn't find any BSD compatible name lister, look for dumpbin.
4432 if test -n "$ac_tool_prefix"; then
4433 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4435 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4436 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4437 echo "$as_me:$LINENO: checking for $ac_word" >&5
4438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4439 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4440 echo $ECHO_N "(cached) $ECHO_C" >&6
4441 else
4442 if test -n "$DUMPBIN"; then
4443 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4444 else
4445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446 for as_dir in $PATH
4448 IFS=$as_save_IFS
4449 test -z "$as_dir" && as_dir=.
4450 for ac_exec_ext in '' $ac_executable_extensions; do
4451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4452 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4454 break 2
4456 done
4457 done
4461 DUMPBIN=$ac_cv_prog_DUMPBIN
4462 if test -n "$DUMPBIN"; then
4463 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4464 echo "${ECHO_T}$DUMPBIN" >&6
4465 else
4466 echo "$as_me:$LINENO: result: no" >&5
4467 echo "${ECHO_T}no" >&6
4470 test -n "$DUMPBIN" && break
4471 done
4473 if test -z "$DUMPBIN"; then
4474 ac_ct_DUMPBIN=$DUMPBIN
4475 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4477 # Extract the first word of "$ac_prog", so it can be a program name with args.
4478 set dummy $ac_prog; ac_word=$2
4479 echo "$as_me:$LINENO: checking for $ac_word" >&5
4480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4481 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4482 echo $ECHO_N "(cached) $ECHO_C" >&6
4483 else
4484 if test -n "$ac_ct_DUMPBIN"; then
4485 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4486 else
4487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4488 for as_dir in $PATH
4490 IFS=$as_save_IFS
4491 test -z "$as_dir" && as_dir=.
4492 for ac_exec_ext in '' $ac_executable_extensions; do
4493 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4494 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4496 break 2
4498 done
4499 done
4503 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4504 if test -n "$ac_ct_DUMPBIN"; then
4505 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4506 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4507 else
4508 echo "$as_me:$LINENO: result: no" >&5
4509 echo "${ECHO_T}no" >&6
4512 test -n "$ac_ct_DUMPBIN" && break
4513 done
4514 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4516 DUMPBIN=$ac_ct_DUMPBIN
4520 if test "$DUMPBIN" != ":"; then
4521 NM="$DUMPBIN"
4524 test -z "$NM" && NM=nm
4531 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4532 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4533 if test "${lt_cv_nm_interface+set}" = set; then
4534 echo $ECHO_N "(cached) $ECHO_C" >&6
4535 else
4536 lt_cv_nm_interface="BSD nm"
4537 echo "int some_variable = 0;" > conftest.$ac_ext
4538 (eval echo "\"\$as_me:4538: $ac_compile\"" >&5)
4539 (eval "$ac_compile" 2>conftest.err)
4540 cat conftest.err >&5
4541 (eval echo "\"\$as_me:4541: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4542 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4543 cat conftest.err >&5
4544 (eval echo "\"\$as_me:4544: output\"" >&5)
4545 cat conftest.out >&5
4546 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4547 lt_cv_nm_interface="MS dumpbin"
4549 rm -f conftest*
4551 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4552 echo "${ECHO_T}$lt_cv_nm_interface" >&6
4554 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4555 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4556 LN_S=$as_ln_s
4557 if test "$LN_S" = "ln -s"; then
4558 echo "$as_me:$LINENO: result: yes" >&5
4559 echo "${ECHO_T}yes" >&6
4560 else
4561 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4562 echo "${ECHO_T}no, using $LN_S" >&6
4565 # find the maximum length of command line arguments
4566 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4567 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4568 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4569 echo $ECHO_N "(cached) $ECHO_C" >&6
4570 else
4572 teststring="ABCD"
4574 case $build_os in
4575 msdosdjgpp*)
4576 # On DJGPP, this test can blow up pretty badly due to problems in libc
4577 # (any single argument exceeding 2000 bytes causes a buffer overrun
4578 # during glob expansion). Even if it were fixed, the result of this
4579 # check would be larger than it should be.
4580 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4583 gnu*)
4584 # Under GNU Hurd, this test is not required because there is
4585 # no limit to the length of command line arguments.
4586 # Libtool will interpret -1 as no limit whatsoever
4587 lt_cv_sys_max_cmd_len=-1;
4590 cygwin* | mingw*)
4591 # On Win9x/ME, this test blows up -- it succeeds, but takes
4592 # about 5 minutes as the teststring grows exponentially.
4593 # Worse, since 9x/ME are not pre-emptively multitasking,
4594 # you end up with a "frozen" computer, even though with patience
4595 # the test eventually succeeds (with a max line length of 256k).
4596 # Instead, let's just punt: use the minimum linelength reported by
4597 # all of the supported platforms: 8192 (on NT/2K/XP).
4598 lt_cv_sys_max_cmd_len=8192;
4601 amigaos*)
4602 # On AmigaOS with pdksh, this test takes hours, literally.
4603 # So we just punt and use a minimum line length of 8192.
4604 lt_cv_sys_max_cmd_len=8192;
4607 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4608 # This has been around since 386BSD, at least. Likely further.
4609 if test -x /sbin/sysctl; then
4610 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4611 elif test -x /usr/sbin/sysctl; then
4612 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4613 else
4614 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4616 # And add a safety zone
4617 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4618 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4621 interix*)
4622 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4623 lt_cv_sys_max_cmd_len=196608
4626 osf*)
4627 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4628 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4629 # nice to cause kernel panics so lets avoid the loop below.
4630 # First set a reasonable default.
4631 lt_cv_sys_max_cmd_len=16384
4633 if test -x /sbin/sysconfig; then
4634 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4635 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4636 esac
4639 sco3.2v5*)
4640 lt_cv_sys_max_cmd_len=102400
4642 sysv5* | sco5v6* | sysv4.2uw2*)
4643 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4644 if test -n "$kargmax"; then
4645 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4646 else
4647 lt_cv_sys_max_cmd_len=32768
4651 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4652 if test -n $lt_cv_sys_max_cmd_len; then
4653 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4654 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4655 else
4656 # Make teststring a little bigger before we do anything with it.
4657 # a 1K string should be a reasonable start.
4658 for i in 1 2 3 4 5 6 7 8 ; do
4659 teststring=$teststring$teststring
4660 done
4661 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4662 # If test is not a shell built-in, we'll probably end up computing a
4663 # maximum length that is only half of the actual maximum length, but
4664 # we can't tell.
4665 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4666 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4667 test $i != 17 # 1/2 MB should be enough
4669 i=`expr $i + 1`
4670 teststring=$teststring$teststring
4671 done
4672 # Only check the string length outside the loop.
4673 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4674 teststring=
4675 # Add a significant safety factor because C++ compilers can tack on
4676 # massive amounts of additional arguments before passing them to the
4677 # linker. It appears as though 1/2 is a usable value.
4678 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4681 esac
4685 if test -n $lt_cv_sys_max_cmd_len ; then
4686 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4687 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4688 else
4689 echo "$as_me:$LINENO: result: none" >&5
4690 echo "${ECHO_T}none" >&6
4692 max_cmd_len=$lt_cv_sys_max_cmd_len
4700 : ${CP="cp -f"}
4701 : ${MV="mv -f"}
4702 : ${RM="rm -f"}
4704 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4705 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4706 # Try some XSI features
4707 xsi_shell=no
4708 ( _lt_dummy="a/b/c"
4709 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4710 = c,a/b,, ) >/dev/null 2>&1 \
4711 && xsi_shell=yes
4712 echo "$as_me:$LINENO: result: $xsi_shell" >&5
4713 echo "${ECHO_T}$xsi_shell" >&6
4716 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4717 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4718 lt_shell_append=no
4719 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4720 >/dev/null 2>&1 \
4721 && lt_shell_append=yes
4722 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4723 echo "${ECHO_T}$lt_shell_append" >&6
4726 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4727 lt_unset=unset
4728 else
4729 lt_unset=false
4736 # test EBCDIC or ASCII
4737 case `echo X|tr X '\101'` in
4738 A) # ASCII based system
4739 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4740 lt_SP2NL='tr \040 \012'
4741 lt_NL2SP='tr \015\012 \040\040'
4743 *) # EBCDIC based system
4744 lt_SP2NL='tr \100 \n'
4745 lt_NL2SP='tr \r\n \100\100'
4747 esac
4757 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4758 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4759 if test "${lt_cv_ld_reload_flag+set}" = set; then
4760 echo $ECHO_N "(cached) $ECHO_C" >&6
4761 else
4762 lt_cv_ld_reload_flag='-r'
4764 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4765 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4766 reload_flag=$lt_cv_ld_reload_flag
4767 case $reload_flag in
4768 "" | " "*) ;;
4769 *) reload_flag=" $reload_flag" ;;
4770 esac
4771 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4772 case $host_os in
4773 darwin*)
4774 if test "$GCC" = yes; then
4775 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4776 else
4777 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4780 esac
4791 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4792 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4793 if test "${lt_cv_deplibs_check_method+set}" = set; then
4794 echo $ECHO_N "(cached) $ECHO_C" >&6
4795 else
4796 lt_cv_file_magic_cmd='$MAGIC_CMD'
4797 lt_cv_file_magic_test_file=
4798 lt_cv_deplibs_check_method='unknown'
4799 # Need to set the preceding variable on all platforms that support
4800 # interlibrary dependencies.
4801 # 'none' -- dependencies not supported.
4802 # `unknown' -- same as none, but documents that we really don't know.
4803 # 'pass_all' -- all dependencies passed with no checks.
4804 # 'test_compile' -- check by making test program.
4805 # 'file_magic [[regex]]' -- check by looking for files in library path
4806 # which responds to the $file_magic_cmd with a given extended regex.
4807 # If you have `file' or equivalent on your system and you're not sure
4808 # whether `pass_all' will *always* work, you probably want this one.
4810 case $host_os in
4811 aix[4-9]*)
4812 lt_cv_deplibs_check_method=pass_all
4815 beos*)
4816 lt_cv_deplibs_check_method=pass_all
4819 bsdi[45]*)
4820 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4821 lt_cv_file_magic_cmd='/usr/bin/file -L'
4822 lt_cv_file_magic_test_file=/shlib/libc.so
4825 cygwin*)
4826 # func_win32_libid is a shell function defined in ltmain.sh
4827 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4828 lt_cv_file_magic_cmd='func_win32_libid'
4831 mingw* | pw32*)
4832 # Base MSYS/MinGW do not provide the 'file' command needed by
4833 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4834 # unless we find 'file', for example because we are cross-compiling.
4835 if ( file / ) >/dev/null 2>&1; then
4836 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4837 lt_cv_file_magic_cmd='func_win32_libid'
4838 else
4839 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4840 lt_cv_file_magic_cmd='$OBJDUMP -f'
4844 darwin* | rhapsody*)
4845 lt_cv_deplibs_check_method=pass_all
4848 freebsd* | dragonfly*)
4849 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4850 case $host_cpu in
4851 i*86 )
4852 # Not sure whether the presence of OpenBSD here was a mistake.
4853 # Let's accept both of them until this is cleared up.
4854 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4855 lt_cv_file_magic_cmd=/usr/bin/file
4856 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4858 esac
4859 else
4860 lt_cv_deplibs_check_method=pass_all
4864 gnu*)
4865 lt_cv_deplibs_check_method=pass_all
4868 hpux10.20* | hpux11*)
4869 lt_cv_file_magic_cmd=/usr/bin/file
4870 case $host_cpu in
4871 ia64*)
4872 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4873 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4875 hppa*64*)
4876 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]'
4877 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4880 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4881 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4883 esac
4886 interix[3-9]*)
4887 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4888 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4891 irix5* | irix6* | nonstopux*)
4892 case $LD in
4893 *-32|*"-32 ") libmagic=32-bit;;
4894 *-n32|*"-n32 ") libmagic=N32;;
4895 *-64|*"-64 ") libmagic=64-bit;;
4896 *) libmagic=never-match;;
4897 esac
4898 lt_cv_deplibs_check_method=pass_all
4901 # This must be Linux ELF.
4902 linux* | k*bsd*-gnu)
4903 lt_cv_deplibs_check_method=pass_all
4906 netbsd*)
4907 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4908 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4909 else
4910 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4914 newos6*)
4915 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4916 lt_cv_file_magic_cmd=/usr/bin/file
4917 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4920 *nto* | *qnx*)
4921 lt_cv_deplibs_check_method=pass_all
4924 openbsd*)
4925 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4926 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4927 else
4928 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4932 osf3* | osf4* | osf5*)
4933 lt_cv_deplibs_check_method=pass_all
4936 rdos*)
4937 lt_cv_deplibs_check_method=pass_all
4940 solaris*)
4941 lt_cv_deplibs_check_method=pass_all
4944 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4945 lt_cv_deplibs_check_method=pass_all
4948 sysv4 | sysv4.3*)
4949 case $host_vendor in
4950 motorola)
4951 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]'
4952 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4954 ncr)
4955 lt_cv_deplibs_check_method=pass_all
4957 sequent)
4958 lt_cv_file_magic_cmd='/bin/file'
4959 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4961 sni)
4962 lt_cv_file_magic_cmd='/bin/file'
4963 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4964 lt_cv_file_magic_test_file=/lib/libc.so
4966 siemens)
4967 lt_cv_deplibs_check_method=pass_all
4970 lt_cv_deplibs_check_method=pass_all
4972 esac
4975 tpf*)
4976 lt_cv_deplibs_check_method=pass_all
4978 esac
4981 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4982 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4983 file_magic_cmd=$lt_cv_file_magic_cmd
4984 deplibs_check_method=$lt_cv_deplibs_check_method
4985 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4998 if test -n "$ac_tool_prefix"; then
4999 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5000 set dummy ${ac_tool_prefix}ar; ac_word=$2
5001 echo "$as_me:$LINENO: checking for $ac_word" >&5
5002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5003 if test "${ac_cv_prog_AR+set}" = set; then
5004 echo $ECHO_N "(cached) $ECHO_C" >&6
5005 else
5006 if test -n "$AR"; then
5007 ac_cv_prog_AR="$AR" # Let the user override the test.
5008 else
5009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5010 for as_dir in $PATH
5012 IFS=$as_save_IFS
5013 test -z "$as_dir" && as_dir=.
5014 for ac_exec_ext in '' $ac_executable_extensions; do
5015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5016 ac_cv_prog_AR="${ac_tool_prefix}ar"
5017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5018 break 2
5020 done
5021 done
5025 AR=$ac_cv_prog_AR
5026 if test -n "$AR"; then
5027 echo "$as_me:$LINENO: result: $AR" >&5
5028 echo "${ECHO_T}$AR" >&6
5029 else
5030 echo "$as_me:$LINENO: result: no" >&5
5031 echo "${ECHO_T}no" >&6
5035 if test -z "$ac_cv_prog_AR"; then
5036 ac_ct_AR=$AR
5037 # Extract the first word of "ar", so it can be a program name with args.
5038 set dummy ar; ac_word=$2
5039 echo "$as_me:$LINENO: checking for $ac_word" >&5
5040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5041 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5042 echo $ECHO_N "(cached) $ECHO_C" >&6
5043 else
5044 if test -n "$ac_ct_AR"; then
5045 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5046 else
5047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5048 for as_dir in $PATH
5050 IFS=$as_save_IFS
5051 test -z "$as_dir" && as_dir=.
5052 for ac_exec_ext in '' $ac_executable_extensions; do
5053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5054 ac_cv_prog_ac_ct_AR="ar"
5055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5056 break 2
5058 done
5059 done
5061 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5064 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5065 if test -n "$ac_ct_AR"; then
5066 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5067 echo "${ECHO_T}$ac_ct_AR" >&6
5068 else
5069 echo "$as_me:$LINENO: result: no" >&5
5070 echo "${ECHO_T}no" >&6
5073 AR=$ac_ct_AR
5074 else
5075 AR="$ac_cv_prog_AR"
5078 test -z "$AR" && AR=ar
5079 test -z "$AR_FLAGS" && AR_FLAGS=cru
5091 if test -n "$ac_tool_prefix"; then
5092 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5093 set dummy ${ac_tool_prefix}strip; ac_word=$2
5094 echo "$as_me:$LINENO: checking for $ac_word" >&5
5095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5096 if test "${ac_cv_prog_STRIP+set}" = set; then
5097 echo $ECHO_N "(cached) $ECHO_C" >&6
5098 else
5099 if test -n "$STRIP"; then
5100 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5101 else
5102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5103 for as_dir in $PATH
5105 IFS=$as_save_IFS
5106 test -z "$as_dir" && as_dir=.
5107 for ac_exec_ext in '' $ac_executable_extensions; do
5108 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5109 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5111 break 2
5113 done
5114 done
5118 STRIP=$ac_cv_prog_STRIP
5119 if test -n "$STRIP"; then
5120 echo "$as_me:$LINENO: result: $STRIP" >&5
5121 echo "${ECHO_T}$STRIP" >&6
5122 else
5123 echo "$as_me:$LINENO: result: no" >&5
5124 echo "${ECHO_T}no" >&6
5128 if test -z "$ac_cv_prog_STRIP"; then
5129 ac_ct_STRIP=$STRIP
5130 # Extract the first word of "strip", so it can be a program name with args.
5131 set dummy strip; ac_word=$2
5132 echo "$as_me:$LINENO: checking for $ac_word" >&5
5133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5134 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5135 echo $ECHO_N "(cached) $ECHO_C" >&6
5136 else
5137 if test -n "$ac_ct_STRIP"; then
5138 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5139 else
5140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5141 for as_dir in $PATH
5143 IFS=$as_save_IFS
5144 test -z "$as_dir" && as_dir=.
5145 for ac_exec_ext in '' $ac_executable_extensions; do
5146 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5147 ac_cv_prog_ac_ct_STRIP="strip"
5148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5149 break 2
5151 done
5152 done
5154 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5157 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5158 if test -n "$ac_ct_STRIP"; then
5159 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5160 echo "${ECHO_T}$ac_ct_STRIP" >&6
5161 else
5162 echo "$as_me:$LINENO: result: no" >&5
5163 echo "${ECHO_T}no" >&6
5166 STRIP=$ac_ct_STRIP
5167 else
5168 STRIP="$ac_cv_prog_STRIP"
5171 test -z "$STRIP" && STRIP=:
5178 if test -n "$ac_tool_prefix"; then
5179 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5180 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5181 echo "$as_me:$LINENO: checking for $ac_word" >&5
5182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5183 if test "${ac_cv_prog_RANLIB+set}" = set; then
5184 echo $ECHO_N "(cached) $ECHO_C" >&6
5185 else
5186 if test -n "$RANLIB"; then
5187 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5188 else
5189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190 for as_dir in $PATH
5192 IFS=$as_save_IFS
5193 test -z "$as_dir" && as_dir=.
5194 for ac_exec_ext in '' $ac_executable_extensions; do
5195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5196 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5198 break 2
5200 done
5201 done
5205 RANLIB=$ac_cv_prog_RANLIB
5206 if test -n "$RANLIB"; then
5207 echo "$as_me:$LINENO: result: $RANLIB" >&5
5208 echo "${ECHO_T}$RANLIB" >&6
5209 else
5210 echo "$as_me:$LINENO: result: no" >&5
5211 echo "${ECHO_T}no" >&6
5215 if test -z "$ac_cv_prog_RANLIB"; then
5216 ac_ct_RANLIB=$RANLIB
5217 # Extract the first word of "ranlib", so it can be a program name with args.
5218 set dummy ranlib; ac_word=$2
5219 echo "$as_me:$LINENO: checking for $ac_word" >&5
5220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5221 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5222 echo $ECHO_N "(cached) $ECHO_C" >&6
5223 else
5224 if test -n "$ac_ct_RANLIB"; then
5225 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5226 else
5227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228 for as_dir in $PATH
5230 IFS=$as_save_IFS
5231 test -z "$as_dir" && as_dir=.
5232 for ac_exec_ext in '' $ac_executable_extensions; do
5233 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5234 ac_cv_prog_ac_ct_RANLIB="ranlib"
5235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5236 break 2
5238 done
5239 done
5241 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5244 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5245 if test -n "$ac_ct_RANLIB"; then
5246 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5247 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5248 else
5249 echo "$as_me:$LINENO: result: no" >&5
5250 echo "${ECHO_T}no" >&6
5253 RANLIB=$ac_ct_RANLIB
5254 else
5255 RANLIB="$ac_cv_prog_RANLIB"
5258 test -z "$RANLIB" && RANLIB=:
5265 # Determine commands to create old-style static archives.
5266 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5267 old_postinstall_cmds='chmod 644 $oldlib'
5268 old_postuninstall_cmds=
5270 if test -n "$RANLIB"; then
5271 case $host_os in
5272 openbsd*)
5273 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5276 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5278 esac
5279 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5315 # If no C compiler was specified, use CC.
5316 LTCC=${LTCC-"$CC"}
5318 # If no C compiler flags were specified, use CFLAGS.
5319 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5321 # Allow CC to be a program name with arguments.
5322 compiler=$CC
5325 # Check for command to grab the raw symbol name followed by C symbol from nm.
5326 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5327 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5328 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5329 echo $ECHO_N "(cached) $ECHO_C" >&6
5330 else
5332 # These are sane defaults that work on at least a few old systems.
5333 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5335 # Character class describing NM global symbol codes.
5336 symcode='[BCDEGRST]'
5338 # Regexp to match symbols that can be accessed directly from C.
5339 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5341 # Define system-specific variables.
5342 case $host_os in
5343 aix*)
5344 symcode='[BCDT]'
5346 cygwin* | mingw* | pw32*)
5347 symcode='[ABCDGISTW]'
5349 hpux*)
5350 if test "$host_cpu" = ia64; then
5351 symcode='[ABCDEGRST]'
5354 irix* | nonstopux*)
5355 symcode='[BCDEGRST]'
5357 osf*)
5358 symcode='[BCDEGQRST]'
5360 solaris*)
5361 symcode='[BDRT]'
5363 sco3.2v5*)
5364 symcode='[DT]'
5366 sysv4.2uw2*)
5367 symcode='[DT]'
5369 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5370 symcode='[ABDT]'
5372 sysv4)
5373 symcode='[DFNSTU]'
5375 esac
5377 # If we're using GNU nm, then use its standard symbol codes.
5378 case `$NM -V 2>&1` in
5379 *GNU* | *'with BFD'*)
5380 symcode='[ABCDGIRSTW]' ;;
5381 esac
5383 # Transform an extracted symbol line into a proper C declaration.
5384 # Some systems (esp. on ia64) link data and code symbols differently,
5385 # so use this general approach.
5386 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5388 # Transform an extracted symbol line into symbol name and symbol address
5389 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5391 # Handle CRLF in mingw tool chain
5392 opt_cr=
5393 case $build_os in
5394 mingw*)
5395 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5397 esac
5399 # Try without a prefix underscore, then with it.
5400 for ac_symprfx in "" "_"; do
5402 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5403 symxfrm="\\1 $ac_symprfx\\2 \\2"
5405 # Write the raw and C identifiers.
5406 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5407 # Fake it for dumpbin and say T for any non-static function
5408 # and D for any global variable.
5409 # Also find C++ and __fastcall symbols from MSVC++,
5410 # which start with @ or ?.
5411 lt_cv_sys_global_symbol_pipe="$AWK '"\
5412 " {last_section=section; section=\$ 3};"\
5413 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5414 " \$ 0!~/External *\|/{next};"\
5415 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5416 " {if(hide[section]) next};"\
5417 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5418 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5419 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5420 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5421 " ' prfx=^$ac_symprfx"
5422 else
5423 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5426 # Check to see that the pipe works correctly.
5427 pipe_works=no
5429 rm -f conftest*
5430 cat > conftest.$ac_ext <<_LT_EOF
5431 #ifdef __cplusplus
5432 extern "C" {
5433 #endif
5434 char nm_test_var;
5435 void nm_test_func(void);
5436 void nm_test_func(void){}
5437 #ifdef __cplusplus
5439 #endif
5440 int main(){nm_test_var='a';nm_test_func();return(0);}
5441 _LT_EOF
5443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5444 (eval $ac_compile) 2>&5
5445 ac_status=$?
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); }; then
5448 # Now try to grab the symbols.
5449 nlist=conftest.nm
5450 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5451 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5452 ac_status=$?
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454 (exit $ac_status); } && test -s "$nlist"; then
5455 # Try sorting and uniquifying the output.
5456 if sort "$nlist" | uniq > "$nlist"T; then
5457 mv -f "$nlist"T "$nlist"
5458 else
5459 rm -f "$nlist"T
5462 # Make sure that we snagged all the symbols we need.
5463 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5464 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5465 cat <<_LT_EOF > conftest.$ac_ext
5466 #ifdef __cplusplus
5467 extern "C" {
5468 #endif
5470 _LT_EOF
5471 # Now generate the symbol file.
5472 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5474 cat <<_LT_EOF >> conftest.$ac_ext
5476 /* The mapping between symbol names and symbols. */
5477 const struct {
5478 const char *name;
5479 void *address;
5481 lt__PROGRAM__LTX_preloaded_symbols[] =
5483 { "@PROGRAM@", (void *) 0 },
5484 _LT_EOF
5485 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5486 cat <<\_LT_EOF >> conftest.$ac_ext
5487 {0, (void *) 0}
5490 /* This works around a problem in FreeBSD linker */
5491 #ifdef FREEBSD_WORKAROUND
5492 static const void *lt_preloaded_setup() {
5493 return lt__PROGRAM__LTX_preloaded_symbols;
5495 #endif
5497 #ifdef __cplusplus
5499 #endif
5500 _LT_EOF
5501 # Now try linking the two files.
5502 mv conftest.$ac_objext conftstm.$ac_objext
5503 lt_save_LIBS="$LIBS"
5504 lt_save_CFLAGS="$CFLAGS"
5505 LIBS="conftstm.$ac_objext"
5506 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5508 (eval $ac_link) 2>&5
5509 ac_status=$?
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5512 pipe_works=yes
5514 LIBS="$lt_save_LIBS"
5515 CFLAGS="$lt_save_CFLAGS"
5516 else
5517 echo "cannot find nm_test_func in $nlist" >&5
5519 else
5520 echo "cannot find nm_test_var in $nlist" >&5
5522 else
5523 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5525 else
5526 echo "$progname: failed program was:" >&5
5527 cat conftest.$ac_ext >&5
5529 rm -f conftest* conftst*
5531 # Do not use the global_symbol_pipe unless it works.
5532 if test "$pipe_works" = yes; then
5533 break
5534 else
5535 lt_cv_sys_global_symbol_pipe=
5537 done
5541 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5542 lt_cv_sys_global_symbol_to_cdecl=
5544 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5545 echo "$as_me:$LINENO: result: failed" >&5
5546 echo "${ECHO_T}failed" >&6
5547 else
5548 echo "$as_me:$LINENO: result: ok" >&5
5549 echo "${ECHO_T}ok" >&6
5568 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5569 if test "${enable_libtool_lock+set}" = set; then
5570 enableval="$enable_libtool_lock"
5573 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5575 # Some flags need to be propagated to the compiler or linker for good
5576 # libtool support.
5577 case $host in
5578 ia64-*-hpux*)
5579 # Find out which ABI we are using.
5580 echo 'int i;' > conftest.$ac_ext
5581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5582 (eval $ac_compile) 2>&5
5583 ac_status=$?
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); }; then
5586 case `/usr/bin/file conftest.$ac_objext` in
5587 *ELF-32*)
5588 HPUX_IA64_MODE="32"
5590 *ELF-64*)
5591 HPUX_IA64_MODE="64"
5593 esac
5595 rm -rf conftest*
5597 *-*-irix6*)
5598 # Find out which ABI we are using.
5599 echo '#line 5599 "configure"' > conftest.$ac_ext
5600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5601 (eval $ac_compile) 2>&5
5602 ac_status=$?
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); }; then
5605 if test "$lt_cv_prog_gnu_ld" = yes; then
5606 case `/usr/bin/file conftest.$ac_objext` in
5607 *32-bit*)
5608 LD="${LD-ld} -melf32bsmip"
5610 *N32*)
5611 LD="${LD-ld} -melf32bmipn32"
5613 *64-bit*)
5614 LD="${LD-ld} -melf64bmip"
5616 esac
5617 else
5618 case `/usr/bin/file conftest.$ac_objext` in
5619 *32-bit*)
5620 LD="${LD-ld} -32"
5622 *N32*)
5623 LD="${LD-ld} -n32"
5625 *64-bit*)
5626 LD="${LD-ld} -64"
5628 esac
5631 rm -rf conftest*
5634 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5635 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5636 # Find out which ABI we are using.
5637 echo 'int i;' > conftest.$ac_ext
5638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5639 (eval $ac_compile) 2>&5
5640 ac_status=$?
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); }; then
5643 case `/usr/bin/file conftest.o` in
5644 *32-bit*)
5645 case $host in
5646 x86_64-*kfreebsd*-gnu)
5647 LD="${LD-ld} -m elf_i386_fbsd"
5649 x86_64-*linux*)
5650 LD="${LD-ld} -m elf_i386"
5652 ppc64-*linux*|powerpc64-*linux*)
5653 LD="${LD-ld} -m elf32ppclinux"
5655 s390x-*linux*)
5656 LD="${LD-ld} -m elf_s390"
5658 sparc64-*linux*)
5659 LD="${LD-ld} -m elf32_sparc"
5661 esac
5663 *64-bit*)
5664 case $host in
5665 x86_64-*kfreebsd*-gnu)
5666 LD="${LD-ld} -m elf_x86_64_fbsd"
5668 x86_64-*linux*)
5669 LD="${LD-ld} -m elf_x86_64"
5671 ppc*-*linux*|powerpc*-*linux*)
5672 LD="${LD-ld} -m elf64ppc"
5674 s390*-*linux*|s390*-*tpf*)
5675 LD="${LD-ld} -m elf64_s390"
5677 sparc*-*linux*)
5678 LD="${LD-ld} -m elf64_sparc"
5680 esac
5682 esac
5684 rm -rf conftest*
5687 *-*-sco3.2v5*)
5688 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5689 SAVE_CFLAGS="$CFLAGS"
5690 CFLAGS="$CFLAGS -belf"
5691 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5692 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5693 if test "${lt_cv_cc_needs_belf+set}" = set; then
5694 echo $ECHO_N "(cached) $ECHO_C" >&6
5695 else
5696 ac_ext=c
5697 ac_cpp='$CPP $CPPFLAGS'
5698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5702 cat >conftest.$ac_ext <<_ACEOF
5703 /* confdefs.h. */
5704 _ACEOF
5705 cat confdefs.h >>conftest.$ac_ext
5706 cat >>conftest.$ac_ext <<_ACEOF
5707 /* end confdefs.h. */
5710 main ()
5714 return 0;
5716 _ACEOF
5717 rm -f conftest.$ac_objext conftest$ac_exeext
5718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5719 (eval $ac_link) 2>conftest.er1
5720 ac_status=$?
5721 grep -v '^ *+' conftest.er1 >conftest.err
5722 rm -f conftest.er1
5723 cat conftest.err >&5
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); } &&
5726 { ac_try='test -z "$ac_c_werror_flag"
5727 || test ! -s conftest.err'
5728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5729 (eval $ac_try) 2>&5
5730 ac_status=$?
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); }; } &&
5733 { ac_try='test -s conftest$ac_exeext'
5734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5735 (eval $ac_try) 2>&5
5736 ac_status=$?
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); }; }; then
5739 lt_cv_cc_needs_belf=yes
5740 else
5741 echo "$as_me: failed program was:" >&5
5742 sed 's/^/| /' conftest.$ac_ext >&5
5744 lt_cv_cc_needs_belf=no
5746 rm -f conftest.err conftest.$ac_objext \
5747 conftest$ac_exeext conftest.$ac_ext
5748 ac_ext=c
5749 ac_cpp='$CPP $CPPFLAGS'
5750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5755 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5756 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5757 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5758 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5759 CFLAGS="$SAVE_CFLAGS"
5762 sparc*-*solaris*)
5763 # Find out which ABI we are using.
5764 echo 'int i;' > conftest.$ac_ext
5765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5766 (eval $ac_compile) 2>&5
5767 ac_status=$?
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); }; then
5770 case `/usr/bin/file conftest.o` in
5771 *64-bit*)
5772 case $lt_cv_prog_gnu_ld in
5773 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5774 *) LD="${LD-ld} -64" ;;
5775 esac
5777 esac
5779 rm -rf conftest*
5781 esac
5783 need_locks="$enable_libtool_lock"
5785 ac_ext=c
5786 ac_cpp='$CPP $CPPFLAGS'
5787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5790 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5791 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5792 # On Suns, sometimes $CPP names a directory.
5793 if test -n "$CPP" && test -d "$CPP"; then
5794 CPP=
5796 if test -z "$CPP"; then
5797 if test "${ac_cv_prog_CPP+set}" = set; then
5798 echo $ECHO_N "(cached) $ECHO_C" >&6
5799 else
5800 # Double quotes because CPP needs to be expanded
5801 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5803 ac_preproc_ok=false
5804 for ac_c_preproc_warn_flag in '' yes
5806 # Use a header file that comes with gcc, so configuring glibc
5807 # with a fresh cross-compiler works.
5808 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5809 # <limits.h> exists even on freestanding compilers.
5810 # On the NeXT, cc -E runs the code through the compiler's parser,
5811 # not just through cpp. "Syntax error" is here to catch this case.
5812 cat >conftest.$ac_ext <<_ACEOF
5813 /* confdefs.h. */
5814 _ACEOF
5815 cat confdefs.h >>conftest.$ac_ext
5816 cat >>conftest.$ac_ext <<_ACEOF
5817 /* end confdefs.h. */
5818 #ifdef __STDC__
5819 # include <limits.h>
5820 #else
5821 # include <assert.h>
5822 #endif
5823 Syntax error
5824 _ACEOF
5825 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5826 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5827 ac_status=$?
5828 grep -v '^ *+' conftest.er1 >conftest.err
5829 rm -f conftest.er1
5830 cat conftest.err >&5
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); } >/dev/null; then
5833 if test -s conftest.err; then
5834 ac_cpp_err=$ac_c_preproc_warn_flag
5835 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5836 else
5837 ac_cpp_err=
5839 else
5840 ac_cpp_err=yes
5842 if test -z "$ac_cpp_err"; then
5844 else
5845 echo "$as_me: failed program was:" >&5
5846 sed 's/^/| /' conftest.$ac_ext >&5
5848 # Broken: fails on valid input.
5849 continue
5851 rm -f conftest.err conftest.$ac_ext
5853 # OK, works on sane cases. Now check whether non-existent headers
5854 # can be detected and how.
5855 cat >conftest.$ac_ext <<_ACEOF
5856 /* confdefs.h. */
5857 _ACEOF
5858 cat confdefs.h >>conftest.$ac_ext
5859 cat >>conftest.$ac_ext <<_ACEOF
5860 /* end confdefs.h. */
5861 #include <ac_nonexistent.h>
5862 _ACEOF
5863 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5864 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5865 ac_status=$?
5866 grep -v '^ *+' conftest.er1 >conftest.err
5867 rm -f conftest.er1
5868 cat conftest.err >&5
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); } >/dev/null; then
5871 if test -s conftest.err; then
5872 ac_cpp_err=$ac_c_preproc_warn_flag
5873 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5874 else
5875 ac_cpp_err=
5877 else
5878 ac_cpp_err=yes
5880 if test -z "$ac_cpp_err"; then
5881 # Broken: success on invalid input.
5882 continue
5883 else
5884 echo "$as_me: failed program was:" >&5
5885 sed 's/^/| /' conftest.$ac_ext >&5
5887 # Passes both tests.
5888 ac_preproc_ok=:
5889 break
5891 rm -f conftest.err conftest.$ac_ext
5893 done
5894 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5895 rm -f conftest.err conftest.$ac_ext
5896 if $ac_preproc_ok; then
5897 break
5900 done
5901 ac_cv_prog_CPP=$CPP
5904 CPP=$ac_cv_prog_CPP
5905 else
5906 ac_cv_prog_CPP=$CPP
5908 echo "$as_me:$LINENO: result: $CPP" >&5
5909 echo "${ECHO_T}$CPP" >&6
5910 ac_preproc_ok=false
5911 for ac_c_preproc_warn_flag in '' yes
5913 # Use a header file that comes with gcc, so configuring glibc
5914 # with a fresh cross-compiler works.
5915 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5916 # <limits.h> exists even on freestanding compilers.
5917 # On the NeXT, cc -E runs the code through the compiler's parser,
5918 # not just through cpp. "Syntax error" is here to catch this case.
5919 cat >conftest.$ac_ext <<_ACEOF
5920 /* confdefs.h. */
5921 _ACEOF
5922 cat confdefs.h >>conftest.$ac_ext
5923 cat >>conftest.$ac_ext <<_ACEOF
5924 /* end confdefs.h. */
5925 #ifdef __STDC__
5926 # include <limits.h>
5927 #else
5928 # include <assert.h>
5929 #endif
5930 Syntax error
5931 _ACEOF
5932 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5933 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5934 ac_status=$?
5935 grep -v '^ *+' conftest.er1 >conftest.err
5936 rm -f conftest.er1
5937 cat conftest.err >&5
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); } >/dev/null; then
5940 if test -s conftest.err; then
5941 ac_cpp_err=$ac_c_preproc_warn_flag
5942 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5943 else
5944 ac_cpp_err=
5946 else
5947 ac_cpp_err=yes
5949 if test -z "$ac_cpp_err"; then
5951 else
5952 echo "$as_me: failed program was:" >&5
5953 sed 's/^/| /' conftest.$ac_ext >&5
5955 # Broken: fails on valid input.
5956 continue
5958 rm -f conftest.err conftest.$ac_ext
5960 # OK, works on sane cases. Now check whether non-existent headers
5961 # can be detected and how.
5962 cat >conftest.$ac_ext <<_ACEOF
5963 /* confdefs.h. */
5964 _ACEOF
5965 cat confdefs.h >>conftest.$ac_ext
5966 cat >>conftest.$ac_ext <<_ACEOF
5967 /* end confdefs.h. */
5968 #include <ac_nonexistent.h>
5969 _ACEOF
5970 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5971 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5972 ac_status=$?
5973 grep -v '^ *+' conftest.er1 >conftest.err
5974 rm -f conftest.er1
5975 cat conftest.err >&5
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); } >/dev/null; then
5978 if test -s conftest.err; then
5979 ac_cpp_err=$ac_c_preproc_warn_flag
5980 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5981 else
5982 ac_cpp_err=
5984 else
5985 ac_cpp_err=yes
5987 if test -z "$ac_cpp_err"; then
5988 # Broken: success on invalid input.
5989 continue
5990 else
5991 echo "$as_me: failed program was:" >&5
5992 sed 's/^/| /' conftest.$ac_ext >&5
5994 # Passes both tests.
5995 ac_preproc_ok=:
5996 break
5998 rm -f conftest.err conftest.$ac_ext
6000 done
6001 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6002 rm -f conftest.err conftest.$ac_ext
6003 if $ac_preproc_ok; then
6005 else
6006 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6007 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6008 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6009 See \`config.log' for more details." >&5
6010 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6011 See \`config.log' for more details." >&2;}
6012 { (exit 1); exit 1; }; }; }
6015 ac_ext=c
6016 ac_cpp='$CPP $CPPFLAGS'
6017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6022 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6023 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6024 if test "${ac_cv_header_stdc+set}" = set; then
6025 echo $ECHO_N "(cached) $ECHO_C" >&6
6026 else
6027 cat >conftest.$ac_ext <<_ACEOF
6028 /* confdefs.h. */
6029 _ACEOF
6030 cat confdefs.h >>conftest.$ac_ext
6031 cat >>conftest.$ac_ext <<_ACEOF
6032 /* end confdefs.h. */
6033 #include <stdlib.h>
6034 #include <stdarg.h>
6035 #include <string.h>
6036 #include <float.h>
6039 main ()
6043 return 0;
6045 _ACEOF
6046 rm -f conftest.$ac_objext
6047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6048 (eval $ac_compile) 2>conftest.er1
6049 ac_status=$?
6050 grep -v '^ *+' conftest.er1 >conftest.err
6051 rm -f conftest.er1
6052 cat conftest.err >&5
6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); } &&
6055 { ac_try='test -z "$ac_c_werror_flag"
6056 || test ! -s conftest.err'
6057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6058 (eval $ac_try) 2>&5
6059 ac_status=$?
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); }; } &&
6062 { ac_try='test -s conftest.$ac_objext'
6063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6064 (eval $ac_try) 2>&5
6065 ac_status=$?
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); }; }; then
6068 ac_cv_header_stdc=yes
6069 else
6070 echo "$as_me: failed program was:" >&5
6071 sed 's/^/| /' conftest.$ac_ext >&5
6073 ac_cv_header_stdc=no
6075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6077 if test $ac_cv_header_stdc = yes; then
6078 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6079 cat >conftest.$ac_ext <<_ACEOF
6080 /* confdefs.h. */
6081 _ACEOF
6082 cat confdefs.h >>conftest.$ac_ext
6083 cat >>conftest.$ac_ext <<_ACEOF
6084 /* end confdefs.h. */
6085 #include <string.h>
6087 _ACEOF
6088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6089 $EGREP "memchr" >/dev/null 2>&1; then
6091 else
6092 ac_cv_header_stdc=no
6094 rm -f conftest*
6098 if test $ac_cv_header_stdc = yes; then
6099 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6100 cat >conftest.$ac_ext <<_ACEOF
6101 /* confdefs.h. */
6102 _ACEOF
6103 cat confdefs.h >>conftest.$ac_ext
6104 cat >>conftest.$ac_ext <<_ACEOF
6105 /* end confdefs.h. */
6106 #include <stdlib.h>
6108 _ACEOF
6109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6110 $EGREP "free" >/dev/null 2>&1; then
6112 else
6113 ac_cv_header_stdc=no
6115 rm -f conftest*
6119 if test $ac_cv_header_stdc = yes; then
6120 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6121 if test "$cross_compiling" = yes; then
6123 else
6124 cat >conftest.$ac_ext <<_ACEOF
6125 /* confdefs.h. */
6126 _ACEOF
6127 cat confdefs.h >>conftest.$ac_ext
6128 cat >>conftest.$ac_ext <<_ACEOF
6129 /* end confdefs.h. */
6130 #include <ctype.h>
6131 #if ((' ' & 0x0FF) == 0x020)
6132 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6133 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6134 #else
6135 # define ISLOWER(c) \
6136 (('a' <= (c) && (c) <= 'i') \
6137 || ('j' <= (c) && (c) <= 'r') \
6138 || ('s' <= (c) && (c) <= 'z'))
6139 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6140 #endif
6142 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6144 main ()
6146 int i;
6147 for (i = 0; i < 256; i++)
6148 if (XOR (islower (i), ISLOWER (i))
6149 || toupper (i) != TOUPPER (i))
6150 exit(2);
6151 exit (0);
6153 _ACEOF
6154 rm -f conftest$ac_exeext
6155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6156 (eval $ac_link) 2>&5
6157 ac_status=$?
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6161 (eval $ac_try) 2>&5
6162 ac_status=$?
6163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164 (exit $ac_status); }; }; then
6166 else
6167 echo "$as_me: program exited with status $ac_status" >&5
6168 echo "$as_me: failed program was:" >&5
6169 sed 's/^/| /' conftest.$ac_ext >&5
6171 ( exit $ac_status )
6172 ac_cv_header_stdc=no
6174 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6178 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6179 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6180 if test $ac_cv_header_stdc = yes; then
6182 cat >>confdefs.h <<\_ACEOF
6183 #define STDC_HEADERS 1
6184 _ACEOF
6188 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6198 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6199 inttypes.h stdint.h unistd.h
6201 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6202 echo "$as_me:$LINENO: checking for $ac_header" >&5
6203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6204 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6205 echo $ECHO_N "(cached) $ECHO_C" >&6
6206 else
6207 cat >conftest.$ac_ext <<_ACEOF
6208 /* confdefs.h. */
6209 _ACEOF
6210 cat confdefs.h >>conftest.$ac_ext
6211 cat >>conftest.$ac_ext <<_ACEOF
6212 /* end confdefs.h. */
6213 $ac_includes_default
6215 #include <$ac_header>
6216 _ACEOF
6217 rm -f conftest.$ac_objext
6218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6219 (eval $ac_compile) 2>conftest.er1
6220 ac_status=$?
6221 grep -v '^ *+' conftest.er1 >conftest.err
6222 rm -f conftest.er1
6223 cat conftest.err >&5
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); } &&
6226 { ac_try='test -z "$ac_c_werror_flag"
6227 || test ! -s conftest.err'
6228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6229 (eval $ac_try) 2>&5
6230 ac_status=$?
6231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232 (exit $ac_status); }; } &&
6233 { ac_try='test -s conftest.$ac_objext'
6234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6235 (eval $ac_try) 2>&5
6236 ac_status=$?
6237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); }; }; then
6239 eval "$as_ac_Header=yes"
6240 else
6241 echo "$as_me: failed program was:" >&5
6242 sed 's/^/| /' conftest.$ac_ext >&5
6244 eval "$as_ac_Header=no"
6246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6249 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6250 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6251 cat >>confdefs.h <<_ACEOF
6252 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6253 _ACEOF
6257 done
6261 for ac_header in dlfcn.h
6263 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6264 echo "$as_me:$LINENO: checking for $ac_header" >&5
6265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6266 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6267 echo $ECHO_N "(cached) $ECHO_C" >&6
6268 else
6269 cat >conftest.$ac_ext <<_ACEOF
6270 /* confdefs.h. */
6271 _ACEOF
6272 cat confdefs.h >>conftest.$ac_ext
6273 cat >>conftest.$ac_ext <<_ACEOF
6274 /* end confdefs.h. */
6275 $ac_includes_default
6277 #include <$ac_header>
6278 _ACEOF
6279 rm -f conftest.$ac_objext
6280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6281 (eval $ac_compile) 2>conftest.er1
6282 ac_status=$?
6283 grep -v '^ *+' conftest.er1 >conftest.err
6284 rm -f conftest.er1
6285 cat conftest.err >&5
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); } &&
6288 { ac_try='test -z "$ac_c_werror_flag"
6289 || test ! -s conftest.err'
6290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6291 (eval $ac_try) 2>&5
6292 ac_status=$?
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); }; } &&
6295 { ac_try='test -s conftest.$ac_objext'
6296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6297 (eval $ac_try) 2>&5
6298 ac_status=$?
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); }; }; then
6301 eval "$as_ac_Header=yes"
6302 else
6303 echo "$as_me: failed program was:" >&5
6304 sed 's/^/| /' conftest.$ac_ext >&5
6306 eval "$as_ac_Header=no"
6308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6312 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6313 cat >>confdefs.h <<_ACEOF
6314 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6315 _ACEOF
6319 done
6323 # This can be used to rebuild libtool when needed
6324 LIBTOOL_DEPS="$ltmain"
6326 # Always use our own libtool.
6327 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6353 test -z "$LN_S" && LN_S="ln -s"
6368 if test -n "${ZSH_VERSION+set}" ; then
6369 setopt NO_GLOB_SUBST
6372 echo "$as_me:$LINENO: checking for objdir" >&5
6373 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6374 if test "${lt_cv_objdir+set}" = set; then
6375 echo $ECHO_N "(cached) $ECHO_C" >&6
6376 else
6377 rm -f .libs 2>/dev/null
6378 mkdir .libs 2>/dev/null
6379 if test -d .libs; then
6380 lt_cv_objdir=.libs
6381 else
6382 # MS-DOS does not allow filenames that begin with a dot.
6383 lt_cv_objdir=_libs
6385 rmdir .libs 2>/dev/null
6387 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6388 echo "${ECHO_T}$lt_cv_objdir" >&6
6389 objdir=$lt_cv_objdir
6395 cat >>confdefs.h <<_ACEOF
6396 #define LT_OBJDIR "$lt_cv_objdir/"
6397 _ACEOF
6415 case $host_os in
6416 aix3*)
6417 # AIX sometimes has problems with the GCC collect2 program. For some
6418 # reason, if we set the COLLECT_NAMES environment variable, the problems
6419 # vanish in a puff of smoke.
6420 if test "X${COLLECT_NAMES+set}" != Xset; then
6421 COLLECT_NAMES=
6422 export COLLECT_NAMES
6425 esac
6427 # Sed substitution that helps us do robust quoting. It backslashifies
6428 # metacharacters that are still active within double-quoted strings.
6429 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6431 # Same as above, but do not quote variable references.
6432 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6434 # Sed substitution to delay expansion of an escaped shell variable in a
6435 # double_quote_subst'ed string.
6436 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6438 # Sed substitution to delay expansion of an escaped single quote.
6439 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6441 # Sed substitution to avoid accidental globbing in evaled expressions
6442 no_glob_subst='s/\*/\\\*/g'
6444 # Global variables:
6445 ofile=libtool
6446 can_build_shared=yes
6448 # All known linkers require a `.a' archive for static linking (except MSVC,
6449 # which needs '.lib').
6450 libext=a
6452 with_gnu_ld="$lt_cv_prog_gnu_ld"
6454 old_CC="$CC"
6455 old_CFLAGS="$CFLAGS"
6457 # Set sane defaults for various variables
6458 test -z "$CC" && CC=cc
6459 test -z "$LTCC" && LTCC=$CC
6460 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6461 test -z "$LD" && LD=ld
6462 test -z "$ac_objext" && ac_objext=o
6464 for cc_temp in $compiler""; do
6465 case $cc_temp in
6466 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6467 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6468 \-*) ;;
6469 *) break;;
6470 esac
6471 done
6472 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6475 # Only perform the check for file, if the check method requires it
6476 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6477 case $deplibs_check_method in
6478 file_magic*)
6479 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6480 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6481 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6482 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6483 echo $ECHO_N "(cached) $ECHO_C" >&6
6484 else
6485 case $MAGIC_CMD in
6486 [\\/*] | ?:[\\/]*)
6487 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6490 lt_save_MAGIC_CMD="$MAGIC_CMD"
6491 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6492 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6493 for ac_dir in $ac_dummy; do
6494 IFS="$lt_save_ifs"
6495 test -z "$ac_dir" && ac_dir=.
6496 if test -f $ac_dir/${ac_tool_prefix}file; then
6497 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6498 if test -n "$file_magic_test_file"; then
6499 case $deplibs_check_method in
6500 "file_magic "*)
6501 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6502 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6503 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6504 $EGREP "$file_magic_regex" > /dev/null; then
6506 else
6507 cat <<_LT_EOF 1>&2
6509 *** Warning: the command libtool uses to detect shared libraries,
6510 *** $file_magic_cmd, produces output that libtool cannot recognize.
6511 *** The result is that libtool may fail to recognize shared libraries
6512 *** as such. This will affect the creation of libtool libraries that
6513 *** depend on shared libraries, but programs linked with such libtool
6514 *** libraries will work regardless of this problem. Nevertheless, you
6515 *** may want to report the problem to your system manager and/or to
6516 *** bug-libtool@gnu.org
6518 _LT_EOF
6519 fi ;;
6520 esac
6522 break
6524 done
6525 IFS="$lt_save_ifs"
6526 MAGIC_CMD="$lt_save_MAGIC_CMD"
6528 esac
6531 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6532 if test -n "$MAGIC_CMD"; then
6533 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6534 echo "${ECHO_T}$MAGIC_CMD" >&6
6535 else
6536 echo "$as_me:$LINENO: result: no" >&5
6537 echo "${ECHO_T}no" >&6
6544 if test -z "$lt_cv_path_MAGIC_CMD"; then
6545 if test -n "$ac_tool_prefix"; then
6546 echo "$as_me:$LINENO: checking for file" >&5
6547 echo $ECHO_N "checking for file... $ECHO_C" >&6
6548 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6549 echo $ECHO_N "(cached) $ECHO_C" >&6
6550 else
6551 case $MAGIC_CMD in
6552 [\\/*] | ?:[\\/]*)
6553 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6556 lt_save_MAGIC_CMD="$MAGIC_CMD"
6557 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6558 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6559 for ac_dir in $ac_dummy; do
6560 IFS="$lt_save_ifs"
6561 test -z "$ac_dir" && ac_dir=.
6562 if test -f $ac_dir/file; then
6563 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6564 if test -n "$file_magic_test_file"; then
6565 case $deplibs_check_method in
6566 "file_magic "*)
6567 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6568 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6569 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6570 $EGREP "$file_magic_regex" > /dev/null; then
6572 else
6573 cat <<_LT_EOF 1>&2
6575 *** Warning: the command libtool uses to detect shared libraries,
6576 *** $file_magic_cmd, produces output that libtool cannot recognize.
6577 *** The result is that libtool may fail to recognize shared libraries
6578 *** as such. This will affect the creation of libtool libraries that
6579 *** depend on shared libraries, but programs linked with such libtool
6580 *** libraries will work regardless of this problem. Nevertheless, you
6581 *** may want to report the problem to your system manager and/or to
6582 *** bug-libtool@gnu.org
6584 _LT_EOF
6585 fi ;;
6586 esac
6588 break
6590 done
6591 IFS="$lt_save_ifs"
6592 MAGIC_CMD="$lt_save_MAGIC_CMD"
6594 esac
6597 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6598 if test -n "$MAGIC_CMD"; then
6599 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6600 echo "${ECHO_T}$MAGIC_CMD" >&6
6601 else
6602 echo "$as_me:$LINENO: result: no" >&5
6603 echo "${ECHO_T}no" >&6
6607 else
6608 MAGIC_CMD=:
6614 esac
6616 # Use C for the default configuration in the libtool script
6618 lt_save_CC="$CC"
6619 ac_ext=c
6620 ac_cpp='$CPP $CPPFLAGS'
6621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6626 # Source file extension for C test sources.
6627 ac_ext=c
6629 # Object file extension for compiled C test sources.
6630 objext=o
6631 objext=$objext
6633 # Code to be used in simple compile tests
6634 lt_simple_compile_test_code="int some_variable = 0;"
6636 # Code to be used in simple link tests
6637 lt_simple_link_test_code='int main(){return(0);}'
6645 # If no C compiler was specified, use CC.
6646 LTCC=${LTCC-"$CC"}
6648 # If no C compiler flags were specified, use CFLAGS.
6649 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6651 # Allow CC to be a program name with arguments.
6652 compiler=$CC
6654 # Save the default compiler, since it gets overwritten when the other
6655 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6656 compiler_DEFAULT=$CC
6658 # save warnings/boilerplate of simple test code
6659 ac_outfile=conftest.$ac_objext
6660 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6661 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6662 _lt_compiler_boilerplate=`cat conftest.err`
6663 $RM conftest*
6665 ac_outfile=conftest.$ac_objext
6666 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6667 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6668 _lt_linker_boilerplate=`cat conftest.err`
6669 $RM conftest*
6672 ## CAVEAT EMPTOR:
6673 ## There is no encapsulation within the following macros, do not change
6674 ## the running order or otherwise move them around unless you know exactly
6675 ## what you are doing...
6676 if test -n "$compiler"; then
6678 lt_prog_compiler_no_builtin_flag=
6680 if test "$GCC" = yes; then
6681 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6683 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6684 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6685 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6686 echo $ECHO_N "(cached) $ECHO_C" >&6
6687 else
6688 lt_cv_prog_compiler_rtti_exceptions=no
6689 ac_outfile=conftest.$ac_objext
6690 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6691 lt_compiler_flag="-fno-rtti -fno-exceptions"
6692 # Insert the option either (1) after the last *FLAGS variable, or
6693 # (2) before a word containing "conftest.", or (3) at the end.
6694 # Note that $ac_compile itself does not contain backslashes and begins
6695 # with a dollar sign (not a hyphen), so the echo should work correctly.
6696 # The option is referenced via a variable to avoid confusing sed.
6697 lt_compile=`echo "$ac_compile" | $SED \
6698 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6699 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6700 -e 's:$: $lt_compiler_flag:'`
6701 (eval echo "\"\$as_me:6701: $lt_compile\"" >&5)
6702 (eval "$lt_compile" 2>conftest.err)
6703 ac_status=$?
6704 cat conftest.err >&5
6705 echo "$as_me:6705: \$? = $ac_status" >&5
6706 if (exit $ac_status) && test -s "$ac_outfile"; then
6707 # The compiler can only warn and ignore the option if not recognized
6708 # So say no if there are warnings other than the usual output.
6709 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6710 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6711 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6712 lt_cv_prog_compiler_rtti_exceptions=yes
6715 $RM conftest*
6718 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6719 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6721 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6722 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6723 else
6734 lt_prog_compiler_wl=
6735 lt_prog_compiler_pic=
6736 lt_prog_compiler_static=
6738 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6739 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6741 if test "$GCC" = yes; then
6742 lt_prog_compiler_wl='-Wl,'
6743 lt_prog_compiler_static='-static'
6745 case $host_os in
6746 aix*)
6747 # All AIX code is PIC.
6748 if test "$host_cpu" = ia64; then
6749 # AIX 5 now supports IA64 processor
6750 lt_prog_compiler_static='-Bstatic'
6754 amigaos*)
6755 if test "$host_cpu" = m68k; then
6756 # FIXME: we need at least 68020 code to build shared libraries, but
6757 # adding the `-m68020' flag to GCC prevents building anything better,
6758 # like `-m68040'.
6759 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6763 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6764 # PIC is the default for these OSes.
6767 mingw* | cygwin* | pw32* | os2*)
6768 # This hack is so that the source file can tell whether it is being
6769 # built for inclusion in a dll (and should export symbols for example).
6770 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6771 # (--disable-auto-import) libraries
6772 lt_prog_compiler_pic='-DDLL_EXPORT'
6775 darwin* | rhapsody*)
6776 # PIC is the default on this platform
6777 # Common symbols not allowed in MH_DYLIB files
6778 lt_prog_compiler_pic='-fno-common'
6781 hpux*)
6782 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6783 # not for PA HP-UX.
6784 case $host_cpu in
6785 hppa*64*|ia64*)
6786 # +Z the default
6789 lt_prog_compiler_pic='-fPIC'
6791 esac
6794 interix[3-9]*)
6795 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6796 # Instead, we relocate shared libraries at runtime.
6799 msdosdjgpp*)
6800 # Just because we use GCC doesn't mean we suddenly get shared libraries
6801 # on systems that don't support them.
6802 lt_prog_compiler_can_build_shared=no
6803 enable_shared=no
6806 *nto* | *qnx*)
6807 # QNX uses GNU C++, but need to define -shared option too, otherwise
6808 # it will coredump.
6809 lt_prog_compiler_pic='-fPIC -shared'
6812 sysv4*MP*)
6813 if test -d /usr/nec; then
6814 lt_prog_compiler_pic=-Kconform_pic
6819 lt_prog_compiler_pic='-fPIC'
6821 esac
6822 else
6823 # PORTME Check for flag to pass linker flags through the system compiler.
6824 case $host_os in
6825 aix*)
6826 lt_prog_compiler_wl='-Wl,'
6827 if test "$host_cpu" = ia64; then
6828 # AIX 5 now supports IA64 processor
6829 lt_prog_compiler_static='-Bstatic'
6830 else
6831 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6834 darwin*)
6835 # PIC is the default on this platform
6836 # Common symbols not allowed in MH_DYLIB files
6837 case $cc_basename in
6838 xlc*)
6839 lt_prog_compiler_pic='-qnocommon'
6840 lt_prog_compiler_wl='-Wl,'
6842 esac
6845 mingw* | cygwin* | pw32* | os2*)
6846 # This hack is so that the source file can tell whether it is being
6847 # built for inclusion in a dll (and should export symbols for example).
6848 lt_prog_compiler_pic='-DDLL_EXPORT'
6851 hpux9* | hpux10* | hpux11*)
6852 lt_prog_compiler_wl='-Wl,'
6853 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6854 # not for PA HP-UX.
6855 case $host_cpu in
6856 hppa*64*|ia64*)
6857 # +Z the default
6860 lt_prog_compiler_pic='+Z'
6862 esac
6863 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6864 lt_prog_compiler_static='${wl}-a ${wl}archive'
6867 irix5* | irix6* | nonstopux*)
6868 lt_prog_compiler_wl='-Wl,'
6869 # PIC (with -KPIC) is the default.
6870 lt_prog_compiler_static='-non_shared'
6873 linux* | k*bsd*-gnu)
6874 case $cc_basename in
6875 icc* | ecc*)
6876 lt_prog_compiler_wl='-Wl,'
6877 lt_prog_compiler_pic='-KPIC'
6878 lt_prog_compiler_static='-static'
6880 pgcc* | pgf77* | pgf90* | pgf95*)
6881 # Portland Group compilers (*not* the Pentium gcc compiler,
6882 # which looks to be a dead project)
6883 lt_prog_compiler_wl='-Wl,'
6884 lt_prog_compiler_pic='-fpic'
6885 lt_prog_compiler_static='-Bstatic'
6887 ccc*)
6888 lt_prog_compiler_wl='-Wl,'
6889 # All Alpha code is PIC.
6890 lt_prog_compiler_static='-non_shared'
6893 case `$CC -V 2>&1 | sed 5q` in
6894 *Sun\ C*)
6895 # Sun C 5.9
6896 lt_prog_compiler_pic='-KPIC'
6897 lt_prog_compiler_static='-Bstatic'
6898 lt_prog_compiler_wl='-Wl,'
6900 *Sun\ F*)
6901 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6902 lt_prog_compiler_pic='-KPIC'
6903 lt_prog_compiler_static='-Bstatic'
6904 lt_prog_compiler_wl=''
6906 esac
6908 esac
6911 newsos6)
6912 lt_prog_compiler_pic='-KPIC'
6913 lt_prog_compiler_static='-Bstatic'
6916 *nto* | *qnx*)
6917 # QNX uses GNU C++, but need to define -shared option too, otherwise
6918 # it will coredump.
6919 lt_prog_compiler_pic='-fPIC -shared'
6922 osf3* | osf4* | osf5*)
6923 lt_prog_compiler_wl='-Wl,'
6924 # All OSF/1 code is PIC.
6925 lt_prog_compiler_static='-non_shared'
6928 rdos*)
6929 lt_prog_compiler_static='-non_shared'
6932 solaris*)
6933 lt_prog_compiler_pic='-KPIC'
6934 lt_prog_compiler_static='-Bstatic'
6935 case $cc_basename in
6936 f77* | f90* | f95*)
6937 lt_prog_compiler_wl='-Qoption ld ';;
6939 lt_prog_compiler_wl='-Wl,';;
6940 esac
6943 sunos4*)
6944 lt_prog_compiler_wl='-Qoption ld '
6945 lt_prog_compiler_pic='-PIC'
6946 lt_prog_compiler_static='-Bstatic'
6949 sysv4 | sysv4.2uw2* | sysv4.3*)
6950 lt_prog_compiler_wl='-Wl,'
6951 lt_prog_compiler_pic='-KPIC'
6952 lt_prog_compiler_static='-Bstatic'
6955 sysv4*MP*)
6956 if test -d /usr/nec ;then
6957 lt_prog_compiler_pic='-Kconform_pic'
6958 lt_prog_compiler_static='-Bstatic'
6962 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6963 lt_prog_compiler_wl='-Wl,'
6964 lt_prog_compiler_pic='-KPIC'
6965 lt_prog_compiler_static='-Bstatic'
6968 unicos*)
6969 lt_prog_compiler_wl='-Wl,'
6970 lt_prog_compiler_can_build_shared=no
6973 uts4*)
6974 lt_prog_compiler_pic='-pic'
6975 lt_prog_compiler_static='-Bstatic'
6979 lt_prog_compiler_can_build_shared=no
6981 esac
6984 case $host_os in
6985 # For platforms which do not support PIC, -DPIC is meaningless:
6986 *djgpp*)
6987 lt_prog_compiler_pic=
6990 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6992 esac
6993 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6994 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7002 # Check to make sure the PIC flag actually works.
7004 if test -n "$lt_prog_compiler_pic"; then
7005 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7006 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7007 if test "${lt_prog_compiler_pic_works+set}" = set; then
7008 echo $ECHO_N "(cached) $ECHO_C" >&6
7009 else
7010 lt_prog_compiler_pic_works=no
7011 ac_outfile=conftest.$ac_objext
7012 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7013 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7014 # Insert the option either (1) after the last *FLAGS variable, or
7015 # (2) before a word containing "conftest.", or (3) at the end.
7016 # Note that $ac_compile itself does not contain backslashes and begins
7017 # with a dollar sign (not a hyphen), so the echo should work correctly.
7018 # The option is referenced via a variable to avoid confusing sed.
7019 lt_compile=`echo "$ac_compile" | $SED \
7020 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7021 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7022 -e 's:$: $lt_compiler_flag:'`
7023 (eval echo "\"\$as_me:7023: $lt_compile\"" >&5)
7024 (eval "$lt_compile" 2>conftest.err)
7025 ac_status=$?
7026 cat conftest.err >&5
7027 echo "$as_me:7027: \$? = $ac_status" >&5
7028 if (exit $ac_status) && test -s "$ac_outfile"; then
7029 # The compiler can only warn and ignore the option if not recognized
7030 # So say no if there are warnings other than the usual output.
7031 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7032 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7033 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7034 lt_prog_compiler_pic_works=yes
7037 $RM conftest*
7040 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7041 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7043 if test x"$lt_prog_compiler_pic_works" = xyes; then
7044 case $lt_prog_compiler_pic in
7045 "" | " "*) ;;
7046 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7047 esac
7048 else
7049 lt_prog_compiler_pic=
7050 lt_prog_compiler_can_build_shared=no
7061 # Check to make sure the static flag actually works.
7063 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7064 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7065 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7066 if test "${lt_prog_compiler_static_works+set}" = set; then
7067 echo $ECHO_N "(cached) $ECHO_C" >&6
7068 else
7069 lt_prog_compiler_static_works=no
7070 save_LDFLAGS="$LDFLAGS"
7071 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7072 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7073 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7074 # The linker can only warn and ignore the option if not recognized
7075 # So say no if there are warnings
7076 if test -s conftest.err; then
7077 # Append any errors to the config.log.
7078 cat conftest.err 1>&5
7079 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7080 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7081 if diff conftest.exp conftest.er2 >/dev/null; then
7082 lt_prog_compiler_static_works=yes
7084 else
7085 lt_prog_compiler_static_works=yes
7088 $RM conftest*
7089 LDFLAGS="$save_LDFLAGS"
7092 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7093 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7095 if test x"$lt_prog_compiler_static_works" = xyes; then
7097 else
7098 lt_prog_compiler_static=
7107 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7108 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7109 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7110 echo $ECHO_N "(cached) $ECHO_C" >&6
7111 else
7112 lt_cv_prog_compiler_c_o=no
7113 $RM -r conftest 2>/dev/null
7114 mkdir conftest
7115 cd conftest
7116 mkdir out
7117 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7119 lt_compiler_flag="-o out/conftest2.$ac_objext"
7120 # Insert the option either (1) after the last *FLAGS variable, or
7121 # (2) before a word containing "conftest.", or (3) at the end.
7122 # Note that $ac_compile itself does not contain backslashes and begins
7123 # with a dollar sign (not a hyphen), so the echo should work correctly.
7124 lt_compile=`echo "$ac_compile" | $SED \
7125 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7126 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7127 -e 's:$: $lt_compiler_flag:'`
7128 (eval echo "\"\$as_me:7128: $lt_compile\"" >&5)
7129 (eval "$lt_compile" 2>out/conftest.err)
7130 ac_status=$?
7131 cat out/conftest.err >&5
7132 echo "$as_me:7132: \$? = $ac_status" >&5
7133 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7134 then
7135 # The compiler can only warn and ignore the option if not recognized
7136 # So say no if there are warnings
7137 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7138 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7139 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7140 lt_cv_prog_compiler_c_o=yes
7143 chmod u+w . 2>&5
7144 $RM conftest*
7145 # SGI C++ compiler will create directory out/ii_files/ for
7146 # template instantiation
7147 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7148 $RM out/* && rmdir out
7149 cd ..
7150 $RM -r conftest
7151 $RM conftest*
7154 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7155 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7162 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7163 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7164 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7165 echo $ECHO_N "(cached) $ECHO_C" >&6
7166 else
7167 lt_cv_prog_compiler_c_o=no
7168 $RM -r conftest 2>/dev/null
7169 mkdir conftest
7170 cd conftest
7171 mkdir out
7172 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7174 lt_compiler_flag="-o out/conftest2.$ac_objext"
7175 # Insert the option either (1) after the last *FLAGS variable, or
7176 # (2) before a word containing "conftest.", or (3) at the end.
7177 # Note that $ac_compile itself does not contain backslashes and begins
7178 # with a dollar sign (not a hyphen), so the echo should work correctly.
7179 lt_compile=`echo "$ac_compile" | $SED \
7180 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7181 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7182 -e 's:$: $lt_compiler_flag:'`
7183 (eval echo "\"\$as_me:7183: $lt_compile\"" >&5)
7184 (eval "$lt_compile" 2>out/conftest.err)
7185 ac_status=$?
7186 cat out/conftest.err >&5
7187 echo "$as_me:7187: \$? = $ac_status" >&5
7188 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7189 then
7190 # The compiler can only warn and ignore the option if not recognized
7191 # So say no if there are warnings
7192 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7193 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7194 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7195 lt_cv_prog_compiler_c_o=yes
7198 chmod u+w . 2>&5
7199 $RM conftest*
7200 # SGI C++ compiler will create directory out/ii_files/ for
7201 # template instantiation
7202 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7203 $RM out/* && rmdir out
7204 cd ..
7205 $RM -r conftest
7206 $RM conftest*
7209 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7210 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7215 hard_links="nottested"
7216 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7217 # do not overwrite the value of need_locks provided by the user
7218 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7219 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7220 hard_links=yes
7221 $RM conftest*
7222 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7223 touch conftest.a
7224 ln conftest.a conftest.b 2>&5 || hard_links=no
7225 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7226 echo "$as_me:$LINENO: result: $hard_links" >&5
7227 echo "${ECHO_T}$hard_links" >&6
7228 if test "$hard_links" = no; then
7229 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7230 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7231 need_locks=warn
7233 else
7234 need_locks=no
7242 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7243 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7245 runpath_var=
7246 allow_undefined_flag=
7247 always_export_symbols=no
7248 archive_cmds=
7249 archive_expsym_cmds=
7250 compiler_needs_object=no
7251 enable_shared_with_static_runtimes=no
7252 export_dynamic_flag_spec=
7253 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7254 hardcode_automatic=no
7255 hardcode_direct=no
7256 hardcode_direct_absolute=no
7257 hardcode_libdir_flag_spec=
7258 hardcode_libdir_flag_spec_ld=
7259 hardcode_libdir_separator=
7260 hardcode_minus_L=no
7261 hardcode_shlibpath_var=unsupported
7262 inherit_rpath=no
7263 link_all_deplibs=unknown
7264 module_cmds=
7265 module_expsym_cmds=
7266 old_archive_from_new_cmds=
7267 old_archive_from_expsyms_cmds=
7268 thread_safe_flag_spec=
7269 whole_archive_flag_spec=
7270 # include_expsyms should be a list of space-separated symbols to be *always*
7271 # included in the symbol list
7272 include_expsyms=
7273 # exclude_expsyms can be an extended regexp of symbols to exclude
7274 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7275 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7276 # as well as any symbol that contains `d'.
7277 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7278 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7279 # platforms (ab)use it in PIC code, but their linkers get confused if
7280 # the symbol is explicitly referenced. Since portable code cannot
7281 # rely on this symbol name, it's probably fine to never include it in
7282 # preloaded symbol tables.
7283 extract_expsyms_cmds=
7285 case $host_os in
7286 cygwin* | mingw* | pw32*)
7287 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7288 # When not using gcc, we currently assume that we are using
7289 # Microsoft Visual C++.
7290 if test "$GCC" != yes; then
7291 with_gnu_ld=no
7294 interix*)
7295 # we just hope/assume this is gcc and not c89 (= MSVC++)
7296 with_gnu_ld=yes
7298 openbsd*)
7299 with_gnu_ld=no
7301 esac
7303 ld_shlibs=yes
7304 if test "$with_gnu_ld" = yes; then
7305 # If archive_cmds runs LD, not CC, wlarc should be empty
7306 wlarc='${wl}'
7308 # Set some defaults for GNU ld with shared library support. These
7309 # are reset later if shared libraries are not supported. Putting them
7310 # here allows them to be overridden if necessary.
7311 runpath_var=LD_RUN_PATH
7312 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7313 export_dynamic_flag_spec='${wl}--export-dynamic'
7314 # ancient GNU ld didn't support --whole-archive et. al.
7315 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7316 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7317 else
7318 whole_archive_flag_spec=
7320 supports_anon_versioning=no
7321 case `$LD -v 2>&1` in
7322 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7323 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7324 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7325 *\ 2.11.*) ;; # other 2.11 versions
7326 *) supports_anon_versioning=yes ;;
7327 esac
7329 # See if GNU ld supports shared libraries.
7330 case $host_os in
7331 aix[3-9]*)
7332 # On AIX/PPC, the GNU linker is very broken
7333 if test "$host_cpu" != ia64; then
7334 ld_shlibs=no
7335 cat <<_LT_EOF 1>&2
7337 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7338 *** to be unable to reliably create shared libraries on AIX.
7339 *** Therefore, libtool is disabling shared libraries support. If you
7340 *** really care for shared libraries, you may want to modify your PATH
7341 *** so that a non-GNU linker is found, and then restart.
7343 _LT_EOF
7347 amigaos*)
7348 if test "$host_cpu" = m68k; then
7349 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)'
7350 hardcode_libdir_flag_spec='-L$libdir'
7351 hardcode_minus_L=yes
7354 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7355 # that the semantics of dynamic libraries on AmigaOS, at least up
7356 # to version 4, is to share data among multiple programs linked
7357 # with the same dynamic library. Since this doesn't match the
7358 # behavior of shared libraries on other platforms, we can't use
7359 # them.
7360 ld_shlibs=no
7363 beos*)
7364 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7365 allow_undefined_flag=unsupported
7366 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7367 # support --undefined. This deserves some investigation. FIXME
7368 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7369 else
7370 ld_shlibs=no
7374 cygwin* | mingw* | pw32*)
7375 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7376 # as there is no search path for DLLs.
7377 hardcode_libdir_flag_spec='-L$libdir'
7378 allow_undefined_flag=unsupported
7379 always_export_symbols=no
7380 enable_shared_with_static_runtimes=yes
7381 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7383 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7384 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7385 # If the export-symbols file already is a .def file (1st line
7386 # is EXPORTS), use it as is; otherwise, prepend...
7387 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7388 cp $export_symbols $output_objdir/$soname.def;
7389 else
7390 echo EXPORTS > $output_objdir/$soname.def;
7391 cat $export_symbols >> $output_objdir/$soname.def;
7393 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7394 else
7395 ld_shlibs=no
7399 interix[3-9]*)
7400 hardcode_direct=no
7401 hardcode_shlibpath_var=no
7402 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7403 export_dynamic_flag_spec='${wl}-E'
7404 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7405 # Instead, shared libraries are loaded at an image base (0x10000000 by
7406 # default) and relocated if they conflict, which is a slow very memory
7407 # consuming and fragmenting process. To avoid this, we pick a random,
7408 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7409 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7410 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7411 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'
7414 gnu* | linux* | tpf* | k*bsd*-gnu)
7415 tmp_diet=no
7416 if test "$host_os" = linux-dietlibc; then
7417 case $cc_basename in
7418 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7419 esac
7421 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7422 && test "$tmp_diet" = no
7423 then
7424 tmp_addflag=
7425 case $cc_basename,$host_cpu in
7426 pgcc*) # Portland Group C compiler
7427 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'
7428 tmp_addflag=' $pic_flag'
7430 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7431 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'
7432 tmp_addflag=' $pic_flag -Mnomain' ;;
7433 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7434 tmp_addflag=' -i_dynamic' ;;
7435 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7436 tmp_addflag=' -i_dynamic -nofor_main' ;;
7437 ifc* | ifort*) # Intel Fortran compiler
7438 tmp_addflag=' -nofor_main' ;;
7439 esac
7440 case `$CC -V 2>&1 | sed 5q` in
7441 *Sun\ C*) # Sun C 5.9
7442 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'
7443 compiler_needs_object=yes
7444 tmp_sharedflag='-G' ;;
7445 *Sun\ F*) # Sun Fortran 8.3
7446 tmp_sharedflag='-G' ;;
7448 tmp_sharedflag='-shared' ;;
7449 esac
7450 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7452 if test "x$supports_anon_versioning" = xyes; then
7453 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7454 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7455 echo "local: *; };" >> $output_objdir/$libname.ver~
7456 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7458 else
7459 ld_shlibs=no
7463 netbsd*)
7464 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7465 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7466 wlarc=
7467 else
7468 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7469 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7473 solaris*)
7474 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7475 ld_shlibs=no
7476 cat <<_LT_EOF 1>&2
7478 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7479 *** create shared libraries on Solaris systems. Therefore, libtool
7480 *** is disabling shared libraries support. We urge you to upgrade GNU
7481 *** binutils to release 2.9.1 or newer. Another option is to modify
7482 *** your PATH or compiler configuration so that the native linker is
7483 *** used, and then restart.
7485 _LT_EOF
7486 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7487 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7488 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7489 else
7490 ld_shlibs=no
7494 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7495 case `$LD -v 2>&1` in
7496 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7497 ld_shlibs=no
7498 cat <<_LT_EOF 1>&2
7500 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7501 *** reliably create shared libraries on SCO systems. Therefore, libtool
7502 *** is disabling shared libraries support. We urge you to upgrade GNU
7503 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7504 *** your PATH or compiler configuration so that the native linker is
7505 *** used, and then restart.
7507 _LT_EOF
7510 # For security reasons, it is highly recommended that you always
7511 # use absolute paths for naming shared libraries, and exclude the
7512 # DT_RUNPATH tag from executables and libraries. But doing so
7513 # requires that you compile everything twice, which is a pain.
7514 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7515 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7516 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7517 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7518 else
7519 ld_shlibs=no
7522 esac
7525 sunos4*)
7526 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7527 wlarc=
7528 hardcode_direct=yes
7529 hardcode_shlibpath_var=no
7533 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7534 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7535 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7536 else
7537 ld_shlibs=no
7540 esac
7542 if test "$ld_shlibs" = no; then
7543 runpath_var=
7544 hardcode_libdir_flag_spec=
7545 export_dynamic_flag_spec=
7546 whole_archive_flag_spec=
7548 else
7549 # PORTME fill in a description of your system's linker (not GNU ld)
7550 case $host_os in
7551 aix3*)
7552 allow_undefined_flag=unsupported
7553 always_export_symbols=yes
7554 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'
7555 # Note: this linker hardcodes the directories in LIBPATH if there
7556 # are no directories specified by -L.
7557 hardcode_minus_L=yes
7558 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7559 # Neither direct hardcoding nor static linking is supported with a
7560 # broken collect2.
7561 hardcode_direct=unsupported
7565 aix[4-9]*)
7566 if test "$host_cpu" = ia64; then
7567 # On IA64, the linker does run time linking by default, so we don't
7568 # have to do anything special.
7569 aix_use_runtimelinking=no
7570 exp_sym_flag='-Bexport'
7571 no_entry_flag=""
7572 else
7573 # If we're using GNU nm, then we don't want the "-C" option.
7574 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7575 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7576 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'
7577 else
7578 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'
7580 aix_use_runtimelinking=no
7582 # Test if we are trying to use run time linking or normal
7583 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7584 # need to do runtime linking.
7585 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7586 for ld_flag in $LDFLAGS; do
7587 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7588 aix_use_runtimelinking=yes
7589 break
7591 done
7593 esac
7595 exp_sym_flag='-bexport'
7596 no_entry_flag='-bnoentry'
7599 # When large executables or shared objects are built, AIX ld can
7600 # have problems creating the table of contents. If linking a library
7601 # or program results in "error TOC overflow" add -mminimal-toc to
7602 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7603 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7605 archive_cmds=''
7606 hardcode_direct=yes
7607 hardcode_direct_absolute=yes
7608 hardcode_libdir_separator=':'
7609 link_all_deplibs=yes
7610 file_list_spec='${wl}-f,'
7612 if test "$GCC" = yes; then
7613 case $host_os in aix4.[012]|aix4.[012].*)
7614 # We only want to do this on AIX 4.2 and lower, the check
7615 # below for broken collect2 doesn't work under 4.3+
7616 collect2name=`${CC} -print-prog-name=collect2`
7617 if test -f "$collect2name" &&
7618 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7619 then
7620 # We have reworked collect2
7622 else
7623 # We have old collect2
7624 hardcode_direct=unsupported
7625 # It fails to find uninstalled libraries when the uninstalled
7626 # path is not listed in the libpath. Setting hardcode_minus_L
7627 # to unsupported forces relinking
7628 hardcode_minus_L=yes
7629 hardcode_libdir_flag_spec='-L$libdir'
7630 hardcode_libdir_separator=
7633 esac
7634 shared_flag='-shared'
7635 if test "$aix_use_runtimelinking" = yes; then
7636 shared_flag="$shared_flag "'${wl}-G'
7638 else
7639 # not using gcc
7640 if test "$host_cpu" = ia64; then
7641 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7642 # chokes on -Wl,-G. The following line is correct:
7643 shared_flag='-G'
7644 else
7645 if test "$aix_use_runtimelinking" = yes; then
7646 shared_flag='${wl}-G'
7647 else
7648 shared_flag='${wl}-bM:SRE'
7653 # It seems that -bexpall does not export symbols beginning with
7654 # underscore (_), so it is better to generate a list of symbols to export.
7655 always_export_symbols=yes
7656 if test "$aix_use_runtimelinking" = yes; then
7657 # Warning - without using the other runtime loading flags (-brtl),
7658 # -berok will link without error, but may produce a broken library.
7659 allow_undefined_flag='-berok'
7660 # Determine the default libpath from the value encoded in an
7661 # empty executable.
7662 cat >conftest.$ac_ext <<_ACEOF
7663 /* confdefs.h. */
7664 _ACEOF
7665 cat confdefs.h >>conftest.$ac_ext
7666 cat >>conftest.$ac_ext <<_ACEOF
7667 /* end confdefs.h. */
7670 main ()
7674 return 0;
7676 _ACEOF
7677 rm -f conftest.$ac_objext conftest$ac_exeext
7678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7679 (eval $ac_link) 2>conftest.er1
7680 ac_status=$?
7681 grep -v '^ *+' conftest.er1 >conftest.err
7682 rm -f conftest.er1
7683 cat conftest.err >&5
7684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685 (exit $ac_status); } &&
7686 { ac_try='test -z "$ac_c_werror_flag"
7687 || test ! -s conftest.err'
7688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7689 (eval $ac_try) 2>&5
7690 ac_status=$?
7691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692 (exit $ac_status); }; } &&
7693 { ac_try='test -s conftest$ac_exeext'
7694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7695 (eval $ac_try) 2>&5
7696 ac_status=$?
7697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698 (exit $ac_status); }; }; then
7700 lt_aix_libpath_sed='
7701 /Import File Strings/,/^$/ {
7702 /^0/ {
7703 s/^0 *\(.*\)$/\1/
7707 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7708 # Check for a 64-bit object if we didn't find anything.
7709 if test -z "$aix_libpath"; then
7710 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7712 else
7713 echo "$as_me: failed program was:" >&5
7714 sed 's/^/| /' conftest.$ac_ext >&5
7717 rm -f conftest.err conftest.$ac_objext \
7718 conftest$ac_exeext conftest.$ac_ext
7719 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7721 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7722 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"
7723 else
7724 if test "$host_cpu" = ia64; then
7725 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7726 allow_undefined_flag="-z nodefs"
7727 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"
7728 else
7729 # Determine the default libpath from the value encoded in an
7730 # empty executable.
7731 cat >conftest.$ac_ext <<_ACEOF
7732 /* confdefs.h. */
7733 _ACEOF
7734 cat confdefs.h >>conftest.$ac_ext
7735 cat >>conftest.$ac_ext <<_ACEOF
7736 /* end confdefs.h. */
7739 main ()
7743 return 0;
7745 _ACEOF
7746 rm -f conftest.$ac_objext conftest$ac_exeext
7747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7748 (eval $ac_link) 2>conftest.er1
7749 ac_status=$?
7750 grep -v '^ *+' conftest.er1 >conftest.err
7751 rm -f conftest.er1
7752 cat conftest.err >&5
7753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754 (exit $ac_status); } &&
7755 { ac_try='test -z "$ac_c_werror_flag"
7756 || test ! -s conftest.err'
7757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7758 (eval $ac_try) 2>&5
7759 ac_status=$?
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); }; } &&
7762 { ac_try='test -s conftest$ac_exeext'
7763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7764 (eval $ac_try) 2>&5
7765 ac_status=$?
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); }; }; then
7769 lt_aix_libpath_sed='
7770 /Import File Strings/,/^$/ {
7771 /^0/ {
7772 s/^0 *\(.*\)$/\1/
7776 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7777 # Check for a 64-bit object if we didn't find anything.
7778 if test -z "$aix_libpath"; then
7779 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7781 else
7782 echo "$as_me: failed program was:" >&5
7783 sed 's/^/| /' conftest.$ac_ext >&5
7786 rm -f conftest.err conftest.$ac_objext \
7787 conftest$ac_exeext conftest.$ac_ext
7788 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7790 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7791 # Warning - without using the other run time loading flags,
7792 # -berok will link without error, but may produce a broken library.
7793 no_undefined_flag=' ${wl}-bernotok'
7794 allow_undefined_flag=' ${wl}-berok'
7795 # Exported symbols can be pulled into shared objects from archives
7796 whole_archive_flag_spec='$convenience'
7797 archive_cmds_need_lc=yes
7798 # This is similar to how AIX traditionally builds its shared libraries.
7799 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'
7804 amigaos*)
7805 if test "$host_cpu" = m68k; then
7806 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)'
7807 hardcode_libdir_flag_spec='-L$libdir'
7808 hardcode_minus_L=yes
7810 # see comment about different semantics on the GNU ld section
7811 ld_shlibs=no
7814 bsdi[45]*)
7815 export_dynamic_flag_spec=-rdynamic
7818 cygwin* | mingw* | pw32*)
7819 # When not using gcc, we currently assume that we are using
7820 # Microsoft Visual C++.
7821 # hardcode_libdir_flag_spec is actually meaningless, as there is
7822 # no search path for DLLs.
7823 hardcode_libdir_flag_spec=' '
7824 allow_undefined_flag=unsupported
7825 # Tell ltmain to make .lib files, not .a files.
7826 libext=lib
7827 # Tell ltmain to make .dll files, not .so files.
7828 shrext_cmds=".dll"
7829 # FIXME: Setting linknames here is a bad hack.
7830 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7831 # The linker will automatically build a .lib file if we build a DLL.
7832 old_archive_from_new_cmds='true'
7833 # FIXME: Should let the user specify the lib program.
7834 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7835 fix_srcfile_path='`cygpath -w "$srcfile"`'
7836 enable_shared_with_static_runtimes=yes
7839 darwin* | rhapsody*)
7840 case $host_os in
7841 rhapsody* | darwin1.[012])
7842 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7844 *) # Darwin 1.3 on
7845 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7846 10.[012])
7847 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7849 10.*)
7850 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7852 esac
7854 esac
7855 archive_cmds_need_lc=no
7856 hardcode_direct=no
7857 hardcode_automatic=yes
7858 hardcode_shlibpath_var=unsupported
7859 whole_archive_flag_spec=''
7860 link_all_deplibs=yes
7861 if test "$GCC" = yes ; then
7862 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7863 echo $ECHO_N "(cached) $ECHO_C" >&6
7864 else
7865 lt_cv_apple_cc_single_mod=no
7866 if test -z "${LT_MULTI_MODULE}"; then
7867 # By default we will add the -single_module flag. You can override
7868 # by either setting the environment variable LT_MULTI_MODULE
7869 # non-empty at configure time, or by adding -multi-module to the
7870 # link flags.
7871 echo "int foo(void){return 1;}" > conftest.c
7872 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7873 -dynamiclib ${wl}-single_module conftest.c
7874 if test -f libconftest.dylib; then
7875 lt_cv_apple_cc_single_mod=yes
7876 rm libconftest.dylib
7878 rm conftest.$ac_ext
7882 output_verbose_link_cmd=echo
7883 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7884 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7885 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7886 else
7887 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7888 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7890 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7891 module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7892 else
7893 case $cc_basename in
7894 xlc*)
7895 output_verbose_link_cmd=echo
7896 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7897 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7898 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7899 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7900 module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7903 ld_shlibs=no
7905 esac
7909 dgux*)
7910 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7911 hardcode_libdir_flag_spec='-L$libdir'
7912 hardcode_shlibpath_var=no
7915 freebsd1*)
7916 ld_shlibs=no
7919 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7920 # support. Future versions do this automatically, but an explicit c++rt0.o
7921 # does not break anything, and helps significantly (at the cost of a little
7922 # extra space).
7923 freebsd2.2*)
7924 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7925 hardcode_libdir_flag_spec='-R$libdir'
7926 hardcode_direct=yes
7927 hardcode_shlibpath_var=no
7930 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7931 freebsd2*)
7932 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7933 hardcode_direct=yes
7934 hardcode_minus_L=yes
7935 hardcode_shlibpath_var=no
7938 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7939 freebsd* | dragonfly*)
7940 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7941 hardcode_libdir_flag_spec='-R$libdir'
7942 hardcode_direct=yes
7943 hardcode_shlibpath_var=no
7946 hpux9*)
7947 if test "$GCC" = yes; then
7948 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'
7949 else
7950 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'
7952 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7953 hardcode_libdir_separator=:
7954 hardcode_direct=yes
7956 # hardcode_minus_L: Not really in the search PATH,
7957 # but as the default location of the library.
7958 hardcode_minus_L=yes
7959 export_dynamic_flag_spec='${wl}-E'
7962 hpux10*)
7963 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7964 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7965 else
7966 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7968 if test "$with_gnu_ld" = no; then
7969 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7970 hardcode_libdir_flag_spec_ld='+b $libdir'
7971 hardcode_libdir_separator=:
7972 hardcode_direct=yes
7973 hardcode_direct_absolute=yes
7974 export_dynamic_flag_spec='${wl}-E'
7975 # hardcode_minus_L: Not really in the search PATH,
7976 # but as the default location of the library.
7977 hardcode_minus_L=yes
7981 hpux11*)
7982 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7983 case $host_cpu in
7984 hppa*64*)
7985 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7987 ia64*)
7988 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7991 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7993 esac
7994 else
7995 case $host_cpu in
7996 hppa*64*)
7997 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7999 ia64*)
8000 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8003 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8005 esac
8007 if test "$with_gnu_ld" = no; then
8008 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8009 hardcode_libdir_separator=:
8011 case $host_cpu in
8012 hppa*64*|ia64*)
8013 hardcode_direct=no
8014 hardcode_shlibpath_var=no
8017 hardcode_direct=yes
8018 hardcode_direct_absolute=yes
8019 export_dynamic_flag_spec='${wl}-E'
8021 # hardcode_minus_L: Not really in the search PATH,
8022 # but as the default location of the library.
8023 hardcode_minus_L=yes
8025 esac
8029 irix5* | irix6* | nonstopux*)
8030 if test "$GCC" = yes; then
8031 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'
8032 # Try to use the -exported_symbol ld option, if it does not
8033 # work, assume that -exports_file does not work either and
8034 # implicitly export all symbols.
8035 save_LDFLAGS="$LDFLAGS"
8036 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8037 cat >conftest.$ac_ext <<_ACEOF
8038 int foo(void) {}
8039 _ACEOF
8040 rm -f conftest.$ac_objext conftest$ac_exeext
8041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8042 (eval $ac_link) 2>conftest.er1
8043 ac_status=$?
8044 grep -v '^ *+' conftest.er1 >conftest.err
8045 rm -f conftest.er1
8046 cat conftest.err >&5
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); } &&
8049 { ac_try='test -z "$ac_c_werror_flag"
8050 || test ! -s conftest.err'
8051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8052 (eval $ac_try) 2>&5
8053 ac_status=$?
8054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); }; } &&
8056 { ac_try='test -s conftest$ac_exeext'
8057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8058 (eval $ac_try) 2>&5
8059 ac_status=$?
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); }; }; then
8062 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'
8064 else
8065 echo "$as_me: failed program was:" >&5
8066 sed 's/^/| /' conftest.$ac_ext >&5
8069 rm -f conftest.err conftest.$ac_objext \
8070 conftest$ac_exeext conftest.$ac_ext
8071 LDFLAGS="$save_LDFLAGS"
8072 else
8073 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'
8074 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'
8076 archive_cmds_need_lc='no'
8077 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8078 hardcode_libdir_separator=:
8079 inherit_rpath=yes
8080 link_all_deplibs=yes
8083 netbsd*)
8084 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8085 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8086 else
8087 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8089 hardcode_libdir_flag_spec='-R$libdir'
8090 hardcode_direct=yes
8091 hardcode_shlibpath_var=no
8094 newsos6)
8095 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8096 hardcode_direct=yes
8097 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8098 hardcode_libdir_separator=:
8099 hardcode_shlibpath_var=no
8102 *nto* | *qnx*)
8105 openbsd*)
8106 hardcode_direct=yes
8107 hardcode_shlibpath_var=no
8108 hardcode_direct_absolute=yes
8109 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8110 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8111 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8112 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8113 export_dynamic_flag_spec='${wl}-E'
8114 else
8115 case $host_os in
8116 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8117 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8118 hardcode_libdir_flag_spec='-R$libdir'
8121 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8122 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8124 esac
8128 os2*)
8129 hardcode_libdir_flag_spec='-L$libdir'
8130 hardcode_minus_L=yes
8131 allow_undefined_flag=unsupported
8132 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'
8133 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8136 osf3*)
8137 if test "$GCC" = yes; then
8138 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8139 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'
8140 else
8141 allow_undefined_flag=' -expect_unresolved \*'
8142 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'
8144 archive_cmds_need_lc='no'
8145 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8146 hardcode_libdir_separator=:
8149 osf4* | osf5*) # as osf3* with the addition of -msym flag
8150 if test "$GCC" = yes; then
8151 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8152 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'
8153 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8154 else
8155 allow_undefined_flag=' -expect_unresolved \*'
8156 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'
8157 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~
8158 $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'
8160 # Both c and cxx compiler support -rpath directly
8161 hardcode_libdir_flag_spec='-rpath $libdir'
8163 archive_cmds_need_lc='no'
8164 hardcode_libdir_separator=:
8167 solaris*)
8168 no_undefined_flag=' -z defs'
8169 if test "$GCC" = yes; then
8170 wlarc='${wl}'
8171 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8172 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8173 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8174 else
8175 case `$CC -V 2>&1` in
8176 *"Compilers 5.0"*)
8177 wlarc=''
8178 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8179 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8180 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8183 wlarc='${wl}'
8184 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8185 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8186 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8188 esac
8190 hardcode_libdir_flag_spec='-R$libdir'
8191 hardcode_shlibpath_var=no
8192 case $host_os in
8193 solaris2.[0-5] | solaris2.[0-5].*) ;;
8195 # The compiler driver will combine and reorder linker options,
8196 # but understands `-z linker_flag'. GCC discards it without `$wl',
8197 # but is careful enough not to reorder.
8198 # Supported since Solaris 2.6 (maybe 2.5.1?)
8199 if test "$GCC" = yes; then
8200 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8201 else
8202 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8205 esac
8206 link_all_deplibs=yes
8209 sunos4*)
8210 if test "x$host_vendor" = xsequent; then
8211 # Use $CC to link under sequent, because it throws in some extra .o
8212 # files that make .init and .fini sections work.
8213 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8214 else
8215 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8217 hardcode_libdir_flag_spec='-L$libdir'
8218 hardcode_direct=yes
8219 hardcode_minus_L=yes
8220 hardcode_shlibpath_var=no
8223 sysv4)
8224 case $host_vendor in
8225 sni)
8226 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8227 hardcode_direct=yes # is this really true???
8229 siemens)
8230 ## LD is ld it makes a PLAMLIB
8231 ## CC just makes a GrossModule.
8232 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8233 reload_cmds='$CC -r -o $output$reload_objs'
8234 hardcode_direct=no
8236 motorola)
8237 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8238 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8240 esac
8241 runpath_var='LD_RUN_PATH'
8242 hardcode_shlibpath_var=no
8245 sysv4.3*)
8246 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8247 hardcode_shlibpath_var=no
8248 export_dynamic_flag_spec='-Bexport'
8251 sysv4*MP*)
8252 if test -d /usr/nec; then
8253 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8254 hardcode_shlibpath_var=no
8255 runpath_var=LD_RUN_PATH
8256 hardcode_runpath_var=yes
8257 ld_shlibs=yes
8261 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8262 no_undefined_flag='${wl}-z,text'
8263 archive_cmds_need_lc=no
8264 hardcode_shlibpath_var=no
8265 runpath_var='LD_RUN_PATH'
8267 if test "$GCC" = yes; then
8268 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8269 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8270 else
8271 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8272 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8276 sysv5* | sco3.2v5* | sco5v6*)
8277 # Note: We can NOT use -z defs as we might desire, because we do not
8278 # link with -lc, and that would cause any symbols used from libc to
8279 # always be unresolved, which means just about no library would
8280 # ever link correctly. If we're not using GNU ld we use -z text
8281 # though, which does catch some bad symbols but isn't as heavy-handed
8282 # as -z defs.
8283 no_undefined_flag='${wl}-z,text'
8284 allow_undefined_flag='${wl}-z,nodefs'
8285 archive_cmds_need_lc=no
8286 hardcode_shlibpath_var=no
8287 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8288 hardcode_libdir_separator=':'
8289 link_all_deplibs=yes
8290 export_dynamic_flag_spec='${wl}-Bexport'
8291 runpath_var='LD_RUN_PATH'
8293 if test "$GCC" = yes; then
8294 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8295 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8296 else
8297 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8298 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8302 uts4*)
8303 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8304 hardcode_libdir_flag_spec='-L$libdir'
8305 hardcode_shlibpath_var=no
8309 ld_shlibs=no
8311 esac
8313 if test x$host_vendor = xsni; then
8314 case $host in
8315 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8316 export_dynamic_flag_spec='${wl}-Blargedynsym'
8318 esac
8322 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8323 echo "${ECHO_T}$ld_shlibs" >&6
8324 test "$ld_shlibs" = no && can_build_shared=no
8326 with_gnu_ld=$with_gnu_ld
8343 # Do we need to explicitly link libc?
8345 case "x$archive_cmds_need_lc" in
8346 x|xyes)
8347 # Assume -lc should be added
8348 archive_cmds_need_lc=yes
8350 if test "$enable_shared" = yes && test "$GCC" = yes; then
8351 case $archive_cmds in
8352 *'~'*)
8353 # FIXME: we may have to deal with multi-command sequences.
8355 '$CC '*)
8356 # Test whether the compiler implicitly links with -lc since on some
8357 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8358 # to ld, don't add -lc before -lgcc.
8359 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8360 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8361 $RM conftest*
8362 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8365 (eval $ac_compile) 2>&5
8366 ac_status=$?
8367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368 (exit $ac_status); } 2>conftest.err; then
8369 soname=conftest
8370 lib=conftest
8371 libobjs=conftest.$ac_objext
8372 deplibs=
8373 wl=$lt_prog_compiler_wl
8374 pic_flag=$lt_prog_compiler_pic
8375 compiler_flags=-v
8376 linker_flags=-v
8377 verstring=
8378 output_objdir=.
8379 libname=conftest
8380 lt_save_allow_undefined_flag=$allow_undefined_flag
8381 allow_undefined_flag=
8382 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8383 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8384 ac_status=$?
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); }
8387 then
8388 archive_cmds_need_lc=no
8389 else
8390 archive_cmds_need_lc=yes
8392 allow_undefined_flag=$lt_save_allow_undefined_flag
8393 else
8394 cat conftest.err 1>&5
8396 $RM conftest*
8397 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8398 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8400 esac
8403 esac
8561 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8562 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8563 withGCC=$GCC
8564 if test "$withGCC" = yes; then
8565 case $host_os in
8566 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8567 *) lt_awk_arg="/^libraries:/" ;;
8568 esac
8569 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8570 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8571 # if the path contains ";" then we assume it to be the separator
8572 # otherwise default to the standard path separator (i.e. ":") - it is
8573 # assumed that no part of a normal pathname contains ";" but that should
8574 # okay in the real world where ";" in dirpaths is itself problematic.
8575 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8576 else
8577 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8579 # Ok, now we have the path, separated by spaces, we can step through it
8580 # and add multilib dir if necessary.
8581 lt_tmp_lt_search_path_spec=
8582 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8583 for lt_sys_path in $lt_search_path_spec; do
8584 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8585 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8586 else
8587 test -d "$lt_sys_path" && \
8588 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8590 done
8591 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8592 BEGIN {RS=" "; FS="/|\n";} {
8593 lt_foo="";
8594 lt_count=0;
8595 for (lt_i = NF; lt_i > 0; lt_i--) {
8596 if ($lt_i != "" && $lt_i != ".") {
8597 if ($lt_i == "..") {
8598 lt_count++;
8599 } else {
8600 if (lt_count == 0) {
8601 lt_foo="/" $lt_i lt_foo;
8602 } else {
8603 lt_count--;
8608 if (lt_foo != "") { lt_freq[lt_foo]++; }
8609 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8611 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8612 else
8613 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8615 library_names_spec=
8616 libname_spec='lib$name'
8617 soname_spec=
8618 shrext_cmds=".so"
8619 postinstall_cmds=
8620 postuninstall_cmds=
8621 finish_cmds=
8622 finish_eval=
8623 shlibpath_var=
8624 shlibpath_overrides_runpath=unknown
8625 version_type=none
8626 dynamic_linker="$host_os ld.so"
8627 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8628 need_lib_prefix=unknown
8629 hardcode_into_libs=no
8631 # when you set need_version to no, make sure it does not cause -set_version
8632 # flags to be left without arguments
8633 need_version=unknown
8635 case $host_os in
8636 aix3*)
8637 version_type=linux
8638 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8639 shlibpath_var=LIBPATH
8641 # AIX 3 has no versioning support, so we append a major version to the name.
8642 soname_spec='${libname}${release}${shared_ext}$major'
8645 aix[4-9]*)
8646 version_type=linux
8647 need_lib_prefix=no
8648 need_version=no
8649 hardcode_into_libs=yes
8650 if test "$host_cpu" = ia64; then
8651 # AIX 5 supports IA64
8652 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8653 shlibpath_var=LD_LIBRARY_PATH
8654 else
8655 # With GCC up to 2.95.x, collect2 would create an import file
8656 # for dependence libraries. The import file would start with
8657 # the line `#! .'. This would cause the generated library to
8658 # depend on `.', always an invalid library. This was fixed in
8659 # development snapshots of GCC prior to 3.0.
8660 case $host_os in
8661 aix4 | aix4.[01] | aix4.[01].*)
8662 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8663 echo ' yes '
8664 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8666 else
8667 can_build_shared=no
8670 esac
8671 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8672 # soname into executable. Probably we can add versioning support to
8673 # collect2, so additional links can be useful in future.
8674 if test "$aix_use_runtimelinking" = yes; then
8675 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8676 # instead of lib<name>.a to let people know that these are not
8677 # typical AIX shared libraries.
8678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8679 else
8680 # We preserve .a as extension for shared libraries through AIX4.2
8681 # and later when we are not doing run time linking.
8682 library_names_spec='${libname}${release}.a $libname.a'
8683 soname_spec='${libname}${release}${shared_ext}$major'
8685 shlibpath_var=LIBPATH
8689 amigaos*)
8690 if test "$host_cpu" = m68k; then
8691 library_names_spec='$libname.ixlibrary $libname.a'
8692 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8693 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'
8694 else
8695 dynamic_linker=no
8699 beos*)
8700 library_names_spec='${libname}${shared_ext}'
8701 dynamic_linker="$host_os ld.so"
8702 shlibpath_var=LIBRARY_PATH
8705 bsdi[45]*)
8706 version_type=linux
8707 need_version=no
8708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8709 soname_spec='${libname}${release}${shared_ext}$major'
8710 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8711 shlibpath_var=LD_LIBRARY_PATH
8712 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8713 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8714 # the default ld.so.conf also contains /usr/contrib/lib and
8715 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8716 # libtool to hard-code these into programs
8719 cygwin* | mingw* | pw32*)
8720 version_type=windows
8721 shrext_cmds=".dll"
8722 need_version=no
8723 need_lib_prefix=no
8725 case $withGCC,$host_os in
8726 yes,cygwin* | yes,mingw* | yes,pw32*)
8727 library_names_spec='$libname.dll.a'
8728 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8729 postinstall_cmds='base_file=`basename \${file}`~
8730 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8731 dldir=$destdir/`dirname \$dlpath`~
8732 test -d \$dldir || mkdir -p \$dldir~
8733 $install_prog $dir/$dlname \$dldir/$dlname~
8734 chmod a+x \$dldir/$dlname~
8735 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8736 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8738 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8739 dlpath=$dir/\$dldll~
8740 $RM \$dlpath'
8741 shlibpath_overrides_runpath=yes
8743 case $host_os in
8744 cygwin*)
8745 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8746 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8747 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8749 mingw*)
8750 # MinGW DLLs use traditional 'lib' prefix
8751 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8752 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8753 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8754 # It is most probably a Windows format PATH printed by
8755 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8756 # path with ; separators, and with drive letters. We can handle the
8757 # drive letters (cygwin fileutils understands them), so leave them,
8758 # especially as we might pass files found there to a mingw objdump,
8759 # which wouldn't understand a cygwinified path. Ahh.
8760 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8761 else
8762 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8765 pw32*)
8766 # pw32 DLLs use 'pw' prefix rather than 'lib'
8767 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8769 esac
8773 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8775 esac
8776 dynamic_linker='Win32 ld.exe'
8777 # FIXME: first we should search . and the directory the executable is in
8778 shlibpath_var=PATH
8781 darwin* | rhapsody*)
8782 dynamic_linker="$host_os dyld"
8783 version_type=darwin
8784 need_lib_prefix=no
8785 need_version=no
8786 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8787 soname_spec='${libname}${release}${major}$shared_ext'
8788 shlibpath_overrides_runpath=yes
8789 shlibpath_var=DYLD_LIBRARY_PATH
8790 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8792 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8793 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8796 dgux*)
8797 version_type=linux
8798 need_lib_prefix=no
8799 need_version=no
8800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8801 soname_spec='${libname}${release}${shared_ext}$major'
8802 shlibpath_var=LD_LIBRARY_PATH
8805 freebsd1*)
8806 dynamic_linker=no
8809 freebsd* | dragonfly*)
8810 # DragonFly does not have aout. When/if they implement a new
8811 # versioning mechanism, adjust this.
8812 if test -x /usr/bin/objformat; then
8813 objformat=`/usr/bin/objformat`
8814 else
8815 case $host_os in
8816 freebsd[123]*) objformat=aout ;;
8817 *) objformat=elf ;;
8818 esac
8820 version_type=freebsd-$objformat
8821 case $version_type in
8822 freebsd-elf*)
8823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8824 need_version=no
8825 need_lib_prefix=no
8827 freebsd-*)
8828 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8829 need_version=yes
8831 esac
8832 shlibpath_var=LD_LIBRARY_PATH
8833 case $host_os in
8834 freebsd2*)
8835 shlibpath_overrides_runpath=yes
8837 freebsd3.[01]* | freebsdelf3.[01]*)
8838 shlibpath_overrides_runpath=yes
8839 hardcode_into_libs=yes
8841 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8842 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8843 shlibpath_overrides_runpath=no
8844 hardcode_into_libs=yes
8846 *) # from 4.6 on, and DragonFly
8847 shlibpath_overrides_runpath=yes
8848 hardcode_into_libs=yes
8850 esac
8853 gnu*)
8854 version_type=linux
8855 need_lib_prefix=no
8856 need_version=no
8857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8858 soname_spec='${libname}${release}${shared_ext}$major'
8859 shlibpath_var=LD_LIBRARY_PATH
8860 hardcode_into_libs=yes
8863 hpux9* | hpux10* | hpux11*)
8864 # Give a soname corresponding to the major version so that dld.sl refuses to
8865 # link against other versions.
8866 version_type=sunos
8867 need_lib_prefix=no
8868 need_version=no
8869 case $host_cpu in
8870 ia64*)
8871 shrext_cmds='.so'
8872 hardcode_into_libs=yes
8873 dynamic_linker="$host_os dld.so"
8874 shlibpath_var=LD_LIBRARY_PATH
8875 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8877 soname_spec='${libname}${release}${shared_ext}$major'
8878 if test "X$HPUX_IA64_MODE" = X32; then
8879 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8880 else
8881 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8883 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8885 hppa*64*)
8886 shrext_cmds='.sl'
8887 hardcode_into_libs=yes
8888 dynamic_linker="$host_os dld.sl"
8889 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8890 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8892 soname_spec='${libname}${release}${shared_ext}$major'
8893 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8894 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8897 shrext_cmds='.sl'
8898 dynamic_linker="$host_os dld.sl"
8899 shlibpath_var=SHLIB_PATH
8900 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8902 soname_spec='${libname}${release}${shared_ext}$major'
8904 esac
8905 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8906 postinstall_cmds='chmod 555 $lib'
8909 interix[3-9]*)
8910 version_type=linux
8911 need_lib_prefix=no
8912 need_version=no
8913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8914 soname_spec='${libname}${release}${shared_ext}$major'
8915 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8916 shlibpath_var=LD_LIBRARY_PATH
8917 shlibpath_overrides_runpath=no
8918 hardcode_into_libs=yes
8921 irix5* | irix6* | nonstopux*)
8922 case $host_os in
8923 nonstopux*) version_type=nonstopux ;;
8925 if test "$lt_cv_prog_gnu_ld" = yes; then
8926 version_type=linux
8927 else
8928 version_type=irix
8929 fi ;;
8930 esac
8931 need_lib_prefix=no
8932 need_version=no
8933 soname_spec='${libname}${release}${shared_ext}$major'
8934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8935 case $host_os in
8936 irix5* | nonstopux*)
8937 libsuff= shlibsuff=
8940 case $LD in # libtool.m4 will add one of these switches to LD
8941 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8942 libsuff= shlibsuff= libmagic=32-bit;;
8943 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8944 libsuff=32 shlibsuff=N32 libmagic=N32;;
8945 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8946 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8947 *) libsuff= shlibsuff= libmagic=never-match;;
8948 esac
8950 esac
8951 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8952 shlibpath_overrides_runpath=no
8953 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8954 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8955 hardcode_into_libs=yes
8958 # No shared lib support for Linux oldld, aout, or coff.
8959 linux*oldld* | linux*aout* | linux*coff*)
8960 dynamic_linker=no
8963 # This must be Linux ELF.
8964 linux* | k*bsd*-gnu)
8965 version_type=linux
8966 need_lib_prefix=no
8967 need_version=no
8968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8969 soname_spec='${libname}${release}${shared_ext}$major'
8970 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8971 shlibpath_var=LD_LIBRARY_PATH
8972 shlibpath_overrides_runpath=no
8973 # Some binutils ld are patched to set DT_RUNPATH
8974 save_LDFLAGS=$LDFLAGS
8975 save_libdir=$libdir
8976 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8977 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8978 cat >conftest.$ac_ext <<_ACEOF
8979 /* confdefs.h. */
8980 _ACEOF
8981 cat confdefs.h >>conftest.$ac_ext
8982 cat >>conftest.$ac_ext <<_ACEOF
8983 /* end confdefs.h. */
8986 main ()
8990 return 0;
8992 _ACEOF
8993 rm -f conftest.$ac_objext conftest$ac_exeext
8994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8995 (eval $ac_link) 2>conftest.er1
8996 ac_status=$?
8997 grep -v '^ *+' conftest.er1 >conftest.err
8998 rm -f conftest.er1
8999 cat conftest.err >&5
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); } &&
9002 { ac_try='test -z "$ac_c_werror_flag"
9003 || test ! -s conftest.err'
9004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9005 (eval $ac_try) 2>&5
9006 ac_status=$?
9007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008 (exit $ac_status); }; } &&
9009 { ac_try='test -s conftest$ac_exeext'
9010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9011 (eval $ac_try) 2>&5
9012 ac_status=$?
9013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014 (exit $ac_status); }; }; then
9015 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9016 shlibpath_overrides_runpath=yes
9019 else
9020 echo "$as_me: failed program was:" >&5
9021 sed 's/^/| /' conftest.$ac_ext >&5
9024 rm -f conftest.err conftest.$ac_objext \
9025 conftest$ac_exeext conftest.$ac_ext
9026 LDFLAGS=$save_LDFLAGS
9027 libdir=$save_libdir
9029 # This implies no fast_install, which is unacceptable.
9030 # Some rework will be needed to allow for fast_install
9031 # before this can be enabled.
9032 hardcode_into_libs=yes
9034 # Append ld.so.conf contents to the search path
9035 if test -f /etc/ld.so.conf; then
9036 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9037 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9040 # We used to test for /lib/ld.so.1 and disable shared libraries on
9041 # powerpc, because MkLinux only supported shared libraries with the
9042 # GNU dynamic linker. Since this was broken with cross compilers,
9043 # most powerpc-linux boxes support dynamic linking these days and
9044 # people can always --disable-shared, the test was removed, and we
9045 # assume the GNU/Linux dynamic linker is in use.
9046 dynamic_linker='GNU/Linux ld.so'
9049 netbsd*)
9050 version_type=sunos
9051 need_lib_prefix=no
9052 need_version=no
9053 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9055 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9056 dynamic_linker='NetBSD (a.out) ld.so'
9057 else
9058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9059 soname_spec='${libname}${release}${shared_ext}$major'
9060 dynamic_linker='NetBSD ld.elf_so'
9062 shlibpath_var=LD_LIBRARY_PATH
9063 shlibpath_overrides_runpath=yes
9064 hardcode_into_libs=yes
9067 newsos6)
9068 version_type=linux
9069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9070 shlibpath_var=LD_LIBRARY_PATH
9071 shlibpath_overrides_runpath=yes
9074 *nto* | *qnx*)
9075 version_type=qnx
9076 need_lib_prefix=no
9077 need_version=no
9078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9079 soname_spec='${libname}${release}${shared_ext}$major'
9080 shlibpath_var=LD_LIBRARY_PATH
9081 shlibpath_overrides_runpath=no
9082 hardcode_into_libs=yes
9083 dynamic_linker='ldqnx.so'
9086 openbsd*)
9087 version_type=sunos
9088 sys_lib_dlsearch_path_spec="/usr/lib"
9089 need_lib_prefix=no
9090 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9091 case $host_os in
9092 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9093 *) need_version=no ;;
9094 esac
9095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9096 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9097 shlibpath_var=LD_LIBRARY_PATH
9098 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9099 case $host_os in
9100 openbsd2.[89] | openbsd2.[89].*)
9101 shlibpath_overrides_runpath=no
9104 shlibpath_overrides_runpath=yes
9106 esac
9107 else
9108 shlibpath_overrides_runpath=yes
9112 os2*)
9113 libname_spec='$name'
9114 shrext_cmds=".dll"
9115 need_lib_prefix=no
9116 library_names_spec='$libname${shared_ext} $libname.a'
9117 dynamic_linker='OS/2 ld.exe'
9118 shlibpath_var=LIBPATH
9121 osf3* | osf4* | osf5*)
9122 version_type=osf
9123 need_lib_prefix=no
9124 need_version=no
9125 soname_spec='${libname}${release}${shared_ext}$major'
9126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9127 shlibpath_var=LD_LIBRARY_PATH
9128 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9129 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9132 rdos*)
9133 dynamic_linker=no
9136 solaris*)
9137 version_type=linux
9138 need_lib_prefix=no
9139 need_version=no
9140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9141 soname_spec='${libname}${release}${shared_ext}$major'
9142 shlibpath_var=LD_LIBRARY_PATH
9143 shlibpath_overrides_runpath=yes
9144 hardcode_into_libs=yes
9145 # ldd complains unless libraries are executable
9146 postinstall_cmds='chmod +x $lib'
9149 sunos4*)
9150 version_type=sunos
9151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9152 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9153 shlibpath_var=LD_LIBRARY_PATH
9154 shlibpath_overrides_runpath=yes
9155 if test "$with_gnu_ld" = yes; then
9156 need_lib_prefix=no
9158 need_version=yes
9161 sysv4 | sysv4.3*)
9162 version_type=linux
9163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9164 soname_spec='${libname}${release}${shared_ext}$major'
9165 shlibpath_var=LD_LIBRARY_PATH
9166 case $host_vendor in
9167 sni)
9168 shlibpath_overrides_runpath=no
9169 need_lib_prefix=no
9170 runpath_var=LD_RUN_PATH
9172 siemens)
9173 need_lib_prefix=no
9175 motorola)
9176 need_lib_prefix=no
9177 need_version=no
9178 shlibpath_overrides_runpath=no
9179 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9181 esac
9184 sysv4*MP*)
9185 if test -d /usr/nec ;then
9186 version_type=linux
9187 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9188 soname_spec='$libname${shared_ext}.$major'
9189 shlibpath_var=LD_LIBRARY_PATH
9193 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9194 version_type=freebsd-elf
9195 need_lib_prefix=no
9196 need_version=no
9197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9198 soname_spec='${libname}${release}${shared_ext}$major'
9199 shlibpath_var=LD_LIBRARY_PATH
9200 shlibpath_overrides_runpath=yes
9201 hardcode_into_libs=yes
9202 if test "$with_gnu_ld" = yes; then
9203 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9204 else
9205 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9206 case $host_os in
9207 sco3.2v5*)
9208 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9210 esac
9212 sys_lib_dlsearch_path_spec='/usr/lib'
9215 tpf*)
9216 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9217 version_type=linux
9218 need_lib_prefix=no
9219 need_version=no
9220 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9221 shlibpath_var=LD_LIBRARY_PATH
9222 shlibpath_overrides_runpath=no
9223 hardcode_into_libs=yes
9226 uts4*)
9227 version_type=linux
9228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9229 soname_spec='${libname}${release}${shared_ext}$major'
9230 shlibpath_var=LD_LIBRARY_PATH
9234 dynamic_linker=no
9236 esac
9237 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9238 echo "${ECHO_T}$dynamic_linker" >&6
9239 test "$dynamic_linker" = no && can_build_shared=no
9241 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9242 if test "$GCC" = yes; then
9243 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9332 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9333 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9334 hardcode_action=
9335 if test -n "$hardcode_libdir_flag_spec" ||
9336 test -n "$runpath_var" ||
9337 test "X$hardcode_automatic" = "Xyes" ; then
9339 # We can hardcode non-existent directories.
9340 if test "$hardcode_direct" != no &&
9341 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9342 # have to relink, otherwise we might link with an installed library
9343 # when we should be linking with a yet-to-be-installed one
9344 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9345 test "$hardcode_minus_L" != no; then
9346 # Linking always hardcodes the temporary library directory.
9347 hardcode_action=relink
9348 else
9349 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9350 hardcode_action=immediate
9352 else
9353 # We cannot hardcode anything, or else we can only hardcode existing
9354 # directories.
9355 hardcode_action=unsupported
9357 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9358 echo "${ECHO_T}$hardcode_action" >&6
9360 if test "$hardcode_action" = relink ||
9361 test "$inherit_rpath" = yes; then
9362 # Fast installation is not supported
9363 enable_fast_install=no
9364 elif test "$shlibpath_overrides_runpath" = yes ||
9365 test "$enable_shared" = no; then
9366 # Fast installation is not necessary
9367 enable_fast_install=needless
9375 if test "x$enable_dlopen" != xyes; then
9376 enable_dlopen=unknown
9377 enable_dlopen_self=unknown
9378 enable_dlopen_self_static=unknown
9379 else
9380 lt_cv_dlopen=no
9381 lt_cv_dlopen_libs=
9383 case $host_os in
9384 beos*)
9385 lt_cv_dlopen="load_add_on"
9386 lt_cv_dlopen_libs=
9387 lt_cv_dlopen_self=yes
9390 mingw* | pw32*)
9391 lt_cv_dlopen="LoadLibrary"
9392 lt_cv_dlopen_libs=
9395 cygwin*)
9396 lt_cv_dlopen="dlopen"
9397 lt_cv_dlopen_libs=
9400 darwin*)
9401 # if libdl is installed we need to link against it
9402 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9403 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9404 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9405 echo $ECHO_N "(cached) $ECHO_C" >&6
9406 else
9407 ac_check_lib_save_LIBS=$LIBS
9408 LIBS="-ldl $LIBS"
9409 cat >conftest.$ac_ext <<_ACEOF
9410 /* confdefs.h. */
9411 _ACEOF
9412 cat confdefs.h >>conftest.$ac_ext
9413 cat >>conftest.$ac_ext <<_ACEOF
9414 /* end confdefs.h. */
9416 /* Override any gcc2 internal prototype to avoid an error. */
9417 #ifdef __cplusplus
9418 extern "C"
9419 #endif
9420 /* We use char because int might match the return type of a gcc2
9421 builtin and then its argument prototype would still apply. */
9422 char dlopen ();
9424 main ()
9426 dlopen ();
9428 return 0;
9430 _ACEOF
9431 rm -f conftest.$ac_objext conftest$ac_exeext
9432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9433 (eval $ac_link) 2>conftest.er1
9434 ac_status=$?
9435 grep -v '^ *+' conftest.er1 >conftest.err
9436 rm -f conftest.er1
9437 cat conftest.err >&5
9438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439 (exit $ac_status); } &&
9440 { ac_try='test -z "$ac_c_werror_flag"
9441 || test ! -s conftest.err'
9442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9443 (eval $ac_try) 2>&5
9444 ac_status=$?
9445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446 (exit $ac_status); }; } &&
9447 { ac_try='test -s conftest$ac_exeext'
9448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9449 (eval $ac_try) 2>&5
9450 ac_status=$?
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); }; }; then
9453 ac_cv_lib_dl_dlopen=yes
9454 else
9455 echo "$as_me: failed program was:" >&5
9456 sed 's/^/| /' conftest.$ac_ext >&5
9458 ac_cv_lib_dl_dlopen=no
9460 rm -f conftest.err conftest.$ac_objext \
9461 conftest$ac_exeext conftest.$ac_ext
9462 LIBS=$ac_check_lib_save_LIBS
9464 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9465 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9466 if test $ac_cv_lib_dl_dlopen = yes; then
9467 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9468 else
9470 lt_cv_dlopen="dyld"
9471 lt_cv_dlopen_libs=
9472 lt_cv_dlopen_self=yes
9479 echo "$as_me:$LINENO: checking for shl_load" >&5
9480 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9481 if test "${ac_cv_func_shl_load+set}" = set; then
9482 echo $ECHO_N "(cached) $ECHO_C" >&6
9483 else
9484 cat >conftest.$ac_ext <<_ACEOF
9485 /* confdefs.h. */
9486 _ACEOF
9487 cat confdefs.h >>conftest.$ac_ext
9488 cat >>conftest.$ac_ext <<_ACEOF
9489 /* end confdefs.h. */
9490 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9491 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9492 #define shl_load innocuous_shl_load
9494 /* System header to define __stub macros and hopefully few prototypes,
9495 which can conflict with char shl_load (); below.
9496 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9497 <limits.h> exists even on freestanding compilers. */
9499 #ifdef __STDC__
9500 # include <limits.h>
9501 #else
9502 # include <assert.h>
9503 #endif
9505 #undef shl_load
9507 /* Override any gcc2 internal prototype to avoid an error. */
9508 #ifdef __cplusplus
9509 extern "C"
9511 #endif
9512 /* We use char because int might match the return type of a gcc2
9513 builtin and then its argument prototype would still apply. */
9514 char shl_load ();
9515 /* The GNU C library defines this for functions which it implements
9516 to always fail with ENOSYS. Some functions are actually named
9517 something starting with __ and the normal name is an alias. */
9518 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9519 choke me
9520 #else
9521 char (*f) () = shl_load;
9522 #endif
9523 #ifdef __cplusplus
9525 #endif
9528 main ()
9530 return f != shl_load;
9532 return 0;
9534 _ACEOF
9535 rm -f conftest.$ac_objext conftest$ac_exeext
9536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9537 (eval $ac_link) 2>conftest.er1
9538 ac_status=$?
9539 grep -v '^ *+' conftest.er1 >conftest.err
9540 rm -f conftest.er1
9541 cat conftest.err >&5
9542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543 (exit $ac_status); } &&
9544 { ac_try='test -z "$ac_c_werror_flag"
9545 || test ! -s conftest.err'
9546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9547 (eval $ac_try) 2>&5
9548 ac_status=$?
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); }; } &&
9551 { ac_try='test -s conftest$ac_exeext'
9552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9553 (eval $ac_try) 2>&5
9554 ac_status=$?
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); }; }; then
9557 ac_cv_func_shl_load=yes
9558 else
9559 echo "$as_me: failed program was:" >&5
9560 sed 's/^/| /' conftest.$ac_ext >&5
9562 ac_cv_func_shl_load=no
9564 rm -f conftest.err conftest.$ac_objext \
9565 conftest$ac_exeext conftest.$ac_ext
9567 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9568 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9569 if test $ac_cv_func_shl_load = yes; then
9570 lt_cv_dlopen="shl_load"
9571 else
9572 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9573 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9574 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9575 echo $ECHO_N "(cached) $ECHO_C" >&6
9576 else
9577 ac_check_lib_save_LIBS=$LIBS
9578 LIBS="-ldld $LIBS"
9579 cat >conftest.$ac_ext <<_ACEOF
9580 /* confdefs.h. */
9581 _ACEOF
9582 cat confdefs.h >>conftest.$ac_ext
9583 cat >>conftest.$ac_ext <<_ACEOF
9584 /* end confdefs.h. */
9586 /* Override any gcc2 internal prototype to avoid an error. */
9587 #ifdef __cplusplus
9588 extern "C"
9589 #endif
9590 /* We use char because int might match the return type of a gcc2
9591 builtin and then its argument prototype would still apply. */
9592 char shl_load ();
9594 main ()
9596 shl_load ();
9598 return 0;
9600 _ACEOF
9601 rm -f conftest.$ac_objext conftest$ac_exeext
9602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9603 (eval $ac_link) 2>conftest.er1
9604 ac_status=$?
9605 grep -v '^ *+' conftest.er1 >conftest.err
9606 rm -f conftest.er1
9607 cat conftest.err >&5
9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609 (exit $ac_status); } &&
9610 { ac_try='test -z "$ac_c_werror_flag"
9611 || test ! -s conftest.err'
9612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9613 (eval $ac_try) 2>&5
9614 ac_status=$?
9615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616 (exit $ac_status); }; } &&
9617 { ac_try='test -s conftest$ac_exeext'
9618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9619 (eval $ac_try) 2>&5
9620 ac_status=$?
9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622 (exit $ac_status); }; }; then
9623 ac_cv_lib_dld_shl_load=yes
9624 else
9625 echo "$as_me: failed program was:" >&5
9626 sed 's/^/| /' conftest.$ac_ext >&5
9628 ac_cv_lib_dld_shl_load=no
9630 rm -f conftest.err conftest.$ac_objext \
9631 conftest$ac_exeext conftest.$ac_ext
9632 LIBS=$ac_check_lib_save_LIBS
9634 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9635 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9636 if test $ac_cv_lib_dld_shl_load = yes; then
9637 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9638 else
9639 echo "$as_me:$LINENO: checking for dlopen" >&5
9640 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9641 if test "${ac_cv_func_dlopen+set}" = set; then
9642 echo $ECHO_N "(cached) $ECHO_C" >&6
9643 else
9644 cat >conftest.$ac_ext <<_ACEOF
9645 /* confdefs.h. */
9646 _ACEOF
9647 cat confdefs.h >>conftest.$ac_ext
9648 cat >>conftest.$ac_ext <<_ACEOF
9649 /* end confdefs.h. */
9650 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9651 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9652 #define dlopen innocuous_dlopen
9654 /* System header to define __stub macros and hopefully few prototypes,
9655 which can conflict with char dlopen (); below.
9656 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9657 <limits.h> exists even on freestanding compilers. */
9659 #ifdef __STDC__
9660 # include <limits.h>
9661 #else
9662 # include <assert.h>
9663 #endif
9665 #undef dlopen
9667 /* Override any gcc2 internal prototype to avoid an error. */
9668 #ifdef __cplusplus
9669 extern "C"
9671 #endif
9672 /* We use char because int might match the return type of a gcc2
9673 builtin and then its argument prototype would still apply. */
9674 char dlopen ();
9675 /* The GNU C library defines this for functions which it implements
9676 to always fail with ENOSYS. Some functions are actually named
9677 something starting with __ and the normal name is an alias. */
9678 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9679 choke me
9680 #else
9681 char (*f) () = dlopen;
9682 #endif
9683 #ifdef __cplusplus
9685 #endif
9688 main ()
9690 return f != dlopen;
9692 return 0;
9694 _ACEOF
9695 rm -f conftest.$ac_objext conftest$ac_exeext
9696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9697 (eval $ac_link) 2>conftest.er1
9698 ac_status=$?
9699 grep -v '^ *+' conftest.er1 >conftest.err
9700 rm -f conftest.er1
9701 cat conftest.err >&5
9702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703 (exit $ac_status); } &&
9704 { ac_try='test -z "$ac_c_werror_flag"
9705 || test ! -s conftest.err'
9706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9707 (eval $ac_try) 2>&5
9708 ac_status=$?
9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); }; } &&
9711 { ac_try='test -s conftest$ac_exeext'
9712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9713 (eval $ac_try) 2>&5
9714 ac_status=$?
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); }; }; then
9717 ac_cv_func_dlopen=yes
9718 else
9719 echo "$as_me: failed program was:" >&5
9720 sed 's/^/| /' conftest.$ac_ext >&5
9722 ac_cv_func_dlopen=no
9724 rm -f conftest.err conftest.$ac_objext \
9725 conftest$ac_exeext conftest.$ac_ext
9727 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9728 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9729 if test $ac_cv_func_dlopen = yes; then
9730 lt_cv_dlopen="dlopen"
9731 else
9732 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9733 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9734 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9735 echo $ECHO_N "(cached) $ECHO_C" >&6
9736 else
9737 ac_check_lib_save_LIBS=$LIBS
9738 LIBS="-ldl $LIBS"
9739 cat >conftest.$ac_ext <<_ACEOF
9740 /* confdefs.h. */
9741 _ACEOF
9742 cat confdefs.h >>conftest.$ac_ext
9743 cat >>conftest.$ac_ext <<_ACEOF
9744 /* end confdefs.h. */
9746 /* Override any gcc2 internal prototype to avoid an error. */
9747 #ifdef __cplusplus
9748 extern "C"
9749 #endif
9750 /* We use char because int might match the return type of a gcc2
9751 builtin and then its argument prototype would still apply. */
9752 char dlopen ();
9754 main ()
9756 dlopen ();
9758 return 0;
9760 _ACEOF
9761 rm -f conftest.$ac_objext conftest$ac_exeext
9762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9763 (eval $ac_link) 2>conftest.er1
9764 ac_status=$?
9765 grep -v '^ *+' conftest.er1 >conftest.err
9766 rm -f conftest.er1
9767 cat conftest.err >&5
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); } &&
9770 { ac_try='test -z "$ac_c_werror_flag"
9771 || test ! -s conftest.err'
9772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9773 (eval $ac_try) 2>&5
9774 ac_status=$?
9775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776 (exit $ac_status); }; } &&
9777 { ac_try='test -s conftest$ac_exeext'
9778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9779 (eval $ac_try) 2>&5
9780 ac_status=$?
9781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782 (exit $ac_status); }; }; then
9783 ac_cv_lib_dl_dlopen=yes
9784 else
9785 echo "$as_me: failed program was:" >&5
9786 sed 's/^/| /' conftest.$ac_ext >&5
9788 ac_cv_lib_dl_dlopen=no
9790 rm -f conftest.err conftest.$ac_objext \
9791 conftest$ac_exeext conftest.$ac_ext
9792 LIBS=$ac_check_lib_save_LIBS
9794 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9795 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9796 if test $ac_cv_lib_dl_dlopen = yes; then
9797 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9798 else
9799 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9800 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9801 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9802 echo $ECHO_N "(cached) $ECHO_C" >&6
9803 else
9804 ac_check_lib_save_LIBS=$LIBS
9805 LIBS="-lsvld $LIBS"
9806 cat >conftest.$ac_ext <<_ACEOF
9807 /* confdefs.h. */
9808 _ACEOF
9809 cat confdefs.h >>conftest.$ac_ext
9810 cat >>conftest.$ac_ext <<_ACEOF
9811 /* end confdefs.h. */
9813 /* Override any gcc2 internal prototype to avoid an error. */
9814 #ifdef __cplusplus
9815 extern "C"
9816 #endif
9817 /* We use char because int might match the return type of a gcc2
9818 builtin and then its argument prototype would still apply. */
9819 char dlopen ();
9821 main ()
9823 dlopen ();
9825 return 0;
9827 _ACEOF
9828 rm -f conftest.$ac_objext conftest$ac_exeext
9829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9830 (eval $ac_link) 2>conftest.er1
9831 ac_status=$?
9832 grep -v '^ *+' conftest.er1 >conftest.err
9833 rm -f conftest.er1
9834 cat conftest.err >&5
9835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836 (exit $ac_status); } &&
9837 { ac_try='test -z "$ac_c_werror_flag"
9838 || test ! -s conftest.err'
9839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9840 (eval $ac_try) 2>&5
9841 ac_status=$?
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); }; } &&
9844 { ac_try='test -s conftest$ac_exeext'
9845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9846 (eval $ac_try) 2>&5
9847 ac_status=$?
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); }; }; then
9850 ac_cv_lib_svld_dlopen=yes
9851 else
9852 echo "$as_me: failed program was:" >&5
9853 sed 's/^/| /' conftest.$ac_ext >&5
9855 ac_cv_lib_svld_dlopen=no
9857 rm -f conftest.err conftest.$ac_objext \
9858 conftest$ac_exeext conftest.$ac_ext
9859 LIBS=$ac_check_lib_save_LIBS
9861 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9862 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9863 if test $ac_cv_lib_svld_dlopen = yes; then
9864 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9865 else
9866 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9867 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9868 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9869 echo $ECHO_N "(cached) $ECHO_C" >&6
9870 else
9871 ac_check_lib_save_LIBS=$LIBS
9872 LIBS="-ldld $LIBS"
9873 cat >conftest.$ac_ext <<_ACEOF
9874 /* confdefs.h. */
9875 _ACEOF
9876 cat confdefs.h >>conftest.$ac_ext
9877 cat >>conftest.$ac_ext <<_ACEOF
9878 /* end confdefs.h. */
9880 /* Override any gcc2 internal prototype to avoid an error. */
9881 #ifdef __cplusplus
9882 extern "C"
9883 #endif
9884 /* We use char because int might match the return type of a gcc2
9885 builtin and then its argument prototype would still apply. */
9886 char dld_link ();
9888 main ()
9890 dld_link ();
9892 return 0;
9894 _ACEOF
9895 rm -f conftest.$ac_objext conftest$ac_exeext
9896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9897 (eval $ac_link) 2>conftest.er1
9898 ac_status=$?
9899 grep -v '^ *+' conftest.er1 >conftest.err
9900 rm -f conftest.er1
9901 cat conftest.err >&5
9902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903 (exit $ac_status); } &&
9904 { ac_try='test -z "$ac_c_werror_flag"
9905 || test ! -s conftest.err'
9906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9907 (eval $ac_try) 2>&5
9908 ac_status=$?
9909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 (exit $ac_status); }; } &&
9911 { ac_try='test -s conftest$ac_exeext'
9912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9913 (eval $ac_try) 2>&5
9914 ac_status=$?
9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 (exit $ac_status); }; }; then
9917 ac_cv_lib_dld_dld_link=yes
9918 else
9919 echo "$as_me: failed program was:" >&5
9920 sed 's/^/| /' conftest.$ac_ext >&5
9922 ac_cv_lib_dld_dld_link=no
9924 rm -f conftest.err conftest.$ac_objext \
9925 conftest$ac_exeext conftest.$ac_ext
9926 LIBS=$ac_check_lib_save_LIBS
9928 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9929 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9930 if test $ac_cv_lib_dld_dld_link = yes; then
9931 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9950 esac
9952 if test "x$lt_cv_dlopen" != xno; then
9953 enable_dlopen=yes
9954 else
9955 enable_dlopen=no
9958 case $lt_cv_dlopen in
9959 dlopen)
9960 save_CPPFLAGS="$CPPFLAGS"
9961 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9963 save_LDFLAGS="$LDFLAGS"
9964 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9966 save_LIBS="$LIBS"
9967 LIBS="$lt_cv_dlopen_libs $LIBS"
9969 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9970 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9971 if test "${lt_cv_dlopen_self+set}" = set; then
9972 echo $ECHO_N "(cached) $ECHO_C" >&6
9973 else
9974 if test "$cross_compiling" = yes; then :
9975 lt_cv_dlopen_self=cross
9976 else
9977 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9978 lt_status=$lt_dlunknown
9979 cat > conftest.$ac_ext <<_LT_EOF
9980 #line 9980 "configure"
9981 #include "confdefs.h"
9983 #if HAVE_DLFCN_H
9984 #include <dlfcn.h>
9985 #endif
9987 #include <stdio.h>
9989 #ifdef RTLD_GLOBAL
9990 # define LT_DLGLOBAL RTLD_GLOBAL
9991 #else
9992 # ifdef DL_GLOBAL
9993 # define LT_DLGLOBAL DL_GLOBAL
9994 # else
9995 # define LT_DLGLOBAL 0
9996 # endif
9997 #endif
9999 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10000 find out it does not work in some platform. */
10001 #ifndef LT_DLLAZY_OR_NOW
10002 # ifdef RTLD_LAZY
10003 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10004 # else
10005 # ifdef DL_LAZY
10006 # define LT_DLLAZY_OR_NOW DL_LAZY
10007 # else
10008 # ifdef RTLD_NOW
10009 # define LT_DLLAZY_OR_NOW RTLD_NOW
10010 # else
10011 # ifdef DL_NOW
10012 # define LT_DLLAZY_OR_NOW DL_NOW
10013 # else
10014 # define LT_DLLAZY_OR_NOW 0
10015 # endif
10016 # endif
10017 # endif
10018 # endif
10019 #endif
10021 #ifdef __cplusplus
10022 extern "C" void exit (int);
10023 #endif
10025 void fnord() { int i=42;}
10026 int main ()
10028 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10029 int status = $lt_dlunknown;
10031 if (self)
10033 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10034 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10035 /* dlclose (self); */
10037 else
10038 puts (dlerror ());
10040 exit (status);
10042 _LT_EOF
10043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10044 (eval $ac_link) 2>&5
10045 ac_status=$?
10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10048 (./conftest; exit; ) >&5 2>/dev/null
10049 lt_status=$?
10050 case x$lt_status in
10051 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10052 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10053 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10054 esac
10055 else :
10056 # compilation failed
10057 lt_cv_dlopen_self=no
10060 rm -fr conftest*
10064 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10065 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10067 if test "x$lt_cv_dlopen_self" = xyes; then
10068 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10069 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10070 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10071 if test "${lt_cv_dlopen_self_static+set}" = set; then
10072 echo $ECHO_N "(cached) $ECHO_C" >&6
10073 else
10074 if test "$cross_compiling" = yes; then :
10075 lt_cv_dlopen_self_static=cross
10076 else
10077 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10078 lt_status=$lt_dlunknown
10079 cat > conftest.$ac_ext <<_LT_EOF
10080 #line 10080 "configure"
10081 #include "confdefs.h"
10083 #if HAVE_DLFCN_H
10084 #include <dlfcn.h>
10085 #endif
10087 #include <stdio.h>
10089 #ifdef RTLD_GLOBAL
10090 # define LT_DLGLOBAL RTLD_GLOBAL
10091 #else
10092 # ifdef DL_GLOBAL
10093 # define LT_DLGLOBAL DL_GLOBAL
10094 # else
10095 # define LT_DLGLOBAL 0
10096 # endif
10097 #endif
10099 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10100 find out it does not work in some platform. */
10101 #ifndef LT_DLLAZY_OR_NOW
10102 # ifdef RTLD_LAZY
10103 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10104 # else
10105 # ifdef DL_LAZY
10106 # define LT_DLLAZY_OR_NOW DL_LAZY
10107 # else
10108 # ifdef RTLD_NOW
10109 # define LT_DLLAZY_OR_NOW RTLD_NOW
10110 # else
10111 # ifdef DL_NOW
10112 # define LT_DLLAZY_OR_NOW DL_NOW
10113 # else
10114 # define LT_DLLAZY_OR_NOW 0
10115 # endif
10116 # endif
10117 # endif
10118 # endif
10119 #endif
10121 #ifdef __cplusplus
10122 extern "C" void exit (int);
10123 #endif
10125 void fnord() { int i=42;}
10126 int main ()
10128 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10129 int status = $lt_dlunknown;
10131 if (self)
10133 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10134 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10135 /* dlclose (self); */
10137 else
10138 puts (dlerror ());
10140 exit (status);
10142 _LT_EOF
10143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10144 (eval $ac_link) 2>&5
10145 ac_status=$?
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10148 (./conftest; exit; ) >&5 2>/dev/null
10149 lt_status=$?
10150 case x$lt_status in
10151 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10152 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10153 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10154 esac
10155 else :
10156 # compilation failed
10157 lt_cv_dlopen_self_static=no
10160 rm -fr conftest*
10164 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10165 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10168 CPPFLAGS="$save_CPPFLAGS"
10169 LDFLAGS="$save_LDFLAGS"
10170 LIBS="$save_LIBS"
10172 esac
10174 case $lt_cv_dlopen_self in
10175 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10176 *) enable_dlopen_self=unknown ;;
10177 esac
10179 case $lt_cv_dlopen_self_static in
10180 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10181 *) enable_dlopen_self_static=unknown ;;
10182 esac
10201 striplib=
10202 old_striplib=
10203 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10204 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10205 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10206 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10207 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10208 echo "$as_me:$LINENO: result: yes" >&5
10209 echo "${ECHO_T}yes" >&6
10210 else
10211 # FIXME - insert some real tests, host_os isn't really good enough
10212 case $host_os in
10213 darwin*)
10214 if test -n "$STRIP" ; then
10215 striplib="$STRIP -x"
10216 old_striplib="$STRIP -S"
10217 echo "$as_me:$LINENO: result: yes" >&5
10218 echo "${ECHO_T}yes" >&6
10219 else
10220 echo "$as_me:$LINENO: result: no" >&5
10221 echo "${ECHO_T}no" >&6
10225 echo "$as_me:$LINENO: result: no" >&5
10226 echo "${ECHO_T}no" >&6
10228 esac
10242 # Report which library types will actually be built
10243 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10244 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10245 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10246 echo "${ECHO_T}$can_build_shared" >&6
10248 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10249 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10250 test "$can_build_shared" = "no" && enable_shared=no
10252 # On AIX, shared libraries and static libraries use the same namespace, and
10253 # are all built from PIC.
10254 case $host_os in
10255 aix3*)
10256 test "$enable_shared" = yes && enable_static=no
10257 if test -n "$RANLIB"; then
10258 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10259 postinstall_cmds='$RANLIB $lib'
10263 aix[4-9]*)
10264 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10265 test "$enable_shared" = yes && enable_static=no
10268 esac
10269 echo "$as_me:$LINENO: result: $enable_shared" >&5
10270 echo "${ECHO_T}$enable_shared" >&6
10272 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10273 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10274 # Make sure either enable_shared or enable_static is yes.
10275 test "$enable_shared" = yes || enable_static=yes
10276 echo "$as_me:$LINENO: result: $enable_static" >&5
10277 echo "${ECHO_T}$enable_static" >&6
10283 ac_ext=c
10284 ac_cpp='$CPP $CPPFLAGS'
10285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10289 CC="$lt_save_CC"
10303 ac_config_commands="$ac_config_commands libtool"
10308 # Only expand once:
10312 # Check whether --enable-targets or --disable-targets was given.
10313 if test "${enable_targets+set}" = set; then
10314 enableval="$enable_targets"
10315 case "${enableval}" in
10316 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
10317 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
10318 { (exit 1); exit 1; }; }
10320 no) enable_targets= ;;
10321 *) enable_targets=$enableval ;;
10322 esac
10323 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
10324 if test "${enable_commonbfdlib+set}" = set; then
10325 enableval="$enable_commonbfdlib"
10326 case "${enableval}" in
10327 yes) commonbfdlib=true ;;
10328 no) commonbfdlib=false ;;
10329 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
10330 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
10331 { (exit 1); exit 1; }; } ;;
10332 esac
10335 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
10337 # Check whether --enable-werror or --disable-werror was given.
10338 if test "${enable_werror+set}" = set; then
10339 enableval="$enable_werror"
10340 case "${enableval}" in
10341 yes | y) ERROR_ON_WARNING="yes" ;;
10342 no | n) ERROR_ON_WARNING="no" ;;
10343 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
10344 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
10345 { (exit 1); exit 1; }; } ;;
10346 esac
10349 # Enable -Wno-format by default when using gcc on mingw
10350 case "${host}" in
10351 *-*-mingw32*)
10352 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10353 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
10356 *) ;;
10357 esac
10359 # Enable -Werror by default when using gcc
10360 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10361 ERROR_ON_WARNING=yes
10364 NO_WERROR=
10365 if test "${ERROR_ON_WARNING}" = yes ; then
10366 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
10367 NO_WERROR="-Wno-error"
10370 if test "${GCC}" = yes ; then
10371 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
10374 # Check whether --enable-build-warnings or --disable-build-warnings was given.
10375 if test "${enable_build_warnings+set}" = set; then
10376 enableval="$enable_build_warnings"
10377 case "${enableval}" in
10378 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
10379 no) if test "${GCC}" = yes ; then
10380 WARN_CFLAGS="-w"
10381 fi;;
10382 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10383 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
10384 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10385 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
10386 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10387 esac
10390 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
10391 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
10398 ac_config_headers="$ac_config_headers config.h:config.in"
10401 if test -z "$target" ; then
10402 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
10403 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
10404 { (exit 1); exit 1; }; }
10406 if test -z "$host" ; then
10407 { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5
10408 echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;}
10409 { (exit 1); exit 1; }; }
10412 for ac_prog in 'bison -y' byacc
10414 # Extract the first word of "$ac_prog", so it can be a program name with args.
10415 set dummy $ac_prog; ac_word=$2
10416 echo "$as_me:$LINENO: checking for $ac_word" >&5
10417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10418 if test "${ac_cv_prog_YACC+set}" = set; then
10419 echo $ECHO_N "(cached) $ECHO_C" >&6
10420 else
10421 if test -n "$YACC"; then
10422 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10423 else
10424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10425 for as_dir in $PATH
10427 IFS=$as_save_IFS
10428 test -z "$as_dir" && as_dir=.
10429 for ac_exec_ext in '' $ac_executable_extensions; do
10430 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10431 ac_cv_prog_YACC="$ac_prog"
10432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10433 break 2
10435 done
10436 done
10440 YACC=$ac_cv_prog_YACC
10441 if test -n "$YACC"; then
10442 echo "$as_me:$LINENO: result: $YACC" >&5
10443 echo "${ECHO_T}$YACC" >&6
10444 else
10445 echo "$as_me:$LINENO: result: no" >&5
10446 echo "${ECHO_T}no" >&6
10449 test -n "$YACC" && break
10450 done
10451 test -n "$YACC" || YACC="yacc"
10453 for ac_prog in flex lex
10455 # Extract the first word of "$ac_prog", so it can be a program name with args.
10456 set dummy $ac_prog; ac_word=$2
10457 echo "$as_me:$LINENO: checking for $ac_word" >&5
10458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10459 if test "${ac_cv_prog_LEX+set}" = set; then
10460 echo $ECHO_N "(cached) $ECHO_C" >&6
10461 else
10462 if test -n "$LEX"; then
10463 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10464 else
10465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10466 for as_dir in $PATH
10468 IFS=$as_save_IFS
10469 test -z "$as_dir" && as_dir=.
10470 for ac_exec_ext in '' $ac_executable_extensions; do
10471 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10472 ac_cv_prog_LEX="$ac_prog"
10473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10474 break 2
10476 done
10477 done
10481 LEX=$ac_cv_prog_LEX
10482 if test -n "$LEX"; then
10483 echo "$as_me:$LINENO: result: $LEX" >&5
10484 echo "${ECHO_T}$LEX" >&6
10485 else
10486 echo "$as_me:$LINENO: result: no" >&5
10487 echo "${ECHO_T}no" >&6
10490 test -n "$LEX" && break
10491 done
10492 test -n "$LEX" || LEX=":"
10494 if test -z "$LEXLIB"
10495 then
10496 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
10497 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
10498 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
10499 echo $ECHO_N "(cached) $ECHO_C" >&6
10500 else
10501 ac_check_lib_save_LIBS=$LIBS
10502 LIBS="-lfl $LIBS"
10503 cat >conftest.$ac_ext <<_ACEOF
10504 /* confdefs.h. */
10505 _ACEOF
10506 cat confdefs.h >>conftest.$ac_ext
10507 cat >>conftest.$ac_ext <<_ACEOF
10508 /* end confdefs.h. */
10510 /* Override any gcc2 internal prototype to avoid an error. */
10511 #ifdef __cplusplus
10512 extern "C"
10513 #endif
10514 /* We use char because int might match the return type of a gcc2
10515 builtin and then its argument prototype would still apply. */
10516 char yywrap ();
10518 main ()
10520 yywrap ();
10522 return 0;
10524 _ACEOF
10525 rm -f conftest.$ac_objext conftest$ac_exeext
10526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10527 (eval $ac_link) 2>conftest.er1
10528 ac_status=$?
10529 grep -v '^ *+' conftest.er1 >conftest.err
10530 rm -f conftest.er1
10531 cat conftest.err >&5
10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); } &&
10534 { ac_try='test -z "$ac_c_werror_flag"
10535 || test ! -s conftest.err'
10536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10537 (eval $ac_try) 2>&5
10538 ac_status=$?
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); }; } &&
10541 { ac_try='test -s conftest$ac_exeext'
10542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10543 (eval $ac_try) 2>&5
10544 ac_status=$?
10545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546 (exit $ac_status); }; }; then
10547 ac_cv_lib_fl_yywrap=yes
10548 else
10549 echo "$as_me: failed program was:" >&5
10550 sed 's/^/| /' conftest.$ac_ext >&5
10552 ac_cv_lib_fl_yywrap=no
10554 rm -f conftest.err conftest.$ac_objext \
10555 conftest$ac_exeext conftest.$ac_ext
10556 LIBS=$ac_check_lib_save_LIBS
10558 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
10559 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
10560 if test $ac_cv_lib_fl_yywrap = yes; then
10561 LEXLIB="-lfl"
10562 else
10563 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
10564 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
10565 if test "${ac_cv_lib_l_yywrap+set}" = set; then
10566 echo $ECHO_N "(cached) $ECHO_C" >&6
10567 else
10568 ac_check_lib_save_LIBS=$LIBS
10569 LIBS="-ll $LIBS"
10570 cat >conftest.$ac_ext <<_ACEOF
10571 /* confdefs.h. */
10572 _ACEOF
10573 cat confdefs.h >>conftest.$ac_ext
10574 cat >>conftest.$ac_ext <<_ACEOF
10575 /* end confdefs.h. */
10577 /* Override any gcc2 internal prototype to avoid an error. */
10578 #ifdef __cplusplus
10579 extern "C"
10580 #endif
10581 /* We use char because int might match the return type of a gcc2
10582 builtin and then its argument prototype would still apply. */
10583 char yywrap ();
10585 main ()
10587 yywrap ();
10589 return 0;
10591 _ACEOF
10592 rm -f conftest.$ac_objext conftest$ac_exeext
10593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10594 (eval $ac_link) 2>conftest.er1
10595 ac_status=$?
10596 grep -v '^ *+' conftest.er1 >conftest.err
10597 rm -f conftest.er1
10598 cat conftest.err >&5
10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); } &&
10601 { ac_try='test -z "$ac_c_werror_flag"
10602 || test ! -s conftest.err'
10603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10604 (eval $ac_try) 2>&5
10605 ac_status=$?
10606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); }; } &&
10608 { ac_try='test -s conftest$ac_exeext'
10609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10610 (eval $ac_try) 2>&5
10611 ac_status=$?
10612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); }; }; then
10614 ac_cv_lib_l_yywrap=yes
10615 else
10616 echo "$as_me: failed program was:" >&5
10617 sed 's/^/| /' conftest.$ac_ext >&5
10619 ac_cv_lib_l_yywrap=no
10621 rm -f conftest.err conftest.$ac_objext \
10622 conftest$ac_exeext conftest.$ac_ext
10623 LIBS=$ac_check_lib_save_LIBS
10625 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
10626 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
10627 if test $ac_cv_lib_l_yywrap = yes; then
10628 LEXLIB="-ll"
10635 if test "x$LEX" != "x:"; then
10636 echo "$as_me:$LINENO: checking lex output file root" >&5
10637 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
10638 if test "${ac_cv_prog_lex_root+set}" = set; then
10639 echo $ECHO_N "(cached) $ECHO_C" >&6
10640 else
10641 # The minimal lex program is just a single line: %%. But some broken lexes
10642 # (Solaris, I think it was) want two %% lines, so accommodate them.
10643 cat >conftest.l <<_ACEOF
10646 _ACEOF
10647 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
10648 (eval $LEX conftest.l) 2>&5
10649 ac_status=$?
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); }
10652 if test -f lex.yy.c; then
10653 ac_cv_prog_lex_root=lex.yy
10654 elif test -f lexyy.c; then
10655 ac_cv_prog_lex_root=lexyy
10656 else
10657 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
10658 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
10659 { (exit 1); exit 1; }; }
10662 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
10663 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
10664 rm -f conftest.l
10665 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
10667 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
10668 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
10669 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
10670 echo $ECHO_N "(cached) $ECHO_C" >&6
10671 else
10672 # POSIX says lex can declare yytext either as a pointer or an array; the
10673 # default is implementation-dependent. Figure out which it is, since
10674 # not all implementations provide the %pointer and %array declarations.
10675 ac_cv_prog_lex_yytext_pointer=no
10676 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
10677 ac_save_LIBS=$LIBS
10678 LIBS="$LIBS $LEXLIB"
10679 cat >conftest.$ac_ext <<_ACEOF
10680 `cat $LEX_OUTPUT_ROOT.c`
10681 _ACEOF
10682 rm -f conftest.$ac_objext conftest$ac_exeext
10683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10684 (eval $ac_link) 2>conftest.er1
10685 ac_status=$?
10686 grep -v '^ *+' conftest.er1 >conftest.err
10687 rm -f conftest.er1
10688 cat conftest.err >&5
10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); } &&
10691 { ac_try='test -z "$ac_c_werror_flag"
10692 || test ! -s conftest.err'
10693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10694 (eval $ac_try) 2>&5
10695 ac_status=$?
10696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697 (exit $ac_status); }; } &&
10698 { ac_try='test -s conftest$ac_exeext'
10699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10700 (eval $ac_try) 2>&5
10701 ac_status=$?
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); }; }; then
10704 ac_cv_prog_lex_yytext_pointer=yes
10705 else
10706 echo "$as_me: failed program was:" >&5
10707 sed 's/^/| /' conftest.$ac_ext >&5
10710 rm -f conftest.err conftest.$ac_objext \
10711 conftest$ac_exeext conftest.$ac_ext
10712 LIBS=$ac_save_LIBS
10713 rm -f "${LEX_OUTPUT_ROOT}.c"
10716 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
10717 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
10718 if test $ac_cv_prog_lex_yytext_pointer = yes; then
10720 cat >>confdefs.h <<\_ACEOF
10721 #define YYTEXT_POINTER 1
10722 _ACEOF
10727 if test "$LEX" = :; then
10728 LEX=${am_missing_run}flex
10731 ALL_LINGUAS="fr tr ja es sv da zh_CN ru ro rw zh_TW fi vi uk sk"
10732 # If we haven't got the data from the intl directory,
10733 # assume NLS is disabled.
10734 USE_NLS=no
10735 LIBINTL=
10736 LIBINTL_DEP=
10737 INCINTL=
10738 XGETTEXT=
10739 GMSGFMT=
10740 POSUB=
10742 if test -f ../intl/config.intl; then
10743 . ../intl/config.intl
10745 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10746 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10747 if test x"$USE_NLS" != xyes; then
10748 echo "$as_me:$LINENO: result: no" >&5
10749 echo "${ECHO_T}no" >&6
10750 else
10751 echo "$as_me:$LINENO: result: yes" >&5
10752 echo "${ECHO_T}yes" >&6
10754 cat >>confdefs.h <<\_ACEOF
10755 #define ENABLE_NLS 1
10756 _ACEOF
10759 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10760 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
10761 # Look for .po and .gmo files in the source directory.
10762 CATALOGS=
10763 XLINGUAS=
10764 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10765 # If there aren't any .gmo files the shell will give us the
10766 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10767 # weeded out.
10768 case "$cat" in *\**)
10769 continue;;
10770 esac
10771 # The quadruple backslash is collapsed to a double backslash
10772 # by the backticks, then collapsed again by the double quotes,
10773 # leaving us with one backslash in the sed expression (right
10774 # before the dot that mustn't act as a wildcard).
10775 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10776 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10777 # The user is allowed to set LINGUAS to a list of languages to
10778 # install catalogs for. If it's empty that means "all of them."
10779 if test "x$LINGUAS" = x; then
10780 CATALOGS="$CATALOGS $cat"
10781 XLINGUAS="$XLINGUAS $lang"
10782 else
10783 case "$LINGUAS" in *$lang*)
10784 CATALOGS="$CATALOGS $cat"
10785 XLINGUAS="$XLINGUAS $lang"
10787 esac
10789 done
10790 LINGUAS="$XLINGUAS"
10791 echo "$as_me:$LINENO: result: $LINGUAS" >&5
10792 echo "${ECHO_T}$LINGUAS" >&6
10795 DATADIRNAME=share
10797 INSTOBJEXT=.mo
10799 GENCAT=gencat
10801 CATOBJEXT=.gmo
10805 MKINSTALLDIRS=
10806 if test -n "$ac_aux_dir"; then
10807 case "$ac_aux_dir" in
10808 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
10809 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
10810 esac
10812 if test -z "$MKINSTALLDIRS"; then
10813 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10818 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10819 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10820 # Check whether --enable-nls or --disable-nls was given.
10821 if test "${enable_nls+set}" = set; then
10822 enableval="$enable_nls"
10823 USE_NLS=$enableval
10824 else
10825 USE_NLS=yes
10827 echo "$as_me:$LINENO: result: $USE_NLS" >&5
10828 echo "${ECHO_T}$USE_NLS" >&6
10835 # Prepare PATH_SEPARATOR.
10836 # The user is always right.
10837 if test "${PATH_SEPARATOR+set}" != set; then
10838 echo "#! /bin/sh" >conf$$.sh
10839 echo "exit 0" >>conf$$.sh
10840 chmod +x conf$$.sh
10841 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10842 PATH_SEPARATOR=';'
10843 else
10844 PATH_SEPARATOR=:
10846 rm -f conf$$.sh
10849 # Find out how to test for executable files. Don't use a zero-byte file,
10850 # as systems may use methods other than mode bits to determine executability.
10851 cat >conf$$.file <<_ASEOF
10852 #! /bin/sh
10853 exit 0
10854 _ASEOF
10855 chmod +x conf$$.file
10856 if test -x conf$$.file >/dev/null 2>&1; then
10857 ac_executable_p="test -x"
10858 else
10859 ac_executable_p="test -f"
10861 rm -f conf$$.file
10863 # Extract the first word of "msgfmt", so it can be a program name with args.
10864 set dummy msgfmt; ac_word=$2
10865 echo "$as_me:$LINENO: checking for $ac_word" >&5
10866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10867 if test "${ac_cv_path_MSGFMT+set}" = set; then
10868 echo $ECHO_N "(cached) $ECHO_C" >&6
10869 else
10870 case "$MSGFMT" in
10871 [\\/]* | ?:[\\/]*)
10872 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10875 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10876 for ac_dir in $PATH; do
10877 IFS="$ac_save_IFS"
10878 test -z "$ac_dir" && ac_dir=.
10879 for ac_exec_ext in '' $ac_executable_extensions; do
10880 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10881 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
10882 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10883 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10884 break 2
10887 done
10888 done
10889 IFS="$ac_save_IFS"
10890 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10892 esac
10894 MSGFMT="$ac_cv_path_MSGFMT"
10895 if test "$MSGFMT" != ":"; then
10896 echo "$as_me:$LINENO: result: $MSGFMT" >&5
10897 echo "${ECHO_T}$MSGFMT" >&6
10898 else
10899 echo "$as_me:$LINENO: result: no" >&5
10900 echo "${ECHO_T}no" >&6
10903 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10904 set dummy gmsgfmt; ac_word=$2
10905 echo "$as_me:$LINENO: checking for $ac_word" >&5
10906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10907 if test "${ac_cv_path_GMSGFMT+set}" = set; then
10908 echo $ECHO_N "(cached) $ECHO_C" >&6
10909 else
10910 case $GMSGFMT in
10911 [\\/]* | ?:[\\/]*)
10912 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10916 for as_dir in $PATH
10918 IFS=$as_save_IFS
10919 test -z "$as_dir" && as_dir=.
10920 for ac_exec_ext in '' $ac_executable_extensions; do
10921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10922 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10924 break 2
10926 done
10927 done
10929 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10931 esac
10933 GMSGFMT=$ac_cv_path_GMSGFMT
10935 if test -n "$GMSGFMT"; then
10936 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10937 echo "${ECHO_T}$GMSGFMT" >&6
10938 else
10939 echo "$as_me:$LINENO: result: no" >&5
10940 echo "${ECHO_T}no" >&6
10945 # Prepare PATH_SEPARATOR.
10946 # The user is always right.
10947 if test "${PATH_SEPARATOR+set}" != set; then
10948 echo "#! /bin/sh" >conf$$.sh
10949 echo "exit 0" >>conf$$.sh
10950 chmod +x conf$$.sh
10951 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10952 PATH_SEPARATOR=';'
10953 else
10954 PATH_SEPARATOR=:
10956 rm -f conf$$.sh
10959 # Find out how to test for executable files. Don't use a zero-byte file,
10960 # as systems may use methods other than mode bits to determine executability.
10961 cat >conf$$.file <<_ASEOF
10962 #! /bin/sh
10963 exit 0
10964 _ASEOF
10965 chmod +x conf$$.file
10966 if test -x conf$$.file >/dev/null 2>&1; then
10967 ac_executable_p="test -x"
10968 else
10969 ac_executable_p="test -f"
10971 rm -f conf$$.file
10973 # Extract the first word of "xgettext", so it can be a program name with args.
10974 set dummy xgettext; ac_word=$2
10975 echo "$as_me:$LINENO: checking for $ac_word" >&5
10976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10977 if test "${ac_cv_path_XGETTEXT+set}" = set; then
10978 echo $ECHO_N "(cached) $ECHO_C" >&6
10979 else
10980 case "$XGETTEXT" in
10981 [\\/]* | ?:[\\/]*)
10982 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10985 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10986 for ac_dir in $PATH; do
10987 IFS="$ac_save_IFS"
10988 test -z "$ac_dir" && ac_dir=.
10989 for ac_exec_ext in '' $ac_executable_extensions; do
10990 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10991 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10992 (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
10993 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
10994 break 2
10997 done
10998 done
10999 IFS="$ac_save_IFS"
11000 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11002 esac
11004 XGETTEXT="$ac_cv_path_XGETTEXT"
11005 if test "$XGETTEXT" != ":"; then
11006 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
11007 echo "${ECHO_T}$XGETTEXT" >&6
11008 else
11009 echo "$as_me:$LINENO: result: no" >&5
11010 echo "${ECHO_T}no" >&6
11013 rm -f messages.po
11016 # Prepare PATH_SEPARATOR.
11017 # The user is always right.
11018 if test "${PATH_SEPARATOR+set}" != set; then
11019 echo "#! /bin/sh" >conf$$.sh
11020 echo "exit 0" >>conf$$.sh
11021 chmod +x conf$$.sh
11022 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11023 PATH_SEPARATOR=';'
11024 else
11025 PATH_SEPARATOR=:
11027 rm -f conf$$.sh
11030 # Find out how to test for executable files. Don't use a zero-byte file,
11031 # as systems may use methods other than mode bits to determine executability.
11032 cat >conf$$.file <<_ASEOF
11033 #! /bin/sh
11034 exit 0
11035 _ASEOF
11036 chmod +x conf$$.file
11037 if test -x conf$$.file >/dev/null 2>&1; then
11038 ac_executable_p="test -x"
11039 else
11040 ac_executable_p="test -f"
11042 rm -f conf$$.file
11044 # Extract the first word of "msgmerge", so it can be a program name with args.
11045 set dummy msgmerge; ac_word=$2
11046 echo "$as_me:$LINENO: checking for $ac_word" >&5
11047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11048 if test "${ac_cv_path_MSGMERGE+set}" = set; then
11049 echo $ECHO_N "(cached) $ECHO_C" >&6
11050 else
11051 case "$MSGMERGE" in
11052 [\\/]* | ?:[\\/]*)
11053 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11056 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11057 for ac_dir in $PATH; do
11058 IFS="$ac_save_IFS"
11059 test -z "$ac_dir" && ac_dir=.
11060 for ac_exec_ext in '' $ac_executable_extensions; do
11061 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11062 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11063 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11064 break 2
11067 done
11068 done
11069 IFS="$ac_save_IFS"
11070 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11072 esac
11074 MSGMERGE="$ac_cv_path_MSGMERGE"
11075 if test "$MSGMERGE" != ":"; then
11076 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
11077 echo "${ECHO_T}$MSGMERGE" >&6
11078 else
11079 echo "$as_me:$LINENO: result: no" >&5
11080 echo "${ECHO_T}no" >&6
11084 if test "$GMSGFMT" != ":"; then
11085 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11086 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11088 else
11089 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11090 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11091 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
11092 GMSGFMT=":"
11096 if test "$XGETTEXT" != ":"; then
11097 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11098 (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
11100 else
11101 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11102 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
11103 XGETTEXT=":"
11105 rm -f messages.po
11108 ac_config_commands="$ac_config_commands default-1"
11112 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11113 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11114 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11115 if test "${enable_maintainer_mode+set}" = set; then
11116 enableval="$enable_maintainer_mode"
11117 USE_MAINTAINER_MODE=$enableval
11118 else
11119 USE_MAINTAINER_MODE=no
11121 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11122 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
11125 if test $USE_MAINTAINER_MODE = yes; then
11126 MAINTAINER_MODE_TRUE=
11127 MAINTAINER_MODE_FALSE='#'
11128 else
11129 MAINTAINER_MODE_TRUE='#'
11130 MAINTAINER_MODE_FALSE=
11133 MAINT=$MAINTAINER_MODE_TRUE
11138 if false; then
11139 GENINSRC_NEVER_TRUE=
11140 GENINSRC_NEVER_FALSE='#'
11141 else
11142 GENINSRC_NEVER_TRUE='#'
11143 GENINSRC_NEVER_FALSE=
11147 if test -n "$EXEEXT"; then
11149 cat >>confdefs.h <<\_ACEOF
11150 #define HAVE_EXECUTABLE_SUFFIX 1
11151 _ACEOF
11155 cat >>confdefs.h <<_ACEOF
11156 #define EXECUTABLE_SUFFIX "${EXEEXT}"
11157 _ACEOF
11160 # host-specific stuff:
11162 HDEFINES=
11164 . ${srcdir}/../bfd/configure.host
11167 AR=${AR-ar}
11169 if test -n "$ac_tool_prefix"; then
11170 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11171 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11172 echo "$as_me:$LINENO: checking for $ac_word" >&5
11173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11174 if test "${ac_cv_prog_RANLIB+set}" = set; then
11175 echo $ECHO_N "(cached) $ECHO_C" >&6
11176 else
11177 if test -n "$RANLIB"; then
11178 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11179 else
11180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11181 for as_dir in $PATH
11183 IFS=$as_save_IFS
11184 test -z "$as_dir" && as_dir=.
11185 for ac_exec_ext in '' $ac_executable_extensions; do
11186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11187 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11189 break 2
11191 done
11192 done
11196 RANLIB=$ac_cv_prog_RANLIB
11197 if test -n "$RANLIB"; then
11198 echo "$as_me:$LINENO: result: $RANLIB" >&5
11199 echo "${ECHO_T}$RANLIB" >&6
11200 else
11201 echo "$as_me:$LINENO: result: no" >&5
11202 echo "${ECHO_T}no" >&6
11206 if test -z "$ac_cv_prog_RANLIB"; then
11207 ac_ct_RANLIB=$RANLIB
11208 # Extract the first word of "ranlib", so it can be a program name with args.
11209 set dummy ranlib; ac_word=$2
11210 echo "$as_me:$LINENO: checking for $ac_word" >&5
11211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11212 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11213 echo $ECHO_N "(cached) $ECHO_C" >&6
11214 else
11215 if test -n "$ac_ct_RANLIB"; then
11216 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11217 else
11218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11219 for as_dir in $PATH
11221 IFS=$as_save_IFS
11222 test -z "$as_dir" && as_dir=.
11223 for ac_exec_ext in '' $ac_executable_extensions; do
11224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11225 ac_cv_prog_ac_ct_RANLIB="ranlib"
11226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11227 break 2
11229 done
11230 done
11232 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11235 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11236 if test -n "$ac_ct_RANLIB"; then
11237 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11238 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11239 else
11240 echo "$as_me:$LINENO: result: no" >&5
11241 echo "${ECHO_T}no" >&6
11244 RANLIB=$ac_ct_RANLIB
11245 else
11246 RANLIB="$ac_cv_prog_RANLIB"
11249 # Find a good install program. We prefer a C program (faster),
11250 # so one script is as good as another. But avoid the broken or
11251 # incompatible versions:
11252 # SysV /etc/install, /usr/sbin/install
11253 # SunOS /usr/etc/install
11254 # IRIX /sbin/install
11255 # AIX /bin/install
11256 # AmigaOS /C/install, which installs bootblocks on floppy discs
11257 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11258 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11259 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11260 # OS/2's system install, which has a completely different semantic
11261 # ./install, which can be erroneously created by make from ./install.sh.
11262 # Reject install programs that cannot install multiple files.
11263 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11264 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11265 if test -z "$INSTALL"; then
11266 if test "${ac_cv_path_install+set}" = set; then
11267 echo $ECHO_N "(cached) $ECHO_C" >&6
11268 else
11269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11270 for as_dir in $PATH
11272 IFS=$as_save_IFS
11273 test -z "$as_dir" && as_dir=.
11274 # Account for people who put trailing slashes in PATH elements.
11275 case $as_dir/ in
11276 ./ | .// | /cC/* | \
11277 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11278 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11279 /usr/ucb/* ) ;;
11281 # OSF1 and SCO ODT 3.0 have their own names for install.
11282 # Don't use installbsd from OSF since it installs stuff as root
11283 # by default.
11284 for ac_prog in ginstall scoinst install; do
11285 for ac_exec_ext in '' $ac_executable_extensions; do
11286 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11287 if test $ac_prog = install &&
11288 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11289 # AIX install. It has an incompatible calling convention.
11291 elif test $ac_prog = install &&
11292 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11293 # program-specific install script used by HP pwplus--don't use.
11295 else
11296 rm -rf conftest.one conftest.two conftest.dir
11297 echo one > conftest.one
11298 echo two > conftest.two
11299 mkdir conftest.dir
11300 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11301 test -s conftest.one && test -s conftest.two &&
11302 test -s conftest.dir/conftest.one &&
11303 test -s conftest.dir/conftest.two
11304 then
11305 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11306 break 3
11310 done
11311 done
11313 esac
11314 done
11316 rm -rf conftest.one conftest.two conftest.dir
11319 if test "${ac_cv_path_install+set}" = set; then
11320 INSTALL=$ac_cv_path_install
11321 else
11322 # As a last resort, use the slow shell script. Don't cache a
11323 # value for INSTALL within a source directory, because that will
11324 # break other packages using the cache if that directory is
11325 # removed, or if the value is a relative name.
11326 INSTALL=$ac_install_sh
11329 echo "$as_me:$LINENO: result: $INSTALL" >&5
11330 echo "${ECHO_T}$INSTALL" >&6
11332 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11333 # It thinks the first close brace ends the variable substitution.
11334 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11336 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11338 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11341 # Put a plausible default for CC_FOR_BUILD in Makefile.
11342 if test -z "$CC_FOR_BUILD"; then
11343 if test "x$cross_compiling" = "xno"; then
11344 CC_FOR_BUILD='$(CC)'
11345 else
11346 CC_FOR_BUILD=gcc
11350 # Also set EXEEXT_FOR_BUILD.
11351 if test "x$cross_compiling" = "xno"; then
11352 EXEEXT_FOR_BUILD='$(EXEEXT)'
11353 else
11354 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
11355 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
11356 if test "${bfd_cv_build_exeext+set}" = set; then
11357 echo $ECHO_N "(cached) $ECHO_C" >&6
11358 else
11359 rm -f conftest*
11360 echo 'int main () { return 0; }' > conftest.c
11361 bfd_cv_build_exeext=
11362 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
11363 for file in conftest.*; do
11364 case $file in
11365 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
11366 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
11367 esac
11368 done
11369 rm -f conftest*
11370 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
11372 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
11373 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
11374 EXEEXT_FOR_BUILD=""
11375 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
11379 DEMANGLER_NAME=c++filt
11380 case "${host}" in
11381 *-*-go32* | *-*-msdos*)
11382 DEMANGLER_NAME=cxxfilt
11383 esac
11394 for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h limits.h sys/param.h
11396 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11398 echo "$as_me:$LINENO: checking for $ac_header" >&5
11399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11401 echo $ECHO_N "(cached) $ECHO_C" >&6
11403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11404 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11405 else
11406 # Is the header compilable?
11407 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11408 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11409 cat >conftest.$ac_ext <<_ACEOF
11410 /* confdefs.h. */
11411 _ACEOF
11412 cat confdefs.h >>conftest.$ac_ext
11413 cat >>conftest.$ac_ext <<_ACEOF
11414 /* end confdefs.h. */
11415 $ac_includes_default
11416 #include <$ac_header>
11417 _ACEOF
11418 rm -f conftest.$ac_objext
11419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11420 (eval $ac_compile) 2>conftest.er1
11421 ac_status=$?
11422 grep -v '^ *+' conftest.er1 >conftest.err
11423 rm -f conftest.er1
11424 cat conftest.err >&5
11425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426 (exit $ac_status); } &&
11427 { ac_try='test -z "$ac_c_werror_flag"
11428 || test ! -s conftest.err'
11429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11430 (eval $ac_try) 2>&5
11431 ac_status=$?
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); }; } &&
11434 { ac_try='test -s conftest.$ac_objext'
11435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11436 (eval $ac_try) 2>&5
11437 ac_status=$?
11438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439 (exit $ac_status); }; }; then
11440 ac_header_compiler=yes
11441 else
11442 echo "$as_me: failed program was:" >&5
11443 sed 's/^/| /' conftest.$ac_ext >&5
11445 ac_header_compiler=no
11447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11448 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11449 echo "${ECHO_T}$ac_header_compiler" >&6
11451 # Is the header present?
11452 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11453 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11454 cat >conftest.$ac_ext <<_ACEOF
11455 /* confdefs.h. */
11456 _ACEOF
11457 cat confdefs.h >>conftest.$ac_ext
11458 cat >>conftest.$ac_ext <<_ACEOF
11459 /* end confdefs.h. */
11460 #include <$ac_header>
11461 _ACEOF
11462 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11463 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11464 ac_status=$?
11465 grep -v '^ *+' conftest.er1 >conftest.err
11466 rm -f conftest.er1
11467 cat conftest.err >&5
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); } >/dev/null; then
11470 if test -s conftest.err; then
11471 ac_cpp_err=$ac_c_preproc_warn_flag
11472 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11473 else
11474 ac_cpp_err=
11476 else
11477 ac_cpp_err=yes
11479 if test -z "$ac_cpp_err"; then
11480 ac_header_preproc=yes
11481 else
11482 echo "$as_me: failed program was:" >&5
11483 sed 's/^/| /' conftest.$ac_ext >&5
11485 ac_header_preproc=no
11487 rm -f conftest.err conftest.$ac_ext
11488 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11489 echo "${ECHO_T}$ac_header_preproc" >&6
11491 # So? What about this header?
11492 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11493 yes:no: )
11494 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11495 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11496 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11497 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11498 ac_header_preproc=yes
11500 no:yes:* )
11501 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11502 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11503 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11504 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11505 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11506 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11507 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11508 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11510 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11511 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11512 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11514 cat <<\_ASBOX
11515 ## ------------------------------------------ ##
11516 ## Report this to the AC_PACKAGE_NAME lists. ##
11517 ## ------------------------------------------ ##
11518 _ASBOX
11520 sed "s/^/$as_me: WARNING: /" >&2
11522 esac
11523 echo "$as_me:$LINENO: checking for $ac_header" >&5
11524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11526 echo $ECHO_N "(cached) $ECHO_C" >&6
11527 else
11528 eval "$as_ac_Header=\$ac_header_preproc"
11530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11531 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11535 cat >>confdefs.h <<_ACEOF
11536 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11537 _ACEOF
11541 done
11543 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11544 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
11545 if test "${ac_cv_header_sys_wait_h+set}" = set; then
11546 echo $ECHO_N "(cached) $ECHO_C" >&6
11547 else
11548 cat >conftest.$ac_ext <<_ACEOF
11549 /* confdefs.h. */
11550 _ACEOF
11551 cat confdefs.h >>conftest.$ac_ext
11552 cat >>conftest.$ac_ext <<_ACEOF
11553 /* end confdefs.h. */
11554 #include <sys/types.h>
11555 #include <sys/wait.h>
11556 #ifndef WEXITSTATUS
11557 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
11558 #endif
11559 #ifndef WIFEXITED
11560 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11561 #endif
11564 main ()
11566 int s;
11567 wait (&s);
11568 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11570 return 0;
11572 _ACEOF
11573 rm -f conftest.$ac_objext
11574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11575 (eval $ac_compile) 2>conftest.er1
11576 ac_status=$?
11577 grep -v '^ *+' conftest.er1 >conftest.err
11578 rm -f conftest.er1
11579 cat conftest.err >&5
11580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581 (exit $ac_status); } &&
11582 { ac_try='test -z "$ac_c_werror_flag"
11583 || test ! -s conftest.err'
11584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11585 (eval $ac_try) 2>&5
11586 ac_status=$?
11587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); }; } &&
11589 { ac_try='test -s conftest.$ac_objext'
11590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11591 (eval $ac_try) 2>&5
11592 ac_status=$?
11593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594 (exit $ac_status); }; }; then
11595 ac_cv_header_sys_wait_h=yes
11596 else
11597 echo "$as_me: failed program was:" >&5
11598 sed 's/^/| /' conftest.$ac_ext >&5
11600 ac_cv_header_sys_wait_h=no
11602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11604 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11605 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
11606 if test $ac_cv_header_sys_wait_h = yes; then
11608 cat >>confdefs.h <<\_ACEOF
11609 #define HAVE_SYS_WAIT_H 1
11610 _ACEOF
11614 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11615 # for constant arguments. Useless!
11616 echo "$as_me:$LINENO: checking for working alloca.h" >&5
11617 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
11618 if test "${ac_cv_working_alloca_h+set}" = set; then
11619 echo $ECHO_N "(cached) $ECHO_C" >&6
11620 else
11621 cat >conftest.$ac_ext <<_ACEOF
11622 /* confdefs.h. */
11623 _ACEOF
11624 cat confdefs.h >>conftest.$ac_ext
11625 cat >>conftest.$ac_ext <<_ACEOF
11626 /* end confdefs.h. */
11627 #include <alloca.h>
11629 main ()
11631 char *p = (char *) alloca (2 * sizeof (int));
11633 return 0;
11635 _ACEOF
11636 rm -f conftest.$ac_objext conftest$ac_exeext
11637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11638 (eval $ac_link) 2>conftest.er1
11639 ac_status=$?
11640 grep -v '^ *+' conftest.er1 >conftest.err
11641 rm -f conftest.er1
11642 cat conftest.err >&5
11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); } &&
11645 { ac_try='test -z "$ac_c_werror_flag"
11646 || test ! -s conftest.err'
11647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11648 (eval $ac_try) 2>&5
11649 ac_status=$?
11650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651 (exit $ac_status); }; } &&
11652 { ac_try='test -s conftest$ac_exeext'
11653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11654 (eval $ac_try) 2>&5
11655 ac_status=$?
11656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657 (exit $ac_status); }; }; then
11658 ac_cv_working_alloca_h=yes
11659 else
11660 echo "$as_me: failed program was:" >&5
11661 sed 's/^/| /' conftest.$ac_ext >&5
11663 ac_cv_working_alloca_h=no
11665 rm -f conftest.err conftest.$ac_objext \
11666 conftest$ac_exeext conftest.$ac_ext
11668 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
11669 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
11670 if test $ac_cv_working_alloca_h = yes; then
11672 cat >>confdefs.h <<\_ACEOF
11673 #define HAVE_ALLOCA_H 1
11674 _ACEOF
11678 echo "$as_me:$LINENO: checking for alloca" >&5
11679 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
11680 if test "${ac_cv_func_alloca_works+set}" = set; then
11681 echo $ECHO_N "(cached) $ECHO_C" >&6
11682 else
11683 cat >conftest.$ac_ext <<_ACEOF
11684 /* confdefs.h. */
11685 _ACEOF
11686 cat confdefs.h >>conftest.$ac_ext
11687 cat >>conftest.$ac_ext <<_ACEOF
11688 /* end confdefs.h. */
11689 #ifdef __GNUC__
11690 # define alloca __builtin_alloca
11691 #else
11692 # ifdef _MSC_VER
11693 # include <malloc.h>
11694 # define alloca _alloca
11695 # else
11696 # if HAVE_ALLOCA_H
11697 # include <alloca.h>
11698 # else
11699 # ifdef _AIX
11700 #pragma alloca
11701 # else
11702 # ifndef alloca /* predefined by HP cc +Olibcalls */
11703 char *alloca ();
11704 # endif
11705 # endif
11706 # endif
11707 # endif
11708 #endif
11711 main ()
11713 char *p = (char *) alloca (1);
11715 return 0;
11717 _ACEOF
11718 rm -f conftest.$ac_objext conftest$ac_exeext
11719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11720 (eval $ac_link) 2>conftest.er1
11721 ac_status=$?
11722 grep -v '^ *+' conftest.er1 >conftest.err
11723 rm -f conftest.er1
11724 cat conftest.err >&5
11725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726 (exit $ac_status); } &&
11727 { ac_try='test -z "$ac_c_werror_flag"
11728 || test ! -s conftest.err'
11729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11730 (eval $ac_try) 2>&5
11731 ac_status=$?
11732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733 (exit $ac_status); }; } &&
11734 { ac_try='test -s conftest$ac_exeext'
11735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11736 (eval $ac_try) 2>&5
11737 ac_status=$?
11738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739 (exit $ac_status); }; }; then
11740 ac_cv_func_alloca_works=yes
11741 else
11742 echo "$as_me: failed program was:" >&5
11743 sed 's/^/| /' conftest.$ac_ext >&5
11745 ac_cv_func_alloca_works=no
11747 rm -f conftest.err conftest.$ac_objext \
11748 conftest$ac_exeext conftest.$ac_ext
11750 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
11751 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
11753 if test $ac_cv_func_alloca_works = yes; then
11755 cat >>confdefs.h <<\_ACEOF
11756 #define HAVE_ALLOCA 1
11757 _ACEOF
11759 else
11760 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11761 # that cause trouble. Some versions do not even contain alloca or
11762 # contain a buggy version. If you still want to use their alloca,
11763 # use ar to extract alloca.o from them instead of compiling alloca.c.
11765 ALLOCA=alloca.$ac_objext
11767 cat >>confdefs.h <<\_ACEOF
11768 #define C_ALLOCA 1
11769 _ACEOF
11772 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
11773 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
11774 if test "${ac_cv_os_cray+set}" = set; then
11775 echo $ECHO_N "(cached) $ECHO_C" >&6
11776 else
11777 cat >conftest.$ac_ext <<_ACEOF
11778 /* confdefs.h. */
11779 _ACEOF
11780 cat confdefs.h >>conftest.$ac_ext
11781 cat >>conftest.$ac_ext <<_ACEOF
11782 /* end confdefs.h. */
11783 #if defined(CRAY) && ! defined(CRAY2)
11784 webecray
11785 #else
11786 wenotbecray
11787 #endif
11789 _ACEOF
11790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11791 $EGREP "webecray" >/dev/null 2>&1; then
11792 ac_cv_os_cray=yes
11793 else
11794 ac_cv_os_cray=no
11796 rm -f conftest*
11799 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
11800 echo "${ECHO_T}$ac_cv_os_cray" >&6
11801 if test $ac_cv_os_cray = yes; then
11802 for ac_func in _getb67 GETB67 getb67; do
11803 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11804 echo "$as_me:$LINENO: checking for $ac_func" >&5
11805 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11806 if eval "test \"\${$as_ac_var+set}\" = set"; then
11807 echo $ECHO_N "(cached) $ECHO_C" >&6
11808 else
11809 cat >conftest.$ac_ext <<_ACEOF
11810 /* confdefs.h. */
11811 _ACEOF
11812 cat confdefs.h >>conftest.$ac_ext
11813 cat >>conftest.$ac_ext <<_ACEOF
11814 /* end confdefs.h. */
11815 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11817 #define $ac_func innocuous_$ac_func
11819 /* System header to define __stub macros and hopefully few prototypes,
11820 which can conflict with char $ac_func (); below.
11821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11822 <limits.h> exists even on freestanding compilers. */
11824 #ifdef __STDC__
11825 # include <limits.h>
11826 #else
11827 # include <assert.h>
11828 #endif
11830 #undef $ac_func
11832 /* Override any gcc2 internal prototype to avoid an error. */
11833 #ifdef __cplusplus
11834 extern "C"
11836 #endif
11837 /* We use char because int might match the return type of a gcc2
11838 builtin and then its argument prototype would still apply. */
11839 char $ac_func ();
11840 /* The GNU C library defines this for functions which it implements
11841 to always fail with ENOSYS. Some functions are actually named
11842 something starting with __ and the normal name is an alias. */
11843 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11844 choke me
11845 #else
11846 char (*f) () = $ac_func;
11847 #endif
11848 #ifdef __cplusplus
11850 #endif
11853 main ()
11855 return f != $ac_func;
11857 return 0;
11859 _ACEOF
11860 rm -f conftest.$ac_objext conftest$ac_exeext
11861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11862 (eval $ac_link) 2>conftest.er1
11863 ac_status=$?
11864 grep -v '^ *+' conftest.er1 >conftest.err
11865 rm -f conftest.er1
11866 cat conftest.err >&5
11867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868 (exit $ac_status); } &&
11869 { ac_try='test -z "$ac_c_werror_flag"
11870 || test ! -s conftest.err'
11871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11872 (eval $ac_try) 2>&5
11873 ac_status=$?
11874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875 (exit $ac_status); }; } &&
11876 { ac_try='test -s conftest$ac_exeext'
11877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11878 (eval $ac_try) 2>&5
11879 ac_status=$?
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); }; }; then
11882 eval "$as_ac_var=yes"
11883 else
11884 echo "$as_me: failed program was:" >&5
11885 sed 's/^/| /' conftest.$ac_ext >&5
11887 eval "$as_ac_var=no"
11889 rm -f conftest.err conftest.$ac_objext \
11890 conftest$ac_exeext conftest.$ac_ext
11892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11893 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11894 if test `eval echo '${'$as_ac_var'}'` = yes; then
11896 cat >>confdefs.h <<_ACEOF
11897 #define CRAY_STACKSEG_END $ac_func
11898 _ACEOF
11900 break
11903 done
11906 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
11907 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
11908 if test "${ac_cv_c_stack_direction+set}" = set; then
11909 echo $ECHO_N "(cached) $ECHO_C" >&6
11910 else
11911 if test "$cross_compiling" = yes; then
11912 ac_cv_c_stack_direction=0
11913 else
11914 cat >conftest.$ac_ext <<_ACEOF
11915 /* confdefs.h. */
11916 _ACEOF
11917 cat confdefs.h >>conftest.$ac_ext
11918 cat >>conftest.$ac_ext <<_ACEOF
11919 /* end confdefs.h. */
11921 find_stack_direction ()
11923 static char *addr = 0;
11924 auto char dummy;
11925 if (addr == 0)
11927 addr = &dummy;
11928 return find_stack_direction ();
11930 else
11931 return (&dummy > addr) ? 1 : -1;
11935 main ()
11937 exit (find_stack_direction () < 0);
11939 _ACEOF
11940 rm -f conftest$ac_exeext
11941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11942 (eval $ac_link) 2>&5
11943 ac_status=$?
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11947 (eval $ac_try) 2>&5
11948 ac_status=$?
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); }; }; then
11951 ac_cv_c_stack_direction=1
11952 else
11953 echo "$as_me: program exited with status $ac_status" >&5
11954 echo "$as_me: failed program was:" >&5
11955 sed 's/^/| /' conftest.$ac_ext >&5
11957 ( exit $ac_status )
11958 ac_cv_c_stack_direction=-1
11960 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11963 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
11964 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
11966 cat >>confdefs.h <<_ACEOF
11967 #define STACK_DIRECTION $ac_cv_c_stack_direction
11968 _ACEOF
11978 for ac_func in sbrk utimes setmode getc_unlocked strcoll
11980 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11981 echo "$as_me:$LINENO: checking for $ac_func" >&5
11982 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11983 if eval "test \"\${$as_ac_var+set}\" = set"; then
11984 echo $ECHO_N "(cached) $ECHO_C" >&6
11985 else
11986 cat >conftest.$ac_ext <<_ACEOF
11987 /* confdefs.h. */
11988 _ACEOF
11989 cat confdefs.h >>conftest.$ac_ext
11990 cat >>conftest.$ac_ext <<_ACEOF
11991 /* end confdefs.h. */
11992 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11994 #define $ac_func innocuous_$ac_func
11996 /* System header to define __stub macros and hopefully few prototypes,
11997 which can conflict with char $ac_func (); below.
11998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11999 <limits.h> exists even on freestanding compilers. */
12001 #ifdef __STDC__
12002 # include <limits.h>
12003 #else
12004 # include <assert.h>
12005 #endif
12007 #undef $ac_func
12009 /* Override any gcc2 internal prototype to avoid an error. */
12010 #ifdef __cplusplus
12011 extern "C"
12013 #endif
12014 /* We use char because int might match the return type of a gcc2
12015 builtin and then its argument prototype would still apply. */
12016 char $ac_func ();
12017 /* The GNU C library defines this for functions which it implements
12018 to always fail with ENOSYS. Some functions are actually named
12019 something starting with __ and the normal name is an alias. */
12020 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12021 choke me
12022 #else
12023 char (*f) () = $ac_func;
12024 #endif
12025 #ifdef __cplusplus
12027 #endif
12030 main ()
12032 return f != $ac_func;
12034 return 0;
12036 _ACEOF
12037 rm -f conftest.$ac_objext conftest$ac_exeext
12038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12039 (eval $ac_link) 2>conftest.er1
12040 ac_status=$?
12041 grep -v '^ *+' conftest.er1 >conftest.err
12042 rm -f conftest.er1
12043 cat conftest.err >&5
12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); } &&
12046 { ac_try='test -z "$ac_c_werror_flag"
12047 || test ! -s conftest.err'
12048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12049 (eval $ac_try) 2>&5
12050 ac_status=$?
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); }; } &&
12053 { ac_try='test -s conftest$ac_exeext'
12054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12055 (eval $ac_try) 2>&5
12056 ac_status=$?
12057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058 (exit $ac_status); }; }; then
12059 eval "$as_ac_var=yes"
12060 else
12061 echo "$as_me: failed program was:" >&5
12062 sed 's/^/| /' conftest.$ac_ext >&5
12064 eval "$as_ac_var=no"
12066 rm -f conftest.err conftest.$ac_objext \
12067 conftest$ac_exeext conftest.$ac_ext
12069 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12070 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12071 if test `eval echo '${'$as_ac_var'}'` = yes; then
12072 cat >>confdefs.h <<_ACEOF
12073 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12074 _ACEOF
12077 done
12079 echo "$as_me:$LINENO: checking for mkstemp" >&5
12080 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
12081 if test "${ac_cv_func_mkstemp+set}" = set; then
12082 echo $ECHO_N "(cached) $ECHO_C" >&6
12083 else
12084 cat >conftest.$ac_ext <<_ACEOF
12085 /* confdefs.h. */
12086 _ACEOF
12087 cat confdefs.h >>conftest.$ac_ext
12088 cat >>conftest.$ac_ext <<_ACEOF
12089 /* end confdefs.h. */
12090 /* Define mkstemp to an innocuous variant, in case <limits.h> declares mkstemp.
12091 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12092 #define mkstemp innocuous_mkstemp
12094 /* System header to define __stub macros and hopefully few prototypes,
12095 which can conflict with char mkstemp (); below.
12096 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12097 <limits.h> exists even on freestanding compilers. */
12099 #ifdef __STDC__
12100 # include <limits.h>
12101 #else
12102 # include <assert.h>
12103 #endif
12105 #undef mkstemp
12107 /* Override any gcc2 internal prototype to avoid an error. */
12108 #ifdef __cplusplus
12109 extern "C"
12111 #endif
12112 /* We use char because int might match the return type of a gcc2
12113 builtin and then its argument prototype would still apply. */
12114 char mkstemp ();
12115 /* The GNU C library defines this for functions which it implements
12116 to always fail with ENOSYS. Some functions are actually named
12117 something starting with __ and the normal name is an alias. */
12118 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
12119 choke me
12120 #else
12121 char (*f) () = mkstemp;
12122 #endif
12123 #ifdef __cplusplus
12125 #endif
12128 main ()
12130 return f != mkstemp;
12132 return 0;
12134 _ACEOF
12135 rm -f conftest.$ac_objext conftest$ac_exeext
12136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12137 (eval $ac_link) 2>conftest.er1
12138 ac_status=$?
12139 grep -v '^ *+' conftest.er1 >conftest.err
12140 rm -f conftest.er1
12141 cat conftest.err >&5
12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143 (exit $ac_status); } &&
12144 { ac_try='test -z "$ac_c_werror_flag"
12145 || test ! -s conftest.err'
12146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12147 (eval $ac_try) 2>&5
12148 ac_status=$?
12149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150 (exit $ac_status); }; } &&
12151 { ac_try='test -s conftest$ac_exeext'
12152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12153 (eval $ac_try) 2>&5
12154 ac_status=$?
12155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156 (exit $ac_status); }; }; then
12157 ac_cv_func_mkstemp=yes
12158 else
12159 echo "$as_me: failed program was:" >&5
12160 sed 's/^/| /' conftest.$ac_ext >&5
12162 ac_cv_func_mkstemp=no
12164 rm -f conftest.err conftest.$ac_objext \
12165 conftest$ac_exeext conftest.$ac_ext
12167 echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp" >&5
12168 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
12169 if test $ac_cv_func_mkstemp = yes; then
12171 cat >>confdefs.h <<\_ACEOF
12172 #define HAVE_MKSTEMP 1
12173 _ACEOF
12177 echo "$as_me:$LINENO: checking for mkdtemp" >&5
12178 echo $ECHO_N "checking for mkdtemp... $ECHO_C" >&6
12179 if test "${ac_cv_func_mkdtemp+set}" = set; then
12180 echo $ECHO_N "(cached) $ECHO_C" >&6
12181 else
12182 cat >conftest.$ac_ext <<_ACEOF
12183 /* confdefs.h. */
12184 _ACEOF
12185 cat confdefs.h >>conftest.$ac_ext
12186 cat >>conftest.$ac_ext <<_ACEOF
12187 /* end confdefs.h. */
12188 /* Define mkdtemp to an innocuous variant, in case <limits.h> declares mkdtemp.
12189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12190 #define mkdtemp innocuous_mkdtemp
12192 /* System header to define __stub macros and hopefully few prototypes,
12193 which can conflict with char mkdtemp (); below.
12194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12195 <limits.h> exists even on freestanding compilers. */
12197 #ifdef __STDC__
12198 # include <limits.h>
12199 #else
12200 # include <assert.h>
12201 #endif
12203 #undef mkdtemp
12205 /* Override any gcc2 internal prototype to avoid an error. */
12206 #ifdef __cplusplus
12207 extern "C"
12209 #endif
12210 /* We use char because int might match the return type of a gcc2
12211 builtin and then its argument prototype would still apply. */
12212 char mkdtemp ();
12213 /* The GNU C library defines this for functions which it implements
12214 to always fail with ENOSYS. Some functions are actually named
12215 something starting with __ and the normal name is an alias. */
12216 #if defined (__stub_mkdtemp) || defined (__stub___mkdtemp)
12217 choke me
12218 #else
12219 char (*f) () = mkdtemp;
12220 #endif
12221 #ifdef __cplusplus
12223 #endif
12226 main ()
12228 return f != mkdtemp;
12230 return 0;
12232 _ACEOF
12233 rm -f conftest.$ac_objext conftest$ac_exeext
12234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12235 (eval $ac_link) 2>conftest.er1
12236 ac_status=$?
12237 grep -v '^ *+' conftest.er1 >conftest.err
12238 rm -f conftest.er1
12239 cat conftest.err >&5
12240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241 (exit $ac_status); } &&
12242 { ac_try='test -z "$ac_c_werror_flag"
12243 || test ! -s conftest.err'
12244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12245 (eval $ac_try) 2>&5
12246 ac_status=$?
12247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248 (exit $ac_status); }; } &&
12249 { ac_try='test -s conftest$ac_exeext'
12250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12251 (eval $ac_try) 2>&5
12252 ac_status=$?
12253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254 (exit $ac_status); }; }; then
12255 ac_cv_func_mkdtemp=yes
12256 else
12257 echo "$as_me: failed program was:" >&5
12258 sed 's/^/| /' conftest.$ac_ext >&5
12260 ac_cv_func_mkdtemp=no
12262 rm -f conftest.err conftest.$ac_objext \
12263 conftest$ac_exeext conftest.$ac_ext
12265 echo "$as_me:$LINENO: result: $ac_cv_func_mkdtemp" >&5
12266 echo "${ECHO_T}$ac_cv_func_mkdtemp" >&6
12267 if test $ac_cv_func_mkdtemp = yes; then
12269 cat >>confdefs.h <<\_ACEOF
12270 #define HAVE_MKDTEMP 1
12271 _ACEOF
12276 # Check whether fopen64 is available and whether _LARGEFILE64_SOURCE
12277 # needs to be defined for it
12278 echo "$as_me:$LINENO: checking for fopen64" >&5
12279 echo $ECHO_N "checking for fopen64... $ECHO_C" >&6
12280 if test "${bu_cv_have_fopen64+set}" = set; then
12281 echo $ECHO_N "(cached) $ECHO_C" >&6
12282 else
12283 cat >conftest.$ac_ext <<_ACEOF
12284 /* confdefs.h. */
12285 _ACEOF
12286 cat confdefs.h >>conftest.$ac_ext
12287 cat >>conftest.$ac_ext <<_ACEOF
12288 /* end confdefs.h. */
12289 #include <stdio.h>
12291 main ()
12293 FILE *f = fopen64 ("/tmp/foo","r");
12295 return 0;
12297 _ACEOF
12298 rm -f conftest.$ac_objext conftest$ac_exeext
12299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12300 (eval $ac_link) 2>conftest.er1
12301 ac_status=$?
12302 grep -v '^ *+' conftest.er1 >conftest.err
12303 rm -f conftest.er1
12304 cat conftest.err >&5
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); } &&
12307 { ac_try='test -z "$ac_c_werror_flag"
12308 || test ! -s conftest.err'
12309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12310 (eval $ac_try) 2>&5
12311 ac_status=$?
12312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313 (exit $ac_status); }; } &&
12314 { ac_try='test -s conftest$ac_exeext'
12315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12316 (eval $ac_try) 2>&5
12317 ac_status=$?
12318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); }; }; then
12320 bu_cv_have_fopen64=yes
12321 else
12322 echo "$as_me: failed program was:" >&5
12323 sed 's/^/| /' conftest.$ac_ext >&5
12325 saved_CPPFLAGS=$CPPFLAGS
12326 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
12327 cat >conftest.$ac_ext <<_ACEOF
12328 /* confdefs.h. */
12329 _ACEOF
12330 cat confdefs.h >>conftest.$ac_ext
12331 cat >>conftest.$ac_ext <<_ACEOF
12332 /* end confdefs.h. */
12333 #include <stdio.h>
12335 main ()
12337 FILE *f = fopen64 ("/tmp/foo","r");
12339 return 0;
12341 _ACEOF
12342 rm -f conftest.$ac_objext conftest$ac_exeext
12343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12344 (eval $ac_link) 2>conftest.er1
12345 ac_status=$?
12346 grep -v '^ *+' conftest.er1 >conftest.err
12347 rm -f conftest.er1
12348 cat conftest.err >&5
12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); } &&
12351 { ac_try='test -z "$ac_c_werror_flag"
12352 || test ! -s conftest.err'
12353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12354 (eval $ac_try) 2>&5
12355 ac_status=$?
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); }; } &&
12358 { ac_try='test -s conftest$ac_exeext'
12359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12360 (eval $ac_try) 2>&5
12361 ac_status=$?
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); }; }; then
12364 bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE"
12365 else
12366 echo "$as_me: failed program was:" >&5
12367 sed 's/^/| /' conftest.$ac_ext >&5
12369 bu_cv_have_fopen64=no
12371 rm -f conftest.err conftest.$ac_objext \
12372 conftest$ac_exeext conftest.$ac_ext
12373 CPPFLAGS=$saved_CPPFLAGS
12375 rm -f conftest.err conftest.$ac_objext \
12376 conftest$ac_exeext conftest.$ac_ext
12379 echo "$as_me:$LINENO: result: $bu_cv_have_fopen64" >&5
12380 echo "${ECHO_T}$bu_cv_have_fopen64" >&6
12381 if test "$bu_cv_have_fopen64" != no; then
12383 cat >>confdefs.h <<\_ACEOF
12384 #define HAVE_FOPEN64 1
12385 _ACEOF
12388 echo "$as_me:$LINENO: checking for stat64" >&5
12389 echo $ECHO_N "checking for stat64... $ECHO_C" >&6
12390 if test "${bu_cv_have_stat64+set}" = set; then
12391 echo $ECHO_N "(cached) $ECHO_C" >&6
12392 else
12393 cat >conftest.$ac_ext <<_ACEOF
12394 /* confdefs.h. */
12395 _ACEOF
12396 cat confdefs.h >>conftest.$ac_ext
12397 cat >>conftest.$ac_ext <<_ACEOF
12398 /* end confdefs.h. */
12399 #include <sys/stat.h>
12401 main ()
12403 struct stat64 st; stat64 ("/tmp/foo", &st);
12405 return 0;
12407 _ACEOF
12408 rm -f conftest.$ac_objext conftest$ac_exeext
12409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12410 (eval $ac_link) 2>conftest.er1
12411 ac_status=$?
12412 grep -v '^ *+' conftest.er1 >conftest.err
12413 rm -f conftest.er1
12414 cat conftest.err >&5
12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); } &&
12417 { ac_try='test -z "$ac_c_werror_flag"
12418 || test ! -s conftest.err'
12419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12420 (eval $ac_try) 2>&5
12421 ac_status=$?
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); }; } &&
12424 { ac_try='test -s conftest$ac_exeext'
12425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12426 (eval $ac_try) 2>&5
12427 ac_status=$?
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); }; }; then
12430 bu_cv_have_stat64=yes
12431 else
12432 echo "$as_me: failed program was:" >&5
12433 sed 's/^/| /' conftest.$ac_ext >&5
12435 saved_CPPFLAGS=$CPPFLAGS
12436 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
12437 cat >conftest.$ac_ext <<_ACEOF
12438 /* confdefs.h. */
12439 _ACEOF
12440 cat confdefs.h >>conftest.$ac_ext
12441 cat >>conftest.$ac_ext <<_ACEOF
12442 /* end confdefs.h. */
12443 #include <sys/stat.h>
12445 main ()
12447 struct stat64 st; stat64 ("/tmp/foo", &st);
12449 return 0;
12451 _ACEOF
12452 rm -f conftest.$ac_objext conftest$ac_exeext
12453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12454 (eval $ac_link) 2>conftest.er1
12455 ac_status=$?
12456 grep -v '^ *+' conftest.er1 >conftest.err
12457 rm -f conftest.er1
12458 cat conftest.err >&5
12459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460 (exit $ac_status); } &&
12461 { ac_try='test -z "$ac_c_werror_flag"
12462 || test ! -s conftest.err'
12463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12464 (eval $ac_try) 2>&5
12465 ac_status=$?
12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467 (exit $ac_status); }; } &&
12468 { ac_try='test -s conftest$ac_exeext'
12469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12470 (eval $ac_try) 2>&5
12471 ac_status=$?
12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473 (exit $ac_status); }; }; then
12474 bu_cv_have_stat64="need -D_LARGEFILE64_SOURCE"
12475 else
12476 echo "$as_me: failed program was:" >&5
12477 sed 's/^/| /' conftest.$ac_ext >&5
12479 bu_cv_have_stat64=no
12481 rm -f conftest.err conftest.$ac_objext \
12482 conftest$ac_exeext conftest.$ac_ext
12483 CPPFLAGS=$saved_CPPFLAGS
12485 rm -f conftest.err conftest.$ac_objext \
12486 conftest$ac_exeext conftest.$ac_ext
12489 echo "$as_me:$LINENO: result: $bu_cv_have_stat64" >&5
12490 echo "${ECHO_T}$bu_cv_have_stat64" >&6
12491 if test "$bu_cv_have_stat64" != no; then
12493 cat >>confdefs.h <<\_ACEOF
12494 #define HAVE_STAT64 1
12495 _ACEOF
12498 if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE" \
12499 || test "$bu_cv_have_stat64" = "need -D_LARGEFILE64_SOURCE"; then
12501 cat >>confdefs.h <<\_ACEOF
12502 #define _LARGEFILE64_SOURCE 1
12503 _ACEOF
12505 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
12508 # Some systems have frexp only in -lm, not in -lc.
12509 echo "$as_me:$LINENO: checking for library containing frexp" >&5
12510 echo $ECHO_N "checking for library containing frexp... $ECHO_C" >&6
12511 if test "${ac_cv_search_frexp+set}" = set; then
12512 echo $ECHO_N "(cached) $ECHO_C" >&6
12513 else
12514 ac_func_search_save_LIBS=$LIBS
12515 ac_cv_search_frexp=no
12516 cat >conftest.$ac_ext <<_ACEOF
12517 /* confdefs.h. */
12518 _ACEOF
12519 cat confdefs.h >>conftest.$ac_ext
12520 cat >>conftest.$ac_ext <<_ACEOF
12521 /* end confdefs.h. */
12523 /* Override any gcc2 internal prototype to avoid an error. */
12524 #ifdef __cplusplus
12525 extern "C"
12526 #endif
12527 /* We use char because int might match the return type of a gcc2
12528 builtin and then its argument prototype would still apply. */
12529 char frexp ();
12531 main ()
12533 frexp ();
12535 return 0;
12537 _ACEOF
12538 rm -f conftest.$ac_objext conftest$ac_exeext
12539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12540 (eval $ac_link) 2>conftest.er1
12541 ac_status=$?
12542 grep -v '^ *+' conftest.er1 >conftest.err
12543 rm -f conftest.er1
12544 cat conftest.err >&5
12545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546 (exit $ac_status); } &&
12547 { ac_try='test -z "$ac_c_werror_flag"
12548 || test ! -s conftest.err'
12549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12550 (eval $ac_try) 2>&5
12551 ac_status=$?
12552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553 (exit $ac_status); }; } &&
12554 { ac_try='test -s conftest$ac_exeext'
12555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12556 (eval $ac_try) 2>&5
12557 ac_status=$?
12558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559 (exit $ac_status); }; }; then
12560 ac_cv_search_frexp="none required"
12561 else
12562 echo "$as_me: failed program was:" >&5
12563 sed 's/^/| /' conftest.$ac_ext >&5
12566 rm -f conftest.err conftest.$ac_objext \
12567 conftest$ac_exeext conftest.$ac_ext
12568 if test "$ac_cv_search_frexp" = no; then
12569 for ac_lib in m; do
12570 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12571 cat >conftest.$ac_ext <<_ACEOF
12572 /* confdefs.h. */
12573 _ACEOF
12574 cat confdefs.h >>conftest.$ac_ext
12575 cat >>conftest.$ac_ext <<_ACEOF
12576 /* end confdefs.h. */
12578 /* Override any gcc2 internal prototype to avoid an error. */
12579 #ifdef __cplusplus
12580 extern "C"
12581 #endif
12582 /* We use char because int might match the return type of a gcc2
12583 builtin and then its argument prototype would still apply. */
12584 char frexp ();
12586 main ()
12588 frexp ();
12590 return 0;
12592 _ACEOF
12593 rm -f conftest.$ac_objext conftest$ac_exeext
12594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12595 (eval $ac_link) 2>conftest.er1
12596 ac_status=$?
12597 grep -v '^ *+' conftest.er1 >conftest.err
12598 rm -f conftest.er1
12599 cat conftest.err >&5
12600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601 (exit $ac_status); } &&
12602 { ac_try='test -z "$ac_c_werror_flag"
12603 || test ! -s conftest.err'
12604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12605 (eval $ac_try) 2>&5
12606 ac_status=$?
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); }; } &&
12609 { ac_try='test -s conftest$ac_exeext'
12610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12611 (eval $ac_try) 2>&5
12612 ac_status=$?
12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 (exit $ac_status); }; }; then
12615 ac_cv_search_frexp="-l$ac_lib"
12616 break
12617 else
12618 echo "$as_me: failed program was:" >&5
12619 sed 's/^/| /' conftest.$ac_ext >&5
12622 rm -f conftest.err conftest.$ac_objext \
12623 conftest$ac_exeext conftest.$ac_ext
12624 done
12626 LIBS=$ac_func_search_save_LIBS
12628 echo "$as_me:$LINENO: result: $ac_cv_search_frexp" >&5
12629 echo "${ECHO_T}$ac_cv_search_frexp" >&6
12630 if test "$ac_cv_search_frexp" != no; then
12631 test "$ac_cv_search_frexp" = "none required" || LIBS="$ac_cv_search_frexp $LIBS"
12636 echo "$as_me:$LINENO: checking for time_t in time.h" >&5
12637 echo $ECHO_N "checking for time_t in time.h... $ECHO_C" >&6
12638 if test "${bu_cv_decl_time_t_time_h+set}" = set; then
12639 echo $ECHO_N "(cached) $ECHO_C" >&6
12640 else
12641 cat >conftest.$ac_ext <<_ACEOF
12642 /* confdefs.h. */
12643 _ACEOF
12644 cat confdefs.h >>conftest.$ac_ext
12645 cat >>conftest.$ac_ext <<_ACEOF
12646 /* end confdefs.h. */
12647 #include <time.h>
12649 main ()
12651 time_t i;
12653 return 0;
12655 _ACEOF
12656 rm -f conftest.$ac_objext
12657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12658 (eval $ac_compile) 2>conftest.er1
12659 ac_status=$?
12660 grep -v '^ *+' conftest.er1 >conftest.err
12661 rm -f conftest.er1
12662 cat conftest.err >&5
12663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664 (exit $ac_status); } &&
12665 { ac_try='test -z "$ac_c_werror_flag"
12666 || test ! -s conftest.err'
12667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12668 (eval $ac_try) 2>&5
12669 ac_status=$?
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); }; } &&
12672 { ac_try='test -s conftest.$ac_objext'
12673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12674 (eval $ac_try) 2>&5
12675 ac_status=$?
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); }; }; then
12678 bu_cv_decl_time_t_time_h=yes
12679 else
12680 echo "$as_me: failed program was:" >&5
12681 sed 's/^/| /' conftest.$ac_ext >&5
12683 bu_cv_decl_time_t_time_h=no
12685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12688 echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_time_h" >&5
12689 echo "${ECHO_T}$bu_cv_decl_time_t_time_h" >&6
12690 if test $bu_cv_decl_time_t_time_h = yes; then
12692 cat >>confdefs.h <<\_ACEOF
12693 #define HAVE_TIME_T_IN_TIME_H 1
12694 _ACEOF
12698 echo "$as_me:$LINENO: checking for time_t in sys/types.h" >&5
12699 echo $ECHO_N "checking for time_t in sys/types.h... $ECHO_C" >&6
12700 if test "${bu_cv_decl_time_t_types_h+set}" = set; then
12701 echo $ECHO_N "(cached) $ECHO_C" >&6
12702 else
12703 cat >conftest.$ac_ext <<_ACEOF
12704 /* confdefs.h. */
12705 _ACEOF
12706 cat confdefs.h >>conftest.$ac_ext
12707 cat >>conftest.$ac_ext <<_ACEOF
12708 /* end confdefs.h. */
12709 #include <sys/types.h>
12711 main ()
12713 time_t i;
12715 return 0;
12717 _ACEOF
12718 rm -f conftest.$ac_objext
12719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12720 (eval $ac_compile) 2>conftest.er1
12721 ac_status=$?
12722 grep -v '^ *+' conftest.er1 >conftest.err
12723 rm -f conftest.er1
12724 cat conftest.err >&5
12725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726 (exit $ac_status); } &&
12727 { ac_try='test -z "$ac_c_werror_flag"
12728 || test ! -s conftest.err'
12729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12730 (eval $ac_try) 2>&5
12731 ac_status=$?
12732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733 (exit $ac_status); }; } &&
12734 { ac_try='test -s conftest.$ac_objext'
12735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12736 (eval $ac_try) 2>&5
12737 ac_status=$?
12738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739 (exit $ac_status); }; }; then
12740 bu_cv_decl_time_t_types_h=yes
12741 else
12742 echo "$as_me: failed program was:" >&5
12743 sed 's/^/| /' conftest.$ac_ext >&5
12745 bu_cv_decl_time_t_types_h=no
12747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12750 echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_types_h" >&5
12751 echo "${ECHO_T}$bu_cv_decl_time_t_types_h" >&6
12752 if test $bu_cv_decl_time_t_types_h = yes; then
12754 cat >>confdefs.h <<\_ACEOF
12755 #define HAVE_TIME_T_IN_TYPES_H 1
12756 _ACEOF
12760 echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
12761 echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
12762 if test "${bu_cv_decl_getopt_unistd_h+set}" = set; then
12763 echo $ECHO_N "(cached) $ECHO_C" >&6
12764 else
12765 cat >conftest.$ac_ext <<_ACEOF
12766 /* confdefs.h. */
12767 _ACEOF
12768 cat confdefs.h >>conftest.$ac_ext
12769 cat >>conftest.$ac_ext <<_ACEOF
12770 /* end confdefs.h. */
12771 #include <unistd.h>
12773 main ()
12775 extern int getopt (int, char *const*, const char *);
12777 return 0;
12779 _ACEOF
12780 rm -f conftest.$ac_objext
12781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12782 (eval $ac_compile) 2>conftest.er1
12783 ac_status=$?
12784 grep -v '^ *+' conftest.er1 >conftest.err
12785 rm -f conftest.er1
12786 cat conftest.err >&5
12787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788 (exit $ac_status); } &&
12789 { ac_try='test -z "$ac_c_werror_flag"
12790 || test ! -s conftest.err'
12791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12792 (eval $ac_try) 2>&5
12793 ac_status=$?
12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); }; } &&
12796 { ac_try='test -s conftest.$ac_objext'
12797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12798 (eval $ac_try) 2>&5
12799 ac_status=$?
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); }; }; then
12802 bu_cv_decl_getopt_unistd_h=yes
12803 else
12804 echo "$as_me: failed program was:" >&5
12805 sed 's/^/| /' conftest.$ac_ext >&5
12807 bu_cv_decl_getopt_unistd_h=no
12809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12812 echo "$as_me:$LINENO: result: $bu_cv_decl_getopt_unistd_h" >&5
12813 echo "${ECHO_T}$bu_cv_decl_getopt_unistd_h" >&6
12814 if test $bu_cv_decl_getopt_unistd_h = yes; then
12816 cat >>confdefs.h <<\_ACEOF
12817 #define HAVE_DECL_GETOPT 1
12818 _ACEOF
12822 # Under Next 3.2 <utime.h> apparently does not define struct utimbuf
12823 # by default.
12824 echo "$as_me:$LINENO: checking for utime.h" >&5
12825 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
12826 if test "${bu_cv_header_utime_h+set}" = set; then
12827 echo $ECHO_N "(cached) $ECHO_C" >&6
12828 else
12829 cat >conftest.$ac_ext <<_ACEOF
12830 /* confdefs.h. */
12831 _ACEOF
12832 cat confdefs.h >>conftest.$ac_ext
12833 cat >>conftest.$ac_ext <<_ACEOF
12834 /* end confdefs.h. */
12835 #include <sys/types.h>
12836 #ifdef HAVE_TIME_H
12837 #include <time.h>
12838 #endif
12839 #include <utime.h>
12841 main ()
12843 struct utimbuf s;
12845 return 0;
12847 _ACEOF
12848 rm -f conftest.$ac_objext
12849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12850 (eval $ac_compile) 2>conftest.er1
12851 ac_status=$?
12852 grep -v '^ *+' conftest.er1 >conftest.err
12853 rm -f conftest.er1
12854 cat conftest.err >&5
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); } &&
12857 { ac_try='test -z "$ac_c_werror_flag"
12858 || test ! -s conftest.err'
12859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12860 (eval $ac_try) 2>&5
12861 ac_status=$?
12862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863 (exit $ac_status); }; } &&
12864 { ac_try='test -s conftest.$ac_objext'
12865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12866 (eval $ac_try) 2>&5
12867 ac_status=$?
12868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869 (exit $ac_status); }; }; then
12870 bu_cv_header_utime_h=yes
12871 else
12872 echo "$as_me: failed program was:" >&5
12873 sed 's/^/| /' conftest.$ac_ext >&5
12875 bu_cv_header_utime_h=no
12877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12880 echo "$as_me:$LINENO: result: $bu_cv_header_utime_h" >&5
12881 echo "${ECHO_T}$bu_cv_header_utime_h" >&6
12882 if test $bu_cv_header_utime_h = yes; then
12884 cat >>confdefs.h <<\_ACEOF
12885 #define HAVE_GOOD_UTIME_H 1
12886 _ACEOF
12890 echo "$as_me:$LINENO: checking whether fprintf is declared" >&5
12891 echo $ECHO_N "checking whether fprintf is declared... $ECHO_C" >&6
12892 if test "${ac_cv_have_decl_fprintf+set}" = set; then
12893 echo $ECHO_N "(cached) $ECHO_C" >&6
12894 else
12895 cat >conftest.$ac_ext <<_ACEOF
12896 /* confdefs.h. */
12897 _ACEOF
12898 cat confdefs.h >>conftest.$ac_ext
12899 cat >>conftest.$ac_ext <<_ACEOF
12900 /* end confdefs.h. */
12901 $ac_includes_default
12903 main ()
12905 #ifndef fprintf
12906 char *p = (char *) fprintf;
12907 #endif
12910 return 0;
12912 _ACEOF
12913 rm -f conftest.$ac_objext
12914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12915 (eval $ac_compile) 2>conftest.er1
12916 ac_status=$?
12917 grep -v '^ *+' conftest.er1 >conftest.err
12918 rm -f conftest.er1
12919 cat conftest.err >&5
12920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921 (exit $ac_status); } &&
12922 { ac_try='test -z "$ac_c_werror_flag"
12923 || test ! -s conftest.err'
12924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12925 (eval $ac_try) 2>&5
12926 ac_status=$?
12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); }; } &&
12929 { ac_try='test -s conftest.$ac_objext'
12930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12931 (eval $ac_try) 2>&5
12932 ac_status=$?
12933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934 (exit $ac_status); }; }; then
12935 ac_cv_have_decl_fprintf=yes
12936 else
12937 echo "$as_me: failed program was:" >&5
12938 sed 's/^/| /' conftest.$ac_ext >&5
12940 ac_cv_have_decl_fprintf=no
12942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12944 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf" >&5
12945 echo "${ECHO_T}$ac_cv_have_decl_fprintf" >&6
12946 if test $ac_cv_have_decl_fprintf = yes; then
12948 cat >>confdefs.h <<_ACEOF
12949 #define HAVE_DECL_FPRINTF 1
12950 _ACEOF
12953 else
12954 cat >>confdefs.h <<_ACEOF
12955 #define HAVE_DECL_FPRINTF 0
12956 _ACEOF
12960 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
12961 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
12962 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
12963 echo $ECHO_N "(cached) $ECHO_C" >&6
12964 else
12965 cat >conftest.$ac_ext <<_ACEOF
12966 /* confdefs.h. */
12967 _ACEOF
12968 cat confdefs.h >>conftest.$ac_ext
12969 cat >>conftest.$ac_ext <<_ACEOF
12970 /* end confdefs.h. */
12971 $ac_includes_default
12973 main ()
12975 #ifndef stpcpy
12976 char *p = (char *) stpcpy;
12977 #endif
12980 return 0;
12982 _ACEOF
12983 rm -f conftest.$ac_objext
12984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12985 (eval $ac_compile) 2>conftest.er1
12986 ac_status=$?
12987 grep -v '^ *+' conftest.er1 >conftest.err
12988 rm -f conftest.er1
12989 cat conftest.err >&5
12990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991 (exit $ac_status); } &&
12992 { ac_try='test -z "$ac_c_werror_flag"
12993 || test ! -s conftest.err'
12994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12995 (eval $ac_try) 2>&5
12996 ac_status=$?
12997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998 (exit $ac_status); }; } &&
12999 { ac_try='test -s conftest.$ac_objext'
13000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13001 (eval $ac_try) 2>&5
13002 ac_status=$?
13003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004 (exit $ac_status); }; }; then
13005 ac_cv_have_decl_stpcpy=yes
13006 else
13007 echo "$as_me: failed program was:" >&5
13008 sed 's/^/| /' conftest.$ac_ext >&5
13010 ac_cv_have_decl_stpcpy=no
13012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13014 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
13015 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
13016 if test $ac_cv_have_decl_stpcpy = yes; then
13018 cat >>confdefs.h <<_ACEOF
13019 #define HAVE_DECL_STPCPY 1
13020 _ACEOF
13023 else
13024 cat >>confdefs.h <<_ACEOF
13025 #define HAVE_DECL_STPCPY 0
13026 _ACEOF
13030 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
13031 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
13032 if test "${ac_cv_have_decl_strstr+set}" = set; then
13033 echo $ECHO_N "(cached) $ECHO_C" >&6
13034 else
13035 cat >conftest.$ac_ext <<_ACEOF
13036 /* confdefs.h. */
13037 _ACEOF
13038 cat confdefs.h >>conftest.$ac_ext
13039 cat >>conftest.$ac_ext <<_ACEOF
13040 /* end confdefs.h. */
13041 $ac_includes_default
13043 main ()
13045 #ifndef strstr
13046 char *p = (char *) strstr;
13047 #endif
13050 return 0;
13052 _ACEOF
13053 rm -f conftest.$ac_objext
13054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13055 (eval $ac_compile) 2>conftest.er1
13056 ac_status=$?
13057 grep -v '^ *+' conftest.er1 >conftest.err
13058 rm -f conftest.er1
13059 cat conftest.err >&5
13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061 (exit $ac_status); } &&
13062 { ac_try='test -z "$ac_c_werror_flag"
13063 || test ! -s conftest.err'
13064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13065 (eval $ac_try) 2>&5
13066 ac_status=$?
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); }; } &&
13069 { ac_try='test -s conftest.$ac_objext'
13070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13071 (eval $ac_try) 2>&5
13072 ac_status=$?
13073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074 (exit $ac_status); }; }; then
13075 ac_cv_have_decl_strstr=yes
13076 else
13077 echo "$as_me: failed program was:" >&5
13078 sed 's/^/| /' conftest.$ac_ext >&5
13080 ac_cv_have_decl_strstr=no
13082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13084 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
13085 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
13086 if test $ac_cv_have_decl_strstr = yes; then
13088 cat >>confdefs.h <<_ACEOF
13089 #define HAVE_DECL_STRSTR 1
13090 _ACEOF
13093 else
13094 cat >>confdefs.h <<_ACEOF
13095 #define HAVE_DECL_STRSTR 0
13096 _ACEOF
13100 echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
13101 echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
13102 if test "${ac_cv_have_decl_sbrk+set}" = set; then
13103 echo $ECHO_N "(cached) $ECHO_C" >&6
13104 else
13105 cat >conftest.$ac_ext <<_ACEOF
13106 /* confdefs.h. */
13107 _ACEOF
13108 cat confdefs.h >>conftest.$ac_ext
13109 cat >>conftest.$ac_ext <<_ACEOF
13110 /* end confdefs.h. */
13111 $ac_includes_default
13113 main ()
13115 #ifndef sbrk
13116 char *p = (char *) sbrk;
13117 #endif
13120 return 0;
13122 _ACEOF
13123 rm -f conftest.$ac_objext
13124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13125 (eval $ac_compile) 2>conftest.er1
13126 ac_status=$?
13127 grep -v '^ *+' conftest.er1 >conftest.err
13128 rm -f conftest.er1
13129 cat conftest.err >&5
13130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131 (exit $ac_status); } &&
13132 { ac_try='test -z "$ac_c_werror_flag"
13133 || test ! -s conftest.err'
13134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13135 (eval $ac_try) 2>&5
13136 ac_status=$?
13137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138 (exit $ac_status); }; } &&
13139 { ac_try='test -s conftest.$ac_objext'
13140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13141 (eval $ac_try) 2>&5
13142 ac_status=$?
13143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144 (exit $ac_status); }; }; then
13145 ac_cv_have_decl_sbrk=yes
13146 else
13147 echo "$as_me: failed program was:" >&5
13148 sed 's/^/| /' conftest.$ac_ext >&5
13150 ac_cv_have_decl_sbrk=no
13152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13154 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
13155 echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
13156 if test $ac_cv_have_decl_sbrk = yes; then
13158 cat >>confdefs.h <<_ACEOF
13159 #define HAVE_DECL_SBRK 1
13160 _ACEOF
13163 else
13164 cat >>confdefs.h <<_ACEOF
13165 #define HAVE_DECL_SBRK 0
13166 _ACEOF
13170 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
13171 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
13172 if test "${ac_cv_have_decl_getenv+set}" = set; then
13173 echo $ECHO_N "(cached) $ECHO_C" >&6
13174 else
13175 cat >conftest.$ac_ext <<_ACEOF
13176 /* confdefs.h. */
13177 _ACEOF
13178 cat confdefs.h >>conftest.$ac_ext
13179 cat >>conftest.$ac_ext <<_ACEOF
13180 /* end confdefs.h. */
13181 $ac_includes_default
13183 main ()
13185 #ifndef getenv
13186 char *p = (char *) getenv;
13187 #endif
13190 return 0;
13192 _ACEOF
13193 rm -f conftest.$ac_objext
13194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13195 (eval $ac_compile) 2>conftest.er1
13196 ac_status=$?
13197 grep -v '^ *+' conftest.er1 >conftest.err
13198 rm -f conftest.er1
13199 cat conftest.err >&5
13200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201 (exit $ac_status); } &&
13202 { ac_try='test -z "$ac_c_werror_flag"
13203 || test ! -s conftest.err'
13204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13205 (eval $ac_try) 2>&5
13206 ac_status=$?
13207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208 (exit $ac_status); }; } &&
13209 { ac_try='test -s conftest.$ac_objext'
13210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13211 (eval $ac_try) 2>&5
13212 ac_status=$?
13213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13214 (exit $ac_status); }; }; then
13215 ac_cv_have_decl_getenv=yes
13216 else
13217 echo "$as_me: failed program was:" >&5
13218 sed 's/^/| /' conftest.$ac_ext >&5
13220 ac_cv_have_decl_getenv=no
13222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13224 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
13225 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
13226 if test $ac_cv_have_decl_getenv = yes; then
13228 cat >>confdefs.h <<_ACEOF
13229 #define HAVE_DECL_GETENV 1
13230 _ACEOF
13233 else
13234 cat >>confdefs.h <<_ACEOF
13235 #define HAVE_DECL_GETENV 0
13236 _ACEOF
13240 echo "$as_me:$LINENO: checking whether environ is declared" >&5
13241 echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6
13242 if test "${ac_cv_have_decl_environ+set}" = set; then
13243 echo $ECHO_N "(cached) $ECHO_C" >&6
13244 else
13245 cat >conftest.$ac_ext <<_ACEOF
13246 /* confdefs.h. */
13247 _ACEOF
13248 cat confdefs.h >>conftest.$ac_ext
13249 cat >>conftest.$ac_ext <<_ACEOF
13250 /* end confdefs.h. */
13251 $ac_includes_default
13253 main ()
13255 #ifndef environ
13256 char *p = (char *) environ;
13257 #endif
13260 return 0;
13262 _ACEOF
13263 rm -f conftest.$ac_objext
13264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13265 (eval $ac_compile) 2>conftest.er1
13266 ac_status=$?
13267 grep -v '^ *+' conftest.er1 >conftest.err
13268 rm -f conftest.er1
13269 cat conftest.err >&5
13270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271 (exit $ac_status); } &&
13272 { ac_try='test -z "$ac_c_werror_flag"
13273 || test ! -s conftest.err'
13274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13275 (eval $ac_try) 2>&5
13276 ac_status=$?
13277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278 (exit $ac_status); }; } &&
13279 { ac_try='test -s conftest.$ac_objext'
13280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13281 (eval $ac_try) 2>&5
13282 ac_status=$?
13283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13284 (exit $ac_status); }; }; then
13285 ac_cv_have_decl_environ=yes
13286 else
13287 echo "$as_me: failed program was:" >&5
13288 sed 's/^/| /' conftest.$ac_ext >&5
13290 ac_cv_have_decl_environ=no
13292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13294 echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
13295 echo "${ECHO_T}$ac_cv_have_decl_environ" >&6
13296 if test $ac_cv_have_decl_environ = yes; then
13298 cat >>confdefs.h <<_ACEOF
13299 #define HAVE_DECL_ENVIRON 1
13300 _ACEOF
13303 else
13304 cat >>confdefs.h <<_ACEOF
13305 #define HAVE_DECL_ENVIRON 0
13306 _ACEOF
13310 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
13311 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
13312 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
13313 echo $ECHO_N "(cached) $ECHO_C" >&6
13314 else
13315 cat >conftest.$ac_ext <<_ACEOF
13316 /* confdefs.h. */
13317 _ACEOF
13318 cat confdefs.h >>conftest.$ac_ext
13319 cat >>conftest.$ac_ext <<_ACEOF
13320 /* end confdefs.h. */
13321 $ac_includes_default
13323 main ()
13325 #ifndef getc_unlocked
13326 char *p = (char *) getc_unlocked;
13327 #endif
13330 return 0;
13332 _ACEOF
13333 rm -f conftest.$ac_objext
13334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13335 (eval $ac_compile) 2>conftest.er1
13336 ac_status=$?
13337 grep -v '^ *+' conftest.er1 >conftest.err
13338 rm -f conftest.er1
13339 cat conftest.err >&5
13340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341 (exit $ac_status); } &&
13342 { ac_try='test -z "$ac_c_werror_flag"
13343 || test ! -s conftest.err'
13344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13345 (eval $ac_try) 2>&5
13346 ac_status=$?
13347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348 (exit $ac_status); }; } &&
13349 { ac_try='test -s conftest.$ac_objext'
13350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13351 (eval $ac_try) 2>&5
13352 ac_status=$?
13353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354 (exit $ac_status); }; }; then
13355 ac_cv_have_decl_getc_unlocked=yes
13356 else
13357 echo "$as_me: failed program was:" >&5
13358 sed 's/^/| /' conftest.$ac_ext >&5
13360 ac_cv_have_decl_getc_unlocked=no
13362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13364 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
13365 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
13366 if test $ac_cv_have_decl_getc_unlocked = yes; then
13368 cat >>confdefs.h <<_ACEOF
13369 #define HAVE_DECL_GETC_UNLOCKED 1
13370 _ACEOF
13373 else
13374 cat >>confdefs.h <<_ACEOF
13375 #define HAVE_DECL_GETC_UNLOCKED 0
13376 _ACEOF
13380 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
13381 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
13382 if test "${ac_cv_have_decl_snprintf+set}" = set; then
13383 echo $ECHO_N "(cached) $ECHO_C" >&6
13384 else
13385 cat >conftest.$ac_ext <<_ACEOF
13386 /* confdefs.h. */
13387 _ACEOF
13388 cat confdefs.h >>conftest.$ac_ext
13389 cat >>conftest.$ac_ext <<_ACEOF
13390 /* end confdefs.h. */
13391 $ac_includes_default
13393 main ()
13395 #ifndef snprintf
13396 char *p = (char *) snprintf;
13397 #endif
13400 return 0;
13402 _ACEOF
13403 rm -f conftest.$ac_objext
13404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13405 (eval $ac_compile) 2>conftest.er1
13406 ac_status=$?
13407 grep -v '^ *+' conftest.er1 >conftest.err
13408 rm -f conftest.er1
13409 cat conftest.err >&5
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); } &&
13412 { ac_try='test -z "$ac_c_werror_flag"
13413 || test ! -s conftest.err'
13414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13415 (eval $ac_try) 2>&5
13416 ac_status=$?
13417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418 (exit $ac_status); }; } &&
13419 { ac_try='test -s conftest.$ac_objext'
13420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13421 (eval $ac_try) 2>&5
13422 ac_status=$?
13423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424 (exit $ac_status); }; }; then
13425 ac_cv_have_decl_snprintf=yes
13426 else
13427 echo "$as_me: failed program was:" >&5
13428 sed 's/^/| /' conftest.$ac_ext >&5
13430 ac_cv_have_decl_snprintf=no
13432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13434 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
13435 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
13436 if test $ac_cv_have_decl_snprintf = yes; then
13438 cat >>confdefs.h <<_ACEOF
13439 #define HAVE_DECL_SNPRINTF 1
13440 _ACEOF
13443 else
13444 cat >>confdefs.h <<_ACEOF
13445 #define HAVE_DECL_SNPRINTF 0
13446 _ACEOF
13450 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
13451 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
13452 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
13453 echo $ECHO_N "(cached) $ECHO_C" >&6
13454 else
13455 cat >conftest.$ac_ext <<_ACEOF
13456 /* confdefs.h. */
13457 _ACEOF
13458 cat confdefs.h >>conftest.$ac_ext
13459 cat >>conftest.$ac_ext <<_ACEOF
13460 /* end confdefs.h. */
13461 $ac_includes_default
13463 main ()
13465 #ifndef vsnprintf
13466 char *p = (char *) vsnprintf;
13467 #endif
13470 return 0;
13472 _ACEOF
13473 rm -f conftest.$ac_objext
13474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13475 (eval $ac_compile) 2>conftest.er1
13476 ac_status=$?
13477 grep -v '^ *+' conftest.er1 >conftest.err
13478 rm -f conftest.er1
13479 cat conftest.err >&5
13480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481 (exit $ac_status); } &&
13482 { ac_try='test -z "$ac_c_werror_flag"
13483 || test ! -s conftest.err'
13484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13485 (eval $ac_try) 2>&5
13486 ac_status=$?
13487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488 (exit $ac_status); }; } &&
13489 { ac_try='test -s conftest.$ac_objext'
13490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13491 (eval $ac_try) 2>&5
13492 ac_status=$?
13493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494 (exit $ac_status); }; }; then
13495 ac_cv_have_decl_vsnprintf=yes
13496 else
13497 echo "$as_me: failed program was:" >&5
13498 sed 's/^/| /' conftest.$ac_ext >&5
13500 ac_cv_have_decl_vsnprintf=no
13502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13504 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
13505 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
13506 if test $ac_cv_have_decl_vsnprintf = yes; then
13508 cat >>confdefs.h <<_ACEOF
13509 #define HAVE_DECL_VSNPRINTF 1
13510 _ACEOF
13513 else
13514 cat >>confdefs.h <<_ACEOF
13515 #define HAVE_DECL_VSNPRINTF 0
13516 _ACEOF
13524 case "${host}" in
13525 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
13527 cat >>confdefs.h <<\_ACEOF
13528 #define USE_BINARY_FOPEN 1
13529 _ACEOF
13531 esac
13533 # target-specific stuff:
13535 # Canonicalize the secondary target names.
13536 if test -n "$enable_targets"; then
13537 for targ in `echo $enable_targets | sed 's/,/ /g'`
13539 result=`$ac_config_sub $targ 2>/dev/null`
13540 if test -n "$result"; then
13541 canon_targets="$canon_targets $result"
13542 else
13543 # Allow targets that config.sub doesn't recognize, like "all".
13544 canon_targets="$canon_targets $targ"
13546 done
13549 if test "${ac_cv_header_iconv_h+set}" = set; then
13550 echo "$as_me:$LINENO: checking for iconv.h" >&5
13551 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
13552 if test "${ac_cv_header_iconv_h+set}" = set; then
13553 echo $ECHO_N "(cached) $ECHO_C" >&6
13555 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
13556 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
13557 else
13558 # Is the header compilable?
13559 echo "$as_me:$LINENO: checking iconv.h usability" >&5
13560 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
13561 cat >conftest.$ac_ext <<_ACEOF
13562 /* confdefs.h. */
13563 _ACEOF
13564 cat confdefs.h >>conftest.$ac_ext
13565 cat >>conftest.$ac_ext <<_ACEOF
13566 /* end confdefs.h. */
13567 $ac_includes_default
13568 #include <iconv.h>
13569 _ACEOF
13570 rm -f conftest.$ac_objext
13571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13572 (eval $ac_compile) 2>conftest.er1
13573 ac_status=$?
13574 grep -v '^ *+' conftest.er1 >conftest.err
13575 rm -f conftest.er1
13576 cat conftest.err >&5
13577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578 (exit $ac_status); } &&
13579 { ac_try='test -z "$ac_c_werror_flag"
13580 || test ! -s conftest.err'
13581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13582 (eval $ac_try) 2>&5
13583 ac_status=$?
13584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585 (exit $ac_status); }; } &&
13586 { ac_try='test -s conftest.$ac_objext'
13587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13588 (eval $ac_try) 2>&5
13589 ac_status=$?
13590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591 (exit $ac_status); }; }; then
13592 ac_header_compiler=yes
13593 else
13594 echo "$as_me: failed program was:" >&5
13595 sed 's/^/| /' conftest.$ac_ext >&5
13597 ac_header_compiler=no
13599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13600 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13601 echo "${ECHO_T}$ac_header_compiler" >&6
13603 # Is the header present?
13604 echo "$as_me:$LINENO: checking iconv.h presence" >&5
13605 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
13606 cat >conftest.$ac_ext <<_ACEOF
13607 /* confdefs.h. */
13608 _ACEOF
13609 cat confdefs.h >>conftest.$ac_ext
13610 cat >>conftest.$ac_ext <<_ACEOF
13611 /* end confdefs.h. */
13612 #include <iconv.h>
13613 _ACEOF
13614 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13615 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13616 ac_status=$?
13617 grep -v '^ *+' conftest.er1 >conftest.err
13618 rm -f conftest.er1
13619 cat conftest.err >&5
13620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621 (exit $ac_status); } >/dev/null; then
13622 if test -s conftest.err; then
13623 ac_cpp_err=$ac_c_preproc_warn_flag
13624 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13625 else
13626 ac_cpp_err=
13628 else
13629 ac_cpp_err=yes
13631 if test -z "$ac_cpp_err"; then
13632 ac_header_preproc=yes
13633 else
13634 echo "$as_me: failed program was:" >&5
13635 sed 's/^/| /' conftest.$ac_ext >&5
13637 ac_header_preproc=no
13639 rm -f conftest.err conftest.$ac_ext
13640 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13641 echo "${ECHO_T}$ac_header_preproc" >&6
13643 # So? What about this header?
13644 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13645 yes:no: )
13646 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
13647 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13648 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
13649 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
13650 ac_header_preproc=yes
13652 no:yes:* )
13653 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
13654 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
13655 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
13656 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
13657 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
13658 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
13659 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
13660 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
13661 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
13662 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
13663 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
13664 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
13666 cat <<\_ASBOX
13667 ## ------------------------------------------ ##
13668 ## Report this to the AC_PACKAGE_NAME lists. ##
13669 ## ------------------------------------------ ##
13670 _ASBOX
13672 sed "s/^/$as_me: WARNING: /" >&2
13674 esac
13675 echo "$as_me:$LINENO: checking for iconv.h" >&5
13676 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
13677 if test "${ac_cv_header_iconv_h+set}" = set; then
13678 echo $ECHO_N "(cached) $ECHO_C" >&6
13679 else
13680 ac_cv_header_iconv_h=$ac_header_preproc
13682 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
13683 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
13689 if test "X$prefix" = "XNONE"; then
13690 acl_final_prefix="$ac_default_prefix"
13691 else
13692 acl_final_prefix="$prefix"
13694 if test "X$exec_prefix" = "XNONE"; then
13695 acl_final_exec_prefix='${prefix}'
13696 else
13697 acl_final_exec_prefix="$exec_prefix"
13699 acl_save_prefix="$prefix"
13700 prefix="$acl_final_prefix"
13701 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13702 prefix="$acl_save_prefix"
13705 # Check whether --with-gnu-ld or --without-gnu-ld was given.
13706 if test "${with_gnu_ld+set}" = set; then
13707 withval="$with_gnu_ld"
13708 test "$withval" = no || with_gnu_ld=yes
13709 else
13710 with_gnu_ld=no
13712 # Prepare PATH_SEPARATOR.
13713 # The user is always right.
13714 if test "${PATH_SEPARATOR+set}" != set; then
13715 echo "#! /bin/sh" >conf$$.sh
13716 echo "exit 0" >>conf$$.sh
13717 chmod +x conf$$.sh
13718 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13719 PATH_SEPARATOR=';'
13720 else
13721 PATH_SEPARATOR=:
13723 rm -f conf$$.sh
13725 ac_prog=ld
13726 if test "$GCC" = yes; then
13727 # Check if gcc -print-prog-name=ld gives a path.
13728 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
13729 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
13730 case $host in
13731 *-*-mingw*)
13732 # gcc leaves a trailing carriage return which upsets mingw
13733 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13735 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13736 esac
13737 case $ac_prog in
13738 # Accept absolute paths.
13739 [\\/]* | [A-Za-z]:[\\/]*)
13740 re_direlt='/[^/][^/]*/\.\./'
13741 # Canonicalize the path of ld
13742 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13743 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13744 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13745 done
13746 test -z "$LD" && LD="$ac_prog"
13749 # If it fails, then pretend we aren't using GCC.
13750 ac_prog=ld
13753 # If it is relative, then search for the first ld in PATH.
13754 with_gnu_ld=unknown
13756 esac
13757 elif test "$with_gnu_ld" = yes; then
13758 echo "$as_me:$LINENO: checking for GNU ld" >&5
13759 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
13760 else
13761 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13762 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
13764 if test "${acl_cv_path_LD+set}" = set; then
13765 echo $ECHO_N "(cached) $ECHO_C" >&6
13766 else
13767 if test -z "$LD"; then
13768 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13769 for ac_dir in $PATH; do
13770 test -z "$ac_dir" && ac_dir=.
13771 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13772 acl_cv_path_LD="$ac_dir/$ac_prog"
13773 # Check to see if the program is GNU ld. I'd rather use --version,
13774 # but apparently some GNU ld's only accept -v.
13775 # Break only if it was the GNU/non-GNU ld that we prefer.
13776 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
13777 test "$with_gnu_ld" != no && break
13778 else
13779 test "$with_gnu_ld" != yes && break
13782 done
13783 IFS="$ac_save_ifs"
13784 else
13785 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13789 LD="$acl_cv_path_LD"
13790 if test -n "$LD"; then
13791 echo "$as_me:$LINENO: result: $LD" >&5
13792 echo "${ECHO_T}$LD" >&6
13793 else
13794 echo "$as_me:$LINENO: result: no" >&5
13795 echo "${ECHO_T}no" >&6
13797 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13798 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13799 { (exit 1); exit 1; }; }
13800 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13801 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
13802 if test "${acl_cv_prog_gnu_ld+set}" = set; then
13803 echo $ECHO_N "(cached) $ECHO_C" >&6
13804 else
13805 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13806 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
13807 acl_cv_prog_gnu_ld=yes
13808 else
13809 acl_cv_prog_gnu_ld=no
13812 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
13813 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
13814 with_gnu_ld=$acl_cv_prog_gnu_ld
13818 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
13819 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
13820 if test "${acl_cv_rpath+set}" = set; then
13821 echo $ECHO_N "(cached) $ECHO_C" >&6
13822 else
13824 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13825 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13826 . ./conftest.sh
13827 rm -f ./conftest.sh
13828 acl_cv_rpath=done
13831 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
13832 echo "${ECHO_T}$acl_cv_rpath" >&6
13833 wl="$acl_cv_wl"
13834 libext="$acl_cv_libext"
13835 shlibext="$acl_cv_shlibext"
13836 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13837 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13838 hardcode_direct="$acl_cv_hardcode_direct"
13839 hardcode_minus_L="$acl_cv_hardcode_minus_L"
13840 # Check whether --enable-rpath or --disable-rpath was given.
13841 if test "${enable_rpath+set}" = set; then
13842 enableval="$enable_rpath"
13844 else
13845 enable_rpath=yes
13854 use_additional=yes
13856 acl_save_prefix="$prefix"
13857 prefix="$acl_final_prefix"
13858 acl_save_exec_prefix="$exec_prefix"
13859 exec_prefix="$acl_final_exec_prefix"
13861 eval additional_includedir=\"$includedir\"
13862 eval additional_libdir=\"$libdir\"
13864 exec_prefix="$acl_save_exec_prefix"
13865 prefix="$acl_save_prefix"
13868 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
13869 if test "${with_libiconv_prefix+set}" = set; then
13870 withval="$with_libiconv_prefix"
13872 if test "X$withval" = "Xno"; then
13873 use_additional=no
13874 else
13875 if test "X$withval" = "X"; then
13877 acl_save_prefix="$prefix"
13878 prefix="$acl_final_prefix"
13879 acl_save_exec_prefix="$exec_prefix"
13880 exec_prefix="$acl_final_exec_prefix"
13882 eval additional_includedir=\"$includedir\"
13883 eval additional_libdir=\"$libdir\"
13885 exec_prefix="$acl_save_exec_prefix"
13886 prefix="$acl_save_prefix"
13888 else
13889 additional_includedir="$withval/include"
13890 additional_libdir="$withval/lib"
13895 LIBICONV=
13896 LTLIBICONV=
13897 INCICONV=
13898 rpathdirs=
13899 ltrpathdirs=
13900 names_already_handled=
13901 names_next_round='iconv '
13902 while test -n "$names_next_round"; do
13903 names_this_round="$names_next_round"
13904 names_next_round=
13905 for name in $names_this_round; do
13906 already_handled=
13907 for n in $names_already_handled; do
13908 if test "$n" = "$name"; then
13909 already_handled=yes
13910 break
13912 done
13913 if test -z "$already_handled"; then
13914 names_already_handled="$names_already_handled $name"
13915 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13916 eval value=\"\$HAVE_LIB$uppername\"
13917 if test -n "$value"; then
13918 if test "$value" = yes; then
13919 eval value=\"\$LIB$uppername\"
13920 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13921 eval value=\"\$LTLIB$uppername\"
13922 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13923 else
13926 else
13927 found_dir=
13928 found_la=
13929 found_so=
13930 found_a=
13931 if test $use_additional = yes; then
13932 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13933 found_dir="$additional_libdir"
13934 found_so="$additional_libdir/lib$name.$shlibext"
13935 if test -f "$additional_libdir/lib$name.la"; then
13936 found_la="$additional_libdir/lib$name.la"
13938 else
13939 if test -f "$additional_libdir/lib$name.$libext"; then
13940 found_dir="$additional_libdir"
13941 found_a="$additional_libdir/lib$name.$libext"
13942 if test -f "$additional_libdir/lib$name.la"; then
13943 found_la="$additional_libdir/lib$name.la"
13948 if test "X$found_dir" = "X"; then
13949 for x in $LDFLAGS $LTLIBICONV; do
13951 acl_save_prefix="$prefix"
13952 prefix="$acl_final_prefix"
13953 acl_save_exec_prefix="$exec_prefix"
13954 exec_prefix="$acl_final_exec_prefix"
13955 eval x=\"$x\"
13956 exec_prefix="$acl_save_exec_prefix"
13957 prefix="$acl_save_prefix"
13959 case "$x" in
13960 -L*)
13961 dir=`echo "X$x" | sed -e 's/^X-L//'`
13962 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13963 found_dir="$dir"
13964 found_so="$dir/lib$name.$shlibext"
13965 if test -f "$dir/lib$name.la"; then
13966 found_la="$dir/lib$name.la"
13968 else
13969 if test -f "$dir/lib$name.$libext"; then
13970 found_dir="$dir"
13971 found_a="$dir/lib$name.$libext"
13972 if test -f "$dir/lib$name.la"; then
13973 found_la="$dir/lib$name.la"
13978 esac
13979 if test "X$found_dir" != "X"; then
13980 break
13982 done
13984 if test "X$found_dir" != "X"; then
13985 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13986 if test "X$found_so" != "X"; then
13987 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
13988 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13989 else
13990 haveit=
13991 for x in $ltrpathdirs; do
13992 if test "X$x" = "X$found_dir"; then
13993 haveit=yes
13994 break
13996 done
13997 if test -z "$haveit"; then
13998 ltrpathdirs="$ltrpathdirs $found_dir"
14000 if test "$hardcode_direct" = yes; then
14001 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14002 else
14003 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14004 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14005 haveit=
14006 for x in $rpathdirs; do
14007 if test "X$x" = "X$found_dir"; then
14008 haveit=yes
14009 break
14011 done
14012 if test -z "$haveit"; then
14013 rpathdirs="$rpathdirs $found_dir"
14015 else
14016 haveit=
14017 for x in $LDFLAGS $LIBICONV; do
14019 acl_save_prefix="$prefix"
14020 prefix="$acl_final_prefix"
14021 acl_save_exec_prefix="$exec_prefix"
14022 exec_prefix="$acl_final_exec_prefix"
14023 eval x=\"$x\"
14024 exec_prefix="$acl_save_exec_prefix"
14025 prefix="$acl_save_prefix"
14027 if test "X$x" = "X-L$found_dir"; then
14028 haveit=yes
14029 break
14031 done
14032 if test -z "$haveit"; then
14033 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14035 if test "$hardcode_minus_L" != no; then
14036 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14037 else
14038 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14043 else
14044 if test "X$found_a" != "X"; then
14045 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14046 else
14047 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14050 additional_includedir=
14051 case "$found_dir" in
14052 */lib | */lib/)
14053 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14054 additional_includedir="$basedir/include"
14056 esac
14057 if test "X$additional_includedir" != "X"; then
14058 if test "X$additional_includedir" != "X/usr/include"; then
14059 haveit=
14060 if test "X$additional_includedir" = "X/usr/local/include"; then
14061 if test -n "$GCC"; then
14062 case $host_os in
14063 linux*) haveit=yes;;
14064 esac
14067 if test -z "$haveit"; then
14068 for x in $CPPFLAGS $INCICONV; do
14070 acl_save_prefix="$prefix"
14071 prefix="$acl_final_prefix"
14072 acl_save_exec_prefix="$exec_prefix"
14073 exec_prefix="$acl_final_exec_prefix"
14074 eval x=\"$x\"
14075 exec_prefix="$acl_save_exec_prefix"
14076 prefix="$acl_save_prefix"
14078 if test "X$x" = "X-I$additional_includedir"; then
14079 haveit=yes
14080 break
14082 done
14083 if test -z "$haveit"; then
14084 if test -d "$additional_includedir"; then
14085 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14091 if test -n "$found_la"; then
14092 save_libdir="$libdir"
14093 case "$found_la" in
14094 */* | *\\*) . "$found_la" ;;
14095 *) . "./$found_la" ;;
14096 esac
14097 libdir="$save_libdir"
14098 for dep in $dependency_libs; do
14099 case "$dep" in
14100 -L*)
14101 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14102 if test "X$additional_libdir" != "X/usr/lib"; then
14103 haveit=
14104 if test "X$additional_libdir" = "X/usr/local/lib"; then
14105 if test -n "$GCC"; then
14106 case $host_os in
14107 linux*) haveit=yes;;
14108 esac
14111 if test -z "$haveit"; then
14112 haveit=
14113 for x in $LDFLAGS $LIBICONV; do
14115 acl_save_prefix="$prefix"
14116 prefix="$acl_final_prefix"
14117 acl_save_exec_prefix="$exec_prefix"
14118 exec_prefix="$acl_final_exec_prefix"
14119 eval x=\"$x\"
14120 exec_prefix="$acl_save_exec_prefix"
14121 prefix="$acl_save_prefix"
14123 if test "X$x" = "X-L$additional_libdir"; then
14124 haveit=yes
14125 break
14127 done
14128 if test -z "$haveit"; then
14129 if test -d "$additional_libdir"; then
14130 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14133 haveit=
14134 for x in $LDFLAGS $LTLIBICONV; do
14136 acl_save_prefix="$prefix"
14137 prefix="$acl_final_prefix"
14138 acl_save_exec_prefix="$exec_prefix"
14139 exec_prefix="$acl_final_exec_prefix"
14140 eval x=\"$x\"
14141 exec_prefix="$acl_save_exec_prefix"
14142 prefix="$acl_save_prefix"
14144 if test "X$x" = "X-L$additional_libdir"; then
14145 haveit=yes
14146 break
14148 done
14149 if test -z "$haveit"; then
14150 if test -d "$additional_libdir"; then
14151 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14157 -R*)
14158 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14159 if test "$enable_rpath" != no; then
14160 haveit=
14161 for x in $rpathdirs; do
14162 if test "X$x" = "X$dir"; then
14163 haveit=yes
14164 break
14166 done
14167 if test -z "$haveit"; then
14168 rpathdirs="$rpathdirs $dir"
14170 haveit=
14171 for x in $ltrpathdirs; do
14172 if test "X$x" = "X$dir"; then
14173 haveit=yes
14174 break
14176 done
14177 if test -z "$haveit"; then
14178 ltrpathdirs="$ltrpathdirs $dir"
14182 -l*)
14183 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14185 *.la)
14186 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14189 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14190 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14192 esac
14193 done
14195 else
14196 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14197 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14201 done
14202 done
14203 if test "X$rpathdirs" != "X"; then
14204 if test -n "$hardcode_libdir_separator"; then
14205 alldirs=
14206 for found_dir in $rpathdirs; do
14207 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14208 done
14209 acl_save_libdir="$libdir"
14210 libdir="$alldirs"
14211 eval flag=\"$hardcode_libdir_flag_spec\"
14212 libdir="$acl_save_libdir"
14213 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14214 else
14215 for found_dir in $rpathdirs; do
14216 acl_save_libdir="$libdir"
14217 libdir="$found_dir"
14218 eval flag=\"$hardcode_libdir_flag_spec\"
14219 libdir="$acl_save_libdir"
14220 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14221 done
14224 if test "X$ltrpathdirs" != "X"; then
14225 for found_dir in $ltrpathdirs; do
14226 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14227 done
14236 am_save_CPPFLAGS="$CPPFLAGS"
14238 for element in $INCICONV; do
14239 haveit=
14240 for x in $CPPFLAGS; do
14242 acl_save_prefix="$prefix"
14243 prefix="$acl_final_prefix"
14244 acl_save_exec_prefix="$exec_prefix"
14245 exec_prefix="$acl_final_exec_prefix"
14246 eval x=\"$x\"
14247 exec_prefix="$acl_save_exec_prefix"
14248 prefix="$acl_save_prefix"
14250 if test "X$x" = "X$element"; then
14251 haveit=yes
14252 break
14254 done
14255 if test -z "$haveit"; then
14256 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14258 done
14261 echo "$as_me:$LINENO: checking for iconv" >&5
14262 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
14263 if test "${am_cv_func_iconv+set}" = set; then
14264 echo $ECHO_N "(cached) $ECHO_C" >&6
14265 else
14267 am_cv_func_iconv="no, consider installing GNU libiconv"
14268 am_cv_lib_iconv=no
14269 cat >conftest.$ac_ext <<_ACEOF
14270 /* confdefs.h. */
14271 _ACEOF
14272 cat confdefs.h >>conftest.$ac_ext
14273 cat >>conftest.$ac_ext <<_ACEOF
14274 /* end confdefs.h. */
14275 #include <stdlib.h>
14276 #include <iconv.h>
14278 main ()
14280 iconv_t cd = iconv_open("","");
14281 iconv(cd,NULL,NULL,NULL,NULL);
14282 iconv_close(cd);
14284 return 0;
14286 _ACEOF
14287 rm -f conftest.$ac_objext conftest$ac_exeext
14288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14289 (eval $ac_link) 2>conftest.er1
14290 ac_status=$?
14291 grep -v '^ *+' conftest.er1 >conftest.err
14292 rm -f conftest.er1
14293 cat conftest.err >&5
14294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295 (exit $ac_status); } &&
14296 { ac_try='test -z "$ac_c_werror_flag"
14297 || test ! -s conftest.err'
14298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14299 (eval $ac_try) 2>&5
14300 ac_status=$?
14301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302 (exit $ac_status); }; } &&
14303 { ac_try='test -s conftest$ac_exeext'
14304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14305 (eval $ac_try) 2>&5
14306 ac_status=$?
14307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 (exit $ac_status); }; }; then
14309 am_cv_func_iconv=yes
14310 else
14311 echo "$as_me: failed program was:" >&5
14312 sed 's/^/| /' conftest.$ac_ext >&5
14315 rm -f conftest.err conftest.$ac_objext \
14316 conftest$ac_exeext conftest.$ac_ext
14317 if test "$am_cv_func_iconv" != yes; then
14318 am_save_LIBS="$LIBS"
14319 LIBS="$LIBS $LIBICONV"
14320 cat >conftest.$ac_ext <<_ACEOF
14321 /* confdefs.h. */
14322 _ACEOF
14323 cat confdefs.h >>conftest.$ac_ext
14324 cat >>conftest.$ac_ext <<_ACEOF
14325 /* end confdefs.h. */
14326 #include <stdlib.h>
14327 #include <iconv.h>
14329 main ()
14331 iconv_t cd = iconv_open("","");
14332 iconv(cd,NULL,NULL,NULL,NULL);
14333 iconv_close(cd);
14335 return 0;
14337 _ACEOF
14338 rm -f conftest.$ac_objext conftest$ac_exeext
14339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14340 (eval $ac_link) 2>conftest.er1
14341 ac_status=$?
14342 grep -v '^ *+' conftest.er1 >conftest.err
14343 rm -f conftest.er1
14344 cat conftest.err >&5
14345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346 (exit $ac_status); } &&
14347 { ac_try='test -z "$ac_c_werror_flag"
14348 || test ! -s conftest.err'
14349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14350 (eval $ac_try) 2>&5
14351 ac_status=$?
14352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 (exit $ac_status); }; } &&
14354 { ac_try='test -s conftest$ac_exeext'
14355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14356 (eval $ac_try) 2>&5
14357 ac_status=$?
14358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359 (exit $ac_status); }; }; then
14360 am_cv_lib_iconv=yes
14361 am_cv_func_iconv=yes
14362 else
14363 echo "$as_me: failed program was:" >&5
14364 sed 's/^/| /' conftest.$ac_ext >&5
14367 rm -f conftest.err conftest.$ac_objext \
14368 conftest$ac_exeext conftest.$ac_ext
14369 LIBS="$am_save_LIBS"
14373 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
14374 echo "${ECHO_T}$am_cv_func_iconv" >&6
14375 if test "$am_cv_func_iconv" = yes; then
14377 cat >>confdefs.h <<\_ACEOF
14378 #define HAVE_ICONV 1
14379 _ACEOF
14382 if test "$am_cv_lib_iconv" = yes; then
14383 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
14384 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
14385 echo "$as_me:$LINENO: result: $LIBICONV" >&5
14386 echo "${ECHO_T}$LIBICONV" >&6
14387 else
14388 CPPFLAGS="$am_save_CPPFLAGS"
14389 LIBICONV=
14390 LTLIBICONV=
14395 if test "$am_cv_func_iconv" = yes; then
14396 echo "$as_me:$LINENO: checking for iconv declaration" >&5
14397 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
14398 if test "${am_cv_proto_iconv+set}" = set; then
14399 echo $ECHO_N "(cached) $ECHO_C" >&6
14400 else
14402 cat >conftest.$ac_ext <<_ACEOF
14403 /* confdefs.h. */
14404 _ACEOF
14405 cat confdefs.h >>conftest.$ac_ext
14406 cat >>conftest.$ac_ext <<_ACEOF
14407 /* end confdefs.h. */
14409 #include <stdlib.h>
14410 #include <iconv.h>
14411 extern
14412 #ifdef __cplusplus
14414 #endif
14415 #if defined(__STDC__) || defined(__cplusplus)
14416 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14417 #else
14418 size_t iconv();
14419 #endif
14422 main ()
14426 return 0;
14428 _ACEOF
14429 rm -f conftest.$ac_objext
14430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14431 (eval $ac_compile) 2>conftest.er1
14432 ac_status=$?
14433 grep -v '^ *+' conftest.er1 >conftest.err
14434 rm -f conftest.er1
14435 cat conftest.err >&5
14436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437 (exit $ac_status); } &&
14438 { ac_try='test -z "$ac_c_werror_flag"
14439 || test ! -s conftest.err'
14440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14441 (eval $ac_try) 2>&5
14442 ac_status=$?
14443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444 (exit $ac_status); }; } &&
14445 { ac_try='test -s conftest.$ac_objext'
14446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14447 (eval $ac_try) 2>&5
14448 ac_status=$?
14449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450 (exit $ac_status); }; }; then
14451 am_cv_proto_iconv_arg1=""
14452 else
14453 echo "$as_me: failed program was:" >&5
14454 sed 's/^/| /' conftest.$ac_ext >&5
14456 am_cv_proto_iconv_arg1="const"
14458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14459 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);"
14462 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
14463 echo "$as_me:$LINENO: result: ${ac_t:-
14464 }$am_cv_proto_iconv" >&5
14465 echo "${ECHO_T}${ac_t:-
14466 }$am_cv_proto_iconv" >&6
14468 cat >>confdefs.h <<_ACEOF
14469 #define ICONV_CONST $am_cv_proto_iconv_arg1
14470 _ACEOF
14475 all_targets=false
14476 BUILD_NLMCONV=
14477 NLMCONV_DEFS=
14478 BUILD_SRCONV=
14479 BUILD_DLLTOOL=
14480 DLLTOOL_DEFS=
14481 DLLTOOL_DEFAULT=
14482 BUILD_WINDRES=
14483 BUILD_WINDMC=
14484 BUILD_DLLWRAP=
14485 BUILD_MISC=
14486 BUILD_INSTALL_MISC=
14487 OBJDUMP_DEFS=
14489 for targ in $target $canon_targets
14491 if test "x$targ" = "xall"; then
14492 all_targets=true
14493 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
14494 BUILD_SRCONV='$(SRCONV_PROG)'
14495 NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
14496 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
14497 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14498 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14499 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14500 if test -z "$DLLTOOL_DEFAULT"; then
14501 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14503 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14504 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
14505 else
14506 case $targ in
14507 i[3-7]86*-*-netware*)
14508 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
14509 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
14511 alpha*-*-netware*)
14512 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
14513 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
14515 powerpc*-*-netware*)
14516 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
14517 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
14519 sparc*-*-netware*)
14520 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
14521 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
14523 esac
14524 case $targ in
14525 *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
14526 esac
14527 case $targ in
14528 arm-epoc-pe*)
14529 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14530 if test -z "$DLLTOOL_DEFAULT"; then
14531 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_EPOC"
14533 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
14534 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14535 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14537 arm-wince-pe* | arm-*-wince)
14538 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14539 if test -z "$DLLTOOL_DEFAULT"; then
14540 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
14542 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
14543 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14544 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14546 arm-*-pe*)
14547 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14548 if test -z "$DLLTOOL_DEFAULT"; then
14549 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
14551 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
14552 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14553 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14555 thumb-*-pe*)
14556 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14557 if test -z "$DLLTOOL_DEFAULT"; then
14558 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
14560 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
14561 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14562 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14564 x86_64-*-mingw*)
14565 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14566 if test -z "$DLLTOOL_DEFAULT"; then
14567 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
14569 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
14570 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14571 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14572 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
14574 i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
14575 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14576 if test -z "$DLLTOOL_DEFAULT"; then
14577 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14579 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14580 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14581 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14582 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
14584 i[3-7]86-*-interix)
14585 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
14586 if test -z "$DLLTOOL_DEFAULT"; then
14587 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14589 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14591 powerpc*-aix5.[01])
14593 powerpc*-aix5.*)
14594 OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
14596 powerpc*-*-pe* | powerpc*-*-cygwin*)
14597 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14598 if test -z "$DLLTOOL_DEFAULT"; then
14599 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_PPC"
14601 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
14602 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14603 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14605 powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*)
14606 BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu"
14608 sh*-*-pe)
14609 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14610 if test -z "$DLLTOOL_DEFAULT"; then
14611 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
14613 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
14614 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14615 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14617 spu-*-*)
14618 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
14620 mips*-*-pe)
14621 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14622 if test -z "$DLLTOOL_DEFAULT"; then
14623 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS"
14625 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
14626 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14627 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14629 mcore-*-pe)
14630 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14631 if test -z "$DLLTOOL_DEFAULT"; then
14632 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
14634 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
14635 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14636 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14638 mcore-*-elf)
14639 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14640 if test -z "$DLLTOOL_DEFAULT"; then
14641 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
14643 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
14645 mep-*)
14646 OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
14648 esac
14650 done
14652 DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
14654 if test "${with_windres+set}" = set; then
14655 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14658 if test "${with_windmc+set}" = set; then
14659 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14675 cat >>confdefs.h <<_ACEOF
14676 #define TARGET "${target}"
14677 _ACEOF
14680 targ=$target
14681 . $srcdir/../bfd/config.bfd
14682 if test "x$targ_underscore" = "xyes"; then
14683 UNDERSCORE=1
14684 else
14685 UNDERSCORE=0
14688 cat >>confdefs.h <<_ACEOF
14689 #define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
14690 _ACEOF
14693 # Emulation
14694 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
14696 # Canonicalize the secondary target names.
14697 result=`$ac_config_sub $targ_alias 2>/dev/null`
14698 if test -n "$result"; then
14699 targ=$result
14700 else
14701 targ=$targ_alias
14704 . ${srcdir}/configure.tgt
14706 EMULATION=$targ_emul
14707 EMULATION_VECTOR=$targ_emul_vector
14708 done
14713 # Required for html and install-html
14718 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
14719 cat >confcache <<\_ACEOF
14720 # This file is a shell script that caches the results of configure
14721 # tests run on this system so they can be shared between configure
14722 # scripts and configure runs, see configure's option --config-cache.
14723 # It is not useful on other systems. If it contains results you don't
14724 # want to keep, you may remove or edit it.
14726 # config.status only pays attention to the cache file if you give it
14727 # the --recheck option to rerun configure.
14729 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14730 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14731 # following values.
14733 _ACEOF
14735 # The following way of writing the cache mishandles newlines in values,
14736 # but we know of no workaround that is simple, portable, and efficient.
14737 # So, don't put newlines in cache variables' values.
14738 # Ultrix sh set writes to stderr and can't be redirected directly,
14739 # and sets the high bit in the cache file unless we assign to the vars.
14741 (set) 2>&1 |
14742 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14743 *ac_space=\ *)
14744 # `set' does not quote correctly, so add quotes (double-quote
14745 # substitution turns \\\\ into \\, and sed turns \\ into \).
14746 sed -n \
14747 "s/'/'\\\\''/g;
14748 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14751 # `set' quotes correctly as required by POSIX, so do not add quotes.
14752 sed -n \
14753 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14755 esac;
14757 sed '
14758 t clear
14759 : clear
14760 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14761 t end
14762 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14763 : end' >>confcache
14764 if diff $cache_file confcache >/dev/null 2>&1; then :; else
14765 if test -w $cache_file; then
14766 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14767 cat confcache >$cache_file
14768 else
14769 echo "not updating unwritable cache $cache_file"
14772 rm -f confcache
14774 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14775 # Let make expand exec_prefix.
14776 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14778 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14779 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14780 # trailing colons and then remove the whole line if VPATH becomes empty
14781 # (actually we leave an empty line to preserve line numbers).
14782 if test "x$srcdir" = x.; then
14783 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14784 s/:*\$(srcdir):*/:/;
14785 s/:*\${srcdir}:*/:/;
14786 s/:*@srcdir@:*/:/;
14787 s/^\([^=]*=[ ]*\):*/\1/;
14788 s/:*$//;
14789 s/^[^=]*=[ ]*$//;
14793 DEFS=-DHAVE_CONFIG_H
14795 ac_libobjs=
14796 ac_ltlibobjs=
14797 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14798 # 1. Remove the extension, and $U if already installed.
14799 ac_i=`echo "$ac_i" |
14800 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14801 # 2. Add them.
14802 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
14803 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
14804 done
14805 LIBOBJS=$ac_libobjs
14807 LTLIBOBJS=$ac_ltlibobjs
14810 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14811 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14812 Usually this means the macro was only invoked conditionally." >&5
14813 echo "$as_me: error: conditional \"AMDEP\" was never defined.
14814 Usually this means the macro was only invoked conditionally." >&2;}
14815 { (exit 1); exit 1; }; }
14817 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14818 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14819 Usually this means the macro was only invoked conditionally." >&5
14820 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14821 Usually this means the macro was only invoked conditionally." >&2;}
14822 { (exit 1); exit 1; }; }
14824 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14825 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
14826 Usually this means the macro was only invoked conditionally." >&5
14827 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
14828 Usually this means the macro was only invoked conditionally." >&2;}
14829 { (exit 1); exit 1; }; }
14831 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
14832 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
14833 Usually this means the macro was only invoked conditionally." >&5
14834 echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
14835 Usually this means the macro was only invoked conditionally." >&2;}
14836 { (exit 1); exit 1; }; }
14839 : ${CONFIG_STATUS=./config.status}
14840 ac_clean_files_save=$ac_clean_files
14841 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14842 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14843 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14844 cat >$CONFIG_STATUS <<_ACEOF
14845 #! $SHELL
14846 # Generated by $as_me.
14847 # Run this file to recreate the current configuration.
14848 # Compiler output produced by configure, useful for debugging
14849 # configure, is in config.log if it exists.
14851 debug=false
14852 ac_cs_recheck=false
14853 ac_cs_silent=false
14854 SHELL=\${CONFIG_SHELL-$SHELL}
14855 _ACEOF
14857 cat >>$CONFIG_STATUS <<\_ACEOF
14858 ## --------------------- ##
14859 ## M4sh Initialization. ##
14860 ## --------------------- ##
14862 # Be Bourne compatible
14863 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14864 emulate sh
14865 NULLCMD=:
14866 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14867 # is contrary to our usage. Disable this feature.
14868 alias -g '${1+"$@"}'='"$@"'
14869 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14870 set -o posix
14872 DUALCASE=1; export DUALCASE # for MKS sh
14874 # Support unset when possible.
14875 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14876 as_unset=unset
14877 else
14878 as_unset=false
14882 # Work around bugs in pre-3.0 UWIN ksh.
14883 $as_unset ENV MAIL MAILPATH
14884 PS1='$ '
14885 PS2='> '
14886 PS4='+ '
14888 # NLS nuisances.
14889 for as_var in \
14890 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14891 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14892 LC_TELEPHONE LC_TIME
14894 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14895 eval $as_var=C; export $as_var
14896 else
14897 $as_unset $as_var
14899 done
14901 # Required to use basename.
14902 if expr a : '\(a\)' >/dev/null 2>&1; then
14903 as_expr=expr
14904 else
14905 as_expr=false
14908 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14909 as_basename=basename
14910 else
14911 as_basename=false
14915 # Name of the executable.
14916 as_me=`$as_basename "$0" ||
14917 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14918 X"$0" : 'X\(//\)$' \| \
14919 X"$0" : 'X\(/\)$' \| \
14920 . : '\(.\)' 2>/dev/null ||
14921 echo X/"$0" |
14922 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14923 /^X\/\(\/\/\)$/{ s//\1/; q; }
14924 /^X\/\(\/\).*/{ s//\1/; q; }
14925 s/.*/./; q'`
14928 # PATH needs CR, and LINENO needs CR and PATH.
14929 # Avoid depending upon Character Ranges.
14930 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14931 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14932 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14933 as_cr_digits='0123456789'
14934 as_cr_alnum=$as_cr_Letters$as_cr_digits
14936 # The user is always right.
14937 if test "${PATH_SEPARATOR+set}" != set; then
14938 echo "#! /bin/sh" >conf$$.sh
14939 echo "exit 0" >>conf$$.sh
14940 chmod +x conf$$.sh
14941 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14942 PATH_SEPARATOR=';'
14943 else
14944 PATH_SEPARATOR=:
14946 rm -f conf$$.sh
14950 as_lineno_1=$LINENO
14951 as_lineno_2=$LINENO
14952 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14953 test "x$as_lineno_1" != "x$as_lineno_2" &&
14954 test "x$as_lineno_3" = "x$as_lineno_2" || {
14955 # Find who we are. Look in the path if we contain no path at all
14956 # relative or not.
14957 case $0 in
14958 *[\\/]* ) as_myself=$0 ;;
14959 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14960 for as_dir in $PATH
14962 IFS=$as_save_IFS
14963 test -z "$as_dir" && as_dir=.
14964 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14965 done
14968 esac
14969 # We did not find ourselves, most probably we were run as `sh COMMAND'
14970 # in which case we are not to be found in the path.
14971 if test "x$as_myself" = x; then
14972 as_myself=$0
14974 if test ! -f "$as_myself"; then
14975 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14976 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14977 { (exit 1); exit 1; }; }
14979 case $CONFIG_SHELL in
14981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14982 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14984 IFS=$as_save_IFS
14985 test -z "$as_dir" && as_dir=.
14986 for as_base in sh bash ksh sh5; do
14987 case $as_dir in
14989 if ("$as_dir/$as_base" -c '
14990 as_lineno_1=$LINENO
14991 as_lineno_2=$LINENO
14992 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14993 test "x$as_lineno_1" != "x$as_lineno_2" &&
14994 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14995 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14996 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14997 CONFIG_SHELL=$as_dir/$as_base
14998 export CONFIG_SHELL
14999 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15000 fi;;
15001 esac
15002 done
15003 done
15005 esac
15007 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15008 # uniformly replaced by the line number. The first 'sed' inserts a
15009 # line-number line before each line; the second 'sed' does the real
15010 # work. The second script uses 'N' to pair each line-number line
15011 # with the numbered line, and appends trailing '-' during
15012 # substitution so that $LINENO is not a special case at line end.
15013 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15014 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15015 sed '=' <$as_myself |
15016 sed '
15018 s,$,-,
15019 : loop
15020 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15021 t loop
15022 s,-$,,
15023 s,^['$as_cr_digits']*\n,,
15024 ' >$as_me.lineno &&
15025 chmod +x $as_me.lineno ||
15026 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15027 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15028 { (exit 1); exit 1; }; }
15030 # Don't try to exec as it changes $[0], causing all sort of problems
15031 # (the dirname of $[0] is not the place where we might find the
15032 # original and so on. Autoconf is especially sensible to this).
15033 . ./$as_me.lineno
15034 # Exit status is that of the last command.
15035 exit
15039 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15040 *c*,-n*) ECHO_N= ECHO_C='
15041 ' ECHO_T=' ' ;;
15042 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15043 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15044 esac
15046 if expr a : '\(a\)' >/dev/null 2>&1; then
15047 as_expr=expr
15048 else
15049 as_expr=false
15052 rm -f conf$$ conf$$.exe conf$$.file
15053 echo >conf$$.file
15054 if ln -s conf$$.file conf$$ 2>/dev/null; then
15055 # We could just check for DJGPP; but this test a) works b) is more generic
15056 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15057 if test -f conf$$.exe; then
15058 # Don't use ln at all; we don't have any links
15059 as_ln_s='cp -p'
15060 else
15061 as_ln_s='ln -s'
15063 elif ln conf$$.file conf$$ 2>/dev/null; then
15064 as_ln_s=ln
15065 else
15066 as_ln_s='cp -p'
15068 rm -f conf$$ conf$$.exe conf$$.file
15070 if mkdir -p . 2>/dev/null; then
15071 as_mkdir_p=:
15072 else
15073 test -d ./-p && rmdir ./-p
15074 as_mkdir_p=false
15077 as_executable_p="test -f"
15079 # Sed expression to map a string onto a valid CPP name.
15080 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15082 # Sed expression to map a string onto a valid variable name.
15083 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15086 # IFS
15087 # We need space, tab and new line, in precisely that order.
15088 as_nl='
15090 IFS=" $as_nl"
15092 # CDPATH.
15093 $as_unset CDPATH
15095 exec 6>&1
15097 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15098 # report actual input values of CONFIG_FILES etc. instead of their
15099 # values after options handling. Logging --version etc. is OK.
15100 exec 5>>config.log
15102 echo
15103 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15104 ## Running $as_me. ##
15105 _ASBOX
15106 } >&5
15107 cat >&5 <<_CSEOF
15109 This file was extended by $as_me, which was
15110 generated by GNU Autoconf 2.59. Invocation command line was
15112 CONFIG_FILES = $CONFIG_FILES
15113 CONFIG_HEADERS = $CONFIG_HEADERS
15114 CONFIG_LINKS = $CONFIG_LINKS
15115 CONFIG_COMMANDS = $CONFIG_COMMANDS
15116 $ $0 $@
15118 _CSEOF
15119 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15120 echo >&5
15121 _ACEOF
15123 # Files that config.status was made for.
15124 if test -n "$ac_config_files"; then
15125 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15128 if test -n "$ac_config_headers"; then
15129 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15132 if test -n "$ac_config_links"; then
15133 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15136 if test -n "$ac_config_commands"; then
15137 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15140 cat >>$CONFIG_STATUS <<\_ACEOF
15142 ac_cs_usage="\
15143 \`$as_me' instantiates files from templates according to the
15144 current configuration.
15146 Usage: $0 [OPTIONS] [FILE]...
15148 -h, --help print this help, then exit
15149 -V, --version print version number, then exit
15150 -q, --quiet do not print progress messages
15151 -d, --debug don't remove temporary files
15152 --recheck update $as_me by reconfiguring in the same conditions
15153 --file=FILE[:TEMPLATE]
15154 instantiate the configuration file FILE
15155 --header=FILE[:TEMPLATE]
15156 instantiate the configuration header FILE
15158 Configuration files:
15159 $config_files
15161 Configuration headers:
15162 $config_headers
15164 Configuration commands:
15165 $config_commands
15167 Report bugs to <bug-autoconf@gnu.org>."
15168 _ACEOF
15170 cat >>$CONFIG_STATUS <<_ACEOF
15171 ac_cs_version="\\
15172 config.status
15173 configured by $0, generated by GNU Autoconf 2.59,
15174 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15176 Copyright (C) 2003 Free Software Foundation, Inc.
15177 This config.status script is free software; the Free Software Foundation
15178 gives unlimited permission to copy, distribute and modify it."
15179 srcdir=$srcdir
15180 INSTALL="$INSTALL"
15181 _ACEOF
15183 cat >>$CONFIG_STATUS <<\_ACEOF
15184 # If no file are specified by the user, then we need to provide default
15185 # value. By we need to know if files were specified by the user.
15186 ac_need_defaults=:
15187 while test $# != 0
15189 case $1 in
15190 --*=*)
15191 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15192 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15193 ac_shift=:
15196 ac_option=$1
15197 ac_optarg=$2
15198 ac_shift=shift
15200 *) # This is not an option, so the user has probably given explicit
15201 # arguments.
15202 ac_option=$1
15203 ac_need_defaults=false;;
15204 esac
15206 case $ac_option in
15207 # Handling of the options.
15208 _ACEOF
15209 cat >>$CONFIG_STATUS <<\_ACEOF
15210 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15211 ac_cs_recheck=: ;;
15212 --version | --vers* | -V )
15213 echo "$ac_cs_version"; exit 0 ;;
15214 --he | --h)
15215 # Conflict between --help and --header
15216 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15217 Try \`$0 --help' for more information." >&5
15218 echo "$as_me: error: ambiguous option: $1
15219 Try \`$0 --help' for more information." >&2;}
15220 { (exit 1); exit 1; }; };;
15221 --help | --hel | -h )
15222 echo "$ac_cs_usage"; exit 0 ;;
15223 --debug | --d* | -d )
15224 debug=: ;;
15225 --file | --fil | --fi | --f )
15226 $ac_shift
15227 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15228 ac_need_defaults=false;;
15229 --header | --heade | --head | --hea )
15230 $ac_shift
15231 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15232 ac_need_defaults=false;;
15233 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15234 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15235 ac_cs_silent=: ;;
15237 # This is an error.
15238 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15239 Try \`$0 --help' for more information." >&5
15240 echo "$as_me: error: unrecognized option: $1
15241 Try \`$0 --help' for more information." >&2;}
15242 { (exit 1); exit 1; }; } ;;
15244 *) ac_config_targets="$ac_config_targets $1" ;;
15246 esac
15247 shift
15248 done
15250 ac_configure_extra_args=
15252 if $ac_cs_silent; then
15253 exec 6>/dev/null
15254 ac_configure_extra_args="$ac_configure_extra_args --silent"
15257 _ACEOF
15258 cat >>$CONFIG_STATUS <<_ACEOF
15259 if \$ac_cs_recheck; then
15260 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15261 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15264 _ACEOF
15266 cat >>$CONFIG_STATUS <<_ACEOF
15268 # INIT-COMMANDS section.
15271 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15274 # The HP-UX ksh and POSIX shell print the target directory to stdout
15275 # if CDPATH is set.
15276 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15278 sed_quote_subst='$sed_quote_subst'
15279 double_quote_subst='$double_quote_subst'
15280 delay_variable_subst='$delay_variable_subst'
15281 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15282 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15283 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15284 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15285 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15286 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15287 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15288 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15289 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15290 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15291 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15292 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15293 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15294 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15295 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15296 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15297 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15298 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15299 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15300 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15301 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15302 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15303 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15304 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15305 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15306 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15307 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15308 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15309 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15310 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15311 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15312 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15313 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15314 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15315 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15316 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15317 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15318 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15319 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15320 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15321 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15322 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15323 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15324 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"`'
15325 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15326 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15327 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15328 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15329 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15330 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15331 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15332 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15333 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15334 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15335 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15336 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15337 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15338 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15339 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15340 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15341 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15342 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15343 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15344 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15345 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15346 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15347 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15348 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15349 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15350 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15351 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15352 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15353 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15354 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15355 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15356 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15357 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15358 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15359 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15360 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15361 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15362 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15363 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15364 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15365 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15366 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15367 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15368 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15369 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15370 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15371 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15372 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15373 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15374 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15375 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15376 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15377 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15378 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15379 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15380 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15381 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15382 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15383 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15384 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15385 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15386 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15387 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15388 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15389 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15390 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15391 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15393 LTCC='$LTCC'
15394 LTCFLAGS='$LTCFLAGS'
15395 compiler='$compiler_DEFAULT'
15397 # Quote evaled strings.
15398 for var in SED \
15399 GREP \
15400 EGREP \
15401 FGREP \
15402 LD \
15403 NM \
15404 LN_S \
15405 lt_SP2NL \
15406 lt_NL2SP \
15407 reload_flag \
15408 deplibs_check_method \
15409 file_magic_cmd \
15410 AR \
15411 AR_FLAGS \
15412 STRIP \
15413 RANLIB \
15414 CC \
15415 CFLAGS \
15416 compiler \
15417 lt_cv_sys_global_symbol_pipe \
15418 lt_cv_sys_global_symbol_to_cdecl \
15419 lt_cv_sys_global_symbol_to_c_name_address \
15420 SHELL \
15421 ECHO \
15422 lt_prog_compiler_no_builtin_flag \
15423 lt_prog_compiler_wl \
15424 lt_prog_compiler_pic \
15425 lt_prog_compiler_static \
15426 lt_cv_prog_compiler_c_o \
15427 need_locks \
15428 shrext_cmds \
15429 export_dynamic_flag_spec \
15430 whole_archive_flag_spec \
15431 compiler_needs_object \
15432 with_gnu_ld \
15433 allow_undefined_flag \
15434 no_undefined_flag \
15435 hardcode_libdir_flag_spec \
15436 hardcode_libdir_flag_spec_ld \
15437 hardcode_libdir_separator \
15438 fix_srcfile_path \
15439 exclude_expsyms \
15440 include_expsyms \
15441 file_list_spec \
15442 variables_saved_for_relink \
15443 libname_spec \
15444 library_names_spec \
15445 soname_spec \
15446 finish_eval \
15447 old_striplib \
15448 striplib; do
15449 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15450 *[\\\\\\\`\\"\\\$]*)
15451 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15454 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15456 esac
15457 done
15459 # Double-quote double-evaled strings.
15460 for var in reload_cmds \
15461 old_postinstall_cmds \
15462 old_postuninstall_cmds \
15463 old_archive_cmds \
15464 extract_expsyms_cmds \
15465 old_archive_from_new_cmds \
15466 old_archive_from_expsyms_cmds \
15467 archive_cmds \
15468 archive_expsym_cmds \
15469 module_cmds \
15470 module_expsym_cmds \
15471 export_symbols_cmds \
15472 prelink_cmds \
15473 postinstall_cmds \
15474 postuninstall_cmds \
15475 finish_cmds \
15476 sys_lib_search_path_spec \
15477 sys_lib_dlsearch_path_spec; do
15478 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15479 *[\\\\\\\`\\"\\\$]*)
15480 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15483 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15485 esac
15486 done
15488 # Fix-up fallback echo if it was mangled by the above quoting rules.
15489 case \$lt_ECHO in
15490 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15492 esac
15494 ac_aux_dir='$ac_aux_dir'
15495 xsi_shell='$xsi_shell'
15496 lt_shell_append='$lt_shell_append'
15498 # See if we are running on zsh, and set the options which allow our
15499 # commands through without removal of \ escapes INIT.
15500 if test -n "\${ZSH_VERSION+set}" ; then
15501 setopt NO_GLOB_SUBST
15505 PACKAGE='$PACKAGE'
15506 VERSION='$VERSION'
15507 TIMESTAMP='$TIMESTAMP'
15508 RM='$RM'
15509 ofile='$ofile'
15513 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15514 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
15515 # from automake.
15516 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15517 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15518 LINGUAS="${LINGUAS-%UNSET%}"
15521 _ACEOF
15525 cat >>$CONFIG_STATUS <<\_ACEOF
15526 for ac_config_target in $ac_config_targets
15528 case "$ac_config_target" in
15529 # Handling of arguments.
15530 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15531 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15532 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
15533 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15534 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15535 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15536 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15537 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15538 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15539 { (exit 1); exit 1; }; };;
15540 esac
15541 done
15543 # If the user did not use the arguments to specify the items to instantiate,
15544 # then the envvar interface is used. Set only those that are not.
15545 # We use the long form for the default assignment because of an extremely
15546 # bizarre bug on SunOS 4.1.3.
15547 if $ac_need_defaults; then
15548 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15549 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15550 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15553 # Have a temporary directory for convenience. Make it in the build tree
15554 # simply because there is no reason to put it here, and in addition,
15555 # creating and moving files from /tmp can sometimes cause problems.
15556 # Create a temporary directory, and hook for its removal unless debugging.
15557 $debug ||
15559 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15560 trap '{ (exit 1); exit 1; }' 1 2 13 15
15563 # Create a (secure) tmp directory for tmp files.
15566 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15567 test -n "$tmp" && test -d "$tmp"
15568 } ||
15570 tmp=./confstat$$-$RANDOM
15571 (umask 077 && mkdir $tmp)
15572 } ||
15574 echo "$me: cannot create a temporary directory in ." >&2
15575 { (exit 1); exit 1; }
15578 _ACEOF
15580 cat >>$CONFIG_STATUS <<_ACEOF
15583 # CONFIG_FILES section.
15586 # No need to generate the scripts if there are no CONFIG_FILES.
15587 # This happens for instance when ./config.status config.h
15588 if test -n "\$CONFIG_FILES"; then
15589 # Protect against being on the right side of a sed subst in config.status.
15590 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15591 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15592 s,@SHELL@,$SHELL,;t t
15593 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15594 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15595 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15596 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15597 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15598 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15599 s,@exec_prefix@,$exec_prefix,;t t
15600 s,@prefix@,$prefix,;t t
15601 s,@program_transform_name@,$program_transform_name,;t t
15602 s,@bindir@,$bindir,;t t
15603 s,@sbindir@,$sbindir,;t t
15604 s,@libexecdir@,$libexecdir,;t t
15605 s,@datadir@,$datadir,;t t
15606 s,@sysconfdir@,$sysconfdir,;t t
15607 s,@sharedstatedir@,$sharedstatedir,;t t
15608 s,@localstatedir@,$localstatedir,;t t
15609 s,@libdir@,$libdir,;t t
15610 s,@includedir@,$includedir,;t t
15611 s,@oldincludedir@,$oldincludedir,;t t
15612 s,@infodir@,$infodir,;t t
15613 s,@mandir@,$mandir,;t t
15614 s,@build_alias@,$build_alias,;t t
15615 s,@host_alias@,$host_alias,;t t
15616 s,@target_alias@,$target_alias,;t t
15617 s,@DEFS@,$DEFS,;t t
15618 s,@ECHO_C@,$ECHO_C,;t t
15619 s,@ECHO_N@,$ECHO_N,;t t
15620 s,@ECHO_T@,$ECHO_T,;t t
15621 s,@LIBS@,$LIBS,;t t
15622 s,@build@,$build,;t t
15623 s,@build_cpu@,$build_cpu,;t t
15624 s,@build_vendor@,$build_vendor,;t t
15625 s,@build_os@,$build_os,;t t
15626 s,@host@,$host,;t t
15627 s,@host_cpu@,$host_cpu,;t t
15628 s,@host_vendor@,$host_vendor,;t t
15629 s,@host_os@,$host_os,;t t
15630 s,@target@,$target,;t t
15631 s,@target_cpu@,$target_cpu,;t t
15632 s,@target_vendor@,$target_vendor,;t t
15633 s,@target_os@,$target_os,;t t
15634 s,@CC@,$CC,;t t
15635 s,@CFLAGS@,$CFLAGS,;t t
15636 s,@LDFLAGS@,$LDFLAGS,;t t
15637 s,@CPPFLAGS@,$CPPFLAGS,;t t
15638 s,@ac_ct_CC@,$ac_ct_CC,;t t
15639 s,@EXEEXT@,$EXEEXT,;t t
15640 s,@OBJEXT@,$OBJEXT,;t t
15641 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15642 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15643 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15644 s,@CYGPATH_W@,$CYGPATH_W,;t t
15645 s,@PACKAGE@,$PACKAGE,;t t
15646 s,@VERSION@,$VERSION,;t t
15647 s,@ACLOCAL@,$ACLOCAL,;t t
15648 s,@AUTOCONF@,$AUTOCONF,;t t
15649 s,@AUTOMAKE@,$AUTOMAKE,;t t
15650 s,@AUTOHEADER@,$AUTOHEADER,;t t
15651 s,@MAKEINFO@,$MAKEINFO,;t t
15652 s,@install_sh@,$install_sh,;t t
15653 s,@STRIP@,$STRIP,;t t
15654 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15655 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
15656 s,@mkdir_p@,$mkdir_p,;t t
15657 s,@AWK@,$AWK,;t t
15658 s,@SET_MAKE@,$SET_MAKE,;t t
15659 s,@am__leading_dot@,$am__leading_dot,;t t
15660 s,@AMTAR@,$AMTAR,;t t
15661 s,@am__tar@,$am__tar,;t t
15662 s,@am__untar@,$am__untar,;t t
15663 s,@DEPDIR@,$DEPDIR,;t t
15664 s,@am__include@,$am__include,;t t
15665 s,@am__quote@,$am__quote,;t t
15666 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
15667 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
15668 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
15669 s,@CCDEPMODE@,$CCDEPMODE,;t t
15670 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
15671 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
15672 s,@LIBTOOL@,$LIBTOOL,;t t
15673 s,@SED@,$SED,;t t
15674 s,@EGREP@,$EGREP,;t t
15675 s,@FGREP@,$FGREP,;t t
15676 s,@GREP@,$GREP,;t t
15677 s,@LD@,$LD,;t t
15678 s,@DUMPBIN@,$DUMPBIN,;t t
15679 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
15680 s,@NM@,$NM,;t t
15681 s,@LN_S@,$LN_S,;t t
15682 s,@AR@,$AR,;t t
15683 s,@ac_ct_AR@,$ac_ct_AR,;t t
15684 s,@RANLIB@,$RANLIB,;t t
15685 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15686 s,@lt_ECHO@,$lt_ECHO,;t t
15687 s,@CPP@,$CPP,;t t
15688 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
15689 s,@NO_WERROR@,$NO_WERROR,;t t
15690 s,@YACC@,$YACC,;t t
15691 s,@LEX@,$LEX,;t t
15692 s,@LEXLIB@,$LEXLIB,;t t
15693 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
15694 s,@USE_NLS@,$USE_NLS,;t t
15695 s,@LIBINTL@,$LIBINTL,;t t
15696 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
15697 s,@INCINTL@,$INCINTL,;t t
15698 s,@XGETTEXT@,$XGETTEXT,;t t
15699 s,@GMSGFMT@,$GMSGFMT,;t t
15700 s,@POSUB@,$POSUB,;t t
15701 s,@CATALOGS@,$CATALOGS,;t t
15702 s,@DATADIRNAME@,$DATADIRNAME,;t t
15703 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
15704 s,@GENCAT@,$GENCAT,;t t
15705 s,@CATOBJEXT@,$CATOBJEXT,;t t
15706 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
15707 s,@MSGFMT@,$MSGFMT,;t t
15708 s,@MSGMERGE@,$MSGMERGE,;t t
15709 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
15710 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
15711 s,@MAINT@,$MAINT,;t t
15712 s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
15713 s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
15714 s,@HDEFINES@,$HDEFINES,;t t
15715 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
15716 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
15717 s,@DEMANGLER_NAME@,$DEMANGLER_NAME,;t t
15718 s,@ALLOCA@,$ALLOCA,;t t
15719 s,@LIBICONV@,$LIBICONV,;t t
15720 s,@LTLIBICONV@,$LTLIBICONV,;t t
15721 s,@NLMCONV_DEFS@,$NLMCONV_DEFS,;t t
15722 s,@BUILD_NLMCONV@,$BUILD_NLMCONV,;t t
15723 s,@BUILD_SRCONV@,$BUILD_SRCONV,;t t
15724 s,@BUILD_DLLTOOL@,$BUILD_DLLTOOL,;t t
15725 s,@DLLTOOL_DEFS@,$DLLTOOL_DEFS,;t t
15726 s,@BUILD_WINDRES@,$BUILD_WINDRES,;t t
15727 s,@BUILD_WINDMC@,$BUILD_WINDMC,;t t
15728 s,@BUILD_DLLWRAP@,$BUILD_DLLWRAP,;t t
15729 s,@BUILD_MISC@,$BUILD_MISC,;t t
15730 s,@BUILD_INSTALL_MISC@,$BUILD_INSTALL_MISC,;t t
15731 s,@OBJDUMP_DEFS@,$OBJDUMP_DEFS,;t t
15732 s,@EMULATION@,$EMULATION,;t t
15733 s,@EMULATION_VECTOR@,$EMULATION_VECTOR,;t t
15734 s,@datarootdir@,$datarootdir,;t t
15735 s,@docdir@,$docdir,;t t
15736 s,@htmldir@,$htmldir,;t t
15737 s,@LIBOBJS@,$LIBOBJS,;t t
15738 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15739 CEOF
15741 _ACEOF
15743 cat >>$CONFIG_STATUS <<\_ACEOF
15744 # Split the substitutions into bite-sized pieces for seds with
15745 # small command number limits, like on Digital OSF/1 and HP-UX.
15746 ac_max_sed_lines=48
15747 ac_sed_frag=1 # Number of current file.
15748 ac_beg=1 # First line for current file.
15749 ac_end=$ac_max_sed_lines # Line after last line for current file.
15750 ac_more_lines=:
15751 ac_sed_cmds=
15752 while $ac_more_lines; do
15753 if test $ac_beg -gt 1; then
15754 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15755 else
15756 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15758 if test ! -s $tmp/subs.frag; then
15759 ac_more_lines=false
15760 else
15761 # The purpose of the label and of the branching condition is to
15762 # speed up the sed processing (if there are no `@' at all, there
15763 # is no need to browse any of the substitutions).
15764 # These are the two extra sed commands mentioned above.
15765 (echo ':t
15766 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15767 if test -z "$ac_sed_cmds"; then
15768 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15769 else
15770 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15772 ac_sed_frag=`expr $ac_sed_frag + 1`
15773 ac_beg=$ac_end
15774 ac_end=`expr $ac_end + $ac_max_sed_lines`
15776 done
15777 if test -z "$ac_sed_cmds"; then
15778 ac_sed_cmds=cat
15780 fi # test -n "$CONFIG_FILES"
15782 _ACEOF
15783 cat >>$CONFIG_STATUS <<\_ACEOF
15784 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15785 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15786 case $ac_file in
15787 - | *:- | *:-:* ) # input from stdin
15788 cat >$tmp/stdin
15789 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15790 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15791 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15792 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15793 * ) ac_file_in=$ac_file.in ;;
15794 esac
15796 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15797 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15798 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15799 X"$ac_file" : 'X\(//\)[^/]' \| \
15800 X"$ac_file" : 'X\(//\)$' \| \
15801 X"$ac_file" : 'X\(/\)' \| \
15802 . : '\(.\)' 2>/dev/null ||
15803 echo X"$ac_file" |
15804 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15805 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15806 /^X\(\/\/\)$/{ s//\1/; q; }
15807 /^X\(\/\).*/{ s//\1/; q; }
15808 s/.*/./; q'`
15809 { if $as_mkdir_p; then
15810 mkdir -p "$ac_dir"
15811 else
15812 as_dir="$ac_dir"
15813 as_dirs=
15814 while test ! -d "$as_dir"; do
15815 as_dirs="$as_dir $as_dirs"
15816 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15817 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15818 X"$as_dir" : 'X\(//\)[^/]' \| \
15819 X"$as_dir" : 'X\(//\)$' \| \
15820 X"$as_dir" : 'X\(/\)' \| \
15821 . : '\(.\)' 2>/dev/null ||
15822 echo X"$as_dir" |
15823 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15824 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15825 /^X\(\/\/\)$/{ s//\1/; q; }
15826 /^X\(\/\).*/{ s//\1/; q; }
15827 s/.*/./; q'`
15828 done
15829 test ! -n "$as_dirs" || mkdir $as_dirs
15830 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15831 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15832 { (exit 1); exit 1; }; }; }
15834 ac_builddir=.
15836 if test "$ac_dir" != .; then
15837 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15838 # A "../" for each directory in $ac_dir_suffix.
15839 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15840 else
15841 ac_dir_suffix= ac_top_builddir=
15844 case $srcdir in
15845 .) # No --srcdir option. We are building in place.
15846 ac_srcdir=.
15847 if test -z "$ac_top_builddir"; then
15848 ac_top_srcdir=.
15849 else
15850 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15851 fi ;;
15852 [\\/]* | ?:[\\/]* ) # Absolute path.
15853 ac_srcdir=$srcdir$ac_dir_suffix;
15854 ac_top_srcdir=$srcdir ;;
15855 *) # Relative path.
15856 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15857 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15858 esac
15860 # Do not use `cd foo && pwd` to compute absolute paths, because
15861 # the directories may not exist.
15862 case `pwd` in
15863 .) ac_abs_builddir="$ac_dir";;
15865 case "$ac_dir" in
15866 .) ac_abs_builddir=`pwd`;;
15867 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15868 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15869 esac;;
15870 esac
15871 case $ac_abs_builddir in
15872 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15874 case ${ac_top_builddir}. in
15875 .) ac_abs_top_builddir=$ac_abs_builddir;;
15876 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15877 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15878 esac;;
15879 esac
15880 case $ac_abs_builddir in
15881 .) ac_abs_srcdir=$ac_srcdir;;
15883 case $ac_srcdir in
15884 .) ac_abs_srcdir=$ac_abs_builddir;;
15885 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15886 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15887 esac;;
15888 esac
15889 case $ac_abs_builddir in
15890 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15892 case $ac_top_srcdir in
15893 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15894 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15895 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15896 esac;;
15897 esac
15900 case $INSTALL in
15901 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15902 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
15903 esac
15905 if test x"$ac_file" != x-; then
15906 { echo "$as_me:$LINENO: creating $ac_file" >&5
15907 echo "$as_me: creating $ac_file" >&6;}
15908 rm -f "$ac_file"
15910 # Let's still pretend it is `configure' which instantiates (i.e., don't
15911 # use $as_me), people would be surprised to read:
15912 # /* config.h. Generated by config.status. */
15913 if test x"$ac_file" = x-; then
15914 configure_input=
15915 else
15916 configure_input="$ac_file. "
15918 configure_input=$configure_input"Generated from `echo $ac_file_in |
15919 sed 's,.*/,,'` by configure."
15921 # First look for the input files in the build tree, otherwise in the
15922 # src tree.
15923 ac_file_inputs=`IFS=:
15924 for f in $ac_file_in; do
15925 case $f in
15926 -) echo $tmp/stdin ;;
15927 [\\/$]*)
15928 # Absolute (can't be DOS-style, as IFS=:)
15929 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15930 echo "$as_me: error: cannot find input file: $f" >&2;}
15931 { (exit 1); exit 1; }; }
15932 echo "$f";;
15933 *) # Relative
15934 if test -f "$f"; then
15935 # Build tree
15936 echo "$f"
15937 elif test -f "$srcdir/$f"; then
15938 # Source tree
15939 echo "$srcdir/$f"
15940 else
15941 # /dev/null tree
15942 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15943 echo "$as_me: error: cannot find input file: $f" >&2;}
15944 { (exit 1); exit 1; }; }
15945 fi;;
15946 esac
15947 done` || { (exit 1); exit 1; }
15948 _ACEOF
15949 cat >>$CONFIG_STATUS <<_ACEOF
15950 sed "$ac_vpsub
15951 $extrasub
15952 _ACEOF
15953 cat >>$CONFIG_STATUS <<\_ACEOF
15955 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15956 s,@configure_input@,$configure_input,;t t
15957 s,@srcdir@,$ac_srcdir,;t t
15958 s,@abs_srcdir@,$ac_abs_srcdir,;t t
15959 s,@top_srcdir@,$ac_top_srcdir,;t t
15960 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15961 s,@builddir@,$ac_builddir,;t t
15962 s,@abs_builddir@,$ac_abs_builddir,;t t
15963 s,@top_builddir@,$ac_top_builddir,;t t
15964 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15965 s,@INSTALL@,$ac_INSTALL,;t t
15966 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15967 rm -f $tmp/stdin
15968 if test x"$ac_file" != x-; then
15969 mv $tmp/out $ac_file
15970 else
15971 cat $tmp/out
15972 rm -f $tmp/out
15975 done
15976 _ACEOF
15977 cat >>$CONFIG_STATUS <<\_ACEOF
15980 # CONFIG_HEADER section.
15983 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15984 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15986 # ac_d sets the value in "#define NAME VALUE" lines.
15987 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15988 ac_dB='[ ].*$,\1#\2'
15989 ac_dC=' '
15990 ac_dD=',;t'
15991 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15992 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15993 ac_uB='$,\1#\2define\3'
15994 ac_uC=' '
15995 ac_uD=',;t'
15997 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
15998 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15999 case $ac_file in
16000 - | *:- | *:-:* ) # input from stdin
16001 cat >$tmp/stdin
16002 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16003 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16004 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16005 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16006 * ) ac_file_in=$ac_file.in ;;
16007 esac
16009 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16010 echo "$as_me: creating $ac_file" >&6;}
16012 # First look for the input files in the build tree, otherwise in the
16013 # src tree.
16014 ac_file_inputs=`IFS=:
16015 for f in $ac_file_in; do
16016 case $f in
16017 -) echo $tmp/stdin ;;
16018 [\\/$]*)
16019 # Absolute (can't be DOS-style, as IFS=:)
16020 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16021 echo "$as_me: error: cannot find input file: $f" >&2;}
16022 { (exit 1); exit 1; }; }
16023 # Do quote $f, to prevent DOS paths from being IFS'd.
16024 echo "$f";;
16025 *) # Relative
16026 if test -f "$f"; then
16027 # Build tree
16028 echo "$f"
16029 elif test -f "$srcdir/$f"; then
16030 # Source tree
16031 echo "$srcdir/$f"
16032 else
16033 # /dev/null tree
16034 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16035 echo "$as_me: error: cannot find input file: $f" >&2;}
16036 { (exit 1); exit 1; }; }
16037 fi;;
16038 esac
16039 done` || { (exit 1); exit 1; }
16040 # Remove the trailing spaces.
16041 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16043 _ACEOF
16045 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16046 # `conftest.undefs', that substitutes the proper values into
16047 # config.h.in to produce config.h. The first handles `#define'
16048 # templates, and the second `#undef' templates.
16049 # And first: Protect against being on the right side of a sed subst in
16050 # config.status. Protect against being in an unquoted here document
16051 # in config.status.
16052 rm -f conftest.defines conftest.undefs
16053 # Using a here document instead of a string reduces the quoting nightmare.
16054 # Putting comments in sed scripts is not portable.
16056 # `end' is used to avoid that the second main sed command (meant for
16057 # 0-ary CPP macros) applies to n-ary macro definitions.
16058 # See the Autoconf documentation for `clear'.
16059 cat >confdef2sed.sed <<\_ACEOF
16060 s/[\\&,]/\\&/g
16061 s,[\\$`],\\&,g
16062 t clear
16063 : clear
16064 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16065 t end
16066 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16067 : end
16068 _ACEOF
16069 # If some macros were called several times there might be several times
16070 # the same #defines, which is useless. Nevertheless, we may not want to
16071 # sort them, since we want the *last* AC-DEFINE to be honored.
16072 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16073 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16074 rm -f confdef2sed.sed
16076 # This sed command replaces #undef with comments. This is necessary, for
16077 # example, in the case of _POSIX_SOURCE, which is predefined and required
16078 # on some systems where configure will not decide to define it.
16079 cat >>conftest.undefs <<\_ACEOF
16080 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16081 _ACEOF
16083 # Break up conftest.defines because some shells have a limit on the size
16084 # of here documents, and old seds have small limits too (100 cmds).
16085 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16086 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16087 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16088 echo ' :' >>$CONFIG_STATUS
16089 rm -f conftest.tail
16090 while grep . conftest.defines >/dev/null
16092 # Write a limited-size here document to $tmp/defines.sed.
16093 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16094 # Speed up: don't consider the non `#define' lines.
16095 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16096 # Work around the forget-to-reset-the-flag bug.
16097 echo 't clr' >>$CONFIG_STATUS
16098 echo ': clr' >>$CONFIG_STATUS
16099 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16100 echo 'CEOF
16101 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16102 rm -f $tmp/in
16103 mv $tmp/out $tmp/in
16104 ' >>$CONFIG_STATUS
16105 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16106 rm -f conftest.defines
16107 mv conftest.tail conftest.defines
16108 done
16109 rm -f conftest.defines
16110 echo ' fi # grep' >>$CONFIG_STATUS
16111 echo >>$CONFIG_STATUS
16113 # Break up conftest.undefs because some shells have a limit on the size
16114 # of here documents, and old seds have small limits too (100 cmds).
16115 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16116 rm -f conftest.tail
16117 while grep . conftest.undefs >/dev/null
16119 # Write a limited-size here document to $tmp/undefs.sed.
16120 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16121 # Speed up: don't consider the non `#undef'
16122 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16123 # Work around the forget-to-reset-the-flag bug.
16124 echo 't clr' >>$CONFIG_STATUS
16125 echo ': clr' >>$CONFIG_STATUS
16126 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16127 echo 'CEOF
16128 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16129 rm -f $tmp/in
16130 mv $tmp/out $tmp/in
16131 ' >>$CONFIG_STATUS
16132 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16133 rm -f conftest.undefs
16134 mv conftest.tail conftest.undefs
16135 done
16136 rm -f conftest.undefs
16138 cat >>$CONFIG_STATUS <<\_ACEOF
16139 # Let's still pretend it is `configure' which instantiates (i.e., don't
16140 # use $as_me), people would be surprised to read:
16141 # /* config.h. Generated by config.status. */
16142 if test x"$ac_file" = x-; then
16143 echo "/* Generated by configure. */" >$tmp/config.h
16144 else
16145 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16147 cat $tmp/in >>$tmp/config.h
16148 rm -f $tmp/in
16149 if test x"$ac_file" != x-; then
16150 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16151 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16152 echo "$as_me: $ac_file is unchanged" >&6;}
16153 else
16154 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16155 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16156 X"$ac_file" : 'X\(//\)[^/]' \| \
16157 X"$ac_file" : 'X\(//\)$' \| \
16158 X"$ac_file" : 'X\(/\)' \| \
16159 . : '\(.\)' 2>/dev/null ||
16160 echo X"$ac_file" |
16161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16162 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16163 /^X\(\/\/\)$/{ s//\1/; q; }
16164 /^X\(\/\).*/{ s//\1/; q; }
16165 s/.*/./; q'`
16166 { if $as_mkdir_p; then
16167 mkdir -p "$ac_dir"
16168 else
16169 as_dir="$ac_dir"
16170 as_dirs=
16171 while test ! -d "$as_dir"; do
16172 as_dirs="$as_dir $as_dirs"
16173 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16174 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16175 X"$as_dir" : 'X\(//\)[^/]' \| \
16176 X"$as_dir" : 'X\(//\)$' \| \
16177 X"$as_dir" : 'X\(/\)' \| \
16178 . : '\(.\)' 2>/dev/null ||
16179 echo X"$as_dir" |
16180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16181 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16182 /^X\(\/\/\)$/{ s//\1/; q; }
16183 /^X\(\/\).*/{ s//\1/; q; }
16184 s/.*/./; q'`
16185 done
16186 test ! -n "$as_dirs" || mkdir $as_dirs
16187 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16188 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16189 { (exit 1); exit 1; }; }; }
16191 rm -f $ac_file
16192 mv $tmp/config.h $ac_file
16194 else
16195 cat $tmp/config.h
16196 rm -f $tmp/config.h
16198 # Compute $ac_file's index in $config_headers.
16199 _am_stamp_count=1
16200 for _am_header in $config_headers :; do
16201 case $_am_header in
16202 $ac_file | $ac_file:* )
16203 break ;;
16205 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16206 esac
16207 done
16208 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
16209 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16210 X$ac_file : 'X\(//\)[^/]' \| \
16211 X$ac_file : 'X\(//\)$' \| \
16212 X$ac_file : 'X\(/\)' \| \
16213 . : '\(.\)' 2>/dev/null ||
16214 echo X$ac_file |
16215 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16216 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16217 /^X\(\/\/\)$/{ s//\1/; q; }
16218 /^X\(\/\).*/{ s//\1/; q; }
16219 s/.*/./; q'`/stamp-h$_am_stamp_count
16220 done
16221 _ACEOF
16222 cat >>$CONFIG_STATUS <<\_ACEOF
16225 # CONFIG_COMMANDS section.
16227 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16228 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16229 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16230 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16231 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16232 X"$ac_dest" : 'X\(//\)[^/]' \| \
16233 X"$ac_dest" : 'X\(//\)$' \| \
16234 X"$ac_dest" : 'X\(/\)' \| \
16235 . : '\(.\)' 2>/dev/null ||
16236 echo X"$ac_dest" |
16237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16238 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16239 /^X\(\/\/\)$/{ s//\1/; q; }
16240 /^X\(\/\).*/{ s//\1/; q; }
16241 s/.*/./; q'`
16242 { if $as_mkdir_p; then
16243 mkdir -p "$ac_dir"
16244 else
16245 as_dir="$ac_dir"
16246 as_dirs=
16247 while test ! -d "$as_dir"; do
16248 as_dirs="$as_dir $as_dirs"
16249 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16250 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16251 X"$as_dir" : 'X\(//\)[^/]' \| \
16252 X"$as_dir" : 'X\(//\)$' \| \
16253 X"$as_dir" : 'X\(/\)' \| \
16254 . : '\(.\)' 2>/dev/null ||
16255 echo X"$as_dir" |
16256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16257 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16258 /^X\(\/\/\)$/{ s//\1/; q; }
16259 /^X\(\/\).*/{ s//\1/; q; }
16260 s/.*/./; q'`
16261 done
16262 test ! -n "$as_dirs" || mkdir $as_dirs
16263 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16264 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16265 { (exit 1); exit 1; }; }; }
16267 ac_builddir=.
16269 if test "$ac_dir" != .; then
16270 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16271 # A "../" for each directory in $ac_dir_suffix.
16272 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16273 else
16274 ac_dir_suffix= ac_top_builddir=
16277 case $srcdir in
16278 .) # No --srcdir option. We are building in place.
16279 ac_srcdir=.
16280 if test -z "$ac_top_builddir"; then
16281 ac_top_srcdir=.
16282 else
16283 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16284 fi ;;
16285 [\\/]* | ?:[\\/]* ) # Absolute path.
16286 ac_srcdir=$srcdir$ac_dir_suffix;
16287 ac_top_srcdir=$srcdir ;;
16288 *) # Relative path.
16289 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16290 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16291 esac
16293 # Do not use `cd foo && pwd` to compute absolute paths, because
16294 # the directories may not exist.
16295 case `pwd` in
16296 .) ac_abs_builddir="$ac_dir";;
16298 case "$ac_dir" in
16299 .) ac_abs_builddir=`pwd`;;
16300 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16301 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16302 esac;;
16303 esac
16304 case $ac_abs_builddir in
16305 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16307 case ${ac_top_builddir}. in
16308 .) ac_abs_top_builddir=$ac_abs_builddir;;
16309 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16310 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16311 esac;;
16312 esac
16313 case $ac_abs_builddir in
16314 .) ac_abs_srcdir=$ac_srcdir;;
16316 case $ac_srcdir in
16317 .) ac_abs_srcdir=$ac_abs_builddir;;
16318 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16319 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16320 esac;;
16321 esac
16322 case $ac_abs_builddir in
16323 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16325 case $ac_top_srcdir in
16326 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16327 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16328 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16329 esac;;
16330 esac
16333 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16334 echo "$as_me: executing $ac_dest commands" >&6;}
16335 case $ac_dest in
16336 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
16337 # Strip MF so we end up with the name of the file.
16338 mf=`echo "$mf" | sed -e 's/:.*$//'`
16339 # Check whether this is an Automake generated Makefile or not.
16340 # We used to match only the files named `Makefile.in', but
16341 # some people rename them; so instead we look at the file content.
16342 # Grep'ing the first line is not enough: some people post-process
16343 # each Makefile.in and add a new line on top of each file to say so.
16344 # So let's grep whole file.
16345 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
16346 dirpart=`(dirname "$mf") 2>/dev/null ||
16347 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16348 X"$mf" : 'X\(//\)[^/]' \| \
16349 X"$mf" : 'X\(//\)$' \| \
16350 X"$mf" : 'X\(/\)' \| \
16351 . : '\(.\)' 2>/dev/null ||
16352 echo X"$mf" |
16353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16354 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16355 /^X\(\/\/\)$/{ s//\1/; q; }
16356 /^X\(\/\).*/{ s//\1/; q; }
16357 s/.*/./; q'`
16358 else
16359 continue
16361 # Extract the definition of DEPDIR, am__include, and am__quote
16362 # from the Makefile without running `make'.
16363 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16364 test -z "$DEPDIR" && continue
16365 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16366 test -z "am__include" && continue
16367 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16368 # When using ansi2knr, U may be empty or an underscore; expand it
16369 U=`sed -n 's/^U = //p' < "$mf"`
16370 # Find all dependency output files, they are included files with
16371 # $(DEPDIR) in their names. We invoke sed twice because it is the
16372 # simplest approach to changing $(DEPDIR) to its actual value in the
16373 # expansion.
16374 for file in `sed -n "
16375 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16376 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16377 # Make sure the directory exists.
16378 test -f "$dirpart/$file" && continue
16379 fdir=`(dirname "$file") 2>/dev/null ||
16380 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16381 X"$file" : 'X\(//\)[^/]' \| \
16382 X"$file" : 'X\(//\)$' \| \
16383 X"$file" : 'X\(/\)' \| \
16384 . : '\(.\)' 2>/dev/null ||
16385 echo X"$file" |
16386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16387 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16388 /^X\(\/\/\)$/{ s//\1/; q; }
16389 /^X\(\/\).*/{ s//\1/; q; }
16390 s/.*/./; q'`
16391 { if $as_mkdir_p; then
16392 mkdir -p $dirpart/$fdir
16393 else
16394 as_dir=$dirpart/$fdir
16395 as_dirs=
16396 while test ! -d "$as_dir"; do
16397 as_dirs="$as_dir $as_dirs"
16398 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16399 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16400 X"$as_dir" : 'X\(//\)[^/]' \| \
16401 X"$as_dir" : 'X\(//\)$' \| \
16402 X"$as_dir" : 'X\(/\)' \| \
16403 . : '\(.\)' 2>/dev/null ||
16404 echo X"$as_dir" |
16405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16406 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16407 /^X\(\/\/\)$/{ s//\1/; q; }
16408 /^X\(\/\).*/{ s//\1/; q; }
16409 s/.*/./; q'`
16410 done
16411 test ! -n "$as_dirs" || mkdir $as_dirs
16412 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
16413 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
16414 { (exit 1); exit 1; }; }; }
16416 # echo "creating $dirpart/$file"
16417 echo '# dummy' > "$dirpart/$file"
16418 done
16419 done
16421 libtool )
16423 # See if we are running on zsh, and set the options which allow our
16424 # commands through without removal of \ escapes.
16425 if test -n "${ZSH_VERSION+set}" ; then
16426 setopt NO_GLOB_SUBST
16429 cfgfile="${ofile}T"
16430 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16431 $RM "$cfgfile"
16433 cat <<_LT_EOF >> "$cfgfile"
16434 #! $SHELL
16436 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16437 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
16438 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16439 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16441 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16442 # 2006, 2007 Free Software Foundation, Inc.
16444 # This file is part of GNU Libtool:
16445 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
16447 # This program is free software; you can redistribute it and/or modify
16448 # it under the terms of the GNU General Public License as published by
16449 # the Free Software Foundation; either version 2 of the License, or
16450 # (at your option) any later version.
16452 # This program is distributed in the hope that it will be useful, but
16453 # WITHOUT ANY WARRANTY; without even the implied warranty of
16454 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16455 # General Public License for more details.
16457 # You should have received a copy of the GNU General Public License
16458 # along with this program; if not, a copy can be downloaded from
16459 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
16460 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16461 # MA 02110-1301, USA.
16463 # As a special exception to the GNU General Public License, if you
16464 # distribute this file as part of a program that contains a
16465 # configuration script generated by Autoconf, you may include it under
16466 # the same distribution terms that you use for the rest of that program.
16469 # The names of the tagged configurations supported by this script.
16470 available_tags=""
16472 # ### BEGIN LIBTOOL CONFIG
16474 # Which release of libtool.m4 was used?
16475 macro_version=$macro_version
16476 macro_revision=$macro_revision
16478 # Whether or not to build shared libraries.
16479 build_libtool_libs=$enable_shared
16481 # Whether or not to build static libraries.
16482 build_old_libs=$enable_static
16484 # What type of objects to build.
16485 pic_mode=$pic_mode
16487 # Whether or not to optimize for fast installation.
16488 fast_install=$enable_fast_install
16490 # The host system.
16491 host_alias=$host_alias
16492 host=$host
16493 host_os=$host_os
16495 # The build system.
16496 build_alias=$build_alias
16497 build=$build
16498 build_os=$build_os
16500 # A sed program that does not truncate output.
16501 SED=$lt_SED
16503 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16504 Xsed="\$SED -e 1s/^X//"
16506 # A grep program that handles long lines.
16507 GREP=$lt_GREP
16509 # An ERE matcher.
16510 EGREP=$lt_EGREP
16512 # A literal string matcher.
16513 FGREP=$lt_FGREP
16515 # A BSD- or MS-compatible name lister.
16516 NM=$lt_NM
16518 # Whether we need soft or hard links.
16519 LN_S=$lt_LN_S
16521 # What is the maximum length of a command?
16522 max_cmd_len=$max_cmd_len
16524 # Object file suffix (normally "o").
16525 objext=$ac_objext
16527 # Executable file suffix (normally "").
16528 exeext=$exeext
16530 # whether the shell understands "unset".
16531 lt_unset=$lt_unset
16533 # turn spaces into newlines.
16534 SP2NL=$lt_lt_SP2NL
16536 # turn newlines into spaces.
16537 NL2SP=$lt_lt_NL2SP
16539 # How to create reloadable object files.
16540 reload_flag=$lt_reload_flag
16541 reload_cmds=$lt_reload_cmds
16543 # Method to check whether dependent libraries are shared objects.
16544 deplibs_check_method=$lt_deplibs_check_method
16546 # Command to use when deplibs_check_method == "file_magic".
16547 file_magic_cmd=$lt_file_magic_cmd
16549 # The archiver.
16550 AR=$lt_AR
16551 AR_FLAGS=$lt_AR_FLAGS
16553 # A symbol stripping program.
16554 STRIP=$lt_STRIP
16556 # Commands used to install an old-style archive.
16557 RANLIB=$lt_RANLIB
16558 old_postinstall_cmds=$lt_old_postinstall_cmds
16559 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16561 # A C compiler.
16562 LTCC=$lt_CC
16564 # LTCC compiler flags.
16565 LTCFLAGS=$lt_CFLAGS
16567 # Take the output of nm and produce a listing of raw symbols and C names.
16568 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16570 # Transform the output of nm in a proper C declaration.
16571 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16573 # Transform the output of nm in a C name address pair.
16574 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16576 # The name of the directory that contains temporary libtool files.
16577 objdir=$objdir
16579 # Shell to use when invoking shell scripts.
16580 SHELL=$lt_SHELL
16582 # An echo program that does not interpret backslashes.
16583 ECHO=$lt_ECHO
16585 # Used to examine libraries when file_magic_cmd begins with "file".
16586 MAGIC_CMD=$MAGIC_CMD
16588 # Must we lock files when doing compilation?
16589 need_locks=$lt_need_locks
16591 # Old archive suffix (normally "a").
16592 libext=$libext
16594 # Shared library suffix (normally ".so").
16595 shrext_cmds=$lt_shrext_cmds
16597 # The commands to extract the exported symbol list from a shared archive.
16598 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16600 # Variables whose values should be saved in libtool wrapper scripts and
16601 # restored at link time.
16602 variables_saved_for_relink=$lt_variables_saved_for_relink
16604 # Do we need the "lib" prefix for modules?
16605 need_lib_prefix=$need_lib_prefix
16607 # Do we need a version for libraries?
16608 need_version=$need_version
16610 # Library versioning type.
16611 version_type=$version_type
16613 # Shared library runtime path variable.
16614 runpath_var=$runpath_var
16616 # Shared library path variable.
16617 shlibpath_var=$shlibpath_var
16619 # Is shlibpath searched before the hard-coded library search path?
16620 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16622 # Format of library name prefix.
16623 libname_spec=$lt_libname_spec
16625 # List of archive names. First name is the real one, the rest are links.
16626 # The last name is the one that the linker finds with -lNAME
16627 library_names_spec=$lt_library_names_spec
16629 # The coded name of the library, if different from the real name.
16630 soname_spec=$lt_soname_spec
16632 # Command to use after installation of a shared archive.
16633 postinstall_cmds=$lt_postinstall_cmds
16635 # Command to use after uninstallation of a shared archive.
16636 postuninstall_cmds=$lt_postuninstall_cmds
16638 # Commands used to finish a libtool library installation in a directory.
16639 finish_cmds=$lt_finish_cmds
16641 # As "finish_cmds", except a single script fragment to be evaled but
16642 # not shown.
16643 finish_eval=$lt_finish_eval
16645 # Whether we should hardcode library paths into libraries.
16646 hardcode_into_libs=$hardcode_into_libs
16648 # Compile-time system search path for libraries.
16649 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16651 # Run-time system search path for libraries.
16652 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16654 # Whether dlopen is supported.
16655 dlopen_support=$enable_dlopen
16657 # Whether dlopen of programs is supported.
16658 dlopen_self=$enable_dlopen_self
16660 # Whether dlopen of statically linked programs is supported.
16661 dlopen_self_static=$enable_dlopen_self_static
16663 # Commands to strip libraries.
16664 old_striplib=$lt_old_striplib
16665 striplib=$lt_striplib
16668 # The linker used to build libraries.
16669 LD=$lt_LD
16671 # Commands used to build an old-style archive.
16672 old_archive_cmds=$lt_old_archive_cmds
16674 # A language specific compiler.
16675 CC=$lt_compiler
16677 # Is the compiler the GNU compiler?
16678 with_gcc=$GCC
16680 # Compiler flag to turn off builtin functions.
16681 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16683 # How to pass a linker flag through the compiler.
16684 wl=$lt_lt_prog_compiler_wl
16686 # Additional compiler flags for building library objects.
16687 pic_flag=$lt_lt_prog_compiler_pic
16689 # Compiler flag to prevent dynamic linking.
16690 link_static_flag=$lt_lt_prog_compiler_static
16692 # Does compiler simultaneously support -c and -o options?
16693 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16695 # Whether or not to add -lc for building shared libraries.
16696 build_libtool_need_lc=$archive_cmds_need_lc
16698 # Whether or not to disallow shared libs when runtime libs are static.
16699 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16701 # Compiler flag to allow reflexive dlopens.
16702 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16704 # Compiler flag to generate shared objects directly from archives.
16705 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16707 # Whether the compiler copes with passing no objects directly.
16708 compiler_needs_object=$lt_compiler_needs_object
16710 # Create an old-style archive from a shared archive.
16711 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16713 # Create a temporary old-style archive to link instead of a shared archive.
16714 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16716 # Commands used to build a shared archive.
16717 archive_cmds=$lt_archive_cmds
16718 archive_expsym_cmds=$lt_archive_expsym_cmds
16720 # Commands used to build a loadable module if different from building
16721 # a shared archive.
16722 module_cmds=$lt_module_cmds
16723 module_expsym_cmds=$lt_module_expsym_cmds
16725 # Whether we are building with GNU ld or not.
16726 with_gnu_ld=$lt_with_gnu_ld
16728 # Flag that allows shared libraries with undefined symbols to be built.
16729 allow_undefined_flag=$lt_allow_undefined_flag
16731 # Flag that enforces no undefined symbols.
16732 no_undefined_flag=$lt_no_undefined_flag
16734 # Flag to hardcode \$libdir into a binary during linking.
16735 # This must work even if \$libdir does not exist
16736 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16738 # If ld is used when linking, flag to hardcode \$libdir into a binary
16739 # during linking. This must work even if \$libdir does not exist.
16740 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16742 # Whether we need a single "-rpath" flag with a separated argument.
16743 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16745 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16746 # DIR into the resulting binary.
16747 hardcode_direct=$hardcode_direct
16749 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16750 # DIR into the resulting binary and the resulting library dependency is
16751 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16752 # library is relocated.
16753 hardcode_direct_absolute=$hardcode_direct_absolute
16755 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16756 # into the resulting binary.
16757 hardcode_minus_L=$hardcode_minus_L
16759 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16760 # into the resulting binary.
16761 hardcode_shlibpath_var=$hardcode_shlibpath_var
16763 # Set to "yes" if building a shared library automatically hardcodes DIR
16764 # into the library and all subsequent libraries and executables linked
16765 # against it.
16766 hardcode_automatic=$hardcode_automatic
16768 # Set to yes if linker adds runtime paths of dependent libraries
16769 # to runtime path list.
16770 inherit_rpath=$inherit_rpath
16772 # Whether libtool must link a program against all its dependency libraries.
16773 link_all_deplibs=$link_all_deplibs
16775 # Fix the shell variable \$srcfile for the compiler.
16776 fix_srcfile_path=$lt_fix_srcfile_path
16778 # Set to "yes" if exported symbols are required.
16779 always_export_symbols=$always_export_symbols
16781 # The commands to list exported symbols.
16782 export_symbols_cmds=$lt_export_symbols_cmds
16784 # Symbols that should not be listed in the preloaded symbols.
16785 exclude_expsyms=$lt_exclude_expsyms
16787 # Symbols that must always be exported.
16788 include_expsyms=$lt_include_expsyms
16790 # Commands necessary for linking programs (against libraries) with templates.
16791 prelink_cmds=$lt_prelink_cmds
16793 # Specify filename containing input files.
16794 file_list_spec=$lt_file_list_spec
16796 # How to hardcode a shared library path into an executable.
16797 hardcode_action=$hardcode_action
16799 # ### END LIBTOOL CONFIG
16801 _LT_EOF
16803 case $host_os in
16804 aix3*)
16805 cat <<\_LT_EOF >> "$cfgfile"
16806 # AIX sometimes has problems with the GCC collect2 program. For some
16807 # reason, if we set the COLLECT_NAMES environment variable, the problems
16808 # vanish in a puff of smoke.
16809 if test "X${COLLECT_NAMES+set}" != Xset; then
16810 COLLECT_NAMES=
16811 export COLLECT_NAMES
16813 _LT_EOF
16815 esac
16818 ltmain="$ac_aux_dir/ltmain.sh"
16821 # We use sed instead of cat because bash on DJGPP gets confused if
16822 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16823 # text mode, it properly converts lines to CR/LF. This bash problem
16824 # is reportedly fixed, but why not run on old versions too?
16825 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16826 || (rm -f "$cfgfile"; exit 1)
16828 case $xsi_shell in
16829 yes)
16830 cat << \_LT_EOF >> "$cfgfile"
16831 # func_dirname file append nondir_replacement
16832 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16833 # otherwise set result to NONDIR_REPLACEMENT.
16834 func_dirname ()
16836 case ${1} in
16837 */*) func_dirname_result="${1%/*}${2}" ;;
16838 * ) func_dirname_result="${3}" ;;
16839 esac
16842 # func_basename file
16843 func_basename ()
16845 func_basename_result="${1##*/}"
16848 # func_stripname prefix suffix name
16849 # strip PREFIX and SUFFIX off of NAME.
16850 # PREFIX and SUFFIX must not contain globbing or regex special
16851 # characters, hashes, percent signs, but SUFFIX may contain a leading
16852 # dot (in which case that matches only a dot).
16853 func_stripname ()
16855 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16856 # positional parameters, so assign one to ordinary parameter first.
16857 func_stripname_result=${3}
16858 func_stripname_result=${func_stripname_result#"${1}"}
16859 func_stripname_result=${func_stripname_result%"${2}"}
16862 # func_opt_split
16863 func_opt_split ()
16865 func_opt_split_opt=${1%%=*}
16866 func_opt_split_arg=${1#*=}
16869 # func_lo2o object
16870 func_lo2o ()
16872 case ${1} in
16873 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16874 *) func_lo2o_result=${1} ;;
16875 esac
16877 _LT_EOF
16879 *) # Bourne compatible functions.
16880 cat << \_LT_EOF >> "$cfgfile"
16881 # func_dirname file append nondir_replacement
16882 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16883 # otherwise set result to NONDIR_REPLACEMENT.
16884 func_dirname ()
16886 # Extract subdirectory from the argument.
16887 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16888 if test "X$func_dirname_result" = "X${1}"; then
16889 func_dirname_result="${3}"
16890 else
16891 func_dirname_result="$func_dirname_result${2}"
16895 # func_basename file
16896 func_basename ()
16898 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16901 # func_stripname prefix suffix name
16902 # strip PREFIX and SUFFIX off of NAME.
16903 # PREFIX and SUFFIX must not contain globbing or regex special
16904 # characters, hashes, percent signs, but SUFFIX may contain a leading
16905 # dot (in which case that matches only a dot).
16906 # func_strip_suffix prefix name
16907 func_stripname ()
16909 case ${2} in
16910 .*) func_stripname_result=`$ECHO "X${3}" \
16911 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16912 *) func_stripname_result=`$ECHO "X${3}" \
16913 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16914 esac
16917 # sed scripts:
16918 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16919 my_sed_long_arg='1s/^-[^=]*=//'
16921 # func_opt_split
16922 func_opt_split ()
16924 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16925 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16928 # func_lo2o object
16929 func_lo2o ()
16931 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16933 _LT_EOF
16934 esac
16936 case $lt_shell_append in
16937 yes)
16938 cat << \_LT_EOF >> "$cfgfile"
16940 # func_append var value
16941 # Append VALUE to the end of shell variable VAR.
16942 func_append ()
16944 eval "$1+=\$2"
16946 _LT_EOF
16949 cat << \_LT_EOF >> "$cfgfile"
16951 # func_append var value
16952 # Append VALUE to the end of shell variable VAR.
16953 func_append ()
16955 eval "$1=\$$1\$2"
16957 _LT_EOF
16959 esac
16962 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16963 || (rm -f "$cfgfile"; exit 1)
16965 mv -f "$cfgfile" "$ofile" ||
16966 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16967 chmod +x "$ofile"
16970 default-1 )
16971 for ac_file in $CONFIG_FILES; do
16972 # Support "outfile[:infile[:infile...]]"
16973 case "$ac_file" in
16974 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16975 esac
16976 # PO directories have a Makefile.in generated from Makefile.in.in.
16977 case "$ac_file" in */Makefile.in)
16978 # Adjust a relative srcdir.
16979 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16980 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16981 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16982 # In autoconf-2.13 it is called $ac_given_srcdir.
16983 # In autoconf-2.50 it is called $srcdir.
16984 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16985 case "$ac_given_srcdir" in
16986 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16987 /*) top_srcdir="$ac_given_srcdir" ;;
16988 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16989 esac
16990 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16991 rm -f "$ac_dir/POTFILES"
16992 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16993 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16994 POMAKEFILEDEPS="POTFILES.in"
16995 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16996 # on $ac_dir but don't depend on user-specified configuration
16997 # parameters.
16998 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16999 # The LINGUAS file contains the set of available languages.
17000 if test -n "$OBSOLETE_ALL_LINGUAS"; then
17001 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17003 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17004 # Hide the ALL_LINGUAS assigment from automake.
17005 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17006 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17007 else
17008 # The set of available languages was given in configure.in.
17009 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17011 case "$ac_given_srcdir" in
17012 .) srcdirpre= ;;
17013 *) srcdirpre='$(srcdir)/' ;;
17014 esac
17015 POFILES=
17016 GMOFILES=
17017 UPDATEPOFILES=
17018 DUMMYPOFILES=
17019 for lang in $ALL_LINGUAS; do
17020 POFILES="$POFILES $srcdirpre$lang.po"
17021 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17022 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17023 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17024 done
17025 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17026 # environment variable.
17027 INST_LINGUAS=
17028 if test -n "$ALL_LINGUAS"; then
17029 for presentlang in $ALL_LINGUAS; do
17030 useit=no
17031 if test "%UNSET%" != "$LINGUAS"; then
17032 desiredlanguages="$LINGUAS"
17033 else
17034 desiredlanguages="$ALL_LINGUAS"
17036 for desiredlang in $desiredlanguages; do
17037 # Use the presentlang catalog if desiredlang is
17038 # a. equal to presentlang, or
17039 # b. a variant of presentlang (because in this case,
17040 # presentlang can be used as a fallback for messages
17041 # which are not translated in the desiredlang catalog).
17042 case "$desiredlang" in
17043 "$presentlang"*) useit=yes;;
17044 esac
17045 done
17046 if test $useit = yes; then
17047 INST_LINGUAS="$INST_LINGUAS $presentlang"
17049 done
17051 CATALOGS=
17052 if test -n "$INST_LINGUAS"; then
17053 for lang in $INST_LINGUAS; do
17054 CATALOGS="$CATALOGS $lang.gmo"
17055 done
17057 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17058 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"
17059 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17060 if test -f "$f"; then
17061 case "$f" in
17062 *.orig | *.bak | *~) ;;
17063 *) cat "$f" >> "$ac_dir/Makefile" ;;
17064 esac
17066 done
17069 esac
17070 done ;;
17071 esac
17072 done
17073 _ACEOF
17075 cat >>$CONFIG_STATUS <<\_ACEOF
17077 { (exit 0); exit 0; }
17078 _ACEOF
17079 chmod +x $CONFIG_STATUS
17080 ac_clean_files=$ac_clean_files_save
17083 # configure is writing to config.log, and then calls config.status.
17084 # config.status does its own redirection, appending to config.log.
17085 # Unfortunately, on DOS this fails, as config.log is still kept open
17086 # by configure, so config.status won't be able to write to it; its
17087 # output is simply discarded. So we exec the FD to /dev/null,
17088 # effectively closing config.log, so it can be properly (re)opened and
17089 # appended to by config.status. When coming back to configure, we
17090 # need to make the FD available again.
17091 if test "$no_create" != yes; then
17092 ac_cs_success=:
17093 ac_config_status_args=
17094 test "$silent" = yes &&
17095 ac_config_status_args="$ac_config_status_args --quiet"
17096 exec 5>/dev/null
17097 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17098 exec 5>>config.log
17099 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17100 # would make configure fail if this is the last instruction.
17101 $ac_cs_success || { (exit 1); exit 1; }