* lib/target-supports.exp (check_effective_target_vxworks_kernel):
[official-gcc.git] / libmudflap / configure
blob507564a83f272e5fad881c06524e55266081f952
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libmudflap 1.0.
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='libmudflap'
418 PACKAGE_TARNAME='libmudflap'
419 PACKAGE_VERSION='1.0'
420 PACKAGE_STRING='libmudflap 1.0'
421 PACKAGE_BUGREPORT=''
423 ac_unique_file="mf-runtime.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 target_noncanonical 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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT multi_basedir CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CFLAGS CPP CPPFLAGS EGREP LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO enable_shared enable_static MF_HAVE_STDINT_H MF_HAVE_UINTPTR_T LIBMUDFLAPTH_TRUE LIBMUDFLAPTH_FALSE build_libmudflapth toolexecdir toolexeclibdir ac_ct_NM SECTION_FLAGS LIBOBJS LTLIBOBJS'
462 ac_subst_files=''
464 # Initialize some variables set by options.
465 ac_init_help=
466 ac_init_version=false
467 # The variables have the same names as the options, with
468 # dashes changed to underlines.
469 cache_file=/dev/null
470 exec_prefix=NONE
471 no_create=
472 no_recursion=
473 prefix=NONE
474 program_prefix=NONE
475 program_suffix=NONE
476 program_transform_name=s,x,x,
477 silent=
478 site=
479 srcdir=
480 verbose=
481 x_includes=NONE
482 x_libraries=NONE
484 # Installation directory options.
485 # These are left unexpanded so users can "make install exec_prefix=/foo"
486 # and all the variables that are supposed to be based on exec_prefix
487 # by default will actually change.
488 # Use braces instead of parens because sh, perl, etc. also accept them.
489 bindir='${exec_prefix}/bin'
490 sbindir='${exec_prefix}/sbin'
491 libexecdir='${exec_prefix}/libexec'
492 datadir='${prefix}/share'
493 sysconfdir='${prefix}/etc'
494 sharedstatedir='${prefix}/com'
495 localstatedir='${prefix}/var'
496 libdir='${exec_prefix}/lib'
497 includedir='${prefix}/include'
498 oldincludedir='/usr/include'
499 infodir='${prefix}/info'
500 mandir='${prefix}/man'
502 ac_prev=
503 for ac_option
505 # If the previous option needs an argument, assign it.
506 if test -n "$ac_prev"; then
507 eval "$ac_prev=\$ac_option"
508 ac_prev=
509 continue
512 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
514 # Accept the important Cygnus configure options, so we can diagnose typos.
516 case $ac_option in
518 -bindir | --bindir | --bindi | --bind | --bin | --bi)
519 ac_prev=bindir ;;
520 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
521 bindir=$ac_optarg ;;
523 -build | --build | --buil | --bui | --bu)
524 ac_prev=build_alias ;;
525 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
526 build_alias=$ac_optarg ;;
528 -cache-file | --cache-file | --cache-fil | --cache-fi \
529 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
530 ac_prev=cache_file ;;
531 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
532 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
533 cache_file=$ac_optarg ;;
535 --config-cache | -C)
536 cache_file=config.cache ;;
538 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539 ac_prev=datadir ;;
540 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541 | --da=*)
542 datadir=$ac_optarg ;;
544 -disable-* | --disable-*)
545 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
546 # Reject names that are not valid shell variable names.
547 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
548 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549 { (exit 1); exit 1; }; }
550 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551 eval "enable_$ac_feature=no" ;;
553 -enable-* | --enable-*)
554 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
555 # Reject names that are not valid shell variable names.
556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558 { (exit 1); exit 1; }; }
559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560 case $ac_option in
561 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
562 *) ac_optarg=yes ;;
563 esac
564 eval "enable_$ac_feature='$ac_optarg'" ;;
566 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568 | --exec | --exe | --ex)
569 ac_prev=exec_prefix ;;
570 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572 | --exec=* | --exe=* | --ex=*)
573 exec_prefix=$ac_optarg ;;
575 -gas | --gas | --ga | --g)
576 # Obsolete; use --with-gas.
577 with_gas=yes ;;
579 -help | --help | --hel | --he | -h)
580 ac_init_help=long ;;
581 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
582 ac_init_help=recursive ;;
583 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
584 ac_init_help=short ;;
586 -host | --host | --hos | --ho)
587 ac_prev=host_alias ;;
588 -host=* | --host=* | --hos=* | --ho=*)
589 host_alias=$ac_optarg ;;
591 -includedir | --includedir | --includedi | --included | --include \
592 | --includ | --inclu | --incl | --inc)
593 ac_prev=includedir ;;
594 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
595 | --includ=* | --inclu=* | --incl=* | --inc=*)
596 includedir=$ac_optarg ;;
598 -infodir | --infodir | --infodi | --infod | --info | --inf)
599 ac_prev=infodir ;;
600 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
601 infodir=$ac_optarg ;;
603 -libdir | --libdir | --libdi | --libd)
604 ac_prev=libdir ;;
605 -libdir=* | --libdir=* | --libdi=* | --libd=*)
606 libdir=$ac_optarg ;;
608 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
609 | --libexe | --libex | --libe)
610 ac_prev=libexecdir ;;
611 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
612 | --libexe=* | --libex=* | --libe=*)
613 libexecdir=$ac_optarg ;;
615 -localstatedir | --localstatedir | --localstatedi | --localstated \
616 | --localstate | --localstat | --localsta | --localst \
617 | --locals | --local | --loca | --loc | --lo)
618 ac_prev=localstatedir ;;
619 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
620 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
621 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
622 localstatedir=$ac_optarg ;;
624 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625 ac_prev=mandir ;;
626 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
627 mandir=$ac_optarg ;;
629 -nfp | --nfp | --nf)
630 # Obsolete; use --without-fp.
631 with_fp=no ;;
633 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
634 | --no-cr | --no-c | -n)
635 no_create=yes ;;
637 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
638 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
639 no_recursion=yes ;;
641 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
642 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
643 | --oldin | --oldi | --old | --ol | --o)
644 ac_prev=oldincludedir ;;
645 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
646 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
647 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
648 oldincludedir=$ac_optarg ;;
650 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651 ac_prev=prefix ;;
652 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
653 prefix=$ac_optarg ;;
655 -program-prefix | --program-prefix | --program-prefi | --program-pref \
656 | --program-pre | --program-pr | --program-p)
657 ac_prev=program_prefix ;;
658 -program-prefix=* | --program-prefix=* | --program-prefi=* \
659 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
660 program_prefix=$ac_optarg ;;
662 -program-suffix | --program-suffix | --program-suffi | --program-suff \
663 | --program-suf | --program-su | --program-s)
664 ac_prev=program_suffix ;;
665 -program-suffix=* | --program-suffix=* | --program-suffi=* \
666 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
667 program_suffix=$ac_optarg ;;
669 -program-transform-name | --program-transform-name \
670 | --program-transform-nam | --program-transform-na \
671 | --program-transform-n | --program-transform- \
672 | --program-transform | --program-transfor \
673 | --program-transfo | --program-transf \
674 | --program-trans | --program-tran \
675 | --progr-tra | --program-tr | --program-t)
676 ac_prev=program_transform_name ;;
677 -program-transform-name=* | --program-transform-name=* \
678 | --program-transform-nam=* | --program-transform-na=* \
679 | --program-transform-n=* | --program-transform-=* \
680 | --program-transform=* | --program-transfor=* \
681 | --program-transfo=* | --program-transf=* \
682 | --program-trans=* | --program-tran=* \
683 | --progr-tra=* | --program-tr=* | --program-t=*)
684 program_transform_name=$ac_optarg ;;
686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687 | -silent | --silent | --silen | --sile | --sil)
688 silent=yes ;;
690 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
691 ac_prev=sbindir ;;
692 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
693 | --sbi=* | --sb=*)
694 sbindir=$ac_optarg ;;
696 -sharedstatedir | --sharedstatedir | --sharedstatedi \
697 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
698 | --sharedst | --shareds | --shared | --share | --shar \
699 | --sha | --sh)
700 ac_prev=sharedstatedir ;;
701 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
702 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
703 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
704 | --sha=* | --sh=*)
705 sharedstatedir=$ac_optarg ;;
707 -site | --site | --sit)
708 ac_prev=site ;;
709 -site=* | --site=* | --sit=*)
710 site=$ac_optarg ;;
712 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713 ac_prev=srcdir ;;
714 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
715 srcdir=$ac_optarg ;;
717 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
718 | --syscon | --sysco | --sysc | --sys | --sy)
719 ac_prev=sysconfdir ;;
720 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
721 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
722 sysconfdir=$ac_optarg ;;
724 -target | --target | --targe | --targ | --tar | --ta | --t)
725 ac_prev=target_alias ;;
726 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
727 target_alias=$ac_optarg ;;
729 -v | -verbose | --verbose | --verbos | --verbo | --verb)
730 verbose=yes ;;
732 -version | --version | --versio | --versi | --vers | -V)
733 ac_init_version=: ;;
735 -with-* | --with-*)
736 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
737 # Reject names that are not valid shell variable names.
738 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
739 { echo "$as_me: error: invalid package name: $ac_package" >&2
740 { (exit 1); exit 1; }; }
741 ac_package=`echo $ac_package| sed 's/-/_/g'`
742 case $ac_option in
743 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
744 *) ac_optarg=yes ;;
745 esac
746 eval "with_$ac_package='$ac_optarg'" ;;
748 -without-* | --without-*)
749 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
750 # Reject names that are not valid shell variable names.
751 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752 { echo "$as_me: error: invalid package name: $ac_package" >&2
753 { (exit 1); exit 1; }; }
754 ac_package=`echo $ac_package | sed 's/-/_/g'`
755 eval "with_$ac_package=no" ;;
757 --x)
758 # Obsolete; use --with-x.
759 with_x=yes ;;
761 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
762 | --x-incl | --x-inc | --x-in | --x-i)
763 ac_prev=x_includes ;;
764 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
765 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
766 x_includes=$ac_optarg ;;
768 -x-libraries | --x-libraries | --x-librarie | --x-librari \
769 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
770 ac_prev=x_libraries ;;
771 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
772 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
773 x_libraries=$ac_optarg ;;
775 -*) { echo "$as_me: error: unrecognized option: $ac_option
776 Try \`$0 --help' for more information." >&2
777 { (exit 1); exit 1; }; }
780 *=*)
781 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
782 # Reject names that are not valid shell variable names.
783 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
784 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785 { (exit 1); exit 1; }; }
786 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787 eval "$ac_envvar='$ac_optarg'"
788 export $ac_envvar ;;
791 # FIXME: should be removed in autoconf 3.0.
792 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
798 esac
799 done
801 if test -n "$ac_prev"; then
802 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
803 { echo "$as_me: error: missing argument to $ac_option" >&2
804 { (exit 1); exit 1; }; }
807 # Be sure to have absolute paths.
808 for ac_var in exec_prefix prefix
810 eval ac_val=$`echo $ac_var`
811 case $ac_val in
812 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814 { (exit 1); exit 1; }; };;
815 esac
816 done
818 # Be sure to have absolute paths.
819 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820 localstatedir libdir includedir oldincludedir infodir mandir
822 eval ac_val=$`echo $ac_var`
823 case $ac_val in
824 [\\/$]* | ?:[\\/]* ) ;;
825 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826 { (exit 1); exit 1; }; };;
827 esac
828 done
830 # There might be people who depend on the old broken behavior: `$host'
831 # used to hold the argument of --host etc.
832 # FIXME: To remove some day.
833 build=$build_alias
834 host=$host_alias
835 target=$target_alias
837 # FIXME: To remove some day.
838 if test "x$host_alias" != x; then
839 if test "x$build_alias" = x; then
840 cross_compiling=maybe
841 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842 If a cross compiler is detected then cross compile mode will be used." >&2
843 elif test "x$build_alias" != "x$host_alias"; then
844 cross_compiling=yes
848 ac_tool_prefix=
849 test -n "$host_alias" && ac_tool_prefix=$host_alias-
851 test "$silent" = yes && exec 6>/dev/null
854 # Find the source files, if location was not specified.
855 if test -z "$srcdir"; then
856 ac_srcdir_defaulted=yes
857 # Try the directory containing this script, then its parent.
858 ac_confdir=`(dirname "$0") 2>/dev/null ||
859 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
860 X"$0" : 'X\(//\)[^/]' \| \
861 X"$0" : 'X\(//\)$' \| \
862 X"$0" : 'X\(/\)' \| \
863 . : '\(.\)' 2>/dev/null ||
864 echo X"$0" |
865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867 /^X\(\/\/\)$/{ s//\1/; q; }
868 /^X\(\/\).*/{ s//\1/; q; }
869 s/.*/./; q'`
870 srcdir=$ac_confdir
871 if test ! -r $srcdir/$ac_unique_file; then
872 srcdir=..
874 else
875 ac_srcdir_defaulted=no
877 if test ! -r $srcdir/$ac_unique_file; then
878 if test "$ac_srcdir_defaulted" = yes; then
879 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880 { (exit 1); exit 1; }; }
881 else
882 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883 { (exit 1); exit 1; }; }
886 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
887 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888 { (exit 1); exit 1; }; }
889 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890 ac_env_build_alias_set=${build_alias+set}
891 ac_env_build_alias_value=$build_alias
892 ac_cv_env_build_alias_set=${build_alias+set}
893 ac_cv_env_build_alias_value=$build_alias
894 ac_env_host_alias_set=${host_alias+set}
895 ac_env_host_alias_value=$host_alias
896 ac_cv_env_host_alias_set=${host_alias+set}
897 ac_cv_env_host_alias_value=$host_alias
898 ac_env_target_alias_set=${target_alias+set}
899 ac_env_target_alias_value=$target_alias
900 ac_cv_env_target_alias_set=${target_alias+set}
901 ac_cv_env_target_alias_value=$target_alias
902 ac_env_CPP_set=${CPP+set}
903 ac_env_CPP_value=$CPP
904 ac_cv_env_CPP_set=${CPP+set}
905 ac_cv_env_CPP_value=$CPP
906 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
907 ac_env_CPPFLAGS_value=$CPPFLAGS
908 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
909 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
912 # Report the --help message.
914 if test "$ac_init_help" = "long"; then
915 # Omit some internal or obsolete options to make the list less imposing.
916 # This message is too long to be a string in the A/UX 3.1 sh.
917 cat <<_ACEOF
918 \`configure' configures libmudflap 1.0 to adapt to many kinds of systems.
920 Usage: $0 [OPTION]... [VAR=VALUE]...
922 To assign environment variables (e.g., CC, CFLAGS...), specify them as
923 VAR=VALUE. See below for descriptions of some of the useful variables.
925 Defaults for the options are specified in brackets.
927 Configuration:
928 -h, --help display this help and exit
929 --help=short display options specific to this package
930 --help=recursive display the short help of all the included packages
931 -V, --version display version information and exit
932 -q, --quiet, --silent do not print \`checking...' messages
933 --cache-file=FILE cache test results in FILE [disabled]
934 -C, --config-cache alias for \`--cache-file=config.cache'
935 -n, --no-create do not create output files
936 --srcdir=DIR find the sources in DIR [configure dir or \`..']
938 _ACEOF
940 cat <<_ACEOF
941 Installation directories:
942 --prefix=PREFIX install architecture-independent files in PREFIX
943 [$ac_default_prefix]
944 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
945 [PREFIX]
947 By default, \`make install' will install all the files in
948 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
949 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
950 for instance \`--prefix=\$HOME'.
952 For better control, use the options below.
954 Fine tuning of the installation directories:
955 --bindir=DIR user executables [EPREFIX/bin]
956 --sbindir=DIR system admin executables [EPREFIX/sbin]
957 --libexecdir=DIR program executables [EPREFIX/libexec]
958 --datadir=DIR read-only architecture-independent data [PREFIX/share]
959 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
960 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
961 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
962 --libdir=DIR object code libraries [EPREFIX/lib]
963 --includedir=DIR C header files [PREFIX/include]
964 --oldincludedir=DIR C header files for non-gcc [/usr/include]
965 --infodir=DIR info documentation [PREFIX/info]
966 --mandir=DIR man documentation [PREFIX/man]
967 _ACEOF
969 cat <<\_ACEOF
971 Program names:
972 --program-prefix=PREFIX prepend PREFIX to installed program names
973 --program-suffix=SUFFIX append SUFFIX to installed program names
974 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
976 System types:
977 --build=BUILD configure for building on BUILD [guessed]
978 --host=HOST cross-compile to build programs to run on HOST [BUILD]
979 --target=TARGET configure for building compilers for TARGET [HOST]
980 _ACEOF
983 if test -n "$ac_init_help"; then
984 case $ac_init_help in
985 short | recursive ) echo "Configuration of libmudflap 1.0:";;
986 esac
987 cat <<\_ACEOF
989 Optional Features:
990 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
991 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
992 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
993 --enable-maintainer-mode enable make rules and dependencies not useful
994 (and sometimes confusing) to the casual installer
995 --enable-multilib build many library versions (default)
996 --disable-dependency-tracking speeds up one-time build
997 --enable-dependency-tracking do not reject slow dependency extractors
998 --enable-shared[=PKGS]
999 build shared libraries [default=yes]
1000 --enable-static[=PKGS]
1001 build static libraries [default=yes]
1002 --enable-fast-install[=PKGS]
1003 optimize for fast installation [default=yes]
1004 --disable-libtool-lock avoid locking (might break parallel builds)
1005 --enable-tls Use thread-local storage [default=yes]
1007 Optional Packages:
1008 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1009 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1010 --with-pic try to use only PIC/non-PIC objects [default=use
1011 both]
1012 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1014 Some influential environment variables:
1015 CC C compiler command
1016 CFLAGS C compiler flags
1017 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1018 nonstandard directory <lib dir>
1019 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1020 headers in a nonstandard directory <include dir>
1021 CPP C preprocessor
1023 Use these variables to override the choices made by `configure' or to help
1024 it to find libraries and programs with nonstandard names/locations.
1026 _ACEOF
1029 if test "$ac_init_help" = "recursive"; then
1030 # If there are subdirs, report their specific --help.
1031 ac_popdir=`pwd`
1032 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1033 test -d $ac_dir || continue
1034 ac_builddir=.
1036 if test "$ac_dir" != .; then
1037 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1038 # A "../" for each directory in $ac_dir_suffix.
1039 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1040 else
1041 ac_dir_suffix= ac_top_builddir=
1044 case $srcdir in
1045 .) # No --srcdir option. We are building in place.
1046 ac_srcdir=.
1047 if test -z "$ac_top_builddir"; then
1048 ac_top_srcdir=.
1049 else
1050 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1051 fi ;;
1052 [\\/]* | ?:[\\/]* ) # Absolute path.
1053 ac_srcdir=$srcdir$ac_dir_suffix;
1054 ac_top_srcdir=$srcdir ;;
1055 *) # Relative path.
1056 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1057 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1058 esac
1060 # Do not use `cd foo && pwd` to compute absolute paths, because
1061 # the directories may not exist.
1062 case `pwd` in
1063 .) ac_abs_builddir="$ac_dir";;
1065 case "$ac_dir" in
1066 .) ac_abs_builddir=`pwd`;;
1067 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1068 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1069 esac;;
1070 esac
1071 case $ac_abs_builddir in
1072 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1074 case ${ac_top_builddir}. in
1075 .) ac_abs_top_builddir=$ac_abs_builddir;;
1076 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1077 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1078 esac;;
1079 esac
1080 case $ac_abs_builddir in
1081 .) ac_abs_srcdir=$ac_srcdir;;
1083 case $ac_srcdir in
1084 .) ac_abs_srcdir=$ac_abs_builddir;;
1085 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1086 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1087 esac;;
1088 esac
1089 case $ac_abs_builddir in
1090 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1092 case $ac_top_srcdir in
1093 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1094 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1095 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1096 esac;;
1097 esac
1099 cd $ac_dir
1100 # Check for guested configure; otherwise get Cygnus style configure.
1101 if test -f $ac_srcdir/configure.gnu; then
1102 echo
1103 $SHELL $ac_srcdir/configure.gnu --help=recursive
1104 elif test -f $ac_srcdir/configure; then
1105 echo
1106 $SHELL $ac_srcdir/configure --help=recursive
1107 elif test -f $ac_srcdir/configure.ac ||
1108 test -f $ac_srcdir/configure.in; then
1109 echo
1110 $ac_configure --help
1111 else
1112 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1114 cd $ac_popdir
1115 done
1118 test -n "$ac_init_help" && exit 0
1119 if $ac_init_version; then
1120 cat <<\_ACEOF
1121 libmudflap configure 1.0
1122 generated by GNU Autoconf 2.59
1124 Copyright (C) 2003 Free Software Foundation, Inc.
1125 This configure script is free software; the Free Software Foundation
1126 gives unlimited permission to copy, distribute and modify it.
1127 _ACEOF
1128 exit 0
1130 exec 5>config.log
1131 cat >&5 <<_ACEOF
1132 This file contains any messages produced by compilers while
1133 running configure, to aid debugging if configure makes a mistake.
1135 It was created by libmudflap $as_me 1.0, which was
1136 generated by GNU Autoconf 2.59. Invocation command line was
1138 $ $0 $@
1140 _ACEOF
1142 cat <<_ASUNAME
1143 ## --------- ##
1144 ## Platform. ##
1145 ## --------- ##
1147 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1148 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1149 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1150 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1151 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1153 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1154 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1156 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1157 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1158 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1159 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1160 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1161 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1162 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1164 _ASUNAME
1166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1167 for as_dir in $PATH
1169 IFS=$as_save_IFS
1170 test -z "$as_dir" && as_dir=.
1171 echo "PATH: $as_dir"
1172 done
1174 } >&5
1176 cat >&5 <<_ACEOF
1179 ## ----------- ##
1180 ## Core tests. ##
1181 ## ----------- ##
1183 _ACEOF
1186 # Keep a trace of the command line.
1187 # Strip out --no-create and --no-recursion so they do not pile up.
1188 # Strip out --silent because we don't want to record it for future runs.
1189 # Also quote any args containing shell meta-characters.
1190 # Make two passes to allow for proper duplicate-argument suppression.
1191 ac_configure_args=
1192 ac_configure_args0=
1193 ac_configure_args1=
1194 ac_sep=
1195 ac_must_keep_next=false
1196 for ac_pass in 1 2
1198 for ac_arg
1200 case $ac_arg in
1201 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1202 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1203 | -silent | --silent | --silen | --sile | --sil)
1204 continue ;;
1205 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1206 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1207 esac
1208 case $ac_pass in
1209 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1211 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1212 if test $ac_must_keep_next = true; then
1213 ac_must_keep_next=false # Got value, back to normal.
1214 else
1215 case $ac_arg in
1216 *=* | --config-cache | -C | -disable-* | --disable-* \
1217 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1218 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1219 | -with-* | --with-* | -without-* | --without-* | --x)
1220 case "$ac_configure_args0 " in
1221 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1222 esac
1224 -* ) ac_must_keep_next=true ;;
1225 esac
1227 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1228 # Get rid of the leading space.
1229 ac_sep=" "
1231 esac
1232 done
1233 done
1234 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1235 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1237 # When interrupted or exit'd, cleanup temporary files, and complete
1238 # config.log. We remove comments because anyway the quotes in there
1239 # would cause problems or look ugly.
1240 # WARNING: Be sure not to use single quotes in there, as some shells,
1241 # such as our DU 5.0 friend, will then `close' the trap.
1242 trap 'exit_status=$?
1243 # Save into config.log some information that might help in debugging.
1245 echo
1247 cat <<\_ASBOX
1248 ## ---------------- ##
1249 ## Cache variables. ##
1250 ## ---------------- ##
1251 _ASBOX
1252 echo
1253 # The following way of writing the cache mishandles newlines in values,
1255 (set) 2>&1 |
1256 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1257 *ac_space=\ *)
1258 sed -n \
1259 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1260 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1263 sed -n \
1264 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1266 esac;
1268 echo
1270 cat <<\_ASBOX
1271 ## ----------------- ##
1272 ## Output variables. ##
1273 ## ----------------- ##
1274 _ASBOX
1275 echo
1276 for ac_var in $ac_subst_vars
1278 eval ac_val=$`echo $ac_var`
1279 echo "$ac_var='"'"'$ac_val'"'"'"
1280 done | sort
1281 echo
1283 if test -n "$ac_subst_files"; then
1284 cat <<\_ASBOX
1285 ## ------------- ##
1286 ## Output files. ##
1287 ## ------------- ##
1288 _ASBOX
1289 echo
1290 for ac_var in $ac_subst_files
1292 eval ac_val=$`echo $ac_var`
1293 echo "$ac_var='"'"'$ac_val'"'"'"
1294 done | sort
1295 echo
1298 if test -s confdefs.h; then
1299 cat <<\_ASBOX
1300 ## ----------- ##
1301 ## confdefs.h. ##
1302 ## ----------- ##
1303 _ASBOX
1304 echo
1305 sed "/^$/d" confdefs.h | sort
1306 echo
1308 test "$ac_signal" != 0 &&
1309 echo "$as_me: caught signal $ac_signal"
1310 echo "$as_me: exit $exit_status"
1311 } >&5
1312 rm -f core *.core &&
1313 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1314 exit $exit_status
1316 for ac_signal in 1 2 13 15; do
1317 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1318 done
1319 ac_signal=0
1321 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1322 rm -rf conftest* confdefs.h
1323 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1324 echo >confdefs.h
1326 # Predefined preprocessor variables.
1328 cat >>confdefs.h <<_ACEOF
1329 #define PACKAGE_NAME "$PACKAGE_NAME"
1330 _ACEOF
1333 cat >>confdefs.h <<_ACEOF
1334 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1335 _ACEOF
1338 cat >>confdefs.h <<_ACEOF
1339 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1340 _ACEOF
1343 cat >>confdefs.h <<_ACEOF
1344 #define PACKAGE_STRING "$PACKAGE_STRING"
1345 _ACEOF
1348 cat >>confdefs.h <<_ACEOF
1349 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1350 _ACEOF
1353 # Let the site file select an alternate cache file if it wants to.
1354 # Prefer explicitly selected file to automatically selected ones.
1355 if test -z "$CONFIG_SITE"; then
1356 if test "x$prefix" != xNONE; then
1357 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1358 else
1359 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1362 for ac_site_file in $CONFIG_SITE; do
1363 if test -r "$ac_site_file"; then
1364 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1365 echo "$as_me: loading site script $ac_site_file" >&6;}
1366 sed 's/^/| /' "$ac_site_file" >&5
1367 . "$ac_site_file"
1369 done
1371 if test -r "$cache_file"; then
1372 # Some versions of bash will fail to source /dev/null (special
1373 # files actually), so we avoid doing that.
1374 if test -f "$cache_file"; then
1375 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1376 echo "$as_me: loading cache $cache_file" >&6;}
1377 case $cache_file in
1378 [\\/]* | ?:[\\/]* ) . $cache_file;;
1379 *) . ./$cache_file;;
1380 esac
1382 else
1383 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1384 echo "$as_me: creating cache $cache_file" >&6;}
1385 >$cache_file
1388 # Check that the precious variables saved in the cache have kept the same
1389 # value.
1390 ac_cache_corrupted=false
1391 for ac_var in `(set) 2>&1 |
1392 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1393 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1394 eval ac_new_set=\$ac_env_${ac_var}_set
1395 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1396 eval ac_new_val="\$ac_env_${ac_var}_value"
1397 case $ac_old_set,$ac_new_set in
1398 set,)
1399 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1400 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1401 ac_cache_corrupted=: ;;
1402 ,set)
1403 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1404 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1405 ac_cache_corrupted=: ;;
1406 ,);;
1408 if test "x$ac_old_val" != "x$ac_new_val"; then
1409 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1410 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1411 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1412 echo "$as_me: former value: $ac_old_val" >&2;}
1413 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1414 echo "$as_me: current value: $ac_new_val" >&2;}
1415 ac_cache_corrupted=:
1416 fi;;
1417 esac
1418 # Pass precious variables to config.status.
1419 if test "$ac_new_set" = set; then
1420 case $ac_new_val in
1421 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1422 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1423 *) ac_arg=$ac_var=$ac_new_val ;;
1424 esac
1425 case " $ac_configure_args " in
1426 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1427 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1428 esac
1430 done
1431 if $ac_cache_corrupted; then
1432 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1433 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1434 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1435 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1436 { (exit 1); exit 1; }; }
1439 ac_ext=c
1440 ac_cpp='$CPP $CPPFLAGS'
1441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1472 ac_aux_dir=
1473 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1474 if test -f $ac_dir/install-sh; then
1475 ac_aux_dir=$ac_dir
1476 ac_install_sh="$ac_aux_dir/install-sh -c"
1477 break
1478 elif test -f $ac_dir/install.sh; then
1479 ac_aux_dir=$ac_dir
1480 ac_install_sh="$ac_aux_dir/install.sh -c"
1481 break
1482 elif test -f $ac_dir/shtool; then
1483 ac_aux_dir=$ac_dir
1484 ac_install_sh="$ac_aux_dir/shtool install -c"
1485 break
1487 done
1488 if test -z "$ac_aux_dir"; then
1489 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1490 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1491 { (exit 1); exit 1; }; }
1493 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1494 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1495 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1497 # Make sure we can run config.sub.
1498 $ac_config_sub sun4 >/dev/null 2>&1 ||
1499 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1500 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1501 { (exit 1); exit 1; }; }
1503 echo "$as_me:$LINENO: checking build system type" >&5
1504 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1505 if test "${ac_cv_build+set}" = set; then
1506 echo $ECHO_N "(cached) $ECHO_C" >&6
1507 else
1508 ac_cv_build_alias=$build_alias
1509 test -z "$ac_cv_build_alias" &&
1510 ac_cv_build_alias=`$ac_config_guess`
1511 test -z "$ac_cv_build_alias" &&
1512 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1513 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1514 { (exit 1); exit 1; }; }
1515 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1516 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1517 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1518 { (exit 1); exit 1; }; }
1521 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1522 echo "${ECHO_T}$ac_cv_build" >&6
1523 build=$ac_cv_build
1524 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1525 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1526 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1529 echo "$as_me:$LINENO: checking host system type" >&5
1530 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1531 if test "${ac_cv_host+set}" = set; then
1532 echo $ECHO_N "(cached) $ECHO_C" >&6
1533 else
1534 ac_cv_host_alias=$host_alias
1535 test -z "$ac_cv_host_alias" &&
1536 ac_cv_host_alias=$ac_cv_build_alias
1537 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1538 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1539 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1540 { (exit 1); exit 1; }; }
1543 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1544 echo "${ECHO_T}$ac_cv_host" >&6
1545 host=$ac_cv_host
1546 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1547 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1548 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1551 echo "$as_me:$LINENO: checking target system type" >&5
1552 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1553 if test "${ac_cv_target+set}" = set; then
1554 echo $ECHO_N "(cached) $ECHO_C" >&6
1555 else
1556 ac_cv_target_alias=$target_alias
1557 test "x$ac_cv_target_alias" = "x" &&
1558 ac_cv_target_alias=$ac_cv_host_alias
1559 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1560 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1561 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1562 { (exit 1); exit 1; }; }
1565 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1566 echo "${ECHO_T}$ac_cv_target" >&6
1567 target=$ac_cv_target
1568 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1569 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1570 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1573 # The aliases save the names the user supplied, while $host etc.
1574 # will get canonicalized.
1575 test -n "$target_alias" &&
1576 test "$program_prefix$program_suffix$program_transform_name" = \
1577 NONENONEs,x,x, &&
1578 program_prefix=${target_alias}-
1579 case ${build_alias} in
1580 "") build_noncanonical=${build} ;;
1581 *) build_noncanonical=${build_alias} ;;
1582 esac
1584 case ${host_alias} in
1585 "") host_noncanonical=${build_noncanonical} ;;
1586 *) host_noncanonical=${host_alias} ;;
1587 esac
1589 case ${target_alias} in
1590 "") target_noncanonical=${host_noncanonical} ;;
1591 *) target_noncanonical=${target_alias} ;;
1592 esac
1597 am__api_version="1.9"
1598 # Find a good install program. We prefer a C program (faster),
1599 # so one script is as good as another. But avoid the broken or
1600 # incompatible versions:
1601 # SysV /etc/install, /usr/sbin/install
1602 # SunOS /usr/etc/install
1603 # IRIX /sbin/install
1604 # AIX /bin/install
1605 # AmigaOS /C/install, which installs bootblocks on floppy discs
1606 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1607 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1608 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1609 # OS/2's system install, which has a completely different semantic
1610 # ./install, which can be erroneously created by make from ./install.sh.
1611 # Reject install programs that cannot install multiple files.
1612 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1613 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1614 if test -z "$INSTALL"; then
1615 if test "${ac_cv_path_install+set}" = set; then
1616 echo $ECHO_N "(cached) $ECHO_C" >&6
1617 else
1618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1619 for as_dir in $PATH
1621 IFS=$as_save_IFS
1622 test -z "$as_dir" && as_dir=.
1623 # Account for people who put trailing slashes in PATH elements.
1624 case $as_dir/ in
1625 ./ | .// | /cC/* | \
1626 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1627 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1628 /usr/ucb/* ) ;;
1630 # OSF1 and SCO ODT 3.0 have their own names for install.
1631 # Don't use installbsd from OSF since it installs stuff as root
1632 # by default.
1633 for ac_prog in ginstall scoinst install; do
1634 for ac_exec_ext in '' $ac_executable_extensions; do
1635 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1636 if test $ac_prog = install &&
1637 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1638 # AIX install. It has an incompatible calling convention.
1640 elif test $ac_prog = install &&
1641 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1642 # program-specific install script used by HP pwplus--don't use.
1644 else
1645 rm -rf conftest.one conftest.two conftest.dir
1646 echo one > conftest.one
1647 echo two > conftest.two
1648 mkdir conftest.dir
1649 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1650 test -s conftest.one && test -s conftest.two &&
1651 test -s conftest.dir/conftest.one &&
1652 test -s conftest.dir/conftest.two
1653 then
1654 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1655 break 3
1659 done
1660 done
1662 esac
1663 done
1665 rm -rf conftest.one conftest.two conftest.dir
1668 if test "${ac_cv_path_install+set}" = set; then
1669 INSTALL=$ac_cv_path_install
1670 else
1671 # As a last resort, use the slow shell script. Don't cache a
1672 # value for INSTALL within a source directory, because that will
1673 # break other packages using the cache if that directory is
1674 # removed, or if the value is a relative name.
1675 INSTALL=$ac_install_sh
1678 echo "$as_me:$LINENO: result: $INSTALL" >&5
1679 echo "${ECHO_T}$INSTALL" >&6
1681 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1682 # It thinks the first close brace ends the variable substitution.
1683 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1685 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1687 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1689 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1690 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1691 # Just in case
1692 sleep 1
1693 echo timestamp > conftest.file
1694 # Do `set' in a subshell so we don't clobber the current shell's
1695 # arguments. Must try -L first in case configure is actually a
1696 # symlink; some systems play weird games with the mod time of symlinks
1697 # (eg FreeBSD returns the mod time of the symlink's containing
1698 # directory).
1699 if (
1700 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1701 if test "$*" = "X"; then
1702 # -L didn't work.
1703 set X `ls -t $srcdir/configure conftest.file`
1705 rm -f conftest.file
1706 if test "$*" != "X $srcdir/configure conftest.file" \
1707 && test "$*" != "X conftest.file $srcdir/configure"; then
1709 # If neither matched, then we have a broken ls. This can happen
1710 # if, for instance, CONFIG_SHELL is bash and it inherits a
1711 # broken ls alias from the environment. This has actually
1712 # happened. Such a system could not be considered "sane".
1713 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1714 alias in your environment" >&5
1715 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1716 alias in your environment" >&2;}
1717 { (exit 1); exit 1; }; }
1720 test "$2" = conftest.file
1722 then
1723 # Ok.
1725 else
1726 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1727 Check your system clock" >&5
1728 echo "$as_me: error: newly created file is older than distributed files!
1729 Check your system clock" >&2;}
1730 { (exit 1); exit 1; }; }
1732 echo "$as_me:$LINENO: result: yes" >&5
1733 echo "${ECHO_T}yes" >&6
1734 test "$program_prefix" != NONE &&
1735 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1736 # Use a double $ so make ignores it.
1737 test "$program_suffix" != NONE &&
1738 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1739 # Double any \ or $. echo might interpret backslashes.
1740 # By default was `s,x,x', remove it if useless.
1741 cat <<\_ACEOF >conftest.sed
1742 s/[\\$]/&&/g;s/;s,x,x,$//
1743 _ACEOF
1744 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1745 rm conftest.sed
1747 # expand $ac_aux_dir to an absolute path
1748 am_aux_dir=`cd $ac_aux_dir && pwd`
1750 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1751 # Use eval to expand $SHELL
1752 if eval "$MISSING --run true"; then
1753 am_missing_run="$MISSING --run "
1754 else
1755 am_missing_run=
1756 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1757 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1760 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1761 # We used to keeping the `.' as first argument, in order to
1762 # allow $(mkdir_p) to be used without argument. As in
1763 # $(mkdir_p) $(somedir)
1764 # where $(somedir) is conditionally defined. However this is wrong
1765 # for two reasons:
1766 # 1. if the package is installed by a user who cannot write `.'
1767 # make install will fail,
1768 # 2. the above comment should most certainly read
1769 # $(mkdir_p) $(DESTDIR)$(somedir)
1770 # so it does not work when $(somedir) is undefined and
1771 # $(DESTDIR) is not.
1772 # To support the latter case, we have to write
1773 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1774 # so the `.' trick is pointless.
1775 mkdir_p='mkdir -p --'
1776 else
1777 # On NextStep and OpenStep, the `mkdir' command does not
1778 # recognize any option. It will interpret all options as
1779 # directories to create, and then abort because `.' already
1780 # exists.
1781 for d in ./-p ./--version;
1783 test -d $d && rmdir $d
1784 done
1785 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1786 if test -f "$ac_aux_dir/mkinstalldirs"; then
1787 mkdir_p='$(mkinstalldirs)'
1788 else
1789 mkdir_p='$(install_sh) -d'
1793 for ac_prog in gawk mawk nawk awk
1795 # Extract the first word of "$ac_prog", so it can be a program name with args.
1796 set dummy $ac_prog; ac_word=$2
1797 echo "$as_me:$LINENO: checking for $ac_word" >&5
1798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1799 if test "${ac_cv_prog_AWK+set}" = set; then
1800 echo $ECHO_N "(cached) $ECHO_C" >&6
1801 else
1802 if test -n "$AWK"; then
1803 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1804 else
1805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1806 for as_dir in $PATH
1808 IFS=$as_save_IFS
1809 test -z "$as_dir" && as_dir=.
1810 for ac_exec_ext in '' $ac_executable_extensions; do
1811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1812 ac_cv_prog_AWK="$ac_prog"
1813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1814 break 2
1816 done
1817 done
1821 AWK=$ac_cv_prog_AWK
1822 if test -n "$AWK"; then
1823 echo "$as_me:$LINENO: result: $AWK" >&5
1824 echo "${ECHO_T}$AWK" >&6
1825 else
1826 echo "$as_me:$LINENO: result: no" >&5
1827 echo "${ECHO_T}no" >&6
1830 test -n "$AWK" && break
1831 done
1833 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1834 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1835 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1836 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1837 echo $ECHO_N "(cached) $ECHO_C" >&6
1838 else
1839 cat >conftest.make <<\_ACEOF
1840 all:
1841 @echo 'ac_maketemp="$(MAKE)"'
1842 _ACEOF
1843 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1844 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1845 if test -n "$ac_maketemp"; then
1846 eval ac_cv_prog_make_${ac_make}_set=yes
1847 else
1848 eval ac_cv_prog_make_${ac_make}_set=no
1850 rm -f conftest.make
1852 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1853 echo "$as_me:$LINENO: result: yes" >&5
1854 echo "${ECHO_T}yes" >&6
1855 SET_MAKE=
1856 else
1857 echo "$as_me:$LINENO: result: no" >&5
1858 echo "${ECHO_T}no" >&6
1859 SET_MAKE="MAKE=${MAKE-make}"
1862 rm -rf .tst 2>/dev/null
1863 mkdir .tst 2>/dev/null
1864 if test -d .tst; then
1865 am__leading_dot=.
1866 else
1867 am__leading_dot=_
1869 rmdir .tst 2>/dev/null
1871 # test to see if srcdir already configured
1872 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1873 test -f $srcdir/config.status; then
1874 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1875 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1876 { (exit 1); exit 1; }; }
1879 # test whether we have cygpath
1880 if test -z "$CYGPATH_W"; then
1881 if (cygpath --version) >/dev/null 2>/dev/null; then
1882 CYGPATH_W='cygpath -w'
1883 else
1884 CYGPATH_W=echo
1889 # Define the identity of the package.
1890 PACKAGE='libmudflap'
1891 VERSION='1.0'
1894 cat >>confdefs.h <<_ACEOF
1895 #define PACKAGE "$PACKAGE"
1896 _ACEOF
1899 cat >>confdefs.h <<_ACEOF
1900 #define VERSION "$VERSION"
1901 _ACEOF
1903 # Some tools Automake needs.
1905 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1908 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1911 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1914 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1917 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1919 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1921 # Installed binaries are usually stripped using `strip' when the user
1922 # run `make install-strip'. However `strip' might not be the right
1923 # tool to use in cross-compilation environments, therefore Automake
1924 # will honor the `STRIP' environment variable to overrule this program.
1925 if test "$cross_compiling" != no; then
1926 if test -n "$ac_tool_prefix"; then
1927 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1928 set dummy ${ac_tool_prefix}strip; ac_word=$2
1929 echo "$as_me:$LINENO: checking for $ac_word" >&5
1930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1931 if test "${ac_cv_prog_STRIP+set}" = set; then
1932 echo $ECHO_N "(cached) $ECHO_C" >&6
1933 else
1934 if test -n "$STRIP"; then
1935 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1936 else
1937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1938 for as_dir in $PATH
1940 IFS=$as_save_IFS
1941 test -z "$as_dir" && as_dir=.
1942 for ac_exec_ext in '' $ac_executable_extensions; do
1943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1944 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1946 break 2
1948 done
1949 done
1953 STRIP=$ac_cv_prog_STRIP
1954 if test -n "$STRIP"; then
1955 echo "$as_me:$LINENO: result: $STRIP" >&5
1956 echo "${ECHO_T}$STRIP" >&6
1957 else
1958 echo "$as_me:$LINENO: result: no" >&5
1959 echo "${ECHO_T}no" >&6
1963 if test -z "$ac_cv_prog_STRIP"; then
1964 ac_ct_STRIP=$STRIP
1965 # Extract the first word of "strip", so it can be a program name with args.
1966 set dummy strip; ac_word=$2
1967 echo "$as_me:$LINENO: checking for $ac_word" >&5
1968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1969 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1970 echo $ECHO_N "(cached) $ECHO_C" >&6
1971 else
1972 if test -n "$ac_ct_STRIP"; then
1973 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1974 else
1975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1976 for as_dir in $PATH
1978 IFS=$as_save_IFS
1979 test -z "$as_dir" && as_dir=.
1980 for ac_exec_ext in '' $ac_executable_extensions; do
1981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1982 ac_cv_prog_ac_ct_STRIP="strip"
1983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1984 break 2
1986 done
1987 done
1989 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1992 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1993 if test -n "$ac_ct_STRIP"; then
1994 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1995 echo "${ECHO_T}$ac_ct_STRIP" >&6
1996 else
1997 echo "$as_me:$LINENO: result: no" >&5
1998 echo "${ECHO_T}no" >&6
2001 STRIP=$ac_ct_STRIP
2002 else
2003 STRIP="$ac_cv_prog_STRIP"
2007 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2009 # We need awk for the "check" target. The system "awk" is bad on
2010 # some platforms.
2011 # Always define AMTAR for backward compatibility.
2013 AMTAR=${AMTAR-"${am_missing_run}tar"}
2015 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2022 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
2023 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
2024 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
2025 if test "${enable_version_specific_runtime_libs+set}" = set; then
2026 enableval="$enable_version_specific_runtime_libs"
2027 case "$enableval" in
2028 yes) version_specific_libs=yes ;;
2029 no) version_specific_libs=no ;;
2030 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
2031 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
2032 { (exit 1); exit 1; }; };;
2033 esac
2034 else
2035 version_specific_libs=no
2037 echo "$as_me:$LINENO: result: $version_specific_libs" >&5
2038 echo "${ECHO_T}$version_specific_libs" >&6
2040 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2041 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2042 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2043 if test "${enable_maintainer_mode+set}" = set; then
2044 enableval="$enable_maintainer_mode"
2045 USE_MAINTAINER_MODE=$enableval
2046 else
2047 USE_MAINTAINER_MODE=no
2049 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2050 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2053 if test $USE_MAINTAINER_MODE = yes; then
2054 MAINTAINER_MODE_TRUE=
2055 MAINTAINER_MODE_FALSE='#'
2056 else
2057 MAINTAINER_MODE_TRUE='#'
2058 MAINTAINER_MODE_FALSE=
2061 MAINT=$MAINTAINER_MODE_TRUE
2066 # Default to --enable-multilib
2067 # Check whether --enable-multilib or --disable-multilib was given.
2068 if test "${enable_multilib+set}" = set; then
2069 enableval="$enable_multilib"
2070 case "$enableval" in
2071 yes) multilib=yes ;;
2072 no) multilib=no ;;
2073 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
2074 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
2075 { (exit 1); exit 1; }; } ;;
2076 esac
2077 else
2078 multilib=yes
2081 # We may get other options which we leave undocumented:
2082 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2083 # See config-ml.in if you want the gory details.
2085 if test "$srcdir" = "."; then
2086 if test "$with_target_subdir" != "."; then
2087 multi_basedir="$srcdir/$with_multisrctop../.."
2088 else
2089 multi_basedir="$srcdir/$with_multisrctop.."
2091 else
2092 multi_basedir="$srcdir/.."
2096 # Even if the default multilib is not a cross compilation,
2097 # it may be that some of the other multilibs are.
2098 if test $cross_compiling = no && test $multilib = yes \
2099 && test "x${with_multisubdir}" != x ; then
2100 cross_compiling=maybe
2103 ac_config_commands="$ac_config_commands default-1"
2106 target_alias=${target_alias-$host_alias}
2109 ac_config_headers="$ac_config_headers config.h"
2112 ac_ext=c
2113 ac_cpp='$CPP $CPPFLAGS'
2114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2118 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2119 # We must force CC to /not/ be precious variables; otherwise
2120 # the wrong, non-multilib-adjusted value will be used in multilibs.
2121 # As a side effect, we have to subst CFLAGS ourselves.
2125 ac_ext=c
2126 ac_cpp='$CPP $CPPFLAGS'
2127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2130 if test -n "$ac_tool_prefix"; then
2131 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2132 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2133 echo "$as_me:$LINENO: checking for $ac_word" >&5
2134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2135 if test "${ac_cv_prog_CC+set}" = set; then
2136 echo $ECHO_N "(cached) $ECHO_C" >&6
2137 else
2138 if test -n "$CC"; then
2139 ac_cv_prog_CC="$CC" # Let the user override the test.
2140 else
2141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142 for as_dir in $PATH
2144 IFS=$as_save_IFS
2145 test -z "$as_dir" && as_dir=.
2146 for ac_exec_ext in '' $ac_executable_extensions; do
2147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2148 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2150 break 2
2152 done
2153 done
2157 CC=$ac_cv_prog_CC
2158 if test -n "$CC"; then
2159 echo "$as_me:$LINENO: result: $CC" >&5
2160 echo "${ECHO_T}$CC" >&6
2161 else
2162 echo "$as_me:$LINENO: result: no" >&5
2163 echo "${ECHO_T}no" >&6
2167 if test -z "$ac_cv_prog_CC"; then
2168 ac_ct_CC=$CC
2169 # Extract the first word of "gcc", so it can be a program name with args.
2170 set dummy gcc; ac_word=$2
2171 echo "$as_me:$LINENO: checking for $ac_word" >&5
2172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2173 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2174 echo $ECHO_N "(cached) $ECHO_C" >&6
2175 else
2176 if test -n "$ac_ct_CC"; then
2177 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2178 else
2179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2180 for as_dir in $PATH
2182 IFS=$as_save_IFS
2183 test -z "$as_dir" && as_dir=.
2184 for ac_exec_ext in '' $ac_executable_extensions; do
2185 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2186 ac_cv_prog_ac_ct_CC="gcc"
2187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2188 break 2
2190 done
2191 done
2195 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2196 if test -n "$ac_ct_CC"; then
2197 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2198 echo "${ECHO_T}$ac_ct_CC" >&6
2199 else
2200 echo "$as_me:$LINENO: result: no" >&5
2201 echo "${ECHO_T}no" >&6
2204 CC=$ac_ct_CC
2205 else
2206 CC="$ac_cv_prog_CC"
2209 if test -z "$CC"; then
2210 if test -n "$ac_tool_prefix"; then
2211 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2212 set dummy ${ac_tool_prefix}cc; ac_word=$2
2213 echo "$as_me:$LINENO: checking for $ac_word" >&5
2214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2215 if test "${ac_cv_prog_CC+set}" = set; then
2216 echo $ECHO_N "(cached) $ECHO_C" >&6
2217 else
2218 if test -n "$CC"; then
2219 ac_cv_prog_CC="$CC" # Let the user override the test.
2220 else
2221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2222 for as_dir in $PATH
2224 IFS=$as_save_IFS
2225 test -z "$as_dir" && as_dir=.
2226 for ac_exec_ext in '' $ac_executable_extensions; do
2227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2228 ac_cv_prog_CC="${ac_tool_prefix}cc"
2229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2230 break 2
2232 done
2233 done
2237 CC=$ac_cv_prog_CC
2238 if test -n "$CC"; then
2239 echo "$as_me:$LINENO: result: $CC" >&5
2240 echo "${ECHO_T}$CC" >&6
2241 else
2242 echo "$as_me:$LINENO: result: no" >&5
2243 echo "${ECHO_T}no" >&6
2247 if test -z "$ac_cv_prog_CC"; then
2248 ac_ct_CC=$CC
2249 # Extract the first word of "cc", so it can be a program name with args.
2250 set dummy cc; ac_word=$2
2251 echo "$as_me:$LINENO: checking for $ac_word" >&5
2252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2253 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2254 echo $ECHO_N "(cached) $ECHO_C" >&6
2255 else
2256 if test -n "$ac_ct_CC"; then
2257 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2258 else
2259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260 for as_dir in $PATH
2262 IFS=$as_save_IFS
2263 test -z "$as_dir" && as_dir=.
2264 for ac_exec_ext in '' $ac_executable_extensions; do
2265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2266 ac_cv_prog_ac_ct_CC="cc"
2267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2268 break 2
2270 done
2271 done
2275 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2276 if test -n "$ac_ct_CC"; then
2277 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2278 echo "${ECHO_T}$ac_ct_CC" >&6
2279 else
2280 echo "$as_me:$LINENO: result: no" >&5
2281 echo "${ECHO_T}no" >&6
2284 CC=$ac_ct_CC
2285 else
2286 CC="$ac_cv_prog_CC"
2290 if test -z "$CC"; then
2291 # Extract the first word of "cc", so it can be a program name with args.
2292 set dummy cc; ac_word=$2
2293 echo "$as_me:$LINENO: checking for $ac_word" >&5
2294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2295 if test "${ac_cv_prog_CC+set}" = set; then
2296 echo $ECHO_N "(cached) $ECHO_C" >&6
2297 else
2298 if test -n "$CC"; then
2299 ac_cv_prog_CC="$CC" # Let the user override the test.
2300 else
2301 ac_prog_rejected=no
2302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2303 for as_dir in $PATH
2305 IFS=$as_save_IFS
2306 test -z "$as_dir" && as_dir=.
2307 for ac_exec_ext in '' $ac_executable_extensions; do
2308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2309 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2310 ac_prog_rejected=yes
2311 continue
2313 ac_cv_prog_CC="cc"
2314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2315 break 2
2317 done
2318 done
2320 if test $ac_prog_rejected = yes; then
2321 # We found a bogon in the path, so make sure we never use it.
2322 set dummy $ac_cv_prog_CC
2323 shift
2324 if test $# != 0; then
2325 # We chose a different compiler from the bogus one.
2326 # However, it has the same basename, so the bogon will be chosen
2327 # first if we set CC to just the basename; use the full file name.
2328 shift
2329 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2334 CC=$ac_cv_prog_CC
2335 if test -n "$CC"; then
2336 echo "$as_me:$LINENO: result: $CC" >&5
2337 echo "${ECHO_T}$CC" >&6
2338 else
2339 echo "$as_me:$LINENO: result: no" >&5
2340 echo "${ECHO_T}no" >&6
2344 if test -z "$CC"; then
2345 if test -n "$ac_tool_prefix"; then
2346 for ac_prog in cl
2348 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2349 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2350 echo "$as_me:$LINENO: checking for $ac_word" >&5
2351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2352 if test "${ac_cv_prog_CC+set}" = set; then
2353 echo $ECHO_N "(cached) $ECHO_C" >&6
2354 else
2355 if test -n "$CC"; then
2356 ac_cv_prog_CC="$CC" # Let the user override the test.
2357 else
2358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359 for as_dir in $PATH
2361 IFS=$as_save_IFS
2362 test -z "$as_dir" && as_dir=.
2363 for ac_exec_ext in '' $ac_executable_extensions; do
2364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2365 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2367 break 2
2369 done
2370 done
2374 CC=$ac_cv_prog_CC
2375 if test -n "$CC"; then
2376 echo "$as_me:$LINENO: result: $CC" >&5
2377 echo "${ECHO_T}$CC" >&6
2378 else
2379 echo "$as_me:$LINENO: result: no" >&5
2380 echo "${ECHO_T}no" >&6
2383 test -n "$CC" && break
2384 done
2386 if test -z "$CC"; then
2387 ac_ct_CC=$CC
2388 for ac_prog in cl
2390 # Extract the first word of "$ac_prog", so it can be a program name with args.
2391 set dummy $ac_prog; ac_word=$2
2392 echo "$as_me:$LINENO: checking for $ac_word" >&5
2393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2394 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2395 echo $ECHO_N "(cached) $ECHO_C" >&6
2396 else
2397 if test -n "$ac_ct_CC"; then
2398 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2399 else
2400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2401 for as_dir in $PATH
2403 IFS=$as_save_IFS
2404 test -z "$as_dir" && as_dir=.
2405 for ac_exec_ext in '' $ac_executable_extensions; do
2406 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2407 ac_cv_prog_ac_ct_CC="$ac_prog"
2408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2409 break 2
2411 done
2412 done
2416 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2417 if test -n "$ac_ct_CC"; then
2418 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2419 echo "${ECHO_T}$ac_ct_CC" >&6
2420 else
2421 echo "$as_me:$LINENO: result: no" >&5
2422 echo "${ECHO_T}no" >&6
2425 test -n "$ac_ct_CC" && break
2426 done
2428 CC=$ac_ct_CC
2434 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2435 See \`config.log' for more details." >&5
2436 echo "$as_me: error: no acceptable C compiler found in \$PATH
2437 See \`config.log' for more details." >&2;}
2438 { (exit 1); exit 1; }; }
2440 # Provide some information about the compiler.
2441 echo "$as_me:$LINENO:" \
2442 "checking for C compiler version" >&5
2443 ac_compiler=`set X $ac_compile; echo $2`
2444 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2445 (eval $ac_compiler --version </dev/null >&5) 2>&5
2446 ac_status=$?
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); }
2449 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2450 (eval $ac_compiler -v </dev/null >&5) 2>&5
2451 ac_status=$?
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); }
2454 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2455 (eval $ac_compiler -V </dev/null >&5) 2>&5
2456 ac_status=$?
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }
2460 cat >conftest.$ac_ext <<_ACEOF
2461 /* confdefs.h. */
2462 _ACEOF
2463 cat confdefs.h >>conftest.$ac_ext
2464 cat >>conftest.$ac_ext <<_ACEOF
2465 /* end confdefs.h. */
2468 main ()
2472 return 0;
2474 _ACEOF
2475 ac_clean_files_save=$ac_clean_files
2476 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2477 # Try to create an executable without -o first, disregard a.out.
2478 # It will help us diagnose broken compilers, and finding out an intuition
2479 # of exeext.
2480 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2481 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2482 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2483 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2484 (eval $ac_link_default) 2>&5
2485 ac_status=$?
2486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487 (exit $ac_status); }; then
2488 # Find the output, starting from the most likely. This scheme is
2489 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2490 # resort.
2492 # Be careful to initialize this variable, since it used to be cached.
2493 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2494 ac_cv_exeext=
2495 # b.out is created by i960 compilers.
2496 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2498 test -f "$ac_file" || continue
2499 case $ac_file in
2500 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2502 conftest.$ac_ext )
2503 # This is the source file.
2505 [ab].out )
2506 # We found the default executable, but exeext='' is most
2507 # certainly right.
2508 break;;
2509 *.* )
2510 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2511 # FIXME: I believe we export ac_cv_exeext for Libtool,
2512 # but it would be cool to find out if it's true. Does anybody
2513 # maintain Libtool? --akim.
2514 export ac_cv_exeext
2515 break;;
2517 break;;
2518 esac
2519 done
2520 else
2521 echo "$as_me: failed program was:" >&5
2522 sed 's/^/| /' conftest.$ac_ext >&5
2524 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2525 See \`config.log' for more details." >&5
2526 echo "$as_me: error: C compiler cannot create executables
2527 See \`config.log' for more details." >&2;}
2528 { (exit 77); exit 77; }; }
2531 ac_exeext=$ac_cv_exeext
2532 echo "$as_me:$LINENO: result: $ac_file" >&5
2533 echo "${ECHO_T}$ac_file" >&6
2535 # Check the compiler produces executables we can run. If not, either
2536 # the compiler is broken, or we cross compile.
2537 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2538 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2539 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2540 # If not cross compiling, check that we can run a simple program.
2541 if test "$cross_compiling" != yes; then
2542 if { ac_try='./$ac_file'
2543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2544 (eval $ac_try) 2>&5
2545 ac_status=$?
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); }; }; then
2548 cross_compiling=no
2549 else
2550 if test "$cross_compiling" = maybe; then
2551 cross_compiling=yes
2552 else
2553 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2554 If you meant to cross compile, use \`--host'.
2555 See \`config.log' for more details." >&5
2556 echo "$as_me: error: cannot run C compiled programs.
2557 If you meant to cross compile, use \`--host'.
2558 See \`config.log' for more details." >&2;}
2559 { (exit 1); exit 1; }; }
2563 echo "$as_me:$LINENO: result: yes" >&5
2564 echo "${ECHO_T}yes" >&6
2566 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2567 ac_clean_files=$ac_clean_files_save
2568 # Check the compiler produces executables we can run. If not, either
2569 # the compiler is broken, or we cross compile.
2570 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2571 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2572 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2573 echo "${ECHO_T}$cross_compiling" >&6
2575 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2576 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2578 (eval $ac_link) 2>&5
2579 ac_status=$?
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); }; then
2582 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2583 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2584 # work properly (i.e., refer to `conftest.exe'), while it won't with
2585 # `rm'.
2586 for ac_file in conftest.exe conftest conftest.*; do
2587 test -f "$ac_file" || continue
2588 case $ac_file in
2589 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2590 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2591 export ac_cv_exeext
2592 break;;
2593 * ) break;;
2594 esac
2595 done
2596 else
2597 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2598 See \`config.log' for more details." >&5
2599 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2600 See \`config.log' for more details." >&2;}
2601 { (exit 1); exit 1; }; }
2604 rm -f conftest$ac_cv_exeext
2605 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2606 echo "${ECHO_T}$ac_cv_exeext" >&6
2608 rm -f conftest.$ac_ext
2609 EXEEXT=$ac_cv_exeext
2610 ac_exeext=$EXEEXT
2611 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2612 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2613 if test "${ac_cv_objext+set}" = set; then
2614 echo $ECHO_N "(cached) $ECHO_C" >&6
2615 else
2616 cat >conftest.$ac_ext <<_ACEOF
2617 /* confdefs.h. */
2618 _ACEOF
2619 cat confdefs.h >>conftest.$ac_ext
2620 cat >>conftest.$ac_ext <<_ACEOF
2621 /* end confdefs.h. */
2624 main ()
2628 return 0;
2630 _ACEOF
2631 rm -f conftest.o conftest.obj
2632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2633 (eval $ac_compile) 2>&5
2634 ac_status=$?
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); }; then
2637 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2638 case $ac_file in
2639 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2640 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2641 break;;
2642 esac
2643 done
2644 else
2645 echo "$as_me: failed program was:" >&5
2646 sed 's/^/| /' conftest.$ac_ext >&5
2648 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2649 See \`config.log' for more details." >&5
2650 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2651 See \`config.log' for more details." >&2;}
2652 { (exit 1); exit 1; }; }
2655 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2657 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2658 echo "${ECHO_T}$ac_cv_objext" >&6
2659 OBJEXT=$ac_cv_objext
2660 ac_objext=$OBJEXT
2661 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2662 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2663 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2664 echo $ECHO_N "(cached) $ECHO_C" >&6
2665 else
2666 cat >conftest.$ac_ext <<_ACEOF
2667 /* confdefs.h. */
2668 _ACEOF
2669 cat confdefs.h >>conftest.$ac_ext
2670 cat >>conftest.$ac_ext <<_ACEOF
2671 /* end confdefs.h. */
2674 main ()
2676 #ifndef __GNUC__
2677 choke me
2678 #endif
2681 return 0;
2683 _ACEOF
2684 rm -f conftest.$ac_objext
2685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2686 (eval $ac_compile) 2>conftest.er1
2687 ac_status=$?
2688 grep -v '^ *+' conftest.er1 >conftest.err
2689 rm -f conftest.er1
2690 cat conftest.err >&5
2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); } &&
2693 { ac_try='test -z "$ac_c_werror_flag"
2694 || test ! -s conftest.err'
2695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2696 (eval $ac_try) 2>&5
2697 ac_status=$?
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); }; } &&
2700 { ac_try='test -s conftest.$ac_objext'
2701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2702 (eval $ac_try) 2>&5
2703 ac_status=$?
2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); }; }; then
2706 ac_compiler_gnu=yes
2707 else
2708 echo "$as_me: failed program was:" >&5
2709 sed 's/^/| /' conftest.$ac_ext >&5
2711 ac_compiler_gnu=no
2713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2714 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2717 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2718 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2719 GCC=`test $ac_compiler_gnu = yes && echo yes`
2720 ac_test_CFLAGS=${CFLAGS+set}
2721 ac_save_CFLAGS=$CFLAGS
2722 CFLAGS="-g"
2723 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2724 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2725 if test "${ac_cv_prog_cc_g+set}" = set; then
2726 echo $ECHO_N "(cached) $ECHO_C" >&6
2727 else
2728 cat >conftest.$ac_ext <<_ACEOF
2729 /* confdefs.h. */
2730 _ACEOF
2731 cat confdefs.h >>conftest.$ac_ext
2732 cat >>conftest.$ac_ext <<_ACEOF
2733 /* end confdefs.h. */
2736 main ()
2740 return 0;
2742 _ACEOF
2743 rm -f conftest.$ac_objext
2744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2745 (eval $ac_compile) 2>conftest.er1
2746 ac_status=$?
2747 grep -v '^ *+' conftest.er1 >conftest.err
2748 rm -f conftest.er1
2749 cat conftest.err >&5
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); } &&
2752 { ac_try='test -z "$ac_c_werror_flag"
2753 || test ! -s conftest.err'
2754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2755 (eval $ac_try) 2>&5
2756 ac_status=$?
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); }; } &&
2759 { ac_try='test -s conftest.$ac_objext'
2760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2761 (eval $ac_try) 2>&5
2762 ac_status=$?
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); }; }; then
2765 ac_cv_prog_cc_g=yes
2766 else
2767 echo "$as_me: failed program was:" >&5
2768 sed 's/^/| /' conftest.$ac_ext >&5
2770 ac_cv_prog_cc_g=no
2772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2774 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2775 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2776 if test "$ac_test_CFLAGS" = set; then
2777 CFLAGS=$ac_save_CFLAGS
2778 elif test $ac_cv_prog_cc_g = yes; then
2779 if test "$GCC" = yes; then
2780 CFLAGS="-g -O2"
2781 else
2782 CFLAGS="-g"
2784 else
2785 if test "$GCC" = yes; then
2786 CFLAGS="-O2"
2787 else
2788 CFLAGS=
2791 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2792 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2793 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2794 echo $ECHO_N "(cached) $ECHO_C" >&6
2795 else
2796 ac_cv_prog_cc_stdc=no
2797 ac_save_CC=$CC
2798 cat >conftest.$ac_ext <<_ACEOF
2799 /* confdefs.h. */
2800 _ACEOF
2801 cat confdefs.h >>conftest.$ac_ext
2802 cat >>conftest.$ac_ext <<_ACEOF
2803 /* end confdefs.h. */
2804 #include <stdarg.h>
2805 #include <stdio.h>
2806 #include <sys/types.h>
2807 #include <sys/stat.h>
2808 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2809 struct buf { int x; };
2810 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2811 static char *e (p, i)
2812 char **p;
2813 int i;
2815 return p[i];
2817 static char *f (char * (*g) (char **, int), char **p, ...)
2819 char *s;
2820 va_list v;
2821 va_start (v,p);
2822 s = g (p, va_arg (v,int));
2823 va_end (v);
2824 return s;
2827 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2828 function prototypes and stuff, but not '\xHH' hex character constants.
2829 These don't provoke an error unfortunately, instead are silently treated
2830 as 'x'. The following induces an error, until -std1 is added to get
2831 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2832 array size at least. It's necessary to write '\x00'==0 to get something
2833 that's true only with -std1. */
2834 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2836 int test (int i, double x);
2837 struct s1 {int (*f) (int a);};
2838 struct s2 {int (*f) (double a);};
2839 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2840 int argc;
2841 char **argv;
2843 main ()
2845 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2847 return 0;
2849 _ACEOF
2850 # Don't try gcc -ansi; that turns off useful extensions and
2851 # breaks some systems' header files.
2852 # AIX -qlanglvl=ansi
2853 # Ultrix and OSF/1 -std1
2854 # HP-UX 10.20 and later -Ae
2855 # HP-UX older versions -Aa -D_HPUX_SOURCE
2856 # SVR4 -Xc -D__EXTENSIONS__
2857 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2859 CC="$ac_save_CC $ac_arg"
2860 rm -f conftest.$ac_objext
2861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2862 (eval $ac_compile) 2>conftest.er1
2863 ac_status=$?
2864 grep -v '^ *+' conftest.er1 >conftest.err
2865 rm -f conftest.er1
2866 cat conftest.err >&5
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); } &&
2869 { ac_try='test -z "$ac_c_werror_flag"
2870 || test ! -s conftest.err'
2871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872 (eval $ac_try) 2>&5
2873 ac_status=$?
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); }; } &&
2876 { ac_try='test -s conftest.$ac_objext'
2877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2878 (eval $ac_try) 2>&5
2879 ac_status=$?
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); }; }; then
2882 ac_cv_prog_cc_stdc=$ac_arg
2883 break
2884 else
2885 echo "$as_me: failed program was:" >&5
2886 sed 's/^/| /' conftest.$ac_ext >&5
2889 rm -f conftest.err conftest.$ac_objext
2890 done
2891 rm -f conftest.$ac_ext conftest.$ac_objext
2892 CC=$ac_save_CC
2896 case "x$ac_cv_prog_cc_stdc" in
2897 x|xno)
2898 echo "$as_me:$LINENO: result: none needed" >&5
2899 echo "${ECHO_T}none needed" >&6 ;;
2901 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2902 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2903 CC="$CC $ac_cv_prog_cc_stdc" ;;
2904 esac
2906 # Some people use a C++ compiler to compile C. Since we use `exit',
2907 # in C++ we need to declare it. In case someone uses the same compiler
2908 # for both compiling C and C++ we need to have the C++ compiler decide
2909 # the declaration of exit, since it's the most demanding environment.
2910 cat >conftest.$ac_ext <<_ACEOF
2911 #ifndef __cplusplus
2912 choke me
2913 #endif
2914 _ACEOF
2915 rm -f conftest.$ac_objext
2916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2917 (eval $ac_compile) 2>conftest.er1
2918 ac_status=$?
2919 grep -v '^ *+' conftest.er1 >conftest.err
2920 rm -f conftest.er1
2921 cat conftest.err >&5
2922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923 (exit $ac_status); } &&
2924 { ac_try='test -z "$ac_c_werror_flag"
2925 || test ! -s conftest.err'
2926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2927 (eval $ac_try) 2>&5
2928 ac_status=$?
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); }; } &&
2931 { ac_try='test -s conftest.$ac_objext'
2932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2933 (eval $ac_try) 2>&5
2934 ac_status=$?
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }; }; then
2937 for ac_declaration in \
2938 '' \
2939 'extern "C" void std::exit (int) throw (); using std::exit;' \
2940 'extern "C" void std::exit (int); using std::exit;' \
2941 'extern "C" void exit (int) throw ();' \
2942 'extern "C" void exit (int);' \
2943 'void exit (int);'
2945 cat >conftest.$ac_ext <<_ACEOF
2946 /* confdefs.h. */
2947 _ACEOF
2948 cat confdefs.h >>conftest.$ac_ext
2949 cat >>conftest.$ac_ext <<_ACEOF
2950 /* end confdefs.h. */
2951 $ac_declaration
2952 #include <stdlib.h>
2954 main ()
2956 exit (42);
2958 return 0;
2960 _ACEOF
2961 rm -f conftest.$ac_objext
2962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2963 (eval $ac_compile) 2>conftest.er1
2964 ac_status=$?
2965 grep -v '^ *+' conftest.er1 >conftest.err
2966 rm -f conftest.er1
2967 cat conftest.err >&5
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); } &&
2970 { ac_try='test -z "$ac_c_werror_flag"
2971 || test ! -s conftest.err'
2972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2973 (eval $ac_try) 2>&5
2974 ac_status=$?
2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); }; } &&
2977 { ac_try='test -s conftest.$ac_objext'
2978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2979 (eval $ac_try) 2>&5
2980 ac_status=$?
2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); }; }; then
2984 else
2985 echo "$as_me: failed program was:" >&5
2986 sed 's/^/| /' conftest.$ac_ext >&5
2988 continue
2990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2991 cat >conftest.$ac_ext <<_ACEOF
2992 /* confdefs.h. */
2993 _ACEOF
2994 cat confdefs.h >>conftest.$ac_ext
2995 cat >>conftest.$ac_ext <<_ACEOF
2996 /* end confdefs.h. */
2997 $ac_declaration
2999 main ()
3001 exit (42);
3003 return 0;
3005 _ACEOF
3006 rm -f conftest.$ac_objext
3007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3008 (eval $ac_compile) 2>conftest.er1
3009 ac_status=$?
3010 grep -v '^ *+' conftest.er1 >conftest.err
3011 rm -f conftest.er1
3012 cat conftest.err >&5
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); } &&
3015 { ac_try='test -z "$ac_c_werror_flag"
3016 || test ! -s conftest.err'
3017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3018 (eval $ac_try) 2>&5
3019 ac_status=$?
3020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021 (exit $ac_status); }; } &&
3022 { ac_try='test -s conftest.$ac_objext'
3023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3024 (eval $ac_try) 2>&5
3025 ac_status=$?
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); }; }; then
3028 break
3029 else
3030 echo "$as_me: failed program was:" >&5
3031 sed 's/^/| /' conftest.$ac_ext >&5
3034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3035 done
3036 rm -f conftest*
3037 if test -n "$ac_declaration"; then
3038 echo '#ifdef __cplusplus' >>confdefs.h
3039 echo $ac_declaration >>confdefs.h
3040 echo '#endif' >>confdefs.h
3043 else
3044 echo "$as_me: failed program was:" >&5
3045 sed 's/^/| /' conftest.$ac_ext >&5
3048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3049 ac_ext=c
3050 ac_cpp='$CPP $CPPFLAGS'
3051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3054 DEPDIR="${am__leading_dot}deps"
3056 ac_config_commands="$ac_config_commands depfiles"
3059 am_make=${MAKE-make}
3060 cat > confinc << 'END'
3061 am__doit:
3062 @echo done
3063 .PHONY: am__doit
3065 # If we don't find an include directive, just comment out the code.
3066 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3067 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3068 am__include="#"
3069 am__quote=
3070 _am_result=none
3071 # First try GNU make style include.
3072 echo "include confinc" > confmf
3073 # We grep out `Entering directory' and `Leaving directory'
3074 # messages which can occur if `w' ends up in MAKEFLAGS.
3075 # In particular we don't look at `^make:' because GNU make might
3076 # be invoked under some other name (usually "gmake"), in which
3077 # case it prints its new name instead of `make'.
3078 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3079 am__include=include
3080 am__quote=
3081 _am_result=GNU
3083 # Now try BSD make style include.
3084 if test "$am__include" = "#"; then
3085 echo '.include "confinc"' > confmf
3086 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3087 am__include=.include
3088 am__quote="\""
3089 _am_result=BSD
3094 echo "$as_me:$LINENO: result: $_am_result" >&5
3095 echo "${ECHO_T}$_am_result" >&6
3096 rm -f confinc confmf
3098 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3099 if test "${enable_dependency_tracking+set}" = set; then
3100 enableval="$enable_dependency_tracking"
3103 if test "x$enable_dependency_tracking" != xno; then
3104 am_depcomp="$ac_aux_dir/depcomp"
3105 AMDEPBACKSLASH='\'
3109 if test "x$enable_dependency_tracking" != xno; then
3110 AMDEP_TRUE=
3111 AMDEP_FALSE='#'
3112 else
3113 AMDEP_TRUE='#'
3114 AMDEP_FALSE=
3120 depcc="$CC" am_compiler_list=
3122 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3123 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3124 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3125 echo $ECHO_N "(cached) $ECHO_C" >&6
3126 else
3127 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3128 # We make a subdir and do the tests there. Otherwise we can end up
3129 # making bogus files that we don't know about and never remove. For
3130 # instance it was reported that on HP-UX the gcc test will end up
3131 # making a dummy file named `D' -- because `-MD' means `put the output
3132 # in D'.
3133 mkdir conftest.dir
3134 # Copy depcomp to subdir because otherwise we won't find it if we're
3135 # using a relative directory.
3136 cp "$am_depcomp" conftest.dir
3137 cd conftest.dir
3138 # We will build objects and dependencies in a subdirectory because
3139 # it helps to detect inapplicable dependency modes. For instance
3140 # both Tru64's cc and ICC support -MD to output dependencies as a
3141 # side effect of compilation, but ICC will put the dependencies in
3142 # the current directory while Tru64 will put them in the object
3143 # directory.
3144 mkdir sub
3146 am_cv_CC_dependencies_compiler_type=none
3147 if test "$am_compiler_list" = ""; then
3148 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3150 for depmode in $am_compiler_list; do
3151 # Setup a source with many dependencies, because some compilers
3152 # like to wrap large dependency lists on column 80 (with \), and
3153 # we should not choose a depcomp mode which is confused by this.
3155 # We need to recreate these files for each test, as the compiler may
3156 # overwrite some of them when testing with obscure command lines.
3157 # This happens at least with the AIX C compiler.
3158 : > sub/conftest.c
3159 for i in 1 2 3 4 5 6; do
3160 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3161 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3162 # Solaris 8's {/usr,}/bin/sh.
3163 touch sub/conftst$i.h
3164 done
3165 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3167 case $depmode in
3168 nosideeffect)
3169 # after this tag, mechanisms are not by side-effect, so they'll
3170 # only be used when explicitly requested
3171 if test "x$enable_dependency_tracking" = xyes; then
3172 continue
3173 else
3174 break
3177 none) break ;;
3178 esac
3179 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3180 # mode. It turns out that the SunPro C++ compiler does not properly
3181 # handle `-M -o', and we need to detect this.
3182 if depmode=$depmode \
3183 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3184 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3185 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3186 >/dev/null 2>conftest.err &&
3187 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3188 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3189 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3190 # icc doesn't choke on unknown options, it will just issue warnings
3191 # or remarks (even with -Werror). So we grep stderr for any message
3192 # that says an option was ignored or not supported.
3193 # When given -MP, icc 7.0 and 7.1 complain thusly:
3194 # icc: Command line warning: ignoring option '-M'; no argument required
3195 # The diagnosis changed in icc 8.0:
3196 # icc: Command line remark: option '-MP' not supported
3197 if (grep 'ignoring option' conftest.err ||
3198 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3199 am_cv_CC_dependencies_compiler_type=$depmode
3200 break
3203 done
3205 cd ..
3206 rm -rf conftest.dir
3207 else
3208 am_cv_CC_dependencies_compiler_type=none
3212 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3213 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3214 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3219 test "x$enable_dependency_tracking" != xno \
3220 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3221 am__fastdepCC_TRUE=
3222 am__fastdepCC_FALSE='#'
3223 else
3224 am__fastdepCC_TRUE='#'
3225 am__fastdepCC_FALSE=
3233 if test "x$GCC" != "xyes"; then
3234 { { echo "$as_me:$LINENO: error: libmudflap must be built with GCC" >&5
3235 echo "$as_me: error: libmudflap must be built with GCC" >&2;}
3236 { (exit 1); exit 1; }; }
3238 ac_ext=c
3239 ac_cpp='$CPP $CPPFLAGS'
3240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3243 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3244 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3245 # On Suns, sometimes $CPP names a directory.
3246 if test -n "$CPP" && test -d "$CPP"; then
3247 CPP=
3249 if test -z "$CPP"; then
3250 if test "${ac_cv_prog_CPP+set}" = set; then
3251 echo $ECHO_N "(cached) $ECHO_C" >&6
3252 else
3253 # Double quotes because CPP needs to be expanded
3254 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3256 ac_preproc_ok=false
3257 for ac_c_preproc_warn_flag in '' yes
3259 # Use a header file that comes with gcc, so configuring glibc
3260 # with a fresh cross-compiler works.
3261 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3262 # <limits.h> exists even on freestanding compilers.
3263 # On the NeXT, cc -E runs the code through the compiler's parser,
3264 # not just through cpp. "Syntax error" is here to catch this case.
3265 cat >conftest.$ac_ext <<_ACEOF
3266 /* confdefs.h. */
3267 _ACEOF
3268 cat confdefs.h >>conftest.$ac_ext
3269 cat >>conftest.$ac_ext <<_ACEOF
3270 /* end confdefs.h. */
3271 #ifdef __STDC__
3272 # include <limits.h>
3273 #else
3274 # include <assert.h>
3275 #endif
3276 Syntax error
3277 _ACEOF
3278 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3279 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3280 ac_status=$?
3281 grep -v '^ *+' conftest.er1 >conftest.err
3282 rm -f conftest.er1
3283 cat conftest.err >&5
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); } >/dev/null; then
3286 if test -s conftest.err; then
3287 ac_cpp_err=$ac_c_preproc_warn_flag
3288 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3289 else
3290 ac_cpp_err=
3292 else
3293 ac_cpp_err=yes
3295 if test -z "$ac_cpp_err"; then
3297 else
3298 echo "$as_me: failed program was:" >&5
3299 sed 's/^/| /' conftest.$ac_ext >&5
3301 # Broken: fails on valid input.
3302 continue
3304 rm -f conftest.err conftest.$ac_ext
3306 # OK, works on sane cases. Now check whether non-existent headers
3307 # can be detected and how.
3308 cat >conftest.$ac_ext <<_ACEOF
3309 /* confdefs.h. */
3310 _ACEOF
3311 cat confdefs.h >>conftest.$ac_ext
3312 cat >>conftest.$ac_ext <<_ACEOF
3313 /* end confdefs.h. */
3314 #include <ac_nonexistent.h>
3315 _ACEOF
3316 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3317 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3318 ac_status=$?
3319 grep -v '^ *+' conftest.er1 >conftest.err
3320 rm -f conftest.er1
3321 cat conftest.err >&5
3322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323 (exit $ac_status); } >/dev/null; then
3324 if test -s conftest.err; then
3325 ac_cpp_err=$ac_c_preproc_warn_flag
3326 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3327 else
3328 ac_cpp_err=
3330 else
3331 ac_cpp_err=yes
3333 if test -z "$ac_cpp_err"; then
3334 # Broken: success on invalid input.
3335 continue
3336 else
3337 echo "$as_me: failed program was:" >&5
3338 sed 's/^/| /' conftest.$ac_ext >&5
3340 # Passes both tests.
3341 ac_preproc_ok=:
3342 break
3344 rm -f conftest.err conftest.$ac_ext
3346 done
3347 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3348 rm -f conftest.err conftest.$ac_ext
3349 if $ac_preproc_ok; then
3350 break
3353 done
3354 ac_cv_prog_CPP=$CPP
3357 CPP=$ac_cv_prog_CPP
3358 else
3359 ac_cv_prog_CPP=$CPP
3361 echo "$as_me:$LINENO: result: $CPP" >&5
3362 echo "${ECHO_T}$CPP" >&6
3363 ac_preproc_ok=false
3364 for ac_c_preproc_warn_flag in '' yes
3366 # Use a header file that comes with gcc, so configuring glibc
3367 # with a fresh cross-compiler works.
3368 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3369 # <limits.h> exists even on freestanding compilers.
3370 # On the NeXT, cc -E runs the code through the compiler's parser,
3371 # not just through cpp. "Syntax error" is here to catch this case.
3372 cat >conftest.$ac_ext <<_ACEOF
3373 /* confdefs.h. */
3374 _ACEOF
3375 cat confdefs.h >>conftest.$ac_ext
3376 cat >>conftest.$ac_ext <<_ACEOF
3377 /* end confdefs.h. */
3378 #ifdef __STDC__
3379 # include <limits.h>
3380 #else
3381 # include <assert.h>
3382 #endif
3383 Syntax error
3384 _ACEOF
3385 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3386 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3387 ac_status=$?
3388 grep -v '^ *+' conftest.er1 >conftest.err
3389 rm -f conftest.er1
3390 cat conftest.err >&5
3391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); } >/dev/null; then
3393 if test -s conftest.err; then
3394 ac_cpp_err=$ac_c_preproc_warn_flag
3395 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3396 else
3397 ac_cpp_err=
3399 else
3400 ac_cpp_err=yes
3402 if test -z "$ac_cpp_err"; then
3404 else
3405 echo "$as_me: failed program was:" >&5
3406 sed 's/^/| /' conftest.$ac_ext >&5
3408 # Broken: fails on valid input.
3409 continue
3411 rm -f conftest.err conftest.$ac_ext
3413 # OK, works on sane cases. Now check whether non-existent headers
3414 # can be detected and how.
3415 cat >conftest.$ac_ext <<_ACEOF
3416 /* confdefs.h. */
3417 _ACEOF
3418 cat confdefs.h >>conftest.$ac_ext
3419 cat >>conftest.$ac_ext <<_ACEOF
3420 /* end confdefs.h. */
3421 #include <ac_nonexistent.h>
3422 _ACEOF
3423 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3424 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3425 ac_status=$?
3426 grep -v '^ *+' conftest.er1 >conftest.err
3427 rm -f conftest.er1
3428 cat conftest.err >&5
3429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430 (exit $ac_status); } >/dev/null; then
3431 if test -s conftest.err; then
3432 ac_cpp_err=$ac_c_preproc_warn_flag
3433 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3434 else
3435 ac_cpp_err=
3437 else
3438 ac_cpp_err=yes
3440 if test -z "$ac_cpp_err"; then
3441 # Broken: success on invalid input.
3442 continue
3443 else
3444 echo "$as_me: failed program was:" >&5
3445 sed 's/^/| /' conftest.$ac_ext >&5
3447 # Passes both tests.
3448 ac_preproc_ok=:
3449 break
3451 rm -f conftest.err conftest.$ac_ext
3453 done
3454 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3455 rm -f conftest.err conftest.$ac_ext
3456 if $ac_preproc_ok; then
3458 else
3459 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3460 See \`config.log' for more details." >&5
3461 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3462 See \`config.log' for more details." >&2;}
3463 { (exit 1); exit 1; }; }
3466 ac_ext=c
3467 ac_cpp='$CPP $CPPFLAGS'
3468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3473 # Some hosts don't have dlsym(RTLD_NEXT, "symbol") for use in
3474 # symbol interposition. We disable shared libraries for these.
3475 echo "$as_me:$LINENO: checking whether dlsym(RTLD_NEXT,...) is available" >&5
3476 echo $ECHO_N "checking whether dlsym(RTLD_NEXT,...) is available... $ECHO_C" >&6
3478 cat >conftest.$ac_ext <<_ACEOF
3479 /* confdefs.h. */
3480 _ACEOF
3481 cat confdefs.h >>conftest.$ac_ext
3482 cat >>conftest.$ac_ext <<_ACEOF
3483 /* end confdefs.h. */
3485 #define _GNU_SOURCE
3486 #include <dlfcn.h>
3489 main ()
3491 void *foo = dlsym (RTLD_NEXT, "exit");
3493 return 0;
3495 _ACEOF
3496 rm -f conftest.$ac_objext
3497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3498 (eval $ac_compile) 2>conftest.er1
3499 ac_status=$?
3500 grep -v '^ *+' conftest.er1 >conftest.err
3501 rm -f conftest.er1
3502 cat conftest.err >&5
3503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); } &&
3505 { ac_try='test -z "$ac_c_werror_flag"
3506 || test ! -s conftest.err'
3507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3508 (eval $ac_try) 2>&5
3509 ac_status=$?
3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); }; } &&
3512 { ac_try='test -s conftest.$ac_objext'
3513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3514 (eval $ac_try) 2>&5
3515 ac_status=$?
3516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517 (exit $ac_status); }; }; then
3518 echo "$as_me:$LINENO: result: yes" >&5
3519 echo "${ECHO_T}yes" >&6
3520 else
3521 echo "$as_me: failed program was:" >&5
3522 sed 's/^/| /' conftest.$ac_ext >&5
3524 echo "$as_me:$LINENO: result: no" >&5
3525 echo "${ECHO_T}no" >&6
3526 enable_shared=no
3528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3531 echo "$as_me:$LINENO: checking for egrep" >&5
3532 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3533 if test "${ac_cv_prog_egrep+set}" = set; then
3534 echo $ECHO_N "(cached) $ECHO_C" >&6
3535 else
3536 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3537 then ac_cv_prog_egrep='grep -E'
3538 else ac_cv_prog_egrep='egrep'
3541 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3542 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3543 EGREP=$ac_cv_prog_egrep
3546 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3547 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3548 if test "${ac_cv_header_stdc+set}" = set; then
3549 echo $ECHO_N "(cached) $ECHO_C" >&6
3550 else
3551 cat >conftest.$ac_ext <<_ACEOF
3552 /* confdefs.h. */
3553 _ACEOF
3554 cat confdefs.h >>conftest.$ac_ext
3555 cat >>conftest.$ac_ext <<_ACEOF
3556 /* end confdefs.h. */
3557 #include <stdlib.h>
3558 #include <stdarg.h>
3559 #include <string.h>
3560 #include <float.h>
3563 main ()
3567 return 0;
3569 _ACEOF
3570 rm -f conftest.$ac_objext
3571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3572 (eval $ac_compile) 2>conftest.er1
3573 ac_status=$?
3574 grep -v '^ *+' conftest.er1 >conftest.err
3575 rm -f conftest.er1
3576 cat conftest.err >&5
3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); } &&
3579 { ac_try='test -z "$ac_c_werror_flag"
3580 || test ! -s conftest.err'
3581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3582 (eval $ac_try) 2>&5
3583 ac_status=$?
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); }; } &&
3586 { ac_try='test -s conftest.$ac_objext'
3587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3588 (eval $ac_try) 2>&5
3589 ac_status=$?
3590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591 (exit $ac_status); }; }; then
3592 ac_cv_header_stdc=yes
3593 else
3594 echo "$as_me: failed program was:" >&5
3595 sed 's/^/| /' conftest.$ac_ext >&5
3597 ac_cv_header_stdc=no
3599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3601 if test $ac_cv_header_stdc = yes; then
3602 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3603 cat >conftest.$ac_ext <<_ACEOF
3604 /* confdefs.h. */
3605 _ACEOF
3606 cat confdefs.h >>conftest.$ac_ext
3607 cat >>conftest.$ac_ext <<_ACEOF
3608 /* end confdefs.h. */
3609 #include <string.h>
3611 _ACEOF
3612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3613 $EGREP "memchr" >/dev/null 2>&1; then
3615 else
3616 ac_cv_header_stdc=no
3618 rm -f conftest*
3622 if test $ac_cv_header_stdc = yes; then
3623 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3624 cat >conftest.$ac_ext <<_ACEOF
3625 /* confdefs.h. */
3626 _ACEOF
3627 cat confdefs.h >>conftest.$ac_ext
3628 cat >>conftest.$ac_ext <<_ACEOF
3629 /* end confdefs.h. */
3630 #include <stdlib.h>
3632 _ACEOF
3633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3634 $EGREP "free" >/dev/null 2>&1; then
3636 else
3637 ac_cv_header_stdc=no
3639 rm -f conftest*
3643 if test $ac_cv_header_stdc = yes; then
3644 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3645 if test "$cross_compiling" = yes; then
3647 else
3648 cat >conftest.$ac_ext <<_ACEOF
3649 /* confdefs.h. */
3650 _ACEOF
3651 cat confdefs.h >>conftest.$ac_ext
3652 cat >>conftest.$ac_ext <<_ACEOF
3653 /* end confdefs.h. */
3654 #include <ctype.h>
3655 #if ((' ' & 0x0FF) == 0x020)
3656 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3657 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3658 #else
3659 # define ISLOWER(c) \
3660 (('a' <= (c) && (c) <= 'i') \
3661 || ('j' <= (c) && (c) <= 'r') \
3662 || ('s' <= (c) && (c) <= 'z'))
3663 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3664 #endif
3666 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3668 main ()
3670 int i;
3671 for (i = 0; i < 256; i++)
3672 if (XOR (islower (i), ISLOWER (i))
3673 || toupper (i) != TOUPPER (i))
3674 exit(2);
3675 exit (0);
3677 _ACEOF
3678 rm -f conftest$ac_exeext
3679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3680 (eval $ac_link) 2>&5
3681 ac_status=$?
3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3685 (eval $ac_try) 2>&5
3686 ac_status=$?
3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688 (exit $ac_status); }; }; then
3690 else
3691 echo "$as_me: program exited with status $ac_status" >&5
3692 echo "$as_me: failed program was:" >&5
3693 sed 's/^/| /' conftest.$ac_ext >&5
3695 ( exit $ac_status )
3696 ac_cv_header_stdc=no
3698 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3702 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3703 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3704 if test $ac_cv_header_stdc = yes; then
3706 cat >>confdefs.h <<\_ACEOF
3707 #define STDC_HEADERS 1
3708 _ACEOF
3712 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3722 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3723 inttypes.h stdint.h unistd.h
3725 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3726 echo "$as_me:$LINENO: checking for $ac_header" >&5
3727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3729 echo $ECHO_N "(cached) $ECHO_C" >&6
3730 else
3731 cat >conftest.$ac_ext <<_ACEOF
3732 /* confdefs.h. */
3733 _ACEOF
3734 cat confdefs.h >>conftest.$ac_ext
3735 cat >>conftest.$ac_ext <<_ACEOF
3736 /* end confdefs.h. */
3737 $ac_includes_default
3739 #include <$ac_header>
3740 _ACEOF
3741 rm -f conftest.$ac_objext
3742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3743 (eval $ac_compile) 2>conftest.er1
3744 ac_status=$?
3745 grep -v '^ *+' conftest.er1 >conftest.err
3746 rm -f conftest.er1
3747 cat conftest.err >&5
3748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749 (exit $ac_status); } &&
3750 { ac_try='test -z "$ac_c_werror_flag"
3751 || test ! -s conftest.err'
3752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3753 (eval $ac_try) 2>&5
3754 ac_status=$?
3755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756 (exit $ac_status); }; } &&
3757 { ac_try='test -s conftest.$ac_objext'
3758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3759 (eval $ac_try) 2>&5
3760 ac_status=$?
3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); }; }; then
3763 eval "$as_ac_Header=yes"
3764 else
3765 echo "$as_me: failed program was:" >&5
3766 sed 's/^/| /' conftest.$ac_ext >&5
3768 eval "$as_ac_Header=no"
3770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3773 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3774 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3775 cat >>confdefs.h <<_ACEOF
3776 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3777 _ACEOF
3781 done
3803 for ac_header in stdint.h execinfo.h signal.h dlfcn.h dirent.h pwd.h grp.h \
3804 netdb.h sys/ipc.h sys/sem.h sys/shm.h sys/wait.h ctype.h mntent.h \
3805 sys/socket.h netinet/in.h arpa/inet.h dlfcn.h sys/mman.h
3807 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3808 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3809 echo "$as_me:$LINENO: checking for $ac_header" >&5
3810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3812 echo $ECHO_N "(cached) $ECHO_C" >&6
3814 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3815 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3816 else
3817 # Is the header compilable?
3818 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3819 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3820 cat >conftest.$ac_ext <<_ACEOF
3821 /* confdefs.h. */
3822 _ACEOF
3823 cat confdefs.h >>conftest.$ac_ext
3824 cat >>conftest.$ac_ext <<_ACEOF
3825 /* end confdefs.h. */
3826 $ac_includes_default
3827 #include <$ac_header>
3828 _ACEOF
3829 rm -f conftest.$ac_objext
3830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3831 (eval $ac_compile) 2>conftest.er1
3832 ac_status=$?
3833 grep -v '^ *+' conftest.er1 >conftest.err
3834 rm -f conftest.er1
3835 cat conftest.err >&5
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); } &&
3838 { ac_try='test -z "$ac_c_werror_flag"
3839 || test ! -s conftest.err'
3840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3841 (eval $ac_try) 2>&5
3842 ac_status=$?
3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); }; } &&
3845 { ac_try='test -s conftest.$ac_objext'
3846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3847 (eval $ac_try) 2>&5
3848 ac_status=$?
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); }; }; then
3851 ac_header_compiler=yes
3852 else
3853 echo "$as_me: failed program was:" >&5
3854 sed 's/^/| /' conftest.$ac_ext >&5
3856 ac_header_compiler=no
3858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3859 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3860 echo "${ECHO_T}$ac_header_compiler" >&6
3862 # Is the header present?
3863 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3864 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3865 cat >conftest.$ac_ext <<_ACEOF
3866 /* confdefs.h. */
3867 _ACEOF
3868 cat confdefs.h >>conftest.$ac_ext
3869 cat >>conftest.$ac_ext <<_ACEOF
3870 /* end confdefs.h. */
3871 #include <$ac_header>
3872 _ACEOF
3873 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3874 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3875 ac_status=$?
3876 grep -v '^ *+' conftest.er1 >conftest.err
3877 rm -f conftest.er1
3878 cat conftest.err >&5
3879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880 (exit $ac_status); } >/dev/null; then
3881 if test -s conftest.err; then
3882 ac_cpp_err=$ac_c_preproc_warn_flag
3883 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3884 else
3885 ac_cpp_err=
3887 else
3888 ac_cpp_err=yes
3890 if test -z "$ac_cpp_err"; then
3891 ac_header_preproc=yes
3892 else
3893 echo "$as_me: failed program was:" >&5
3894 sed 's/^/| /' conftest.$ac_ext >&5
3896 ac_header_preproc=no
3898 rm -f conftest.err conftest.$ac_ext
3899 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3900 echo "${ECHO_T}$ac_header_preproc" >&6
3902 # So? What about this header?
3903 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3904 yes:no: )
3905 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3906 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3908 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3909 ac_header_preproc=yes
3911 no:yes:* )
3912 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3913 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3914 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3915 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3916 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3917 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3918 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3919 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3921 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3922 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3923 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3925 cat <<\_ASBOX
3926 ## ------------------------------------- ##
3927 ## Report this to the libmudflap lists. ##
3928 ## ------------------------------------- ##
3929 _ASBOX
3931 sed "s/^/$as_me: WARNING: /" >&2
3933 esac
3934 echo "$as_me:$LINENO: checking for $ac_header" >&5
3935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3937 echo $ECHO_N "(cached) $ECHO_C" >&6
3938 else
3939 eval "$as_ac_Header=\$ac_header_preproc"
3941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3942 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3945 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3946 cat >>confdefs.h <<_ACEOF
3947 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3948 _ACEOF
3952 done
3959 for ac_func in backtrace backtrace_symbols gettimeofday signal
3961 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3962 echo "$as_me:$LINENO: checking for $ac_func" >&5
3963 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3964 if eval "test \"\${$as_ac_var+set}\" = set"; then
3965 echo $ECHO_N "(cached) $ECHO_C" >&6
3966 else
3967 cat >conftest.$ac_ext <<_ACEOF
3968 /* confdefs.h. */
3969 _ACEOF
3970 cat confdefs.h >>conftest.$ac_ext
3971 cat >>conftest.$ac_ext <<_ACEOF
3972 /* end confdefs.h. */
3973 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3975 #define $ac_func innocuous_$ac_func
3977 /* System header to define __stub macros and hopefully few prototypes,
3978 which can conflict with char $ac_func (); below.
3979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3980 <limits.h> exists even on freestanding compilers. */
3982 #ifdef __STDC__
3983 # include <limits.h>
3984 #else
3985 # include <assert.h>
3986 #endif
3988 #undef $ac_func
3990 /* Override any gcc2 internal prototype to avoid an error. */
3991 #ifdef __cplusplus
3992 extern "C"
3994 #endif
3995 /* We use char because int might match the return type of a gcc2
3996 builtin and then its argument prototype would still apply. */
3997 char $ac_func ();
3998 /* The GNU C library defines this for functions which it implements
3999 to always fail with ENOSYS. Some functions are actually named
4000 something starting with __ and the normal name is an alias. */
4001 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4002 choke me
4003 #else
4004 char (*f) () = $ac_func;
4005 #endif
4006 #ifdef __cplusplus
4008 #endif
4011 main ()
4013 return f != $ac_func;
4015 return 0;
4017 _ACEOF
4018 rm -f conftest.$ac_objext conftest$ac_exeext
4019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4020 (eval $ac_link) 2>conftest.er1
4021 ac_status=$?
4022 grep -v '^ *+' conftest.er1 >conftest.err
4023 rm -f conftest.er1
4024 cat conftest.err >&5
4025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026 (exit $ac_status); } &&
4027 { ac_try='test -z "$ac_c_werror_flag"
4028 || test ! -s conftest.err'
4029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4030 (eval $ac_try) 2>&5
4031 ac_status=$?
4032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033 (exit $ac_status); }; } &&
4034 { ac_try='test -s conftest$ac_exeext'
4035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4036 (eval $ac_try) 2>&5
4037 ac_status=$?
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); }; }; then
4040 eval "$as_ac_var=yes"
4041 else
4042 echo "$as_me: failed program was:" >&5
4043 sed 's/^/| /' conftest.$ac_ext >&5
4045 eval "$as_ac_var=no"
4047 rm -f conftest.err conftest.$ac_objext \
4048 conftest$ac_exeext conftest.$ac_ext
4050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4051 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4052 if test `eval echo '${'$as_ac_var'}'` = yes; then
4053 cat >>confdefs.h <<_ACEOF
4054 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4055 _ACEOF
4058 done
4065 for ac_func in fopen64 fseeko64 ftello64 stat64 freopen64
4067 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4068 echo "$as_me:$LINENO: checking for $ac_func" >&5
4069 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4070 if eval "test \"\${$as_ac_var+set}\" = set"; then
4071 echo $ECHO_N "(cached) $ECHO_C" >&6
4072 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4080 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4081 #define $ac_func innocuous_$ac_func
4083 /* System header to define __stub macros and hopefully few prototypes,
4084 which can conflict with char $ac_func (); below.
4085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4086 <limits.h> exists even on freestanding compilers. */
4088 #ifdef __STDC__
4089 # include <limits.h>
4090 #else
4091 # include <assert.h>
4092 #endif
4094 #undef $ac_func
4096 /* Override any gcc2 internal prototype to avoid an error. */
4097 #ifdef __cplusplus
4098 extern "C"
4100 #endif
4101 /* We use char because int might match the return type of a gcc2
4102 builtin and then its argument prototype would still apply. */
4103 char $ac_func ();
4104 /* The GNU C library defines this for functions which it implements
4105 to always fail with ENOSYS. Some functions are actually named
4106 something starting with __ and the normal name is an alias. */
4107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4108 choke me
4109 #else
4110 char (*f) () = $ac_func;
4111 #endif
4112 #ifdef __cplusplus
4114 #endif
4117 main ()
4119 return f != $ac_func;
4121 return 0;
4123 _ACEOF
4124 rm -f conftest.$ac_objext conftest$ac_exeext
4125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4126 (eval $ac_link) 2>conftest.er1
4127 ac_status=$?
4128 grep -v '^ *+' conftest.er1 >conftest.err
4129 rm -f conftest.er1
4130 cat conftest.err >&5
4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132 (exit $ac_status); } &&
4133 { ac_try='test -z "$ac_c_werror_flag"
4134 || test ! -s conftest.err'
4135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4136 (eval $ac_try) 2>&5
4137 ac_status=$?
4138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139 (exit $ac_status); }; } &&
4140 { ac_try='test -s conftest$ac_exeext'
4141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4142 (eval $ac_try) 2>&5
4143 ac_status=$?
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); }; }; then
4146 eval "$as_ac_var=yes"
4147 else
4148 echo "$as_me: failed program was:" >&5
4149 sed 's/^/| /' conftest.$ac_ext >&5
4151 eval "$as_ac_var=no"
4153 rm -f conftest.err conftest.$ac_objext \
4154 conftest$ac_exeext conftest.$ac_ext
4156 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4157 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4158 if test `eval echo '${'$as_ac_var'}'` = yes; then
4159 cat >>confdefs.h <<_ACEOF
4160 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4161 _ACEOF
4164 done
4170 for ac_func in setbuf setbuffer setlinebuf setvbuf
4172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4173 echo "$as_me:$LINENO: checking for $ac_func" >&5
4174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4175 if eval "test \"\${$as_ac_var+set}\" = set"; then
4176 echo $ECHO_N "(cached) $ECHO_C" >&6
4177 else
4178 cat >conftest.$ac_ext <<_ACEOF
4179 /* confdefs.h. */
4180 _ACEOF
4181 cat confdefs.h >>conftest.$ac_ext
4182 cat >>conftest.$ac_ext <<_ACEOF
4183 /* end confdefs.h. */
4184 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4186 #define $ac_func innocuous_$ac_func
4188 /* System header to define __stub macros and hopefully few prototypes,
4189 which can conflict with char $ac_func (); below.
4190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4191 <limits.h> exists even on freestanding compilers. */
4193 #ifdef __STDC__
4194 # include <limits.h>
4195 #else
4196 # include <assert.h>
4197 #endif
4199 #undef $ac_func
4201 /* Override any gcc2 internal prototype to avoid an error. */
4202 #ifdef __cplusplus
4203 extern "C"
4205 #endif
4206 /* We use char because int might match the return type of a gcc2
4207 builtin and then its argument prototype would still apply. */
4208 char $ac_func ();
4209 /* The GNU C library defines this for functions which it implements
4210 to always fail with ENOSYS. Some functions are actually named
4211 something starting with __ and the normal name is an alias. */
4212 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4213 choke me
4214 #else
4215 char (*f) () = $ac_func;
4216 #endif
4217 #ifdef __cplusplus
4219 #endif
4222 main ()
4224 return f != $ac_func;
4226 return 0;
4228 _ACEOF
4229 rm -f conftest.$ac_objext conftest$ac_exeext
4230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4231 (eval $ac_link) 2>conftest.er1
4232 ac_status=$?
4233 grep -v '^ *+' conftest.er1 >conftest.err
4234 rm -f conftest.er1
4235 cat conftest.err >&5
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); } &&
4238 { ac_try='test -z "$ac_c_werror_flag"
4239 || test ! -s conftest.err'
4240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4241 (eval $ac_try) 2>&5
4242 ac_status=$?
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); }; } &&
4245 { ac_try='test -s conftest$ac_exeext'
4246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4247 (eval $ac_try) 2>&5
4248 ac_status=$?
4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250 (exit $ac_status); }; }; then
4251 eval "$as_ac_var=yes"
4252 else
4253 echo "$as_me: failed program was:" >&5
4254 sed 's/^/| /' conftest.$ac_ext >&5
4256 eval "$as_ac_var=no"
4258 rm -f conftest.err conftest.$ac_objext \
4259 conftest$ac_exeext conftest.$ac_ext
4261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4262 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4263 if test `eval echo '${'$as_ac_var'}'` = yes; then
4264 cat >>confdefs.h <<_ACEOF
4265 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4266 _ACEOF
4269 done
4276 for ac_func in strnlen memrchr strncpy memmem sethostname
4278 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4279 echo "$as_me:$LINENO: checking for $ac_func" >&5
4280 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4281 if eval "test \"\${$as_ac_var+set}\" = set"; then
4282 echo $ECHO_N "(cached) $ECHO_C" >&6
4283 else
4284 cat >conftest.$ac_ext <<_ACEOF
4285 /* confdefs.h. */
4286 _ACEOF
4287 cat confdefs.h >>conftest.$ac_ext
4288 cat >>conftest.$ac_ext <<_ACEOF
4289 /* end confdefs.h. */
4290 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4291 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4292 #define $ac_func innocuous_$ac_func
4294 /* System header to define __stub macros and hopefully few prototypes,
4295 which can conflict with char $ac_func (); below.
4296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4297 <limits.h> exists even on freestanding compilers. */
4299 #ifdef __STDC__
4300 # include <limits.h>
4301 #else
4302 # include <assert.h>
4303 #endif
4305 #undef $ac_func
4307 /* Override any gcc2 internal prototype to avoid an error. */
4308 #ifdef __cplusplus
4309 extern "C"
4311 #endif
4312 /* We use char because int might match the return type of a gcc2
4313 builtin and then its argument prototype would still apply. */
4314 char $ac_func ();
4315 /* The GNU C library defines this for functions which it implements
4316 to always fail with ENOSYS. Some functions are actually named
4317 something starting with __ and the normal name is an alias. */
4318 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4319 choke me
4320 #else
4321 char (*f) () = $ac_func;
4322 #endif
4323 #ifdef __cplusplus
4325 #endif
4328 main ()
4330 return f != $ac_func;
4332 return 0;
4334 _ACEOF
4335 rm -f conftest.$ac_objext conftest$ac_exeext
4336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4337 (eval $ac_link) 2>conftest.er1
4338 ac_status=$?
4339 grep -v '^ *+' conftest.er1 >conftest.err
4340 rm -f conftest.er1
4341 cat conftest.err >&5
4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); } &&
4344 { ac_try='test -z "$ac_c_werror_flag"
4345 || test ! -s conftest.err'
4346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4347 (eval $ac_try) 2>&5
4348 ac_status=$?
4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); }; } &&
4351 { ac_try='test -s conftest$ac_exeext'
4352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4353 (eval $ac_try) 2>&5
4354 ac_status=$?
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); }; }; then
4357 eval "$as_ac_var=yes"
4358 else
4359 echo "$as_me: failed program was:" >&5
4360 sed 's/^/| /' conftest.$ac_ext >&5
4362 eval "$as_ac_var=no"
4364 rm -f conftest.err conftest.$ac_objext \
4365 conftest$ac_exeext conftest.$ac_ext
4367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4368 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4369 if test `eval echo '${'$as_ac_var'}'` = yes; then
4370 cat >>confdefs.h <<_ACEOF
4371 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4372 _ACEOF
4375 done
4380 for ac_func in __ctype_b_loc __ctype_tolower_loc __ctype_toupper_loc
4382 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4383 echo "$as_me:$LINENO: checking for $ac_func" >&5
4384 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4385 if eval "test \"\${$as_ac_var+set}\" = set"; then
4386 echo $ECHO_N "(cached) $ECHO_C" >&6
4387 else
4388 cat >conftest.$ac_ext <<_ACEOF
4389 /* confdefs.h. */
4390 _ACEOF
4391 cat confdefs.h >>conftest.$ac_ext
4392 cat >>conftest.$ac_ext <<_ACEOF
4393 /* end confdefs.h. */
4394 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4395 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4396 #define $ac_func innocuous_$ac_func
4398 /* System header to define __stub macros and hopefully few prototypes,
4399 which can conflict with char $ac_func (); below.
4400 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4401 <limits.h> exists even on freestanding compilers. */
4403 #ifdef __STDC__
4404 # include <limits.h>
4405 #else
4406 # include <assert.h>
4407 #endif
4409 #undef $ac_func
4411 /* Override any gcc2 internal prototype to avoid an error. */
4412 #ifdef __cplusplus
4413 extern "C"
4415 #endif
4416 /* We use char because int might match the return type of a gcc2
4417 builtin and then its argument prototype would still apply. */
4418 char $ac_func ();
4419 /* The GNU C library defines this for functions which it implements
4420 to always fail with ENOSYS. Some functions are actually named
4421 something starting with __ and the normal name is an alias. */
4422 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4423 choke me
4424 #else
4425 char (*f) () = $ac_func;
4426 #endif
4427 #ifdef __cplusplus
4429 #endif
4432 main ()
4434 return f != $ac_func;
4436 return 0;
4438 _ACEOF
4439 rm -f conftest.$ac_objext conftest$ac_exeext
4440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4441 (eval $ac_link) 2>conftest.er1
4442 ac_status=$?
4443 grep -v '^ *+' conftest.er1 >conftest.err
4444 rm -f conftest.er1
4445 cat conftest.err >&5
4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); } &&
4448 { ac_try='test -z "$ac_c_werror_flag"
4449 || test ! -s conftest.err'
4450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4451 (eval $ac_try) 2>&5
4452 ac_status=$?
4453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454 (exit $ac_status); }; } &&
4455 { ac_try='test -s conftest$ac_exeext'
4456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4457 (eval $ac_try) 2>&5
4458 ac_status=$?
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); }; }; then
4461 eval "$as_ac_var=yes"
4462 else
4463 echo "$as_me: failed program was:" >&5
4464 sed 's/^/| /' conftest.$ac_ext >&5
4466 eval "$as_ac_var=no"
4468 rm -f conftest.err conftest.$ac_objext \
4469 conftest$ac_exeext conftest.$ac_ext
4471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4472 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4473 if test `eval echo '${'$as_ac_var'}'` = yes; then
4474 cat >>confdefs.h <<_ACEOF
4475 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4476 _ACEOF
4479 done
4489 for ac_func in getlogin cuserid getpwnam getpwuid getpwent getgrnam getgrgid getgrent
4491 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4492 echo "$as_me:$LINENO: checking for $ac_func" >&5
4493 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4494 if eval "test \"\${$as_ac_var+set}\" = set"; then
4495 echo $ECHO_N "(cached) $ECHO_C" >&6
4496 else
4497 cat >conftest.$ac_ext <<_ACEOF
4498 /* confdefs.h. */
4499 _ACEOF
4500 cat confdefs.h >>conftest.$ac_ext
4501 cat >>conftest.$ac_ext <<_ACEOF
4502 /* end confdefs.h. */
4503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4505 #define $ac_func innocuous_$ac_func
4507 /* System header to define __stub macros and hopefully few prototypes,
4508 which can conflict with char $ac_func (); below.
4509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4510 <limits.h> exists even on freestanding compilers. */
4512 #ifdef __STDC__
4513 # include <limits.h>
4514 #else
4515 # include <assert.h>
4516 #endif
4518 #undef $ac_func
4520 /* Override any gcc2 internal prototype to avoid an error. */
4521 #ifdef __cplusplus
4522 extern "C"
4524 #endif
4525 /* We use char because int might match the return type of a gcc2
4526 builtin and then its argument prototype would still apply. */
4527 char $ac_func ();
4528 /* The GNU C library defines this for functions which it implements
4529 to always fail with ENOSYS. Some functions are actually named
4530 something starting with __ and the normal name is an alias. */
4531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4532 choke me
4533 #else
4534 char (*f) () = $ac_func;
4535 #endif
4536 #ifdef __cplusplus
4538 #endif
4541 main ()
4543 return f != $ac_func;
4545 return 0;
4547 _ACEOF
4548 rm -f conftest.$ac_objext conftest$ac_exeext
4549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4550 (eval $ac_link) 2>conftest.er1
4551 ac_status=$?
4552 grep -v '^ *+' conftest.er1 >conftest.err
4553 rm -f conftest.er1
4554 cat conftest.err >&5
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); } &&
4557 { ac_try='test -z "$ac_c_werror_flag"
4558 || test ! -s conftest.err'
4559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4560 (eval $ac_try) 2>&5
4561 ac_status=$?
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); }; } &&
4564 { ac_try='test -s conftest$ac_exeext'
4565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4566 (eval $ac_try) 2>&5
4567 ac_status=$?
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); }; }; then
4570 eval "$as_ac_var=yes"
4571 else
4572 echo "$as_me: failed program was:" >&5
4573 sed 's/^/| /' conftest.$ac_ext >&5
4575 eval "$as_ac_var=no"
4577 rm -f conftest.err conftest.$ac_objext \
4578 conftest$ac_exeext conftest.$ac_ext
4580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4581 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4582 if test `eval echo '${'$as_ac_var'}'` = yes; then
4583 cat >>confdefs.h <<_ACEOF
4584 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4585 _ACEOF
4588 done
4595 for ac_func in getlogin_r getpwnam_r getpwuid_r getgrnam_r getgrgid_r
4597 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4598 echo "$as_me:$LINENO: checking for $ac_func" >&5
4599 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4600 if eval "test \"\${$as_ac_var+set}\" = set"; then
4601 echo $ECHO_N "(cached) $ECHO_C" >&6
4602 else
4603 cat >conftest.$ac_ext <<_ACEOF
4604 /* confdefs.h. */
4605 _ACEOF
4606 cat confdefs.h >>conftest.$ac_ext
4607 cat >>conftest.$ac_ext <<_ACEOF
4608 /* end confdefs.h. */
4609 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4610 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4611 #define $ac_func innocuous_$ac_func
4613 /* System header to define __stub macros and hopefully few prototypes,
4614 which can conflict with char $ac_func (); below.
4615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4616 <limits.h> exists even on freestanding compilers. */
4618 #ifdef __STDC__
4619 # include <limits.h>
4620 #else
4621 # include <assert.h>
4622 #endif
4624 #undef $ac_func
4626 /* Override any gcc2 internal prototype to avoid an error. */
4627 #ifdef __cplusplus
4628 extern "C"
4630 #endif
4631 /* We use char because int might match the return type of a gcc2
4632 builtin and then its argument prototype would still apply. */
4633 char $ac_func ();
4634 /* The GNU C library defines this for functions which it implements
4635 to always fail with ENOSYS. Some functions are actually named
4636 something starting with __ and the normal name is an alias. */
4637 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4638 choke me
4639 #else
4640 char (*f) () = $ac_func;
4641 #endif
4642 #ifdef __cplusplus
4644 #endif
4647 main ()
4649 return f != $ac_func;
4651 return 0;
4653 _ACEOF
4654 rm -f conftest.$ac_objext conftest$ac_exeext
4655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4656 (eval $ac_link) 2>conftest.er1
4657 ac_status=$?
4658 grep -v '^ *+' conftest.er1 >conftest.err
4659 rm -f conftest.er1
4660 cat conftest.err >&5
4661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662 (exit $ac_status); } &&
4663 { ac_try='test -z "$ac_c_werror_flag"
4664 || test ! -s conftest.err'
4665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4666 (eval $ac_try) 2>&5
4667 ac_status=$?
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); }; } &&
4670 { ac_try='test -s conftest$ac_exeext'
4671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4672 (eval $ac_try) 2>&5
4673 ac_status=$?
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); }; }; then
4676 eval "$as_ac_var=yes"
4677 else
4678 echo "$as_me: failed program was:" >&5
4679 sed 's/^/| /' conftest.$ac_ext >&5
4681 eval "$as_ac_var=no"
4683 rm -f conftest.err conftest.$ac_objext \
4684 conftest$ac_exeext conftest.$ac_ext
4686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4687 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4688 if test `eval echo '${'$as_ac_var'}'` = yes; then
4689 cat >>confdefs.h <<_ACEOF
4690 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4691 _ACEOF
4694 done
4701 for ac_func in getservent getservbyname getservbyport getaddrinfo gai_strerror
4703 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4704 echo "$as_me:$LINENO: checking for $ac_func" >&5
4705 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4706 if eval "test \"\${$as_ac_var+set}\" = set"; then
4707 echo $ECHO_N "(cached) $ECHO_C" >&6
4708 else
4709 cat >conftest.$ac_ext <<_ACEOF
4710 /* confdefs.h. */
4711 _ACEOF
4712 cat confdefs.h >>conftest.$ac_ext
4713 cat >>conftest.$ac_ext <<_ACEOF
4714 /* end confdefs.h. */
4715 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4717 #define $ac_func innocuous_$ac_func
4719 /* System header to define __stub macros and hopefully few prototypes,
4720 which can conflict with char $ac_func (); below.
4721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4722 <limits.h> exists even on freestanding compilers. */
4724 #ifdef __STDC__
4725 # include <limits.h>
4726 #else
4727 # include <assert.h>
4728 #endif
4730 #undef $ac_func
4732 /* Override any gcc2 internal prototype to avoid an error. */
4733 #ifdef __cplusplus
4734 extern "C"
4736 #endif
4737 /* We use char because int might match the return type of a gcc2
4738 builtin and then its argument prototype would still apply. */
4739 char $ac_func ();
4740 /* The GNU C library defines this for functions which it implements
4741 to always fail with ENOSYS. Some functions are actually named
4742 something starting with __ and the normal name is an alias. */
4743 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4744 choke me
4745 #else
4746 char (*f) () = $ac_func;
4747 #endif
4748 #ifdef __cplusplus
4750 #endif
4753 main ()
4755 return f != $ac_func;
4757 return 0;
4759 _ACEOF
4760 rm -f conftest.$ac_objext conftest$ac_exeext
4761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4762 (eval $ac_link) 2>conftest.er1
4763 ac_status=$?
4764 grep -v '^ *+' conftest.er1 >conftest.err
4765 rm -f conftest.er1
4766 cat conftest.err >&5
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); } &&
4769 { ac_try='test -z "$ac_c_werror_flag"
4770 || test ! -s conftest.err'
4771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4772 (eval $ac_try) 2>&5
4773 ac_status=$?
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); }; } &&
4776 { ac_try='test -s conftest$ac_exeext'
4777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4778 (eval $ac_try) 2>&5
4779 ac_status=$?
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); }; }; then
4782 eval "$as_ac_var=yes"
4783 else
4784 echo "$as_me: failed program was:" >&5
4785 sed 's/^/| /' conftest.$ac_ext >&5
4787 eval "$as_ac_var=no"
4789 rm -f conftest.err conftest.$ac_objext \
4790 conftest$ac_exeext conftest.$ac_ext
4792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4793 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4794 if test `eval echo '${'$as_ac_var'}'` = yes; then
4795 cat >>confdefs.h <<_ACEOF
4796 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4797 _ACEOF
4800 done
4805 for ac_func in getprotoent getprotobyname getprotobynumber
4807 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4808 echo "$as_me:$LINENO: checking for $ac_func" >&5
4809 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4810 if eval "test \"\${$as_ac_var+set}\" = set"; then
4811 echo $ECHO_N "(cached) $ECHO_C" >&6
4812 else
4813 cat >conftest.$ac_ext <<_ACEOF
4814 /* confdefs.h. */
4815 _ACEOF
4816 cat confdefs.h >>conftest.$ac_ext
4817 cat >>conftest.$ac_ext <<_ACEOF
4818 /* end confdefs.h. */
4819 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4820 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4821 #define $ac_func innocuous_$ac_func
4823 /* System header to define __stub macros and hopefully few prototypes,
4824 which can conflict with char $ac_func (); below.
4825 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4826 <limits.h> exists even on freestanding compilers. */
4828 #ifdef __STDC__
4829 # include <limits.h>
4830 #else
4831 # include <assert.h>
4832 #endif
4834 #undef $ac_func
4836 /* Override any gcc2 internal prototype to avoid an error. */
4837 #ifdef __cplusplus
4838 extern "C"
4840 #endif
4841 /* We use char because int might match the return type of a gcc2
4842 builtin and then its argument prototype would still apply. */
4843 char $ac_func ();
4844 /* The GNU C library defines this for functions which it implements
4845 to always fail with ENOSYS. Some functions are actually named
4846 something starting with __ and the normal name is an alias. */
4847 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4848 choke me
4849 #else
4850 char (*f) () = $ac_func;
4851 #endif
4852 #ifdef __cplusplus
4854 #endif
4857 main ()
4859 return f != $ac_func;
4861 return 0;
4863 _ACEOF
4864 rm -f conftest.$ac_objext conftest$ac_exeext
4865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4866 (eval $ac_link) 2>conftest.er1
4867 ac_status=$?
4868 grep -v '^ *+' conftest.er1 >conftest.err
4869 rm -f conftest.er1
4870 cat conftest.err >&5
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); } &&
4873 { ac_try='test -z "$ac_c_werror_flag"
4874 || test ! -s conftest.err'
4875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4876 (eval $ac_try) 2>&5
4877 ac_status=$?
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); }; } &&
4880 { ac_try='test -s conftest$ac_exeext'
4881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4882 (eval $ac_try) 2>&5
4883 ac_status=$?
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); }; }; then
4886 eval "$as_ac_var=yes"
4887 else
4888 echo "$as_me: failed program was:" >&5
4889 sed 's/^/| /' conftest.$ac_ext >&5
4891 eval "$as_ac_var=no"
4893 rm -f conftest.err conftest.$ac_objext \
4894 conftest$ac_exeext conftest.$ac_ext
4896 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4897 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4898 if test `eval echo '${'$as_ac_var'}'` = yes; then
4899 cat >>confdefs.h <<_ACEOF
4900 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4901 _ACEOF
4904 done
4909 for ac_func in getmntent setmntent addmntent
4911 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4912 echo "$as_me:$LINENO: checking for $ac_func" >&5
4913 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4914 if eval "test \"\${$as_ac_var+set}\" = set"; then
4915 echo $ECHO_N "(cached) $ECHO_C" >&6
4916 else
4917 cat >conftest.$ac_ext <<_ACEOF
4918 /* confdefs.h. */
4919 _ACEOF
4920 cat confdefs.h >>conftest.$ac_ext
4921 cat >>conftest.$ac_ext <<_ACEOF
4922 /* end confdefs.h. */
4923 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4924 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4925 #define $ac_func innocuous_$ac_func
4927 /* System header to define __stub macros and hopefully few prototypes,
4928 which can conflict with char $ac_func (); below.
4929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4930 <limits.h> exists even on freestanding compilers. */
4932 #ifdef __STDC__
4933 # include <limits.h>
4934 #else
4935 # include <assert.h>
4936 #endif
4938 #undef $ac_func
4940 /* Override any gcc2 internal prototype to avoid an error. */
4941 #ifdef __cplusplus
4942 extern "C"
4944 #endif
4945 /* We use char because int might match the return type of a gcc2
4946 builtin and then its argument prototype would still apply. */
4947 char $ac_func ();
4948 /* The GNU C library defines this for functions which it implements
4949 to always fail with ENOSYS. Some functions are actually named
4950 something starting with __ and the normal name is an alias. */
4951 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4952 choke me
4953 #else
4954 char (*f) () = $ac_func;
4955 #endif
4956 #ifdef __cplusplus
4958 #endif
4961 main ()
4963 return f != $ac_func;
4965 return 0;
4967 _ACEOF
4968 rm -f conftest.$ac_objext conftest$ac_exeext
4969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4970 (eval $ac_link) 2>conftest.er1
4971 ac_status=$?
4972 grep -v '^ *+' conftest.er1 >conftest.err
4973 rm -f conftest.er1
4974 cat conftest.err >&5
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); } &&
4977 { ac_try='test -z "$ac_c_werror_flag"
4978 || test ! -s conftest.err'
4979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4980 (eval $ac_try) 2>&5
4981 ac_status=$?
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); }; } &&
4984 { ac_try='test -s conftest$ac_exeext'
4985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4986 (eval $ac_try) 2>&5
4987 ac_status=$?
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); }; }; then
4990 eval "$as_ac_var=yes"
4991 else
4992 echo "$as_me: failed program was:" >&5
4993 sed 's/^/| /' conftest.$ac_ext >&5
4995 eval "$as_ac_var=no"
4997 rm -f conftest.err conftest.$ac_objext \
4998 conftest$ac_exeext conftest.$ac_ext
5000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5001 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5002 if test `eval echo '${'$as_ac_var'}'` = yes; then
5003 cat >>confdefs.h <<_ACEOF
5004 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5005 _ACEOF
5008 done
5013 for ac_func in inet_ntoa mmap munmap
5015 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5016 echo "$as_me:$LINENO: checking for $ac_func" >&5
5017 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5018 if eval "test \"\${$as_ac_var+set}\" = set"; then
5019 echo $ECHO_N "(cached) $ECHO_C" >&6
5020 else
5021 cat >conftest.$ac_ext <<_ACEOF
5022 /* confdefs.h. */
5023 _ACEOF
5024 cat confdefs.h >>conftest.$ac_ext
5025 cat >>conftest.$ac_ext <<_ACEOF
5026 /* end confdefs.h. */
5027 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5029 #define $ac_func innocuous_$ac_func
5031 /* System header to define __stub macros and hopefully few prototypes,
5032 which can conflict with char $ac_func (); below.
5033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5034 <limits.h> exists even on freestanding compilers. */
5036 #ifdef __STDC__
5037 # include <limits.h>
5038 #else
5039 # include <assert.h>
5040 #endif
5042 #undef $ac_func
5044 /* Override any gcc2 internal prototype to avoid an error. */
5045 #ifdef __cplusplus
5046 extern "C"
5048 #endif
5049 /* We use char because int might match the return type of a gcc2
5050 builtin and then its argument prototype would still apply. */
5051 char $ac_func ();
5052 /* The GNU C library defines this for functions which it implements
5053 to always fail with ENOSYS. Some functions are actually named
5054 something starting with __ and the normal name is an alias. */
5055 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5056 choke me
5057 #else
5058 char (*f) () = $ac_func;
5059 #endif
5060 #ifdef __cplusplus
5062 #endif
5065 main ()
5067 return f != $ac_func;
5069 return 0;
5071 _ACEOF
5072 rm -f conftest.$ac_objext conftest$ac_exeext
5073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5074 (eval $ac_link) 2>conftest.er1
5075 ac_status=$?
5076 grep -v '^ *+' conftest.er1 >conftest.err
5077 rm -f conftest.er1
5078 cat conftest.err >&5
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); } &&
5081 { ac_try='test -z "$ac_c_werror_flag"
5082 || test ! -s conftest.err'
5083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5084 (eval $ac_try) 2>&5
5085 ac_status=$?
5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); }; } &&
5088 { ac_try='test -s conftest$ac_exeext'
5089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5090 (eval $ac_try) 2>&5
5091 ac_status=$?
5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); }; }; then
5094 eval "$as_ac_var=yes"
5095 else
5096 echo "$as_me: failed program was:" >&5
5097 sed 's/^/| /' conftest.$ac_ext >&5
5099 eval "$as_ac_var=no"
5101 rm -f conftest.err conftest.$ac_objext \
5102 conftest$ac_exeext conftest.$ac_ext
5104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5105 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5106 if test `eval echo '${'$as_ac_var'}'` = yes; then
5107 cat >>confdefs.h <<_ACEOF
5108 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5109 _ACEOF
5112 done
5115 for ac_func in __libc_freeres
5117 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5118 echo "$as_me:$LINENO: checking for $ac_func" >&5
5119 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5120 if eval "test \"\${$as_ac_var+set}\" = set"; then
5121 echo $ECHO_N "(cached) $ECHO_C" >&6
5122 else
5123 cat >conftest.$ac_ext <<_ACEOF
5124 /* confdefs.h. */
5125 _ACEOF
5126 cat confdefs.h >>conftest.$ac_ext
5127 cat >>conftest.$ac_ext <<_ACEOF
5128 /* end confdefs.h. */
5129 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5131 #define $ac_func innocuous_$ac_func
5133 /* System header to define __stub macros and hopefully few prototypes,
5134 which can conflict with char $ac_func (); below.
5135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5136 <limits.h> exists even on freestanding compilers. */
5138 #ifdef __STDC__
5139 # include <limits.h>
5140 #else
5141 # include <assert.h>
5142 #endif
5144 #undef $ac_func
5146 /* Override any gcc2 internal prototype to avoid an error. */
5147 #ifdef __cplusplus
5148 extern "C"
5150 #endif
5151 /* We use char because int might match the return type of a gcc2
5152 builtin and then its argument prototype would still apply. */
5153 char $ac_func ();
5154 /* The GNU C library defines this for functions which it implements
5155 to always fail with ENOSYS. Some functions are actually named
5156 something starting with __ and the normal name is an alias. */
5157 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5158 choke me
5159 #else
5160 char (*f) () = $ac_func;
5161 #endif
5162 #ifdef __cplusplus
5164 #endif
5167 main ()
5169 return f != $ac_func;
5171 return 0;
5173 _ACEOF
5174 rm -f conftest.$ac_objext conftest$ac_exeext
5175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5176 (eval $ac_link) 2>conftest.er1
5177 ac_status=$?
5178 grep -v '^ *+' conftest.er1 >conftest.err
5179 rm -f conftest.er1
5180 cat conftest.err >&5
5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 (exit $ac_status); } &&
5183 { ac_try='test -z "$ac_c_werror_flag"
5184 || test ! -s conftest.err'
5185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5186 (eval $ac_try) 2>&5
5187 ac_status=$?
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); }; } &&
5190 { ac_try='test -s conftest$ac_exeext'
5191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5192 (eval $ac_try) 2>&5
5193 ac_status=$?
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); }; }; then
5196 eval "$as_ac_var=yes"
5197 else
5198 echo "$as_me: failed program was:" >&5
5199 sed 's/^/| /' conftest.$ac_ext >&5
5201 eval "$as_ac_var=no"
5203 rm -f conftest.err conftest.$ac_objext \
5204 conftest$ac_exeext conftest.$ac_ext
5206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5207 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5208 if test `eval echo '${'$as_ac_var'}'` = yes; then
5209 cat >>confdefs.h <<_ACEOF
5210 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5211 _ACEOF
5214 done
5217 cat >conftest.$ac_ext <<_ACEOF
5218 /* confdefs.h. */
5219 _ACEOF
5220 cat confdefs.h >>conftest.$ac_ext
5221 cat >>conftest.$ac_ext <<_ACEOF
5222 /* end confdefs.h. */
5223 #include <sys/types.h>
5224 #include <sys/ipc.h>
5225 #include <sys/sem.h>
5227 main ()
5229 union semun foo;
5231 return 0;
5233 _ACEOF
5234 rm -f conftest.$ac_objext
5235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5236 (eval $ac_compile) 2>conftest.er1
5237 ac_status=$?
5238 grep -v '^ *+' conftest.er1 >conftest.err
5239 rm -f conftest.er1
5240 cat conftest.err >&5
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); } &&
5243 { ac_try='test -z "$ac_c_werror_flag"
5244 || test ! -s conftest.err'
5245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5246 (eval $ac_try) 2>&5
5247 ac_status=$?
5248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249 (exit $ac_status); }; } &&
5250 { ac_try='test -s conftest.$ac_objext'
5251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5252 (eval $ac_try) 2>&5
5253 ac_status=$?
5254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255 (exit $ac_status); }; }; then
5256 mf_have_semun=1
5257 else
5258 echo "$as_me: failed program was:" >&5
5259 sed 's/^/| /' conftest.$ac_ext >&5
5261 mf_have_semun=0
5263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5264 if test $mf_have_semun = 1
5265 then
5267 cat >>confdefs.h <<\_ACEOF
5268 #define HAVE_UNION_SEMUN 1
5269 _ACEOF
5274 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
5275 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
5276 cat >conftest.$ac_ext <<_ACEOF
5277 /* confdefs.h. */
5278 _ACEOF
5279 cat confdefs.h >>conftest.$ac_ext
5280 cat >>conftest.$ac_ext <<_ACEOF
5281 /* end confdefs.h. */
5282 #define _POSIX_PII_SOCKET
5283 #include <sys/types.h>
5284 #include <sys/socket.h>
5286 main ()
5288 socklen_t x = 5;
5290 return 0;
5292 _ACEOF
5293 rm -f conftest.$ac_objext
5294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5295 (eval $ac_compile) 2>conftest.er1
5296 ac_status=$?
5297 grep -v '^ *+' conftest.er1 >conftest.err
5298 rm -f conftest.er1
5299 cat conftest.err >&5
5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301 (exit $ac_status); } &&
5302 { ac_try='test -z "$ac_c_werror_flag"
5303 || test ! -s conftest.err'
5304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5305 (eval $ac_try) 2>&5
5306 ac_status=$?
5307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308 (exit $ac_status); }; } &&
5309 { ac_try='test -s conftest.$ac_objext'
5310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5311 (eval $ac_try) 2>&5
5312 ac_status=$?
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); }; }; then
5316 cat >>confdefs.h <<\_ACEOF
5317 #define HAVE_SOCKLEN_T 1
5318 _ACEOF
5320 echo "$as_me:$LINENO: result: yes" >&5
5321 echo "${ECHO_T}yes" >&6
5322 else
5323 echo "$as_me: failed program was:" >&5
5324 sed 's/^/| /' conftest.$ac_ext >&5
5326 echo "$as_me:$LINENO: result: no" >&5
5327 echo "${ECHO_T}no" >&6
5329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5331 enable_dlopen=yes
5337 macro_version='2.1a'
5338 macro_revision='1.2435'
5351 ltmain="$ac_aux_dir/ltmain.sh"
5353 # Set options
5356 enable_win32_dll=no
5359 # Check whether --enable-shared or --disable-shared was given.
5360 if test "${enable_shared+set}" = set; then
5361 enableval="$enable_shared"
5362 p=${PACKAGE-default}
5363 case $enableval in
5364 yes) enable_shared=yes ;;
5365 no) enable_shared=no ;;
5367 enable_shared=no
5368 # Look at the argument we got. We use all the common list separators.
5369 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5370 for pkg in $enableval; do
5371 IFS="$lt_save_ifs"
5372 if test "X$pkg" = "X$p"; then
5373 enable_shared=yes
5375 done
5376 IFS="$lt_save_ifs"
5378 esac
5379 else
5380 enable_shared=yes
5390 # Check whether --enable-static or --disable-static was given.
5391 if test "${enable_static+set}" = set; then
5392 enableval="$enable_static"
5393 p=${PACKAGE-default}
5394 case $enableval in
5395 yes) enable_static=yes ;;
5396 no) enable_static=no ;;
5398 enable_static=no
5399 # Look at the argument we got. We use all the common list separators.
5400 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5401 for pkg in $enableval; do
5402 IFS="$lt_save_ifs"
5403 if test "X$pkg" = "X$p"; then
5404 enable_static=yes
5406 done
5407 IFS="$lt_save_ifs"
5409 esac
5410 else
5411 enable_static=yes
5422 # Check whether --with-pic or --without-pic was given.
5423 if test "${with_pic+set}" = set; then
5424 withval="$with_pic"
5425 pic_mode="$withval"
5426 else
5427 pic_mode=default
5430 test -z "$pic_mode" && pic_mode=default
5438 # Check whether --enable-fast-install or --disable-fast-install was given.
5439 if test "${enable_fast_install+set}" = set; then
5440 enableval="$enable_fast_install"
5441 p=${PACKAGE-default}
5442 case $enableval in
5443 yes) enable_fast_install=yes ;;
5444 no) enable_fast_install=no ;;
5446 enable_fast_install=no
5447 # Look at the argument we got. We use all the common list separators.
5448 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5449 for pkg in $enableval; do
5450 IFS="$lt_save_ifs"
5451 if test "X$pkg" = "X$p"; then
5452 enable_fast_install=yes
5454 done
5455 IFS="$lt_save_ifs"
5457 esac
5458 else
5459 enable_fast_install=yes
5469 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5470 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5471 if test "${lt_cv_path_SED+set}" = set; then
5472 echo $ECHO_N "(cached) $ECHO_C" >&6
5473 else
5474 # Loop through the user's path and test for sed and gsed.
5475 # Then use that list of sed's as ones to test for truncation.
5476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5477 for as_dir in $PATH
5479 IFS=$as_save_IFS
5480 test -z "$as_dir" && as_dir=.
5481 for lt_ac_prog in sed gsed; do
5482 for ac_exec_ext in '' $ac_executable_extensions; do
5483 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5484 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5486 done
5487 done
5488 done
5489 IFS=$as_save_IFS
5490 lt_ac_max=0
5491 lt_ac_count=0
5492 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5493 # along with /bin/sed that truncates output.
5494 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5495 test ! -f $lt_ac_sed && continue
5496 cat /dev/null > conftest.in
5497 lt_ac_count=0
5498 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5499 # Check for GNU sed and select it if it is found.
5500 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5501 lt_cv_path_SED=$lt_ac_sed
5502 break
5504 while true; do
5505 cat conftest.in conftest.in >conftest.tmp
5506 mv conftest.tmp conftest.in
5507 cp conftest.in conftest.nl
5508 echo >>conftest.nl
5509 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5510 cmp -s conftest.out conftest.nl || break
5511 # 10000 chars as input seems more than enough
5512 test $lt_ac_count -gt 10 && break
5513 lt_ac_count=`expr $lt_ac_count + 1`
5514 if test $lt_ac_count -gt $lt_ac_max; then
5515 lt_ac_max=$lt_ac_count
5516 lt_cv_path_SED=$lt_ac_sed
5518 done
5519 done
5523 SED=$lt_cv_path_SED
5525 echo "$as_me:$LINENO: result: $SED" >&5
5526 echo "${ECHO_T}$SED" >&6
5528 test -z "$SED" && SED=sed
5529 Xsed="$SED -e 1s/^X//"
5541 echo "$as_me:$LINENO: checking for fgrep" >&5
5542 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5543 if test "${ac_cv_prog_fgrep+set}" = set; then
5544 echo $ECHO_N "(cached) $ECHO_C" >&6
5545 else
5546 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5547 then ac_cv_prog_fgrep='grep -F'
5548 else ac_cv_prog_fgrep='fgrep'
5551 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5552 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5553 FGREP=$ac_cv_prog_fgrep
5556 test -z "$GREP" && GREP=grep
5576 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5577 if test "${with_gnu_ld+set}" = set; then
5578 withval="$with_gnu_ld"
5579 test "$withval" = no || with_gnu_ld=yes
5580 else
5581 with_gnu_ld=no
5583 ac_prog=ld
5584 if test "$GCC" = yes; then
5585 # Check if gcc -print-prog-name=ld gives a path.
5586 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5587 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5588 case $host in
5589 *-*-mingw*)
5590 # gcc leaves a trailing carriage return which upsets mingw
5591 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5593 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5594 esac
5595 case $ac_prog in
5596 # Accept absolute paths.
5597 [\\/]* | ?:[\\/]*)
5598 re_direlt='/[^/][^/]*/\.\./'
5599 # Canonicalize the pathname of ld
5600 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5601 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5602 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5603 done
5604 test -z "$LD" && LD="$ac_prog"
5607 # If it fails, then pretend we aren't using GCC.
5608 ac_prog=ld
5611 # If it is relative, then search for the first ld in PATH.
5612 with_gnu_ld=unknown
5614 esac
5615 elif test "$with_gnu_ld" = yes; then
5616 echo "$as_me:$LINENO: checking for GNU ld" >&5
5617 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5618 else
5619 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5620 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5622 if test "${lt_cv_path_LD+set}" = set; then
5623 echo $ECHO_N "(cached) $ECHO_C" >&6
5624 else
5625 if test -z "$LD"; then
5626 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5627 for ac_dir in $PATH; do
5628 IFS="$lt_save_ifs"
5629 test -z "$ac_dir" && ac_dir=.
5630 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5631 lt_cv_path_LD="$ac_dir/$ac_prog"
5632 # Check to see if the program is GNU ld. I'd rather use --version,
5633 # but apparently some variants of GNU ld only accept -v.
5634 # Break only if it was the GNU/non-GNU ld that we prefer.
5635 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5636 *GNU* | *'with BFD'*)
5637 test "$with_gnu_ld" != no && break
5640 test "$with_gnu_ld" != yes && break
5642 esac
5644 done
5645 IFS="$lt_save_ifs"
5646 else
5647 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5651 LD="$lt_cv_path_LD"
5652 if test -n "$LD"; then
5653 echo "$as_me:$LINENO: result: $LD" >&5
5654 echo "${ECHO_T}$LD" >&6
5655 else
5656 echo "$as_me:$LINENO: result: no" >&5
5657 echo "${ECHO_T}no" >&6
5659 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5660 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5661 { (exit 1); exit 1; }; }
5662 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5663 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5664 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5665 echo $ECHO_N "(cached) $ECHO_C" >&6
5666 else
5667 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5668 case `$LD -v 2>&1 </dev/null` in
5669 *GNU* | *'with BFD'*)
5670 lt_cv_prog_gnu_ld=yes
5673 lt_cv_prog_gnu_ld=no
5675 esac
5677 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5678 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5679 with_gnu_ld=$lt_cv_prog_gnu_ld
5690 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5691 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
5692 if test "${lt_cv_path_NM+set}" = set; then
5693 echo $ECHO_N "(cached) $ECHO_C" >&6
5694 else
5695 if test -n "$NM"; then
5696 # Let the user override the test.
5697 lt_cv_path_NM="$NM"
5698 else
5699 lt_nm_to_check="${ac_tool_prefix}nm"
5700 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5701 lt_nm_to_check="$lt_nm_to_check nm"
5703 for lt_tmp_nm in $lt_nm_to_check; do
5704 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5705 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5706 IFS="$lt_save_ifs"
5707 test -z "$ac_dir" && ac_dir=.
5708 tmp_nm="$ac_dir/$lt_tmp_nm"
5709 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5710 # Check to see if the nm accepts a BSD-compat flag.
5711 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5712 # nm: unknown option "B" ignored
5713 # Tru64's nm complains that /dev/null is an invalid object file
5714 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5715 */dev/null* | *'Invalid file or object type'*)
5716 lt_cv_path_NM="$tmp_nm -B"
5717 break
5720 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5721 */dev/null*)
5722 lt_cv_path_NM="$tmp_nm -p"
5723 break
5726 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5727 continue # so that we can try to find one that supports BSD flags
5729 esac
5731 esac
5733 done
5734 IFS="$lt_save_ifs"
5735 done
5736 : ${lt_cv_path_NM=no}
5739 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5740 echo "${ECHO_T}$lt_cv_path_NM" >&6
5741 if test "$lt_cv_path_NM" != "no"; then
5742 NM="$lt_cv_path_NM"
5743 else
5744 # Didn't find any BSD compatible name lister, look for dumpbin.
5745 if test -n "$ac_tool_prefix"; then
5746 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5748 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5749 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5750 echo "$as_me:$LINENO: checking for $ac_word" >&5
5751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5752 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5753 echo $ECHO_N "(cached) $ECHO_C" >&6
5754 else
5755 if test -n "$DUMPBIN"; then
5756 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5757 else
5758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5759 for as_dir in $PATH
5761 IFS=$as_save_IFS
5762 test -z "$as_dir" && as_dir=.
5763 for ac_exec_ext in '' $ac_executable_extensions; do
5764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5765 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5767 break 2
5769 done
5770 done
5774 DUMPBIN=$ac_cv_prog_DUMPBIN
5775 if test -n "$DUMPBIN"; then
5776 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5777 echo "${ECHO_T}$DUMPBIN" >&6
5778 else
5779 echo "$as_me:$LINENO: result: no" >&5
5780 echo "${ECHO_T}no" >&6
5783 test -n "$DUMPBIN" && break
5784 done
5786 if test -z "$DUMPBIN"; then
5787 ac_ct_DUMPBIN=$DUMPBIN
5788 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5790 # Extract the first word of "$ac_prog", so it can be a program name with args.
5791 set dummy $ac_prog; ac_word=$2
5792 echo "$as_me:$LINENO: checking for $ac_word" >&5
5793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5794 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5795 echo $ECHO_N "(cached) $ECHO_C" >&6
5796 else
5797 if test -n "$ac_ct_DUMPBIN"; then
5798 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5799 else
5800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5801 for as_dir in $PATH
5803 IFS=$as_save_IFS
5804 test -z "$as_dir" && as_dir=.
5805 for ac_exec_ext in '' $ac_executable_extensions; do
5806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5807 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5809 break 2
5811 done
5812 done
5816 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5817 if test -n "$ac_ct_DUMPBIN"; then
5818 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5819 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5820 else
5821 echo "$as_me:$LINENO: result: no" >&5
5822 echo "${ECHO_T}no" >&6
5825 test -n "$ac_ct_DUMPBIN" && break
5826 done
5827 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
5829 DUMPBIN=$ac_ct_DUMPBIN
5833 if test "$DUMPBIN" != ":"; then
5834 NM="$DUMPBIN"
5837 test -z "$NM" && NM=nm
5844 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5845 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5846 if test "${lt_cv_nm_interface+set}" = set; then
5847 echo $ECHO_N "(cached) $ECHO_C" >&6
5848 else
5849 lt_cv_nm_interface="BSD nm"
5850 echo "int some_variable = 0;" > conftest.$ac_ext
5851 (eval echo "\"\$as_me:5851: $ac_compile\"" >&5)
5852 (eval "$ac_compile" 2>conftest.err)
5853 cat conftest.err >&5
5854 (eval echo "\"\$as_me:5854: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5855 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5856 cat conftest.err >&5
5857 (eval echo "\"\$as_me:5857: output\"" >&5)
5858 cat conftest.out >&5
5859 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5860 lt_cv_nm_interface="MS dumpbin"
5862 rm -f conftest*
5864 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5865 echo "${ECHO_T}$lt_cv_nm_interface" >&6
5867 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5868 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5869 LN_S=$as_ln_s
5870 if test "$LN_S" = "ln -s"; then
5871 echo "$as_me:$LINENO: result: yes" >&5
5872 echo "${ECHO_T}yes" >&6
5873 else
5874 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5875 echo "${ECHO_T}no, using $LN_S" >&6
5878 # find the maximum length of command line arguments
5879 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5880 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5881 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5882 echo $ECHO_N "(cached) $ECHO_C" >&6
5883 else
5885 teststring="ABCD"
5887 case $build_os in
5888 msdosdjgpp*)
5889 # On DJGPP, this test can blow up pretty badly due to problems in libc
5890 # (any single argument exceeding 2000 bytes causes a buffer overrun
5891 # during glob expansion). Even if it were fixed, the result of this
5892 # check would be larger than it should be.
5893 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5896 gnu*)
5897 # Under GNU Hurd, this test is not required because there is
5898 # no limit to the length of command line arguments.
5899 # Libtool will interpret -1 as no limit whatsoever
5900 lt_cv_sys_max_cmd_len=-1;
5903 cygwin* | mingw*)
5904 # On Win9x/ME, this test blows up -- it succeeds, but takes
5905 # about 5 minutes as the teststring grows exponentially.
5906 # Worse, since 9x/ME are not pre-emptively multitasking,
5907 # you end up with a "frozen" computer, even though with patience
5908 # the test eventually succeeds (with a max line length of 256k).
5909 # Instead, let's just punt: use the minimum linelength reported by
5910 # all of the supported platforms: 8192 (on NT/2K/XP).
5911 lt_cv_sys_max_cmd_len=8192;
5914 amigaos*)
5915 # On AmigaOS with pdksh, this test takes hours, literally.
5916 # So we just punt and use a minimum line length of 8192.
5917 lt_cv_sys_max_cmd_len=8192;
5920 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5921 # This has been around since 386BSD, at least. Likely further.
5922 if test -x /sbin/sysctl; then
5923 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5924 elif test -x /usr/sbin/sysctl; then
5925 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5926 else
5927 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5929 # And add a safety zone
5930 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5931 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5934 interix*)
5935 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5936 lt_cv_sys_max_cmd_len=196608
5939 osf*)
5940 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5941 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5942 # nice to cause kernel panics so lets avoid the loop below.
5943 # First set a reasonable default.
5944 lt_cv_sys_max_cmd_len=16384
5946 if test -x /sbin/sysconfig; then
5947 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5948 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5949 esac
5952 sco3.2v5*)
5953 lt_cv_sys_max_cmd_len=102400
5955 sysv5* | sco5v6* | sysv4.2uw2*)
5956 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5957 if test -n "$kargmax"; then
5958 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5959 else
5960 lt_cv_sys_max_cmd_len=32768
5964 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
5965 if test -n $lt_cv_sys_max_cmd_len; then
5966 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5967 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5968 else
5969 # Make teststring a little bigger before we do anything with it.
5970 # a 1K string should be a reasonable start.
5971 for i in 1 2 3 4 5 6 7 8 ; do
5972 teststring=$teststring$teststring
5973 done
5974 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5975 # If test is not a shell built-in, we'll probably end up computing a
5976 # maximum length that is only half of the actual maximum length, but
5977 # we can't tell.
5978 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5979 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5980 test $i != 17 # 1/2 MB should be enough
5982 i=`expr $i + 1`
5983 teststring=$teststring$teststring
5984 done
5985 # Only check the string length outside the loop.
5986 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5987 teststring=
5988 # Add a significant safety factor because C++ compilers can tack on
5989 # massive amounts of additional arguments before passing them to the
5990 # linker. It appears as though 1/2 is a usable value.
5991 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5994 esac
5998 if test -n $lt_cv_sys_max_cmd_len ; then
5999 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6000 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6001 else
6002 echo "$as_me:$LINENO: result: none" >&5
6003 echo "${ECHO_T}none" >&6
6005 max_cmd_len=$lt_cv_sys_max_cmd_len
6012 : ${CP="cp -f"}
6013 : ${MV="mv -f"}
6014 : ${RM="rm -f"}
6016 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6017 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
6018 # Try some XSI features
6019 xsi_shell=no
6020 ( _lt_dummy="a/b/c"
6021 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6022 = c,a/b,, ) >/dev/null 2>&1 \
6023 && xsi_shell=yes
6024 echo "$as_me:$LINENO: result: $xsi_shell" >&5
6025 echo "${ECHO_T}$xsi_shell" >&6
6028 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6029 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
6030 lt_shell_append=no
6031 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6032 >/dev/null 2>&1 \
6033 && lt_shell_append=yes
6034 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6035 echo "${ECHO_T}$lt_shell_append" >&6
6038 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6039 lt_unset=unset
6040 else
6041 lt_unset=false
6048 # test EBCDIC or ASCII
6049 case `echo X|tr X '\101'` in
6050 A) # ASCII based system
6051 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6052 lt_SP2NL='tr \040 \012'
6053 lt_NL2SP='tr \015\012 \040\040'
6055 *) # EBCDIC based system
6056 lt_SP2NL='tr \100 \n'
6057 lt_NL2SP='tr \r\n \100\100'
6059 esac
6069 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6070 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6071 if test "${lt_cv_ld_reload_flag+set}" = set; then
6072 echo $ECHO_N "(cached) $ECHO_C" >&6
6073 else
6074 lt_cv_ld_reload_flag='-r'
6076 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6077 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6078 reload_flag=$lt_cv_ld_reload_flag
6079 case $reload_flag in
6080 "" | " "*) ;;
6081 *) reload_flag=" $reload_flag" ;;
6082 esac
6083 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6084 case $host_os in
6085 darwin*)
6086 if test "$GCC" = yes; then
6087 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6088 else
6089 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6092 esac
6103 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6104 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
6105 if test "${lt_cv_deplibs_check_method+set}" = set; then
6106 echo $ECHO_N "(cached) $ECHO_C" >&6
6107 else
6108 lt_cv_file_magic_cmd='$MAGIC_CMD'
6109 lt_cv_file_magic_test_file=
6110 lt_cv_deplibs_check_method='unknown'
6111 # Need to set the preceding variable on all platforms that support
6112 # interlibrary dependencies.
6113 # 'none' -- dependencies not supported.
6114 # `unknown' -- same as none, but documents that we really don't know.
6115 # 'pass_all' -- all dependencies passed with no checks.
6116 # 'test_compile' -- check by making test program.
6117 # 'file_magic [[regex]]' -- check by looking for files in library path
6118 # which responds to the $file_magic_cmd with a given extended regex.
6119 # If you have `file' or equivalent on your system and you're not sure
6120 # whether `pass_all' will *always* work, you probably want this one.
6122 case $host_os in
6123 aix[4-9]*)
6124 lt_cv_deplibs_check_method=pass_all
6127 beos*)
6128 lt_cv_deplibs_check_method=pass_all
6131 bsdi[45]*)
6132 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6133 lt_cv_file_magic_cmd='/usr/bin/file -L'
6134 lt_cv_file_magic_test_file=/shlib/libc.so
6137 cygwin*)
6138 # func_win32_libid is a shell function defined in ltmain.sh
6139 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6140 lt_cv_file_magic_cmd='func_win32_libid'
6143 mingw* | pw32*)
6144 # Base MSYS/MinGW do not provide the 'file' command needed by
6145 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6146 # unless we find 'file', for example because we are cross-compiling.
6147 if ( file / ) >/dev/null 2>&1; then
6148 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6149 lt_cv_file_magic_cmd='func_win32_libid'
6150 else
6151 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6152 lt_cv_file_magic_cmd='$OBJDUMP -f'
6156 darwin* | rhapsody*)
6157 lt_cv_deplibs_check_method=pass_all
6160 freebsd* | dragonfly*)
6161 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6162 case $host_cpu in
6163 i*86 )
6164 # Not sure whether the presence of OpenBSD here was a mistake.
6165 # Let's accept both of them until this is cleared up.
6166 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6167 lt_cv_file_magic_cmd=/usr/bin/file
6168 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6170 esac
6171 else
6172 lt_cv_deplibs_check_method=pass_all
6176 gnu*)
6177 lt_cv_deplibs_check_method=pass_all
6180 hpux10.20* | hpux11*)
6181 lt_cv_file_magic_cmd=/usr/bin/file
6182 case $host_cpu in
6183 ia64*)
6184 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6185 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6187 hppa*64*)
6188 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]'
6189 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6192 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6193 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6195 esac
6198 interix[3-9]*)
6199 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6200 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6203 irix5* | irix6* | nonstopux*)
6204 case $LD in
6205 *-32|*"-32 ") libmagic=32-bit;;
6206 *-n32|*"-n32 ") libmagic=N32;;
6207 *-64|*"-64 ") libmagic=64-bit;;
6208 *) libmagic=never-match;;
6209 esac
6210 lt_cv_deplibs_check_method=pass_all
6213 # This must be Linux ELF.
6214 linux* | k*bsd*-gnu)
6215 lt_cv_deplibs_check_method=pass_all
6218 netbsd*)
6219 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6220 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6221 else
6222 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6226 newos6*)
6227 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6228 lt_cv_file_magic_cmd=/usr/bin/file
6229 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6232 *nto* | *qnx*)
6233 lt_cv_deplibs_check_method=pass_all
6236 openbsd*)
6237 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6238 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6239 else
6240 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6244 osf3* | osf4* | osf5*)
6245 lt_cv_deplibs_check_method=pass_all
6248 rdos*)
6249 lt_cv_deplibs_check_method=pass_all
6252 solaris*)
6253 lt_cv_deplibs_check_method=pass_all
6256 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6257 lt_cv_deplibs_check_method=pass_all
6260 sysv4 | sysv4.3*)
6261 case $host_vendor in
6262 motorola)
6263 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]'
6264 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6266 ncr)
6267 lt_cv_deplibs_check_method=pass_all
6269 sequent)
6270 lt_cv_file_magic_cmd='/bin/file'
6271 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6273 sni)
6274 lt_cv_file_magic_cmd='/bin/file'
6275 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6276 lt_cv_file_magic_test_file=/lib/libc.so
6278 siemens)
6279 lt_cv_deplibs_check_method=pass_all
6282 lt_cv_deplibs_check_method=pass_all
6284 esac
6287 tpf*)
6288 lt_cv_deplibs_check_method=pass_all
6290 esac
6293 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6294 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6295 file_magic_cmd=$lt_cv_file_magic_cmd
6296 deplibs_check_method=$lt_cv_deplibs_check_method
6297 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6310 if test -n "$ac_tool_prefix"; then
6311 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6312 set dummy ${ac_tool_prefix}ar; ac_word=$2
6313 echo "$as_me:$LINENO: checking for $ac_word" >&5
6314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6315 if test "${ac_cv_prog_AR+set}" = set; then
6316 echo $ECHO_N "(cached) $ECHO_C" >&6
6317 else
6318 if test -n "$AR"; then
6319 ac_cv_prog_AR="$AR" # Let the user override the test.
6320 else
6321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6322 for as_dir in $PATH
6324 IFS=$as_save_IFS
6325 test -z "$as_dir" && as_dir=.
6326 for ac_exec_ext in '' $ac_executable_extensions; do
6327 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6328 ac_cv_prog_AR="${ac_tool_prefix}ar"
6329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6330 break 2
6332 done
6333 done
6337 AR=$ac_cv_prog_AR
6338 if test -n "$AR"; then
6339 echo "$as_me:$LINENO: result: $AR" >&5
6340 echo "${ECHO_T}$AR" >&6
6341 else
6342 echo "$as_me:$LINENO: result: no" >&5
6343 echo "${ECHO_T}no" >&6
6347 if test -z "$ac_cv_prog_AR"; then
6348 ac_ct_AR=$AR
6349 # Extract the first word of "ar", so it can be a program name with args.
6350 set dummy ar; ac_word=$2
6351 echo "$as_me:$LINENO: checking for $ac_word" >&5
6352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6353 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6354 echo $ECHO_N "(cached) $ECHO_C" >&6
6355 else
6356 if test -n "$ac_ct_AR"; then
6357 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6358 else
6359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360 for as_dir in $PATH
6362 IFS=$as_save_IFS
6363 test -z "$as_dir" && as_dir=.
6364 for ac_exec_ext in '' $ac_executable_extensions; do
6365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6366 ac_cv_prog_ac_ct_AR="ar"
6367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6368 break 2
6370 done
6371 done
6373 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6376 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6377 if test -n "$ac_ct_AR"; then
6378 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6379 echo "${ECHO_T}$ac_ct_AR" >&6
6380 else
6381 echo "$as_me:$LINENO: result: no" >&5
6382 echo "${ECHO_T}no" >&6
6385 AR=$ac_ct_AR
6386 else
6387 AR="$ac_cv_prog_AR"
6390 test -z "$AR" && AR=ar
6391 test -z "$AR_FLAGS" && AR_FLAGS=cru
6403 if test -n "$ac_tool_prefix"; then
6404 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6405 set dummy ${ac_tool_prefix}strip; ac_word=$2
6406 echo "$as_me:$LINENO: checking for $ac_word" >&5
6407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6408 if test "${ac_cv_prog_STRIP+set}" = set; then
6409 echo $ECHO_N "(cached) $ECHO_C" >&6
6410 else
6411 if test -n "$STRIP"; then
6412 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6413 else
6414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6415 for as_dir in $PATH
6417 IFS=$as_save_IFS
6418 test -z "$as_dir" && as_dir=.
6419 for ac_exec_ext in '' $ac_executable_extensions; do
6420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6421 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6423 break 2
6425 done
6426 done
6430 STRIP=$ac_cv_prog_STRIP
6431 if test -n "$STRIP"; then
6432 echo "$as_me:$LINENO: result: $STRIP" >&5
6433 echo "${ECHO_T}$STRIP" >&6
6434 else
6435 echo "$as_me:$LINENO: result: no" >&5
6436 echo "${ECHO_T}no" >&6
6440 if test -z "$ac_cv_prog_STRIP"; then
6441 ac_ct_STRIP=$STRIP
6442 # Extract the first word of "strip", so it can be a program name with args.
6443 set dummy strip; ac_word=$2
6444 echo "$as_me:$LINENO: checking for $ac_word" >&5
6445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6446 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6447 echo $ECHO_N "(cached) $ECHO_C" >&6
6448 else
6449 if test -n "$ac_ct_STRIP"; then
6450 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6451 else
6452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6453 for as_dir in $PATH
6455 IFS=$as_save_IFS
6456 test -z "$as_dir" && as_dir=.
6457 for ac_exec_ext in '' $ac_executable_extensions; do
6458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6459 ac_cv_prog_ac_ct_STRIP="strip"
6460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6461 break 2
6463 done
6464 done
6466 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6469 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6470 if test -n "$ac_ct_STRIP"; then
6471 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6472 echo "${ECHO_T}$ac_ct_STRIP" >&6
6473 else
6474 echo "$as_me:$LINENO: result: no" >&5
6475 echo "${ECHO_T}no" >&6
6478 STRIP=$ac_ct_STRIP
6479 else
6480 STRIP="$ac_cv_prog_STRIP"
6483 test -z "$STRIP" && STRIP=:
6490 if test -n "$ac_tool_prefix"; then
6491 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6492 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6493 echo "$as_me:$LINENO: checking for $ac_word" >&5
6494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6495 if test "${ac_cv_prog_RANLIB+set}" = set; then
6496 echo $ECHO_N "(cached) $ECHO_C" >&6
6497 else
6498 if test -n "$RANLIB"; then
6499 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6500 else
6501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6502 for as_dir in $PATH
6504 IFS=$as_save_IFS
6505 test -z "$as_dir" && as_dir=.
6506 for ac_exec_ext in '' $ac_executable_extensions; do
6507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6508 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6510 break 2
6512 done
6513 done
6517 RANLIB=$ac_cv_prog_RANLIB
6518 if test -n "$RANLIB"; then
6519 echo "$as_me:$LINENO: result: $RANLIB" >&5
6520 echo "${ECHO_T}$RANLIB" >&6
6521 else
6522 echo "$as_me:$LINENO: result: no" >&5
6523 echo "${ECHO_T}no" >&6
6527 if test -z "$ac_cv_prog_RANLIB"; then
6528 ac_ct_RANLIB=$RANLIB
6529 # Extract the first word of "ranlib", so it can be a program name with args.
6530 set dummy ranlib; ac_word=$2
6531 echo "$as_me:$LINENO: checking for $ac_word" >&5
6532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6533 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6534 echo $ECHO_N "(cached) $ECHO_C" >&6
6535 else
6536 if test -n "$ac_ct_RANLIB"; then
6537 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6538 else
6539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6540 for as_dir in $PATH
6542 IFS=$as_save_IFS
6543 test -z "$as_dir" && as_dir=.
6544 for ac_exec_ext in '' $ac_executable_extensions; do
6545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6546 ac_cv_prog_ac_ct_RANLIB="ranlib"
6547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6548 break 2
6550 done
6551 done
6553 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6556 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6557 if test -n "$ac_ct_RANLIB"; then
6558 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6559 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6560 else
6561 echo "$as_me:$LINENO: result: no" >&5
6562 echo "${ECHO_T}no" >&6
6565 RANLIB=$ac_ct_RANLIB
6566 else
6567 RANLIB="$ac_cv_prog_RANLIB"
6570 test -z "$RANLIB" && RANLIB=:
6577 # Determine commands to create old-style static archives.
6578 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6579 old_postinstall_cmds='chmod 644 $oldlib'
6580 old_postuninstall_cmds=
6582 if test -n "$RANLIB"; then
6583 case $host_os in
6584 openbsd*)
6585 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6588 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6590 esac
6591 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6627 # If no C compiler was specified, use CC.
6628 LTCC=${LTCC-"$CC"}
6630 # If no C compiler flags were specified, use CFLAGS.
6631 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6633 # Allow CC to be a program name with arguments.
6634 compiler=$CC
6637 # Check for command to grab the raw symbol name followed by C symbol from nm.
6638 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6639 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6640 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6641 echo $ECHO_N "(cached) $ECHO_C" >&6
6642 else
6644 # These are sane defaults that work on at least a few old systems.
6645 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6647 # Character class describing NM global symbol codes.
6648 symcode='[BCDEGRST]'
6650 # Regexp to match symbols that can be accessed directly from C.
6651 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6653 # Define system-specific variables.
6654 case $host_os in
6655 aix*)
6656 symcode='[BCDT]'
6658 cygwin* | mingw* | pw32*)
6659 symcode='[ABCDGISTW]'
6661 hpux*)
6662 if test "$host_cpu" = ia64; then
6663 symcode='[ABCDEGRST]'
6666 irix* | nonstopux*)
6667 symcode='[BCDEGRST]'
6669 osf*)
6670 symcode='[BCDEGQRST]'
6672 solaris*)
6673 symcode='[BDRT]'
6675 sco3.2v5*)
6676 symcode='[DT]'
6678 sysv4.2uw2*)
6679 symcode='[DT]'
6681 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6682 symcode='[ABDT]'
6684 sysv4)
6685 symcode='[DFNSTU]'
6687 esac
6689 # If we're using GNU nm, then use its standard symbol codes.
6690 case `$NM -V 2>&1` in
6691 *GNU* | *'with BFD'*)
6692 symcode='[ABCDGIRSTW]' ;;
6693 esac
6695 # Transform an extracted symbol line into a proper C declaration.
6696 # Some systems (esp. on ia64) link data and code symbols differently,
6697 # so use this general approach.
6698 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6700 # Transform an extracted symbol line into symbol name and symbol address
6701 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6703 # Handle CRLF in mingw tool chain
6704 opt_cr=
6705 case $build_os in
6706 mingw*)
6707 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6709 esac
6711 # Try without a prefix underscore, then with it.
6712 for ac_symprfx in "" "_"; do
6714 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6715 symxfrm="\\1 $ac_symprfx\\2 \\2"
6717 # Write the raw and C identifiers.
6718 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6719 # Fake it for dumpbin and say T for any non-static function
6720 # and D for any global variable.
6721 # Also find C++ and __fastcall symbols from MSVC++,
6722 # which start with @ or ?.
6723 lt_cv_sys_global_symbol_pipe="$AWK '"\
6724 " {last_section=section; section=\$ 3};"\
6725 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6726 " \$ 0!~/External *\|/{next};"\
6727 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6728 " {if(hide[section]) next};"\
6729 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6730 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6731 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6732 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6733 " ' prfx=^$ac_symprfx"
6734 else
6735 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6738 # Check to see that the pipe works correctly.
6739 pipe_works=no
6741 rm -f conftest*
6742 cat > conftest.$ac_ext <<_LT_EOF
6743 #ifdef __cplusplus
6744 extern "C" {
6745 #endif
6746 char nm_test_var;
6747 void nm_test_func(void);
6748 void nm_test_func(void){}
6749 #ifdef __cplusplus
6751 #endif
6752 int main(){nm_test_var='a';nm_test_func();return(0);}
6753 _LT_EOF
6755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6756 (eval $ac_compile) 2>&5
6757 ac_status=$?
6758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759 (exit $ac_status); }; then
6760 # Now try to grab the symbols.
6761 nlist=conftest.nm
6762 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6763 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6764 ac_status=$?
6765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766 (exit $ac_status); } && test -s "$nlist"; then
6767 # Try sorting and uniquifying the output.
6768 if sort "$nlist" | uniq > "$nlist"T; then
6769 mv -f "$nlist"T "$nlist"
6770 else
6771 rm -f "$nlist"T
6774 # Make sure that we snagged all the symbols we need.
6775 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6776 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6777 cat <<_LT_EOF > conftest.$ac_ext
6778 #ifdef __cplusplus
6779 extern "C" {
6780 #endif
6782 _LT_EOF
6783 # Now generate the symbol file.
6784 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6786 cat <<_LT_EOF >> conftest.$ac_ext
6788 /* The mapping between symbol names and symbols. */
6789 const struct {
6790 const char *name;
6791 void *address;
6793 lt__PROGRAM__LTX_preloaded_symbols[] =
6795 { "@PROGRAM@", (void *) 0 },
6796 _LT_EOF
6797 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6798 cat <<\_LT_EOF >> conftest.$ac_ext
6799 {0, (void *) 0}
6802 /* This works around a problem in FreeBSD linker */
6803 #ifdef FREEBSD_WORKAROUND
6804 static const void *lt_preloaded_setup() {
6805 return lt__PROGRAM__LTX_preloaded_symbols;
6807 #endif
6809 #ifdef __cplusplus
6811 #endif
6812 _LT_EOF
6813 # Now try linking the two files.
6814 mv conftest.$ac_objext conftstm.$ac_objext
6815 lt_save_LIBS="$LIBS"
6816 lt_save_CFLAGS="$CFLAGS"
6817 LIBS="conftstm.$ac_objext"
6818 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6820 (eval $ac_link) 2>&5
6821 ac_status=$?
6822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6824 pipe_works=yes
6826 LIBS="$lt_save_LIBS"
6827 CFLAGS="$lt_save_CFLAGS"
6828 else
6829 echo "cannot find nm_test_func in $nlist" >&5
6831 else
6832 echo "cannot find nm_test_var in $nlist" >&5
6834 else
6835 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6837 else
6838 echo "$progname: failed program was:" >&5
6839 cat conftest.$ac_ext >&5
6841 rm -f conftest* conftst*
6843 # Do not use the global_symbol_pipe unless it works.
6844 if test "$pipe_works" = yes; then
6845 break
6846 else
6847 lt_cv_sys_global_symbol_pipe=
6849 done
6853 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6854 lt_cv_sys_global_symbol_to_cdecl=
6856 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6857 echo "$as_me:$LINENO: result: failed" >&5
6858 echo "${ECHO_T}failed" >&6
6859 else
6860 echo "$as_me:$LINENO: result: ok" >&5
6861 echo "${ECHO_T}ok" >&6
6880 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6881 if test "${enable_libtool_lock+set}" = set; then
6882 enableval="$enable_libtool_lock"
6885 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6887 # Some flags need to be propagated to the compiler or linker for good
6888 # libtool support.
6889 case $host in
6890 ia64-*-hpux*)
6891 # Find out which ABI we are using.
6892 echo 'int i;' > conftest.$ac_ext
6893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6894 (eval $ac_compile) 2>&5
6895 ac_status=$?
6896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897 (exit $ac_status); }; then
6898 case `/usr/bin/file conftest.$ac_objext` in
6899 *ELF-32*)
6900 HPUX_IA64_MODE="32"
6902 *ELF-64*)
6903 HPUX_IA64_MODE="64"
6905 esac
6907 rm -rf conftest*
6909 *-*-irix6*)
6910 # Find out which ABI we are using.
6911 echo '#line 6911 "configure"' > conftest.$ac_ext
6912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6913 (eval $ac_compile) 2>&5
6914 ac_status=$?
6915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916 (exit $ac_status); }; then
6917 if test "$lt_cv_prog_gnu_ld" = yes; then
6918 case `/usr/bin/file conftest.$ac_objext` in
6919 *32-bit*)
6920 LD="${LD-ld} -melf32bsmip"
6922 *N32*)
6923 LD="${LD-ld} -melf32bmipn32"
6925 *64-bit*)
6926 LD="${LD-ld} -melf64bmip"
6928 esac
6929 else
6930 case `/usr/bin/file conftest.$ac_objext` in
6931 *32-bit*)
6932 LD="${LD-ld} -32"
6934 *N32*)
6935 LD="${LD-ld} -n32"
6937 *64-bit*)
6938 LD="${LD-ld} -64"
6940 esac
6943 rm -rf conftest*
6946 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6947 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6948 # Find out which ABI we are using.
6949 echo 'int i;' > conftest.$ac_ext
6950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6951 (eval $ac_compile) 2>&5
6952 ac_status=$?
6953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954 (exit $ac_status); }; then
6955 case `/usr/bin/file conftest.o` in
6956 *32-bit*)
6957 case $host in
6958 x86_64-*kfreebsd*-gnu)
6959 LD="${LD-ld} -m elf_i386_fbsd"
6961 x86_64-*linux*)
6962 LD="${LD-ld} -m elf_i386"
6964 ppc64-*linux*|powerpc64-*linux*)
6965 LD="${LD-ld} -m elf32ppclinux"
6967 s390x-*linux*)
6968 LD="${LD-ld} -m elf_s390"
6970 sparc64-*linux*)
6971 LD="${LD-ld} -m elf32_sparc"
6973 esac
6975 *64-bit*)
6976 case $host in
6977 x86_64-*kfreebsd*-gnu)
6978 LD="${LD-ld} -m elf_x86_64_fbsd"
6980 x86_64-*linux*)
6981 LD="${LD-ld} -m elf_x86_64"
6983 ppc*-*linux*|powerpc*-*linux*)
6984 LD="${LD-ld} -m elf64ppc"
6986 s390*-*linux*|s390*-*tpf*)
6987 LD="${LD-ld} -m elf64_s390"
6989 sparc*-*linux*)
6990 LD="${LD-ld} -m elf64_sparc"
6992 esac
6994 esac
6996 rm -rf conftest*
6999 *-*-sco3.2v5*)
7000 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7001 SAVE_CFLAGS="$CFLAGS"
7002 CFLAGS="$CFLAGS -belf"
7003 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7004 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
7005 if test "${lt_cv_cc_needs_belf+set}" = set; then
7006 echo $ECHO_N "(cached) $ECHO_C" >&6
7007 else
7008 ac_ext=c
7009 ac_cpp='$CPP $CPPFLAGS'
7010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7014 cat >conftest.$ac_ext <<_ACEOF
7015 /* confdefs.h. */
7016 _ACEOF
7017 cat confdefs.h >>conftest.$ac_ext
7018 cat >>conftest.$ac_ext <<_ACEOF
7019 /* end confdefs.h. */
7022 main ()
7026 return 0;
7028 _ACEOF
7029 rm -f conftest.$ac_objext conftest$ac_exeext
7030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7031 (eval $ac_link) 2>conftest.er1
7032 ac_status=$?
7033 grep -v '^ *+' conftest.er1 >conftest.err
7034 rm -f conftest.er1
7035 cat conftest.err >&5
7036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037 (exit $ac_status); } &&
7038 { ac_try='test -z "$ac_c_werror_flag"
7039 || test ! -s conftest.err'
7040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7041 (eval $ac_try) 2>&5
7042 ac_status=$?
7043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044 (exit $ac_status); }; } &&
7045 { ac_try='test -s conftest$ac_exeext'
7046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7047 (eval $ac_try) 2>&5
7048 ac_status=$?
7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 (exit $ac_status); }; }; then
7051 lt_cv_cc_needs_belf=yes
7052 else
7053 echo "$as_me: failed program was:" >&5
7054 sed 's/^/| /' conftest.$ac_ext >&5
7056 lt_cv_cc_needs_belf=no
7058 rm -f conftest.err conftest.$ac_objext \
7059 conftest$ac_exeext conftest.$ac_ext
7060 ac_ext=c
7061 ac_cpp='$CPP $CPPFLAGS'
7062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7067 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7068 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7069 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7070 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7071 CFLAGS="$SAVE_CFLAGS"
7074 sparc*-*solaris*)
7075 # Find out which ABI we are using.
7076 echo 'int i;' > conftest.$ac_ext
7077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7078 (eval $ac_compile) 2>&5
7079 ac_status=$?
7080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); }; then
7082 case `/usr/bin/file conftest.o` in
7083 *64-bit*)
7084 case $lt_cv_prog_gnu_ld in
7085 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7086 *) LD="${LD-ld} -64" ;;
7087 esac
7089 esac
7091 rm -rf conftest*
7093 esac
7095 need_locks="$enable_libtool_lock"
7098 for ac_header in dlfcn.h
7100 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7101 echo "$as_me:$LINENO: checking for $ac_header" >&5
7102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7104 echo $ECHO_N "(cached) $ECHO_C" >&6
7105 else
7106 cat >conftest.$ac_ext <<_ACEOF
7107 /* confdefs.h. */
7108 _ACEOF
7109 cat confdefs.h >>conftest.$ac_ext
7110 cat >>conftest.$ac_ext <<_ACEOF
7111 /* end confdefs.h. */
7112 $ac_includes_default
7114 #include <$ac_header>
7115 _ACEOF
7116 rm -f conftest.$ac_objext
7117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7118 (eval $ac_compile) 2>conftest.er1
7119 ac_status=$?
7120 grep -v '^ *+' conftest.er1 >conftest.err
7121 rm -f conftest.er1
7122 cat conftest.err >&5
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); } &&
7125 { ac_try='test -z "$ac_c_werror_flag"
7126 || test ! -s conftest.err'
7127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7128 (eval $ac_try) 2>&5
7129 ac_status=$?
7130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131 (exit $ac_status); }; } &&
7132 { ac_try='test -s conftest.$ac_objext'
7133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7134 (eval $ac_try) 2>&5
7135 ac_status=$?
7136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137 (exit $ac_status); }; }; then
7138 eval "$as_ac_Header=yes"
7139 else
7140 echo "$as_me: failed program was:" >&5
7141 sed 's/^/| /' conftest.$ac_ext >&5
7143 eval "$as_ac_Header=no"
7145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7147 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7148 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7149 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7150 cat >>confdefs.h <<_ACEOF
7151 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7152 _ACEOF
7156 done
7160 # This can be used to rebuild libtool when needed
7161 LIBTOOL_DEPS="$ltmain"
7163 # Always use our own libtool.
7164 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7190 test -z "$LN_S" && LN_S="ln -s"
7205 if test -n "${ZSH_VERSION+set}" ; then
7206 setopt NO_GLOB_SUBST
7209 echo "$as_me:$LINENO: checking for objdir" >&5
7210 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7211 if test "${lt_cv_objdir+set}" = set; then
7212 echo $ECHO_N "(cached) $ECHO_C" >&6
7213 else
7214 rm -f .libs 2>/dev/null
7215 mkdir .libs 2>/dev/null
7216 if test -d .libs; then
7217 lt_cv_objdir=.libs
7218 else
7219 # MS-DOS does not allow filenames that begin with a dot.
7220 lt_cv_objdir=_libs
7222 rmdir .libs 2>/dev/null
7224 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7225 echo "${ECHO_T}$lt_cv_objdir" >&6
7226 objdir=$lt_cv_objdir
7232 cat >>confdefs.h <<_ACEOF
7233 #define LT_OBJDIR "$lt_cv_objdir/"
7234 _ACEOF
7252 case $host_os in
7253 aix3*)
7254 # AIX sometimes has problems with the GCC collect2 program. For some
7255 # reason, if we set the COLLECT_NAMES environment variable, the problems
7256 # vanish in a puff of smoke.
7257 if test "X${COLLECT_NAMES+set}" != Xset; then
7258 COLLECT_NAMES=
7259 export COLLECT_NAMES
7262 esac
7264 # Sed substitution that helps us do robust quoting. It backslashifies
7265 # metacharacters that are still active within double-quoted strings.
7266 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7268 # Same as above, but do not quote variable references.
7269 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7271 # Sed substitution to delay expansion of an escaped shell variable in a
7272 # double_quote_subst'ed string.
7273 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7275 # Sed substitution to delay expansion of an escaped single quote.
7276 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7278 # Sed substitution to avoid accidental globbing in evaled expressions
7279 no_glob_subst='s/\*/\\\*/g'
7281 # Global variables:
7282 ofile=libtool
7283 can_build_shared=yes
7285 # All known linkers require a `.a' archive for static linking (except MSVC,
7286 # which needs '.lib').
7287 libext=a
7289 with_gnu_ld="$lt_cv_prog_gnu_ld"
7291 old_CC="$CC"
7292 old_CFLAGS="$CFLAGS"
7294 # Set sane defaults for various variables
7295 test -z "$CC" && CC=cc
7296 test -z "$LTCC" && LTCC=$CC
7297 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7298 test -z "$LD" && LD=ld
7299 test -z "$ac_objext" && ac_objext=o
7301 for cc_temp in $compiler""; do
7302 case $cc_temp in
7303 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7304 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7305 \-*) ;;
7306 *) break;;
7307 esac
7308 done
7309 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7312 # Only perform the check for file, if the check method requires it
7313 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7314 case $deplibs_check_method in
7315 file_magic*)
7316 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7317 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7318 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7319 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7320 echo $ECHO_N "(cached) $ECHO_C" >&6
7321 else
7322 case $MAGIC_CMD in
7323 [\\/*] | ?:[\\/]*)
7324 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7327 lt_save_MAGIC_CMD="$MAGIC_CMD"
7328 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7329 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7330 for ac_dir in $ac_dummy; do
7331 IFS="$lt_save_ifs"
7332 test -z "$ac_dir" && ac_dir=.
7333 if test -f $ac_dir/${ac_tool_prefix}file; then
7334 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7335 if test -n "$file_magic_test_file"; then
7336 case $deplibs_check_method in
7337 "file_magic "*)
7338 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7339 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7340 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7341 $EGREP "$file_magic_regex" > /dev/null; then
7343 else
7344 cat <<_LT_EOF 1>&2
7346 *** Warning: the command libtool uses to detect shared libraries,
7347 *** $file_magic_cmd, produces output that libtool cannot recognize.
7348 *** The result is that libtool may fail to recognize shared libraries
7349 *** as such. This will affect the creation of libtool libraries that
7350 *** depend on shared libraries, but programs linked with such libtool
7351 *** libraries will work regardless of this problem. Nevertheless, you
7352 *** may want to report the problem to your system manager and/or to
7353 *** bug-libtool@gnu.org
7355 _LT_EOF
7356 fi ;;
7357 esac
7359 break
7361 done
7362 IFS="$lt_save_ifs"
7363 MAGIC_CMD="$lt_save_MAGIC_CMD"
7365 esac
7368 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7369 if test -n "$MAGIC_CMD"; then
7370 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7371 echo "${ECHO_T}$MAGIC_CMD" >&6
7372 else
7373 echo "$as_me:$LINENO: result: no" >&5
7374 echo "${ECHO_T}no" >&6
7381 if test -z "$lt_cv_path_MAGIC_CMD"; then
7382 if test -n "$ac_tool_prefix"; then
7383 echo "$as_me:$LINENO: checking for file" >&5
7384 echo $ECHO_N "checking for file... $ECHO_C" >&6
7385 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7386 echo $ECHO_N "(cached) $ECHO_C" >&6
7387 else
7388 case $MAGIC_CMD in
7389 [\\/*] | ?:[\\/]*)
7390 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7393 lt_save_MAGIC_CMD="$MAGIC_CMD"
7394 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7395 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7396 for ac_dir in $ac_dummy; do
7397 IFS="$lt_save_ifs"
7398 test -z "$ac_dir" && ac_dir=.
7399 if test -f $ac_dir/file; then
7400 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7401 if test -n "$file_magic_test_file"; then
7402 case $deplibs_check_method in
7403 "file_magic "*)
7404 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7405 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7406 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7407 $EGREP "$file_magic_regex" > /dev/null; then
7409 else
7410 cat <<_LT_EOF 1>&2
7412 *** Warning: the command libtool uses to detect shared libraries,
7413 *** $file_magic_cmd, produces output that libtool cannot recognize.
7414 *** The result is that libtool may fail to recognize shared libraries
7415 *** as such. This will affect the creation of libtool libraries that
7416 *** depend on shared libraries, but programs linked with such libtool
7417 *** libraries will work regardless of this problem. Nevertheless, you
7418 *** may want to report the problem to your system manager and/or to
7419 *** bug-libtool@gnu.org
7421 _LT_EOF
7422 fi ;;
7423 esac
7425 break
7427 done
7428 IFS="$lt_save_ifs"
7429 MAGIC_CMD="$lt_save_MAGIC_CMD"
7431 esac
7434 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7435 if test -n "$MAGIC_CMD"; then
7436 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7437 echo "${ECHO_T}$MAGIC_CMD" >&6
7438 else
7439 echo "$as_me:$LINENO: result: no" >&5
7440 echo "${ECHO_T}no" >&6
7444 else
7445 MAGIC_CMD=:
7451 esac
7453 # Use C for the default configuration in the libtool script
7455 lt_save_CC="$CC"
7456 ac_ext=c
7457 ac_cpp='$CPP $CPPFLAGS'
7458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7463 # Source file extension for C test sources.
7464 ac_ext=c
7466 # Object file extension for compiled C test sources.
7467 objext=o
7468 objext=$objext
7470 # Code to be used in simple compile tests
7471 lt_simple_compile_test_code="int some_variable = 0;"
7473 # Code to be used in simple link tests
7474 lt_simple_link_test_code='int main(){return(0);}'
7482 # If no C compiler was specified, use CC.
7483 LTCC=${LTCC-"$CC"}
7485 # If no C compiler flags were specified, use CFLAGS.
7486 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7488 # Allow CC to be a program name with arguments.
7489 compiler=$CC
7491 # Save the default compiler, since it gets overwritten when the other
7492 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7493 compiler_DEFAULT=$CC
7495 # save warnings/boilerplate of simple test code
7496 ac_outfile=conftest.$ac_objext
7497 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7498 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7499 _lt_compiler_boilerplate=`cat conftest.err`
7500 $RM conftest*
7502 ac_outfile=conftest.$ac_objext
7503 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7504 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7505 _lt_linker_boilerplate=`cat conftest.err`
7506 $RM conftest*
7509 ## CAVEAT EMPTOR:
7510 ## There is no encapsulation within the following macros, do not change
7511 ## the running order or otherwise move them around unless you know exactly
7512 ## what you are doing...
7513 if test -n "$compiler"; then
7515 lt_prog_compiler_no_builtin_flag=
7517 if test "$GCC" = yes; then
7518 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7520 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7521 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7522 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7523 echo $ECHO_N "(cached) $ECHO_C" >&6
7524 else
7525 lt_cv_prog_compiler_rtti_exceptions=no
7526 ac_outfile=conftest.$ac_objext
7527 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7528 lt_compiler_flag="-fno-rtti -fno-exceptions"
7529 # Insert the option either (1) after the last *FLAGS variable, or
7530 # (2) before a word containing "conftest.", or (3) at the end.
7531 # Note that $ac_compile itself does not contain backslashes and begins
7532 # with a dollar sign (not a hyphen), so the echo should work correctly.
7533 # The option is referenced via a variable to avoid confusing sed.
7534 lt_compile=`echo "$ac_compile" | $SED \
7535 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7536 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7537 -e 's:$: $lt_compiler_flag:'`
7538 (eval echo "\"\$as_me:7538: $lt_compile\"" >&5)
7539 (eval "$lt_compile" 2>conftest.err)
7540 ac_status=$?
7541 cat conftest.err >&5
7542 echo "$as_me:7542: \$? = $ac_status" >&5
7543 if (exit $ac_status) && test -s "$ac_outfile"; then
7544 # The compiler can only warn and ignore the option if not recognized
7545 # So say no if there are warnings other than the usual output.
7546 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7547 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7548 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7549 lt_cv_prog_compiler_rtti_exceptions=yes
7552 $RM conftest*
7555 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7556 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7558 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7559 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7560 else
7571 lt_prog_compiler_wl=
7572 lt_prog_compiler_pic=
7573 lt_prog_compiler_static=
7575 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7576 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7578 if test "$GCC" = yes; then
7579 lt_prog_compiler_wl='-Wl,'
7580 lt_prog_compiler_static='-static'
7582 case $host_os in
7583 aix*)
7584 # All AIX code is PIC.
7585 if test "$host_cpu" = ia64; then
7586 # AIX 5 now supports IA64 processor
7587 lt_prog_compiler_static='-Bstatic'
7591 amigaos*)
7592 if test "$host_cpu" = m68k; then
7593 # FIXME: we need at least 68020 code to build shared libraries, but
7594 # adding the `-m68020' flag to GCC prevents building anything better,
7595 # like `-m68040'.
7596 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7600 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7601 # PIC is the default for these OSes.
7604 mingw* | cygwin* | pw32* | os2*)
7605 # This hack is so that the source file can tell whether it is being
7606 # built for inclusion in a dll (and should export symbols for example).
7607 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7608 # (--disable-auto-import) libraries
7609 lt_prog_compiler_pic='-DDLL_EXPORT'
7612 darwin* | rhapsody*)
7613 # PIC is the default on this platform
7614 # Common symbols not allowed in MH_DYLIB files
7615 lt_prog_compiler_pic='-fno-common'
7618 hpux*)
7619 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7620 # not for PA HP-UX.
7621 case $host_cpu in
7622 hppa*64*|ia64*)
7623 # +Z the default
7626 lt_prog_compiler_pic='-fPIC'
7628 esac
7631 interix[3-9]*)
7632 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7633 # Instead, we relocate shared libraries at runtime.
7636 msdosdjgpp*)
7637 # Just because we use GCC doesn't mean we suddenly get shared libraries
7638 # on systems that don't support them.
7639 lt_prog_compiler_can_build_shared=no
7640 enable_shared=no
7643 *nto* | *qnx*)
7644 # QNX uses GNU C++, but need to define -shared option too, otherwise
7645 # it will coredump.
7646 lt_prog_compiler_pic='-fPIC -shared'
7649 sysv4*MP*)
7650 if test -d /usr/nec; then
7651 lt_prog_compiler_pic=-Kconform_pic
7656 lt_prog_compiler_pic='-fPIC'
7658 esac
7659 else
7660 # PORTME Check for flag to pass linker flags through the system compiler.
7661 case $host_os in
7662 aix*)
7663 lt_prog_compiler_wl='-Wl,'
7664 if test "$host_cpu" = ia64; then
7665 # AIX 5 now supports IA64 processor
7666 lt_prog_compiler_static='-Bstatic'
7667 else
7668 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7671 darwin*)
7672 # PIC is the default on this platform
7673 # Common symbols not allowed in MH_DYLIB files
7674 case $cc_basename in
7675 xlc*)
7676 lt_prog_compiler_pic='-qnocommon'
7677 lt_prog_compiler_wl='-Wl,'
7679 esac
7682 mingw* | cygwin* | pw32* | os2*)
7683 # This hack is so that the source file can tell whether it is being
7684 # built for inclusion in a dll (and should export symbols for example).
7685 lt_prog_compiler_pic='-DDLL_EXPORT'
7688 hpux9* | hpux10* | hpux11*)
7689 lt_prog_compiler_wl='-Wl,'
7690 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7691 # not for PA HP-UX.
7692 case $host_cpu in
7693 hppa*64*|ia64*)
7694 # +Z the default
7697 lt_prog_compiler_pic='+Z'
7699 esac
7700 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7701 lt_prog_compiler_static='${wl}-a ${wl}archive'
7704 irix5* | irix6* | nonstopux*)
7705 lt_prog_compiler_wl='-Wl,'
7706 # PIC (with -KPIC) is the default.
7707 lt_prog_compiler_static='-non_shared'
7710 linux* | k*bsd*-gnu)
7711 case $cc_basename in
7712 icc* | ecc*)
7713 lt_prog_compiler_wl='-Wl,'
7714 lt_prog_compiler_pic='-KPIC'
7715 lt_prog_compiler_static='-static'
7717 pgcc* | pgf77* | pgf90* | pgf95*)
7718 # Portland Group compilers (*not* the Pentium gcc compiler,
7719 # which looks to be a dead project)
7720 lt_prog_compiler_wl='-Wl,'
7721 lt_prog_compiler_pic='-fpic'
7722 lt_prog_compiler_static='-Bstatic'
7724 ccc*)
7725 lt_prog_compiler_wl='-Wl,'
7726 # All Alpha code is PIC.
7727 lt_prog_compiler_static='-non_shared'
7730 case `$CC -V 2>&1 | sed 5q` in
7731 *Sun\ C*)
7732 # Sun C 5.9
7733 lt_prog_compiler_pic='-KPIC'
7734 lt_prog_compiler_static='-Bstatic'
7735 lt_prog_compiler_wl='-Wl,'
7737 *Sun\ F*)
7738 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7739 lt_prog_compiler_pic='-KPIC'
7740 lt_prog_compiler_static='-Bstatic'
7741 lt_prog_compiler_wl=''
7743 esac
7745 esac
7748 newsos6)
7749 lt_prog_compiler_pic='-KPIC'
7750 lt_prog_compiler_static='-Bstatic'
7753 *nto* | *qnx*)
7754 # QNX uses GNU C++, but need to define -shared option too, otherwise
7755 # it will coredump.
7756 lt_prog_compiler_pic='-fPIC -shared'
7759 osf3* | osf4* | osf5*)
7760 lt_prog_compiler_wl='-Wl,'
7761 # All OSF/1 code is PIC.
7762 lt_prog_compiler_static='-non_shared'
7765 rdos*)
7766 lt_prog_compiler_static='-non_shared'
7769 solaris*)
7770 lt_prog_compiler_pic='-KPIC'
7771 lt_prog_compiler_static='-Bstatic'
7772 case $cc_basename in
7773 f77* | f90* | f95*)
7774 lt_prog_compiler_wl='-Qoption ld ';;
7776 lt_prog_compiler_wl='-Wl,';;
7777 esac
7780 sunos4*)
7781 lt_prog_compiler_wl='-Qoption ld '
7782 lt_prog_compiler_pic='-PIC'
7783 lt_prog_compiler_static='-Bstatic'
7786 sysv4 | sysv4.2uw2* | sysv4.3*)
7787 lt_prog_compiler_wl='-Wl,'
7788 lt_prog_compiler_pic='-KPIC'
7789 lt_prog_compiler_static='-Bstatic'
7792 sysv4*MP*)
7793 if test -d /usr/nec ;then
7794 lt_prog_compiler_pic='-Kconform_pic'
7795 lt_prog_compiler_static='-Bstatic'
7799 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7800 lt_prog_compiler_wl='-Wl,'
7801 lt_prog_compiler_pic='-KPIC'
7802 lt_prog_compiler_static='-Bstatic'
7805 unicos*)
7806 lt_prog_compiler_wl='-Wl,'
7807 lt_prog_compiler_can_build_shared=no
7810 uts4*)
7811 lt_prog_compiler_pic='-pic'
7812 lt_prog_compiler_static='-Bstatic'
7816 lt_prog_compiler_can_build_shared=no
7818 esac
7821 case $host_os in
7822 # For platforms which do not support PIC, -DPIC is meaningless:
7823 *djgpp*)
7824 lt_prog_compiler_pic=
7827 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7829 esac
7830 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7831 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7839 # Check to make sure the PIC flag actually works.
7841 if test -n "$lt_prog_compiler_pic"; then
7842 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7843 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7844 if test "${lt_prog_compiler_pic_works+set}" = set; then
7845 echo $ECHO_N "(cached) $ECHO_C" >&6
7846 else
7847 lt_prog_compiler_pic_works=no
7848 ac_outfile=conftest.$ac_objext
7849 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7850 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7851 # Insert the option either (1) after the last *FLAGS variable, or
7852 # (2) before a word containing "conftest.", or (3) at the end.
7853 # Note that $ac_compile itself does not contain backslashes and begins
7854 # with a dollar sign (not a hyphen), so the echo should work correctly.
7855 # The option is referenced via a variable to avoid confusing sed.
7856 lt_compile=`echo "$ac_compile" | $SED \
7857 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7858 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7859 -e 's:$: $lt_compiler_flag:'`
7860 (eval echo "\"\$as_me:7860: $lt_compile\"" >&5)
7861 (eval "$lt_compile" 2>conftest.err)
7862 ac_status=$?
7863 cat conftest.err >&5
7864 echo "$as_me:7864: \$? = $ac_status" >&5
7865 if (exit $ac_status) && test -s "$ac_outfile"; then
7866 # The compiler can only warn and ignore the option if not recognized
7867 # So say no if there are warnings other than the usual output.
7868 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7869 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7870 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7871 lt_prog_compiler_pic_works=yes
7874 $RM conftest*
7877 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7878 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7880 if test x"$lt_prog_compiler_pic_works" = xyes; then
7881 case $lt_prog_compiler_pic in
7882 "" | " "*) ;;
7883 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7884 esac
7885 else
7886 lt_prog_compiler_pic=
7887 lt_prog_compiler_can_build_shared=no
7898 # Check to make sure the static flag actually works.
7900 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7901 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7902 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7903 if test "${lt_prog_compiler_static_works+set}" = set; then
7904 echo $ECHO_N "(cached) $ECHO_C" >&6
7905 else
7906 lt_prog_compiler_static_works=no
7907 save_LDFLAGS="$LDFLAGS"
7908 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7909 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7910 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7911 # The linker can only warn and ignore the option if not recognized
7912 # So say no if there are warnings
7913 if test -s conftest.err; then
7914 # Append any errors to the config.log.
7915 cat conftest.err 1>&5
7916 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7917 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7918 if diff conftest.exp conftest.er2 >/dev/null; then
7919 lt_prog_compiler_static_works=yes
7921 else
7922 lt_prog_compiler_static_works=yes
7925 $RM conftest*
7926 LDFLAGS="$save_LDFLAGS"
7929 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7930 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7932 if test x"$lt_prog_compiler_static_works" = xyes; then
7934 else
7935 lt_prog_compiler_static=
7944 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7945 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7946 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7947 echo $ECHO_N "(cached) $ECHO_C" >&6
7948 else
7949 lt_cv_prog_compiler_c_o=no
7950 $RM -r conftest 2>/dev/null
7951 mkdir conftest
7952 cd conftest
7953 mkdir out
7954 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7956 lt_compiler_flag="-o out/conftest2.$ac_objext"
7957 # Insert the option either (1) after the last *FLAGS variable, or
7958 # (2) before a word containing "conftest.", or (3) at the end.
7959 # Note that $ac_compile itself does not contain backslashes and begins
7960 # with a dollar sign (not a hyphen), so the echo should work correctly.
7961 lt_compile=`echo "$ac_compile" | $SED \
7962 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7963 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7964 -e 's:$: $lt_compiler_flag:'`
7965 (eval echo "\"\$as_me:7965: $lt_compile\"" >&5)
7966 (eval "$lt_compile" 2>out/conftest.err)
7967 ac_status=$?
7968 cat out/conftest.err >&5
7969 echo "$as_me:7969: \$? = $ac_status" >&5
7970 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7971 then
7972 # The compiler can only warn and ignore the option if not recognized
7973 # So say no if there are warnings
7974 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7975 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7976 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7977 lt_cv_prog_compiler_c_o=yes
7980 chmod u+w . 2>&5
7981 $RM conftest*
7982 # SGI C++ compiler will create directory out/ii_files/ for
7983 # template instantiation
7984 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7985 $RM out/* && rmdir out
7986 cd ..
7987 $RM -r conftest
7988 $RM conftest*
7991 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7992 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7999 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8000 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8001 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8002 echo $ECHO_N "(cached) $ECHO_C" >&6
8003 else
8004 lt_cv_prog_compiler_c_o=no
8005 $RM -r conftest 2>/dev/null
8006 mkdir conftest
8007 cd conftest
8008 mkdir out
8009 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8011 lt_compiler_flag="-o out/conftest2.$ac_objext"
8012 # Insert the option either (1) after the last *FLAGS variable, or
8013 # (2) before a word containing "conftest.", or (3) at the end.
8014 # Note that $ac_compile itself does not contain backslashes and begins
8015 # with a dollar sign (not a hyphen), so the echo should work correctly.
8016 lt_compile=`echo "$ac_compile" | $SED \
8017 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8018 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8019 -e 's:$: $lt_compiler_flag:'`
8020 (eval echo "\"\$as_me:8020: $lt_compile\"" >&5)
8021 (eval "$lt_compile" 2>out/conftest.err)
8022 ac_status=$?
8023 cat out/conftest.err >&5
8024 echo "$as_me:8024: \$? = $ac_status" >&5
8025 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8026 then
8027 # The compiler can only warn and ignore the option if not recognized
8028 # So say no if there are warnings
8029 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8030 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8031 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8032 lt_cv_prog_compiler_c_o=yes
8035 chmod u+w . 2>&5
8036 $RM conftest*
8037 # SGI C++ compiler will create directory out/ii_files/ for
8038 # template instantiation
8039 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8040 $RM out/* && rmdir out
8041 cd ..
8042 $RM -r conftest
8043 $RM conftest*
8046 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8047 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8052 hard_links="nottested"
8053 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8054 # do not overwrite the value of need_locks provided by the user
8055 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8056 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8057 hard_links=yes
8058 $RM conftest*
8059 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8060 touch conftest.a
8061 ln conftest.a conftest.b 2>&5 || hard_links=no
8062 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8063 echo "$as_me:$LINENO: result: $hard_links" >&5
8064 echo "${ECHO_T}$hard_links" >&6
8065 if test "$hard_links" = no; then
8066 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8067 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8068 need_locks=warn
8070 else
8071 need_locks=no
8079 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8080 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8082 runpath_var=
8083 allow_undefined_flag=
8084 always_export_symbols=no
8085 archive_cmds=
8086 archive_expsym_cmds=
8087 compiler_needs_object=no
8088 enable_shared_with_static_runtimes=no
8089 export_dynamic_flag_spec=
8090 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8091 hardcode_automatic=no
8092 hardcode_direct=no
8093 hardcode_direct_absolute=no
8094 hardcode_libdir_flag_spec=
8095 hardcode_libdir_flag_spec_ld=
8096 hardcode_libdir_separator=
8097 hardcode_minus_L=no
8098 hardcode_shlibpath_var=unsupported
8099 inherit_rpath=no
8100 link_all_deplibs=unknown
8101 module_cmds=
8102 module_expsym_cmds=
8103 old_archive_from_new_cmds=
8104 old_archive_from_expsyms_cmds=
8105 thread_safe_flag_spec=
8106 whole_archive_flag_spec=
8107 # include_expsyms should be a list of space-separated symbols to be *always*
8108 # included in the symbol list
8109 include_expsyms=
8110 # exclude_expsyms can be an extended regexp of symbols to exclude
8111 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8112 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8113 # as well as any symbol that contains `d'.
8114 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8115 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8116 # platforms (ab)use it in PIC code, but their linkers get confused if
8117 # the symbol is explicitly referenced. Since portable code cannot
8118 # rely on this symbol name, it's probably fine to never include it in
8119 # preloaded symbol tables.
8120 extract_expsyms_cmds=
8122 case $host_os in
8123 cygwin* | mingw* | pw32*)
8124 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8125 # When not using gcc, we currently assume that we are using
8126 # Microsoft Visual C++.
8127 if test "$GCC" != yes; then
8128 with_gnu_ld=no
8131 interix*)
8132 # we just hope/assume this is gcc and not c89 (= MSVC++)
8133 with_gnu_ld=yes
8135 openbsd*)
8136 with_gnu_ld=no
8138 esac
8140 ld_shlibs=yes
8141 if test "$with_gnu_ld" = yes; then
8142 # If archive_cmds runs LD, not CC, wlarc should be empty
8143 wlarc='${wl}'
8145 # Set some defaults for GNU ld with shared library support. These
8146 # are reset later if shared libraries are not supported. Putting them
8147 # here allows them to be overridden if necessary.
8148 runpath_var=LD_RUN_PATH
8149 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8150 export_dynamic_flag_spec='${wl}--export-dynamic'
8151 # ancient GNU ld didn't support --whole-archive et. al.
8152 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8153 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8154 else
8155 whole_archive_flag_spec=
8157 supports_anon_versioning=no
8158 case `$LD -v 2>&1` in
8159 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8160 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8161 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8162 *\ 2.11.*) ;; # other 2.11 versions
8163 *) supports_anon_versioning=yes ;;
8164 esac
8166 # See if GNU ld supports shared libraries.
8167 case $host_os in
8168 aix[3-9]*)
8169 # On AIX/PPC, the GNU linker is very broken
8170 if test "$host_cpu" != ia64; then
8171 ld_shlibs=no
8172 cat <<_LT_EOF 1>&2
8174 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8175 *** to be unable to reliably create shared libraries on AIX.
8176 *** Therefore, libtool is disabling shared libraries support. If you
8177 *** really care for shared libraries, you may want to modify your PATH
8178 *** so that a non-GNU linker is found, and then restart.
8180 _LT_EOF
8184 amigaos*)
8185 if test "$host_cpu" = m68k; then
8186 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)'
8187 hardcode_libdir_flag_spec='-L$libdir'
8188 hardcode_minus_L=yes
8191 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8192 # that the semantics of dynamic libraries on AmigaOS, at least up
8193 # to version 4, is to share data among multiple programs linked
8194 # with the same dynamic library. Since this doesn't match the
8195 # behavior of shared libraries on other platforms, we can't use
8196 # them.
8197 ld_shlibs=no
8200 beos*)
8201 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8202 allow_undefined_flag=unsupported
8203 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8204 # support --undefined. This deserves some investigation. FIXME
8205 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8206 else
8207 ld_shlibs=no
8211 cygwin* | mingw* | pw32*)
8212 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8213 # as there is no search path for DLLs.
8214 hardcode_libdir_flag_spec='-L$libdir'
8215 allow_undefined_flag=unsupported
8216 always_export_symbols=no
8217 enable_shared_with_static_runtimes=yes
8218 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8220 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8221 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8222 # If the export-symbols file already is a .def file (1st line
8223 # is EXPORTS), use it as is; otherwise, prepend...
8224 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8225 cp $export_symbols $output_objdir/$soname.def;
8226 else
8227 echo EXPORTS > $output_objdir/$soname.def;
8228 cat $export_symbols >> $output_objdir/$soname.def;
8230 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8231 else
8232 ld_shlibs=no
8236 interix[3-9]*)
8237 hardcode_direct=no
8238 hardcode_shlibpath_var=no
8239 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8240 export_dynamic_flag_spec='${wl}-E'
8241 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8242 # Instead, shared libraries are loaded at an image base (0x10000000 by
8243 # default) and relocated if they conflict, which is a slow very memory
8244 # consuming and fragmenting process. To avoid this, we pick a random,
8245 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8246 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8247 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8248 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'
8251 gnu* | linux* | tpf* | k*bsd*-gnu)
8252 tmp_diet=no
8253 if test "$host_os" = linux-dietlibc; then
8254 case $cc_basename in
8255 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8256 esac
8258 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8259 && test "$tmp_diet" = no
8260 then
8261 tmp_addflag=
8262 case $cc_basename,$host_cpu in
8263 pgcc*) # Portland Group C compiler
8264 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'
8265 tmp_addflag=' $pic_flag'
8267 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8268 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'
8269 tmp_addflag=' $pic_flag -Mnomain' ;;
8270 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8271 tmp_addflag=' -i_dynamic' ;;
8272 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8273 tmp_addflag=' -i_dynamic -nofor_main' ;;
8274 ifc* | ifort*) # Intel Fortran compiler
8275 tmp_addflag=' -nofor_main' ;;
8276 esac
8277 case `$CC -V 2>&1 | sed 5q` in
8278 *Sun\ C*) # Sun C 5.9
8279 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'
8280 compiler_needs_object=yes
8281 tmp_sharedflag='-G' ;;
8282 *Sun\ F*) # Sun Fortran 8.3
8283 tmp_sharedflag='-G' ;;
8285 tmp_sharedflag='-shared' ;;
8286 esac
8287 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8289 if test "x$supports_anon_versioning" = xyes; then
8290 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8291 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8292 echo "local: *; };" >> $output_objdir/$libname.ver~
8293 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8295 else
8296 ld_shlibs=no
8300 netbsd*)
8301 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8302 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8303 wlarc=
8304 else
8305 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8306 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8310 solaris*)
8311 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8312 ld_shlibs=no
8313 cat <<_LT_EOF 1>&2
8315 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8316 *** create shared libraries on Solaris systems. Therefore, libtool
8317 *** is disabling shared libraries support. We urge you to upgrade GNU
8318 *** binutils to release 2.9.1 or newer. Another option is to modify
8319 *** your PATH or compiler configuration so that the native linker is
8320 *** used, and then restart.
8322 _LT_EOF
8323 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8324 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8325 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8326 else
8327 ld_shlibs=no
8331 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8332 case `$LD -v 2>&1` in
8333 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8334 ld_shlibs=no
8335 cat <<_LT_EOF 1>&2
8337 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8338 *** reliably create shared libraries on SCO systems. Therefore, libtool
8339 *** is disabling shared libraries support. We urge you to upgrade GNU
8340 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8341 *** your PATH or compiler configuration so that the native linker is
8342 *** used, and then restart.
8344 _LT_EOF
8347 # For security reasons, it is highly recommended that you always
8348 # use absolute paths for naming shared libraries, and exclude the
8349 # DT_RUNPATH tag from executables and libraries. But doing so
8350 # requires that you compile everything twice, which is a pain.
8351 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8352 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8353 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8354 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8355 else
8356 ld_shlibs=no
8359 esac
8362 sunos4*)
8363 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8364 wlarc=
8365 hardcode_direct=yes
8366 hardcode_shlibpath_var=no
8370 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8371 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8372 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8373 else
8374 ld_shlibs=no
8377 esac
8379 if test "$ld_shlibs" = no; then
8380 runpath_var=
8381 hardcode_libdir_flag_spec=
8382 export_dynamic_flag_spec=
8383 whole_archive_flag_spec=
8385 else
8386 # PORTME fill in a description of your system's linker (not GNU ld)
8387 case $host_os in
8388 aix3*)
8389 allow_undefined_flag=unsupported
8390 always_export_symbols=yes
8391 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'
8392 # Note: this linker hardcodes the directories in LIBPATH if there
8393 # are no directories specified by -L.
8394 hardcode_minus_L=yes
8395 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8396 # Neither direct hardcoding nor static linking is supported with a
8397 # broken collect2.
8398 hardcode_direct=unsupported
8402 aix[4-9]*)
8403 if test "$host_cpu" = ia64; then
8404 # On IA64, the linker does run time linking by default, so we don't
8405 # have to do anything special.
8406 aix_use_runtimelinking=no
8407 exp_sym_flag='-Bexport'
8408 no_entry_flag=""
8409 else
8410 # If we're using GNU nm, then we don't want the "-C" option.
8411 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8412 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8413 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'
8414 else
8415 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'
8417 aix_use_runtimelinking=no
8419 # Test if we are trying to use run time linking or normal
8420 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8421 # need to do runtime linking.
8422 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8423 for ld_flag in $LDFLAGS; do
8424 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8425 aix_use_runtimelinking=yes
8426 break
8428 done
8430 esac
8432 exp_sym_flag='-bexport'
8433 no_entry_flag='-bnoentry'
8436 # When large executables or shared objects are built, AIX ld can
8437 # have problems creating the table of contents. If linking a library
8438 # or program results in "error TOC overflow" add -mminimal-toc to
8439 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8440 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8442 archive_cmds=''
8443 hardcode_direct=yes
8444 hardcode_direct_absolute=yes
8445 hardcode_libdir_separator=':'
8446 link_all_deplibs=yes
8447 file_list_spec='${wl}-f,'
8449 if test "$GCC" = yes; then
8450 case $host_os in aix4.[012]|aix4.[012].*)
8451 # We only want to do this on AIX 4.2 and lower, the check
8452 # below for broken collect2 doesn't work under 4.3+
8453 collect2name=`${CC} -print-prog-name=collect2`
8454 if test -f "$collect2name" &&
8455 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8456 then
8457 # We have reworked collect2
8459 else
8460 # We have old collect2
8461 hardcode_direct=unsupported
8462 # It fails to find uninstalled libraries when the uninstalled
8463 # path is not listed in the libpath. Setting hardcode_minus_L
8464 # to unsupported forces relinking
8465 hardcode_minus_L=yes
8466 hardcode_libdir_flag_spec='-L$libdir'
8467 hardcode_libdir_separator=
8470 esac
8471 shared_flag='-shared'
8472 if test "$aix_use_runtimelinking" = yes; then
8473 shared_flag="$shared_flag "'${wl}-G'
8475 else
8476 # not using gcc
8477 if test "$host_cpu" = ia64; then
8478 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8479 # chokes on -Wl,-G. The following line is correct:
8480 shared_flag='-G'
8481 else
8482 if test "$aix_use_runtimelinking" = yes; then
8483 shared_flag='${wl}-G'
8484 else
8485 shared_flag='${wl}-bM:SRE'
8490 # It seems that -bexpall does not export symbols beginning with
8491 # underscore (_), so it is better to generate a list of symbols to export.
8492 always_export_symbols=yes
8493 if test "$aix_use_runtimelinking" = yes; then
8494 # Warning - without using the other runtime loading flags (-brtl),
8495 # -berok will link without error, but may produce a broken library.
8496 allow_undefined_flag='-berok'
8497 # Determine the default libpath from the value encoded in an
8498 # empty executable.
8499 cat >conftest.$ac_ext <<_ACEOF
8500 /* confdefs.h. */
8501 _ACEOF
8502 cat confdefs.h >>conftest.$ac_ext
8503 cat >>conftest.$ac_ext <<_ACEOF
8504 /* end confdefs.h. */
8507 main ()
8511 return 0;
8513 _ACEOF
8514 rm -f conftest.$ac_objext conftest$ac_exeext
8515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8516 (eval $ac_link) 2>conftest.er1
8517 ac_status=$?
8518 grep -v '^ *+' conftest.er1 >conftest.err
8519 rm -f conftest.er1
8520 cat conftest.err >&5
8521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522 (exit $ac_status); } &&
8523 { ac_try='test -z "$ac_c_werror_flag"
8524 || test ! -s conftest.err'
8525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8526 (eval $ac_try) 2>&5
8527 ac_status=$?
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); }; } &&
8530 { ac_try='test -s conftest$ac_exeext'
8531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8532 (eval $ac_try) 2>&5
8533 ac_status=$?
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); }; }; then
8537 lt_aix_libpath_sed='
8538 /Import File Strings/,/^$/ {
8539 /^0/ {
8540 s/^0 *\(.*\)$/\1/
8544 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8545 # Check for a 64-bit object if we didn't find anything.
8546 if test -z "$aix_libpath"; then
8547 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8549 else
8550 echo "$as_me: failed program was:" >&5
8551 sed 's/^/| /' conftest.$ac_ext >&5
8554 rm -f conftest.err conftest.$ac_objext \
8555 conftest$ac_exeext conftest.$ac_ext
8556 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8558 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8559 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"
8560 else
8561 if test "$host_cpu" = ia64; then
8562 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8563 allow_undefined_flag="-z nodefs"
8564 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"
8565 else
8566 # Determine the default libpath from the value encoded in an
8567 # empty executable.
8568 cat >conftest.$ac_ext <<_ACEOF
8569 /* confdefs.h. */
8570 _ACEOF
8571 cat confdefs.h >>conftest.$ac_ext
8572 cat >>conftest.$ac_ext <<_ACEOF
8573 /* end confdefs.h. */
8576 main ()
8580 return 0;
8582 _ACEOF
8583 rm -f conftest.$ac_objext conftest$ac_exeext
8584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8585 (eval $ac_link) 2>conftest.er1
8586 ac_status=$?
8587 grep -v '^ *+' conftest.er1 >conftest.err
8588 rm -f conftest.er1
8589 cat conftest.err >&5
8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591 (exit $ac_status); } &&
8592 { ac_try='test -z "$ac_c_werror_flag"
8593 || test ! -s conftest.err'
8594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8595 (eval $ac_try) 2>&5
8596 ac_status=$?
8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 (exit $ac_status); }; } &&
8599 { ac_try='test -s conftest$ac_exeext'
8600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8601 (eval $ac_try) 2>&5
8602 ac_status=$?
8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 (exit $ac_status); }; }; then
8606 lt_aix_libpath_sed='
8607 /Import File Strings/,/^$/ {
8608 /^0/ {
8609 s/^0 *\(.*\)$/\1/
8613 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8614 # Check for a 64-bit object if we didn't find anything.
8615 if test -z "$aix_libpath"; then
8616 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8618 else
8619 echo "$as_me: failed program was:" >&5
8620 sed 's/^/| /' conftest.$ac_ext >&5
8623 rm -f conftest.err conftest.$ac_objext \
8624 conftest$ac_exeext conftest.$ac_ext
8625 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8627 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8628 # Warning - without using the other run time loading flags,
8629 # -berok will link without error, but may produce a broken library.
8630 no_undefined_flag=' ${wl}-bernotok'
8631 allow_undefined_flag=' ${wl}-berok'
8632 # Exported symbols can be pulled into shared objects from archives
8633 whole_archive_flag_spec='$convenience'
8634 archive_cmds_need_lc=yes
8635 # This is similar to how AIX traditionally builds its shared libraries.
8636 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'
8641 amigaos*)
8642 if test "$host_cpu" = m68k; then
8643 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)'
8644 hardcode_libdir_flag_spec='-L$libdir'
8645 hardcode_minus_L=yes
8647 # see comment about different semantics on the GNU ld section
8648 ld_shlibs=no
8651 bsdi[45]*)
8652 export_dynamic_flag_spec=-rdynamic
8655 cygwin* | mingw* | pw32*)
8656 # When not using gcc, we currently assume that we are using
8657 # Microsoft Visual C++.
8658 # hardcode_libdir_flag_spec is actually meaningless, as there is
8659 # no search path for DLLs.
8660 hardcode_libdir_flag_spec=' '
8661 allow_undefined_flag=unsupported
8662 # Tell ltmain to make .lib files, not .a files.
8663 libext=lib
8664 # Tell ltmain to make .dll files, not .so files.
8665 shrext_cmds=".dll"
8666 # FIXME: Setting linknames here is a bad hack.
8667 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8668 # The linker will automatically build a .lib file if we build a DLL.
8669 old_archive_from_new_cmds='true'
8670 # FIXME: Should let the user specify the lib program.
8671 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8672 fix_srcfile_path='`cygpath -w "$srcfile"`'
8673 enable_shared_with_static_runtimes=yes
8676 darwin* | rhapsody*)
8677 case $host_os in
8678 rhapsody* | darwin1.[012])
8679 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8681 *) # Darwin 1.3 on
8682 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8683 10.[012])
8684 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8686 10.*)
8687 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8689 esac
8691 esac
8692 archive_cmds_need_lc=no
8693 hardcode_direct=no
8694 hardcode_automatic=yes
8695 hardcode_shlibpath_var=unsupported
8696 whole_archive_flag_spec=''
8697 link_all_deplibs=yes
8698 if test "$GCC" = yes ; then
8699 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8700 echo $ECHO_N "(cached) $ECHO_C" >&6
8701 else
8702 lt_cv_apple_cc_single_mod=no
8703 if test -z "${LT_MULTI_MODULE}"; then
8704 # By default we will add the -single_module flag. You can override
8705 # by either setting the environment variable LT_MULTI_MODULE
8706 # non-empty at configure time, or by adding -multi-module to the
8707 # link flags.
8708 echo "int foo(void){return 1;}" > conftest.c
8709 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8710 -dynamiclib ${wl}-single_module conftest.c
8711 if test -f libconftest.dylib; then
8712 lt_cv_apple_cc_single_mod=yes
8713 rm libconftest.dylib
8715 rm conftest.$ac_ext
8719 output_verbose_link_cmd=echo
8720 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8721 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8722 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}'
8723 else
8724 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8725 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}'
8727 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8728 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}'
8729 else
8730 case $cc_basename in
8731 xlc*)
8732 output_verbose_link_cmd=echo
8733 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8734 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8735 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8736 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}'
8737 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}'
8740 ld_shlibs=no
8742 esac
8746 dgux*)
8747 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8748 hardcode_libdir_flag_spec='-L$libdir'
8749 hardcode_shlibpath_var=no
8752 freebsd1*)
8753 ld_shlibs=no
8756 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8757 # support. Future versions do this automatically, but an explicit c++rt0.o
8758 # does not break anything, and helps significantly (at the cost of a little
8759 # extra space).
8760 freebsd2.2*)
8761 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8762 hardcode_libdir_flag_spec='-R$libdir'
8763 hardcode_direct=yes
8764 hardcode_shlibpath_var=no
8767 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8768 freebsd2*)
8769 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8770 hardcode_direct=yes
8771 hardcode_minus_L=yes
8772 hardcode_shlibpath_var=no
8775 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8776 freebsd* | dragonfly*)
8777 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8778 hardcode_libdir_flag_spec='-R$libdir'
8779 hardcode_direct=yes
8780 hardcode_shlibpath_var=no
8783 hpux9*)
8784 if test "$GCC" = yes; then
8785 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'
8786 else
8787 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'
8789 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8790 hardcode_libdir_separator=:
8791 hardcode_direct=yes
8793 # hardcode_minus_L: Not really in the search PATH,
8794 # but as the default location of the library.
8795 hardcode_minus_L=yes
8796 export_dynamic_flag_spec='${wl}-E'
8799 hpux10*)
8800 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8801 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8802 else
8803 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8805 if test "$with_gnu_ld" = no; then
8806 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8807 hardcode_libdir_flag_spec_ld='+b $libdir'
8808 hardcode_libdir_separator=:
8809 hardcode_direct=yes
8810 hardcode_direct_absolute=yes
8811 export_dynamic_flag_spec='${wl}-E'
8812 # hardcode_minus_L: Not really in the search PATH,
8813 # but as the default location of the library.
8814 hardcode_minus_L=yes
8818 hpux11*)
8819 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8820 case $host_cpu in
8821 hppa*64*)
8822 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8824 ia64*)
8825 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8828 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8830 esac
8831 else
8832 case $host_cpu in
8833 hppa*64*)
8834 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8836 ia64*)
8837 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8840 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8842 esac
8844 if test "$with_gnu_ld" = no; then
8845 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8846 hardcode_libdir_separator=:
8848 case $host_cpu in
8849 hppa*64*|ia64*)
8850 hardcode_direct=no
8851 hardcode_shlibpath_var=no
8854 hardcode_direct=yes
8855 hardcode_direct_absolute=yes
8856 export_dynamic_flag_spec='${wl}-E'
8858 # hardcode_minus_L: Not really in the search PATH,
8859 # but as the default location of the library.
8860 hardcode_minus_L=yes
8862 esac
8866 irix5* | irix6* | nonstopux*)
8867 if test "$GCC" = yes; then
8868 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'
8869 # Try to use the -exported_symbol ld option, if it does not
8870 # work, assume that -exports_file does not work either and
8871 # implicitly export all symbols.
8872 save_LDFLAGS="$LDFLAGS"
8873 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8874 cat >conftest.$ac_ext <<_ACEOF
8875 int foo(void) {}
8876 _ACEOF
8877 rm -f conftest.$ac_objext conftest$ac_exeext
8878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8879 (eval $ac_link) 2>conftest.er1
8880 ac_status=$?
8881 grep -v '^ *+' conftest.er1 >conftest.err
8882 rm -f conftest.er1
8883 cat conftest.err >&5
8884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885 (exit $ac_status); } &&
8886 { ac_try='test -z "$ac_c_werror_flag"
8887 || test ! -s conftest.err'
8888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8889 (eval $ac_try) 2>&5
8890 ac_status=$?
8891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892 (exit $ac_status); }; } &&
8893 { ac_try='test -s conftest$ac_exeext'
8894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8895 (eval $ac_try) 2>&5
8896 ac_status=$?
8897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898 (exit $ac_status); }; }; then
8899 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'
8901 else
8902 echo "$as_me: failed program was:" >&5
8903 sed 's/^/| /' conftest.$ac_ext >&5
8906 rm -f conftest.err conftest.$ac_objext \
8907 conftest$ac_exeext conftest.$ac_ext
8908 LDFLAGS="$save_LDFLAGS"
8909 else
8910 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'
8911 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'
8913 archive_cmds_need_lc='no'
8914 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8915 hardcode_libdir_separator=:
8916 inherit_rpath=yes
8917 link_all_deplibs=yes
8920 netbsd*)
8921 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8922 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8923 else
8924 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8926 hardcode_libdir_flag_spec='-R$libdir'
8927 hardcode_direct=yes
8928 hardcode_shlibpath_var=no
8931 newsos6)
8932 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8933 hardcode_direct=yes
8934 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8935 hardcode_libdir_separator=:
8936 hardcode_shlibpath_var=no
8939 *nto* | *qnx*)
8942 openbsd*)
8943 hardcode_direct=yes
8944 hardcode_shlibpath_var=no
8945 hardcode_direct_absolute=yes
8946 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8947 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8948 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8949 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8950 export_dynamic_flag_spec='${wl}-E'
8951 else
8952 case $host_os in
8953 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8954 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8955 hardcode_libdir_flag_spec='-R$libdir'
8958 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8959 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8961 esac
8965 os2*)
8966 hardcode_libdir_flag_spec='-L$libdir'
8967 hardcode_minus_L=yes
8968 allow_undefined_flag=unsupported
8969 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'
8970 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8973 osf3*)
8974 if test "$GCC" = yes; then
8975 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8976 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'
8977 else
8978 allow_undefined_flag=' -expect_unresolved \*'
8979 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'
8981 archive_cmds_need_lc='no'
8982 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8983 hardcode_libdir_separator=:
8986 osf4* | osf5*) # as osf3* with the addition of -msym flag
8987 if test "$GCC" = yes; then
8988 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8989 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'
8990 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8991 else
8992 allow_undefined_flag=' -expect_unresolved \*'
8993 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'
8994 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~
8995 $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'
8997 # Both c and cxx compiler support -rpath directly
8998 hardcode_libdir_flag_spec='-rpath $libdir'
9000 archive_cmds_need_lc='no'
9001 hardcode_libdir_separator=:
9004 solaris*)
9005 no_undefined_flag=' -z defs'
9006 if test "$GCC" = yes; then
9007 wlarc='${wl}'
9008 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9009 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9010 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9011 else
9012 case `$CC -V 2>&1` in
9013 *"Compilers 5.0"*)
9014 wlarc=''
9015 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9016 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9017 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9020 wlarc='${wl}'
9021 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9022 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9023 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9025 esac
9027 hardcode_libdir_flag_spec='-R$libdir'
9028 hardcode_shlibpath_var=no
9029 case $host_os in
9030 solaris2.[0-5] | solaris2.[0-5].*) ;;
9032 # The compiler driver will combine and reorder linker options,
9033 # but understands `-z linker_flag'. GCC discards it without `$wl',
9034 # but is careful enough not to reorder.
9035 # Supported since Solaris 2.6 (maybe 2.5.1?)
9036 if test "$GCC" = yes; then
9037 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9038 else
9039 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9042 esac
9043 link_all_deplibs=yes
9046 sunos4*)
9047 if test "x$host_vendor" = xsequent; then
9048 # Use $CC to link under sequent, because it throws in some extra .o
9049 # files that make .init and .fini sections work.
9050 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9051 else
9052 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9054 hardcode_libdir_flag_spec='-L$libdir'
9055 hardcode_direct=yes
9056 hardcode_minus_L=yes
9057 hardcode_shlibpath_var=no
9060 sysv4)
9061 case $host_vendor in
9062 sni)
9063 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9064 hardcode_direct=yes # is this really true???
9066 siemens)
9067 ## LD is ld it makes a PLAMLIB
9068 ## CC just makes a GrossModule.
9069 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9070 reload_cmds='$CC -r -o $output$reload_objs'
9071 hardcode_direct=no
9073 motorola)
9074 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9075 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9077 esac
9078 runpath_var='LD_RUN_PATH'
9079 hardcode_shlibpath_var=no
9082 sysv4.3*)
9083 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9084 hardcode_shlibpath_var=no
9085 export_dynamic_flag_spec='-Bexport'
9088 sysv4*MP*)
9089 if test -d /usr/nec; then
9090 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9091 hardcode_shlibpath_var=no
9092 runpath_var=LD_RUN_PATH
9093 hardcode_runpath_var=yes
9094 ld_shlibs=yes
9098 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9099 no_undefined_flag='${wl}-z,text'
9100 archive_cmds_need_lc=no
9101 hardcode_shlibpath_var=no
9102 runpath_var='LD_RUN_PATH'
9104 if test "$GCC" = yes; then
9105 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9106 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9107 else
9108 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9109 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9113 sysv5* | sco3.2v5* | sco5v6*)
9114 # Note: We can NOT use -z defs as we might desire, because we do not
9115 # link with -lc, and that would cause any symbols used from libc to
9116 # always be unresolved, which means just about no library would
9117 # ever link correctly. If we're not using GNU ld we use -z text
9118 # though, which does catch some bad symbols but isn't as heavy-handed
9119 # as -z defs.
9120 no_undefined_flag='${wl}-z,text'
9121 allow_undefined_flag='${wl}-z,nodefs'
9122 archive_cmds_need_lc=no
9123 hardcode_shlibpath_var=no
9124 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9125 hardcode_libdir_separator=':'
9126 link_all_deplibs=yes
9127 export_dynamic_flag_spec='${wl}-Bexport'
9128 runpath_var='LD_RUN_PATH'
9130 if test "$GCC" = yes; then
9131 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9132 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9133 else
9134 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9135 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9139 uts4*)
9140 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9141 hardcode_libdir_flag_spec='-L$libdir'
9142 hardcode_shlibpath_var=no
9146 ld_shlibs=no
9148 esac
9150 if test x$host_vendor = xsni; then
9151 case $host in
9152 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9153 export_dynamic_flag_spec='${wl}-Blargedynsym'
9155 esac
9159 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9160 echo "${ECHO_T}$ld_shlibs" >&6
9161 test "$ld_shlibs" = no && can_build_shared=no
9163 with_gnu_ld=$with_gnu_ld
9180 # Do we need to explicitly link libc?
9182 case "x$archive_cmds_need_lc" in
9183 x|xyes)
9184 # Assume -lc should be added
9185 archive_cmds_need_lc=yes
9187 if test "$enable_shared" = yes && test "$GCC" = yes; then
9188 case $archive_cmds in
9189 *'~'*)
9190 # FIXME: we may have to deal with multi-command sequences.
9192 '$CC '*)
9193 # Test whether the compiler implicitly links with -lc since on some
9194 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9195 # to ld, don't add -lc before -lgcc.
9196 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9197 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9198 $RM conftest*
9199 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9202 (eval $ac_compile) 2>&5
9203 ac_status=$?
9204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205 (exit $ac_status); } 2>conftest.err; then
9206 soname=conftest
9207 lib=conftest
9208 libobjs=conftest.$ac_objext
9209 deplibs=
9210 wl=$lt_prog_compiler_wl
9211 pic_flag=$lt_prog_compiler_pic
9212 compiler_flags=-v
9213 linker_flags=-v
9214 verstring=
9215 output_objdir=.
9216 libname=conftest
9217 lt_save_allow_undefined_flag=$allow_undefined_flag
9218 allow_undefined_flag=
9219 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9220 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9221 ac_status=$?
9222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223 (exit $ac_status); }
9224 then
9225 archive_cmds_need_lc=no
9226 else
9227 archive_cmds_need_lc=yes
9229 allow_undefined_flag=$lt_save_allow_undefined_flag
9230 else
9231 cat conftest.err 1>&5
9233 $RM conftest*
9234 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9235 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9237 esac
9240 esac
9398 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9399 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9400 withGCC=$GCC
9401 if test "$withGCC" = yes; then
9402 case $host_os in
9403 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9404 *) lt_awk_arg="/^libraries:/" ;;
9405 esac
9406 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9407 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9408 # if the path contains ";" then we assume it to be the separator
9409 # otherwise default to the standard path separator (i.e. ":") - it is
9410 # assumed that no part of a normal pathname contains ";" but that should
9411 # okay in the real world where ";" in dirpaths is itself problematic.
9412 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9413 else
9414 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9416 # Ok, now we have the path, separated by spaces, we can step through it
9417 # and add multilib dir if necessary.
9418 lt_tmp_lt_search_path_spec=
9419 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9420 for lt_sys_path in $lt_search_path_spec; do
9421 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9422 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9423 else
9424 test -d "$lt_sys_path" && \
9425 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9427 done
9428 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9429 BEGIN {RS=" "; FS="/|\n";} {
9430 lt_foo="";
9431 lt_count=0;
9432 for (lt_i = NF; lt_i > 0; lt_i--) {
9433 if ($lt_i != "" && $lt_i != ".") {
9434 if ($lt_i == "..") {
9435 lt_count++;
9436 } else {
9437 if (lt_count == 0) {
9438 lt_foo="/" $lt_i lt_foo;
9439 } else {
9440 lt_count--;
9445 if (lt_foo != "") { lt_freq[lt_foo]++; }
9446 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9448 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9449 else
9450 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9452 library_names_spec=
9453 libname_spec='lib$name'
9454 soname_spec=
9455 shrext_cmds=".so"
9456 postinstall_cmds=
9457 postuninstall_cmds=
9458 finish_cmds=
9459 finish_eval=
9460 shlibpath_var=
9461 shlibpath_overrides_runpath=unknown
9462 version_type=none
9463 dynamic_linker="$host_os ld.so"
9464 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9465 need_lib_prefix=unknown
9466 hardcode_into_libs=no
9468 # when you set need_version to no, make sure it does not cause -set_version
9469 # flags to be left without arguments
9470 need_version=unknown
9472 case $host_os in
9473 aix3*)
9474 version_type=linux
9475 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9476 shlibpath_var=LIBPATH
9478 # AIX 3 has no versioning support, so we append a major version to the name.
9479 soname_spec='${libname}${release}${shared_ext}$major'
9482 aix[4-9]*)
9483 version_type=linux
9484 need_lib_prefix=no
9485 need_version=no
9486 hardcode_into_libs=yes
9487 if test "$host_cpu" = ia64; then
9488 # AIX 5 supports IA64
9489 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9490 shlibpath_var=LD_LIBRARY_PATH
9491 else
9492 # With GCC up to 2.95.x, collect2 would create an import file
9493 # for dependence libraries. The import file would start with
9494 # the line `#! .'. This would cause the generated library to
9495 # depend on `.', always an invalid library. This was fixed in
9496 # development snapshots of GCC prior to 3.0.
9497 case $host_os in
9498 aix4 | aix4.[01] | aix4.[01].*)
9499 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9500 echo ' yes '
9501 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9503 else
9504 can_build_shared=no
9507 esac
9508 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9509 # soname into executable. Probably we can add versioning support to
9510 # collect2, so additional links can be useful in future.
9511 if test "$aix_use_runtimelinking" = yes; then
9512 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9513 # instead of lib<name>.a to let people know that these are not
9514 # typical AIX shared libraries.
9515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9516 else
9517 # We preserve .a as extension for shared libraries through AIX4.2
9518 # and later when we are not doing run time linking.
9519 library_names_spec='${libname}${release}.a $libname.a'
9520 soname_spec='${libname}${release}${shared_ext}$major'
9522 shlibpath_var=LIBPATH
9526 amigaos*)
9527 if test "$host_cpu" = m68k; then
9528 library_names_spec='$libname.ixlibrary $libname.a'
9529 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9530 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'
9531 else
9532 dynamic_linker=no
9536 beos*)
9537 library_names_spec='${libname}${shared_ext}'
9538 dynamic_linker="$host_os ld.so"
9539 shlibpath_var=LIBRARY_PATH
9542 bsdi[45]*)
9543 version_type=linux
9544 need_version=no
9545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9546 soname_spec='${libname}${release}${shared_ext}$major'
9547 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9548 shlibpath_var=LD_LIBRARY_PATH
9549 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9550 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9551 # the default ld.so.conf also contains /usr/contrib/lib and
9552 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9553 # libtool to hard-code these into programs
9556 cygwin* | mingw* | pw32*)
9557 version_type=windows
9558 shrext_cmds=".dll"
9559 need_version=no
9560 need_lib_prefix=no
9562 case $withGCC,$host_os in
9563 yes,cygwin* | yes,mingw* | yes,pw32*)
9564 library_names_spec='$libname.dll.a'
9565 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9566 postinstall_cmds='base_file=`basename \${file}`~
9567 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9568 dldir=$destdir/`dirname \$dlpath`~
9569 test -d \$dldir || mkdir -p \$dldir~
9570 $install_prog $dir/$dlname \$dldir/$dlname~
9571 chmod a+x \$dldir/$dlname~
9572 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9573 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9575 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9576 dlpath=$dir/\$dldll~
9577 $RM \$dlpath'
9578 shlibpath_overrides_runpath=yes
9580 case $host_os in
9581 cygwin*)
9582 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9583 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9584 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9586 mingw*)
9587 # MinGW DLLs use traditional 'lib' prefix
9588 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9589 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9590 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9591 # It is most probably a Windows format PATH printed by
9592 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9593 # path with ; separators, and with drive letters. We can handle the
9594 # drive letters (cygwin fileutils understands them), so leave them,
9595 # especially as we might pass files found there to a mingw objdump,
9596 # which wouldn't understand a cygwinified path. Ahh.
9597 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9598 else
9599 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9602 pw32*)
9603 # pw32 DLLs use 'pw' prefix rather than 'lib'
9604 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9606 esac
9610 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9612 esac
9613 dynamic_linker='Win32 ld.exe'
9614 # FIXME: first we should search . and the directory the executable is in
9615 shlibpath_var=PATH
9618 darwin* | rhapsody*)
9619 dynamic_linker="$host_os dyld"
9620 version_type=darwin
9621 need_lib_prefix=no
9622 need_version=no
9623 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9624 soname_spec='${libname}${release}${major}$shared_ext'
9625 shlibpath_overrides_runpath=yes
9626 shlibpath_var=DYLD_LIBRARY_PATH
9627 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9629 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9630 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9633 dgux*)
9634 version_type=linux
9635 need_lib_prefix=no
9636 need_version=no
9637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9638 soname_spec='${libname}${release}${shared_ext}$major'
9639 shlibpath_var=LD_LIBRARY_PATH
9642 freebsd1*)
9643 dynamic_linker=no
9646 freebsd* | dragonfly*)
9647 # DragonFly does not have aout. When/if they implement a new
9648 # versioning mechanism, adjust this.
9649 if test -x /usr/bin/objformat; then
9650 objformat=`/usr/bin/objformat`
9651 else
9652 case $host_os in
9653 freebsd[123]*) objformat=aout ;;
9654 *) objformat=elf ;;
9655 esac
9657 version_type=freebsd-$objformat
9658 case $version_type in
9659 freebsd-elf*)
9660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9661 need_version=no
9662 need_lib_prefix=no
9664 freebsd-*)
9665 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9666 need_version=yes
9668 esac
9669 shlibpath_var=LD_LIBRARY_PATH
9670 case $host_os in
9671 freebsd2*)
9672 shlibpath_overrides_runpath=yes
9674 freebsd3.[01]* | freebsdelf3.[01]*)
9675 shlibpath_overrides_runpath=yes
9676 hardcode_into_libs=yes
9678 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9679 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9680 shlibpath_overrides_runpath=no
9681 hardcode_into_libs=yes
9683 *) # from 4.6 on, and DragonFly
9684 shlibpath_overrides_runpath=yes
9685 hardcode_into_libs=yes
9687 esac
9690 gnu*)
9691 version_type=linux
9692 need_lib_prefix=no
9693 need_version=no
9694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9695 soname_spec='${libname}${release}${shared_ext}$major'
9696 shlibpath_var=LD_LIBRARY_PATH
9697 hardcode_into_libs=yes
9700 hpux9* | hpux10* | hpux11*)
9701 # Give a soname corresponding to the major version so that dld.sl refuses to
9702 # link against other versions.
9703 version_type=sunos
9704 need_lib_prefix=no
9705 need_version=no
9706 case $host_cpu in
9707 ia64*)
9708 shrext_cmds='.so'
9709 hardcode_into_libs=yes
9710 dynamic_linker="$host_os dld.so"
9711 shlibpath_var=LD_LIBRARY_PATH
9712 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9714 soname_spec='${libname}${release}${shared_ext}$major'
9715 if test "X$HPUX_IA64_MODE" = X32; then
9716 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9717 else
9718 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9720 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9722 hppa*64*)
9723 shrext_cmds='.sl'
9724 hardcode_into_libs=yes
9725 dynamic_linker="$host_os dld.sl"
9726 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9727 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9729 soname_spec='${libname}${release}${shared_ext}$major'
9730 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9731 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9734 shrext_cmds='.sl'
9735 dynamic_linker="$host_os dld.sl"
9736 shlibpath_var=SHLIB_PATH
9737 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9739 soname_spec='${libname}${release}${shared_ext}$major'
9741 esac
9742 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9743 postinstall_cmds='chmod 555 $lib'
9746 interix[3-9]*)
9747 version_type=linux
9748 need_lib_prefix=no
9749 need_version=no
9750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9751 soname_spec='${libname}${release}${shared_ext}$major'
9752 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9753 shlibpath_var=LD_LIBRARY_PATH
9754 shlibpath_overrides_runpath=no
9755 hardcode_into_libs=yes
9758 irix5* | irix6* | nonstopux*)
9759 case $host_os in
9760 nonstopux*) version_type=nonstopux ;;
9762 if test "$lt_cv_prog_gnu_ld" = yes; then
9763 version_type=linux
9764 else
9765 version_type=irix
9766 fi ;;
9767 esac
9768 need_lib_prefix=no
9769 need_version=no
9770 soname_spec='${libname}${release}${shared_ext}$major'
9771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9772 case $host_os in
9773 irix5* | nonstopux*)
9774 libsuff= shlibsuff=
9777 case $LD in # libtool.m4 will add one of these switches to LD
9778 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9779 libsuff= shlibsuff= libmagic=32-bit;;
9780 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9781 libsuff=32 shlibsuff=N32 libmagic=N32;;
9782 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9783 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9784 *) libsuff= shlibsuff= libmagic=never-match;;
9785 esac
9787 esac
9788 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9789 shlibpath_overrides_runpath=no
9790 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9791 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9792 hardcode_into_libs=yes
9795 # No shared lib support for Linux oldld, aout, or coff.
9796 linux*oldld* | linux*aout* | linux*coff*)
9797 dynamic_linker=no
9800 # This must be Linux ELF.
9801 linux* | k*bsd*-gnu)
9802 version_type=linux
9803 need_lib_prefix=no
9804 need_version=no
9805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9806 soname_spec='${libname}${release}${shared_ext}$major'
9807 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9808 shlibpath_var=LD_LIBRARY_PATH
9809 shlibpath_overrides_runpath=no
9810 # Some binutils ld are patched to set DT_RUNPATH
9811 save_LDFLAGS=$LDFLAGS
9812 save_libdir=$libdir
9813 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9814 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9815 cat >conftest.$ac_ext <<_ACEOF
9816 /* confdefs.h. */
9817 _ACEOF
9818 cat confdefs.h >>conftest.$ac_ext
9819 cat >>conftest.$ac_ext <<_ACEOF
9820 /* end confdefs.h. */
9823 main ()
9827 return 0;
9829 _ACEOF
9830 rm -f conftest.$ac_objext conftest$ac_exeext
9831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9832 (eval $ac_link) 2>conftest.er1
9833 ac_status=$?
9834 grep -v '^ *+' conftest.er1 >conftest.err
9835 rm -f conftest.er1
9836 cat conftest.err >&5
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); } &&
9839 { ac_try='test -z "$ac_c_werror_flag"
9840 || test ! -s conftest.err'
9841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9842 (eval $ac_try) 2>&5
9843 ac_status=$?
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); }; } &&
9846 { ac_try='test -s conftest$ac_exeext'
9847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9848 (eval $ac_try) 2>&5
9849 ac_status=$?
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); }; }; then
9852 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9853 shlibpath_overrides_runpath=yes
9856 else
9857 echo "$as_me: failed program was:" >&5
9858 sed 's/^/| /' conftest.$ac_ext >&5
9861 rm -f conftest.err conftest.$ac_objext \
9862 conftest$ac_exeext conftest.$ac_ext
9863 LDFLAGS=$save_LDFLAGS
9864 libdir=$save_libdir
9866 # This implies no fast_install, which is unacceptable.
9867 # Some rework will be needed to allow for fast_install
9868 # before this can be enabled.
9869 hardcode_into_libs=yes
9871 # Append ld.so.conf contents to the search path
9872 if test -f /etc/ld.so.conf; then
9873 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' ' '`
9874 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9877 # We used to test for /lib/ld.so.1 and disable shared libraries on
9878 # powerpc, because MkLinux only supported shared libraries with the
9879 # GNU dynamic linker. Since this was broken with cross compilers,
9880 # most powerpc-linux boxes support dynamic linking these days and
9881 # people can always --disable-shared, the test was removed, and we
9882 # assume the GNU/Linux dynamic linker is in use.
9883 dynamic_linker='GNU/Linux ld.so'
9886 netbsd*)
9887 version_type=sunos
9888 need_lib_prefix=no
9889 need_version=no
9890 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9892 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9893 dynamic_linker='NetBSD (a.out) ld.so'
9894 else
9895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9896 soname_spec='${libname}${release}${shared_ext}$major'
9897 dynamic_linker='NetBSD ld.elf_so'
9899 shlibpath_var=LD_LIBRARY_PATH
9900 shlibpath_overrides_runpath=yes
9901 hardcode_into_libs=yes
9904 newsos6)
9905 version_type=linux
9906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9907 shlibpath_var=LD_LIBRARY_PATH
9908 shlibpath_overrides_runpath=yes
9911 *nto* | *qnx*)
9912 version_type=qnx
9913 need_lib_prefix=no
9914 need_version=no
9915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9916 soname_spec='${libname}${release}${shared_ext}$major'
9917 shlibpath_var=LD_LIBRARY_PATH
9918 shlibpath_overrides_runpath=no
9919 hardcode_into_libs=yes
9920 dynamic_linker='ldqnx.so'
9923 openbsd*)
9924 version_type=sunos
9925 sys_lib_dlsearch_path_spec="/usr/lib"
9926 need_lib_prefix=no
9927 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9928 case $host_os in
9929 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9930 *) need_version=no ;;
9931 esac
9932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9933 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9934 shlibpath_var=LD_LIBRARY_PATH
9935 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9936 case $host_os in
9937 openbsd2.[89] | openbsd2.[89].*)
9938 shlibpath_overrides_runpath=no
9941 shlibpath_overrides_runpath=yes
9943 esac
9944 else
9945 shlibpath_overrides_runpath=yes
9949 os2*)
9950 libname_spec='$name'
9951 shrext_cmds=".dll"
9952 need_lib_prefix=no
9953 library_names_spec='$libname${shared_ext} $libname.a'
9954 dynamic_linker='OS/2 ld.exe'
9955 shlibpath_var=LIBPATH
9958 osf3* | osf4* | osf5*)
9959 version_type=osf
9960 need_lib_prefix=no
9961 need_version=no
9962 soname_spec='${libname}${release}${shared_ext}$major'
9963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9964 shlibpath_var=LD_LIBRARY_PATH
9965 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9966 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9969 rdos*)
9970 dynamic_linker=no
9973 solaris*)
9974 version_type=linux
9975 need_lib_prefix=no
9976 need_version=no
9977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9978 soname_spec='${libname}${release}${shared_ext}$major'
9979 shlibpath_var=LD_LIBRARY_PATH
9980 shlibpath_overrides_runpath=yes
9981 hardcode_into_libs=yes
9982 # ldd complains unless libraries are executable
9983 postinstall_cmds='chmod +x $lib'
9986 sunos4*)
9987 version_type=sunos
9988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9989 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9990 shlibpath_var=LD_LIBRARY_PATH
9991 shlibpath_overrides_runpath=yes
9992 if test "$with_gnu_ld" = yes; then
9993 need_lib_prefix=no
9995 need_version=yes
9998 sysv4 | sysv4.3*)
9999 version_type=linux
10000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10001 soname_spec='${libname}${release}${shared_ext}$major'
10002 shlibpath_var=LD_LIBRARY_PATH
10003 case $host_vendor in
10004 sni)
10005 shlibpath_overrides_runpath=no
10006 need_lib_prefix=no
10007 runpath_var=LD_RUN_PATH
10009 siemens)
10010 need_lib_prefix=no
10012 motorola)
10013 need_lib_prefix=no
10014 need_version=no
10015 shlibpath_overrides_runpath=no
10016 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10018 esac
10021 sysv4*MP*)
10022 if test -d /usr/nec ;then
10023 version_type=linux
10024 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10025 soname_spec='$libname${shared_ext}.$major'
10026 shlibpath_var=LD_LIBRARY_PATH
10030 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10031 version_type=freebsd-elf
10032 need_lib_prefix=no
10033 need_version=no
10034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10035 soname_spec='${libname}${release}${shared_ext}$major'
10036 shlibpath_var=LD_LIBRARY_PATH
10037 shlibpath_overrides_runpath=yes
10038 hardcode_into_libs=yes
10039 if test "$with_gnu_ld" = yes; then
10040 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10041 else
10042 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10043 case $host_os in
10044 sco3.2v5*)
10045 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10047 esac
10049 sys_lib_dlsearch_path_spec='/usr/lib'
10052 tpf*)
10053 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10054 version_type=linux
10055 need_lib_prefix=no
10056 need_version=no
10057 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10058 shlibpath_var=LD_LIBRARY_PATH
10059 shlibpath_overrides_runpath=no
10060 hardcode_into_libs=yes
10063 uts4*)
10064 version_type=linux
10065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10066 soname_spec='${libname}${release}${shared_ext}$major'
10067 shlibpath_var=LD_LIBRARY_PATH
10071 dynamic_linker=no
10073 esac
10074 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10075 echo "${ECHO_T}$dynamic_linker" >&6
10076 test "$dynamic_linker" = no && can_build_shared=no
10078 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10079 if test "$GCC" = yes; then
10080 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10169 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10170 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10171 hardcode_action=
10172 if test -n "$hardcode_libdir_flag_spec" ||
10173 test -n "$runpath_var" ||
10174 test "X$hardcode_automatic" = "Xyes" ; then
10176 # We can hardcode non-existent directories.
10177 if test "$hardcode_direct" != no &&
10178 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10179 # have to relink, otherwise we might link with an installed library
10180 # when we should be linking with a yet-to-be-installed one
10181 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10182 test "$hardcode_minus_L" != no; then
10183 # Linking always hardcodes the temporary library directory.
10184 hardcode_action=relink
10185 else
10186 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10187 hardcode_action=immediate
10189 else
10190 # We cannot hardcode anything, or else we can only hardcode existing
10191 # directories.
10192 hardcode_action=unsupported
10194 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10195 echo "${ECHO_T}$hardcode_action" >&6
10197 if test "$hardcode_action" = relink ||
10198 test "$inherit_rpath" = yes; then
10199 # Fast installation is not supported
10200 enable_fast_install=no
10201 elif test "$shlibpath_overrides_runpath" = yes ||
10202 test "$enable_shared" = no; then
10203 # Fast installation is not necessary
10204 enable_fast_install=needless
10212 if test "x$enable_dlopen" != xyes; then
10213 enable_dlopen=unknown
10214 enable_dlopen_self=unknown
10215 enable_dlopen_self_static=unknown
10216 else
10217 lt_cv_dlopen=no
10218 lt_cv_dlopen_libs=
10220 case $host_os in
10221 beos*)
10222 lt_cv_dlopen="load_add_on"
10223 lt_cv_dlopen_libs=
10224 lt_cv_dlopen_self=yes
10227 mingw* | pw32*)
10228 lt_cv_dlopen="LoadLibrary"
10229 lt_cv_dlopen_libs=
10232 cygwin*)
10233 lt_cv_dlopen="dlopen"
10234 lt_cv_dlopen_libs=
10237 darwin*)
10238 # if libdl is installed we need to link against it
10239 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10240 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10241 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10242 echo $ECHO_N "(cached) $ECHO_C" >&6
10243 else
10244 ac_check_lib_save_LIBS=$LIBS
10245 LIBS="-ldl $LIBS"
10246 cat >conftest.$ac_ext <<_ACEOF
10247 /* confdefs.h. */
10248 _ACEOF
10249 cat confdefs.h >>conftest.$ac_ext
10250 cat >>conftest.$ac_ext <<_ACEOF
10251 /* end confdefs.h. */
10253 /* Override any gcc2 internal prototype to avoid an error. */
10254 #ifdef __cplusplus
10255 extern "C"
10256 #endif
10257 /* We use char because int might match the return type of a gcc2
10258 builtin and then its argument prototype would still apply. */
10259 char dlopen ();
10261 main ()
10263 dlopen ();
10265 return 0;
10267 _ACEOF
10268 rm -f conftest.$ac_objext conftest$ac_exeext
10269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10270 (eval $ac_link) 2>conftest.er1
10271 ac_status=$?
10272 grep -v '^ *+' conftest.er1 >conftest.err
10273 rm -f conftest.er1
10274 cat conftest.err >&5
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); } &&
10277 { ac_try='test -z "$ac_c_werror_flag"
10278 || test ! -s conftest.err'
10279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10280 (eval $ac_try) 2>&5
10281 ac_status=$?
10282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283 (exit $ac_status); }; } &&
10284 { ac_try='test -s conftest$ac_exeext'
10285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10286 (eval $ac_try) 2>&5
10287 ac_status=$?
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); }; }; then
10290 ac_cv_lib_dl_dlopen=yes
10291 else
10292 echo "$as_me: failed program was:" >&5
10293 sed 's/^/| /' conftest.$ac_ext >&5
10295 ac_cv_lib_dl_dlopen=no
10297 rm -f conftest.err conftest.$ac_objext \
10298 conftest$ac_exeext conftest.$ac_ext
10299 LIBS=$ac_check_lib_save_LIBS
10301 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10302 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10303 if test $ac_cv_lib_dl_dlopen = yes; then
10304 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10305 else
10307 lt_cv_dlopen="dyld"
10308 lt_cv_dlopen_libs=
10309 lt_cv_dlopen_self=yes
10316 echo "$as_me:$LINENO: checking for shl_load" >&5
10317 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10318 if test "${ac_cv_func_shl_load+set}" = set; then
10319 echo $ECHO_N "(cached) $ECHO_C" >&6
10320 else
10321 cat >conftest.$ac_ext <<_ACEOF
10322 /* confdefs.h. */
10323 _ACEOF
10324 cat confdefs.h >>conftest.$ac_ext
10325 cat >>conftest.$ac_ext <<_ACEOF
10326 /* end confdefs.h. */
10327 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10328 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10329 #define shl_load innocuous_shl_load
10331 /* System header to define __stub macros and hopefully few prototypes,
10332 which can conflict with char shl_load (); below.
10333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10334 <limits.h> exists even on freestanding compilers. */
10336 #ifdef __STDC__
10337 # include <limits.h>
10338 #else
10339 # include <assert.h>
10340 #endif
10342 #undef shl_load
10344 /* Override any gcc2 internal prototype to avoid an error. */
10345 #ifdef __cplusplus
10346 extern "C"
10348 #endif
10349 /* We use char because int might match the return type of a gcc2
10350 builtin and then its argument prototype would still apply. */
10351 char shl_load ();
10352 /* The GNU C library defines this for functions which it implements
10353 to always fail with ENOSYS. Some functions are actually named
10354 something starting with __ and the normal name is an alias. */
10355 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10356 choke me
10357 #else
10358 char (*f) () = shl_load;
10359 #endif
10360 #ifdef __cplusplus
10362 #endif
10365 main ()
10367 return f != shl_load;
10369 return 0;
10371 _ACEOF
10372 rm -f conftest.$ac_objext conftest$ac_exeext
10373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10374 (eval $ac_link) 2>conftest.er1
10375 ac_status=$?
10376 grep -v '^ *+' conftest.er1 >conftest.err
10377 rm -f conftest.er1
10378 cat conftest.err >&5
10379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380 (exit $ac_status); } &&
10381 { ac_try='test -z "$ac_c_werror_flag"
10382 || test ! -s conftest.err'
10383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10384 (eval $ac_try) 2>&5
10385 ac_status=$?
10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); }; } &&
10388 { ac_try='test -s conftest$ac_exeext'
10389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10390 (eval $ac_try) 2>&5
10391 ac_status=$?
10392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393 (exit $ac_status); }; }; then
10394 ac_cv_func_shl_load=yes
10395 else
10396 echo "$as_me: failed program was:" >&5
10397 sed 's/^/| /' conftest.$ac_ext >&5
10399 ac_cv_func_shl_load=no
10401 rm -f conftest.err conftest.$ac_objext \
10402 conftest$ac_exeext conftest.$ac_ext
10404 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10405 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10406 if test $ac_cv_func_shl_load = yes; then
10407 lt_cv_dlopen="shl_load"
10408 else
10409 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10410 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10411 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10412 echo $ECHO_N "(cached) $ECHO_C" >&6
10413 else
10414 ac_check_lib_save_LIBS=$LIBS
10415 LIBS="-ldld $LIBS"
10416 cat >conftest.$ac_ext <<_ACEOF
10417 /* confdefs.h. */
10418 _ACEOF
10419 cat confdefs.h >>conftest.$ac_ext
10420 cat >>conftest.$ac_ext <<_ACEOF
10421 /* end confdefs.h. */
10423 /* Override any gcc2 internal prototype to avoid an error. */
10424 #ifdef __cplusplus
10425 extern "C"
10426 #endif
10427 /* We use char because int might match the return type of a gcc2
10428 builtin and then its argument prototype would still apply. */
10429 char shl_load ();
10431 main ()
10433 shl_load ();
10435 return 0;
10437 _ACEOF
10438 rm -f conftest.$ac_objext conftest$ac_exeext
10439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10440 (eval $ac_link) 2>conftest.er1
10441 ac_status=$?
10442 grep -v '^ *+' conftest.er1 >conftest.err
10443 rm -f conftest.er1
10444 cat conftest.err >&5
10445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446 (exit $ac_status); } &&
10447 { ac_try='test -z "$ac_c_werror_flag"
10448 || test ! -s conftest.err'
10449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10450 (eval $ac_try) 2>&5
10451 ac_status=$?
10452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453 (exit $ac_status); }; } &&
10454 { ac_try='test -s conftest$ac_exeext'
10455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10456 (eval $ac_try) 2>&5
10457 ac_status=$?
10458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459 (exit $ac_status); }; }; then
10460 ac_cv_lib_dld_shl_load=yes
10461 else
10462 echo "$as_me: failed program was:" >&5
10463 sed 's/^/| /' conftest.$ac_ext >&5
10465 ac_cv_lib_dld_shl_load=no
10467 rm -f conftest.err conftest.$ac_objext \
10468 conftest$ac_exeext conftest.$ac_ext
10469 LIBS=$ac_check_lib_save_LIBS
10471 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10472 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10473 if test $ac_cv_lib_dld_shl_load = yes; then
10474 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10475 else
10476 echo "$as_me:$LINENO: checking for dlopen" >&5
10477 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10478 if test "${ac_cv_func_dlopen+set}" = set; then
10479 echo $ECHO_N "(cached) $ECHO_C" >&6
10480 else
10481 cat >conftest.$ac_ext <<_ACEOF
10482 /* confdefs.h. */
10483 _ACEOF
10484 cat confdefs.h >>conftest.$ac_ext
10485 cat >>conftest.$ac_ext <<_ACEOF
10486 /* end confdefs.h. */
10487 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10488 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10489 #define dlopen innocuous_dlopen
10491 /* System header to define __stub macros and hopefully few prototypes,
10492 which can conflict with char dlopen (); below.
10493 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10494 <limits.h> exists even on freestanding compilers. */
10496 #ifdef __STDC__
10497 # include <limits.h>
10498 #else
10499 # include <assert.h>
10500 #endif
10502 #undef dlopen
10504 /* Override any gcc2 internal prototype to avoid an error. */
10505 #ifdef __cplusplus
10506 extern "C"
10508 #endif
10509 /* We use char because int might match the return type of a gcc2
10510 builtin and then its argument prototype would still apply. */
10511 char dlopen ();
10512 /* The GNU C library defines this for functions which it implements
10513 to always fail with ENOSYS. Some functions are actually named
10514 something starting with __ and the normal name is an alias. */
10515 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10516 choke me
10517 #else
10518 char (*f) () = dlopen;
10519 #endif
10520 #ifdef __cplusplus
10522 #endif
10525 main ()
10527 return f != dlopen;
10529 return 0;
10531 _ACEOF
10532 rm -f conftest.$ac_objext conftest$ac_exeext
10533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10534 (eval $ac_link) 2>conftest.er1
10535 ac_status=$?
10536 grep -v '^ *+' conftest.er1 >conftest.err
10537 rm -f conftest.er1
10538 cat conftest.err >&5
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); } &&
10541 { ac_try='test -z "$ac_c_werror_flag"
10542 || test ! -s conftest.err'
10543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10544 (eval $ac_try) 2>&5
10545 ac_status=$?
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); }; } &&
10548 { ac_try='test -s conftest$ac_exeext'
10549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10550 (eval $ac_try) 2>&5
10551 ac_status=$?
10552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553 (exit $ac_status); }; }; then
10554 ac_cv_func_dlopen=yes
10555 else
10556 echo "$as_me: failed program was:" >&5
10557 sed 's/^/| /' conftest.$ac_ext >&5
10559 ac_cv_func_dlopen=no
10561 rm -f conftest.err conftest.$ac_objext \
10562 conftest$ac_exeext conftest.$ac_ext
10564 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10565 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10566 if test $ac_cv_func_dlopen = yes; then
10567 lt_cv_dlopen="dlopen"
10568 else
10569 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10570 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10571 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10572 echo $ECHO_N "(cached) $ECHO_C" >&6
10573 else
10574 ac_check_lib_save_LIBS=$LIBS
10575 LIBS="-ldl $LIBS"
10576 cat >conftest.$ac_ext <<_ACEOF
10577 /* confdefs.h. */
10578 _ACEOF
10579 cat confdefs.h >>conftest.$ac_ext
10580 cat >>conftest.$ac_ext <<_ACEOF
10581 /* end confdefs.h. */
10583 /* Override any gcc2 internal prototype to avoid an error. */
10584 #ifdef __cplusplus
10585 extern "C"
10586 #endif
10587 /* We use char because int might match the return type of a gcc2
10588 builtin and then its argument prototype would still apply. */
10589 char dlopen ();
10591 main ()
10593 dlopen ();
10595 return 0;
10597 _ACEOF
10598 rm -f conftest.$ac_objext conftest$ac_exeext
10599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10600 (eval $ac_link) 2>conftest.er1
10601 ac_status=$?
10602 grep -v '^ *+' conftest.er1 >conftest.err
10603 rm -f conftest.er1
10604 cat conftest.err >&5
10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606 (exit $ac_status); } &&
10607 { ac_try='test -z "$ac_c_werror_flag"
10608 || test ! -s conftest.err'
10609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10610 (eval $ac_try) 2>&5
10611 ac_status=$?
10612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); }; } &&
10614 { ac_try='test -s conftest$ac_exeext'
10615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10616 (eval $ac_try) 2>&5
10617 ac_status=$?
10618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619 (exit $ac_status); }; }; then
10620 ac_cv_lib_dl_dlopen=yes
10621 else
10622 echo "$as_me: failed program was:" >&5
10623 sed 's/^/| /' conftest.$ac_ext >&5
10625 ac_cv_lib_dl_dlopen=no
10627 rm -f conftest.err conftest.$ac_objext \
10628 conftest$ac_exeext conftest.$ac_ext
10629 LIBS=$ac_check_lib_save_LIBS
10631 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10632 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10633 if test $ac_cv_lib_dl_dlopen = yes; then
10634 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10635 else
10636 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10637 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10638 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10639 echo $ECHO_N "(cached) $ECHO_C" >&6
10640 else
10641 ac_check_lib_save_LIBS=$LIBS
10642 LIBS="-lsvld $LIBS"
10643 cat >conftest.$ac_ext <<_ACEOF
10644 /* confdefs.h. */
10645 _ACEOF
10646 cat confdefs.h >>conftest.$ac_ext
10647 cat >>conftest.$ac_ext <<_ACEOF
10648 /* end confdefs.h. */
10650 /* Override any gcc2 internal prototype to avoid an error. */
10651 #ifdef __cplusplus
10652 extern "C"
10653 #endif
10654 /* We use char because int might match the return type of a gcc2
10655 builtin and then its argument prototype would still apply. */
10656 char dlopen ();
10658 main ()
10660 dlopen ();
10662 return 0;
10664 _ACEOF
10665 rm -f conftest.$ac_objext conftest$ac_exeext
10666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10667 (eval $ac_link) 2>conftest.er1
10668 ac_status=$?
10669 grep -v '^ *+' conftest.er1 >conftest.err
10670 rm -f conftest.er1
10671 cat conftest.err >&5
10672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673 (exit $ac_status); } &&
10674 { ac_try='test -z "$ac_c_werror_flag"
10675 || test ! -s conftest.err'
10676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10677 (eval $ac_try) 2>&5
10678 ac_status=$?
10679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680 (exit $ac_status); }; } &&
10681 { ac_try='test -s conftest$ac_exeext'
10682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10683 (eval $ac_try) 2>&5
10684 ac_status=$?
10685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686 (exit $ac_status); }; }; then
10687 ac_cv_lib_svld_dlopen=yes
10688 else
10689 echo "$as_me: failed program was:" >&5
10690 sed 's/^/| /' conftest.$ac_ext >&5
10692 ac_cv_lib_svld_dlopen=no
10694 rm -f conftest.err conftest.$ac_objext \
10695 conftest$ac_exeext conftest.$ac_ext
10696 LIBS=$ac_check_lib_save_LIBS
10698 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10699 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10700 if test $ac_cv_lib_svld_dlopen = yes; then
10701 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10702 else
10703 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10704 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10705 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10706 echo $ECHO_N "(cached) $ECHO_C" >&6
10707 else
10708 ac_check_lib_save_LIBS=$LIBS
10709 LIBS="-ldld $LIBS"
10710 cat >conftest.$ac_ext <<_ACEOF
10711 /* confdefs.h. */
10712 _ACEOF
10713 cat confdefs.h >>conftest.$ac_ext
10714 cat >>conftest.$ac_ext <<_ACEOF
10715 /* end confdefs.h. */
10717 /* Override any gcc2 internal prototype to avoid an error. */
10718 #ifdef __cplusplus
10719 extern "C"
10720 #endif
10721 /* We use char because int might match the return type of a gcc2
10722 builtin and then its argument prototype would still apply. */
10723 char dld_link ();
10725 main ()
10727 dld_link ();
10729 return 0;
10731 _ACEOF
10732 rm -f conftest.$ac_objext conftest$ac_exeext
10733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10734 (eval $ac_link) 2>conftest.er1
10735 ac_status=$?
10736 grep -v '^ *+' conftest.er1 >conftest.err
10737 rm -f conftest.er1
10738 cat conftest.err >&5
10739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740 (exit $ac_status); } &&
10741 { ac_try='test -z "$ac_c_werror_flag"
10742 || test ! -s conftest.err'
10743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10744 (eval $ac_try) 2>&5
10745 ac_status=$?
10746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747 (exit $ac_status); }; } &&
10748 { ac_try='test -s conftest$ac_exeext'
10749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10750 (eval $ac_try) 2>&5
10751 ac_status=$?
10752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753 (exit $ac_status); }; }; then
10754 ac_cv_lib_dld_dld_link=yes
10755 else
10756 echo "$as_me: failed program was:" >&5
10757 sed 's/^/| /' conftest.$ac_ext >&5
10759 ac_cv_lib_dld_dld_link=no
10761 rm -f conftest.err conftest.$ac_objext \
10762 conftest$ac_exeext conftest.$ac_ext
10763 LIBS=$ac_check_lib_save_LIBS
10765 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10766 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10767 if test $ac_cv_lib_dld_dld_link = yes; then
10768 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10787 esac
10789 if test "x$lt_cv_dlopen" != xno; then
10790 enable_dlopen=yes
10791 else
10792 enable_dlopen=no
10795 case $lt_cv_dlopen in
10796 dlopen)
10797 save_CPPFLAGS="$CPPFLAGS"
10798 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10800 save_LDFLAGS="$LDFLAGS"
10801 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10803 save_LIBS="$LIBS"
10804 LIBS="$lt_cv_dlopen_libs $LIBS"
10806 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10807 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10808 if test "${lt_cv_dlopen_self+set}" = set; then
10809 echo $ECHO_N "(cached) $ECHO_C" >&6
10810 else
10811 if test "$cross_compiling" = yes; then :
10812 lt_cv_dlopen_self=cross
10813 else
10814 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10815 lt_status=$lt_dlunknown
10816 cat > conftest.$ac_ext <<_LT_EOF
10817 #line 10817 "configure"
10818 #include "confdefs.h"
10820 #if HAVE_DLFCN_H
10821 #include <dlfcn.h>
10822 #endif
10824 #include <stdio.h>
10826 #ifdef RTLD_GLOBAL
10827 # define LT_DLGLOBAL RTLD_GLOBAL
10828 #else
10829 # ifdef DL_GLOBAL
10830 # define LT_DLGLOBAL DL_GLOBAL
10831 # else
10832 # define LT_DLGLOBAL 0
10833 # endif
10834 #endif
10836 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10837 find out it does not work in some platform. */
10838 #ifndef LT_DLLAZY_OR_NOW
10839 # ifdef RTLD_LAZY
10840 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10841 # else
10842 # ifdef DL_LAZY
10843 # define LT_DLLAZY_OR_NOW DL_LAZY
10844 # else
10845 # ifdef RTLD_NOW
10846 # define LT_DLLAZY_OR_NOW RTLD_NOW
10847 # else
10848 # ifdef DL_NOW
10849 # define LT_DLLAZY_OR_NOW DL_NOW
10850 # else
10851 # define LT_DLLAZY_OR_NOW 0
10852 # endif
10853 # endif
10854 # endif
10855 # endif
10856 #endif
10858 #ifdef __cplusplus
10859 extern "C" void exit (int);
10860 #endif
10862 void fnord() { int i=42;}
10863 int main ()
10865 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10866 int status = $lt_dlunknown;
10868 if (self)
10870 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10871 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10872 /* dlclose (self); */
10874 else
10875 puts (dlerror ());
10877 exit (status);
10879 _LT_EOF
10880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10881 (eval $ac_link) 2>&5
10882 ac_status=$?
10883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10885 (./conftest; exit; ) >&5 2>/dev/null
10886 lt_status=$?
10887 case x$lt_status in
10888 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10889 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10890 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10891 esac
10892 else :
10893 # compilation failed
10894 lt_cv_dlopen_self=no
10897 rm -fr conftest*
10901 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10902 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10904 if test "x$lt_cv_dlopen_self" = xyes; then
10905 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10906 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10907 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10908 if test "${lt_cv_dlopen_self_static+set}" = set; then
10909 echo $ECHO_N "(cached) $ECHO_C" >&6
10910 else
10911 if test "$cross_compiling" = yes; then :
10912 lt_cv_dlopen_self_static=cross
10913 else
10914 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10915 lt_status=$lt_dlunknown
10916 cat > conftest.$ac_ext <<_LT_EOF
10917 #line 10917 "configure"
10918 #include "confdefs.h"
10920 #if HAVE_DLFCN_H
10921 #include <dlfcn.h>
10922 #endif
10924 #include <stdio.h>
10926 #ifdef RTLD_GLOBAL
10927 # define LT_DLGLOBAL RTLD_GLOBAL
10928 #else
10929 # ifdef DL_GLOBAL
10930 # define LT_DLGLOBAL DL_GLOBAL
10931 # else
10932 # define LT_DLGLOBAL 0
10933 # endif
10934 #endif
10936 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10937 find out it does not work in some platform. */
10938 #ifndef LT_DLLAZY_OR_NOW
10939 # ifdef RTLD_LAZY
10940 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10941 # else
10942 # ifdef DL_LAZY
10943 # define LT_DLLAZY_OR_NOW DL_LAZY
10944 # else
10945 # ifdef RTLD_NOW
10946 # define LT_DLLAZY_OR_NOW RTLD_NOW
10947 # else
10948 # ifdef DL_NOW
10949 # define LT_DLLAZY_OR_NOW DL_NOW
10950 # else
10951 # define LT_DLLAZY_OR_NOW 0
10952 # endif
10953 # endif
10954 # endif
10955 # endif
10956 #endif
10958 #ifdef __cplusplus
10959 extern "C" void exit (int);
10960 #endif
10962 void fnord() { int i=42;}
10963 int main ()
10965 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10966 int status = $lt_dlunknown;
10968 if (self)
10970 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10971 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10972 /* dlclose (self); */
10974 else
10975 puts (dlerror ());
10977 exit (status);
10979 _LT_EOF
10980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10981 (eval $ac_link) 2>&5
10982 ac_status=$?
10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10985 (./conftest; exit; ) >&5 2>/dev/null
10986 lt_status=$?
10987 case x$lt_status in
10988 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10989 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10990 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10991 esac
10992 else :
10993 # compilation failed
10994 lt_cv_dlopen_self_static=no
10997 rm -fr conftest*
11001 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11002 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11005 CPPFLAGS="$save_CPPFLAGS"
11006 LDFLAGS="$save_LDFLAGS"
11007 LIBS="$save_LIBS"
11009 esac
11011 case $lt_cv_dlopen_self in
11012 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11013 *) enable_dlopen_self=unknown ;;
11014 esac
11016 case $lt_cv_dlopen_self_static in
11017 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11018 *) enable_dlopen_self_static=unknown ;;
11019 esac
11038 striplib=
11039 old_striplib=
11040 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11041 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11042 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11043 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11044 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11045 echo "$as_me:$LINENO: result: yes" >&5
11046 echo "${ECHO_T}yes" >&6
11047 else
11048 # FIXME - insert some real tests, host_os isn't really good enough
11049 case $host_os in
11050 darwin*)
11051 if test -n "$STRIP" ; then
11052 striplib="$STRIP -x"
11053 old_striplib="$STRIP -S"
11054 echo "$as_me:$LINENO: result: yes" >&5
11055 echo "${ECHO_T}yes" >&6
11056 else
11057 echo "$as_me:$LINENO: result: no" >&5
11058 echo "${ECHO_T}no" >&6
11062 echo "$as_me:$LINENO: result: no" >&5
11063 echo "${ECHO_T}no" >&6
11065 esac
11079 # Report which library types will actually be built
11080 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11081 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11082 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11083 echo "${ECHO_T}$can_build_shared" >&6
11085 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11086 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11087 test "$can_build_shared" = "no" && enable_shared=no
11089 # On AIX, shared libraries and static libraries use the same namespace, and
11090 # are all built from PIC.
11091 case $host_os in
11092 aix3*)
11093 test "$enable_shared" = yes && enable_static=no
11094 if test -n "$RANLIB"; then
11095 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11096 postinstall_cmds='$RANLIB $lib'
11100 aix[4-9]*)
11101 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11102 test "$enable_shared" = yes && enable_static=no
11105 esac
11106 echo "$as_me:$LINENO: result: $enable_shared" >&5
11107 echo "${ECHO_T}$enable_shared" >&6
11109 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11110 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11111 # Make sure either enable_shared or enable_static is yes.
11112 test "$enable_shared" = yes || enable_static=yes
11113 echo "$as_me:$LINENO: result: $enable_static" >&5
11114 echo "${ECHO_T}$enable_static" >&6
11120 ac_ext=c
11121 ac_cpp='$CPP $CPPFLAGS'
11122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11126 CC="$lt_save_CC"
11140 ac_config_commands="$ac_config_commands libtool"
11145 # Only expand once:
11151 if test "${ac_cv_header_stdint_h+set}" = set; then
11152 echo "$as_me:$LINENO: checking for stdint.h" >&5
11153 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
11154 if test "${ac_cv_header_stdint_h+set}" = set; then
11155 echo $ECHO_N "(cached) $ECHO_C" >&6
11157 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
11158 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
11159 else
11160 # Is the header compilable?
11161 echo "$as_me:$LINENO: checking stdint.h usability" >&5
11162 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
11163 cat >conftest.$ac_ext <<_ACEOF
11164 /* confdefs.h. */
11165 _ACEOF
11166 cat confdefs.h >>conftest.$ac_ext
11167 cat >>conftest.$ac_ext <<_ACEOF
11168 /* end confdefs.h. */
11169 $ac_includes_default
11170 #include <stdint.h>
11171 _ACEOF
11172 rm -f conftest.$ac_objext
11173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11174 (eval $ac_compile) 2>conftest.er1
11175 ac_status=$?
11176 grep -v '^ *+' conftest.er1 >conftest.err
11177 rm -f conftest.er1
11178 cat conftest.err >&5
11179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180 (exit $ac_status); } &&
11181 { ac_try='test -z "$ac_c_werror_flag"
11182 || test ! -s conftest.err'
11183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11184 (eval $ac_try) 2>&5
11185 ac_status=$?
11186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187 (exit $ac_status); }; } &&
11188 { ac_try='test -s conftest.$ac_objext'
11189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11190 (eval $ac_try) 2>&5
11191 ac_status=$?
11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 (exit $ac_status); }; }; then
11194 ac_header_compiler=yes
11195 else
11196 echo "$as_me: failed program was:" >&5
11197 sed 's/^/| /' conftest.$ac_ext >&5
11199 ac_header_compiler=no
11201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11202 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11203 echo "${ECHO_T}$ac_header_compiler" >&6
11205 # Is the header present?
11206 echo "$as_me:$LINENO: checking stdint.h presence" >&5
11207 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
11208 cat >conftest.$ac_ext <<_ACEOF
11209 /* confdefs.h. */
11210 _ACEOF
11211 cat confdefs.h >>conftest.$ac_ext
11212 cat >>conftest.$ac_ext <<_ACEOF
11213 /* end confdefs.h. */
11214 #include <stdint.h>
11215 _ACEOF
11216 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11217 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11218 ac_status=$?
11219 grep -v '^ *+' conftest.er1 >conftest.err
11220 rm -f conftest.er1
11221 cat conftest.err >&5
11222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223 (exit $ac_status); } >/dev/null; then
11224 if test -s conftest.err; then
11225 ac_cpp_err=$ac_c_preproc_warn_flag
11226 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11227 else
11228 ac_cpp_err=
11230 else
11231 ac_cpp_err=yes
11233 if test -z "$ac_cpp_err"; then
11234 ac_header_preproc=yes
11235 else
11236 echo "$as_me: failed program was:" >&5
11237 sed 's/^/| /' conftest.$ac_ext >&5
11239 ac_header_preproc=no
11241 rm -f conftest.err conftest.$ac_ext
11242 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11243 echo "${ECHO_T}$ac_header_preproc" >&6
11245 # So? What about this header?
11246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11247 yes:no: )
11248 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
11249 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11250 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
11251 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
11252 ac_header_preproc=yes
11254 no:yes:* )
11255 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
11256 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
11257 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
11258 echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
11259 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
11260 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
11261 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
11262 echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
11263 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
11264 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
11265 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
11266 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
11268 cat <<\_ASBOX
11269 ## ------------------------------------- ##
11270 ## Report this to the libmudflap lists. ##
11271 ## ------------------------------------- ##
11272 _ASBOX
11274 sed "s/^/$as_me: WARNING: /" >&2
11276 esac
11277 echo "$as_me:$LINENO: checking for stdint.h" >&5
11278 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
11279 if test "${ac_cv_header_stdint_h+set}" = set; then
11280 echo $ECHO_N "(cached) $ECHO_C" >&6
11281 else
11282 ac_cv_header_stdint_h=$ac_header_preproc
11284 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
11285 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
11288 if test $ac_cv_header_stdint_h = yes; then
11289 MF_HAVE_STDINT_H=1
11290 else
11291 MF_HAVE_STDINT_H=0
11296 if test $MF_HAVE_STDINT_H = 1
11297 then
11298 MF_HAVE_UINTPTR_T=1
11299 else
11300 cat >conftest.$ac_ext <<_ACEOF
11301 /* confdefs.h. */
11302 _ACEOF
11303 cat confdefs.h >>conftest.$ac_ext
11304 cat >>conftest.$ac_ext <<_ACEOF
11305 /* end confdefs.h. */
11306 #include <sys/types.h>
11308 main ()
11310 uintptr_t k = 0;
11312 return 0;
11314 _ACEOF
11315 rm -f conftest.$ac_objext
11316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11317 (eval $ac_compile) 2>conftest.er1
11318 ac_status=$?
11319 grep -v '^ *+' conftest.er1 >conftest.err
11320 rm -f conftest.er1
11321 cat conftest.err >&5
11322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323 (exit $ac_status); } &&
11324 { ac_try='test -z "$ac_c_werror_flag"
11325 || test ! -s conftest.err'
11326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11327 (eval $ac_try) 2>&5
11328 ac_status=$?
11329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330 (exit $ac_status); }; } &&
11331 { ac_try='test -s conftest.$ac_objext'
11332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11333 (eval $ac_try) 2>&5
11334 ac_status=$?
11335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336 (exit $ac_status); }; }; then
11337 MF_HAVE_UINTPTR_T=1
11338 else
11339 echo "$as_me: failed program was:" >&5
11340 sed 's/^/| /' conftest.$ac_ext >&5
11342 MF_HAVE_UINTPTR_T=0
11344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11348 if test ! -d pth
11349 then
11350 # libmudflapth objects are built in this subdirectory
11351 mkdir pth
11355 for ac_header in pthread.h
11357 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11359 echo "$as_me:$LINENO: checking for $ac_header" >&5
11360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11362 echo $ECHO_N "(cached) $ECHO_C" >&6
11364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11365 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11366 else
11367 # Is the header compilable?
11368 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11369 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11370 cat >conftest.$ac_ext <<_ACEOF
11371 /* confdefs.h. */
11372 _ACEOF
11373 cat confdefs.h >>conftest.$ac_ext
11374 cat >>conftest.$ac_ext <<_ACEOF
11375 /* end confdefs.h. */
11376 $ac_includes_default
11377 #include <$ac_header>
11378 _ACEOF
11379 rm -f conftest.$ac_objext
11380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11381 (eval $ac_compile) 2>conftest.er1
11382 ac_status=$?
11383 grep -v '^ *+' conftest.er1 >conftest.err
11384 rm -f conftest.er1
11385 cat conftest.err >&5
11386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387 (exit $ac_status); } &&
11388 { ac_try='test -z "$ac_c_werror_flag"
11389 || test ! -s conftest.err'
11390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11391 (eval $ac_try) 2>&5
11392 ac_status=$?
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); }; } &&
11395 { ac_try='test -s conftest.$ac_objext'
11396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11397 (eval $ac_try) 2>&5
11398 ac_status=$?
11399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400 (exit $ac_status); }; }; then
11401 ac_header_compiler=yes
11402 else
11403 echo "$as_me: failed program was:" >&5
11404 sed 's/^/| /' conftest.$ac_ext >&5
11406 ac_header_compiler=no
11408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11409 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11410 echo "${ECHO_T}$ac_header_compiler" >&6
11412 # Is the header present?
11413 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11414 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11415 cat >conftest.$ac_ext <<_ACEOF
11416 /* confdefs.h. */
11417 _ACEOF
11418 cat confdefs.h >>conftest.$ac_ext
11419 cat >>conftest.$ac_ext <<_ACEOF
11420 /* end confdefs.h. */
11421 #include <$ac_header>
11422 _ACEOF
11423 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11424 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11425 ac_status=$?
11426 grep -v '^ *+' conftest.er1 >conftest.err
11427 rm -f conftest.er1
11428 cat conftest.err >&5
11429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11430 (exit $ac_status); } >/dev/null; then
11431 if test -s conftest.err; then
11432 ac_cpp_err=$ac_c_preproc_warn_flag
11433 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11434 else
11435 ac_cpp_err=
11437 else
11438 ac_cpp_err=yes
11440 if test -z "$ac_cpp_err"; then
11441 ac_header_preproc=yes
11442 else
11443 echo "$as_me: failed program was:" >&5
11444 sed 's/^/| /' conftest.$ac_ext >&5
11446 ac_header_preproc=no
11448 rm -f conftest.err conftest.$ac_ext
11449 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11450 echo "${ECHO_T}$ac_header_preproc" >&6
11452 # So? What about this header?
11453 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11454 yes:no: )
11455 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11456 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11458 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11459 ac_header_preproc=yes
11461 no:yes:* )
11462 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11463 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11464 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11465 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11466 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11467 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11468 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11469 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11471 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11472 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11473 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11475 cat <<\_ASBOX
11476 ## ------------------------------------- ##
11477 ## Report this to the libmudflap lists. ##
11478 ## ------------------------------------- ##
11479 _ASBOX
11481 sed "s/^/$as_me: WARNING: /" >&2
11483 esac
11484 echo "$as_me:$LINENO: checking for $ac_header" >&5
11485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11487 echo $ECHO_N "(cached) $ECHO_C" >&6
11488 else
11489 eval "$as_ac_Header=\$ac_header_preproc"
11491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11492 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11495 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11496 cat >>confdefs.h <<_ACEOF
11497 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11498 _ACEOF
11502 done
11505 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
11506 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
11507 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
11508 echo "$as_me:$LINENO: result: $target_thread_file" >&5
11509 echo "${ECHO_T}$target_thread_file" >&6
11511 # We only support posix threads, or no threads at all.
11512 posix_threads=
11513 case ${target_thread_file} in
11514 posix)
11515 posix_threads=yes
11517 single)
11520 echo "${target_thread_file} is an unsupported thread package" 1>&2
11521 exit 1
11523 esac
11527 if test "x$posix_threads" != "x"; then
11528 LIBMUDFLAPTH_TRUE=
11529 LIBMUDFLAPTH_FALSE='#'
11530 else
11531 LIBMUDFLAPTH_TRUE='#'
11532 LIBMUDFLAPTH_FALSE=
11535 if test "x$posix_threads" != "x"
11536 then
11537 build_libmudflapth=1
11538 else
11539 build_libmudflapth=0
11544 echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
11545 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
11546 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
11547 echo $ECHO_N "(cached) $ECHO_C" >&6
11548 else
11549 ac_check_lib_save_LIBS=$LIBS
11550 LIBS="-ldl $LIBS"
11551 cat >conftest.$ac_ext <<_ACEOF
11552 /* confdefs.h. */
11553 _ACEOF
11554 cat confdefs.h >>conftest.$ac_ext
11555 cat >>conftest.$ac_ext <<_ACEOF
11556 /* end confdefs.h. */
11558 /* Override any gcc2 internal prototype to avoid an error. */
11559 #ifdef __cplusplus
11560 extern "C"
11561 #endif
11562 /* We use char because int might match the return type of a gcc2
11563 builtin and then its argument prototype would still apply. */
11564 char dlsym ();
11566 main ()
11568 dlsym ();
11570 return 0;
11572 _ACEOF
11573 rm -f conftest.$ac_objext conftest$ac_exeext
11574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11575 (eval $ac_link) 2>conftest.er1
11576 ac_status=$?
11577 grep -v '^ *+' conftest.er1 >conftest.err
11578 rm -f conftest.er1
11579 cat conftest.err >&5
11580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581 (exit $ac_status); } &&
11582 { ac_try='test -z "$ac_c_werror_flag"
11583 || test ! -s conftest.err'
11584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11585 (eval $ac_try) 2>&5
11586 ac_status=$?
11587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); }; } &&
11589 { ac_try='test -s conftest$ac_exeext'
11590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11591 (eval $ac_try) 2>&5
11592 ac_status=$?
11593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594 (exit $ac_status); }; }; then
11595 ac_cv_lib_dl_dlsym=yes
11596 else
11597 echo "$as_me: failed program was:" >&5
11598 sed 's/^/| /' conftest.$ac_ext >&5
11600 ac_cv_lib_dl_dlsym=no
11602 rm -f conftest.err conftest.$ac_objext \
11603 conftest$ac_exeext conftest.$ac_ext
11604 LIBS=$ac_check_lib_save_LIBS
11606 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
11607 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
11608 if test $ac_cv_lib_dl_dlsym = yes; then
11609 cat >>confdefs.h <<_ACEOF
11610 #define HAVE_LIBDL 1
11611 _ACEOF
11613 LIBS="-ldl $LIBS"
11618 # Calculate toolexeclibdir
11619 # Also toolexecdir, though it's only used in toolexeclibdir
11620 case ${version_specific_libs} in
11621 yes)
11622 # Need the gcc compiler version to know where to install libraries
11623 # and header files if --enable-version-specific-runtime-libs option
11624 # is selected.
11625 toolexecdir='$(libdir)/gcc/$(target_alias)'
11626 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
11629 if test -n "$with_cross_host" &&
11630 test x"$with_cross_host" != x"no"; then
11631 # Install a library built with a cross compiler in tooldir, not libdir.
11632 toolexecdir='$(exec_prefix)/$(target_alias)'
11633 toolexeclibdir='$(toolexecdir)/lib'
11634 else
11635 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
11636 toolexeclibdir='$(libdir)'
11638 multi_os_directory=`$CC -print-multi-os-directory`
11639 case $multi_os_directory in
11640 .) ;; # Avoid trailing /.
11641 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
11642 esac
11644 esac
11648 includedir=${toolexecdir}/include
11651 pthread_create_version='""'
11652 if test "x$enable_shared" = "xyes" && test "x$posix_threads" != "x"; then
11653 # NB: don't check for -lpthread here, because then it would be
11654 # added to LIBS. For the thread-unaware libmudflap.la, we don't
11655 # want it there.
11657 # glibc-related hacks. dlsym() may pick the wrong version of
11658 # interposed functions like pthread_create on modern glibc.
11659 # We need to find the proper symbol version string, and use
11660 # the nonstandard dlvsym().
11662 for ac_func in dlvsym
11664 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11665 echo "$as_me:$LINENO: checking for $ac_func" >&5
11666 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11667 if eval "test \"\${$as_ac_var+set}\" = set"; then
11668 echo $ECHO_N "(cached) $ECHO_C" >&6
11669 else
11670 cat >conftest.$ac_ext <<_ACEOF
11671 /* confdefs.h. */
11672 _ACEOF
11673 cat confdefs.h >>conftest.$ac_ext
11674 cat >>conftest.$ac_ext <<_ACEOF
11675 /* end confdefs.h. */
11676 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11677 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11678 #define $ac_func innocuous_$ac_func
11680 /* System header to define __stub macros and hopefully few prototypes,
11681 which can conflict with char $ac_func (); below.
11682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11683 <limits.h> exists even on freestanding compilers. */
11685 #ifdef __STDC__
11686 # include <limits.h>
11687 #else
11688 # include <assert.h>
11689 #endif
11691 #undef $ac_func
11693 /* Override any gcc2 internal prototype to avoid an error. */
11694 #ifdef __cplusplus
11695 extern "C"
11697 #endif
11698 /* We use char because int might match the return type of a gcc2
11699 builtin and then its argument prototype would still apply. */
11700 char $ac_func ();
11701 /* The GNU C library defines this for functions which it implements
11702 to always fail with ENOSYS. Some functions are actually named
11703 something starting with __ and the normal name is an alias. */
11704 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11705 choke me
11706 #else
11707 char (*f) () = $ac_func;
11708 #endif
11709 #ifdef __cplusplus
11711 #endif
11714 main ()
11716 return f != $ac_func;
11718 return 0;
11720 _ACEOF
11721 rm -f conftest.$ac_objext conftest$ac_exeext
11722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11723 (eval $ac_link) 2>conftest.er1
11724 ac_status=$?
11725 grep -v '^ *+' conftest.er1 >conftest.err
11726 rm -f conftest.er1
11727 cat conftest.err >&5
11728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729 (exit $ac_status); } &&
11730 { ac_try='test -z "$ac_c_werror_flag"
11731 || test ! -s conftest.err'
11732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11733 (eval $ac_try) 2>&5
11734 ac_status=$?
11735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736 (exit $ac_status); }; } &&
11737 { ac_try='test -s conftest$ac_exeext'
11738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11739 (eval $ac_try) 2>&5
11740 ac_status=$?
11741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742 (exit $ac_status); }; }; then
11743 eval "$as_ac_var=yes"
11744 else
11745 echo "$as_me: failed program was:" >&5
11746 sed 's/^/| /' conftest.$ac_ext >&5
11748 eval "$as_ac_var=no"
11750 rm -f conftest.err conftest.$ac_objext \
11751 conftest$ac_exeext conftest.$ac_ext
11753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11754 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11755 if test `eval echo '${'$as_ac_var'}'` = yes; then
11756 cat >>confdefs.h <<_ACEOF
11757 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11758 _ACEOF
11761 done
11763 if test -n "$ac_tool_prefix"; then
11764 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
11765 set dummy ${ac_tool_prefix}nm; ac_word=$2
11766 echo "$as_me:$LINENO: checking for $ac_word" >&5
11767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11768 if test "${ac_cv_prog_NM+set}" = set; then
11769 echo $ECHO_N "(cached) $ECHO_C" >&6
11770 else
11771 if test -n "$NM"; then
11772 ac_cv_prog_NM="$NM" # Let the user override the test.
11773 else
11774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11775 for as_dir in $PATH
11777 IFS=$as_save_IFS
11778 test -z "$as_dir" && as_dir=.
11779 for ac_exec_ext in '' $ac_executable_extensions; do
11780 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11781 ac_cv_prog_NM="${ac_tool_prefix}nm"
11782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11783 break 2
11785 done
11786 done
11790 NM=$ac_cv_prog_NM
11791 if test -n "$NM"; then
11792 echo "$as_me:$LINENO: result: $NM" >&5
11793 echo "${ECHO_T}$NM" >&6
11794 else
11795 echo "$as_me:$LINENO: result: no" >&5
11796 echo "${ECHO_T}no" >&6
11800 if test -z "$ac_cv_prog_NM"; then
11801 ac_ct_NM=$NM
11802 # Extract the first word of "nm", so it can be a program name with args.
11803 set dummy nm; ac_word=$2
11804 echo "$as_me:$LINENO: checking for $ac_word" >&5
11805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11806 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
11807 echo $ECHO_N "(cached) $ECHO_C" >&6
11808 else
11809 if test -n "$ac_ct_NM"; then
11810 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
11811 else
11812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11813 for as_dir in $PATH
11815 IFS=$as_save_IFS
11816 test -z "$as_dir" && as_dir=.
11817 for ac_exec_ext in '' $ac_executable_extensions; do
11818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11819 ac_cv_prog_ac_ct_NM="nm"
11820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11821 break 2
11823 done
11824 done
11828 ac_ct_NM=$ac_cv_prog_ac_ct_NM
11829 if test -n "$ac_ct_NM"; then
11830 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
11831 echo "${ECHO_T}$ac_ct_NM" >&6
11832 else
11833 echo "$as_me:$LINENO: result: no" >&5
11834 echo "${ECHO_T}no" >&6
11837 NM=$ac_ct_NM
11838 else
11839 NM="$ac_cv_prog_NM"
11842 if test "x$ac_cv_have_dlvsym" != "x"; then
11843 # Try compiling a simple pthreads program. Find the shared libraries it
11844 # ends up with. Then use "nm" on those libraries to extract the
11845 # default symbol versioning suffix ("@@"), if any. But that's tricky.
11846 # Rather, run nm on the resulting executable. Unfortunately, autoconf
11847 # doesn't appear to have a macro that builds a test executable for
11848 # subsequent analysis ... so we do it by hand here.
11849 cat >> conftest.c << EOF
11850 #include <pthread.h>
11851 int main () { void *p = (void *) & pthread_create; return (int) p; }
11853 oldLIBS="$LIBS"
11854 LIBS="$LIBS -lpthread"
11855 pthread_create_version="\"\""
11856 echo "$as_me:$LINENO: checking pthread_create symbol version" >&5
11857 echo $ECHO_N "checking pthread_create symbol version... $ECHO_C" >&6
11858 if eval $ac_link 2>&5 && test -s conftest${ac_exeext}; then
11859 version=`$NM conftest${ac_exeect} | grep 'pthread_create@@' | sed -e 's/^.*@@//'`
11860 if test "x$version" != "x"; then
11861 pthread_create_version="\"$version\""
11864 echo "$as_me:$LINENO: result: $pthread_create_version" >&5
11865 echo "${ECHO_T}$pthread_create_version" >&6
11866 LIBS="$oldLIBS"
11870 cat >>confdefs.h <<_ACEOF
11871 #define PTHREAD_CREATE_VERSION $pthread_create_version
11872 _ACEOF
11876 # Figure out whether the compiler supports "-ffunction-sections -fdata-sections",
11877 # similarly to how libstdc++ does it
11878 ac_test_CFLAGS="${CFLAGS+set}"
11879 ac_save_CFLAGS="$CFLAGS"
11881 # Check for -ffunction-sections -fdata-sections
11882 echo "$as_me:$LINENO: checking for gcc that supports -ffunction-sections -fdata-sections" >&5
11883 echo $ECHO_N "checking for gcc that supports -ffunction-sections -fdata-sections... $ECHO_C" >&6
11884 CFLAGS='-Werror -ffunction-sections -fdata-sections'
11885 cat >conftest.$ac_ext <<_ACEOF
11886 /* confdefs.h. */
11887 _ACEOF
11888 cat confdefs.h >>conftest.$ac_ext
11889 cat >>conftest.$ac_ext <<_ACEOF
11890 /* end confdefs.h. */
11893 main ()
11895 int foo;
11897 return 0;
11899 _ACEOF
11900 rm -f conftest.$ac_objext
11901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11902 (eval $ac_compile) 2>conftest.er1
11903 ac_status=$?
11904 grep -v '^ *+' conftest.er1 >conftest.err
11905 rm -f conftest.er1
11906 cat conftest.err >&5
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); } &&
11909 { ac_try='test -z "$ac_c_werror_flag"
11910 || test ! -s conftest.err'
11911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11912 (eval $ac_try) 2>&5
11913 ac_status=$?
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); }; } &&
11916 { ac_try='test -s conftest.$ac_objext'
11917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11918 (eval $ac_try) 2>&5
11919 ac_status=$?
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); }; }; then
11922 ac_fdsections=yes
11923 else
11924 echo "$as_me: failed program was:" >&5
11925 sed 's/^/| /' conftest.$ac_ext >&5
11927 ac_fdsections=no
11929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11930 if test "$ac_test_CFLAGS" = set; then
11931 CFLAGS="$ac_save_CFLAGS"
11932 else
11933 # this is the suspicious part
11934 CFLAGS=""
11936 if test x"$ac_fdsections" = x"yes"; then
11937 SECTION_FLAGS='-ffunction-sections -fdata-sections'
11939 echo "$as_me:$LINENO: result: $ac_fdsections" >&5
11940 echo "${ECHO_T}$ac_fdsections" >&6
11944 # Check for the name of the symbol used for the entry point.
11945 echo "$as_me:$LINENO: checking for the name of the symbol used for the entry point" >&5
11946 echo $ECHO_N "checking for the name of the symbol used for the entry point... $ECHO_C" >&6
11947 if test "${mudflap_cv_entry_point+set}" = set; then
11948 echo $ECHO_N "(cached) $ECHO_C" >&6
11949 else
11951 for name in _start __start unknown; do
11952 cat >conftest.$ac_ext <<_ACEOF
11953 /* confdefs.h. */
11954 _ACEOF
11955 cat confdefs.h >>conftest.$ac_ext
11956 cat >>conftest.$ac_ext <<_ACEOF
11957 /* end confdefs.h. */
11958 extern char $name[];
11960 main ()
11962 $name[0] = 0;
11964 return 0;
11966 _ACEOF
11967 rm -f conftest.$ac_objext conftest$ac_exeext
11968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11969 (eval $ac_link) 2>conftest.er1
11970 ac_status=$?
11971 grep -v '^ *+' conftest.er1 >conftest.err
11972 rm -f conftest.er1
11973 cat conftest.err >&5
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); } &&
11976 { ac_try='test -z "$ac_c_werror_flag"
11977 || test ! -s conftest.err'
11978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11979 (eval $ac_try) 2>&5
11980 ac_status=$?
11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); }; } &&
11983 { ac_try='test -s conftest$ac_exeext'
11984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11985 (eval $ac_try) 2>&5
11986 ac_status=$?
11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); }; }; then
11989 break
11990 else
11991 echo "$as_me: failed program was:" >&5
11992 sed 's/^/| /' conftest.$ac_ext >&5
11995 rm -f conftest.err conftest.$ac_objext \
11996 conftest$ac_exeext conftest.$ac_ext
11997 done
11998 mudflap_cv_entry_point="$name"
12000 echo "$as_me:$LINENO: result: $mudflap_cv_entry_point" >&5
12001 echo "${ECHO_T}$mudflap_cv_entry_point" >&6
12002 if test "$mudflap_cv_entry_point" = unknown; then
12003 { { echo "$as_me:$LINENO: error: none of the known symbol names works" >&5
12004 echo "$as_me: error: none of the known symbol names works" >&2;}
12005 { (exit 1); exit 1; }; }
12008 cat >>confdefs.h <<_ACEOF
12009 #define ENTRY_POINT $mudflap_cv_entry_point
12010 _ACEOF
12014 if test ${multilib} = yes; then
12015 multilib_arg="--enable-multilib"
12016 else
12017 multilib_arg=
12020 # See if we support thread-local storage.
12022 # Check whether --enable-tls or --disable-tls was given.
12023 if test "${enable_tls+set}" = set; then
12024 enableval="$enable_tls"
12026 case "$enableval" in
12027 yes|no) ;;
12028 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
12029 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
12030 { (exit 1); exit 1; }; } ;;
12031 esac
12033 else
12034 enable_tls=yes
12037 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
12038 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
12039 if test "${gcc_cv_have_tls+set}" = set; then
12040 echo $ECHO_N "(cached) $ECHO_C" >&6
12041 else
12043 if test "$cross_compiling" = yes; then
12044 cat >conftest.$ac_ext <<_ACEOF
12045 __thread int a; int b; int main() { return a = b; }
12046 _ACEOF
12047 rm -f conftest.$ac_objext conftest$ac_exeext
12048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12049 (eval $ac_link) 2>conftest.er1
12050 ac_status=$?
12051 grep -v '^ *+' conftest.er1 >conftest.err
12052 rm -f conftest.er1
12053 cat conftest.err >&5
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); } &&
12056 { ac_try='test -z "$ac_c_werror_flag"
12057 || test ! -s conftest.err'
12058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12059 (eval $ac_try) 2>&5
12060 ac_status=$?
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); }; } &&
12063 { ac_try='test -s conftest$ac_exeext'
12064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12065 (eval $ac_try) 2>&5
12066 ac_status=$?
12067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068 (exit $ac_status); }; }; then
12069 gcc_cv_have_tls=yes
12070 else
12071 echo "$as_me: failed program was:" >&5
12072 sed 's/^/| /' conftest.$ac_ext >&5
12074 gcc_cv_have_tls=no
12076 rm -f conftest.err conftest.$ac_objext \
12077 conftest$ac_exeext conftest.$ac_ext
12080 else
12081 cat >conftest.$ac_ext <<_ACEOF
12082 __thread int a; int b; int main() { return a = b; }
12083 _ACEOF
12084 rm -f conftest$ac_exeext
12085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12086 (eval $ac_link) 2>&5
12087 ac_status=$?
12088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12091 (eval $ac_try) 2>&5
12092 ac_status=$?
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); }; }; then
12095 chktls_save_LDFLAGS="$LDFLAGS"
12096 LDFLAGS="-static $LDFLAGS"
12097 cat >conftest.$ac_ext <<_ACEOF
12098 int main() { return 0; }
12099 _ACEOF
12100 rm -f conftest.$ac_objext conftest$ac_exeext
12101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12102 (eval $ac_link) 2>conftest.er1
12103 ac_status=$?
12104 grep -v '^ *+' conftest.er1 >conftest.err
12105 rm -f conftest.er1
12106 cat conftest.err >&5
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); } &&
12109 { ac_try='test -z "$ac_c_werror_flag"
12110 || test ! -s conftest.err'
12111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12112 (eval $ac_try) 2>&5
12113 ac_status=$?
12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); }; } &&
12116 { ac_try='test -s conftest$ac_exeext'
12117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12118 (eval $ac_try) 2>&5
12119 ac_status=$?
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); }; }; then
12122 if test "$cross_compiling" = yes; then
12123 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12124 See \`config.log' for more details." >&5
12125 echo "$as_me: error: cannot run test program while cross compiling
12126 See \`config.log' for more details." >&2;}
12127 { (exit 1); exit 1; }; }
12128 else
12129 cat >conftest.$ac_ext <<_ACEOF
12130 __thread int a; int b; int main() { return a = b; }
12131 _ACEOF
12132 rm -f conftest$ac_exeext
12133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12134 (eval $ac_link) 2>&5
12135 ac_status=$?
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12139 (eval $ac_try) 2>&5
12140 ac_status=$?
12141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142 (exit $ac_status); }; }; then
12143 gcc_cv_have_tls=yes
12144 else
12145 echo "$as_me: program exited with status $ac_status" >&5
12146 echo "$as_me: failed program was:" >&5
12147 sed 's/^/| /' conftest.$ac_ext >&5
12149 ( exit $ac_status )
12150 gcc_cv_have_tls=no
12152 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12154 else
12155 echo "$as_me: failed program was:" >&5
12156 sed 's/^/| /' conftest.$ac_ext >&5
12158 gcc_cv_have_tls=yes
12160 rm -f conftest.err conftest.$ac_objext \
12161 conftest$ac_exeext conftest.$ac_ext
12162 LDFLAGS="$chktls_save_LDFLAGS"
12163 if test $gcc_cv_have_tls = yes; then
12164 chktls_save_CFLAGS="$CFLAGS"
12165 thread_CFLAGS=failed
12166 for flag in '' '-pthread' '-lpthread'; do
12167 CFLAGS="$flag $chktls_save_CFLAGS"
12168 cat >conftest.$ac_ext <<_ACEOF
12169 /* confdefs.h. */
12170 _ACEOF
12171 cat confdefs.h >>conftest.$ac_ext
12172 cat >>conftest.$ac_ext <<_ACEOF
12173 /* end confdefs.h. */
12174 #include <pthread.h>
12175 void *g(void *d) { return NULL; }
12177 main ()
12179 pthread_t t; pthread_create(&t,NULL,g,NULL);
12181 return 0;
12183 _ACEOF
12184 rm -f conftest.$ac_objext conftest$ac_exeext
12185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12186 (eval $ac_link) 2>conftest.er1
12187 ac_status=$?
12188 grep -v '^ *+' conftest.er1 >conftest.err
12189 rm -f conftest.er1
12190 cat conftest.err >&5
12191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192 (exit $ac_status); } &&
12193 { ac_try='test -z "$ac_c_werror_flag"
12194 || test ! -s conftest.err'
12195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12196 (eval $ac_try) 2>&5
12197 ac_status=$?
12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); }; } &&
12200 { ac_try='test -s conftest$ac_exeext'
12201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12202 (eval $ac_try) 2>&5
12203 ac_status=$?
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); }; }; then
12206 thread_CFLAGS="$flag"
12207 else
12208 echo "$as_me: failed program was:" >&5
12209 sed 's/^/| /' conftest.$ac_ext >&5
12212 rm -f conftest.err conftest.$ac_objext \
12213 conftest$ac_exeext conftest.$ac_ext
12214 if test "X$thread_CFLAGS" != Xfailed; then
12215 break
12217 done
12218 CFLAGS="$chktls_save_CFLAGS"
12219 if test "X$thread_CFLAGS" != Xfailed; then
12220 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
12221 if test "$cross_compiling" = yes; then
12222 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12223 See \`config.log' for more details." >&5
12224 echo "$as_me: error: cannot run test program while cross compiling
12225 See \`config.log' for more details." >&2;}
12226 { (exit 1); exit 1; }; }
12227 else
12228 cat >conftest.$ac_ext <<_ACEOF
12229 /* confdefs.h. */
12230 _ACEOF
12231 cat confdefs.h >>conftest.$ac_ext
12232 cat >>conftest.$ac_ext <<_ACEOF
12233 /* end confdefs.h. */
12234 #include <pthread.h>
12235 __thread int a;
12236 static int *a_in_other_thread;
12237 static void *
12238 thread_func (void *arg)
12240 a_in_other_thread = &a;
12241 return (void *)0;
12244 main ()
12246 pthread_t thread;
12247 void *thread_retval;
12248 int *a_in_main_thread;
12249 if (pthread_create (&thread, (pthread_attr_t *)0,
12250 thread_func, (void *)0))
12251 return 0;
12252 a_in_main_thread = &a;
12253 if (pthread_join (thread, &thread_retval))
12254 return 0;
12255 return (a_in_other_thread == a_in_main_thread);
12257 return 0;
12259 _ACEOF
12260 rm -f conftest$ac_exeext
12261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12262 (eval $ac_link) 2>&5
12263 ac_status=$?
12264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12265 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12267 (eval $ac_try) 2>&5
12268 ac_status=$?
12269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270 (exit $ac_status); }; }; then
12271 gcc_cv_have_tls=yes
12272 else
12273 echo "$as_me: program exited with status $ac_status" >&5
12274 echo "$as_me: failed program was:" >&5
12275 sed 's/^/| /' conftest.$ac_ext >&5
12277 ( exit $ac_status )
12278 gcc_cv_have_tls=no
12280 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12282 CFLAGS="$chktls_save_CFLAGS"
12285 else
12286 echo "$as_me: program exited with status $ac_status" >&5
12287 echo "$as_me: failed program was:" >&5
12288 sed 's/^/| /' conftest.$ac_ext >&5
12290 ( exit $ac_status )
12291 gcc_cv_have_tls=no
12293 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12296 echo "$as_me:$LINENO: result: $gcc_cv_have_tls" >&5
12297 echo "${ECHO_T}$gcc_cv_have_tls" >&6
12298 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
12300 cat >>confdefs.h <<\_ACEOF
12301 #define HAVE_TLS 1
12302 _ACEOF
12306 ac_config_files="$ac_config_files Makefile testsuite/Makefile testsuite/mfconfig.exp"
12308 cat >confcache <<\_ACEOF
12309 # This file is a shell script that caches the results of configure
12310 # tests run on this system so they can be shared between configure
12311 # scripts and configure runs, see configure's option --config-cache.
12312 # It is not useful on other systems. If it contains results you don't
12313 # want to keep, you may remove or edit it.
12315 # config.status only pays attention to the cache file if you give it
12316 # the --recheck option to rerun configure.
12318 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12319 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12320 # following values.
12322 _ACEOF
12324 # The following way of writing the cache mishandles newlines in values,
12325 # but we know of no workaround that is simple, portable, and efficient.
12326 # So, don't put newlines in cache variables' values.
12327 # Ultrix sh set writes to stderr and can't be redirected directly,
12328 # and sets the high bit in the cache file unless we assign to the vars.
12330 (set) 2>&1 |
12331 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12332 *ac_space=\ *)
12333 # `set' does not quote correctly, so add quotes (double-quote
12334 # substitution turns \\\\ into \\, and sed turns \\ into \).
12335 sed -n \
12336 "s/'/'\\\\''/g;
12337 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12340 # `set' quotes correctly as required by POSIX, so do not add quotes.
12341 sed -n \
12342 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12344 esac;
12346 sed '
12347 t clear
12348 : clear
12349 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12350 t end
12351 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12352 : end' >>confcache
12353 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12354 if test -w $cache_file; then
12355 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12356 cat confcache >$cache_file
12357 else
12358 echo "not updating unwritable cache $cache_file"
12361 rm -f confcache
12363 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12364 # Let make expand exec_prefix.
12365 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12367 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12368 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12369 # trailing colons and then remove the whole line if VPATH becomes empty
12370 # (actually we leave an empty line to preserve line numbers).
12371 if test "x$srcdir" = x.; then
12372 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12373 s/:*\$(srcdir):*/:/;
12374 s/:*\${srcdir}:*/:/;
12375 s/:*@srcdir@:*/:/;
12376 s/^\([^=]*=[ ]*\):*/\1/;
12377 s/:*$//;
12378 s/^[^=]*=[ ]*$//;
12382 DEFS=-DHAVE_CONFIG_H
12384 ac_libobjs=
12385 ac_ltlibobjs=
12386 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12387 # 1. Remove the extension, and $U if already installed.
12388 ac_i=`echo "$ac_i" |
12389 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12390 # 2. Add them.
12391 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12392 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12393 done
12394 LIBOBJS=$ac_libobjs
12396 LTLIBOBJS=$ac_ltlibobjs
12399 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12400 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12401 Usually this means the macro was only invoked conditionally." >&5
12402 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12403 Usually this means the macro was only invoked conditionally." >&2;}
12404 { (exit 1); exit 1; }; }
12406 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12407 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12408 Usually this means the macro was only invoked conditionally." >&5
12409 echo "$as_me: error: conditional \"AMDEP\" was never defined.
12410 Usually this means the macro was only invoked conditionally." >&2;}
12411 { (exit 1); exit 1; }; }
12413 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12414 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12415 Usually this means the macro was only invoked conditionally." >&5
12416 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12417 Usually this means the macro was only invoked conditionally." >&2;}
12418 { (exit 1); exit 1; }; }
12420 if test -z "${LIBMUDFLAPTH_TRUE}" && test -z "${LIBMUDFLAPTH_FALSE}"; then
12421 { { echo "$as_me:$LINENO: error: conditional \"LIBMUDFLAPTH\" was never defined.
12422 Usually this means the macro was only invoked conditionally." >&5
12423 echo "$as_me: error: conditional \"LIBMUDFLAPTH\" was never defined.
12424 Usually this means the macro was only invoked conditionally." >&2;}
12425 { (exit 1); exit 1; }; }
12428 : ${CONFIG_STATUS=./config.status}
12429 ac_clean_files_save=$ac_clean_files
12430 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12431 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12432 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12433 cat >$CONFIG_STATUS <<_ACEOF
12434 #! $SHELL
12435 # Generated by $as_me.
12436 # Run this file to recreate the current configuration.
12437 # Compiler output produced by configure, useful for debugging
12438 # configure, is in config.log if it exists.
12440 debug=false
12441 ac_cs_recheck=false
12442 ac_cs_silent=false
12443 SHELL=\${CONFIG_SHELL-$SHELL}
12444 _ACEOF
12446 cat >>$CONFIG_STATUS <<\_ACEOF
12447 ## --------------------- ##
12448 ## M4sh Initialization. ##
12449 ## --------------------- ##
12451 # Be Bourne compatible
12452 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12453 emulate sh
12454 NULLCMD=:
12455 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12456 # is contrary to our usage. Disable this feature.
12457 alias -g '${1+"$@"}'='"$@"'
12458 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12459 set -o posix
12461 DUALCASE=1; export DUALCASE # for MKS sh
12463 # Support unset when possible.
12464 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12465 as_unset=unset
12466 else
12467 as_unset=false
12471 # Work around bugs in pre-3.0 UWIN ksh.
12472 $as_unset ENV MAIL MAILPATH
12473 PS1='$ '
12474 PS2='> '
12475 PS4='+ '
12477 # NLS nuisances.
12478 for as_var in \
12479 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12480 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12481 LC_TELEPHONE LC_TIME
12483 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12484 eval $as_var=C; export $as_var
12485 else
12486 $as_unset $as_var
12488 done
12490 # Required to use basename.
12491 if expr a : '\(a\)' >/dev/null 2>&1; then
12492 as_expr=expr
12493 else
12494 as_expr=false
12497 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12498 as_basename=basename
12499 else
12500 as_basename=false
12504 # Name of the executable.
12505 as_me=`$as_basename "$0" ||
12506 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12507 X"$0" : 'X\(//\)$' \| \
12508 X"$0" : 'X\(/\)$' \| \
12509 . : '\(.\)' 2>/dev/null ||
12510 echo X/"$0" |
12511 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12512 /^X\/\(\/\/\)$/{ s//\1/; q; }
12513 /^X\/\(\/\).*/{ s//\1/; q; }
12514 s/.*/./; q'`
12517 # PATH needs CR, and LINENO needs CR and PATH.
12518 # Avoid depending upon Character Ranges.
12519 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12520 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12521 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12522 as_cr_digits='0123456789'
12523 as_cr_alnum=$as_cr_Letters$as_cr_digits
12525 # The user is always right.
12526 if test "${PATH_SEPARATOR+set}" != set; then
12527 echo "#! /bin/sh" >conf$$.sh
12528 echo "exit 0" >>conf$$.sh
12529 chmod +x conf$$.sh
12530 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12531 PATH_SEPARATOR=';'
12532 else
12533 PATH_SEPARATOR=:
12535 rm -f conf$$.sh
12539 as_lineno_1=$LINENO
12540 as_lineno_2=$LINENO
12541 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12542 test "x$as_lineno_1" != "x$as_lineno_2" &&
12543 test "x$as_lineno_3" = "x$as_lineno_2" || {
12544 # Find who we are. Look in the path if we contain no path at all
12545 # relative or not.
12546 case $0 in
12547 *[\\/]* ) as_myself=$0 ;;
12548 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12549 for as_dir in $PATH
12551 IFS=$as_save_IFS
12552 test -z "$as_dir" && as_dir=.
12553 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12554 done
12557 esac
12558 # We did not find ourselves, most probably we were run as `sh COMMAND'
12559 # in which case we are not to be found in the path.
12560 if test "x$as_myself" = x; then
12561 as_myself=$0
12563 if test ! -f "$as_myself"; then
12564 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12565 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12566 { (exit 1); exit 1; }; }
12568 case $CONFIG_SHELL in
12570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12571 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12573 IFS=$as_save_IFS
12574 test -z "$as_dir" && as_dir=.
12575 for as_base in sh bash ksh sh5; do
12576 case $as_dir in
12578 if ("$as_dir/$as_base" -c '
12579 as_lineno_1=$LINENO
12580 as_lineno_2=$LINENO
12581 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12582 test "x$as_lineno_1" != "x$as_lineno_2" &&
12583 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12584 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12585 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12586 CONFIG_SHELL=$as_dir/$as_base
12587 export CONFIG_SHELL
12588 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12589 fi;;
12590 esac
12591 done
12592 done
12594 esac
12596 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12597 # uniformly replaced by the line number. The first 'sed' inserts a
12598 # line-number line before each line; the second 'sed' does the real
12599 # work. The second script uses 'N' to pair each line-number line
12600 # with the numbered line, and appends trailing '-' during
12601 # substitution so that $LINENO is not a special case at line end.
12602 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12603 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12604 sed '=' <$as_myself |
12605 sed '
12607 s,$,-,
12608 : loop
12609 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12610 t loop
12611 s,-$,,
12612 s,^['$as_cr_digits']*\n,,
12613 ' >$as_me.lineno &&
12614 chmod +x $as_me.lineno ||
12615 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12616 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12617 { (exit 1); exit 1; }; }
12619 # Don't try to exec as it changes $[0], causing all sort of problems
12620 # (the dirname of $[0] is not the place where we might find the
12621 # original and so on. Autoconf is especially sensible to this).
12622 . ./$as_me.lineno
12623 # Exit status is that of the last command.
12624 exit
12628 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12629 *c*,-n*) ECHO_N= ECHO_C='
12630 ' ECHO_T=' ' ;;
12631 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12632 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12633 esac
12635 if expr a : '\(a\)' >/dev/null 2>&1; then
12636 as_expr=expr
12637 else
12638 as_expr=false
12641 rm -f conf$$ conf$$.exe conf$$.file
12642 echo >conf$$.file
12643 if ln -s conf$$.file conf$$ 2>/dev/null; then
12644 # We could just check for DJGPP; but this test a) works b) is more generic
12645 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12646 if test -f conf$$.exe; then
12647 # Don't use ln at all; we don't have any links
12648 as_ln_s='cp -p'
12649 else
12650 as_ln_s='ln -s'
12652 elif ln conf$$.file conf$$ 2>/dev/null; then
12653 as_ln_s=ln
12654 else
12655 as_ln_s='cp -p'
12657 rm -f conf$$ conf$$.exe conf$$.file
12659 if mkdir -p . 2>/dev/null; then
12660 as_mkdir_p=:
12661 else
12662 test -d ./-p && rmdir ./-p
12663 as_mkdir_p=false
12666 as_executable_p="test -f"
12668 # Sed expression to map a string onto a valid CPP name.
12669 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12671 # Sed expression to map a string onto a valid variable name.
12672 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12675 # IFS
12676 # We need space, tab and new line, in precisely that order.
12677 as_nl='
12679 IFS=" $as_nl"
12681 # CDPATH.
12682 $as_unset CDPATH
12684 exec 6>&1
12686 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12687 # report actual input values of CONFIG_FILES etc. instead of their
12688 # values after options handling. Logging --version etc. is OK.
12689 exec 5>>config.log
12691 echo
12692 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12693 ## Running $as_me. ##
12694 _ASBOX
12695 } >&5
12696 cat >&5 <<_CSEOF
12698 This file was extended by libmudflap $as_me 1.0, which was
12699 generated by GNU Autoconf 2.59. Invocation command line was
12701 CONFIG_FILES = $CONFIG_FILES
12702 CONFIG_HEADERS = $CONFIG_HEADERS
12703 CONFIG_LINKS = $CONFIG_LINKS
12704 CONFIG_COMMANDS = $CONFIG_COMMANDS
12705 $ $0 $@
12707 _CSEOF
12708 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12709 echo >&5
12710 _ACEOF
12712 # Files that config.status was made for.
12713 if test -n "$ac_config_files"; then
12714 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12717 if test -n "$ac_config_headers"; then
12718 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12721 if test -n "$ac_config_links"; then
12722 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12725 if test -n "$ac_config_commands"; then
12726 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12729 cat >>$CONFIG_STATUS <<\_ACEOF
12731 ac_cs_usage="\
12732 \`$as_me' instantiates files from templates according to the
12733 current configuration.
12735 Usage: $0 [OPTIONS] [FILE]...
12737 -h, --help print this help, then exit
12738 -V, --version print version number, then exit
12739 -q, --quiet do not print progress messages
12740 -d, --debug don't remove temporary files
12741 --recheck update $as_me by reconfiguring in the same conditions
12742 --file=FILE[:TEMPLATE]
12743 instantiate the configuration file FILE
12744 --header=FILE[:TEMPLATE]
12745 instantiate the configuration header FILE
12747 Configuration files:
12748 $config_files
12750 Configuration headers:
12751 $config_headers
12753 Configuration commands:
12754 $config_commands
12756 Report bugs to <bug-autoconf@gnu.org>."
12757 _ACEOF
12759 cat >>$CONFIG_STATUS <<_ACEOF
12760 ac_cs_version="\\
12761 libmudflap config.status 1.0
12762 configured by $0, generated by GNU Autoconf 2.59,
12763 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12765 Copyright (C) 2003 Free Software Foundation, Inc.
12766 This config.status script is free software; the Free Software Foundation
12767 gives unlimited permission to copy, distribute and modify it."
12768 srcdir=$srcdir
12769 INSTALL="$INSTALL"
12770 _ACEOF
12772 cat >>$CONFIG_STATUS <<\_ACEOF
12773 # If no file are specified by the user, then we need to provide default
12774 # value. By we need to know if files were specified by the user.
12775 ac_need_defaults=:
12776 while test $# != 0
12778 case $1 in
12779 --*=*)
12780 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12781 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12782 ac_shift=:
12785 ac_option=$1
12786 ac_optarg=$2
12787 ac_shift=shift
12789 *) # This is not an option, so the user has probably given explicit
12790 # arguments.
12791 ac_option=$1
12792 ac_need_defaults=false;;
12793 esac
12795 case $ac_option in
12796 # Handling of the options.
12797 _ACEOF
12798 cat >>$CONFIG_STATUS <<\_ACEOF
12799 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12800 ac_cs_recheck=: ;;
12801 --version | --vers* | -V )
12802 echo "$ac_cs_version"; exit 0 ;;
12803 --he | --h)
12804 # Conflict between --help and --header
12805 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12806 Try \`$0 --help' for more information." >&5
12807 echo "$as_me: error: ambiguous option: $1
12808 Try \`$0 --help' for more information." >&2;}
12809 { (exit 1); exit 1; }; };;
12810 --help | --hel | -h )
12811 echo "$ac_cs_usage"; exit 0 ;;
12812 --debug | --d* | -d )
12813 debug=: ;;
12814 --file | --fil | --fi | --f )
12815 $ac_shift
12816 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12817 ac_need_defaults=false;;
12818 --header | --heade | --head | --hea )
12819 $ac_shift
12820 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12821 ac_need_defaults=false;;
12822 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12823 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12824 ac_cs_silent=: ;;
12826 # This is an error.
12827 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12828 Try \`$0 --help' for more information." >&5
12829 echo "$as_me: error: unrecognized option: $1
12830 Try \`$0 --help' for more information." >&2;}
12831 { (exit 1); exit 1; }; } ;;
12833 *) ac_config_targets="$ac_config_targets $1" ;;
12835 esac
12836 shift
12837 done
12839 ac_configure_extra_args=
12841 if $ac_cs_silent; then
12842 exec 6>/dev/null
12843 ac_configure_extra_args="$ac_configure_extra_args --silent"
12846 _ACEOF
12847 cat >>$CONFIG_STATUS <<_ACEOF
12848 if \$ac_cs_recheck; then
12849 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12850 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12853 _ACEOF
12855 cat >>$CONFIG_STATUS <<_ACEOF
12857 # INIT-COMMANDS section.
12861 srcdir="$srcdir"
12862 host="$host"
12863 target="$target"
12864 with_multisubdir="$with_multisubdir"
12865 with_multisrctop="$with_multisrctop"
12866 with_target_subdir="$with_target_subdir"
12867 ac_configure_args="${multilib_arg} ${ac_configure_args}"
12868 multi_basedir="$multi_basedir"
12869 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
12870 CC="$CC"
12871 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12874 # The HP-UX ksh and POSIX shell print the target directory to stdout
12875 # if CDPATH is set.
12876 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12878 sed_quote_subst='$sed_quote_subst'
12879 double_quote_subst='$double_quote_subst'
12880 delay_variable_subst='$delay_variable_subst'
12881 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12882 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12883 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12884 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12885 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12886 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12887 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12888 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12889 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12890 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12891 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12892 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12893 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12894 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12895 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12896 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12897 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12898 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12899 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12900 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12901 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12902 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12903 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12904 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12905 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12906 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12907 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12908 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12909 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12910 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12911 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12912 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12913 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12914 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12915 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12916 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12917 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12918 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12919 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12920 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12921 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12922 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12923 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12924 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"`'
12925 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12926 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12927 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12928 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12929 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12930 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12931 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12932 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12933 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12934 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12935 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12936 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12937 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12938 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12939 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12940 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12941 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12942 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12943 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12944 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12945 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12946 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12947 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12948 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12949 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12950 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12951 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12952 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12953 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12954 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12955 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12956 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12957 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12958 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12959 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12960 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12961 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12962 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12963 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12964 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12965 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12966 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12967 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12968 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12969 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12970 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12971 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12972 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12973 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12974 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12975 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12976 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12977 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12978 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12979 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12980 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12981 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12982 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12983 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12984 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12985 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12986 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12987 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12988 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12989 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12990 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12991 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12993 LTCC='$LTCC'
12994 LTCFLAGS='$LTCFLAGS'
12995 compiler='$compiler_DEFAULT'
12997 # Quote evaled strings.
12998 for var in SED \
12999 GREP \
13000 EGREP \
13001 FGREP \
13002 LD \
13003 NM \
13004 LN_S \
13005 lt_SP2NL \
13006 lt_NL2SP \
13007 reload_flag \
13008 deplibs_check_method \
13009 file_magic_cmd \
13010 AR \
13011 AR_FLAGS \
13012 STRIP \
13013 RANLIB \
13014 CC \
13015 CFLAGS \
13016 compiler \
13017 lt_cv_sys_global_symbol_pipe \
13018 lt_cv_sys_global_symbol_to_cdecl \
13019 lt_cv_sys_global_symbol_to_c_name_address \
13020 SHELL \
13021 ECHO \
13022 lt_prog_compiler_no_builtin_flag \
13023 lt_prog_compiler_wl \
13024 lt_prog_compiler_pic \
13025 lt_prog_compiler_static \
13026 lt_cv_prog_compiler_c_o \
13027 need_locks \
13028 shrext_cmds \
13029 export_dynamic_flag_spec \
13030 whole_archive_flag_spec \
13031 compiler_needs_object \
13032 with_gnu_ld \
13033 allow_undefined_flag \
13034 no_undefined_flag \
13035 hardcode_libdir_flag_spec \
13036 hardcode_libdir_flag_spec_ld \
13037 hardcode_libdir_separator \
13038 fix_srcfile_path \
13039 exclude_expsyms \
13040 include_expsyms \
13041 file_list_spec \
13042 variables_saved_for_relink \
13043 libname_spec \
13044 library_names_spec \
13045 soname_spec \
13046 finish_eval \
13047 old_striplib \
13048 striplib; do
13049 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13050 *[\\\\\\\`\\"\\\$]*)
13051 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13054 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13056 esac
13057 done
13059 # Double-quote double-evaled strings.
13060 for var in reload_cmds \
13061 old_postinstall_cmds \
13062 old_postuninstall_cmds \
13063 old_archive_cmds \
13064 extract_expsyms_cmds \
13065 old_archive_from_new_cmds \
13066 old_archive_from_expsyms_cmds \
13067 archive_cmds \
13068 archive_expsym_cmds \
13069 module_cmds \
13070 module_expsym_cmds \
13071 export_symbols_cmds \
13072 prelink_cmds \
13073 postinstall_cmds \
13074 postuninstall_cmds \
13075 finish_cmds \
13076 sys_lib_search_path_spec \
13077 sys_lib_dlsearch_path_spec; do
13078 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13079 *[\\\\\\\`\\"\\\$]*)
13080 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13083 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13085 esac
13086 done
13088 # Fix-up fallback echo if it was mangled by the above quoting rules.
13089 case \$lt_ECHO in
13090 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13092 esac
13094 ac_aux_dir='$ac_aux_dir'
13095 xsi_shell='$xsi_shell'
13096 lt_shell_append='$lt_shell_append'
13098 # See if we are running on zsh, and set the options which allow our
13099 # commands through without removal of \ escapes INIT.
13100 if test -n "\${ZSH_VERSION+set}" ; then
13101 setopt NO_GLOB_SUBST
13105 PACKAGE='$PACKAGE'
13106 VERSION='$VERSION'
13107 TIMESTAMP='$TIMESTAMP'
13108 RM='$RM'
13109 ofile='$ofile'
13114 _ACEOF
13118 cat >>$CONFIG_STATUS <<\_ACEOF
13119 for ac_config_target in $ac_config_targets
13121 case "$ac_config_target" in
13122 # Handling of arguments.
13123 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13124 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
13125 "testsuite/mfconfig.exp" ) CONFIG_FILES="$CONFIG_FILES testsuite/mfconfig.exp" ;;
13126 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13127 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13128 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13129 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13130 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13131 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13132 { (exit 1); exit 1; }; };;
13133 esac
13134 done
13136 # If the user did not use the arguments to specify the items to instantiate,
13137 # then the envvar interface is used. Set only those that are not.
13138 # We use the long form for the default assignment because of an extremely
13139 # bizarre bug on SunOS 4.1.3.
13140 if $ac_need_defaults; then
13141 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13142 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13143 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13146 # Have a temporary directory for convenience. Make it in the build tree
13147 # simply because there is no reason to put it here, and in addition,
13148 # creating and moving files from /tmp can sometimes cause problems.
13149 # Create a temporary directory, and hook for its removal unless debugging.
13150 $debug ||
13152 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13153 trap '{ (exit 1); exit 1; }' 1 2 13 15
13156 # Create a (secure) tmp directory for tmp files.
13159 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13160 test -n "$tmp" && test -d "$tmp"
13161 } ||
13163 tmp=./confstat$$-$RANDOM
13164 (umask 077 && mkdir $tmp)
13165 } ||
13167 echo "$me: cannot create a temporary directory in ." >&2
13168 { (exit 1); exit 1; }
13171 _ACEOF
13173 cat >>$CONFIG_STATUS <<_ACEOF
13176 # CONFIG_FILES section.
13179 # No need to generate the scripts if there are no CONFIG_FILES.
13180 # This happens for instance when ./config.status config.h
13181 if test -n "\$CONFIG_FILES"; then
13182 # Protect against being on the right side of a sed subst in config.status.
13183 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13184 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13185 s,@SHELL@,$SHELL,;t t
13186 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13187 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13188 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13189 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13190 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13191 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13192 s,@exec_prefix@,$exec_prefix,;t t
13193 s,@prefix@,$prefix,;t t
13194 s,@program_transform_name@,$program_transform_name,;t t
13195 s,@bindir@,$bindir,;t t
13196 s,@sbindir@,$sbindir,;t t
13197 s,@libexecdir@,$libexecdir,;t t
13198 s,@datadir@,$datadir,;t t
13199 s,@sysconfdir@,$sysconfdir,;t t
13200 s,@sharedstatedir@,$sharedstatedir,;t t
13201 s,@localstatedir@,$localstatedir,;t t
13202 s,@libdir@,$libdir,;t t
13203 s,@includedir@,$includedir,;t t
13204 s,@oldincludedir@,$oldincludedir,;t t
13205 s,@infodir@,$infodir,;t t
13206 s,@mandir@,$mandir,;t t
13207 s,@build_alias@,$build_alias,;t t
13208 s,@host_alias@,$host_alias,;t t
13209 s,@target_alias@,$target_alias,;t t
13210 s,@DEFS@,$DEFS,;t t
13211 s,@ECHO_C@,$ECHO_C,;t t
13212 s,@ECHO_N@,$ECHO_N,;t t
13213 s,@ECHO_T@,$ECHO_T,;t t
13214 s,@LIBS@,$LIBS,;t t
13215 s,@build@,$build,;t t
13216 s,@build_cpu@,$build_cpu,;t t
13217 s,@build_vendor@,$build_vendor,;t t
13218 s,@build_os@,$build_os,;t t
13219 s,@host@,$host,;t t
13220 s,@host_cpu@,$host_cpu,;t t
13221 s,@host_vendor@,$host_vendor,;t t
13222 s,@host_os@,$host_os,;t t
13223 s,@target@,$target,;t t
13224 s,@target_cpu@,$target_cpu,;t t
13225 s,@target_vendor@,$target_vendor,;t t
13226 s,@target_os@,$target_os,;t t
13227 s,@target_noncanonical@,$target_noncanonical,;t t
13228 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13229 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13230 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13231 s,@CYGPATH_W@,$CYGPATH_W,;t t
13232 s,@PACKAGE@,$PACKAGE,;t t
13233 s,@VERSION@,$VERSION,;t t
13234 s,@ACLOCAL@,$ACLOCAL,;t t
13235 s,@AUTOCONF@,$AUTOCONF,;t t
13236 s,@AUTOMAKE@,$AUTOMAKE,;t t
13237 s,@AUTOHEADER@,$AUTOHEADER,;t t
13238 s,@MAKEINFO@,$MAKEINFO,;t t
13239 s,@install_sh@,$install_sh,;t t
13240 s,@STRIP@,$STRIP,;t t
13241 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13242 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
13243 s,@mkdir_p@,$mkdir_p,;t t
13244 s,@AWK@,$AWK,;t t
13245 s,@SET_MAKE@,$SET_MAKE,;t t
13246 s,@am__leading_dot@,$am__leading_dot,;t t
13247 s,@AMTAR@,$AMTAR,;t t
13248 s,@am__tar@,$am__tar,;t t
13249 s,@am__untar@,$am__untar,;t t
13250 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13251 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13252 s,@MAINT@,$MAINT,;t t
13253 s,@multi_basedir@,$multi_basedir,;t t
13254 s,@CC@,$CC,;t t
13255 s,@ac_ct_CC@,$ac_ct_CC,;t t
13256 s,@EXEEXT@,$EXEEXT,;t t
13257 s,@OBJEXT@,$OBJEXT,;t t
13258 s,@DEPDIR@,$DEPDIR,;t t
13259 s,@am__include@,$am__include,;t t
13260 s,@am__quote@,$am__quote,;t t
13261 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
13262 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
13263 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
13264 s,@CCDEPMODE@,$CCDEPMODE,;t t
13265 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
13266 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
13267 s,@CFLAGS@,$CFLAGS,;t t
13268 s,@CPP@,$CPP,;t t
13269 s,@CPPFLAGS@,$CPPFLAGS,;t t
13270 s,@EGREP@,$EGREP,;t t
13271 s,@LIBTOOL@,$LIBTOOL,;t t
13272 s,@SED@,$SED,;t t
13273 s,@FGREP@,$FGREP,;t t
13274 s,@GREP@,$GREP,;t t
13275 s,@LD@,$LD,;t t
13276 s,@DUMPBIN@,$DUMPBIN,;t t
13277 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
13278 s,@NM@,$NM,;t t
13279 s,@LN_S@,$LN_S,;t t
13280 s,@AR@,$AR,;t t
13281 s,@ac_ct_AR@,$ac_ct_AR,;t t
13282 s,@RANLIB@,$RANLIB,;t t
13283 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13284 s,@lt_ECHO@,$lt_ECHO,;t t
13285 s,@enable_shared@,$enable_shared,;t t
13286 s,@enable_static@,$enable_static,;t t
13287 s,@MF_HAVE_STDINT_H@,$MF_HAVE_STDINT_H,;t t
13288 s,@MF_HAVE_UINTPTR_T@,$MF_HAVE_UINTPTR_T,;t t
13289 s,@LIBMUDFLAPTH_TRUE@,$LIBMUDFLAPTH_TRUE,;t t
13290 s,@LIBMUDFLAPTH_FALSE@,$LIBMUDFLAPTH_FALSE,;t t
13291 s,@build_libmudflapth@,$build_libmudflapth,;t t
13292 s,@toolexecdir@,$toolexecdir,;t t
13293 s,@toolexeclibdir@,$toolexeclibdir,;t t
13294 s,@ac_ct_NM@,$ac_ct_NM,;t t
13295 s,@SECTION_FLAGS@,$SECTION_FLAGS,;t t
13296 s,@LIBOBJS@,$LIBOBJS,;t t
13297 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13298 CEOF
13300 _ACEOF
13302 cat >>$CONFIG_STATUS <<\_ACEOF
13303 # Split the substitutions into bite-sized pieces for seds with
13304 # small command number limits, like on Digital OSF/1 and HP-UX.
13305 ac_max_sed_lines=48
13306 ac_sed_frag=1 # Number of current file.
13307 ac_beg=1 # First line for current file.
13308 ac_end=$ac_max_sed_lines # Line after last line for current file.
13309 ac_more_lines=:
13310 ac_sed_cmds=
13311 while $ac_more_lines; do
13312 if test $ac_beg -gt 1; then
13313 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13314 else
13315 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13317 if test ! -s $tmp/subs.frag; then
13318 ac_more_lines=false
13319 else
13320 # The purpose of the label and of the branching condition is to
13321 # speed up the sed processing (if there are no `@' at all, there
13322 # is no need to browse any of the substitutions).
13323 # These are the two extra sed commands mentioned above.
13324 (echo ':t
13325 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13326 if test -z "$ac_sed_cmds"; then
13327 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13328 else
13329 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13331 ac_sed_frag=`expr $ac_sed_frag + 1`
13332 ac_beg=$ac_end
13333 ac_end=`expr $ac_end + $ac_max_sed_lines`
13335 done
13336 if test -z "$ac_sed_cmds"; then
13337 ac_sed_cmds=cat
13339 fi # test -n "$CONFIG_FILES"
13341 _ACEOF
13342 cat >>$CONFIG_STATUS <<\_ACEOF
13343 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13344 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13345 case $ac_file in
13346 - | *:- | *:-:* ) # input from stdin
13347 cat >$tmp/stdin
13348 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13349 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13350 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13351 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13352 * ) ac_file_in=$ac_file.in ;;
13353 esac
13355 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13356 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13357 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13358 X"$ac_file" : 'X\(//\)[^/]' \| \
13359 X"$ac_file" : 'X\(//\)$' \| \
13360 X"$ac_file" : 'X\(/\)' \| \
13361 . : '\(.\)' 2>/dev/null ||
13362 echo X"$ac_file" |
13363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13364 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13365 /^X\(\/\/\)$/{ s//\1/; q; }
13366 /^X\(\/\).*/{ s//\1/; q; }
13367 s/.*/./; q'`
13368 { if $as_mkdir_p; then
13369 mkdir -p "$ac_dir"
13370 else
13371 as_dir="$ac_dir"
13372 as_dirs=
13373 while test ! -d "$as_dir"; do
13374 as_dirs="$as_dir $as_dirs"
13375 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13376 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13377 X"$as_dir" : 'X\(//\)[^/]' \| \
13378 X"$as_dir" : 'X\(//\)$' \| \
13379 X"$as_dir" : 'X\(/\)' \| \
13380 . : '\(.\)' 2>/dev/null ||
13381 echo X"$as_dir" |
13382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13383 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13384 /^X\(\/\/\)$/{ s//\1/; q; }
13385 /^X\(\/\).*/{ s//\1/; q; }
13386 s/.*/./; q'`
13387 done
13388 test ! -n "$as_dirs" || mkdir $as_dirs
13389 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13390 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13391 { (exit 1); exit 1; }; }; }
13393 ac_builddir=.
13395 if test "$ac_dir" != .; then
13396 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13397 # A "../" for each directory in $ac_dir_suffix.
13398 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13399 else
13400 ac_dir_suffix= ac_top_builddir=
13403 case $srcdir in
13404 .) # No --srcdir option. We are building in place.
13405 ac_srcdir=.
13406 if test -z "$ac_top_builddir"; then
13407 ac_top_srcdir=.
13408 else
13409 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13410 fi ;;
13411 [\\/]* | ?:[\\/]* ) # Absolute path.
13412 ac_srcdir=$srcdir$ac_dir_suffix;
13413 ac_top_srcdir=$srcdir ;;
13414 *) # Relative path.
13415 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13416 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13417 esac
13419 # Do not use `cd foo && pwd` to compute absolute paths, because
13420 # the directories may not exist.
13421 case `pwd` in
13422 .) ac_abs_builddir="$ac_dir";;
13424 case "$ac_dir" in
13425 .) ac_abs_builddir=`pwd`;;
13426 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13427 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13428 esac;;
13429 esac
13430 case $ac_abs_builddir in
13431 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13433 case ${ac_top_builddir}. in
13434 .) ac_abs_top_builddir=$ac_abs_builddir;;
13435 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13436 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13437 esac;;
13438 esac
13439 case $ac_abs_builddir in
13440 .) ac_abs_srcdir=$ac_srcdir;;
13442 case $ac_srcdir in
13443 .) ac_abs_srcdir=$ac_abs_builddir;;
13444 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13445 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13446 esac;;
13447 esac
13448 case $ac_abs_builddir in
13449 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13451 case $ac_top_srcdir in
13452 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13453 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13454 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13455 esac;;
13456 esac
13459 case $INSTALL in
13460 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13461 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13462 esac
13464 if test x"$ac_file" != x-; then
13465 { echo "$as_me:$LINENO: creating $ac_file" >&5
13466 echo "$as_me: creating $ac_file" >&6;}
13467 rm -f "$ac_file"
13469 # Let's still pretend it is `configure' which instantiates (i.e., don't
13470 # use $as_me), people would be surprised to read:
13471 # /* config.h. Generated by config.status. */
13472 if test x"$ac_file" = x-; then
13473 configure_input=
13474 else
13475 configure_input="$ac_file. "
13477 configure_input=$configure_input"Generated from `echo $ac_file_in |
13478 sed 's,.*/,,'` by configure."
13480 # First look for the input files in the build tree, otherwise in the
13481 # src tree.
13482 ac_file_inputs=`IFS=:
13483 for f in $ac_file_in; do
13484 case $f in
13485 -) echo $tmp/stdin ;;
13486 [\\/$]*)
13487 # Absolute (can't be DOS-style, as IFS=:)
13488 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13489 echo "$as_me: error: cannot find input file: $f" >&2;}
13490 { (exit 1); exit 1; }; }
13491 echo "$f";;
13492 *) # Relative
13493 if test -f "$f"; then
13494 # Build tree
13495 echo "$f"
13496 elif test -f "$srcdir/$f"; then
13497 # Source tree
13498 echo "$srcdir/$f"
13499 else
13500 # /dev/null tree
13501 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13502 echo "$as_me: error: cannot find input file: $f" >&2;}
13503 { (exit 1); exit 1; }; }
13504 fi;;
13505 esac
13506 done` || { (exit 1); exit 1; }
13507 _ACEOF
13508 cat >>$CONFIG_STATUS <<_ACEOF
13509 sed "$ac_vpsub
13510 $extrasub
13511 _ACEOF
13512 cat >>$CONFIG_STATUS <<\_ACEOF
13514 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13515 s,@configure_input@,$configure_input,;t t
13516 s,@srcdir@,$ac_srcdir,;t t
13517 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13518 s,@top_srcdir@,$ac_top_srcdir,;t t
13519 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13520 s,@builddir@,$ac_builddir,;t t
13521 s,@abs_builddir@,$ac_abs_builddir,;t t
13522 s,@top_builddir@,$ac_top_builddir,;t t
13523 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13524 s,@INSTALL@,$ac_INSTALL,;t t
13525 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13526 rm -f $tmp/stdin
13527 if test x"$ac_file" != x-; then
13528 mv $tmp/out $ac_file
13529 else
13530 cat $tmp/out
13531 rm -f $tmp/out
13534 done
13535 _ACEOF
13536 cat >>$CONFIG_STATUS <<\_ACEOF
13539 # CONFIG_HEADER section.
13542 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13543 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13545 # ac_d sets the value in "#define NAME VALUE" lines.
13546 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13547 ac_dB='[ ].*$,\1#\2'
13548 ac_dC=' '
13549 ac_dD=',;t'
13550 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13551 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13552 ac_uB='$,\1#\2define\3'
13553 ac_uC=' '
13554 ac_uD=',;t'
13556 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13557 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13558 case $ac_file in
13559 - | *:- | *:-:* ) # input from stdin
13560 cat >$tmp/stdin
13561 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13562 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13563 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13564 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13565 * ) ac_file_in=$ac_file.in ;;
13566 esac
13568 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13569 echo "$as_me: creating $ac_file" >&6;}
13571 # First look for the input files in the build tree, otherwise in the
13572 # src tree.
13573 ac_file_inputs=`IFS=:
13574 for f in $ac_file_in; do
13575 case $f in
13576 -) echo $tmp/stdin ;;
13577 [\\/$]*)
13578 # Absolute (can't be DOS-style, as IFS=:)
13579 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13580 echo "$as_me: error: cannot find input file: $f" >&2;}
13581 { (exit 1); exit 1; }; }
13582 # Do quote $f, to prevent DOS paths from being IFS'd.
13583 echo "$f";;
13584 *) # Relative
13585 if test -f "$f"; then
13586 # Build tree
13587 echo "$f"
13588 elif test -f "$srcdir/$f"; then
13589 # Source tree
13590 echo "$srcdir/$f"
13591 else
13592 # /dev/null tree
13593 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13594 echo "$as_me: error: cannot find input file: $f" >&2;}
13595 { (exit 1); exit 1; }; }
13596 fi;;
13597 esac
13598 done` || { (exit 1); exit 1; }
13599 # Remove the trailing spaces.
13600 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13602 _ACEOF
13604 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13605 # `conftest.undefs', that substitutes the proper values into
13606 # config.h.in to produce config.h. The first handles `#define'
13607 # templates, and the second `#undef' templates.
13608 # And first: Protect against being on the right side of a sed subst in
13609 # config.status. Protect against being in an unquoted here document
13610 # in config.status.
13611 rm -f conftest.defines conftest.undefs
13612 # Using a here document instead of a string reduces the quoting nightmare.
13613 # Putting comments in sed scripts is not portable.
13615 # `end' is used to avoid that the second main sed command (meant for
13616 # 0-ary CPP macros) applies to n-ary macro definitions.
13617 # See the Autoconf documentation for `clear'.
13618 cat >confdef2sed.sed <<\_ACEOF
13619 s/[\\&,]/\\&/g
13620 s,[\\$`],\\&,g
13621 t clear
13622 : clear
13623 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13624 t end
13625 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13626 : end
13627 _ACEOF
13628 # If some macros were called several times there might be several times
13629 # the same #defines, which is useless. Nevertheless, we may not want to
13630 # sort them, since we want the *last* AC-DEFINE to be honored.
13631 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13632 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13633 rm -f confdef2sed.sed
13635 # This sed command replaces #undef with comments. This is necessary, for
13636 # example, in the case of _POSIX_SOURCE, which is predefined and required
13637 # on some systems where configure will not decide to define it.
13638 cat >>conftest.undefs <<\_ACEOF
13639 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13640 _ACEOF
13642 # Break up conftest.defines because some shells have a limit on the size
13643 # of here documents, and old seds have small limits too (100 cmds).
13644 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13645 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13646 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13647 echo ' :' >>$CONFIG_STATUS
13648 rm -f conftest.tail
13649 while grep . conftest.defines >/dev/null
13651 # Write a limited-size here document to $tmp/defines.sed.
13652 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13653 # Speed up: don't consider the non `#define' lines.
13654 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13655 # Work around the forget-to-reset-the-flag bug.
13656 echo 't clr' >>$CONFIG_STATUS
13657 echo ': clr' >>$CONFIG_STATUS
13658 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13659 echo 'CEOF
13660 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13661 rm -f $tmp/in
13662 mv $tmp/out $tmp/in
13663 ' >>$CONFIG_STATUS
13664 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13665 rm -f conftest.defines
13666 mv conftest.tail conftest.defines
13667 done
13668 rm -f conftest.defines
13669 echo ' fi # grep' >>$CONFIG_STATUS
13670 echo >>$CONFIG_STATUS
13672 # Break up conftest.undefs because some shells have a limit on the size
13673 # of here documents, and old seds have small limits too (100 cmds).
13674 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13675 rm -f conftest.tail
13676 while grep . conftest.undefs >/dev/null
13678 # Write a limited-size here document to $tmp/undefs.sed.
13679 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13680 # Speed up: don't consider the non `#undef'
13681 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13682 # Work around the forget-to-reset-the-flag bug.
13683 echo 't clr' >>$CONFIG_STATUS
13684 echo ': clr' >>$CONFIG_STATUS
13685 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13686 echo 'CEOF
13687 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13688 rm -f $tmp/in
13689 mv $tmp/out $tmp/in
13690 ' >>$CONFIG_STATUS
13691 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13692 rm -f conftest.undefs
13693 mv conftest.tail conftest.undefs
13694 done
13695 rm -f conftest.undefs
13697 cat >>$CONFIG_STATUS <<\_ACEOF
13698 # Let's still pretend it is `configure' which instantiates (i.e., don't
13699 # use $as_me), people would be surprised to read:
13700 # /* config.h. Generated by config.status. */
13701 if test x"$ac_file" = x-; then
13702 echo "/* Generated by configure. */" >$tmp/config.h
13703 else
13704 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13706 cat $tmp/in >>$tmp/config.h
13707 rm -f $tmp/in
13708 if test x"$ac_file" != x-; then
13709 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13710 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13711 echo "$as_me: $ac_file is unchanged" >&6;}
13712 else
13713 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13714 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13715 X"$ac_file" : 'X\(//\)[^/]' \| \
13716 X"$ac_file" : 'X\(//\)$' \| \
13717 X"$ac_file" : 'X\(/\)' \| \
13718 . : '\(.\)' 2>/dev/null ||
13719 echo X"$ac_file" |
13720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13722 /^X\(\/\/\)$/{ s//\1/; q; }
13723 /^X\(\/\).*/{ s//\1/; q; }
13724 s/.*/./; q'`
13725 { if $as_mkdir_p; then
13726 mkdir -p "$ac_dir"
13727 else
13728 as_dir="$ac_dir"
13729 as_dirs=
13730 while test ! -d "$as_dir"; do
13731 as_dirs="$as_dir $as_dirs"
13732 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13733 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13734 X"$as_dir" : 'X\(//\)[^/]' \| \
13735 X"$as_dir" : 'X\(//\)$' \| \
13736 X"$as_dir" : 'X\(/\)' \| \
13737 . : '\(.\)' 2>/dev/null ||
13738 echo X"$as_dir" |
13739 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13740 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13741 /^X\(\/\/\)$/{ s//\1/; q; }
13742 /^X\(\/\).*/{ s//\1/; q; }
13743 s/.*/./; q'`
13744 done
13745 test ! -n "$as_dirs" || mkdir $as_dirs
13746 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13747 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13748 { (exit 1); exit 1; }; }; }
13750 rm -f $ac_file
13751 mv $tmp/config.h $ac_file
13753 else
13754 cat $tmp/config.h
13755 rm -f $tmp/config.h
13757 # Compute $ac_file's index in $config_headers.
13758 _am_stamp_count=1
13759 for _am_header in $config_headers :; do
13760 case $_am_header in
13761 $ac_file | $ac_file:* )
13762 break ;;
13764 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13765 esac
13766 done
13767 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
13768 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13769 X$ac_file : 'X\(//\)[^/]' \| \
13770 X$ac_file : 'X\(//\)$' \| \
13771 X$ac_file : 'X\(/\)' \| \
13772 . : '\(.\)' 2>/dev/null ||
13773 echo X$ac_file |
13774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13775 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13776 /^X\(\/\/\)$/{ s//\1/; q; }
13777 /^X\(\/\).*/{ s//\1/; q; }
13778 s/.*/./; q'`/stamp-h$_am_stamp_count
13779 done
13780 _ACEOF
13781 cat >>$CONFIG_STATUS <<\_ACEOF
13784 # CONFIG_COMMANDS section.
13786 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13787 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13788 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13789 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13790 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13791 X"$ac_dest" : 'X\(//\)[^/]' \| \
13792 X"$ac_dest" : 'X\(//\)$' \| \
13793 X"$ac_dest" : 'X\(/\)' \| \
13794 . : '\(.\)' 2>/dev/null ||
13795 echo X"$ac_dest" |
13796 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13797 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13798 /^X\(\/\/\)$/{ s//\1/; q; }
13799 /^X\(\/\).*/{ s//\1/; q; }
13800 s/.*/./; q'`
13801 { if $as_mkdir_p; then
13802 mkdir -p "$ac_dir"
13803 else
13804 as_dir="$ac_dir"
13805 as_dirs=
13806 while test ! -d "$as_dir"; do
13807 as_dirs="$as_dir $as_dirs"
13808 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13809 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13810 X"$as_dir" : 'X\(//\)[^/]' \| \
13811 X"$as_dir" : 'X\(//\)$' \| \
13812 X"$as_dir" : 'X\(/\)' \| \
13813 . : '\(.\)' 2>/dev/null ||
13814 echo X"$as_dir" |
13815 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13816 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13817 /^X\(\/\/\)$/{ s//\1/; q; }
13818 /^X\(\/\).*/{ s//\1/; q; }
13819 s/.*/./; q'`
13820 done
13821 test ! -n "$as_dirs" || mkdir $as_dirs
13822 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13823 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13824 { (exit 1); exit 1; }; }; }
13826 ac_builddir=.
13828 if test "$ac_dir" != .; then
13829 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13830 # A "../" for each directory in $ac_dir_suffix.
13831 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13832 else
13833 ac_dir_suffix= ac_top_builddir=
13836 case $srcdir in
13837 .) # No --srcdir option. We are building in place.
13838 ac_srcdir=.
13839 if test -z "$ac_top_builddir"; then
13840 ac_top_srcdir=.
13841 else
13842 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13843 fi ;;
13844 [\\/]* | ?:[\\/]* ) # Absolute path.
13845 ac_srcdir=$srcdir$ac_dir_suffix;
13846 ac_top_srcdir=$srcdir ;;
13847 *) # Relative path.
13848 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13849 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13850 esac
13852 # Do not use `cd foo && pwd` to compute absolute paths, because
13853 # the directories may not exist.
13854 case `pwd` in
13855 .) ac_abs_builddir="$ac_dir";;
13857 case "$ac_dir" in
13858 .) ac_abs_builddir=`pwd`;;
13859 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13860 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13861 esac;;
13862 esac
13863 case $ac_abs_builddir in
13864 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13866 case ${ac_top_builddir}. in
13867 .) ac_abs_top_builddir=$ac_abs_builddir;;
13868 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13869 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13870 esac;;
13871 esac
13872 case $ac_abs_builddir in
13873 .) ac_abs_srcdir=$ac_srcdir;;
13875 case $ac_srcdir in
13876 .) ac_abs_srcdir=$ac_abs_builddir;;
13877 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13878 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13879 esac;;
13880 esac
13881 case $ac_abs_builddir in
13882 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13884 case $ac_top_srcdir in
13885 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13886 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13887 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13888 esac;;
13889 esac
13892 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13893 echo "$as_me: executing $ac_dest commands" >&6;}
13894 case $ac_dest in
13895 default-1 )
13896 # Only add multilib support code if we just rebuilt the top-level
13897 # Makefile.
13898 case " $CONFIG_FILES " in
13899 *" Makefile "*)
13900 ac_file=Makefile . ${multi_basedir}/config-ml.in
13902 esac ;;
13903 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
13904 # Strip MF so we end up with the name of the file.
13905 mf=`echo "$mf" | sed -e 's/:.*$//'`
13906 # Check whether this is an Automake generated Makefile or not.
13907 # We used to match only the files named `Makefile.in', but
13908 # some people rename them; so instead we look at the file content.
13909 # Grep'ing the first line is not enough: some people post-process
13910 # each Makefile.in and add a new line on top of each file to say so.
13911 # So let's grep whole file.
13912 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
13913 dirpart=`(dirname "$mf") 2>/dev/null ||
13914 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13915 X"$mf" : 'X\(//\)[^/]' \| \
13916 X"$mf" : 'X\(//\)$' \| \
13917 X"$mf" : 'X\(/\)' \| \
13918 . : '\(.\)' 2>/dev/null ||
13919 echo X"$mf" |
13920 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13921 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13922 /^X\(\/\/\)$/{ s//\1/; q; }
13923 /^X\(\/\).*/{ s//\1/; q; }
13924 s/.*/./; q'`
13925 else
13926 continue
13928 # Extract the definition of DEPDIR, am__include, and am__quote
13929 # from the Makefile without running `make'.
13930 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13931 test -z "$DEPDIR" && continue
13932 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13933 test -z "am__include" && continue
13934 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13935 # When using ansi2knr, U may be empty or an underscore; expand it
13936 U=`sed -n 's/^U = //p' < "$mf"`
13937 # Find all dependency output files, they are included files with
13938 # $(DEPDIR) in their names. We invoke sed twice because it is the
13939 # simplest approach to changing $(DEPDIR) to its actual value in the
13940 # expansion.
13941 for file in `sed -n "
13942 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13943 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13944 # Make sure the directory exists.
13945 test -f "$dirpart/$file" && continue
13946 fdir=`(dirname "$file") 2>/dev/null ||
13947 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13948 X"$file" : 'X\(//\)[^/]' \| \
13949 X"$file" : 'X\(//\)$' \| \
13950 X"$file" : 'X\(/\)' \| \
13951 . : '\(.\)' 2>/dev/null ||
13952 echo X"$file" |
13953 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13954 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13955 /^X\(\/\/\)$/{ s//\1/; q; }
13956 /^X\(\/\).*/{ s//\1/; q; }
13957 s/.*/./; q'`
13958 { if $as_mkdir_p; then
13959 mkdir -p $dirpart/$fdir
13960 else
13961 as_dir=$dirpart/$fdir
13962 as_dirs=
13963 while test ! -d "$as_dir"; do
13964 as_dirs="$as_dir $as_dirs"
13965 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13966 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13967 X"$as_dir" : 'X\(//\)[^/]' \| \
13968 X"$as_dir" : 'X\(//\)$' \| \
13969 X"$as_dir" : 'X\(/\)' \| \
13970 . : '\(.\)' 2>/dev/null ||
13971 echo X"$as_dir" |
13972 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13973 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13974 /^X\(\/\/\)$/{ s//\1/; q; }
13975 /^X\(\/\).*/{ s//\1/; q; }
13976 s/.*/./; q'`
13977 done
13978 test ! -n "$as_dirs" || mkdir $as_dirs
13979 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
13980 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
13981 { (exit 1); exit 1; }; }; }
13983 # echo "creating $dirpart/$file"
13984 echo '# dummy' > "$dirpart/$file"
13985 done
13986 done
13988 libtool )
13990 # See if we are running on zsh, and set the options which allow our
13991 # commands through without removal of \ escapes.
13992 if test -n "${ZSH_VERSION+set}" ; then
13993 setopt NO_GLOB_SUBST
13996 cfgfile="${ofile}T"
13997 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13998 $RM "$cfgfile"
14000 cat <<_LT_EOF >> "$cfgfile"
14001 #! $SHELL
14003 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14004 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
14005 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14006 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14008 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14009 # 2006, 2007 Free Software Foundation, Inc.
14011 # This file is part of GNU Libtool:
14012 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14014 # This program is free software; you can redistribute it and/or modify
14015 # it under the terms of the GNU General Public License as published by
14016 # the Free Software Foundation; either version 2 of the License, or
14017 # (at your option) any later version.
14019 # This program is distributed in the hope that it will be useful, but
14020 # WITHOUT ANY WARRANTY; without even the implied warranty of
14021 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14022 # General Public License for more details.
14024 # You should have received a copy of the GNU General Public License
14025 # along with this program; if not, a copy can be downloaded from
14026 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
14027 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
14028 # MA 02110-1301, USA.
14030 # As a special exception to the GNU General Public License, if you
14031 # distribute this file as part of a program that contains a
14032 # configuration script generated by Autoconf, you may include it under
14033 # the same distribution terms that you use for the rest of that program.
14036 # The names of the tagged configurations supported by this script.
14037 available_tags=""
14039 # ### BEGIN LIBTOOL CONFIG
14041 # Which release of libtool.m4 was used?
14042 macro_version=$macro_version
14043 macro_revision=$macro_revision
14045 # Whether or not to build shared libraries.
14046 build_libtool_libs=$enable_shared
14048 # Whether or not to build static libraries.
14049 build_old_libs=$enable_static
14051 # What type of objects to build.
14052 pic_mode=$pic_mode
14054 # Whether or not to optimize for fast installation.
14055 fast_install=$enable_fast_install
14057 # The host system.
14058 host_alias=$host_alias
14059 host=$host
14060 host_os=$host_os
14062 # The build system.
14063 build_alias=$build_alias
14064 build=$build
14065 build_os=$build_os
14067 # A sed program that does not truncate output.
14068 SED=$lt_SED
14070 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14071 Xsed="\$SED -e 1s/^X//"
14073 # A grep program that handles long lines.
14074 GREP=$lt_GREP
14076 # An ERE matcher.
14077 EGREP=$lt_EGREP
14079 # A literal string matcher.
14080 FGREP=$lt_FGREP
14082 # A BSD- or MS-compatible name lister.
14083 NM=$lt_NM
14085 # Whether we need soft or hard links.
14086 LN_S=$lt_LN_S
14088 # What is the maximum length of a command?
14089 max_cmd_len=$max_cmd_len
14091 # Object file suffix (normally "o").
14092 objext=$ac_objext
14094 # Executable file suffix (normally "").
14095 exeext=$exeext
14097 # whether the shell understands "unset".
14098 lt_unset=$lt_unset
14100 # turn spaces into newlines.
14101 SP2NL=$lt_lt_SP2NL
14103 # turn newlines into spaces.
14104 NL2SP=$lt_lt_NL2SP
14106 # How to create reloadable object files.
14107 reload_flag=$lt_reload_flag
14108 reload_cmds=$lt_reload_cmds
14110 # Method to check whether dependent libraries are shared objects.
14111 deplibs_check_method=$lt_deplibs_check_method
14113 # Command to use when deplibs_check_method == "file_magic".
14114 file_magic_cmd=$lt_file_magic_cmd
14116 # The archiver.
14117 AR=$lt_AR
14118 AR_FLAGS=$lt_AR_FLAGS
14120 # A symbol stripping program.
14121 STRIP=$lt_STRIP
14123 # Commands used to install an old-style archive.
14124 RANLIB=$lt_RANLIB
14125 old_postinstall_cmds=$lt_old_postinstall_cmds
14126 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14128 # A C compiler.
14129 LTCC=$lt_CC
14131 # LTCC compiler flags.
14132 LTCFLAGS=$lt_CFLAGS
14134 # Take the output of nm and produce a listing of raw symbols and C names.
14135 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14137 # Transform the output of nm in a proper C declaration.
14138 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14140 # Transform the output of nm in a C name address pair.
14141 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14143 # The name of the directory that contains temporary libtool files.
14144 objdir=$objdir
14146 # Shell to use when invoking shell scripts.
14147 SHELL=$lt_SHELL
14149 # An echo program that does not interpret backslashes.
14150 ECHO=$lt_ECHO
14152 # Used to examine libraries when file_magic_cmd begins with "file".
14153 MAGIC_CMD=$MAGIC_CMD
14155 # Must we lock files when doing compilation?
14156 need_locks=$lt_need_locks
14158 # Old archive suffix (normally "a").
14159 libext=$libext
14161 # Shared library suffix (normally ".so").
14162 shrext_cmds=$lt_shrext_cmds
14164 # The commands to extract the exported symbol list from a shared archive.
14165 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14167 # Variables whose values should be saved in libtool wrapper scripts and
14168 # restored at link time.
14169 variables_saved_for_relink=$lt_variables_saved_for_relink
14171 # Do we need the "lib" prefix for modules?
14172 need_lib_prefix=$need_lib_prefix
14174 # Do we need a version for libraries?
14175 need_version=$need_version
14177 # Library versioning type.
14178 version_type=$version_type
14180 # Shared library runtime path variable.
14181 runpath_var=$runpath_var
14183 # Shared library path variable.
14184 shlibpath_var=$shlibpath_var
14186 # Is shlibpath searched before the hard-coded library search path?
14187 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14189 # Format of library name prefix.
14190 libname_spec=$lt_libname_spec
14192 # List of archive names. First name is the real one, the rest are links.
14193 # The last name is the one that the linker finds with -lNAME
14194 library_names_spec=$lt_library_names_spec
14196 # The coded name of the library, if different from the real name.
14197 soname_spec=$lt_soname_spec
14199 # Command to use after installation of a shared archive.
14200 postinstall_cmds=$lt_postinstall_cmds
14202 # Command to use after uninstallation of a shared archive.
14203 postuninstall_cmds=$lt_postuninstall_cmds
14205 # Commands used to finish a libtool library installation in a directory.
14206 finish_cmds=$lt_finish_cmds
14208 # As "finish_cmds", except a single script fragment to be evaled but
14209 # not shown.
14210 finish_eval=$lt_finish_eval
14212 # Whether we should hardcode library paths into libraries.
14213 hardcode_into_libs=$hardcode_into_libs
14215 # Compile-time system search path for libraries.
14216 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14218 # Run-time system search path for libraries.
14219 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14221 # Whether dlopen is supported.
14222 dlopen_support=$enable_dlopen
14224 # Whether dlopen of programs is supported.
14225 dlopen_self=$enable_dlopen_self
14227 # Whether dlopen of statically linked programs is supported.
14228 dlopen_self_static=$enable_dlopen_self_static
14230 # Commands to strip libraries.
14231 old_striplib=$lt_old_striplib
14232 striplib=$lt_striplib
14235 # The linker used to build libraries.
14236 LD=$lt_LD
14238 # Commands used to build an old-style archive.
14239 old_archive_cmds=$lt_old_archive_cmds
14241 # A language specific compiler.
14242 CC=$lt_compiler
14244 # Is the compiler the GNU compiler?
14245 with_gcc=$GCC
14247 # Compiler flag to turn off builtin functions.
14248 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14250 # How to pass a linker flag through the compiler.
14251 wl=$lt_lt_prog_compiler_wl
14253 # Additional compiler flags for building library objects.
14254 pic_flag=$lt_lt_prog_compiler_pic
14256 # Compiler flag to prevent dynamic linking.
14257 link_static_flag=$lt_lt_prog_compiler_static
14259 # Does compiler simultaneously support -c and -o options?
14260 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14262 # Whether or not to add -lc for building shared libraries.
14263 build_libtool_need_lc=$archive_cmds_need_lc
14265 # Whether or not to disallow shared libs when runtime libs are static.
14266 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14268 # Compiler flag to allow reflexive dlopens.
14269 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14271 # Compiler flag to generate shared objects directly from archives.
14272 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14274 # Whether the compiler copes with passing no objects directly.
14275 compiler_needs_object=$lt_compiler_needs_object
14277 # Create an old-style archive from a shared archive.
14278 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14280 # Create a temporary old-style archive to link instead of a shared archive.
14281 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14283 # Commands used to build a shared archive.
14284 archive_cmds=$lt_archive_cmds
14285 archive_expsym_cmds=$lt_archive_expsym_cmds
14287 # Commands used to build a loadable module if different from building
14288 # a shared archive.
14289 module_cmds=$lt_module_cmds
14290 module_expsym_cmds=$lt_module_expsym_cmds
14292 # Whether we are building with GNU ld or not.
14293 with_gnu_ld=$lt_with_gnu_ld
14295 # Flag that allows shared libraries with undefined symbols to be built.
14296 allow_undefined_flag=$lt_allow_undefined_flag
14298 # Flag that enforces no undefined symbols.
14299 no_undefined_flag=$lt_no_undefined_flag
14301 # Flag to hardcode \$libdir into a binary during linking.
14302 # This must work even if \$libdir does not exist
14303 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14305 # If ld is used when linking, flag to hardcode \$libdir into a binary
14306 # during linking. This must work even if \$libdir does not exist.
14307 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14309 # Whether we need a single "-rpath" flag with a separated argument.
14310 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14312 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14313 # DIR into the resulting binary.
14314 hardcode_direct=$hardcode_direct
14316 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14317 # DIR into the resulting binary and the resulting library dependency is
14318 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14319 # library is relocated.
14320 hardcode_direct_absolute=$hardcode_direct_absolute
14322 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14323 # into the resulting binary.
14324 hardcode_minus_L=$hardcode_minus_L
14326 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14327 # into the resulting binary.
14328 hardcode_shlibpath_var=$hardcode_shlibpath_var
14330 # Set to "yes" if building a shared library automatically hardcodes DIR
14331 # into the library and all subsequent libraries and executables linked
14332 # against it.
14333 hardcode_automatic=$hardcode_automatic
14335 # Set to yes if linker adds runtime paths of dependent libraries
14336 # to runtime path list.
14337 inherit_rpath=$inherit_rpath
14339 # Whether libtool must link a program against all its dependency libraries.
14340 link_all_deplibs=$link_all_deplibs
14342 # Fix the shell variable \$srcfile for the compiler.
14343 fix_srcfile_path=$lt_fix_srcfile_path
14345 # Set to "yes" if exported symbols are required.
14346 always_export_symbols=$always_export_symbols
14348 # The commands to list exported symbols.
14349 export_symbols_cmds=$lt_export_symbols_cmds
14351 # Symbols that should not be listed in the preloaded symbols.
14352 exclude_expsyms=$lt_exclude_expsyms
14354 # Symbols that must always be exported.
14355 include_expsyms=$lt_include_expsyms
14357 # Commands necessary for linking programs (against libraries) with templates.
14358 prelink_cmds=$lt_prelink_cmds
14360 # Specify filename containing input files.
14361 file_list_spec=$lt_file_list_spec
14363 # How to hardcode a shared library path into an executable.
14364 hardcode_action=$hardcode_action
14366 # ### END LIBTOOL CONFIG
14368 _LT_EOF
14370 case $host_os in
14371 aix3*)
14372 cat <<\_LT_EOF >> "$cfgfile"
14373 # AIX sometimes has problems with the GCC collect2 program. For some
14374 # reason, if we set the COLLECT_NAMES environment variable, the problems
14375 # vanish in a puff of smoke.
14376 if test "X${COLLECT_NAMES+set}" != Xset; then
14377 COLLECT_NAMES=
14378 export COLLECT_NAMES
14380 _LT_EOF
14382 esac
14385 ltmain="$ac_aux_dir/ltmain.sh"
14388 # We use sed instead of cat because bash on DJGPP gets confused if
14389 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14390 # text mode, it properly converts lines to CR/LF. This bash problem
14391 # is reportedly fixed, but why not run on old versions too?
14392 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14393 || (rm -f "$cfgfile"; exit 1)
14395 case $xsi_shell in
14396 yes)
14397 cat << \_LT_EOF >> "$cfgfile"
14398 # func_dirname file append nondir_replacement
14399 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14400 # otherwise set result to NONDIR_REPLACEMENT.
14401 func_dirname ()
14403 case ${1} in
14404 */*) func_dirname_result="${1%/*}${2}" ;;
14405 * ) func_dirname_result="${3}" ;;
14406 esac
14409 # func_basename file
14410 func_basename ()
14412 func_basename_result="${1##*/}"
14415 # func_stripname prefix suffix name
14416 # strip PREFIX and SUFFIX off of NAME.
14417 # PREFIX and SUFFIX must not contain globbing or regex special
14418 # characters, hashes, percent signs, but SUFFIX may contain a leading
14419 # dot (in which case that matches only a dot).
14420 func_stripname ()
14422 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14423 # positional parameters, so assign one to ordinary parameter first.
14424 func_stripname_result=${3}
14425 func_stripname_result=${func_stripname_result#"${1}"}
14426 func_stripname_result=${func_stripname_result%"${2}"}
14429 # func_opt_split
14430 func_opt_split ()
14432 func_opt_split_opt=${1%%=*}
14433 func_opt_split_arg=${1#*=}
14436 # func_lo2o object
14437 func_lo2o ()
14439 case ${1} in
14440 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14441 *) func_lo2o_result=${1} ;;
14442 esac
14444 _LT_EOF
14446 *) # Bourne compatible functions.
14447 cat << \_LT_EOF >> "$cfgfile"
14448 # func_dirname file append nondir_replacement
14449 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14450 # otherwise set result to NONDIR_REPLACEMENT.
14451 func_dirname ()
14453 # Extract subdirectory from the argument.
14454 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14455 if test "X$func_dirname_result" = "X${1}"; then
14456 func_dirname_result="${3}"
14457 else
14458 func_dirname_result="$func_dirname_result${2}"
14462 # func_basename file
14463 func_basename ()
14465 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14468 # func_stripname prefix suffix name
14469 # strip PREFIX and SUFFIX off of NAME.
14470 # PREFIX and SUFFIX must not contain globbing or regex special
14471 # characters, hashes, percent signs, but SUFFIX may contain a leading
14472 # dot (in which case that matches only a dot).
14473 # func_strip_suffix prefix name
14474 func_stripname ()
14476 case ${2} in
14477 .*) func_stripname_result=`$ECHO "X${3}" \
14478 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14479 *) func_stripname_result=`$ECHO "X${3}" \
14480 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14481 esac
14484 # sed scripts:
14485 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14486 my_sed_long_arg='1s/^-[^=]*=//'
14488 # func_opt_split
14489 func_opt_split ()
14491 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14492 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14495 # func_lo2o object
14496 func_lo2o ()
14498 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14500 _LT_EOF
14501 esac
14503 case $lt_shell_append in
14504 yes)
14505 cat << \_LT_EOF >> "$cfgfile"
14507 # func_append var value
14508 # Append VALUE to the end of shell variable VAR.
14509 func_append ()
14511 eval "$1+=\$2"
14513 _LT_EOF
14516 cat << \_LT_EOF >> "$cfgfile"
14518 # func_append var value
14519 # Append VALUE to the end of shell variable VAR.
14520 func_append ()
14522 eval "$1=\$$1\$2"
14524 _LT_EOF
14526 esac
14529 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14530 || (rm -f "$cfgfile"; exit 1)
14532 mv -f "$cfgfile" "$ofile" ||
14533 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14534 chmod +x "$ofile"
14537 esac
14538 done
14539 _ACEOF
14541 cat >>$CONFIG_STATUS <<\_ACEOF
14543 { (exit 0); exit 0; }
14544 _ACEOF
14545 chmod +x $CONFIG_STATUS
14546 ac_clean_files=$ac_clean_files_save
14549 # configure is writing to config.log, and then calls config.status.
14550 # config.status does its own redirection, appending to config.log.
14551 # Unfortunately, on DOS this fails, as config.log is still kept open
14552 # by configure, so config.status won't be able to write to it; its
14553 # output is simply discarded. So we exec the FD to /dev/null,
14554 # effectively closing config.log, so it can be properly (re)opened and
14555 # appended to by config.status. When coming back to configure, we
14556 # need to make the FD available again.
14557 if test "$no_create" != yes; then
14558 ac_cs_success=:
14559 ac_config_status_args=
14560 test "$silent" = yes &&
14561 ac_config_status_args="$ac_config_status_args --quiet"
14562 exec 5>/dev/null
14563 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14564 exec 5>>config.log
14565 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14566 # would make configure fail if this is the last instruction.
14567 $ac_cs_success || { (exit 1); exit 1; }