No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gettext / gettext-runtime / libasprintf / configure
blobb735eb1b8c039f6e2f3a464ea75a668e847d57f3
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
248 case X$ECHO in
249 X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
253 esac
255 echo=${ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $echo works!
265 else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<EOF
276 exit 0
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289 echo_test_string="`eval $cmd`" &&
290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291 then
292 break
294 done
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299 test "X$echo_testing_string" = "X$echo_test_string"; then
301 else
302 # The Solaris, AIX, and Digital Unix default echo programs unquote
303 # backslashes. This makes it impossible to quote backslashes using
304 # echo "$something" | sed 's/\\/\\\\/g'
306 # So, first we look for a working echo in the user's PATH.
308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309 for dir in $PATH /usr/ucb; do
310 IFS="$lt_save_ifs"
311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314 test "X$echo_testing_string" = "X$echo_test_string"; then
315 echo="$dir/echo"
316 break
318 done
319 IFS="$lt_save_ifs"
321 if test "X$echo" = Xecho; then
322 # We didn't find a better echo, so look for alternatives.
323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
326 # This shell has a builtin print -r that does the trick.
327 echo='print -r'
328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329 test "X$CONFIG_SHELL" != X/bin/ksh; then
330 # If we have ksh, try running configure again with it.
331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332 export ORIGINAL_CONFIG_SHELL
333 CONFIG_SHELL=/bin/ksh
334 export CONFIG_SHELL
335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336 else
337 # Try using printf.
338 echo='printf %s\n'
339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341 test "X$echo_testing_string" = "X$echo_test_string"; then
342 # Cool, printf works
344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345 test "X$echo_testing_string" = 'X\t' &&
346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349 export CONFIG_SHELL
350 SHELL="$CONFIG_SHELL"
351 export SHELL
352 echo="$CONFIG_SHELL $0 --fallback-echo"
353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 echo="$CONFIG_SHELL $0 --fallback-echo"
358 else
359 # maybe with a smaller string...
360 prev=:
362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364 then
365 break
367 prev="$cmd"
368 done
370 if test "$prev" != 'sed 50q "$0"'; then
371 echo_test_string=`eval $prev`
372 export echo_test_string
373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374 else
375 # Oops. We lost completely, so just stick with echo.
376 echo=echo
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
386 ECHO=$echo
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
394 tagnames=${tagnames+${tagnames},}CXX
396 tagnames=${tagnames+${tagnames},}F77
398 # Name of the host.
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403 exec 6>&1
406 # Initializations.
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
410 cross_compiling=no
411 subdirs=
412 MFLAGS=
413 MAKEFLAGS=
414 SHELL=${CONFIG_SHELL-/bin/sh}
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete. It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
421 # Identity of this package.
422 PACKAGE_NAME=
423 PACKAGE_TARNAME=
424 PACKAGE_VERSION=
425 PACKAGE_STRING=
426 PACKAGE_BUGREPORT=
428 ac_unique_file="vasprintf.c"
429 # Factoring default headers for most tests.
430 ac_includes_default="\
431 #include <stdio.h>
432 #if HAVE_SYS_TYPES_H
433 # include <sys/types.h>
434 #endif
435 #if HAVE_SYS_STAT_H
436 # include <sys/stat.h>
437 #endif
438 #if STDC_HEADERS
439 # include <stdlib.h>
440 # include <stddef.h>
441 #else
442 # if HAVE_STDLIB_H
443 # include <stdlib.h>
444 # endif
445 #endif
446 #if HAVE_STRING_H
447 # if !STDC_HEADERS && HAVE_MEMORY_H
448 # include <memory.h>
449 # endif
450 # include <string.h>
451 #endif
452 #if HAVE_STRINGS_H
453 # include <strings.h>
454 #endif
455 #if HAVE_INTTYPES_H
456 # include <inttypes.h>
457 #else
458 # if HAVE_STDINT_H
459 # include <stdint.h>
460 # endif
461 #endif
462 #if HAVE_UNISTD_H
463 # include <unistd.h>
464 #endif"
466 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 DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ALLOCA ALLOCA_H DVIPS TEXI2PDF PERL LIBOBJS LTLIBOBJS'
467 ac_subst_files=''
469 # Initialize some variables set by options.
470 ac_init_help=
471 ac_init_version=false
472 # The variables have the same names as the options, with
473 # dashes changed to underlines.
474 cache_file=/dev/null
475 exec_prefix=NONE
476 no_create=
477 no_recursion=
478 prefix=NONE
479 program_prefix=NONE
480 program_suffix=NONE
481 program_transform_name=s,x,x,
482 silent=
483 site=
484 srcdir=
485 verbose=
486 x_includes=NONE
487 x_libraries=NONE
489 # Installation directory options.
490 # These are left unexpanded so users can "make install exec_prefix=/foo"
491 # and all the variables that are supposed to be based on exec_prefix
492 # by default will actually change.
493 # Use braces instead of parens because sh, perl, etc. also accept them.
494 bindir='${exec_prefix}/bin'
495 sbindir='${exec_prefix}/sbin'
496 libexecdir='${exec_prefix}/libexec'
497 datadir='${prefix}/share'
498 sysconfdir='${prefix}/etc'
499 sharedstatedir='${prefix}/com'
500 localstatedir='${prefix}/var'
501 libdir='${exec_prefix}/lib'
502 includedir='${prefix}/include'
503 oldincludedir='/usr/include'
504 infodir='${prefix}/info'
505 mandir='${prefix}/man'
507 ac_prev=
508 for ac_option
510 # If the previous option needs an argument, assign it.
511 if test -n "$ac_prev"; then
512 eval "$ac_prev=\$ac_option"
513 ac_prev=
514 continue
517 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519 # Accept the important Cygnus configure options, so we can diagnose typos.
521 case $ac_option in
523 -bindir | --bindir | --bindi | --bind | --bin | --bi)
524 ac_prev=bindir ;;
525 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
526 bindir=$ac_optarg ;;
528 -build | --build | --buil | --bui | --bu)
529 ac_prev=build_alias ;;
530 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531 build_alias=$ac_optarg ;;
533 -cache-file | --cache-file | --cache-fil | --cache-fi \
534 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535 ac_prev=cache_file ;;
536 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538 cache_file=$ac_optarg ;;
540 --config-cache | -C)
541 cache_file=config.cache ;;
543 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544 ac_prev=datadir ;;
545 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546 | --da=*)
547 datadir=$ac_optarg ;;
549 -disable-* | --disable-*)
550 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551 # Reject names that are not valid shell variable names.
552 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554 { (exit 1); exit 1; }; }
555 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556 eval "enable_$ac_feature=no" ;;
558 -enable-* | --enable-*)
559 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560 # Reject names that are not valid shell variable names.
561 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563 { (exit 1); exit 1; }; }
564 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565 case $ac_option in
566 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
567 *) ac_optarg=yes ;;
568 esac
569 eval "enable_$ac_feature='$ac_optarg'" ;;
571 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573 | --exec | --exe | --ex)
574 ac_prev=exec_prefix ;;
575 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577 | --exec=* | --exe=* | --ex=*)
578 exec_prefix=$ac_optarg ;;
580 -gas | --gas | --ga | --g)
581 # Obsolete; use --with-gas.
582 with_gas=yes ;;
584 -help | --help | --hel | --he | -h)
585 ac_init_help=long ;;
586 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587 ac_init_help=recursive ;;
588 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589 ac_init_help=short ;;
591 -host | --host | --hos | --ho)
592 ac_prev=host_alias ;;
593 -host=* | --host=* | --hos=* | --ho=*)
594 host_alias=$ac_optarg ;;
596 -includedir | --includedir | --includedi | --included | --include \
597 | --includ | --inclu | --incl | --inc)
598 ac_prev=includedir ;;
599 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600 | --includ=* | --inclu=* | --incl=* | --inc=*)
601 includedir=$ac_optarg ;;
603 -infodir | --infodir | --infodi | --infod | --info | --inf)
604 ac_prev=infodir ;;
605 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606 infodir=$ac_optarg ;;
608 -libdir | --libdir | --libdi | --libd)
609 ac_prev=libdir ;;
610 -libdir=* | --libdir=* | --libdi=* | --libd=*)
611 libdir=$ac_optarg ;;
613 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614 | --libexe | --libex | --libe)
615 ac_prev=libexecdir ;;
616 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617 | --libexe=* | --libex=* | --libe=*)
618 libexecdir=$ac_optarg ;;
620 -localstatedir | --localstatedir | --localstatedi | --localstated \
621 | --localstate | --localstat | --localsta | --localst \
622 | --locals | --local | --loca | --loc | --lo)
623 ac_prev=localstatedir ;;
624 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627 localstatedir=$ac_optarg ;;
629 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
630 ac_prev=mandir ;;
631 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
632 mandir=$ac_optarg ;;
634 -nfp | --nfp | --nf)
635 # Obsolete; use --without-fp.
636 with_fp=no ;;
638 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
639 | --no-cr | --no-c | -n)
640 no_create=yes ;;
642 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
643 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
644 no_recursion=yes ;;
646 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648 | --oldin | --oldi | --old | --ol | --o)
649 ac_prev=oldincludedir ;;
650 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653 oldincludedir=$ac_optarg ;;
655 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
656 ac_prev=prefix ;;
657 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
658 prefix=$ac_optarg ;;
660 -program-prefix | --program-prefix | --program-prefi | --program-pref \
661 | --program-pre | --program-pr | --program-p)
662 ac_prev=program_prefix ;;
663 -program-prefix=* | --program-prefix=* | --program-prefi=* \
664 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665 program_prefix=$ac_optarg ;;
667 -program-suffix | --program-suffix | --program-suffi | --program-suff \
668 | --program-suf | --program-su | --program-s)
669 ac_prev=program_suffix ;;
670 -program-suffix=* | --program-suffix=* | --program-suffi=* \
671 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672 program_suffix=$ac_optarg ;;
674 -program-transform-name | --program-transform-name \
675 | --program-transform-nam | --program-transform-na \
676 | --program-transform-n | --program-transform- \
677 | --program-transform | --program-transfor \
678 | --program-transfo | --program-transf \
679 | --program-trans | --program-tran \
680 | --progr-tra | --program-tr | --program-t)
681 ac_prev=program_transform_name ;;
682 -program-transform-name=* | --program-transform-name=* \
683 | --program-transform-nam=* | --program-transform-na=* \
684 | --program-transform-n=* | --program-transform-=* \
685 | --program-transform=* | --program-transfor=* \
686 | --program-transfo=* | --program-transf=* \
687 | --program-trans=* | --program-tran=* \
688 | --progr-tra=* | --program-tr=* | --program-t=*)
689 program_transform_name=$ac_optarg ;;
691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692 | -silent | --silent | --silen | --sile | --sil)
693 silent=yes ;;
695 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
696 ac_prev=sbindir ;;
697 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
698 | --sbi=* | --sb=*)
699 sbindir=$ac_optarg ;;
701 -sharedstatedir | --sharedstatedir | --sharedstatedi \
702 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703 | --sharedst | --shareds | --shared | --share | --shar \
704 | --sha | --sh)
705 ac_prev=sharedstatedir ;;
706 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
709 | --sha=* | --sh=*)
710 sharedstatedir=$ac_optarg ;;
712 -site | --site | --sit)
713 ac_prev=site ;;
714 -site=* | --site=* | --sit=*)
715 site=$ac_optarg ;;
717 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
718 ac_prev=srcdir ;;
719 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
720 srcdir=$ac_optarg ;;
722 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723 | --syscon | --sysco | --sysc | --sys | --sy)
724 ac_prev=sysconfdir ;;
725 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727 sysconfdir=$ac_optarg ;;
729 -target | --target | --targe | --targ | --tar | --ta | --t)
730 ac_prev=target_alias ;;
731 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732 target_alias=$ac_optarg ;;
734 -v | -verbose | --verbose | --verbos | --verbo | --verb)
735 verbose=yes ;;
737 -version | --version | --versio | --versi | --vers | -V)
738 ac_init_version=: ;;
740 -with-* | --with-*)
741 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742 # Reject names that are not valid shell variable names.
743 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744 { echo "$as_me: error: invalid package name: $ac_package" >&2
745 { (exit 1); exit 1; }; }
746 ac_package=`echo $ac_package| sed 's/-/_/g'`
747 case $ac_option in
748 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
749 *) ac_optarg=yes ;;
750 esac
751 eval "with_$ac_package='$ac_optarg'" ;;
753 -without-* | --without-*)
754 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package | sed 's/-/_/g'`
760 eval "with_$ac_package=no" ;;
762 --x)
763 # Obsolete; use --with-x.
764 with_x=yes ;;
766 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767 | --x-incl | --x-inc | --x-in | --x-i)
768 ac_prev=x_includes ;;
769 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771 x_includes=$ac_optarg ;;
773 -x-libraries | --x-libraries | --x-librarie | --x-librari \
774 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775 ac_prev=x_libraries ;;
776 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778 x_libraries=$ac_optarg ;;
780 -*) { echo "$as_me: error: unrecognized option: $ac_option
781 Try \`$0 --help' for more information." >&2
782 { (exit 1); exit 1; }; }
785 *=*)
786 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787 # Reject names that are not valid shell variable names.
788 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790 { (exit 1); exit 1; }; }
791 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792 eval "$ac_envvar='$ac_optarg'"
793 export $ac_envvar ;;
796 # FIXME: should be removed in autoconf 3.0.
797 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803 esac
804 done
806 if test -n "$ac_prev"; then
807 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808 { echo "$as_me: error: missing argument to $ac_option" >&2
809 { (exit 1); exit 1; }; }
812 # Be sure to have absolute paths.
813 for ac_var in exec_prefix prefix
815 eval ac_val=$`echo $ac_var`
816 case $ac_val in
817 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819 { (exit 1); exit 1; }; };;
820 esac
821 done
823 # Be sure to have absolute paths.
824 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825 localstatedir libdir includedir oldincludedir infodir mandir
827 eval ac_val=$`echo $ac_var`
828 case $ac_val in
829 [\\/$]* | ?:[\\/]* ) ;;
830 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831 { (exit 1); exit 1; }; };;
832 esac
833 done
835 # There might be people who depend on the old broken behavior: `$host'
836 # used to hold the argument of --host etc.
837 # FIXME: To remove some day.
838 build=$build_alias
839 host=$host_alias
840 target=$target_alias
842 # FIXME: To remove some day.
843 if test "x$host_alias" != x; then
844 if test "x$build_alias" = x; then
845 cross_compiling=maybe
846 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847 If a cross compiler is detected then cross compile mode will be used." >&2
848 elif test "x$build_alias" != "x$host_alias"; then
849 cross_compiling=yes
853 ac_tool_prefix=
854 test -n "$host_alias" && ac_tool_prefix=$host_alias-
856 test "$silent" = yes && exec 6>/dev/null
859 # Find the source files, if location was not specified.
860 if test -z "$srcdir"; then
861 ac_srcdir_defaulted=yes
862 # Try the directory containing this script, then its parent.
863 ac_confdir=`(dirname "$0") 2>/dev/null ||
864 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865 X"$0" : 'X\(//\)[^/]' \| \
866 X"$0" : 'X\(//\)$' \| \
867 X"$0" : 'X\(/\)' \| \
868 . : '\(.\)' 2>/dev/null ||
869 echo X"$0" |
870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872 /^X\(\/\/\)$/{ s//\1/; q; }
873 /^X\(\/\).*/{ s//\1/; q; }
874 s/.*/./; q'`
875 srcdir=$ac_confdir
876 if test ! -r $srcdir/$ac_unique_file; then
877 srcdir=..
879 else
880 ac_srcdir_defaulted=no
882 if test ! -r $srcdir/$ac_unique_file; then
883 if test "$ac_srcdir_defaulted" = yes; then
884 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885 { (exit 1); exit 1; }; }
886 else
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888 { (exit 1); exit 1; }; }
891 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893 { (exit 1); exit 1; }; }
894 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895 ac_env_build_alias_set=${build_alias+set}
896 ac_env_build_alias_value=$build_alias
897 ac_cv_env_build_alias_set=${build_alias+set}
898 ac_cv_env_build_alias_value=$build_alias
899 ac_env_host_alias_set=${host_alias+set}
900 ac_env_host_alias_value=$host_alias
901 ac_cv_env_host_alias_set=${host_alias+set}
902 ac_cv_env_host_alias_value=$host_alias
903 ac_env_target_alias_set=${target_alias+set}
904 ac_env_target_alias_value=$target_alias
905 ac_cv_env_target_alias_set=${target_alias+set}
906 ac_cv_env_target_alias_value=$target_alias
907 ac_env_CC_set=${CC+set}
908 ac_env_CC_value=$CC
909 ac_cv_env_CC_set=${CC+set}
910 ac_cv_env_CC_value=$CC
911 ac_env_CFLAGS_set=${CFLAGS+set}
912 ac_env_CFLAGS_value=$CFLAGS
913 ac_cv_env_CFLAGS_set=${CFLAGS+set}
914 ac_cv_env_CFLAGS_value=$CFLAGS
915 ac_env_LDFLAGS_set=${LDFLAGS+set}
916 ac_env_LDFLAGS_value=$LDFLAGS
917 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_cv_env_LDFLAGS_value=$LDFLAGS
919 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920 ac_env_CPPFLAGS_value=$CPPFLAGS
921 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923 ac_env_CXX_set=${CXX+set}
924 ac_env_CXX_value=$CXX
925 ac_cv_env_CXX_set=${CXX+set}
926 ac_cv_env_CXX_value=$CXX
927 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
928 ac_env_CXXFLAGS_value=$CXXFLAGS
929 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
930 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
931 ac_env_CPP_set=${CPP+set}
932 ac_env_CPP_value=$CPP
933 ac_cv_env_CPP_set=${CPP+set}
934 ac_cv_env_CPP_value=$CPP
935 ac_env_CXXCPP_set=${CXXCPP+set}
936 ac_env_CXXCPP_value=$CXXCPP
937 ac_cv_env_CXXCPP_set=${CXXCPP+set}
938 ac_cv_env_CXXCPP_value=$CXXCPP
939 ac_env_F77_set=${F77+set}
940 ac_env_F77_value=$F77
941 ac_cv_env_F77_set=${F77+set}
942 ac_cv_env_F77_value=$F77
943 ac_env_FFLAGS_set=${FFLAGS+set}
944 ac_env_FFLAGS_value=$FFLAGS
945 ac_cv_env_FFLAGS_set=${FFLAGS+set}
946 ac_cv_env_FFLAGS_value=$FFLAGS
949 # Report the --help message.
951 if test "$ac_init_help" = "long"; then
952 # Omit some internal or obsolete options to make the list less imposing.
953 # This message is too long to be a string in the A/UX 3.1 sh.
954 cat <<_ACEOF
955 \`configure' configures this package to adapt to many kinds of systems.
957 Usage: $0 [OPTION]... [VAR=VALUE]...
959 To assign environment variables (e.g., CC, CFLAGS...), specify them as
960 VAR=VALUE. See below for descriptions of some of the useful variables.
962 Defaults for the options are specified in brackets.
964 Configuration:
965 -h, --help display this help and exit
966 --help=short display options specific to this package
967 --help=recursive display the short help of all the included packages
968 -V, --version display version information and exit
969 -q, --quiet, --silent do not print \`checking...' messages
970 --cache-file=FILE cache test results in FILE [disabled]
971 -C, --config-cache alias for \`--cache-file=config.cache'
972 -n, --no-create do not create output files
973 --srcdir=DIR find the sources in DIR [configure dir or \`..']
975 _ACEOF
977 cat <<_ACEOF
978 Installation directories:
979 --prefix=PREFIX install architecture-independent files in PREFIX
980 [$ac_default_prefix]
981 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
982 [PREFIX]
984 By default, \`make install' will install all the files in
985 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
986 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987 for instance \`--prefix=\$HOME'.
989 For better control, use the options below.
991 Fine tuning of the installation directories:
992 --bindir=DIR user executables [EPREFIX/bin]
993 --sbindir=DIR system admin executables [EPREFIX/sbin]
994 --libexecdir=DIR program executables [EPREFIX/libexec]
995 --datadir=DIR read-only architecture-independent data [PREFIX/share]
996 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
997 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
998 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
999 --libdir=DIR object code libraries [EPREFIX/lib]
1000 --includedir=DIR C header files [PREFIX/include]
1001 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1002 --infodir=DIR info documentation [PREFIX/info]
1003 --mandir=DIR man documentation [PREFIX/man]
1004 _ACEOF
1006 cat <<\_ACEOF
1008 Program names:
1009 --program-prefix=PREFIX prepend PREFIX to installed program names
1010 --program-suffix=SUFFIX append SUFFIX to installed program names
1011 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1013 System types:
1014 --build=BUILD configure for building on BUILD [guessed]
1015 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1016 _ACEOF
1019 if test -n "$ac_init_help"; then
1021 cat <<\_ACEOF
1023 Optional Features:
1024 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1025 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1026 --disable-dependency-tracking speeds up one-time build
1027 --enable-dependency-tracking do not reject slow dependency extractors
1028 --enable-shared[=PKGS]
1029 build shared libraries [default=yes]
1030 --enable-static[=PKGS]
1031 build static libraries [default=yes]
1032 --enable-fast-install[=PKGS]
1033 optimize for fast installation [default=yes]
1034 --disable-libtool-lock avoid locking (might break parallel builds)
1036 Optional Packages:
1037 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1038 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1039 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1040 --with-pic try to use only PIC/non-PIC objects [default=use
1041 both]
1042 --with-tags[=TAGS]
1043 include additional configurations [automatic]
1045 Some influential environment variables:
1046 CC C compiler command
1047 CFLAGS C compiler flags
1048 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1049 nonstandard directory <lib dir>
1050 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1051 headers in a nonstandard directory <include dir>
1052 CXX C++ compiler command
1053 CXXFLAGS C++ compiler flags
1054 CPP C preprocessor
1055 CXXCPP C++ preprocessor
1056 F77 Fortran 77 compiler command
1057 FFLAGS Fortran 77 compiler flags
1059 Use these variables to override the choices made by `configure' or to help
1060 it to find libraries and programs with nonstandard names/locations.
1062 _ACEOF
1065 if test "$ac_init_help" = "recursive"; then
1066 # If there are subdirs, report their specific --help.
1067 ac_popdir=`pwd`
1068 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1069 test -d $ac_dir || continue
1070 ac_builddir=.
1072 if test "$ac_dir" != .; then
1073 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1074 # A "../" for each directory in $ac_dir_suffix.
1075 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1076 else
1077 ac_dir_suffix= ac_top_builddir=
1080 case $srcdir in
1081 .) # No --srcdir option. We are building in place.
1082 ac_srcdir=.
1083 if test -z "$ac_top_builddir"; then
1084 ac_top_srcdir=.
1085 else
1086 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1087 fi ;;
1088 [\\/]* | ?:[\\/]* ) # Absolute path.
1089 ac_srcdir=$srcdir$ac_dir_suffix;
1090 ac_top_srcdir=$srcdir ;;
1091 *) # Relative path.
1092 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1093 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1094 esac
1096 # Do not use `cd foo && pwd` to compute absolute paths, because
1097 # the directories may not exist.
1098 case `pwd` in
1099 .) ac_abs_builddir="$ac_dir";;
1101 case "$ac_dir" in
1102 .) ac_abs_builddir=`pwd`;;
1103 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1104 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1105 esac;;
1106 esac
1107 case $ac_abs_builddir in
1108 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1110 case ${ac_top_builddir}. in
1111 .) ac_abs_top_builddir=$ac_abs_builddir;;
1112 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1113 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1114 esac;;
1115 esac
1116 case $ac_abs_builddir in
1117 .) ac_abs_srcdir=$ac_srcdir;;
1119 case $ac_srcdir in
1120 .) ac_abs_srcdir=$ac_abs_builddir;;
1121 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1122 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1123 esac;;
1124 esac
1125 case $ac_abs_builddir in
1126 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1128 case $ac_top_srcdir in
1129 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1130 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1131 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1132 esac;;
1133 esac
1135 cd $ac_dir
1136 # Check for guested configure; otherwise get Cygnus style configure.
1137 if test -f $ac_srcdir/configure.gnu; then
1138 echo
1139 $SHELL $ac_srcdir/configure.gnu --help=recursive
1140 elif test -f $ac_srcdir/configure; then
1141 echo
1142 $SHELL $ac_srcdir/configure --help=recursive
1143 elif test -f $ac_srcdir/configure.ac ||
1144 test -f $ac_srcdir/configure.in; then
1145 echo
1146 $ac_configure --help
1147 else
1148 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1150 cd $ac_popdir
1151 done
1154 test -n "$ac_init_help" && exit 0
1155 if $ac_init_version; then
1156 cat <<\_ACEOF
1158 Copyright (C) 2003 Free Software Foundation, Inc.
1159 This configure script is free software; the Free Software Foundation
1160 gives unlimited permission to copy, distribute and modify it.
1161 _ACEOF
1162 exit 0
1164 exec 5>config.log
1165 cat >&5 <<_ACEOF
1166 This file contains any messages produced by compilers while
1167 running configure, to aid debugging if configure makes a mistake.
1169 It was created by $as_me, which was
1170 generated by GNU Autoconf 2.59. Invocation command line was
1172 $ $0 $@
1174 _ACEOF
1176 cat <<_ASUNAME
1177 ## --------- ##
1178 ## Platform. ##
1179 ## --------- ##
1181 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1182 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1183 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1184 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1185 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1187 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1188 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1190 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1191 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1192 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1193 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1194 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1195 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1196 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1198 _ASUNAME
1200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1201 for as_dir in $PATH
1203 IFS=$as_save_IFS
1204 test -z "$as_dir" && as_dir=.
1205 echo "PATH: $as_dir"
1206 done
1208 } >&5
1210 cat >&5 <<_ACEOF
1213 ## ----------- ##
1214 ## Core tests. ##
1215 ## ----------- ##
1217 _ACEOF
1220 # Keep a trace of the command line.
1221 # Strip out --no-create and --no-recursion so they do not pile up.
1222 # Strip out --silent because we don't want to record it for future runs.
1223 # Also quote any args containing shell meta-characters.
1224 # Make two passes to allow for proper duplicate-argument suppression.
1225 ac_configure_args=
1226 ac_configure_args0=
1227 ac_configure_args1=
1228 ac_sep=
1229 ac_must_keep_next=false
1230 for ac_pass in 1 2
1232 for ac_arg
1234 case $ac_arg in
1235 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1236 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1237 | -silent | --silent | --silen | --sile | --sil)
1238 continue ;;
1239 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1240 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1241 esac
1242 case $ac_pass in
1243 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1245 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1246 if test $ac_must_keep_next = true; then
1247 ac_must_keep_next=false # Got value, back to normal.
1248 else
1249 case $ac_arg in
1250 *=* | --config-cache | -C | -disable-* | --disable-* \
1251 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1252 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1253 | -with-* | --with-* | -without-* | --without-* | --x)
1254 case "$ac_configure_args0 " in
1255 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1256 esac
1258 -* ) ac_must_keep_next=true ;;
1259 esac
1261 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1262 # Get rid of the leading space.
1263 ac_sep=" "
1265 esac
1266 done
1267 done
1268 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1269 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1271 # When interrupted or exit'd, cleanup temporary files, and complete
1272 # config.log. We remove comments because anyway the quotes in there
1273 # would cause problems or look ugly.
1274 # WARNING: Be sure not to use single quotes in there, as some shells,
1275 # such as our DU 5.0 friend, will then `close' the trap.
1276 trap 'exit_status=$?
1277 # Save into config.log some information that might help in debugging.
1279 echo
1281 cat <<\_ASBOX
1282 ## ---------------- ##
1283 ## Cache variables. ##
1284 ## ---------------- ##
1285 _ASBOX
1286 echo
1287 # The following way of writing the cache mishandles newlines in values,
1289 (set) 2>&1 |
1290 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1291 *ac_space=\ *)
1292 sed -n \
1293 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1294 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1297 sed -n \
1298 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1300 esac;
1302 echo
1304 cat <<\_ASBOX
1305 ## ----------------- ##
1306 ## Output variables. ##
1307 ## ----------------- ##
1308 _ASBOX
1309 echo
1310 for ac_var in $ac_subst_vars
1312 eval ac_val=$`echo $ac_var`
1313 echo "$ac_var='"'"'$ac_val'"'"'"
1314 done | sort
1315 echo
1317 if test -n "$ac_subst_files"; then
1318 cat <<\_ASBOX
1319 ## ------------- ##
1320 ## Output files. ##
1321 ## ------------- ##
1322 _ASBOX
1323 echo
1324 for ac_var in $ac_subst_files
1326 eval ac_val=$`echo $ac_var`
1327 echo "$ac_var='"'"'$ac_val'"'"'"
1328 done | sort
1329 echo
1332 if test -s confdefs.h; then
1333 cat <<\_ASBOX
1334 ## ----------- ##
1335 ## confdefs.h. ##
1336 ## ----------- ##
1337 _ASBOX
1338 echo
1339 sed "/^$/d" confdefs.h | sort
1340 echo
1342 test "$ac_signal" != 0 &&
1343 echo "$as_me: caught signal $ac_signal"
1344 echo "$as_me: exit $exit_status"
1345 } >&5
1346 rm -f core *.core &&
1347 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1348 exit $exit_status
1350 for ac_signal in 1 2 13 15; do
1351 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1352 done
1353 ac_signal=0
1355 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1356 rm -rf conftest* confdefs.h
1357 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1358 echo >confdefs.h
1360 # Predefined preprocessor variables.
1362 cat >>confdefs.h <<_ACEOF
1363 #define PACKAGE_NAME "$PACKAGE_NAME"
1364 _ACEOF
1367 cat >>confdefs.h <<_ACEOF
1368 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1369 _ACEOF
1372 cat >>confdefs.h <<_ACEOF
1373 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1374 _ACEOF
1377 cat >>confdefs.h <<_ACEOF
1378 #define PACKAGE_STRING "$PACKAGE_STRING"
1379 _ACEOF
1382 cat >>confdefs.h <<_ACEOF
1383 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1384 _ACEOF
1387 # Let the site file select an alternate cache file if it wants to.
1388 # Prefer explicitly selected file to automatically selected ones.
1389 if test -z "$CONFIG_SITE"; then
1390 if test "x$prefix" != xNONE; then
1391 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1392 else
1393 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1396 for ac_site_file in $CONFIG_SITE; do
1397 if test -r "$ac_site_file"; then
1398 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1399 echo "$as_me: loading site script $ac_site_file" >&6;}
1400 sed 's/^/| /' "$ac_site_file" >&5
1401 . "$ac_site_file"
1403 done
1405 if test -r "$cache_file"; then
1406 # Some versions of bash will fail to source /dev/null (special
1407 # files actually), so we avoid doing that.
1408 if test -f "$cache_file"; then
1409 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1410 echo "$as_me: loading cache $cache_file" >&6;}
1411 case $cache_file in
1412 [\\/]* | ?:[\\/]* ) . $cache_file;;
1413 *) . ./$cache_file;;
1414 esac
1416 else
1417 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1418 echo "$as_me: creating cache $cache_file" >&6;}
1419 >$cache_file
1422 # Check that the precious variables saved in the cache have kept the same
1423 # value.
1424 ac_cache_corrupted=false
1425 for ac_var in `(set) 2>&1 |
1426 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1427 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1428 eval ac_new_set=\$ac_env_${ac_var}_set
1429 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1430 eval ac_new_val="\$ac_env_${ac_var}_value"
1431 case $ac_old_set,$ac_new_set in
1432 set,)
1433 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1434 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1435 ac_cache_corrupted=: ;;
1436 ,set)
1437 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1438 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1439 ac_cache_corrupted=: ;;
1440 ,);;
1442 if test "x$ac_old_val" != "x$ac_new_val"; then
1443 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1444 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1445 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1446 echo "$as_me: former value: $ac_old_val" >&2;}
1447 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1448 echo "$as_me: current value: $ac_new_val" >&2;}
1449 ac_cache_corrupted=:
1450 fi;;
1451 esac
1452 # Pass precious variables to config.status.
1453 if test "$ac_new_set" = set; then
1454 case $ac_new_val in
1455 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1456 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1457 *) ac_arg=$ac_var=$ac_new_val ;;
1458 esac
1459 case " $ac_configure_args " in
1460 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1461 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1462 esac
1464 done
1465 if $ac_cache_corrupted; then
1466 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1467 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1468 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1469 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1470 { (exit 1); exit 1; }; }
1473 ac_ext=c
1474 ac_cpp='$CPP $CPPFLAGS'
1475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1498 ac_aux_dir=
1499 for ac_dir in ../../build-aux $srcdir/../../build-aux; do
1500 if test -f $ac_dir/install-sh; then
1501 ac_aux_dir=$ac_dir
1502 ac_install_sh="$ac_aux_dir/install-sh -c"
1503 break
1504 elif test -f $ac_dir/install.sh; then
1505 ac_aux_dir=$ac_dir
1506 ac_install_sh="$ac_aux_dir/install.sh -c"
1507 break
1508 elif test -f $ac_dir/shtool; then
1509 ac_aux_dir=$ac_dir
1510 ac_install_sh="$ac_aux_dir/shtool install -c"
1511 break
1513 done
1514 if test -z "$ac_aux_dir"; then
1515 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../build-aux $srcdir/../../build-aux" >&5
1516 echo "$as_me: error: cannot find install-sh or install.sh in ../../build-aux $srcdir/../../build-aux" >&2;}
1517 { (exit 1); exit 1; }; }
1519 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1520 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1521 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1523 am__api_version="1.9"
1524 # Find a good install program. We prefer a C program (faster),
1525 # so one script is as good as another. But avoid the broken or
1526 # incompatible versions:
1527 # SysV /etc/install, /usr/sbin/install
1528 # SunOS /usr/etc/install
1529 # IRIX /sbin/install
1530 # AIX /bin/install
1531 # AmigaOS /C/install, which installs bootblocks on floppy discs
1532 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1533 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1534 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1535 # OS/2's system install, which has a completely different semantic
1536 # ./install, which can be erroneously created by make from ./install.sh.
1537 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1538 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1539 if test -z "$INSTALL"; then
1540 if test "${ac_cv_path_install+set}" = set; then
1541 echo $ECHO_N "(cached) $ECHO_C" >&6
1542 else
1543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1544 for as_dir in $PATH
1546 IFS=$as_save_IFS
1547 test -z "$as_dir" && as_dir=.
1548 # Account for people who put trailing slashes in PATH elements.
1549 case $as_dir/ in
1550 ./ | .// | /cC/* | \
1551 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1552 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1553 /usr/ucb/* ) ;;
1555 # OSF1 and SCO ODT 3.0 have their own names for install.
1556 # Don't use installbsd from OSF since it installs stuff as root
1557 # by default.
1558 for ac_prog in ginstall scoinst install; do
1559 for ac_exec_ext in '' $ac_executable_extensions; do
1560 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1561 if test $ac_prog = install &&
1562 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1563 # AIX install. It has an incompatible calling convention.
1565 elif test $ac_prog = install &&
1566 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1567 # program-specific install script used by HP pwplus--don't use.
1569 else
1570 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1571 break 3
1574 done
1575 done
1577 esac
1578 done
1582 if test "${ac_cv_path_install+set}" = set; then
1583 INSTALL=$ac_cv_path_install
1584 else
1585 # As a last resort, use the slow shell script. We don't cache a
1586 # path for INSTALL within a source directory, because that will
1587 # break other packages using the cache if that directory is
1588 # removed, or if the path is relative.
1589 INSTALL=$ac_install_sh
1592 echo "$as_me:$LINENO: result: $INSTALL" >&5
1593 echo "${ECHO_T}$INSTALL" >&6
1595 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1596 # It thinks the first close brace ends the variable substitution.
1597 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1599 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1601 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1603 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1604 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1605 # Just in case
1606 sleep 1
1607 echo timestamp > conftest.file
1608 # Do `set' in a subshell so we don't clobber the current shell's
1609 # arguments. Must try -L first in case configure is actually a
1610 # symlink; some systems play weird games with the mod time of symlinks
1611 # (eg FreeBSD returns the mod time of the symlink's containing
1612 # directory).
1613 if (
1614 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1615 if test "$*" = "X"; then
1616 # -L didn't work.
1617 set X `ls -t $srcdir/configure conftest.file`
1619 rm -f conftest.file
1620 if test "$*" != "X $srcdir/configure conftest.file" \
1621 && test "$*" != "X conftest.file $srcdir/configure"; then
1623 # If neither matched, then we have a broken ls. This can happen
1624 # if, for instance, CONFIG_SHELL is bash and it inherits a
1625 # broken ls alias from the environment. This has actually
1626 # happened. Such a system could not be considered "sane".
1627 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1628 alias in your environment" >&5
1629 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1630 alias in your environment" >&2;}
1631 { (exit 1); exit 1; }; }
1634 test "$2" = conftest.file
1636 then
1637 # Ok.
1639 else
1640 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1641 Check your system clock" >&5
1642 echo "$as_me: error: newly created file is older than distributed files!
1643 Check your system clock" >&2;}
1644 { (exit 1); exit 1; }; }
1646 echo "$as_me:$LINENO: result: yes" >&5
1647 echo "${ECHO_T}yes" >&6
1648 test "$program_prefix" != NONE &&
1649 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1650 # Use a double $ so make ignores it.
1651 test "$program_suffix" != NONE &&
1652 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1653 # Double any \ or $. echo might interpret backslashes.
1654 # By default was `s,x,x', remove it if useless.
1655 cat <<\_ACEOF >conftest.sed
1656 s/[\\$]/&&/g;s/;s,x,x,$//
1657 _ACEOF
1658 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1659 rm conftest.sed
1661 # expand $ac_aux_dir to an absolute path
1662 am_aux_dir=`cd $ac_aux_dir && pwd`
1664 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1665 # Use eval to expand $SHELL
1666 if eval "$MISSING --run true"; then
1667 am_missing_run="$MISSING --run "
1668 else
1669 am_missing_run=
1670 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1671 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1674 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1675 # We used to keeping the `.' as first argument, in order to
1676 # allow $(mkdir_p) to be used without argument. As in
1677 # $(mkdir_p) $(somedir)
1678 # where $(somedir) is conditionally defined. However this is wrong
1679 # for two reasons:
1680 # 1. if the package is installed by a user who cannot write `.'
1681 # make install will fail,
1682 # 2. the above comment should most certainly read
1683 # $(mkdir_p) $(DESTDIR)$(somedir)
1684 # so it does not work when $(somedir) is undefined and
1685 # $(DESTDIR) is not.
1686 # To support the latter case, we have to write
1687 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1688 # so the `.' trick is pointless.
1689 mkdir_p='mkdir -p --'
1690 else
1691 # On NextStep and OpenStep, the `mkdir' command does not
1692 # recognize any option. It will interpret all options as
1693 # directories to create, and then abort because `.' already
1694 # exists.
1695 for d in ./-p ./--version;
1697 test -d $d && rmdir $d
1698 done
1699 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1700 if test -f "$ac_aux_dir/mkinstalldirs"; then
1701 mkdir_p='$(mkinstalldirs)'
1702 else
1703 mkdir_p='$(install_sh) -d'
1707 for ac_prog in gawk mawk nawk awk
1709 # Extract the first word of "$ac_prog", so it can be a program name with args.
1710 set dummy $ac_prog; ac_word=$2
1711 echo "$as_me:$LINENO: checking for $ac_word" >&5
1712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1713 if test "${ac_cv_prog_AWK+set}" = set; then
1714 echo $ECHO_N "(cached) $ECHO_C" >&6
1715 else
1716 if test -n "$AWK"; then
1717 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1718 else
1719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1720 for as_dir in $PATH
1722 IFS=$as_save_IFS
1723 test -z "$as_dir" && as_dir=.
1724 for ac_exec_ext in '' $ac_executable_extensions; do
1725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1726 ac_cv_prog_AWK="$ac_prog"
1727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1728 break 2
1730 done
1731 done
1735 AWK=$ac_cv_prog_AWK
1736 if test -n "$AWK"; then
1737 echo "$as_me:$LINENO: result: $AWK" >&5
1738 echo "${ECHO_T}$AWK" >&6
1739 else
1740 echo "$as_me:$LINENO: result: no" >&5
1741 echo "${ECHO_T}no" >&6
1744 test -n "$AWK" && break
1745 done
1747 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1748 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1749 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1750 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1751 echo $ECHO_N "(cached) $ECHO_C" >&6
1752 else
1753 cat >conftest.make <<\_ACEOF
1754 all:
1755 @echo 'ac_maketemp="$(MAKE)"'
1756 _ACEOF
1757 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1758 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1759 if test -n "$ac_maketemp"; then
1760 eval ac_cv_prog_make_${ac_make}_set=yes
1761 else
1762 eval ac_cv_prog_make_${ac_make}_set=no
1764 rm -f conftest.make
1766 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1767 echo "$as_me:$LINENO: result: yes" >&5
1768 echo "${ECHO_T}yes" >&6
1769 SET_MAKE=
1770 else
1771 echo "$as_me:$LINENO: result: no" >&5
1772 echo "${ECHO_T}no" >&6
1773 SET_MAKE="MAKE=${MAKE-make}"
1776 rm -rf .tst 2>/dev/null
1777 mkdir .tst 2>/dev/null
1778 if test -d .tst; then
1779 am__leading_dot=.
1780 else
1781 am__leading_dot=_
1783 rmdir .tst 2>/dev/null
1785 # test to see if srcdir already configured
1786 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1787 test -f $srcdir/config.status; then
1788 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1789 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1790 { (exit 1); exit 1; }; }
1793 # test whether we have cygpath
1794 if test -z "$CYGPATH_W"; then
1795 if (cygpath --version) >/dev/null 2>/dev/null; then
1796 CYGPATH_W='cygpath -w'
1797 else
1798 CYGPATH_W=echo
1803 # Define the identity of the package.
1804 PACKAGE=libasprintf
1805 VERSION=1.0
1808 cat >>confdefs.h <<_ACEOF
1809 #define PACKAGE "$PACKAGE"
1810 _ACEOF
1813 cat >>confdefs.h <<_ACEOF
1814 #define VERSION "$VERSION"
1815 _ACEOF
1817 # Some tools Automake needs.
1819 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1822 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1825 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1828 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1831 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1833 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1835 # Installed binaries are usually stripped using `strip' when the user
1836 # run `make install-strip'. However `strip' might not be the right
1837 # tool to use in cross-compilation environments, therefore Automake
1838 # will honor the `STRIP' environment variable to overrule this program.
1839 if test "$cross_compiling" != no; then
1840 if test -n "$ac_tool_prefix"; then
1841 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1842 set dummy ${ac_tool_prefix}strip; ac_word=$2
1843 echo "$as_me:$LINENO: checking for $ac_word" >&5
1844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1845 if test "${ac_cv_prog_STRIP+set}" = set; then
1846 echo $ECHO_N "(cached) $ECHO_C" >&6
1847 else
1848 if test -n "$STRIP"; then
1849 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1850 else
1851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1852 for as_dir in $PATH
1854 IFS=$as_save_IFS
1855 test -z "$as_dir" && as_dir=.
1856 for ac_exec_ext in '' $ac_executable_extensions; do
1857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1858 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1860 break 2
1862 done
1863 done
1867 STRIP=$ac_cv_prog_STRIP
1868 if test -n "$STRIP"; then
1869 echo "$as_me:$LINENO: result: $STRIP" >&5
1870 echo "${ECHO_T}$STRIP" >&6
1871 else
1872 echo "$as_me:$LINENO: result: no" >&5
1873 echo "${ECHO_T}no" >&6
1877 if test -z "$ac_cv_prog_STRIP"; then
1878 ac_ct_STRIP=$STRIP
1879 # Extract the first word of "strip", so it can be a program name with args.
1880 set dummy strip; ac_word=$2
1881 echo "$as_me:$LINENO: checking for $ac_word" >&5
1882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1883 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1884 echo $ECHO_N "(cached) $ECHO_C" >&6
1885 else
1886 if test -n "$ac_ct_STRIP"; then
1887 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1888 else
1889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1890 for as_dir in $PATH
1892 IFS=$as_save_IFS
1893 test -z "$as_dir" && as_dir=.
1894 for ac_exec_ext in '' $ac_executable_extensions; do
1895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1896 ac_cv_prog_ac_ct_STRIP="strip"
1897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1898 break 2
1900 done
1901 done
1903 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1906 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1907 if test -n "$ac_ct_STRIP"; then
1908 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1909 echo "${ECHO_T}$ac_ct_STRIP" >&6
1910 else
1911 echo "$as_me:$LINENO: result: no" >&5
1912 echo "${ECHO_T}no" >&6
1915 STRIP=$ac_ct_STRIP
1916 else
1917 STRIP="$ac_cv_prog_STRIP"
1921 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1923 # We need awk for the "check" target. The system "awk" is bad on
1924 # some platforms.
1925 # Always define AMTAR for backward compatibility.
1927 AMTAR=${AMTAR-"${am_missing_run}tar"}
1929 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1935 ac_config_headers="$ac_config_headers config.h"
1938 ac_ext=c
1939 ac_cpp='$CPP $CPPFLAGS'
1940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1943 if test -n "$ac_tool_prefix"; then
1944 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1945 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1946 echo "$as_me:$LINENO: checking for $ac_word" >&5
1947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1948 if test "${ac_cv_prog_CC+set}" = set; then
1949 echo $ECHO_N "(cached) $ECHO_C" >&6
1950 else
1951 if test -n "$CC"; then
1952 ac_cv_prog_CC="$CC" # Let the user override the test.
1953 else
1954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1955 for as_dir in $PATH
1957 IFS=$as_save_IFS
1958 test -z "$as_dir" && as_dir=.
1959 for ac_exec_ext in '' $ac_executable_extensions; do
1960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1961 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1963 break 2
1965 done
1966 done
1970 CC=$ac_cv_prog_CC
1971 if test -n "$CC"; then
1972 echo "$as_me:$LINENO: result: $CC" >&5
1973 echo "${ECHO_T}$CC" >&6
1974 else
1975 echo "$as_me:$LINENO: result: no" >&5
1976 echo "${ECHO_T}no" >&6
1980 if test -z "$ac_cv_prog_CC"; then
1981 ac_ct_CC=$CC
1982 # Extract the first word of "gcc", so it can be a program name with args.
1983 set dummy gcc; ac_word=$2
1984 echo "$as_me:$LINENO: checking for $ac_word" >&5
1985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1986 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1987 echo $ECHO_N "(cached) $ECHO_C" >&6
1988 else
1989 if test -n "$ac_ct_CC"; then
1990 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1991 else
1992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1993 for as_dir in $PATH
1995 IFS=$as_save_IFS
1996 test -z "$as_dir" && as_dir=.
1997 for ac_exec_ext in '' $ac_executable_extensions; do
1998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1999 ac_cv_prog_ac_ct_CC="gcc"
2000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2001 break 2
2003 done
2004 done
2008 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2009 if test -n "$ac_ct_CC"; then
2010 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2011 echo "${ECHO_T}$ac_ct_CC" >&6
2012 else
2013 echo "$as_me:$LINENO: result: no" >&5
2014 echo "${ECHO_T}no" >&6
2017 CC=$ac_ct_CC
2018 else
2019 CC="$ac_cv_prog_CC"
2022 if test -z "$CC"; then
2023 if test -n "$ac_tool_prefix"; then
2024 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2025 set dummy ${ac_tool_prefix}cc; ac_word=$2
2026 echo "$as_me:$LINENO: checking for $ac_word" >&5
2027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2028 if test "${ac_cv_prog_CC+set}" = set; then
2029 echo $ECHO_N "(cached) $ECHO_C" >&6
2030 else
2031 if test -n "$CC"; then
2032 ac_cv_prog_CC="$CC" # Let the user override the test.
2033 else
2034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2035 for as_dir in $PATH
2037 IFS=$as_save_IFS
2038 test -z "$as_dir" && as_dir=.
2039 for ac_exec_ext in '' $ac_executable_extensions; do
2040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2041 ac_cv_prog_CC="${ac_tool_prefix}cc"
2042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2043 break 2
2045 done
2046 done
2050 CC=$ac_cv_prog_CC
2051 if test -n "$CC"; then
2052 echo "$as_me:$LINENO: result: $CC" >&5
2053 echo "${ECHO_T}$CC" >&6
2054 else
2055 echo "$as_me:$LINENO: result: no" >&5
2056 echo "${ECHO_T}no" >&6
2060 if test -z "$ac_cv_prog_CC"; then
2061 ac_ct_CC=$CC
2062 # Extract the first word of "cc", so it can be a program name with args.
2063 set dummy cc; ac_word=$2
2064 echo "$as_me:$LINENO: checking for $ac_word" >&5
2065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2066 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2067 echo $ECHO_N "(cached) $ECHO_C" >&6
2068 else
2069 if test -n "$ac_ct_CC"; then
2070 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2071 else
2072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2073 for as_dir in $PATH
2075 IFS=$as_save_IFS
2076 test -z "$as_dir" && as_dir=.
2077 for ac_exec_ext in '' $ac_executable_extensions; do
2078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2079 ac_cv_prog_ac_ct_CC="cc"
2080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2081 break 2
2083 done
2084 done
2088 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2089 if test -n "$ac_ct_CC"; then
2090 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2091 echo "${ECHO_T}$ac_ct_CC" >&6
2092 else
2093 echo "$as_me:$LINENO: result: no" >&5
2094 echo "${ECHO_T}no" >&6
2097 CC=$ac_ct_CC
2098 else
2099 CC="$ac_cv_prog_CC"
2103 if test -z "$CC"; then
2104 # Extract the first word of "cc", so it can be a program name with args.
2105 set dummy cc; ac_word=$2
2106 echo "$as_me:$LINENO: checking for $ac_word" >&5
2107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2108 if test "${ac_cv_prog_CC+set}" = set; then
2109 echo $ECHO_N "(cached) $ECHO_C" >&6
2110 else
2111 if test -n "$CC"; then
2112 ac_cv_prog_CC="$CC" # Let the user override the test.
2113 else
2114 ac_prog_rejected=no
2115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2116 for as_dir in $PATH
2118 IFS=$as_save_IFS
2119 test -z "$as_dir" && as_dir=.
2120 for ac_exec_ext in '' $ac_executable_extensions; do
2121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2122 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2123 ac_prog_rejected=yes
2124 continue
2126 ac_cv_prog_CC="cc"
2127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2128 break 2
2130 done
2131 done
2133 if test $ac_prog_rejected = yes; then
2134 # We found a bogon in the path, so make sure we never use it.
2135 set dummy $ac_cv_prog_CC
2136 shift
2137 if test $# != 0; then
2138 # We chose a different compiler from the bogus one.
2139 # However, it has the same basename, so the bogon will be chosen
2140 # first if we set CC to just the basename; use the full file name.
2141 shift
2142 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2147 CC=$ac_cv_prog_CC
2148 if test -n "$CC"; then
2149 echo "$as_me:$LINENO: result: $CC" >&5
2150 echo "${ECHO_T}$CC" >&6
2151 else
2152 echo "$as_me:$LINENO: result: no" >&5
2153 echo "${ECHO_T}no" >&6
2157 if test -z "$CC"; then
2158 if test -n "$ac_tool_prefix"; then
2159 for ac_prog in cl
2161 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2162 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2163 echo "$as_me:$LINENO: checking for $ac_word" >&5
2164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2165 if test "${ac_cv_prog_CC+set}" = set; then
2166 echo $ECHO_N "(cached) $ECHO_C" >&6
2167 else
2168 if test -n "$CC"; then
2169 ac_cv_prog_CC="$CC" # Let the user override the test.
2170 else
2171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2172 for as_dir in $PATH
2174 IFS=$as_save_IFS
2175 test -z "$as_dir" && as_dir=.
2176 for ac_exec_ext in '' $ac_executable_extensions; do
2177 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2178 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2180 break 2
2182 done
2183 done
2187 CC=$ac_cv_prog_CC
2188 if test -n "$CC"; then
2189 echo "$as_me:$LINENO: result: $CC" >&5
2190 echo "${ECHO_T}$CC" >&6
2191 else
2192 echo "$as_me:$LINENO: result: no" >&5
2193 echo "${ECHO_T}no" >&6
2196 test -n "$CC" && break
2197 done
2199 if test -z "$CC"; then
2200 ac_ct_CC=$CC
2201 for ac_prog in cl
2203 # Extract the first word of "$ac_prog", so it can be a program name with args.
2204 set dummy $ac_prog; ac_word=$2
2205 echo "$as_me:$LINENO: checking for $ac_word" >&5
2206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2207 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2208 echo $ECHO_N "(cached) $ECHO_C" >&6
2209 else
2210 if test -n "$ac_ct_CC"; then
2211 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2212 else
2213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2214 for as_dir in $PATH
2216 IFS=$as_save_IFS
2217 test -z "$as_dir" && as_dir=.
2218 for ac_exec_ext in '' $ac_executable_extensions; do
2219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2220 ac_cv_prog_ac_ct_CC="$ac_prog"
2221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2222 break 2
2224 done
2225 done
2229 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2230 if test -n "$ac_ct_CC"; then
2231 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2232 echo "${ECHO_T}$ac_ct_CC" >&6
2233 else
2234 echo "$as_me:$LINENO: result: no" >&5
2235 echo "${ECHO_T}no" >&6
2238 test -n "$ac_ct_CC" && break
2239 done
2241 CC=$ac_ct_CC
2247 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2248 See \`config.log' for more details." >&5
2249 echo "$as_me: error: no acceptable C compiler found in \$PATH
2250 See \`config.log' for more details." >&2;}
2251 { (exit 1); exit 1; }; }
2253 # Provide some information about the compiler.
2254 echo "$as_me:$LINENO:" \
2255 "checking for C compiler version" >&5
2256 ac_compiler=`set X $ac_compile; echo $2`
2257 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2258 (eval $ac_compiler --version </dev/null >&5) 2>&5
2259 ac_status=$?
2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261 (exit $ac_status); }
2262 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2263 (eval $ac_compiler -v </dev/null >&5) 2>&5
2264 ac_status=$?
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); }
2267 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2268 (eval $ac_compiler -V </dev/null >&5) 2>&5
2269 ac_status=$?
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); }
2273 cat >conftest.$ac_ext <<_ACEOF
2274 /* confdefs.h. */
2275 _ACEOF
2276 cat confdefs.h >>conftest.$ac_ext
2277 cat >>conftest.$ac_ext <<_ACEOF
2278 /* end confdefs.h. */
2281 main ()
2285 return 0;
2287 _ACEOF
2288 ac_clean_files_save=$ac_clean_files
2289 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2290 # Try to create an executable without -o first, disregard a.out.
2291 # It will help us diagnose broken compilers, and finding out an intuition
2292 # of exeext.
2293 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2294 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2295 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2296 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2297 (eval $ac_link_default) 2>&5
2298 ac_status=$?
2299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300 (exit $ac_status); }; then
2301 # Find the output, starting from the most likely. This scheme is
2302 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2303 # resort.
2305 # Be careful to initialize this variable, since it used to be cached.
2306 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2307 ac_cv_exeext=
2308 # b.out is created by i960 compilers.
2309 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2311 test -f "$ac_file" || continue
2312 case $ac_file in
2313 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2315 conftest.$ac_ext )
2316 # This is the source file.
2318 [ab].out )
2319 # We found the default executable, but exeext='' is most
2320 # certainly right.
2321 break;;
2322 *.* )
2323 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2324 # FIXME: I believe we export ac_cv_exeext for Libtool,
2325 # but it would be cool to find out if it's true. Does anybody
2326 # maintain Libtool? --akim.
2327 export ac_cv_exeext
2328 break;;
2330 break;;
2331 esac
2332 done
2333 else
2334 echo "$as_me: failed program was:" >&5
2335 sed 's/^/| /' conftest.$ac_ext >&5
2337 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2338 See \`config.log' for more details." >&5
2339 echo "$as_me: error: C compiler cannot create executables
2340 See \`config.log' for more details." >&2;}
2341 { (exit 77); exit 77; }; }
2344 ac_exeext=$ac_cv_exeext
2345 echo "$as_me:$LINENO: result: $ac_file" >&5
2346 echo "${ECHO_T}$ac_file" >&6
2348 # Check the compiler produces executables we can run. If not, either
2349 # the compiler is broken, or we cross compile.
2350 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2351 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2352 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2353 # If not cross compiling, check that we can run a simple program.
2354 if test "$cross_compiling" != yes; then
2355 if { ac_try='./$ac_file'
2356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2357 (eval $ac_try) 2>&5
2358 ac_status=$?
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); }; }; then
2361 cross_compiling=no
2362 else
2363 if test "$cross_compiling" = maybe; then
2364 cross_compiling=yes
2365 else
2366 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2367 If you meant to cross compile, use \`--host'.
2368 See \`config.log' for more details." >&5
2369 echo "$as_me: error: cannot run C compiled programs.
2370 If you meant to cross compile, use \`--host'.
2371 See \`config.log' for more details." >&2;}
2372 { (exit 1); exit 1; }; }
2376 echo "$as_me:$LINENO: result: yes" >&5
2377 echo "${ECHO_T}yes" >&6
2379 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2380 ac_clean_files=$ac_clean_files_save
2381 # Check the compiler produces executables we can run. If not, either
2382 # the compiler is broken, or we cross compile.
2383 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2384 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2385 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2386 echo "${ECHO_T}$cross_compiling" >&6
2388 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2389 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2391 (eval $ac_link) 2>&5
2392 ac_status=$?
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); }; then
2395 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2396 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2397 # work properly (i.e., refer to `conftest.exe'), while it won't with
2398 # `rm'.
2399 for ac_file in conftest.exe conftest conftest.*; do
2400 test -f "$ac_file" || continue
2401 case $ac_file in
2402 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2403 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2404 export ac_cv_exeext
2405 break;;
2406 * ) break;;
2407 esac
2408 done
2409 else
2410 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2411 See \`config.log' for more details." >&5
2412 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2413 See \`config.log' for more details." >&2;}
2414 { (exit 1); exit 1; }; }
2417 rm -f conftest$ac_cv_exeext
2418 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2419 echo "${ECHO_T}$ac_cv_exeext" >&6
2421 rm -f conftest.$ac_ext
2422 EXEEXT=$ac_cv_exeext
2423 ac_exeext=$EXEEXT
2424 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2425 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2426 if test "${ac_cv_objext+set}" = set; then
2427 echo $ECHO_N "(cached) $ECHO_C" >&6
2428 else
2429 cat >conftest.$ac_ext <<_ACEOF
2430 /* confdefs.h. */
2431 _ACEOF
2432 cat confdefs.h >>conftest.$ac_ext
2433 cat >>conftest.$ac_ext <<_ACEOF
2434 /* end confdefs.h. */
2437 main ()
2441 return 0;
2443 _ACEOF
2444 rm -f conftest.o conftest.obj
2445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2446 (eval $ac_compile) 2>&5
2447 ac_status=$?
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); }; then
2450 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2451 case $ac_file in
2452 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2453 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2454 break;;
2455 esac
2456 done
2457 else
2458 echo "$as_me: failed program was:" >&5
2459 sed 's/^/| /' conftest.$ac_ext >&5
2461 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2462 See \`config.log' for more details." >&5
2463 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2464 See \`config.log' for more details." >&2;}
2465 { (exit 1); exit 1; }; }
2468 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2470 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2471 echo "${ECHO_T}$ac_cv_objext" >&6
2472 OBJEXT=$ac_cv_objext
2473 ac_objext=$OBJEXT
2474 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2475 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2476 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2477 echo $ECHO_N "(cached) $ECHO_C" >&6
2478 else
2479 cat >conftest.$ac_ext <<_ACEOF
2480 /* confdefs.h. */
2481 _ACEOF
2482 cat confdefs.h >>conftest.$ac_ext
2483 cat >>conftest.$ac_ext <<_ACEOF
2484 /* end confdefs.h. */
2487 main ()
2489 #ifndef __GNUC__
2490 choke me
2491 #endif
2494 return 0;
2496 _ACEOF
2497 rm -f conftest.$ac_objext
2498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2499 (eval $ac_compile) 2>conftest.er1
2500 ac_status=$?
2501 grep -v '^ *+' conftest.er1 >conftest.err
2502 rm -f conftest.er1
2503 cat conftest.err >&5
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); } &&
2506 { ac_try='test -z "$ac_c_werror_flag"
2507 || test ! -s conftest.err'
2508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2509 (eval $ac_try) 2>&5
2510 ac_status=$?
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); }; } &&
2513 { ac_try='test -s conftest.$ac_objext'
2514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515 (eval $ac_try) 2>&5
2516 ac_status=$?
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }; }; then
2519 ac_compiler_gnu=yes
2520 else
2521 echo "$as_me: failed program was:" >&5
2522 sed 's/^/| /' conftest.$ac_ext >&5
2524 ac_compiler_gnu=no
2526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2527 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2530 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2531 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2532 GCC=`test $ac_compiler_gnu = yes && echo yes`
2533 ac_test_CFLAGS=${CFLAGS+set}
2534 ac_save_CFLAGS=$CFLAGS
2535 CFLAGS="-g"
2536 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2537 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2538 if test "${ac_cv_prog_cc_g+set}" = set; then
2539 echo $ECHO_N "(cached) $ECHO_C" >&6
2540 else
2541 cat >conftest.$ac_ext <<_ACEOF
2542 /* confdefs.h. */
2543 _ACEOF
2544 cat confdefs.h >>conftest.$ac_ext
2545 cat >>conftest.$ac_ext <<_ACEOF
2546 /* end confdefs.h. */
2549 main ()
2553 return 0;
2555 _ACEOF
2556 rm -f conftest.$ac_objext
2557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2558 (eval $ac_compile) 2>conftest.er1
2559 ac_status=$?
2560 grep -v '^ *+' conftest.er1 >conftest.err
2561 rm -f conftest.er1
2562 cat conftest.err >&5
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); } &&
2565 { ac_try='test -z "$ac_c_werror_flag"
2566 || test ! -s conftest.err'
2567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2568 (eval $ac_try) 2>&5
2569 ac_status=$?
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); }; } &&
2572 { ac_try='test -s conftest.$ac_objext'
2573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2574 (eval $ac_try) 2>&5
2575 ac_status=$?
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); }; }; then
2578 ac_cv_prog_cc_g=yes
2579 else
2580 echo "$as_me: failed program was:" >&5
2581 sed 's/^/| /' conftest.$ac_ext >&5
2583 ac_cv_prog_cc_g=no
2585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2587 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2588 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2589 if test "$ac_test_CFLAGS" = set; then
2590 CFLAGS=$ac_save_CFLAGS
2591 elif test $ac_cv_prog_cc_g = yes; then
2592 if test "$GCC" = yes; then
2593 CFLAGS="-g -O2"
2594 else
2595 CFLAGS="-g"
2597 else
2598 if test "$GCC" = yes; then
2599 CFLAGS="-O2"
2600 else
2601 CFLAGS=
2604 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2605 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2606 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2607 echo $ECHO_N "(cached) $ECHO_C" >&6
2608 else
2609 ac_cv_prog_cc_stdc=no
2610 ac_save_CC=$CC
2611 cat >conftest.$ac_ext <<_ACEOF
2612 /* confdefs.h. */
2613 _ACEOF
2614 cat confdefs.h >>conftest.$ac_ext
2615 cat >>conftest.$ac_ext <<_ACEOF
2616 /* end confdefs.h. */
2617 #include <stdarg.h>
2618 #include <stdio.h>
2619 #include <sys/types.h>
2620 #include <sys/stat.h>
2621 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2622 struct buf { int x; };
2623 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2624 static char *e (p, i)
2625 char **p;
2626 int i;
2628 return p[i];
2630 static char *f (char * (*g) (char **, int), char **p, ...)
2632 char *s;
2633 va_list v;
2634 va_start (v,p);
2635 s = g (p, va_arg (v,int));
2636 va_end (v);
2637 return s;
2640 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2641 function prototypes and stuff, but not '\xHH' hex character constants.
2642 These don't provoke an error unfortunately, instead are silently treated
2643 as 'x'. The following induces an error, until -std1 is added to get
2644 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2645 array size at least. It's necessary to write '\x00'==0 to get something
2646 that's true only with -std1. */
2647 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2649 int test (int i, double x);
2650 struct s1 {int (*f) (int a);};
2651 struct s2 {int (*f) (double a);};
2652 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2653 int argc;
2654 char **argv;
2656 main ()
2658 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2660 return 0;
2662 _ACEOF
2663 # Don't try gcc -ansi; that turns off useful extensions and
2664 # breaks some systems' header files.
2665 # AIX -qlanglvl=ansi
2666 # Ultrix and OSF/1 -std1
2667 # HP-UX 10.20 and later -Ae
2668 # HP-UX older versions -Aa -D_HPUX_SOURCE
2669 # SVR4 -Xc -D__EXTENSIONS__
2670 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2672 CC="$ac_save_CC $ac_arg"
2673 rm -f conftest.$ac_objext
2674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2675 (eval $ac_compile) 2>conftest.er1
2676 ac_status=$?
2677 grep -v '^ *+' conftest.er1 >conftest.err
2678 rm -f conftest.er1
2679 cat conftest.err >&5
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); } &&
2682 { ac_try='test -z "$ac_c_werror_flag"
2683 || test ! -s conftest.err'
2684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2685 (eval $ac_try) 2>&5
2686 ac_status=$?
2687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688 (exit $ac_status); }; } &&
2689 { ac_try='test -s conftest.$ac_objext'
2690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2691 (eval $ac_try) 2>&5
2692 ac_status=$?
2693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694 (exit $ac_status); }; }; then
2695 ac_cv_prog_cc_stdc=$ac_arg
2696 break
2697 else
2698 echo "$as_me: failed program was:" >&5
2699 sed 's/^/| /' conftest.$ac_ext >&5
2702 rm -f conftest.err conftest.$ac_objext
2703 done
2704 rm -f conftest.$ac_ext conftest.$ac_objext
2705 CC=$ac_save_CC
2709 case "x$ac_cv_prog_cc_stdc" in
2710 x|xno)
2711 echo "$as_me:$LINENO: result: none needed" >&5
2712 echo "${ECHO_T}none needed" >&6 ;;
2714 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2715 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2716 CC="$CC $ac_cv_prog_cc_stdc" ;;
2717 esac
2719 # Some people use a C++ compiler to compile C. Since we use `exit',
2720 # in C++ we need to declare it. In case someone uses the same compiler
2721 # for both compiling C and C++ we need to have the C++ compiler decide
2722 # the declaration of exit, since it's the most demanding environment.
2723 cat >conftest.$ac_ext <<_ACEOF
2724 #ifndef __cplusplus
2725 choke me
2726 #endif
2727 _ACEOF
2728 rm -f conftest.$ac_objext
2729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2730 (eval $ac_compile) 2>conftest.er1
2731 ac_status=$?
2732 grep -v '^ *+' conftest.er1 >conftest.err
2733 rm -f conftest.er1
2734 cat conftest.err >&5
2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); } &&
2737 { ac_try='test -z "$ac_c_werror_flag"
2738 || test ! -s conftest.err'
2739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2740 (eval $ac_try) 2>&5
2741 ac_status=$?
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); }; } &&
2744 { ac_try='test -s conftest.$ac_objext'
2745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2746 (eval $ac_try) 2>&5
2747 ac_status=$?
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); }; }; then
2750 for ac_declaration in \
2751 '' \
2752 'extern "C" void std::exit (int) throw (); using std::exit;' \
2753 'extern "C" void std::exit (int); using std::exit;' \
2754 'extern "C" void exit (int) throw ();' \
2755 'extern "C" void exit (int);' \
2756 'void exit (int);'
2758 cat >conftest.$ac_ext <<_ACEOF
2759 /* confdefs.h. */
2760 _ACEOF
2761 cat confdefs.h >>conftest.$ac_ext
2762 cat >>conftest.$ac_ext <<_ACEOF
2763 /* end confdefs.h. */
2764 $ac_declaration
2765 #include <stdlib.h>
2767 main ()
2769 exit (42);
2771 return 0;
2773 _ACEOF
2774 rm -f conftest.$ac_objext
2775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2776 (eval $ac_compile) 2>conftest.er1
2777 ac_status=$?
2778 grep -v '^ *+' conftest.er1 >conftest.err
2779 rm -f conftest.er1
2780 cat conftest.err >&5
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); } &&
2783 { ac_try='test -z "$ac_c_werror_flag"
2784 || test ! -s conftest.err'
2785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786 (eval $ac_try) 2>&5
2787 ac_status=$?
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); }; } &&
2790 { ac_try='test -s conftest.$ac_objext'
2791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2792 (eval $ac_try) 2>&5
2793 ac_status=$?
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); }; }; then
2797 else
2798 echo "$as_me: failed program was:" >&5
2799 sed 's/^/| /' conftest.$ac_ext >&5
2801 continue
2803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2804 cat >conftest.$ac_ext <<_ACEOF
2805 /* confdefs.h. */
2806 _ACEOF
2807 cat confdefs.h >>conftest.$ac_ext
2808 cat >>conftest.$ac_ext <<_ACEOF
2809 /* end confdefs.h. */
2810 $ac_declaration
2812 main ()
2814 exit (42);
2816 return 0;
2818 _ACEOF
2819 rm -f conftest.$ac_objext
2820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2821 (eval $ac_compile) 2>conftest.er1
2822 ac_status=$?
2823 grep -v '^ *+' conftest.er1 >conftest.err
2824 rm -f conftest.er1
2825 cat conftest.err >&5
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); } &&
2828 { ac_try='test -z "$ac_c_werror_flag"
2829 || test ! -s conftest.err'
2830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2831 (eval $ac_try) 2>&5
2832 ac_status=$?
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); }; } &&
2835 { ac_try='test -s conftest.$ac_objext'
2836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2837 (eval $ac_try) 2>&5
2838 ac_status=$?
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); }; }; then
2841 break
2842 else
2843 echo "$as_me: failed program was:" >&5
2844 sed 's/^/| /' conftest.$ac_ext >&5
2847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2848 done
2849 rm -f conftest*
2850 if test -n "$ac_declaration"; then
2851 echo '#ifdef __cplusplus' >>confdefs.h
2852 echo $ac_declaration >>confdefs.h
2853 echo '#endif' >>confdefs.h
2856 else
2857 echo "$as_me: failed program was:" >&5
2858 sed 's/^/| /' conftest.$ac_ext >&5
2861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2862 ac_ext=c
2863 ac_cpp='$CPP $CPPFLAGS'
2864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2867 DEPDIR="${am__leading_dot}deps"
2869 ac_config_commands="$ac_config_commands depfiles"
2872 am_make=${MAKE-make}
2873 cat > confinc << 'END'
2874 am__doit:
2875 @echo done
2876 .PHONY: am__doit
2878 # If we don't find an include directive, just comment out the code.
2879 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2880 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2881 am__include="#"
2882 am__quote=
2883 _am_result=none
2884 # First try GNU make style include.
2885 echo "include confinc" > confmf
2886 # We grep out `Entering directory' and `Leaving directory'
2887 # messages which can occur if `w' ends up in MAKEFLAGS.
2888 # In particular we don't look at `^make:' because GNU make might
2889 # be invoked under some other name (usually "gmake"), in which
2890 # case it prints its new name instead of `make'.
2891 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2892 am__include=include
2893 am__quote=
2894 _am_result=GNU
2896 # Now try BSD make style include.
2897 if test "$am__include" = "#"; then
2898 echo '.include "confinc"' > confmf
2899 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2900 am__include=.include
2901 am__quote="\""
2902 _am_result=BSD
2907 echo "$as_me:$LINENO: result: $_am_result" >&5
2908 echo "${ECHO_T}$_am_result" >&6
2909 rm -f confinc confmf
2911 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2912 if test "${enable_dependency_tracking+set}" = set; then
2913 enableval="$enable_dependency_tracking"
2916 if test "x$enable_dependency_tracking" != xno; then
2917 am_depcomp="$ac_aux_dir/depcomp"
2918 AMDEPBACKSLASH='\'
2922 if test "x$enable_dependency_tracking" != xno; then
2923 AMDEP_TRUE=
2924 AMDEP_FALSE='#'
2925 else
2926 AMDEP_TRUE='#'
2927 AMDEP_FALSE=
2933 depcc="$CC" am_compiler_list=
2935 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2936 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2937 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2938 echo $ECHO_N "(cached) $ECHO_C" >&6
2939 else
2940 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2941 # We make a subdir and do the tests there. Otherwise we can end up
2942 # making bogus files that we don't know about and never remove. For
2943 # instance it was reported that on HP-UX the gcc test will end up
2944 # making a dummy file named `D' -- because `-MD' means `put the output
2945 # in D'.
2946 mkdir conftest.dir
2947 # Copy depcomp to subdir because otherwise we won't find it if we're
2948 # using a relative directory.
2949 cp "$am_depcomp" conftest.dir
2950 cd conftest.dir
2951 # We will build objects and dependencies in a subdirectory because
2952 # it helps to detect inapplicable dependency modes. For instance
2953 # both Tru64's cc and ICC support -MD to output dependencies as a
2954 # side effect of compilation, but ICC will put the dependencies in
2955 # the current directory while Tru64 will put them in the object
2956 # directory.
2957 mkdir sub
2959 am_cv_CC_dependencies_compiler_type=none
2960 if test "$am_compiler_list" = ""; then
2961 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2963 for depmode in $am_compiler_list; do
2964 # Setup a source with many dependencies, because some compilers
2965 # like to wrap large dependency lists on column 80 (with \), and
2966 # we should not choose a depcomp mode which is confused by this.
2968 # We need to recreate these files for each test, as the compiler may
2969 # overwrite some of them when testing with obscure command lines.
2970 # This happens at least with the AIX C compiler.
2971 : > sub/conftest.c
2972 for i in 1 2 3 4 5 6; do
2973 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2974 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2975 # Solaris 8's {/usr,}/bin/sh.
2976 touch sub/conftst$i.h
2977 done
2978 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2980 case $depmode in
2981 nosideeffect)
2982 # after this tag, mechanisms are not by side-effect, so they'll
2983 # only be used when explicitly requested
2984 if test "x$enable_dependency_tracking" = xyes; then
2985 continue
2986 else
2987 break
2990 none) break ;;
2991 esac
2992 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2993 # mode. It turns out that the SunPro C++ compiler does not properly
2994 # handle `-M -o', and we need to detect this.
2995 if depmode=$depmode \
2996 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2997 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2998 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2999 >/dev/null 2>conftest.err &&
3000 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3001 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3002 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3003 # icc doesn't choke on unknown options, it will just issue warnings
3004 # or remarks (even with -Werror). So we grep stderr for any message
3005 # that says an option was ignored or not supported.
3006 # When given -MP, icc 7.0 and 7.1 complain thusly:
3007 # icc: Command line warning: ignoring option '-M'; no argument required
3008 # The diagnosis changed in icc 8.0:
3009 # icc: Command line remark: option '-MP' not supported
3010 if (grep 'ignoring option' conftest.err ||
3011 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3012 am_cv_CC_dependencies_compiler_type=$depmode
3013 break
3016 done
3018 cd ..
3019 rm -rf conftest.dir
3020 else
3021 am_cv_CC_dependencies_compiler_type=none
3025 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3026 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3027 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3032 test "x$enable_dependency_tracking" != xno \
3033 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3034 am__fastdepCC_TRUE=
3035 am__fastdepCC_FALSE='#'
3036 else
3037 am__fastdepCC_TRUE='#'
3038 am__fastdepCC_FALSE=
3042 ac_ext=cc
3043 ac_cpp='$CXXCPP $CPPFLAGS'
3044 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3045 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3046 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3047 if test -n "$ac_tool_prefix"; then
3048 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3050 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3051 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3052 echo "$as_me:$LINENO: checking for $ac_word" >&5
3053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3054 if test "${ac_cv_prog_CXX+set}" = set; then
3055 echo $ECHO_N "(cached) $ECHO_C" >&6
3056 else
3057 if test -n "$CXX"; then
3058 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3059 else
3060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061 for as_dir in $PATH
3063 IFS=$as_save_IFS
3064 test -z "$as_dir" && as_dir=.
3065 for ac_exec_ext in '' $ac_executable_extensions; do
3066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3067 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3069 break 2
3071 done
3072 done
3076 CXX=$ac_cv_prog_CXX
3077 if test -n "$CXX"; then
3078 echo "$as_me:$LINENO: result: $CXX" >&5
3079 echo "${ECHO_T}$CXX" >&6
3080 else
3081 echo "$as_me:$LINENO: result: no" >&5
3082 echo "${ECHO_T}no" >&6
3085 test -n "$CXX" && break
3086 done
3088 if test -z "$CXX"; then
3089 ac_ct_CXX=$CXX
3090 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3092 # Extract the first word of "$ac_prog", so it can be a program name with args.
3093 set dummy $ac_prog; ac_word=$2
3094 echo "$as_me:$LINENO: checking for $ac_word" >&5
3095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3096 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3097 echo $ECHO_N "(cached) $ECHO_C" >&6
3098 else
3099 if test -n "$ac_ct_CXX"; then
3100 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3101 else
3102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3103 for as_dir in $PATH
3105 IFS=$as_save_IFS
3106 test -z "$as_dir" && as_dir=.
3107 for ac_exec_ext in '' $ac_executable_extensions; do
3108 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3109 ac_cv_prog_ac_ct_CXX="$ac_prog"
3110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3111 break 2
3113 done
3114 done
3118 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3119 if test -n "$ac_ct_CXX"; then
3120 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3121 echo "${ECHO_T}$ac_ct_CXX" >&6
3122 else
3123 echo "$as_me:$LINENO: result: no" >&5
3124 echo "${ECHO_T}no" >&6
3127 test -n "$ac_ct_CXX" && break
3128 done
3129 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3131 CXX=$ac_ct_CXX
3135 # Provide some information about the compiler.
3136 echo "$as_me:$LINENO:" \
3137 "checking for C++ compiler version" >&5
3138 ac_compiler=`set X $ac_compile; echo $2`
3139 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3140 (eval $ac_compiler --version </dev/null >&5) 2>&5
3141 ac_status=$?
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); }
3144 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3145 (eval $ac_compiler -v </dev/null >&5) 2>&5
3146 ac_status=$?
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); }
3149 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3150 (eval $ac_compiler -V </dev/null >&5) 2>&5
3151 ac_status=$?
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); }
3155 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3156 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3157 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3158 echo $ECHO_N "(cached) $ECHO_C" >&6
3159 else
3160 cat >conftest.$ac_ext <<_ACEOF
3161 /* confdefs.h. */
3162 _ACEOF
3163 cat confdefs.h >>conftest.$ac_ext
3164 cat >>conftest.$ac_ext <<_ACEOF
3165 /* end confdefs.h. */
3168 main ()
3170 #ifndef __GNUC__
3171 choke me
3172 #endif
3175 return 0;
3177 _ACEOF
3178 rm -f conftest.$ac_objext
3179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3180 (eval $ac_compile) 2>conftest.er1
3181 ac_status=$?
3182 grep -v '^ *+' conftest.er1 >conftest.err
3183 rm -f conftest.er1
3184 cat conftest.err >&5
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); } &&
3187 { ac_try='test -z "$ac_cxx_werror_flag"
3188 || test ! -s conftest.err'
3189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3190 (eval $ac_try) 2>&5
3191 ac_status=$?
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); }; } &&
3194 { ac_try='test -s conftest.$ac_objext'
3195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3196 (eval $ac_try) 2>&5
3197 ac_status=$?
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); }; }; then
3200 ac_compiler_gnu=yes
3201 else
3202 echo "$as_me: failed program was:" >&5
3203 sed 's/^/| /' conftest.$ac_ext >&5
3205 ac_compiler_gnu=no
3207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3208 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3211 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3212 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3213 GXX=`test $ac_compiler_gnu = yes && echo yes`
3214 ac_test_CXXFLAGS=${CXXFLAGS+set}
3215 ac_save_CXXFLAGS=$CXXFLAGS
3216 CXXFLAGS="-g"
3217 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3218 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3219 if test "${ac_cv_prog_cxx_g+set}" = set; then
3220 echo $ECHO_N "(cached) $ECHO_C" >&6
3221 else
3222 cat >conftest.$ac_ext <<_ACEOF
3223 /* confdefs.h. */
3224 _ACEOF
3225 cat confdefs.h >>conftest.$ac_ext
3226 cat >>conftest.$ac_ext <<_ACEOF
3227 /* end confdefs.h. */
3230 main ()
3234 return 0;
3236 _ACEOF
3237 rm -f conftest.$ac_objext
3238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3239 (eval $ac_compile) 2>conftest.er1
3240 ac_status=$?
3241 grep -v '^ *+' conftest.er1 >conftest.err
3242 rm -f conftest.er1
3243 cat conftest.err >&5
3244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245 (exit $ac_status); } &&
3246 { ac_try='test -z "$ac_cxx_werror_flag"
3247 || test ! -s conftest.err'
3248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3249 (eval $ac_try) 2>&5
3250 ac_status=$?
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); }; } &&
3253 { ac_try='test -s conftest.$ac_objext'
3254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3255 (eval $ac_try) 2>&5
3256 ac_status=$?
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); }; }; then
3259 ac_cv_prog_cxx_g=yes
3260 else
3261 echo "$as_me: failed program was:" >&5
3262 sed 's/^/| /' conftest.$ac_ext >&5
3264 ac_cv_prog_cxx_g=no
3266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3268 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3269 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3270 if test "$ac_test_CXXFLAGS" = set; then
3271 CXXFLAGS=$ac_save_CXXFLAGS
3272 elif test $ac_cv_prog_cxx_g = yes; then
3273 if test "$GXX" = yes; then
3274 CXXFLAGS="-g -O2"
3275 else
3276 CXXFLAGS="-g"
3278 else
3279 if test "$GXX" = yes; then
3280 CXXFLAGS="-O2"
3281 else
3282 CXXFLAGS=
3285 for ac_declaration in \
3286 '' \
3287 'extern "C" void std::exit (int) throw (); using std::exit;' \
3288 'extern "C" void std::exit (int); using std::exit;' \
3289 'extern "C" void exit (int) throw ();' \
3290 'extern "C" void exit (int);' \
3291 'void exit (int);'
3293 cat >conftest.$ac_ext <<_ACEOF
3294 /* confdefs.h. */
3295 _ACEOF
3296 cat confdefs.h >>conftest.$ac_ext
3297 cat >>conftest.$ac_ext <<_ACEOF
3298 /* end confdefs.h. */
3299 $ac_declaration
3300 #include <stdlib.h>
3302 main ()
3304 exit (42);
3306 return 0;
3308 _ACEOF
3309 rm -f conftest.$ac_objext
3310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3311 (eval $ac_compile) 2>conftest.er1
3312 ac_status=$?
3313 grep -v '^ *+' conftest.er1 >conftest.err
3314 rm -f conftest.er1
3315 cat conftest.err >&5
3316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317 (exit $ac_status); } &&
3318 { ac_try='test -z "$ac_cxx_werror_flag"
3319 || test ! -s conftest.err'
3320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3321 (eval $ac_try) 2>&5
3322 ac_status=$?
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); }; } &&
3325 { ac_try='test -s conftest.$ac_objext'
3326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3327 (eval $ac_try) 2>&5
3328 ac_status=$?
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); }; }; then
3332 else
3333 echo "$as_me: failed program was:" >&5
3334 sed 's/^/| /' conftest.$ac_ext >&5
3336 continue
3338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3339 cat >conftest.$ac_ext <<_ACEOF
3340 /* confdefs.h. */
3341 _ACEOF
3342 cat confdefs.h >>conftest.$ac_ext
3343 cat >>conftest.$ac_ext <<_ACEOF
3344 /* end confdefs.h. */
3345 $ac_declaration
3347 main ()
3349 exit (42);
3351 return 0;
3353 _ACEOF
3354 rm -f conftest.$ac_objext
3355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3356 (eval $ac_compile) 2>conftest.er1
3357 ac_status=$?
3358 grep -v '^ *+' conftest.er1 >conftest.err
3359 rm -f conftest.er1
3360 cat conftest.err >&5
3361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362 (exit $ac_status); } &&
3363 { ac_try='test -z "$ac_cxx_werror_flag"
3364 || test ! -s conftest.err'
3365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3366 (eval $ac_try) 2>&5
3367 ac_status=$?
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); }; } &&
3370 { ac_try='test -s conftest.$ac_objext'
3371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3372 (eval $ac_try) 2>&5
3373 ac_status=$?
3374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375 (exit $ac_status); }; }; then
3376 break
3377 else
3378 echo "$as_me: failed program was:" >&5
3379 sed 's/^/| /' conftest.$ac_ext >&5
3382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3383 done
3384 rm -f conftest*
3385 if test -n "$ac_declaration"; then
3386 echo '#ifdef __cplusplus' >>confdefs.h
3387 echo $ac_declaration >>confdefs.h
3388 echo '#endif' >>confdefs.h
3391 ac_ext=c
3392 ac_cpp='$CPP $CPPFLAGS'
3393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3397 depcc="$CXX" am_compiler_list=
3399 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3400 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3401 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3402 echo $ECHO_N "(cached) $ECHO_C" >&6
3403 else
3404 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3405 # We make a subdir and do the tests there. Otherwise we can end up
3406 # making bogus files that we don't know about and never remove. For
3407 # instance it was reported that on HP-UX the gcc test will end up
3408 # making a dummy file named `D' -- because `-MD' means `put the output
3409 # in D'.
3410 mkdir conftest.dir
3411 # Copy depcomp to subdir because otherwise we won't find it if we're
3412 # using a relative directory.
3413 cp "$am_depcomp" conftest.dir
3414 cd conftest.dir
3415 # We will build objects and dependencies in a subdirectory because
3416 # it helps to detect inapplicable dependency modes. For instance
3417 # both Tru64's cc and ICC support -MD to output dependencies as a
3418 # side effect of compilation, but ICC will put the dependencies in
3419 # the current directory while Tru64 will put them in the object
3420 # directory.
3421 mkdir sub
3423 am_cv_CXX_dependencies_compiler_type=none
3424 if test "$am_compiler_list" = ""; then
3425 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3427 for depmode in $am_compiler_list; do
3428 # Setup a source with many dependencies, because some compilers
3429 # like to wrap large dependency lists on column 80 (with \), and
3430 # we should not choose a depcomp mode which is confused by this.
3432 # We need to recreate these files for each test, as the compiler may
3433 # overwrite some of them when testing with obscure command lines.
3434 # This happens at least with the AIX C compiler.
3435 : > sub/conftest.c
3436 for i in 1 2 3 4 5 6; do
3437 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3438 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3439 # Solaris 8's {/usr,}/bin/sh.
3440 touch sub/conftst$i.h
3441 done
3442 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3444 case $depmode in
3445 nosideeffect)
3446 # after this tag, mechanisms are not by side-effect, so they'll
3447 # only be used when explicitly requested
3448 if test "x$enable_dependency_tracking" = xyes; then
3449 continue
3450 else
3451 break
3454 none) break ;;
3455 esac
3456 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3457 # mode. It turns out that the SunPro C++ compiler does not properly
3458 # handle `-M -o', and we need to detect this.
3459 if depmode=$depmode \
3460 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3461 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3462 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3463 >/dev/null 2>conftest.err &&
3464 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3465 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3466 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3467 # icc doesn't choke on unknown options, it will just issue warnings
3468 # or remarks (even with -Werror). So we grep stderr for any message
3469 # that says an option was ignored or not supported.
3470 # When given -MP, icc 7.0 and 7.1 complain thusly:
3471 # icc: Command line warning: ignoring option '-M'; no argument required
3472 # The diagnosis changed in icc 8.0:
3473 # icc: Command line remark: option '-MP' not supported
3474 if (grep 'ignoring option' conftest.err ||
3475 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3476 am_cv_CXX_dependencies_compiler_type=$depmode
3477 break
3480 done
3482 cd ..
3483 rm -rf conftest.dir
3484 else
3485 am_cv_CXX_dependencies_compiler_type=none
3489 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3490 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3491 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3496 test "x$enable_dependency_tracking" != xno \
3497 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3498 am__fastdepCXX_TRUE=
3499 am__fastdepCXX_FALSE='#'
3500 else
3501 am__fastdepCXX_TRUE='#'
3502 am__fastdepCXX_FALSE=
3506 # Find a good install program. We prefer a C program (faster),
3507 # so one script is as good as another. But avoid the broken or
3508 # incompatible versions:
3509 # SysV /etc/install, /usr/sbin/install
3510 # SunOS /usr/etc/install
3511 # IRIX /sbin/install
3512 # AIX /bin/install
3513 # AmigaOS /C/install, which installs bootblocks on floppy discs
3514 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3515 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3516 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3517 # OS/2's system install, which has a completely different semantic
3518 # ./install, which can be erroneously created by make from ./install.sh.
3519 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3520 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3521 if test -z "$INSTALL"; then
3522 if test "${ac_cv_path_install+set}" = set; then
3523 echo $ECHO_N "(cached) $ECHO_C" >&6
3524 else
3525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526 for as_dir in $PATH
3528 IFS=$as_save_IFS
3529 test -z "$as_dir" && as_dir=.
3530 # Account for people who put trailing slashes in PATH elements.
3531 case $as_dir/ in
3532 ./ | .// | /cC/* | \
3533 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3534 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3535 /usr/ucb/* ) ;;
3537 # OSF1 and SCO ODT 3.0 have their own names for install.
3538 # Don't use installbsd from OSF since it installs stuff as root
3539 # by default.
3540 for ac_prog in ginstall scoinst install; do
3541 for ac_exec_ext in '' $ac_executable_extensions; do
3542 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3543 if test $ac_prog = install &&
3544 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3545 # AIX install. It has an incompatible calling convention.
3547 elif test $ac_prog = install &&
3548 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3549 # program-specific install script used by HP pwplus--don't use.
3551 else
3552 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3553 break 3
3556 done
3557 done
3559 esac
3560 done
3564 if test "${ac_cv_path_install+set}" = set; then
3565 INSTALL=$ac_cv_path_install
3566 else
3567 # As a last resort, use the slow shell script. We don't cache a
3568 # path for INSTALL within a source directory, because that will
3569 # break other packages using the cache if that directory is
3570 # removed, or if the path is relative.
3571 INSTALL=$ac_install_sh
3574 echo "$as_me:$LINENO: result: $INSTALL" >&5
3575 echo "${ECHO_T}$INSTALL" >&6
3577 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3578 # It thinks the first close brace ends the variable substitution.
3579 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3581 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3583 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3586 # Make sure we can run config.sub.
3587 $ac_config_sub sun4 >/dev/null 2>&1 ||
3588 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3589 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3590 { (exit 1); exit 1; }; }
3592 echo "$as_me:$LINENO: checking build system type" >&5
3593 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3594 if test "${ac_cv_build+set}" = set; then
3595 echo $ECHO_N "(cached) $ECHO_C" >&6
3596 else
3597 ac_cv_build_alias=$build_alias
3598 test -z "$ac_cv_build_alias" &&
3599 ac_cv_build_alias=`$ac_config_guess`
3600 test -z "$ac_cv_build_alias" &&
3601 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3602 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3603 { (exit 1); exit 1; }; }
3604 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3605 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3606 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3607 { (exit 1); exit 1; }; }
3610 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3611 echo "${ECHO_T}$ac_cv_build" >&6
3612 build=$ac_cv_build
3613 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3614 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3615 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3618 echo "$as_me:$LINENO: checking host system type" >&5
3619 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3620 if test "${ac_cv_host+set}" = set; then
3621 echo $ECHO_N "(cached) $ECHO_C" >&6
3622 else
3623 ac_cv_host_alias=$host_alias
3624 test -z "$ac_cv_host_alias" &&
3625 ac_cv_host_alias=$ac_cv_build_alias
3626 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3627 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3628 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3629 { (exit 1); exit 1; }; }
3632 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3633 echo "${ECHO_T}$ac_cv_host" >&6
3634 host=$ac_cv_host
3635 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3636 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3637 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3646 # Check whether --enable-shared or --disable-shared was given.
3647 if test "${enable_shared+set}" = set; then
3648 enableval="$enable_shared"
3649 p=${PACKAGE-default}
3650 case $enableval in
3651 yes) enable_shared=yes ;;
3652 no) enable_shared=no ;;
3654 enable_shared=no
3655 # Look at the argument we got. We use all the common list separators.
3656 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3657 for pkg in $enableval; do
3658 IFS="$lt_save_ifs"
3659 if test "X$pkg" = "X$p"; then
3660 enable_shared=yes
3662 done
3663 IFS="$lt_save_ifs"
3665 esac
3666 else
3667 enable_shared=yes
3670 # Check whether --enable-static or --disable-static was given.
3671 if test "${enable_static+set}" = set; then
3672 enableval="$enable_static"
3673 p=${PACKAGE-default}
3674 case $enableval in
3675 yes) enable_static=yes ;;
3676 no) enable_static=no ;;
3678 enable_static=no
3679 # Look at the argument we got. We use all the common list separators.
3680 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3681 for pkg in $enableval; do
3682 IFS="$lt_save_ifs"
3683 if test "X$pkg" = "X$p"; then
3684 enable_static=yes
3686 done
3687 IFS="$lt_save_ifs"
3689 esac
3690 else
3691 enable_static=yes
3694 # Check whether --enable-fast-install or --disable-fast-install was given.
3695 if test "${enable_fast_install+set}" = set; then
3696 enableval="$enable_fast_install"
3697 p=${PACKAGE-default}
3698 case $enableval in
3699 yes) enable_fast_install=yes ;;
3700 no) enable_fast_install=no ;;
3702 enable_fast_install=no
3703 # Look at the argument we got. We use all the common list separators.
3704 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3705 for pkg in $enableval; do
3706 IFS="$lt_save_ifs"
3707 if test "X$pkg" = "X$p"; then
3708 enable_fast_install=yes
3710 done
3711 IFS="$lt_save_ifs"
3713 esac
3714 else
3715 enable_fast_install=yes
3718 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3719 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3720 if test "${lt_cv_path_SED+set}" = set; then
3721 echo $ECHO_N "(cached) $ECHO_C" >&6
3722 else
3723 # Loop through the user's path and test for sed and gsed.
3724 # Then use that list of sed's as ones to test for truncation.
3725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3726 for as_dir in $PATH
3728 IFS=$as_save_IFS
3729 test -z "$as_dir" && as_dir=.
3730 for lt_ac_prog in sed gsed; do
3731 for ac_exec_ext in '' $ac_executable_extensions; do
3732 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3733 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3735 done
3736 done
3737 done
3738 lt_ac_max=0
3739 lt_ac_count=0
3740 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3741 # along with /bin/sed that truncates output.
3742 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3743 test ! -f $lt_ac_sed && continue
3744 cat /dev/null > conftest.in
3745 lt_ac_count=0
3746 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3747 # Check for GNU sed and select it if it is found.
3748 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3749 lt_cv_path_SED=$lt_ac_sed
3750 break
3752 while true; do
3753 cat conftest.in conftest.in >conftest.tmp
3754 mv conftest.tmp conftest.in
3755 cp conftest.in conftest.nl
3756 echo >>conftest.nl
3757 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3758 cmp -s conftest.out conftest.nl || break
3759 # 10000 chars as input seems more than enough
3760 test $lt_ac_count -gt 10 && break
3761 lt_ac_count=`expr $lt_ac_count + 1`
3762 if test $lt_ac_count -gt $lt_ac_max; then
3763 lt_ac_max=$lt_ac_count
3764 lt_cv_path_SED=$lt_ac_sed
3766 done
3767 done
3771 SED=$lt_cv_path_SED
3772 echo "$as_me:$LINENO: result: $SED" >&5
3773 echo "${ECHO_T}$SED" >&6
3775 echo "$as_me:$LINENO: checking for egrep" >&5
3776 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3777 if test "${ac_cv_prog_egrep+set}" = set; then
3778 echo $ECHO_N "(cached) $ECHO_C" >&6
3779 else
3780 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3781 then ac_cv_prog_egrep='grep -E'
3782 else ac_cv_prog_egrep='egrep'
3785 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3786 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3787 EGREP=$ac_cv_prog_egrep
3791 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3792 if test "${with_gnu_ld+set}" = set; then
3793 withval="$with_gnu_ld"
3794 test "$withval" = no || with_gnu_ld=yes
3795 else
3796 with_gnu_ld=no
3798 ac_prog=ld
3799 if test "$GCC" = yes; then
3800 # Check if gcc -print-prog-name=ld gives a path.
3801 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3802 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3803 case $host in
3804 *-*-mingw*)
3805 # gcc leaves a trailing carriage return which upsets mingw
3806 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3808 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3809 esac
3810 case $ac_prog in
3811 # Accept absolute paths.
3812 [\\/]* | ?:[\\/]*)
3813 re_direlt='/[^/][^/]*/\.\./'
3814 # Canonicalize the pathname of ld
3815 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3816 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3817 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3818 done
3819 test -z "$LD" && LD="$ac_prog"
3822 # If it fails, then pretend we aren't using GCC.
3823 ac_prog=ld
3826 # If it is relative, then search for the first ld in PATH.
3827 with_gnu_ld=unknown
3829 esac
3830 elif test "$with_gnu_ld" = yes; then
3831 echo "$as_me:$LINENO: checking for GNU ld" >&5
3832 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3833 else
3834 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3835 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3837 if test "${lt_cv_path_LD+set}" = set; then
3838 echo $ECHO_N "(cached) $ECHO_C" >&6
3839 else
3840 if test -z "$LD"; then
3841 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3842 for ac_dir in $PATH; do
3843 IFS="$lt_save_ifs"
3844 test -z "$ac_dir" && ac_dir=.
3845 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3846 lt_cv_path_LD="$ac_dir/$ac_prog"
3847 # Check to see if the program is GNU ld. I'd rather use --version,
3848 # but apparently some GNU ld's only accept -v.
3849 # Break only if it was the GNU/non-GNU ld that we prefer.
3850 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3851 *GNU* | *'with BFD'*)
3852 test "$with_gnu_ld" != no && break
3855 test "$with_gnu_ld" != yes && break
3857 esac
3859 done
3860 IFS="$lt_save_ifs"
3861 else
3862 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3866 LD="$lt_cv_path_LD"
3867 if test -n "$LD"; then
3868 echo "$as_me:$LINENO: result: $LD" >&5
3869 echo "${ECHO_T}$LD" >&6
3870 else
3871 echo "$as_me:$LINENO: result: no" >&5
3872 echo "${ECHO_T}no" >&6
3874 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3875 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3876 { (exit 1); exit 1; }; }
3877 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3878 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3879 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3880 echo $ECHO_N "(cached) $ECHO_C" >&6
3881 else
3882 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3883 case `$LD -v 2>&1 </dev/null` in
3884 *GNU* | *'with BFD'*)
3885 lt_cv_prog_gnu_ld=yes
3888 lt_cv_prog_gnu_ld=no
3890 esac
3892 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3893 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3894 with_gnu_ld=$lt_cv_prog_gnu_ld
3897 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3898 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3899 if test "${lt_cv_ld_reload_flag+set}" = set; then
3900 echo $ECHO_N "(cached) $ECHO_C" >&6
3901 else
3902 lt_cv_ld_reload_flag='-r'
3904 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3905 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3906 reload_flag=$lt_cv_ld_reload_flag
3907 case $reload_flag in
3908 "" | " "*) ;;
3909 *) reload_flag=" $reload_flag" ;;
3910 esac
3911 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3912 case $host_os in
3913 darwin*)
3914 if test "$GCC" = yes; then
3915 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3916 else
3917 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3920 esac
3922 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3923 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3924 if test "${lt_cv_path_NM+set}" = set; then
3925 echo $ECHO_N "(cached) $ECHO_C" >&6
3926 else
3927 if test -n "$NM"; then
3928 # Let the user override the test.
3929 lt_cv_path_NM="$NM"
3930 else
3931 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3932 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3933 IFS="$lt_save_ifs"
3934 test -z "$ac_dir" && ac_dir=.
3935 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3936 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3937 # Check to see if the nm accepts a BSD-compat flag.
3938 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3939 # nm: unknown option "B" ignored
3940 # Tru64's nm complains that /dev/null is an invalid object file
3941 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3942 */dev/null* | *'Invalid file or object type'*)
3943 lt_cv_path_NM="$tmp_nm -B"
3944 break
3947 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3948 */dev/null*)
3949 lt_cv_path_NM="$tmp_nm -p"
3950 break
3953 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3954 continue # so that we can try to find one that supports BSD flags
3956 esac
3957 esac
3959 done
3960 IFS="$lt_save_ifs"
3961 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3964 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3965 echo "${ECHO_T}$lt_cv_path_NM" >&6
3966 NM="$lt_cv_path_NM"
3968 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3969 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3970 LN_S=$as_ln_s
3971 if test "$LN_S" = "ln -s"; then
3972 echo "$as_me:$LINENO: result: yes" >&5
3973 echo "${ECHO_T}yes" >&6
3974 else
3975 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3976 echo "${ECHO_T}no, using $LN_S" >&6
3979 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3980 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3981 if test "${lt_cv_deplibs_check_method+set}" = set; then
3982 echo $ECHO_N "(cached) $ECHO_C" >&6
3983 else
3984 lt_cv_file_magic_cmd='$MAGIC_CMD'
3985 lt_cv_file_magic_test_file=
3986 lt_cv_deplibs_check_method='unknown'
3987 # Need to set the preceding variable on all platforms that support
3988 # interlibrary dependencies.
3989 # 'none' -- dependencies not supported.
3990 # `unknown' -- same as none, but documents that we really don't know.
3991 # 'pass_all' -- all dependencies passed with no checks.
3992 # 'test_compile' -- check by making test program.
3993 # 'file_magic [[regex]]' -- check by looking for files in library path
3994 # which responds to the $file_magic_cmd with a given extended regex.
3995 # If you have `file' or equivalent on your system and you're not sure
3996 # whether `pass_all' will *always* work, you probably want this one.
3998 case $host_os in
3999 aix4* | aix5*)
4000 lt_cv_deplibs_check_method=pass_all
4003 beos*)
4004 lt_cv_deplibs_check_method=pass_all
4007 bsdi[45]*)
4008 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4009 lt_cv_file_magic_cmd='/usr/bin/file -L'
4010 lt_cv_file_magic_test_file=/shlib/libc.so
4013 cygwin*)
4014 # func_win32_libid is a shell function defined in ltmain.sh
4015 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4016 lt_cv_file_magic_cmd='func_win32_libid'
4019 mingw* | pw32*)
4020 # Base MSYS/MinGW do not provide the 'file' command needed by
4021 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4022 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4023 lt_cv_file_magic_cmd='$OBJDUMP -f'
4026 darwin* | rhapsody*)
4027 lt_cv_deplibs_check_method=pass_all
4030 freebsd* | kfreebsd*-gnu | dragonfly*)
4031 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4032 case $host_cpu in
4033 i*86 )
4034 # Not sure whether the presence of OpenBSD here was a mistake.
4035 # Let's accept both of them until this is cleared up.
4036 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4037 lt_cv_file_magic_cmd=/usr/bin/file
4038 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4040 esac
4041 else
4042 lt_cv_deplibs_check_method=pass_all
4046 gnu*)
4047 lt_cv_deplibs_check_method=pass_all
4050 hpux10.20* | hpux11*)
4051 lt_cv_file_magic_cmd=/usr/bin/file
4052 case "$host_cpu" in
4053 ia64*)
4054 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4055 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4057 hppa*64*)
4058 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]'
4059 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4062 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4063 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4065 esac
4068 irix5* | irix6* | nonstopux*)
4069 case $LD in
4070 *-32|*"-32 ") libmagic=32-bit;;
4071 *-n32|*"-n32 ") libmagic=N32;;
4072 *-64|*"-64 ") libmagic=64-bit;;
4073 *) libmagic=never-match;;
4074 esac
4075 lt_cv_deplibs_check_method=pass_all
4078 # This must be Linux ELF.
4079 linux*)
4080 lt_cv_deplibs_check_method=pass_all
4083 netbsd*)
4084 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4085 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4086 else
4087 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4091 newos6*)
4092 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4093 lt_cv_file_magic_cmd=/usr/bin/file
4094 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4097 nto-qnx*)
4098 lt_cv_deplibs_check_method=unknown
4101 openbsd*)
4102 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4103 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4104 else
4105 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4109 osf3* | osf4* | osf5*)
4110 lt_cv_deplibs_check_method=pass_all
4113 sco3.2v5*)
4114 lt_cv_deplibs_check_method=pass_all
4117 solaris*)
4118 lt_cv_deplibs_check_method=pass_all
4121 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4122 case $host_vendor in
4123 motorola)
4124 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]'
4125 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4127 ncr)
4128 lt_cv_deplibs_check_method=pass_all
4130 sequent)
4131 lt_cv_file_magic_cmd='/bin/file'
4132 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4134 sni)
4135 lt_cv_file_magic_cmd='/bin/file'
4136 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4137 lt_cv_file_magic_test_file=/lib/libc.so
4139 siemens)
4140 lt_cv_deplibs_check_method=pass_all
4142 esac
4145 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4146 lt_cv_deplibs_check_method=pass_all
4148 esac
4151 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4152 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4153 file_magic_cmd=$lt_cv_file_magic_cmd
4154 deplibs_check_method=$lt_cv_deplibs_check_method
4155 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4158 # If no C compiler was specified, use CC.
4159 LTCC=${LTCC-"$CC"}
4161 # Allow CC to be a program name with arguments.
4162 compiler=$CC
4165 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4166 if test "${enable_libtool_lock+set}" = set; then
4167 enableval="$enable_libtool_lock"
4170 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4172 # Some flags need to be propagated to the compiler or linker for good
4173 # libtool support.
4174 case $host in
4175 ia64-*-hpux*)
4176 # Find out which ABI we are using.
4177 echo 'int i;' > conftest.$ac_ext
4178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4179 (eval $ac_compile) 2>&5
4180 ac_status=$?
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); }; then
4183 case `/usr/bin/file conftest.$ac_objext` in
4184 *ELF-32*)
4185 HPUX_IA64_MODE="32"
4187 *ELF-64*)
4188 HPUX_IA64_MODE="64"
4190 esac
4192 rm -rf conftest*
4194 *-*-irix6*)
4195 # Find out which ABI we are using.
4196 echo '#line 4196 "configure"' > conftest.$ac_ext
4197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4198 (eval $ac_compile) 2>&5
4199 ac_status=$?
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); }; then
4202 if test "$lt_cv_prog_gnu_ld" = yes; then
4203 case `/usr/bin/file conftest.$ac_objext` in
4204 *32-bit*)
4205 LD="${LD-ld} -melf32bsmip"
4207 *N32*)
4208 LD="${LD-ld} -melf32bmipn32"
4210 *64-bit*)
4211 LD="${LD-ld} -melf64bmip"
4213 esac
4214 else
4215 case `/usr/bin/file conftest.$ac_objext` in
4216 *32-bit*)
4217 LD="${LD-ld} -32"
4219 *N32*)
4220 LD="${LD-ld} -n32"
4222 *64-bit*)
4223 LD="${LD-ld} -64"
4225 esac
4228 rm -rf conftest*
4231 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4232 # Find out which ABI we are using.
4233 echo 'int i;' > conftest.$ac_ext
4234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4235 (eval $ac_compile) 2>&5
4236 ac_status=$?
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); }; then
4239 case "`/usr/bin/file conftest.o`" in
4240 *32-bit*)
4241 case $host in
4242 x86_64-*linux*)
4243 LD="${LD-ld} -m elf_i386"
4245 ppc64-*linux*|powerpc64-*linux*)
4246 LD="${LD-ld} -m elf32ppclinux"
4248 s390x-*linux*)
4249 LD="${LD-ld} -m elf_s390"
4251 sparc64-*linux*)
4252 LD="${LD-ld} -m elf32_sparc"
4254 esac
4256 *64-bit*)
4257 case $host in
4258 x86_64-*linux*)
4259 LD="${LD-ld} -m elf_x86_64"
4261 ppc*-*linux*|powerpc*-*linux*)
4262 LD="${LD-ld} -m elf64ppc"
4264 s390*-*linux*)
4265 LD="${LD-ld} -m elf64_s390"
4267 sparc*-*linux*)
4268 LD="${LD-ld} -m elf64_sparc"
4270 esac
4272 esac
4274 rm -rf conftest*
4277 *-*-sco3.2v5*)
4278 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4279 SAVE_CFLAGS="$CFLAGS"
4280 CFLAGS="$CFLAGS -belf"
4281 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4282 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4283 if test "${lt_cv_cc_needs_belf+set}" = set; then
4284 echo $ECHO_N "(cached) $ECHO_C" >&6
4285 else
4286 ac_ext=c
4287 ac_cpp='$CPP $CPPFLAGS'
4288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4292 cat >conftest.$ac_ext <<_ACEOF
4293 /* confdefs.h. */
4294 _ACEOF
4295 cat confdefs.h >>conftest.$ac_ext
4296 cat >>conftest.$ac_ext <<_ACEOF
4297 /* end confdefs.h. */
4300 main ()
4304 return 0;
4306 _ACEOF
4307 rm -f conftest.$ac_objext conftest$ac_exeext
4308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4309 (eval $ac_link) 2>conftest.er1
4310 ac_status=$?
4311 grep -v '^ *+' conftest.er1 >conftest.err
4312 rm -f conftest.er1
4313 cat conftest.err >&5
4314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315 (exit $ac_status); } &&
4316 { ac_try='test -z "$ac_c_werror_flag"
4317 || test ! -s conftest.err'
4318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4319 (eval $ac_try) 2>&5
4320 ac_status=$?
4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322 (exit $ac_status); }; } &&
4323 { ac_try='test -s conftest$ac_exeext'
4324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4325 (eval $ac_try) 2>&5
4326 ac_status=$?
4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); }; }; then
4329 lt_cv_cc_needs_belf=yes
4330 else
4331 echo "$as_me: failed program was:" >&5
4332 sed 's/^/| /' conftest.$ac_ext >&5
4334 lt_cv_cc_needs_belf=no
4336 rm -f conftest.err conftest.$ac_objext \
4337 conftest$ac_exeext conftest.$ac_ext
4338 ac_ext=c
4339 ac_cpp='$CPP $CPPFLAGS'
4340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4345 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4346 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4347 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4348 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4349 CFLAGS="$SAVE_CFLAGS"
4352 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4353 if test -n "$ac_tool_prefix"; then
4354 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4355 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4356 echo "$as_me:$LINENO: checking for $ac_word" >&5
4357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4358 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4359 echo $ECHO_N "(cached) $ECHO_C" >&6
4360 else
4361 if test -n "$DLLTOOL"; then
4362 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4363 else
4364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365 for as_dir in $PATH
4367 IFS=$as_save_IFS
4368 test -z "$as_dir" && as_dir=.
4369 for ac_exec_ext in '' $ac_executable_extensions; do
4370 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4371 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4373 break 2
4375 done
4376 done
4380 DLLTOOL=$ac_cv_prog_DLLTOOL
4381 if test -n "$DLLTOOL"; then
4382 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4383 echo "${ECHO_T}$DLLTOOL" >&6
4384 else
4385 echo "$as_me:$LINENO: result: no" >&5
4386 echo "${ECHO_T}no" >&6
4390 if test -z "$ac_cv_prog_DLLTOOL"; then
4391 ac_ct_DLLTOOL=$DLLTOOL
4392 # Extract the first word of "dlltool", so it can be a program name with args.
4393 set dummy dlltool; ac_word=$2
4394 echo "$as_me:$LINENO: checking for $ac_word" >&5
4395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4396 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4397 echo $ECHO_N "(cached) $ECHO_C" >&6
4398 else
4399 if test -n "$ac_ct_DLLTOOL"; then
4400 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4401 else
4402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403 for as_dir in $PATH
4405 IFS=$as_save_IFS
4406 test -z "$as_dir" && as_dir=.
4407 for ac_exec_ext in '' $ac_executable_extensions; do
4408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4409 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4411 break 2
4413 done
4414 done
4416 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
4419 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4420 if test -n "$ac_ct_DLLTOOL"; then
4421 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4422 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
4423 else
4424 echo "$as_me:$LINENO: result: no" >&5
4425 echo "${ECHO_T}no" >&6
4428 DLLTOOL=$ac_ct_DLLTOOL
4429 else
4430 DLLTOOL="$ac_cv_prog_DLLTOOL"
4433 if test -n "$ac_tool_prefix"; then
4434 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4435 set dummy ${ac_tool_prefix}as; ac_word=$2
4436 echo "$as_me:$LINENO: checking for $ac_word" >&5
4437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4438 if test "${ac_cv_prog_AS+set}" = set; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
4440 else
4441 if test -n "$AS"; then
4442 ac_cv_prog_AS="$AS" # Let the user override the test.
4443 else
4444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445 for as_dir in $PATH
4447 IFS=$as_save_IFS
4448 test -z "$as_dir" && as_dir=.
4449 for ac_exec_ext in '' $ac_executable_extensions; do
4450 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4451 ac_cv_prog_AS="${ac_tool_prefix}as"
4452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4453 break 2
4455 done
4456 done
4460 AS=$ac_cv_prog_AS
4461 if test -n "$AS"; then
4462 echo "$as_me:$LINENO: result: $AS" >&5
4463 echo "${ECHO_T}$AS" >&6
4464 else
4465 echo "$as_me:$LINENO: result: no" >&5
4466 echo "${ECHO_T}no" >&6
4470 if test -z "$ac_cv_prog_AS"; then
4471 ac_ct_AS=$AS
4472 # Extract the first word of "as", so it can be a program name with args.
4473 set dummy as; ac_word=$2
4474 echo "$as_me:$LINENO: checking for $ac_word" >&5
4475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4476 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4478 else
4479 if test -n "$ac_ct_AS"; then
4480 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4481 else
4482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483 for as_dir in $PATH
4485 IFS=$as_save_IFS
4486 test -z "$as_dir" && as_dir=.
4487 for ac_exec_ext in '' $ac_executable_extensions; do
4488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4489 ac_cv_prog_ac_ct_AS="as"
4490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4491 break 2
4493 done
4494 done
4496 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
4499 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4500 if test -n "$ac_ct_AS"; then
4501 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4502 echo "${ECHO_T}$ac_ct_AS" >&6
4503 else
4504 echo "$as_me:$LINENO: result: no" >&5
4505 echo "${ECHO_T}no" >&6
4508 AS=$ac_ct_AS
4509 else
4510 AS="$ac_cv_prog_AS"
4513 if test -n "$ac_tool_prefix"; then
4514 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4515 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4516 echo "$as_me:$LINENO: checking for $ac_word" >&5
4517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4518 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4519 echo $ECHO_N "(cached) $ECHO_C" >&6
4520 else
4521 if test -n "$OBJDUMP"; then
4522 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4523 else
4524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525 for as_dir in $PATH
4527 IFS=$as_save_IFS
4528 test -z "$as_dir" && as_dir=.
4529 for ac_exec_ext in '' $ac_executable_extensions; do
4530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4531 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4533 break 2
4535 done
4536 done
4540 OBJDUMP=$ac_cv_prog_OBJDUMP
4541 if test -n "$OBJDUMP"; then
4542 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4543 echo "${ECHO_T}$OBJDUMP" >&6
4544 else
4545 echo "$as_me:$LINENO: result: no" >&5
4546 echo "${ECHO_T}no" >&6
4550 if test -z "$ac_cv_prog_OBJDUMP"; then
4551 ac_ct_OBJDUMP=$OBJDUMP
4552 # Extract the first word of "objdump", so it can be a program name with args.
4553 set dummy objdump; ac_word=$2
4554 echo "$as_me:$LINENO: checking for $ac_word" >&5
4555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4556 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4557 echo $ECHO_N "(cached) $ECHO_C" >&6
4558 else
4559 if test -n "$ac_ct_OBJDUMP"; then
4560 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4561 else
4562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563 for as_dir in $PATH
4565 IFS=$as_save_IFS
4566 test -z "$as_dir" && as_dir=.
4567 for ac_exec_ext in '' $ac_executable_extensions; do
4568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4569 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4571 break 2
4573 done
4574 done
4576 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4579 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4580 if test -n "$ac_ct_OBJDUMP"; then
4581 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4582 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4583 else
4584 echo "$as_me:$LINENO: result: no" >&5
4585 echo "${ECHO_T}no" >&6
4588 OBJDUMP=$ac_ct_OBJDUMP
4589 else
4590 OBJDUMP="$ac_cv_prog_OBJDUMP"
4595 esac
4597 need_locks="$enable_libtool_lock"
4600 ac_ext=c
4601 ac_cpp='$CPP $CPPFLAGS'
4602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4605 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4606 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4607 # On Suns, sometimes $CPP names a directory.
4608 if test -n "$CPP" && test -d "$CPP"; then
4609 CPP=
4611 if test -z "$CPP"; then
4612 if test "${ac_cv_prog_CPP+set}" = set; then
4613 echo $ECHO_N "(cached) $ECHO_C" >&6
4614 else
4615 # Double quotes because CPP needs to be expanded
4616 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4618 ac_preproc_ok=false
4619 for ac_c_preproc_warn_flag in '' yes
4621 # Use a header file that comes with gcc, so configuring glibc
4622 # with a fresh cross-compiler works.
4623 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4624 # <limits.h> exists even on freestanding compilers.
4625 # On the NeXT, cc -E runs the code through the compiler's parser,
4626 # not just through cpp. "Syntax error" is here to catch this case.
4627 cat >conftest.$ac_ext <<_ACEOF
4628 /* confdefs.h. */
4629 _ACEOF
4630 cat confdefs.h >>conftest.$ac_ext
4631 cat >>conftest.$ac_ext <<_ACEOF
4632 /* end confdefs.h. */
4633 #ifdef __STDC__
4634 # include <limits.h>
4635 #else
4636 # include <assert.h>
4637 #endif
4638 Syntax error
4639 _ACEOF
4640 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4641 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4642 ac_status=$?
4643 grep -v '^ *+' conftest.er1 >conftest.err
4644 rm -f conftest.er1
4645 cat conftest.err >&5
4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647 (exit $ac_status); } >/dev/null; then
4648 if test -s conftest.err; then
4649 ac_cpp_err=$ac_c_preproc_warn_flag
4650 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4651 else
4652 ac_cpp_err=
4654 else
4655 ac_cpp_err=yes
4657 if test -z "$ac_cpp_err"; then
4659 else
4660 echo "$as_me: failed program was:" >&5
4661 sed 's/^/| /' conftest.$ac_ext >&5
4663 # Broken: fails on valid input.
4664 continue
4666 rm -f conftest.err conftest.$ac_ext
4668 # OK, works on sane cases. Now check whether non-existent headers
4669 # can be detected and how.
4670 cat >conftest.$ac_ext <<_ACEOF
4671 /* confdefs.h. */
4672 _ACEOF
4673 cat confdefs.h >>conftest.$ac_ext
4674 cat >>conftest.$ac_ext <<_ACEOF
4675 /* end confdefs.h. */
4676 #include <ac_nonexistent.h>
4677 _ACEOF
4678 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4679 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4680 ac_status=$?
4681 grep -v '^ *+' conftest.er1 >conftest.err
4682 rm -f conftest.er1
4683 cat conftest.err >&5
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); } >/dev/null; then
4686 if test -s conftest.err; then
4687 ac_cpp_err=$ac_c_preproc_warn_flag
4688 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4689 else
4690 ac_cpp_err=
4692 else
4693 ac_cpp_err=yes
4695 if test -z "$ac_cpp_err"; then
4696 # Broken: success on invalid input.
4697 continue
4698 else
4699 echo "$as_me: failed program was:" >&5
4700 sed 's/^/| /' conftest.$ac_ext >&5
4702 # Passes both tests.
4703 ac_preproc_ok=:
4704 break
4706 rm -f conftest.err conftest.$ac_ext
4708 done
4709 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4710 rm -f conftest.err conftest.$ac_ext
4711 if $ac_preproc_ok; then
4712 break
4715 done
4716 ac_cv_prog_CPP=$CPP
4719 CPP=$ac_cv_prog_CPP
4720 else
4721 ac_cv_prog_CPP=$CPP
4723 echo "$as_me:$LINENO: result: $CPP" >&5
4724 echo "${ECHO_T}$CPP" >&6
4725 ac_preproc_ok=false
4726 for ac_c_preproc_warn_flag in '' yes
4728 # Use a header file that comes with gcc, so configuring glibc
4729 # with a fresh cross-compiler works.
4730 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4731 # <limits.h> exists even on freestanding compilers.
4732 # On the NeXT, cc -E runs the code through the compiler's parser,
4733 # not just through cpp. "Syntax error" is here to catch this case.
4734 cat >conftest.$ac_ext <<_ACEOF
4735 /* confdefs.h. */
4736 _ACEOF
4737 cat confdefs.h >>conftest.$ac_ext
4738 cat >>conftest.$ac_ext <<_ACEOF
4739 /* end confdefs.h. */
4740 #ifdef __STDC__
4741 # include <limits.h>
4742 #else
4743 # include <assert.h>
4744 #endif
4745 Syntax error
4746 _ACEOF
4747 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4748 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4749 ac_status=$?
4750 grep -v '^ *+' conftest.er1 >conftest.err
4751 rm -f conftest.er1
4752 cat conftest.err >&5
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); } >/dev/null; then
4755 if test -s conftest.err; then
4756 ac_cpp_err=$ac_c_preproc_warn_flag
4757 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4758 else
4759 ac_cpp_err=
4761 else
4762 ac_cpp_err=yes
4764 if test -z "$ac_cpp_err"; then
4766 else
4767 echo "$as_me: failed program was:" >&5
4768 sed 's/^/| /' conftest.$ac_ext >&5
4770 # Broken: fails on valid input.
4771 continue
4773 rm -f conftest.err conftest.$ac_ext
4775 # OK, works on sane cases. Now check whether non-existent headers
4776 # can be detected and how.
4777 cat >conftest.$ac_ext <<_ACEOF
4778 /* confdefs.h. */
4779 _ACEOF
4780 cat confdefs.h >>conftest.$ac_ext
4781 cat >>conftest.$ac_ext <<_ACEOF
4782 /* end confdefs.h. */
4783 #include <ac_nonexistent.h>
4784 _ACEOF
4785 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4786 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4787 ac_status=$?
4788 grep -v '^ *+' conftest.er1 >conftest.err
4789 rm -f conftest.er1
4790 cat conftest.err >&5
4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792 (exit $ac_status); } >/dev/null; then
4793 if test -s conftest.err; then
4794 ac_cpp_err=$ac_c_preproc_warn_flag
4795 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4796 else
4797 ac_cpp_err=
4799 else
4800 ac_cpp_err=yes
4802 if test -z "$ac_cpp_err"; then
4803 # Broken: success on invalid input.
4804 continue
4805 else
4806 echo "$as_me: failed program was:" >&5
4807 sed 's/^/| /' conftest.$ac_ext >&5
4809 # Passes both tests.
4810 ac_preproc_ok=:
4811 break
4813 rm -f conftest.err conftest.$ac_ext
4815 done
4816 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4817 rm -f conftest.err conftest.$ac_ext
4818 if $ac_preproc_ok; then
4820 else
4821 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4822 See \`config.log' for more details." >&5
4823 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4824 See \`config.log' for more details." >&2;}
4825 { (exit 1); exit 1; }; }
4828 ac_ext=c
4829 ac_cpp='$CPP $CPPFLAGS'
4830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4835 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4836 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4837 if test "${ac_cv_header_stdc+set}" = set; then
4838 echo $ECHO_N "(cached) $ECHO_C" >&6
4839 else
4840 cat >conftest.$ac_ext <<_ACEOF
4841 /* confdefs.h. */
4842 _ACEOF
4843 cat confdefs.h >>conftest.$ac_ext
4844 cat >>conftest.$ac_ext <<_ACEOF
4845 /* end confdefs.h. */
4846 #include <stdlib.h>
4847 #include <stdarg.h>
4848 #include <string.h>
4849 #include <float.h>
4852 main ()
4856 return 0;
4858 _ACEOF
4859 rm -f conftest.$ac_objext
4860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4861 (eval $ac_compile) 2>conftest.er1
4862 ac_status=$?
4863 grep -v '^ *+' conftest.er1 >conftest.err
4864 rm -f conftest.er1
4865 cat conftest.err >&5
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); } &&
4868 { ac_try='test -z "$ac_c_werror_flag"
4869 || test ! -s conftest.err'
4870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4871 (eval $ac_try) 2>&5
4872 ac_status=$?
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); }; } &&
4875 { ac_try='test -s conftest.$ac_objext'
4876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4877 (eval $ac_try) 2>&5
4878 ac_status=$?
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); }; }; then
4881 ac_cv_header_stdc=yes
4882 else
4883 echo "$as_me: failed program was:" >&5
4884 sed 's/^/| /' conftest.$ac_ext >&5
4886 ac_cv_header_stdc=no
4888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4890 if test $ac_cv_header_stdc = yes; then
4891 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4892 cat >conftest.$ac_ext <<_ACEOF
4893 /* confdefs.h. */
4894 _ACEOF
4895 cat confdefs.h >>conftest.$ac_ext
4896 cat >>conftest.$ac_ext <<_ACEOF
4897 /* end confdefs.h. */
4898 #include <string.h>
4900 _ACEOF
4901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4902 $EGREP "memchr" >/dev/null 2>&1; then
4904 else
4905 ac_cv_header_stdc=no
4907 rm -f conftest*
4911 if test $ac_cv_header_stdc = yes; then
4912 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4913 cat >conftest.$ac_ext <<_ACEOF
4914 /* confdefs.h. */
4915 _ACEOF
4916 cat confdefs.h >>conftest.$ac_ext
4917 cat >>conftest.$ac_ext <<_ACEOF
4918 /* end confdefs.h. */
4919 #include <stdlib.h>
4921 _ACEOF
4922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4923 $EGREP "free" >/dev/null 2>&1; then
4925 else
4926 ac_cv_header_stdc=no
4928 rm -f conftest*
4932 if test $ac_cv_header_stdc = yes; then
4933 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4934 if test "$cross_compiling" = yes; then
4936 else
4937 cat >conftest.$ac_ext <<_ACEOF
4938 /* confdefs.h. */
4939 _ACEOF
4940 cat confdefs.h >>conftest.$ac_ext
4941 cat >>conftest.$ac_ext <<_ACEOF
4942 /* end confdefs.h. */
4943 #include <ctype.h>
4944 #if ((' ' & 0x0FF) == 0x020)
4945 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4946 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4947 #else
4948 # define ISLOWER(c) \
4949 (('a' <= (c) && (c) <= 'i') \
4950 || ('j' <= (c) && (c) <= 'r') \
4951 || ('s' <= (c) && (c) <= 'z'))
4952 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4953 #endif
4955 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4957 main ()
4959 int i;
4960 for (i = 0; i < 256; i++)
4961 if (XOR (islower (i), ISLOWER (i))
4962 || toupper (i) != TOUPPER (i))
4963 exit(2);
4964 exit (0);
4966 _ACEOF
4967 rm -f conftest$ac_exeext
4968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4969 (eval $ac_link) 2>&5
4970 ac_status=$?
4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4974 (eval $ac_try) 2>&5
4975 ac_status=$?
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); }; }; then
4979 else
4980 echo "$as_me: program exited with status $ac_status" >&5
4981 echo "$as_me: failed program was:" >&5
4982 sed 's/^/| /' conftest.$ac_ext >&5
4984 ( exit $ac_status )
4985 ac_cv_header_stdc=no
4987 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4991 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4992 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4993 if test $ac_cv_header_stdc = yes; then
4995 cat >>confdefs.h <<\_ACEOF
4996 #define STDC_HEADERS 1
4997 _ACEOF
5001 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5011 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5012 inttypes.h stdint.h unistd.h
5014 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5015 echo "$as_me:$LINENO: checking for $ac_header" >&5
5016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5017 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5018 echo $ECHO_N "(cached) $ECHO_C" >&6
5019 else
5020 cat >conftest.$ac_ext <<_ACEOF
5021 /* confdefs.h. */
5022 _ACEOF
5023 cat confdefs.h >>conftest.$ac_ext
5024 cat >>conftest.$ac_ext <<_ACEOF
5025 /* end confdefs.h. */
5026 $ac_includes_default
5028 #include <$ac_header>
5029 _ACEOF
5030 rm -f conftest.$ac_objext
5031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5032 (eval $ac_compile) 2>conftest.er1
5033 ac_status=$?
5034 grep -v '^ *+' conftest.er1 >conftest.err
5035 rm -f conftest.er1
5036 cat conftest.err >&5
5037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038 (exit $ac_status); } &&
5039 { ac_try='test -z "$ac_c_werror_flag"
5040 || test ! -s conftest.err'
5041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5042 (eval $ac_try) 2>&5
5043 ac_status=$?
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); }; } &&
5046 { ac_try='test -s conftest.$ac_objext'
5047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5048 (eval $ac_try) 2>&5
5049 ac_status=$?
5050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051 (exit $ac_status); }; }; then
5052 eval "$as_ac_Header=yes"
5053 else
5054 echo "$as_me: failed program was:" >&5
5055 sed 's/^/| /' conftest.$ac_ext >&5
5057 eval "$as_ac_Header=no"
5059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5062 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5064 cat >>confdefs.h <<_ACEOF
5065 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5066 _ACEOF
5070 done
5074 for ac_header in dlfcn.h
5076 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5078 echo "$as_me:$LINENO: checking for $ac_header" >&5
5079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5081 echo $ECHO_N "(cached) $ECHO_C" >&6
5083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5084 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5085 else
5086 # Is the header compilable?
5087 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5088 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5089 cat >conftest.$ac_ext <<_ACEOF
5090 /* confdefs.h. */
5091 _ACEOF
5092 cat confdefs.h >>conftest.$ac_ext
5093 cat >>conftest.$ac_ext <<_ACEOF
5094 /* end confdefs.h. */
5095 $ac_includes_default
5096 #include <$ac_header>
5097 _ACEOF
5098 rm -f conftest.$ac_objext
5099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5100 (eval $ac_compile) 2>conftest.er1
5101 ac_status=$?
5102 grep -v '^ *+' conftest.er1 >conftest.err
5103 rm -f conftest.er1
5104 cat conftest.err >&5
5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); } &&
5107 { ac_try='test -z "$ac_c_werror_flag"
5108 || test ! -s conftest.err'
5109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5110 (eval $ac_try) 2>&5
5111 ac_status=$?
5112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113 (exit $ac_status); }; } &&
5114 { ac_try='test -s conftest.$ac_objext'
5115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5116 (eval $ac_try) 2>&5
5117 ac_status=$?
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); }; }; then
5120 ac_header_compiler=yes
5121 else
5122 echo "$as_me: failed program was:" >&5
5123 sed 's/^/| /' conftest.$ac_ext >&5
5125 ac_header_compiler=no
5127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5128 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5129 echo "${ECHO_T}$ac_header_compiler" >&6
5131 # Is the header present?
5132 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5133 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5134 cat >conftest.$ac_ext <<_ACEOF
5135 /* confdefs.h. */
5136 _ACEOF
5137 cat confdefs.h >>conftest.$ac_ext
5138 cat >>conftest.$ac_ext <<_ACEOF
5139 /* end confdefs.h. */
5140 #include <$ac_header>
5141 _ACEOF
5142 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5143 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5144 ac_status=$?
5145 grep -v '^ *+' conftest.er1 >conftest.err
5146 rm -f conftest.er1
5147 cat conftest.err >&5
5148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149 (exit $ac_status); } >/dev/null; then
5150 if test -s conftest.err; then
5151 ac_cpp_err=$ac_c_preproc_warn_flag
5152 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5153 else
5154 ac_cpp_err=
5156 else
5157 ac_cpp_err=yes
5159 if test -z "$ac_cpp_err"; then
5160 ac_header_preproc=yes
5161 else
5162 echo "$as_me: failed program was:" >&5
5163 sed 's/^/| /' conftest.$ac_ext >&5
5165 ac_header_preproc=no
5167 rm -f conftest.err conftest.$ac_ext
5168 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5169 echo "${ECHO_T}$ac_header_preproc" >&6
5171 # So? What about this header?
5172 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5173 yes:no: )
5174 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5175 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5177 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5178 ac_header_preproc=yes
5180 no:yes:* )
5181 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5182 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5183 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5184 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5185 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5186 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5187 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5188 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5190 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5191 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5192 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5194 cat <<\_ASBOX
5195 ## ------------------------------------------ ##
5196 ## Report this to the AC_PACKAGE_NAME lists. ##
5197 ## ------------------------------------------ ##
5198 _ASBOX
5200 sed "s/^/$as_me: WARNING: /" >&2
5202 esac
5203 echo "$as_me:$LINENO: checking for $ac_header" >&5
5204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5205 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5206 echo $ECHO_N "(cached) $ECHO_C" >&6
5207 else
5208 eval "$as_ac_Header=\$ac_header_preproc"
5210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5211 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5215 cat >>confdefs.h <<_ACEOF
5216 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5217 _ACEOF
5221 done
5225 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5226 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5227 (test "X$CXX" != "Xg++"))) ; then
5228 ac_ext=cc
5229 ac_cpp='$CXXCPP $CPPFLAGS'
5230 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5231 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5232 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5233 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5234 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5235 if test -z "$CXXCPP"; then
5236 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5237 echo $ECHO_N "(cached) $ECHO_C" >&6
5238 else
5239 # Double quotes because CXXCPP needs to be expanded
5240 for CXXCPP in "$CXX -E" "/lib/cpp"
5242 ac_preproc_ok=false
5243 for ac_cxx_preproc_warn_flag in '' yes
5245 # Use a header file that comes with gcc, so configuring glibc
5246 # with a fresh cross-compiler works.
5247 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5248 # <limits.h> exists even on freestanding compilers.
5249 # On the NeXT, cc -E runs the code through the compiler's parser,
5250 # not just through cpp. "Syntax error" is here to catch this case.
5251 cat >conftest.$ac_ext <<_ACEOF
5252 /* confdefs.h. */
5253 _ACEOF
5254 cat confdefs.h >>conftest.$ac_ext
5255 cat >>conftest.$ac_ext <<_ACEOF
5256 /* end confdefs.h. */
5257 #ifdef __STDC__
5258 # include <limits.h>
5259 #else
5260 # include <assert.h>
5261 #endif
5262 Syntax error
5263 _ACEOF
5264 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5265 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5266 ac_status=$?
5267 grep -v '^ *+' conftest.er1 >conftest.err
5268 rm -f conftest.er1
5269 cat conftest.err >&5
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); } >/dev/null; then
5272 if test -s conftest.err; then
5273 ac_cpp_err=$ac_cxx_preproc_warn_flag
5274 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5275 else
5276 ac_cpp_err=
5278 else
5279 ac_cpp_err=yes
5281 if test -z "$ac_cpp_err"; then
5283 else
5284 echo "$as_me: failed program was:" >&5
5285 sed 's/^/| /' conftest.$ac_ext >&5
5287 # Broken: fails on valid input.
5288 continue
5290 rm -f conftest.err conftest.$ac_ext
5292 # OK, works on sane cases. Now check whether non-existent headers
5293 # can be detected and how.
5294 cat >conftest.$ac_ext <<_ACEOF
5295 /* confdefs.h. */
5296 _ACEOF
5297 cat confdefs.h >>conftest.$ac_ext
5298 cat >>conftest.$ac_ext <<_ACEOF
5299 /* end confdefs.h. */
5300 #include <ac_nonexistent.h>
5301 _ACEOF
5302 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5303 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5304 ac_status=$?
5305 grep -v '^ *+' conftest.er1 >conftest.err
5306 rm -f conftest.er1
5307 cat conftest.err >&5
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); } >/dev/null; then
5310 if test -s conftest.err; then
5311 ac_cpp_err=$ac_cxx_preproc_warn_flag
5312 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5313 else
5314 ac_cpp_err=
5316 else
5317 ac_cpp_err=yes
5319 if test -z "$ac_cpp_err"; then
5320 # Broken: success on invalid input.
5321 continue
5322 else
5323 echo "$as_me: failed program was:" >&5
5324 sed 's/^/| /' conftest.$ac_ext >&5
5326 # Passes both tests.
5327 ac_preproc_ok=:
5328 break
5330 rm -f conftest.err conftest.$ac_ext
5332 done
5333 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5334 rm -f conftest.err conftest.$ac_ext
5335 if $ac_preproc_ok; then
5336 break
5339 done
5340 ac_cv_prog_CXXCPP=$CXXCPP
5343 CXXCPP=$ac_cv_prog_CXXCPP
5344 else
5345 ac_cv_prog_CXXCPP=$CXXCPP
5347 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5348 echo "${ECHO_T}$CXXCPP" >&6
5349 ac_preproc_ok=false
5350 for ac_cxx_preproc_warn_flag in '' yes
5352 # Use a header file that comes with gcc, so configuring glibc
5353 # with a fresh cross-compiler works.
5354 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5355 # <limits.h> exists even on freestanding compilers.
5356 # On the NeXT, cc -E runs the code through the compiler's parser,
5357 # not just through cpp. "Syntax error" is here to catch this case.
5358 cat >conftest.$ac_ext <<_ACEOF
5359 /* confdefs.h. */
5360 _ACEOF
5361 cat confdefs.h >>conftest.$ac_ext
5362 cat >>conftest.$ac_ext <<_ACEOF
5363 /* end confdefs.h. */
5364 #ifdef __STDC__
5365 # include <limits.h>
5366 #else
5367 # include <assert.h>
5368 #endif
5369 Syntax error
5370 _ACEOF
5371 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5372 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5373 ac_status=$?
5374 grep -v '^ *+' conftest.er1 >conftest.err
5375 rm -f conftest.er1
5376 cat conftest.err >&5
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); } >/dev/null; then
5379 if test -s conftest.err; then
5380 ac_cpp_err=$ac_cxx_preproc_warn_flag
5381 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5382 else
5383 ac_cpp_err=
5385 else
5386 ac_cpp_err=yes
5388 if test -z "$ac_cpp_err"; then
5390 else
5391 echo "$as_me: failed program was:" >&5
5392 sed 's/^/| /' conftest.$ac_ext >&5
5394 # Broken: fails on valid input.
5395 continue
5397 rm -f conftest.err conftest.$ac_ext
5399 # OK, works on sane cases. Now check whether non-existent headers
5400 # can be detected and how.
5401 cat >conftest.$ac_ext <<_ACEOF
5402 /* confdefs.h. */
5403 _ACEOF
5404 cat confdefs.h >>conftest.$ac_ext
5405 cat >>conftest.$ac_ext <<_ACEOF
5406 /* end confdefs.h. */
5407 #include <ac_nonexistent.h>
5408 _ACEOF
5409 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5410 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5411 ac_status=$?
5412 grep -v '^ *+' conftest.er1 >conftest.err
5413 rm -f conftest.er1
5414 cat conftest.err >&5
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); } >/dev/null; then
5417 if test -s conftest.err; then
5418 ac_cpp_err=$ac_cxx_preproc_warn_flag
5419 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5420 else
5421 ac_cpp_err=
5423 else
5424 ac_cpp_err=yes
5426 if test -z "$ac_cpp_err"; then
5427 # Broken: success on invalid input.
5428 continue
5429 else
5430 echo "$as_me: failed program was:" >&5
5431 sed 's/^/| /' conftest.$ac_ext >&5
5433 # Passes both tests.
5434 ac_preproc_ok=:
5435 break
5437 rm -f conftest.err conftest.$ac_ext
5439 done
5440 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5441 rm -f conftest.err conftest.$ac_ext
5442 if $ac_preproc_ok; then
5444 else
5445 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5446 See \`config.log' for more details." >&5
5447 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5448 See \`config.log' for more details." >&2;}
5449 { (exit 1); exit 1; }; }
5452 ac_ext=cc
5453 ac_cpp='$CXXCPP $CPPFLAGS'
5454 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5455 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5456 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5461 ac_ext=f
5462 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5463 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5464 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5465 if test -n "$ac_tool_prefix"; then
5466 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5468 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5469 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5470 echo "$as_me:$LINENO: checking for $ac_word" >&5
5471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5472 if test "${ac_cv_prog_F77+set}" = set; then
5473 echo $ECHO_N "(cached) $ECHO_C" >&6
5474 else
5475 if test -n "$F77"; then
5476 ac_cv_prog_F77="$F77" # Let the user override the test.
5477 else
5478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5479 for as_dir in $PATH
5481 IFS=$as_save_IFS
5482 test -z "$as_dir" && as_dir=.
5483 for ac_exec_ext in '' $ac_executable_extensions; do
5484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5485 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5487 break 2
5489 done
5490 done
5494 F77=$ac_cv_prog_F77
5495 if test -n "$F77"; then
5496 echo "$as_me:$LINENO: result: $F77" >&5
5497 echo "${ECHO_T}$F77" >&6
5498 else
5499 echo "$as_me:$LINENO: result: no" >&5
5500 echo "${ECHO_T}no" >&6
5503 test -n "$F77" && break
5504 done
5506 if test -z "$F77"; then
5507 ac_ct_F77=$F77
5508 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5510 # Extract the first word of "$ac_prog", so it can be a program name with args.
5511 set dummy $ac_prog; ac_word=$2
5512 echo "$as_me:$LINENO: checking for $ac_word" >&5
5513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5514 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5515 echo $ECHO_N "(cached) $ECHO_C" >&6
5516 else
5517 if test -n "$ac_ct_F77"; then
5518 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5519 else
5520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5521 for as_dir in $PATH
5523 IFS=$as_save_IFS
5524 test -z "$as_dir" && as_dir=.
5525 for ac_exec_ext in '' $ac_executable_extensions; do
5526 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5527 ac_cv_prog_ac_ct_F77="$ac_prog"
5528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5529 break 2
5531 done
5532 done
5536 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5537 if test -n "$ac_ct_F77"; then
5538 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5539 echo "${ECHO_T}$ac_ct_F77" >&6
5540 else
5541 echo "$as_me:$LINENO: result: no" >&5
5542 echo "${ECHO_T}no" >&6
5545 test -n "$ac_ct_F77" && break
5546 done
5548 F77=$ac_ct_F77
5552 # Provide some information about the compiler.
5553 echo "$as_me:5553:" \
5554 "checking for Fortran 77 compiler version" >&5
5555 ac_compiler=`set X $ac_compile; echo $2`
5556 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5557 (eval $ac_compiler --version </dev/null >&5) 2>&5
5558 ac_status=$?
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); }
5561 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5562 (eval $ac_compiler -v </dev/null >&5) 2>&5
5563 ac_status=$?
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); }
5566 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5567 (eval $ac_compiler -V </dev/null >&5) 2>&5
5568 ac_status=$?
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); }
5571 rm -f a.out
5573 # If we don't use `.F' as extension, the preprocessor is not run on the
5574 # input file. (Note that this only needs to work for GNU compilers.)
5575 ac_save_ext=$ac_ext
5576 ac_ext=F
5577 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5578 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5579 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5580 echo $ECHO_N "(cached) $ECHO_C" >&6
5581 else
5582 cat >conftest.$ac_ext <<_ACEOF
5583 program main
5584 #ifndef __GNUC__
5585 choke me
5586 #endif
5589 _ACEOF
5590 rm -f conftest.$ac_objext
5591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5592 (eval $ac_compile) 2>conftest.er1
5593 ac_status=$?
5594 grep -v '^ *+' conftest.er1 >conftest.err
5595 rm -f conftest.er1
5596 cat conftest.err >&5
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); } &&
5599 { ac_try='test -z "$ac_f77_werror_flag"
5600 || test ! -s conftest.err'
5601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5602 (eval $ac_try) 2>&5
5603 ac_status=$?
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); }; } &&
5606 { ac_try='test -s conftest.$ac_objext'
5607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5608 (eval $ac_try) 2>&5
5609 ac_status=$?
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); }; }; then
5612 ac_compiler_gnu=yes
5613 else
5614 echo "$as_me: failed program was:" >&5
5615 sed 's/^/| /' conftest.$ac_ext >&5
5617 ac_compiler_gnu=no
5619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5620 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5623 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5624 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5625 ac_ext=$ac_save_ext
5626 ac_test_FFLAGS=${FFLAGS+set}
5627 ac_save_FFLAGS=$FFLAGS
5628 FFLAGS=
5629 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5630 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5631 if test "${ac_cv_prog_f77_g+set}" = set; then
5632 echo $ECHO_N "(cached) $ECHO_C" >&6
5633 else
5634 FFLAGS=-g
5635 cat >conftest.$ac_ext <<_ACEOF
5636 program main
5639 _ACEOF
5640 rm -f conftest.$ac_objext
5641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5642 (eval $ac_compile) 2>conftest.er1
5643 ac_status=$?
5644 grep -v '^ *+' conftest.er1 >conftest.err
5645 rm -f conftest.er1
5646 cat conftest.err >&5
5647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648 (exit $ac_status); } &&
5649 { ac_try='test -z "$ac_f77_werror_flag"
5650 || test ! -s conftest.err'
5651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5652 (eval $ac_try) 2>&5
5653 ac_status=$?
5654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655 (exit $ac_status); }; } &&
5656 { ac_try='test -s conftest.$ac_objext'
5657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5658 (eval $ac_try) 2>&5
5659 ac_status=$?
5660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); }; }; then
5662 ac_cv_prog_f77_g=yes
5663 else
5664 echo "$as_me: failed program was:" >&5
5665 sed 's/^/| /' conftest.$ac_ext >&5
5667 ac_cv_prog_f77_g=no
5669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5672 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5673 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5674 if test "$ac_test_FFLAGS" = set; then
5675 FFLAGS=$ac_save_FFLAGS
5676 elif test $ac_cv_prog_f77_g = yes; then
5677 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5678 FFLAGS="-g -O2"
5679 else
5680 FFLAGS="-g"
5682 else
5683 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5684 FFLAGS="-O2"
5685 else
5686 FFLAGS=
5690 G77=`test $ac_compiler_gnu = yes && echo yes`
5691 ac_ext=c
5692 ac_cpp='$CPP $CPPFLAGS'
5693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5699 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5701 # find the maximum length of command line arguments
5702 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5703 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5704 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5705 echo $ECHO_N "(cached) $ECHO_C" >&6
5706 else
5708 teststring="ABCD"
5710 case $build_os in
5711 msdosdjgpp*)
5712 # On DJGPP, this test can blow up pretty badly due to problems in libc
5713 # (any single argument exceeding 2000 bytes causes a buffer overrun
5714 # during glob expansion). Even if it were fixed, the result of this
5715 # check would be larger than it should be.
5716 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5719 gnu*)
5720 # Under GNU Hurd, this test is not required because there is
5721 # no limit to the length of command line arguments.
5722 # Libtool will interpret -1 as no limit whatsoever
5723 lt_cv_sys_max_cmd_len=-1;
5726 cygwin* | mingw*)
5727 # On Win9x/ME, this test blows up -- it succeeds, but takes
5728 # about 5 minutes as the teststring grows exponentially.
5729 # Worse, since 9x/ME are not pre-emptively multitasking,
5730 # you end up with a "frozen" computer, even though with patience
5731 # the test eventually succeeds (with a max line length of 256k).
5732 # Instead, let's just punt: use the minimum linelength reported by
5733 # all of the supported platforms: 8192 (on NT/2K/XP).
5734 lt_cv_sys_max_cmd_len=8192;
5737 amigaos*)
5738 # On AmigaOS with pdksh, this test takes hours, literally.
5739 # So we just punt and use a minimum line length of 8192.
5740 lt_cv_sys_max_cmd_len=8192;
5743 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5744 # This has been around since 386BSD, at least. Likely further.
5745 if test -x /sbin/sysctl; then
5746 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5747 elif test -x /usr/sbin/sysctl; then
5748 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5749 else
5750 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5752 # And add a safety zone
5753 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5755 osf*)
5756 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5757 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5758 # nice to cause kernel panics so lets avoid the loop below.
5759 # First set a reasonable default.
5760 lt_cv_sys_max_cmd_len=16384
5762 if test -x /sbin/sysconfig; then
5763 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5764 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5765 esac
5769 # If test is not a shell built-in, we'll probably end up computing a
5770 # maximum length that is only half of the actual maximum length, but
5771 # we can't tell.
5772 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5773 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5774 = "XX$teststring") >/dev/null 2>&1 &&
5775 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5776 lt_cv_sys_max_cmd_len=$new_result &&
5777 test $i != 17 # 1/2 MB should be enough
5779 i=`expr $i + 1`
5780 teststring=$teststring$teststring
5781 done
5782 teststring=
5783 # Add a significant safety factor because C++ compilers can tack on massive
5784 # amounts of additional arguments before passing them to the linker.
5785 # It appears as though 1/2 is a usable value.
5786 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5788 esac
5792 if test -n $lt_cv_sys_max_cmd_len ; then
5793 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5794 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5795 else
5796 echo "$as_me:$LINENO: result: none" >&5
5797 echo "${ECHO_T}none" >&6
5803 # Check for command to grab the raw symbol name followed by C symbol from nm.
5804 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5805 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5806 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5807 echo $ECHO_N "(cached) $ECHO_C" >&6
5808 else
5810 # These are sane defaults that work on at least a few old systems.
5811 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5813 # Character class describing NM global symbol codes.
5814 symcode='[BCDEGRST]'
5816 # Regexp to match symbols that can be accessed directly from C.
5817 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5819 # Transform an extracted symbol line into a proper C declaration
5820 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5822 # Transform an extracted symbol line into symbol name and symbol address
5823 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'"
5825 # Define system-specific variables.
5826 case $host_os in
5827 aix*)
5828 symcode='[BCDT]'
5830 cygwin* | mingw* | pw32*)
5831 symcode='[ABCDGISTW]'
5833 hpux*) # Its linker distinguishes data from code symbols
5834 if test "$host_cpu" = ia64; then
5835 symcode='[ABCDEGRST]'
5837 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5838 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'"
5840 linux*)
5841 if test "$host_cpu" = ia64; then
5842 symcode='[ABCDGIRSTW]'
5843 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5844 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'"
5847 irix* | nonstopux*)
5848 symcode='[BCDEGRST]'
5850 osf*)
5851 symcode='[BCDEGQRST]'
5853 solaris* | sysv5*)
5854 symcode='[BDRT]'
5856 sysv4)
5857 symcode='[DFNSTU]'
5859 esac
5861 # Handle CRLF in mingw tool chain
5862 opt_cr=
5863 case $build_os in
5864 mingw*)
5865 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5867 esac
5869 # If we're using GNU nm, then use its standard symbol codes.
5870 case `$NM -V 2>&1` in
5871 *GNU* | *'with BFD'*)
5872 symcode='[ABCDGIRSTW]' ;;
5873 esac
5875 # Try without a prefix undercore, then with it.
5876 for ac_symprfx in "" "_"; do
5878 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5879 symxfrm="\\1 $ac_symprfx\\2 \\2"
5881 # Write the raw and C identifiers.
5882 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5884 # Check to see that the pipe works correctly.
5885 pipe_works=no
5887 rm -f conftest*
5888 cat > conftest.$ac_ext <<EOF
5889 #ifdef __cplusplus
5890 extern "C" {
5891 #endif
5892 char nm_test_var;
5893 void nm_test_func(){}
5894 #ifdef __cplusplus
5896 #endif
5897 int main(){nm_test_var='a';nm_test_func();return(0);}
5900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5901 (eval $ac_compile) 2>&5
5902 ac_status=$?
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); }; then
5905 # Now try to grab the symbols.
5906 nlist=conftest.nm
5907 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5908 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5909 ac_status=$?
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); } && test -s "$nlist"; then
5912 # Try sorting and uniquifying the output.
5913 if sort "$nlist" | uniq > "$nlist"T; then
5914 mv -f "$nlist"T "$nlist"
5915 else
5916 rm -f "$nlist"T
5919 # Make sure that we snagged all the symbols we need.
5920 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5921 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5922 cat <<EOF > conftest.$ac_ext
5923 #ifdef __cplusplus
5924 extern "C" {
5925 #endif
5928 # Now generate the symbol file.
5929 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5931 cat <<EOF >> conftest.$ac_ext
5932 #if defined (__STDC__) && __STDC__
5933 # define lt_ptr_t void *
5934 #else
5935 # define lt_ptr_t char *
5936 # define const
5937 #endif
5939 /* The mapping between symbol names and symbols. */
5940 const struct {
5941 const char *name;
5942 lt_ptr_t address;
5944 lt_preloaded_symbols[] =
5947 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5948 cat <<\EOF >> conftest.$ac_ext
5949 {0, (lt_ptr_t) 0}
5952 #ifdef __cplusplus
5954 #endif
5956 # Now try linking the two files.
5957 mv conftest.$ac_objext conftstm.$ac_objext
5958 lt_save_LIBS="$LIBS"
5959 lt_save_CFLAGS="$CFLAGS"
5960 LIBS="conftstm.$ac_objext"
5961 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5963 (eval $ac_link) 2>&5
5964 ac_status=$?
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5967 pipe_works=yes
5969 LIBS="$lt_save_LIBS"
5970 CFLAGS="$lt_save_CFLAGS"
5971 else
5972 echo "cannot find nm_test_func in $nlist" >&5
5974 else
5975 echo "cannot find nm_test_var in $nlist" >&5
5977 else
5978 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5980 else
5981 echo "$progname: failed program was:" >&5
5982 cat conftest.$ac_ext >&5
5984 rm -f conftest* conftst*
5986 # Do not use the global_symbol_pipe unless it works.
5987 if test "$pipe_works" = yes; then
5988 break
5989 else
5990 lt_cv_sys_global_symbol_pipe=
5992 done
5996 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5997 lt_cv_sys_global_symbol_to_cdecl=
5999 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6000 echo "$as_me:$LINENO: result: failed" >&5
6001 echo "${ECHO_T}failed" >&6
6002 else
6003 echo "$as_me:$LINENO: result: ok" >&5
6004 echo "${ECHO_T}ok" >&6
6007 echo "$as_me:$LINENO: checking for objdir" >&5
6008 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6009 if test "${lt_cv_objdir+set}" = set; then
6010 echo $ECHO_N "(cached) $ECHO_C" >&6
6011 else
6012 rm -f .libs 2>/dev/null
6013 mkdir .libs 2>/dev/null
6014 if test -d .libs; then
6015 lt_cv_objdir=.libs
6016 else
6017 # MS-DOS does not allow filenames that begin with a dot.
6018 lt_cv_objdir=_libs
6020 rmdir .libs 2>/dev/null
6022 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6023 echo "${ECHO_T}$lt_cv_objdir" >&6
6024 objdir=$lt_cv_objdir
6030 case $host_os in
6031 aix3*)
6032 # AIX sometimes has problems with the GCC collect2 program. For some
6033 # reason, if we set the COLLECT_NAMES environment variable, the problems
6034 # vanish in a puff of smoke.
6035 if test "X${COLLECT_NAMES+set}" != Xset; then
6036 COLLECT_NAMES=
6037 export COLLECT_NAMES
6040 esac
6042 # Sed substitution that helps us do robust quoting. It backslashifies
6043 # metacharacters that are still active within double-quoted strings.
6044 Xsed='sed -e s/^X//'
6045 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6047 # Same as above, but do not quote variable references.
6048 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6050 # Sed substitution to delay expansion of an escaped shell variable in a
6051 # double_quote_subst'ed string.
6052 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6054 # Sed substitution to avoid accidental globbing in evaled expressions
6055 no_glob_subst='s/\*/\\\*/g'
6057 # Constants:
6058 rm="rm -f"
6060 # Global variables:
6061 default_ofile=libtool
6062 can_build_shared=yes
6064 # All known linkers require a `.a' archive for static linking (except M$VC,
6065 # which needs '.lib').
6066 libext=a
6067 ltmain="$ac_aux_dir/ltmain.sh"
6068 ofile="$default_ofile"
6069 with_gnu_ld="$lt_cv_prog_gnu_ld"
6071 if test -n "$ac_tool_prefix"; then
6072 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6073 set dummy ${ac_tool_prefix}ar; ac_word=$2
6074 echo "$as_me:$LINENO: checking for $ac_word" >&5
6075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6076 if test "${ac_cv_prog_AR+set}" = set; then
6077 echo $ECHO_N "(cached) $ECHO_C" >&6
6078 else
6079 if test -n "$AR"; then
6080 ac_cv_prog_AR="$AR" # Let the user override the test.
6081 else
6082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6083 for as_dir in $PATH
6085 IFS=$as_save_IFS
6086 test -z "$as_dir" && as_dir=.
6087 for ac_exec_ext in '' $ac_executable_extensions; do
6088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6089 ac_cv_prog_AR="${ac_tool_prefix}ar"
6090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6091 break 2
6093 done
6094 done
6098 AR=$ac_cv_prog_AR
6099 if test -n "$AR"; then
6100 echo "$as_me:$LINENO: result: $AR" >&5
6101 echo "${ECHO_T}$AR" >&6
6102 else
6103 echo "$as_me:$LINENO: result: no" >&5
6104 echo "${ECHO_T}no" >&6
6108 if test -z "$ac_cv_prog_AR"; then
6109 ac_ct_AR=$AR
6110 # Extract the first word of "ar", so it can be a program name with args.
6111 set dummy ar; ac_word=$2
6112 echo "$as_me:$LINENO: checking for $ac_word" >&5
6113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6114 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6115 echo $ECHO_N "(cached) $ECHO_C" >&6
6116 else
6117 if test -n "$ac_ct_AR"; then
6118 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6119 else
6120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6121 for as_dir in $PATH
6123 IFS=$as_save_IFS
6124 test -z "$as_dir" && as_dir=.
6125 for ac_exec_ext in '' $ac_executable_extensions; do
6126 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6127 ac_cv_prog_ac_ct_AR="ar"
6128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6129 break 2
6131 done
6132 done
6134 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6137 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6138 if test -n "$ac_ct_AR"; then
6139 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6140 echo "${ECHO_T}$ac_ct_AR" >&6
6141 else
6142 echo "$as_me:$LINENO: result: no" >&5
6143 echo "${ECHO_T}no" >&6
6146 AR=$ac_ct_AR
6147 else
6148 AR="$ac_cv_prog_AR"
6151 if test -n "$ac_tool_prefix"; then
6152 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6153 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6154 echo "$as_me:$LINENO: checking for $ac_word" >&5
6155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6156 if test "${ac_cv_prog_RANLIB+set}" = set; then
6157 echo $ECHO_N "(cached) $ECHO_C" >&6
6158 else
6159 if test -n "$RANLIB"; then
6160 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6161 else
6162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6163 for as_dir in $PATH
6165 IFS=$as_save_IFS
6166 test -z "$as_dir" && as_dir=.
6167 for ac_exec_ext in '' $ac_executable_extensions; do
6168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6169 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6171 break 2
6173 done
6174 done
6178 RANLIB=$ac_cv_prog_RANLIB
6179 if test -n "$RANLIB"; then
6180 echo "$as_me:$LINENO: result: $RANLIB" >&5
6181 echo "${ECHO_T}$RANLIB" >&6
6182 else
6183 echo "$as_me:$LINENO: result: no" >&5
6184 echo "${ECHO_T}no" >&6
6188 if test -z "$ac_cv_prog_RANLIB"; then
6189 ac_ct_RANLIB=$RANLIB
6190 # Extract the first word of "ranlib", so it can be a program name with args.
6191 set dummy ranlib; ac_word=$2
6192 echo "$as_me:$LINENO: checking for $ac_word" >&5
6193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6194 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6195 echo $ECHO_N "(cached) $ECHO_C" >&6
6196 else
6197 if test -n "$ac_ct_RANLIB"; then
6198 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6199 else
6200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201 for as_dir in $PATH
6203 IFS=$as_save_IFS
6204 test -z "$as_dir" && as_dir=.
6205 for ac_exec_ext in '' $ac_executable_extensions; do
6206 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6207 ac_cv_prog_ac_ct_RANLIB="ranlib"
6208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6209 break 2
6211 done
6212 done
6214 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6217 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6218 if test -n "$ac_ct_RANLIB"; then
6219 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6220 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6221 else
6222 echo "$as_me:$LINENO: result: no" >&5
6223 echo "${ECHO_T}no" >&6
6226 RANLIB=$ac_ct_RANLIB
6227 else
6228 RANLIB="$ac_cv_prog_RANLIB"
6231 if test -n "$ac_tool_prefix"; then
6232 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6233 set dummy ${ac_tool_prefix}strip; ac_word=$2
6234 echo "$as_me:$LINENO: checking for $ac_word" >&5
6235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6236 if test "${ac_cv_prog_STRIP+set}" = set; then
6237 echo $ECHO_N "(cached) $ECHO_C" >&6
6238 else
6239 if test -n "$STRIP"; then
6240 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6241 else
6242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243 for as_dir in $PATH
6245 IFS=$as_save_IFS
6246 test -z "$as_dir" && as_dir=.
6247 for ac_exec_ext in '' $ac_executable_extensions; do
6248 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6249 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6251 break 2
6253 done
6254 done
6258 STRIP=$ac_cv_prog_STRIP
6259 if test -n "$STRIP"; then
6260 echo "$as_me:$LINENO: result: $STRIP" >&5
6261 echo "${ECHO_T}$STRIP" >&6
6262 else
6263 echo "$as_me:$LINENO: result: no" >&5
6264 echo "${ECHO_T}no" >&6
6268 if test -z "$ac_cv_prog_STRIP"; then
6269 ac_ct_STRIP=$STRIP
6270 # Extract the first word of "strip", so it can be a program name with args.
6271 set dummy strip; ac_word=$2
6272 echo "$as_me:$LINENO: checking for $ac_word" >&5
6273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6274 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6275 echo $ECHO_N "(cached) $ECHO_C" >&6
6276 else
6277 if test -n "$ac_ct_STRIP"; then
6278 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6279 else
6280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6281 for as_dir in $PATH
6283 IFS=$as_save_IFS
6284 test -z "$as_dir" && as_dir=.
6285 for ac_exec_ext in '' $ac_executable_extensions; do
6286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6287 ac_cv_prog_ac_ct_STRIP="strip"
6288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6289 break 2
6291 done
6292 done
6294 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6297 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6298 if test -n "$ac_ct_STRIP"; then
6299 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6300 echo "${ECHO_T}$ac_ct_STRIP" >&6
6301 else
6302 echo "$as_me:$LINENO: result: no" >&5
6303 echo "${ECHO_T}no" >&6
6306 STRIP=$ac_ct_STRIP
6307 else
6308 STRIP="$ac_cv_prog_STRIP"
6312 old_CC="$CC"
6313 old_CFLAGS="$CFLAGS"
6315 # Set sane defaults for various variables
6316 test -z "$AR" && AR=ar
6317 test -z "$AR_FLAGS" && AR_FLAGS=cru
6318 test -z "$AS" && AS=as
6319 test -z "$CC" && CC=cc
6320 test -z "$LTCC" && LTCC=$CC
6321 test -z "$DLLTOOL" && DLLTOOL=dlltool
6322 test -z "$LD" && LD=ld
6323 test -z "$LN_S" && LN_S="ln -s"
6324 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6325 test -z "$NM" && NM=nm
6326 test -z "$SED" && SED=sed
6327 test -z "$OBJDUMP" && OBJDUMP=objdump
6328 test -z "$RANLIB" && RANLIB=:
6329 test -z "$STRIP" && STRIP=:
6330 test -z "$ac_objext" && ac_objext=o
6332 # Determine commands to create old-style static archives.
6333 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6334 old_postinstall_cmds='chmod 644 $oldlib'
6335 old_postuninstall_cmds=
6337 if test -n "$RANLIB"; then
6338 case $host_os in
6339 openbsd*)
6340 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6343 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6345 esac
6346 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6349 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
6351 # Only perform the check for file, if the check method requires it
6352 case $deplibs_check_method in
6353 file_magic*)
6354 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6355 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6356 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6357 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6358 echo $ECHO_N "(cached) $ECHO_C" >&6
6359 else
6360 case $MAGIC_CMD in
6361 [\\/*] | ?:[\\/]*)
6362 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6365 lt_save_MAGIC_CMD="$MAGIC_CMD"
6366 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6367 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6368 for ac_dir in $ac_dummy; do
6369 IFS="$lt_save_ifs"
6370 test -z "$ac_dir" && ac_dir=.
6371 if test -f $ac_dir/${ac_tool_prefix}file; then
6372 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6373 if test -n "$file_magic_test_file"; then
6374 case $deplibs_check_method in
6375 "file_magic "*)
6376 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6377 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6378 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6379 $EGREP "$file_magic_regex" > /dev/null; then
6381 else
6382 cat <<EOF 1>&2
6384 *** Warning: the command libtool uses to detect shared libraries,
6385 *** $file_magic_cmd, produces output that libtool cannot recognize.
6386 *** The result is that libtool may fail to recognize shared libraries
6387 *** as such. This will affect the creation of libtool libraries that
6388 *** depend on shared libraries, but programs linked with such libtool
6389 *** libraries will work regardless of this problem. Nevertheless, you
6390 *** may want to report the problem to your system manager and/or to
6391 *** bug-libtool@gnu.org
6394 fi ;;
6395 esac
6397 break
6399 done
6400 IFS="$lt_save_ifs"
6401 MAGIC_CMD="$lt_save_MAGIC_CMD"
6403 esac
6406 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6407 if test -n "$MAGIC_CMD"; then
6408 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6409 echo "${ECHO_T}$MAGIC_CMD" >&6
6410 else
6411 echo "$as_me:$LINENO: result: no" >&5
6412 echo "${ECHO_T}no" >&6
6415 if test -z "$lt_cv_path_MAGIC_CMD"; then
6416 if test -n "$ac_tool_prefix"; then
6417 echo "$as_me:$LINENO: checking for file" >&5
6418 echo $ECHO_N "checking for file... $ECHO_C" >&6
6419 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6420 echo $ECHO_N "(cached) $ECHO_C" >&6
6421 else
6422 case $MAGIC_CMD in
6423 [\\/*] | ?:[\\/]*)
6424 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6427 lt_save_MAGIC_CMD="$MAGIC_CMD"
6428 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6429 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6430 for ac_dir in $ac_dummy; do
6431 IFS="$lt_save_ifs"
6432 test -z "$ac_dir" && ac_dir=.
6433 if test -f $ac_dir/file; then
6434 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6435 if test -n "$file_magic_test_file"; then
6436 case $deplibs_check_method in
6437 "file_magic "*)
6438 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6439 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6440 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6441 $EGREP "$file_magic_regex" > /dev/null; then
6443 else
6444 cat <<EOF 1>&2
6446 *** Warning: the command libtool uses to detect shared libraries,
6447 *** $file_magic_cmd, produces output that libtool cannot recognize.
6448 *** The result is that libtool may fail to recognize shared libraries
6449 *** as such. This will affect the creation of libtool libraries that
6450 *** depend on shared libraries, but programs linked with such libtool
6451 *** libraries will work regardless of this problem. Nevertheless, you
6452 *** may want to report the problem to your system manager and/or to
6453 *** bug-libtool@gnu.org
6456 fi ;;
6457 esac
6459 break
6461 done
6462 IFS="$lt_save_ifs"
6463 MAGIC_CMD="$lt_save_MAGIC_CMD"
6465 esac
6468 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6469 if test -n "$MAGIC_CMD"; then
6470 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6471 echo "${ECHO_T}$MAGIC_CMD" >&6
6472 else
6473 echo "$as_me:$LINENO: result: no" >&5
6474 echo "${ECHO_T}no" >&6
6477 else
6478 MAGIC_CMD=:
6484 esac
6486 enable_dlopen=no
6487 enable_win32_dll=yes
6489 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6490 if test "${enable_libtool_lock+set}" = set; then
6491 enableval="$enable_libtool_lock"
6494 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6497 # Check whether --with-pic or --without-pic was given.
6498 if test "${with_pic+set}" = set; then
6499 withval="$with_pic"
6500 pic_mode="$withval"
6501 else
6502 pic_mode=default
6504 test -z "$pic_mode" && pic_mode=default
6506 # Use C for the default configuration in the libtool script
6507 tagname=
6508 lt_save_CC="$CC"
6509 ac_ext=c
6510 ac_cpp='$CPP $CPPFLAGS'
6511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6516 # Source file extension for C test sources.
6517 ac_ext=c
6519 # Object file extension for compiled C test sources.
6520 objext=o
6521 objext=$objext
6523 # Code to be used in simple compile tests
6524 lt_simple_compile_test_code="int some_variable = 0;\n"
6526 # Code to be used in simple link tests
6527 lt_simple_link_test_code='int main(){return(0);}\n'
6530 # If no C compiler was specified, use CC.
6531 LTCC=${LTCC-"$CC"}
6533 # Allow CC to be a program name with arguments.
6534 compiler=$CC
6538 # Check for any special shared library compilation flags.
6540 lt_prog_cc_shlib=
6541 if test "$GCC" = no; then
6542 case $host_os in
6543 sco3.2v5*)
6544 lt_prog_cc_shlib='-belf'
6546 esac
6548 if test -n "$lt_prog_cc_shlib"; then
6549 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6550 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6551 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6552 else
6553 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6554 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6555 lt_cv_prog_cc_can_build_shared=no
6561 # Check to make sure the static flag actually works.
6563 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6564 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6565 if test "${lt_prog_compiler_static_works+set}" = set; then
6566 echo $ECHO_N "(cached) $ECHO_C" >&6
6567 else
6568 lt_prog_compiler_static_works=no
6569 save_LDFLAGS="$LDFLAGS"
6570 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6571 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6572 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6573 # The compiler can only warn and ignore the option if not recognized
6574 # So say no if there are warnings
6575 if test -s conftest.err; then
6576 # Append any errors to the config.log.
6577 cat conftest.err 1>&5
6578 else
6579 lt_prog_compiler_static_works=yes
6582 $rm conftest*
6583 LDFLAGS="$save_LDFLAGS"
6586 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6587 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6589 if test x"$lt_prog_compiler_static_works" = xyes; then
6591 else
6592 lt_prog_compiler_static=
6597 ## CAVEAT EMPTOR:
6598 ## There is no encapsulation within the following macros, do not change
6599 ## the running order or otherwise move them around unless you know exactly
6600 ## what you are doing...
6602 lt_prog_compiler_no_builtin_flag=
6604 if test "$GCC" = yes; then
6605 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6608 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6609 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6610 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6611 echo $ECHO_N "(cached) $ECHO_C" >&6
6612 else
6613 lt_cv_prog_compiler_rtti_exceptions=no
6614 ac_outfile=conftest.$ac_objext
6615 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6616 lt_compiler_flag="-fno-rtti -fno-exceptions"
6617 # Insert the option either (1) after the last *FLAGS variable, or
6618 # (2) before a word containing "conftest.", or (3) at the end.
6619 # Note that $ac_compile itself does not contain backslashes and begins
6620 # with a dollar sign (not a hyphen), so the echo should work correctly.
6621 # The option is referenced via a variable to avoid confusing sed.
6622 lt_compile=`echo "$ac_compile" | $SED \
6623 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6624 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6625 -e 's:$: $lt_compiler_flag:'`
6626 (eval echo "\"\$as_me:6626: $lt_compile\"" >&5)
6627 (eval "$lt_compile" 2>conftest.err)
6628 ac_status=$?
6629 cat conftest.err >&5
6630 echo "$as_me:6630: \$? = $ac_status" >&5
6631 if (exit $ac_status) && test -s "$ac_outfile"; then
6632 # The compiler can only warn and ignore the option if not recognized
6633 # So say no if there are warnings
6634 if test ! -s conftest.err; then
6635 lt_cv_prog_compiler_rtti_exceptions=yes
6638 $rm conftest*
6641 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6642 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6644 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6645 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6646 else
6652 lt_prog_compiler_wl=
6653 lt_prog_compiler_pic=
6654 lt_prog_compiler_static=
6656 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6657 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6659 if test "$GCC" = yes; then
6660 lt_prog_compiler_wl='-Wl,'
6661 lt_prog_compiler_static='-static'
6663 case $host_os in
6664 aix*)
6665 # All AIX code is PIC.
6666 if test "$host_cpu" = ia64; then
6667 # AIX 5 now supports IA64 processor
6668 lt_prog_compiler_static='-Bstatic'
6672 amigaos*)
6673 # FIXME: we need at least 68020 code to build shared libraries, but
6674 # adding the `-m68020' flag to GCC prevents building anything better,
6675 # like `-m68040'.
6676 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6679 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6680 # PIC is the default for these OSes.
6683 mingw* | pw32* | os2*)
6684 # This hack is so that the source file can tell whether it is being
6685 # built for inclusion in a dll (and should export symbols for example).
6686 lt_prog_compiler_pic='-DDLL_EXPORT'
6689 darwin* | rhapsody*)
6690 # PIC is the default on this platform
6691 # Common symbols not allowed in MH_DYLIB files
6692 lt_prog_compiler_pic='-fno-common'
6695 msdosdjgpp*)
6696 # Just because we use GCC doesn't mean we suddenly get shared libraries
6697 # on systems that don't support them.
6698 lt_prog_compiler_can_build_shared=no
6699 enable_shared=no
6702 sysv4*MP*)
6703 if test -d /usr/nec; then
6704 lt_prog_compiler_pic=-Kconform_pic
6708 hpux*)
6709 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6710 # not for PA HP-UX.
6711 case "$host_cpu" in
6712 hppa*64*|ia64*)
6713 # +Z the default
6716 lt_prog_compiler_pic='-fPIC'
6718 esac
6722 lt_prog_compiler_pic='-fPIC'
6724 esac
6725 else
6726 # PORTME Check for flag to pass linker flags through the system compiler.
6727 case $host_os in
6728 aix*)
6729 lt_prog_compiler_wl='-Wl,'
6730 if test "$host_cpu" = ia64; then
6731 # AIX 5 now supports IA64 processor
6732 lt_prog_compiler_static='-Bstatic'
6733 else
6734 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6737 darwin*)
6738 # PIC is the default on this platform
6739 # Common symbols not allowed in MH_DYLIB files
6740 case "$cc_basename" in
6741 xlc*)
6742 lt_prog_compiler_pic='-qnocommon'
6743 lt_prog_compiler_wl='-Wl,'
6745 esac
6748 mingw* | pw32* | os2*)
6749 # This hack is so that the source file can tell whether it is being
6750 # built for inclusion in a dll (and should export symbols for example).
6751 lt_prog_compiler_pic='-DDLL_EXPORT'
6754 hpux9* | hpux10* | hpux11*)
6755 lt_prog_compiler_wl='-Wl,'
6756 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6757 # not for PA HP-UX.
6758 case "$host_cpu" in
6759 hppa*64*|ia64*)
6760 # +Z the default
6763 lt_prog_compiler_pic='+Z'
6765 esac
6766 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6767 lt_prog_compiler_static='${wl}-a ${wl}archive'
6770 irix5* | irix6* | nonstopux*)
6771 lt_prog_compiler_wl='-Wl,'
6772 # PIC (with -KPIC) is the default.
6773 lt_prog_compiler_static='-non_shared'
6776 newsos6)
6777 lt_prog_compiler_pic='-KPIC'
6778 lt_prog_compiler_static='-Bstatic'
6781 linux*)
6782 case $cc_basename in
6783 icc* | ecc*)
6784 lt_prog_compiler_wl='-Wl,'
6785 lt_prog_compiler_pic='-KPIC'
6786 lt_prog_compiler_static='-static'
6788 pgcc | pgf77 | pgf90)
6789 # Portland Group compilers (*not* the Pentium gcc compiler,
6790 # which looks to be a dead project)
6791 lt_prog_compiler_wl='-Wl,'
6792 lt_prog_compiler_pic='-fpic'
6793 lt_prog_compiler_static='-static'
6795 ccc*)
6796 lt_prog_compiler_wl='-Wl,'
6797 # All Alpha code is PIC.
6798 lt_prog_compiler_static='-non_shared'
6800 como)
6801 lt_prog_compiler_wl='-lopt='
6803 esac
6806 osf3* | osf4* | osf5*)
6807 lt_prog_compiler_wl='-Wl,'
6808 # All OSF/1 code is PIC.
6809 lt_prog_compiler_static='-non_shared'
6812 sco3.2v5*)
6813 lt_prog_compiler_pic='-Kpic'
6814 lt_prog_compiler_static='-dn'
6817 solaris*)
6818 lt_prog_compiler_wl='-Wl,'
6819 lt_prog_compiler_pic='-KPIC'
6820 lt_prog_compiler_static='-Bstatic'
6823 sunos4*)
6824 lt_prog_compiler_wl='-Qoption ld '
6825 lt_prog_compiler_pic='-PIC'
6826 lt_prog_compiler_static='-Bstatic'
6829 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6830 lt_prog_compiler_wl='-Wl,'
6831 lt_prog_compiler_pic='-KPIC'
6832 lt_prog_compiler_static='-Bstatic'
6835 sysv4*MP*)
6836 if test -d /usr/nec ;then
6837 lt_prog_compiler_pic='-Kconform_pic'
6838 lt_prog_compiler_static='-Bstatic'
6842 unicos*)
6843 lt_prog_compiler_wl='-Wl,'
6844 lt_prog_compiler_can_build_shared=no
6847 uts4*)
6848 lt_prog_compiler_pic='-pic'
6849 lt_prog_compiler_static='-Bstatic'
6853 lt_prog_compiler_can_build_shared=no
6855 esac
6858 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6859 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6862 # Check to make sure the PIC flag actually works.
6864 if test -n "$lt_prog_compiler_pic"; then
6866 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6867 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6868 if test "${lt_prog_compiler_pic_works+set}" = set; then
6869 echo $ECHO_N "(cached) $ECHO_C" >&6
6870 else
6871 lt_prog_compiler_pic_works=no
6872 ac_outfile=conftest.$ac_objext
6873 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6874 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6875 # Insert the option either (1) after the last *FLAGS variable, or
6876 # (2) before a word containing "conftest.", or (3) at the end.
6877 # Note that $ac_compile itself does not contain backslashes and begins
6878 # with a dollar sign (not a hyphen), so the echo should work correctly.
6879 # The option is referenced via a variable to avoid confusing sed.
6880 lt_compile=`echo "$ac_compile" | $SED \
6881 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6882 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6883 -e 's:$: $lt_compiler_flag:'`
6884 (eval echo "\"\$as_me:6884: $lt_compile\"" >&5)
6885 (eval "$lt_compile" 2>conftest.err)
6886 ac_status=$?
6887 cat conftest.err >&5
6888 echo "$as_me:6888: \$? = $ac_status" >&5
6889 if (exit $ac_status) && test -s "$ac_outfile"; then
6890 # The compiler can only warn and ignore the option if not recognized
6891 # So say no if there are warnings
6892 if test ! -s conftest.err; then
6893 lt_prog_compiler_pic_works=yes
6896 $rm conftest*
6899 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6900 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6902 if test x"$lt_prog_compiler_pic_works" = xyes; then
6903 case $lt_prog_compiler_pic in
6904 "" | " "*) ;;
6905 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6906 esac
6907 else
6908 lt_prog_compiler_pic=
6909 lt_prog_compiler_can_build_shared=no
6913 case "$host_os" in
6914 # For platforms which do not support PIC, -DPIC is meaningless:
6915 *djgpp*)
6916 lt_prog_compiler_pic=
6919 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6921 esac
6923 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6924 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6925 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6926 echo $ECHO_N "(cached) $ECHO_C" >&6
6927 else
6928 lt_cv_prog_compiler_c_o=no
6929 $rm -r conftest 2>/dev/null
6930 mkdir conftest
6931 cd conftest
6932 mkdir out
6933 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6935 lt_compiler_flag="-o out/conftest2.$ac_objext"
6936 # Insert the option either (1) after the last *FLAGS variable, or
6937 # (2) before a word containing "conftest.", or (3) at the end.
6938 # Note that $ac_compile itself does not contain backslashes and begins
6939 # with a dollar sign (not a hyphen), so the echo should work correctly.
6940 lt_compile=`echo "$ac_compile" | $SED \
6941 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6942 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6943 -e 's:$: $lt_compiler_flag:'`
6944 (eval echo "\"\$as_me:6944: $lt_compile\"" >&5)
6945 (eval "$lt_compile" 2>out/conftest.err)
6946 ac_status=$?
6947 cat out/conftest.err >&5
6948 echo "$as_me:6948: \$? = $ac_status" >&5
6949 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6950 then
6951 # The compiler can only warn and ignore the option if not recognized
6952 # So say no if there are warnings
6953 if test ! -s out/conftest.err; then
6954 lt_cv_prog_compiler_c_o=yes
6957 chmod u+w .
6958 $rm conftest*
6959 # SGI C++ compiler will create directory out/ii_files/ for
6960 # template instantiation
6961 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6962 $rm out/* && rmdir out
6963 cd ..
6964 rmdir conftest
6965 $rm conftest*
6968 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6969 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6972 hard_links="nottested"
6973 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6974 # do not overwrite the value of need_locks provided by the user
6975 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6976 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6977 hard_links=yes
6978 $rm conftest*
6979 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6980 touch conftest.a
6981 ln conftest.a conftest.b 2>&5 || hard_links=no
6982 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6983 echo "$as_me:$LINENO: result: $hard_links" >&5
6984 echo "${ECHO_T}$hard_links" >&6
6985 if test "$hard_links" = no; then
6986 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6987 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6988 need_locks=warn
6990 else
6991 need_locks=no
6994 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6995 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6997 runpath_var=
6998 allow_undefined_flag=
6999 enable_shared_with_static_runtimes=no
7000 archive_cmds=
7001 archive_expsym_cmds=
7002 old_archive_From_new_cmds=
7003 old_archive_from_expsyms_cmds=
7004 export_dynamic_flag_spec=
7005 whole_archive_flag_spec=
7006 thread_safe_flag_spec=
7007 hardcode_libdir_flag_spec=
7008 hardcode_libdir_flag_spec_ld=
7009 hardcode_libdir_separator=
7010 hardcode_direct=no
7011 hardcode_minus_L=no
7012 hardcode_shlibpath_var=unsupported
7013 link_all_deplibs=unknown
7014 hardcode_automatic=no
7015 module_cmds=
7016 module_expsym_cmds=
7017 always_export_symbols=no
7018 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7019 # include_expsyms should be a list of space-separated symbols to be *always*
7020 # included in the symbol list
7021 include_expsyms=
7022 # exclude_expsyms can be an extended regexp of symbols to exclude
7023 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7024 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7025 # as well as any symbol that contains `d'.
7026 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7027 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7028 # platforms (ab)use it in PIC code, but their linkers get confused if
7029 # the symbol is explicitly referenced. Since portable code cannot
7030 # rely on this symbol name, it's probably fine to never include it in
7031 # preloaded symbol tables.
7032 extract_expsyms_cmds=
7034 case $host_os in
7035 cygwin* | mingw* | pw32*)
7036 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7037 # When not using gcc, we currently assume that we are using
7038 # Microsoft Visual C++.
7039 if test "$GCC" != yes; then
7040 with_gnu_ld=no
7043 openbsd*)
7044 with_gnu_ld=no
7046 esac
7048 ld_shlibs=yes
7049 if test "$with_gnu_ld" = yes; then
7050 # If archive_cmds runs LD, not CC, wlarc should be empty
7051 wlarc='${wl}'
7053 # See if GNU ld supports shared libraries.
7054 case $host_os in
7055 aix3* | aix4* | aix5*)
7056 # On AIX/PPC, the GNU linker is very broken
7057 if test "$host_cpu" != ia64; then
7058 ld_shlibs=no
7059 cat <<EOF 1>&2
7061 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7062 *** to be unable to reliably create shared libraries on AIX.
7063 *** Therefore, libtool is disabling shared libraries support. If you
7064 *** really care for shared libraries, you may want to modify your PATH
7065 *** so that a non-GNU linker is found, and then restart.
7071 amigaos*)
7072 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)'
7073 hardcode_libdir_flag_spec='-L$libdir'
7074 hardcode_minus_L=yes
7076 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7077 # that the semantics of dynamic libraries on AmigaOS, at least up
7078 # to version 4, is to share data among multiple programs linked
7079 # with the same dynamic library. Since this doesn't match the
7080 # behavior of shared libraries on other platforms, we can't use
7081 # them.
7082 ld_shlibs=no
7085 beos*)
7086 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7087 allow_undefined_flag=unsupported
7088 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7089 # support --undefined. This deserves some investigation. FIXME
7090 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7091 else
7092 ld_shlibs=no
7096 cygwin* | mingw* | pw32*)
7097 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7098 # as there is no search path for DLLs.
7099 hardcode_libdir_flag_spec='-L$libdir'
7100 allow_undefined_flag=unsupported
7101 always_export_symbols=no
7102 enable_shared_with_static_runtimes=yes
7103 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7105 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7106 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7107 # If the export-symbols file already is a .def file (1st line
7108 # is EXPORTS), use it as is; otherwise, prepend...
7109 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7110 cp $export_symbols $output_objdir/$soname.def;
7111 else
7112 echo EXPORTS > $output_objdir/$soname.def;
7113 cat $export_symbols >> $output_objdir/$soname.def;
7115 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7116 else
7117 ld_shlibs=no
7121 netbsd*)
7122 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7123 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7124 wlarc=
7125 else
7126 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7127 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7131 solaris* | sysv5*)
7132 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7133 ld_shlibs=no
7134 cat <<EOF 1>&2
7136 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7137 *** create shared libraries on Solaris systems. Therefore, libtool
7138 *** is disabling shared libraries support. We urge you to upgrade GNU
7139 *** binutils to release 2.9.1 or newer. Another option is to modify
7140 *** your PATH or compiler configuration so that the native linker is
7141 *** used, and then restart.
7144 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7145 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7146 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7147 else
7148 ld_shlibs=no
7152 sunos4*)
7153 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7154 wlarc=
7155 hardcode_direct=yes
7156 hardcode_shlibpath_var=no
7159 linux*)
7160 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7161 tmp_addflag=
7162 case $CC,$host_cpu in
7163 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
7164 tmp_addflag=' -fpic' ;;
7165 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7166 tmp_addflag=' -i_dynamic' ;;
7167 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7168 tmp_addflag=' -i_dynamic -nofor_main' ;;
7169 ifc* | ifort*) # Intel Fortran compiler
7170 tmp_addflag=' -nofor_main' ;;
7171 esac
7172 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7173 supports_anon_versioning=no
7174 case `$LD -v 2>/dev/null` in
7175 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7176 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7177 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7178 *\ 2.11.*) ;; # other 2.11 versions
7179 *) supports_anon_versioning=yes ;;
7180 esac
7181 if test $supports_anon_versioning = yes; then
7182 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7183 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7184 $echo "local: *; };" >> $output_objdir/$libname.ver~
7185 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7186 else
7187 archive_expsym_cmds=$archive_cmds
7189 else
7190 ld_shlibs=no
7195 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7196 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7197 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7198 else
7199 ld_shlibs=no
7202 esac
7204 if test "$ld_shlibs" = yes; then
7205 runpath_var=LD_RUN_PATH
7206 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7207 export_dynamic_flag_spec='${wl}--export-dynamic'
7208 # ancient GNU ld didn't support --whole-archive et. al.
7209 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7210 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7211 else
7212 whole_archive_flag_spec=
7215 else
7216 # PORTME fill in a description of your system's linker (not GNU ld)
7217 case $host_os in
7218 aix3*)
7219 allow_undefined_flag=unsupported
7220 always_export_symbols=yes
7221 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'
7222 # Note: this linker hardcodes the directories in LIBPATH if there
7223 # are no directories specified by -L.
7224 hardcode_minus_L=yes
7225 if test "$GCC" = yes && test -z "$link_static_flag"; then
7226 # Neither direct hardcoding nor static linking is supported with a
7227 # broken collect2.
7228 hardcode_direct=unsupported
7232 aix4* | aix5*)
7233 if test "$host_cpu" = ia64; then
7234 # On IA64, the linker does run time linking by default, so we don't
7235 # have to do anything special.
7236 aix_use_runtimelinking=no
7237 exp_sym_flag='-Bexport'
7238 no_entry_flag=""
7239 else
7240 # If we're using GNU nm, then we don't want the "-C" option.
7241 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7242 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7243 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'
7244 else
7245 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'
7247 aix_use_runtimelinking=no
7249 # Test if we are trying to use run time linking or normal
7250 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7251 # need to do runtime linking.
7252 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7253 for ld_flag in $LDFLAGS; do
7254 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7255 aix_use_runtimelinking=yes
7256 break
7258 done
7259 esac
7261 exp_sym_flag='-bexport'
7262 no_entry_flag='-bnoentry'
7265 # When large executables or shared objects are built, AIX ld can
7266 # have problems creating the table of contents. If linking a library
7267 # or program results in "error TOC overflow" add -mminimal-toc to
7268 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7269 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7271 archive_cmds=''
7272 hardcode_direct=yes
7273 hardcode_libdir_separator=':'
7274 link_all_deplibs=yes
7276 if test "$GCC" = yes; then
7277 case $host_os in aix4.[012]|aix4.[012].*)
7278 # We only want to do this on AIX 4.2 and lower, the check
7279 # below for broken collect2 doesn't work under 4.3+
7280 collect2name=`${CC} -print-prog-name=collect2`
7281 if test -f "$collect2name" && \
7282 strings "$collect2name" | grep resolve_lib_name >/dev/null
7283 then
7284 # We have reworked collect2
7285 hardcode_direct=yes
7286 else
7287 # We have old collect2
7288 hardcode_direct=unsupported
7289 # It fails to find uninstalled libraries when the uninstalled
7290 # path is not listed in the libpath. Setting hardcode_minus_L
7291 # to unsupported forces relinking
7292 hardcode_minus_L=yes
7293 hardcode_libdir_flag_spec='-L$libdir'
7294 hardcode_libdir_separator=
7296 esac
7297 shared_flag='-shared'
7298 if test "$aix_use_runtimelinking" = yes; then
7299 shared_flag="$shared_flag "'${wl}-G'
7301 else
7302 # not using gcc
7303 if test "$host_cpu" = ia64; then
7304 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7305 # chokes on -Wl,-G. The following line is correct:
7306 shared_flag='-G'
7307 else
7308 if test "$aix_use_runtimelinking" = yes; then
7309 shared_flag='${wl}-G'
7310 else
7311 shared_flag='${wl}-bM:SRE'
7316 # It seems that -bexpall does not export symbols beginning with
7317 # underscore (_), so it is better to generate a list of symbols to export.
7318 always_export_symbols=yes
7319 if test "$aix_use_runtimelinking" = yes; then
7320 # Warning - without using the other runtime loading flags (-brtl),
7321 # -berok will link without error, but may produce a broken library.
7322 allow_undefined_flag='-berok'
7323 # Determine the default libpath from the value encoded in an empty executable.
7324 cat >conftest.$ac_ext <<_ACEOF
7325 /* confdefs.h. */
7326 _ACEOF
7327 cat confdefs.h >>conftest.$ac_ext
7328 cat >>conftest.$ac_ext <<_ACEOF
7329 /* end confdefs.h. */
7332 main ()
7336 return 0;
7338 _ACEOF
7339 rm -f conftest.$ac_objext conftest$ac_exeext
7340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7341 (eval $ac_link) 2>conftest.er1
7342 ac_status=$?
7343 grep -v '^ *+' conftest.er1 >conftest.err
7344 rm -f conftest.er1
7345 cat conftest.err >&5
7346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347 (exit $ac_status); } &&
7348 { ac_try='test -z "$ac_c_werror_flag"
7349 || test ! -s conftest.err'
7350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7351 (eval $ac_try) 2>&5
7352 ac_status=$?
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); }; } &&
7355 { ac_try='test -s conftest$ac_exeext'
7356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7357 (eval $ac_try) 2>&5
7358 ac_status=$?
7359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); }; }; then
7362 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7364 # Check for a 64-bit object if we didn't find anything.
7365 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; }
7366 }'`; fi
7367 else
7368 echo "$as_me: failed program was:" >&5
7369 sed 's/^/| /' conftest.$ac_ext >&5
7372 rm -f conftest.err conftest.$ac_objext \
7373 conftest$ac_exeext conftest.$ac_ext
7374 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7376 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7377 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"
7378 else
7379 if test "$host_cpu" = ia64; then
7380 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7381 allow_undefined_flag="-z nodefs"
7382 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"
7383 else
7384 # Determine the default libpath from the value encoded in an empty executable.
7385 cat >conftest.$ac_ext <<_ACEOF
7386 /* confdefs.h. */
7387 _ACEOF
7388 cat confdefs.h >>conftest.$ac_ext
7389 cat >>conftest.$ac_ext <<_ACEOF
7390 /* end confdefs.h. */
7393 main ()
7397 return 0;
7399 _ACEOF
7400 rm -f conftest.$ac_objext conftest$ac_exeext
7401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7402 (eval $ac_link) 2>conftest.er1
7403 ac_status=$?
7404 grep -v '^ *+' conftest.er1 >conftest.err
7405 rm -f conftest.er1
7406 cat conftest.err >&5
7407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408 (exit $ac_status); } &&
7409 { ac_try='test -z "$ac_c_werror_flag"
7410 || test ! -s conftest.err'
7411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7412 (eval $ac_try) 2>&5
7413 ac_status=$?
7414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415 (exit $ac_status); }; } &&
7416 { ac_try='test -s conftest$ac_exeext'
7417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7418 (eval $ac_try) 2>&5
7419 ac_status=$?
7420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421 (exit $ac_status); }; }; then
7423 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7425 # Check for a 64-bit object if we didn't find anything.
7426 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; }
7427 }'`; fi
7428 else
7429 echo "$as_me: failed program was:" >&5
7430 sed 's/^/| /' conftest.$ac_ext >&5
7433 rm -f conftest.err conftest.$ac_objext \
7434 conftest$ac_exeext conftest.$ac_ext
7435 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7437 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7438 # Warning - without using the other run time loading flags,
7439 # -berok will link without error, but may produce a broken library.
7440 no_undefined_flag=' ${wl}-bernotok'
7441 allow_undefined_flag=' ${wl}-berok'
7442 # -bexpall does not export symbols beginning with underscore (_)
7443 always_export_symbols=yes
7444 # Exported symbols can be pulled into shared objects from archives
7445 whole_archive_flag_spec=' '
7446 archive_cmds_need_lc=yes
7447 # This is similar to how AIX traditionally builds it's shared libraries.
7448 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'
7453 amigaos*)
7454 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)'
7455 hardcode_libdir_flag_spec='-L$libdir'
7456 hardcode_minus_L=yes
7457 # see comment about different semantics on the GNU ld section
7458 ld_shlibs=no
7461 bsdi[45]*)
7462 export_dynamic_flag_spec=-rdynamic
7465 cygwin* | mingw* | pw32*)
7466 # When not using gcc, we currently assume that we are using
7467 # Microsoft Visual C++.
7468 # hardcode_libdir_flag_spec is actually meaningless, as there is
7469 # no search path for DLLs.
7470 hardcode_libdir_flag_spec=' '
7471 allow_undefined_flag=unsupported
7472 # Tell ltmain to make .lib files, not .a files.
7473 libext=lib
7474 # Tell ltmain to make .dll files, not .so files.
7475 shrext_cmds=".dll"
7476 # FIXME: Setting linknames here is a bad hack.
7477 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7478 # The linker will automatically build a .lib file if we build a DLL.
7479 old_archive_From_new_cmds='true'
7480 # FIXME: Should let the user specify the lib program.
7481 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7482 fix_srcfile_path='`cygpath -w "$srcfile"`'
7483 enable_shared_with_static_runtimes=yes
7486 darwin* | rhapsody*)
7487 case "$host_os" in
7488 rhapsody* | darwin1.[012])
7489 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7491 *) # Darwin 1.3 on
7492 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7493 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7494 else
7495 case ${MACOSX_DEPLOYMENT_TARGET} in
7496 10.[012])
7497 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7499 10.*)
7500 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7502 esac
7505 esac
7506 archive_cmds_need_lc=no
7507 hardcode_direct=no
7508 hardcode_automatic=yes
7509 hardcode_shlibpath_var=unsupported
7510 whole_archive_flag_spec=''
7511 link_all_deplibs=yes
7512 if test "$GCC" = yes ; then
7513 output_verbose_link_cmd='echo'
7514 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7515 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7516 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7517 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}'
7518 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}'
7519 else
7520 case "$cc_basename" in
7521 xlc*)
7522 output_verbose_link_cmd='echo'
7523 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7524 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7525 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7526 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7527 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}'
7530 ld_shlibs=no
7532 esac
7536 dgux*)
7537 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7538 hardcode_libdir_flag_spec='-L$libdir'
7539 hardcode_shlibpath_var=no
7542 freebsd1*)
7543 ld_shlibs=no
7546 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7547 # support. Future versions do this automatically, but an explicit c++rt0.o
7548 # does not break anything, and helps significantly (at the cost of a little
7549 # extra space).
7550 freebsd2.2*)
7551 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7552 hardcode_libdir_flag_spec='-R$libdir'
7553 hardcode_direct=yes
7554 hardcode_shlibpath_var=no
7557 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7558 freebsd2*)
7559 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7560 hardcode_direct=yes
7561 hardcode_minus_L=yes
7562 hardcode_shlibpath_var=no
7565 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7566 freebsd* | kfreebsd*-gnu | dragonfly*)
7567 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7568 hardcode_libdir_flag_spec='-R$libdir'
7569 hardcode_direct=yes
7570 hardcode_shlibpath_var=no
7573 hpux9*)
7574 if test "$GCC" = yes; then
7575 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'
7576 else
7577 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'
7579 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7580 hardcode_libdir_separator=:
7581 hardcode_direct=yes
7583 # hardcode_minus_L: Not really in the search PATH,
7584 # but as the default location of the library.
7585 hardcode_minus_L=yes
7586 export_dynamic_flag_spec='${wl}-E'
7589 hpux10* | hpux11*)
7590 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7591 case "$host_cpu" in
7592 hppa*64*|ia64*)
7593 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7596 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7598 esac
7599 else
7600 case "$host_cpu" in
7601 hppa*64*|ia64*)
7602 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7605 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7607 esac
7609 if test "$with_gnu_ld" = no; then
7610 case "$host_cpu" in
7611 hppa*64*)
7612 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7613 hardcode_libdir_flag_spec_ld='+b $libdir'
7614 hardcode_libdir_separator=:
7615 hardcode_direct=no
7616 hardcode_shlibpath_var=no
7618 ia64*)
7619 hardcode_libdir_flag_spec='-L$libdir'
7620 hardcode_direct=no
7621 hardcode_shlibpath_var=no
7623 # hardcode_minus_L: Not really in the search PATH,
7624 # but as the default location of the library.
7625 hardcode_minus_L=yes
7628 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7629 hardcode_libdir_separator=:
7630 hardcode_direct=yes
7631 export_dynamic_flag_spec='${wl}-E'
7633 # hardcode_minus_L: Not really in the search PATH,
7634 # but as the default location of the library.
7635 hardcode_minus_L=yes
7637 esac
7641 irix5* | irix6* | nonstopux*)
7642 if test "$GCC" = yes; then
7643 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'
7644 else
7645 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'
7646 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7648 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7649 hardcode_libdir_separator=:
7650 link_all_deplibs=yes
7653 netbsd*)
7654 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7655 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7656 else
7657 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7659 hardcode_libdir_flag_spec='-R$libdir'
7660 hardcode_direct=yes
7661 hardcode_shlibpath_var=no
7664 newsos6)
7665 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7666 hardcode_direct=yes
7667 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7668 hardcode_libdir_separator=:
7669 hardcode_shlibpath_var=no
7672 openbsd*)
7673 hardcode_direct=yes
7674 hardcode_shlibpath_var=no
7675 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7676 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7677 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7678 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7679 export_dynamic_flag_spec='${wl}-E'
7680 else
7681 case $host_os in
7682 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7683 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7684 hardcode_libdir_flag_spec='-R$libdir'
7687 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7688 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7690 esac
7694 os2*)
7695 hardcode_libdir_flag_spec='-L$libdir'
7696 hardcode_minus_L=yes
7697 allow_undefined_flag=unsupported
7698 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'
7699 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7702 osf3*)
7703 if test "$GCC" = yes; then
7704 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7705 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'
7706 else
7707 allow_undefined_flag=' -expect_unresolved \*'
7708 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'
7710 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7711 hardcode_libdir_separator=:
7714 osf4* | osf5*) # as osf3* with the addition of -msym flag
7715 if test "$GCC" = yes; then
7716 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7717 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'
7718 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7719 else
7720 allow_undefined_flag=' -expect_unresolved \*'
7721 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'
7722 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7723 $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'
7725 # Both c and cxx compiler support -rpath directly
7726 hardcode_libdir_flag_spec='-rpath $libdir'
7728 hardcode_libdir_separator=:
7731 sco3.2v5*)
7732 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7733 hardcode_shlibpath_var=no
7734 export_dynamic_flag_spec='${wl}-Bexport'
7735 runpath_var=LD_RUN_PATH
7736 hardcode_runpath_var=yes
7739 solaris*)
7740 no_undefined_flag=' -z text'
7741 if test "$GCC" = yes; then
7742 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7743 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7744 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7745 else
7746 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7747 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7748 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7750 hardcode_libdir_flag_spec='-R$libdir'
7751 hardcode_shlibpath_var=no
7752 case $host_os in
7753 solaris2.[0-5] | solaris2.[0-5].*) ;;
7754 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7755 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
7756 esac
7757 link_all_deplibs=yes
7760 sunos4*)
7761 if test "x$host_vendor" = xsequent; then
7762 # Use $CC to link under sequent, because it throws in some extra .o
7763 # files that make .init and .fini sections work.
7764 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7765 else
7766 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7768 hardcode_libdir_flag_spec='-L$libdir'
7769 hardcode_direct=yes
7770 hardcode_minus_L=yes
7771 hardcode_shlibpath_var=no
7774 sysv4)
7775 case $host_vendor in
7776 sni)
7777 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7778 hardcode_direct=yes # is this really true???
7780 siemens)
7781 ## LD is ld it makes a PLAMLIB
7782 ## CC just makes a GrossModule.
7783 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7784 reload_cmds='$CC -r -o $output$reload_objs'
7785 hardcode_direct=no
7787 motorola)
7788 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7789 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7791 esac
7792 runpath_var='LD_RUN_PATH'
7793 hardcode_shlibpath_var=no
7796 sysv4.3*)
7797 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7798 hardcode_shlibpath_var=no
7799 export_dynamic_flag_spec='-Bexport'
7802 sysv4*MP*)
7803 if test -d /usr/nec; then
7804 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7805 hardcode_shlibpath_var=no
7806 runpath_var=LD_RUN_PATH
7807 hardcode_runpath_var=yes
7808 ld_shlibs=yes
7812 sysv4.2uw2*)
7813 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7814 hardcode_direct=yes
7815 hardcode_minus_L=no
7816 hardcode_shlibpath_var=no
7817 hardcode_runpath_var=yes
7818 runpath_var=LD_RUN_PATH
7821 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7822 no_undefined_flag='${wl}-z ${wl}text'
7823 if test "$GCC" = yes; then
7824 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7825 else
7826 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7828 runpath_var='LD_RUN_PATH'
7829 hardcode_shlibpath_var=no
7832 sysv5*)
7833 no_undefined_flag=' -z text'
7834 # $CC -shared without GNU ld will not create a library from C++
7835 # object files and a static libstdc++, better avoid it by now
7836 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7837 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7838 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7839 hardcode_libdir_flag_spec=
7840 hardcode_shlibpath_var=no
7841 runpath_var='LD_RUN_PATH'
7844 uts4*)
7845 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7846 hardcode_libdir_flag_spec='-L$libdir'
7847 hardcode_shlibpath_var=no
7851 ld_shlibs=no
7853 esac
7856 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7857 echo "${ECHO_T}$ld_shlibs" >&6
7858 test "$ld_shlibs" = no && can_build_shared=no
7860 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7861 if test "$GCC" = yes; then
7862 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7866 # Do we need to explicitly link libc?
7868 case "x$archive_cmds_need_lc" in
7869 x|xyes)
7870 # Assume -lc should be added
7871 archive_cmds_need_lc=yes
7873 if test "$enable_shared" = yes && test "$GCC" = yes; then
7874 case $archive_cmds in
7875 *'~'*)
7876 # FIXME: we may have to deal with multi-command sequences.
7878 '$CC '*)
7879 # Test whether the compiler implicitly links with -lc since on some
7880 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7881 # to ld, don't add -lc before -lgcc.
7882 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7883 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7884 $rm conftest*
7885 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7888 (eval $ac_compile) 2>&5
7889 ac_status=$?
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); } 2>conftest.err; then
7892 soname=conftest
7893 lib=conftest
7894 libobjs=conftest.$ac_objext
7895 deplibs=
7896 wl=$lt_prog_compiler_wl
7897 compiler_flags=-v
7898 linker_flags=-v
7899 verstring=
7900 output_objdir=.
7901 libname=conftest
7902 lt_save_allow_undefined_flag=$allow_undefined_flag
7903 allow_undefined_flag=
7904 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7905 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7906 ac_status=$?
7907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908 (exit $ac_status); }
7909 then
7910 archive_cmds_need_lc=no
7911 else
7912 archive_cmds_need_lc=yes
7914 allow_undefined_flag=$lt_save_allow_undefined_flag
7915 else
7916 cat conftest.err 1>&5
7918 $rm conftest*
7919 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7920 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7922 esac
7925 esac
7927 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7928 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7929 library_names_spec=
7930 libname_spec='lib$name'
7931 soname_spec=
7932 shrext_cmds=".so"
7933 postinstall_cmds=
7934 postuninstall_cmds=
7935 finish_cmds=
7936 finish_eval=
7937 shlibpath_var=
7938 shlibpath_overrides_runpath=unknown
7939 version_type=none
7940 dynamic_linker="$host_os ld.so"
7941 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7942 if test "$GCC" = yes; then
7943 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7944 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7945 # if the path contains ";" then we assume it to be the separator
7946 # otherwise default to the standard path separator (i.e. ":") - it is
7947 # assumed that no part of a normal pathname contains ";" but that should
7948 # okay in the real world where ";" in dirpaths is itself problematic.
7949 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7950 else
7951 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7953 else
7954 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7956 need_lib_prefix=unknown
7957 hardcode_into_libs=no
7959 # when you set need_version to no, make sure it does not cause -set_version
7960 # flags to be left without arguments
7961 need_version=unknown
7963 case $host_os in
7964 aix3*)
7965 version_type=linux
7966 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7967 shlibpath_var=LIBPATH
7969 # AIX 3 has no versioning support, so we append a major version to the name.
7970 soname_spec='${libname}${release}${shared_ext}$major'
7973 aix4* | aix5*)
7974 version_type=linux
7975 need_lib_prefix=no
7976 need_version=no
7977 hardcode_into_libs=yes
7978 if test "$host_cpu" = ia64; then
7979 # AIX 5 supports IA64
7980 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7981 shlibpath_var=LD_LIBRARY_PATH
7982 else
7983 # With GCC up to 2.95.x, collect2 would create an import file
7984 # for dependence libraries. The import file would start with
7985 # the line `#! .'. This would cause the generated library to
7986 # depend on `.', always an invalid library. This was fixed in
7987 # development snapshots of GCC prior to 3.0.
7988 case $host_os in
7989 aix4 | aix4.[01] | aix4.[01].*)
7990 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7991 echo ' yes '
7992 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7994 else
7995 can_build_shared=no
7998 esac
7999 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8000 # soname into executable. Probably we can add versioning support to
8001 # collect2, so additional links can be useful in future.
8002 if test "$aix_use_runtimelinking" = yes; then
8003 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8004 # instead of lib<name>.a to let people know that these are not
8005 # typical AIX shared libraries.
8006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8007 else
8008 # We preserve .a as extension for shared libraries through AIX4.2
8009 # and later when we are not doing run time linking.
8010 library_names_spec='${libname}${release}.a $libname.a'
8011 soname_spec='${libname}${release}${shared_ext}$major'
8013 shlibpath_var=LIBPATH
8017 amigaos*)
8018 library_names_spec='$libname.ixlibrary $libname.a'
8019 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8020 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'
8023 beos*)
8024 library_names_spec='${libname}${shared_ext}'
8025 dynamic_linker="$host_os ld.so"
8026 shlibpath_var=LIBRARY_PATH
8029 bsdi[45]*)
8030 version_type=linux
8031 need_version=no
8032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8033 soname_spec='${libname}${release}${shared_ext}$major'
8034 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8035 shlibpath_var=LD_LIBRARY_PATH
8036 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8037 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8038 # the default ld.so.conf also contains /usr/contrib/lib and
8039 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8040 # libtool to hard-code these into programs
8043 cygwin* | mingw* | pw32*)
8044 version_type=windows
8045 shrext_cmds=".dll"
8046 need_version=no
8047 need_lib_prefix=no
8049 case $GCC,$host_os in
8050 yes,cygwin* | yes,mingw* | yes,pw32*)
8051 library_names_spec='$libname.dll.a'
8052 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8053 postinstall_cmds='base_file=`basename \${file}`~
8054 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8055 dldir=$destdir/`dirname \$dlpath`~
8056 test -d \$dldir || mkdir -p \$dldir~
8057 $install_prog $dir/$dlname \$dldir/$dlname'
8058 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8059 dlpath=$dir/\$dldll~
8060 $rm \$dlpath'
8061 shlibpath_overrides_runpath=yes
8063 case $host_os in
8064 cygwin*)
8065 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8066 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8067 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8069 mingw*)
8070 # MinGW DLLs use traditional 'lib' prefix
8071 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8072 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8073 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8074 # It is most probably a Windows format PATH printed by
8075 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8076 # path with ; separators, and with drive letters. We can handle the
8077 # drive letters (cygwin fileutils understands them), so leave them,
8078 # especially as we might pass files found there to a mingw objdump,
8079 # which wouldn't understand a cygwinified path. Ahh.
8080 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8081 else
8082 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8085 pw32*)
8086 # pw32 DLLs use 'pw' prefix rather than 'lib'
8087 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8089 esac
8093 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8095 esac
8096 dynamic_linker='Win32 ld.exe'
8097 # FIXME: first we should search . and the directory the executable is in
8098 shlibpath_var=PATH
8101 darwin* | rhapsody*)
8102 dynamic_linker="$host_os dyld"
8103 version_type=darwin
8104 need_lib_prefix=no
8105 need_version=no
8106 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8107 soname_spec='${libname}${release}${major}$shared_ext'
8108 shlibpath_overrides_runpath=yes
8109 shlibpath_var=DYLD_LIBRARY_PATH
8110 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
8111 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8112 if test "$GCC" = yes; then
8113 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"`
8114 else
8115 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8117 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8120 dgux*)
8121 version_type=linux
8122 need_lib_prefix=no
8123 need_version=no
8124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8125 soname_spec='${libname}${release}${shared_ext}$major'
8126 shlibpath_var=LD_LIBRARY_PATH
8129 freebsd1*)
8130 dynamic_linker=no
8133 kfreebsd*-gnu)
8134 version_type=linux
8135 need_lib_prefix=no
8136 need_version=no
8137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8138 soname_spec='${libname}${release}${shared_ext}$major'
8139 shlibpath_var=LD_LIBRARY_PATH
8140 shlibpath_overrides_runpath=no
8141 hardcode_into_libs=yes
8142 dynamic_linker='GNU ld.so'
8145 freebsd* | dragonfly*)
8146 # DragonFly does not have aout. When/if they implement a new
8147 # versioning mechanism, adjust this.
8148 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8149 version_type=freebsd-$objformat
8150 case $version_type in
8151 freebsd-elf*)
8152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8153 need_version=no
8154 need_lib_prefix=no
8156 freebsd-*)
8157 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8158 need_version=yes
8160 esac
8161 shlibpath_var=LD_LIBRARY_PATH
8162 case $host_os in
8163 freebsd2*)
8164 shlibpath_overrides_runpath=yes
8166 freebsd3.[01]* | freebsdelf3.[01]*)
8167 shlibpath_overrides_runpath=yes
8168 hardcode_into_libs=yes
8170 *) # from 3.2 on
8171 shlibpath_overrides_runpath=no
8172 hardcode_into_libs=yes
8174 esac
8177 gnu*)
8178 version_type=linux
8179 need_lib_prefix=no
8180 need_version=no
8181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8182 soname_spec='${libname}${release}${shared_ext}$major'
8183 shlibpath_var=LD_LIBRARY_PATH
8184 hardcode_into_libs=yes
8187 hpux9* | hpux10* | hpux11*)
8188 # Give a soname corresponding to the major version so that dld.sl refuses to
8189 # link against other versions.
8190 version_type=sunos
8191 need_lib_prefix=no
8192 need_version=no
8193 case "$host_cpu" in
8194 ia64*)
8195 shrext_cmds='.so'
8196 hardcode_into_libs=yes
8197 dynamic_linker="$host_os dld.so"
8198 shlibpath_var=LD_LIBRARY_PATH
8199 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8201 soname_spec='${libname}${release}${shared_ext}$major'
8202 if test "X$HPUX_IA64_MODE" = X32; then
8203 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8204 else
8205 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8207 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8209 hppa*64*)
8210 shrext_cmds='.sl'
8211 hardcode_into_libs=yes
8212 dynamic_linker="$host_os dld.sl"
8213 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8214 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8216 soname_spec='${libname}${release}${shared_ext}$major'
8217 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8218 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8221 shrext_cmds='.sl'
8222 dynamic_linker="$host_os dld.sl"
8223 shlibpath_var=SHLIB_PATH
8224 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8226 soname_spec='${libname}${release}${shared_ext}$major'
8228 esac
8229 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8230 postinstall_cmds='chmod 555 $lib'
8233 irix5* | irix6* | nonstopux*)
8234 case $host_os in
8235 nonstopux*) version_type=nonstopux ;;
8237 if test "$lt_cv_prog_gnu_ld" = yes; then
8238 version_type=linux
8239 else
8240 version_type=irix
8241 fi ;;
8242 esac
8243 need_lib_prefix=no
8244 need_version=no
8245 soname_spec='${libname}${release}${shared_ext}$major'
8246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8247 case $host_os in
8248 irix5* | nonstopux*)
8249 libsuff= shlibsuff=
8252 case $LD in # libtool.m4 will add one of these switches to LD
8253 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8254 libsuff= shlibsuff= libmagic=32-bit;;
8255 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8256 libsuff=32 shlibsuff=N32 libmagic=N32;;
8257 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8258 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8259 *) libsuff= shlibsuff= libmagic=never-match;;
8260 esac
8262 esac
8263 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8264 shlibpath_overrides_runpath=no
8265 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8266 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8267 hardcode_into_libs=yes
8270 # No shared lib support for Linux oldld, aout, or coff.
8271 linux*oldld* | linux*aout* | linux*coff*)
8272 dynamic_linker=no
8275 # This must be Linux ELF.
8276 linux*)
8277 version_type=linux
8278 need_lib_prefix=no
8279 need_version=no
8280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8281 soname_spec='${libname}${release}${shared_ext}$major'
8282 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8283 shlibpath_var=LD_LIBRARY_PATH
8284 shlibpath_overrides_runpath=no
8285 # This implies no fast_install, which is unacceptable.
8286 # Some rework will be needed to allow for fast_install
8287 # before this can be enabled.
8288 hardcode_into_libs=yes
8290 # Append ld.so.conf contents to the search path
8291 if test -f /etc/ld.so.conf; then
8292 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8293 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8296 # We used to test for /lib/ld.so.1 and disable shared libraries on
8297 # powerpc, because MkLinux only supported shared libraries with the
8298 # GNU dynamic linker. Since this was broken with cross compilers,
8299 # most powerpc-linux boxes support dynamic linking these days and
8300 # people can always --disable-shared, the test was removed, and we
8301 # assume the GNU/Linux dynamic linker is in use.
8302 dynamic_linker='GNU/Linux ld.so'
8305 knetbsd*-gnu)
8306 version_type=linux
8307 need_lib_prefix=no
8308 need_version=no
8309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8310 soname_spec='${libname}${release}${shared_ext}$major'
8311 shlibpath_var=LD_LIBRARY_PATH
8312 shlibpath_overrides_runpath=no
8313 hardcode_into_libs=yes
8314 dynamic_linker='GNU ld.so'
8317 netbsd*)
8318 version_type=sunos
8319 need_lib_prefix=no
8320 need_version=no
8321 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8323 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8324 dynamic_linker='NetBSD (a.out) ld.so'
8325 else
8326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8327 soname_spec='${libname}${release}${shared_ext}$major'
8328 dynamic_linker='NetBSD ld.elf_so'
8330 shlibpath_var=LD_LIBRARY_PATH
8331 shlibpath_overrides_runpath=yes
8332 hardcode_into_libs=yes
8335 newsos6)
8336 version_type=linux
8337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8338 shlibpath_var=LD_LIBRARY_PATH
8339 shlibpath_overrides_runpath=yes
8342 nto-qnx*)
8343 version_type=linux
8344 need_lib_prefix=no
8345 need_version=no
8346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8347 soname_spec='${libname}${release}${shared_ext}$major'
8348 shlibpath_var=LD_LIBRARY_PATH
8349 shlibpath_overrides_runpath=yes
8352 openbsd*)
8353 version_type=sunos
8354 need_lib_prefix=no
8355 need_version=no
8356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8357 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8358 shlibpath_var=LD_LIBRARY_PATH
8359 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8360 case $host_os in
8361 openbsd2.[89] | openbsd2.[89].*)
8362 shlibpath_overrides_runpath=no
8365 shlibpath_overrides_runpath=yes
8367 esac
8368 else
8369 shlibpath_overrides_runpath=yes
8373 os2*)
8374 libname_spec='$name'
8375 shrext_cmds=".dll"
8376 need_lib_prefix=no
8377 library_names_spec='$libname${shared_ext} $libname.a'
8378 dynamic_linker='OS/2 ld.exe'
8379 shlibpath_var=LIBPATH
8382 osf3* | osf4* | osf5*)
8383 version_type=osf
8384 need_lib_prefix=no
8385 need_version=no
8386 soname_spec='${libname}${release}${shared_ext}$major'
8387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8388 shlibpath_var=LD_LIBRARY_PATH
8389 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8390 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8393 sco3.2v5*)
8394 version_type=osf
8395 soname_spec='${libname}${release}${shared_ext}$major'
8396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8397 shlibpath_var=LD_LIBRARY_PATH
8400 solaris*)
8401 version_type=linux
8402 need_lib_prefix=no
8403 need_version=no
8404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8405 soname_spec='${libname}${release}${shared_ext}$major'
8406 shlibpath_var=LD_LIBRARY_PATH
8407 shlibpath_overrides_runpath=yes
8408 hardcode_into_libs=yes
8409 # ldd complains unless libraries are executable
8410 postinstall_cmds='chmod +x $lib'
8413 sunos4*)
8414 version_type=sunos
8415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8416 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8417 shlibpath_var=LD_LIBRARY_PATH
8418 shlibpath_overrides_runpath=yes
8419 if test "$with_gnu_ld" = yes; then
8420 need_lib_prefix=no
8422 need_version=yes
8425 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8426 version_type=linux
8427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8428 soname_spec='${libname}${release}${shared_ext}$major'
8429 shlibpath_var=LD_LIBRARY_PATH
8430 case $host_vendor in
8431 sni)
8432 shlibpath_overrides_runpath=no
8433 need_lib_prefix=no
8434 export_dynamic_flag_spec='${wl}-Blargedynsym'
8435 runpath_var=LD_RUN_PATH
8437 siemens)
8438 need_lib_prefix=no
8440 motorola)
8441 need_lib_prefix=no
8442 need_version=no
8443 shlibpath_overrides_runpath=no
8444 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8446 esac
8449 sysv4*MP*)
8450 if test -d /usr/nec ;then
8451 version_type=linux
8452 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8453 soname_spec='$libname${shared_ext}.$major'
8454 shlibpath_var=LD_LIBRARY_PATH
8458 uts4*)
8459 version_type=linux
8460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8461 soname_spec='${libname}${release}${shared_ext}$major'
8462 shlibpath_var=LD_LIBRARY_PATH
8466 dynamic_linker=no
8468 esac
8469 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8470 echo "${ECHO_T}$dynamic_linker" >&6
8471 test "$dynamic_linker" = no && can_build_shared=no
8473 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8474 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8475 hardcode_action=
8476 if test -n "$hardcode_libdir_flag_spec" || \
8477 test -n "$runpath_var" || \
8478 test "X$hardcode_automatic" = "Xyes" ; then
8480 # We can hardcode non-existant directories.
8481 if test "$hardcode_direct" != no &&
8482 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8483 # have to relink, otherwise we might link with an installed library
8484 # when we should be linking with a yet-to-be-installed one
8485 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8486 test "$hardcode_minus_L" != no; then
8487 # Linking always hardcodes the temporary library directory.
8488 hardcode_action=relink
8489 else
8490 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8491 hardcode_action=immediate
8493 else
8494 # We cannot hardcode anything, or else we can only hardcode existing
8495 # directories.
8496 hardcode_action=unsupported
8498 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8499 echo "${ECHO_T}$hardcode_action" >&6
8501 if test "$hardcode_action" = relink; then
8502 # Fast installation is not supported
8503 enable_fast_install=no
8504 elif test "$shlibpath_overrides_runpath" = yes ||
8505 test "$enable_shared" = no; then
8506 # Fast installation is not necessary
8507 enable_fast_install=needless
8510 striplib=
8511 old_striplib=
8512 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8513 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8514 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8515 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8516 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8517 echo "$as_me:$LINENO: result: yes" >&5
8518 echo "${ECHO_T}yes" >&6
8519 else
8520 # FIXME - insert some real tests, host_os isn't really good enough
8521 case $host_os in
8522 darwin*)
8523 if test -n "$STRIP" ; then
8524 striplib="$STRIP -x"
8525 echo "$as_me:$LINENO: result: yes" >&5
8526 echo "${ECHO_T}yes" >&6
8527 else
8528 echo "$as_me:$LINENO: result: no" >&5
8529 echo "${ECHO_T}no" >&6
8533 echo "$as_me:$LINENO: result: no" >&5
8534 echo "${ECHO_T}no" >&6
8536 esac
8539 if test "x$enable_dlopen" != xyes; then
8540 enable_dlopen=unknown
8541 enable_dlopen_self=unknown
8542 enable_dlopen_self_static=unknown
8543 else
8544 lt_cv_dlopen=no
8545 lt_cv_dlopen_libs=
8547 case $host_os in
8548 beos*)
8549 lt_cv_dlopen="load_add_on"
8550 lt_cv_dlopen_libs=
8551 lt_cv_dlopen_self=yes
8554 mingw* | pw32*)
8555 lt_cv_dlopen="LoadLibrary"
8556 lt_cv_dlopen_libs=
8559 cygwin*)
8560 lt_cv_dlopen="dlopen"
8561 lt_cv_dlopen_libs=
8564 darwin*)
8565 # if libdl is installed we need to link against it
8566 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8567 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8568 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8569 echo $ECHO_N "(cached) $ECHO_C" >&6
8570 else
8571 ac_check_lib_save_LIBS=$LIBS
8572 LIBS="-ldl $LIBS"
8573 cat >conftest.$ac_ext <<_ACEOF
8574 /* confdefs.h. */
8575 _ACEOF
8576 cat confdefs.h >>conftest.$ac_ext
8577 cat >>conftest.$ac_ext <<_ACEOF
8578 /* end confdefs.h. */
8580 /* Override any gcc2 internal prototype to avoid an error. */
8581 #ifdef __cplusplus
8582 extern "C"
8583 #endif
8584 /* We use char because int might match the return type of a gcc2
8585 builtin and then its argument prototype would still apply. */
8586 char dlopen ();
8588 main ()
8590 dlopen ();
8592 return 0;
8594 _ACEOF
8595 rm -f conftest.$ac_objext conftest$ac_exeext
8596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8597 (eval $ac_link) 2>conftest.er1
8598 ac_status=$?
8599 grep -v '^ *+' conftest.er1 >conftest.err
8600 rm -f conftest.er1
8601 cat conftest.err >&5
8602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603 (exit $ac_status); } &&
8604 { ac_try='test -z "$ac_c_werror_flag"
8605 || test ! -s conftest.err'
8606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8607 (eval $ac_try) 2>&5
8608 ac_status=$?
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); }; } &&
8611 { ac_try='test -s conftest$ac_exeext'
8612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8613 (eval $ac_try) 2>&5
8614 ac_status=$?
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); }; }; then
8617 ac_cv_lib_dl_dlopen=yes
8618 else
8619 echo "$as_me: failed program was:" >&5
8620 sed 's/^/| /' conftest.$ac_ext >&5
8622 ac_cv_lib_dl_dlopen=no
8624 rm -f conftest.err conftest.$ac_objext \
8625 conftest$ac_exeext conftest.$ac_ext
8626 LIBS=$ac_check_lib_save_LIBS
8628 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8629 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8630 if test $ac_cv_lib_dl_dlopen = yes; then
8631 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8632 else
8634 lt_cv_dlopen="dyld"
8635 lt_cv_dlopen_libs=
8636 lt_cv_dlopen_self=yes
8643 echo "$as_me:$LINENO: checking for shl_load" >&5
8644 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8645 if test "${ac_cv_func_shl_load+set}" = set; then
8646 echo $ECHO_N "(cached) $ECHO_C" >&6
8647 else
8648 cat >conftest.$ac_ext <<_ACEOF
8649 /* confdefs.h. */
8650 _ACEOF
8651 cat confdefs.h >>conftest.$ac_ext
8652 cat >>conftest.$ac_ext <<_ACEOF
8653 /* end confdefs.h. */
8654 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8655 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8656 #define shl_load innocuous_shl_load
8658 /* System header to define __stub macros and hopefully few prototypes,
8659 which can conflict with char shl_load (); below.
8660 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8661 <limits.h> exists even on freestanding compilers. */
8663 #ifdef __STDC__
8664 # include <limits.h>
8665 #else
8666 # include <assert.h>
8667 #endif
8669 #undef shl_load
8671 /* Override any gcc2 internal prototype to avoid an error. */
8672 #ifdef __cplusplus
8673 extern "C"
8675 #endif
8676 /* We use char because int might match the return type of a gcc2
8677 builtin and then its argument prototype would still apply. */
8678 char shl_load ();
8679 /* The GNU C library defines this for functions which it implements
8680 to always fail with ENOSYS. Some functions are actually named
8681 something starting with __ and the normal name is an alias. */
8682 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8683 choke me
8684 #else
8685 char (*f) () = shl_load;
8686 #endif
8687 #ifdef __cplusplus
8689 #endif
8692 main ()
8694 return f != shl_load;
8696 return 0;
8698 _ACEOF
8699 rm -f conftest.$ac_objext conftest$ac_exeext
8700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8701 (eval $ac_link) 2>conftest.er1
8702 ac_status=$?
8703 grep -v '^ *+' conftest.er1 >conftest.err
8704 rm -f conftest.er1
8705 cat conftest.err >&5
8706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707 (exit $ac_status); } &&
8708 { ac_try='test -z "$ac_c_werror_flag"
8709 || test ! -s conftest.err'
8710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8711 (eval $ac_try) 2>&5
8712 ac_status=$?
8713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714 (exit $ac_status); }; } &&
8715 { ac_try='test -s conftest$ac_exeext'
8716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8717 (eval $ac_try) 2>&5
8718 ac_status=$?
8719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720 (exit $ac_status); }; }; then
8721 ac_cv_func_shl_load=yes
8722 else
8723 echo "$as_me: failed program was:" >&5
8724 sed 's/^/| /' conftest.$ac_ext >&5
8726 ac_cv_func_shl_load=no
8728 rm -f conftest.err conftest.$ac_objext \
8729 conftest$ac_exeext conftest.$ac_ext
8731 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8732 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8733 if test $ac_cv_func_shl_load = yes; then
8734 lt_cv_dlopen="shl_load"
8735 else
8736 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8737 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8738 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8739 echo $ECHO_N "(cached) $ECHO_C" >&6
8740 else
8741 ac_check_lib_save_LIBS=$LIBS
8742 LIBS="-ldld $LIBS"
8743 cat >conftest.$ac_ext <<_ACEOF
8744 /* confdefs.h. */
8745 _ACEOF
8746 cat confdefs.h >>conftest.$ac_ext
8747 cat >>conftest.$ac_ext <<_ACEOF
8748 /* end confdefs.h. */
8750 /* Override any gcc2 internal prototype to avoid an error. */
8751 #ifdef __cplusplus
8752 extern "C"
8753 #endif
8754 /* We use char because int might match the return type of a gcc2
8755 builtin and then its argument prototype would still apply. */
8756 char shl_load ();
8758 main ()
8760 shl_load ();
8762 return 0;
8764 _ACEOF
8765 rm -f conftest.$ac_objext conftest$ac_exeext
8766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8767 (eval $ac_link) 2>conftest.er1
8768 ac_status=$?
8769 grep -v '^ *+' conftest.er1 >conftest.err
8770 rm -f conftest.er1
8771 cat conftest.err >&5
8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); } &&
8774 { ac_try='test -z "$ac_c_werror_flag"
8775 || test ! -s conftest.err'
8776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8777 (eval $ac_try) 2>&5
8778 ac_status=$?
8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 (exit $ac_status); }; } &&
8781 { ac_try='test -s conftest$ac_exeext'
8782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8783 (eval $ac_try) 2>&5
8784 ac_status=$?
8785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786 (exit $ac_status); }; }; then
8787 ac_cv_lib_dld_shl_load=yes
8788 else
8789 echo "$as_me: failed program was:" >&5
8790 sed 's/^/| /' conftest.$ac_ext >&5
8792 ac_cv_lib_dld_shl_load=no
8794 rm -f conftest.err conftest.$ac_objext \
8795 conftest$ac_exeext conftest.$ac_ext
8796 LIBS=$ac_check_lib_save_LIBS
8798 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8799 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8800 if test $ac_cv_lib_dld_shl_load = yes; then
8801 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8802 else
8803 echo "$as_me:$LINENO: checking for dlopen" >&5
8804 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8805 if test "${ac_cv_func_dlopen+set}" = set; then
8806 echo $ECHO_N "(cached) $ECHO_C" >&6
8807 else
8808 cat >conftest.$ac_ext <<_ACEOF
8809 /* confdefs.h. */
8810 _ACEOF
8811 cat confdefs.h >>conftest.$ac_ext
8812 cat >>conftest.$ac_ext <<_ACEOF
8813 /* end confdefs.h. */
8814 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8815 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8816 #define dlopen innocuous_dlopen
8818 /* System header to define __stub macros and hopefully few prototypes,
8819 which can conflict with char dlopen (); below.
8820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8821 <limits.h> exists even on freestanding compilers. */
8823 #ifdef __STDC__
8824 # include <limits.h>
8825 #else
8826 # include <assert.h>
8827 #endif
8829 #undef dlopen
8831 /* Override any gcc2 internal prototype to avoid an error. */
8832 #ifdef __cplusplus
8833 extern "C"
8835 #endif
8836 /* We use char because int might match the return type of a gcc2
8837 builtin and then its argument prototype would still apply. */
8838 char dlopen ();
8839 /* The GNU C library defines this for functions which it implements
8840 to always fail with ENOSYS. Some functions are actually named
8841 something starting with __ and the normal name is an alias. */
8842 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8843 choke me
8844 #else
8845 char (*f) () = dlopen;
8846 #endif
8847 #ifdef __cplusplus
8849 #endif
8852 main ()
8854 return f != dlopen;
8856 return 0;
8858 _ACEOF
8859 rm -f conftest.$ac_objext conftest$ac_exeext
8860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8861 (eval $ac_link) 2>conftest.er1
8862 ac_status=$?
8863 grep -v '^ *+' conftest.er1 >conftest.err
8864 rm -f conftest.er1
8865 cat conftest.err >&5
8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867 (exit $ac_status); } &&
8868 { ac_try='test -z "$ac_c_werror_flag"
8869 || test ! -s conftest.err'
8870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8871 (eval $ac_try) 2>&5
8872 ac_status=$?
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); }; } &&
8875 { ac_try='test -s conftest$ac_exeext'
8876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8877 (eval $ac_try) 2>&5
8878 ac_status=$?
8879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880 (exit $ac_status); }; }; then
8881 ac_cv_func_dlopen=yes
8882 else
8883 echo "$as_me: failed program was:" >&5
8884 sed 's/^/| /' conftest.$ac_ext >&5
8886 ac_cv_func_dlopen=no
8888 rm -f conftest.err conftest.$ac_objext \
8889 conftest$ac_exeext conftest.$ac_ext
8891 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8892 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8893 if test $ac_cv_func_dlopen = yes; then
8894 lt_cv_dlopen="dlopen"
8895 else
8896 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8897 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8898 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8899 echo $ECHO_N "(cached) $ECHO_C" >&6
8900 else
8901 ac_check_lib_save_LIBS=$LIBS
8902 LIBS="-ldl $LIBS"
8903 cat >conftest.$ac_ext <<_ACEOF
8904 /* confdefs.h. */
8905 _ACEOF
8906 cat confdefs.h >>conftest.$ac_ext
8907 cat >>conftest.$ac_ext <<_ACEOF
8908 /* end confdefs.h. */
8910 /* Override any gcc2 internal prototype to avoid an error. */
8911 #ifdef __cplusplus
8912 extern "C"
8913 #endif
8914 /* We use char because int might match the return type of a gcc2
8915 builtin and then its argument prototype would still apply. */
8916 char dlopen ();
8918 main ()
8920 dlopen ();
8922 return 0;
8924 _ACEOF
8925 rm -f conftest.$ac_objext conftest$ac_exeext
8926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8927 (eval $ac_link) 2>conftest.er1
8928 ac_status=$?
8929 grep -v '^ *+' conftest.er1 >conftest.err
8930 rm -f conftest.er1
8931 cat conftest.err >&5
8932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933 (exit $ac_status); } &&
8934 { ac_try='test -z "$ac_c_werror_flag"
8935 || test ! -s conftest.err'
8936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8937 (eval $ac_try) 2>&5
8938 ac_status=$?
8939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940 (exit $ac_status); }; } &&
8941 { ac_try='test -s conftest$ac_exeext'
8942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8943 (eval $ac_try) 2>&5
8944 ac_status=$?
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); }; }; then
8947 ac_cv_lib_dl_dlopen=yes
8948 else
8949 echo "$as_me: failed program was:" >&5
8950 sed 's/^/| /' conftest.$ac_ext >&5
8952 ac_cv_lib_dl_dlopen=no
8954 rm -f conftest.err conftest.$ac_objext \
8955 conftest$ac_exeext conftest.$ac_ext
8956 LIBS=$ac_check_lib_save_LIBS
8958 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8959 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8960 if test $ac_cv_lib_dl_dlopen = yes; then
8961 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8962 else
8963 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8964 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8965 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8966 echo $ECHO_N "(cached) $ECHO_C" >&6
8967 else
8968 ac_check_lib_save_LIBS=$LIBS
8969 LIBS="-lsvld $LIBS"
8970 cat >conftest.$ac_ext <<_ACEOF
8971 /* confdefs.h. */
8972 _ACEOF
8973 cat confdefs.h >>conftest.$ac_ext
8974 cat >>conftest.$ac_ext <<_ACEOF
8975 /* end confdefs.h. */
8977 /* Override any gcc2 internal prototype to avoid an error. */
8978 #ifdef __cplusplus
8979 extern "C"
8980 #endif
8981 /* We use char because int might match the return type of a gcc2
8982 builtin and then its argument prototype would still apply. */
8983 char dlopen ();
8985 main ()
8987 dlopen ();
8989 return 0;
8991 _ACEOF
8992 rm -f conftest.$ac_objext conftest$ac_exeext
8993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8994 (eval $ac_link) 2>conftest.er1
8995 ac_status=$?
8996 grep -v '^ *+' conftest.er1 >conftest.err
8997 rm -f conftest.er1
8998 cat conftest.err >&5
8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 (exit $ac_status); } &&
9001 { ac_try='test -z "$ac_c_werror_flag"
9002 || test ! -s conftest.err'
9003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9004 (eval $ac_try) 2>&5
9005 ac_status=$?
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); }; } &&
9008 { ac_try='test -s conftest$ac_exeext'
9009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9010 (eval $ac_try) 2>&5
9011 ac_status=$?
9012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013 (exit $ac_status); }; }; then
9014 ac_cv_lib_svld_dlopen=yes
9015 else
9016 echo "$as_me: failed program was:" >&5
9017 sed 's/^/| /' conftest.$ac_ext >&5
9019 ac_cv_lib_svld_dlopen=no
9021 rm -f conftest.err conftest.$ac_objext \
9022 conftest$ac_exeext conftest.$ac_ext
9023 LIBS=$ac_check_lib_save_LIBS
9025 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9026 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9027 if test $ac_cv_lib_svld_dlopen = yes; then
9028 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9029 else
9030 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9031 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9032 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9033 echo $ECHO_N "(cached) $ECHO_C" >&6
9034 else
9035 ac_check_lib_save_LIBS=$LIBS
9036 LIBS="-ldld $LIBS"
9037 cat >conftest.$ac_ext <<_ACEOF
9038 /* confdefs.h. */
9039 _ACEOF
9040 cat confdefs.h >>conftest.$ac_ext
9041 cat >>conftest.$ac_ext <<_ACEOF
9042 /* end confdefs.h. */
9044 /* Override any gcc2 internal prototype to avoid an error. */
9045 #ifdef __cplusplus
9046 extern "C"
9047 #endif
9048 /* We use char because int might match the return type of a gcc2
9049 builtin and then its argument prototype would still apply. */
9050 char dld_link ();
9052 main ()
9054 dld_link ();
9056 return 0;
9058 _ACEOF
9059 rm -f conftest.$ac_objext conftest$ac_exeext
9060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9061 (eval $ac_link) 2>conftest.er1
9062 ac_status=$?
9063 grep -v '^ *+' conftest.er1 >conftest.err
9064 rm -f conftest.er1
9065 cat conftest.err >&5
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); } &&
9068 { ac_try='test -z "$ac_c_werror_flag"
9069 || test ! -s conftest.err'
9070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9071 (eval $ac_try) 2>&5
9072 ac_status=$?
9073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074 (exit $ac_status); }; } &&
9075 { ac_try='test -s conftest$ac_exeext'
9076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9077 (eval $ac_try) 2>&5
9078 ac_status=$?
9079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080 (exit $ac_status); }; }; then
9081 ac_cv_lib_dld_dld_link=yes
9082 else
9083 echo "$as_me: failed program was:" >&5
9084 sed 's/^/| /' conftest.$ac_ext >&5
9086 ac_cv_lib_dld_dld_link=no
9088 rm -f conftest.err conftest.$ac_objext \
9089 conftest$ac_exeext conftest.$ac_ext
9090 LIBS=$ac_check_lib_save_LIBS
9092 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9093 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9094 if test $ac_cv_lib_dld_dld_link = yes; then
9095 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9114 esac
9116 if test "x$lt_cv_dlopen" != xno; then
9117 enable_dlopen=yes
9118 else
9119 enable_dlopen=no
9122 case $lt_cv_dlopen in
9123 dlopen)
9124 save_CPPFLAGS="$CPPFLAGS"
9125 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9127 save_LDFLAGS="$LDFLAGS"
9128 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9130 save_LIBS="$LIBS"
9131 LIBS="$lt_cv_dlopen_libs $LIBS"
9133 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9134 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9135 if test "${lt_cv_dlopen_self+set}" = set; then
9136 echo $ECHO_N "(cached) $ECHO_C" >&6
9137 else
9138 if test "$cross_compiling" = yes; then :
9139 lt_cv_dlopen_self=cross
9140 else
9141 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9142 lt_status=$lt_dlunknown
9143 cat > conftest.$ac_ext <<EOF
9144 #line 9144 "configure"
9145 #include "confdefs.h"
9147 #if HAVE_DLFCN_H
9148 #include <dlfcn.h>
9149 #endif
9151 #include <stdio.h>
9153 #ifdef RTLD_GLOBAL
9154 # define LT_DLGLOBAL RTLD_GLOBAL
9155 #else
9156 # ifdef DL_GLOBAL
9157 # define LT_DLGLOBAL DL_GLOBAL
9158 # else
9159 # define LT_DLGLOBAL 0
9160 # endif
9161 #endif
9163 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9164 find out it does not work in some platform. */
9165 #ifndef LT_DLLAZY_OR_NOW
9166 # ifdef RTLD_LAZY
9167 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9168 # else
9169 # ifdef DL_LAZY
9170 # define LT_DLLAZY_OR_NOW DL_LAZY
9171 # else
9172 # ifdef RTLD_NOW
9173 # define LT_DLLAZY_OR_NOW RTLD_NOW
9174 # else
9175 # ifdef DL_NOW
9176 # define LT_DLLAZY_OR_NOW DL_NOW
9177 # else
9178 # define LT_DLLAZY_OR_NOW 0
9179 # endif
9180 # endif
9181 # endif
9182 # endif
9183 #endif
9185 #ifdef __cplusplus
9186 extern "C" void exit (int);
9187 #endif
9189 void fnord() { int i=42;}
9190 int main ()
9192 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9193 int status = $lt_dlunknown;
9195 if (self)
9197 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9198 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9199 /* dlclose (self); */
9202 exit (status);
9205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9206 (eval $ac_link) 2>&5
9207 ac_status=$?
9208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9210 (./conftest; exit; ) 2>/dev/null
9211 lt_status=$?
9212 case x$lt_status in
9213 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9214 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9215 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9216 esac
9217 else :
9218 # compilation failed
9219 lt_cv_dlopen_self=no
9222 rm -fr conftest*
9226 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9227 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9229 if test "x$lt_cv_dlopen_self" = xyes; then
9230 LDFLAGS="$LDFLAGS $link_static_flag"
9231 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9232 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9233 if test "${lt_cv_dlopen_self_static+set}" = set; then
9234 echo $ECHO_N "(cached) $ECHO_C" >&6
9235 else
9236 if test "$cross_compiling" = yes; then :
9237 lt_cv_dlopen_self_static=cross
9238 else
9239 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9240 lt_status=$lt_dlunknown
9241 cat > conftest.$ac_ext <<EOF
9242 #line 9242 "configure"
9243 #include "confdefs.h"
9245 #if HAVE_DLFCN_H
9246 #include <dlfcn.h>
9247 #endif
9249 #include <stdio.h>
9251 #ifdef RTLD_GLOBAL
9252 # define LT_DLGLOBAL RTLD_GLOBAL
9253 #else
9254 # ifdef DL_GLOBAL
9255 # define LT_DLGLOBAL DL_GLOBAL
9256 # else
9257 # define LT_DLGLOBAL 0
9258 # endif
9259 #endif
9261 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9262 find out it does not work in some platform. */
9263 #ifndef LT_DLLAZY_OR_NOW
9264 # ifdef RTLD_LAZY
9265 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9266 # else
9267 # ifdef DL_LAZY
9268 # define LT_DLLAZY_OR_NOW DL_LAZY
9269 # else
9270 # ifdef RTLD_NOW
9271 # define LT_DLLAZY_OR_NOW RTLD_NOW
9272 # else
9273 # ifdef DL_NOW
9274 # define LT_DLLAZY_OR_NOW DL_NOW
9275 # else
9276 # define LT_DLLAZY_OR_NOW 0
9277 # endif
9278 # endif
9279 # endif
9280 # endif
9281 #endif
9283 #ifdef __cplusplus
9284 extern "C" void exit (int);
9285 #endif
9287 void fnord() { int i=42;}
9288 int main ()
9290 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9291 int status = $lt_dlunknown;
9293 if (self)
9295 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9296 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9297 /* dlclose (self); */
9300 exit (status);
9303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9304 (eval $ac_link) 2>&5
9305 ac_status=$?
9306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9308 (./conftest; exit; ) 2>/dev/null
9309 lt_status=$?
9310 case x$lt_status in
9311 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9312 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9313 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9314 esac
9315 else :
9316 # compilation failed
9317 lt_cv_dlopen_self_static=no
9320 rm -fr conftest*
9324 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9325 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9328 CPPFLAGS="$save_CPPFLAGS"
9329 LDFLAGS="$save_LDFLAGS"
9330 LIBS="$save_LIBS"
9332 esac
9334 case $lt_cv_dlopen_self in
9335 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9336 *) enable_dlopen_self=unknown ;;
9337 esac
9339 case $lt_cv_dlopen_self_static in
9340 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9341 *) enable_dlopen_self_static=unknown ;;
9342 esac
9346 # Report which librarie types wil actually be built
9347 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9348 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9349 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9350 echo "${ECHO_T}$can_build_shared" >&6
9352 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9353 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9354 test "$can_build_shared" = "no" && enable_shared=no
9356 # On AIX, shared libraries and static libraries use the same namespace, and
9357 # are all built from PIC.
9358 case "$host_os" in
9359 aix3*)
9360 test "$enable_shared" = yes && enable_static=no
9361 if test -n "$RANLIB"; then
9362 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9363 postinstall_cmds='$RANLIB $lib'
9367 aix4* | aix5*)
9368 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9369 test "$enable_shared" = yes && enable_static=no
9372 esac
9373 echo "$as_me:$LINENO: result: $enable_shared" >&5
9374 echo "${ECHO_T}$enable_shared" >&6
9376 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9377 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9378 # Make sure either enable_shared or enable_static is yes.
9379 test "$enable_shared" = yes || enable_static=yes
9380 echo "$as_me:$LINENO: result: $enable_static" >&5
9381 echo "${ECHO_T}$enable_static" >&6
9383 # The else clause should only fire when bootstrapping the
9384 # libtool distribution, otherwise you forgot to ship ltmain.sh
9385 # with your package, and you will get complaints that there are
9386 # no rules to generate ltmain.sh.
9387 if test -f "$ltmain"; then
9388 # See if we are running on zsh, and set the options which allow our commands through
9389 # without removal of \ escapes.
9390 if test -n "${ZSH_VERSION+set}" ; then
9391 setopt NO_GLOB_SUBST
9393 # Now quote all the things that may contain metacharacters while being
9394 # careful not to overquote the AC_SUBSTed values. We take copies of the
9395 # variables and quote the copies for generation of the libtool script.
9396 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9397 SED SHELL STRIP \
9398 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9399 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9400 deplibs_check_method reload_flag reload_cmds need_locks \
9401 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9402 lt_cv_sys_global_symbol_to_c_name_address \
9403 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9404 old_postinstall_cmds old_postuninstall_cmds \
9405 compiler \
9406 CC \
9407 LD \
9408 lt_prog_compiler_wl \
9409 lt_prog_compiler_pic \
9410 lt_prog_compiler_static \
9411 lt_prog_compiler_no_builtin_flag \
9412 export_dynamic_flag_spec \
9413 thread_safe_flag_spec \
9414 whole_archive_flag_spec \
9415 enable_shared_with_static_runtimes \
9416 old_archive_cmds \
9417 old_archive_from_new_cmds \
9418 predep_objects \
9419 postdep_objects \
9420 predeps \
9421 postdeps \
9422 compiler_lib_search_path \
9423 archive_cmds \
9424 archive_expsym_cmds \
9425 postinstall_cmds \
9426 postuninstall_cmds \
9427 old_archive_from_expsyms_cmds \
9428 allow_undefined_flag \
9429 no_undefined_flag \
9430 export_symbols_cmds \
9431 hardcode_libdir_flag_spec \
9432 hardcode_libdir_flag_spec_ld \
9433 hardcode_libdir_separator \
9434 hardcode_automatic \
9435 module_cmds \
9436 module_expsym_cmds \
9437 lt_cv_prog_compiler_c_o \
9438 exclude_expsyms \
9439 include_expsyms; do
9441 case $var in
9442 old_archive_cmds | \
9443 old_archive_from_new_cmds | \
9444 archive_cmds | \
9445 archive_expsym_cmds | \
9446 module_cmds | \
9447 module_expsym_cmds | \
9448 old_archive_from_expsyms_cmds | \
9449 export_symbols_cmds | \
9450 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9451 postinstall_cmds | postuninstall_cmds | \
9452 old_postinstall_cmds | old_postuninstall_cmds | \
9453 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9454 # Double-quote double-evaled strings.
9455 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9458 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9460 esac
9461 done
9463 case $lt_echo in
9464 *'\$0 --fallback-echo"')
9465 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9467 esac
9469 cfgfile="${ofile}T"
9470 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9471 $rm -f "$cfgfile"
9472 { echo "$as_me:$LINENO: creating $ofile" >&5
9473 echo "$as_me: creating $ofile" >&6;}
9475 cat <<__EOF__ >> "$cfgfile"
9476 #! $SHELL
9478 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9479 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9480 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9482 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9483 # Free Software Foundation, Inc.
9485 # This file is part of GNU Libtool:
9486 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9488 # This program is free software; you can redistribute it and/or modify
9489 # it under the terms of the GNU General Public License as published by
9490 # the Free Software Foundation; either version 2 of the License, or
9491 # (at your option) any later version.
9493 # This program is distributed in the hope that it will be useful, but
9494 # WITHOUT ANY WARRANTY; without even the implied warranty of
9495 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9496 # General Public License for more details.
9498 # You should have received a copy of the GNU General Public License
9499 # along with this program; if not, write to the Free Software
9500 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9502 # As a special exception to the GNU General Public License, if you
9503 # distribute this file as part of a program that contains a
9504 # configuration script generated by Autoconf, you may include it under
9505 # the same distribution terms that you use for the rest of that program.
9507 # A sed program that does not truncate output.
9508 SED=$lt_SED
9510 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9511 Xsed="$SED -e s/^X//"
9513 # The HP-UX ksh and POSIX shell print the target directory to stdout
9514 # if CDPATH is set.
9515 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9517 # The names of the tagged configurations supported by this script.
9518 available_tags=
9520 # ### BEGIN LIBTOOL CONFIG
9522 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9524 # Shell to use when invoking shell scripts.
9525 SHELL=$lt_SHELL
9527 # Whether or not to build shared libraries.
9528 build_libtool_libs=$enable_shared
9530 # Whether or not to build static libraries.
9531 build_old_libs=$enable_static
9533 # Whether or not to add -lc for building shared libraries.
9534 build_libtool_need_lc=$archive_cmds_need_lc
9536 # Whether or not to disallow shared libs when runtime libs are static
9537 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9539 # Whether or not to optimize for fast installation.
9540 fast_install=$enable_fast_install
9542 # The host system.
9543 host_alias=$host_alias
9544 host=$host
9545 host_os=$host_os
9547 # The build system.
9548 build_alias=$build_alias
9549 build=$build
9550 build_os=$build_os
9552 # An echo program that does not interpret backslashes.
9553 echo=$lt_echo
9555 # The archiver.
9556 AR=$lt_AR
9557 AR_FLAGS=$lt_AR_FLAGS
9559 # A C compiler.
9560 LTCC=$lt_LTCC
9562 # A language-specific compiler.
9563 CC=$lt_compiler
9565 # Is the compiler the GNU C compiler?
9566 with_gcc=$GCC
9568 # An ERE matcher.
9569 EGREP=$lt_EGREP
9571 # The linker used to build libraries.
9572 LD=$lt_LD
9574 # Whether we need hard or soft links.
9575 LN_S=$lt_LN_S
9577 # A BSD-compatible nm program.
9578 NM=$lt_NM
9580 # A symbol stripping program
9581 STRIP=$lt_STRIP
9583 # Used to examine libraries when file_magic_cmd begins "file"
9584 MAGIC_CMD=$MAGIC_CMD
9586 # Used on cygwin: DLL creation program.
9587 DLLTOOL="$DLLTOOL"
9589 # Used on cygwin: object dumper.
9590 OBJDUMP="$OBJDUMP"
9592 # Used on cygwin: assembler.
9593 AS="$AS"
9595 # The name of the directory that contains temporary libtool files.
9596 objdir=$objdir
9598 # How to create reloadable object files.
9599 reload_flag=$lt_reload_flag
9600 reload_cmds=$lt_reload_cmds
9602 # How to pass a linker flag through the compiler.
9603 wl=$lt_lt_prog_compiler_wl
9605 # Object file suffix (normally "o").
9606 objext="$ac_objext"
9608 # Old archive suffix (normally "a").
9609 libext="$libext"
9611 # Shared library suffix (normally ".so").
9612 shrext_cmds='$shrext_cmds'
9614 # Executable file suffix (normally "").
9615 exeext="$exeext"
9617 # Additional compiler flags for building library objects.
9618 pic_flag=$lt_lt_prog_compiler_pic
9619 pic_mode=$pic_mode
9621 # What is the maximum length of a command?
9622 max_cmd_len=$lt_cv_sys_max_cmd_len
9624 # Does compiler simultaneously support -c and -o options?
9625 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9627 # Must we lock files when doing compilation ?
9628 need_locks=$lt_need_locks
9630 # Do we need the lib prefix for modules?
9631 need_lib_prefix=$need_lib_prefix
9633 # Do we need a version for libraries?
9634 need_version=$need_version
9636 # Whether dlopen is supported.
9637 dlopen_support=$enable_dlopen
9639 # Whether dlopen of programs is supported.
9640 dlopen_self=$enable_dlopen_self
9642 # Whether dlopen of statically linked programs is supported.
9643 dlopen_self_static=$enable_dlopen_self_static
9645 # Compiler flag to prevent dynamic linking.
9646 link_static_flag=$lt_lt_prog_compiler_static
9648 # Compiler flag to turn off builtin functions.
9649 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9651 # Compiler flag to allow reflexive dlopens.
9652 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9654 # Compiler flag to generate shared objects directly from archives.
9655 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9657 # Compiler flag to generate thread-safe objects.
9658 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9660 # Library versioning type.
9661 version_type=$version_type
9663 # Format of library name prefix.
9664 libname_spec=$lt_libname_spec
9666 # List of archive names. First name is the real one, the rest are links.
9667 # The last name is the one that the linker finds with -lNAME.
9668 library_names_spec=$lt_library_names_spec
9670 # The coded name of the library, if different from the real name.
9671 soname_spec=$lt_soname_spec
9673 # Commands used to build and install an old-style archive.
9674 RANLIB=$lt_RANLIB
9675 old_archive_cmds=$lt_old_archive_cmds
9676 old_postinstall_cmds=$lt_old_postinstall_cmds
9677 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9679 # Create an old-style archive from a shared archive.
9680 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9682 # Create a temporary old-style archive to link instead of a shared archive.
9683 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9685 # Commands used to build and install a shared archive.
9686 archive_cmds=$lt_archive_cmds
9687 archive_expsym_cmds=$lt_archive_expsym_cmds
9688 postinstall_cmds=$lt_postinstall_cmds
9689 postuninstall_cmds=$lt_postuninstall_cmds
9691 # Commands used to build a loadable module (assumed same as above if empty)
9692 module_cmds=$lt_module_cmds
9693 module_expsym_cmds=$lt_module_expsym_cmds
9695 # Commands to strip libraries.
9696 old_striplib=$lt_old_striplib
9697 striplib=$lt_striplib
9699 # Dependencies to place before the objects being linked to create a
9700 # shared library.
9701 predep_objects=$lt_predep_objects
9703 # Dependencies to place after the objects being linked to create a
9704 # shared library.
9705 postdep_objects=$lt_postdep_objects
9707 # Dependencies to place before the objects being linked to create a
9708 # shared library.
9709 predeps=$lt_predeps
9711 # Dependencies to place after the objects being linked to create a
9712 # shared library.
9713 postdeps=$lt_postdeps
9715 # The library search path used internally by the compiler when linking
9716 # a shared library.
9717 compiler_lib_search_path=$lt_compiler_lib_search_path
9719 # Method to check whether dependent libraries are shared objects.
9720 deplibs_check_method=$lt_deplibs_check_method
9722 # Command to use when deplibs_check_method == file_magic.
9723 file_magic_cmd=$lt_file_magic_cmd
9725 # Flag that allows shared libraries with undefined symbols to be built.
9726 allow_undefined_flag=$lt_allow_undefined_flag
9728 # Flag that forces no undefined symbols.
9729 no_undefined_flag=$lt_no_undefined_flag
9731 # Commands used to finish a libtool library installation in a directory.
9732 finish_cmds=$lt_finish_cmds
9734 # Same as above, but a single script fragment to be evaled but not shown.
9735 finish_eval=$lt_finish_eval
9737 # Take the output of nm and produce a listing of raw symbols and C names.
9738 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9740 # Transform the output of nm in a proper C declaration
9741 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9743 # Transform the output of nm in a C name address pair
9744 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9746 # This is the shared library runtime path variable.
9747 runpath_var=$runpath_var
9749 # This is the shared library path variable.
9750 shlibpath_var=$shlibpath_var
9752 # Is shlibpath searched before the hard-coded library search path?
9753 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9755 # How to hardcode a shared library path into an executable.
9756 hardcode_action=$hardcode_action
9758 # Whether we should hardcode library paths into libraries.
9759 hardcode_into_libs=$hardcode_into_libs
9761 # Flag to hardcode \$libdir into a binary during linking.
9762 # This must work even if \$libdir does not exist.
9763 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9765 # If ld is used when linking, flag to hardcode \$libdir into
9766 # a binary during linking. This must work even if \$libdir does
9767 # not exist.
9768 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9770 # Whether we need a single -rpath flag with a separated argument.
9771 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9773 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9774 # resulting binary.
9775 hardcode_direct=$hardcode_direct
9777 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9778 # resulting binary.
9779 hardcode_minus_L=$hardcode_minus_L
9781 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9782 # the resulting binary.
9783 hardcode_shlibpath_var=$hardcode_shlibpath_var
9785 # Set to yes if building a shared library automatically hardcodes DIR into the library
9786 # and all subsequent libraries and executables linked against it.
9787 hardcode_automatic=$hardcode_automatic
9789 # Variables whose values should be saved in libtool wrapper scripts and
9790 # restored at relink time.
9791 variables_saved_for_relink="$variables_saved_for_relink"
9793 # Whether libtool must link a program against all its dependency libraries.
9794 link_all_deplibs=$link_all_deplibs
9796 # Compile-time system search path for libraries
9797 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9799 # Run-time system search path for libraries
9800 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9802 # Fix the shell variable \$srcfile for the compiler.
9803 fix_srcfile_path="$fix_srcfile_path"
9805 # Set to yes if exported symbols are required.
9806 always_export_symbols=$always_export_symbols
9808 # The commands to list exported symbols.
9809 export_symbols_cmds=$lt_export_symbols_cmds
9811 # The commands to extract the exported symbol list from a shared archive.
9812 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9814 # Symbols that should not be listed in the preloaded symbols.
9815 exclude_expsyms=$lt_exclude_expsyms
9817 # Symbols that must always be exported.
9818 include_expsyms=$lt_include_expsyms
9820 # ### END LIBTOOL CONFIG
9822 __EOF__
9825 case $host_os in
9826 aix3*)
9827 cat <<\EOF >> "$cfgfile"
9829 # AIX sometimes has problems with the GCC collect2 program. For some
9830 # reason, if we set the COLLECT_NAMES environment variable, the problems
9831 # vanish in a puff of smoke.
9832 if test "X${COLLECT_NAMES+set}" != Xset; then
9833 COLLECT_NAMES=
9834 export COLLECT_NAMES
9838 esac
9840 # We use sed instead of cat because bash on DJGPP gets confused if
9841 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9842 # text mode, it properly converts lines to CR/LF. This bash problem
9843 # is reportedly fixed, but why not run on old versions too?
9844 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9846 mv -f "$cfgfile" "$ofile" || \
9847 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9848 chmod +x "$ofile"
9850 else
9851 # If there is no Makefile yet, we rely on a make rule to execute
9852 # `config.status --recheck' to rerun these tests and create the
9853 # libtool script then.
9854 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9855 if test -f "$ltmain_in"; then
9856 test -f Makefile && make "$ltmain"
9861 ac_ext=c
9862 ac_cpp='$CPP $CPPFLAGS'
9863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9867 CC="$lt_save_CC"
9870 # Check whether --with-tags or --without-tags was given.
9871 if test "${with_tags+set}" = set; then
9872 withval="$with_tags"
9873 tagnames="$withval"
9876 if test -f "$ltmain" && test -n "$tagnames"; then
9877 if test ! -f "${ofile}"; then
9878 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9879 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9882 if test -z "$LTCC"; then
9883 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9884 if test -z "$LTCC"; then
9885 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9886 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9887 else
9888 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9889 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9893 # Extract list of available tagged configurations in $ofile.
9894 # Note that this assumes the entire list is on one line.
9895 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9897 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9898 for tagname in $tagnames; do
9899 IFS="$lt_save_ifs"
9900 # Check whether tagname contains only valid characters
9901 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9902 "") ;;
9903 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9904 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9905 { (exit 1); exit 1; }; }
9907 esac
9909 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9910 then
9911 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9912 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9913 { (exit 1); exit 1; }; }
9916 # Update the list of available tags.
9917 if test -n "$tagname"; then
9918 echo appending configuration tag \"$tagname\" to $ofile
9920 case $tagname in
9921 CXX)
9922 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9923 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9924 (test "X$CXX" != "Xg++"))) ; then
9925 ac_ext=cc
9926 ac_cpp='$CXXCPP $CPPFLAGS'
9927 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9928 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9929 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9934 archive_cmds_need_lc_CXX=no
9935 allow_undefined_flag_CXX=
9936 always_export_symbols_CXX=no
9937 archive_expsym_cmds_CXX=
9938 export_dynamic_flag_spec_CXX=
9939 hardcode_direct_CXX=no
9940 hardcode_libdir_flag_spec_CXX=
9941 hardcode_libdir_flag_spec_ld_CXX=
9942 hardcode_libdir_separator_CXX=
9943 hardcode_minus_L_CXX=no
9944 hardcode_automatic_CXX=no
9945 module_cmds_CXX=
9946 module_expsym_cmds_CXX=
9947 link_all_deplibs_CXX=unknown
9948 old_archive_cmds_CXX=$old_archive_cmds
9949 no_undefined_flag_CXX=
9950 whole_archive_flag_spec_CXX=
9951 enable_shared_with_static_runtimes_CXX=no
9953 # Dependencies to place before and after the object being linked:
9954 predep_objects_CXX=
9955 postdep_objects_CXX=
9956 predeps_CXX=
9957 postdeps_CXX=
9958 compiler_lib_search_path_CXX=
9960 # Source file extension for C++ test sources.
9961 ac_ext=cc
9963 # Object file extension for compiled C++ test sources.
9964 objext=o
9965 objext_CXX=$objext
9967 # Code to be used in simple compile tests
9968 lt_simple_compile_test_code="int some_variable = 0;\n"
9970 # Code to be used in simple link tests
9971 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9973 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9975 # If no C compiler was specified, use CC.
9976 LTCC=${LTCC-"$CC"}
9978 # Allow CC to be a program name with arguments.
9979 compiler=$CC
9982 # Allow CC to be a program name with arguments.
9983 lt_save_CC=$CC
9984 lt_save_LD=$LD
9985 lt_save_GCC=$GCC
9986 GCC=$GXX
9987 lt_save_with_gnu_ld=$with_gnu_ld
9988 lt_save_path_LD=$lt_cv_path_LD
9989 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9990 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9991 else
9992 unset lt_cv_prog_gnu_ld
9994 if test -n "${lt_cv_path_LDCXX+set}"; then
9995 lt_cv_path_LD=$lt_cv_path_LDCXX
9996 else
9997 unset lt_cv_path_LD
9999 test -z "${LDCXX+set}" || LD=$LDCXX
10000 CC=${CXX-"c++"}
10001 compiler=$CC
10002 compiler_CXX=$CC
10003 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10005 # We don't want -fno-exception wen compiling C++ code, so set the
10006 # no_builtin_flag separately
10007 if test "$GXX" = yes; then
10008 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10009 else
10010 lt_prog_compiler_no_builtin_flag_CXX=
10013 if test "$GXX" = yes; then
10014 # Set up default GNU C++ configuration
10017 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10018 if test "${with_gnu_ld+set}" = set; then
10019 withval="$with_gnu_ld"
10020 test "$withval" = no || with_gnu_ld=yes
10021 else
10022 with_gnu_ld=no
10024 ac_prog=ld
10025 if test "$GCC" = yes; then
10026 # Check if gcc -print-prog-name=ld gives a path.
10027 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10028 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10029 case $host in
10030 *-*-mingw*)
10031 # gcc leaves a trailing carriage return which upsets mingw
10032 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10034 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10035 esac
10036 case $ac_prog in
10037 # Accept absolute paths.
10038 [\\/]* | ?:[\\/]*)
10039 re_direlt='/[^/][^/]*/\.\./'
10040 # Canonicalize the pathname of ld
10041 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10042 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10043 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10044 done
10045 test -z "$LD" && LD="$ac_prog"
10048 # If it fails, then pretend we aren't using GCC.
10049 ac_prog=ld
10052 # If it is relative, then search for the first ld in PATH.
10053 with_gnu_ld=unknown
10055 esac
10056 elif test "$with_gnu_ld" = yes; then
10057 echo "$as_me:$LINENO: checking for GNU ld" >&5
10058 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10059 else
10060 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10061 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10063 if test "${lt_cv_path_LD+set}" = set; then
10064 echo $ECHO_N "(cached) $ECHO_C" >&6
10065 else
10066 if test -z "$LD"; then
10067 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10068 for ac_dir in $PATH; do
10069 IFS="$lt_save_ifs"
10070 test -z "$ac_dir" && ac_dir=.
10071 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10072 lt_cv_path_LD="$ac_dir/$ac_prog"
10073 # Check to see if the program is GNU ld. I'd rather use --version,
10074 # but apparently some GNU ld's only accept -v.
10075 # Break only if it was the GNU/non-GNU ld that we prefer.
10076 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10077 *GNU* | *'with BFD'*)
10078 test "$with_gnu_ld" != no && break
10081 test "$with_gnu_ld" != yes && break
10083 esac
10085 done
10086 IFS="$lt_save_ifs"
10087 else
10088 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10092 LD="$lt_cv_path_LD"
10093 if test -n "$LD"; then
10094 echo "$as_me:$LINENO: result: $LD" >&5
10095 echo "${ECHO_T}$LD" >&6
10096 else
10097 echo "$as_me:$LINENO: result: no" >&5
10098 echo "${ECHO_T}no" >&6
10100 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10101 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10102 { (exit 1); exit 1; }; }
10103 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10104 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10105 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10106 echo $ECHO_N "(cached) $ECHO_C" >&6
10107 else
10108 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10109 case `$LD -v 2>&1 </dev/null` in
10110 *GNU* | *'with BFD'*)
10111 lt_cv_prog_gnu_ld=yes
10114 lt_cv_prog_gnu_ld=no
10116 esac
10118 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10119 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10120 with_gnu_ld=$lt_cv_prog_gnu_ld
10124 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10125 # archiving commands below assume that GNU ld is being used.
10126 if test "$with_gnu_ld" = yes; then
10127 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10128 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'
10130 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10131 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10133 # If archive_cmds runs LD, not CC, wlarc should be empty
10134 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10135 # investigate it a little bit more. (MM)
10136 wlarc='${wl}'
10138 # ancient GNU ld didn't support --whole-archive et. al.
10139 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10140 grep 'no-whole-archive' > /dev/null; then
10141 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10142 else
10143 whole_archive_flag_spec_CXX=
10145 else
10146 with_gnu_ld=no
10147 wlarc=
10149 # A generic and very simple default shared library creation
10150 # command for GNU C++ for the case where it uses the native
10151 # linker, instead of GNU ld. If possible, this setting should
10152 # overridden to take advantage of the native linker features on
10153 # the platform it is being used on.
10154 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10157 # Commands to make compiler produce verbose output that lists
10158 # what "hidden" libraries, object files and flags are used when
10159 # linking a shared library.
10160 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10162 else
10163 GXX=no
10164 with_gnu_ld=no
10165 wlarc=
10168 # PORTME: fill in a description of your system's C++ link characteristics
10169 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10170 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10171 ld_shlibs_CXX=yes
10172 case $host_os in
10173 aix3*)
10174 # FIXME: insert proper C++ library support
10175 ld_shlibs_CXX=no
10177 aix4* | aix5*)
10178 if test "$host_cpu" = ia64; then
10179 # On IA64, the linker does run time linking by default, so we don't
10180 # have to do anything special.
10181 aix_use_runtimelinking=no
10182 exp_sym_flag='-Bexport'
10183 no_entry_flag=""
10184 else
10185 aix_use_runtimelinking=no
10187 # Test if we are trying to use run time linking or normal
10188 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10189 # need to do runtime linking.
10190 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10191 for ld_flag in $LDFLAGS; do
10192 case $ld_flag in
10193 *-brtl*)
10194 aix_use_runtimelinking=yes
10195 break
10197 esac
10198 done
10199 esac
10201 exp_sym_flag='-bexport'
10202 no_entry_flag='-bnoentry'
10205 # When large executables or shared objects are built, AIX ld can
10206 # have problems creating the table of contents. If linking a library
10207 # or program results in "error TOC overflow" add -mminimal-toc to
10208 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10209 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10211 archive_cmds_CXX=''
10212 hardcode_direct_CXX=yes
10213 hardcode_libdir_separator_CXX=':'
10214 link_all_deplibs_CXX=yes
10216 if test "$GXX" = yes; then
10217 case $host_os in aix4.[012]|aix4.[012].*)
10218 # We only want to do this on AIX 4.2 and lower, the check
10219 # below for broken collect2 doesn't work under 4.3+
10220 collect2name=`${CC} -print-prog-name=collect2`
10221 if test -f "$collect2name" && \
10222 strings "$collect2name" | grep resolve_lib_name >/dev/null
10223 then
10224 # We have reworked collect2
10225 hardcode_direct_CXX=yes
10226 else
10227 # We have old collect2
10228 hardcode_direct_CXX=unsupported
10229 # It fails to find uninstalled libraries when the uninstalled
10230 # path is not listed in the libpath. Setting hardcode_minus_L
10231 # to unsupported forces relinking
10232 hardcode_minus_L_CXX=yes
10233 hardcode_libdir_flag_spec_CXX='-L$libdir'
10234 hardcode_libdir_separator_CXX=
10236 esac
10237 shared_flag='-shared'
10238 if test "$aix_use_runtimelinking" = yes; then
10239 shared_flag="$shared_flag "'${wl}-G'
10241 else
10242 # not using gcc
10243 if test "$host_cpu" = ia64; then
10244 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10245 # chokes on -Wl,-G. The following line is correct:
10246 shared_flag='-G'
10247 else
10248 if test "$aix_use_runtimelinking" = yes; then
10249 shared_flag='${wl}-G'
10250 else
10251 shared_flag='${wl}-bM:SRE'
10256 # It seems that -bexpall does not export symbols beginning with
10257 # underscore (_), so it is better to generate a list of symbols to export.
10258 always_export_symbols_CXX=yes
10259 if test "$aix_use_runtimelinking" = yes; then
10260 # Warning - without using the other runtime loading flags (-brtl),
10261 # -berok will link without error, but may produce a broken library.
10262 allow_undefined_flag_CXX='-berok'
10263 # Determine the default libpath from the value encoded in an empty executable.
10264 cat >conftest.$ac_ext <<_ACEOF
10265 /* confdefs.h. */
10266 _ACEOF
10267 cat confdefs.h >>conftest.$ac_ext
10268 cat >>conftest.$ac_ext <<_ACEOF
10269 /* end confdefs.h. */
10272 main ()
10276 return 0;
10278 _ACEOF
10279 rm -f conftest.$ac_objext conftest$ac_exeext
10280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10281 (eval $ac_link) 2>conftest.er1
10282 ac_status=$?
10283 grep -v '^ *+' conftest.er1 >conftest.err
10284 rm -f conftest.er1
10285 cat conftest.err >&5
10286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287 (exit $ac_status); } &&
10288 { ac_try='test -z "$ac_cxx_werror_flag"
10289 || test ! -s conftest.err'
10290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10291 (eval $ac_try) 2>&5
10292 ac_status=$?
10293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294 (exit $ac_status); }; } &&
10295 { ac_try='test -s conftest$ac_exeext'
10296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10297 (eval $ac_try) 2>&5
10298 ac_status=$?
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); }; }; then
10302 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10304 # Check for a 64-bit object if we didn't find anything.
10305 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; }
10306 }'`; fi
10307 else
10308 echo "$as_me: failed program was:" >&5
10309 sed 's/^/| /' conftest.$ac_ext >&5
10312 rm -f conftest.err conftest.$ac_objext \
10313 conftest$ac_exeext conftest.$ac_ext
10314 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10316 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10318 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"
10319 else
10320 if test "$host_cpu" = ia64; then
10321 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10322 allow_undefined_flag_CXX="-z nodefs"
10323 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"
10324 else
10325 # Determine the default libpath from the value encoded in an empty executable.
10326 cat >conftest.$ac_ext <<_ACEOF
10327 /* confdefs.h. */
10328 _ACEOF
10329 cat confdefs.h >>conftest.$ac_ext
10330 cat >>conftest.$ac_ext <<_ACEOF
10331 /* end confdefs.h. */
10334 main ()
10338 return 0;
10340 _ACEOF
10341 rm -f conftest.$ac_objext conftest$ac_exeext
10342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10343 (eval $ac_link) 2>conftest.er1
10344 ac_status=$?
10345 grep -v '^ *+' conftest.er1 >conftest.err
10346 rm -f conftest.er1
10347 cat conftest.err >&5
10348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349 (exit $ac_status); } &&
10350 { ac_try='test -z "$ac_cxx_werror_flag"
10351 || test ! -s conftest.err'
10352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10353 (eval $ac_try) 2>&5
10354 ac_status=$?
10355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356 (exit $ac_status); }; } &&
10357 { ac_try='test -s conftest$ac_exeext'
10358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10359 (eval $ac_try) 2>&5
10360 ac_status=$?
10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362 (exit $ac_status); }; }; then
10364 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10366 # Check for a 64-bit object if we didn't find anything.
10367 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; }
10368 }'`; fi
10369 else
10370 echo "$as_me: failed program was:" >&5
10371 sed 's/^/| /' conftest.$ac_ext >&5
10374 rm -f conftest.err conftest.$ac_objext \
10375 conftest$ac_exeext conftest.$ac_ext
10376 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10378 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10379 # Warning - without using the other run time loading flags,
10380 # -berok will link without error, but may produce a broken library.
10381 no_undefined_flag_CXX=' ${wl}-bernotok'
10382 allow_undefined_flag_CXX=' ${wl}-berok'
10383 # -bexpall does not export symbols beginning with underscore (_)
10384 always_export_symbols_CXX=yes
10385 # Exported symbols can be pulled into shared objects from archives
10386 whole_archive_flag_spec_CXX=' '
10387 archive_cmds_need_lc_CXX=yes
10388 # This is similar to how AIX traditionally builds it's shared libraries.
10389 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'
10393 chorus*)
10394 case $cc_basename in
10396 # FIXME: insert proper C++ library support
10397 ld_shlibs_CXX=no
10399 esac
10403 cygwin* | mingw* | pw32*)
10404 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10405 # as there is no search path for DLLs.
10406 hardcode_libdir_flag_spec_CXX='-L$libdir'
10407 allow_undefined_flag_CXX=unsupported
10408 always_export_symbols_CXX=no
10409 enable_shared_with_static_runtimes_CXX=yes
10411 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10412 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'
10413 # If the export-symbols file already is a .def file (1st line
10414 # is EXPORTS), use it as is; otherwise, prepend...
10415 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10416 cp $export_symbols $output_objdir/$soname.def;
10417 else
10418 echo EXPORTS > $output_objdir/$soname.def;
10419 cat $export_symbols >> $output_objdir/$soname.def;
10421 $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'
10422 else
10423 ld_shlibs_CXX=no
10426 darwin* | rhapsody*)
10427 case "$host_os" in
10428 rhapsody* | darwin1.[012])
10429 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10431 *) # Darwin 1.3 on
10432 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10433 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10434 else
10435 case ${MACOSX_DEPLOYMENT_TARGET} in
10436 10.[012])
10437 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10439 10.*)
10440 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10442 esac
10445 esac
10446 archive_cmds_need_lc_CXX=no
10447 hardcode_direct_CXX=no
10448 hardcode_automatic_CXX=yes
10449 hardcode_shlibpath_var_CXX=unsupported
10450 whole_archive_flag_spec_CXX=''
10451 link_all_deplibs_CXX=yes
10453 if test "$GXX" = yes ; then
10454 lt_int_apple_cc_single_mod=no
10455 output_verbose_link_cmd='echo'
10456 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10457 lt_int_apple_cc_single_mod=yes
10459 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10460 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10461 else
10462 archive_cmds_CXX='$CC -r -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'
10464 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10465 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10466 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10467 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}'
10468 else
10469 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -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}'
10471 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}'
10472 else
10473 case "$cc_basename" in
10474 xlc*)
10475 output_verbose_link_cmd='echo'
10476 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10477 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10478 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10479 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10480 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}'
10483 ld_shlibs_CXX=no
10485 esac
10489 dgux*)
10490 case $cc_basename in
10491 ec++)
10492 # FIXME: insert proper C++ library support
10493 ld_shlibs_CXX=no
10495 ghcx)
10496 # Green Hills C++ Compiler
10497 # FIXME: insert proper C++ library support
10498 ld_shlibs_CXX=no
10501 # FIXME: insert proper C++ library support
10502 ld_shlibs_CXX=no
10504 esac
10506 freebsd[12]*)
10507 # C++ shared libraries reported to be fairly broken before switch to ELF
10508 ld_shlibs_CXX=no
10510 freebsd-elf*)
10511 archive_cmds_need_lc_CXX=no
10513 freebsd* | kfreebsd*-gnu | dragonfly*)
10514 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10515 # conventions
10516 ld_shlibs_CXX=yes
10518 gnu*)
10520 hpux9*)
10521 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10522 hardcode_libdir_separator_CXX=:
10523 export_dynamic_flag_spec_CXX='${wl}-E'
10524 hardcode_direct_CXX=yes
10525 hardcode_minus_L_CXX=yes # Not in the search PATH,
10526 # but as the default
10527 # location of the library.
10529 case $cc_basename in
10531 # FIXME: insert proper C++ library support
10532 ld_shlibs_CXX=no
10534 aCC)
10535 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'
10536 # Commands to make compiler produce verbose output that lists
10537 # what "hidden" libraries, object files and flags are used when
10538 # linking a shared library.
10540 # There doesn't appear to be a way to prevent this compiler from
10541 # explicitly linking system object files so we need to strip them
10542 # from the output so that they don't get included in the library
10543 # dependencies.
10544 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'
10547 if test "$GXX" = yes; then
10548 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'
10549 else
10550 # FIXME: insert proper C++ library support
10551 ld_shlibs_CXX=no
10554 esac
10556 hpux10*|hpux11*)
10557 if test $with_gnu_ld = no; then
10558 case "$host_cpu" in
10559 hppa*64*)
10560 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10561 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10562 hardcode_libdir_separator_CXX=:
10564 ia64*)
10565 hardcode_libdir_flag_spec_CXX='-L$libdir'
10568 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10569 hardcode_libdir_separator_CXX=:
10570 export_dynamic_flag_spec_CXX='${wl}-E'
10572 esac
10574 case "$host_cpu" in
10575 hppa*64*)
10576 hardcode_direct_CXX=no
10577 hardcode_shlibpath_var_CXX=no
10579 ia64*)
10580 hardcode_direct_CXX=no
10581 hardcode_shlibpath_var_CXX=no
10582 hardcode_minus_L_CXX=yes # Not in the search PATH,
10583 # but as the default
10584 # location of the library.
10587 hardcode_direct_CXX=yes
10588 hardcode_minus_L_CXX=yes # Not in the search PATH,
10589 # but as the default
10590 # location of the library.
10592 esac
10594 case $cc_basename in
10596 # FIXME: insert proper C++ library support
10597 ld_shlibs_CXX=no
10599 aCC)
10600 case "$host_cpu" in
10601 hppa*64*|ia64*)
10602 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10605 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10607 esac
10608 # Commands to make compiler produce verbose output that lists
10609 # what "hidden" libraries, object files and flags are used when
10610 # linking a shared library.
10612 # There doesn't appear to be a way to prevent this compiler from
10613 # explicitly linking system object files so we need to strip them
10614 # from the output so that they don't get included in the library
10615 # dependencies.
10616 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'
10619 if test "$GXX" = yes; then
10620 if test $with_gnu_ld = no; then
10621 case "$host_cpu" in
10622 ia64*|hppa*64*)
10623 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10626 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'
10628 esac
10630 else
10631 # FIXME: insert proper C++ library support
10632 ld_shlibs_CXX=no
10635 esac
10637 irix5* | irix6*)
10638 case $cc_basename in
10640 # SGI C++
10641 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'
10643 # Archives containing C++ object files must be created using
10644 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10645 # necessary to make sure instantiated templates are included
10646 # in the archive.
10647 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10650 if test "$GXX" = yes; then
10651 if test "$with_gnu_ld" = no; then
10652 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'
10653 else
10654 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'
10657 link_all_deplibs_CXX=yes
10659 esac
10660 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10661 hardcode_libdir_separator_CXX=:
10663 linux*)
10664 case $cc_basename in
10665 KCC)
10666 # Kuck and Associates, Inc. (KAI) C++ Compiler
10668 # KCC will only create a shared library if the output file
10669 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10670 # to its proper name (with version) after linking.
10671 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'
10672 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'
10673 # Commands to make compiler produce verbose output that lists
10674 # what "hidden" libraries, object files and flags are used when
10675 # linking a shared library.
10677 # There doesn't appear to be a way to prevent this compiler from
10678 # explicitly linking system object files so we need to strip them
10679 # from the output so that they don't get included in the library
10680 # dependencies.
10681 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'
10683 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10684 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10686 # Archives containing C++ object files must be created using
10687 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10688 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10690 icpc)
10691 # Intel C++
10692 with_gnu_ld=yes
10693 # version 8.0 and above of icpc choke on multiply defined symbols
10694 # if we add $predep_objects and $postdep_objects, however 7.1 and
10695 # earlier do not add the objects themselves.
10696 case `$CC -V 2>&1` in
10697 *"Version 7."*)
10698 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10699 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'
10701 *) # Version 8.0 or newer
10702 tmp_idyn=
10703 case $host_cpu in
10704 ia64*) tmp_idyn=' -i_dynamic';;
10705 esac
10706 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10707 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10709 esac
10710 archive_cmds_need_lc_CXX=no
10711 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10712 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10713 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10715 pgCC)
10716 # Portland Group C++ compiler
10717 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10718 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'
10720 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10721 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10723 cxx)
10724 # Compaq C++
10725 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10726 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'
10728 runpath_var=LD_RUN_PATH
10729 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10730 hardcode_libdir_separator_CXX=:
10732 # Commands to make compiler produce verbose output that lists
10733 # what "hidden" libraries, object files and flags are used when
10734 # linking a shared library.
10736 # There doesn't appear to be a way to prevent this compiler from
10737 # explicitly linking system object files so we need to strip them
10738 # from the output so that they don't get included in the library
10739 # dependencies.
10740 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'
10742 esac
10744 lynxos*)
10745 # FIXME: insert proper C++ library support
10746 ld_shlibs_CXX=no
10748 m88k*)
10749 # FIXME: insert proper C++ library support
10750 ld_shlibs_CXX=no
10752 mvs*)
10753 case $cc_basename in
10754 cxx)
10755 # FIXME: insert proper C++ library support
10756 ld_shlibs_CXX=no
10759 # FIXME: insert proper C++ library support
10760 ld_shlibs_CXX=no
10762 esac
10764 netbsd*)
10765 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10766 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10767 wlarc=
10768 hardcode_libdir_flag_spec_CXX='-R$libdir'
10769 hardcode_direct_CXX=yes
10770 hardcode_shlibpath_var_CXX=no
10772 # Workaround some broken pre-1.5 toolchains
10773 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10775 openbsd2*)
10776 # C++ shared libraries are fairly broken
10777 ld_shlibs_CXX=no
10779 openbsd*)
10780 hardcode_direct_CXX=yes
10781 hardcode_shlibpath_var_CXX=no
10782 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10783 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10784 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10785 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10786 export_dynamic_flag_spec_CXX='${wl}-E'
10787 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10789 output_verbose_link_cmd='echo'
10791 osf3*)
10792 case $cc_basename in
10793 KCC)
10794 # Kuck and Associates, Inc. (KAI) C++ Compiler
10796 # KCC will only create a shared library if the output file
10797 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10798 # to its proper name (with version) after linking.
10799 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'
10801 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10802 hardcode_libdir_separator_CXX=:
10804 # Archives containing C++ object files must be created using
10805 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10806 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10809 RCC)
10810 # Rational C++ 2.4.1
10811 # FIXME: insert proper C++ library support
10812 ld_shlibs_CXX=no
10814 cxx)
10815 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10816 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'
10818 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10819 hardcode_libdir_separator_CXX=:
10821 # Commands to make compiler produce verbose output that lists
10822 # what "hidden" libraries, object files and flags are used when
10823 # linking a shared library.
10825 # There doesn't appear to be a way to prevent this compiler from
10826 # explicitly linking system object files so we need to strip them
10827 # from the output so that they don't get included in the library
10828 # dependencies.
10829 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'
10832 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10833 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10834 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'
10836 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10837 hardcode_libdir_separator_CXX=:
10839 # Commands to make compiler produce verbose output that lists
10840 # what "hidden" libraries, object files and flags are used when
10841 # linking a shared library.
10842 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10844 else
10845 # FIXME: insert proper C++ library support
10846 ld_shlibs_CXX=no
10849 esac
10851 osf4* | osf5*)
10852 case $cc_basename in
10853 KCC)
10854 # Kuck and Associates, Inc. (KAI) C++ Compiler
10856 # KCC will only create a shared library if the output file
10857 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10858 # to its proper name (with version) after linking.
10859 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'
10861 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10862 hardcode_libdir_separator_CXX=:
10864 # Archives containing C++ object files must be created using
10865 # the KAI C++ compiler.
10866 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10868 RCC)
10869 # Rational C++ 2.4.1
10870 # FIXME: insert proper C++ library support
10871 ld_shlibs_CXX=no
10873 cxx)
10874 allow_undefined_flag_CXX=' -expect_unresolved \*'
10875 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'
10876 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10877 echo "-hidden">> $lib.exp~
10878 $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~
10879 $rm $lib.exp'
10881 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10882 hardcode_libdir_separator_CXX=:
10884 # Commands to make compiler produce verbose output that lists
10885 # what "hidden" libraries, object files and flags are used when
10886 # linking a shared library.
10888 # There doesn't appear to be a way to prevent this compiler from
10889 # explicitly linking system object files so we need to strip them
10890 # from the output so that they don't get included in the library
10891 # dependencies.
10892 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'
10895 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10896 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10897 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'
10899 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10900 hardcode_libdir_separator_CXX=:
10902 # Commands to make compiler produce verbose output that lists
10903 # what "hidden" libraries, object files and flags are used when
10904 # linking a shared library.
10905 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10907 else
10908 # FIXME: insert proper C++ library support
10909 ld_shlibs_CXX=no
10912 esac
10914 psos*)
10915 # FIXME: insert proper C++ library support
10916 ld_shlibs_CXX=no
10918 sco*)
10919 archive_cmds_need_lc_CXX=no
10920 case $cc_basename in
10922 # FIXME: insert proper C++ library support
10923 ld_shlibs_CXX=no
10926 # FIXME: insert proper C++ library support
10927 ld_shlibs_CXX=no
10929 esac
10931 sunos4*)
10932 case $cc_basename in
10934 # Sun C++ 4.x
10935 # FIXME: insert proper C++ library support
10936 ld_shlibs_CXX=no
10938 lcc)
10939 # Lucid
10940 # FIXME: insert proper C++ library support
10941 ld_shlibs_CXX=no
10944 # FIXME: insert proper C++ library support
10945 ld_shlibs_CXX=no
10947 esac
10949 solaris*)
10950 case $cc_basename in
10952 # Sun C++ 4.2, 5.x and Centerline C++
10953 no_undefined_flag_CXX=' -zdefs'
10954 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10955 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10956 $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'
10958 hardcode_libdir_flag_spec_CXX='-R$libdir'
10959 hardcode_shlibpath_var_CXX=no
10960 case $host_os in
10961 solaris2.[0-5] | solaris2.[0-5].*) ;;
10963 # The C++ compiler is used as linker so we must use $wl
10964 # flag to pass the commands to the underlying system
10965 # linker.
10966 # Supported since Solaris 2.6 (maybe 2.5.1?)
10967 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10969 esac
10970 link_all_deplibs_CXX=yes
10972 # Commands to make compiler produce verbose output that lists
10973 # what "hidden" libraries, object files and flags are used when
10974 # linking a shared library.
10976 # There doesn't appear to be a way to prevent this compiler from
10977 # explicitly linking system object files so we need to strip them
10978 # from the output so that they don't get included in the library
10979 # dependencies.
10980 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'
10982 # Archives containing C++ object files must be created using
10983 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10984 # necessary to make sure instantiated templates are included
10985 # in the archive.
10986 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10988 gcx)
10989 # Green Hills C++ Compiler
10990 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10992 # The C++ compiler must be used to create the archive.
10993 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10996 # GNU C++ compiler with Solaris linker
10997 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10998 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10999 if $CC --version | grep -v '^2\.7' > /dev/null; then
11000 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11001 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11002 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11004 # Commands to make compiler produce verbose output that lists
11005 # what "hidden" libraries, object files and flags are used when
11006 # linking a shared library.
11007 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11008 else
11009 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11010 # platform.
11011 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11012 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11013 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11015 # Commands to make compiler produce verbose output that lists
11016 # what "hidden" libraries, object files and flags are used when
11017 # linking a shared library.
11018 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11021 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11024 esac
11026 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11027 archive_cmds_need_lc_CXX=no
11029 tandem*)
11030 case $cc_basename in
11031 NCC)
11032 # NonStop-UX NCC 3.20
11033 # FIXME: insert proper C++ library support
11034 ld_shlibs_CXX=no
11037 # FIXME: insert proper C++ library support
11038 ld_shlibs_CXX=no
11040 esac
11042 vxworks*)
11043 # FIXME: insert proper C++ library support
11044 ld_shlibs_CXX=no
11047 # FIXME: insert proper C++ library support
11048 ld_shlibs_CXX=no
11050 esac
11051 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11052 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11053 test "$ld_shlibs_CXX" = no && can_build_shared=no
11055 GCC_CXX="$GXX"
11056 LD_CXX="$LD"
11058 ## CAVEAT EMPTOR:
11059 ## There is no encapsulation within the following macros, do not change
11060 ## the running order or otherwise move them around unless you know exactly
11061 ## what you are doing...
11063 cat > conftest.$ac_ext <<EOF
11064 class Foo
11066 public:
11067 Foo (void) { a = 0; }
11068 private:
11069 int a;
11073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11074 (eval $ac_compile) 2>&5
11075 ac_status=$?
11076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077 (exit $ac_status); }; then
11078 # Parse the compiler output and extract the necessary
11079 # objects, libraries and library flags.
11081 # Sentinel used to keep track of whether or not we are before
11082 # the conftest object file.
11083 pre_test_object_deps_done=no
11085 # The `*' in the case matches for architectures that use `case' in
11086 # $output_verbose_cmd can trigger glob expansion during the loop
11087 # eval without this substitution.
11088 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11090 for p in `eval $output_verbose_link_cmd`; do
11091 case $p in
11093 -L* | -R* | -l*)
11094 # Some compilers place space between "-{L,R}" and the path.
11095 # Remove the space.
11096 if test $p = "-L" \
11097 || test $p = "-R"; then
11098 prev=$p
11099 continue
11100 else
11101 prev=
11104 if test "$pre_test_object_deps_done" = no; then
11105 case $p in
11106 -L* | -R*)
11107 # Internal compiler library paths should come after those
11108 # provided the user. The postdeps already come after the
11109 # user supplied libs so there is no need to process them.
11110 if test -z "$compiler_lib_search_path_CXX"; then
11111 compiler_lib_search_path_CXX="${prev}${p}"
11112 else
11113 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11116 # The "-l" case would never come before the object being
11117 # linked, so don't bother handling this case.
11118 esac
11119 else
11120 if test -z "$postdeps_CXX"; then
11121 postdeps_CXX="${prev}${p}"
11122 else
11123 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11128 *.$objext)
11129 # This assumes that the test object file only shows up
11130 # once in the compiler output.
11131 if test "$p" = "conftest.$objext"; then
11132 pre_test_object_deps_done=yes
11133 continue
11136 if test "$pre_test_object_deps_done" = no; then
11137 if test -z "$predep_objects_CXX"; then
11138 predep_objects_CXX="$p"
11139 else
11140 predep_objects_CXX="$predep_objects_CXX $p"
11142 else
11143 if test -z "$postdep_objects_CXX"; then
11144 postdep_objects_CXX="$p"
11145 else
11146 postdep_objects_CXX="$postdep_objects_CXX $p"
11151 *) ;; # Ignore the rest.
11153 esac
11154 done
11156 # Clean up.
11157 rm -f a.out a.exe
11158 else
11159 echo "libtool.m4: error: problem compiling CXX test program"
11162 $rm -f confest.$objext
11164 case " $postdeps_CXX " in
11165 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11166 esac
11168 lt_prog_compiler_wl_CXX=
11169 lt_prog_compiler_pic_CXX=
11170 lt_prog_compiler_static_CXX=
11172 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11173 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11175 # C++ specific cases for pic, static, wl, etc.
11176 if test "$GXX" = yes; then
11177 lt_prog_compiler_wl_CXX='-Wl,'
11178 lt_prog_compiler_static_CXX='-static'
11180 case $host_os in
11181 aix*)
11182 # All AIX code is PIC.
11183 if test "$host_cpu" = ia64; then
11184 # AIX 5 now supports IA64 processor
11185 lt_prog_compiler_static_CXX='-Bstatic'
11188 amigaos*)
11189 # FIXME: we need at least 68020 code to build shared libraries, but
11190 # adding the `-m68020' flag to GCC prevents building anything better,
11191 # like `-m68040'.
11192 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11194 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11195 # PIC is the default for these OSes.
11197 mingw* | os2* | pw32*)
11198 # This hack is so that the source file can tell whether it is being
11199 # built for inclusion in a dll (and should export symbols for example).
11200 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11202 darwin* | rhapsody*)
11203 # PIC is the default on this platform
11204 # Common symbols not allowed in MH_DYLIB files
11205 lt_prog_compiler_pic_CXX='-fno-common'
11207 *djgpp*)
11208 # DJGPP does not support shared libraries at all
11209 lt_prog_compiler_pic_CXX=
11211 sysv4*MP*)
11212 if test -d /usr/nec; then
11213 lt_prog_compiler_pic_CXX=-Kconform_pic
11216 hpux*)
11217 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11218 # not for PA HP-UX.
11219 case "$host_cpu" in
11220 hppa*64*|ia64*)
11223 lt_prog_compiler_pic_CXX='-fPIC'
11225 esac
11228 lt_prog_compiler_pic_CXX='-fPIC'
11230 esac
11231 else
11232 case $host_os in
11233 aix4* | aix5*)
11234 # All AIX code is PIC.
11235 if test "$host_cpu" = ia64; then
11236 # AIX 5 now supports IA64 processor
11237 lt_prog_compiler_static_CXX='-Bstatic'
11238 else
11239 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11242 chorus*)
11243 case $cc_basename in
11244 cxch68)
11245 # Green Hills C++ Compiler
11246 # _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"
11248 esac
11250 darwin*)
11251 # PIC is the default on this platform
11252 # Common symbols not allowed in MH_DYLIB files
11253 case "$cc_basename" in
11254 xlc*)
11255 lt_prog_compiler_pic_CXX='-qnocommon'
11256 lt_prog_compiler_wl_CXX='-Wl,'
11258 esac
11260 dgux*)
11261 case $cc_basename in
11262 ec++)
11263 lt_prog_compiler_pic_CXX='-KPIC'
11265 ghcx)
11266 # Green Hills C++ Compiler
11267 lt_prog_compiler_pic_CXX='-pic'
11271 esac
11273 freebsd* | kfreebsd*-gnu | dragonfly*)
11274 # FreeBSD uses GNU C++
11276 hpux9* | hpux10* | hpux11*)
11277 case $cc_basename in
11279 lt_prog_compiler_wl_CXX='-Wl,'
11280 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11281 if test "$host_cpu" != ia64; then
11282 lt_prog_compiler_pic_CXX='+Z'
11285 aCC)
11286 lt_prog_compiler_wl_CXX='-Wl,'
11287 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11288 case "$host_cpu" in
11289 hppa*64*|ia64*)
11290 # +Z the default
11293 lt_prog_compiler_pic_CXX='+Z'
11295 esac
11299 esac
11301 irix5* | irix6* | nonstopux*)
11302 case $cc_basename in
11304 lt_prog_compiler_wl_CXX='-Wl,'
11305 lt_prog_compiler_static_CXX='-non_shared'
11306 # CC pic flag -KPIC is the default.
11310 esac
11312 linux*)
11313 case $cc_basename in
11314 KCC)
11315 # KAI C++ Compiler
11316 lt_prog_compiler_wl_CXX='--backend -Wl,'
11317 lt_prog_compiler_pic_CXX='-fPIC'
11319 icpc* | ecpc*)
11320 # Intel C++
11321 lt_prog_compiler_wl_CXX='-Wl,'
11322 lt_prog_compiler_pic_CXX='-KPIC'
11323 lt_prog_compiler_static_CXX='-static'
11325 pgCC)
11326 # Portland Group C++ compiler.
11327 lt_prog_compiler_wl_CXX='-Wl,'
11328 lt_prog_compiler_pic_CXX='-fpic'
11329 lt_prog_compiler_static_CXX='-static'
11331 cxx)
11332 # Compaq C++
11333 # Make sure the PIC flag is empty. It appears that all Alpha
11334 # Linux and Compaq Tru64 Unix objects are PIC.
11335 lt_prog_compiler_pic_CXX=
11336 lt_prog_compiler_static_CXX='-non_shared'
11340 esac
11342 lynxos*)
11344 m88k*)
11346 mvs*)
11347 case $cc_basename in
11348 cxx)
11349 lt_prog_compiler_pic_CXX='-W c,exportall'
11353 esac
11355 netbsd*)
11357 osf3* | osf4* | osf5*)
11358 case $cc_basename in
11359 KCC)
11360 lt_prog_compiler_wl_CXX='--backend -Wl,'
11362 RCC)
11363 # Rational C++ 2.4.1
11364 lt_prog_compiler_pic_CXX='-pic'
11366 cxx)
11367 # Digital/Compaq C++
11368 lt_prog_compiler_wl_CXX='-Wl,'
11369 # Make sure the PIC flag is empty. It appears that all Alpha
11370 # Linux and Compaq Tru64 Unix objects are PIC.
11371 lt_prog_compiler_pic_CXX=
11372 lt_prog_compiler_static_CXX='-non_shared'
11376 esac
11378 psos*)
11380 sco*)
11381 case $cc_basename in
11383 lt_prog_compiler_pic_CXX='-fPIC'
11387 esac
11389 solaris*)
11390 case $cc_basename in
11392 # Sun C++ 4.2, 5.x and Centerline C++
11393 lt_prog_compiler_pic_CXX='-KPIC'
11394 lt_prog_compiler_static_CXX='-Bstatic'
11395 lt_prog_compiler_wl_CXX='-Qoption ld '
11397 gcx)
11398 # Green Hills C++ Compiler
11399 lt_prog_compiler_pic_CXX='-PIC'
11403 esac
11405 sunos4*)
11406 case $cc_basename in
11408 # Sun C++ 4.x
11409 lt_prog_compiler_pic_CXX='-pic'
11410 lt_prog_compiler_static_CXX='-Bstatic'
11412 lcc)
11413 # Lucid
11414 lt_prog_compiler_pic_CXX='-pic'
11418 esac
11420 tandem*)
11421 case $cc_basename in
11422 NCC)
11423 # NonStop-UX NCC 3.20
11424 lt_prog_compiler_pic_CXX='-KPIC'
11428 esac
11430 unixware*)
11432 vxworks*)
11435 lt_prog_compiler_can_build_shared_CXX=no
11437 esac
11440 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11441 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11444 # Check to make sure the PIC flag actually works.
11446 if test -n "$lt_prog_compiler_pic_CXX"; then
11448 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11449 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11450 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11451 echo $ECHO_N "(cached) $ECHO_C" >&6
11452 else
11453 lt_prog_compiler_pic_works_CXX=no
11454 ac_outfile=conftest.$ac_objext
11455 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11456 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11457 # Insert the option either (1) after the last *FLAGS variable, or
11458 # (2) before a word containing "conftest.", or (3) at the end.
11459 # Note that $ac_compile itself does not contain backslashes and begins
11460 # with a dollar sign (not a hyphen), so the echo should work correctly.
11461 # The option is referenced via a variable to avoid confusing sed.
11462 lt_compile=`echo "$ac_compile" | $SED \
11463 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11464 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11465 -e 's:$: $lt_compiler_flag:'`
11466 (eval echo "\"\$as_me:11466: $lt_compile\"" >&5)
11467 (eval "$lt_compile" 2>conftest.err)
11468 ac_status=$?
11469 cat conftest.err >&5
11470 echo "$as_me:11470: \$? = $ac_status" >&5
11471 if (exit $ac_status) && test -s "$ac_outfile"; then
11472 # The compiler can only warn and ignore the option if not recognized
11473 # So say no if there are warnings
11474 if test ! -s conftest.err; then
11475 lt_prog_compiler_pic_works_CXX=yes
11478 $rm conftest*
11481 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11482 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11484 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11485 case $lt_prog_compiler_pic_CXX in
11486 "" | " "*) ;;
11487 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11488 esac
11489 else
11490 lt_prog_compiler_pic_CXX=
11491 lt_prog_compiler_can_build_shared_CXX=no
11495 case "$host_os" in
11496 # For platforms which do not support PIC, -DPIC is meaningless:
11497 *djgpp*)
11498 lt_prog_compiler_pic_CXX=
11501 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11503 esac
11505 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11506 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11507 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11508 echo $ECHO_N "(cached) $ECHO_C" >&6
11509 else
11510 lt_cv_prog_compiler_c_o_CXX=no
11511 $rm -r conftest 2>/dev/null
11512 mkdir conftest
11513 cd conftest
11514 mkdir out
11515 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11517 lt_compiler_flag="-o out/conftest2.$ac_objext"
11518 # Insert the option either (1) after the last *FLAGS variable, or
11519 # (2) before a word containing "conftest.", or (3) at the end.
11520 # Note that $ac_compile itself does not contain backslashes and begins
11521 # with a dollar sign (not a hyphen), so the echo should work correctly.
11522 lt_compile=`echo "$ac_compile" | $SED \
11523 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11524 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11525 -e 's:$: $lt_compiler_flag:'`
11526 (eval echo "\"\$as_me:11526: $lt_compile\"" >&5)
11527 (eval "$lt_compile" 2>out/conftest.err)
11528 ac_status=$?
11529 cat out/conftest.err >&5
11530 echo "$as_me:11530: \$? = $ac_status" >&5
11531 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11532 then
11533 # The compiler can only warn and ignore the option if not recognized
11534 # So say no if there are warnings
11535 if test ! -s out/conftest.err; then
11536 lt_cv_prog_compiler_c_o_CXX=yes
11539 chmod u+w .
11540 $rm conftest*
11541 # SGI C++ compiler will create directory out/ii_files/ for
11542 # template instantiation
11543 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11544 $rm out/* && rmdir out
11545 cd ..
11546 rmdir conftest
11547 $rm conftest*
11550 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11551 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11554 hard_links="nottested"
11555 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11556 # do not overwrite the value of need_locks provided by the user
11557 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11558 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11559 hard_links=yes
11560 $rm conftest*
11561 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11562 touch conftest.a
11563 ln conftest.a conftest.b 2>&5 || hard_links=no
11564 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11565 echo "$as_me:$LINENO: result: $hard_links" >&5
11566 echo "${ECHO_T}$hard_links" >&6
11567 if test "$hard_links" = no; then
11568 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11569 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11570 need_locks=warn
11572 else
11573 need_locks=no
11576 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11577 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11579 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11580 case $host_os in
11581 aix4* | aix5*)
11582 # If we're using GNU nm, then we don't want the "-C" option.
11583 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11584 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11585 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'
11586 else
11587 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'
11590 pw32*)
11591 export_symbols_cmds_CXX="$ltdll_cmds"
11593 cygwin* | mingw*)
11594 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11597 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11599 esac
11601 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11602 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11603 test "$ld_shlibs_CXX" = no && can_build_shared=no
11605 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11606 if test "$GCC" = yes; then
11607 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11611 # Do we need to explicitly link libc?
11613 case "x$archive_cmds_need_lc_CXX" in
11614 x|xyes)
11615 # Assume -lc should be added
11616 archive_cmds_need_lc_CXX=yes
11618 if test "$enable_shared" = yes && test "$GCC" = yes; then
11619 case $archive_cmds_CXX in
11620 *'~'*)
11621 # FIXME: we may have to deal with multi-command sequences.
11623 '$CC '*)
11624 # Test whether the compiler implicitly links with -lc since on some
11625 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11626 # to ld, don't add -lc before -lgcc.
11627 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11628 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11629 $rm conftest*
11630 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11633 (eval $ac_compile) 2>&5
11634 ac_status=$?
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); } 2>conftest.err; then
11637 soname=conftest
11638 lib=conftest
11639 libobjs=conftest.$ac_objext
11640 deplibs=
11641 wl=$lt_prog_compiler_wl_CXX
11642 compiler_flags=-v
11643 linker_flags=-v
11644 verstring=
11645 output_objdir=.
11646 libname=conftest
11647 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11648 allow_undefined_flag_CXX=
11649 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11650 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11651 ac_status=$?
11652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653 (exit $ac_status); }
11654 then
11655 archive_cmds_need_lc_CXX=no
11656 else
11657 archive_cmds_need_lc_CXX=yes
11659 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11660 else
11661 cat conftest.err 1>&5
11663 $rm conftest*
11664 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11665 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11667 esac
11670 esac
11672 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11673 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11674 library_names_spec=
11675 libname_spec='lib$name'
11676 soname_spec=
11677 shrext_cmds=".so"
11678 postinstall_cmds=
11679 postuninstall_cmds=
11680 finish_cmds=
11681 finish_eval=
11682 shlibpath_var=
11683 shlibpath_overrides_runpath=unknown
11684 version_type=none
11685 dynamic_linker="$host_os ld.so"
11686 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11687 if test "$GCC" = yes; then
11688 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11689 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11690 # if the path contains ";" then we assume it to be the separator
11691 # otherwise default to the standard path separator (i.e. ":") - it is
11692 # assumed that no part of a normal pathname contains ";" but that should
11693 # okay in the real world where ";" in dirpaths is itself problematic.
11694 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11695 else
11696 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11698 else
11699 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11701 need_lib_prefix=unknown
11702 hardcode_into_libs=no
11704 # when you set need_version to no, make sure it does not cause -set_version
11705 # flags to be left without arguments
11706 need_version=unknown
11708 case $host_os in
11709 aix3*)
11710 version_type=linux
11711 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11712 shlibpath_var=LIBPATH
11714 # AIX 3 has no versioning support, so we append a major version to the name.
11715 soname_spec='${libname}${release}${shared_ext}$major'
11718 aix4* | aix5*)
11719 version_type=linux
11720 need_lib_prefix=no
11721 need_version=no
11722 hardcode_into_libs=yes
11723 if test "$host_cpu" = ia64; then
11724 # AIX 5 supports IA64
11725 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11726 shlibpath_var=LD_LIBRARY_PATH
11727 else
11728 # With GCC up to 2.95.x, collect2 would create an import file
11729 # for dependence libraries. The import file would start with
11730 # the line `#! .'. This would cause the generated library to
11731 # depend on `.', always an invalid library. This was fixed in
11732 # development snapshots of GCC prior to 3.0.
11733 case $host_os in
11734 aix4 | aix4.[01] | aix4.[01].*)
11735 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11736 echo ' yes '
11737 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11739 else
11740 can_build_shared=no
11743 esac
11744 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11745 # soname into executable. Probably we can add versioning support to
11746 # collect2, so additional links can be useful in future.
11747 if test "$aix_use_runtimelinking" = yes; then
11748 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11749 # instead of lib<name>.a to let people know that these are not
11750 # typical AIX shared libraries.
11751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11752 else
11753 # We preserve .a as extension for shared libraries through AIX4.2
11754 # and later when we are not doing run time linking.
11755 library_names_spec='${libname}${release}.a $libname.a'
11756 soname_spec='${libname}${release}${shared_ext}$major'
11758 shlibpath_var=LIBPATH
11762 amigaos*)
11763 library_names_spec='$libname.ixlibrary $libname.a'
11764 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11765 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'
11768 beos*)
11769 library_names_spec='${libname}${shared_ext}'
11770 dynamic_linker="$host_os ld.so"
11771 shlibpath_var=LIBRARY_PATH
11774 bsdi[45]*)
11775 version_type=linux
11776 need_version=no
11777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11778 soname_spec='${libname}${release}${shared_ext}$major'
11779 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11780 shlibpath_var=LD_LIBRARY_PATH
11781 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11782 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11783 # the default ld.so.conf also contains /usr/contrib/lib and
11784 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11785 # libtool to hard-code these into programs
11788 cygwin* | mingw* | pw32*)
11789 version_type=windows
11790 shrext_cmds=".dll"
11791 need_version=no
11792 need_lib_prefix=no
11794 case $GCC,$host_os in
11795 yes,cygwin* | yes,mingw* | yes,pw32*)
11796 library_names_spec='$libname.dll.a'
11797 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11798 postinstall_cmds='base_file=`basename \${file}`~
11799 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11800 dldir=$destdir/`dirname \$dlpath`~
11801 test -d \$dldir || mkdir -p \$dldir~
11802 $install_prog $dir/$dlname \$dldir/$dlname'
11803 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11804 dlpath=$dir/\$dldll~
11805 $rm \$dlpath'
11806 shlibpath_overrides_runpath=yes
11808 case $host_os in
11809 cygwin*)
11810 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11811 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11812 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11814 mingw*)
11815 # MinGW DLLs use traditional 'lib' prefix
11816 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11817 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11818 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11819 # It is most probably a Windows format PATH printed by
11820 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11821 # path with ; separators, and with drive letters. We can handle the
11822 # drive letters (cygwin fileutils understands them), so leave them,
11823 # especially as we might pass files found there to a mingw objdump,
11824 # which wouldn't understand a cygwinified path. Ahh.
11825 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11826 else
11827 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11830 pw32*)
11831 # pw32 DLLs use 'pw' prefix rather than 'lib'
11832 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11834 esac
11838 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11840 esac
11841 dynamic_linker='Win32 ld.exe'
11842 # FIXME: first we should search . and the directory the executable is in
11843 shlibpath_var=PATH
11846 darwin* | rhapsody*)
11847 dynamic_linker="$host_os dyld"
11848 version_type=darwin
11849 need_lib_prefix=no
11850 need_version=no
11851 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11852 soname_spec='${libname}${release}${major}$shared_ext'
11853 shlibpath_overrides_runpath=yes
11854 shlibpath_var=DYLD_LIBRARY_PATH
11855 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11856 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11857 if test "$GCC" = yes; then
11858 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"`
11859 else
11860 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11862 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11865 dgux*)
11866 version_type=linux
11867 need_lib_prefix=no
11868 need_version=no
11869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11870 soname_spec='${libname}${release}${shared_ext}$major'
11871 shlibpath_var=LD_LIBRARY_PATH
11874 freebsd1*)
11875 dynamic_linker=no
11878 kfreebsd*-gnu)
11879 version_type=linux
11880 need_lib_prefix=no
11881 need_version=no
11882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11883 soname_spec='${libname}${release}${shared_ext}$major'
11884 shlibpath_var=LD_LIBRARY_PATH
11885 shlibpath_overrides_runpath=no
11886 hardcode_into_libs=yes
11887 dynamic_linker='GNU ld.so'
11890 freebsd* | dragonfly*)
11891 # DragonFly does not have aout. When/if they implement a new
11892 # versioning mechanism, adjust this.
11893 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11894 version_type=freebsd-$objformat
11895 case $version_type in
11896 freebsd-elf*)
11897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11898 need_version=no
11899 need_lib_prefix=no
11901 freebsd-*)
11902 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11903 need_version=yes
11905 esac
11906 shlibpath_var=LD_LIBRARY_PATH
11907 case $host_os in
11908 freebsd2*)
11909 shlibpath_overrides_runpath=yes
11911 freebsd3.[01]* | freebsdelf3.[01]*)
11912 shlibpath_overrides_runpath=yes
11913 hardcode_into_libs=yes
11915 *) # from 3.2 on
11916 shlibpath_overrides_runpath=no
11917 hardcode_into_libs=yes
11919 esac
11922 gnu*)
11923 version_type=linux
11924 need_lib_prefix=no
11925 need_version=no
11926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11927 soname_spec='${libname}${release}${shared_ext}$major'
11928 shlibpath_var=LD_LIBRARY_PATH
11929 hardcode_into_libs=yes
11932 hpux9* | hpux10* | hpux11*)
11933 # Give a soname corresponding to the major version so that dld.sl refuses to
11934 # link against other versions.
11935 version_type=sunos
11936 need_lib_prefix=no
11937 need_version=no
11938 case "$host_cpu" in
11939 ia64*)
11940 shrext_cmds='.so'
11941 hardcode_into_libs=yes
11942 dynamic_linker="$host_os dld.so"
11943 shlibpath_var=LD_LIBRARY_PATH
11944 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11946 soname_spec='${libname}${release}${shared_ext}$major'
11947 if test "X$HPUX_IA64_MODE" = X32; then
11948 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11949 else
11950 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11952 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11954 hppa*64*)
11955 shrext_cmds='.sl'
11956 hardcode_into_libs=yes
11957 dynamic_linker="$host_os dld.sl"
11958 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11959 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11961 soname_spec='${libname}${release}${shared_ext}$major'
11962 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11963 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11966 shrext_cmds='.sl'
11967 dynamic_linker="$host_os dld.sl"
11968 shlibpath_var=SHLIB_PATH
11969 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11971 soname_spec='${libname}${release}${shared_ext}$major'
11973 esac
11974 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11975 postinstall_cmds='chmod 555 $lib'
11978 irix5* | irix6* | nonstopux*)
11979 case $host_os in
11980 nonstopux*) version_type=nonstopux ;;
11982 if test "$lt_cv_prog_gnu_ld" = yes; then
11983 version_type=linux
11984 else
11985 version_type=irix
11986 fi ;;
11987 esac
11988 need_lib_prefix=no
11989 need_version=no
11990 soname_spec='${libname}${release}${shared_ext}$major'
11991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11992 case $host_os in
11993 irix5* | nonstopux*)
11994 libsuff= shlibsuff=
11997 case $LD in # libtool.m4 will add one of these switches to LD
11998 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11999 libsuff= shlibsuff= libmagic=32-bit;;
12000 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12001 libsuff=32 shlibsuff=N32 libmagic=N32;;
12002 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12003 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12004 *) libsuff= shlibsuff= libmagic=never-match;;
12005 esac
12007 esac
12008 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12009 shlibpath_overrides_runpath=no
12010 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12011 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12012 hardcode_into_libs=yes
12015 # No shared lib support for Linux oldld, aout, or coff.
12016 linux*oldld* | linux*aout* | linux*coff*)
12017 dynamic_linker=no
12020 # This must be Linux ELF.
12021 linux*)
12022 version_type=linux
12023 need_lib_prefix=no
12024 need_version=no
12025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12026 soname_spec='${libname}${release}${shared_ext}$major'
12027 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12028 shlibpath_var=LD_LIBRARY_PATH
12029 shlibpath_overrides_runpath=no
12030 # This implies no fast_install, which is unacceptable.
12031 # Some rework will be needed to allow for fast_install
12032 # before this can be enabled.
12033 hardcode_into_libs=yes
12035 # Append ld.so.conf contents to the search path
12036 if test -f /etc/ld.so.conf; then
12037 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12038 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12041 # We used to test for /lib/ld.so.1 and disable shared libraries on
12042 # powerpc, because MkLinux only supported shared libraries with the
12043 # GNU dynamic linker. Since this was broken with cross compilers,
12044 # most powerpc-linux boxes support dynamic linking these days and
12045 # people can always --disable-shared, the test was removed, and we
12046 # assume the GNU/Linux dynamic linker is in use.
12047 dynamic_linker='GNU/Linux ld.so'
12050 knetbsd*-gnu)
12051 version_type=linux
12052 need_lib_prefix=no
12053 need_version=no
12054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12055 soname_spec='${libname}${release}${shared_ext}$major'
12056 shlibpath_var=LD_LIBRARY_PATH
12057 shlibpath_overrides_runpath=no
12058 hardcode_into_libs=yes
12059 dynamic_linker='GNU ld.so'
12062 netbsd*)
12063 version_type=sunos
12064 need_lib_prefix=no
12065 need_version=no
12066 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12068 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12069 dynamic_linker='NetBSD (a.out) ld.so'
12070 else
12071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12072 soname_spec='${libname}${release}${shared_ext}$major'
12073 dynamic_linker='NetBSD ld.elf_so'
12075 shlibpath_var=LD_LIBRARY_PATH
12076 shlibpath_overrides_runpath=yes
12077 hardcode_into_libs=yes
12080 newsos6)
12081 version_type=linux
12082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12083 shlibpath_var=LD_LIBRARY_PATH
12084 shlibpath_overrides_runpath=yes
12087 nto-qnx*)
12088 version_type=linux
12089 need_lib_prefix=no
12090 need_version=no
12091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12092 soname_spec='${libname}${release}${shared_ext}$major'
12093 shlibpath_var=LD_LIBRARY_PATH
12094 shlibpath_overrides_runpath=yes
12097 openbsd*)
12098 version_type=sunos
12099 need_lib_prefix=no
12100 need_version=no
12101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12102 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12103 shlibpath_var=LD_LIBRARY_PATH
12104 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12105 case $host_os in
12106 openbsd2.[89] | openbsd2.[89].*)
12107 shlibpath_overrides_runpath=no
12110 shlibpath_overrides_runpath=yes
12112 esac
12113 else
12114 shlibpath_overrides_runpath=yes
12118 os2*)
12119 libname_spec='$name'
12120 shrext_cmds=".dll"
12121 need_lib_prefix=no
12122 library_names_spec='$libname${shared_ext} $libname.a'
12123 dynamic_linker='OS/2 ld.exe'
12124 shlibpath_var=LIBPATH
12127 osf3* | osf4* | osf5*)
12128 version_type=osf
12129 need_lib_prefix=no
12130 need_version=no
12131 soname_spec='${libname}${release}${shared_ext}$major'
12132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12133 shlibpath_var=LD_LIBRARY_PATH
12134 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12135 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12138 sco3.2v5*)
12139 version_type=osf
12140 soname_spec='${libname}${release}${shared_ext}$major'
12141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12142 shlibpath_var=LD_LIBRARY_PATH
12145 solaris*)
12146 version_type=linux
12147 need_lib_prefix=no
12148 need_version=no
12149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12150 soname_spec='${libname}${release}${shared_ext}$major'
12151 shlibpath_var=LD_LIBRARY_PATH
12152 shlibpath_overrides_runpath=yes
12153 hardcode_into_libs=yes
12154 # ldd complains unless libraries are executable
12155 postinstall_cmds='chmod +x $lib'
12158 sunos4*)
12159 version_type=sunos
12160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12161 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12162 shlibpath_var=LD_LIBRARY_PATH
12163 shlibpath_overrides_runpath=yes
12164 if test "$with_gnu_ld" = yes; then
12165 need_lib_prefix=no
12167 need_version=yes
12170 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12171 version_type=linux
12172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12173 soname_spec='${libname}${release}${shared_ext}$major'
12174 shlibpath_var=LD_LIBRARY_PATH
12175 case $host_vendor in
12176 sni)
12177 shlibpath_overrides_runpath=no
12178 need_lib_prefix=no
12179 export_dynamic_flag_spec='${wl}-Blargedynsym'
12180 runpath_var=LD_RUN_PATH
12182 siemens)
12183 need_lib_prefix=no
12185 motorola)
12186 need_lib_prefix=no
12187 need_version=no
12188 shlibpath_overrides_runpath=no
12189 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12191 esac
12194 sysv4*MP*)
12195 if test -d /usr/nec ;then
12196 version_type=linux
12197 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12198 soname_spec='$libname${shared_ext}.$major'
12199 shlibpath_var=LD_LIBRARY_PATH
12203 uts4*)
12204 version_type=linux
12205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12206 soname_spec='${libname}${release}${shared_ext}$major'
12207 shlibpath_var=LD_LIBRARY_PATH
12211 dynamic_linker=no
12213 esac
12214 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12215 echo "${ECHO_T}$dynamic_linker" >&6
12216 test "$dynamic_linker" = no && can_build_shared=no
12218 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12219 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12220 hardcode_action_CXX=
12221 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12222 test -n "$runpath_var_CXX" || \
12223 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12225 # We can hardcode non-existant directories.
12226 if test "$hardcode_direct_CXX" != no &&
12227 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12228 # have to relink, otherwise we might link with an installed library
12229 # when we should be linking with a yet-to-be-installed one
12230 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12231 test "$hardcode_minus_L_CXX" != no; then
12232 # Linking always hardcodes the temporary library directory.
12233 hardcode_action_CXX=relink
12234 else
12235 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12236 hardcode_action_CXX=immediate
12238 else
12239 # We cannot hardcode anything, or else we can only hardcode existing
12240 # directories.
12241 hardcode_action_CXX=unsupported
12243 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12244 echo "${ECHO_T}$hardcode_action_CXX" >&6
12246 if test "$hardcode_action_CXX" = relink; then
12247 # Fast installation is not supported
12248 enable_fast_install=no
12249 elif test "$shlibpath_overrides_runpath" = yes ||
12250 test "$enable_shared" = no; then
12251 # Fast installation is not necessary
12252 enable_fast_install=needless
12255 striplib=
12256 old_striplib=
12257 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12258 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12259 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12260 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12261 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12262 echo "$as_me:$LINENO: result: yes" >&5
12263 echo "${ECHO_T}yes" >&6
12264 else
12265 # FIXME - insert some real tests, host_os isn't really good enough
12266 case $host_os in
12267 darwin*)
12268 if test -n "$STRIP" ; then
12269 striplib="$STRIP -x"
12270 echo "$as_me:$LINENO: result: yes" >&5
12271 echo "${ECHO_T}yes" >&6
12272 else
12273 echo "$as_me:$LINENO: result: no" >&5
12274 echo "${ECHO_T}no" >&6
12278 echo "$as_me:$LINENO: result: no" >&5
12279 echo "${ECHO_T}no" >&6
12281 esac
12284 if test "x$enable_dlopen" != xyes; then
12285 enable_dlopen=unknown
12286 enable_dlopen_self=unknown
12287 enable_dlopen_self_static=unknown
12288 else
12289 lt_cv_dlopen=no
12290 lt_cv_dlopen_libs=
12292 case $host_os in
12293 beos*)
12294 lt_cv_dlopen="load_add_on"
12295 lt_cv_dlopen_libs=
12296 lt_cv_dlopen_self=yes
12299 mingw* | pw32*)
12300 lt_cv_dlopen="LoadLibrary"
12301 lt_cv_dlopen_libs=
12304 cygwin*)
12305 lt_cv_dlopen="dlopen"
12306 lt_cv_dlopen_libs=
12309 darwin*)
12310 # if libdl is installed we need to link against it
12311 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12312 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12313 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12314 echo $ECHO_N "(cached) $ECHO_C" >&6
12315 else
12316 ac_check_lib_save_LIBS=$LIBS
12317 LIBS="-ldl $LIBS"
12318 cat >conftest.$ac_ext <<_ACEOF
12319 /* confdefs.h. */
12320 _ACEOF
12321 cat confdefs.h >>conftest.$ac_ext
12322 cat >>conftest.$ac_ext <<_ACEOF
12323 /* end confdefs.h. */
12325 /* Override any gcc2 internal prototype to avoid an error. */
12326 #ifdef __cplusplus
12327 extern "C"
12328 #endif
12329 /* We use char because int might match the return type of a gcc2
12330 builtin and then its argument prototype would still apply. */
12331 char dlopen ();
12333 main ()
12335 dlopen ();
12337 return 0;
12339 _ACEOF
12340 rm -f conftest.$ac_objext conftest$ac_exeext
12341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12342 (eval $ac_link) 2>conftest.er1
12343 ac_status=$?
12344 grep -v '^ *+' conftest.er1 >conftest.err
12345 rm -f conftest.er1
12346 cat conftest.err >&5
12347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348 (exit $ac_status); } &&
12349 { ac_try='test -z "$ac_cxx_werror_flag"
12350 || test ! -s conftest.err'
12351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12352 (eval $ac_try) 2>&5
12353 ac_status=$?
12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); }; } &&
12356 { ac_try='test -s conftest$ac_exeext'
12357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12358 (eval $ac_try) 2>&5
12359 ac_status=$?
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); }; }; then
12362 ac_cv_lib_dl_dlopen=yes
12363 else
12364 echo "$as_me: failed program was:" >&5
12365 sed 's/^/| /' conftest.$ac_ext >&5
12367 ac_cv_lib_dl_dlopen=no
12369 rm -f conftest.err conftest.$ac_objext \
12370 conftest$ac_exeext conftest.$ac_ext
12371 LIBS=$ac_check_lib_save_LIBS
12373 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12374 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12375 if test $ac_cv_lib_dl_dlopen = yes; then
12376 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12377 else
12379 lt_cv_dlopen="dyld"
12380 lt_cv_dlopen_libs=
12381 lt_cv_dlopen_self=yes
12388 echo "$as_me:$LINENO: checking for shl_load" >&5
12389 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12390 if test "${ac_cv_func_shl_load+set}" = set; then
12391 echo $ECHO_N "(cached) $ECHO_C" >&6
12392 else
12393 cat >conftest.$ac_ext <<_ACEOF
12394 /* confdefs.h. */
12395 _ACEOF
12396 cat confdefs.h >>conftest.$ac_ext
12397 cat >>conftest.$ac_ext <<_ACEOF
12398 /* end confdefs.h. */
12399 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12401 #define shl_load innocuous_shl_load
12403 /* System header to define __stub macros and hopefully few prototypes,
12404 which can conflict with char shl_load (); below.
12405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12406 <limits.h> exists even on freestanding compilers. */
12408 #ifdef __STDC__
12409 # include <limits.h>
12410 #else
12411 # include <assert.h>
12412 #endif
12414 #undef shl_load
12416 /* Override any gcc2 internal prototype to avoid an error. */
12417 #ifdef __cplusplus
12418 extern "C"
12420 #endif
12421 /* We use char because int might match the return type of a gcc2
12422 builtin and then its argument prototype would still apply. */
12423 char shl_load ();
12424 /* The GNU C library defines this for functions which it implements
12425 to always fail with ENOSYS. Some functions are actually named
12426 something starting with __ and the normal name is an alias. */
12427 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12428 choke me
12429 #else
12430 char (*f) () = shl_load;
12431 #endif
12432 #ifdef __cplusplus
12434 #endif
12437 main ()
12439 return f != shl_load;
12441 return 0;
12443 _ACEOF
12444 rm -f conftest.$ac_objext conftest$ac_exeext
12445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12446 (eval $ac_link) 2>conftest.er1
12447 ac_status=$?
12448 grep -v '^ *+' conftest.er1 >conftest.err
12449 rm -f conftest.er1
12450 cat conftest.err >&5
12451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452 (exit $ac_status); } &&
12453 { ac_try='test -z "$ac_cxx_werror_flag"
12454 || test ! -s conftest.err'
12455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12456 (eval $ac_try) 2>&5
12457 ac_status=$?
12458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 (exit $ac_status); }; } &&
12460 { ac_try='test -s conftest$ac_exeext'
12461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12462 (eval $ac_try) 2>&5
12463 ac_status=$?
12464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465 (exit $ac_status); }; }; then
12466 ac_cv_func_shl_load=yes
12467 else
12468 echo "$as_me: failed program was:" >&5
12469 sed 's/^/| /' conftest.$ac_ext >&5
12471 ac_cv_func_shl_load=no
12473 rm -f conftest.err conftest.$ac_objext \
12474 conftest$ac_exeext conftest.$ac_ext
12476 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12477 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12478 if test $ac_cv_func_shl_load = yes; then
12479 lt_cv_dlopen="shl_load"
12480 else
12481 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12482 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12483 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12484 echo $ECHO_N "(cached) $ECHO_C" >&6
12485 else
12486 ac_check_lib_save_LIBS=$LIBS
12487 LIBS="-ldld $LIBS"
12488 cat >conftest.$ac_ext <<_ACEOF
12489 /* confdefs.h. */
12490 _ACEOF
12491 cat confdefs.h >>conftest.$ac_ext
12492 cat >>conftest.$ac_ext <<_ACEOF
12493 /* end confdefs.h. */
12495 /* Override any gcc2 internal prototype to avoid an error. */
12496 #ifdef __cplusplus
12497 extern "C"
12498 #endif
12499 /* We use char because int might match the return type of a gcc2
12500 builtin and then its argument prototype would still apply. */
12501 char shl_load ();
12503 main ()
12505 shl_load ();
12507 return 0;
12509 _ACEOF
12510 rm -f conftest.$ac_objext conftest$ac_exeext
12511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12512 (eval $ac_link) 2>conftest.er1
12513 ac_status=$?
12514 grep -v '^ *+' conftest.er1 >conftest.err
12515 rm -f conftest.er1
12516 cat conftest.err >&5
12517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518 (exit $ac_status); } &&
12519 { ac_try='test -z "$ac_cxx_werror_flag"
12520 || test ! -s conftest.err'
12521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12522 (eval $ac_try) 2>&5
12523 ac_status=$?
12524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); }; } &&
12526 { ac_try='test -s conftest$ac_exeext'
12527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12528 (eval $ac_try) 2>&5
12529 ac_status=$?
12530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531 (exit $ac_status); }; }; then
12532 ac_cv_lib_dld_shl_load=yes
12533 else
12534 echo "$as_me: failed program was:" >&5
12535 sed 's/^/| /' conftest.$ac_ext >&5
12537 ac_cv_lib_dld_shl_load=no
12539 rm -f conftest.err conftest.$ac_objext \
12540 conftest$ac_exeext conftest.$ac_ext
12541 LIBS=$ac_check_lib_save_LIBS
12543 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12544 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12545 if test $ac_cv_lib_dld_shl_load = yes; then
12546 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12547 else
12548 echo "$as_me:$LINENO: checking for dlopen" >&5
12549 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12550 if test "${ac_cv_func_dlopen+set}" = set; then
12551 echo $ECHO_N "(cached) $ECHO_C" >&6
12552 else
12553 cat >conftest.$ac_ext <<_ACEOF
12554 /* confdefs.h. */
12555 _ACEOF
12556 cat confdefs.h >>conftest.$ac_ext
12557 cat >>conftest.$ac_ext <<_ACEOF
12558 /* end confdefs.h. */
12559 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12561 #define dlopen innocuous_dlopen
12563 /* System header to define __stub macros and hopefully few prototypes,
12564 which can conflict with char dlopen (); below.
12565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12566 <limits.h> exists even on freestanding compilers. */
12568 #ifdef __STDC__
12569 # include <limits.h>
12570 #else
12571 # include <assert.h>
12572 #endif
12574 #undef dlopen
12576 /* Override any gcc2 internal prototype to avoid an error. */
12577 #ifdef __cplusplus
12578 extern "C"
12580 #endif
12581 /* We use char because int might match the return type of a gcc2
12582 builtin and then its argument prototype would still apply. */
12583 char dlopen ();
12584 /* The GNU C library defines this for functions which it implements
12585 to always fail with ENOSYS. Some functions are actually named
12586 something starting with __ and the normal name is an alias. */
12587 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12588 choke me
12589 #else
12590 char (*f) () = dlopen;
12591 #endif
12592 #ifdef __cplusplus
12594 #endif
12597 main ()
12599 return f != dlopen;
12601 return 0;
12603 _ACEOF
12604 rm -f conftest.$ac_objext conftest$ac_exeext
12605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12606 (eval $ac_link) 2>conftest.er1
12607 ac_status=$?
12608 grep -v '^ *+' conftest.er1 >conftest.err
12609 rm -f conftest.er1
12610 cat conftest.err >&5
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); } &&
12613 { ac_try='test -z "$ac_cxx_werror_flag"
12614 || test ! -s conftest.err'
12615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12616 (eval $ac_try) 2>&5
12617 ac_status=$?
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); }; } &&
12620 { ac_try='test -s conftest$ac_exeext'
12621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12622 (eval $ac_try) 2>&5
12623 ac_status=$?
12624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625 (exit $ac_status); }; }; then
12626 ac_cv_func_dlopen=yes
12627 else
12628 echo "$as_me: failed program was:" >&5
12629 sed 's/^/| /' conftest.$ac_ext >&5
12631 ac_cv_func_dlopen=no
12633 rm -f conftest.err conftest.$ac_objext \
12634 conftest$ac_exeext conftest.$ac_ext
12636 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12637 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12638 if test $ac_cv_func_dlopen = yes; then
12639 lt_cv_dlopen="dlopen"
12640 else
12641 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12642 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12643 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12644 echo $ECHO_N "(cached) $ECHO_C" >&6
12645 else
12646 ac_check_lib_save_LIBS=$LIBS
12647 LIBS="-ldl $LIBS"
12648 cat >conftest.$ac_ext <<_ACEOF
12649 /* confdefs.h. */
12650 _ACEOF
12651 cat confdefs.h >>conftest.$ac_ext
12652 cat >>conftest.$ac_ext <<_ACEOF
12653 /* end confdefs.h. */
12655 /* Override any gcc2 internal prototype to avoid an error. */
12656 #ifdef __cplusplus
12657 extern "C"
12658 #endif
12659 /* We use char because int might match the return type of a gcc2
12660 builtin and then its argument prototype would still apply. */
12661 char dlopen ();
12663 main ()
12665 dlopen ();
12667 return 0;
12669 _ACEOF
12670 rm -f conftest.$ac_objext conftest$ac_exeext
12671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12672 (eval $ac_link) 2>conftest.er1
12673 ac_status=$?
12674 grep -v '^ *+' conftest.er1 >conftest.err
12675 rm -f conftest.er1
12676 cat conftest.err >&5
12677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678 (exit $ac_status); } &&
12679 { ac_try='test -z "$ac_cxx_werror_flag"
12680 || test ! -s conftest.err'
12681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12682 (eval $ac_try) 2>&5
12683 ac_status=$?
12684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685 (exit $ac_status); }; } &&
12686 { ac_try='test -s conftest$ac_exeext'
12687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12688 (eval $ac_try) 2>&5
12689 ac_status=$?
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); }; }; then
12692 ac_cv_lib_dl_dlopen=yes
12693 else
12694 echo "$as_me: failed program was:" >&5
12695 sed 's/^/| /' conftest.$ac_ext >&5
12697 ac_cv_lib_dl_dlopen=no
12699 rm -f conftest.err conftest.$ac_objext \
12700 conftest$ac_exeext conftest.$ac_ext
12701 LIBS=$ac_check_lib_save_LIBS
12703 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12704 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12705 if test $ac_cv_lib_dl_dlopen = yes; then
12706 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12707 else
12708 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12709 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12710 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12711 echo $ECHO_N "(cached) $ECHO_C" >&6
12712 else
12713 ac_check_lib_save_LIBS=$LIBS
12714 LIBS="-lsvld $LIBS"
12715 cat >conftest.$ac_ext <<_ACEOF
12716 /* confdefs.h. */
12717 _ACEOF
12718 cat confdefs.h >>conftest.$ac_ext
12719 cat >>conftest.$ac_ext <<_ACEOF
12720 /* end confdefs.h. */
12722 /* Override any gcc2 internal prototype to avoid an error. */
12723 #ifdef __cplusplus
12724 extern "C"
12725 #endif
12726 /* We use char because int might match the return type of a gcc2
12727 builtin and then its argument prototype would still apply. */
12728 char dlopen ();
12730 main ()
12732 dlopen ();
12734 return 0;
12736 _ACEOF
12737 rm -f conftest.$ac_objext conftest$ac_exeext
12738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12739 (eval $ac_link) 2>conftest.er1
12740 ac_status=$?
12741 grep -v '^ *+' conftest.er1 >conftest.err
12742 rm -f conftest.er1
12743 cat conftest.err >&5
12744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745 (exit $ac_status); } &&
12746 { ac_try='test -z "$ac_cxx_werror_flag"
12747 || test ! -s conftest.err'
12748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12749 (eval $ac_try) 2>&5
12750 ac_status=$?
12751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752 (exit $ac_status); }; } &&
12753 { ac_try='test -s conftest$ac_exeext'
12754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12755 (eval $ac_try) 2>&5
12756 ac_status=$?
12757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); }; }; then
12759 ac_cv_lib_svld_dlopen=yes
12760 else
12761 echo "$as_me: failed program was:" >&5
12762 sed 's/^/| /' conftest.$ac_ext >&5
12764 ac_cv_lib_svld_dlopen=no
12766 rm -f conftest.err conftest.$ac_objext \
12767 conftest$ac_exeext conftest.$ac_ext
12768 LIBS=$ac_check_lib_save_LIBS
12770 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12771 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12772 if test $ac_cv_lib_svld_dlopen = yes; then
12773 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12774 else
12775 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12776 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12777 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12778 echo $ECHO_N "(cached) $ECHO_C" >&6
12779 else
12780 ac_check_lib_save_LIBS=$LIBS
12781 LIBS="-ldld $LIBS"
12782 cat >conftest.$ac_ext <<_ACEOF
12783 /* confdefs.h. */
12784 _ACEOF
12785 cat confdefs.h >>conftest.$ac_ext
12786 cat >>conftest.$ac_ext <<_ACEOF
12787 /* end confdefs.h. */
12789 /* Override any gcc2 internal prototype to avoid an error. */
12790 #ifdef __cplusplus
12791 extern "C"
12792 #endif
12793 /* We use char because int might match the return type of a gcc2
12794 builtin and then its argument prototype would still apply. */
12795 char dld_link ();
12797 main ()
12799 dld_link ();
12801 return 0;
12803 _ACEOF
12804 rm -f conftest.$ac_objext conftest$ac_exeext
12805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12806 (eval $ac_link) 2>conftest.er1
12807 ac_status=$?
12808 grep -v '^ *+' conftest.er1 >conftest.err
12809 rm -f conftest.er1
12810 cat conftest.err >&5
12811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812 (exit $ac_status); } &&
12813 { ac_try='test -z "$ac_cxx_werror_flag"
12814 || test ! -s conftest.err'
12815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12816 (eval $ac_try) 2>&5
12817 ac_status=$?
12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819 (exit $ac_status); }; } &&
12820 { ac_try='test -s conftest$ac_exeext'
12821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12822 (eval $ac_try) 2>&5
12823 ac_status=$?
12824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 (exit $ac_status); }; }; then
12826 ac_cv_lib_dld_dld_link=yes
12827 else
12828 echo "$as_me: failed program was:" >&5
12829 sed 's/^/| /' conftest.$ac_ext >&5
12831 ac_cv_lib_dld_dld_link=no
12833 rm -f conftest.err conftest.$ac_objext \
12834 conftest$ac_exeext conftest.$ac_ext
12835 LIBS=$ac_check_lib_save_LIBS
12837 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12838 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12839 if test $ac_cv_lib_dld_dld_link = yes; then
12840 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12859 esac
12861 if test "x$lt_cv_dlopen" != xno; then
12862 enable_dlopen=yes
12863 else
12864 enable_dlopen=no
12867 case $lt_cv_dlopen in
12868 dlopen)
12869 save_CPPFLAGS="$CPPFLAGS"
12870 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12872 save_LDFLAGS="$LDFLAGS"
12873 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12875 save_LIBS="$LIBS"
12876 LIBS="$lt_cv_dlopen_libs $LIBS"
12878 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12879 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12880 if test "${lt_cv_dlopen_self+set}" = set; then
12881 echo $ECHO_N "(cached) $ECHO_C" >&6
12882 else
12883 if test "$cross_compiling" = yes; then :
12884 lt_cv_dlopen_self=cross
12885 else
12886 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12887 lt_status=$lt_dlunknown
12888 cat > conftest.$ac_ext <<EOF
12889 #line 12889 "configure"
12890 #include "confdefs.h"
12892 #if HAVE_DLFCN_H
12893 #include <dlfcn.h>
12894 #endif
12896 #include <stdio.h>
12898 #ifdef RTLD_GLOBAL
12899 # define LT_DLGLOBAL RTLD_GLOBAL
12900 #else
12901 # ifdef DL_GLOBAL
12902 # define LT_DLGLOBAL DL_GLOBAL
12903 # else
12904 # define LT_DLGLOBAL 0
12905 # endif
12906 #endif
12908 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12909 find out it does not work in some platform. */
12910 #ifndef LT_DLLAZY_OR_NOW
12911 # ifdef RTLD_LAZY
12912 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12913 # else
12914 # ifdef DL_LAZY
12915 # define LT_DLLAZY_OR_NOW DL_LAZY
12916 # else
12917 # ifdef RTLD_NOW
12918 # define LT_DLLAZY_OR_NOW RTLD_NOW
12919 # else
12920 # ifdef DL_NOW
12921 # define LT_DLLAZY_OR_NOW DL_NOW
12922 # else
12923 # define LT_DLLAZY_OR_NOW 0
12924 # endif
12925 # endif
12926 # endif
12927 # endif
12928 #endif
12930 #ifdef __cplusplus
12931 extern "C" void exit (int);
12932 #endif
12934 void fnord() { int i=42;}
12935 int main ()
12937 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12938 int status = $lt_dlunknown;
12940 if (self)
12942 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12943 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12944 /* dlclose (self); */
12947 exit (status);
12950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12951 (eval $ac_link) 2>&5
12952 ac_status=$?
12953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12955 (./conftest; exit; ) 2>/dev/null
12956 lt_status=$?
12957 case x$lt_status in
12958 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12959 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12960 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12961 esac
12962 else :
12963 # compilation failed
12964 lt_cv_dlopen_self=no
12967 rm -fr conftest*
12971 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12972 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12974 if test "x$lt_cv_dlopen_self" = xyes; then
12975 LDFLAGS="$LDFLAGS $link_static_flag"
12976 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12977 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12978 if test "${lt_cv_dlopen_self_static+set}" = set; then
12979 echo $ECHO_N "(cached) $ECHO_C" >&6
12980 else
12981 if test "$cross_compiling" = yes; then :
12982 lt_cv_dlopen_self_static=cross
12983 else
12984 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12985 lt_status=$lt_dlunknown
12986 cat > conftest.$ac_ext <<EOF
12987 #line 12987 "configure"
12988 #include "confdefs.h"
12990 #if HAVE_DLFCN_H
12991 #include <dlfcn.h>
12992 #endif
12994 #include <stdio.h>
12996 #ifdef RTLD_GLOBAL
12997 # define LT_DLGLOBAL RTLD_GLOBAL
12998 #else
12999 # ifdef DL_GLOBAL
13000 # define LT_DLGLOBAL DL_GLOBAL
13001 # else
13002 # define LT_DLGLOBAL 0
13003 # endif
13004 #endif
13006 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13007 find out it does not work in some platform. */
13008 #ifndef LT_DLLAZY_OR_NOW
13009 # ifdef RTLD_LAZY
13010 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13011 # else
13012 # ifdef DL_LAZY
13013 # define LT_DLLAZY_OR_NOW DL_LAZY
13014 # else
13015 # ifdef RTLD_NOW
13016 # define LT_DLLAZY_OR_NOW RTLD_NOW
13017 # else
13018 # ifdef DL_NOW
13019 # define LT_DLLAZY_OR_NOW DL_NOW
13020 # else
13021 # define LT_DLLAZY_OR_NOW 0
13022 # endif
13023 # endif
13024 # endif
13025 # endif
13026 #endif
13028 #ifdef __cplusplus
13029 extern "C" void exit (int);
13030 #endif
13032 void fnord() { int i=42;}
13033 int main ()
13035 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13036 int status = $lt_dlunknown;
13038 if (self)
13040 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13041 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13042 /* dlclose (self); */
13045 exit (status);
13048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13049 (eval $ac_link) 2>&5
13050 ac_status=$?
13051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13053 (./conftest; exit; ) 2>/dev/null
13054 lt_status=$?
13055 case x$lt_status in
13056 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13057 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13058 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13059 esac
13060 else :
13061 # compilation failed
13062 lt_cv_dlopen_self_static=no
13065 rm -fr conftest*
13069 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13070 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13073 CPPFLAGS="$save_CPPFLAGS"
13074 LDFLAGS="$save_LDFLAGS"
13075 LIBS="$save_LIBS"
13077 esac
13079 case $lt_cv_dlopen_self in
13080 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13081 *) enable_dlopen_self=unknown ;;
13082 esac
13084 case $lt_cv_dlopen_self_static in
13085 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13086 *) enable_dlopen_self_static=unknown ;;
13087 esac
13091 # The else clause should only fire when bootstrapping the
13092 # libtool distribution, otherwise you forgot to ship ltmain.sh
13093 # with your package, and you will get complaints that there are
13094 # no rules to generate ltmain.sh.
13095 if test -f "$ltmain"; then
13096 # See if we are running on zsh, and set the options which allow our commands through
13097 # without removal of \ escapes.
13098 if test -n "${ZSH_VERSION+set}" ; then
13099 setopt NO_GLOB_SUBST
13101 # Now quote all the things that may contain metacharacters while being
13102 # careful not to overquote the AC_SUBSTed values. We take copies of the
13103 # variables and quote the copies for generation of the libtool script.
13104 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13105 SED SHELL STRIP \
13106 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13107 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13108 deplibs_check_method reload_flag reload_cmds need_locks \
13109 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13110 lt_cv_sys_global_symbol_to_c_name_address \
13111 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13112 old_postinstall_cmds old_postuninstall_cmds \
13113 compiler_CXX \
13114 CC_CXX \
13115 LD_CXX \
13116 lt_prog_compiler_wl_CXX \
13117 lt_prog_compiler_pic_CXX \
13118 lt_prog_compiler_static_CXX \
13119 lt_prog_compiler_no_builtin_flag_CXX \
13120 export_dynamic_flag_spec_CXX \
13121 thread_safe_flag_spec_CXX \
13122 whole_archive_flag_spec_CXX \
13123 enable_shared_with_static_runtimes_CXX \
13124 old_archive_cmds_CXX \
13125 old_archive_from_new_cmds_CXX \
13126 predep_objects_CXX \
13127 postdep_objects_CXX \
13128 predeps_CXX \
13129 postdeps_CXX \
13130 compiler_lib_search_path_CXX \
13131 archive_cmds_CXX \
13132 archive_expsym_cmds_CXX \
13133 postinstall_cmds_CXX \
13134 postuninstall_cmds_CXX \
13135 old_archive_from_expsyms_cmds_CXX \
13136 allow_undefined_flag_CXX \
13137 no_undefined_flag_CXX \
13138 export_symbols_cmds_CXX \
13139 hardcode_libdir_flag_spec_CXX \
13140 hardcode_libdir_flag_spec_ld_CXX \
13141 hardcode_libdir_separator_CXX \
13142 hardcode_automatic_CXX \
13143 module_cmds_CXX \
13144 module_expsym_cmds_CXX \
13145 lt_cv_prog_compiler_c_o_CXX \
13146 exclude_expsyms_CXX \
13147 include_expsyms_CXX; do
13149 case $var in
13150 old_archive_cmds_CXX | \
13151 old_archive_from_new_cmds_CXX | \
13152 archive_cmds_CXX | \
13153 archive_expsym_cmds_CXX | \
13154 module_cmds_CXX | \
13155 module_expsym_cmds_CXX | \
13156 old_archive_from_expsyms_cmds_CXX | \
13157 export_symbols_cmds_CXX | \
13158 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13159 postinstall_cmds | postuninstall_cmds | \
13160 old_postinstall_cmds | old_postuninstall_cmds | \
13161 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13162 # Double-quote double-evaled strings.
13163 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13166 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13168 esac
13169 done
13171 case $lt_echo in
13172 *'\$0 --fallback-echo"')
13173 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13175 esac
13177 cfgfile="$ofile"
13179 cat <<__EOF__ >> "$cfgfile"
13180 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13182 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13184 # Shell to use when invoking shell scripts.
13185 SHELL=$lt_SHELL
13187 # Whether or not to build shared libraries.
13188 build_libtool_libs=$enable_shared
13190 # Whether or not to build static libraries.
13191 build_old_libs=$enable_static
13193 # Whether or not to add -lc for building shared libraries.
13194 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13196 # Whether or not to disallow shared libs when runtime libs are static
13197 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13199 # Whether or not to optimize for fast installation.
13200 fast_install=$enable_fast_install
13202 # The host system.
13203 host_alias=$host_alias
13204 host=$host
13205 host_os=$host_os
13207 # The build system.
13208 build_alias=$build_alias
13209 build=$build
13210 build_os=$build_os
13212 # An echo program that does not interpret backslashes.
13213 echo=$lt_echo
13215 # The archiver.
13216 AR=$lt_AR
13217 AR_FLAGS=$lt_AR_FLAGS
13219 # A C compiler.
13220 LTCC=$lt_LTCC
13222 # A language-specific compiler.
13223 CC=$lt_compiler_CXX
13225 # Is the compiler the GNU C compiler?
13226 with_gcc=$GCC_CXX
13228 # An ERE matcher.
13229 EGREP=$lt_EGREP
13231 # The linker used to build libraries.
13232 LD=$lt_LD_CXX
13234 # Whether we need hard or soft links.
13235 LN_S=$lt_LN_S
13237 # A BSD-compatible nm program.
13238 NM=$lt_NM
13240 # A symbol stripping program
13241 STRIP=$lt_STRIP
13243 # Used to examine libraries when file_magic_cmd begins "file"
13244 MAGIC_CMD=$MAGIC_CMD
13246 # Used on cygwin: DLL creation program.
13247 DLLTOOL="$DLLTOOL"
13249 # Used on cygwin: object dumper.
13250 OBJDUMP="$OBJDUMP"
13252 # Used on cygwin: assembler.
13253 AS="$AS"
13255 # The name of the directory that contains temporary libtool files.
13256 objdir=$objdir
13258 # How to create reloadable object files.
13259 reload_flag=$lt_reload_flag
13260 reload_cmds=$lt_reload_cmds
13262 # How to pass a linker flag through the compiler.
13263 wl=$lt_lt_prog_compiler_wl_CXX
13265 # Object file suffix (normally "o").
13266 objext="$ac_objext"
13268 # Old archive suffix (normally "a").
13269 libext="$libext"
13271 # Shared library suffix (normally ".so").
13272 shrext_cmds='$shrext_cmds'
13274 # Executable file suffix (normally "").
13275 exeext="$exeext"
13277 # Additional compiler flags for building library objects.
13278 pic_flag=$lt_lt_prog_compiler_pic_CXX
13279 pic_mode=$pic_mode
13281 # What is the maximum length of a command?
13282 max_cmd_len=$lt_cv_sys_max_cmd_len
13284 # Does compiler simultaneously support -c and -o options?
13285 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13287 # Must we lock files when doing compilation ?
13288 need_locks=$lt_need_locks
13290 # Do we need the lib prefix for modules?
13291 need_lib_prefix=$need_lib_prefix
13293 # Do we need a version for libraries?
13294 need_version=$need_version
13296 # Whether dlopen is supported.
13297 dlopen_support=$enable_dlopen
13299 # Whether dlopen of programs is supported.
13300 dlopen_self=$enable_dlopen_self
13302 # Whether dlopen of statically linked programs is supported.
13303 dlopen_self_static=$enable_dlopen_self_static
13305 # Compiler flag to prevent dynamic linking.
13306 link_static_flag=$lt_lt_prog_compiler_static_CXX
13308 # Compiler flag to turn off builtin functions.
13309 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13311 # Compiler flag to allow reflexive dlopens.
13312 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13314 # Compiler flag to generate shared objects directly from archives.
13315 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13317 # Compiler flag to generate thread-safe objects.
13318 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13320 # Library versioning type.
13321 version_type=$version_type
13323 # Format of library name prefix.
13324 libname_spec=$lt_libname_spec
13326 # List of archive names. First name is the real one, the rest are links.
13327 # The last name is the one that the linker finds with -lNAME.
13328 library_names_spec=$lt_library_names_spec
13330 # The coded name of the library, if different from the real name.
13331 soname_spec=$lt_soname_spec
13333 # Commands used to build and install an old-style archive.
13334 RANLIB=$lt_RANLIB
13335 old_archive_cmds=$lt_old_archive_cmds_CXX
13336 old_postinstall_cmds=$lt_old_postinstall_cmds
13337 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13339 # Create an old-style archive from a shared archive.
13340 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13342 # Create a temporary old-style archive to link instead of a shared archive.
13343 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13345 # Commands used to build and install a shared archive.
13346 archive_cmds=$lt_archive_cmds_CXX
13347 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13348 postinstall_cmds=$lt_postinstall_cmds
13349 postuninstall_cmds=$lt_postuninstall_cmds
13351 # Commands used to build a loadable module (assumed same as above if empty)
13352 module_cmds=$lt_module_cmds_CXX
13353 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13355 # Commands to strip libraries.
13356 old_striplib=$lt_old_striplib
13357 striplib=$lt_striplib
13359 # Dependencies to place before the objects being linked to create a
13360 # shared library.
13361 predep_objects=$lt_predep_objects_CXX
13363 # Dependencies to place after the objects being linked to create a
13364 # shared library.
13365 postdep_objects=$lt_postdep_objects_CXX
13367 # Dependencies to place before the objects being linked to create a
13368 # shared library.
13369 predeps=$lt_predeps_CXX
13371 # Dependencies to place after the objects being linked to create a
13372 # shared library.
13373 postdeps=$lt_postdeps_CXX
13375 # The library search path used internally by the compiler when linking
13376 # a shared library.
13377 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13379 # Method to check whether dependent libraries are shared objects.
13380 deplibs_check_method=$lt_deplibs_check_method
13382 # Command to use when deplibs_check_method == file_magic.
13383 file_magic_cmd=$lt_file_magic_cmd
13385 # Flag that allows shared libraries with undefined symbols to be built.
13386 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13388 # Flag that forces no undefined symbols.
13389 no_undefined_flag=$lt_no_undefined_flag_CXX
13391 # Commands used to finish a libtool library installation in a directory.
13392 finish_cmds=$lt_finish_cmds
13394 # Same as above, but a single script fragment to be evaled but not shown.
13395 finish_eval=$lt_finish_eval
13397 # Take the output of nm and produce a listing of raw symbols and C names.
13398 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13400 # Transform the output of nm in a proper C declaration
13401 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13403 # Transform the output of nm in a C name address pair
13404 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13406 # This is the shared library runtime path variable.
13407 runpath_var=$runpath_var
13409 # This is the shared library path variable.
13410 shlibpath_var=$shlibpath_var
13412 # Is shlibpath searched before the hard-coded library search path?
13413 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13415 # How to hardcode a shared library path into an executable.
13416 hardcode_action=$hardcode_action_CXX
13418 # Whether we should hardcode library paths into libraries.
13419 hardcode_into_libs=$hardcode_into_libs
13421 # Flag to hardcode \$libdir into a binary during linking.
13422 # This must work even if \$libdir does not exist.
13423 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13425 # If ld is used when linking, flag to hardcode \$libdir into
13426 # a binary during linking. This must work even if \$libdir does
13427 # not exist.
13428 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13430 # Whether we need a single -rpath flag with a separated argument.
13431 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13433 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13434 # resulting binary.
13435 hardcode_direct=$hardcode_direct_CXX
13437 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13438 # resulting binary.
13439 hardcode_minus_L=$hardcode_minus_L_CXX
13441 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13442 # the resulting binary.
13443 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13445 # Set to yes if building a shared library automatically hardcodes DIR into the library
13446 # and all subsequent libraries and executables linked against it.
13447 hardcode_automatic=$hardcode_automatic_CXX
13449 # Variables whose values should be saved in libtool wrapper scripts and
13450 # restored at relink time.
13451 variables_saved_for_relink="$variables_saved_for_relink"
13453 # Whether libtool must link a program against all its dependency libraries.
13454 link_all_deplibs=$link_all_deplibs_CXX
13456 # Compile-time system search path for libraries
13457 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13459 # Run-time system search path for libraries
13460 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13462 # Fix the shell variable \$srcfile for the compiler.
13463 fix_srcfile_path="$fix_srcfile_path_CXX"
13465 # Set to yes if exported symbols are required.
13466 always_export_symbols=$always_export_symbols_CXX
13468 # The commands to list exported symbols.
13469 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13471 # The commands to extract the exported symbol list from a shared archive.
13472 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13474 # Symbols that should not be listed in the preloaded symbols.
13475 exclude_expsyms=$lt_exclude_expsyms_CXX
13477 # Symbols that must always be exported.
13478 include_expsyms=$lt_include_expsyms_CXX
13480 # ### END LIBTOOL TAG CONFIG: $tagname
13482 __EOF__
13485 else
13486 # If there is no Makefile yet, we rely on a make rule to execute
13487 # `config.status --recheck' to rerun these tests and create the
13488 # libtool script then.
13489 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13490 if test -f "$ltmain_in"; then
13491 test -f Makefile && make "$ltmain"
13496 ac_ext=c
13497 ac_cpp='$CPP $CPPFLAGS'
13498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13502 CC=$lt_save_CC
13503 LDCXX=$LD
13504 LD=$lt_save_LD
13505 GCC=$lt_save_GCC
13506 with_gnu_ldcxx=$with_gnu_ld
13507 with_gnu_ld=$lt_save_with_gnu_ld
13508 lt_cv_path_LDCXX=$lt_cv_path_LD
13509 lt_cv_path_LD=$lt_save_path_LD
13510 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13511 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13513 else
13514 tagname=""
13518 F77)
13519 if test -n "$F77" && test "X$F77" != "Xno"; then
13521 ac_ext=f
13522 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13523 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13524 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13527 archive_cmds_need_lc_F77=no
13528 allow_undefined_flag_F77=
13529 always_export_symbols_F77=no
13530 archive_expsym_cmds_F77=
13531 export_dynamic_flag_spec_F77=
13532 hardcode_direct_F77=no
13533 hardcode_libdir_flag_spec_F77=
13534 hardcode_libdir_flag_spec_ld_F77=
13535 hardcode_libdir_separator_F77=
13536 hardcode_minus_L_F77=no
13537 hardcode_automatic_F77=no
13538 module_cmds_F77=
13539 module_expsym_cmds_F77=
13540 link_all_deplibs_F77=unknown
13541 old_archive_cmds_F77=$old_archive_cmds
13542 no_undefined_flag_F77=
13543 whole_archive_flag_spec_F77=
13544 enable_shared_with_static_runtimes_F77=no
13546 # Source file extension for f77 test sources.
13547 ac_ext=f
13549 # Object file extension for compiled f77 test sources.
13550 objext=o
13551 objext_F77=$objext
13553 # Code to be used in simple compile tests
13554 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13556 # Code to be used in simple link tests
13557 lt_simple_link_test_code=" program t\n end\n"
13559 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13561 # If no C compiler was specified, use CC.
13562 LTCC=${LTCC-"$CC"}
13564 # Allow CC to be a program name with arguments.
13565 compiler=$CC
13568 # Allow CC to be a program name with arguments.
13569 lt_save_CC="$CC"
13570 CC=${F77-"f77"}
13571 compiler=$CC
13572 compiler_F77=$CC
13573 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13575 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13576 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13577 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13578 echo "${ECHO_T}$can_build_shared" >&6
13580 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13581 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13582 test "$can_build_shared" = "no" && enable_shared=no
13584 # On AIX, shared libraries and static libraries use the same namespace, and
13585 # are all built from PIC.
13586 case "$host_os" in
13587 aix3*)
13588 test "$enable_shared" = yes && enable_static=no
13589 if test -n "$RANLIB"; then
13590 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13591 postinstall_cmds='$RANLIB $lib'
13594 aix4* | aix5*)
13595 test "$enable_shared" = yes && enable_static=no
13597 esac
13598 echo "$as_me:$LINENO: result: $enable_shared" >&5
13599 echo "${ECHO_T}$enable_shared" >&6
13601 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13602 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13603 # Make sure either enable_shared or enable_static is yes.
13604 test "$enable_shared" = yes || enable_static=yes
13605 echo "$as_me:$LINENO: result: $enable_static" >&5
13606 echo "${ECHO_T}$enable_static" >&6
13608 test "$ld_shlibs_F77" = no && can_build_shared=no
13610 GCC_F77="$G77"
13611 LD_F77="$LD"
13613 lt_prog_compiler_wl_F77=
13614 lt_prog_compiler_pic_F77=
13615 lt_prog_compiler_static_F77=
13617 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13618 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13620 if test "$GCC" = yes; then
13621 lt_prog_compiler_wl_F77='-Wl,'
13622 lt_prog_compiler_static_F77='-static'
13624 case $host_os in
13625 aix*)
13626 # All AIX code is PIC.
13627 if test "$host_cpu" = ia64; then
13628 # AIX 5 now supports IA64 processor
13629 lt_prog_compiler_static_F77='-Bstatic'
13633 amigaos*)
13634 # FIXME: we need at least 68020 code to build shared libraries, but
13635 # adding the `-m68020' flag to GCC prevents building anything better,
13636 # like `-m68040'.
13637 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13640 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13641 # PIC is the default for these OSes.
13644 mingw* | pw32* | os2*)
13645 # This hack is so that the source file can tell whether it is being
13646 # built for inclusion in a dll (and should export symbols for example).
13647 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13650 darwin* | rhapsody*)
13651 # PIC is the default on this platform
13652 # Common symbols not allowed in MH_DYLIB files
13653 lt_prog_compiler_pic_F77='-fno-common'
13656 msdosdjgpp*)
13657 # Just because we use GCC doesn't mean we suddenly get shared libraries
13658 # on systems that don't support them.
13659 lt_prog_compiler_can_build_shared_F77=no
13660 enable_shared=no
13663 sysv4*MP*)
13664 if test -d /usr/nec; then
13665 lt_prog_compiler_pic_F77=-Kconform_pic
13669 hpux*)
13670 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13671 # not for PA HP-UX.
13672 case "$host_cpu" in
13673 hppa*64*|ia64*)
13674 # +Z the default
13677 lt_prog_compiler_pic_F77='-fPIC'
13679 esac
13683 lt_prog_compiler_pic_F77='-fPIC'
13685 esac
13686 else
13687 # PORTME Check for flag to pass linker flags through the system compiler.
13688 case $host_os in
13689 aix*)
13690 lt_prog_compiler_wl_F77='-Wl,'
13691 if test "$host_cpu" = ia64; then
13692 # AIX 5 now supports IA64 processor
13693 lt_prog_compiler_static_F77='-Bstatic'
13694 else
13695 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13698 darwin*)
13699 # PIC is the default on this platform
13700 # Common symbols not allowed in MH_DYLIB files
13701 case "$cc_basename" in
13702 xlc*)
13703 lt_prog_compiler_pic_F77='-qnocommon'
13704 lt_prog_compiler_wl_F77='-Wl,'
13706 esac
13709 mingw* | pw32* | os2*)
13710 # This hack is so that the source file can tell whether it is being
13711 # built for inclusion in a dll (and should export symbols for example).
13712 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13715 hpux9* | hpux10* | hpux11*)
13716 lt_prog_compiler_wl_F77='-Wl,'
13717 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13718 # not for PA HP-UX.
13719 case "$host_cpu" in
13720 hppa*64*|ia64*)
13721 # +Z the default
13724 lt_prog_compiler_pic_F77='+Z'
13726 esac
13727 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13728 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13731 irix5* | irix6* | nonstopux*)
13732 lt_prog_compiler_wl_F77='-Wl,'
13733 # PIC (with -KPIC) is the default.
13734 lt_prog_compiler_static_F77='-non_shared'
13737 newsos6)
13738 lt_prog_compiler_pic_F77='-KPIC'
13739 lt_prog_compiler_static_F77='-Bstatic'
13742 linux*)
13743 case $cc_basename in
13744 icc* | ecc*)
13745 lt_prog_compiler_wl_F77='-Wl,'
13746 lt_prog_compiler_pic_F77='-KPIC'
13747 lt_prog_compiler_static_F77='-static'
13749 pgcc | pgf77 | pgf90)
13750 # Portland Group compilers (*not* the Pentium gcc compiler,
13751 # which looks to be a dead project)
13752 lt_prog_compiler_wl_F77='-Wl,'
13753 lt_prog_compiler_pic_F77='-fpic'
13754 lt_prog_compiler_static_F77='-static'
13756 ccc*)
13757 lt_prog_compiler_wl_F77='-Wl,'
13758 # All Alpha code is PIC.
13759 lt_prog_compiler_static_F77='-non_shared'
13761 como)
13762 lt_prog_compiler_wl_F77='-lopt='
13764 esac
13767 osf3* | osf4* | osf5*)
13768 lt_prog_compiler_wl_F77='-Wl,'
13769 # All OSF/1 code is PIC.
13770 lt_prog_compiler_static_F77='-non_shared'
13773 sco3.2v5*)
13774 lt_prog_compiler_pic_F77='-Kpic'
13775 lt_prog_compiler_static_F77='-dn'
13778 solaris*)
13779 lt_prog_compiler_wl_F77='-Wl,'
13780 lt_prog_compiler_pic_F77='-KPIC'
13781 lt_prog_compiler_static_F77='-Bstatic'
13784 sunos4*)
13785 lt_prog_compiler_wl_F77='-Qoption ld '
13786 lt_prog_compiler_pic_F77='-PIC'
13787 lt_prog_compiler_static_F77='-Bstatic'
13790 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13791 lt_prog_compiler_wl_F77='-Wl,'
13792 lt_prog_compiler_pic_F77='-KPIC'
13793 lt_prog_compiler_static_F77='-Bstatic'
13796 sysv4*MP*)
13797 if test -d /usr/nec ;then
13798 lt_prog_compiler_pic_F77='-Kconform_pic'
13799 lt_prog_compiler_static_F77='-Bstatic'
13803 unicos*)
13804 lt_prog_compiler_wl_F77='-Wl,'
13805 lt_prog_compiler_can_build_shared_F77=no
13808 uts4*)
13809 lt_prog_compiler_pic_F77='-pic'
13810 lt_prog_compiler_static_F77='-Bstatic'
13814 lt_prog_compiler_can_build_shared_F77=no
13816 esac
13819 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13820 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13823 # Check to make sure the PIC flag actually works.
13825 if test -n "$lt_prog_compiler_pic_F77"; then
13827 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13828 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13829 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13830 echo $ECHO_N "(cached) $ECHO_C" >&6
13831 else
13832 lt_prog_compiler_pic_works_F77=no
13833 ac_outfile=conftest.$ac_objext
13834 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13835 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13836 # Insert the option either (1) after the last *FLAGS variable, or
13837 # (2) before a word containing "conftest.", or (3) at the end.
13838 # Note that $ac_compile itself does not contain backslashes and begins
13839 # with a dollar sign (not a hyphen), so the echo should work correctly.
13840 # The option is referenced via a variable to avoid confusing sed.
13841 lt_compile=`echo "$ac_compile" | $SED \
13842 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13843 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13844 -e 's:$: $lt_compiler_flag:'`
13845 (eval echo "\"\$as_me:13845: $lt_compile\"" >&5)
13846 (eval "$lt_compile" 2>conftest.err)
13847 ac_status=$?
13848 cat conftest.err >&5
13849 echo "$as_me:13849: \$? = $ac_status" >&5
13850 if (exit $ac_status) && test -s "$ac_outfile"; then
13851 # The compiler can only warn and ignore the option if not recognized
13852 # So say no if there are warnings
13853 if test ! -s conftest.err; then
13854 lt_prog_compiler_pic_works_F77=yes
13857 $rm conftest*
13860 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13861 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13863 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13864 case $lt_prog_compiler_pic_F77 in
13865 "" | " "*) ;;
13866 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13867 esac
13868 else
13869 lt_prog_compiler_pic_F77=
13870 lt_prog_compiler_can_build_shared_F77=no
13874 case "$host_os" in
13875 # For platforms which do not support PIC, -DPIC is meaningless:
13876 *djgpp*)
13877 lt_prog_compiler_pic_F77=
13880 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13882 esac
13884 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13885 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13886 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13887 echo $ECHO_N "(cached) $ECHO_C" >&6
13888 else
13889 lt_cv_prog_compiler_c_o_F77=no
13890 $rm -r conftest 2>/dev/null
13891 mkdir conftest
13892 cd conftest
13893 mkdir out
13894 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13896 lt_compiler_flag="-o out/conftest2.$ac_objext"
13897 # Insert the option either (1) after the last *FLAGS variable, or
13898 # (2) before a word containing "conftest.", or (3) at the end.
13899 # Note that $ac_compile itself does not contain backslashes and begins
13900 # with a dollar sign (not a hyphen), so the echo should work correctly.
13901 lt_compile=`echo "$ac_compile" | $SED \
13902 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13903 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13904 -e 's:$: $lt_compiler_flag:'`
13905 (eval echo "\"\$as_me:13905: $lt_compile\"" >&5)
13906 (eval "$lt_compile" 2>out/conftest.err)
13907 ac_status=$?
13908 cat out/conftest.err >&5
13909 echo "$as_me:13909: \$? = $ac_status" >&5
13910 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13911 then
13912 # The compiler can only warn and ignore the option if not recognized
13913 # So say no if there are warnings
13914 if test ! -s out/conftest.err; then
13915 lt_cv_prog_compiler_c_o_F77=yes
13918 chmod u+w .
13919 $rm conftest*
13920 # SGI C++ compiler will create directory out/ii_files/ for
13921 # template instantiation
13922 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13923 $rm out/* && rmdir out
13924 cd ..
13925 rmdir conftest
13926 $rm conftest*
13929 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13930 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13933 hard_links="nottested"
13934 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13935 # do not overwrite the value of need_locks provided by the user
13936 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13937 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13938 hard_links=yes
13939 $rm conftest*
13940 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13941 touch conftest.a
13942 ln conftest.a conftest.b 2>&5 || hard_links=no
13943 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13944 echo "$as_me:$LINENO: result: $hard_links" >&5
13945 echo "${ECHO_T}$hard_links" >&6
13946 if test "$hard_links" = no; then
13947 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13948 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13949 need_locks=warn
13951 else
13952 need_locks=no
13955 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13956 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13958 runpath_var=
13959 allow_undefined_flag_F77=
13960 enable_shared_with_static_runtimes_F77=no
13961 archive_cmds_F77=
13962 archive_expsym_cmds_F77=
13963 old_archive_From_new_cmds_F77=
13964 old_archive_from_expsyms_cmds_F77=
13965 export_dynamic_flag_spec_F77=
13966 whole_archive_flag_spec_F77=
13967 thread_safe_flag_spec_F77=
13968 hardcode_libdir_flag_spec_F77=
13969 hardcode_libdir_flag_spec_ld_F77=
13970 hardcode_libdir_separator_F77=
13971 hardcode_direct_F77=no
13972 hardcode_minus_L_F77=no
13973 hardcode_shlibpath_var_F77=unsupported
13974 link_all_deplibs_F77=unknown
13975 hardcode_automatic_F77=no
13976 module_cmds_F77=
13977 module_expsym_cmds_F77=
13978 always_export_symbols_F77=no
13979 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13980 # include_expsyms should be a list of space-separated symbols to be *always*
13981 # included in the symbol list
13982 include_expsyms_F77=
13983 # exclude_expsyms can be an extended regexp of symbols to exclude
13984 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13985 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13986 # as well as any symbol that contains `d'.
13987 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13988 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13989 # platforms (ab)use it in PIC code, but their linkers get confused if
13990 # the symbol is explicitly referenced. Since portable code cannot
13991 # rely on this symbol name, it's probably fine to never include it in
13992 # preloaded symbol tables.
13993 extract_expsyms_cmds=
13995 case $host_os in
13996 cygwin* | mingw* | pw32*)
13997 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13998 # When not using gcc, we currently assume that we are using
13999 # Microsoft Visual C++.
14000 if test "$GCC" != yes; then
14001 with_gnu_ld=no
14004 openbsd*)
14005 with_gnu_ld=no
14007 esac
14009 ld_shlibs_F77=yes
14010 if test "$with_gnu_ld" = yes; then
14011 # If archive_cmds runs LD, not CC, wlarc should be empty
14012 wlarc='${wl}'
14014 # See if GNU ld supports shared libraries.
14015 case $host_os in
14016 aix3* | aix4* | aix5*)
14017 # On AIX/PPC, the GNU linker is very broken
14018 if test "$host_cpu" != ia64; then
14019 ld_shlibs_F77=no
14020 cat <<EOF 1>&2
14022 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14023 *** to be unable to reliably create shared libraries on AIX.
14024 *** Therefore, libtool is disabling shared libraries support. If you
14025 *** really care for shared libraries, you may want to modify your PATH
14026 *** so that a non-GNU linker is found, and then restart.
14032 amigaos*)
14033 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)'
14034 hardcode_libdir_flag_spec_F77='-L$libdir'
14035 hardcode_minus_L_F77=yes
14037 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14038 # that the semantics of dynamic libraries on AmigaOS, at least up
14039 # to version 4, is to share data among multiple programs linked
14040 # with the same dynamic library. Since this doesn't match the
14041 # behavior of shared libraries on other platforms, we can't use
14042 # them.
14043 ld_shlibs_F77=no
14046 beos*)
14047 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14048 allow_undefined_flag_F77=unsupported
14049 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14050 # support --undefined. This deserves some investigation. FIXME
14051 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14052 else
14053 ld_shlibs_F77=no
14057 cygwin* | mingw* | pw32*)
14058 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14059 # as there is no search path for DLLs.
14060 hardcode_libdir_flag_spec_F77='-L$libdir'
14061 allow_undefined_flag_F77=unsupported
14062 always_export_symbols_F77=no
14063 enable_shared_with_static_runtimes_F77=yes
14064 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14066 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14067 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14068 # If the export-symbols file already is a .def file (1st line
14069 # is EXPORTS), use it as is; otherwise, prepend...
14070 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14071 cp $export_symbols $output_objdir/$soname.def;
14072 else
14073 echo EXPORTS > $output_objdir/$soname.def;
14074 cat $export_symbols >> $output_objdir/$soname.def;
14076 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14077 else
14078 ld_shlibs_F77=no
14082 netbsd*)
14083 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14084 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14085 wlarc=
14086 else
14087 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14088 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14092 solaris* | sysv5*)
14093 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14094 ld_shlibs_F77=no
14095 cat <<EOF 1>&2
14097 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14098 *** create shared libraries on Solaris systems. Therefore, libtool
14099 *** is disabling shared libraries support. We urge you to upgrade GNU
14100 *** binutils to release 2.9.1 or newer. Another option is to modify
14101 *** your PATH or compiler configuration so that the native linker is
14102 *** used, and then restart.
14105 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14106 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14107 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14108 else
14109 ld_shlibs_F77=no
14113 sunos4*)
14114 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14115 wlarc=
14116 hardcode_direct_F77=yes
14117 hardcode_shlibpath_var_F77=no
14120 linux*)
14121 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14122 tmp_addflag=
14123 case $CC,$host_cpu in
14124 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
14125 tmp_addflag=' -fpic' ;;
14126 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14127 tmp_addflag=' -i_dynamic' ;;
14128 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14129 tmp_addflag=' -i_dynamic -nofor_main' ;;
14130 ifc* | ifort*) # Intel Fortran compiler
14131 tmp_addflag=' -nofor_main' ;;
14132 esac
14133 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14134 supports_anon_versioning=no
14135 case `$LD -v 2>/dev/null` in
14136 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14137 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14138 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14139 *\ 2.11.*) ;; # other 2.11 versions
14140 *) supports_anon_versioning=yes ;;
14141 esac
14142 if test $supports_anon_versioning = yes; then
14143 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14144 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14145 $echo "local: *; };" >> $output_objdir/$libname.ver~
14146 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14147 else
14148 archive_expsym_cmds_F77=$archive_cmds_F77
14150 else
14151 ld_shlibs_F77=no
14156 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14157 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14158 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14159 else
14160 ld_shlibs_F77=no
14163 esac
14165 if test "$ld_shlibs_F77" = yes; then
14166 runpath_var=LD_RUN_PATH
14167 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14168 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14169 # ancient GNU ld didn't support --whole-archive et. al.
14170 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14171 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14172 else
14173 whole_archive_flag_spec_F77=
14176 else
14177 # PORTME fill in a description of your system's linker (not GNU ld)
14178 case $host_os in
14179 aix3*)
14180 allow_undefined_flag_F77=unsupported
14181 always_export_symbols_F77=yes
14182 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'
14183 # Note: this linker hardcodes the directories in LIBPATH if there
14184 # are no directories specified by -L.
14185 hardcode_minus_L_F77=yes
14186 if test "$GCC" = yes && test -z "$link_static_flag"; then
14187 # Neither direct hardcoding nor static linking is supported with a
14188 # broken collect2.
14189 hardcode_direct_F77=unsupported
14193 aix4* | aix5*)
14194 if test "$host_cpu" = ia64; then
14195 # On IA64, the linker does run time linking by default, so we don't
14196 # have to do anything special.
14197 aix_use_runtimelinking=no
14198 exp_sym_flag='-Bexport'
14199 no_entry_flag=""
14200 else
14201 # If we're using GNU nm, then we don't want the "-C" option.
14202 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14203 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14204 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'
14205 else
14206 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'
14208 aix_use_runtimelinking=no
14210 # Test if we are trying to use run time linking or normal
14211 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14212 # need to do runtime linking.
14213 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14214 for ld_flag in $LDFLAGS; do
14215 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14216 aix_use_runtimelinking=yes
14217 break
14219 done
14220 esac
14222 exp_sym_flag='-bexport'
14223 no_entry_flag='-bnoentry'
14226 # When large executables or shared objects are built, AIX ld can
14227 # have problems creating the table of contents. If linking a library
14228 # or program results in "error TOC overflow" add -mminimal-toc to
14229 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14230 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14232 archive_cmds_F77=''
14233 hardcode_direct_F77=yes
14234 hardcode_libdir_separator_F77=':'
14235 link_all_deplibs_F77=yes
14237 if test "$GCC" = yes; then
14238 case $host_os in aix4.[012]|aix4.[012].*)
14239 # We only want to do this on AIX 4.2 and lower, the check
14240 # below for broken collect2 doesn't work under 4.3+
14241 collect2name=`${CC} -print-prog-name=collect2`
14242 if test -f "$collect2name" && \
14243 strings "$collect2name" | grep resolve_lib_name >/dev/null
14244 then
14245 # We have reworked collect2
14246 hardcode_direct_F77=yes
14247 else
14248 # We have old collect2
14249 hardcode_direct_F77=unsupported
14250 # It fails to find uninstalled libraries when the uninstalled
14251 # path is not listed in the libpath. Setting hardcode_minus_L
14252 # to unsupported forces relinking
14253 hardcode_minus_L_F77=yes
14254 hardcode_libdir_flag_spec_F77='-L$libdir'
14255 hardcode_libdir_separator_F77=
14257 esac
14258 shared_flag='-shared'
14259 if test "$aix_use_runtimelinking" = yes; then
14260 shared_flag="$shared_flag "'${wl}-G'
14262 else
14263 # not using gcc
14264 if test "$host_cpu" = ia64; then
14265 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14266 # chokes on -Wl,-G. The following line is correct:
14267 shared_flag='-G'
14268 else
14269 if test "$aix_use_runtimelinking" = yes; then
14270 shared_flag='${wl}-G'
14271 else
14272 shared_flag='${wl}-bM:SRE'
14277 # It seems that -bexpall does not export symbols beginning with
14278 # underscore (_), so it is better to generate a list of symbols to export.
14279 always_export_symbols_F77=yes
14280 if test "$aix_use_runtimelinking" = yes; then
14281 # Warning - without using the other runtime loading flags (-brtl),
14282 # -berok will link without error, but may produce a broken library.
14283 allow_undefined_flag_F77='-berok'
14284 # Determine the default libpath from the value encoded in an empty executable.
14285 cat >conftest.$ac_ext <<_ACEOF
14286 program main
14289 _ACEOF
14290 rm -f conftest.$ac_objext conftest$ac_exeext
14291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14292 (eval $ac_link) 2>conftest.er1
14293 ac_status=$?
14294 grep -v '^ *+' conftest.er1 >conftest.err
14295 rm -f conftest.er1
14296 cat conftest.err >&5
14297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298 (exit $ac_status); } &&
14299 { ac_try='test -z "$ac_f77_werror_flag"
14300 || test ! -s conftest.err'
14301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14302 (eval $ac_try) 2>&5
14303 ac_status=$?
14304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305 (exit $ac_status); }; } &&
14306 { ac_try='test -s conftest$ac_exeext'
14307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14308 (eval $ac_try) 2>&5
14309 ac_status=$?
14310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311 (exit $ac_status); }; }; then
14313 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14315 # Check for a 64-bit object if we didn't find anything.
14316 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; }
14317 }'`; fi
14318 else
14319 echo "$as_me: failed program was:" >&5
14320 sed 's/^/| /' conftest.$ac_ext >&5
14323 rm -f conftest.err conftest.$ac_objext \
14324 conftest$ac_exeext conftest.$ac_ext
14325 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14327 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14328 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"
14329 else
14330 if test "$host_cpu" = ia64; then
14331 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14332 allow_undefined_flag_F77="-z nodefs"
14333 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"
14334 else
14335 # Determine the default libpath from the value encoded in an empty executable.
14336 cat >conftest.$ac_ext <<_ACEOF
14337 program main
14340 _ACEOF
14341 rm -f conftest.$ac_objext conftest$ac_exeext
14342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14343 (eval $ac_link) 2>conftest.er1
14344 ac_status=$?
14345 grep -v '^ *+' conftest.er1 >conftest.err
14346 rm -f conftest.er1
14347 cat conftest.err >&5
14348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349 (exit $ac_status); } &&
14350 { ac_try='test -z "$ac_f77_werror_flag"
14351 || test ! -s conftest.err'
14352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14353 (eval $ac_try) 2>&5
14354 ac_status=$?
14355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356 (exit $ac_status); }; } &&
14357 { ac_try='test -s conftest$ac_exeext'
14358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14359 (eval $ac_try) 2>&5
14360 ac_status=$?
14361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362 (exit $ac_status); }; }; then
14364 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14366 # Check for a 64-bit object if we didn't find anything.
14367 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; }
14368 }'`; fi
14369 else
14370 echo "$as_me: failed program was:" >&5
14371 sed 's/^/| /' conftest.$ac_ext >&5
14374 rm -f conftest.err conftest.$ac_objext \
14375 conftest$ac_exeext conftest.$ac_ext
14376 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14378 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14379 # Warning - without using the other run time loading flags,
14380 # -berok will link without error, but may produce a broken library.
14381 no_undefined_flag_F77=' ${wl}-bernotok'
14382 allow_undefined_flag_F77=' ${wl}-berok'
14383 # -bexpall does not export symbols beginning with underscore (_)
14384 always_export_symbols_F77=yes
14385 # Exported symbols can be pulled into shared objects from archives
14386 whole_archive_flag_spec_F77=' '
14387 archive_cmds_need_lc_F77=yes
14388 # This is similar to how AIX traditionally builds it's shared libraries.
14389 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'
14394 amigaos*)
14395 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)'
14396 hardcode_libdir_flag_spec_F77='-L$libdir'
14397 hardcode_minus_L_F77=yes
14398 # see comment about different semantics on the GNU ld section
14399 ld_shlibs_F77=no
14402 bsdi[45]*)
14403 export_dynamic_flag_spec_F77=-rdynamic
14406 cygwin* | mingw* | pw32*)
14407 # When not using gcc, we currently assume that we are using
14408 # Microsoft Visual C++.
14409 # hardcode_libdir_flag_spec is actually meaningless, as there is
14410 # no search path for DLLs.
14411 hardcode_libdir_flag_spec_F77=' '
14412 allow_undefined_flag_F77=unsupported
14413 # Tell ltmain to make .lib files, not .a files.
14414 libext=lib
14415 # Tell ltmain to make .dll files, not .so files.
14416 shrext_cmds=".dll"
14417 # FIXME: Setting linknames here is a bad hack.
14418 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14419 # The linker will automatically build a .lib file if we build a DLL.
14420 old_archive_From_new_cmds_F77='true'
14421 # FIXME: Should let the user specify the lib program.
14422 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14423 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14424 enable_shared_with_static_runtimes_F77=yes
14427 darwin* | rhapsody*)
14428 case "$host_os" in
14429 rhapsody* | darwin1.[012])
14430 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14432 *) # Darwin 1.3 on
14433 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14434 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14435 else
14436 case ${MACOSX_DEPLOYMENT_TARGET} in
14437 10.[012])
14438 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14440 10.*)
14441 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14443 esac
14446 esac
14447 archive_cmds_need_lc_F77=no
14448 hardcode_direct_F77=no
14449 hardcode_automatic_F77=yes
14450 hardcode_shlibpath_var_F77=unsupported
14451 whole_archive_flag_spec_F77=''
14452 link_all_deplibs_F77=yes
14453 if test "$GCC" = yes ; then
14454 output_verbose_link_cmd='echo'
14455 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14456 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14457 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14458 archive_expsym_cmds_F77='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}'
14459 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}'
14460 else
14461 case "$cc_basename" in
14462 xlc*)
14463 output_verbose_link_cmd='echo'
14464 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14465 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14466 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14467 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14468 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}'
14471 ld_shlibs_F77=no
14473 esac
14477 dgux*)
14478 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14479 hardcode_libdir_flag_spec_F77='-L$libdir'
14480 hardcode_shlibpath_var_F77=no
14483 freebsd1*)
14484 ld_shlibs_F77=no
14487 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14488 # support. Future versions do this automatically, but an explicit c++rt0.o
14489 # does not break anything, and helps significantly (at the cost of a little
14490 # extra space).
14491 freebsd2.2*)
14492 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14493 hardcode_libdir_flag_spec_F77='-R$libdir'
14494 hardcode_direct_F77=yes
14495 hardcode_shlibpath_var_F77=no
14498 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14499 freebsd2*)
14500 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14501 hardcode_direct_F77=yes
14502 hardcode_minus_L_F77=yes
14503 hardcode_shlibpath_var_F77=no
14506 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14507 freebsd* | kfreebsd*-gnu | dragonfly*)
14508 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14509 hardcode_libdir_flag_spec_F77='-R$libdir'
14510 hardcode_direct_F77=yes
14511 hardcode_shlibpath_var_F77=no
14514 hpux9*)
14515 if test "$GCC" = yes; then
14516 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'
14517 else
14518 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'
14520 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14521 hardcode_libdir_separator_F77=:
14522 hardcode_direct_F77=yes
14524 # hardcode_minus_L: Not really in the search PATH,
14525 # but as the default location of the library.
14526 hardcode_minus_L_F77=yes
14527 export_dynamic_flag_spec_F77='${wl}-E'
14530 hpux10* | hpux11*)
14531 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14532 case "$host_cpu" in
14533 hppa*64*|ia64*)
14534 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14537 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14539 esac
14540 else
14541 case "$host_cpu" in
14542 hppa*64*|ia64*)
14543 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14546 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14548 esac
14550 if test "$with_gnu_ld" = no; then
14551 case "$host_cpu" in
14552 hppa*64*)
14553 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14554 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14555 hardcode_libdir_separator_F77=:
14556 hardcode_direct_F77=no
14557 hardcode_shlibpath_var_F77=no
14559 ia64*)
14560 hardcode_libdir_flag_spec_F77='-L$libdir'
14561 hardcode_direct_F77=no
14562 hardcode_shlibpath_var_F77=no
14564 # hardcode_minus_L: Not really in the search PATH,
14565 # but as the default location of the library.
14566 hardcode_minus_L_F77=yes
14569 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14570 hardcode_libdir_separator_F77=:
14571 hardcode_direct_F77=yes
14572 export_dynamic_flag_spec_F77='${wl}-E'
14574 # hardcode_minus_L: Not really in the search PATH,
14575 # but as the default location of the library.
14576 hardcode_minus_L_F77=yes
14578 esac
14582 irix5* | irix6* | nonstopux*)
14583 if test "$GCC" = yes; then
14584 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'
14585 else
14586 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'
14587 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14589 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14590 hardcode_libdir_separator_F77=:
14591 link_all_deplibs_F77=yes
14594 netbsd*)
14595 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14596 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14597 else
14598 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14600 hardcode_libdir_flag_spec_F77='-R$libdir'
14601 hardcode_direct_F77=yes
14602 hardcode_shlibpath_var_F77=no
14605 newsos6)
14606 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14607 hardcode_direct_F77=yes
14608 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14609 hardcode_libdir_separator_F77=:
14610 hardcode_shlibpath_var_F77=no
14613 openbsd*)
14614 hardcode_direct_F77=yes
14615 hardcode_shlibpath_var_F77=no
14616 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14617 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14618 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14619 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14620 export_dynamic_flag_spec_F77='${wl}-E'
14621 else
14622 case $host_os in
14623 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14624 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14625 hardcode_libdir_flag_spec_F77='-R$libdir'
14628 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14629 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14631 esac
14635 os2*)
14636 hardcode_libdir_flag_spec_F77='-L$libdir'
14637 hardcode_minus_L_F77=yes
14638 allow_undefined_flag_F77=unsupported
14639 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'
14640 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14643 osf3*)
14644 if test "$GCC" = yes; then
14645 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14646 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'
14647 else
14648 allow_undefined_flag_F77=' -expect_unresolved \*'
14649 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'
14651 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14652 hardcode_libdir_separator_F77=:
14655 osf4* | osf5*) # as osf3* with the addition of -msym flag
14656 if test "$GCC" = yes; then
14657 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14658 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'
14659 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14660 else
14661 allow_undefined_flag_F77=' -expect_unresolved \*'
14662 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'
14663 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~
14664 $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'
14666 # Both c and cxx compiler support -rpath directly
14667 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14669 hardcode_libdir_separator_F77=:
14672 sco3.2v5*)
14673 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14674 hardcode_shlibpath_var_F77=no
14675 export_dynamic_flag_spec_F77='${wl}-Bexport'
14676 runpath_var=LD_RUN_PATH
14677 hardcode_runpath_var=yes
14680 solaris*)
14681 no_undefined_flag_F77=' -z text'
14682 if test "$GCC" = yes; then
14683 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14684 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14685 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14686 else
14687 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14688 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14689 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14691 hardcode_libdir_flag_spec_F77='-R$libdir'
14692 hardcode_shlibpath_var_F77=no
14693 case $host_os in
14694 solaris2.[0-5] | solaris2.[0-5].*) ;;
14695 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14696 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
14697 esac
14698 link_all_deplibs_F77=yes
14701 sunos4*)
14702 if test "x$host_vendor" = xsequent; then
14703 # Use $CC to link under sequent, because it throws in some extra .o
14704 # files that make .init and .fini sections work.
14705 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14706 else
14707 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14709 hardcode_libdir_flag_spec_F77='-L$libdir'
14710 hardcode_direct_F77=yes
14711 hardcode_minus_L_F77=yes
14712 hardcode_shlibpath_var_F77=no
14715 sysv4)
14716 case $host_vendor in
14717 sni)
14718 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14719 hardcode_direct_F77=yes # is this really true???
14721 siemens)
14722 ## LD is ld it makes a PLAMLIB
14723 ## CC just makes a GrossModule.
14724 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14725 reload_cmds_F77='$CC -r -o $output$reload_objs'
14726 hardcode_direct_F77=no
14728 motorola)
14729 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14730 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14732 esac
14733 runpath_var='LD_RUN_PATH'
14734 hardcode_shlibpath_var_F77=no
14737 sysv4.3*)
14738 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14739 hardcode_shlibpath_var_F77=no
14740 export_dynamic_flag_spec_F77='-Bexport'
14743 sysv4*MP*)
14744 if test -d /usr/nec; then
14745 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14746 hardcode_shlibpath_var_F77=no
14747 runpath_var=LD_RUN_PATH
14748 hardcode_runpath_var=yes
14749 ld_shlibs_F77=yes
14753 sysv4.2uw2*)
14754 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14755 hardcode_direct_F77=yes
14756 hardcode_minus_L_F77=no
14757 hardcode_shlibpath_var_F77=no
14758 hardcode_runpath_var=yes
14759 runpath_var=LD_RUN_PATH
14762 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14763 no_undefined_flag_F77='${wl}-z ${wl}text'
14764 if test "$GCC" = yes; then
14765 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14766 else
14767 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14769 runpath_var='LD_RUN_PATH'
14770 hardcode_shlibpath_var_F77=no
14773 sysv5*)
14774 no_undefined_flag_F77=' -z text'
14775 # $CC -shared without GNU ld will not create a library from C++
14776 # object files and a static libstdc++, better avoid it by now
14777 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14778 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14779 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14780 hardcode_libdir_flag_spec_F77=
14781 hardcode_shlibpath_var_F77=no
14782 runpath_var='LD_RUN_PATH'
14785 uts4*)
14786 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14787 hardcode_libdir_flag_spec_F77='-L$libdir'
14788 hardcode_shlibpath_var_F77=no
14792 ld_shlibs_F77=no
14794 esac
14797 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14798 echo "${ECHO_T}$ld_shlibs_F77" >&6
14799 test "$ld_shlibs_F77" = no && can_build_shared=no
14801 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14802 if test "$GCC" = yes; then
14803 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14807 # Do we need to explicitly link libc?
14809 case "x$archive_cmds_need_lc_F77" in
14810 x|xyes)
14811 # Assume -lc should be added
14812 archive_cmds_need_lc_F77=yes
14814 if test "$enable_shared" = yes && test "$GCC" = yes; then
14815 case $archive_cmds_F77 in
14816 *'~'*)
14817 # FIXME: we may have to deal with multi-command sequences.
14819 '$CC '*)
14820 # Test whether the compiler implicitly links with -lc since on some
14821 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14822 # to ld, don't add -lc before -lgcc.
14823 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14824 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14825 $rm conftest*
14826 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14829 (eval $ac_compile) 2>&5
14830 ac_status=$?
14831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832 (exit $ac_status); } 2>conftest.err; then
14833 soname=conftest
14834 lib=conftest
14835 libobjs=conftest.$ac_objext
14836 deplibs=
14837 wl=$lt_prog_compiler_wl_F77
14838 compiler_flags=-v
14839 linker_flags=-v
14840 verstring=
14841 output_objdir=.
14842 libname=conftest
14843 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14844 allow_undefined_flag_F77=
14845 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14846 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14847 ac_status=$?
14848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849 (exit $ac_status); }
14850 then
14851 archive_cmds_need_lc_F77=no
14852 else
14853 archive_cmds_need_lc_F77=yes
14855 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14856 else
14857 cat conftest.err 1>&5
14859 $rm conftest*
14860 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14861 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14863 esac
14866 esac
14868 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14869 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14870 library_names_spec=
14871 libname_spec='lib$name'
14872 soname_spec=
14873 shrext_cmds=".so"
14874 postinstall_cmds=
14875 postuninstall_cmds=
14876 finish_cmds=
14877 finish_eval=
14878 shlibpath_var=
14879 shlibpath_overrides_runpath=unknown
14880 version_type=none
14881 dynamic_linker="$host_os ld.so"
14882 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14883 if test "$GCC" = yes; then
14884 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14885 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14886 # if the path contains ";" then we assume it to be the separator
14887 # otherwise default to the standard path separator (i.e. ":") - it is
14888 # assumed that no part of a normal pathname contains ";" but that should
14889 # okay in the real world where ";" in dirpaths is itself problematic.
14890 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14891 else
14892 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14894 else
14895 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14897 need_lib_prefix=unknown
14898 hardcode_into_libs=no
14900 # when you set need_version to no, make sure it does not cause -set_version
14901 # flags to be left without arguments
14902 need_version=unknown
14904 case $host_os in
14905 aix3*)
14906 version_type=linux
14907 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14908 shlibpath_var=LIBPATH
14910 # AIX 3 has no versioning support, so we append a major version to the name.
14911 soname_spec='${libname}${release}${shared_ext}$major'
14914 aix4* | aix5*)
14915 version_type=linux
14916 need_lib_prefix=no
14917 need_version=no
14918 hardcode_into_libs=yes
14919 if test "$host_cpu" = ia64; then
14920 # AIX 5 supports IA64
14921 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14922 shlibpath_var=LD_LIBRARY_PATH
14923 else
14924 # With GCC up to 2.95.x, collect2 would create an import file
14925 # for dependence libraries. The import file would start with
14926 # the line `#! .'. This would cause the generated library to
14927 # depend on `.', always an invalid library. This was fixed in
14928 # development snapshots of GCC prior to 3.0.
14929 case $host_os in
14930 aix4 | aix4.[01] | aix4.[01].*)
14931 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14932 echo ' yes '
14933 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14935 else
14936 can_build_shared=no
14939 esac
14940 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14941 # soname into executable. Probably we can add versioning support to
14942 # collect2, so additional links can be useful in future.
14943 if test "$aix_use_runtimelinking" = yes; then
14944 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14945 # instead of lib<name>.a to let people know that these are not
14946 # typical AIX shared libraries.
14947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14948 else
14949 # We preserve .a as extension for shared libraries through AIX4.2
14950 # and later when we are not doing run time linking.
14951 library_names_spec='${libname}${release}.a $libname.a'
14952 soname_spec='${libname}${release}${shared_ext}$major'
14954 shlibpath_var=LIBPATH
14958 amigaos*)
14959 library_names_spec='$libname.ixlibrary $libname.a'
14960 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14961 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'
14964 beos*)
14965 library_names_spec='${libname}${shared_ext}'
14966 dynamic_linker="$host_os ld.so"
14967 shlibpath_var=LIBRARY_PATH
14970 bsdi[45]*)
14971 version_type=linux
14972 need_version=no
14973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14974 soname_spec='${libname}${release}${shared_ext}$major'
14975 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14976 shlibpath_var=LD_LIBRARY_PATH
14977 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14978 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14979 # the default ld.so.conf also contains /usr/contrib/lib and
14980 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14981 # libtool to hard-code these into programs
14984 cygwin* | mingw* | pw32*)
14985 version_type=windows
14986 shrext_cmds=".dll"
14987 need_version=no
14988 need_lib_prefix=no
14990 case $GCC,$host_os in
14991 yes,cygwin* | yes,mingw* | yes,pw32*)
14992 library_names_spec='$libname.dll.a'
14993 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14994 postinstall_cmds='base_file=`basename \${file}`~
14995 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14996 dldir=$destdir/`dirname \$dlpath`~
14997 test -d \$dldir || mkdir -p \$dldir~
14998 $install_prog $dir/$dlname \$dldir/$dlname'
14999 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15000 dlpath=$dir/\$dldll~
15001 $rm \$dlpath'
15002 shlibpath_overrides_runpath=yes
15004 case $host_os in
15005 cygwin*)
15006 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15007 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15008 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15010 mingw*)
15011 # MinGW DLLs use traditional 'lib' prefix
15012 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15013 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15014 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15015 # It is most probably a Windows format PATH printed by
15016 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15017 # path with ; separators, and with drive letters. We can handle the
15018 # drive letters (cygwin fileutils understands them), so leave them,
15019 # especially as we might pass files found there to a mingw objdump,
15020 # which wouldn't understand a cygwinified path. Ahh.
15021 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15022 else
15023 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15026 pw32*)
15027 # pw32 DLLs use 'pw' prefix rather than 'lib'
15028 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15030 esac
15034 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15036 esac
15037 dynamic_linker='Win32 ld.exe'
15038 # FIXME: first we should search . and the directory the executable is in
15039 shlibpath_var=PATH
15042 darwin* | rhapsody*)
15043 dynamic_linker="$host_os dyld"
15044 version_type=darwin
15045 need_lib_prefix=no
15046 need_version=no
15047 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15048 soname_spec='${libname}${release}${major}$shared_ext'
15049 shlibpath_overrides_runpath=yes
15050 shlibpath_var=DYLD_LIBRARY_PATH
15051 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15052 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15053 if test "$GCC" = yes; then
15054 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"`
15055 else
15056 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15058 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15061 dgux*)
15062 version_type=linux
15063 need_lib_prefix=no
15064 need_version=no
15065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15066 soname_spec='${libname}${release}${shared_ext}$major'
15067 shlibpath_var=LD_LIBRARY_PATH
15070 freebsd1*)
15071 dynamic_linker=no
15074 kfreebsd*-gnu)
15075 version_type=linux
15076 need_lib_prefix=no
15077 need_version=no
15078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15079 soname_spec='${libname}${release}${shared_ext}$major'
15080 shlibpath_var=LD_LIBRARY_PATH
15081 shlibpath_overrides_runpath=no
15082 hardcode_into_libs=yes
15083 dynamic_linker='GNU ld.so'
15086 freebsd* | dragonfly*)
15087 # DragonFly does not have aout. When/if they implement a new
15088 # versioning mechanism, adjust this.
15089 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15090 version_type=freebsd-$objformat
15091 case $version_type in
15092 freebsd-elf*)
15093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15094 need_version=no
15095 need_lib_prefix=no
15097 freebsd-*)
15098 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15099 need_version=yes
15101 esac
15102 shlibpath_var=LD_LIBRARY_PATH
15103 case $host_os in
15104 freebsd2*)
15105 shlibpath_overrides_runpath=yes
15107 freebsd3.[01]* | freebsdelf3.[01]*)
15108 shlibpath_overrides_runpath=yes
15109 hardcode_into_libs=yes
15111 *) # from 3.2 on
15112 shlibpath_overrides_runpath=no
15113 hardcode_into_libs=yes
15115 esac
15118 gnu*)
15119 version_type=linux
15120 need_lib_prefix=no
15121 need_version=no
15122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15123 soname_spec='${libname}${release}${shared_ext}$major'
15124 shlibpath_var=LD_LIBRARY_PATH
15125 hardcode_into_libs=yes
15128 hpux9* | hpux10* | hpux11*)
15129 # Give a soname corresponding to the major version so that dld.sl refuses to
15130 # link against other versions.
15131 version_type=sunos
15132 need_lib_prefix=no
15133 need_version=no
15134 case "$host_cpu" in
15135 ia64*)
15136 shrext_cmds='.so'
15137 hardcode_into_libs=yes
15138 dynamic_linker="$host_os dld.so"
15139 shlibpath_var=LD_LIBRARY_PATH
15140 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15142 soname_spec='${libname}${release}${shared_ext}$major'
15143 if test "X$HPUX_IA64_MODE" = X32; then
15144 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15145 else
15146 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15148 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15150 hppa*64*)
15151 shrext_cmds='.sl'
15152 hardcode_into_libs=yes
15153 dynamic_linker="$host_os dld.sl"
15154 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15155 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15157 soname_spec='${libname}${release}${shared_ext}$major'
15158 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15159 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15162 shrext_cmds='.sl'
15163 dynamic_linker="$host_os dld.sl"
15164 shlibpath_var=SHLIB_PATH
15165 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15167 soname_spec='${libname}${release}${shared_ext}$major'
15169 esac
15170 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15171 postinstall_cmds='chmod 555 $lib'
15174 irix5* | irix6* | nonstopux*)
15175 case $host_os in
15176 nonstopux*) version_type=nonstopux ;;
15178 if test "$lt_cv_prog_gnu_ld" = yes; then
15179 version_type=linux
15180 else
15181 version_type=irix
15182 fi ;;
15183 esac
15184 need_lib_prefix=no
15185 need_version=no
15186 soname_spec='${libname}${release}${shared_ext}$major'
15187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15188 case $host_os in
15189 irix5* | nonstopux*)
15190 libsuff= shlibsuff=
15193 case $LD in # libtool.m4 will add one of these switches to LD
15194 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15195 libsuff= shlibsuff= libmagic=32-bit;;
15196 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15197 libsuff=32 shlibsuff=N32 libmagic=N32;;
15198 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15199 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15200 *) libsuff= shlibsuff= libmagic=never-match;;
15201 esac
15203 esac
15204 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15205 shlibpath_overrides_runpath=no
15206 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15207 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15208 hardcode_into_libs=yes
15211 # No shared lib support for Linux oldld, aout, or coff.
15212 linux*oldld* | linux*aout* | linux*coff*)
15213 dynamic_linker=no
15216 # This must be Linux ELF.
15217 linux*)
15218 version_type=linux
15219 need_lib_prefix=no
15220 need_version=no
15221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15222 soname_spec='${libname}${release}${shared_ext}$major'
15223 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15224 shlibpath_var=LD_LIBRARY_PATH
15225 shlibpath_overrides_runpath=no
15226 # This implies no fast_install, which is unacceptable.
15227 # Some rework will be needed to allow for fast_install
15228 # before this can be enabled.
15229 hardcode_into_libs=yes
15231 # Append ld.so.conf contents to the search path
15232 if test -f /etc/ld.so.conf; then
15233 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15234 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15237 # We used to test for /lib/ld.so.1 and disable shared libraries on
15238 # powerpc, because MkLinux only supported shared libraries with the
15239 # GNU dynamic linker. Since this was broken with cross compilers,
15240 # most powerpc-linux boxes support dynamic linking these days and
15241 # people can always --disable-shared, the test was removed, and we
15242 # assume the GNU/Linux dynamic linker is in use.
15243 dynamic_linker='GNU/Linux ld.so'
15246 knetbsd*-gnu)
15247 version_type=linux
15248 need_lib_prefix=no
15249 need_version=no
15250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15251 soname_spec='${libname}${release}${shared_ext}$major'
15252 shlibpath_var=LD_LIBRARY_PATH
15253 shlibpath_overrides_runpath=no
15254 hardcode_into_libs=yes
15255 dynamic_linker='GNU ld.so'
15258 netbsd*)
15259 version_type=sunos
15260 need_lib_prefix=no
15261 need_version=no
15262 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15264 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15265 dynamic_linker='NetBSD (a.out) ld.so'
15266 else
15267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15268 soname_spec='${libname}${release}${shared_ext}$major'
15269 dynamic_linker='NetBSD ld.elf_so'
15271 shlibpath_var=LD_LIBRARY_PATH
15272 shlibpath_overrides_runpath=yes
15273 hardcode_into_libs=yes
15276 newsos6)
15277 version_type=linux
15278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15279 shlibpath_var=LD_LIBRARY_PATH
15280 shlibpath_overrides_runpath=yes
15283 nto-qnx*)
15284 version_type=linux
15285 need_lib_prefix=no
15286 need_version=no
15287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15288 soname_spec='${libname}${release}${shared_ext}$major'
15289 shlibpath_var=LD_LIBRARY_PATH
15290 shlibpath_overrides_runpath=yes
15293 openbsd*)
15294 version_type=sunos
15295 need_lib_prefix=no
15296 need_version=no
15297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15298 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15299 shlibpath_var=LD_LIBRARY_PATH
15300 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15301 case $host_os in
15302 openbsd2.[89] | openbsd2.[89].*)
15303 shlibpath_overrides_runpath=no
15306 shlibpath_overrides_runpath=yes
15308 esac
15309 else
15310 shlibpath_overrides_runpath=yes
15314 os2*)
15315 libname_spec='$name'
15316 shrext_cmds=".dll"
15317 need_lib_prefix=no
15318 library_names_spec='$libname${shared_ext} $libname.a'
15319 dynamic_linker='OS/2 ld.exe'
15320 shlibpath_var=LIBPATH
15323 osf3* | osf4* | osf5*)
15324 version_type=osf
15325 need_lib_prefix=no
15326 need_version=no
15327 soname_spec='${libname}${release}${shared_ext}$major'
15328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15329 shlibpath_var=LD_LIBRARY_PATH
15330 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15331 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15334 sco3.2v5*)
15335 version_type=osf
15336 soname_spec='${libname}${release}${shared_ext}$major'
15337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15338 shlibpath_var=LD_LIBRARY_PATH
15341 solaris*)
15342 version_type=linux
15343 need_lib_prefix=no
15344 need_version=no
15345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15346 soname_spec='${libname}${release}${shared_ext}$major'
15347 shlibpath_var=LD_LIBRARY_PATH
15348 shlibpath_overrides_runpath=yes
15349 hardcode_into_libs=yes
15350 # ldd complains unless libraries are executable
15351 postinstall_cmds='chmod +x $lib'
15354 sunos4*)
15355 version_type=sunos
15356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15357 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15358 shlibpath_var=LD_LIBRARY_PATH
15359 shlibpath_overrides_runpath=yes
15360 if test "$with_gnu_ld" = yes; then
15361 need_lib_prefix=no
15363 need_version=yes
15366 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15367 version_type=linux
15368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15369 soname_spec='${libname}${release}${shared_ext}$major'
15370 shlibpath_var=LD_LIBRARY_PATH
15371 case $host_vendor in
15372 sni)
15373 shlibpath_overrides_runpath=no
15374 need_lib_prefix=no
15375 export_dynamic_flag_spec='${wl}-Blargedynsym'
15376 runpath_var=LD_RUN_PATH
15378 siemens)
15379 need_lib_prefix=no
15381 motorola)
15382 need_lib_prefix=no
15383 need_version=no
15384 shlibpath_overrides_runpath=no
15385 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15387 esac
15390 sysv4*MP*)
15391 if test -d /usr/nec ;then
15392 version_type=linux
15393 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15394 soname_spec='$libname${shared_ext}.$major'
15395 shlibpath_var=LD_LIBRARY_PATH
15399 uts4*)
15400 version_type=linux
15401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15402 soname_spec='${libname}${release}${shared_ext}$major'
15403 shlibpath_var=LD_LIBRARY_PATH
15407 dynamic_linker=no
15409 esac
15410 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15411 echo "${ECHO_T}$dynamic_linker" >&6
15412 test "$dynamic_linker" = no && can_build_shared=no
15414 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15415 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15416 hardcode_action_F77=
15417 if test -n "$hardcode_libdir_flag_spec_F77" || \
15418 test -n "$runpath_var_F77" || \
15419 test "X$hardcode_automatic_F77" = "Xyes" ; then
15421 # We can hardcode non-existant directories.
15422 if test "$hardcode_direct_F77" != no &&
15423 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15424 # have to relink, otherwise we might link with an installed library
15425 # when we should be linking with a yet-to-be-installed one
15426 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15427 test "$hardcode_minus_L_F77" != no; then
15428 # Linking always hardcodes the temporary library directory.
15429 hardcode_action_F77=relink
15430 else
15431 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15432 hardcode_action_F77=immediate
15434 else
15435 # We cannot hardcode anything, or else we can only hardcode existing
15436 # directories.
15437 hardcode_action_F77=unsupported
15439 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15440 echo "${ECHO_T}$hardcode_action_F77" >&6
15442 if test "$hardcode_action_F77" = relink; then
15443 # Fast installation is not supported
15444 enable_fast_install=no
15445 elif test "$shlibpath_overrides_runpath" = yes ||
15446 test "$enable_shared" = no; then
15447 # Fast installation is not necessary
15448 enable_fast_install=needless
15451 striplib=
15452 old_striplib=
15453 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15454 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15455 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15456 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15457 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15458 echo "$as_me:$LINENO: result: yes" >&5
15459 echo "${ECHO_T}yes" >&6
15460 else
15461 # FIXME - insert some real tests, host_os isn't really good enough
15462 case $host_os in
15463 darwin*)
15464 if test -n "$STRIP" ; then
15465 striplib="$STRIP -x"
15466 echo "$as_me:$LINENO: result: yes" >&5
15467 echo "${ECHO_T}yes" >&6
15468 else
15469 echo "$as_me:$LINENO: result: no" >&5
15470 echo "${ECHO_T}no" >&6
15474 echo "$as_me:$LINENO: result: no" >&5
15475 echo "${ECHO_T}no" >&6
15477 esac
15482 # The else clause should only fire when bootstrapping the
15483 # libtool distribution, otherwise you forgot to ship ltmain.sh
15484 # with your package, and you will get complaints that there are
15485 # no rules to generate ltmain.sh.
15486 if test -f "$ltmain"; then
15487 # See if we are running on zsh, and set the options which allow our commands through
15488 # without removal of \ escapes.
15489 if test -n "${ZSH_VERSION+set}" ; then
15490 setopt NO_GLOB_SUBST
15492 # Now quote all the things that may contain metacharacters while being
15493 # careful not to overquote the AC_SUBSTed values. We take copies of the
15494 # variables and quote the copies for generation of the libtool script.
15495 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15496 SED SHELL STRIP \
15497 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15498 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15499 deplibs_check_method reload_flag reload_cmds need_locks \
15500 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15501 lt_cv_sys_global_symbol_to_c_name_address \
15502 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15503 old_postinstall_cmds old_postuninstall_cmds \
15504 compiler_F77 \
15505 CC_F77 \
15506 LD_F77 \
15507 lt_prog_compiler_wl_F77 \
15508 lt_prog_compiler_pic_F77 \
15509 lt_prog_compiler_static_F77 \
15510 lt_prog_compiler_no_builtin_flag_F77 \
15511 export_dynamic_flag_spec_F77 \
15512 thread_safe_flag_spec_F77 \
15513 whole_archive_flag_spec_F77 \
15514 enable_shared_with_static_runtimes_F77 \
15515 old_archive_cmds_F77 \
15516 old_archive_from_new_cmds_F77 \
15517 predep_objects_F77 \
15518 postdep_objects_F77 \
15519 predeps_F77 \
15520 postdeps_F77 \
15521 compiler_lib_search_path_F77 \
15522 archive_cmds_F77 \
15523 archive_expsym_cmds_F77 \
15524 postinstall_cmds_F77 \
15525 postuninstall_cmds_F77 \
15526 old_archive_from_expsyms_cmds_F77 \
15527 allow_undefined_flag_F77 \
15528 no_undefined_flag_F77 \
15529 export_symbols_cmds_F77 \
15530 hardcode_libdir_flag_spec_F77 \
15531 hardcode_libdir_flag_spec_ld_F77 \
15532 hardcode_libdir_separator_F77 \
15533 hardcode_automatic_F77 \
15534 module_cmds_F77 \
15535 module_expsym_cmds_F77 \
15536 lt_cv_prog_compiler_c_o_F77 \
15537 exclude_expsyms_F77 \
15538 include_expsyms_F77; do
15540 case $var in
15541 old_archive_cmds_F77 | \
15542 old_archive_from_new_cmds_F77 | \
15543 archive_cmds_F77 | \
15544 archive_expsym_cmds_F77 | \
15545 module_cmds_F77 | \
15546 module_expsym_cmds_F77 | \
15547 old_archive_from_expsyms_cmds_F77 | \
15548 export_symbols_cmds_F77 | \
15549 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15550 postinstall_cmds | postuninstall_cmds | \
15551 old_postinstall_cmds | old_postuninstall_cmds | \
15552 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15553 # Double-quote double-evaled strings.
15554 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15557 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15559 esac
15560 done
15562 case $lt_echo in
15563 *'\$0 --fallback-echo"')
15564 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15566 esac
15568 cfgfile="$ofile"
15570 cat <<__EOF__ >> "$cfgfile"
15571 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15573 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15575 # Shell to use when invoking shell scripts.
15576 SHELL=$lt_SHELL
15578 # Whether or not to build shared libraries.
15579 build_libtool_libs=$enable_shared
15581 # Whether or not to build static libraries.
15582 build_old_libs=$enable_static
15584 # Whether or not to add -lc for building shared libraries.
15585 build_libtool_need_lc=$archive_cmds_need_lc_F77
15587 # Whether or not to disallow shared libs when runtime libs are static
15588 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15590 # Whether or not to optimize for fast installation.
15591 fast_install=$enable_fast_install
15593 # The host system.
15594 host_alias=$host_alias
15595 host=$host
15596 host_os=$host_os
15598 # The build system.
15599 build_alias=$build_alias
15600 build=$build
15601 build_os=$build_os
15603 # An echo program that does not interpret backslashes.
15604 echo=$lt_echo
15606 # The archiver.
15607 AR=$lt_AR
15608 AR_FLAGS=$lt_AR_FLAGS
15610 # A C compiler.
15611 LTCC=$lt_LTCC
15613 # A language-specific compiler.
15614 CC=$lt_compiler_F77
15616 # Is the compiler the GNU C compiler?
15617 with_gcc=$GCC_F77
15619 # An ERE matcher.
15620 EGREP=$lt_EGREP
15622 # The linker used to build libraries.
15623 LD=$lt_LD_F77
15625 # Whether we need hard or soft links.
15626 LN_S=$lt_LN_S
15628 # A BSD-compatible nm program.
15629 NM=$lt_NM
15631 # A symbol stripping program
15632 STRIP=$lt_STRIP
15634 # Used to examine libraries when file_magic_cmd begins "file"
15635 MAGIC_CMD=$MAGIC_CMD
15637 # Used on cygwin: DLL creation program.
15638 DLLTOOL="$DLLTOOL"
15640 # Used on cygwin: object dumper.
15641 OBJDUMP="$OBJDUMP"
15643 # Used on cygwin: assembler.
15644 AS="$AS"
15646 # The name of the directory that contains temporary libtool files.
15647 objdir=$objdir
15649 # How to create reloadable object files.
15650 reload_flag=$lt_reload_flag
15651 reload_cmds=$lt_reload_cmds
15653 # How to pass a linker flag through the compiler.
15654 wl=$lt_lt_prog_compiler_wl_F77
15656 # Object file suffix (normally "o").
15657 objext="$ac_objext"
15659 # Old archive suffix (normally "a").
15660 libext="$libext"
15662 # Shared library suffix (normally ".so").
15663 shrext_cmds='$shrext_cmds'
15665 # Executable file suffix (normally "").
15666 exeext="$exeext"
15668 # Additional compiler flags for building library objects.
15669 pic_flag=$lt_lt_prog_compiler_pic_F77
15670 pic_mode=$pic_mode
15672 # What is the maximum length of a command?
15673 max_cmd_len=$lt_cv_sys_max_cmd_len
15675 # Does compiler simultaneously support -c and -o options?
15676 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15678 # Must we lock files when doing compilation ?
15679 need_locks=$lt_need_locks
15681 # Do we need the lib prefix for modules?
15682 need_lib_prefix=$need_lib_prefix
15684 # Do we need a version for libraries?
15685 need_version=$need_version
15687 # Whether dlopen is supported.
15688 dlopen_support=$enable_dlopen
15690 # Whether dlopen of programs is supported.
15691 dlopen_self=$enable_dlopen_self
15693 # Whether dlopen of statically linked programs is supported.
15694 dlopen_self_static=$enable_dlopen_self_static
15696 # Compiler flag to prevent dynamic linking.
15697 link_static_flag=$lt_lt_prog_compiler_static_F77
15699 # Compiler flag to turn off builtin functions.
15700 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15702 # Compiler flag to allow reflexive dlopens.
15703 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15705 # Compiler flag to generate shared objects directly from archives.
15706 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15708 # Compiler flag to generate thread-safe objects.
15709 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15711 # Library versioning type.
15712 version_type=$version_type
15714 # Format of library name prefix.
15715 libname_spec=$lt_libname_spec
15717 # List of archive names. First name is the real one, the rest are links.
15718 # The last name is the one that the linker finds with -lNAME.
15719 library_names_spec=$lt_library_names_spec
15721 # The coded name of the library, if different from the real name.
15722 soname_spec=$lt_soname_spec
15724 # Commands used to build and install an old-style archive.
15725 RANLIB=$lt_RANLIB
15726 old_archive_cmds=$lt_old_archive_cmds_F77
15727 old_postinstall_cmds=$lt_old_postinstall_cmds
15728 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15730 # Create an old-style archive from a shared archive.
15731 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15733 # Create a temporary old-style archive to link instead of a shared archive.
15734 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15736 # Commands used to build and install a shared archive.
15737 archive_cmds=$lt_archive_cmds_F77
15738 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15739 postinstall_cmds=$lt_postinstall_cmds
15740 postuninstall_cmds=$lt_postuninstall_cmds
15742 # Commands used to build a loadable module (assumed same as above if empty)
15743 module_cmds=$lt_module_cmds_F77
15744 module_expsym_cmds=$lt_module_expsym_cmds_F77
15746 # Commands to strip libraries.
15747 old_striplib=$lt_old_striplib
15748 striplib=$lt_striplib
15750 # Dependencies to place before the objects being linked to create a
15751 # shared library.
15752 predep_objects=$lt_predep_objects_F77
15754 # Dependencies to place after the objects being linked to create a
15755 # shared library.
15756 postdep_objects=$lt_postdep_objects_F77
15758 # Dependencies to place before the objects being linked to create a
15759 # shared library.
15760 predeps=$lt_predeps_F77
15762 # Dependencies to place after the objects being linked to create a
15763 # shared library.
15764 postdeps=$lt_postdeps_F77
15766 # The library search path used internally by the compiler when linking
15767 # a shared library.
15768 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15770 # Method to check whether dependent libraries are shared objects.
15771 deplibs_check_method=$lt_deplibs_check_method
15773 # Command to use when deplibs_check_method == file_magic.
15774 file_magic_cmd=$lt_file_magic_cmd
15776 # Flag that allows shared libraries with undefined symbols to be built.
15777 allow_undefined_flag=$lt_allow_undefined_flag_F77
15779 # Flag that forces no undefined symbols.
15780 no_undefined_flag=$lt_no_undefined_flag_F77
15782 # Commands used to finish a libtool library installation in a directory.
15783 finish_cmds=$lt_finish_cmds
15785 # Same as above, but a single script fragment to be evaled but not shown.
15786 finish_eval=$lt_finish_eval
15788 # Take the output of nm and produce a listing of raw symbols and C names.
15789 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15791 # Transform the output of nm in a proper C declaration
15792 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15794 # Transform the output of nm in a C name address pair
15795 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15797 # This is the shared library runtime path variable.
15798 runpath_var=$runpath_var
15800 # This is the shared library path variable.
15801 shlibpath_var=$shlibpath_var
15803 # Is shlibpath searched before the hard-coded library search path?
15804 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15806 # How to hardcode a shared library path into an executable.
15807 hardcode_action=$hardcode_action_F77
15809 # Whether we should hardcode library paths into libraries.
15810 hardcode_into_libs=$hardcode_into_libs
15812 # Flag to hardcode \$libdir into a binary during linking.
15813 # This must work even if \$libdir does not exist.
15814 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15816 # If ld is used when linking, flag to hardcode \$libdir into
15817 # a binary during linking. This must work even if \$libdir does
15818 # not exist.
15819 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15821 # Whether we need a single -rpath flag with a separated argument.
15822 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15824 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15825 # resulting binary.
15826 hardcode_direct=$hardcode_direct_F77
15828 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15829 # resulting binary.
15830 hardcode_minus_L=$hardcode_minus_L_F77
15832 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15833 # the resulting binary.
15834 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15836 # Set to yes if building a shared library automatically hardcodes DIR into the library
15837 # and all subsequent libraries and executables linked against it.
15838 hardcode_automatic=$hardcode_automatic_F77
15840 # Variables whose values should be saved in libtool wrapper scripts and
15841 # restored at relink time.
15842 variables_saved_for_relink="$variables_saved_for_relink"
15844 # Whether libtool must link a program against all its dependency libraries.
15845 link_all_deplibs=$link_all_deplibs_F77
15847 # Compile-time system search path for libraries
15848 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15850 # Run-time system search path for libraries
15851 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15853 # Fix the shell variable \$srcfile for the compiler.
15854 fix_srcfile_path="$fix_srcfile_path_F77"
15856 # Set to yes if exported symbols are required.
15857 always_export_symbols=$always_export_symbols_F77
15859 # The commands to list exported symbols.
15860 export_symbols_cmds=$lt_export_symbols_cmds_F77
15862 # The commands to extract the exported symbol list from a shared archive.
15863 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15865 # Symbols that should not be listed in the preloaded symbols.
15866 exclude_expsyms=$lt_exclude_expsyms_F77
15868 # Symbols that must always be exported.
15869 include_expsyms=$lt_include_expsyms_F77
15871 # ### END LIBTOOL TAG CONFIG: $tagname
15873 __EOF__
15876 else
15877 # If there is no Makefile yet, we rely on a make rule to execute
15878 # `config.status --recheck' to rerun these tests and create the
15879 # libtool script then.
15880 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15881 if test -f "$ltmain_in"; then
15882 test -f Makefile && make "$ltmain"
15887 ac_ext=c
15888 ac_cpp='$CPP $CPPFLAGS'
15889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15893 CC="$lt_save_CC"
15895 else
15896 tagname=""
15900 GCJ)
15901 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15905 # Source file extension for Java test sources.
15906 ac_ext=java
15908 # Object file extension for compiled Java test sources.
15909 objext=o
15910 objext_GCJ=$objext
15912 # Code to be used in simple compile tests
15913 lt_simple_compile_test_code="class foo {}\n"
15915 # Code to be used in simple link tests
15916 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15918 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15920 # If no C compiler was specified, use CC.
15921 LTCC=${LTCC-"$CC"}
15923 # Allow CC to be a program name with arguments.
15924 compiler=$CC
15927 # Allow CC to be a program name with arguments.
15928 lt_save_CC="$CC"
15929 CC=${GCJ-"gcj"}
15930 compiler=$CC
15931 compiler_GCJ=$CC
15933 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15934 archive_cmds_need_lc_GCJ=no
15936 ## CAVEAT EMPTOR:
15937 ## There is no encapsulation within the following macros, do not change
15938 ## the running order or otherwise move them around unless you know exactly
15939 ## what you are doing...
15941 lt_prog_compiler_no_builtin_flag_GCJ=
15943 if test "$GCC" = yes; then
15944 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15947 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15948 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15949 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15950 echo $ECHO_N "(cached) $ECHO_C" >&6
15951 else
15952 lt_cv_prog_compiler_rtti_exceptions=no
15953 ac_outfile=conftest.$ac_objext
15954 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15955 lt_compiler_flag="-fno-rtti -fno-exceptions"
15956 # Insert the option either (1) after the last *FLAGS variable, or
15957 # (2) before a word containing "conftest.", or (3) at the end.
15958 # Note that $ac_compile itself does not contain backslashes and begins
15959 # with a dollar sign (not a hyphen), so the echo should work correctly.
15960 # The option is referenced via a variable to avoid confusing sed.
15961 lt_compile=`echo "$ac_compile" | $SED \
15962 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15963 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15964 -e 's:$: $lt_compiler_flag:'`
15965 (eval echo "\"\$as_me:15965: $lt_compile\"" >&5)
15966 (eval "$lt_compile" 2>conftest.err)
15967 ac_status=$?
15968 cat conftest.err >&5
15969 echo "$as_me:15969: \$? = $ac_status" >&5
15970 if (exit $ac_status) && test -s "$ac_outfile"; then
15971 # The compiler can only warn and ignore the option if not recognized
15972 # So say no if there are warnings
15973 if test ! -s conftest.err; then
15974 lt_cv_prog_compiler_rtti_exceptions=yes
15977 $rm conftest*
15980 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15981 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15983 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15984 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15985 else
15991 lt_prog_compiler_wl_GCJ=
15992 lt_prog_compiler_pic_GCJ=
15993 lt_prog_compiler_static_GCJ=
15995 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15996 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15998 if test "$GCC" = yes; then
15999 lt_prog_compiler_wl_GCJ='-Wl,'
16000 lt_prog_compiler_static_GCJ='-static'
16002 case $host_os in
16003 aix*)
16004 # All AIX code is PIC.
16005 if test "$host_cpu" = ia64; then
16006 # AIX 5 now supports IA64 processor
16007 lt_prog_compiler_static_GCJ='-Bstatic'
16011 amigaos*)
16012 # FIXME: we need at least 68020 code to build shared libraries, but
16013 # adding the `-m68020' flag to GCC prevents building anything better,
16014 # like `-m68040'.
16015 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16018 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16019 # PIC is the default for these OSes.
16022 mingw* | pw32* | os2*)
16023 # This hack is so that the source file can tell whether it is being
16024 # built for inclusion in a dll (and should export symbols for example).
16025 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16028 darwin* | rhapsody*)
16029 # PIC is the default on this platform
16030 # Common symbols not allowed in MH_DYLIB files
16031 lt_prog_compiler_pic_GCJ='-fno-common'
16034 msdosdjgpp*)
16035 # Just because we use GCC doesn't mean we suddenly get shared libraries
16036 # on systems that don't support them.
16037 lt_prog_compiler_can_build_shared_GCJ=no
16038 enable_shared=no
16041 sysv4*MP*)
16042 if test -d /usr/nec; then
16043 lt_prog_compiler_pic_GCJ=-Kconform_pic
16047 hpux*)
16048 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16049 # not for PA HP-UX.
16050 case "$host_cpu" in
16051 hppa*64*|ia64*)
16052 # +Z the default
16055 lt_prog_compiler_pic_GCJ='-fPIC'
16057 esac
16061 lt_prog_compiler_pic_GCJ='-fPIC'
16063 esac
16064 else
16065 # PORTME Check for flag to pass linker flags through the system compiler.
16066 case $host_os in
16067 aix*)
16068 lt_prog_compiler_wl_GCJ='-Wl,'
16069 if test "$host_cpu" = ia64; then
16070 # AIX 5 now supports IA64 processor
16071 lt_prog_compiler_static_GCJ='-Bstatic'
16072 else
16073 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16076 darwin*)
16077 # PIC is the default on this platform
16078 # Common symbols not allowed in MH_DYLIB files
16079 case "$cc_basename" in
16080 xlc*)
16081 lt_prog_compiler_pic_GCJ='-qnocommon'
16082 lt_prog_compiler_wl_GCJ='-Wl,'
16084 esac
16087 mingw* | pw32* | os2*)
16088 # This hack is so that the source file can tell whether it is being
16089 # built for inclusion in a dll (and should export symbols for example).
16090 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16093 hpux9* | hpux10* | hpux11*)
16094 lt_prog_compiler_wl_GCJ='-Wl,'
16095 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16096 # not for PA HP-UX.
16097 case "$host_cpu" in
16098 hppa*64*|ia64*)
16099 # +Z the default
16102 lt_prog_compiler_pic_GCJ='+Z'
16104 esac
16105 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16106 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16109 irix5* | irix6* | nonstopux*)
16110 lt_prog_compiler_wl_GCJ='-Wl,'
16111 # PIC (with -KPIC) is the default.
16112 lt_prog_compiler_static_GCJ='-non_shared'
16115 newsos6)
16116 lt_prog_compiler_pic_GCJ='-KPIC'
16117 lt_prog_compiler_static_GCJ='-Bstatic'
16120 linux*)
16121 case $cc_basename in
16122 icc* | ecc*)
16123 lt_prog_compiler_wl_GCJ='-Wl,'
16124 lt_prog_compiler_pic_GCJ='-KPIC'
16125 lt_prog_compiler_static_GCJ='-static'
16127 pgcc | pgf77 | pgf90)
16128 # Portland Group compilers (*not* the Pentium gcc compiler,
16129 # which looks to be a dead project)
16130 lt_prog_compiler_wl_GCJ='-Wl,'
16131 lt_prog_compiler_pic_GCJ='-fpic'
16132 lt_prog_compiler_static_GCJ='-static'
16134 ccc*)
16135 lt_prog_compiler_wl_GCJ='-Wl,'
16136 # All Alpha code is PIC.
16137 lt_prog_compiler_static_GCJ='-non_shared'
16139 como)
16140 lt_prog_compiler_wl_GCJ='-lopt='
16142 esac
16145 osf3* | osf4* | osf5*)
16146 lt_prog_compiler_wl_GCJ='-Wl,'
16147 # All OSF/1 code is PIC.
16148 lt_prog_compiler_static_GCJ='-non_shared'
16151 sco3.2v5*)
16152 lt_prog_compiler_pic_GCJ='-Kpic'
16153 lt_prog_compiler_static_GCJ='-dn'
16156 solaris*)
16157 lt_prog_compiler_wl_GCJ='-Wl,'
16158 lt_prog_compiler_pic_GCJ='-KPIC'
16159 lt_prog_compiler_static_GCJ='-Bstatic'
16162 sunos4*)
16163 lt_prog_compiler_wl_GCJ='-Qoption ld '
16164 lt_prog_compiler_pic_GCJ='-PIC'
16165 lt_prog_compiler_static_GCJ='-Bstatic'
16168 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16169 lt_prog_compiler_wl_GCJ='-Wl,'
16170 lt_prog_compiler_pic_GCJ='-KPIC'
16171 lt_prog_compiler_static_GCJ='-Bstatic'
16174 sysv4*MP*)
16175 if test -d /usr/nec ;then
16176 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16177 lt_prog_compiler_static_GCJ='-Bstatic'
16181 unicos*)
16182 lt_prog_compiler_wl_GCJ='-Wl,'
16183 lt_prog_compiler_can_build_shared_GCJ=no
16186 uts4*)
16187 lt_prog_compiler_pic_GCJ='-pic'
16188 lt_prog_compiler_static_GCJ='-Bstatic'
16192 lt_prog_compiler_can_build_shared_GCJ=no
16194 esac
16197 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16198 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16201 # Check to make sure the PIC flag actually works.
16203 if test -n "$lt_prog_compiler_pic_GCJ"; then
16205 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16206 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16207 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16208 echo $ECHO_N "(cached) $ECHO_C" >&6
16209 else
16210 lt_prog_compiler_pic_works_GCJ=no
16211 ac_outfile=conftest.$ac_objext
16212 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16213 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16214 # Insert the option either (1) after the last *FLAGS variable, or
16215 # (2) before a word containing "conftest.", or (3) at the end.
16216 # Note that $ac_compile itself does not contain backslashes and begins
16217 # with a dollar sign (not a hyphen), so the echo should work correctly.
16218 # The option is referenced via a variable to avoid confusing sed.
16219 lt_compile=`echo "$ac_compile" | $SED \
16220 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16221 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16222 -e 's:$: $lt_compiler_flag:'`
16223 (eval echo "\"\$as_me:16223: $lt_compile\"" >&5)
16224 (eval "$lt_compile" 2>conftest.err)
16225 ac_status=$?
16226 cat conftest.err >&5
16227 echo "$as_me:16227: \$? = $ac_status" >&5
16228 if (exit $ac_status) && test -s "$ac_outfile"; then
16229 # The compiler can only warn and ignore the option if not recognized
16230 # So say no if there are warnings
16231 if test ! -s conftest.err; then
16232 lt_prog_compiler_pic_works_GCJ=yes
16235 $rm conftest*
16238 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16239 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16241 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16242 case $lt_prog_compiler_pic_GCJ in
16243 "" | " "*) ;;
16244 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16245 esac
16246 else
16247 lt_prog_compiler_pic_GCJ=
16248 lt_prog_compiler_can_build_shared_GCJ=no
16252 case "$host_os" in
16253 # For platforms which do not support PIC, -DPIC is meaningless:
16254 *djgpp*)
16255 lt_prog_compiler_pic_GCJ=
16258 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16260 esac
16262 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16263 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16264 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16265 echo $ECHO_N "(cached) $ECHO_C" >&6
16266 else
16267 lt_cv_prog_compiler_c_o_GCJ=no
16268 $rm -r conftest 2>/dev/null
16269 mkdir conftest
16270 cd conftest
16271 mkdir out
16272 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16274 lt_compiler_flag="-o out/conftest2.$ac_objext"
16275 # Insert the option either (1) after the last *FLAGS variable, or
16276 # (2) before a word containing "conftest.", or (3) at the end.
16277 # Note that $ac_compile itself does not contain backslashes and begins
16278 # with a dollar sign (not a hyphen), so the echo should work correctly.
16279 lt_compile=`echo "$ac_compile" | $SED \
16280 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16281 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16282 -e 's:$: $lt_compiler_flag:'`
16283 (eval echo "\"\$as_me:16283: $lt_compile\"" >&5)
16284 (eval "$lt_compile" 2>out/conftest.err)
16285 ac_status=$?
16286 cat out/conftest.err >&5
16287 echo "$as_me:16287: \$? = $ac_status" >&5
16288 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16289 then
16290 # The compiler can only warn and ignore the option if not recognized
16291 # So say no if there are warnings
16292 if test ! -s out/conftest.err; then
16293 lt_cv_prog_compiler_c_o_GCJ=yes
16296 chmod u+w .
16297 $rm conftest*
16298 # SGI C++ compiler will create directory out/ii_files/ for
16299 # template instantiation
16300 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16301 $rm out/* && rmdir out
16302 cd ..
16303 rmdir conftest
16304 $rm conftest*
16307 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16308 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16311 hard_links="nottested"
16312 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16313 # do not overwrite the value of need_locks provided by the user
16314 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16315 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16316 hard_links=yes
16317 $rm conftest*
16318 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16319 touch conftest.a
16320 ln conftest.a conftest.b 2>&5 || hard_links=no
16321 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16322 echo "$as_me:$LINENO: result: $hard_links" >&5
16323 echo "${ECHO_T}$hard_links" >&6
16324 if test "$hard_links" = no; then
16325 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16326 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16327 need_locks=warn
16329 else
16330 need_locks=no
16333 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16334 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16336 runpath_var=
16337 allow_undefined_flag_GCJ=
16338 enable_shared_with_static_runtimes_GCJ=no
16339 archive_cmds_GCJ=
16340 archive_expsym_cmds_GCJ=
16341 old_archive_From_new_cmds_GCJ=
16342 old_archive_from_expsyms_cmds_GCJ=
16343 export_dynamic_flag_spec_GCJ=
16344 whole_archive_flag_spec_GCJ=
16345 thread_safe_flag_spec_GCJ=
16346 hardcode_libdir_flag_spec_GCJ=
16347 hardcode_libdir_flag_spec_ld_GCJ=
16348 hardcode_libdir_separator_GCJ=
16349 hardcode_direct_GCJ=no
16350 hardcode_minus_L_GCJ=no
16351 hardcode_shlibpath_var_GCJ=unsupported
16352 link_all_deplibs_GCJ=unknown
16353 hardcode_automatic_GCJ=no
16354 module_cmds_GCJ=
16355 module_expsym_cmds_GCJ=
16356 always_export_symbols_GCJ=no
16357 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16358 # include_expsyms should be a list of space-separated symbols to be *always*
16359 # included in the symbol list
16360 include_expsyms_GCJ=
16361 # exclude_expsyms can be an extended regexp of symbols to exclude
16362 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16363 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16364 # as well as any symbol that contains `d'.
16365 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16366 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16367 # platforms (ab)use it in PIC code, but their linkers get confused if
16368 # the symbol is explicitly referenced. Since portable code cannot
16369 # rely on this symbol name, it's probably fine to never include it in
16370 # preloaded symbol tables.
16371 extract_expsyms_cmds=
16373 case $host_os in
16374 cygwin* | mingw* | pw32*)
16375 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16376 # When not using gcc, we currently assume that we are using
16377 # Microsoft Visual C++.
16378 if test "$GCC" != yes; then
16379 with_gnu_ld=no
16382 openbsd*)
16383 with_gnu_ld=no
16385 esac
16387 ld_shlibs_GCJ=yes
16388 if test "$with_gnu_ld" = yes; then
16389 # If archive_cmds runs LD, not CC, wlarc should be empty
16390 wlarc='${wl}'
16392 # See if GNU ld supports shared libraries.
16393 case $host_os in
16394 aix3* | aix4* | aix5*)
16395 # On AIX/PPC, the GNU linker is very broken
16396 if test "$host_cpu" != ia64; then
16397 ld_shlibs_GCJ=no
16398 cat <<EOF 1>&2
16400 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16401 *** to be unable to reliably create shared libraries on AIX.
16402 *** Therefore, libtool is disabling shared libraries support. If you
16403 *** really care for shared libraries, you may want to modify your PATH
16404 *** so that a non-GNU linker is found, and then restart.
16410 amigaos*)
16411 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)'
16412 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16413 hardcode_minus_L_GCJ=yes
16415 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16416 # that the semantics of dynamic libraries on AmigaOS, at least up
16417 # to version 4, is to share data among multiple programs linked
16418 # with the same dynamic library. Since this doesn't match the
16419 # behavior of shared libraries on other platforms, we can't use
16420 # them.
16421 ld_shlibs_GCJ=no
16424 beos*)
16425 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16426 allow_undefined_flag_GCJ=unsupported
16427 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16428 # support --undefined. This deserves some investigation. FIXME
16429 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16430 else
16431 ld_shlibs_GCJ=no
16435 cygwin* | mingw* | pw32*)
16436 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16437 # as there is no search path for DLLs.
16438 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16439 allow_undefined_flag_GCJ=unsupported
16440 always_export_symbols_GCJ=no
16441 enable_shared_with_static_runtimes_GCJ=yes
16442 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16444 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16445 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16446 # If the export-symbols file already is a .def file (1st line
16447 # is EXPORTS), use it as is; otherwise, prepend...
16448 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16449 cp $export_symbols $output_objdir/$soname.def;
16450 else
16451 echo EXPORTS > $output_objdir/$soname.def;
16452 cat $export_symbols >> $output_objdir/$soname.def;
16454 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16455 else
16456 ld_shlibs_GCJ=no
16460 netbsd*)
16461 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16462 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16463 wlarc=
16464 else
16465 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16466 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16470 solaris* | sysv5*)
16471 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16472 ld_shlibs_GCJ=no
16473 cat <<EOF 1>&2
16475 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16476 *** create shared libraries on Solaris systems. Therefore, libtool
16477 *** is disabling shared libraries support. We urge you to upgrade GNU
16478 *** binutils to release 2.9.1 or newer. Another option is to modify
16479 *** your PATH or compiler configuration so that the native linker is
16480 *** used, and then restart.
16483 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16484 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16485 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16486 else
16487 ld_shlibs_GCJ=no
16491 sunos4*)
16492 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16493 wlarc=
16494 hardcode_direct_GCJ=yes
16495 hardcode_shlibpath_var_GCJ=no
16498 linux*)
16499 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16500 tmp_addflag=
16501 case $CC,$host_cpu in
16502 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
16503 tmp_addflag=' -fpic' ;;
16504 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16505 tmp_addflag=' -i_dynamic' ;;
16506 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16507 tmp_addflag=' -i_dynamic -nofor_main' ;;
16508 ifc* | ifort*) # Intel Fortran compiler
16509 tmp_addflag=' -nofor_main' ;;
16510 esac
16511 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16512 supports_anon_versioning=no
16513 case `$LD -v 2>/dev/null` in
16514 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16515 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16516 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16517 *\ 2.11.*) ;; # other 2.11 versions
16518 *) supports_anon_versioning=yes ;;
16519 esac
16520 if test $supports_anon_versioning = yes; then
16521 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16522 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16523 $echo "local: *; };" >> $output_objdir/$libname.ver~
16524 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16525 else
16526 archive_expsym_cmds_GCJ=$archive_cmds_GCJ
16528 else
16529 ld_shlibs_GCJ=no
16534 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16535 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16536 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16537 else
16538 ld_shlibs_GCJ=no
16541 esac
16543 if test "$ld_shlibs_GCJ" = yes; then
16544 runpath_var=LD_RUN_PATH
16545 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16546 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16547 # ancient GNU ld didn't support --whole-archive et. al.
16548 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16549 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16550 else
16551 whole_archive_flag_spec_GCJ=
16554 else
16555 # PORTME fill in a description of your system's linker (not GNU ld)
16556 case $host_os in
16557 aix3*)
16558 allow_undefined_flag_GCJ=unsupported
16559 always_export_symbols_GCJ=yes
16560 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'
16561 # Note: this linker hardcodes the directories in LIBPATH if there
16562 # are no directories specified by -L.
16563 hardcode_minus_L_GCJ=yes
16564 if test "$GCC" = yes && test -z "$link_static_flag"; then
16565 # Neither direct hardcoding nor static linking is supported with a
16566 # broken collect2.
16567 hardcode_direct_GCJ=unsupported
16571 aix4* | aix5*)
16572 if test "$host_cpu" = ia64; then
16573 # On IA64, the linker does run time linking by default, so we don't
16574 # have to do anything special.
16575 aix_use_runtimelinking=no
16576 exp_sym_flag='-Bexport'
16577 no_entry_flag=""
16578 else
16579 # If we're using GNU nm, then we don't want the "-C" option.
16580 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16581 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16582 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'
16583 else
16584 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'
16586 aix_use_runtimelinking=no
16588 # Test if we are trying to use run time linking or normal
16589 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16590 # need to do runtime linking.
16591 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16592 for ld_flag in $LDFLAGS; do
16593 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16594 aix_use_runtimelinking=yes
16595 break
16597 done
16598 esac
16600 exp_sym_flag='-bexport'
16601 no_entry_flag='-bnoentry'
16604 # When large executables or shared objects are built, AIX ld can
16605 # have problems creating the table of contents. If linking a library
16606 # or program results in "error TOC overflow" add -mminimal-toc to
16607 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16608 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16610 archive_cmds_GCJ=''
16611 hardcode_direct_GCJ=yes
16612 hardcode_libdir_separator_GCJ=':'
16613 link_all_deplibs_GCJ=yes
16615 if test "$GCC" = yes; then
16616 case $host_os in aix4.[012]|aix4.[012].*)
16617 # We only want to do this on AIX 4.2 and lower, the check
16618 # below for broken collect2 doesn't work under 4.3+
16619 collect2name=`${CC} -print-prog-name=collect2`
16620 if test -f "$collect2name" && \
16621 strings "$collect2name" | grep resolve_lib_name >/dev/null
16622 then
16623 # We have reworked collect2
16624 hardcode_direct_GCJ=yes
16625 else
16626 # We have old collect2
16627 hardcode_direct_GCJ=unsupported
16628 # It fails to find uninstalled libraries when the uninstalled
16629 # path is not listed in the libpath. Setting hardcode_minus_L
16630 # to unsupported forces relinking
16631 hardcode_minus_L_GCJ=yes
16632 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16633 hardcode_libdir_separator_GCJ=
16635 esac
16636 shared_flag='-shared'
16637 if test "$aix_use_runtimelinking" = yes; then
16638 shared_flag="$shared_flag "'${wl}-G'
16640 else
16641 # not using gcc
16642 if test "$host_cpu" = ia64; then
16643 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16644 # chokes on -Wl,-G. The following line is correct:
16645 shared_flag='-G'
16646 else
16647 if test "$aix_use_runtimelinking" = yes; then
16648 shared_flag='${wl}-G'
16649 else
16650 shared_flag='${wl}-bM:SRE'
16655 # It seems that -bexpall does not export symbols beginning with
16656 # underscore (_), so it is better to generate a list of symbols to export.
16657 always_export_symbols_GCJ=yes
16658 if test "$aix_use_runtimelinking" = yes; then
16659 # Warning - without using the other runtime loading flags (-brtl),
16660 # -berok will link without error, but may produce a broken library.
16661 allow_undefined_flag_GCJ='-berok'
16662 # Determine the default libpath from the value encoded in an empty executable.
16663 cat >conftest.$ac_ext <<_ACEOF
16664 /* confdefs.h. */
16665 _ACEOF
16666 cat confdefs.h >>conftest.$ac_ext
16667 cat >>conftest.$ac_ext <<_ACEOF
16668 /* end confdefs.h. */
16671 main ()
16675 return 0;
16677 _ACEOF
16678 rm -f conftest.$ac_objext conftest$ac_exeext
16679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16680 (eval $ac_link) 2>conftest.er1
16681 ac_status=$?
16682 grep -v '^ *+' conftest.er1 >conftest.err
16683 rm -f conftest.er1
16684 cat conftest.err >&5
16685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16686 (exit $ac_status); } &&
16687 { ac_try='test -z "$ac_c_werror_flag"
16688 || test ! -s conftest.err'
16689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16690 (eval $ac_try) 2>&5
16691 ac_status=$?
16692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693 (exit $ac_status); }; } &&
16694 { ac_try='test -s conftest$ac_exeext'
16695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16696 (eval $ac_try) 2>&5
16697 ac_status=$?
16698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16699 (exit $ac_status); }; }; then
16701 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16703 # Check for a 64-bit object if we didn't find anything.
16704 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; }
16705 }'`; fi
16706 else
16707 echo "$as_me: failed program was:" >&5
16708 sed 's/^/| /' conftest.$ac_ext >&5
16711 rm -f conftest.err conftest.$ac_objext \
16712 conftest$ac_exeext conftest.$ac_ext
16713 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16715 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16716 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"
16717 else
16718 if test "$host_cpu" = ia64; then
16719 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16720 allow_undefined_flag_GCJ="-z nodefs"
16721 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"
16722 else
16723 # Determine the default libpath from the value encoded in an empty executable.
16724 cat >conftest.$ac_ext <<_ACEOF
16725 /* confdefs.h. */
16726 _ACEOF
16727 cat confdefs.h >>conftest.$ac_ext
16728 cat >>conftest.$ac_ext <<_ACEOF
16729 /* end confdefs.h. */
16732 main ()
16736 return 0;
16738 _ACEOF
16739 rm -f conftest.$ac_objext conftest$ac_exeext
16740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16741 (eval $ac_link) 2>conftest.er1
16742 ac_status=$?
16743 grep -v '^ *+' conftest.er1 >conftest.err
16744 rm -f conftest.er1
16745 cat conftest.err >&5
16746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747 (exit $ac_status); } &&
16748 { ac_try='test -z "$ac_c_werror_flag"
16749 || test ! -s conftest.err'
16750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16751 (eval $ac_try) 2>&5
16752 ac_status=$?
16753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754 (exit $ac_status); }; } &&
16755 { ac_try='test -s conftest$ac_exeext'
16756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16757 (eval $ac_try) 2>&5
16758 ac_status=$?
16759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760 (exit $ac_status); }; }; then
16762 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16764 # Check for a 64-bit object if we didn't find anything.
16765 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; }
16766 }'`; fi
16767 else
16768 echo "$as_me: failed program was:" >&5
16769 sed 's/^/| /' conftest.$ac_ext >&5
16772 rm -f conftest.err conftest.$ac_objext \
16773 conftest$ac_exeext conftest.$ac_ext
16774 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16776 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16777 # Warning - without using the other run time loading flags,
16778 # -berok will link without error, but may produce a broken library.
16779 no_undefined_flag_GCJ=' ${wl}-bernotok'
16780 allow_undefined_flag_GCJ=' ${wl}-berok'
16781 # -bexpall does not export symbols beginning with underscore (_)
16782 always_export_symbols_GCJ=yes
16783 # Exported symbols can be pulled into shared objects from archives
16784 whole_archive_flag_spec_GCJ=' '
16785 archive_cmds_need_lc_GCJ=yes
16786 # This is similar to how AIX traditionally builds it's shared libraries.
16787 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'
16792 amigaos*)
16793 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)'
16794 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16795 hardcode_minus_L_GCJ=yes
16796 # see comment about different semantics on the GNU ld section
16797 ld_shlibs_GCJ=no
16800 bsdi[45]*)
16801 export_dynamic_flag_spec_GCJ=-rdynamic
16804 cygwin* | mingw* | pw32*)
16805 # When not using gcc, we currently assume that we are using
16806 # Microsoft Visual C++.
16807 # hardcode_libdir_flag_spec is actually meaningless, as there is
16808 # no search path for DLLs.
16809 hardcode_libdir_flag_spec_GCJ=' '
16810 allow_undefined_flag_GCJ=unsupported
16811 # Tell ltmain to make .lib files, not .a files.
16812 libext=lib
16813 # Tell ltmain to make .dll files, not .so files.
16814 shrext_cmds=".dll"
16815 # FIXME: Setting linknames here is a bad hack.
16816 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16817 # The linker will automatically build a .lib file if we build a DLL.
16818 old_archive_From_new_cmds_GCJ='true'
16819 # FIXME: Should let the user specify the lib program.
16820 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16821 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16822 enable_shared_with_static_runtimes_GCJ=yes
16825 darwin* | rhapsody*)
16826 case "$host_os" in
16827 rhapsody* | darwin1.[012])
16828 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16830 *) # Darwin 1.3 on
16831 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16832 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16833 else
16834 case ${MACOSX_DEPLOYMENT_TARGET} in
16835 10.[012])
16836 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16838 10.*)
16839 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16841 esac
16844 esac
16845 archive_cmds_need_lc_GCJ=no
16846 hardcode_direct_GCJ=no
16847 hardcode_automatic_GCJ=yes
16848 hardcode_shlibpath_var_GCJ=unsupported
16849 whole_archive_flag_spec_GCJ=''
16850 link_all_deplibs_GCJ=yes
16851 if test "$GCC" = yes ; then
16852 output_verbose_link_cmd='echo'
16853 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16854 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16855 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16856 archive_expsym_cmds_GCJ='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}'
16857 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}'
16858 else
16859 case "$cc_basename" in
16860 xlc*)
16861 output_verbose_link_cmd='echo'
16862 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16863 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16864 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16865 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16866 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}'
16869 ld_shlibs_GCJ=no
16871 esac
16875 dgux*)
16876 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16877 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16878 hardcode_shlibpath_var_GCJ=no
16881 freebsd1*)
16882 ld_shlibs_GCJ=no
16885 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16886 # support. Future versions do this automatically, but an explicit c++rt0.o
16887 # does not break anything, and helps significantly (at the cost of a little
16888 # extra space).
16889 freebsd2.2*)
16890 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16891 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16892 hardcode_direct_GCJ=yes
16893 hardcode_shlibpath_var_GCJ=no
16896 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16897 freebsd2*)
16898 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16899 hardcode_direct_GCJ=yes
16900 hardcode_minus_L_GCJ=yes
16901 hardcode_shlibpath_var_GCJ=no
16904 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16905 freebsd* | kfreebsd*-gnu | dragonfly*)
16906 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16907 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16908 hardcode_direct_GCJ=yes
16909 hardcode_shlibpath_var_GCJ=no
16912 hpux9*)
16913 if test "$GCC" = yes; then
16914 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'
16915 else
16916 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'
16918 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16919 hardcode_libdir_separator_GCJ=:
16920 hardcode_direct_GCJ=yes
16922 # hardcode_minus_L: Not really in the search PATH,
16923 # but as the default location of the library.
16924 hardcode_minus_L_GCJ=yes
16925 export_dynamic_flag_spec_GCJ='${wl}-E'
16928 hpux10* | hpux11*)
16929 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16930 case "$host_cpu" in
16931 hppa*64*|ia64*)
16932 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16935 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16937 esac
16938 else
16939 case "$host_cpu" in
16940 hppa*64*|ia64*)
16941 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16944 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16946 esac
16948 if test "$with_gnu_ld" = no; then
16949 case "$host_cpu" in
16950 hppa*64*)
16951 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16952 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16953 hardcode_libdir_separator_GCJ=:
16954 hardcode_direct_GCJ=no
16955 hardcode_shlibpath_var_GCJ=no
16957 ia64*)
16958 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16959 hardcode_direct_GCJ=no
16960 hardcode_shlibpath_var_GCJ=no
16962 # hardcode_minus_L: Not really in the search PATH,
16963 # but as the default location of the library.
16964 hardcode_minus_L_GCJ=yes
16967 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16968 hardcode_libdir_separator_GCJ=:
16969 hardcode_direct_GCJ=yes
16970 export_dynamic_flag_spec_GCJ='${wl}-E'
16972 # hardcode_minus_L: Not really in the search PATH,
16973 # but as the default location of the library.
16974 hardcode_minus_L_GCJ=yes
16976 esac
16980 irix5* | irix6* | nonstopux*)
16981 if test "$GCC" = yes; then
16982 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'
16983 else
16984 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'
16985 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16987 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16988 hardcode_libdir_separator_GCJ=:
16989 link_all_deplibs_GCJ=yes
16992 netbsd*)
16993 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16994 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16995 else
16996 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16998 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16999 hardcode_direct_GCJ=yes
17000 hardcode_shlibpath_var_GCJ=no
17003 newsos6)
17004 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17005 hardcode_direct_GCJ=yes
17006 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17007 hardcode_libdir_separator_GCJ=:
17008 hardcode_shlibpath_var_GCJ=no
17011 openbsd*)
17012 hardcode_direct_GCJ=yes
17013 hardcode_shlibpath_var_GCJ=no
17014 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17015 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17016 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17017 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17018 export_dynamic_flag_spec_GCJ='${wl}-E'
17019 else
17020 case $host_os in
17021 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17022 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17023 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17026 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17027 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17029 esac
17033 os2*)
17034 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17035 hardcode_minus_L_GCJ=yes
17036 allow_undefined_flag_GCJ=unsupported
17037 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'
17038 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17041 osf3*)
17042 if test "$GCC" = yes; then
17043 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17044 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'
17045 else
17046 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17047 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'
17049 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17050 hardcode_libdir_separator_GCJ=:
17053 osf4* | osf5*) # as osf3* with the addition of -msym flag
17054 if test "$GCC" = yes; then
17055 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17056 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'
17057 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17058 else
17059 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17060 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'
17061 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~
17062 $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'
17064 # Both c and cxx compiler support -rpath directly
17065 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17067 hardcode_libdir_separator_GCJ=:
17070 sco3.2v5*)
17071 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17072 hardcode_shlibpath_var_GCJ=no
17073 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17074 runpath_var=LD_RUN_PATH
17075 hardcode_runpath_var=yes
17078 solaris*)
17079 no_undefined_flag_GCJ=' -z text'
17080 if test "$GCC" = yes; then
17081 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17082 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17083 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17084 else
17085 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17086 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17087 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17089 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17090 hardcode_shlibpath_var_GCJ=no
17091 case $host_os in
17092 solaris2.[0-5] | solaris2.[0-5].*) ;;
17093 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
17094 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
17095 esac
17096 link_all_deplibs_GCJ=yes
17099 sunos4*)
17100 if test "x$host_vendor" = xsequent; then
17101 # Use $CC to link under sequent, because it throws in some extra .o
17102 # files that make .init and .fini sections work.
17103 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17104 else
17105 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17107 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17108 hardcode_direct_GCJ=yes
17109 hardcode_minus_L_GCJ=yes
17110 hardcode_shlibpath_var_GCJ=no
17113 sysv4)
17114 case $host_vendor in
17115 sni)
17116 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17117 hardcode_direct_GCJ=yes # is this really true???
17119 siemens)
17120 ## LD is ld it makes a PLAMLIB
17121 ## CC just makes a GrossModule.
17122 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17123 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17124 hardcode_direct_GCJ=no
17126 motorola)
17127 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17128 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17130 esac
17131 runpath_var='LD_RUN_PATH'
17132 hardcode_shlibpath_var_GCJ=no
17135 sysv4.3*)
17136 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17137 hardcode_shlibpath_var_GCJ=no
17138 export_dynamic_flag_spec_GCJ='-Bexport'
17141 sysv4*MP*)
17142 if test -d /usr/nec; then
17143 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17144 hardcode_shlibpath_var_GCJ=no
17145 runpath_var=LD_RUN_PATH
17146 hardcode_runpath_var=yes
17147 ld_shlibs_GCJ=yes
17151 sysv4.2uw2*)
17152 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17153 hardcode_direct_GCJ=yes
17154 hardcode_minus_L_GCJ=no
17155 hardcode_shlibpath_var_GCJ=no
17156 hardcode_runpath_var=yes
17157 runpath_var=LD_RUN_PATH
17160 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17161 no_undefined_flag_GCJ='${wl}-z ${wl}text'
17162 if test "$GCC" = yes; then
17163 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17164 else
17165 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17167 runpath_var='LD_RUN_PATH'
17168 hardcode_shlibpath_var_GCJ=no
17171 sysv5*)
17172 no_undefined_flag_GCJ=' -z text'
17173 # $CC -shared without GNU ld will not create a library from C++
17174 # object files and a static libstdc++, better avoid it by now
17175 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17176 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17177 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17178 hardcode_libdir_flag_spec_GCJ=
17179 hardcode_shlibpath_var_GCJ=no
17180 runpath_var='LD_RUN_PATH'
17183 uts4*)
17184 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17185 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17186 hardcode_shlibpath_var_GCJ=no
17190 ld_shlibs_GCJ=no
17192 esac
17195 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17196 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17197 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17199 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17200 if test "$GCC" = yes; then
17201 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17205 # Do we need to explicitly link libc?
17207 case "x$archive_cmds_need_lc_GCJ" in
17208 x|xyes)
17209 # Assume -lc should be added
17210 archive_cmds_need_lc_GCJ=yes
17212 if test "$enable_shared" = yes && test "$GCC" = yes; then
17213 case $archive_cmds_GCJ in
17214 *'~'*)
17215 # FIXME: we may have to deal with multi-command sequences.
17217 '$CC '*)
17218 # Test whether the compiler implicitly links with -lc since on some
17219 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17220 # to ld, don't add -lc before -lgcc.
17221 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17222 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17223 $rm conftest*
17224 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17227 (eval $ac_compile) 2>&5
17228 ac_status=$?
17229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230 (exit $ac_status); } 2>conftest.err; then
17231 soname=conftest
17232 lib=conftest
17233 libobjs=conftest.$ac_objext
17234 deplibs=
17235 wl=$lt_prog_compiler_wl_GCJ
17236 compiler_flags=-v
17237 linker_flags=-v
17238 verstring=
17239 output_objdir=.
17240 libname=conftest
17241 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17242 allow_undefined_flag_GCJ=
17243 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17244 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17245 ac_status=$?
17246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247 (exit $ac_status); }
17248 then
17249 archive_cmds_need_lc_GCJ=no
17250 else
17251 archive_cmds_need_lc_GCJ=yes
17253 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17254 else
17255 cat conftest.err 1>&5
17257 $rm conftest*
17258 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17259 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17261 esac
17264 esac
17266 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17267 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17268 library_names_spec=
17269 libname_spec='lib$name'
17270 soname_spec=
17271 shrext_cmds=".so"
17272 postinstall_cmds=
17273 postuninstall_cmds=
17274 finish_cmds=
17275 finish_eval=
17276 shlibpath_var=
17277 shlibpath_overrides_runpath=unknown
17278 version_type=none
17279 dynamic_linker="$host_os ld.so"
17280 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17281 if test "$GCC" = yes; then
17282 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17283 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17284 # if the path contains ";" then we assume it to be the separator
17285 # otherwise default to the standard path separator (i.e. ":") - it is
17286 # assumed that no part of a normal pathname contains ";" but that should
17287 # okay in the real world where ";" in dirpaths is itself problematic.
17288 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17289 else
17290 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17292 else
17293 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17295 need_lib_prefix=unknown
17296 hardcode_into_libs=no
17298 # when you set need_version to no, make sure it does not cause -set_version
17299 # flags to be left without arguments
17300 need_version=unknown
17302 case $host_os in
17303 aix3*)
17304 version_type=linux
17305 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17306 shlibpath_var=LIBPATH
17308 # AIX 3 has no versioning support, so we append a major version to the name.
17309 soname_spec='${libname}${release}${shared_ext}$major'
17312 aix4* | aix5*)
17313 version_type=linux
17314 need_lib_prefix=no
17315 need_version=no
17316 hardcode_into_libs=yes
17317 if test "$host_cpu" = ia64; then
17318 # AIX 5 supports IA64
17319 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17320 shlibpath_var=LD_LIBRARY_PATH
17321 else
17322 # With GCC up to 2.95.x, collect2 would create an import file
17323 # for dependence libraries. The import file would start with
17324 # the line `#! .'. This would cause the generated library to
17325 # depend on `.', always an invalid library. This was fixed in
17326 # development snapshots of GCC prior to 3.0.
17327 case $host_os in
17328 aix4 | aix4.[01] | aix4.[01].*)
17329 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17330 echo ' yes '
17331 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17333 else
17334 can_build_shared=no
17337 esac
17338 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17339 # soname into executable. Probably we can add versioning support to
17340 # collect2, so additional links can be useful in future.
17341 if test "$aix_use_runtimelinking" = yes; then
17342 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17343 # instead of lib<name>.a to let people know that these are not
17344 # typical AIX shared libraries.
17345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17346 else
17347 # We preserve .a as extension for shared libraries through AIX4.2
17348 # and later when we are not doing run time linking.
17349 library_names_spec='${libname}${release}.a $libname.a'
17350 soname_spec='${libname}${release}${shared_ext}$major'
17352 shlibpath_var=LIBPATH
17356 amigaos*)
17357 library_names_spec='$libname.ixlibrary $libname.a'
17358 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17359 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'
17362 beos*)
17363 library_names_spec='${libname}${shared_ext}'
17364 dynamic_linker="$host_os ld.so"
17365 shlibpath_var=LIBRARY_PATH
17368 bsdi[45]*)
17369 version_type=linux
17370 need_version=no
17371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17372 soname_spec='${libname}${release}${shared_ext}$major'
17373 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17374 shlibpath_var=LD_LIBRARY_PATH
17375 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17376 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17377 # the default ld.so.conf also contains /usr/contrib/lib and
17378 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17379 # libtool to hard-code these into programs
17382 cygwin* | mingw* | pw32*)
17383 version_type=windows
17384 shrext_cmds=".dll"
17385 need_version=no
17386 need_lib_prefix=no
17388 case $GCC,$host_os in
17389 yes,cygwin* | yes,mingw* | yes,pw32*)
17390 library_names_spec='$libname.dll.a'
17391 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17392 postinstall_cmds='base_file=`basename \${file}`~
17393 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17394 dldir=$destdir/`dirname \$dlpath`~
17395 test -d \$dldir || mkdir -p \$dldir~
17396 $install_prog $dir/$dlname \$dldir/$dlname'
17397 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17398 dlpath=$dir/\$dldll~
17399 $rm \$dlpath'
17400 shlibpath_overrides_runpath=yes
17402 case $host_os in
17403 cygwin*)
17404 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17405 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17406 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17408 mingw*)
17409 # MinGW DLLs use traditional 'lib' prefix
17410 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17411 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17412 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17413 # It is most probably a Windows format PATH printed by
17414 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17415 # path with ; separators, and with drive letters. We can handle the
17416 # drive letters (cygwin fileutils understands them), so leave them,
17417 # especially as we might pass files found there to a mingw objdump,
17418 # which wouldn't understand a cygwinified path. Ahh.
17419 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17420 else
17421 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17424 pw32*)
17425 # pw32 DLLs use 'pw' prefix rather than 'lib'
17426 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17428 esac
17432 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17434 esac
17435 dynamic_linker='Win32 ld.exe'
17436 # FIXME: first we should search . and the directory the executable is in
17437 shlibpath_var=PATH
17440 darwin* | rhapsody*)
17441 dynamic_linker="$host_os dyld"
17442 version_type=darwin
17443 need_lib_prefix=no
17444 need_version=no
17445 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17446 soname_spec='${libname}${release}${major}$shared_ext'
17447 shlibpath_overrides_runpath=yes
17448 shlibpath_var=DYLD_LIBRARY_PATH
17449 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17450 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17451 if test "$GCC" = yes; then
17452 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"`
17453 else
17454 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17456 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17459 dgux*)
17460 version_type=linux
17461 need_lib_prefix=no
17462 need_version=no
17463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17464 soname_spec='${libname}${release}${shared_ext}$major'
17465 shlibpath_var=LD_LIBRARY_PATH
17468 freebsd1*)
17469 dynamic_linker=no
17472 kfreebsd*-gnu)
17473 version_type=linux
17474 need_lib_prefix=no
17475 need_version=no
17476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17477 soname_spec='${libname}${release}${shared_ext}$major'
17478 shlibpath_var=LD_LIBRARY_PATH
17479 shlibpath_overrides_runpath=no
17480 hardcode_into_libs=yes
17481 dynamic_linker='GNU ld.so'
17484 freebsd* | dragonfly*)
17485 # DragonFly does not have aout. When/if they implement a new
17486 # versioning mechanism, adjust this.
17487 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17488 version_type=freebsd-$objformat
17489 case $version_type in
17490 freebsd-elf*)
17491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17492 need_version=no
17493 need_lib_prefix=no
17495 freebsd-*)
17496 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17497 need_version=yes
17499 esac
17500 shlibpath_var=LD_LIBRARY_PATH
17501 case $host_os in
17502 freebsd2*)
17503 shlibpath_overrides_runpath=yes
17505 freebsd3.[01]* | freebsdelf3.[01]*)
17506 shlibpath_overrides_runpath=yes
17507 hardcode_into_libs=yes
17509 *) # from 3.2 on
17510 shlibpath_overrides_runpath=no
17511 hardcode_into_libs=yes
17513 esac
17516 gnu*)
17517 version_type=linux
17518 need_lib_prefix=no
17519 need_version=no
17520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17521 soname_spec='${libname}${release}${shared_ext}$major'
17522 shlibpath_var=LD_LIBRARY_PATH
17523 hardcode_into_libs=yes
17526 hpux9* | hpux10* | hpux11*)
17527 # Give a soname corresponding to the major version so that dld.sl refuses to
17528 # link against other versions.
17529 version_type=sunos
17530 need_lib_prefix=no
17531 need_version=no
17532 case "$host_cpu" in
17533 ia64*)
17534 shrext_cmds='.so'
17535 hardcode_into_libs=yes
17536 dynamic_linker="$host_os dld.so"
17537 shlibpath_var=LD_LIBRARY_PATH
17538 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17540 soname_spec='${libname}${release}${shared_ext}$major'
17541 if test "X$HPUX_IA64_MODE" = X32; then
17542 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17543 else
17544 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17546 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17548 hppa*64*)
17549 shrext_cmds='.sl'
17550 hardcode_into_libs=yes
17551 dynamic_linker="$host_os dld.sl"
17552 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17553 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17555 soname_spec='${libname}${release}${shared_ext}$major'
17556 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17557 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17560 shrext_cmds='.sl'
17561 dynamic_linker="$host_os dld.sl"
17562 shlibpath_var=SHLIB_PATH
17563 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17565 soname_spec='${libname}${release}${shared_ext}$major'
17567 esac
17568 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17569 postinstall_cmds='chmod 555 $lib'
17572 irix5* | irix6* | nonstopux*)
17573 case $host_os in
17574 nonstopux*) version_type=nonstopux ;;
17576 if test "$lt_cv_prog_gnu_ld" = yes; then
17577 version_type=linux
17578 else
17579 version_type=irix
17580 fi ;;
17581 esac
17582 need_lib_prefix=no
17583 need_version=no
17584 soname_spec='${libname}${release}${shared_ext}$major'
17585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17586 case $host_os in
17587 irix5* | nonstopux*)
17588 libsuff= shlibsuff=
17591 case $LD in # libtool.m4 will add one of these switches to LD
17592 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17593 libsuff= shlibsuff= libmagic=32-bit;;
17594 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17595 libsuff=32 shlibsuff=N32 libmagic=N32;;
17596 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17597 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17598 *) libsuff= shlibsuff= libmagic=never-match;;
17599 esac
17601 esac
17602 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17603 shlibpath_overrides_runpath=no
17604 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17605 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17606 hardcode_into_libs=yes
17609 # No shared lib support for Linux oldld, aout, or coff.
17610 linux*oldld* | linux*aout* | linux*coff*)
17611 dynamic_linker=no
17614 # This must be Linux ELF.
17615 linux*)
17616 version_type=linux
17617 need_lib_prefix=no
17618 need_version=no
17619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17620 soname_spec='${libname}${release}${shared_ext}$major'
17621 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17622 shlibpath_var=LD_LIBRARY_PATH
17623 shlibpath_overrides_runpath=no
17624 # This implies no fast_install, which is unacceptable.
17625 # Some rework will be needed to allow for fast_install
17626 # before this can be enabled.
17627 hardcode_into_libs=yes
17629 # Append ld.so.conf contents to the search path
17630 if test -f /etc/ld.so.conf; then
17631 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17632 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17635 # We used to test for /lib/ld.so.1 and disable shared libraries on
17636 # powerpc, because MkLinux only supported shared libraries with the
17637 # GNU dynamic linker. Since this was broken with cross compilers,
17638 # most powerpc-linux boxes support dynamic linking these days and
17639 # people can always --disable-shared, the test was removed, and we
17640 # assume the GNU/Linux dynamic linker is in use.
17641 dynamic_linker='GNU/Linux ld.so'
17644 knetbsd*-gnu)
17645 version_type=linux
17646 need_lib_prefix=no
17647 need_version=no
17648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17649 soname_spec='${libname}${release}${shared_ext}$major'
17650 shlibpath_var=LD_LIBRARY_PATH
17651 shlibpath_overrides_runpath=no
17652 hardcode_into_libs=yes
17653 dynamic_linker='GNU ld.so'
17656 netbsd*)
17657 version_type=sunos
17658 need_lib_prefix=no
17659 need_version=no
17660 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17662 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17663 dynamic_linker='NetBSD (a.out) ld.so'
17664 else
17665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17666 soname_spec='${libname}${release}${shared_ext}$major'
17667 dynamic_linker='NetBSD ld.elf_so'
17669 shlibpath_var=LD_LIBRARY_PATH
17670 shlibpath_overrides_runpath=yes
17671 hardcode_into_libs=yes
17674 newsos6)
17675 version_type=linux
17676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17677 shlibpath_var=LD_LIBRARY_PATH
17678 shlibpath_overrides_runpath=yes
17681 nto-qnx*)
17682 version_type=linux
17683 need_lib_prefix=no
17684 need_version=no
17685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17686 soname_spec='${libname}${release}${shared_ext}$major'
17687 shlibpath_var=LD_LIBRARY_PATH
17688 shlibpath_overrides_runpath=yes
17691 openbsd*)
17692 version_type=sunos
17693 need_lib_prefix=no
17694 need_version=no
17695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17696 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17697 shlibpath_var=LD_LIBRARY_PATH
17698 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17699 case $host_os in
17700 openbsd2.[89] | openbsd2.[89].*)
17701 shlibpath_overrides_runpath=no
17704 shlibpath_overrides_runpath=yes
17706 esac
17707 else
17708 shlibpath_overrides_runpath=yes
17712 os2*)
17713 libname_spec='$name'
17714 shrext_cmds=".dll"
17715 need_lib_prefix=no
17716 library_names_spec='$libname${shared_ext} $libname.a'
17717 dynamic_linker='OS/2 ld.exe'
17718 shlibpath_var=LIBPATH
17721 osf3* | osf4* | osf5*)
17722 version_type=osf
17723 need_lib_prefix=no
17724 need_version=no
17725 soname_spec='${libname}${release}${shared_ext}$major'
17726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17727 shlibpath_var=LD_LIBRARY_PATH
17728 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17729 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17732 sco3.2v5*)
17733 version_type=osf
17734 soname_spec='${libname}${release}${shared_ext}$major'
17735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17736 shlibpath_var=LD_LIBRARY_PATH
17739 solaris*)
17740 version_type=linux
17741 need_lib_prefix=no
17742 need_version=no
17743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17744 soname_spec='${libname}${release}${shared_ext}$major'
17745 shlibpath_var=LD_LIBRARY_PATH
17746 shlibpath_overrides_runpath=yes
17747 hardcode_into_libs=yes
17748 # ldd complains unless libraries are executable
17749 postinstall_cmds='chmod +x $lib'
17752 sunos4*)
17753 version_type=sunos
17754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17755 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17756 shlibpath_var=LD_LIBRARY_PATH
17757 shlibpath_overrides_runpath=yes
17758 if test "$with_gnu_ld" = yes; then
17759 need_lib_prefix=no
17761 need_version=yes
17764 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17765 version_type=linux
17766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17767 soname_spec='${libname}${release}${shared_ext}$major'
17768 shlibpath_var=LD_LIBRARY_PATH
17769 case $host_vendor in
17770 sni)
17771 shlibpath_overrides_runpath=no
17772 need_lib_prefix=no
17773 export_dynamic_flag_spec='${wl}-Blargedynsym'
17774 runpath_var=LD_RUN_PATH
17776 siemens)
17777 need_lib_prefix=no
17779 motorola)
17780 need_lib_prefix=no
17781 need_version=no
17782 shlibpath_overrides_runpath=no
17783 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17785 esac
17788 sysv4*MP*)
17789 if test -d /usr/nec ;then
17790 version_type=linux
17791 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17792 soname_spec='$libname${shared_ext}.$major'
17793 shlibpath_var=LD_LIBRARY_PATH
17797 uts4*)
17798 version_type=linux
17799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17800 soname_spec='${libname}${release}${shared_ext}$major'
17801 shlibpath_var=LD_LIBRARY_PATH
17805 dynamic_linker=no
17807 esac
17808 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17809 echo "${ECHO_T}$dynamic_linker" >&6
17810 test "$dynamic_linker" = no && can_build_shared=no
17812 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17813 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17814 hardcode_action_GCJ=
17815 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17816 test -n "$runpath_var_GCJ" || \
17817 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17819 # We can hardcode non-existant directories.
17820 if test "$hardcode_direct_GCJ" != no &&
17821 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17822 # have to relink, otherwise we might link with an installed library
17823 # when we should be linking with a yet-to-be-installed one
17824 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17825 test "$hardcode_minus_L_GCJ" != no; then
17826 # Linking always hardcodes the temporary library directory.
17827 hardcode_action_GCJ=relink
17828 else
17829 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17830 hardcode_action_GCJ=immediate
17832 else
17833 # We cannot hardcode anything, or else we can only hardcode existing
17834 # directories.
17835 hardcode_action_GCJ=unsupported
17837 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17838 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17840 if test "$hardcode_action_GCJ" = relink; then
17841 # Fast installation is not supported
17842 enable_fast_install=no
17843 elif test "$shlibpath_overrides_runpath" = yes ||
17844 test "$enable_shared" = no; then
17845 # Fast installation is not necessary
17846 enable_fast_install=needless
17849 striplib=
17850 old_striplib=
17851 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17852 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17853 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17854 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17855 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17856 echo "$as_me:$LINENO: result: yes" >&5
17857 echo "${ECHO_T}yes" >&6
17858 else
17859 # FIXME - insert some real tests, host_os isn't really good enough
17860 case $host_os in
17861 darwin*)
17862 if test -n "$STRIP" ; then
17863 striplib="$STRIP -x"
17864 echo "$as_me:$LINENO: result: yes" >&5
17865 echo "${ECHO_T}yes" >&6
17866 else
17867 echo "$as_me:$LINENO: result: no" >&5
17868 echo "${ECHO_T}no" >&6
17872 echo "$as_me:$LINENO: result: no" >&5
17873 echo "${ECHO_T}no" >&6
17875 esac
17878 if test "x$enable_dlopen" != xyes; then
17879 enable_dlopen=unknown
17880 enable_dlopen_self=unknown
17881 enable_dlopen_self_static=unknown
17882 else
17883 lt_cv_dlopen=no
17884 lt_cv_dlopen_libs=
17886 case $host_os in
17887 beos*)
17888 lt_cv_dlopen="load_add_on"
17889 lt_cv_dlopen_libs=
17890 lt_cv_dlopen_self=yes
17893 mingw* | pw32*)
17894 lt_cv_dlopen="LoadLibrary"
17895 lt_cv_dlopen_libs=
17898 cygwin*)
17899 lt_cv_dlopen="dlopen"
17900 lt_cv_dlopen_libs=
17903 darwin*)
17904 # if libdl is installed we need to link against it
17905 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17906 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17907 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17908 echo $ECHO_N "(cached) $ECHO_C" >&6
17909 else
17910 ac_check_lib_save_LIBS=$LIBS
17911 LIBS="-ldl $LIBS"
17912 cat >conftest.$ac_ext <<_ACEOF
17913 /* confdefs.h. */
17914 _ACEOF
17915 cat confdefs.h >>conftest.$ac_ext
17916 cat >>conftest.$ac_ext <<_ACEOF
17917 /* end confdefs.h. */
17919 /* Override any gcc2 internal prototype to avoid an error. */
17920 #ifdef __cplusplus
17921 extern "C"
17922 #endif
17923 /* We use char because int might match the return type of a gcc2
17924 builtin and then its argument prototype would still apply. */
17925 char dlopen ();
17927 main ()
17929 dlopen ();
17931 return 0;
17933 _ACEOF
17934 rm -f conftest.$ac_objext conftest$ac_exeext
17935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17936 (eval $ac_link) 2>conftest.er1
17937 ac_status=$?
17938 grep -v '^ *+' conftest.er1 >conftest.err
17939 rm -f conftest.er1
17940 cat conftest.err >&5
17941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17942 (exit $ac_status); } &&
17943 { ac_try='test -z "$ac_c_werror_flag"
17944 || test ! -s conftest.err'
17945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17946 (eval $ac_try) 2>&5
17947 ac_status=$?
17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); }; } &&
17950 { ac_try='test -s conftest$ac_exeext'
17951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17952 (eval $ac_try) 2>&5
17953 ac_status=$?
17954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17955 (exit $ac_status); }; }; then
17956 ac_cv_lib_dl_dlopen=yes
17957 else
17958 echo "$as_me: failed program was:" >&5
17959 sed 's/^/| /' conftest.$ac_ext >&5
17961 ac_cv_lib_dl_dlopen=no
17963 rm -f conftest.err conftest.$ac_objext \
17964 conftest$ac_exeext conftest.$ac_ext
17965 LIBS=$ac_check_lib_save_LIBS
17967 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17968 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17969 if test $ac_cv_lib_dl_dlopen = yes; then
17970 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17971 else
17973 lt_cv_dlopen="dyld"
17974 lt_cv_dlopen_libs=
17975 lt_cv_dlopen_self=yes
17982 echo "$as_me:$LINENO: checking for shl_load" >&5
17983 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17984 if test "${ac_cv_func_shl_load+set}" = set; then
17985 echo $ECHO_N "(cached) $ECHO_C" >&6
17986 else
17987 cat >conftest.$ac_ext <<_ACEOF
17988 /* confdefs.h. */
17989 _ACEOF
17990 cat confdefs.h >>conftest.$ac_ext
17991 cat >>conftest.$ac_ext <<_ACEOF
17992 /* end confdefs.h. */
17993 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17995 #define shl_load innocuous_shl_load
17997 /* System header to define __stub macros and hopefully few prototypes,
17998 which can conflict with char shl_load (); below.
17999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18000 <limits.h> exists even on freestanding compilers. */
18002 #ifdef __STDC__
18003 # include <limits.h>
18004 #else
18005 # include <assert.h>
18006 #endif
18008 #undef shl_load
18010 /* Override any gcc2 internal prototype to avoid an error. */
18011 #ifdef __cplusplus
18012 extern "C"
18014 #endif
18015 /* We use char because int might match the return type of a gcc2
18016 builtin and then its argument prototype would still apply. */
18017 char shl_load ();
18018 /* The GNU C library defines this for functions which it implements
18019 to always fail with ENOSYS. Some functions are actually named
18020 something starting with __ and the normal name is an alias. */
18021 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18022 choke me
18023 #else
18024 char (*f) () = shl_load;
18025 #endif
18026 #ifdef __cplusplus
18028 #endif
18031 main ()
18033 return f != shl_load;
18035 return 0;
18037 _ACEOF
18038 rm -f conftest.$ac_objext conftest$ac_exeext
18039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18040 (eval $ac_link) 2>conftest.er1
18041 ac_status=$?
18042 grep -v '^ *+' conftest.er1 >conftest.err
18043 rm -f conftest.er1
18044 cat conftest.err >&5
18045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046 (exit $ac_status); } &&
18047 { ac_try='test -z "$ac_c_werror_flag"
18048 || test ! -s conftest.err'
18049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18050 (eval $ac_try) 2>&5
18051 ac_status=$?
18052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18053 (exit $ac_status); }; } &&
18054 { ac_try='test -s conftest$ac_exeext'
18055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18056 (eval $ac_try) 2>&5
18057 ac_status=$?
18058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18059 (exit $ac_status); }; }; then
18060 ac_cv_func_shl_load=yes
18061 else
18062 echo "$as_me: failed program was:" >&5
18063 sed 's/^/| /' conftest.$ac_ext >&5
18065 ac_cv_func_shl_load=no
18067 rm -f conftest.err conftest.$ac_objext \
18068 conftest$ac_exeext conftest.$ac_ext
18070 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18071 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18072 if test $ac_cv_func_shl_load = yes; then
18073 lt_cv_dlopen="shl_load"
18074 else
18075 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18076 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18077 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18078 echo $ECHO_N "(cached) $ECHO_C" >&6
18079 else
18080 ac_check_lib_save_LIBS=$LIBS
18081 LIBS="-ldld $LIBS"
18082 cat >conftest.$ac_ext <<_ACEOF
18083 /* confdefs.h. */
18084 _ACEOF
18085 cat confdefs.h >>conftest.$ac_ext
18086 cat >>conftest.$ac_ext <<_ACEOF
18087 /* end confdefs.h. */
18089 /* Override any gcc2 internal prototype to avoid an error. */
18090 #ifdef __cplusplus
18091 extern "C"
18092 #endif
18093 /* We use char because int might match the return type of a gcc2
18094 builtin and then its argument prototype would still apply. */
18095 char shl_load ();
18097 main ()
18099 shl_load ();
18101 return 0;
18103 _ACEOF
18104 rm -f conftest.$ac_objext conftest$ac_exeext
18105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18106 (eval $ac_link) 2>conftest.er1
18107 ac_status=$?
18108 grep -v '^ *+' conftest.er1 >conftest.err
18109 rm -f conftest.er1
18110 cat conftest.err >&5
18111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); } &&
18113 { ac_try='test -z "$ac_c_werror_flag"
18114 || test ! -s conftest.err'
18115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18116 (eval $ac_try) 2>&5
18117 ac_status=$?
18118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119 (exit $ac_status); }; } &&
18120 { ac_try='test -s conftest$ac_exeext'
18121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18122 (eval $ac_try) 2>&5
18123 ac_status=$?
18124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18125 (exit $ac_status); }; }; then
18126 ac_cv_lib_dld_shl_load=yes
18127 else
18128 echo "$as_me: failed program was:" >&5
18129 sed 's/^/| /' conftest.$ac_ext >&5
18131 ac_cv_lib_dld_shl_load=no
18133 rm -f conftest.err conftest.$ac_objext \
18134 conftest$ac_exeext conftest.$ac_ext
18135 LIBS=$ac_check_lib_save_LIBS
18137 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18138 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18139 if test $ac_cv_lib_dld_shl_load = yes; then
18140 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18141 else
18142 echo "$as_me:$LINENO: checking for dlopen" >&5
18143 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18144 if test "${ac_cv_func_dlopen+set}" = set; then
18145 echo $ECHO_N "(cached) $ECHO_C" >&6
18146 else
18147 cat >conftest.$ac_ext <<_ACEOF
18148 /* confdefs.h. */
18149 _ACEOF
18150 cat confdefs.h >>conftest.$ac_ext
18151 cat >>conftest.$ac_ext <<_ACEOF
18152 /* end confdefs.h. */
18153 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18155 #define dlopen innocuous_dlopen
18157 /* System header to define __stub macros and hopefully few prototypes,
18158 which can conflict with char dlopen (); below.
18159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18160 <limits.h> exists even on freestanding compilers. */
18162 #ifdef __STDC__
18163 # include <limits.h>
18164 #else
18165 # include <assert.h>
18166 #endif
18168 #undef dlopen
18170 /* Override any gcc2 internal prototype to avoid an error. */
18171 #ifdef __cplusplus
18172 extern "C"
18174 #endif
18175 /* We use char because int might match the return type of a gcc2
18176 builtin and then its argument prototype would still apply. */
18177 char dlopen ();
18178 /* The GNU C library defines this for functions which it implements
18179 to always fail with ENOSYS. Some functions are actually named
18180 something starting with __ and the normal name is an alias. */
18181 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18182 choke me
18183 #else
18184 char (*f) () = dlopen;
18185 #endif
18186 #ifdef __cplusplus
18188 #endif
18191 main ()
18193 return f != dlopen;
18195 return 0;
18197 _ACEOF
18198 rm -f conftest.$ac_objext conftest$ac_exeext
18199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18200 (eval $ac_link) 2>conftest.er1
18201 ac_status=$?
18202 grep -v '^ *+' conftest.er1 >conftest.err
18203 rm -f conftest.er1
18204 cat conftest.err >&5
18205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206 (exit $ac_status); } &&
18207 { ac_try='test -z "$ac_c_werror_flag"
18208 || test ! -s conftest.err'
18209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18210 (eval $ac_try) 2>&5
18211 ac_status=$?
18212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213 (exit $ac_status); }; } &&
18214 { ac_try='test -s conftest$ac_exeext'
18215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18216 (eval $ac_try) 2>&5
18217 ac_status=$?
18218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219 (exit $ac_status); }; }; then
18220 ac_cv_func_dlopen=yes
18221 else
18222 echo "$as_me: failed program was:" >&5
18223 sed 's/^/| /' conftest.$ac_ext >&5
18225 ac_cv_func_dlopen=no
18227 rm -f conftest.err conftest.$ac_objext \
18228 conftest$ac_exeext conftest.$ac_ext
18230 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18231 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18232 if test $ac_cv_func_dlopen = yes; then
18233 lt_cv_dlopen="dlopen"
18234 else
18235 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18236 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18237 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18238 echo $ECHO_N "(cached) $ECHO_C" >&6
18239 else
18240 ac_check_lib_save_LIBS=$LIBS
18241 LIBS="-ldl $LIBS"
18242 cat >conftest.$ac_ext <<_ACEOF
18243 /* confdefs.h. */
18244 _ACEOF
18245 cat confdefs.h >>conftest.$ac_ext
18246 cat >>conftest.$ac_ext <<_ACEOF
18247 /* end confdefs.h. */
18249 /* Override any gcc2 internal prototype to avoid an error. */
18250 #ifdef __cplusplus
18251 extern "C"
18252 #endif
18253 /* We use char because int might match the return type of a gcc2
18254 builtin and then its argument prototype would still apply. */
18255 char dlopen ();
18257 main ()
18259 dlopen ();
18261 return 0;
18263 _ACEOF
18264 rm -f conftest.$ac_objext conftest$ac_exeext
18265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18266 (eval $ac_link) 2>conftest.er1
18267 ac_status=$?
18268 grep -v '^ *+' conftest.er1 >conftest.err
18269 rm -f conftest.er1
18270 cat conftest.err >&5
18271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272 (exit $ac_status); } &&
18273 { ac_try='test -z "$ac_c_werror_flag"
18274 || test ! -s conftest.err'
18275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18276 (eval $ac_try) 2>&5
18277 ac_status=$?
18278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279 (exit $ac_status); }; } &&
18280 { ac_try='test -s conftest$ac_exeext'
18281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18282 (eval $ac_try) 2>&5
18283 ac_status=$?
18284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); }; }; then
18286 ac_cv_lib_dl_dlopen=yes
18287 else
18288 echo "$as_me: failed program was:" >&5
18289 sed 's/^/| /' conftest.$ac_ext >&5
18291 ac_cv_lib_dl_dlopen=no
18293 rm -f conftest.err conftest.$ac_objext \
18294 conftest$ac_exeext conftest.$ac_ext
18295 LIBS=$ac_check_lib_save_LIBS
18297 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18298 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18299 if test $ac_cv_lib_dl_dlopen = yes; then
18300 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18301 else
18302 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18303 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18304 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18305 echo $ECHO_N "(cached) $ECHO_C" >&6
18306 else
18307 ac_check_lib_save_LIBS=$LIBS
18308 LIBS="-lsvld $LIBS"
18309 cat >conftest.$ac_ext <<_ACEOF
18310 /* confdefs.h. */
18311 _ACEOF
18312 cat confdefs.h >>conftest.$ac_ext
18313 cat >>conftest.$ac_ext <<_ACEOF
18314 /* end confdefs.h. */
18316 /* Override any gcc2 internal prototype to avoid an error. */
18317 #ifdef __cplusplus
18318 extern "C"
18319 #endif
18320 /* We use char because int might match the return type of a gcc2
18321 builtin and then its argument prototype would still apply. */
18322 char dlopen ();
18324 main ()
18326 dlopen ();
18328 return 0;
18330 _ACEOF
18331 rm -f conftest.$ac_objext conftest$ac_exeext
18332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18333 (eval $ac_link) 2>conftest.er1
18334 ac_status=$?
18335 grep -v '^ *+' conftest.er1 >conftest.err
18336 rm -f conftest.er1
18337 cat conftest.err >&5
18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); } &&
18340 { ac_try='test -z "$ac_c_werror_flag"
18341 || test ! -s conftest.err'
18342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18343 (eval $ac_try) 2>&5
18344 ac_status=$?
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); }; } &&
18347 { ac_try='test -s conftest$ac_exeext'
18348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18349 (eval $ac_try) 2>&5
18350 ac_status=$?
18351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352 (exit $ac_status); }; }; then
18353 ac_cv_lib_svld_dlopen=yes
18354 else
18355 echo "$as_me: failed program was:" >&5
18356 sed 's/^/| /' conftest.$ac_ext >&5
18358 ac_cv_lib_svld_dlopen=no
18360 rm -f conftest.err conftest.$ac_objext \
18361 conftest$ac_exeext conftest.$ac_ext
18362 LIBS=$ac_check_lib_save_LIBS
18364 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18365 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18366 if test $ac_cv_lib_svld_dlopen = yes; then
18367 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18368 else
18369 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18370 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18371 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18372 echo $ECHO_N "(cached) $ECHO_C" >&6
18373 else
18374 ac_check_lib_save_LIBS=$LIBS
18375 LIBS="-ldld $LIBS"
18376 cat >conftest.$ac_ext <<_ACEOF
18377 /* confdefs.h. */
18378 _ACEOF
18379 cat confdefs.h >>conftest.$ac_ext
18380 cat >>conftest.$ac_ext <<_ACEOF
18381 /* end confdefs.h. */
18383 /* Override any gcc2 internal prototype to avoid an error. */
18384 #ifdef __cplusplus
18385 extern "C"
18386 #endif
18387 /* We use char because int might match the return type of a gcc2
18388 builtin and then its argument prototype would still apply. */
18389 char dld_link ();
18391 main ()
18393 dld_link ();
18395 return 0;
18397 _ACEOF
18398 rm -f conftest.$ac_objext conftest$ac_exeext
18399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18400 (eval $ac_link) 2>conftest.er1
18401 ac_status=$?
18402 grep -v '^ *+' conftest.er1 >conftest.err
18403 rm -f conftest.er1
18404 cat conftest.err >&5
18405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18406 (exit $ac_status); } &&
18407 { ac_try='test -z "$ac_c_werror_flag"
18408 || test ! -s conftest.err'
18409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18410 (eval $ac_try) 2>&5
18411 ac_status=$?
18412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18413 (exit $ac_status); }; } &&
18414 { ac_try='test -s conftest$ac_exeext'
18415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18416 (eval $ac_try) 2>&5
18417 ac_status=$?
18418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419 (exit $ac_status); }; }; then
18420 ac_cv_lib_dld_dld_link=yes
18421 else
18422 echo "$as_me: failed program was:" >&5
18423 sed 's/^/| /' conftest.$ac_ext >&5
18425 ac_cv_lib_dld_dld_link=no
18427 rm -f conftest.err conftest.$ac_objext \
18428 conftest$ac_exeext conftest.$ac_ext
18429 LIBS=$ac_check_lib_save_LIBS
18431 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18432 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18433 if test $ac_cv_lib_dld_dld_link = yes; then
18434 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18453 esac
18455 if test "x$lt_cv_dlopen" != xno; then
18456 enable_dlopen=yes
18457 else
18458 enable_dlopen=no
18461 case $lt_cv_dlopen in
18462 dlopen)
18463 save_CPPFLAGS="$CPPFLAGS"
18464 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18466 save_LDFLAGS="$LDFLAGS"
18467 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18469 save_LIBS="$LIBS"
18470 LIBS="$lt_cv_dlopen_libs $LIBS"
18472 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18473 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18474 if test "${lt_cv_dlopen_self+set}" = set; then
18475 echo $ECHO_N "(cached) $ECHO_C" >&6
18476 else
18477 if test "$cross_compiling" = yes; then :
18478 lt_cv_dlopen_self=cross
18479 else
18480 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18481 lt_status=$lt_dlunknown
18482 cat > conftest.$ac_ext <<EOF
18483 #line 18483 "configure"
18484 #include "confdefs.h"
18486 #if HAVE_DLFCN_H
18487 #include <dlfcn.h>
18488 #endif
18490 #include <stdio.h>
18492 #ifdef RTLD_GLOBAL
18493 # define LT_DLGLOBAL RTLD_GLOBAL
18494 #else
18495 # ifdef DL_GLOBAL
18496 # define LT_DLGLOBAL DL_GLOBAL
18497 # else
18498 # define LT_DLGLOBAL 0
18499 # endif
18500 #endif
18502 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18503 find out it does not work in some platform. */
18504 #ifndef LT_DLLAZY_OR_NOW
18505 # ifdef RTLD_LAZY
18506 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18507 # else
18508 # ifdef DL_LAZY
18509 # define LT_DLLAZY_OR_NOW DL_LAZY
18510 # else
18511 # ifdef RTLD_NOW
18512 # define LT_DLLAZY_OR_NOW RTLD_NOW
18513 # else
18514 # ifdef DL_NOW
18515 # define LT_DLLAZY_OR_NOW DL_NOW
18516 # else
18517 # define LT_DLLAZY_OR_NOW 0
18518 # endif
18519 # endif
18520 # endif
18521 # endif
18522 #endif
18524 #ifdef __cplusplus
18525 extern "C" void exit (int);
18526 #endif
18528 void fnord() { int i=42;}
18529 int main ()
18531 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18532 int status = $lt_dlunknown;
18534 if (self)
18536 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18537 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18538 /* dlclose (self); */
18541 exit (status);
18544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18545 (eval $ac_link) 2>&5
18546 ac_status=$?
18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18549 (./conftest; exit; ) 2>/dev/null
18550 lt_status=$?
18551 case x$lt_status in
18552 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18553 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18554 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18555 esac
18556 else :
18557 # compilation failed
18558 lt_cv_dlopen_self=no
18561 rm -fr conftest*
18565 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18566 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18568 if test "x$lt_cv_dlopen_self" = xyes; then
18569 LDFLAGS="$LDFLAGS $link_static_flag"
18570 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18571 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18572 if test "${lt_cv_dlopen_self_static+set}" = set; then
18573 echo $ECHO_N "(cached) $ECHO_C" >&6
18574 else
18575 if test "$cross_compiling" = yes; then :
18576 lt_cv_dlopen_self_static=cross
18577 else
18578 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18579 lt_status=$lt_dlunknown
18580 cat > conftest.$ac_ext <<EOF
18581 #line 18581 "configure"
18582 #include "confdefs.h"
18584 #if HAVE_DLFCN_H
18585 #include <dlfcn.h>
18586 #endif
18588 #include <stdio.h>
18590 #ifdef RTLD_GLOBAL
18591 # define LT_DLGLOBAL RTLD_GLOBAL
18592 #else
18593 # ifdef DL_GLOBAL
18594 # define LT_DLGLOBAL DL_GLOBAL
18595 # else
18596 # define LT_DLGLOBAL 0
18597 # endif
18598 #endif
18600 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18601 find out it does not work in some platform. */
18602 #ifndef LT_DLLAZY_OR_NOW
18603 # ifdef RTLD_LAZY
18604 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18605 # else
18606 # ifdef DL_LAZY
18607 # define LT_DLLAZY_OR_NOW DL_LAZY
18608 # else
18609 # ifdef RTLD_NOW
18610 # define LT_DLLAZY_OR_NOW RTLD_NOW
18611 # else
18612 # ifdef DL_NOW
18613 # define LT_DLLAZY_OR_NOW DL_NOW
18614 # else
18615 # define LT_DLLAZY_OR_NOW 0
18616 # endif
18617 # endif
18618 # endif
18619 # endif
18620 #endif
18622 #ifdef __cplusplus
18623 extern "C" void exit (int);
18624 #endif
18626 void fnord() { int i=42;}
18627 int main ()
18629 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18630 int status = $lt_dlunknown;
18632 if (self)
18634 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18635 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18636 /* dlclose (self); */
18639 exit (status);
18642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18643 (eval $ac_link) 2>&5
18644 ac_status=$?
18645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18646 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18647 (./conftest; exit; ) 2>/dev/null
18648 lt_status=$?
18649 case x$lt_status in
18650 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18651 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18652 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18653 esac
18654 else :
18655 # compilation failed
18656 lt_cv_dlopen_self_static=no
18659 rm -fr conftest*
18663 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18664 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18667 CPPFLAGS="$save_CPPFLAGS"
18668 LDFLAGS="$save_LDFLAGS"
18669 LIBS="$save_LIBS"
18671 esac
18673 case $lt_cv_dlopen_self in
18674 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18675 *) enable_dlopen_self=unknown ;;
18676 esac
18678 case $lt_cv_dlopen_self_static in
18679 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18680 *) enable_dlopen_self_static=unknown ;;
18681 esac
18685 # The else clause should only fire when bootstrapping the
18686 # libtool distribution, otherwise you forgot to ship ltmain.sh
18687 # with your package, and you will get complaints that there are
18688 # no rules to generate ltmain.sh.
18689 if test -f "$ltmain"; then
18690 # See if we are running on zsh, and set the options which allow our commands through
18691 # without removal of \ escapes.
18692 if test -n "${ZSH_VERSION+set}" ; then
18693 setopt NO_GLOB_SUBST
18695 # Now quote all the things that may contain metacharacters while being
18696 # careful not to overquote the AC_SUBSTed values. We take copies of the
18697 # variables and quote the copies for generation of the libtool script.
18698 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18699 SED SHELL STRIP \
18700 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18701 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18702 deplibs_check_method reload_flag reload_cmds need_locks \
18703 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18704 lt_cv_sys_global_symbol_to_c_name_address \
18705 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18706 old_postinstall_cmds old_postuninstall_cmds \
18707 compiler_GCJ \
18708 CC_GCJ \
18709 LD_GCJ \
18710 lt_prog_compiler_wl_GCJ \
18711 lt_prog_compiler_pic_GCJ \
18712 lt_prog_compiler_static_GCJ \
18713 lt_prog_compiler_no_builtin_flag_GCJ \
18714 export_dynamic_flag_spec_GCJ \
18715 thread_safe_flag_spec_GCJ \
18716 whole_archive_flag_spec_GCJ \
18717 enable_shared_with_static_runtimes_GCJ \
18718 old_archive_cmds_GCJ \
18719 old_archive_from_new_cmds_GCJ \
18720 predep_objects_GCJ \
18721 postdep_objects_GCJ \
18722 predeps_GCJ \
18723 postdeps_GCJ \
18724 compiler_lib_search_path_GCJ \
18725 archive_cmds_GCJ \
18726 archive_expsym_cmds_GCJ \
18727 postinstall_cmds_GCJ \
18728 postuninstall_cmds_GCJ \
18729 old_archive_from_expsyms_cmds_GCJ \
18730 allow_undefined_flag_GCJ \
18731 no_undefined_flag_GCJ \
18732 export_symbols_cmds_GCJ \
18733 hardcode_libdir_flag_spec_GCJ \
18734 hardcode_libdir_flag_spec_ld_GCJ \
18735 hardcode_libdir_separator_GCJ \
18736 hardcode_automatic_GCJ \
18737 module_cmds_GCJ \
18738 module_expsym_cmds_GCJ \
18739 lt_cv_prog_compiler_c_o_GCJ \
18740 exclude_expsyms_GCJ \
18741 include_expsyms_GCJ; do
18743 case $var in
18744 old_archive_cmds_GCJ | \
18745 old_archive_from_new_cmds_GCJ | \
18746 archive_cmds_GCJ | \
18747 archive_expsym_cmds_GCJ | \
18748 module_cmds_GCJ | \
18749 module_expsym_cmds_GCJ | \
18750 old_archive_from_expsyms_cmds_GCJ | \
18751 export_symbols_cmds_GCJ | \
18752 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18753 postinstall_cmds | postuninstall_cmds | \
18754 old_postinstall_cmds | old_postuninstall_cmds | \
18755 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18756 # Double-quote double-evaled strings.
18757 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18760 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18762 esac
18763 done
18765 case $lt_echo in
18766 *'\$0 --fallback-echo"')
18767 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18769 esac
18771 cfgfile="$ofile"
18773 cat <<__EOF__ >> "$cfgfile"
18774 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18776 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18778 # Shell to use when invoking shell scripts.
18779 SHELL=$lt_SHELL
18781 # Whether or not to build shared libraries.
18782 build_libtool_libs=$enable_shared
18784 # Whether or not to build static libraries.
18785 build_old_libs=$enable_static
18787 # Whether or not to add -lc for building shared libraries.
18788 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18790 # Whether or not to disallow shared libs when runtime libs are static
18791 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18793 # Whether or not to optimize for fast installation.
18794 fast_install=$enable_fast_install
18796 # The host system.
18797 host_alias=$host_alias
18798 host=$host
18799 host_os=$host_os
18801 # The build system.
18802 build_alias=$build_alias
18803 build=$build
18804 build_os=$build_os
18806 # An echo program that does not interpret backslashes.
18807 echo=$lt_echo
18809 # The archiver.
18810 AR=$lt_AR
18811 AR_FLAGS=$lt_AR_FLAGS
18813 # A C compiler.
18814 LTCC=$lt_LTCC
18816 # A language-specific compiler.
18817 CC=$lt_compiler_GCJ
18819 # Is the compiler the GNU C compiler?
18820 with_gcc=$GCC_GCJ
18822 # An ERE matcher.
18823 EGREP=$lt_EGREP
18825 # The linker used to build libraries.
18826 LD=$lt_LD_GCJ
18828 # Whether we need hard or soft links.
18829 LN_S=$lt_LN_S
18831 # A BSD-compatible nm program.
18832 NM=$lt_NM
18834 # A symbol stripping program
18835 STRIP=$lt_STRIP
18837 # Used to examine libraries when file_magic_cmd begins "file"
18838 MAGIC_CMD=$MAGIC_CMD
18840 # Used on cygwin: DLL creation program.
18841 DLLTOOL="$DLLTOOL"
18843 # Used on cygwin: object dumper.
18844 OBJDUMP="$OBJDUMP"
18846 # Used on cygwin: assembler.
18847 AS="$AS"
18849 # The name of the directory that contains temporary libtool files.
18850 objdir=$objdir
18852 # How to create reloadable object files.
18853 reload_flag=$lt_reload_flag
18854 reload_cmds=$lt_reload_cmds
18856 # How to pass a linker flag through the compiler.
18857 wl=$lt_lt_prog_compiler_wl_GCJ
18859 # Object file suffix (normally "o").
18860 objext="$ac_objext"
18862 # Old archive suffix (normally "a").
18863 libext="$libext"
18865 # Shared library suffix (normally ".so").
18866 shrext_cmds='$shrext_cmds'
18868 # Executable file suffix (normally "").
18869 exeext="$exeext"
18871 # Additional compiler flags for building library objects.
18872 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18873 pic_mode=$pic_mode
18875 # What is the maximum length of a command?
18876 max_cmd_len=$lt_cv_sys_max_cmd_len
18878 # Does compiler simultaneously support -c and -o options?
18879 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18881 # Must we lock files when doing compilation ?
18882 need_locks=$lt_need_locks
18884 # Do we need the lib prefix for modules?
18885 need_lib_prefix=$need_lib_prefix
18887 # Do we need a version for libraries?
18888 need_version=$need_version
18890 # Whether dlopen is supported.
18891 dlopen_support=$enable_dlopen
18893 # Whether dlopen of programs is supported.
18894 dlopen_self=$enable_dlopen_self
18896 # Whether dlopen of statically linked programs is supported.
18897 dlopen_self_static=$enable_dlopen_self_static
18899 # Compiler flag to prevent dynamic linking.
18900 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18902 # Compiler flag to turn off builtin functions.
18903 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18905 # Compiler flag to allow reflexive dlopens.
18906 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18908 # Compiler flag to generate shared objects directly from archives.
18909 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18911 # Compiler flag to generate thread-safe objects.
18912 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18914 # Library versioning type.
18915 version_type=$version_type
18917 # Format of library name prefix.
18918 libname_spec=$lt_libname_spec
18920 # List of archive names. First name is the real one, the rest are links.
18921 # The last name is the one that the linker finds with -lNAME.
18922 library_names_spec=$lt_library_names_spec
18924 # The coded name of the library, if different from the real name.
18925 soname_spec=$lt_soname_spec
18927 # Commands used to build and install an old-style archive.
18928 RANLIB=$lt_RANLIB
18929 old_archive_cmds=$lt_old_archive_cmds_GCJ
18930 old_postinstall_cmds=$lt_old_postinstall_cmds
18931 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18933 # Create an old-style archive from a shared archive.
18934 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18936 # Create a temporary old-style archive to link instead of a shared archive.
18937 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18939 # Commands used to build and install a shared archive.
18940 archive_cmds=$lt_archive_cmds_GCJ
18941 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18942 postinstall_cmds=$lt_postinstall_cmds
18943 postuninstall_cmds=$lt_postuninstall_cmds
18945 # Commands used to build a loadable module (assumed same as above if empty)
18946 module_cmds=$lt_module_cmds_GCJ
18947 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18949 # Commands to strip libraries.
18950 old_striplib=$lt_old_striplib
18951 striplib=$lt_striplib
18953 # Dependencies to place before the objects being linked to create a
18954 # shared library.
18955 predep_objects=$lt_predep_objects_GCJ
18957 # Dependencies to place after the objects being linked to create a
18958 # shared library.
18959 postdep_objects=$lt_postdep_objects_GCJ
18961 # Dependencies to place before the objects being linked to create a
18962 # shared library.
18963 predeps=$lt_predeps_GCJ
18965 # Dependencies to place after the objects being linked to create a
18966 # shared library.
18967 postdeps=$lt_postdeps_GCJ
18969 # The library search path used internally by the compiler when linking
18970 # a shared library.
18971 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18973 # Method to check whether dependent libraries are shared objects.
18974 deplibs_check_method=$lt_deplibs_check_method
18976 # Command to use when deplibs_check_method == file_magic.
18977 file_magic_cmd=$lt_file_magic_cmd
18979 # Flag that allows shared libraries with undefined symbols to be built.
18980 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18982 # Flag that forces no undefined symbols.
18983 no_undefined_flag=$lt_no_undefined_flag_GCJ
18985 # Commands used to finish a libtool library installation in a directory.
18986 finish_cmds=$lt_finish_cmds
18988 # Same as above, but a single script fragment to be evaled but not shown.
18989 finish_eval=$lt_finish_eval
18991 # Take the output of nm and produce a listing of raw symbols and C names.
18992 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18994 # Transform the output of nm in a proper C declaration
18995 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18997 # Transform the output of nm in a C name address pair
18998 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19000 # This is the shared library runtime path variable.
19001 runpath_var=$runpath_var
19003 # This is the shared library path variable.
19004 shlibpath_var=$shlibpath_var
19006 # Is shlibpath searched before the hard-coded library search path?
19007 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19009 # How to hardcode a shared library path into an executable.
19010 hardcode_action=$hardcode_action_GCJ
19012 # Whether we should hardcode library paths into libraries.
19013 hardcode_into_libs=$hardcode_into_libs
19015 # Flag to hardcode \$libdir into a binary during linking.
19016 # This must work even if \$libdir does not exist.
19017 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19019 # If ld is used when linking, flag to hardcode \$libdir into
19020 # a binary during linking. This must work even if \$libdir does
19021 # not exist.
19022 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19024 # Whether we need a single -rpath flag with a separated argument.
19025 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19027 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19028 # resulting binary.
19029 hardcode_direct=$hardcode_direct_GCJ
19031 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19032 # resulting binary.
19033 hardcode_minus_L=$hardcode_minus_L_GCJ
19035 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19036 # the resulting binary.
19037 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19039 # Set to yes if building a shared library automatically hardcodes DIR into the library
19040 # and all subsequent libraries and executables linked against it.
19041 hardcode_automatic=$hardcode_automatic_GCJ
19043 # Variables whose values should be saved in libtool wrapper scripts and
19044 # restored at relink time.
19045 variables_saved_for_relink="$variables_saved_for_relink"
19047 # Whether libtool must link a program against all its dependency libraries.
19048 link_all_deplibs=$link_all_deplibs_GCJ
19050 # Compile-time system search path for libraries
19051 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19053 # Run-time system search path for libraries
19054 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19056 # Fix the shell variable \$srcfile for the compiler.
19057 fix_srcfile_path="$fix_srcfile_path_GCJ"
19059 # Set to yes if exported symbols are required.
19060 always_export_symbols=$always_export_symbols_GCJ
19062 # The commands to list exported symbols.
19063 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19065 # The commands to extract the exported symbol list from a shared archive.
19066 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19068 # Symbols that should not be listed in the preloaded symbols.
19069 exclude_expsyms=$lt_exclude_expsyms_GCJ
19071 # Symbols that must always be exported.
19072 include_expsyms=$lt_include_expsyms_GCJ
19074 # ### END LIBTOOL TAG CONFIG: $tagname
19076 __EOF__
19079 else
19080 # If there is no Makefile yet, we rely on a make rule to execute
19081 # `config.status --recheck' to rerun these tests and create the
19082 # libtool script then.
19083 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19084 if test -f "$ltmain_in"; then
19085 test -f Makefile && make "$ltmain"
19090 ac_ext=c
19091 ac_cpp='$CPP $CPPFLAGS'
19092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19096 CC="$lt_save_CC"
19098 else
19099 tagname=""
19107 # Source file extension for RC test sources.
19108 ac_ext=rc
19110 # Object file extension for compiled RC test sources.
19111 objext=o
19112 objext_RC=$objext
19114 # Code to be used in simple compile tests
19115 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19117 # Code to be used in simple link tests
19118 lt_simple_link_test_code="$lt_simple_compile_test_code"
19120 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19122 # If no C compiler was specified, use CC.
19123 LTCC=${LTCC-"$CC"}
19125 # Allow CC to be a program name with arguments.
19126 compiler=$CC
19129 # Allow CC to be a program name with arguments.
19130 lt_save_CC="$CC"
19131 CC=${RC-"windres"}
19132 compiler=$CC
19133 compiler_RC=$CC
19134 lt_cv_prog_compiler_c_o_RC=yes
19136 # The else clause should only fire when bootstrapping the
19137 # libtool distribution, otherwise you forgot to ship ltmain.sh
19138 # with your package, and you will get complaints that there are
19139 # no rules to generate ltmain.sh.
19140 if test -f "$ltmain"; then
19141 # See if we are running on zsh, and set the options which allow our commands through
19142 # without removal of \ escapes.
19143 if test -n "${ZSH_VERSION+set}" ; then
19144 setopt NO_GLOB_SUBST
19146 # Now quote all the things that may contain metacharacters while being
19147 # careful not to overquote the AC_SUBSTed values. We take copies of the
19148 # variables and quote the copies for generation of the libtool script.
19149 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19150 SED SHELL STRIP \
19151 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19152 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19153 deplibs_check_method reload_flag reload_cmds need_locks \
19154 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19155 lt_cv_sys_global_symbol_to_c_name_address \
19156 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19157 old_postinstall_cmds old_postuninstall_cmds \
19158 compiler_RC \
19159 CC_RC \
19160 LD_RC \
19161 lt_prog_compiler_wl_RC \
19162 lt_prog_compiler_pic_RC \
19163 lt_prog_compiler_static_RC \
19164 lt_prog_compiler_no_builtin_flag_RC \
19165 export_dynamic_flag_spec_RC \
19166 thread_safe_flag_spec_RC \
19167 whole_archive_flag_spec_RC \
19168 enable_shared_with_static_runtimes_RC \
19169 old_archive_cmds_RC \
19170 old_archive_from_new_cmds_RC \
19171 predep_objects_RC \
19172 postdep_objects_RC \
19173 predeps_RC \
19174 postdeps_RC \
19175 compiler_lib_search_path_RC \
19176 archive_cmds_RC \
19177 archive_expsym_cmds_RC \
19178 postinstall_cmds_RC \
19179 postuninstall_cmds_RC \
19180 old_archive_from_expsyms_cmds_RC \
19181 allow_undefined_flag_RC \
19182 no_undefined_flag_RC \
19183 export_symbols_cmds_RC \
19184 hardcode_libdir_flag_spec_RC \
19185 hardcode_libdir_flag_spec_ld_RC \
19186 hardcode_libdir_separator_RC \
19187 hardcode_automatic_RC \
19188 module_cmds_RC \
19189 module_expsym_cmds_RC \
19190 lt_cv_prog_compiler_c_o_RC \
19191 exclude_expsyms_RC \
19192 include_expsyms_RC; do
19194 case $var in
19195 old_archive_cmds_RC | \
19196 old_archive_from_new_cmds_RC | \
19197 archive_cmds_RC | \
19198 archive_expsym_cmds_RC | \
19199 module_cmds_RC | \
19200 module_expsym_cmds_RC | \
19201 old_archive_from_expsyms_cmds_RC | \
19202 export_symbols_cmds_RC | \
19203 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19204 postinstall_cmds | postuninstall_cmds | \
19205 old_postinstall_cmds | old_postuninstall_cmds | \
19206 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19207 # Double-quote double-evaled strings.
19208 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19211 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19213 esac
19214 done
19216 case $lt_echo in
19217 *'\$0 --fallback-echo"')
19218 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19220 esac
19222 cfgfile="$ofile"
19224 cat <<__EOF__ >> "$cfgfile"
19225 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19227 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19229 # Shell to use when invoking shell scripts.
19230 SHELL=$lt_SHELL
19232 # Whether or not to build shared libraries.
19233 build_libtool_libs=$enable_shared
19235 # Whether or not to build static libraries.
19236 build_old_libs=$enable_static
19238 # Whether or not to add -lc for building shared libraries.
19239 build_libtool_need_lc=$archive_cmds_need_lc_RC
19241 # Whether or not to disallow shared libs when runtime libs are static
19242 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19244 # Whether or not to optimize for fast installation.
19245 fast_install=$enable_fast_install
19247 # The host system.
19248 host_alias=$host_alias
19249 host=$host
19250 host_os=$host_os
19252 # The build system.
19253 build_alias=$build_alias
19254 build=$build
19255 build_os=$build_os
19257 # An echo program that does not interpret backslashes.
19258 echo=$lt_echo
19260 # The archiver.
19261 AR=$lt_AR
19262 AR_FLAGS=$lt_AR_FLAGS
19264 # A C compiler.
19265 LTCC=$lt_LTCC
19267 # A language-specific compiler.
19268 CC=$lt_compiler_RC
19270 # Is the compiler the GNU C compiler?
19271 with_gcc=$GCC_RC
19273 # An ERE matcher.
19274 EGREP=$lt_EGREP
19276 # The linker used to build libraries.
19277 LD=$lt_LD_RC
19279 # Whether we need hard or soft links.
19280 LN_S=$lt_LN_S
19282 # A BSD-compatible nm program.
19283 NM=$lt_NM
19285 # A symbol stripping program
19286 STRIP=$lt_STRIP
19288 # Used to examine libraries when file_magic_cmd begins "file"
19289 MAGIC_CMD=$MAGIC_CMD
19291 # Used on cygwin: DLL creation program.
19292 DLLTOOL="$DLLTOOL"
19294 # Used on cygwin: object dumper.
19295 OBJDUMP="$OBJDUMP"
19297 # Used on cygwin: assembler.
19298 AS="$AS"
19300 # The name of the directory that contains temporary libtool files.
19301 objdir=$objdir
19303 # How to create reloadable object files.
19304 reload_flag=$lt_reload_flag
19305 reload_cmds=$lt_reload_cmds
19307 # How to pass a linker flag through the compiler.
19308 wl=$lt_lt_prog_compiler_wl_RC
19310 # Object file suffix (normally "o").
19311 objext="$ac_objext"
19313 # Old archive suffix (normally "a").
19314 libext="$libext"
19316 # Shared library suffix (normally ".so").
19317 shrext_cmds='$shrext_cmds'
19319 # Executable file suffix (normally "").
19320 exeext="$exeext"
19322 # Additional compiler flags for building library objects.
19323 pic_flag=$lt_lt_prog_compiler_pic_RC
19324 pic_mode=$pic_mode
19326 # What is the maximum length of a command?
19327 max_cmd_len=$lt_cv_sys_max_cmd_len
19329 # Does compiler simultaneously support -c and -o options?
19330 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19332 # Must we lock files when doing compilation ?
19333 need_locks=$lt_need_locks
19335 # Do we need the lib prefix for modules?
19336 need_lib_prefix=$need_lib_prefix
19338 # Do we need a version for libraries?
19339 need_version=$need_version
19341 # Whether dlopen is supported.
19342 dlopen_support=$enable_dlopen
19344 # Whether dlopen of programs is supported.
19345 dlopen_self=$enable_dlopen_self
19347 # Whether dlopen of statically linked programs is supported.
19348 dlopen_self_static=$enable_dlopen_self_static
19350 # Compiler flag to prevent dynamic linking.
19351 link_static_flag=$lt_lt_prog_compiler_static_RC
19353 # Compiler flag to turn off builtin functions.
19354 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19356 # Compiler flag to allow reflexive dlopens.
19357 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19359 # Compiler flag to generate shared objects directly from archives.
19360 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19362 # Compiler flag to generate thread-safe objects.
19363 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19365 # Library versioning type.
19366 version_type=$version_type
19368 # Format of library name prefix.
19369 libname_spec=$lt_libname_spec
19371 # List of archive names. First name is the real one, the rest are links.
19372 # The last name is the one that the linker finds with -lNAME.
19373 library_names_spec=$lt_library_names_spec
19375 # The coded name of the library, if different from the real name.
19376 soname_spec=$lt_soname_spec
19378 # Commands used to build and install an old-style archive.
19379 RANLIB=$lt_RANLIB
19380 old_archive_cmds=$lt_old_archive_cmds_RC
19381 old_postinstall_cmds=$lt_old_postinstall_cmds
19382 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19384 # Create an old-style archive from a shared archive.
19385 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19387 # Create a temporary old-style archive to link instead of a shared archive.
19388 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19390 # Commands used to build and install a shared archive.
19391 archive_cmds=$lt_archive_cmds_RC
19392 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19393 postinstall_cmds=$lt_postinstall_cmds
19394 postuninstall_cmds=$lt_postuninstall_cmds
19396 # Commands used to build a loadable module (assumed same as above if empty)
19397 module_cmds=$lt_module_cmds_RC
19398 module_expsym_cmds=$lt_module_expsym_cmds_RC
19400 # Commands to strip libraries.
19401 old_striplib=$lt_old_striplib
19402 striplib=$lt_striplib
19404 # Dependencies to place before the objects being linked to create a
19405 # shared library.
19406 predep_objects=$lt_predep_objects_RC
19408 # Dependencies to place after the objects being linked to create a
19409 # shared library.
19410 postdep_objects=$lt_postdep_objects_RC
19412 # Dependencies to place before the objects being linked to create a
19413 # shared library.
19414 predeps=$lt_predeps_RC
19416 # Dependencies to place after the objects being linked to create a
19417 # shared library.
19418 postdeps=$lt_postdeps_RC
19420 # The library search path used internally by the compiler when linking
19421 # a shared library.
19422 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19424 # Method to check whether dependent libraries are shared objects.
19425 deplibs_check_method=$lt_deplibs_check_method
19427 # Command to use when deplibs_check_method == file_magic.
19428 file_magic_cmd=$lt_file_magic_cmd
19430 # Flag that allows shared libraries with undefined symbols to be built.
19431 allow_undefined_flag=$lt_allow_undefined_flag_RC
19433 # Flag that forces no undefined symbols.
19434 no_undefined_flag=$lt_no_undefined_flag_RC
19436 # Commands used to finish a libtool library installation in a directory.
19437 finish_cmds=$lt_finish_cmds
19439 # Same as above, but a single script fragment to be evaled but not shown.
19440 finish_eval=$lt_finish_eval
19442 # Take the output of nm and produce a listing of raw symbols and C names.
19443 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19445 # Transform the output of nm in a proper C declaration
19446 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19448 # Transform the output of nm in a C name address pair
19449 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19451 # This is the shared library runtime path variable.
19452 runpath_var=$runpath_var
19454 # This is the shared library path variable.
19455 shlibpath_var=$shlibpath_var
19457 # Is shlibpath searched before the hard-coded library search path?
19458 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19460 # How to hardcode a shared library path into an executable.
19461 hardcode_action=$hardcode_action_RC
19463 # Whether we should hardcode library paths into libraries.
19464 hardcode_into_libs=$hardcode_into_libs
19466 # Flag to hardcode \$libdir into a binary during linking.
19467 # This must work even if \$libdir does not exist.
19468 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19470 # If ld is used when linking, flag to hardcode \$libdir into
19471 # a binary during linking. This must work even if \$libdir does
19472 # not exist.
19473 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19475 # Whether we need a single -rpath flag with a separated argument.
19476 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19478 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19479 # resulting binary.
19480 hardcode_direct=$hardcode_direct_RC
19482 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19483 # resulting binary.
19484 hardcode_minus_L=$hardcode_minus_L_RC
19486 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19487 # the resulting binary.
19488 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19490 # Set to yes if building a shared library automatically hardcodes DIR into the library
19491 # and all subsequent libraries and executables linked against it.
19492 hardcode_automatic=$hardcode_automatic_RC
19494 # Variables whose values should be saved in libtool wrapper scripts and
19495 # restored at relink time.
19496 variables_saved_for_relink="$variables_saved_for_relink"
19498 # Whether libtool must link a program against all its dependency libraries.
19499 link_all_deplibs=$link_all_deplibs_RC
19501 # Compile-time system search path for libraries
19502 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19504 # Run-time system search path for libraries
19505 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19507 # Fix the shell variable \$srcfile for the compiler.
19508 fix_srcfile_path="$fix_srcfile_path_RC"
19510 # Set to yes if exported symbols are required.
19511 always_export_symbols=$always_export_symbols_RC
19513 # The commands to list exported symbols.
19514 export_symbols_cmds=$lt_export_symbols_cmds_RC
19516 # The commands to extract the exported symbol list from a shared archive.
19517 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19519 # Symbols that should not be listed in the preloaded symbols.
19520 exclude_expsyms=$lt_exclude_expsyms_RC
19522 # Symbols that must always be exported.
19523 include_expsyms=$lt_include_expsyms_RC
19525 # ### END LIBTOOL TAG CONFIG: $tagname
19527 __EOF__
19530 else
19531 # If there is no Makefile yet, we rely on a make rule to execute
19532 # `config.status --recheck' to rerun these tests and create the
19533 # libtool script then.
19534 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19535 if test -f "$ltmain_in"; then
19536 test -f Makefile && make "$ltmain"
19541 ac_ext=c
19542 ac_cpp='$CPP $CPPFLAGS'
19543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19547 CC="$lt_save_CC"
19552 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19553 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19554 { (exit 1); exit 1; }; }
19556 esac
19558 # Append the new tag name to the list of available tags.
19559 if test -n "$tagname" ; then
19560 available_tags="$available_tags $tagname"
19563 done
19564 IFS="$lt_save_ifs"
19566 # Now substitute the updated list of available tags.
19567 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19568 mv "${ofile}T" "$ofile"
19569 chmod +x "$ofile"
19570 else
19571 rm -f "${ofile}T"
19572 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19573 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19574 { (exit 1); exit 1; }; }
19580 # This can be used to rebuild libtool when needed
19581 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19583 # Always use our own libtool.
19584 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19586 # Prevent multiple expansion
19610 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19611 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19612 if test "${ac_cv_c_const+set}" = set; then
19613 echo $ECHO_N "(cached) $ECHO_C" >&6
19614 else
19615 cat >conftest.$ac_ext <<_ACEOF
19616 /* confdefs.h. */
19617 _ACEOF
19618 cat confdefs.h >>conftest.$ac_ext
19619 cat >>conftest.$ac_ext <<_ACEOF
19620 /* end confdefs.h. */
19623 main ()
19625 /* FIXME: Include the comments suggested by Paul. */
19626 #ifndef __cplusplus
19627 /* Ultrix mips cc rejects this. */
19628 typedef int charset[2];
19629 const charset x;
19630 /* SunOS 4.1.1 cc rejects this. */
19631 char const *const *ccp;
19632 char **p;
19633 /* NEC SVR4.0.2 mips cc rejects this. */
19634 struct point {int x, y;};
19635 static struct point const zero = {0,0};
19636 /* AIX XL C 1.02.0.0 rejects this.
19637 It does not let you subtract one const X* pointer from another in
19638 an arm of an if-expression whose if-part is not a constant
19639 expression */
19640 const char *g = "string";
19641 ccp = &g + (g ? g-g : 0);
19642 /* HPUX 7.0 cc rejects these. */
19643 ++ccp;
19644 p = (char**) ccp;
19645 ccp = (char const *const *) p;
19646 { /* SCO 3.2v4 cc rejects this. */
19647 char *t;
19648 char const *s = 0 ? (char *) 0 : (char const *) 0;
19650 *t++ = 0;
19652 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19653 int x[] = {25, 17};
19654 const int *foo = &x[0];
19655 ++foo;
19657 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19658 typedef const int *iptr;
19659 iptr p = 0;
19660 ++p;
19662 { /* AIX XL C 1.02.0.0 rejects this saying
19663 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19664 struct s { int j; const int *ap[3]; };
19665 struct s *b; b->j = 5;
19667 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19668 const int foo = 10;
19670 #endif
19673 return 0;
19675 _ACEOF
19676 rm -f conftest.$ac_objext
19677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19678 (eval $ac_compile) 2>conftest.er1
19679 ac_status=$?
19680 grep -v '^ *+' conftest.er1 >conftest.err
19681 rm -f conftest.er1
19682 cat conftest.err >&5
19683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684 (exit $ac_status); } &&
19685 { ac_try='test -z "$ac_c_werror_flag"
19686 || test ! -s conftest.err'
19687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19688 (eval $ac_try) 2>&5
19689 ac_status=$?
19690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691 (exit $ac_status); }; } &&
19692 { ac_try='test -s conftest.$ac_objext'
19693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19694 (eval $ac_try) 2>&5
19695 ac_status=$?
19696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697 (exit $ac_status); }; }; then
19698 ac_cv_c_const=yes
19699 else
19700 echo "$as_me: failed program was:" >&5
19701 sed 's/^/| /' conftest.$ac_ext >&5
19703 ac_cv_c_const=no
19705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19707 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19708 echo "${ECHO_T}$ac_cv_c_const" >&6
19709 if test $ac_cv_c_const = no; then
19711 cat >>confdefs.h <<\_ACEOF
19712 #define const
19713 _ACEOF
19717 echo "$as_me:$LINENO: checking for inline" >&5
19718 echo $ECHO_N "checking for inline... $ECHO_C" >&6
19719 if test "${ac_cv_c_inline+set}" = set; then
19720 echo $ECHO_N "(cached) $ECHO_C" >&6
19721 else
19722 ac_cv_c_inline=no
19723 for ac_kw in inline __inline__ __inline; do
19724 cat >conftest.$ac_ext <<_ACEOF
19725 /* confdefs.h. */
19726 _ACEOF
19727 cat confdefs.h >>conftest.$ac_ext
19728 cat >>conftest.$ac_ext <<_ACEOF
19729 /* end confdefs.h. */
19730 #ifndef __cplusplus
19731 typedef int foo_t;
19732 static $ac_kw foo_t static_foo () {return 0; }
19733 $ac_kw foo_t foo () {return 0; }
19734 #endif
19736 _ACEOF
19737 rm -f conftest.$ac_objext
19738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19739 (eval $ac_compile) 2>conftest.er1
19740 ac_status=$?
19741 grep -v '^ *+' conftest.er1 >conftest.err
19742 rm -f conftest.er1
19743 cat conftest.err >&5
19744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745 (exit $ac_status); } &&
19746 { ac_try='test -z "$ac_c_werror_flag"
19747 || test ! -s conftest.err'
19748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19749 (eval $ac_try) 2>&5
19750 ac_status=$?
19751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752 (exit $ac_status); }; } &&
19753 { ac_try='test -s conftest.$ac_objext'
19754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19755 (eval $ac_try) 2>&5
19756 ac_status=$?
19757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758 (exit $ac_status); }; }; then
19759 ac_cv_c_inline=$ac_kw; break
19760 else
19761 echo "$as_me: failed program was:" >&5
19762 sed 's/^/| /' conftest.$ac_ext >&5
19765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19766 done
19769 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19770 echo "${ECHO_T}$ac_cv_c_inline" >&6
19773 case $ac_cv_c_inline in
19774 inline | yes) ;;
19776 case $ac_cv_c_inline in
19777 no) ac_val=;;
19778 *) ac_val=$ac_cv_c_inline;;
19779 esac
19780 cat >>confdefs.h <<_ACEOF
19781 #ifndef __cplusplus
19782 #define inline $ac_val
19783 #endif
19784 _ACEOF
19786 esac
19789 echo "$as_me:$LINENO: checking for signed" >&5
19790 echo $ECHO_N "checking for signed... $ECHO_C" >&6
19791 if test "${bh_cv_c_signed+set}" = set; then
19792 echo $ECHO_N "(cached) $ECHO_C" >&6
19793 else
19794 cat >conftest.$ac_ext <<_ACEOF
19795 /* confdefs.h. */
19796 _ACEOF
19797 cat confdefs.h >>conftest.$ac_ext
19798 cat >>conftest.$ac_ext <<_ACEOF
19799 /* end confdefs.h. */
19802 main ()
19804 signed char x;
19806 return 0;
19808 _ACEOF
19809 rm -f conftest.$ac_objext
19810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19811 (eval $ac_compile) 2>conftest.er1
19812 ac_status=$?
19813 grep -v '^ *+' conftest.er1 >conftest.err
19814 rm -f conftest.er1
19815 cat conftest.err >&5
19816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19817 (exit $ac_status); } &&
19818 { ac_try='test -z "$ac_c_werror_flag"
19819 || test ! -s conftest.err'
19820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19821 (eval $ac_try) 2>&5
19822 ac_status=$?
19823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824 (exit $ac_status); }; } &&
19825 { ac_try='test -s conftest.$ac_objext'
19826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19827 (eval $ac_try) 2>&5
19828 ac_status=$?
19829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830 (exit $ac_status); }; }; then
19831 bh_cv_c_signed=yes
19832 else
19833 echo "$as_me: failed program was:" >&5
19834 sed 's/^/| /' conftest.$ac_ext >&5
19836 bh_cv_c_signed=no
19838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19840 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
19841 echo "${ECHO_T}$bh_cv_c_signed" >&6
19842 if test $bh_cv_c_signed = no; then
19844 cat >>confdefs.h <<\_ACEOF
19845 #define signed
19846 _ACEOF
19850 echo "$as_me:$LINENO: checking for size_t" >&5
19851 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19852 if test "${ac_cv_type_size_t+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 $ac_includes_default
19863 main ()
19865 if ((size_t *) 0)
19866 return 0;
19867 if (sizeof (size_t))
19868 return 0;
19870 return 0;
19872 _ACEOF
19873 rm -f conftest.$ac_objext
19874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19875 (eval $ac_compile) 2>conftest.er1
19876 ac_status=$?
19877 grep -v '^ *+' conftest.er1 >conftest.err
19878 rm -f conftest.er1
19879 cat conftest.err >&5
19880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881 (exit $ac_status); } &&
19882 { ac_try='test -z "$ac_c_werror_flag"
19883 || 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_type_size_t=yes
19896 else
19897 echo "$as_me: failed program was:" >&5
19898 sed 's/^/| /' conftest.$ac_ext >&5
19900 ac_cv_type_size_t=no
19902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19904 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19905 echo "${ECHO_T}$ac_cv_type_size_t" >&6
19906 if test $ac_cv_type_size_t = yes; then
19908 else
19910 cat >>confdefs.h <<_ACEOF
19911 #define size_t unsigned
19912 _ACEOF
19917 echo "$as_me:$LINENO: checking for long long" >&5
19918 echo $ECHO_N "checking for long long... $ECHO_C" >&6
19919 if test "${ac_cv_type_long_long+set}" = set; then
19920 echo $ECHO_N "(cached) $ECHO_C" >&6
19921 else
19922 cat >conftest.$ac_ext <<_ACEOF
19923 /* confdefs.h. */
19924 _ACEOF
19925 cat confdefs.h >>conftest.$ac_ext
19926 cat >>conftest.$ac_ext <<_ACEOF
19927 /* end confdefs.h. */
19928 long long ll = 1LL; int i = 63;
19930 main ()
19932 long long llmax = (long long) -1;
19933 return ll << i | ll >> i | llmax / ll | llmax % ll;
19935 return 0;
19937 _ACEOF
19938 rm -f conftest.$ac_objext conftest$ac_exeext
19939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19940 (eval $ac_link) 2>conftest.er1
19941 ac_status=$?
19942 grep -v '^ *+' conftest.er1 >conftest.err
19943 rm -f conftest.er1
19944 cat conftest.err >&5
19945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19946 (exit $ac_status); } &&
19947 { ac_try='test -z "$ac_c_werror_flag"
19948 || test ! -s conftest.err'
19949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19950 (eval $ac_try) 2>&5
19951 ac_status=$?
19952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953 (exit $ac_status); }; } &&
19954 { ac_try='test -s conftest$ac_exeext'
19955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19956 (eval $ac_try) 2>&5
19957 ac_status=$?
19958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19959 (exit $ac_status); }; }; then
19960 ac_cv_type_long_long=yes
19961 else
19962 echo "$as_me: failed program was:" >&5
19963 sed 's/^/| /' conftest.$ac_ext >&5
19965 ac_cv_type_long_long=no
19967 rm -f conftest.err conftest.$ac_objext \
19968 conftest$ac_exeext conftest.$ac_ext
19970 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19971 echo "${ECHO_T}$ac_cv_type_long_long" >&6
19972 if test $ac_cv_type_long_long = yes; then
19974 cat >>confdefs.h <<\_ACEOF
19975 #define HAVE_LONG_LONG 1
19976 _ACEOF
19981 echo "$as_me:$LINENO: checking for long double" >&5
19982 echo $ECHO_N "checking for long double... $ECHO_C" >&6
19983 if test "${gt_cv_c_long_double+set}" = set; then
19984 echo $ECHO_N "(cached) $ECHO_C" >&6
19985 else
19986 if test "$GCC" = yes; then
19987 gt_cv_c_long_double=yes
19988 else
19989 cat >conftest.$ac_ext <<_ACEOF
19990 /* confdefs.h. */
19991 _ACEOF
19992 cat confdefs.h >>conftest.$ac_ext
19993 cat >>conftest.$ac_ext <<_ACEOF
19994 /* end confdefs.h. */
19996 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
19997 long double foo = 0.0;
19998 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
19999 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
20002 main ()
20006 return 0;
20008 _ACEOF
20009 rm -f conftest.$ac_objext
20010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20011 (eval $ac_compile) 2>conftest.er1
20012 ac_status=$?
20013 grep -v '^ *+' conftest.er1 >conftest.err
20014 rm -f conftest.er1
20015 cat conftest.err >&5
20016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20017 (exit $ac_status); } &&
20018 { ac_try='test -z "$ac_c_werror_flag"
20019 || test ! -s conftest.err'
20020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20021 (eval $ac_try) 2>&5
20022 ac_status=$?
20023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024 (exit $ac_status); }; } &&
20025 { ac_try='test -s conftest.$ac_objext'
20026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20027 (eval $ac_try) 2>&5
20028 ac_status=$?
20029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030 (exit $ac_status); }; }; then
20031 gt_cv_c_long_double=yes
20032 else
20033 echo "$as_me: failed program was:" >&5
20034 sed 's/^/| /' conftest.$ac_ext >&5
20036 gt_cv_c_long_double=no
20038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20041 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
20042 echo "${ECHO_T}$gt_cv_c_long_double" >&6
20043 if test $gt_cv_c_long_double = yes; then
20045 cat >>confdefs.h <<\_ACEOF
20046 #define HAVE_LONG_DOUBLE 1
20047 _ACEOF
20052 echo "$as_me:$LINENO: checking for wchar_t" >&5
20053 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
20054 if test "${gt_cv_c_wchar_t+set}" = set; then
20055 echo $ECHO_N "(cached) $ECHO_C" >&6
20056 else
20057 cat >conftest.$ac_ext <<_ACEOF
20058 /* confdefs.h. */
20059 _ACEOF
20060 cat confdefs.h >>conftest.$ac_ext
20061 cat >>conftest.$ac_ext <<_ACEOF
20062 /* end confdefs.h. */
20063 #include <stddef.h>
20064 wchar_t foo = (wchar_t)'\0';
20066 main ()
20070 return 0;
20072 _ACEOF
20073 rm -f conftest.$ac_objext
20074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20075 (eval $ac_compile) 2>conftest.er1
20076 ac_status=$?
20077 grep -v '^ *+' conftest.er1 >conftest.err
20078 rm -f conftest.er1
20079 cat conftest.err >&5
20080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20081 (exit $ac_status); } &&
20082 { ac_try='test -z "$ac_c_werror_flag"
20083 || test ! -s conftest.err'
20084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20085 (eval $ac_try) 2>&5
20086 ac_status=$?
20087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088 (exit $ac_status); }; } &&
20089 { ac_try='test -s conftest.$ac_objext'
20090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20091 (eval $ac_try) 2>&5
20092 ac_status=$?
20093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20094 (exit $ac_status); }; }; then
20095 gt_cv_c_wchar_t=yes
20096 else
20097 echo "$as_me: failed program was:" >&5
20098 sed 's/^/| /' conftest.$ac_ext >&5
20100 gt_cv_c_wchar_t=no
20102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20104 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
20105 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
20106 if test $gt_cv_c_wchar_t = yes; then
20108 cat >>confdefs.h <<\_ACEOF
20109 #define HAVE_WCHAR_T 1
20110 _ACEOF
20115 echo "$as_me:$LINENO: checking for wint_t" >&5
20116 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
20117 if test "${gt_cv_c_wint_t+set}" = set; then
20118 echo $ECHO_N "(cached) $ECHO_C" >&6
20119 else
20120 cat >conftest.$ac_ext <<_ACEOF
20121 /* confdefs.h. */
20122 _ACEOF
20123 cat confdefs.h >>conftest.$ac_ext
20124 cat >>conftest.$ac_ext <<_ACEOF
20125 /* end confdefs.h. */
20126 #include <wchar.h>
20127 wint_t foo = (wchar_t)'\0';
20129 main ()
20133 return 0;
20135 _ACEOF
20136 rm -f conftest.$ac_objext
20137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20138 (eval $ac_compile) 2>conftest.er1
20139 ac_status=$?
20140 grep -v '^ *+' conftest.er1 >conftest.err
20141 rm -f conftest.er1
20142 cat conftest.err >&5
20143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144 (exit $ac_status); } &&
20145 { ac_try='test -z "$ac_c_werror_flag"
20146 || test ! -s conftest.err'
20147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20148 (eval $ac_try) 2>&5
20149 ac_status=$?
20150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151 (exit $ac_status); }; } &&
20152 { ac_try='test -s conftest.$ac_objext'
20153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20154 (eval $ac_try) 2>&5
20155 ac_status=$?
20156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157 (exit $ac_status); }; }; then
20158 gt_cv_c_wint_t=yes
20159 else
20160 echo "$as_me: failed program was:" >&5
20161 sed 's/^/| /' conftest.$ac_ext >&5
20163 gt_cv_c_wint_t=no
20165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20167 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
20168 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
20169 if test $gt_cv_c_wint_t = yes; then
20171 cat >>confdefs.h <<\_ACEOF
20172 #define HAVE_WINT_T 1
20173 _ACEOF
20177 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
20178 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
20179 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
20180 echo $ECHO_N "(cached) $ECHO_C" >&6
20181 else
20182 cat >conftest.$ac_ext <<_ACEOF
20183 /* confdefs.h. */
20184 _ACEOF
20185 cat confdefs.h >>conftest.$ac_ext
20186 cat >>conftest.$ac_ext <<_ACEOF
20187 /* end confdefs.h. */
20188 $ac_includes_default
20190 main ()
20192 if ((ptrdiff_t *) 0)
20193 return 0;
20194 if (sizeof (ptrdiff_t))
20195 return 0;
20197 return 0;
20199 _ACEOF
20200 rm -f conftest.$ac_objext
20201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20202 (eval $ac_compile) 2>conftest.er1
20203 ac_status=$?
20204 grep -v '^ *+' conftest.er1 >conftest.err
20205 rm -f conftest.er1
20206 cat conftest.err >&5
20207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208 (exit $ac_status); } &&
20209 { ac_try='test -z "$ac_c_werror_flag"
20210 || test ! -s conftest.err'
20211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20212 (eval $ac_try) 2>&5
20213 ac_status=$?
20214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215 (exit $ac_status); }; } &&
20216 { ac_try='test -s conftest.$ac_objext'
20217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20218 (eval $ac_try) 2>&5
20219 ac_status=$?
20220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20221 (exit $ac_status); }; }; then
20222 ac_cv_type_ptrdiff_t=yes
20223 else
20224 echo "$as_me: failed program was:" >&5
20225 sed 's/^/| /' conftest.$ac_ext >&5
20227 ac_cv_type_ptrdiff_t=no
20229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20231 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
20232 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
20233 if test $ac_cv_type_ptrdiff_t = yes; then
20235 else
20237 cat >>confdefs.h <<\_ACEOF
20238 #define ptrdiff_t long
20239 _ACEOF
20245 echo "$as_me:$LINENO: checking for inttypes.h" >&5
20246 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20247 if test "${gl_cv_header_inttypes_h+set}" = set; then
20248 echo $ECHO_N "(cached) $ECHO_C" >&6
20249 else
20250 cat >conftest.$ac_ext <<_ACEOF
20251 /* confdefs.h. */
20252 _ACEOF
20253 cat confdefs.h >>conftest.$ac_ext
20254 cat >>conftest.$ac_ext <<_ACEOF
20255 /* end confdefs.h. */
20256 #include <sys/types.h>
20257 #include <inttypes.h>
20259 main ()
20261 uintmax_t i = (uintmax_t) -1;
20263 return 0;
20265 _ACEOF
20266 rm -f conftest.$ac_objext
20267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20268 (eval $ac_compile) 2>conftest.er1
20269 ac_status=$?
20270 grep -v '^ *+' conftest.er1 >conftest.err
20271 rm -f conftest.er1
20272 cat conftest.err >&5
20273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20274 (exit $ac_status); } &&
20275 { ac_try='test -z "$ac_c_werror_flag"
20276 || test ! -s conftest.err'
20277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20278 (eval $ac_try) 2>&5
20279 ac_status=$?
20280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281 (exit $ac_status); }; } &&
20282 { ac_try='test -s conftest.$ac_objext'
20283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20284 (eval $ac_try) 2>&5
20285 ac_status=$?
20286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287 (exit $ac_status); }; }; then
20288 gl_cv_header_inttypes_h=yes
20289 else
20290 echo "$as_me: failed program was:" >&5
20291 sed 's/^/| /' conftest.$ac_ext >&5
20293 gl_cv_header_inttypes_h=no
20295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20297 echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
20298 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6
20299 if test $gl_cv_header_inttypes_h = yes; then
20301 cat >>confdefs.h <<_ACEOF
20302 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
20303 _ACEOF
20308 echo "$as_me:$LINENO: checking for stdint.h" >&5
20309 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20310 if test "${gl_cv_header_stdint_h+set}" = set; then
20311 echo $ECHO_N "(cached) $ECHO_C" >&6
20312 else
20313 cat >conftest.$ac_ext <<_ACEOF
20314 /* confdefs.h. */
20315 _ACEOF
20316 cat confdefs.h >>conftest.$ac_ext
20317 cat >>conftest.$ac_ext <<_ACEOF
20318 /* end confdefs.h. */
20319 #include <sys/types.h>
20320 #include <stdint.h>
20322 main ()
20324 uintmax_t i = (uintmax_t) -1;
20326 return 0;
20328 _ACEOF
20329 rm -f conftest.$ac_objext
20330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20331 (eval $ac_compile) 2>conftest.er1
20332 ac_status=$?
20333 grep -v '^ *+' conftest.er1 >conftest.err
20334 rm -f conftest.er1
20335 cat conftest.err >&5
20336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20337 (exit $ac_status); } &&
20338 { ac_try='test -z "$ac_c_werror_flag"
20339 || test ! -s conftest.err'
20340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20341 (eval $ac_try) 2>&5
20342 ac_status=$?
20343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344 (exit $ac_status); }; } &&
20345 { ac_try='test -s conftest.$ac_objext'
20346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20347 (eval $ac_try) 2>&5
20348 ac_status=$?
20349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350 (exit $ac_status); }; }; then
20351 gl_cv_header_stdint_h=yes
20352 else
20353 echo "$as_me: failed program was:" >&5
20354 sed 's/^/| /' conftest.$ac_ext >&5
20356 gl_cv_header_stdint_h=no
20358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20360 echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
20361 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
20362 if test $gl_cv_header_stdint_h = yes; then
20364 cat >>confdefs.h <<_ACEOF
20365 #define HAVE_STDINT_H_WITH_UINTMAX 1
20366 _ACEOF
20373 echo "$as_me:$LINENO: checking for intmax_t" >&5
20374 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
20375 if test "${gt_cv_c_intmax_t+set}" = set; then
20376 echo $ECHO_N "(cached) $ECHO_C" >&6
20377 else
20378 cat >conftest.$ac_ext <<_ACEOF
20379 /* confdefs.h. */
20380 _ACEOF
20381 cat confdefs.h >>conftest.$ac_ext
20382 cat >>conftest.$ac_ext <<_ACEOF
20383 /* end confdefs.h. */
20385 #include <stddef.h>
20386 #include <stdlib.h>
20387 #if HAVE_STDINT_H_WITH_UINTMAX
20388 #include <stdint.h>
20389 #endif
20390 #if HAVE_INTTYPES_H_WITH_UINTMAX
20391 #include <inttypes.h>
20392 #endif
20395 main ()
20397 intmax_t x = -1;
20399 return 0;
20401 _ACEOF
20402 rm -f conftest.$ac_objext
20403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20404 (eval $ac_compile) 2>conftest.er1
20405 ac_status=$?
20406 grep -v '^ *+' conftest.er1 >conftest.err
20407 rm -f conftest.er1
20408 cat conftest.err >&5
20409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410 (exit $ac_status); } &&
20411 { ac_try='test -z "$ac_c_werror_flag"
20412 || test ! -s conftest.err'
20413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20414 (eval $ac_try) 2>&5
20415 ac_status=$?
20416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417 (exit $ac_status); }; } &&
20418 { ac_try='test -s conftest.$ac_objext'
20419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20420 (eval $ac_try) 2>&5
20421 ac_status=$?
20422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423 (exit $ac_status); }; }; then
20424 gt_cv_c_intmax_t=yes
20425 else
20426 echo "$as_me: failed program was:" >&5
20427 sed 's/^/| /' conftest.$ac_ext >&5
20429 gt_cv_c_intmax_t=no
20431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20433 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
20434 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
20435 if test $gt_cv_c_intmax_t = yes; then
20437 cat >>confdefs.h <<\_ACEOF
20438 #define HAVE_INTMAX_T 1
20439 _ACEOF
20445 for ac_header in stdint.h
20447 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20449 echo "$as_me:$LINENO: checking for $ac_header" >&5
20450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20452 echo $ECHO_N "(cached) $ECHO_C" >&6
20454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20455 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20456 else
20457 # Is the header compilable?
20458 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20459 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20460 cat >conftest.$ac_ext <<_ACEOF
20461 /* confdefs.h. */
20462 _ACEOF
20463 cat confdefs.h >>conftest.$ac_ext
20464 cat >>conftest.$ac_ext <<_ACEOF
20465 /* end confdefs.h. */
20466 $ac_includes_default
20467 #include <$ac_header>
20468 _ACEOF
20469 rm -f conftest.$ac_objext
20470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20471 (eval $ac_compile) 2>conftest.er1
20472 ac_status=$?
20473 grep -v '^ *+' conftest.er1 >conftest.err
20474 rm -f conftest.er1
20475 cat conftest.err >&5
20476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477 (exit $ac_status); } &&
20478 { ac_try='test -z "$ac_c_werror_flag"
20479 || test ! -s conftest.err'
20480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20481 (eval $ac_try) 2>&5
20482 ac_status=$?
20483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20484 (exit $ac_status); }; } &&
20485 { ac_try='test -s conftest.$ac_objext'
20486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20487 (eval $ac_try) 2>&5
20488 ac_status=$?
20489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490 (exit $ac_status); }; }; then
20491 ac_header_compiler=yes
20492 else
20493 echo "$as_me: failed program was:" >&5
20494 sed 's/^/| /' conftest.$ac_ext >&5
20496 ac_header_compiler=no
20498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20499 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20500 echo "${ECHO_T}$ac_header_compiler" >&6
20502 # Is the header present?
20503 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20504 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20505 cat >conftest.$ac_ext <<_ACEOF
20506 /* confdefs.h. */
20507 _ACEOF
20508 cat confdefs.h >>conftest.$ac_ext
20509 cat >>conftest.$ac_ext <<_ACEOF
20510 /* end confdefs.h. */
20511 #include <$ac_header>
20512 _ACEOF
20513 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20514 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20515 ac_status=$?
20516 grep -v '^ *+' conftest.er1 >conftest.err
20517 rm -f conftest.er1
20518 cat conftest.err >&5
20519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20520 (exit $ac_status); } >/dev/null; then
20521 if test -s conftest.err; then
20522 ac_cpp_err=$ac_c_preproc_warn_flag
20523 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20524 else
20525 ac_cpp_err=
20527 else
20528 ac_cpp_err=yes
20530 if test -z "$ac_cpp_err"; then
20531 ac_header_preproc=yes
20532 else
20533 echo "$as_me: failed program was:" >&5
20534 sed 's/^/| /' conftest.$ac_ext >&5
20536 ac_header_preproc=no
20538 rm -f conftest.err conftest.$ac_ext
20539 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20540 echo "${ECHO_T}$ac_header_preproc" >&6
20542 # So? What about this header?
20543 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20544 yes:no: )
20545 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20546 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20548 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20549 ac_header_preproc=yes
20551 no:yes:* )
20552 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20553 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20554 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20555 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20556 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20557 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20558 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20559 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20561 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20562 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20563 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20565 cat <<\_ASBOX
20566 ## ------------------------------------------ ##
20567 ## Report this to the AC_PACKAGE_NAME lists. ##
20568 ## ------------------------------------------ ##
20569 _ASBOX
20571 sed "s/^/$as_me: WARNING: /" >&2
20573 esac
20574 echo "$as_me:$LINENO: checking for $ac_header" >&5
20575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20576 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20577 echo $ECHO_N "(cached) $ECHO_C" >&6
20578 else
20579 eval "$as_ac_Header=\$ac_header_preproc"
20581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20582 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20585 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20586 cat >>confdefs.h <<_ACEOF
20587 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20588 _ACEOF
20592 done
20594 echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
20595 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
20596 result=
20597 cat >conftest.$ac_ext <<_ACEOF
20598 /* confdefs.h. */
20599 _ACEOF
20600 cat confdefs.h >>conftest.$ac_ext
20601 cat >>conftest.$ac_ext <<_ACEOF
20602 /* end confdefs.h. */
20604 #include <limits.h>
20605 #if HAVE_STDINT_H
20606 #include <stdint.h>
20607 #endif
20608 #ifdef SIZE_MAX
20609 Found it
20610 #endif
20612 _ACEOF
20613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20614 $EGREP "Found it" >/dev/null 2>&1; then
20615 result=yes
20617 rm -f conftest*
20619 if test -z "$result"; then
20620 if test "$cross_compiling" = yes; then
20621 # Depending upon the size, compute the lo and hi bounds.
20622 cat >conftest.$ac_ext <<_ACEOF
20623 /* confdefs.h. */
20624 _ACEOF
20625 cat confdefs.h >>conftest.$ac_ext
20626 cat >>conftest.$ac_ext <<_ACEOF
20627 /* end confdefs.h. */
20628 #include <stddef.h>
20630 main ()
20632 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
20633 test_array [0] = 0
20636 return 0;
20638 _ACEOF
20639 rm -f conftest.$ac_objext
20640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20641 (eval $ac_compile) 2>conftest.er1
20642 ac_status=$?
20643 grep -v '^ *+' conftest.er1 >conftest.err
20644 rm -f conftest.er1
20645 cat conftest.err >&5
20646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20647 (exit $ac_status); } &&
20648 { ac_try='test -z "$ac_c_werror_flag"
20649 || test ! -s conftest.err'
20650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20651 (eval $ac_try) 2>&5
20652 ac_status=$?
20653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20654 (exit $ac_status); }; } &&
20655 { ac_try='test -s conftest.$ac_objext'
20656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20657 (eval $ac_try) 2>&5
20658 ac_status=$?
20659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20660 (exit $ac_status); }; }; then
20661 ac_lo=0 ac_mid=0
20662 while :; do
20663 cat >conftest.$ac_ext <<_ACEOF
20664 /* confdefs.h. */
20665 _ACEOF
20666 cat confdefs.h >>conftest.$ac_ext
20667 cat >>conftest.$ac_ext <<_ACEOF
20668 /* end confdefs.h. */
20669 #include <stddef.h>
20671 main ()
20673 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20674 test_array [0] = 0
20677 return 0;
20679 _ACEOF
20680 rm -f conftest.$ac_objext
20681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20682 (eval $ac_compile) 2>conftest.er1
20683 ac_status=$?
20684 grep -v '^ *+' conftest.er1 >conftest.err
20685 rm -f conftest.er1
20686 cat conftest.err >&5
20687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20688 (exit $ac_status); } &&
20689 { ac_try='test -z "$ac_c_werror_flag"
20690 || test ! -s conftest.err'
20691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20692 (eval $ac_try) 2>&5
20693 ac_status=$?
20694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695 (exit $ac_status); }; } &&
20696 { ac_try='test -s conftest.$ac_objext'
20697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20698 (eval $ac_try) 2>&5
20699 ac_status=$?
20700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701 (exit $ac_status); }; }; then
20702 ac_hi=$ac_mid; break
20703 else
20704 echo "$as_me: failed program was:" >&5
20705 sed 's/^/| /' conftest.$ac_ext >&5
20707 ac_lo=`expr $ac_mid + 1`
20708 if test $ac_lo -le $ac_mid; then
20709 ac_lo= ac_hi=
20710 break
20712 ac_mid=`expr 2 '*' $ac_mid + 1`
20714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20715 done
20716 else
20717 echo "$as_me: failed program was:" >&5
20718 sed 's/^/| /' conftest.$ac_ext >&5
20720 cat >conftest.$ac_ext <<_ACEOF
20721 /* confdefs.h. */
20722 _ACEOF
20723 cat confdefs.h >>conftest.$ac_ext
20724 cat >>conftest.$ac_ext <<_ACEOF
20725 /* end confdefs.h. */
20726 #include <stddef.h>
20728 main ()
20730 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
20731 test_array [0] = 0
20734 return 0;
20736 _ACEOF
20737 rm -f conftest.$ac_objext
20738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20739 (eval $ac_compile) 2>conftest.er1
20740 ac_status=$?
20741 grep -v '^ *+' conftest.er1 >conftest.err
20742 rm -f conftest.er1
20743 cat conftest.err >&5
20744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745 (exit $ac_status); } &&
20746 { ac_try='test -z "$ac_c_werror_flag"
20747 || test ! -s conftest.err'
20748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20749 (eval $ac_try) 2>&5
20750 ac_status=$?
20751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752 (exit $ac_status); }; } &&
20753 { ac_try='test -s conftest.$ac_objext'
20754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20755 (eval $ac_try) 2>&5
20756 ac_status=$?
20757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20758 (exit $ac_status); }; }; then
20759 ac_hi=-1 ac_mid=-1
20760 while :; do
20761 cat >conftest.$ac_ext <<_ACEOF
20762 /* confdefs.h. */
20763 _ACEOF
20764 cat confdefs.h >>conftest.$ac_ext
20765 cat >>conftest.$ac_ext <<_ACEOF
20766 /* end confdefs.h. */
20767 #include <stddef.h>
20769 main ()
20771 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
20772 test_array [0] = 0
20775 return 0;
20777 _ACEOF
20778 rm -f conftest.$ac_objext
20779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20780 (eval $ac_compile) 2>conftest.er1
20781 ac_status=$?
20782 grep -v '^ *+' conftest.er1 >conftest.err
20783 rm -f conftest.er1
20784 cat conftest.err >&5
20785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20786 (exit $ac_status); } &&
20787 { ac_try='test -z "$ac_c_werror_flag"
20788 || test ! -s conftest.err'
20789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20790 (eval $ac_try) 2>&5
20791 ac_status=$?
20792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793 (exit $ac_status); }; } &&
20794 { ac_try='test -s conftest.$ac_objext'
20795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20796 (eval $ac_try) 2>&5
20797 ac_status=$?
20798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20799 (exit $ac_status); }; }; then
20800 ac_lo=$ac_mid; break
20801 else
20802 echo "$as_me: failed program was:" >&5
20803 sed 's/^/| /' conftest.$ac_ext >&5
20805 ac_hi=`expr '(' $ac_mid ')' - 1`
20806 if test $ac_mid -le $ac_hi; then
20807 ac_lo= ac_hi=
20808 break
20810 ac_mid=`expr 2 '*' $ac_mid`
20812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20813 done
20814 else
20815 echo "$as_me: failed program was:" >&5
20816 sed 's/^/| /' conftest.$ac_ext >&5
20818 ac_lo= ac_hi=
20820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20823 # Binary search between lo and hi bounds.
20824 while test "x$ac_lo" != "x$ac_hi"; do
20825 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20826 cat >conftest.$ac_ext <<_ACEOF
20827 /* confdefs.h. */
20828 _ACEOF
20829 cat confdefs.h >>conftest.$ac_ext
20830 cat >>conftest.$ac_ext <<_ACEOF
20831 /* end confdefs.h. */
20832 #include <stddef.h>
20834 main ()
20836 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20837 test_array [0] = 0
20840 return 0;
20842 _ACEOF
20843 rm -f conftest.$ac_objext
20844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20845 (eval $ac_compile) 2>conftest.er1
20846 ac_status=$?
20847 grep -v '^ *+' conftest.er1 >conftest.err
20848 rm -f conftest.er1
20849 cat conftest.err >&5
20850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20851 (exit $ac_status); } &&
20852 { ac_try='test -z "$ac_c_werror_flag"
20853 || test ! -s conftest.err'
20854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20855 (eval $ac_try) 2>&5
20856 ac_status=$?
20857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20858 (exit $ac_status); }; } &&
20859 { ac_try='test -s conftest.$ac_objext'
20860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20861 (eval $ac_try) 2>&5
20862 ac_status=$?
20863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20864 (exit $ac_status); }; }; then
20865 ac_hi=$ac_mid
20866 else
20867 echo "$as_me: failed program was:" >&5
20868 sed 's/^/| /' conftest.$ac_ext >&5
20870 ac_lo=`expr '(' $ac_mid ')' + 1`
20872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20873 done
20874 case $ac_lo in
20875 ?*) res_hi=$ac_lo;;
20876 '') result=? ;;
20877 esac
20878 else
20879 if test "$cross_compiling" = yes; then
20880 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20881 See \`config.log' for more details." >&5
20882 echo "$as_me: error: cannot run test program while cross compiling
20883 See \`config.log' for more details." >&2;}
20884 { (exit 1); exit 1; }; }
20885 else
20886 cat >conftest.$ac_ext <<_ACEOF
20887 /* confdefs.h. */
20888 _ACEOF
20889 cat confdefs.h >>conftest.$ac_ext
20890 cat >>conftest.$ac_ext <<_ACEOF
20891 /* end confdefs.h. */
20892 #include <stddef.h>
20893 long longval () { return ~(size_t)0 / 10; }
20894 unsigned long ulongval () { return ~(size_t)0 / 10; }
20895 #include <stdio.h>
20896 #include <stdlib.h>
20898 main ()
20901 FILE *f = fopen ("conftest.val", "w");
20902 if (! f)
20903 exit (1);
20904 if ((~(size_t)0 / 10) < 0)
20906 long i = longval ();
20907 if (i != (~(size_t)0 / 10))
20908 exit (1);
20909 fprintf (f, "%ld\n", i);
20911 else
20913 unsigned long i = ulongval ();
20914 if (i != (~(size_t)0 / 10))
20915 exit (1);
20916 fprintf (f, "%lu\n", i);
20918 exit (ferror (f) || fclose (f) != 0);
20921 return 0;
20923 _ACEOF
20924 rm -f conftest$ac_exeext
20925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20926 (eval $ac_link) 2>&5
20927 ac_status=$?
20928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20931 (eval $ac_try) 2>&5
20932 ac_status=$?
20933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20934 (exit $ac_status); }; }; then
20935 res_hi=`cat conftest.val`
20936 else
20937 echo "$as_me: program exited with status $ac_status" >&5
20938 echo "$as_me: failed program was:" >&5
20939 sed 's/^/| /' conftest.$ac_ext >&5
20941 ( exit $ac_status )
20942 result=?
20944 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20947 rm -f conftest.val
20948 if test "$cross_compiling" = yes; then
20949 # Depending upon the size, compute the lo and hi bounds.
20950 cat >conftest.$ac_ext <<_ACEOF
20951 /* confdefs.h. */
20952 _ACEOF
20953 cat confdefs.h >>conftest.$ac_ext
20954 cat >>conftest.$ac_ext <<_ACEOF
20955 /* end confdefs.h. */
20956 #include <stddef.h>
20958 main ()
20960 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
20961 test_array [0] = 0
20964 return 0;
20966 _ACEOF
20967 rm -f conftest.$ac_objext
20968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20969 (eval $ac_compile) 2>conftest.er1
20970 ac_status=$?
20971 grep -v '^ *+' conftest.er1 >conftest.err
20972 rm -f conftest.er1
20973 cat conftest.err >&5
20974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20975 (exit $ac_status); } &&
20976 { ac_try='test -z "$ac_c_werror_flag"
20977 || test ! -s conftest.err'
20978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20979 (eval $ac_try) 2>&5
20980 ac_status=$?
20981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982 (exit $ac_status); }; } &&
20983 { ac_try='test -s conftest.$ac_objext'
20984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20985 (eval $ac_try) 2>&5
20986 ac_status=$?
20987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988 (exit $ac_status); }; }; then
20989 ac_lo=0 ac_mid=0
20990 while :; do
20991 cat >conftest.$ac_ext <<_ACEOF
20992 /* confdefs.h. */
20993 _ACEOF
20994 cat confdefs.h >>conftest.$ac_ext
20995 cat >>conftest.$ac_ext <<_ACEOF
20996 /* end confdefs.h. */
20997 #include <stddef.h>
20999 main ()
21001 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21002 test_array [0] = 0
21005 return 0;
21007 _ACEOF
21008 rm -f conftest.$ac_objext
21009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21010 (eval $ac_compile) 2>conftest.er1
21011 ac_status=$?
21012 grep -v '^ *+' conftest.er1 >conftest.err
21013 rm -f conftest.er1
21014 cat conftest.err >&5
21015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21016 (exit $ac_status); } &&
21017 { ac_try='test -z "$ac_c_werror_flag"
21018 || test ! -s conftest.err'
21019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21020 (eval $ac_try) 2>&5
21021 ac_status=$?
21022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21023 (exit $ac_status); }; } &&
21024 { ac_try='test -s conftest.$ac_objext'
21025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21026 (eval $ac_try) 2>&5
21027 ac_status=$?
21028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21029 (exit $ac_status); }; }; then
21030 ac_hi=$ac_mid; break
21031 else
21032 echo "$as_me: failed program was:" >&5
21033 sed 's/^/| /' conftest.$ac_ext >&5
21035 ac_lo=`expr $ac_mid + 1`
21036 if test $ac_lo -le $ac_mid; then
21037 ac_lo= ac_hi=
21038 break
21040 ac_mid=`expr 2 '*' $ac_mid + 1`
21042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21043 done
21044 else
21045 echo "$as_me: failed program was:" >&5
21046 sed 's/^/| /' conftest.$ac_ext >&5
21048 cat >conftest.$ac_ext <<_ACEOF
21049 /* confdefs.h. */
21050 _ACEOF
21051 cat confdefs.h >>conftest.$ac_ext
21052 cat >>conftest.$ac_ext <<_ACEOF
21053 /* end confdefs.h. */
21054 #include <stddef.h>
21056 main ()
21058 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21059 test_array [0] = 0
21062 return 0;
21064 _ACEOF
21065 rm -f conftest.$ac_objext
21066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21067 (eval $ac_compile) 2>conftest.er1
21068 ac_status=$?
21069 grep -v '^ *+' conftest.er1 >conftest.err
21070 rm -f conftest.er1
21071 cat conftest.err >&5
21072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073 (exit $ac_status); } &&
21074 { ac_try='test -z "$ac_c_werror_flag"
21075 || test ! -s conftest.err'
21076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21077 (eval $ac_try) 2>&5
21078 ac_status=$?
21079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080 (exit $ac_status); }; } &&
21081 { ac_try='test -s conftest.$ac_objext'
21082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21083 (eval $ac_try) 2>&5
21084 ac_status=$?
21085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086 (exit $ac_status); }; }; then
21087 ac_hi=-1 ac_mid=-1
21088 while :; do
21089 cat >conftest.$ac_ext <<_ACEOF
21090 /* confdefs.h. */
21091 _ACEOF
21092 cat confdefs.h >>conftest.$ac_ext
21093 cat >>conftest.$ac_ext <<_ACEOF
21094 /* end confdefs.h. */
21095 #include <stddef.h>
21097 main ()
21099 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21100 test_array [0] = 0
21103 return 0;
21105 _ACEOF
21106 rm -f conftest.$ac_objext
21107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21108 (eval $ac_compile) 2>conftest.er1
21109 ac_status=$?
21110 grep -v '^ *+' conftest.er1 >conftest.err
21111 rm -f conftest.er1
21112 cat conftest.err >&5
21113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114 (exit $ac_status); } &&
21115 { ac_try='test -z "$ac_c_werror_flag"
21116 || test ! -s conftest.err'
21117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21118 (eval $ac_try) 2>&5
21119 ac_status=$?
21120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21121 (exit $ac_status); }; } &&
21122 { ac_try='test -s conftest.$ac_objext'
21123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21124 (eval $ac_try) 2>&5
21125 ac_status=$?
21126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21127 (exit $ac_status); }; }; then
21128 ac_lo=$ac_mid; break
21129 else
21130 echo "$as_me: failed program was:" >&5
21131 sed 's/^/| /' conftest.$ac_ext >&5
21133 ac_hi=`expr '(' $ac_mid ')' - 1`
21134 if test $ac_mid -le $ac_hi; then
21135 ac_lo= ac_hi=
21136 break
21138 ac_mid=`expr 2 '*' $ac_mid`
21140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21141 done
21142 else
21143 echo "$as_me: failed program was:" >&5
21144 sed 's/^/| /' conftest.$ac_ext >&5
21146 ac_lo= ac_hi=
21148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21151 # Binary search between lo and hi bounds.
21152 while test "x$ac_lo" != "x$ac_hi"; do
21153 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21154 cat >conftest.$ac_ext <<_ACEOF
21155 /* confdefs.h. */
21156 _ACEOF
21157 cat confdefs.h >>conftest.$ac_ext
21158 cat >>conftest.$ac_ext <<_ACEOF
21159 /* end confdefs.h. */
21160 #include <stddef.h>
21162 main ()
21164 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21165 test_array [0] = 0
21168 return 0;
21170 _ACEOF
21171 rm -f conftest.$ac_objext
21172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21173 (eval $ac_compile) 2>conftest.er1
21174 ac_status=$?
21175 grep -v '^ *+' conftest.er1 >conftest.err
21176 rm -f conftest.er1
21177 cat conftest.err >&5
21178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21179 (exit $ac_status); } &&
21180 { ac_try='test -z "$ac_c_werror_flag"
21181 || test ! -s conftest.err'
21182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21183 (eval $ac_try) 2>&5
21184 ac_status=$?
21185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21186 (exit $ac_status); }; } &&
21187 { ac_try='test -s conftest.$ac_objext'
21188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21189 (eval $ac_try) 2>&5
21190 ac_status=$?
21191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21192 (exit $ac_status); }; }; then
21193 ac_hi=$ac_mid
21194 else
21195 echo "$as_me: failed program was:" >&5
21196 sed 's/^/| /' conftest.$ac_ext >&5
21198 ac_lo=`expr '(' $ac_mid ')' + 1`
21200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21201 done
21202 case $ac_lo in
21203 ?*) res_lo=$ac_lo;;
21204 '') result=? ;;
21205 esac
21206 else
21207 if test "$cross_compiling" = yes; then
21208 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21209 See \`config.log' for more details." >&5
21210 echo "$as_me: error: cannot run test program while cross compiling
21211 See \`config.log' for more details." >&2;}
21212 { (exit 1); exit 1; }; }
21213 else
21214 cat >conftest.$ac_ext <<_ACEOF
21215 /* confdefs.h. */
21216 _ACEOF
21217 cat confdefs.h >>conftest.$ac_ext
21218 cat >>conftest.$ac_ext <<_ACEOF
21219 /* end confdefs.h. */
21220 #include <stddef.h>
21221 long longval () { return ~(size_t)0 % 10; }
21222 unsigned long ulongval () { return ~(size_t)0 % 10; }
21223 #include <stdio.h>
21224 #include <stdlib.h>
21226 main ()
21229 FILE *f = fopen ("conftest.val", "w");
21230 if (! f)
21231 exit (1);
21232 if ((~(size_t)0 % 10) < 0)
21234 long i = longval ();
21235 if (i != (~(size_t)0 % 10))
21236 exit (1);
21237 fprintf (f, "%ld\n", i);
21239 else
21241 unsigned long i = ulongval ();
21242 if (i != (~(size_t)0 % 10))
21243 exit (1);
21244 fprintf (f, "%lu\n", i);
21246 exit (ferror (f) || fclose (f) != 0);
21249 return 0;
21251 _ACEOF
21252 rm -f conftest$ac_exeext
21253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21254 (eval $ac_link) 2>&5
21255 ac_status=$?
21256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21257 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21259 (eval $ac_try) 2>&5
21260 ac_status=$?
21261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21262 (exit $ac_status); }; }; then
21263 res_lo=`cat conftest.val`
21264 else
21265 echo "$as_me: program exited with status $ac_status" >&5
21266 echo "$as_me: failed program was:" >&5
21267 sed 's/^/| /' conftest.$ac_ext >&5
21269 ( exit $ac_status )
21270 result=?
21272 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21275 rm -f conftest.val
21276 if test "$cross_compiling" = yes; then
21277 # Depending upon the size, compute the lo and hi bounds.
21278 cat >conftest.$ac_ext <<_ACEOF
21279 /* confdefs.h. */
21280 _ACEOF
21281 cat confdefs.h >>conftest.$ac_ext
21282 cat >>conftest.$ac_ext <<_ACEOF
21283 /* end confdefs.h. */
21284 #include <stddef.h>
21286 main ()
21288 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21289 test_array [0] = 0
21292 return 0;
21294 _ACEOF
21295 rm -f conftest.$ac_objext
21296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21297 (eval $ac_compile) 2>conftest.er1
21298 ac_status=$?
21299 grep -v '^ *+' conftest.er1 >conftest.err
21300 rm -f conftest.er1
21301 cat conftest.err >&5
21302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21303 (exit $ac_status); } &&
21304 { ac_try='test -z "$ac_c_werror_flag"
21305 || test ! -s conftest.err'
21306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21307 (eval $ac_try) 2>&5
21308 ac_status=$?
21309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21310 (exit $ac_status); }; } &&
21311 { ac_try='test -s conftest.$ac_objext'
21312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21313 (eval $ac_try) 2>&5
21314 ac_status=$?
21315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21316 (exit $ac_status); }; }; then
21317 ac_lo=0 ac_mid=0
21318 while :; do
21319 cat >conftest.$ac_ext <<_ACEOF
21320 /* confdefs.h. */
21321 _ACEOF
21322 cat confdefs.h >>conftest.$ac_ext
21323 cat >>conftest.$ac_ext <<_ACEOF
21324 /* end confdefs.h. */
21325 #include <stddef.h>
21327 main ()
21329 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21330 test_array [0] = 0
21333 return 0;
21335 _ACEOF
21336 rm -f conftest.$ac_objext
21337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21338 (eval $ac_compile) 2>conftest.er1
21339 ac_status=$?
21340 grep -v '^ *+' conftest.er1 >conftest.err
21341 rm -f conftest.er1
21342 cat conftest.err >&5
21343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21344 (exit $ac_status); } &&
21345 { ac_try='test -z "$ac_c_werror_flag"
21346 || test ! -s conftest.err'
21347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21348 (eval $ac_try) 2>&5
21349 ac_status=$?
21350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21351 (exit $ac_status); }; } &&
21352 { ac_try='test -s conftest.$ac_objext'
21353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21354 (eval $ac_try) 2>&5
21355 ac_status=$?
21356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21357 (exit $ac_status); }; }; then
21358 ac_hi=$ac_mid; break
21359 else
21360 echo "$as_me: failed program was:" >&5
21361 sed 's/^/| /' conftest.$ac_ext >&5
21363 ac_lo=`expr $ac_mid + 1`
21364 if test $ac_lo -le $ac_mid; then
21365 ac_lo= ac_hi=
21366 break
21368 ac_mid=`expr 2 '*' $ac_mid + 1`
21370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21371 done
21372 else
21373 echo "$as_me: failed program was:" >&5
21374 sed 's/^/| /' conftest.$ac_ext >&5
21376 cat >conftest.$ac_ext <<_ACEOF
21377 /* confdefs.h. */
21378 _ACEOF
21379 cat confdefs.h >>conftest.$ac_ext
21380 cat >>conftest.$ac_ext <<_ACEOF
21381 /* end confdefs.h. */
21382 #include <stddef.h>
21384 main ()
21386 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21387 test_array [0] = 0
21390 return 0;
21392 _ACEOF
21393 rm -f conftest.$ac_objext
21394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21395 (eval $ac_compile) 2>conftest.er1
21396 ac_status=$?
21397 grep -v '^ *+' conftest.er1 >conftest.err
21398 rm -f conftest.er1
21399 cat conftest.err >&5
21400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21401 (exit $ac_status); } &&
21402 { ac_try='test -z "$ac_c_werror_flag"
21403 || test ! -s conftest.err'
21404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21405 (eval $ac_try) 2>&5
21406 ac_status=$?
21407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21408 (exit $ac_status); }; } &&
21409 { ac_try='test -s conftest.$ac_objext'
21410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21411 (eval $ac_try) 2>&5
21412 ac_status=$?
21413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21414 (exit $ac_status); }; }; then
21415 ac_hi=-1 ac_mid=-1
21416 while :; do
21417 cat >conftest.$ac_ext <<_ACEOF
21418 /* confdefs.h. */
21419 _ACEOF
21420 cat confdefs.h >>conftest.$ac_ext
21421 cat >>conftest.$ac_ext <<_ACEOF
21422 /* end confdefs.h. */
21423 #include <stddef.h>
21425 main ()
21427 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
21428 test_array [0] = 0
21431 return 0;
21433 _ACEOF
21434 rm -f conftest.$ac_objext
21435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21436 (eval $ac_compile) 2>conftest.er1
21437 ac_status=$?
21438 grep -v '^ *+' conftest.er1 >conftest.err
21439 rm -f conftest.er1
21440 cat conftest.err >&5
21441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442 (exit $ac_status); } &&
21443 { ac_try='test -z "$ac_c_werror_flag"
21444 || test ! -s conftest.err'
21445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21446 (eval $ac_try) 2>&5
21447 ac_status=$?
21448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21449 (exit $ac_status); }; } &&
21450 { ac_try='test -s conftest.$ac_objext'
21451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21452 (eval $ac_try) 2>&5
21453 ac_status=$?
21454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21455 (exit $ac_status); }; }; then
21456 ac_lo=$ac_mid; break
21457 else
21458 echo "$as_me: failed program was:" >&5
21459 sed 's/^/| /' conftest.$ac_ext >&5
21461 ac_hi=`expr '(' $ac_mid ')' - 1`
21462 if test $ac_mid -le $ac_hi; then
21463 ac_lo= ac_hi=
21464 break
21466 ac_mid=`expr 2 '*' $ac_mid`
21468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21469 done
21470 else
21471 echo "$as_me: failed program was:" >&5
21472 sed 's/^/| /' conftest.$ac_ext >&5
21474 ac_lo= ac_hi=
21476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21479 # Binary search between lo and hi bounds.
21480 while test "x$ac_lo" != "x$ac_hi"; do
21481 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21482 cat >conftest.$ac_ext <<_ACEOF
21483 /* confdefs.h. */
21484 _ACEOF
21485 cat confdefs.h >>conftest.$ac_ext
21486 cat >>conftest.$ac_ext <<_ACEOF
21487 /* end confdefs.h. */
21488 #include <stddef.h>
21490 main ()
21492 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21493 test_array [0] = 0
21496 return 0;
21498 _ACEOF
21499 rm -f conftest.$ac_objext
21500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21501 (eval $ac_compile) 2>conftest.er1
21502 ac_status=$?
21503 grep -v '^ *+' conftest.er1 >conftest.err
21504 rm -f conftest.er1
21505 cat conftest.err >&5
21506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21507 (exit $ac_status); } &&
21508 { ac_try='test -z "$ac_c_werror_flag"
21509 || test ! -s conftest.err'
21510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21511 (eval $ac_try) 2>&5
21512 ac_status=$?
21513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21514 (exit $ac_status); }; } &&
21515 { ac_try='test -s conftest.$ac_objext'
21516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21517 (eval $ac_try) 2>&5
21518 ac_status=$?
21519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21520 (exit $ac_status); }; }; then
21521 ac_hi=$ac_mid
21522 else
21523 echo "$as_me: failed program was:" >&5
21524 sed 's/^/| /' conftest.$ac_ext >&5
21526 ac_lo=`expr '(' $ac_mid ')' + 1`
21528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21529 done
21530 case $ac_lo in
21531 ?*) fits_in_uint=$ac_lo;;
21532 '') result=? ;;
21533 esac
21534 else
21535 if test "$cross_compiling" = yes; then
21536 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21537 See \`config.log' for more details." >&5
21538 echo "$as_me: error: cannot run test program while cross compiling
21539 See \`config.log' for more details." >&2;}
21540 { (exit 1); exit 1; }; }
21541 else
21542 cat >conftest.$ac_ext <<_ACEOF
21543 /* confdefs.h. */
21544 _ACEOF
21545 cat confdefs.h >>conftest.$ac_ext
21546 cat >>conftest.$ac_ext <<_ACEOF
21547 /* end confdefs.h. */
21548 #include <stddef.h>
21549 long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
21550 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
21551 #include <stdio.h>
21552 #include <stdlib.h>
21554 main ()
21557 FILE *f = fopen ("conftest.val", "w");
21558 if (! f)
21559 exit (1);
21560 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
21562 long i = longval ();
21563 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21564 exit (1);
21565 fprintf (f, "%ld\n", i);
21567 else
21569 unsigned long i = ulongval ();
21570 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21571 exit (1);
21572 fprintf (f, "%lu\n", i);
21574 exit (ferror (f) || fclose (f) != 0);
21577 return 0;
21579 _ACEOF
21580 rm -f conftest$ac_exeext
21581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21582 (eval $ac_link) 2>&5
21583 ac_status=$?
21584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21587 (eval $ac_try) 2>&5
21588 ac_status=$?
21589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21590 (exit $ac_status); }; }; then
21591 fits_in_uint=`cat conftest.val`
21592 else
21593 echo "$as_me: program exited with status $ac_status" >&5
21594 echo "$as_me: failed program was:" >&5
21595 sed 's/^/| /' conftest.$ac_ext >&5
21597 ( exit $ac_status )
21598 result=?
21600 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21603 rm -f conftest.val
21604 if test "$fits_in_uint" = 1; then
21605 cat >conftest.$ac_ext <<_ACEOF
21606 /* confdefs.h. */
21607 _ACEOF
21608 cat confdefs.h >>conftest.$ac_ext
21609 cat >>conftest.$ac_ext <<_ACEOF
21610 /* end confdefs.h. */
21611 #include <stddef.h>
21612 extern size_t foo;
21613 extern unsigned long foo;
21616 main ()
21620 return 0;
21622 _ACEOF
21623 rm -f conftest.$ac_objext
21624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21625 (eval $ac_compile) 2>conftest.er1
21626 ac_status=$?
21627 grep -v '^ *+' conftest.er1 >conftest.err
21628 rm -f conftest.er1
21629 cat conftest.err >&5
21630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21631 (exit $ac_status); } &&
21632 { ac_try='test -z "$ac_c_werror_flag"
21633 || test ! -s conftest.err'
21634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21635 (eval $ac_try) 2>&5
21636 ac_status=$?
21637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21638 (exit $ac_status); }; } &&
21639 { ac_try='test -s conftest.$ac_objext'
21640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21641 (eval $ac_try) 2>&5
21642 ac_status=$?
21643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21644 (exit $ac_status); }; }; then
21645 fits_in_uint=0
21646 else
21647 echo "$as_me: failed program was:" >&5
21648 sed 's/^/| /' conftest.$ac_ext >&5
21651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21653 if test -z "$result"; then
21654 if test "$fits_in_uint" = 1; then
21655 result="$res_hi$res_lo"U
21656 else
21657 result="$res_hi$res_lo"UL
21659 else
21660 result='~(size_t)0'
21663 echo "$as_me:$LINENO: result: $result" >&5
21664 echo "${ECHO_T}$result" >&6
21665 if test "$result" != yes; then
21667 cat >>confdefs.h <<_ACEOF
21668 #define SIZE_MAX $result
21669 _ACEOF
21677 for ac_header in stdint.h
21679 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21681 echo "$as_me:$LINENO: checking for $ac_header" >&5
21682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21684 echo $ECHO_N "(cached) $ECHO_C" >&6
21686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21687 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21688 else
21689 # Is the header compilable?
21690 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21691 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21692 cat >conftest.$ac_ext <<_ACEOF
21693 /* confdefs.h. */
21694 _ACEOF
21695 cat confdefs.h >>conftest.$ac_ext
21696 cat >>conftest.$ac_ext <<_ACEOF
21697 /* end confdefs.h. */
21698 $ac_includes_default
21699 #include <$ac_header>
21700 _ACEOF
21701 rm -f conftest.$ac_objext
21702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21703 (eval $ac_compile) 2>conftest.er1
21704 ac_status=$?
21705 grep -v '^ *+' conftest.er1 >conftest.err
21706 rm -f conftest.er1
21707 cat conftest.err >&5
21708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21709 (exit $ac_status); } &&
21710 { ac_try='test -z "$ac_c_werror_flag"
21711 || test ! -s conftest.err'
21712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21713 (eval $ac_try) 2>&5
21714 ac_status=$?
21715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21716 (exit $ac_status); }; } &&
21717 { ac_try='test -s conftest.$ac_objext'
21718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21719 (eval $ac_try) 2>&5
21720 ac_status=$?
21721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722 (exit $ac_status); }; }; then
21723 ac_header_compiler=yes
21724 else
21725 echo "$as_me: failed program was:" >&5
21726 sed 's/^/| /' conftest.$ac_ext >&5
21728 ac_header_compiler=no
21730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21731 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21732 echo "${ECHO_T}$ac_header_compiler" >&6
21734 # Is the header present?
21735 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21736 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21737 cat >conftest.$ac_ext <<_ACEOF
21738 /* confdefs.h. */
21739 _ACEOF
21740 cat confdefs.h >>conftest.$ac_ext
21741 cat >>conftest.$ac_ext <<_ACEOF
21742 /* end confdefs.h. */
21743 #include <$ac_header>
21744 _ACEOF
21745 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21746 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21747 ac_status=$?
21748 grep -v '^ *+' conftest.er1 >conftest.err
21749 rm -f conftest.er1
21750 cat conftest.err >&5
21751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21752 (exit $ac_status); } >/dev/null; then
21753 if test -s conftest.err; then
21754 ac_cpp_err=$ac_c_preproc_warn_flag
21755 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21756 else
21757 ac_cpp_err=
21759 else
21760 ac_cpp_err=yes
21762 if test -z "$ac_cpp_err"; then
21763 ac_header_preproc=yes
21764 else
21765 echo "$as_me: failed program was:" >&5
21766 sed 's/^/| /' conftest.$ac_ext >&5
21768 ac_header_preproc=no
21770 rm -f conftest.err conftest.$ac_ext
21771 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21772 echo "${ECHO_T}$ac_header_preproc" >&6
21774 # So? What about this header?
21775 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21776 yes:no: )
21777 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21778 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21780 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21781 ac_header_preproc=yes
21783 no:yes:* )
21784 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21785 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21786 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21787 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21788 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21789 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21790 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21791 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21793 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21794 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21795 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21797 cat <<\_ASBOX
21798 ## ------------------------------------------ ##
21799 ## Report this to the AC_PACKAGE_NAME lists. ##
21800 ## ------------------------------------------ ##
21801 _ASBOX
21803 sed "s/^/$as_me: WARNING: /" >&2
21805 esac
21806 echo "$as_me:$LINENO: checking for $ac_header" >&5
21807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21808 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21809 echo $ECHO_N "(cached) $ECHO_C" >&6
21810 else
21811 eval "$as_ac_Header=\$ac_header_preproc"
21813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21814 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21817 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21818 cat >>confdefs.h <<_ACEOF
21819 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21820 _ACEOF
21824 done
21829 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21830 # for constant arguments. Useless!
21831 echo "$as_me:$LINENO: checking for working alloca.h" >&5
21832 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21833 if test "${ac_cv_working_alloca_h+set}" = set; then
21834 echo $ECHO_N "(cached) $ECHO_C" >&6
21835 else
21836 cat >conftest.$ac_ext <<_ACEOF
21837 /* confdefs.h. */
21838 _ACEOF
21839 cat confdefs.h >>conftest.$ac_ext
21840 cat >>conftest.$ac_ext <<_ACEOF
21841 /* end confdefs.h. */
21842 #include <alloca.h>
21844 main ()
21846 char *p = (char *) alloca (2 * sizeof (int));
21848 return 0;
21850 _ACEOF
21851 rm -f conftest.$ac_objext conftest$ac_exeext
21852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21853 (eval $ac_link) 2>conftest.er1
21854 ac_status=$?
21855 grep -v '^ *+' conftest.er1 >conftest.err
21856 rm -f conftest.er1
21857 cat conftest.err >&5
21858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21859 (exit $ac_status); } &&
21860 { ac_try='test -z "$ac_c_werror_flag"
21861 || test ! -s conftest.err'
21862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21863 (eval $ac_try) 2>&5
21864 ac_status=$?
21865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21866 (exit $ac_status); }; } &&
21867 { ac_try='test -s conftest$ac_exeext'
21868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21869 (eval $ac_try) 2>&5
21870 ac_status=$?
21871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21872 (exit $ac_status); }; }; then
21873 ac_cv_working_alloca_h=yes
21874 else
21875 echo "$as_me: failed program was:" >&5
21876 sed 's/^/| /' conftest.$ac_ext >&5
21878 ac_cv_working_alloca_h=no
21880 rm -f conftest.err conftest.$ac_objext \
21881 conftest$ac_exeext conftest.$ac_ext
21883 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21884 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21885 if test $ac_cv_working_alloca_h = yes; then
21887 cat >>confdefs.h <<\_ACEOF
21888 #define HAVE_ALLOCA_H 1
21889 _ACEOF
21893 echo "$as_me:$LINENO: checking for alloca" >&5
21894 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21895 if test "${ac_cv_func_alloca_works+set}" = set; then
21896 echo $ECHO_N "(cached) $ECHO_C" >&6
21897 else
21898 cat >conftest.$ac_ext <<_ACEOF
21899 /* confdefs.h. */
21900 _ACEOF
21901 cat confdefs.h >>conftest.$ac_ext
21902 cat >>conftest.$ac_ext <<_ACEOF
21903 /* end confdefs.h. */
21904 #ifdef __GNUC__
21905 # define alloca __builtin_alloca
21906 #else
21907 # ifdef _MSC_VER
21908 # include <malloc.h>
21909 # define alloca _alloca
21910 # else
21911 # if HAVE_ALLOCA_H
21912 # include <alloca.h>
21913 # else
21914 # ifdef _AIX
21915 #pragma alloca
21916 # else
21917 # ifndef alloca /* predefined by HP cc +Olibcalls */
21918 char *alloca ();
21919 # endif
21920 # endif
21921 # endif
21922 # endif
21923 #endif
21926 main ()
21928 char *p = (char *) alloca (1);
21930 return 0;
21932 _ACEOF
21933 rm -f conftest.$ac_objext conftest$ac_exeext
21934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21935 (eval $ac_link) 2>conftest.er1
21936 ac_status=$?
21937 grep -v '^ *+' conftest.er1 >conftest.err
21938 rm -f conftest.er1
21939 cat conftest.err >&5
21940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21941 (exit $ac_status); } &&
21942 { ac_try='test -z "$ac_c_werror_flag"
21943 || test ! -s conftest.err'
21944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21945 (eval $ac_try) 2>&5
21946 ac_status=$?
21947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21948 (exit $ac_status); }; } &&
21949 { ac_try='test -s conftest$ac_exeext'
21950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21951 (eval $ac_try) 2>&5
21952 ac_status=$?
21953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21954 (exit $ac_status); }; }; then
21955 ac_cv_func_alloca_works=yes
21956 else
21957 echo "$as_me: failed program was:" >&5
21958 sed 's/^/| /' conftest.$ac_ext >&5
21960 ac_cv_func_alloca_works=no
21962 rm -f conftest.err conftest.$ac_objext \
21963 conftest$ac_exeext conftest.$ac_ext
21965 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21966 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21968 if test $ac_cv_func_alloca_works = yes; then
21970 cat >>confdefs.h <<\_ACEOF
21971 #define HAVE_ALLOCA 1
21972 _ACEOF
21974 else
21975 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21976 # that cause trouble. Some versions do not even contain alloca or
21977 # contain a buggy version. If you still want to use their alloca,
21978 # use ar to extract alloca.o from them instead of compiling alloca.c.
21980 ALLOCA=alloca.$ac_objext
21982 cat >>confdefs.h <<\_ACEOF
21983 #define C_ALLOCA 1
21984 _ACEOF
21987 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21988 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21989 if test "${ac_cv_os_cray+set}" = set; then
21990 echo $ECHO_N "(cached) $ECHO_C" >&6
21991 else
21992 cat >conftest.$ac_ext <<_ACEOF
21993 /* confdefs.h. */
21994 _ACEOF
21995 cat confdefs.h >>conftest.$ac_ext
21996 cat >>conftest.$ac_ext <<_ACEOF
21997 /* end confdefs.h. */
21998 #if defined(CRAY) && ! defined(CRAY2)
21999 webecray
22000 #else
22001 wenotbecray
22002 #endif
22004 _ACEOF
22005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22006 $EGREP "webecray" >/dev/null 2>&1; then
22007 ac_cv_os_cray=yes
22008 else
22009 ac_cv_os_cray=no
22011 rm -f conftest*
22014 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
22015 echo "${ECHO_T}$ac_cv_os_cray" >&6
22016 if test $ac_cv_os_cray = yes; then
22017 for ac_func in _getb67 GETB67 getb67; do
22018 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22019 echo "$as_me:$LINENO: checking for $ac_func" >&5
22020 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22021 if eval "test \"\${$as_ac_var+set}\" = set"; then
22022 echo $ECHO_N "(cached) $ECHO_C" >&6
22023 else
22024 cat >conftest.$ac_ext <<_ACEOF
22025 /* confdefs.h. */
22026 _ACEOF
22027 cat confdefs.h >>conftest.$ac_ext
22028 cat >>conftest.$ac_ext <<_ACEOF
22029 /* end confdefs.h. */
22030 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22032 #define $ac_func innocuous_$ac_func
22034 /* System header to define __stub macros and hopefully few prototypes,
22035 which can conflict with char $ac_func (); below.
22036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22037 <limits.h> exists even on freestanding compilers. */
22039 #ifdef __STDC__
22040 # include <limits.h>
22041 #else
22042 # include <assert.h>
22043 #endif
22045 #undef $ac_func
22047 /* Override any gcc2 internal prototype to avoid an error. */
22048 #ifdef __cplusplus
22049 extern "C"
22051 #endif
22052 /* We use char because int might match the return type of a gcc2
22053 builtin and then its argument prototype would still apply. */
22054 char $ac_func ();
22055 /* The GNU C library defines this for functions which it implements
22056 to always fail with ENOSYS. Some functions are actually named
22057 something starting with __ and the normal name is an alias. */
22058 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22059 choke me
22060 #else
22061 char (*f) () = $ac_func;
22062 #endif
22063 #ifdef __cplusplus
22065 #endif
22068 main ()
22070 return f != $ac_func;
22072 return 0;
22074 _ACEOF
22075 rm -f conftest.$ac_objext conftest$ac_exeext
22076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22077 (eval $ac_link) 2>conftest.er1
22078 ac_status=$?
22079 grep -v '^ *+' conftest.er1 >conftest.err
22080 rm -f conftest.er1
22081 cat conftest.err >&5
22082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22083 (exit $ac_status); } &&
22084 { ac_try='test -z "$ac_c_werror_flag"
22085 || test ! -s conftest.err'
22086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22087 (eval $ac_try) 2>&5
22088 ac_status=$?
22089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22090 (exit $ac_status); }; } &&
22091 { ac_try='test -s conftest$ac_exeext'
22092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22093 (eval $ac_try) 2>&5
22094 ac_status=$?
22095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22096 (exit $ac_status); }; }; then
22097 eval "$as_ac_var=yes"
22098 else
22099 echo "$as_me: failed program was:" >&5
22100 sed 's/^/| /' conftest.$ac_ext >&5
22102 eval "$as_ac_var=no"
22104 rm -f conftest.err conftest.$ac_objext \
22105 conftest$ac_exeext conftest.$ac_ext
22107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22108 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22109 if test `eval echo '${'$as_ac_var'}'` = yes; then
22111 cat >>confdefs.h <<_ACEOF
22112 #define CRAY_STACKSEG_END $ac_func
22113 _ACEOF
22115 break
22118 done
22121 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
22122 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
22123 if test "${ac_cv_c_stack_direction+set}" = set; then
22124 echo $ECHO_N "(cached) $ECHO_C" >&6
22125 else
22126 if test "$cross_compiling" = yes; then
22127 ac_cv_c_stack_direction=0
22128 else
22129 cat >conftest.$ac_ext <<_ACEOF
22130 /* confdefs.h. */
22131 _ACEOF
22132 cat confdefs.h >>conftest.$ac_ext
22133 cat >>conftest.$ac_ext <<_ACEOF
22134 /* end confdefs.h. */
22136 find_stack_direction ()
22138 static char *addr = 0;
22139 auto char dummy;
22140 if (addr == 0)
22142 addr = &dummy;
22143 return find_stack_direction ();
22145 else
22146 return (&dummy > addr) ? 1 : -1;
22150 main ()
22152 exit (find_stack_direction () < 0);
22154 _ACEOF
22155 rm -f conftest$ac_exeext
22156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22157 (eval $ac_link) 2>&5
22158 ac_status=$?
22159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22160 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22162 (eval $ac_try) 2>&5
22163 ac_status=$?
22164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22165 (exit $ac_status); }; }; then
22166 ac_cv_c_stack_direction=1
22167 else
22168 echo "$as_me: program exited with status $ac_status" >&5
22169 echo "$as_me: failed program was:" >&5
22170 sed 's/^/| /' conftest.$ac_ext >&5
22172 ( exit $ac_status )
22173 ac_cv_c_stack_direction=-1
22175 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22178 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
22179 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
22181 cat >>confdefs.h <<_ACEOF
22182 #define STACK_DIRECTION $ac_cv_c_stack_direction
22183 _ACEOF
22188 cat >conftest.$ac_ext <<_ACEOF
22189 /* confdefs.h. */
22190 _ACEOF
22191 cat confdefs.h >>conftest.$ac_ext
22192 cat >>conftest.$ac_ext <<_ACEOF
22193 /* end confdefs.h. */
22195 #if defined __GNUC__ || defined _MSC_VER || !HAVE_ALLOCA_H
22196 Need own alloca
22197 #endif
22199 _ACEOF
22200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22201 $EGREP "Need own alloca" >/dev/null 2>&1; then
22202 ALLOCA_H=alloca.h
22203 else
22204 ALLOCA_H=
22206 rm -f conftest*
22213 for ac_func in snprintf vasprintf wcslen
22215 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22216 echo "$as_me:$LINENO: checking for $ac_func" >&5
22217 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22218 if eval "test \"\${$as_ac_var+set}\" = set"; then
22219 echo $ECHO_N "(cached) $ECHO_C" >&6
22220 else
22221 cat >conftest.$ac_ext <<_ACEOF
22222 /* confdefs.h. */
22223 _ACEOF
22224 cat confdefs.h >>conftest.$ac_ext
22225 cat >>conftest.$ac_ext <<_ACEOF
22226 /* end confdefs.h. */
22227 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22229 #define $ac_func innocuous_$ac_func
22231 /* System header to define __stub macros and hopefully few prototypes,
22232 which can conflict with char $ac_func (); below.
22233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22234 <limits.h> exists even on freestanding compilers. */
22236 #ifdef __STDC__
22237 # include <limits.h>
22238 #else
22239 # include <assert.h>
22240 #endif
22242 #undef $ac_func
22244 /* Override any gcc2 internal prototype to avoid an error. */
22245 #ifdef __cplusplus
22246 extern "C"
22248 #endif
22249 /* We use char because int might match the return type of a gcc2
22250 builtin and then its argument prototype would still apply. */
22251 char $ac_func ();
22252 /* The GNU C library defines this for functions which it implements
22253 to always fail with ENOSYS. Some functions are actually named
22254 something starting with __ and the normal name is an alias. */
22255 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22256 choke me
22257 #else
22258 char (*f) () = $ac_func;
22259 #endif
22260 #ifdef __cplusplus
22262 #endif
22265 main ()
22267 return f != $ac_func;
22269 return 0;
22271 _ACEOF
22272 rm -f conftest.$ac_objext conftest$ac_exeext
22273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22274 (eval $ac_link) 2>conftest.er1
22275 ac_status=$?
22276 grep -v '^ *+' conftest.er1 >conftest.err
22277 rm -f conftest.er1
22278 cat conftest.err >&5
22279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22280 (exit $ac_status); } &&
22281 { ac_try='test -z "$ac_c_werror_flag"
22282 || test ! -s conftest.err'
22283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22284 (eval $ac_try) 2>&5
22285 ac_status=$?
22286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22287 (exit $ac_status); }; } &&
22288 { ac_try='test -s conftest$ac_exeext'
22289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22290 (eval $ac_try) 2>&5
22291 ac_status=$?
22292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22293 (exit $ac_status); }; }; then
22294 eval "$as_ac_var=yes"
22295 else
22296 echo "$as_me: failed program was:" >&5
22297 sed 's/^/| /' conftest.$ac_ext >&5
22299 eval "$as_ac_var=no"
22301 rm -f conftest.err conftest.$ac_objext \
22302 conftest$ac_exeext conftest.$ac_ext
22304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22305 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22306 if test `eval echo '${'$as_ac_var'}'` = yes; then
22307 cat >>confdefs.h <<_ACEOF
22308 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22309 _ACEOF
22312 done
22314 echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22315 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
22316 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22317 echo $ECHO_N "(cached) $ECHO_C" >&6
22318 else
22319 cat >conftest.$ac_ext <<_ACEOF
22320 /* confdefs.h. */
22321 _ACEOF
22322 cat confdefs.h >>conftest.$ac_ext
22323 cat >>conftest.$ac_ext <<_ACEOF
22324 /* end confdefs.h. */
22325 $ac_includes_default
22327 main ()
22329 #ifndef _snprintf
22330 char *p = (char *) _snprintf;
22331 #endif
22334 return 0;
22336 _ACEOF
22337 rm -f conftest.$ac_objext
22338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22339 (eval $ac_compile) 2>conftest.er1
22340 ac_status=$?
22341 grep -v '^ *+' conftest.er1 >conftest.err
22342 rm -f conftest.er1
22343 cat conftest.err >&5
22344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22345 (exit $ac_status); } &&
22346 { ac_try='test -z "$ac_c_werror_flag"
22347 || test ! -s conftest.err'
22348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22349 (eval $ac_try) 2>&5
22350 ac_status=$?
22351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22352 (exit $ac_status); }; } &&
22353 { ac_try='test -s conftest.$ac_objext'
22354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22355 (eval $ac_try) 2>&5
22356 ac_status=$?
22357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22358 (exit $ac_status); }; }; then
22359 ac_cv_have_decl__snprintf=yes
22360 else
22361 echo "$as_me: failed program was:" >&5
22362 sed 's/^/| /' conftest.$ac_ext >&5
22364 ac_cv_have_decl__snprintf=no
22366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22368 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22369 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
22370 if test $ac_cv_have_decl__snprintf = yes; then
22372 cat >>confdefs.h <<_ACEOF
22373 #define HAVE_DECL__SNPRINTF 1
22374 _ACEOF
22377 else
22378 cat >>confdefs.h <<_ACEOF
22379 #define HAVE_DECL__SNPRINTF 0
22380 _ACEOF
22388 echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
22389 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
22390 if test "${gt_cv_func_printf_posix+set}" = set; then
22391 echo $ECHO_N "(cached) $ECHO_C" >&6
22392 else
22394 if test "$cross_compiling" = yes; then
22396 cat >conftest.$ac_ext <<_ACEOF
22397 /* confdefs.h. */
22398 _ACEOF
22399 cat confdefs.h >>conftest.$ac_ext
22400 cat >>conftest.$ac_ext <<_ACEOF
22401 /* end confdefs.h. */
22403 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
22404 notposix
22405 #endif
22407 _ACEOF
22408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22409 $EGREP "notposix" >/dev/null 2>&1; then
22410 gt_cv_func_printf_posix="guessing no"
22411 else
22412 gt_cv_func_printf_posix="guessing yes"
22414 rm -f conftest*
22417 else
22418 cat >conftest.$ac_ext <<_ACEOF
22419 /* confdefs.h. */
22420 _ACEOF
22421 cat confdefs.h >>conftest.$ac_ext
22422 cat >>conftest.$ac_ext <<_ACEOF
22423 /* end confdefs.h. */
22425 #include <stdio.h>
22426 #include <string.h>
22427 /* The string "%2$d %1$d", with dollar characters protected from the shell's
22428 dollar expansion (possibly an autoconf bug). */
22429 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
22430 static char buf[100];
22431 int main ()
22433 sprintf (buf, format, 33, 55);
22434 return (strcmp (buf, "55 33") != 0);
22436 _ACEOF
22437 rm -f conftest$ac_exeext
22438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22439 (eval $ac_link) 2>&5
22440 ac_status=$?
22441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22442 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22444 (eval $ac_try) 2>&5
22445 ac_status=$?
22446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22447 (exit $ac_status); }; }; then
22448 gt_cv_func_printf_posix=yes
22449 else
22450 echo "$as_me: program exited with status $ac_status" >&5
22451 echo "$as_me: failed program was:" >&5
22452 sed 's/^/| /' conftest.$ac_ext >&5
22454 ( exit $ac_status )
22455 gt_cv_func_printf_posix=no
22457 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22461 echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
22462 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
22463 case $gt_cv_func_printf_posix in
22464 *yes)
22466 cat >>confdefs.h <<\_ACEOF
22467 #define HAVE_POSIX_PRINTF 1
22468 _ACEOF
22471 esac
22474 ac_aux_dir_abs=`cd $ac_aux_dir && pwd`
22475 # Extract the first word of "dvips", so it can be a program name with args.
22476 set dummy dvips; ac_word=$2
22477 echo "$as_me:$LINENO: checking for $ac_word" >&5
22478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22479 if test "${ac_cv_path_DVIPS+set}" = set; then
22480 echo $ECHO_N "(cached) $ECHO_C" >&6
22481 else
22482 case $DVIPS in
22483 [\\/]* | ?:[\\/]*)
22484 ac_cv_path_DVIPS="$DVIPS" # Let the user override the test with a path.
22487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22488 for as_dir in $PATH
22490 IFS=$as_save_IFS
22491 test -z "$as_dir" && as_dir=.
22492 for ac_exec_ext in '' $ac_executable_extensions; do
22493 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22494 ac_cv_path_DVIPS="$as_dir/$ac_word$ac_exec_ext"
22495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22496 break 2
22498 done
22499 done
22501 test -z "$ac_cv_path_DVIPS" && ac_cv_path_DVIPS="$ac_aux_dir_abs/missing dvips"
22503 esac
22505 DVIPS=$ac_cv_path_DVIPS
22507 if test -n "$DVIPS"; then
22508 echo "$as_me:$LINENO: result: $DVIPS" >&5
22509 echo "${ECHO_T}$DVIPS" >&6
22510 else
22511 echo "$as_me:$LINENO: result: no" >&5
22512 echo "${ECHO_T}no" >&6
22515 # Extract the first word of "texi2pdf", so it can be a program name with args.
22516 set dummy texi2pdf; ac_word=$2
22517 echo "$as_me:$LINENO: checking for $ac_word" >&5
22518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22519 if test "${ac_cv_path_TEXI2PDF+set}" = set; then
22520 echo $ECHO_N "(cached) $ECHO_C" >&6
22521 else
22522 case $TEXI2PDF in
22523 [\\/]* | ?:[\\/]*)
22524 ac_cv_path_TEXI2PDF="$TEXI2PDF" # Let the user override the test with a path.
22527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22528 for as_dir in $PATH
22530 IFS=$as_save_IFS
22531 test -z "$as_dir" && as_dir=.
22532 for ac_exec_ext in '' $ac_executable_extensions; do
22533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22534 ac_cv_path_TEXI2PDF="$as_dir/$ac_word$ac_exec_ext"
22535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22536 break 2
22538 done
22539 done
22541 test -z "$ac_cv_path_TEXI2PDF" && ac_cv_path_TEXI2PDF="$ac_aux_dir_abs/missing texi2pdf"
22543 esac
22545 TEXI2PDF=$ac_cv_path_TEXI2PDF
22547 if test -n "$TEXI2PDF"; then
22548 echo "$as_me:$LINENO: result: $TEXI2PDF" >&5
22549 echo "${ECHO_T}$TEXI2PDF" >&6
22550 else
22551 echo "$as_me:$LINENO: result: no" >&5
22552 echo "${ECHO_T}no" >&6
22555 # Extract the first word of "perl", so it can be a program name with args.
22556 set dummy perl; ac_word=$2
22557 echo "$as_me:$LINENO: checking for $ac_word" >&5
22558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22559 if test "${ac_cv_path_PERL+set}" = set; then
22560 echo $ECHO_N "(cached) $ECHO_C" >&6
22561 else
22562 case $PERL in
22563 [\\/]* | ?:[\\/]*)
22564 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
22567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22568 for as_dir in $PATH
22570 IFS=$as_save_IFS
22571 test -z "$as_dir" && as_dir=.
22572 for ac_exec_ext in '' $ac_executable_extensions; do
22573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22574 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
22575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22576 break 2
22578 done
22579 done
22581 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="$ac_aux_dir_abs/missing perl"
22583 esac
22585 PERL=$ac_cv_path_PERL
22587 if test -n "$PERL"; then
22588 echo "$as_me:$LINENO: result: $PERL" >&5
22589 echo "${ECHO_T}$PERL" >&6
22590 else
22591 echo "$as_me:$LINENO: result: no" >&5
22592 echo "${ECHO_T}no" >&6
22596 ac_config_files="$ac_config_files Makefile"
22599 cat >confcache <<\_ACEOF
22600 # This file is a shell script that caches the results of configure
22601 # tests run on this system so they can be shared between configure
22602 # scripts and configure runs, see configure's option --config-cache.
22603 # It is not useful on other systems. If it contains results you don't
22604 # want to keep, you may remove or edit it.
22606 # config.status only pays attention to the cache file if you give it
22607 # the --recheck option to rerun configure.
22609 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22610 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22611 # following values.
22613 _ACEOF
22615 # The following way of writing the cache mishandles newlines in values,
22616 # but we know of no workaround that is simple, portable, and efficient.
22617 # So, don't put newlines in cache variables' values.
22618 # Ultrix sh set writes to stderr and can't be redirected directly,
22619 # and sets the high bit in the cache file unless we assign to the vars.
22621 (set) 2>&1 |
22622 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22623 *ac_space=\ *)
22624 # `set' does not quote correctly, so add quotes (double-quote
22625 # substitution turns \\\\ into \\, and sed turns \\ into \).
22626 sed -n \
22627 "s/'/'\\\\''/g;
22628 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22631 # `set' quotes correctly as required by POSIX, so do not add quotes.
22632 sed -n \
22633 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22635 esac;
22637 sed '
22638 t clear
22639 : clear
22640 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22641 t end
22642 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22643 : end' >>confcache
22644 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22645 if test -w $cache_file; then
22646 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22647 cat confcache >$cache_file
22648 else
22649 echo "not updating unwritable cache $cache_file"
22652 rm -f confcache
22654 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22655 # Let make expand exec_prefix.
22656 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22658 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22659 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22660 # trailing colons and then remove the whole line if VPATH becomes empty
22661 # (actually we leave an empty line to preserve line numbers).
22662 if test "x$srcdir" = x.; then
22663 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22664 s/:*\$(srcdir):*/:/;
22665 s/:*\${srcdir}:*/:/;
22666 s/:*@srcdir@:*/:/;
22667 s/^\([^=]*=[ ]*\):*/\1/;
22668 s/:*$//;
22669 s/^[^=]*=[ ]*$//;
22673 DEFS=-DHAVE_CONFIG_H
22675 ac_libobjs=
22676 ac_ltlibobjs=
22677 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22678 # 1. Remove the extension, and $U if already installed.
22679 ac_i=`echo "$ac_i" |
22680 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22681 # 2. Add them.
22682 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22683 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22684 done
22685 LIBOBJS=$ac_libobjs
22687 LTLIBOBJS=$ac_ltlibobjs
22690 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22691 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22692 Usually this means the macro was only invoked conditionally." >&5
22693 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22694 Usually this means the macro was only invoked conditionally." >&2;}
22695 { (exit 1); exit 1; }; }
22697 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22698 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22699 Usually this means the macro was only invoked conditionally." >&5
22700 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22701 Usually this means the macro was only invoked conditionally." >&2;}
22702 { (exit 1); exit 1; }; }
22704 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22705 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22706 Usually this means the macro was only invoked conditionally." >&5
22707 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22708 Usually this means the macro was only invoked conditionally." >&2;}
22709 { (exit 1); exit 1; }; }
22712 : ${CONFIG_STATUS=./config.status}
22713 ac_clean_files_save=$ac_clean_files
22714 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22715 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22716 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22717 cat >$CONFIG_STATUS <<_ACEOF
22718 #! $SHELL
22719 # Generated by $as_me.
22720 # Run this file to recreate the current configuration.
22721 # Compiler output produced by configure, useful for debugging
22722 # configure, is in config.log if it exists.
22724 debug=false
22725 ac_cs_recheck=false
22726 ac_cs_silent=false
22727 SHELL=\${CONFIG_SHELL-$SHELL}
22728 _ACEOF
22730 cat >>$CONFIG_STATUS <<\_ACEOF
22731 ## --------------------- ##
22732 ## M4sh Initialization. ##
22733 ## --------------------- ##
22735 # Be Bourne compatible
22736 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22737 emulate sh
22738 NULLCMD=:
22739 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22740 # is contrary to our usage. Disable this feature.
22741 alias -g '${1+"$@"}'='"$@"'
22742 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22743 set -o posix
22745 DUALCASE=1; export DUALCASE # for MKS sh
22747 # Support unset when possible.
22748 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22749 as_unset=unset
22750 else
22751 as_unset=false
22755 # Work around bugs in pre-3.0 UWIN ksh.
22756 $as_unset ENV MAIL MAILPATH
22757 PS1='$ '
22758 PS2='> '
22759 PS4='+ '
22761 # NLS nuisances.
22762 for as_var in \
22763 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22764 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22765 LC_TELEPHONE LC_TIME
22767 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22768 eval $as_var=C; export $as_var
22769 else
22770 $as_unset $as_var
22772 done
22774 # Required to use basename.
22775 if expr a : '\(a\)' >/dev/null 2>&1; then
22776 as_expr=expr
22777 else
22778 as_expr=false
22781 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22782 as_basename=basename
22783 else
22784 as_basename=false
22788 # Name of the executable.
22789 as_me=`$as_basename "$0" ||
22790 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22791 X"$0" : 'X\(//\)$' \| \
22792 X"$0" : 'X\(/\)$' \| \
22793 . : '\(.\)' 2>/dev/null ||
22794 echo X/"$0" |
22795 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22796 /^X\/\(\/\/\)$/{ s//\1/; q; }
22797 /^X\/\(\/\).*/{ s//\1/; q; }
22798 s/.*/./; q'`
22801 # PATH needs CR, and LINENO needs CR and PATH.
22802 # Avoid depending upon Character Ranges.
22803 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22804 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22805 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22806 as_cr_digits='0123456789'
22807 as_cr_alnum=$as_cr_Letters$as_cr_digits
22809 # The user is always right.
22810 if test "${PATH_SEPARATOR+set}" != set; then
22811 echo "#! /bin/sh" >conf$$.sh
22812 echo "exit 0" >>conf$$.sh
22813 chmod +x conf$$.sh
22814 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22815 PATH_SEPARATOR=';'
22816 else
22817 PATH_SEPARATOR=:
22819 rm -f conf$$.sh
22823 as_lineno_1=$LINENO
22824 as_lineno_2=$LINENO
22825 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22826 test "x$as_lineno_1" != "x$as_lineno_2" &&
22827 test "x$as_lineno_3" = "x$as_lineno_2" || {
22828 # Find who we are. Look in the path if we contain no path at all
22829 # relative or not.
22830 case $0 in
22831 *[\\/]* ) as_myself=$0 ;;
22832 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22833 for as_dir in $PATH
22835 IFS=$as_save_IFS
22836 test -z "$as_dir" && as_dir=.
22837 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22838 done
22841 esac
22842 # We did not find ourselves, most probably we were run as `sh COMMAND'
22843 # in which case we are not to be found in the path.
22844 if test "x$as_myself" = x; then
22845 as_myself=$0
22847 if test ! -f "$as_myself"; then
22848 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22849 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22850 { (exit 1); exit 1; }; }
22852 case $CONFIG_SHELL in
22854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22855 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22857 IFS=$as_save_IFS
22858 test -z "$as_dir" && as_dir=.
22859 for as_base in sh bash ksh sh5; do
22860 case $as_dir in
22862 if ("$as_dir/$as_base" -c '
22863 as_lineno_1=$LINENO
22864 as_lineno_2=$LINENO
22865 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22866 test "x$as_lineno_1" != "x$as_lineno_2" &&
22867 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22868 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22869 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22870 CONFIG_SHELL=$as_dir/$as_base
22871 export CONFIG_SHELL
22872 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22873 fi;;
22874 esac
22875 done
22876 done
22878 esac
22880 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22881 # uniformly replaced by the line number. The first 'sed' inserts a
22882 # line-number line before each line; the second 'sed' does the real
22883 # work. The second script uses 'N' to pair each line-number line
22884 # with the numbered line, and appends trailing '-' during
22885 # substitution so that $LINENO is not a special case at line end.
22886 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22887 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22888 sed '=' <$as_myself |
22889 sed '
22891 s,$,-,
22892 : loop
22893 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22894 t loop
22895 s,-$,,
22896 s,^['$as_cr_digits']*\n,,
22897 ' >$as_me.lineno &&
22898 chmod +x $as_me.lineno ||
22899 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22900 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22901 { (exit 1); exit 1; }; }
22903 # Don't try to exec as it changes $[0], causing all sort of problems
22904 # (the dirname of $[0] is not the place where we might find the
22905 # original and so on. Autoconf is especially sensible to this).
22906 . ./$as_me.lineno
22907 # Exit status is that of the last command.
22908 exit
22912 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22913 *c*,-n*) ECHO_N= ECHO_C='
22914 ' ECHO_T=' ' ;;
22915 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22916 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22917 esac
22919 if expr a : '\(a\)' >/dev/null 2>&1; then
22920 as_expr=expr
22921 else
22922 as_expr=false
22925 rm -f conf$$ conf$$.exe conf$$.file
22926 echo >conf$$.file
22927 if ln -s conf$$.file conf$$ 2>/dev/null; then
22928 # We could just check for DJGPP; but this test a) works b) is more generic
22929 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22930 if test -f conf$$.exe; then
22931 # Don't use ln at all; we don't have any links
22932 as_ln_s='cp -p'
22933 else
22934 as_ln_s='ln -s'
22936 elif ln conf$$.file conf$$ 2>/dev/null; then
22937 as_ln_s=ln
22938 else
22939 as_ln_s='cp -p'
22941 rm -f conf$$ conf$$.exe conf$$.file
22943 if mkdir -p . 2>/dev/null; then
22944 as_mkdir_p=:
22945 else
22946 test -d ./-p && rmdir ./-p
22947 as_mkdir_p=false
22950 as_executable_p="test -f"
22952 # Sed expression to map a string onto a valid CPP name.
22953 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22955 # Sed expression to map a string onto a valid variable name.
22956 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22959 # IFS
22960 # We need space, tab and new line, in precisely that order.
22961 as_nl='
22963 IFS=" $as_nl"
22965 # CDPATH.
22966 $as_unset CDPATH
22968 exec 6>&1
22970 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22971 # report actual input values of CONFIG_FILES etc. instead of their
22972 # values after options handling. Logging --version etc. is OK.
22973 exec 5>>config.log
22975 echo
22976 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22977 ## Running $as_me. ##
22978 _ASBOX
22979 } >&5
22980 cat >&5 <<_CSEOF
22982 This file was extended by $as_me, which was
22983 generated by GNU Autoconf 2.59. Invocation command line was
22985 CONFIG_FILES = $CONFIG_FILES
22986 CONFIG_HEADERS = $CONFIG_HEADERS
22987 CONFIG_LINKS = $CONFIG_LINKS
22988 CONFIG_COMMANDS = $CONFIG_COMMANDS
22989 $ $0 $@
22991 _CSEOF
22992 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22993 echo >&5
22994 _ACEOF
22996 # Files that config.status was made for.
22997 if test -n "$ac_config_files"; then
22998 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23001 if test -n "$ac_config_headers"; then
23002 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23005 if test -n "$ac_config_links"; then
23006 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23009 if test -n "$ac_config_commands"; then
23010 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23013 cat >>$CONFIG_STATUS <<\_ACEOF
23015 ac_cs_usage="\
23016 \`$as_me' instantiates files from templates according to the
23017 current configuration.
23019 Usage: $0 [OPTIONS] [FILE]...
23021 -h, --help print this help, then exit
23022 -V, --version print version number, then exit
23023 -q, --quiet do not print progress messages
23024 -d, --debug don't remove temporary files
23025 --recheck update $as_me by reconfiguring in the same conditions
23026 --file=FILE[:TEMPLATE]
23027 instantiate the configuration file FILE
23028 --header=FILE[:TEMPLATE]
23029 instantiate the configuration header FILE
23031 Configuration files:
23032 $config_files
23034 Configuration headers:
23035 $config_headers
23037 Configuration commands:
23038 $config_commands
23040 Report bugs to <bug-autoconf@gnu.org>."
23041 _ACEOF
23043 cat >>$CONFIG_STATUS <<_ACEOF
23044 ac_cs_version="\\
23045 config.status
23046 configured by $0, generated by GNU Autoconf 2.59,
23047 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23049 Copyright (C) 2003 Free Software Foundation, Inc.
23050 This config.status script is free software; the Free Software Foundation
23051 gives unlimited permission to copy, distribute and modify it."
23052 srcdir=$srcdir
23053 INSTALL="$INSTALL"
23054 _ACEOF
23056 cat >>$CONFIG_STATUS <<\_ACEOF
23057 # If no file are specified by the user, then we need to provide default
23058 # value. By we need to know if files were specified by the user.
23059 ac_need_defaults=:
23060 while test $# != 0
23062 case $1 in
23063 --*=*)
23064 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23065 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23066 ac_shift=:
23069 ac_option=$1
23070 ac_optarg=$2
23071 ac_shift=shift
23073 *) # This is not an option, so the user has probably given explicit
23074 # arguments.
23075 ac_option=$1
23076 ac_need_defaults=false;;
23077 esac
23079 case $ac_option in
23080 # Handling of the options.
23081 _ACEOF
23082 cat >>$CONFIG_STATUS <<\_ACEOF
23083 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23084 ac_cs_recheck=: ;;
23085 --version | --vers* | -V )
23086 echo "$ac_cs_version"; exit 0 ;;
23087 --he | --h)
23088 # Conflict between --help and --header
23089 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23090 Try \`$0 --help' for more information." >&5
23091 echo "$as_me: error: ambiguous option: $1
23092 Try \`$0 --help' for more information." >&2;}
23093 { (exit 1); exit 1; }; };;
23094 --help | --hel | -h )
23095 echo "$ac_cs_usage"; exit 0 ;;
23096 --debug | --d* | -d )
23097 debug=: ;;
23098 --file | --fil | --fi | --f )
23099 $ac_shift
23100 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23101 ac_need_defaults=false;;
23102 --header | --heade | --head | --hea )
23103 $ac_shift
23104 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23105 ac_need_defaults=false;;
23106 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23107 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23108 ac_cs_silent=: ;;
23110 # This is an error.
23111 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23112 Try \`$0 --help' for more information." >&5
23113 echo "$as_me: error: unrecognized option: $1
23114 Try \`$0 --help' for more information." >&2;}
23115 { (exit 1); exit 1; }; } ;;
23117 *) ac_config_targets="$ac_config_targets $1" ;;
23119 esac
23120 shift
23121 done
23123 ac_configure_extra_args=
23125 if $ac_cs_silent; then
23126 exec 6>/dev/null
23127 ac_configure_extra_args="$ac_configure_extra_args --silent"
23130 _ACEOF
23131 cat >>$CONFIG_STATUS <<_ACEOF
23132 if \$ac_cs_recheck; then
23133 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23134 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23137 _ACEOF
23139 cat >>$CONFIG_STATUS <<_ACEOF
23141 # INIT-COMMANDS section.
23144 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23146 _ACEOF
23150 cat >>$CONFIG_STATUS <<\_ACEOF
23151 for ac_config_target in $ac_config_targets
23153 case "$ac_config_target" in
23154 # Handling of arguments.
23155 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23156 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23157 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23158 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23159 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23160 { (exit 1); exit 1; }; };;
23161 esac
23162 done
23164 # If the user did not use the arguments to specify the items to instantiate,
23165 # then the envvar interface is used. Set only those that are not.
23166 # We use the long form for the default assignment because of an extremely
23167 # bizarre bug on SunOS 4.1.3.
23168 if $ac_need_defaults; then
23169 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23170 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23171 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23174 # Have a temporary directory for convenience. Make it in the build tree
23175 # simply because there is no reason to put it here, and in addition,
23176 # creating and moving files from /tmp can sometimes cause problems.
23177 # Create a temporary directory, and hook for its removal unless debugging.
23178 $debug ||
23180 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23181 trap '{ (exit 1); exit 1; }' 1 2 13 15
23184 # Create a (secure) tmp directory for tmp files.
23187 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23188 test -n "$tmp" && test -d "$tmp"
23189 } ||
23191 tmp=./confstat$$-$RANDOM
23192 (umask 077 && mkdir $tmp)
23193 } ||
23195 echo "$me: cannot create a temporary directory in ." >&2
23196 { (exit 1); exit 1; }
23199 _ACEOF
23201 cat >>$CONFIG_STATUS <<_ACEOF
23204 # CONFIG_FILES section.
23207 # No need to generate the scripts if there are no CONFIG_FILES.
23208 # This happens for instance when ./config.status config.h
23209 if test -n "\$CONFIG_FILES"; then
23210 # Protect against being on the right side of a sed subst in config.status.
23211 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23212 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23213 s,@SHELL@,$SHELL,;t t
23214 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23215 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23216 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23217 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23218 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23219 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23220 s,@exec_prefix@,$exec_prefix,;t t
23221 s,@prefix@,$prefix,;t t
23222 s,@program_transform_name@,$program_transform_name,;t t
23223 s,@bindir@,$bindir,;t t
23224 s,@sbindir@,$sbindir,;t t
23225 s,@libexecdir@,$libexecdir,;t t
23226 s,@datadir@,$datadir,;t t
23227 s,@sysconfdir@,$sysconfdir,;t t
23228 s,@sharedstatedir@,$sharedstatedir,;t t
23229 s,@localstatedir@,$localstatedir,;t t
23230 s,@libdir@,$libdir,;t t
23231 s,@includedir@,$includedir,;t t
23232 s,@oldincludedir@,$oldincludedir,;t t
23233 s,@infodir@,$infodir,;t t
23234 s,@mandir@,$mandir,;t t
23235 s,@build_alias@,$build_alias,;t t
23236 s,@host_alias@,$host_alias,;t t
23237 s,@target_alias@,$target_alias,;t t
23238 s,@DEFS@,$DEFS,;t t
23239 s,@ECHO_C@,$ECHO_C,;t t
23240 s,@ECHO_N@,$ECHO_N,;t t
23241 s,@ECHO_T@,$ECHO_T,;t t
23242 s,@LIBS@,$LIBS,;t t
23243 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23244 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23245 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23246 s,@CYGPATH_W@,$CYGPATH_W,;t t
23247 s,@PACKAGE@,$PACKAGE,;t t
23248 s,@VERSION@,$VERSION,;t t
23249 s,@ACLOCAL@,$ACLOCAL,;t t
23250 s,@AUTOCONF@,$AUTOCONF,;t t
23251 s,@AUTOMAKE@,$AUTOMAKE,;t t
23252 s,@AUTOHEADER@,$AUTOHEADER,;t t
23253 s,@MAKEINFO@,$MAKEINFO,;t t
23254 s,@install_sh@,$install_sh,;t t
23255 s,@STRIP@,$STRIP,;t t
23256 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23257 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
23258 s,@mkdir_p@,$mkdir_p,;t t
23259 s,@AWK@,$AWK,;t t
23260 s,@SET_MAKE@,$SET_MAKE,;t t
23261 s,@am__leading_dot@,$am__leading_dot,;t t
23262 s,@AMTAR@,$AMTAR,;t t
23263 s,@am__tar@,$am__tar,;t t
23264 s,@am__untar@,$am__untar,;t t
23265 s,@CC@,$CC,;t t
23266 s,@CFLAGS@,$CFLAGS,;t t
23267 s,@LDFLAGS@,$LDFLAGS,;t t
23268 s,@CPPFLAGS@,$CPPFLAGS,;t t
23269 s,@ac_ct_CC@,$ac_ct_CC,;t t
23270 s,@EXEEXT@,$EXEEXT,;t t
23271 s,@OBJEXT@,$OBJEXT,;t t
23272 s,@DEPDIR@,$DEPDIR,;t t
23273 s,@am__include@,$am__include,;t t
23274 s,@am__quote@,$am__quote,;t t
23275 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
23276 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
23277 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
23278 s,@CCDEPMODE@,$CCDEPMODE,;t t
23279 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
23280 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
23281 s,@CXX@,$CXX,;t t
23282 s,@CXXFLAGS@,$CXXFLAGS,;t t
23283 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23284 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
23285 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
23286 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
23287 s,@build@,$build,;t t
23288 s,@build_cpu@,$build_cpu,;t t
23289 s,@build_vendor@,$build_vendor,;t t
23290 s,@build_os@,$build_os,;t t
23291 s,@host@,$host,;t t
23292 s,@host_cpu@,$host_cpu,;t t
23293 s,@host_vendor@,$host_vendor,;t t
23294 s,@host_os@,$host_os,;t t
23295 s,@EGREP@,$EGREP,;t t
23296 s,@LN_S@,$LN_S,;t t
23297 s,@ECHO@,$ECHO,;t t
23298 s,@AR@,$AR,;t t
23299 s,@ac_ct_AR@,$ac_ct_AR,;t t
23300 s,@RANLIB@,$RANLIB,;t t
23301 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23302 s,@DLLTOOL@,$DLLTOOL,;t t
23303 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
23304 s,@AS@,$AS,;t t
23305 s,@ac_ct_AS@,$ac_ct_AS,;t t
23306 s,@OBJDUMP@,$OBJDUMP,;t t
23307 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
23308 s,@CPP@,$CPP,;t t
23309 s,@CXXCPP@,$CXXCPP,;t t
23310 s,@F77@,$F77,;t t
23311 s,@FFLAGS@,$FFLAGS,;t t
23312 s,@ac_ct_F77@,$ac_ct_F77,;t t
23313 s,@LIBTOOL@,$LIBTOOL,;t t
23314 s,@ALLOCA@,$ALLOCA,;t t
23315 s,@ALLOCA_H@,$ALLOCA_H,;t t
23316 s,@DVIPS@,$DVIPS,;t t
23317 s,@TEXI2PDF@,$TEXI2PDF,;t t
23318 s,@PERL@,$PERL,;t t
23319 s,@LIBOBJS@,$LIBOBJS,;t t
23320 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23321 CEOF
23323 _ACEOF
23325 cat >>$CONFIG_STATUS <<\_ACEOF
23326 # Split the substitutions into bite-sized pieces for seds with
23327 # small command number limits, like on Digital OSF/1 and HP-UX.
23328 ac_max_sed_lines=48
23329 ac_sed_frag=1 # Number of current file.
23330 ac_beg=1 # First line for current file.
23331 ac_end=$ac_max_sed_lines # Line after last line for current file.
23332 ac_more_lines=:
23333 ac_sed_cmds=
23334 while $ac_more_lines; do
23335 if test $ac_beg -gt 1; then
23336 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23337 else
23338 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23340 if test ! -s $tmp/subs.frag; then
23341 ac_more_lines=false
23342 else
23343 # The purpose of the label and of the branching condition is to
23344 # speed up the sed processing (if there are no `@' at all, there
23345 # is no need to browse any of the substitutions).
23346 # These are the two extra sed commands mentioned above.
23347 (echo ':t
23348 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23349 if test -z "$ac_sed_cmds"; then
23350 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23351 else
23352 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23354 ac_sed_frag=`expr $ac_sed_frag + 1`
23355 ac_beg=$ac_end
23356 ac_end=`expr $ac_end + $ac_max_sed_lines`
23358 done
23359 if test -z "$ac_sed_cmds"; then
23360 ac_sed_cmds=cat
23362 fi # test -n "$CONFIG_FILES"
23364 _ACEOF
23365 cat >>$CONFIG_STATUS <<\_ACEOF
23366 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23367 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23368 case $ac_file in
23369 - | *:- | *:-:* ) # input from stdin
23370 cat >$tmp/stdin
23371 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23372 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23373 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23374 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23375 * ) ac_file_in=$ac_file.in ;;
23376 esac
23378 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23379 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23380 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23381 X"$ac_file" : 'X\(//\)[^/]' \| \
23382 X"$ac_file" : 'X\(//\)$' \| \
23383 X"$ac_file" : 'X\(/\)' \| \
23384 . : '\(.\)' 2>/dev/null ||
23385 echo X"$ac_file" |
23386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23387 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23388 /^X\(\/\/\)$/{ s//\1/; q; }
23389 /^X\(\/\).*/{ s//\1/; q; }
23390 s/.*/./; q'`
23391 { if $as_mkdir_p; then
23392 mkdir -p "$ac_dir"
23393 else
23394 as_dir="$ac_dir"
23395 as_dirs=
23396 while test ! -d "$as_dir"; do
23397 as_dirs="$as_dir $as_dirs"
23398 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23399 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23400 X"$as_dir" : 'X\(//\)[^/]' \| \
23401 X"$as_dir" : 'X\(//\)$' \| \
23402 X"$as_dir" : 'X\(/\)' \| \
23403 . : '\(.\)' 2>/dev/null ||
23404 echo X"$as_dir" |
23405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23406 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23407 /^X\(\/\/\)$/{ s//\1/; q; }
23408 /^X\(\/\).*/{ s//\1/; q; }
23409 s/.*/./; q'`
23410 done
23411 test ! -n "$as_dirs" || mkdir $as_dirs
23412 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23413 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23414 { (exit 1); exit 1; }; }; }
23416 ac_builddir=.
23418 if test "$ac_dir" != .; then
23419 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23420 # A "../" for each directory in $ac_dir_suffix.
23421 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23422 else
23423 ac_dir_suffix= ac_top_builddir=
23426 case $srcdir in
23427 .) # No --srcdir option. We are building in place.
23428 ac_srcdir=.
23429 if test -z "$ac_top_builddir"; then
23430 ac_top_srcdir=.
23431 else
23432 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23433 fi ;;
23434 [\\/]* | ?:[\\/]* ) # Absolute path.
23435 ac_srcdir=$srcdir$ac_dir_suffix;
23436 ac_top_srcdir=$srcdir ;;
23437 *) # Relative path.
23438 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23439 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23440 esac
23442 # Do not use `cd foo && pwd` to compute absolute paths, because
23443 # the directories may not exist.
23444 case `pwd` in
23445 .) ac_abs_builddir="$ac_dir";;
23447 case "$ac_dir" in
23448 .) ac_abs_builddir=`pwd`;;
23449 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23450 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23451 esac;;
23452 esac
23453 case $ac_abs_builddir in
23454 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23456 case ${ac_top_builddir}. in
23457 .) ac_abs_top_builddir=$ac_abs_builddir;;
23458 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23459 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23460 esac;;
23461 esac
23462 case $ac_abs_builddir in
23463 .) ac_abs_srcdir=$ac_srcdir;;
23465 case $ac_srcdir in
23466 .) ac_abs_srcdir=$ac_abs_builddir;;
23467 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23468 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23469 esac;;
23470 esac
23471 case $ac_abs_builddir in
23472 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23474 case $ac_top_srcdir in
23475 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23476 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23477 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23478 esac;;
23479 esac
23482 case $INSTALL in
23483 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23484 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23485 esac
23487 if test x"$ac_file" != x-; then
23488 { echo "$as_me:$LINENO: creating $ac_file" >&5
23489 echo "$as_me: creating $ac_file" >&6;}
23490 rm -f "$ac_file"
23492 # Let's still pretend it is `configure' which instantiates (i.e., don't
23493 # use $as_me), people would be surprised to read:
23494 # /* config.h. Generated by config.status. */
23495 if test x"$ac_file" = x-; then
23496 configure_input=
23497 else
23498 configure_input="$ac_file. "
23500 configure_input=$configure_input"Generated from `echo $ac_file_in |
23501 sed 's,.*/,,'` by configure."
23503 # First look for the input files in the build tree, otherwise in the
23504 # src tree.
23505 ac_file_inputs=`IFS=:
23506 for f in $ac_file_in; do
23507 case $f in
23508 -) echo $tmp/stdin ;;
23509 [\\/$]*)
23510 # Absolute (can't be DOS-style, as IFS=:)
23511 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23512 echo "$as_me: error: cannot find input file: $f" >&2;}
23513 { (exit 1); exit 1; }; }
23514 echo "$f";;
23515 *) # Relative
23516 if test -f "$f"; then
23517 # Build tree
23518 echo "$f"
23519 elif test -f "$srcdir/$f"; then
23520 # Source tree
23521 echo "$srcdir/$f"
23522 else
23523 # /dev/null tree
23524 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23525 echo "$as_me: error: cannot find input file: $f" >&2;}
23526 { (exit 1); exit 1; }; }
23527 fi;;
23528 esac
23529 done` || { (exit 1); exit 1; }
23530 _ACEOF
23531 cat >>$CONFIG_STATUS <<_ACEOF
23532 sed "$ac_vpsub
23533 $extrasub
23534 _ACEOF
23535 cat >>$CONFIG_STATUS <<\_ACEOF
23537 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23538 s,@configure_input@,$configure_input,;t t
23539 s,@srcdir@,$ac_srcdir,;t t
23540 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23541 s,@top_srcdir@,$ac_top_srcdir,;t t
23542 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23543 s,@builddir@,$ac_builddir,;t t
23544 s,@abs_builddir@,$ac_abs_builddir,;t t
23545 s,@top_builddir@,$ac_top_builddir,;t t
23546 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23547 s,@INSTALL@,$ac_INSTALL,;t t
23548 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23549 rm -f $tmp/stdin
23550 if test x"$ac_file" != x-; then
23551 mv $tmp/out $ac_file
23552 else
23553 cat $tmp/out
23554 rm -f $tmp/out
23557 # Run the commands associated with the file.
23558 case $ac_file in
23559 Makefile )
23560 sed -e "s,\`test -f \\\$< || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," -e "s,\`test -f '\\\$<' || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," < $ac_file > $ac_file.tmp
23561 mv $ac_file.tmp $ac_file
23564 sed -e '/@rm -f \$''@/d' < $ac_file > $ac_file.tmp
23565 mv $ac_file.tmp $ac_file
23567 esac
23568 done
23569 _ACEOF
23570 cat >>$CONFIG_STATUS <<\_ACEOF
23573 # CONFIG_HEADER section.
23576 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23577 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23579 # ac_d sets the value in "#define NAME VALUE" lines.
23580 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23581 ac_dB='[ ].*$,\1#\2'
23582 ac_dC=' '
23583 ac_dD=',;t'
23584 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23585 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23586 ac_uB='$,\1#\2define\3'
23587 ac_uC=' '
23588 ac_uD=',;t'
23590 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23591 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23592 case $ac_file in
23593 - | *:- | *:-:* ) # input from stdin
23594 cat >$tmp/stdin
23595 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23596 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23597 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23598 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23599 * ) ac_file_in=$ac_file.in ;;
23600 esac
23602 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23603 echo "$as_me: creating $ac_file" >&6;}
23605 # First look for the input files in the build tree, otherwise in the
23606 # src tree.
23607 ac_file_inputs=`IFS=:
23608 for f in $ac_file_in; do
23609 case $f in
23610 -) echo $tmp/stdin ;;
23611 [\\/$]*)
23612 # Absolute (can't be DOS-style, as IFS=:)
23613 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23614 echo "$as_me: error: cannot find input file: $f" >&2;}
23615 { (exit 1); exit 1; }; }
23616 # Do quote $f, to prevent DOS paths from being IFS'd.
23617 echo "$f";;
23618 *) # Relative
23619 if test -f "$f"; then
23620 # Build tree
23621 echo "$f"
23622 elif test -f "$srcdir/$f"; then
23623 # Source tree
23624 echo "$srcdir/$f"
23625 else
23626 # /dev/null tree
23627 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23628 echo "$as_me: error: cannot find input file: $f" >&2;}
23629 { (exit 1); exit 1; }; }
23630 fi;;
23631 esac
23632 done` || { (exit 1); exit 1; }
23633 # Remove the trailing spaces.
23634 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23636 _ACEOF
23638 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23639 # `conftest.undefs', that substitutes the proper values into
23640 # config.h.in to produce config.h. The first handles `#define'
23641 # templates, and the second `#undef' templates.
23642 # And first: Protect against being on the right side of a sed subst in
23643 # config.status. Protect against being in an unquoted here document
23644 # in config.status.
23645 rm -f conftest.defines conftest.undefs
23646 # Using a here document instead of a string reduces the quoting nightmare.
23647 # Putting comments in sed scripts is not portable.
23649 # `end' is used to avoid that the second main sed command (meant for
23650 # 0-ary CPP macros) applies to n-ary macro definitions.
23651 # See the Autoconf documentation for `clear'.
23652 cat >confdef2sed.sed <<\_ACEOF
23653 s/[\\&,]/\\&/g
23654 s,[\\$`],\\&,g
23655 t clear
23656 : clear
23657 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23658 t end
23659 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23660 : end
23661 _ACEOF
23662 # If some macros were called several times there might be several times
23663 # the same #defines, which is useless. Nevertheless, we may not want to
23664 # sort them, since we want the *last* AC-DEFINE to be honored.
23665 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23666 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23667 rm -f confdef2sed.sed
23669 # This sed command replaces #undef with comments. This is necessary, for
23670 # example, in the case of _POSIX_SOURCE, which is predefined and required
23671 # on some systems where configure will not decide to define it.
23672 cat >>conftest.undefs <<\_ACEOF
23673 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23674 _ACEOF
23676 # Break up conftest.defines because some shells have a limit on the size
23677 # of here documents, and old seds have small limits too (100 cmds).
23678 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23679 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23680 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23681 echo ' :' >>$CONFIG_STATUS
23682 rm -f conftest.tail
23683 while grep . conftest.defines >/dev/null
23685 # Write a limited-size here document to $tmp/defines.sed.
23686 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23687 # Speed up: don't consider the non `#define' lines.
23688 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23689 # Work around the forget-to-reset-the-flag bug.
23690 echo 't clr' >>$CONFIG_STATUS
23691 echo ': clr' >>$CONFIG_STATUS
23692 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23693 echo 'CEOF
23694 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23695 rm -f $tmp/in
23696 mv $tmp/out $tmp/in
23697 ' >>$CONFIG_STATUS
23698 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23699 rm -f conftest.defines
23700 mv conftest.tail conftest.defines
23701 done
23702 rm -f conftest.defines
23703 echo ' fi # grep' >>$CONFIG_STATUS
23704 echo >>$CONFIG_STATUS
23706 # Break up conftest.undefs because some shells have a limit on the size
23707 # of here documents, and old seds have small limits too (100 cmds).
23708 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23709 rm -f conftest.tail
23710 while grep . conftest.undefs >/dev/null
23712 # Write a limited-size here document to $tmp/undefs.sed.
23713 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23714 # Speed up: don't consider the non `#undef'
23715 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23716 # Work around the forget-to-reset-the-flag bug.
23717 echo 't clr' >>$CONFIG_STATUS
23718 echo ': clr' >>$CONFIG_STATUS
23719 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23720 echo 'CEOF
23721 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23722 rm -f $tmp/in
23723 mv $tmp/out $tmp/in
23724 ' >>$CONFIG_STATUS
23725 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23726 rm -f conftest.undefs
23727 mv conftest.tail conftest.undefs
23728 done
23729 rm -f conftest.undefs
23731 cat >>$CONFIG_STATUS <<\_ACEOF
23732 # Let's still pretend it is `configure' which instantiates (i.e., don't
23733 # use $as_me), people would be surprised to read:
23734 # /* config.h. Generated by config.status. */
23735 if test x"$ac_file" = x-; then
23736 echo "/* Generated by configure. */" >$tmp/config.h
23737 else
23738 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23740 cat $tmp/in >>$tmp/config.h
23741 rm -f $tmp/in
23742 if test x"$ac_file" != x-; then
23743 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23744 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23745 echo "$as_me: $ac_file is unchanged" >&6;}
23746 else
23747 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23748 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23749 X"$ac_file" : 'X\(//\)[^/]' \| \
23750 X"$ac_file" : 'X\(//\)$' \| \
23751 X"$ac_file" : 'X\(/\)' \| \
23752 . : '\(.\)' 2>/dev/null ||
23753 echo X"$ac_file" |
23754 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23755 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23756 /^X\(\/\/\)$/{ s//\1/; q; }
23757 /^X\(\/\).*/{ s//\1/; q; }
23758 s/.*/./; q'`
23759 { if $as_mkdir_p; then
23760 mkdir -p "$ac_dir"
23761 else
23762 as_dir="$ac_dir"
23763 as_dirs=
23764 while test ! -d "$as_dir"; do
23765 as_dirs="$as_dir $as_dirs"
23766 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23767 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23768 X"$as_dir" : 'X\(//\)[^/]' \| \
23769 X"$as_dir" : 'X\(//\)$' \| \
23770 X"$as_dir" : 'X\(/\)' \| \
23771 . : '\(.\)' 2>/dev/null ||
23772 echo X"$as_dir" |
23773 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23774 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23775 /^X\(\/\/\)$/{ s//\1/; q; }
23776 /^X\(\/\).*/{ s//\1/; q; }
23777 s/.*/./; q'`
23778 done
23779 test ! -n "$as_dirs" || mkdir $as_dirs
23780 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23781 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23782 { (exit 1); exit 1; }; }; }
23784 rm -f $ac_file
23785 mv $tmp/config.h $ac_file
23787 else
23788 cat $tmp/config.h
23789 rm -f $tmp/config.h
23791 # Compute $ac_file's index in $config_headers.
23792 _am_stamp_count=1
23793 for _am_header in $config_headers :; do
23794 case $_am_header in
23795 $ac_file | $ac_file:* )
23796 break ;;
23798 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23799 esac
23800 done
23801 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
23802 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23803 X$ac_file : 'X\(//\)[^/]' \| \
23804 X$ac_file : 'X\(//\)$' \| \
23805 X$ac_file : 'X\(/\)' \| \
23806 . : '\(.\)' 2>/dev/null ||
23807 echo X$ac_file |
23808 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23809 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23810 /^X\(\/\/\)$/{ s//\1/; q; }
23811 /^X\(\/\).*/{ s//\1/; q; }
23812 s/.*/./; q'`/stamp-h$_am_stamp_count
23813 done
23814 _ACEOF
23815 cat >>$CONFIG_STATUS <<\_ACEOF
23818 # CONFIG_COMMANDS section.
23820 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23821 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23822 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23823 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23824 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23825 X"$ac_dest" : 'X\(//\)[^/]' \| \
23826 X"$ac_dest" : 'X\(//\)$' \| \
23827 X"$ac_dest" : 'X\(/\)' \| \
23828 . : '\(.\)' 2>/dev/null ||
23829 echo X"$ac_dest" |
23830 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23831 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23832 /^X\(\/\/\)$/{ s//\1/; q; }
23833 /^X\(\/\).*/{ s//\1/; q; }
23834 s/.*/./; q'`
23835 { if $as_mkdir_p; then
23836 mkdir -p "$ac_dir"
23837 else
23838 as_dir="$ac_dir"
23839 as_dirs=
23840 while test ! -d "$as_dir"; do
23841 as_dirs="$as_dir $as_dirs"
23842 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23843 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23844 X"$as_dir" : 'X\(//\)[^/]' \| \
23845 X"$as_dir" : 'X\(//\)$' \| \
23846 X"$as_dir" : 'X\(/\)' \| \
23847 . : '\(.\)' 2>/dev/null ||
23848 echo X"$as_dir" |
23849 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23850 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23851 /^X\(\/\/\)$/{ s//\1/; q; }
23852 /^X\(\/\).*/{ s//\1/; q; }
23853 s/.*/./; q'`
23854 done
23855 test ! -n "$as_dirs" || mkdir $as_dirs
23856 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23857 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23858 { (exit 1); exit 1; }; }; }
23860 ac_builddir=.
23862 if test "$ac_dir" != .; then
23863 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23864 # A "../" for each directory in $ac_dir_suffix.
23865 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23866 else
23867 ac_dir_suffix= ac_top_builddir=
23870 case $srcdir in
23871 .) # No --srcdir option. We are building in place.
23872 ac_srcdir=.
23873 if test -z "$ac_top_builddir"; then
23874 ac_top_srcdir=.
23875 else
23876 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23877 fi ;;
23878 [\\/]* | ?:[\\/]* ) # Absolute path.
23879 ac_srcdir=$srcdir$ac_dir_suffix;
23880 ac_top_srcdir=$srcdir ;;
23881 *) # Relative path.
23882 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23883 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23884 esac
23886 # Do not use `cd foo && pwd` to compute absolute paths, because
23887 # the directories may not exist.
23888 case `pwd` in
23889 .) ac_abs_builddir="$ac_dir";;
23891 case "$ac_dir" in
23892 .) ac_abs_builddir=`pwd`;;
23893 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23894 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23895 esac;;
23896 esac
23897 case $ac_abs_builddir in
23898 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23900 case ${ac_top_builddir}. in
23901 .) ac_abs_top_builddir=$ac_abs_builddir;;
23902 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23903 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23904 esac;;
23905 esac
23906 case $ac_abs_builddir in
23907 .) ac_abs_srcdir=$ac_srcdir;;
23909 case $ac_srcdir in
23910 .) ac_abs_srcdir=$ac_abs_builddir;;
23911 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23912 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23913 esac;;
23914 esac
23915 case $ac_abs_builddir in
23916 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23918 case $ac_top_srcdir in
23919 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23920 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23921 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23922 esac;;
23923 esac
23926 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23927 echo "$as_me: executing $ac_dest commands" >&6;}
23928 case $ac_dest in
23929 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23930 # Strip MF so we end up with the name of the file.
23931 mf=`echo "$mf" | sed -e 's/:.*$//'`
23932 # Check whether this is an Automake generated Makefile or not.
23933 # We used to match only the files named `Makefile.in', but
23934 # some people rename them; so instead we look at the file content.
23935 # Grep'ing the first line is not enough: some people post-process
23936 # each Makefile.in and add a new line on top of each file to say so.
23937 # So let's grep whole file.
23938 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23939 dirpart=`(dirname "$mf") 2>/dev/null ||
23940 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23941 X"$mf" : 'X\(//\)[^/]' \| \
23942 X"$mf" : 'X\(//\)$' \| \
23943 X"$mf" : 'X\(/\)' \| \
23944 . : '\(.\)' 2>/dev/null ||
23945 echo X"$mf" |
23946 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23947 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23948 /^X\(\/\/\)$/{ s//\1/; q; }
23949 /^X\(\/\).*/{ s//\1/; q; }
23950 s/.*/./; q'`
23951 else
23952 continue
23954 # Extract the definition of DEPDIR, am__include, and am__quote
23955 # from the Makefile without running `make'.
23956 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23957 test -z "$DEPDIR" && continue
23958 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23959 test -z "am__include" && continue
23960 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23961 # When using ansi2knr, U may be empty or an underscore; expand it
23962 U=`sed -n 's/^U = //p' < "$mf"`
23963 # Find all dependency output files, they are included files with
23964 # $(DEPDIR) in their names. We invoke sed twice because it is the
23965 # simplest approach to changing $(DEPDIR) to its actual value in the
23966 # expansion.
23967 for file in `sed -n "
23968 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23969 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23970 # Make sure the directory exists.
23971 test -f "$dirpart/$file" && continue
23972 fdir=`(dirname "$file") 2>/dev/null ||
23973 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23974 X"$file" : 'X\(//\)[^/]' \| \
23975 X"$file" : 'X\(//\)$' \| \
23976 X"$file" : 'X\(/\)' \| \
23977 . : '\(.\)' 2>/dev/null ||
23978 echo X"$file" |
23979 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23980 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23981 /^X\(\/\/\)$/{ s//\1/; q; }
23982 /^X\(\/\).*/{ s//\1/; q; }
23983 s/.*/./; q'`
23984 { if $as_mkdir_p; then
23985 mkdir -p $dirpart/$fdir
23986 else
23987 as_dir=$dirpart/$fdir
23988 as_dirs=
23989 while test ! -d "$as_dir"; do
23990 as_dirs="$as_dir $as_dirs"
23991 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23992 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23993 X"$as_dir" : 'X\(//\)[^/]' \| \
23994 X"$as_dir" : 'X\(//\)$' \| \
23995 X"$as_dir" : 'X\(/\)' \| \
23996 . : '\(.\)' 2>/dev/null ||
23997 echo X"$as_dir" |
23998 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23999 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24000 /^X\(\/\/\)$/{ s//\1/; q; }
24001 /^X\(\/\).*/{ s//\1/; q; }
24002 s/.*/./; q'`
24003 done
24004 test ! -n "$as_dirs" || mkdir $as_dirs
24005 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
24006 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
24007 { (exit 1); exit 1; }; }; }
24009 # echo "creating $dirpart/$file"
24010 echo '# dummy' > "$dirpart/$file"
24011 done
24012 done
24014 esac
24015 done
24016 _ACEOF
24018 cat >>$CONFIG_STATUS <<\_ACEOF
24020 { (exit 0); exit 0; }
24021 _ACEOF
24022 chmod +x $CONFIG_STATUS
24023 ac_clean_files=$ac_clean_files_save
24026 # configure is writing to config.log, and then calls config.status.
24027 # config.status does its own redirection, appending to config.log.
24028 # Unfortunately, on DOS this fails, as config.log is still kept open
24029 # by configure, so config.status won't be able to write to it; its
24030 # output is simply discarded. So we exec the FD to /dev/null,
24031 # effectively closing config.log, so it can be properly (re)opened and
24032 # appended to by config.status. When coming back to configure, we
24033 # need to make the FD available again.
24034 if test "$no_create" != yes; then
24035 ac_cs_success=:
24036 ac_config_status_args=
24037 test "$silent" = yes &&
24038 ac_config_status_args="$ac_config_status_args --quiet"
24039 exec 5>/dev/null
24040 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24041 exec 5>>config.log
24042 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24043 # would make configure fail if this is the last instruction.
24044 $ac_cs_success || { (exit 1); exit 1; }