* dw2gencfi.c (CFI_DIFF_EXPR_OK): Define if not defined.
[binutils.git] / gprof / configure
blob369289fa6a218927bdf6fa352289d01af7c2ef4e
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="gprof.c"
424 # Factoring default headers for most tests.
425 ac_includes_default="\
426 #include <stdio.h>
427 #if HAVE_SYS_TYPES_H
428 # include <sys/types.h>
429 #endif
430 #if HAVE_SYS_STAT_H
431 # include <sys/stat.h>
432 #endif
433 #if STDC_HEADERS
434 # include <stdlib.h>
435 # include <stddef.h>
436 #else
437 # if HAVE_STDLIB_H
438 # include <stdlib.h>
439 # endif
440 #endif
441 #if HAVE_STRING_H
442 # if !STDC_HEADERS && HAVE_MEMORY_H
443 # include <memory.h>
444 # endif
445 # include <string.h>
446 #endif
447 #if HAVE_STRINGS_H
448 # include <strings.h>
449 #endif
450 #if HAVE_INTTYPES_H
451 # include <inttypes.h>
452 #else
453 # if HAVE_STDINT_H
454 # include <stdint.h>
455 # endif
456 #endif
457 #if HAVE_UNISTD_H
458 # include <unistd.h>
459 #endif"
461 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO 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 WARN_CFLAGS NO_WERROR 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 --disable-nls do not use Native Language Support
1013 --enable-maintainer-mode enable make rules and dependencies not useful
1014 (and sometimes confusing) to the casual installer
1015 --enable-werror treat compile warnings as errors
1016 --enable-build-warnings enable build-time compiler warnings
1018 Optional Packages:
1019 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1020 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1021 --with-pic try to use only PIC/non-PIC objects [default=use
1022 both]
1023 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1025 Some influential environment variables:
1026 CC C compiler command
1027 CFLAGS C compiler flags
1028 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1029 nonstandard directory <lib dir>
1030 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1031 headers in a nonstandard directory <include dir>
1032 CPP C preprocessor
1034 Use these variables to override the choices made by `configure' or to help
1035 it to find libraries and programs with nonstandard names/locations.
1037 _ACEOF
1040 if test "$ac_init_help" = "recursive"; then
1041 # If there are subdirs, report their specific --help.
1042 ac_popdir=`pwd`
1043 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1044 test -d $ac_dir || continue
1045 ac_builddir=.
1047 if test "$ac_dir" != .; then
1048 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1049 # A "../" for each directory in $ac_dir_suffix.
1050 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1051 else
1052 ac_dir_suffix= ac_top_builddir=
1055 case $srcdir in
1056 .) # No --srcdir option. We are building in place.
1057 ac_srcdir=.
1058 if test -z "$ac_top_builddir"; then
1059 ac_top_srcdir=.
1060 else
1061 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1062 fi ;;
1063 [\\/]* | ?:[\\/]* ) # Absolute path.
1064 ac_srcdir=$srcdir$ac_dir_suffix;
1065 ac_top_srcdir=$srcdir ;;
1066 *) # Relative path.
1067 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1068 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1069 esac
1071 # Do not use `cd foo && pwd` to compute absolute paths, because
1072 # the directories may not exist.
1073 case `pwd` in
1074 .) ac_abs_builddir="$ac_dir";;
1076 case "$ac_dir" in
1077 .) ac_abs_builddir=`pwd`;;
1078 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1079 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1080 esac;;
1081 esac
1082 case $ac_abs_builddir in
1083 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1085 case ${ac_top_builddir}. in
1086 .) ac_abs_top_builddir=$ac_abs_builddir;;
1087 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1088 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1089 esac;;
1090 esac
1091 case $ac_abs_builddir in
1092 .) ac_abs_srcdir=$ac_srcdir;;
1094 case $ac_srcdir in
1095 .) ac_abs_srcdir=$ac_abs_builddir;;
1096 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1097 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1098 esac;;
1099 esac
1100 case $ac_abs_builddir in
1101 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1103 case $ac_top_srcdir in
1104 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1105 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1106 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1107 esac;;
1108 esac
1110 cd $ac_dir
1111 # Check for guested configure; otherwise get Cygnus style configure.
1112 if test -f $ac_srcdir/configure.gnu; then
1113 echo
1114 $SHELL $ac_srcdir/configure.gnu --help=recursive
1115 elif test -f $ac_srcdir/configure; then
1116 echo
1117 $SHELL $ac_srcdir/configure --help=recursive
1118 elif test -f $ac_srcdir/configure.ac ||
1119 test -f $ac_srcdir/configure.in; then
1120 echo
1121 $ac_configure --help
1122 else
1123 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1125 cd $ac_popdir
1126 done
1129 test -n "$ac_init_help" && exit 0
1130 if $ac_init_version; then
1131 cat <<\_ACEOF
1133 Copyright (C) 2003 Free Software Foundation, Inc.
1134 This configure script is free software; the Free Software Foundation
1135 gives unlimited permission to copy, distribute and modify it.
1136 _ACEOF
1137 exit 0
1139 exec 5>config.log
1140 cat >&5 <<_ACEOF
1141 This file contains any messages produced by compilers while
1142 running configure, to aid debugging if configure makes a mistake.
1144 It was created by $as_me, which was
1145 generated by GNU Autoconf 2.59. Invocation command line was
1147 $ $0 $@
1149 _ACEOF
1151 cat <<_ASUNAME
1152 ## --------- ##
1153 ## Platform. ##
1154 ## --------- ##
1156 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1157 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1158 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1159 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1160 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1162 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1163 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1165 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1166 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1167 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1168 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1169 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1170 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1171 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1173 _ASUNAME
1175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1176 for as_dir in $PATH
1178 IFS=$as_save_IFS
1179 test -z "$as_dir" && as_dir=.
1180 echo "PATH: $as_dir"
1181 done
1183 } >&5
1185 cat >&5 <<_ACEOF
1188 ## ----------- ##
1189 ## Core tests. ##
1190 ## ----------- ##
1192 _ACEOF
1195 # Keep a trace of the command line.
1196 # Strip out --no-create and --no-recursion so they do not pile up.
1197 # Strip out --silent because we don't want to record it for future runs.
1198 # Also quote any args containing shell meta-characters.
1199 # Make two passes to allow for proper duplicate-argument suppression.
1200 ac_configure_args=
1201 ac_configure_args0=
1202 ac_configure_args1=
1203 ac_sep=
1204 ac_must_keep_next=false
1205 for ac_pass in 1 2
1207 for ac_arg
1209 case $ac_arg in
1210 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1211 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1212 | -silent | --silent | --silen | --sile | --sil)
1213 continue ;;
1214 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1215 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1216 esac
1217 case $ac_pass in
1218 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1220 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1221 if test $ac_must_keep_next = true; then
1222 ac_must_keep_next=false # Got value, back to normal.
1223 else
1224 case $ac_arg in
1225 *=* | --config-cache | -C | -disable-* | --disable-* \
1226 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1227 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1228 | -with-* | --with-* | -without-* | --without-* | --x)
1229 case "$ac_configure_args0 " in
1230 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1231 esac
1233 -* ) ac_must_keep_next=true ;;
1234 esac
1236 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1237 # Get rid of the leading space.
1238 ac_sep=" "
1240 esac
1241 done
1242 done
1243 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1244 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1246 # When interrupted or exit'd, cleanup temporary files, and complete
1247 # config.log. We remove comments because anyway the quotes in there
1248 # would cause problems or look ugly.
1249 # WARNING: Be sure not to use single quotes in there, as some shells,
1250 # such as our DU 5.0 friend, will then `close' the trap.
1251 trap 'exit_status=$?
1252 # Save into config.log some information that might help in debugging.
1254 echo
1256 cat <<\_ASBOX
1257 ## ---------------- ##
1258 ## Cache variables. ##
1259 ## ---------------- ##
1260 _ASBOX
1261 echo
1262 # The following way of writing the cache mishandles newlines in values,
1264 (set) 2>&1 |
1265 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1266 *ac_space=\ *)
1267 sed -n \
1268 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1269 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1272 sed -n \
1273 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1275 esac;
1277 echo
1279 cat <<\_ASBOX
1280 ## ----------------- ##
1281 ## Output variables. ##
1282 ## ----------------- ##
1283 _ASBOX
1284 echo
1285 for ac_var in $ac_subst_vars
1287 eval ac_val=$`echo $ac_var`
1288 echo "$ac_var='"'"'$ac_val'"'"'"
1289 done | sort
1290 echo
1292 if test -n "$ac_subst_files"; then
1293 cat <<\_ASBOX
1294 ## ------------- ##
1295 ## Output files. ##
1296 ## ------------- ##
1297 _ASBOX
1298 echo
1299 for ac_var in $ac_subst_files
1301 eval ac_val=$`echo $ac_var`
1302 echo "$ac_var='"'"'$ac_val'"'"'"
1303 done | sort
1304 echo
1307 if test -s confdefs.h; then
1308 cat <<\_ASBOX
1309 ## ----------- ##
1310 ## confdefs.h. ##
1311 ## ----------- ##
1312 _ASBOX
1313 echo
1314 sed "/^$/d" confdefs.h | sort
1315 echo
1317 test "$ac_signal" != 0 &&
1318 echo "$as_me: caught signal $ac_signal"
1319 echo "$as_me: exit $exit_status"
1320 } >&5
1321 rm -f core *.core &&
1322 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1323 exit $exit_status
1325 for ac_signal in 1 2 13 15; do
1326 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1327 done
1328 ac_signal=0
1330 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1331 rm -rf conftest* confdefs.h
1332 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1333 echo >confdefs.h
1335 # Predefined preprocessor variables.
1337 cat >>confdefs.h <<_ACEOF
1338 #define PACKAGE_NAME "$PACKAGE_NAME"
1339 _ACEOF
1342 cat >>confdefs.h <<_ACEOF
1343 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1344 _ACEOF
1347 cat >>confdefs.h <<_ACEOF
1348 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1349 _ACEOF
1352 cat >>confdefs.h <<_ACEOF
1353 #define PACKAGE_STRING "$PACKAGE_STRING"
1354 _ACEOF
1357 cat >>confdefs.h <<_ACEOF
1358 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1359 _ACEOF
1362 # Let the site file select an alternate cache file if it wants to.
1363 # Prefer explicitly selected file to automatically selected ones.
1364 if test -z "$CONFIG_SITE"; then
1365 if test "x$prefix" != xNONE; then
1366 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1367 else
1368 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1371 for ac_site_file in $CONFIG_SITE; do
1372 if test -r "$ac_site_file"; then
1373 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1374 echo "$as_me: loading site script $ac_site_file" >&6;}
1375 sed 's/^/| /' "$ac_site_file" >&5
1376 . "$ac_site_file"
1378 done
1380 if test -r "$cache_file"; then
1381 # Some versions of bash will fail to source /dev/null (special
1382 # files actually), so we avoid doing that.
1383 if test -f "$cache_file"; then
1384 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1385 echo "$as_me: loading cache $cache_file" >&6;}
1386 case $cache_file in
1387 [\\/]* | ?:[\\/]* ) . $cache_file;;
1388 *) . ./$cache_file;;
1389 esac
1391 else
1392 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1393 echo "$as_me: creating cache $cache_file" >&6;}
1394 >$cache_file
1397 # Check that the precious variables saved in the cache have kept the same
1398 # value.
1399 ac_cache_corrupted=false
1400 for ac_var in `(set) 2>&1 |
1401 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1402 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1403 eval ac_new_set=\$ac_env_${ac_var}_set
1404 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1405 eval ac_new_val="\$ac_env_${ac_var}_value"
1406 case $ac_old_set,$ac_new_set in
1407 set,)
1408 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1409 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1410 ac_cache_corrupted=: ;;
1411 ,set)
1412 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1413 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1414 ac_cache_corrupted=: ;;
1415 ,);;
1417 if test "x$ac_old_val" != "x$ac_new_val"; then
1418 # differences in whitespace do not lead to failure.
1419 ac_old_val_w=`echo x $ac_old_val`
1420 ac_new_val_w=`echo x $ac_new_val`
1421 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1422 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1423 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1424 ac_cache_corrupted=:
1425 else
1426 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1427 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1428 eval $ac_var=\$ac_old_val
1430 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1431 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1432 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1433 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1434 fi;;
1435 esac
1436 # Pass precious variables to config.status.
1437 if test "$ac_new_set" = set; then
1438 case $ac_new_val in
1439 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1440 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1441 *) ac_arg=$ac_var=$ac_new_val ;;
1442 esac
1443 case " $ac_configure_args " in
1444 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1445 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1446 esac
1448 done
1449 if $ac_cache_corrupted; then
1450 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1451 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1452 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1453 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1454 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1455 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1456 { (exit 1); exit 1; }; }
1459 ac_ext=c
1460 ac_cpp='$CPP $CPPFLAGS'
1461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1488 ac_aux_dir=
1489 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1490 if test -f $ac_dir/install-sh; then
1491 ac_aux_dir=$ac_dir
1492 ac_install_sh="$ac_aux_dir/install-sh -c"
1493 break
1494 elif test -f $ac_dir/install.sh; then
1495 ac_aux_dir=$ac_dir
1496 ac_install_sh="$ac_aux_dir/install.sh -c"
1497 break
1498 elif test -f $ac_dir/shtool; then
1499 ac_aux_dir=$ac_dir
1500 ac_install_sh="$ac_aux_dir/shtool install -c"
1501 break
1503 done
1504 if test -z "$ac_aux_dir"; then
1505 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1506 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1507 { (exit 1); exit 1; }; }
1509 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1510 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1511 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1513 # Make sure we can run config.sub.
1514 $ac_config_sub sun4 >/dev/null 2>&1 ||
1515 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1516 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1517 { (exit 1); exit 1; }; }
1519 echo "$as_me:$LINENO: checking build system type" >&5
1520 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1521 if test "${ac_cv_build+set}" = set; then
1522 echo $ECHO_N "(cached) $ECHO_C" >&6
1523 else
1524 ac_cv_build_alias=$build_alias
1525 test -z "$ac_cv_build_alias" &&
1526 ac_cv_build_alias=`$ac_config_guess`
1527 test -z "$ac_cv_build_alias" &&
1528 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1529 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1530 { (exit 1); exit 1; }; }
1531 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1532 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1533 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1534 { (exit 1); exit 1; }; }
1537 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1538 echo "${ECHO_T}$ac_cv_build" >&6
1539 build=$ac_cv_build
1540 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1541 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1542 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1545 echo "$as_me:$LINENO: checking host system type" >&5
1546 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1547 if test "${ac_cv_host+set}" = set; then
1548 echo $ECHO_N "(cached) $ECHO_C" >&6
1549 else
1550 ac_cv_host_alias=$host_alias
1551 test -z "$ac_cv_host_alias" &&
1552 ac_cv_host_alias=$ac_cv_build_alias
1553 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1554 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1555 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1556 { (exit 1); exit 1; }; }
1559 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1560 echo "${ECHO_T}$ac_cv_host" >&6
1561 host=$ac_cv_host
1562 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1563 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1564 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1567 echo "$as_me:$LINENO: checking target system type" >&5
1568 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1569 if test "${ac_cv_target+set}" = set; then
1570 echo $ECHO_N "(cached) $ECHO_C" >&6
1571 else
1572 ac_cv_target_alias=$target_alias
1573 test "x$ac_cv_target_alias" = "x" &&
1574 ac_cv_target_alias=$ac_cv_host_alias
1575 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1576 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1577 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1578 { (exit 1); exit 1; }; }
1581 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1582 echo "${ECHO_T}$ac_cv_target" >&6
1583 target=$ac_cv_target
1584 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1585 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1586 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1589 # The aliases save the names the user supplied, while $host etc.
1590 # will get canonicalized.
1591 test -n "$target_alias" &&
1592 test "$program_prefix$program_suffix$program_transform_name" = \
1593 NONENONEs,x,x, &&
1594 program_prefix=${target_alias}-
1595 ac_ext=c
1596 ac_cpp='$CPP $CPPFLAGS'
1597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1600 if test -n "$ac_tool_prefix"; then
1601 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1602 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1603 echo "$as_me:$LINENO: checking for $ac_word" >&5
1604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1605 if test "${ac_cv_prog_CC+set}" = set; then
1606 echo $ECHO_N "(cached) $ECHO_C" >&6
1607 else
1608 if test -n "$CC"; then
1609 ac_cv_prog_CC="$CC" # Let the user override the test.
1610 else
1611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1612 for as_dir in $PATH
1614 IFS=$as_save_IFS
1615 test -z "$as_dir" && as_dir=.
1616 for ac_exec_ext in '' $ac_executable_extensions; do
1617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1618 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1620 break 2
1622 done
1623 done
1627 CC=$ac_cv_prog_CC
1628 if test -n "$CC"; then
1629 echo "$as_me:$LINENO: result: $CC" >&5
1630 echo "${ECHO_T}$CC" >&6
1631 else
1632 echo "$as_me:$LINENO: result: no" >&5
1633 echo "${ECHO_T}no" >&6
1637 if test -z "$ac_cv_prog_CC"; then
1638 ac_ct_CC=$CC
1639 # Extract the first word of "gcc", so it can be a program name with args.
1640 set dummy gcc; ac_word=$2
1641 echo "$as_me:$LINENO: checking for $ac_word" >&5
1642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1643 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1644 echo $ECHO_N "(cached) $ECHO_C" >&6
1645 else
1646 if test -n "$ac_ct_CC"; then
1647 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1648 else
1649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1650 for as_dir in $PATH
1652 IFS=$as_save_IFS
1653 test -z "$as_dir" && as_dir=.
1654 for ac_exec_ext in '' $ac_executable_extensions; do
1655 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1656 ac_cv_prog_ac_ct_CC="gcc"
1657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1658 break 2
1660 done
1661 done
1665 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1666 if test -n "$ac_ct_CC"; then
1667 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1668 echo "${ECHO_T}$ac_ct_CC" >&6
1669 else
1670 echo "$as_me:$LINENO: result: no" >&5
1671 echo "${ECHO_T}no" >&6
1674 CC=$ac_ct_CC
1675 else
1676 CC="$ac_cv_prog_CC"
1679 if test -z "$CC"; then
1680 if test -n "$ac_tool_prefix"; then
1681 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1682 set dummy ${ac_tool_prefix}cc; ac_word=$2
1683 echo "$as_me:$LINENO: checking for $ac_word" >&5
1684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1685 if test "${ac_cv_prog_CC+set}" = set; then
1686 echo $ECHO_N "(cached) $ECHO_C" >&6
1687 else
1688 if test -n "$CC"; then
1689 ac_cv_prog_CC="$CC" # Let the user override the test.
1690 else
1691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1692 for as_dir in $PATH
1694 IFS=$as_save_IFS
1695 test -z "$as_dir" && as_dir=.
1696 for ac_exec_ext in '' $ac_executable_extensions; do
1697 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1698 ac_cv_prog_CC="${ac_tool_prefix}cc"
1699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1700 break 2
1702 done
1703 done
1707 CC=$ac_cv_prog_CC
1708 if test -n "$CC"; then
1709 echo "$as_me:$LINENO: result: $CC" >&5
1710 echo "${ECHO_T}$CC" >&6
1711 else
1712 echo "$as_me:$LINENO: result: no" >&5
1713 echo "${ECHO_T}no" >&6
1717 if test -z "$ac_cv_prog_CC"; then
1718 ac_ct_CC=$CC
1719 # Extract the first word of "cc", so it can be a program name with args.
1720 set dummy cc; ac_word=$2
1721 echo "$as_me:$LINENO: checking for $ac_word" >&5
1722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1723 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1724 echo $ECHO_N "(cached) $ECHO_C" >&6
1725 else
1726 if test -n "$ac_ct_CC"; then
1727 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1728 else
1729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1730 for as_dir in $PATH
1732 IFS=$as_save_IFS
1733 test -z "$as_dir" && as_dir=.
1734 for ac_exec_ext in '' $ac_executable_extensions; do
1735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1736 ac_cv_prog_ac_ct_CC="cc"
1737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1738 break 2
1740 done
1741 done
1745 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1746 if test -n "$ac_ct_CC"; then
1747 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1748 echo "${ECHO_T}$ac_ct_CC" >&6
1749 else
1750 echo "$as_me:$LINENO: result: no" >&5
1751 echo "${ECHO_T}no" >&6
1754 CC=$ac_ct_CC
1755 else
1756 CC="$ac_cv_prog_CC"
1760 if test -z "$CC"; then
1761 # Extract the first word of "cc", so it can be a program name with args.
1762 set dummy cc; ac_word=$2
1763 echo "$as_me:$LINENO: checking for $ac_word" >&5
1764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1765 if test "${ac_cv_prog_CC+set}" = set; then
1766 echo $ECHO_N "(cached) $ECHO_C" >&6
1767 else
1768 if test -n "$CC"; then
1769 ac_cv_prog_CC="$CC" # Let the user override the test.
1770 else
1771 ac_prog_rejected=no
1772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1773 for as_dir in $PATH
1775 IFS=$as_save_IFS
1776 test -z "$as_dir" && as_dir=.
1777 for ac_exec_ext in '' $ac_executable_extensions; do
1778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1779 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1780 ac_prog_rejected=yes
1781 continue
1783 ac_cv_prog_CC="cc"
1784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1785 break 2
1787 done
1788 done
1790 if test $ac_prog_rejected = yes; then
1791 # We found a bogon in the path, so make sure we never use it.
1792 set dummy $ac_cv_prog_CC
1793 shift
1794 if test $# != 0; then
1795 # We chose a different compiler from the bogus one.
1796 # However, it has the same basename, so the bogon will be chosen
1797 # first if we set CC to just the basename; use the full file name.
1798 shift
1799 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1804 CC=$ac_cv_prog_CC
1805 if test -n "$CC"; then
1806 echo "$as_me:$LINENO: result: $CC" >&5
1807 echo "${ECHO_T}$CC" >&6
1808 else
1809 echo "$as_me:$LINENO: result: no" >&5
1810 echo "${ECHO_T}no" >&6
1814 if test -z "$CC"; then
1815 if test -n "$ac_tool_prefix"; then
1816 for ac_prog in cl
1818 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1819 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1820 echo "$as_me:$LINENO: checking for $ac_word" >&5
1821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1822 if test "${ac_cv_prog_CC+set}" = set; then
1823 echo $ECHO_N "(cached) $ECHO_C" >&6
1824 else
1825 if test -n "$CC"; then
1826 ac_cv_prog_CC="$CC" # Let the user override the test.
1827 else
1828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1829 for as_dir in $PATH
1831 IFS=$as_save_IFS
1832 test -z "$as_dir" && as_dir=.
1833 for ac_exec_ext in '' $ac_executable_extensions; do
1834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1835 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1837 break 2
1839 done
1840 done
1844 CC=$ac_cv_prog_CC
1845 if test -n "$CC"; then
1846 echo "$as_me:$LINENO: result: $CC" >&5
1847 echo "${ECHO_T}$CC" >&6
1848 else
1849 echo "$as_me:$LINENO: result: no" >&5
1850 echo "${ECHO_T}no" >&6
1853 test -n "$CC" && break
1854 done
1856 if test -z "$CC"; then
1857 ac_ct_CC=$CC
1858 for ac_prog in cl
1860 # Extract the first word of "$ac_prog", so it can be a program name with args.
1861 set dummy $ac_prog; ac_word=$2
1862 echo "$as_me:$LINENO: checking for $ac_word" >&5
1863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1864 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1865 echo $ECHO_N "(cached) $ECHO_C" >&6
1866 else
1867 if test -n "$ac_ct_CC"; then
1868 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1869 else
1870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1871 for as_dir in $PATH
1873 IFS=$as_save_IFS
1874 test -z "$as_dir" && as_dir=.
1875 for ac_exec_ext in '' $ac_executable_extensions; do
1876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1877 ac_cv_prog_ac_ct_CC="$ac_prog"
1878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1879 break 2
1881 done
1882 done
1886 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1887 if test -n "$ac_ct_CC"; then
1888 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1889 echo "${ECHO_T}$ac_ct_CC" >&6
1890 else
1891 echo "$as_me:$LINENO: result: no" >&5
1892 echo "${ECHO_T}no" >&6
1895 test -n "$ac_ct_CC" && break
1896 done
1898 CC=$ac_ct_CC
1904 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1905 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1906 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1907 See \`config.log' for more details." >&5
1908 echo "$as_me: error: no acceptable C compiler found in \$PATH
1909 See \`config.log' for more details." >&2;}
1910 { (exit 1); exit 1; }; }; }
1912 # Provide some information about the compiler.
1913 echo "$as_me:$LINENO:" \
1914 "checking for C compiler version" >&5
1915 ac_compiler=`set X $ac_compile; echo $2`
1916 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1917 (eval $ac_compiler --version </dev/null >&5) 2>&5
1918 ac_status=$?
1919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1920 (exit $ac_status); }
1921 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1922 (eval $ac_compiler -v </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); }
1932 cat >conftest.$ac_ext <<_ACEOF
1933 /* confdefs.h. */
1934 _ACEOF
1935 cat confdefs.h >>conftest.$ac_ext
1936 cat >>conftest.$ac_ext <<_ACEOF
1937 /* end confdefs.h. */
1940 main ()
1944 return 0;
1946 _ACEOF
1947 ac_clean_files_save=$ac_clean_files
1948 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1949 # Try to create an executable without -o first, disregard a.out.
1950 # It will help us diagnose broken compilers, and finding out an intuition
1951 # of exeext.
1952 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1953 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1954 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1955 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1956 (eval $ac_link_default) 2>&5
1957 ac_status=$?
1958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1959 (exit $ac_status); }; then
1960 # Find the output, starting from the most likely. This scheme is
1961 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1962 # resort.
1964 # Be careful to initialize this variable, since it used to be cached.
1965 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1966 ac_cv_exeext=
1967 # b.out is created by i960 compilers.
1968 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1970 test -f "$ac_file" || continue
1971 case $ac_file in
1972 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1974 conftest.$ac_ext )
1975 # This is the source file.
1977 [ab].out )
1978 # We found the default executable, but exeext='' is most
1979 # certainly right.
1980 break;;
1981 *.* )
1982 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1983 # FIXME: I believe we export ac_cv_exeext for Libtool,
1984 # but it would be cool to find out if it's true. Does anybody
1985 # maintain Libtool? --akim.
1986 export ac_cv_exeext
1987 break;;
1989 break;;
1990 esac
1991 done
1992 else
1993 echo "$as_me: failed program was:" >&5
1994 sed 's/^/| /' conftest.$ac_ext >&5
1996 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1997 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1998 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1999 See \`config.log' for more details." >&5
2000 echo "$as_me: error: C compiler cannot create executables
2001 See \`config.log' for more details." >&2;}
2002 { (exit 77); exit 77; }; }; }
2005 ac_exeext=$ac_cv_exeext
2006 echo "$as_me:$LINENO: result: $ac_file" >&5
2007 echo "${ECHO_T}$ac_file" >&6
2009 # Check the compiler produces executables we can run. If not, either
2010 # the compiler is broken, or we cross compile.
2011 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2012 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2013 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2014 # If not cross compiling, check that we can run a simple program.
2015 if test "$cross_compiling" != yes; then
2016 if { ac_try='./$ac_file'
2017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2018 (eval $ac_try) 2>&5
2019 ac_status=$?
2020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2021 (exit $ac_status); }; }; then
2022 cross_compiling=no
2023 else
2024 if test "$cross_compiling" = maybe; then
2025 cross_compiling=yes
2026 else
2027 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2028 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2029 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2030 If you meant to cross compile, use \`--host'.
2031 See \`config.log' for more details." >&5
2032 echo "$as_me: error: cannot run C compiled programs.
2033 If you meant to cross compile, use \`--host'.
2034 See \`config.log' for more details." >&2;}
2035 { (exit 1); exit 1; }; }; }
2039 echo "$as_me:$LINENO: result: yes" >&5
2040 echo "${ECHO_T}yes" >&6
2042 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2043 ac_clean_files=$ac_clean_files_save
2044 # Check the compiler produces executables we can run. If not, either
2045 # the compiler is broken, or we cross compile.
2046 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2047 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2048 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2049 echo "${ECHO_T}$cross_compiling" >&6
2051 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2052 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2054 (eval $ac_link) 2>&5
2055 ac_status=$?
2056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057 (exit $ac_status); }; then
2058 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2059 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2060 # work properly (i.e., refer to `conftest.exe'), while it won't with
2061 # `rm'.
2062 for ac_file in conftest.exe conftest conftest.*; do
2063 test -f "$ac_file" || continue
2064 case $ac_file in
2065 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2066 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2067 export ac_cv_exeext
2068 break;;
2069 * ) break;;
2070 esac
2071 done
2072 else
2073 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2074 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2075 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2076 See \`config.log' for more details." >&5
2077 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2078 See \`config.log' for more details." >&2;}
2079 { (exit 1); exit 1; }; }; }
2082 rm -f conftest$ac_cv_exeext
2083 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2084 echo "${ECHO_T}$ac_cv_exeext" >&6
2086 rm -f conftest.$ac_ext
2087 EXEEXT=$ac_cv_exeext
2088 ac_exeext=$EXEEXT
2089 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2090 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2091 if test "${ac_cv_objext+set}" = set; then
2092 echo $ECHO_N "(cached) $ECHO_C" >&6
2093 else
2094 cat >conftest.$ac_ext <<_ACEOF
2095 /* confdefs.h. */
2096 _ACEOF
2097 cat confdefs.h >>conftest.$ac_ext
2098 cat >>conftest.$ac_ext <<_ACEOF
2099 /* end confdefs.h. */
2102 main ()
2106 return 0;
2108 _ACEOF
2109 rm -f conftest.o conftest.obj
2110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2111 (eval $ac_compile) 2>&5
2112 ac_status=$?
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); }; then
2115 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2116 case $ac_file in
2117 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2118 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2119 break;;
2120 esac
2121 done
2122 else
2123 echo "$as_me: failed program was:" >&5
2124 sed 's/^/| /' conftest.$ac_ext >&5
2126 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2127 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2128 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2129 See \`config.log' for more details." >&5
2130 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2131 See \`config.log' for more details." >&2;}
2132 { (exit 1); exit 1; }; }; }
2135 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2137 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2138 echo "${ECHO_T}$ac_cv_objext" >&6
2139 OBJEXT=$ac_cv_objext
2140 ac_objext=$OBJEXT
2141 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2142 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2143 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2144 echo $ECHO_N "(cached) $ECHO_C" >&6
2145 else
2146 cat >conftest.$ac_ext <<_ACEOF
2147 /* confdefs.h. */
2148 _ACEOF
2149 cat confdefs.h >>conftest.$ac_ext
2150 cat >>conftest.$ac_ext <<_ACEOF
2151 /* end confdefs.h. */
2154 main ()
2156 #ifndef __GNUC__
2157 choke me
2158 #endif
2161 return 0;
2163 _ACEOF
2164 rm -f conftest.$ac_objext
2165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2166 (eval $ac_compile) 2>conftest.er1
2167 ac_status=$?
2168 grep -v '^ *+' conftest.er1 >conftest.err
2169 rm -f conftest.er1
2170 cat conftest.err >&5
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); } &&
2173 { ac_try='test -z "$ac_c_werror_flag"
2174 || test ! -s conftest.err'
2175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2176 (eval $ac_try) 2>&5
2177 ac_status=$?
2178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179 (exit $ac_status); }; } &&
2180 { ac_try='test -s conftest.$ac_objext'
2181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2182 (eval $ac_try) 2>&5
2183 ac_status=$?
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); }; }; then
2186 ac_compiler_gnu=yes
2187 else
2188 echo "$as_me: failed program was:" >&5
2189 sed 's/^/| /' conftest.$ac_ext >&5
2191 ac_compiler_gnu=no
2193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2194 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2197 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2198 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2199 GCC=`test $ac_compiler_gnu = yes && echo yes`
2200 ac_test_CFLAGS=${CFLAGS+set}
2201 ac_save_CFLAGS=$CFLAGS
2202 CFLAGS="-g"
2203 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2204 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2205 if test "${ac_cv_prog_cc_g+set}" = set; then
2206 echo $ECHO_N "(cached) $ECHO_C" >&6
2207 else
2208 cat >conftest.$ac_ext <<_ACEOF
2209 /* confdefs.h. */
2210 _ACEOF
2211 cat confdefs.h >>conftest.$ac_ext
2212 cat >>conftest.$ac_ext <<_ACEOF
2213 /* end confdefs.h. */
2216 main ()
2220 return 0;
2222 _ACEOF
2223 rm -f conftest.$ac_objext
2224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2225 (eval $ac_compile) 2>conftest.er1
2226 ac_status=$?
2227 grep -v '^ *+' conftest.er1 >conftest.err
2228 rm -f conftest.er1
2229 cat conftest.err >&5
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); } &&
2232 { ac_try='test -z "$ac_c_werror_flag"
2233 || test ! -s conftest.err'
2234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2235 (eval $ac_try) 2>&5
2236 ac_status=$?
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); }; } &&
2239 { ac_try='test -s conftest.$ac_objext'
2240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2241 (eval $ac_try) 2>&5
2242 ac_status=$?
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); }; }; then
2245 ac_cv_prog_cc_g=yes
2246 else
2247 echo "$as_me: failed program was:" >&5
2248 sed 's/^/| /' conftest.$ac_ext >&5
2250 ac_cv_prog_cc_g=no
2252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2254 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2255 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2256 if test "$ac_test_CFLAGS" = set; then
2257 CFLAGS=$ac_save_CFLAGS
2258 elif test $ac_cv_prog_cc_g = yes; then
2259 if test "$GCC" = yes; then
2260 CFLAGS="-g -O2"
2261 else
2262 CFLAGS="-g"
2264 else
2265 if test "$GCC" = yes; then
2266 CFLAGS="-O2"
2267 else
2268 CFLAGS=
2271 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2272 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2273 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2274 echo $ECHO_N "(cached) $ECHO_C" >&6
2275 else
2276 ac_cv_prog_cc_stdc=no
2277 ac_save_CC=$CC
2278 cat >conftest.$ac_ext <<_ACEOF
2279 /* confdefs.h. */
2280 _ACEOF
2281 cat confdefs.h >>conftest.$ac_ext
2282 cat >>conftest.$ac_ext <<_ACEOF
2283 /* end confdefs.h. */
2284 #include <stdarg.h>
2285 #include <stdio.h>
2286 #include <sys/types.h>
2287 #include <sys/stat.h>
2288 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2289 struct buf { int x; };
2290 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2291 static char *e (p, i)
2292 char **p;
2293 int i;
2295 return p[i];
2297 static char *f (char * (*g) (char **, int), char **p, ...)
2299 char *s;
2300 va_list v;
2301 va_start (v,p);
2302 s = g (p, va_arg (v,int));
2303 va_end (v);
2304 return s;
2307 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2308 function prototypes and stuff, but not '\xHH' hex character constants.
2309 These don't provoke an error unfortunately, instead are silently treated
2310 as 'x'. The following induces an error, until -std1 is added to get
2311 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2312 array size at least. It's necessary to write '\x00'==0 to get something
2313 that's true only with -std1. */
2314 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2316 int test (int i, double x);
2317 struct s1 {int (*f) (int a);};
2318 struct s2 {int (*f) (double a);};
2319 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2320 int argc;
2321 char **argv;
2323 main ()
2325 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2327 return 0;
2329 _ACEOF
2330 # Don't try gcc -ansi; that turns off useful extensions and
2331 # breaks some systems' header files.
2332 # AIX -qlanglvl=ansi
2333 # Ultrix and OSF/1 -std1
2334 # HP-UX 10.20 and later -Ae
2335 # HP-UX older versions -Aa -D_HPUX_SOURCE
2336 # SVR4 -Xc -D__EXTENSIONS__
2337 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2339 CC="$ac_save_CC $ac_arg"
2340 rm -f conftest.$ac_objext
2341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2342 (eval $ac_compile) 2>conftest.er1
2343 ac_status=$?
2344 grep -v '^ *+' conftest.er1 >conftest.err
2345 rm -f conftest.er1
2346 cat conftest.err >&5
2347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348 (exit $ac_status); } &&
2349 { ac_try='test -z "$ac_c_werror_flag"
2350 || test ! -s conftest.err'
2351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2352 (eval $ac_try) 2>&5
2353 ac_status=$?
2354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355 (exit $ac_status); }; } &&
2356 { ac_try='test -s conftest.$ac_objext'
2357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2358 (eval $ac_try) 2>&5
2359 ac_status=$?
2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361 (exit $ac_status); }; }; then
2362 ac_cv_prog_cc_stdc=$ac_arg
2363 break
2364 else
2365 echo "$as_me: failed program was:" >&5
2366 sed 's/^/| /' conftest.$ac_ext >&5
2369 rm -f conftest.err conftest.$ac_objext
2370 done
2371 rm -f conftest.$ac_ext conftest.$ac_objext
2372 CC=$ac_save_CC
2376 case "x$ac_cv_prog_cc_stdc" in
2377 x|xno)
2378 echo "$as_me:$LINENO: result: none needed" >&5
2379 echo "${ECHO_T}none needed" >&6 ;;
2381 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2382 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2383 CC="$CC $ac_cv_prog_cc_stdc" ;;
2384 esac
2386 # Some people use a C++ compiler to compile C. Since we use `exit',
2387 # in C++ we need to declare it. In case someone uses the same compiler
2388 # for both compiling C and C++ we need to have the C++ compiler decide
2389 # the declaration of exit, since it's the most demanding environment.
2390 cat >conftest.$ac_ext <<_ACEOF
2391 #ifndef __cplusplus
2392 choke me
2393 #endif
2394 _ACEOF
2395 rm -f conftest.$ac_objext
2396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2397 (eval $ac_compile) 2>conftest.er1
2398 ac_status=$?
2399 grep -v '^ *+' conftest.er1 >conftest.err
2400 rm -f conftest.er1
2401 cat conftest.err >&5
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); } &&
2404 { ac_try='test -z "$ac_c_werror_flag"
2405 || test ! -s conftest.err'
2406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407 (eval $ac_try) 2>&5
2408 ac_status=$?
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); }; } &&
2411 { ac_try='test -s conftest.$ac_objext'
2412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2413 (eval $ac_try) 2>&5
2414 ac_status=$?
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); }; }; then
2417 for ac_declaration in \
2418 '' \
2419 'extern "C" void std::exit (int) throw (); using std::exit;' \
2420 'extern "C" void std::exit (int); using std::exit;' \
2421 'extern "C" void exit (int) throw ();' \
2422 'extern "C" void exit (int);' \
2423 'void exit (int);'
2425 cat >conftest.$ac_ext <<_ACEOF
2426 /* confdefs.h. */
2427 _ACEOF
2428 cat confdefs.h >>conftest.$ac_ext
2429 cat >>conftest.$ac_ext <<_ACEOF
2430 /* end confdefs.h. */
2431 $ac_declaration
2432 #include <stdlib.h>
2434 main ()
2436 exit (42);
2438 return 0;
2440 _ACEOF
2441 rm -f conftest.$ac_objext
2442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2443 (eval $ac_compile) 2>conftest.er1
2444 ac_status=$?
2445 grep -v '^ *+' conftest.er1 >conftest.err
2446 rm -f conftest.er1
2447 cat conftest.err >&5
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); } &&
2450 { ac_try='test -z "$ac_c_werror_flag"
2451 || test ! -s conftest.err'
2452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2453 (eval $ac_try) 2>&5
2454 ac_status=$?
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); }; } &&
2457 { ac_try='test -s conftest.$ac_objext'
2458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2459 (eval $ac_try) 2>&5
2460 ac_status=$?
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); }; }; then
2464 else
2465 echo "$as_me: failed program was:" >&5
2466 sed 's/^/| /' conftest.$ac_ext >&5
2468 continue
2470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2471 cat >conftest.$ac_ext <<_ACEOF
2472 /* confdefs.h. */
2473 _ACEOF
2474 cat confdefs.h >>conftest.$ac_ext
2475 cat >>conftest.$ac_ext <<_ACEOF
2476 /* end confdefs.h. */
2477 $ac_declaration
2479 main ()
2481 exit (42);
2483 return 0;
2485 _ACEOF
2486 rm -f conftest.$ac_objext
2487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2488 (eval $ac_compile) 2>conftest.er1
2489 ac_status=$?
2490 grep -v '^ *+' conftest.er1 >conftest.err
2491 rm -f conftest.er1
2492 cat conftest.err >&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); } &&
2495 { ac_try='test -z "$ac_c_werror_flag"
2496 || test ! -s conftest.err'
2497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2498 (eval $ac_try) 2>&5
2499 ac_status=$?
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); }; } &&
2502 { ac_try='test -s conftest.$ac_objext'
2503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2504 (eval $ac_try) 2>&5
2505 ac_status=$?
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); }; }; then
2508 break
2509 else
2510 echo "$as_me: failed program was:" >&5
2511 sed 's/^/| /' conftest.$ac_ext >&5
2514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2515 done
2516 rm -f conftest*
2517 if test -n "$ac_declaration"; then
2518 echo '#ifdef __cplusplus' >>confdefs.h
2519 echo $ac_declaration >>confdefs.h
2520 echo '#endif' >>confdefs.h
2523 else
2524 echo "$as_me: failed program was:" >&5
2525 sed 's/^/| /' conftest.$ac_ext >&5
2528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2529 ac_ext=c
2530 ac_cpp='$CPP $CPPFLAGS'
2531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2536 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2537 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2538 if test "${ac_cv_search_strerror+set}" = set; then
2539 echo $ECHO_N "(cached) $ECHO_C" >&6
2540 else
2541 ac_func_search_save_LIBS=$LIBS
2542 ac_cv_search_strerror=no
2543 cat >conftest.$ac_ext <<_ACEOF
2544 /* confdefs.h. */
2545 _ACEOF
2546 cat confdefs.h >>conftest.$ac_ext
2547 cat >>conftest.$ac_ext <<_ACEOF
2548 /* end confdefs.h. */
2550 /* Override any gcc2 internal prototype to avoid an error. */
2551 #ifdef __cplusplus
2552 extern "C"
2553 #endif
2554 /* We use char because int might match the return type of a gcc2
2555 builtin and then its argument prototype would still apply. */
2556 char strerror ();
2558 main ()
2560 strerror ();
2562 return 0;
2564 _ACEOF
2565 rm -f conftest.$ac_objext conftest$ac_exeext
2566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2567 (eval $ac_link) 2>conftest.er1
2568 ac_status=$?
2569 grep -v '^ *+' conftest.er1 >conftest.err
2570 rm -f conftest.er1
2571 cat conftest.err >&5
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); } &&
2574 { ac_try='test -z "$ac_c_werror_flag"
2575 || test ! -s conftest.err'
2576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2577 (eval $ac_try) 2>&5
2578 ac_status=$?
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); }; } &&
2581 { ac_try='test -s conftest$ac_exeext'
2582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2583 (eval $ac_try) 2>&5
2584 ac_status=$?
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); }; }; then
2587 ac_cv_search_strerror="none required"
2588 else
2589 echo "$as_me: failed program was:" >&5
2590 sed 's/^/| /' conftest.$ac_ext >&5
2593 rm -f conftest.err conftest.$ac_objext \
2594 conftest$ac_exeext conftest.$ac_ext
2595 if test "$ac_cv_search_strerror" = no; then
2596 for ac_lib in cposix; do
2597 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2598 cat >conftest.$ac_ext <<_ACEOF
2599 /* confdefs.h. */
2600 _ACEOF
2601 cat confdefs.h >>conftest.$ac_ext
2602 cat >>conftest.$ac_ext <<_ACEOF
2603 /* end confdefs.h. */
2605 /* Override any gcc2 internal prototype to avoid an error. */
2606 #ifdef __cplusplus
2607 extern "C"
2608 #endif
2609 /* We use char because int might match the return type of a gcc2
2610 builtin and then its argument prototype would still apply. */
2611 char strerror ();
2613 main ()
2615 strerror ();
2617 return 0;
2619 _ACEOF
2620 rm -f conftest.$ac_objext conftest$ac_exeext
2621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2622 (eval $ac_link) 2>conftest.er1
2623 ac_status=$?
2624 grep -v '^ *+' conftest.er1 >conftest.err
2625 rm -f conftest.er1
2626 cat conftest.err >&5
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); } &&
2629 { ac_try='test -z "$ac_c_werror_flag"
2630 || test ! -s conftest.err'
2631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2632 (eval $ac_try) 2>&5
2633 ac_status=$?
2634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635 (exit $ac_status); }; } &&
2636 { ac_try='test -s conftest$ac_exeext'
2637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2638 (eval $ac_try) 2>&5
2639 ac_status=$?
2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); }; }; then
2642 ac_cv_search_strerror="-l$ac_lib"
2643 break
2644 else
2645 echo "$as_me: failed program was:" >&5
2646 sed 's/^/| /' conftest.$ac_ext >&5
2649 rm -f conftest.err conftest.$ac_objext \
2650 conftest$ac_exeext conftest.$ac_ext
2651 done
2653 LIBS=$ac_func_search_save_LIBS
2655 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2656 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2657 if test "$ac_cv_search_strerror" != no; then
2658 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2663 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2664 am__api_version="1.9"
2665 # Find a good install program. We prefer a C program (faster),
2666 # so one script is as good as another. But avoid the broken or
2667 # incompatible versions:
2668 # SysV /etc/install, /usr/sbin/install
2669 # SunOS /usr/etc/install
2670 # IRIX /sbin/install
2671 # AIX /bin/install
2672 # AmigaOS /C/install, which installs bootblocks on floppy discs
2673 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2674 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2675 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2676 # OS/2's system install, which has a completely different semantic
2677 # ./install, which can be erroneously created by make from ./install.sh.
2678 # Reject install programs that cannot install multiple files.
2679 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2680 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2681 if test -z "$INSTALL"; then
2682 if test "${ac_cv_path_install+set}" = set; then
2683 echo $ECHO_N "(cached) $ECHO_C" >&6
2684 else
2685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686 for as_dir in $PATH
2688 IFS=$as_save_IFS
2689 test -z "$as_dir" && as_dir=.
2690 # Account for people who put trailing slashes in PATH elements.
2691 case $as_dir/ in
2692 ./ | .// | /cC/* | \
2693 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2694 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2695 /usr/ucb/* ) ;;
2697 # OSF1 and SCO ODT 3.0 have their own names for install.
2698 # Don't use installbsd from OSF since it installs stuff as root
2699 # by default.
2700 for ac_prog in ginstall scoinst install; do
2701 for ac_exec_ext in '' $ac_executable_extensions; do
2702 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2703 if test $ac_prog = install &&
2704 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2705 # AIX install. It has an incompatible calling convention.
2707 elif test $ac_prog = install &&
2708 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2709 # program-specific install script used by HP pwplus--don't use.
2711 else
2712 rm -rf conftest.one conftest.two conftest.dir
2713 echo one > conftest.one
2714 echo two > conftest.two
2715 mkdir conftest.dir
2716 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2717 test -s conftest.one && test -s conftest.two &&
2718 test -s conftest.dir/conftest.one &&
2719 test -s conftest.dir/conftest.two
2720 then
2721 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2722 break 3
2726 done
2727 done
2729 esac
2730 done
2732 rm -rf conftest.one conftest.two conftest.dir
2735 if test "${ac_cv_path_install+set}" = set; then
2736 INSTALL=$ac_cv_path_install
2737 else
2738 # As a last resort, use the slow shell script. Don't cache a
2739 # value for INSTALL within a source directory, because that will
2740 # break other packages using the cache if that directory is
2741 # removed, or if the value is a relative name.
2742 INSTALL=$ac_install_sh
2745 echo "$as_me:$LINENO: result: $INSTALL" >&5
2746 echo "${ECHO_T}$INSTALL" >&6
2748 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2749 # It thinks the first close brace ends the variable substitution.
2750 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2752 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2754 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2756 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2757 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2758 # Just in case
2759 sleep 1
2760 echo timestamp > conftest.file
2761 # Do `set' in a subshell so we don't clobber the current shell's
2762 # arguments. Must try -L first in case configure is actually a
2763 # symlink; some systems play weird games with the mod time of symlinks
2764 # (eg FreeBSD returns the mod time of the symlink's containing
2765 # directory).
2766 if (
2767 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2768 if test "$*" = "X"; then
2769 # -L didn't work.
2770 set X `ls -t $srcdir/configure conftest.file`
2772 rm -f conftest.file
2773 if test "$*" != "X $srcdir/configure conftest.file" \
2774 && test "$*" != "X conftest.file $srcdir/configure"; then
2776 # If neither matched, then we have a broken ls. This can happen
2777 # if, for instance, CONFIG_SHELL is bash and it inherits a
2778 # broken ls alias from the environment. This has actually
2779 # happened. Such a system could not be considered "sane".
2780 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2781 alias in your environment" >&5
2782 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2783 alias in your environment" >&2;}
2784 { (exit 1); exit 1; }; }
2787 test "$2" = conftest.file
2789 then
2790 # Ok.
2792 else
2793 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2794 Check your system clock" >&5
2795 echo "$as_me: error: newly created file is older than distributed files!
2796 Check your system clock" >&2;}
2797 { (exit 1); exit 1; }; }
2799 echo "$as_me:$LINENO: result: yes" >&5
2800 echo "${ECHO_T}yes" >&6
2801 test "$program_prefix" != NONE &&
2802 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2803 # Use a double $ so make ignores it.
2804 test "$program_suffix" != NONE &&
2805 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2806 # Double any \ or $. echo might interpret backslashes.
2807 # By default was `s,x,x', remove it if useless.
2808 cat <<\_ACEOF >conftest.sed
2809 s/[\\$]/&&/g;s/;s,x,x,$//
2810 _ACEOF
2811 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2812 rm conftest.sed
2814 # expand $ac_aux_dir to an absolute path
2815 am_aux_dir=`cd $ac_aux_dir && pwd`
2817 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2818 # Use eval to expand $SHELL
2819 if eval "$MISSING --run true"; then
2820 am_missing_run="$MISSING --run "
2821 else
2822 am_missing_run=
2823 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2824 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2827 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2828 # We used to keeping the `.' as first argument, in order to
2829 # allow $(mkdir_p) to be used without argument. As in
2830 # $(mkdir_p) $(somedir)
2831 # where $(somedir) is conditionally defined. However this is wrong
2832 # for two reasons:
2833 # 1. if the package is installed by a user who cannot write `.'
2834 # make install will fail,
2835 # 2. the above comment should most certainly read
2836 # $(mkdir_p) $(DESTDIR)$(somedir)
2837 # so it does not work when $(somedir) is undefined and
2838 # $(DESTDIR) is not.
2839 # To support the latter case, we have to write
2840 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2841 # so the `.' trick is pointless.
2842 mkdir_p='mkdir -p --'
2843 else
2844 # On NextStep and OpenStep, the `mkdir' command does not
2845 # recognize any option. It will interpret all options as
2846 # directories to create, and then abort because `.' already
2847 # exists.
2848 for d in ./-p ./--version;
2850 test -d $d && rmdir $d
2851 done
2852 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2853 if test -f "$ac_aux_dir/mkinstalldirs"; then
2854 mkdir_p='$(mkinstalldirs)'
2855 else
2856 mkdir_p='$(install_sh) -d'
2860 for ac_prog in gawk mawk nawk awk
2862 # Extract the first word of "$ac_prog", so it can be a program name with args.
2863 set dummy $ac_prog; ac_word=$2
2864 echo "$as_me:$LINENO: checking for $ac_word" >&5
2865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2866 if test "${ac_cv_prog_AWK+set}" = set; then
2867 echo $ECHO_N "(cached) $ECHO_C" >&6
2868 else
2869 if test -n "$AWK"; then
2870 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2871 else
2872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873 for as_dir in $PATH
2875 IFS=$as_save_IFS
2876 test -z "$as_dir" && as_dir=.
2877 for ac_exec_ext in '' $ac_executable_extensions; do
2878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2879 ac_cv_prog_AWK="$ac_prog"
2880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2881 break 2
2883 done
2884 done
2888 AWK=$ac_cv_prog_AWK
2889 if test -n "$AWK"; then
2890 echo "$as_me:$LINENO: result: $AWK" >&5
2891 echo "${ECHO_T}$AWK" >&6
2892 else
2893 echo "$as_me:$LINENO: result: no" >&5
2894 echo "${ECHO_T}no" >&6
2897 test -n "$AWK" && break
2898 done
2900 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2901 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2902 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2903 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2904 echo $ECHO_N "(cached) $ECHO_C" >&6
2905 else
2906 cat >conftest.make <<\_ACEOF
2907 all:
2908 @echo 'ac_maketemp="$(MAKE)"'
2909 _ACEOF
2910 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2911 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2912 if test -n "$ac_maketemp"; then
2913 eval ac_cv_prog_make_${ac_make}_set=yes
2914 else
2915 eval ac_cv_prog_make_${ac_make}_set=no
2917 rm -f conftest.make
2919 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2920 echo "$as_me:$LINENO: result: yes" >&5
2921 echo "${ECHO_T}yes" >&6
2922 SET_MAKE=
2923 else
2924 echo "$as_me:$LINENO: result: no" >&5
2925 echo "${ECHO_T}no" >&6
2926 SET_MAKE="MAKE=${MAKE-make}"
2929 rm -rf .tst 2>/dev/null
2930 mkdir .tst 2>/dev/null
2931 if test -d .tst; then
2932 am__leading_dot=.
2933 else
2934 am__leading_dot=_
2936 rmdir .tst 2>/dev/null
2938 DEPDIR="${am__leading_dot}deps"
2940 ac_config_commands="$ac_config_commands depfiles"
2943 am_make=${MAKE-make}
2944 cat > confinc << 'END'
2945 am__doit:
2946 @echo done
2947 .PHONY: am__doit
2949 # If we don't find an include directive, just comment out the code.
2950 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2951 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2952 am__include="#"
2953 am__quote=
2954 _am_result=none
2955 # First try GNU make style include.
2956 echo "include confinc" > confmf
2957 # We grep out `Entering directory' and `Leaving directory'
2958 # messages which can occur if `w' ends up in MAKEFLAGS.
2959 # In particular we don't look at `^make:' because GNU make might
2960 # be invoked under some other name (usually "gmake"), in which
2961 # case it prints its new name instead of `make'.
2962 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2963 am__include=include
2964 am__quote=
2965 _am_result=GNU
2967 # Now try BSD make style include.
2968 if test "$am__include" = "#"; then
2969 echo '.include "confinc"' > confmf
2970 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2971 am__include=.include
2972 am__quote="\""
2973 _am_result=BSD
2978 echo "$as_me:$LINENO: result: $_am_result" >&5
2979 echo "${ECHO_T}$_am_result" >&6
2980 rm -f confinc confmf
2982 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2983 if test "${enable_dependency_tracking+set}" = set; then
2984 enableval="$enable_dependency_tracking"
2987 if test "x$enable_dependency_tracking" != xno; then
2988 am_depcomp="$ac_aux_dir/depcomp"
2989 AMDEPBACKSLASH='\'
2993 if test "x$enable_dependency_tracking" != xno; then
2994 AMDEP_TRUE=
2995 AMDEP_FALSE='#'
2996 else
2997 AMDEP_TRUE='#'
2998 AMDEP_FALSE=
3003 # test to see if srcdir already configured
3004 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3005 test -f $srcdir/config.status; then
3006 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3007 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3008 { (exit 1); exit 1; }; }
3011 # test whether we have cygpath
3012 if test -z "$CYGPATH_W"; then
3013 if (cygpath --version) >/dev/null 2>/dev/null; then
3014 CYGPATH_W='cygpath -w'
3015 else
3016 CYGPATH_W=echo
3021 # Define the identity of the package.
3022 PACKAGE=gprof
3023 VERSION=${BFD_VERSION}
3026 cat >>confdefs.h <<_ACEOF
3027 #define PACKAGE "$PACKAGE"
3028 _ACEOF
3031 cat >>confdefs.h <<_ACEOF
3032 #define VERSION "$VERSION"
3033 _ACEOF
3035 # Some tools Automake needs.
3037 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3040 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3043 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3046 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3049 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3051 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3053 # Installed binaries are usually stripped using `strip' when the user
3054 # run `make install-strip'. However `strip' might not be the right
3055 # tool to use in cross-compilation environments, therefore Automake
3056 # will honor the `STRIP' environment variable to overrule this program.
3057 if test "$cross_compiling" != no; then
3058 if test -n "$ac_tool_prefix"; then
3059 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3060 set dummy ${ac_tool_prefix}strip; ac_word=$2
3061 echo "$as_me:$LINENO: checking for $ac_word" >&5
3062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3063 if test "${ac_cv_prog_STRIP+set}" = set; then
3064 echo $ECHO_N "(cached) $ECHO_C" >&6
3065 else
3066 if test -n "$STRIP"; then
3067 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3068 else
3069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070 for as_dir in $PATH
3072 IFS=$as_save_IFS
3073 test -z "$as_dir" && as_dir=.
3074 for ac_exec_ext in '' $ac_executable_extensions; do
3075 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3076 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3078 break 2
3080 done
3081 done
3085 STRIP=$ac_cv_prog_STRIP
3086 if test -n "$STRIP"; then
3087 echo "$as_me:$LINENO: result: $STRIP" >&5
3088 echo "${ECHO_T}$STRIP" >&6
3089 else
3090 echo "$as_me:$LINENO: result: no" >&5
3091 echo "${ECHO_T}no" >&6
3095 if test -z "$ac_cv_prog_STRIP"; then
3096 ac_ct_STRIP=$STRIP
3097 # Extract the first word of "strip", so it can be a program name with args.
3098 set dummy strip; ac_word=$2
3099 echo "$as_me:$LINENO: checking for $ac_word" >&5
3100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3101 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3102 echo $ECHO_N "(cached) $ECHO_C" >&6
3103 else
3104 if test -n "$ac_ct_STRIP"; then
3105 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3106 else
3107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108 for as_dir in $PATH
3110 IFS=$as_save_IFS
3111 test -z "$as_dir" && as_dir=.
3112 for ac_exec_ext in '' $ac_executable_extensions; do
3113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3114 ac_cv_prog_ac_ct_STRIP="strip"
3115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3116 break 2
3118 done
3119 done
3121 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3124 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3125 if test -n "$ac_ct_STRIP"; then
3126 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3127 echo "${ECHO_T}$ac_ct_STRIP" >&6
3128 else
3129 echo "$as_me:$LINENO: result: no" >&5
3130 echo "${ECHO_T}no" >&6
3133 STRIP=$ac_ct_STRIP
3134 else
3135 STRIP="$ac_cv_prog_STRIP"
3139 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3141 # We need awk for the "check" target. The system "awk" is bad on
3142 # some platforms.
3143 # Always define AMTAR for backward compatibility.
3145 AMTAR=${AMTAR-"${am_missing_run}tar"}
3147 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3152 depcc="$CC" am_compiler_list=
3154 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3155 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3156 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3157 echo $ECHO_N "(cached) $ECHO_C" >&6
3158 else
3159 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3160 # We make a subdir and do the tests there. Otherwise we can end up
3161 # making bogus files that we don't know about and never remove. For
3162 # instance it was reported that on HP-UX the gcc test will end up
3163 # making a dummy file named `D' -- because `-MD' means `put the output
3164 # in D'.
3165 mkdir conftest.dir
3166 # Copy depcomp to subdir because otherwise we won't find it if we're
3167 # using a relative directory.
3168 cp "$am_depcomp" conftest.dir
3169 cd conftest.dir
3170 # We will build objects and dependencies in a subdirectory because
3171 # it helps to detect inapplicable dependency modes. For instance
3172 # both Tru64's cc and ICC support -MD to output dependencies as a
3173 # side effect of compilation, but ICC will put the dependencies in
3174 # the current directory while Tru64 will put them in the object
3175 # directory.
3176 mkdir sub
3178 am_cv_CC_dependencies_compiler_type=none
3179 if test "$am_compiler_list" = ""; then
3180 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3182 for depmode in $am_compiler_list; do
3183 # Setup a source with many dependencies, because some compilers
3184 # like to wrap large dependency lists on column 80 (with \), and
3185 # we should not choose a depcomp mode which is confused by this.
3187 # We need to recreate these files for each test, as the compiler may
3188 # overwrite some of them when testing with obscure command lines.
3189 # This happens at least with the AIX C compiler.
3190 : > sub/conftest.c
3191 for i in 1 2 3 4 5 6; do
3192 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3193 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3194 # Solaris 8's {/usr,}/bin/sh.
3195 touch sub/conftst$i.h
3196 done
3197 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3199 case $depmode in
3200 nosideeffect)
3201 # after this tag, mechanisms are not by side-effect, so they'll
3202 # only be used when explicitly requested
3203 if test "x$enable_dependency_tracking" = xyes; then
3204 continue
3205 else
3206 break
3209 none) break ;;
3210 esac
3211 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3212 # mode. It turns out that the SunPro C++ compiler does not properly
3213 # handle `-M -o', and we need to detect this.
3214 if depmode=$depmode \
3215 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3216 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3217 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3218 >/dev/null 2>conftest.err &&
3219 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3220 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3221 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3222 # icc doesn't choke on unknown options, it will just issue warnings
3223 # or remarks (even with -Werror). So we grep stderr for any message
3224 # that says an option was ignored or not supported.
3225 # When given -MP, icc 7.0 and 7.1 complain thusly:
3226 # icc: Command line warning: ignoring option '-M'; no argument required
3227 # The diagnosis changed in icc 8.0:
3228 # icc: Command line remark: option '-MP' not supported
3229 if (grep 'ignoring option' conftest.err ||
3230 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3231 am_cv_CC_dependencies_compiler_type=$depmode
3232 break
3235 done
3237 cd ..
3238 rm -rf conftest.dir
3239 else
3240 am_cv_CC_dependencies_compiler_type=none
3244 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3245 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3246 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3251 test "x$enable_dependency_tracking" != xno \
3252 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3253 am__fastdepCC_TRUE=
3254 am__fastdepCC_FALSE='#'
3255 else
3256 am__fastdepCC_TRUE='#'
3257 am__fastdepCC_FALSE=
3263 ac_config_headers="$ac_config_headers gconfig.h:gconfig.in"
3266 ac_ext=c
3267 ac_cpp='$CPP $CPPFLAGS'
3268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3271 if test -n "$ac_tool_prefix"; then
3272 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3273 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3274 echo "$as_me:$LINENO: checking for $ac_word" >&5
3275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3276 if test "${ac_cv_prog_CC+set}" = set; then
3277 echo $ECHO_N "(cached) $ECHO_C" >&6
3278 else
3279 if test -n "$CC"; then
3280 ac_cv_prog_CC="$CC" # Let the user override the test.
3281 else
3282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283 for as_dir in $PATH
3285 IFS=$as_save_IFS
3286 test -z "$as_dir" && as_dir=.
3287 for ac_exec_ext in '' $ac_executable_extensions; do
3288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3289 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3291 break 2
3293 done
3294 done
3298 CC=$ac_cv_prog_CC
3299 if test -n "$CC"; then
3300 echo "$as_me:$LINENO: result: $CC" >&5
3301 echo "${ECHO_T}$CC" >&6
3302 else
3303 echo "$as_me:$LINENO: result: no" >&5
3304 echo "${ECHO_T}no" >&6
3308 if test -z "$ac_cv_prog_CC"; then
3309 ac_ct_CC=$CC
3310 # Extract the first word of "gcc", so it can be a program name with args.
3311 set dummy gcc; ac_word=$2
3312 echo "$as_me:$LINENO: checking for $ac_word" >&5
3313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3314 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3315 echo $ECHO_N "(cached) $ECHO_C" >&6
3316 else
3317 if test -n "$ac_ct_CC"; then
3318 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3319 else
3320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321 for as_dir in $PATH
3323 IFS=$as_save_IFS
3324 test -z "$as_dir" && as_dir=.
3325 for ac_exec_ext in '' $ac_executable_extensions; do
3326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3327 ac_cv_prog_ac_ct_CC="gcc"
3328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3329 break 2
3331 done
3332 done
3336 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3337 if test -n "$ac_ct_CC"; then
3338 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3339 echo "${ECHO_T}$ac_ct_CC" >&6
3340 else
3341 echo "$as_me:$LINENO: result: no" >&5
3342 echo "${ECHO_T}no" >&6
3345 CC=$ac_ct_CC
3346 else
3347 CC="$ac_cv_prog_CC"
3350 if test -z "$CC"; then
3351 if test -n "$ac_tool_prefix"; then
3352 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3353 set dummy ${ac_tool_prefix}cc; ac_word=$2
3354 echo "$as_me:$LINENO: checking for $ac_word" >&5
3355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3356 if test "${ac_cv_prog_CC+set}" = set; then
3357 echo $ECHO_N "(cached) $ECHO_C" >&6
3358 else
3359 if test -n "$CC"; then
3360 ac_cv_prog_CC="$CC" # Let the user override the test.
3361 else
3362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363 for as_dir in $PATH
3365 IFS=$as_save_IFS
3366 test -z "$as_dir" && as_dir=.
3367 for ac_exec_ext in '' $ac_executable_extensions; do
3368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3369 ac_cv_prog_CC="${ac_tool_prefix}cc"
3370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3371 break 2
3373 done
3374 done
3378 CC=$ac_cv_prog_CC
3379 if test -n "$CC"; then
3380 echo "$as_me:$LINENO: result: $CC" >&5
3381 echo "${ECHO_T}$CC" >&6
3382 else
3383 echo "$as_me:$LINENO: result: no" >&5
3384 echo "${ECHO_T}no" >&6
3388 if test -z "$ac_cv_prog_CC"; then
3389 ac_ct_CC=$CC
3390 # Extract the first word of "cc", so it can be a program name with args.
3391 set dummy cc; ac_word=$2
3392 echo "$as_me:$LINENO: checking for $ac_word" >&5
3393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3394 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3395 echo $ECHO_N "(cached) $ECHO_C" >&6
3396 else
3397 if test -n "$ac_ct_CC"; then
3398 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3399 else
3400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3401 for as_dir in $PATH
3403 IFS=$as_save_IFS
3404 test -z "$as_dir" && as_dir=.
3405 for ac_exec_ext in '' $ac_executable_extensions; do
3406 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3407 ac_cv_prog_ac_ct_CC="cc"
3408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3409 break 2
3411 done
3412 done
3416 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3417 if test -n "$ac_ct_CC"; then
3418 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3419 echo "${ECHO_T}$ac_ct_CC" >&6
3420 else
3421 echo "$as_me:$LINENO: result: no" >&5
3422 echo "${ECHO_T}no" >&6
3425 CC=$ac_ct_CC
3426 else
3427 CC="$ac_cv_prog_CC"
3431 if test -z "$CC"; then
3432 # Extract the first word of "cc", so it can be a program name with args.
3433 set dummy cc; ac_word=$2
3434 echo "$as_me:$LINENO: checking for $ac_word" >&5
3435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3436 if test "${ac_cv_prog_CC+set}" = set; then
3437 echo $ECHO_N "(cached) $ECHO_C" >&6
3438 else
3439 if test -n "$CC"; then
3440 ac_cv_prog_CC="$CC" # Let the user override the test.
3441 else
3442 ac_prog_rejected=no
3443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444 for as_dir in $PATH
3446 IFS=$as_save_IFS
3447 test -z "$as_dir" && as_dir=.
3448 for ac_exec_ext in '' $ac_executable_extensions; do
3449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3450 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3451 ac_prog_rejected=yes
3452 continue
3454 ac_cv_prog_CC="cc"
3455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3456 break 2
3458 done
3459 done
3461 if test $ac_prog_rejected = yes; then
3462 # We found a bogon in the path, so make sure we never use it.
3463 set dummy $ac_cv_prog_CC
3464 shift
3465 if test $# != 0; then
3466 # We chose a different compiler from the bogus one.
3467 # However, it has the same basename, so the bogon will be chosen
3468 # first if we set CC to just the basename; use the full file name.
3469 shift
3470 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3475 CC=$ac_cv_prog_CC
3476 if test -n "$CC"; then
3477 echo "$as_me:$LINENO: result: $CC" >&5
3478 echo "${ECHO_T}$CC" >&6
3479 else
3480 echo "$as_me:$LINENO: result: no" >&5
3481 echo "${ECHO_T}no" >&6
3485 if test -z "$CC"; then
3486 if test -n "$ac_tool_prefix"; then
3487 for ac_prog in cl
3489 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3490 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3491 echo "$as_me:$LINENO: checking for $ac_word" >&5
3492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3493 if test "${ac_cv_prog_CC+set}" = set; then
3494 echo $ECHO_N "(cached) $ECHO_C" >&6
3495 else
3496 if test -n "$CC"; then
3497 ac_cv_prog_CC="$CC" # Let the user override the test.
3498 else
3499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3500 for as_dir in $PATH
3502 IFS=$as_save_IFS
3503 test -z "$as_dir" && as_dir=.
3504 for ac_exec_ext in '' $ac_executable_extensions; do
3505 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3506 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3508 break 2
3510 done
3511 done
3515 CC=$ac_cv_prog_CC
3516 if test -n "$CC"; then
3517 echo "$as_me:$LINENO: result: $CC" >&5
3518 echo "${ECHO_T}$CC" >&6
3519 else
3520 echo "$as_me:$LINENO: result: no" >&5
3521 echo "${ECHO_T}no" >&6
3524 test -n "$CC" && break
3525 done
3527 if test -z "$CC"; then
3528 ac_ct_CC=$CC
3529 for ac_prog in cl
3531 # Extract the first word of "$ac_prog", so it can be a program name with args.
3532 set dummy $ac_prog; ac_word=$2
3533 echo "$as_me:$LINENO: checking for $ac_word" >&5
3534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3535 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3536 echo $ECHO_N "(cached) $ECHO_C" >&6
3537 else
3538 if test -n "$ac_ct_CC"; then
3539 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3540 else
3541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3542 for as_dir in $PATH
3544 IFS=$as_save_IFS
3545 test -z "$as_dir" && as_dir=.
3546 for ac_exec_ext in '' $ac_executable_extensions; do
3547 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3548 ac_cv_prog_ac_ct_CC="$ac_prog"
3549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3550 break 2
3552 done
3553 done
3557 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3558 if test -n "$ac_ct_CC"; then
3559 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3560 echo "${ECHO_T}$ac_ct_CC" >&6
3561 else
3562 echo "$as_me:$LINENO: result: no" >&5
3563 echo "${ECHO_T}no" >&6
3566 test -n "$ac_ct_CC" && break
3567 done
3569 CC=$ac_ct_CC
3575 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3576 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3577 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3578 See \`config.log' for more details." >&5
3579 echo "$as_me: error: no acceptable C compiler found in \$PATH
3580 See \`config.log' for more details." >&2;}
3581 { (exit 1); exit 1; }; }; }
3583 # Provide some information about the compiler.
3584 echo "$as_me:$LINENO:" \
3585 "checking for C compiler version" >&5
3586 ac_compiler=`set X $ac_compile; echo $2`
3587 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3588 (eval $ac_compiler --version </dev/null >&5) 2>&5
3589 ac_status=$?
3590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591 (exit $ac_status); }
3592 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3593 (eval $ac_compiler -v </dev/null >&5) 2>&5
3594 ac_status=$?
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); }
3597 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3598 (eval $ac_compiler -V </dev/null >&5) 2>&5
3599 ac_status=$?
3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); }
3603 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3604 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3605 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3606 echo $ECHO_N "(cached) $ECHO_C" >&6
3607 else
3608 cat >conftest.$ac_ext <<_ACEOF
3609 /* confdefs.h. */
3610 _ACEOF
3611 cat confdefs.h >>conftest.$ac_ext
3612 cat >>conftest.$ac_ext <<_ACEOF
3613 /* end confdefs.h. */
3616 main ()
3618 #ifndef __GNUC__
3619 choke me
3620 #endif
3623 return 0;
3625 _ACEOF
3626 rm -f conftest.$ac_objext
3627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3628 (eval $ac_compile) 2>conftest.er1
3629 ac_status=$?
3630 grep -v '^ *+' conftest.er1 >conftest.err
3631 rm -f conftest.er1
3632 cat conftest.err >&5
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); } &&
3635 { ac_try='test -z "$ac_c_werror_flag"
3636 || test ! -s conftest.err'
3637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3638 (eval $ac_try) 2>&5
3639 ac_status=$?
3640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); }; } &&
3642 { ac_try='test -s conftest.$ac_objext'
3643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3644 (eval $ac_try) 2>&5
3645 ac_status=$?
3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647 (exit $ac_status); }; }; then
3648 ac_compiler_gnu=yes
3649 else
3650 echo "$as_me: failed program was:" >&5
3651 sed 's/^/| /' conftest.$ac_ext >&5
3653 ac_compiler_gnu=no
3655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3656 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3659 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3660 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3661 GCC=`test $ac_compiler_gnu = yes && echo yes`
3662 ac_test_CFLAGS=${CFLAGS+set}
3663 ac_save_CFLAGS=$CFLAGS
3664 CFLAGS="-g"
3665 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3666 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3667 if test "${ac_cv_prog_cc_g+set}" = set; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3669 else
3670 cat >conftest.$ac_ext <<_ACEOF
3671 /* confdefs.h. */
3672 _ACEOF
3673 cat confdefs.h >>conftest.$ac_ext
3674 cat >>conftest.$ac_ext <<_ACEOF
3675 /* end confdefs.h. */
3678 main ()
3682 return 0;
3684 _ACEOF
3685 rm -f conftest.$ac_objext
3686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3687 (eval $ac_compile) 2>conftest.er1
3688 ac_status=$?
3689 grep -v '^ *+' conftest.er1 >conftest.err
3690 rm -f conftest.er1
3691 cat conftest.err >&5
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); } &&
3694 { ac_try='test -z "$ac_c_werror_flag"
3695 || test ! -s conftest.err'
3696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3697 (eval $ac_try) 2>&5
3698 ac_status=$?
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); }; } &&
3701 { ac_try='test -s conftest.$ac_objext'
3702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3703 (eval $ac_try) 2>&5
3704 ac_status=$?
3705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706 (exit $ac_status); }; }; then
3707 ac_cv_prog_cc_g=yes
3708 else
3709 echo "$as_me: failed program was:" >&5
3710 sed 's/^/| /' conftest.$ac_ext >&5
3712 ac_cv_prog_cc_g=no
3714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3716 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3717 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3718 if test "$ac_test_CFLAGS" = set; then
3719 CFLAGS=$ac_save_CFLAGS
3720 elif test $ac_cv_prog_cc_g = yes; then
3721 if test "$GCC" = yes; then
3722 CFLAGS="-g -O2"
3723 else
3724 CFLAGS="-g"
3726 else
3727 if test "$GCC" = yes; then
3728 CFLAGS="-O2"
3729 else
3730 CFLAGS=
3733 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3734 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3735 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3736 echo $ECHO_N "(cached) $ECHO_C" >&6
3737 else
3738 ac_cv_prog_cc_stdc=no
3739 ac_save_CC=$CC
3740 cat >conftest.$ac_ext <<_ACEOF
3741 /* confdefs.h. */
3742 _ACEOF
3743 cat confdefs.h >>conftest.$ac_ext
3744 cat >>conftest.$ac_ext <<_ACEOF
3745 /* end confdefs.h. */
3746 #include <stdarg.h>
3747 #include <stdio.h>
3748 #include <sys/types.h>
3749 #include <sys/stat.h>
3750 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3751 struct buf { int x; };
3752 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3753 static char *e (p, i)
3754 char **p;
3755 int i;
3757 return p[i];
3759 static char *f (char * (*g) (char **, int), char **p, ...)
3761 char *s;
3762 va_list v;
3763 va_start (v,p);
3764 s = g (p, va_arg (v,int));
3765 va_end (v);
3766 return s;
3769 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3770 function prototypes and stuff, but not '\xHH' hex character constants.
3771 These don't provoke an error unfortunately, instead are silently treated
3772 as 'x'. The following induces an error, until -std1 is added to get
3773 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3774 array size at least. It's necessary to write '\x00'==0 to get something
3775 that's true only with -std1. */
3776 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3778 int test (int i, double x);
3779 struct s1 {int (*f) (int a);};
3780 struct s2 {int (*f) (double a);};
3781 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3782 int argc;
3783 char **argv;
3785 main ()
3787 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3789 return 0;
3791 _ACEOF
3792 # Don't try gcc -ansi; that turns off useful extensions and
3793 # breaks some systems' header files.
3794 # AIX -qlanglvl=ansi
3795 # Ultrix and OSF/1 -std1
3796 # HP-UX 10.20 and later -Ae
3797 # HP-UX older versions -Aa -D_HPUX_SOURCE
3798 # SVR4 -Xc -D__EXTENSIONS__
3799 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3801 CC="$ac_save_CC $ac_arg"
3802 rm -f conftest.$ac_objext
3803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3804 (eval $ac_compile) 2>conftest.er1
3805 ac_status=$?
3806 grep -v '^ *+' conftest.er1 >conftest.err
3807 rm -f conftest.er1
3808 cat conftest.err >&5
3809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); } &&
3811 { ac_try='test -z "$ac_c_werror_flag"
3812 || test ! -s conftest.err'
3813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3814 (eval $ac_try) 2>&5
3815 ac_status=$?
3816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817 (exit $ac_status); }; } &&
3818 { ac_try='test -s conftest.$ac_objext'
3819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3820 (eval $ac_try) 2>&5
3821 ac_status=$?
3822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823 (exit $ac_status); }; }; then
3824 ac_cv_prog_cc_stdc=$ac_arg
3825 break
3826 else
3827 echo "$as_me: failed program was:" >&5
3828 sed 's/^/| /' conftest.$ac_ext >&5
3831 rm -f conftest.err conftest.$ac_objext
3832 done
3833 rm -f conftest.$ac_ext conftest.$ac_objext
3834 CC=$ac_save_CC
3838 case "x$ac_cv_prog_cc_stdc" in
3839 x|xno)
3840 echo "$as_me:$LINENO: result: none needed" >&5
3841 echo "${ECHO_T}none needed" >&6 ;;
3843 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3844 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3845 CC="$CC $ac_cv_prog_cc_stdc" ;;
3846 esac
3848 # Some people use a C++ compiler to compile C. Since we use `exit',
3849 # in C++ we need to declare it. In case someone uses the same compiler
3850 # for both compiling C and C++ we need to have the C++ compiler decide
3851 # the declaration of exit, since it's the most demanding environment.
3852 cat >conftest.$ac_ext <<_ACEOF
3853 #ifndef __cplusplus
3854 choke me
3855 #endif
3856 _ACEOF
3857 rm -f conftest.$ac_objext
3858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3859 (eval $ac_compile) 2>conftest.er1
3860 ac_status=$?
3861 grep -v '^ *+' conftest.er1 >conftest.err
3862 rm -f conftest.er1
3863 cat conftest.err >&5
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); } &&
3866 { ac_try='test -z "$ac_c_werror_flag"
3867 || test ! -s conftest.err'
3868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3869 (eval $ac_try) 2>&5
3870 ac_status=$?
3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); }; } &&
3873 { ac_try='test -s conftest.$ac_objext'
3874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3875 (eval $ac_try) 2>&5
3876 ac_status=$?
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); }; }; then
3879 for ac_declaration in \
3880 '' \
3881 'extern "C" void std::exit (int) throw (); using std::exit;' \
3882 'extern "C" void std::exit (int); using std::exit;' \
3883 'extern "C" void exit (int) throw ();' \
3884 'extern "C" void exit (int);' \
3885 'void exit (int);'
3887 cat >conftest.$ac_ext <<_ACEOF
3888 /* confdefs.h. */
3889 _ACEOF
3890 cat confdefs.h >>conftest.$ac_ext
3891 cat >>conftest.$ac_ext <<_ACEOF
3892 /* end confdefs.h. */
3893 $ac_declaration
3894 #include <stdlib.h>
3896 main ()
3898 exit (42);
3900 return 0;
3902 _ACEOF
3903 rm -f conftest.$ac_objext
3904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3905 (eval $ac_compile) 2>conftest.er1
3906 ac_status=$?
3907 grep -v '^ *+' conftest.er1 >conftest.err
3908 rm -f conftest.er1
3909 cat conftest.err >&5
3910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); } &&
3912 { ac_try='test -z "$ac_c_werror_flag"
3913 || test ! -s conftest.err'
3914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3915 (eval $ac_try) 2>&5
3916 ac_status=$?
3917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918 (exit $ac_status); }; } &&
3919 { ac_try='test -s conftest.$ac_objext'
3920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3921 (eval $ac_try) 2>&5
3922 ac_status=$?
3923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924 (exit $ac_status); }; }; then
3926 else
3927 echo "$as_me: failed program was:" >&5
3928 sed 's/^/| /' conftest.$ac_ext >&5
3930 continue
3932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3933 cat >conftest.$ac_ext <<_ACEOF
3934 /* confdefs.h. */
3935 _ACEOF
3936 cat confdefs.h >>conftest.$ac_ext
3937 cat >>conftest.$ac_ext <<_ACEOF
3938 /* end confdefs.h. */
3939 $ac_declaration
3941 main ()
3943 exit (42);
3945 return 0;
3947 _ACEOF
3948 rm -f conftest.$ac_objext
3949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3950 (eval $ac_compile) 2>conftest.er1
3951 ac_status=$?
3952 grep -v '^ *+' conftest.er1 >conftest.err
3953 rm -f conftest.er1
3954 cat conftest.err >&5
3955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956 (exit $ac_status); } &&
3957 { ac_try='test -z "$ac_c_werror_flag"
3958 || test ! -s conftest.err'
3959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3960 (eval $ac_try) 2>&5
3961 ac_status=$?
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); }; } &&
3964 { ac_try='test -s conftest.$ac_objext'
3965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3966 (eval $ac_try) 2>&5
3967 ac_status=$?
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); }; }; then
3970 break
3971 else
3972 echo "$as_me: failed program was:" >&5
3973 sed 's/^/| /' conftest.$ac_ext >&5
3976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3977 done
3978 rm -f conftest*
3979 if test -n "$ac_declaration"; then
3980 echo '#ifdef __cplusplus' >>confdefs.h
3981 echo $ac_declaration >>confdefs.h
3982 echo '#endif' >>confdefs.h
3985 else
3986 echo "$as_me: failed program was:" >&5
3987 sed 's/^/| /' conftest.$ac_ext >&5
3990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3991 ac_ext=c
3992 ac_cpp='$CPP $CPPFLAGS'
3993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3998 cat >>confdefs.h <<\_ACEOF
3999 #define _GNU_SOURCE 1
4000 _ACEOF
4003 ac_ext=c
4004 ac_cpp='$CPP $CPPFLAGS'
4005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4008 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4009 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4010 # On Suns, sometimes $CPP names a directory.
4011 if test -n "$CPP" && test -d "$CPP"; then
4012 CPP=
4014 if test -z "$CPP"; then
4015 if test "${ac_cv_prog_CPP+set}" = set; then
4016 echo $ECHO_N "(cached) $ECHO_C" >&6
4017 else
4018 # Double quotes because CPP needs to be expanded
4019 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4021 ac_preproc_ok=false
4022 for ac_c_preproc_warn_flag in '' yes
4024 # Use a header file that comes with gcc, so configuring glibc
4025 # with a fresh cross-compiler works.
4026 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4027 # <limits.h> exists even on freestanding compilers.
4028 # On the NeXT, cc -E runs the code through the compiler's parser,
4029 # not just through cpp. "Syntax error" is here to catch this case.
4030 cat >conftest.$ac_ext <<_ACEOF
4031 /* confdefs.h. */
4032 _ACEOF
4033 cat confdefs.h >>conftest.$ac_ext
4034 cat >>conftest.$ac_ext <<_ACEOF
4035 /* end confdefs.h. */
4036 #ifdef __STDC__
4037 # include <limits.h>
4038 #else
4039 # include <assert.h>
4040 #endif
4041 Syntax error
4042 _ACEOF
4043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4044 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4045 ac_status=$?
4046 grep -v '^ *+' conftest.er1 >conftest.err
4047 rm -f conftest.er1
4048 cat conftest.err >&5
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); } >/dev/null; then
4051 if test -s conftest.err; then
4052 ac_cpp_err=$ac_c_preproc_warn_flag
4053 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4054 else
4055 ac_cpp_err=
4057 else
4058 ac_cpp_err=yes
4060 if test -z "$ac_cpp_err"; then
4062 else
4063 echo "$as_me: failed program was:" >&5
4064 sed 's/^/| /' conftest.$ac_ext >&5
4066 # Broken: fails on valid input.
4067 continue
4069 rm -f conftest.err conftest.$ac_ext
4071 # OK, works on sane cases. Now check whether non-existent headers
4072 # can be detected and how.
4073 cat >conftest.$ac_ext <<_ACEOF
4074 /* confdefs.h. */
4075 _ACEOF
4076 cat confdefs.h >>conftest.$ac_ext
4077 cat >>conftest.$ac_ext <<_ACEOF
4078 /* end confdefs.h. */
4079 #include <ac_nonexistent.h>
4080 _ACEOF
4081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4083 ac_status=$?
4084 grep -v '^ *+' conftest.er1 >conftest.err
4085 rm -f conftest.er1
4086 cat conftest.err >&5
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); } >/dev/null; then
4089 if test -s conftest.err; then
4090 ac_cpp_err=$ac_c_preproc_warn_flag
4091 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4092 else
4093 ac_cpp_err=
4095 else
4096 ac_cpp_err=yes
4098 if test -z "$ac_cpp_err"; then
4099 # Broken: success on invalid input.
4100 continue
4101 else
4102 echo "$as_me: failed program was:" >&5
4103 sed 's/^/| /' conftest.$ac_ext >&5
4105 # Passes both tests.
4106 ac_preproc_ok=:
4107 break
4109 rm -f conftest.err conftest.$ac_ext
4111 done
4112 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4113 rm -f conftest.err conftest.$ac_ext
4114 if $ac_preproc_ok; then
4115 break
4118 done
4119 ac_cv_prog_CPP=$CPP
4122 CPP=$ac_cv_prog_CPP
4123 else
4124 ac_cv_prog_CPP=$CPP
4126 echo "$as_me:$LINENO: result: $CPP" >&5
4127 echo "${ECHO_T}$CPP" >&6
4128 ac_preproc_ok=false
4129 for ac_c_preproc_warn_flag in '' yes
4131 # Use a header file that comes with gcc, so configuring glibc
4132 # with a fresh cross-compiler works.
4133 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4134 # <limits.h> exists even on freestanding compilers.
4135 # On the NeXT, cc -E runs the code through the compiler's parser,
4136 # not just through cpp. "Syntax error" is here to catch this case.
4137 cat >conftest.$ac_ext <<_ACEOF
4138 /* confdefs.h. */
4139 _ACEOF
4140 cat confdefs.h >>conftest.$ac_ext
4141 cat >>conftest.$ac_ext <<_ACEOF
4142 /* end confdefs.h. */
4143 #ifdef __STDC__
4144 # include <limits.h>
4145 #else
4146 # include <assert.h>
4147 #endif
4148 Syntax error
4149 _ACEOF
4150 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4151 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4152 ac_status=$?
4153 grep -v '^ *+' conftest.er1 >conftest.err
4154 rm -f conftest.er1
4155 cat conftest.err >&5
4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157 (exit $ac_status); } >/dev/null; then
4158 if test -s conftest.err; then
4159 ac_cpp_err=$ac_c_preproc_warn_flag
4160 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4161 else
4162 ac_cpp_err=
4164 else
4165 ac_cpp_err=yes
4167 if test -z "$ac_cpp_err"; then
4169 else
4170 echo "$as_me: failed program was:" >&5
4171 sed 's/^/| /' conftest.$ac_ext >&5
4173 # Broken: fails on valid input.
4174 continue
4176 rm -f conftest.err conftest.$ac_ext
4178 # OK, works on sane cases. Now check whether non-existent headers
4179 # can be detected and how.
4180 cat >conftest.$ac_ext <<_ACEOF
4181 /* confdefs.h. */
4182 _ACEOF
4183 cat confdefs.h >>conftest.$ac_ext
4184 cat >>conftest.$ac_ext <<_ACEOF
4185 /* end confdefs.h. */
4186 #include <ac_nonexistent.h>
4187 _ACEOF
4188 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4189 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4190 ac_status=$?
4191 grep -v '^ *+' conftest.er1 >conftest.err
4192 rm -f conftest.er1
4193 cat conftest.err >&5
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); } >/dev/null; then
4196 if test -s conftest.err; then
4197 ac_cpp_err=$ac_c_preproc_warn_flag
4198 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4199 else
4200 ac_cpp_err=
4202 else
4203 ac_cpp_err=yes
4205 if test -z "$ac_cpp_err"; then
4206 # Broken: success on invalid input.
4207 continue
4208 else
4209 echo "$as_me: failed program was:" >&5
4210 sed 's/^/| /' conftest.$ac_ext >&5
4212 # Passes both tests.
4213 ac_preproc_ok=:
4214 break
4216 rm -f conftest.err conftest.$ac_ext
4218 done
4219 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4220 rm -f conftest.err conftest.$ac_ext
4221 if $ac_preproc_ok; then
4223 else
4224 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4225 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4226 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4227 See \`config.log' for more details." >&5
4228 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4229 See \`config.log' for more details." >&2;}
4230 { (exit 1); exit 1; }; }; }
4233 ac_ext=c
4234 ac_cpp='$CPP $CPPFLAGS'
4235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4240 echo "$as_me:$LINENO: checking for egrep" >&5
4241 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4242 if test "${ac_cv_prog_egrep+set}" = set; then
4243 echo $ECHO_N "(cached) $ECHO_C" >&6
4244 else
4245 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4246 then ac_cv_prog_egrep='grep -E'
4247 else ac_cv_prog_egrep='egrep'
4250 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4251 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4252 EGREP=$ac_cv_prog_egrep
4255 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4256 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4257 if test "${ac_cv_header_stdc+set}" = set; then
4258 echo $ECHO_N "(cached) $ECHO_C" >&6
4259 else
4260 cat >conftest.$ac_ext <<_ACEOF
4261 /* confdefs.h. */
4262 _ACEOF
4263 cat confdefs.h >>conftest.$ac_ext
4264 cat >>conftest.$ac_ext <<_ACEOF
4265 /* end confdefs.h. */
4266 #include <stdlib.h>
4267 #include <stdarg.h>
4268 #include <string.h>
4269 #include <float.h>
4272 main ()
4276 return 0;
4278 _ACEOF
4279 rm -f conftest.$ac_objext
4280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4281 (eval $ac_compile) 2>conftest.er1
4282 ac_status=$?
4283 grep -v '^ *+' conftest.er1 >conftest.err
4284 rm -f conftest.er1
4285 cat conftest.err >&5
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); } &&
4288 { ac_try='test -z "$ac_c_werror_flag"
4289 || test ! -s conftest.err'
4290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4291 (eval $ac_try) 2>&5
4292 ac_status=$?
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); }; } &&
4295 { ac_try='test -s conftest.$ac_objext'
4296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4297 (eval $ac_try) 2>&5
4298 ac_status=$?
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); }; }; then
4301 ac_cv_header_stdc=yes
4302 else
4303 echo "$as_me: failed program was:" >&5
4304 sed 's/^/| /' conftest.$ac_ext >&5
4306 ac_cv_header_stdc=no
4308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4310 if test $ac_cv_header_stdc = yes; then
4311 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4312 cat >conftest.$ac_ext <<_ACEOF
4313 /* confdefs.h. */
4314 _ACEOF
4315 cat confdefs.h >>conftest.$ac_ext
4316 cat >>conftest.$ac_ext <<_ACEOF
4317 /* end confdefs.h. */
4318 #include <string.h>
4320 _ACEOF
4321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4322 $EGREP "memchr" >/dev/null 2>&1; then
4324 else
4325 ac_cv_header_stdc=no
4327 rm -f conftest*
4331 if test $ac_cv_header_stdc = yes; then
4332 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4333 cat >conftest.$ac_ext <<_ACEOF
4334 /* confdefs.h. */
4335 _ACEOF
4336 cat confdefs.h >>conftest.$ac_ext
4337 cat >>conftest.$ac_ext <<_ACEOF
4338 /* end confdefs.h. */
4339 #include <stdlib.h>
4341 _ACEOF
4342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4343 $EGREP "free" >/dev/null 2>&1; then
4345 else
4346 ac_cv_header_stdc=no
4348 rm -f conftest*
4352 if test $ac_cv_header_stdc = yes; then
4353 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4354 if test "$cross_compiling" = yes; then
4356 else
4357 cat >conftest.$ac_ext <<_ACEOF
4358 /* confdefs.h. */
4359 _ACEOF
4360 cat confdefs.h >>conftest.$ac_ext
4361 cat >>conftest.$ac_ext <<_ACEOF
4362 /* end confdefs.h. */
4363 #include <ctype.h>
4364 #if ((' ' & 0x0FF) == 0x020)
4365 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4366 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4367 #else
4368 # define ISLOWER(c) \
4369 (('a' <= (c) && (c) <= 'i') \
4370 || ('j' <= (c) && (c) <= 'r') \
4371 || ('s' <= (c) && (c) <= 'z'))
4372 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4373 #endif
4375 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4377 main ()
4379 int i;
4380 for (i = 0; i < 256; i++)
4381 if (XOR (islower (i), ISLOWER (i))
4382 || toupper (i) != TOUPPER (i))
4383 exit(2);
4384 exit (0);
4386 _ACEOF
4387 rm -f conftest$ac_exeext
4388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4389 (eval $ac_link) 2>&5
4390 ac_status=$?
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4394 (eval $ac_try) 2>&5
4395 ac_status=$?
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); }; }; then
4399 else
4400 echo "$as_me: program exited with status $ac_status" >&5
4401 echo "$as_me: failed program was:" >&5
4402 sed 's/^/| /' conftest.$ac_ext >&5
4404 ( exit $ac_status )
4405 ac_cv_header_stdc=no
4407 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4411 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4412 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4413 if test $ac_cv_header_stdc = yes; then
4415 cat >>confdefs.h <<\_ACEOF
4416 #define STDC_HEADERS 1
4417 _ACEOF
4421 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4431 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4432 inttypes.h stdint.h unistd.h
4434 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4435 echo "$as_me:$LINENO: checking for $ac_header" >&5
4436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4437 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4438 echo $ECHO_N "(cached) $ECHO_C" >&6
4439 else
4440 cat >conftest.$ac_ext <<_ACEOF
4441 /* confdefs.h. */
4442 _ACEOF
4443 cat confdefs.h >>conftest.$ac_ext
4444 cat >>conftest.$ac_ext <<_ACEOF
4445 /* end confdefs.h. */
4446 $ac_includes_default
4448 #include <$ac_header>
4449 _ACEOF
4450 rm -f conftest.$ac_objext
4451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4452 (eval $ac_compile) 2>conftest.er1
4453 ac_status=$?
4454 grep -v '^ *+' conftest.er1 >conftest.err
4455 rm -f conftest.er1
4456 cat conftest.err >&5
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); } &&
4459 { ac_try='test -z "$ac_c_werror_flag"
4460 || test ! -s conftest.err'
4461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4462 (eval $ac_try) 2>&5
4463 ac_status=$?
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); }; } &&
4466 { ac_try='test -s conftest.$ac_objext'
4467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4468 (eval $ac_try) 2>&5
4469 ac_status=$?
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); }; }; then
4472 eval "$as_ac_Header=yes"
4473 else
4474 echo "$as_me: failed program was:" >&5
4475 sed 's/^/| /' conftest.$ac_ext >&5
4477 eval "$as_ac_Header=no"
4479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4482 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4483 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4484 cat >>confdefs.h <<_ACEOF
4485 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4486 _ACEOF
4490 done
4494 if test "${ac_cv_header_minix_config_h+set}" = set; then
4495 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4496 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4497 if test "${ac_cv_header_minix_config_h+set}" = set; then
4498 echo $ECHO_N "(cached) $ECHO_C" >&6
4500 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4501 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4502 else
4503 # Is the header compilable?
4504 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4505 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
4506 cat >conftest.$ac_ext <<_ACEOF
4507 /* confdefs.h. */
4508 _ACEOF
4509 cat confdefs.h >>conftest.$ac_ext
4510 cat >>conftest.$ac_ext <<_ACEOF
4511 /* end confdefs.h. */
4512 $ac_includes_default
4513 #include <minix/config.h>
4514 _ACEOF
4515 rm -f conftest.$ac_objext
4516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4517 (eval $ac_compile) 2>conftest.er1
4518 ac_status=$?
4519 grep -v '^ *+' conftest.er1 >conftest.err
4520 rm -f conftest.er1
4521 cat conftest.err >&5
4522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523 (exit $ac_status); } &&
4524 { ac_try='test -z "$ac_c_werror_flag"
4525 || test ! -s conftest.err'
4526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4527 (eval $ac_try) 2>&5
4528 ac_status=$?
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); }; } &&
4531 { ac_try='test -s conftest.$ac_objext'
4532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4533 (eval $ac_try) 2>&5
4534 ac_status=$?
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); }; }; then
4537 ac_header_compiler=yes
4538 else
4539 echo "$as_me: failed program was:" >&5
4540 sed 's/^/| /' conftest.$ac_ext >&5
4542 ac_header_compiler=no
4544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4545 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4546 echo "${ECHO_T}$ac_header_compiler" >&6
4548 # Is the header present?
4549 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4550 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
4551 cat >conftest.$ac_ext <<_ACEOF
4552 /* confdefs.h. */
4553 _ACEOF
4554 cat confdefs.h >>conftest.$ac_ext
4555 cat >>conftest.$ac_ext <<_ACEOF
4556 /* end confdefs.h. */
4557 #include <minix/config.h>
4558 _ACEOF
4559 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4560 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4561 ac_status=$?
4562 grep -v '^ *+' conftest.er1 >conftest.err
4563 rm -f conftest.er1
4564 cat conftest.err >&5
4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); } >/dev/null; then
4567 if test -s conftest.err; then
4568 ac_cpp_err=$ac_c_preproc_warn_flag
4569 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4570 else
4571 ac_cpp_err=
4573 else
4574 ac_cpp_err=yes
4576 if test -z "$ac_cpp_err"; then
4577 ac_header_preproc=yes
4578 else
4579 echo "$as_me: failed program was:" >&5
4580 sed 's/^/| /' conftest.$ac_ext >&5
4582 ac_header_preproc=no
4584 rm -f conftest.err conftest.$ac_ext
4585 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4586 echo "${ECHO_T}$ac_header_preproc" >&6
4588 # So? What about this header?
4589 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4590 yes:no: )
4591 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4592 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4593 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4594 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4595 ac_header_preproc=yes
4597 no:yes:* )
4598 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4599 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4600 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4601 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4602 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4603 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4604 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4605 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4606 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4607 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4608 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4609 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4611 cat <<\_ASBOX
4612 ## ------------------------------------------ ##
4613 ## Report this to the AC_PACKAGE_NAME lists. ##
4614 ## ------------------------------------------ ##
4615 _ASBOX
4617 sed "s/^/$as_me: WARNING: /" >&2
4619 esac
4620 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4621 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4622 if test "${ac_cv_header_minix_config_h+set}" = set; then
4623 echo $ECHO_N "(cached) $ECHO_C" >&6
4624 else
4625 ac_cv_header_minix_config_h=$ac_header_preproc
4627 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4628 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4631 if test $ac_cv_header_minix_config_h = yes; then
4632 MINIX=yes
4633 else
4634 MINIX=
4638 if test "$MINIX" = yes; then
4640 cat >>confdefs.h <<\_ACEOF
4641 #define _POSIX_SOURCE 1
4642 _ACEOF
4645 cat >>confdefs.h <<\_ACEOF
4646 #define _POSIX_1_SOURCE 2
4647 _ACEOF
4650 cat >>confdefs.h <<\_ACEOF
4651 #define _MINIX 1
4652 _ACEOF
4658 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4659 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
4660 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4661 echo $ECHO_N "(cached) $ECHO_C" >&6
4662 else
4663 cat >conftest.$ac_ext <<_ACEOF
4664 /* confdefs.h. */
4665 _ACEOF
4666 cat confdefs.h >>conftest.$ac_ext
4667 cat >>conftest.$ac_ext <<_ACEOF
4668 /* end confdefs.h. */
4670 # define __EXTENSIONS__ 1
4671 $ac_includes_default
4673 main ()
4677 return 0;
4679 _ACEOF
4680 rm -f conftest.$ac_objext
4681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4682 (eval $ac_compile) 2>conftest.er1
4683 ac_status=$?
4684 grep -v '^ *+' conftest.er1 >conftest.err
4685 rm -f conftest.er1
4686 cat conftest.err >&5
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); } &&
4689 { ac_try='test -z "$ac_c_werror_flag"
4690 || test ! -s conftest.err'
4691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4692 (eval $ac_try) 2>&5
4693 ac_status=$?
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); }; } &&
4696 { ac_try='test -s conftest.$ac_objext'
4697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4698 (eval $ac_try) 2>&5
4699 ac_status=$?
4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); }; }; then
4702 ac_cv_safe_to_define___extensions__=yes
4703 else
4704 echo "$as_me: failed program was:" >&5
4705 sed 's/^/| /' conftest.$ac_ext >&5
4707 ac_cv_safe_to_define___extensions__=no
4709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4711 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4712 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4713 test $ac_cv_safe_to_define___extensions__ = yes &&
4714 cat >>confdefs.h <<\_ACEOF
4715 #define __EXTENSIONS__ 1
4716 _ACEOF
4718 cat >>confdefs.h <<\_ACEOF
4719 #define _ALL_SOURCE 1
4720 _ACEOF
4722 cat >>confdefs.h <<\_ACEOF
4723 #define _GNU_SOURCE 1
4724 _ACEOF
4726 cat >>confdefs.h <<\_ACEOF
4727 #define _POSIX_PTHREAD_SEMANTICS 1
4728 _ACEOF
4730 cat >>confdefs.h <<\_ACEOF
4731 #define _TANDEM_SOURCE 1
4732 _ACEOF
4735 # Find a good install program. We prefer a C program (faster),
4736 # so one script is as good as another. But avoid the broken or
4737 # incompatible versions:
4738 # SysV /etc/install, /usr/sbin/install
4739 # SunOS /usr/etc/install
4740 # IRIX /sbin/install
4741 # AIX /bin/install
4742 # AmigaOS /C/install, which installs bootblocks on floppy discs
4743 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4744 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4745 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4746 # OS/2's system install, which has a completely different semantic
4747 # ./install, which can be erroneously created by make from ./install.sh.
4748 # Reject install programs that cannot install multiple files.
4749 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4750 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4751 if test -z "$INSTALL"; then
4752 if test "${ac_cv_path_install+set}" = set; then
4753 echo $ECHO_N "(cached) $ECHO_C" >&6
4754 else
4755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4756 for as_dir in $PATH
4758 IFS=$as_save_IFS
4759 test -z "$as_dir" && as_dir=.
4760 # Account for people who put trailing slashes in PATH elements.
4761 case $as_dir/ in
4762 ./ | .// | /cC/* | \
4763 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4764 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4765 /usr/ucb/* ) ;;
4767 # OSF1 and SCO ODT 3.0 have their own names for install.
4768 # Don't use installbsd from OSF since it installs stuff as root
4769 # by default.
4770 for ac_prog in ginstall scoinst install; do
4771 for ac_exec_ext in '' $ac_executable_extensions; do
4772 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4773 if test $ac_prog = install &&
4774 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4775 # AIX install. It has an incompatible calling convention.
4777 elif test $ac_prog = install &&
4778 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4779 # program-specific install script used by HP pwplus--don't use.
4781 else
4782 rm -rf conftest.one conftest.two conftest.dir
4783 echo one > conftest.one
4784 echo two > conftest.two
4785 mkdir conftest.dir
4786 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4787 test -s conftest.one && test -s conftest.two &&
4788 test -s conftest.dir/conftest.one &&
4789 test -s conftest.dir/conftest.two
4790 then
4791 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4792 break 3
4796 done
4797 done
4799 esac
4800 done
4802 rm -rf conftest.one conftest.two conftest.dir
4805 if test "${ac_cv_path_install+set}" = set; then
4806 INSTALL=$ac_cv_path_install
4807 else
4808 # As a last resort, use the slow shell script. Don't cache a
4809 # value for INSTALL within a source directory, because that will
4810 # break other packages using the cache if that directory is
4811 # removed, or if the value is a relative name.
4812 INSTALL=$ac_install_sh
4815 echo "$as_me:$LINENO: result: $INSTALL" >&5
4816 echo "${ECHO_T}$INSTALL" >&6
4818 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4819 # It thinks the first close brace ends the variable substitution.
4820 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4822 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4824 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4829 macro_version='2.1a'
4830 macro_revision='1.2435'
4843 ltmain="$ac_aux_dir/ltmain.sh"
4845 # Set options
4847 enable_dlopen=no
4850 enable_win32_dll=no
4853 # Check whether --enable-shared or --disable-shared was given.
4854 if test "${enable_shared+set}" = set; then
4855 enableval="$enable_shared"
4856 p=${PACKAGE-default}
4857 case $enableval in
4858 yes) enable_shared=yes ;;
4859 no) enable_shared=no ;;
4861 enable_shared=no
4862 # Look at the argument we got. We use all the common list separators.
4863 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4864 for pkg in $enableval; do
4865 IFS="$lt_save_ifs"
4866 if test "X$pkg" = "X$p"; then
4867 enable_shared=yes
4869 done
4870 IFS="$lt_save_ifs"
4872 esac
4873 else
4874 enable_shared=yes
4884 # Check whether --enable-static or --disable-static was given.
4885 if test "${enable_static+set}" = set; then
4886 enableval="$enable_static"
4887 p=${PACKAGE-default}
4888 case $enableval in
4889 yes) enable_static=yes ;;
4890 no) enable_static=no ;;
4892 enable_static=no
4893 # Look at the argument we got. We use all the common list separators.
4894 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4895 for pkg in $enableval; do
4896 IFS="$lt_save_ifs"
4897 if test "X$pkg" = "X$p"; then
4898 enable_static=yes
4900 done
4901 IFS="$lt_save_ifs"
4903 esac
4904 else
4905 enable_static=yes
4916 # Check whether --with-pic or --without-pic was given.
4917 if test "${with_pic+set}" = set; then
4918 withval="$with_pic"
4919 pic_mode="$withval"
4920 else
4921 pic_mode=default
4924 test -z "$pic_mode" && pic_mode=default
4932 # Check whether --enable-fast-install or --disable-fast-install was given.
4933 if test "${enable_fast_install+set}" = set; then
4934 enableval="$enable_fast_install"
4935 p=${PACKAGE-default}
4936 case $enableval in
4937 yes) enable_fast_install=yes ;;
4938 no) enable_fast_install=no ;;
4940 enable_fast_install=no
4941 # Look at the argument we got. We use all the common list separators.
4942 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4943 for pkg in $enableval; do
4944 IFS="$lt_save_ifs"
4945 if test "X$pkg" = "X$p"; then
4946 enable_fast_install=yes
4948 done
4949 IFS="$lt_save_ifs"
4951 esac
4952 else
4953 enable_fast_install=yes
4963 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4964 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4965 if test "${lt_cv_path_SED+set}" = set; then
4966 echo $ECHO_N "(cached) $ECHO_C" >&6
4967 else
4968 # Loop through the user's path and test for sed and gsed.
4969 # Then use that list of sed's as ones to test for truncation.
4970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4971 for as_dir in $PATH
4973 IFS=$as_save_IFS
4974 test -z "$as_dir" && as_dir=.
4975 for lt_ac_prog in sed gsed; do
4976 for ac_exec_ext in '' $ac_executable_extensions; do
4977 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4978 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4980 done
4981 done
4982 done
4983 IFS=$as_save_IFS
4984 lt_ac_max=0
4985 lt_ac_count=0
4986 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4987 # along with /bin/sed that truncates output.
4988 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4989 test ! -f $lt_ac_sed && continue
4990 cat /dev/null > conftest.in
4991 lt_ac_count=0
4992 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4993 # Check for GNU sed and select it if it is found.
4994 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4995 lt_cv_path_SED=$lt_ac_sed
4996 break
4998 while true; do
4999 cat conftest.in conftest.in >conftest.tmp
5000 mv conftest.tmp conftest.in
5001 cp conftest.in conftest.nl
5002 echo >>conftest.nl
5003 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5004 cmp -s conftest.out conftest.nl || break
5005 # 10000 chars as input seems more than enough
5006 test $lt_ac_count -gt 10 && break
5007 lt_ac_count=`expr $lt_ac_count + 1`
5008 if test $lt_ac_count -gt $lt_ac_max; then
5009 lt_ac_max=$lt_ac_count
5010 lt_cv_path_SED=$lt_ac_sed
5012 done
5013 done
5017 SED=$lt_cv_path_SED
5019 echo "$as_me:$LINENO: result: $SED" >&5
5020 echo "${ECHO_T}$SED" >&6
5022 test -z "$SED" && SED=sed
5023 Xsed="$SED -e 1s/^X//"
5035 echo "$as_me:$LINENO: checking for fgrep" >&5
5036 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5037 if test "${ac_cv_prog_fgrep+set}" = set; then
5038 echo $ECHO_N "(cached) $ECHO_C" >&6
5039 else
5040 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5041 then ac_cv_prog_fgrep='grep -F'
5042 else ac_cv_prog_fgrep='fgrep'
5045 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5046 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5047 FGREP=$ac_cv_prog_fgrep
5050 test -z "$GREP" && GREP=grep
5070 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5071 if test "${with_gnu_ld+set}" = set; then
5072 withval="$with_gnu_ld"
5073 test "$withval" = no || with_gnu_ld=yes
5074 else
5075 with_gnu_ld=no
5077 ac_prog=ld
5078 if test "$GCC" = yes; then
5079 # Check if gcc -print-prog-name=ld gives a path.
5080 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5081 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5082 case $host in
5083 *-*-mingw*)
5084 # gcc leaves a trailing carriage return which upsets mingw
5085 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5087 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5088 esac
5089 case $ac_prog in
5090 # Accept absolute paths.
5091 [\\/]* | ?:[\\/]*)
5092 re_direlt='/[^/][^/]*/\.\./'
5093 # Canonicalize the pathname of ld
5094 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5095 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5096 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5097 done
5098 test -z "$LD" && LD="$ac_prog"
5101 # If it fails, then pretend we aren't using GCC.
5102 ac_prog=ld
5105 # If it is relative, then search for the first ld in PATH.
5106 with_gnu_ld=unknown
5108 esac
5109 elif test "$with_gnu_ld" = yes; then
5110 echo "$as_me:$LINENO: checking for GNU ld" >&5
5111 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5112 else
5113 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5114 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5116 if test "${lt_cv_path_LD+set}" = set; then
5117 echo $ECHO_N "(cached) $ECHO_C" >&6
5118 else
5119 if test -z "$LD"; then
5120 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5121 for ac_dir in $PATH; do
5122 IFS="$lt_save_ifs"
5123 test -z "$ac_dir" && ac_dir=.
5124 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5125 lt_cv_path_LD="$ac_dir/$ac_prog"
5126 # Check to see if the program is GNU ld. I'd rather use --version,
5127 # but apparently some variants of GNU ld only accept -v.
5128 # Break only if it was the GNU/non-GNU ld that we prefer.
5129 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5130 *GNU* | *'with BFD'*)
5131 test "$with_gnu_ld" != no && break
5134 test "$with_gnu_ld" != yes && break
5136 esac
5138 done
5139 IFS="$lt_save_ifs"
5140 else
5141 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5145 LD="$lt_cv_path_LD"
5146 if test -n "$LD"; then
5147 echo "$as_me:$LINENO: result: $LD" >&5
5148 echo "${ECHO_T}$LD" >&6
5149 else
5150 echo "$as_me:$LINENO: result: no" >&5
5151 echo "${ECHO_T}no" >&6
5153 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5154 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5155 { (exit 1); exit 1; }; }
5156 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5157 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5158 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5159 echo $ECHO_N "(cached) $ECHO_C" >&6
5160 else
5161 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5162 case `$LD -v 2>&1 </dev/null` in
5163 *GNU* | *'with BFD'*)
5164 lt_cv_prog_gnu_ld=yes
5167 lt_cv_prog_gnu_ld=no
5169 esac
5171 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5172 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5173 with_gnu_ld=$lt_cv_prog_gnu_ld
5184 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5185 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
5186 if test "${lt_cv_path_NM+set}" = set; then
5187 echo $ECHO_N "(cached) $ECHO_C" >&6
5188 else
5189 if test -n "$NM"; then
5190 # Let the user override the test.
5191 lt_cv_path_NM="$NM"
5192 else
5193 lt_nm_to_check="${ac_tool_prefix}nm"
5194 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5195 lt_nm_to_check="$lt_nm_to_check nm"
5197 for lt_tmp_nm in $lt_nm_to_check; do
5198 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5199 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5200 IFS="$lt_save_ifs"
5201 test -z "$ac_dir" && ac_dir=.
5202 tmp_nm="$ac_dir/$lt_tmp_nm"
5203 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5204 # Check to see if the nm accepts a BSD-compat flag.
5205 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5206 # nm: unknown option "B" ignored
5207 # Tru64's nm complains that /dev/null is an invalid object file
5208 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5209 */dev/null* | *'Invalid file or object type'*)
5210 lt_cv_path_NM="$tmp_nm -B"
5211 break
5214 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5215 */dev/null*)
5216 lt_cv_path_NM="$tmp_nm -p"
5217 break
5220 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5221 continue # so that we can try to find one that supports BSD flags
5223 esac
5225 esac
5227 done
5228 IFS="$lt_save_ifs"
5229 done
5230 : ${lt_cv_path_NM=no}
5233 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5234 echo "${ECHO_T}$lt_cv_path_NM" >&6
5235 if test "$lt_cv_path_NM" != "no"; then
5236 NM="$lt_cv_path_NM"
5237 else
5238 # Didn't find any BSD compatible name lister, look for dumpbin.
5239 if test -n "$ac_tool_prefix"; then
5240 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5242 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5243 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5244 echo "$as_me:$LINENO: checking for $ac_word" >&5
5245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5246 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5247 echo $ECHO_N "(cached) $ECHO_C" >&6
5248 else
5249 if test -n "$DUMPBIN"; then
5250 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5251 else
5252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253 for as_dir in $PATH
5255 IFS=$as_save_IFS
5256 test -z "$as_dir" && as_dir=.
5257 for ac_exec_ext in '' $ac_executable_extensions; do
5258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5259 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5261 break 2
5263 done
5264 done
5268 DUMPBIN=$ac_cv_prog_DUMPBIN
5269 if test -n "$DUMPBIN"; then
5270 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5271 echo "${ECHO_T}$DUMPBIN" >&6
5272 else
5273 echo "$as_me:$LINENO: result: no" >&5
5274 echo "${ECHO_T}no" >&6
5277 test -n "$DUMPBIN" && break
5278 done
5280 if test -z "$DUMPBIN"; then
5281 ac_ct_DUMPBIN=$DUMPBIN
5282 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5284 # Extract the first word of "$ac_prog", so it can be a program name with args.
5285 set dummy $ac_prog; ac_word=$2
5286 echo "$as_me:$LINENO: checking for $ac_word" >&5
5287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5288 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5289 echo $ECHO_N "(cached) $ECHO_C" >&6
5290 else
5291 if test -n "$ac_ct_DUMPBIN"; then
5292 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5293 else
5294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5295 for as_dir in $PATH
5297 IFS=$as_save_IFS
5298 test -z "$as_dir" && as_dir=.
5299 for ac_exec_ext in '' $ac_executable_extensions; do
5300 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5301 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5303 break 2
5305 done
5306 done
5310 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5311 if test -n "$ac_ct_DUMPBIN"; then
5312 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5313 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5314 else
5315 echo "$as_me:$LINENO: result: no" >&5
5316 echo "${ECHO_T}no" >&6
5319 test -n "$ac_ct_DUMPBIN" && break
5320 done
5321 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
5323 DUMPBIN=$ac_ct_DUMPBIN
5327 if test "$DUMPBIN" != ":"; then
5328 NM="$DUMPBIN"
5331 test -z "$NM" && NM=nm
5338 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5339 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5340 if test "${lt_cv_nm_interface+set}" = set; then
5341 echo $ECHO_N "(cached) $ECHO_C" >&6
5342 else
5343 lt_cv_nm_interface="BSD nm"
5344 echo "int some_variable = 0;" > conftest.$ac_ext
5345 (eval echo "\"\$as_me:5345: $ac_compile\"" >&5)
5346 (eval "$ac_compile" 2>conftest.err)
5347 cat conftest.err >&5
5348 (eval echo "\"\$as_me:5348: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5349 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5350 cat conftest.err >&5
5351 (eval echo "\"\$as_me:5351: output\"" >&5)
5352 cat conftest.out >&5
5353 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5354 lt_cv_nm_interface="MS dumpbin"
5356 rm -f conftest*
5358 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5359 echo "${ECHO_T}$lt_cv_nm_interface" >&6
5361 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5362 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5363 LN_S=$as_ln_s
5364 if test "$LN_S" = "ln -s"; then
5365 echo "$as_me:$LINENO: result: yes" >&5
5366 echo "${ECHO_T}yes" >&6
5367 else
5368 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5369 echo "${ECHO_T}no, using $LN_S" >&6
5372 # find the maximum length of command line arguments
5373 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5374 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5375 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5376 echo $ECHO_N "(cached) $ECHO_C" >&6
5377 else
5379 teststring="ABCD"
5381 case $build_os in
5382 msdosdjgpp*)
5383 # On DJGPP, this test can blow up pretty badly due to problems in libc
5384 # (any single argument exceeding 2000 bytes causes a buffer overrun
5385 # during glob expansion). Even if it were fixed, the result of this
5386 # check would be larger than it should be.
5387 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5390 gnu*)
5391 # Under GNU Hurd, this test is not required because there is
5392 # no limit to the length of command line arguments.
5393 # Libtool will interpret -1 as no limit whatsoever
5394 lt_cv_sys_max_cmd_len=-1;
5397 cygwin* | mingw*)
5398 # On Win9x/ME, this test blows up -- it succeeds, but takes
5399 # about 5 minutes as the teststring grows exponentially.
5400 # Worse, since 9x/ME are not pre-emptively multitasking,
5401 # you end up with a "frozen" computer, even though with patience
5402 # the test eventually succeeds (with a max line length of 256k).
5403 # Instead, let's just punt: use the minimum linelength reported by
5404 # all of the supported platforms: 8192 (on NT/2K/XP).
5405 lt_cv_sys_max_cmd_len=8192;
5408 amigaos*)
5409 # On AmigaOS with pdksh, this test takes hours, literally.
5410 # So we just punt and use a minimum line length of 8192.
5411 lt_cv_sys_max_cmd_len=8192;
5414 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5415 # This has been around since 386BSD, at least. Likely further.
5416 if test -x /sbin/sysctl; then
5417 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5418 elif test -x /usr/sbin/sysctl; then
5419 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5420 else
5421 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5423 # And add a safety zone
5424 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5425 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5428 interix*)
5429 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5430 lt_cv_sys_max_cmd_len=196608
5433 osf*)
5434 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5435 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5436 # nice to cause kernel panics so lets avoid the loop below.
5437 # First set a reasonable default.
5438 lt_cv_sys_max_cmd_len=16384
5440 if test -x /sbin/sysconfig; then
5441 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5442 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5443 esac
5446 sco3.2v5*)
5447 lt_cv_sys_max_cmd_len=102400
5449 sysv5* | sco5v6* | sysv4.2uw2*)
5450 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5451 if test -n "$kargmax"; then
5452 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5453 else
5454 lt_cv_sys_max_cmd_len=32768
5458 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
5459 if test -n $lt_cv_sys_max_cmd_len; then
5460 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5461 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5462 else
5463 # Make teststring a little bigger before we do anything with it.
5464 # a 1K string should be a reasonable start.
5465 for i in 1 2 3 4 5 6 7 8 ; do
5466 teststring=$teststring$teststring
5467 done
5468 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5469 # If test is not a shell built-in, we'll probably end up computing a
5470 # maximum length that is only half of the actual maximum length, but
5471 # we can't tell.
5472 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5473 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5474 test $i != 17 # 1/2 MB should be enough
5476 i=`expr $i + 1`
5477 teststring=$teststring$teststring
5478 done
5479 # Only check the string length outside the loop.
5480 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5481 teststring=
5482 # Add a significant safety factor because C++ compilers can tack on
5483 # massive amounts of additional arguments before passing them to the
5484 # linker. It appears as though 1/2 is a usable value.
5485 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5488 esac
5492 if test -n $lt_cv_sys_max_cmd_len ; then
5493 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5494 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5495 else
5496 echo "$as_me:$LINENO: result: none" >&5
5497 echo "${ECHO_T}none" >&6
5499 max_cmd_len=$lt_cv_sys_max_cmd_len
5507 : ${CP="cp -f"}
5508 : ${MV="mv -f"}
5509 : ${RM="rm -f"}
5511 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5512 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
5513 # Try some XSI features
5514 xsi_shell=no
5515 ( _lt_dummy="a/b/c"
5516 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5517 = c,a/b,, ) >/dev/null 2>&1 \
5518 && xsi_shell=yes
5519 echo "$as_me:$LINENO: result: $xsi_shell" >&5
5520 echo "${ECHO_T}$xsi_shell" >&6
5523 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5524 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
5525 lt_shell_append=no
5526 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5527 >/dev/null 2>&1 \
5528 && lt_shell_append=yes
5529 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5530 echo "${ECHO_T}$lt_shell_append" >&6
5533 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5534 lt_unset=unset
5535 else
5536 lt_unset=false
5543 # test EBCDIC or ASCII
5544 case `echo X|tr X '\101'` in
5545 A) # ASCII based system
5546 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5547 lt_SP2NL='tr \040 \012'
5548 lt_NL2SP='tr \015\012 \040\040'
5550 *) # EBCDIC based system
5551 lt_SP2NL='tr \100 \n'
5552 lt_NL2SP='tr \r\n \100\100'
5554 esac
5564 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5565 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5566 if test "${lt_cv_ld_reload_flag+set}" = set; then
5567 echo $ECHO_N "(cached) $ECHO_C" >&6
5568 else
5569 lt_cv_ld_reload_flag='-r'
5571 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5572 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5573 reload_flag=$lt_cv_ld_reload_flag
5574 case $reload_flag in
5575 "" | " "*) ;;
5576 *) reload_flag=" $reload_flag" ;;
5577 esac
5578 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5579 case $host_os in
5580 darwin*)
5581 if test "$GCC" = yes; then
5582 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5583 else
5584 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5587 esac
5598 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5599 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5600 if test "${lt_cv_deplibs_check_method+set}" = set; then
5601 echo $ECHO_N "(cached) $ECHO_C" >&6
5602 else
5603 lt_cv_file_magic_cmd='$MAGIC_CMD'
5604 lt_cv_file_magic_test_file=
5605 lt_cv_deplibs_check_method='unknown'
5606 # Need to set the preceding variable on all platforms that support
5607 # interlibrary dependencies.
5608 # 'none' -- dependencies not supported.
5609 # `unknown' -- same as none, but documents that we really don't know.
5610 # 'pass_all' -- all dependencies passed with no checks.
5611 # 'test_compile' -- check by making test program.
5612 # 'file_magic [[regex]]' -- check by looking for files in library path
5613 # which responds to the $file_magic_cmd with a given extended regex.
5614 # If you have `file' or equivalent on your system and you're not sure
5615 # whether `pass_all' will *always* work, you probably want this one.
5617 case $host_os in
5618 aix[4-9]*)
5619 lt_cv_deplibs_check_method=pass_all
5622 beos*)
5623 lt_cv_deplibs_check_method=pass_all
5626 bsdi[45]*)
5627 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5628 lt_cv_file_magic_cmd='/usr/bin/file -L'
5629 lt_cv_file_magic_test_file=/shlib/libc.so
5632 cygwin*)
5633 # func_win32_libid is a shell function defined in ltmain.sh
5634 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5635 lt_cv_file_magic_cmd='func_win32_libid'
5638 mingw* | pw32*)
5639 # Base MSYS/MinGW do not provide the 'file' command needed by
5640 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5641 # unless we find 'file', for example because we are cross-compiling.
5642 if ( file / ) >/dev/null 2>&1; then
5643 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5644 lt_cv_file_magic_cmd='func_win32_libid'
5645 else
5646 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5647 lt_cv_file_magic_cmd='$OBJDUMP -f'
5651 darwin* | rhapsody*)
5652 lt_cv_deplibs_check_method=pass_all
5655 freebsd* | dragonfly*)
5656 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5657 case $host_cpu in
5658 i*86 )
5659 # Not sure whether the presence of OpenBSD here was a mistake.
5660 # Let's accept both of them until this is cleared up.
5661 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5662 lt_cv_file_magic_cmd=/usr/bin/file
5663 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5665 esac
5666 else
5667 lt_cv_deplibs_check_method=pass_all
5671 gnu*)
5672 lt_cv_deplibs_check_method=pass_all
5675 hpux10.20* | hpux11*)
5676 lt_cv_file_magic_cmd=/usr/bin/file
5677 case $host_cpu in
5678 ia64*)
5679 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5680 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5682 hppa*64*)
5683 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]'
5684 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5687 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5688 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5690 esac
5693 interix[3-9]*)
5694 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5695 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5698 irix5* | irix6* | nonstopux*)
5699 case $LD in
5700 *-32|*"-32 ") libmagic=32-bit;;
5701 *-n32|*"-n32 ") libmagic=N32;;
5702 *-64|*"-64 ") libmagic=64-bit;;
5703 *) libmagic=never-match;;
5704 esac
5705 lt_cv_deplibs_check_method=pass_all
5708 # This must be Linux ELF.
5709 linux* | k*bsd*-gnu)
5710 lt_cv_deplibs_check_method=pass_all
5713 netbsd*)
5714 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5715 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5716 else
5717 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5721 newos6*)
5722 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5723 lt_cv_file_magic_cmd=/usr/bin/file
5724 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5727 *nto* | *qnx*)
5728 lt_cv_deplibs_check_method=pass_all
5731 openbsd*)
5732 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5733 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5734 else
5735 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5739 osf3* | osf4* | osf5*)
5740 lt_cv_deplibs_check_method=pass_all
5743 rdos*)
5744 lt_cv_deplibs_check_method=pass_all
5747 solaris*)
5748 lt_cv_deplibs_check_method=pass_all
5751 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5752 lt_cv_deplibs_check_method=pass_all
5755 sysv4 | sysv4.3*)
5756 case $host_vendor in
5757 motorola)
5758 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]'
5759 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5761 ncr)
5762 lt_cv_deplibs_check_method=pass_all
5764 sequent)
5765 lt_cv_file_magic_cmd='/bin/file'
5766 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5768 sni)
5769 lt_cv_file_magic_cmd='/bin/file'
5770 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5771 lt_cv_file_magic_test_file=/lib/libc.so
5773 siemens)
5774 lt_cv_deplibs_check_method=pass_all
5777 lt_cv_deplibs_check_method=pass_all
5779 esac
5782 tpf*)
5783 lt_cv_deplibs_check_method=pass_all
5785 esac
5788 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5789 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5790 file_magic_cmd=$lt_cv_file_magic_cmd
5791 deplibs_check_method=$lt_cv_deplibs_check_method
5792 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5805 if test -n "$ac_tool_prefix"; then
5806 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5807 set dummy ${ac_tool_prefix}ar; ac_word=$2
5808 echo "$as_me:$LINENO: checking for $ac_word" >&5
5809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5810 if test "${ac_cv_prog_AR+set}" = set; then
5811 echo $ECHO_N "(cached) $ECHO_C" >&6
5812 else
5813 if test -n "$AR"; then
5814 ac_cv_prog_AR="$AR" # Let the user override the test.
5815 else
5816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5817 for as_dir in $PATH
5819 IFS=$as_save_IFS
5820 test -z "$as_dir" && as_dir=.
5821 for ac_exec_ext in '' $ac_executable_extensions; do
5822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5823 ac_cv_prog_AR="${ac_tool_prefix}ar"
5824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5825 break 2
5827 done
5828 done
5832 AR=$ac_cv_prog_AR
5833 if test -n "$AR"; then
5834 echo "$as_me:$LINENO: result: $AR" >&5
5835 echo "${ECHO_T}$AR" >&6
5836 else
5837 echo "$as_me:$LINENO: result: no" >&5
5838 echo "${ECHO_T}no" >&6
5842 if test -z "$ac_cv_prog_AR"; then
5843 ac_ct_AR=$AR
5844 # Extract the first word of "ar", so it can be a program name with args.
5845 set dummy ar; ac_word=$2
5846 echo "$as_me:$LINENO: checking for $ac_word" >&5
5847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5848 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5849 echo $ECHO_N "(cached) $ECHO_C" >&6
5850 else
5851 if test -n "$ac_ct_AR"; then
5852 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5853 else
5854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5855 for as_dir in $PATH
5857 IFS=$as_save_IFS
5858 test -z "$as_dir" && as_dir=.
5859 for ac_exec_ext in '' $ac_executable_extensions; do
5860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5861 ac_cv_prog_ac_ct_AR="ar"
5862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5863 break 2
5865 done
5866 done
5868 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5871 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5872 if test -n "$ac_ct_AR"; then
5873 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5874 echo "${ECHO_T}$ac_ct_AR" >&6
5875 else
5876 echo "$as_me:$LINENO: result: no" >&5
5877 echo "${ECHO_T}no" >&6
5880 AR=$ac_ct_AR
5881 else
5882 AR="$ac_cv_prog_AR"
5885 test -z "$AR" && AR=ar
5886 test -z "$AR_FLAGS" && AR_FLAGS=cru
5898 if test -n "$ac_tool_prefix"; then
5899 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5900 set dummy ${ac_tool_prefix}strip; ac_word=$2
5901 echo "$as_me:$LINENO: checking for $ac_word" >&5
5902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5903 if test "${ac_cv_prog_STRIP+set}" = set; then
5904 echo $ECHO_N "(cached) $ECHO_C" >&6
5905 else
5906 if test -n "$STRIP"; then
5907 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5908 else
5909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5910 for as_dir in $PATH
5912 IFS=$as_save_IFS
5913 test -z "$as_dir" && as_dir=.
5914 for ac_exec_ext in '' $ac_executable_extensions; do
5915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5916 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5918 break 2
5920 done
5921 done
5925 STRIP=$ac_cv_prog_STRIP
5926 if test -n "$STRIP"; then
5927 echo "$as_me:$LINENO: result: $STRIP" >&5
5928 echo "${ECHO_T}$STRIP" >&6
5929 else
5930 echo "$as_me:$LINENO: result: no" >&5
5931 echo "${ECHO_T}no" >&6
5935 if test -z "$ac_cv_prog_STRIP"; then
5936 ac_ct_STRIP=$STRIP
5937 # Extract the first word of "strip", so it can be a program name with args.
5938 set dummy strip; ac_word=$2
5939 echo "$as_me:$LINENO: checking for $ac_word" >&5
5940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5941 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5942 echo $ECHO_N "(cached) $ECHO_C" >&6
5943 else
5944 if test -n "$ac_ct_STRIP"; then
5945 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5946 else
5947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5948 for as_dir in $PATH
5950 IFS=$as_save_IFS
5951 test -z "$as_dir" && as_dir=.
5952 for ac_exec_ext in '' $ac_executable_extensions; do
5953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5954 ac_cv_prog_ac_ct_STRIP="strip"
5955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5956 break 2
5958 done
5959 done
5961 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5964 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5965 if test -n "$ac_ct_STRIP"; then
5966 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5967 echo "${ECHO_T}$ac_ct_STRIP" >&6
5968 else
5969 echo "$as_me:$LINENO: result: no" >&5
5970 echo "${ECHO_T}no" >&6
5973 STRIP=$ac_ct_STRIP
5974 else
5975 STRIP="$ac_cv_prog_STRIP"
5978 test -z "$STRIP" && STRIP=:
5985 if test -n "$ac_tool_prefix"; then
5986 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5987 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5988 echo "$as_me:$LINENO: checking for $ac_word" >&5
5989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5990 if test "${ac_cv_prog_RANLIB+set}" = set; then
5991 echo $ECHO_N "(cached) $ECHO_C" >&6
5992 else
5993 if test -n "$RANLIB"; then
5994 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5995 else
5996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5997 for as_dir in $PATH
5999 IFS=$as_save_IFS
6000 test -z "$as_dir" && as_dir=.
6001 for ac_exec_ext in '' $ac_executable_extensions; do
6002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6003 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6005 break 2
6007 done
6008 done
6012 RANLIB=$ac_cv_prog_RANLIB
6013 if test -n "$RANLIB"; then
6014 echo "$as_me:$LINENO: result: $RANLIB" >&5
6015 echo "${ECHO_T}$RANLIB" >&6
6016 else
6017 echo "$as_me:$LINENO: result: no" >&5
6018 echo "${ECHO_T}no" >&6
6022 if test -z "$ac_cv_prog_RANLIB"; then
6023 ac_ct_RANLIB=$RANLIB
6024 # Extract the first word of "ranlib", so it can be a program name with args.
6025 set dummy ranlib; ac_word=$2
6026 echo "$as_me:$LINENO: checking for $ac_word" >&5
6027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6028 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6029 echo $ECHO_N "(cached) $ECHO_C" >&6
6030 else
6031 if test -n "$ac_ct_RANLIB"; then
6032 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6033 else
6034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6035 for as_dir in $PATH
6037 IFS=$as_save_IFS
6038 test -z "$as_dir" && as_dir=.
6039 for ac_exec_ext in '' $ac_executable_extensions; do
6040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6041 ac_cv_prog_ac_ct_RANLIB="ranlib"
6042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6043 break 2
6045 done
6046 done
6048 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6051 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6052 if test -n "$ac_ct_RANLIB"; then
6053 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6054 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6055 else
6056 echo "$as_me:$LINENO: result: no" >&5
6057 echo "${ECHO_T}no" >&6
6060 RANLIB=$ac_ct_RANLIB
6061 else
6062 RANLIB="$ac_cv_prog_RANLIB"
6065 test -z "$RANLIB" && RANLIB=:
6072 # Determine commands to create old-style static archives.
6073 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6074 old_postinstall_cmds='chmod 644 $oldlib'
6075 old_postuninstall_cmds=
6077 if test -n "$RANLIB"; then
6078 case $host_os in
6079 openbsd*)
6080 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6083 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6085 esac
6086 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6122 # If no C compiler was specified, use CC.
6123 LTCC=${LTCC-"$CC"}
6125 # If no C compiler flags were specified, use CFLAGS.
6126 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6128 # Allow CC to be a program name with arguments.
6129 compiler=$CC
6132 # Check for command to grab the raw symbol name followed by C symbol from nm.
6133 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6134 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6135 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6136 echo $ECHO_N "(cached) $ECHO_C" >&6
6137 else
6139 # These are sane defaults that work on at least a few old systems.
6140 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6142 # Character class describing NM global symbol codes.
6143 symcode='[BCDEGRST]'
6145 # Regexp to match symbols that can be accessed directly from C.
6146 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6148 # Define system-specific variables.
6149 case $host_os in
6150 aix*)
6151 symcode='[BCDT]'
6153 cygwin* | mingw* | pw32*)
6154 symcode='[ABCDGISTW]'
6156 hpux*)
6157 if test "$host_cpu" = ia64; then
6158 symcode='[ABCDEGRST]'
6161 irix* | nonstopux*)
6162 symcode='[BCDEGRST]'
6164 osf*)
6165 symcode='[BCDEGQRST]'
6167 solaris*)
6168 symcode='[BDRT]'
6170 sco3.2v5*)
6171 symcode='[DT]'
6173 sysv4.2uw2*)
6174 symcode='[DT]'
6176 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6177 symcode='[ABDT]'
6179 sysv4)
6180 symcode='[DFNSTU]'
6182 esac
6184 # If we're using GNU nm, then use its standard symbol codes.
6185 case `$NM -V 2>&1` in
6186 *GNU* | *'with BFD'*)
6187 symcode='[ABCDGIRSTW]' ;;
6188 esac
6190 # Transform an extracted symbol line into a proper C declaration.
6191 # Some systems (esp. on ia64) link data and code symbols differently,
6192 # so use this general approach.
6193 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6195 # Transform an extracted symbol line into symbol name and symbol address
6196 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6198 # Handle CRLF in mingw tool chain
6199 opt_cr=
6200 case $build_os in
6201 mingw*)
6202 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6204 esac
6206 # Try without a prefix underscore, then with it.
6207 for ac_symprfx in "" "_"; do
6209 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6210 symxfrm="\\1 $ac_symprfx\\2 \\2"
6212 # Write the raw and C identifiers.
6213 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6214 # Fake it for dumpbin and say T for any non-static function
6215 # and D for any global variable.
6216 # Also find C++ and __fastcall symbols from MSVC++,
6217 # which start with @ or ?.
6218 lt_cv_sys_global_symbol_pipe="$AWK '"\
6219 " {last_section=section; section=\$ 3};"\
6220 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6221 " \$ 0!~/External *\|/{next};"\
6222 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6223 " {if(hide[section]) next};"\
6224 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6225 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6226 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6227 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6228 " ' prfx=^$ac_symprfx"
6229 else
6230 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6233 # Check to see that the pipe works correctly.
6234 pipe_works=no
6236 rm -f conftest*
6237 cat > conftest.$ac_ext <<_LT_EOF
6238 #ifdef __cplusplus
6239 extern "C" {
6240 #endif
6241 char nm_test_var;
6242 void nm_test_func(void);
6243 void nm_test_func(void){}
6244 #ifdef __cplusplus
6246 #endif
6247 int main(){nm_test_var='a';nm_test_func();return(0);}
6248 _LT_EOF
6250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6251 (eval $ac_compile) 2>&5
6252 ac_status=$?
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); }; then
6255 # Now try to grab the symbols.
6256 nlist=conftest.nm
6257 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6258 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6259 ac_status=$?
6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); } && test -s "$nlist"; then
6262 # Try sorting and uniquifying the output.
6263 if sort "$nlist" | uniq > "$nlist"T; then
6264 mv -f "$nlist"T "$nlist"
6265 else
6266 rm -f "$nlist"T
6269 # Make sure that we snagged all the symbols we need.
6270 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6271 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6272 cat <<_LT_EOF > conftest.$ac_ext
6273 #ifdef __cplusplus
6274 extern "C" {
6275 #endif
6277 _LT_EOF
6278 # Now generate the symbol file.
6279 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6281 cat <<_LT_EOF >> conftest.$ac_ext
6283 /* The mapping between symbol names and symbols. */
6284 const struct {
6285 const char *name;
6286 void *address;
6288 lt__PROGRAM__LTX_preloaded_symbols[] =
6290 { "@PROGRAM@", (void *) 0 },
6291 _LT_EOF
6292 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6293 cat <<\_LT_EOF >> conftest.$ac_ext
6294 {0, (void *) 0}
6297 /* This works around a problem in FreeBSD linker */
6298 #ifdef FREEBSD_WORKAROUND
6299 static const void *lt_preloaded_setup() {
6300 return lt__PROGRAM__LTX_preloaded_symbols;
6302 #endif
6304 #ifdef __cplusplus
6306 #endif
6307 _LT_EOF
6308 # Now try linking the two files.
6309 mv conftest.$ac_objext conftstm.$ac_objext
6310 lt_save_LIBS="$LIBS"
6311 lt_save_CFLAGS="$CFLAGS"
6312 LIBS="conftstm.$ac_objext"
6313 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6315 (eval $ac_link) 2>&5
6316 ac_status=$?
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6319 pipe_works=yes
6321 LIBS="$lt_save_LIBS"
6322 CFLAGS="$lt_save_CFLAGS"
6323 else
6324 echo "cannot find nm_test_func in $nlist" >&5
6326 else
6327 echo "cannot find nm_test_var in $nlist" >&5
6329 else
6330 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6332 else
6333 echo "$progname: failed program was:" >&5
6334 cat conftest.$ac_ext >&5
6336 rm -f conftest* conftst*
6338 # Do not use the global_symbol_pipe unless it works.
6339 if test "$pipe_works" = yes; then
6340 break
6341 else
6342 lt_cv_sys_global_symbol_pipe=
6344 done
6348 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6349 lt_cv_sys_global_symbol_to_cdecl=
6351 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6352 echo "$as_me:$LINENO: result: failed" >&5
6353 echo "${ECHO_T}failed" >&6
6354 else
6355 echo "$as_me:$LINENO: result: ok" >&5
6356 echo "${ECHO_T}ok" >&6
6375 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6376 if test "${enable_libtool_lock+set}" = set; then
6377 enableval="$enable_libtool_lock"
6380 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6382 # Some flags need to be propagated to the compiler or linker for good
6383 # libtool support.
6384 case $host in
6385 ia64-*-hpux*)
6386 # Find out which ABI we are using.
6387 echo 'int i;' > conftest.$ac_ext
6388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6389 (eval $ac_compile) 2>&5
6390 ac_status=$?
6391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); }; then
6393 case `/usr/bin/file conftest.$ac_objext` in
6394 *ELF-32*)
6395 HPUX_IA64_MODE="32"
6397 *ELF-64*)
6398 HPUX_IA64_MODE="64"
6400 esac
6402 rm -rf conftest*
6404 *-*-irix6*)
6405 # Find out which ABI we are using.
6406 echo '#line 6406 "configure"' > conftest.$ac_ext
6407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6408 (eval $ac_compile) 2>&5
6409 ac_status=$?
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); }; then
6412 if test "$lt_cv_prog_gnu_ld" = yes; then
6413 case `/usr/bin/file conftest.$ac_objext` in
6414 *32-bit*)
6415 LD="${LD-ld} -melf32bsmip"
6417 *N32*)
6418 LD="${LD-ld} -melf32bmipn32"
6420 *64-bit*)
6421 LD="${LD-ld} -melf64bmip"
6423 esac
6424 else
6425 case `/usr/bin/file conftest.$ac_objext` in
6426 *32-bit*)
6427 LD="${LD-ld} -32"
6429 *N32*)
6430 LD="${LD-ld} -n32"
6432 *64-bit*)
6433 LD="${LD-ld} -64"
6435 esac
6438 rm -rf conftest*
6441 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6442 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6443 # Find out which ABI we are using.
6444 echo 'int i;' > conftest.$ac_ext
6445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6446 (eval $ac_compile) 2>&5
6447 ac_status=$?
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); }; then
6450 case `/usr/bin/file conftest.o` in
6451 *32-bit*)
6452 case $host in
6453 x86_64-*kfreebsd*-gnu)
6454 LD="${LD-ld} -m elf_i386_fbsd"
6456 x86_64-*linux*)
6457 LD="${LD-ld} -m elf_i386"
6459 ppc64-*linux*|powerpc64-*linux*)
6460 LD="${LD-ld} -m elf32ppclinux"
6462 s390x-*linux*)
6463 LD="${LD-ld} -m elf_s390"
6465 sparc64-*linux*)
6466 LD="${LD-ld} -m elf32_sparc"
6468 esac
6470 *64-bit*)
6471 case $host in
6472 x86_64-*kfreebsd*-gnu)
6473 LD="${LD-ld} -m elf_x86_64_fbsd"
6475 x86_64-*linux*)
6476 LD="${LD-ld} -m elf_x86_64"
6478 ppc*-*linux*|powerpc*-*linux*)
6479 LD="${LD-ld} -m elf64ppc"
6481 s390*-*linux*|s390*-*tpf*)
6482 LD="${LD-ld} -m elf64_s390"
6484 sparc*-*linux*)
6485 LD="${LD-ld} -m elf64_sparc"
6487 esac
6489 esac
6491 rm -rf conftest*
6494 *-*-sco3.2v5*)
6495 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6496 SAVE_CFLAGS="$CFLAGS"
6497 CFLAGS="$CFLAGS -belf"
6498 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6499 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6500 if test "${lt_cv_cc_needs_belf+set}" = set; then
6501 echo $ECHO_N "(cached) $ECHO_C" >&6
6502 else
6503 ac_ext=c
6504 ac_cpp='$CPP $CPPFLAGS'
6505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6509 cat >conftest.$ac_ext <<_ACEOF
6510 /* confdefs.h. */
6511 _ACEOF
6512 cat confdefs.h >>conftest.$ac_ext
6513 cat >>conftest.$ac_ext <<_ACEOF
6514 /* end confdefs.h. */
6517 main ()
6521 return 0;
6523 _ACEOF
6524 rm -f conftest.$ac_objext conftest$ac_exeext
6525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6526 (eval $ac_link) 2>conftest.er1
6527 ac_status=$?
6528 grep -v '^ *+' conftest.er1 >conftest.err
6529 rm -f conftest.er1
6530 cat conftest.err >&5
6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); } &&
6533 { ac_try='test -z "$ac_c_werror_flag"
6534 || test ! -s conftest.err'
6535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6536 (eval $ac_try) 2>&5
6537 ac_status=$?
6538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); }; } &&
6540 { ac_try='test -s conftest$ac_exeext'
6541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6542 (eval $ac_try) 2>&5
6543 ac_status=$?
6544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545 (exit $ac_status); }; }; then
6546 lt_cv_cc_needs_belf=yes
6547 else
6548 echo "$as_me: failed program was:" >&5
6549 sed 's/^/| /' conftest.$ac_ext >&5
6551 lt_cv_cc_needs_belf=no
6553 rm -f conftest.err conftest.$ac_objext \
6554 conftest$ac_exeext conftest.$ac_ext
6555 ac_ext=c
6556 ac_cpp='$CPP $CPPFLAGS'
6557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6562 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6563 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6564 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6565 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6566 CFLAGS="$SAVE_CFLAGS"
6569 sparc*-*solaris*)
6570 # Find out which ABI we are using.
6571 echo 'int i;' > conftest.$ac_ext
6572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6573 (eval $ac_compile) 2>&5
6574 ac_status=$?
6575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576 (exit $ac_status); }; then
6577 case `/usr/bin/file conftest.o` in
6578 *64-bit*)
6579 case $lt_cv_prog_gnu_ld in
6580 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6581 *) LD="${LD-ld} -64" ;;
6582 esac
6584 esac
6586 rm -rf conftest*
6588 esac
6590 need_locks="$enable_libtool_lock"
6593 for ac_header in dlfcn.h
6595 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6596 echo "$as_me:$LINENO: checking for $ac_header" >&5
6597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6599 echo $ECHO_N "(cached) $ECHO_C" >&6
6600 else
6601 cat >conftest.$ac_ext <<_ACEOF
6602 /* confdefs.h. */
6603 _ACEOF
6604 cat confdefs.h >>conftest.$ac_ext
6605 cat >>conftest.$ac_ext <<_ACEOF
6606 /* end confdefs.h. */
6607 $ac_includes_default
6609 #include <$ac_header>
6610 _ACEOF
6611 rm -f conftest.$ac_objext
6612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6613 (eval $ac_compile) 2>conftest.er1
6614 ac_status=$?
6615 grep -v '^ *+' conftest.er1 >conftest.err
6616 rm -f conftest.er1
6617 cat conftest.err >&5
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); } &&
6620 { ac_try='test -z "$ac_c_werror_flag"
6621 || test ! -s conftest.err'
6622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6623 (eval $ac_try) 2>&5
6624 ac_status=$?
6625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626 (exit $ac_status); }; } &&
6627 { ac_try='test -s conftest.$ac_objext'
6628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6629 (eval $ac_try) 2>&5
6630 ac_status=$?
6631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632 (exit $ac_status); }; }; then
6633 eval "$as_ac_Header=yes"
6634 else
6635 echo "$as_me: failed program was:" >&5
6636 sed 's/^/| /' conftest.$ac_ext >&5
6638 eval "$as_ac_Header=no"
6640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6643 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6644 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6645 cat >>confdefs.h <<_ACEOF
6646 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6647 _ACEOF
6651 done
6655 # This can be used to rebuild libtool when needed
6656 LIBTOOL_DEPS="$ltmain"
6658 # Always use our own libtool.
6659 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6685 test -z "$LN_S" && LN_S="ln -s"
6700 if test -n "${ZSH_VERSION+set}" ; then
6701 setopt NO_GLOB_SUBST
6704 echo "$as_me:$LINENO: checking for objdir" >&5
6705 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6706 if test "${lt_cv_objdir+set}" = set; then
6707 echo $ECHO_N "(cached) $ECHO_C" >&6
6708 else
6709 rm -f .libs 2>/dev/null
6710 mkdir .libs 2>/dev/null
6711 if test -d .libs; then
6712 lt_cv_objdir=.libs
6713 else
6714 # MS-DOS does not allow filenames that begin with a dot.
6715 lt_cv_objdir=_libs
6717 rmdir .libs 2>/dev/null
6719 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6720 echo "${ECHO_T}$lt_cv_objdir" >&6
6721 objdir=$lt_cv_objdir
6727 cat >>confdefs.h <<_ACEOF
6728 #define LT_OBJDIR "$lt_cv_objdir/"
6729 _ACEOF
6747 case $host_os in
6748 aix3*)
6749 # AIX sometimes has problems with the GCC collect2 program. For some
6750 # reason, if we set the COLLECT_NAMES environment variable, the problems
6751 # vanish in a puff of smoke.
6752 if test "X${COLLECT_NAMES+set}" != Xset; then
6753 COLLECT_NAMES=
6754 export COLLECT_NAMES
6757 esac
6759 # Sed substitution that helps us do robust quoting. It backslashifies
6760 # metacharacters that are still active within double-quoted strings.
6761 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6763 # Same as above, but do not quote variable references.
6764 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6766 # Sed substitution to delay expansion of an escaped shell variable in a
6767 # double_quote_subst'ed string.
6768 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6770 # Sed substitution to delay expansion of an escaped single quote.
6771 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6773 # Sed substitution to avoid accidental globbing in evaled expressions
6774 no_glob_subst='s/\*/\\\*/g'
6776 # Global variables:
6777 ofile=libtool
6778 can_build_shared=yes
6780 # All known linkers require a `.a' archive for static linking (except MSVC,
6781 # which needs '.lib').
6782 libext=a
6784 with_gnu_ld="$lt_cv_prog_gnu_ld"
6786 old_CC="$CC"
6787 old_CFLAGS="$CFLAGS"
6789 # Set sane defaults for various variables
6790 test -z "$CC" && CC=cc
6791 test -z "$LTCC" && LTCC=$CC
6792 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6793 test -z "$LD" && LD=ld
6794 test -z "$ac_objext" && ac_objext=o
6796 for cc_temp in $compiler""; do
6797 case $cc_temp in
6798 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6799 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6800 \-*) ;;
6801 *) break;;
6802 esac
6803 done
6804 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6807 # Only perform the check for file, if the check method requires it
6808 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6809 case $deplibs_check_method in
6810 file_magic*)
6811 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6812 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6813 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6814 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6815 echo $ECHO_N "(cached) $ECHO_C" >&6
6816 else
6817 case $MAGIC_CMD in
6818 [\\/*] | ?:[\\/]*)
6819 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6822 lt_save_MAGIC_CMD="$MAGIC_CMD"
6823 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6824 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6825 for ac_dir in $ac_dummy; do
6826 IFS="$lt_save_ifs"
6827 test -z "$ac_dir" && ac_dir=.
6828 if test -f $ac_dir/${ac_tool_prefix}file; then
6829 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6830 if test -n "$file_magic_test_file"; then
6831 case $deplibs_check_method in
6832 "file_magic "*)
6833 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6834 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6835 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6836 $EGREP "$file_magic_regex" > /dev/null; then
6838 else
6839 cat <<_LT_EOF 1>&2
6841 *** Warning: the command libtool uses to detect shared libraries,
6842 *** $file_magic_cmd, produces output that libtool cannot recognize.
6843 *** The result is that libtool may fail to recognize shared libraries
6844 *** as such. This will affect the creation of libtool libraries that
6845 *** depend on shared libraries, but programs linked with such libtool
6846 *** libraries will work regardless of this problem. Nevertheless, you
6847 *** may want to report the problem to your system manager and/or to
6848 *** bug-libtool@gnu.org
6850 _LT_EOF
6851 fi ;;
6852 esac
6854 break
6856 done
6857 IFS="$lt_save_ifs"
6858 MAGIC_CMD="$lt_save_MAGIC_CMD"
6860 esac
6863 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6864 if test -n "$MAGIC_CMD"; then
6865 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6866 echo "${ECHO_T}$MAGIC_CMD" >&6
6867 else
6868 echo "$as_me:$LINENO: result: no" >&5
6869 echo "${ECHO_T}no" >&6
6876 if test -z "$lt_cv_path_MAGIC_CMD"; then
6877 if test -n "$ac_tool_prefix"; then
6878 echo "$as_me:$LINENO: checking for file" >&5
6879 echo $ECHO_N "checking for file... $ECHO_C" >&6
6880 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6881 echo $ECHO_N "(cached) $ECHO_C" >&6
6882 else
6883 case $MAGIC_CMD in
6884 [\\/*] | ?:[\\/]*)
6885 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6888 lt_save_MAGIC_CMD="$MAGIC_CMD"
6889 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6890 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6891 for ac_dir in $ac_dummy; do
6892 IFS="$lt_save_ifs"
6893 test -z "$ac_dir" && ac_dir=.
6894 if test -f $ac_dir/file; then
6895 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6896 if test -n "$file_magic_test_file"; then
6897 case $deplibs_check_method in
6898 "file_magic "*)
6899 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6900 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6901 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6902 $EGREP "$file_magic_regex" > /dev/null; then
6904 else
6905 cat <<_LT_EOF 1>&2
6907 *** Warning: the command libtool uses to detect shared libraries,
6908 *** $file_magic_cmd, produces output that libtool cannot recognize.
6909 *** The result is that libtool may fail to recognize shared libraries
6910 *** as such. This will affect the creation of libtool libraries that
6911 *** depend on shared libraries, but programs linked with such libtool
6912 *** libraries will work regardless of this problem. Nevertheless, you
6913 *** may want to report the problem to your system manager and/or to
6914 *** bug-libtool@gnu.org
6916 _LT_EOF
6917 fi ;;
6918 esac
6920 break
6922 done
6923 IFS="$lt_save_ifs"
6924 MAGIC_CMD="$lt_save_MAGIC_CMD"
6926 esac
6929 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6930 if test -n "$MAGIC_CMD"; then
6931 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6932 echo "${ECHO_T}$MAGIC_CMD" >&6
6933 else
6934 echo "$as_me:$LINENO: result: no" >&5
6935 echo "${ECHO_T}no" >&6
6939 else
6940 MAGIC_CMD=:
6946 esac
6948 # Use C for the default configuration in the libtool script
6950 lt_save_CC="$CC"
6951 ac_ext=c
6952 ac_cpp='$CPP $CPPFLAGS'
6953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6958 # Source file extension for C test sources.
6959 ac_ext=c
6961 # Object file extension for compiled C test sources.
6962 objext=o
6963 objext=$objext
6965 # Code to be used in simple compile tests
6966 lt_simple_compile_test_code="int some_variable = 0;"
6968 # Code to be used in simple link tests
6969 lt_simple_link_test_code='int main(){return(0);}'
6977 # If no C compiler was specified, use CC.
6978 LTCC=${LTCC-"$CC"}
6980 # If no C compiler flags were specified, use CFLAGS.
6981 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6983 # Allow CC to be a program name with arguments.
6984 compiler=$CC
6986 # Save the default compiler, since it gets overwritten when the other
6987 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6988 compiler_DEFAULT=$CC
6990 # save warnings/boilerplate of simple test code
6991 ac_outfile=conftest.$ac_objext
6992 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6993 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6994 _lt_compiler_boilerplate=`cat conftest.err`
6995 $RM conftest*
6997 ac_outfile=conftest.$ac_objext
6998 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6999 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7000 _lt_linker_boilerplate=`cat conftest.err`
7001 $RM conftest*
7004 ## CAVEAT EMPTOR:
7005 ## There is no encapsulation within the following macros, do not change
7006 ## the running order or otherwise move them around unless you know exactly
7007 ## what you are doing...
7008 if test -n "$compiler"; then
7010 lt_prog_compiler_no_builtin_flag=
7012 if test "$GCC" = yes; then
7013 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7015 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7016 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7017 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7018 echo $ECHO_N "(cached) $ECHO_C" >&6
7019 else
7020 lt_cv_prog_compiler_rtti_exceptions=no
7021 ac_outfile=conftest.$ac_objext
7022 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7023 lt_compiler_flag="-fno-rtti -fno-exceptions"
7024 # Insert the option either (1) after the last *FLAGS variable, or
7025 # (2) before a word containing "conftest.", or (3) at the end.
7026 # Note that $ac_compile itself does not contain backslashes and begins
7027 # with a dollar sign (not a hyphen), so the echo should work correctly.
7028 # The option is referenced via a variable to avoid confusing sed.
7029 lt_compile=`echo "$ac_compile" | $SED \
7030 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7031 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7032 -e 's:$: $lt_compiler_flag:'`
7033 (eval echo "\"\$as_me:7033: $lt_compile\"" >&5)
7034 (eval "$lt_compile" 2>conftest.err)
7035 ac_status=$?
7036 cat conftest.err >&5
7037 echo "$as_me:7037: \$? = $ac_status" >&5
7038 if (exit $ac_status) && test -s "$ac_outfile"; then
7039 # The compiler can only warn and ignore the option if not recognized
7040 # So say no if there are warnings other than the usual output.
7041 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7042 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7043 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7044 lt_cv_prog_compiler_rtti_exceptions=yes
7047 $RM conftest*
7050 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7051 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7053 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7054 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7055 else
7066 lt_prog_compiler_wl=
7067 lt_prog_compiler_pic=
7068 lt_prog_compiler_static=
7070 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7071 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7073 if test "$GCC" = yes; then
7074 lt_prog_compiler_wl='-Wl,'
7075 lt_prog_compiler_static='-static'
7077 case $host_os in
7078 aix*)
7079 # All AIX code is PIC.
7080 if test "$host_cpu" = ia64; then
7081 # AIX 5 now supports IA64 processor
7082 lt_prog_compiler_static='-Bstatic'
7086 amigaos*)
7087 if test "$host_cpu" = m68k; then
7088 # FIXME: we need at least 68020 code to build shared libraries, but
7089 # adding the `-m68020' flag to GCC prevents building anything better,
7090 # like `-m68040'.
7091 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7095 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7096 # PIC is the default for these OSes.
7099 mingw* | cygwin* | pw32* | os2*)
7100 # This hack is so that the source file can tell whether it is being
7101 # built for inclusion in a dll (and should export symbols for example).
7102 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7103 # (--disable-auto-import) libraries
7104 lt_prog_compiler_pic='-DDLL_EXPORT'
7107 darwin* | rhapsody*)
7108 # PIC is the default on this platform
7109 # Common symbols not allowed in MH_DYLIB files
7110 lt_prog_compiler_pic='-fno-common'
7113 hpux*)
7114 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7115 # not for PA HP-UX.
7116 case $host_cpu in
7117 hppa*64*|ia64*)
7118 # +Z the default
7121 lt_prog_compiler_pic='-fPIC'
7123 esac
7126 interix[3-9]*)
7127 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7128 # Instead, we relocate shared libraries at runtime.
7131 msdosdjgpp*)
7132 # Just because we use GCC doesn't mean we suddenly get shared libraries
7133 # on systems that don't support them.
7134 lt_prog_compiler_can_build_shared=no
7135 enable_shared=no
7138 *nto* | *qnx*)
7139 # QNX uses GNU C++, but need to define -shared option too, otherwise
7140 # it will coredump.
7141 lt_prog_compiler_pic='-fPIC -shared'
7144 sysv4*MP*)
7145 if test -d /usr/nec; then
7146 lt_prog_compiler_pic=-Kconform_pic
7151 lt_prog_compiler_pic='-fPIC'
7153 esac
7154 else
7155 # PORTME Check for flag to pass linker flags through the system compiler.
7156 case $host_os in
7157 aix*)
7158 lt_prog_compiler_wl='-Wl,'
7159 if test "$host_cpu" = ia64; then
7160 # AIX 5 now supports IA64 processor
7161 lt_prog_compiler_static='-Bstatic'
7162 else
7163 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7166 darwin*)
7167 # PIC is the default on this platform
7168 # Common symbols not allowed in MH_DYLIB files
7169 case $cc_basename in
7170 xlc*)
7171 lt_prog_compiler_pic='-qnocommon'
7172 lt_prog_compiler_wl='-Wl,'
7174 esac
7177 mingw* | cygwin* | pw32* | os2*)
7178 # This hack is so that the source file can tell whether it is being
7179 # built for inclusion in a dll (and should export symbols for example).
7180 lt_prog_compiler_pic='-DDLL_EXPORT'
7183 hpux9* | hpux10* | hpux11*)
7184 lt_prog_compiler_wl='-Wl,'
7185 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7186 # not for PA HP-UX.
7187 case $host_cpu in
7188 hppa*64*|ia64*)
7189 # +Z the default
7192 lt_prog_compiler_pic='+Z'
7194 esac
7195 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7196 lt_prog_compiler_static='${wl}-a ${wl}archive'
7199 irix5* | irix6* | nonstopux*)
7200 lt_prog_compiler_wl='-Wl,'
7201 # PIC (with -KPIC) is the default.
7202 lt_prog_compiler_static='-non_shared'
7205 linux* | k*bsd*-gnu)
7206 case $cc_basename in
7207 icc* | ecc*)
7208 lt_prog_compiler_wl='-Wl,'
7209 lt_prog_compiler_pic='-KPIC'
7210 lt_prog_compiler_static='-static'
7212 pgcc* | pgf77* | pgf90* | pgf95*)
7213 # Portland Group compilers (*not* the Pentium gcc compiler,
7214 # which looks to be a dead project)
7215 lt_prog_compiler_wl='-Wl,'
7216 lt_prog_compiler_pic='-fpic'
7217 lt_prog_compiler_static='-Bstatic'
7219 ccc*)
7220 lt_prog_compiler_wl='-Wl,'
7221 # All Alpha code is PIC.
7222 lt_prog_compiler_static='-non_shared'
7225 case `$CC -V 2>&1 | sed 5q` in
7226 *Sun\ C*)
7227 # Sun C 5.9
7228 lt_prog_compiler_pic='-KPIC'
7229 lt_prog_compiler_static='-Bstatic'
7230 lt_prog_compiler_wl='-Wl,'
7232 *Sun\ F*)
7233 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7234 lt_prog_compiler_pic='-KPIC'
7235 lt_prog_compiler_static='-Bstatic'
7236 lt_prog_compiler_wl=''
7238 esac
7240 esac
7243 newsos6)
7244 lt_prog_compiler_pic='-KPIC'
7245 lt_prog_compiler_static='-Bstatic'
7248 *nto* | *qnx*)
7249 # QNX uses GNU C++, but need to define -shared option too, otherwise
7250 # it will coredump.
7251 lt_prog_compiler_pic='-fPIC -shared'
7254 osf3* | osf4* | osf5*)
7255 lt_prog_compiler_wl='-Wl,'
7256 # All OSF/1 code is PIC.
7257 lt_prog_compiler_static='-non_shared'
7260 rdos*)
7261 lt_prog_compiler_static='-non_shared'
7264 solaris*)
7265 lt_prog_compiler_pic='-KPIC'
7266 lt_prog_compiler_static='-Bstatic'
7267 case $cc_basename in
7268 f77* | f90* | f95*)
7269 lt_prog_compiler_wl='-Qoption ld ';;
7271 lt_prog_compiler_wl='-Wl,';;
7272 esac
7275 sunos4*)
7276 lt_prog_compiler_wl='-Qoption ld '
7277 lt_prog_compiler_pic='-PIC'
7278 lt_prog_compiler_static='-Bstatic'
7281 sysv4 | sysv4.2uw2* | sysv4.3*)
7282 lt_prog_compiler_wl='-Wl,'
7283 lt_prog_compiler_pic='-KPIC'
7284 lt_prog_compiler_static='-Bstatic'
7287 sysv4*MP*)
7288 if test -d /usr/nec ;then
7289 lt_prog_compiler_pic='-Kconform_pic'
7290 lt_prog_compiler_static='-Bstatic'
7294 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7295 lt_prog_compiler_wl='-Wl,'
7296 lt_prog_compiler_pic='-KPIC'
7297 lt_prog_compiler_static='-Bstatic'
7300 unicos*)
7301 lt_prog_compiler_wl='-Wl,'
7302 lt_prog_compiler_can_build_shared=no
7305 uts4*)
7306 lt_prog_compiler_pic='-pic'
7307 lt_prog_compiler_static='-Bstatic'
7311 lt_prog_compiler_can_build_shared=no
7313 esac
7316 case $host_os in
7317 # For platforms which do not support PIC, -DPIC is meaningless:
7318 *djgpp*)
7319 lt_prog_compiler_pic=
7322 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7324 esac
7325 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7326 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7334 # Check to make sure the PIC flag actually works.
7336 if test -n "$lt_prog_compiler_pic"; then
7337 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7338 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7339 if test "${lt_prog_compiler_pic_works+set}" = set; then
7340 echo $ECHO_N "(cached) $ECHO_C" >&6
7341 else
7342 lt_prog_compiler_pic_works=no
7343 ac_outfile=conftest.$ac_objext
7344 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7345 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7346 # Insert the option either (1) after the last *FLAGS variable, or
7347 # (2) before a word containing "conftest.", or (3) at the end.
7348 # Note that $ac_compile itself does not contain backslashes and begins
7349 # with a dollar sign (not a hyphen), so the echo should work correctly.
7350 # The option is referenced via a variable to avoid confusing sed.
7351 lt_compile=`echo "$ac_compile" | $SED \
7352 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7353 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7354 -e 's:$: $lt_compiler_flag:'`
7355 (eval echo "\"\$as_me:7355: $lt_compile\"" >&5)
7356 (eval "$lt_compile" 2>conftest.err)
7357 ac_status=$?
7358 cat conftest.err >&5
7359 echo "$as_me:7359: \$? = $ac_status" >&5
7360 if (exit $ac_status) && test -s "$ac_outfile"; then
7361 # The compiler can only warn and ignore the option if not recognized
7362 # So say no if there are warnings other than the usual output.
7363 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7364 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7365 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7366 lt_prog_compiler_pic_works=yes
7369 $RM conftest*
7372 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7373 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7375 if test x"$lt_prog_compiler_pic_works" = xyes; then
7376 case $lt_prog_compiler_pic in
7377 "" | " "*) ;;
7378 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7379 esac
7380 else
7381 lt_prog_compiler_pic=
7382 lt_prog_compiler_can_build_shared=no
7393 # Check to make sure the static flag actually works.
7395 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7396 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7397 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7398 if test "${lt_prog_compiler_static_works+set}" = set; then
7399 echo $ECHO_N "(cached) $ECHO_C" >&6
7400 else
7401 lt_prog_compiler_static_works=no
7402 save_LDFLAGS="$LDFLAGS"
7403 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7404 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7405 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7406 # The linker can only warn and ignore the option if not recognized
7407 # So say no if there are warnings
7408 if test -s conftest.err; then
7409 # Append any errors to the config.log.
7410 cat conftest.err 1>&5
7411 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7412 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7413 if diff conftest.exp conftest.er2 >/dev/null; then
7414 lt_prog_compiler_static_works=yes
7416 else
7417 lt_prog_compiler_static_works=yes
7420 $RM conftest*
7421 LDFLAGS="$save_LDFLAGS"
7424 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7425 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7427 if test x"$lt_prog_compiler_static_works" = xyes; then
7429 else
7430 lt_prog_compiler_static=
7439 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7440 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7441 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7442 echo $ECHO_N "(cached) $ECHO_C" >&6
7443 else
7444 lt_cv_prog_compiler_c_o=no
7445 $RM -r conftest 2>/dev/null
7446 mkdir conftest
7447 cd conftest
7448 mkdir out
7449 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7451 lt_compiler_flag="-o out/conftest2.$ac_objext"
7452 # Insert the option either (1) after the last *FLAGS variable, or
7453 # (2) before a word containing "conftest.", or (3) at the end.
7454 # Note that $ac_compile itself does not contain backslashes and begins
7455 # with a dollar sign (not a hyphen), so the echo should work correctly.
7456 lt_compile=`echo "$ac_compile" | $SED \
7457 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7458 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7459 -e 's:$: $lt_compiler_flag:'`
7460 (eval echo "\"\$as_me:7460: $lt_compile\"" >&5)
7461 (eval "$lt_compile" 2>out/conftest.err)
7462 ac_status=$?
7463 cat out/conftest.err >&5
7464 echo "$as_me:7464: \$? = $ac_status" >&5
7465 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7466 then
7467 # The compiler can only warn and ignore the option if not recognized
7468 # So say no if there are warnings
7469 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7470 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7471 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7472 lt_cv_prog_compiler_c_o=yes
7475 chmod u+w . 2>&5
7476 $RM conftest*
7477 # SGI C++ compiler will create directory out/ii_files/ for
7478 # template instantiation
7479 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7480 $RM out/* && rmdir out
7481 cd ..
7482 $RM -r conftest
7483 $RM conftest*
7486 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7487 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7494 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7495 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7496 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7497 echo $ECHO_N "(cached) $ECHO_C" >&6
7498 else
7499 lt_cv_prog_compiler_c_o=no
7500 $RM -r conftest 2>/dev/null
7501 mkdir conftest
7502 cd conftest
7503 mkdir out
7504 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7506 lt_compiler_flag="-o out/conftest2.$ac_objext"
7507 # Insert the option either (1) after the last *FLAGS variable, or
7508 # (2) before a word containing "conftest.", or (3) at the end.
7509 # Note that $ac_compile itself does not contain backslashes and begins
7510 # with a dollar sign (not a hyphen), so the echo should work correctly.
7511 lt_compile=`echo "$ac_compile" | $SED \
7512 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7513 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7514 -e 's:$: $lt_compiler_flag:'`
7515 (eval echo "\"\$as_me:7515: $lt_compile\"" >&5)
7516 (eval "$lt_compile" 2>out/conftest.err)
7517 ac_status=$?
7518 cat out/conftest.err >&5
7519 echo "$as_me:7519: \$? = $ac_status" >&5
7520 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7521 then
7522 # The compiler can only warn and ignore the option if not recognized
7523 # So say no if there are warnings
7524 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7525 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7526 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7527 lt_cv_prog_compiler_c_o=yes
7530 chmod u+w . 2>&5
7531 $RM conftest*
7532 # SGI C++ compiler will create directory out/ii_files/ for
7533 # template instantiation
7534 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7535 $RM out/* && rmdir out
7536 cd ..
7537 $RM -r conftest
7538 $RM conftest*
7541 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7542 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7547 hard_links="nottested"
7548 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7549 # do not overwrite the value of need_locks provided by the user
7550 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7551 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7552 hard_links=yes
7553 $RM conftest*
7554 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7555 touch conftest.a
7556 ln conftest.a conftest.b 2>&5 || hard_links=no
7557 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7558 echo "$as_me:$LINENO: result: $hard_links" >&5
7559 echo "${ECHO_T}$hard_links" >&6
7560 if test "$hard_links" = no; then
7561 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7562 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7563 need_locks=warn
7565 else
7566 need_locks=no
7574 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7575 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7577 runpath_var=
7578 allow_undefined_flag=
7579 always_export_symbols=no
7580 archive_cmds=
7581 archive_expsym_cmds=
7582 compiler_needs_object=no
7583 enable_shared_with_static_runtimes=no
7584 export_dynamic_flag_spec=
7585 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7586 hardcode_automatic=no
7587 hardcode_direct=no
7588 hardcode_direct_absolute=no
7589 hardcode_libdir_flag_spec=
7590 hardcode_libdir_flag_spec_ld=
7591 hardcode_libdir_separator=
7592 hardcode_minus_L=no
7593 hardcode_shlibpath_var=unsupported
7594 inherit_rpath=no
7595 link_all_deplibs=unknown
7596 module_cmds=
7597 module_expsym_cmds=
7598 old_archive_from_new_cmds=
7599 old_archive_from_expsyms_cmds=
7600 thread_safe_flag_spec=
7601 whole_archive_flag_spec=
7602 # include_expsyms should be a list of space-separated symbols to be *always*
7603 # included in the symbol list
7604 include_expsyms=
7605 # exclude_expsyms can be an extended regexp of symbols to exclude
7606 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7607 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7608 # as well as any symbol that contains `d'.
7609 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7610 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7611 # platforms (ab)use it in PIC code, but their linkers get confused if
7612 # the symbol is explicitly referenced. Since portable code cannot
7613 # rely on this symbol name, it's probably fine to never include it in
7614 # preloaded symbol tables.
7615 extract_expsyms_cmds=
7617 case $host_os in
7618 cygwin* | mingw* | pw32*)
7619 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7620 # When not using gcc, we currently assume that we are using
7621 # Microsoft Visual C++.
7622 if test "$GCC" != yes; then
7623 with_gnu_ld=no
7626 interix*)
7627 # we just hope/assume this is gcc and not c89 (= MSVC++)
7628 with_gnu_ld=yes
7630 openbsd*)
7631 with_gnu_ld=no
7633 esac
7635 ld_shlibs=yes
7636 if test "$with_gnu_ld" = yes; then
7637 # If archive_cmds runs LD, not CC, wlarc should be empty
7638 wlarc='${wl}'
7640 # Set some defaults for GNU ld with shared library support. These
7641 # are reset later if shared libraries are not supported. Putting them
7642 # here allows them to be overridden if necessary.
7643 runpath_var=LD_RUN_PATH
7644 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7645 export_dynamic_flag_spec='${wl}--export-dynamic'
7646 # ancient GNU ld didn't support --whole-archive et. al.
7647 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7648 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7649 else
7650 whole_archive_flag_spec=
7652 supports_anon_versioning=no
7653 case `$LD -v 2>&1` in
7654 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7655 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7656 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7657 *\ 2.11.*) ;; # other 2.11 versions
7658 *) supports_anon_versioning=yes ;;
7659 esac
7661 # See if GNU ld supports shared libraries.
7662 case $host_os in
7663 aix[3-9]*)
7664 # On AIX/PPC, the GNU linker is very broken
7665 if test "$host_cpu" != ia64; then
7666 ld_shlibs=no
7667 cat <<_LT_EOF 1>&2
7669 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7670 *** to be unable to reliably create shared libraries on AIX.
7671 *** Therefore, libtool is disabling shared libraries support. If you
7672 *** really care for shared libraries, you may want to modify your PATH
7673 *** so that a non-GNU linker is found, and then restart.
7675 _LT_EOF
7679 amigaos*)
7680 if test "$host_cpu" = m68k; then
7681 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)'
7682 hardcode_libdir_flag_spec='-L$libdir'
7683 hardcode_minus_L=yes
7686 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7687 # that the semantics of dynamic libraries on AmigaOS, at least up
7688 # to version 4, is to share data among multiple programs linked
7689 # with the same dynamic library. Since this doesn't match the
7690 # behavior of shared libraries on other platforms, we can't use
7691 # them.
7692 ld_shlibs=no
7695 beos*)
7696 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7697 allow_undefined_flag=unsupported
7698 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7699 # support --undefined. This deserves some investigation. FIXME
7700 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7701 else
7702 ld_shlibs=no
7706 cygwin* | mingw* | pw32*)
7707 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7708 # as there is no search path for DLLs.
7709 hardcode_libdir_flag_spec='-L$libdir'
7710 allow_undefined_flag=unsupported
7711 always_export_symbols=no
7712 enable_shared_with_static_runtimes=yes
7713 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7715 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7716 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7717 # If the export-symbols file already is a .def file (1st line
7718 # is EXPORTS), use it as is; otherwise, prepend...
7719 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7720 cp $export_symbols $output_objdir/$soname.def;
7721 else
7722 echo EXPORTS > $output_objdir/$soname.def;
7723 cat $export_symbols >> $output_objdir/$soname.def;
7725 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7726 else
7727 ld_shlibs=no
7731 interix[3-9]*)
7732 hardcode_direct=no
7733 hardcode_shlibpath_var=no
7734 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7735 export_dynamic_flag_spec='${wl}-E'
7736 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7737 # Instead, shared libraries are loaded at an image base (0x10000000 by
7738 # default) and relocated if they conflict, which is a slow very memory
7739 # consuming and fragmenting process. To avoid this, we pick a random,
7740 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7741 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7742 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7743 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'
7746 gnu* | linux* | tpf* | k*bsd*-gnu)
7747 tmp_diet=no
7748 if test "$host_os" = linux-dietlibc; then
7749 case $cc_basename in
7750 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7751 esac
7753 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7754 && test "$tmp_diet" = no
7755 then
7756 tmp_addflag=
7757 case $cc_basename,$host_cpu in
7758 pgcc*) # Portland Group C compiler
7759 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'
7760 tmp_addflag=' $pic_flag'
7762 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7763 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'
7764 tmp_addflag=' $pic_flag -Mnomain' ;;
7765 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7766 tmp_addflag=' -i_dynamic' ;;
7767 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7768 tmp_addflag=' -i_dynamic -nofor_main' ;;
7769 ifc* | ifort*) # Intel Fortran compiler
7770 tmp_addflag=' -nofor_main' ;;
7771 esac
7772 case `$CC -V 2>&1 | sed 5q` in
7773 *Sun\ C*) # Sun C 5.9
7774 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'
7775 compiler_needs_object=yes
7776 tmp_sharedflag='-G' ;;
7777 *Sun\ F*) # Sun Fortran 8.3
7778 tmp_sharedflag='-G' ;;
7780 tmp_sharedflag='-shared' ;;
7781 esac
7782 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7784 if test "x$supports_anon_versioning" = xyes; then
7785 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7786 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7787 echo "local: *; };" >> $output_objdir/$libname.ver~
7788 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7790 else
7791 ld_shlibs=no
7795 netbsd*)
7796 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7797 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7798 wlarc=
7799 else
7800 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7801 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7805 solaris*)
7806 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7807 ld_shlibs=no
7808 cat <<_LT_EOF 1>&2
7810 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7811 *** create shared libraries on Solaris systems. Therefore, libtool
7812 *** is disabling shared libraries support. We urge you to upgrade GNU
7813 *** binutils to release 2.9.1 or newer. Another option is to modify
7814 *** your PATH or compiler configuration so that the native linker is
7815 *** used, and then restart.
7817 _LT_EOF
7818 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7819 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7820 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7821 else
7822 ld_shlibs=no
7826 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7827 case `$LD -v 2>&1` in
7828 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7829 ld_shlibs=no
7830 cat <<_LT_EOF 1>&2
7832 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7833 *** reliably create shared libraries on SCO systems. Therefore, libtool
7834 *** is disabling shared libraries support. We urge you to upgrade GNU
7835 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7836 *** your PATH or compiler configuration so that the native linker is
7837 *** used, and then restart.
7839 _LT_EOF
7842 # For security reasons, it is highly recommended that you always
7843 # use absolute paths for naming shared libraries, and exclude the
7844 # DT_RUNPATH tag from executables and libraries. But doing so
7845 # requires that you compile everything twice, which is a pain.
7846 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7847 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7848 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7849 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7850 else
7851 ld_shlibs=no
7854 esac
7857 sunos4*)
7858 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7859 wlarc=
7860 hardcode_direct=yes
7861 hardcode_shlibpath_var=no
7865 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7866 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7867 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7868 else
7869 ld_shlibs=no
7872 esac
7874 if test "$ld_shlibs" = no; then
7875 runpath_var=
7876 hardcode_libdir_flag_spec=
7877 export_dynamic_flag_spec=
7878 whole_archive_flag_spec=
7880 else
7881 # PORTME fill in a description of your system's linker (not GNU ld)
7882 case $host_os in
7883 aix3*)
7884 allow_undefined_flag=unsupported
7885 always_export_symbols=yes
7886 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'
7887 # Note: this linker hardcodes the directories in LIBPATH if there
7888 # are no directories specified by -L.
7889 hardcode_minus_L=yes
7890 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7891 # Neither direct hardcoding nor static linking is supported with a
7892 # broken collect2.
7893 hardcode_direct=unsupported
7897 aix[4-9]*)
7898 if test "$host_cpu" = ia64; then
7899 # On IA64, the linker does run time linking by default, so we don't
7900 # have to do anything special.
7901 aix_use_runtimelinking=no
7902 exp_sym_flag='-Bexport'
7903 no_entry_flag=""
7904 else
7905 # If we're using GNU nm, then we don't want the "-C" option.
7906 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7907 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7908 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'
7909 else
7910 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'
7912 aix_use_runtimelinking=no
7914 # Test if we are trying to use run time linking or normal
7915 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7916 # need to do runtime linking.
7917 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7918 for ld_flag in $LDFLAGS; do
7919 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7920 aix_use_runtimelinking=yes
7921 break
7923 done
7925 esac
7927 exp_sym_flag='-bexport'
7928 no_entry_flag='-bnoentry'
7931 # When large executables or shared objects are built, AIX ld can
7932 # have problems creating the table of contents. If linking a library
7933 # or program results in "error TOC overflow" add -mminimal-toc to
7934 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7935 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7937 archive_cmds=''
7938 hardcode_direct=yes
7939 hardcode_direct_absolute=yes
7940 hardcode_libdir_separator=':'
7941 link_all_deplibs=yes
7942 file_list_spec='${wl}-f,'
7944 if test "$GCC" = yes; then
7945 case $host_os in aix4.[012]|aix4.[012].*)
7946 # We only want to do this on AIX 4.2 and lower, the check
7947 # below for broken collect2 doesn't work under 4.3+
7948 collect2name=`${CC} -print-prog-name=collect2`
7949 if test -f "$collect2name" &&
7950 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7951 then
7952 # We have reworked collect2
7954 else
7955 # We have old collect2
7956 hardcode_direct=unsupported
7957 # It fails to find uninstalled libraries when the uninstalled
7958 # path is not listed in the libpath. Setting hardcode_minus_L
7959 # to unsupported forces relinking
7960 hardcode_minus_L=yes
7961 hardcode_libdir_flag_spec='-L$libdir'
7962 hardcode_libdir_separator=
7965 esac
7966 shared_flag='-shared'
7967 if test "$aix_use_runtimelinking" = yes; then
7968 shared_flag="$shared_flag "'${wl}-G'
7970 else
7971 # not using gcc
7972 if test "$host_cpu" = ia64; then
7973 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7974 # chokes on -Wl,-G. The following line is correct:
7975 shared_flag='-G'
7976 else
7977 if test "$aix_use_runtimelinking" = yes; then
7978 shared_flag='${wl}-G'
7979 else
7980 shared_flag='${wl}-bM:SRE'
7985 # It seems that -bexpall does not export symbols beginning with
7986 # underscore (_), so it is better to generate a list of symbols to export.
7987 always_export_symbols=yes
7988 if test "$aix_use_runtimelinking" = yes; then
7989 # Warning - without using the other runtime loading flags (-brtl),
7990 # -berok will link without error, but may produce a broken library.
7991 allow_undefined_flag='-berok'
7992 # Determine the default libpath from the value encoded in an
7993 # empty executable.
7994 cat >conftest.$ac_ext <<_ACEOF
7995 /* confdefs.h. */
7996 _ACEOF
7997 cat confdefs.h >>conftest.$ac_ext
7998 cat >>conftest.$ac_ext <<_ACEOF
7999 /* end confdefs.h. */
8002 main ()
8006 return 0;
8008 _ACEOF
8009 rm -f conftest.$ac_objext conftest$ac_exeext
8010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8011 (eval $ac_link) 2>conftest.er1
8012 ac_status=$?
8013 grep -v '^ *+' conftest.er1 >conftest.err
8014 rm -f conftest.er1
8015 cat conftest.err >&5
8016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017 (exit $ac_status); } &&
8018 { ac_try='test -z "$ac_c_werror_flag"
8019 || test ! -s conftest.err'
8020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8021 (eval $ac_try) 2>&5
8022 ac_status=$?
8023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024 (exit $ac_status); }; } &&
8025 { ac_try='test -s conftest$ac_exeext'
8026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8027 (eval $ac_try) 2>&5
8028 ac_status=$?
8029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030 (exit $ac_status); }; }; then
8032 lt_aix_libpath_sed='
8033 /Import File Strings/,/^$/ {
8034 /^0/ {
8035 s/^0 *\(.*\)$/\1/
8039 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8040 # Check for a 64-bit object if we didn't find anything.
8041 if test -z "$aix_libpath"; then
8042 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8044 else
8045 echo "$as_me: failed program was:" >&5
8046 sed 's/^/| /' conftest.$ac_ext >&5
8049 rm -f conftest.err conftest.$ac_objext \
8050 conftest$ac_exeext conftest.$ac_ext
8051 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8053 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8054 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"
8055 else
8056 if test "$host_cpu" = ia64; then
8057 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8058 allow_undefined_flag="-z nodefs"
8059 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"
8060 else
8061 # Determine the default libpath from the value encoded in an
8062 # empty executable.
8063 cat >conftest.$ac_ext <<_ACEOF
8064 /* confdefs.h. */
8065 _ACEOF
8066 cat confdefs.h >>conftest.$ac_ext
8067 cat >>conftest.$ac_ext <<_ACEOF
8068 /* end confdefs.h. */
8071 main ()
8075 return 0;
8077 _ACEOF
8078 rm -f conftest.$ac_objext conftest$ac_exeext
8079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8080 (eval $ac_link) 2>conftest.er1
8081 ac_status=$?
8082 grep -v '^ *+' conftest.er1 >conftest.err
8083 rm -f conftest.er1
8084 cat conftest.err >&5
8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 (exit $ac_status); } &&
8087 { ac_try='test -z "$ac_c_werror_flag"
8088 || test ! -s conftest.err'
8089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8090 (eval $ac_try) 2>&5
8091 ac_status=$?
8092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093 (exit $ac_status); }; } &&
8094 { ac_try='test -s conftest$ac_exeext'
8095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8096 (eval $ac_try) 2>&5
8097 ac_status=$?
8098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099 (exit $ac_status); }; }; then
8101 lt_aix_libpath_sed='
8102 /Import File Strings/,/^$/ {
8103 /^0/ {
8104 s/^0 *\(.*\)$/\1/
8108 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8109 # Check for a 64-bit object if we didn't find anything.
8110 if test -z "$aix_libpath"; then
8111 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8113 else
8114 echo "$as_me: failed program was:" >&5
8115 sed 's/^/| /' conftest.$ac_ext >&5
8118 rm -f conftest.err conftest.$ac_objext \
8119 conftest$ac_exeext conftest.$ac_ext
8120 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8122 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8123 # Warning - without using the other run time loading flags,
8124 # -berok will link without error, but may produce a broken library.
8125 no_undefined_flag=' ${wl}-bernotok'
8126 allow_undefined_flag=' ${wl}-berok'
8127 # Exported symbols can be pulled into shared objects from archives
8128 whole_archive_flag_spec='$convenience'
8129 archive_cmds_need_lc=yes
8130 # This is similar to how AIX traditionally builds its shared libraries.
8131 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'
8136 amigaos*)
8137 if test "$host_cpu" = m68k; then
8138 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)'
8139 hardcode_libdir_flag_spec='-L$libdir'
8140 hardcode_minus_L=yes
8142 # see comment about different semantics on the GNU ld section
8143 ld_shlibs=no
8146 bsdi[45]*)
8147 export_dynamic_flag_spec=-rdynamic
8150 cygwin* | mingw* | pw32*)
8151 # When not using gcc, we currently assume that we are using
8152 # Microsoft Visual C++.
8153 # hardcode_libdir_flag_spec is actually meaningless, as there is
8154 # no search path for DLLs.
8155 hardcode_libdir_flag_spec=' '
8156 allow_undefined_flag=unsupported
8157 # Tell ltmain to make .lib files, not .a files.
8158 libext=lib
8159 # Tell ltmain to make .dll files, not .so files.
8160 shrext_cmds=".dll"
8161 # FIXME: Setting linknames here is a bad hack.
8162 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8163 # The linker will automatically build a .lib file if we build a DLL.
8164 old_archive_from_new_cmds='true'
8165 # FIXME: Should let the user specify the lib program.
8166 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8167 fix_srcfile_path='`cygpath -w "$srcfile"`'
8168 enable_shared_with_static_runtimes=yes
8171 darwin* | rhapsody*)
8172 case $host_os in
8173 rhapsody* | darwin1.[012])
8174 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8176 *) # Darwin 1.3 on
8177 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8178 10.[012])
8179 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8181 10.*)
8182 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8184 esac
8186 esac
8187 archive_cmds_need_lc=no
8188 hardcode_direct=no
8189 hardcode_automatic=yes
8190 hardcode_shlibpath_var=unsupported
8191 whole_archive_flag_spec=''
8192 link_all_deplibs=yes
8193 if test "$GCC" = yes ; then
8194 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8195 echo $ECHO_N "(cached) $ECHO_C" >&6
8196 else
8197 lt_cv_apple_cc_single_mod=no
8198 if test -z "${LT_MULTI_MODULE}"; then
8199 # By default we will add the -single_module flag. You can override
8200 # by either setting the environment variable LT_MULTI_MODULE
8201 # non-empty at configure time, or by adding -multi-module to the
8202 # link flags.
8203 echo "int foo(void){return 1;}" > conftest.c
8204 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8205 -dynamiclib ${wl}-single_module conftest.c
8206 if test -f libconftest.dylib; then
8207 lt_cv_apple_cc_single_mod=yes
8208 rm libconftest.dylib
8210 rm conftest.$ac_ext
8214 output_verbose_link_cmd=echo
8215 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8216 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8217 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}'
8218 else
8219 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8220 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}'
8222 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8223 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}'
8224 else
8225 case $cc_basename in
8226 xlc*)
8227 output_verbose_link_cmd=echo
8228 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8229 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8230 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8231 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}'
8232 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}'
8235 ld_shlibs=no
8237 esac
8241 dgux*)
8242 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8243 hardcode_libdir_flag_spec='-L$libdir'
8244 hardcode_shlibpath_var=no
8247 freebsd1*)
8248 ld_shlibs=no
8251 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8252 # support. Future versions do this automatically, but an explicit c++rt0.o
8253 # does not break anything, and helps significantly (at the cost of a little
8254 # extra space).
8255 freebsd2.2*)
8256 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8257 hardcode_libdir_flag_spec='-R$libdir'
8258 hardcode_direct=yes
8259 hardcode_shlibpath_var=no
8262 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8263 freebsd2*)
8264 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8265 hardcode_direct=yes
8266 hardcode_minus_L=yes
8267 hardcode_shlibpath_var=no
8270 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8271 freebsd* | dragonfly*)
8272 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8273 hardcode_libdir_flag_spec='-R$libdir'
8274 hardcode_direct=yes
8275 hardcode_shlibpath_var=no
8278 hpux9*)
8279 if test "$GCC" = yes; then
8280 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'
8281 else
8282 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'
8284 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8285 hardcode_libdir_separator=:
8286 hardcode_direct=yes
8288 # hardcode_minus_L: Not really in the search PATH,
8289 # but as the default location of the library.
8290 hardcode_minus_L=yes
8291 export_dynamic_flag_spec='${wl}-E'
8294 hpux10*)
8295 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8296 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8297 else
8298 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8300 if test "$with_gnu_ld" = no; then
8301 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8302 hardcode_libdir_flag_spec_ld='+b $libdir'
8303 hardcode_libdir_separator=:
8304 hardcode_direct=yes
8305 hardcode_direct_absolute=yes
8306 export_dynamic_flag_spec='${wl}-E'
8307 # hardcode_minus_L: Not really in the search PATH,
8308 # but as the default location of the library.
8309 hardcode_minus_L=yes
8313 hpux11*)
8314 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8315 case $host_cpu in
8316 hppa*64*)
8317 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8319 ia64*)
8320 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8323 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8325 esac
8326 else
8327 case $host_cpu in
8328 hppa*64*)
8329 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8331 ia64*)
8332 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8335 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8337 esac
8339 if test "$with_gnu_ld" = no; then
8340 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8341 hardcode_libdir_separator=:
8343 case $host_cpu in
8344 hppa*64*|ia64*)
8345 hardcode_direct=no
8346 hardcode_shlibpath_var=no
8349 hardcode_direct=yes
8350 hardcode_direct_absolute=yes
8351 export_dynamic_flag_spec='${wl}-E'
8353 # hardcode_minus_L: Not really in the search PATH,
8354 # but as the default location of the library.
8355 hardcode_minus_L=yes
8357 esac
8361 irix5* | irix6* | nonstopux*)
8362 if test "$GCC" = yes; then
8363 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'
8364 # Try to use the -exported_symbol ld option, if it does not
8365 # work, assume that -exports_file does not work either and
8366 # implicitly export all symbols.
8367 save_LDFLAGS="$LDFLAGS"
8368 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8369 cat >conftest.$ac_ext <<_ACEOF
8370 int foo(void) {}
8371 _ACEOF
8372 rm -f conftest.$ac_objext conftest$ac_exeext
8373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8374 (eval $ac_link) 2>conftest.er1
8375 ac_status=$?
8376 grep -v '^ *+' conftest.er1 >conftest.err
8377 rm -f conftest.er1
8378 cat conftest.err >&5
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); } &&
8381 { ac_try='test -z "$ac_c_werror_flag"
8382 || test ! -s conftest.err'
8383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8384 (eval $ac_try) 2>&5
8385 ac_status=$?
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); }; } &&
8388 { ac_try='test -s conftest$ac_exeext'
8389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8390 (eval $ac_try) 2>&5
8391 ac_status=$?
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 (exit $ac_status); }; }; then
8394 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'
8396 else
8397 echo "$as_me: failed program was:" >&5
8398 sed 's/^/| /' conftest.$ac_ext >&5
8401 rm -f conftest.err conftest.$ac_objext \
8402 conftest$ac_exeext conftest.$ac_ext
8403 LDFLAGS="$save_LDFLAGS"
8404 else
8405 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'
8406 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'
8408 archive_cmds_need_lc='no'
8409 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8410 hardcode_libdir_separator=:
8411 inherit_rpath=yes
8412 link_all_deplibs=yes
8415 netbsd*)
8416 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8417 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8418 else
8419 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8421 hardcode_libdir_flag_spec='-R$libdir'
8422 hardcode_direct=yes
8423 hardcode_shlibpath_var=no
8426 newsos6)
8427 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8428 hardcode_direct=yes
8429 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8430 hardcode_libdir_separator=:
8431 hardcode_shlibpath_var=no
8434 *nto* | *qnx*)
8437 openbsd*)
8438 hardcode_direct=yes
8439 hardcode_shlibpath_var=no
8440 hardcode_direct_absolute=yes
8441 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8442 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8443 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8444 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8445 export_dynamic_flag_spec='${wl}-E'
8446 else
8447 case $host_os in
8448 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8449 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8450 hardcode_libdir_flag_spec='-R$libdir'
8453 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8454 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8456 esac
8460 os2*)
8461 hardcode_libdir_flag_spec='-L$libdir'
8462 hardcode_minus_L=yes
8463 allow_undefined_flag=unsupported
8464 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'
8465 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8468 osf3*)
8469 if test "$GCC" = yes; then
8470 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8471 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'
8472 else
8473 allow_undefined_flag=' -expect_unresolved \*'
8474 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'
8476 archive_cmds_need_lc='no'
8477 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8478 hardcode_libdir_separator=:
8481 osf4* | osf5*) # as osf3* with the addition of -msym flag
8482 if test "$GCC" = yes; then
8483 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8484 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'
8485 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8486 else
8487 allow_undefined_flag=' -expect_unresolved \*'
8488 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'
8489 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~
8490 $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'
8492 # Both c and cxx compiler support -rpath directly
8493 hardcode_libdir_flag_spec='-rpath $libdir'
8495 archive_cmds_need_lc='no'
8496 hardcode_libdir_separator=:
8499 solaris*)
8500 no_undefined_flag=' -z defs'
8501 if test "$GCC" = yes; then
8502 wlarc='${wl}'
8503 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8504 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8505 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8506 else
8507 case `$CC -V 2>&1` in
8508 *"Compilers 5.0"*)
8509 wlarc=''
8510 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8511 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8512 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8515 wlarc='${wl}'
8516 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8517 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8518 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8520 esac
8522 hardcode_libdir_flag_spec='-R$libdir'
8523 hardcode_shlibpath_var=no
8524 case $host_os in
8525 solaris2.[0-5] | solaris2.[0-5].*) ;;
8527 # The compiler driver will combine and reorder linker options,
8528 # but understands `-z linker_flag'. GCC discards it without `$wl',
8529 # but is careful enough not to reorder.
8530 # Supported since Solaris 2.6 (maybe 2.5.1?)
8531 if test "$GCC" = yes; then
8532 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8533 else
8534 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8537 esac
8538 link_all_deplibs=yes
8541 sunos4*)
8542 if test "x$host_vendor" = xsequent; then
8543 # Use $CC to link under sequent, because it throws in some extra .o
8544 # files that make .init and .fini sections work.
8545 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8546 else
8547 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8549 hardcode_libdir_flag_spec='-L$libdir'
8550 hardcode_direct=yes
8551 hardcode_minus_L=yes
8552 hardcode_shlibpath_var=no
8555 sysv4)
8556 case $host_vendor in
8557 sni)
8558 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8559 hardcode_direct=yes # is this really true???
8561 siemens)
8562 ## LD is ld it makes a PLAMLIB
8563 ## CC just makes a GrossModule.
8564 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8565 reload_cmds='$CC -r -o $output$reload_objs'
8566 hardcode_direct=no
8568 motorola)
8569 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8570 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8572 esac
8573 runpath_var='LD_RUN_PATH'
8574 hardcode_shlibpath_var=no
8577 sysv4.3*)
8578 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8579 hardcode_shlibpath_var=no
8580 export_dynamic_flag_spec='-Bexport'
8583 sysv4*MP*)
8584 if test -d /usr/nec; then
8585 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8586 hardcode_shlibpath_var=no
8587 runpath_var=LD_RUN_PATH
8588 hardcode_runpath_var=yes
8589 ld_shlibs=yes
8593 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8594 no_undefined_flag='${wl}-z,text'
8595 archive_cmds_need_lc=no
8596 hardcode_shlibpath_var=no
8597 runpath_var='LD_RUN_PATH'
8599 if test "$GCC" = yes; then
8600 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8601 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8602 else
8603 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8604 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8608 sysv5* | sco3.2v5* | sco5v6*)
8609 # Note: We can NOT use -z defs as we might desire, because we do not
8610 # link with -lc, and that would cause any symbols used from libc to
8611 # always be unresolved, which means just about no library would
8612 # ever link correctly. If we're not using GNU ld we use -z text
8613 # though, which does catch some bad symbols but isn't as heavy-handed
8614 # as -z defs.
8615 no_undefined_flag='${wl}-z,text'
8616 allow_undefined_flag='${wl}-z,nodefs'
8617 archive_cmds_need_lc=no
8618 hardcode_shlibpath_var=no
8619 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8620 hardcode_libdir_separator=':'
8621 link_all_deplibs=yes
8622 export_dynamic_flag_spec='${wl}-Bexport'
8623 runpath_var='LD_RUN_PATH'
8625 if test "$GCC" = yes; then
8626 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8627 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8628 else
8629 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8630 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8634 uts4*)
8635 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8636 hardcode_libdir_flag_spec='-L$libdir'
8637 hardcode_shlibpath_var=no
8641 ld_shlibs=no
8643 esac
8645 if test x$host_vendor = xsni; then
8646 case $host in
8647 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8648 export_dynamic_flag_spec='${wl}-Blargedynsym'
8650 esac
8654 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8655 echo "${ECHO_T}$ld_shlibs" >&6
8656 test "$ld_shlibs" = no && can_build_shared=no
8658 with_gnu_ld=$with_gnu_ld
8675 # Do we need to explicitly link libc?
8677 case "x$archive_cmds_need_lc" in
8678 x|xyes)
8679 # Assume -lc should be added
8680 archive_cmds_need_lc=yes
8682 if test "$enable_shared" = yes && test "$GCC" = yes; then
8683 case $archive_cmds in
8684 *'~'*)
8685 # FIXME: we may have to deal with multi-command sequences.
8687 '$CC '*)
8688 # Test whether the compiler implicitly links with -lc since on some
8689 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8690 # to ld, don't add -lc before -lgcc.
8691 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8692 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8693 $RM conftest*
8694 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8697 (eval $ac_compile) 2>&5
8698 ac_status=$?
8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700 (exit $ac_status); } 2>conftest.err; then
8701 soname=conftest
8702 lib=conftest
8703 libobjs=conftest.$ac_objext
8704 deplibs=
8705 wl=$lt_prog_compiler_wl
8706 pic_flag=$lt_prog_compiler_pic
8707 compiler_flags=-v
8708 linker_flags=-v
8709 verstring=
8710 output_objdir=.
8711 libname=conftest
8712 lt_save_allow_undefined_flag=$allow_undefined_flag
8713 allow_undefined_flag=
8714 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8715 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8716 ac_status=$?
8717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718 (exit $ac_status); }
8719 then
8720 archive_cmds_need_lc=no
8721 else
8722 archive_cmds_need_lc=yes
8724 allow_undefined_flag=$lt_save_allow_undefined_flag
8725 else
8726 cat conftest.err 1>&5
8728 $RM conftest*
8729 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8730 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8732 esac
8735 esac
8893 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8894 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8895 withGCC=$GCC
8896 if test "$withGCC" = yes; then
8897 case $host_os in
8898 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8899 *) lt_awk_arg="/^libraries:/" ;;
8900 esac
8901 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8902 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8903 # if the path contains ";" then we assume it to be the separator
8904 # otherwise default to the standard path separator (i.e. ":") - it is
8905 # assumed that no part of a normal pathname contains ";" but that should
8906 # okay in the real world where ";" in dirpaths is itself problematic.
8907 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8908 else
8909 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8911 # Ok, now we have the path, separated by spaces, we can step through it
8912 # and add multilib dir if necessary.
8913 lt_tmp_lt_search_path_spec=
8914 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8915 for lt_sys_path in $lt_search_path_spec; do
8916 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8917 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8918 else
8919 test -d "$lt_sys_path" && \
8920 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8922 done
8923 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8924 BEGIN {RS=" "; FS="/|\n";} {
8925 lt_foo="";
8926 lt_count=0;
8927 for (lt_i = NF; lt_i > 0; lt_i--) {
8928 if ($lt_i != "" && $lt_i != ".") {
8929 if ($lt_i == "..") {
8930 lt_count++;
8931 } else {
8932 if (lt_count == 0) {
8933 lt_foo="/" $lt_i lt_foo;
8934 } else {
8935 lt_count--;
8940 if (lt_foo != "") { lt_freq[lt_foo]++; }
8941 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8943 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8944 else
8945 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8947 library_names_spec=
8948 libname_spec='lib$name'
8949 soname_spec=
8950 shrext_cmds=".so"
8951 postinstall_cmds=
8952 postuninstall_cmds=
8953 finish_cmds=
8954 finish_eval=
8955 shlibpath_var=
8956 shlibpath_overrides_runpath=unknown
8957 version_type=none
8958 dynamic_linker="$host_os ld.so"
8959 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8960 need_lib_prefix=unknown
8961 hardcode_into_libs=no
8963 # when you set need_version to no, make sure it does not cause -set_version
8964 # flags to be left without arguments
8965 need_version=unknown
8967 case $host_os in
8968 aix3*)
8969 version_type=linux
8970 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8971 shlibpath_var=LIBPATH
8973 # AIX 3 has no versioning support, so we append a major version to the name.
8974 soname_spec='${libname}${release}${shared_ext}$major'
8977 aix[4-9]*)
8978 version_type=linux
8979 need_lib_prefix=no
8980 need_version=no
8981 hardcode_into_libs=yes
8982 if test "$host_cpu" = ia64; then
8983 # AIX 5 supports IA64
8984 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8985 shlibpath_var=LD_LIBRARY_PATH
8986 else
8987 # With GCC up to 2.95.x, collect2 would create an import file
8988 # for dependence libraries. The import file would start with
8989 # the line `#! .'. This would cause the generated library to
8990 # depend on `.', always an invalid library. This was fixed in
8991 # development snapshots of GCC prior to 3.0.
8992 case $host_os in
8993 aix4 | aix4.[01] | aix4.[01].*)
8994 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8995 echo ' yes '
8996 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8998 else
8999 can_build_shared=no
9002 esac
9003 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9004 # soname into executable. Probably we can add versioning support to
9005 # collect2, so additional links can be useful in future.
9006 if test "$aix_use_runtimelinking" = yes; then
9007 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9008 # instead of lib<name>.a to let people know that these are not
9009 # typical AIX shared libraries.
9010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9011 else
9012 # We preserve .a as extension for shared libraries through AIX4.2
9013 # and later when we are not doing run time linking.
9014 library_names_spec='${libname}${release}.a $libname.a'
9015 soname_spec='${libname}${release}${shared_ext}$major'
9017 shlibpath_var=LIBPATH
9021 amigaos*)
9022 if test "$host_cpu" = m68k; then
9023 library_names_spec='$libname.ixlibrary $libname.a'
9024 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9025 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'
9026 else
9027 dynamic_linker=no
9031 beos*)
9032 library_names_spec='${libname}${shared_ext}'
9033 dynamic_linker="$host_os ld.so"
9034 shlibpath_var=LIBRARY_PATH
9037 bsdi[45]*)
9038 version_type=linux
9039 need_version=no
9040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9041 soname_spec='${libname}${release}${shared_ext}$major'
9042 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9043 shlibpath_var=LD_LIBRARY_PATH
9044 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9045 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9046 # the default ld.so.conf also contains /usr/contrib/lib and
9047 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9048 # libtool to hard-code these into programs
9051 cygwin* | mingw* | pw32*)
9052 version_type=windows
9053 shrext_cmds=".dll"
9054 need_version=no
9055 need_lib_prefix=no
9057 case $withGCC,$host_os in
9058 yes,cygwin* | yes,mingw* | yes,pw32*)
9059 library_names_spec='$libname.dll.a'
9060 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9061 postinstall_cmds='base_file=`basename \${file}`~
9062 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9063 dldir=$destdir/`dirname \$dlpath`~
9064 test -d \$dldir || mkdir -p \$dldir~
9065 $install_prog $dir/$dlname \$dldir/$dlname~
9066 chmod a+x \$dldir/$dlname~
9067 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9068 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9070 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9071 dlpath=$dir/\$dldll~
9072 $RM \$dlpath'
9073 shlibpath_overrides_runpath=yes
9075 case $host_os in
9076 cygwin*)
9077 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9078 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9079 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9081 mingw*)
9082 # MinGW DLLs use traditional 'lib' prefix
9083 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9084 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9085 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9086 # It is most probably a Windows format PATH printed by
9087 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9088 # path with ; separators, and with drive letters. We can handle the
9089 # drive letters (cygwin fileutils understands them), so leave them,
9090 # especially as we might pass files found there to a mingw objdump,
9091 # which wouldn't understand a cygwinified path. Ahh.
9092 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9093 else
9094 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9097 pw32*)
9098 # pw32 DLLs use 'pw' prefix rather than 'lib'
9099 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9101 esac
9105 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9107 esac
9108 dynamic_linker='Win32 ld.exe'
9109 # FIXME: first we should search . and the directory the executable is in
9110 shlibpath_var=PATH
9113 darwin* | rhapsody*)
9114 dynamic_linker="$host_os dyld"
9115 version_type=darwin
9116 need_lib_prefix=no
9117 need_version=no
9118 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9119 soname_spec='${libname}${release}${major}$shared_ext'
9120 shlibpath_overrides_runpath=yes
9121 shlibpath_var=DYLD_LIBRARY_PATH
9122 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9124 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9125 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9128 dgux*)
9129 version_type=linux
9130 need_lib_prefix=no
9131 need_version=no
9132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9133 soname_spec='${libname}${release}${shared_ext}$major'
9134 shlibpath_var=LD_LIBRARY_PATH
9137 freebsd1*)
9138 dynamic_linker=no
9141 freebsd* | dragonfly*)
9142 # DragonFly does not have aout. When/if they implement a new
9143 # versioning mechanism, adjust this.
9144 if test -x /usr/bin/objformat; then
9145 objformat=`/usr/bin/objformat`
9146 else
9147 case $host_os in
9148 freebsd[123]*) objformat=aout ;;
9149 *) objformat=elf ;;
9150 esac
9152 version_type=freebsd-$objformat
9153 case $version_type in
9154 freebsd-elf*)
9155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9156 need_version=no
9157 need_lib_prefix=no
9159 freebsd-*)
9160 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9161 need_version=yes
9163 esac
9164 shlibpath_var=LD_LIBRARY_PATH
9165 case $host_os in
9166 freebsd2*)
9167 shlibpath_overrides_runpath=yes
9169 freebsd3.[01]* | freebsdelf3.[01]*)
9170 shlibpath_overrides_runpath=yes
9171 hardcode_into_libs=yes
9173 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9174 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9175 shlibpath_overrides_runpath=no
9176 hardcode_into_libs=yes
9178 *) # from 4.6 on, and DragonFly
9179 shlibpath_overrides_runpath=yes
9180 hardcode_into_libs=yes
9182 esac
9185 gnu*)
9186 version_type=linux
9187 need_lib_prefix=no
9188 need_version=no
9189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9190 soname_spec='${libname}${release}${shared_ext}$major'
9191 shlibpath_var=LD_LIBRARY_PATH
9192 hardcode_into_libs=yes
9195 hpux9* | hpux10* | hpux11*)
9196 # Give a soname corresponding to the major version so that dld.sl refuses to
9197 # link against other versions.
9198 version_type=sunos
9199 need_lib_prefix=no
9200 need_version=no
9201 case $host_cpu in
9202 ia64*)
9203 shrext_cmds='.so'
9204 hardcode_into_libs=yes
9205 dynamic_linker="$host_os dld.so"
9206 shlibpath_var=LD_LIBRARY_PATH
9207 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9209 soname_spec='${libname}${release}${shared_ext}$major'
9210 if test "X$HPUX_IA64_MODE" = X32; then
9211 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9212 else
9213 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9215 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9217 hppa*64*)
9218 shrext_cmds='.sl'
9219 hardcode_into_libs=yes
9220 dynamic_linker="$host_os dld.sl"
9221 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9222 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9224 soname_spec='${libname}${release}${shared_ext}$major'
9225 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9226 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9229 shrext_cmds='.sl'
9230 dynamic_linker="$host_os dld.sl"
9231 shlibpath_var=SHLIB_PATH
9232 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9234 soname_spec='${libname}${release}${shared_ext}$major'
9236 esac
9237 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9238 postinstall_cmds='chmod 555 $lib'
9241 interix[3-9]*)
9242 version_type=linux
9243 need_lib_prefix=no
9244 need_version=no
9245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9246 soname_spec='${libname}${release}${shared_ext}$major'
9247 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9248 shlibpath_var=LD_LIBRARY_PATH
9249 shlibpath_overrides_runpath=no
9250 hardcode_into_libs=yes
9253 irix5* | irix6* | nonstopux*)
9254 case $host_os in
9255 nonstopux*) version_type=nonstopux ;;
9257 if test "$lt_cv_prog_gnu_ld" = yes; then
9258 version_type=linux
9259 else
9260 version_type=irix
9261 fi ;;
9262 esac
9263 need_lib_prefix=no
9264 need_version=no
9265 soname_spec='${libname}${release}${shared_ext}$major'
9266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9267 case $host_os in
9268 irix5* | nonstopux*)
9269 libsuff= shlibsuff=
9272 case $LD in # libtool.m4 will add one of these switches to LD
9273 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9274 libsuff= shlibsuff= libmagic=32-bit;;
9275 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9276 libsuff=32 shlibsuff=N32 libmagic=N32;;
9277 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9278 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9279 *) libsuff= shlibsuff= libmagic=never-match;;
9280 esac
9282 esac
9283 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9284 shlibpath_overrides_runpath=no
9285 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9286 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9287 hardcode_into_libs=yes
9290 # No shared lib support for Linux oldld, aout, or coff.
9291 linux*oldld* | linux*aout* | linux*coff*)
9292 dynamic_linker=no
9295 # This must be Linux ELF.
9296 linux* | k*bsd*-gnu)
9297 version_type=linux
9298 need_lib_prefix=no
9299 need_version=no
9300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9301 soname_spec='${libname}${release}${shared_ext}$major'
9302 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9303 shlibpath_var=LD_LIBRARY_PATH
9304 shlibpath_overrides_runpath=no
9305 # Some binutils ld are patched to set DT_RUNPATH
9306 save_LDFLAGS=$LDFLAGS
9307 save_libdir=$libdir
9308 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9309 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9310 cat >conftest.$ac_ext <<_ACEOF
9311 /* confdefs.h. */
9312 _ACEOF
9313 cat confdefs.h >>conftest.$ac_ext
9314 cat >>conftest.$ac_ext <<_ACEOF
9315 /* end confdefs.h. */
9318 main ()
9322 return 0;
9324 _ACEOF
9325 rm -f conftest.$ac_objext conftest$ac_exeext
9326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9327 (eval $ac_link) 2>conftest.er1
9328 ac_status=$?
9329 grep -v '^ *+' conftest.er1 >conftest.err
9330 rm -f conftest.er1
9331 cat conftest.err >&5
9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); } &&
9334 { ac_try='test -z "$ac_c_werror_flag"
9335 || test ! -s conftest.err'
9336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9337 (eval $ac_try) 2>&5
9338 ac_status=$?
9339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9340 (exit $ac_status); }; } &&
9341 { ac_try='test -s conftest$ac_exeext'
9342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9343 (eval $ac_try) 2>&5
9344 ac_status=$?
9345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346 (exit $ac_status); }; }; then
9347 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9348 shlibpath_overrides_runpath=yes
9351 else
9352 echo "$as_me: failed program was:" >&5
9353 sed 's/^/| /' conftest.$ac_ext >&5
9356 rm -f conftest.err conftest.$ac_objext \
9357 conftest$ac_exeext conftest.$ac_ext
9358 LDFLAGS=$save_LDFLAGS
9359 libdir=$save_libdir
9361 # This implies no fast_install, which is unacceptable.
9362 # Some rework will be needed to allow for fast_install
9363 # before this can be enabled.
9364 hardcode_into_libs=yes
9366 # Append ld.so.conf contents to the search path
9367 if test -f /etc/ld.so.conf; then
9368 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' ' '`
9369 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9372 # We used to test for /lib/ld.so.1 and disable shared libraries on
9373 # powerpc, because MkLinux only supported shared libraries with the
9374 # GNU dynamic linker. Since this was broken with cross compilers,
9375 # most powerpc-linux boxes support dynamic linking these days and
9376 # people can always --disable-shared, the test was removed, and we
9377 # assume the GNU/Linux dynamic linker is in use.
9378 dynamic_linker='GNU/Linux ld.so'
9381 netbsd*)
9382 version_type=sunos
9383 need_lib_prefix=no
9384 need_version=no
9385 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9387 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9388 dynamic_linker='NetBSD (a.out) ld.so'
9389 else
9390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9391 soname_spec='${libname}${release}${shared_ext}$major'
9392 dynamic_linker='NetBSD ld.elf_so'
9394 shlibpath_var=LD_LIBRARY_PATH
9395 shlibpath_overrides_runpath=yes
9396 hardcode_into_libs=yes
9399 newsos6)
9400 version_type=linux
9401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9402 shlibpath_var=LD_LIBRARY_PATH
9403 shlibpath_overrides_runpath=yes
9406 *nto* | *qnx*)
9407 version_type=qnx
9408 need_lib_prefix=no
9409 need_version=no
9410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9411 soname_spec='${libname}${release}${shared_ext}$major'
9412 shlibpath_var=LD_LIBRARY_PATH
9413 shlibpath_overrides_runpath=no
9414 hardcode_into_libs=yes
9415 dynamic_linker='ldqnx.so'
9418 openbsd*)
9419 version_type=sunos
9420 sys_lib_dlsearch_path_spec="/usr/lib"
9421 need_lib_prefix=no
9422 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9423 case $host_os in
9424 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9425 *) need_version=no ;;
9426 esac
9427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9428 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9429 shlibpath_var=LD_LIBRARY_PATH
9430 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9431 case $host_os in
9432 openbsd2.[89] | openbsd2.[89].*)
9433 shlibpath_overrides_runpath=no
9436 shlibpath_overrides_runpath=yes
9438 esac
9439 else
9440 shlibpath_overrides_runpath=yes
9444 os2*)
9445 libname_spec='$name'
9446 shrext_cmds=".dll"
9447 need_lib_prefix=no
9448 library_names_spec='$libname${shared_ext} $libname.a'
9449 dynamic_linker='OS/2 ld.exe'
9450 shlibpath_var=LIBPATH
9453 osf3* | osf4* | osf5*)
9454 version_type=osf
9455 need_lib_prefix=no
9456 need_version=no
9457 soname_spec='${libname}${release}${shared_ext}$major'
9458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9459 shlibpath_var=LD_LIBRARY_PATH
9460 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9461 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9464 rdos*)
9465 dynamic_linker=no
9468 solaris*)
9469 version_type=linux
9470 need_lib_prefix=no
9471 need_version=no
9472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9473 soname_spec='${libname}${release}${shared_ext}$major'
9474 shlibpath_var=LD_LIBRARY_PATH
9475 shlibpath_overrides_runpath=yes
9476 hardcode_into_libs=yes
9477 # ldd complains unless libraries are executable
9478 postinstall_cmds='chmod +x $lib'
9481 sunos4*)
9482 version_type=sunos
9483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9484 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9485 shlibpath_var=LD_LIBRARY_PATH
9486 shlibpath_overrides_runpath=yes
9487 if test "$with_gnu_ld" = yes; then
9488 need_lib_prefix=no
9490 need_version=yes
9493 sysv4 | sysv4.3*)
9494 version_type=linux
9495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9496 soname_spec='${libname}${release}${shared_ext}$major'
9497 shlibpath_var=LD_LIBRARY_PATH
9498 case $host_vendor in
9499 sni)
9500 shlibpath_overrides_runpath=no
9501 need_lib_prefix=no
9502 runpath_var=LD_RUN_PATH
9504 siemens)
9505 need_lib_prefix=no
9507 motorola)
9508 need_lib_prefix=no
9509 need_version=no
9510 shlibpath_overrides_runpath=no
9511 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9513 esac
9516 sysv4*MP*)
9517 if test -d /usr/nec ;then
9518 version_type=linux
9519 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9520 soname_spec='$libname${shared_ext}.$major'
9521 shlibpath_var=LD_LIBRARY_PATH
9525 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9526 version_type=freebsd-elf
9527 need_lib_prefix=no
9528 need_version=no
9529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9530 soname_spec='${libname}${release}${shared_ext}$major'
9531 shlibpath_var=LD_LIBRARY_PATH
9532 shlibpath_overrides_runpath=yes
9533 hardcode_into_libs=yes
9534 if test "$with_gnu_ld" = yes; then
9535 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9536 else
9537 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9538 case $host_os in
9539 sco3.2v5*)
9540 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9542 esac
9544 sys_lib_dlsearch_path_spec='/usr/lib'
9547 tpf*)
9548 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9549 version_type=linux
9550 need_lib_prefix=no
9551 need_version=no
9552 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9553 shlibpath_var=LD_LIBRARY_PATH
9554 shlibpath_overrides_runpath=no
9555 hardcode_into_libs=yes
9558 uts4*)
9559 version_type=linux
9560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9561 soname_spec='${libname}${release}${shared_ext}$major'
9562 shlibpath_var=LD_LIBRARY_PATH
9566 dynamic_linker=no
9568 esac
9569 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9570 echo "${ECHO_T}$dynamic_linker" >&6
9571 test "$dynamic_linker" = no && can_build_shared=no
9573 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9574 if test "$GCC" = yes; then
9575 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9664 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9665 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9666 hardcode_action=
9667 if test -n "$hardcode_libdir_flag_spec" ||
9668 test -n "$runpath_var" ||
9669 test "X$hardcode_automatic" = "Xyes" ; then
9671 # We can hardcode non-existent directories.
9672 if test "$hardcode_direct" != no &&
9673 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9674 # have to relink, otherwise we might link with an installed library
9675 # when we should be linking with a yet-to-be-installed one
9676 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9677 test "$hardcode_minus_L" != no; then
9678 # Linking always hardcodes the temporary library directory.
9679 hardcode_action=relink
9680 else
9681 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9682 hardcode_action=immediate
9684 else
9685 # We cannot hardcode anything, or else we can only hardcode existing
9686 # directories.
9687 hardcode_action=unsupported
9689 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9690 echo "${ECHO_T}$hardcode_action" >&6
9692 if test "$hardcode_action" = relink ||
9693 test "$inherit_rpath" = yes; then
9694 # Fast installation is not supported
9695 enable_fast_install=no
9696 elif test "$shlibpath_overrides_runpath" = yes ||
9697 test "$enable_shared" = no; then
9698 # Fast installation is not necessary
9699 enable_fast_install=needless
9707 if test "x$enable_dlopen" != xyes; then
9708 enable_dlopen=unknown
9709 enable_dlopen_self=unknown
9710 enable_dlopen_self_static=unknown
9711 else
9712 lt_cv_dlopen=no
9713 lt_cv_dlopen_libs=
9715 case $host_os in
9716 beos*)
9717 lt_cv_dlopen="load_add_on"
9718 lt_cv_dlopen_libs=
9719 lt_cv_dlopen_self=yes
9722 mingw* | pw32*)
9723 lt_cv_dlopen="LoadLibrary"
9724 lt_cv_dlopen_libs=
9727 cygwin*)
9728 lt_cv_dlopen="dlopen"
9729 lt_cv_dlopen_libs=
9732 darwin*)
9733 # if libdl is installed we need to link against it
9734 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9735 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9736 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9737 echo $ECHO_N "(cached) $ECHO_C" >&6
9738 else
9739 ac_check_lib_save_LIBS=$LIBS
9740 LIBS="-ldl $LIBS"
9741 cat >conftest.$ac_ext <<_ACEOF
9742 /* confdefs.h. */
9743 _ACEOF
9744 cat confdefs.h >>conftest.$ac_ext
9745 cat >>conftest.$ac_ext <<_ACEOF
9746 /* end confdefs.h. */
9748 /* Override any gcc2 internal prototype to avoid an error. */
9749 #ifdef __cplusplus
9750 extern "C"
9751 #endif
9752 /* We use char because int might match the return type of a gcc2
9753 builtin and then its argument prototype would still apply. */
9754 char dlopen ();
9756 main ()
9758 dlopen ();
9760 return 0;
9762 _ACEOF
9763 rm -f conftest.$ac_objext conftest$ac_exeext
9764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9765 (eval $ac_link) 2>conftest.er1
9766 ac_status=$?
9767 grep -v '^ *+' conftest.er1 >conftest.err
9768 rm -f conftest.er1
9769 cat conftest.err >&5
9770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771 (exit $ac_status); } &&
9772 { ac_try='test -z "$ac_c_werror_flag"
9773 || test ! -s conftest.err'
9774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9775 (eval $ac_try) 2>&5
9776 ac_status=$?
9777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778 (exit $ac_status); }; } &&
9779 { ac_try='test -s conftest$ac_exeext'
9780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9781 (eval $ac_try) 2>&5
9782 ac_status=$?
9783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784 (exit $ac_status); }; }; then
9785 ac_cv_lib_dl_dlopen=yes
9786 else
9787 echo "$as_me: failed program was:" >&5
9788 sed 's/^/| /' conftest.$ac_ext >&5
9790 ac_cv_lib_dl_dlopen=no
9792 rm -f conftest.err conftest.$ac_objext \
9793 conftest$ac_exeext conftest.$ac_ext
9794 LIBS=$ac_check_lib_save_LIBS
9796 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9797 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9798 if test $ac_cv_lib_dl_dlopen = yes; then
9799 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9800 else
9802 lt_cv_dlopen="dyld"
9803 lt_cv_dlopen_libs=
9804 lt_cv_dlopen_self=yes
9811 echo "$as_me:$LINENO: checking for shl_load" >&5
9812 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9813 if test "${ac_cv_func_shl_load+set}" = set; then
9814 echo $ECHO_N "(cached) $ECHO_C" >&6
9815 else
9816 cat >conftest.$ac_ext <<_ACEOF
9817 /* confdefs.h. */
9818 _ACEOF
9819 cat confdefs.h >>conftest.$ac_ext
9820 cat >>conftest.$ac_ext <<_ACEOF
9821 /* end confdefs.h. */
9822 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9824 #define shl_load innocuous_shl_load
9826 /* System header to define __stub macros and hopefully few prototypes,
9827 which can conflict with char shl_load (); below.
9828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9829 <limits.h> exists even on freestanding compilers. */
9831 #ifdef __STDC__
9832 # include <limits.h>
9833 #else
9834 # include <assert.h>
9835 #endif
9837 #undef shl_load
9839 /* Override any gcc2 internal prototype to avoid an error. */
9840 #ifdef __cplusplus
9841 extern "C"
9843 #endif
9844 /* We use char because int might match the return type of a gcc2
9845 builtin and then its argument prototype would still apply. */
9846 char shl_load ();
9847 /* The GNU C library defines this for functions which it implements
9848 to always fail with ENOSYS. Some functions are actually named
9849 something starting with __ and the normal name is an alias. */
9850 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9851 choke me
9852 #else
9853 char (*f) () = shl_load;
9854 #endif
9855 #ifdef __cplusplus
9857 #endif
9860 main ()
9862 return f != shl_load;
9864 return 0;
9866 _ACEOF
9867 rm -f conftest.$ac_objext conftest$ac_exeext
9868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9869 (eval $ac_link) 2>conftest.er1
9870 ac_status=$?
9871 grep -v '^ *+' conftest.er1 >conftest.err
9872 rm -f conftest.er1
9873 cat conftest.err >&5
9874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875 (exit $ac_status); } &&
9876 { ac_try='test -z "$ac_c_werror_flag"
9877 || test ! -s conftest.err'
9878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9879 (eval $ac_try) 2>&5
9880 ac_status=$?
9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882 (exit $ac_status); }; } &&
9883 { ac_try='test -s conftest$ac_exeext'
9884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9885 (eval $ac_try) 2>&5
9886 ac_status=$?
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); }; }; then
9889 ac_cv_func_shl_load=yes
9890 else
9891 echo "$as_me: failed program was:" >&5
9892 sed 's/^/| /' conftest.$ac_ext >&5
9894 ac_cv_func_shl_load=no
9896 rm -f conftest.err conftest.$ac_objext \
9897 conftest$ac_exeext conftest.$ac_ext
9899 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9900 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9901 if test $ac_cv_func_shl_load = yes; then
9902 lt_cv_dlopen="shl_load"
9903 else
9904 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9905 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9906 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9907 echo $ECHO_N "(cached) $ECHO_C" >&6
9908 else
9909 ac_check_lib_save_LIBS=$LIBS
9910 LIBS="-ldld $LIBS"
9911 cat >conftest.$ac_ext <<_ACEOF
9912 /* confdefs.h. */
9913 _ACEOF
9914 cat confdefs.h >>conftest.$ac_ext
9915 cat >>conftest.$ac_ext <<_ACEOF
9916 /* end confdefs.h. */
9918 /* Override any gcc2 internal prototype to avoid an error. */
9919 #ifdef __cplusplus
9920 extern "C"
9921 #endif
9922 /* We use char because int might match the return type of a gcc2
9923 builtin and then its argument prototype would still apply. */
9924 char shl_load ();
9926 main ()
9928 shl_load ();
9930 return 0;
9932 _ACEOF
9933 rm -f conftest.$ac_objext conftest$ac_exeext
9934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9935 (eval $ac_link) 2>conftest.er1
9936 ac_status=$?
9937 grep -v '^ *+' conftest.er1 >conftest.err
9938 rm -f conftest.er1
9939 cat conftest.err >&5
9940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941 (exit $ac_status); } &&
9942 { ac_try='test -z "$ac_c_werror_flag"
9943 || test ! -s conftest.err'
9944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9945 (eval $ac_try) 2>&5
9946 ac_status=$?
9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); }; } &&
9949 { ac_try='test -s conftest$ac_exeext'
9950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9951 (eval $ac_try) 2>&5
9952 ac_status=$?
9953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954 (exit $ac_status); }; }; then
9955 ac_cv_lib_dld_shl_load=yes
9956 else
9957 echo "$as_me: failed program was:" >&5
9958 sed 's/^/| /' conftest.$ac_ext >&5
9960 ac_cv_lib_dld_shl_load=no
9962 rm -f conftest.err conftest.$ac_objext \
9963 conftest$ac_exeext conftest.$ac_ext
9964 LIBS=$ac_check_lib_save_LIBS
9966 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9967 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9968 if test $ac_cv_lib_dld_shl_load = yes; then
9969 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9970 else
9971 echo "$as_me:$LINENO: checking for dlopen" >&5
9972 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9973 if test "${ac_cv_func_dlopen+set}" = set; then
9974 echo $ECHO_N "(cached) $ECHO_C" >&6
9975 else
9976 cat >conftest.$ac_ext <<_ACEOF
9977 /* confdefs.h. */
9978 _ACEOF
9979 cat confdefs.h >>conftest.$ac_ext
9980 cat >>conftest.$ac_ext <<_ACEOF
9981 /* end confdefs.h. */
9982 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9983 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9984 #define dlopen innocuous_dlopen
9986 /* System header to define __stub macros and hopefully few prototypes,
9987 which can conflict with char dlopen (); below.
9988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9989 <limits.h> exists even on freestanding compilers. */
9991 #ifdef __STDC__
9992 # include <limits.h>
9993 #else
9994 # include <assert.h>
9995 #endif
9997 #undef dlopen
9999 /* Override any gcc2 internal prototype to avoid an error. */
10000 #ifdef __cplusplus
10001 extern "C"
10003 #endif
10004 /* We use char because int might match the return type of a gcc2
10005 builtin and then its argument prototype would still apply. */
10006 char dlopen ();
10007 /* The GNU C library defines this for functions which it implements
10008 to always fail with ENOSYS. Some functions are actually named
10009 something starting with __ and the normal name is an alias. */
10010 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10011 choke me
10012 #else
10013 char (*f) () = dlopen;
10014 #endif
10015 #ifdef __cplusplus
10017 #endif
10020 main ()
10022 return f != dlopen;
10024 return 0;
10026 _ACEOF
10027 rm -f conftest.$ac_objext conftest$ac_exeext
10028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10029 (eval $ac_link) 2>conftest.er1
10030 ac_status=$?
10031 grep -v '^ *+' conftest.er1 >conftest.err
10032 rm -f conftest.er1
10033 cat conftest.err >&5
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); } &&
10036 { ac_try='test -z "$ac_c_werror_flag"
10037 || test ! -s conftest.err'
10038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10039 (eval $ac_try) 2>&5
10040 ac_status=$?
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); }; } &&
10043 { ac_try='test -s conftest$ac_exeext'
10044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10045 (eval $ac_try) 2>&5
10046 ac_status=$?
10047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048 (exit $ac_status); }; }; then
10049 ac_cv_func_dlopen=yes
10050 else
10051 echo "$as_me: failed program was:" >&5
10052 sed 's/^/| /' conftest.$ac_ext >&5
10054 ac_cv_func_dlopen=no
10056 rm -f conftest.err conftest.$ac_objext \
10057 conftest$ac_exeext conftest.$ac_ext
10059 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10060 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10061 if test $ac_cv_func_dlopen = yes; then
10062 lt_cv_dlopen="dlopen"
10063 else
10064 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10065 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10066 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10067 echo $ECHO_N "(cached) $ECHO_C" >&6
10068 else
10069 ac_check_lib_save_LIBS=$LIBS
10070 LIBS="-ldl $LIBS"
10071 cat >conftest.$ac_ext <<_ACEOF
10072 /* confdefs.h. */
10073 _ACEOF
10074 cat confdefs.h >>conftest.$ac_ext
10075 cat >>conftest.$ac_ext <<_ACEOF
10076 /* end confdefs.h. */
10078 /* Override any gcc2 internal prototype to avoid an error. */
10079 #ifdef __cplusplus
10080 extern "C"
10081 #endif
10082 /* We use char because int might match the return type of a gcc2
10083 builtin and then its argument prototype would still apply. */
10084 char dlopen ();
10086 main ()
10088 dlopen ();
10090 return 0;
10092 _ACEOF
10093 rm -f conftest.$ac_objext conftest$ac_exeext
10094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10095 (eval $ac_link) 2>conftest.er1
10096 ac_status=$?
10097 grep -v '^ *+' conftest.er1 >conftest.err
10098 rm -f conftest.er1
10099 cat conftest.err >&5
10100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101 (exit $ac_status); } &&
10102 { ac_try='test -z "$ac_c_werror_flag"
10103 || test ! -s conftest.err'
10104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10105 (eval $ac_try) 2>&5
10106 ac_status=$?
10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108 (exit $ac_status); }; } &&
10109 { ac_try='test -s conftest$ac_exeext'
10110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10111 (eval $ac_try) 2>&5
10112 ac_status=$?
10113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114 (exit $ac_status); }; }; then
10115 ac_cv_lib_dl_dlopen=yes
10116 else
10117 echo "$as_me: failed program was:" >&5
10118 sed 's/^/| /' conftest.$ac_ext >&5
10120 ac_cv_lib_dl_dlopen=no
10122 rm -f conftest.err conftest.$ac_objext \
10123 conftest$ac_exeext conftest.$ac_ext
10124 LIBS=$ac_check_lib_save_LIBS
10126 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10127 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10128 if test $ac_cv_lib_dl_dlopen = yes; then
10129 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10130 else
10131 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10132 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10133 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10134 echo $ECHO_N "(cached) $ECHO_C" >&6
10135 else
10136 ac_check_lib_save_LIBS=$LIBS
10137 LIBS="-lsvld $LIBS"
10138 cat >conftest.$ac_ext <<_ACEOF
10139 /* confdefs.h. */
10140 _ACEOF
10141 cat confdefs.h >>conftest.$ac_ext
10142 cat >>conftest.$ac_ext <<_ACEOF
10143 /* end confdefs.h. */
10145 /* Override any gcc2 internal prototype to avoid an error. */
10146 #ifdef __cplusplus
10147 extern "C"
10148 #endif
10149 /* We use char because int might match the return type of a gcc2
10150 builtin and then its argument prototype would still apply. */
10151 char dlopen ();
10153 main ()
10155 dlopen ();
10157 return 0;
10159 _ACEOF
10160 rm -f conftest.$ac_objext conftest$ac_exeext
10161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10162 (eval $ac_link) 2>conftest.er1
10163 ac_status=$?
10164 grep -v '^ *+' conftest.er1 >conftest.err
10165 rm -f conftest.er1
10166 cat conftest.err >&5
10167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168 (exit $ac_status); } &&
10169 { ac_try='test -z "$ac_c_werror_flag"
10170 || test ! -s conftest.err'
10171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10172 (eval $ac_try) 2>&5
10173 ac_status=$?
10174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175 (exit $ac_status); }; } &&
10176 { ac_try='test -s conftest$ac_exeext'
10177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10178 (eval $ac_try) 2>&5
10179 ac_status=$?
10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 (exit $ac_status); }; }; then
10182 ac_cv_lib_svld_dlopen=yes
10183 else
10184 echo "$as_me: failed program was:" >&5
10185 sed 's/^/| /' conftest.$ac_ext >&5
10187 ac_cv_lib_svld_dlopen=no
10189 rm -f conftest.err conftest.$ac_objext \
10190 conftest$ac_exeext conftest.$ac_ext
10191 LIBS=$ac_check_lib_save_LIBS
10193 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10194 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10195 if test $ac_cv_lib_svld_dlopen = yes; then
10196 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10197 else
10198 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10199 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10200 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10201 echo $ECHO_N "(cached) $ECHO_C" >&6
10202 else
10203 ac_check_lib_save_LIBS=$LIBS
10204 LIBS="-ldld $LIBS"
10205 cat >conftest.$ac_ext <<_ACEOF
10206 /* confdefs.h. */
10207 _ACEOF
10208 cat confdefs.h >>conftest.$ac_ext
10209 cat >>conftest.$ac_ext <<_ACEOF
10210 /* end confdefs.h. */
10212 /* Override any gcc2 internal prototype to avoid an error. */
10213 #ifdef __cplusplus
10214 extern "C"
10215 #endif
10216 /* We use char because int might match the return type of a gcc2
10217 builtin and then its argument prototype would still apply. */
10218 char dld_link ();
10220 main ()
10222 dld_link ();
10224 return 0;
10226 _ACEOF
10227 rm -f conftest.$ac_objext conftest$ac_exeext
10228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10229 (eval $ac_link) 2>conftest.er1
10230 ac_status=$?
10231 grep -v '^ *+' conftest.er1 >conftest.err
10232 rm -f conftest.er1
10233 cat conftest.err >&5
10234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235 (exit $ac_status); } &&
10236 { ac_try='test -z "$ac_c_werror_flag"
10237 || test ! -s conftest.err'
10238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10239 (eval $ac_try) 2>&5
10240 ac_status=$?
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242 (exit $ac_status); }; } &&
10243 { ac_try='test -s conftest$ac_exeext'
10244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10245 (eval $ac_try) 2>&5
10246 ac_status=$?
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); }; }; then
10249 ac_cv_lib_dld_dld_link=yes
10250 else
10251 echo "$as_me: failed program was:" >&5
10252 sed 's/^/| /' conftest.$ac_ext >&5
10254 ac_cv_lib_dld_dld_link=no
10256 rm -f conftest.err conftest.$ac_objext \
10257 conftest$ac_exeext conftest.$ac_ext
10258 LIBS=$ac_check_lib_save_LIBS
10260 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10261 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10262 if test $ac_cv_lib_dld_dld_link = yes; then
10263 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10282 esac
10284 if test "x$lt_cv_dlopen" != xno; then
10285 enable_dlopen=yes
10286 else
10287 enable_dlopen=no
10290 case $lt_cv_dlopen in
10291 dlopen)
10292 save_CPPFLAGS="$CPPFLAGS"
10293 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10295 save_LDFLAGS="$LDFLAGS"
10296 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10298 save_LIBS="$LIBS"
10299 LIBS="$lt_cv_dlopen_libs $LIBS"
10301 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10302 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10303 if test "${lt_cv_dlopen_self+set}" = set; then
10304 echo $ECHO_N "(cached) $ECHO_C" >&6
10305 else
10306 if test "$cross_compiling" = yes; then :
10307 lt_cv_dlopen_self=cross
10308 else
10309 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10310 lt_status=$lt_dlunknown
10311 cat > conftest.$ac_ext <<_LT_EOF
10312 #line 10312 "configure"
10313 #include "confdefs.h"
10315 #if HAVE_DLFCN_H
10316 #include <dlfcn.h>
10317 #endif
10319 #include <stdio.h>
10321 #ifdef RTLD_GLOBAL
10322 # define LT_DLGLOBAL RTLD_GLOBAL
10323 #else
10324 # ifdef DL_GLOBAL
10325 # define LT_DLGLOBAL DL_GLOBAL
10326 # else
10327 # define LT_DLGLOBAL 0
10328 # endif
10329 #endif
10331 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10332 find out it does not work in some platform. */
10333 #ifndef LT_DLLAZY_OR_NOW
10334 # ifdef RTLD_LAZY
10335 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10336 # else
10337 # ifdef DL_LAZY
10338 # define LT_DLLAZY_OR_NOW DL_LAZY
10339 # else
10340 # ifdef RTLD_NOW
10341 # define LT_DLLAZY_OR_NOW RTLD_NOW
10342 # else
10343 # ifdef DL_NOW
10344 # define LT_DLLAZY_OR_NOW DL_NOW
10345 # else
10346 # define LT_DLLAZY_OR_NOW 0
10347 # endif
10348 # endif
10349 # endif
10350 # endif
10351 #endif
10353 #ifdef __cplusplus
10354 extern "C" void exit (int);
10355 #endif
10357 void fnord() { int i=42;}
10358 int main ()
10360 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10361 int status = $lt_dlunknown;
10363 if (self)
10365 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10366 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10367 /* dlclose (self); */
10369 else
10370 puts (dlerror ());
10372 exit (status);
10374 _LT_EOF
10375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10376 (eval $ac_link) 2>&5
10377 ac_status=$?
10378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10380 (./conftest; exit; ) >&5 2>/dev/null
10381 lt_status=$?
10382 case x$lt_status in
10383 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10384 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10385 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10386 esac
10387 else :
10388 # compilation failed
10389 lt_cv_dlopen_self=no
10392 rm -fr conftest*
10396 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10397 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10399 if test "x$lt_cv_dlopen_self" = xyes; then
10400 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10401 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10402 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10403 if test "${lt_cv_dlopen_self_static+set}" = set; then
10404 echo $ECHO_N "(cached) $ECHO_C" >&6
10405 else
10406 if test "$cross_compiling" = yes; then :
10407 lt_cv_dlopen_self_static=cross
10408 else
10409 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10410 lt_status=$lt_dlunknown
10411 cat > conftest.$ac_ext <<_LT_EOF
10412 #line 10412 "configure"
10413 #include "confdefs.h"
10415 #if HAVE_DLFCN_H
10416 #include <dlfcn.h>
10417 #endif
10419 #include <stdio.h>
10421 #ifdef RTLD_GLOBAL
10422 # define LT_DLGLOBAL RTLD_GLOBAL
10423 #else
10424 # ifdef DL_GLOBAL
10425 # define LT_DLGLOBAL DL_GLOBAL
10426 # else
10427 # define LT_DLGLOBAL 0
10428 # endif
10429 #endif
10431 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10432 find out it does not work in some platform. */
10433 #ifndef LT_DLLAZY_OR_NOW
10434 # ifdef RTLD_LAZY
10435 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10436 # else
10437 # ifdef DL_LAZY
10438 # define LT_DLLAZY_OR_NOW DL_LAZY
10439 # else
10440 # ifdef RTLD_NOW
10441 # define LT_DLLAZY_OR_NOW RTLD_NOW
10442 # else
10443 # ifdef DL_NOW
10444 # define LT_DLLAZY_OR_NOW DL_NOW
10445 # else
10446 # define LT_DLLAZY_OR_NOW 0
10447 # endif
10448 # endif
10449 # endif
10450 # endif
10451 #endif
10453 #ifdef __cplusplus
10454 extern "C" void exit (int);
10455 #endif
10457 void fnord() { int i=42;}
10458 int main ()
10460 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10461 int status = $lt_dlunknown;
10463 if (self)
10465 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10466 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10467 /* dlclose (self); */
10469 else
10470 puts (dlerror ());
10472 exit (status);
10474 _LT_EOF
10475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10476 (eval $ac_link) 2>&5
10477 ac_status=$?
10478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10480 (./conftest; exit; ) >&5 2>/dev/null
10481 lt_status=$?
10482 case x$lt_status in
10483 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10484 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10485 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10486 esac
10487 else :
10488 # compilation failed
10489 lt_cv_dlopen_self_static=no
10492 rm -fr conftest*
10496 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10497 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10500 CPPFLAGS="$save_CPPFLAGS"
10501 LDFLAGS="$save_LDFLAGS"
10502 LIBS="$save_LIBS"
10504 esac
10506 case $lt_cv_dlopen_self in
10507 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10508 *) enable_dlopen_self=unknown ;;
10509 esac
10511 case $lt_cv_dlopen_self_static in
10512 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10513 *) enable_dlopen_self_static=unknown ;;
10514 esac
10533 striplib=
10534 old_striplib=
10535 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10536 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10537 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10538 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10539 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10540 echo "$as_me:$LINENO: result: yes" >&5
10541 echo "${ECHO_T}yes" >&6
10542 else
10543 # FIXME - insert some real tests, host_os isn't really good enough
10544 case $host_os in
10545 darwin*)
10546 if test -n "$STRIP" ; then
10547 striplib="$STRIP -x"
10548 old_striplib="$STRIP -S"
10549 echo "$as_me:$LINENO: result: yes" >&5
10550 echo "${ECHO_T}yes" >&6
10551 else
10552 echo "$as_me:$LINENO: result: no" >&5
10553 echo "${ECHO_T}no" >&6
10557 echo "$as_me:$LINENO: result: no" >&5
10558 echo "${ECHO_T}no" >&6
10560 esac
10574 # Report which library types will actually be built
10575 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10576 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10577 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10578 echo "${ECHO_T}$can_build_shared" >&6
10580 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10581 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10582 test "$can_build_shared" = "no" && enable_shared=no
10584 # On AIX, shared libraries and static libraries use the same namespace, and
10585 # are all built from PIC.
10586 case $host_os in
10587 aix3*)
10588 test "$enable_shared" = yes && enable_static=no
10589 if test -n "$RANLIB"; then
10590 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10591 postinstall_cmds='$RANLIB $lib'
10595 aix[4-9]*)
10596 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10597 test "$enable_shared" = yes && enable_static=no
10600 esac
10601 echo "$as_me:$LINENO: result: $enable_shared" >&5
10602 echo "${ECHO_T}$enable_shared" >&6
10604 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10605 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10606 # Make sure either enable_shared or enable_static is yes.
10607 test "$enable_shared" = yes || enable_static=yes
10608 echo "$as_me:$LINENO: result: $enable_static" >&5
10609 echo "${ECHO_T}$enable_static" >&6
10615 ac_ext=c
10616 ac_cpp='$CPP $CPPFLAGS'
10617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10621 CC="$lt_save_CC"
10635 ac_config_commands="$ac_config_commands libtool"
10640 # Only expand once:
10645 for ac_func in setmode
10647 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10648 echo "$as_me:$LINENO: checking for $ac_func" >&5
10649 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10650 if eval "test \"\${$as_ac_var+set}\" = set"; then
10651 echo $ECHO_N "(cached) $ECHO_C" >&6
10652 else
10653 cat >conftest.$ac_ext <<_ACEOF
10654 /* confdefs.h. */
10655 _ACEOF
10656 cat confdefs.h >>conftest.$ac_ext
10657 cat >>conftest.$ac_ext <<_ACEOF
10658 /* end confdefs.h. */
10659 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10661 #define $ac_func innocuous_$ac_func
10663 /* System header to define __stub macros and hopefully few prototypes,
10664 which can conflict with char $ac_func (); below.
10665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10666 <limits.h> exists even on freestanding compilers. */
10668 #ifdef __STDC__
10669 # include <limits.h>
10670 #else
10671 # include <assert.h>
10672 #endif
10674 #undef $ac_func
10676 /* Override any gcc2 internal prototype to avoid an error. */
10677 #ifdef __cplusplus
10678 extern "C"
10680 #endif
10681 /* We use char because int might match the return type of a gcc2
10682 builtin and then its argument prototype would still apply. */
10683 char $ac_func ();
10684 /* The GNU C library defines this for functions which it implements
10685 to always fail with ENOSYS. Some functions are actually named
10686 something starting with __ and the normal name is an alias. */
10687 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10688 choke me
10689 #else
10690 char (*f) () = $ac_func;
10691 #endif
10692 #ifdef __cplusplus
10694 #endif
10697 main ()
10699 return f != $ac_func;
10701 return 0;
10703 _ACEOF
10704 rm -f conftest.$ac_objext conftest$ac_exeext
10705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10706 (eval $ac_link) 2>conftest.er1
10707 ac_status=$?
10708 grep -v '^ *+' conftest.er1 >conftest.err
10709 rm -f conftest.er1
10710 cat conftest.err >&5
10711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712 (exit $ac_status); } &&
10713 { ac_try='test -z "$ac_c_werror_flag"
10714 || test ! -s conftest.err'
10715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10716 (eval $ac_try) 2>&5
10717 ac_status=$?
10718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 (exit $ac_status); }; } &&
10720 { ac_try='test -s conftest$ac_exeext'
10721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10722 (eval $ac_try) 2>&5
10723 ac_status=$?
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); }; }; then
10726 eval "$as_ac_var=yes"
10727 else
10728 echo "$as_me: failed program was:" >&5
10729 sed 's/^/| /' conftest.$ac_ext >&5
10731 eval "$as_ac_var=no"
10733 rm -f conftest.err conftest.$ac_objext \
10734 conftest$ac_exeext conftest.$ac_ext
10736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10737 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10738 if test `eval echo '${'$as_ac_var'}'` = yes; then
10739 cat >>confdefs.h <<_ACEOF
10740 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10741 _ACEOF
10744 done
10747 ALL_LINGUAS="fr tr sv es id da pt_BR de vi rw ga ms fi nl"
10748 # If we haven't got the data from the intl directory,
10749 # assume NLS is disabled.
10750 USE_NLS=no
10751 LIBINTL=
10752 LIBINTL_DEP=
10753 INCINTL=
10754 XGETTEXT=
10755 GMSGFMT=
10756 POSUB=
10758 if test -f ../intl/config.intl; then
10759 . ../intl/config.intl
10761 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10762 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10763 if test x"$USE_NLS" != xyes; then
10764 echo "$as_me:$LINENO: result: no" >&5
10765 echo "${ECHO_T}no" >&6
10766 else
10767 echo "$as_me:$LINENO: result: yes" >&5
10768 echo "${ECHO_T}yes" >&6
10770 cat >>confdefs.h <<\_ACEOF
10771 #define ENABLE_NLS 1
10772 _ACEOF
10775 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10776 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
10777 # Look for .po and .gmo files in the source directory.
10778 CATALOGS=
10779 XLINGUAS=
10780 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10781 # If there aren't any .gmo files the shell will give us the
10782 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10783 # weeded out.
10784 case "$cat" in *\**)
10785 continue;;
10786 esac
10787 # The quadruple backslash is collapsed to a double backslash
10788 # by the backticks, then collapsed again by the double quotes,
10789 # leaving us with one backslash in the sed expression (right
10790 # before the dot that mustn't act as a wildcard).
10791 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10792 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10793 # The user is allowed to set LINGUAS to a list of languages to
10794 # install catalogs for. If it's empty that means "all of them."
10795 if test "x$LINGUAS" = x; then
10796 CATALOGS="$CATALOGS $cat"
10797 XLINGUAS="$XLINGUAS $lang"
10798 else
10799 case "$LINGUAS" in *$lang*)
10800 CATALOGS="$CATALOGS $cat"
10801 XLINGUAS="$XLINGUAS $lang"
10803 esac
10805 done
10806 LINGUAS="$XLINGUAS"
10807 echo "$as_me:$LINENO: result: $LINGUAS" >&5
10808 echo "${ECHO_T}$LINGUAS" >&6
10811 DATADIRNAME=share
10813 INSTOBJEXT=.mo
10815 GENCAT=gencat
10817 CATOBJEXT=.gmo
10821 MKINSTALLDIRS=
10822 if test -n "$ac_aux_dir"; then
10823 case "$ac_aux_dir" in
10824 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
10825 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
10826 esac
10828 if test -z "$MKINSTALLDIRS"; then
10829 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10834 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10835 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10836 # Check whether --enable-nls or --disable-nls was given.
10837 if test "${enable_nls+set}" = set; then
10838 enableval="$enable_nls"
10839 USE_NLS=$enableval
10840 else
10841 USE_NLS=yes
10843 echo "$as_me:$LINENO: result: $USE_NLS" >&5
10844 echo "${ECHO_T}$USE_NLS" >&6
10851 # Prepare PATH_SEPARATOR.
10852 # The user is always right.
10853 if test "${PATH_SEPARATOR+set}" != set; then
10854 echo "#! /bin/sh" >conf$$.sh
10855 echo "exit 0" >>conf$$.sh
10856 chmod +x conf$$.sh
10857 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10858 PATH_SEPARATOR=';'
10859 else
10860 PATH_SEPARATOR=:
10862 rm -f conf$$.sh
10865 # Find out how to test for executable files. Don't use a zero-byte file,
10866 # as systems may use methods other than mode bits to determine executability.
10867 cat >conf$$.file <<_ASEOF
10868 #! /bin/sh
10869 exit 0
10870 _ASEOF
10871 chmod +x conf$$.file
10872 if test -x conf$$.file >/dev/null 2>&1; then
10873 ac_executable_p="test -x"
10874 else
10875 ac_executable_p="test -f"
10877 rm -f conf$$.file
10879 # Extract the first word of "msgfmt", so it can be a program name with args.
10880 set dummy msgfmt; ac_word=$2
10881 echo "$as_me:$LINENO: checking for $ac_word" >&5
10882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10883 if test "${ac_cv_path_MSGFMT+set}" = set; then
10884 echo $ECHO_N "(cached) $ECHO_C" >&6
10885 else
10886 case "$MSGFMT" in
10887 [\\/]* | ?:[\\/]*)
10888 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10891 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10892 for ac_dir in $PATH; do
10893 IFS="$ac_save_IFS"
10894 test -z "$ac_dir" && ac_dir=.
10895 for ac_exec_ext in '' $ac_executable_extensions; do
10896 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10897 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
10898 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10899 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10900 break 2
10903 done
10904 done
10905 IFS="$ac_save_IFS"
10906 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10908 esac
10910 MSGFMT="$ac_cv_path_MSGFMT"
10911 if test "$MSGFMT" != ":"; then
10912 echo "$as_me:$LINENO: result: $MSGFMT" >&5
10913 echo "${ECHO_T}$MSGFMT" >&6
10914 else
10915 echo "$as_me:$LINENO: result: no" >&5
10916 echo "${ECHO_T}no" >&6
10919 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10920 set dummy gmsgfmt; ac_word=$2
10921 echo "$as_me:$LINENO: checking for $ac_word" >&5
10922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10923 if test "${ac_cv_path_GMSGFMT+set}" = set; then
10924 echo $ECHO_N "(cached) $ECHO_C" >&6
10925 else
10926 case $GMSGFMT in
10927 [\\/]* | ?:[\\/]*)
10928 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10932 for as_dir in $PATH
10934 IFS=$as_save_IFS
10935 test -z "$as_dir" && as_dir=.
10936 for ac_exec_ext in '' $ac_executable_extensions; do
10937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10938 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10940 break 2
10942 done
10943 done
10945 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10947 esac
10949 GMSGFMT=$ac_cv_path_GMSGFMT
10951 if test -n "$GMSGFMT"; then
10952 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10953 echo "${ECHO_T}$GMSGFMT" >&6
10954 else
10955 echo "$as_me:$LINENO: result: no" >&5
10956 echo "${ECHO_T}no" >&6
10961 # Prepare PATH_SEPARATOR.
10962 # The user is always right.
10963 if test "${PATH_SEPARATOR+set}" != set; then
10964 echo "#! /bin/sh" >conf$$.sh
10965 echo "exit 0" >>conf$$.sh
10966 chmod +x conf$$.sh
10967 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10968 PATH_SEPARATOR=';'
10969 else
10970 PATH_SEPARATOR=:
10972 rm -f conf$$.sh
10975 # Find out how to test for executable files. Don't use a zero-byte file,
10976 # as systems may use methods other than mode bits to determine executability.
10977 cat >conf$$.file <<_ASEOF
10978 #! /bin/sh
10979 exit 0
10980 _ASEOF
10981 chmod +x conf$$.file
10982 if test -x conf$$.file >/dev/null 2>&1; then
10983 ac_executable_p="test -x"
10984 else
10985 ac_executable_p="test -f"
10987 rm -f conf$$.file
10989 # Extract the first word of "xgettext", so it can be a program name with args.
10990 set dummy xgettext; ac_word=$2
10991 echo "$as_me:$LINENO: checking for $ac_word" >&5
10992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10993 if test "${ac_cv_path_XGETTEXT+set}" = set; then
10994 echo $ECHO_N "(cached) $ECHO_C" >&6
10995 else
10996 case "$XGETTEXT" in
10997 [\\/]* | ?:[\\/]*)
10998 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11001 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11002 for ac_dir in $PATH; do
11003 IFS="$ac_save_IFS"
11004 test -z "$ac_dir" && ac_dir=.
11005 for ac_exec_ext in '' $ac_executable_extensions; do
11006 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11007 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11008 (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
11009 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11010 break 2
11013 done
11014 done
11015 IFS="$ac_save_IFS"
11016 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11018 esac
11020 XGETTEXT="$ac_cv_path_XGETTEXT"
11021 if test "$XGETTEXT" != ":"; then
11022 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
11023 echo "${ECHO_T}$XGETTEXT" >&6
11024 else
11025 echo "$as_me:$LINENO: result: no" >&5
11026 echo "${ECHO_T}no" >&6
11029 rm -f messages.po
11032 # Prepare PATH_SEPARATOR.
11033 # The user is always right.
11034 if test "${PATH_SEPARATOR+set}" != set; then
11035 echo "#! /bin/sh" >conf$$.sh
11036 echo "exit 0" >>conf$$.sh
11037 chmod +x conf$$.sh
11038 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11039 PATH_SEPARATOR=';'
11040 else
11041 PATH_SEPARATOR=:
11043 rm -f conf$$.sh
11046 # Find out how to test for executable files. Don't use a zero-byte file,
11047 # as systems may use methods other than mode bits to determine executability.
11048 cat >conf$$.file <<_ASEOF
11049 #! /bin/sh
11050 exit 0
11051 _ASEOF
11052 chmod +x conf$$.file
11053 if test -x conf$$.file >/dev/null 2>&1; then
11054 ac_executable_p="test -x"
11055 else
11056 ac_executable_p="test -f"
11058 rm -f conf$$.file
11060 # Extract the first word of "msgmerge", so it can be a program name with args.
11061 set dummy msgmerge; ac_word=$2
11062 echo "$as_me:$LINENO: checking for $ac_word" >&5
11063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11064 if test "${ac_cv_path_MSGMERGE+set}" = set; then
11065 echo $ECHO_N "(cached) $ECHO_C" >&6
11066 else
11067 case "$MSGMERGE" in
11068 [\\/]* | ?:[\\/]*)
11069 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11072 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11073 for ac_dir in $PATH; do
11074 IFS="$ac_save_IFS"
11075 test -z "$ac_dir" && ac_dir=.
11076 for ac_exec_ext in '' $ac_executable_extensions; do
11077 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11078 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11079 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11080 break 2
11083 done
11084 done
11085 IFS="$ac_save_IFS"
11086 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11088 esac
11090 MSGMERGE="$ac_cv_path_MSGMERGE"
11091 if test "$MSGMERGE" != ":"; then
11092 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
11093 echo "${ECHO_T}$MSGMERGE" >&6
11094 else
11095 echo "$as_me:$LINENO: result: no" >&5
11096 echo "${ECHO_T}no" >&6
11100 if test "$GMSGFMT" != ":"; then
11101 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11102 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11104 else
11105 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11106 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11107 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
11108 GMSGFMT=":"
11112 if test "$XGETTEXT" != ":"; then
11113 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11114 (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
11116 else
11117 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11118 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
11119 XGETTEXT=":"
11121 rm -f messages.po
11124 ac_config_commands="$ac_config_commands default-1"
11128 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11129 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11130 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11131 if test "${enable_maintainer_mode+set}" = set; then
11132 enableval="$enable_maintainer_mode"
11133 USE_MAINTAINER_MODE=$enableval
11134 else
11135 USE_MAINTAINER_MODE=no
11137 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11138 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
11141 if test $USE_MAINTAINER_MODE = yes; then
11142 MAINTAINER_MODE_TRUE=
11143 MAINTAINER_MODE_FALSE='#'
11144 else
11145 MAINTAINER_MODE_TRUE='#'
11146 MAINTAINER_MODE_FALSE=
11149 MAINT=$MAINTAINER_MODE_TRUE
11154 if false; then
11155 GENINSRC_NEVER_TRUE=
11156 GENINSRC_NEVER_FALSE='#'
11157 else
11158 GENINSRC_NEVER_TRUE='#'
11159 GENINSRC_NEVER_FALSE=
11165 for ac_header in sys/gmon_out.h
11167 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11168 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11169 echo "$as_me:$LINENO: checking for $ac_header" >&5
11170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11171 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11172 echo $ECHO_N "(cached) $ECHO_C" >&6
11174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11175 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11176 else
11177 # Is the header compilable?
11178 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11179 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11180 cat >conftest.$ac_ext <<_ACEOF
11181 /* confdefs.h. */
11182 _ACEOF
11183 cat confdefs.h >>conftest.$ac_ext
11184 cat >>conftest.$ac_ext <<_ACEOF
11185 /* end confdefs.h. */
11186 $ac_includes_default
11187 #include <$ac_header>
11188 _ACEOF
11189 rm -f conftest.$ac_objext
11190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11191 (eval $ac_compile) 2>conftest.er1
11192 ac_status=$?
11193 grep -v '^ *+' conftest.er1 >conftest.err
11194 rm -f conftest.er1
11195 cat conftest.err >&5
11196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197 (exit $ac_status); } &&
11198 { ac_try='test -z "$ac_c_werror_flag"
11199 || test ! -s conftest.err'
11200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11201 (eval $ac_try) 2>&5
11202 ac_status=$?
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); }; } &&
11205 { ac_try='test -s conftest.$ac_objext'
11206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11207 (eval $ac_try) 2>&5
11208 ac_status=$?
11209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210 (exit $ac_status); }; }; then
11211 ac_header_compiler=yes
11212 else
11213 echo "$as_me: failed program was:" >&5
11214 sed 's/^/| /' conftest.$ac_ext >&5
11216 ac_header_compiler=no
11218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11219 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11220 echo "${ECHO_T}$ac_header_compiler" >&6
11222 # Is the header present?
11223 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11224 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11225 cat >conftest.$ac_ext <<_ACEOF
11226 /* confdefs.h. */
11227 _ACEOF
11228 cat confdefs.h >>conftest.$ac_ext
11229 cat >>conftest.$ac_ext <<_ACEOF
11230 /* end confdefs.h. */
11231 #include <$ac_header>
11232 _ACEOF
11233 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11234 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11235 ac_status=$?
11236 grep -v '^ *+' conftest.er1 >conftest.err
11237 rm -f conftest.er1
11238 cat conftest.err >&5
11239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240 (exit $ac_status); } >/dev/null; then
11241 if test -s conftest.err; then
11242 ac_cpp_err=$ac_c_preproc_warn_flag
11243 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11244 else
11245 ac_cpp_err=
11247 else
11248 ac_cpp_err=yes
11250 if test -z "$ac_cpp_err"; then
11251 ac_header_preproc=yes
11252 else
11253 echo "$as_me: failed program was:" >&5
11254 sed 's/^/| /' conftest.$ac_ext >&5
11256 ac_header_preproc=no
11258 rm -f conftest.err conftest.$ac_ext
11259 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11260 echo "${ECHO_T}$ac_header_preproc" >&6
11262 # So? What about this header?
11263 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11264 yes:no: )
11265 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11266 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11268 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11269 ac_header_preproc=yes
11271 no:yes:* )
11272 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11273 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11274 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11275 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11276 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11277 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11278 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11279 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11280 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11281 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11282 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11283 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11285 cat <<\_ASBOX
11286 ## ------------------------------------------ ##
11287 ## Report this to the AC_PACKAGE_NAME lists. ##
11288 ## ------------------------------------------ ##
11289 _ASBOX
11291 sed "s/^/$as_me: WARNING: /" >&2
11293 esac
11294 echo "$as_me:$LINENO: checking for $ac_header" >&5
11295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11297 echo $ECHO_N "(cached) $ECHO_C" >&6
11298 else
11299 eval "$as_ac_Header=\$ac_header_preproc"
11301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11302 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11305 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11306 cat >>confdefs.h <<_ACEOF
11307 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11308 _ACEOF
11312 done
11315 echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
11316 echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
11317 if test "${gprof_cv_decl_getopt_unistd_h+set}" = set; then
11318 echo $ECHO_N "(cached) $ECHO_C" >&6
11319 else
11320 cat >conftest.$ac_ext <<_ACEOF
11321 /* confdefs.h. */
11322 _ACEOF
11323 cat confdefs.h >>conftest.$ac_ext
11324 cat >>conftest.$ac_ext <<_ACEOF
11325 /* end confdefs.h. */
11326 #include <unistd.h>
11328 main ()
11330 extern int getopt (int, char *const*, const char *);
11332 return 0;
11334 _ACEOF
11335 rm -f conftest.$ac_objext
11336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11337 (eval $ac_compile) 2>conftest.er1
11338 ac_status=$?
11339 grep -v '^ *+' conftest.er1 >conftest.err
11340 rm -f conftest.er1
11341 cat conftest.err >&5
11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); } &&
11344 { ac_try='test -z "$ac_c_werror_flag"
11345 || test ! -s conftest.err'
11346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11347 (eval $ac_try) 2>&5
11348 ac_status=$?
11349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); }; } &&
11351 { ac_try='test -s conftest.$ac_objext'
11352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11353 (eval $ac_try) 2>&5
11354 ac_status=$?
11355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356 (exit $ac_status); }; }; then
11357 gprof_cv_decl_getopt_unistd_h=yes
11358 else
11359 echo "$as_me: failed program was:" >&5
11360 sed 's/^/| /' conftest.$ac_ext >&5
11362 gprof_cv_decl_getopt_unistd_h=no
11364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11367 echo "$as_me:$LINENO: result: $gprof_cv_decl_getopt_unistd_h" >&5
11368 echo "${ECHO_T}$gprof_cv_decl_getopt_unistd_h" >&6
11369 if test $gprof_cv_decl_getopt_unistd_h = yes; then
11371 cat >>confdefs.h <<\_ACEOF
11372 #define HAVE_DECL_GETOPT 1
11373 _ACEOF
11377 # Some systems have fabs only in -lm, not in -lc.
11378 echo "$as_me:$LINENO: checking for library containing fabs" >&5
11379 echo $ECHO_N "checking for library containing fabs... $ECHO_C" >&6
11380 if test "${ac_cv_search_fabs+set}" = set; then
11381 echo $ECHO_N "(cached) $ECHO_C" >&6
11382 else
11383 ac_func_search_save_LIBS=$LIBS
11384 ac_cv_search_fabs=no
11385 cat >conftest.$ac_ext <<_ACEOF
11386 /* confdefs.h. */
11387 _ACEOF
11388 cat confdefs.h >>conftest.$ac_ext
11389 cat >>conftest.$ac_ext <<_ACEOF
11390 /* end confdefs.h. */
11392 /* Override any gcc2 internal prototype to avoid an error. */
11393 #ifdef __cplusplus
11394 extern "C"
11395 #endif
11396 /* We use char because int might match the return type of a gcc2
11397 builtin and then its argument prototype would still apply. */
11398 char fabs ();
11400 main ()
11402 fabs ();
11404 return 0;
11406 _ACEOF
11407 rm -f conftest.$ac_objext conftest$ac_exeext
11408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11409 (eval $ac_link) 2>conftest.er1
11410 ac_status=$?
11411 grep -v '^ *+' conftest.er1 >conftest.err
11412 rm -f conftest.er1
11413 cat conftest.err >&5
11414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); } &&
11416 { ac_try='test -z "$ac_c_werror_flag"
11417 || test ! -s conftest.err'
11418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11419 (eval $ac_try) 2>&5
11420 ac_status=$?
11421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422 (exit $ac_status); }; } &&
11423 { ac_try='test -s conftest$ac_exeext'
11424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11425 (eval $ac_try) 2>&5
11426 ac_status=$?
11427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428 (exit $ac_status); }; }; then
11429 ac_cv_search_fabs="none required"
11430 else
11431 echo "$as_me: failed program was:" >&5
11432 sed 's/^/| /' conftest.$ac_ext >&5
11435 rm -f conftest.err conftest.$ac_objext \
11436 conftest$ac_exeext conftest.$ac_ext
11437 if test "$ac_cv_search_fabs" = no; then
11438 for ac_lib in m; do
11439 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11440 cat >conftest.$ac_ext <<_ACEOF
11441 /* confdefs.h. */
11442 _ACEOF
11443 cat confdefs.h >>conftest.$ac_ext
11444 cat >>conftest.$ac_ext <<_ACEOF
11445 /* end confdefs.h. */
11447 /* Override any gcc2 internal prototype to avoid an error. */
11448 #ifdef __cplusplus
11449 extern "C"
11450 #endif
11451 /* We use char because int might match the return type of a gcc2
11452 builtin and then its argument prototype would still apply. */
11453 char fabs ();
11455 main ()
11457 fabs ();
11459 return 0;
11461 _ACEOF
11462 rm -f conftest.$ac_objext conftest$ac_exeext
11463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11464 (eval $ac_link) 2>conftest.er1
11465 ac_status=$?
11466 grep -v '^ *+' conftest.er1 >conftest.err
11467 rm -f conftest.er1
11468 cat conftest.err >&5
11469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470 (exit $ac_status); } &&
11471 { ac_try='test -z "$ac_c_werror_flag"
11472 || test ! -s conftest.err'
11473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11474 (eval $ac_try) 2>&5
11475 ac_status=$?
11476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11477 (exit $ac_status); }; } &&
11478 { ac_try='test -s conftest$ac_exeext'
11479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11480 (eval $ac_try) 2>&5
11481 ac_status=$?
11482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483 (exit $ac_status); }; }; then
11484 ac_cv_search_fabs="-l$ac_lib"
11485 break
11486 else
11487 echo "$as_me: failed program was:" >&5
11488 sed 's/^/| /' conftest.$ac_ext >&5
11491 rm -f conftest.err conftest.$ac_objext \
11492 conftest$ac_exeext conftest.$ac_ext
11493 done
11495 LIBS=$ac_func_search_save_LIBS
11497 echo "$as_me:$LINENO: result: $ac_cv_search_fabs" >&5
11498 echo "${ECHO_T}$ac_cv_search_fabs" >&6
11499 if test "$ac_cv_search_fabs" != no; then
11500 test "$ac_cv_search_fabs" = "none required" || LIBS="$ac_cv_search_fabs $LIBS"
11506 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11508 # Check whether --enable-werror or --disable-werror was given.
11509 if test "${enable_werror+set}" = set; then
11510 enableval="$enable_werror"
11511 case "${enableval}" in
11512 yes | y) ERROR_ON_WARNING="yes" ;;
11513 no | n) ERROR_ON_WARNING="no" ;;
11514 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
11515 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
11516 { (exit 1); exit 1; }; } ;;
11517 esac
11520 # Enable -Wno-format by default when using gcc on mingw
11521 case "${host}" in
11522 *-*-mingw32*)
11523 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11524 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11527 *) ;;
11528 esac
11530 # Enable -Werror by default when using gcc
11531 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11532 ERROR_ON_WARNING=yes
11535 NO_WERROR=
11536 if test "${ERROR_ON_WARNING}" = yes ; then
11537 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11538 NO_WERROR="-Wno-error"
11541 if test "${GCC}" = yes ; then
11542 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11545 # Check whether --enable-build-warnings or --disable-build-warnings was given.
11546 if test "${enable_build_warnings+set}" = set; then
11547 enableval="$enable_build_warnings"
11548 case "${enableval}" in
11549 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11550 no) if test "${GCC}" = yes ; then
11551 WARN_CFLAGS="-w"
11552 fi;;
11553 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11554 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
11555 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11556 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
11557 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11558 esac
11561 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11562 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
11573 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
11575 cat >confcache <<\_ACEOF
11576 # This file is a shell script that caches the results of configure
11577 # tests run on this system so they can be shared between configure
11578 # scripts and configure runs, see configure's option --config-cache.
11579 # It is not useful on other systems. If it contains results you don't
11580 # want to keep, you may remove or edit it.
11582 # config.status only pays attention to the cache file if you give it
11583 # the --recheck option to rerun configure.
11585 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11586 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11587 # following values.
11589 _ACEOF
11591 # The following way of writing the cache mishandles newlines in values,
11592 # but we know of no workaround that is simple, portable, and efficient.
11593 # So, don't put newlines in cache variables' values.
11594 # Ultrix sh set writes to stderr and can't be redirected directly,
11595 # and sets the high bit in the cache file unless we assign to the vars.
11597 (set) 2>&1 |
11598 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11599 *ac_space=\ *)
11600 # `set' does not quote correctly, so add quotes (double-quote
11601 # substitution turns \\\\ into \\, and sed turns \\ into \).
11602 sed -n \
11603 "s/'/'\\\\''/g;
11604 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11607 # `set' quotes correctly as required by POSIX, so do not add quotes.
11608 sed -n \
11609 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11611 esac;
11613 sed '
11614 t clear
11615 : clear
11616 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11617 t end
11618 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11619 : end' >>confcache
11620 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11621 if test -w $cache_file; then
11622 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11623 cat confcache >$cache_file
11624 else
11625 echo "not updating unwritable cache $cache_file"
11628 rm -f confcache
11630 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11631 # Let make expand exec_prefix.
11632 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11634 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11635 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11636 # trailing colons and then remove the whole line if VPATH becomes empty
11637 # (actually we leave an empty line to preserve line numbers).
11638 if test "x$srcdir" = x.; then
11639 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11640 s/:*\$(srcdir):*/:/;
11641 s/:*\${srcdir}:*/:/;
11642 s/:*@srcdir@:*/:/;
11643 s/^\([^=]*=[ ]*\):*/\1/;
11644 s/:*$//;
11645 s/^[^=]*=[ ]*$//;
11649 DEFS=-DHAVE_CONFIG_H
11651 ac_libobjs=
11652 ac_ltlibobjs=
11653 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11654 # 1. Remove the extension, and $U if already installed.
11655 ac_i=`echo "$ac_i" |
11656 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11657 # 2. Add them.
11658 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11659 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11660 done
11661 LIBOBJS=$ac_libobjs
11663 LTLIBOBJS=$ac_ltlibobjs
11666 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11667 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11668 Usually this means the macro was only invoked conditionally." >&5
11669 echo "$as_me: error: conditional \"AMDEP\" was never defined.
11670 Usually this means the macro was only invoked conditionally." >&2;}
11671 { (exit 1); exit 1; }; }
11673 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11674 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11675 Usually this means the macro was only invoked conditionally." >&5
11676 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11677 Usually this means the macro was only invoked conditionally." >&2;}
11678 { (exit 1); exit 1; }; }
11680 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11681 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11682 Usually this means the macro was only invoked conditionally." >&5
11683 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11684 Usually this means the macro was only invoked conditionally." >&2;}
11685 { (exit 1); exit 1; }; }
11687 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
11688 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
11689 Usually this means the macro was only invoked conditionally." >&5
11690 echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
11691 Usually this means the macro was only invoked conditionally." >&2;}
11692 { (exit 1); exit 1; }; }
11695 : ${CONFIG_STATUS=./config.status}
11696 ac_clean_files_save=$ac_clean_files
11697 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11698 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11699 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11700 cat >$CONFIG_STATUS <<_ACEOF
11701 #! $SHELL
11702 # Generated by $as_me.
11703 # Run this file to recreate the current configuration.
11704 # Compiler output produced by configure, useful for debugging
11705 # configure, is in config.log if it exists.
11707 debug=false
11708 ac_cs_recheck=false
11709 ac_cs_silent=false
11710 SHELL=\${CONFIG_SHELL-$SHELL}
11711 _ACEOF
11713 cat >>$CONFIG_STATUS <<\_ACEOF
11714 ## --------------------- ##
11715 ## M4sh Initialization. ##
11716 ## --------------------- ##
11718 # Be Bourne compatible
11719 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11720 emulate sh
11721 NULLCMD=:
11722 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11723 # is contrary to our usage. Disable this feature.
11724 alias -g '${1+"$@"}'='"$@"'
11725 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11726 set -o posix
11728 DUALCASE=1; export DUALCASE # for MKS sh
11730 # Support unset when possible.
11731 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11732 as_unset=unset
11733 else
11734 as_unset=false
11738 # Work around bugs in pre-3.0 UWIN ksh.
11739 $as_unset ENV MAIL MAILPATH
11740 PS1='$ '
11741 PS2='> '
11742 PS4='+ '
11744 # NLS nuisances.
11745 for as_var in \
11746 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11747 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11748 LC_TELEPHONE LC_TIME
11750 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11751 eval $as_var=C; export $as_var
11752 else
11753 $as_unset $as_var
11755 done
11757 # Required to use basename.
11758 if expr a : '\(a\)' >/dev/null 2>&1; then
11759 as_expr=expr
11760 else
11761 as_expr=false
11764 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11765 as_basename=basename
11766 else
11767 as_basename=false
11771 # Name of the executable.
11772 as_me=`$as_basename "$0" ||
11773 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11774 X"$0" : 'X\(//\)$' \| \
11775 X"$0" : 'X\(/\)$' \| \
11776 . : '\(.\)' 2>/dev/null ||
11777 echo X/"$0" |
11778 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11779 /^X\/\(\/\/\)$/{ s//\1/; q; }
11780 /^X\/\(\/\).*/{ s//\1/; q; }
11781 s/.*/./; q'`
11784 # PATH needs CR, and LINENO needs CR and PATH.
11785 # Avoid depending upon Character Ranges.
11786 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11787 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11788 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11789 as_cr_digits='0123456789'
11790 as_cr_alnum=$as_cr_Letters$as_cr_digits
11792 # The user is always right.
11793 if test "${PATH_SEPARATOR+set}" != set; then
11794 echo "#! /bin/sh" >conf$$.sh
11795 echo "exit 0" >>conf$$.sh
11796 chmod +x conf$$.sh
11797 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11798 PATH_SEPARATOR=';'
11799 else
11800 PATH_SEPARATOR=:
11802 rm -f conf$$.sh
11806 as_lineno_1=$LINENO
11807 as_lineno_2=$LINENO
11808 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11809 test "x$as_lineno_1" != "x$as_lineno_2" &&
11810 test "x$as_lineno_3" = "x$as_lineno_2" || {
11811 # Find who we are. Look in the path if we contain no path at all
11812 # relative or not.
11813 case $0 in
11814 *[\\/]* ) as_myself=$0 ;;
11815 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11816 for as_dir in $PATH
11818 IFS=$as_save_IFS
11819 test -z "$as_dir" && as_dir=.
11820 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11821 done
11824 esac
11825 # We did not find ourselves, most probably we were run as `sh COMMAND'
11826 # in which case we are not to be found in the path.
11827 if test "x$as_myself" = x; then
11828 as_myself=$0
11830 if test ! -f "$as_myself"; then
11831 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11832 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11833 { (exit 1); exit 1; }; }
11835 case $CONFIG_SHELL in
11837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11838 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11840 IFS=$as_save_IFS
11841 test -z "$as_dir" && as_dir=.
11842 for as_base in sh bash ksh sh5; do
11843 case $as_dir in
11845 if ("$as_dir/$as_base" -c '
11846 as_lineno_1=$LINENO
11847 as_lineno_2=$LINENO
11848 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11849 test "x$as_lineno_1" != "x$as_lineno_2" &&
11850 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11851 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11852 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11853 CONFIG_SHELL=$as_dir/$as_base
11854 export CONFIG_SHELL
11855 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11856 fi;;
11857 esac
11858 done
11859 done
11861 esac
11863 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11864 # uniformly replaced by the line number. The first 'sed' inserts a
11865 # line-number line before each line; the second 'sed' does the real
11866 # work. The second script uses 'N' to pair each line-number line
11867 # with the numbered line, and appends trailing '-' during
11868 # substitution so that $LINENO is not a special case at line end.
11869 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11870 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11871 sed '=' <$as_myself |
11872 sed '
11874 s,$,-,
11875 : loop
11876 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11877 t loop
11878 s,-$,,
11879 s,^['$as_cr_digits']*\n,,
11880 ' >$as_me.lineno &&
11881 chmod +x $as_me.lineno ||
11882 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11883 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11884 { (exit 1); exit 1; }; }
11886 # Don't try to exec as it changes $[0], causing all sort of problems
11887 # (the dirname of $[0] is not the place where we might find the
11888 # original and so on. Autoconf is especially sensible to this).
11889 . ./$as_me.lineno
11890 # Exit status is that of the last command.
11891 exit
11895 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11896 *c*,-n*) ECHO_N= ECHO_C='
11897 ' ECHO_T=' ' ;;
11898 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11899 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11900 esac
11902 if expr a : '\(a\)' >/dev/null 2>&1; then
11903 as_expr=expr
11904 else
11905 as_expr=false
11908 rm -f conf$$ conf$$.exe conf$$.file
11909 echo >conf$$.file
11910 if ln -s conf$$.file conf$$ 2>/dev/null; then
11911 # We could just check for DJGPP; but this test a) works b) is more generic
11912 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11913 if test -f conf$$.exe; then
11914 # Don't use ln at all; we don't have any links
11915 as_ln_s='cp -p'
11916 else
11917 as_ln_s='ln -s'
11919 elif ln conf$$.file conf$$ 2>/dev/null; then
11920 as_ln_s=ln
11921 else
11922 as_ln_s='cp -p'
11924 rm -f conf$$ conf$$.exe conf$$.file
11926 if mkdir -p . 2>/dev/null; then
11927 as_mkdir_p=:
11928 else
11929 test -d ./-p && rmdir ./-p
11930 as_mkdir_p=false
11933 as_executable_p="test -f"
11935 # Sed expression to map a string onto a valid CPP name.
11936 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11938 # Sed expression to map a string onto a valid variable name.
11939 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11942 # IFS
11943 # We need space, tab and new line, in precisely that order.
11944 as_nl='
11946 IFS=" $as_nl"
11948 # CDPATH.
11949 $as_unset CDPATH
11951 exec 6>&1
11953 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11954 # report actual input values of CONFIG_FILES etc. instead of their
11955 # values after options handling. Logging --version etc. is OK.
11956 exec 5>>config.log
11958 echo
11959 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11960 ## Running $as_me. ##
11961 _ASBOX
11962 } >&5
11963 cat >&5 <<_CSEOF
11965 This file was extended by $as_me, which was
11966 generated by GNU Autoconf 2.59. Invocation command line was
11968 CONFIG_FILES = $CONFIG_FILES
11969 CONFIG_HEADERS = $CONFIG_HEADERS
11970 CONFIG_LINKS = $CONFIG_LINKS
11971 CONFIG_COMMANDS = $CONFIG_COMMANDS
11972 $ $0 $@
11974 _CSEOF
11975 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11976 echo >&5
11977 _ACEOF
11979 # Files that config.status was made for.
11980 if test -n "$ac_config_files"; then
11981 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11984 if test -n "$ac_config_headers"; then
11985 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11988 if test -n "$ac_config_links"; then
11989 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11992 if test -n "$ac_config_commands"; then
11993 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11996 cat >>$CONFIG_STATUS <<\_ACEOF
11998 ac_cs_usage="\
11999 \`$as_me' instantiates files from templates according to the
12000 current configuration.
12002 Usage: $0 [OPTIONS] [FILE]...
12004 -h, --help print this help, then exit
12005 -V, --version print version number, then exit
12006 -q, --quiet do not print progress messages
12007 -d, --debug don't remove temporary files
12008 --recheck update $as_me by reconfiguring in the same conditions
12009 --file=FILE[:TEMPLATE]
12010 instantiate the configuration file FILE
12011 --header=FILE[:TEMPLATE]
12012 instantiate the configuration header FILE
12014 Configuration files:
12015 $config_files
12017 Configuration headers:
12018 $config_headers
12020 Configuration commands:
12021 $config_commands
12023 Report bugs to <bug-autoconf@gnu.org>."
12024 _ACEOF
12026 cat >>$CONFIG_STATUS <<_ACEOF
12027 ac_cs_version="\\
12028 config.status
12029 configured by $0, generated by GNU Autoconf 2.59,
12030 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12032 Copyright (C) 2003 Free Software Foundation, Inc.
12033 This config.status script is free software; the Free Software Foundation
12034 gives unlimited permission to copy, distribute and modify it."
12035 srcdir=$srcdir
12036 INSTALL="$INSTALL"
12037 _ACEOF
12039 cat >>$CONFIG_STATUS <<\_ACEOF
12040 # If no file are specified by the user, then we need to provide default
12041 # value. By we need to know if files were specified by the user.
12042 ac_need_defaults=:
12043 while test $# != 0
12045 case $1 in
12046 --*=*)
12047 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12048 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12049 ac_shift=:
12052 ac_option=$1
12053 ac_optarg=$2
12054 ac_shift=shift
12056 *) # This is not an option, so the user has probably given explicit
12057 # arguments.
12058 ac_option=$1
12059 ac_need_defaults=false;;
12060 esac
12062 case $ac_option in
12063 # Handling of the options.
12064 _ACEOF
12065 cat >>$CONFIG_STATUS <<\_ACEOF
12066 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12067 ac_cs_recheck=: ;;
12068 --version | --vers* | -V )
12069 echo "$ac_cs_version"; exit 0 ;;
12070 --he | --h)
12071 # Conflict between --help and --header
12072 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12073 Try \`$0 --help' for more information." >&5
12074 echo "$as_me: error: ambiguous option: $1
12075 Try \`$0 --help' for more information." >&2;}
12076 { (exit 1); exit 1; }; };;
12077 --help | --hel | -h )
12078 echo "$ac_cs_usage"; exit 0 ;;
12079 --debug | --d* | -d )
12080 debug=: ;;
12081 --file | --fil | --fi | --f )
12082 $ac_shift
12083 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12084 ac_need_defaults=false;;
12085 --header | --heade | --head | --hea )
12086 $ac_shift
12087 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12088 ac_need_defaults=false;;
12089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12090 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12091 ac_cs_silent=: ;;
12093 # This is an error.
12094 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12095 Try \`$0 --help' for more information." >&5
12096 echo "$as_me: error: unrecognized option: $1
12097 Try \`$0 --help' for more information." >&2;}
12098 { (exit 1); exit 1; }; } ;;
12100 *) ac_config_targets="$ac_config_targets $1" ;;
12102 esac
12103 shift
12104 done
12106 ac_configure_extra_args=
12108 if $ac_cs_silent; then
12109 exec 6>/dev/null
12110 ac_configure_extra_args="$ac_configure_extra_args --silent"
12113 _ACEOF
12114 cat >>$CONFIG_STATUS <<_ACEOF
12115 if \$ac_cs_recheck; then
12116 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12117 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12120 _ACEOF
12122 cat >>$CONFIG_STATUS <<_ACEOF
12124 # INIT-COMMANDS section.
12127 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12130 # The HP-UX ksh and POSIX shell print the target directory to stdout
12131 # if CDPATH is set.
12132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12134 sed_quote_subst='$sed_quote_subst'
12135 double_quote_subst='$double_quote_subst'
12136 delay_variable_subst='$delay_variable_subst'
12137 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12138 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12139 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12140 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12141 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12142 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12143 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12144 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12145 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12146 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12147 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12148 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12149 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12150 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12151 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12152 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12153 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12154 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12155 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12156 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12157 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12158 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12159 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12160 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12161 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12162 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12163 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12164 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12165 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12166 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12167 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12168 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12169 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12170 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12171 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12172 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12173 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12174 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12175 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12176 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12177 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12178 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12179 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12180 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"`'
12181 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12182 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12183 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12184 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12185 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12186 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12187 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12188 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12189 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12190 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12191 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12192 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12193 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12194 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12195 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12196 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12197 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12198 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12199 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12200 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12201 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12202 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12203 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12204 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12205 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12206 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12207 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12208 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12209 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12210 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12211 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12212 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12213 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12214 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12215 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12216 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12217 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12218 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12219 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12220 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12221 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12222 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12223 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12224 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12225 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12226 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12227 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12228 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12229 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12230 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12231 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12232 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12233 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12234 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12235 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12236 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12237 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12238 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12239 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12240 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12241 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12242 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12243 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12244 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12245 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12246 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12247 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12249 LTCC='$LTCC'
12250 LTCFLAGS='$LTCFLAGS'
12251 compiler='$compiler_DEFAULT'
12253 # Quote evaled strings.
12254 for var in SED \
12255 GREP \
12256 EGREP \
12257 FGREP \
12258 LD \
12259 NM \
12260 LN_S \
12261 lt_SP2NL \
12262 lt_NL2SP \
12263 reload_flag \
12264 deplibs_check_method \
12265 file_magic_cmd \
12266 AR \
12267 AR_FLAGS \
12268 STRIP \
12269 RANLIB \
12270 CC \
12271 CFLAGS \
12272 compiler \
12273 lt_cv_sys_global_symbol_pipe \
12274 lt_cv_sys_global_symbol_to_cdecl \
12275 lt_cv_sys_global_symbol_to_c_name_address \
12276 SHELL \
12277 ECHO \
12278 lt_prog_compiler_no_builtin_flag \
12279 lt_prog_compiler_wl \
12280 lt_prog_compiler_pic \
12281 lt_prog_compiler_static \
12282 lt_cv_prog_compiler_c_o \
12283 need_locks \
12284 shrext_cmds \
12285 export_dynamic_flag_spec \
12286 whole_archive_flag_spec \
12287 compiler_needs_object \
12288 with_gnu_ld \
12289 allow_undefined_flag \
12290 no_undefined_flag \
12291 hardcode_libdir_flag_spec \
12292 hardcode_libdir_flag_spec_ld \
12293 hardcode_libdir_separator \
12294 fix_srcfile_path \
12295 exclude_expsyms \
12296 include_expsyms \
12297 file_list_spec \
12298 variables_saved_for_relink \
12299 libname_spec \
12300 library_names_spec \
12301 soname_spec \
12302 finish_eval \
12303 old_striplib \
12304 striplib; do
12305 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12306 *[\\\\\\\`\\"\\\$]*)
12307 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12310 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12312 esac
12313 done
12315 # Double-quote double-evaled strings.
12316 for var in reload_cmds \
12317 old_postinstall_cmds \
12318 old_postuninstall_cmds \
12319 old_archive_cmds \
12320 extract_expsyms_cmds \
12321 old_archive_from_new_cmds \
12322 old_archive_from_expsyms_cmds \
12323 archive_cmds \
12324 archive_expsym_cmds \
12325 module_cmds \
12326 module_expsym_cmds \
12327 export_symbols_cmds \
12328 prelink_cmds \
12329 postinstall_cmds \
12330 postuninstall_cmds \
12331 finish_cmds \
12332 sys_lib_search_path_spec \
12333 sys_lib_dlsearch_path_spec; do
12334 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12335 *[\\\\\\\`\\"\\\$]*)
12336 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12339 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12341 esac
12342 done
12344 # Fix-up fallback echo if it was mangled by the above quoting rules.
12345 case \$lt_ECHO in
12346 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12348 esac
12350 ac_aux_dir='$ac_aux_dir'
12351 xsi_shell='$xsi_shell'
12352 lt_shell_append='$lt_shell_append'
12354 # See if we are running on zsh, and set the options which allow our
12355 # commands through without removal of \ escapes INIT.
12356 if test -n "\${ZSH_VERSION+set}" ; then
12357 setopt NO_GLOB_SUBST
12361 PACKAGE='$PACKAGE'
12362 VERSION='$VERSION'
12363 TIMESTAMP='$TIMESTAMP'
12364 RM='$RM'
12365 ofile='$ofile'
12369 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12370 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
12371 # from automake.
12372 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12373 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12374 LINGUAS="${LINGUAS-%UNSET%}"
12377 _ACEOF
12381 cat >>$CONFIG_STATUS <<\_ACEOF
12382 for ac_config_target in $ac_config_targets
12384 case "$ac_config_target" in
12385 # Handling of arguments.
12386 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12387 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
12388 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12389 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12390 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12391 "gconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gconfig.h:gconfig.in" ;;
12392 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12393 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12394 { (exit 1); exit 1; }; };;
12395 esac
12396 done
12398 # If the user did not use the arguments to specify the items to instantiate,
12399 # then the envvar interface is used. Set only those that are not.
12400 # We use the long form for the default assignment because of an extremely
12401 # bizarre bug on SunOS 4.1.3.
12402 if $ac_need_defaults; then
12403 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12404 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12405 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12408 # Have a temporary directory for convenience. Make it in the build tree
12409 # simply because there is no reason to put it here, and in addition,
12410 # creating and moving files from /tmp can sometimes cause problems.
12411 # Create a temporary directory, and hook for its removal unless debugging.
12412 $debug ||
12414 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12415 trap '{ (exit 1); exit 1; }' 1 2 13 15
12418 # Create a (secure) tmp directory for tmp files.
12421 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12422 test -n "$tmp" && test -d "$tmp"
12423 } ||
12425 tmp=./confstat$$-$RANDOM
12426 (umask 077 && mkdir $tmp)
12427 } ||
12429 echo "$me: cannot create a temporary directory in ." >&2
12430 { (exit 1); exit 1; }
12433 _ACEOF
12435 cat >>$CONFIG_STATUS <<_ACEOF
12438 # CONFIG_FILES section.
12441 # No need to generate the scripts if there are no CONFIG_FILES.
12442 # This happens for instance when ./config.status config.h
12443 if test -n "\$CONFIG_FILES"; then
12444 # Protect against being on the right side of a sed subst in config.status.
12445 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12446 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12447 s,@SHELL@,$SHELL,;t t
12448 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12449 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12450 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12451 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12452 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12453 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12454 s,@exec_prefix@,$exec_prefix,;t t
12455 s,@prefix@,$prefix,;t t
12456 s,@program_transform_name@,$program_transform_name,;t t
12457 s,@bindir@,$bindir,;t t
12458 s,@sbindir@,$sbindir,;t t
12459 s,@libexecdir@,$libexecdir,;t t
12460 s,@datadir@,$datadir,;t t
12461 s,@sysconfdir@,$sysconfdir,;t t
12462 s,@sharedstatedir@,$sharedstatedir,;t t
12463 s,@localstatedir@,$localstatedir,;t t
12464 s,@libdir@,$libdir,;t t
12465 s,@includedir@,$includedir,;t t
12466 s,@oldincludedir@,$oldincludedir,;t t
12467 s,@infodir@,$infodir,;t t
12468 s,@mandir@,$mandir,;t t
12469 s,@build_alias@,$build_alias,;t t
12470 s,@host_alias@,$host_alias,;t t
12471 s,@target_alias@,$target_alias,;t t
12472 s,@DEFS@,$DEFS,;t t
12473 s,@ECHO_C@,$ECHO_C,;t t
12474 s,@ECHO_N@,$ECHO_N,;t t
12475 s,@ECHO_T@,$ECHO_T,;t t
12476 s,@LIBS@,$LIBS,;t t
12477 s,@build@,$build,;t t
12478 s,@build_cpu@,$build_cpu,;t t
12479 s,@build_vendor@,$build_vendor,;t t
12480 s,@build_os@,$build_os,;t t
12481 s,@host@,$host,;t t
12482 s,@host_cpu@,$host_cpu,;t t
12483 s,@host_vendor@,$host_vendor,;t t
12484 s,@host_os@,$host_os,;t t
12485 s,@target@,$target,;t t
12486 s,@target_cpu@,$target_cpu,;t t
12487 s,@target_vendor@,$target_vendor,;t t
12488 s,@target_os@,$target_os,;t t
12489 s,@CC@,$CC,;t t
12490 s,@CFLAGS@,$CFLAGS,;t t
12491 s,@LDFLAGS@,$LDFLAGS,;t t
12492 s,@CPPFLAGS@,$CPPFLAGS,;t t
12493 s,@ac_ct_CC@,$ac_ct_CC,;t t
12494 s,@EXEEXT@,$EXEEXT,;t t
12495 s,@OBJEXT@,$OBJEXT,;t t
12496 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12497 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12498 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12499 s,@CYGPATH_W@,$CYGPATH_W,;t t
12500 s,@PACKAGE@,$PACKAGE,;t t
12501 s,@VERSION@,$VERSION,;t t
12502 s,@ACLOCAL@,$ACLOCAL,;t t
12503 s,@AUTOCONF@,$AUTOCONF,;t t
12504 s,@AUTOMAKE@,$AUTOMAKE,;t t
12505 s,@AUTOHEADER@,$AUTOHEADER,;t t
12506 s,@MAKEINFO@,$MAKEINFO,;t t
12507 s,@install_sh@,$install_sh,;t t
12508 s,@STRIP@,$STRIP,;t t
12509 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12510 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
12511 s,@mkdir_p@,$mkdir_p,;t t
12512 s,@AWK@,$AWK,;t t
12513 s,@SET_MAKE@,$SET_MAKE,;t t
12514 s,@am__leading_dot@,$am__leading_dot,;t t
12515 s,@AMTAR@,$AMTAR,;t t
12516 s,@am__tar@,$am__tar,;t t
12517 s,@am__untar@,$am__untar,;t t
12518 s,@DEPDIR@,$DEPDIR,;t t
12519 s,@am__include@,$am__include,;t t
12520 s,@am__quote@,$am__quote,;t t
12521 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
12522 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
12523 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
12524 s,@CCDEPMODE@,$CCDEPMODE,;t t
12525 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
12526 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
12527 s,@CPP@,$CPP,;t t
12528 s,@EGREP@,$EGREP,;t t
12529 s,@LIBTOOL@,$LIBTOOL,;t t
12530 s,@SED@,$SED,;t t
12531 s,@FGREP@,$FGREP,;t t
12532 s,@GREP@,$GREP,;t t
12533 s,@LD@,$LD,;t t
12534 s,@DUMPBIN@,$DUMPBIN,;t t
12535 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
12536 s,@NM@,$NM,;t t
12537 s,@LN_S@,$LN_S,;t t
12538 s,@AR@,$AR,;t t
12539 s,@ac_ct_AR@,$ac_ct_AR,;t t
12540 s,@RANLIB@,$RANLIB,;t t
12541 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12542 s,@lt_ECHO@,$lt_ECHO,;t t
12543 s,@USE_NLS@,$USE_NLS,;t t
12544 s,@LIBINTL@,$LIBINTL,;t t
12545 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
12546 s,@INCINTL@,$INCINTL,;t t
12547 s,@XGETTEXT@,$XGETTEXT,;t t
12548 s,@GMSGFMT@,$GMSGFMT,;t t
12549 s,@POSUB@,$POSUB,;t t
12550 s,@CATALOGS@,$CATALOGS,;t t
12551 s,@DATADIRNAME@,$DATADIRNAME,;t t
12552 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
12553 s,@GENCAT@,$GENCAT,;t t
12554 s,@CATOBJEXT@,$CATOBJEXT,;t t
12555 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
12556 s,@MSGFMT@,$MSGFMT,;t t
12557 s,@MSGMERGE@,$MSGMERGE,;t t
12558 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12559 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12560 s,@MAINT@,$MAINT,;t t
12561 s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
12562 s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
12563 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
12564 s,@NO_WERROR@,$NO_WERROR,;t t
12565 s,@datarootdir@,$datarootdir,;t t
12566 s,@docdir@,$docdir,;t t
12567 s,@htmldir@,$htmldir,;t t
12568 s,@LIBOBJS@,$LIBOBJS,;t t
12569 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12570 CEOF
12572 _ACEOF
12574 cat >>$CONFIG_STATUS <<\_ACEOF
12575 # Split the substitutions into bite-sized pieces for seds with
12576 # small command number limits, like on Digital OSF/1 and HP-UX.
12577 ac_max_sed_lines=48
12578 ac_sed_frag=1 # Number of current file.
12579 ac_beg=1 # First line for current file.
12580 ac_end=$ac_max_sed_lines # Line after last line for current file.
12581 ac_more_lines=:
12582 ac_sed_cmds=
12583 while $ac_more_lines; do
12584 if test $ac_beg -gt 1; then
12585 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12586 else
12587 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12589 if test ! -s $tmp/subs.frag; then
12590 ac_more_lines=false
12591 else
12592 # The purpose of the label and of the branching condition is to
12593 # speed up the sed processing (if there are no `@' at all, there
12594 # is no need to browse any of the substitutions).
12595 # These are the two extra sed commands mentioned above.
12596 (echo ':t
12597 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12598 if test -z "$ac_sed_cmds"; then
12599 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12600 else
12601 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12603 ac_sed_frag=`expr $ac_sed_frag + 1`
12604 ac_beg=$ac_end
12605 ac_end=`expr $ac_end + $ac_max_sed_lines`
12607 done
12608 if test -z "$ac_sed_cmds"; then
12609 ac_sed_cmds=cat
12611 fi # test -n "$CONFIG_FILES"
12613 _ACEOF
12614 cat >>$CONFIG_STATUS <<\_ACEOF
12615 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12616 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12617 case $ac_file in
12618 - | *:- | *:-:* ) # input from stdin
12619 cat >$tmp/stdin
12620 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12621 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12622 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12623 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12624 * ) ac_file_in=$ac_file.in ;;
12625 esac
12627 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12628 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12629 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12630 X"$ac_file" : 'X\(//\)[^/]' \| \
12631 X"$ac_file" : 'X\(//\)$' \| \
12632 X"$ac_file" : 'X\(/\)' \| \
12633 . : '\(.\)' 2>/dev/null ||
12634 echo X"$ac_file" |
12635 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12636 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12637 /^X\(\/\/\)$/{ s//\1/; q; }
12638 /^X\(\/\).*/{ s//\1/; q; }
12639 s/.*/./; q'`
12640 { if $as_mkdir_p; then
12641 mkdir -p "$ac_dir"
12642 else
12643 as_dir="$ac_dir"
12644 as_dirs=
12645 while test ! -d "$as_dir"; do
12646 as_dirs="$as_dir $as_dirs"
12647 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12648 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12649 X"$as_dir" : 'X\(//\)[^/]' \| \
12650 X"$as_dir" : 'X\(//\)$' \| \
12651 X"$as_dir" : 'X\(/\)' \| \
12652 . : '\(.\)' 2>/dev/null ||
12653 echo X"$as_dir" |
12654 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12655 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12656 /^X\(\/\/\)$/{ s//\1/; q; }
12657 /^X\(\/\).*/{ s//\1/; q; }
12658 s/.*/./; q'`
12659 done
12660 test ! -n "$as_dirs" || mkdir $as_dirs
12661 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12662 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12663 { (exit 1); exit 1; }; }; }
12665 ac_builddir=.
12667 if test "$ac_dir" != .; then
12668 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12669 # A "../" for each directory in $ac_dir_suffix.
12670 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12671 else
12672 ac_dir_suffix= ac_top_builddir=
12675 case $srcdir in
12676 .) # No --srcdir option. We are building in place.
12677 ac_srcdir=.
12678 if test -z "$ac_top_builddir"; then
12679 ac_top_srcdir=.
12680 else
12681 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12682 fi ;;
12683 [\\/]* | ?:[\\/]* ) # Absolute path.
12684 ac_srcdir=$srcdir$ac_dir_suffix;
12685 ac_top_srcdir=$srcdir ;;
12686 *) # Relative path.
12687 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12688 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12689 esac
12691 # Do not use `cd foo && pwd` to compute absolute paths, because
12692 # the directories may not exist.
12693 case `pwd` in
12694 .) ac_abs_builddir="$ac_dir";;
12696 case "$ac_dir" in
12697 .) ac_abs_builddir=`pwd`;;
12698 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12699 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12700 esac;;
12701 esac
12702 case $ac_abs_builddir in
12703 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12705 case ${ac_top_builddir}. in
12706 .) ac_abs_top_builddir=$ac_abs_builddir;;
12707 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12708 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12709 esac;;
12710 esac
12711 case $ac_abs_builddir in
12712 .) ac_abs_srcdir=$ac_srcdir;;
12714 case $ac_srcdir in
12715 .) ac_abs_srcdir=$ac_abs_builddir;;
12716 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12717 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12718 esac;;
12719 esac
12720 case $ac_abs_builddir in
12721 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12723 case $ac_top_srcdir in
12724 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12725 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12726 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12727 esac;;
12728 esac
12731 case $INSTALL in
12732 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12733 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12734 esac
12736 if test x"$ac_file" != x-; then
12737 { echo "$as_me:$LINENO: creating $ac_file" >&5
12738 echo "$as_me: creating $ac_file" >&6;}
12739 rm -f "$ac_file"
12741 # Let's still pretend it is `configure' which instantiates (i.e., don't
12742 # use $as_me), people would be surprised to read:
12743 # /* config.h. Generated by config.status. */
12744 if test x"$ac_file" = x-; then
12745 configure_input=
12746 else
12747 configure_input="$ac_file. "
12749 configure_input=$configure_input"Generated from `echo $ac_file_in |
12750 sed 's,.*/,,'` by configure."
12752 # First look for the input files in the build tree, otherwise in the
12753 # src tree.
12754 ac_file_inputs=`IFS=:
12755 for f in $ac_file_in; do
12756 case $f in
12757 -) echo $tmp/stdin ;;
12758 [\\/$]*)
12759 # Absolute (can't be DOS-style, as IFS=:)
12760 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12761 echo "$as_me: error: cannot find input file: $f" >&2;}
12762 { (exit 1); exit 1; }; }
12763 echo "$f";;
12764 *) # Relative
12765 if test -f "$f"; then
12766 # Build tree
12767 echo "$f"
12768 elif test -f "$srcdir/$f"; then
12769 # Source tree
12770 echo "$srcdir/$f"
12771 else
12772 # /dev/null tree
12773 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12774 echo "$as_me: error: cannot find input file: $f" >&2;}
12775 { (exit 1); exit 1; }; }
12776 fi;;
12777 esac
12778 done` || { (exit 1); exit 1; }
12779 _ACEOF
12780 cat >>$CONFIG_STATUS <<_ACEOF
12781 sed "$ac_vpsub
12782 $extrasub
12783 _ACEOF
12784 cat >>$CONFIG_STATUS <<\_ACEOF
12786 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12787 s,@configure_input@,$configure_input,;t t
12788 s,@srcdir@,$ac_srcdir,;t t
12789 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12790 s,@top_srcdir@,$ac_top_srcdir,;t t
12791 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12792 s,@builddir@,$ac_builddir,;t t
12793 s,@abs_builddir@,$ac_abs_builddir,;t t
12794 s,@top_builddir@,$ac_top_builddir,;t t
12795 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12796 s,@INSTALL@,$ac_INSTALL,;t t
12797 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12798 rm -f $tmp/stdin
12799 if test x"$ac_file" != x-; then
12800 mv $tmp/out $ac_file
12801 else
12802 cat $tmp/out
12803 rm -f $tmp/out
12806 done
12807 _ACEOF
12808 cat >>$CONFIG_STATUS <<\_ACEOF
12811 # CONFIG_HEADER section.
12814 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12815 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12817 # ac_d sets the value in "#define NAME VALUE" lines.
12818 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12819 ac_dB='[ ].*$,\1#\2'
12820 ac_dC=' '
12821 ac_dD=',;t'
12822 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12823 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12824 ac_uB='$,\1#\2define\3'
12825 ac_uC=' '
12826 ac_uD=',;t'
12828 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12829 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12830 case $ac_file in
12831 - | *:- | *:-:* ) # input from stdin
12832 cat >$tmp/stdin
12833 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12834 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12835 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12836 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12837 * ) ac_file_in=$ac_file.in ;;
12838 esac
12840 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12841 echo "$as_me: creating $ac_file" >&6;}
12843 # First look for the input files in the build tree, otherwise in the
12844 # src tree.
12845 ac_file_inputs=`IFS=:
12846 for f in $ac_file_in; do
12847 case $f in
12848 -) echo $tmp/stdin ;;
12849 [\\/$]*)
12850 # Absolute (can't be DOS-style, as IFS=:)
12851 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12852 echo "$as_me: error: cannot find input file: $f" >&2;}
12853 { (exit 1); exit 1; }; }
12854 # Do quote $f, to prevent DOS paths from being IFS'd.
12855 echo "$f";;
12856 *) # Relative
12857 if test -f "$f"; then
12858 # Build tree
12859 echo "$f"
12860 elif test -f "$srcdir/$f"; then
12861 # Source tree
12862 echo "$srcdir/$f"
12863 else
12864 # /dev/null tree
12865 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12866 echo "$as_me: error: cannot find input file: $f" >&2;}
12867 { (exit 1); exit 1; }; }
12868 fi;;
12869 esac
12870 done` || { (exit 1); exit 1; }
12871 # Remove the trailing spaces.
12872 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12874 _ACEOF
12876 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12877 # `conftest.undefs', that substitutes the proper values into
12878 # config.h.in to produce config.h. The first handles `#define'
12879 # templates, and the second `#undef' templates.
12880 # And first: Protect against being on the right side of a sed subst in
12881 # config.status. Protect against being in an unquoted here document
12882 # in config.status.
12883 rm -f conftest.defines conftest.undefs
12884 # Using a here document instead of a string reduces the quoting nightmare.
12885 # Putting comments in sed scripts is not portable.
12887 # `end' is used to avoid that the second main sed command (meant for
12888 # 0-ary CPP macros) applies to n-ary macro definitions.
12889 # See the Autoconf documentation for `clear'.
12890 cat >confdef2sed.sed <<\_ACEOF
12891 s/[\\&,]/\\&/g
12892 s,[\\$`],\\&,g
12893 t clear
12894 : clear
12895 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12896 t end
12897 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12898 : end
12899 _ACEOF
12900 # If some macros were called several times there might be several times
12901 # the same #defines, which is useless. Nevertheless, we may not want to
12902 # sort them, since we want the *last* AC-DEFINE to be honored.
12903 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12904 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12905 rm -f confdef2sed.sed
12907 # This sed command replaces #undef with comments. This is necessary, for
12908 # example, in the case of _POSIX_SOURCE, which is predefined and required
12909 # on some systems where configure will not decide to define it.
12910 cat >>conftest.undefs <<\_ACEOF
12911 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12912 _ACEOF
12914 # Break up conftest.defines because some shells have a limit on the size
12915 # of here documents, and old seds have small limits too (100 cmds).
12916 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12917 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12918 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12919 echo ' :' >>$CONFIG_STATUS
12920 rm -f conftest.tail
12921 while grep . conftest.defines >/dev/null
12923 # Write a limited-size here document to $tmp/defines.sed.
12924 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12925 # Speed up: don't consider the non `#define' lines.
12926 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12927 # Work around the forget-to-reset-the-flag bug.
12928 echo 't clr' >>$CONFIG_STATUS
12929 echo ': clr' >>$CONFIG_STATUS
12930 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12931 echo 'CEOF
12932 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12933 rm -f $tmp/in
12934 mv $tmp/out $tmp/in
12935 ' >>$CONFIG_STATUS
12936 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12937 rm -f conftest.defines
12938 mv conftest.tail conftest.defines
12939 done
12940 rm -f conftest.defines
12941 echo ' fi # grep' >>$CONFIG_STATUS
12942 echo >>$CONFIG_STATUS
12944 # Break up conftest.undefs because some shells have a limit on the size
12945 # of here documents, and old seds have small limits too (100 cmds).
12946 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12947 rm -f conftest.tail
12948 while grep . conftest.undefs >/dev/null
12950 # Write a limited-size here document to $tmp/undefs.sed.
12951 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12952 # Speed up: don't consider the non `#undef'
12953 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12954 # Work around the forget-to-reset-the-flag bug.
12955 echo 't clr' >>$CONFIG_STATUS
12956 echo ': clr' >>$CONFIG_STATUS
12957 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12958 echo 'CEOF
12959 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12960 rm -f $tmp/in
12961 mv $tmp/out $tmp/in
12962 ' >>$CONFIG_STATUS
12963 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12964 rm -f conftest.undefs
12965 mv conftest.tail conftest.undefs
12966 done
12967 rm -f conftest.undefs
12969 cat >>$CONFIG_STATUS <<\_ACEOF
12970 # Let's still pretend it is `configure' which instantiates (i.e., don't
12971 # use $as_me), people would be surprised to read:
12972 # /* config.h. Generated by config.status. */
12973 if test x"$ac_file" = x-; then
12974 echo "/* Generated by configure. */" >$tmp/config.h
12975 else
12976 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12978 cat $tmp/in >>$tmp/config.h
12979 rm -f $tmp/in
12980 if test x"$ac_file" != x-; then
12981 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12982 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12983 echo "$as_me: $ac_file is unchanged" >&6;}
12984 else
12985 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12986 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12987 X"$ac_file" : 'X\(//\)[^/]' \| \
12988 X"$ac_file" : 'X\(//\)$' \| \
12989 X"$ac_file" : 'X\(/\)' \| \
12990 . : '\(.\)' 2>/dev/null ||
12991 echo X"$ac_file" |
12992 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12993 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12994 /^X\(\/\/\)$/{ s//\1/; q; }
12995 /^X\(\/\).*/{ s//\1/; q; }
12996 s/.*/./; q'`
12997 { if $as_mkdir_p; then
12998 mkdir -p "$ac_dir"
12999 else
13000 as_dir="$ac_dir"
13001 as_dirs=
13002 while test ! -d "$as_dir"; do
13003 as_dirs="$as_dir $as_dirs"
13004 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13005 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13006 X"$as_dir" : 'X\(//\)[^/]' \| \
13007 X"$as_dir" : 'X\(//\)$' \| \
13008 X"$as_dir" : 'X\(/\)' \| \
13009 . : '\(.\)' 2>/dev/null ||
13010 echo X"$as_dir" |
13011 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13012 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13013 /^X\(\/\/\)$/{ s//\1/; q; }
13014 /^X\(\/\).*/{ s//\1/; q; }
13015 s/.*/./; q'`
13016 done
13017 test ! -n "$as_dirs" || mkdir $as_dirs
13018 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13019 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13020 { (exit 1); exit 1; }; }; }
13022 rm -f $ac_file
13023 mv $tmp/config.h $ac_file
13025 else
13026 cat $tmp/config.h
13027 rm -f $tmp/config.h
13029 # Compute $ac_file's index in $config_headers.
13030 _am_stamp_count=1
13031 for _am_header in $config_headers :; do
13032 case $_am_header in
13033 $ac_file | $ac_file:* )
13034 break ;;
13036 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13037 esac
13038 done
13039 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
13040 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13041 X$ac_file : 'X\(//\)[^/]' \| \
13042 X$ac_file : 'X\(//\)$' \| \
13043 X$ac_file : 'X\(/\)' \| \
13044 . : '\(.\)' 2>/dev/null ||
13045 echo X$ac_file |
13046 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13047 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13048 /^X\(\/\/\)$/{ s//\1/; q; }
13049 /^X\(\/\).*/{ s//\1/; q; }
13050 s/.*/./; q'`/stamp-h$_am_stamp_count
13051 done
13052 _ACEOF
13053 cat >>$CONFIG_STATUS <<\_ACEOF
13056 # CONFIG_COMMANDS section.
13058 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13059 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13060 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13061 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13062 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13063 X"$ac_dest" : 'X\(//\)[^/]' \| \
13064 X"$ac_dest" : 'X\(//\)$' \| \
13065 X"$ac_dest" : 'X\(/\)' \| \
13066 . : '\(.\)' 2>/dev/null ||
13067 echo X"$ac_dest" |
13068 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13069 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13070 /^X\(\/\/\)$/{ s//\1/; q; }
13071 /^X\(\/\).*/{ s//\1/; q; }
13072 s/.*/./; q'`
13073 { if $as_mkdir_p; then
13074 mkdir -p "$ac_dir"
13075 else
13076 as_dir="$ac_dir"
13077 as_dirs=
13078 while test ! -d "$as_dir"; do
13079 as_dirs="$as_dir $as_dirs"
13080 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13081 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13082 X"$as_dir" : 'X\(//\)[^/]' \| \
13083 X"$as_dir" : 'X\(//\)$' \| \
13084 X"$as_dir" : 'X\(/\)' \| \
13085 . : '\(.\)' 2>/dev/null ||
13086 echo X"$as_dir" |
13087 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13088 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13089 /^X\(\/\/\)$/{ s//\1/; q; }
13090 /^X\(\/\).*/{ s//\1/; q; }
13091 s/.*/./; q'`
13092 done
13093 test ! -n "$as_dirs" || mkdir $as_dirs
13094 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13095 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13096 { (exit 1); exit 1; }; }; }
13098 ac_builddir=.
13100 if test "$ac_dir" != .; then
13101 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13102 # A "../" for each directory in $ac_dir_suffix.
13103 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13104 else
13105 ac_dir_suffix= ac_top_builddir=
13108 case $srcdir in
13109 .) # No --srcdir option. We are building in place.
13110 ac_srcdir=.
13111 if test -z "$ac_top_builddir"; then
13112 ac_top_srcdir=.
13113 else
13114 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13115 fi ;;
13116 [\\/]* | ?:[\\/]* ) # Absolute path.
13117 ac_srcdir=$srcdir$ac_dir_suffix;
13118 ac_top_srcdir=$srcdir ;;
13119 *) # Relative path.
13120 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13121 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13122 esac
13124 # Do not use `cd foo && pwd` to compute absolute paths, because
13125 # the directories may not exist.
13126 case `pwd` in
13127 .) ac_abs_builddir="$ac_dir";;
13129 case "$ac_dir" in
13130 .) ac_abs_builddir=`pwd`;;
13131 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13132 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13133 esac;;
13134 esac
13135 case $ac_abs_builddir in
13136 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13138 case ${ac_top_builddir}. in
13139 .) ac_abs_top_builddir=$ac_abs_builddir;;
13140 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13141 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13142 esac;;
13143 esac
13144 case $ac_abs_builddir in
13145 .) ac_abs_srcdir=$ac_srcdir;;
13147 case $ac_srcdir in
13148 .) ac_abs_srcdir=$ac_abs_builddir;;
13149 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13150 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13151 esac;;
13152 esac
13153 case $ac_abs_builddir in
13154 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13156 case $ac_top_srcdir in
13157 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13158 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13159 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13160 esac;;
13161 esac
13164 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13165 echo "$as_me: executing $ac_dest commands" >&6;}
13166 case $ac_dest in
13167 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
13168 # Strip MF so we end up with the name of the file.
13169 mf=`echo "$mf" | sed -e 's/:.*$//'`
13170 # Check whether this is an Automake generated Makefile or not.
13171 # We used to match only the files named `Makefile.in', but
13172 # some people rename them; so instead we look at the file content.
13173 # Grep'ing the first line is not enough: some people post-process
13174 # each Makefile.in and add a new line on top of each file to say so.
13175 # So let's grep whole file.
13176 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
13177 dirpart=`(dirname "$mf") 2>/dev/null ||
13178 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13179 X"$mf" : 'X\(//\)[^/]' \| \
13180 X"$mf" : 'X\(//\)$' \| \
13181 X"$mf" : 'X\(/\)' \| \
13182 . : '\(.\)' 2>/dev/null ||
13183 echo X"$mf" |
13184 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13185 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13186 /^X\(\/\/\)$/{ s//\1/; q; }
13187 /^X\(\/\).*/{ s//\1/; q; }
13188 s/.*/./; q'`
13189 else
13190 continue
13192 # Extract the definition of DEPDIR, am__include, and am__quote
13193 # from the Makefile without running `make'.
13194 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13195 test -z "$DEPDIR" && continue
13196 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13197 test -z "am__include" && continue
13198 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13199 # When using ansi2knr, U may be empty or an underscore; expand it
13200 U=`sed -n 's/^U = //p' < "$mf"`
13201 # Find all dependency output files, they are included files with
13202 # $(DEPDIR) in their names. We invoke sed twice because it is the
13203 # simplest approach to changing $(DEPDIR) to its actual value in the
13204 # expansion.
13205 for file in `sed -n "
13206 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13207 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13208 # Make sure the directory exists.
13209 test -f "$dirpart/$file" && continue
13210 fdir=`(dirname "$file") 2>/dev/null ||
13211 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13212 X"$file" : 'X\(//\)[^/]' \| \
13213 X"$file" : 'X\(//\)$' \| \
13214 X"$file" : 'X\(/\)' \| \
13215 . : '\(.\)' 2>/dev/null ||
13216 echo X"$file" |
13217 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13218 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13219 /^X\(\/\/\)$/{ s//\1/; q; }
13220 /^X\(\/\).*/{ s//\1/; q; }
13221 s/.*/./; q'`
13222 { if $as_mkdir_p; then
13223 mkdir -p $dirpart/$fdir
13224 else
13225 as_dir=$dirpart/$fdir
13226 as_dirs=
13227 while test ! -d "$as_dir"; do
13228 as_dirs="$as_dir $as_dirs"
13229 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13230 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13231 X"$as_dir" : 'X\(//\)[^/]' \| \
13232 X"$as_dir" : 'X\(//\)$' \| \
13233 X"$as_dir" : 'X\(/\)' \| \
13234 . : '\(.\)' 2>/dev/null ||
13235 echo X"$as_dir" |
13236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13237 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13238 /^X\(\/\/\)$/{ s//\1/; q; }
13239 /^X\(\/\).*/{ s//\1/; q; }
13240 s/.*/./; q'`
13241 done
13242 test ! -n "$as_dirs" || mkdir $as_dirs
13243 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
13244 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
13245 { (exit 1); exit 1; }; }; }
13247 # echo "creating $dirpart/$file"
13248 echo '# dummy' > "$dirpart/$file"
13249 done
13250 done
13252 libtool )
13254 # See if we are running on zsh, and set the options which allow our
13255 # commands through without removal of \ escapes.
13256 if test -n "${ZSH_VERSION+set}" ; then
13257 setopt NO_GLOB_SUBST
13260 cfgfile="${ofile}T"
13261 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13262 $RM "$cfgfile"
13264 cat <<_LT_EOF >> "$cfgfile"
13265 #! $SHELL
13267 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13268 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
13269 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13270 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13272 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13273 # 2006, 2007 Free Software Foundation, Inc.
13275 # This file is part of GNU Libtool:
13276 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
13278 # This program is free software; you can redistribute it and/or modify
13279 # it under the terms of the GNU General Public License as published by
13280 # the Free Software Foundation; either version 2 of the License, or
13281 # (at your option) any later version.
13283 # This program is distributed in the hope that it will be useful, but
13284 # WITHOUT ANY WARRANTY; without even the implied warranty of
13285 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13286 # General Public License for more details.
13288 # You should have received a copy of the GNU General Public License
13289 # along with this program; if not, a copy can be downloaded from
13290 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
13291 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
13292 # MA 02110-1301, USA.
13294 # As a special exception to the GNU General Public License, if you
13295 # distribute this file as part of a program that contains a
13296 # configuration script generated by Autoconf, you may include it under
13297 # the same distribution terms that you use for the rest of that program.
13300 # The names of the tagged configurations supported by this script.
13301 available_tags=""
13303 # ### BEGIN LIBTOOL CONFIG
13305 # Which release of libtool.m4 was used?
13306 macro_version=$macro_version
13307 macro_revision=$macro_revision
13309 # Whether or not to build shared libraries.
13310 build_libtool_libs=$enable_shared
13312 # Whether or not to build static libraries.
13313 build_old_libs=$enable_static
13315 # What type of objects to build.
13316 pic_mode=$pic_mode
13318 # Whether or not to optimize for fast installation.
13319 fast_install=$enable_fast_install
13321 # The host system.
13322 host_alias=$host_alias
13323 host=$host
13324 host_os=$host_os
13326 # The build system.
13327 build_alias=$build_alias
13328 build=$build
13329 build_os=$build_os
13331 # A sed program that does not truncate output.
13332 SED=$lt_SED
13334 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13335 Xsed="\$SED -e 1s/^X//"
13337 # A grep program that handles long lines.
13338 GREP=$lt_GREP
13340 # An ERE matcher.
13341 EGREP=$lt_EGREP
13343 # A literal string matcher.
13344 FGREP=$lt_FGREP
13346 # A BSD- or MS-compatible name lister.
13347 NM=$lt_NM
13349 # Whether we need soft or hard links.
13350 LN_S=$lt_LN_S
13352 # What is the maximum length of a command?
13353 max_cmd_len=$max_cmd_len
13355 # Object file suffix (normally "o").
13356 objext=$ac_objext
13358 # Executable file suffix (normally "").
13359 exeext=$exeext
13361 # whether the shell understands "unset".
13362 lt_unset=$lt_unset
13364 # turn spaces into newlines.
13365 SP2NL=$lt_lt_SP2NL
13367 # turn newlines into spaces.
13368 NL2SP=$lt_lt_NL2SP
13370 # How to create reloadable object files.
13371 reload_flag=$lt_reload_flag
13372 reload_cmds=$lt_reload_cmds
13374 # Method to check whether dependent libraries are shared objects.
13375 deplibs_check_method=$lt_deplibs_check_method
13377 # Command to use when deplibs_check_method == "file_magic".
13378 file_magic_cmd=$lt_file_magic_cmd
13380 # The archiver.
13381 AR=$lt_AR
13382 AR_FLAGS=$lt_AR_FLAGS
13384 # A symbol stripping program.
13385 STRIP=$lt_STRIP
13387 # Commands used to install an old-style archive.
13388 RANLIB=$lt_RANLIB
13389 old_postinstall_cmds=$lt_old_postinstall_cmds
13390 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13392 # A C compiler.
13393 LTCC=$lt_CC
13395 # LTCC compiler flags.
13396 LTCFLAGS=$lt_CFLAGS
13398 # Take the output of nm and produce a listing of raw symbols and C names.
13399 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13401 # Transform the output of nm in a proper C declaration.
13402 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13404 # Transform the output of nm in a C name address pair.
13405 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13407 # The name of the directory that contains temporary libtool files.
13408 objdir=$objdir
13410 # Shell to use when invoking shell scripts.
13411 SHELL=$lt_SHELL
13413 # An echo program that does not interpret backslashes.
13414 ECHO=$lt_ECHO
13416 # Used to examine libraries when file_magic_cmd begins with "file".
13417 MAGIC_CMD=$MAGIC_CMD
13419 # Must we lock files when doing compilation?
13420 need_locks=$lt_need_locks
13422 # Old archive suffix (normally "a").
13423 libext=$libext
13425 # Shared library suffix (normally ".so").
13426 shrext_cmds=$lt_shrext_cmds
13428 # The commands to extract the exported symbol list from a shared archive.
13429 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13431 # Variables whose values should be saved in libtool wrapper scripts and
13432 # restored at link time.
13433 variables_saved_for_relink=$lt_variables_saved_for_relink
13435 # Do we need the "lib" prefix for modules?
13436 need_lib_prefix=$need_lib_prefix
13438 # Do we need a version for libraries?
13439 need_version=$need_version
13441 # Library versioning type.
13442 version_type=$version_type
13444 # Shared library runtime path variable.
13445 runpath_var=$runpath_var
13447 # Shared library path variable.
13448 shlibpath_var=$shlibpath_var
13450 # Is shlibpath searched before the hard-coded library search path?
13451 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13453 # Format of library name prefix.
13454 libname_spec=$lt_libname_spec
13456 # List of archive names. First name is the real one, the rest are links.
13457 # The last name is the one that the linker finds with -lNAME
13458 library_names_spec=$lt_library_names_spec
13460 # The coded name of the library, if different from the real name.
13461 soname_spec=$lt_soname_spec
13463 # Command to use after installation of a shared archive.
13464 postinstall_cmds=$lt_postinstall_cmds
13466 # Command to use after uninstallation of a shared archive.
13467 postuninstall_cmds=$lt_postuninstall_cmds
13469 # Commands used to finish a libtool library installation in a directory.
13470 finish_cmds=$lt_finish_cmds
13472 # As "finish_cmds", except a single script fragment to be evaled but
13473 # not shown.
13474 finish_eval=$lt_finish_eval
13476 # Whether we should hardcode library paths into libraries.
13477 hardcode_into_libs=$hardcode_into_libs
13479 # Compile-time system search path for libraries.
13480 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13482 # Run-time system search path for libraries.
13483 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13485 # Whether dlopen is supported.
13486 dlopen_support=$enable_dlopen
13488 # Whether dlopen of programs is supported.
13489 dlopen_self=$enable_dlopen_self
13491 # Whether dlopen of statically linked programs is supported.
13492 dlopen_self_static=$enable_dlopen_self_static
13494 # Commands to strip libraries.
13495 old_striplib=$lt_old_striplib
13496 striplib=$lt_striplib
13499 # The linker used to build libraries.
13500 LD=$lt_LD
13502 # Commands used to build an old-style archive.
13503 old_archive_cmds=$lt_old_archive_cmds
13505 # A language specific compiler.
13506 CC=$lt_compiler
13508 # Is the compiler the GNU compiler?
13509 with_gcc=$GCC
13511 # Compiler flag to turn off builtin functions.
13512 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13514 # How to pass a linker flag through the compiler.
13515 wl=$lt_lt_prog_compiler_wl
13517 # Additional compiler flags for building library objects.
13518 pic_flag=$lt_lt_prog_compiler_pic
13520 # Compiler flag to prevent dynamic linking.
13521 link_static_flag=$lt_lt_prog_compiler_static
13523 # Does compiler simultaneously support -c and -o options?
13524 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13526 # Whether or not to add -lc for building shared libraries.
13527 build_libtool_need_lc=$archive_cmds_need_lc
13529 # Whether or not to disallow shared libs when runtime libs are static.
13530 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13532 # Compiler flag to allow reflexive dlopens.
13533 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13535 # Compiler flag to generate shared objects directly from archives.
13536 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13538 # Whether the compiler copes with passing no objects directly.
13539 compiler_needs_object=$lt_compiler_needs_object
13541 # Create an old-style archive from a shared archive.
13542 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13544 # Create a temporary old-style archive to link instead of a shared archive.
13545 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13547 # Commands used to build a shared archive.
13548 archive_cmds=$lt_archive_cmds
13549 archive_expsym_cmds=$lt_archive_expsym_cmds
13551 # Commands used to build a loadable module if different from building
13552 # a shared archive.
13553 module_cmds=$lt_module_cmds
13554 module_expsym_cmds=$lt_module_expsym_cmds
13556 # Whether we are building with GNU ld or not.
13557 with_gnu_ld=$lt_with_gnu_ld
13559 # Flag that allows shared libraries with undefined symbols to be built.
13560 allow_undefined_flag=$lt_allow_undefined_flag
13562 # Flag that enforces no undefined symbols.
13563 no_undefined_flag=$lt_no_undefined_flag
13565 # Flag to hardcode \$libdir into a binary during linking.
13566 # This must work even if \$libdir does not exist
13567 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13569 # If ld is used when linking, flag to hardcode \$libdir into a binary
13570 # during linking. This must work even if \$libdir does not exist.
13571 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13573 # Whether we need a single "-rpath" flag with a separated argument.
13574 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13576 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13577 # DIR into the resulting binary.
13578 hardcode_direct=$hardcode_direct
13580 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13581 # DIR into the resulting binary and the resulting library dependency is
13582 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13583 # library is relocated.
13584 hardcode_direct_absolute=$hardcode_direct_absolute
13586 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13587 # into the resulting binary.
13588 hardcode_minus_L=$hardcode_minus_L
13590 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13591 # into the resulting binary.
13592 hardcode_shlibpath_var=$hardcode_shlibpath_var
13594 # Set to "yes" if building a shared library automatically hardcodes DIR
13595 # into the library and all subsequent libraries and executables linked
13596 # against it.
13597 hardcode_automatic=$hardcode_automatic
13599 # Set to yes if linker adds runtime paths of dependent libraries
13600 # to runtime path list.
13601 inherit_rpath=$inherit_rpath
13603 # Whether libtool must link a program against all its dependency libraries.
13604 link_all_deplibs=$link_all_deplibs
13606 # Fix the shell variable \$srcfile for the compiler.
13607 fix_srcfile_path=$lt_fix_srcfile_path
13609 # Set to "yes" if exported symbols are required.
13610 always_export_symbols=$always_export_symbols
13612 # The commands to list exported symbols.
13613 export_symbols_cmds=$lt_export_symbols_cmds
13615 # Symbols that should not be listed in the preloaded symbols.
13616 exclude_expsyms=$lt_exclude_expsyms
13618 # Symbols that must always be exported.
13619 include_expsyms=$lt_include_expsyms
13621 # Commands necessary for linking programs (against libraries) with templates.
13622 prelink_cmds=$lt_prelink_cmds
13624 # Specify filename containing input files.
13625 file_list_spec=$lt_file_list_spec
13627 # How to hardcode a shared library path into an executable.
13628 hardcode_action=$hardcode_action
13630 # ### END LIBTOOL CONFIG
13632 _LT_EOF
13634 case $host_os in
13635 aix3*)
13636 cat <<\_LT_EOF >> "$cfgfile"
13637 # AIX sometimes has problems with the GCC collect2 program. For some
13638 # reason, if we set the COLLECT_NAMES environment variable, the problems
13639 # vanish in a puff of smoke.
13640 if test "X${COLLECT_NAMES+set}" != Xset; then
13641 COLLECT_NAMES=
13642 export COLLECT_NAMES
13644 _LT_EOF
13646 esac
13649 ltmain="$ac_aux_dir/ltmain.sh"
13652 # We use sed instead of cat because bash on DJGPP gets confused if
13653 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13654 # text mode, it properly converts lines to CR/LF. This bash problem
13655 # is reportedly fixed, but why not run on old versions too?
13656 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13657 || (rm -f "$cfgfile"; exit 1)
13659 case $xsi_shell in
13660 yes)
13661 cat << \_LT_EOF >> "$cfgfile"
13662 # func_dirname file append nondir_replacement
13663 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13664 # otherwise set result to NONDIR_REPLACEMENT.
13665 func_dirname ()
13667 case ${1} in
13668 */*) func_dirname_result="${1%/*}${2}" ;;
13669 * ) func_dirname_result="${3}" ;;
13670 esac
13673 # func_basename file
13674 func_basename ()
13676 func_basename_result="${1##*/}"
13679 # func_stripname prefix suffix name
13680 # strip PREFIX and SUFFIX off of NAME.
13681 # PREFIX and SUFFIX must not contain globbing or regex special
13682 # characters, hashes, percent signs, but SUFFIX may contain a leading
13683 # dot (in which case that matches only a dot).
13684 func_stripname ()
13686 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13687 # positional parameters, so assign one to ordinary parameter first.
13688 func_stripname_result=${3}
13689 func_stripname_result=${func_stripname_result#"${1}"}
13690 func_stripname_result=${func_stripname_result%"${2}"}
13693 # func_opt_split
13694 func_opt_split ()
13696 func_opt_split_opt=${1%%=*}
13697 func_opt_split_arg=${1#*=}
13700 # func_lo2o object
13701 func_lo2o ()
13703 case ${1} in
13704 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13705 *) func_lo2o_result=${1} ;;
13706 esac
13708 _LT_EOF
13710 *) # Bourne compatible functions.
13711 cat << \_LT_EOF >> "$cfgfile"
13712 # func_dirname file append nondir_replacement
13713 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13714 # otherwise set result to NONDIR_REPLACEMENT.
13715 func_dirname ()
13717 # Extract subdirectory from the argument.
13718 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13719 if test "X$func_dirname_result" = "X${1}"; then
13720 func_dirname_result="${3}"
13721 else
13722 func_dirname_result="$func_dirname_result${2}"
13726 # func_basename file
13727 func_basename ()
13729 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13732 # func_stripname prefix suffix name
13733 # strip PREFIX and SUFFIX off of NAME.
13734 # PREFIX and SUFFIX must not contain globbing or regex special
13735 # characters, hashes, percent signs, but SUFFIX may contain a leading
13736 # dot (in which case that matches only a dot).
13737 # func_strip_suffix prefix name
13738 func_stripname ()
13740 case ${2} in
13741 .*) func_stripname_result=`$ECHO "X${3}" \
13742 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13743 *) func_stripname_result=`$ECHO "X${3}" \
13744 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13745 esac
13748 # sed scripts:
13749 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13750 my_sed_long_arg='1s/^-[^=]*=//'
13752 # func_opt_split
13753 func_opt_split ()
13755 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13756 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13759 # func_lo2o object
13760 func_lo2o ()
13762 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13764 _LT_EOF
13765 esac
13767 case $lt_shell_append in
13768 yes)
13769 cat << \_LT_EOF >> "$cfgfile"
13771 # func_append var value
13772 # Append VALUE to the end of shell variable VAR.
13773 func_append ()
13775 eval "$1+=\$2"
13777 _LT_EOF
13780 cat << \_LT_EOF >> "$cfgfile"
13782 # func_append var value
13783 # Append VALUE to the end of shell variable VAR.
13784 func_append ()
13786 eval "$1=\$$1\$2"
13788 _LT_EOF
13790 esac
13793 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13794 || (rm -f "$cfgfile"; exit 1)
13796 mv -f "$cfgfile" "$ofile" ||
13797 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13798 chmod +x "$ofile"
13801 default-1 )
13802 for ac_file in $CONFIG_FILES; do
13803 # Support "outfile[:infile[:infile...]]"
13804 case "$ac_file" in
13805 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13806 esac
13807 # PO directories have a Makefile.in generated from Makefile.in.in.
13808 case "$ac_file" in */Makefile.in)
13809 # Adjust a relative srcdir.
13810 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
13811 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
13812 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
13813 # In autoconf-2.13 it is called $ac_given_srcdir.
13814 # In autoconf-2.50 it is called $srcdir.
13815 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
13816 case "$ac_given_srcdir" in
13817 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
13818 /*) top_srcdir="$ac_given_srcdir" ;;
13819 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
13820 esac
13821 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
13822 rm -f "$ac_dir/POTFILES"
13823 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
13824 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
13825 POMAKEFILEDEPS="POTFILES.in"
13826 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
13827 # on $ac_dir but don't depend on user-specified configuration
13828 # parameters.
13829 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
13830 # The LINGUAS file contains the set of available languages.
13831 if test -n "$OBSOLETE_ALL_LINGUAS"; then
13832 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
13834 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
13835 # Hide the ALL_LINGUAS assigment from automake.
13836 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
13837 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
13838 else
13839 # The set of available languages was given in configure.in.
13840 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
13842 case "$ac_given_srcdir" in
13843 .) srcdirpre= ;;
13844 *) srcdirpre='$(srcdir)/' ;;
13845 esac
13846 POFILES=
13847 GMOFILES=
13848 UPDATEPOFILES=
13849 DUMMYPOFILES=
13850 for lang in $ALL_LINGUAS; do
13851 POFILES="$POFILES $srcdirpre$lang.po"
13852 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13853 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
13854 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
13855 done
13856 # CATALOGS depends on both $ac_dir and the user's LINGUAS
13857 # environment variable.
13858 INST_LINGUAS=
13859 if test -n "$ALL_LINGUAS"; then
13860 for presentlang in $ALL_LINGUAS; do
13861 useit=no
13862 if test "%UNSET%" != "$LINGUAS"; then
13863 desiredlanguages="$LINGUAS"
13864 else
13865 desiredlanguages="$ALL_LINGUAS"
13867 for desiredlang in $desiredlanguages; do
13868 # Use the presentlang catalog if desiredlang is
13869 # a. equal to presentlang, or
13870 # b. a variant of presentlang (because in this case,
13871 # presentlang can be used as a fallback for messages
13872 # which are not translated in the desiredlang catalog).
13873 case "$desiredlang" in
13874 "$presentlang"*) useit=yes;;
13875 esac
13876 done
13877 if test $useit = yes; then
13878 INST_LINGUAS="$INST_LINGUAS $presentlang"
13880 done
13882 CATALOGS=
13883 if test -n "$INST_LINGUAS"; then
13884 for lang in $INST_LINGUAS; do
13885 CATALOGS="$CATALOGS $lang.gmo"
13886 done
13888 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
13889 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"
13890 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
13891 if test -f "$f"; then
13892 case "$f" in
13893 *.orig | *.bak | *~) ;;
13894 *) cat "$f" >> "$ac_dir/Makefile" ;;
13895 esac
13897 done
13900 esac
13901 done ;;
13902 esac
13903 done
13904 _ACEOF
13906 cat >>$CONFIG_STATUS <<\_ACEOF
13908 { (exit 0); exit 0; }
13909 _ACEOF
13910 chmod +x $CONFIG_STATUS
13911 ac_clean_files=$ac_clean_files_save
13914 # configure is writing to config.log, and then calls config.status.
13915 # config.status does its own redirection, appending to config.log.
13916 # Unfortunately, on DOS this fails, as config.log is still kept open
13917 # by configure, so config.status won't be able to write to it; its
13918 # output is simply discarded. So we exec the FD to /dev/null,
13919 # effectively closing config.log, so it can be properly (re)opened and
13920 # appended to by config.status. When coming back to configure, we
13921 # need to make the FD available again.
13922 if test "$no_create" != yes; then
13923 ac_cs_success=:
13924 ac_config_status_args=
13925 test "$silent" = yes &&
13926 ac_config_status_args="$ac_config_status_args --quiet"
13927 exec 5>/dev/null
13928 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13929 exec 5>>config.log
13930 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13931 # would make configure fail if this is the last instruction.
13932 $ac_cs_success || { (exit 1); exit 1; }