Release tarball for barry-0.4
[barry.git] / configure
blob2a25310532c0edfba67d4c4a6573c1cdca746c14
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for barry 0.4.
5 # Report bugs to <barry-devel@lists.sourceforge.net>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
40 # NLS nuisances.
41 for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
51 done
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
98 rm -f conf$$.sh
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
156 esac
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
240 IFS=" $as_nl"
242 # CDPATH.
243 $as_unset CDPATH
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
250 case X$ECHO in
251 X*--fallback-echo)
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
255 esac
257 echo=${ECHO-echo}
258 if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
260 shift
261 elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $echo works!
267 else
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
272 if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
274 shift
275 cat <<EOF
278 exit 0
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 # if CDPATH is set.
283 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291 echo_test_string="`eval $cmd`" &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293 then
294 break
296 done
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
303 else
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
308 # So, first we look for a working echo in the user's PATH.
310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311 for dir in $PATH /usr/ucb; do
312 IFS="$lt_save_ifs"
313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
317 echo="$dir/echo"
318 break
320 done
321 IFS="$lt_save_ifs"
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
329 echo='print -r'
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
336 export CONFIG_SHELL
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338 else
339 # Try using printf.
340 echo='printf %s\n'
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
344 # Cool, printf works
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351 export CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
353 export SHELL
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
360 else
361 # maybe with a smaller string...
362 prev=:
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366 then
367 break
369 prev="$cmd"
370 done
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376 else
377 # Oops. We lost completely, so just stick with echo.
378 echo=echo
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
388 ECHO=$echo
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
396 tagnames=${tagnames+${tagnames},}CXX
398 tagnames=${tagnames+${tagnames},}F77
400 # Name of the host.
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
405 exec 6>&1
408 # Initializations.
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
412 cross_compiling=no
413 subdirs=
414 MFLAGS=
415 MAKEFLAGS=
416 SHELL=${CONFIG_SHELL-/bin/sh}
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete. It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
423 # Identity of this package.
424 PACKAGE_NAME='barry'
425 PACKAGE_TARNAME='barry'
426 PACKAGE_VERSION='0.4'
427 PACKAGE_STRING='barry 0.4'
428 PACKAGE_BUGREPORT='barry-devel@lists.sourceforge.net'
430 ac_unique_file="src/barry.h"
431 # Factoring default headers for most tests.
432 ac_includes_default="\
433 #include <stdio.h>
434 #if HAVE_SYS_TYPES_H
435 # include <sys/types.h>
436 #endif
437 #if HAVE_SYS_STAT_H
438 # include <sys/stat.h>
439 #endif
440 #if STDC_HEADERS
441 # include <stdlib.h>
442 # include <stddef.h>
443 #else
444 # if HAVE_STDLIB_H
445 # include <stdlib.h>
446 # endif
447 #endif
448 #if HAVE_STRING_H
449 # if !STDC_HEADERS && HAVE_MEMORY_H
450 # include <memory.h>
451 # endif
452 # include <string.h>
453 #endif
454 #if HAVE_STRINGS_H
455 # include <strings.h>
456 #endif
457 #if HAVE_INTTYPES_H
458 # include <inttypes.h>
459 #else
460 # if HAVE_STDINT_H
461 # include <stdint.h>
462 # endif
463 #endif
464 #if HAVE_UNISTD_H
465 # include <unistd.h>
466 #endif"
468 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 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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBUSB_LIB_PATH LIBUSB_INC_PATH BOOST_LIB_PATH BOOST_INC_PATH WITH_BOOST_TRUE WITH_BOOST_FALSE LIBOBJS LTLIBOBJS'
469 ac_subst_files=''
471 # Initialize some variables set by options.
472 ac_init_help=
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
476 cache_file=/dev/null
477 exec_prefix=NONE
478 no_create=
479 no_recursion=
480 prefix=NONE
481 program_prefix=NONE
482 program_suffix=NONE
483 program_transform_name=s,x,x,
484 silent=
485 site=
486 srcdir=
487 verbose=
488 x_includes=NONE
489 x_libraries=NONE
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
509 ac_prev=
510 for ac_option
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
515 ac_prev=
516 continue
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521 # Accept the important Cygnus configure options, so we can diagnose typos.
523 case $ac_option in
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
526 ac_prev=bindir ;;
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528 bindir=$ac_optarg ;;
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
542 --config-cache | -C)
543 cache_file=config.cache ;;
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546 ac_prev=datadir ;;
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548 | --da=*)
549 datadir=$ac_optarg ;;
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567 case $ac_option in
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569 *) ac_optarg=yes ;;
570 esac
571 eval "enable_$ac_feature='$ac_optarg'" ;;
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
584 with_gas=yes ;;
586 -help | --help | --hel | --he | -h)
587 ac_init_help=long ;;
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
606 ac_prev=infodir ;;
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
610 -libdir | --libdir | --libdi | --libd)
611 ac_prev=libdir ;;
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
613 libdir=$ac_optarg ;;
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632 ac_prev=mandir ;;
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634 mandir=$ac_optarg ;;
636 -nfp | --nfp | --nf)
637 # Obsolete; use --without-fp.
638 with_fp=no ;;
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
642 no_create=yes ;;
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646 no_recursion=yes ;;
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658 ac_prev=prefix ;;
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660 prefix=$ac_optarg ;;
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
695 silent=yes ;;
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698 ac_prev=sbindir ;;
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700 | --sbi=* | --sb=*)
701 sbindir=$ac_optarg ;;
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
706 | --sha | --sh)
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711 | --sha=* | --sh=*)
712 sharedstatedir=$ac_optarg ;;
714 -site | --site | --sit)
715 ac_prev=site ;;
716 -site=* | --site=* | --sit=*)
717 site=$ac_optarg ;;
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720 ac_prev=srcdir ;;
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722 srcdir=$ac_optarg ;;
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
737 verbose=yes ;;
739 -version | --version | --versio | --versi | --vers | -V)
740 ac_init_version=: ;;
742 -with-* | --with-*)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
749 case $ac_option in
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751 *) ac_optarg=yes ;;
752 esac
753 eval "with_$ac_package='$ac_optarg'" ;;
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
764 --x)
765 # Obsolete; use --with-x.
766 with_x=yes ;;
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
787 *=*)
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
795 export $ac_envvar ;;
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
805 esac
806 done
808 if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
817 eval ac_val=$`echo $ac_var`
818 case $ac_val in
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
822 esac
823 done
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
829 eval ac_val=$`echo $ac_var`
830 case $ac_val in
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
834 esac
835 done
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
840 build=$build_alias
841 host=$host_alias
842 target=$target_alias
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
851 cross_compiling=yes
855 ac_tool_prefix=
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858 test "$silent" = yes && exec 6>/dev/null
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
871 echo X"$0" |
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
876 s/.*/./; q'`
877 srcdir=$ac_confdir
878 if test ! -r $srcdir/$ac_unique_file; then
879 srcdir=..
881 else
882 ac_srcdir_defaulted=no
884 if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
888 else
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
910 ac_env_CC_value=$CC
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CXX_set=${CXX+set}
926 ac_env_CXX_value=$CXX
927 ac_cv_env_CXX_set=${CXX+set}
928 ac_cv_env_CXX_value=$CXX
929 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
930 ac_env_CXXFLAGS_value=$CXXFLAGS
931 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
932 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
933 ac_env_CPP_set=${CPP+set}
934 ac_env_CPP_value=$CPP
935 ac_cv_env_CPP_set=${CPP+set}
936 ac_cv_env_CPP_value=$CPP
937 ac_env_CXXCPP_set=${CXXCPP+set}
938 ac_env_CXXCPP_value=$CXXCPP
939 ac_cv_env_CXXCPP_set=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value=$CXXCPP
941 ac_env_F77_set=${F77+set}
942 ac_env_F77_value=$F77
943 ac_cv_env_F77_set=${F77+set}
944 ac_cv_env_F77_value=$F77
945 ac_env_FFLAGS_set=${FFLAGS+set}
946 ac_env_FFLAGS_value=$FFLAGS
947 ac_cv_env_FFLAGS_set=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value=$FFLAGS
951 # Report the --help message.
953 if test "$ac_init_help" = "long"; then
954 # Omit some internal or obsolete options to make the list less imposing.
955 # This message is too long to be a string in the A/UX 3.1 sh.
956 cat <<_ACEOF
957 \`configure' configures barry 0.4 to adapt to many kinds of systems.
959 Usage: $0 [OPTION]... [VAR=VALUE]...
961 To assign environment variables (e.g., CC, CFLAGS...), specify them as
962 VAR=VALUE. See below for descriptions of some of the useful variables.
964 Defaults for the options are specified in brackets.
966 Configuration:
967 -h, --help display this help and exit
968 --help=short display options specific to this package
969 --help=recursive display the short help of all the included packages
970 -V, --version display version information and exit
971 -q, --quiet, --silent do not print \`checking...' messages
972 --cache-file=FILE cache test results in FILE [disabled]
973 -C, --config-cache alias for \`--cache-file=config.cache'
974 -n, --no-create do not create output files
975 --srcdir=DIR find the sources in DIR [configure dir or \`..']
977 _ACEOF
979 cat <<_ACEOF
980 Installation directories:
981 --prefix=PREFIX install architecture-independent files in PREFIX
982 [$ac_default_prefix]
983 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
984 [PREFIX]
986 By default, \`make install' will install all the files in
987 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
988 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989 for instance \`--prefix=\$HOME'.
991 For better control, use the options below.
993 Fine tuning of the installation directories:
994 --bindir=DIR user executables [EPREFIX/bin]
995 --sbindir=DIR system admin executables [EPREFIX/sbin]
996 --libexecdir=DIR program executables [EPREFIX/libexec]
997 --datadir=DIR read-only architecture-independent data [PREFIX/share]
998 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
999 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1000 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1001 --libdir=DIR object code libraries [EPREFIX/lib]
1002 --includedir=DIR C header files [PREFIX/include]
1003 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1004 --infodir=DIR info documentation [PREFIX/info]
1005 --mandir=DIR man documentation [PREFIX/man]
1006 _ACEOF
1008 cat <<\_ACEOF
1010 Program names:
1011 --program-prefix=PREFIX prepend PREFIX to installed program names
1012 --program-suffix=SUFFIX append SUFFIX to installed program names
1013 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1015 System types:
1016 --build=BUILD configure for building on BUILD [guessed]
1017 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1018 _ACEOF
1021 if test -n "$ac_init_help"; then
1022 case $ac_init_help in
1023 short | recursive ) echo "Configuration of barry 0.4:";;
1024 esac
1025 cat <<\_ACEOF
1027 Optional Features:
1028 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1029 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1030 --disable-dependency-tracking speeds up one-time build
1031 --enable-dependency-tracking do not reject slow dependency extractors
1032 --enable-shared[=PKGS]
1033 build shared libraries [default=yes]
1034 --enable-static[=PKGS]
1035 build static libraries [default=yes]
1036 --enable-fast-install[=PKGS]
1037 optimize for fast installation [default=yes]
1038 --disable-libtool-lock avoid locking (might break parallel builds)
1040 Optional Packages:
1041 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1042 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1043 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1044 --with-pic try to use only PIC/non-PIC objects [default=use
1045 both]
1046 --with-tags[=TAGS]
1047 include additional configurations [automatic]
1048 --with-libusb=<path> root path of libusb installation
1049 --with-boost=<path> root path of boost installation (default=no boost)
1051 Some influential environment variables:
1052 CC C compiler command
1053 CFLAGS C compiler flags
1054 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1055 nonstandard directory <lib dir>
1056 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1057 headers in a nonstandard directory <include dir>
1058 CXX C++ compiler command
1059 CXXFLAGS C++ compiler flags
1060 CPP C preprocessor
1061 CXXCPP C++ preprocessor
1062 F77 Fortran 77 compiler command
1063 FFLAGS Fortran 77 compiler flags
1065 Use these variables to override the choices made by `configure' or to help
1066 it to find libraries and programs with nonstandard names/locations.
1068 Report bugs to <barry-devel@lists.sourceforge.net>.
1069 _ACEOF
1072 if test "$ac_init_help" = "recursive"; then
1073 # If there are subdirs, report their specific --help.
1074 ac_popdir=`pwd`
1075 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1076 test -d $ac_dir || continue
1077 ac_builddir=.
1079 if test "$ac_dir" != .; then
1080 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1081 # A "../" for each directory in $ac_dir_suffix.
1082 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1083 else
1084 ac_dir_suffix= ac_top_builddir=
1087 case $srcdir in
1088 .) # No --srcdir option. We are building in place.
1089 ac_srcdir=.
1090 if test -z "$ac_top_builddir"; then
1091 ac_top_srcdir=.
1092 else
1093 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1094 fi ;;
1095 [\\/]* | ?:[\\/]* ) # Absolute path.
1096 ac_srcdir=$srcdir$ac_dir_suffix;
1097 ac_top_srcdir=$srcdir ;;
1098 *) # Relative path.
1099 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1100 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1101 esac
1103 # Do not use `cd foo && pwd` to compute absolute paths, because
1104 # the directories may not exist.
1105 case `pwd` in
1106 .) ac_abs_builddir="$ac_dir";;
1108 case "$ac_dir" in
1109 .) ac_abs_builddir=`pwd`;;
1110 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1111 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1112 esac;;
1113 esac
1114 case $ac_abs_builddir in
1115 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1117 case ${ac_top_builddir}. in
1118 .) ac_abs_top_builddir=$ac_abs_builddir;;
1119 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1120 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1121 esac;;
1122 esac
1123 case $ac_abs_builddir in
1124 .) ac_abs_srcdir=$ac_srcdir;;
1126 case $ac_srcdir in
1127 .) ac_abs_srcdir=$ac_abs_builddir;;
1128 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1129 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1130 esac;;
1131 esac
1132 case $ac_abs_builddir in
1133 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1135 case $ac_top_srcdir in
1136 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1137 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1138 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1139 esac;;
1140 esac
1142 cd $ac_dir
1143 # Check for guested configure; otherwise get Cygnus style configure.
1144 if test -f $ac_srcdir/configure.gnu; then
1145 echo
1146 $SHELL $ac_srcdir/configure.gnu --help=recursive
1147 elif test -f $ac_srcdir/configure; then
1148 echo
1149 $SHELL $ac_srcdir/configure --help=recursive
1150 elif test -f $ac_srcdir/configure.ac ||
1151 test -f $ac_srcdir/configure.in; then
1152 echo
1153 $ac_configure --help
1154 else
1155 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1157 cd "$ac_popdir"
1158 done
1161 test -n "$ac_init_help" && exit 0
1162 if $ac_init_version; then
1163 cat <<\_ACEOF
1164 barry configure 0.4
1165 generated by GNU Autoconf 2.59
1167 Copyright (C) 2003 Free Software Foundation, Inc.
1168 This configure script is free software; the Free Software Foundation
1169 gives unlimited permission to copy, distribute and modify it.
1170 _ACEOF
1171 exit 0
1173 exec 5>config.log
1174 cat >&5 <<_ACEOF
1175 This file contains any messages produced by compilers while
1176 running configure, to aid debugging if configure makes a mistake.
1178 It was created by barry $as_me 0.4, which was
1179 generated by GNU Autoconf 2.59. Invocation command line was
1181 $ $0 $@
1183 _ACEOF
1185 cat <<_ASUNAME
1186 ## --------- ##
1187 ## Platform. ##
1188 ## --------- ##
1190 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1191 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1192 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1193 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1194 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1196 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1197 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1199 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1200 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1201 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1202 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1203 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1204 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1205 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1207 _ASUNAME
1209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1210 for as_dir in $PATH
1212 IFS=$as_save_IFS
1213 test -z "$as_dir" && as_dir=.
1214 echo "PATH: $as_dir"
1215 done
1217 } >&5
1219 cat >&5 <<_ACEOF
1222 ## ----------- ##
1223 ## Core tests. ##
1224 ## ----------- ##
1226 _ACEOF
1229 # Keep a trace of the command line.
1230 # Strip out --no-create and --no-recursion so they do not pile up.
1231 # Strip out --silent because we don't want to record it for future runs.
1232 # Also quote any args containing shell meta-characters.
1233 # Make two passes to allow for proper duplicate-argument suppression.
1234 ac_configure_args=
1235 ac_configure_args0=
1236 ac_configure_args1=
1237 ac_sep=
1238 ac_must_keep_next=false
1239 for ac_pass in 1 2
1241 for ac_arg
1243 case $ac_arg in
1244 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1245 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1246 | -silent | --silent | --silen | --sile | --sil)
1247 continue ;;
1248 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1249 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1250 esac
1251 case $ac_pass in
1252 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1254 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1255 if test $ac_must_keep_next = true; then
1256 ac_must_keep_next=false # Got value, back to normal.
1257 else
1258 case $ac_arg in
1259 *=* | --config-cache | -C | -disable-* | --disable-* \
1260 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1261 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1262 | -with-* | --with-* | -without-* | --without-* | --x)
1263 case "$ac_configure_args0 " in
1264 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1265 esac
1267 -* ) ac_must_keep_next=true ;;
1268 esac
1270 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1271 # Get rid of the leading space.
1272 ac_sep=" "
1274 esac
1275 done
1276 done
1277 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1278 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1280 # When interrupted or exit'd, cleanup temporary files, and complete
1281 # config.log. We remove comments because anyway the quotes in there
1282 # would cause problems or look ugly.
1283 # WARNING: Be sure not to use single quotes in there, as some shells,
1284 # such as our DU 5.0 friend, will then `close' the trap.
1285 trap 'exit_status=$?
1286 # Save into config.log some information that might help in debugging.
1288 echo
1290 cat <<\_ASBOX
1291 ## ---------------- ##
1292 ## Cache variables. ##
1293 ## ---------------- ##
1294 _ASBOX
1295 echo
1296 # The following way of writing the cache mishandles newlines in values,
1298 (set) 2>&1 |
1299 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1300 *ac_space=\ *)
1301 sed -n \
1302 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1303 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1306 sed -n \
1307 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1309 esac;
1311 echo
1313 cat <<\_ASBOX
1314 ## ----------------- ##
1315 ## Output variables. ##
1316 ## ----------------- ##
1317 _ASBOX
1318 echo
1319 for ac_var in $ac_subst_vars
1321 eval ac_val=$`echo $ac_var`
1322 echo "$ac_var='"'"'$ac_val'"'"'"
1323 done | sort
1324 echo
1326 if test -n "$ac_subst_files"; then
1327 cat <<\_ASBOX
1328 ## ------------- ##
1329 ## Output files. ##
1330 ## ------------- ##
1331 _ASBOX
1332 echo
1333 for ac_var in $ac_subst_files
1335 eval ac_val=$`echo $ac_var`
1336 echo "$ac_var='"'"'$ac_val'"'"'"
1337 done | sort
1338 echo
1341 if test -s confdefs.h; then
1342 cat <<\_ASBOX
1343 ## ----------- ##
1344 ## confdefs.h. ##
1345 ## ----------- ##
1346 _ASBOX
1347 echo
1348 sed "/^$/d" confdefs.h | sort
1349 echo
1351 test "$ac_signal" != 0 &&
1352 echo "$as_me: caught signal $ac_signal"
1353 echo "$as_me: exit $exit_status"
1354 } >&5
1355 rm -f core *.core &&
1356 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1357 exit $exit_status
1359 for ac_signal in 1 2 13 15; do
1360 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1361 done
1362 ac_signal=0
1364 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1365 rm -rf conftest* confdefs.h
1366 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1367 echo >confdefs.h
1369 # Predefined preprocessor variables.
1371 cat >>confdefs.h <<_ACEOF
1372 #define PACKAGE_NAME "$PACKAGE_NAME"
1373 _ACEOF
1376 cat >>confdefs.h <<_ACEOF
1377 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1378 _ACEOF
1381 cat >>confdefs.h <<_ACEOF
1382 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1383 _ACEOF
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_STRING "$PACKAGE_STRING"
1388 _ACEOF
1391 cat >>confdefs.h <<_ACEOF
1392 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1393 _ACEOF
1396 # Let the site file select an alternate cache file if it wants to.
1397 # Prefer explicitly selected file to automatically selected ones.
1398 if test -z "$CONFIG_SITE"; then
1399 if test "x$prefix" != xNONE; then
1400 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1401 else
1402 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1405 for ac_site_file in $CONFIG_SITE; do
1406 if test -r "$ac_site_file"; then
1407 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1408 echo "$as_me: loading site script $ac_site_file" >&6;}
1409 sed 's/^/| /' "$ac_site_file" >&5
1410 . "$ac_site_file"
1412 done
1414 if test -r "$cache_file"; then
1415 # Some versions of bash will fail to source /dev/null (special
1416 # files actually), so we avoid doing that.
1417 if test -f "$cache_file"; then
1418 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1419 echo "$as_me: loading cache $cache_file" >&6;}
1420 case $cache_file in
1421 [\\/]* | ?:[\\/]* ) . $cache_file;;
1422 *) . ./$cache_file;;
1423 esac
1425 else
1426 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1427 echo "$as_me: creating cache $cache_file" >&6;}
1428 >$cache_file
1431 # Check that the precious variables saved in the cache have kept the same
1432 # value.
1433 ac_cache_corrupted=false
1434 for ac_var in `(set) 2>&1 |
1435 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1436 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1437 eval ac_new_set=\$ac_env_${ac_var}_set
1438 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1439 eval ac_new_val="\$ac_env_${ac_var}_value"
1440 case $ac_old_set,$ac_new_set in
1441 set,)
1442 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1443 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1444 ac_cache_corrupted=: ;;
1445 ,set)
1446 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1447 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1448 ac_cache_corrupted=: ;;
1449 ,);;
1451 if test "x$ac_old_val" != "x$ac_new_val"; then
1452 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1453 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1454 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1455 echo "$as_me: former value: $ac_old_val" >&2;}
1456 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1457 echo "$as_me: current value: $ac_new_val" >&2;}
1458 ac_cache_corrupted=:
1459 fi;;
1460 esac
1461 # Pass precious variables to config.status.
1462 if test "$ac_new_set" = set; then
1463 case $ac_new_val in
1464 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1465 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1466 *) ac_arg=$ac_var=$ac_new_val ;;
1467 esac
1468 case " $ac_configure_args " in
1469 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1470 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1471 esac
1473 done
1474 if $ac_cache_corrupted; then
1475 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1476 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1477 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1478 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1479 { (exit 1); exit 1; }; }
1482 ac_ext=c
1483 ac_cpp='$CPP $CPPFLAGS'
1484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1514 #AM_CONFIG_HEADER(config.h)
1516 ac_config_headers="$ac_config_headers config.h:config.h.in"
1518 am__api_version="1.9"
1519 ac_aux_dir=
1520 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1521 if test -f $ac_dir/install-sh; then
1522 ac_aux_dir=$ac_dir
1523 ac_install_sh="$ac_aux_dir/install-sh -c"
1524 break
1525 elif test -f $ac_dir/install.sh; then
1526 ac_aux_dir=$ac_dir
1527 ac_install_sh="$ac_aux_dir/install.sh -c"
1528 break
1529 elif test -f $ac_dir/shtool; then
1530 ac_aux_dir=$ac_dir
1531 ac_install_sh="$ac_aux_dir/shtool install -c"
1532 break
1534 done
1535 if test -z "$ac_aux_dir"; then
1536 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1537 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1538 { (exit 1); exit 1; }; }
1540 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1541 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1542 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1544 # Find a good install program. We prefer a C program (faster),
1545 # so one script is as good as another. But avoid the broken or
1546 # incompatible versions:
1547 # SysV /etc/install, /usr/sbin/install
1548 # SunOS /usr/etc/install
1549 # IRIX /sbin/install
1550 # AIX /bin/install
1551 # AmigaOS /C/install, which installs bootblocks on floppy discs
1552 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1553 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1554 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1555 # OS/2's system install, which has a completely different semantic
1556 # ./install, which can be erroneously created by make from ./install.sh.
1557 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1558 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1559 if test -z "$INSTALL"; then
1560 if test "${ac_cv_path_install+set}" = set; then
1561 echo $ECHO_N "(cached) $ECHO_C" >&6
1562 else
1563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1564 for as_dir in $PATH
1566 IFS=$as_save_IFS
1567 test -z "$as_dir" && as_dir=.
1568 # Account for people who put trailing slashes in PATH elements.
1569 case $as_dir/ in
1570 ./ | .// | /cC/* | \
1571 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1572 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1573 /usr/ucb/* ) ;;
1575 # OSF1 and SCO ODT 3.0 have their own names for install.
1576 # Don't use installbsd from OSF since it installs stuff as root
1577 # by default.
1578 for ac_prog in ginstall scoinst install; do
1579 for ac_exec_ext in '' $ac_executable_extensions; do
1580 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1581 if test $ac_prog = install &&
1582 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1583 # AIX install. It has an incompatible calling convention.
1585 elif test $ac_prog = install &&
1586 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1587 # program-specific install script used by HP pwplus--don't use.
1589 else
1590 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1591 break 3
1594 done
1595 done
1597 esac
1598 done
1602 if test "${ac_cv_path_install+set}" = set; then
1603 INSTALL=$ac_cv_path_install
1604 else
1605 # As a last resort, use the slow shell script. We don't cache a
1606 # path for INSTALL within a source directory, because that will
1607 # break other packages using the cache if that directory is
1608 # removed, or if the path is relative.
1609 INSTALL=$ac_install_sh
1612 echo "$as_me:$LINENO: result: $INSTALL" >&5
1613 echo "${ECHO_T}$INSTALL" >&6
1615 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1616 # It thinks the first close brace ends the variable substitution.
1617 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1619 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1621 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1623 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1624 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1625 # Just in case
1626 sleep 1
1627 echo timestamp > conftest.file
1628 # Do `set' in a subshell so we don't clobber the current shell's
1629 # arguments. Must try -L first in case configure is actually a
1630 # symlink; some systems play weird games with the mod time of symlinks
1631 # (eg FreeBSD returns the mod time of the symlink's containing
1632 # directory).
1633 if (
1634 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1635 if test "$*" = "X"; then
1636 # -L didn't work.
1637 set X `ls -t $srcdir/configure conftest.file`
1639 rm -f conftest.file
1640 if test "$*" != "X $srcdir/configure conftest.file" \
1641 && test "$*" != "X conftest.file $srcdir/configure"; then
1643 # If neither matched, then we have a broken ls. This can happen
1644 # if, for instance, CONFIG_SHELL is bash and it inherits a
1645 # broken ls alias from the environment. This has actually
1646 # happened. Such a system could not be considered "sane".
1647 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1648 alias in your environment" >&5
1649 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1650 alias in your environment" >&2;}
1651 { (exit 1); exit 1; }; }
1654 test "$2" = conftest.file
1656 then
1657 # Ok.
1659 else
1660 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1661 Check your system clock" >&5
1662 echo "$as_me: error: newly created file is older than distributed files!
1663 Check your system clock" >&2;}
1664 { (exit 1); exit 1; }; }
1666 echo "$as_me:$LINENO: result: yes" >&5
1667 echo "${ECHO_T}yes" >&6
1668 test "$program_prefix" != NONE &&
1669 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1670 # Use a double $ so make ignores it.
1671 test "$program_suffix" != NONE &&
1672 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1673 # Double any \ or $. echo might interpret backslashes.
1674 # By default was `s,x,x', remove it if useless.
1675 cat <<\_ACEOF >conftest.sed
1676 s/[\\$]/&&/g;s/;s,x,x,$//
1677 _ACEOF
1678 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1679 rm conftest.sed
1681 # expand $ac_aux_dir to an absolute path
1682 am_aux_dir=`cd $ac_aux_dir && pwd`
1684 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1685 # Use eval to expand $SHELL
1686 if eval "$MISSING --run true"; then
1687 am_missing_run="$MISSING --run "
1688 else
1689 am_missing_run=
1690 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1691 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1694 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1695 # We used to keeping the `.' as first argument, in order to
1696 # allow $(mkdir_p) to be used without argument. As in
1697 # $(mkdir_p) $(somedir)
1698 # where $(somedir) is conditionally defined. However this is wrong
1699 # for two reasons:
1700 # 1. if the package is installed by a user who cannot write `.'
1701 # make install will fail,
1702 # 2. the above comment should most certainly read
1703 # $(mkdir_p) $(DESTDIR)$(somedir)
1704 # so it does not work when $(somedir) is undefined and
1705 # $(DESTDIR) is not.
1706 # To support the latter case, we have to write
1707 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1708 # so the `.' trick is pointless.
1709 mkdir_p='mkdir -p --'
1710 else
1711 # On NextStep and OpenStep, the `mkdir' command does not
1712 # recognize any option. It will interpret all options as
1713 # directories to create, and then abort because `.' already
1714 # exists.
1715 for d in ./-p ./--version;
1717 test -d $d && rmdir $d
1718 done
1719 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1720 if test -f "$ac_aux_dir/mkinstalldirs"; then
1721 mkdir_p='$(mkinstalldirs)'
1722 else
1723 mkdir_p='$(install_sh) -d'
1727 for ac_prog in gawk mawk nawk awk
1729 # Extract the first word of "$ac_prog", so it can be a program name with args.
1730 set dummy $ac_prog; ac_word=$2
1731 echo "$as_me:$LINENO: checking for $ac_word" >&5
1732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1733 if test "${ac_cv_prog_AWK+set}" = set; then
1734 echo $ECHO_N "(cached) $ECHO_C" >&6
1735 else
1736 if test -n "$AWK"; then
1737 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1738 else
1739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1740 for as_dir in $PATH
1742 IFS=$as_save_IFS
1743 test -z "$as_dir" && as_dir=.
1744 for ac_exec_ext in '' $ac_executable_extensions; do
1745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1746 ac_cv_prog_AWK="$ac_prog"
1747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1748 break 2
1750 done
1751 done
1755 AWK=$ac_cv_prog_AWK
1756 if test -n "$AWK"; then
1757 echo "$as_me:$LINENO: result: $AWK" >&5
1758 echo "${ECHO_T}$AWK" >&6
1759 else
1760 echo "$as_me:$LINENO: result: no" >&5
1761 echo "${ECHO_T}no" >&6
1764 test -n "$AWK" && break
1765 done
1767 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1768 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1769 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1770 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1771 echo $ECHO_N "(cached) $ECHO_C" >&6
1772 else
1773 cat >conftest.make <<\_ACEOF
1774 all:
1775 @echo 'ac_maketemp="$(MAKE)"'
1776 _ACEOF
1777 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1778 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1779 if test -n "$ac_maketemp"; then
1780 eval ac_cv_prog_make_${ac_make}_set=yes
1781 else
1782 eval ac_cv_prog_make_${ac_make}_set=no
1784 rm -f conftest.make
1786 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1787 echo "$as_me:$LINENO: result: yes" >&5
1788 echo "${ECHO_T}yes" >&6
1789 SET_MAKE=
1790 else
1791 echo "$as_me:$LINENO: result: no" >&5
1792 echo "${ECHO_T}no" >&6
1793 SET_MAKE="MAKE=${MAKE-make}"
1796 rm -rf .tst 2>/dev/null
1797 mkdir .tst 2>/dev/null
1798 if test -d .tst; then
1799 am__leading_dot=.
1800 else
1801 am__leading_dot=_
1803 rmdir .tst 2>/dev/null
1805 # test to see if srcdir already configured
1806 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1807 test -f $srcdir/config.status; then
1808 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1809 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1810 { (exit 1); exit 1; }; }
1813 # test whether we have cygpath
1814 if test -z "$CYGPATH_W"; then
1815 if (cygpath --version) >/dev/null 2>/dev/null; then
1816 CYGPATH_W='cygpath -w'
1817 else
1818 CYGPATH_W=echo
1823 # Define the identity of the package.
1824 PACKAGE='barry'
1825 VERSION='0.4'
1828 cat >>confdefs.h <<_ACEOF
1829 #define PACKAGE "$PACKAGE"
1830 _ACEOF
1833 cat >>confdefs.h <<_ACEOF
1834 #define VERSION "$VERSION"
1835 _ACEOF
1837 # Some tools Automake needs.
1839 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1842 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1845 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1848 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1851 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1853 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1855 # Installed binaries are usually stripped using `strip' when the user
1856 # run `make install-strip'. However `strip' might not be the right
1857 # tool to use in cross-compilation environments, therefore Automake
1858 # will honor the `STRIP' environment variable to overrule this program.
1859 if test "$cross_compiling" != no; then
1860 if test -n "$ac_tool_prefix"; then
1861 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1862 set dummy ${ac_tool_prefix}strip; ac_word=$2
1863 echo "$as_me:$LINENO: checking for $ac_word" >&5
1864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1865 if test "${ac_cv_prog_STRIP+set}" = set; then
1866 echo $ECHO_N "(cached) $ECHO_C" >&6
1867 else
1868 if test -n "$STRIP"; then
1869 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1870 else
1871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1872 for as_dir in $PATH
1874 IFS=$as_save_IFS
1875 test -z "$as_dir" && as_dir=.
1876 for ac_exec_ext in '' $ac_executable_extensions; do
1877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1878 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1880 break 2
1882 done
1883 done
1887 STRIP=$ac_cv_prog_STRIP
1888 if test -n "$STRIP"; then
1889 echo "$as_me:$LINENO: result: $STRIP" >&5
1890 echo "${ECHO_T}$STRIP" >&6
1891 else
1892 echo "$as_me:$LINENO: result: no" >&5
1893 echo "${ECHO_T}no" >&6
1897 if test -z "$ac_cv_prog_STRIP"; then
1898 ac_ct_STRIP=$STRIP
1899 # Extract the first word of "strip", so it can be a program name with args.
1900 set dummy strip; ac_word=$2
1901 echo "$as_me:$LINENO: checking for $ac_word" >&5
1902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1903 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1904 echo $ECHO_N "(cached) $ECHO_C" >&6
1905 else
1906 if test -n "$ac_ct_STRIP"; then
1907 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1908 else
1909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1910 for as_dir in $PATH
1912 IFS=$as_save_IFS
1913 test -z "$as_dir" && as_dir=.
1914 for ac_exec_ext in '' $ac_executable_extensions; do
1915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1916 ac_cv_prog_ac_ct_STRIP="strip"
1917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1918 break 2
1920 done
1921 done
1923 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1926 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1927 if test -n "$ac_ct_STRIP"; then
1928 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1929 echo "${ECHO_T}$ac_ct_STRIP" >&6
1930 else
1931 echo "$as_me:$LINENO: result: no" >&5
1932 echo "${ECHO_T}no" >&6
1935 STRIP=$ac_ct_STRIP
1936 else
1937 STRIP="$ac_cv_prog_STRIP"
1941 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1943 # We need awk for the "check" target. The system "awk" is bad on
1944 # some platforms.
1945 # Always define AMTAR for backward compatibility.
1947 AMTAR=${AMTAR-"${am_missing_run}tar"}
1949 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1956 # Checks for programs.
1957 ac_ext=c
1958 ac_cpp='$CPP $CPPFLAGS'
1959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1962 if test -n "$ac_tool_prefix"; then
1963 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1964 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1965 echo "$as_me:$LINENO: checking for $ac_word" >&5
1966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1967 if test "${ac_cv_prog_CC+set}" = set; then
1968 echo $ECHO_N "(cached) $ECHO_C" >&6
1969 else
1970 if test -n "$CC"; then
1971 ac_cv_prog_CC="$CC" # Let the user override the test.
1972 else
1973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1974 for as_dir in $PATH
1976 IFS=$as_save_IFS
1977 test -z "$as_dir" && as_dir=.
1978 for ac_exec_ext in '' $ac_executable_extensions; do
1979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1980 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1982 break 2
1984 done
1985 done
1989 CC=$ac_cv_prog_CC
1990 if test -n "$CC"; then
1991 echo "$as_me:$LINENO: result: $CC" >&5
1992 echo "${ECHO_T}$CC" >&6
1993 else
1994 echo "$as_me:$LINENO: result: no" >&5
1995 echo "${ECHO_T}no" >&6
1999 if test -z "$ac_cv_prog_CC"; then
2000 ac_ct_CC=$CC
2001 # Extract the first word of "gcc", so it can be a program name with args.
2002 set dummy gcc; ac_word=$2
2003 echo "$as_me:$LINENO: checking for $ac_word" >&5
2004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2005 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2006 echo $ECHO_N "(cached) $ECHO_C" >&6
2007 else
2008 if test -n "$ac_ct_CC"; then
2009 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2010 else
2011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012 for as_dir in $PATH
2014 IFS=$as_save_IFS
2015 test -z "$as_dir" && as_dir=.
2016 for ac_exec_ext in '' $ac_executable_extensions; do
2017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2018 ac_cv_prog_ac_ct_CC="gcc"
2019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2020 break 2
2022 done
2023 done
2027 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2028 if test -n "$ac_ct_CC"; then
2029 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2030 echo "${ECHO_T}$ac_ct_CC" >&6
2031 else
2032 echo "$as_me:$LINENO: result: no" >&5
2033 echo "${ECHO_T}no" >&6
2036 CC=$ac_ct_CC
2037 else
2038 CC="$ac_cv_prog_CC"
2041 if test -z "$CC"; then
2042 if test -n "$ac_tool_prefix"; then
2043 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2044 set dummy ${ac_tool_prefix}cc; ac_word=$2
2045 echo "$as_me:$LINENO: checking for $ac_word" >&5
2046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2047 if test "${ac_cv_prog_CC+set}" = set; then
2048 echo $ECHO_N "(cached) $ECHO_C" >&6
2049 else
2050 if test -n "$CC"; then
2051 ac_cv_prog_CC="$CC" # Let the user override the test.
2052 else
2053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2054 for as_dir in $PATH
2056 IFS=$as_save_IFS
2057 test -z "$as_dir" && as_dir=.
2058 for ac_exec_ext in '' $ac_executable_extensions; do
2059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2060 ac_cv_prog_CC="${ac_tool_prefix}cc"
2061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2062 break 2
2064 done
2065 done
2069 CC=$ac_cv_prog_CC
2070 if test -n "$CC"; then
2071 echo "$as_me:$LINENO: result: $CC" >&5
2072 echo "${ECHO_T}$CC" >&6
2073 else
2074 echo "$as_me:$LINENO: result: no" >&5
2075 echo "${ECHO_T}no" >&6
2079 if test -z "$ac_cv_prog_CC"; then
2080 ac_ct_CC=$CC
2081 # Extract the first word of "cc", so it can be a program name with args.
2082 set dummy cc; ac_word=$2
2083 echo "$as_me:$LINENO: checking for $ac_word" >&5
2084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2085 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2086 echo $ECHO_N "(cached) $ECHO_C" >&6
2087 else
2088 if test -n "$ac_ct_CC"; then
2089 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2090 else
2091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2092 for as_dir in $PATH
2094 IFS=$as_save_IFS
2095 test -z "$as_dir" && as_dir=.
2096 for ac_exec_ext in '' $ac_executable_extensions; do
2097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2098 ac_cv_prog_ac_ct_CC="cc"
2099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2100 break 2
2102 done
2103 done
2107 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2108 if test -n "$ac_ct_CC"; then
2109 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2110 echo "${ECHO_T}$ac_ct_CC" >&6
2111 else
2112 echo "$as_me:$LINENO: result: no" >&5
2113 echo "${ECHO_T}no" >&6
2116 CC=$ac_ct_CC
2117 else
2118 CC="$ac_cv_prog_CC"
2122 if test -z "$CC"; then
2123 # Extract the first word of "cc", so it can be a program name with args.
2124 set dummy cc; ac_word=$2
2125 echo "$as_me:$LINENO: checking for $ac_word" >&5
2126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2127 if test "${ac_cv_prog_CC+set}" = set; then
2128 echo $ECHO_N "(cached) $ECHO_C" >&6
2129 else
2130 if test -n "$CC"; then
2131 ac_cv_prog_CC="$CC" # Let the user override the test.
2132 else
2133 ac_prog_rejected=no
2134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2135 for as_dir in $PATH
2137 IFS=$as_save_IFS
2138 test -z "$as_dir" && as_dir=.
2139 for ac_exec_ext in '' $ac_executable_extensions; do
2140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2141 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2142 ac_prog_rejected=yes
2143 continue
2145 ac_cv_prog_CC="cc"
2146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2147 break 2
2149 done
2150 done
2152 if test $ac_prog_rejected = yes; then
2153 # We found a bogon in the path, so make sure we never use it.
2154 set dummy $ac_cv_prog_CC
2155 shift
2156 if test $# != 0; then
2157 # We chose a different compiler from the bogus one.
2158 # However, it has the same basename, so the bogon will be chosen
2159 # first if we set CC to just the basename; use the full file name.
2160 shift
2161 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2166 CC=$ac_cv_prog_CC
2167 if test -n "$CC"; then
2168 echo "$as_me:$LINENO: result: $CC" >&5
2169 echo "${ECHO_T}$CC" >&6
2170 else
2171 echo "$as_me:$LINENO: result: no" >&5
2172 echo "${ECHO_T}no" >&6
2176 if test -z "$CC"; then
2177 if test -n "$ac_tool_prefix"; then
2178 for ac_prog in cl
2180 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2181 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2182 echo "$as_me:$LINENO: checking for $ac_word" >&5
2183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2184 if test "${ac_cv_prog_CC+set}" = set; then
2185 echo $ECHO_N "(cached) $ECHO_C" >&6
2186 else
2187 if test -n "$CC"; then
2188 ac_cv_prog_CC="$CC" # Let the user override the test.
2189 else
2190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2191 for as_dir in $PATH
2193 IFS=$as_save_IFS
2194 test -z "$as_dir" && as_dir=.
2195 for ac_exec_ext in '' $ac_executable_extensions; do
2196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2197 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2199 break 2
2201 done
2202 done
2206 CC=$ac_cv_prog_CC
2207 if test -n "$CC"; then
2208 echo "$as_me:$LINENO: result: $CC" >&5
2209 echo "${ECHO_T}$CC" >&6
2210 else
2211 echo "$as_me:$LINENO: result: no" >&5
2212 echo "${ECHO_T}no" >&6
2215 test -n "$CC" && break
2216 done
2218 if test -z "$CC"; then
2219 ac_ct_CC=$CC
2220 for ac_prog in cl
2222 # Extract the first word of "$ac_prog", so it can be a program name with args.
2223 set dummy $ac_prog; ac_word=$2
2224 echo "$as_me:$LINENO: checking for $ac_word" >&5
2225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2226 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2227 echo $ECHO_N "(cached) $ECHO_C" >&6
2228 else
2229 if test -n "$ac_ct_CC"; then
2230 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2231 else
2232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2233 for as_dir in $PATH
2235 IFS=$as_save_IFS
2236 test -z "$as_dir" && as_dir=.
2237 for ac_exec_ext in '' $ac_executable_extensions; do
2238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2239 ac_cv_prog_ac_ct_CC="$ac_prog"
2240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2241 break 2
2243 done
2244 done
2248 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2249 if test -n "$ac_ct_CC"; then
2250 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2251 echo "${ECHO_T}$ac_ct_CC" >&6
2252 else
2253 echo "$as_me:$LINENO: result: no" >&5
2254 echo "${ECHO_T}no" >&6
2257 test -n "$ac_ct_CC" && break
2258 done
2260 CC=$ac_ct_CC
2266 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2267 See \`config.log' for more details." >&5
2268 echo "$as_me: error: no acceptable C compiler found in \$PATH
2269 See \`config.log' for more details." >&2;}
2270 { (exit 1); exit 1; }; }
2272 # Provide some information about the compiler.
2273 echo "$as_me:$LINENO:" \
2274 "checking for C compiler version" >&5
2275 ac_compiler=`set X $ac_compile; echo $2`
2276 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2277 (eval $ac_compiler --version </dev/null >&5) 2>&5
2278 ac_status=$?
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); }
2281 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2282 (eval $ac_compiler -v </dev/null >&5) 2>&5
2283 ac_status=$?
2284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285 (exit $ac_status); }
2286 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2287 (eval $ac_compiler -V </dev/null >&5) 2>&5
2288 ac_status=$?
2289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290 (exit $ac_status); }
2292 cat >conftest.$ac_ext <<_ACEOF
2293 /* confdefs.h. */
2294 _ACEOF
2295 cat confdefs.h >>conftest.$ac_ext
2296 cat >>conftest.$ac_ext <<_ACEOF
2297 /* end confdefs.h. */
2300 main ()
2304 return 0;
2306 _ACEOF
2307 ac_clean_files_save=$ac_clean_files
2308 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2309 # Try to create an executable without -o first, disregard a.out.
2310 # It will help us diagnose broken compilers, and finding out an intuition
2311 # of exeext.
2312 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2313 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2314 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2315 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2316 (eval $ac_link_default) 2>&5
2317 ac_status=$?
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); }; then
2320 # Find the output, starting from the most likely. This scheme is
2321 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2322 # resort.
2324 # Be careful to initialize this variable, since it used to be cached.
2325 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2326 ac_cv_exeext=
2327 # b.out is created by i960 compilers.
2328 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2330 test -f "$ac_file" || continue
2331 case $ac_file in
2332 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2334 conftest.$ac_ext )
2335 # This is the source file.
2337 [ab].out )
2338 # We found the default executable, but exeext='' is most
2339 # certainly right.
2340 break;;
2341 *.* )
2342 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2343 # FIXME: I believe we export ac_cv_exeext for Libtool,
2344 # but it would be cool to find out if it's true. Does anybody
2345 # maintain Libtool? --akim.
2346 export ac_cv_exeext
2347 break;;
2349 break;;
2350 esac
2351 done
2352 else
2353 echo "$as_me: failed program was:" >&5
2354 sed 's/^/| /' conftest.$ac_ext >&5
2356 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2357 See \`config.log' for more details." >&5
2358 echo "$as_me: error: C compiler cannot create executables
2359 See \`config.log' for more details." >&2;}
2360 { (exit 77); exit 77; }; }
2363 ac_exeext=$ac_cv_exeext
2364 echo "$as_me:$LINENO: result: $ac_file" >&5
2365 echo "${ECHO_T}$ac_file" >&6
2367 # Check the compiler produces executables we can run. If not, either
2368 # the compiler is broken, or we cross compile.
2369 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2370 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2371 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2372 # If not cross compiling, check that we can run a simple program.
2373 if test "$cross_compiling" != yes; then
2374 if { ac_try='./$ac_file'
2375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2376 (eval $ac_try) 2>&5
2377 ac_status=$?
2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379 (exit $ac_status); }; }; then
2380 cross_compiling=no
2381 else
2382 if test "$cross_compiling" = maybe; then
2383 cross_compiling=yes
2384 else
2385 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2386 If you meant to cross compile, use \`--host'.
2387 See \`config.log' for more details." >&5
2388 echo "$as_me: error: cannot run C compiled programs.
2389 If you meant to cross compile, use \`--host'.
2390 See \`config.log' for more details." >&2;}
2391 { (exit 1); exit 1; }; }
2395 echo "$as_me:$LINENO: result: yes" >&5
2396 echo "${ECHO_T}yes" >&6
2398 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2399 ac_clean_files=$ac_clean_files_save
2400 # Check the compiler produces executables we can run. If not, either
2401 # the compiler is broken, or we cross compile.
2402 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2403 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2404 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2405 echo "${ECHO_T}$cross_compiling" >&6
2407 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2408 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2410 (eval $ac_link) 2>&5
2411 ac_status=$?
2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413 (exit $ac_status); }; then
2414 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2415 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2416 # work properly (i.e., refer to `conftest.exe'), while it won't with
2417 # `rm'.
2418 for ac_file in conftest.exe conftest conftest.*; do
2419 test -f "$ac_file" || continue
2420 case $ac_file in
2421 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2422 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2423 export ac_cv_exeext
2424 break;;
2425 * ) break;;
2426 esac
2427 done
2428 else
2429 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2430 See \`config.log' for more details." >&5
2431 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2432 See \`config.log' for more details." >&2;}
2433 { (exit 1); exit 1; }; }
2436 rm -f conftest$ac_cv_exeext
2437 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2438 echo "${ECHO_T}$ac_cv_exeext" >&6
2440 rm -f conftest.$ac_ext
2441 EXEEXT=$ac_cv_exeext
2442 ac_exeext=$EXEEXT
2443 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2444 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2445 if test "${ac_cv_objext+set}" = set; then
2446 echo $ECHO_N "(cached) $ECHO_C" >&6
2447 else
2448 cat >conftest.$ac_ext <<_ACEOF
2449 /* confdefs.h. */
2450 _ACEOF
2451 cat confdefs.h >>conftest.$ac_ext
2452 cat >>conftest.$ac_ext <<_ACEOF
2453 /* end confdefs.h. */
2456 main ()
2460 return 0;
2462 _ACEOF
2463 rm -f conftest.o conftest.obj
2464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2465 (eval $ac_compile) 2>&5
2466 ac_status=$?
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); }; then
2469 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2470 case $ac_file in
2471 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2472 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2473 break;;
2474 esac
2475 done
2476 else
2477 echo "$as_me: failed program was:" >&5
2478 sed 's/^/| /' conftest.$ac_ext >&5
2480 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2481 See \`config.log' for more details." >&5
2482 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2483 See \`config.log' for more details." >&2;}
2484 { (exit 1); exit 1; }; }
2487 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2489 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2490 echo "${ECHO_T}$ac_cv_objext" >&6
2491 OBJEXT=$ac_cv_objext
2492 ac_objext=$OBJEXT
2493 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2494 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2495 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2496 echo $ECHO_N "(cached) $ECHO_C" >&6
2497 else
2498 cat >conftest.$ac_ext <<_ACEOF
2499 /* confdefs.h. */
2500 _ACEOF
2501 cat confdefs.h >>conftest.$ac_ext
2502 cat >>conftest.$ac_ext <<_ACEOF
2503 /* end confdefs.h. */
2506 main ()
2508 #ifndef __GNUC__
2509 choke me
2510 #endif
2513 return 0;
2515 _ACEOF
2516 rm -f conftest.$ac_objext
2517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2518 (eval $ac_compile) 2>conftest.er1
2519 ac_status=$?
2520 grep -v '^ *+' conftest.er1 >conftest.err
2521 rm -f conftest.er1
2522 cat conftest.err >&5
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); } &&
2525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2527 (eval $ac_try) 2>&5
2528 ac_status=$?
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); }; } &&
2531 { ac_try='test -s conftest.$ac_objext'
2532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2533 (eval $ac_try) 2>&5
2534 ac_status=$?
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); }; }; then
2537 ac_compiler_gnu=yes
2538 else
2539 echo "$as_me: failed program was:" >&5
2540 sed 's/^/| /' conftest.$ac_ext >&5
2542 ac_compiler_gnu=no
2544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2545 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2548 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2549 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2550 GCC=`test $ac_compiler_gnu = yes && echo yes`
2551 ac_test_CFLAGS=${CFLAGS+set}
2552 ac_save_CFLAGS=$CFLAGS
2553 CFLAGS="-g"
2554 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2555 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2556 if test "${ac_cv_prog_cc_g+set}" = set; then
2557 echo $ECHO_N "(cached) $ECHO_C" >&6
2558 else
2559 cat >conftest.$ac_ext <<_ACEOF
2560 /* confdefs.h. */
2561 _ACEOF
2562 cat confdefs.h >>conftest.$ac_ext
2563 cat >>conftest.$ac_ext <<_ACEOF
2564 /* end confdefs.h. */
2567 main ()
2571 return 0;
2573 _ACEOF
2574 rm -f conftest.$ac_objext
2575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2576 (eval $ac_compile) 2>conftest.er1
2577 ac_status=$?
2578 grep -v '^ *+' conftest.er1 >conftest.err
2579 rm -f conftest.er1
2580 cat conftest.err >&5
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); } &&
2583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2585 (eval $ac_try) 2>&5
2586 ac_status=$?
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); }; } &&
2589 { ac_try='test -s conftest.$ac_objext'
2590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2591 (eval $ac_try) 2>&5
2592 ac_status=$?
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }; }; then
2595 ac_cv_prog_cc_g=yes
2596 else
2597 echo "$as_me: failed program was:" >&5
2598 sed 's/^/| /' conftest.$ac_ext >&5
2600 ac_cv_prog_cc_g=no
2602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2604 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2605 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2606 if test "$ac_test_CFLAGS" = set; then
2607 CFLAGS=$ac_save_CFLAGS
2608 elif test $ac_cv_prog_cc_g = yes; then
2609 if test "$GCC" = yes; then
2610 CFLAGS="-g -O2"
2611 else
2612 CFLAGS="-g"
2614 else
2615 if test "$GCC" = yes; then
2616 CFLAGS="-O2"
2617 else
2618 CFLAGS=
2621 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2622 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2623 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2624 echo $ECHO_N "(cached) $ECHO_C" >&6
2625 else
2626 ac_cv_prog_cc_stdc=no
2627 ac_save_CC=$CC
2628 cat >conftest.$ac_ext <<_ACEOF
2629 /* confdefs.h. */
2630 _ACEOF
2631 cat confdefs.h >>conftest.$ac_ext
2632 cat >>conftest.$ac_ext <<_ACEOF
2633 /* end confdefs.h. */
2634 #include <stdarg.h>
2635 #include <stdio.h>
2636 #include <sys/types.h>
2637 #include <sys/stat.h>
2638 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2639 struct buf { int x; };
2640 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2641 static char *e (p, i)
2642 char **p;
2643 int i;
2645 return p[i];
2647 static char *f (char * (*g) (char **, int), char **p, ...)
2649 char *s;
2650 va_list v;
2651 va_start (v,p);
2652 s = g (p, va_arg (v,int));
2653 va_end (v);
2654 return s;
2657 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2658 function prototypes and stuff, but not '\xHH' hex character constants.
2659 These don't provoke an error unfortunately, instead are silently treated
2660 as 'x'. The following induces an error, until -std1 is added to get
2661 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2662 array size at least. It's necessary to write '\x00'==0 to get something
2663 that's true only with -std1. */
2664 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2666 int test (int i, double x);
2667 struct s1 {int (*f) (int a);};
2668 struct s2 {int (*f) (double a);};
2669 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2670 int argc;
2671 char **argv;
2673 main ()
2675 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2677 return 0;
2679 _ACEOF
2680 # Don't try gcc -ansi; that turns off useful extensions and
2681 # breaks some systems' header files.
2682 # AIX -qlanglvl=ansi
2683 # Ultrix and OSF/1 -std1
2684 # HP-UX 10.20 and later -Ae
2685 # HP-UX older versions -Aa -D_HPUX_SOURCE
2686 # SVR4 -Xc -D__EXTENSIONS__
2687 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2689 CC="$ac_save_CC $ac_arg"
2690 rm -f conftest.$ac_objext
2691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2692 (eval $ac_compile) 2>conftest.er1
2693 ac_status=$?
2694 grep -v '^ *+' conftest.er1 >conftest.err
2695 rm -f conftest.er1
2696 cat conftest.err >&5
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); } &&
2699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2701 (eval $ac_try) 2>&5
2702 ac_status=$?
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); }; } &&
2705 { ac_try='test -s conftest.$ac_objext'
2706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707 (eval $ac_try) 2>&5
2708 ac_status=$?
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); }; }; then
2711 ac_cv_prog_cc_stdc=$ac_arg
2712 break
2713 else
2714 echo "$as_me: failed program was:" >&5
2715 sed 's/^/| /' conftest.$ac_ext >&5
2718 rm -f conftest.err conftest.$ac_objext
2719 done
2720 rm -f conftest.$ac_ext conftest.$ac_objext
2721 CC=$ac_save_CC
2725 case "x$ac_cv_prog_cc_stdc" in
2726 x|xno)
2727 echo "$as_me:$LINENO: result: none needed" >&5
2728 echo "${ECHO_T}none needed" >&6 ;;
2730 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2731 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2732 CC="$CC $ac_cv_prog_cc_stdc" ;;
2733 esac
2735 # Some people use a C++ compiler to compile C. Since we use `exit',
2736 # in C++ we need to declare it. In case someone uses the same compiler
2737 # for both compiling C and C++ we need to have the C++ compiler decide
2738 # the declaration of exit, since it's the most demanding environment.
2739 cat >conftest.$ac_ext <<_ACEOF
2740 #ifndef __cplusplus
2741 choke me
2742 #endif
2743 _ACEOF
2744 rm -f conftest.$ac_objext
2745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2746 (eval $ac_compile) 2>conftest.er1
2747 ac_status=$?
2748 grep -v '^ *+' conftest.er1 >conftest.err
2749 rm -f conftest.er1
2750 cat conftest.err >&5
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); } &&
2753 { ac_try='test -z "$ac_c_werror_flag" || 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 for ac_declaration in \
2766 '' \
2767 'extern "C" void std::exit (int) throw (); using std::exit;' \
2768 'extern "C" void std::exit (int); using std::exit;' \
2769 'extern "C" void exit (int) throw ();' \
2770 'extern "C" void exit (int);' \
2771 'void exit (int);'
2773 cat >conftest.$ac_ext <<_ACEOF
2774 /* confdefs.h. */
2775 _ACEOF
2776 cat confdefs.h >>conftest.$ac_ext
2777 cat >>conftest.$ac_ext <<_ACEOF
2778 /* end confdefs.h. */
2779 $ac_declaration
2780 #include <stdlib.h>
2782 main ()
2784 exit (42);
2786 return 0;
2788 _ACEOF
2789 rm -f conftest.$ac_objext
2790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2791 (eval $ac_compile) 2>conftest.er1
2792 ac_status=$?
2793 grep -v '^ *+' conftest.er1 >conftest.err
2794 rm -f conftest.er1
2795 cat conftest.err >&5
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); } &&
2798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2800 (eval $ac_try) 2>&5
2801 ac_status=$?
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); }; } &&
2804 { ac_try='test -s conftest.$ac_objext'
2805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2806 (eval $ac_try) 2>&5
2807 ac_status=$?
2808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809 (exit $ac_status); }; }; then
2811 else
2812 echo "$as_me: failed program was:" >&5
2813 sed 's/^/| /' conftest.$ac_ext >&5
2815 continue
2817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2818 cat >conftest.$ac_ext <<_ACEOF
2819 /* confdefs.h. */
2820 _ACEOF
2821 cat confdefs.h >>conftest.$ac_ext
2822 cat >>conftest.$ac_ext <<_ACEOF
2823 /* end confdefs.h. */
2824 $ac_declaration
2826 main ()
2828 exit (42);
2830 return 0;
2832 _ACEOF
2833 rm -f conftest.$ac_objext
2834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2835 (eval $ac_compile) 2>conftest.er1
2836 ac_status=$?
2837 grep -v '^ *+' conftest.er1 >conftest.err
2838 rm -f conftest.er1
2839 cat conftest.err >&5
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); } &&
2842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2844 (eval $ac_try) 2>&5
2845 ac_status=$?
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); }; } &&
2848 { ac_try='test -s conftest.$ac_objext'
2849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2850 (eval $ac_try) 2>&5
2851 ac_status=$?
2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); }; }; then
2854 break
2855 else
2856 echo "$as_me: failed program was:" >&5
2857 sed 's/^/| /' conftest.$ac_ext >&5
2860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2861 done
2862 rm -f conftest*
2863 if test -n "$ac_declaration"; then
2864 echo '#ifdef __cplusplus' >>confdefs.h
2865 echo $ac_declaration >>confdefs.h
2866 echo '#endif' >>confdefs.h
2869 else
2870 echo "$as_me: failed program was:" >&5
2871 sed 's/^/| /' conftest.$ac_ext >&5
2874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2875 ac_ext=c
2876 ac_cpp='$CPP $CPPFLAGS'
2877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2880 DEPDIR="${am__leading_dot}deps"
2882 ac_config_commands="$ac_config_commands depfiles"
2885 am_make=${MAKE-make}
2886 cat > confinc << 'END'
2887 am__doit:
2888 @echo done
2889 .PHONY: am__doit
2891 # If we don't find an include directive, just comment out the code.
2892 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2893 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2894 am__include="#"
2895 am__quote=
2896 _am_result=none
2897 # First try GNU make style include.
2898 echo "include confinc" > confmf
2899 # We grep out `Entering directory' and `Leaving directory'
2900 # messages which can occur if `w' ends up in MAKEFLAGS.
2901 # In particular we don't look at `^make:' because GNU make might
2902 # be invoked under some other name (usually "gmake"), in which
2903 # case it prints its new name instead of `make'.
2904 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2905 am__include=include
2906 am__quote=
2907 _am_result=GNU
2909 # Now try BSD make style include.
2910 if test "$am__include" = "#"; then
2911 echo '.include "confinc"' > confmf
2912 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2913 am__include=.include
2914 am__quote="\""
2915 _am_result=BSD
2920 echo "$as_me:$LINENO: result: $_am_result" >&5
2921 echo "${ECHO_T}$_am_result" >&6
2922 rm -f confinc confmf
2924 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2925 if test "${enable_dependency_tracking+set}" = set; then
2926 enableval="$enable_dependency_tracking"
2929 if test "x$enable_dependency_tracking" != xno; then
2930 am_depcomp="$ac_aux_dir/depcomp"
2931 AMDEPBACKSLASH='\'
2935 if test "x$enable_dependency_tracking" != xno; then
2936 AMDEP_TRUE=
2937 AMDEP_FALSE='#'
2938 else
2939 AMDEP_TRUE='#'
2940 AMDEP_FALSE=
2946 depcc="$CC" am_compiler_list=
2948 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2949 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2950 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2951 echo $ECHO_N "(cached) $ECHO_C" >&6
2952 else
2953 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2954 # We make a subdir and do the tests there. Otherwise we can end up
2955 # making bogus files that we don't know about and never remove. For
2956 # instance it was reported that on HP-UX the gcc test will end up
2957 # making a dummy file named `D' -- because `-MD' means `put the output
2958 # in D'.
2959 mkdir conftest.dir
2960 # Copy depcomp to subdir because otherwise we won't find it if we're
2961 # using a relative directory.
2962 cp "$am_depcomp" conftest.dir
2963 cd conftest.dir
2964 # We will build objects and dependencies in a subdirectory because
2965 # it helps to detect inapplicable dependency modes. For instance
2966 # both Tru64's cc and ICC support -MD to output dependencies as a
2967 # side effect of compilation, but ICC will put the dependencies in
2968 # the current directory while Tru64 will put them in the object
2969 # directory.
2970 mkdir sub
2972 am_cv_CC_dependencies_compiler_type=none
2973 if test "$am_compiler_list" = ""; then
2974 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2976 for depmode in $am_compiler_list; do
2977 # Setup a source with many dependencies, because some compilers
2978 # like to wrap large dependency lists on column 80 (with \), and
2979 # we should not choose a depcomp mode which is confused by this.
2981 # We need to recreate these files for each test, as the compiler may
2982 # overwrite some of them when testing with obscure command lines.
2983 # This happens at least with the AIX C compiler.
2984 : > sub/conftest.c
2985 for i in 1 2 3 4 5 6; do
2986 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2987 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2988 # Solaris 8's {/usr,}/bin/sh.
2989 touch sub/conftst$i.h
2990 done
2991 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2993 case $depmode in
2994 nosideeffect)
2995 # after this tag, mechanisms are not by side-effect, so they'll
2996 # only be used when explicitly requested
2997 if test "x$enable_dependency_tracking" = xyes; then
2998 continue
2999 else
3000 break
3003 none) break ;;
3004 esac
3005 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3006 # mode. It turns out that the SunPro C++ compiler does not properly
3007 # handle `-M -o', and we need to detect this.
3008 if depmode=$depmode \
3009 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3010 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3011 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3012 >/dev/null 2>conftest.err &&
3013 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3014 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3015 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3016 # icc doesn't choke on unknown options, it will just issue warnings
3017 # or remarks (even with -Werror). So we grep stderr for any message
3018 # that says an option was ignored or not supported.
3019 # When given -MP, icc 7.0 and 7.1 complain thusly:
3020 # icc: Command line warning: ignoring option '-M'; no argument required
3021 # The diagnosis changed in icc 8.0:
3022 # icc: Command line remark: option '-MP' not supported
3023 if (grep 'ignoring option' conftest.err ||
3024 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3025 am_cv_CC_dependencies_compiler_type=$depmode
3026 break
3029 done
3031 cd ..
3032 rm -rf conftest.dir
3033 else
3034 am_cv_CC_dependencies_compiler_type=none
3038 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3039 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3040 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3045 test "x$enable_dependency_tracking" != xno \
3046 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3047 am__fastdepCC_TRUE=
3048 am__fastdepCC_FALSE='#'
3049 else
3050 am__fastdepCC_TRUE='#'
3051 am__fastdepCC_FALSE=
3055 ac_ext=cc
3056 ac_cpp='$CXXCPP $CPPFLAGS'
3057 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3058 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3059 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3060 if test -n "$ac_tool_prefix"; then
3061 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3063 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3064 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3065 echo "$as_me:$LINENO: checking for $ac_word" >&5
3066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3067 if test "${ac_cv_prog_CXX+set}" = set; then
3068 echo $ECHO_N "(cached) $ECHO_C" >&6
3069 else
3070 if test -n "$CXX"; then
3071 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3072 else
3073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074 for as_dir in $PATH
3076 IFS=$as_save_IFS
3077 test -z "$as_dir" && as_dir=.
3078 for ac_exec_ext in '' $ac_executable_extensions; do
3079 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3080 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3082 break 2
3084 done
3085 done
3089 CXX=$ac_cv_prog_CXX
3090 if test -n "$CXX"; then
3091 echo "$as_me:$LINENO: result: $CXX" >&5
3092 echo "${ECHO_T}$CXX" >&6
3093 else
3094 echo "$as_me:$LINENO: result: no" >&5
3095 echo "${ECHO_T}no" >&6
3098 test -n "$CXX" && break
3099 done
3101 if test -z "$CXX"; then
3102 ac_ct_CXX=$CXX
3103 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3105 # Extract the first word of "$ac_prog", so it can be a program name with args.
3106 set dummy $ac_prog; ac_word=$2
3107 echo "$as_me:$LINENO: checking for $ac_word" >&5
3108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3109 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3110 echo $ECHO_N "(cached) $ECHO_C" >&6
3111 else
3112 if test -n "$ac_ct_CXX"; then
3113 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3114 else
3115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116 for as_dir in $PATH
3118 IFS=$as_save_IFS
3119 test -z "$as_dir" && as_dir=.
3120 for ac_exec_ext in '' $ac_executable_extensions; do
3121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3122 ac_cv_prog_ac_ct_CXX="$ac_prog"
3123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3124 break 2
3126 done
3127 done
3131 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3132 if test -n "$ac_ct_CXX"; then
3133 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3134 echo "${ECHO_T}$ac_ct_CXX" >&6
3135 else
3136 echo "$as_me:$LINENO: result: no" >&5
3137 echo "${ECHO_T}no" >&6
3140 test -n "$ac_ct_CXX" && break
3141 done
3142 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3144 CXX=$ac_ct_CXX
3148 # Provide some information about the compiler.
3149 echo "$as_me:$LINENO:" \
3150 "checking for C++ compiler version" >&5
3151 ac_compiler=`set X $ac_compile; echo $2`
3152 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3153 (eval $ac_compiler --version </dev/null >&5) 2>&5
3154 ac_status=$?
3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156 (exit $ac_status); }
3157 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3158 (eval $ac_compiler -v </dev/null >&5) 2>&5
3159 ac_status=$?
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); }
3162 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3163 (eval $ac_compiler -V </dev/null >&5) 2>&5
3164 ac_status=$?
3165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166 (exit $ac_status); }
3168 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3169 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3170 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3171 echo $ECHO_N "(cached) $ECHO_C" >&6
3172 else
3173 cat >conftest.$ac_ext <<_ACEOF
3174 /* confdefs.h. */
3175 _ACEOF
3176 cat confdefs.h >>conftest.$ac_ext
3177 cat >>conftest.$ac_ext <<_ACEOF
3178 /* end confdefs.h. */
3181 main ()
3183 #ifndef __GNUC__
3184 choke me
3185 #endif
3188 return 0;
3190 _ACEOF
3191 rm -f conftest.$ac_objext
3192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3193 (eval $ac_compile) 2>conftest.er1
3194 ac_status=$?
3195 grep -v '^ *+' conftest.er1 >conftest.err
3196 rm -f conftest.er1
3197 cat conftest.err >&5
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); } &&
3200 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3202 (eval $ac_try) 2>&5
3203 ac_status=$?
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); }; } &&
3206 { ac_try='test -s conftest.$ac_objext'
3207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3208 (eval $ac_try) 2>&5
3209 ac_status=$?
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); }; }; then
3212 ac_compiler_gnu=yes
3213 else
3214 echo "$as_me: failed program was:" >&5
3215 sed 's/^/| /' conftest.$ac_ext >&5
3217 ac_compiler_gnu=no
3219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3220 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3223 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3224 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3225 GXX=`test $ac_compiler_gnu = yes && echo yes`
3226 ac_test_CXXFLAGS=${CXXFLAGS+set}
3227 ac_save_CXXFLAGS=$CXXFLAGS
3228 CXXFLAGS="-g"
3229 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3230 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3231 if test "${ac_cv_prog_cxx_g+set}" = set; then
3232 echo $ECHO_N "(cached) $ECHO_C" >&6
3233 else
3234 cat >conftest.$ac_ext <<_ACEOF
3235 /* confdefs.h. */
3236 _ACEOF
3237 cat confdefs.h >>conftest.$ac_ext
3238 cat >>conftest.$ac_ext <<_ACEOF
3239 /* end confdefs.h. */
3242 main ()
3246 return 0;
3248 _ACEOF
3249 rm -f conftest.$ac_objext
3250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3251 (eval $ac_compile) 2>conftest.er1
3252 ac_status=$?
3253 grep -v '^ *+' conftest.er1 >conftest.err
3254 rm -f conftest.er1
3255 cat conftest.err >&5
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); } &&
3258 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3260 (eval $ac_try) 2>&5
3261 ac_status=$?
3262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263 (exit $ac_status); }; } &&
3264 { ac_try='test -s conftest.$ac_objext'
3265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3266 (eval $ac_try) 2>&5
3267 ac_status=$?
3268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); }; }; then
3270 ac_cv_prog_cxx_g=yes
3271 else
3272 echo "$as_me: failed program was:" >&5
3273 sed 's/^/| /' conftest.$ac_ext >&5
3275 ac_cv_prog_cxx_g=no
3277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3279 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3280 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3281 if test "$ac_test_CXXFLAGS" = set; then
3282 CXXFLAGS=$ac_save_CXXFLAGS
3283 elif test $ac_cv_prog_cxx_g = yes; then
3284 if test "$GXX" = yes; then
3285 CXXFLAGS="-g -O2"
3286 else
3287 CXXFLAGS="-g"
3289 else
3290 if test "$GXX" = yes; then
3291 CXXFLAGS="-O2"
3292 else
3293 CXXFLAGS=
3296 for ac_declaration in \
3297 '' \
3298 'extern "C" void std::exit (int) throw (); using std::exit;' \
3299 'extern "C" void std::exit (int); using std::exit;' \
3300 'extern "C" void exit (int) throw ();' \
3301 'extern "C" void exit (int);' \
3302 'void exit (int);'
3304 cat >conftest.$ac_ext <<_ACEOF
3305 /* confdefs.h. */
3306 _ACEOF
3307 cat confdefs.h >>conftest.$ac_ext
3308 cat >>conftest.$ac_ext <<_ACEOF
3309 /* end confdefs.h. */
3310 $ac_declaration
3311 #include <stdlib.h>
3313 main ()
3315 exit (42);
3317 return 0;
3319 _ACEOF
3320 rm -f conftest.$ac_objext
3321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3322 (eval $ac_compile) 2>conftest.er1
3323 ac_status=$?
3324 grep -v '^ *+' conftest.er1 >conftest.err
3325 rm -f conftest.er1
3326 cat conftest.err >&5
3327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); } &&
3329 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3331 (eval $ac_try) 2>&5
3332 ac_status=$?
3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334 (exit $ac_status); }; } &&
3335 { ac_try='test -s conftest.$ac_objext'
3336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3337 (eval $ac_try) 2>&5
3338 ac_status=$?
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); }; }; then
3342 else
3343 echo "$as_me: failed program was:" >&5
3344 sed 's/^/| /' conftest.$ac_ext >&5
3346 continue
3348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3349 cat >conftest.$ac_ext <<_ACEOF
3350 /* confdefs.h. */
3351 _ACEOF
3352 cat confdefs.h >>conftest.$ac_ext
3353 cat >>conftest.$ac_ext <<_ACEOF
3354 /* end confdefs.h. */
3355 $ac_declaration
3357 main ()
3359 exit (42);
3361 return 0;
3363 _ACEOF
3364 rm -f conftest.$ac_objext
3365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3366 (eval $ac_compile) 2>conftest.er1
3367 ac_status=$?
3368 grep -v '^ *+' conftest.er1 >conftest.err
3369 rm -f conftest.er1
3370 cat conftest.err >&5
3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); } &&
3373 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3375 (eval $ac_try) 2>&5
3376 ac_status=$?
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); }; } &&
3379 { ac_try='test -s conftest.$ac_objext'
3380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3381 (eval $ac_try) 2>&5
3382 ac_status=$?
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); }; }; then
3385 break
3386 else
3387 echo "$as_me: failed program was:" >&5
3388 sed 's/^/| /' conftest.$ac_ext >&5
3391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3392 done
3393 rm -f conftest*
3394 if test -n "$ac_declaration"; then
3395 echo '#ifdef __cplusplus' >>confdefs.h
3396 echo $ac_declaration >>confdefs.h
3397 echo '#endif' >>confdefs.h
3400 ac_ext=c
3401 ac_cpp='$CPP $CPPFLAGS'
3402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3406 depcc="$CXX" am_compiler_list=
3408 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3409 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3410 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3411 echo $ECHO_N "(cached) $ECHO_C" >&6
3412 else
3413 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3414 # We make a subdir and do the tests there. Otherwise we can end up
3415 # making bogus files that we don't know about and never remove. For
3416 # instance it was reported that on HP-UX the gcc test will end up
3417 # making a dummy file named `D' -- because `-MD' means `put the output
3418 # in D'.
3419 mkdir conftest.dir
3420 # Copy depcomp to subdir because otherwise we won't find it if we're
3421 # using a relative directory.
3422 cp "$am_depcomp" conftest.dir
3423 cd conftest.dir
3424 # We will build objects and dependencies in a subdirectory because
3425 # it helps to detect inapplicable dependency modes. For instance
3426 # both Tru64's cc and ICC support -MD to output dependencies as a
3427 # side effect of compilation, but ICC will put the dependencies in
3428 # the current directory while Tru64 will put them in the object
3429 # directory.
3430 mkdir sub
3432 am_cv_CXX_dependencies_compiler_type=none
3433 if test "$am_compiler_list" = ""; then
3434 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3436 for depmode in $am_compiler_list; do
3437 # Setup a source with many dependencies, because some compilers
3438 # like to wrap large dependency lists on column 80 (with \), and
3439 # we should not choose a depcomp mode which is confused by this.
3441 # We need to recreate these files for each test, as the compiler may
3442 # overwrite some of them when testing with obscure command lines.
3443 # This happens at least with the AIX C compiler.
3444 : > sub/conftest.c
3445 for i in 1 2 3 4 5 6; do
3446 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3447 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3448 # Solaris 8's {/usr,}/bin/sh.
3449 touch sub/conftst$i.h
3450 done
3451 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3453 case $depmode in
3454 nosideeffect)
3455 # after this tag, mechanisms are not by side-effect, so they'll
3456 # only be used when explicitly requested
3457 if test "x$enable_dependency_tracking" = xyes; then
3458 continue
3459 else
3460 break
3463 none) break ;;
3464 esac
3465 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3466 # mode. It turns out that the SunPro C++ compiler does not properly
3467 # handle `-M -o', and we need to detect this.
3468 if depmode=$depmode \
3469 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3470 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3471 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3472 >/dev/null 2>conftest.err &&
3473 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3474 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3475 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3476 # icc doesn't choke on unknown options, it will just issue warnings
3477 # or remarks (even with -Werror). So we grep stderr for any message
3478 # that says an option was ignored or not supported.
3479 # When given -MP, icc 7.0 and 7.1 complain thusly:
3480 # icc: Command line warning: ignoring option '-M'; no argument required
3481 # The diagnosis changed in icc 8.0:
3482 # icc: Command line remark: option '-MP' not supported
3483 if (grep 'ignoring option' conftest.err ||
3484 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3485 am_cv_CXX_dependencies_compiler_type=$depmode
3486 break
3489 done
3491 cd ..
3492 rm -rf conftest.dir
3493 else
3494 am_cv_CXX_dependencies_compiler_type=none
3498 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3499 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3500 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3505 test "x$enable_dependency_tracking" != xno \
3506 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3507 am__fastdepCXX_TRUE=
3508 am__fastdepCXX_FALSE='#'
3509 else
3510 am__fastdepCXX_TRUE='#'
3511 am__fastdepCXX_FALSE=
3515 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3516 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3517 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3518 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3519 echo $ECHO_N "(cached) $ECHO_C" >&6
3520 else
3521 cat >conftest.make <<\_ACEOF
3522 all:
3523 @echo 'ac_maketemp="$(MAKE)"'
3524 _ACEOF
3525 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3526 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3527 if test -n "$ac_maketemp"; then
3528 eval ac_cv_prog_make_${ac_make}_set=yes
3529 else
3530 eval ac_cv_prog_make_${ac_make}_set=no
3532 rm -f conftest.make
3534 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3535 echo "$as_me:$LINENO: result: yes" >&5
3536 echo "${ECHO_T}yes" >&6
3537 SET_MAKE=
3538 else
3539 echo "$as_me:$LINENO: result: no" >&5
3540 echo "${ECHO_T}no" >&6
3541 SET_MAKE="MAKE=${MAKE-make}"
3544 # Check whether --enable-shared or --disable-shared was given.
3545 if test "${enable_shared+set}" = set; then
3546 enableval="$enable_shared"
3547 p=${PACKAGE-default}
3548 case $enableval in
3549 yes) enable_shared=yes ;;
3550 no) enable_shared=no ;;
3552 enable_shared=no
3553 # Look at the argument we got. We use all the common list separators.
3554 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3555 for pkg in $enableval; do
3556 IFS="$lt_save_ifs"
3557 if test "X$pkg" = "X$p"; then
3558 enable_shared=yes
3560 done
3561 IFS="$lt_save_ifs"
3563 esac
3564 else
3565 enable_shared=yes
3568 # Check whether --enable-static or --disable-static was given.
3569 if test "${enable_static+set}" = set; then
3570 enableval="$enable_static"
3571 p=${PACKAGE-default}
3572 case $enableval in
3573 yes) enable_static=yes ;;
3574 no) enable_static=no ;;
3576 enable_static=no
3577 # Look at the argument we got. We use all the common list separators.
3578 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3579 for pkg in $enableval; do
3580 IFS="$lt_save_ifs"
3581 if test "X$pkg" = "X$p"; then
3582 enable_static=yes
3584 done
3585 IFS="$lt_save_ifs"
3587 esac
3588 else
3589 enable_static=yes
3592 # Check whether --enable-fast-install or --disable-fast-install was given.
3593 if test "${enable_fast_install+set}" = set; then
3594 enableval="$enable_fast_install"
3595 p=${PACKAGE-default}
3596 case $enableval in
3597 yes) enable_fast_install=yes ;;
3598 no) enable_fast_install=no ;;
3600 enable_fast_install=no
3601 # Look at the argument we got. We use all the common list separators.
3602 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3603 for pkg in $enableval; do
3604 IFS="$lt_save_ifs"
3605 if test "X$pkg" = "X$p"; then
3606 enable_fast_install=yes
3608 done
3609 IFS="$lt_save_ifs"
3611 esac
3612 else
3613 enable_fast_install=yes
3616 # Make sure we can run config.sub.
3617 $ac_config_sub sun4 >/dev/null 2>&1 ||
3618 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3619 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3620 { (exit 1); exit 1; }; }
3622 echo "$as_me:$LINENO: checking build system type" >&5
3623 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3624 if test "${ac_cv_build+set}" = set; then
3625 echo $ECHO_N "(cached) $ECHO_C" >&6
3626 else
3627 ac_cv_build_alias=$build_alias
3628 test -z "$ac_cv_build_alias" &&
3629 ac_cv_build_alias=`$ac_config_guess`
3630 test -z "$ac_cv_build_alias" &&
3631 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3632 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3633 { (exit 1); exit 1; }; }
3634 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3635 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3636 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3637 { (exit 1); exit 1; }; }
3640 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3641 echo "${ECHO_T}$ac_cv_build" >&6
3642 build=$ac_cv_build
3643 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3644 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3645 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3648 echo "$as_me:$LINENO: checking host system type" >&5
3649 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3650 if test "${ac_cv_host+set}" = set; then
3651 echo $ECHO_N "(cached) $ECHO_C" >&6
3652 else
3653 ac_cv_host_alias=$host_alias
3654 test -z "$ac_cv_host_alias" &&
3655 ac_cv_host_alias=$ac_cv_build_alias
3656 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3657 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3658 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3659 { (exit 1); exit 1; }; }
3662 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3663 echo "${ECHO_T}$ac_cv_host" >&6
3664 host=$ac_cv_host
3665 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3666 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3667 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3670 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3671 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3672 if test "${lt_cv_path_SED+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3674 else
3675 # Loop through the user's path and test for sed and gsed.
3676 # Then use that list of sed's as ones to test for truncation.
3677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3678 for as_dir in $PATH
3680 IFS=$as_save_IFS
3681 test -z "$as_dir" && as_dir=.
3682 for lt_ac_prog in sed gsed; do
3683 for ac_exec_ext in '' $ac_executable_extensions; do
3684 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3685 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3687 done
3688 done
3689 done
3690 lt_ac_max=0
3691 lt_ac_count=0
3692 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3693 # along with /bin/sed that truncates output.
3694 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3695 test ! -f $lt_ac_sed && break
3696 cat /dev/null > conftest.in
3697 lt_ac_count=0
3698 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3699 # Check for GNU sed and select it if it is found.
3700 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3701 lt_cv_path_SED=$lt_ac_sed
3702 break
3704 while true; do
3705 cat conftest.in conftest.in >conftest.tmp
3706 mv conftest.tmp conftest.in
3707 cp conftest.in conftest.nl
3708 echo >>conftest.nl
3709 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3710 cmp -s conftest.out conftest.nl || break
3711 # 10000 chars as input seems more than enough
3712 test $lt_ac_count -gt 10 && break
3713 lt_ac_count=`expr $lt_ac_count + 1`
3714 if test $lt_ac_count -gt $lt_ac_max; then
3715 lt_ac_max=$lt_ac_count
3716 lt_cv_path_SED=$lt_ac_sed
3718 done
3719 done
3720 SED=$lt_cv_path_SED
3724 echo "$as_me:$LINENO: result: $SED" >&5
3725 echo "${ECHO_T}$SED" >&6
3727 echo "$as_me:$LINENO: checking for egrep" >&5
3728 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3729 if test "${ac_cv_prog_egrep+set}" = set; then
3730 echo $ECHO_N "(cached) $ECHO_C" >&6
3731 else
3732 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3733 then ac_cv_prog_egrep='grep -E'
3734 else ac_cv_prog_egrep='egrep'
3737 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3738 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3739 EGREP=$ac_cv_prog_egrep
3743 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3744 if test "${with_gnu_ld+set}" = set; then
3745 withval="$with_gnu_ld"
3746 test "$withval" = no || with_gnu_ld=yes
3747 else
3748 with_gnu_ld=no
3750 ac_prog=ld
3751 if test "$GCC" = yes; then
3752 # Check if gcc -print-prog-name=ld gives a path.
3753 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3754 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3755 case $host in
3756 *-*-mingw*)
3757 # gcc leaves a trailing carriage return which upsets mingw
3758 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3760 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3761 esac
3762 case $ac_prog in
3763 # Accept absolute paths.
3764 [\\/]* | ?:[\\/]*)
3765 re_direlt='/[^/][^/]*/\.\./'
3766 # Canonicalize the pathname of ld
3767 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3768 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3769 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3770 done
3771 test -z "$LD" && LD="$ac_prog"
3774 # If it fails, then pretend we aren't using GCC.
3775 ac_prog=ld
3778 # If it is relative, then search for the first ld in PATH.
3779 with_gnu_ld=unknown
3781 esac
3782 elif test "$with_gnu_ld" = yes; then
3783 echo "$as_me:$LINENO: checking for GNU ld" >&5
3784 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3785 else
3786 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3787 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3789 if test "${lt_cv_path_LD+set}" = set; then
3790 echo $ECHO_N "(cached) $ECHO_C" >&6
3791 else
3792 if test -z "$LD"; then
3793 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3794 for ac_dir in $PATH; do
3795 IFS="$lt_save_ifs"
3796 test -z "$ac_dir" && ac_dir=.
3797 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3798 lt_cv_path_LD="$ac_dir/$ac_prog"
3799 # Check to see if the program is GNU ld. I'd rather use --version,
3800 # but apparently some GNU ld's only accept -v.
3801 # Break only if it was the GNU/non-GNU ld that we prefer.
3802 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3803 *GNU* | *'with BFD'*)
3804 test "$with_gnu_ld" != no && break
3807 test "$with_gnu_ld" != yes && break
3809 esac
3811 done
3812 IFS="$lt_save_ifs"
3813 else
3814 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3818 LD="$lt_cv_path_LD"
3819 if test -n "$LD"; then
3820 echo "$as_me:$LINENO: result: $LD" >&5
3821 echo "${ECHO_T}$LD" >&6
3822 else
3823 echo "$as_me:$LINENO: result: no" >&5
3824 echo "${ECHO_T}no" >&6
3826 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3827 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3828 { (exit 1); exit 1; }; }
3829 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3830 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3831 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3832 echo $ECHO_N "(cached) $ECHO_C" >&6
3833 else
3834 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3835 case `$LD -v 2>&1 </dev/null` in
3836 *GNU* | *'with BFD'*)
3837 lt_cv_prog_gnu_ld=yes
3840 lt_cv_prog_gnu_ld=no
3842 esac
3844 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3845 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3846 with_gnu_ld=$lt_cv_prog_gnu_ld
3849 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3850 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3851 if test "${lt_cv_ld_reload_flag+set}" = set; then
3852 echo $ECHO_N "(cached) $ECHO_C" >&6
3853 else
3854 lt_cv_ld_reload_flag='-r'
3856 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3857 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3858 reload_flag=$lt_cv_ld_reload_flag
3859 case $reload_flag in
3860 "" | " "*) ;;
3861 *) reload_flag=" $reload_flag" ;;
3862 esac
3863 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3865 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3866 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3867 if test "${lt_cv_path_NM+set}" = set; then
3868 echo $ECHO_N "(cached) $ECHO_C" >&6
3869 else
3870 if test -n "$NM"; then
3871 # Let the user override the test.
3872 lt_cv_path_NM="$NM"
3873 else
3874 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3875 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3876 IFS="$lt_save_ifs"
3877 test -z "$ac_dir" && ac_dir=.
3878 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3879 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3880 # Check to see if the nm accepts a BSD-compat flag.
3881 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3882 # nm: unknown option "B" ignored
3883 # Tru64's nm complains that /dev/null is an invalid object file
3884 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3885 */dev/null* | *'Invalid file or object type'*)
3886 lt_cv_path_NM="$tmp_nm -B"
3887 break
3890 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3891 */dev/null*)
3892 lt_cv_path_NM="$tmp_nm -p"
3893 break
3896 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3897 continue # so that we can try to find one that supports BSD flags
3899 esac
3900 esac
3902 done
3903 IFS="$lt_save_ifs"
3904 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3907 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3908 echo "${ECHO_T}$lt_cv_path_NM" >&6
3909 NM="$lt_cv_path_NM"
3911 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3912 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3913 LN_S=$as_ln_s
3914 if test "$LN_S" = "ln -s"; then
3915 echo "$as_me:$LINENO: result: yes" >&5
3916 echo "${ECHO_T}yes" >&6
3917 else
3918 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3919 echo "${ECHO_T}no, using $LN_S" >&6
3922 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3923 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3924 if test "${lt_cv_deplibs_check_method+set}" = set; then
3925 echo $ECHO_N "(cached) $ECHO_C" >&6
3926 else
3927 lt_cv_file_magic_cmd='$MAGIC_CMD'
3928 lt_cv_file_magic_test_file=
3929 lt_cv_deplibs_check_method='unknown'
3930 # Need to set the preceding variable on all platforms that support
3931 # interlibrary dependencies.
3932 # 'none' -- dependencies not supported.
3933 # `unknown' -- same as none, but documents that we really don't know.
3934 # 'pass_all' -- all dependencies passed with no checks.
3935 # 'test_compile' -- check by making test program.
3936 # 'file_magic [[regex]]' -- check by looking for files in library path
3937 # which responds to the $file_magic_cmd with a given extended regex.
3938 # If you have `file' or equivalent on your system and you're not sure
3939 # whether `pass_all' will *always* work, you probably want this one.
3941 case $host_os in
3942 aix4* | aix5*)
3943 lt_cv_deplibs_check_method=pass_all
3946 beos*)
3947 lt_cv_deplibs_check_method=pass_all
3950 bsdi4*)
3951 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3952 lt_cv_file_magic_cmd='/usr/bin/file -L'
3953 lt_cv_file_magic_test_file=/shlib/libc.so
3956 cygwin*)
3957 # func_win32_libid is a shell function defined in ltmain.sh
3958 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3959 lt_cv_file_magic_cmd='func_win32_libid'
3962 mingw* | pw32*)
3963 # Base MSYS/MinGW do not provide the 'file' command needed by
3964 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3965 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3966 lt_cv_file_magic_cmd='$OBJDUMP -f'
3969 darwin* | rhapsody*)
3970 lt_cv_deplibs_check_method=pass_all
3973 freebsd* | kfreebsd*-gnu)
3974 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3975 case $host_cpu in
3976 i*86 )
3977 # Not sure whether the presence of OpenBSD here was a mistake.
3978 # Let's accept both of them until this is cleared up.
3979 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3980 lt_cv_file_magic_cmd=/usr/bin/file
3981 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3983 esac
3984 else
3985 lt_cv_deplibs_check_method=pass_all
3989 gnu*)
3990 lt_cv_deplibs_check_method=pass_all
3993 hpux10.20* | hpux11*)
3994 lt_cv_file_magic_cmd=/usr/bin/file
3995 case "$host_cpu" in
3996 ia64*)
3997 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3998 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4000 hppa*64*)
4001 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]'
4002 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4005 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4006 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4008 esac
4011 irix5* | irix6* | nonstopux*)
4012 case $LD in
4013 *-32|*"-32 ") libmagic=32-bit;;
4014 *-n32|*"-n32 ") libmagic=N32;;
4015 *-64|*"-64 ") libmagic=64-bit;;
4016 *) libmagic=never-match;;
4017 esac
4018 lt_cv_deplibs_check_method=pass_all
4021 # This must be Linux ELF.
4022 linux*)
4023 lt_cv_deplibs_check_method=pass_all
4026 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
4027 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4028 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4029 else
4030 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4034 newos6*)
4035 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4036 lt_cv_file_magic_cmd=/usr/bin/file
4037 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4040 nto-qnx*)
4041 lt_cv_deplibs_check_method=unknown
4044 openbsd*)
4045 lt_cv_file_magic_cmd=/usr/bin/file
4046 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4047 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4048 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4049 else
4050 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4054 osf3* | osf4* | osf5*)
4055 lt_cv_deplibs_check_method=pass_all
4058 sco3.2v5*)
4059 lt_cv_deplibs_check_method=pass_all
4062 solaris*)
4063 lt_cv_deplibs_check_method=pass_all
4066 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4067 case $host_vendor in
4068 motorola)
4069 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]'
4070 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4072 ncr)
4073 lt_cv_deplibs_check_method=pass_all
4075 sequent)
4076 lt_cv_file_magic_cmd='/bin/file'
4077 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4079 sni)
4080 lt_cv_file_magic_cmd='/bin/file'
4081 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4082 lt_cv_file_magic_test_file=/lib/libc.so
4084 siemens)
4085 lt_cv_deplibs_check_method=pass_all
4087 esac
4090 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4091 lt_cv_deplibs_check_method=pass_all
4093 esac
4096 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4097 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4098 file_magic_cmd=$lt_cv_file_magic_cmd
4099 deplibs_check_method=$lt_cv_deplibs_check_method
4100 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4105 # If no C compiler was specified, use CC.
4106 LTCC=${LTCC-"$CC"}
4108 # Allow CC to be a program name with arguments.
4109 compiler=$CC
4112 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4113 if test "${enable_libtool_lock+set}" = set; then
4114 enableval="$enable_libtool_lock"
4117 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4119 # Some flags need to be propagated to the compiler or linker for good
4120 # libtool support.
4121 case $host in
4122 ia64-*-hpux*)
4123 # Find out which ABI we are using.
4124 echo 'int i;' > conftest.$ac_ext
4125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4126 (eval $ac_compile) 2>&5
4127 ac_status=$?
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); }; then
4130 case `/usr/bin/file conftest.$ac_objext` in
4131 *ELF-32*)
4132 HPUX_IA64_MODE="32"
4134 *ELF-64*)
4135 HPUX_IA64_MODE="64"
4137 esac
4139 rm -rf conftest*
4141 *-*-irix6*)
4142 # Find out which ABI we are using.
4143 echo '#line 4143 "configure"' > conftest.$ac_ext
4144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4145 (eval $ac_compile) 2>&5
4146 ac_status=$?
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); }; then
4149 if test "$lt_cv_prog_gnu_ld" = yes; then
4150 case `/usr/bin/file conftest.$ac_objext` in
4151 *32-bit*)
4152 LD="${LD-ld} -melf32bsmip"
4154 *N32*)
4155 LD="${LD-ld} -melf32bmipn32"
4157 *64-bit*)
4158 LD="${LD-ld} -melf64bmip"
4160 esac
4161 else
4162 case `/usr/bin/file conftest.$ac_objext` in
4163 *32-bit*)
4164 LD="${LD-ld} -32"
4166 *N32*)
4167 LD="${LD-ld} -n32"
4169 *64-bit*)
4170 LD="${LD-ld} -64"
4172 esac
4175 rm -rf conftest*
4178 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4179 # Find out which ABI we are using.
4180 echo 'int i;' > conftest.$ac_ext
4181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4182 (eval $ac_compile) 2>&5
4183 ac_status=$?
4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185 (exit $ac_status); }; then
4186 case "`/usr/bin/file conftest.o`" in
4187 *32-bit*)
4188 case $host in
4189 x86_64-*linux*)
4190 LD="${LD-ld} -m elf_i386"
4192 ppc64-*linux*|powerpc64-*linux*)
4193 LD="${LD-ld} -m elf32ppclinux"
4195 s390x-*linux*)
4196 LD="${LD-ld} -m elf_s390"
4198 sparc64-*linux*)
4199 LD="${LD-ld} -m elf32_sparc"
4201 esac
4203 *64-bit*)
4204 case $host in
4205 x86_64-*linux*)
4206 LD="${LD-ld} -m elf_x86_64"
4208 ppc*-*linux*|powerpc*-*linux*)
4209 LD="${LD-ld} -m elf64ppc"
4211 s390*-*linux*)
4212 LD="${LD-ld} -m elf64_s390"
4214 sparc*-*linux*)
4215 LD="${LD-ld} -m elf64_sparc"
4217 esac
4219 esac
4221 rm -rf conftest*
4224 *-*-sco3.2v5*)
4225 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4226 SAVE_CFLAGS="$CFLAGS"
4227 CFLAGS="$CFLAGS -belf"
4228 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4229 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4230 if test "${lt_cv_cc_needs_belf+set}" = set; then
4231 echo $ECHO_N "(cached) $ECHO_C" >&6
4232 else
4233 ac_ext=c
4234 ac_cpp='$CPP $CPPFLAGS'
4235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4239 cat >conftest.$ac_ext <<_ACEOF
4240 /* confdefs.h. */
4241 _ACEOF
4242 cat confdefs.h >>conftest.$ac_ext
4243 cat >>conftest.$ac_ext <<_ACEOF
4244 /* end confdefs.h. */
4247 main ()
4251 return 0;
4253 _ACEOF
4254 rm -f conftest.$ac_objext conftest$ac_exeext
4255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4256 (eval $ac_link) 2>conftest.er1
4257 ac_status=$?
4258 grep -v '^ *+' conftest.er1 >conftest.err
4259 rm -f conftest.er1
4260 cat conftest.err >&5
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); } &&
4263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4265 (eval $ac_try) 2>&5
4266 ac_status=$?
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); }; } &&
4269 { ac_try='test -s conftest$ac_exeext'
4270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4271 (eval $ac_try) 2>&5
4272 ac_status=$?
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); }; }; then
4275 lt_cv_cc_needs_belf=yes
4276 else
4277 echo "$as_me: failed program was:" >&5
4278 sed 's/^/| /' conftest.$ac_ext >&5
4280 lt_cv_cc_needs_belf=no
4282 rm -f conftest.err conftest.$ac_objext \
4283 conftest$ac_exeext conftest.$ac_ext
4284 ac_ext=c
4285 ac_cpp='$CPP $CPPFLAGS'
4286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4291 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4292 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4293 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4294 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4295 CFLAGS="$SAVE_CFLAGS"
4299 esac
4301 need_locks="$enable_libtool_lock"
4304 ac_ext=c
4305 ac_cpp='$CPP $CPPFLAGS'
4306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4309 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4310 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4311 # On Suns, sometimes $CPP names a directory.
4312 if test -n "$CPP" && test -d "$CPP"; then
4313 CPP=
4315 if test -z "$CPP"; then
4316 if test "${ac_cv_prog_CPP+set}" = set; then
4317 echo $ECHO_N "(cached) $ECHO_C" >&6
4318 else
4319 # Double quotes because CPP needs to be expanded
4320 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4322 ac_preproc_ok=false
4323 for ac_c_preproc_warn_flag in '' yes
4325 # Use a header file that comes with gcc, so configuring glibc
4326 # with a fresh cross-compiler works.
4327 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4328 # <limits.h> exists even on freestanding compilers.
4329 # On the NeXT, cc -E runs the code through the compiler's parser,
4330 # not just through cpp. "Syntax error" is here to catch this case.
4331 cat >conftest.$ac_ext <<_ACEOF
4332 /* confdefs.h. */
4333 _ACEOF
4334 cat confdefs.h >>conftest.$ac_ext
4335 cat >>conftest.$ac_ext <<_ACEOF
4336 /* end confdefs.h. */
4337 #ifdef __STDC__
4338 # include <limits.h>
4339 #else
4340 # include <assert.h>
4341 #endif
4342 Syntax error
4343 _ACEOF
4344 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4345 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4346 ac_status=$?
4347 grep -v '^ *+' conftest.er1 >conftest.err
4348 rm -f conftest.er1
4349 cat conftest.err >&5
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); } >/dev/null; then
4352 if test -s conftest.err; then
4353 ac_cpp_err=$ac_c_preproc_warn_flag
4354 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4355 else
4356 ac_cpp_err=
4358 else
4359 ac_cpp_err=yes
4361 if test -z "$ac_cpp_err"; then
4363 else
4364 echo "$as_me: failed program was:" >&5
4365 sed 's/^/| /' conftest.$ac_ext >&5
4367 # Broken: fails on valid input.
4368 continue
4370 rm -f conftest.err conftest.$ac_ext
4372 # OK, works on sane cases. Now check whether non-existent headers
4373 # can be detected and how.
4374 cat >conftest.$ac_ext <<_ACEOF
4375 /* confdefs.h. */
4376 _ACEOF
4377 cat confdefs.h >>conftest.$ac_ext
4378 cat >>conftest.$ac_ext <<_ACEOF
4379 /* end confdefs.h. */
4380 #include <ac_nonexistent.h>
4381 _ACEOF
4382 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4383 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4384 ac_status=$?
4385 grep -v '^ *+' conftest.er1 >conftest.err
4386 rm -f conftest.er1
4387 cat conftest.err >&5
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); } >/dev/null; then
4390 if test -s conftest.err; then
4391 ac_cpp_err=$ac_c_preproc_warn_flag
4392 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4393 else
4394 ac_cpp_err=
4396 else
4397 ac_cpp_err=yes
4399 if test -z "$ac_cpp_err"; then
4400 # Broken: success on invalid input.
4401 continue
4402 else
4403 echo "$as_me: failed program was:" >&5
4404 sed 's/^/| /' conftest.$ac_ext >&5
4406 # Passes both tests.
4407 ac_preproc_ok=:
4408 break
4410 rm -f conftest.err conftest.$ac_ext
4412 done
4413 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4414 rm -f conftest.err conftest.$ac_ext
4415 if $ac_preproc_ok; then
4416 break
4419 done
4420 ac_cv_prog_CPP=$CPP
4423 CPP=$ac_cv_prog_CPP
4424 else
4425 ac_cv_prog_CPP=$CPP
4427 echo "$as_me:$LINENO: result: $CPP" >&5
4428 echo "${ECHO_T}$CPP" >&6
4429 ac_preproc_ok=false
4430 for ac_c_preproc_warn_flag in '' yes
4432 # Use a header file that comes with gcc, so configuring glibc
4433 # with a fresh cross-compiler works.
4434 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4435 # <limits.h> exists even on freestanding compilers.
4436 # On the NeXT, cc -E runs the code through the compiler's parser,
4437 # not just through cpp. "Syntax error" is here to catch this case.
4438 cat >conftest.$ac_ext <<_ACEOF
4439 /* confdefs.h. */
4440 _ACEOF
4441 cat confdefs.h >>conftest.$ac_ext
4442 cat >>conftest.$ac_ext <<_ACEOF
4443 /* end confdefs.h. */
4444 #ifdef __STDC__
4445 # include <limits.h>
4446 #else
4447 # include <assert.h>
4448 #endif
4449 Syntax error
4450 _ACEOF
4451 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4452 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4453 ac_status=$?
4454 grep -v '^ *+' conftest.er1 >conftest.err
4455 rm -f conftest.er1
4456 cat conftest.err >&5
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); } >/dev/null; then
4459 if test -s conftest.err; then
4460 ac_cpp_err=$ac_c_preproc_warn_flag
4461 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4462 else
4463 ac_cpp_err=
4465 else
4466 ac_cpp_err=yes
4468 if test -z "$ac_cpp_err"; then
4470 else
4471 echo "$as_me: failed program was:" >&5
4472 sed 's/^/| /' conftest.$ac_ext >&5
4474 # Broken: fails on valid input.
4475 continue
4477 rm -f conftest.err conftest.$ac_ext
4479 # OK, works on sane cases. Now check whether non-existent headers
4480 # can be detected and how.
4481 cat >conftest.$ac_ext <<_ACEOF
4482 /* confdefs.h. */
4483 _ACEOF
4484 cat confdefs.h >>conftest.$ac_ext
4485 cat >>conftest.$ac_ext <<_ACEOF
4486 /* end confdefs.h. */
4487 #include <ac_nonexistent.h>
4488 _ACEOF
4489 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4490 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4491 ac_status=$?
4492 grep -v '^ *+' conftest.er1 >conftest.err
4493 rm -f conftest.er1
4494 cat conftest.err >&5
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); } >/dev/null; then
4497 if test -s conftest.err; then
4498 ac_cpp_err=$ac_c_preproc_warn_flag
4499 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4500 else
4501 ac_cpp_err=
4503 else
4504 ac_cpp_err=yes
4506 if test -z "$ac_cpp_err"; then
4507 # Broken: success on invalid input.
4508 continue
4509 else
4510 echo "$as_me: failed program was:" >&5
4511 sed 's/^/| /' conftest.$ac_ext >&5
4513 # Passes both tests.
4514 ac_preproc_ok=:
4515 break
4517 rm -f conftest.err conftest.$ac_ext
4519 done
4520 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4521 rm -f conftest.err conftest.$ac_ext
4522 if $ac_preproc_ok; then
4524 else
4525 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4526 See \`config.log' for more details." >&5
4527 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4528 See \`config.log' for more details." >&2;}
4529 { (exit 1); exit 1; }; }
4532 ac_ext=c
4533 ac_cpp='$CPP $CPPFLAGS'
4534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4539 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4540 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4541 if test "${ac_cv_header_stdc+set}" = set; then
4542 echo $ECHO_N "(cached) $ECHO_C" >&6
4543 else
4544 cat >conftest.$ac_ext <<_ACEOF
4545 /* confdefs.h. */
4546 _ACEOF
4547 cat confdefs.h >>conftest.$ac_ext
4548 cat >>conftest.$ac_ext <<_ACEOF
4549 /* end confdefs.h. */
4550 #include <stdlib.h>
4551 #include <stdarg.h>
4552 #include <string.h>
4553 #include <float.h>
4556 main ()
4560 return 0;
4562 _ACEOF
4563 rm -f conftest.$ac_objext
4564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4565 (eval $ac_compile) 2>conftest.er1
4566 ac_status=$?
4567 grep -v '^ *+' conftest.er1 >conftest.err
4568 rm -f conftest.er1
4569 cat conftest.err >&5
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); } &&
4572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4574 (eval $ac_try) 2>&5
4575 ac_status=$?
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); }; } &&
4578 { ac_try='test -s conftest.$ac_objext'
4579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4580 (eval $ac_try) 2>&5
4581 ac_status=$?
4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583 (exit $ac_status); }; }; then
4584 ac_cv_header_stdc=yes
4585 else
4586 echo "$as_me: failed program was:" >&5
4587 sed 's/^/| /' conftest.$ac_ext >&5
4589 ac_cv_header_stdc=no
4591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4593 if test $ac_cv_header_stdc = yes; then
4594 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4595 cat >conftest.$ac_ext <<_ACEOF
4596 /* confdefs.h. */
4597 _ACEOF
4598 cat confdefs.h >>conftest.$ac_ext
4599 cat >>conftest.$ac_ext <<_ACEOF
4600 /* end confdefs.h. */
4601 #include <string.h>
4603 _ACEOF
4604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4605 $EGREP "memchr" >/dev/null 2>&1; then
4607 else
4608 ac_cv_header_stdc=no
4610 rm -f conftest*
4614 if test $ac_cv_header_stdc = yes; then
4615 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4616 cat >conftest.$ac_ext <<_ACEOF
4617 /* confdefs.h. */
4618 _ACEOF
4619 cat confdefs.h >>conftest.$ac_ext
4620 cat >>conftest.$ac_ext <<_ACEOF
4621 /* end confdefs.h. */
4622 #include <stdlib.h>
4624 _ACEOF
4625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4626 $EGREP "free" >/dev/null 2>&1; then
4628 else
4629 ac_cv_header_stdc=no
4631 rm -f conftest*
4635 if test $ac_cv_header_stdc = yes; then
4636 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4637 if test "$cross_compiling" = yes; then
4639 else
4640 cat >conftest.$ac_ext <<_ACEOF
4641 /* confdefs.h. */
4642 _ACEOF
4643 cat confdefs.h >>conftest.$ac_ext
4644 cat >>conftest.$ac_ext <<_ACEOF
4645 /* end confdefs.h. */
4646 #include <ctype.h>
4647 #if ((' ' & 0x0FF) == 0x020)
4648 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4649 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4650 #else
4651 # define ISLOWER(c) \
4652 (('a' <= (c) && (c) <= 'i') \
4653 || ('j' <= (c) && (c) <= 'r') \
4654 || ('s' <= (c) && (c) <= 'z'))
4655 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4656 #endif
4658 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4660 main ()
4662 int i;
4663 for (i = 0; i < 256; i++)
4664 if (XOR (islower (i), ISLOWER (i))
4665 || toupper (i) != TOUPPER (i))
4666 exit(2);
4667 exit (0);
4669 _ACEOF
4670 rm -f conftest$ac_exeext
4671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4672 (eval $ac_link) 2>&5
4673 ac_status=$?
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4677 (eval $ac_try) 2>&5
4678 ac_status=$?
4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); }; }; then
4682 else
4683 echo "$as_me: program exited with status $ac_status" >&5
4684 echo "$as_me: failed program was:" >&5
4685 sed 's/^/| /' conftest.$ac_ext >&5
4687 ( exit $ac_status )
4688 ac_cv_header_stdc=no
4690 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4694 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4695 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4696 if test $ac_cv_header_stdc = yes; then
4698 cat >>confdefs.h <<\_ACEOF
4699 #define STDC_HEADERS 1
4700 _ACEOF
4704 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4714 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4715 inttypes.h stdint.h unistd.h
4717 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4718 echo "$as_me:$LINENO: checking for $ac_header" >&5
4719 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4720 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4721 echo $ECHO_N "(cached) $ECHO_C" >&6
4722 else
4723 cat >conftest.$ac_ext <<_ACEOF
4724 /* confdefs.h. */
4725 _ACEOF
4726 cat confdefs.h >>conftest.$ac_ext
4727 cat >>conftest.$ac_ext <<_ACEOF
4728 /* end confdefs.h. */
4729 $ac_includes_default
4731 #include <$ac_header>
4732 _ACEOF
4733 rm -f conftest.$ac_objext
4734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4735 (eval $ac_compile) 2>conftest.er1
4736 ac_status=$?
4737 grep -v '^ *+' conftest.er1 >conftest.err
4738 rm -f conftest.er1
4739 cat conftest.err >&5
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); } &&
4742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4744 (eval $ac_try) 2>&5
4745 ac_status=$?
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); }; } &&
4748 { ac_try='test -s conftest.$ac_objext'
4749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4750 (eval $ac_try) 2>&5
4751 ac_status=$?
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); }; }; then
4754 eval "$as_ac_Header=yes"
4755 else
4756 echo "$as_me: failed program was:" >&5
4757 sed 's/^/| /' conftest.$ac_ext >&5
4759 eval "$as_ac_Header=no"
4761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4764 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4765 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4766 cat >>confdefs.h <<_ACEOF
4767 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4768 _ACEOF
4772 done
4776 for ac_header in dlfcn.h
4778 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4780 echo "$as_me:$LINENO: checking for $ac_header" >&5
4781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6
4785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4786 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4787 else
4788 # Is the header compilable?
4789 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4790 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4791 cat >conftest.$ac_ext <<_ACEOF
4792 /* confdefs.h. */
4793 _ACEOF
4794 cat confdefs.h >>conftest.$ac_ext
4795 cat >>conftest.$ac_ext <<_ACEOF
4796 /* end confdefs.h. */
4797 $ac_includes_default
4798 #include <$ac_header>
4799 _ACEOF
4800 rm -f conftest.$ac_objext
4801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4802 (eval $ac_compile) 2>conftest.er1
4803 ac_status=$?
4804 grep -v '^ *+' conftest.er1 >conftest.err
4805 rm -f conftest.er1
4806 cat conftest.err >&5
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); } &&
4809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4811 (eval $ac_try) 2>&5
4812 ac_status=$?
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); }; } &&
4815 { ac_try='test -s conftest.$ac_objext'
4816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4817 (eval $ac_try) 2>&5
4818 ac_status=$?
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); }; }; then
4821 ac_header_compiler=yes
4822 else
4823 echo "$as_me: failed program was:" >&5
4824 sed 's/^/| /' conftest.$ac_ext >&5
4826 ac_header_compiler=no
4828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4829 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4830 echo "${ECHO_T}$ac_header_compiler" >&6
4832 # Is the header present?
4833 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4834 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4835 cat >conftest.$ac_ext <<_ACEOF
4836 /* confdefs.h. */
4837 _ACEOF
4838 cat confdefs.h >>conftest.$ac_ext
4839 cat >>conftest.$ac_ext <<_ACEOF
4840 /* end confdefs.h. */
4841 #include <$ac_header>
4842 _ACEOF
4843 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4844 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4845 ac_status=$?
4846 grep -v '^ *+' conftest.er1 >conftest.err
4847 rm -f conftest.er1
4848 cat conftest.err >&5
4849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850 (exit $ac_status); } >/dev/null; then
4851 if test -s conftest.err; then
4852 ac_cpp_err=$ac_c_preproc_warn_flag
4853 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4854 else
4855 ac_cpp_err=
4857 else
4858 ac_cpp_err=yes
4860 if test -z "$ac_cpp_err"; then
4861 ac_header_preproc=yes
4862 else
4863 echo "$as_me: failed program was:" >&5
4864 sed 's/^/| /' conftest.$ac_ext >&5
4866 ac_header_preproc=no
4868 rm -f conftest.err conftest.$ac_ext
4869 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4870 echo "${ECHO_T}$ac_header_preproc" >&6
4872 # So? What about this header?
4873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4874 yes:no: )
4875 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4876 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4878 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4879 ac_header_preproc=yes
4881 no:yes:* )
4882 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4883 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4884 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4885 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4886 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4887 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4888 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4889 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4891 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4892 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4893 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4895 cat <<\_ASBOX
4896 ## ------------------------------------------------ ##
4897 ## Report this to barry-devel@lists.sourceforge.net ##
4898 ## ------------------------------------------------ ##
4899 _ASBOX
4901 sed "s/^/$as_me: WARNING: /" >&2
4903 esac
4904 echo "$as_me:$LINENO: checking for $ac_header" >&5
4905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4907 echo $ECHO_N "(cached) $ECHO_C" >&6
4908 else
4909 eval "$as_ac_Header=\$ac_header_preproc"
4911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4912 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4915 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4916 cat >>confdefs.h <<_ACEOF
4917 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4918 _ACEOF
4922 done
4924 ac_ext=cc
4925 ac_cpp='$CXXCPP $CPPFLAGS'
4926 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4927 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4928 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4929 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4930 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4931 if test -z "$CXXCPP"; then
4932 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4933 echo $ECHO_N "(cached) $ECHO_C" >&6
4934 else
4935 # Double quotes because CXXCPP needs to be expanded
4936 for CXXCPP in "$CXX -E" "/lib/cpp"
4938 ac_preproc_ok=false
4939 for ac_cxx_preproc_warn_flag in '' yes
4941 # Use a header file that comes with gcc, so configuring glibc
4942 # with a fresh cross-compiler works.
4943 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4944 # <limits.h> exists even on freestanding compilers.
4945 # On the NeXT, cc -E runs the code through the compiler's parser,
4946 # not just through cpp. "Syntax error" is here to catch this case.
4947 cat >conftest.$ac_ext <<_ACEOF
4948 /* confdefs.h. */
4949 _ACEOF
4950 cat confdefs.h >>conftest.$ac_ext
4951 cat >>conftest.$ac_ext <<_ACEOF
4952 /* end confdefs.h. */
4953 #ifdef __STDC__
4954 # include <limits.h>
4955 #else
4956 # include <assert.h>
4957 #endif
4958 Syntax error
4959 _ACEOF
4960 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4961 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4962 ac_status=$?
4963 grep -v '^ *+' conftest.er1 >conftest.err
4964 rm -f conftest.er1
4965 cat conftest.err >&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); } >/dev/null; then
4968 if test -s conftest.err; then
4969 ac_cpp_err=$ac_cxx_preproc_warn_flag
4970 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4971 else
4972 ac_cpp_err=
4974 else
4975 ac_cpp_err=yes
4977 if test -z "$ac_cpp_err"; then
4979 else
4980 echo "$as_me: failed program was:" >&5
4981 sed 's/^/| /' conftest.$ac_ext >&5
4983 # Broken: fails on valid input.
4984 continue
4986 rm -f conftest.err conftest.$ac_ext
4988 # OK, works on sane cases. Now check whether non-existent headers
4989 # can be detected and how.
4990 cat >conftest.$ac_ext <<_ACEOF
4991 /* confdefs.h. */
4992 _ACEOF
4993 cat confdefs.h >>conftest.$ac_ext
4994 cat >>conftest.$ac_ext <<_ACEOF
4995 /* end confdefs.h. */
4996 #include <ac_nonexistent.h>
4997 _ACEOF
4998 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4999 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5000 ac_status=$?
5001 grep -v '^ *+' conftest.er1 >conftest.err
5002 rm -f conftest.er1
5003 cat conftest.err >&5
5004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005 (exit $ac_status); } >/dev/null; then
5006 if test -s conftest.err; then
5007 ac_cpp_err=$ac_cxx_preproc_warn_flag
5008 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5009 else
5010 ac_cpp_err=
5012 else
5013 ac_cpp_err=yes
5015 if test -z "$ac_cpp_err"; then
5016 # Broken: success on invalid input.
5017 continue
5018 else
5019 echo "$as_me: failed program was:" >&5
5020 sed 's/^/| /' conftest.$ac_ext >&5
5022 # Passes both tests.
5023 ac_preproc_ok=:
5024 break
5026 rm -f conftest.err conftest.$ac_ext
5028 done
5029 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5030 rm -f conftest.err conftest.$ac_ext
5031 if $ac_preproc_ok; then
5032 break
5035 done
5036 ac_cv_prog_CXXCPP=$CXXCPP
5039 CXXCPP=$ac_cv_prog_CXXCPP
5040 else
5041 ac_cv_prog_CXXCPP=$CXXCPP
5043 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5044 echo "${ECHO_T}$CXXCPP" >&6
5045 ac_preproc_ok=false
5046 for ac_cxx_preproc_warn_flag in '' yes
5048 # Use a header file that comes with gcc, so configuring glibc
5049 # with a fresh cross-compiler works.
5050 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5051 # <limits.h> exists even on freestanding compilers.
5052 # On the NeXT, cc -E runs the code through the compiler's parser,
5053 # not just through cpp. "Syntax error" is here to catch this case.
5054 cat >conftest.$ac_ext <<_ACEOF
5055 /* confdefs.h. */
5056 _ACEOF
5057 cat confdefs.h >>conftest.$ac_ext
5058 cat >>conftest.$ac_ext <<_ACEOF
5059 /* end confdefs.h. */
5060 #ifdef __STDC__
5061 # include <limits.h>
5062 #else
5063 # include <assert.h>
5064 #endif
5065 Syntax error
5066 _ACEOF
5067 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5068 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5069 ac_status=$?
5070 grep -v '^ *+' conftest.er1 >conftest.err
5071 rm -f conftest.er1
5072 cat conftest.err >&5
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); } >/dev/null; then
5075 if test -s conftest.err; then
5076 ac_cpp_err=$ac_cxx_preproc_warn_flag
5077 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5078 else
5079 ac_cpp_err=
5081 else
5082 ac_cpp_err=yes
5084 if test -z "$ac_cpp_err"; then
5086 else
5087 echo "$as_me: failed program was:" >&5
5088 sed 's/^/| /' conftest.$ac_ext >&5
5090 # Broken: fails on valid input.
5091 continue
5093 rm -f conftest.err conftest.$ac_ext
5095 # OK, works on sane cases. Now check whether non-existent headers
5096 # can be detected and how.
5097 cat >conftest.$ac_ext <<_ACEOF
5098 /* confdefs.h. */
5099 _ACEOF
5100 cat confdefs.h >>conftest.$ac_ext
5101 cat >>conftest.$ac_ext <<_ACEOF
5102 /* end confdefs.h. */
5103 #include <ac_nonexistent.h>
5104 _ACEOF
5105 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5106 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5107 ac_status=$?
5108 grep -v '^ *+' conftest.er1 >conftest.err
5109 rm -f conftest.er1
5110 cat conftest.err >&5
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); } >/dev/null; then
5113 if test -s conftest.err; then
5114 ac_cpp_err=$ac_cxx_preproc_warn_flag
5115 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5116 else
5117 ac_cpp_err=
5119 else
5120 ac_cpp_err=yes
5122 if test -z "$ac_cpp_err"; then
5123 # Broken: success on invalid input.
5124 continue
5125 else
5126 echo "$as_me: failed program was:" >&5
5127 sed 's/^/| /' conftest.$ac_ext >&5
5129 # Passes both tests.
5130 ac_preproc_ok=:
5131 break
5133 rm -f conftest.err conftest.$ac_ext
5135 done
5136 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5137 rm -f conftest.err conftest.$ac_ext
5138 if $ac_preproc_ok; then
5140 else
5141 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5142 See \`config.log' for more details." >&5
5143 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5144 See \`config.log' for more details." >&2;}
5145 { (exit 1); exit 1; }; }
5148 ac_ext=cc
5149 ac_cpp='$CXXCPP $CPPFLAGS'
5150 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5151 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5152 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5155 ac_ext=f
5156 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5157 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5158 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5159 if test -n "$ac_tool_prefix"; then
5160 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5162 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5163 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5164 echo "$as_me:$LINENO: checking for $ac_word" >&5
5165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5166 if test "${ac_cv_prog_F77+set}" = set; then
5167 echo $ECHO_N "(cached) $ECHO_C" >&6
5168 else
5169 if test -n "$F77"; then
5170 ac_cv_prog_F77="$F77" # Let the user override the test.
5171 else
5172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5173 for as_dir in $PATH
5175 IFS=$as_save_IFS
5176 test -z "$as_dir" && as_dir=.
5177 for ac_exec_ext in '' $ac_executable_extensions; do
5178 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5179 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5181 break 2
5183 done
5184 done
5188 F77=$ac_cv_prog_F77
5189 if test -n "$F77"; then
5190 echo "$as_me:$LINENO: result: $F77" >&5
5191 echo "${ECHO_T}$F77" >&6
5192 else
5193 echo "$as_me:$LINENO: result: no" >&5
5194 echo "${ECHO_T}no" >&6
5197 test -n "$F77" && break
5198 done
5200 if test -z "$F77"; then
5201 ac_ct_F77=$F77
5202 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5204 # Extract the first word of "$ac_prog", so it can be a program name with args.
5205 set dummy $ac_prog; ac_word=$2
5206 echo "$as_me:$LINENO: checking for $ac_word" >&5
5207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5208 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5209 echo $ECHO_N "(cached) $ECHO_C" >&6
5210 else
5211 if test -n "$ac_ct_F77"; then
5212 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5213 else
5214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215 for as_dir in $PATH
5217 IFS=$as_save_IFS
5218 test -z "$as_dir" && as_dir=.
5219 for ac_exec_ext in '' $ac_executable_extensions; do
5220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5221 ac_cv_prog_ac_ct_F77="$ac_prog"
5222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5223 break 2
5225 done
5226 done
5230 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5231 if test -n "$ac_ct_F77"; then
5232 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5233 echo "${ECHO_T}$ac_ct_F77" >&6
5234 else
5235 echo "$as_me:$LINENO: result: no" >&5
5236 echo "${ECHO_T}no" >&6
5239 test -n "$ac_ct_F77" && break
5240 done
5242 F77=$ac_ct_F77
5246 # Provide some information about the compiler.
5247 echo "$as_me:5247:" \
5248 "checking for Fortran 77 compiler version" >&5
5249 ac_compiler=`set X $ac_compile; echo $2`
5250 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5251 (eval $ac_compiler --version </dev/null >&5) 2>&5
5252 ac_status=$?
5253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254 (exit $ac_status); }
5255 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5256 (eval $ac_compiler -v </dev/null >&5) 2>&5
5257 ac_status=$?
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); }
5260 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5261 (eval $ac_compiler -V </dev/null >&5) 2>&5
5262 ac_status=$?
5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 (exit $ac_status); }
5265 rm -f a.out
5267 # If we don't use `.F' as extension, the preprocessor is not run on the
5268 # input file. (Note that this only needs to work for GNU compilers.)
5269 ac_save_ext=$ac_ext
5270 ac_ext=F
5271 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5272 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5273 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5274 echo $ECHO_N "(cached) $ECHO_C" >&6
5275 else
5276 cat >conftest.$ac_ext <<_ACEOF
5277 program main
5278 #ifndef __GNUC__
5279 choke me
5280 #endif
5283 _ACEOF
5284 rm -f conftest.$ac_objext
5285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5286 (eval $ac_compile) 2>conftest.er1
5287 ac_status=$?
5288 grep -v '^ *+' conftest.er1 >conftest.err
5289 rm -f conftest.er1
5290 cat conftest.err >&5
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); } &&
5293 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5295 (eval $ac_try) 2>&5
5296 ac_status=$?
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); }; } &&
5299 { ac_try='test -s conftest.$ac_objext'
5300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5301 (eval $ac_try) 2>&5
5302 ac_status=$?
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); }; }; then
5305 ac_compiler_gnu=yes
5306 else
5307 echo "$as_me: failed program was:" >&5
5308 sed 's/^/| /' conftest.$ac_ext >&5
5310 ac_compiler_gnu=no
5312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5313 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5316 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5317 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5318 ac_ext=$ac_save_ext
5319 ac_test_FFLAGS=${FFLAGS+set}
5320 ac_save_FFLAGS=$FFLAGS
5321 FFLAGS=
5322 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5323 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5324 if test "${ac_cv_prog_f77_g+set}" = set; then
5325 echo $ECHO_N "(cached) $ECHO_C" >&6
5326 else
5327 FFLAGS=-g
5328 cat >conftest.$ac_ext <<_ACEOF
5329 program main
5332 _ACEOF
5333 rm -f conftest.$ac_objext
5334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5335 (eval $ac_compile) 2>conftest.er1
5336 ac_status=$?
5337 grep -v '^ *+' conftest.er1 >conftest.err
5338 rm -f conftest.er1
5339 cat conftest.err >&5
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); } &&
5342 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5344 (eval $ac_try) 2>&5
5345 ac_status=$?
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); }; } &&
5348 { ac_try='test -s conftest.$ac_objext'
5349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5350 (eval $ac_try) 2>&5
5351 ac_status=$?
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); }; }; then
5354 ac_cv_prog_f77_g=yes
5355 else
5356 echo "$as_me: failed program was:" >&5
5357 sed 's/^/| /' conftest.$ac_ext >&5
5359 ac_cv_prog_f77_g=no
5361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5364 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5365 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5366 if test "$ac_test_FFLAGS" = set; then
5367 FFLAGS=$ac_save_FFLAGS
5368 elif test $ac_cv_prog_f77_g = yes; then
5369 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5370 FFLAGS="-g -O2"
5371 else
5372 FFLAGS="-g"
5374 else
5375 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5376 FFLAGS="-O2"
5377 else
5378 FFLAGS=
5382 G77=`test $ac_compiler_gnu = yes && echo yes`
5383 ac_ext=c
5384 ac_cpp='$CPP $CPPFLAGS'
5385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5391 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5393 # find the maximum length of command line arguments
5394 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5395 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5396 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5397 echo $ECHO_N "(cached) $ECHO_C" >&6
5398 else
5400 teststring="ABCD"
5402 case $build_os in
5403 msdosdjgpp*)
5404 # On DJGPP, this test can blow up pretty badly due to problems in libc
5405 # (any single argument exceeding 2000 bytes causes a buffer overrun
5406 # during glob expansion). Even if it were fixed, the result of this
5407 # check would be larger than it should be.
5408 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5411 gnu*)
5412 # Under GNU Hurd, this test is not required because there is
5413 # no limit to the length of command line arguments.
5414 # Libtool will interpret -1 as no limit whatsoever
5415 lt_cv_sys_max_cmd_len=-1;
5418 cygwin* | mingw*)
5419 # On Win9x/ME, this test blows up -- it succeeds, but takes
5420 # about 5 minutes as the teststring grows exponentially.
5421 # Worse, since 9x/ME are not pre-emptively multitasking,
5422 # you end up with a "frozen" computer, even though with patience
5423 # the test eventually succeeds (with a max line length of 256k).
5424 # Instead, let's just punt: use the minimum linelength reported by
5425 # all of the supported platforms: 8192 (on NT/2K/XP).
5426 lt_cv_sys_max_cmd_len=8192;
5429 amigaos*)
5430 # On AmigaOS with pdksh, this test takes hours, literally.
5431 # So we just punt and use a minimum line length of 8192.
5432 lt_cv_sys_max_cmd_len=8192;
5436 # If test is not a shell built-in, we'll probably end up computing a
5437 # maximum length that is only half of the actual maximum length, but
5438 # we can't tell.
5439 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5440 = "XX$teststring") >/dev/null 2>&1 &&
5441 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5442 lt_cv_sys_max_cmd_len=$new_result &&
5443 test $i != 17 # 1/2 MB should be enough
5445 i=`expr $i + 1`
5446 teststring=$teststring$teststring
5447 done
5448 teststring=
5449 # Add a significant safety factor because C++ compilers can tack on massive
5450 # amounts of additional arguments before passing them to the linker.
5451 # It appears as though 1/2 is a usable value.
5452 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5454 esac
5458 if test -n $lt_cv_sys_max_cmd_len ; then
5459 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5460 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5461 else
5462 echo "$as_me:$LINENO: result: none" >&5
5463 echo "${ECHO_T}none" >&6
5469 # Check for command to grab the raw symbol name followed by C symbol from nm.
5470 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5471 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5472 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5473 echo $ECHO_N "(cached) $ECHO_C" >&6
5474 else
5476 # These are sane defaults that work on at least a few old systems.
5477 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5479 # Character class describing NM global symbol codes.
5480 symcode='[BCDEGRST]'
5482 # Regexp to match symbols that can be accessed directly from C.
5483 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5485 # Transform the above into a raw symbol and a C symbol.
5486 symxfrm='\1 \2\3 \3'
5488 # Transform an extracted symbol line into a proper C declaration
5489 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5491 # Transform an extracted symbol line into symbol name and symbol address
5492 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5494 # Define system-specific variables.
5495 case $host_os in
5496 aix*)
5497 symcode='[BCDT]'
5499 cygwin* | mingw* | pw32*)
5500 symcode='[ABCDGISTW]'
5502 hpux*) # Its linker distinguishes data from code symbols
5503 if test "$host_cpu" = ia64; then
5504 symcode='[ABCDEGRST]'
5506 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5507 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5509 irix* | nonstopux*)
5510 symcode='[BCDEGRST]'
5512 osf*)
5513 symcode='[BCDEGQRST]'
5515 solaris* | sysv5*)
5516 symcode='[BDRT]'
5518 sysv4)
5519 symcode='[DFNSTU]'
5521 esac
5523 # Handle CRLF in mingw tool chain
5524 opt_cr=
5525 case $build_os in
5526 mingw*)
5527 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5529 esac
5531 # If we're using GNU nm, then use its standard symbol codes.
5532 case `$NM -V 2>&1` in
5533 *GNU* | *'with BFD'*)
5534 symcode='[ABCDGIRSTW]' ;;
5535 esac
5537 # Try without a prefix undercore, then with it.
5538 for ac_symprfx in "" "_"; do
5540 # Write the raw and C identifiers.
5541 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5543 # Check to see that the pipe works correctly.
5544 pipe_works=no
5546 rm -f conftest*
5547 cat > conftest.$ac_ext <<EOF
5548 #ifdef __cplusplus
5549 extern "C" {
5550 #endif
5551 char nm_test_var;
5552 void nm_test_func(){}
5553 #ifdef __cplusplus
5555 #endif
5556 int main(){nm_test_var='a';nm_test_func();return(0);}
5559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5560 (eval $ac_compile) 2>&5
5561 ac_status=$?
5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563 (exit $ac_status); }; then
5564 # Now try to grab the symbols.
5565 nlist=conftest.nm
5566 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5567 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5568 ac_status=$?
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); } && test -s "$nlist"; then
5571 # Try sorting and uniquifying the output.
5572 if sort "$nlist" | uniq > "$nlist"T; then
5573 mv -f "$nlist"T "$nlist"
5574 else
5575 rm -f "$nlist"T
5578 # Make sure that we snagged all the symbols we need.
5579 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5580 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5581 cat <<EOF > conftest.$ac_ext
5582 #ifdef __cplusplus
5583 extern "C" {
5584 #endif
5587 # Now generate the symbol file.
5588 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5590 cat <<EOF >> conftest.$ac_ext
5591 #if defined (__STDC__) && __STDC__
5592 # define lt_ptr_t void *
5593 #else
5594 # define lt_ptr_t char *
5595 # define const
5596 #endif
5598 /* The mapping between symbol names and symbols. */
5599 const struct {
5600 const char *name;
5601 lt_ptr_t address;
5603 lt_preloaded_symbols[] =
5606 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5607 cat <<\EOF >> conftest.$ac_ext
5608 {0, (lt_ptr_t) 0}
5611 #ifdef __cplusplus
5613 #endif
5615 # Now try linking the two files.
5616 mv conftest.$ac_objext conftstm.$ac_objext
5617 lt_save_LIBS="$LIBS"
5618 lt_save_CFLAGS="$CFLAGS"
5619 LIBS="conftstm.$ac_objext"
5620 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5622 (eval $ac_link) 2>&5
5623 ac_status=$?
5624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5626 pipe_works=yes
5628 LIBS="$lt_save_LIBS"
5629 CFLAGS="$lt_save_CFLAGS"
5630 else
5631 echo "cannot find nm_test_func in $nlist" >&5
5633 else
5634 echo "cannot find nm_test_var in $nlist" >&5
5636 else
5637 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5639 else
5640 echo "$progname: failed program was:" >&5
5641 cat conftest.$ac_ext >&5
5643 rm -f conftest* conftst*
5645 # Do not use the global_symbol_pipe unless it works.
5646 if test "$pipe_works" = yes; then
5647 break
5648 else
5649 lt_cv_sys_global_symbol_pipe=
5651 done
5655 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5656 lt_cv_sys_global_symbol_to_cdecl=
5658 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5659 echo "$as_me:$LINENO: result: failed" >&5
5660 echo "${ECHO_T}failed" >&6
5661 else
5662 echo "$as_me:$LINENO: result: ok" >&5
5663 echo "${ECHO_T}ok" >&6
5666 echo "$as_me:$LINENO: checking for objdir" >&5
5667 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5668 if test "${lt_cv_objdir+set}" = set; then
5669 echo $ECHO_N "(cached) $ECHO_C" >&6
5670 else
5671 rm -f .libs 2>/dev/null
5672 mkdir .libs 2>/dev/null
5673 if test -d .libs; then
5674 lt_cv_objdir=.libs
5675 else
5676 # MS-DOS does not allow filenames that begin with a dot.
5677 lt_cv_objdir=_libs
5679 rmdir .libs 2>/dev/null
5681 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5682 echo "${ECHO_T}$lt_cv_objdir" >&6
5683 objdir=$lt_cv_objdir
5689 case $host_os in
5690 aix3*)
5691 # AIX sometimes has problems with the GCC collect2 program. For some
5692 # reason, if we set the COLLECT_NAMES environment variable, the problems
5693 # vanish in a puff of smoke.
5694 if test "X${COLLECT_NAMES+set}" != Xset; then
5695 COLLECT_NAMES=
5696 export COLLECT_NAMES
5699 esac
5701 # Sed substitution that helps us do robust quoting. It backslashifies
5702 # metacharacters that are still active within double-quoted strings.
5703 Xsed='sed -e s/^X//'
5704 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5706 # Same as above, but do not quote variable references.
5707 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5709 # Sed substitution to delay expansion of an escaped shell variable in a
5710 # double_quote_subst'ed string.
5711 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5713 # Sed substitution to avoid accidental globbing in evaled expressions
5714 no_glob_subst='s/\*/\\\*/g'
5716 # Constants:
5717 rm="rm -f"
5719 # Global variables:
5720 default_ofile=libtool
5721 can_build_shared=yes
5723 # All known linkers require a `.a' archive for static linking (except M$VC,
5724 # which needs '.lib').
5725 libext=a
5726 ltmain="$ac_aux_dir/ltmain.sh"
5727 ofile="$default_ofile"
5728 with_gnu_ld="$lt_cv_prog_gnu_ld"
5730 if test -n "$ac_tool_prefix"; then
5731 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5732 set dummy ${ac_tool_prefix}ar; ac_word=$2
5733 echo "$as_me:$LINENO: checking for $ac_word" >&5
5734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5735 if test "${ac_cv_prog_AR+set}" = set; then
5736 echo $ECHO_N "(cached) $ECHO_C" >&6
5737 else
5738 if test -n "$AR"; then
5739 ac_cv_prog_AR="$AR" # Let the user override the test.
5740 else
5741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5742 for as_dir in $PATH
5744 IFS=$as_save_IFS
5745 test -z "$as_dir" && as_dir=.
5746 for ac_exec_ext in '' $ac_executable_extensions; do
5747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5748 ac_cv_prog_AR="${ac_tool_prefix}ar"
5749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5750 break 2
5752 done
5753 done
5757 AR=$ac_cv_prog_AR
5758 if test -n "$AR"; then
5759 echo "$as_me:$LINENO: result: $AR" >&5
5760 echo "${ECHO_T}$AR" >&6
5761 else
5762 echo "$as_me:$LINENO: result: no" >&5
5763 echo "${ECHO_T}no" >&6
5767 if test -z "$ac_cv_prog_AR"; then
5768 ac_ct_AR=$AR
5769 # Extract the first word of "ar", so it can be a program name with args.
5770 set dummy ar; ac_word=$2
5771 echo "$as_me:$LINENO: checking for $ac_word" >&5
5772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5773 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5774 echo $ECHO_N "(cached) $ECHO_C" >&6
5775 else
5776 if test -n "$ac_ct_AR"; then
5777 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5778 else
5779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5780 for as_dir in $PATH
5782 IFS=$as_save_IFS
5783 test -z "$as_dir" && as_dir=.
5784 for ac_exec_ext in '' $ac_executable_extensions; do
5785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5786 ac_cv_prog_ac_ct_AR="ar"
5787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5788 break 2
5790 done
5791 done
5793 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5796 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5797 if test -n "$ac_ct_AR"; then
5798 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5799 echo "${ECHO_T}$ac_ct_AR" >&6
5800 else
5801 echo "$as_me:$LINENO: result: no" >&5
5802 echo "${ECHO_T}no" >&6
5805 AR=$ac_ct_AR
5806 else
5807 AR="$ac_cv_prog_AR"
5810 if test -n "$ac_tool_prefix"; then
5811 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5812 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5813 echo "$as_me:$LINENO: checking for $ac_word" >&5
5814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5815 if test "${ac_cv_prog_RANLIB+set}" = set; then
5816 echo $ECHO_N "(cached) $ECHO_C" >&6
5817 else
5818 if test -n "$RANLIB"; then
5819 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5820 else
5821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5822 for as_dir in $PATH
5824 IFS=$as_save_IFS
5825 test -z "$as_dir" && as_dir=.
5826 for ac_exec_ext in '' $ac_executable_extensions; do
5827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5828 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5830 break 2
5832 done
5833 done
5837 RANLIB=$ac_cv_prog_RANLIB
5838 if test -n "$RANLIB"; then
5839 echo "$as_me:$LINENO: result: $RANLIB" >&5
5840 echo "${ECHO_T}$RANLIB" >&6
5841 else
5842 echo "$as_me:$LINENO: result: no" >&5
5843 echo "${ECHO_T}no" >&6
5847 if test -z "$ac_cv_prog_RANLIB"; then
5848 ac_ct_RANLIB=$RANLIB
5849 # Extract the first word of "ranlib", so it can be a program name with args.
5850 set dummy ranlib; ac_word=$2
5851 echo "$as_me:$LINENO: checking for $ac_word" >&5
5852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5853 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5854 echo $ECHO_N "(cached) $ECHO_C" >&6
5855 else
5856 if test -n "$ac_ct_RANLIB"; then
5857 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5858 else
5859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5860 for as_dir in $PATH
5862 IFS=$as_save_IFS
5863 test -z "$as_dir" && as_dir=.
5864 for ac_exec_ext in '' $ac_executable_extensions; do
5865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5866 ac_cv_prog_ac_ct_RANLIB="ranlib"
5867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5868 break 2
5870 done
5871 done
5873 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5876 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5877 if test -n "$ac_ct_RANLIB"; then
5878 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5879 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5880 else
5881 echo "$as_me:$LINENO: result: no" >&5
5882 echo "${ECHO_T}no" >&6
5885 RANLIB=$ac_ct_RANLIB
5886 else
5887 RANLIB="$ac_cv_prog_RANLIB"
5890 if test -n "$ac_tool_prefix"; then
5891 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5892 set dummy ${ac_tool_prefix}strip; ac_word=$2
5893 echo "$as_me:$LINENO: checking for $ac_word" >&5
5894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5895 if test "${ac_cv_prog_STRIP+set}" = set; then
5896 echo $ECHO_N "(cached) $ECHO_C" >&6
5897 else
5898 if test -n "$STRIP"; then
5899 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5900 else
5901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5902 for as_dir in $PATH
5904 IFS=$as_save_IFS
5905 test -z "$as_dir" && as_dir=.
5906 for ac_exec_ext in '' $ac_executable_extensions; do
5907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5908 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5910 break 2
5912 done
5913 done
5917 STRIP=$ac_cv_prog_STRIP
5918 if test -n "$STRIP"; then
5919 echo "$as_me:$LINENO: result: $STRIP" >&5
5920 echo "${ECHO_T}$STRIP" >&6
5921 else
5922 echo "$as_me:$LINENO: result: no" >&5
5923 echo "${ECHO_T}no" >&6
5927 if test -z "$ac_cv_prog_STRIP"; then
5928 ac_ct_STRIP=$STRIP
5929 # Extract the first word of "strip", so it can be a program name with args.
5930 set dummy strip; ac_word=$2
5931 echo "$as_me:$LINENO: checking for $ac_word" >&5
5932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5933 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5934 echo $ECHO_N "(cached) $ECHO_C" >&6
5935 else
5936 if test -n "$ac_ct_STRIP"; then
5937 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5938 else
5939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5940 for as_dir in $PATH
5942 IFS=$as_save_IFS
5943 test -z "$as_dir" && as_dir=.
5944 for ac_exec_ext in '' $ac_executable_extensions; do
5945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5946 ac_cv_prog_ac_ct_STRIP="strip"
5947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5948 break 2
5950 done
5951 done
5953 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5956 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5957 if test -n "$ac_ct_STRIP"; then
5958 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5959 echo "${ECHO_T}$ac_ct_STRIP" >&6
5960 else
5961 echo "$as_me:$LINENO: result: no" >&5
5962 echo "${ECHO_T}no" >&6
5965 STRIP=$ac_ct_STRIP
5966 else
5967 STRIP="$ac_cv_prog_STRIP"
5971 old_CC="$CC"
5972 old_CFLAGS="$CFLAGS"
5974 # Set sane defaults for various variables
5975 test -z "$AR" && AR=ar
5976 test -z "$AR_FLAGS" && AR_FLAGS=cru
5977 test -z "$AS" && AS=as
5978 test -z "$CC" && CC=cc
5979 test -z "$LTCC" && LTCC=$CC
5980 test -z "$DLLTOOL" && DLLTOOL=dlltool
5981 test -z "$LD" && LD=ld
5982 test -z "$LN_S" && LN_S="ln -s"
5983 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5984 test -z "$NM" && NM=nm
5985 test -z "$SED" && SED=sed
5986 test -z "$OBJDUMP" && OBJDUMP=objdump
5987 test -z "$RANLIB" && RANLIB=:
5988 test -z "$STRIP" && STRIP=:
5989 test -z "$ac_objext" && ac_objext=o
5991 # Determine commands to create old-style static archives.
5992 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5993 old_postinstall_cmds='chmod 644 $oldlib'
5994 old_postuninstall_cmds=
5996 if test -n "$RANLIB"; then
5997 case $host_os in
5998 openbsd*)
5999 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6002 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6004 esac
6005 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6008 # Only perform the check for file, if the check method requires it
6009 case $deplibs_check_method in
6010 file_magic*)
6011 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6012 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6013 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6014 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6015 echo $ECHO_N "(cached) $ECHO_C" >&6
6016 else
6017 case $MAGIC_CMD in
6018 [\\/*] | ?:[\\/]*)
6019 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6022 lt_save_MAGIC_CMD="$MAGIC_CMD"
6023 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6024 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6025 for ac_dir in $ac_dummy; do
6026 IFS="$lt_save_ifs"
6027 test -z "$ac_dir" && ac_dir=.
6028 if test -f $ac_dir/${ac_tool_prefix}file; then
6029 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6030 if test -n "$file_magic_test_file"; then
6031 case $deplibs_check_method in
6032 "file_magic "*)
6033 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6034 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6035 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6036 $EGREP "$file_magic_regex" > /dev/null; then
6038 else
6039 cat <<EOF 1>&2
6041 *** Warning: the command libtool uses to detect shared libraries,
6042 *** $file_magic_cmd, produces output that libtool cannot recognize.
6043 *** The result is that libtool may fail to recognize shared libraries
6044 *** as such. This will affect the creation of libtool libraries that
6045 *** depend on shared libraries, but programs linked with such libtool
6046 *** libraries will work regardless of this problem. Nevertheless, you
6047 *** may want to report the problem to your system manager and/or to
6048 *** bug-libtool@gnu.org
6051 fi ;;
6052 esac
6054 break
6056 done
6057 IFS="$lt_save_ifs"
6058 MAGIC_CMD="$lt_save_MAGIC_CMD"
6060 esac
6063 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6064 if test -n "$MAGIC_CMD"; then
6065 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6066 echo "${ECHO_T}$MAGIC_CMD" >&6
6067 else
6068 echo "$as_me:$LINENO: result: no" >&5
6069 echo "${ECHO_T}no" >&6
6072 if test -z "$lt_cv_path_MAGIC_CMD"; then
6073 if test -n "$ac_tool_prefix"; then
6074 echo "$as_me:$LINENO: checking for file" >&5
6075 echo $ECHO_N "checking for file... $ECHO_C" >&6
6076 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6077 echo $ECHO_N "(cached) $ECHO_C" >&6
6078 else
6079 case $MAGIC_CMD in
6080 [\\/*] | ?:[\\/]*)
6081 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6084 lt_save_MAGIC_CMD="$MAGIC_CMD"
6085 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6086 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6087 for ac_dir in $ac_dummy; do
6088 IFS="$lt_save_ifs"
6089 test -z "$ac_dir" && ac_dir=.
6090 if test -f $ac_dir/file; then
6091 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6092 if test -n "$file_magic_test_file"; then
6093 case $deplibs_check_method in
6094 "file_magic "*)
6095 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6096 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6097 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6098 $EGREP "$file_magic_regex" > /dev/null; then
6100 else
6101 cat <<EOF 1>&2
6103 *** Warning: the command libtool uses to detect shared libraries,
6104 *** $file_magic_cmd, produces output that libtool cannot recognize.
6105 *** The result is that libtool may fail to recognize shared libraries
6106 *** as such. This will affect the creation of libtool libraries that
6107 *** depend on shared libraries, but programs linked with such libtool
6108 *** libraries will work regardless of this problem. Nevertheless, you
6109 *** may want to report the problem to your system manager and/or to
6110 *** bug-libtool@gnu.org
6113 fi ;;
6114 esac
6116 break
6118 done
6119 IFS="$lt_save_ifs"
6120 MAGIC_CMD="$lt_save_MAGIC_CMD"
6122 esac
6125 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6126 if test -n "$MAGIC_CMD"; then
6127 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6128 echo "${ECHO_T}$MAGIC_CMD" >&6
6129 else
6130 echo "$as_me:$LINENO: result: no" >&5
6131 echo "${ECHO_T}no" >&6
6134 else
6135 MAGIC_CMD=:
6141 esac
6143 enable_dlopen=no
6144 enable_win32_dll=no
6146 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6147 if test "${enable_libtool_lock+set}" = set; then
6148 enableval="$enable_libtool_lock"
6151 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6154 # Check whether --with-pic or --without-pic was given.
6155 if test "${with_pic+set}" = set; then
6156 withval="$with_pic"
6157 pic_mode="$withval"
6158 else
6159 pic_mode=default
6161 test -z "$pic_mode" && pic_mode=default
6163 # Use C for the default configuration in the libtool script
6164 tagname=
6165 lt_save_CC="$CC"
6166 ac_ext=c
6167 ac_cpp='$CPP $CPPFLAGS'
6168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6173 # Source file extension for C test sources.
6174 ac_ext=c
6176 # Object file extension for compiled C test sources.
6177 objext=o
6178 objext=$objext
6180 # Code to be used in simple compile tests
6181 lt_simple_compile_test_code="int some_variable = 0;\n"
6183 # Code to be used in simple link tests
6184 lt_simple_link_test_code='int main(){return(0);}\n'
6187 # If no C compiler was specified, use CC.
6188 LTCC=${LTCC-"$CC"}
6190 # Allow CC to be a program name with arguments.
6191 compiler=$CC
6195 # Check for any special shared library compilation flags.
6197 lt_prog_cc_shlib=
6198 if test "$GCC" = no; then
6199 case $host_os in
6200 sco3.2v5*)
6201 lt_prog_cc_shlib='-belf'
6203 esac
6205 if test -n "$lt_prog_cc_shlib"; then
6206 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6207 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6208 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6209 else
6210 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6211 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6212 lt_cv_prog_cc_can_build_shared=no
6218 # Check to make sure the static flag actually works.
6220 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6221 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6222 if test "${lt_prog_compiler_static_works+set}" = set; then
6223 echo $ECHO_N "(cached) $ECHO_C" >&6
6224 else
6225 lt_prog_compiler_static_works=no
6226 save_LDFLAGS="$LDFLAGS"
6227 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6228 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6229 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6230 # The compiler can only warn and ignore the option if not recognized
6231 # So say no if there are warnings
6232 if test -s conftest.err; then
6233 # Append any errors to the config.log.
6234 cat conftest.err 1>&5
6235 else
6236 lt_prog_compiler_static_works=yes
6239 $rm conftest*
6240 LDFLAGS="$save_LDFLAGS"
6243 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6244 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6246 if test x"$lt_prog_compiler_static_works" = xyes; then
6248 else
6249 lt_prog_compiler_static=
6255 lt_prog_compiler_no_builtin_flag=
6257 if test "$GCC" = yes; then
6258 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6261 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6262 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6263 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6264 echo $ECHO_N "(cached) $ECHO_C" >&6
6265 else
6266 lt_cv_prog_compiler_rtti_exceptions=no
6267 ac_outfile=conftest.$ac_objext
6268 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6269 lt_compiler_flag="-fno-rtti -fno-exceptions"
6270 # Insert the option either (1) after the last *FLAGS variable, or
6271 # (2) before a word containing "conftest.", or (3) at the end.
6272 # Note that $ac_compile itself does not contain backslashes and begins
6273 # with a dollar sign (not a hyphen), so the echo should work correctly.
6274 # The option is referenced via a variable to avoid confusing sed.
6275 lt_compile=`echo "$ac_compile" | $SED \
6276 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6277 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6278 -e 's:$: $lt_compiler_flag:'`
6279 (eval echo "\"\$as_me:6279: $lt_compile\"" >&5)
6280 (eval "$lt_compile" 2>conftest.err)
6281 ac_status=$?
6282 cat conftest.err >&5
6283 echo "$as_me:6283: \$? = $ac_status" >&5
6284 if (exit $ac_status) && test -s "$ac_outfile"; then
6285 # The compiler can only warn and ignore the option if not recognized
6286 # So say no if there are warnings
6287 if test ! -s conftest.err; then
6288 lt_cv_prog_compiler_rtti_exceptions=yes
6291 $rm conftest*
6294 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6295 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6297 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6298 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6299 else
6305 lt_prog_compiler_wl=
6306 lt_prog_compiler_pic=
6307 lt_prog_compiler_static=
6309 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6310 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6312 if test "$GCC" = yes; then
6313 lt_prog_compiler_wl='-Wl,'
6314 lt_prog_compiler_static='-static'
6316 case $host_os in
6317 aix*)
6318 # All AIX code is PIC.
6319 if test "$host_cpu" = ia64; then
6320 # AIX 5 now supports IA64 processor
6321 lt_prog_compiler_static='-Bstatic'
6325 amigaos*)
6326 # FIXME: we need at least 68020 code to build shared libraries, but
6327 # adding the `-m68020' flag to GCC prevents building anything better,
6328 # like `-m68040'.
6329 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6332 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6333 # PIC is the default for these OSes.
6336 mingw* | pw32* | os2*)
6337 # This hack is so that the source file can tell whether it is being
6338 # built for inclusion in a dll (and should export symbols for example).
6339 lt_prog_compiler_pic='-DDLL_EXPORT'
6342 darwin* | rhapsody*)
6343 # PIC is the default on this platform
6344 # Common symbols not allowed in MH_DYLIB files
6345 lt_prog_compiler_pic='-fno-common'
6348 msdosdjgpp*)
6349 # Just because we use GCC doesn't mean we suddenly get shared libraries
6350 # on systems that don't support them.
6351 lt_prog_compiler_can_build_shared=no
6352 enable_shared=no
6355 sysv4*MP*)
6356 if test -d /usr/nec; then
6357 lt_prog_compiler_pic=-Kconform_pic
6361 hpux*)
6362 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6363 # not for PA HP-UX.
6364 case "$host_cpu" in
6365 hppa*64*|ia64*)
6366 # +Z the default
6369 lt_prog_compiler_pic='-fPIC'
6371 esac
6375 lt_prog_compiler_pic='-fPIC'
6377 esac
6378 else
6379 # PORTME Check for flag to pass linker flags through the system compiler.
6380 case $host_os in
6381 aix*)
6382 lt_prog_compiler_wl='-Wl,'
6383 if test "$host_cpu" = ia64; then
6384 # AIX 5 now supports IA64 processor
6385 lt_prog_compiler_static='-Bstatic'
6386 else
6387 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6391 mingw* | pw32* | os2*)
6392 # This hack is so that the source file can tell whether it is being
6393 # built for inclusion in a dll (and should export symbols for example).
6394 lt_prog_compiler_pic='-DDLL_EXPORT'
6397 hpux9* | hpux10* | hpux11*)
6398 lt_prog_compiler_wl='-Wl,'
6399 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6400 # not for PA HP-UX.
6401 case "$host_cpu" in
6402 hppa*64*|ia64*)
6403 # +Z the default
6406 lt_prog_compiler_pic='+Z'
6408 esac
6409 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6410 lt_prog_compiler_static='${wl}-a ${wl}archive'
6413 irix5* | irix6* | nonstopux*)
6414 lt_prog_compiler_wl='-Wl,'
6415 # PIC (with -KPIC) is the default.
6416 lt_prog_compiler_static='-non_shared'
6419 newsos6)
6420 lt_prog_compiler_pic='-KPIC'
6421 lt_prog_compiler_static='-Bstatic'
6424 linux*)
6425 case $CC in
6426 icc* | ecc*)
6427 lt_prog_compiler_wl='-Wl,'
6428 lt_prog_compiler_pic='-KPIC'
6429 lt_prog_compiler_static='-static'
6431 ccc*)
6432 lt_prog_compiler_wl='-Wl,'
6433 # All Alpha code is PIC.
6434 lt_prog_compiler_static='-non_shared'
6436 esac
6439 osf3* | osf4* | osf5*)
6440 lt_prog_compiler_wl='-Wl,'
6441 # All OSF/1 code is PIC.
6442 lt_prog_compiler_static='-non_shared'
6445 sco3.2v5*)
6446 lt_prog_compiler_pic='-Kpic'
6447 lt_prog_compiler_static='-dn'
6450 solaris*)
6451 lt_prog_compiler_wl='-Wl,'
6452 lt_prog_compiler_pic='-KPIC'
6453 lt_prog_compiler_static='-Bstatic'
6456 sunos4*)
6457 lt_prog_compiler_wl='-Qoption ld '
6458 lt_prog_compiler_pic='-PIC'
6459 lt_prog_compiler_static='-Bstatic'
6462 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6463 lt_prog_compiler_wl='-Wl,'
6464 lt_prog_compiler_pic='-KPIC'
6465 lt_prog_compiler_static='-Bstatic'
6468 sysv4*MP*)
6469 if test -d /usr/nec ;then
6470 lt_prog_compiler_pic='-Kconform_pic'
6471 lt_prog_compiler_static='-Bstatic'
6475 uts4*)
6476 lt_prog_compiler_pic='-pic'
6477 lt_prog_compiler_static='-Bstatic'
6481 lt_prog_compiler_can_build_shared=no
6483 esac
6486 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6487 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6490 # Check to make sure the PIC flag actually works.
6492 if test -n "$lt_prog_compiler_pic"; then
6494 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6495 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6496 if test "${lt_prog_compiler_pic_works+set}" = set; then
6497 echo $ECHO_N "(cached) $ECHO_C" >&6
6498 else
6499 lt_prog_compiler_pic_works=no
6500 ac_outfile=conftest.$ac_objext
6501 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6502 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6503 # Insert the option either (1) after the last *FLAGS variable, or
6504 # (2) before a word containing "conftest.", or (3) at the end.
6505 # Note that $ac_compile itself does not contain backslashes and begins
6506 # with a dollar sign (not a hyphen), so the echo should work correctly.
6507 # The option is referenced via a variable to avoid confusing sed.
6508 lt_compile=`echo "$ac_compile" | $SED \
6509 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6510 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6511 -e 's:$: $lt_compiler_flag:'`
6512 (eval echo "\"\$as_me:6512: $lt_compile\"" >&5)
6513 (eval "$lt_compile" 2>conftest.err)
6514 ac_status=$?
6515 cat conftest.err >&5
6516 echo "$as_me:6516: \$? = $ac_status" >&5
6517 if (exit $ac_status) && test -s "$ac_outfile"; then
6518 # The compiler can only warn and ignore the option if not recognized
6519 # So say no if there are warnings
6520 if test ! -s conftest.err; then
6521 lt_prog_compiler_pic_works=yes
6524 $rm conftest*
6527 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6528 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6530 if test x"$lt_prog_compiler_pic_works" = xyes; then
6531 case $lt_prog_compiler_pic in
6532 "" | " "*) ;;
6533 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6534 esac
6535 else
6536 lt_prog_compiler_pic=
6537 lt_prog_compiler_can_build_shared=no
6541 case "$host_os" in
6542 # For platforms which do not support PIC, -DPIC is meaningless:
6543 *djgpp*)
6544 lt_prog_compiler_pic=
6547 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6549 esac
6551 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6552 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6553 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6554 echo $ECHO_N "(cached) $ECHO_C" >&6
6555 else
6556 lt_cv_prog_compiler_c_o=no
6557 $rm -r conftest 2>/dev/null
6558 mkdir conftest
6559 cd conftest
6560 mkdir out
6561 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6563 lt_compiler_flag="-o out/conftest2.$ac_objext"
6564 # Insert the option either (1) after the last *FLAGS variable, or
6565 # (2) before a word containing "conftest.", or (3) at the end.
6566 # Note that $ac_compile itself does not contain backslashes and begins
6567 # with a dollar sign (not a hyphen), so the echo should work correctly.
6568 lt_compile=`echo "$ac_compile" | $SED \
6569 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6570 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6571 -e 's:$: $lt_compiler_flag:'`
6572 (eval echo "\"\$as_me:6572: $lt_compile\"" >&5)
6573 (eval "$lt_compile" 2>out/conftest.err)
6574 ac_status=$?
6575 cat out/conftest.err >&5
6576 echo "$as_me:6576: \$? = $ac_status" >&5
6577 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6578 then
6579 # The compiler can only warn and ignore the option if not recognized
6580 # So say no if there are warnings
6581 if test ! -s out/conftest.err; then
6582 lt_cv_prog_compiler_c_o=yes
6585 chmod u+w .
6586 $rm conftest*
6587 # SGI C++ compiler will create directory out/ii_files/ for
6588 # template instantiation
6589 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6590 $rm out/* && rmdir out
6591 cd ..
6592 rmdir conftest
6593 $rm conftest*
6596 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6597 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6600 hard_links="nottested"
6601 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6602 # do not overwrite the value of need_locks provided by the user
6603 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6604 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6605 hard_links=yes
6606 $rm conftest*
6607 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6608 touch conftest.a
6609 ln conftest.a conftest.b 2>&5 || hard_links=no
6610 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6611 echo "$as_me:$LINENO: result: $hard_links" >&5
6612 echo "${ECHO_T}$hard_links" >&6
6613 if test "$hard_links" = no; then
6614 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6615 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6616 need_locks=warn
6618 else
6619 need_locks=no
6622 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6623 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6625 runpath_var=
6626 allow_undefined_flag=
6627 enable_shared_with_static_runtimes=no
6628 archive_cmds=
6629 archive_expsym_cmds=
6630 old_archive_From_new_cmds=
6631 old_archive_from_expsyms_cmds=
6632 export_dynamic_flag_spec=
6633 whole_archive_flag_spec=
6634 thread_safe_flag_spec=
6635 hardcode_libdir_flag_spec=
6636 hardcode_libdir_flag_spec_ld=
6637 hardcode_libdir_separator=
6638 hardcode_direct=no
6639 hardcode_minus_L=no
6640 hardcode_shlibpath_var=unsupported
6641 link_all_deplibs=unknown
6642 hardcode_automatic=no
6643 module_cmds=
6644 module_expsym_cmds=
6645 always_export_symbols=no
6646 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6647 # include_expsyms should be a list of space-separated symbols to be *always*
6648 # included in the symbol list
6649 include_expsyms=
6650 # exclude_expsyms can be an extended regexp of symbols to exclude
6651 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6652 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6653 # as well as any symbol that contains `d'.
6654 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6655 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6656 # platforms (ab)use it in PIC code, but their linkers get confused if
6657 # the symbol is explicitly referenced. Since portable code cannot
6658 # rely on this symbol name, it's probably fine to never include it in
6659 # preloaded symbol tables.
6660 extract_expsyms_cmds=
6662 case $host_os in
6663 cygwin* | mingw* | pw32*)
6664 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6665 # When not using gcc, we currently assume that we are using
6666 # Microsoft Visual C++.
6667 if test "$GCC" != yes; then
6668 with_gnu_ld=no
6671 openbsd*)
6672 with_gnu_ld=no
6674 esac
6676 ld_shlibs=yes
6677 if test "$with_gnu_ld" = yes; then
6678 # If archive_cmds runs LD, not CC, wlarc should be empty
6679 wlarc='${wl}'
6681 # See if GNU ld supports shared libraries.
6682 case $host_os in
6683 aix3* | aix4* | aix5*)
6684 # On AIX/PPC, the GNU linker is very broken
6685 if test "$host_cpu" != ia64; then
6686 ld_shlibs=no
6687 cat <<EOF 1>&2
6689 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6690 *** to be unable to reliably create shared libraries on AIX.
6691 *** Therefore, libtool is disabling shared libraries support. If you
6692 *** really care for shared libraries, you may want to modify your PATH
6693 *** so that a non-GNU linker is found, and then restart.
6699 amigaos*)
6700 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)'
6701 hardcode_libdir_flag_spec='-L$libdir'
6702 hardcode_minus_L=yes
6704 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6705 # that the semantics of dynamic libraries on AmigaOS, at least up
6706 # to version 4, is to share data among multiple programs linked
6707 # with the same dynamic library. Since this doesn't match the
6708 # behavior of shared libraries on other platforms, we can't use
6709 # them.
6710 ld_shlibs=no
6713 beos*)
6714 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6715 allow_undefined_flag=unsupported
6716 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6717 # support --undefined. This deserves some investigation. FIXME
6718 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6719 else
6720 ld_shlibs=no
6724 cygwin* | mingw* | pw32*)
6725 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6726 # as there is no search path for DLLs.
6727 hardcode_libdir_flag_spec='-L$libdir'
6728 allow_undefined_flag=unsupported
6729 always_export_symbols=no
6730 enable_shared_with_static_runtimes=yes
6731 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6733 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6734 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6735 # If the export-symbols file already is a .def file (1st line
6736 # is EXPORTS), use it as is; otherwise, prepend...
6737 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6738 cp $export_symbols $output_objdir/$soname.def;
6739 else
6740 echo EXPORTS > $output_objdir/$soname.def;
6741 cat $export_symbols >> $output_objdir/$soname.def;
6743 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6744 else
6745 ld_shlibs=no
6749 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6750 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6751 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6752 wlarc=
6753 else
6754 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6755 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6759 solaris* | sysv5*)
6760 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6761 ld_shlibs=no
6762 cat <<EOF 1>&2
6764 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6765 *** create shared libraries on Solaris systems. Therefore, libtool
6766 *** is disabling shared libraries support. We urge you to upgrade GNU
6767 *** binutils to release 2.9.1 or newer. Another option is to modify
6768 *** your PATH or compiler configuration so that the native linker is
6769 *** used, and then restart.
6772 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6773 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6774 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6775 else
6776 ld_shlibs=no
6780 sunos4*)
6781 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6782 wlarc=
6783 hardcode_direct=yes
6784 hardcode_shlibpath_var=no
6787 linux*)
6788 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6789 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6790 archive_cmds="$tmp_archive_cmds"
6791 supports_anon_versioning=no
6792 case `$LD -v 2>/dev/null` in
6793 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6794 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6795 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6796 *\ 2.11.*) ;; # other 2.11 versions
6797 *) supports_anon_versioning=yes ;;
6798 esac
6799 if test $supports_anon_versioning = yes; then
6800 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6801 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6802 $echo "local: *; };" >> $output_objdir/$libname.ver~
6803 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6804 else
6805 archive_expsym_cmds="$tmp_archive_cmds"
6807 link_all_deplibs=no
6808 else
6809 ld_shlibs=no
6814 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6815 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6816 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6817 else
6818 ld_shlibs=no
6821 esac
6823 if test "$ld_shlibs" = yes; then
6824 runpath_var=LD_RUN_PATH
6825 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6826 export_dynamic_flag_spec='${wl}--export-dynamic'
6827 # ancient GNU ld didn't support --whole-archive et. al.
6828 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6829 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6830 else
6831 whole_archive_flag_spec=
6834 else
6835 # PORTME fill in a description of your system's linker (not GNU ld)
6836 case $host_os in
6837 aix3*)
6838 allow_undefined_flag=unsupported
6839 always_export_symbols=yes
6840 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'
6841 # Note: this linker hardcodes the directories in LIBPATH if there
6842 # are no directories specified by -L.
6843 hardcode_minus_L=yes
6844 if test "$GCC" = yes && test -z "$link_static_flag"; then
6845 # Neither direct hardcoding nor static linking is supported with a
6846 # broken collect2.
6847 hardcode_direct=unsupported
6851 aix4* | aix5*)
6852 if test "$host_cpu" = ia64; then
6853 # On IA64, the linker does run time linking by default, so we don't
6854 # have to do anything special.
6855 aix_use_runtimelinking=no
6856 exp_sym_flag='-Bexport'
6857 no_entry_flag=""
6858 else
6859 # If we're using GNU nm, then we don't want the "-C" option.
6860 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6861 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6862 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'
6863 else
6864 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'
6866 aix_use_runtimelinking=no
6868 # Test if we are trying to use run time linking or normal
6869 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6870 # need to do runtime linking.
6871 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6872 for ld_flag in $LDFLAGS; do
6873 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6874 aix_use_runtimelinking=yes
6875 break
6877 done
6878 esac
6880 exp_sym_flag='-bexport'
6881 no_entry_flag='-bnoentry'
6884 # When large executables or shared objects are built, AIX ld can
6885 # have problems creating the table of contents. If linking a library
6886 # or program results in "error TOC overflow" add -mminimal-toc to
6887 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6888 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6890 archive_cmds=''
6891 hardcode_direct=yes
6892 hardcode_libdir_separator=':'
6893 link_all_deplibs=yes
6895 if test "$GCC" = yes; then
6896 case $host_os in aix4.012|aix4.012.*)
6897 # We only want to do this on AIX 4.2 and lower, the check
6898 # below for broken collect2 doesn't work under 4.3+
6899 collect2name=`${CC} -print-prog-name=collect2`
6900 if test -f "$collect2name" && \
6901 strings "$collect2name" | grep resolve_lib_name >/dev/null
6902 then
6903 # We have reworked collect2
6904 hardcode_direct=yes
6905 else
6906 # We have old collect2
6907 hardcode_direct=unsupported
6908 # It fails to find uninstalled libraries when the uninstalled
6909 # path is not listed in the libpath. Setting hardcode_minus_L
6910 # to unsupported forces relinking
6911 hardcode_minus_L=yes
6912 hardcode_libdir_flag_spec='-L$libdir'
6913 hardcode_libdir_separator=
6915 esac
6916 shared_flag='-shared'
6917 else
6918 # not using gcc
6919 if test "$host_cpu" = ia64; then
6920 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6921 # chokes on -Wl,-G. The following line is correct:
6922 shared_flag='-G'
6923 else
6924 if test "$aix_use_runtimelinking" = yes; then
6925 shared_flag='${wl}-G'
6926 else
6927 shared_flag='${wl}-bM:SRE'
6932 # It seems that -bexpall does not export symbols beginning with
6933 # underscore (_), so it is better to generate a list of symbols to export.
6934 always_export_symbols=yes
6935 if test "$aix_use_runtimelinking" = yes; then
6936 # Warning - without using the other runtime loading flags (-brtl),
6937 # -berok will link without error, but may produce a broken library.
6938 allow_undefined_flag='-berok'
6939 # Determine the default libpath from the value encoded in an empty executable.
6940 cat >conftest.$ac_ext <<_ACEOF
6941 /* confdefs.h. */
6942 _ACEOF
6943 cat confdefs.h >>conftest.$ac_ext
6944 cat >>conftest.$ac_ext <<_ACEOF
6945 /* end confdefs.h. */
6948 main ()
6952 return 0;
6954 _ACEOF
6955 rm -f conftest.$ac_objext conftest$ac_exeext
6956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6957 (eval $ac_link) 2>conftest.er1
6958 ac_status=$?
6959 grep -v '^ *+' conftest.er1 >conftest.err
6960 rm -f conftest.er1
6961 cat conftest.err >&5
6962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963 (exit $ac_status); } &&
6964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6966 (eval $ac_try) 2>&5
6967 ac_status=$?
6968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969 (exit $ac_status); }; } &&
6970 { ac_try='test -s conftest$ac_exeext'
6971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6972 (eval $ac_try) 2>&5
6973 ac_status=$?
6974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); }; }; then
6977 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6979 # Check for a 64-bit object if we didn't find anything.
6980 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6981 }'`; fi
6982 else
6983 echo "$as_me: failed program was:" >&5
6984 sed 's/^/| /' conftest.$ac_ext >&5
6987 rm -f conftest.err conftest.$ac_objext \
6988 conftest$ac_exeext conftest.$ac_ext
6989 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6991 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6992 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6993 else
6994 if test "$host_cpu" = ia64; then
6995 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6996 allow_undefined_flag="-z nodefs"
6997 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6998 else
6999 # Determine the default libpath from the value encoded in an empty executable.
7000 cat >conftest.$ac_ext <<_ACEOF
7001 /* confdefs.h. */
7002 _ACEOF
7003 cat confdefs.h >>conftest.$ac_ext
7004 cat >>conftest.$ac_ext <<_ACEOF
7005 /* end confdefs.h. */
7008 main ()
7012 return 0;
7014 _ACEOF
7015 rm -f conftest.$ac_objext conftest$ac_exeext
7016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7017 (eval $ac_link) 2>conftest.er1
7018 ac_status=$?
7019 grep -v '^ *+' conftest.er1 >conftest.err
7020 rm -f conftest.er1
7021 cat conftest.err >&5
7022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023 (exit $ac_status); } &&
7024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7026 (eval $ac_try) 2>&5
7027 ac_status=$?
7028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029 (exit $ac_status); }; } &&
7030 { ac_try='test -s conftest$ac_exeext'
7031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7032 (eval $ac_try) 2>&5
7033 ac_status=$?
7034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035 (exit $ac_status); }; }; then
7037 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7039 # Check for a 64-bit object if we didn't find anything.
7040 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7041 }'`; fi
7042 else
7043 echo "$as_me: failed program was:" >&5
7044 sed 's/^/| /' conftest.$ac_ext >&5
7047 rm -f conftest.err conftest.$ac_objext \
7048 conftest$ac_exeext conftest.$ac_ext
7049 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7051 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7052 # Warning - without using the other run time loading flags,
7053 # -berok will link without error, but may produce a broken library.
7054 no_undefined_flag=' ${wl}-bernotok'
7055 allow_undefined_flag=' ${wl}-berok'
7056 # -bexpall does not export symbols beginning with underscore (_)
7057 always_export_symbols=yes
7058 # Exported symbols can be pulled into shared objects from archives
7059 whole_archive_flag_spec=' '
7060 archive_cmds_need_lc=yes
7061 # This is similar to how AIX traditionally builds it's shared libraries.
7062 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7067 amigaos*)
7068 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)'
7069 hardcode_libdir_flag_spec='-L$libdir'
7070 hardcode_minus_L=yes
7071 # see comment about different semantics on the GNU ld section
7072 ld_shlibs=no
7075 bsdi4*)
7076 export_dynamic_flag_spec=-rdynamic
7079 cygwin* | mingw* | pw32*)
7080 # When not using gcc, we currently assume that we are using
7081 # Microsoft Visual C++.
7082 # hardcode_libdir_flag_spec is actually meaningless, as there is
7083 # no search path for DLLs.
7084 hardcode_libdir_flag_spec=' '
7085 allow_undefined_flag=unsupported
7086 # Tell ltmain to make .lib files, not .a files.
7087 libext=lib
7088 # Tell ltmain to make .dll files, not .so files.
7089 shrext_cmds=".dll"
7090 # FIXME: Setting linknames here is a bad hack.
7091 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7092 # The linker will automatically build a .lib file if we build a DLL.
7093 old_archive_From_new_cmds='true'
7094 # FIXME: Should let the user specify the lib program.
7095 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7096 fix_srcfile_path='`cygpath -w "$srcfile"`'
7097 enable_shared_with_static_runtimes=yes
7100 darwin* | rhapsody*)
7101 if test "$GXX" = yes ; then
7102 archive_cmds_need_lc=no
7103 case "$host_os" in
7104 rhapsody* | darwin1.[012])
7105 allow_undefined_flag='-undefined suppress'
7107 *) # Darwin 1.3 on
7108 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7109 allow_undefined_flag='-flat_namespace -undefined suppress'
7110 else
7111 case ${MACOSX_DEPLOYMENT_TARGET} in
7112 10.[012])
7113 allow_undefined_flag='-flat_namespace -undefined suppress'
7115 10.*)
7116 allow_undefined_flag='-undefined dynamic_lookup'
7118 esac
7121 esac
7122 lt_int_apple_cc_single_mod=no
7123 output_verbose_link_cmd='echo'
7124 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7125 lt_int_apple_cc_single_mod=yes
7127 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7128 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7129 else
7130 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7132 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7133 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7134 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7135 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7136 else
7137 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7139 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -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}'
7140 hardcode_direct=no
7141 hardcode_automatic=yes
7142 hardcode_shlibpath_var=unsupported
7143 whole_archive_flag_spec='-all_load $convenience'
7144 link_all_deplibs=yes
7145 else
7146 ld_shlibs=no
7150 dgux*)
7151 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7152 hardcode_libdir_flag_spec='-L$libdir'
7153 hardcode_shlibpath_var=no
7156 freebsd1*)
7157 ld_shlibs=no
7160 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7161 # support. Future versions do this automatically, but an explicit c++rt0.o
7162 # does not break anything, and helps significantly (at the cost of a little
7163 # extra space).
7164 freebsd2.2*)
7165 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7166 hardcode_libdir_flag_spec='-R$libdir'
7167 hardcode_direct=yes
7168 hardcode_shlibpath_var=no
7171 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7172 freebsd2*)
7173 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7174 hardcode_direct=yes
7175 hardcode_minus_L=yes
7176 hardcode_shlibpath_var=no
7179 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7180 freebsd* | kfreebsd*-gnu)
7181 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7182 hardcode_libdir_flag_spec='-R$libdir'
7183 hardcode_direct=yes
7184 hardcode_shlibpath_var=no
7187 hpux9*)
7188 if test "$GCC" = yes; then
7189 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'
7190 else
7191 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'
7193 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7194 hardcode_libdir_separator=:
7195 hardcode_direct=yes
7197 # hardcode_minus_L: Not really in the search PATH,
7198 # but as the default location of the library.
7199 hardcode_minus_L=yes
7200 export_dynamic_flag_spec='${wl}-E'
7203 hpux10* | hpux11*)
7204 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7205 case "$host_cpu" in
7206 hppa*64*|ia64*)
7207 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7210 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7212 esac
7213 else
7214 case "$host_cpu" in
7215 hppa*64*|ia64*)
7216 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7219 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7221 esac
7223 if test "$with_gnu_ld" = no; then
7224 case "$host_cpu" in
7225 hppa*64*)
7226 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7227 hardcode_libdir_flag_spec_ld='+b $libdir'
7228 hardcode_libdir_separator=:
7229 hardcode_direct=no
7230 hardcode_shlibpath_var=no
7232 ia64*)
7233 hardcode_libdir_flag_spec='-L$libdir'
7234 hardcode_direct=no
7235 hardcode_shlibpath_var=no
7237 # hardcode_minus_L: Not really in the search PATH,
7238 # but as the default location of the library.
7239 hardcode_minus_L=yes
7242 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7243 hardcode_libdir_separator=:
7244 hardcode_direct=yes
7245 export_dynamic_flag_spec='${wl}-E'
7247 # hardcode_minus_L: Not really in the search PATH,
7248 # but as the default location of the library.
7249 hardcode_minus_L=yes
7251 esac
7255 irix5* | irix6* | nonstopux*)
7256 if test "$GCC" = yes; then
7257 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7258 else
7259 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7260 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7262 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7263 hardcode_libdir_separator=:
7264 link_all_deplibs=yes
7267 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7268 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7269 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7270 else
7271 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7273 hardcode_libdir_flag_spec='-R$libdir'
7274 hardcode_direct=yes
7275 hardcode_shlibpath_var=no
7278 newsos6)
7279 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7280 hardcode_direct=yes
7281 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7282 hardcode_libdir_separator=:
7283 hardcode_shlibpath_var=no
7286 openbsd*)
7287 hardcode_direct=yes
7288 hardcode_shlibpath_var=no
7289 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7290 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7291 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7292 export_dynamic_flag_spec='${wl}-E'
7293 else
7294 case $host_os in
7295 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7296 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7297 hardcode_libdir_flag_spec='-R$libdir'
7300 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7301 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7303 esac
7307 os2*)
7308 hardcode_libdir_flag_spec='-L$libdir'
7309 hardcode_minus_L=yes
7310 allow_undefined_flag=unsupported
7311 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'
7312 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7315 osf3*)
7316 if test "$GCC" = yes; then
7317 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7318 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7319 else
7320 allow_undefined_flag=' -expect_unresolved \*'
7321 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7323 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7324 hardcode_libdir_separator=:
7327 osf4* | osf5*) # as osf3* with the addition of -msym flag
7328 if test "$GCC" = yes; then
7329 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7330 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7331 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7332 else
7333 allow_undefined_flag=' -expect_unresolved \*'
7334 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7335 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7336 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7338 # Both c and cxx compiler support -rpath directly
7339 hardcode_libdir_flag_spec='-rpath $libdir'
7341 hardcode_libdir_separator=:
7344 sco3.2v5*)
7345 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7346 hardcode_shlibpath_var=no
7347 export_dynamic_flag_spec='${wl}-Bexport'
7348 runpath_var=LD_RUN_PATH
7349 hardcode_runpath_var=yes
7352 solaris*)
7353 no_undefined_flag=' -z text'
7354 if test "$GCC" = yes; then
7355 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7356 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7357 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7358 else
7359 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7360 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7361 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7363 hardcode_libdir_flag_spec='-R$libdir'
7364 hardcode_shlibpath_var=no
7365 case $host_os in
7366 solaris2.[0-5] | solaris2.[0-5].*) ;;
7367 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7368 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7369 esac
7370 link_all_deplibs=yes
7373 sunos4*)
7374 if test "x$host_vendor" = xsequent; then
7375 # Use $CC to link under sequent, because it throws in some extra .o
7376 # files that make .init and .fini sections work.
7377 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7378 else
7379 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7381 hardcode_libdir_flag_spec='-L$libdir'
7382 hardcode_direct=yes
7383 hardcode_minus_L=yes
7384 hardcode_shlibpath_var=no
7387 sysv4)
7388 case $host_vendor in
7389 sni)
7390 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7391 hardcode_direct=yes # is this really true???
7393 siemens)
7394 ## LD is ld it makes a PLAMLIB
7395 ## CC just makes a GrossModule.
7396 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7397 reload_cmds='$CC -r -o $output$reload_objs'
7398 hardcode_direct=no
7400 motorola)
7401 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7402 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7404 esac
7405 runpath_var='LD_RUN_PATH'
7406 hardcode_shlibpath_var=no
7409 sysv4.3*)
7410 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7411 hardcode_shlibpath_var=no
7412 export_dynamic_flag_spec='-Bexport'
7415 sysv4*MP*)
7416 if test -d /usr/nec; then
7417 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7418 hardcode_shlibpath_var=no
7419 runpath_var=LD_RUN_PATH
7420 hardcode_runpath_var=yes
7421 ld_shlibs=yes
7425 sysv4.2uw2*)
7426 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7427 hardcode_direct=yes
7428 hardcode_minus_L=no
7429 hardcode_shlibpath_var=no
7430 hardcode_runpath_var=yes
7431 runpath_var=LD_RUN_PATH
7434 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7435 no_undefined_flag='${wl}-z ${wl}text'
7436 if test "$GCC" = yes; then
7437 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7438 else
7439 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7441 runpath_var='LD_RUN_PATH'
7442 hardcode_shlibpath_var=no
7445 sysv5*)
7446 no_undefined_flag=' -z text'
7447 # $CC -shared without GNU ld will not create a library from C++
7448 # object files and a static libstdc++, better avoid it by now
7449 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7450 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7451 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7452 hardcode_libdir_flag_spec=
7453 hardcode_shlibpath_var=no
7454 runpath_var='LD_RUN_PATH'
7457 uts4*)
7458 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7459 hardcode_libdir_flag_spec='-L$libdir'
7460 hardcode_shlibpath_var=no
7464 ld_shlibs=no
7466 esac
7469 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7470 echo "${ECHO_T}$ld_shlibs" >&6
7471 test "$ld_shlibs" = no && can_build_shared=no
7473 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7474 if test "$GCC" = yes; then
7475 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7479 # Do we need to explicitly link libc?
7481 case "x$archive_cmds_need_lc" in
7482 x|xyes)
7483 # Assume -lc should be added
7484 archive_cmds_need_lc=yes
7486 if test "$enable_shared" = yes && test "$GCC" = yes; then
7487 case $archive_cmds in
7488 *'~'*)
7489 # FIXME: we may have to deal with multi-command sequences.
7491 '$CC '*)
7492 # Test whether the compiler implicitly links with -lc since on some
7493 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7494 # to ld, don't add -lc before -lgcc.
7495 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7496 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7497 $rm conftest*
7498 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7501 (eval $ac_compile) 2>&5
7502 ac_status=$?
7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504 (exit $ac_status); } 2>conftest.err; then
7505 soname=conftest
7506 lib=conftest
7507 libobjs=conftest.$ac_objext
7508 deplibs=
7509 wl=$lt_prog_compiler_wl
7510 compiler_flags=-v
7511 linker_flags=-v
7512 verstring=
7513 output_objdir=.
7514 libname=conftest
7515 lt_save_allow_undefined_flag=$allow_undefined_flag
7516 allow_undefined_flag=
7517 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7518 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7519 ac_status=$?
7520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521 (exit $ac_status); }
7522 then
7523 archive_cmds_need_lc=no
7524 else
7525 archive_cmds_need_lc=yes
7527 allow_undefined_flag=$lt_save_allow_undefined_flag
7528 else
7529 cat conftest.err 1>&5
7531 $rm conftest*
7532 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7533 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7535 esac
7538 esac
7540 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7541 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7542 library_names_spec=
7543 libname_spec='lib$name'
7544 soname_spec=
7545 shrext_cmds=".so"
7546 postinstall_cmds=
7547 postuninstall_cmds=
7548 finish_cmds=
7549 finish_eval=
7550 shlibpath_var=
7551 shlibpath_overrides_runpath=unknown
7552 version_type=none
7553 dynamic_linker="$host_os ld.so"
7554 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7555 if test "$GCC" = yes; then
7556 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7557 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7558 # if the path contains ";" then we assume it to be the separator
7559 # otherwise default to the standard path separator (i.e. ":") - it is
7560 # assumed that no part of a normal pathname contains ";" but that should
7561 # okay in the real world where ";" in dirpaths is itself problematic.
7562 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7563 else
7564 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7566 else
7567 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7569 need_lib_prefix=unknown
7570 hardcode_into_libs=no
7572 # when you set need_version to no, make sure it does not cause -set_version
7573 # flags to be left without arguments
7574 need_version=unknown
7576 case $host_os in
7577 aix3*)
7578 version_type=linux
7579 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7580 shlibpath_var=LIBPATH
7582 # AIX 3 has no versioning support, so we append a major version to the name.
7583 soname_spec='${libname}${release}${shared_ext}$major'
7586 aix4* | aix5*)
7587 version_type=linux
7588 need_lib_prefix=no
7589 need_version=no
7590 hardcode_into_libs=yes
7591 if test "$host_cpu" = ia64; then
7592 # AIX 5 supports IA64
7593 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7594 shlibpath_var=LD_LIBRARY_PATH
7595 else
7596 # With GCC up to 2.95.x, collect2 would create an import file
7597 # for dependence libraries. The import file would start with
7598 # the line `#! .'. This would cause the generated library to
7599 # depend on `.', always an invalid library. This was fixed in
7600 # development snapshots of GCC prior to 3.0.
7601 case $host_os in
7602 aix4 | aix4.[01] | aix4.[01].*)
7603 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7604 echo ' yes '
7605 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7607 else
7608 can_build_shared=no
7611 esac
7612 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7613 # soname into executable. Probably we can add versioning support to
7614 # collect2, so additional links can be useful in future.
7615 if test "$aix_use_runtimelinking" = yes; then
7616 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7617 # instead of lib<name>.a to let people know that these are not
7618 # typical AIX shared libraries.
7619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7620 else
7621 # We preserve .a as extension for shared libraries through AIX4.2
7622 # and later when we are not doing run time linking.
7623 library_names_spec='${libname}${release}.a $libname.a'
7624 soname_spec='${libname}${release}${shared_ext}$major'
7626 shlibpath_var=LIBPATH
7630 amigaos*)
7631 library_names_spec='$libname.ixlibrary $libname.a'
7632 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7633 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'
7636 beos*)
7637 library_names_spec='${libname}${shared_ext}'
7638 dynamic_linker="$host_os ld.so"
7639 shlibpath_var=LIBRARY_PATH
7642 bsdi4*)
7643 version_type=linux
7644 need_version=no
7645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7646 soname_spec='${libname}${release}${shared_ext}$major'
7647 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7648 shlibpath_var=LD_LIBRARY_PATH
7649 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7650 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7651 # the default ld.so.conf also contains /usr/contrib/lib and
7652 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7653 # libtool to hard-code these into programs
7656 cygwin* | mingw* | pw32*)
7657 version_type=windows
7658 shrext_cmds=".dll"
7659 need_version=no
7660 need_lib_prefix=no
7662 case $GCC,$host_os in
7663 yes,cygwin* | yes,mingw* | yes,pw32*)
7664 library_names_spec='$libname.dll.a'
7665 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7666 postinstall_cmds='base_file=`basename \${file}`~
7667 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7668 dldir=$destdir/`dirname \$dlpath`~
7669 test -d \$dldir || mkdir -p \$dldir~
7670 $install_prog $dir/$dlname \$dldir/$dlname'
7671 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7672 dlpath=$dir/\$dldll~
7673 $rm \$dlpath'
7674 shlibpath_overrides_runpath=yes
7676 case $host_os in
7677 cygwin*)
7678 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7679 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7680 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7682 mingw*)
7683 # MinGW DLLs use traditional 'lib' prefix
7684 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7685 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7686 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7687 # It is most probably a Windows format PATH printed by
7688 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7689 # path with ; separators, and with drive letters. We can handle the
7690 # drive letters (cygwin fileutils understands them), so leave them,
7691 # especially as we might pass files found there to a mingw objdump,
7692 # which wouldn't understand a cygwinified path. Ahh.
7693 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7694 else
7695 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7698 pw32*)
7699 # pw32 DLLs use 'pw' prefix rather than 'lib'
7700 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7702 esac
7706 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7708 esac
7709 dynamic_linker='Win32 ld.exe'
7710 # FIXME: first we should search . and the directory the executable is in
7711 shlibpath_var=PATH
7714 darwin* | rhapsody*)
7715 dynamic_linker="$host_os dyld"
7716 version_type=darwin
7717 need_lib_prefix=no
7718 need_version=no
7719 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7720 soname_spec='${libname}${release}${major}$shared_ext'
7721 shlibpath_overrides_runpath=yes
7722 shlibpath_var=DYLD_LIBRARY_PATH
7723 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7724 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7725 if test "$GCC" = yes; then
7726 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
7727 else
7728 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7730 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7733 dgux*)
7734 version_type=linux
7735 need_lib_prefix=no
7736 need_version=no
7737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7738 soname_spec='${libname}${release}${shared_ext}$major'
7739 shlibpath_var=LD_LIBRARY_PATH
7742 freebsd1*)
7743 dynamic_linker=no
7746 kfreebsd*-gnu)
7747 version_type=linux
7748 need_lib_prefix=no
7749 need_version=no
7750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7751 soname_spec='${libname}${release}${shared_ext}$major'
7752 shlibpath_var=LD_LIBRARY_PATH
7753 shlibpath_overrides_runpath=no
7754 hardcode_into_libs=yes
7755 dynamic_linker='GNU ld.so'
7758 freebsd*)
7759 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7760 version_type=freebsd-$objformat
7761 case $version_type in
7762 freebsd-elf*)
7763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7764 need_version=no
7765 need_lib_prefix=no
7767 freebsd-*)
7768 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7769 need_version=yes
7771 esac
7772 shlibpath_var=LD_LIBRARY_PATH
7773 case $host_os in
7774 freebsd2*)
7775 shlibpath_overrides_runpath=yes
7777 freebsd3.01* | freebsdelf3.01*)
7778 shlibpath_overrides_runpath=yes
7779 hardcode_into_libs=yes
7781 *) # from 3.2 on
7782 shlibpath_overrides_runpath=no
7783 hardcode_into_libs=yes
7785 esac
7788 gnu*)
7789 version_type=linux
7790 need_lib_prefix=no
7791 need_version=no
7792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7793 soname_spec='${libname}${release}${shared_ext}$major'
7794 shlibpath_var=LD_LIBRARY_PATH
7795 hardcode_into_libs=yes
7798 hpux9* | hpux10* | hpux11*)
7799 # Give a soname corresponding to the major version so that dld.sl refuses to
7800 # link against other versions.
7801 version_type=sunos
7802 need_lib_prefix=no
7803 need_version=no
7804 case "$host_cpu" in
7805 ia64*)
7806 shrext_cmds='.so'
7807 hardcode_into_libs=yes
7808 dynamic_linker="$host_os dld.so"
7809 shlibpath_var=LD_LIBRARY_PATH
7810 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7812 soname_spec='${libname}${release}${shared_ext}$major'
7813 if test "X$HPUX_IA64_MODE" = X32; then
7814 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7815 else
7816 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7818 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7820 hppa*64*)
7821 shrext_cmds='.sl'
7822 hardcode_into_libs=yes
7823 dynamic_linker="$host_os dld.sl"
7824 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7825 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7827 soname_spec='${libname}${release}${shared_ext}$major'
7828 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7829 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7832 shrext_cmds='.sl'
7833 dynamic_linker="$host_os dld.sl"
7834 shlibpath_var=SHLIB_PATH
7835 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7837 soname_spec='${libname}${release}${shared_ext}$major'
7839 esac
7840 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7841 postinstall_cmds='chmod 555 $lib'
7844 irix5* | irix6* | nonstopux*)
7845 case $host_os in
7846 nonstopux*) version_type=nonstopux ;;
7848 if test "$lt_cv_prog_gnu_ld" = yes; then
7849 version_type=linux
7850 else
7851 version_type=irix
7852 fi ;;
7853 esac
7854 need_lib_prefix=no
7855 need_version=no
7856 soname_spec='${libname}${release}${shared_ext}$major'
7857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7858 case $host_os in
7859 irix5* | nonstopux*)
7860 libsuff= shlibsuff=
7863 case $LD in # libtool.m4 will add one of these switches to LD
7864 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7865 libsuff= shlibsuff= libmagic=32-bit;;
7866 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7867 libsuff=32 shlibsuff=N32 libmagic=N32;;
7868 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7869 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7870 *) libsuff= shlibsuff= libmagic=never-match;;
7871 esac
7873 esac
7874 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7875 shlibpath_overrides_runpath=no
7876 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7877 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7878 hardcode_into_libs=yes
7881 # No shared lib support for Linux oldld, aout, or coff.
7882 linux*oldld* | linux*aout* | linux*coff*)
7883 dynamic_linker=no
7886 # This must be Linux ELF.
7887 linux*)
7888 version_type=linux
7889 need_lib_prefix=no
7890 need_version=no
7891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7892 soname_spec='${libname}${release}${shared_ext}$major'
7893 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7894 shlibpath_var=LD_LIBRARY_PATH
7895 shlibpath_overrides_runpath=no
7896 # This implies no fast_install, which is unacceptable.
7897 # Some rework will be needed to allow for fast_install
7898 # before this can be enabled.
7899 hardcode_into_libs=yes
7901 # Append ld.so.conf contents to the search path
7902 if test -f /etc/ld.so.conf; then
7903 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7904 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7907 # We used to test for /lib/ld.so.1 and disable shared libraries on
7908 # powerpc, because MkLinux only supported shared libraries with the
7909 # GNU dynamic linker. Since this was broken with cross compilers,
7910 # most powerpc-linux boxes support dynamic linking these days and
7911 # people can always --disable-shared, the test was removed, and we
7912 # assume the GNU/Linux dynamic linker is in use.
7913 dynamic_linker='GNU/Linux ld.so'
7916 netbsdelf*-gnu)
7917 version_type=linux
7918 need_lib_prefix=no
7919 need_version=no
7920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7921 soname_spec='${libname}${release}${shared_ext}$major'
7922 shlibpath_var=LD_LIBRARY_PATH
7923 shlibpath_overrides_runpath=no
7924 hardcode_into_libs=yes
7925 dynamic_linker='NetBSD ld.elf_so'
7928 knetbsd*-gnu)
7929 version_type=linux
7930 need_lib_prefix=no
7931 need_version=no
7932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7933 soname_spec='${libname}${release}${shared_ext}$major'
7934 shlibpath_var=LD_LIBRARY_PATH
7935 shlibpath_overrides_runpath=no
7936 hardcode_into_libs=yes
7937 dynamic_linker='GNU ld.so'
7940 netbsd*)
7941 version_type=sunos
7942 need_lib_prefix=no
7943 need_version=no
7944 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7946 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7947 dynamic_linker='NetBSD (a.out) ld.so'
7948 else
7949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7950 soname_spec='${libname}${release}${shared_ext}$major'
7951 dynamic_linker='NetBSD ld.elf_so'
7953 shlibpath_var=LD_LIBRARY_PATH
7954 shlibpath_overrides_runpath=yes
7955 hardcode_into_libs=yes
7958 newsos6)
7959 version_type=linux
7960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7961 shlibpath_var=LD_LIBRARY_PATH
7962 shlibpath_overrides_runpath=yes
7965 nto-qnx*)
7966 version_type=linux
7967 need_lib_prefix=no
7968 need_version=no
7969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7970 soname_spec='${libname}${release}${shared_ext}$major'
7971 shlibpath_var=LD_LIBRARY_PATH
7972 shlibpath_overrides_runpath=yes
7975 openbsd*)
7976 version_type=sunos
7977 need_lib_prefix=no
7978 need_version=yes
7979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7980 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7981 shlibpath_var=LD_LIBRARY_PATH
7982 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7983 case $host_os in
7984 openbsd2.[89] | openbsd2.[89].*)
7985 shlibpath_overrides_runpath=no
7988 shlibpath_overrides_runpath=yes
7990 esac
7991 else
7992 shlibpath_overrides_runpath=yes
7996 os2*)
7997 libname_spec='$name'
7998 shrext_cmds=".dll"
7999 need_lib_prefix=no
8000 library_names_spec='$libname${shared_ext} $libname.a'
8001 dynamic_linker='OS/2 ld.exe'
8002 shlibpath_var=LIBPATH
8005 osf3* | osf4* | osf5*)
8006 version_type=osf
8007 need_lib_prefix=no
8008 need_version=no
8009 soname_spec='${libname}${release}${shared_ext}$major'
8010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8011 shlibpath_var=LD_LIBRARY_PATH
8012 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8013 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8016 sco3.2v5*)
8017 version_type=osf
8018 soname_spec='${libname}${release}${shared_ext}$major'
8019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8020 shlibpath_var=LD_LIBRARY_PATH
8023 solaris*)
8024 version_type=linux
8025 need_lib_prefix=no
8026 need_version=no
8027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8028 soname_spec='${libname}${release}${shared_ext}$major'
8029 shlibpath_var=LD_LIBRARY_PATH
8030 shlibpath_overrides_runpath=yes
8031 hardcode_into_libs=yes
8032 # ldd complains unless libraries are executable
8033 postinstall_cmds='chmod +x $lib'
8036 sunos4*)
8037 version_type=sunos
8038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8039 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8040 shlibpath_var=LD_LIBRARY_PATH
8041 shlibpath_overrides_runpath=yes
8042 if test "$with_gnu_ld" = yes; then
8043 need_lib_prefix=no
8045 need_version=yes
8048 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8049 version_type=linux
8050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8051 soname_spec='${libname}${release}${shared_ext}$major'
8052 shlibpath_var=LD_LIBRARY_PATH
8053 case $host_vendor in
8054 sni)
8055 shlibpath_overrides_runpath=no
8056 need_lib_prefix=no
8057 export_dynamic_flag_spec='${wl}-Blargedynsym'
8058 runpath_var=LD_RUN_PATH
8060 siemens)
8061 need_lib_prefix=no
8063 motorola)
8064 need_lib_prefix=no
8065 need_version=no
8066 shlibpath_overrides_runpath=no
8067 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8069 esac
8072 sysv4*MP*)
8073 if test -d /usr/nec ;then
8074 version_type=linux
8075 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8076 soname_spec='$libname${shared_ext}.$major'
8077 shlibpath_var=LD_LIBRARY_PATH
8081 uts4*)
8082 version_type=linux
8083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8084 soname_spec='${libname}${release}${shared_ext}$major'
8085 shlibpath_var=LD_LIBRARY_PATH
8089 dynamic_linker=no
8091 esac
8092 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8093 echo "${ECHO_T}$dynamic_linker" >&6
8094 test "$dynamic_linker" = no && can_build_shared=no
8096 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8097 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8098 hardcode_action=
8099 if test -n "$hardcode_libdir_flag_spec" || \
8100 test -n "$runpath_var " || \
8101 test "X$hardcode_automatic"="Xyes" ; then
8103 # We can hardcode non-existant directories.
8104 if test "$hardcode_direct" != no &&
8105 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8106 # have to relink, otherwise we might link with an installed library
8107 # when we should be linking with a yet-to-be-installed one
8108 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8109 test "$hardcode_minus_L" != no; then
8110 # Linking always hardcodes the temporary library directory.
8111 hardcode_action=relink
8112 else
8113 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8114 hardcode_action=immediate
8116 else
8117 # We cannot hardcode anything, or else we can only hardcode existing
8118 # directories.
8119 hardcode_action=unsupported
8121 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8122 echo "${ECHO_T}$hardcode_action" >&6
8124 if test "$hardcode_action" = relink; then
8125 # Fast installation is not supported
8126 enable_fast_install=no
8127 elif test "$shlibpath_overrides_runpath" = yes ||
8128 test "$enable_shared" = no; then
8129 # Fast installation is not necessary
8130 enable_fast_install=needless
8133 striplib=
8134 old_striplib=
8135 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8136 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8137 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8138 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8139 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8140 echo "$as_me:$LINENO: result: yes" >&5
8141 echo "${ECHO_T}yes" >&6
8142 else
8143 # FIXME - insert some real tests, host_os isn't really good enough
8144 case $host_os in
8145 darwin*)
8146 if test -n "$STRIP" ; then
8147 striplib="$STRIP -x"
8148 echo "$as_me:$LINENO: result: yes" >&5
8149 echo "${ECHO_T}yes" >&6
8150 else
8151 echo "$as_me:$LINENO: result: no" >&5
8152 echo "${ECHO_T}no" >&6
8156 echo "$as_me:$LINENO: result: no" >&5
8157 echo "${ECHO_T}no" >&6
8159 esac
8162 if test "x$enable_dlopen" != xyes; then
8163 enable_dlopen=unknown
8164 enable_dlopen_self=unknown
8165 enable_dlopen_self_static=unknown
8166 else
8167 lt_cv_dlopen=no
8168 lt_cv_dlopen_libs=
8170 case $host_os in
8171 beos*)
8172 lt_cv_dlopen="load_add_on"
8173 lt_cv_dlopen_libs=
8174 lt_cv_dlopen_self=yes
8177 mingw* | pw32*)
8178 lt_cv_dlopen="LoadLibrary"
8179 lt_cv_dlopen_libs=
8182 cygwin*)
8183 lt_cv_dlopen="dlopen"
8184 lt_cv_dlopen_libs=
8187 darwin*)
8188 # if libdl is installed we need to link against it
8189 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8190 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8191 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8192 echo $ECHO_N "(cached) $ECHO_C" >&6
8193 else
8194 ac_check_lib_save_LIBS=$LIBS
8195 LIBS="-ldl $LIBS"
8196 cat >conftest.$ac_ext <<_ACEOF
8197 /* confdefs.h. */
8198 _ACEOF
8199 cat confdefs.h >>conftest.$ac_ext
8200 cat >>conftest.$ac_ext <<_ACEOF
8201 /* end confdefs.h. */
8203 /* Override any gcc2 internal prototype to avoid an error. */
8204 #ifdef __cplusplus
8205 extern "C"
8206 #endif
8207 /* We use char because int might match the return type of a gcc2
8208 builtin and then its argument prototype would still apply. */
8209 char dlopen ();
8211 main ()
8213 dlopen ();
8215 return 0;
8217 _ACEOF
8218 rm -f conftest.$ac_objext conftest$ac_exeext
8219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8220 (eval $ac_link) 2>conftest.er1
8221 ac_status=$?
8222 grep -v '^ *+' conftest.er1 >conftest.err
8223 rm -f conftest.er1
8224 cat conftest.err >&5
8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226 (exit $ac_status); } &&
8227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8229 (eval $ac_try) 2>&5
8230 ac_status=$?
8231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232 (exit $ac_status); }; } &&
8233 { ac_try='test -s conftest$ac_exeext'
8234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8235 (eval $ac_try) 2>&5
8236 ac_status=$?
8237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238 (exit $ac_status); }; }; then
8239 ac_cv_lib_dl_dlopen=yes
8240 else
8241 echo "$as_me: failed program was:" >&5
8242 sed 's/^/| /' conftest.$ac_ext >&5
8244 ac_cv_lib_dl_dlopen=no
8246 rm -f conftest.err conftest.$ac_objext \
8247 conftest$ac_exeext conftest.$ac_ext
8248 LIBS=$ac_check_lib_save_LIBS
8250 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8251 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8252 if test $ac_cv_lib_dl_dlopen = yes; then
8253 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8254 else
8256 lt_cv_dlopen="dyld"
8257 lt_cv_dlopen_libs=
8258 lt_cv_dlopen_self=yes
8265 echo "$as_me:$LINENO: checking for shl_load" >&5
8266 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8267 if test "${ac_cv_func_shl_load+set}" = set; then
8268 echo $ECHO_N "(cached) $ECHO_C" >&6
8269 else
8270 cat >conftest.$ac_ext <<_ACEOF
8271 /* confdefs.h. */
8272 _ACEOF
8273 cat confdefs.h >>conftest.$ac_ext
8274 cat >>conftest.$ac_ext <<_ACEOF
8275 /* end confdefs.h. */
8276 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8277 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8278 #define shl_load innocuous_shl_load
8280 /* System header to define __stub macros and hopefully few prototypes,
8281 which can conflict with char shl_load (); below.
8282 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8283 <limits.h> exists even on freestanding compilers. */
8285 #ifdef __STDC__
8286 # include <limits.h>
8287 #else
8288 # include <assert.h>
8289 #endif
8291 #undef shl_load
8293 /* Override any gcc2 internal prototype to avoid an error. */
8294 #ifdef __cplusplus
8295 extern "C"
8297 #endif
8298 /* We use char because int might match the return type of a gcc2
8299 builtin and then its argument prototype would still apply. */
8300 char shl_load ();
8301 /* The GNU C library defines this for functions which it implements
8302 to always fail with ENOSYS. Some functions are actually named
8303 something starting with __ and the normal name is an alias. */
8304 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8305 choke me
8306 #else
8307 char (*f) () = shl_load;
8308 #endif
8309 #ifdef __cplusplus
8311 #endif
8314 main ()
8316 return f != shl_load;
8318 return 0;
8320 _ACEOF
8321 rm -f conftest.$ac_objext conftest$ac_exeext
8322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8323 (eval $ac_link) 2>conftest.er1
8324 ac_status=$?
8325 grep -v '^ *+' conftest.er1 >conftest.err
8326 rm -f conftest.er1
8327 cat conftest.err >&5
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); } &&
8330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8332 (eval $ac_try) 2>&5
8333 ac_status=$?
8334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335 (exit $ac_status); }; } &&
8336 { ac_try='test -s conftest$ac_exeext'
8337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8338 (eval $ac_try) 2>&5
8339 ac_status=$?
8340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341 (exit $ac_status); }; }; then
8342 ac_cv_func_shl_load=yes
8343 else
8344 echo "$as_me: failed program was:" >&5
8345 sed 's/^/| /' conftest.$ac_ext >&5
8347 ac_cv_func_shl_load=no
8349 rm -f conftest.err conftest.$ac_objext \
8350 conftest$ac_exeext conftest.$ac_ext
8352 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8353 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8354 if test $ac_cv_func_shl_load = yes; then
8355 lt_cv_dlopen="shl_load"
8356 else
8357 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8358 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8359 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8360 echo $ECHO_N "(cached) $ECHO_C" >&6
8361 else
8362 ac_check_lib_save_LIBS=$LIBS
8363 LIBS="-ldld $LIBS"
8364 cat >conftest.$ac_ext <<_ACEOF
8365 /* confdefs.h. */
8366 _ACEOF
8367 cat confdefs.h >>conftest.$ac_ext
8368 cat >>conftest.$ac_ext <<_ACEOF
8369 /* end confdefs.h. */
8371 /* Override any gcc2 internal prototype to avoid an error. */
8372 #ifdef __cplusplus
8373 extern "C"
8374 #endif
8375 /* We use char because int might match the return type of a gcc2
8376 builtin and then its argument prototype would still apply. */
8377 char shl_load ();
8379 main ()
8381 shl_load ();
8383 return 0;
8385 _ACEOF
8386 rm -f conftest.$ac_objext conftest$ac_exeext
8387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8388 (eval $ac_link) 2>conftest.er1
8389 ac_status=$?
8390 grep -v '^ *+' conftest.er1 >conftest.err
8391 rm -f conftest.er1
8392 cat conftest.err >&5
8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 (exit $ac_status); } &&
8395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8397 (eval $ac_try) 2>&5
8398 ac_status=$?
8399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400 (exit $ac_status); }; } &&
8401 { ac_try='test -s conftest$ac_exeext'
8402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8403 (eval $ac_try) 2>&5
8404 ac_status=$?
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); }; }; then
8407 ac_cv_lib_dld_shl_load=yes
8408 else
8409 echo "$as_me: failed program was:" >&5
8410 sed 's/^/| /' conftest.$ac_ext >&5
8412 ac_cv_lib_dld_shl_load=no
8414 rm -f conftest.err conftest.$ac_objext \
8415 conftest$ac_exeext conftest.$ac_ext
8416 LIBS=$ac_check_lib_save_LIBS
8418 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8419 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8420 if test $ac_cv_lib_dld_shl_load = yes; then
8421 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8422 else
8423 echo "$as_me:$LINENO: checking for dlopen" >&5
8424 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8425 if test "${ac_cv_func_dlopen+set}" = set; then
8426 echo $ECHO_N "(cached) $ECHO_C" >&6
8427 else
8428 cat >conftest.$ac_ext <<_ACEOF
8429 /* confdefs.h. */
8430 _ACEOF
8431 cat confdefs.h >>conftest.$ac_ext
8432 cat >>conftest.$ac_ext <<_ACEOF
8433 /* end confdefs.h. */
8434 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8435 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8436 #define dlopen innocuous_dlopen
8438 /* System header to define __stub macros and hopefully few prototypes,
8439 which can conflict with char dlopen (); below.
8440 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8441 <limits.h> exists even on freestanding compilers. */
8443 #ifdef __STDC__
8444 # include <limits.h>
8445 #else
8446 # include <assert.h>
8447 #endif
8449 #undef dlopen
8451 /* Override any gcc2 internal prototype to avoid an error. */
8452 #ifdef __cplusplus
8453 extern "C"
8455 #endif
8456 /* We use char because int might match the return type of a gcc2
8457 builtin and then its argument prototype would still apply. */
8458 char dlopen ();
8459 /* The GNU C library defines this for functions which it implements
8460 to always fail with ENOSYS. Some functions are actually named
8461 something starting with __ and the normal name is an alias. */
8462 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8463 choke me
8464 #else
8465 char (*f) () = dlopen;
8466 #endif
8467 #ifdef __cplusplus
8469 #endif
8472 main ()
8474 return f != dlopen;
8476 return 0;
8478 _ACEOF
8479 rm -f conftest.$ac_objext conftest$ac_exeext
8480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8481 (eval $ac_link) 2>conftest.er1
8482 ac_status=$?
8483 grep -v '^ *+' conftest.er1 >conftest.err
8484 rm -f conftest.er1
8485 cat conftest.err >&5
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); } &&
8488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8490 (eval $ac_try) 2>&5
8491 ac_status=$?
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); }; } &&
8494 { ac_try='test -s conftest$ac_exeext'
8495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8496 (eval $ac_try) 2>&5
8497 ac_status=$?
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); }; }; then
8500 ac_cv_func_dlopen=yes
8501 else
8502 echo "$as_me: failed program was:" >&5
8503 sed 's/^/| /' conftest.$ac_ext >&5
8505 ac_cv_func_dlopen=no
8507 rm -f conftest.err conftest.$ac_objext \
8508 conftest$ac_exeext conftest.$ac_ext
8510 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8511 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8512 if test $ac_cv_func_dlopen = yes; then
8513 lt_cv_dlopen="dlopen"
8514 else
8515 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8516 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8517 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8518 echo $ECHO_N "(cached) $ECHO_C" >&6
8519 else
8520 ac_check_lib_save_LIBS=$LIBS
8521 LIBS="-ldl $LIBS"
8522 cat >conftest.$ac_ext <<_ACEOF
8523 /* confdefs.h. */
8524 _ACEOF
8525 cat confdefs.h >>conftest.$ac_ext
8526 cat >>conftest.$ac_ext <<_ACEOF
8527 /* end confdefs.h. */
8529 /* Override any gcc2 internal prototype to avoid an error. */
8530 #ifdef __cplusplus
8531 extern "C"
8532 #endif
8533 /* We use char because int might match the return type of a gcc2
8534 builtin and then its argument prototype would still apply. */
8535 char dlopen ();
8537 main ()
8539 dlopen ();
8541 return 0;
8543 _ACEOF
8544 rm -f conftest.$ac_objext conftest$ac_exeext
8545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8546 (eval $ac_link) 2>conftest.er1
8547 ac_status=$?
8548 grep -v '^ *+' conftest.er1 >conftest.err
8549 rm -f conftest.er1
8550 cat conftest.err >&5
8551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 (exit $ac_status); } &&
8553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8555 (eval $ac_try) 2>&5
8556 ac_status=$?
8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); }; } &&
8559 { ac_try='test -s conftest$ac_exeext'
8560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8561 (eval $ac_try) 2>&5
8562 ac_status=$?
8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 (exit $ac_status); }; }; then
8565 ac_cv_lib_dl_dlopen=yes
8566 else
8567 echo "$as_me: failed program was:" >&5
8568 sed 's/^/| /' conftest.$ac_ext >&5
8570 ac_cv_lib_dl_dlopen=no
8572 rm -f conftest.err conftest.$ac_objext \
8573 conftest$ac_exeext conftest.$ac_ext
8574 LIBS=$ac_check_lib_save_LIBS
8576 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8577 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8578 if test $ac_cv_lib_dl_dlopen = yes; then
8579 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8580 else
8581 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8582 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8583 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8584 echo $ECHO_N "(cached) $ECHO_C" >&6
8585 else
8586 ac_check_lib_save_LIBS=$LIBS
8587 LIBS="-lsvld $LIBS"
8588 cat >conftest.$ac_ext <<_ACEOF
8589 /* confdefs.h. */
8590 _ACEOF
8591 cat confdefs.h >>conftest.$ac_ext
8592 cat >>conftest.$ac_ext <<_ACEOF
8593 /* end confdefs.h. */
8595 /* Override any gcc2 internal prototype to avoid an error. */
8596 #ifdef __cplusplus
8597 extern "C"
8598 #endif
8599 /* We use char because int might match the return type of a gcc2
8600 builtin and then its argument prototype would still apply. */
8601 char dlopen ();
8603 main ()
8605 dlopen ();
8607 return 0;
8609 _ACEOF
8610 rm -f conftest.$ac_objext conftest$ac_exeext
8611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8612 (eval $ac_link) 2>conftest.er1
8613 ac_status=$?
8614 grep -v '^ *+' conftest.er1 >conftest.err
8615 rm -f conftest.er1
8616 cat conftest.err >&5
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); } &&
8619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8621 (eval $ac_try) 2>&5
8622 ac_status=$?
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); }; } &&
8625 { ac_try='test -s conftest$ac_exeext'
8626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8627 (eval $ac_try) 2>&5
8628 ac_status=$?
8629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630 (exit $ac_status); }; }; then
8631 ac_cv_lib_svld_dlopen=yes
8632 else
8633 echo "$as_me: failed program was:" >&5
8634 sed 's/^/| /' conftest.$ac_ext >&5
8636 ac_cv_lib_svld_dlopen=no
8638 rm -f conftest.err conftest.$ac_objext \
8639 conftest$ac_exeext conftest.$ac_ext
8640 LIBS=$ac_check_lib_save_LIBS
8642 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8643 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8644 if test $ac_cv_lib_svld_dlopen = yes; then
8645 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8646 else
8647 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8648 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8649 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8650 echo $ECHO_N "(cached) $ECHO_C" >&6
8651 else
8652 ac_check_lib_save_LIBS=$LIBS
8653 LIBS="-ldld $LIBS"
8654 cat >conftest.$ac_ext <<_ACEOF
8655 /* confdefs.h. */
8656 _ACEOF
8657 cat confdefs.h >>conftest.$ac_ext
8658 cat >>conftest.$ac_ext <<_ACEOF
8659 /* end confdefs.h. */
8661 /* Override any gcc2 internal prototype to avoid an error. */
8662 #ifdef __cplusplus
8663 extern "C"
8664 #endif
8665 /* We use char because int might match the return type of a gcc2
8666 builtin and then its argument prototype would still apply. */
8667 char dld_link ();
8669 main ()
8671 dld_link ();
8673 return 0;
8675 _ACEOF
8676 rm -f conftest.$ac_objext conftest$ac_exeext
8677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8678 (eval $ac_link) 2>conftest.er1
8679 ac_status=$?
8680 grep -v '^ *+' conftest.er1 >conftest.err
8681 rm -f conftest.er1
8682 cat conftest.err >&5
8683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684 (exit $ac_status); } &&
8685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8687 (eval $ac_try) 2>&5
8688 ac_status=$?
8689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690 (exit $ac_status); }; } &&
8691 { ac_try='test -s conftest$ac_exeext'
8692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8693 (eval $ac_try) 2>&5
8694 ac_status=$?
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); }; }; then
8697 ac_cv_lib_dld_dld_link=yes
8698 else
8699 echo "$as_me: failed program was:" >&5
8700 sed 's/^/| /' conftest.$ac_ext >&5
8702 ac_cv_lib_dld_dld_link=no
8704 rm -f conftest.err conftest.$ac_objext \
8705 conftest$ac_exeext conftest.$ac_ext
8706 LIBS=$ac_check_lib_save_LIBS
8708 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8709 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8710 if test $ac_cv_lib_dld_dld_link = yes; then
8711 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8730 esac
8732 if test "x$lt_cv_dlopen" != xno; then
8733 enable_dlopen=yes
8734 else
8735 enable_dlopen=no
8738 case $lt_cv_dlopen in
8739 dlopen)
8740 save_CPPFLAGS="$CPPFLAGS"
8741 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8743 save_LDFLAGS="$LDFLAGS"
8744 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8746 save_LIBS="$LIBS"
8747 LIBS="$lt_cv_dlopen_libs $LIBS"
8749 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8750 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8751 if test "${lt_cv_dlopen_self+set}" = set; then
8752 echo $ECHO_N "(cached) $ECHO_C" >&6
8753 else
8754 if test "$cross_compiling" = yes; then :
8755 lt_cv_dlopen_self=cross
8756 else
8757 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8758 lt_status=$lt_dlunknown
8759 cat > conftest.$ac_ext <<EOF
8760 #line 8760 "configure"
8761 #include "confdefs.h"
8763 #if HAVE_DLFCN_H
8764 #include <dlfcn.h>
8765 #endif
8767 #include <stdio.h>
8769 #ifdef RTLD_GLOBAL
8770 # define LT_DLGLOBAL RTLD_GLOBAL
8771 #else
8772 # ifdef DL_GLOBAL
8773 # define LT_DLGLOBAL DL_GLOBAL
8774 # else
8775 # define LT_DLGLOBAL 0
8776 # endif
8777 #endif
8779 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8780 find out it does not work in some platform. */
8781 #ifndef LT_DLLAZY_OR_NOW
8782 # ifdef RTLD_LAZY
8783 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8784 # else
8785 # ifdef DL_LAZY
8786 # define LT_DLLAZY_OR_NOW DL_LAZY
8787 # else
8788 # ifdef RTLD_NOW
8789 # define LT_DLLAZY_OR_NOW RTLD_NOW
8790 # else
8791 # ifdef DL_NOW
8792 # define LT_DLLAZY_OR_NOW DL_NOW
8793 # else
8794 # define LT_DLLAZY_OR_NOW 0
8795 # endif
8796 # endif
8797 # endif
8798 # endif
8799 #endif
8801 #ifdef __cplusplus
8802 extern "C" void exit (int);
8803 #endif
8805 void fnord() { int i=42;}
8806 int main ()
8808 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8809 int status = $lt_dlunknown;
8811 if (self)
8813 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8814 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8815 /* dlclose (self); */
8818 exit (status);
8821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8822 (eval $ac_link) 2>&5
8823 ac_status=$?
8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8826 (./conftest; exit; ) 2>/dev/null
8827 lt_status=$?
8828 case x$lt_status in
8829 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8830 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8831 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8832 esac
8833 else :
8834 # compilation failed
8835 lt_cv_dlopen_self=no
8838 rm -fr conftest*
8842 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8843 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8845 if test "x$lt_cv_dlopen_self" = xyes; then
8846 LDFLAGS="$LDFLAGS $link_static_flag"
8847 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8848 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8849 if test "${lt_cv_dlopen_self_static+set}" = set; then
8850 echo $ECHO_N "(cached) $ECHO_C" >&6
8851 else
8852 if test "$cross_compiling" = yes; then :
8853 lt_cv_dlopen_self_static=cross
8854 else
8855 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8856 lt_status=$lt_dlunknown
8857 cat > conftest.$ac_ext <<EOF
8858 #line 8858 "configure"
8859 #include "confdefs.h"
8861 #if HAVE_DLFCN_H
8862 #include <dlfcn.h>
8863 #endif
8865 #include <stdio.h>
8867 #ifdef RTLD_GLOBAL
8868 # define LT_DLGLOBAL RTLD_GLOBAL
8869 #else
8870 # ifdef DL_GLOBAL
8871 # define LT_DLGLOBAL DL_GLOBAL
8872 # else
8873 # define LT_DLGLOBAL 0
8874 # endif
8875 #endif
8877 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8878 find out it does not work in some platform. */
8879 #ifndef LT_DLLAZY_OR_NOW
8880 # ifdef RTLD_LAZY
8881 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8882 # else
8883 # ifdef DL_LAZY
8884 # define LT_DLLAZY_OR_NOW DL_LAZY
8885 # else
8886 # ifdef RTLD_NOW
8887 # define LT_DLLAZY_OR_NOW RTLD_NOW
8888 # else
8889 # ifdef DL_NOW
8890 # define LT_DLLAZY_OR_NOW DL_NOW
8891 # else
8892 # define LT_DLLAZY_OR_NOW 0
8893 # endif
8894 # endif
8895 # endif
8896 # endif
8897 #endif
8899 #ifdef __cplusplus
8900 extern "C" void exit (int);
8901 #endif
8903 void fnord() { int i=42;}
8904 int main ()
8906 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8907 int status = $lt_dlunknown;
8909 if (self)
8911 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8912 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8913 /* dlclose (self); */
8916 exit (status);
8919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8920 (eval $ac_link) 2>&5
8921 ac_status=$?
8922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8924 (./conftest; exit; ) 2>/dev/null
8925 lt_status=$?
8926 case x$lt_status in
8927 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8928 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8929 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8930 esac
8931 else :
8932 # compilation failed
8933 lt_cv_dlopen_self_static=no
8936 rm -fr conftest*
8940 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8941 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8944 CPPFLAGS="$save_CPPFLAGS"
8945 LDFLAGS="$save_LDFLAGS"
8946 LIBS="$save_LIBS"
8948 esac
8950 case $lt_cv_dlopen_self in
8951 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8952 *) enable_dlopen_self=unknown ;;
8953 esac
8955 case $lt_cv_dlopen_self_static in
8956 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8957 *) enable_dlopen_self_static=unknown ;;
8958 esac
8962 # Report which librarie types wil actually be built
8963 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8964 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8965 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8966 echo "${ECHO_T}$can_build_shared" >&6
8968 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8969 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8970 test "$can_build_shared" = "no" && enable_shared=no
8972 # On AIX, shared libraries and static libraries use the same namespace, and
8973 # are all built from PIC.
8974 case "$host_os" in
8975 aix3*)
8976 test "$enable_shared" = yes && enable_static=no
8977 if test -n "$RANLIB"; then
8978 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8979 postinstall_cmds='$RANLIB $lib'
8983 aix4* | aix5*)
8984 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8985 test "$enable_shared" = yes && enable_static=no
8988 darwin* | rhapsody*)
8989 if test "$GCC" = yes; then
8990 archive_cmds_need_lc=no
8991 case "$host_os" in
8992 rhapsody* | darwin1.[012])
8993 allow_undefined_flag='-undefined suppress'
8995 *) # Darwin 1.3 on
8996 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8997 allow_undefined_flag='-flat_namespace -undefined suppress'
8998 else
8999 case ${MACOSX_DEPLOYMENT_TARGET} in
9000 10.[012])
9001 allow_undefined_flag='-flat_namespace -undefined suppress'
9003 10.*)
9004 allow_undefined_flag='-undefined dynamic_lookup'
9006 esac
9009 esac
9010 output_verbose_link_cmd='echo'
9011 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9012 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9013 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9014 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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}'
9015 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -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}'
9016 hardcode_direct=no
9017 hardcode_automatic=yes
9018 hardcode_shlibpath_var=unsupported
9019 whole_archive_flag_spec='-all_load $convenience'
9020 link_all_deplibs=yes
9021 else
9022 ld_shlibs=no
9025 esac
9026 echo "$as_me:$LINENO: result: $enable_shared" >&5
9027 echo "${ECHO_T}$enable_shared" >&6
9029 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9030 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9031 # Make sure either enable_shared or enable_static is yes.
9032 test "$enable_shared" = yes || enable_static=yes
9033 echo "$as_me:$LINENO: result: $enable_static" >&5
9034 echo "${ECHO_T}$enable_static" >&6
9036 # The else clause should only fire when bootstrapping the
9037 # libtool distribution, otherwise you forgot to ship ltmain.sh
9038 # with your package, and you will get complaints that there are
9039 # no rules to generate ltmain.sh.
9040 if test -f "$ltmain"; then
9041 # See if we are running on zsh, and set the options which allow our commands through
9042 # without removal of \ escapes.
9043 if test -n "${ZSH_VERSION+set}" ; then
9044 setopt NO_GLOB_SUBST
9046 # Now quote all the things that may contain metacharacters while being
9047 # careful not to overquote the AC_SUBSTed values. We take copies of the
9048 # variables and quote the copies for generation of the libtool script.
9049 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9050 SED SHELL STRIP \
9051 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9052 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9053 deplibs_check_method reload_flag reload_cmds need_locks \
9054 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9055 lt_cv_sys_global_symbol_to_c_name_address \
9056 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9057 old_postinstall_cmds old_postuninstall_cmds \
9058 compiler \
9059 CC \
9060 LD \
9061 lt_prog_compiler_wl \
9062 lt_prog_compiler_pic \
9063 lt_prog_compiler_static \
9064 lt_prog_compiler_no_builtin_flag \
9065 export_dynamic_flag_spec \
9066 thread_safe_flag_spec \
9067 whole_archive_flag_spec \
9068 enable_shared_with_static_runtimes \
9069 old_archive_cmds \
9070 old_archive_from_new_cmds \
9071 predep_objects \
9072 postdep_objects \
9073 predeps \
9074 postdeps \
9075 compiler_lib_search_path \
9076 archive_cmds \
9077 archive_expsym_cmds \
9078 postinstall_cmds \
9079 postuninstall_cmds \
9080 old_archive_from_expsyms_cmds \
9081 allow_undefined_flag \
9082 no_undefined_flag \
9083 export_symbols_cmds \
9084 hardcode_libdir_flag_spec \
9085 hardcode_libdir_flag_spec_ld \
9086 hardcode_libdir_separator \
9087 hardcode_automatic \
9088 module_cmds \
9089 module_expsym_cmds \
9090 lt_cv_prog_compiler_c_o \
9091 exclude_expsyms \
9092 include_expsyms; do
9094 case $var in
9095 old_archive_cmds | \
9096 old_archive_from_new_cmds | \
9097 archive_cmds | \
9098 archive_expsym_cmds | \
9099 module_cmds | \
9100 module_expsym_cmds | \
9101 old_archive_from_expsyms_cmds | \
9102 export_symbols_cmds | \
9103 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9104 postinstall_cmds | postuninstall_cmds | \
9105 old_postinstall_cmds | old_postuninstall_cmds | \
9106 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9107 # Double-quote double-evaled strings.
9108 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9111 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9113 esac
9114 done
9116 case $lt_echo in
9117 *'\$0 --fallback-echo"')
9118 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9120 esac
9122 cfgfile="${ofile}T"
9123 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9124 $rm -f "$cfgfile"
9125 { echo "$as_me:$LINENO: creating $ofile" >&5
9126 echo "$as_me: creating $ofile" >&6;}
9128 cat <<__EOF__ >> "$cfgfile"
9129 #! $SHELL
9131 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9132 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9133 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9135 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9136 # Free Software Foundation, Inc.
9138 # This file is part of GNU Libtool:
9139 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9141 # This program is free software; you can redistribute it and/or modify
9142 # it under the terms of the GNU General Public License as published by
9143 # the Free Software Foundation; either version 2 of the License, or
9144 # (at your option) any later version.
9146 # This program is distributed in the hope that it will be useful, but
9147 # WITHOUT ANY WARRANTY; without even the implied warranty of
9148 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9149 # General Public License for more details.
9151 # You should have received a copy of the GNU General Public License
9152 # along with this program; if not, write to the Free Software
9153 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9155 # As a special exception to the GNU General Public License, if you
9156 # distribute this file as part of a program that contains a
9157 # configuration script generated by Autoconf, you may include it under
9158 # the same distribution terms that you use for the rest of that program.
9160 # A sed program that does not truncate output.
9161 SED=$lt_SED
9163 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9164 Xsed="$SED -e s/^X//"
9166 # The HP-UX ksh and POSIX shell print the target directory to stdout
9167 # if CDPATH is set.
9168 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9170 # The names of the tagged configurations supported by this script.
9171 available_tags=
9173 # ### BEGIN LIBTOOL CONFIG
9175 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9177 # Shell to use when invoking shell scripts.
9178 SHELL=$lt_SHELL
9180 # Whether or not to build shared libraries.
9181 build_libtool_libs=$enable_shared
9183 # Whether or not to build static libraries.
9184 build_old_libs=$enable_static
9186 # Whether or not to add -lc for building shared libraries.
9187 build_libtool_need_lc=$archive_cmds_need_lc
9189 # Whether or not to disallow shared libs when runtime libs are static
9190 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9192 # Whether or not to optimize for fast installation.
9193 fast_install=$enable_fast_install
9195 # The host system.
9196 host_alias=$host_alias
9197 host=$host
9199 # An echo program that does not interpret backslashes.
9200 echo=$lt_echo
9202 # The archiver.
9203 AR=$lt_AR
9204 AR_FLAGS=$lt_AR_FLAGS
9206 # A C compiler.
9207 LTCC=$lt_LTCC
9209 # A language-specific compiler.
9210 CC=$lt_compiler
9212 # Is the compiler the GNU C compiler?
9213 with_gcc=$GCC
9215 # An ERE matcher.
9216 EGREP=$lt_EGREP
9218 # The linker used to build libraries.
9219 LD=$lt_LD
9221 # Whether we need hard or soft links.
9222 LN_S=$lt_LN_S
9224 # A BSD-compatible nm program.
9225 NM=$lt_NM
9227 # A symbol stripping program
9228 STRIP=$lt_STRIP
9230 # Used to examine libraries when file_magic_cmd begins "file"
9231 MAGIC_CMD=$MAGIC_CMD
9233 # Used on cygwin: DLL creation program.
9234 DLLTOOL="$DLLTOOL"
9236 # Used on cygwin: object dumper.
9237 OBJDUMP="$OBJDUMP"
9239 # Used on cygwin: assembler.
9240 AS="$AS"
9242 # The name of the directory that contains temporary libtool files.
9243 objdir=$objdir
9245 # How to create reloadable object files.
9246 reload_flag=$lt_reload_flag
9247 reload_cmds=$lt_reload_cmds
9249 # How to pass a linker flag through the compiler.
9250 wl=$lt_lt_prog_compiler_wl
9252 # Object file suffix (normally "o").
9253 objext="$ac_objext"
9255 # Old archive suffix (normally "a").
9256 libext="$libext"
9258 # Shared library suffix (normally ".so").
9259 shrext_cmds='$shrext_cmds'
9261 # Executable file suffix (normally "").
9262 exeext="$exeext"
9264 # Additional compiler flags for building library objects.
9265 pic_flag=$lt_lt_prog_compiler_pic
9266 pic_mode=$pic_mode
9268 # What is the maximum length of a command?
9269 max_cmd_len=$lt_cv_sys_max_cmd_len
9271 # Does compiler simultaneously support -c and -o options?
9272 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9274 # Must we lock files when doing compilation ?
9275 need_locks=$lt_need_locks
9277 # Do we need the lib prefix for modules?
9278 need_lib_prefix=$need_lib_prefix
9280 # Do we need a version for libraries?
9281 need_version=$need_version
9283 # Whether dlopen is supported.
9284 dlopen_support=$enable_dlopen
9286 # Whether dlopen of programs is supported.
9287 dlopen_self=$enable_dlopen_self
9289 # Whether dlopen of statically linked programs is supported.
9290 dlopen_self_static=$enable_dlopen_self_static
9292 # Compiler flag to prevent dynamic linking.
9293 link_static_flag=$lt_lt_prog_compiler_static
9295 # Compiler flag to turn off builtin functions.
9296 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9298 # Compiler flag to allow reflexive dlopens.
9299 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9301 # Compiler flag to generate shared objects directly from archives.
9302 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9304 # Compiler flag to generate thread-safe objects.
9305 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9307 # Library versioning type.
9308 version_type=$version_type
9310 # Format of library name prefix.
9311 libname_spec=$lt_libname_spec
9313 # List of archive names. First name is the real one, the rest are links.
9314 # The last name is the one that the linker finds with -lNAME.
9315 library_names_spec=$lt_library_names_spec
9317 # The coded name of the library, if different from the real name.
9318 soname_spec=$lt_soname_spec
9320 # Commands used to build and install an old-style archive.
9321 RANLIB=$lt_RANLIB
9322 old_archive_cmds=$lt_old_archive_cmds
9323 old_postinstall_cmds=$lt_old_postinstall_cmds
9324 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9326 # Create an old-style archive from a shared archive.
9327 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9329 # Create a temporary old-style archive to link instead of a shared archive.
9330 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9332 # Commands used to build and install a shared archive.
9333 archive_cmds=$lt_archive_cmds
9334 archive_expsym_cmds=$lt_archive_expsym_cmds
9335 postinstall_cmds=$lt_postinstall_cmds
9336 postuninstall_cmds=$lt_postuninstall_cmds
9338 # Commands used to build a loadable module (assumed same as above if empty)
9339 module_cmds=$lt_module_cmds
9340 module_expsym_cmds=$lt_module_expsym_cmds
9342 # Commands to strip libraries.
9343 old_striplib=$lt_old_striplib
9344 striplib=$lt_striplib
9346 # Dependencies to place before the objects being linked to create a
9347 # shared library.
9348 predep_objects=$lt_predep_objects
9350 # Dependencies to place after the objects being linked to create a
9351 # shared library.
9352 postdep_objects=$lt_postdep_objects
9354 # Dependencies to place before the objects being linked to create a
9355 # shared library.
9356 predeps=$lt_predeps
9358 # Dependencies to place after the objects being linked to create a
9359 # shared library.
9360 postdeps=$lt_postdeps
9362 # The library search path used internally by the compiler when linking
9363 # a shared library.
9364 compiler_lib_search_path=$lt_compiler_lib_search_path
9366 # Method to check whether dependent libraries are shared objects.
9367 deplibs_check_method=$lt_deplibs_check_method
9369 # Command to use when deplibs_check_method == file_magic.
9370 file_magic_cmd=$lt_file_magic_cmd
9372 # Flag that allows shared libraries with undefined symbols to be built.
9373 allow_undefined_flag=$lt_allow_undefined_flag
9375 # Flag that forces no undefined symbols.
9376 no_undefined_flag=$lt_no_undefined_flag
9378 # Commands used to finish a libtool library installation in a directory.
9379 finish_cmds=$lt_finish_cmds
9381 # Same as above, but a single script fragment to be evaled but not shown.
9382 finish_eval=$lt_finish_eval
9384 # Take the output of nm and produce a listing of raw symbols and C names.
9385 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9387 # Transform the output of nm in a proper C declaration
9388 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9390 # Transform the output of nm in a C name address pair
9391 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9393 # This is the shared library runtime path variable.
9394 runpath_var=$runpath_var
9396 # This is the shared library path variable.
9397 shlibpath_var=$shlibpath_var
9399 # Is shlibpath searched before the hard-coded library search path?
9400 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9402 # How to hardcode a shared library path into an executable.
9403 hardcode_action=$hardcode_action
9405 # Whether we should hardcode library paths into libraries.
9406 hardcode_into_libs=$hardcode_into_libs
9408 # Flag to hardcode \$libdir into a binary during linking.
9409 # This must work even if \$libdir does not exist.
9410 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9412 # If ld is used when linking, flag to hardcode \$libdir into
9413 # a binary during linking. This must work even if \$libdir does
9414 # not exist.
9415 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9417 # Whether we need a single -rpath flag with a separated argument.
9418 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9420 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9421 # resulting binary.
9422 hardcode_direct=$hardcode_direct
9424 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9425 # resulting binary.
9426 hardcode_minus_L=$hardcode_minus_L
9428 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9429 # the resulting binary.
9430 hardcode_shlibpath_var=$hardcode_shlibpath_var
9432 # Set to yes if building a shared library automatically hardcodes DIR into the library
9433 # and all subsequent libraries and executables linked against it.
9434 hardcode_automatic=$hardcode_automatic
9436 # Variables whose values should be saved in libtool wrapper scripts and
9437 # restored at relink time.
9438 variables_saved_for_relink="$variables_saved_for_relink"
9440 # Whether libtool must link a program against all its dependency libraries.
9441 link_all_deplibs=$link_all_deplibs
9443 # Compile-time system search path for libraries
9444 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9446 # Run-time system search path for libraries
9447 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9449 # Fix the shell variable \$srcfile for the compiler.
9450 fix_srcfile_path="$fix_srcfile_path"
9452 # Set to yes if exported symbols are required.
9453 always_export_symbols=$always_export_symbols
9455 # The commands to list exported symbols.
9456 export_symbols_cmds=$lt_export_symbols_cmds
9458 # The commands to extract the exported symbol list from a shared archive.
9459 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9461 # Symbols that should not be listed in the preloaded symbols.
9462 exclude_expsyms=$lt_exclude_expsyms
9464 # Symbols that must always be exported.
9465 include_expsyms=$lt_include_expsyms
9467 # ### END LIBTOOL CONFIG
9469 __EOF__
9472 case $host_os in
9473 aix3*)
9474 cat <<\EOF >> "$cfgfile"
9476 # AIX sometimes has problems with the GCC collect2 program. For some
9477 # reason, if we set the COLLECT_NAMES environment variable, the problems
9478 # vanish in a puff of smoke.
9479 if test "X${COLLECT_NAMES+set}" != Xset; then
9480 COLLECT_NAMES=
9481 export COLLECT_NAMES
9485 esac
9487 # We use sed instead of cat because bash on DJGPP gets confused if
9488 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9489 # text mode, it properly converts lines to CR/LF. This bash problem
9490 # is reportedly fixed, but why not run on old versions too?
9491 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9493 mv -f "$cfgfile" "$ofile" || \
9494 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9495 chmod +x "$ofile"
9497 else
9498 # If there is no Makefile yet, we rely on a make rule to execute
9499 # `config.status --recheck' to rerun these tests and create the
9500 # libtool script then.
9501 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9502 if test -f "$ltmain_in"; then
9503 test -f Makefile && make "$ltmain"
9508 ac_ext=c
9509 ac_cpp='$CPP $CPPFLAGS'
9510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9514 CC="$lt_save_CC"
9517 # Check whether --with-tags or --without-tags was given.
9518 if test "${with_tags+set}" = set; then
9519 withval="$with_tags"
9520 tagnames="$withval"
9523 if test -f "$ltmain" && test -n "$tagnames"; then
9524 if test ! -f "${ofile}"; then
9525 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9526 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9529 if test -z "$LTCC"; then
9530 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9531 if test -z "$LTCC"; then
9532 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9533 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9534 else
9535 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9536 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9540 # Extract list of available tagged configurations in $ofile.
9541 # Note that this assumes the entire list is on one line.
9542 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9544 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9545 for tagname in $tagnames; do
9546 IFS="$lt_save_ifs"
9547 # Check whether tagname contains only valid characters
9548 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9549 "") ;;
9550 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9551 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9552 { (exit 1); exit 1; }; }
9554 esac
9556 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9557 then
9558 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9559 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9560 { (exit 1); exit 1; }; }
9563 # Update the list of available tags.
9564 if test -n "$tagname"; then
9565 echo appending configuration tag \"$tagname\" to $ofile
9567 case $tagname in
9568 CXX)
9569 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9570 ac_ext=cc
9571 ac_cpp='$CXXCPP $CPPFLAGS'
9572 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9573 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9574 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9579 archive_cmds_need_lc_CXX=no
9580 allow_undefined_flag_CXX=
9581 always_export_symbols_CXX=no
9582 archive_expsym_cmds_CXX=
9583 export_dynamic_flag_spec_CXX=
9584 hardcode_direct_CXX=no
9585 hardcode_libdir_flag_spec_CXX=
9586 hardcode_libdir_flag_spec_ld_CXX=
9587 hardcode_libdir_separator_CXX=
9588 hardcode_minus_L_CXX=no
9589 hardcode_automatic_CXX=no
9590 module_cmds_CXX=
9591 module_expsym_cmds_CXX=
9592 link_all_deplibs_CXX=unknown
9593 old_archive_cmds_CXX=$old_archive_cmds
9594 no_undefined_flag_CXX=
9595 whole_archive_flag_spec_CXX=
9596 enable_shared_with_static_runtimes_CXX=no
9598 # Dependencies to place before and after the object being linked:
9599 predep_objects_CXX=
9600 postdep_objects_CXX=
9601 predeps_CXX=
9602 postdeps_CXX=
9603 compiler_lib_search_path_CXX=
9605 # Source file extension for C++ test sources.
9606 ac_ext=cc
9608 # Object file extension for compiled C++ test sources.
9609 objext=o
9610 objext_CXX=$objext
9612 # Code to be used in simple compile tests
9613 lt_simple_compile_test_code="int some_variable = 0;\n"
9615 # Code to be used in simple link tests
9616 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9618 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9620 # If no C compiler was specified, use CC.
9621 LTCC=${LTCC-"$CC"}
9623 # Allow CC to be a program name with arguments.
9624 compiler=$CC
9627 # Allow CC to be a program name with arguments.
9628 lt_save_CC=$CC
9629 lt_save_LD=$LD
9630 lt_save_GCC=$GCC
9631 GCC=$GXX
9632 lt_save_with_gnu_ld=$with_gnu_ld
9633 lt_save_path_LD=$lt_cv_path_LD
9634 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9635 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9636 else
9637 unset lt_cv_prog_gnu_ld
9639 if test -n "${lt_cv_path_LDCXX+set}"; then
9640 lt_cv_path_LD=$lt_cv_path_LDCXX
9641 else
9642 unset lt_cv_path_LD
9644 test -z "${LDCXX+set}" || LD=$LDCXX
9645 CC=${CXX-"c++"}
9646 compiler=$CC
9647 compiler_CXX=$CC
9648 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9650 # We don't want -fno-exception wen compiling C++ code, so set the
9651 # no_builtin_flag separately
9652 if test "$GXX" = yes; then
9653 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9654 else
9655 lt_prog_compiler_no_builtin_flag_CXX=
9658 if test "$GXX" = yes; then
9659 # Set up default GNU C++ configuration
9662 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9663 if test "${with_gnu_ld+set}" = set; then
9664 withval="$with_gnu_ld"
9665 test "$withval" = no || with_gnu_ld=yes
9666 else
9667 with_gnu_ld=no
9669 ac_prog=ld
9670 if test "$GCC" = yes; then
9671 # Check if gcc -print-prog-name=ld gives a path.
9672 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9673 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9674 case $host in
9675 *-*-mingw*)
9676 # gcc leaves a trailing carriage return which upsets mingw
9677 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9679 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9680 esac
9681 case $ac_prog in
9682 # Accept absolute paths.
9683 [\\/]* | ?:[\\/]*)
9684 re_direlt='/[^/][^/]*/\.\./'
9685 # Canonicalize the pathname of ld
9686 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9687 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9688 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9689 done
9690 test -z "$LD" && LD="$ac_prog"
9693 # If it fails, then pretend we aren't using GCC.
9694 ac_prog=ld
9697 # If it is relative, then search for the first ld in PATH.
9698 with_gnu_ld=unknown
9700 esac
9701 elif test "$with_gnu_ld" = yes; then
9702 echo "$as_me:$LINENO: checking for GNU ld" >&5
9703 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9704 else
9705 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9706 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9708 if test "${lt_cv_path_LD+set}" = set; then
9709 echo $ECHO_N "(cached) $ECHO_C" >&6
9710 else
9711 if test -z "$LD"; then
9712 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9713 for ac_dir in $PATH; do
9714 IFS="$lt_save_ifs"
9715 test -z "$ac_dir" && ac_dir=.
9716 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9717 lt_cv_path_LD="$ac_dir/$ac_prog"
9718 # Check to see if the program is GNU ld. I'd rather use --version,
9719 # but apparently some GNU ld's only accept -v.
9720 # Break only if it was the GNU/non-GNU ld that we prefer.
9721 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9722 *GNU* | *'with BFD'*)
9723 test "$with_gnu_ld" != no && break
9726 test "$with_gnu_ld" != yes && break
9728 esac
9730 done
9731 IFS="$lt_save_ifs"
9732 else
9733 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9737 LD="$lt_cv_path_LD"
9738 if test -n "$LD"; then
9739 echo "$as_me:$LINENO: result: $LD" >&5
9740 echo "${ECHO_T}$LD" >&6
9741 else
9742 echo "$as_me:$LINENO: result: no" >&5
9743 echo "${ECHO_T}no" >&6
9745 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9746 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9747 { (exit 1); exit 1; }; }
9748 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9749 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9750 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9751 echo $ECHO_N "(cached) $ECHO_C" >&6
9752 else
9753 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9754 case `$LD -v 2>&1 </dev/null` in
9755 *GNU* | *'with BFD'*)
9756 lt_cv_prog_gnu_ld=yes
9759 lt_cv_prog_gnu_ld=no
9761 esac
9763 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9764 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9765 with_gnu_ld=$lt_cv_prog_gnu_ld
9769 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9770 # archiving commands below assume that GNU ld is being used.
9771 if test "$with_gnu_ld" = yes; then
9772 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9773 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9775 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9776 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9778 # If archive_cmds runs LD, not CC, wlarc should be empty
9779 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9780 # investigate it a little bit more. (MM)
9781 wlarc='${wl}'
9783 # ancient GNU ld didn't support --whole-archive et. al.
9784 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9785 grep 'no-whole-archive' > /dev/null; then
9786 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9787 else
9788 whole_archive_flag_spec_CXX=
9790 else
9791 with_gnu_ld=no
9792 wlarc=
9794 # A generic and very simple default shared library creation
9795 # command for GNU C++ for the case where it uses the native
9796 # linker, instead of GNU ld. If possible, this setting should
9797 # overridden to take advantage of the native linker features on
9798 # the platform it is being used on.
9799 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9802 # Commands to make compiler produce verbose output that lists
9803 # what "hidden" libraries, object files and flags are used when
9804 # linking a shared library.
9805 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9807 else
9808 GXX=no
9809 with_gnu_ld=no
9810 wlarc=
9813 # PORTME: fill in a description of your system's C++ link characteristics
9814 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9815 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9816 ld_shlibs_CXX=yes
9817 case $host_os in
9818 aix3*)
9819 # FIXME: insert proper C++ library support
9820 ld_shlibs_CXX=no
9822 aix4* | aix5*)
9823 if test "$host_cpu" = ia64; then
9824 # On IA64, the linker does run time linking by default, so we don't
9825 # have to do anything special.
9826 aix_use_runtimelinking=no
9827 exp_sym_flag='-Bexport'
9828 no_entry_flag=""
9829 else
9830 aix_use_runtimelinking=no
9832 # Test if we are trying to use run time linking or normal
9833 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9834 # need to do runtime linking.
9835 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9836 for ld_flag in $LDFLAGS; do
9837 case $ld_flag in
9838 *-brtl*)
9839 aix_use_runtimelinking=yes
9840 break
9842 esac
9843 done
9844 esac
9846 exp_sym_flag='-bexport'
9847 no_entry_flag='-bnoentry'
9850 # When large executables or shared objects are built, AIX ld can
9851 # have problems creating the table of contents. If linking a library
9852 # or program results in "error TOC overflow" add -mminimal-toc to
9853 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9854 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9856 archive_cmds_CXX=''
9857 hardcode_direct_CXX=yes
9858 hardcode_libdir_separator_CXX=':'
9859 link_all_deplibs_CXX=yes
9861 if test "$GXX" = yes; then
9862 case $host_os in aix4.012|aix4.012.*)
9863 # We only want to do this on AIX 4.2 and lower, the check
9864 # below for broken collect2 doesn't work under 4.3+
9865 collect2name=`${CC} -print-prog-name=collect2`
9866 if test -f "$collect2name" && \
9867 strings "$collect2name" | grep resolve_lib_name >/dev/null
9868 then
9869 # We have reworked collect2
9870 hardcode_direct_CXX=yes
9871 else
9872 # We have old collect2
9873 hardcode_direct_CXX=unsupported
9874 # It fails to find uninstalled libraries when the uninstalled
9875 # path is not listed in the libpath. Setting hardcode_minus_L
9876 # to unsupported forces relinking
9877 hardcode_minus_L_CXX=yes
9878 hardcode_libdir_flag_spec_CXX='-L$libdir'
9879 hardcode_libdir_separator_CXX=
9881 esac
9882 shared_flag='-shared'
9883 else
9884 # not using gcc
9885 if test "$host_cpu" = ia64; then
9886 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9887 # chokes on -Wl,-G. The following line is correct:
9888 shared_flag='-G'
9889 else
9890 if test "$aix_use_runtimelinking" = yes; then
9891 shared_flag='${wl}-G'
9892 else
9893 shared_flag='${wl}-bM:SRE'
9898 # It seems that -bexpall does not export symbols beginning with
9899 # underscore (_), so it is better to generate a list of symbols to export.
9900 always_export_symbols_CXX=yes
9901 if test "$aix_use_runtimelinking" = yes; then
9902 # Warning - without using the other runtime loading flags (-brtl),
9903 # -berok will link without error, but may produce a broken library.
9904 allow_undefined_flag_CXX='-berok'
9905 # Determine the default libpath from the value encoded in an empty executable.
9906 cat >conftest.$ac_ext <<_ACEOF
9907 /* confdefs.h. */
9908 _ACEOF
9909 cat confdefs.h >>conftest.$ac_ext
9910 cat >>conftest.$ac_ext <<_ACEOF
9911 /* end confdefs.h. */
9914 main ()
9918 return 0;
9920 _ACEOF
9921 rm -f conftest.$ac_objext conftest$ac_exeext
9922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9923 (eval $ac_link) 2>conftest.er1
9924 ac_status=$?
9925 grep -v '^ *+' conftest.er1 >conftest.err
9926 rm -f conftest.er1
9927 cat conftest.err >&5
9928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929 (exit $ac_status); } &&
9930 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9932 (eval $ac_try) 2>&5
9933 ac_status=$?
9934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935 (exit $ac_status); }; } &&
9936 { ac_try='test -s conftest$ac_exeext'
9937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9938 (eval $ac_try) 2>&5
9939 ac_status=$?
9940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941 (exit $ac_status); }; }; then
9943 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9945 # Check for a 64-bit object if we didn't find anything.
9946 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9947 }'`; fi
9948 else
9949 echo "$as_me: failed program was:" >&5
9950 sed 's/^/| /' conftest.$ac_ext >&5
9953 rm -f conftest.err conftest.$ac_objext \
9954 conftest$ac_exeext conftest.$ac_ext
9955 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9957 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9959 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9960 else
9961 if test "$host_cpu" = ia64; then
9962 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9963 allow_undefined_flag_CXX="-z nodefs"
9964 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9965 else
9966 # Determine the default libpath from the value encoded in an empty executable.
9967 cat >conftest.$ac_ext <<_ACEOF
9968 /* confdefs.h. */
9969 _ACEOF
9970 cat confdefs.h >>conftest.$ac_ext
9971 cat >>conftest.$ac_ext <<_ACEOF
9972 /* end confdefs.h. */
9975 main ()
9979 return 0;
9981 _ACEOF
9982 rm -f conftest.$ac_objext conftest$ac_exeext
9983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9984 (eval $ac_link) 2>conftest.er1
9985 ac_status=$?
9986 grep -v '^ *+' conftest.er1 >conftest.err
9987 rm -f conftest.er1
9988 cat conftest.err >&5
9989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990 (exit $ac_status); } &&
9991 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9993 (eval $ac_try) 2>&5
9994 ac_status=$?
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); }; } &&
9997 { ac_try='test -s conftest$ac_exeext'
9998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9999 (eval $ac_try) 2>&5
10000 ac_status=$?
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); }; }; then
10004 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10006 # Check for a 64-bit object if we didn't find anything.
10007 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10008 }'`; fi
10009 else
10010 echo "$as_me: failed program was:" >&5
10011 sed 's/^/| /' conftest.$ac_ext >&5
10014 rm -f conftest.err conftest.$ac_objext \
10015 conftest$ac_exeext conftest.$ac_ext
10016 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10018 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10019 # Warning - without using the other run time loading flags,
10020 # -berok will link without error, but may produce a broken library.
10021 no_undefined_flag_CXX=' ${wl}-bernotok'
10022 allow_undefined_flag_CXX=' ${wl}-berok'
10023 # -bexpall does not export symbols beginning with underscore (_)
10024 always_export_symbols_CXX=yes
10025 # Exported symbols can be pulled into shared objects from archives
10026 whole_archive_flag_spec_CXX=' '
10027 archive_cmds_need_lc_CXX=yes
10028 # This is similar to how AIX traditionally builds it's shared libraries.
10029 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10033 chorus*)
10034 case $cc_basename in
10036 # FIXME: insert proper C++ library support
10037 ld_shlibs_CXX=no
10039 esac
10042 cygwin* | mingw* | pw32*)
10043 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10044 # as there is no search path for DLLs.
10045 hardcode_libdir_flag_spec_CXX='-L$libdir'
10046 allow_undefined_flag_CXX=unsupported
10047 always_export_symbols_CXX=no
10048 enable_shared_with_static_runtimes_CXX=yes
10050 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10051 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10052 # If the export-symbols file already is a .def file (1st line
10053 # is EXPORTS), use it as is; otherwise, prepend...
10054 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10055 cp $export_symbols $output_objdir/$soname.def;
10056 else
10057 echo EXPORTS > $output_objdir/$soname.def;
10058 cat $export_symbols >> $output_objdir/$soname.def;
10060 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10061 else
10062 ld_shlibs_CXX=no
10066 darwin* | rhapsody*)
10067 if test "$GXX" = yes; then
10068 archive_cmds_need_lc_CXX=no
10069 case "$host_os" in
10070 rhapsody* | darwin1.[012])
10071 allow_undefined_flag_CXX='-undefined suppress'
10073 *) # Darwin 1.3 on
10074 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10075 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10076 else
10077 case ${MACOSX_DEPLOYMENT_TARGET} in
10078 10.[012])
10079 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10081 10.*)
10082 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10084 esac
10087 esac
10088 lt_int_apple_cc_single_mod=no
10089 output_verbose_link_cmd='echo'
10090 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10091 lt_int_apple_cc_single_mod=yes
10093 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10094 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10095 else
10096 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10098 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10100 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10101 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10102 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10103 else
10104 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10106 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -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}'
10107 hardcode_direct_CXX=no
10108 hardcode_automatic_CXX=yes
10109 hardcode_shlibpath_var_CXX=unsupported
10110 whole_archive_flag_spec_CXX='-all_load $convenience'
10111 link_all_deplibs_CXX=yes
10112 else
10113 ld_shlibs_CXX=no
10117 dgux*)
10118 case $cc_basename in
10119 ec++)
10120 # FIXME: insert proper C++ library support
10121 ld_shlibs_CXX=no
10123 ghcx)
10124 # Green Hills C++ Compiler
10125 # FIXME: insert proper C++ library support
10126 ld_shlibs_CXX=no
10129 # FIXME: insert proper C++ library support
10130 ld_shlibs_CXX=no
10132 esac
10134 freebsd12*)
10135 # C++ shared libraries reported to be fairly broken before switch to ELF
10136 ld_shlibs_CXX=no
10138 freebsd-elf*)
10139 archive_cmds_need_lc_CXX=no
10141 freebsd* | kfreebsd*-gnu)
10142 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10143 # conventions
10144 ld_shlibs_CXX=yes
10146 gnu*)
10148 hpux9*)
10149 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10150 hardcode_libdir_separator_CXX=:
10151 export_dynamic_flag_spec_CXX='${wl}-E'
10152 hardcode_direct_CXX=yes
10153 hardcode_minus_L_CXX=yes # Not in the search PATH,
10154 # but as the default
10155 # location of the library.
10157 case $cc_basename in
10159 # FIXME: insert proper C++ library support
10160 ld_shlibs_CXX=no
10162 aCC)
10163 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10164 # Commands to make compiler produce verbose output that lists
10165 # what "hidden" libraries, object files and flags are used when
10166 # linking a shared library.
10168 # There doesn't appear to be a way to prevent this compiler from
10169 # explicitly linking system object files so we need to strip them
10170 # from the output so that they don't get included in the library
10171 # dependencies.
10172 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10175 if test "$GXX" = yes; then
10176 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10177 else
10178 # FIXME: insert proper C++ library support
10179 ld_shlibs_CXX=no
10182 esac
10184 hpux10*|hpux11*)
10185 if test $with_gnu_ld = no; then
10186 case "$host_cpu" in
10187 hppa*64*)
10188 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10189 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10190 hardcode_libdir_separator_CXX=:
10192 ia64*)
10193 hardcode_libdir_flag_spec_CXX='-L$libdir'
10196 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10197 hardcode_libdir_separator_CXX=:
10198 export_dynamic_flag_spec_CXX='${wl}-E'
10200 esac
10202 case "$host_cpu" in
10203 hppa*64*)
10204 hardcode_direct_CXX=no
10205 hardcode_shlibpath_var_CXX=no
10207 ia64*)
10208 hardcode_direct_CXX=no
10209 hardcode_shlibpath_var_CXX=no
10210 hardcode_minus_L_CXX=yes # Not in the search PATH,
10211 # but as the default
10212 # location of the library.
10215 hardcode_direct_CXX=yes
10216 hardcode_minus_L_CXX=yes # Not in the search PATH,
10217 # but as the default
10218 # location of the library.
10220 esac
10222 case $cc_basename in
10224 # FIXME: insert proper C++ library support
10225 ld_shlibs_CXX=no
10227 aCC)
10228 case "$host_cpu" in
10229 hppa*64*|ia64*)
10230 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10233 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10235 esac
10236 # Commands to make compiler produce verbose output that lists
10237 # what "hidden" libraries, object files and flags are used when
10238 # linking a shared library.
10240 # There doesn't appear to be a way to prevent this compiler from
10241 # explicitly linking system object files so we need to strip them
10242 # from the output so that they don't get included in the library
10243 # dependencies.
10244 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10247 if test "$GXX" = yes; then
10248 if test $with_gnu_ld = no; then
10249 case "$host_cpu" in
10250 ia64*|hppa*64*)
10251 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10254 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10256 esac
10258 else
10259 # FIXME: insert proper C++ library support
10260 ld_shlibs_CXX=no
10263 esac
10265 irix5* | irix6*)
10266 case $cc_basename in
10268 # SGI C++
10269 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10271 # Archives containing C++ object files must be created using
10272 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10273 # necessary to make sure instantiated templates are included
10274 # in the archive.
10275 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10278 if test "$GXX" = yes; then
10279 if test "$with_gnu_ld" = no; then
10280 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10281 else
10282 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10285 link_all_deplibs_CXX=yes
10287 esac
10288 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10289 hardcode_libdir_separator_CXX=:
10291 linux*)
10292 case $cc_basename in
10293 KCC)
10294 # Kuck and Associates, Inc. (KAI) C++ Compiler
10296 # KCC will only create a shared library if the output file
10297 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10298 # to its proper name (with version) after linking.
10299 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10300 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
10301 # Commands to make compiler produce verbose output that lists
10302 # what "hidden" libraries, object files and flags are used when
10303 # linking a shared library.
10305 # There doesn't appear to be a way to prevent this compiler from
10306 # explicitly linking system object files so we need to strip them
10307 # from the output so that they don't get included in the library
10308 # dependencies.
10309 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10311 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10312 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10314 # Archives containing C++ object files must be created using
10315 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10316 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10318 icpc)
10319 # Intel C++
10320 with_gnu_ld=yes
10321 archive_cmds_need_lc_CXX=no
10322 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10323 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10324 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10325 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10326 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10328 cxx)
10329 # Compaq C++
10330 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10331 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
10333 runpath_var=LD_RUN_PATH
10334 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10335 hardcode_libdir_separator_CXX=:
10337 # Commands to make compiler produce verbose output that lists
10338 # what "hidden" libraries, object files and flags are used when
10339 # linking a shared library.
10341 # There doesn't appear to be a way to prevent this compiler from
10342 # explicitly linking system object files so we need to strip them
10343 # from the output so that they don't get included in the library
10344 # dependencies.
10345 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10347 esac
10349 lynxos*)
10350 # FIXME: insert proper C++ library support
10351 ld_shlibs_CXX=no
10353 m88k*)
10354 # FIXME: insert proper C++ library support
10355 ld_shlibs_CXX=no
10357 mvs*)
10358 case $cc_basename in
10359 cxx)
10360 # FIXME: insert proper C++ library support
10361 ld_shlibs_CXX=no
10364 # FIXME: insert proper C++ library support
10365 ld_shlibs_CXX=no
10367 esac
10369 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10370 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10371 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10372 wlarc=
10373 hardcode_libdir_flag_spec_CXX='-R$libdir'
10374 hardcode_direct_CXX=yes
10375 hardcode_shlibpath_var_CXX=no
10377 # Workaround some broken pre-1.5 toolchains
10378 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10380 osf3*)
10381 case $cc_basename in
10382 KCC)
10383 # Kuck and Associates, Inc. (KAI) C++ Compiler
10385 # KCC will only create a shared library if the output file
10386 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10387 # to its proper name (with version) after linking.
10388 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10390 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10391 hardcode_libdir_separator_CXX=:
10393 # Archives containing C++ object files must be created using
10394 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10395 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10398 RCC)
10399 # Rational C++ 2.4.1
10400 # FIXME: insert proper C++ library support
10401 ld_shlibs_CXX=no
10403 cxx)
10404 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10405 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10407 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10408 hardcode_libdir_separator_CXX=:
10410 # Commands to make compiler produce verbose output that lists
10411 # what "hidden" libraries, object files and flags are used when
10412 # linking a shared library.
10414 # There doesn't appear to be a way to prevent this compiler from
10415 # explicitly linking system object files so we need to strip them
10416 # from the output so that they don't get included in the library
10417 # dependencies.
10418 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10421 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10422 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10423 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10425 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10426 hardcode_libdir_separator_CXX=:
10428 # Commands to make compiler produce verbose output that lists
10429 # what "hidden" libraries, object files and flags are used when
10430 # linking a shared library.
10431 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10433 else
10434 # FIXME: insert proper C++ library support
10435 ld_shlibs_CXX=no
10438 esac
10440 osf4* | osf5*)
10441 case $cc_basename in
10442 KCC)
10443 # Kuck and Associates, Inc. (KAI) C++ Compiler
10445 # KCC will only create a shared library if the output file
10446 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10447 # to its proper name (with version) after linking.
10448 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10450 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10451 hardcode_libdir_separator_CXX=:
10453 # Archives containing C++ object files must be created using
10454 # the KAI C++ compiler.
10455 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10457 RCC)
10458 # Rational C++ 2.4.1
10459 # FIXME: insert proper C++ library support
10460 ld_shlibs_CXX=no
10462 cxx)
10463 allow_undefined_flag_CXX=' -expect_unresolved \*'
10464 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10465 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10466 echo "-hidden">> $lib.exp~
10467 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10468 $rm $lib.exp'
10470 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10471 hardcode_libdir_separator_CXX=:
10473 # Commands to make compiler produce verbose output that lists
10474 # what "hidden" libraries, object files and flags are used when
10475 # linking a shared library.
10477 # There doesn't appear to be a way to prevent this compiler from
10478 # explicitly linking system object files so we need to strip them
10479 # from the output so that they don't get included in the library
10480 # dependencies.
10481 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10484 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10485 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10486 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10488 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10489 hardcode_libdir_separator_CXX=:
10491 # Commands to make compiler produce verbose output that lists
10492 # what "hidden" libraries, object files and flags are used when
10493 # linking a shared library.
10494 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10496 else
10497 # FIXME: insert proper C++ library support
10498 ld_shlibs_CXX=no
10501 esac
10503 psos*)
10504 # FIXME: insert proper C++ library support
10505 ld_shlibs_CXX=no
10507 sco*)
10508 archive_cmds_need_lc_CXX=no
10509 case $cc_basename in
10511 # FIXME: insert proper C++ library support
10512 ld_shlibs_CXX=no
10515 # FIXME: insert proper C++ library support
10516 ld_shlibs_CXX=no
10518 esac
10520 sunos4*)
10521 case $cc_basename in
10523 # Sun C++ 4.x
10524 # FIXME: insert proper C++ library support
10525 ld_shlibs_CXX=no
10527 lcc)
10528 # Lucid
10529 # FIXME: insert proper C++ library support
10530 ld_shlibs_CXX=no
10533 # FIXME: insert proper C++ library support
10534 ld_shlibs_CXX=no
10536 esac
10538 solaris*)
10539 case $cc_basename in
10541 # Sun C++ 4.2, 5.x and Centerline C++
10542 no_undefined_flag_CXX=' -zdefs'
10543 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10544 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10545 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10547 hardcode_libdir_flag_spec_CXX='-R$libdir'
10548 hardcode_shlibpath_var_CXX=no
10549 case $host_os in
10550 solaris2.0-5 | solaris2.0-5.*) ;;
10552 # The C++ compiler is used as linker so we must use $wl
10553 # flag to pass the commands to the underlying system
10554 # linker.
10555 # Supported since Solaris 2.6 (maybe 2.5.1?)
10556 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10558 esac
10559 link_all_deplibs_CXX=yes
10561 # Commands to make compiler produce verbose output that lists
10562 # what "hidden" libraries, object files and flags are used when
10563 # linking a shared library.
10565 # There doesn't appear to be a way to prevent this compiler from
10566 # explicitly linking system object files so we need to strip them
10567 # from the output so that they don't get included in the library
10568 # dependencies.
10569 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10571 # Archives containing C++ object files must be created using
10572 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10573 # necessary to make sure instantiated templates are included
10574 # in the archive.
10575 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10577 gcx)
10578 # Green Hills C++ Compiler
10579 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10581 # The C++ compiler must be used to create the archive.
10582 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10585 # GNU C++ compiler with Solaris linker
10586 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10587 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10588 if $CC --version | grep -v '^2\.7' > /dev/null; then
10589 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10590 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10591 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10593 # Commands to make compiler produce verbose output that lists
10594 # what "hidden" libraries, object files and flags are used when
10595 # linking a shared library.
10596 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10597 else
10598 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10599 # platform.
10600 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10601 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10602 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10604 # Commands to make compiler produce verbose output that lists
10605 # what "hidden" libraries, object files and flags are used when
10606 # linking a shared library.
10607 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10610 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10613 esac
10615 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10616 archive_cmds_need_lc_CXX=no
10618 tandem*)
10619 case $cc_basename in
10620 NCC)
10621 # NonStop-UX NCC 3.20
10622 # FIXME: insert proper C++ library support
10623 ld_shlibs_CXX=no
10626 # FIXME: insert proper C++ library support
10627 ld_shlibs_CXX=no
10629 esac
10631 vxworks*)
10632 # FIXME: insert proper C++ library support
10633 ld_shlibs_CXX=no
10636 # FIXME: insert proper C++ library support
10637 ld_shlibs_CXX=no
10639 esac
10640 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10641 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10642 test "$ld_shlibs_CXX" = no && can_build_shared=no
10644 GCC_CXX="$GXX"
10645 LD_CXX="$LD"
10648 cat > conftest.$ac_ext <<EOF
10649 class Foo
10651 public:
10652 Foo (void) { a = 0; }
10653 private:
10654 int a;
10658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10659 (eval $ac_compile) 2>&5
10660 ac_status=$?
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); }; then
10663 # Parse the compiler output and extract the necessary
10664 # objects, libraries and library flags.
10666 # Sentinel used to keep track of whether or not we are before
10667 # the conftest object file.
10668 pre_test_object_deps_done=no
10670 # The `*' in the case matches for architectures that use `case' in
10671 # $output_verbose_cmd can trigger glob expansion during the loop
10672 # eval without this substitution.
10673 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10675 for p in `eval $output_verbose_link_cmd`; do
10676 case $p in
10678 -L* | -R* | -l*)
10679 # Some compilers place space between "-{L,R}" and the path.
10680 # Remove the space.
10681 if test $p = "-L" \
10682 || test $p = "-R"; then
10683 prev=$p
10684 continue
10685 else
10686 prev=
10689 if test "$pre_test_object_deps_done" = no; then
10690 case $p in
10691 -L* | -R*)
10692 # Internal compiler library paths should come after those
10693 # provided the user. The postdeps already come after the
10694 # user supplied libs so there is no need to process them.
10695 if test -z "$compiler_lib_search_path_CXX"; then
10696 compiler_lib_search_path_CXX="${prev}${p}"
10697 else
10698 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10701 # The "-l" case would never come before the object being
10702 # linked, so don't bother handling this case.
10703 esac
10704 else
10705 if test -z "$postdeps_CXX"; then
10706 postdeps_CXX="${prev}${p}"
10707 else
10708 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10713 *.$objext)
10714 # This assumes that the test object file only shows up
10715 # once in the compiler output.
10716 if test "$p" = "conftest.$objext"; then
10717 pre_test_object_deps_done=yes
10718 continue
10721 if test "$pre_test_object_deps_done" = no; then
10722 if test -z "$predep_objects_CXX"; then
10723 predep_objects_CXX="$p"
10724 else
10725 predep_objects_CXX="$predep_objects_CXX $p"
10727 else
10728 if test -z "$postdep_objects_CXX"; then
10729 postdep_objects_CXX="$p"
10730 else
10731 postdep_objects_CXX="$postdep_objects_CXX $p"
10736 *) ;; # Ignore the rest.
10738 esac
10739 done
10741 # Clean up.
10742 rm -f a.out a.exe
10743 else
10744 echo "libtool.m4: error: problem compiling CXX test program"
10747 $rm -f confest.$objext
10749 case " $postdeps_CXX " in
10750 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10751 esac
10753 lt_prog_compiler_wl_CXX=
10754 lt_prog_compiler_pic_CXX=
10755 lt_prog_compiler_static_CXX=
10757 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10758 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10760 # C++ specific cases for pic, static, wl, etc.
10761 if test "$GXX" = yes; then
10762 lt_prog_compiler_wl_CXX='-Wl,'
10763 lt_prog_compiler_static_CXX='-static'
10765 case $host_os in
10766 aix*)
10767 # All AIX code is PIC.
10768 if test "$host_cpu" = ia64; then
10769 # AIX 5 now supports IA64 processor
10770 lt_prog_compiler_static_CXX='-Bstatic'
10773 amigaos*)
10774 # FIXME: we need at least 68020 code to build shared libraries, but
10775 # adding the `-m68020' flag to GCC prevents building anything better,
10776 # like `-m68040'.
10777 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10779 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10780 # PIC is the default for these OSes.
10782 mingw* | os2* | pw32*)
10783 # This hack is so that the source file can tell whether it is being
10784 # built for inclusion in a dll (and should export symbols for example).
10785 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10787 darwin* | rhapsody*)
10788 # PIC is the default on this platform
10789 # Common symbols not allowed in MH_DYLIB files
10790 lt_prog_compiler_pic_CXX='-fno-common'
10792 *djgpp*)
10793 # DJGPP does not support shared libraries at all
10794 lt_prog_compiler_pic_CXX=
10796 sysv4*MP*)
10797 if test -d /usr/nec; then
10798 lt_prog_compiler_pic_CXX=-Kconform_pic
10801 hpux*)
10802 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10803 # not for PA HP-UX.
10804 case "$host_cpu" in
10805 hppa*64*|ia64*)
10808 lt_prog_compiler_pic_CXX='-fPIC'
10810 esac
10813 lt_prog_compiler_pic_CXX='-fPIC'
10815 esac
10816 else
10817 case $host_os in
10818 aix4* | aix5*)
10819 # All AIX code is PIC.
10820 if test "$host_cpu" = ia64; then
10821 # AIX 5 now supports IA64 processor
10822 lt_prog_compiler_static_CXX='-Bstatic'
10823 else
10824 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10827 chorus*)
10828 case $cc_basename in
10829 cxch68)
10830 # Green Hills C++ Compiler
10831 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
10833 esac
10835 dgux*)
10836 case $cc_basename in
10837 ec++)
10838 lt_prog_compiler_pic_CXX='-KPIC'
10840 ghcx)
10841 # Green Hills C++ Compiler
10842 lt_prog_compiler_pic_CXX='-pic'
10846 esac
10848 freebsd* | kfreebsd*-gnu)
10849 # FreeBSD uses GNU C++
10851 hpux9* | hpux10* | hpux11*)
10852 case $cc_basename in
10854 lt_prog_compiler_wl_CXX='-Wl,'
10855 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10856 if test "$host_cpu" != ia64; then
10857 lt_prog_compiler_pic_CXX='+Z'
10860 aCC)
10861 lt_prog_compiler_wl_CXX='-Wl,'
10862 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10863 case "$host_cpu" in
10864 hppa*64*|ia64*)
10865 # +Z the default
10868 lt_prog_compiler_pic_CXX='+Z'
10870 esac
10874 esac
10876 irix5* | irix6* | nonstopux*)
10877 case $cc_basename in
10879 lt_prog_compiler_wl_CXX='-Wl,'
10880 lt_prog_compiler_static_CXX='-non_shared'
10881 # CC pic flag -KPIC is the default.
10885 esac
10887 linux*)
10888 case $cc_basename in
10889 KCC)
10890 # KAI C++ Compiler
10891 lt_prog_compiler_wl_CXX='--backend -Wl,'
10892 lt_prog_compiler_pic_CXX='-fPIC'
10894 icpc)
10895 # Intel C++
10896 lt_prog_compiler_wl_CXX='-Wl,'
10897 lt_prog_compiler_pic_CXX='-KPIC'
10898 lt_prog_compiler_static_CXX='-static'
10900 cxx)
10901 # Compaq C++
10902 # Make sure the PIC flag is empty. It appears that all Alpha
10903 # Linux and Compaq Tru64 Unix objects are PIC.
10904 lt_prog_compiler_pic_CXX=
10905 lt_prog_compiler_static_CXX='-non_shared'
10909 esac
10911 lynxos*)
10913 m88k*)
10915 mvs*)
10916 case $cc_basename in
10917 cxx)
10918 lt_prog_compiler_pic_CXX='-W c,exportall'
10922 esac
10924 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10926 osf3* | osf4* | osf5*)
10927 case $cc_basename in
10928 KCC)
10929 lt_prog_compiler_wl_CXX='--backend -Wl,'
10931 RCC)
10932 # Rational C++ 2.4.1
10933 lt_prog_compiler_pic_CXX='-pic'
10935 cxx)
10936 # Digital/Compaq C++
10937 lt_prog_compiler_wl_CXX='-Wl,'
10938 # Make sure the PIC flag is empty. It appears that all Alpha
10939 # Linux and Compaq Tru64 Unix objects are PIC.
10940 lt_prog_compiler_pic_CXX=
10941 lt_prog_compiler_static_CXX='-non_shared'
10945 esac
10947 psos*)
10949 sco*)
10950 case $cc_basename in
10952 lt_prog_compiler_pic_CXX='-fPIC'
10956 esac
10958 solaris*)
10959 case $cc_basename in
10961 # Sun C++ 4.2, 5.x and Centerline C++
10962 lt_prog_compiler_pic_CXX='-KPIC'
10963 lt_prog_compiler_static_CXX='-Bstatic'
10964 lt_prog_compiler_wl_CXX='-Qoption ld '
10966 gcx)
10967 # Green Hills C++ Compiler
10968 lt_prog_compiler_pic_CXX='-PIC'
10972 esac
10974 sunos4*)
10975 case $cc_basename in
10977 # Sun C++ 4.x
10978 lt_prog_compiler_pic_CXX='-pic'
10979 lt_prog_compiler_static_CXX='-Bstatic'
10981 lcc)
10982 # Lucid
10983 lt_prog_compiler_pic_CXX='-pic'
10987 esac
10989 tandem*)
10990 case $cc_basename in
10991 NCC)
10992 # NonStop-UX NCC 3.20
10993 lt_prog_compiler_pic_CXX='-KPIC'
10997 esac
10999 unixware*)
11001 vxworks*)
11004 lt_prog_compiler_can_build_shared_CXX=no
11006 esac
11009 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11010 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11013 # Check to make sure the PIC flag actually works.
11015 if test -n "$lt_prog_compiler_pic_CXX"; then
11017 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11018 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11019 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11020 echo $ECHO_N "(cached) $ECHO_C" >&6
11021 else
11022 lt_prog_compiler_pic_works_CXX=no
11023 ac_outfile=conftest.$ac_objext
11024 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11025 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11026 # Insert the option either (1) after the last *FLAGS variable, or
11027 # (2) before a word containing "conftest.", or (3) at the end.
11028 # Note that $ac_compile itself does not contain backslashes and begins
11029 # with a dollar sign (not a hyphen), so the echo should work correctly.
11030 # The option is referenced via a variable to avoid confusing sed.
11031 lt_compile=`echo "$ac_compile" | $SED \
11032 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11033 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11034 -e 's:$: $lt_compiler_flag:'`
11035 (eval echo "\"\$as_me:11035: $lt_compile\"" >&5)
11036 (eval "$lt_compile" 2>conftest.err)
11037 ac_status=$?
11038 cat conftest.err >&5
11039 echo "$as_me:11039: \$? = $ac_status" >&5
11040 if (exit $ac_status) && test -s "$ac_outfile"; then
11041 # The compiler can only warn and ignore the option if not recognized
11042 # So say no if there are warnings
11043 if test ! -s conftest.err; then
11044 lt_prog_compiler_pic_works_CXX=yes
11047 $rm conftest*
11050 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11051 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11053 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11054 case $lt_prog_compiler_pic_CXX in
11055 "" | " "*) ;;
11056 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11057 esac
11058 else
11059 lt_prog_compiler_pic_CXX=
11060 lt_prog_compiler_can_build_shared_CXX=no
11064 case "$host_os" in
11065 # For platforms which do not support PIC, -DPIC is meaningless:
11066 *djgpp*)
11067 lt_prog_compiler_pic_CXX=
11070 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11072 esac
11074 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11075 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11076 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11077 echo $ECHO_N "(cached) $ECHO_C" >&6
11078 else
11079 lt_cv_prog_compiler_c_o_CXX=no
11080 $rm -r conftest 2>/dev/null
11081 mkdir conftest
11082 cd conftest
11083 mkdir out
11084 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11086 lt_compiler_flag="-o out/conftest2.$ac_objext"
11087 # Insert the option either (1) after the last *FLAGS variable, or
11088 # (2) before a word containing "conftest.", or (3) at the end.
11089 # Note that $ac_compile itself does not contain backslashes and begins
11090 # with a dollar sign (not a hyphen), so the echo should work correctly.
11091 lt_compile=`echo "$ac_compile" | $SED \
11092 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11093 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11094 -e 's:$: $lt_compiler_flag:'`
11095 (eval echo "\"\$as_me:11095: $lt_compile\"" >&5)
11096 (eval "$lt_compile" 2>out/conftest.err)
11097 ac_status=$?
11098 cat out/conftest.err >&5
11099 echo "$as_me:11099: \$? = $ac_status" >&5
11100 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11101 then
11102 # The compiler can only warn and ignore the option if not recognized
11103 # So say no if there are warnings
11104 if test ! -s out/conftest.err; then
11105 lt_cv_prog_compiler_c_o_CXX=yes
11108 chmod u+w .
11109 $rm conftest*
11110 # SGI C++ compiler will create directory out/ii_files/ for
11111 # template instantiation
11112 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11113 $rm out/* && rmdir out
11114 cd ..
11115 rmdir conftest
11116 $rm conftest*
11119 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11120 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11123 hard_links="nottested"
11124 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11125 # do not overwrite the value of need_locks provided by the user
11126 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11127 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11128 hard_links=yes
11129 $rm conftest*
11130 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11131 touch conftest.a
11132 ln conftest.a conftest.b 2>&5 || hard_links=no
11133 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11134 echo "$as_me:$LINENO: result: $hard_links" >&5
11135 echo "${ECHO_T}$hard_links" >&6
11136 if test "$hard_links" = no; then
11137 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11138 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11139 need_locks=warn
11141 else
11142 need_locks=no
11145 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11146 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11148 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11149 case $host_os in
11150 aix4* | aix5*)
11151 # If we're using GNU nm, then we don't want the "-C" option.
11152 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11153 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11154 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11155 else
11156 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11159 pw32*)
11160 export_symbols_cmds_CXX="$ltdll_cmds"
11162 cygwin* | mingw*)
11163 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11165 linux*)
11166 link_all_deplibs_CXX=no
11169 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11171 esac
11173 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11174 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11175 test "$ld_shlibs_CXX" = no && can_build_shared=no
11177 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11178 if test "$GCC" = yes; then
11179 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11183 # Do we need to explicitly link libc?
11185 case "x$archive_cmds_need_lc_CXX" in
11186 x|xyes)
11187 # Assume -lc should be added
11188 archive_cmds_need_lc_CXX=yes
11190 if test "$enable_shared" = yes && test "$GCC" = yes; then
11191 case $archive_cmds_CXX in
11192 *'~'*)
11193 # FIXME: we may have to deal with multi-command sequences.
11195 '$CC '*)
11196 # Test whether the compiler implicitly links with -lc since on some
11197 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11198 # to ld, don't add -lc before -lgcc.
11199 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11200 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11201 $rm conftest*
11202 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11205 (eval $ac_compile) 2>&5
11206 ac_status=$?
11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); } 2>conftest.err; then
11209 soname=conftest
11210 lib=conftest
11211 libobjs=conftest.$ac_objext
11212 deplibs=
11213 wl=$lt_prog_compiler_wl_CXX
11214 compiler_flags=-v
11215 linker_flags=-v
11216 verstring=
11217 output_objdir=.
11218 libname=conftest
11219 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11220 allow_undefined_flag_CXX=
11221 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11222 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11223 ac_status=$?
11224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225 (exit $ac_status); }
11226 then
11227 archive_cmds_need_lc_CXX=no
11228 else
11229 archive_cmds_need_lc_CXX=yes
11231 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11232 else
11233 cat conftest.err 1>&5
11235 $rm conftest*
11236 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11237 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11239 esac
11242 esac
11244 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11245 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11246 library_names_spec=
11247 libname_spec='lib$name'
11248 soname_spec=
11249 shrext_cmds=".so"
11250 postinstall_cmds=
11251 postuninstall_cmds=
11252 finish_cmds=
11253 finish_eval=
11254 shlibpath_var=
11255 shlibpath_overrides_runpath=unknown
11256 version_type=none
11257 dynamic_linker="$host_os ld.so"
11258 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11259 if test "$GCC" = yes; then
11260 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11261 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11262 # if the path contains ";" then we assume it to be the separator
11263 # otherwise default to the standard path separator (i.e. ":") - it is
11264 # assumed that no part of a normal pathname contains ";" but that should
11265 # okay in the real world where ";" in dirpaths is itself problematic.
11266 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11267 else
11268 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11270 else
11271 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11273 need_lib_prefix=unknown
11274 hardcode_into_libs=no
11276 # when you set need_version to no, make sure it does not cause -set_version
11277 # flags to be left without arguments
11278 need_version=unknown
11280 case $host_os in
11281 aix3*)
11282 version_type=linux
11283 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11284 shlibpath_var=LIBPATH
11286 # AIX 3 has no versioning support, so we append a major version to the name.
11287 soname_spec='${libname}${release}${shared_ext}$major'
11290 aix4* | aix5*)
11291 version_type=linux
11292 need_lib_prefix=no
11293 need_version=no
11294 hardcode_into_libs=yes
11295 if test "$host_cpu" = ia64; then
11296 # AIX 5 supports IA64
11297 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11298 shlibpath_var=LD_LIBRARY_PATH
11299 else
11300 # With GCC up to 2.95.x, collect2 would create an import file
11301 # for dependence libraries. The import file would start with
11302 # the line `#! .'. This would cause the generated library to
11303 # depend on `.', always an invalid library. This was fixed in
11304 # development snapshots of GCC prior to 3.0.
11305 case $host_os in
11306 aix4 | aix4.[01] | aix4.[01].*)
11307 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11308 echo ' yes '
11309 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11311 else
11312 can_build_shared=no
11315 esac
11316 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11317 # soname into executable. Probably we can add versioning support to
11318 # collect2, so additional links can be useful in future.
11319 if test "$aix_use_runtimelinking" = yes; then
11320 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11321 # instead of lib<name>.a to let people know that these are not
11322 # typical AIX shared libraries.
11323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11324 else
11325 # We preserve .a as extension for shared libraries through AIX4.2
11326 # and later when we are not doing run time linking.
11327 library_names_spec='${libname}${release}.a $libname.a'
11328 soname_spec='${libname}${release}${shared_ext}$major'
11330 shlibpath_var=LIBPATH
11334 amigaos*)
11335 library_names_spec='$libname.ixlibrary $libname.a'
11336 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11337 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'
11340 beos*)
11341 library_names_spec='${libname}${shared_ext}'
11342 dynamic_linker="$host_os ld.so"
11343 shlibpath_var=LIBRARY_PATH
11346 bsdi4*)
11347 version_type=linux
11348 need_version=no
11349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11350 soname_spec='${libname}${release}${shared_ext}$major'
11351 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11352 shlibpath_var=LD_LIBRARY_PATH
11353 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11354 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11355 # the default ld.so.conf also contains /usr/contrib/lib and
11356 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11357 # libtool to hard-code these into programs
11360 cygwin* | mingw* | pw32*)
11361 version_type=windows
11362 shrext_cmds=".dll"
11363 need_version=no
11364 need_lib_prefix=no
11366 case $GCC,$host_os in
11367 yes,cygwin* | yes,mingw* | yes,pw32*)
11368 library_names_spec='$libname.dll.a'
11369 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11370 postinstall_cmds='base_file=`basename \${file}`~
11371 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11372 dldir=$destdir/`dirname \$dlpath`~
11373 test -d \$dldir || mkdir -p \$dldir~
11374 $install_prog $dir/$dlname \$dldir/$dlname'
11375 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11376 dlpath=$dir/\$dldll~
11377 $rm \$dlpath'
11378 shlibpath_overrides_runpath=yes
11380 case $host_os in
11381 cygwin*)
11382 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11383 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11384 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11386 mingw*)
11387 # MinGW DLLs use traditional 'lib' prefix
11388 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11389 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11390 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11391 # It is most probably a Windows format PATH printed by
11392 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11393 # path with ; separators, and with drive letters. We can handle the
11394 # drive letters (cygwin fileutils understands them), so leave them,
11395 # especially as we might pass files found there to a mingw objdump,
11396 # which wouldn't understand a cygwinified path. Ahh.
11397 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11398 else
11399 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11402 pw32*)
11403 # pw32 DLLs use 'pw' prefix rather than 'lib'
11404 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11406 esac
11410 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11412 esac
11413 dynamic_linker='Win32 ld.exe'
11414 # FIXME: first we should search . and the directory the executable is in
11415 shlibpath_var=PATH
11418 darwin* | rhapsody*)
11419 dynamic_linker="$host_os dyld"
11420 version_type=darwin
11421 need_lib_prefix=no
11422 need_version=no
11423 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11424 soname_spec='${libname}${release}${major}$shared_ext'
11425 shlibpath_overrides_runpath=yes
11426 shlibpath_var=DYLD_LIBRARY_PATH
11427 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11428 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11429 if test "$GCC" = yes; then
11430 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11431 else
11432 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11434 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11437 dgux*)
11438 version_type=linux
11439 need_lib_prefix=no
11440 need_version=no
11441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11442 soname_spec='${libname}${release}${shared_ext}$major'
11443 shlibpath_var=LD_LIBRARY_PATH
11446 freebsd1*)
11447 dynamic_linker=no
11450 kfreebsd*-gnu)
11451 version_type=linux
11452 need_lib_prefix=no
11453 need_version=no
11454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11455 soname_spec='${libname}${release}${shared_ext}$major'
11456 shlibpath_var=LD_LIBRARY_PATH
11457 shlibpath_overrides_runpath=no
11458 hardcode_into_libs=yes
11459 dynamic_linker='GNU ld.so'
11462 freebsd*)
11463 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11464 version_type=freebsd-$objformat
11465 case $version_type in
11466 freebsd-elf*)
11467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11468 need_version=no
11469 need_lib_prefix=no
11471 freebsd-*)
11472 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11473 need_version=yes
11475 esac
11476 shlibpath_var=LD_LIBRARY_PATH
11477 case $host_os in
11478 freebsd2*)
11479 shlibpath_overrides_runpath=yes
11481 freebsd3.01* | freebsdelf3.01*)
11482 shlibpath_overrides_runpath=yes
11483 hardcode_into_libs=yes
11485 *) # from 3.2 on
11486 shlibpath_overrides_runpath=no
11487 hardcode_into_libs=yes
11489 esac
11492 gnu*)
11493 version_type=linux
11494 need_lib_prefix=no
11495 need_version=no
11496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11497 soname_spec='${libname}${release}${shared_ext}$major'
11498 shlibpath_var=LD_LIBRARY_PATH
11499 hardcode_into_libs=yes
11502 hpux9* | hpux10* | hpux11*)
11503 # Give a soname corresponding to the major version so that dld.sl refuses to
11504 # link against other versions.
11505 version_type=sunos
11506 need_lib_prefix=no
11507 need_version=no
11508 case "$host_cpu" in
11509 ia64*)
11510 shrext_cmds='.so'
11511 hardcode_into_libs=yes
11512 dynamic_linker="$host_os dld.so"
11513 shlibpath_var=LD_LIBRARY_PATH
11514 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11516 soname_spec='${libname}${release}${shared_ext}$major'
11517 if test "X$HPUX_IA64_MODE" = X32; then
11518 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11519 else
11520 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11522 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11524 hppa*64*)
11525 shrext_cmds='.sl'
11526 hardcode_into_libs=yes
11527 dynamic_linker="$host_os dld.sl"
11528 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11529 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11531 soname_spec='${libname}${release}${shared_ext}$major'
11532 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11533 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11536 shrext_cmds='.sl'
11537 dynamic_linker="$host_os dld.sl"
11538 shlibpath_var=SHLIB_PATH
11539 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11541 soname_spec='${libname}${release}${shared_ext}$major'
11543 esac
11544 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11545 postinstall_cmds='chmod 555 $lib'
11548 irix5* | irix6* | nonstopux*)
11549 case $host_os in
11550 nonstopux*) version_type=nonstopux ;;
11552 if test "$lt_cv_prog_gnu_ld" = yes; then
11553 version_type=linux
11554 else
11555 version_type=irix
11556 fi ;;
11557 esac
11558 need_lib_prefix=no
11559 need_version=no
11560 soname_spec='${libname}${release}${shared_ext}$major'
11561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11562 case $host_os in
11563 irix5* | nonstopux*)
11564 libsuff= shlibsuff=
11567 case $LD in # libtool.m4 will add one of these switches to LD
11568 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11569 libsuff= shlibsuff= libmagic=32-bit;;
11570 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11571 libsuff=32 shlibsuff=N32 libmagic=N32;;
11572 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11573 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11574 *) libsuff= shlibsuff= libmagic=never-match;;
11575 esac
11577 esac
11578 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11579 shlibpath_overrides_runpath=no
11580 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11581 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11582 hardcode_into_libs=yes
11585 # No shared lib support for Linux oldld, aout, or coff.
11586 linux*oldld* | linux*aout* | linux*coff*)
11587 dynamic_linker=no
11590 # This must be Linux ELF.
11591 linux*)
11592 version_type=linux
11593 need_lib_prefix=no
11594 need_version=no
11595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11596 soname_spec='${libname}${release}${shared_ext}$major'
11597 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11598 shlibpath_var=LD_LIBRARY_PATH
11599 shlibpath_overrides_runpath=no
11600 # This implies no fast_install, which is unacceptable.
11601 # Some rework will be needed to allow for fast_install
11602 # before this can be enabled.
11603 hardcode_into_libs=yes
11605 # Append ld.so.conf contents to the search path
11606 if test -f /etc/ld.so.conf; then
11607 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11608 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11611 # We used to test for /lib/ld.so.1 and disable shared libraries on
11612 # powerpc, because MkLinux only supported shared libraries with the
11613 # GNU dynamic linker. Since this was broken with cross compilers,
11614 # most powerpc-linux boxes support dynamic linking these days and
11615 # people can always --disable-shared, the test was removed, and we
11616 # assume the GNU/Linux dynamic linker is in use.
11617 dynamic_linker='GNU/Linux ld.so'
11620 netbsdelf*-gnu)
11621 version_type=linux
11622 need_lib_prefix=no
11623 need_version=no
11624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11625 soname_spec='${libname}${release}${shared_ext}$major'
11626 shlibpath_var=LD_LIBRARY_PATH
11627 shlibpath_overrides_runpath=no
11628 hardcode_into_libs=yes
11629 dynamic_linker='NetBSD ld.elf_so'
11632 knetbsd*-gnu)
11633 version_type=linux
11634 need_lib_prefix=no
11635 need_version=no
11636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11637 soname_spec='${libname}${release}${shared_ext}$major'
11638 shlibpath_var=LD_LIBRARY_PATH
11639 shlibpath_overrides_runpath=no
11640 hardcode_into_libs=yes
11641 dynamic_linker='GNU ld.so'
11644 netbsd*)
11645 version_type=sunos
11646 need_lib_prefix=no
11647 need_version=no
11648 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11650 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11651 dynamic_linker='NetBSD (a.out) ld.so'
11652 else
11653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11654 soname_spec='${libname}${release}${shared_ext}$major'
11655 dynamic_linker='NetBSD ld.elf_so'
11657 shlibpath_var=LD_LIBRARY_PATH
11658 shlibpath_overrides_runpath=yes
11659 hardcode_into_libs=yes
11662 newsos6)
11663 version_type=linux
11664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11665 shlibpath_var=LD_LIBRARY_PATH
11666 shlibpath_overrides_runpath=yes
11669 nto-qnx*)
11670 version_type=linux
11671 need_lib_prefix=no
11672 need_version=no
11673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11674 soname_spec='${libname}${release}${shared_ext}$major'
11675 shlibpath_var=LD_LIBRARY_PATH
11676 shlibpath_overrides_runpath=yes
11679 openbsd*)
11680 version_type=sunos
11681 need_lib_prefix=no
11682 need_version=yes
11683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11684 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11685 shlibpath_var=LD_LIBRARY_PATH
11686 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11687 case $host_os in
11688 openbsd2.[89] | openbsd2.[89].*)
11689 shlibpath_overrides_runpath=no
11692 shlibpath_overrides_runpath=yes
11694 esac
11695 else
11696 shlibpath_overrides_runpath=yes
11700 os2*)
11701 libname_spec='$name'
11702 shrext_cmds=".dll"
11703 need_lib_prefix=no
11704 library_names_spec='$libname${shared_ext} $libname.a'
11705 dynamic_linker='OS/2 ld.exe'
11706 shlibpath_var=LIBPATH
11709 osf3* | osf4* | osf5*)
11710 version_type=osf
11711 need_lib_prefix=no
11712 need_version=no
11713 soname_spec='${libname}${release}${shared_ext}$major'
11714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11715 shlibpath_var=LD_LIBRARY_PATH
11716 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11717 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11720 sco3.2v5*)
11721 version_type=osf
11722 soname_spec='${libname}${release}${shared_ext}$major'
11723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11724 shlibpath_var=LD_LIBRARY_PATH
11727 solaris*)
11728 version_type=linux
11729 need_lib_prefix=no
11730 need_version=no
11731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11732 soname_spec='${libname}${release}${shared_ext}$major'
11733 shlibpath_var=LD_LIBRARY_PATH
11734 shlibpath_overrides_runpath=yes
11735 hardcode_into_libs=yes
11736 # ldd complains unless libraries are executable
11737 postinstall_cmds='chmod +x $lib'
11740 sunos4*)
11741 version_type=sunos
11742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11743 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11744 shlibpath_var=LD_LIBRARY_PATH
11745 shlibpath_overrides_runpath=yes
11746 if test "$with_gnu_ld" = yes; then
11747 need_lib_prefix=no
11749 need_version=yes
11752 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11753 version_type=linux
11754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11755 soname_spec='${libname}${release}${shared_ext}$major'
11756 shlibpath_var=LD_LIBRARY_PATH
11757 case $host_vendor in
11758 sni)
11759 shlibpath_overrides_runpath=no
11760 need_lib_prefix=no
11761 export_dynamic_flag_spec='${wl}-Blargedynsym'
11762 runpath_var=LD_RUN_PATH
11764 siemens)
11765 need_lib_prefix=no
11767 motorola)
11768 need_lib_prefix=no
11769 need_version=no
11770 shlibpath_overrides_runpath=no
11771 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11773 esac
11776 sysv4*MP*)
11777 if test -d /usr/nec ;then
11778 version_type=linux
11779 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11780 soname_spec='$libname${shared_ext}.$major'
11781 shlibpath_var=LD_LIBRARY_PATH
11785 uts4*)
11786 version_type=linux
11787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11788 soname_spec='${libname}${release}${shared_ext}$major'
11789 shlibpath_var=LD_LIBRARY_PATH
11793 dynamic_linker=no
11795 esac
11796 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11797 echo "${ECHO_T}$dynamic_linker" >&6
11798 test "$dynamic_linker" = no && can_build_shared=no
11800 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11801 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11802 hardcode_action_CXX=
11803 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11804 test -n "$runpath_var CXX" || \
11805 test "X$hardcode_automatic_CXX"="Xyes" ; then
11807 # We can hardcode non-existant directories.
11808 if test "$hardcode_direct_CXX" != no &&
11809 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11810 # have to relink, otherwise we might link with an installed library
11811 # when we should be linking with a yet-to-be-installed one
11812 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11813 test "$hardcode_minus_L_CXX" != no; then
11814 # Linking always hardcodes the temporary library directory.
11815 hardcode_action_CXX=relink
11816 else
11817 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11818 hardcode_action_CXX=immediate
11820 else
11821 # We cannot hardcode anything, or else we can only hardcode existing
11822 # directories.
11823 hardcode_action_CXX=unsupported
11825 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11826 echo "${ECHO_T}$hardcode_action_CXX" >&6
11828 if test "$hardcode_action_CXX" = relink; then
11829 # Fast installation is not supported
11830 enable_fast_install=no
11831 elif test "$shlibpath_overrides_runpath" = yes ||
11832 test "$enable_shared" = no; then
11833 # Fast installation is not necessary
11834 enable_fast_install=needless
11837 striplib=
11838 old_striplib=
11839 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11840 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11841 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11842 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11843 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11844 echo "$as_me:$LINENO: result: yes" >&5
11845 echo "${ECHO_T}yes" >&6
11846 else
11847 # FIXME - insert some real tests, host_os isn't really good enough
11848 case $host_os in
11849 darwin*)
11850 if test -n "$STRIP" ; then
11851 striplib="$STRIP -x"
11852 echo "$as_me:$LINENO: result: yes" >&5
11853 echo "${ECHO_T}yes" >&6
11854 else
11855 echo "$as_me:$LINENO: result: no" >&5
11856 echo "${ECHO_T}no" >&6
11860 echo "$as_me:$LINENO: result: no" >&5
11861 echo "${ECHO_T}no" >&6
11863 esac
11866 if test "x$enable_dlopen" != xyes; then
11867 enable_dlopen=unknown
11868 enable_dlopen_self=unknown
11869 enable_dlopen_self_static=unknown
11870 else
11871 lt_cv_dlopen=no
11872 lt_cv_dlopen_libs=
11874 case $host_os in
11875 beos*)
11876 lt_cv_dlopen="load_add_on"
11877 lt_cv_dlopen_libs=
11878 lt_cv_dlopen_self=yes
11881 mingw* | pw32*)
11882 lt_cv_dlopen="LoadLibrary"
11883 lt_cv_dlopen_libs=
11886 cygwin*)
11887 lt_cv_dlopen="dlopen"
11888 lt_cv_dlopen_libs=
11891 darwin*)
11892 # if libdl is installed we need to link against it
11893 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11894 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11895 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11896 echo $ECHO_N "(cached) $ECHO_C" >&6
11897 else
11898 ac_check_lib_save_LIBS=$LIBS
11899 LIBS="-ldl $LIBS"
11900 cat >conftest.$ac_ext <<_ACEOF
11901 /* confdefs.h. */
11902 _ACEOF
11903 cat confdefs.h >>conftest.$ac_ext
11904 cat >>conftest.$ac_ext <<_ACEOF
11905 /* end confdefs.h. */
11907 /* Override any gcc2 internal prototype to avoid an error. */
11908 #ifdef __cplusplus
11909 extern "C"
11910 #endif
11911 /* We use char because int might match the return type of a gcc2
11912 builtin and then its argument prototype would still apply. */
11913 char dlopen ();
11915 main ()
11917 dlopen ();
11919 return 0;
11921 _ACEOF
11922 rm -f conftest.$ac_objext conftest$ac_exeext
11923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11924 (eval $ac_link) 2>conftest.er1
11925 ac_status=$?
11926 grep -v '^ *+' conftest.er1 >conftest.err
11927 rm -f conftest.er1
11928 cat conftest.err >&5
11929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); } &&
11931 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11933 (eval $ac_try) 2>&5
11934 ac_status=$?
11935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936 (exit $ac_status); }; } &&
11937 { ac_try='test -s conftest$ac_exeext'
11938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11939 (eval $ac_try) 2>&5
11940 ac_status=$?
11941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942 (exit $ac_status); }; }; then
11943 ac_cv_lib_dl_dlopen=yes
11944 else
11945 echo "$as_me: failed program was:" >&5
11946 sed 's/^/| /' conftest.$ac_ext >&5
11948 ac_cv_lib_dl_dlopen=no
11950 rm -f conftest.err conftest.$ac_objext \
11951 conftest$ac_exeext conftest.$ac_ext
11952 LIBS=$ac_check_lib_save_LIBS
11954 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11955 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11956 if test $ac_cv_lib_dl_dlopen = yes; then
11957 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11958 else
11960 lt_cv_dlopen="dyld"
11961 lt_cv_dlopen_libs=
11962 lt_cv_dlopen_self=yes
11969 echo "$as_me:$LINENO: checking for shl_load" >&5
11970 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11971 if test "${ac_cv_func_shl_load+set}" = set; then
11972 echo $ECHO_N "(cached) $ECHO_C" >&6
11973 else
11974 cat >conftest.$ac_ext <<_ACEOF
11975 /* confdefs.h. */
11976 _ACEOF
11977 cat confdefs.h >>conftest.$ac_ext
11978 cat >>conftest.$ac_ext <<_ACEOF
11979 /* end confdefs.h. */
11980 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11982 #define shl_load innocuous_shl_load
11984 /* System header to define __stub macros and hopefully few prototypes,
11985 which can conflict with char shl_load (); below.
11986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11987 <limits.h> exists even on freestanding compilers. */
11989 #ifdef __STDC__
11990 # include <limits.h>
11991 #else
11992 # include <assert.h>
11993 #endif
11995 #undef shl_load
11997 /* Override any gcc2 internal prototype to avoid an error. */
11998 #ifdef __cplusplus
11999 extern "C"
12001 #endif
12002 /* We use char because int might match the return type of a gcc2
12003 builtin and then its argument prototype would still apply. */
12004 char shl_load ();
12005 /* The GNU C library defines this for functions which it implements
12006 to always fail with ENOSYS. Some functions are actually named
12007 something starting with __ and the normal name is an alias. */
12008 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12009 choke me
12010 #else
12011 char (*f) () = shl_load;
12012 #endif
12013 #ifdef __cplusplus
12015 #endif
12018 main ()
12020 return f != shl_load;
12022 return 0;
12024 _ACEOF
12025 rm -f conftest.$ac_objext conftest$ac_exeext
12026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12027 (eval $ac_link) 2>conftest.er1
12028 ac_status=$?
12029 grep -v '^ *+' conftest.er1 >conftest.err
12030 rm -f conftest.er1
12031 cat conftest.err >&5
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); } &&
12034 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12036 (eval $ac_try) 2>&5
12037 ac_status=$?
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); }; } &&
12040 { ac_try='test -s conftest$ac_exeext'
12041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12042 (eval $ac_try) 2>&5
12043 ac_status=$?
12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); }; }; then
12046 ac_cv_func_shl_load=yes
12047 else
12048 echo "$as_me: failed program was:" >&5
12049 sed 's/^/| /' conftest.$ac_ext >&5
12051 ac_cv_func_shl_load=no
12053 rm -f conftest.err conftest.$ac_objext \
12054 conftest$ac_exeext conftest.$ac_ext
12056 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12057 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12058 if test $ac_cv_func_shl_load = yes; then
12059 lt_cv_dlopen="shl_load"
12060 else
12061 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12062 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12063 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12064 echo $ECHO_N "(cached) $ECHO_C" >&6
12065 else
12066 ac_check_lib_save_LIBS=$LIBS
12067 LIBS="-ldld $LIBS"
12068 cat >conftest.$ac_ext <<_ACEOF
12069 /* confdefs.h. */
12070 _ACEOF
12071 cat confdefs.h >>conftest.$ac_ext
12072 cat >>conftest.$ac_ext <<_ACEOF
12073 /* end confdefs.h. */
12075 /* Override any gcc2 internal prototype to avoid an error. */
12076 #ifdef __cplusplus
12077 extern "C"
12078 #endif
12079 /* We use char because int might match the return type of a gcc2
12080 builtin and then its argument prototype would still apply. */
12081 char shl_load ();
12083 main ()
12085 shl_load ();
12087 return 0;
12089 _ACEOF
12090 rm -f conftest.$ac_objext conftest$ac_exeext
12091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12092 (eval $ac_link) 2>conftest.er1
12093 ac_status=$?
12094 grep -v '^ *+' conftest.er1 >conftest.err
12095 rm -f conftest.er1
12096 cat conftest.err >&5
12097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098 (exit $ac_status); } &&
12099 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12101 (eval $ac_try) 2>&5
12102 ac_status=$?
12103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); }; } &&
12105 { ac_try='test -s conftest$ac_exeext'
12106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12107 (eval $ac_try) 2>&5
12108 ac_status=$?
12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110 (exit $ac_status); }; }; then
12111 ac_cv_lib_dld_shl_load=yes
12112 else
12113 echo "$as_me: failed program was:" >&5
12114 sed 's/^/| /' conftest.$ac_ext >&5
12116 ac_cv_lib_dld_shl_load=no
12118 rm -f conftest.err conftest.$ac_objext \
12119 conftest$ac_exeext conftest.$ac_ext
12120 LIBS=$ac_check_lib_save_LIBS
12122 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12123 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12124 if test $ac_cv_lib_dld_shl_load = yes; then
12125 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12126 else
12127 echo "$as_me:$LINENO: checking for dlopen" >&5
12128 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12129 if test "${ac_cv_func_dlopen+set}" = set; then
12130 echo $ECHO_N "(cached) $ECHO_C" >&6
12131 else
12132 cat >conftest.$ac_ext <<_ACEOF
12133 /* confdefs.h. */
12134 _ACEOF
12135 cat confdefs.h >>conftest.$ac_ext
12136 cat >>conftest.$ac_ext <<_ACEOF
12137 /* end confdefs.h. */
12138 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12139 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12140 #define dlopen innocuous_dlopen
12142 /* System header to define __stub macros and hopefully few prototypes,
12143 which can conflict with char dlopen (); below.
12144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12145 <limits.h> exists even on freestanding compilers. */
12147 #ifdef __STDC__
12148 # include <limits.h>
12149 #else
12150 # include <assert.h>
12151 #endif
12153 #undef dlopen
12155 /* Override any gcc2 internal prototype to avoid an error. */
12156 #ifdef __cplusplus
12157 extern "C"
12159 #endif
12160 /* We use char because int might match the return type of a gcc2
12161 builtin and then its argument prototype would still apply. */
12162 char dlopen ();
12163 /* The GNU C library defines this for functions which it implements
12164 to always fail with ENOSYS. Some functions are actually named
12165 something starting with __ and the normal name is an alias. */
12166 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12167 choke me
12168 #else
12169 char (*f) () = dlopen;
12170 #endif
12171 #ifdef __cplusplus
12173 #endif
12176 main ()
12178 return f != dlopen;
12180 return 0;
12182 _ACEOF
12183 rm -f conftest.$ac_objext conftest$ac_exeext
12184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12185 (eval $ac_link) 2>conftest.er1
12186 ac_status=$?
12187 grep -v '^ *+' conftest.er1 >conftest.err
12188 rm -f conftest.er1
12189 cat conftest.err >&5
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); } &&
12192 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12194 (eval $ac_try) 2>&5
12195 ac_status=$?
12196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197 (exit $ac_status); }; } &&
12198 { ac_try='test -s conftest$ac_exeext'
12199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12200 (eval $ac_try) 2>&5
12201 ac_status=$?
12202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); }; }; then
12204 ac_cv_func_dlopen=yes
12205 else
12206 echo "$as_me: failed program was:" >&5
12207 sed 's/^/| /' conftest.$ac_ext >&5
12209 ac_cv_func_dlopen=no
12211 rm -f conftest.err conftest.$ac_objext \
12212 conftest$ac_exeext conftest.$ac_ext
12214 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12215 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12216 if test $ac_cv_func_dlopen = yes; then
12217 lt_cv_dlopen="dlopen"
12218 else
12219 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12220 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12221 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12222 echo $ECHO_N "(cached) $ECHO_C" >&6
12223 else
12224 ac_check_lib_save_LIBS=$LIBS
12225 LIBS="-ldl $LIBS"
12226 cat >conftest.$ac_ext <<_ACEOF
12227 /* confdefs.h. */
12228 _ACEOF
12229 cat confdefs.h >>conftest.$ac_ext
12230 cat >>conftest.$ac_ext <<_ACEOF
12231 /* end confdefs.h. */
12233 /* Override any gcc2 internal prototype to avoid an error. */
12234 #ifdef __cplusplus
12235 extern "C"
12236 #endif
12237 /* We use char because int might match the return type of a gcc2
12238 builtin and then its argument prototype would still apply. */
12239 char dlopen ();
12241 main ()
12243 dlopen ();
12245 return 0;
12247 _ACEOF
12248 rm -f conftest.$ac_objext conftest$ac_exeext
12249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12250 (eval $ac_link) 2>conftest.er1
12251 ac_status=$?
12252 grep -v '^ *+' conftest.er1 >conftest.err
12253 rm -f conftest.er1
12254 cat conftest.err >&5
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); } &&
12257 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12259 (eval $ac_try) 2>&5
12260 ac_status=$?
12261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); }; } &&
12263 { ac_try='test -s conftest$ac_exeext'
12264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12265 (eval $ac_try) 2>&5
12266 ac_status=$?
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); }; }; then
12269 ac_cv_lib_dl_dlopen=yes
12270 else
12271 echo "$as_me: failed program was:" >&5
12272 sed 's/^/| /' conftest.$ac_ext >&5
12274 ac_cv_lib_dl_dlopen=no
12276 rm -f conftest.err conftest.$ac_objext \
12277 conftest$ac_exeext conftest.$ac_ext
12278 LIBS=$ac_check_lib_save_LIBS
12280 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12281 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12282 if test $ac_cv_lib_dl_dlopen = yes; then
12283 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12284 else
12285 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12286 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12287 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12288 echo $ECHO_N "(cached) $ECHO_C" >&6
12289 else
12290 ac_check_lib_save_LIBS=$LIBS
12291 LIBS="-lsvld $LIBS"
12292 cat >conftest.$ac_ext <<_ACEOF
12293 /* confdefs.h. */
12294 _ACEOF
12295 cat confdefs.h >>conftest.$ac_ext
12296 cat >>conftest.$ac_ext <<_ACEOF
12297 /* end confdefs.h. */
12299 /* Override any gcc2 internal prototype to avoid an error. */
12300 #ifdef __cplusplus
12301 extern "C"
12302 #endif
12303 /* We use char because int might match the return type of a gcc2
12304 builtin and then its argument prototype would still apply. */
12305 char dlopen ();
12307 main ()
12309 dlopen ();
12311 return 0;
12313 _ACEOF
12314 rm -f conftest.$ac_objext conftest$ac_exeext
12315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12316 (eval $ac_link) 2>conftest.er1
12317 ac_status=$?
12318 grep -v '^ *+' conftest.er1 >conftest.err
12319 rm -f conftest.er1
12320 cat conftest.err >&5
12321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322 (exit $ac_status); } &&
12323 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12325 (eval $ac_try) 2>&5
12326 ac_status=$?
12327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328 (exit $ac_status); }; } &&
12329 { ac_try='test -s conftest$ac_exeext'
12330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12331 (eval $ac_try) 2>&5
12332 ac_status=$?
12333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334 (exit $ac_status); }; }; then
12335 ac_cv_lib_svld_dlopen=yes
12336 else
12337 echo "$as_me: failed program was:" >&5
12338 sed 's/^/| /' conftest.$ac_ext >&5
12340 ac_cv_lib_svld_dlopen=no
12342 rm -f conftest.err conftest.$ac_objext \
12343 conftest$ac_exeext conftest.$ac_ext
12344 LIBS=$ac_check_lib_save_LIBS
12346 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12347 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12348 if test $ac_cv_lib_svld_dlopen = yes; then
12349 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12350 else
12351 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12352 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12353 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12354 echo $ECHO_N "(cached) $ECHO_C" >&6
12355 else
12356 ac_check_lib_save_LIBS=$LIBS
12357 LIBS="-ldld $LIBS"
12358 cat >conftest.$ac_ext <<_ACEOF
12359 /* confdefs.h. */
12360 _ACEOF
12361 cat confdefs.h >>conftest.$ac_ext
12362 cat >>conftest.$ac_ext <<_ACEOF
12363 /* end confdefs.h. */
12365 /* Override any gcc2 internal prototype to avoid an error. */
12366 #ifdef __cplusplus
12367 extern "C"
12368 #endif
12369 /* We use char because int might match the return type of a gcc2
12370 builtin and then its argument prototype would still apply. */
12371 char dld_link ();
12373 main ()
12375 dld_link ();
12377 return 0;
12379 _ACEOF
12380 rm -f conftest.$ac_objext conftest$ac_exeext
12381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12382 (eval $ac_link) 2>conftest.er1
12383 ac_status=$?
12384 grep -v '^ *+' conftest.er1 >conftest.err
12385 rm -f conftest.er1
12386 cat conftest.err >&5
12387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388 (exit $ac_status); } &&
12389 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12391 (eval $ac_try) 2>&5
12392 ac_status=$?
12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); }; } &&
12395 { ac_try='test -s conftest$ac_exeext'
12396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12397 (eval $ac_try) 2>&5
12398 ac_status=$?
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); }; }; then
12401 ac_cv_lib_dld_dld_link=yes
12402 else
12403 echo "$as_me: failed program was:" >&5
12404 sed 's/^/| /' conftest.$ac_ext >&5
12406 ac_cv_lib_dld_dld_link=no
12408 rm -f conftest.err conftest.$ac_objext \
12409 conftest$ac_exeext conftest.$ac_ext
12410 LIBS=$ac_check_lib_save_LIBS
12412 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12413 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12414 if test $ac_cv_lib_dld_dld_link = yes; then
12415 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12434 esac
12436 if test "x$lt_cv_dlopen" != xno; then
12437 enable_dlopen=yes
12438 else
12439 enable_dlopen=no
12442 case $lt_cv_dlopen in
12443 dlopen)
12444 save_CPPFLAGS="$CPPFLAGS"
12445 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12447 save_LDFLAGS="$LDFLAGS"
12448 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12450 save_LIBS="$LIBS"
12451 LIBS="$lt_cv_dlopen_libs $LIBS"
12453 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12454 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12455 if test "${lt_cv_dlopen_self+set}" = set; then
12456 echo $ECHO_N "(cached) $ECHO_C" >&6
12457 else
12458 if test "$cross_compiling" = yes; then :
12459 lt_cv_dlopen_self=cross
12460 else
12461 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12462 lt_status=$lt_dlunknown
12463 cat > conftest.$ac_ext <<EOF
12464 #line 12464 "configure"
12465 #include "confdefs.h"
12467 #if HAVE_DLFCN_H
12468 #include <dlfcn.h>
12469 #endif
12471 #include <stdio.h>
12473 #ifdef RTLD_GLOBAL
12474 # define LT_DLGLOBAL RTLD_GLOBAL
12475 #else
12476 # ifdef DL_GLOBAL
12477 # define LT_DLGLOBAL DL_GLOBAL
12478 # else
12479 # define LT_DLGLOBAL 0
12480 # endif
12481 #endif
12483 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12484 find out it does not work in some platform. */
12485 #ifndef LT_DLLAZY_OR_NOW
12486 # ifdef RTLD_LAZY
12487 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12488 # else
12489 # ifdef DL_LAZY
12490 # define LT_DLLAZY_OR_NOW DL_LAZY
12491 # else
12492 # ifdef RTLD_NOW
12493 # define LT_DLLAZY_OR_NOW RTLD_NOW
12494 # else
12495 # ifdef DL_NOW
12496 # define LT_DLLAZY_OR_NOW DL_NOW
12497 # else
12498 # define LT_DLLAZY_OR_NOW 0
12499 # endif
12500 # endif
12501 # endif
12502 # endif
12503 #endif
12505 #ifdef __cplusplus
12506 extern "C" void exit (int);
12507 #endif
12509 void fnord() { int i=42;}
12510 int main ()
12512 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12513 int status = $lt_dlunknown;
12515 if (self)
12517 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12518 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12519 /* dlclose (self); */
12522 exit (status);
12525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12526 (eval $ac_link) 2>&5
12527 ac_status=$?
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12530 (./conftest; exit; ) 2>/dev/null
12531 lt_status=$?
12532 case x$lt_status in
12533 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12534 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12535 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12536 esac
12537 else :
12538 # compilation failed
12539 lt_cv_dlopen_self=no
12542 rm -fr conftest*
12546 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12547 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12549 if test "x$lt_cv_dlopen_self" = xyes; then
12550 LDFLAGS="$LDFLAGS $link_static_flag"
12551 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12552 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12553 if test "${lt_cv_dlopen_self_static+set}" = set; then
12554 echo $ECHO_N "(cached) $ECHO_C" >&6
12555 else
12556 if test "$cross_compiling" = yes; then :
12557 lt_cv_dlopen_self_static=cross
12558 else
12559 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12560 lt_status=$lt_dlunknown
12561 cat > conftest.$ac_ext <<EOF
12562 #line 12562 "configure"
12563 #include "confdefs.h"
12565 #if HAVE_DLFCN_H
12566 #include <dlfcn.h>
12567 #endif
12569 #include <stdio.h>
12571 #ifdef RTLD_GLOBAL
12572 # define LT_DLGLOBAL RTLD_GLOBAL
12573 #else
12574 # ifdef DL_GLOBAL
12575 # define LT_DLGLOBAL DL_GLOBAL
12576 # else
12577 # define LT_DLGLOBAL 0
12578 # endif
12579 #endif
12581 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12582 find out it does not work in some platform. */
12583 #ifndef LT_DLLAZY_OR_NOW
12584 # ifdef RTLD_LAZY
12585 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12586 # else
12587 # ifdef DL_LAZY
12588 # define LT_DLLAZY_OR_NOW DL_LAZY
12589 # else
12590 # ifdef RTLD_NOW
12591 # define LT_DLLAZY_OR_NOW RTLD_NOW
12592 # else
12593 # ifdef DL_NOW
12594 # define LT_DLLAZY_OR_NOW DL_NOW
12595 # else
12596 # define LT_DLLAZY_OR_NOW 0
12597 # endif
12598 # endif
12599 # endif
12600 # endif
12601 #endif
12603 #ifdef __cplusplus
12604 extern "C" void exit (int);
12605 #endif
12607 void fnord() { int i=42;}
12608 int main ()
12610 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12611 int status = $lt_dlunknown;
12613 if (self)
12615 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12616 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12617 /* dlclose (self); */
12620 exit (status);
12623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12624 (eval $ac_link) 2>&5
12625 ac_status=$?
12626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12628 (./conftest; exit; ) 2>/dev/null
12629 lt_status=$?
12630 case x$lt_status in
12631 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12632 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12633 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12634 esac
12635 else :
12636 # compilation failed
12637 lt_cv_dlopen_self_static=no
12640 rm -fr conftest*
12644 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12645 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12648 CPPFLAGS="$save_CPPFLAGS"
12649 LDFLAGS="$save_LDFLAGS"
12650 LIBS="$save_LIBS"
12652 esac
12654 case $lt_cv_dlopen_self in
12655 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12656 *) enable_dlopen_self=unknown ;;
12657 esac
12659 case $lt_cv_dlopen_self_static in
12660 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12661 *) enable_dlopen_self_static=unknown ;;
12662 esac
12666 # The else clause should only fire when bootstrapping the
12667 # libtool distribution, otherwise you forgot to ship ltmain.sh
12668 # with your package, and you will get complaints that there are
12669 # no rules to generate ltmain.sh.
12670 if test -f "$ltmain"; then
12671 # See if we are running on zsh, and set the options which allow our commands through
12672 # without removal of \ escapes.
12673 if test -n "${ZSH_VERSION+set}" ; then
12674 setopt NO_GLOB_SUBST
12676 # Now quote all the things that may contain metacharacters while being
12677 # careful not to overquote the AC_SUBSTed values. We take copies of the
12678 # variables and quote the copies for generation of the libtool script.
12679 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12680 SED SHELL STRIP \
12681 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12682 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12683 deplibs_check_method reload_flag reload_cmds need_locks \
12684 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12685 lt_cv_sys_global_symbol_to_c_name_address \
12686 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12687 old_postinstall_cmds old_postuninstall_cmds \
12688 compiler_CXX \
12689 CC_CXX \
12690 LD_CXX \
12691 lt_prog_compiler_wl_CXX \
12692 lt_prog_compiler_pic_CXX \
12693 lt_prog_compiler_static_CXX \
12694 lt_prog_compiler_no_builtin_flag_CXX \
12695 export_dynamic_flag_spec_CXX \
12696 thread_safe_flag_spec_CXX \
12697 whole_archive_flag_spec_CXX \
12698 enable_shared_with_static_runtimes_CXX \
12699 old_archive_cmds_CXX \
12700 old_archive_from_new_cmds_CXX \
12701 predep_objects_CXX \
12702 postdep_objects_CXX \
12703 predeps_CXX \
12704 postdeps_CXX \
12705 compiler_lib_search_path_CXX \
12706 archive_cmds_CXX \
12707 archive_expsym_cmds_CXX \
12708 postinstall_cmds_CXX \
12709 postuninstall_cmds_CXX \
12710 old_archive_from_expsyms_cmds_CXX \
12711 allow_undefined_flag_CXX \
12712 no_undefined_flag_CXX \
12713 export_symbols_cmds_CXX \
12714 hardcode_libdir_flag_spec_CXX \
12715 hardcode_libdir_flag_spec_ld_CXX \
12716 hardcode_libdir_separator_CXX \
12717 hardcode_automatic_CXX \
12718 module_cmds_CXX \
12719 module_expsym_cmds_CXX \
12720 lt_cv_prog_compiler_c_o_CXX \
12721 exclude_expsyms_CXX \
12722 include_expsyms_CXX; do
12724 case $var in
12725 old_archive_cmds_CXX | \
12726 old_archive_from_new_cmds_CXX | \
12727 archive_cmds_CXX | \
12728 archive_expsym_cmds_CXX | \
12729 module_cmds_CXX | \
12730 module_expsym_cmds_CXX | \
12731 old_archive_from_expsyms_cmds_CXX | \
12732 export_symbols_cmds_CXX | \
12733 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12734 postinstall_cmds | postuninstall_cmds | \
12735 old_postinstall_cmds | old_postuninstall_cmds | \
12736 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12737 # Double-quote double-evaled strings.
12738 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12741 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12743 esac
12744 done
12746 case $lt_echo in
12747 *'\$0 --fallback-echo"')
12748 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12750 esac
12752 cfgfile="$ofile"
12754 cat <<__EOF__ >> "$cfgfile"
12755 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12757 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12759 # Shell to use when invoking shell scripts.
12760 SHELL=$lt_SHELL
12762 # Whether or not to build shared libraries.
12763 build_libtool_libs=$enable_shared
12765 # Whether or not to build static libraries.
12766 build_old_libs=$enable_static
12768 # Whether or not to add -lc for building shared libraries.
12769 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12771 # Whether or not to disallow shared libs when runtime libs are static
12772 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12774 # Whether or not to optimize for fast installation.
12775 fast_install=$enable_fast_install
12777 # The host system.
12778 host_alias=$host_alias
12779 host=$host
12781 # An echo program that does not interpret backslashes.
12782 echo=$lt_echo
12784 # The archiver.
12785 AR=$lt_AR
12786 AR_FLAGS=$lt_AR_FLAGS
12788 # A C compiler.
12789 LTCC=$lt_LTCC
12791 # A language-specific compiler.
12792 CC=$lt_compiler_CXX
12794 # Is the compiler the GNU C compiler?
12795 with_gcc=$GCC_CXX
12797 # An ERE matcher.
12798 EGREP=$lt_EGREP
12800 # The linker used to build libraries.
12801 LD=$lt_LD_CXX
12803 # Whether we need hard or soft links.
12804 LN_S=$lt_LN_S
12806 # A BSD-compatible nm program.
12807 NM=$lt_NM
12809 # A symbol stripping program
12810 STRIP=$lt_STRIP
12812 # Used to examine libraries when file_magic_cmd begins "file"
12813 MAGIC_CMD=$MAGIC_CMD
12815 # Used on cygwin: DLL creation program.
12816 DLLTOOL="$DLLTOOL"
12818 # Used on cygwin: object dumper.
12819 OBJDUMP="$OBJDUMP"
12821 # Used on cygwin: assembler.
12822 AS="$AS"
12824 # The name of the directory that contains temporary libtool files.
12825 objdir=$objdir
12827 # How to create reloadable object files.
12828 reload_flag=$lt_reload_flag
12829 reload_cmds=$lt_reload_cmds
12831 # How to pass a linker flag through the compiler.
12832 wl=$lt_lt_prog_compiler_wl_CXX
12834 # Object file suffix (normally "o").
12835 objext="$ac_objext"
12837 # Old archive suffix (normally "a").
12838 libext="$libext"
12840 # Shared library suffix (normally ".so").
12841 shrext_cmds='$shrext_cmds'
12843 # Executable file suffix (normally "").
12844 exeext="$exeext"
12846 # Additional compiler flags for building library objects.
12847 pic_flag=$lt_lt_prog_compiler_pic_CXX
12848 pic_mode=$pic_mode
12850 # What is the maximum length of a command?
12851 max_cmd_len=$lt_cv_sys_max_cmd_len
12853 # Does compiler simultaneously support -c and -o options?
12854 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12856 # Must we lock files when doing compilation ?
12857 need_locks=$lt_need_locks
12859 # Do we need the lib prefix for modules?
12860 need_lib_prefix=$need_lib_prefix
12862 # Do we need a version for libraries?
12863 need_version=$need_version
12865 # Whether dlopen is supported.
12866 dlopen_support=$enable_dlopen
12868 # Whether dlopen of programs is supported.
12869 dlopen_self=$enable_dlopen_self
12871 # Whether dlopen of statically linked programs is supported.
12872 dlopen_self_static=$enable_dlopen_self_static
12874 # Compiler flag to prevent dynamic linking.
12875 link_static_flag=$lt_lt_prog_compiler_static_CXX
12877 # Compiler flag to turn off builtin functions.
12878 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12880 # Compiler flag to allow reflexive dlopens.
12881 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12883 # Compiler flag to generate shared objects directly from archives.
12884 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12886 # Compiler flag to generate thread-safe objects.
12887 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12889 # Library versioning type.
12890 version_type=$version_type
12892 # Format of library name prefix.
12893 libname_spec=$lt_libname_spec
12895 # List of archive names. First name is the real one, the rest are links.
12896 # The last name is the one that the linker finds with -lNAME.
12897 library_names_spec=$lt_library_names_spec
12899 # The coded name of the library, if different from the real name.
12900 soname_spec=$lt_soname_spec
12902 # Commands used to build and install an old-style archive.
12903 RANLIB=$lt_RANLIB
12904 old_archive_cmds=$lt_old_archive_cmds_CXX
12905 old_postinstall_cmds=$lt_old_postinstall_cmds
12906 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12908 # Create an old-style archive from a shared archive.
12909 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12911 # Create a temporary old-style archive to link instead of a shared archive.
12912 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12914 # Commands used to build and install a shared archive.
12915 archive_cmds=$lt_archive_cmds_CXX
12916 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12917 postinstall_cmds=$lt_postinstall_cmds
12918 postuninstall_cmds=$lt_postuninstall_cmds
12920 # Commands used to build a loadable module (assumed same as above if empty)
12921 module_cmds=$lt_module_cmds_CXX
12922 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12924 # Commands to strip libraries.
12925 old_striplib=$lt_old_striplib
12926 striplib=$lt_striplib
12928 # Dependencies to place before the objects being linked to create a
12929 # shared library.
12930 predep_objects=$lt_predep_objects_CXX
12932 # Dependencies to place after the objects being linked to create a
12933 # shared library.
12934 postdep_objects=$lt_postdep_objects_CXX
12936 # Dependencies to place before the objects being linked to create a
12937 # shared library.
12938 predeps=$lt_predeps_CXX
12940 # Dependencies to place after the objects being linked to create a
12941 # shared library.
12942 postdeps=$lt_postdeps_CXX
12944 # The library search path used internally by the compiler when linking
12945 # a shared library.
12946 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12948 # Method to check whether dependent libraries are shared objects.
12949 deplibs_check_method=$lt_deplibs_check_method
12951 # Command to use when deplibs_check_method == file_magic.
12952 file_magic_cmd=$lt_file_magic_cmd
12954 # Flag that allows shared libraries with undefined symbols to be built.
12955 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12957 # Flag that forces no undefined symbols.
12958 no_undefined_flag=$lt_no_undefined_flag_CXX
12960 # Commands used to finish a libtool library installation in a directory.
12961 finish_cmds=$lt_finish_cmds
12963 # Same as above, but a single script fragment to be evaled but not shown.
12964 finish_eval=$lt_finish_eval
12966 # Take the output of nm and produce a listing of raw symbols and C names.
12967 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12969 # Transform the output of nm in a proper C declaration
12970 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12972 # Transform the output of nm in a C name address pair
12973 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12975 # This is the shared library runtime path variable.
12976 runpath_var=$runpath_var
12978 # This is the shared library path variable.
12979 shlibpath_var=$shlibpath_var
12981 # Is shlibpath searched before the hard-coded library search path?
12982 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12984 # How to hardcode a shared library path into an executable.
12985 hardcode_action=$hardcode_action_CXX
12987 # Whether we should hardcode library paths into libraries.
12988 hardcode_into_libs=$hardcode_into_libs
12990 # Flag to hardcode \$libdir into a binary during linking.
12991 # This must work even if \$libdir does not exist.
12992 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12994 # If ld is used when linking, flag to hardcode \$libdir into
12995 # a binary during linking. This must work even if \$libdir does
12996 # not exist.
12997 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12999 # Whether we need a single -rpath flag with a separated argument.
13000 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13002 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13003 # resulting binary.
13004 hardcode_direct=$hardcode_direct_CXX
13006 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13007 # resulting binary.
13008 hardcode_minus_L=$hardcode_minus_L_CXX
13010 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13011 # the resulting binary.
13012 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13014 # Set to yes if building a shared library automatically hardcodes DIR into the library
13015 # and all subsequent libraries and executables linked against it.
13016 hardcode_automatic=$hardcode_automatic_CXX
13018 # Variables whose values should be saved in libtool wrapper scripts and
13019 # restored at relink time.
13020 variables_saved_for_relink="$variables_saved_for_relink"
13022 # Whether libtool must link a program against all its dependency libraries.
13023 link_all_deplibs=$link_all_deplibs_CXX
13025 # Compile-time system search path for libraries
13026 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13028 # Run-time system search path for libraries
13029 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13031 # Fix the shell variable \$srcfile for the compiler.
13032 fix_srcfile_path="$fix_srcfile_path_CXX"
13034 # Set to yes if exported symbols are required.
13035 always_export_symbols=$always_export_symbols_CXX
13037 # The commands to list exported symbols.
13038 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13040 # The commands to extract the exported symbol list from a shared archive.
13041 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13043 # Symbols that should not be listed in the preloaded symbols.
13044 exclude_expsyms=$lt_exclude_expsyms_CXX
13046 # Symbols that must always be exported.
13047 include_expsyms=$lt_include_expsyms_CXX
13049 # ### END LIBTOOL TAG CONFIG: $tagname
13051 __EOF__
13054 else
13055 # If there is no Makefile yet, we rely on a make rule to execute
13056 # `config.status --recheck' to rerun these tests and create the
13057 # libtool script then.
13058 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13059 if test -f "$ltmain_in"; then
13060 test -f Makefile && make "$ltmain"
13065 ac_ext=c
13066 ac_cpp='$CPP $CPPFLAGS'
13067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13071 CC=$lt_save_CC
13072 LDCXX=$LD
13073 LD=$lt_save_LD
13074 GCC=$lt_save_GCC
13075 with_gnu_ldcxx=$with_gnu_ld
13076 with_gnu_ld=$lt_save_with_gnu_ld
13077 lt_cv_path_LDCXX=$lt_cv_path_LD
13078 lt_cv_path_LD=$lt_save_path_LD
13079 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13080 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13082 else
13083 tagname=""
13087 F77)
13088 if test -n "$F77" && test "X$F77" != "Xno"; then
13090 ac_ext=f
13091 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13092 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13093 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13096 archive_cmds_need_lc_F77=no
13097 allow_undefined_flag_F77=
13098 always_export_symbols_F77=no
13099 archive_expsym_cmds_F77=
13100 export_dynamic_flag_spec_F77=
13101 hardcode_direct_F77=no
13102 hardcode_libdir_flag_spec_F77=
13103 hardcode_libdir_flag_spec_ld_F77=
13104 hardcode_libdir_separator_F77=
13105 hardcode_minus_L_F77=no
13106 hardcode_automatic_F77=no
13107 module_cmds_F77=
13108 module_expsym_cmds_F77=
13109 link_all_deplibs_F77=unknown
13110 old_archive_cmds_F77=$old_archive_cmds
13111 no_undefined_flag_F77=
13112 whole_archive_flag_spec_F77=
13113 enable_shared_with_static_runtimes_F77=no
13115 # Source file extension for f77 test sources.
13116 ac_ext=f
13118 # Object file extension for compiled f77 test sources.
13119 objext=o
13120 objext_F77=$objext
13122 # Code to be used in simple compile tests
13123 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13125 # Code to be used in simple link tests
13126 lt_simple_link_test_code=" program t\n end\n"
13128 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13130 # If no C compiler was specified, use CC.
13131 LTCC=${LTCC-"$CC"}
13133 # Allow CC to be a program name with arguments.
13134 compiler=$CC
13137 # Allow CC to be a program name with arguments.
13138 lt_save_CC="$CC"
13139 CC=${F77-"f77"}
13140 compiler=$CC
13141 compiler_F77=$CC
13142 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13144 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13145 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13146 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13147 echo "${ECHO_T}$can_build_shared" >&6
13149 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13150 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13151 test "$can_build_shared" = "no" && enable_shared=no
13153 # On AIX, shared libraries and static libraries use the same namespace, and
13154 # are all built from PIC.
13155 case "$host_os" in
13156 aix3*)
13157 test "$enable_shared" = yes && enable_static=no
13158 if test -n "$RANLIB"; then
13159 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13160 postinstall_cmds='$RANLIB $lib'
13163 aix4* | aix5*)
13164 test "$enable_shared" = yes && enable_static=no
13166 esac
13167 echo "$as_me:$LINENO: result: $enable_shared" >&5
13168 echo "${ECHO_T}$enable_shared" >&6
13170 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13171 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13172 # Make sure either enable_shared or enable_static is yes.
13173 test "$enable_shared" = yes || enable_static=yes
13174 echo "$as_me:$LINENO: result: $enable_static" >&5
13175 echo "${ECHO_T}$enable_static" >&6
13177 test "$ld_shlibs_F77" = no && can_build_shared=no
13179 GCC_F77="$G77"
13180 LD_F77="$LD"
13182 lt_prog_compiler_wl_F77=
13183 lt_prog_compiler_pic_F77=
13184 lt_prog_compiler_static_F77=
13186 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13187 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13189 if test "$GCC" = yes; then
13190 lt_prog_compiler_wl_F77='-Wl,'
13191 lt_prog_compiler_static_F77='-static'
13193 case $host_os in
13194 aix*)
13195 # All AIX code is PIC.
13196 if test "$host_cpu" = ia64; then
13197 # AIX 5 now supports IA64 processor
13198 lt_prog_compiler_static_F77='-Bstatic'
13202 amigaos*)
13203 # FIXME: we need at least 68020 code to build shared libraries, but
13204 # adding the `-m68020' flag to GCC prevents building anything better,
13205 # like `-m68040'.
13206 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13209 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13210 # PIC is the default for these OSes.
13213 mingw* | pw32* | os2*)
13214 # This hack is so that the source file can tell whether it is being
13215 # built for inclusion in a dll (and should export symbols for example).
13216 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13219 darwin* | rhapsody*)
13220 # PIC is the default on this platform
13221 # Common symbols not allowed in MH_DYLIB files
13222 lt_prog_compiler_pic_F77='-fno-common'
13225 msdosdjgpp*)
13226 # Just because we use GCC doesn't mean we suddenly get shared libraries
13227 # on systems that don't support them.
13228 lt_prog_compiler_can_build_shared_F77=no
13229 enable_shared=no
13232 sysv4*MP*)
13233 if test -d /usr/nec; then
13234 lt_prog_compiler_pic_F77=-Kconform_pic
13238 hpux*)
13239 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13240 # not for PA HP-UX.
13241 case "$host_cpu" in
13242 hppa*64*|ia64*)
13243 # +Z the default
13246 lt_prog_compiler_pic_F77='-fPIC'
13248 esac
13252 lt_prog_compiler_pic_F77='-fPIC'
13254 esac
13255 else
13256 # PORTME Check for flag to pass linker flags through the system compiler.
13257 case $host_os in
13258 aix*)
13259 lt_prog_compiler_wl_F77='-Wl,'
13260 if test "$host_cpu" = ia64; then
13261 # AIX 5 now supports IA64 processor
13262 lt_prog_compiler_static_F77='-Bstatic'
13263 else
13264 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13268 mingw* | pw32* | os2*)
13269 # This hack is so that the source file can tell whether it is being
13270 # built for inclusion in a dll (and should export symbols for example).
13271 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13274 hpux9* | hpux10* | hpux11*)
13275 lt_prog_compiler_wl_F77='-Wl,'
13276 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13277 # not for PA HP-UX.
13278 case "$host_cpu" in
13279 hppa*64*|ia64*)
13280 # +Z the default
13283 lt_prog_compiler_pic_F77='+Z'
13285 esac
13286 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13287 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13290 irix5* | irix6* | nonstopux*)
13291 lt_prog_compiler_wl_F77='-Wl,'
13292 # PIC (with -KPIC) is the default.
13293 lt_prog_compiler_static_F77='-non_shared'
13296 newsos6)
13297 lt_prog_compiler_pic_F77='-KPIC'
13298 lt_prog_compiler_static_F77='-Bstatic'
13301 linux*)
13302 case $CC in
13303 icc* | ecc*)
13304 lt_prog_compiler_wl_F77='-Wl,'
13305 lt_prog_compiler_pic_F77='-KPIC'
13306 lt_prog_compiler_static_F77='-static'
13308 ccc*)
13309 lt_prog_compiler_wl_F77='-Wl,'
13310 # All Alpha code is PIC.
13311 lt_prog_compiler_static_F77='-non_shared'
13313 esac
13316 osf3* | osf4* | osf5*)
13317 lt_prog_compiler_wl_F77='-Wl,'
13318 # All OSF/1 code is PIC.
13319 lt_prog_compiler_static_F77='-non_shared'
13322 sco3.2v5*)
13323 lt_prog_compiler_pic_F77='-Kpic'
13324 lt_prog_compiler_static_F77='-dn'
13327 solaris*)
13328 lt_prog_compiler_wl_F77='-Wl,'
13329 lt_prog_compiler_pic_F77='-KPIC'
13330 lt_prog_compiler_static_F77='-Bstatic'
13333 sunos4*)
13334 lt_prog_compiler_wl_F77='-Qoption ld '
13335 lt_prog_compiler_pic_F77='-PIC'
13336 lt_prog_compiler_static_F77='-Bstatic'
13339 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13340 lt_prog_compiler_wl_F77='-Wl,'
13341 lt_prog_compiler_pic_F77='-KPIC'
13342 lt_prog_compiler_static_F77='-Bstatic'
13345 sysv4*MP*)
13346 if test -d /usr/nec ;then
13347 lt_prog_compiler_pic_F77='-Kconform_pic'
13348 lt_prog_compiler_static_F77='-Bstatic'
13352 uts4*)
13353 lt_prog_compiler_pic_F77='-pic'
13354 lt_prog_compiler_static_F77='-Bstatic'
13358 lt_prog_compiler_can_build_shared_F77=no
13360 esac
13363 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13364 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13367 # Check to make sure the PIC flag actually works.
13369 if test -n "$lt_prog_compiler_pic_F77"; then
13371 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13372 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13373 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13374 echo $ECHO_N "(cached) $ECHO_C" >&6
13375 else
13376 lt_prog_compiler_pic_works_F77=no
13377 ac_outfile=conftest.$ac_objext
13378 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13379 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13380 # Insert the option either (1) after the last *FLAGS variable, or
13381 # (2) before a word containing "conftest.", or (3) at the end.
13382 # Note that $ac_compile itself does not contain backslashes and begins
13383 # with a dollar sign (not a hyphen), so the echo should work correctly.
13384 # The option is referenced via a variable to avoid confusing sed.
13385 lt_compile=`echo "$ac_compile" | $SED \
13386 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13387 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13388 -e 's:$: $lt_compiler_flag:'`
13389 (eval echo "\"\$as_me:13389: $lt_compile\"" >&5)
13390 (eval "$lt_compile" 2>conftest.err)
13391 ac_status=$?
13392 cat conftest.err >&5
13393 echo "$as_me:13393: \$? = $ac_status" >&5
13394 if (exit $ac_status) && test -s "$ac_outfile"; then
13395 # The compiler can only warn and ignore the option if not recognized
13396 # So say no if there are warnings
13397 if test ! -s conftest.err; then
13398 lt_prog_compiler_pic_works_F77=yes
13401 $rm conftest*
13404 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13405 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13407 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13408 case $lt_prog_compiler_pic_F77 in
13409 "" | " "*) ;;
13410 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13411 esac
13412 else
13413 lt_prog_compiler_pic_F77=
13414 lt_prog_compiler_can_build_shared_F77=no
13418 case "$host_os" in
13419 # For platforms which do not support PIC, -DPIC is meaningless:
13420 *djgpp*)
13421 lt_prog_compiler_pic_F77=
13424 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13426 esac
13428 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13429 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13430 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13431 echo $ECHO_N "(cached) $ECHO_C" >&6
13432 else
13433 lt_cv_prog_compiler_c_o_F77=no
13434 $rm -r conftest 2>/dev/null
13435 mkdir conftest
13436 cd conftest
13437 mkdir out
13438 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13440 lt_compiler_flag="-o out/conftest2.$ac_objext"
13441 # Insert the option either (1) after the last *FLAGS variable, or
13442 # (2) before a word containing "conftest.", or (3) at the end.
13443 # Note that $ac_compile itself does not contain backslashes and begins
13444 # with a dollar sign (not a hyphen), so the echo should work correctly.
13445 lt_compile=`echo "$ac_compile" | $SED \
13446 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13447 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13448 -e 's:$: $lt_compiler_flag:'`
13449 (eval echo "\"\$as_me:13449: $lt_compile\"" >&5)
13450 (eval "$lt_compile" 2>out/conftest.err)
13451 ac_status=$?
13452 cat out/conftest.err >&5
13453 echo "$as_me:13453: \$? = $ac_status" >&5
13454 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13455 then
13456 # The compiler can only warn and ignore the option if not recognized
13457 # So say no if there are warnings
13458 if test ! -s out/conftest.err; then
13459 lt_cv_prog_compiler_c_o_F77=yes
13462 chmod u+w .
13463 $rm conftest*
13464 # SGI C++ compiler will create directory out/ii_files/ for
13465 # template instantiation
13466 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13467 $rm out/* && rmdir out
13468 cd ..
13469 rmdir conftest
13470 $rm conftest*
13473 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13474 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13477 hard_links="nottested"
13478 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13479 # do not overwrite the value of need_locks provided by the user
13480 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13481 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13482 hard_links=yes
13483 $rm conftest*
13484 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13485 touch conftest.a
13486 ln conftest.a conftest.b 2>&5 || hard_links=no
13487 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13488 echo "$as_me:$LINENO: result: $hard_links" >&5
13489 echo "${ECHO_T}$hard_links" >&6
13490 if test "$hard_links" = no; then
13491 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13492 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13493 need_locks=warn
13495 else
13496 need_locks=no
13499 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13500 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13502 runpath_var=
13503 allow_undefined_flag_F77=
13504 enable_shared_with_static_runtimes_F77=no
13505 archive_cmds_F77=
13506 archive_expsym_cmds_F77=
13507 old_archive_From_new_cmds_F77=
13508 old_archive_from_expsyms_cmds_F77=
13509 export_dynamic_flag_spec_F77=
13510 whole_archive_flag_spec_F77=
13511 thread_safe_flag_spec_F77=
13512 hardcode_libdir_flag_spec_F77=
13513 hardcode_libdir_flag_spec_ld_F77=
13514 hardcode_libdir_separator_F77=
13515 hardcode_direct_F77=no
13516 hardcode_minus_L_F77=no
13517 hardcode_shlibpath_var_F77=unsupported
13518 link_all_deplibs_F77=unknown
13519 hardcode_automatic_F77=no
13520 module_cmds_F77=
13521 module_expsym_cmds_F77=
13522 always_export_symbols_F77=no
13523 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13524 # include_expsyms should be a list of space-separated symbols to be *always*
13525 # included in the symbol list
13526 include_expsyms_F77=
13527 # exclude_expsyms can be an extended regexp of symbols to exclude
13528 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13529 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13530 # as well as any symbol that contains `d'.
13531 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13532 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13533 # platforms (ab)use it in PIC code, but their linkers get confused if
13534 # the symbol is explicitly referenced. Since portable code cannot
13535 # rely on this symbol name, it's probably fine to never include it in
13536 # preloaded symbol tables.
13537 extract_expsyms_cmds=
13539 case $host_os in
13540 cygwin* | mingw* | pw32*)
13541 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13542 # When not using gcc, we currently assume that we are using
13543 # Microsoft Visual C++.
13544 if test "$GCC" != yes; then
13545 with_gnu_ld=no
13548 openbsd*)
13549 with_gnu_ld=no
13551 esac
13553 ld_shlibs_F77=yes
13554 if test "$with_gnu_ld" = yes; then
13555 # If archive_cmds runs LD, not CC, wlarc should be empty
13556 wlarc='${wl}'
13558 # See if GNU ld supports shared libraries.
13559 case $host_os in
13560 aix3* | aix4* | aix5*)
13561 # On AIX/PPC, the GNU linker is very broken
13562 if test "$host_cpu" != ia64; then
13563 ld_shlibs_F77=no
13564 cat <<EOF 1>&2
13566 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13567 *** to be unable to reliably create shared libraries on AIX.
13568 *** Therefore, libtool is disabling shared libraries support. If you
13569 *** really care for shared libraries, you may want to modify your PATH
13570 *** so that a non-GNU linker is found, and then restart.
13576 amigaos*)
13577 archive_cmds_F77='$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)'
13578 hardcode_libdir_flag_spec_F77='-L$libdir'
13579 hardcode_minus_L_F77=yes
13581 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13582 # that the semantics of dynamic libraries on AmigaOS, at least up
13583 # to version 4, is to share data among multiple programs linked
13584 # with the same dynamic library. Since this doesn't match the
13585 # behavior of shared libraries on other platforms, we can't use
13586 # them.
13587 ld_shlibs_F77=no
13590 beos*)
13591 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13592 allow_undefined_flag_F77=unsupported
13593 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13594 # support --undefined. This deserves some investigation. FIXME
13595 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13596 else
13597 ld_shlibs_F77=no
13601 cygwin* | mingw* | pw32*)
13602 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13603 # as there is no search path for DLLs.
13604 hardcode_libdir_flag_spec_F77='-L$libdir'
13605 allow_undefined_flag_F77=unsupported
13606 always_export_symbols_F77=no
13607 enable_shared_with_static_runtimes_F77=yes
13608 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13610 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13611 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13612 # If the export-symbols file already is a .def file (1st line
13613 # is EXPORTS), use it as is; otherwise, prepend...
13614 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13615 cp $export_symbols $output_objdir/$soname.def;
13616 else
13617 echo EXPORTS > $output_objdir/$soname.def;
13618 cat $export_symbols >> $output_objdir/$soname.def;
13620 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13621 else
13622 ld_shlibs=no
13626 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13627 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13628 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13629 wlarc=
13630 else
13631 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13632 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13636 solaris* | sysv5*)
13637 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13638 ld_shlibs_F77=no
13639 cat <<EOF 1>&2
13641 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13642 *** create shared libraries on Solaris systems. Therefore, libtool
13643 *** is disabling shared libraries support. We urge you to upgrade GNU
13644 *** binutils to release 2.9.1 or newer. Another option is to modify
13645 *** your PATH or compiler configuration so that the native linker is
13646 *** used, and then restart.
13649 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13650 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13651 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13652 else
13653 ld_shlibs_F77=no
13657 sunos4*)
13658 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13659 wlarc=
13660 hardcode_direct_F77=yes
13661 hardcode_shlibpath_var_F77=no
13664 linux*)
13665 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13666 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13667 archive_cmds_F77="$tmp_archive_cmds"
13668 supports_anon_versioning=no
13669 case `$LD -v 2>/dev/null` in
13670 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13671 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13672 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13673 *\ 2.11.*) ;; # other 2.11 versions
13674 *) supports_anon_versioning=yes ;;
13675 esac
13676 if test $supports_anon_versioning = yes; then
13677 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13678 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13679 $echo "local: *; };" >> $output_objdir/$libname.ver~
13680 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13681 else
13682 archive_expsym_cmds_F77="$tmp_archive_cmds"
13684 link_all_deplibs_F77=no
13685 else
13686 ld_shlibs_F77=no
13691 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13692 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13693 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13694 else
13695 ld_shlibs_F77=no
13698 esac
13700 if test "$ld_shlibs_F77" = yes; then
13701 runpath_var=LD_RUN_PATH
13702 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13703 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13704 # ancient GNU ld didn't support --whole-archive et. al.
13705 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13706 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13707 else
13708 whole_archive_flag_spec_F77=
13711 else
13712 # PORTME fill in a description of your system's linker (not GNU ld)
13713 case $host_os in
13714 aix3*)
13715 allow_undefined_flag_F77=unsupported
13716 always_export_symbols_F77=yes
13717 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13718 # Note: this linker hardcodes the directories in LIBPATH if there
13719 # are no directories specified by -L.
13720 hardcode_minus_L_F77=yes
13721 if test "$GCC" = yes && test -z "$link_static_flag"; then
13722 # Neither direct hardcoding nor static linking is supported with a
13723 # broken collect2.
13724 hardcode_direct_F77=unsupported
13728 aix4* | aix5*)
13729 if test "$host_cpu" = ia64; then
13730 # On IA64, the linker does run time linking by default, so we don't
13731 # have to do anything special.
13732 aix_use_runtimelinking=no
13733 exp_sym_flag='-Bexport'
13734 no_entry_flag=""
13735 else
13736 # If we're using GNU nm, then we don't want the "-C" option.
13737 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13738 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13739 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13740 else
13741 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13743 aix_use_runtimelinking=no
13745 # Test if we are trying to use run time linking or normal
13746 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13747 # need to do runtime linking.
13748 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13749 for ld_flag in $LDFLAGS; do
13750 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13751 aix_use_runtimelinking=yes
13752 break
13754 done
13755 esac
13757 exp_sym_flag='-bexport'
13758 no_entry_flag='-bnoentry'
13761 # When large executables or shared objects are built, AIX ld can
13762 # have problems creating the table of contents. If linking a library
13763 # or program results in "error TOC overflow" add -mminimal-toc to
13764 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13765 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13767 archive_cmds_F77=''
13768 hardcode_direct_F77=yes
13769 hardcode_libdir_separator_F77=':'
13770 link_all_deplibs_F77=yes
13772 if test "$GCC" = yes; then
13773 case $host_os in aix4.012|aix4.012.*)
13774 # We only want to do this on AIX 4.2 and lower, the check
13775 # below for broken collect2 doesn't work under 4.3+
13776 collect2name=`${CC} -print-prog-name=collect2`
13777 if test -f "$collect2name" && \
13778 strings "$collect2name" | grep resolve_lib_name >/dev/null
13779 then
13780 # We have reworked collect2
13781 hardcode_direct_F77=yes
13782 else
13783 # We have old collect2
13784 hardcode_direct_F77=unsupported
13785 # It fails to find uninstalled libraries when the uninstalled
13786 # path is not listed in the libpath. Setting hardcode_minus_L
13787 # to unsupported forces relinking
13788 hardcode_minus_L_F77=yes
13789 hardcode_libdir_flag_spec_F77='-L$libdir'
13790 hardcode_libdir_separator_F77=
13792 esac
13793 shared_flag='-shared'
13794 else
13795 # not using gcc
13796 if test "$host_cpu" = ia64; then
13797 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13798 # chokes on -Wl,-G. The following line is correct:
13799 shared_flag='-G'
13800 else
13801 if test "$aix_use_runtimelinking" = yes; then
13802 shared_flag='${wl}-G'
13803 else
13804 shared_flag='${wl}-bM:SRE'
13809 # It seems that -bexpall does not export symbols beginning with
13810 # underscore (_), so it is better to generate a list of symbols to export.
13811 always_export_symbols_F77=yes
13812 if test "$aix_use_runtimelinking" = yes; then
13813 # Warning - without using the other runtime loading flags (-brtl),
13814 # -berok will link without error, but may produce a broken library.
13815 allow_undefined_flag_F77='-berok'
13816 # Determine the default libpath from the value encoded in an empty executable.
13817 cat >conftest.$ac_ext <<_ACEOF
13818 program main
13821 _ACEOF
13822 rm -f conftest.$ac_objext conftest$ac_exeext
13823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13824 (eval $ac_link) 2>conftest.er1
13825 ac_status=$?
13826 grep -v '^ *+' conftest.er1 >conftest.err
13827 rm -f conftest.er1
13828 cat conftest.err >&5
13829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830 (exit $ac_status); } &&
13831 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13833 (eval $ac_try) 2>&5
13834 ac_status=$?
13835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836 (exit $ac_status); }; } &&
13837 { ac_try='test -s conftest$ac_exeext'
13838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13839 (eval $ac_try) 2>&5
13840 ac_status=$?
13841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842 (exit $ac_status); }; }; then
13844 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13846 # Check for a 64-bit object if we didn't find anything.
13847 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13848 }'`; fi
13849 else
13850 echo "$as_me: failed program was:" >&5
13851 sed 's/^/| /' conftest.$ac_ext >&5
13854 rm -f conftest.err conftest.$ac_objext \
13855 conftest$ac_exeext conftest.$ac_ext
13856 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13858 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13859 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13860 else
13861 if test "$host_cpu" = ia64; then
13862 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13863 allow_undefined_flag_F77="-z nodefs"
13864 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13865 else
13866 # Determine the default libpath from the value encoded in an empty executable.
13867 cat >conftest.$ac_ext <<_ACEOF
13868 program main
13871 _ACEOF
13872 rm -f conftest.$ac_objext conftest$ac_exeext
13873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13874 (eval $ac_link) 2>conftest.er1
13875 ac_status=$?
13876 grep -v '^ *+' conftest.er1 >conftest.err
13877 rm -f conftest.er1
13878 cat conftest.err >&5
13879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880 (exit $ac_status); } &&
13881 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13883 (eval $ac_try) 2>&5
13884 ac_status=$?
13885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886 (exit $ac_status); }; } &&
13887 { ac_try='test -s conftest$ac_exeext'
13888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13889 (eval $ac_try) 2>&5
13890 ac_status=$?
13891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892 (exit $ac_status); }; }; then
13894 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13896 # Check for a 64-bit object if we didn't find anything.
13897 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13898 }'`; fi
13899 else
13900 echo "$as_me: failed program was:" >&5
13901 sed 's/^/| /' conftest.$ac_ext >&5
13904 rm -f conftest.err conftest.$ac_objext \
13905 conftest$ac_exeext conftest.$ac_ext
13906 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13908 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13909 # Warning - without using the other run time loading flags,
13910 # -berok will link without error, but may produce a broken library.
13911 no_undefined_flag_F77=' ${wl}-bernotok'
13912 allow_undefined_flag_F77=' ${wl}-berok'
13913 # -bexpall does not export symbols beginning with underscore (_)
13914 always_export_symbols_F77=yes
13915 # Exported symbols can be pulled into shared objects from archives
13916 whole_archive_flag_spec_F77=' '
13917 archive_cmds_need_lc_F77=yes
13918 # This is similar to how AIX traditionally builds it's shared libraries.
13919 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13924 amigaos*)
13925 archive_cmds_F77='$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)'
13926 hardcode_libdir_flag_spec_F77='-L$libdir'
13927 hardcode_minus_L_F77=yes
13928 # see comment about different semantics on the GNU ld section
13929 ld_shlibs_F77=no
13932 bsdi4*)
13933 export_dynamic_flag_spec_F77=-rdynamic
13936 cygwin* | mingw* | pw32*)
13937 # When not using gcc, we currently assume that we are using
13938 # Microsoft Visual C++.
13939 # hardcode_libdir_flag_spec is actually meaningless, as there is
13940 # no search path for DLLs.
13941 hardcode_libdir_flag_spec_F77=' '
13942 allow_undefined_flag_F77=unsupported
13943 # Tell ltmain to make .lib files, not .a files.
13944 libext=lib
13945 # Tell ltmain to make .dll files, not .so files.
13946 shrext_cmds=".dll"
13947 # FIXME: Setting linknames here is a bad hack.
13948 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13949 # The linker will automatically build a .lib file if we build a DLL.
13950 old_archive_From_new_cmds_F77='true'
13951 # FIXME: Should let the user specify the lib program.
13952 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13953 fix_srcfile_path='`cygpath -w "$srcfile"`'
13954 enable_shared_with_static_runtimes_F77=yes
13957 darwin* | rhapsody*)
13958 if test "$GXX" = yes ; then
13959 archive_cmds_need_lc_F77=no
13960 case "$host_os" in
13961 rhapsody* | darwin1.[012])
13962 allow_undefined_flag_F77='-undefined suppress'
13964 *) # Darwin 1.3 on
13965 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13966 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13967 else
13968 case ${MACOSX_DEPLOYMENT_TARGET} in
13969 10.[012])
13970 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13972 10.*)
13973 allow_undefined_flag_F77='-undefined dynamic_lookup'
13975 esac
13978 esac
13979 lt_int_apple_cc_single_mod=no
13980 output_verbose_link_cmd='echo'
13981 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13982 lt_int_apple_cc_single_mod=yes
13984 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13985 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13986 else
13987 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13989 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13990 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13991 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13992 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13993 else
13994 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13996 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -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}'
13997 hardcode_direct_F77=no
13998 hardcode_automatic_F77=yes
13999 hardcode_shlibpath_var_F77=unsupported
14000 whole_archive_flag_spec_F77='-all_load $convenience'
14001 link_all_deplibs_F77=yes
14002 else
14003 ld_shlibs_F77=no
14007 dgux*)
14008 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14009 hardcode_libdir_flag_spec_F77='-L$libdir'
14010 hardcode_shlibpath_var_F77=no
14013 freebsd1*)
14014 ld_shlibs_F77=no
14017 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14018 # support. Future versions do this automatically, but an explicit c++rt0.o
14019 # does not break anything, and helps significantly (at the cost of a little
14020 # extra space).
14021 freebsd2.2*)
14022 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14023 hardcode_libdir_flag_spec_F77='-R$libdir'
14024 hardcode_direct_F77=yes
14025 hardcode_shlibpath_var_F77=no
14028 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14029 freebsd2*)
14030 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14031 hardcode_direct_F77=yes
14032 hardcode_minus_L_F77=yes
14033 hardcode_shlibpath_var_F77=no
14036 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14037 freebsd* | kfreebsd*-gnu)
14038 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14039 hardcode_libdir_flag_spec_F77='-R$libdir'
14040 hardcode_direct_F77=yes
14041 hardcode_shlibpath_var_F77=no
14044 hpux9*)
14045 if test "$GCC" = yes; then
14046 archive_cmds_F77='$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'
14047 else
14048 archive_cmds_F77='$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'
14050 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14051 hardcode_libdir_separator_F77=:
14052 hardcode_direct_F77=yes
14054 # hardcode_minus_L: Not really in the search PATH,
14055 # but as the default location of the library.
14056 hardcode_minus_L_F77=yes
14057 export_dynamic_flag_spec_F77='${wl}-E'
14060 hpux10* | hpux11*)
14061 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14062 case "$host_cpu" in
14063 hppa*64*|ia64*)
14064 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14067 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14069 esac
14070 else
14071 case "$host_cpu" in
14072 hppa*64*|ia64*)
14073 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14076 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14078 esac
14080 if test "$with_gnu_ld" = no; then
14081 case "$host_cpu" in
14082 hppa*64*)
14083 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14084 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14085 hardcode_libdir_separator_F77=:
14086 hardcode_direct_F77=no
14087 hardcode_shlibpath_var_F77=no
14089 ia64*)
14090 hardcode_libdir_flag_spec_F77='-L$libdir'
14091 hardcode_direct_F77=no
14092 hardcode_shlibpath_var_F77=no
14094 # hardcode_minus_L: Not really in the search PATH,
14095 # but as the default location of the library.
14096 hardcode_minus_L_F77=yes
14099 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14100 hardcode_libdir_separator_F77=:
14101 hardcode_direct_F77=yes
14102 export_dynamic_flag_spec_F77='${wl}-E'
14104 # hardcode_minus_L: Not really in the search PATH,
14105 # but as the default location of the library.
14106 hardcode_minus_L_F77=yes
14108 esac
14112 irix5* | irix6* | nonstopux*)
14113 if test "$GCC" = yes; then
14114 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14115 else
14116 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14117 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14119 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14120 hardcode_libdir_separator_F77=:
14121 link_all_deplibs_F77=yes
14124 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14125 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14126 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14127 else
14128 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14130 hardcode_libdir_flag_spec_F77='-R$libdir'
14131 hardcode_direct_F77=yes
14132 hardcode_shlibpath_var_F77=no
14135 newsos6)
14136 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14137 hardcode_direct_F77=yes
14138 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14139 hardcode_libdir_separator_F77=:
14140 hardcode_shlibpath_var_F77=no
14143 openbsd*)
14144 hardcode_direct_F77=yes
14145 hardcode_shlibpath_var_F77=no
14146 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14147 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14148 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14149 export_dynamic_flag_spec_F77='${wl}-E'
14150 else
14151 case $host_os in
14152 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14153 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14154 hardcode_libdir_flag_spec_F77='-R$libdir'
14157 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14158 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14160 esac
14164 os2*)
14165 hardcode_libdir_flag_spec_F77='-L$libdir'
14166 hardcode_minus_L_F77=yes
14167 allow_undefined_flag_F77=unsupported
14168 archive_cmds_F77='$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'
14169 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14172 osf3*)
14173 if test "$GCC" = yes; then
14174 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14175 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14176 else
14177 allow_undefined_flag_F77=' -expect_unresolved \*'
14178 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14180 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14181 hardcode_libdir_separator_F77=:
14184 osf4* | osf5*) # as osf3* with the addition of -msym flag
14185 if test "$GCC" = yes; then
14186 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14187 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14188 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14189 else
14190 allow_undefined_flag_F77=' -expect_unresolved \*'
14191 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14192 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14193 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14195 # Both c and cxx compiler support -rpath directly
14196 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14198 hardcode_libdir_separator_F77=:
14201 sco3.2v5*)
14202 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14203 hardcode_shlibpath_var_F77=no
14204 export_dynamic_flag_spec_F77='${wl}-Bexport'
14205 runpath_var=LD_RUN_PATH
14206 hardcode_runpath_var=yes
14209 solaris*)
14210 no_undefined_flag_F77=' -z text'
14211 if test "$GCC" = yes; then
14212 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14213 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14214 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14215 else
14216 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14217 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14218 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14220 hardcode_libdir_flag_spec_F77='-R$libdir'
14221 hardcode_shlibpath_var_F77=no
14222 case $host_os in
14223 solaris2.[0-5] | solaris2.[0-5].*) ;;
14224 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14225 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14226 esac
14227 link_all_deplibs_F77=yes
14230 sunos4*)
14231 if test "x$host_vendor" = xsequent; then
14232 # Use $CC to link under sequent, because it throws in some extra .o
14233 # files that make .init and .fini sections work.
14234 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14235 else
14236 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14238 hardcode_libdir_flag_spec_F77='-L$libdir'
14239 hardcode_direct_F77=yes
14240 hardcode_minus_L_F77=yes
14241 hardcode_shlibpath_var_F77=no
14244 sysv4)
14245 case $host_vendor in
14246 sni)
14247 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14248 hardcode_direct_F77=yes # is this really true???
14250 siemens)
14251 ## LD is ld it makes a PLAMLIB
14252 ## CC just makes a GrossModule.
14253 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14254 reload_cmds_F77='$CC -r -o $output$reload_objs'
14255 hardcode_direct_F77=no
14257 motorola)
14258 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14259 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14261 esac
14262 runpath_var='LD_RUN_PATH'
14263 hardcode_shlibpath_var_F77=no
14266 sysv4.3*)
14267 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14268 hardcode_shlibpath_var_F77=no
14269 export_dynamic_flag_spec_F77='-Bexport'
14272 sysv4*MP*)
14273 if test -d /usr/nec; then
14274 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14275 hardcode_shlibpath_var_F77=no
14276 runpath_var=LD_RUN_PATH
14277 hardcode_runpath_var=yes
14278 ld_shlibs_F77=yes
14282 sysv4.2uw2*)
14283 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14284 hardcode_direct_F77=yes
14285 hardcode_minus_L_F77=no
14286 hardcode_shlibpath_var_F77=no
14287 hardcode_runpath_var=yes
14288 runpath_var=LD_RUN_PATH
14291 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14292 no_undefined_flag_F77='${wl}-z ${wl}text'
14293 if test "$GCC" = yes; then
14294 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14295 else
14296 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14298 runpath_var='LD_RUN_PATH'
14299 hardcode_shlibpath_var_F77=no
14302 sysv5*)
14303 no_undefined_flag_F77=' -z text'
14304 # $CC -shared without GNU ld will not create a library from C++
14305 # object files and a static libstdc++, better avoid it by now
14306 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14307 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14308 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14309 hardcode_libdir_flag_spec_F77=
14310 hardcode_shlibpath_var_F77=no
14311 runpath_var='LD_RUN_PATH'
14314 uts4*)
14315 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14316 hardcode_libdir_flag_spec_F77='-L$libdir'
14317 hardcode_shlibpath_var_F77=no
14321 ld_shlibs_F77=no
14323 esac
14326 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14327 echo "${ECHO_T}$ld_shlibs_F77" >&6
14328 test "$ld_shlibs_F77" = no && can_build_shared=no
14330 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14331 if test "$GCC" = yes; then
14332 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14336 # Do we need to explicitly link libc?
14338 case "x$archive_cmds_need_lc_F77" in
14339 x|xyes)
14340 # Assume -lc should be added
14341 archive_cmds_need_lc_F77=yes
14343 if test "$enable_shared" = yes && test "$GCC" = yes; then
14344 case $archive_cmds_F77 in
14345 *'~'*)
14346 # FIXME: we may have to deal with multi-command sequences.
14348 '$CC '*)
14349 # Test whether the compiler implicitly links with -lc since on some
14350 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14351 # to ld, don't add -lc before -lgcc.
14352 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14353 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14354 $rm conftest*
14355 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14358 (eval $ac_compile) 2>&5
14359 ac_status=$?
14360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361 (exit $ac_status); } 2>conftest.err; then
14362 soname=conftest
14363 lib=conftest
14364 libobjs=conftest.$ac_objext
14365 deplibs=
14366 wl=$lt_prog_compiler_wl_F77
14367 compiler_flags=-v
14368 linker_flags=-v
14369 verstring=
14370 output_objdir=.
14371 libname=conftest
14372 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14373 allow_undefined_flag_F77=
14374 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14375 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14376 ac_status=$?
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); }
14379 then
14380 archive_cmds_need_lc_F77=no
14381 else
14382 archive_cmds_need_lc_F77=yes
14384 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14385 else
14386 cat conftest.err 1>&5
14388 $rm conftest*
14389 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14390 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14392 esac
14395 esac
14397 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14398 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14399 library_names_spec=
14400 libname_spec='lib$name'
14401 soname_spec=
14402 shrext_cmds=".so"
14403 postinstall_cmds=
14404 postuninstall_cmds=
14405 finish_cmds=
14406 finish_eval=
14407 shlibpath_var=
14408 shlibpath_overrides_runpath=unknown
14409 version_type=none
14410 dynamic_linker="$host_os ld.so"
14411 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14412 if test "$GCC" = yes; then
14413 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14414 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14415 # if the path contains ";" then we assume it to be the separator
14416 # otherwise default to the standard path separator (i.e. ":") - it is
14417 # assumed that no part of a normal pathname contains ";" but that should
14418 # okay in the real world where ";" in dirpaths is itself problematic.
14419 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14420 else
14421 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14423 else
14424 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14426 need_lib_prefix=unknown
14427 hardcode_into_libs=no
14429 # when you set need_version to no, make sure it does not cause -set_version
14430 # flags to be left without arguments
14431 need_version=unknown
14433 case $host_os in
14434 aix3*)
14435 version_type=linux
14436 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14437 shlibpath_var=LIBPATH
14439 # AIX 3 has no versioning support, so we append a major version to the name.
14440 soname_spec='${libname}${release}${shared_ext}$major'
14443 aix4* | aix5*)
14444 version_type=linux
14445 need_lib_prefix=no
14446 need_version=no
14447 hardcode_into_libs=yes
14448 if test "$host_cpu" = ia64; then
14449 # AIX 5 supports IA64
14450 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14451 shlibpath_var=LD_LIBRARY_PATH
14452 else
14453 # With GCC up to 2.95.x, collect2 would create an import file
14454 # for dependence libraries. The import file would start with
14455 # the line `#! .'. This would cause the generated library to
14456 # depend on `.', always an invalid library. This was fixed in
14457 # development snapshots of GCC prior to 3.0.
14458 case $host_os in
14459 aix4 | aix4.[01] | aix4.[01].*)
14460 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14461 echo ' yes '
14462 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14464 else
14465 can_build_shared=no
14468 esac
14469 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14470 # soname into executable. Probably we can add versioning support to
14471 # collect2, so additional links can be useful in future.
14472 if test "$aix_use_runtimelinking" = yes; then
14473 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14474 # instead of lib<name>.a to let people know that these are not
14475 # typical AIX shared libraries.
14476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14477 else
14478 # We preserve .a as extension for shared libraries through AIX4.2
14479 # and later when we are not doing run time linking.
14480 library_names_spec='${libname}${release}.a $libname.a'
14481 soname_spec='${libname}${release}${shared_ext}$major'
14483 shlibpath_var=LIBPATH
14487 amigaos*)
14488 library_names_spec='$libname.ixlibrary $libname.a'
14489 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14490 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'
14493 beos*)
14494 library_names_spec='${libname}${shared_ext}'
14495 dynamic_linker="$host_os ld.so"
14496 shlibpath_var=LIBRARY_PATH
14499 bsdi4*)
14500 version_type=linux
14501 need_version=no
14502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14503 soname_spec='${libname}${release}${shared_ext}$major'
14504 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14505 shlibpath_var=LD_LIBRARY_PATH
14506 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14507 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14508 # the default ld.so.conf also contains /usr/contrib/lib and
14509 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14510 # libtool to hard-code these into programs
14513 cygwin* | mingw* | pw32*)
14514 version_type=windows
14515 shrext_cmds=".dll"
14516 need_version=no
14517 need_lib_prefix=no
14519 case $GCC,$host_os in
14520 yes,cygwin* | yes,mingw* | yes,pw32*)
14521 library_names_spec='$libname.dll.a'
14522 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14523 postinstall_cmds='base_file=`basename \${file}`~
14524 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14525 dldir=$destdir/`dirname \$dlpath`~
14526 test -d \$dldir || mkdir -p \$dldir~
14527 $install_prog $dir/$dlname \$dldir/$dlname'
14528 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14529 dlpath=$dir/\$dldll~
14530 $rm \$dlpath'
14531 shlibpath_overrides_runpath=yes
14533 case $host_os in
14534 cygwin*)
14535 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14536 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14537 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14539 mingw*)
14540 # MinGW DLLs use traditional 'lib' prefix
14541 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14542 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14543 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14544 # It is most probably a Windows format PATH printed by
14545 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14546 # path with ; separators, and with drive letters. We can handle the
14547 # drive letters (cygwin fileutils understands them), so leave them,
14548 # especially as we might pass files found there to a mingw objdump,
14549 # which wouldn't understand a cygwinified path. Ahh.
14550 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14551 else
14552 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14555 pw32*)
14556 # pw32 DLLs use 'pw' prefix rather than 'lib'
14557 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14559 esac
14563 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14565 esac
14566 dynamic_linker='Win32 ld.exe'
14567 # FIXME: first we should search . and the directory the executable is in
14568 shlibpath_var=PATH
14571 darwin* | rhapsody*)
14572 dynamic_linker="$host_os dyld"
14573 version_type=darwin
14574 need_lib_prefix=no
14575 need_version=no
14576 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14577 soname_spec='${libname}${release}${major}$shared_ext'
14578 shlibpath_overrides_runpath=yes
14579 shlibpath_var=DYLD_LIBRARY_PATH
14580 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14581 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14582 if test "$GCC" = yes; then
14583 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14584 else
14585 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14587 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14590 dgux*)
14591 version_type=linux
14592 need_lib_prefix=no
14593 need_version=no
14594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14595 soname_spec='${libname}${release}${shared_ext}$major'
14596 shlibpath_var=LD_LIBRARY_PATH
14599 freebsd1*)
14600 dynamic_linker=no
14603 kfreebsd*-gnu)
14604 version_type=linux
14605 need_lib_prefix=no
14606 need_version=no
14607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14608 soname_spec='${libname}${release}${shared_ext}$major'
14609 shlibpath_var=LD_LIBRARY_PATH
14610 shlibpath_overrides_runpath=no
14611 hardcode_into_libs=yes
14612 dynamic_linker='GNU ld.so'
14615 freebsd*)
14616 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14617 version_type=freebsd-$objformat
14618 case $version_type in
14619 freebsd-elf*)
14620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14621 need_version=no
14622 need_lib_prefix=no
14624 freebsd-*)
14625 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14626 need_version=yes
14628 esac
14629 shlibpath_var=LD_LIBRARY_PATH
14630 case $host_os in
14631 freebsd2*)
14632 shlibpath_overrides_runpath=yes
14634 freebsd3.01* | freebsdelf3.01*)
14635 shlibpath_overrides_runpath=yes
14636 hardcode_into_libs=yes
14638 *) # from 3.2 on
14639 shlibpath_overrides_runpath=no
14640 hardcode_into_libs=yes
14642 esac
14645 gnu*)
14646 version_type=linux
14647 need_lib_prefix=no
14648 need_version=no
14649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14650 soname_spec='${libname}${release}${shared_ext}$major'
14651 shlibpath_var=LD_LIBRARY_PATH
14652 hardcode_into_libs=yes
14655 hpux9* | hpux10* | hpux11*)
14656 # Give a soname corresponding to the major version so that dld.sl refuses to
14657 # link against other versions.
14658 version_type=sunos
14659 need_lib_prefix=no
14660 need_version=no
14661 case "$host_cpu" in
14662 ia64*)
14663 shrext_cmds='.so'
14664 hardcode_into_libs=yes
14665 dynamic_linker="$host_os dld.so"
14666 shlibpath_var=LD_LIBRARY_PATH
14667 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14669 soname_spec='${libname}${release}${shared_ext}$major'
14670 if test "X$HPUX_IA64_MODE" = X32; then
14671 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14672 else
14673 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14675 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14677 hppa*64*)
14678 shrext_cmds='.sl'
14679 hardcode_into_libs=yes
14680 dynamic_linker="$host_os dld.sl"
14681 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14682 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14684 soname_spec='${libname}${release}${shared_ext}$major'
14685 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14686 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14689 shrext_cmds='.sl'
14690 dynamic_linker="$host_os dld.sl"
14691 shlibpath_var=SHLIB_PATH
14692 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14694 soname_spec='${libname}${release}${shared_ext}$major'
14696 esac
14697 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14698 postinstall_cmds='chmod 555 $lib'
14701 irix5* | irix6* | nonstopux*)
14702 case $host_os in
14703 nonstopux*) version_type=nonstopux ;;
14705 if test "$lt_cv_prog_gnu_ld" = yes; then
14706 version_type=linux
14707 else
14708 version_type=irix
14709 fi ;;
14710 esac
14711 need_lib_prefix=no
14712 need_version=no
14713 soname_spec='${libname}${release}${shared_ext}$major'
14714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14715 case $host_os in
14716 irix5* | nonstopux*)
14717 libsuff= shlibsuff=
14720 case $LD in # libtool.m4 will add one of these switches to LD
14721 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14722 libsuff= shlibsuff= libmagic=32-bit;;
14723 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14724 libsuff=32 shlibsuff=N32 libmagic=N32;;
14725 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14726 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14727 *) libsuff= shlibsuff= libmagic=never-match;;
14728 esac
14730 esac
14731 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14732 shlibpath_overrides_runpath=no
14733 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14734 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14735 hardcode_into_libs=yes
14738 # No shared lib support for Linux oldld, aout, or coff.
14739 linux*oldld* | linux*aout* | linux*coff*)
14740 dynamic_linker=no
14743 # This must be Linux ELF.
14744 linux*)
14745 version_type=linux
14746 need_lib_prefix=no
14747 need_version=no
14748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14749 soname_spec='${libname}${release}${shared_ext}$major'
14750 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14751 shlibpath_var=LD_LIBRARY_PATH
14752 shlibpath_overrides_runpath=no
14753 # This implies no fast_install, which is unacceptable.
14754 # Some rework will be needed to allow for fast_install
14755 # before this can be enabled.
14756 hardcode_into_libs=yes
14758 # Append ld.so.conf contents to the search path
14759 if test -f /etc/ld.so.conf; then
14760 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14761 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14764 # We used to test for /lib/ld.so.1 and disable shared libraries on
14765 # powerpc, because MkLinux only supported shared libraries with the
14766 # GNU dynamic linker. Since this was broken with cross compilers,
14767 # most powerpc-linux boxes support dynamic linking these days and
14768 # people can always --disable-shared, the test was removed, and we
14769 # assume the GNU/Linux dynamic linker is in use.
14770 dynamic_linker='GNU/Linux ld.so'
14773 netbsdelf*-gnu)
14774 version_type=linux
14775 need_lib_prefix=no
14776 need_version=no
14777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14778 soname_spec='${libname}${release}${shared_ext}$major'
14779 shlibpath_var=LD_LIBRARY_PATH
14780 shlibpath_overrides_runpath=no
14781 hardcode_into_libs=yes
14782 dynamic_linker='NetBSD ld.elf_so'
14785 knetbsd*-gnu)
14786 version_type=linux
14787 need_lib_prefix=no
14788 need_version=no
14789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14790 soname_spec='${libname}${release}${shared_ext}$major'
14791 shlibpath_var=LD_LIBRARY_PATH
14792 shlibpath_overrides_runpath=no
14793 hardcode_into_libs=yes
14794 dynamic_linker='GNU ld.so'
14797 netbsd*)
14798 version_type=sunos
14799 need_lib_prefix=no
14800 need_version=no
14801 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14803 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14804 dynamic_linker='NetBSD (a.out) ld.so'
14805 else
14806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14807 soname_spec='${libname}${release}${shared_ext}$major'
14808 dynamic_linker='NetBSD ld.elf_so'
14810 shlibpath_var=LD_LIBRARY_PATH
14811 shlibpath_overrides_runpath=yes
14812 hardcode_into_libs=yes
14815 newsos6)
14816 version_type=linux
14817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14818 shlibpath_var=LD_LIBRARY_PATH
14819 shlibpath_overrides_runpath=yes
14822 nto-qnx*)
14823 version_type=linux
14824 need_lib_prefix=no
14825 need_version=no
14826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14827 soname_spec='${libname}${release}${shared_ext}$major'
14828 shlibpath_var=LD_LIBRARY_PATH
14829 shlibpath_overrides_runpath=yes
14832 openbsd*)
14833 version_type=sunos
14834 need_lib_prefix=no
14835 need_version=yes
14836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14837 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14838 shlibpath_var=LD_LIBRARY_PATH
14839 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14840 case $host_os in
14841 openbsd2.[89] | openbsd2.[89].*)
14842 shlibpath_overrides_runpath=no
14845 shlibpath_overrides_runpath=yes
14847 esac
14848 else
14849 shlibpath_overrides_runpath=yes
14853 os2*)
14854 libname_spec='$name'
14855 shrext_cmds=".dll"
14856 need_lib_prefix=no
14857 library_names_spec='$libname${shared_ext} $libname.a'
14858 dynamic_linker='OS/2 ld.exe'
14859 shlibpath_var=LIBPATH
14862 osf3* | osf4* | osf5*)
14863 version_type=osf
14864 need_lib_prefix=no
14865 need_version=no
14866 soname_spec='${libname}${release}${shared_ext}$major'
14867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14868 shlibpath_var=LD_LIBRARY_PATH
14869 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14870 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14873 sco3.2v5*)
14874 version_type=osf
14875 soname_spec='${libname}${release}${shared_ext}$major'
14876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14877 shlibpath_var=LD_LIBRARY_PATH
14880 solaris*)
14881 version_type=linux
14882 need_lib_prefix=no
14883 need_version=no
14884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14885 soname_spec='${libname}${release}${shared_ext}$major'
14886 shlibpath_var=LD_LIBRARY_PATH
14887 shlibpath_overrides_runpath=yes
14888 hardcode_into_libs=yes
14889 # ldd complains unless libraries are executable
14890 postinstall_cmds='chmod +x $lib'
14893 sunos4*)
14894 version_type=sunos
14895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14896 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14897 shlibpath_var=LD_LIBRARY_PATH
14898 shlibpath_overrides_runpath=yes
14899 if test "$with_gnu_ld" = yes; then
14900 need_lib_prefix=no
14902 need_version=yes
14905 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14906 version_type=linux
14907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14908 soname_spec='${libname}${release}${shared_ext}$major'
14909 shlibpath_var=LD_LIBRARY_PATH
14910 case $host_vendor in
14911 sni)
14912 shlibpath_overrides_runpath=no
14913 need_lib_prefix=no
14914 export_dynamic_flag_spec='${wl}-Blargedynsym'
14915 runpath_var=LD_RUN_PATH
14917 siemens)
14918 need_lib_prefix=no
14920 motorola)
14921 need_lib_prefix=no
14922 need_version=no
14923 shlibpath_overrides_runpath=no
14924 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14926 esac
14929 sysv4*MP*)
14930 if test -d /usr/nec ;then
14931 version_type=linux
14932 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14933 soname_spec='$libname${shared_ext}.$major'
14934 shlibpath_var=LD_LIBRARY_PATH
14938 uts4*)
14939 version_type=linux
14940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14941 soname_spec='${libname}${release}${shared_ext}$major'
14942 shlibpath_var=LD_LIBRARY_PATH
14946 dynamic_linker=no
14948 esac
14949 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14950 echo "${ECHO_T}$dynamic_linker" >&6
14951 test "$dynamic_linker" = no && can_build_shared=no
14953 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14954 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14955 hardcode_action_F77=
14956 if test -n "$hardcode_libdir_flag_spec_F77" || \
14957 test -n "$runpath_var F77" || \
14958 test "X$hardcode_automatic_F77"="Xyes" ; then
14960 # We can hardcode non-existant directories.
14961 if test "$hardcode_direct_F77" != no &&
14962 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14963 # have to relink, otherwise we might link with an installed library
14964 # when we should be linking with a yet-to-be-installed one
14965 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14966 test "$hardcode_minus_L_F77" != no; then
14967 # Linking always hardcodes the temporary library directory.
14968 hardcode_action_F77=relink
14969 else
14970 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14971 hardcode_action_F77=immediate
14973 else
14974 # We cannot hardcode anything, or else we can only hardcode existing
14975 # directories.
14976 hardcode_action_F77=unsupported
14978 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14979 echo "${ECHO_T}$hardcode_action_F77" >&6
14981 if test "$hardcode_action_F77" = relink; then
14982 # Fast installation is not supported
14983 enable_fast_install=no
14984 elif test "$shlibpath_overrides_runpath" = yes ||
14985 test "$enable_shared" = no; then
14986 # Fast installation is not necessary
14987 enable_fast_install=needless
14990 striplib=
14991 old_striplib=
14992 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14993 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14994 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14995 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14996 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14997 echo "$as_me:$LINENO: result: yes" >&5
14998 echo "${ECHO_T}yes" >&6
14999 else
15000 # FIXME - insert some real tests, host_os isn't really good enough
15001 case $host_os in
15002 darwin*)
15003 if test -n "$STRIP" ; then
15004 striplib="$STRIP -x"
15005 echo "$as_me:$LINENO: result: yes" >&5
15006 echo "${ECHO_T}yes" >&6
15007 else
15008 echo "$as_me:$LINENO: result: no" >&5
15009 echo "${ECHO_T}no" >&6
15013 echo "$as_me:$LINENO: result: no" >&5
15014 echo "${ECHO_T}no" >&6
15016 esac
15021 # The else clause should only fire when bootstrapping the
15022 # libtool distribution, otherwise you forgot to ship ltmain.sh
15023 # with your package, and you will get complaints that there are
15024 # no rules to generate ltmain.sh.
15025 if test -f "$ltmain"; then
15026 # See if we are running on zsh, and set the options which allow our commands through
15027 # without removal of \ escapes.
15028 if test -n "${ZSH_VERSION+set}" ; then
15029 setopt NO_GLOB_SUBST
15031 # Now quote all the things that may contain metacharacters while being
15032 # careful not to overquote the AC_SUBSTed values. We take copies of the
15033 # variables and quote the copies for generation of the libtool script.
15034 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15035 SED SHELL STRIP \
15036 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15037 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15038 deplibs_check_method reload_flag reload_cmds need_locks \
15039 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15040 lt_cv_sys_global_symbol_to_c_name_address \
15041 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15042 old_postinstall_cmds old_postuninstall_cmds \
15043 compiler_F77 \
15044 CC_F77 \
15045 LD_F77 \
15046 lt_prog_compiler_wl_F77 \
15047 lt_prog_compiler_pic_F77 \
15048 lt_prog_compiler_static_F77 \
15049 lt_prog_compiler_no_builtin_flag_F77 \
15050 export_dynamic_flag_spec_F77 \
15051 thread_safe_flag_spec_F77 \
15052 whole_archive_flag_spec_F77 \
15053 enable_shared_with_static_runtimes_F77 \
15054 old_archive_cmds_F77 \
15055 old_archive_from_new_cmds_F77 \
15056 predep_objects_F77 \
15057 postdep_objects_F77 \
15058 predeps_F77 \
15059 postdeps_F77 \
15060 compiler_lib_search_path_F77 \
15061 archive_cmds_F77 \
15062 archive_expsym_cmds_F77 \
15063 postinstall_cmds_F77 \
15064 postuninstall_cmds_F77 \
15065 old_archive_from_expsyms_cmds_F77 \
15066 allow_undefined_flag_F77 \
15067 no_undefined_flag_F77 \
15068 export_symbols_cmds_F77 \
15069 hardcode_libdir_flag_spec_F77 \
15070 hardcode_libdir_flag_spec_ld_F77 \
15071 hardcode_libdir_separator_F77 \
15072 hardcode_automatic_F77 \
15073 module_cmds_F77 \
15074 module_expsym_cmds_F77 \
15075 lt_cv_prog_compiler_c_o_F77 \
15076 exclude_expsyms_F77 \
15077 include_expsyms_F77; do
15079 case $var in
15080 old_archive_cmds_F77 | \
15081 old_archive_from_new_cmds_F77 | \
15082 archive_cmds_F77 | \
15083 archive_expsym_cmds_F77 | \
15084 module_cmds_F77 | \
15085 module_expsym_cmds_F77 | \
15086 old_archive_from_expsyms_cmds_F77 | \
15087 export_symbols_cmds_F77 | \
15088 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15089 postinstall_cmds | postuninstall_cmds | \
15090 old_postinstall_cmds | old_postuninstall_cmds | \
15091 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15092 # Double-quote double-evaled strings.
15093 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15096 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15098 esac
15099 done
15101 case $lt_echo in
15102 *'\$0 --fallback-echo"')
15103 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15105 esac
15107 cfgfile="$ofile"
15109 cat <<__EOF__ >> "$cfgfile"
15110 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15112 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15114 # Shell to use when invoking shell scripts.
15115 SHELL=$lt_SHELL
15117 # Whether or not to build shared libraries.
15118 build_libtool_libs=$enable_shared
15120 # Whether or not to build static libraries.
15121 build_old_libs=$enable_static
15123 # Whether or not to add -lc for building shared libraries.
15124 build_libtool_need_lc=$archive_cmds_need_lc_F77
15126 # Whether or not to disallow shared libs when runtime libs are static
15127 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15129 # Whether or not to optimize for fast installation.
15130 fast_install=$enable_fast_install
15132 # The host system.
15133 host_alias=$host_alias
15134 host=$host
15136 # An echo program that does not interpret backslashes.
15137 echo=$lt_echo
15139 # The archiver.
15140 AR=$lt_AR
15141 AR_FLAGS=$lt_AR_FLAGS
15143 # A C compiler.
15144 LTCC=$lt_LTCC
15146 # A language-specific compiler.
15147 CC=$lt_compiler_F77
15149 # Is the compiler the GNU C compiler?
15150 with_gcc=$GCC_F77
15152 # An ERE matcher.
15153 EGREP=$lt_EGREP
15155 # The linker used to build libraries.
15156 LD=$lt_LD_F77
15158 # Whether we need hard or soft links.
15159 LN_S=$lt_LN_S
15161 # A BSD-compatible nm program.
15162 NM=$lt_NM
15164 # A symbol stripping program
15165 STRIP=$lt_STRIP
15167 # Used to examine libraries when file_magic_cmd begins "file"
15168 MAGIC_CMD=$MAGIC_CMD
15170 # Used on cygwin: DLL creation program.
15171 DLLTOOL="$DLLTOOL"
15173 # Used on cygwin: object dumper.
15174 OBJDUMP="$OBJDUMP"
15176 # Used on cygwin: assembler.
15177 AS="$AS"
15179 # The name of the directory that contains temporary libtool files.
15180 objdir=$objdir
15182 # How to create reloadable object files.
15183 reload_flag=$lt_reload_flag
15184 reload_cmds=$lt_reload_cmds
15186 # How to pass a linker flag through the compiler.
15187 wl=$lt_lt_prog_compiler_wl_F77
15189 # Object file suffix (normally "o").
15190 objext="$ac_objext"
15192 # Old archive suffix (normally "a").
15193 libext="$libext"
15195 # Shared library suffix (normally ".so").
15196 shrext_cmds='$shrext_cmds'
15198 # Executable file suffix (normally "").
15199 exeext="$exeext"
15201 # Additional compiler flags for building library objects.
15202 pic_flag=$lt_lt_prog_compiler_pic_F77
15203 pic_mode=$pic_mode
15205 # What is the maximum length of a command?
15206 max_cmd_len=$lt_cv_sys_max_cmd_len
15208 # Does compiler simultaneously support -c and -o options?
15209 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15211 # Must we lock files when doing compilation ?
15212 need_locks=$lt_need_locks
15214 # Do we need the lib prefix for modules?
15215 need_lib_prefix=$need_lib_prefix
15217 # Do we need a version for libraries?
15218 need_version=$need_version
15220 # Whether dlopen is supported.
15221 dlopen_support=$enable_dlopen
15223 # Whether dlopen of programs is supported.
15224 dlopen_self=$enable_dlopen_self
15226 # Whether dlopen of statically linked programs is supported.
15227 dlopen_self_static=$enable_dlopen_self_static
15229 # Compiler flag to prevent dynamic linking.
15230 link_static_flag=$lt_lt_prog_compiler_static_F77
15232 # Compiler flag to turn off builtin functions.
15233 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15235 # Compiler flag to allow reflexive dlopens.
15236 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15238 # Compiler flag to generate shared objects directly from archives.
15239 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15241 # Compiler flag to generate thread-safe objects.
15242 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15244 # Library versioning type.
15245 version_type=$version_type
15247 # Format of library name prefix.
15248 libname_spec=$lt_libname_spec
15250 # List of archive names. First name is the real one, the rest are links.
15251 # The last name is the one that the linker finds with -lNAME.
15252 library_names_spec=$lt_library_names_spec
15254 # The coded name of the library, if different from the real name.
15255 soname_spec=$lt_soname_spec
15257 # Commands used to build and install an old-style archive.
15258 RANLIB=$lt_RANLIB
15259 old_archive_cmds=$lt_old_archive_cmds_F77
15260 old_postinstall_cmds=$lt_old_postinstall_cmds
15261 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15263 # Create an old-style archive from a shared archive.
15264 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15266 # Create a temporary old-style archive to link instead of a shared archive.
15267 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15269 # Commands used to build and install a shared archive.
15270 archive_cmds=$lt_archive_cmds_F77
15271 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15272 postinstall_cmds=$lt_postinstall_cmds
15273 postuninstall_cmds=$lt_postuninstall_cmds
15275 # Commands used to build a loadable module (assumed same as above if empty)
15276 module_cmds=$lt_module_cmds_F77
15277 module_expsym_cmds=$lt_module_expsym_cmds_F77
15279 # Commands to strip libraries.
15280 old_striplib=$lt_old_striplib
15281 striplib=$lt_striplib
15283 # Dependencies to place before the objects being linked to create a
15284 # shared library.
15285 predep_objects=$lt_predep_objects_F77
15287 # Dependencies to place after the objects being linked to create a
15288 # shared library.
15289 postdep_objects=$lt_postdep_objects_F77
15291 # Dependencies to place before the objects being linked to create a
15292 # shared library.
15293 predeps=$lt_predeps_F77
15295 # Dependencies to place after the objects being linked to create a
15296 # shared library.
15297 postdeps=$lt_postdeps_F77
15299 # The library search path used internally by the compiler when linking
15300 # a shared library.
15301 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15303 # Method to check whether dependent libraries are shared objects.
15304 deplibs_check_method=$lt_deplibs_check_method
15306 # Command to use when deplibs_check_method == file_magic.
15307 file_magic_cmd=$lt_file_magic_cmd
15309 # Flag that allows shared libraries with undefined symbols to be built.
15310 allow_undefined_flag=$lt_allow_undefined_flag_F77
15312 # Flag that forces no undefined symbols.
15313 no_undefined_flag=$lt_no_undefined_flag_F77
15315 # Commands used to finish a libtool library installation in a directory.
15316 finish_cmds=$lt_finish_cmds
15318 # Same as above, but a single script fragment to be evaled but not shown.
15319 finish_eval=$lt_finish_eval
15321 # Take the output of nm and produce a listing of raw symbols and C names.
15322 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15324 # Transform the output of nm in a proper C declaration
15325 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15327 # Transform the output of nm in a C name address pair
15328 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15330 # This is the shared library runtime path variable.
15331 runpath_var=$runpath_var
15333 # This is the shared library path variable.
15334 shlibpath_var=$shlibpath_var
15336 # Is shlibpath searched before the hard-coded library search path?
15337 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15339 # How to hardcode a shared library path into an executable.
15340 hardcode_action=$hardcode_action_F77
15342 # Whether we should hardcode library paths into libraries.
15343 hardcode_into_libs=$hardcode_into_libs
15345 # Flag to hardcode \$libdir into a binary during linking.
15346 # This must work even if \$libdir does not exist.
15347 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15349 # If ld is used when linking, flag to hardcode \$libdir into
15350 # a binary during linking. This must work even if \$libdir does
15351 # not exist.
15352 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15354 # Whether we need a single -rpath flag with a separated argument.
15355 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15357 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15358 # resulting binary.
15359 hardcode_direct=$hardcode_direct_F77
15361 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15362 # resulting binary.
15363 hardcode_minus_L=$hardcode_minus_L_F77
15365 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15366 # the resulting binary.
15367 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15369 # Set to yes if building a shared library automatically hardcodes DIR into the library
15370 # and all subsequent libraries and executables linked against it.
15371 hardcode_automatic=$hardcode_automatic_F77
15373 # Variables whose values should be saved in libtool wrapper scripts and
15374 # restored at relink time.
15375 variables_saved_for_relink="$variables_saved_for_relink"
15377 # Whether libtool must link a program against all its dependency libraries.
15378 link_all_deplibs=$link_all_deplibs_F77
15380 # Compile-time system search path for libraries
15381 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15383 # Run-time system search path for libraries
15384 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15386 # Fix the shell variable \$srcfile for the compiler.
15387 fix_srcfile_path="$fix_srcfile_path_F77"
15389 # Set to yes if exported symbols are required.
15390 always_export_symbols=$always_export_symbols_F77
15392 # The commands to list exported symbols.
15393 export_symbols_cmds=$lt_export_symbols_cmds_F77
15395 # The commands to extract the exported symbol list from a shared archive.
15396 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15398 # Symbols that should not be listed in the preloaded symbols.
15399 exclude_expsyms=$lt_exclude_expsyms_F77
15401 # Symbols that must always be exported.
15402 include_expsyms=$lt_include_expsyms_F77
15404 # ### END LIBTOOL TAG CONFIG: $tagname
15406 __EOF__
15409 else
15410 # If there is no Makefile yet, we rely on a make rule to execute
15411 # `config.status --recheck' to rerun these tests and create the
15412 # libtool script then.
15413 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15414 if test -f "$ltmain_in"; then
15415 test -f Makefile && make "$ltmain"
15420 ac_ext=c
15421 ac_cpp='$CPP $CPPFLAGS'
15422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15426 CC="$lt_save_CC"
15428 else
15429 tagname=""
15433 GCJ)
15434 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15438 # Source file extension for Java test sources.
15439 ac_ext=java
15441 # Object file extension for compiled Java test sources.
15442 objext=o
15443 objext_GCJ=$objext
15445 # Code to be used in simple compile tests
15446 lt_simple_compile_test_code="class foo {}\n"
15448 # Code to be used in simple link tests
15449 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15451 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15453 # If no C compiler was specified, use CC.
15454 LTCC=${LTCC-"$CC"}
15456 # Allow CC to be a program name with arguments.
15457 compiler=$CC
15460 # Allow CC to be a program name with arguments.
15461 lt_save_CC="$CC"
15462 CC=${GCJ-"gcj"}
15463 compiler=$CC
15464 compiler_GCJ=$CC
15466 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15467 archive_cmds_need_lc_GCJ=no
15470 lt_prog_compiler_no_builtin_flag_GCJ=
15472 if test "$GCC" = yes; then
15473 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15476 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15477 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15478 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15479 echo $ECHO_N "(cached) $ECHO_C" >&6
15480 else
15481 lt_cv_prog_compiler_rtti_exceptions=no
15482 ac_outfile=conftest.$ac_objext
15483 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15484 lt_compiler_flag="-fno-rtti -fno-exceptions"
15485 # Insert the option either (1) after the last *FLAGS variable, or
15486 # (2) before a word containing "conftest.", or (3) at the end.
15487 # Note that $ac_compile itself does not contain backslashes and begins
15488 # with a dollar sign (not a hyphen), so the echo should work correctly.
15489 # The option is referenced via a variable to avoid confusing sed.
15490 lt_compile=`echo "$ac_compile" | $SED \
15491 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15492 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15493 -e 's:$: $lt_compiler_flag:'`
15494 (eval echo "\"\$as_me:15494: $lt_compile\"" >&5)
15495 (eval "$lt_compile" 2>conftest.err)
15496 ac_status=$?
15497 cat conftest.err >&5
15498 echo "$as_me:15498: \$? = $ac_status" >&5
15499 if (exit $ac_status) && test -s "$ac_outfile"; then
15500 # The compiler can only warn and ignore the option if not recognized
15501 # So say no if there are warnings
15502 if test ! -s conftest.err; then
15503 lt_cv_prog_compiler_rtti_exceptions=yes
15506 $rm conftest*
15509 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15510 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15512 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15513 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15514 else
15520 lt_prog_compiler_wl_GCJ=
15521 lt_prog_compiler_pic_GCJ=
15522 lt_prog_compiler_static_GCJ=
15524 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15525 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15527 if test "$GCC" = yes; then
15528 lt_prog_compiler_wl_GCJ='-Wl,'
15529 lt_prog_compiler_static_GCJ='-static'
15531 case $host_os in
15532 aix*)
15533 # All AIX code is PIC.
15534 if test "$host_cpu" = ia64; then
15535 # AIX 5 now supports IA64 processor
15536 lt_prog_compiler_static_GCJ='-Bstatic'
15540 amigaos*)
15541 # FIXME: we need at least 68020 code to build shared libraries, but
15542 # adding the `-m68020' flag to GCC prevents building anything better,
15543 # like `-m68040'.
15544 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15547 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15548 # PIC is the default for these OSes.
15551 mingw* | pw32* | os2*)
15552 # This hack is so that the source file can tell whether it is being
15553 # built for inclusion in a dll (and should export symbols for example).
15554 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15557 darwin* | rhapsody*)
15558 # PIC is the default on this platform
15559 # Common symbols not allowed in MH_DYLIB files
15560 lt_prog_compiler_pic_GCJ='-fno-common'
15563 msdosdjgpp*)
15564 # Just because we use GCC doesn't mean we suddenly get shared libraries
15565 # on systems that don't support them.
15566 lt_prog_compiler_can_build_shared_GCJ=no
15567 enable_shared=no
15570 sysv4*MP*)
15571 if test -d /usr/nec; then
15572 lt_prog_compiler_pic_GCJ=-Kconform_pic
15576 hpux*)
15577 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15578 # not for PA HP-UX.
15579 case "$host_cpu" in
15580 hppa*64*|ia64*)
15581 # +Z the default
15584 lt_prog_compiler_pic_GCJ='-fPIC'
15586 esac
15590 lt_prog_compiler_pic_GCJ='-fPIC'
15592 esac
15593 else
15594 # PORTME Check for flag to pass linker flags through the system compiler.
15595 case $host_os in
15596 aix*)
15597 lt_prog_compiler_wl_GCJ='-Wl,'
15598 if test "$host_cpu" = ia64; then
15599 # AIX 5 now supports IA64 processor
15600 lt_prog_compiler_static_GCJ='-Bstatic'
15601 else
15602 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15606 mingw* | pw32* | os2*)
15607 # This hack is so that the source file can tell whether it is being
15608 # built for inclusion in a dll (and should export symbols for example).
15609 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15612 hpux9* | hpux10* | hpux11*)
15613 lt_prog_compiler_wl_GCJ='-Wl,'
15614 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15615 # not for PA HP-UX.
15616 case "$host_cpu" in
15617 hppa*64*|ia64*)
15618 # +Z the default
15621 lt_prog_compiler_pic_GCJ='+Z'
15623 esac
15624 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15625 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15628 irix5* | irix6* | nonstopux*)
15629 lt_prog_compiler_wl_GCJ='-Wl,'
15630 # PIC (with -KPIC) is the default.
15631 lt_prog_compiler_static_GCJ='-non_shared'
15634 newsos6)
15635 lt_prog_compiler_pic_GCJ='-KPIC'
15636 lt_prog_compiler_static_GCJ='-Bstatic'
15639 linux*)
15640 case $CC in
15641 icc* | ecc*)
15642 lt_prog_compiler_wl_GCJ='-Wl,'
15643 lt_prog_compiler_pic_GCJ='-KPIC'
15644 lt_prog_compiler_static_GCJ='-static'
15646 ccc*)
15647 lt_prog_compiler_wl_GCJ='-Wl,'
15648 # All Alpha code is PIC.
15649 lt_prog_compiler_static_GCJ='-non_shared'
15651 esac
15654 osf3* | osf4* | osf5*)
15655 lt_prog_compiler_wl_GCJ='-Wl,'
15656 # All OSF/1 code is PIC.
15657 lt_prog_compiler_static_GCJ='-non_shared'
15660 sco3.2v5*)
15661 lt_prog_compiler_pic_GCJ='-Kpic'
15662 lt_prog_compiler_static_GCJ='-dn'
15665 solaris*)
15666 lt_prog_compiler_wl_GCJ='-Wl,'
15667 lt_prog_compiler_pic_GCJ='-KPIC'
15668 lt_prog_compiler_static_GCJ='-Bstatic'
15671 sunos4*)
15672 lt_prog_compiler_wl_GCJ='-Qoption ld '
15673 lt_prog_compiler_pic_GCJ='-PIC'
15674 lt_prog_compiler_static_GCJ='-Bstatic'
15677 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15678 lt_prog_compiler_wl_GCJ='-Wl,'
15679 lt_prog_compiler_pic_GCJ='-KPIC'
15680 lt_prog_compiler_static_GCJ='-Bstatic'
15683 sysv4*MP*)
15684 if test -d /usr/nec ;then
15685 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15686 lt_prog_compiler_static_GCJ='-Bstatic'
15690 uts4*)
15691 lt_prog_compiler_pic_GCJ='-pic'
15692 lt_prog_compiler_static_GCJ='-Bstatic'
15696 lt_prog_compiler_can_build_shared_GCJ=no
15698 esac
15701 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15702 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15705 # Check to make sure the PIC flag actually works.
15707 if test -n "$lt_prog_compiler_pic_GCJ"; then
15709 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15710 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15711 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15712 echo $ECHO_N "(cached) $ECHO_C" >&6
15713 else
15714 lt_prog_compiler_pic_works_GCJ=no
15715 ac_outfile=conftest.$ac_objext
15716 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15717 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15718 # Insert the option either (1) after the last *FLAGS variable, or
15719 # (2) before a word containing "conftest.", or (3) at the end.
15720 # Note that $ac_compile itself does not contain backslashes and begins
15721 # with a dollar sign (not a hyphen), so the echo should work correctly.
15722 # The option is referenced via a variable to avoid confusing sed.
15723 lt_compile=`echo "$ac_compile" | $SED \
15724 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15725 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15726 -e 's:$: $lt_compiler_flag:'`
15727 (eval echo "\"\$as_me:15727: $lt_compile\"" >&5)
15728 (eval "$lt_compile" 2>conftest.err)
15729 ac_status=$?
15730 cat conftest.err >&5
15731 echo "$as_me:15731: \$? = $ac_status" >&5
15732 if (exit $ac_status) && test -s "$ac_outfile"; then
15733 # The compiler can only warn and ignore the option if not recognized
15734 # So say no if there are warnings
15735 if test ! -s conftest.err; then
15736 lt_prog_compiler_pic_works_GCJ=yes
15739 $rm conftest*
15742 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15743 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15745 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15746 case $lt_prog_compiler_pic_GCJ in
15747 "" | " "*) ;;
15748 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15749 esac
15750 else
15751 lt_prog_compiler_pic_GCJ=
15752 lt_prog_compiler_can_build_shared_GCJ=no
15756 case "$host_os" in
15757 # For platforms which do not support PIC, -DPIC is meaningless:
15758 *djgpp*)
15759 lt_prog_compiler_pic_GCJ=
15762 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15764 esac
15766 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15767 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15768 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15769 echo $ECHO_N "(cached) $ECHO_C" >&6
15770 else
15771 lt_cv_prog_compiler_c_o_GCJ=no
15772 $rm -r conftest 2>/dev/null
15773 mkdir conftest
15774 cd conftest
15775 mkdir out
15776 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15778 lt_compiler_flag="-o out/conftest2.$ac_objext"
15779 # Insert the option either (1) after the last *FLAGS variable, or
15780 # (2) before a word containing "conftest.", or (3) at the end.
15781 # Note that $ac_compile itself does not contain backslashes and begins
15782 # with a dollar sign (not a hyphen), so the echo should work correctly.
15783 lt_compile=`echo "$ac_compile" | $SED \
15784 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15785 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15786 -e 's:$: $lt_compiler_flag:'`
15787 (eval echo "\"\$as_me:15787: $lt_compile\"" >&5)
15788 (eval "$lt_compile" 2>out/conftest.err)
15789 ac_status=$?
15790 cat out/conftest.err >&5
15791 echo "$as_me:15791: \$? = $ac_status" >&5
15792 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15793 then
15794 # The compiler can only warn and ignore the option if not recognized
15795 # So say no if there are warnings
15796 if test ! -s out/conftest.err; then
15797 lt_cv_prog_compiler_c_o_GCJ=yes
15800 chmod u+w .
15801 $rm conftest*
15802 # SGI C++ compiler will create directory out/ii_files/ for
15803 # template instantiation
15804 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15805 $rm out/* && rmdir out
15806 cd ..
15807 rmdir conftest
15808 $rm conftest*
15811 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15812 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15815 hard_links="nottested"
15816 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15817 # do not overwrite the value of need_locks provided by the user
15818 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15819 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15820 hard_links=yes
15821 $rm conftest*
15822 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15823 touch conftest.a
15824 ln conftest.a conftest.b 2>&5 || hard_links=no
15825 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15826 echo "$as_me:$LINENO: result: $hard_links" >&5
15827 echo "${ECHO_T}$hard_links" >&6
15828 if test "$hard_links" = no; then
15829 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15830 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15831 need_locks=warn
15833 else
15834 need_locks=no
15837 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15838 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15840 runpath_var=
15841 allow_undefined_flag_GCJ=
15842 enable_shared_with_static_runtimes_GCJ=no
15843 archive_cmds_GCJ=
15844 archive_expsym_cmds_GCJ=
15845 old_archive_From_new_cmds_GCJ=
15846 old_archive_from_expsyms_cmds_GCJ=
15847 export_dynamic_flag_spec_GCJ=
15848 whole_archive_flag_spec_GCJ=
15849 thread_safe_flag_spec_GCJ=
15850 hardcode_libdir_flag_spec_GCJ=
15851 hardcode_libdir_flag_spec_ld_GCJ=
15852 hardcode_libdir_separator_GCJ=
15853 hardcode_direct_GCJ=no
15854 hardcode_minus_L_GCJ=no
15855 hardcode_shlibpath_var_GCJ=unsupported
15856 link_all_deplibs_GCJ=unknown
15857 hardcode_automatic_GCJ=no
15858 module_cmds_GCJ=
15859 module_expsym_cmds_GCJ=
15860 always_export_symbols_GCJ=no
15861 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15862 # include_expsyms should be a list of space-separated symbols to be *always*
15863 # included in the symbol list
15864 include_expsyms_GCJ=
15865 # exclude_expsyms can be an extended regexp of symbols to exclude
15866 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15867 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15868 # as well as any symbol that contains `d'.
15869 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15870 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15871 # platforms (ab)use it in PIC code, but their linkers get confused if
15872 # the symbol is explicitly referenced. Since portable code cannot
15873 # rely on this symbol name, it's probably fine to never include it in
15874 # preloaded symbol tables.
15875 extract_expsyms_cmds=
15877 case $host_os in
15878 cygwin* | mingw* | pw32*)
15879 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15880 # When not using gcc, we currently assume that we are using
15881 # Microsoft Visual C++.
15882 if test "$GCC" != yes; then
15883 with_gnu_ld=no
15886 openbsd*)
15887 with_gnu_ld=no
15889 esac
15891 ld_shlibs_GCJ=yes
15892 if test "$with_gnu_ld" = yes; then
15893 # If archive_cmds runs LD, not CC, wlarc should be empty
15894 wlarc='${wl}'
15896 # See if GNU ld supports shared libraries.
15897 case $host_os in
15898 aix3* | aix4* | aix5*)
15899 # On AIX/PPC, the GNU linker is very broken
15900 if test "$host_cpu" != ia64; then
15901 ld_shlibs_GCJ=no
15902 cat <<EOF 1>&2
15904 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15905 *** to be unable to reliably create shared libraries on AIX.
15906 *** Therefore, libtool is disabling shared libraries support. If you
15907 *** really care for shared libraries, you may want to modify your PATH
15908 *** so that a non-GNU linker is found, and then restart.
15914 amigaos*)
15915 archive_cmds_GCJ='$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)'
15916 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15917 hardcode_minus_L_GCJ=yes
15919 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15920 # that the semantics of dynamic libraries on AmigaOS, at least up
15921 # to version 4, is to share data among multiple programs linked
15922 # with the same dynamic library. Since this doesn't match the
15923 # behavior of shared libraries on other platforms, we can't use
15924 # them.
15925 ld_shlibs_GCJ=no
15928 beos*)
15929 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15930 allow_undefined_flag_GCJ=unsupported
15931 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15932 # support --undefined. This deserves some investigation. FIXME
15933 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15934 else
15935 ld_shlibs_GCJ=no
15939 cygwin* | mingw* | pw32*)
15940 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15941 # as there is no search path for DLLs.
15942 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15943 allow_undefined_flag_GCJ=unsupported
15944 always_export_symbols_GCJ=no
15945 enable_shared_with_static_runtimes_GCJ=yes
15946 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15948 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15949 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15950 # If the export-symbols file already is a .def file (1st line
15951 # is EXPORTS), use it as is; otherwise, prepend...
15952 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15953 cp $export_symbols $output_objdir/$soname.def;
15954 else
15955 echo EXPORTS > $output_objdir/$soname.def;
15956 cat $export_symbols >> $output_objdir/$soname.def;
15958 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15959 else
15960 ld_shlibs=no
15964 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
15965 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15966 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15967 wlarc=
15968 else
15969 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15970 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15974 solaris* | sysv5*)
15975 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15976 ld_shlibs_GCJ=no
15977 cat <<EOF 1>&2
15979 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15980 *** create shared libraries on Solaris systems. Therefore, libtool
15981 *** is disabling shared libraries support. We urge you to upgrade GNU
15982 *** binutils to release 2.9.1 or newer. Another option is to modify
15983 *** your PATH or compiler configuration so that the native linker is
15984 *** used, and then restart.
15987 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15988 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15989 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15990 else
15991 ld_shlibs_GCJ=no
15995 sunos4*)
15996 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15997 wlarc=
15998 hardcode_direct_GCJ=yes
15999 hardcode_shlibpath_var_GCJ=no
16002 linux*)
16003 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16004 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16005 archive_cmds_GCJ="$tmp_archive_cmds"
16006 supports_anon_versioning=no
16007 case `$LD -v 2>/dev/null` in
16008 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16009 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16010 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16011 *\ 2.11.*) ;; # other 2.11 versions
16012 *) supports_anon_versioning=yes ;;
16013 esac
16014 if test $supports_anon_versioning = yes; then
16015 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16016 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16017 $echo "local: *; };" >> $output_objdir/$libname.ver~
16018 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16019 else
16020 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16022 link_all_deplibs_GCJ=no
16023 else
16024 ld_shlibs_GCJ=no
16029 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16030 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16031 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16032 else
16033 ld_shlibs_GCJ=no
16036 esac
16038 if test "$ld_shlibs_GCJ" = yes; then
16039 runpath_var=LD_RUN_PATH
16040 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16041 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16042 # ancient GNU ld didn't support --whole-archive et. al.
16043 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16044 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16045 else
16046 whole_archive_flag_spec_GCJ=
16049 else
16050 # PORTME fill in a description of your system's linker (not GNU ld)
16051 case $host_os in
16052 aix3*)
16053 allow_undefined_flag_GCJ=unsupported
16054 always_export_symbols_GCJ=yes
16055 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16056 # Note: this linker hardcodes the directories in LIBPATH if there
16057 # are no directories specified by -L.
16058 hardcode_minus_L_GCJ=yes
16059 if test "$GCC" = yes && test -z "$link_static_flag"; then
16060 # Neither direct hardcoding nor static linking is supported with a
16061 # broken collect2.
16062 hardcode_direct_GCJ=unsupported
16066 aix4* | aix5*)
16067 if test "$host_cpu" = ia64; then
16068 # On IA64, the linker does run time linking by default, so we don't
16069 # have to do anything special.
16070 aix_use_runtimelinking=no
16071 exp_sym_flag='-Bexport'
16072 no_entry_flag=""
16073 else
16074 # If we're using GNU nm, then we don't want the "-C" option.
16075 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16076 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16077 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16078 else
16079 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16081 aix_use_runtimelinking=no
16083 # Test if we are trying to use run time linking or normal
16084 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16085 # need to do runtime linking.
16086 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16087 for ld_flag in $LDFLAGS; do
16088 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16089 aix_use_runtimelinking=yes
16090 break
16092 done
16093 esac
16095 exp_sym_flag='-bexport'
16096 no_entry_flag='-bnoentry'
16099 # When large executables or shared objects are built, AIX ld can
16100 # have problems creating the table of contents. If linking a library
16101 # or program results in "error TOC overflow" add -mminimal-toc to
16102 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16103 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16105 archive_cmds_GCJ=''
16106 hardcode_direct_GCJ=yes
16107 hardcode_libdir_separator_GCJ=':'
16108 link_all_deplibs_GCJ=yes
16110 if test "$GCC" = yes; then
16111 case $host_os in aix4.012|aix4.012.*)
16112 # We only want to do this on AIX 4.2 and lower, the check
16113 # below for broken collect2 doesn't work under 4.3+
16114 collect2name=`${CC} -print-prog-name=collect2`
16115 if test -f "$collect2name" && \
16116 strings "$collect2name" | grep resolve_lib_name >/dev/null
16117 then
16118 # We have reworked collect2
16119 hardcode_direct_GCJ=yes
16120 else
16121 # We have old collect2
16122 hardcode_direct_GCJ=unsupported
16123 # It fails to find uninstalled libraries when the uninstalled
16124 # path is not listed in the libpath. Setting hardcode_minus_L
16125 # to unsupported forces relinking
16126 hardcode_minus_L_GCJ=yes
16127 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16128 hardcode_libdir_separator_GCJ=
16130 esac
16131 shared_flag='-shared'
16132 else
16133 # not using gcc
16134 if test "$host_cpu" = ia64; then
16135 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16136 # chokes on -Wl,-G. The following line is correct:
16137 shared_flag='-G'
16138 else
16139 if test "$aix_use_runtimelinking" = yes; then
16140 shared_flag='${wl}-G'
16141 else
16142 shared_flag='${wl}-bM:SRE'
16147 # It seems that -bexpall does not export symbols beginning with
16148 # underscore (_), so it is better to generate a list of symbols to export.
16149 always_export_symbols_GCJ=yes
16150 if test "$aix_use_runtimelinking" = yes; then
16151 # Warning - without using the other runtime loading flags (-brtl),
16152 # -berok will link without error, but may produce a broken library.
16153 allow_undefined_flag_GCJ='-berok'
16154 # Determine the default libpath from the value encoded in an empty executable.
16155 cat >conftest.$ac_ext <<_ACEOF
16156 /* confdefs.h. */
16157 _ACEOF
16158 cat confdefs.h >>conftest.$ac_ext
16159 cat >>conftest.$ac_ext <<_ACEOF
16160 /* end confdefs.h. */
16163 main ()
16167 return 0;
16169 _ACEOF
16170 rm -f conftest.$ac_objext conftest$ac_exeext
16171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16172 (eval $ac_link) 2>conftest.er1
16173 ac_status=$?
16174 grep -v '^ *+' conftest.er1 >conftest.err
16175 rm -f conftest.er1
16176 cat conftest.err >&5
16177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16178 (exit $ac_status); } &&
16179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16181 (eval $ac_try) 2>&5
16182 ac_status=$?
16183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184 (exit $ac_status); }; } &&
16185 { ac_try='test -s conftest$ac_exeext'
16186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16187 (eval $ac_try) 2>&5
16188 ac_status=$?
16189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16190 (exit $ac_status); }; }; then
16192 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16194 # Check for a 64-bit object if we didn't find anything.
16195 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16196 }'`; fi
16197 else
16198 echo "$as_me: failed program was:" >&5
16199 sed 's/^/| /' conftest.$ac_ext >&5
16202 rm -f conftest.err conftest.$ac_objext \
16203 conftest$ac_exeext conftest.$ac_ext
16204 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16206 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16207 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16208 else
16209 if test "$host_cpu" = ia64; then
16210 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16211 allow_undefined_flag_GCJ="-z nodefs"
16212 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16213 else
16214 # Determine the default libpath from the value encoded in an empty executable.
16215 cat >conftest.$ac_ext <<_ACEOF
16216 /* confdefs.h. */
16217 _ACEOF
16218 cat confdefs.h >>conftest.$ac_ext
16219 cat >>conftest.$ac_ext <<_ACEOF
16220 /* end confdefs.h. */
16223 main ()
16227 return 0;
16229 _ACEOF
16230 rm -f conftest.$ac_objext conftest$ac_exeext
16231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16232 (eval $ac_link) 2>conftest.er1
16233 ac_status=$?
16234 grep -v '^ *+' conftest.er1 >conftest.err
16235 rm -f conftest.er1
16236 cat conftest.err >&5
16237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238 (exit $ac_status); } &&
16239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16241 (eval $ac_try) 2>&5
16242 ac_status=$?
16243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244 (exit $ac_status); }; } &&
16245 { ac_try='test -s conftest$ac_exeext'
16246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16247 (eval $ac_try) 2>&5
16248 ac_status=$?
16249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250 (exit $ac_status); }; }; then
16252 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16254 # Check for a 64-bit object if we didn't find anything.
16255 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16256 }'`; fi
16257 else
16258 echo "$as_me: failed program was:" >&5
16259 sed 's/^/| /' conftest.$ac_ext >&5
16262 rm -f conftest.err conftest.$ac_objext \
16263 conftest$ac_exeext conftest.$ac_ext
16264 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16266 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16267 # Warning - without using the other run time loading flags,
16268 # -berok will link without error, but may produce a broken library.
16269 no_undefined_flag_GCJ=' ${wl}-bernotok'
16270 allow_undefined_flag_GCJ=' ${wl}-berok'
16271 # -bexpall does not export symbols beginning with underscore (_)
16272 always_export_symbols_GCJ=yes
16273 # Exported symbols can be pulled into shared objects from archives
16274 whole_archive_flag_spec_GCJ=' '
16275 archive_cmds_need_lc_GCJ=yes
16276 # This is similar to how AIX traditionally builds it's shared libraries.
16277 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16282 amigaos*)
16283 archive_cmds_GCJ='$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)'
16284 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16285 hardcode_minus_L_GCJ=yes
16286 # see comment about different semantics on the GNU ld section
16287 ld_shlibs_GCJ=no
16290 bsdi4*)
16291 export_dynamic_flag_spec_GCJ=-rdynamic
16294 cygwin* | mingw* | pw32*)
16295 # When not using gcc, we currently assume that we are using
16296 # Microsoft Visual C++.
16297 # hardcode_libdir_flag_spec is actually meaningless, as there is
16298 # no search path for DLLs.
16299 hardcode_libdir_flag_spec_GCJ=' '
16300 allow_undefined_flag_GCJ=unsupported
16301 # Tell ltmain to make .lib files, not .a files.
16302 libext=lib
16303 # Tell ltmain to make .dll files, not .so files.
16304 shrext_cmds=".dll"
16305 # FIXME: Setting linknames here is a bad hack.
16306 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16307 # The linker will automatically build a .lib file if we build a DLL.
16308 old_archive_From_new_cmds_GCJ='true'
16309 # FIXME: Should let the user specify the lib program.
16310 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16311 fix_srcfile_path='`cygpath -w "$srcfile"`'
16312 enable_shared_with_static_runtimes_GCJ=yes
16315 darwin* | rhapsody*)
16316 if test "$GXX" = yes ; then
16317 archive_cmds_need_lc_GCJ=no
16318 case "$host_os" in
16319 rhapsody* | darwin1.[012])
16320 allow_undefined_flag_GCJ='-undefined suppress'
16322 *) # Darwin 1.3 on
16323 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16324 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16325 else
16326 case ${MACOSX_DEPLOYMENT_TARGET} in
16327 10.[012])
16328 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16330 10.*)
16331 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16333 esac
16336 esac
16337 lt_int_apple_cc_single_mod=no
16338 output_verbose_link_cmd='echo'
16339 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16340 lt_int_apple_cc_single_mod=yes
16342 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16343 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16344 else
16345 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16347 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16348 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16349 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16350 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16351 else
16352 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16354 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -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}'
16355 hardcode_direct_GCJ=no
16356 hardcode_automatic_GCJ=yes
16357 hardcode_shlibpath_var_GCJ=unsupported
16358 whole_archive_flag_spec_GCJ='-all_load $convenience'
16359 link_all_deplibs_GCJ=yes
16360 else
16361 ld_shlibs_GCJ=no
16365 dgux*)
16366 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16367 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16368 hardcode_shlibpath_var_GCJ=no
16371 freebsd1*)
16372 ld_shlibs_GCJ=no
16375 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16376 # support. Future versions do this automatically, but an explicit c++rt0.o
16377 # does not break anything, and helps significantly (at the cost of a little
16378 # extra space).
16379 freebsd2.2*)
16380 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16381 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16382 hardcode_direct_GCJ=yes
16383 hardcode_shlibpath_var_GCJ=no
16386 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16387 freebsd2*)
16388 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16389 hardcode_direct_GCJ=yes
16390 hardcode_minus_L_GCJ=yes
16391 hardcode_shlibpath_var_GCJ=no
16394 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16395 freebsd* | kfreebsd*-gnu)
16396 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16397 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16398 hardcode_direct_GCJ=yes
16399 hardcode_shlibpath_var_GCJ=no
16402 hpux9*)
16403 if test "$GCC" = yes; then
16404 archive_cmds_GCJ='$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'
16405 else
16406 archive_cmds_GCJ='$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'
16408 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16409 hardcode_libdir_separator_GCJ=:
16410 hardcode_direct_GCJ=yes
16412 # hardcode_minus_L: Not really in the search PATH,
16413 # but as the default location of the library.
16414 hardcode_minus_L_GCJ=yes
16415 export_dynamic_flag_spec_GCJ='${wl}-E'
16418 hpux10* | hpux11*)
16419 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16420 case "$host_cpu" in
16421 hppa*64*|ia64*)
16422 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16425 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16427 esac
16428 else
16429 case "$host_cpu" in
16430 hppa*64*|ia64*)
16431 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16434 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16436 esac
16438 if test "$with_gnu_ld" = no; then
16439 case "$host_cpu" in
16440 hppa*64*)
16441 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16442 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16443 hardcode_libdir_separator_GCJ=:
16444 hardcode_direct_GCJ=no
16445 hardcode_shlibpath_var_GCJ=no
16447 ia64*)
16448 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16449 hardcode_direct_GCJ=no
16450 hardcode_shlibpath_var_GCJ=no
16452 # hardcode_minus_L: Not really in the search PATH,
16453 # but as the default location of the library.
16454 hardcode_minus_L_GCJ=yes
16457 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16458 hardcode_libdir_separator_GCJ=:
16459 hardcode_direct_GCJ=yes
16460 export_dynamic_flag_spec_GCJ='${wl}-E'
16462 # hardcode_minus_L: Not really in the search PATH,
16463 # but as the default location of the library.
16464 hardcode_minus_L_GCJ=yes
16466 esac
16470 irix5* | irix6* | nonstopux*)
16471 if test "$GCC" = yes; then
16472 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16473 else
16474 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16475 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16477 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16478 hardcode_libdir_separator_GCJ=:
16479 link_all_deplibs_GCJ=yes
16482 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16483 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16484 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16485 else
16486 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16488 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16489 hardcode_direct_GCJ=yes
16490 hardcode_shlibpath_var_GCJ=no
16493 newsos6)
16494 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16495 hardcode_direct_GCJ=yes
16496 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16497 hardcode_libdir_separator_GCJ=:
16498 hardcode_shlibpath_var_GCJ=no
16501 openbsd*)
16502 hardcode_direct_GCJ=yes
16503 hardcode_shlibpath_var_GCJ=no
16504 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16505 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16506 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16507 export_dynamic_flag_spec_GCJ='${wl}-E'
16508 else
16509 case $host_os in
16510 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16511 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16512 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16515 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16516 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16518 esac
16522 os2*)
16523 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16524 hardcode_minus_L_GCJ=yes
16525 allow_undefined_flag_GCJ=unsupported
16526 archive_cmds_GCJ='$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'
16527 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16530 osf3*)
16531 if test "$GCC" = yes; then
16532 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16533 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16534 else
16535 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16536 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16538 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16539 hardcode_libdir_separator_GCJ=:
16542 osf4* | osf5*) # as osf3* with the addition of -msym flag
16543 if test "$GCC" = yes; then
16544 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16545 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16546 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16547 else
16548 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16549 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16550 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16551 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16553 # Both c and cxx compiler support -rpath directly
16554 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16556 hardcode_libdir_separator_GCJ=:
16559 sco3.2v5*)
16560 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16561 hardcode_shlibpath_var_GCJ=no
16562 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16563 runpath_var=LD_RUN_PATH
16564 hardcode_runpath_var=yes
16567 solaris*)
16568 no_undefined_flag_GCJ=' -z text'
16569 if test "$GCC" = yes; then
16570 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16571 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16572 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16573 else
16574 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16575 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16576 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16578 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16579 hardcode_shlibpath_var_GCJ=no
16580 case $host_os in
16581 solaris2.[0-5] | solaris2.[0-5].*) ;;
16582 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16583 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16584 esac
16585 link_all_deplibs_GCJ=yes
16588 sunos4*)
16589 if test "x$host_vendor" = xsequent; then
16590 # Use $CC to link under sequent, because it throws in some extra .o
16591 # files that make .init and .fini sections work.
16592 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16593 else
16594 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16596 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16597 hardcode_direct_GCJ=yes
16598 hardcode_minus_L_GCJ=yes
16599 hardcode_shlibpath_var_GCJ=no
16602 sysv4)
16603 case $host_vendor in
16604 sni)
16605 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16606 hardcode_direct_GCJ=yes # is this really true???
16608 siemens)
16609 ## LD is ld it makes a PLAMLIB
16610 ## CC just makes a GrossModule.
16611 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16612 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16613 hardcode_direct_GCJ=no
16615 motorola)
16616 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16617 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16619 esac
16620 runpath_var='LD_RUN_PATH'
16621 hardcode_shlibpath_var_GCJ=no
16624 sysv4.3*)
16625 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16626 hardcode_shlibpath_var_GCJ=no
16627 export_dynamic_flag_spec_GCJ='-Bexport'
16630 sysv4*MP*)
16631 if test -d /usr/nec; then
16632 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16633 hardcode_shlibpath_var_GCJ=no
16634 runpath_var=LD_RUN_PATH
16635 hardcode_runpath_var=yes
16636 ld_shlibs_GCJ=yes
16640 sysv4.2uw2*)
16641 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16642 hardcode_direct_GCJ=yes
16643 hardcode_minus_L_GCJ=no
16644 hardcode_shlibpath_var_GCJ=no
16645 hardcode_runpath_var=yes
16646 runpath_var=LD_RUN_PATH
16649 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16650 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16651 if test "$GCC" = yes; then
16652 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16653 else
16654 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16656 runpath_var='LD_RUN_PATH'
16657 hardcode_shlibpath_var_GCJ=no
16660 sysv5*)
16661 no_undefined_flag_GCJ=' -z text'
16662 # $CC -shared without GNU ld will not create a library from C++
16663 # object files and a static libstdc++, better avoid it by now
16664 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16665 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16666 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16667 hardcode_libdir_flag_spec_GCJ=
16668 hardcode_shlibpath_var_GCJ=no
16669 runpath_var='LD_RUN_PATH'
16672 uts4*)
16673 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16674 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16675 hardcode_shlibpath_var_GCJ=no
16679 ld_shlibs_GCJ=no
16681 esac
16684 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16685 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16686 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16688 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16689 if test "$GCC" = yes; then
16690 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16694 # Do we need to explicitly link libc?
16696 case "x$archive_cmds_need_lc_GCJ" in
16697 x|xyes)
16698 # Assume -lc should be added
16699 archive_cmds_need_lc_GCJ=yes
16701 if test "$enable_shared" = yes && test "$GCC" = yes; then
16702 case $archive_cmds_GCJ in
16703 *'~'*)
16704 # FIXME: we may have to deal with multi-command sequences.
16706 '$CC '*)
16707 # Test whether the compiler implicitly links with -lc since on some
16708 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16709 # to ld, don't add -lc before -lgcc.
16710 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16711 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16712 $rm conftest*
16713 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16716 (eval $ac_compile) 2>&5
16717 ac_status=$?
16718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719 (exit $ac_status); } 2>conftest.err; then
16720 soname=conftest
16721 lib=conftest
16722 libobjs=conftest.$ac_objext
16723 deplibs=
16724 wl=$lt_prog_compiler_wl_GCJ
16725 compiler_flags=-v
16726 linker_flags=-v
16727 verstring=
16728 output_objdir=.
16729 libname=conftest
16730 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16731 allow_undefined_flag_GCJ=
16732 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16733 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16734 ac_status=$?
16735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736 (exit $ac_status); }
16737 then
16738 archive_cmds_need_lc_GCJ=no
16739 else
16740 archive_cmds_need_lc_GCJ=yes
16742 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16743 else
16744 cat conftest.err 1>&5
16746 $rm conftest*
16747 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16748 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16750 esac
16753 esac
16755 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16756 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16757 library_names_spec=
16758 libname_spec='lib$name'
16759 soname_spec=
16760 shrext_cmds=".so"
16761 postinstall_cmds=
16762 postuninstall_cmds=
16763 finish_cmds=
16764 finish_eval=
16765 shlibpath_var=
16766 shlibpath_overrides_runpath=unknown
16767 version_type=none
16768 dynamic_linker="$host_os ld.so"
16769 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16770 if test "$GCC" = yes; then
16771 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16772 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16773 # if the path contains ";" then we assume it to be the separator
16774 # otherwise default to the standard path separator (i.e. ":") - it is
16775 # assumed that no part of a normal pathname contains ";" but that should
16776 # okay in the real world where ";" in dirpaths is itself problematic.
16777 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16778 else
16779 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16781 else
16782 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16784 need_lib_prefix=unknown
16785 hardcode_into_libs=no
16787 # when you set need_version to no, make sure it does not cause -set_version
16788 # flags to be left without arguments
16789 need_version=unknown
16791 case $host_os in
16792 aix3*)
16793 version_type=linux
16794 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16795 shlibpath_var=LIBPATH
16797 # AIX 3 has no versioning support, so we append a major version to the name.
16798 soname_spec='${libname}${release}${shared_ext}$major'
16801 aix4* | aix5*)
16802 version_type=linux
16803 need_lib_prefix=no
16804 need_version=no
16805 hardcode_into_libs=yes
16806 if test "$host_cpu" = ia64; then
16807 # AIX 5 supports IA64
16808 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16809 shlibpath_var=LD_LIBRARY_PATH
16810 else
16811 # With GCC up to 2.95.x, collect2 would create an import file
16812 # for dependence libraries. The import file would start with
16813 # the line `#! .'. This would cause the generated library to
16814 # depend on `.', always an invalid library. This was fixed in
16815 # development snapshots of GCC prior to 3.0.
16816 case $host_os in
16817 aix4 | aix4.[01] | aix4.[01].*)
16818 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16819 echo ' yes '
16820 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16822 else
16823 can_build_shared=no
16826 esac
16827 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16828 # soname into executable. Probably we can add versioning support to
16829 # collect2, so additional links can be useful in future.
16830 if test "$aix_use_runtimelinking" = yes; then
16831 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16832 # instead of lib<name>.a to let people know that these are not
16833 # typical AIX shared libraries.
16834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16835 else
16836 # We preserve .a as extension for shared libraries through AIX4.2
16837 # and later when we are not doing run time linking.
16838 library_names_spec='${libname}${release}.a $libname.a'
16839 soname_spec='${libname}${release}${shared_ext}$major'
16841 shlibpath_var=LIBPATH
16845 amigaos*)
16846 library_names_spec='$libname.ixlibrary $libname.a'
16847 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16848 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'
16851 beos*)
16852 library_names_spec='${libname}${shared_ext}'
16853 dynamic_linker="$host_os ld.so"
16854 shlibpath_var=LIBRARY_PATH
16857 bsdi4*)
16858 version_type=linux
16859 need_version=no
16860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16861 soname_spec='${libname}${release}${shared_ext}$major'
16862 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16863 shlibpath_var=LD_LIBRARY_PATH
16864 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16865 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16866 # the default ld.so.conf also contains /usr/contrib/lib and
16867 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16868 # libtool to hard-code these into programs
16871 cygwin* | mingw* | pw32*)
16872 version_type=windows
16873 shrext_cmds=".dll"
16874 need_version=no
16875 need_lib_prefix=no
16877 case $GCC,$host_os in
16878 yes,cygwin* | yes,mingw* | yes,pw32*)
16879 library_names_spec='$libname.dll.a'
16880 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16881 postinstall_cmds='base_file=`basename \${file}`~
16882 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16883 dldir=$destdir/`dirname \$dlpath`~
16884 test -d \$dldir || mkdir -p \$dldir~
16885 $install_prog $dir/$dlname \$dldir/$dlname'
16886 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16887 dlpath=$dir/\$dldll~
16888 $rm \$dlpath'
16889 shlibpath_overrides_runpath=yes
16891 case $host_os in
16892 cygwin*)
16893 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16894 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16895 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16897 mingw*)
16898 # MinGW DLLs use traditional 'lib' prefix
16899 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16900 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16901 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16902 # It is most probably a Windows format PATH printed by
16903 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16904 # path with ; separators, and with drive letters. We can handle the
16905 # drive letters (cygwin fileutils understands them), so leave them,
16906 # especially as we might pass files found there to a mingw objdump,
16907 # which wouldn't understand a cygwinified path. Ahh.
16908 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16909 else
16910 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16913 pw32*)
16914 # pw32 DLLs use 'pw' prefix rather than 'lib'
16915 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16917 esac
16921 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16923 esac
16924 dynamic_linker='Win32 ld.exe'
16925 # FIXME: first we should search . and the directory the executable is in
16926 shlibpath_var=PATH
16929 darwin* | rhapsody*)
16930 dynamic_linker="$host_os dyld"
16931 version_type=darwin
16932 need_lib_prefix=no
16933 need_version=no
16934 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16935 soname_spec='${libname}${release}${major}$shared_ext'
16936 shlibpath_overrides_runpath=yes
16937 shlibpath_var=DYLD_LIBRARY_PATH
16938 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16939 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16940 if test "$GCC" = yes; then
16941 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16942 else
16943 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16945 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16948 dgux*)
16949 version_type=linux
16950 need_lib_prefix=no
16951 need_version=no
16952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16953 soname_spec='${libname}${release}${shared_ext}$major'
16954 shlibpath_var=LD_LIBRARY_PATH
16957 freebsd1*)
16958 dynamic_linker=no
16961 kfreebsd*-gnu)
16962 version_type=linux
16963 need_lib_prefix=no
16964 need_version=no
16965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16966 soname_spec='${libname}${release}${shared_ext}$major'
16967 shlibpath_var=LD_LIBRARY_PATH
16968 shlibpath_overrides_runpath=no
16969 hardcode_into_libs=yes
16970 dynamic_linker='GNU ld.so'
16973 freebsd*)
16974 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16975 version_type=freebsd-$objformat
16976 case $version_type in
16977 freebsd-elf*)
16978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16979 need_version=no
16980 need_lib_prefix=no
16982 freebsd-*)
16983 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16984 need_version=yes
16986 esac
16987 shlibpath_var=LD_LIBRARY_PATH
16988 case $host_os in
16989 freebsd2*)
16990 shlibpath_overrides_runpath=yes
16992 freebsd3.01* | freebsdelf3.01*)
16993 shlibpath_overrides_runpath=yes
16994 hardcode_into_libs=yes
16996 *) # from 3.2 on
16997 shlibpath_overrides_runpath=no
16998 hardcode_into_libs=yes
17000 esac
17003 gnu*)
17004 version_type=linux
17005 need_lib_prefix=no
17006 need_version=no
17007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17008 soname_spec='${libname}${release}${shared_ext}$major'
17009 shlibpath_var=LD_LIBRARY_PATH
17010 hardcode_into_libs=yes
17013 hpux9* | hpux10* | hpux11*)
17014 # Give a soname corresponding to the major version so that dld.sl refuses to
17015 # link against other versions.
17016 version_type=sunos
17017 need_lib_prefix=no
17018 need_version=no
17019 case "$host_cpu" in
17020 ia64*)
17021 shrext_cmds='.so'
17022 hardcode_into_libs=yes
17023 dynamic_linker="$host_os dld.so"
17024 shlibpath_var=LD_LIBRARY_PATH
17025 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17027 soname_spec='${libname}${release}${shared_ext}$major'
17028 if test "X$HPUX_IA64_MODE" = X32; then
17029 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17030 else
17031 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17033 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17035 hppa*64*)
17036 shrext_cmds='.sl'
17037 hardcode_into_libs=yes
17038 dynamic_linker="$host_os dld.sl"
17039 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17040 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17042 soname_spec='${libname}${release}${shared_ext}$major'
17043 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17044 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17047 shrext_cmds='.sl'
17048 dynamic_linker="$host_os dld.sl"
17049 shlibpath_var=SHLIB_PATH
17050 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17052 soname_spec='${libname}${release}${shared_ext}$major'
17054 esac
17055 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17056 postinstall_cmds='chmod 555 $lib'
17059 irix5* | irix6* | nonstopux*)
17060 case $host_os in
17061 nonstopux*) version_type=nonstopux ;;
17063 if test "$lt_cv_prog_gnu_ld" = yes; then
17064 version_type=linux
17065 else
17066 version_type=irix
17067 fi ;;
17068 esac
17069 need_lib_prefix=no
17070 need_version=no
17071 soname_spec='${libname}${release}${shared_ext}$major'
17072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17073 case $host_os in
17074 irix5* | nonstopux*)
17075 libsuff= shlibsuff=
17078 case $LD in # libtool.m4 will add one of these switches to LD
17079 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17080 libsuff= shlibsuff= libmagic=32-bit;;
17081 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17082 libsuff=32 shlibsuff=N32 libmagic=N32;;
17083 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17084 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17085 *) libsuff= shlibsuff= libmagic=never-match;;
17086 esac
17088 esac
17089 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17090 shlibpath_overrides_runpath=no
17091 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17092 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17093 hardcode_into_libs=yes
17096 # No shared lib support for Linux oldld, aout, or coff.
17097 linux*oldld* | linux*aout* | linux*coff*)
17098 dynamic_linker=no
17101 # This must be Linux ELF.
17102 linux*)
17103 version_type=linux
17104 need_lib_prefix=no
17105 need_version=no
17106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17107 soname_spec='${libname}${release}${shared_ext}$major'
17108 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17109 shlibpath_var=LD_LIBRARY_PATH
17110 shlibpath_overrides_runpath=no
17111 # This implies no fast_install, which is unacceptable.
17112 # Some rework will be needed to allow for fast_install
17113 # before this can be enabled.
17114 hardcode_into_libs=yes
17116 # Append ld.so.conf contents to the search path
17117 if test -f /etc/ld.so.conf; then
17118 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17119 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17122 # We used to test for /lib/ld.so.1 and disable shared libraries on
17123 # powerpc, because MkLinux only supported shared libraries with the
17124 # GNU dynamic linker. Since this was broken with cross compilers,
17125 # most powerpc-linux boxes support dynamic linking these days and
17126 # people can always --disable-shared, the test was removed, and we
17127 # assume the GNU/Linux dynamic linker is in use.
17128 dynamic_linker='GNU/Linux ld.so'
17131 netbsdelf*-gnu)
17132 version_type=linux
17133 need_lib_prefix=no
17134 need_version=no
17135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17136 soname_spec='${libname}${release}${shared_ext}$major'
17137 shlibpath_var=LD_LIBRARY_PATH
17138 shlibpath_overrides_runpath=no
17139 hardcode_into_libs=yes
17140 dynamic_linker='NetBSD ld.elf_so'
17143 knetbsd*-gnu)
17144 version_type=linux
17145 need_lib_prefix=no
17146 need_version=no
17147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17148 soname_spec='${libname}${release}${shared_ext}$major'
17149 shlibpath_var=LD_LIBRARY_PATH
17150 shlibpath_overrides_runpath=no
17151 hardcode_into_libs=yes
17152 dynamic_linker='GNU ld.so'
17155 netbsd*)
17156 version_type=sunos
17157 need_lib_prefix=no
17158 need_version=no
17159 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17161 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17162 dynamic_linker='NetBSD (a.out) ld.so'
17163 else
17164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17165 soname_spec='${libname}${release}${shared_ext}$major'
17166 dynamic_linker='NetBSD ld.elf_so'
17168 shlibpath_var=LD_LIBRARY_PATH
17169 shlibpath_overrides_runpath=yes
17170 hardcode_into_libs=yes
17173 newsos6)
17174 version_type=linux
17175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17176 shlibpath_var=LD_LIBRARY_PATH
17177 shlibpath_overrides_runpath=yes
17180 nto-qnx*)
17181 version_type=linux
17182 need_lib_prefix=no
17183 need_version=no
17184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17185 soname_spec='${libname}${release}${shared_ext}$major'
17186 shlibpath_var=LD_LIBRARY_PATH
17187 shlibpath_overrides_runpath=yes
17190 openbsd*)
17191 version_type=sunos
17192 need_lib_prefix=no
17193 need_version=yes
17194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17195 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17196 shlibpath_var=LD_LIBRARY_PATH
17197 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17198 case $host_os in
17199 openbsd2.[89] | openbsd2.[89].*)
17200 shlibpath_overrides_runpath=no
17203 shlibpath_overrides_runpath=yes
17205 esac
17206 else
17207 shlibpath_overrides_runpath=yes
17211 os2*)
17212 libname_spec='$name'
17213 shrext_cmds=".dll"
17214 need_lib_prefix=no
17215 library_names_spec='$libname${shared_ext} $libname.a'
17216 dynamic_linker='OS/2 ld.exe'
17217 shlibpath_var=LIBPATH
17220 osf3* | osf4* | osf5*)
17221 version_type=osf
17222 need_lib_prefix=no
17223 need_version=no
17224 soname_spec='${libname}${release}${shared_ext}$major'
17225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17226 shlibpath_var=LD_LIBRARY_PATH
17227 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17228 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17231 sco3.2v5*)
17232 version_type=osf
17233 soname_spec='${libname}${release}${shared_ext}$major'
17234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17235 shlibpath_var=LD_LIBRARY_PATH
17238 solaris*)
17239 version_type=linux
17240 need_lib_prefix=no
17241 need_version=no
17242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17243 soname_spec='${libname}${release}${shared_ext}$major'
17244 shlibpath_var=LD_LIBRARY_PATH
17245 shlibpath_overrides_runpath=yes
17246 hardcode_into_libs=yes
17247 # ldd complains unless libraries are executable
17248 postinstall_cmds='chmod +x $lib'
17251 sunos4*)
17252 version_type=sunos
17253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17254 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17255 shlibpath_var=LD_LIBRARY_PATH
17256 shlibpath_overrides_runpath=yes
17257 if test "$with_gnu_ld" = yes; then
17258 need_lib_prefix=no
17260 need_version=yes
17263 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17264 version_type=linux
17265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17266 soname_spec='${libname}${release}${shared_ext}$major'
17267 shlibpath_var=LD_LIBRARY_PATH
17268 case $host_vendor in
17269 sni)
17270 shlibpath_overrides_runpath=no
17271 need_lib_prefix=no
17272 export_dynamic_flag_spec='${wl}-Blargedynsym'
17273 runpath_var=LD_RUN_PATH
17275 siemens)
17276 need_lib_prefix=no
17278 motorola)
17279 need_lib_prefix=no
17280 need_version=no
17281 shlibpath_overrides_runpath=no
17282 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17284 esac
17287 sysv4*MP*)
17288 if test -d /usr/nec ;then
17289 version_type=linux
17290 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17291 soname_spec='$libname${shared_ext}.$major'
17292 shlibpath_var=LD_LIBRARY_PATH
17296 uts4*)
17297 version_type=linux
17298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17299 soname_spec='${libname}${release}${shared_ext}$major'
17300 shlibpath_var=LD_LIBRARY_PATH
17304 dynamic_linker=no
17306 esac
17307 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17308 echo "${ECHO_T}$dynamic_linker" >&6
17309 test "$dynamic_linker" = no && can_build_shared=no
17311 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17312 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17313 hardcode_action_GCJ=
17314 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17315 test -n "$runpath_var GCJ" || \
17316 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17318 # We can hardcode non-existant directories.
17319 if test "$hardcode_direct_GCJ" != no &&
17320 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17321 # have to relink, otherwise we might link with an installed library
17322 # when we should be linking with a yet-to-be-installed one
17323 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17324 test "$hardcode_minus_L_GCJ" != no; then
17325 # Linking always hardcodes the temporary library directory.
17326 hardcode_action_GCJ=relink
17327 else
17328 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17329 hardcode_action_GCJ=immediate
17331 else
17332 # We cannot hardcode anything, or else we can only hardcode existing
17333 # directories.
17334 hardcode_action_GCJ=unsupported
17336 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17337 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17339 if test "$hardcode_action_GCJ" = relink; then
17340 # Fast installation is not supported
17341 enable_fast_install=no
17342 elif test "$shlibpath_overrides_runpath" = yes ||
17343 test "$enable_shared" = no; then
17344 # Fast installation is not necessary
17345 enable_fast_install=needless
17348 striplib=
17349 old_striplib=
17350 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17351 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17352 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17353 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17354 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17355 echo "$as_me:$LINENO: result: yes" >&5
17356 echo "${ECHO_T}yes" >&6
17357 else
17358 # FIXME - insert some real tests, host_os isn't really good enough
17359 case $host_os in
17360 darwin*)
17361 if test -n "$STRIP" ; then
17362 striplib="$STRIP -x"
17363 echo "$as_me:$LINENO: result: yes" >&5
17364 echo "${ECHO_T}yes" >&6
17365 else
17366 echo "$as_me:$LINENO: result: no" >&5
17367 echo "${ECHO_T}no" >&6
17371 echo "$as_me:$LINENO: result: no" >&5
17372 echo "${ECHO_T}no" >&6
17374 esac
17377 if test "x$enable_dlopen" != xyes; then
17378 enable_dlopen=unknown
17379 enable_dlopen_self=unknown
17380 enable_dlopen_self_static=unknown
17381 else
17382 lt_cv_dlopen=no
17383 lt_cv_dlopen_libs=
17385 case $host_os in
17386 beos*)
17387 lt_cv_dlopen="load_add_on"
17388 lt_cv_dlopen_libs=
17389 lt_cv_dlopen_self=yes
17392 mingw* | pw32*)
17393 lt_cv_dlopen="LoadLibrary"
17394 lt_cv_dlopen_libs=
17397 cygwin*)
17398 lt_cv_dlopen="dlopen"
17399 lt_cv_dlopen_libs=
17402 darwin*)
17403 # if libdl is installed we need to link against it
17404 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17405 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17406 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17407 echo $ECHO_N "(cached) $ECHO_C" >&6
17408 else
17409 ac_check_lib_save_LIBS=$LIBS
17410 LIBS="-ldl $LIBS"
17411 cat >conftest.$ac_ext <<_ACEOF
17412 /* confdefs.h. */
17413 _ACEOF
17414 cat confdefs.h >>conftest.$ac_ext
17415 cat >>conftest.$ac_ext <<_ACEOF
17416 /* end confdefs.h. */
17418 /* Override any gcc2 internal prototype to avoid an error. */
17419 #ifdef __cplusplus
17420 extern "C"
17421 #endif
17422 /* We use char because int might match the return type of a gcc2
17423 builtin and then its argument prototype would still apply. */
17424 char dlopen ();
17426 main ()
17428 dlopen ();
17430 return 0;
17432 _ACEOF
17433 rm -f conftest.$ac_objext conftest$ac_exeext
17434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17435 (eval $ac_link) 2>conftest.er1
17436 ac_status=$?
17437 grep -v '^ *+' conftest.er1 >conftest.err
17438 rm -f conftest.er1
17439 cat conftest.err >&5
17440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17441 (exit $ac_status); } &&
17442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17444 (eval $ac_try) 2>&5
17445 ac_status=$?
17446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447 (exit $ac_status); }; } &&
17448 { ac_try='test -s conftest$ac_exeext'
17449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17450 (eval $ac_try) 2>&5
17451 ac_status=$?
17452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17453 (exit $ac_status); }; }; then
17454 ac_cv_lib_dl_dlopen=yes
17455 else
17456 echo "$as_me: failed program was:" >&5
17457 sed 's/^/| /' conftest.$ac_ext >&5
17459 ac_cv_lib_dl_dlopen=no
17461 rm -f conftest.err conftest.$ac_objext \
17462 conftest$ac_exeext conftest.$ac_ext
17463 LIBS=$ac_check_lib_save_LIBS
17465 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17466 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17467 if test $ac_cv_lib_dl_dlopen = yes; then
17468 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17469 else
17471 lt_cv_dlopen="dyld"
17472 lt_cv_dlopen_libs=
17473 lt_cv_dlopen_self=yes
17480 echo "$as_me:$LINENO: checking for shl_load" >&5
17481 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17482 if test "${ac_cv_func_shl_load+set}" = set; then
17483 echo $ECHO_N "(cached) $ECHO_C" >&6
17484 else
17485 cat >conftest.$ac_ext <<_ACEOF
17486 /* confdefs.h. */
17487 _ACEOF
17488 cat confdefs.h >>conftest.$ac_ext
17489 cat >>conftest.$ac_ext <<_ACEOF
17490 /* end confdefs.h. */
17491 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17492 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17493 #define shl_load innocuous_shl_load
17495 /* System header to define __stub macros and hopefully few prototypes,
17496 which can conflict with char shl_load (); below.
17497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17498 <limits.h> exists even on freestanding compilers. */
17500 #ifdef __STDC__
17501 # include <limits.h>
17502 #else
17503 # include <assert.h>
17504 #endif
17506 #undef shl_load
17508 /* Override any gcc2 internal prototype to avoid an error. */
17509 #ifdef __cplusplus
17510 extern "C"
17512 #endif
17513 /* We use char because int might match the return type of a gcc2
17514 builtin and then its argument prototype would still apply. */
17515 char shl_load ();
17516 /* The GNU C library defines this for functions which it implements
17517 to always fail with ENOSYS. Some functions are actually named
17518 something starting with __ and the normal name is an alias. */
17519 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17520 choke me
17521 #else
17522 char (*f) () = shl_load;
17523 #endif
17524 #ifdef __cplusplus
17526 #endif
17529 main ()
17531 return f != shl_load;
17533 return 0;
17535 _ACEOF
17536 rm -f conftest.$ac_objext conftest$ac_exeext
17537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17538 (eval $ac_link) 2>conftest.er1
17539 ac_status=$?
17540 grep -v '^ *+' conftest.er1 >conftest.err
17541 rm -f conftest.er1
17542 cat conftest.err >&5
17543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544 (exit $ac_status); } &&
17545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17547 (eval $ac_try) 2>&5
17548 ac_status=$?
17549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550 (exit $ac_status); }; } &&
17551 { ac_try='test -s conftest$ac_exeext'
17552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17553 (eval $ac_try) 2>&5
17554 ac_status=$?
17555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17556 (exit $ac_status); }; }; then
17557 ac_cv_func_shl_load=yes
17558 else
17559 echo "$as_me: failed program was:" >&5
17560 sed 's/^/| /' conftest.$ac_ext >&5
17562 ac_cv_func_shl_load=no
17564 rm -f conftest.err conftest.$ac_objext \
17565 conftest$ac_exeext conftest.$ac_ext
17567 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17568 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17569 if test $ac_cv_func_shl_load = yes; then
17570 lt_cv_dlopen="shl_load"
17571 else
17572 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17573 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17574 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17575 echo $ECHO_N "(cached) $ECHO_C" >&6
17576 else
17577 ac_check_lib_save_LIBS=$LIBS
17578 LIBS="-ldld $LIBS"
17579 cat >conftest.$ac_ext <<_ACEOF
17580 /* confdefs.h. */
17581 _ACEOF
17582 cat confdefs.h >>conftest.$ac_ext
17583 cat >>conftest.$ac_ext <<_ACEOF
17584 /* end confdefs.h. */
17586 /* Override any gcc2 internal prototype to avoid an error. */
17587 #ifdef __cplusplus
17588 extern "C"
17589 #endif
17590 /* We use char because int might match the return type of a gcc2
17591 builtin and then its argument prototype would still apply. */
17592 char shl_load ();
17594 main ()
17596 shl_load ();
17598 return 0;
17600 _ACEOF
17601 rm -f conftest.$ac_objext conftest$ac_exeext
17602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17603 (eval $ac_link) 2>conftest.er1
17604 ac_status=$?
17605 grep -v '^ *+' conftest.er1 >conftest.err
17606 rm -f conftest.er1
17607 cat conftest.err >&5
17608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609 (exit $ac_status); } &&
17610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17612 (eval $ac_try) 2>&5
17613 ac_status=$?
17614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615 (exit $ac_status); }; } &&
17616 { ac_try='test -s conftest$ac_exeext'
17617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17618 (eval $ac_try) 2>&5
17619 ac_status=$?
17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); }; }; then
17622 ac_cv_lib_dld_shl_load=yes
17623 else
17624 echo "$as_me: failed program was:" >&5
17625 sed 's/^/| /' conftest.$ac_ext >&5
17627 ac_cv_lib_dld_shl_load=no
17629 rm -f conftest.err conftest.$ac_objext \
17630 conftest$ac_exeext conftest.$ac_ext
17631 LIBS=$ac_check_lib_save_LIBS
17633 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17634 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17635 if test $ac_cv_lib_dld_shl_load = yes; then
17636 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17637 else
17638 echo "$as_me:$LINENO: checking for dlopen" >&5
17639 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17640 if test "${ac_cv_func_dlopen+set}" = set; then
17641 echo $ECHO_N "(cached) $ECHO_C" >&6
17642 else
17643 cat >conftest.$ac_ext <<_ACEOF
17644 /* confdefs.h. */
17645 _ACEOF
17646 cat confdefs.h >>conftest.$ac_ext
17647 cat >>conftest.$ac_ext <<_ACEOF
17648 /* end confdefs.h. */
17649 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17650 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17651 #define dlopen innocuous_dlopen
17653 /* System header to define __stub macros and hopefully few prototypes,
17654 which can conflict with char dlopen (); below.
17655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17656 <limits.h> exists even on freestanding compilers. */
17658 #ifdef __STDC__
17659 # include <limits.h>
17660 #else
17661 # include <assert.h>
17662 #endif
17664 #undef dlopen
17666 /* Override any gcc2 internal prototype to avoid an error. */
17667 #ifdef __cplusplus
17668 extern "C"
17670 #endif
17671 /* We use char because int might match the return type of a gcc2
17672 builtin and then its argument prototype would still apply. */
17673 char dlopen ();
17674 /* The GNU C library defines this for functions which it implements
17675 to always fail with ENOSYS. Some functions are actually named
17676 something starting with __ and the normal name is an alias. */
17677 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17678 choke me
17679 #else
17680 char (*f) () = dlopen;
17681 #endif
17682 #ifdef __cplusplus
17684 #endif
17687 main ()
17689 return f != dlopen;
17691 return 0;
17693 _ACEOF
17694 rm -f conftest.$ac_objext conftest$ac_exeext
17695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17696 (eval $ac_link) 2>conftest.er1
17697 ac_status=$?
17698 grep -v '^ *+' conftest.er1 >conftest.err
17699 rm -f conftest.er1
17700 cat conftest.err >&5
17701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17702 (exit $ac_status); } &&
17703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17705 (eval $ac_try) 2>&5
17706 ac_status=$?
17707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708 (exit $ac_status); }; } &&
17709 { ac_try='test -s conftest$ac_exeext'
17710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17711 (eval $ac_try) 2>&5
17712 ac_status=$?
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); }; }; then
17715 ac_cv_func_dlopen=yes
17716 else
17717 echo "$as_me: failed program was:" >&5
17718 sed 's/^/| /' conftest.$ac_ext >&5
17720 ac_cv_func_dlopen=no
17722 rm -f conftest.err conftest.$ac_objext \
17723 conftest$ac_exeext conftest.$ac_ext
17725 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17726 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17727 if test $ac_cv_func_dlopen = yes; then
17728 lt_cv_dlopen="dlopen"
17729 else
17730 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17731 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17732 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17733 echo $ECHO_N "(cached) $ECHO_C" >&6
17734 else
17735 ac_check_lib_save_LIBS=$LIBS
17736 LIBS="-ldl $LIBS"
17737 cat >conftest.$ac_ext <<_ACEOF
17738 /* confdefs.h. */
17739 _ACEOF
17740 cat confdefs.h >>conftest.$ac_ext
17741 cat >>conftest.$ac_ext <<_ACEOF
17742 /* end confdefs.h. */
17744 /* Override any gcc2 internal prototype to avoid an error. */
17745 #ifdef __cplusplus
17746 extern "C"
17747 #endif
17748 /* We use char because int might match the return type of a gcc2
17749 builtin and then its argument prototype would still apply. */
17750 char dlopen ();
17752 main ()
17754 dlopen ();
17756 return 0;
17758 _ACEOF
17759 rm -f conftest.$ac_objext conftest$ac_exeext
17760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17761 (eval $ac_link) 2>conftest.er1
17762 ac_status=$?
17763 grep -v '^ *+' conftest.er1 >conftest.err
17764 rm -f conftest.er1
17765 cat conftest.err >&5
17766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767 (exit $ac_status); } &&
17768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17770 (eval $ac_try) 2>&5
17771 ac_status=$?
17772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773 (exit $ac_status); }; } &&
17774 { ac_try='test -s conftest$ac_exeext'
17775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17776 (eval $ac_try) 2>&5
17777 ac_status=$?
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); }; }; then
17780 ac_cv_lib_dl_dlopen=yes
17781 else
17782 echo "$as_me: failed program was:" >&5
17783 sed 's/^/| /' conftest.$ac_ext >&5
17785 ac_cv_lib_dl_dlopen=no
17787 rm -f conftest.err conftest.$ac_objext \
17788 conftest$ac_exeext conftest.$ac_ext
17789 LIBS=$ac_check_lib_save_LIBS
17791 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17792 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17793 if test $ac_cv_lib_dl_dlopen = yes; then
17794 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17795 else
17796 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17797 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17798 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17799 echo $ECHO_N "(cached) $ECHO_C" >&6
17800 else
17801 ac_check_lib_save_LIBS=$LIBS
17802 LIBS="-lsvld $LIBS"
17803 cat >conftest.$ac_ext <<_ACEOF
17804 /* confdefs.h. */
17805 _ACEOF
17806 cat confdefs.h >>conftest.$ac_ext
17807 cat >>conftest.$ac_ext <<_ACEOF
17808 /* end confdefs.h. */
17810 /* Override any gcc2 internal prototype to avoid an error. */
17811 #ifdef __cplusplus
17812 extern "C"
17813 #endif
17814 /* We use char because int might match the return type of a gcc2
17815 builtin and then its argument prototype would still apply. */
17816 char dlopen ();
17818 main ()
17820 dlopen ();
17822 return 0;
17824 _ACEOF
17825 rm -f conftest.$ac_objext conftest$ac_exeext
17826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17827 (eval $ac_link) 2>conftest.er1
17828 ac_status=$?
17829 grep -v '^ *+' conftest.er1 >conftest.err
17830 rm -f conftest.er1
17831 cat conftest.err >&5
17832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833 (exit $ac_status); } &&
17834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17836 (eval $ac_try) 2>&5
17837 ac_status=$?
17838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839 (exit $ac_status); }; } &&
17840 { ac_try='test -s conftest$ac_exeext'
17841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17842 (eval $ac_try) 2>&5
17843 ac_status=$?
17844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845 (exit $ac_status); }; }; then
17846 ac_cv_lib_svld_dlopen=yes
17847 else
17848 echo "$as_me: failed program was:" >&5
17849 sed 's/^/| /' conftest.$ac_ext >&5
17851 ac_cv_lib_svld_dlopen=no
17853 rm -f conftest.err conftest.$ac_objext \
17854 conftest$ac_exeext conftest.$ac_ext
17855 LIBS=$ac_check_lib_save_LIBS
17857 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17858 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17859 if test $ac_cv_lib_svld_dlopen = yes; then
17860 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17861 else
17862 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17863 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17864 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17865 echo $ECHO_N "(cached) $ECHO_C" >&6
17866 else
17867 ac_check_lib_save_LIBS=$LIBS
17868 LIBS="-ldld $LIBS"
17869 cat >conftest.$ac_ext <<_ACEOF
17870 /* confdefs.h. */
17871 _ACEOF
17872 cat confdefs.h >>conftest.$ac_ext
17873 cat >>conftest.$ac_ext <<_ACEOF
17874 /* end confdefs.h. */
17876 /* Override any gcc2 internal prototype to avoid an error. */
17877 #ifdef __cplusplus
17878 extern "C"
17879 #endif
17880 /* We use char because int might match the return type of a gcc2
17881 builtin and then its argument prototype would still apply. */
17882 char dld_link ();
17884 main ()
17886 dld_link ();
17888 return 0;
17890 _ACEOF
17891 rm -f conftest.$ac_objext conftest$ac_exeext
17892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17893 (eval $ac_link) 2>conftest.er1
17894 ac_status=$?
17895 grep -v '^ *+' conftest.er1 >conftest.err
17896 rm -f conftest.er1
17897 cat conftest.err >&5
17898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899 (exit $ac_status); } &&
17900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17902 (eval $ac_try) 2>&5
17903 ac_status=$?
17904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905 (exit $ac_status); }; } &&
17906 { ac_try='test -s conftest$ac_exeext'
17907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17908 (eval $ac_try) 2>&5
17909 ac_status=$?
17910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911 (exit $ac_status); }; }; then
17912 ac_cv_lib_dld_dld_link=yes
17913 else
17914 echo "$as_me: failed program was:" >&5
17915 sed 's/^/| /' conftest.$ac_ext >&5
17917 ac_cv_lib_dld_dld_link=no
17919 rm -f conftest.err conftest.$ac_objext \
17920 conftest$ac_exeext conftest.$ac_ext
17921 LIBS=$ac_check_lib_save_LIBS
17923 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17924 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17925 if test $ac_cv_lib_dld_dld_link = yes; then
17926 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17945 esac
17947 if test "x$lt_cv_dlopen" != xno; then
17948 enable_dlopen=yes
17949 else
17950 enable_dlopen=no
17953 case $lt_cv_dlopen in
17954 dlopen)
17955 save_CPPFLAGS="$CPPFLAGS"
17956 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17958 save_LDFLAGS="$LDFLAGS"
17959 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17961 save_LIBS="$LIBS"
17962 LIBS="$lt_cv_dlopen_libs $LIBS"
17964 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17965 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17966 if test "${lt_cv_dlopen_self+set}" = set; then
17967 echo $ECHO_N "(cached) $ECHO_C" >&6
17968 else
17969 if test "$cross_compiling" = yes; then :
17970 lt_cv_dlopen_self=cross
17971 else
17972 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17973 lt_status=$lt_dlunknown
17974 cat > conftest.$ac_ext <<EOF
17975 #line 17975 "configure"
17976 #include "confdefs.h"
17978 #if HAVE_DLFCN_H
17979 #include <dlfcn.h>
17980 #endif
17982 #include <stdio.h>
17984 #ifdef RTLD_GLOBAL
17985 # define LT_DLGLOBAL RTLD_GLOBAL
17986 #else
17987 # ifdef DL_GLOBAL
17988 # define LT_DLGLOBAL DL_GLOBAL
17989 # else
17990 # define LT_DLGLOBAL 0
17991 # endif
17992 #endif
17994 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17995 find out it does not work in some platform. */
17996 #ifndef LT_DLLAZY_OR_NOW
17997 # ifdef RTLD_LAZY
17998 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17999 # else
18000 # ifdef DL_LAZY
18001 # define LT_DLLAZY_OR_NOW DL_LAZY
18002 # else
18003 # ifdef RTLD_NOW
18004 # define LT_DLLAZY_OR_NOW RTLD_NOW
18005 # else
18006 # ifdef DL_NOW
18007 # define LT_DLLAZY_OR_NOW DL_NOW
18008 # else
18009 # define LT_DLLAZY_OR_NOW 0
18010 # endif
18011 # endif
18012 # endif
18013 # endif
18014 #endif
18016 #ifdef __cplusplus
18017 extern "C" void exit (int);
18018 #endif
18020 void fnord() { int i=42;}
18021 int main ()
18023 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18024 int status = $lt_dlunknown;
18026 if (self)
18028 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18029 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18030 /* dlclose (self); */
18033 exit (status);
18036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18037 (eval $ac_link) 2>&5
18038 ac_status=$?
18039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18040 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18041 (./conftest; exit; ) 2>/dev/null
18042 lt_status=$?
18043 case x$lt_status in
18044 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18045 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18046 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18047 esac
18048 else :
18049 # compilation failed
18050 lt_cv_dlopen_self=no
18053 rm -fr conftest*
18057 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18058 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18060 if test "x$lt_cv_dlopen_self" = xyes; then
18061 LDFLAGS="$LDFLAGS $link_static_flag"
18062 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18063 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18064 if test "${lt_cv_dlopen_self_static+set}" = set; then
18065 echo $ECHO_N "(cached) $ECHO_C" >&6
18066 else
18067 if test "$cross_compiling" = yes; then :
18068 lt_cv_dlopen_self_static=cross
18069 else
18070 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18071 lt_status=$lt_dlunknown
18072 cat > conftest.$ac_ext <<EOF
18073 #line 18073 "configure"
18074 #include "confdefs.h"
18076 #if HAVE_DLFCN_H
18077 #include <dlfcn.h>
18078 #endif
18080 #include <stdio.h>
18082 #ifdef RTLD_GLOBAL
18083 # define LT_DLGLOBAL RTLD_GLOBAL
18084 #else
18085 # ifdef DL_GLOBAL
18086 # define LT_DLGLOBAL DL_GLOBAL
18087 # else
18088 # define LT_DLGLOBAL 0
18089 # endif
18090 #endif
18092 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18093 find out it does not work in some platform. */
18094 #ifndef LT_DLLAZY_OR_NOW
18095 # ifdef RTLD_LAZY
18096 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18097 # else
18098 # ifdef DL_LAZY
18099 # define LT_DLLAZY_OR_NOW DL_LAZY
18100 # else
18101 # ifdef RTLD_NOW
18102 # define LT_DLLAZY_OR_NOW RTLD_NOW
18103 # else
18104 # ifdef DL_NOW
18105 # define LT_DLLAZY_OR_NOW DL_NOW
18106 # else
18107 # define LT_DLLAZY_OR_NOW 0
18108 # endif
18109 # endif
18110 # endif
18111 # endif
18112 #endif
18114 #ifdef __cplusplus
18115 extern "C" void exit (int);
18116 #endif
18118 void fnord() { int i=42;}
18119 int main ()
18121 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18122 int status = $lt_dlunknown;
18124 if (self)
18126 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18127 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18128 /* dlclose (self); */
18131 exit (status);
18134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18135 (eval $ac_link) 2>&5
18136 ac_status=$?
18137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18138 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18139 (./conftest; exit; ) 2>/dev/null
18140 lt_status=$?
18141 case x$lt_status in
18142 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18143 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18144 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18145 esac
18146 else :
18147 # compilation failed
18148 lt_cv_dlopen_self_static=no
18151 rm -fr conftest*
18155 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18156 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18159 CPPFLAGS="$save_CPPFLAGS"
18160 LDFLAGS="$save_LDFLAGS"
18161 LIBS="$save_LIBS"
18163 esac
18165 case $lt_cv_dlopen_self in
18166 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18167 *) enable_dlopen_self=unknown ;;
18168 esac
18170 case $lt_cv_dlopen_self_static in
18171 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18172 *) enable_dlopen_self_static=unknown ;;
18173 esac
18177 # The else clause should only fire when bootstrapping the
18178 # libtool distribution, otherwise you forgot to ship ltmain.sh
18179 # with your package, and you will get complaints that there are
18180 # no rules to generate ltmain.sh.
18181 if test -f "$ltmain"; then
18182 # See if we are running on zsh, and set the options which allow our commands through
18183 # without removal of \ escapes.
18184 if test -n "${ZSH_VERSION+set}" ; then
18185 setopt NO_GLOB_SUBST
18187 # Now quote all the things that may contain metacharacters while being
18188 # careful not to overquote the AC_SUBSTed values. We take copies of the
18189 # variables and quote the copies for generation of the libtool script.
18190 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18191 SED SHELL STRIP \
18192 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18193 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18194 deplibs_check_method reload_flag reload_cmds need_locks \
18195 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18196 lt_cv_sys_global_symbol_to_c_name_address \
18197 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18198 old_postinstall_cmds old_postuninstall_cmds \
18199 compiler_GCJ \
18200 CC_GCJ \
18201 LD_GCJ \
18202 lt_prog_compiler_wl_GCJ \
18203 lt_prog_compiler_pic_GCJ \
18204 lt_prog_compiler_static_GCJ \
18205 lt_prog_compiler_no_builtin_flag_GCJ \
18206 export_dynamic_flag_spec_GCJ \
18207 thread_safe_flag_spec_GCJ \
18208 whole_archive_flag_spec_GCJ \
18209 enable_shared_with_static_runtimes_GCJ \
18210 old_archive_cmds_GCJ \
18211 old_archive_from_new_cmds_GCJ \
18212 predep_objects_GCJ \
18213 postdep_objects_GCJ \
18214 predeps_GCJ \
18215 postdeps_GCJ \
18216 compiler_lib_search_path_GCJ \
18217 archive_cmds_GCJ \
18218 archive_expsym_cmds_GCJ \
18219 postinstall_cmds_GCJ \
18220 postuninstall_cmds_GCJ \
18221 old_archive_from_expsyms_cmds_GCJ \
18222 allow_undefined_flag_GCJ \
18223 no_undefined_flag_GCJ \
18224 export_symbols_cmds_GCJ \
18225 hardcode_libdir_flag_spec_GCJ \
18226 hardcode_libdir_flag_spec_ld_GCJ \
18227 hardcode_libdir_separator_GCJ \
18228 hardcode_automatic_GCJ \
18229 module_cmds_GCJ \
18230 module_expsym_cmds_GCJ \
18231 lt_cv_prog_compiler_c_o_GCJ \
18232 exclude_expsyms_GCJ \
18233 include_expsyms_GCJ; do
18235 case $var in
18236 old_archive_cmds_GCJ | \
18237 old_archive_from_new_cmds_GCJ | \
18238 archive_cmds_GCJ | \
18239 archive_expsym_cmds_GCJ | \
18240 module_cmds_GCJ | \
18241 module_expsym_cmds_GCJ | \
18242 old_archive_from_expsyms_cmds_GCJ | \
18243 export_symbols_cmds_GCJ | \
18244 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18245 postinstall_cmds | postuninstall_cmds | \
18246 old_postinstall_cmds | old_postuninstall_cmds | \
18247 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18248 # Double-quote double-evaled strings.
18249 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18252 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18254 esac
18255 done
18257 case $lt_echo in
18258 *'\$0 --fallback-echo"')
18259 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18261 esac
18263 cfgfile="$ofile"
18265 cat <<__EOF__ >> "$cfgfile"
18266 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18268 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18270 # Shell to use when invoking shell scripts.
18271 SHELL=$lt_SHELL
18273 # Whether or not to build shared libraries.
18274 build_libtool_libs=$enable_shared
18276 # Whether or not to build static libraries.
18277 build_old_libs=$enable_static
18279 # Whether or not to add -lc for building shared libraries.
18280 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18282 # Whether or not to disallow shared libs when runtime libs are static
18283 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18285 # Whether or not to optimize for fast installation.
18286 fast_install=$enable_fast_install
18288 # The host system.
18289 host_alias=$host_alias
18290 host=$host
18292 # An echo program that does not interpret backslashes.
18293 echo=$lt_echo
18295 # The archiver.
18296 AR=$lt_AR
18297 AR_FLAGS=$lt_AR_FLAGS
18299 # A C compiler.
18300 LTCC=$lt_LTCC
18302 # A language-specific compiler.
18303 CC=$lt_compiler_GCJ
18305 # Is the compiler the GNU C compiler?
18306 with_gcc=$GCC_GCJ
18308 # An ERE matcher.
18309 EGREP=$lt_EGREP
18311 # The linker used to build libraries.
18312 LD=$lt_LD_GCJ
18314 # Whether we need hard or soft links.
18315 LN_S=$lt_LN_S
18317 # A BSD-compatible nm program.
18318 NM=$lt_NM
18320 # A symbol stripping program
18321 STRIP=$lt_STRIP
18323 # Used to examine libraries when file_magic_cmd begins "file"
18324 MAGIC_CMD=$MAGIC_CMD
18326 # Used on cygwin: DLL creation program.
18327 DLLTOOL="$DLLTOOL"
18329 # Used on cygwin: object dumper.
18330 OBJDUMP="$OBJDUMP"
18332 # Used on cygwin: assembler.
18333 AS="$AS"
18335 # The name of the directory that contains temporary libtool files.
18336 objdir=$objdir
18338 # How to create reloadable object files.
18339 reload_flag=$lt_reload_flag
18340 reload_cmds=$lt_reload_cmds
18342 # How to pass a linker flag through the compiler.
18343 wl=$lt_lt_prog_compiler_wl_GCJ
18345 # Object file suffix (normally "o").
18346 objext="$ac_objext"
18348 # Old archive suffix (normally "a").
18349 libext="$libext"
18351 # Shared library suffix (normally ".so").
18352 shrext_cmds='$shrext_cmds'
18354 # Executable file suffix (normally "").
18355 exeext="$exeext"
18357 # Additional compiler flags for building library objects.
18358 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18359 pic_mode=$pic_mode
18361 # What is the maximum length of a command?
18362 max_cmd_len=$lt_cv_sys_max_cmd_len
18364 # Does compiler simultaneously support -c and -o options?
18365 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18367 # Must we lock files when doing compilation ?
18368 need_locks=$lt_need_locks
18370 # Do we need the lib prefix for modules?
18371 need_lib_prefix=$need_lib_prefix
18373 # Do we need a version for libraries?
18374 need_version=$need_version
18376 # Whether dlopen is supported.
18377 dlopen_support=$enable_dlopen
18379 # Whether dlopen of programs is supported.
18380 dlopen_self=$enable_dlopen_self
18382 # Whether dlopen of statically linked programs is supported.
18383 dlopen_self_static=$enable_dlopen_self_static
18385 # Compiler flag to prevent dynamic linking.
18386 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18388 # Compiler flag to turn off builtin functions.
18389 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18391 # Compiler flag to allow reflexive dlopens.
18392 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18394 # Compiler flag to generate shared objects directly from archives.
18395 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18397 # Compiler flag to generate thread-safe objects.
18398 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18400 # Library versioning type.
18401 version_type=$version_type
18403 # Format of library name prefix.
18404 libname_spec=$lt_libname_spec
18406 # List of archive names. First name is the real one, the rest are links.
18407 # The last name is the one that the linker finds with -lNAME.
18408 library_names_spec=$lt_library_names_spec
18410 # The coded name of the library, if different from the real name.
18411 soname_spec=$lt_soname_spec
18413 # Commands used to build and install an old-style archive.
18414 RANLIB=$lt_RANLIB
18415 old_archive_cmds=$lt_old_archive_cmds_GCJ
18416 old_postinstall_cmds=$lt_old_postinstall_cmds
18417 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18419 # Create an old-style archive from a shared archive.
18420 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18422 # Create a temporary old-style archive to link instead of a shared archive.
18423 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18425 # Commands used to build and install a shared archive.
18426 archive_cmds=$lt_archive_cmds_GCJ
18427 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18428 postinstall_cmds=$lt_postinstall_cmds
18429 postuninstall_cmds=$lt_postuninstall_cmds
18431 # Commands used to build a loadable module (assumed same as above if empty)
18432 module_cmds=$lt_module_cmds_GCJ
18433 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18435 # Commands to strip libraries.
18436 old_striplib=$lt_old_striplib
18437 striplib=$lt_striplib
18439 # Dependencies to place before the objects being linked to create a
18440 # shared library.
18441 predep_objects=$lt_predep_objects_GCJ
18443 # Dependencies to place after the objects being linked to create a
18444 # shared library.
18445 postdep_objects=$lt_postdep_objects_GCJ
18447 # Dependencies to place before the objects being linked to create a
18448 # shared library.
18449 predeps=$lt_predeps_GCJ
18451 # Dependencies to place after the objects being linked to create a
18452 # shared library.
18453 postdeps=$lt_postdeps_GCJ
18455 # The library search path used internally by the compiler when linking
18456 # a shared library.
18457 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18459 # Method to check whether dependent libraries are shared objects.
18460 deplibs_check_method=$lt_deplibs_check_method
18462 # Command to use when deplibs_check_method == file_magic.
18463 file_magic_cmd=$lt_file_magic_cmd
18465 # Flag that allows shared libraries with undefined symbols to be built.
18466 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18468 # Flag that forces no undefined symbols.
18469 no_undefined_flag=$lt_no_undefined_flag_GCJ
18471 # Commands used to finish a libtool library installation in a directory.
18472 finish_cmds=$lt_finish_cmds
18474 # Same as above, but a single script fragment to be evaled but not shown.
18475 finish_eval=$lt_finish_eval
18477 # Take the output of nm and produce a listing of raw symbols and C names.
18478 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18480 # Transform the output of nm in a proper C declaration
18481 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18483 # Transform the output of nm in a C name address pair
18484 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18486 # This is the shared library runtime path variable.
18487 runpath_var=$runpath_var
18489 # This is the shared library path variable.
18490 shlibpath_var=$shlibpath_var
18492 # Is shlibpath searched before the hard-coded library search path?
18493 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18495 # How to hardcode a shared library path into an executable.
18496 hardcode_action=$hardcode_action_GCJ
18498 # Whether we should hardcode library paths into libraries.
18499 hardcode_into_libs=$hardcode_into_libs
18501 # Flag to hardcode \$libdir into a binary during linking.
18502 # This must work even if \$libdir does not exist.
18503 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18505 # If ld is used when linking, flag to hardcode \$libdir into
18506 # a binary during linking. This must work even if \$libdir does
18507 # not exist.
18508 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18510 # Whether we need a single -rpath flag with a separated argument.
18511 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18513 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18514 # resulting binary.
18515 hardcode_direct=$hardcode_direct_GCJ
18517 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18518 # resulting binary.
18519 hardcode_minus_L=$hardcode_minus_L_GCJ
18521 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18522 # the resulting binary.
18523 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18525 # Set to yes if building a shared library automatically hardcodes DIR into the library
18526 # and all subsequent libraries and executables linked against it.
18527 hardcode_automatic=$hardcode_automatic_GCJ
18529 # Variables whose values should be saved in libtool wrapper scripts and
18530 # restored at relink time.
18531 variables_saved_for_relink="$variables_saved_for_relink"
18533 # Whether libtool must link a program against all its dependency libraries.
18534 link_all_deplibs=$link_all_deplibs_GCJ
18536 # Compile-time system search path for libraries
18537 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18539 # Run-time system search path for libraries
18540 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18542 # Fix the shell variable \$srcfile for the compiler.
18543 fix_srcfile_path="$fix_srcfile_path_GCJ"
18545 # Set to yes if exported symbols are required.
18546 always_export_symbols=$always_export_symbols_GCJ
18548 # The commands to list exported symbols.
18549 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18551 # The commands to extract the exported symbol list from a shared archive.
18552 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18554 # Symbols that should not be listed in the preloaded symbols.
18555 exclude_expsyms=$lt_exclude_expsyms_GCJ
18557 # Symbols that must always be exported.
18558 include_expsyms=$lt_include_expsyms_GCJ
18560 # ### END LIBTOOL TAG CONFIG: $tagname
18562 __EOF__
18565 else
18566 # If there is no Makefile yet, we rely on a make rule to execute
18567 # `config.status --recheck' to rerun these tests and create the
18568 # libtool script then.
18569 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18570 if test -f "$ltmain_in"; then
18571 test -f Makefile && make "$ltmain"
18576 ac_ext=c
18577 ac_cpp='$CPP $CPPFLAGS'
18578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18582 CC="$lt_save_CC"
18584 else
18585 tagname=""
18593 # Source file extension for RC test sources.
18594 ac_ext=rc
18596 # Object file extension for compiled RC test sources.
18597 objext=o
18598 objext_RC=$objext
18600 # Code to be used in simple compile tests
18601 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18603 # Code to be used in simple link tests
18604 lt_simple_link_test_code="$lt_simple_compile_test_code"
18606 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18608 # If no C compiler was specified, use CC.
18609 LTCC=${LTCC-"$CC"}
18611 # Allow CC to be a program name with arguments.
18612 compiler=$CC
18615 # Allow CC to be a program name with arguments.
18616 lt_save_CC="$CC"
18617 CC=${RC-"windres"}
18618 compiler=$CC
18619 compiler_RC=$CC
18620 lt_cv_prog_compiler_c_o_RC=yes
18622 # The else clause should only fire when bootstrapping the
18623 # libtool distribution, otherwise you forgot to ship ltmain.sh
18624 # with your package, and you will get complaints that there are
18625 # no rules to generate ltmain.sh.
18626 if test -f "$ltmain"; then
18627 # See if we are running on zsh, and set the options which allow our commands through
18628 # without removal of \ escapes.
18629 if test -n "${ZSH_VERSION+set}" ; then
18630 setopt NO_GLOB_SUBST
18632 # Now quote all the things that may contain metacharacters while being
18633 # careful not to overquote the AC_SUBSTed values. We take copies of the
18634 # variables and quote the copies for generation of the libtool script.
18635 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18636 SED SHELL STRIP \
18637 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18638 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18639 deplibs_check_method reload_flag reload_cmds need_locks \
18640 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18641 lt_cv_sys_global_symbol_to_c_name_address \
18642 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18643 old_postinstall_cmds old_postuninstall_cmds \
18644 compiler_RC \
18645 CC_RC \
18646 LD_RC \
18647 lt_prog_compiler_wl_RC \
18648 lt_prog_compiler_pic_RC \
18649 lt_prog_compiler_static_RC \
18650 lt_prog_compiler_no_builtin_flag_RC \
18651 export_dynamic_flag_spec_RC \
18652 thread_safe_flag_spec_RC \
18653 whole_archive_flag_spec_RC \
18654 enable_shared_with_static_runtimes_RC \
18655 old_archive_cmds_RC \
18656 old_archive_from_new_cmds_RC \
18657 predep_objects_RC \
18658 postdep_objects_RC \
18659 predeps_RC \
18660 postdeps_RC \
18661 compiler_lib_search_path_RC \
18662 archive_cmds_RC \
18663 archive_expsym_cmds_RC \
18664 postinstall_cmds_RC \
18665 postuninstall_cmds_RC \
18666 old_archive_from_expsyms_cmds_RC \
18667 allow_undefined_flag_RC \
18668 no_undefined_flag_RC \
18669 export_symbols_cmds_RC \
18670 hardcode_libdir_flag_spec_RC \
18671 hardcode_libdir_flag_spec_ld_RC \
18672 hardcode_libdir_separator_RC \
18673 hardcode_automatic_RC \
18674 module_cmds_RC \
18675 module_expsym_cmds_RC \
18676 lt_cv_prog_compiler_c_o_RC \
18677 exclude_expsyms_RC \
18678 include_expsyms_RC; do
18680 case $var in
18681 old_archive_cmds_RC | \
18682 old_archive_from_new_cmds_RC | \
18683 archive_cmds_RC | \
18684 archive_expsym_cmds_RC | \
18685 module_cmds_RC | \
18686 module_expsym_cmds_RC | \
18687 old_archive_from_expsyms_cmds_RC | \
18688 export_symbols_cmds_RC | \
18689 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18690 postinstall_cmds | postuninstall_cmds | \
18691 old_postinstall_cmds | old_postuninstall_cmds | \
18692 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18693 # Double-quote double-evaled strings.
18694 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18697 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18699 esac
18700 done
18702 case $lt_echo in
18703 *'\$0 --fallback-echo"')
18704 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18706 esac
18708 cfgfile="$ofile"
18710 cat <<__EOF__ >> "$cfgfile"
18711 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18713 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18715 # Shell to use when invoking shell scripts.
18716 SHELL=$lt_SHELL
18718 # Whether or not to build shared libraries.
18719 build_libtool_libs=$enable_shared
18721 # Whether or not to build static libraries.
18722 build_old_libs=$enable_static
18724 # Whether or not to add -lc for building shared libraries.
18725 build_libtool_need_lc=$archive_cmds_need_lc_RC
18727 # Whether or not to disallow shared libs when runtime libs are static
18728 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18730 # Whether or not to optimize for fast installation.
18731 fast_install=$enable_fast_install
18733 # The host system.
18734 host_alias=$host_alias
18735 host=$host
18737 # An echo program that does not interpret backslashes.
18738 echo=$lt_echo
18740 # The archiver.
18741 AR=$lt_AR
18742 AR_FLAGS=$lt_AR_FLAGS
18744 # A C compiler.
18745 LTCC=$lt_LTCC
18747 # A language-specific compiler.
18748 CC=$lt_compiler_RC
18750 # Is the compiler the GNU C compiler?
18751 with_gcc=$GCC_RC
18753 # An ERE matcher.
18754 EGREP=$lt_EGREP
18756 # The linker used to build libraries.
18757 LD=$lt_LD_RC
18759 # Whether we need hard or soft links.
18760 LN_S=$lt_LN_S
18762 # A BSD-compatible nm program.
18763 NM=$lt_NM
18765 # A symbol stripping program
18766 STRIP=$lt_STRIP
18768 # Used to examine libraries when file_magic_cmd begins "file"
18769 MAGIC_CMD=$MAGIC_CMD
18771 # Used on cygwin: DLL creation program.
18772 DLLTOOL="$DLLTOOL"
18774 # Used on cygwin: object dumper.
18775 OBJDUMP="$OBJDUMP"
18777 # Used on cygwin: assembler.
18778 AS="$AS"
18780 # The name of the directory that contains temporary libtool files.
18781 objdir=$objdir
18783 # How to create reloadable object files.
18784 reload_flag=$lt_reload_flag
18785 reload_cmds=$lt_reload_cmds
18787 # How to pass a linker flag through the compiler.
18788 wl=$lt_lt_prog_compiler_wl_RC
18790 # Object file suffix (normally "o").
18791 objext="$ac_objext"
18793 # Old archive suffix (normally "a").
18794 libext="$libext"
18796 # Shared library suffix (normally ".so").
18797 shrext_cmds='$shrext_cmds'
18799 # Executable file suffix (normally "").
18800 exeext="$exeext"
18802 # Additional compiler flags for building library objects.
18803 pic_flag=$lt_lt_prog_compiler_pic_RC
18804 pic_mode=$pic_mode
18806 # What is the maximum length of a command?
18807 max_cmd_len=$lt_cv_sys_max_cmd_len
18809 # Does compiler simultaneously support -c and -o options?
18810 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18812 # Must we lock files when doing compilation ?
18813 need_locks=$lt_need_locks
18815 # Do we need the lib prefix for modules?
18816 need_lib_prefix=$need_lib_prefix
18818 # Do we need a version for libraries?
18819 need_version=$need_version
18821 # Whether dlopen is supported.
18822 dlopen_support=$enable_dlopen
18824 # Whether dlopen of programs is supported.
18825 dlopen_self=$enable_dlopen_self
18827 # Whether dlopen of statically linked programs is supported.
18828 dlopen_self_static=$enable_dlopen_self_static
18830 # Compiler flag to prevent dynamic linking.
18831 link_static_flag=$lt_lt_prog_compiler_static_RC
18833 # Compiler flag to turn off builtin functions.
18834 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18836 # Compiler flag to allow reflexive dlopens.
18837 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18839 # Compiler flag to generate shared objects directly from archives.
18840 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18842 # Compiler flag to generate thread-safe objects.
18843 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18845 # Library versioning type.
18846 version_type=$version_type
18848 # Format of library name prefix.
18849 libname_spec=$lt_libname_spec
18851 # List of archive names. First name is the real one, the rest are links.
18852 # The last name is the one that the linker finds with -lNAME.
18853 library_names_spec=$lt_library_names_spec
18855 # The coded name of the library, if different from the real name.
18856 soname_spec=$lt_soname_spec
18858 # Commands used to build and install an old-style archive.
18859 RANLIB=$lt_RANLIB
18860 old_archive_cmds=$lt_old_archive_cmds_RC
18861 old_postinstall_cmds=$lt_old_postinstall_cmds
18862 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18864 # Create an old-style archive from a shared archive.
18865 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18867 # Create a temporary old-style archive to link instead of a shared archive.
18868 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18870 # Commands used to build and install a shared archive.
18871 archive_cmds=$lt_archive_cmds_RC
18872 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18873 postinstall_cmds=$lt_postinstall_cmds
18874 postuninstall_cmds=$lt_postuninstall_cmds
18876 # Commands used to build a loadable module (assumed same as above if empty)
18877 module_cmds=$lt_module_cmds_RC
18878 module_expsym_cmds=$lt_module_expsym_cmds_RC
18880 # Commands to strip libraries.
18881 old_striplib=$lt_old_striplib
18882 striplib=$lt_striplib
18884 # Dependencies to place before the objects being linked to create a
18885 # shared library.
18886 predep_objects=$lt_predep_objects_RC
18888 # Dependencies to place after the objects being linked to create a
18889 # shared library.
18890 postdep_objects=$lt_postdep_objects_RC
18892 # Dependencies to place before the objects being linked to create a
18893 # shared library.
18894 predeps=$lt_predeps_RC
18896 # Dependencies to place after the objects being linked to create a
18897 # shared library.
18898 postdeps=$lt_postdeps_RC
18900 # The library search path used internally by the compiler when linking
18901 # a shared library.
18902 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18904 # Method to check whether dependent libraries are shared objects.
18905 deplibs_check_method=$lt_deplibs_check_method
18907 # Command to use when deplibs_check_method == file_magic.
18908 file_magic_cmd=$lt_file_magic_cmd
18910 # Flag that allows shared libraries with undefined symbols to be built.
18911 allow_undefined_flag=$lt_allow_undefined_flag_RC
18913 # Flag that forces no undefined symbols.
18914 no_undefined_flag=$lt_no_undefined_flag_RC
18916 # Commands used to finish a libtool library installation in a directory.
18917 finish_cmds=$lt_finish_cmds
18919 # Same as above, but a single script fragment to be evaled but not shown.
18920 finish_eval=$lt_finish_eval
18922 # Take the output of nm and produce a listing of raw symbols and C names.
18923 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18925 # Transform the output of nm in a proper C declaration
18926 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18928 # Transform the output of nm in a C name address pair
18929 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18931 # This is the shared library runtime path variable.
18932 runpath_var=$runpath_var
18934 # This is the shared library path variable.
18935 shlibpath_var=$shlibpath_var
18937 # Is shlibpath searched before the hard-coded library search path?
18938 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18940 # How to hardcode a shared library path into an executable.
18941 hardcode_action=$hardcode_action_RC
18943 # Whether we should hardcode library paths into libraries.
18944 hardcode_into_libs=$hardcode_into_libs
18946 # Flag to hardcode \$libdir into a binary during linking.
18947 # This must work even if \$libdir does not exist.
18948 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18950 # If ld is used when linking, flag to hardcode \$libdir into
18951 # a binary during linking. This must work even if \$libdir does
18952 # not exist.
18953 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18955 # Whether we need a single -rpath flag with a separated argument.
18956 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18958 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18959 # resulting binary.
18960 hardcode_direct=$hardcode_direct_RC
18962 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18963 # resulting binary.
18964 hardcode_minus_L=$hardcode_minus_L_RC
18966 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18967 # the resulting binary.
18968 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18970 # Set to yes if building a shared library automatically hardcodes DIR into the library
18971 # and all subsequent libraries and executables linked against it.
18972 hardcode_automatic=$hardcode_automatic_RC
18974 # Variables whose values should be saved in libtool wrapper scripts and
18975 # restored at relink time.
18976 variables_saved_for_relink="$variables_saved_for_relink"
18978 # Whether libtool must link a program against all its dependency libraries.
18979 link_all_deplibs=$link_all_deplibs_RC
18981 # Compile-time system search path for libraries
18982 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18984 # Run-time system search path for libraries
18985 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18987 # Fix the shell variable \$srcfile for the compiler.
18988 fix_srcfile_path="$fix_srcfile_path_RC"
18990 # Set to yes if exported symbols are required.
18991 always_export_symbols=$always_export_symbols_RC
18993 # The commands to list exported symbols.
18994 export_symbols_cmds=$lt_export_symbols_cmds_RC
18996 # The commands to extract the exported symbol list from a shared archive.
18997 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18999 # Symbols that should not be listed in the preloaded symbols.
19000 exclude_expsyms=$lt_exclude_expsyms_RC
19002 # Symbols that must always be exported.
19003 include_expsyms=$lt_include_expsyms_RC
19005 # ### END LIBTOOL TAG CONFIG: $tagname
19007 __EOF__
19010 else
19011 # If there is no Makefile yet, we rely on a make rule to execute
19012 # `config.status --recheck' to rerun these tests and create the
19013 # libtool script then.
19014 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19015 if test -f "$ltmain_in"; then
19016 test -f Makefile && make "$ltmain"
19021 ac_ext=c
19022 ac_cpp='$CPP $CPPFLAGS'
19023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19027 CC="$lt_save_CC"
19032 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19033 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19034 { (exit 1); exit 1; }; }
19036 esac
19038 # Append the new tag name to the list of available tags.
19039 if test -n "$tagname" ; then
19040 available_tags="$available_tags $tagname"
19043 done
19044 IFS="$lt_save_ifs"
19046 # Now substitute the updated list of available tags.
19047 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19048 mv "${ofile}T" "$ofile"
19049 chmod +x "$ofile"
19050 else
19051 rm -f "${ofile}T"
19052 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19053 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19054 { (exit 1); exit 1; }; }
19060 # This can be used to rebuild libtool when needed
19061 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19063 # Always use our own libtool.
19064 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19066 # Prevent multiple expansion
19088 ac_ext=cc
19089 ac_cpp='$CXXCPP $CPPFLAGS'
19090 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19091 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19092 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19096 # Check whether --with-libusb or --without-libusb was given.
19097 if test "${with_libusb+set}" = set; then
19098 withval="$with_libusb"
19099 LIBUSB_LIB_PATH="$with_libusb/lib"
19100 LIBUSB_INC_PATH="$with_libusb/include"
19101 else
19102 LIBUSB_LIB_PATH="/usr/lib"
19103 LIBUSB_INC_PATH="/usr/include"
19106 # Check whether --with-boost or --without-boost was given.
19107 if test "${with_boost+set}" = set; then
19108 withval="$with_boost"
19109 BOOST_LIB_PATH="$with_boost/lib"
19110 BOOST_INC_PATH="$with_boost/include"
19111 BOOST_ENABLED="true"
19112 else
19113 BOOST_LIB_PATH="/usr/lib"
19114 BOOST_INC_PATH="/usr/include"
19124 if test "$BOOST_ENABLED" = "true"; then
19125 WITH_BOOST_TRUE=
19126 WITH_BOOST_FALSE='#'
19127 else
19128 WITH_BOOST_TRUE='#'
19129 WITH_BOOST_FALSE=
19133 # Checks for libraries.
19134 #AC_CHECK_LIB([IOKit], [main])
19136 echo "$as_me:$LINENO: checking for main in -lpthread" >&5
19137 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
19138 if test "${ac_cv_lib_pthread_main+set}" = set; then
19139 echo $ECHO_N "(cached) $ECHO_C" >&6
19140 else
19141 ac_check_lib_save_LIBS=$LIBS
19142 LIBS="-lpthread $LIBS"
19143 cat >conftest.$ac_ext <<_ACEOF
19144 /* confdefs.h. */
19145 _ACEOF
19146 cat confdefs.h >>conftest.$ac_ext
19147 cat >>conftest.$ac_ext <<_ACEOF
19148 /* end confdefs.h. */
19152 main ()
19154 main ();
19156 return 0;
19158 _ACEOF
19159 rm -f conftest.$ac_objext conftest$ac_exeext
19160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19161 (eval $ac_link) 2>conftest.er1
19162 ac_status=$?
19163 grep -v '^ *+' conftest.er1 >conftest.err
19164 rm -f conftest.er1
19165 cat conftest.err >&5
19166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19167 (exit $ac_status); } &&
19168 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19170 (eval $ac_try) 2>&5
19171 ac_status=$?
19172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173 (exit $ac_status); }; } &&
19174 { ac_try='test -s conftest$ac_exeext'
19175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19176 (eval $ac_try) 2>&5
19177 ac_status=$?
19178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19179 (exit $ac_status); }; }; then
19180 ac_cv_lib_pthread_main=yes
19181 else
19182 echo "$as_me: failed program was:" >&5
19183 sed 's/^/| /' conftest.$ac_ext >&5
19185 ac_cv_lib_pthread_main=no
19187 rm -f conftest.err conftest.$ac_objext \
19188 conftest$ac_exeext conftest.$ac_ext
19189 LIBS=$ac_check_lib_save_LIBS
19191 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
19192 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
19193 if test $ac_cv_lib_pthread_main = yes; then
19194 cat >>confdefs.h <<_ACEOF
19195 #define HAVE_LIBPTHREAD 1
19196 _ACEOF
19198 LIBS="-lpthread $LIBS"
19202 #AC_CHECK_LIB([libusb], [libusb_init])
19204 # Checks for header files.
19210 ac_header_dirent=no
19211 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19212 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19213 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19214 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19215 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19216 echo $ECHO_N "(cached) $ECHO_C" >&6
19217 else
19218 cat >conftest.$ac_ext <<_ACEOF
19219 /* confdefs.h. */
19220 _ACEOF
19221 cat confdefs.h >>conftest.$ac_ext
19222 cat >>conftest.$ac_ext <<_ACEOF
19223 /* end confdefs.h. */
19224 #include <sys/types.h>
19225 #include <$ac_hdr>
19228 main ()
19230 if ((DIR *) 0)
19231 return 0;
19233 return 0;
19235 _ACEOF
19236 rm -f conftest.$ac_objext
19237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19238 (eval $ac_compile) 2>conftest.er1
19239 ac_status=$?
19240 grep -v '^ *+' conftest.er1 >conftest.err
19241 rm -f conftest.er1
19242 cat conftest.err >&5
19243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244 (exit $ac_status); } &&
19245 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19247 (eval $ac_try) 2>&5
19248 ac_status=$?
19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); }; } &&
19251 { ac_try='test -s conftest.$ac_objext'
19252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19253 (eval $ac_try) 2>&5
19254 ac_status=$?
19255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256 (exit $ac_status); }; }; then
19257 eval "$as_ac_Header=yes"
19258 else
19259 echo "$as_me: failed program was:" >&5
19260 sed 's/^/| /' conftest.$ac_ext >&5
19262 eval "$as_ac_Header=no"
19264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19267 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19269 cat >>confdefs.h <<_ACEOF
19270 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19271 _ACEOF
19273 ac_header_dirent=$ac_hdr; break
19276 done
19277 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19278 if test $ac_header_dirent = dirent.h; then
19279 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19280 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19281 if test "${ac_cv_search_opendir+set}" = set; then
19282 echo $ECHO_N "(cached) $ECHO_C" >&6
19283 else
19284 ac_func_search_save_LIBS=$LIBS
19285 ac_cv_search_opendir=no
19286 cat >conftest.$ac_ext <<_ACEOF
19287 /* confdefs.h. */
19288 _ACEOF
19289 cat confdefs.h >>conftest.$ac_ext
19290 cat >>conftest.$ac_ext <<_ACEOF
19291 /* end confdefs.h. */
19293 /* Override any gcc2 internal prototype to avoid an error. */
19294 #ifdef __cplusplus
19295 extern "C"
19296 #endif
19297 /* We use char because int might match the return type of a gcc2
19298 builtin and then its argument prototype would still apply. */
19299 char opendir ();
19301 main ()
19303 opendir ();
19305 return 0;
19307 _ACEOF
19308 rm -f conftest.$ac_objext conftest$ac_exeext
19309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19310 (eval $ac_link) 2>conftest.er1
19311 ac_status=$?
19312 grep -v '^ *+' conftest.er1 >conftest.err
19313 rm -f conftest.er1
19314 cat conftest.err >&5
19315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316 (exit $ac_status); } &&
19317 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19319 (eval $ac_try) 2>&5
19320 ac_status=$?
19321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19322 (exit $ac_status); }; } &&
19323 { ac_try='test -s conftest$ac_exeext'
19324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19325 (eval $ac_try) 2>&5
19326 ac_status=$?
19327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328 (exit $ac_status); }; }; then
19329 ac_cv_search_opendir="none required"
19330 else
19331 echo "$as_me: failed program was:" >&5
19332 sed 's/^/| /' conftest.$ac_ext >&5
19335 rm -f conftest.err conftest.$ac_objext \
19336 conftest$ac_exeext conftest.$ac_ext
19337 if test "$ac_cv_search_opendir" = no; then
19338 for ac_lib in dir; do
19339 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19340 cat >conftest.$ac_ext <<_ACEOF
19341 /* confdefs.h. */
19342 _ACEOF
19343 cat confdefs.h >>conftest.$ac_ext
19344 cat >>conftest.$ac_ext <<_ACEOF
19345 /* end confdefs.h. */
19347 /* Override any gcc2 internal prototype to avoid an error. */
19348 #ifdef __cplusplus
19349 extern "C"
19350 #endif
19351 /* We use char because int might match the return type of a gcc2
19352 builtin and then its argument prototype would still apply. */
19353 char opendir ();
19355 main ()
19357 opendir ();
19359 return 0;
19361 _ACEOF
19362 rm -f conftest.$ac_objext conftest$ac_exeext
19363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19364 (eval $ac_link) 2>conftest.er1
19365 ac_status=$?
19366 grep -v '^ *+' conftest.er1 >conftest.err
19367 rm -f conftest.er1
19368 cat conftest.err >&5
19369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370 (exit $ac_status); } &&
19371 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19373 (eval $ac_try) 2>&5
19374 ac_status=$?
19375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376 (exit $ac_status); }; } &&
19377 { ac_try='test -s conftest$ac_exeext'
19378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19379 (eval $ac_try) 2>&5
19380 ac_status=$?
19381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382 (exit $ac_status); }; }; then
19383 ac_cv_search_opendir="-l$ac_lib"
19384 break
19385 else
19386 echo "$as_me: failed program was:" >&5
19387 sed 's/^/| /' conftest.$ac_ext >&5
19390 rm -f conftest.err conftest.$ac_objext \
19391 conftest$ac_exeext conftest.$ac_ext
19392 done
19394 LIBS=$ac_func_search_save_LIBS
19396 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19397 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19398 if test "$ac_cv_search_opendir" != no; then
19399 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19403 else
19404 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19405 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19406 if test "${ac_cv_search_opendir+set}" = set; then
19407 echo $ECHO_N "(cached) $ECHO_C" >&6
19408 else
19409 ac_func_search_save_LIBS=$LIBS
19410 ac_cv_search_opendir=no
19411 cat >conftest.$ac_ext <<_ACEOF
19412 /* confdefs.h. */
19413 _ACEOF
19414 cat confdefs.h >>conftest.$ac_ext
19415 cat >>conftest.$ac_ext <<_ACEOF
19416 /* end confdefs.h. */
19418 /* Override any gcc2 internal prototype to avoid an error. */
19419 #ifdef __cplusplus
19420 extern "C"
19421 #endif
19422 /* We use char because int might match the return type of a gcc2
19423 builtin and then its argument prototype would still apply. */
19424 char opendir ();
19426 main ()
19428 opendir ();
19430 return 0;
19432 _ACEOF
19433 rm -f conftest.$ac_objext conftest$ac_exeext
19434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19435 (eval $ac_link) 2>conftest.er1
19436 ac_status=$?
19437 grep -v '^ *+' conftest.er1 >conftest.err
19438 rm -f conftest.er1
19439 cat conftest.err >&5
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); } &&
19442 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19444 (eval $ac_try) 2>&5
19445 ac_status=$?
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); }; } &&
19448 { ac_try='test -s conftest$ac_exeext'
19449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19450 (eval $ac_try) 2>&5
19451 ac_status=$?
19452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 (exit $ac_status); }; }; then
19454 ac_cv_search_opendir="none required"
19455 else
19456 echo "$as_me: failed program was:" >&5
19457 sed 's/^/| /' conftest.$ac_ext >&5
19460 rm -f conftest.err conftest.$ac_objext \
19461 conftest$ac_exeext conftest.$ac_ext
19462 if test "$ac_cv_search_opendir" = no; then
19463 for ac_lib in x; do
19464 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19465 cat >conftest.$ac_ext <<_ACEOF
19466 /* confdefs.h. */
19467 _ACEOF
19468 cat confdefs.h >>conftest.$ac_ext
19469 cat >>conftest.$ac_ext <<_ACEOF
19470 /* end confdefs.h. */
19472 /* Override any gcc2 internal prototype to avoid an error. */
19473 #ifdef __cplusplus
19474 extern "C"
19475 #endif
19476 /* We use char because int might match the return type of a gcc2
19477 builtin and then its argument prototype would still apply. */
19478 char opendir ();
19480 main ()
19482 opendir ();
19484 return 0;
19486 _ACEOF
19487 rm -f conftest.$ac_objext conftest$ac_exeext
19488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19489 (eval $ac_link) 2>conftest.er1
19490 ac_status=$?
19491 grep -v '^ *+' conftest.er1 >conftest.err
19492 rm -f conftest.er1
19493 cat conftest.err >&5
19494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495 (exit $ac_status); } &&
19496 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19498 (eval $ac_try) 2>&5
19499 ac_status=$?
19500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501 (exit $ac_status); }; } &&
19502 { ac_try='test -s conftest$ac_exeext'
19503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19504 (eval $ac_try) 2>&5
19505 ac_status=$?
19506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507 (exit $ac_status); }; }; then
19508 ac_cv_search_opendir="-l$ac_lib"
19509 break
19510 else
19511 echo "$as_me: failed program was:" >&5
19512 sed 's/^/| /' conftest.$ac_ext >&5
19515 rm -f conftest.err conftest.$ac_objext \
19516 conftest$ac_exeext conftest.$ac_ext
19517 done
19519 LIBS=$ac_func_search_save_LIBS
19521 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19522 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19523 if test "$ac_cv_search_opendir" != no; then
19524 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19531 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19532 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19533 if test "${ac_cv_header_stdc+set}" = set; then
19534 echo $ECHO_N "(cached) $ECHO_C" >&6
19535 else
19536 cat >conftest.$ac_ext <<_ACEOF
19537 /* confdefs.h. */
19538 _ACEOF
19539 cat confdefs.h >>conftest.$ac_ext
19540 cat >>conftest.$ac_ext <<_ACEOF
19541 /* end confdefs.h. */
19542 #include <stdlib.h>
19543 #include <stdarg.h>
19544 #include <string.h>
19545 #include <float.h>
19548 main ()
19552 return 0;
19554 _ACEOF
19555 rm -f conftest.$ac_objext
19556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19557 (eval $ac_compile) 2>conftest.er1
19558 ac_status=$?
19559 grep -v '^ *+' conftest.er1 >conftest.err
19560 rm -f conftest.er1
19561 cat conftest.err >&5
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); } &&
19564 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19566 (eval $ac_try) 2>&5
19567 ac_status=$?
19568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569 (exit $ac_status); }; } &&
19570 { ac_try='test -s conftest.$ac_objext'
19571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19572 (eval $ac_try) 2>&5
19573 ac_status=$?
19574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575 (exit $ac_status); }; }; then
19576 ac_cv_header_stdc=yes
19577 else
19578 echo "$as_me: failed program was:" >&5
19579 sed 's/^/| /' conftest.$ac_ext >&5
19581 ac_cv_header_stdc=no
19583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19585 if test $ac_cv_header_stdc = yes; then
19586 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19587 cat >conftest.$ac_ext <<_ACEOF
19588 /* confdefs.h. */
19589 _ACEOF
19590 cat confdefs.h >>conftest.$ac_ext
19591 cat >>conftest.$ac_ext <<_ACEOF
19592 /* end confdefs.h. */
19593 #include <string.h>
19595 _ACEOF
19596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19597 $EGREP "memchr" >/dev/null 2>&1; then
19599 else
19600 ac_cv_header_stdc=no
19602 rm -f conftest*
19606 if test $ac_cv_header_stdc = yes; then
19607 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19608 cat >conftest.$ac_ext <<_ACEOF
19609 /* confdefs.h. */
19610 _ACEOF
19611 cat confdefs.h >>conftest.$ac_ext
19612 cat >>conftest.$ac_ext <<_ACEOF
19613 /* end confdefs.h. */
19614 #include <stdlib.h>
19616 _ACEOF
19617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19618 $EGREP "free" >/dev/null 2>&1; then
19620 else
19621 ac_cv_header_stdc=no
19623 rm -f conftest*
19627 if test $ac_cv_header_stdc = yes; then
19628 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19629 if test "$cross_compiling" = yes; then
19631 else
19632 cat >conftest.$ac_ext <<_ACEOF
19633 /* confdefs.h. */
19634 _ACEOF
19635 cat confdefs.h >>conftest.$ac_ext
19636 cat >>conftest.$ac_ext <<_ACEOF
19637 /* end confdefs.h. */
19638 #include <ctype.h>
19639 #if ((' ' & 0x0FF) == 0x020)
19640 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19641 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19642 #else
19643 # define ISLOWER(c) \
19644 (('a' <= (c) && (c) <= 'i') \
19645 || ('j' <= (c) && (c) <= 'r') \
19646 || ('s' <= (c) && (c) <= 'z'))
19647 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19648 #endif
19650 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19652 main ()
19654 int i;
19655 for (i = 0; i < 256; i++)
19656 if (XOR (islower (i), ISLOWER (i))
19657 || toupper (i) != TOUPPER (i))
19658 exit(2);
19659 exit (0);
19661 _ACEOF
19662 rm -f conftest$ac_exeext
19663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19664 (eval $ac_link) 2>&5
19665 ac_status=$?
19666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19669 (eval $ac_try) 2>&5
19670 ac_status=$?
19671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19672 (exit $ac_status); }; }; then
19674 else
19675 echo "$as_me: program exited with status $ac_status" >&5
19676 echo "$as_me: failed program was:" >&5
19677 sed 's/^/| /' conftest.$ac_ext >&5
19679 ( exit $ac_status )
19680 ac_cv_header_stdc=no
19682 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19686 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19687 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19688 if test $ac_cv_header_stdc = yes; then
19690 cat >>confdefs.h <<\_ACEOF
19691 #define STDC_HEADERS 1
19692 _ACEOF
19699 for ac_header in assert.h stdint.h time.h
19701 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19702 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19703 echo "$as_me:$LINENO: checking for $ac_header" >&5
19704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19705 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19706 echo $ECHO_N "(cached) $ECHO_C" >&6
19708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19709 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19710 else
19711 # Is the header compilable?
19712 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19713 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19714 cat >conftest.$ac_ext <<_ACEOF
19715 /* confdefs.h. */
19716 _ACEOF
19717 cat confdefs.h >>conftest.$ac_ext
19718 cat >>conftest.$ac_ext <<_ACEOF
19719 /* end confdefs.h. */
19720 $ac_includes_default
19721 #include <$ac_header>
19722 _ACEOF
19723 rm -f conftest.$ac_objext
19724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19725 (eval $ac_compile) 2>conftest.er1
19726 ac_status=$?
19727 grep -v '^ *+' conftest.er1 >conftest.err
19728 rm -f conftest.er1
19729 cat conftest.err >&5
19730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731 (exit $ac_status); } &&
19732 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19734 (eval $ac_try) 2>&5
19735 ac_status=$?
19736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737 (exit $ac_status); }; } &&
19738 { ac_try='test -s conftest.$ac_objext'
19739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19740 (eval $ac_try) 2>&5
19741 ac_status=$?
19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743 (exit $ac_status); }; }; then
19744 ac_header_compiler=yes
19745 else
19746 echo "$as_me: failed program was:" >&5
19747 sed 's/^/| /' conftest.$ac_ext >&5
19749 ac_header_compiler=no
19751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19752 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19753 echo "${ECHO_T}$ac_header_compiler" >&6
19755 # Is the header present?
19756 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19757 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19758 cat >conftest.$ac_ext <<_ACEOF
19759 /* confdefs.h. */
19760 _ACEOF
19761 cat confdefs.h >>conftest.$ac_ext
19762 cat >>conftest.$ac_ext <<_ACEOF
19763 /* end confdefs.h. */
19764 #include <$ac_header>
19765 _ACEOF
19766 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19767 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19768 ac_status=$?
19769 grep -v '^ *+' conftest.er1 >conftest.err
19770 rm -f conftest.er1
19771 cat conftest.err >&5
19772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19773 (exit $ac_status); } >/dev/null; then
19774 if test -s conftest.err; then
19775 ac_cpp_err=$ac_cxx_preproc_warn_flag
19776 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
19777 else
19778 ac_cpp_err=
19780 else
19781 ac_cpp_err=yes
19783 if test -z "$ac_cpp_err"; then
19784 ac_header_preproc=yes
19785 else
19786 echo "$as_me: failed program was:" >&5
19787 sed 's/^/| /' conftest.$ac_ext >&5
19789 ac_header_preproc=no
19791 rm -f conftest.err conftest.$ac_ext
19792 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19793 echo "${ECHO_T}$ac_header_preproc" >&6
19795 # So? What about this header?
19796 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19797 yes:no: )
19798 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19799 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19801 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19802 ac_header_preproc=yes
19804 no:yes:* )
19805 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19806 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19807 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19808 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19809 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19810 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19811 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19812 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19813 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19814 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19815 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19816 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19818 cat <<\_ASBOX
19819 ## ------------------------------------------------ ##
19820 ## Report this to barry-devel@lists.sourceforge.net ##
19821 ## ------------------------------------------------ ##
19822 _ASBOX
19824 sed "s/^/$as_me: WARNING: /" >&2
19826 esac
19827 echo "$as_me:$LINENO: checking for $ac_header" >&5
19828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19829 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19830 echo $ECHO_N "(cached) $ECHO_C" >&6
19831 else
19832 eval "$as_ac_Header=\$ac_header_preproc"
19834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19835 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19838 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19839 cat >>confdefs.h <<_ACEOF
19840 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19841 _ACEOF
19845 done
19848 # Checks for typedefs, structures, and compiler characteristics.
19849 #AC_TYPE_SIZE_T
19850 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19851 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19852 if test "${ac_cv_header_time+set}" = set; then
19853 echo $ECHO_N "(cached) $ECHO_C" >&6
19854 else
19855 cat >conftest.$ac_ext <<_ACEOF
19856 /* confdefs.h. */
19857 _ACEOF
19858 cat confdefs.h >>conftest.$ac_ext
19859 cat >>conftest.$ac_ext <<_ACEOF
19860 /* end confdefs.h. */
19861 #include <sys/types.h>
19862 #include <sys/time.h>
19863 #include <time.h>
19866 main ()
19868 if ((struct tm *) 0)
19869 return 0;
19871 return 0;
19873 _ACEOF
19874 rm -f conftest.$ac_objext
19875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19876 (eval $ac_compile) 2>conftest.er1
19877 ac_status=$?
19878 grep -v '^ *+' conftest.er1 >conftest.err
19879 rm -f conftest.er1
19880 cat conftest.err >&5
19881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882 (exit $ac_status); } &&
19883 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19885 (eval $ac_try) 2>&5
19886 ac_status=$?
19887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888 (exit $ac_status); }; } &&
19889 { ac_try='test -s conftest.$ac_objext'
19890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19891 (eval $ac_try) 2>&5
19892 ac_status=$?
19893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894 (exit $ac_status); }; }; then
19895 ac_cv_header_time=yes
19896 else
19897 echo "$as_me: failed program was:" >&5
19898 sed 's/^/| /' conftest.$ac_ext >&5
19900 ac_cv_header_time=no
19902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19904 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19905 echo "${ECHO_T}$ac_cv_header_time" >&6
19906 if test $ac_cv_header_time = yes; then
19908 cat >>confdefs.h <<\_ACEOF
19909 #define TIME_WITH_SYS_TIME 1
19910 _ACEOF
19914 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19915 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
19916 if test "${ac_cv_struct_tm+set}" = set; then
19917 echo $ECHO_N "(cached) $ECHO_C" >&6
19918 else
19919 cat >conftest.$ac_ext <<_ACEOF
19920 /* confdefs.h. */
19921 _ACEOF
19922 cat confdefs.h >>conftest.$ac_ext
19923 cat >>conftest.$ac_ext <<_ACEOF
19924 /* end confdefs.h. */
19925 #include <sys/types.h>
19926 #include <time.h>
19929 main ()
19931 struct tm *tp; tp->tm_sec;
19933 return 0;
19935 _ACEOF
19936 rm -f conftest.$ac_objext
19937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19938 (eval $ac_compile) 2>conftest.er1
19939 ac_status=$?
19940 grep -v '^ *+' conftest.er1 >conftest.err
19941 rm -f conftest.er1
19942 cat conftest.err >&5
19943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944 (exit $ac_status); } &&
19945 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19947 (eval $ac_try) 2>&5
19948 ac_status=$?
19949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950 (exit $ac_status); }; } &&
19951 { ac_try='test -s conftest.$ac_objext'
19952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19953 (eval $ac_try) 2>&5
19954 ac_status=$?
19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); }; }; then
19957 ac_cv_struct_tm=time.h
19958 else
19959 echo "$as_me: failed program was:" >&5
19960 sed 's/^/| /' conftest.$ac_ext >&5
19962 ac_cv_struct_tm=sys/time.h
19964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19966 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19967 echo "${ECHO_T}$ac_cv_struct_tm" >&6
19968 if test $ac_cv_struct_tm = sys/time.h; then
19970 cat >>confdefs.h <<\_ACEOF
19971 #define TM_IN_SYS_TIME 1
19972 _ACEOF
19977 # Checks for library functions.
19978 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
19979 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
19980 if test "${ac_cv_func_closedir_void+set}" = set; then
19981 echo $ECHO_N "(cached) $ECHO_C" >&6
19982 else
19983 if test "$cross_compiling" = yes; then
19984 ac_cv_func_closedir_void=yes
19985 else
19986 cat >conftest.$ac_ext <<_ACEOF
19987 /* confdefs.h. */
19988 _ACEOF
19989 cat confdefs.h >>conftest.$ac_ext
19990 cat >>conftest.$ac_ext <<_ACEOF
19991 /* end confdefs.h. */
19992 $ac_includes_default
19993 #include <$ac_header_dirent>
19994 #ifndef __cplusplus
19995 int closedir ();
19996 #endif
19999 main ()
20001 exit (closedir (opendir (".")) != 0);
20003 return 0;
20005 _ACEOF
20006 rm -f conftest$ac_exeext
20007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20008 (eval $ac_link) 2>&5
20009 ac_status=$?
20010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20011 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20013 (eval $ac_try) 2>&5
20014 ac_status=$?
20015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016 (exit $ac_status); }; }; then
20017 ac_cv_func_closedir_void=no
20018 else
20019 echo "$as_me: program exited with status $ac_status" >&5
20020 echo "$as_me: failed program was:" >&5
20021 sed 's/^/| /' conftest.$ac_ext >&5
20023 ( exit $ac_status )
20024 ac_cv_func_closedir_void=yes
20026 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20029 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
20030 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
20031 if test $ac_cv_func_closedir_void = yes; then
20033 cat >>confdefs.h <<\_ACEOF
20034 #define CLOSEDIR_VOID 1
20035 _ACEOF
20039 if test $ac_cv_c_compiler_gnu = yes; then
20040 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
20041 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
20042 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
20043 echo $ECHO_N "(cached) $ECHO_C" >&6
20044 else
20045 ac_pattern="Autoconf.*'x'"
20046 cat >conftest.$ac_ext <<_ACEOF
20047 /* confdefs.h. */
20048 _ACEOF
20049 cat confdefs.h >>conftest.$ac_ext
20050 cat >>conftest.$ac_ext <<_ACEOF
20051 /* end confdefs.h. */
20052 #include <sgtty.h>
20053 Autoconf TIOCGETP
20054 _ACEOF
20055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20056 $EGREP "$ac_pattern" >/dev/null 2>&1; then
20057 ac_cv_prog_gcc_traditional=yes
20058 else
20059 ac_cv_prog_gcc_traditional=no
20061 rm -f conftest*
20064 if test $ac_cv_prog_gcc_traditional = no; then
20065 cat >conftest.$ac_ext <<_ACEOF
20066 /* confdefs.h. */
20067 _ACEOF
20068 cat confdefs.h >>conftest.$ac_ext
20069 cat >>conftest.$ac_ext <<_ACEOF
20070 /* end confdefs.h. */
20071 #include <termio.h>
20072 Autoconf TCGETA
20073 _ACEOF
20074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20075 $EGREP "$ac_pattern" >/dev/null 2>&1; then
20076 ac_cv_prog_gcc_traditional=yes
20078 rm -f conftest*
20082 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
20083 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
20084 if test $ac_cv_prog_gcc_traditional = yes; then
20085 CC="$CC -traditional"
20090 for ac_header in stdlib.h
20092 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20093 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20094 echo "$as_me:$LINENO: checking for $ac_header" >&5
20095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20096 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20097 echo $ECHO_N "(cached) $ECHO_C" >&6
20099 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20100 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20101 else
20102 # Is the header compilable?
20103 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20104 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20105 cat >conftest.$ac_ext <<_ACEOF
20106 /* confdefs.h. */
20107 _ACEOF
20108 cat confdefs.h >>conftest.$ac_ext
20109 cat >>conftest.$ac_ext <<_ACEOF
20110 /* end confdefs.h. */
20111 $ac_includes_default
20112 #include <$ac_header>
20113 _ACEOF
20114 rm -f conftest.$ac_objext
20115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20116 (eval $ac_compile) 2>conftest.er1
20117 ac_status=$?
20118 grep -v '^ *+' conftest.er1 >conftest.err
20119 rm -f conftest.er1
20120 cat conftest.err >&5
20121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20122 (exit $ac_status); } &&
20123 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20125 (eval $ac_try) 2>&5
20126 ac_status=$?
20127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20128 (exit $ac_status); }; } &&
20129 { ac_try='test -s conftest.$ac_objext'
20130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20131 (eval $ac_try) 2>&5
20132 ac_status=$?
20133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20134 (exit $ac_status); }; }; then
20135 ac_header_compiler=yes
20136 else
20137 echo "$as_me: failed program was:" >&5
20138 sed 's/^/| /' conftest.$ac_ext >&5
20140 ac_header_compiler=no
20142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20143 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20144 echo "${ECHO_T}$ac_header_compiler" >&6
20146 # Is the header present?
20147 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20148 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20149 cat >conftest.$ac_ext <<_ACEOF
20150 /* confdefs.h. */
20151 _ACEOF
20152 cat confdefs.h >>conftest.$ac_ext
20153 cat >>conftest.$ac_ext <<_ACEOF
20154 /* end confdefs.h. */
20155 #include <$ac_header>
20156 _ACEOF
20157 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20158 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20159 ac_status=$?
20160 grep -v '^ *+' conftest.er1 >conftest.err
20161 rm -f conftest.er1
20162 cat conftest.err >&5
20163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164 (exit $ac_status); } >/dev/null; then
20165 if test -s conftest.err; then
20166 ac_cpp_err=$ac_cxx_preproc_warn_flag
20167 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
20168 else
20169 ac_cpp_err=
20171 else
20172 ac_cpp_err=yes
20174 if test -z "$ac_cpp_err"; then
20175 ac_header_preproc=yes
20176 else
20177 echo "$as_me: failed program was:" >&5
20178 sed 's/^/| /' conftest.$ac_ext >&5
20180 ac_header_preproc=no
20182 rm -f conftest.err conftest.$ac_ext
20183 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20184 echo "${ECHO_T}$ac_header_preproc" >&6
20186 # So? What about this header?
20187 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20188 yes:no: )
20189 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20190 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20192 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20193 ac_header_preproc=yes
20195 no:yes:* )
20196 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20197 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20198 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20199 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20200 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20201 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20202 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20203 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20205 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20206 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20207 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20209 cat <<\_ASBOX
20210 ## ------------------------------------------------ ##
20211 ## Report this to barry-devel@lists.sourceforge.net ##
20212 ## ------------------------------------------------ ##
20213 _ASBOX
20215 sed "s/^/$as_me: WARNING: /" >&2
20217 esac
20218 echo "$as_me:$LINENO: checking for $ac_header" >&5
20219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20220 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20221 echo $ECHO_N "(cached) $ECHO_C" >&6
20222 else
20223 eval "$as_ac_Header=\$ac_header_preproc"
20225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20226 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20229 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20230 cat >>confdefs.h <<_ACEOF
20231 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20232 _ACEOF
20236 done
20238 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
20239 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
20240 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
20241 echo $ECHO_N "(cached) $ECHO_C" >&6
20242 else
20243 if test "$cross_compiling" = yes; then
20244 ac_cv_func_malloc_0_nonnull=no
20245 else
20246 cat >conftest.$ac_ext <<_ACEOF
20247 /* confdefs.h. */
20248 _ACEOF
20249 cat confdefs.h >>conftest.$ac_ext
20250 cat >>conftest.$ac_ext <<_ACEOF
20251 /* end confdefs.h. */
20252 #if STDC_HEADERS || HAVE_STDLIB_H
20253 # include <stdlib.h>
20254 #else
20255 char *malloc ();
20256 #endif
20259 main ()
20261 exit (malloc (0) ? 0 : 1);
20263 return 0;
20265 _ACEOF
20266 rm -f conftest$ac_exeext
20267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20268 (eval $ac_link) 2>&5
20269 ac_status=$?
20270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20273 (eval $ac_try) 2>&5
20274 ac_status=$?
20275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276 (exit $ac_status); }; }; then
20277 ac_cv_func_malloc_0_nonnull=yes
20278 else
20279 echo "$as_me: program exited with status $ac_status" >&5
20280 echo "$as_me: failed program was:" >&5
20281 sed 's/^/| /' conftest.$ac_ext >&5
20283 ( exit $ac_status )
20284 ac_cv_func_malloc_0_nonnull=no
20286 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20289 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
20290 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
20291 if test $ac_cv_func_malloc_0_nonnull = yes; then
20293 cat >>confdefs.h <<\_ACEOF
20294 #define HAVE_MALLOC 1
20295 _ACEOF
20297 else
20298 cat >>confdefs.h <<\_ACEOF
20299 #define HAVE_MALLOC 0
20300 _ACEOF
20302 case $LIBOBJS in
20303 "malloc.$ac_objext" | \
20304 *" malloc.$ac_objext" | \
20305 "malloc.$ac_objext "* | \
20306 *" malloc.$ac_objext "* ) ;;
20307 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
20308 esac
20311 cat >>confdefs.h <<\_ACEOF
20312 #define malloc rpl_malloc
20313 _ACEOF
20322 for ac_header in stdlib.h sys/time.h unistd.h
20324 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20326 echo "$as_me:$LINENO: checking for $ac_header" >&5
20327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20329 echo $ECHO_N "(cached) $ECHO_C" >&6
20331 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20332 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20333 else
20334 # Is the header compilable?
20335 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20336 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20337 cat >conftest.$ac_ext <<_ACEOF
20338 /* confdefs.h. */
20339 _ACEOF
20340 cat confdefs.h >>conftest.$ac_ext
20341 cat >>conftest.$ac_ext <<_ACEOF
20342 /* end confdefs.h. */
20343 $ac_includes_default
20344 #include <$ac_header>
20345 _ACEOF
20346 rm -f conftest.$ac_objext
20347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20348 (eval $ac_compile) 2>conftest.er1
20349 ac_status=$?
20350 grep -v '^ *+' conftest.er1 >conftest.err
20351 rm -f conftest.er1
20352 cat conftest.err >&5
20353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20354 (exit $ac_status); } &&
20355 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20357 (eval $ac_try) 2>&5
20358 ac_status=$?
20359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20360 (exit $ac_status); }; } &&
20361 { ac_try='test -s conftest.$ac_objext'
20362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20363 (eval $ac_try) 2>&5
20364 ac_status=$?
20365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20366 (exit $ac_status); }; }; then
20367 ac_header_compiler=yes
20368 else
20369 echo "$as_me: failed program was:" >&5
20370 sed 's/^/| /' conftest.$ac_ext >&5
20372 ac_header_compiler=no
20374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20375 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20376 echo "${ECHO_T}$ac_header_compiler" >&6
20378 # Is the header present?
20379 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20380 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20381 cat >conftest.$ac_ext <<_ACEOF
20382 /* confdefs.h. */
20383 _ACEOF
20384 cat confdefs.h >>conftest.$ac_ext
20385 cat >>conftest.$ac_ext <<_ACEOF
20386 /* end confdefs.h. */
20387 #include <$ac_header>
20388 _ACEOF
20389 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20390 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20391 ac_status=$?
20392 grep -v '^ *+' conftest.er1 >conftest.err
20393 rm -f conftest.er1
20394 cat conftest.err >&5
20395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396 (exit $ac_status); } >/dev/null; then
20397 if test -s conftest.err; then
20398 ac_cpp_err=$ac_cxx_preproc_warn_flag
20399 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
20400 else
20401 ac_cpp_err=
20403 else
20404 ac_cpp_err=yes
20406 if test -z "$ac_cpp_err"; then
20407 ac_header_preproc=yes
20408 else
20409 echo "$as_me: failed program was:" >&5
20410 sed 's/^/| /' conftest.$ac_ext >&5
20412 ac_header_preproc=no
20414 rm -f conftest.err conftest.$ac_ext
20415 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20416 echo "${ECHO_T}$ac_header_preproc" >&6
20418 # So? What about this header?
20419 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20420 yes:no: )
20421 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20422 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20424 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20425 ac_header_preproc=yes
20427 no:yes:* )
20428 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20429 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20430 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20431 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20432 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20433 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20434 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20435 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20437 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20438 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20439 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20441 cat <<\_ASBOX
20442 ## ------------------------------------------------ ##
20443 ## Report this to barry-devel@lists.sourceforge.net ##
20444 ## ------------------------------------------------ ##
20445 _ASBOX
20447 sed "s/^/$as_me: WARNING: /" >&2
20449 esac
20450 echo "$as_me:$LINENO: checking for $ac_header" >&5
20451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20452 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20453 echo $ECHO_N "(cached) $ECHO_C" >&6
20454 else
20455 eval "$as_ac_Header=\$ac_header_preproc"
20457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20461 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20462 cat >>confdefs.h <<_ACEOF
20463 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20464 _ACEOF
20468 done
20471 for ac_func in alarm
20473 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20474 echo "$as_me:$LINENO: checking for $ac_func" >&5
20475 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20476 if eval "test \"\${$as_ac_var+set}\" = set"; then
20477 echo $ECHO_N "(cached) $ECHO_C" >&6
20478 else
20479 cat >conftest.$ac_ext <<_ACEOF
20480 /* confdefs.h. */
20481 _ACEOF
20482 cat confdefs.h >>conftest.$ac_ext
20483 cat >>conftest.$ac_ext <<_ACEOF
20484 /* end confdefs.h. */
20485 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20486 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20487 #define $ac_func innocuous_$ac_func
20489 /* System header to define __stub macros and hopefully few prototypes,
20490 which can conflict with char $ac_func (); below.
20491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20492 <limits.h> exists even on freestanding compilers. */
20494 #ifdef __STDC__
20495 # include <limits.h>
20496 #else
20497 # include <assert.h>
20498 #endif
20500 #undef $ac_func
20502 /* Override any gcc2 internal prototype to avoid an error. */
20503 #ifdef __cplusplus
20504 extern "C"
20506 #endif
20507 /* We use char because int might match the return type of a gcc2
20508 builtin and then its argument prototype would still apply. */
20509 char $ac_func ();
20510 /* The GNU C library defines this for functions which it implements
20511 to always fail with ENOSYS. Some functions are actually named
20512 something starting with __ and the normal name is an alias. */
20513 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20514 choke me
20515 #else
20516 char (*f) () = $ac_func;
20517 #endif
20518 #ifdef __cplusplus
20520 #endif
20523 main ()
20525 return f != $ac_func;
20527 return 0;
20529 _ACEOF
20530 rm -f conftest.$ac_objext conftest$ac_exeext
20531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20532 (eval $ac_link) 2>conftest.er1
20533 ac_status=$?
20534 grep -v '^ *+' conftest.er1 >conftest.err
20535 rm -f conftest.er1
20536 cat conftest.err >&5
20537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20538 (exit $ac_status); } &&
20539 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20541 (eval $ac_try) 2>&5
20542 ac_status=$?
20543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544 (exit $ac_status); }; } &&
20545 { ac_try='test -s conftest$ac_exeext'
20546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20547 (eval $ac_try) 2>&5
20548 ac_status=$?
20549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550 (exit $ac_status); }; }; then
20551 eval "$as_ac_var=yes"
20552 else
20553 echo "$as_me: failed program was:" >&5
20554 sed 's/^/| /' conftest.$ac_ext >&5
20556 eval "$as_ac_var=no"
20558 rm -f conftest.err conftest.$ac_objext \
20559 conftest$ac_exeext conftest.$ac_ext
20561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20562 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20563 if test `eval echo '${'$as_ac_var'}'` = yes; then
20564 cat >>confdefs.h <<_ACEOF
20565 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20566 _ACEOF
20569 done
20571 echo "$as_me:$LINENO: checking for working mktime" >&5
20572 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
20573 if test "${ac_cv_func_working_mktime+set}" = set; then
20574 echo $ECHO_N "(cached) $ECHO_C" >&6
20575 else
20576 if test "$cross_compiling" = yes; then
20577 ac_cv_func_working_mktime=no
20578 else
20579 cat >conftest.$ac_ext <<_ACEOF
20580 /* confdefs.h. */
20581 _ACEOF
20582 cat confdefs.h >>conftest.$ac_ext
20583 cat >>conftest.$ac_ext <<_ACEOF
20584 /* end confdefs.h. */
20585 /* Test program from Paul Eggert and Tony Leneis. */
20586 #if TIME_WITH_SYS_TIME
20587 # include <sys/time.h>
20588 # include <time.h>
20589 #else
20590 # if HAVE_SYS_TIME_H
20591 # include <sys/time.h>
20592 # else
20593 # include <time.h>
20594 # endif
20595 #endif
20597 #if HAVE_STDLIB_H
20598 # include <stdlib.h>
20599 #endif
20601 #if HAVE_UNISTD_H
20602 # include <unistd.h>
20603 #endif
20605 #if !HAVE_ALARM
20606 # define alarm(X) /* empty */
20607 #endif
20609 /* Work around redefinition to rpl_putenv by other config tests. */
20610 #undef putenv
20612 static time_t time_t_max;
20613 static time_t time_t_min;
20615 /* Values we'll use to set the TZ environment variable. */
20616 static char *tz_strings[] = {
20617 (char *) 0, "TZ=GMT0", "TZ=JST-9",
20618 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
20620 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
20622 /* Fail if mktime fails to convert a date in the spring-forward gap.
20623 Based on a problem report from Andreas Jaeger. */
20624 static void
20625 spring_forward_gap ()
20627 /* glibc (up to about 1998-10-07) failed this test. */
20628 struct tm tm;
20630 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20631 instead of "TZ=America/Vancouver" in order to detect the bug even
20632 on systems that don't support the Olson extension, or don't have the
20633 full zoneinfo tables installed. */
20634 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20636 tm.tm_year = 98;
20637 tm.tm_mon = 3;
20638 tm.tm_mday = 5;
20639 tm.tm_hour = 2;
20640 tm.tm_min = 0;
20641 tm.tm_sec = 0;
20642 tm.tm_isdst = -1;
20643 if (mktime (&tm) == (time_t)-1)
20644 exit (1);
20647 static void
20648 mktime_test1 (now)
20649 time_t now;
20651 struct tm *lt;
20652 if ((lt = localtime (&now)) && mktime (lt) != now)
20653 exit (1);
20656 static void
20657 mktime_test (now)
20658 time_t now;
20660 mktime_test1 (now);
20661 mktime_test1 ((time_t) (time_t_max - now));
20662 mktime_test1 ((time_t) (time_t_min + now));
20665 static void
20666 irix_6_4_bug ()
20668 /* Based on code from Ariel Faigon. */
20669 struct tm tm;
20670 tm.tm_year = 96;
20671 tm.tm_mon = 3;
20672 tm.tm_mday = 0;
20673 tm.tm_hour = 0;
20674 tm.tm_min = 0;
20675 tm.tm_sec = 0;
20676 tm.tm_isdst = -1;
20677 mktime (&tm);
20678 if (tm.tm_mon != 2 || tm.tm_mday != 31)
20679 exit (1);
20682 static void
20683 bigtime_test (j)
20684 int j;
20686 struct tm tm;
20687 time_t now;
20688 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
20689 now = mktime (&tm);
20690 if (now != (time_t) -1)
20692 struct tm *lt = localtime (&now);
20693 if (! (lt
20694 && lt->tm_year == tm.tm_year
20695 && lt->tm_mon == tm.tm_mon
20696 && lt->tm_mday == tm.tm_mday
20697 && lt->tm_hour == tm.tm_hour
20698 && lt->tm_min == tm.tm_min
20699 && lt->tm_sec == tm.tm_sec
20700 && lt->tm_yday == tm.tm_yday
20701 && lt->tm_wday == tm.tm_wday
20702 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
20703 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
20704 exit (1);
20709 main ()
20711 time_t t, delta;
20712 int i, j;
20714 /* This test makes some buggy mktime implementations loop.
20715 Give up after 60 seconds; a mktime slower than that
20716 isn't worth using anyway. */
20717 alarm (60);
20719 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
20720 continue;
20721 time_t_max--;
20722 if ((time_t) -1 < 0)
20723 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
20724 continue;
20725 delta = time_t_max / 997; /* a suitable prime number */
20726 for (i = 0; i < N_STRINGS; i++)
20728 if (tz_strings[i])
20729 putenv (tz_strings[i]);
20731 for (t = 0; t <= time_t_max - delta; t += delta)
20732 mktime_test (t);
20733 mktime_test ((time_t) 1);
20734 mktime_test ((time_t) (60 * 60));
20735 mktime_test ((time_t) (60 * 60 * 24));
20737 for (j = 1; 0 < j; j *= 2)
20738 bigtime_test (j);
20739 bigtime_test (j - 1);
20741 irix_6_4_bug ();
20742 spring_forward_gap ();
20743 exit (0);
20745 _ACEOF
20746 rm -f conftest$ac_exeext
20747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20748 (eval $ac_link) 2>&5
20749 ac_status=$?
20750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20751 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20753 (eval $ac_try) 2>&5
20754 ac_status=$?
20755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20756 (exit $ac_status); }; }; then
20757 ac_cv_func_working_mktime=yes
20758 else
20759 echo "$as_me: program exited with status $ac_status" >&5
20760 echo "$as_me: failed program was:" >&5
20761 sed 's/^/| /' conftest.$ac_ext >&5
20763 ( exit $ac_status )
20764 ac_cv_func_working_mktime=no
20766 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20769 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
20770 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
20771 if test $ac_cv_func_working_mktime = no; then
20772 case $LIBOBJS in
20773 "mktime.$ac_objext" | \
20774 *" mktime.$ac_objext" | \
20775 "mktime.$ac_objext "* | \
20776 *" mktime.$ac_objext "* ) ;;
20777 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
20778 esac
20783 for ac_header in stdlib.h
20785 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20787 echo "$as_me:$LINENO: checking for $ac_header" >&5
20788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20790 echo $ECHO_N "(cached) $ECHO_C" >&6
20792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20793 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20794 else
20795 # Is the header compilable?
20796 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20797 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20798 cat >conftest.$ac_ext <<_ACEOF
20799 /* confdefs.h. */
20800 _ACEOF
20801 cat confdefs.h >>conftest.$ac_ext
20802 cat >>conftest.$ac_ext <<_ACEOF
20803 /* end confdefs.h. */
20804 $ac_includes_default
20805 #include <$ac_header>
20806 _ACEOF
20807 rm -f conftest.$ac_objext
20808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20809 (eval $ac_compile) 2>conftest.er1
20810 ac_status=$?
20811 grep -v '^ *+' conftest.er1 >conftest.err
20812 rm -f conftest.er1
20813 cat conftest.err >&5
20814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815 (exit $ac_status); } &&
20816 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20818 (eval $ac_try) 2>&5
20819 ac_status=$?
20820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821 (exit $ac_status); }; } &&
20822 { ac_try='test -s conftest.$ac_objext'
20823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20824 (eval $ac_try) 2>&5
20825 ac_status=$?
20826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827 (exit $ac_status); }; }; then
20828 ac_header_compiler=yes
20829 else
20830 echo "$as_me: failed program was:" >&5
20831 sed 's/^/| /' conftest.$ac_ext >&5
20833 ac_header_compiler=no
20835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20836 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20837 echo "${ECHO_T}$ac_header_compiler" >&6
20839 # Is the header present?
20840 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20841 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20842 cat >conftest.$ac_ext <<_ACEOF
20843 /* confdefs.h. */
20844 _ACEOF
20845 cat confdefs.h >>conftest.$ac_ext
20846 cat >>conftest.$ac_ext <<_ACEOF
20847 /* end confdefs.h. */
20848 #include <$ac_header>
20849 _ACEOF
20850 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20851 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20852 ac_status=$?
20853 grep -v '^ *+' conftest.er1 >conftest.err
20854 rm -f conftest.er1
20855 cat conftest.err >&5
20856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857 (exit $ac_status); } >/dev/null; then
20858 if test -s conftest.err; then
20859 ac_cpp_err=$ac_cxx_preproc_warn_flag
20860 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
20861 else
20862 ac_cpp_err=
20864 else
20865 ac_cpp_err=yes
20867 if test -z "$ac_cpp_err"; then
20868 ac_header_preproc=yes
20869 else
20870 echo "$as_me: failed program was:" >&5
20871 sed 's/^/| /' conftest.$ac_ext >&5
20873 ac_header_preproc=no
20875 rm -f conftest.err conftest.$ac_ext
20876 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20877 echo "${ECHO_T}$ac_header_preproc" >&6
20879 # So? What about this header?
20880 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20881 yes:no: )
20882 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20883 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20884 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20885 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20886 ac_header_preproc=yes
20888 no:yes:* )
20889 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20890 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20891 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20892 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20893 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20894 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20895 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20896 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20898 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20899 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20900 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20902 cat <<\_ASBOX
20903 ## ------------------------------------------------ ##
20904 ## Report this to barry-devel@lists.sourceforge.net ##
20905 ## ------------------------------------------------ ##
20906 _ASBOX
20908 sed "s/^/$as_me: WARNING: /" >&2
20910 esac
20911 echo "$as_me:$LINENO: checking for $ac_header" >&5
20912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20914 echo $ECHO_N "(cached) $ECHO_C" >&6
20915 else
20916 eval "$as_ac_Header=\$ac_header_preproc"
20918 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20919 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20922 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20923 cat >>confdefs.h <<_ACEOF
20924 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20925 _ACEOF
20929 done
20931 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
20932 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
20933 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
20934 echo $ECHO_N "(cached) $ECHO_C" >&6
20935 else
20936 if test "$cross_compiling" = yes; then
20937 ac_cv_func_realloc_0_nonnull=no
20938 else
20939 cat >conftest.$ac_ext <<_ACEOF
20940 /* confdefs.h. */
20941 _ACEOF
20942 cat confdefs.h >>conftest.$ac_ext
20943 cat >>conftest.$ac_ext <<_ACEOF
20944 /* end confdefs.h. */
20945 #if STDC_HEADERS || HAVE_STDLIB_H
20946 # include <stdlib.h>
20947 #else
20948 char *realloc ();
20949 #endif
20952 main ()
20954 exit (realloc (0, 0) ? 0 : 1);
20956 return 0;
20958 _ACEOF
20959 rm -f conftest$ac_exeext
20960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20961 (eval $ac_link) 2>&5
20962 ac_status=$?
20963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20964 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20966 (eval $ac_try) 2>&5
20967 ac_status=$?
20968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20969 (exit $ac_status); }; }; then
20970 ac_cv_func_realloc_0_nonnull=yes
20971 else
20972 echo "$as_me: program exited with status $ac_status" >&5
20973 echo "$as_me: failed program was:" >&5
20974 sed 's/^/| /' conftest.$ac_ext >&5
20976 ( exit $ac_status )
20977 ac_cv_func_realloc_0_nonnull=no
20979 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20982 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
20983 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
20984 if test $ac_cv_func_realloc_0_nonnull = yes; then
20986 cat >>confdefs.h <<\_ACEOF
20987 #define HAVE_REALLOC 1
20988 _ACEOF
20990 else
20991 cat >>confdefs.h <<\_ACEOF
20992 #define HAVE_REALLOC 0
20993 _ACEOF
20995 case $LIBOBJS in
20996 "realloc.$ac_objext" | \
20997 *" realloc.$ac_objext" | \
20998 "realloc.$ac_objext "* | \
20999 *" realloc.$ac_objext "* ) ;;
21000 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
21001 esac
21004 cat >>confdefs.h <<\_ACEOF
21005 #define realloc rpl_realloc
21006 _ACEOF
21014 for ac_header in sys/select.h sys/socket.h
21016 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21017 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21018 echo "$as_me:$LINENO: checking for $ac_header" >&5
21019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21020 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21021 echo $ECHO_N "(cached) $ECHO_C" >&6
21023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21024 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21025 else
21026 # Is the header compilable?
21027 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21028 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21029 cat >conftest.$ac_ext <<_ACEOF
21030 /* confdefs.h. */
21031 _ACEOF
21032 cat confdefs.h >>conftest.$ac_ext
21033 cat >>conftest.$ac_ext <<_ACEOF
21034 /* end confdefs.h. */
21035 $ac_includes_default
21036 #include <$ac_header>
21037 _ACEOF
21038 rm -f conftest.$ac_objext
21039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21040 (eval $ac_compile) 2>conftest.er1
21041 ac_status=$?
21042 grep -v '^ *+' conftest.er1 >conftest.err
21043 rm -f conftest.er1
21044 cat conftest.err >&5
21045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046 (exit $ac_status); } &&
21047 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21049 (eval $ac_try) 2>&5
21050 ac_status=$?
21051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21052 (exit $ac_status); }; } &&
21053 { ac_try='test -s conftest.$ac_objext'
21054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21055 (eval $ac_try) 2>&5
21056 ac_status=$?
21057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21058 (exit $ac_status); }; }; then
21059 ac_header_compiler=yes
21060 else
21061 echo "$as_me: failed program was:" >&5
21062 sed 's/^/| /' conftest.$ac_ext >&5
21064 ac_header_compiler=no
21066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21067 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21068 echo "${ECHO_T}$ac_header_compiler" >&6
21070 # Is the header present?
21071 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21072 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21073 cat >conftest.$ac_ext <<_ACEOF
21074 /* confdefs.h. */
21075 _ACEOF
21076 cat confdefs.h >>conftest.$ac_ext
21077 cat >>conftest.$ac_ext <<_ACEOF
21078 /* end confdefs.h. */
21079 #include <$ac_header>
21080 _ACEOF
21081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21083 ac_status=$?
21084 grep -v '^ *+' conftest.er1 >conftest.err
21085 rm -f conftest.er1
21086 cat conftest.err >&5
21087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088 (exit $ac_status); } >/dev/null; then
21089 if test -s conftest.err; then
21090 ac_cpp_err=$ac_cxx_preproc_warn_flag
21091 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
21092 else
21093 ac_cpp_err=
21095 else
21096 ac_cpp_err=yes
21098 if test -z "$ac_cpp_err"; then
21099 ac_header_preproc=yes
21100 else
21101 echo "$as_me: failed program was:" >&5
21102 sed 's/^/| /' conftest.$ac_ext >&5
21104 ac_header_preproc=no
21106 rm -f conftest.err conftest.$ac_ext
21107 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21108 echo "${ECHO_T}$ac_header_preproc" >&6
21110 # So? What about this header?
21111 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21112 yes:no: )
21113 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21114 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21115 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21116 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21117 ac_header_preproc=yes
21119 no:yes:* )
21120 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21121 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21122 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21123 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21124 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21125 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21126 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21127 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21128 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21129 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21130 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21131 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21133 cat <<\_ASBOX
21134 ## ------------------------------------------------ ##
21135 ## Report this to barry-devel@lists.sourceforge.net ##
21136 ## ------------------------------------------------ ##
21137 _ASBOX
21139 sed "s/^/$as_me: WARNING: /" >&2
21141 esac
21142 echo "$as_me:$LINENO: checking for $ac_header" >&5
21143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21145 echo $ECHO_N "(cached) $ECHO_C" >&6
21146 else
21147 eval "$as_ac_Header=\$ac_header_preproc"
21149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21150 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21153 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21154 cat >>confdefs.h <<_ACEOF
21155 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21156 _ACEOF
21160 done
21162 echo "$as_me:$LINENO: checking types of arguments for select" >&5
21163 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
21164 if test "${ac_cv_func_select_args+set}" = set; then
21165 echo $ECHO_N "(cached) $ECHO_C" >&6
21166 else
21167 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
21168 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
21169 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
21170 cat >conftest.$ac_ext <<_ACEOF
21171 /* confdefs.h. */
21172 _ACEOF
21173 cat confdefs.h >>conftest.$ac_ext
21174 cat >>conftest.$ac_ext <<_ACEOF
21175 /* end confdefs.h. */
21176 $ac_includes_default
21177 #if HAVE_SYS_SELECT_H
21178 # include <sys/select.h>
21179 #endif
21180 #if HAVE_SYS_SOCKET_H
21181 # include <sys/socket.h>
21182 #endif
21185 main ()
21187 extern int select ($ac_arg1,
21188 $ac_arg234, $ac_arg234, $ac_arg234,
21189 $ac_arg5);
21191 return 0;
21193 _ACEOF
21194 rm -f conftest.$ac_objext
21195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21196 (eval $ac_compile) 2>conftest.er1
21197 ac_status=$?
21198 grep -v '^ *+' conftest.er1 >conftest.err
21199 rm -f conftest.er1
21200 cat conftest.err >&5
21201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202 (exit $ac_status); } &&
21203 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21205 (eval $ac_try) 2>&5
21206 ac_status=$?
21207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21208 (exit $ac_status); }; } &&
21209 { ac_try='test -s conftest.$ac_objext'
21210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21211 (eval $ac_try) 2>&5
21212 ac_status=$?
21213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214 (exit $ac_status); }; }; then
21215 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
21216 else
21217 echo "$as_me: failed program was:" >&5
21218 sed 's/^/| /' conftest.$ac_ext >&5
21221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21222 done
21223 done
21224 done
21225 # Provide a safe default value.
21226 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
21229 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
21230 echo "${ECHO_T}$ac_cv_func_select_args" >&6
21231 ac_save_IFS=$IFS; IFS=','
21232 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
21233 IFS=$ac_save_IFS
21234 shift
21236 cat >>confdefs.h <<_ACEOF
21237 #define SELECT_TYPE_ARG1 $1
21238 _ACEOF
21241 cat >>confdefs.h <<_ACEOF
21242 #define SELECT_TYPE_ARG234 ($2)
21243 _ACEOF
21246 cat >>confdefs.h <<_ACEOF
21247 #define SELECT_TYPE_ARG5 ($3)
21248 _ACEOF
21250 rm -f conftest*
21252 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
21253 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
21254 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
21255 echo $ECHO_N "(cached) $ECHO_C" >&6
21256 else
21257 rm -f conftest.sym conftest.file
21258 echo >conftest.file
21259 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
21260 if test "$cross_compiling" = yes; then
21261 ac_cv_func_lstat_dereferences_slashed_symlink=no
21262 else
21263 cat >conftest.$ac_ext <<_ACEOF
21264 /* confdefs.h. */
21265 _ACEOF
21266 cat confdefs.h >>conftest.$ac_ext
21267 cat >>conftest.$ac_ext <<_ACEOF
21268 /* end confdefs.h. */
21269 $ac_includes_default
21271 main ()
21273 struct stat sbuf;
21274 /* Linux will dereference the symlink and fail.
21275 That is better in the sense that it means we will not
21276 have to compile and use the lstat wrapper. */
21277 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
21279 return 0;
21281 _ACEOF
21282 rm -f conftest$ac_exeext
21283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21284 (eval $ac_link) 2>&5
21285 ac_status=$?
21286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21287 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21289 (eval $ac_try) 2>&5
21290 ac_status=$?
21291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21292 (exit $ac_status); }; }; then
21293 ac_cv_func_lstat_dereferences_slashed_symlink=yes
21294 else
21295 echo "$as_me: program exited with status $ac_status" >&5
21296 echo "$as_me: failed program was:" >&5
21297 sed 's/^/| /' conftest.$ac_ext >&5
21299 ( exit $ac_status )
21300 ac_cv_func_lstat_dereferences_slashed_symlink=no
21302 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21304 else
21305 # If the `ln -s' command failed, then we probably don't even
21306 # have an lstat function.
21307 ac_cv_func_lstat_dereferences_slashed_symlink=no
21309 rm -f conftest.sym conftest.file
21312 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
21313 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
21315 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
21317 cat >>confdefs.h <<_ACEOF
21318 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
21319 _ACEOF
21322 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
21323 case $LIBOBJS in
21324 "lstat.$ac_objext" | \
21325 *" lstat.$ac_objext" | \
21326 "lstat.$ac_objext "* | \
21327 *" lstat.$ac_objext "* ) ;;
21328 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
21329 esac
21333 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
21334 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
21335 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
21336 echo $ECHO_N "(cached) $ECHO_C" >&6
21337 else
21338 if test "$cross_compiling" = yes; then
21339 ac_cv_func_stat_empty_string_bug=yes
21340 else
21341 cat >conftest.$ac_ext <<_ACEOF
21342 /* confdefs.h. */
21343 _ACEOF
21344 cat confdefs.h >>conftest.$ac_ext
21345 cat >>conftest.$ac_ext <<_ACEOF
21346 /* end confdefs.h. */
21347 $ac_includes_default
21349 main ()
21351 struct stat sbuf;
21352 exit (stat ("", &sbuf) ? 1 : 0);
21354 return 0;
21356 _ACEOF
21357 rm -f conftest$ac_exeext
21358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21359 (eval $ac_link) 2>&5
21360 ac_status=$?
21361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21362 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21364 (eval $ac_try) 2>&5
21365 ac_status=$?
21366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21367 (exit $ac_status); }; }; then
21368 ac_cv_func_stat_empty_string_bug=yes
21369 else
21370 echo "$as_me: program exited with status $ac_status" >&5
21371 echo "$as_me: failed program was:" >&5
21372 sed 's/^/| /' conftest.$ac_ext >&5
21374 ( exit $ac_status )
21375 ac_cv_func_stat_empty_string_bug=no
21377 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21380 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
21381 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
21382 if test $ac_cv_func_stat_empty_string_bug = yes; then
21383 case $LIBOBJS in
21384 "stat.$ac_objext" | \
21385 *" stat.$ac_objext" | \
21386 "stat.$ac_objext "* | \
21387 *" stat.$ac_objext "* ) ;;
21388 *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
21389 esac
21392 cat >>confdefs.h <<_ACEOF
21393 #define HAVE_STAT_EMPTY_STRING_BUG 1
21394 _ACEOF
21407 for ac_func in bzero gettimeofday memset select strcasecmp strchr strerror strtol strtoul
21409 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21410 echo "$as_me:$LINENO: checking for $ac_func" >&5
21411 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21412 if eval "test \"\${$as_ac_var+set}\" = set"; then
21413 echo $ECHO_N "(cached) $ECHO_C" >&6
21414 else
21415 cat >conftest.$ac_ext <<_ACEOF
21416 /* confdefs.h. */
21417 _ACEOF
21418 cat confdefs.h >>conftest.$ac_ext
21419 cat >>conftest.$ac_ext <<_ACEOF
21420 /* end confdefs.h. */
21421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21423 #define $ac_func innocuous_$ac_func
21425 /* System header to define __stub macros and hopefully few prototypes,
21426 which can conflict with char $ac_func (); below.
21427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21428 <limits.h> exists even on freestanding compilers. */
21430 #ifdef __STDC__
21431 # include <limits.h>
21432 #else
21433 # include <assert.h>
21434 #endif
21436 #undef $ac_func
21438 /* Override any gcc2 internal prototype to avoid an error. */
21439 #ifdef __cplusplus
21440 extern "C"
21442 #endif
21443 /* We use char because int might match the return type of a gcc2
21444 builtin and then its argument prototype would still apply. */
21445 char $ac_func ();
21446 /* The GNU C library defines this for functions which it implements
21447 to always fail with ENOSYS. Some functions are actually named
21448 something starting with __ and the normal name is an alias. */
21449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21450 choke me
21451 #else
21452 char (*f) () = $ac_func;
21453 #endif
21454 #ifdef __cplusplus
21456 #endif
21459 main ()
21461 return f != $ac_func;
21463 return 0;
21465 _ACEOF
21466 rm -f conftest.$ac_objext conftest$ac_exeext
21467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21468 (eval $ac_link) 2>conftest.er1
21469 ac_status=$?
21470 grep -v '^ *+' conftest.er1 >conftest.err
21471 rm -f conftest.er1
21472 cat conftest.err >&5
21473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474 (exit $ac_status); } &&
21475 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21477 (eval $ac_try) 2>&5
21478 ac_status=$?
21479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21480 (exit $ac_status); }; } &&
21481 { ac_try='test -s conftest$ac_exeext'
21482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21483 (eval $ac_try) 2>&5
21484 ac_status=$?
21485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21486 (exit $ac_status); }; }; then
21487 eval "$as_ac_var=yes"
21488 else
21489 echo "$as_me: failed program was:" >&5
21490 sed 's/^/| /' conftest.$ac_ext >&5
21492 eval "$as_ac_var=no"
21494 rm -f conftest.err conftest.$ac_objext \
21495 conftest$ac_exeext conftest.$ac_ext
21497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21498 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21499 if test `eval echo '${'$as_ac_var'}'` = yes; then
21500 cat >>confdefs.h <<_ACEOF
21501 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21502 _ACEOF
21505 done
21508 ac_config_files="$ac_config_files Makefile src/Makefile tools/Makefile examples/Makefile man/Makefile"
21510 cat >confcache <<\_ACEOF
21511 # This file is a shell script that caches the results of configure
21512 # tests run on this system so they can be shared between configure
21513 # scripts and configure runs, see configure's option --config-cache.
21514 # It is not useful on other systems. If it contains results you don't
21515 # want to keep, you may remove or edit it.
21517 # config.status only pays attention to the cache file if you give it
21518 # the --recheck option to rerun configure.
21520 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21521 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21522 # following values.
21524 _ACEOF
21526 # The following way of writing the cache mishandles newlines in values,
21527 # but we know of no workaround that is simple, portable, and efficient.
21528 # So, don't put newlines in cache variables' values.
21529 # Ultrix sh set writes to stderr and can't be redirected directly,
21530 # and sets the high bit in the cache file unless we assign to the vars.
21532 (set) 2>&1 |
21533 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21534 *ac_space=\ *)
21535 # `set' does not quote correctly, so add quotes (double-quote
21536 # substitution turns \\\\ into \\, and sed turns \\ into \).
21537 sed -n \
21538 "s/'/'\\\\''/g;
21539 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21542 # `set' quotes correctly as required by POSIX, so do not add quotes.
21543 sed -n \
21544 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21546 esac;
21548 sed '
21549 t clear
21550 : clear
21551 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21552 t end
21553 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21554 : end' >>confcache
21555 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21556 if test -w $cache_file; then
21557 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21558 cat confcache >$cache_file
21559 else
21560 echo "not updating unwritable cache $cache_file"
21563 rm -f confcache
21565 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21566 # Let make expand exec_prefix.
21567 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21569 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21570 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21571 # trailing colons and then remove the whole line if VPATH becomes empty
21572 # (actually we leave an empty line to preserve line numbers).
21573 if test "x$srcdir" = x.; then
21574 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21575 s/:*\$(srcdir):*/:/;
21576 s/:*\${srcdir}:*/:/;
21577 s/:*@srcdir@:*/:/;
21578 s/^\([^=]*=[ ]*\):*/\1/;
21579 s/:*$//;
21580 s/^[^=]*=[ ]*$//;
21584 DEFS=-DHAVE_CONFIG_H
21586 ac_libobjs=
21587 ac_ltlibobjs=
21588 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21589 # 1. Remove the extension, and $U if already installed.
21590 ac_i=`echo "$ac_i" |
21591 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21592 # 2. Add them.
21593 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21594 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21595 done
21596 LIBOBJS=$ac_libobjs
21598 LTLIBOBJS=$ac_ltlibobjs
21601 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21602 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21603 Usually this means the macro was only invoked conditionally." >&5
21604 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21605 Usually this means the macro was only invoked conditionally." >&2;}
21606 { (exit 1); exit 1; }; }
21608 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21609 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21610 Usually this means the macro was only invoked conditionally." >&5
21611 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21612 Usually this means the macro was only invoked conditionally." >&2;}
21613 { (exit 1); exit 1; }; }
21615 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21616 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21617 Usually this means the macro was only invoked conditionally." >&5
21618 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21619 Usually this means the macro was only invoked conditionally." >&2;}
21620 { (exit 1); exit 1; }; }
21622 if test -z "${WITH_BOOST_TRUE}" && test -z "${WITH_BOOST_FALSE}"; then
21623 { { echo "$as_me:$LINENO: error: conditional \"WITH_BOOST\" was never defined.
21624 Usually this means the macro was only invoked conditionally." >&5
21625 echo "$as_me: error: conditional \"WITH_BOOST\" was never defined.
21626 Usually this means the macro was only invoked conditionally." >&2;}
21627 { (exit 1); exit 1; }; }
21630 : ${CONFIG_STATUS=./config.status}
21631 ac_clean_files_save=$ac_clean_files
21632 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21633 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21634 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21635 cat >$CONFIG_STATUS <<_ACEOF
21636 #! $SHELL
21637 # Generated by $as_me.
21638 # Run this file to recreate the current configuration.
21639 # Compiler output produced by configure, useful for debugging
21640 # configure, is in config.log if it exists.
21642 debug=false
21643 ac_cs_recheck=false
21644 ac_cs_silent=false
21645 SHELL=\${CONFIG_SHELL-$SHELL}
21646 _ACEOF
21648 cat >>$CONFIG_STATUS <<\_ACEOF
21649 ## --------------------- ##
21650 ## M4sh Initialization. ##
21651 ## --------------------- ##
21653 # Be Bourne compatible
21654 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21655 emulate sh
21656 NULLCMD=:
21657 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21658 # is contrary to our usage. Disable this feature.
21659 alias -g '${1+"$@"}'='"$@"'
21660 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21661 set -o posix
21663 DUALCASE=1; export DUALCASE # for MKS sh
21665 # Support unset when possible.
21666 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21667 as_unset=unset
21668 else
21669 as_unset=false
21673 # Work around bugs in pre-3.0 UWIN ksh.
21674 $as_unset ENV MAIL MAILPATH
21675 PS1='$ '
21676 PS2='> '
21677 PS4='+ '
21679 # NLS nuisances.
21680 for as_var in \
21681 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21682 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21683 LC_TELEPHONE LC_TIME
21685 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21686 eval $as_var=C; export $as_var
21687 else
21688 $as_unset $as_var
21690 done
21692 # Required to use basename.
21693 if expr a : '\(a\)' >/dev/null 2>&1; then
21694 as_expr=expr
21695 else
21696 as_expr=false
21699 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21700 as_basename=basename
21701 else
21702 as_basename=false
21706 # Name of the executable.
21707 as_me=`$as_basename "$0" ||
21708 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21709 X"$0" : 'X\(//\)$' \| \
21710 X"$0" : 'X\(/\)$' \| \
21711 . : '\(.\)' 2>/dev/null ||
21712 echo X/"$0" |
21713 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21714 /^X\/\(\/\/\)$/{ s//\1/; q; }
21715 /^X\/\(\/\).*/{ s//\1/; q; }
21716 s/.*/./; q'`
21719 # PATH needs CR, and LINENO needs CR and PATH.
21720 # Avoid depending upon Character Ranges.
21721 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21722 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21723 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21724 as_cr_digits='0123456789'
21725 as_cr_alnum=$as_cr_Letters$as_cr_digits
21727 # The user is always right.
21728 if test "${PATH_SEPARATOR+set}" != set; then
21729 echo "#! /bin/sh" >conf$$.sh
21730 echo "exit 0" >>conf$$.sh
21731 chmod +x conf$$.sh
21732 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21733 PATH_SEPARATOR=';'
21734 else
21735 PATH_SEPARATOR=:
21737 rm -f conf$$.sh
21741 as_lineno_1=$LINENO
21742 as_lineno_2=$LINENO
21743 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21744 test "x$as_lineno_1" != "x$as_lineno_2" &&
21745 test "x$as_lineno_3" = "x$as_lineno_2" || {
21746 # Find who we are. Look in the path if we contain no path at all
21747 # relative or not.
21748 case $0 in
21749 *[\\/]* ) as_myself=$0 ;;
21750 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21751 for as_dir in $PATH
21753 IFS=$as_save_IFS
21754 test -z "$as_dir" && as_dir=.
21755 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21756 done
21759 esac
21760 # We did not find ourselves, most probably we were run as `sh COMMAND'
21761 # in which case we are not to be found in the path.
21762 if test "x$as_myself" = x; then
21763 as_myself=$0
21765 if test ! -f "$as_myself"; then
21766 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21767 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21768 { (exit 1); exit 1; }; }
21770 case $CONFIG_SHELL in
21772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21773 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21775 IFS=$as_save_IFS
21776 test -z "$as_dir" && as_dir=.
21777 for as_base in sh bash ksh sh5; do
21778 case $as_dir in
21780 if ("$as_dir/$as_base" -c '
21781 as_lineno_1=$LINENO
21782 as_lineno_2=$LINENO
21783 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21784 test "x$as_lineno_1" != "x$as_lineno_2" &&
21785 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21786 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21787 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21788 CONFIG_SHELL=$as_dir/$as_base
21789 export CONFIG_SHELL
21790 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21791 fi;;
21792 esac
21793 done
21794 done
21796 esac
21798 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21799 # uniformly replaced by the line number. The first 'sed' inserts a
21800 # line-number line before each line; the second 'sed' does the real
21801 # work. The second script uses 'N' to pair each line-number line
21802 # with the numbered line, and appends trailing '-' during
21803 # substitution so that $LINENO is not a special case at line end.
21804 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21805 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21806 sed '=' <$as_myself |
21807 sed '
21809 s,$,-,
21810 : loop
21811 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21812 t loop
21813 s,-$,,
21814 s,^['$as_cr_digits']*\n,,
21815 ' >$as_me.lineno &&
21816 chmod +x $as_me.lineno ||
21817 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21818 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21819 { (exit 1); exit 1; }; }
21821 # Don't try to exec as it changes $[0], causing all sort of problems
21822 # (the dirname of $[0] is not the place where we might find the
21823 # original and so on. Autoconf is especially sensible to this).
21824 . ./$as_me.lineno
21825 # Exit status is that of the last command.
21826 exit
21830 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21831 *c*,-n*) ECHO_N= ECHO_C='
21832 ' ECHO_T=' ' ;;
21833 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21834 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21835 esac
21837 if expr a : '\(a\)' >/dev/null 2>&1; then
21838 as_expr=expr
21839 else
21840 as_expr=false
21843 rm -f conf$$ conf$$.exe conf$$.file
21844 echo >conf$$.file
21845 if ln -s conf$$.file conf$$ 2>/dev/null; then
21846 # We could just check for DJGPP; but this test a) works b) is more generic
21847 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21848 if test -f conf$$.exe; then
21849 # Don't use ln at all; we don't have any links
21850 as_ln_s='cp -p'
21851 else
21852 as_ln_s='ln -s'
21854 elif ln conf$$.file conf$$ 2>/dev/null; then
21855 as_ln_s=ln
21856 else
21857 as_ln_s='cp -p'
21859 rm -f conf$$ conf$$.exe conf$$.file
21861 if mkdir -p . 2>/dev/null; then
21862 as_mkdir_p=:
21863 else
21864 test -d ./-p && rmdir ./-p
21865 as_mkdir_p=false
21868 as_executable_p="test -f"
21870 # Sed expression to map a string onto a valid CPP name.
21871 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21873 # Sed expression to map a string onto a valid variable name.
21874 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21877 # IFS
21878 # We need space, tab and new line, in precisely that order.
21879 as_nl='
21881 IFS=" $as_nl"
21883 # CDPATH.
21884 $as_unset CDPATH
21886 exec 6>&1
21888 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21889 # report actual input values of CONFIG_FILES etc. instead of their
21890 # values after options handling. Logging --version etc. is OK.
21891 exec 5>>config.log
21893 echo
21894 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21895 ## Running $as_me. ##
21896 _ASBOX
21897 } >&5
21898 cat >&5 <<_CSEOF
21900 This file was extended by barry $as_me 0.4, which was
21901 generated by GNU Autoconf 2.59. Invocation command line was
21903 CONFIG_FILES = $CONFIG_FILES
21904 CONFIG_HEADERS = $CONFIG_HEADERS
21905 CONFIG_LINKS = $CONFIG_LINKS
21906 CONFIG_COMMANDS = $CONFIG_COMMANDS
21907 $ $0 $@
21909 _CSEOF
21910 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21911 echo >&5
21912 _ACEOF
21914 # Files that config.status was made for.
21915 if test -n "$ac_config_files"; then
21916 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21919 if test -n "$ac_config_headers"; then
21920 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21923 if test -n "$ac_config_links"; then
21924 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21927 if test -n "$ac_config_commands"; then
21928 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21931 cat >>$CONFIG_STATUS <<\_ACEOF
21933 ac_cs_usage="\
21934 \`$as_me' instantiates files from templates according to the
21935 current configuration.
21937 Usage: $0 [OPTIONS] [FILE]...
21939 -h, --help print this help, then exit
21940 -V, --version print version number, then exit
21941 -q, --quiet do not print progress messages
21942 -d, --debug don't remove temporary files
21943 --recheck update $as_me by reconfiguring in the same conditions
21944 --file=FILE[:TEMPLATE]
21945 instantiate the configuration file FILE
21946 --header=FILE[:TEMPLATE]
21947 instantiate the configuration header FILE
21949 Configuration files:
21950 $config_files
21952 Configuration headers:
21953 $config_headers
21955 Configuration commands:
21956 $config_commands
21958 Report bugs to <bug-autoconf@gnu.org>."
21959 _ACEOF
21961 cat >>$CONFIG_STATUS <<_ACEOF
21962 ac_cs_version="\\
21963 barry config.status 0.4
21964 configured by $0, generated by GNU Autoconf 2.59,
21965 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21967 Copyright (C) 2003 Free Software Foundation, Inc.
21968 This config.status script is free software; the Free Software Foundation
21969 gives unlimited permission to copy, distribute and modify it."
21970 srcdir=$srcdir
21971 INSTALL="$INSTALL"
21972 _ACEOF
21974 cat >>$CONFIG_STATUS <<\_ACEOF
21975 # If no file are specified by the user, then we need to provide default
21976 # value. By we need to know if files were specified by the user.
21977 ac_need_defaults=:
21978 while test $# != 0
21980 case $1 in
21981 --*=*)
21982 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21983 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21984 ac_shift=:
21987 ac_option=$1
21988 ac_optarg=$2
21989 ac_shift=shift
21991 *) # This is not an option, so the user has probably given explicit
21992 # arguments.
21993 ac_option=$1
21994 ac_need_defaults=false;;
21995 esac
21997 case $ac_option in
21998 # Handling of the options.
21999 _ACEOF
22000 cat >>$CONFIG_STATUS <<\_ACEOF
22001 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22002 ac_cs_recheck=: ;;
22003 --version | --vers* | -V )
22004 echo "$ac_cs_version"; exit 0 ;;
22005 --he | --h)
22006 # Conflict between --help and --header
22007 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22008 Try \`$0 --help' for more information." >&5
22009 echo "$as_me: error: ambiguous option: $1
22010 Try \`$0 --help' for more information." >&2;}
22011 { (exit 1); exit 1; }; };;
22012 --help | --hel | -h )
22013 echo "$ac_cs_usage"; exit 0 ;;
22014 --debug | --d* | -d )
22015 debug=: ;;
22016 --file | --fil | --fi | --f )
22017 $ac_shift
22018 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22019 ac_need_defaults=false;;
22020 --header | --heade | --head | --hea )
22021 $ac_shift
22022 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22023 ac_need_defaults=false;;
22024 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22025 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22026 ac_cs_silent=: ;;
22028 # This is an error.
22029 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22030 Try \`$0 --help' for more information." >&5
22031 echo "$as_me: error: unrecognized option: $1
22032 Try \`$0 --help' for more information." >&2;}
22033 { (exit 1); exit 1; }; } ;;
22035 *) ac_config_targets="$ac_config_targets $1" ;;
22037 esac
22038 shift
22039 done
22041 ac_configure_extra_args=
22043 if $ac_cs_silent; then
22044 exec 6>/dev/null
22045 ac_configure_extra_args="$ac_configure_extra_args --silent"
22048 _ACEOF
22049 cat >>$CONFIG_STATUS <<_ACEOF
22050 if \$ac_cs_recheck; then
22051 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22052 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22055 _ACEOF
22057 cat >>$CONFIG_STATUS <<_ACEOF
22059 # INIT-COMMANDS section.
22062 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22064 _ACEOF
22068 cat >>$CONFIG_STATUS <<\_ACEOF
22069 for ac_config_target in $ac_config_targets
22071 case "$ac_config_target" in
22072 # Handling of arguments.
22073 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22074 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22075 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
22076 "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
22077 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
22078 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22079 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
22080 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22081 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22082 { (exit 1); exit 1; }; };;
22083 esac
22084 done
22086 # If the user did not use the arguments to specify the items to instantiate,
22087 # then the envvar interface is used. Set only those that are not.
22088 # We use the long form for the default assignment because of an extremely
22089 # bizarre bug on SunOS 4.1.3.
22090 if $ac_need_defaults; then
22091 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22092 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22093 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22096 # Have a temporary directory for convenience. Make it in the build tree
22097 # simply because there is no reason to put it here, and in addition,
22098 # creating and moving files from /tmp can sometimes cause problems.
22099 # Create a temporary directory, and hook for its removal unless debugging.
22100 $debug ||
22102 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22103 trap '{ (exit 1); exit 1; }' 1 2 13 15
22106 # Create a (secure) tmp directory for tmp files.
22109 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22110 test -n "$tmp" && test -d "$tmp"
22111 } ||
22113 tmp=./confstat$$-$RANDOM
22114 (umask 077 && mkdir $tmp)
22115 } ||
22117 echo "$me: cannot create a temporary directory in ." >&2
22118 { (exit 1); exit 1; }
22121 _ACEOF
22123 cat >>$CONFIG_STATUS <<_ACEOF
22126 # CONFIG_FILES section.
22129 # No need to generate the scripts if there are no CONFIG_FILES.
22130 # This happens for instance when ./config.status config.h
22131 if test -n "\$CONFIG_FILES"; then
22132 # Protect against being on the right side of a sed subst in config.status.
22133 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22134 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22135 s,@SHELL@,$SHELL,;t t
22136 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22137 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22138 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22139 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22140 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22141 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22142 s,@exec_prefix@,$exec_prefix,;t t
22143 s,@prefix@,$prefix,;t t
22144 s,@program_transform_name@,$program_transform_name,;t t
22145 s,@bindir@,$bindir,;t t
22146 s,@sbindir@,$sbindir,;t t
22147 s,@libexecdir@,$libexecdir,;t t
22148 s,@datadir@,$datadir,;t t
22149 s,@sysconfdir@,$sysconfdir,;t t
22150 s,@sharedstatedir@,$sharedstatedir,;t t
22151 s,@localstatedir@,$localstatedir,;t t
22152 s,@libdir@,$libdir,;t t
22153 s,@includedir@,$includedir,;t t
22154 s,@oldincludedir@,$oldincludedir,;t t
22155 s,@infodir@,$infodir,;t t
22156 s,@mandir@,$mandir,;t t
22157 s,@build_alias@,$build_alias,;t t
22158 s,@host_alias@,$host_alias,;t t
22159 s,@target_alias@,$target_alias,;t t
22160 s,@DEFS@,$DEFS,;t t
22161 s,@ECHO_C@,$ECHO_C,;t t
22162 s,@ECHO_N@,$ECHO_N,;t t
22163 s,@ECHO_T@,$ECHO_T,;t t
22164 s,@LIBS@,$LIBS,;t t
22165 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22166 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22167 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22168 s,@CYGPATH_W@,$CYGPATH_W,;t t
22169 s,@PACKAGE@,$PACKAGE,;t t
22170 s,@VERSION@,$VERSION,;t t
22171 s,@ACLOCAL@,$ACLOCAL,;t t
22172 s,@AUTOCONF@,$AUTOCONF,;t t
22173 s,@AUTOMAKE@,$AUTOMAKE,;t t
22174 s,@AUTOHEADER@,$AUTOHEADER,;t t
22175 s,@MAKEINFO@,$MAKEINFO,;t t
22176 s,@install_sh@,$install_sh,;t t
22177 s,@STRIP@,$STRIP,;t t
22178 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22179 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22180 s,@mkdir_p@,$mkdir_p,;t t
22181 s,@AWK@,$AWK,;t t
22182 s,@SET_MAKE@,$SET_MAKE,;t t
22183 s,@am__leading_dot@,$am__leading_dot,;t t
22184 s,@AMTAR@,$AMTAR,;t t
22185 s,@am__tar@,$am__tar,;t t
22186 s,@am__untar@,$am__untar,;t t
22187 s,@CC@,$CC,;t t
22188 s,@CFLAGS@,$CFLAGS,;t t
22189 s,@LDFLAGS@,$LDFLAGS,;t t
22190 s,@CPPFLAGS@,$CPPFLAGS,;t t
22191 s,@ac_ct_CC@,$ac_ct_CC,;t t
22192 s,@EXEEXT@,$EXEEXT,;t t
22193 s,@OBJEXT@,$OBJEXT,;t t
22194 s,@DEPDIR@,$DEPDIR,;t t
22195 s,@am__include@,$am__include,;t t
22196 s,@am__quote@,$am__quote,;t t
22197 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22198 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22199 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22200 s,@CCDEPMODE@,$CCDEPMODE,;t t
22201 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22202 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22203 s,@CXX@,$CXX,;t t
22204 s,@CXXFLAGS@,$CXXFLAGS,;t t
22205 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22206 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
22207 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
22208 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
22209 s,@build@,$build,;t t
22210 s,@build_cpu@,$build_cpu,;t t
22211 s,@build_vendor@,$build_vendor,;t t
22212 s,@build_os@,$build_os,;t t
22213 s,@host@,$host,;t t
22214 s,@host_cpu@,$host_cpu,;t t
22215 s,@host_vendor@,$host_vendor,;t t
22216 s,@host_os@,$host_os,;t t
22217 s,@EGREP@,$EGREP,;t t
22218 s,@LN_S@,$LN_S,;t t
22219 s,@ECHO@,$ECHO,;t t
22220 s,@AR@,$AR,;t t
22221 s,@ac_ct_AR@,$ac_ct_AR,;t t
22222 s,@RANLIB@,$RANLIB,;t t
22223 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22224 s,@CPP@,$CPP,;t t
22225 s,@CXXCPP@,$CXXCPP,;t t
22226 s,@F77@,$F77,;t t
22227 s,@FFLAGS@,$FFLAGS,;t t
22228 s,@ac_ct_F77@,$ac_ct_F77,;t t
22229 s,@LIBTOOL@,$LIBTOOL,;t t
22230 s,@LIBUSB_LIB_PATH@,$LIBUSB_LIB_PATH,;t t
22231 s,@LIBUSB_INC_PATH@,$LIBUSB_INC_PATH,;t t
22232 s,@BOOST_LIB_PATH@,$BOOST_LIB_PATH,;t t
22233 s,@BOOST_INC_PATH@,$BOOST_INC_PATH,;t t
22234 s,@WITH_BOOST_TRUE@,$WITH_BOOST_TRUE,;t t
22235 s,@WITH_BOOST_FALSE@,$WITH_BOOST_FALSE,;t t
22236 s,@LIBOBJS@,$LIBOBJS,;t t
22237 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22238 CEOF
22240 _ACEOF
22242 cat >>$CONFIG_STATUS <<\_ACEOF
22243 # Split the substitutions into bite-sized pieces for seds with
22244 # small command number limits, like on Digital OSF/1 and HP-UX.
22245 ac_max_sed_lines=48
22246 ac_sed_frag=1 # Number of current file.
22247 ac_beg=1 # First line for current file.
22248 ac_end=$ac_max_sed_lines # Line after last line for current file.
22249 ac_more_lines=:
22250 ac_sed_cmds=
22251 while $ac_more_lines; do
22252 if test $ac_beg -gt 1; then
22253 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22254 else
22255 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22257 if test ! -s $tmp/subs.frag; then
22258 ac_more_lines=false
22259 else
22260 # The purpose of the label and of the branching condition is to
22261 # speed up the sed processing (if there are no `@' at all, there
22262 # is no need to browse any of the substitutions).
22263 # These are the two extra sed commands mentioned above.
22264 (echo ':t
22265 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22266 if test -z "$ac_sed_cmds"; then
22267 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22268 else
22269 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22271 ac_sed_frag=`expr $ac_sed_frag + 1`
22272 ac_beg=$ac_end
22273 ac_end=`expr $ac_end + $ac_max_sed_lines`
22275 done
22276 if test -z "$ac_sed_cmds"; then
22277 ac_sed_cmds=cat
22279 fi # test -n "$CONFIG_FILES"
22281 _ACEOF
22282 cat >>$CONFIG_STATUS <<\_ACEOF
22283 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22284 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22285 case $ac_file in
22286 - | *:- | *:-:* ) # input from stdin
22287 cat >$tmp/stdin
22288 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22289 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22290 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22291 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22292 * ) ac_file_in=$ac_file.in ;;
22293 esac
22295 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22296 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22297 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22298 X"$ac_file" : 'X\(//\)[^/]' \| \
22299 X"$ac_file" : 'X\(//\)$' \| \
22300 X"$ac_file" : 'X\(/\)' \| \
22301 . : '\(.\)' 2>/dev/null ||
22302 echo X"$ac_file" |
22303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22304 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22305 /^X\(\/\/\)$/{ s//\1/; q; }
22306 /^X\(\/\).*/{ s//\1/; q; }
22307 s/.*/./; q'`
22308 { if $as_mkdir_p; then
22309 mkdir -p "$ac_dir"
22310 else
22311 as_dir="$ac_dir"
22312 as_dirs=
22313 while test ! -d "$as_dir"; do
22314 as_dirs="$as_dir $as_dirs"
22315 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22316 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22317 X"$as_dir" : 'X\(//\)[^/]' \| \
22318 X"$as_dir" : 'X\(//\)$' \| \
22319 X"$as_dir" : 'X\(/\)' \| \
22320 . : '\(.\)' 2>/dev/null ||
22321 echo X"$as_dir" |
22322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22323 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22324 /^X\(\/\/\)$/{ s//\1/; q; }
22325 /^X\(\/\).*/{ s//\1/; q; }
22326 s/.*/./; q'`
22327 done
22328 test ! -n "$as_dirs" || mkdir $as_dirs
22329 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22330 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22331 { (exit 1); exit 1; }; }; }
22333 ac_builddir=.
22335 if test "$ac_dir" != .; then
22336 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22337 # A "../" for each directory in $ac_dir_suffix.
22338 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22339 else
22340 ac_dir_suffix= ac_top_builddir=
22343 case $srcdir in
22344 .) # No --srcdir option. We are building in place.
22345 ac_srcdir=.
22346 if test -z "$ac_top_builddir"; then
22347 ac_top_srcdir=.
22348 else
22349 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22350 fi ;;
22351 [\\/]* | ?:[\\/]* ) # Absolute path.
22352 ac_srcdir=$srcdir$ac_dir_suffix;
22353 ac_top_srcdir=$srcdir ;;
22354 *) # Relative path.
22355 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22356 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22357 esac
22359 # Do not use `cd foo && pwd` to compute absolute paths, because
22360 # the directories may not exist.
22361 case `pwd` in
22362 .) ac_abs_builddir="$ac_dir";;
22364 case "$ac_dir" in
22365 .) ac_abs_builddir=`pwd`;;
22366 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22367 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22368 esac;;
22369 esac
22370 case $ac_abs_builddir in
22371 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22373 case ${ac_top_builddir}. in
22374 .) ac_abs_top_builddir=$ac_abs_builddir;;
22375 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22376 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22377 esac;;
22378 esac
22379 case $ac_abs_builddir in
22380 .) ac_abs_srcdir=$ac_srcdir;;
22382 case $ac_srcdir in
22383 .) ac_abs_srcdir=$ac_abs_builddir;;
22384 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22385 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22386 esac;;
22387 esac
22388 case $ac_abs_builddir in
22389 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22391 case $ac_top_srcdir in
22392 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22393 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22394 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22395 esac;;
22396 esac
22399 case $INSTALL in
22400 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22401 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22402 esac
22404 # Let's still pretend it is `configure' which instantiates (i.e., don't
22405 # use $as_me), people would be surprised to read:
22406 # /* config.h. Generated by config.status. */
22407 if test x"$ac_file" = x-; then
22408 configure_input=
22409 else
22410 configure_input="$ac_file. "
22412 configure_input=$configure_input"Generated from `echo $ac_file_in |
22413 sed 's,.*/,,'` by configure."
22415 # First look for the input files in the build tree, otherwise in the
22416 # src tree.
22417 ac_file_inputs=`IFS=:
22418 for f in $ac_file_in; do
22419 case $f in
22420 -) echo $tmp/stdin ;;
22421 [\\/$]*)
22422 # Absolute (can't be DOS-style, as IFS=:)
22423 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22424 echo "$as_me: error: cannot find input file: $f" >&2;}
22425 { (exit 1); exit 1; }; }
22426 echo "$f";;
22427 *) # Relative
22428 if test -f "$f"; then
22429 # Build tree
22430 echo "$f"
22431 elif test -f "$srcdir/$f"; then
22432 # Source tree
22433 echo "$srcdir/$f"
22434 else
22435 # /dev/null tree
22436 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22437 echo "$as_me: error: cannot find input file: $f" >&2;}
22438 { (exit 1); exit 1; }; }
22439 fi;;
22440 esac
22441 done` || { (exit 1); exit 1; }
22443 if test x"$ac_file" != x-; then
22444 { echo "$as_me:$LINENO: creating $ac_file" >&5
22445 echo "$as_me: creating $ac_file" >&6;}
22446 rm -f "$ac_file"
22448 _ACEOF
22449 cat >>$CONFIG_STATUS <<_ACEOF
22450 sed "$ac_vpsub
22451 $extrasub
22452 _ACEOF
22453 cat >>$CONFIG_STATUS <<\_ACEOF
22455 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22456 s,@configure_input@,$configure_input,;t t
22457 s,@srcdir@,$ac_srcdir,;t t
22458 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22459 s,@top_srcdir@,$ac_top_srcdir,;t t
22460 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22461 s,@builddir@,$ac_builddir,;t t
22462 s,@abs_builddir@,$ac_abs_builddir,;t t
22463 s,@top_builddir@,$ac_top_builddir,;t t
22464 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22465 s,@INSTALL@,$ac_INSTALL,;t t
22466 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22467 rm -f $tmp/stdin
22468 if test x"$ac_file" != x-; then
22469 mv $tmp/out $ac_file
22470 else
22471 cat $tmp/out
22472 rm -f $tmp/out
22475 done
22476 _ACEOF
22477 cat >>$CONFIG_STATUS <<\_ACEOF
22480 # CONFIG_HEADER section.
22483 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22484 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22486 # ac_d sets the value in "#define NAME VALUE" lines.
22487 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22488 ac_dB='[ ].*$,\1#\2'
22489 ac_dC=' '
22490 ac_dD=',;t'
22491 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22492 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22493 ac_uB='$,\1#\2define\3'
22494 ac_uC=' '
22495 ac_uD=',;t'
22497 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22498 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22499 case $ac_file in
22500 - | *:- | *:-:* ) # input from stdin
22501 cat >$tmp/stdin
22502 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22503 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22504 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22505 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22506 * ) ac_file_in=$ac_file.in ;;
22507 esac
22509 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22510 echo "$as_me: creating $ac_file" >&6;}
22512 # First look for the input files in the build tree, otherwise in the
22513 # src tree.
22514 ac_file_inputs=`IFS=:
22515 for f in $ac_file_in; do
22516 case $f in
22517 -) echo $tmp/stdin ;;
22518 [\\/$]*)
22519 # Absolute (can't be DOS-style, as IFS=:)
22520 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22521 echo "$as_me: error: cannot find input file: $f" >&2;}
22522 { (exit 1); exit 1; }; }
22523 # Do quote $f, to prevent DOS paths from being IFS'd.
22524 echo "$f";;
22525 *) # Relative
22526 if test -f "$f"; then
22527 # Build tree
22528 echo "$f"
22529 elif test -f "$srcdir/$f"; then
22530 # Source tree
22531 echo "$srcdir/$f"
22532 else
22533 # /dev/null tree
22534 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22535 echo "$as_me: error: cannot find input file: $f" >&2;}
22536 { (exit 1); exit 1; }; }
22537 fi;;
22538 esac
22539 done` || { (exit 1); exit 1; }
22540 # Remove the trailing spaces.
22541 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22543 _ACEOF
22545 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22546 # `conftest.undefs', that substitutes the proper values into
22547 # config.h.in to produce config.h. The first handles `#define'
22548 # templates, and the second `#undef' templates.
22549 # And first: Protect against being on the right side of a sed subst in
22550 # config.status. Protect against being in an unquoted here document
22551 # in config.status.
22552 rm -f conftest.defines conftest.undefs
22553 # Using a here document instead of a string reduces the quoting nightmare.
22554 # Putting comments in sed scripts is not portable.
22556 # `end' is used to avoid that the second main sed command (meant for
22557 # 0-ary CPP macros) applies to n-ary macro definitions.
22558 # See the Autoconf documentation for `clear'.
22559 cat >confdef2sed.sed <<\_ACEOF
22560 s/[\\&,]/\\&/g
22561 s,[\\$`],\\&,g
22562 t clear
22563 : clear
22564 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22565 t end
22566 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22567 : end
22568 _ACEOF
22569 # If some macros were called several times there might be several times
22570 # the same #defines, which is useless. Nevertheless, we may not want to
22571 # sort them, since we want the *last* AC-DEFINE to be honored.
22572 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22573 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22574 rm -f confdef2sed.sed
22576 # This sed command replaces #undef with comments. This is necessary, for
22577 # example, in the case of _POSIX_SOURCE, which is predefined and required
22578 # on some systems where configure will not decide to define it.
22579 cat >>conftest.undefs <<\_ACEOF
22580 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22581 _ACEOF
22583 # Break up conftest.defines because some shells have a limit on the size
22584 # of here documents, and old seds have small limits too (100 cmds).
22585 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22586 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22587 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22588 echo ' :' >>$CONFIG_STATUS
22589 rm -f conftest.tail
22590 while grep . conftest.defines >/dev/null
22592 # Write a limited-size here document to $tmp/defines.sed.
22593 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22594 # Speed up: don't consider the non `#define' lines.
22595 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22596 # Work around the forget-to-reset-the-flag bug.
22597 echo 't clr' >>$CONFIG_STATUS
22598 echo ': clr' >>$CONFIG_STATUS
22599 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22600 echo 'CEOF
22601 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22602 rm -f $tmp/in
22603 mv $tmp/out $tmp/in
22604 ' >>$CONFIG_STATUS
22605 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22606 rm -f conftest.defines
22607 mv conftest.tail conftest.defines
22608 done
22609 rm -f conftest.defines
22610 echo ' fi # grep' >>$CONFIG_STATUS
22611 echo >>$CONFIG_STATUS
22613 # Break up conftest.undefs because some shells have a limit on the size
22614 # of here documents, and old seds have small limits too (100 cmds).
22615 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22616 rm -f conftest.tail
22617 while grep . conftest.undefs >/dev/null
22619 # Write a limited-size here document to $tmp/undefs.sed.
22620 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22621 # Speed up: don't consider the non `#undef'
22622 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22623 # Work around the forget-to-reset-the-flag bug.
22624 echo 't clr' >>$CONFIG_STATUS
22625 echo ': clr' >>$CONFIG_STATUS
22626 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22627 echo 'CEOF
22628 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22629 rm -f $tmp/in
22630 mv $tmp/out $tmp/in
22631 ' >>$CONFIG_STATUS
22632 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22633 rm -f conftest.undefs
22634 mv conftest.tail conftest.undefs
22635 done
22636 rm -f conftest.undefs
22638 cat >>$CONFIG_STATUS <<\_ACEOF
22639 # Let's still pretend it is `configure' which instantiates (i.e., don't
22640 # use $as_me), people would be surprised to read:
22641 # /* config.h. Generated by config.status. */
22642 if test x"$ac_file" = x-; then
22643 echo "/* Generated by configure. */" >$tmp/config.h
22644 else
22645 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22647 cat $tmp/in >>$tmp/config.h
22648 rm -f $tmp/in
22649 if test x"$ac_file" != x-; then
22650 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22651 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22652 echo "$as_me: $ac_file is unchanged" >&6;}
22653 else
22654 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22655 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22656 X"$ac_file" : 'X\(//\)[^/]' \| \
22657 X"$ac_file" : 'X\(//\)$' \| \
22658 X"$ac_file" : 'X\(/\)' \| \
22659 . : '\(.\)' 2>/dev/null ||
22660 echo X"$ac_file" |
22661 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22662 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22663 /^X\(\/\/\)$/{ s//\1/; q; }
22664 /^X\(\/\).*/{ s//\1/; q; }
22665 s/.*/./; q'`
22666 { if $as_mkdir_p; then
22667 mkdir -p "$ac_dir"
22668 else
22669 as_dir="$ac_dir"
22670 as_dirs=
22671 while test ! -d "$as_dir"; do
22672 as_dirs="$as_dir $as_dirs"
22673 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22674 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22675 X"$as_dir" : 'X\(//\)[^/]' \| \
22676 X"$as_dir" : 'X\(//\)$' \| \
22677 X"$as_dir" : 'X\(/\)' \| \
22678 . : '\(.\)' 2>/dev/null ||
22679 echo X"$as_dir" |
22680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22682 /^X\(\/\/\)$/{ s//\1/; q; }
22683 /^X\(\/\).*/{ s//\1/; q; }
22684 s/.*/./; q'`
22685 done
22686 test ! -n "$as_dirs" || mkdir $as_dirs
22687 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22688 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22689 { (exit 1); exit 1; }; }; }
22691 rm -f $ac_file
22692 mv $tmp/config.h $ac_file
22694 else
22695 cat $tmp/config.h
22696 rm -f $tmp/config.h
22698 # Compute $ac_file's index in $config_headers.
22699 _am_stamp_count=1
22700 for _am_header in $config_headers :; do
22701 case $_am_header in
22702 $ac_file | $ac_file:* )
22703 break ;;
22705 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22706 esac
22707 done
22708 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22709 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22710 X$ac_file : 'X\(//\)[^/]' \| \
22711 X$ac_file : 'X\(//\)$' \| \
22712 X$ac_file : 'X\(/\)' \| \
22713 . : '\(.\)' 2>/dev/null ||
22714 echo X$ac_file |
22715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22717 /^X\(\/\/\)$/{ s//\1/; q; }
22718 /^X\(\/\).*/{ s//\1/; q; }
22719 s/.*/./; q'`/stamp-h$_am_stamp_count
22720 done
22721 _ACEOF
22722 cat >>$CONFIG_STATUS <<\_ACEOF
22725 # CONFIG_COMMANDS section.
22727 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22728 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22729 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22730 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22731 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22732 X"$ac_dest" : 'X\(//\)[^/]' \| \
22733 X"$ac_dest" : 'X\(//\)$' \| \
22734 X"$ac_dest" : 'X\(/\)' \| \
22735 . : '\(.\)' 2>/dev/null ||
22736 echo X"$ac_dest" |
22737 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22738 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22739 /^X\(\/\/\)$/{ s//\1/; q; }
22740 /^X\(\/\).*/{ s//\1/; q; }
22741 s/.*/./; q'`
22742 { if $as_mkdir_p; then
22743 mkdir -p "$ac_dir"
22744 else
22745 as_dir="$ac_dir"
22746 as_dirs=
22747 while test ! -d "$as_dir"; do
22748 as_dirs="$as_dir $as_dirs"
22749 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22750 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22751 X"$as_dir" : 'X\(//\)[^/]' \| \
22752 X"$as_dir" : 'X\(//\)$' \| \
22753 X"$as_dir" : 'X\(/\)' \| \
22754 . : '\(.\)' 2>/dev/null ||
22755 echo X"$as_dir" |
22756 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22757 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22758 /^X\(\/\/\)$/{ s//\1/; q; }
22759 /^X\(\/\).*/{ s//\1/; q; }
22760 s/.*/./; q'`
22761 done
22762 test ! -n "$as_dirs" || mkdir $as_dirs
22763 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22764 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22765 { (exit 1); exit 1; }; }; }
22767 ac_builddir=.
22769 if test "$ac_dir" != .; then
22770 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22771 # A "../" for each directory in $ac_dir_suffix.
22772 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22773 else
22774 ac_dir_suffix= ac_top_builddir=
22777 case $srcdir in
22778 .) # No --srcdir option. We are building in place.
22779 ac_srcdir=.
22780 if test -z "$ac_top_builddir"; then
22781 ac_top_srcdir=.
22782 else
22783 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22784 fi ;;
22785 [\\/]* | ?:[\\/]* ) # Absolute path.
22786 ac_srcdir=$srcdir$ac_dir_suffix;
22787 ac_top_srcdir=$srcdir ;;
22788 *) # Relative path.
22789 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22790 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22791 esac
22793 # Do not use `cd foo && pwd` to compute absolute paths, because
22794 # the directories may not exist.
22795 case `pwd` in
22796 .) ac_abs_builddir="$ac_dir";;
22798 case "$ac_dir" in
22799 .) ac_abs_builddir=`pwd`;;
22800 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22801 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22802 esac;;
22803 esac
22804 case $ac_abs_builddir in
22805 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22807 case ${ac_top_builddir}. in
22808 .) ac_abs_top_builddir=$ac_abs_builddir;;
22809 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22810 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22811 esac;;
22812 esac
22813 case $ac_abs_builddir in
22814 .) ac_abs_srcdir=$ac_srcdir;;
22816 case $ac_srcdir in
22817 .) ac_abs_srcdir=$ac_abs_builddir;;
22818 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22819 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22820 esac;;
22821 esac
22822 case $ac_abs_builddir in
22823 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22825 case $ac_top_srcdir in
22826 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22827 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22828 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22829 esac;;
22830 esac
22833 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22834 echo "$as_me: executing $ac_dest commands" >&6;}
22835 case $ac_dest in
22836 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22837 # Strip MF so we end up with the name of the file.
22838 mf=`echo "$mf" | sed -e 's/:.*$//'`
22839 # Check whether this is an Automake generated Makefile or not.
22840 # We used to match only the files named `Makefile.in', but
22841 # some people rename them; so instead we look at the file content.
22842 # Grep'ing the first line is not enough: some people post-process
22843 # each Makefile.in and add a new line on top of each file to say so.
22844 # So let's grep whole file.
22845 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22846 dirpart=`(dirname "$mf") 2>/dev/null ||
22847 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22848 X"$mf" : 'X\(//\)[^/]' \| \
22849 X"$mf" : 'X\(//\)$' \| \
22850 X"$mf" : 'X\(/\)' \| \
22851 . : '\(.\)' 2>/dev/null ||
22852 echo X"$mf" |
22853 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22854 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22855 /^X\(\/\/\)$/{ s//\1/; q; }
22856 /^X\(\/\).*/{ s//\1/; q; }
22857 s/.*/./; q'`
22858 else
22859 continue
22861 # Extract the definition of DEPDIR, am__include, and am__quote
22862 # from the Makefile without running `make'.
22863 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22864 test -z "$DEPDIR" && continue
22865 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22866 test -z "am__include" && continue
22867 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22868 # When using ansi2knr, U may be empty or an underscore; expand it
22869 U=`sed -n 's/^U = //p' < "$mf"`
22870 # Find all dependency output files, they are included files with
22871 # $(DEPDIR) in their names. We invoke sed twice because it is the
22872 # simplest approach to changing $(DEPDIR) to its actual value in the
22873 # expansion.
22874 for file in `sed -n "
22875 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22876 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22877 # Make sure the directory exists.
22878 test -f "$dirpart/$file" && continue
22879 fdir=`(dirname "$file") 2>/dev/null ||
22880 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22881 X"$file" : 'X\(//\)[^/]' \| \
22882 X"$file" : 'X\(//\)$' \| \
22883 X"$file" : 'X\(/\)' \| \
22884 . : '\(.\)' 2>/dev/null ||
22885 echo X"$file" |
22886 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22887 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22888 /^X\(\/\/\)$/{ s//\1/; q; }
22889 /^X\(\/\).*/{ s//\1/; q; }
22890 s/.*/./; q'`
22891 { if $as_mkdir_p; then
22892 mkdir -p $dirpart/$fdir
22893 else
22894 as_dir=$dirpart/$fdir
22895 as_dirs=
22896 while test ! -d "$as_dir"; do
22897 as_dirs="$as_dir $as_dirs"
22898 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22899 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22900 X"$as_dir" : 'X\(//\)[^/]' \| \
22901 X"$as_dir" : 'X\(//\)$' \| \
22902 X"$as_dir" : 'X\(/\)' \| \
22903 . : '\(.\)' 2>/dev/null ||
22904 echo X"$as_dir" |
22905 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22906 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22907 /^X\(\/\/\)$/{ s//\1/; q; }
22908 /^X\(\/\).*/{ s//\1/; q; }
22909 s/.*/./; q'`
22910 done
22911 test ! -n "$as_dirs" || mkdir $as_dirs
22912 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22913 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22914 { (exit 1); exit 1; }; }; }
22916 # echo "creating $dirpart/$file"
22917 echo '# dummy' > "$dirpart/$file"
22918 done
22919 done
22921 esac
22922 done
22923 _ACEOF
22925 cat >>$CONFIG_STATUS <<\_ACEOF
22927 { (exit 0); exit 0; }
22928 _ACEOF
22929 chmod +x $CONFIG_STATUS
22930 ac_clean_files=$ac_clean_files_save
22933 # configure is writing to config.log, and then calls config.status.
22934 # config.status does its own redirection, appending to config.log.
22935 # Unfortunately, on DOS this fails, as config.log is still kept open
22936 # by configure, so config.status won't be able to write to it; its
22937 # output is simply discarded. So we exec the FD to /dev/null,
22938 # effectively closing config.log, so it can be properly (re)opened and
22939 # appended to by config.status. When coming back to configure, we
22940 # need to make the FD available again.
22941 if test "$no_create" != yes; then
22942 ac_cs_success=:
22943 ac_config_status_args=
22944 test "$silent" = yes &&
22945 ac_config_status_args="$ac_config_status_args --quiet"
22946 exec 5>/dev/null
22947 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22948 exec 5>>config.log
22949 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22950 # would make configure fail if this is the last instruction.
22951 $ac_cs_success || { (exit 1); exit 1; }