[962] Fix: only use Unix Linefeeds for source files.
[mangos-git.git] / configure
blob12f17c60507fe358b6f77c25505a98fd2894609b
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for MaNGOS 0.2-SVN.
5 # Report bugs to <http://www.mangosproject.org/>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
40 # NLS nuisances.
41 for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
51 done
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
98 rm -f conf$$.sh
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
156 esac
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
240 IFS=" $as_nl"
242 # CDPATH.
243 $as_unset CDPATH
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
250 case X$ECHO in
251 X*--fallback-echo)
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
255 esac
257 echo=${ECHO-echo}
258 if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
260 shift
261 elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $echo works!
267 else
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
272 if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
274 shift
275 cat <<EOF
278 exit 0
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 # if CDPATH is set.
283 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
291 echo_test_string=`eval $cmd` &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293 then
294 break
296 done
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
303 else
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
308 # So, first we look for a working echo in the user's PATH.
310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311 for dir in $PATH /usr/ucb; do
312 IFS="$lt_save_ifs"
313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
317 echo="$dir/echo"
318 break
320 done
321 IFS="$lt_save_ifs"
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
329 echo='print -r'
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
336 export CONFIG_SHELL
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338 else
339 # Try using printf.
340 echo='printf %s\n'
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
344 # Cool, printf works
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351 export CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
353 export SHELL
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
360 else
361 # maybe with a smaller string...
362 prev=:
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366 then
367 break
369 prev="$cmd"
370 done
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376 else
377 # Oops. We lost completely, so just stick with echo.
378 echo=echo
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
388 ECHO=$echo
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
396 tagnames=${tagnames+${tagnames},}CXX
398 tagnames=${tagnames+${tagnames},}F77
400 # Name of the host.
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
405 exec 6>&1
408 # Initializations.
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
412 cross_compiling=no
413 subdirs=
414 MFLAGS=
415 MAKEFLAGS=
416 SHELL=${CONFIG_SHELL-/bin/sh}
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete. It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
423 # Identity of this package.
424 PACKAGE_NAME='MaNGOS'
425 PACKAGE_TARNAME='mangos'
426 PACKAGE_VERSION='0.2-SVN'
427 PACKAGE_STRING='MaNGOS 0.2-SVN'
428 PACKAGE_BUGREPORT='http://www.mangosproject.org/'
430 ac_unique_file="src/mangosd/Main.cpp"
431 # Factoring default headers for most tests.
432 ac_includes_default="\
433 #include <stdio.h>
434 #if HAVE_SYS_TYPES_H
435 # include <sys/types.h>
436 #endif
437 #if HAVE_SYS_STAT_H
438 # include <sys/stat.h>
439 #endif
440 #if STDC_HEADERS
441 # include <stdlib.h>
442 # include <stddef.h>
443 #else
444 # if HAVE_STDLIB_H
445 # include <stdlib.h>
446 # endif
447 #endif
448 #if HAVE_STRING_H
449 # if !STDC_HEADERS && HAVE_MEMORY_H
450 # include <memory.h>
451 # endif
452 # include <string.h>
453 #endif
454 #if HAVE_STRINGS_H
455 # include <strings.h>
456 #endif
457 #if HAVE_INTTYPES_H
458 # include <inttypes.h>
459 #else
460 # if HAVE_STDINT_H
461 # include <stdint.h>
462 # endif
463 #endif
464 #if HAVE_UNISTD_H
465 # include <unistd.h>
466 #endif"
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT 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 RANLIB ac_ct_RANLIB build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL __PYTHON INCLUDES LIBOBJS ALLOCA WITH_PYTHON_SUBDIR WITH_PYTHON_SUBPACKAGE WITH_PYTHON_VERSION __DOXYGEN WITH_APIDOCS_TARGET WITH_APIDOCS LINKER_OPTIONS COMPILER_OPTIONS EXTRA_LINKER_OPTIONS EXTRA_COMPILER_OPTIONS MANGOSD_CONFIG MANGOSD_CONFIGDIR MANGOSD_DATA MANGOSD_ENABLE_CLI MANGOSD_ENABLE_RA LT_RELEASE LT_CURRENT LT_AGE LT_REVISION LTMS_RELEASE LTMS_CURRENT LTMS_AGE LTMS_REVISION LTLIBOBJS'
469 ac_subst_files=''
471 # Initialize some variables set by options.
472 ac_init_help=
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
476 cache_file=/dev/null
477 exec_prefix=NONE
478 no_create=
479 no_recursion=
480 prefix=NONE
481 program_prefix=NONE
482 program_suffix=NONE
483 program_transform_name=s,x,x,
484 silent=
485 site=
486 srcdir=
487 verbose=
488 x_includes=NONE
489 x_libraries=NONE
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
509 ac_prev=
510 for ac_option
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
515 ac_prev=
516 continue
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521 # Accept the important Cygnus configure options, so we can diagnose typos.
523 case $ac_option in
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
526 ac_prev=bindir ;;
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528 bindir=$ac_optarg ;;
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
542 --config-cache | -C)
543 cache_file=config.cache ;;
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546 ac_prev=datadir ;;
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548 | --da=*)
549 datadir=$ac_optarg ;;
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567 case $ac_option in
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569 *) ac_optarg=yes ;;
570 esac
571 eval "enable_$ac_feature='$ac_optarg'" ;;
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
584 with_gas=yes ;;
586 -help | --help | --hel | --he | -h)
587 ac_init_help=long ;;
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
606 ac_prev=infodir ;;
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
610 -libdir | --libdir | --libdi | --libd)
611 ac_prev=libdir ;;
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
613 libdir=$ac_optarg ;;
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632 ac_prev=mandir ;;
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634 mandir=$ac_optarg ;;
636 -nfp | --nfp | --nf)
637 # Obsolete; use --without-fp.
638 with_fp=no ;;
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
642 no_create=yes ;;
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646 no_recursion=yes ;;
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658 ac_prev=prefix ;;
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660 prefix=$ac_optarg ;;
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
695 silent=yes ;;
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698 ac_prev=sbindir ;;
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700 | --sbi=* | --sb=*)
701 sbindir=$ac_optarg ;;
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
706 | --sha | --sh)
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711 | --sha=* | --sh=*)
712 sharedstatedir=$ac_optarg ;;
714 -site | --site | --sit)
715 ac_prev=site ;;
716 -site=* | --site=* | --sit=*)
717 site=$ac_optarg ;;
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720 ac_prev=srcdir ;;
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722 srcdir=$ac_optarg ;;
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
737 verbose=yes ;;
739 -version | --version | --versio | --versi | --vers | -V)
740 ac_init_version=: ;;
742 -with-* | --with-*)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
749 case $ac_option in
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751 *) ac_optarg=yes ;;
752 esac
753 eval "with_$ac_package='$ac_optarg'" ;;
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
764 --x)
765 # Obsolete; use --with-x.
766 with_x=yes ;;
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
787 *=*)
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
795 export $ac_envvar ;;
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
805 esac
806 done
808 if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
817 eval ac_val=$`echo $ac_var`
818 case $ac_val in
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
822 esac
823 done
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
829 eval ac_val=$`echo $ac_var`
830 case $ac_val in
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
834 esac
835 done
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
840 build=$build_alias
841 host=$host_alias
842 target=$target_alias
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
851 cross_compiling=yes
855 ac_tool_prefix=
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858 test "$silent" = yes && exec 6>/dev/null
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
871 echo X"$0" |
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
876 s/.*/./; q'`
877 srcdir=$ac_confdir
878 if test ! -r $srcdir/$ac_unique_file; then
879 srcdir=..
881 else
882 ac_srcdir_defaulted=no
884 if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
888 else
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
910 ac_env_CC_value=$CC
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CXX_set=${CXX+set}
926 ac_env_CXX_value=$CXX
927 ac_cv_env_CXX_set=${CXX+set}
928 ac_cv_env_CXX_value=$CXX
929 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
930 ac_env_CXXFLAGS_value=$CXXFLAGS
931 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
932 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
933 ac_env_CPP_set=${CPP+set}
934 ac_env_CPP_value=$CPP
935 ac_cv_env_CPP_set=${CPP+set}
936 ac_cv_env_CPP_value=$CPP
937 ac_env_CXXCPP_set=${CXXCPP+set}
938 ac_env_CXXCPP_value=$CXXCPP
939 ac_cv_env_CXXCPP_set=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value=$CXXCPP
941 ac_env_F77_set=${F77+set}
942 ac_env_F77_value=$F77
943 ac_cv_env_F77_set=${F77+set}
944 ac_cv_env_F77_value=$F77
945 ac_env_FFLAGS_set=${FFLAGS+set}
946 ac_env_FFLAGS_value=$FFLAGS
947 ac_cv_env_FFLAGS_set=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value=$FFLAGS
951 # Report the --help message.
953 if test "$ac_init_help" = "long"; then
954 # Omit some internal or obsolete options to make the list less imposing.
955 # This message is too long to be a string in the A/UX 3.1 sh.
956 cat <<_ACEOF
957 \`configure' configures MaNGOS 0.2-SVN to adapt to many kinds of systems.
959 Usage: $0 [OPTION]... [VAR=VALUE]...
961 To assign environment variables (e.g., CC, CFLAGS...), specify them as
962 VAR=VALUE. See below for descriptions of some of the useful variables.
964 Defaults for the options are specified in brackets.
966 Configuration:
967 -h, --help display this help and exit
968 --help=short display options specific to this package
969 --help=recursive display the short help of all the included packages
970 -V, --version display version information and exit
971 -q, --quiet, --silent do not print \`checking...' messages
972 --cache-file=FILE cache test results in FILE [disabled]
973 -C, --config-cache alias for \`--cache-file=config.cache'
974 -n, --no-create do not create output files
975 --srcdir=DIR find the sources in DIR [configure dir or \`..']
977 _ACEOF
979 cat <<_ACEOF
980 Installation directories:
981 --prefix=PREFIX install architecture-independent files in PREFIX
982 [$ac_default_prefix]
983 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
984 [PREFIX]
986 By default, \`make install' will install all the files in
987 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
988 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989 for instance \`--prefix=\$HOME'.
991 For better control, use the options below.
993 Fine tuning of the installation directories:
994 --bindir=DIR user executables [EPREFIX/bin]
995 --sbindir=DIR system admin executables [EPREFIX/sbin]
996 --libexecdir=DIR program executables [EPREFIX/libexec]
997 --datadir=DIR read-only architecture-independent data [PREFIX/share]
998 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
999 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1000 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1001 --libdir=DIR object code libraries [EPREFIX/lib]
1002 --includedir=DIR C header files [PREFIX/include]
1003 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1004 --infodir=DIR info documentation [PREFIX/info]
1005 --mandir=DIR man documentation [PREFIX/man]
1006 _ACEOF
1008 cat <<\_ACEOF
1010 Program names:
1011 --program-prefix=PREFIX prepend PREFIX to installed program names
1012 --program-suffix=SUFFIX append SUFFIX to installed program names
1013 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1015 System types:
1016 --build=BUILD configure for building on BUILD [guessed]
1017 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1018 _ACEOF
1021 if test -n "$ac_init_help"; then
1022 case $ac_init_help in
1023 short | recursive ) echo "Configuration of MaNGOS 0.2-SVN:";;
1024 esac
1025 cat <<\_ACEOF
1027 Optional Features:
1028 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1029 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1030 --enable-maintainer-mode enable make rules and dependencies not useful
1031 (and sometimes confusing) to the casual installer
1032 --disable-dependency-tracking speeds up one-time build
1033 --enable-dependency-tracking do not reject slow dependency extractors
1034 --enable-shared[=PKGS]
1035 build shared libraries [default=yes]
1036 --enable-static[=PKGS]
1037 build static libraries [default=yes]
1038 --enable-fast-install[=PKGS]
1039 optimize for fast installation [default=yes]
1040 --disable-libtool-lock avoid locking (might break parallel builds)
1041 --with-openssl Specify openssl path
1042 --with-mysql Specify mysql path
1043 --enable-cli Turn on command console system
1044 --enable-ra Turn on remote console system
1046 Optional Packages:
1047 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1048 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1049 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1050 --with-pic try to use only PIC/non-PIC objects [default=use
1051 both]
1052 --with-tags[=TAGS]
1053 include additional configurations [automatic]
1054 --with-python build python bindings
1055 --with-apidocs build MaNGOS API docs
1057 Debugging options:
1059 --with-debug-info Include debug info in library
1061 Some influential environment variables:
1062 CC C compiler command
1063 CFLAGS C compiler flags
1064 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1065 nonstandard directory <lib dir>
1066 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1067 headers in a nonstandard directory <include dir>
1068 CXX C++ compiler command
1069 CXXFLAGS C++ compiler flags
1070 CPP C preprocessor
1071 CXXCPP C++ preprocessor
1072 F77 Fortran 77 compiler command
1073 FFLAGS Fortran 77 compiler flags
1075 Use these variables to override the choices made by `configure' or to help
1076 it to find libraries and programs with nonstandard names/locations.
1078 Report bugs to <http://www.mangosproject.org/>.
1079 _ACEOF
1082 if test "$ac_init_help" = "recursive"; then
1083 # If there are subdirs, report their specific --help.
1084 ac_popdir=`pwd`
1085 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1086 test -d $ac_dir || continue
1087 ac_builddir=.
1089 if test "$ac_dir" != .; then
1090 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1091 # A "../" for each directory in $ac_dir_suffix.
1092 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1093 else
1094 ac_dir_suffix= ac_top_builddir=
1097 case $srcdir in
1098 .) # No --srcdir option. We are building in place.
1099 ac_srcdir=.
1100 if test -z "$ac_top_builddir"; then
1101 ac_top_srcdir=.
1102 else
1103 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1104 fi ;;
1105 [\\/]* | ?:[\\/]* ) # Absolute path.
1106 ac_srcdir=$srcdir$ac_dir_suffix;
1107 ac_top_srcdir=$srcdir ;;
1108 *) # Relative path.
1109 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1110 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1111 esac
1113 # Do not use `cd foo && pwd` to compute absolute paths, because
1114 # the directories may not exist.
1115 case `pwd` in
1116 .) ac_abs_builddir="$ac_dir";;
1118 case "$ac_dir" in
1119 .) ac_abs_builddir=`pwd`;;
1120 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1121 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1122 esac;;
1123 esac
1124 case $ac_abs_builddir in
1125 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1127 case ${ac_top_builddir}. in
1128 .) ac_abs_top_builddir=$ac_abs_builddir;;
1129 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1130 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1131 esac;;
1132 esac
1133 case $ac_abs_builddir in
1134 .) ac_abs_srcdir=$ac_srcdir;;
1136 case $ac_srcdir in
1137 .) ac_abs_srcdir=$ac_abs_builddir;;
1138 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1139 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1140 esac;;
1141 esac
1142 case $ac_abs_builddir in
1143 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1145 case $ac_top_srcdir in
1146 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1147 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1148 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1149 esac;;
1150 esac
1152 cd $ac_dir
1153 # Check for guested configure; otherwise get Cygnus style configure.
1154 if test -f $ac_srcdir/configure.gnu; then
1155 echo
1156 $SHELL $ac_srcdir/configure.gnu --help=recursive
1157 elif test -f $ac_srcdir/configure; then
1158 echo
1159 $SHELL $ac_srcdir/configure --help=recursive
1160 elif test -f $ac_srcdir/configure.ac ||
1161 test -f $ac_srcdir/configure.in; then
1162 echo
1163 $ac_configure --help
1164 else
1165 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1167 cd $ac_popdir
1168 done
1171 test -n "$ac_init_help" && exit 0
1172 if $ac_init_version; then
1173 cat <<\_ACEOF
1174 MaNGOS configure 0.2-SVN
1175 generated by GNU Autoconf 2.59
1177 Copyright (C) 2003 Free Software Foundation, Inc.
1178 This configure script is free software; the Free Software Foundation
1179 gives unlimited permission to copy, distribute and modify it.
1180 _ACEOF
1181 exit 0
1183 exec 5>config.log
1184 cat >&5 <<_ACEOF
1185 This file contains any messages produced by compilers while
1186 running configure, to aid debugging if configure makes a mistake.
1188 It was created by MaNGOS $as_me 0.2-SVN, which was
1189 generated by GNU Autoconf 2.59. Invocation command line was
1191 $ $0 $@
1193 _ACEOF
1195 cat <<_ASUNAME
1196 ## --------- ##
1197 ## Platform. ##
1198 ## --------- ##
1200 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1201 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1202 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1203 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1204 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1206 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1207 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1209 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1210 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1211 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1212 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1213 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1214 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1215 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1217 _ASUNAME
1219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1220 for as_dir in $PATH
1222 IFS=$as_save_IFS
1223 test -z "$as_dir" && as_dir=.
1224 echo "PATH: $as_dir"
1225 done
1227 } >&5
1229 cat >&5 <<_ACEOF
1232 ## ----------- ##
1233 ## Core tests. ##
1234 ## ----------- ##
1236 _ACEOF
1239 # Keep a trace of the command line.
1240 # Strip out --no-create and --no-recursion so they do not pile up.
1241 # Strip out --silent because we don't want to record it for future runs.
1242 # Also quote any args containing shell meta-characters.
1243 # Make two passes to allow for proper duplicate-argument suppression.
1244 ac_configure_args=
1245 ac_configure_args0=
1246 ac_configure_args1=
1247 ac_sep=
1248 ac_must_keep_next=false
1249 for ac_pass in 1 2
1251 for ac_arg
1253 case $ac_arg in
1254 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1255 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1256 | -silent | --silent | --silen | --sile | --sil)
1257 continue ;;
1258 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1259 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1260 esac
1261 case $ac_pass in
1262 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1264 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1265 if test $ac_must_keep_next = true; then
1266 ac_must_keep_next=false # Got value, back to normal.
1267 else
1268 case $ac_arg in
1269 *=* | --config-cache | -C | -disable-* | --disable-* \
1270 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1271 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1272 | -with-* | --with-* | -without-* | --without-* | --x)
1273 case "$ac_configure_args0 " in
1274 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1275 esac
1277 -* ) ac_must_keep_next=true ;;
1278 esac
1280 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1281 # Get rid of the leading space.
1282 ac_sep=" "
1284 esac
1285 done
1286 done
1287 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1288 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1290 # When interrupted or exit'd, cleanup temporary files, and complete
1291 # config.log. We remove comments because anyway the quotes in there
1292 # would cause problems or look ugly.
1293 # WARNING: Be sure not to use single quotes in there, as some shells,
1294 # such as our DU 5.0 friend, will then `close' the trap.
1295 trap 'exit_status=$?
1296 # Save into config.log some information that might help in debugging.
1298 echo
1300 cat <<\_ASBOX
1301 ## ---------------- ##
1302 ## Cache variables. ##
1303 ## ---------------- ##
1304 _ASBOX
1305 echo
1306 # The following way of writing the cache mishandles newlines in values,
1308 (set) 2>&1 |
1309 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1310 *ac_space=\ *)
1311 sed -n \
1312 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1313 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1316 sed -n \
1317 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1319 esac;
1321 echo
1323 cat <<\_ASBOX
1324 ## ----------------- ##
1325 ## Output variables. ##
1326 ## ----------------- ##
1327 _ASBOX
1328 echo
1329 for ac_var in $ac_subst_vars
1331 eval ac_val=$`echo $ac_var`
1332 echo "$ac_var='"'"'$ac_val'"'"'"
1333 done | sort
1334 echo
1336 if test -n "$ac_subst_files"; then
1337 cat <<\_ASBOX
1338 ## ------------- ##
1339 ## Output files. ##
1340 ## ------------- ##
1341 _ASBOX
1342 echo
1343 for ac_var in $ac_subst_files
1345 eval ac_val=$`echo $ac_var`
1346 echo "$ac_var='"'"'$ac_val'"'"'"
1347 done | sort
1348 echo
1351 if test -s confdefs.h; then
1352 cat <<\_ASBOX
1353 ## ----------- ##
1354 ## confdefs.h. ##
1355 ## ----------- ##
1356 _ASBOX
1357 echo
1358 sed "/^$/d" confdefs.h | sort
1359 echo
1361 test "$ac_signal" != 0 &&
1362 echo "$as_me: caught signal $ac_signal"
1363 echo "$as_me: exit $exit_status"
1364 } >&5
1365 rm -f core *.core &&
1366 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1367 exit $exit_status
1369 for ac_signal in 1 2 13 15; do
1370 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1371 done
1372 ac_signal=0
1374 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1375 rm -rf conftest* confdefs.h
1376 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1377 echo >confdefs.h
1379 # Predefined preprocessor variables.
1381 cat >>confdefs.h <<_ACEOF
1382 #define PACKAGE_NAME "$PACKAGE_NAME"
1383 _ACEOF
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1388 _ACEOF
1391 cat >>confdefs.h <<_ACEOF
1392 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1393 _ACEOF
1396 cat >>confdefs.h <<_ACEOF
1397 #define PACKAGE_STRING "$PACKAGE_STRING"
1398 _ACEOF
1401 cat >>confdefs.h <<_ACEOF
1402 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1403 _ACEOF
1406 # Let the site file select an alternate cache file if it wants to.
1407 # Prefer explicitly selected file to automatically selected ones.
1408 if test -z "$CONFIG_SITE"; then
1409 if test "x$prefix" != xNONE; then
1410 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1411 else
1412 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1415 for ac_site_file in $CONFIG_SITE; do
1416 if test -r "$ac_site_file"; then
1417 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1418 echo "$as_me: loading site script $ac_site_file" >&6;}
1419 sed 's/^/| /' "$ac_site_file" >&5
1420 . "$ac_site_file"
1422 done
1424 if test -r "$cache_file"; then
1425 # Some versions of bash will fail to source /dev/null (special
1426 # files actually), so we avoid doing that.
1427 if test -f "$cache_file"; then
1428 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1429 echo "$as_me: loading cache $cache_file" >&6;}
1430 case $cache_file in
1431 [\\/]* | ?:[\\/]* ) . $cache_file;;
1432 *) . ./$cache_file;;
1433 esac
1435 else
1436 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1437 echo "$as_me: creating cache $cache_file" >&6;}
1438 >$cache_file
1441 # Check that the precious variables saved in the cache have kept the same
1442 # value.
1443 ac_cache_corrupted=false
1444 for ac_var in `(set) 2>&1 |
1445 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1446 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1447 eval ac_new_set=\$ac_env_${ac_var}_set
1448 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1449 eval ac_new_val="\$ac_env_${ac_var}_value"
1450 case $ac_old_set,$ac_new_set in
1451 set,)
1452 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1453 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1454 ac_cache_corrupted=: ;;
1455 ,set)
1456 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1457 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1458 ac_cache_corrupted=: ;;
1459 ,);;
1461 if test "x$ac_old_val" != "x$ac_new_val"; then
1462 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1463 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1464 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1465 echo "$as_me: former value: $ac_old_val" >&2;}
1466 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1467 echo "$as_me: current value: $ac_new_val" >&2;}
1468 ac_cache_corrupted=:
1469 fi;;
1470 esac
1471 # Pass precious variables to config.status.
1472 if test "$ac_new_set" = set; then
1473 case $ac_new_val in
1474 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1475 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1476 *) ac_arg=$ac_var=$ac_new_val ;;
1477 esac
1478 case " $ac_configure_args " in
1479 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1480 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1481 esac
1483 done
1484 if $ac_cache_corrupted; then
1485 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1486 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1487 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1488 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1489 { (exit 1); exit 1; }; }
1492 ac_ext=c
1493 ac_cpp='$CPP $CPPFLAGS'
1494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1524 ac_config_headers="$ac_config_headers config.h"
1528 am__api_version="1.9"
1529 ac_aux_dir=
1530 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1531 if test -f $ac_dir/install-sh; then
1532 ac_aux_dir=$ac_dir
1533 ac_install_sh="$ac_aux_dir/install-sh -c"
1534 break
1535 elif test -f $ac_dir/install.sh; then
1536 ac_aux_dir=$ac_dir
1537 ac_install_sh="$ac_aux_dir/install.sh -c"
1538 break
1539 elif test -f $ac_dir/shtool; then
1540 ac_aux_dir=$ac_dir
1541 ac_install_sh="$ac_aux_dir/shtool install -c"
1542 break
1544 done
1545 if test -z "$ac_aux_dir"; then
1546 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1547 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1548 { (exit 1); exit 1; }; }
1550 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1551 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1552 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1554 # Find a good install program. We prefer a C program (faster),
1555 # so one script is as good as another. But avoid the broken or
1556 # incompatible versions:
1557 # SysV /etc/install, /usr/sbin/install
1558 # SunOS /usr/etc/install
1559 # IRIX /sbin/install
1560 # AIX /bin/install
1561 # AmigaOS /C/install, which installs bootblocks on floppy discs
1562 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1563 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1564 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1565 # OS/2's system install, which has a completely different semantic
1566 # ./install, which can be erroneously created by make from ./install.sh.
1567 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1568 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1569 if test -z "$INSTALL"; then
1570 if test "${ac_cv_path_install+set}" = set; then
1571 echo $ECHO_N "(cached) $ECHO_C" >&6
1572 else
1573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1574 for as_dir in $PATH
1576 IFS=$as_save_IFS
1577 test -z "$as_dir" && as_dir=.
1578 # Account for people who put trailing slashes in PATH elements.
1579 case $as_dir/ in
1580 ./ | .// | /cC/* | \
1581 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1582 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1583 /usr/ucb/* ) ;;
1585 # OSF1 and SCO ODT 3.0 have their own names for install.
1586 # Don't use installbsd from OSF since it installs stuff as root
1587 # by default.
1588 for ac_prog in ginstall scoinst install; do
1589 for ac_exec_ext in '' $ac_executable_extensions; do
1590 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1591 if test $ac_prog = install &&
1592 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1593 # AIX install. It has an incompatible calling convention.
1595 elif test $ac_prog = install &&
1596 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1597 # program-specific install script used by HP pwplus--don't use.
1599 else
1600 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1601 break 3
1604 done
1605 done
1607 esac
1608 done
1612 if test "${ac_cv_path_install+set}" = set; then
1613 INSTALL=$ac_cv_path_install
1614 else
1615 # As a last resort, use the slow shell script. We don't cache a
1616 # path for INSTALL within a source directory, because that will
1617 # break other packages using the cache if that directory is
1618 # removed, or if the path is relative.
1619 INSTALL=$ac_install_sh
1622 echo "$as_me:$LINENO: result: $INSTALL" >&5
1623 echo "${ECHO_T}$INSTALL" >&6
1625 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1626 # It thinks the first close brace ends the variable substitution.
1627 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1629 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1631 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1633 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1634 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1635 # Just in case
1636 sleep 1
1637 echo timestamp > conftest.file
1638 # Do `set' in a subshell so we don't clobber the current shell's
1639 # arguments. Must try -L first in case configure is actually a
1640 # symlink; some systems play weird games with the mod time of symlinks
1641 # (eg FreeBSD returns the mod time of the symlink's containing
1642 # directory).
1643 if (
1644 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1645 if test "$*" = "X"; then
1646 # -L didn't work.
1647 set X `ls -t $srcdir/configure conftest.file`
1649 rm -f conftest.file
1650 if test "$*" != "X $srcdir/configure conftest.file" \
1651 && test "$*" != "X conftest.file $srcdir/configure"; then
1653 # If neither matched, then we have a broken ls. This can happen
1654 # if, for instance, CONFIG_SHELL is bash and it inherits a
1655 # broken ls alias from the environment. This has actually
1656 # happened. Such a system could not be considered "sane".
1657 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1658 alias in your environment" >&5
1659 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1660 alias in your environment" >&2;}
1661 { (exit 1); exit 1; }; }
1664 test "$2" = conftest.file
1666 then
1667 # Ok.
1669 else
1670 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1671 Check your system clock" >&5
1672 echo "$as_me: error: newly created file is older than distributed files!
1673 Check your system clock" >&2;}
1674 { (exit 1); exit 1; }; }
1676 echo "$as_me:$LINENO: result: yes" >&5
1677 echo "${ECHO_T}yes" >&6
1678 test "$program_prefix" != NONE &&
1679 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1680 # Use a double $ so make ignores it.
1681 test "$program_suffix" != NONE &&
1682 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1683 # Double any \ or $. echo might interpret backslashes.
1684 # By default was `s,x,x', remove it if useless.
1685 cat <<\_ACEOF >conftest.sed
1686 s/[\\$]/&&/g;s/;s,x,x,$//
1687 _ACEOF
1688 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1689 rm conftest.sed
1691 # expand $ac_aux_dir to an absolute path
1692 am_aux_dir=`cd $ac_aux_dir && pwd`
1694 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1695 # Use eval to expand $SHELL
1696 if eval "$MISSING --run true"; then
1697 am_missing_run="$MISSING --run "
1698 else
1699 am_missing_run=
1700 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1701 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1704 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1705 # We used to keeping the `.' as first argument, in order to
1706 # allow $(mkdir_p) to be used without argument. As in
1707 # $(mkdir_p) $(somedir)
1708 # where $(somedir) is conditionally defined. However this is wrong
1709 # for two reasons:
1710 # 1. if the package is installed by a user who cannot write `.'
1711 # make install will fail,
1712 # 2. the above comment should most certainly read
1713 # $(mkdir_p) $(DESTDIR)$(somedir)
1714 # so it does not work when $(somedir) is undefined and
1715 # $(DESTDIR) is not.
1716 # To support the latter case, we have to write
1717 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1718 # so the `.' trick is pointless.
1719 mkdir_p='mkdir -p --'
1720 else
1721 # On NextStep and OpenStep, the `mkdir' command does not
1722 # recognize any option. It will interpret all options as
1723 # directories to create, and then abort because `.' already
1724 # exists.
1725 for d in ./-p ./--version;
1727 test -d $d && rmdir $d
1728 done
1729 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1730 if test -f "$ac_aux_dir/mkinstalldirs"; then
1731 mkdir_p='$(mkinstalldirs)'
1732 else
1733 mkdir_p='$(install_sh) -d'
1737 for ac_prog in gawk mawk nawk awk
1739 # Extract the first word of "$ac_prog", so it can be a program name with args.
1740 set dummy $ac_prog; ac_word=$2
1741 echo "$as_me:$LINENO: checking for $ac_word" >&5
1742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1743 if test "${ac_cv_prog_AWK+set}" = set; then
1744 echo $ECHO_N "(cached) $ECHO_C" >&6
1745 else
1746 if test -n "$AWK"; then
1747 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1748 else
1749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1750 for as_dir in $PATH
1752 IFS=$as_save_IFS
1753 test -z "$as_dir" && as_dir=.
1754 for ac_exec_ext in '' $ac_executable_extensions; do
1755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1756 ac_cv_prog_AWK="$ac_prog"
1757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1758 break 2
1760 done
1761 done
1765 AWK=$ac_cv_prog_AWK
1766 if test -n "$AWK"; then
1767 echo "$as_me:$LINENO: result: $AWK" >&5
1768 echo "${ECHO_T}$AWK" >&6
1769 else
1770 echo "$as_me:$LINENO: result: no" >&5
1771 echo "${ECHO_T}no" >&6
1774 test -n "$AWK" && break
1775 done
1777 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1778 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1779 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1780 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1781 echo $ECHO_N "(cached) $ECHO_C" >&6
1782 else
1783 cat >conftest.make <<\_ACEOF
1784 all:
1785 @echo 'ac_maketemp="$(MAKE)"'
1786 _ACEOF
1787 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1788 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1789 if test -n "$ac_maketemp"; then
1790 eval ac_cv_prog_make_${ac_make}_set=yes
1791 else
1792 eval ac_cv_prog_make_${ac_make}_set=no
1794 rm -f conftest.make
1796 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1797 echo "$as_me:$LINENO: result: yes" >&5
1798 echo "${ECHO_T}yes" >&6
1799 SET_MAKE=
1800 else
1801 echo "$as_me:$LINENO: result: no" >&5
1802 echo "${ECHO_T}no" >&6
1803 SET_MAKE="MAKE=${MAKE-make}"
1806 rm -rf .tst 2>/dev/null
1807 mkdir .tst 2>/dev/null
1808 if test -d .tst; then
1809 am__leading_dot=.
1810 else
1811 am__leading_dot=_
1813 rmdir .tst 2>/dev/null
1815 # test to see if srcdir already configured
1816 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1817 test -f $srcdir/config.status; then
1818 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1819 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1820 { (exit 1); exit 1; }; }
1823 # test whether we have cygpath
1824 if test -z "$CYGPATH_W"; then
1825 if (cygpath --version) >/dev/null 2>/dev/null; then
1826 CYGPATH_W='cygpath -w'
1827 else
1828 CYGPATH_W=echo
1833 # Define the identity of the package.
1834 PACKAGE='mangos'
1835 VERSION='0.2-SVN'
1838 cat >>confdefs.h <<_ACEOF
1839 #define PACKAGE "$PACKAGE"
1840 _ACEOF
1843 cat >>confdefs.h <<_ACEOF
1844 #define VERSION "$VERSION"
1845 _ACEOF
1847 # Some tools Automake needs.
1849 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1852 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1855 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1858 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1861 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1863 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1865 # Installed binaries are usually stripped using `strip' when the user
1866 # run `make install-strip'. However `strip' might not be the right
1867 # tool to use in cross-compilation environments, therefore Automake
1868 # will honor the `STRIP' environment variable to overrule this program.
1869 if test "$cross_compiling" != no; then
1870 if test -n "$ac_tool_prefix"; then
1871 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1872 set dummy ${ac_tool_prefix}strip; ac_word=$2
1873 echo "$as_me:$LINENO: checking for $ac_word" >&5
1874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1875 if test "${ac_cv_prog_STRIP+set}" = set; then
1876 echo $ECHO_N "(cached) $ECHO_C" >&6
1877 else
1878 if test -n "$STRIP"; then
1879 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1880 else
1881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1882 for as_dir in $PATH
1884 IFS=$as_save_IFS
1885 test -z "$as_dir" && as_dir=.
1886 for ac_exec_ext in '' $ac_executable_extensions; do
1887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1888 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1890 break 2
1892 done
1893 done
1897 STRIP=$ac_cv_prog_STRIP
1898 if test -n "$STRIP"; then
1899 echo "$as_me:$LINENO: result: $STRIP" >&5
1900 echo "${ECHO_T}$STRIP" >&6
1901 else
1902 echo "$as_me:$LINENO: result: no" >&5
1903 echo "${ECHO_T}no" >&6
1907 if test -z "$ac_cv_prog_STRIP"; then
1908 ac_ct_STRIP=$STRIP
1909 # Extract the first word of "strip", so it can be a program name with args.
1910 set dummy strip; ac_word=$2
1911 echo "$as_me:$LINENO: checking for $ac_word" >&5
1912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1913 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1914 echo $ECHO_N "(cached) $ECHO_C" >&6
1915 else
1916 if test -n "$ac_ct_STRIP"; then
1917 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1918 else
1919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1920 for as_dir in $PATH
1922 IFS=$as_save_IFS
1923 test -z "$as_dir" && as_dir=.
1924 for ac_exec_ext in '' $ac_executable_extensions; do
1925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1926 ac_cv_prog_ac_ct_STRIP="strip"
1927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1928 break 2
1930 done
1931 done
1933 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1936 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1937 if test -n "$ac_ct_STRIP"; then
1938 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1939 echo "${ECHO_T}$ac_ct_STRIP" >&6
1940 else
1941 echo "$as_me:$LINENO: result: no" >&5
1942 echo "${ECHO_T}no" >&6
1945 STRIP=$ac_ct_STRIP
1946 else
1947 STRIP="$ac_cv_prog_STRIP"
1951 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1953 # We need awk for the "check" target. The system "awk" is bad on
1954 # some platforms.
1955 # Always define AMTAR for backward compatibility.
1957 AMTAR=${AMTAR-"${am_missing_run}tar"}
1959 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1965 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1966 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1967 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1968 if test "${enable_maintainer_mode+set}" = set; then
1969 enableval="$enable_maintainer_mode"
1970 USE_MAINTAINER_MODE=$enableval
1971 else
1972 USE_MAINTAINER_MODE=no
1974 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1975 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1978 if test $USE_MAINTAINER_MODE = yes; then
1979 MAINTAINER_MODE_TRUE=
1980 MAINTAINER_MODE_FALSE='#'
1981 else
1982 MAINTAINER_MODE_TRUE='#'
1983 MAINTAINER_MODE_FALSE=
1986 MAINT=$MAINTAINER_MODE_TRUE
1990 ac_ext=c
1991 ac_cpp='$CPP $CPPFLAGS'
1992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1995 if test -n "$ac_tool_prefix"; then
1996 for ac_prog in gcc cc
1998 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1999 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2000 echo "$as_me:$LINENO: checking for $ac_word" >&5
2001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2002 if test "${ac_cv_prog_CC+set}" = set; then
2003 echo $ECHO_N "(cached) $ECHO_C" >&6
2004 else
2005 if test -n "$CC"; then
2006 ac_cv_prog_CC="$CC" # Let the user override the test.
2007 else
2008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2009 for as_dir in $PATH
2011 IFS=$as_save_IFS
2012 test -z "$as_dir" && as_dir=.
2013 for ac_exec_ext in '' $ac_executable_extensions; do
2014 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2015 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2017 break 2
2019 done
2020 done
2024 CC=$ac_cv_prog_CC
2025 if test -n "$CC"; then
2026 echo "$as_me:$LINENO: result: $CC" >&5
2027 echo "${ECHO_T}$CC" >&6
2028 else
2029 echo "$as_me:$LINENO: result: no" >&5
2030 echo "${ECHO_T}no" >&6
2033 test -n "$CC" && break
2034 done
2036 if test -z "$CC"; then
2037 ac_ct_CC=$CC
2038 for ac_prog in gcc cc
2040 # Extract the first word of "$ac_prog", so it can be a program name with args.
2041 set dummy $ac_prog; ac_word=$2
2042 echo "$as_me:$LINENO: checking for $ac_word" >&5
2043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2044 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2045 echo $ECHO_N "(cached) $ECHO_C" >&6
2046 else
2047 if test -n "$ac_ct_CC"; then
2048 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2049 else
2050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2051 for as_dir in $PATH
2053 IFS=$as_save_IFS
2054 test -z "$as_dir" && as_dir=.
2055 for ac_exec_ext in '' $ac_executable_extensions; do
2056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2057 ac_cv_prog_ac_ct_CC="$ac_prog"
2058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2059 break 2
2061 done
2062 done
2066 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2067 if test -n "$ac_ct_CC"; then
2068 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2069 echo "${ECHO_T}$ac_ct_CC" >&6
2070 else
2071 echo "$as_me:$LINENO: result: no" >&5
2072 echo "${ECHO_T}no" >&6
2075 test -n "$ac_ct_CC" && break
2076 done
2078 CC=$ac_ct_CC
2082 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2083 See \`config.log' for more details." >&5
2084 echo "$as_me: error: no acceptable C compiler found in \$PATH
2085 See \`config.log' for more details." >&2;}
2086 { (exit 1); exit 1; }; }
2088 # Provide some information about the compiler.
2089 echo "$as_me:$LINENO:" \
2090 "checking for C compiler version" >&5
2091 ac_compiler=`set X $ac_compile; echo $2`
2092 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2093 (eval $ac_compiler --version </dev/null >&5) 2>&5
2094 ac_status=$?
2095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096 (exit $ac_status); }
2097 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2098 (eval $ac_compiler -v </dev/null >&5) 2>&5
2099 ac_status=$?
2100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101 (exit $ac_status); }
2102 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2103 (eval $ac_compiler -V </dev/null >&5) 2>&5
2104 ac_status=$?
2105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106 (exit $ac_status); }
2108 cat >conftest.$ac_ext <<_ACEOF
2109 /* confdefs.h. */
2110 _ACEOF
2111 cat confdefs.h >>conftest.$ac_ext
2112 cat >>conftest.$ac_ext <<_ACEOF
2113 /* end confdefs.h. */
2116 main ()
2120 return 0;
2122 _ACEOF
2123 ac_clean_files_save=$ac_clean_files
2124 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2125 # Try to create an executable without -o first, disregard a.out.
2126 # It will help us diagnose broken compilers, and finding out an intuition
2127 # of exeext.
2128 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2129 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2130 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2131 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2132 (eval $ac_link_default) 2>&5
2133 ac_status=$?
2134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135 (exit $ac_status); }; then
2136 # Find the output, starting from the most likely. This scheme is
2137 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2138 # resort.
2140 # Be careful to initialize this variable, since it used to be cached.
2141 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2142 ac_cv_exeext=
2143 # b.out is created by i960 compilers.
2144 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2146 test -f "$ac_file" || continue
2147 case $ac_file in
2148 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2150 conftest.$ac_ext )
2151 # This is the source file.
2153 [ab].out )
2154 # We found the default executable, but exeext='' is most
2155 # certainly right.
2156 break;;
2157 *.* )
2158 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2159 # FIXME: I believe we export ac_cv_exeext for Libtool,
2160 # but it would be cool to find out if it's true. Does anybody
2161 # maintain Libtool? --akim.
2162 export ac_cv_exeext
2163 break;;
2165 break;;
2166 esac
2167 done
2168 else
2169 echo "$as_me: failed program was:" >&5
2170 sed 's/^/| /' conftest.$ac_ext >&5
2172 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2173 See \`config.log' for more details." >&5
2174 echo "$as_me: error: C compiler cannot create executables
2175 See \`config.log' for more details." >&2;}
2176 { (exit 77); exit 77; }; }
2179 ac_exeext=$ac_cv_exeext
2180 echo "$as_me:$LINENO: result: $ac_file" >&5
2181 echo "${ECHO_T}$ac_file" >&6
2183 # Check the compiler produces executables we can run. If not, either
2184 # the compiler is broken, or we cross compile.
2185 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2186 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2187 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2188 # If not cross compiling, check that we can run a simple program.
2189 if test "$cross_compiling" != yes; then
2190 if { ac_try='./$ac_file'
2191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2192 (eval $ac_try) 2>&5
2193 ac_status=$?
2194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195 (exit $ac_status); }; }; then
2196 cross_compiling=no
2197 else
2198 if test "$cross_compiling" = maybe; then
2199 cross_compiling=yes
2200 else
2201 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2202 If you meant to cross compile, use \`--host'.
2203 See \`config.log' for more details." >&5
2204 echo "$as_me: error: cannot run C compiled programs.
2205 If you meant to cross compile, use \`--host'.
2206 See \`config.log' for more details." >&2;}
2207 { (exit 1); exit 1; }; }
2211 echo "$as_me:$LINENO: result: yes" >&5
2212 echo "${ECHO_T}yes" >&6
2214 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2215 ac_clean_files=$ac_clean_files_save
2216 # Check the compiler produces executables we can run. If not, either
2217 # the compiler is broken, or we cross compile.
2218 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2219 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2220 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2221 echo "${ECHO_T}$cross_compiling" >&6
2223 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2224 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2226 (eval $ac_link) 2>&5
2227 ac_status=$?
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); }; then
2230 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2231 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2232 # work properly (i.e., refer to `conftest.exe'), while it won't with
2233 # `rm'.
2234 for ac_file in conftest.exe conftest conftest.*; do
2235 test -f "$ac_file" || continue
2236 case $ac_file in
2237 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2238 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2239 export ac_cv_exeext
2240 break;;
2241 * ) break;;
2242 esac
2243 done
2244 else
2245 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2246 See \`config.log' for more details." >&5
2247 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2248 See \`config.log' for more details." >&2;}
2249 { (exit 1); exit 1; }; }
2252 rm -f conftest$ac_cv_exeext
2253 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2254 echo "${ECHO_T}$ac_cv_exeext" >&6
2256 rm -f conftest.$ac_ext
2257 EXEEXT=$ac_cv_exeext
2258 ac_exeext=$EXEEXT
2259 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2260 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2261 if test "${ac_cv_objext+set}" = set; then
2262 echo $ECHO_N "(cached) $ECHO_C" >&6
2263 else
2264 cat >conftest.$ac_ext <<_ACEOF
2265 /* confdefs.h. */
2266 _ACEOF
2267 cat confdefs.h >>conftest.$ac_ext
2268 cat >>conftest.$ac_ext <<_ACEOF
2269 /* end confdefs.h. */
2272 main ()
2276 return 0;
2278 _ACEOF
2279 rm -f conftest.o conftest.obj
2280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2281 (eval $ac_compile) 2>&5
2282 ac_status=$?
2283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284 (exit $ac_status); }; then
2285 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2286 case $ac_file in
2287 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2288 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2289 break;;
2290 esac
2291 done
2292 else
2293 echo "$as_me: failed program was:" >&5
2294 sed 's/^/| /' conftest.$ac_ext >&5
2296 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2297 See \`config.log' for more details." >&5
2298 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2299 See \`config.log' for more details." >&2;}
2300 { (exit 1); exit 1; }; }
2303 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2305 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2306 echo "${ECHO_T}$ac_cv_objext" >&6
2307 OBJEXT=$ac_cv_objext
2308 ac_objext=$OBJEXT
2309 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2310 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2311 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2312 echo $ECHO_N "(cached) $ECHO_C" >&6
2313 else
2314 cat >conftest.$ac_ext <<_ACEOF
2315 /* confdefs.h. */
2316 _ACEOF
2317 cat confdefs.h >>conftest.$ac_ext
2318 cat >>conftest.$ac_ext <<_ACEOF
2319 /* end confdefs.h. */
2322 main ()
2324 #ifndef __GNUC__
2325 choke me
2326 #endif
2329 return 0;
2331 _ACEOF
2332 rm -f conftest.$ac_objext
2333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2334 (eval $ac_compile) 2>conftest.er1
2335 ac_status=$?
2336 grep -v '^ *+' conftest.er1 >conftest.err
2337 rm -f conftest.er1
2338 cat conftest.err >&5
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); } &&
2341 { ac_try='test -z "$ac_c_werror_flag"
2342 || test ! -s conftest.err'
2343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2344 (eval $ac_try) 2>&5
2345 ac_status=$?
2346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347 (exit $ac_status); }; } &&
2348 { ac_try='test -s conftest.$ac_objext'
2349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2350 (eval $ac_try) 2>&5
2351 ac_status=$?
2352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353 (exit $ac_status); }; }; then
2354 ac_compiler_gnu=yes
2355 else
2356 echo "$as_me: failed program was:" >&5
2357 sed 's/^/| /' conftest.$ac_ext >&5
2359 ac_compiler_gnu=no
2361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2362 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2365 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2366 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2367 GCC=`test $ac_compiler_gnu = yes && echo yes`
2368 ac_test_CFLAGS=${CFLAGS+set}
2369 ac_save_CFLAGS=$CFLAGS
2370 CFLAGS="-g"
2371 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2372 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2373 if test "${ac_cv_prog_cc_g+set}" = set; then
2374 echo $ECHO_N "(cached) $ECHO_C" >&6
2375 else
2376 cat >conftest.$ac_ext <<_ACEOF
2377 /* confdefs.h. */
2378 _ACEOF
2379 cat confdefs.h >>conftest.$ac_ext
2380 cat >>conftest.$ac_ext <<_ACEOF
2381 /* end confdefs.h. */
2384 main ()
2388 return 0;
2390 _ACEOF
2391 rm -f conftest.$ac_objext
2392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2393 (eval $ac_compile) 2>conftest.er1
2394 ac_status=$?
2395 grep -v '^ *+' conftest.er1 >conftest.err
2396 rm -f conftest.er1
2397 cat conftest.err >&5
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); } &&
2400 { ac_try='test -z "$ac_c_werror_flag"
2401 || test ! -s conftest.err'
2402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2403 (eval $ac_try) 2>&5
2404 ac_status=$?
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); }; } &&
2407 { ac_try='test -s conftest.$ac_objext'
2408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2409 (eval $ac_try) 2>&5
2410 ac_status=$?
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); }; }; then
2413 ac_cv_prog_cc_g=yes
2414 else
2415 echo "$as_me: failed program was:" >&5
2416 sed 's/^/| /' conftest.$ac_ext >&5
2418 ac_cv_prog_cc_g=no
2420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2422 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2423 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2424 if test "$ac_test_CFLAGS" = set; then
2425 CFLAGS=$ac_save_CFLAGS
2426 elif test $ac_cv_prog_cc_g = yes; then
2427 if test "$GCC" = yes; then
2428 CFLAGS="-g -O2"
2429 else
2430 CFLAGS="-g"
2432 else
2433 if test "$GCC" = yes; then
2434 CFLAGS="-O2"
2435 else
2436 CFLAGS=
2439 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2440 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2441 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2442 echo $ECHO_N "(cached) $ECHO_C" >&6
2443 else
2444 ac_cv_prog_cc_stdc=no
2445 ac_save_CC=$CC
2446 cat >conftest.$ac_ext <<_ACEOF
2447 /* confdefs.h. */
2448 _ACEOF
2449 cat confdefs.h >>conftest.$ac_ext
2450 cat >>conftest.$ac_ext <<_ACEOF
2451 /* end confdefs.h. */
2452 #include <stdarg.h>
2453 #include <stdio.h>
2454 #include <sys/types.h>
2455 #include <sys/stat.h>
2456 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2457 struct buf { int x; };
2458 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2459 static char *e (p, i)
2460 char **p;
2461 int i;
2463 return p[i];
2465 static char *f (char * (*g) (char **, int), char **p, ...)
2467 char *s;
2468 va_list v;
2469 va_start (v,p);
2470 s = g (p, va_arg (v,int));
2471 va_end (v);
2472 return s;
2475 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2476 function prototypes and stuff, but not '\xHH' hex character constants.
2477 These don't provoke an error unfortunately, instead are silently treated
2478 as 'x'. The following induces an error, until -std1 is added to get
2479 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2480 array size at least. It's necessary to write '\x00'==0 to get something
2481 that's true only with -std1. */
2482 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2484 int test (int i, double x);
2485 struct s1 {int (*f) (int a);};
2486 struct s2 {int (*f) (double a);};
2487 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2488 int argc;
2489 char **argv;
2491 main ()
2493 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2495 return 0;
2497 _ACEOF
2498 # Don't try gcc -ansi; that turns off useful extensions and
2499 # breaks some systems' header files.
2500 # AIX -qlanglvl=ansi
2501 # Ultrix and OSF/1 -std1
2502 # HP-UX 10.20 and later -Ae
2503 # HP-UX older versions -Aa -D_HPUX_SOURCE
2504 # SVR4 -Xc -D__EXTENSIONS__
2505 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2507 CC="$ac_save_CC $ac_arg"
2508 rm -f conftest.$ac_objext
2509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2510 (eval $ac_compile) 2>conftest.er1
2511 ac_status=$?
2512 grep -v '^ *+' conftest.er1 >conftest.err
2513 rm -f conftest.er1
2514 cat conftest.err >&5
2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516 (exit $ac_status); } &&
2517 { ac_try='test -z "$ac_c_werror_flag"
2518 || test ! -s conftest.err'
2519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2520 (eval $ac_try) 2>&5
2521 ac_status=$?
2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523 (exit $ac_status); }; } &&
2524 { ac_try='test -s conftest.$ac_objext'
2525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2526 (eval $ac_try) 2>&5
2527 ac_status=$?
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); }; }; then
2530 ac_cv_prog_cc_stdc=$ac_arg
2531 break
2532 else
2533 echo "$as_me: failed program was:" >&5
2534 sed 's/^/| /' conftest.$ac_ext >&5
2537 rm -f conftest.err conftest.$ac_objext
2538 done
2539 rm -f conftest.$ac_ext conftest.$ac_objext
2540 CC=$ac_save_CC
2544 case "x$ac_cv_prog_cc_stdc" in
2545 x|xno)
2546 echo "$as_me:$LINENO: result: none needed" >&5
2547 echo "${ECHO_T}none needed" >&6 ;;
2549 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2550 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2551 CC="$CC $ac_cv_prog_cc_stdc" ;;
2552 esac
2554 # Some people use a C++ compiler to compile C. Since we use `exit',
2555 # in C++ we need to declare it. In case someone uses the same compiler
2556 # for both compiling C and C++ we need to have the C++ compiler decide
2557 # the declaration of exit, since it's the most demanding environment.
2558 cat >conftest.$ac_ext <<_ACEOF
2559 #ifndef __cplusplus
2560 choke me
2561 #endif
2562 _ACEOF
2563 rm -f conftest.$ac_objext
2564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2565 (eval $ac_compile) 2>conftest.er1
2566 ac_status=$?
2567 grep -v '^ *+' conftest.er1 >conftest.err
2568 rm -f conftest.er1
2569 cat conftest.err >&5
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); } &&
2572 { ac_try='test -z "$ac_c_werror_flag"
2573 || test ! -s conftest.err'
2574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2575 (eval $ac_try) 2>&5
2576 ac_status=$?
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); }; } &&
2579 { ac_try='test -s conftest.$ac_objext'
2580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581 (eval $ac_try) 2>&5
2582 ac_status=$?
2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); }; }; then
2585 for ac_declaration in \
2586 '' \
2587 'extern "C" void std::exit (int) throw (); using std::exit;' \
2588 'extern "C" void std::exit (int); using std::exit;' \
2589 'extern "C" void exit (int) throw ();' \
2590 'extern "C" void exit (int);' \
2591 'void exit (int);'
2593 cat >conftest.$ac_ext <<_ACEOF
2594 /* confdefs.h. */
2595 _ACEOF
2596 cat confdefs.h >>conftest.$ac_ext
2597 cat >>conftest.$ac_ext <<_ACEOF
2598 /* end confdefs.h. */
2599 $ac_declaration
2600 #include <stdlib.h>
2602 main ()
2604 exit (42);
2606 return 0;
2608 _ACEOF
2609 rm -f conftest.$ac_objext
2610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2611 (eval $ac_compile) 2>conftest.er1
2612 ac_status=$?
2613 grep -v '^ *+' conftest.er1 >conftest.err
2614 rm -f conftest.er1
2615 cat conftest.err >&5
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); } &&
2618 { ac_try='test -z "$ac_c_werror_flag"
2619 || test ! -s conftest.err'
2620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2621 (eval $ac_try) 2>&5
2622 ac_status=$?
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); }; } &&
2625 { ac_try='test -s conftest.$ac_objext'
2626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627 (eval $ac_try) 2>&5
2628 ac_status=$?
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); }; }; then
2632 else
2633 echo "$as_me: failed program was:" >&5
2634 sed 's/^/| /' conftest.$ac_ext >&5
2636 continue
2638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2639 cat >conftest.$ac_ext <<_ACEOF
2640 /* confdefs.h. */
2641 _ACEOF
2642 cat confdefs.h >>conftest.$ac_ext
2643 cat >>conftest.$ac_ext <<_ACEOF
2644 /* end confdefs.h. */
2645 $ac_declaration
2647 main ()
2649 exit (42);
2651 return 0;
2653 _ACEOF
2654 rm -f conftest.$ac_objext
2655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2656 (eval $ac_compile) 2>conftest.er1
2657 ac_status=$?
2658 grep -v '^ *+' conftest.er1 >conftest.err
2659 rm -f conftest.er1
2660 cat conftest.err >&5
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); } &&
2663 { ac_try='test -z "$ac_c_werror_flag"
2664 || test ! -s conftest.err'
2665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2666 (eval $ac_try) 2>&5
2667 ac_status=$?
2668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669 (exit $ac_status); }; } &&
2670 { ac_try='test -s conftest.$ac_objext'
2671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2672 (eval $ac_try) 2>&5
2673 ac_status=$?
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); }; }; then
2676 break
2677 else
2678 echo "$as_me: failed program was:" >&5
2679 sed 's/^/| /' conftest.$ac_ext >&5
2682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2683 done
2684 rm -f conftest*
2685 if test -n "$ac_declaration"; then
2686 echo '#ifdef __cplusplus' >>confdefs.h
2687 echo $ac_declaration >>confdefs.h
2688 echo '#endif' >>confdefs.h
2691 else
2692 echo "$as_me: failed program was:" >&5
2693 sed 's/^/| /' conftest.$ac_ext >&5
2696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2697 ac_ext=c
2698 ac_cpp='$CPP $CPPFLAGS'
2699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2702 DEPDIR="${am__leading_dot}deps"
2704 ac_config_commands="$ac_config_commands depfiles"
2707 am_make=${MAKE-make}
2708 cat > confinc << 'END'
2709 am__doit:
2710 @echo done
2711 .PHONY: am__doit
2713 # If we don't find an include directive, just comment out the code.
2714 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2715 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2716 am__include="#"
2717 am__quote=
2718 _am_result=none
2719 # First try GNU make style include.
2720 echo "include confinc" > confmf
2721 # We grep out `Entering directory' and `Leaving directory'
2722 # messages which can occur if `w' ends up in MAKEFLAGS.
2723 # In particular we don't look at `^make:' because GNU make might
2724 # be invoked under some other name (usually "gmake"), in which
2725 # case it prints its new name instead of `make'.
2726 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2727 am__include=include
2728 am__quote=
2729 _am_result=GNU
2731 # Now try BSD make style include.
2732 if test "$am__include" = "#"; then
2733 echo '.include "confinc"' > confmf
2734 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2735 am__include=.include
2736 am__quote="\""
2737 _am_result=BSD
2742 echo "$as_me:$LINENO: result: $_am_result" >&5
2743 echo "${ECHO_T}$_am_result" >&6
2744 rm -f confinc confmf
2746 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2747 if test "${enable_dependency_tracking+set}" = set; then
2748 enableval="$enable_dependency_tracking"
2751 if test "x$enable_dependency_tracking" != xno; then
2752 am_depcomp="$ac_aux_dir/depcomp"
2753 AMDEPBACKSLASH='\'
2757 if test "x$enable_dependency_tracking" != xno; then
2758 AMDEP_TRUE=
2759 AMDEP_FALSE='#'
2760 else
2761 AMDEP_TRUE='#'
2762 AMDEP_FALSE=
2768 depcc="$CC" am_compiler_list=
2770 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2771 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2772 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2773 echo $ECHO_N "(cached) $ECHO_C" >&6
2774 else
2775 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2776 # We make a subdir and do the tests there. Otherwise we can end up
2777 # making bogus files that we don't know about and never remove. For
2778 # instance it was reported that on HP-UX the gcc test will end up
2779 # making a dummy file named `D' -- because `-MD' means `put the output
2780 # in D'.
2781 mkdir conftest.dir
2782 # Copy depcomp to subdir because otherwise we won't find it if we're
2783 # using a relative directory.
2784 cp "$am_depcomp" conftest.dir
2785 cd conftest.dir
2786 # We will build objects and dependencies in a subdirectory because
2787 # it helps to detect inapplicable dependency modes. For instance
2788 # both Tru64's cc and ICC support -MD to output dependencies as a
2789 # side effect of compilation, but ICC will put the dependencies in
2790 # the current directory while Tru64 will put them in the object
2791 # directory.
2792 mkdir sub
2794 am_cv_CC_dependencies_compiler_type=none
2795 if test "$am_compiler_list" = ""; then
2796 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2798 for depmode in $am_compiler_list; do
2799 # Setup a source with many dependencies, because some compilers
2800 # like to wrap large dependency lists on column 80 (with \), and
2801 # we should not choose a depcomp mode which is confused by this.
2803 # We need to recreate these files for each test, as the compiler may
2804 # overwrite some of them when testing with obscure command lines.
2805 # This happens at least with the AIX C compiler.
2806 : > sub/conftest.c
2807 for i in 1 2 3 4 5 6; do
2808 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2809 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2810 # Solaris 8's {/usr,}/bin/sh.
2811 touch sub/conftst$i.h
2812 done
2813 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2815 case $depmode in
2816 nosideeffect)
2817 # after this tag, mechanisms are not by side-effect, so they'll
2818 # only be used when explicitly requested
2819 if test "x$enable_dependency_tracking" = xyes; then
2820 continue
2821 else
2822 break
2825 none) break ;;
2826 esac
2827 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2828 # mode. It turns out that the SunPro C++ compiler does not properly
2829 # handle `-M -o', and we need to detect this.
2830 if depmode=$depmode \
2831 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2832 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2833 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2834 >/dev/null 2>conftest.err &&
2835 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2836 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2837 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2838 # icc doesn't choke on unknown options, it will just issue warnings
2839 # or remarks (even with -Werror). So we grep stderr for any message
2840 # that says an option was ignored or not supported.
2841 # When given -MP, icc 7.0 and 7.1 complain thusly:
2842 # icc: Command line warning: ignoring option '-M'; no argument required
2843 # The diagnosis changed in icc 8.0:
2844 # icc: Command line remark: option '-MP' not supported
2845 if (grep 'ignoring option' conftest.err ||
2846 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2847 am_cv_CC_dependencies_compiler_type=$depmode
2848 break
2851 done
2853 cd ..
2854 rm -rf conftest.dir
2855 else
2856 am_cv_CC_dependencies_compiler_type=none
2860 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2861 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2862 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2867 test "x$enable_dependency_tracking" != xno \
2868 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2869 am__fastdepCC_TRUE=
2870 am__fastdepCC_FALSE='#'
2871 else
2872 am__fastdepCC_TRUE='#'
2873 am__fastdepCC_FALSE=
2877 ac_ext=cc
2878 ac_cpp='$CXXCPP $CPPFLAGS'
2879 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2880 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2881 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2882 if test -n "$ac_tool_prefix"; then
2883 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2885 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2886 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2887 echo "$as_me:$LINENO: checking for $ac_word" >&5
2888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2889 if test "${ac_cv_prog_CXX+set}" = set; then
2890 echo $ECHO_N "(cached) $ECHO_C" >&6
2891 else
2892 if test -n "$CXX"; then
2893 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2894 else
2895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896 for as_dir in $PATH
2898 IFS=$as_save_IFS
2899 test -z "$as_dir" && as_dir=.
2900 for ac_exec_ext in '' $ac_executable_extensions; do
2901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2902 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2904 break 2
2906 done
2907 done
2911 CXX=$ac_cv_prog_CXX
2912 if test -n "$CXX"; then
2913 echo "$as_me:$LINENO: result: $CXX" >&5
2914 echo "${ECHO_T}$CXX" >&6
2915 else
2916 echo "$as_me:$LINENO: result: no" >&5
2917 echo "${ECHO_T}no" >&6
2920 test -n "$CXX" && break
2921 done
2923 if test -z "$CXX"; then
2924 ac_ct_CXX=$CXX
2925 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2927 # Extract the first word of "$ac_prog", so it can be a program name with args.
2928 set dummy $ac_prog; ac_word=$2
2929 echo "$as_me:$LINENO: checking for $ac_word" >&5
2930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2931 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2932 echo $ECHO_N "(cached) $ECHO_C" >&6
2933 else
2934 if test -n "$ac_ct_CXX"; then
2935 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2936 else
2937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938 for as_dir in $PATH
2940 IFS=$as_save_IFS
2941 test -z "$as_dir" && as_dir=.
2942 for ac_exec_ext in '' $ac_executable_extensions; do
2943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2944 ac_cv_prog_ac_ct_CXX="$ac_prog"
2945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2946 break 2
2948 done
2949 done
2953 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2954 if test -n "$ac_ct_CXX"; then
2955 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2956 echo "${ECHO_T}$ac_ct_CXX" >&6
2957 else
2958 echo "$as_me:$LINENO: result: no" >&5
2959 echo "${ECHO_T}no" >&6
2962 test -n "$ac_ct_CXX" && break
2963 done
2964 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2966 CXX=$ac_ct_CXX
2970 # Provide some information about the compiler.
2971 echo "$as_me:$LINENO:" \
2972 "checking for C++ compiler version" >&5
2973 ac_compiler=`set X $ac_compile; echo $2`
2974 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2975 (eval $ac_compiler --version </dev/null >&5) 2>&5
2976 ac_status=$?
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); }
2979 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2980 (eval $ac_compiler -v </dev/null >&5) 2>&5
2981 ac_status=$?
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); }
2984 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2985 (eval $ac_compiler -V </dev/null >&5) 2>&5
2986 ac_status=$?
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); }
2990 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2991 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2992 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2993 echo $ECHO_N "(cached) $ECHO_C" >&6
2994 else
2995 cat >conftest.$ac_ext <<_ACEOF
2996 /* confdefs.h. */
2997 _ACEOF
2998 cat confdefs.h >>conftest.$ac_ext
2999 cat >>conftest.$ac_ext <<_ACEOF
3000 /* end confdefs.h. */
3003 main ()
3005 #ifndef __GNUC__
3006 choke me
3007 #endif
3010 return 0;
3012 _ACEOF
3013 rm -f conftest.$ac_objext
3014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3015 (eval $ac_compile) 2>conftest.er1
3016 ac_status=$?
3017 grep -v '^ *+' conftest.er1 >conftest.err
3018 rm -f conftest.er1
3019 cat conftest.err >&5
3020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021 (exit $ac_status); } &&
3022 { ac_try='test -z "$ac_cxx_werror_flag"
3023 || test ! -s conftest.err'
3024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3025 (eval $ac_try) 2>&5
3026 ac_status=$?
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); }; } &&
3029 { ac_try='test -s conftest.$ac_objext'
3030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3031 (eval $ac_try) 2>&5
3032 ac_status=$?
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); }; }; then
3035 ac_compiler_gnu=yes
3036 else
3037 echo "$as_me: failed program was:" >&5
3038 sed 's/^/| /' conftest.$ac_ext >&5
3040 ac_compiler_gnu=no
3042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3043 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3046 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3047 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3048 GXX=`test $ac_compiler_gnu = yes && echo yes`
3049 ac_test_CXXFLAGS=${CXXFLAGS+set}
3050 ac_save_CXXFLAGS=$CXXFLAGS
3051 CXXFLAGS="-g"
3052 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3053 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3054 if test "${ac_cv_prog_cxx_g+set}" = set; then
3055 echo $ECHO_N "(cached) $ECHO_C" >&6
3056 else
3057 cat >conftest.$ac_ext <<_ACEOF
3058 /* confdefs.h. */
3059 _ACEOF
3060 cat confdefs.h >>conftest.$ac_ext
3061 cat >>conftest.$ac_ext <<_ACEOF
3062 /* end confdefs.h. */
3065 main ()
3069 return 0;
3071 _ACEOF
3072 rm -f conftest.$ac_objext
3073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3074 (eval $ac_compile) 2>conftest.er1
3075 ac_status=$?
3076 grep -v '^ *+' conftest.er1 >conftest.err
3077 rm -f conftest.er1
3078 cat conftest.err >&5
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); } &&
3081 { ac_try='test -z "$ac_cxx_werror_flag"
3082 || test ! -s conftest.err'
3083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3084 (eval $ac_try) 2>&5
3085 ac_status=$?
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); }; } &&
3088 { ac_try='test -s conftest.$ac_objext'
3089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3090 (eval $ac_try) 2>&5
3091 ac_status=$?
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); }; }; then
3094 ac_cv_prog_cxx_g=yes
3095 else
3096 echo "$as_me: failed program was:" >&5
3097 sed 's/^/| /' conftest.$ac_ext >&5
3099 ac_cv_prog_cxx_g=no
3101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3103 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3104 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3105 if test "$ac_test_CXXFLAGS" = set; then
3106 CXXFLAGS=$ac_save_CXXFLAGS
3107 elif test $ac_cv_prog_cxx_g = yes; then
3108 if test "$GXX" = yes; then
3109 CXXFLAGS="-g -O2"
3110 else
3111 CXXFLAGS="-g"
3113 else
3114 if test "$GXX" = yes; then
3115 CXXFLAGS="-O2"
3116 else
3117 CXXFLAGS=
3120 for ac_declaration in \
3121 '' \
3122 'extern "C" void std::exit (int) throw (); using std::exit;' \
3123 'extern "C" void std::exit (int); using std::exit;' \
3124 'extern "C" void exit (int) throw ();' \
3125 'extern "C" void exit (int);' \
3126 'void exit (int);'
3128 cat >conftest.$ac_ext <<_ACEOF
3129 /* confdefs.h. */
3130 _ACEOF
3131 cat confdefs.h >>conftest.$ac_ext
3132 cat >>conftest.$ac_ext <<_ACEOF
3133 /* end confdefs.h. */
3134 $ac_declaration
3135 #include <stdlib.h>
3137 main ()
3139 exit (42);
3141 return 0;
3143 _ACEOF
3144 rm -f conftest.$ac_objext
3145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3146 (eval $ac_compile) 2>conftest.er1
3147 ac_status=$?
3148 grep -v '^ *+' conftest.er1 >conftest.err
3149 rm -f conftest.er1
3150 cat conftest.err >&5
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); } &&
3153 { ac_try='test -z "$ac_cxx_werror_flag"
3154 || test ! -s conftest.err'
3155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3156 (eval $ac_try) 2>&5
3157 ac_status=$?
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); }; } &&
3160 { ac_try='test -s conftest.$ac_objext'
3161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3162 (eval $ac_try) 2>&5
3163 ac_status=$?
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); }; }; then
3167 else
3168 echo "$as_me: failed program was:" >&5
3169 sed 's/^/| /' conftest.$ac_ext >&5
3171 continue
3173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3174 cat >conftest.$ac_ext <<_ACEOF
3175 /* confdefs.h. */
3176 _ACEOF
3177 cat confdefs.h >>conftest.$ac_ext
3178 cat >>conftest.$ac_ext <<_ACEOF
3179 /* end confdefs.h. */
3180 $ac_declaration
3182 main ()
3184 exit (42);
3186 return 0;
3188 _ACEOF
3189 rm -f conftest.$ac_objext
3190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3191 (eval $ac_compile) 2>conftest.er1
3192 ac_status=$?
3193 grep -v '^ *+' conftest.er1 >conftest.err
3194 rm -f conftest.er1
3195 cat conftest.err >&5
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); } &&
3198 { ac_try='test -z "$ac_cxx_werror_flag"
3199 || test ! -s conftest.err'
3200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3201 (eval $ac_try) 2>&5
3202 ac_status=$?
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); }; } &&
3205 { ac_try='test -s conftest.$ac_objext'
3206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3207 (eval $ac_try) 2>&5
3208 ac_status=$?
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); }; }; then
3211 break
3212 else
3213 echo "$as_me: failed program was:" >&5
3214 sed 's/^/| /' conftest.$ac_ext >&5
3217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3218 done
3219 rm -f conftest*
3220 if test -n "$ac_declaration"; then
3221 echo '#ifdef __cplusplus' >>confdefs.h
3222 echo $ac_declaration >>confdefs.h
3223 echo '#endif' >>confdefs.h
3226 ac_ext=c
3227 ac_cpp='$CPP $CPPFLAGS'
3228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3232 depcc="$CXX" am_compiler_list=
3234 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3235 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3236 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3237 echo $ECHO_N "(cached) $ECHO_C" >&6
3238 else
3239 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3240 # We make a subdir and do the tests there. Otherwise we can end up
3241 # making bogus files that we don't know about and never remove. For
3242 # instance it was reported that on HP-UX the gcc test will end up
3243 # making a dummy file named `D' -- because `-MD' means `put the output
3244 # in D'.
3245 mkdir conftest.dir
3246 # Copy depcomp to subdir because otherwise we won't find it if we're
3247 # using a relative directory.
3248 cp "$am_depcomp" conftest.dir
3249 cd conftest.dir
3250 # We will build objects and dependencies in a subdirectory because
3251 # it helps to detect inapplicable dependency modes. For instance
3252 # both Tru64's cc and ICC support -MD to output dependencies as a
3253 # side effect of compilation, but ICC will put the dependencies in
3254 # the current directory while Tru64 will put them in the object
3255 # directory.
3256 mkdir sub
3258 am_cv_CXX_dependencies_compiler_type=none
3259 if test "$am_compiler_list" = ""; then
3260 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3262 for depmode in $am_compiler_list; do
3263 # Setup a source with many dependencies, because some compilers
3264 # like to wrap large dependency lists on column 80 (with \), and
3265 # we should not choose a depcomp mode which is confused by this.
3267 # We need to recreate these files for each test, as the compiler may
3268 # overwrite some of them when testing with obscure command lines.
3269 # This happens at least with the AIX C compiler.
3270 : > sub/conftest.c
3271 for i in 1 2 3 4 5 6; do
3272 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3273 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3274 # Solaris 8's {/usr,}/bin/sh.
3275 touch sub/conftst$i.h
3276 done
3277 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3279 case $depmode in
3280 nosideeffect)
3281 # after this tag, mechanisms are not by side-effect, so they'll
3282 # only be used when explicitly requested
3283 if test "x$enable_dependency_tracking" = xyes; then
3284 continue
3285 else
3286 break
3289 none) break ;;
3290 esac
3291 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3292 # mode. It turns out that the SunPro C++ compiler does not properly
3293 # handle `-M -o', and we need to detect this.
3294 if depmode=$depmode \
3295 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3296 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3297 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3298 >/dev/null 2>conftest.err &&
3299 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3300 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3301 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3302 # icc doesn't choke on unknown options, it will just issue warnings
3303 # or remarks (even with -Werror). So we grep stderr for any message
3304 # that says an option was ignored or not supported.
3305 # When given -MP, icc 7.0 and 7.1 complain thusly:
3306 # icc: Command line warning: ignoring option '-M'; no argument required
3307 # The diagnosis changed in icc 8.0:
3308 # icc: Command line remark: option '-MP' not supported
3309 if (grep 'ignoring option' conftest.err ||
3310 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3311 am_cv_CXX_dependencies_compiler_type=$depmode
3312 break
3315 done
3317 cd ..
3318 rm -rf conftest.dir
3319 else
3320 am_cv_CXX_dependencies_compiler_type=none
3324 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3325 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3326 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3331 test "x$enable_dependency_tracking" != xno \
3332 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3333 am__fastdepCXX_TRUE=
3334 am__fastdepCXX_FALSE='#'
3335 else
3336 am__fastdepCXX_TRUE='#'
3337 am__fastdepCXX_FALSE=
3341 if test -n "$ac_tool_prefix"; then
3342 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3343 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3344 echo "$as_me:$LINENO: checking for $ac_word" >&5
3345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3346 if test "${ac_cv_prog_RANLIB+set}" = set; then
3347 echo $ECHO_N "(cached) $ECHO_C" >&6
3348 else
3349 if test -n "$RANLIB"; then
3350 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3351 else
3352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3353 for as_dir in $PATH
3355 IFS=$as_save_IFS
3356 test -z "$as_dir" && as_dir=.
3357 for ac_exec_ext in '' $ac_executable_extensions; do
3358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3359 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3361 break 2
3363 done
3364 done
3368 RANLIB=$ac_cv_prog_RANLIB
3369 if test -n "$RANLIB"; then
3370 echo "$as_me:$LINENO: result: $RANLIB" >&5
3371 echo "${ECHO_T}$RANLIB" >&6
3372 else
3373 echo "$as_me:$LINENO: result: no" >&5
3374 echo "${ECHO_T}no" >&6
3378 if test -z "$ac_cv_prog_RANLIB"; then
3379 ac_ct_RANLIB=$RANLIB
3380 # Extract the first word of "ranlib", so it can be a program name with args.
3381 set dummy ranlib; ac_word=$2
3382 echo "$as_me:$LINENO: checking for $ac_word" >&5
3383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3384 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3385 echo $ECHO_N "(cached) $ECHO_C" >&6
3386 else
3387 if test -n "$ac_ct_RANLIB"; then
3388 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3389 else
3390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3391 for as_dir in $PATH
3393 IFS=$as_save_IFS
3394 test -z "$as_dir" && as_dir=.
3395 for ac_exec_ext in '' $ac_executable_extensions; do
3396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3397 ac_cv_prog_ac_ct_RANLIB="ranlib"
3398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3399 break 2
3401 done
3402 done
3404 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3407 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3408 if test -n "$ac_ct_RANLIB"; then
3409 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3410 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3411 else
3412 echo "$as_me:$LINENO: result: no" >&5
3413 echo "${ECHO_T}no" >&6
3416 RANLIB=$ac_ct_RANLIB
3417 else
3418 RANLIB="$ac_cv_prog_RANLIB"
3421 # Check whether --enable-shared or --disable-shared was given.
3422 if test "${enable_shared+set}" = set; then
3423 enableval="$enable_shared"
3424 p=${PACKAGE-default}
3425 case $enableval in
3426 yes) enable_shared=yes ;;
3427 no) enable_shared=no ;;
3429 enable_shared=no
3430 # Look at the argument we got. We use all the common list separators.
3431 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3432 for pkg in $enableval; do
3433 IFS="$lt_save_ifs"
3434 if test "X$pkg" = "X$p"; then
3435 enable_shared=yes
3437 done
3438 IFS="$lt_save_ifs"
3440 esac
3441 else
3442 enable_shared=yes
3445 # Check whether --enable-static or --disable-static was given.
3446 if test "${enable_static+set}" = set; then
3447 enableval="$enable_static"
3448 p=${PACKAGE-default}
3449 case $enableval in
3450 yes) enable_static=yes ;;
3451 no) enable_static=no ;;
3453 enable_static=no
3454 # Look at the argument we got. We use all the common list separators.
3455 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3456 for pkg in $enableval; do
3457 IFS="$lt_save_ifs"
3458 if test "X$pkg" = "X$p"; then
3459 enable_static=yes
3461 done
3462 IFS="$lt_save_ifs"
3464 esac
3465 else
3466 enable_static=yes
3469 # Check whether --enable-fast-install or --disable-fast-install was given.
3470 if test "${enable_fast_install+set}" = set; then
3471 enableval="$enable_fast_install"
3472 p=${PACKAGE-default}
3473 case $enableval in
3474 yes) enable_fast_install=yes ;;
3475 no) enable_fast_install=no ;;
3477 enable_fast_install=no
3478 # Look at the argument we got. We use all the common list separators.
3479 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3480 for pkg in $enableval; do
3481 IFS="$lt_save_ifs"
3482 if test "X$pkg" = "X$p"; then
3483 enable_fast_install=yes
3485 done
3486 IFS="$lt_save_ifs"
3488 esac
3489 else
3490 enable_fast_install=yes
3493 # Make sure we can run config.sub.
3494 $ac_config_sub sun4 >/dev/null 2>&1 ||
3495 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3496 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3497 { (exit 1); exit 1; }; }
3499 echo "$as_me:$LINENO: checking build system type" >&5
3500 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3501 if test "${ac_cv_build+set}" = set; then
3502 echo $ECHO_N "(cached) $ECHO_C" >&6
3503 else
3504 ac_cv_build_alias=$build_alias
3505 test -z "$ac_cv_build_alias" &&
3506 ac_cv_build_alias=`$ac_config_guess`
3507 test -z "$ac_cv_build_alias" &&
3508 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3509 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3510 { (exit 1); exit 1; }; }
3511 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3512 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3513 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3514 { (exit 1); exit 1; }; }
3517 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3518 echo "${ECHO_T}$ac_cv_build" >&6
3519 build=$ac_cv_build
3520 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3521 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3522 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3525 echo "$as_me:$LINENO: checking host system type" >&5
3526 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3527 if test "${ac_cv_host+set}" = set; then
3528 echo $ECHO_N "(cached) $ECHO_C" >&6
3529 else
3530 ac_cv_host_alias=$host_alias
3531 test -z "$ac_cv_host_alias" &&
3532 ac_cv_host_alias=$ac_cv_build_alias
3533 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3534 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3535 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3536 { (exit 1); exit 1; }; }
3539 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3540 echo "${ECHO_T}$ac_cv_host" >&6
3541 host=$ac_cv_host
3542 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3543 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3544 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3547 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3548 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3549 if test "${lt_cv_path_SED+set}" = set; then
3550 echo $ECHO_N "(cached) $ECHO_C" >&6
3551 else
3552 # Loop through the user's path and test for sed and gsed.
3553 # Then use that list of sed's as ones to test for truncation.
3554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3555 for as_dir in $PATH
3557 IFS=$as_save_IFS
3558 test -z "$as_dir" && as_dir=.
3559 for lt_ac_prog in sed gsed; do
3560 for ac_exec_ext in '' $ac_executable_extensions; do
3561 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3562 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3564 done
3565 done
3566 done
3567 lt_ac_max=0
3568 lt_ac_count=0
3569 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3570 # along with /bin/sed that truncates output.
3571 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3572 test ! -f $lt_ac_sed && continue
3573 cat /dev/null > conftest.in
3574 lt_ac_count=0
3575 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3576 # Check for GNU sed and select it if it is found.
3577 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3578 lt_cv_path_SED=$lt_ac_sed
3579 break
3581 while true; do
3582 cat conftest.in conftest.in >conftest.tmp
3583 mv conftest.tmp conftest.in
3584 cp conftest.in conftest.nl
3585 echo >>conftest.nl
3586 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3587 cmp -s conftest.out conftest.nl || break
3588 # 10000 chars as input seems more than enough
3589 test $lt_ac_count -gt 10 && break
3590 lt_ac_count=`expr $lt_ac_count + 1`
3591 if test $lt_ac_count -gt $lt_ac_max; then
3592 lt_ac_max=$lt_ac_count
3593 lt_cv_path_SED=$lt_ac_sed
3595 done
3596 done
3600 SED=$lt_cv_path_SED
3601 echo "$as_me:$LINENO: result: $SED" >&5
3602 echo "${ECHO_T}$SED" >&6
3604 echo "$as_me:$LINENO: checking for egrep" >&5
3605 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3606 if test "${ac_cv_prog_egrep+set}" = set; then
3607 echo $ECHO_N "(cached) $ECHO_C" >&6
3608 else
3609 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3610 then ac_cv_prog_egrep='grep -E'
3611 else ac_cv_prog_egrep='egrep'
3614 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3615 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3616 EGREP=$ac_cv_prog_egrep
3620 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3621 if test "${with_gnu_ld+set}" = set; then
3622 withval="$with_gnu_ld"
3623 test "$withval" = no || with_gnu_ld=yes
3624 else
3625 with_gnu_ld=no
3627 ac_prog=ld
3628 if test "$GCC" = yes; then
3629 # Check if gcc -print-prog-name=ld gives a path.
3630 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3631 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3632 case $host in
3633 *-*-mingw*)
3634 # gcc leaves a trailing carriage return which upsets mingw
3635 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3637 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3638 esac
3639 case $ac_prog in
3640 # Accept absolute paths.
3641 [\\/]* | ?:[\\/]*)
3642 re_direlt='/[^/][^/]*/\.\./'
3643 # Canonicalize the pathname of ld
3644 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3645 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3646 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3647 done
3648 test -z "$LD" && LD="$ac_prog"
3651 # If it fails, then pretend we aren't using GCC.
3652 ac_prog=ld
3655 # If it is relative, then search for the first ld in PATH.
3656 with_gnu_ld=unknown
3658 esac
3659 elif test "$with_gnu_ld" = yes; then
3660 echo "$as_me:$LINENO: checking for GNU ld" >&5
3661 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3662 else
3663 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3664 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3666 if test "${lt_cv_path_LD+set}" = set; then
3667 echo $ECHO_N "(cached) $ECHO_C" >&6
3668 else
3669 if test -z "$LD"; then
3670 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3671 for ac_dir in $PATH; do
3672 IFS="$lt_save_ifs"
3673 test -z "$ac_dir" && ac_dir=.
3674 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3675 lt_cv_path_LD="$ac_dir/$ac_prog"
3676 # Check to see if the program is GNU ld. I'd rather use --version,
3677 # but apparently some variants of GNU ld only accept -v.
3678 # Break only if it was the GNU/non-GNU ld that we prefer.
3679 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3680 *GNU* | *'with BFD'*)
3681 test "$with_gnu_ld" != no && break
3684 test "$with_gnu_ld" != yes && break
3686 esac
3688 done
3689 IFS="$lt_save_ifs"
3690 else
3691 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3695 LD="$lt_cv_path_LD"
3696 if test -n "$LD"; then
3697 echo "$as_me:$LINENO: result: $LD" >&5
3698 echo "${ECHO_T}$LD" >&6
3699 else
3700 echo "$as_me:$LINENO: result: no" >&5
3701 echo "${ECHO_T}no" >&6
3703 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3704 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3705 { (exit 1); exit 1; }; }
3706 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3707 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3708 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3709 echo $ECHO_N "(cached) $ECHO_C" >&6
3710 else
3711 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3712 case `$LD -v 2>&1 </dev/null` in
3713 *GNU* | *'with BFD'*)
3714 lt_cv_prog_gnu_ld=yes
3717 lt_cv_prog_gnu_ld=no
3719 esac
3721 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3722 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3723 with_gnu_ld=$lt_cv_prog_gnu_ld
3726 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3727 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3728 if test "${lt_cv_ld_reload_flag+set}" = set; then
3729 echo $ECHO_N "(cached) $ECHO_C" >&6
3730 else
3731 lt_cv_ld_reload_flag='-r'
3733 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3734 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3735 reload_flag=$lt_cv_ld_reload_flag
3736 case $reload_flag in
3737 "" | " "*) ;;
3738 *) reload_flag=" $reload_flag" ;;
3739 esac
3740 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3741 case $host_os in
3742 darwin*)
3743 if test "$GCC" = yes; then
3744 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3745 else
3746 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3749 esac
3751 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3752 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3753 if test "${lt_cv_path_NM+set}" = set; then
3754 echo $ECHO_N "(cached) $ECHO_C" >&6
3755 else
3756 if test -n "$NM"; then
3757 # Let the user override the test.
3758 lt_cv_path_NM="$NM"
3759 else
3760 lt_nm_to_check="${ac_tool_prefix}nm"
3761 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3762 lt_nm_to_check="$lt_nm_to_check nm"
3764 for lt_tmp_nm in $lt_nm_to_check; do
3765 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3766 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3767 IFS="$lt_save_ifs"
3768 test -z "$ac_dir" && ac_dir=.
3769 tmp_nm="$ac_dir/$lt_tmp_nm"
3770 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3771 # Check to see if the nm accepts a BSD-compat flag.
3772 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3773 # nm: unknown option "B" ignored
3774 # Tru64's nm complains that /dev/null is an invalid object file
3775 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3776 */dev/null* | *'Invalid file or object type'*)
3777 lt_cv_path_NM="$tmp_nm -B"
3778 break
3781 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3782 */dev/null*)
3783 lt_cv_path_NM="$tmp_nm -p"
3784 break
3787 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3788 continue # so that we can try to find one that supports BSD flags
3790 esac
3792 esac
3794 done
3795 IFS="$lt_save_ifs"
3796 done
3797 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3800 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3801 echo "${ECHO_T}$lt_cv_path_NM" >&6
3802 NM="$lt_cv_path_NM"
3804 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3805 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3806 LN_S=$as_ln_s
3807 if test "$LN_S" = "ln -s"; then
3808 echo "$as_me:$LINENO: result: yes" >&5
3809 echo "${ECHO_T}yes" >&6
3810 else
3811 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3812 echo "${ECHO_T}no, using $LN_S" >&6
3815 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3816 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3817 if test "${lt_cv_deplibs_check_method+set}" = set; then
3818 echo $ECHO_N "(cached) $ECHO_C" >&6
3819 else
3820 lt_cv_file_magic_cmd='$MAGIC_CMD'
3821 lt_cv_file_magic_test_file=
3822 lt_cv_deplibs_check_method='unknown'
3823 # Need to set the preceding variable on all platforms that support
3824 # interlibrary dependencies.
3825 # 'none' -- dependencies not supported.
3826 # `unknown' -- same as none, but documents that we really don't know.
3827 # 'pass_all' -- all dependencies passed with no checks.
3828 # 'test_compile' -- check by making test program.
3829 # 'file_magic [[regex]]' -- check by looking for files in library path
3830 # which responds to the $file_magic_cmd with a given extended regex.
3831 # If you have `file' or equivalent on your system and you're not sure
3832 # whether `pass_all' will *always* work, you probably want this one.
3834 case $host_os in
3835 aix4* | aix5*)
3836 lt_cv_deplibs_check_method=pass_all
3839 beos*)
3840 lt_cv_deplibs_check_method=pass_all
3843 bsdi[45]*)
3844 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3845 lt_cv_file_magic_cmd='/usr/bin/file -L'
3846 lt_cv_file_magic_test_file=/shlib/libc.so
3849 cygwin*)
3850 # func_win32_libid is a shell function defined in ltmain.sh
3851 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3852 lt_cv_file_magic_cmd='func_win32_libid'
3855 mingw* | pw32*)
3856 # Base MSYS/MinGW do not provide the 'file' command needed by
3857 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3858 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3859 lt_cv_file_magic_cmd='$OBJDUMP -f'
3862 darwin* | rhapsody*)
3863 lt_cv_deplibs_check_method=pass_all
3866 freebsd* | kfreebsd*-gnu | dragonfly*)
3867 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3868 case $host_cpu in
3869 i*86 )
3870 # Not sure whether the presence of OpenBSD here was a mistake.
3871 # Let's accept both of them until this is cleared up.
3872 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3873 lt_cv_file_magic_cmd=/usr/bin/file
3874 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3876 esac
3877 else
3878 lt_cv_deplibs_check_method=pass_all
3882 gnu*)
3883 lt_cv_deplibs_check_method=pass_all
3886 hpux10.20* | hpux11*)
3887 lt_cv_file_magic_cmd=/usr/bin/file
3888 case $host_cpu in
3889 ia64*)
3890 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3891 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3893 hppa*64*)
3894 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]'
3895 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3898 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3899 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3901 esac
3904 interix3*)
3905 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3906 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3909 irix5* | irix6* | nonstopux*)
3910 case $LD in
3911 *-32|*"-32 ") libmagic=32-bit;;
3912 *-n32|*"-n32 ") libmagic=N32;;
3913 *-64|*"-64 ") libmagic=64-bit;;
3914 *) libmagic=never-match;;
3915 esac
3916 lt_cv_deplibs_check_method=pass_all
3919 # This must be Linux ELF.
3920 linux*)
3921 lt_cv_deplibs_check_method=pass_all
3924 netbsd*)
3925 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3926 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3927 else
3928 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3932 newos6*)
3933 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3934 lt_cv_file_magic_cmd=/usr/bin/file
3935 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3938 nto-qnx*)
3939 lt_cv_deplibs_check_method=unknown
3942 openbsd*)
3943 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3944 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3945 else
3946 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3950 osf3* | osf4* | osf5*)
3951 lt_cv_deplibs_check_method=pass_all
3954 solaris*)
3955 lt_cv_deplibs_check_method=pass_all
3958 sysv4 | sysv4.3*)
3959 case $host_vendor in
3960 motorola)
3961 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]'
3962 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3964 ncr)
3965 lt_cv_deplibs_check_method=pass_all
3967 sequent)
3968 lt_cv_file_magic_cmd='/bin/file'
3969 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3971 sni)
3972 lt_cv_file_magic_cmd='/bin/file'
3973 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3974 lt_cv_file_magic_test_file=/lib/libc.so
3976 siemens)
3977 lt_cv_deplibs_check_method=pass_all
3980 lt_cv_deplibs_check_method=pass_all
3982 esac
3985 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3986 lt_cv_deplibs_check_method=pass_all
3988 esac
3991 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3992 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3993 file_magic_cmd=$lt_cv_file_magic_cmd
3994 deplibs_check_method=$lt_cv_deplibs_check_method
3995 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4000 # If no C compiler was specified, use CC.
4001 LTCC=${LTCC-"$CC"}
4003 # If no C compiler flags were specified, use CFLAGS.
4004 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4006 # Allow CC to be a program name with arguments.
4007 compiler=$CC
4010 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4011 if test "${enable_libtool_lock+set}" = set; then
4012 enableval="$enable_libtool_lock"
4015 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4017 # Some flags need to be propagated to the compiler or linker for good
4018 # libtool support.
4019 case $host in
4020 ia64-*-hpux*)
4021 # Find out which ABI we are using.
4022 echo 'int i;' > conftest.$ac_ext
4023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4024 (eval $ac_compile) 2>&5
4025 ac_status=$?
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); }; then
4028 case `/usr/bin/file conftest.$ac_objext` in
4029 *ELF-32*)
4030 HPUX_IA64_MODE="32"
4032 *ELF-64*)
4033 HPUX_IA64_MODE="64"
4035 esac
4037 rm -rf conftest*
4039 *-*-irix6*)
4040 # Find out which ABI we are using.
4041 echo '#line 4041 "configure"' > conftest.$ac_ext
4042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4043 (eval $ac_compile) 2>&5
4044 ac_status=$?
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); }; then
4047 if test "$lt_cv_prog_gnu_ld" = yes; then
4048 case `/usr/bin/file conftest.$ac_objext` in
4049 *32-bit*)
4050 LD="${LD-ld} -melf32bsmip"
4052 *N32*)
4053 LD="${LD-ld} -melf32bmipn32"
4055 *64-bit*)
4056 LD="${LD-ld} -melf64bmip"
4058 esac
4059 else
4060 case `/usr/bin/file conftest.$ac_objext` in
4061 *32-bit*)
4062 LD="${LD-ld} -32"
4064 *N32*)
4065 LD="${LD-ld} -n32"
4067 *64-bit*)
4068 LD="${LD-ld} -64"
4070 esac
4073 rm -rf conftest*
4076 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4077 # Find out which ABI we are using.
4078 echo 'int i;' > conftest.$ac_ext
4079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4080 (eval $ac_compile) 2>&5
4081 ac_status=$?
4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083 (exit $ac_status); }; then
4084 case `/usr/bin/file conftest.o` in
4085 *32-bit*)
4086 case $host in
4087 x86_64-*linux*)
4088 LD="${LD-ld} -m elf_i386"
4090 ppc64-*linux*|powerpc64-*linux*)
4091 LD="${LD-ld} -m elf32ppclinux"
4093 s390x-*linux*)
4094 LD="${LD-ld} -m elf_s390"
4096 sparc64-*linux*)
4097 LD="${LD-ld} -m elf32_sparc"
4099 esac
4101 *64-bit*)
4102 case $host in
4103 x86_64-*linux*)
4104 LD="${LD-ld} -m elf_x86_64"
4106 ppc*-*linux*|powerpc*-*linux*)
4107 LD="${LD-ld} -m elf64ppc"
4109 s390*-*linux*)
4110 LD="${LD-ld} -m elf64_s390"
4112 sparc*-*linux*)
4113 LD="${LD-ld} -m elf64_sparc"
4115 esac
4117 esac
4119 rm -rf conftest*
4122 *-*-sco3.2v5*)
4123 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4124 SAVE_CFLAGS="$CFLAGS"
4125 CFLAGS="$CFLAGS -belf"
4126 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4127 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4128 if test "${lt_cv_cc_needs_belf+set}" = set; then
4129 echo $ECHO_N "(cached) $ECHO_C" >&6
4130 else
4131 ac_ext=c
4132 ac_cpp='$CPP $CPPFLAGS'
4133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4137 cat >conftest.$ac_ext <<_ACEOF
4138 /* confdefs.h. */
4139 _ACEOF
4140 cat confdefs.h >>conftest.$ac_ext
4141 cat >>conftest.$ac_ext <<_ACEOF
4142 /* end confdefs.h. */
4145 main ()
4149 return 0;
4151 _ACEOF
4152 rm -f conftest.$ac_objext conftest$ac_exeext
4153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4154 (eval $ac_link) 2>conftest.er1
4155 ac_status=$?
4156 grep -v '^ *+' conftest.er1 >conftest.err
4157 rm -f conftest.er1
4158 cat conftest.err >&5
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); } &&
4161 { ac_try='test -z "$ac_c_werror_flag"
4162 || test ! -s conftest.err'
4163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4164 (eval $ac_try) 2>&5
4165 ac_status=$?
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); }; } &&
4168 { ac_try='test -s conftest$ac_exeext'
4169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4170 (eval $ac_try) 2>&5
4171 ac_status=$?
4172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173 (exit $ac_status); }; }; then
4174 lt_cv_cc_needs_belf=yes
4175 else
4176 echo "$as_me: failed program was:" >&5
4177 sed 's/^/| /' conftest.$ac_ext >&5
4179 lt_cv_cc_needs_belf=no
4181 rm -f conftest.err conftest.$ac_objext \
4182 conftest$ac_exeext conftest.$ac_ext
4183 ac_ext=c
4184 ac_cpp='$CPP $CPPFLAGS'
4185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4190 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4191 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4192 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4193 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4194 CFLAGS="$SAVE_CFLAGS"
4197 sparc*-*solaris*)
4198 # Find out which ABI we are using.
4199 echo 'int i;' > conftest.$ac_ext
4200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4201 (eval $ac_compile) 2>&5
4202 ac_status=$?
4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204 (exit $ac_status); }; then
4205 case `/usr/bin/file conftest.o` in
4206 *64-bit*)
4207 case $lt_cv_prog_gnu_ld in
4208 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4209 *) LD="${LD-ld} -64" ;;
4210 esac
4212 esac
4214 rm -rf conftest*
4218 esac
4220 need_locks="$enable_libtool_lock"
4223 ac_ext=c
4224 ac_cpp='$CPP $CPPFLAGS'
4225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4228 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4229 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4230 # On Suns, sometimes $CPP names a directory.
4231 if test -n "$CPP" && test -d "$CPP"; then
4232 CPP=
4234 if test -z "$CPP"; then
4235 if test "${ac_cv_prog_CPP+set}" = set; then
4236 echo $ECHO_N "(cached) $ECHO_C" >&6
4237 else
4238 # Double quotes because CPP needs to be expanded
4239 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4241 ac_preproc_ok=false
4242 for ac_c_preproc_warn_flag in '' yes
4244 # Use a header file that comes with gcc, so configuring glibc
4245 # with a fresh cross-compiler works.
4246 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4247 # <limits.h> exists even on freestanding compilers.
4248 # On the NeXT, cc -E runs the code through the compiler's parser,
4249 # not just through cpp. "Syntax error" is here to catch this case.
4250 cat >conftest.$ac_ext <<_ACEOF
4251 /* confdefs.h. */
4252 _ACEOF
4253 cat confdefs.h >>conftest.$ac_ext
4254 cat >>conftest.$ac_ext <<_ACEOF
4255 /* end confdefs.h. */
4256 #ifdef __STDC__
4257 # include <limits.h>
4258 #else
4259 # include <assert.h>
4260 #endif
4261 Syntax error
4262 _ACEOF
4263 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4264 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4265 ac_status=$?
4266 grep -v '^ *+' conftest.er1 >conftest.err
4267 rm -f conftest.er1
4268 cat conftest.err >&5
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); } >/dev/null; then
4271 if test -s conftest.err; then
4272 ac_cpp_err=$ac_c_preproc_warn_flag
4273 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4274 else
4275 ac_cpp_err=
4277 else
4278 ac_cpp_err=yes
4280 if test -z "$ac_cpp_err"; then
4282 else
4283 echo "$as_me: failed program was:" >&5
4284 sed 's/^/| /' conftest.$ac_ext >&5
4286 # Broken: fails on valid input.
4287 continue
4289 rm -f conftest.err conftest.$ac_ext
4291 # OK, works on sane cases. Now check whether non-existent headers
4292 # can be detected and how.
4293 cat >conftest.$ac_ext <<_ACEOF
4294 /* confdefs.h. */
4295 _ACEOF
4296 cat confdefs.h >>conftest.$ac_ext
4297 cat >>conftest.$ac_ext <<_ACEOF
4298 /* end confdefs.h. */
4299 #include <ac_nonexistent.h>
4300 _ACEOF
4301 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4302 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4303 ac_status=$?
4304 grep -v '^ *+' conftest.er1 >conftest.err
4305 rm -f conftest.er1
4306 cat conftest.err >&5
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); } >/dev/null; then
4309 if test -s conftest.err; then
4310 ac_cpp_err=$ac_c_preproc_warn_flag
4311 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4312 else
4313 ac_cpp_err=
4315 else
4316 ac_cpp_err=yes
4318 if test -z "$ac_cpp_err"; then
4319 # Broken: success on invalid input.
4320 continue
4321 else
4322 echo "$as_me: failed program was:" >&5
4323 sed 's/^/| /' conftest.$ac_ext >&5
4325 # Passes both tests.
4326 ac_preproc_ok=:
4327 break
4329 rm -f conftest.err conftest.$ac_ext
4331 done
4332 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4333 rm -f conftest.err conftest.$ac_ext
4334 if $ac_preproc_ok; then
4335 break
4338 done
4339 ac_cv_prog_CPP=$CPP
4342 CPP=$ac_cv_prog_CPP
4343 else
4344 ac_cv_prog_CPP=$CPP
4346 echo "$as_me:$LINENO: result: $CPP" >&5
4347 echo "${ECHO_T}$CPP" >&6
4348 ac_preproc_ok=false
4349 for ac_c_preproc_warn_flag in '' yes
4351 # Use a header file that comes with gcc, so configuring glibc
4352 # with a fresh cross-compiler works.
4353 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4354 # <limits.h> exists even on freestanding compilers.
4355 # On the NeXT, cc -E runs the code through the compiler's parser,
4356 # not just through cpp. "Syntax error" is here to catch this case.
4357 cat >conftest.$ac_ext <<_ACEOF
4358 /* confdefs.h. */
4359 _ACEOF
4360 cat confdefs.h >>conftest.$ac_ext
4361 cat >>conftest.$ac_ext <<_ACEOF
4362 /* end confdefs.h. */
4363 #ifdef __STDC__
4364 # include <limits.h>
4365 #else
4366 # include <assert.h>
4367 #endif
4368 Syntax error
4369 _ACEOF
4370 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4371 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4372 ac_status=$?
4373 grep -v '^ *+' conftest.er1 >conftest.err
4374 rm -f conftest.er1
4375 cat conftest.err >&5
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); } >/dev/null; then
4378 if test -s conftest.err; then
4379 ac_cpp_err=$ac_c_preproc_warn_flag
4380 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4381 else
4382 ac_cpp_err=
4384 else
4385 ac_cpp_err=yes
4387 if test -z "$ac_cpp_err"; then
4389 else
4390 echo "$as_me: failed program was:" >&5
4391 sed 's/^/| /' conftest.$ac_ext >&5
4393 # Broken: fails on valid input.
4394 continue
4396 rm -f conftest.err conftest.$ac_ext
4398 # OK, works on sane cases. Now check whether non-existent headers
4399 # can be detected and how.
4400 cat >conftest.$ac_ext <<_ACEOF
4401 /* confdefs.h. */
4402 _ACEOF
4403 cat confdefs.h >>conftest.$ac_ext
4404 cat >>conftest.$ac_ext <<_ACEOF
4405 /* end confdefs.h. */
4406 #include <ac_nonexistent.h>
4407 _ACEOF
4408 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4409 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4410 ac_status=$?
4411 grep -v '^ *+' conftest.er1 >conftest.err
4412 rm -f conftest.er1
4413 cat conftest.err >&5
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); } >/dev/null; then
4416 if test -s conftest.err; then
4417 ac_cpp_err=$ac_c_preproc_warn_flag
4418 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4419 else
4420 ac_cpp_err=
4422 else
4423 ac_cpp_err=yes
4425 if test -z "$ac_cpp_err"; then
4426 # Broken: success on invalid input.
4427 continue
4428 else
4429 echo "$as_me: failed program was:" >&5
4430 sed 's/^/| /' conftest.$ac_ext >&5
4432 # Passes both tests.
4433 ac_preproc_ok=:
4434 break
4436 rm -f conftest.err conftest.$ac_ext
4438 done
4439 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4440 rm -f conftest.err conftest.$ac_ext
4441 if $ac_preproc_ok; then
4443 else
4444 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4445 See \`config.log' for more details." >&5
4446 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4447 See \`config.log' for more details." >&2;}
4448 { (exit 1); exit 1; }; }
4451 ac_ext=c
4452 ac_cpp='$CPP $CPPFLAGS'
4453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4458 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4459 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4460 if test "${ac_cv_header_stdc+set}" = set; then
4461 echo $ECHO_N "(cached) $ECHO_C" >&6
4462 else
4463 cat >conftest.$ac_ext <<_ACEOF
4464 /* confdefs.h. */
4465 _ACEOF
4466 cat confdefs.h >>conftest.$ac_ext
4467 cat >>conftest.$ac_ext <<_ACEOF
4468 /* end confdefs.h. */
4469 #include <stdlib.h>
4470 #include <stdarg.h>
4471 #include <string.h>
4472 #include <float.h>
4475 main ()
4479 return 0;
4481 _ACEOF
4482 rm -f conftest.$ac_objext
4483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4484 (eval $ac_compile) 2>conftest.er1
4485 ac_status=$?
4486 grep -v '^ *+' conftest.er1 >conftest.err
4487 rm -f conftest.er1
4488 cat conftest.err >&5
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); } &&
4491 { ac_try='test -z "$ac_c_werror_flag"
4492 || test ! -s conftest.err'
4493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4494 (eval $ac_try) 2>&5
4495 ac_status=$?
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); }; } &&
4498 { ac_try='test -s conftest.$ac_objext'
4499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4500 (eval $ac_try) 2>&5
4501 ac_status=$?
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); }; }; then
4504 ac_cv_header_stdc=yes
4505 else
4506 echo "$as_me: failed program was:" >&5
4507 sed 's/^/| /' conftest.$ac_ext >&5
4509 ac_cv_header_stdc=no
4511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4513 if test $ac_cv_header_stdc = yes; then
4514 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4515 cat >conftest.$ac_ext <<_ACEOF
4516 /* confdefs.h. */
4517 _ACEOF
4518 cat confdefs.h >>conftest.$ac_ext
4519 cat >>conftest.$ac_ext <<_ACEOF
4520 /* end confdefs.h. */
4521 #include <string.h>
4523 _ACEOF
4524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4525 $EGREP "memchr" >/dev/null 2>&1; then
4527 else
4528 ac_cv_header_stdc=no
4530 rm -f conftest*
4534 if test $ac_cv_header_stdc = yes; then
4535 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4536 cat >conftest.$ac_ext <<_ACEOF
4537 /* confdefs.h. */
4538 _ACEOF
4539 cat confdefs.h >>conftest.$ac_ext
4540 cat >>conftest.$ac_ext <<_ACEOF
4541 /* end confdefs.h. */
4542 #include <stdlib.h>
4544 _ACEOF
4545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4546 $EGREP "free" >/dev/null 2>&1; then
4548 else
4549 ac_cv_header_stdc=no
4551 rm -f conftest*
4555 if test $ac_cv_header_stdc = yes; then
4556 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4557 if test "$cross_compiling" = yes; then
4559 else
4560 cat >conftest.$ac_ext <<_ACEOF
4561 /* confdefs.h. */
4562 _ACEOF
4563 cat confdefs.h >>conftest.$ac_ext
4564 cat >>conftest.$ac_ext <<_ACEOF
4565 /* end confdefs.h. */
4566 #include <ctype.h>
4567 #if ((' ' & 0x0FF) == 0x020)
4568 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4569 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4570 #else
4571 # define ISLOWER(c) \
4572 (('a' <= (c) && (c) <= 'i') \
4573 || ('j' <= (c) && (c) <= 'r') \
4574 || ('s' <= (c) && (c) <= 'z'))
4575 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4576 #endif
4578 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4580 main ()
4582 int i;
4583 for (i = 0; i < 256; i++)
4584 if (XOR (islower (i), ISLOWER (i))
4585 || toupper (i) != TOUPPER (i))
4586 exit(2);
4587 exit (0);
4589 _ACEOF
4590 rm -f conftest$ac_exeext
4591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4592 (eval $ac_link) 2>&5
4593 ac_status=$?
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4597 (eval $ac_try) 2>&5
4598 ac_status=$?
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); }; }; then
4602 else
4603 echo "$as_me: program exited with status $ac_status" >&5
4604 echo "$as_me: failed program was:" >&5
4605 sed 's/^/| /' conftest.$ac_ext >&5
4607 ( exit $ac_status )
4608 ac_cv_header_stdc=no
4610 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4614 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4615 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4616 if test $ac_cv_header_stdc = yes; then
4618 cat >>confdefs.h <<\_ACEOF
4619 #define STDC_HEADERS 1
4620 _ACEOF
4624 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4634 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4635 inttypes.h stdint.h unistd.h
4637 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4638 echo "$as_me:$LINENO: checking for $ac_header" >&5
4639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4640 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4641 echo $ECHO_N "(cached) $ECHO_C" >&6
4642 else
4643 cat >conftest.$ac_ext <<_ACEOF
4644 /* confdefs.h. */
4645 _ACEOF
4646 cat confdefs.h >>conftest.$ac_ext
4647 cat >>conftest.$ac_ext <<_ACEOF
4648 /* end confdefs.h. */
4649 $ac_includes_default
4651 #include <$ac_header>
4652 _ACEOF
4653 rm -f conftest.$ac_objext
4654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4655 (eval $ac_compile) 2>conftest.er1
4656 ac_status=$?
4657 grep -v '^ *+' conftest.er1 >conftest.err
4658 rm -f conftest.er1
4659 cat conftest.err >&5
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); } &&
4662 { ac_try='test -z "$ac_c_werror_flag"
4663 || test ! -s conftest.err'
4664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4665 (eval $ac_try) 2>&5
4666 ac_status=$?
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); }; } &&
4669 { ac_try='test -s conftest.$ac_objext'
4670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4671 (eval $ac_try) 2>&5
4672 ac_status=$?
4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); }; }; then
4675 eval "$as_ac_Header=yes"
4676 else
4677 echo "$as_me: failed program was:" >&5
4678 sed 's/^/| /' conftest.$ac_ext >&5
4680 eval "$as_ac_Header=no"
4682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4685 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4686 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4687 cat >>confdefs.h <<_ACEOF
4688 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4689 _ACEOF
4693 done
4697 for ac_header in dlfcn.h
4699 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4701 echo "$as_me:$LINENO: checking for $ac_header" >&5
4702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4704 echo $ECHO_N "(cached) $ECHO_C" >&6
4706 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4707 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4708 else
4709 # Is the header compilable?
4710 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4711 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4712 cat >conftest.$ac_ext <<_ACEOF
4713 /* confdefs.h. */
4714 _ACEOF
4715 cat confdefs.h >>conftest.$ac_ext
4716 cat >>conftest.$ac_ext <<_ACEOF
4717 /* end confdefs.h. */
4718 $ac_includes_default
4719 #include <$ac_header>
4720 _ACEOF
4721 rm -f conftest.$ac_objext
4722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4723 (eval $ac_compile) 2>conftest.er1
4724 ac_status=$?
4725 grep -v '^ *+' conftest.er1 >conftest.err
4726 rm -f conftest.er1
4727 cat conftest.err >&5
4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); } &&
4730 { ac_try='test -z "$ac_c_werror_flag"
4731 || test ! -s conftest.err'
4732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4733 (eval $ac_try) 2>&5
4734 ac_status=$?
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); }; } &&
4737 { ac_try='test -s conftest.$ac_objext'
4738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4739 (eval $ac_try) 2>&5
4740 ac_status=$?
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); }; }; then
4743 ac_header_compiler=yes
4744 else
4745 echo "$as_me: failed program was:" >&5
4746 sed 's/^/| /' conftest.$ac_ext >&5
4748 ac_header_compiler=no
4750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4751 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4752 echo "${ECHO_T}$ac_header_compiler" >&6
4754 # Is the header present?
4755 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4756 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4757 cat >conftest.$ac_ext <<_ACEOF
4758 /* confdefs.h. */
4759 _ACEOF
4760 cat confdefs.h >>conftest.$ac_ext
4761 cat >>conftest.$ac_ext <<_ACEOF
4762 /* end confdefs.h. */
4763 #include <$ac_header>
4764 _ACEOF
4765 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4766 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4767 ac_status=$?
4768 grep -v '^ *+' conftest.er1 >conftest.err
4769 rm -f conftest.er1
4770 cat conftest.err >&5
4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); } >/dev/null; then
4773 if test -s conftest.err; then
4774 ac_cpp_err=$ac_c_preproc_warn_flag
4775 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4776 else
4777 ac_cpp_err=
4779 else
4780 ac_cpp_err=yes
4782 if test -z "$ac_cpp_err"; then
4783 ac_header_preproc=yes
4784 else
4785 echo "$as_me: failed program was:" >&5
4786 sed 's/^/| /' conftest.$ac_ext >&5
4788 ac_header_preproc=no
4790 rm -f conftest.err conftest.$ac_ext
4791 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4792 echo "${ECHO_T}$ac_header_preproc" >&6
4794 # So? What about this header?
4795 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4796 yes:no: )
4797 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4798 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4800 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4801 ac_header_preproc=yes
4803 no:yes:* )
4804 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4805 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4806 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4807 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4808 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4809 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4810 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4811 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4813 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4814 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4815 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4817 cat <<\_ASBOX
4818 ## -------------------------------------------- ##
4819 ## Report this to http://www.mangosproject.org/ ##
4820 ## -------------------------------------------- ##
4821 _ASBOX
4823 sed "s/^/$as_me: WARNING: /" >&2
4825 esac
4826 echo "$as_me:$LINENO: checking for $ac_header" >&5
4827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4828 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4829 echo $ECHO_N "(cached) $ECHO_C" >&6
4830 else
4831 eval "$as_ac_Header=\$ac_header_preproc"
4833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4834 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4837 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4838 cat >>confdefs.h <<_ACEOF
4839 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4840 _ACEOF
4844 done
4848 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4849 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4850 (test "X$CXX" != "Xg++"))) ; then
4851 ac_ext=cc
4852 ac_cpp='$CXXCPP $CPPFLAGS'
4853 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4854 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4855 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4856 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4857 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4858 if test -z "$CXXCPP"; then
4859 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4860 echo $ECHO_N "(cached) $ECHO_C" >&6
4861 else
4862 # Double quotes because CXXCPP needs to be expanded
4863 for CXXCPP in "$CXX -E" "/lib/cpp"
4865 ac_preproc_ok=false
4866 for ac_cxx_preproc_warn_flag in '' yes
4868 # Use a header file that comes with gcc, so configuring glibc
4869 # with a fresh cross-compiler works.
4870 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4871 # <limits.h> exists even on freestanding compilers.
4872 # On the NeXT, cc -E runs the code through the compiler's parser,
4873 # not just through cpp. "Syntax error" is here to catch this case.
4874 cat >conftest.$ac_ext <<_ACEOF
4875 /* confdefs.h. */
4876 _ACEOF
4877 cat confdefs.h >>conftest.$ac_ext
4878 cat >>conftest.$ac_ext <<_ACEOF
4879 /* end confdefs.h. */
4880 #ifdef __STDC__
4881 # include <limits.h>
4882 #else
4883 # include <assert.h>
4884 #endif
4885 Syntax error
4886 _ACEOF
4887 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4888 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4889 ac_status=$?
4890 grep -v '^ *+' conftest.er1 >conftest.err
4891 rm -f conftest.er1
4892 cat conftest.err >&5
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); } >/dev/null; then
4895 if test -s conftest.err; then
4896 ac_cpp_err=$ac_cxx_preproc_warn_flag
4897 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4898 else
4899 ac_cpp_err=
4901 else
4902 ac_cpp_err=yes
4904 if test -z "$ac_cpp_err"; then
4906 else
4907 echo "$as_me: failed program was:" >&5
4908 sed 's/^/| /' conftest.$ac_ext >&5
4910 # Broken: fails on valid input.
4911 continue
4913 rm -f conftest.err conftest.$ac_ext
4915 # OK, works on sane cases. Now check whether non-existent headers
4916 # can be detected and how.
4917 cat >conftest.$ac_ext <<_ACEOF
4918 /* confdefs.h. */
4919 _ACEOF
4920 cat confdefs.h >>conftest.$ac_ext
4921 cat >>conftest.$ac_ext <<_ACEOF
4922 /* end confdefs.h. */
4923 #include <ac_nonexistent.h>
4924 _ACEOF
4925 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4926 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4927 ac_status=$?
4928 grep -v '^ *+' conftest.er1 >conftest.err
4929 rm -f conftest.er1
4930 cat conftest.err >&5
4931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932 (exit $ac_status); } >/dev/null; then
4933 if test -s conftest.err; then
4934 ac_cpp_err=$ac_cxx_preproc_warn_flag
4935 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4936 else
4937 ac_cpp_err=
4939 else
4940 ac_cpp_err=yes
4942 if test -z "$ac_cpp_err"; then
4943 # Broken: success on invalid input.
4944 continue
4945 else
4946 echo "$as_me: failed program was:" >&5
4947 sed 's/^/| /' conftest.$ac_ext >&5
4949 # Passes both tests.
4950 ac_preproc_ok=:
4951 break
4953 rm -f conftest.err conftest.$ac_ext
4955 done
4956 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4957 rm -f conftest.err conftest.$ac_ext
4958 if $ac_preproc_ok; then
4959 break
4962 done
4963 ac_cv_prog_CXXCPP=$CXXCPP
4966 CXXCPP=$ac_cv_prog_CXXCPP
4967 else
4968 ac_cv_prog_CXXCPP=$CXXCPP
4970 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4971 echo "${ECHO_T}$CXXCPP" >&6
4972 ac_preproc_ok=false
4973 for ac_cxx_preproc_warn_flag in '' yes
4975 # Use a header file that comes with gcc, so configuring glibc
4976 # with a fresh cross-compiler works.
4977 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4978 # <limits.h> exists even on freestanding compilers.
4979 # On the NeXT, cc -E runs the code through the compiler's parser,
4980 # not just through cpp. "Syntax error" is here to catch this case.
4981 cat >conftest.$ac_ext <<_ACEOF
4982 /* confdefs.h. */
4983 _ACEOF
4984 cat confdefs.h >>conftest.$ac_ext
4985 cat >>conftest.$ac_ext <<_ACEOF
4986 /* end confdefs.h. */
4987 #ifdef __STDC__
4988 # include <limits.h>
4989 #else
4990 # include <assert.h>
4991 #endif
4992 Syntax error
4993 _ACEOF
4994 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4995 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4996 ac_status=$?
4997 grep -v '^ *+' conftest.er1 >conftest.err
4998 rm -f conftest.er1
4999 cat conftest.err >&5
5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); } >/dev/null; then
5002 if test -s conftest.err; then
5003 ac_cpp_err=$ac_cxx_preproc_warn_flag
5004 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5005 else
5006 ac_cpp_err=
5008 else
5009 ac_cpp_err=yes
5011 if test -z "$ac_cpp_err"; then
5013 else
5014 echo "$as_me: failed program was:" >&5
5015 sed 's/^/| /' conftest.$ac_ext >&5
5017 # Broken: fails on valid input.
5018 continue
5020 rm -f conftest.err conftest.$ac_ext
5022 # OK, works on sane cases. Now check whether non-existent headers
5023 # can be detected and how.
5024 cat >conftest.$ac_ext <<_ACEOF
5025 /* confdefs.h. */
5026 _ACEOF
5027 cat confdefs.h >>conftest.$ac_ext
5028 cat >>conftest.$ac_ext <<_ACEOF
5029 /* end confdefs.h. */
5030 #include <ac_nonexistent.h>
5031 _ACEOF
5032 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5033 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5034 ac_status=$?
5035 grep -v '^ *+' conftest.er1 >conftest.err
5036 rm -f conftest.er1
5037 cat conftest.err >&5
5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 (exit $ac_status); } >/dev/null; then
5040 if test -s conftest.err; then
5041 ac_cpp_err=$ac_cxx_preproc_warn_flag
5042 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5043 else
5044 ac_cpp_err=
5046 else
5047 ac_cpp_err=yes
5049 if test -z "$ac_cpp_err"; then
5050 # Broken: success on invalid input.
5051 continue
5052 else
5053 echo "$as_me: failed program was:" >&5
5054 sed 's/^/| /' conftest.$ac_ext >&5
5056 # Passes both tests.
5057 ac_preproc_ok=:
5058 break
5060 rm -f conftest.err conftest.$ac_ext
5062 done
5063 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5064 rm -f conftest.err conftest.$ac_ext
5065 if $ac_preproc_ok; then
5067 else
5068 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5069 See \`config.log' for more details." >&5
5070 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5071 See \`config.log' for more details." >&2;}
5072 { (exit 1); exit 1; }; }
5075 ac_ext=cc
5076 ac_cpp='$CXXCPP $CPPFLAGS'
5077 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5078 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5079 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5084 ac_ext=f
5085 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5086 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5087 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5088 if test -n "$ac_tool_prefix"; then
5089 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5091 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5092 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5093 echo "$as_me:$LINENO: checking for $ac_word" >&5
5094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5095 if test "${ac_cv_prog_F77+set}" = set; then
5096 echo $ECHO_N "(cached) $ECHO_C" >&6
5097 else
5098 if test -n "$F77"; then
5099 ac_cv_prog_F77="$F77" # Let the user override the test.
5100 else
5101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102 for as_dir in $PATH
5104 IFS=$as_save_IFS
5105 test -z "$as_dir" && as_dir=.
5106 for ac_exec_ext in '' $ac_executable_extensions; do
5107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5108 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5110 break 2
5112 done
5113 done
5117 F77=$ac_cv_prog_F77
5118 if test -n "$F77"; then
5119 echo "$as_me:$LINENO: result: $F77" >&5
5120 echo "${ECHO_T}$F77" >&6
5121 else
5122 echo "$as_me:$LINENO: result: no" >&5
5123 echo "${ECHO_T}no" >&6
5126 test -n "$F77" && break
5127 done
5129 if test -z "$F77"; then
5130 ac_ct_F77=$F77
5131 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5133 # Extract the first word of "$ac_prog", so it can be a program name with args.
5134 set dummy $ac_prog; ac_word=$2
5135 echo "$as_me:$LINENO: checking for $ac_word" >&5
5136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5137 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5138 echo $ECHO_N "(cached) $ECHO_C" >&6
5139 else
5140 if test -n "$ac_ct_F77"; then
5141 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5142 else
5143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5144 for as_dir in $PATH
5146 IFS=$as_save_IFS
5147 test -z "$as_dir" && as_dir=.
5148 for ac_exec_ext in '' $ac_executable_extensions; do
5149 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5150 ac_cv_prog_ac_ct_F77="$ac_prog"
5151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5152 break 2
5154 done
5155 done
5159 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5160 if test -n "$ac_ct_F77"; then
5161 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5162 echo "${ECHO_T}$ac_ct_F77" >&6
5163 else
5164 echo "$as_me:$LINENO: result: no" >&5
5165 echo "${ECHO_T}no" >&6
5168 test -n "$ac_ct_F77" && break
5169 done
5171 F77=$ac_ct_F77
5175 # Provide some information about the compiler.
5176 echo "$as_me:5176:" \
5177 "checking for Fortran 77 compiler version" >&5
5178 ac_compiler=`set X $ac_compile; echo $2`
5179 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5180 (eval $ac_compiler --version </dev/null >&5) 2>&5
5181 ac_status=$?
5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183 (exit $ac_status); }
5184 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5185 (eval $ac_compiler -v </dev/null >&5) 2>&5
5186 ac_status=$?
5187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188 (exit $ac_status); }
5189 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5190 (eval $ac_compiler -V </dev/null >&5) 2>&5
5191 ac_status=$?
5192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193 (exit $ac_status); }
5194 rm -f a.out
5196 # If we don't use `.F' as extension, the preprocessor is not run on the
5197 # input file. (Note that this only needs to work for GNU compilers.)
5198 ac_save_ext=$ac_ext
5199 ac_ext=F
5200 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5201 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5202 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5203 echo $ECHO_N "(cached) $ECHO_C" >&6
5204 else
5205 cat >conftest.$ac_ext <<_ACEOF
5206 program main
5207 #ifndef __GNUC__
5208 choke me
5209 #endif
5212 _ACEOF
5213 rm -f conftest.$ac_objext
5214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5215 (eval $ac_compile) 2>conftest.er1
5216 ac_status=$?
5217 grep -v '^ *+' conftest.er1 >conftest.err
5218 rm -f conftest.er1
5219 cat conftest.err >&5
5220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221 (exit $ac_status); } &&
5222 { ac_try='test -z "$ac_f77_werror_flag"
5223 || test ! -s conftest.err'
5224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5225 (eval $ac_try) 2>&5
5226 ac_status=$?
5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228 (exit $ac_status); }; } &&
5229 { ac_try='test -s conftest.$ac_objext'
5230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5231 (eval $ac_try) 2>&5
5232 ac_status=$?
5233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234 (exit $ac_status); }; }; then
5235 ac_compiler_gnu=yes
5236 else
5237 echo "$as_me: failed program was:" >&5
5238 sed 's/^/| /' conftest.$ac_ext >&5
5240 ac_compiler_gnu=no
5242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5243 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5246 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5247 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5248 ac_ext=$ac_save_ext
5249 ac_test_FFLAGS=${FFLAGS+set}
5250 ac_save_FFLAGS=$FFLAGS
5251 FFLAGS=
5252 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5253 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5254 if test "${ac_cv_prog_f77_g+set}" = set; then
5255 echo $ECHO_N "(cached) $ECHO_C" >&6
5256 else
5257 FFLAGS=-g
5258 cat >conftest.$ac_ext <<_ACEOF
5259 program main
5262 _ACEOF
5263 rm -f conftest.$ac_objext
5264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5265 (eval $ac_compile) 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); } &&
5272 { ac_try='test -z "$ac_f77_werror_flag"
5273 || test ! -s conftest.err'
5274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5275 (eval $ac_try) 2>&5
5276 ac_status=$?
5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278 (exit $ac_status); }; } &&
5279 { ac_try='test -s conftest.$ac_objext'
5280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5281 (eval $ac_try) 2>&5
5282 ac_status=$?
5283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284 (exit $ac_status); }; }; then
5285 ac_cv_prog_f77_g=yes
5286 else
5287 echo "$as_me: failed program was:" >&5
5288 sed 's/^/| /' conftest.$ac_ext >&5
5290 ac_cv_prog_f77_g=no
5292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5295 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5296 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5297 if test "$ac_test_FFLAGS" = set; then
5298 FFLAGS=$ac_save_FFLAGS
5299 elif test $ac_cv_prog_f77_g = yes; then
5300 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5301 FFLAGS="-g -O2"
5302 else
5303 FFLAGS="-g"
5305 else
5306 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5307 FFLAGS="-O2"
5308 else
5309 FFLAGS=
5313 G77=`test $ac_compiler_gnu = yes && echo yes`
5314 ac_ext=c
5315 ac_cpp='$CPP $CPPFLAGS'
5316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5322 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5324 # find the maximum length of command line arguments
5325 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5326 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5327 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5328 echo $ECHO_N "(cached) $ECHO_C" >&6
5329 else
5331 teststring="ABCD"
5333 case $build_os in
5334 msdosdjgpp*)
5335 # On DJGPP, this test can blow up pretty badly due to problems in libc
5336 # (any single argument exceeding 2000 bytes causes a buffer overrun
5337 # during glob expansion). Even if it were fixed, the result of this
5338 # check would be larger than it should be.
5339 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5342 gnu*)
5343 # Under GNU Hurd, this test is not required because there is
5344 # no limit to the length of command line arguments.
5345 # Libtool will interpret -1 as no limit whatsoever
5346 lt_cv_sys_max_cmd_len=-1;
5349 cygwin* | mingw*)
5350 # On Win9x/ME, this test blows up -- it succeeds, but takes
5351 # about 5 minutes as the teststring grows exponentially.
5352 # Worse, since 9x/ME are not pre-emptively multitasking,
5353 # you end up with a "frozen" computer, even though with patience
5354 # the test eventually succeeds (with a max line length of 256k).
5355 # Instead, let's just punt: use the minimum linelength reported by
5356 # all of the supported platforms: 8192 (on NT/2K/XP).
5357 lt_cv_sys_max_cmd_len=8192;
5360 amigaos*)
5361 # On AmigaOS with pdksh, this test takes hours, literally.
5362 # So we just punt and use a minimum line length of 8192.
5363 lt_cv_sys_max_cmd_len=8192;
5366 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5367 # This has been around since 386BSD, at least. Likely further.
5368 if test -x /sbin/sysctl; then
5369 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5370 elif test -x /usr/sbin/sysctl; then
5371 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5372 else
5373 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5375 # And add a safety zone
5376 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5377 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5380 interix*)
5381 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5382 lt_cv_sys_max_cmd_len=196608
5385 osf*)
5386 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5387 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5388 # nice to cause kernel panics so lets avoid the loop below.
5389 # First set a reasonable default.
5390 lt_cv_sys_max_cmd_len=16384
5392 if test -x /sbin/sysconfig; then
5393 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5394 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5395 esac
5398 sco3.2v5*)
5399 lt_cv_sys_max_cmd_len=102400
5401 sysv5* | sco5v6* | sysv4.2uw2*)
5402 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5403 if test -n "$kargmax"; then
5404 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5405 else
5406 lt_cv_sys_max_cmd_len=32768
5410 # If test is not a shell built-in, we'll probably end up computing a
5411 # maximum length that is only half of the actual maximum length, but
5412 # we can't tell.
5413 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5414 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5415 = "XX$teststring") >/dev/null 2>&1 &&
5416 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5417 lt_cv_sys_max_cmd_len=$new_result &&
5418 test $i != 17 # 1/2 MB should be enough
5420 i=`expr $i + 1`
5421 teststring=$teststring$teststring
5422 done
5423 teststring=
5424 # Add a significant safety factor because C++ compilers can tack on massive
5425 # amounts of additional arguments before passing them to the linker.
5426 # It appears as though 1/2 is a usable value.
5427 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5429 esac
5433 if test -n $lt_cv_sys_max_cmd_len ; then
5434 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5435 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5436 else
5437 echo "$as_me:$LINENO: result: none" >&5
5438 echo "${ECHO_T}none" >&6
5444 # Check for command to grab the raw symbol name followed by C symbol from nm.
5445 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5446 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5447 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5448 echo $ECHO_N "(cached) $ECHO_C" >&6
5449 else
5451 # These are sane defaults that work on at least a few old systems.
5452 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5454 # Character class describing NM global symbol codes.
5455 symcode='[BCDEGRST]'
5457 # Regexp to match symbols that can be accessed directly from C.
5458 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5460 # Transform an extracted symbol line into a proper C declaration
5461 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5463 # Transform an extracted symbol line into symbol name and symbol address
5464 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'"
5466 # Define system-specific variables.
5467 case $host_os in
5468 aix*)
5469 symcode='[BCDT]'
5471 cygwin* | mingw* | pw32*)
5472 symcode='[ABCDGISTW]'
5474 hpux*) # Its linker distinguishes data from code symbols
5475 if test "$host_cpu" = ia64; then
5476 symcode='[ABCDEGRST]'
5478 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5479 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'"
5481 linux*)
5482 if test "$host_cpu" = ia64; then
5483 symcode='[ABCDGIRSTW]'
5484 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5485 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'"
5488 irix* | nonstopux*)
5489 symcode='[BCDEGRST]'
5491 osf*)
5492 symcode='[BCDEGQRST]'
5494 solaris*)
5495 symcode='[BDRT]'
5497 sco3.2v5*)
5498 symcode='[DT]'
5500 sysv4.2uw2*)
5501 symcode='[DT]'
5503 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5504 symcode='[ABDT]'
5506 sysv4)
5507 symcode='[DFNSTU]'
5509 esac
5511 # Handle CRLF in mingw tool chain
5512 opt_cr=
5513 case $build_os in
5514 mingw*)
5515 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5517 esac
5519 # If we're using GNU nm, then use its standard symbol codes.
5520 case `$NM -V 2>&1` in
5521 *GNU* | *'with BFD'*)
5522 symcode='[ABCDGIRSTW]' ;;
5523 esac
5525 # Try without a prefix undercore, then with it.
5526 for ac_symprfx in "" "_"; do
5528 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5529 symxfrm="\\1 $ac_symprfx\\2 \\2"
5531 # Write the raw and C identifiers.
5532 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5534 # Check to see that the pipe works correctly.
5535 pipe_works=no
5537 rm -f conftest*
5538 cat > conftest.$ac_ext <<EOF
5539 #ifdef __cplusplus
5540 extern "C" {
5541 #endif
5542 char nm_test_var;
5543 void nm_test_func(){}
5544 #ifdef __cplusplus
5546 #endif
5547 int main(){nm_test_var='a';nm_test_func();return(0);}
5550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5551 (eval $ac_compile) 2>&5
5552 ac_status=$?
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); }; then
5555 # Now try to grab the symbols.
5556 nlist=conftest.nm
5557 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5558 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5559 ac_status=$?
5560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561 (exit $ac_status); } && test -s "$nlist"; then
5562 # Try sorting and uniquifying the output.
5563 if sort "$nlist" | uniq > "$nlist"T; then
5564 mv -f "$nlist"T "$nlist"
5565 else
5566 rm -f "$nlist"T
5569 # Make sure that we snagged all the symbols we need.
5570 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5571 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5572 cat <<EOF > conftest.$ac_ext
5573 #ifdef __cplusplus
5574 extern "C" {
5575 #endif
5578 # Now generate the symbol file.
5579 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5581 cat <<EOF >> conftest.$ac_ext
5582 #if defined (__STDC__) && __STDC__
5583 # define lt_ptr_t void *
5584 #else
5585 # define lt_ptr_t char *
5586 # define const
5587 #endif
5589 /* The mapping between symbol names and symbols. */
5590 const struct {
5591 const char *name;
5592 lt_ptr_t address;
5594 lt_preloaded_symbols[] =
5597 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5598 cat <<\EOF >> conftest.$ac_ext
5599 {0, (lt_ptr_t) 0}
5602 #ifdef __cplusplus
5604 #endif
5606 # Now try linking the two files.
5607 mv conftest.$ac_objext conftstm.$ac_objext
5608 lt_save_LIBS="$LIBS"
5609 lt_save_CFLAGS="$CFLAGS"
5610 LIBS="conftstm.$ac_objext"
5611 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5613 (eval $ac_link) 2>&5
5614 ac_status=$?
5615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5617 pipe_works=yes
5619 LIBS="$lt_save_LIBS"
5620 CFLAGS="$lt_save_CFLAGS"
5621 else
5622 echo "cannot find nm_test_func in $nlist" >&5
5624 else
5625 echo "cannot find nm_test_var in $nlist" >&5
5627 else
5628 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5630 else
5631 echo "$progname: failed program was:" >&5
5632 cat conftest.$ac_ext >&5
5634 rm -f conftest* conftst*
5636 # Do not use the global_symbol_pipe unless it works.
5637 if test "$pipe_works" = yes; then
5638 break
5639 else
5640 lt_cv_sys_global_symbol_pipe=
5642 done
5646 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5647 lt_cv_sys_global_symbol_to_cdecl=
5649 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5650 echo "$as_me:$LINENO: result: failed" >&5
5651 echo "${ECHO_T}failed" >&6
5652 else
5653 echo "$as_me:$LINENO: result: ok" >&5
5654 echo "${ECHO_T}ok" >&6
5657 echo "$as_me:$LINENO: checking for objdir" >&5
5658 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5659 if test "${lt_cv_objdir+set}" = set; then
5660 echo $ECHO_N "(cached) $ECHO_C" >&6
5661 else
5662 rm -f .libs 2>/dev/null
5663 mkdir .libs 2>/dev/null
5664 if test -d .libs; then
5665 lt_cv_objdir=.libs
5666 else
5667 # MS-DOS does not allow filenames that begin with a dot.
5668 lt_cv_objdir=_libs
5670 rmdir .libs 2>/dev/null
5672 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5673 echo "${ECHO_T}$lt_cv_objdir" >&6
5674 objdir=$lt_cv_objdir
5680 case $host_os in
5681 aix3*)
5682 # AIX sometimes has problems with the GCC collect2 program. For some
5683 # reason, if we set the COLLECT_NAMES environment variable, the problems
5684 # vanish in a puff of smoke.
5685 if test "X${COLLECT_NAMES+set}" != Xset; then
5686 COLLECT_NAMES=
5687 export COLLECT_NAMES
5690 esac
5692 # Sed substitution that helps us do robust quoting. It backslashifies
5693 # metacharacters that are still active within double-quoted strings.
5694 Xsed='sed -e 1s/^X//'
5695 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5697 # Same as above, but do not quote variable references.
5698 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5700 # Sed substitution to delay expansion of an escaped shell variable in a
5701 # double_quote_subst'ed string.
5702 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5704 # Sed substitution to avoid accidental globbing in evaled expressions
5705 no_glob_subst='s/\*/\\\*/g'
5707 # Constants:
5708 rm="rm -f"
5710 # Global variables:
5711 default_ofile=libtool
5712 can_build_shared=yes
5714 # All known linkers require a `.a' archive for static linking (except MSVC,
5715 # which needs '.lib').
5716 libext=a
5717 ltmain="$ac_aux_dir/ltmain.sh"
5718 ofile="$default_ofile"
5719 with_gnu_ld="$lt_cv_prog_gnu_ld"
5721 if test -n "$ac_tool_prefix"; then
5722 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5723 set dummy ${ac_tool_prefix}ar; ac_word=$2
5724 echo "$as_me:$LINENO: checking for $ac_word" >&5
5725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5726 if test "${ac_cv_prog_AR+set}" = set; then
5727 echo $ECHO_N "(cached) $ECHO_C" >&6
5728 else
5729 if test -n "$AR"; then
5730 ac_cv_prog_AR="$AR" # Let the user override the test.
5731 else
5732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5733 for as_dir in $PATH
5735 IFS=$as_save_IFS
5736 test -z "$as_dir" && as_dir=.
5737 for ac_exec_ext in '' $ac_executable_extensions; do
5738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5739 ac_cv_prog_AR="${ac_tool_prefix}ar"
5740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5741 break 2
5743 done
5744 done
5748 AR=$ac_cv_prog_AR
5749 if test -n "$AR"; then
5750 echo "$as_me:$LINENO: result: $AR" >&5
5751 echo "${ECHO_T}$AR" >&6
5752 else
5753 echo "$as_me:$LINENO: result: no" >&5
5754 echo "${ECHO_T}no" >&6
5758 if test -z "$ac_cv_prog_AR"; then
5759 ac_ct_AR=$AR
5760 # Extract the first word of "ar", so it can be a program name with args.
5761 set dummy ar; ac_word=$2
5762 echo "$as_me:$LINENO: checking for $ac_word" >&5
5763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5764 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5765 echo $ECHO_N "(cached) $ECHO_C" >&6
5766 else
5767 if test -n "$ac_ct_AR"; then
5768 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5769 else
5770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5771 for as_dir in $PATH
5773 IFS=$as_save_IFS
5774 test -z "$as_dir" && as_dir=.
5775 for ac_exec_ext in '' $ac_executable_extensions; do
5776 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5777 ac_cv_prog_ac_ct_AR="ar"
5778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5779 break 2
5781 done
5782 done
5784 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5787 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5788 if test -n "$ac_ct_AR"; then
5789 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5790 echo "${ECHO_T}$ac_ct_AR" >&6
5791 else
5792 echo "$as_me:$LINENO: result: no" >&5
5793 echo "${ECHO_T}no" >&6
5796 AR=$ac_ct_AR
5797 else
5798 AR="$ac_cv_prog_AR"
5801 if test -n "$ac_tool_prefix"; then
5802 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5803 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5804 echo "$as_me:$LINENO: checking for $ac_word" >&5
5805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5806 if test "${ac_cv_prog_RANLIB+set}" = set; then
5807 echo $ECHO_N "(cached) $ECHO_C" >&6
5808 else
5809 if test -n "$RANLIB"; then
5810 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5811 else
5812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813 for as_dir in $PATH
5815 IFS=$as_save_IFS
5816 test -z "$as_dir" && as_dir=.
5817 for ac_exec_ext in '' $ac_executable_extensions; do
5818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5819 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5821 break 2
5823 done
5824 done
5828 RANLIB=$ac_cv_prog_RANLIB
5829 if test -n "$RANLIB"; then
5830 echo "$as_me:$LINENO: result: $RANLIB" >&5
5831 echo "${ECHO_T}$RANLIB" >&6
5832 else
5833 echo "$as_me:$LINENO: result: no" >&5
5834 echo "${ECHO_T}no" >&6
5838 if test -z "$ac_cv_prog_RANLIB"; then
5839 ac_ct_RANLIB=$RANLIB
5840 # Extract the first word of "ranlib", so it can be a program name with args.
5841 set dummy ranlib; ac_word=$2
5842 echo "$as_me:$LINENO: checking for $ac_word" >&5
5843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5844 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5845 echo $ECHO_N "(cached) $ECHO_C" >&6
5846 else
5847 if test -n "$ac_ct_RANLIB"; then
5848 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5849 else
5850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5851 for as_dir in $PATH
5853 IFS=$as_save_IFS
5854 test -z "$as_dir" && as_dir=.
5855 for ac_exec_ext in '' $ac_executable_extensions; do
5856 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5857 ac_cv_prog_ac_ct_RANLIB="ranlib"
5858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5859 break 2
5861 done
5862 done
5864 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5867 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5868 if test -n "$ac_ct_RANLIB"; then
5869 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5870 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5871 else
5872 echo "$as_me:$LINENO: result: no" >&5
5873 echo "${ECHO_T}no" >&6
5876 RANLIB=$ac_ct_RANLIB
5877 else
5878 RANLIB="$ac_cv_prog_RANLIB"
5881 if test -n "$ac_tool_prefix"; then
5882 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5883 set dummy ${ac_tool_prefix}strip; ac_word=$2
5884 echo "$as_me:$LINENO: checking for $ac_word" >&5
5885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5886 if test "${ac_cv_prog_STRIP+set}" = set; then
5887 echo $ECHO_N "(cached) $ECHO_C" >&6
5888 else
5889 if test -n "$STRIP"; then
5890 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5891 else
5892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5893 for as_dir in $PATH
5895 IFS=$as_save_IFS
5896 test -z "$as_dir" && as_dir=.
5897 for ac_exec_ext in '' $ac_executable_extensions; do
5898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5899 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5901 break 2
5903 done
5904 done
5908 STRIP=$ac_cv_prog_STRIP
5909 if test -n "$STRIP"; then
5910 echo "$as_me:$LINENO: result: $STRIP" >&5
5911 echo "${ECHO_T}$STRIP" >&6
5912 else
5913 echo "$as_me:$LINENO: result: no" >&5
5914 echo "${ECHO_T}no" >&6
5918 if test -z "$ac_cv_prog_STRIP"; then
5919 ac_ct_STRIP=$STRIP
5920 # Extract the first word of "strip", so it can be a program name with args.
5921 set dummy strip; ac_word=$2
5922 echo "$as_me:$LINENO: checking for $ac_word" >&5
5923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5924 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5925 echo $ECHO_N "(cached) $ECHO_C" >&6
5926 else
5927 if test -n "$ac_ct_STRIP"; then
5928 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5929 else
5930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931 for as_dir in $PATH
5933 IFS=$as_save_IFS
5934 test -z "$as_dir" && as_dir=.
5935 for ac_exec_ext in '' $ac_executable_extensions; do
5936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5937 ac_cv_prog_ac_ct_STRIP="strip"
5938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5939 break 2
5941 done
5942 done
5944 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5947 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5948 if test -n "$ac_ct_STRIP"; then
5949 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5950 echo "${ECHO_T}$ac_ct_STRIP" >&6
5951 else
5952 echo "$as_me:$LINENO: result: no" >&5
5953 echo "${ECHO_T}no" >&6
5956 STRIP=$ac_ct_STRIP
5957 else
5958 STRIP="$ac_cv_prog_STRIP"
5962 old_CC="$CC"
5963 old_CFLAGS="$CFLAGS"
5965 # Set sane defaults for various variables
5966 test -z "$AR" && AR=ar
5967 test -z "$AR_FLAGS" && AR_FLAGS=cru
5968 test -z "$AS" && AS=as
5969 test -z "$CC" && CC=cc
5970 test -z "$LTCC" && LTCC=$CC
5971 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5972 test -z "$DLLTOOL" && DLLTOOL=dlltool
5973 test -z "$LD" && LD=ld
5974 test -z "$LN_S" && LN_S="ln -s"
5975 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5976 test -z "$NM" && NM=nm
5977 test -z "$SED" && SED=sed
5978 test -z "$OBJDUMP" && OBJDUMP=objdump
5979 test -z "$RANLIB" && RANLIB=:
5980 test -z "$STRIP" && STRIP=:
5981 test -z "$ac_objext" && ac_objext=o
5983 # Determine commands to create old-style static archives.
5984 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5985 old_postinstall_cmds='chmod 644 $oldlib'
5986 old_postuninstall_cmds=
5988 if test -n "$RANLIB"; then
5989 case $host_os in
5990 openbsd*)
5991 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5994 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5996 esac
5997 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6000 for cc_temp in $compiler""; do
6001 case $cc_temp in
6002 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6003 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6004 \-*) ;;
6005 *) break;;
6006 esac
6007 done
6008 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6011 # Only perform the check for file, if the check method requires it
6012 case $deplibs_check_method in
6013 file_magic*)
6014 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6015 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6016 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6017 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6018 echo $ECHO_N "(cached) $ECHO_C" >&6
6019 else
6020 case $MAGIC_CMD in
6021 [\\/*] | ?:[\\/]*)
6022 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6025 lt_save_MAGIC_CMD="$MAGIC_CMD"
6026 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6027 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6028 for ac_dir in $ac_dummy; do
6029 IFS="$lt_save_ifs"
6030 test -z "$ac_dir" && ac_dir=.
6031 if test -f $ac_dir/${ac_tool_prefix}file; then
6032 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6033 if test -n "$file_magic_test_file"; then
6034 case $deplibs_check_method in
6035 "file_magic "*)
6036 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6037 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6038 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6039 $EGREP "$file_magic_regex" > /dev/null; then
6041 else
6042 cat <<EOF 1>&2
6044 *** Warning: the command libtool uses to detect shared libraries,
6045 *** $file_magic_cmd, produces output that libtool cannot recognize.
6046 *** The result is that libtool may fail to recognize shared libraries
6047 *** as such. This will affect the creation of libtool libraries that
6048 *** depend on shared libraries, but programs linked with such libtool
6049 *** libraries will work regardless of this problem. Nevertheless, you
6050 *** may want to report the problem to your system manager and/or to
6051 *** bug-libtool@gnu.org
6054 fi ;;
6055 esac
6057 break
6059 done
6060 IFS="$lt_save_ifs"
6061 MAGIC_CMD="$lt_save_MAGIC_CMD"
6063 esac
6066 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6067 if test -n "$MAGIC_CMD"; then
6068 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6069 echo "${ECHO_T}$MAGIC_CMD" >&6
6070 else
6071 echo "$as_me:$LINENO: result: no" >&5
6072 echo "${ECHO_T}no" >&6
6075 if test -z "$lt_cv_path_MAGIC_CMD"; then
6076 if test -n "$ac_tool_prefix"; then
6077 echo "$as_me:$LINENO: checking for file" >&5
6078 echo $ECHO_N "checking for file... $ECHO_C" >&6
6079 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6080 echo $ECHO_N "(cached) $ECHO_C" >&6
6081 else
6082 case $MAGIC_CMD in
6083 [\\/*] | ?:[\\/]*)
6084 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6087 lt_save_MAGIC_CMD="$MAGIC_CMD"
6088 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6089 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6090 for ac_dir in $ac_dummy; do
6091 IFS="$lt_save_ifs"
6092 test -z "$ac_dir" && ac_dir=.
6093 if test -f $ac_dir/file; then
6094 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6095 if test -n "$file_magic_test_file"; then
6096 case $deplibs_check_method in
6097 "file_magic "*)
6098 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6099 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6100 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6101 $EGREP "$file_magic_regex" > /dev/null; then
6103 else
6104 cat <<EOF 1>&2
6106 *** Warning: the command libtool uses to detect shared libraries,
6107 *** $file_magic_cmd, produces output that libtool cannot recognize.
6108 *** The result is that libtool may fail to recognize shared libraries
6109 *** as such. This will affect the creation of libtool libraries that
6110 *** depend on shared libraries, but programs linked with such libtool
6111 *** libraries will work regardless of this problem. Nevertheless, you
6112 *** may want to report the problem to your system manager and/or to
6113 *** bug-libtool@gnu.org
6116 fi ;;
6117 esac
6119 break
6121 done
6122 IFS="$lt_save_ifs"
6123 MAGIC_CMD="$lt_save_MAGIC_CMD"
6125 esac
6128 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6129 if test -n "$MAGIC_CMD"; then
6130 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6131 echo "${ECHO_T}$MAGIC_CMD" >&6
6132 else
6133 echo "$as_me:$LINENO: result: no" >&5
6134 echo "${ECHO_T}no" >&6
6137 else
6138 MAGIC_CMD=:
6144 esac
6146 enable_dlopen=no
6147 enable_win32_dll=no
6149 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6150 if test "${enable_libtool_lock+set}" = set; then
6151 enableval="$enable_libtool_lock"
6154 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6157 # Check whether --with-pic or --without-pic was given.
6158 if test "${with_pic+set}" = set; then
6159 withval="$with_pic"
6160 pic_mode="$withval"
6161 else
6162 pic_mode=default
6164 test -z "$pic_mode" && pic_mode=default
6166 # Use C for the default configuration in the libtool script
6167 tagname=
6168 lt_save_CC="$CC"
6169 ac_ext=c
6170 ac_cpp='$CPP $CPPFLAGS'
6171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6176 # Source file extension for C test sources.
6177 ac_ext=c
6179 # Object file extension for compiled C test sources.
6180 objext=o
6181 objext=$objext
6183 # Code to be used in simple compile tests
6184 lt_simple_compile_test_code="int some_variable = 0;\n"
6186 # Code to be used in simple link tests
6187 lt_simple_link_test_code='int main(){return(0);}\n'
6190 # If no C compiler was specified, use CC.
6191 LTCC=${LTCC-"$CC"}
6193 # If no C compiler flags were specified, use CFLAGS.
6194 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6196 # Allow CC to be a program name with arguments.
6197 compiler=$CC
6200 # save warnings/boilerplate of simple test code
6201 ac_outfile=conftest.$ac_objext
6202 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6203 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6204 _lt_compiler_boilerplate=`cat conftest.err`
6205 $rm conftest*
6207 ac_outfile=conftest.$ac_objext
6208 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6209 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6210 _lt_linker_boilerplate=`cat conftest.err`
6211 $rm conftest*
6215 lt_prog_compiler_no_builtin_flag=
6217 if test "$GCC" = yes; then
6218 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6221 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6222 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6223 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6224 echo $ECHO_N "(cached) $ECHO_C" >&6
6225 else
6226 lt_cv_prog_compiler_rtti_exceptions=no
6227 ac_outfile=conftest.$ac_objext
6228 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6229 lt_compiler_flag="-fno-rtti -fno-exceptions"
6230 # Insert the option either (1) after the last *FLAGS variable, or
6231 # (2) before a word containing "conftest.", or (3) at the end.
6232 # Note that $ac_compile itself does not contain backslashes and begins
6233 # with a dollar sign (not a hyphen), so the echo should work correctly.
6234 # The option is referenced via a variable to avoid confusing sed.
6235 lt_compile=`echo "$ac_compile" | $SED \
6236 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6237 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6238 -e 's:$: $lt_compiler_flag:'`
6239 (eval echo "\"\$as_me:6239: $lt_compile\"" >&5)
6240 (eval "$lt_compile" 2>conftest.err)
6241 ac_status=$?
6242 cat conftest.err >&5
6243 echo "$as_me:6243: \$? = $ac_status" >&5
6244 if (exit $ac_status) && test -s "$ac_outfile"; then
6245 # The compiler can only warn and ignore the option if not recognized
6246 # So say no if there are warnings other than the usual output.
6247 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6248 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6249 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6250 lt_cv_prog_compiler_rtti_exceptions=yes
6253 $rm conftest*
6256 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6257 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6259 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6260 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6261 else
6267 lt_prog_compiler_wl=
6268 lt_prog_compiler_pic=
6269 lt_prog_compiler_static=
6271 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6272 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6274 if test "$GCC" = yes; then
6275 lt_prog_compiler_wl='-Wl,'
6276 lt_prog_compiler_static='-static'
6278 case $host_os in
6279 aix*)
6280 # All AIX code is PIC.
6281 if test "$host_cpu" = ia64; then
6282 # AIX 5 now supports IA64 processor
6283 lt_prog_compiler_static='-Bstatic'
6287 amigaos*)
6288 # FIXME: we need at least 68020 code to build shared libraries, but
6289 # adding the `-m68020' flag to GCC prevents building anything better,
6290 # like `-m68040'.
6291 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6294 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6295 # PIC is the default for these OSes.
6298 mingw* | pw32* | os2*)
6299 # This hack is so that the source file can tell whether it is being
6300 # built for inclusion in a dll (and should export symbols for example).
6301 lt_prog_compiler_pic='-DDLL_EXPORT'
6304 darwin* | rhapsody*)
6305 # PIC is the default on this platform
6306 # Common symbols not allowed in MH_DYLIB files
6307 lt_prog_compiler_pic='-fno-common'
6310 interix3*)
6311 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6312 # Instead, we relocate shared libraries at runtime.
6315 msdosdjgpp*)
6316 # Just because we use GCC doesn't mean we suddenly get shared libraries
6317 # on systems that don't support them.
6318 lt_prog_compiler_can_build_shared=no
6319 enable_shared=no
6322 sysv4*MP*)
6323 if test -d /usr/nec; then
6324 lt_prog_compiler_pic=-Kconform_pic
6328 hpux*)
6329 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6330 # not for PA HP-UX.
6331 case $host_cpu in
6332 hppa*64*|ia64*)
6333 # +Z the default
6336 lt_prog_compiler_pic='-fPIC'
6338 esac
6342 lt_prog_compiler_pic='-fPIC'
6344 esac
6345 else
6346 # PORTME Check for flag to pass linker flags through the system compiler.
6347 case $host_os in
6348 aix*)
6349 lt_prog_compiler_wl='-Wl,'
6350 if test "$host_cpu" = ia64; then
6351 # AIX 5 now supports IA64 processor
6352 lt_prog_compiler_static='-Bstatic'
6353 else
6354 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6357 darwin*)
6358 # PIC is the default on this platform
6359 # Common symbols not allowed in MH_DYLIB files
6360 case $cc_basename in
6361 xlc*)
6362 lt_prog_compiler_pic='-qnocommon'
6363 lt_prog_compiler_wl='-Wl,'
6365 esac
6368 mingw* | pw32* | os2*)
6369 # This hack is so that the source file can tell whether it is being
6370 # built for inclusion in a dll (and should export symbols for example).
6371 lt_prog_compiler_pic='-DDLL_EXPORT'
6374 hpux9* | hpux10* | hpux11*)
6375 lt_prog_compiler_wl='-Wl,'
6376 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6377 # not for PA HP-UX.
6378 case $host_cpu in
6379 hppa*64*|ia64*)
6380 # +Z the default
6383 lt_prog_compiler_pic='+Z'
6385 esac
6386 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6387 lt_prog_compiler_static='${wl}-a ${wl}archive'
6390 irix5* | irix6* | nonstopux*)
6391 lt_prog_compiler_wl='-Wl,'
6392 # PIC (with -KPIC) is the default.
6393 lt_prog_compiler_static='-non_shared'
6396 newsos6)
6397 lt_prog_compiler_pic='-KPIC'
6398 lt_prog_compiler_static='-Bstatic'
6401 linux*)
6402 case $cc_basename in
6403 icc* | ecc*)
6404 lt_prog_compiler_wl='-Wl,'
6405 lt_prog_compiler_pic='-KPIC'
6406 lt_prog_compiler_static='-static'
6408 pgcc* | pgf77* | pgf90* | pgf95*)
6409 # Portland Group compilers (*not* the Pentium gcc compiler,
6410 # which looks to be a dead project)
6411 lt_prog_compiler_wl='-Wl,'
6412 lt_prog_compiler_pic='-fpic'
6413 lt_prog_compiler_static='-Bstatic'
6415 ccc*)
6416 lt_prog_compiler_wl='-Wl,'
6417 # All Alpha code is PIC.
6418 lt_prog_compiler_static='-non_shared'
6420 esac
6423 osf3* | osf4* | osf5*)
6424 lt_prog_compiler_wl='-Wl,'
6425 # All OSF/1 code is PIC.
6426 lt_prog_compiler_static='-non_shared'
6429 solaris*)
6430 lt_prog_compiler_pic='-KPIC'
6431 lt_prog_compiler_static='-Bstatic'
6432 case $cc_basename in
6433 f77* | f90* | f95*)
6434 lt_prog_compiler_wl='-Qoption ld ';;
6436 lt_prog_compiler_wl='-Wl,';;
6437 esac
6440 sunos4*)
6441 lt_prog_compiler_wl='-Qoption ld '
6442 lt_prog_compiler_pic='-PIC'
6443 lt_prog_compiler_static='-Bstatic'
6446 sysv4 | sysv4.2uw2* | sysv4.3*)
6447 lt_prog_compiler_wl='-Wl,'
6448 lt_prog_compiler_pic='-KPIC'
6449 lt_prog_compiler_static='-Bstatic'
6452 sysv4*MP*)
6453 if test -d /usr/nec ;then
6454 lt_prog_compiler_pic='-Kconform_pic'
6455 lt_prog_compiler_static='-Bstatic'
6459 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6460 lt_prog_compiler_wl='-Wl,'
6461 lt_prog_compiler_pic='-KPIC'
6462 lt_prog_compiler_static='-Bstatic'
6465 unicos*)
6466 lt_prog_compiler_wl='-Wl,'
6467 lt_prog_compiler_can_build_shared=no
6470 uts4*)
6471 lt_prog_compiler_pic='-pic'
6472 lt_prog_compiler_static='-Bstatic'
6476 lt_prog_compiler_can_build_shared=no
6478 esac
6481 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6482 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6485 # Check to make sure the PIC flag actually works.
6487 if test -n "$lt_prog_compiler_pic"; then
6489 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6490 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6491 if test "${lt_prog_compiler_pic_works+set}" = set; then
6492 echo $ECHO_N "(cached) $ECHO_C" >&6
6493 else
6494 lt_prog_compiler_pic_works=no
6495 ac_outfile=conftest.$ac_objext
6496 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6497 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6498 # Insert the option either (1) after the last *FLAGS variable, or
6499 # (2) before a word containing "conftest.", or (3) at the end.
6500 # Note that $ac_compile itself does not contain backslashes and begins
6501 # with a dollar sign (not a hyphen), so the echo should work correctly.
6502 # The option is referenced via a variable to avoid confusing sed.
6503 lt_compile=`echo "$ac_compile" | $SED \
6504 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6505 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6506 -e 's:$: $lt_compiler_flag:'`
6507 (eval echo "\"\$as_me:6507: $lt_compile\"" >&5)
6508 (eval "$lt_compile" 2>conftest.err)
6509 ac_status=$?
6510 cat conftest.err >&5
6511 echo "$as_me:6511: \$? = $ac_status" >&5
6512 if (exit $ac_status) && test -s "$ac_outfile"; then
6513 # The compiler can only warn and ignore the option if not recognized
6514 # So say no if there are warnings other than the usual output.
6515 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6516 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6517 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6518 lt_prog_compiler_pic_works=yes
6521 $rm conftest*
6524 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6525 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6527 if test x"$lt_prog_compiler_pic_works" = xyes; then
6528 case $lt_prog_compiler_pic in
6529 "" | " "*) ;;
6530 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6531 esac
6532 else
6533 lt_prog_compiler_pic=
6534 lt_prog_compiler_can_build_shared=no
6538 case $host_os in
6539 # For platforms which do not support PIC, -DPIC is meaningless:
6540 *djgpp*)
6541 lt_prog_compiler_pic=
6544 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6546 esac
6549 # Check to make sure the static flag actually works.
6551 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6552 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6553 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6554 if test "${lt_prog_compiler_static_works+set}" = set; then
6555 echo $ECHO_N "(cached) $ECHO_C" >&6
6556 else
6557 lt_prog_compiler_static_works=no
6558 save_LDFLAGS="$LDFLAGS"
6559 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6560 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6561 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6562 # The linker can only warn and ignore the option if not recognized
6563 # So say no if there are warnings
6564 if test -s conftest.err; then
6565 # Append any errors to the config.log.
6566 cat conftest.err 1>&5
6567 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6568 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6569 if diff conftest.exp conftest.er2 >/dev/null; then
6570 lt_prog_compiler_static_works=yes
6572 else
6573 lt_prog_compiler_static_works=yes
6576 $rm conftest*
6577 LDFLAGS="$save_LDFLAGS"
6580 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6581 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6583 if test x"$lt_prog_compiler_static_works" = xyes; then
6585 else
6586 lt_prog_compiler_static=
6590 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6591 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6592 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6593 echo $ECHO_N "(cached) $ECHO_C" >&6
6594 else
6595 lt_cv_prog_compiler_c_o=no
6596 $rm -r conftest 2>/dev/null
6597 mkdir conftest
6598 cd conftest
6599 mkdir out
6600 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6602 lt_compiler_flag="-o out/conftest2.$ac_objext"
6603 # Insert the option either (1) after the last *FLAGS variable, or
6604 # (2) before a word containing "conftest.", or (3) at the end.
6605 # Note that $ac_compile itself does not contain backslashes and begins
6606 # with a dollar sign (not a hyphen), so the echo should work correctly.
6607 lt_compile=`echo "$ac_compile" | $SED \
6608 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6609 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6610 -e 's:$: $lt_compiler_flag:'`
6611 (eval echo "\"\$as_me:6611: $lt_compile\"" >&5)
6612 (eval "$lt_compile" 2>out/conftest.err)
6613 ac_status=$?
6614 cat out/conftest.err >&5
6615 echo "$as_me:6615: \$? = $ac_status" >&5
6616 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6617 then
6618 # The compiler can only warn and ignore the option if not recognized
6619 # So say no if there are warnings
6620 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6621 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6622 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6623 lt_cv_prog_compiler_c_o=yes
6626 chmod u+w . 2>&5
6627 $rm conftest*
6628 # SGI C++ compiler will create directory out/ii_files/ for
6629 # template instantiation
6630 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6631 $rm out/* && rmdir out
6632 cd ..
6633 rmdir conftest
6634 $rm conftest*
6637 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6638 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6641 hard_links="nottested"
6642 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6643 # do not overwrite the value of need_locks provided by the user
6644 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6645 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6646 hard_links=yes
6647 $rm conftest*
6648 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6649 touch conftest.a
6650 ln conftest.a conftest.b 2>&5 || hard_links=no
6651 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6652 echo "$as_me:$LINENO: result: $hard_links" >&5
6653 echo "${ECHO_T}$hard_links" >&6
6654 if test "$hard_links" = no; then
6655 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6656 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6657 need_locks=warn
6659 else
6660 need_locks=no
6663 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6664 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6666 runpath_var=
6667 allow_undefined_flag=
6668 enable_shared_with_static_runtimes=no
6669 archive_cmds=
6670 archive_expsym_cmds=
6671 old_archive_From_new_cmds=
6672 old_archive_from_expsyms_cmds=
6673 export_dynamic_flag_spec=
6674 whole_archive_flag_spec=
6675 thread_safe_flag_spec=
6676 hardcode_libdir_flag_spec=
6677 hardcode_libdir_flag_spec_ld=
6678 hardcode_libdir_separator=
6679 hardcode_direct=no
6680 hardcode_minus_L=no
6681 hardcode_shlibpath_var=unsupported
6682 link_all_deplibs=unknown
6683 hardcode_automatic=no
6684 module_cmds=
6685 module_expsym_cmds=
6686 always_export_symbols=no
6687 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6688 # include_expsyms should be a list of space-separated symbols to be *always*
6689 # included in the symbol list
6690 include_expsyms=
6691 # exclude_expsyms can be an extended regexp of symbols to exclude
6692 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6693 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6694 # as well as any symbol that contains `d'.
6695 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6696 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6697 # platforms (ab)use it in PIC code, but their linkers get confused if
6698 # the symbol is explicitly referenced. Since portable code cannot
6699 # rely on this symbol name, it's probably fine to never include it in
6700 # preloaded symbol tables.
6701 extract_expsyms_cmds=
6702 # Just being paranoid about ensuring that cc_basename is set.
6703 for cc_temp in $compiler""; do
6704 case $cc_temp in
6705 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6706 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6707 \-*) ;;
6708 *) break;;
6709 esac
6710 done
6711 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6713 case $host_os in
6714 cygwin* | mingw* | pw32*)
6715 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6716 # When not using gcc, we currently assume that we are using
6717 # Microsoft Visual C++.
6718 if test "$GCC" != yes; then
6719 with_gnu_ld=no
6722 interix*)
6723 # we just hope/assume this is gcc and not c89 (= MSVC++)
6724 with_gnu_ld=yes
6726 openbsd*)
6727 with_gnu_ld=no
6729 esac
6731 ld_shlibs=yes
6732 if test "$with_gnu_ld" = yes; then
6733 # If archive_cmds runs LD, not CC, wlarc should be empty
6734 wlarc='${wl}'
6736 # Set some defaults for GNU ld with shared library support. These
6737 # are reset later if shared libraries are not supported. Putting them
6738 # here allows them to be overridden if necessary.
6739 runpath_var=LD_RUN_PATH
6740 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6741 export_dynamic_flag_spec='${wl}--export-dynamic'
6742 # ancient GNU ld didn't support --whole-archive et. al.
6743 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6744 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6745 else
6746 whole_archive_flag_spec=
6748 supports_anon_versioning=no
6749 case `$LD -v 2>/dev/null` in
6750 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6751 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6752 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6753 *\ 2.11.*) ;; # other 2.11 versions
6754 *) supports_anon_versioning=yes ;;
6755 esac
6757 # See if GNU ld supports shared libraries.
6758 case $host_os in
6759 aix3* | aix4* | aix5*)
6760 # On AIX/PPC, the GNU linker is very broken
6761 if test "$host_cpu" != ia64; then
6762 ld_shlibs=no
6763 cat <<EOF 1>&2
6765 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6766 *** to be unable to reliably create shared libraries on AIX.
6767 *** Therefore, libtool is disabling shared libraries support. If you
6768 *** really care for shared libraries, you may want to modify your PATH
6769 *** so that a non-GNU linker is found, and then restart.
6775 amigaos*)
6776 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)'
6777 hardcode_libdir_flag_spec='-L$libdir'
6778 hardcode_minus_L=yes
6780 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6781 # that the semantics of dynamic libraries on AmigaOS, at least up
6782 # to version 4, is to share data among multiple programs linked
6783 # with the same dynamic library. Since this doesn't match the
6784 # behavior of shared libraries on other platforms, we can't use
6785 # them.
6786 ld_shlibs=no
6789 beos*)
6790 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6791 allow_undefined_flag=unsupported
6792 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6793 # support --undefined. This deserves some investigation. FIXME
6794 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6795 else
6796 ld_shlibs=no
6800 cygwin* | mingw* | pw32*)
6801 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6802 # as there is no search path for DLLs.
6803 hardcode_libdir_flag_spec='-L$libdir'
6804 allow_undefined_flag=unsupported
6805 always_export_symbols=no
6806 enable_shared_with_static_runtimes=yes
6807 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6809 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6810 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6811 # If the export-symbols file already is a .def file (1st line
6812 # is EXPORTS), use it as is; otherwise, prepend...
6813 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6814 cp $export_symbols $output_objdir/$soname.def;
6815 else
6816 echo EXPORTS > $output_objdir/$soname.def;
6817 cat $export_symbols >> $output_objdir/$soname.def;
6819 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6820 else
6821 ld_shlibs=no
6825 interix3*)
6826 hardcode_direct=no
6827 hardcode_shlibpath_var=no
6828 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6829 export_dynamic_flag_spec='${wl}-E'
6830 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6831 # Instead, shared libraries are loaded at an image base (0x10000000 by
6832 # default) and relocated if they conflict, which is a slow very memory
6833 # consuming and fragmenting process. To avoid this, we pick a random,
6834 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6835 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6836 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6837 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6840 linux*)
6841 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6842 tmp_addflag=
6843 case $cc_basename,$host_cpu in
6844 pgcc*) # Portland Group C compiler
6845 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6846 tmp_addflag=' $pic_flag'
6848 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6849 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6850 tmp_addflag=' $pic_flag -Mnomain' ;;
6851 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6852 tmp_addflag=' -i_dynamic' ;;
6853 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6854 tmp_addflag=' -i_dynamic -nofor_main' ;;
6855 ifc* | ifort*) # Intel Fortran compiler
6856 tmp_addflag=' -nofor_main' ;;
6857 esac
6858 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6860 if test $supports_anon_versioning = yes; then
6861 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6862 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6863 $echo "local: *; };" >> $output_objdir/$libname.ver~
6864 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6866 else
6867 ld_shlibs=no
6871 netbsd*)
6872 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6873 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6874 wlarc=
6875 else
6876 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6877 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6881 solaris*)
6882 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6883 ld_shlibs=no
6884 cat <<EOF 1>&2
6886 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6887 *** create shared libraries on Solaris systems. Therefore, libtool
6888 *** is disabling shared libraries support. We urge you to upgrade GNU
6889 *** binutils to release 2.9.1 or newer. Another option is to modify
6890 *** your PATH or compiler configuration so that the native linker is
6891 *** used, and then restart.
6894 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6895 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6896 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6897 else
6898 ld_shlibs=no
6902 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6903 case `$LD -v 2>&1` in
6904 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6905 ld_shlibs=no
6906 cat <<_LT_EOF 1>&2
6908 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6909 *** reliably create shared libraries on SCO systems. Therefore, libtool
6910 *** is disabling shared libraries support. We urge you to upgrade GNU
6911 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
6912 *** your PATH or compiler configuration so that the native linker is
6913 *** used, and then restart.
6915 _LT_EOF
6918 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6919 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
6920 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
6921 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
6922 else
6923 ld_shlibs=no
6926 esac
6929 sunos4*)
6930 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6931 wlarc=
6932 hardcode_direct=yes
6933 hardcode_shlibpath_var=no
6937 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6938 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6939 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6940 else
6941 ld_shlibs=no
6944 esac
6946 if test "$ld_shlibs" = no; then
6947 runpath_var=
6948 hardcode_libdir_flag_spec=
6949 export_dynamic_flag_spec=
6950 whole_archive_flag_spec=
6952 else
6953 # PORTME fill in a description of your system's linker (not GNU ld)
6954 case $host_os in
6955 aix3*)
6956 allow_undefined_flag=unsupported
6957 always_export_symbols=yes
6958 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'
6959 # Note: this linker hardcodes the directories in LIBPATH if there
6960 # are no directories specified by -L.
6961 hardcode_minus_L=yes
6962 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6963 # Neither direct hardcoding nor static linking is supported with a
6964 # broken collect2.
6965 hardcode_direct=unsupported
6969 aix4* | aix5*)
6970 if test "$host_cpu" = ia64; then
6971 # On IA64, the linker does run time linking by default, so we don't
6972 # have to do anything special.
6973 aix_use_runtimelinking=no
6974 exp_sym_flag='-Bexport'
6975 no_entry_flag=""
6976 else
6977 # If we're using GNU nm, then we don't want the "-C" option.
6978 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6979 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6980 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'
6981 else
6982 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'
6984 aix_use_runtimelinking=no
6986 # Test if we are trying to use run time linking or normal
6987 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6988 # need to do runtime linking.
6989 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6990 for ld_flag in $LDFLAGS; do
6991 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6992 aix_use_runtimelinking=yes
6993 break
6995 done
6997 esac
6999 exp_sym_flag='-bexport'
7000 no_entry_flag='-bnoentry'
7003 # When large executables or shared objects are built, AIX ld can
7004 # have problems creating the table of contents. If linking a library
7005 # or program results in "error TOC overflow" add -mminimal-toc to
7006 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7007 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7009 archive_cmds=''
7010 hardcode_direct=yes
7011 hardcode_libdir_separator=':'
7012 link_all_deplibs=yes
7014 if test "$GCC" = yes; then
7015 case $host_os in aix4.[012]|aix4.[012].*)
7016 # We only want to do this on AIX 4.2 and lower, the check
7017 # below for broken collect2 doesn't work under 4.3+
7018 collect2name=`${CC} -print-prog-name=collect2`
7019 if test -f "$collect2name" && \
7020 strings "$collect2name" | grep resolve_lib_name >/dev/null
7021 then
7022 # We have reworked collect2
7023 hardcode_direct=yes
7024 else
7025 # We have old collect2
7026 hardcode_direct=unsupported
7027 # It fails to find uninstalled libraries when the uninstalled
7028 # path is not listed in the libpath. Setting hardcode_minus_L
7029 # to unsupported forces relinking
7030 hardcode_minus_L=yes
7031 hardcode_libdir_flag_spec='-L$libdir'
7032 hardcode_libdir_separator=
7035 esac
7036 shared_flag='-shared'
7037 if test "$aix_use_runtimelinking" = yes; then
7038 shared_flag="$shared_flag "'${wl}-G'
7040 else
7041 # not using gcc
7042 if test "$host_cpu" = ia64; then
7043 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7044 # chokes on -Wl,-G. The following line is correct:
7045 shared_flag='-G'
7046 else
7047 if test "$aix_use_runtimelinking" = yes; then
7048 shared_flag='${wl}-G'
7049 else
7050 shared_flag='${wl}-bM:SRE'
7055 # It seems that -bexpall does not export symbols beginning with
7056 # underscore (_), so it is better to generate a list of symbols to export.
7057 always_export_symbols=yes
7058 if test "$aix_use_runtimelinking" = yes; then
7059 # Warning - without using the other runtime loading flags (-brtl),
7060 # -berok will link without error, but may produce a broken library.
7061 allow_undefined_flag='-berok'
7062 # Determine the default libpath from the value encoded in an empty executable.
7063 cat >conftest.$ac_ext <<_ACEOF
7064 /* confdefs.h. */
7065 _ACEOF
7066 cat confdefs.h >>conftest.$ac_ext
7067 cat >>conftest.$ac_ext <<_ACEOF
7068 /* end confdefs.h. */
7071 main ()
7075 return 0;
7077 _ACEOF
7078 rm -f conftest.$ac_objext conftest$ac_exeext
7079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7080 (eval $ac_link) 2>conftest.er1
7081 ac_status=$?
7082 grep -v '^ *+' conftest.er1 >conftest.err
7083 rm -f conftest.er1
7084 cat conftest.err >&5
7085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086 (exit $ac_status); } &&
7087 { ac_try='test -z "$ac_c_werror_flag"
7088 || test ! -s conftest.err'
7089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7090 (eval $ac_try) 2>&5
7091 ac_status=$?
7092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093 (exit $ac_status); }; } &&
7094 { ac_try='test -s conftest$ac_exeext'
7095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7096 (eval $ac_try) 2>&5
7097 ac_status=$?
7098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099 (exit $ac_status); }; }; then
7101 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7103 # Check for a 64-bit object if we didn't find anything.
7104 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; }
7105 }'`; fi
7106 else
7107 echo "$as_me: failed program was:" >&5
7108 sed 's/^/| /' conftest.$ac_ext >&5
7111 rm -f conftest.err conftest.$ac_objext \
7112 conftest$ac_exeext conftest.$ac_ext
7113 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7115 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7116 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7117 else
7118 if test "$host_cpu" = ia64; then
7119 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7120 allow_undefined_flag="-z nodefs"
7121 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7122 else
7123 # Determine the default libpath from the value encoded in an empty executable.
7124 cat >conftest.$ac_ext <<_ACEOF
7125 /* confdefs.h. */
7126 _ACEOF
7127 cat confdefs.h >>conftest.$ac_ext
7128 cat >>conftest.$ac_ext <<_ACEOF
7129 /* end confdefs.h. */
7132 main ()
7136 return 0;
7138 _ACEOF
7139 rm -f conftest.$ac_objext conftest$ac_exeext
7140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7141 (eval $ac_link) 2>conftest.er1
7142 ac_status=$?
7143 grep -v '^ *+' conftest.er1 >conftest.err
7144 rm -f conftest.er1
7145 cat conftest.err >&5
7146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147 (exit $ac_status); } &&
7148 { ac_try='test -z "$ac_c_werror_flag"
7149 || test ! -s conftest.err'
7150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7151 (eval $ac_try) 2>&5
7152 ac_status=$?
7153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154 (exit $ac_status); }; } &&
7155 { ac_try='test -s conftest$ac_exeext'
7156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7157 (eval $ac_try) 2>&5
7158 ac_status=$?
7159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160 (exit $ac_status); }; }; then
7162 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7164 # Check for a 64-bit object if we didn't find anything.
7165 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; }
7166 }'`; fi
7167 else
7168 echo "$as_me: failed program was:" >&5
7169 sed 's/^/| /' conftest.$ac_ext >&5
7172 rm -f conftest.err conftest.$ac_objext \
7173 conftest$ac_exeext conftest.$ac_ext
7174 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7176 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7177 # Warning - without using the other run time loading flags,
7178 # -berok will link without error, but may produce a broken library.
7179 no_undefined_flag=' ${wl}-bernotok'
7180 allow_undefined_flag=' ${wl}-berok'
7181 # Exported symbols can be pulled into shared objects from archives
7182 whole_archive_flag_spec='$convenience'
7183 archive_cmds_need_lc=yes
7184 # This is similar to how AIX traditionally builds its shared libraries.
7185 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7190 amigaos*)
7191 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)'
7192 hardcode_libdir_flag_spec='-L$libdir'
7193 hardcode_minus_L=yes
7194 # see comment about different semantics on the GNU ld section
7195 ld_shlibs=no
7198 bsdi[45]*)
7199 export_dynamic_flag_spec=-rdynamic
7202 cygwin* | mingw* | pw32*)
7203 # When not using gcc, we currently assume that we are using
7204 # Microsoft Visual C++.
7205 # hardcode_libdir_flag_spec is actually meaningless, as there is
7206 # no search path for DLLs.
7207 hardcode_libdir_flag_spec=' '
7208 allow_undefined_flag=unsupported
7209 # Tell ltmain to make .lib files, not .a files.
7210 libext=lib
7211 # Tell ltmain to make .dll files, not .so files.
7212 shrext_cmds=".dll"
7213 # FIXME: Setting linknames here is a bad hack.
7214 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7215 # The linker will automatically build a .lib file if we build a DLL.
7216 old_archive_From_new_cmds='true'
7217 # FIXME: Should let the user specify the lib program.
7218 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7219 fix_srcfile_path='`cygpath -w "$srcfile"`'
7220 enable_shared_with_static_runtimes=yes
7223 darwin* | rhapsody*)
7224 case $host_os in
7225 rhapsody* | darwin1.[012])
7226 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7228 *) # Darwin 1.3 on
7229 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7230 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7231 else
7232 case ${MACOSX_DEPLOYMENT_TARGET} in
7233 10.[012])
7234 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7236 10.*)
7237 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7239 esac
7242 esac
7243 archive_cmds_need_lc=no
7244 hardcode_direct=no
7245 hardcode_automatic=yes
7246 hardcode_shlibpath_var=unsupported
7247 whole_archive_flag_spec=''
7248 link_all_deplibs=yes
7249 if test "$GCC" = yes ; then
7250 output_verbose_link_cmd='echo'
7251 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7252 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7253 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7254 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}'
7255 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}'
7256 else
7257 case $cc_basename in
7258 xlc*)
7259 output_verbose_link_cmd='echo'
7260 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7261 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7262 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7263 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}'
7264 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}'
7267 ld_shlibs=no
7269 esac
7273 dgux*)
7274 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7275 hardcode_libdir_flag_spec='-L$libdir'
7276 hardcode_shlibpath_var=no
7279 freebsd1*)
7280 ld_shlibs=no
7283 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7284 # support. Future versions do this automatically, but an explicit c++rt0.o
7285 # does not break anything, and helps significantly (at the cost of a little
7286 # extra space).
7287 freebsd2.2*)
7288 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7289 hardcode_libdir_flag_spec='-R$libdir'
7290 hardcode_direct=yes
7291 hardcode_shlibpath_var=no
7294 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7295 freebsd2*)
7296 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7297 hardcode_direct=yes
7298 hardcode_minus_L=yes
7299 hardcode_shlibpath_var=no
7302 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7303 freebsd* | kfreebsd*-gnu | dragonfly*)
7304 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7305 hardcode_libdir_flag_spec='-R$libdir'
7306 hardcode_direct=yes
7307 hardcode_shlibpath_var=no
7310 hpux9*)
7311 if test "$GCC" = yes; then
7312 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'
7313 else
7314 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'
7316 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7317 hardcode_libdir_separator=:
7318 hardcode_direct=yes
7320 # hardcode_minus_L: Not really in the search PATH,
7321 # but as the default location of the library.
7322 hardcode_minus_L=yes
7323 export_dynamic_flag_spec='${wl}-E'
7326 hpux10*)
7327 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7328 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7329 else
7330 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7332 if test "$with_gnu_ld" = no; then
7333 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7334 hardcode_libdir_separator=:
7336 hardcode_direct=yes
7337 export_dynamic_flag_spec='${wl}-E'
7339 # hardcode_minus_L: Not really in the search PATH,
7340 # but as the default location of the library.
7341 hardcode_minus_L=yes
7345 hpux11*)
7346 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7347 case $host_cpu in
7348 hppa*64*)
7349 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7351 ia64*)
7352 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7355 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7357 esac
7358 else
7359 case $host_cpu in
7360 hppa*64*)
7361 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7363 ia64*)
7364 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7367 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7369 esac
7371 if test "$with_gnu_ld" = no; then
7372 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7373 hardcode_libdir_separator=:
7375 case $host_cpu in
7376 hppa*64*|ia64*)
7377 hardcode_libdir_flag_spec_ld='+b $libdir'
7378 hardcode_direct=no
7379 hardcode_shlibpath_var=no
7382 hardcode_direct=yes
7383 export_dynamic_flag_spec='${wl}-E'
7385 # hardcode_minus_L: Not really in the search PATH,
7386 # but as the default location of the library.
7387 hardcode_minus_L=yes
7389 esac
7393 irix5* | irix6* | nonstopux*)
7394 if test "$GCC" = yes; then
7395 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'
7396 else
7397 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'
7398 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7400 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7401 hardcode_libdir_separator=:
7402 link_all_deplibs=yes
7405 netbsd*)
7406 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7407 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7408 else
7409 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7411 hardcode_libdir_flag_spec='-R$libdir'
7412 hardcode_direct=yes
7413 hardcode_shlibpath_var=no
7416 newsos6)
7417 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7418 hardcode_direct=yes
7419 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7420 hardcode_libdir_separator=:
7421 hardcode_shlibpath_var=no
7424 openbsd*)
7425 hardcode_direct=yes
7426 hardcode_shlibpath_var=no
7427 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7428 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7429 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7430 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7431 export_dynamic_flag_spec='${wl}-E'
7432 else
7433 case $host_os in
7434 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7435 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7436 hardcode_libdir_flag_spec='-R$libdir'
7439 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7440 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7442 esac
7446 os2*)
7447 hardcode_libdir_flag_spec='-L$libdir'
7448 hardcode_minus_L=yes
7449 allow_undefined_flag=unsupported
7450 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'
7451 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7454 osf3*)
7455 if test "$GCC" = yes; then
7456 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7457 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'
7458 else
7459 allow_undefined_flag=' -expect_unresolved \*'
7460 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'
7462 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7463 hardcode_libdir_separator=:
7466 osf4* | osf5*) # as osf3* with the addition of -msym flag
7467 if test "$GCC" = yes; then
7468 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7469 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'
7470 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7471 else
7472 allow_undefined_flag=' -expect_unresolved \*'
7473 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'
7474 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7475 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7477 # Both c and cxx compiler support -rpath directly
7478 hardcode_libdir_flag_spec='-rpath $libdir'
7480 hardcode_libdir_separator=:
7483 solaris*)
7484 no_undefined_flag=' -z text'
7485 if test "$GCC" = yes; then
7486 wlarc='${wl}'
7487 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7488 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7489 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7490 else
7491 wlarc=''
7492 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7493 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7494 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7496 hardcode_libdir_flag_spec='-R$libdir'
7497 hardcode_shlibpath_var=no
7498 case $host_os in
7499 solaris2.[0-5] | solaris2.[0-5].*) ;;
7501 # The compiler driver will combine linker options so we
7502 # cannot just pass the convience library names through
7503 # without $wl, iff we do not link with $LD.
7504 # Luckily, gcc supports the same syntax we need for Sun Studio.
7505 # Supported since Solaris 2.6 (maybe 2.5.1?)
7506 case $wlarc in
7508 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7510 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7511 esac ;;
7512 esac
7513 link_all_deplibs=yes
7516 sunos4*)
7517 if test "x$host_vendor" = xsequent; then
7518 # Use $CC to link under sequent, because it throws in some extra .o
7519 # files that make .init and .fini sections work.
7520 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7521 else
7522 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7524 hardcode_libdir_flag_spec='-L$libdir'
7525 hardcode_direct=yes
7526 hardcode_minus_L=yes
7527 hardcode_shlibpath_var=no
7530 sysv4)
7531 case $host_vendor in
7532 sni)
7533 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7534 hardcode_direct=yes # is this really true???
7536 siemens)
7537 ## LD is ld it makes a PLAMLIB
7538 ## CC just makes a GrossModule.
7539 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7540 reload_cmds='$CC -r -o $output$reload_objs'
7541 hardcode_direct=no
7543 motorola)
7544 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7545 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7547 esac
7548 runpath_var='LD_RUN_PATH'
7549 hardcode_shlibpath_var=no
7552 sysv4.3*)
7553 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7554 hardcode_shlibpath_var=no
7555 export_dynamic_flag_spec='-Bexport'
7558 sysv4*MP*)
7559 if test -d /usr/nec; then
7560 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7561 hardcode_shlibpath_var=no
7562 runpath_var=LD_RUN_PATH
7563 hardcode_runpath_var=yes
7564 ld_shlibs=yes
7568 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7569 no_undefined_flag='${wl}-z,text'
7570 archive_cmds_need_lc=no
7571 hardcode_shlibpath_var=no
7572 runpath_var='LD_RUN_PATH'
7574 if test "$GCC" = yes; then
7575 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7576 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7577 else
7578 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7579 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7583 sysv5* | sco3.2v5* | sco5v6*)
7584 # Note: We can NOT use -z defs as we might desire, because we do not
7585 # link with -lc, and that would cause any symbols used from libc to
7586 # always be unresolved, which means just about no library would
7587 # ever link correctly. If we're not using GNU ld we use -z text
7588 # though, which does catch some bad symbols but isn't as heavy-handed
7589 # as -z defs.
7590 no_undefined_flag='${wl}-z,text'
7591 allow_undefined_flag='${wl}-z,nodefs'
7592 archive_cmds_need_lc=no
7593 hardcode_shlibpath_var=no
7594 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7595 hardcode_libdir_separator=':'
7596 link_all_deplibs=yes
7597 export_dynamic_flag_spec='${wl}-Bexport'
7598 runpath_var='LD_RUN_PATH'
7600 if test "$GCC" = yes; then
7601 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7602 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7603 else
7604 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7605 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7609 uts4*)
7610 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7611 hardcode_libdir_flag_spec='-L$libdir'
7612 hardcode_shlibpath_var=no
7616 ld_shlibs=no
7618 esac
7621 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7622 echo "${ECHO_T}$ld_shlibs" >&6
7623 test "$ld_shlibs" = no && can_build_shared=no
7626 # Do we need to explicitly link libc?
7628 case "x$archive_cmds_need_lc" in
7629 x|xyes)
7630 # Assume -lc should be added
7631 archive_cmds_need_lc=yes
7633 if test "$enable_shared" = yes && test "$GCC" = yes; then
7634 case $archive_cmds in
7635 *'~'*)
7636 # FIXME: we may have to deal with multi-command sequences.
7638 '$CC '*)
7639 # Test whether the compiler implicitly links with -lc since on some
7640 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7641 # to ld, don't add -lc before -lgcc.
7642 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7643 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7644 $rm conftest*
7645 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7648 (eval $ac_compile) 2>&5
7649 ac_status=$?
7650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651 (exit $ac_status); } 2>conftest.err; then
7652 soname=conftest
7653 lib=conftest
7654 libobjs=conftest.$ac_objext
7655 deplibs=
7656 wl=$lt_prog_compiler_wl
7657 pic_flag=$lt_prog_compiler_pic
7658 compiler_flags=-v
7659 linker_flags=-v
7660 verstring=
7661 output_objdir=.
7662 libname=conftest
7663 lt_save_allow_undefined_flag=$allow_undefined_flag
7664 allow_undefined_flag=
7665 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7666 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7667 ac_status=$?
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); }
7670 then
7671 archive_cmds_need_lc=no
7672 else
7673 archive_cmds_need_lc=yes
7675 allow_undefined_flag=$lt_save_allow_undefined_flag
7676 else
7677 cat conftest.err 1>&5
7679 $rm conftest*
7680 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7681 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7683 esac
7686 esac
7688 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7689 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7690 library_names_spec=
7691 libname_spec='lib$name'
7692 soname_spec=
7693 shrext_cmds=".so"
7694 postinstall_cmds=
7695 postuninstall_cmds=
7696 finish_cmds=
7697 finish_eval=
7698 shlibpath_var=
7699 shlibpath_overrides_runpath=unknown
7700 version_type=none
7701 dynamic_linker="$host_os ld.so"
7702 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7703 if test "$GCC" = yes; then
7704 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7705 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7706 # if the path contains ";" then we assume it to be the separator
7707 # otherwise default to the standard path separator (i.e. ":") - it is
7708 # assumed that no part of a normal pathname contains ";" but that should
7709 # okay in the real world where ";" in dirpaths is itself problematic.
7710 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7711 else
7712 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7714 else
7715 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7717 need_lib_prefix=unknown
7718 hardcode_into_libs=no
7720 # when you set need_version to no, make sure it does not cause -set_version
7721 # flags to be left without arguments
7722 need_version=unknown
7724 case $host_os in
7725 aix3*)
7726 version_type=linux
7727 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7728 shlibpath_var=LIBPATH
7730 # AIX 3 has no versioning support, so we append a major version to the name.
7731 soname_spec='${libname}${release}${shared_ext}$major'
7734 aix4* | aix5*)
7735 version_type=linux
7736 need_lib_prefix=no
7737 need_version=no
7738 hardcode_into_libs=yes
7739 if test "$host_cpu" = ia64; then
7740 # AIX 5 supports IA64
7741 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7742 shlibpath_var=LD_LIBRARY_PATH
7743 else
7744 # With GCC up to 2.95.x, collect2 would create an import file
7745 # for dependence libraries. The import file would start with
7746 # the line `#! .'. This would cause the generated library to
7747 # depend on `.', always an invalid library. This was fixed in
7748 # development snapshots of GCC prior to 3.0.
7749 case $host_os in
7750 aix4 | aix4.[01] | aix4.[01].*)
7751 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7752 echo ' yes '
7753 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7755 else
7756 can_build_shared=no
7759 esac
7760 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7761 # soname into executable. Probably we can add versioning support to
7762 # collect2, so additional links can be useful in future.
7763 if test "$aix_use_runtimelinking" = yes; then
7764 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7765 # instead of lib<name>.a to let people know that these are not
7766 # typical AIX shared libraries.
7767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7768 else
7769 # We preserve .a as extension for shared libraries through AIX4.2
7770 # and later when we are not doing run time linking.
7771 library_names_spec='${libname}${release}.a $libname.a'
7772 soname_spec='${libname}${release}${shared_ext}$major'
7774 shlibpath_var=LIBPATH
7778 amigaos*)
7779 library_names_spec='$libname.ixlibrary $libname.a'
7780 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7781 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'
7784 beos*)
7785 library_names_spec='${libname}${shared_ext}'
7786 dynamic_linker="$host_os ld.so"
7787 shlibpath_var=LIBRARY_PATH
7790 bsdi[45]*)
7791 version_type=linux
7792 need_version=no
7793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7794 soname_spec='${libname}${release}${shared_ext}$major'
7795 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7796 shlibpath_var=LD_LIBRARY_PATH
7797 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7798 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7799 # the default ld.so.conf also contains /usr/contrib/lib and
7800 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7801 # libtool to hard-code these into programs
7804 cygwin* | mingw* | pw32*)
7805 version_type=windows
7806 shrext_cmds=".dll"
7807 need_version=no
7808 need_lib_prefix=no
7810 case $GCC,$host_os in
7811 yes,cygwin* | yes,mingw* | yes,pw32*)
7812 library_names_spec='$libname.dll.a'
7813 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7814 postinstall_cmds='base_file=`basename \${file}`~
7815 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7816 dldir=$destdir/`dirname \$dlpath`~
7817 test -d \$dldir || mkdir -p \$dldir~
7818 $install_prog $dir/$dlname \$dldir/$dlname~
7819 chmod a+x \$dldir/$dlname'
7820 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7821 dlpath=$dir/\$dldll~
7822 $rm \$dlpath'
7823 shlibpath_overrides_runpath=yes
7825 case $host_os in
7826 cygwin*)
7827 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7828 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7829 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7831 mingw*)
7832 # MinGW DLLs use traditional 'lib' prefix
7833 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7834 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7835 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7836 # It is most probably a Windows format PATH printed by
7837 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7838 # path with ; separators, and with drive letters. We can handle the
7839 # drive letters (cygwin fileutils understands them), so leave them,
7840 # especially as we might pass files found there to a mingw objdump,
7841 # which wouldn't understand a cygwinified path. Ahh.
7842 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7843 else
7844 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7847 pw32*)
7848 # pw32 DLLs use 'pw' prefix rather than 'lib'
7849 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7851 esac
7855 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7857 esac
7858 dynamic_linker='Win32 ld.exe'
7859 # FIXME: first we should search . and the directory the executable is in
7860 shlibpath_var=PATH
7863 darwin* | rhapsody*)
7864 dynamic_linker="$host_os dyld"
7865 version_type=darwin
7866 need_lib_prefix=no
7867 need_version=no
7868 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7869 soname_spec='${libname}${release}${major}$shared_ext'
7870 shlibpath_overrides_runpath=yes
7871 shlibpath_var=DYLD_LIBRARY_PATH
7872 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7873 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7874 if test "$GCC" = yes; then
7875 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"`
7876 else
7877 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7879 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7882 dgux*)
7883 version_type=linux
7884 need_lib_prefix=no
7885 need_version=no
7886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7887 soname_spec='${libname}${release}${shared_ext}$major'
7888 shlibpath_var=LD_LIBRARY_PATH
7891 freebsd1*)
7892 dynamic_linker=no
7895 kfreebsd*-gnu)
7896 version_type=linux
7897 need_lib_prefix=no
7898 need_version=no
7899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7900 soname_spec='${libname}${release}${shared_ext}$major'
7901 shlibpath_var=LD_LIBRARY_PATH
7902 shlibpath_overrides_runpath=no
7903 hardcode_into_libs=yes
7904 dynamic_linker='GNU ld.so'
7907 freebsd* | dragonfly*)
7908 # DragonFly does not have aout. When/if they implement a new
7909 # versioning mechanism, adjust this.
7910 if test -x /usr/bin/objformat; then
7911 objformat=`/usr/bin/objformat`
7912 else
7913 case $host_os in
7914 freebsd[123]*) objformat=aout ;;
7915 *) objformat=elf ;;
7916 esac
7918 version_type=freebsd-$objformat
7919 case $version_type in
7920 freebsd-elf*)
7921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7922 need_version=no
7923 need_lib_prefix=no
7925 freebsd-*)
7926 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7927 need_version=yes
7929 esac
7930 shlibpath_var=LD_LIBRARY_PATH
7931 case $host_os in
7932 freebsd2*)
7933 shlibpath_overrides_runpath=yes
7935 freebsd3.[01]* | freebsdelf3.[01]*)
7936 shlibpath_overrides_runpath=yes
7937 hardcode_into_libs=yes
7939 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
7940 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
7941 shlibpath_overrides_runpath=no
7942 hardcode_into_libs=yes
7944 freebsd*) # from 4.6 on
7945 shlibpath_overrides_runpath=yes
7946 hardcode_into_libs=yes
7948 esac
7951 gnu*)
7952 version_type=linux
7953 need_lib_prefix=no
7954 need_version=no
7955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7956 soname_spec='${libname}${release}${shared_ext}$major'
7957 shlibpath_var=LD_LIBRARY_PATH
7958 hardcode_into_libs=yes
7961 hpux9* | hpux10* | hpux11*)
7962 # Give a soname corresponding to the major version so that dld.sl refuses to
7963 # link against other versions.
7964 version_type=sunos
7965 need_lib_prefix=no
7966 need_version=no
7967 case $host_cpu in
7968 ia64*)
7969 shrext_cmds='.so'
7970 hardcode_into_libs=yes
7971 dynamic_linker="$host_os dld.so"
7972 shlibpath_var=LD_LIBRARY_PATH
7973 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7975 soname_spec='${libname}${release}${shared_ext}$major'
7976 if test "X$HPUX_IA64_MODE" = X32; then
7977 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7978 else
7979 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7981 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7983 hppa*64*)
7984 shrext_cmds='.sl'
7985 hardcode_into_libs=yes
7986 dynamic_linker="$host_os dld.sl"
7987 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7988 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7990 soname_spec='${libname}${release}${shared_ext}$major'
7991 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7992 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7995 shrext_cmds='.sl'
7996 dynamic_linker="$host_os dld.sl"
7997 shlibpath_var=SHLIB_PATH
7998 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8000 soname_spec='${libname}${release}${shared_ext}$major'
8002 esac
8003 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8004 postinstall_cmds='chmod 555 $lib'
8007 interix3*)
8008 version_type=linux
8009 need_lib_prefix=no
8010 need_version=no
8011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8012 soname_spec='${libname}${release}${shared_ext}$major'
8013 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8014 shlibpath_var=LD_LIBRARY_PATH
8015 shlibpath_overrides_runpath=no
8016 hardcode_into_libs=yes
8019 irix5* | irix6* | nonstopux*)
8020 case $host_os in
8021 nonstopux*) version_type=nonstopux ;;
8023 if test "$lt_cv_prog_gnu_ld" = yes; then
8024 version_type=linux
8025 else
8026 version_type=irix
8027 fi ;;
8028 esac
8029 need_lib_prefix=no
8030 need_version=no
8031 soname_spec='${libname}${release}${shared_ext}$major'
8032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8033 case $host_os in
8034 irix5* | nonstopux*)
8035 libsuff= shlibsuff=
8038 case $LD in # libtool.m4 will add one of these switches to LD
8039 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8040 libsuff= shlibsuff= libmagic=32-bit;;
8041 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8042 libsuff=32 shlibsuff=N32 libmagic=N32;;
8043 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8044 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8045 *) libsuff= shlibsuff= libmagic=never-match;;
8046 esac
8048 esac
8049 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8050 shlibpath_overrides_runpath=no
8051 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8052 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8053 hardcode_into_libs=yes
8056 # No shared lib support for Linux oldld, aout, or coff.
8057 linux*oldld* | linux*aout* | linux*coff*)
8058 dynamic_linker=no
8061 # This must be Linux ELF.
8062 linux*)
8063 version_type=linux
8064 need_lib_prefix=no
8065 need_version=no
8066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8067 soname_spec='${libname}${release}${shared_ext}$major'
8068 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8069 shlibpath_var=LD_LIBRARY_PATH
8070 shlibpath_overrides_runpath=no
8071 # This implies no fast_install, which is unacceptable.
8072 # Some rework will be needed to allow for fast_install
8073 # before this can be enabled.
8074 hardcode_into_libs=yes
8076 # find out which ABI we are using
8077 libsuff=
8078 case "$host_cpu" in
8079 x86_64*|s390x*|powerpc64*)
8080 echo '#line 8080 "configure"' > conftest.$ac_ext
8081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8082 (eval $ac_compile) 2>&5
8083 ac_status=$?
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085 (exit $ac_status); }; then
8086 case `/usr/bin/file conftest.$ac_objext` in
8087 *64-bit*)
8088 libsuff=64
8089 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8091 esac
8093 rm -rf conftest*
8095 esac
8097 # Append ld.so.conf contents to the search path
8098 if test -f /etc/ld.so.conf; then
8099 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/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8100 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8103 # We used to test for /lib/ld.so.1 and disable shared libraries on
8104 # powerpc, because MkLinux only supported shared libraries with the
8105 # GNU dynamic linker. Since this was broken with cross compilers,
8106 # most powerpc-linux boxes support dynamic linking these days and
8107 # people can always --disable-shared, the test was removed, and we
8108 # assume the GNU/Linux dynamic linker is in use.
8109 dynamic_linker='GNU/Linux ld.so'
8112 knetbsd*-gnu)
8113 version_type=linux
8114 need_lib_prefix=no
8115 need_version=no
8116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8117 soname_spec='${libname}${release}${shared_ext}$major'
8118 shlibpath_var=LD_LIBRARY_PATH
8119 shlibpath_overrides_runpath=no
8120 hardcode_into_libs=yes
8121 dynamic_linker='GNU ld.so'
8124 netbsd*)
8125 version_type=sunos
8126 need_lib_prefix=no
8127 need_version=no
8128 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8130 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8131 dynamic_linker='NetBSD (a.out) ld.so'
8132 else
8133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8134 soname_spec='${libname}${release}${shared_ext}$major'
8135 dynamic_linker='NetBSD ld.elf_so'
8137 shlibpath_var=LD_LIBRARY_PATH
8138 shlibpath_overrides_runpath=yes
8139 hardcode_into_libs=yes
8142 newsos6)
8143 version_type=linux
8144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8145 shlibpath_var=LD_LIBRARY_PATH
8146 shlibpath_overrides_runpath=yes
8149 nto-qnx*)
8150 version_type=linux
8151 need_lib_prefix=no
8152 need_version=no
8153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8154 soname_spec='${libname}${release}${shared_ext}$major'
8155 shlibpath_var=LD_LIBRARY_PATH
8156 shlibpath_overrides_runpath=yes
8159 openbsd*)
8160 version_type=sunos
8161 sys_lib_dlsearch_path_spec="/usr/lib"
8162 need_lib_prefix=no
8163 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8164 case $host_os in
8165 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8166 *) need_version=no ;;
8167 esac
8168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8169 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8170 shlibpath_var=LD_LIBRARY_PATH
8171 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8172 case $host_os in
8173 openbsd2.[89] | openbsd2.[89].*)
8174 shlibpath_overrides_runpath=no
8177 shlibpath_overrides_runpath=yes
8179 esac
8180 else
8181 shlibpath_overrides_runpath=yes
8185 os2*)
8186 libname_spec='$name'
8187 shrext_cmds=".dll"
8188 need_lib_prefix=no
8189 library_names_spec='$libname${shared_ext} $libname.a'
8190 dynamic_linker='OS/2 ld.exe'
8191 shlibpath_var=LIBPATH
8194 osf3* | osf4* | osf5*)
8195 version_type=osf
8196 need_lib_prefix=no
8197 need_version=no
8198 soname_spec='${libname}${release}${shared_ext}$major'
8199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8200 shlibpath_var=LD_LIBRARY_PATH
8201 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8202 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8205 solaris*)
8206 version_type=linux
8207 need_lib_prefix=no
8208 need_version=no
8209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8210 soname_spec='${libname}${release}${shared_ext}$major'
8211 shlibpath_var=LD_LIBRARY_PATH
8212 shlibpath_overrides_runpath=yes
8213 hardcode_into_libs=yes
8214 # ldd complains unless libraries are executable
8215 postinstall_cmds='chmod +x $lib'
8218 sunos4*)
8219 version_type=sunos
8220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8221 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8222 shlibpath_var=LD_LIBRARY_PATH
8223 shlibpath_overrides_runpath=yes
8224 if test "$with_gnu_ld" = yes; then
8225 need_lib_prefix=no
8227 need_version=yes
8230 sysv4 | sysv4.3*)
8231 version_type=linux
8232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8233 soname_spec='${libname}${release}${shared_ext}$major'
8234 shlibpath_var=LD_LIBRARY_PATH
8235 case $host_vendor in
8236 sni)
8237 shlibpath_overrides_runpath=no
8238 need_lib_prefix=no
8239 export_dynamic_flag_spec='${wl}-Blargedynsym'
8240 runpath_var=LD_RUN_PATH
8242 siemens)
8243 need_lib_prefix=no
8245 motorola)
8246 need_lib_prefix=no
8247 need_version=no
8248 shlibpath_overrides_runpath=no
8249 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8251 esac
8254 sysv4*MP*)
8255 if test -d /usr/nec ;then
8256 version_type=linux
8257 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8258 soname_spec='$libname${shared_ext}.$major'
8259 shlibpath_var=LD_LIBRARY_PATH
8263 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8264 version_type=freebsd-elf
8265 need_lib_prefix=no
8266 need_version=no
8267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8268 soname_spec='${libname}${release}${shared_ext}$major'
8269 shlibpath_var=LD_LIBRARY_PATH
8270 hardcode_into_libs=yes
8271 if test "$with_gnu_ld" = yes; then
8272 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8273 shlibpath_overrides_runpath=no
8274 else
8275 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8276 shlibpath_overrides_runpath=yes
8277 case $host_os in
8278 sco3.2v5*)
8279 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8281 esac
8283 sys_lib_dlsearch_path_spec='/usr/lib'
8286 uts4*)
8287 version_type=linux
8288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8289 soname_spec='${libname}${release}${shared_ext}$major'
8290 shlibpath_var=LD_LIBRARY_PATH
8294 dynamic_linker=no
8296 esac
8297 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8298 echo "${ECHO_T}$dynamic_linker" >&6
8299 test "$dynamic_linker" = no && can_build_shared=no
8301 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8302 if test "$GCC" = yes; then
8303 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8306 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8307 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8308 hardcode_action=
8309 if test -n "$hardcode_libdir_flag_spec" || \
8310 test -n "$runpath_var" || \
8311 test "X$hardcode_automatic" = "Xyes" ; then
8313 # We can hardcode non-existant directories.
8314 if test "$hardcode_direct" != no &&
8315 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8316 # have to relink, otherwise we might link with an installed library
8317 # when we should be linking with a yet-to-be-installed one
8318 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8319 test "$hardcode_minus_L" != no; then
8320 # Linking always hardcodes the temporary library directory.
8321 hardcode_action=relink
8322 else
8323 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8324 hardcode_action=immediate
8326 else
8327 # We cannot hardcode anything, or else we can only hardcode existing
8328 # directories.
8329 hardcode_action=unsupported
8331 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8332 echo "${ECHO_T}$hardcode_action" >&6
8334 if test "$hardcode_action" = relink; then
8335 # Fast installation is not supported
8336 enable_fast_install=no
8337 elif test "$shlibpath_overrides_runpath" = yes ||
8338 test "$enable_shared" = no; then
8339 # Fast installation is not necessary
8340 enable_fast_install=needless
8343 striplib=
8344 old_striplib=
8345 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8346 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8347 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8348 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8349 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8350 echo "$as_me:$LINENO: result: yes" >&5
8351 echo "${ECHO_T}yes" >&6
8352 else
8353 # FIXME - insert some real tests, host_os isn't really good enough
8354 case $host_os in
8355 darwin*)
8356 if test -n "$STRIP" ; then
8357 striplib="$STRIP -x"
8358 echo "$as_me:$LINENO: result: yes" >&5
8359 echo "${ECHO_T}yes" >&6
8360 else
8361 echo "$as_me:$LINENO: result: no" >&5
8362 echo "${ECHO_T}no" >&6
8366 echo "$as_me:$LINENO: result: no" >&5
8367 echo "${ECHO_T}no" >&6
8369 esac
8372 if test "x$enable_dlopen" != xyes; then
8373 enable_dlopen=unknown
8374 enable_dlopen_self=unknown
8375 enable_dlopen_self_static=unknown
8376 else
8377 lt_cv_dlopen=no
8378 lt_cv_dlopen_libs=
8380 case $host_os in
8381 beos*)
8382 lt_cv_dlopen="load_add_on"
8383 lt_cv_dlopen_libs=
8384 lt_cv_dlopen_self=yes
8387 mingw* | pw32*)
8388 lt_cv_dlopen="LoadLibrary"
8389 lt_cv_dlopen_libs=
8392 cygwin*)
8393 lt_cv_dlopen="dlopen"
8394 lt_cv_dlopen_libs=
8397 darwin*)
8398 # if libdl is installed we need to link against it
8399 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8400 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8401 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8402 echo $ECHO_N "(cached) $ECHO_C" >&6
8403 else
8404 ac_check_lib_save_LIBS=$LIBS
8405 LIBS="-ldl $LIBS"
8406 cat >conftest.$ac_ext <<_ACEOF
8407 /* confdefs.h. */
8408 _ACEOF
8409 cat confdefs.h >>conftest.$ac_ext
8410 cat >>conftest.$ac_ext <<_ACEOF
8411 /* end confdefs.h. */
8413 /* Override any gcc2 internal prototype to avoid an error. */
8414 #ifdef __cplusplus
8415 extern "C"
8416 #endif
8417 /* We use char because int might match the return type of a gcc2
8418 builtin and then its argument prototype would still apply. */
8419 char dlopen ();
8421 main ()
8423 dlopen ();
8425 return 0;
8427 _ACEOF
8428 rm -f conftest.$ac_objext conftest$ac_exeext
8429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8430 (eval $ac_link) 2>conftest.er1
8431 ac_status=$?
8432 grep -v '^ *+' conftest.er1 >conftest.err
8433 rm -f conftest.er1
8434 cat conftest.err >&5
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); } &&
8437 { ac_try='test -z "$ac_c_werror_flag"
8438 || test ! -s conftest.err'
8439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8440 (eval $ac_try) 2>&5
8441 ac_status=$?
8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443 (exit $ac_status); }; } &&
8444 { ac_try='test -s conftest$ac_exeext'
8445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8446 (eval $ac_try) 2>&5
8447 ac_status=$?
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); }; }; then
8450 ac_cv_lib_dl_dlopen=yes
8451 else
8452 echo "$as_me: failed program was:" >&5
8453 sed 's/^/| /' conftest.$ac_ext >&5
8455 ac_cv_lib_dl_dlopen=no
8457 rm -f conftest.err conftest.$ac_objext \
8458 conftest$ac_exeext conftest.$ac_ext
8459 LIBS=$ac_check_lib_save_LIBS
8461 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8462 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8463 if test $ac_cv_lib_dl_dlopen = yes; then
8464 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8465 else
8467 lt_cv_dlopen="dyld"
8468 lt_cv_dlopen_libs=
8469 lt_cv_dlopen_self=yes
8476 echo "$as_me:$LINENO: checking for shl_load" >&5
8477 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8478 if test "${ac_cv_func_shl_load+set}" = set; then
8479 echo $ECHO_N "(cached) $ECHO_C" >&6
8480 else
8481 cat >conftest.$ac_ext <<_ACEOF
8482 /* confdefs.h. */
8483 _ACEOF
8484 cat confdefs.h >>conftest.$ac_ext
8485 cat >>conftest.$ac_ext <<_ACEOF
8486 /* end confdefs.h. */
8487 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8488 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8489 #define shl_load innocuous_shl_load
8491 /* System header to define __stub macros and hopefully few prototypes,
8492 which can conflict with char shl_load (); below.
8493 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8494 <limits.h> exists even on freestanding compilers. */
8496 #ifdef __STDC__
8497 # include <limits.h>
8498 #else
8499 # include <assert.h>
8500 #endif
8502 #undef shl_load
8504 /* Override any gcc2 internal prototype to avoid an error. */
8505 #ifdef __cplusplus
8506 extern "C"
8508 #endif
8509 /* We use char because int might match the return type of a gcc2
8510 builtin and then its argument prototype would still apply. */
8511 char shl_load ();
8512 /* The GNU C library defines this for functions which it implements
8513 to always fail with ENOSYS. Some functions are actually named
8514 something starting with __ and the normal name is an alias. */
8515 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8516 choke me
8517 #else
8518 char (*f) () = shl_load;
8519 #endif
8520 #ifdef __cplusplus
8522 #endif
8525 main ()
8527 return f != shl_load;
8529 return 0;
8531 _ACEOF
8532 rm -f conftest.$ac_objext conftest$ac_exeext
8533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8534 (eval $ac_link) 2>conftest.er1
8535 ac_status=$?
8536 grep -v '^ *+' conftest.er1 >conftest.err
8537 rm -f conftest.er1
8538 cat conftest.err >&5
8539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540 (exit $ac_status); } &&
8541 { ac_try='test -z "$ac_c_werror_flag"
8542 || test ! -s conftest.err'
8543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8544 (eval $ac_try) 2>&5
8545 ac_status=$?
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); }; } &&
8548 { ac_try='test -s conftest$ac_exeext'
8549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8550 (eval $ac_try) 2>&5
8551 ac_status=$?
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); }; }; then
8554 ac_cv_func_shl_load=yes
8555 else
8556 echo "$as_me: failed program was:" >&5
8557 sed 's/^/| /' conftest.$ac_ext >&5
8559 ac_cv_func_shl_load=no
8561 rm -f conftest.err conftest.$ac_objext \
8562 conftest$ac_exeext conftest.$ac_ext
8564 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8565 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8566 if test $ac_cv_func_shl_load = yes; then
8567 lt_cv_dlopen="shl_load"
8568 else
8569 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8570 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8571 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8572 echo $ECHO_N "(cached) $ECHO_C" >&6
8573 else
8574 ac_check_lib_save_LIBS=$LIBS
8575 LIBS="-ldld $LIBS"
8576 cat >conftest.$ac_ext <<_ACEOF
8577 /* confdefs.h. */
8578 _ACEOF
8579 cat confdefs.h >>conftest.$ac_ext
8580 cat >>conftest.$ac_ext <<_ACEOF
8581 /* end confdefs.h. */
8583 /* Override any gcc2 internal prototype to avoid an error. */
8584 #ifdef __cplusplus
8585 extern "C"
8586 #endif
8587 /* We use char because int might match the return type of a gcc2
8588 builtin and then its argument prototype would still apply. */
8589 char shl_load ();
8591 main ()
8593 shl_load ();
8595 return 0;
8597 _ACEOF
8598 rm -f conftest.$ac_objext conftest$ac_exeext
8599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8600 (eval $ac_link) 2>conftest.er1
8601 ac_status=$?
8602 grep -v '^ *+' conftest.er1 >conftest.err
8603 rm -f conftest.er1
8604 cat conftest.err >&5
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); } &&
8607 { ac_try='test -z "$ac_c_werror_flag"
8608 || test ! -s conftest.err'
8609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8610 (eval $ac_try) 2>&5
8611 ac_status=$?
8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613 (exit $ac_status); }; } &&
8614 { ac_try='test -s conftest$ac_exeext'
8615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8616 (eval $ac_try) 2>&5
8617 ac_status=$?
8618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619 (exit $ac_status); }; }; then
8620 ac_cv_lib_dld_shl_load=yes
8621 else
8622 echo "$as_me: failed program was:" >&5
8623 sed 's/^/| /' conftest.$ac_ext >&5
8625 ac_cv_lib_dld_shl_load=no
8627 rm -f conftest.err conftest.$ac_objext \
8628 conftest$ac_exeext conftest.$ac_ext
8629 LIBS=$ac_check_lib_save_LIBS
8631 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8632 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8633 if test $ac_cv_lib_dld_shl_load = yes; then
8634 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8635 else
8636 echo "$as_me:$LINENO: checking for dlopen" >&5
8637 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8638 if test "${ac_cv_func_dlopen+set}" = set; then
8639 echo $ECHO_N "(cached) $ECHO_C" >&6
8640 else
8641 cat >conftest.$ac_ext <<_ACEOF
8642 /* confdefs.h. */
8643 _ACEOF
8644 cat confdefs.h >>conftest.$ac_ext
8645 cat >>conftest.$ac_ext <<_ACEOF
8646 /* end confdefs.h. */
8647 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8649 #define dlopen innocuous_dlopen
8651 /* System header to define __stub macros and hopefully few prototypes,
8652 which can conflict with char dlopen (); below.
8653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8654 <limits.h> exists even on freestanding compilers. */
8656 #ifdef __STDC__
8657 # include <limits.h>
8658 #else
8659 # include <assert.h>
8660 #endif
8662 #undef dlopen
8664 /* Override any gcc2 internal prototype to avoid an error. */
8665 #ifdef __cplusplus
8666 extern "C"
8668 #endif
8669 /* We use char because int might match the return type of a gcc2
8670 builtin and then its argument prototype would still apply. */
8671 char dlopen ();
8672 /* The GNU C library defines this for functions which it implements
8673 to always fail with ENOSYS. Some functions are actually named
8674 something starting with __ and the normal name is an alias. */
8675 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8676 choke me
8677 #else
8678 char (*f) () = dlopen;
8679 #endif
8680 #ifdef __cplusplus
8682 #endif
8685 main ()
8687 return f != dlopen;
8689 return 0;
8691 _ACEOF
8692 rm -f conftest.$ac_objext conftest$ac_exeext
8693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8694 (eval $ac_link) 2>conftest.er1
8695 ac_status=$?
8696 grep -v '^ *+' conftest.er1 >conftest.err
8697 rm -f conftest.er1
8698 cat conftest.err >&5
8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700 (exit $ac_status); } &&
8701 { ac_try='test -z "$ac_c_werror_flag"
8702 || test ! -s conftest.err'
8703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8704 (eval $ac_try) 2>&5
8705 ac_status=$?
8706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707 (exit $ac_status); }; } &&
8708 { ac_try='test -s conftest$ac_exeext'
8709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8710 (eval $ac_try) 2>&5
8711 ac_status=$?
8712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713 (exit $ac_status); }; }; then
8714 ac_cv_func_dlopen=yes
8715 else
8716 echo "$as_me: failed program was:" >&5
8717 sed 's/^/| /' conftest.$ac_ext >&5
8719 ac_cv_func_dlopen=no
8721 rm -f conftest.err conftest.$ac_objext \
8722 conftest$ac_exeext conftest.$ac_ext
8724 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8725 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8726 if test $ac_cv_func_dlopen = yes; then
8727 lt_cv_dlopen="dlopen"
8728 else
8729 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8730 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8731 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8732 echo $ECHO_N "(cached) $ECHO_C" >&6
8733 else
8734 ac_check_lib_save_LIBS=$LIBS
8735 LIBS="-ldl $LIBS"
8736 cat >conftest.$ac_ext <<_ACEOF
8737 /* confdefs.h. */
8738 _ACEOF
8739 cat confdefs.h >>conftest.$ac_ext
8740 cat >>conftest.$ac_ext <<_ACEOF
8741 /* end confdefs.h. */
8743 /* Override any gcc2 internal prototype to avoid an error. */
8744 #ifdef __cplusplus
8745 extern "C"
8746 #endif
8747 /* We use char because int might match the return type of a gcc2
8748 builtin and then its argument prototype would still apply. */
8749 char dlopen ();
8751 main ()
8753 dlopen ();
8755 return 0;
8757 _ACEOF
8758 rm -f conftest.$ac_objext conftest$ac_exeext
8759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8760 (eval $ac_link) 2>conftest.er1
8761 ac_status=$?
8762 grep -v '^ *+' conftest.er1 >conftest.err
8763 rm -f conftest.er1
8764 cat conftest.err >&5
8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766 (exit $ac_status); } &&
8767 { ac_try='test -z "$ac_c_werror_flag"
8768 || test ! -s conftest.err'
8769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8770 (eval $ac_try) 2>&5
8771 ac_status=$?
8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); }; } &&
8774 { ac_try='test -s conftest$ac_exeext'
8775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8776 (eval $ac_try) 2>&5
8777 ac_status=$?
8778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779 (exit $ac_status); }; }; then
8780 ac_cv_lib_dl_dlopen=yes
8781 else
8782 echo "$as_me: failed program was:" >&5
8783 sed 's/^/| /' conftest.$ac_ext >&5
8785 ac_cv_lib_dl_dlopen=no
8787 rm -f conftest.err conftest.$ac_objext \
8788 conftest$ac_exeext conftest.$ac_ext
8789 LIBS=$ac_check_lib_save_LIBS
8791 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8792 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8793 if test $ac_cv_lib_dl_dlopen = yes; then
8794 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8795 else
8796 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8797 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8798 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8799 echo $ECHO_N "(cached) $ECHO_C" >&6
8800 else
8801 ac_check_lib_save_LIBS=$LIBS
8802 LIBS="-lsvld $LIBS"
8803 cat >conftest.$ac_ext <<_ACEOF
8804 /* confdefs.h. */
8805 _ACEOF
8806 cat confdefs.h >>conftest.$ac_ext
8807 cat >>conftest.$ac_ext <<_ACEOF
8808 /* end confdefs.h. */
8810 /* Override any gcc2 internal prototype to avoid an error. */
8811 #ifdef __cplusplus
8812 extern "C"
8813 #endif
8814 /* We use char because int might match the return type of a gcc2
8815 builtin and then its argument prototype would still apply. */
8816 char dlopen ();
8818 main ()
8820 dlopen ();
8822 return 0;
8824 _ACEOF
8825 rm -f conftest.$ac_objext conftest$ac_exeext
8826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8827 (eval $ac_link) 2>conftest.er1
8828 ac_status=$?
8829 grep -v '^ *+' conftest.er1 >conftest.err
8830 rm -f conftest.er1
8831 cat conftest.err >&5
8832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833 (exit $ac_status); } &&
8834 { ac_try='test -z "$ac_c_werror_flag"
8835 || test ! -s conftest.err'
8836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8837 (eval $ac_try) 2>&5
8838 ac_status=$?
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); }; } &&
8841 { ac_try='test -s conftest$ac_exeext'
8842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8843 (eval $ac_try) 2>&5
8844 ac_status=$?
8845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846 (exit $ac_status); }; }; then
8847 ac_cv_lib_svld_dlopen=yes
8848 else
8849 echo "$as_me: failed program was:" >&5
8850 sed 's/^/| /' conftest.$ac_ext >&5
8852 ac_cv_lib_svld_dlopen=no
8854 rm -f conftest.err conftest.$ac_objext \
8855 conftest$ac_exeext conftest.$ac_ext
8856 LIBS=$ac_check_lib_save_LIBS
8858 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8859 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8860 if test $ac_cv_lib_svld_dlopen = yes; then
8861 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8862 else
8863 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8864 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8865 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8866 echo $ECHO_N "(cached) $ECHO_C" >&6
8867 else
8868 ac_check_lib_save_LIBS=$LIBS
8869 LIBS="-ldld $LIBS"
8870 cat >conftest.$ac_ext <<_ACEOF
8871 /* confdefs.h. */
8872 _ACEOF
8873 cat confdefs.h >>conftest.$ac_ext
8874 cat >>conftest.$ac_ext <<_ACEOF
8875 /* end confdefs.h. */
8877 /* Override any gcc2 internal prototype to avoid an error. */
8878 #ifdef __cplusplus
8879 extern "C"
8880 #endif
8881 /* We use char because int might match the return type of a gcc2
8882 builtin and then its argument prototype would still apply. */
8883 char dld_link ();
8885 main ()
8887 dld_link ();
8889 return 0;
8891 _ACEOF
8892 rm -f conftest.$ac_objext conftest$ac_exeext
8893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8894 (eval $ac_link) 2>conftest.er1
8895 ac_status=$?
8896 grep -v '^ *+' conftest.er1 >conftest.err
8897 rm -f conftest.er1
8898 cat conftest.err >&5
8899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900 (exit $ac_status); } &&
8901 { ac_try='test -z "$ac_c_werror_flag"
8902 || test ! -s conftest.err'
8903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8904 (eval $ac_try) 2>&5
8905 ac_status=$?
8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907 (exit $ac_status); }; } &&
8908 { ac_try='test -s conftest$ac_exeext'
8909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8910 (eval $ac_try) 2>&5
8911 ac_status=$?
8912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913 (exit $ac_status); }; }; then
8914 ac_cv_lib_dld_dld_link=yes
8915 else
8916 echo "$as_me: failed program was:" >&5
8917 sed 's/^/| /' conftest.$ac_ext >&5
8919 ac_cv_lib_dld_dld_link=no
8921 rm -f conftest.err conftest.$ac_objext \
8922 conftest$ac_exeext conftest.$ac_ext
8923 LIBS=$ac_check_lib_save_LIBS
8925 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8926 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8927 if test $ac_cv_lib_dld_dld_link = yes; then
8928 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8947 esac
8949 if test "x$lt_cv_dlopen" != xno; then
8950 enable_dlopen=yes
8951 else
8952 enable_dlopen=no
8955 case $lt_cv_dlopen in
8956 dlopen)
8957 save_CPPFLAGS="$CPPFLAGS"
8958 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8960 save_LDFLAGS="$LDFLAGS"
8961 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8963 save_LIBS="$LIBS"
8964 LIBS="$lt_cv_dlopen_libs $LIBS"
8966 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8967 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8968 if test "${lt_cv_dlopen_self+set}" = set; then
8969 echo $ECHO_N "(cached) $ECHO_C" >&6
8970 else
8971 if test "$cross_compiling" = yes; then :
8972 lt_cv_dlopen_self=cross
8973 else
8974 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8975 lt_status=$lt_dlunknown
8976 cat > conftest.$ac_ext <<EOF
8977 #line 8977 "configure"
8978 #include "confdefs.h"
8980 #if HAVE_DLFCN_H
8981 #include <dlfcn.h>
8982 #endif
8984 #include <stdio.h>
8986 #ifdef RTLD_GLOBAL
8987 # define LT_DLGLOBAL RTLD_GLOBAL
8988 #else
8989 # ifdef DL_GLOBAL
8990 # define LT_DLGLOBAL DL_GLOBAL
8991 # else
8992 # define LT_DLGLOBAL 0
8993 # endif
8994 #endif
8996 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8997 find out it does not work in some platform. */
8998 #ifndef LT_DLLAZY_OR_NOW
8999 # ifdef RTLD_LAZY
9000 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9001 # else
9002 # ifdef DL_LAZY
9003 # define LT_DLLAZY_OR_NOW DL_LAZY
9004 # else
9005 # ifdef RTLD_NOW
9006 # define LT_DLLAZY_OR_NOW RTLD_NOW
9007 # else
9008 # ifdef DL_NOW
9009 # define LT_DLLAZY_OR_NOW DL_NOW
9010 # else
9011 # define LT_DLLAZY_OR_NOW 0
9012 # endif
9013 # endif
9014 # endif
9015 # endif
9016 #endif
9018 #ifdef __cplusplus
9019 extern "C" void exit (int);
9020 #endif
9022 void fnord() { int i=42;}
9023 int main ()
9025 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9026 int status = $lt_dlunknown;
9028 if (self)
9030 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9031 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9032 /* dlclose (self); */
9034 else
9035 puts (dlerror ());
9037 exit (status);
9040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9041 (eval $ac_link) 2>&5
9042 ac_status=$?
9043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9045 (./conftest; exit; ) >&5 2>/dev/null
9046 lt_status=$?
9047 case x$lt_status in
9048 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9049 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9050 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9051 esac
9052 else :
9053 # compilation failed
9054 lt_cv_dlopen_self=no
9057 rm -fr conftest*
9061 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9062 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9064 if test "x$lt_cv_dlopen_self" = xyes; then
9065 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9066 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9067 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9068 if test "${lt_cv_dlopen_self_static+set}" = set; then
9069 echo $ECHO_N "(cached) $ECHO_C" >&6
9070 else
9071 if test "$cross_compiling" = yes; then :
9072 lt_cv_dlopen_self_static=cross
9073 else
9074 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9075 lt_status=$lt_dlunknown
9076 cat > conftest.$ac_ext <<EOF
9077 #line 9077 "configure"
9078 #include "confdefs.h"
9080 #if HAVE_DLFCN_H
9081 #include <dlfcn.h>
9082 #endif
9084 #include <stdio.h>
9086 #ifdef RTLD_GLOBAL
9087 # define LT_DLGLOBAL RTLD_GLOBAL
9088 #else
9089 # ifdef DL_GLOBAL
9090 # define LT_DLGLOBAL DL_GLOBAL
9091 # else
9092 # define LT_DLGLOBAL 0
9093 # endif
9094 #endif
9096 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9097 find out it does not work in some platform. */
9098 #ifndef LT_DLLAZY_OR_NOW
9099 # ifdef RTLD_LAZY
9100 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9101 # else
9102 # ifdef DL_LAZY
9103 # define LT_DLLAZY_OR_NOW DL_LAZY
9104 # else
9105 # ifdef RTLD_NOW
9106 # define LT_DLLAZY_OR_NOW RTLD_NOW
9107 # else
9108 # ifdef DL_NOW
9109 # define LT_DLLAZY_OR_NOW DL_NOW
9110 # else
9111 # define LT_DLLAZY_OR_NOW 0
9112 # endif
9113 # endif
9114 # endif
9115 # endif
9116 #endif
9118 #ifdef __cplusplus
9119 extern "C" void exit (int);
9120 #endif
9122 void fnord() { int i=42;}
9123 int main ()
9125 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9126 int status = $lt_dlunknown;
9128 if (self)
9130 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9131 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9132 /* dlclose (self); */
9134 else
9135 puts (dlerror ());
9137 exit (status);
9140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9141 (eval $ac_link) 2>&5
9142 ac_status=$?
9143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9145 (./conftest; exit; ) >&5 2>/dev/null
9146 lt_status=$?
9147 case x$lt_status in
9148 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9149 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9150 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9151 esac
9152 else :
9153 # compilation failed
9154 lt_cv_dlopen_self_static=no
9157 rm -fr conftest*
9161 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9162 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9165 CPPFLAGS="$save_CPPFLAGS"
9166 LDFLAGS="$save_LDFLAGS"
9167 LIBS="$save_LIBS"
9169 esac
9171 case $lt_cv_dlopen_self in
9172 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9173 *) enable_dlopen_self=unknown ;;
9174 esac
9176 case $lt_cv_dlopen_self_static in
9177 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9178 *) enable_dlopen_self_static=unknown ;;
9179 esac
9183 # Report which library types will actually be built
9184 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9185 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9186 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9187 echo "${ECHO_T}$can_build_shared" >&6
9189 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9190 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9191 test "$can_build_shared" = "no" && enable_shared=no
9193 # On AIX, shared libraries and static libraries use the same namespace, and
9194 # are all built from PIC.
9195 case $host_os in
9196 aix3*)
9197 test "$enable_shared" = yes && enable_static=no
9198 if test -n "$RANLIB"; then
9199 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9200 postinstall_cmds='$RANLIB $lib'
9204 aix4* | aix5*)
9205 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9206 test "$enable_shared" = yes && enable_static=no
9209 esac
9210 echo "$as_me:$LINENO: result: $enable_shared" >&5
9211 echo "${ECHO_T}$enable_shared" >&6
9213 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9214 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9215 # Make sure either enable_shared or enable_static is yes.
9216 test "$enable_shared" = yes || enable_static=yes
9217 echo "$as_me:$LINENO: result: $enable_static" >&5
9218 echo "${ECHO_T}$enable_static" >&6
9220 # The else clause should only fire when bootstrapping the
9221 # libtool distribution, otherwise you forgot to ship ltmain.sh
9222 # with your package, and you will get complaints that there are
9223 # no rules to generate ltmain.sh.
9224 if test -f "$ltmain"; then
9225 # See if we are running on zsh, and set the options which allow our commands through
9226 # without removal of \ escapes.
9227 if test -n "${ZSH_VERSION+set}" ; then
9228 setopt NO_GLOB_SUBST
9230 # Now quote all the things that may contain metacharacters while being
9231 # careful not to overquote the AC_SUBSTed values. We take copies of the
9232 # variables and quote the copies for generation of the libtool script.
9233 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9234 SED SHELL STRIP \
9235 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9236 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9237 deplibs_check_method reload_flag reload_cmds need_locks \
9238 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9239 lt_cv_sys_global_symbol_to_c_name_address \
9240 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9241 old_postinstall_cmds old_postuninstall_cmds \
9242 compiler \
9243 CC \
9244 LD \
9245 lt_prog_compiler_wl \
9246 lt_prog_compiler_pic \
9247 lt_prog_compiler_static \
9248 lt_prog_compiler_no_builtin_flag \
9249 export_dynamic_flag_spec \
9250 thread_safe_flag_spec \
9251 whole_archive_flag_spec \
9252 enable_shared_with_static_runtimes \
9253 old_archive_cmds \
9254 old_archive_from_new_cmds \
9255 predep_objects \
9256 postdep_objects \
9257 predeps \
9258 postdeps \
9259 compiler_lib_search_path \
9260 archive_cmds \
9261 archive_expsym_cmds \
9262 postinstall_cmds \
9263 postuninstall_cmds \
9264 old_archive_from_expsyms_cmds \
9265 allow_undefined_flag \
9266 no_undefined_flag \
9267 export_symbols_cmds \
9268 hardcode_libdir_flag_spec \
9269 hardcode_libdir_flag_spec_ld \
9270 hardcode_libdir_separator \
9271 hardcode_automatic \
9272 module_cmds \
9273 module_expsym_cmds \
9274 lt_cv_prog_compiler_c_o \
9275 exclude_expsyms \
9276 include_expsyms; do
9278 case $var in
9279 old_archive_cmds | \
9280 old_archive_from_new_cmds | \
9281 archive_cmds | \
9282 archive_expsym_cmds | \
9283 module_cmds | \
9284 module_expsym_cmds | \
9285 old_archive_from_expsyms_cmds | \
9286 export_symbols_cmds | \
9287 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9288 postinstall_cmds | postuninstall_cmds | \
9289 old_postinstall_cmds | old_postuninstall_cmds | \
9290 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9291 # Double-quote double-evaled strings.
9292 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9295 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9297 esac
9298 done
9300 case $lt_echo in
9301 *'\$0 --fallback-echo"')
9302 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9304 esac
9306 cfgfile="${ofile}T"
9307 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9308 $rm -f "$cfgfile"
9309 { echo "$as_me:$LINENO: creating $ofile" >&5
9310 echo "$as_me: creating $ofile" >&6;}
9312 cat <<__EOF__ >> "$cfgfile"
9313 #! $SHELL
9315 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9316 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9317 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9319 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9320 # Free Software Foundation, Inc.
9322 # This file is part of GNU Libtool:
9323 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9325 # This program is free software; you can redistribute it and/or modify
9326 # it under the terms of the GNU General Public License as published by
9327 # the Free Software Foundation; either version 2 of the License, or
9328 # (at your option) any later version.
9330 # This program is distributed in the hope that it will be useful, but
9331 # WITHOUT ANY WARRANTY; without even the implied warranty of
9332 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9333 # General Public License for more details.
9335 # You should have received a copy of the GNU General Public License
9336 # along with this program; if not, write to the Free Software
9337 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9339 # As a special exception to the GNU General Public License, if you
9340 # distribute this file as part of a program that contains a
9341 # configuration script generated by Autoconf, you may include it under
9342 # the same distribution terms that you use for the rest of that program.
9344 # A sed program that does not truncate output.
9345 SED=$lt_SED
9347 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9348 Xsed="$SED -e 1s/^X//"
9350 # The HP-UX ksh and POSIX shell print the target directory to stdout
9351 # if CDPATH is set.
9352 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9354 # The names of the tagged configurations supported by this script.
9355 available_tags=
9357 # ### BEGIN LIBTOOL CONFIG
9359 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9361 # Shell to use when invoking shell scripts.
9362 SHELL=$lt_SHELL
9364 # Whether or not to build shared libraries.
9365 build_libtool_libs=$enable_shared
9367 # Whether or not to build static libraries.
9368 build_old_libs=$enable_static
9370 # Whether or not to add -lc for building shared libraries.
9371 build_libtool_need_lc=$archive_cmds_need_lc
9373 # Whether or not to disallow shared libs when runtime libs are static
9374 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9376 # Whether or not to optimize for fast installation.
9377 fast_install=$enable_fast_install
9379 # The host system.
9380 host_alias=$host_alias
9381 host=$host
9382 host_os=$host_os
9384 # The build system.
9385 build_alias=$build_alias
9386 build=$build
9387 build_os=$build_os
9389 # An echo program that does not interpret backslashes.
9390 echo=$lt_echo
9392 # The archiver.
9393 AR=$lt_AR
9394 AR_FLAGS=$lt_AR_FLAGS
9396 # A C compiler.
9397 LTCC=$lt_LTCC
9399 # LTCC compiler flags.
9400 LTCFLAGS=$lt_LTCFLAGS
9402 # A language-specific compiler.
9403 CC=$lt_compiler
9405 # Is the compiler the GNU C compiler?
9406 with_gcc=$GCC
9408 # An ERE matcher.
9409 EGREP=$lt_EGREP
9411 # The linker used to build libraries.
9412 LD=$lt_LD
9414 # Whether we need hard or soft links.
9415 LN_S=$lt_LN_S
9417 # A BSD-compatible nm program.
9418 NM=$lt_NM
9420 # A symbol stripping program
9421 STRIP=$lt_STRIP
9423 # Used to examine libraries when file_magic_cmd begins "file"
9424 MAGIC_CMD=$MAGIC_CMD
9426 # Used on cygwin: DLL creation program.
9427 DLLTOOL="$DLLTOOL"
9429 # Used on cygwin: object dumper.
9430 OBJDUMP="$OBJDUMP"
9432 # Used on cygwin: assembler.
9433 AS="$AS"
9435 # The name of the directory that contains temporary libtool files.
9436 objdir=$objdir
9438 # How to create reloadable object files.
9439 reload_flag=$lt_reload_flag
9440 reload_cmds=$lt_reload_cmds
9442 # How to pass a linker flag through the compiler.
9443 wl=$lt_lt_prog_compiler_wl
9445 # Object file suffix (normally "o").
9446 objext="$ac_objext"
9448 # Old archive suffix (normally "a").
9449 libext="$libext"
9451 # Shared library suffix (normally ".so").
9452 shrext_cmds='$shrext_cmds'
9454 # Executable file suffix (normally "").
9455 exeext="$exeext"
9457 # Additional compiler flags for building library objects.
9458 pic_flag=$lt_lt_prog_compiler_pic
9459 pic_mode=$pic_mode
9461 # What is the maximum length of a command?
9462 max_cmd_len=$lt_cv_sys_max_cmd_len
9464 # Does compiler simultaneously support -c and -o options?
9465 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9467 # Must we lock files when doing compilation?
9468 need_locks=$lt_need_locks
9470 # Do we need the lib prefix for modules?
9471 need_lib_prefix=$need_lib_prefix
9473 # Do we need a version for libraries?
9474 need_version=$need_version
9476 # Whether dlopen is supported.
9477 dlopen_support=$enable_dlopen
9479 # Whether dlopen of programs is supported.
9480 dlopen_self=$enable_dlopen_self
9482 # Whether dlopen of statically linked programs is supported.
9483 dlopen_self_static=$enable_dlopen_self_static
9485 # Compiler flag to prevent dynamic linking.
9486 link_static_flag=$lt_lt_prog_compiler_static
9488 # Compiler flag to turn off builtin functions.
9489 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9491 # Compiler flag to allow reflexive dlopens.
9492 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9494 # Compiler flag to generate shared objects directly from archives.
9495 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9497 # Compiler flag to generate thread-safe objects.
9498 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9500 # Library versioning type.
9501 version_type=$version_type
9503 # Format of library name prefix.
9504 libname_spec=$lt_libname_spec
9506 # List of archive names. First name is the real one, the rest are links.
9507 # The last name is the one that the linker finds with -lNAME.
9508 library_names_spec=$lt_library_names_spec
9510 # The coded name of the library, if different from the real name.
9511 soname_spec=$lt_soname_spec
9513 # Commands used to build and install an old-style archive.
9514 RANLIB=$lt_RANLIB
9515 old_archive_cmds=$lt_old_archive_cmds
9516 old_postinstall_cmds=$lt_old_postinstall_cmds
9517 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9519 # Create an old-style archive from a shared archive.
9520 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9522 # Create a temporary old-style archive to link instead of a shared archive.
9523 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9525 # Commands used to build and install a shared archive.
9526 archive_cmds=$lt_archive_cmds
9527 archive_expsym_cmds=$lt_archive_expsym_cmds
9528 postinstall_cmds=$lt_postinstall_cmds
9529 postuninstall_cmds=$lt_postuninstall_cmds
9531 # Commands used to build a loadable module (assumed same as above if empty)
9532 module_cmds=$lt_module_cmds
9533 module_expsym_cmds=$lt_module_expsym_cmds
9535 # Commands to strip libraries.
9536 old_striplib=$lt_old_striplib
9537 striplib=$lt_striplib
9539 # Dependencies to place before the objects being linked to create a
9540 # shared library.
9541 predep_objects=$lt_predep_objects
9543 # Dependencies to place after the objects being linked to create a
9544 # shared library.
9545 postdep_objects=$lt_postdep_objects
9547 # Dependencies to place before the objects being linked to create a
9548 # shared library.
9549 predeps=$lt_predeps
9551 # Dependencies to place after the objects being linked to create a
9552 # shared library.
9553 postdeps=$lt_postdeps
9555 # The library search path used internally by the compiler when linking
9556 # a shared library.
9557 compiler_lib_search_path=$lt_compiler_lib_search_path
9559 # Method to check whether dependent libraries are shared objects.
9560 deplibs_check_method=$lt_deplibs_check_method
9562 # Command to use when deplibs_check_method == file_magic.
9563 file_magic_cmd=$lt_file_magic_cmd
9565 # Flag that allows shared libraries with undefined symbols to be built.
9566 allow_undefined_flag=$lt_allow_undefined_flag
9568 # Flag that forces no undefined symbols.
9569 no_undefined_flag=$lt_no_undefined_flag
9571 # Commands used to finish a libtool library installation in a directory.
9572 finish_cmds=$lt_finish_cmds
9574 # Same as above, but a single script fragment to be evaled but not shown.
9575 finish_eval=$lt_finish_eval
9577 # Take the output of nm and produce a listing of raw symbols and C names.
9578 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9580 # Transform the output of nm in a proper C declaration
9581 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9583 # Transform the output of nm in a C name address pair
9584 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9586 # This is the shared library runtime path variable.
9587 runpath_var=$runpath_var
9589 # This is the shared library path variable.
9590 shlibpath_var=$shlibpath_var
9592 # Is shlibpath searched before the hard-coded library search path?
9593 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9595 # How to hardcode a shared library path into an executable.
9596 hardcode_action=$hardcode_action
9598 # Whether we should hardcode library paths into libraries.
9599 hardcode_into_libs=$hardcode_into_libs
9601 # Flag to hardcode \$libdir into a binary during linking.
9602 # This must work even if \$libdir does not exist.
9603 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9605 # If ld is used when linking, flag to hardcode \$libdir into
9606 # a binary during linking. This must work even if \$libdir does
9607 # not exist.
9608 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9610 # Whether we need a single -rpath flag with a separated argument.
9611 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9613 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9614 # resulting binary.
9615 hardcode_direct=$hardcode_direct
9617 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9618 # resulting binary.
9619 hardcode_minus_L=$hardcode_minus_L
9621 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9622 # the resulting binary.
9623 hardcode_shlibpath_var=$hardcode_shlibpath_var
9625 # Set to yes if building a shared library automatically hardcodes DIR into the library
9626 # and all subsequent libraries and executables linked against it.
9627 hardcode_automatic=$hardcode_automatic
9629 # Variables whose values should be saved in libtool wrapper scripts and
9630 # restored at relink time.
9631 variables_saved_for_relink="$variables_saved_for_relink"
9633 # Whether libtool must link a program against all its dependency libraries.
9634 link_all_deplibs=$link_all_deplibs
9636 # Compile-time system search path for libraries
9637 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9639 # Run-time system search path for libraries
9640 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9642 # Fix the shell variable \$srcfile for the compiler.
9643 fix_srcfile_path="$fix_srcfile_path"
9645 # Set to yes if exported symbols are required.
9646 always_export_symbols=$always_export_symbols
9648 # The commands to list exported symbols.
9649 export_symbols_cmds=$lt_export_symbols_cmds
9651 # The commands to extract the exported symbol list from a shared archive.
9652 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9654 # Symbols that should not be listed in the preloaded symbols.
9655 exclude_expsyms=$lt_exclude_expsyms
9657 # Symbols that must always be exported.
9658 include_expsyms=$lt_include_expsyms
9660 # ### END LIBTOOL CONFIG
9662 __EOF__
9665 case $host_os in
9666 aix3*)
9667 cat <<\EOF >> "$cfgfile"
9669 # AIX sometimes has problems with the GCC collect2 program. For some
9670 # reason, if we set the COLLECT_NAMES environment variable, the problems
9671 # vanish in a puff of smoke.
9672 if test "X${COLLECT_NAMES+set}" != Xset; then
9673 COLLECT_NAMES=
9674 export COLLECT_NAMES
9678 esac
9680 # We use sed instead of cat because bash on DJGPP gets confused if
9681 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9682 # text mode, it properly converts lines to CR/LF. This bash problem
9683 # is reportedly fixed, but why not run on old versions too?
9684 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9686 mv -f "$cfgfile" "$ofile" || \
9687 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9688 chmod +x "$ofile"
9690 else
9691 # If there is no Makefile yet, we rely on a make rule to execute
9692 # `config.status --recheck' to rerun these tests and create the
9693 # libtool script then.
9694 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9695 if test -f "$ltmain_in"; then
9696 test -f Makefile && make "$ltmain"
9701 ac_ext=c
9702 ac_cpp='$CPP $CPPFLAGS'
9703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9707 CC="$lt_save_CC"
9710 # Check whether --with-tags or --without-tags was given.
9711 if test "${with_tags+set}" = set; then
9712 withval="$with_tags"
9713 tagnames="$withval"
9716 if test -f "$ltmain" && test -n "$tagnames"; then
9717 if test ! -f "${ofile}"; then
9718 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9719 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9722 if test -z "$LTCC"; then
9723 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9724 if test -z "$LTCC"; then
9725 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9726 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9727 else
9728 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9729 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9732 if test -z "$LTCFLAGS"; then
9733 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9736 # Extract list of available tagged configurations in $ofile.
9737 # Note that this assumes the entire list is on one line.
9738 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9740 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9741 for tagname in $tagnames; do
9742 IFS="$lt_save_ifs"
9743 # Check whether tagname contains only valid characters
9744 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9745 "") ;;
9746 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9747 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9748 { (exit 1); exit 1; }; }
9750 esac
9752 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9753 then
9754 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9755 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9756 { (exit 1); exit 1; }; }
9759 # Update the list of available tags.
9760 if test -n "$tagname"; then
9761 echo appending configuration tag \"$tagname\" to $ofile
9763 case $tagname in
9764 CXX)
9765 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9766 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9767 (test "X$CXX" != "Xg++"))) ; then
9768 ac_ext=cc
9769 ac_cpp='$CXXCPP $CPPFLAGS'
9770 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9771 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9772 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9777 archive_cmds_need_lc_CXX=no
9778 allow_undefined_flag_CXX=
9779 always_export_symbols_CXX=no
9780 archive_expsym_cmds_CXX=
9781 export_dynamic_flag_spec_CXX=
9782 hardcode_direct_CXX=no
9783 hardcode_libdir_flag_spec_CXX=
9784 hardcode_libdir_flag_spec_ld_CXX=
9785 hardcode_libdir_separator_CXX=
9786 hardcode_minus_L_CXX=no
9787 hardcode_shlibpath_var_CXX=unsupported
9788 hardcode_automatic_CXX=no
9789 module_cmds_CXX=
9790 module_expsym_cmds_CXX=
9791 link_all_deplibs_CXX=unknown
9792 old_archive_cmds_CXX=$old_archive_cmds
9793 no_undefined_flag_CXX=
9794 whole_archive_flag_spec_CXX=
9795 enable_shared_with_static_runtimes_CXX=no
9797 # Dependencies to place before and after the object being linked:
9798 predep_objects_CXX=
9799 postdep_objects_CXX=
9800 predeps_CXX=
9801 postdeps_CXX=
9802 compiler_lib_search_path_CXX=
9804 # Source file extension for C++ test sources.
9805 ac_ext=cpp
9807 # Object file extension for compiled C++ test sources.
9808 objext=o
9809 objext_CXX=$objext
9811 # Code to be used in simple compile tests
9812 lt_simple_compile_test_code="int some_variable = 0;\n"
9814 # Code to be used in simple link tests
9815 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9817 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9819 # If no C compiler was specified, use CC.
9820 LTCC=${LTCC-"$CC"}
9822 # If no C compiler flags were specified, use CFLAGS.
9823 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9825 # Allow CC to be a program name with arguments.
9826 compiler=$CC
9829 # save warnings/boilerplate of simple test code
9830 ac_outfile=conftest.$ac_objext
9831 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9832 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9833 _lt_compiler_boilerplate=`cat conftest.err`
9834 $rm conftest*
9836 ac_outfile=conftest.$ac_objext
9837 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9838 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9839 _lt_linker_boilerplate=`cat conftest.err`
9840 $rm conftest*
9843 # Allow CC to be a program name with arguments.
9844 lt_save_CC=$CC
9845 lt_save_LD=$LD
9846 lt_save_GCC=$GCC
9847 GCC=$GXX
9848 lt_save_with_gnu_ld=$with_gnu_ld
9849 lt_save_path_LD=$lt_cv_path_LD
9850 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9851 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9852 else
9853 $as_unset lt_cv_prog_gnu_ld
9855 if test -n "${lt_cv_path_LDCXX+set}"; then
9856 lt_cv_path_LD=$lt_cv_path_LDCXX
9857 else
9858 $as_unset lt_cv_path_LD
9860 test -z "${LDCXX+set}" || LD=$LDCXX
9861 CC=${CXX-"c++"}
9862 compiler=$CC
9863 compiler_CXX=$CC
9864 for cc_temp in $compiler""; do
9865 case $cc_temp in
9866 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9867 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9868 \-*) ;;
9869 *) break;;
9870 esac
9871 done
9872 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9875 # We don't want -fno-exception wen compiling C++ code, so set the
9876 # no_builtin_flag separately
9877 if test "$GXX" = yes; then
9878 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9879 else
9880 lt_prog_compiler_no_builtin_flag_CXX=
9883 if test "$GXX" = yes; then
9884 # Set up default GNU C++ configuration
9887 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9888 if test "${with_gnu_ld+set}" = set; then
9889 withval="$with_gnu_ld"
9890 test "$withval" = no || with_gnu_ld=yes
9891 else
9892 with_gnu_ld=no
9894 ac_prog=ld
9895 if test "$GCC" = yes; then
9896 # Check if gcc -print-prog-name=ld gives a path.
9897 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9898 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9899 case $host in
9900 *-*-mingw*)
9901 # gcc leaves a trailing carriage return which upsets mingw
9902 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9904 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9905 esac
9906 case $ac_prog in
9907 # Accept absolute paths.
9908 [\\/]* | ?:[\\/]*)
9909 re_direlt='/[^/][^/]*/\.\./'
9910 # Canonicalize the pathname of ld
9911 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9912 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9913 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9914 done
9915 test -z "$LD" && LD="$ac_prog"
9918 # If it fails, then pretend we aren't using GCC.
9919 ac_prog=ld
9922 # If it is relative, then search for the first ld in PATH.
9923 with_gnu_ld=unknown
9925 esac
9926 elif test "$with_gnu_ld" = yes; then
9927 echo "$as_me:$LINENO: checking for GNU ld" >&5
9928 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9929 else
9930 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9931 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9933 if test "${lt_cv_path_LD+set}" = set; then
9934 echo $ECHO_N "(cached) $ECHO_C" >&6
9935 else
9936 if test -z "$LD"; then
9937 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9938 for ac_dir in $PATH; do
9939 IFS="$lt_save_ifs"
9940 test -z "$ac_dir" && ac_dir=.
9941 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9942 lt_cv_path_LD="$ac_dir/$ac_prog"
9943 # Check to see if the program is GNU ld. I'd rather use --version,
9944 # but apparently some variants of GNU ld only accept -v.
9945 # Break only if it was the GNU/non-GNU ld that we prefer.
9946 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9947 *GNU* | *'with BFD'*)
9948 test "$with_gnu_ld" != no && break
9951 test "$with_gnu_ld" != yes && break
9953 esac
9955 done
9956 IFS="$lt_save_ifs"
9957 else
9958 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9962 LD="$lt_cv_path_LD"
9963 if test -n "$LD"; then
9964 echo "$as_me:$LINENO: result: $LD" >&5
9965 echo "${ECHO_T}$LD" >&6
9966 else
9967 echo "$as_me:$LINENO: result: no" >&5
9968 echo "${ECHO_T}no" >&6
9970 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9971 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9972 { (exit 1); exit 1; }; }
9973 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9974 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9975 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9976 echo $ECHO_N "(cached) $ECHO_C" >&6
9977 else
9978 # I'd rather use --version here, but apparently some GNU lds only accept -v.
9979 case `$LD -v 2>&1 </dev/null` in
9980 *GNU* | *'with BFD'*)
9981 lt_cv_prog_gnu_ld=yes
9984 lt_cv_prog_gnu_ld=no
9986 esac
9988 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9989 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9990 with_gnu_ld=$lt_cv_prog_gnu_ld
9994 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9995 # archiving commands below assume that GNU ld is being used.
9996 if test "$with_gnu_ld" = yes; then
9997 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9998 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'
10000 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10001 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10003 # If archive_cmds runs LD, not CC, wlarc should be empty
10004 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10005 # investigate it a little bit more. (MM)
10006 wlarc='${wl}'
10008 # ancient GNU ld didn't support --whole-archive et. al.
10009 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10010 grep 'no-whole-archive' > /dev/null; then
10011 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10012 else
10013 whole_archive_flag_spec_CXX=
10015 else
10016 with_gnu_ld=no
10017 wlarc=
10019 # A generic and very simple default shared library creation
10020 # command for GNU C++ for the case where it uses the native
10021 # linker, instead of GNU ld. If possible, this setting should
10022 # overridden to take advantage of the native linker features on
10023 # the platform it is being used on.
10024 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10027 # Commands to make compiler produce verbose output that lists
10028 # what "hidden" libraries, object files and flags are used when
10029 # linking a shared library.
10030 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10032 else
10033 GXX=no
10034 with_gnu_ld=no
10035 wlarc=
10038 # PORTME: fill in a description of your system's C++ link characteristics
10039 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10040 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10041 ld_shlibs_CXX=yes
10042 case $host_os in
10043 aix3*)
10044 # FIXME: insert proper C++ library support
10045 ld_shlibs_CXX=no
10047 aix4* | aix5*)
10048 if test "$host_cpu" = ia64; then
10049 # On IA64, the linker does run time linking by default, so we don't
10050 # have to do anything special.
10051 aix_use_runtimelinking=no
10052 exp_sym_flag='-Bexport'
10053 no_entry_flag=""
10054 else
10055 aix_use_runtimelinking=no
10057 # Test if we are trying to use run time linking or normal
10058 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10059 # need to do runtime linking.
10060 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10061 for ld_flag in $LDFLAGS; do
10062 case $ld_flag in
10063 *-brtl*)
10064 aix_use_runtimelinking=yes
10065 break
10067 esac
10068 done
10070 esac
10072 exp_sym_flag='-bexport'
10073 no_entry_flag='-bnoentry'
10076 # When large executables or shared objects are built, AIX ld can
10077 # have problems creating the table of contents. If linking a library
10078 # or program results in "error TOC overflow" add -mminimal-toc to
10079 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10080 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10082 archive_cmds_CXX=''
10083 hardcode_direct_CXX=yes
10084 hardcode_libdir_separator_CXX=':'
10085 link_all_deplibs_CXX=yes
10087 if test "$GXX" = yes; then
10088 case $host_os in aix4.[012]|aix4.[012].*)
10089 # We only want to do this on AIX 4.2 and lower, the check
10090 # below for broken collect2 doesn't work under 4.3+
10091 collect2name=`${CC} -print-prog-name=collect2`
10092 if test -f "$collect2name" && \
10093 strings "$collect2name" | grep resolve_lib_name >/dev/null
10094 then
10095 # We have reworked collect2
10096 hardcode_direct_CXX=yes
10097 else
10098 # We have old collect2
10099 hardcode_direct_CXX=unsupported
10100 # It fails to find uninstalled libraries when the uninstalled
10101 # path is not listed in the libpath. Setting hardcode_minus_L
10102 # to unsupported forces relinking
10103 hardcode_minus_L_CXX=yes
10104 hardcode_libdir_flag_spec_CXX='-L$libdir'
10105 hardcode_libdir_separator_CXX=
10108 esac
10109 shared_flag='-shared'
10110 if test "$aix_use_runtimelinking" = yes; then
10111 shared_flag="$shared_flag "'${wl}-G'
10113 else
10114 # not using gcc
10115 if test "$host_cpu" = ia64; then
10116 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10117 # chokes on -Wl,-G. The following line is correct:
10118 shared_flag='-G'
10119 else
10120 if test "$aix_use_runtimelinking" = yes; then
10121 shared_flag='${wl}-G'
10122 else
10123 shared_flag='${wl}-bM:SRE'
10128 # It seems that -bexpall does not export symbols beginning with
10129 # underscore (_), so it is better to generate a list of symbols to export.
10130 always_export_symbols_CXX=yes
10131 if test "$aix_use_runtimelinking" = yes; then
10132 # Warning - without using the other runtime loading flags (-brtl),
10133 # -berok will link without error, but may produce a broken library.
10134 allow_undefined_flag_CXX='-berok'
10135 # Determine the default libpath from the value encoded in an empty executable.
10136 cat >conftest.$ac_ext <<_ACEOF
10137 /* confdefs.h. */
10138 _ACEOF
10139 cat confdefs.h >>conftest.$ac_ext
10140 cat >>conftest.$ac_ext <<_ACEOF
10141 /* end confdefs.h. */
10144 main ()
10148 return 0;
10150 _ACEOF
10151 rm -f conftest.$ac_objext conftest$ac_exeext
10152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10153 (eval $ac_link) 2>conftest.er1
10154 ac_status=$?
10155 grep -v '^ *+' conftest.er1 >conftest.err
10156 rm -f conftest.er1
10157 cat conftest.err >&5
10158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159 (exit $ac_status); } &&
10160 { ac_try='test -z "$ac_cxx_werror_flag"
10161 || test ! -s conftest.err'
10162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10163 (eval $ac_try) 2>&5
10164 ac_status=$?
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); }; } &&
10167 { ac_try='test -s conftest$ac_exeext'
10168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10169 (eval $ac_try) 2>&5
10170 ac_status=$?
10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); }; }; then
10174 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10176 # Check for a 64-bit object if we didn't find anything.
10177 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; }
10178 }'`; fi
10179 else
10180 echo "$as_me: failed program was:" >&5
10181 sed 's/^/| /' conftest.$ac_ext >&5
10184 rm -f conftest.err conftest.$ac_objext \
10185 conftest$ac_exeext conftest.$ac_ext
10186 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10188 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10190 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10191 else
10192 if test "$host_cpu" = ia64; then
10193 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10194 allow_undefined_flag_CXX="-z nodefs"
10195 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10196 else
10197 # Determine the default libpath from the value encoded in an empty executable.
10198 cat >conftest.$ac_ext <<_ACEOF
10199 /* confdefs.h. */
10200 _ACEOF
10201 cat confdefs.h >>conftest.$ac_ext
10202 cat >>conftest.$ac_ext <<_ACEOF
10203 /* end confdefs.h. */
10206 main ()
10210 return 0;
10212 _ACEOF
10213 rm -f conftest.$ac_objext conftest$ac_exeext
10214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10215 (eval $ac_link) 2>conftest.er1
10216 ac_status=$?
10217 grep -v '^ *+' conftest.er1 >conftest.err
10218 rm -f conftest.er1
10219 cat conftest.err >&5
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); } &&
10222 { ac_try='test -z "$ac_cxx_werror_flag"
10223 || test ! -s conftest.err'
10224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10225 (eval $ac_try) 2>&5
10226 ac_status=$?
10227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228 (exit $ac_status); }; } &&
10229 { ac_try='test -s conftest$ac_exeext'
10230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10231 (eval $ac_try) 2>&5
10232 ac_status=$?
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); }; }; then
10236 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10238 # Check for a 64-bit object if we didn't find anything.
10239 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; }
10240 }'`; fi
10241 else
10242 echo "$as_me: failed program was:" >&5
10243 sed 's/^/| /' conftest.$ac_ext >&5
10246 rm -f conftest.err conftest.$ac_objext \
10247 conftest$ac_exeext conftest.$ac_ext
10248 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10250 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10251 # Warning - without using the other run time loading flags,
10252 # -berok will link without error, but may produce a broken library.
10253 no_undefined_flag_CXX=' ${wl}-bernotok'
10254 allow_undefined_flag_CXX=' ${wl}-berok'
10255 # Exported symbols can be pulled into shared objects from archives
10256 whole_archive_flag_spec_CXX='$convenience'
10257 archive_cmds_need_lc_CXX=yes
10258 # This is similar to how AIX traditionally builds its shared libraries.
10259 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10264 beos*)
10265 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10266 allow_undefined_flag_CXX=unsupported
10267 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10268 # support --undefined. This deserves some investigation. FIXME
10269 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10270 else
10271 ld_shlibs_CXX=no
10275 chorus*)
10276 case $cc_basename in
10278 # FIXME: insert proper C++ library support
10279 ld_shlibs_CXX=no
10281 esac
10284 cygwin* | mingw* | pw32*)
10285 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10286 # as there is no search path for DLLs.
10287 hardcode_libdir_flag_spec_CXX='-L$libdir'
10288 allow_undefined_flag_CXX=unsupported
10289 always_export_symbols_CXX=no
10290 enable_shared_with_static_runtimes_CXX=yes
10292 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10293 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10294 # If the export-symbols file already is a .def file (1st line
10295 # is EXPORTS), use it as is; otherwise, prepend...
10296 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10297 cp $export_symbols $output_objdir/$soname.def;
10298 else
10299 echo EXPORTS > $output_objdir/$soname.def;
10300 cat $export_symbols >> $output_objdir/$soname.def;
10302 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10303 else
10304 ld_shlibs_CXX=no
10307 darwin* | rhapsody*)
10308 case $host_os in
10309 rhapsody* | darwin1.[012])
10310 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10312 *) # Darwin 1.3 on
10313 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10314 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10315 else
10316 case ${MACOSX_DEPLOYMENT_TARGET} in
10317 10.[012])
10318 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10320 10.*)
10321 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10323 esac
10326 esac
10327 archive_cmds_need_lc_CXX=no
10328 hardcode_direct_CXX=no
10329 hardcode_automatic_CXX=yes
10330 hardcode_shlibpath_var_CXX=unsupported
10331 whole_archive_flag_spec_CXX=''
10332 link_all_deplibs_CXX=yes
10334 if test "$GXX" = yes ; then
10335 lt_int_apple_cc_single_mod=no
10336 output_verbose_link_cmd='echo'
10337 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10338 lt_int_apple_cc_single_mod=yes
10340 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10341 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10342 else
10343 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'
10345 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10346 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10347 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10348 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}'
10349 else
10350 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}'
10352 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}'
10353 else
10354 case $cc_basename in
10355 xlc*)
10356 output_verbose_link_cmd='echo'
10357 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'
10358 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10359 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10360 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}'
10361 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}'
10364 ld_shlibs_CXX=no
10366 esac
10370 dgux*)
10371 case $cc_basename in
10372 ec++*)
10373 # FIXME: insert proper C++ library support
10374 ld_shlibs_CXX=no
10376 ghcx*)
10377 # Green Hills C++ Compiler
10378 # FIXME: insert proper C++ library support
10379 ld_shlibs_CXX=no
10382 # FIXME: insert proper C++ library support
10383 ld_shlibs_CXX=no
10385 esac
10387 freebsd[12]*)
10388 # C++ shared libraries reported to be fairly broken before switch to ELF
10389 ld_shlibs_CXX=no
10391 freebsd-elf*)
10392 archive_cmds_need_lc_CXX=no
10394 freebsd* | kfreebsd*-gnu | dragonfly*)
10395 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10396 # conventions
10397 ld_shlibs_CXX=yes
10399 gnu*)
10401 hpux9*)
10402 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10403 hardcode_libdir_separator_CXX=:
10404 export_dynamic_flag_spec_CXX='${wl}-E'
10405 hardcode_direct_CXX=yes
10406 hardcode_minus_L_CXX=yes # Not in the search PATH,
10407 # but as the default
10408 # location of the library.
10410 case $cc_basename in
10411 CC*)
10412 # FIXME: insert proper C++ library support
10413 ld_shlibs_CXX=no
10415 aCC*)
10416 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'
10417 # Commands to make compiler produce verbose output that lists
10418 # what "hidden" libraries, object files and flags are used when
10419 # linking a shared library.
10421 # There doesn't appear to be a way to prevent this compiler from
10422 # explicitly linking system object files so we need to strip them
10423 # from the output so that they don't get included in the library
10424 # dependencies.
10425 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'
10428 if test "$GXX" = yes; then
10429 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'
10430 else
10431 # FIXME: insert proper C++ library support
10432 ld_shlibs_CXX=no
10435 esac
10437 hpux10*|hpux11*)
10438 if test $with_gnu_ld = no; then
10439 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10440 hardcode_libdir_separator_CXX=:
10442 case $host_cpu in
10443 hppa*64*|ia64*)
10444 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10447 export_dynamic_flag_spec_CXX='${wl}-E'
10449 esac
10451 case $host_cpu in
10452 hppa*64*|ia64*)
10453 hardcode_direct_CXX=no
10454 hardcode_shlibpath_var_CXX=no
10457 hardcode_direct_CXX=yes
10458 hardcode_minus_L_CXX=yes # Not in the search PATH,
10459 # but as the default
10460 # location of the library.
10462 esac
10464 case $cc_basename in
10465 CC*)
10466 # FIXME: insert proper C++ library support
10467 ld_shlibs_CXX=no
10469 aCC*)
10470 case $host_cpu in
10471 hppa*64*)
10472 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10474 ia64*)
10475 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10478 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10480 esac
10481 # Commands to make compiler produce verbose output that lists
10482 # what "hidden" libraries, object files and flags are used when
10483 # linking a shared library.
10485 # There doesn't appear to be a way to prevent this compiler from
10486 # explicitly linking system object files so we need to strip them
10487 # from the output so that they don't get included in the library
10488 # dependencies.
10489 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'
10492 if test "$GXX" = yes; then
10493 if test $with_gnu_ld = no; then
10494 case $host_cpu in
10495 hppa*64*)
10496 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10498 ia64*)
10499 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10502 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'
10504 esac
10506 else
10507 # FIXME: insert proper C++ library support
10508 ld_shlibs_CXX=no
10511 esac
10513 interix3*)
10514 hardcode_direct_CXX=no
10515 hardcode_shlibpath_var_CXX=no
10516 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10517 export_dynamic_flag_spec_CXX='${wl}-E'
10518 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10519 # Instead, shared libraries are loaded at an image base (0x10000000 by
10520 # default) and relocated if they conflict, which is a slow very memory
10521 # consuming and fragmenting process. To avoid this, we pick a random,
10522 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10523 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10524 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10525 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10527 irix5* | irix6*)
10528 case $cc_basename in
10529 CC*)
10530 # SGI C++
10531 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 ${output_objdir}/so_locations -o $lib'
10533 # Archives containing C++ object files must be created using
10534 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10535 # necessary to make sure instantiated templates are included
10536 # in the archive.
10537 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10540 if test "$GXX" = yes; then
10541 if test "$with_gnu_ld" = no; then
10542 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}${output_objdir}/so_locations -o $lib'
10543 else
10544 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'
10547 link_all_deplibs_CXX=yes
10549 esac
10550 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10551 hardcode_libdir_separator_CXX=:
10553 linux*)
10554 case $cc_basename in
10555 KCC*)
10556 # Kuck and Associates, Inc. (KAI) C++ Compiler
10558 # KCC will only create a shared library if the output file
10559 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10560 # to its proper name (with version) after linking.
10561 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'
10562 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'
10563 # Commands to make compiler produce verbose output that lists
10564 # what "hidden" libraries, object files and flags are used when
10565 # linking a shared library.
10567 # There doesn't appear to be a way to prevent this compiler from
10568 # explicitly linking system object files so we need to strip them
10569 # from the output so that they don't get included in the library
10570 # dependencies.
10571 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'
10573 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10574 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10576 # Archives containing C++ object files must be created using
10577 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10578 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10580 icpc*)
10581 # Intel C++
10582 with_gnu_ld=yes
10583 # version 8.0 and above of icpc choke on multiply defined symbols
10584 # if we add $predep_objects and $postdep_objects, however 7.1 and
10585 # earlier do not add the objects themselves.
10586 case `$CC -V 2>&1` in
10587 *"Version 7."*)
10588 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10589 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'
10591 *) # Version 8.0 or newer
10592 tmp_idyn=
10593 case $host_cpu in
10594 ia64*) tmp_idyn=' -i_dynamic';;
10595 esac
10596 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10597 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'
10599 esac
10600 archive_cmds_need_lc_CXX=no
10601 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10602 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10603 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10605 pgCC*)
10606 # Portland Group C++ compiler
10607 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10608 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10610 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10611 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10612 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10614 cxx*)
10615 # Compaq C++
10616 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10617 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'
10619 runpath_var=LD_RUN_PATH
10620 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10621 hardcode_libdir_separator_CXX=:
10623 # Commands to make compiler produce verbose output that lists
10624 # what "hidden" libraries, object files and flags are used when
10625 # linking a shared library.
10627 # There doesn't appear to be a way to prevent this compiler from
10628 # explicitly linking system object files so we need to strip them
10629 # from the output so that they don't get included in the library
10630 # dependencies.
10631 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'
10633 esac
10635 lynxos*)
10636 # FIXME: insert proper C++ library support
10637 ld_shlibs_CXX=no
10639 m88k*)
10640 # FIXME: insert proper C++ library support
10641 ld_shlibs_CXX=no
10643 mvs*)
10644 case $cc_basename in
10645 cxx*)
10646 # FIXME: insert proper C++ library support
10647 ld_shlibs_CXX=no
10650 # FIXME: insert proper C++ library support
10651 ld_shlibs_CXX=no
10653 esac
10655 netbsd*)
10656 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10657 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10658 wlarc=
10659 hardcode_libdir_flag_spec_CXX='-R$libdir'
10660 hardcode_direct_CXX=yes
10661 hardcode_shlibpath_var_CXX=no
10663 # Workaround some broken pre-1.5 toolchains
10664 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10666 openbsd2*)
10667 # C++ shared libraries are fairly broken
10668 ld_shlibs_CXX=no
10670 openbsd*)
10671 hardcode_direct_CXX=yes
10672 hardcode_shlibpath_var_CXX=no
10673 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10674 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10675 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10676 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10677 export_dynamic_flag_spec_CXX='${wl}-E'
10678 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10680 output_verbose_link_cmd='echo'
10682 osf3*)
10683 case $cc_basename in
10684 KCC*)
10685 # Kuck and Associates, Inc. (KAI) C++ Compiler
10687 # KCC will only create a shared library if the output file
10688 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10689 # to its proper name (with version) after linking.
10690 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'
10692 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10693 hardcode_libdir_separator_CXX=:
10695 # Archives containing C++ object files must be created using
10696 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10697 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10700 RCC*)
10701 # Rational C++ 2.4.1
10702 # FIXME: insert proper C++ library support
10703 ld_shlibs_CXX=no
10705 cxx*)
10706 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10707 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 ${output_objdir}/so_locations -o $lib'
10709 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10710 hardcode_libdir_separator_CXX=:
10712 # Commands to make compiler produce verbose output that lists
10713 # what "hidden" libraries, object files and flags are used when
10714 # linking a shared library.
10716 # There doesn't appear to be a way to prevent this compiler from
10717 # explicitly linking system object files so we need to strip them
10718 # from the output so that they don't get included in the library
10719 # dependencies.
10720 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'
10723 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10724 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10725 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}${output_objdir}/so_locations -o $lib'
10727 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10728 hardcode_libdir_separator_CXX=:
10730 # Commands to make compiler produce verbose output that lists
10731 # what "hidden" libraries, object files and flags are used when
10732 # linking a shared library.
10733 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10735 else
10736 # FIXME: insert proper C++ library support
10737 ld_shlibs_CXX=no
10740 esac
10742 osf4* | osf5*)
10743 case $cc_basename in
10744 KCC*)
10745 # Kuck and Associates, Inc. (KAI) C++ Compiler
10747 # KCC will only create a shared library if the output file
10748 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10749 # to its proper name (with version) after linking.
10750 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'
10752 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10753 hardcode_libdir_separator_CXX=:
10755 # Archives containing C++ object files must be created using
10756 # the KAI C++ compiler.
10757 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10759 RCC*)
10760 # Rational C++ 2.4.1
10761 # FIXME: insert proper C++ library support
10762 ld_shlibs_CXX=no
10764 cxx*)
10765 allow_undefined_flag_CXX=' -expect_unresolved \*'
10766 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 ${output_objdir}/so_locations -o $lib'
10767 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10768 echo "-hidden">> $lib.exp~
10769 $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 ${output_objdir}/so_locations -o $lib~
10770 $rm $lib.exp'
10772 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10773 hardcode_libdir_separator_CXX=:
10775 # Commands to make compiler produce verbose output that lists
10776 # what "hidden" libraries, object files and flags are used when
10777 # linking a shared library.
10779 # There doesn't appear to be a way to prevent this compiler from
10780 # explicitly linking system object files so we need to strip them
10781 # from the output so that they don't get included in the library
10782 # dependencies.
10783 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'
10786 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10787 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10788 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}${output_objdir}/so_locations -o $lib'
10790 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10791 hardcode_libdir_separator_CXX=:
10793 # Commands to make compiler produce verbose output that lists
10794 # what "hidden" libraries, object files and flags are used when
10795 # linking a shared library.
10796 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10798 else
10799 # FIXME: insert proper C++ library support
10800 ld_shlibs_CXX=no
10803 esac
10805 psos*)
10806 # FIXME: insert proper C++ library support
10807 ld_shlibs_CXX=no
10809 sunos4*)
10810 case $cc_basename in
10811 CC*)
10812 # Sun C++ 4.x
10813 # FIXME: insert proper C++ library support
10814 ld_shlibs_CXX=no
10816 lcc*)
10817 # Lucid
10818 # FIXME: insert proper C++ library support
10819 ld_shlibs_CXX=no
10822 # FIXME: insert proper C++ library support
10823 ld_shlibs_CXX=no
10825 esac
10827 solaris*)
10828 case $cc_basename in
10829 CC*)
10830 # Sun C++ 4.2, 5.x and Centerline C++
10831 archive_cmds_need_lc_CXX=yes
10832 no_undefined_flag_CXX=' -zdefs'
10833 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10834 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10835 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10837 hardcode_libdir_flag_spec_CXX='-R$libdir'
10838 hardcode_shlibpath_var_CXX=no
10839 case $host_os in
10840 solaris2.[0-5] | solaris2.[0-5].*) ;;
10842 # The C++ compiler is used as linker so we must use $wl
10843 # flag to pass the commands to the underlying system
10844 # linker. We must also pass each convience library through
10845 # to the system linker between allextract/defaultextract.
10846 # The C++ compiler will combine linker options so we
10847 # cannot just pass the convience library names through
10848 # without $wl.
10849 # Supported since Solaris 2.6 (maybe 2.5.1?)
10850 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
10852 esac
10853 link_all_deplibs_CXX=yes
10855 output_verbose_link_cmd='echo'
10857 # Archives containing C++ object files must be created using
10858 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10859 # necessary to make sure instantiated templates are included
10860 # in the archive.
10861 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10863 gcx*)
10864 # Green Hills C++ Compiler
10865 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10867 # The C++ compiler must be used to create the archive.
10868 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10871 # GNU C++ compiler with Solaris linker
10872 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10873 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10874 if $CC --version | grep -v '^2\.7' > /dev/null; then
10875 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10876 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10877 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10879 # Commands to make compiler produce verbose output that lists
10880 # what "hidden" libraries, object files and flags are used when
10881 # linking a shared library.
10882 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10883 else
10884 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10885 # platform.
10886 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10887 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10888 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10890 # Commands to make compiler produce verbose output that lists
10891 # what "hidden" libraries, object files and flags are used when
10892 # linking a shared library.
10893 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10896 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10899 esac
10901 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10902 no_undefined_flag_CXX='${wl}-z,text'
10903 archive_cmds_need_lc_CXX=no
10904 hardcode_shlibpath_var_CXX=no
10905 runpath_var='LD_RUN_PATH'
10907 case $cc_basename in
10908 CC*)
10909 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10910 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10913 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10914 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10916 esac
10918 sysv5* | sco3.2v5* | sco5v6*)
10919 # Note: We can NOT use -z defs as we might desire, because we do not
10920 # link with -lc, and that would cause any symbols used from libc to
10921 # always be unresolved, which means just about no library would
10922 # ever link correctly. If we're not using GNU ld we use -z text
10923 # though, which does catch some bad symbols but isn't as heavy-handed
10924 # as -z defs.
10925 # For security reasons, it is highly recommended that you always
10926 # use absolute paths for naming shared libraries, and exclude the
10927 # DT_RUNPATH tag from executables and libraries. But doing so
10928 # requires that you compile everything twice, which is a pain.
10929 # So that behaviour is only enabled if SCOABSPATH is set to a
10930 # non-empty value in the environment. Most likely only useful for
10931 # creating official distributions of packages.
10932 # This is a hack until libtool officially supports absolute path
10933 # names for shared libraries.
10934 no_undefined_flag_CXX='${wl}-z,text'
10935 allow_undefined_flag_CXX='${wl}-z,nodefs'
10936 archive_cmds_need_lc_CXX=no
10937 hardcode_shlibpath_var_CXX=no
10938 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10939 hardcode_libdir_separator_CXX=':'
10940 link_all_deplibs_CXX=yes
10941 export_dynamic_flag_spec_CXX='${wl}-Bexport'
10942 runpath_var='LD_RUN_PATH'
10944 case $cc_basename in
10945 CC*)
10946 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10947 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10950 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10951 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10953 esac
10955 tandem*)
10956 case $cc_basename in
10957 NCC*)
10958 # NonStop-UX NCC 3.20
10959 # FIXME: insert proper C++ library support
10960 ld_shlibs_CXX=no
10963 # FIXME: insert proper C++ library support
10964 ld_shlibs_CXX=no
10966 esac
10968 vxworks*)
10969 # FIXME: insert proper C++ library support
10970 ld_shlibs_CXX=no
10973 # FIXME: insert proper C++ library support
10974 ld_shlibs_CXX=no
10976 esac
10977 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10978 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10979 test "$ld_shlibs_CXX" = no && can_build_shared=no
10981 GCC_CXX="$GXX"
10982 LD_CXX="$LD"
10985 cat > conftest.$ac_ext <<EOF
10986 class Foo
10988 public:
10989 Foo (void) { a = 0; }
10990 private:
10991 int a;
10995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10996 (eval $ac_compile) 2>&5
10997 ac_status=$?
10998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999 (exit $ac_status); }; then
11000 # Parse the compiler output and extract the necessary
11001 # objects, libraries and library flags.
11003 # Sentinel used to keep track of whether or not we are before
11004 # the conftest object file.
11005 pre_test_object_deps_done=no
11007 # The `*' in the case matches for architectures that use `case' in
11008 # $output_verbose_cmd can trigger glob expansion during the loop
11009 # eval without this substitution.
11010 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11012 for p in `eval $output_verbose_link_cmd`; do
11013 case $p in
11015 -L* | -R* | -l*)
11016 # Some compilers place space between "-{L,R}" and the path.
11017 # Remove the space.
11018 if test $p = "-L" \
11019 || test $p = "-R"; then
11020 prev=$p
11021 continue
11022 else
11023 prev=
11026 if test "$pre_test_object_deps_done" = no; then
11027 case $p in
11028 -L* | -R*)
11029 # Internal compiler library paths should come after those
11030 # provided the user. The postdeps already come after the
11031 # user supplied libs so there is no need to process them.
11032 if test -z "$compiler_lib_search_path_CXX"; then
11033 compiler_lib_search_path_CXX="${prev}${p}"
11034 else
11035 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11038 # The "-l" case would never come before the object being
11039 # linked, so don't bother handling this case.
11040 esac
11041 else
11042 if test -z "$postdeps_CXX"; then
11043 postdeps_CXX="${prev}${p}"
11044 else
11045 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11050 *.$objext)
11051 # This assumes that the test object file only shows up
11052 # once in the compiler output.
11053 if test "$p" = "conftest.$objext"; then
11054 pre_test_object_deps_done=yes
11055 continue
11058 if test "$pre_test_object_deps_done" = no; then
11059 if test -z "$predep_objects_CXX"; then
11060 predep_objects_CXX="$p"
11061 else
11062 predep_objects_CXX="$predep_objects_CXX $p"
11064 else
11065 if test -z "$postdep_objects_CXX"; then
11066 postdep_objects_CXX="$p"
11067 else
11068 postdep_objects_CXX="$postdep_objects_CXX $p"
11073 *) ;; # Ignore the rest.
11075 esac
11076 done
11078 # Clean up.
11079 rm -f a.out a.exe
11080 else
11081 echo "libtool.m4: error: problem compiling CXX test program"
11084 $rm -f confest.$objext
11086 # PORTME: override above test on systems where it is broken
11087 case $host_os in
11088 interix3*)
11089 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11090 # hack all around it, let's just trust "g++" to DTRT.
11091 predep_objects_CXX=
11092 postdep_objects_CXX=
11093 postdeps_CXX=
11096 solaris*)
11097 case $cc_basename in
11098 CC*)
11099 # Adding this requires a known-good setup of shared libraries for
11100 # Sun compiler versions before 5.6, else PIC objects from an old
11101 # archive will be linked into the output, leading to subtle bugs.
11102 postdeps_CXX='-lCstd -lCrun'
11104 esac
11106 esac
11109 case " $postdeps_CXX " in
11110 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11111 esac
11113 lt_prog_compiler_wl_CXX=
11114 lt_prog_compiler_pic_CXX=
11115 lt_prog_compiler_static_CXX=
11117 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11118 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11120 # C++ specific cases for pic, static, wl, etc.
11121 if test "$GXX" = yes; then
11122 lt_prog_compiler_wl_CXX='-Wl,'
11123 lt_prog_compiler_static_CXX='-static'
11125 case $host_os in
11126 aix*)
11127 # All AIX code is PIC.
11128 if test "$host_cpu" = ia64; then
11129 # AIX 5 now supports IA64 processor
11130 lt_prog_compiler_static_CXX='-Bstatic'
11133 amigaos*)
11134 # FIXME: we need at least 68020 code to build shared libraries, but
11135 # adding the `-m68020' flag to GCC prevents building anything better,
11136 # like `-m68040'.
11137 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11139 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11140 # PIC is the default for these OSes.
11142 mingw* | os2* | pw32*)
11143 # This hack is so that the source file can tell whether it is being
11144 # built for inclusion in a dll (and should export symbols for example).
11145 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11147 darwin* | rhapsody*)
11148 # PIC is the default on this platform
11149 # Common symbols not allowed in MH_DYLIB files
11150 lt_prog_compiler_pic_CXX='-fno-common'
11152 *djgpp*)
11153 # DJGPP does not support shared libraries at all
11154 lt_prog_compiler_pic_CXX=
11156 interix3*)
11157 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11158 # Instead, we relocate shared libraries at runtime.
11160 sysv4*MP*)
11161 if test -d /usr/nec; then
11162 lt_prog_compiler_pic_CXX=-Kconform_pic
11165 hpux*)
11166 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11167 # not for PA HP-UX.
11168 case $host_cpu in
11169 hppa*64*|ia64*)
11172 lt_prog_compiler_pic_CXX='-fPIC'
11174 esac
11177 lt_prog_compiler_pic_CXX='-fPIC'
11179 esac
11180 else
11181 case $host_os in
11182 aix4* | aix5*)
11183 # All AIX code is PIC.
11184 if test "$host_cpu" = ia64; then
11185 # AIX 5 now supports IA64 processor
11186 lt_prog_compiler_static_CXX='-Bstatic'
11187 else
11188 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11191 chorus*)
11192 case $cc_basename in
11193 cxch68*)
11194 # Green Hills C++ Compiler
11195 # _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"
11197 esac
11199 darwin*)
11200 # PIC is the default on this platform
11201 # Common symbols not allowed in MH_DYLIB files
11202 case $cc_basename in
11203 xlc*)
11204 lt_prog_compiler_pic_CXX='-qnocommon'
11205 lt_prog_compiler_wl_CXX='-Wl,'
11207 esac
11209 dgux*)
11210 case $cc_basename in
11211 ec++*)
11212 lt_prog_compiler_pic_CXX='-KPIC'
11214 ghcx*)
11215 # Green Hills C++ Compiler
11216 lt_prog_compiler_pic_CXX='-pic'
11220 esac
11222 freebsd* | kfreebsd*-gnu | dragonfly*)
11223 # FreeBSD uses GNU C++
11225 hpux9* | hpux10* | hpux11*)
11226 case $cc_basename in
11227 CC*)
11228 lt_prog_compiler_wl_CXX='-Wl,'
11229 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11230 if test "$host_cpu" != ia64; then
11231 lt_prog_compiler_pic_CXX='+Z'
11234 aCC*)
11235 lt_prog_compiler_wl_CXX='-Wl,'
11236 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11237 case $host_cpu in
11238 hppa*64*|ia64*)
11239 # +Z the default
11242 lt_prog_compiler_pic_CXX='+Z'
11244 esac
11248 esac
11250 interix*)
11251 # This is c89, which is MS Visual C++ (no shared libs)
11252 # Anyone wants to do a port?
11254 irix5* | irix6* | nonstopux*)
11255 case $cc_basename in
11256 CC*)
11257 lt_prog_compiler_wl_CXX='-Wl,'
11258 lt_prog_compiler_static_CXX='-non_shared'
11259 # CC pic flag -KPIC is the default.
11263 esac
11265 linux*)
11266 case $cc_basename in
11267 KCC*)
11268 # KAI C++ Compiler
11269 lt_prog_compiler_wl_CXX='--backend -Wl,'
11270 lt_prog_compiler_pic_CXX='-fPIC'
11272 icpc* | ecpc*)
11273 # Intel C++
11274 lt_prog_compiler_wl_CXX='-Wl,'
11275 lt_prog_compiler_pic_CXX='-KPIC'
11276 lt_prog_compiler_static_CXX='-static'
11278 pgCC*)
11279 # Portland Group C++ compiler.
11280 lt_prog_compiler_wl_CXX='-Wl,'
11281 lt_prog_compiler_pic_CXX='-fpic'
11282 lt_prog_compiler_static_CXX='-Bstatic'
11284 cxx*)
11285 # Compaq C++
11286 # Make sure the PIC flag is empty. It appears that all Alpha
11287 # Linux and Compaq Tru64 Unix objects are PIC.
11288 lt_prog_compiler_pic_CXX=
11289 lt_prog_compiler_static_CXX='-non_shared'
11293 esac
11295 lynxos*)
11297 m88k*)
11299 mvs*)
11300 case $cc_basename in
11301 cxx*)
11302 lt_prog_compiler_pic_CXX='-W c,exportall'
11306 esac
11308 netbsd*)
11310 osf3* | osf4* | osf5*)
11311 case $cc_basename in
11312 KCC*)
11313 lt_prog_compiler_wl_CXX='--backend -Wl,'
11315 RCC*)
11316 # Rational C++ 2.4.1
11317 lt_prog_compiler_pic_CXX='-pic'
11319 cxx*)
11320 # Digital/Compaq C++
11321 lt_prog_compiler_wl_CXX='-Wl,'
11322 # Make sure the PIC flag is empty. It appears that all Alpha
11323 # Linux and Compaq Tru64 Unix objects are PIC.
11324 lt_prog_compiler_pic_CXX=
11325 lt_prog_compiler_static_CXX='-non_shared'
11329 esac
11331 psos*)
11333 solaris*)
11334 case $cc_basename in
11335 CC*)
11336 # Sun C++ 4.2, 5.x and Centerline C++
11337 lt_prog_compiler_pic_CXX='-KPIC'
11338 lt_prog_compiler_static_CXX='-Bstatic'
11339 lt_prog_compiler_wl_CXX='-Qoption ld '
11341 gcx*)
11342 # Green Hills C++ Compiler
11343 lt_prog_compiler_pic_CXX='-PIC'
11347 esac
11349 sunos4*)
11350 case $cc_basename in
11351 CC*)
11352 # Sun C++ 4.x
11353 lt_prog_compiler_pic_CXX='-pic'
11354 lt_prog_compiler_static_CXX='-Bstatic'
11356 lcc*)
11357 # Lucid
11358 lt_prog_compiler_pic_CXX='-pic'
11362 esac
11364 tandem*)
11365 case $cc_basename in
11366 NCC*)
11367 # NonStop-UX NCC 3.20
11368 lt_prog_compiler_pic_CXX='-KPIC'
11372 esac
11374 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11375 case $cc_basename in
11376 CC*)
11377 lt_prog_compiler_wl_CXX='-Wl,'
11378 lt_prog_compiler_pic_CXX='-KPIC'
11379 lt_prog_compiler_static_CXX='-Bstatic'
11381 esac
11383 vxworks*)
11386 lt_prog_compiler_can_build_shared_CXX=no
11388 esac
11391 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11392 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11395 # Check to make sure the PIC flag actually works.
11397 if test -n "$lt_prog_compiler_pic_CXX"; then
11399 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11400 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11401 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11402 echo $ECHO_N "(cached) $ECHO_C" >&6
11403 else
11404 lt_prog_compiler_pic_works_CXX=no
11405 ac_outfile=conftest.$ac_objext
11406 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11407 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11408 # Insert the option either (1) after the last *FLAGS variable, or
11409 # (2) before a word containing "conftest.", or (3) at the end.
11410 # Note that $ac_compile itself does not contain backslashes and begins
11411 # with a dollar sign (not a hyphen), so the echo should work correctly.
11412 # The option is referenced via a variable to avoid confusing sed.
11413 lt_compile=`echo "$ac_compile" | $SED \
11414 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11415 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11416 -e 's:$: $lt_compiler_flag:'`
11417 (eval echo "\"\$as_me:11417: $lt_compile\"" >&5)
11418 (eval "$lt_compile" 2>conftest.err)
11419 ac_status=$?
11420 cat conftest.err >&5
11421 echo "$as_me:11421: \$? = $ac_status" >&5
11422 if (exit $ac_status) && test -s "$ac_outfile"; then
11423 # The compiler can only warn and ignore the option if not recognized
11424 # So say no if there are warnings other than the usual output.
11425 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11426 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11427 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11428 lt_prog_compiler_pic_works_CXX=yes
11431 $rm conftest*
11434 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11435 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11437 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11438 case $lt_prog_compiler_pic_CXX in
11439 "" | " "*) ;;
11440 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11441 esac
11442 else
11443 lt_prog_compiler_pic_CXX=
11444 lt_prog_compiler_can_build_shared_CXX=no
11448 case $host_os in
11449 # For platforms which do not support PIC, -DPIC is meaningless:
11450 *djgpp*)
11451 lt_prog_compiler_pic_CXX=
11454 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11456 esac
11459 # Check to make sure the static flag actually works.
11461 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11462 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11463 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11464 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11465 echo $ECHO_N "(cached) $ECHO_C" >&6
11466 else
11467 lt_prog_compiler_static_works_CXX=no
11468 save_LDFLAGS="$LDFLAGS"
11469 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11470 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11471 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11472 # The linker 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 # Append any errors to the config.log.
11476 cat conftest.err 1>&5
11477 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11478 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11479 if diff conftest.exp conftest.er2 >/dev/null; then
11480 lt_prog_compiler_static_works_CXX=yes
11482 else
11483 lt_prog_compiler_static_works_CXX=yes
11486 $rm conftest*
11487 LDFLAGS="$save_LDFLAGS"
11490 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11491 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11493 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11495 else
11496 lt_prog_compiler_static_CXX=
11500 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11501 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11502 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11503 echo $ECHO_N "(cached) $ECHO_C" >&6
11504 else
11505 lt_cv_prog_compiler_c_o_CXX=no
11506 $rm -r conftest 2>/dev/null
11507 mkdir conftest
11508 cd conftest
11509 mkdir out
11510 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11512 lt_compiler_flag="-o out/conftest2.$ac_objext"
11513 # Insert the option either (1) after the last *FLAGS variable, or
11514 # (2) before a word containing "conftest.", or (3) at the end.
11515 # Note that $ac_compile itself does not contain backslashes and begins
11516 # with a dollar sign (not a hyphen), so the echo should work correctly.
11517 lt_compile=`echo "$ac_compile" | $SED \
11518 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11519 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11520 -e 's:$: $lt_compiler_flag:'`
11521 (eval echo "\"\$as_me:11521: $lt_compile\"" >&5)
11522 (eval "$lt_compile" 2>out/conftest.err)
11523 ac_status=$?
11524 cat out/conftest.err >&5
11525 echo "$as_me:11525: \$? = $ac_status" >&5
11526 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11527 then
11528 # The compiler can only warn and ignore the option if not recognized
11529 # So say no if there are warnings
11530 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11531 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11532 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11533 lt_cv_prog_compiler_c_o_CXX=yes
11536 chmod u+w . 2>&5
11537 $rm conftest*
11538 # SGI C++ compiler will create directory out/ii_files/ for
11539 # template instantiation
11540 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11541 $rm out/* && rmdir out
11542 cd ..
11543 rmdir conftest
11544 $rm conftest*
11547 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11548 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11551 hard_links="nottested"
11552 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11553 # do not overwrite the value of need_locks provided by the user
11554 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11555 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11556 hard_links=yes
11557 $rm conftest*
11558 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11559 touch conftest.a
11560 ln conftest.a conftest.b 2>&5 || hard_links=no
11561 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11562 echo "$as_me:$LINENO: result: $hard_links" >&5
11563 echo "${ECHO_T}$hard_links" >&6
11564 if test "$hard_links" = no; then
11565 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11566 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11567 need_locks=warn
11569 else
11570 need_locks=no
11573 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11574 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11576 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11577 case $host_os in
11578 aix4* | aix5*)
11579 # If we're using GNU nm, then we don't want the "-C" option.
11580 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11581 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11582 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'
11583 else
11584 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'
11587 pw32*)
11588 export_symbols_cmds_CXX="$ltdll_cmds"
11590 cygwin* | mingw*)
11591 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'
11594 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11596 esac
11598 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11599 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11600 test "$ld_shlibs_CXX" = no && can_build_shared=no
11603 # Do we need to explicitly link libc?
11605 case "x$archive_cmds_need_lc_CXX" in
11606 x|xyes)
11607 # Assume -lc should be added
11608 archive_cmds_need_lc_CXX=yes
11610 if test "$enable_shared" = yes && test "$GCC" = yes; then
11611 case $archive_cmds_CXX in
11612 *'~'*)
11613 # FIXME: we may have to deal with multi-command sequences.
11615 '$CC '*)
11616 # Test whether the compiler implicitly links with -lc since on some
11617 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11618 # to ld, don't add -lc before -lgcc.
11619 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11620 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11621 $rm conftest*
11622 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11625 (eval $ac_compile) 2>&5
11626 ac_status=$?
11627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628 (exit $ac_status); } 2>conftest.err; then
11629 soname=conftest
11630 lib=conftest
11631 libobjs=conftest.$ac_objext
11632 deplibs=
11633 wl=$lt_prog_compiler_wl_CXX
11634 pic_flag=$lt_prog_compiler_pic_CXX
11635 compiler_flags=-v
11636 linker_flags=-v
11637 verstring=
11638 output_objdir=.
11639 libname=conftest
11640 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11641 allow_undefined_flag_CXX=
11642 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11643 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11644 ac_status=$?
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); }
11647 then
11648 archive_cmds_need_lc_CXX=no
11649 else
11650 archive_cmds_need_lc_CXX=yes
11652 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11653 else
11654 cat conftest.err 1>&5
11656 $rm conftest*
11657 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11658 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11660 esac
11663 esac
11665 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11666 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11667 library_names_spec=
11668 libname_spec='lib$name'
11669 soname_spec=
11670 shrext_cmds=".so"
11671 postinstall_cmds=
11672 postuninstall_cmds=
11673 finish_cmds=
11674 finish_eval=
11675 shlibpath_var=
11676 shlibpath_overrides_runpath=unknown
11677 version_type=none
11678 dynamic_linker="$host_os ld.so"
11679 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11680 if test "$GCC" = yes; then
11681 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11682 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11683 # if the path contains ";" then we assume it to be the separator
11684 # otherwise default to the standard path separator (i.e. ":") - it is
11685 # assumed that no part of a normal pathname contains ";" but that should
11686 # okay in the real world where ";" in dirpaths is itself problematic.
11687 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11688 else
11689 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11691 else
11692 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11694 need_lib_prefix=unknown
11695 hardcode_into_libs=no
11697 # when you set need_version to no, make sure it does not cause -set_version
11698 # flags to be left without arguments
11699 need_version=unknown
11701 case $host_os in
11702 aix3*)
11703 version_type=linux
11704 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11705 shlibpath_var=LIBPATH
11707 # AIX 3 has no versioning support, so we append a major version to the name.
11708 soname_spec='${libname}${release}${shared_ext}$major'
11711 aix4* | aix5*)
11712 version_type=linux
11713 need_lib_prefix=no
11714 need_version=no
11715 hardcode_into_libs=yes
11716 if test "$host_cpu" = ia64; then
11717 # AIX 5 supports IA64
11718 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11719 shlibpath_var=LD_LIBRARY_PATH
11720 else
11721 # With GCC up to 2.95.x, collect2 would create an import file
11722 # for dependence libraries. The import file would start with
11723 # the line `#! .'. This would cause the generated library to
11724 # depend on `.', always an invalid library. This was fixed in
11725 # development snapshots of GCC prior to 3.0.
11726 case $host_os in
11727 aix4 | aix4.[01] | aix4.[01].*)
11728 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11729 echo ' yes '
11730 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11732 else
11733 can_build_shared=no
11736 esac
11737 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11738 # soname into executable. Probably we can add versioning support to
11739 # collect2, so additional links can be useful in future.
11740 if test "$aix_use_runtimelinking" = yes; then
11741 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11742 # instead of lib<name>.a to let people know that these are not
11743 # typical AIX shared libraries.
11744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11745 else
11746 # We preserve .a as extension for shared libraries through AIX4.2
11747 # and later when we are not doing run time linking.
11748 library_names_spec='${libname}${release}.a $libname.a'
11749 soname_spec='${libname}${release}${shared_ext}$major'
11751 shlibpath_var=LIBPATH
11755 amigaos*)
11756 library_names_spec='$libname.ixlibrary $libname.a'
11757 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11758 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'
11761 beos*)
11762 library_names_spec='${libname}${shared_ext}'
11763 dynamic_linker="$host_os ld.so"
11764 shlibpath_var=LIBRARY_PATH
11767 bsdi[45]*)
11768 version_type=linux
11769 need_version=no
11770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11771 soname_spec='${libname}${release}${shared_ext}$major'
11772 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11773 shlibpath_var=LD_LIBRARY_PATH
11774 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11775 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11776 # the default ld.so.conf also contains /usr/contrib/lib and
11777 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11778 # libtool to hard-code these into programs
11781 cygwin* | mingw* | pw32*)
11782 version_type=windows
11783 shrext_cmds=".dll"
11784 need_version=no
11785 need_lib_prefix=no
11787 case $GCC,$host_os in
11788 yes,cygwin* | yes,mingw* | yes,pw32*)
11789 library_names_spec='$libname.dll.a'
11790 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11791 postinstall_cmds='base_file=`basename \${file}`~
11792 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11793 dldir=$destdir/`dirname \$dlpath`~
11794 test -d \$dldir || mkdir -p \$dldir~
11795 $install_prog $dir/$dlname \$dldir/$dlname~
11796 chmod a+x \$dldir/$dlname'
11797 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11798 dlpath=$dir/\$dldll~
11799 $rm \$dlpath'
11800 shlibpath_overrides_runpath=yes
11802 case $host_os in
11803 cygwin*)
11804 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11805 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11806 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11808 mingw*)
11809 # MinGW DLLs use traditional 'lib' prefix
11810 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11811 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11812 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11813 # It is most probably a Windows format PATH printed by
11814 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11815 # path with ; separators, and with drive letters. We can handle the
11816 # drive letters (cygwin fileutils understands them), so leave them,
11817 # especially as we might pass files found there to a mingw objdump,
11818 # which wouldn't understand a cygwinified path. Ahh.
11819 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11820 else
11821 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11824 pw32*)
11825 # pw32 DLLs use 'pw' prefix rather than 'lib'
11826 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11828 esac
11832 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11834 esac
11835 dynamic_linker='Win32 ld.exe'
11836 # FIXME: first we should search . and the directory the executable is in
11837 shlibpath_var=PATH
11840 darwin* | rhapsody*)
11841 dynamic_linker="$host_os dyld"
11842 version_type=darwin
11843 need_lib_prefix=no
11844 need_version=no
11845 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11846 soname_spec='${libname}${release}${major}$shared_ext'
11847 shlibpath_overrides_runpath=yes
11848 shlibpath_var=DYLD_LIBRARY_PATH
11849 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11850 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11851 if test "$GCC" = yes; then
11852 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"`
11853 else
11854 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11856 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11859 dgux*)
11860 version_type=linux
11861 need_lib_prefix=no
11862 need_version=no
11863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11864 soname_spec='${libname}${release}${shared_ext}$major'
11865 shlibpath_var=LD_LIBRARY_PATH
11868 freebsd1*)
11869 dynamic_linker=no
11872 kfreebsd*-gnu)
11873 version_type=linux
11874 need_lib_prefix=no
11875 need_version=no
11876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11877 soname_spec='${libname}${release}${shared_ext}$major'
11878 shlibpath_var=LD_LIBRARY_PATH
11879 shlibpath_overrides_runpath=no
11880 hardcode_into_libs=yes
11881 dynamic_linker='GNU ld.so'
11884 freebsd* | dragonfly*)
11885 # DragonFly does not have aout. When/if they implement a new
11886 # versioning mechanism, adjust this.
11887 if test -x /usr/bin/objformat; then
11888 objformat=`/usr/bin/objformat`
11889 else
11890 case $host_os in
11891 freebsd[123]*) objformat=aout ;;
11892 *) objformat=elf ;;
11893 esac
11895 version_type=freebsd-$objformat
11896 case $version_type in
11897 freebsd-elf*)
11898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11899 need_version=no
11900 need_lib_prefix=no
11902 freebsd-*)
11903 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11904 need_version=yes
11906 esac
11907 shlibpath_var=LD_LIBRARY_PATH
11908 case $host_os in
11909 freebsd2*)
11910 shlibpath_overrides_runpath=yes
11912 freebsd3.[01]* | freebsdelf3.[01]*)
11913 shlibpath_overrides_runpath=yes
11914 hardcode_into_libs=yes
11916 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11917 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11918 shlibpath_overrides_runpath=no
11919 hardcode_into_libs=yes
11921 freebsd*) # from 4.6 on
11922 shlibpath_overrides_runpath=yes
11923 hardcode_into_libs=yes
11925 esac
11928 gnu*)
11929 version_type=linux
11930 need_lib_prefix=no
11931 need_version=no
11932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11933 soname_spec='${libname}${release}${shared_ext}$major'
11934 shlibpath_var=LD_LIBRARY_PATH
11935 hardcode_into_libs=yes
11938 hpux9* | hpux10* | hpux11*)
11939 # Give a soname corresponding to the major version so that dld.sl refuses to
11940 # link against other versions.
11941 version_type=sunos
11942 need_lib_prefix=no
11943 need_version=no
11944 case $host_cpu in
11945 ia64*)
11946 shrext_cmds='.so'
11947 hardcode_into_libs=yes
11948 dynamic_linker="$host_os dld.so"
11949 shlibpath_var=LD_LIBRARY_PATH
11950 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11952 soname_spec='${libname}${release}${shared_ext}$major'
11953 if test "X$HPUX_IA64_MODE" = X32; then
11954 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11955 else
11956 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11958 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11960 hppa*64*)
11961 shrext_cmds='.sl'
11962 hardcode_into_libs=yes
11963 dynamic_linker="$host_os dld.sl"
11964 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11965 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11967 soname_spec='${libname}${release}${shared_ext}$major'
11968 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11969 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11972 shrext_cmds='.sl'
11973 dynamic_linker="$host_os dld.sl"
11974 shlibpath_var=SHLIB_PATH
11975 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11977 soname_spec='${libname}${release}${shared_ext}$major'
11979 esac
11980 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11981 postinstall_cmds='chmod 555 $lib'
11984 interix3*)
11985 version_type=linux
11986 need_lib_prefix=no
11987 need_version=no
11988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11989 soname_spec='${libname}${release}${shared_ext}$major'
11990 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11991 shlibpath_var=LD_LIBRARY_PATH
11992 shlibpath_overrides_runpath=no
11993 hardcode_into_libs=yes
11996 irix5* | irix6* | nonstopux*)
11997 case $host_os in
11998 nonstopux*) version_type=nonstopux ;;
12000 if test "$lt_cv_prog_gnu_ld" = yes; then
12001 version_type=linux
12002 else
12003 version_type=irix
12004 fi ;;
12005 esac
12006 need_lib_prefix=no
12007 need_version=no
12008 soname_spec='${libname}${release}${shared_ext}$major'
12009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12010 case $host_os in
12011 irix5* | nonstopux*)
12012 libsuff= shlibsuff=
12015 case $LD in # libtool.m4 will add one of these switches to LD
12016 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12017 libsuff= shlibsuff= libmagic=32-bit;;
12018 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12019 libsuff=32 shlibsuff=N32 libmagic=N32;;
12020 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12021 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12022 *) libsuff= shlibsuff= libmagic=never-match;;
12023 esac
12025 esac
12026 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12027 shlibpath_overrides_runpath=no
12028 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12029 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12030 hardcode_into_libs=yes
12033 # No shared lib support for Linux oldld, aout, or coff.
12034 linux*oldld* | linux*aout* | linux*coff*)
12035 dynamic_linker=no
12038 # This must be Linux ELF.
12039 linux*)
12040 version_type=linux
12041 need_lib_prefix=no
12042 need_version=no
12043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12044 soname_spec='${libname}${release}${shared_ext}$major'
12045 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12046 shlibpath_var=LD_LIBRARY_PATH
12047 shlibpath_overrides_runpath=no
12048 # This implies no fast_install, which is unacceptable.
12049 # Some rework will be needed to allow for fast_install
12050 # before this can be enabled.
12051 hardcode_into_libs=yes
12053 # find out which ABI we are using
12054 libsuff=
12055 case "$host_cpu" in
12056 x86_64*|s390x*|powerpc64*)
12057 echo '#line 12057 "configure"' > conftest.$ac_ext
12058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12059 (eval $ac_compile) 2>&5
12060 ac_status=$?
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); }; then
12063 case `/usr/bin/file conftest.$ac_objext` in
12064 *64-bit*)
12065 libsuff=64
12066 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12068 esac
12070 rm -rf conftest*
12072 esac
12074 # Append ld.so.conf contents to the search path
12075 if test -f /etc/ld.so.conf; then
12076 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/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12077 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12080 # We used to test for /lib/ld.so.1 and disable shared libraries on
12081 # powerpc, because MkLinux only supported shared libraries with the
12082 # GNU dynamic linker. Since this was broken with cross compilers,
12083 # most powerpc-linux boxes support dynamic linking these days and
12084 # people can always --disable-shared, the test was removed, and we
12085 # assume the GNU/Linux dynamic linker is in use.
12086 dynamic_linker='GNU/Linux ld.so'
12089 knetbsd*-gnu)
12090 version_type=linux
12091 need_lib_prefix=no
12092 need_version=no
12093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12094 soname_spec='${libname}${release}${shared_ext}$major'
12095 shlibpath_var=LD_LIBRARY_PATH
12096 shlibpath_overrides_runpath=no
12097 hardcode_into_libs=yes
12098 dynamic_linker='GNU ld.so'
12101 netbsd*)
12102 version_type=sunos
12103 need_lib_prefix=no
12104 need_version=no
12105 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12107 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12108 dynamic_linker='NetBSD (a.out) ld.so'
12109 else
12110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12111 soname_spec='${libname}${release}${shared_ext}$major'
12112 dynamic_linker='NetBSD ld.elf_so'
12114 shlibpath_var=LD_LIBRARY_PATH
12115 shlibpath_overrides_runpath=yes
12116 hardcode_into_libs=yes
12119 newsos6)
12120 version_type=linux
12121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12122 shlibpath_var=LD_LIBRARY_PATH
12123 shlibpath_overrides_runpath=yes
12126 nto-qnx*)
12127 version_type=linux
12128 need_lib_prefix=no
12129 need_version=no
12130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12131 soname_spec='${libname}${release}${shared_ext}$major'
12132 shlibpath_var=LD_LIBRARY_PATH
12133 shlibpath_overrides_runpath=yes
12136 openbsd*)
12137 version_type=sunos
12138 sys_lib_dlsearch_path_spec="/usr/lib"
12139 need_lib_prefix=no
12140 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12141 case $host_os in
12142 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12143 *) need_version=no ;;
12144 esac
12145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12146 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12147 shlibpath_var=LD_LIBRARY_PATH
12148 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12149 case $host_os in
12150 openbsd2.[89] | openbsd2.[89].*)
12151 shlibpath_overrides_runpath=no
12154 shlibpath_overrides_runpath=yes
12156 esac
12157 else
12158 shlibpath_overrides_runpath=yes
12162 os2*)
12163 libname_spec='$name'
12164 shrext_cmds=".dll"
12165 need_lib_prefix=no
12166 library_names_spec='$libname${shared_ext} $libname.a'
12167 dynamic_linker='OS/2 ld.exe'
12168 shlibpath_var=LIBPATH
12171 osf3* | osf4* | osf5*)
12172 version_type=osf
12173 need_lib_prefix=no
12174 need_version=no
12175 soname_spec='${libname}${release}${shared_ext}$major'
12176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12177 shlibpath_var=LD_LIBRARY_PATH
12178 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12179 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12182 solaris*)
12183 version_type=linux
12184 need_lib_prefix=no
12185 need_version=no
12186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12187 soname_spec='${libname}${release}${shared_ext}$major'
12188 shlibpath_var=LD_LIBRARY_PATH
12189 shlibpath_overrides_runpath=yes
12190 hardcode_into_libs=yes
12191 # ldd complains unless libraries are executable
12192 postinstall_cmds='chmod +x $lib'
12195 sunos4*)
12196 version_type=sunos
12197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12198 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12199 shlibpath_var=LD_LIBRARY_PATH
12200 shlibpath_overrides_runpath=yes
12201 if test "$with_gnu_ld" = yes; then
12202 need_lib_prefix=no
12204 need_version=yes
12207 sysv4 | sysv4.3*)
12208 version_type=linux
12209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12210 soname_spec='${libname}${release}${shared_ext}$major'
12211 shlibpath_var=LD_LIBRARY_PATH
12212 case $host_vendor in
12213 sni)
12214 shlibpath_overrides_runpath=no
12215 need_lib_prefix=no
12216 export_dynamic_flag_spec='${wl}-Blargedynsym'
12217 runpath_var=LD_RUN_PATH
12219 siemens)
12220 need_lib_prefix=no
12222 motorola)
12223 need_lib_prefix=no
12224 need_version=no
12225 shlibpath_overrides_runpath=no
12226 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12228 esac
12231 sysv4*MP*)
12232 if test -d /usr/nec ;then
12233 version_type=linux
12234 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12235 soname_spec='$libname${shared_ext}.$major'
12236 shlibpath_var=LD_LIBRARY_PATH
12240 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12241 version_type=freebsd-elf
12242 need_lib_prefix=no
12243 need_version=no
12244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12245 soname_spec='${libname}${release}${shared_ext}$major'
12246 shlibpath_var=LD_LIBRARY_PATH
12247 hardcode_into_libs=yes
12248 if test "$with_gnu_ld" = yes; then
12249 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12250 shlibpath_overrides_runpath=no
12251 else
12252 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12253 shlibpath_overrides_runpath=yes
12254 case $host_os in
12255 sco3.2v5*)
12256 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12258 esac
12260 sys_lib_dlsearch_path_spec='/usr/lib'
12263 uts4*)
12264 version_type=linux
12265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12266 soname_spec='${libname}${release}${shared_ext}$major'
12267 shlibpath_var=LD_LIBRARY_PATH
12271 dynamic_linker=no
12273 esac
12274 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12275 echo "${ECHO_T}$dynamic_linker" >&6
12276 test "$dynamic_linker" = no && can_build_shared=no
12278 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12279 if test "$GCC" = yes; then
12280 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12283 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12284 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12285 hardcode_action_CXX=
12286 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12287 test -n "$runpath_var_CXX" || \
12288 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12290 # We can hardcode non-existant directories.
12291 if test "$hardcode_direct_CXX" != no &&
12292 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12293 # have to relink, otherwise we might link with an installed library
12294 # when we should be linking with a yet-to-be-installed one
12295 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12296 test "$hardcode_minus_L_CXX" != no; then
12297 # Linking always hardcodes the temporary library directory.
12298 hardcode_action_CXX=relink
12299 else
12300 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12301 hardcode_action_CXX=immediate
12303 else
12304 # We cannot hardcode anything, or else we can only hardcode existing
12305 # directories.
12306 hardcode_action_CXX=unsupported
12308 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12309 echo "${ECHO_T}$hardcode_action_CXX" >&6
12311 if test "$hardcode_action_CXX" = relink; then
12312 # Fast installation is not supported
12313 enable_fast_install=no
12314 elif test "$shlibpath_overrides_runpath" = yes ||
12315 test "$enable_shared" = no; then
12316 # Fast installation is not necessary
12317 enable_fast_install=needless
12321 # The else clause should only fire when bootstrapping the
12322 # libtool distribution, otherwise you forgot to ship ltmain.sh
12323 # with your package, and you will get complaints that there are
12324 # no rules to generate ltmain.sh.
12325 if test -f "$ltmain"; then
12326 # See if we are running on zsh, and set the options which allow our commands through
12327 # without removal of \ escapes.
12328 if test -n "${ZSH_VERSION+set}" ; then
12329 setopt NO_GLOB_SUBST
12331 # Now quote all the things that may contain metacharacters while being
12332 # careful not to overquote the AC_SUBSTed values. We take copies of the
12333 # variables and quote the copies for generation of the libtool script.
12334 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12335 SED SHELL STRIP \
12336 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12337 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12338 deplibs_check_method reload_flag reload_cmds need_locks \
12339 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12340 lt_cv_sys_global_symbol_to_c_name_address \
12341 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12342 old_postinstall_cmds old_postuninstall_cmds \
12343 compiler_CXX \
12344 CC_CXX \
12345 LD_CXX \
12346 lt_prog_compiler_wl_CXX \
12347 lt_prog_compiler_pic_CXX \
12348 lt_prog_compiler_static_CXX \
12349 lt_prog_compiler_no_builtin_flag_CXX \
12350 export_dynamic_flag_spec_CXX \
12351 thread_safe_flag_spec_CXX \
12352 whole_archive_flag_spec_CXX \
12353 enable_shared_with_static_runtimes_CXX \
12354 old_archive_cmds_CXX \
12355 old_archive_from_new_cmds_CXX \
12356 predep_objects_CXX \
12357 postdep_objects_CXX \
12358 predeps_CXX \
12359 postdeps_CXX \
12360 compiler_lib_search_path_CXX \
12361 archive_cmds_CXX \
12362 archive_expsym_cmds_CXX \
12363 postinstall_cmds_CXX \
12364 postuninstall_cmds_CXX \
12365 old_archive_from_expsyms_cmds_CXX \
12366 allow_undefined_flag_CXX \
12367 no_undefined_flag_CXX \
12368 export_symbols_cmds_CXX \
12369 hardcode_libdir_flag_spec_CXX \
12370 hardcode_libdir_flag_spec_ld_CXX \
12371 hardcode_libdir_separator_CXX \
12372 hardcode_automatic_CXX \
12373 module_cmds_CXX \
12374 module_expsym_cmds_CXX \
12375 lt_cv_prog_compiler_c_o_CXX \
12376 exclude_expsyms_CXX \
12377 include_expsyms_CXX; do
12379 case $var in
12380 old_archive_cmds_CXX | \
12381 old_archive_from_new_cmds_CXX | \
12382 archive_cmds_CXX | \
12383 archive_expsym_cmds_CXX | \
12384 module_cmds_CXX | \
12385 module_expsym_cmds_CXX | \
12386 old_archive_from_expsyms_cmds_CXX | \
12387 export_symbols_cmds_CXX | \
12388 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12389 postinstall_cmds | postuninstall_cmds | \
12390 old_postinstall_cmds | old_postuninstall_cmds | \
12391 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12392 # Double-quote double-evaled strings.
12393 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12396 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12398 esac
12399 done
12401 case $lt_echo in
12402 *'\$0 --fallback-echo"')
12403 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12405 esac
12407 cfgfile="$ofile"
12409 cat <<__EOF__ >> "$cfgfile"
12410 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12412 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12414 # Shell to use when invoking shell scripts.
12415 SHELL=$lt_SHELL
12417 # Whether or not to build shared libraries.
12418 build_libtool_libs=$enable_shared
12420 # Whether or not to build static libraries.
12421 build_old_libs=$enable_static
12423 # Whether or not to add -lc for building shared libraries.
12424 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12426 # Whether or not to disallow shared libs when runtime libs are static
12427 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12429 # Whether or not to optimize for fast installation.
12430 fast_install=$enable_fast_install
12432 # The host system.
12433 host_alias=$host_alias
12434 host=$host
12435 host_os=$host_os
12437 # The build system.
12438 build_alias=$build_alias
12439 build=$build
12440 build_os=$build_os
12442 # An echo program that does not interpret backslashes.
12443 echo=$lt_echo
12445 # The archiver.
12446 AR=$lt_AR
12447 AR_FLAGS=$lt_AR_FLAGS
12449 # A C compiler.
12450 LTCC=$lt_LTCC
12452 # LTCC compiler flags.
12453 LTCFLAGS=$lt_LTCFLAGS
12455 # A language-specific compiler.
12456 CC=$lt_compiler_CXX
12458 # Is the compiler the GNU C compiler?
12459 with_gcc=$GCC_CXX
12461 # An ERE matcher.
12462 EGREP=$lt_EGREP
12464 # The linker used to build libraries.
12465 LD=$lt_LD_CXX
12467 # Whether we need hard or soft links.
12468 LN_S=$lt_LN_S
12470 # A BSD-compatible nm program.
12471 NM=$lt_NM
12473 # A symbol stripping program
12474 STRIP=$lt_STRIP
12476 # Used to examine libraries when file_magic_cmd begins "file"
12477 MAGIC_CMD=$MAGIC_CMD
12479 # Used on cygwin: DLL creation program.
12480 DLLTOOL="$DLLTOOL"
12482 # Used on cygwin: object dumper.
12483 OBJDUMP="$OBJDUMP"
12485 # Used on cygwin: assembler.
12486 AS="$AS"
12488 # The name of the directory that contains temporary libtool files.
12489 objdir=$objdir
12491 # How to create reloadable object files.
12492 reload_flag=$lt_reload_flag
12493 reload_cmds=$lt_reload_cmds
12495 # How to pass a linker flag through the compiler.
12496 wl=$lt_lt_prog_compiler_wl_CXX
12498 # Object file suffix (normally "o").
12499 objext="$ac_objext"
12501 # Old archive suffix (normally "a").
12502 libext="$libext"
12504 # Shared library suffix (normally ".so").
12505 shrext_cmds='$shrext_cmds'
12507 # Executable file suffix (normally "").
12508 exeext="$exeext"
12510 # Additional compiler flags for building library objects.
12511 pic_flag=$lt_lt_prog_compiler_pic_CXX
12512 pic_mode=$pic_mode
12514 # What is the maximum length of a command?
12515 max_cmd_len=$lt_cv_sys_max_cmd_len
12517 # Does compiler simultaneously support -c and -o options?
12518 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12520 # Must we lock files when doing compilation?
12521 need_locks=$lt_need_locks
12523 # Do we need the lib prefix for modules?
12524 need_lib_prefix=$need_lib_prefix
12526 # Do we need a version for libraries?
12527 need_version=$need_version
12529 # Whether dlopen is supported.
12530 dlopen_support=$enable_dlopen
12532 # Whether dlopen of programs is supported.
12533 dlopen_self=$enable_dlopen_self
12535 # Whether dlopen of statically linked programs is supported.
12536 dlopen_self_static=$enable_dlopen_self_static
12538 # Compiler flag to prevent dynamic linking.
12539 link_static_flag=$lt_lt_prog_compiler_static_CXX
12541 # Compiler flag to turn off builtin functions.
12542 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12544 # Compiler flag to allow reflexive dlopens.
12545 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12547 # Compiler flag to generate shared objects directly from archives.
12548 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12550 # Compiler flag to generate thread-safe objects.
12551 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12553 # Library versioning type.
12554 version_type=$version_type
12556 # Format of library name prefix.
12557 libname_spec=$lt_libname_spec
12559 # List of archive names. First name is the real one, the rest are links.
12560 # The last name is the one that the linker finds with -lNAME.
12561 library_names_spec=$lt_library_names_spec
12563 # The coded name of the library, if different from the real name.
12564 soname_spec=$lt_soname_spec
12566 # Commands used to build and install an old-style archive.
12567 RANLIB=$lt_RANLIB
12568 old_archive_cmds=$lt_old_archive_cmds_CXX
12569 old_postinstall_cmds=$lt_old_postinstall_cmds
12570 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12572 # Create an old-style archive from a shared archive.
12573 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12575 # Create a temporary old-style archive to link instead of a shared archive.
12576 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12578 # Commands used to build and install a shared archive.
12579 archive_cmds=$lt_archive_cmds_CXX
12580 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12581 postinstall_cmds=$lt_postinstall_cmds
12582 postuninstall_cmds=$lt_postuninstall_cmds
12584 # Commands used to build a loadable module (assumed same as above if empty)
12585 module_cmds=$lt_module_cmds_CXX
12586 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12588 # Commands to strip libraries.
12589 old_striplib=$lt_old_striplib
12590 striplib=$lt_striplib
12592 # Dependencies to place before the objects being linked to create a
12593 # shared library.
12594 predep_objects=$lt_predep_objects_CXX
12596 # Dependencies to place after the objects being linked to create a
12597 # shared library.
12598 postdep_objects=$lt_postdep_objects_CXX
12600 # Dependencies to place before the objects being linked to create a
12601 # shared library.
12602 predeps=$lt_predeps_CXX
12604 # Dependencies to place after the objects being linked to create a
12605 # shared library.
12606 postdeps=$lt_postdeps_CXX
12608 # The library search path used internally by the compiler when linking
12609 # a shared library.
12610 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12612 # Method to check whether dependent libraries are shared objects.
12613 deplibs_check_method=$lt_deplibs_check_method
12615 # Command to use when deplibs_check_method == file_magic.
12616 file_magic_cmd=$lt_file_magic_cmd
12618 # Flag that allows shared libraries with undefined symbols to be built.
12619 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12621 # Flag that forces no undefined symbols.
12622 no_undefined_flag=$lt_no_undefined_flag_CXX
12624 # Commands used to finish a libtool library installation in a directory.
12625 finish_cmds=$lt_finish_cmds
12627 # Same as above, but a single script fragment to be evaled but not shown.
12628 finish_eval=$lt_finish_eval
12630 # Take the output of nm and produce a listing of raw symbols and C names.
12631 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12633 # Transform the output of nm in a proper C declaration
12634 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12636 # Transform the output of nm in a C name address pair
12637 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12639 # This is the shared library runtime path variable.
12640 runpath_var=$runpath_var
12642 # This is the shared library path variable.
12643 shlibpath_var=$shlibpath_var
12645 # Is shlibpath searched before the hard-coded library search path?
12646 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12648 # How to hardcode a shared library path into an executable.
12649 hardcode_action=$hardcode_action_CXX
12651 # Whether we should hardcode library paths into libraries.
12652 hardcode_into_libs=$hardcode_into_libs
12654 # Flag to hardcode \$libdir into a binary during linking.
12655 # This must work even if \$libdir does not exist.
12656 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12658 # If ld is used when linking, flag to hardcode \$libdir into
12659 # a binary during linking. This must work even if \$libdir does
12660 # not exist.
12661 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12663 # Whether we need a single -rpath flag with a separated argument.
12664 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12666 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12667 # resulting binary.
12668 hardcode_direct=$hardcode_direct_CXX
12670 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12671 # resulting binary.
12672 hardcode_minus_L=$hardcode_minus_L_CXX
12674 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12675 # the resulting binary.
12676 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12678 # Set to yes if building a shared library automatically hardcodes DIR into the library
12679 # and all subsequent libraries and executables linked against it.
12680 hardcode_automatic=$hardcode_automatic_CXX
12682 # Variables whose values should be saved in libtool wrapper scripts and
12683 # restored at relink time.
12684 variables_saved_for_relink="$variables_saved_for_relink"
12686 # Whether libtool must link a program against all its dependency libraries.
12687 link_all_deplibs=$link_all_deplibs_CXX
12689 # Compile-time system search path for libraries
12690 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12692 # Run-time system search path for libraries
12693 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12695 # Fix the shell variable \$srcfile for the compiler.
12696 fix_srcfile_path="$fix_srcfile_path_CXX"
12698 # Set to yes if exported symbols are required.
12699 always_export_symbols=$always_export_symbols_CXX
12701 # The commands to list exported symbols.
12702 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12704 # The commands to extract the exported symbol list from a shared archive.
12705 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12707 # Symbols that should not be listed in the preloaded symbols.
12708 exclude_expsyms=$lt_exclude_expsyms_CXX
12710 # Symbols that must always be exported.
12711 include_expsyms=$lt_include_expsyms_CXX
12713 # ### END LIBTOOL TAG CONFIG: $tagname
12715 __EOF__
12718 else
12719 # If there is no Makefile yet, we rely on a make rule to execute
12720 # `config.status --recheck' to rerun these tests and create the
12721 # libtool script then.
12722 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12723 if test -f "$ltmain_in"; then
12724 test -f Makefile && make "$ltmain"
12729 ac_ext=c
12730 ac_cpp='$CPP $CPPFLAGS'
12731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12735 CC=$lt_save_CC
12736 LDCXX=$LD
12737 LD=$lt_save_LD
12738 GCC=$lt_save_GCC
12739 with_gnu_ldcxx=$with_gnu_ld
12740 with_gnu_ld=$lt_save_with_gnu_ld
12741 lt_cv_path_LDCXX=$lt_cv_path_LD
12742 lt_cv_path_LD=$lt_save_path_LD
12743 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12744 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12746 else
12747 tagname=""
12751 F77)
12752 if test -n "$F77" && test "X$F77" != "Xno"; then
12754 ac_ext=f
12755 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12756 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12757 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12760 archive_cmds_need_lc_F77=no
12761 allow_undefined_flag_F77=
12762 always_export_symbols_F77=no
12763 archive_expsym_cmds_F77=
12764 export_dynamic_flag_spec_F77=
12765 hardcode_direct_F77=no
12766 hardcode_libdir_flag_spec_F77=
12767 hardcode_libdir_flag_spec_ld_F77=
12768 hardcode_libdir_separator_F77=
12769 hardcode_minus_L_F77=no
12770 hardcode_automatic_F77=no
12771 module_cmds_F77=
12772 module_expsym_cmds_F77=
12773 link_all_deplibs_F77=unknown
12774 old_archive_cmds_F77=$old_archive_cmds
12775 no_undefined_flag_F77=
12776 whole_archive_flag_spec_F77=
12777 enable_shared_with_static_runtimes_F77=no
12779 # Source file extension for f77 test sources.
12780 ac_ext=f
12782 # Object file extension for compiled f77 test sources.
12783 objext=o
12784 objext_F77=$objext
12786 # Code to be used in simple compile tests
12787 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12789 # Code to be used in simple link tests
12790 lt_simple_link_test_code=" program t\n end\n"
12792 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12794 # If no C compiler was specified, use CC.
12795 LTCC=${LTCC-"$CC"}
12797 # If no C compiler flags were specified, use CFLAGS.
12798 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12800 # Allow CC to be a program name with arguments.
12801 compiler=$CC
12804 # save warnings/boilerplate of simple test code
12805 ac_outfile=conftest.$ac_objext
12806 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12807 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12808 _lt_compiler_boilerplate=`cat conftest.err`
12809 $rm conftest*
12811 ac_outfile=conftest.$ac_objext
12812 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12813 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12814 _lt_linker_boilerplate=`cat conftest.err`
12815 $rm conftest*
12818 # Allow CC to be a program name with arguments.
12819 lt_save_CC="$CC"
12820 CC=${F77-"f77"}
12821 compiler=$CC
12822 compiler_F77=$CC
12823 for cc_temp in $compiler""; do
12824 case $cc_temp in
12825 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12826 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12827 \-*) ;;
12828 *) break;;
12829 esac
12830 done
12831 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12834 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12835 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12836 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12837 echo "${ECHO_T}$can_build_shared" >&6
12839 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12840 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12841 test "$can_build_shared" = "no" && enable_shared=no
12843 # On AIX, shared libraries and static libraries use the same namespace, and
12844 # are all built from PIC.
12845 case $host_os in
12846 aix3*)
12847 test "$enable_shared" = yes && enable_static=no
12848 if test -n "$RANLIB"; then
12849 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12850 postinstall_cmds='$RANLIB $lib'
12853 aix4* | aix5*)
12854 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12855 test "$enable_shared" = yes && enable_static=no
12858 esac
12859 echo "$as_me:$LINENO: result: $enable_shared" >&5
12860 echo "${ECHO_T}$enable_shared" >&6
12862 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12863 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12864 # Make sure either enable_shared or enable_static is yes.
12865 test "$enable_shared" = yes || enable_static=yes
12866 echo "$as_me:$LINENO: result: $enable_static" >&5
12867 echo "${ECHO_T}$enable_static" >&6
12869 GCC_F77="$G77"
12870 LD_F77="$LD"
12872 lt_prog_compiler_wl_F77=
12873 lt_prog_compiler_pic_F77=
12874 lt_prog_compiler_static_F77=
12876 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12877 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12879 if test "$GCC" = yes; then
12880 lt_prog_compiler_wl_F77='-Wl,'
12881 lt_prog_compiler_static_F77='-static'
12883 case $host_os in
12884 aix*)
12885 # All AIX code is PIC.
12886 if test "$host_cpu" = ia64; then
12887 # AIX 5 now supports IA64 processor
12888 lt_prog_compiler_static_F77='-Bstatic'
12892 amigaos*)
12893 # FIXME: we need at least 68020 code to build shared libraries, but
12894 # adding the `-m68020' flag to GCC prevents building anything better,
12895 # like `-m68040'.
12896 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12899 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12900 # PIC is the default for these OSes.
12903 mingw* | pw32* | os2*)
12904 # This hack is so that the source file can tell whether it is being
12905 # built for inclusion in a dll (and should export symbols for example).
12906 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12909 darwin* | rhapsody*)
12910 # PIC is the default on this platform
12911 # Common symbols not allowed in MH_DYLIB files
12912 lt_prog_compiler_pic_F77='-fno-common'
12915 interix3*)
12916 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12917 # Instead, we relocate shared libraries at runtime.
12920 msdosdjgpp*)
12921 # Just because we use GCC doesn't mean we suddenly get shared libraries
12922 # on systems that don't support them.
12923 lt_prog_compiler_can_build_shared_F77=no
12924 enable_shared=no
12927 sysv4*MP*)
12928 if test -d /usr/nec; then
12929 lt_prog_compiler_pic_F77=-Kconform_pic
12933 hpux*)
12934 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12935 # not for PA HP-UX.
12936 case $host_cpu in
12937 hppa*64*|ia64*)
12938 # +Z the default
12941 lt_prog_compiler_pic_F77='-fPIC'
12943 esac
12947 lt_prog_compiler_pic_F77='-fPIC'
12949 esac
12950 else
12951 # PORTME Check for flag to pass linker flags through the system compiler.
12952 case $host_os in
12953 aix*)
12954 lt_prog_compiler_wl_F77='-Wl,'
12955 if test "$host_cpu" = ia64; then
12956 # AIX 5 now supports IA64 processor
12957 lt_prog_compiler_static_F77='-Bstatic'
12958 else
12959 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12962 darwin*)
12963 # PIC is the default on this platform
12964 # Common symbols not allowed in MH_DYLIB files
12965 case $cc_basename in
12966 xlc*)
12967 lt_prog_compiler_pic_F77='-qnocommon'
12968 lt_prog_compiler_wl_F77='-Wl,'
12970 esac
12973 mingw* | pw32* | os2*)
12974 # This hack is so that the source file can tell whether it is being
12975 # built for inclusion in a dll (and should export symbols for example).
12976 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12979 hpux9* | hpux10* | hpux11*)
12980 lt_prog_compiler_wl_F77='-Wl,'
12981 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12982 # not for PA HP-UX.
12983 case $host_cpu in
12984 hppa*64*|ia64*)
12985 # +Z the default
12988 lt_prog_compiler_pic_F77='+Z'
12990 esac
12991 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12992 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12995 irix5* | irix6* | nonstopux*)
12996 lt_prog_compiler_wl_F77='-Wl,'
12997 # PIC (with -KPIC) is the default.
12998 lt_prog_compiler_static_F77='-non_shared'
13001 newsos6)
13002 lt_prog_compiler_pic_F77='-KPIC'
13003 lt_prog_compiler_static_F77='-Bstatic'
13006 linux*)
13007 case $cc_basename in
13008 icc* | ecc*)
13009 lt_prog_compiler_wl_F77='-Wl,'
13010 lt_prog_compiler_pic_F77='-KPIC'
13011 lt_prog_compiler_static_F77='-static'
13013 pgcc* | pgf77* | pgf90* | pgf95*)
13014 # Portland Group compilers (*not* the Pentium gcc compiler,
13015 # which looks to be a dead project)
13016 lt_prog_compiler_wl_F77='-Wl,'
13017 lt_prog_compiler_pic_F77='-fpic'
13018 lt_prog_compiler_static_F77='-Bstatic'
13020 ccc*)
13021 lt_prog_compiler_wl_F77='-Wl,'
13022 # All Alpha code is PIC.
13023 lt_prog_compiler_static_F77='-non_shared'
13025 esac
13028 osf3* | osf4* | osf5*)
13029 lt_prog_compiler_wl_F77='-Wl,'
13030 # All OSF/1 code is PIC.
13031 lt_prog_compiler_static_F77='-non_shared'
13034 solaris*)
13035 lt_prog_compiler_pic_F77='-KPIC'
13036 lt_prog_compiler_static_F77='-Bstatic'
13037 case $cc_basename in
13038 f77* | f90* | f95*)
13039 lt_prog_compiler_wl_F77='-Qoption ld ';;
13041 lt_prog_compiler_wl_F77='-Wl,';;
13042 esac
13045 sunos4*)
13046 lt_prog_compiler_wl_F77='-Qoption ld '
13047 lt_prog_compiler_pic_F77='-PIC'
13048 lt_prog_compiler_static_F77='-Bstatic'
13051 sysv4 | sysv4.2uw2* | sysv4.3*)
13052 lt_prog_compiler_wl_F77='-Wl,'
13053 lt_prog_compiler_pic_F77='-KPIC'
13054 lt_prog_compiler_static_F77='-Bstatic'
13057 sysv4*MP*)
13058 if test -d /usr/nec ;then
13059 lt_prog_compiler_pic_F77='-Kconform_pic'
13060 lt_prog_compiler_static_F77='-Bstatic'
13064 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13065 lt_prog_compiler_wl_F77='-Wl,'
13066 lt_prog_compiler_pic_F77='-KPIC'
13067 lt_prog_compiler_static_F77='-Bstatic'
13070 unicos*)
13071 lt_prog_compiler_wl_F77='-Wl,'
13072 lt_prog_compiler_can_build_shared_F77=no
13075 uts4*)
13076 lt_prog_compiler_pic_F77='-pic'
13077 lt_prog_compiler_static_F77='-Bstatic'
13081 lt_prog_compiler_can_build_shared_F77=no
13083 esac
13086 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13087 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13090 # Check to make sure the PIC flag actually works.
13092 if test -n "$lt_prog_compiler_pic_F77"; then
13094 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13095 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13096 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13097 echo $ECHO_N "(cached) $ECHO_C" >&6
13098 else
13099 lt_prog_compiler_pic_works_F77=no
13100 ac_outfile=conftest.$ac_objext
13101 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13102 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13103 # Insert the option either (1) after the last *FLAGS variable, or
13104 # (2) before a word containing "conftest.", or (3) at the end.
13105 # Note that $ac_compile itself does not contain backslashes and begins
13106 # with a dollar sign (not a hyphen), so the echo should work correctly.
13107 # The option is referenced via a variable to avoid confusing sed.
13108 lt_compile=`echo "$ac_compile" | $SED \
13109 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13110 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13111 -e 's:$: $lt_compiler_flag:'`
13112 (eval echo "\"\$as_me:13112: $lt_compile\"" >&5)
13113 (eval "$lt_compile" 2>conftest.err)
13114 ac_status=$?
13115 cat conftest.err >&5
13116 echo "$as_me:13116: \$? = $ac_status" >&5
13117 if (exit $ac_status) && test -s "$ac_outfile"; then
13118 # The compiler can only warn and ignore the option if not recognized
13119 # So say no if there are warnings other than the usual output.
13120 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13121 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13122 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13123 lt_prog_compiler_pic_works_F77=yes
13126 $rm conftest*
13129 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13130 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13132 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13133 case $lt_prog_compiler_pic_F77 in
13134 "" | " "*) ;;
13135 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13136 esac
13137 else
13138 lt_prog_compiler_pic_F77=
13139 lt_prog_compiler_can_build_shared_F77=no
13143 case $host_os in
13144 # For platforms which do not support PIC, -DPIC is meaningless:
13145 *djgpp*)
13146 lt_prog_compiler_pic_F77=
13149 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13151 esac
13154 # Check to make sure the static flag actually works.
13156 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13157 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13158 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13159 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13160 echo $ECHO_N "(cached) $ECHO_C" >&6
13161 else
13162 lt_prog_compiler_static_works_F77=no
13163 save_LDFLAGS="$LDFLAGS"
13164 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13165 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13166 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13167 # The linker can only warn and ignore the option if not recognized
13168 # So say no if there are warnings
13169 if test -s conftest.err; then
13170 # Append any errors to the config.log.
13171 cat conftest.err 1>&5
13172 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13173 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13174 if diff conftest.exp conftest.er2 >/dev/null; then
13175 lt_prog_compiler_static_works_F77=yes
13177 else
13178 lt_prog_compiler_static_works_F77=yes
13181 $rm conftest*
13182 LDFLAGS="$save_LDFLAGS"
13185 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13186 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13188 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13190 else
13191 lt_prog_compiler_static_F77=
13195 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13196 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13197 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13198 echo $ECHO_N "(cached) $ECHO_C" >&6
13199 else
13200 lt_cv_prog_compiler_c_o_F77=no
13201 $rm -r conftest 2>/dev/null
13202 mkdir conftest
13203 cd conftest
13204 mkdir out
13205 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13207 lt_compiler_flag="-o out/conftest2.$ac_objext"
13208 # Insert the option either (1) after the last *FLAGS variable, or
13209 # (2) before a word containing "conftest.", or (3) at the end.
13210 # Note that $ac_compile itself does not contain backslashes and begins
13211 # with a dollar sign (not a hyphen), so the echo should work correctly.
13212 lt_compile=`echo "$ac_compile" | $SED \
13213 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13214 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13215 -e 's:$: $lt_compiler_flag:'`
13216 (eval echo "\"\$as_me:13216: $lt_compile\"" >&5)
13217 (eval "$lt_compile" 2>out/conftest.err)
13218 ac_status=$?
13219 cat out/conftest.err >&5
13220 echo "$as_me:13220: \$? = $ac_status" >&5
13221 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13222 then
13223 # The compiler can only warn and ignore the option if not recognized
13224 # So say no if there are warnings
13225 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13226 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13227 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13228 lt_cv_prog_compiler_c_o_F77=yes
13231 chmod u+w . 2>&5
13232 $rm conftest*
13233 # SGI C++ compiler will create directory out/ii_files/ for
13234 # template instantiation
13235 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13236 $rm out/* && rmdir out
13237 cd ..
13238 rmdir conftest
13239 $rm conftest*
13242 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13243 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13246 hard_links="nottested"
13247 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13248 # do not overwrite the value of need_locks provided by the user
13249 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13250 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13251 hard_links=yes
13252 $rm conftest*
13253 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13254 touch conftest.a
13255 ln conftest.a conftest.b 2>&5 || hard_links=no
13256 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13257 echo "$as_me:$LINENO: result: $hard_links" >&5
13258 echo "${ECHO_T}$hard_links" >&6
13259 if test "$hard_links" = no; then
13260 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13261 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13262 need_locks=warn
13264 else
13265 need_locks=no
13268 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13269 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13271 runpath_var=
13272 allow_undefined_flag_F77=
13273 enable_shared_with_static_runtimes_F77=no
13274 archive_cmds_F77=
13275 archive_expsym_cmds_F77=
13276 old_archive_From_new_cmds_F77=
13277 old_archive_from_expsyms_cmds_F77=
13278 export_dynamic_flag_spec_F77=
13279 whole_archive_flag_spec_F77=
13280 thread_safe_flag_spec_F77=
13281 hardcode_libdir_flag_spec_F77=
13282 hardcode_libdir_flag_spec_ld_F77=
13283 hardcode_libdir_separator_F77=
13284 hardcode_direct_F77=no
13285 hardcode_minus_L_F77=no
13286 hardcode_shlibpath_var_F77=unsupported
13287 link_all_deplibs_F77=unknown
13288 hardcode_automatic_F77=no
13289 module_cmds_F77=
13290 module_expsym_cmds_F77=
13291 always_export_symbols_F77=no
13292 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13293 # include_expsyms should be a list of space-separated symbols to be *always*
13294 # included in the symbol list
13295 include_expsyms_F77=
13296 # exclude_expsyms can be an extended regexp of symbols to exclude
13297 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13298 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13299 # as well as any symbol that contains `d'.
13300 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13301 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13302 # platforms (ab)use it in PIC code, but their linkers get confused if
13303 # the symbol is explicitly referenced. Since portable code cannot
13304 # rely on this symbol name, it's probably fine to never include it in
13305 # preloaded symbol tables.
13306 extract_expsyms_cmds=
13307 # Just being paranoid about ensuring that cc_basename is set.
13308 for cc_temp in $compiler""; do
13309 case $cc_temp in
13310 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13311 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13312 \-*) ;;
13313 *) break;;
13314 esac
13315 done
13316 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13318 case $host_os in
13319 cygwin* | mingw* | pw32*)
13320 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13321 # When not using gcc, we currently assume that we are using
13322 # Microsoft Visual C++.
13323 if test "$GCC" != yes; then
13324 with_gnu_ld=no
13327 interix*)
13328 # we just hope/assume this is gcc and not c89 (= MSVC++)
13329 with_gnu_ld=yes
13331 openbsd*)
13332 with_gnu_ld=no
13334 esac
13336 ld_shlibs_F77=yes
13337 if test "$with_gnu_ld" = yes; then
13338 # If archive_cmds runs LD, not CC, wlarc should be empty
13339 wlarc='${wl}'
13341 # Set some defaults for GNU ld with shared library support. These
13342 # are reset later if shared libraries are not supported. Putting them
13343 # here allows them to be overridden if necessary.
13344 runpath_var=LD_RUN_PATH
13345 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13346 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13347 # ancient GNU ld didn't support --whole-archive et. al.
13348 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13349 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13350 else
13351 whole_archive_flag_spec_F77=
13353 supports_anon_versioning=no
13354 case `$LD -v 2>/dev/null` in
13355 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13356 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13357 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13358 *\ 2.11.*) ;; # other 2.11 versions
13359 *) supports_anon_versioning=yes ;;
13360 esac
13362 # See if GNU ld supports shared libraries.
13363 case $host_os in
13364 aix3* | aix4* | aix5*)
13365 # On AIX/PPC, the GNU linker is very broken
13366 if test "$host_cpu" != ia64; then
13367 ld_shlibs_F77=no
13368 cat <<EOF 1>&2
13370 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13371 *** to be unable to reliably create shared libraries on AIX.
13372 *** Therefore, libtool is disabling shared libraries support. If you
13373 *** really care for shared libraries, you may want to modify your PATH
13374 *** so that a non-GNU linker is found, and then restart.
13380 amigaos*)
13381 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)'
13382 hardcode_libdir_flag_spec_F77='-L$libdir'
13383 hardcode_minus_L_F77=yes
13385 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13386 # that the semantics of dynamic libraries on AmigaOS, at least up
13387 # to version 4, is to share data among multiple programs linked
13388 # with the same dynamic library. Since this doesn't match the
13389 # behavior of shared libraries on other platforms, we can't use
13390 # them.
13391 ld_shlibs_F77=no
13394 beos*)
13395 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13396 allow_undefined_flag_F77=unsupported
13397 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13398 # support --undefined. This deserves some investigation. FIXME
13399 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13400 else
13401 ld_shlibs_F77=no
13405 cygwin* | mingw* | pw32*)
13406 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13407 # as there is no search path for DLLs.
13408 hardcode_libdir_flag_spec_F77='-L$libdir'
13409 allow_undefined_flag_F77=unsupported
13410 always_export_symbols_F77=no
13411 enable_shared_with_static_runtimes_F77=yes
13412 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13414 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13415 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13416 # If the export-symbols file already is a .def file (1st line
13417 # is EXPORTS), use it as is; otherwise, prepend...
13418 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13419 cp $export_symbols $output_objdir/$soname.def;
13420 else
13421 echo EXPORTS > $output_objdir/$soname.def;
13422 cat $export_symbols >> $output_objdir/$soname.def;
13424 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13425 else
13426 ld_shlibs_F77=no
13430 interix3*)
13431 hardcode_direct_F77=no
13432 hardcode_shlibpath_var_F77=no
13433 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13434 export_dynamic_flag_spec_F77='${wl}-E'
13435 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13436 # Instead, shared libraries are loaded at an image base (0x10000000 by
13437 # default) and relocated if they conflict, which is a slow very memory
13438 # consuming and fragmenting process. To avoid this, we pick a random,
13439 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13440 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13441 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13442 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13445 linux*)
13446 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13447 tmp_addflag=
13448 case $cc_basename,$host_cpu in
13449 pgcc*) # Portland Group C compiler
13450 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13451 tmp_addflag=' $pic_flag'
13453 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13454 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13455 tmp_addflag=' $pic_flag -Mnomain' ;;
13456 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13457 tmp_addflag=' -i_dynamic' ;;
13458 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13459 tmp_addflag=' -i_dynamic -nofor_main' ;;
13460 ifc* | ifort*) # Intel Fortran compiler
13461 tmp_addflag=' -nofor_main' ;;
13462 esac
13463 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13465 if test $supports_anon_versioning = yes; then
13466 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13467 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13468 $echo "local: *; };" >> $output_objdir/$libname.ver~
13469 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13471 else
13472 ld_shlibs_F77=no
13476 netbsd*)
13477 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13478 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13479 wlarc=
13480 else
13481 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13482 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13486 solaris*)
13487 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13488 ld_shlibs_F77=no
13489 cat <<EOF 1>&2
13491 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13492 *** create shared libraries on Solaris systems. Therefore, libtool
13493 *** is disabling shared libraries support. We urge you to upgrade GNU
13494 *** binutils to release 2.9.1 or newer. Another option is to modify
13495 *** your PATH or compiler configuration so that the native linker is
13496 *** used, and then restart.
13499 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13500 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13501 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13502 else
13503 ld_shlibs_F77=no
13507 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13508 case `$LD -v 2>&1` in
13509 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13510 ld_shlibs_F77=no
13511 cat <<_LT_EOF 1>&2
13513 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13514 *** reliably create shared libraries on SCO systems. Therefore, libtool
13515 *** is disabling shared libraries support. We urge you to upgrade GNU
13516 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13517 *** your PATH or compiler configuration so that the native linker is
13518 *** used, and then restart.
13520 _LT_EOF
13523 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13524 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13525 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13526 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13527 else
13528 ld_shlibs_F77=no
13531 esac
13534 sunos4*)
13535 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13536 wlarc=
13537 hardcode_direct_F77=yes
13538 hardcode_shlibpath_var_F77=no
13542 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13543 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13544 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13545 else
13546 ld_shlibs_F77=no
13549 esac
13551 if test "$ld_shlibs_F77" = no; then
13552 runpath_var=
13553 hardcode_libdir_flag_spec_F77=
13554 export_dynamic_flag_spec_F77=
13555 whole_archive_flag_spec_F77=
13557 else
13558 # PORTME fill in a description of your system's linker (not GNU ld)
13559 case $host_os in
13560 aix3*)
13561 allow_undefined_flag_F77=unsupported
13562 always_export_symbols_F77=yes
13563 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'
13564 # Note: this linker hardcodes the directories in LIBPATH if there
13565 # are no directories specified by -L.
13566 hardcode_minus_L_F77=yes
13567 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13568 # Neither direct hardcoding nor static linking is supported with a
13569 # broken collect2.
13570 hardcode_direct_F77=unsupported
13574 aix4* | aix5*)
13575 if test "$host_cpu" = ia64; then
13576 # On IA64, the linker does run time linking by default, so we don't
13577 # have to do anything special.
13578 aix_use_runtimelinking=no
13579 exp_sym_flag='-Bexport'
13580 no_entry_flag=""
13581 else
13582 # If we're using GNU nm, then we don't want the "-C" option.
13583 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13584 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13585 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'
13586 else
13587 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'
13589 aix_use_runtimelinking=no
13591 # Test if we are trying to use run time linking or normal
13592 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13593 # need to do runtime linking.
13594 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13595 for ld_flag in $LDFLAGS; do
13596 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13597 aix_use_runtimelinking=yes
13598 break
13600 done
13602 esac
13604 exp_sym_flag='-bexport'
13605 no_entry_flag='-bnoentry'
13608 # When large executables or shared objects are built, AIX ld can
13609 # have problems creating the table of contents. If linking a library
13610 # or program results in "error TOC overflow" add -mminimal-toc to
13611 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13612 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13614 archive_cmds_F77=''
13615 hardcode_direct_F77=yes
13616 hardcode_libdir_separator_F77=':'
13617 link_all_deplibs_F77=yes
13619 if test "$GCC" = yes; then
13620 case $host_os in aix4.[012]|aix4.[012].*)
13621 # We only want to do this on AIX 4.2 and lower, the check
13622 # below for broken collect2 doesn't work under 4.3+
13623 collect2name=`${CC} -print-prog-name=collect2`
13624 if test -f "$collect2name" && \
13625 strings "$collect2name" | grep resolve_lib_name >/dev/null
13626 then
13627 # We have reworked collect2
13628 hardcode_direct_F77=yes
13629 else
13630 # We have old collect2
13631 hardcode_direct_F77=unsupported
13632 # It fails to find uninstalled libraries when the uninstalled
13633 # path is not listed in the libpath. Setting hardcode_minus_L
13634 # to unsupported forces relinking
13635 hardcode_minus_L_F77=yes
13636 hardcode_libdir_flag_spec_F77='-L$libdir'
13637 hardcode_libdir_separator_F77=
13640 esac
13641 shared_flag='-shared'
13642 if test "$aix_use_runtimelinking" = yes; then
13643 shared_flag="$shared_flag "'${wl}-G'
13645 else
13646 # not using gcc
13647 if test "$host_cpu" = ia64; then
13648 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13649 # chokes on -Wl,-G. The following line is correct:
13650 shared_flag='-G'
13651 else
13652 if test "$aix_use_runtimelinking" = yes; then
13653 shared_flag='${wl}-G'
13654 else
13655 shared_flag='${wl}-bM:SRE'
13660 # It seems that -bexpall does not export symbols beginning with
13661 # underscore (_), so it is better to generate a list of symbols to export.
13662 always_export_symbols_F77=yes
13663 if test "$aix_use_runtimelinking" = yes; then
13664 # Warning - without using the other runtime loading flags (-brtl),
13665 # -berok will link without error, but may produce a broken library.
13666 allow_undefined_flag_F77='-berok'
13667 # Determine the default libpath from the value encoded in an empty executable.
13668 cat >conftest.$ac_ext <<_ACEOF
13669 program main
13672 _ACEOF
13673 rm -f conftest.$ac_objext conftest$ac_exeext
13674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13675 (eval $ac_link) 2>conftest.er1
13676 ac_status=$?
13677 grep -v '^ *+' conftest.er1 >conftest.err
13678 rm -f conftest.er1
13679 cat conftest.err >&5
13680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681 (exit $ac_status); } &&
13682 { ac_try='test -z "$ac_f77_werror_flag"
13683 || test ! -s conftest.err'
13684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13685 (eval $ac_try) 2>&5
13686 ac_status=$?
13687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688 (exit $ac_status); }; } &&
13689 { ac_try='test -s conftest$ac_exeext'
13690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13691 (eval $ac_try) 2>&5
13692 ac_status=$?
13693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694 (exit $ac_status); }; }; then
13696 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13698 # Check for a 64-bit object if we didn't find anything.
13699 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; }
13700 }'`; fi
13701 else
13702 echo "$as_me: failed program was:" >&5
13703 sed 's/^/| /' conftest.$ac_ext >&5
13706 rm -f conftest.err conftest.$ac_objext \
13707 conftest$ac_exeext conftest.$ac_ext
13708 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13710 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13711 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13712 else
13713 if test "$host_cpu" = ia64; then
13714 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13715 allow_undefined_flag_F77="-z nodefs"
13716 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13717 else
13718 # Determine the default libpath from the value encoded in an empty executable.
13719 cat >conftest.$ac_ext <<_ACEOF
13720 program main
13723 _ACEOF
13724 rm -f conftest.$ac_objext conftest$ac_exeext
13725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13726 (eval $ac_link) 2>conftest.er1
13727 ac_status=$?
13728 grep -v '^ *+' conftest.er1 >conftest.err
13729 rm -f conftest.er1
13730 cat conftest.err >&5
13731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732 (exit $ac_status); } &&
13733 { ac_try='test -z "$ac_f77_werror_flag"
13734 || test ! -s conftest.err'
13735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13736 (eval $ac_try) 2>&5
13737 ac_status=$?
13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739 (exit $ac_status); }; } &&
13740 { ac_try='test -s conftest$ac_exeext'
13741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13742 (eval $ac_try) 2>&5
13743 ac_status=$?
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); }; }; then
13747 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13749 # Check for a 64-bit object if we didn't find anything.
13750 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; }
13751 }'`; fi
13752 else
13753 echo "$as_me: failed program was:" >&5
13754 sed 's/^/| /' conftest.$ac_ext >&5
13757 rm -f conftest.err conftest.$ac_objext \
13758 conftest$ac_exeext conftest.$ac_ext
13759 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13761 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13762 # Warning - without using the other run time loading flags,
13763 # -berok will link without error, but may produce a broken library.
13764 no_undefined_flag_F77=' ${wl}-bernotok'
13765 allow_undefined_flag_F77=' ${wl}-berok'
13766 # Exported symbols can be pulled into shared objects from archives
13767 whole_archive_flag_spec_F77='$convenience'
13768 archive_cmds_need_lc_F77=yes
13769 # This is similar to how AIX traditionally builds its shared libraries.
13770 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13775 amigaos*)
13776 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)'
13777 hardcode_libdir_flag_spec_F77='-L$libdir'
13778 hardcode_minus_L_F77=yes
13779 # see comment about different semantics on the GNU ld section
13780 ld_shlibs_F77=no
13783 bsdi[45]*)
13784 export_dynamic_flag_spec_F77=-rdynamic
13787 cygwin* | mingw* | pw32*)
13788 # When not using gcc, we currently assume that we are using
13789 # Microsoft Visual C++.
13790 # hardcode_libdir_flag_spec is actually meaningless, as there is
13791 # no search path for DLLs.
13792 hardcode_libdir_flag_spec_F77=' '
13793 allow_undefined_flag_F77=unsupported
13794 # Tell ltmain to make .lib files, not .a files.
13795 libext=lib
13796 # Tell ltmain to make .dll files, not .so files.
13797 shrext_cmds=".dll"
13798 # FIXME: Setting linknames here is a bad hack.
13799 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13800 # The linker will automatically build a .lib file if we build a DLL.
13801 old_archive_From_new_cmds_F77='true'
13802 # FIXME: Should let the user specify the lib program.
13803 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13804 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13805 enable_shared_with_static_runtimes_F77=yes
13808 darwin* | rhapsody*)
13809 case $host_os in
13810 rhapsody* | darwin1.[012])
13811 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13813 *) # Darwin 1.3 on
13814 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13815 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13816 else
13817 case ${MACOSX_DEPLOYMENT_TARGET} in
13818 10.[012])
13819 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13821 10.*)
13822 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13824 esac
13827 esac
13828 archive_cmds_need_lc_F77=no
13829 hardcode_direct_F77=no
13830 hardcode_automatic_F77=yes
13831 hardcode_shlibpath_var_F77=unsupported
13832 whole_archive_flag_spec_F77=''
13833 link_all_deplibs_F77=yes
13834 if test "$GCC" = yes ; then
13835 output_verbose_link_cmd='echo'
13836 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13837 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13838 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13839 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}'
13840 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}'
13841 else
13842 case $cc_basename in
13843 xlc*)
13844 output_verbose_link_cmd='echo'
13845 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13846 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13847 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13848 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}'
13849 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}'
13852 ld_shlibs_F77=no
13854 esac
13858 dgux*)
13859 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13860 hardcode_libdir_flag_spec_F77='-L$libdir'
13861 hardcode_shlibpath_var_F77=no
13864 freebsd1*)
13865 ld_shlibs_F77=no
13868 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13869 # support. Future versions do this automatically, but an explicit c++rt0.o
13870 # does not break anything, and helps significantly (at the cost of a little
13871 # extra space).
13872 freebsd2.2*)
13873 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13874 hardcode_libdir_flag_spec_F77='-R$libdir'
13875 hardcode_direct_F77=yes
13876 hardcode_shlibpath_var_F77=no
13879 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13880 freebsd2*)
13881 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13882 hardcode_direct_F77=yes
13883 hardcode_minus_L_F77=yes
13884 hardcode_shlibpath_var_F77=no
13887 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13888 freebsd* | kfreebsd*-gnu | dragonfly*)
13889 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13890 hardcode_libdir_flag_spec_F77='-R$libdir'
13891 hardcode_direct_F77=yes
13892 hardcode_shlibpath_var_F77=no
13895 hpux9*)
13896 if test "$GCC" = yes; then
13897 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'
13898 else
13899 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'
13901 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13902 hardcode_libdir_separator_F77=:
13903 hardcode_direct_F77=yes
13905 # hardcode_minus_L: Not really in the search PATH,
13906 # but as the default location of the library.
13907 hardcode_minus_L_F77=yes
13908 export_dynamic_flag_spec_F77='${wl}-E'
13911 hpux10*)
13912 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13913 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13914 else
13915 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13917 if test "$with_gnu_ld" = no; then
13918 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13919 hardcode_libdir_separator_F77=:
13921 hardcode_direct_F77=yes
13922 export_dynamic_flag_spec_F77='${wl}-E'
13924 # hardcode_minus_L: Not really in the search PATH,
13925 # but as the default location of the library.
13926 hardcode_minus_L_F77=yes
13930 hpux11*)
13931 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13932 case $host_cpu in
13933 hppa*64*)
13934 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13936 ia64*)
13937 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13940 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13942 esac
13943 else
13944 case $host_cpu in
13945 hppa*64*)
13946 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13948 ia64*)
13949 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13952 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13954 esac
13956 if test "$with_gnu_ld" = no; then
13957 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13958 hardcode_libdir_separator_F77=:
13960 case $host_cpu in
13961 hppa*64*|ia64*)
13962 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13963 hardcode_direct_F77=no
13964 hardcode_shlibpath_var_F77=no
13967 hardcode_direct_F77=yes
13968 export_dynamic_flag_spec_F77='${wl}-E'
13970 # hardcode_minus_L: Not really in the search PATH,
13971 # but as the default location of the library.
13972 hardcode_minus_L_F77=yes
13974 esac
13978 irix5* | irix6* | nonstopux*)
13979 if test "$GCC" = yes; then
13980 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'
13981 else
13982 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'
13983 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13985 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13986 hardcode_libdir_separator_F77=:
13987 link_all_deplibs_F77=yes
13990 netbsd*)
13991 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13992 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13993 else
13994 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13996 hardcode_libdir_flag_spec_F77='-R$libdir'
13997 hardcode_direct_F77=yes
13998 hardcode_shlibpath_var_F77=no
14001 newsos6)
14002 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14003 hardcode_direct_F77=yes
14004 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14005 hardcode_libdir_separator_F77=:
14006 hardcode_shlibpath_var_F77=no
14009 openbsd*)
14010 hardcode_direct_F77=yes
14011 hardcode_shlibpath_var_F77=no
14012 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14013 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14014 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14015 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14016 export_dynamic_flag_spec_F77='${wl}-E'
14017 else
14018 case $host_os in
14019 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14020 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14021 hardcode_libdir_flag_spec_F77='-R$libdir'
14024 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14025 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14027 esac
14031 os2*)
14032 hardcode_libdir_flag_spec_F77='-L$libdir'
14033 hardcode_minus_L_F77=yes
14034 allow_undefined_flag_F77=unsupported
14035 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'
14036 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14039 osf3*)
14040 if test "$GCC" = yes; then
14041 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14042 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'
14043 else
14044 allow_undefined_flag_F77=' -expect_unresolved \*'
14045 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'
14047 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14048 hardcode_libdir_separator_F77=:
14051 osf4* | osf5*) # as osf3* with the addition of -msym flag
14052 if test "$GCC" = yes; then
14053 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14054 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'
14055 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14056 else
14057 allow_undefined_flag_F77=' -expect_unresolved \*'
14058 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'
14059 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~
14060 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14062 # Both c and cxx compiler support -rpath directly
14063 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14065 hardcode_libdir_separator_F77=:
14068 solaris*)
14069 no_undefined_flag_F77=' -z text'
14070 if test "$GCC" = yes; then
14071 wlarc='${wl}'
14072 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14073 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14074 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14075 else
14076 wlarc=''
14077 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14078 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14079 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14081 hardcode_libdir_flag_spec_F77='-R$libdir'
14082 hardcode_shlibpath_var_F77=no
14083 case $host_os in
14084 solaris2.[0-5] | solaris2.[0-5].*) ;;
14086 # The compiler driver will combine linker options so we
14087 # cannot just pass the convience library names through
14088 # without $wl, iff we do not link with $LD.
14089 # Luckily, gcc supports the same syntax we need for Sun Studio.
14090 # Supported since Solaris 2.6 (maybe 2.5.1?)
14091 case $wlarc in
14093 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14095 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14096 esac ;;
14097 esac
14098 link_all_deplibs_F77=yes
14101 sunos4*)
14102 if test "x$host_vendor" = xsequent; then
14103 # Use $CC to link under sequent, because it throws in some extra .o
14104 # files that make .init and .fini sections work.
14105 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14106 else
14107 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14109 hardcode_libdir_flag_spec_F77='-L$libdir'
14110 hardcode_direct_F77=yes
14111 hardcode_minus_L_F77=yes
14112 hardcode_shlibpath_var_F77=no
14115 sysv4)
14116 case $host_vendor in
14117 sni)
14118 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14119 hardcode_direct_F77=yes # is this really true???
14121 siemens)
14122 ## LD is ld it makes a PLAMLIB
14123 ## CC just makes a GrossModule.
14124 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14125 reload_cmds_F77='$CC -r -o $output$reload_objs'
14126 hardcode_direct_F77=no
14128 motorola)
14129 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14130 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14132 esac
14133 runpath_var='LD_RUN_PATH'
14134 hardcode_shlibpath_var_F77=no
14137 sysv4.3*)
14138 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14139 hardcode_shlibpath_var_F77=no
14140 export_dynamic_flag_spec_F77='-Bexport'
14143 sysv4*MP*)
14144 if test -d /usr/nec; then
14145 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14146 hardcode_shlibpath_var_F77=no
14147 runpath_var=LD_RUN_PATH
14148 hardcode_runpath_var=yes
14149 ld_shlibs_F77=yes
14153 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14154 no_undefined_flag_F77='${wl}-z,text'
14155 archive_cmds_need_lc_F77=no
14156 hardcode_shlibpath_var_F77=no
14157 runpath_var='LD_RUN_PATH'
14159 if test "$GCC" = yes; then
14160 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14161 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14162 else
14163 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14164 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14168 sysv5* | sco3.2v5* | sco5v6*)
14169 # Note: We can NOT use -z defs as we might desire, because we do not
14170 # link with -lc, and that would cause any symbols used from libc to
14171 # always be unresolved, which means just about no library would
14172 # ever link correctly. If we're not using GNU ld we use -z text
14173 # though, which does catch some bad symbols but isn't as heavy-handed
14174 # as -z defs.
14175 no_undefined_flag_F77='${wl}-z,text'
14176 allow_undefined_flag_F77='${wl}-z,nodefs'
14177 archive_cmds_need_lc_F77=no
14178 hardcode_shlibpath_var_F77=no
14179 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14180 hardcode_libdir_separator_F77=':'
14181 link_all_deplibs_F77=yes
14182 export_dynamic_flag_spec_F77='${wl}-Bexport'
14183 runpath_var='LD_RUN_PATH'
14185 if test "$GCC" = yes; then
14186 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14187 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14188 else
14189 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14190 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14194 uts4*)
14195 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14196 hardcode_libdir_flag_spec_F77='-L$libdir'
14197 hardcode_shlibpath_var_F77=no
14201 ld_shlibs_F77=no
14203 esac
14206 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14207 echo "${ECHO_T}$ld_shlibs_F77" >&6
14208 test "$ld_shlibs_F77" = no && can_build_shared=no
14211 # Do we need to explicitly link libc?
14213 case "x$archive_cmds_need_lc_F77" in
14214 x|xyes)
14215 # Assume -lc should be added
14216 archive_cmds_need_lc_F77=yes
14218 if test "$enable_shared" = yes && test "$GCC" = yes; then
14219 case $archive_cmds_F77 in
14220 *'~'*)
14221 # FIXME: we may have to deal with multi-command sequences.
14223 '$CC '*)
14224 # Test whether the compiler implicitly links with -lc since on some
14225 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14226 # to ld, don't add -lc before -lgcc.
14227 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14228 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14229 $rm conftest*
14230 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14233 (eval $ac_compile) 2>&5
14234 ac_status=$?
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); } 2>conftest.err; then
14237 soname=conftest
14238 lib=conftest
14239 libobjs=conftest.$ac_objext
14240 deplibs=
14241 wl=$lt_prog_compiler_wl_F77
14242 pic_flag=$lt_prog_compiler_pic_F77
14243 compiler_flags=-v
14244 linker_flags=-v
14245 verstring=
14246 output_objdir=.
14247 libname=conftest
14248 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14249 allow_undefined_flag_F77=
14250 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14251 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14252 ac_status=$?
14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); }
14255 then
14256 archive_cmds_need_lc_F77=no
14257 else
14258 archive_cmds_need_lc_F77=yes
14260 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14261 else
14262 cat conftest.err 1>&5
14264 $rm conftest*
14265 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14266 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14268 esac
14271 esac
14273 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14274 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14275 library_names_spec=
14276 libname_spec='lib$name'
14277 soname_spec=
14278 shrext_cmds=".so"
14279 postinstall_cmds=
14280 postuninstall_cmds=
14281 finish_cmds=
14282 finish_eval=
14283 shlibpath_var=
14284 shlibpath_overrides_runpath=unknown
14285 version_type=none
14286 dynamic_linker="$host_os ld.so"
14287 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14288 if test "$GCC" = yes; then
14289 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14290 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14291 # if the path contains ";" then we assume it to be the separator
14292 # otherwise default to the standard path separator (i.e. ":") - it is
14293 # assumed that no part of a normal pathname contains ";" but that should
14294 # okay in the real world where ";" in dirpaths is itself problematic.
14295 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14296 else
14297 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14299 else
14300 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14302 need_lib_prefix=unknown
14303 hardcode_into_libs=no
14305 # when you set need_version to no, make sure it does not cause -set_version
14306 # flags to be left without arguments
14307 need_version=unknown
14309 case $host_os in
14310 aix3*)
14311 version_type=linux
14312 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14313 shlibpath_var=LIBPATH
14315 # AIX 3 has no versioning support, so we append a major version to the name.
14316 soname_spec='${libname}${release}${shared_ext}$major'
14319 aix4* | aix5*)
14320 version_type=linux
14321 need_lib_prefix=no
14322 need_version=no
14323 hardcode_into_libs=yes
14324 if test "$host_cpu" = ia64; then
14325 # AIX 5 supports IA64
14326 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14327 shlibpath_var=LD_LIBRARY_PATH
14328 else
14329 # With GCC up to 2.95.x, collect2 would create an import file
14330 # for dependence libraries. The import file would start with
14331 # the line `#! .'. This would cause the generated library to
14332 # depend on `.', always an invalid library. This was fixed in
14333 # development snapshots of GCC prior to 3.0.
14334 case $host_os in
14335 aix4 | aix4.[01] | aix4.[01].*)
14336 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14337 echo ' yes '
14338 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14340 else
14341 can_build_shared=no
14344 esac
14345 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14346 # soname into executable. Probably we can add versioning support to
14347 # collect2, so additional links can be useful in future.
14348 if test "$aix_use_runtimelinking" = yes; then
14349 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14350 # instead of lib<name>.a to let people know that these are not
14351 # typical AIX shared libraries.
14352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14353 else
14354 # We preserve .a as extension for shared libraries through AIX4.2
14355 # and later when we are not doing run time linking.
14356 library_names_spec='${libname}${release}.a $libname.a'
14357 soname_spec='${libname}${release}${shared_ext}$major'
14359 shlibpath_var=LIBPATH
14363 amigaos*)
14364 library_names_spec='$libname.ixlibrary $libname.a'
14365 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14366 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'
14369 beos*)
14370 library_names_spec='${libname}${shared_ext}'
14371 dynamic_linker="$host_os ld.so"
14372 shlibpath_var=LIBRARY_PATH
14375 bsdi[45]*)
14376 version_type=linux
14377 need_version=no
14378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14379 soname_spec='${libname}${release}${shared_ext}$major'
14380 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14381 shlibpath_var=LD_LIBRARY_PATH
14382 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14383 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14384 # the default ld.so.conf also contains /usr/contrib/lib and
14385 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14386 # libtool to hard-code these into programs
14389 cygwin* | mingw* | pw32*)
14390 version_type=windows
14391 shrext_cmds=".dll"
14392 need_version=no
14393 need_lib_prefix=no
14395 case $GCC,$host_os in
14396 yes,cygwin* | yes,mingw* | yes,pw32*)
14397 library_names_spec='$libname.dll.a'
14398 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14399 postinstall_cmds='base_file=`basename \${file}`~
14400 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14401 dldir=$destdir/`dirname \$dlpath`~
14402 test -d \$dldir || mkdir -p \$dldir~
14403 $install_prog $dir/$dlname \$dldir/$dlname~
14404 chmod a+x \$dldir/$dlname'
14405 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14406 dlpath=$dir/\$dldll~
14407 $rm \$dlpath'
14408 shlibpath_overrides_runpath=yes
14410 case $host_os in
14411 cygwin*)
14412 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14413 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14414 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14416 mingw*)
14417 # MinGW DLLs use traditional 'lib' prefix
14418 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14419 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14420 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14421 # It is most probably a Windows format PATH printed by
14422 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14423 # path with ; separators, and with drive letters. We can handle the
14424 # drive letters (cygwin fileutils understands them), so leave them,
14425 # especially as we might pass files found there to a mingw objdump,
14426 # which wouldn't understand a cygwinified path. Ahh.
14427 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14428 else
14429 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14432 pw32*)
14433 # pw32 DLLs use 'pw' prefix rather than 'lib'
14434 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14436 esac
14440 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14442 esac
14443 dynamic_linker='Win32 ld.exe'
14444 # FIXME: first we should search . and the directory the executable is in
14445 shlibpath_var=PATH
14448 darwin* | rhapsody*)
14449 dynamic_linker="$host_os dyld"
14450 version_type=darwin
14451 need_lib_prefix=no
14452 need_version=no
14453 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14454 soname_spec='${libname}${release}${major}$shared_ext'
14455 shlibpath_overrides_runpath=yes
14456 shlibpath_var=DYLD_LIBRARY_PATH
14457 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14458 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14459 if test "$GCC" = yes; then
14460 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"`
14461 else
14462 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14464 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14467 dgux*)
14468 version_type=linux
14469 need_lib_prefix=no
14470 need_version=no
14471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14472 soname_spec='${libname}${release}${shared_ext}$major'
14473 shlibpath_var=LD_LIBRARY_PATH
14476 freebsd1*)
14477 dynamic_linker=no
14480 kfreebsd*-gnu)
14481 version_type=linux
14482 need_lib_prefix=no
14483 need_version=no
14484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14485 soname_spec='${libname}${release}${shared_ext}$major'
14486 shlibpath_var=LD_LIBRARY_PATH
14487 shlibpath_overrides_runpath=no
14488 hardcode_into_libs=yes
14489 dynamic_linker='GNU ld.so'
14492 freebsd* | dragonfly*)
14493 # DragonFly does not have aout. When/if they implement a new
14494 # versioning mechanism, adjust this.
14495 if test -x /usr/bin/objformat; then
14496 objformat=`/usr/bin/objformat`
14497 else
14498 case $host_os in
14499 freebsd[123]*) objformat=aout ;;
14500 *) objformat=elf ;;
14501 esac
14503 version_type=freebsd-$objformat
14504 case $version_type in
14505 freebsd-elf*)
14506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14507 need_version=no
14508 need_lib_prefix=no
14510 freebsd-*)
14511 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14512 need_version=yes
14514 esac
14515 shlibpath_var=LD_LIBRARY_PATH
14516 case $host_os in
14517 freebsd2*)
14518 shlibpath_overrides_runpath=yes
14520 freebsd3.[01]* | freebsdelf3.[01]*)
14521 shlibpath_overrides_runpath=yes
14522 hardcode_into_libs=yes
14524 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14525 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14526 shlibpath_overrides_runpath=no
14527 hardcode_into_libs=yes
14529 freebsd*) # from 4.6 on
14530 shlibpath_overrides_runpath=yes
14531 hardcode_into_libs=yes
14533 esac
14536 gnu*)
14537 version_type=linux
14538 need_lib_prefix=no
14539 need_version=no
14540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14541 soname_spec='${libname}${release}${shared_ext}$major'
14542 shlibpath_var=LD_LIBRARY_PATH
14543 hardcode_into_libs=yes
14546 hpux9* | hpux10* | hpux11*)
14547 # Give a soname corresponding to the major version so that dld.sl refuses to
14548 # link against other versions.
14549 version_type=sunos
14550 need_lib_prefix=no
14551 need_version=no
14552 case $host_cpu in
14553 ia64*)
14554 shrext_cmds='.so'
14555 hardcode_into_libs=yes
14556 dynamic_linker="$host_os dld.so"
14557 shlibpath_var=LD_LIBRARY_PATH
14558 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14560 soname_spec='${libname}${release}${shared_ext}$major'
14561 if test "X$HPUX_IA64_MODE" = X32; then
14562 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14563 else
14564 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14566 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14568 hppa*64*)
14569 shrext_cmds='.sl'
14570 hardcode_into_libs=yes
14571 dynamic_linker="$host_os dld.sl"
14572 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14573 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14575 soname_spec='${libname}${release}${shared_ext}$major'
14576 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14577 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14580 shrext_cmds='.sl'
14581 dynamic_linker="$host_os dld.sl"
14582 shlibpath_var=SHLIB_PATH
14583 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14585 soname_spec='${libname}${release}${shared_ext}$major'
14587 esac
14588 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14589 postinstall_cmds='chmod 555 $lib'
14592 interix3*)
14593 version_type=linux
14594 need_lib_prefix=no
14595 need_version=no
14596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14597 soname_spec='${libname}${release}${shared_ext}$major'
14598 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14599 shlibpath_var=LD_LIBRARY_PATH
14600 shlibpath_overrides_runpath=no
14601 hardcode_into_libs=yes
14604 irix5* | irix6* | nonstopux*)
14605 case $host_os in
14606 nonstopux*) version_type=nonstopux ;;
14608 if test "$lt_cv_prog_gnu_ld" = yes; then
14609 version_type=linux
14610 else
14611 version_type=irix
14612 fi ;;
14613 esac
14614 need_lib_prefix=no
14615 need_version=no
14616 soname_spec='${libname}${release}${shared_ext}$major'
14617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14618 case $host_os in
14619 irix5* | nonstopux*)
14620 libsuff= shlibsuff=
14623 case $LD in # libtool.m4 will add one of these switches to LD
14624 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14625 libsuff= shlibsuff= libmagic=32-bit;;
14626 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14627 libsuff=32 shlibsuff=N32 libmagic=N32;;
14628 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14629 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14630 *) libsuff= shlibsuff= libmagic=never-match;;
14631 esac
14633 esac
14634 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14635 shlibpath_overrides_runpath=no
14636 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14637 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14638 hardcode_into_libs=yes
14641 # No shared lib support for Linux oldld, aout, or coff.
14642 linux*oldld* | linux*aout* | linux*coff*)
14643 dynamic_linker=no
14646 # This must be Linux ELF.
14647 linux*)
14648 version_type=linux
14649 need_lib_prefix=no
14650 need_version=no
14651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14652 soname_spec='${libname}${release}${shared_ext}$major'
14653 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14654 shlibpath_var=LD_LIBRARY_PATH
14655 shlibpath_overrides_runpath=no
14656 # This implies no fast_install, which is unacceptable.
14657 # Some rework will be needed to allow for fast_install
14658 # before this can be enabled.
14659 hardcode_into_libs=yes
14661 # find out which ABI we are using
14662 libsuff=
14663 case "$host_cpu" in
14664 x86_64*|s390x*|powerpc64*)
14665 echo '#line 14665 "configure"' > conftest.$ac_ext
14666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14667 (eval $ac_compile) 2>&5
14668 ac_status=$?
14669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670 (exit $ac_status); }; then
14671 case `/usr/bin/file conftest.$ac_objext` in
14672 *64-bit*)
14673 libsuff=64
14674 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14676 esac
14678 rm -rf conftest*
14680 esac
14682 # Append ld.so.conf contents to the search path
14683 if test -f /etc/ld.so.conf; then
14684 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/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14685 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
14688 # We used to test for /lib/ld.so.1 and disable shared libraries on
14689 # powerpc, because MkLinux only supported shared libraries with the
14690 # GNU dynamic linker. Since this was broken with cross compilers,
14691 # most powerpc-linux boxes support dynamic linking these days and
14692 # people can always --disable-shared, the test was removed, and we
14693 # assume the GNU/Linux dynamic linker is in use.
14694 dynamic_linker='GNU/Linux ld.so'
14697 knetbsd*-gnu)
14698 version_type=linux
14699 need_lib_prefix=no
14700 need_version=no
14701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14702 soname_spec='${libname}${release}${shared_ext}$major'
14703 shlibpath_var=LD_LIBRARY_PATH
14704 shlibpath_overrides_runpath=no
14705 hardcode_into_libs=yes
14706 dynamic_linker='GNU ld.so'
14709 netbsd*)
14710 version_type=sunos
14711 need_lib_prefix=no
14712 need_version=no
14713 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14715 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14716 dynamic_linker='NetBSD (a.out) ld.so'
14717 else
14718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14719 soname_spec='${libname}${release}${shared_ext}$major'
14720 dynamic_linker='NetBSD ld.elf_so'
14722 shlibpath_var=LD_LIBRARY_PATH
14723 shlibpath_overrides_runpath=yes
14724 hardcode_into_libs=yes
14727 newsos6)
14728 version_type=linux
14729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14730 shlibpath_var=LD_LIBRARY_PATH
14731 shlibpath_overrides_runpath=yes
14734 nto-qnx*)
14735 version_type=linux
14736 need_lib_prefix=no
14737 need_version=no
14738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14739 soname_spec='${libname}${release}${shared_ext}$major'
14740 shlibpath_var=LD_LIBRARY_PATH
14741 shlibpath_overrides_runpath=yes
14744 openbsd*)
14745 version_type=sunos
14746 sys_lib_dlsearch_path_spec="/usr/lib"
14747 need_lib_prefix=no
14748 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14749 case $host_os in
14750 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14751 *) need_version=no ;;
14752 esac
14753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14754 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14755 shlibpath_var=LD_LIBRARY_PATH
14756 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14757 case $host_os in
14758 openbsd2.[89] | openbsd2.[89].*)
14759 shlibpath_overrides_runpath=no
14762 shlibpath_overrides_runpath=yes
14764 esac
14765 else
14766 shlibpath_overrides_runpath=yes
14770 os2*)
14771 libname_spec='$name'
14772 shrext_cmds=".dll"
14773 need_lib_prefix=no
14774 library_names_spec='$libname${shared_ext} $libname.a'
14775 dynamic_linker='OS/2 ld.exe'
14776 shlibpath_var=LIBPATH
14779 osf3* | osf4* | osf5*)
14780 version_type=osf
14781 need_lib_prefix=no
14782 need_version=no
14783 soname_spec='${libname}${release}${shared_ext}$major'
14784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14785 shlibpath_var=LD_LIBRARY_PATH
14786 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14787 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14790 solaris*)
14791 version_type=linux
14792 need_lib_prefix=no
14793 need_version=no
14794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14795 soname_spec='${libname}${release}${shared_ext}$major'
14796 shlibpath_var=LD_LIBRARY_PATH
14797 shlibpath_overrides_runpath=yes
14798 hardcode_into_libs=yes
14799 # ldd complains unless libraries are executable
14800 postinstall_cmds='chmod +x $lib'
14803 sunos4*)
14804 version_type=sunos
14805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14806 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14807 shlibpath_var=LD_LIBRARY_PATH
14808 shlibpath_overrides_runpath=yes
14809 if test "$with_gnu_ld" = yes; then
14810 need_lib_prefix=no
14812 need_version=yes
14815 sysv4 | sysv4.3*)
14816 version_type=linux
14817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14818 soname_spec='${libname}${release}${shared_ext}$major'
14819 shlibpath_var=LD_LIBRARY_PATH
14820 case $host_vendor in
14821 sni)
14822 shlibpath_overrides_runpath=no
14823 need_lib_prefix=no
14824 export_dynamic_flag_spec='${wl}-Blargedynsym'
14825 runpath_var=LD_RUN_PATH
14827 siemens)
14828 need_lib_prefix=no
14830 motorola)
14831 need_lib_prefix=no
14832 need_version=no
14833 shlibpath_overrides_runpath=no
14834 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14836 esac
14839 sysv4*MP*)
14840 if test -d /usr/nec ;then
14841 version_type=linux
14842 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14843 soname_spec='$libname${shared_ext}.$major'
14844 shlibpath_var=LD_LIBRARY_PATH
14848 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14849 version_type=freebsd-elf
14850 need_lib_prefix=no
14851 need_version=no
14852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14853 soname_spec='${libname}${release}${shared_ext}$major'
14854 shlibpath_var=LD_LIBRARY_PATH
14855 hardcode_into_libs=yes
14856 if test "$with_gnu_ld" = yes; then
14857 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14858 shlibpath_overrides_runpath=no
14859 else
14860 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14861 shlibpath_overrides_runpath=yes
14862 case $host_os in
14863 sco3.2v5*)
14864 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14866 esac
14868 sys_lib_dlsearch_path_spec='/usr/lib'
14871 uts4*)
14872 version_type=linux
14873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14874 soname_spec='${libname}${release}${shared_ext}$major'
14875 shlibpath_var=LD_LIBRARY_PATH
14879 dynamic_linker=no
14881 esac
14882 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14883 echo "${ECHO_T}$dynamic_linker" >&6
14884 test "$dynamic_linker" = no && can_build_shared=no
14886 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14887 if test "$GCC" = yes; then
14888 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14891 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14892 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14893 hardcode_action_F77=
14894 if test -n "$hardcode_libdir_flag_spec_F77" || \
14895 test -n "$runpath_var_F77" || \
14896 test "X$hardcode_automatic_F77" = "Xyes" ; then
14898 # We can hardcode non-existant directories.
14899 if test "$hardcode_direct_F77" != no &&
14900 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14901 # have to relink, otherwise we might link with an installed library
14902 # when we should be linking with a yet-to-be-installed one
14903 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14904 test "$hardcode_minus_L_F77" != no; then
14905 # Linking always hardcodes the temporary library directory.
14906 hardcode_action_F77=relink
14907 else
14908 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14909 hardcode_action_F77=immediate
14911 else
14912 # We cannot hardcode anything, or else we can only hardcode existing
14913 # directories.
14914 hardcode_action_F77=unsupported
14916 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14917 echo "${ECHO_T}$hardcode_action_F77" >&6
14919 if test "$hardcode_action_F77" = relink; then
14920 # Fast installation is not supported
14921 enable_fast_install=no
14922 elif test "$shlibpath_overrides_runpath" = yes ||
14923 test "$enable_shared" = no; then
14924 # Fast installation is not necessary
14925 enable_fast_install=needless
14929 # The else clause should only fire when bootstrapping the
14930 # libtool distribution, otherwise you forgot to ship ltmain.sh
14931 # with your package, and you will get complaints that there are
14932 # no rules to generate ltmain.sh.
14933 if test -f "$ltmain"; then
14934 # See if we are running on zsh, and set the options which allow our commands through
14935 # without removal of \ escapes.
14936 if test -n "${ZSH_VERSION+set}" ; then
14937 setopt NO_GLOB_SUBST
14939 # Now quote all the things that may contain metacharacters while being
14940 # careful not to overquote the AC_SUBSTed values. We take copies of the
14941 # variables and quote the copies for generation of the libtool script.
14942 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14943 SED SHELL STRIP \
14944 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14945 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14946 deplibs_check_method reload_flag reload_cmds need_locks \
14947 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14948 lt_cv_sys_global_symbol_to_c_name_address \
14949 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14950 old_postinstall_cmds old_postuninstall_cmds \
14951 compiler_F77 \
14952 CC_F77 \
14953 LD_F77 \
14954 lt_prog_compiler_wl_F77 \
14955 lt_prog_compiler_pic_F77 \
14956 lt_prog_compiler_static_F77 \
14957 lt_prog_compiler_no_builtin_flag_F77 \
14958 export_dynamic_flag_spec_F77 \
14959 thread_safe_flag_spec_F77 \
14960 whole_archive_flag_spec_F77 \
14961 enable_shared_with_static_runtimes_F77 \
14962 old_archive_cmds_F77 \
14963 old_archive_from_new_cmds_F77 \
14964 predep_objects_F77 \
14965 postdep_objects_F77 \
14966 predeps_F77 \
14967 postdeps_F77 \
14968 compiler_lib_search_path_F77 \
14969 archive_cmds_F77 \
14970 archive_expsym_cmds_F77 \
14971 postinstall_cmds_F77 \
14972 postuninstall_cmds_F77 \
14973 old_archive_from_expsyms_cmds_F77 \
14974 allow_undefined_flag_F77 \
14975 no_undefined_flag_F77 \
14976 export_symbols_cmds_F77 \
14977 hardcode_libdir_flag_spec_F77 \
14978 hardcode_libdir_flag_spec_ld_F77 \
14979 hardcode_libdir_separator_F77 \
14980 hardcode_automatic_F77 \
14981 module_cmds_F77 \
14982 module_expsym_cmds_F77 \
14983 lt_cv_prog_compiler_c_o_F77 \
14984 exclude_expsyms_F77 \
14985 include_expsyms_F77; do
14987 case $var in
14988 old_archive_cmds_F77 | \
14989 old_archive_from_new_cmds_F77 | \
14990 archive_cmds_F77 | \
14991 archive_expsym_cmds_F77 | \
14992 module_cmds_F77 | \
14993 module_expsym_cmds_F77 | \
14994 old_archive_from_expsyms_cmds_F77 | \
14995 export_symbols_cmds_F77 | \
14996 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14997 postinstall_cmds | postuninstall_cmds | \
14998 old_postinstall_cmds | old_postuninstall_cmds | \
14999 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15000 # Double-quote double-evaled strings.
15001 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15004 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15006 esac
15007 done
15009 case $lt_echo in
15010 *'\$0 --fallback-echo"')
15011 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15013 esac
15015 cfgfile="$ofile"
15017 cat <<__EOF__ >> "$cfgfile"
15018 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15020 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15022 # Shell to use when invoking shell scripts.
15023 SHELL=$lt_SHELL
15025 # Whether or not to build shared libraries.
15026 build_libtool_libs=$enable_shared
15028 # Whether or not to build static libraries.
15029 build_old_libs=$enable_static
15031 # Whether or not to add -lc for building shared libraries.
15032 build_libtool_need_lc=$archive_cmds_need_lc_F77
15034 # Whether or not to disallow shared libs when runtime libs are static
15035 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15037 # Whether or not to optimize for fast installation.
15038 fast_install=$enable_fast_install
15040 # The host system.
15041 host_alias=$host_alias
15042 host=$host
15043 host_os=$host_os
15045 # The build system.
15046 build_alias=$build_alias
15047 build=$build
15048 build_os=$build_os
15050 # An echo program that does not interpret backslashes.
15051 echo=$lt_echo
15053 # The archiver.
15054 AR=$lt_AR
15055 AR_FLAGS=$lt_AR_FLAGS
15057 # A C compiler.
15058 LTCC=$lt_LTCC
15060 # LTCC compiler flags.
15061 LTCFLAGS=$lt_LTCFLAGS
15063 # A language-specific compiler.
15064 CC=$lt_compiler_F77
15066 # Is the compiler the GNU C compiler?
15067 with_gcc=$GCC_F77
15069 # An ERE matcher.
15070 EGREP=$lt_EGREP
15072 # The linker used to build libraries.
15073 LD=$lt_LD_F77
15075 # Whether we need hard or soft links.
15076 LN_S=$lt_LN_S
15078 # A BSD-compatible nm program.
15079 NM=$lt_NM
15081 # A symbol stripping program
15082 STRIP=$lt_STRIP
15084 # Used to examine libraries when file_magic_cmd begins "file"
15085 MAGIC_CMD=$MAGIC_CMD
15087 # Used on cygwin: DLL creation program.
15088 DLLTOOL="$DLLTOOL"
15090 # Used on cygwin: object dumper.
15091 OBJDUMP="$OBJDUMP"
15093 # Used on cygwin: assembler.
15094 AS="$AS"
15096 # The name of the directory that contains temporary libtool files.
15097 objdir=$objdir
15099 # How to create reloadable object files.
15100 reload_flag=$lt_reload_flag
15101 reload_cmds=$lt_reload_cmds
15103 # How to pass a linker flag through the compiler.
15104 wl=$lt_lt_prog_compiler_wl_F77
15106 # Object file suffix (normally "o").
15107 objext="$ac_objext"
15109 # Old archive suffix (normally "a").
15110 libext="$libext"
15112 # Shared library suffix (normally ".so").
15113 shrext_cmds='$shrext_cmds'
15115 # Executable file suffix (normally "").
15116 exeext="$exeext"
15118 # Additional compiler flags for building library objects.
15119 pic_flag=$lt_lt_prog_compiler_pic_F77
15120 pic_mode=$pic_mode
15122 # What is the maximum length of a command?
15123 max_cmd_len=$lt_cv_sys_max_cmd_len
15125 # Does compiler simultaneously support -c and -o options?
15126 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15128 # Must we lock files when doing compilation?
15129 need_locks=$lt_need_locks
15131 # Do we need the lib prefix for modules?
15132 need_lib_prefix=$need_lib_prefix
15134 # Do we need a version for libraries?
15135 need_version=$need_version
15137 # Whether dlopen is supported.
15138 dlopen_support=$enable_dlopen
15140 # Whether dlopen of programs is supported.
15141 dlopen_self=$enable_dlopen_self
15143 # Whether dlopen of statically linked programs is supported.
15144 dlopen_self_static=$enable_dlopen_self_static
15146 # Compiler flag to prevent dynamic linking.
15147 link_static_flag=$lt_lt_prog_compiler_static_F77
15149 # Compiler flag to turn off builtin functions.
15150 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15152 # Compiler flag to allow reflexive dlopens.
15153 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15155 # Compiler flag to generate shared objects directly from archives.
15156 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15158 # Compiler flag to generate thread-safe objects.
15159 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15161 # Library versioning type.
15162 version_type=$version_type
15164 # Format of library name prefix.
15165 libname_spec=$lt_libname_spec
15167 # List of archive names. First name is the real one, the rest are links.
15168 # The last name is the one that the linker finds with -lNAME.
15169 library_names_spec=$lt_library_names_spec
15171 # The coded name of the library, if different from the real name.
15172 soname_spec=$lt_soname_spec
15174 # Commands used to build and install an old-style archive.
15175 RANLIB=$lt_RANLIB
15176 old_archive_cmds=$lt_old_archive_cmds_F77
15177 old_postinstall_cmds=$lt_old_postinstall_cmds
15178 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15180 # Create an old-style archive from a shared archive.
15181 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15183 # Create a temporary old-style archive to link instead of a shared archive.
15184 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15186 # Commands used to build and install a shared archive.
15187 archive_cmds=$lt_archive_cmds_F77
15188 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15189 postinstall_cmds=$lt_postinstall_cmds
15190 postuninstall_cmds=$lt_postuninstall_cmds
15192 # Commands used to build a loadable module (assumed same as above if empty)
15193 module_cmds=$lt_module_cmds_F77
15194 module_expsym_cmds=$lt_module_expsym_cmds_F77
15196 # Commands to strip libraries.
15197 old_striplib=$lt_old_striplib
15198 striplib=$lt_striplib
15200 # Dependencies to place before the objects being linked to create a
15201 # shared library.
15202 predep_objects=$lt_predep_objects_F77
15204 # Dependencies to place after the objects being linked to create a
15205 # shared library.
15206 postdep_objects=$lt_postdep_objects_F77
15208 # Dependencies to place before the objects being linked to create a
15209 # shared library.
15210 predeps=$lt_predeps_F77
15212 # Dependencies to place after the objects being linked to create a
15213 # shared library.
15214 postdeps=$lt_postdeps_F77
15216 # The library search path used internally by the compiler when linking
15217 # a shared library.
15218 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15220 # Method to check whether dependent libraries are shared objects.
15221 deplibs_check_method=$lt_deplibs_check_method
15223 # Command to use when deplibs_check_method == file_magic.
15224 file_magic_cmd=$lt_file_magic_cmd
15226 # Flag that allows shared libraries with undefined symbols to be built.
15227 allow_undefined_flag=$lt_allow_undefined_flag_F77
15229 # Flag that forces no undefined symbols.
15230 no_undefined_flag=$lt_no_undefined_flag_F77
15232 # Commands used to finish a libtool library installation in a directory.
15233 finish_cmds=$lt_finish_cmds
15235 # Same as above, but a single script fragment to be evaled but not shown.
15236 finish_eval=$lt_finish_eval
15238 # Take the output of nm and produce a listing of raw symbols and C names.
15239 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15241 # Transform the output of nm in a proper C declaration
15242 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15244 # Transform the output of nm in a C name address pair
15245 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15247 # This is the shared library runtime path variable.
15248 runpath_var=$runpath_var
15250 # This is the shared library path variable.
15251 shlibpath_var=$shlibpath_var
15253 # Is shlibpath searched before the hard-coded library search path?
15254 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15256 # How to hardcode a shared library path into an executable.
15257 hardcode_action=$hardcode_action_F77
15259 # Whether we should hardcode library paths into libraries.
15260 hardcode_into_libs=$hardcode_into_libs
15262 # Flag to hardcode \$libdir into a binary during linking.
15263 # This must work even if \$libdir does not exist.
15264 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15266 # If ld is used when linking, flag to hardcode \$libdir into
15267 # a binary during linking. This must work even if \$libdir does
15268 # not exist.
15269 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15271 # Whether we need a single -rpath flag with a separated argument.
15272 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15274 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15275 # resulting binary.
15276 hardcode_direct=$hardcode_direct_F77
15278 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15279 # resulting binary.
15280 hardcode_minus_L=$hardcode_minus_L_F77
15282 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15283 # the resulting binary.
15284 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15286 # Set to yes if building a shared library automatically hardcodes DIR into the library
15287 # and all subsequent libraries and executables linked against it.
15288 hardcode_automatic=$hardcode_automatic_F77
15290 # Variables whose values should be saved in libtool wrapper scripts and
15291 # restored at relink time.
15292 variables_saved_for_relink="$variables_saved_for_relink"
15294 # Whether libtool must link a program against all its dependency libraries.
15295 link_all_deplibs=$link_all_deplibs_F77
15297 # Compile-time system search path for libraries
15298 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15300 # Run-time system search path for libraries
15301 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15303 # Fix the shell variable \$srcfile for the compiler.
15304 fix_srcfile_path="$fix_srcfile_path_F77"
15306 # Set to yes if exported symbols are required.
15307 always_export_symbols=$always_export_symbols_F77
15309 # The commands to list exported symbols.
15310 export_symbols_cmds=$lt_export_symbols_cmds_F77
15312 # The commands to extract the exported symbol list from a shared archive.
15313 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15315 # Symbols that should not be listed in the preloaded symbols.
15316 exclude_expsyms=$lt_exclude_expsyms_F77
15318 # Symbols that must always be exported.
15319 include_expsyms=$lt_include_expsyms_F77
15321 # ### END LIBTOOL TAG CONFIG: $tagname
15323 __EOF__
15326 else
15327 # If there is no Makefile yet, we rely on a make rule to execute
15328 # `config.status --recheck' to rerun these tests and create the
15329 # libtool script then.
15330 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15331 if test -f "$ltmain_in"; then
15332 test -f Makefile && make "$ltmain"
15337 ac_ext=c
15338 ac_cpp='$CPP $CPPFLAGS'
15339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15343 CC="$lt_save_CC"
15345 else
15346 tagname=""
15350 GCJ)
15351 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15355 # Source file extension for Java test sources.
15356 ac_ext=java
15358 # Object file extension for compiled Java test sources.
15359 objext=o
15360 objext_GCJ=$objext
15362 # Code to be used in simple compile tests
15363 lt_simple_compile_test_code="class foo {}\n"
15365 # Code to be used in simple link tests
15366 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15368 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15370 # If no C compiler was specified, use CC.
15371 LTCC=${LTCC-"$CC"}
15373 # If no C compiler flags were specified, use CFLAGS.
15374 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15376 # Allow CC to be a program name with arguments.
15377 compiler=$CC
15380 # save warnings/boilerplate of simple test code
15381 ac_outfile=conftest.$ac_objext
15382 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15383 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15384 _lt_compiler_boilerplate=`cat conftest.err`
15385 $rm conftest*
15387 ac_outfile=conftest.$ac_objext
15388 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15389 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15390 _lt_linker_boilerplate=`cat conftest.err`
15391 $rm conftest*
15394 # Allow CC to be a program name with arguments.
15395 lt_save_CC="$CC"
15396 CC=${GCJ-"gcj"}
15397 compiler=$CC
15398 compiler_GCJ=$CC
15399 for cc_temp in $compiler""; do
15400 case $cc_temp in
15401 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15402 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15403 \-*) ;;
15404 *) break;;
15405 esac
15406 done
15407 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15410 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15411 archive_cmds_need_lc_GCJ=no
15413 old_archive_cmds_GCJ=$old_archive_cmds
15416 lt_prog_compiler_no_builtin_flag_GCJ=
15418 if test "$GCC" = yes; then
15419 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15422 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15423 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15424 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15425 echo $ECHO_N "(cached) $ECHO_C" >&6
15426 else
15427 lt_cv_prog_compiler_rtti_exceptions=no
15428 ac_outfile=conftest.$ac_objext
15429 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15430 lt_compiler_flag="-fno-rtti -fno-exceptions"
15431 # Insert the option either (1) after the last *FLAGS variable, or
15432 # (2) before a word containing "conftest.", or (3) at the end.
15433 # Note that $ac_compile itself does not contain backslashes and begins
15434 # with a dollar sign (not a hyphen), so the echo should work correctly.
15435 # The option is referenced via a variable to avoid confusing sed.
15436 lt_compile=`echo "$ac_compile" | $SED \
15437 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15438 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15439 -e 's:$: $lt_compiler_flag:'`
15440 (eval echo "\"\$as_me:15440: $lt_compile\"" >&5)
15441 (eval "$lt_compile" 2>conftest.err)
15442 ac_status=$?
15443 cat conftest.err >&5
15444 echo "$as_me:15444: \$? = $ac_status" >&5
15445 if (exit $ac_status) && test -s "$ac_outfile"; then
15446 # The compiler can only warn and ignore the option if not recognized
15447 # So say no if there are warnings other than the usual output.
15448 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15449 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15450 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15451 lt_cv_prog_compiler_rtti_exceptions=yes
15454 $rm conftest*
15457 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15458 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15460 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15461 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15462 else
15468 lt_prog_compiler_wl_GCJ=
15469 lt_prog_compiler_pic_GCJ=
15470 lt_prog_compiler_static_GCJ=
15472 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15473 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15475 if test "$GCC" = yes; then
15476 lt_prog_compiler_wl_GCJ='-Wl,'
15477 lt_prog_compiler_static_GCJ='-static'
15479 case $host_os in
15480 aix*)
15481 # All AIX code is PIC.
15482 if test "$host_cpu" = ia64; then
15483 # AIX 5 now supports IA64 processor
15484 lt_prog_compiler_static_GCJ='-Bstatic'
15488 amigaos*)
15489 # FIXME: we need at least 68020 code to build shared libraries, but
15490 # adding the `-m68020' flag to GCC prevents building anything better,
15491 # like `-m68040'.
15492 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15495 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15496 # PIC is the default for these OSes.
15499 mingw* | pw32* | os2*)
15500 # This hack is so that the source file can tell whether it is being
15501 # built for inclusion in a dll (and should export symbols for example).
15502 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15505 darwin* | rhapsody*)
15506 # PIC is the default on this platform
15507 # Common symbols not allowed in MH_DYLIB files
15508 lt_prog_compiler_pic_GCJ='-fno-common'
15511 interix3*)
15512 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15513 # Instead, we relocate shared libraries at runtime.
15516 msdosdjgpp*)
15517 # Just because we use GCC doesn't mean we suddenly get shared libraries
15518 # on systems that don't support them.
15519 lt_prog_compiler_can_build_shared_GCJ=no
15520 enable_shared=no
15523 sysv4*MP*)
15524 if test -d /usr/nec; then
15525 lt_prog_compiler_pic_GCJ=-Kconform_pic
15529 hpux*)
15530 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15531 # not for PA HP-UX.
15532 case $host_cpu in
15533 hppa*64*|ia64*)
15534 # +Z the default
15537 lt_prog_compiler_pic_GCJ='-fPIC'
15539 esac
15543 lt_prog_compiler_pic_GCJ='-fPIC'
15545 esac
15546 else
15547 # PORTME Check for flag to pass linker flags through the system compiler.
15548 case $host_os in
15549 aix*)
15550 lt_prog_compiler_wl_GCJ='-Wl,'
15551 if test "$host_cpu" = ia64; then
15552 # AIX 5 now supports IA64 processor
15553 lt_prog_compiler_static_GCJ='-Bstatic'
15554 else
15555 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15558 darwin*)
15559 # PIC is the default on this platform
15560 # Common symbols not allowed in MH_DYLIB files
15561 case $cc_basename in
15562 xlc*)
15563 lt_prog_compiler_pic_GCJ='-qnocommon'
15564 lt_prog_compiler_wl_GCJ='-Wl,'
15566 esac
15569 mingw* | pw32* | os2*)
15570 # This hack is so that the source file can tell whether it is being
15571 # built for inclusion in a dll (and should export symbols for example).
15572 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15575 hpux9* | hpux10* | hpux11*)
15576 lt_prog_compiler_wl_GCJ='-Wl,'
15577 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15578 # not for PA HP-UX.
15579 case $host_cpu in
15580 hppa*64*|ia64*)
15581 # +Z the default
15584 lt_prog_compiler_pic_GCJ='+Z'
15586 esac
15587 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15588 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15591 irix5* | irix6* | nonstopux*)
15592 lt_prog_compiler_wl_GCJ='-Wl,'
15593 # PIC (with -KPIC) is the default.
15594 lt_prog_compiler_static_GCJ='-non_shared'
15597 newsos6)
15598 lt_prog_compiler_pic_GCJ='-KPIC'
15599 lt_prog_compiler_static_GCJ='-Bstatic'
15602 linux*)
15603 case $cc_basename in
15604 icc* | ecc*)
15605 lt_prog_compiler_wl_GCJ='-Wl,'
15606 lt_prog_compiler_pic_GCJ='-KPIC'
15607 lt_prog_compiler_static_GCJ='-static'
15609 pgcc* | pgf77* | pgf90* | pgf95*)
15610 # Portland Group compilers (*not* the Pentium gcc compiler,
15611 # which looks to be a dead project)
15612 lt_prog_compiler_wl_GCJ='-Wl,'
15613 lt_prog_compiler_pic_GCJ='-fpic'
15614 lt_prog_compiler_static_GCJ='-Bstatic'
15616 ccc*)
15617 lt_prog_compiler_wl_GCJ='-Wl,'
15618 # All Alpha code is PIC.
15619 lt_prog_compiler_static_GCJ='-non_shared'
15621 esac
15624 osf3* | osf4* | osf5*)
15625 lt_prog_compiler_wl_GCJ='-Wl,'
15626 # All OSF/1 code is PIC.
15627 lt_prog_compiler_static_GCJ='-non_shared'
15630 solaris*)
15631 lt_prog_compiler_pic_GCJ='-KPIC'
15632 lt_prog_compiler_static_GCJ='-Bstatic'
15633 case $cc_basename in
15634 f77* | f90* | f95*)
15635 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15637 lt_prog_compiler_wl_GCJ='-Wl,';;
15638 esac
15641 sunos4*)
15642 lt_prog_compiler_wl_GCJ='-Qoption ld '
15643 lt_prog_compiler_pic_GCJ='-PIC'
15644 lt_prog_compiler_static_GCJ='-Bstatic'
15647 sysv4 | sysv4.2uw2* | sysv4.3*)
15648 lt_prog_compiler_wl_GCJ='-Wl,'
15649 lt_prog_compiler_pic_GCJ='-KPIC'
15650 lt_prog_compiler_static_GCJ='-Bstatic'
15653 sysv4*MP*)
15654 if test -d /usr/nec ;then
15655 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15656 lt_prog_compiler_static_GCJ='-Bstatic'
15660 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15661 lt_prog_compiler_wl_GCJ='-Wl,'
15662 lt_prog_compiler_pic_GCJ='-KPIC'
15663 lt_prog_compiler_static_GCJ='-Bstatic'
15666 unicos*)
15667 lt_prog_compiler_wl_GCJ='-Wl,'
15668 lt_prog_compiler_can_build_shared_GCJ=no
15671 uts4*)
15672 lt_prog_compiler_pic_GCJ='-pic'
15673 lt_prog_compiler_static_GCJ='-Bstatic'
15677 lt_prog_compiler_can_build_shared_GCJ=no
15679 esac
15682 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15683 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15686 # Check to make sure the PIC flag actually works.
15688 if test -n "$lt_prog_compiler_pic_GCJ"; then
15690 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15691 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15692 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15693 echo $ECHO_N "(cached) $ECHO_C" >&6
15694 else
15695 lt_prog_compiler_pic_works_GCJ=no
15696 ac_outfile=conftest.$ac_objext
15697 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15698 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15699 # Insert the option either (1) after the last *FLAGS variable, or
15700 # (2) before a word containing "conftest.", or (3) at the end.
15701 # Note that $ac_compile itself does not contain backslashes and begins
15702 # with a dollar sign (not a hyphen), so the echo should work correctly.
15703 # The option is referenced via a variable to avoid confusing sed.
15704 lt_compile=`echo "$ac_compile" | $SED \
15705 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15706 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15707 -e 's:$: $lt_compiler_flag:'`
15708 (eval echo "\"\$as_me:15708: $lt_compile\"" >&5)
15709 (eval "$lt_compile" 2>conftest.err)
15710 ac_status=$?
15711 cat conftest.err >&5
15712 echo "$as_me:15712: \$? = $ac_status" >&5
15713 if (exit $ac_status) && test -s "$ac_outfile"; then
15714 # The compiler can only warn and ignore the option if not recognized
15715 # So say no if there are warnings other than the usual output.
15716 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15717 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15718 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15719 lt_prog_compiler_pic_works_GCJ=yes
15722 $rm conftest*
15725 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15726 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15728 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15729 case $lt_prog_compiler_pic_GCJ in
15730 "" | " "*) ;;
15731 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15732 esac
15733 else
15734 lt_prog_compiler_pic_GCJ=
15735 lt_prog_compiler_can_build_shared_GCJ=no
15739 case $host_os in
15740 # For platforms which do not support PIC, -DPIC is meaningless:
15741 *djgpp*)
15742 lt_prog_compiler_pic_GCJ=
15745 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15747 esac
15750 # Check to make sure the static flag actually works.
15752 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15753 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15754 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15755 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15756 echo $ECHO_N "(cached) $ECHO_C" >&6
15757 else
15758 lt_prog_compiler_static_works_GCJ=no
15759 save_LDFLAGS="$LDFLAGS"
15760 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15761 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15762 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15763 # The linker can only warn and ignore the option if not recognized
15764 # So say no if there are warnings
15765 if test -s conftest.err; then
15766 # Append any errors to the config.log.
15767 cat conftest.err 1>&5
15768 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15769 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15770 if diff conftest.exp conftest.er2 >/dev/null; then
15771 lt_prog_compiler_static_works_GCJ=yes
15773 else
15774 lt_prog_compiler_static_works_GCJ=yes
15777 $rm conftest*
15778 LDFLAGS="$save_LDFLAGS"
15781 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15782 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15784 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15786 else
15787 lt_prog_compiler_static_GCJ=
15791 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15792 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15793 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15794 echo $ECHO_N "(cached) $ECHO_C" >&6
15795 else
15796 lt_cv_prog_compiler_c_o_GCJ=no
15797 $rm -r conftest 2>/dev/null
15798 mkdir conftest
15799 cd conftest
15800 mkdir out
15801 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15803 lt_compiler_flag="-o out/conftest2.$ac_objext"
15804 # Insert the option either (1) after the last *FLAGS variable, or
15805 # (2) before a word containing "conftest.", or (3) at the end.
15806 # Note that $ac_compile itself does not contain backslashes and begins
15807 # with a dollar sign (not a hyphen), so the echo should work correctly.
15808 lt_compile=`echo "$ac_compile" | $SED \
15809 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15810 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15811 -e 's:$: $lt_compiler_flag:'`
15812 (eval echo "\"\$as_me:15812: $lt_compile\"" >&5)
15813 (eval "$lt_compile" 2>out/conftest.err)
15814 ac_status=$?
15815 cat out/conftest.err >&5
15816 echo "$as_me:15816: \$? = $ac_status" >&5
15817 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15818 then
15819 # The compiler can only warn and ignore the option if not recognized
15820 # So say no if there are warnings
15821 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15822 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15823 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15824 lt_cv_prog_compiler_c_o_GCJ=yes
15827 chmod u+w . 2>&5
15828 $rm conftest*
15829 # SGI C++ compiler will create directory out/ii_files/ for
15830 # template instantiation
15831 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15832 $rm out/* && rmdir out
15833 cd ..
15834 rmdir conftest
15835 $rm conftest*
15838 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15839 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15842 hard_links="nottested"
15843 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15844 # do not overwrite the value of need_locks provided by the user
15845 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15846 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15847 hard_links=yes
15848 $rm conftest*
15849 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15850 touch conftest.a
15851 ln conftest.a conftest.b 2>&5 || hard_links=no
15852 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15853 echo "$as_me:$LINENO: result: $hard_links" >&5
15854 echo "${ECHO_T}$hard_links" >&6
15855 if test "$hard_links" = no; then
15856 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15857 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15858 need_locks=warn
15860 else
15861 need_locks=no
15864 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15865 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15867 runpath_var=
15868 allow_undefined_flag_GCJ=
15869 enable_shared_with_static_runtimes_GCJ=no
15870 archive_cmds_GCJ=
15871 archive_expsym_cmds_GCJ=
15872 old_archive_From_new_cmds_GCJ=
15873 old_archive_from_expsyms_cmds_GCJ=
15874 export_dynamic_flag_spec_GCJ=
15875 whole_archive_flag_spec_GCJ=
15876 thread_safe_flag_spec_GCJ=
15877 hardcode_libdir_flag_spec_GCJ=
15878 hardcode_libdir_flag_spec_ld_GCJ=
15879 hardcode_libdir_separator_GCJ=
15880 hardcode_direct_GCJ=no
15881 hardcode_minus_L_GCJ=no
15882 hardcode_shlibpath_var_GCJ=unsupported
15883 link_all_deplibs_GCJ=unknown
15884 hardcode_automatic_GCJ=no
15885 module_cmds_GCJ=
15886 module_expsym_cmds_GCJ=
15887 always_export_symbols_GCJ=no
15888 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15889 # include_expsyms should be a list of space-separated symbols to be *always*
15890 # included in the symbol list
15891 include_expsyms_GCJ=
15892 # exclude_expsyms can be an extended regexp of symbols to exclude
15893 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15894 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15895 # as well as any symbol that contains `d'.
15896 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15897 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15898 # platforms (ab)use it in PIC code, but their linkers get confused if
15899 # the symbol is explicitly referenced. Since portable code cannot
15900 # rely on this symbol name, it's probably fine to never include it in
15901 # preloaded symbol tables.
15902 extract_expsyms_cmds=
15903 # Just being paranoid about ensuring that cc_basename is set.
15904 for cc_temp in $compiler""; do
15905 case $cc_temp in
15906 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15907 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15908 \-*) ;;
15909 *) break;;
15910 esac
15911 done
15912 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15914 case $host_os in
15915 cygwin* | mingw* | pw32*)
15916 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15917 # When not using gcc, we currently assume that we are using
15918 # Microsoft Visual C++.
15919 if test "$GCC" != yes; then
15920 with_gnu_ld=no
15923 interix*)
15924 # we just hope/assume this is gcc and not c89 (= MSVC++)
15925 with_gnu_ld=yes
15927 openbsd*)
15928 with_gnu_ld=no
15930 esac
15932 ld_shlibs_GCJ=yes
15933 if test "$with_gnu_ld" = yes; then
15934 # If archive_cmds runs LD, not CC, wlarc should be empty
15935 wlarc='${wl}'
15937 # Set some defaults for GNU ld with shared library support. These
15938 # are reset later if shared libraries are not supported. Putting them
15939 # here allows them to be overridden if necessary.
15940 runpath_var=LD_RUN_PATH
15941 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15942 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15943 # ancient GNU ld didn't support --whole-archive et. al.
15944 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15945 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15946 else
15947 whole_archive_flag_spec_GCJ=
15949 supports_anon_versioning=no
15950 case `$LD -v 2>/dev/null` in
15951 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15952 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15953 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15954 *\ 2.11.*) ;; # other 2.11 versions
15955 *) supports_anon_versioning=yes ;;
15956 esac
15958 # See if GNU ld supports shared libraries.
15959 case $host_os in
15960 aix3* | aix4* | aix5*)
15961 # On AIX/PPC, the GNU linker is very broken
15962 if test "$host_cpu" != ia64; then
15963 ld_shlibs_GCJ=no
15964 cat <<EOF 1>&2
15966 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15967 *** to be unable to reliably create shared libraries on AIX.
15968 *** Therefore, libtool is disabling shared libraries support. If you
15969 *** really care for shared libraries, you may want to modify your PATH
15970 *** so that a non-GNU linker is found, and then restart.
15976 amigaos*)
15977 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)'
15978 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15979 hardcode_minus_L_GCJ=yes
15981 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15982 # that the semantics of dynamic libraries on AmigaOS, at least up
15983 # to version 4, is to share data among multiple programs linked
15984 # with the same dynamic library. Since this doesn't match the
15985 # behavior of shared libraries on other platforms, we can't use
15986 # them.
15987 ld_shlibs_GCJ=no
15990 beos*)
15991 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15992 allow_undefined_flag_GCJ=unsupported
15993 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15994 # support --undefined. This deserves some investigation. FIXME
15995 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15996 else
15997 ld_shlibs_GCJ=no
16001 cygwin* | mingw* | pw32*)
16002 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16003 # as there is no search path for DLLs.
16004 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16005 allow_undefined_flag_GCJ=unsupported
16006 always_export_symbols_GCJ=no
16007 enable_shared_with_static_runtimes_GCJ=yes
16008 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16010 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16011 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16012 # If the export-symbols file already is a .def file (1st line
16013 # is EXPORTS), use it as is; otherwise, prepend...
16014 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16015 cp $export_symbols $output_objdir/$soname.def;
16016 else
16017 echo EXPORTS > $output_objdir/$soname.def;
16018 cat $export_symbols >> $output_objdir/$soname.def;
16020 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16021 else
16022 ld_shlibs_GCJ=no
16026 interix3*)
16027 hardcode_direct_GCJ=no
16028 hardcode_shlibpath_var_GCJ=no
16029 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16030 export_dynamic_flag_spec_GCJ='${wl}-E'
16031 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16032 # Instead, shared libraries are loaded at an image base (0x10000000 by
16033 # default) and relocated if they conflict, which is a slow very memory
16034 # consuming and fragmenting process. To avoid this, we pick a random,
16035 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16036 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16037 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16038 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16041 linux*)
16042 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16043 tmp_addflag=
16044 case $cc_basename,$host_cpu in
16045 pgcc*) # Portland Group C compiler
16046 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16047 tmp_addflag=' $pic_flag'
16049 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16050 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16051 tmp_addflag=' $pic_flag -Mnomain' ;;
16052 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16053 tmp_addflag=' -i_dynamic' ;;
16054 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16055 tmp_addflag=' -i_dynamic -nofor_main' ;;
16056 ifc* | ifort*) # Intel Fortran compiler
16057 tmp_addflag=' -nofor_main' ;;
16058 esac
16059 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16061 if test $supports_anon_versioning = yes; then
16062 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16063 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16064 $echo "local: *; };" >> $output_objdir/$libname.ver~
16065 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16067 else
16068 ld_shlibs_GCJ=no
16072 netbsd*)
16073 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16074 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16075 wlarc=
16076 else
16077 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16078 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16082 solaris*)
16083 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16084 ld_shlibs_GCJ=no
16085 cat <<EOF 1>&2
16087 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16088 *** create shared libraries on Solaris systems. Therefore, libtool
16089 *** is disabling shared libraries support. We urge you to upgrade GNU
16090 *** binutils to release 2.9.1 or newer. Another option is to modify
16091 *** your PATH or compiler configuration so that the native linker is
16092 *** used, and then restart.
16095 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16096 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16097 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16098 else
16099 ld_shlibs_GCJ=no
16103 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16104 case `$LD -v 2>&1` in
16105 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16106 ld_shlibs_GCJ=no
16107 cat <<_LT_EOF 1>&2
16109 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16110 *** reliably create shared libraries on SCO systems. Therefore, libtool
16111 *** is disabling shared libraries support. We urge you to upgrade GNU
16112 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16113 *** your PATH or compiler configuration so that the native linker is
16114 *** used, and then restart.
16116 _LT_EOF
16119 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16120 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16121 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16122 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16123 else
16124 ld_shlibs_GCJ=no
16127 esac
16130 sunos4*)
16131 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16132 wlarc=
16133 hardcode_direct_GCJ=yes
16134 hardcode_shlibpath_var_GCJ=no
16138 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16139 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16140 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16141 else
16142 ld_shlibs_GCJ=no
16145 esac
16147 if test "$ld_shlibs_GCJ" = no; then
16148 runpath_var=
16149 hardcode_libdir_flag_spec_GCJ=
16150 export_dynamic_flag_spec_GCJ=
16151 whole_archive_flag_spec_GCJ=
16153 else
16154 # PORTME fill in a description of your system's linker (not GNU ld)
16155 case $host_os in
16156 aix3*)
16157 allow_undefined_flag_GCJ=unsupported
16158 always_export_symbols_GCJ=yes
16159 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'
16160 # Note: this linker hardcodes the directories in LIBPATH if there
16161 # are no directories specified by -L.
16162 hardcode_minus_L_GCJ=yes
16163 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16164 # Neither direct hardcoding nor static linking is supported with a
16165 # broken collect2.
16166 hardcode_direct_GCJ=unsupported
16170 aix4* | aix5*)
16171 if test "$host_cpu" = ia64; then
16172 # On IA64, the linker does run time linking by default, so we don't
16173 # have to do anything special.
16174 aix_use_runtimelinking=no
16175 exp_sym_flag='-Bexport'
16176 no_entry_flag=""
16177 else
16178 # If we're using GNU nm, then we don't want the "-C" option.
16179 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16180 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16181 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'
16182 else
16183 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'
16185 aix_use_runtimelinking=no
16187 # Test if we are trying to use run time linking or normal
16188 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16189 # need to do runtime linking.
16190 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16191 for ld_flag in $LDFLAGS; do
16192 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16193 aix_use_runtimelinking=yes
16194 break
16196 done
16198 esac
16200 exp_sym_flag='-bexport'
16201 no_entry_flag='-bnoentry'
16204 # When large executables or shared objects are built, AIX ld can
16205 # have problems creating the table of contents. If linking a library
16206 # or program results in "error TOC overflow" add -mminimal-toc to
16207 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16208 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16210 archive_cmds_GCJ=''
16211 hardcode_direct_GCJ=yes
16212 hardcode_libdir_separator_GCJ=':'
16213 link_all_deplibs_GCJ=yes
16215 if test "$GCC" = yes; then
16216 case $host_os in aix4.[012]|aix4.[012].*)
16217 # We only want to do this on AIX 4.2 and lower, the check
16218 # below for broken collect2 doesn't work under 4.3+
16219 collect2name=`${CC} -print-prog-name=collect2`
16220 if test -f "$collect2name" && \
16221 strings "$collect2name" | grep resolve_lib_name >/dev/null
16222 then
16223 # We have reworked collect2
16224 hardcode_direct_GCJ=yes
16225 else
16226 # We have old collect2
16227 hardcode_direct_GCJ=unsupported
16228 # It fails to find uninstalled libraries when the uninstalled
16229 # path is not listed in the libpath. Setting hardcode_minus_L
16230 # to unsupported forces relinking
16231 hardcode_minus_L_GCJ=yes
16232 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16233 hardcode_libdir_separator_GCJ=
16236 esac
16237 shared_flag='-shared'
16238 if test "$aix_use_runtimelinking" = yes; then
16239 shared_flag="$shared_flag "'${wl}-G'
16241 else
16242 # not using gcc
16243 if test "$host_cpu" = ia64; then
16244 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16245 # chokes on -Wl,-G. The following line is correct:
16246 shared_flag='-G'
16247 else
16248 if test "$aix_use_runtimelinking" = yes; then
16249 shared_flag='${wl}-G'
16250 else
16251 shared_flag='${wl}-bM:SRE'
16256 # It seems that -bexpall does not export symbols beginning with
16257 # underscore (_), so it is better to generate a list of symbols to export.
16258 always_export_symbols_GCJ=yes
16259 if test "$aix_use_runtimelinking" = yes; then
16260 # Warning - without using the other runtime loading flags (-brtl),
16261 # -berok will link without error, but may produce a broken library.
16262 allow_undefined_flag_GCJ='-berok'
16263 # Determine the default libpath from the value encoded in an empty executable.
16264 cat >conftest.$ac_ext <<_ACEOF
16265 /* confdefs.h. */
16266 _ACEOF
16267 cat confdefs.h >>conftest.$ac_ext
16268 cat >>conftest.$ac_ext <<_ACEOF
16269 /* end confdefs.h. */
16272 main ()
16276 return 0;
16278 _ACEOF
16279 rm -f conftest.$ac_objext conftest$ac_exeext
16280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16281 (eval $ac_link) 2>conftest.er1
16282 ac_status=$?
16283 grep -v '^ *+' conftest.er1 >conftest.err
16284 rm -f conftest.er1
16285 cat conftest.err >&5
16286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287 (exit $ac_status); } &&
16288 { ac_try='test -z "$ac_c_werror_flag"
16289 || test ! -s conftest.err'
16290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16291 (eval $ac_try) 2>&5
16292 ac_status=$?
16293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16294 (exit $ac_status); }; } &&
16295 { ac_try='test -s conftest$ac_exeext'
16296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16297 (eval $ac_try) 2>&5
16298 ac_status=$?
16299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16300 (exit $ac_status); }; }; then
16302 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16304 # Check for a 64-bit object if we didn't find anything.
16305 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; }
16306 }'`; fi
16307 else
16308 echo "$as_me: failed program was:" >&5
16309 sed 's/^/| /' conftest.$ac_ext >&5
16312 rm -f conftest.err conftest.$ac_objext \
16313 conftest$ac_exeext conftest.$ac_ext
16314 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16316 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16317 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16318 else
16319 if test "$host_cpu" = ia64; then
16320 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16321 allow_undefined_flag_GCJ="-z nodefs"
16322 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16323 else
16324 # Determine the default libpath from the value encoded in an empty executable.
16325 cat >conftest.$ac_ext <<_ACEOF
16326 /* confdefs.h. */
16327 _ACEOF
16328 cat confdefs.h >>conftest.$ac_ext
16329 cat >>conftest.$ac_ext <<_ACEOF
16330 /* end confdefs.h. */
16333 main ()
16337 return 0;
16339 _ACEOF
16340 rm -f conftest.$ac_objext conftest$ac_exeext
16341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16342 (eval $ac_link) 2>conftest.er1
16343 ac_status=$?
16344 grep -v '^ *+' conftest.er1 >conftest.err
16345 rm -f conftest.er1
16346 cat conftest.err >&5
16347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348 (exit $ac_status); } &&
16349 { ac_try='test -z "$ac_c_werror_flag"
16350 || test ! -s conftest.err'
16351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16352 (eval $ac_try) 2>&5
16353 ac_status=$?
16354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355 (exit $ac_status); }; } &&
16356 { ac_try='test -s conftest$ac_exeext'
16357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16358 (eval $ac_try) 2>&5
16359 ac_status=$?
16360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361 (exit $ac_status); }; }; then
16363 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16365 # Check for a 64-bit object if we didn't find anything.
16366 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; }
16367 }'`; fi
16368 else
16369 echo "$as_me: failed program was:" >&5
16370 sed 's/^/| /' conftest.$ac_ext >&5
16373 rm -f conftest.err conftest.$ac_objext \
16374 conftest$ac_exeext conftest.$ac_ext
16375 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16377 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16378 # Warning - without using the other run time loading flags,
16379 # -berok will link without error, but may produce a broken library.
16380 no_undefined_flag_GCJ=' ${wl}-bernotok'
16381 allow_undefined_flag_GCJ=' ${wl}-berok'
16382 # Exported symbols can be pulled into shared objects from archives
16383 whole_archive_flag_spec_GCJ='$convenience'
16384 archive_cmds_need_lc_GCJ=yes
16385 # This is similar to how AIX traditionally builds its shared libraries.
16386 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16391 amigaos*)
16392 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)'
16393 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16394 hardcode_minus_L_GCJ=yes
16395 # see comment about different semantics on the GNU ld section
16396 ld_shlibs_GCJ=no
16399 bsdi[45]*)
16400 export_dynamic_flag_spec_GCJ=-rdynamic
16403 cygwin* | mingw* | pw32*)
16404 # When not using gcc, we currently assume that we are using
16405 # Microsoft Visual C++.
16406 # hardcode_libdir_flag_spec is actually meaningless, as there is
16407 # no search path for DLLs.
16408 hardcode_libdir_flag_spec_GCJ=' '
16409 allow_undefined_flag_GCJ=unsupported
16410 # Tell ltmain to make .lib files, not .a files.
16411 libext=lib
16412 # Tell ltmain to make .dll files, not .so files.
16413 shrext_cmds=".dll"
16414 # FIXME: Setting linknames here is a bad hack.
16415 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16416 # The linker will automatically build a .lib file if we build a DLL.
16417 old_archive_From_new_cmds_GCJ='true'
16418 # FIXME: Should let the user specify the lib program.
16419 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16420 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16421 enable_shared_with_static_runtimes_GCJ=yes
16424 darwin* | rhapsody*)
16425 case $host_os in
16426 rhapsody* | darwin1.[012])
16427 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16429 *) # Darwin 1.3 on
16430 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16431 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16432 else
16433 case ${MACOSX_DEPLOYMENT_TARGET} in
16434 10.[012])
16435 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16437 10.*)
16438 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16440 esac
16443 esac
16444 archive_cmds_need_lc_GCJ=no
16445 hardcode_direct_GCJ=no
16446 hardcode_automatic_GCJ=yes
16447 hardcode_shlibpath_var_GCJ=unsupported
16448 whole_archive_flag_spec_GCJ=''
16449 link_all_deplibs_GCJ=yes
16450 if test "$GCC" = yes ; then
16451 output_verbose_link_cmd='echo'
16452 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16453 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16454 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16455 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}'
16456 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}'
16457 else
16458 case $cc_basename in
16459 xlc*)
16460 output_verbose_link_cmd='echo'
16461 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16462 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16463 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16464 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}'
16465 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}'
16468 ld_shlibs_GCJ=no
16470 esac
16474 dgux*)
16475 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16476 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16477 hardcode_shlibpath_var_GCJ=no
16480 freebsd1*)
16481 ld_shlibs_GCJ=no
16484 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16485 # support. Future versions do this automatically, but an explicit c++rt0.o
16486 # does not break anything, and helps significantly (at the cost of a little
16487 # extra space).
16488 freebsd2.2*)
16489 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16490 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16491 hardcode_direct_GCJ=yes
16492 hardcode_shlibpath_var_GCJ=no
16495 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16496 freebsd2*)
16497 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16498 hardcode_direct_GCJ=yes
16499 hardcode_minus_L_GCJ=yes
16500 hardcode_shlibpath_var_GCJ=no
16503 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16504 freebsd* | kfreebsd*-gnu | dragonfly*)
16505 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16506 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16507 hardcode_direct_GCJ=yes
16508 hardcode_shlibpath_var_GCJ=no
16511 hpux9*)
16512 if test "$GCC" = yes; then
16513 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'
16514 else
16515 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'
16517 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16518 hardcode_libdir_separator_GCJ=:
16519 hardcode_direct_GCJ=yes
16521 # hardcode_minus_L: Not really in the search PATH,
16522 # but as the default location of the library.
16523 hardcode_minus_L_GCJ=yes
16524 export_dynamic_flag_spec_GCJ='${wl}-E'
16527 hpux10*)
16528 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16529 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16530 else
16531 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16533 if test "$with_gnu_ld" = no; then
16534 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16535 hardcode_libdir_separator_GCJ=:
16537 hardcode_direct_GCJ=yes
16538 export_dynamic_flag_spec_GCJ='${wl}-E'
16540 # hardcode_minus_L: Not really in the search PATH,
16541 # but as the default location of the library.
16542 hardcode_minus_L_GCJ=yes
16546 hpux11*)
16547 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16548 case $host_cpu in
16549 hppa*64*)
16550 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16552 ia64*)
16553 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16556 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16558 esac
16559 else
16560 case $host_cpu in
16561 hppa*64*)
16562 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16564 ia64*)
16565 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16568 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16570 esac
16572 if test "$with_gnu_ld" = no; then
16573 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16574 hardcode_libdir_separator_GCJ=:
16576 case $host_cpu in
16577 hppa*64*|ia64*)
16578 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16579 hardcode_direct_GCJ=no
16580 hardcode_shlibpath_var_GCJ=no
16583 hardcode_direct_GCJ=yes
16584 export_dynamic_flag_spec_GCJ='${wl}-E'
16586 # hardcode_minus_L: Not really in the search PATH,
16587 # but as the default location of the library.
16588 hardcode_minus_L_GCJ=yes
16590 esac
16594 irix5* | irix6* | nonstopux*)
16595 if test "$GCC" = yes; then
16596 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'
16597 else
16598 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'
16599 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16601 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16602 hardcode_libdir_separator_GCJ=:
16603 link_all_deplibs_GCJ=yes
16606 netbsd*)
16607 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16608 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16609 else
16610 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16612 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16613 hardcode_direct_GCJ=yes
16614 hardcode_shlibpath_var_GCJ=no
16617 newsos6)
16618 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16619 hardcode_direct_GCJ=yes
16620 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16621 hardcode_libdir_separator_GCJ=:
16622 hardcode_shlibpath_var_GCJ=no
16625 openbsd*)
16626 hardcode_direct_GCJ=yes
16627 hardcode_shlibpath_var_GCJ=no
16628 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16629 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16630 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16631 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16632 export_dynamic_flag_spec_GCJ='${wl}-E'
16633 else
16634 case $host_os in
16635 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16636 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16637 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16640 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16641 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16643 esac
16647 os2*)
16648 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16649 hardcode_minus_L_GCJ=yes
16650 allow_undefined_flag_GCJ=unsupported
16651 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'
16652 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16655 osf3*)
16656 if test "$GCC" = yes; then
16657 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16658 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'
16659 else
16660 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16661 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'
16663 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16664 hardcode_libdir_separator_GCJ=:
16667 osf4* | osf5*) # as osf3* with the addition of -msym flag
16668 if test "$GCC" = yes; then
16669 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16670 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'
16671 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16672 else
16673 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16674 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'
16675 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~
16676 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16678 # Both c and cxx compiler support -rpath directly
16679 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16681 hardcode_libdir_separator_GCJ=:
16684 solaris*)
16685 no_undefined_flag_GCJ=' -z text'
16686 if test "$GCC" = yes; then
16687 wlarc='${wl}'
16688 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16689 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16690 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16691 else
16692 wlarc=''
16693 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16694 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16695 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16697 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16698 hardcode_shlibpath_var_GCJ=no
16699 case $host_os in
16700 solaris2.[0-5] | solaris2.[0-5].*) ;;
16702 # The compiler driver will combine linker options so we
16703 # cannot just pass the convience library names through
16704 # without $wl, iff we do not link with $LD.
16705 # Luckily, gcc supports the same syntax we need for Sun Studio.
16706 # Supported since Solaris 2.6 (maybe 2.5.1?)
16707 case $wlarc in
16709 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16711 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16712 esac ;;
16713 esac
16714 link_all_deplibs_GCJ=yes
16717 sunos4*)
16718 if test "x$host_vendor" = xsequent; then
16719 # Use $CC to link under sequent, because it throws in some extra .o
16720 # files that make .init and .fini sections work.
16721 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16722 else
16723 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16725 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16726 hardcode_direct_GCJ=yes
16727 hardcode_minus_L_GCJ=yes
16728 hardcode_shlibpath_var_GCJ=no
16731 sysv4)
16732 case $host_vendor in
16733 sni)
16734 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16735 hardcode_direct_GCJ=yes # is this really true???
16737 siemens)
16738 ## LD is ld it makes a PLAMLIB
16739 ## CC just makes a GrossModule.
16740 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16741 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16742 hardcode_direct_GCJ=no
16744 motorola)
16745 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16746 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16748 esac
16749 runpath_var='LD_RUN_PATH'
16750 hardcode_shlibpath_var_GCJ=no
16753 sysv4.3*)
16754 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16755 hardcode_shlibpath_var_GCJ=no
16756 export_dynamic_flag_spec_GCJ='-Bexport'
16759 sysv4*MP*)
16760 if test -d /usr/nec; then
16761 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16762 hardcode_shlibpath_var_GCJ=no
16763 runpath_var=LD_RUN_PATH
16764 hardcode_runpath_var=yes
16765 ld_shlibs_GCJ=yes
16769 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16770 no_undefined_flag_GCJ='${wl}-z,text'
16771 archive_cmds_need_lc_GCJ=no
16772 hardcode_shlibpath_var_GCJ=no
16773 runpath_var='LD_RUN_PATH'
16775 if test "$GCC" = yes; then
16776 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16777 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16778 else
16779 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16780 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16784 sysv5* | sco3.2v5* | sco5v6*)
16785 # Note: We can NOT use -z defs as we might desire, because we do not
16786 # link with -lc, and that would cause any symbols used from libc to
16787 # always be unresolved, which means just about no library would
16788 # ever link correctly. If we're not using GNU ld we use -z text
16789 # though, which does catch some bad symbols but isn't as heavy-handed
16790 # as -z defs.
16791 no_undefined_flag_GCJ='${wl}-z,text'
16792 allow_undefined_flag_GCJ='${wl}-z,nodefs'
16793 archive_cmds_need_lc_GCJ=no
16794 hardcode_shlibpath_var_GCJ=no
16795 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16796 hardcode_libdir_separator_GCJ=':'
16797 link_all_deplibs_GCJ=yes
16798 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16799 runpath_var='LD_RUN_PATH'
16801 if test "$GCC" = yes; then
16802 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16803 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16804 else
16805 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16806 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16810 uts4*)
16811 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16812 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16813 hardcode_shlibpath_var_GCJ=no
16817 ld_shlibs_GCJ=no
16819 esac
16822 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16823 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16824 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16827 # Do we need to explicitly link libc?
16829 case "x$archive_cmds_need_lc_GCJ" in
16830 x|xyes)
16831 # Assume -lc should be added
16832 archive_cmds_need_lc_GCJ=yes
16834 if test "$enable_shared" = yes && test "$GCC" = yes; then
16835 case $archive_cmds_GCJ in
16836 *'~'*)
16837 # FIXME: we may have to deal with multi-command sequences.
16839 '$CC '*)
16840 # Test whether the compiler implicitly links with -lc since on some
16841 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16842 # to ld, don't add -lc before -lgcc.
16843 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16844 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16845 $rm conftest*
16846 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16849 (eval $ac_compile) 2>&5
16850 ac_status=$?
16851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852 (exit $ac_status); } 2>conftest.err; then
16853 soname=conftest
16854 lib=conftest
16855 libobjs=conftest.$ac_objext
16856 deplibs=
16857 wl=$lt_prog_compiler_wl_GCJ
16858 pic_flag=$lt_prog_compiler_pic_GCJ
16859 compiler_flags=-v
16860 linker_flags=-v
16861 verstring=
16862 output_objdir=.
16863 libname=conftest
16864 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16865 allow_undefined_flag_GCJ=
16866 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16867 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16868 ac_status=$?
16869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870 (exit $ac_status); }
16871 then
16872 archive_cmds_need_lc_GCJ=no
16873 else
16874 archive_cmds_need_lc_GCJ=yes
16876 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16877 else
16878 cat conftest.err 1>&5
16880 $rm conftest*
16881 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16882 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16884 esac
16887 esac
16889 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16890 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16891 library_names_spec=
16892 libname_spec='lib$name'
16893 soname_spec=
16894 shrext_cmds=".so"
16895 postinstall_cmds=
16896 postuninstall_cmds=
16897 finish_cmds=
16898 finish_eval=
16899 shlibpath_var=
16900 shlibpath_overrides_runpath=unknown
16901 version_type=none
16902 dynamic_linker="$host_os ld.so"
16903 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16904 if test "$GCC" = yes; then
16905 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16906 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16907 # if the path contains ";" then we assume it to be the separator
16908 # otherwise default to the standard path separator (i.e. ":") - it is
16909 # assumed that no part of a normal pathname contains ";" but that should
16910 # okay in the real world where ";" in dirpaths is itself problematic.
16911 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16912 else
16913 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16915 else
16916 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16918 need_lib_prefix=unknown
16919 hardcode_into_libs=no
16921 # when you set need_version to no, make sure it does not cause -set_version
16922 # flags to be left without arguments
16923 need_version=unknown
16925 case $host_os in
16926 aix3*)
16927 version_type=linux
16928 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16929 shlibpath_var=LIBPATH
16931 # AIX 3 has no versioning support, so we append a major version to the name.
16932 soname_spec='${libname}${release}${shared_ext}$major'
16935 aix4* | aix5*)
16936 version_type=linux
16937 need_lib_prefix=no
16938 need_version=no
16939 hardcode_into_libs=yes
16940 if test "$host_cpu" = ia64; then
16941 # AIX 5 supports IA64
16942 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16943 shlibpath_var=LD_LIBRARY_PATH
16944 else
16945 # With GCC up to 2.95.x, collect2 would create an import file
16946 # for dependence libraries. The import file would start with
16947 # the line `#! .'. This would cause the generated library to
16948 # depend on `.', always an invalid library. This was fixed in
16949 # development snapshots of GCC prior to 3.0.
16950 case $host_os in
16951 aix4 | aix4.[01] | aix4.[01].*)
16952 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16953 echo ' yes '
16954 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16956 else
16957 can_build_shared=no
16960 esac
16961 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16962 # soname into executable. Probably we can add versioning support to
16963 # collect2, so additional links can be useful in future.
16964 if test "$aix_use_runtimelinking" = yes; then
16965 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16966 # instead of lib<name>.a to let people know that these are not
16967 # typical AIX shared libraries.
16968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16969 else
16970 # We preserve .a as extension for shared libraries through AIX4.2
16971 # and later when we are not doing run time linking.
16972 library_names_spec='${libname}${release}.a $libname.a'
16973 soname_spec='${libname}${release}${shared_ext}$major'
16975 shlibpath_var=LIBPATH
16979 amigaos*)
16980 library_names_spec='$libname.ixlibrary $libname.a'
16981 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16982 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'
16985 beos*)
16986 library_names_spec='${libname}${shared_ext}'
16987 dynamic_linker="$host_os ld.so"
16988 shlibpath_var=LIBRARY_PATH
16991 bsdi[45]*)
16992 version_type=linux
16993 need_version=no
16994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16995 soname_spec='${libname}${release}${shared_ext}$major'
16996 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16997 shlibpath_var=LD_LIBRARY_PATH
16998 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16999 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17000 # the default ld.so.conf also contains /usr/contrib/lib and
17001 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17002 # libtool to hard-code these into programs
17005 cygwin* | mingw* | pw32*)
17006 version_type=windows
17007 shrext_cmds=".dll"
17008 need_version=no
17009 need_lib_prefix=no
17011 case $GCC,$host_os in
17012 yes,cygwin* | yes,mingw* | yes,pw32*)
17013 library_names_spec='$libname.dll.a'
17014 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17015 postinstall_cmds='base_file=`basename \${file}`~
17016 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17017 dldir=$destdir/`dirname \$dlpath`~
17018 test -d \$dldir || mkdir -p \$dldir~
17019 $install_prog $dir/$dlname \$dldir/$dlname~
17020 chmod a+x \$dldir/$dlname'
17021 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17022 dlpath=$dir/\$dldll~
17023 $rm \$dlpath'
17024 shlibpath_overrides_runpath=yes
17026 case $host_os in
17027 cygwin*)
17028 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17029 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17030 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17032 mingw*)
17033 # MinGW DLLs use traditional 'lib' prefix
17034 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17035 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17036 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17037 # It is most probably a Windows format PATH printed by
17038 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17039 # path with ; separators, and with drive letters. We can handle the
17040 # drive letters (cygwin fileutils understands them), so leave them,
17041 # especially as we might pass files found there to a mingw objdump,
17042 # which wouldn't understand a cygwinified path. Ahh.
17043 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17044 else
17045 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17048 pw32*)
17049 # pw32 DLLs use 'pw' prefix rather than 'lib'
17050 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17052 esac
17056 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17058 esac
17059 dynamic_linker='Win32 ld.exe'
17060 # FIXME: first we should search . and the directory the executable is in
17061 shlibpath_var=PATH
17064 darwin* | rhapsody*)
17065 dynamic_linker="$host_os dyld"
17066 version_type=darwin
17067 need_lib_prefix=no
17068 need_version=no
17069 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17070 soname_spec='${libname}${release}${major}$shared_ext'
17071 shlibpath_overrides_runpath=yes
17072 shlibpath_var=DYLD_LIBRARY_PATH
17073 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17074 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17075 if test "$GCC" = yes; then
17076 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"`
17077 else
17078 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17080 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17083 dgux*)
17084 version_type=linux
17085 need_lib_prefix=no
17086 need_version=no
17087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17088 soname_spec='${libname}${release}${shared_ext}$major'
17089 shlibpath_var=LD_LIBRARY_PATH
17092 freebsd1*)
17093 dynamic_linker=no
17096 kfreebsd*-gnu)
17097 version_type=linux
17098 need_lib_prefix=no
17099 need_version=no
17100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17101 soname_spec='${libname}${release}${shared_ext}$major'
17102 shlibpath_var=LD_LIBRARY_PATH
17103 shlibpath_overrides_runpath=no
17104 hardcode_into_libs=yes
17105 dynamic_linker='GNU ld.so'
17108 freebsd* | dragonfly*)
17109 # DragonFly does not have aout. When/if they implement a new
17110 # versioning mechanism, adjust this.
17111 if test -x /usr/bin/objformat; then
17112 objformat=`/usr/bin/objformat`
17113 else
17114 case $host_os in
17115 freebsd[123]*) objformat=aout ;;
17116 *) objformat=elf ;;
17117 esac
17119 version_type=freebsd-$objformat
17120 case $version_type in
17121 freebsd-elf*)
17122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17123 need_version=no
17124 need_lib_prefix=no
17126 freebsd-*)
17127 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17128 need_version=yes
17130 esac
17131 shlibpath_var=LD_LIBRARY_PATH
17132 case $host_os in
17133 freebsd2*)
17134 shlibpath_overrides_runpath=yes
17136 freebsd3.[01]* | freebsdelf3.[01]*)
17137 shlibpath_overrides_runpath=yes
17138 hardcode_into_libs=yes
17140 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17141 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17142 shlibpath_overrides_runpath=no
17143 hardcode_into_libs=yes
17145 freebsd*) # from 4.6 on
17146 shlibpath_overrides_runpath=yes
17147 hardcode_into_libs=yes
17149 esac
17152 gnu*)
17153 version_type=linux
17154 need_lib_prefix=no
17155 need_version=no
17156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17157 soname_spec='${libname}${release}${shared_ext}$major'
17158 shlibpath_var=LD_LIBRARY_PATH
17159 hardcode_into_libs=yes
17162 hpux9* | hpux10* | hpux11*)
17163 # Give a soname corresponding to the major version so that dld.sl refuses to
17164 # link against other versions.
17165 version_type=sunos
17166 need_lib_prefix=no
17167 need_version=no
17168 case $host_cpu in
17169 ia64*)
17170 shrext_cmds='.so'
17171 hardcode_into_libs=yes
17172 dynamic_linker="$host_os dld.so"
17173 shlibpath_var=LD_LIBRARY_PATH
17174 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17176 soname_spec='${libname}${release}${shared_ext}$major'
17177 if test "X$HPUX_IA64_MODE" = X32; then
17178 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17179 else
17180 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17182 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17184 hppa*64*)
17185 shrext_cmds='.sl'
17186 hardcode_into_libs=yes
17187 dynamic_linker="$host_os dld.sl"
17188 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17189 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17191 soname_spec='${libname}${release}${shared_ext}$major'
17192 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17193 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17196 shrext_cmds='.sl'
17197 dynamic_linker="$host_os dld.sl"
17198 shlibpath_var=SHLIB_PATH
17199 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17201 soname_spec='${libname}${release}${shared_ext}$major'
17203 esac
17204 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17205 postinstall_cmds='chmod 555 $lib'
17208 interix3*)
17209 version_type=linux
17210 need_lib_prefix=no
17211 need_version=no
17212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17213 soname_spec='${libname}${release}${shared_ext}$major'
17214 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17215 shlibpath_var=LD_LIBRARY_PATH
17216 shlibpath_overrides_runpath=no
17217 hardcode_into_libs=yes
17220 irix5* | irix6* | nonstopux*)
17221 case $host_os in
17222 nonstopux*) version_type=nonstopux ;;
17224 if test "$lt_cv_prog_gnu_ld" = yes; then
17225 version_type=linux
17226 else
17227 version_type=irix
17228 fi ;;
17229 esac
17230 need_lib_prefix=no
17231 need_version=no
17232 soname_spec='${libname}${release}${shared_ext}$major'
17233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17234 case $host_os in
17235 irix5* | nonstopux*)
17236 libsuff= shlibsuff=
17239 case $LD in # libtool.m4 will add one of these switches to LD
17240 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17241 libsuff= shlibsuff= libmagic=32-bit;;
17242 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17243 libsuff=32 shlibsuff=N32 libmagic=N32;;
17244 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17245 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17246 *) libsuff= shlibsuff= libmagic=never-match;;
17247 esac
17249 esac
17250 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17251 shlibpath_overrides_runpath=no
17252 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17253 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17254 hardcode_into_libs=yes
17257 # No shared lib support for Linux oldld, aout, or coff.
17258 linux*oldld* | linux*aout* | linux*coff*)
17259 dynamic_linker=no
17262 # This must be Linux ELF.
17263 linux*)
17264 version_type=linux
17265 need_lib_prefix=no
17266 need_version=no
17267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17268 soname_spec='${libname}${release}${shared_ext}$major'
17269 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17270 shlibpath_var=LD_LIBRARY_PATH
17271 shlibpath_overrides_runpath=no
17272 # This implies no fast_install, which is unacceptable.
17273 # Some rework will be needed to allow for fast_install
17274 # before this can be enabled.
17275 hardcode_into_libs=yes
17277 # find out which ABI we are using
17278 libsuff=
17279 case "$host_cpu" in
17280 x86_64*|s390x*|powerpc64*)
17281 echo '#line 17281 "configure"' > conftest.$ac_ext
17282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17283 (eval $ac_compile) 2>&5
17284 ac_status=$?
17285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17286 (exit $ac_status); }; then
17287 case `/usr/bin/file conftest.$ac_objext` in
17288 *64-bit*)
17289 libsuff=64
17290 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17292 esac
17294 rm -rf conftest*
17296 esac
17298 # Append ld.so.conf contents to the search path
17299 if test -f /etc/ld.so.conf; then
17300 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/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17301 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17304 # We used to test for /lib/ld.so.1 and disable shared libraries on
17305 # powerpc, because MkLinux only supported shared libraries with the
17306 # GNU dynamic linker. Since this was broken with cross compilers,
17307 # most powerpc-linux boxes support dynamic linking these days and
17308 # people can always --disable-shared, the test was removed, and we
17309 # assume the GNU/Linux dynamic linker is in use.
17310 dynamic_linker='GNU/Linux ld.so'
17313 knetbsd*-gnu)
17314 version_type=linux
17315 need_lib_prefix=no
17316 need_version=no
17317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17318 soname_spec='${libname}${release}${shared_ext}$major'
17319 shlibpath_var=LD_LIBRARY_PATH
17320 shlibpath_overrides_runpath=no
17321 hardcode_into_libs=yes
17322 dynamic_linker='GNU ld.so'
17325 netbsd*)
17326 version_type=sunos
17327 need_lib_prefix=no
17328 need_version=no
17329 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17331 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17332 dynamic_linker='NetBSD (a.out) ld.so'
17333 else
17334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17335 soname_spec='${libname}${release}${shared_ext}$major'
17336 dynamic_linker='NetBSD ld.elf_so'
17338 shlibpath_var=LD_LIBRARY_PATH
17339 shlibpath_overrides_runpath=yes
17340 hardcode_into_libs=yes
17343 newsos6)
17344 version_type=linux
17345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17346 shlibpath_var=LD_LIBRARY_PATH
17347 shlibpath_overrides_runpath=yes
17350 nto-qnx*)
17351 version_type=linux
17352 need_lib_prefix=no
17353 need_version=no
17354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17355 soname_spec='${libname}${release}${shared_ext}$major'
17356 shlibpath_var=LD_LIBRARY_PATH
17357 shlibpath_overrides_runpath=yes
17360 openbsd*)
17361 version_type=sunos
17362 sys_lib_dlsearch_path_spec="/usr/lib"
17363 need_lib_prefix=no
17364 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17365 case $host_os in
17366 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17367 *) need_version=no ;;
17368 esac
17369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17370 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17371 shlibpath_var=LD_LIBRARY_PATH
17372 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17373 case $host_os in
17374 openbsd2.[89] | openbsd2.[89].*)
17375 shlibpath_overrides_runpath=no
17378 shlibpath_overrides_runpath=yes
17380 esac
17381 else
17382 shlibpath_overrides_runpath=yes
17386 os2*)
17387 libname_spec='$name'
17388 shrext_cmds=".dll"
17389 need_lib_prefix=no
17390 library_names_spec='$libname${shared_ext} $libname.a'
17391 dynamic_linker='OS/2 ld.exe'
17392 shlibpath_var=LIBPATH
17395 osf3* | osf4* | osf5*)
17396 version_type=osf
17397 need_lib_prefix=no
17398 need_version=no
17399 soname_spec='${libname}${release}${shared_ext}$major'
17400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17401 shlibpath_var=LD_LIBRARY_PATH
17402 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17403 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17406 solaris*)
17407 version_type=linux
17408 need_lib_prefix=no
17409 need_version=no
17410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17411 soname_spec='${libname}${release}${shared_ext}$major'
17412 shlibpath_var=LD_LIBRARY_PATH
17413 shlibpath_overrides_runpath=yes
17414 hardcode_into_libs=yes
17415 # ldd complains unless libraries are executable
17416 postinstall_cmds='chmod +x $lib'
17419 sunos4*)
17420 version_type=sunos
17421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17422 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17423 shlibpath_var=LD_LIBRARY_PATH
17424 shlibpath_overrides_runpath=yes
17425 if test "$with_gnu_ld" = yes; then
17426 need_lib_prefix=no
17428 need_version=yes
17431 sysv4 | sysv4.3*)
17432 version_type=linux
17433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17434 soname_spec='${libname}${release}${shared_ext}$major'
17435 shlibpath_var=LD_LIBRARY_PATH
17436 case $host_vendor in
17437 sni)
17438 shlibpath_overrides_runpath=no
17439 need_lib_prefix=no
17440 export_dynamic_flag_spec='${wl}-Blargedynsym'
17441 runpath_var=LD_RUN_PATH
17443 siemens)
17444 need_lib_prefix=no
17446 motorola)
17447 need_lib_prefix=no
17448 need_version=no
17449 shlibpath_overrides_runpath=no
17450 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17452 esac
17455 sysv4*MP*)
17456 if test -d /usr/nec ;then
17457 version_type=linux
17458 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17459 soname_spec='$libname${shared_ext}.$major'
17460 shlibpath_var=LD_LIBRARY_PATH
17464 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17465 version_type=freebsd-elf
17466 need_lib_prefix=no
17467 need_version=no
17468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17469 soname_spec='${libname}${release}${shared_ext}$major'
17470 shlibpath_var=LD_LIBRARY_PATH
17471 hardcode_into_libs=yes
17472 if test "$with_gnu_ld" = yes; then
17473 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17474 shlibpath_overrides_runpath=no
17475 else
17476 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17477 shlibpath_overrides_runpath=yes
17478 case $host_os in
17479 sco3.2v5*)
17480 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17482 esac
17484 sys_lib_dlsearch_path_spec='/usr/lib'
17487 uts4*)
17488 version_type=linux
17489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17490 soname_spec='${libname}${release}${shared_ext}$major'
17491 shlibpath_var=LD_LIBRARY_PATH
17495 dynamic_linker=no
17497 esac
17498 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17499 echo "${ECHO_T}$dynamic_linker" >&6
17500 test "$dynamic_linker" = no && can_build_shared=no
17502 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17503 if test "$GCC" = yes; then
17504 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17507 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17508 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17509 hardcode_action_GCJ=
17510 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17511 test -n "$runpath_var_GCJ" || \
17512 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17514 # We can hardcode non-existant directories.
17515 if test "$hardcode_direct_GCJ" != no &&
17516 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17517 # have to relink, otherwise we might link with an installed library
17518 # when we should be linking with a yet-to-be-installed one
17519 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17520 test "$hardcode_minus_L_GCJ" != no; then
17521 # Linking always hardcodes the temporary library directory.
17522 hardcode_action_GCJ=relink
17523 else
17524 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17525 hardcode_action_GCJ=immediate
17527 else
17528 # We cannot hardcode anything, or else we can only hardcode existing
17529 # directories.
17530 hardcode_action_GCJ=unsupported
17532 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17533 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17535 if test "$hardcode_action_GCJ" = relink; then
17536 # Fast installation is not supported
17537 enable_fast_install=no
17538 elif test "$shlibpath_overrides_runpath" = yes ||
17539 test "$enable_shared" = no; then
17540 # Fast installation is not necessary
17541 enable_fast_install=needless
17545 # The else clause should only fire when bootstrapping the
17546 # libtool distribution, otherwise you forgot to ship ltmain.sh
17547 # with your package, and you will get complaints that there are
17548 # no rules to generate ltmain.sh.
17549 if test -f "$ltmain"; then
17550 # See if we are running on zsh, and set the options which allow our commands through
17551 # without removal of \ escapes.
17552 if test -n "${ZSH_VERSION+set}" ; then
17553 setopt NO_GLOB_SUBST
17555 # Now quote all the things that may contain metacharacters while being
17556 # careful not to overquote the AC_SUBSTed values. We take copies of the
17557 # variables and quote the copies for generation of the libtool script.
17558 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17559 SED SHELL STRIP \
17560 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17561 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17562 deplibs_check_method reload_flag reload_cmds need_locks \
17563 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17564 lt_cv_sys_global_symbol_to_c_name_address \
17565 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17566 old_postinstall_cmds old_postuninstall_cmds \
17567 compiler_GCJ \
17568 CC_GCJ \
17569 LD_GCJ \
17570 lt_prog_compiler_wl_GCJ \
17571 lt_prog_compiler_pic_GCJ \
17572 lt_prog_compiler_static_GCJ \
17573 lt_prog_compiler_no_builtin_flag_GCJ \
17574 export_dynamic_flag_spec_GCJ \
17575 thread_safe_flag_spec_GCJ \
17576 whole_archive_flag_spec_GCJ \
17577 enable_shared_with_static_runtimes_GCJ \
17578 old_archive_cmds_GCJ \
17579 old_archive_from_new_cmds_GCJ \
17580 predep_objects_GCJ \
17581 postdep_objects_GCJ \
17582 predeps_GCJ \
17583 postdeps_GCJ \
17584 compiler_lib_search_path_GCJ \
17585 archive_cmds_GCJ \
17586 archive_expsym_cmds_GCJ \
17587 postinstall_cmds_GCJ \
17588 postuninstall_cmds_GCJ \
17589 old_archive_from_expsyms_cmds_GCJ \
17590 allow_undefined_flag_GCJ \
17591 no_undefined_flag_GCJ \
17592 export_symbols_cmds_GCJ \
17593 hardcode_libdir_flag_spec_GCJ \
17594 hardcode_libdir_flag_spec_ld_GCJ \
17595 hardcode_libdir_separator_GCJ \
17596 hardcode_automatic_GCJ \
17597 module_cmds_GCJ \
17598 module_expsym_cmds_GCJ \
17599 lt_cv_prog_compiler_c_o_GCJ \
17600 exclude_expsyms_GCJ \
17601 include_expsyms_GCJ; do
17603 case $var in
17604 old_archive_cmds_GCJ | \
17605 old_archive_from_new_cmds_GCJ | \
17606 archive_cmds_GCJ | \
17607 archive_expsym_cmds_GCJ | \
17608 module_cmds_GCJ | \
17609 module_expsym_cmds_GCJ | \
17610 old_archive_from_expsyms_cmds_GCJ | \
17611 export_symbols_cmds_GCJ | \
17612 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17613 postinstall_cmds | postuninstall_cmds | \
17614 old_postinstall_cmds | old_postuninstall_cmds | \
17615 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17616 # Double-quote double-evaled strings.
17617 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17620 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17622 esac
17623 done
17625 case $lt_echo in
17626 *'\$0 --fallback-echo"')
17627 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17629 esac
17631 cfgfile="$ofile"
17633 cat <<__EOF__ >> "$cfgfile"
17634 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17636 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17638 # Shell to use when invoking shell scripts.
17639 SHELL=$lt_SHELL
17641 # Whether or not to build shared libraries.
17642 build_libtool_libs=$enable_shared
17644 # Whether or not to build static libraries.
17645 build_old_libs=$enable_static
17647 # Whether or not to add -lc for building shared libraries.
17648 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17650 # Whether or not to disallow shared libs when runtime libs are static
17651 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17653 # Whether or not to optimize for fast installation.
17654 fast_install=$enable_fast_install
17656 # The host system.
17657 host_alias=$host_alias
17658 host=$host
17659 host_os=$host_os
17661 # The build system.
17662 build_alias=$build_alias
17663 build=$build
17664 build_os=$build_os
17666 # An echo program that does not interpret backslashes.
17667 echo=$lt_echo
17669 # The archiver.
17670 AR=$lt_AR
17671 AR_FLAGS=$lt_AR_FLAGS
17673 # A C compiler.
17674 LTCC=$lt_LTCC
17676 # LTCC compiler flags.
17677 LTCFLAGS=$lt_LTCFLAGS
17679 # A language-specific compiler.
17680 CC=$lt_compiler_GCJ
17682 # Is the compiler the GNU C compiler?
17683 with_gcc=$GCC_GCJ
17685 # An ERE matcher.
17686 EGREP=$lt_EGREP
17688 # The linker used to build libraries.
17689 LD=$lt_LD_GCJ
17691 # Whether we need hard or soft links.
17692 LN_S=$lt_LN_S
17694 # A BSD-compatible nm program.
17695 NM=$lt_NM
17697 # A symbol stripping program
17698 STRIP=$lt_STRIP
17700 # Used to examine libraries when file_magic_cmd begins "file"
17701 MAGIC_CMD=$MAGIC_CMD
17703 # Used on cygwin: DLL creation program.
17704 DLLTOOL="$DLLTOOL"
17706 # Used on cygwin: object dumper.
17707 OBJDUMP="$OBJDUMP"
17709 # Used on cygwin: assembler.
17710 AS="$AS"
17712 # The name of the directory that contains temporary libtool files.
17713 objdir=$objdir
17715 # How to create reloadable object files.
17716 reload_flag=$lt_reload_flag
17717 reload_cmds=$lt_reload_cmds
17719 # How to pass a linker flag through the compiler.
17720 wl=$lt_lt_prog_compiler_wl_GCJ
17722 # Object file suffix (normally "o").
17723 objext="$ac_objext"
17725 # Old archive suffix (normally "a").
17726 libext="$libext"
17728 # Shared library suffix (normally ".so").
17729 shrext_cmds='$shrext_cmds'
17731 # Executable file suffix (normally "").
17732 exeext="$exeext"
17734 # Additional compiler flags for building library objects.
17735 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17736 pic_mode=$pic_mode
17738 # What is the maximum length of a command?
17739 max_cmd_len=$lt_cv_sys_max_cmd_len
17741 # Does compiler simultaneously support -c and -o options?
17742 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17744 # Must we lock files when doing compilation?
17745 need_locks=$lt_need_locks
17747 # Do we need the lib prefix for modules?
17748 need_lib_prefix=$need_lib_prefix
17750 # Do we need a version for libraries?
17751 need_version=$need_version
17753 # Whether dlopen is supported.
17754 dlopen_support=$enable_dlopen
17756 # Whether dlopen of programs is supported.
17757 dlopen_self=$enable_dlopen_self
17759 # Whether dlopen of statically linked programs is supported.
17760 dlopen_self_static=$enable_dlopen_self_static
17762 # Compiler flag to prevent dynamic linking.
17763 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17765 # Compiler flag to turn off builtin functions.
17766 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17768 # Compiler flag to allow reflexive dlopens.
17769 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17771 # Compiler flag to generate shared objects directly from archives.
17772 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17774 # Compiler flag to generate thread-safe objects.
17775 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17777 # Library versioning type.
17778 version_type=$version_type
17780 # Format of library name prefix.
17781 libname_spec=$lt_libname_spec
17783 # List of archive names. First name is the real one, the rest are links.
17784 # The last name is the one that the linker finds with -lNAME.
17785 library_names_spec=$lt_library_names_spec
17787 # The coded name of the library, if different from the real name.
17788 soname_spec=$lt_soname_spec
17790 # Commands used to build and install an old-style archive.
17791 RANLIB=$lt_RANLIB
17792 old_archive_cmds=$lt_old_archive_cmds_GCJ
17793 old_postinstall_cmds=$lt_old_postinstall_cmds
17794 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17796 # Create an old-style archive from a shared archive.
17797 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17799 # Create a temporary old-style archive to link instead of a shared archive.
17800 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17802 # Commands used to build and install a shared archive.
17803 archive_cmds=$lt_archive_cmds_GCJ
17804 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17805 postinstall_cmds=$lt_postinstall_cmds
17806 postuninstall_cmds=$lt_postuninstall_cmds
17808 # Commands used to build a loadable module (assumed same as above if empty)
17809 module_cmds=$lt_module_cmds_GCJ
17810 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17812 # Commands to strip libraries.
17813 old_striplib=$lt_old_striplib
17814 striplib=$lt_striplib
17816 # Dependencies to place before the objects being linked to create a
17817 # shared library.
17818 predep_objects=$lt_predep_objects_GCJ
17820 # Dependencies to place after the objects being linked to create a
17821 # shared library.
17822 postdep_objects=$lt_postdep_objects_GCJ
17824 # Dependencies to place before the objects being linked to create a
17825 # shared library.
17826 predeps=$lt_predeps_GCJ
17828 # Dependencies to place after the objects being linked to create a
17829 # shared library.
17830 postdeps=$lt_postdeps_GCJ
17832 # The library search path used internally by the compiler when linking
17833 # a shared library.
17834 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17836 # Method to check whether dependent libraries are shared objects.
17837 deplibs_check_method=$lt_deplibs_check_method
17839 # Command to use when deplibs_check_method == file_magic.
17840 file_magic_cmd=$lt_file_magic_cmd
17842 # Flag that allows shared libraries with undefined symbols to be built.
17843 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17845 # Flag that forces no undefined symbols.
17846 no_undefined_flag=$lt_no_undefined_flag_GCJ
17848 # Commands used to finish a libtool library installation in a directory.
17849 finish_cmds=$lt_finish_cmds
17851 # Same as above, but a single script fragment to be evaled but not shown.
17852 finish_eval=$lt_finish_eval
17854 # Take the output of nm and produce a listing of raw symbols and C names.
17855 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17857 # Transform the output of nm in a proper C declaration
17858 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17860 # Transform the output of nm in a C name address pair
17861 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17863 # This is the shared library runtime path variable.
17864 runpath_var=$runpath_var
17866 # This is the shared library path variable.
17867 shlibpath_var=$shlibpath_var
17869 # Is shlibpath searched before the hard-coded library search path?
17870 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17872 # How to hardcode a shared library path into an executable.
17873 hardcode_action=$hardcode_action_GCJ
17875 # Whether we should hardcode library paths into libraries.
17876 hardcode_into_libs=$hardcode_into_libs
17878 # Flag to hardcode \$libdir into a binary during linking.
17879 # This must work even if \$libdir does not exist.
17880 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17882 # If ld is used when linking, flag to hardcode \$libdir into
17883 # a binary during linking. This must work even if \$libdir does
17884 # not exist.
17885 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17887 # Whether we need a single -rpath flag with a separated argument.
17888 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17890 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17891 # resulting binary.
17892 hardcode_direct=$hardcode_direct_GCJ
17894 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17895 # resulting binary.
17896 hardcode_minus_L=$hardcode_minus_L_GCJ
17898 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17899 # the resulting binary.
17900 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17902 # Set to yes if building a shared library automatically hardcodes DIR into the library
17903 # and all subsequent libraries and executables linked against it.
17904 hardcode_automatic=$hardcode_automatic_GCJ
17906 # Variables whose values should be saved in libtool wrapper scripts and
17907 # restored at relink time.
17908 variables_saved_for_relink="$variables_saved_for_relink"
17910 # Whether libtool must link a program against all its dependency libraries.
17911 link_all_deplibs=$link_all_deplibs_GCJ
17913 # Compile-time system search path for libraries
17914 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17916 # Run-time system search path for libraries
17917 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17919 # Fix the shell variable \$srcfile for the compiler.
17920 fix_srcfile_path="$fix_srcfile_path_GCJ"
17922 # Set to yes if exported symbols are required.
17923 always_export_symbols=$always_export_symbols_GCJ
17925 # The commands to list exported symbols.
17926 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17928 # The commands to extract the exported symbol list from a shared archive.
17929 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17931 # Symbols that should not be listed in the preloaded symbols.
17932 exclude_expsyms=$lt_exclude_expsyms_GCJ
17934 # Symbols that must always be exported.
17935 include_expsyms=$lt_include_expsyms_GCJ
17937 # ### END LIBTOOL TAG CONFIG: $tagname
17939 __EOF__
17942 else
17943 # If there is no Makefile yet, we rely on a make rule to execute
17944 # `config.status --recheck' to rerun these tests and create the
17945 # libtool script then.
17946 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17947 if test -f "$ltmain_in"; then
17948 test -f Makefile && make "$ltmain"
17953 ac_ext=c
17954 ac_cpp='$CPP $CPPFLAGS'
17955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17959 CC="$lt_save_CC"
17961 else
17962 tagname=""
17970 # Source file extension for RC test sources.
17971 ac_ext=rc
17973 # Object file extension for compiled RC test sources.
17974 objext=o
17975 objext_RC=$objext
17977 # Code to be used in simple compile tests
17978 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17980 # Code to be used in simple link tests
17981 lt_simple_link_test_code="$lt_simple_compile_test_code"
17983 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17985 # If no C compiler was specified, use CC.
17986 LTCC=${LTCC-"$CC"}
17988 # If no C compiler flags were specified, use CFLAGS.
17989 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17991 # Allow CC to be a program name with arguments.
17992 compiler=$CC
17995 # save warnings/boilerplate of simple test code
17996 ac_outfile=conftest.$ac_objext
17997 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17998 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17999 _lt_compiler_boilerplate=`cat conftest.err`
18000 $rm conftest*
18002 ac_outfile=conftest.$ac_objext
18003 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18004 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18005 _lt_linker_boilerplate=`cat conftest.err`
18006 $rm conftest*
18009 # Allow CC to be a program name with arguments.
18010 lt_save_CC="$CC"
18011 CC=${RC-"windres"}
18012 compiler=$CC
18013 compiler_RC=$CC
18014 for cc_temp in $compiler""; do
18015 case $cc_temp in
18016 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18017 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18018 \-*) ;;
18019 *) break;;
18020 esac
18021 done
18022 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18024 lt_cv_prog_compiler_c_o_RC=yes
18026 # The else clause should only fire when bootstrapping the
18027 # libtool distribution, otherwise you forgot to ship ltmain.sh
18028 # with your package, and you will get complaints that there are
18029 # no rules to generate ltmain.sh.
18030 if test -f "$ltmain"; then
18031 # See if we are running on zsh, and set the options which allow our commands through
18032 # without removal of \ escapes.
18033 if test -n "${ZSH_VERSION+set}" ; then
18034 setopt NO_GLOB_SUBST
18036 # Now quote all the things that may contain metacharacters while being
18037 # careful not to overquote the AC_SUBSTed values. We take copies of the
18038 # variables and quote the copies for generation of the libtool script.
18039 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18040 SED SHELL STRIP \
18041 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18042 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18043 deplibs_check_method reload_flag reload_cmds need_locks \
18044 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18045 lt_cv_sys_global_symbol_to_c_name_address \
18046 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18047 old_postinstall_cmds old_postuninstall_cmds \
18048 compiler_RC \
18049 CC_RC \
18050 LD_RC \
18051 lt_prog_compiler_wl_RC \
18052 lt_prog_compiler_pic_RC \
18053 lt_prog_compiler_static_RC \
18054 lt_prog_compiler_no_builtin_flag_RC \
18055 export_dynamic_flag_spec_RC \
18056 thread_safe_flag_spec_RC \
18057 whole_archive_flag_spec_RC \
18058 enable_shared_with_static_runtimes_RC \
18059 old_archive_cmds_RC \
18060 old_archive_from_new_cmds_RC \
18061 predep_objects_RC \
18062 postdep_objects_RC \
18063 predeps_RC \
18064 postdeps_RC \
18065 compiler_lib_search_path_RC \
18066 archive_cmds_RC \
18067 archive_expsym_cmds_RC \
18068 postinstall_cmds_RC \
18069 postuninstall_cmds_RC \
18070 old_archive_from_expsyms_cmds_RC \
18071 allow_undefined_flag_RC \
18072 no_undefined_flag_RC \
18073 export_symbols_cmds_RC \
18074 hardcode_libdir_flag_spec_RC \
18075 hardcode_libdir_flag_spec_ld_RC \
18076 hardcode_libdir_separator_RC \
18077 hardcode_automatic_RC \
18078 module_cmds_RC \
18079 module_expsym_cmds_RC \
18080 lt_cv_prog_compiler_c_o_RC \
18081 exclude_expsyms_RC \
18082 include_expsyms_RC; do
18084 case $var in
18085 old_archive_cmds_RC | \
18086 old_archive_from_new_cmds_RC | \
18087 archive_cmds_RC | \
18088 archive_expsym_cmds_RC | \
18089 module_cmds_RC | \
18090 module_expsym_cmds_RC | \
18091 old_archive_from_expsyms_cmds_RC | \
18092 export_symbols_cmds_RC | \
18093 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18094 postinstall_cmds | postuninstall_cmds | \
18095 old_postinstall_cmds | old_postuninstall_cmds | \
18096 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18097 # Double-quote double-evaled strings.
18098 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18101 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18103 esac
18104 done
18106 case $lt_echo in
18107 *'\$0 --fallback-echo"')
18108 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18110 esac
18112 cfgfile="$ofile"
18114 cat <<__EOF__ >> "$cfgfile"
18115 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18117 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18119 # Shell to use when invoking shell scripts.
18120 SHELL=$lt_SHELL
18122 # Whether or not to build shared libraries.
18123 build_libtool_libs=$enable_shared
18125 # Whether or not to build static libraries.
18126 build_old_libs=$enable_static
18128 # Whether or not to add -lc for building shared libraries.
18129 build_libtool_need_lc=$archive_cmds_need_lc_RC
18131 # Whether or not to disallow shared libs when runtime libs are static
18132 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18134 # Whether or not to optimize for fast installation.
18135 fast_install=$enable_fast_install
18137 # The host system.
18138 host_alias=$host_alias
18139 host=$host
18140 host_os=$host_os
18142 # The build system.
18143 build_alias=$build_alias
18144 build=$build
18145 build_os=$build_os
18147 # An echo program that does not interpret backslashes.
18148 echo=$lt_echo
18150 # The archiver.
18151 AR=$lt_AR
18152 AR_FLAGS=$lt_AR_FLAGS
18154 # A C compiler.
18155 LTCC=$lt_LTCC
18157 # LTCC compiler flags.
18158 LTCFLAGS=$lt_LTCFLAGS
18160 # A language-specific compiler.
18161 CC=$lt_compiler_RC
18163 # Is the compiler the GNU C compiler?
18164 with_gcc=$GCC_RC
18166 # An ERE matcher.
18167 EGREP=$lt_EGREP
18169 # The linker used to build libraries.
18170 LD=$lt_LD_RC
18172 # Whether we need hard or soft links.
18173 LN_S=$lt_LN_S
18175 # A BSD-compatible nm program.
18176 NM=$lt_NM
18178 # A symbol stripping program
18179 STRIP=$lt_STRIP
18181 # Used to examine libraries when file_magic_cmd begins "file"
18182 MAGIC_CMD=$MAGIC_CMD
18184 # Used on cygwin: DLL creation program.
18185 DLLTOOL="$DLLTOOL"
18187 # Used on cygwin: object dumper.
18188 OBJDUMP="$OBJDUMP"
18190 # Used on cygwin: assembler.
18191 AS="$AS"
18193 # The name of the directory that contains temporary libtool files.
18194 objdir=$objdir
18196 # How to create reloadable object files.
18197 reload_flag=$lt_reload_flag
18198 reload_cmds=$lt_reload_cmds
18200 # How to pass a linker flag through the compiler.
18201 wl=$lt_lt_prog_compiler_wl_RC
18203 # Object file suffix (normally "o").
18204 objext="$ac_objext"
18206 # Old archive suffix (normally "a").
18207 libext="$libext"
18209 # Shared library suffix (normally ".so").
18210 shrext_cmds='$shrext_cmds'
18212 # Executable file suffix (normally "").
18213 exeext="$exeext"
18215 # Additional compiler flags for building library objects.
18216 pic_flag=$lt_lt_prog_compiler_pic_RC
18217 pic_mode=$pic_mode
18219 # What is the maximum length of a command?
18220 max_cmd_len=$lt_cv_sys_max_cmd_len
18222 # Does compiler simultaneously support -c and -o options?
18223 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18225 # Must we lock files when doing compilation?
18226 need_locks=$lt_need_locks
18228 # Do we need the lib prefix for modules?
18229 need_lib_prefix=$need_lib_prefix
18231 # Do we need a version for libraries?
18232 need_version=$need_version
18234 # Whether dlopen is supported.
18235 dlopen_support=$enable_dlopen
18237 # Whether dlopen of programs is supported.
18238 dlopen_self=$enable_dlopen_self
18240 # Whether dlopen of statically linked programs is supported.
18241 dlopen_self_static=$enable_dlopen_self_static
18243 # Compiler flag to prevent dynamic linking.
18244 link_static_flag=$lt_lt_prog_compiler_static_RC
18246 # Compiler flag to turn off builtin functions.
18247 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18249 # Compiler flag to allow reflexive dlopens.
18250 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18252 # Compiler flag to generate shared objects directly from archives.
18253 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18255 # Compiler flag to generate thread-safe objects.
18256 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18258 # Library versioning type.
18259 version_type=$version_type
18261 # Format of library name prefix.
18262 libname_spec=$lt_libname_spec
18264 # List of archive names. First name is the real one, the rest are links.
18265 # The last name is the one that the linker finds with -lNAME.
18266 library_names_spec=$lt_library_names_spec
18268 # The coded name of the library, if different from the real name.
18269 soname_spec=$lt_soname_spec
18271 # Commands used to build and install an old-style archive.
18272 RANLIB=$lt_RANLIB
18273 old_archive_cmds=$lt_old_archive_cmds_RC
18274 old_postinstall_cmds=$lt_old_postinstall_cmds
18275 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18277 # Create an old-style archive from a shared archive.
18278 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18280 # Create a temporary old-style archive to link instead of a shared archive.
18281 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18283 # Commands used to build and install a shared archive.
18284 archive_cmds=$lt_archive_cmds_RC
18285 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18286 postinstall_cmds=$lt_postinstall_cmds
18287 postuninstall_cmds=$lt_postuninstall_cmds
18289 # Commands used to build a loadable module (assumed same as above if empty)
18290 module_cmds=$lt_module_cmds_RC
18291 module_expsym_cmds=$lt_module_expsym_cmds_RC
18293 # Commands to strip libraries.
18294 old_striplib=$lt_old_striplib
18295 striplib=$lt_striplib
18297 # Dependencies to place before the objects being linked to create a
18298 # shared library.
18299 predep_objects=$lt_predep_objects_RC
18301 # Dependencies to place after the objects being linked to create a
18302 # shared library.
18303 postdep_objects=$lt_postdep_objects_RC
18305 # Dependencies to place before the objects being linked to create a
18306 # shared library.
18307 predeps=$lt_predeps_RC
18309 # Dependencies to place after the objects being linked to create a
18310 # shared library.
18311 postdeps=$lt_postdeps_RC
18313 # The library search path used internally by the compiler when linking
18314 # a shared library.
18315 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18317 # Method to check whether dependent libraries are shared objects.
18318 deplibs_check_method=$lt_deplibs_check_method
18320 # Command to use when deplibs_check_method == file_magic.
18321 file_magic_cmd=$lt_file_magic_cmd
18323 # Flag that allows shared libraries with undefined symbols to be built.
18324 allow_undefined_flag=$lt_allow_undefined_flag_RC
18326 # Flag that forces no undefined symbols.
18327 no_undefined_flag=$lt_no_undefined_flag_RC
18329 # Commands used to finish a libtool library installation in a directory.
18330 finish_cmds=$lt_finish_cmds
18332 # Same as above, but a single script fragment to be evaled but not shown.
18333 finish_eval=$lt_finish_eval
18335 # Take the output of nm and produce a listing of raw symbols and C names.
18336 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18338 # Transform the output of nm in a proper C declaration
18339 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18341 # Transform the output of nm in a C name address pair
18342 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18344 # This is the shared library runtime path variable.
18345 runpath_var=$runpath_var
18347 # This is the shared library path variable.
18348 shlibpath_var=$shlibpath_var
18350 # Is shlibpath searched before the hard-coded library search path?
18351 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18353 # How to hardcode a shared library path into an executable.
18354 hardcode_action=$hardcode_action_RC
18356 # Whether we should hardcode library paths into libraries.
18357 hardcode_into_libs=$hardcode_into_libs
18359 # Flag to hardcode \$libdir into a binary during linking.
18360 # This must work even if \$libdir does not exist.
18361 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18363 # If ld is used when linking, flag to hardcode \$libdir into
18364 # a binary during linking. This must work even if \$libdir does
18365 # not exist.
18366 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18368 # Whether we need a single -rpath flag with a separated argument.
18369 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18371 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18372 # resulting binary.
18373 hardcode_direct=$hardcode_direct_RC
18375 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18376 # resulting binary.
18377 hardcode_minus_L=$hardcode_minus_L_RC
18379 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18380 # the resulting binary.
18381 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18383 # Set to yes if building a shared library automatically hardcodes DIR into the library
18384 # and all subsequent libraries and executables linked against it.
18385 hardcode_automatic=$hardcode_automatic_RC
18387 # Variables whose values should be saved in libtool wrapper scripts and
18388 # restored at relink time.
18389 variables_saved_for_relink="$variables_saved_for_relink"
18391 # Whether libtool must link a program against all its dependency libraries.
18392 link_all_deplibs=$link_all_deplibs_RC
18394 # Compile-time system search path for libraries
18395 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18397 # Run-time system search path for libraries
18398 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18400 # Fix the shell variable \$srcfile for the compiler.
18401 fix_srcfile_path="$fix_srcfile_path_RC"
18403 # Set to yes if exported symbols are required.
18404 always_export_symbols=$always_export_symbols_RC
18406 # The commands to list exported symbols.
18407 export_symbols_cmds=$lt_export_symbols_cmds_RC
18409 # The commands to extract the exported symbol list from a shared archive.
18410 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18412 # Symbols that should not be listed in the preloaded symbols.
18413 exclude_expsyms=$lt_exclude_expsyms_RC
18415 # Symbols that must always be exported.
18416 include_expsyms=$lt_include_expsyms_RC
18418 # ### END LIBTOOL TAG CONFIG: $tagname
18420 __EOF__
18423 else
18424 # If there is no Makefile yet, we rely on a make rule to execute
18425 # `config.status --recheck' to rerun these tests and create the
18426 # libtool script then.
18427 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18428 if test -f "$ltmain_in"; then
18429 test -f Makefile && make "$ltmain"
18434 ac_ext=c
18435 ac_cpp='$CPP $CPPFLAGS'
18436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18440 CC="$lt_save_CC"
18445 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18446 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18447 { (exit 1); exit 1; }; }
18449 esac
18451 # Append the new tag name to the list of available tags.
18452 if test -n "$tagname" ; then
18453 available_tags="$available_tags $tagname"
18456 done
18457 IFS="$lt_save_ifs"
18459 # Now substitute the updated list of available tags.
18460 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18461 mv "${ofile}T" "$ofile"
18462 chmod +x "$ofile"
18463 else
18464 rm -f "${ofile}T"
18465 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18466 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18467 { (exit 1); exit 1; }; }
18473 # This can be used to rebuild libtool when needed
18474 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18476 # Always use our own libtool.
18477 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18479 # Prevent multiple expansion
18500 # Find a good install program. We prefer a C program (faster),
18501 # so one script is as good as another. But avoid the broken or
18502 # incompatible versions:
18503 # SysV /etc/install, /usr/sbin/install
18504 # SunOS /usr/etc/install
18505 # IRIX /sbin/install
18506 # AIX /bin/install
18507 # AmigaOS /C/install, which installs bootblocks on floppy discs
18508 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
18509 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
18510 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
18511 # OS/2's system install, which has a completely different semantic
18512 # ./install, which can be erroneously created by make from ./install.sh.
18513 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
18514 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
18515 if test -z "$INSTALL"; then
18516 if test "${ac_cv_path_install+set}" = set; then
18517 echo $ECHO_N "(cached) $ECHO_C" >&6
18518 else
18519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18520 for as_dir in $PATH
18522 IFS=$as_save_IFS
18523 test -z "$as_dir" && as_dir=.
18524 # Account for people who put trailing slashes in PATH elements.
18525 case $as_dir/ in
18526 ./ | .// | /cC/* | \
18527 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
18528 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
18529 /usr/ucb/* ) ;;
18531 # OSF1 and SCO ODT 3.0 have their own names for install.
18532 # Don't use installbsd from OSF since it installs stuff as root
18533 # by default.
18534 for ac_prog in ginstall scoinst install; do
18535 for ac_exec_ext in '' $ac_executable_extensions; do
18536 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
18537 if test $ac_prog = install &&
18538 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18539 # AIX install. It has an incompatible calling convention.
18541 elif test $ac_prog = install &&
18542 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18543 # program-specific install script used by HP pwplus--don't use.
18545 else
18546 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
18547 break 3
18550 done
18551 done
18553 esac
18554 done
18558 if test "${ac_cv_path_install+set}" = set; then
18559 INSTALL=$ac_cv_path_install
18560 else
18561 # As a last resort, use the slow shell script. We don't cache a
18562 # path for INSTALL within a source directory, because that will
18563 # break other packages using the cache if that directory is
18564 # removed, or if the path is relative.
18565 INSTALL=$ac_install_sh
18568 echo "$as_me:$LINENO: result: $INSTALL" >&5
18569 echo "${ECHO_T}$INSTALL" >&6
18571 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
18572 # It thinks the first close brace ends the variable substitution.
18573 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
18575 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
18577 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
18579 ac_ext=cc
18580 ac_cpp='$CXXCPP $CPPFLAGS'
18581 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18582 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18583 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18590 if test "$cross_compiling" = "yes"; then
18591 MYPATH=":"
18592 else
18593 # MYPATH="/bin:/usr/bin:/usr/local/bin:$PATH:/sbin:/usr/sbin:/usr/local/sbin:/opt/gnu/bin"
18594 MYPATH=$PATH
18597 # Extract the first word of "python", so it can be a program name with args.
18598 set dummy python; ac_word=$2
18599 echo "$as_me:$LINENO: checking for $ac_word" >&5
18600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18601 if test "${ac_cv_path___PYTHON+set}" = set; then
18602 echo $ECHO_N "(cached) $ECHO_C" >&6
18603 else
18604 case $__PYTHON in
18605 [\\/]* | ?:[\\/]*)
18606 ac_cv_path___PYTHON="$__PYTHON" # Let the user override the test with a path.
18609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18610 for as_dir in $MYPATH
18612 IFS=$as_save_IFS
18613 test -z "$as_dir" && as_dir=.
18614 for ac_exec_ext in '' $ac_executable_extensions; do
18615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18616 ac_cv_path___PYTHON="$as_dir/$ac_word$ac_exec_ext"
18617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18618 break 2
18620 done
18621 done
18623 test -z "$ac_cv_path___PYTHON" && ac_cv_path___PYTHON="/usr/bin/python"
18625 esac
18627 __PYTHON=$ac_cv_path___PYTHON
18629 if test -n "$__PYTHON"; then
18630 echo "$as_me:$LINENO: result: $__PYTHON" >&5
18631 echo "${ECHO_T}$__PYTHON" >&6
18632 else
18633 echo "$as_me:$LINENO: result: no" >&5
18634 echo "${ECHO_T}no" >&6
18638 LIBZTHREAD_MAJOR_VERSION=2
18639 LIBZTHREAD_MINOR_VERSION=3
18640 LIBZTHREAD_MICRO_VERSION=2
18641 LT_RELEASE=$LIBZTHREAD_MAJOR_VERSION.$LIBZTHREAD_MINOR_VERSION.$LIBZTHREAD_MICRO_VERSION
18642 LT_CURRENT=$LIBZTHREAD_MAJOR_VERSION
18643 LT_REVISION=$LIBZTHREAD_MINOR_VERSION
18644 LT_AGE=$LIBZTHREAD_MICRO_VERSION
18646 LIBMANGOSSCRIPT_MAJOR_VERSION=0
18647 LIBMANGOSSCRIPT_MINOR_VERSION=2
18648 LIBMANGOSSCRIPT_MICRO_VERSION=0
18649 LTMS_RELEASE=$LIBMANGOSSCRIPT_MAJOR_VERSION.$LIBMANGOSSCRIPT_MINOR_VERSION.$LIBMANGOSSCRIPT_MICRO_VERSION
18650 LTMS_CURRENT=$LIBMANGOSSCRIPT_MAJOR_VERSION
18651 LTMS_REVISION=$LIBMANGOSSCRIPT_MINOR_VERSION
18652 LTMS_AGE=$LIBMANGOSSCRIPT_MICRO_VERSION
18654 COMPILER_OPTIONS=""
18655 LINKER_OPTIONS=""
18657 INCLUDES="-I/usr/include/mysql -I/usr/local/include/mysql -I/usr/include/openssl -I/usr/local/include/openssl"
18659 LDFLAGS="-L/usr/lib/mysql -L/usr/local/lib/mysql"
18662 # check for openssl path given
18663 echo "$as_me:$LINENO: checking whether openssl path was given" >&5
18664 echo $ECHO_N "checking whether openssl path was given... $ECHO_C" >&6
18665 MANGOSD_WITH_OPENSSL=
18666 # Check whether --enable-with-openssl or --disable-with-openssl was given.
18667 if test "${enable_with_openssl+set}" = set; then
18668 enableval="$enable_with_openssl"
18670 if test "$enableval" != "" ; then
18671 INCLUDES="-I$enableval/include/openssl -I/usr/include/mysql -I/usr/local/include/mysql"
18673 elif test "$enableval" = "" ; then
18674 { { echo "$as_me:$LINENO: error: Please choose openssl path" >&5
18675 echo "$as_me: error: Please choose openssl path" >&2;}
18676 { (exit 1); exit 1; }; }
18681 echo "$as_me:$LINENO: result: $MANGOSD_WITH_OPENSSL" >&5
18682 echo "${ECHO_T}$MANGOSD_WITH_OPENSSL" >&6
18685 # check for mysql path given
18686 echo "$as_me:$LINENO: checking whether mysql path was given" >&5
18687 echo $ECHO_N "checking whether mysql path was given... $ECHO_C" >&6
18688 MANGOSD_WITH_MYSQL=
18689 # Check whether --enable-with-mysql or --disable-with-mysql was given.
18690 if test "${enable_with_mysql+set}" = set; then
18691 enableval="$enable_with_mysql"
18693 if test "$enableval" != "" ; then
18694 INCLUDES="-I$enableval/include/mysql -I/usr/include/openssl -I/usr/local/include/openssl"
18696 LDFLAGS="-L$enableval/lib/mysql"
18698 elif test "$enableval" = "" ; then
18699 { { echo "$as_me:$LINENO: error: Please choose mysql path" >&5
18700 echo "$as_me: error: Please choose mysql path" >&2;}
18701 { (exit 1); exit 1; }; }
18706 echo "$as_me:$LINENO: result: $MANGOSD_WITH_MYSQL" >&5
18707 echo "${ECHO_T}$MANGOSD_WITH_MYSQL" >&6
18713 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
18714 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
18715 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
18716 echo $ECHO_N "(cached) $ECHO_C" >&6
18717 else
18718 ac_check_lib_save_LIBS=$LIBS
18719 LIBS="-lpthread $LIBS"
18720 cat >conftest.$ac_ext <<_ACEOF
18721 /* confdefs.h. */
18722 _ACEOF
18723 cat confdefs.h >>conftest.$ac_ext
18724 cat >>conftest.$ac_ext <<_ACEOF
18725 /* end confdefs.h. */
18727 /* Override any gcc2 internal prototype to avoid an error. */
18728 #ifdef __cplusplus
18729 extern "C"
18730 #endif
18731 /* We use char because int might match the return type of a gcc2
18732 builtin and then its argument prototype would still apply. */
18733 char pthread_create ();
18735 main ()
18737 pthread_create ();
18739 return 0;
18741 _ACEOF
18742 rm -f conftest.$ac_objext conftest$ac_exeext
18743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18744 (eval $ac_link) 2>conftest.er1
18745 ac_status=$?
18746 grep -v '^ *+' conftest.er1 >conftest.err
18747 rm -f conftest.er1
18748 cat conftest.err >&5
18749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18750 (exit $ac_status); } &&
18751 { ac_try='test -z "$ac_cxx_werror_flag"
18752 || test ! -s conftest.err'
18753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18754 (eval $ac_try) 2>&5
18755 ac_status=$?
18756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757 (exit $ac_status); }; } &&
18758 { ac_try='test -s conftest$ac_exeext'
18759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18760 (eval $ac_try) 2>&5
18761 ac_status=$?
18762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763 (exit $ac_status); }; }; then
18764 ac_cv_lib_pthread_pthread_create=yes
18765 else
18766 echo "$as_me: failed program was:" >&5
18767 sed 's/^/| /' conftest.$ac_ext >&5
18769 ac_cv_lib_pthread_pthread_create=no
18771 rm -f conftest.err conftest.$ac_objext \
18772 conftest$ac_exeext conftest.$ac_ext
18773 LIBS=$ac_check_lib_save_LIBS
18775 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
18776 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
18777 if test $ac_cv_lib_pthread_pthread_create = yes; then
18778 cat >>confdefs.h <<_ACEOF
18779 #define HAVE_LIBPTHREAD 1
18780 _ACEOF
18782 LIBS="-lpthread $LIBS"
18784 else
18785 LDFLAGS="-pthread $LDFLAGS"
18786 cat >conftest.$ac_ext <<_ACEOF
18787 /* confdefs.h. */
18788 _ACEOF
18789 cat confdefs.h >>conftest.$ac_ext
18790 cat >>conftest.$ac_ext <<_ACEOF
18791 /* end confdefs.h. */
18792 char pthread_create();
18794 main ()
18796 pthread_create();
18798 return 0;
18800 _ACEOF
18801 rm -f conftest.$ac_objext conftest$ac_exeext
18802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18803 (eval $ac_link) 2>conftest.er1
18804 ac_status=$?
18805 grep -v '^ *+' conftest.er1 >conftest.err
18806 rm -f conftest.er1
18807 cat conftest.err >&5
18808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809 (exit $ac_status); } &&
18810 { ac_try='test -z "$ac_cxx_werror_flag"
18811 || test ! -s conftest.err'
18812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18813 (eval $ac_try) 2>&5
18814 ac_status=$?
18815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816 (exit $ac_status); }; } &&
18817 { ac_try='test -s conftest$ac_exeext'
18818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18819 (eval $ac_try) 2>&5
18820 ac_status=$?
18821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18822 (exit $ac_status); }; }; then
18824 else
18825 echo "$as_me: failed program was:" >&5
18826 sed 's/^/| /' conftest.$ac_ext >&5
18828 { { echo "$as_me:$LINENO: error: Missing pthread" >&5
18829 echo "$as_me: error: Missing pthread" >&2;}
18830 { (exit 1); exit 1; }; }
18832 rm -f conftest.err conftest.$ac_objext \
18833 conftest$ac_exeext conftest.$ac_ext
18838 echo "$as_me:$LINENO: checking for compress in -lz" >&5
18839 echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6
18840 if test "${ac_cv_lib_z_compress+set}" = set; then
18841 echo $ECHO_N "(cached) $ECHO_C" >&6
18842 else
18843 ac_check_lib_save_LIBS=$LIBS
18844 LIBS="-lz $LIBS"
18845 cat >conftest.$ac_ext <<_ACEOF
18846 /* confdefs.h. */
18847 _ACEOF
18848 cat confdefs.h >>conftest.$ac_ext
18849 cat >>conftest.$ac_ext <<_ACEOF
18850 /* end confdefs.h. */
18852 /* Override any gcc2 internal prototype to avoid an error. */
18853 #ifdef __cplusplus
18854 extern "C"
18855 #endif
18856 /* We use char because int might match the return type of a gcc2
18857 builtin and then its argument prototype would still apply. */
18858 char compress ();
18860 main ()
18862 compress ();
18864 return 0;
18866 _ACEOF
18867 rm -f conftest.$ac_objext conftest$ac_exeext
18868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18869 (eval $ac_link) 2>conftest.er1
18870 ac_status=$?
18871 grep -v '^ *+' conftest.er1 >conftest.err
18872 rm -f conftest.er1
18873 cat conftest.err >&5
18874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875 (exit $ac_status); } &&
18876 { ac_try='test -z "$ac_cxx_werror_flag"
18877 || test ! -s conftest.err'
18878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18879 (eval $ac_try) 2>&5
18880 ac_status=$?
18881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18882 (exit $ac_status); }; } &&
18883 { ac_try='test -s conftest$ac_exeext'
18884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18885 (eval $ac_try) 2>&5
18886 ac_status=$?
18887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18888 (exit $ac_status); }; }; then
18889 ac_cv_lib_z_compress=yes
18890 else
18891 echo "$as_me: failed program was:" >&5
18892 sed 's/^/| /' conftest.$ac_ext >&5
18894 ac_cv_lib_z_compress=no
18896 rm -f conftest.err conftest.$ac_objext \
18897 conftest$ac_exeext conftest.$ac_ext
18898 LIBS=$ac_check_lib_save_LIBS
18900 echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
18901 echo "${ECHO_T}$ac_cv_lib_z_compress" >&6
18902 if test $ac_cv_lib_z_compress = yes; then
18903 cat >>confdefs.h <<_ACEOF
18904 #define HAVE_LIBZ 1
18905 _ACEOF
18907 LIBS="-lz $LIBS"
18909 else
18910 { { echo "$as_me:$LINENO: error: Missing zlib" >&5
18911 echo "$as_me: error: Missing zlib" >&2;}
18912 { (exit 1); exit 1; }; }
18916 echo "$as_me:$LINENO: checking for ftime in -lcompat" >&5
18917 echo $ECHO_N "checking for ftime in -lcompat... $ECHO_C" >&6
18918 if test "${ac_cv_lib_compat_ftime_+set}" = set; then
18919 echo $ECHO_N "(cached) $ECHO_C" >&6
18920 else
18921 ac_check_lib_save_LIBS=$LIBS
18922 LIBS="-lcompat $LIBS"
18923 cat >conftest.$ac_ext <<_ACEOF
18924 /* confdefs.h. */
18925 _ACEOF
18926 cat confdefs.h >>conftest.$ac_ext
18927 cat >>conftest.$ac_ext <<_ACEOF
18928 /* end confdefs.h. */
18930 /* Override any gcc2 internal prototype to avoid an error. */
18931 #ifdef __cplusplus
18932 extern "C"
18933 #endif
18934 /* We use char because int might match the return type of a gcc2
18935 builtin and then its argument prototype would still apply. */
18936 char ftime ();
18938 main ()
18940 ftime ();
18942 return 0;
18944 _ACEOF
18945 rm -f conftest.$ac_objext conftest$ac_exeext
18946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18947 (eval $ac_link) 2>conftest.er1
18948 ac_status=$?
18949 grep -v '^ *+' conftest.er1 >conftest.err
18950 rm -f conftest.er1
18951 cat conftest.err >&5
18952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953 (exit $ac_status); } &&
18954 { ac_try='test -z "$ac_cxx_werror_flag"
18955 || test ! -s conftest.err'
18956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18957 (eval $ac_try) 2>&5
18958 ac_status=$?
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); }; } &&
18961 { ac_try='test -s conftest$ac_exeext'
18962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18963 (eval $ac_try) 2>&5
18964 ac_status=$?
18965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966 (exit $ac_status); }; }; then
18967 ac_cv_lib_compat_ftime_=yes
18968 else
18969 echo "$as_me: failed program was:" >&5
18970 sed 's/^/| /' conftest.$ac_ext >&5
18972 ac_cv_lib_compat_ftime_=no
18974 rm -f conftest.err conftest.$ac_objext \
18975 conftest$ac_exeext conftest.$ac_ext
18976 LIBS=$ac_check_lib_save_LIBS
18978 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_ftime_" >&5
18979 echo "${ECHO_T}$ac_cv_lib_compat_ftime_" >&6
18980 if test $ac_cv_lib_compat_ftime_ = yes; then
18981 cat >>confdefs.h <<_ACEOF
18982 #define HAVE_LIBCOMPAT 1
18983 _ACEOF
18985 LIBS="-lcompat $LIBS"
18990 echo "$as_me:$LINENO: checking for mysql_init in -lmysqlclient" >&5
18991 echo $ECHO_N "checking for mysql_init in -lmysqlclient... $ECHO_C" >&6
18992 if test "${ac_cv_lib_mysqlclient_mysql_init+set}" = set; then
18993 echo $ECHO_N "(cached) $ECHO_C" >&6
18994 else
18995 ac_check_lib_save_LIBS=$LIBS
18996 LIBS="-lmysqlclient $LIBS"
18997 cat >conftest.$ac_ext <<_ACEOF
18998 /* confdefs.h. */
18999 _ACEOF
19000 cat confdefs.h >>conftest.$ac_ext
19001 cat >>conftest.$ac_ext <<_ACEOF
19002 /* end confdefs.h. */
19004 /* Override any gcc2 internal prototype to avoid an error. */
19005 #ifdef __cplusplus
19006 extern "C"
19007 #endif
19008 /* We use char because int might match the return type of a gcc2
19009 builtin and then its argument prototype would still apply. */
19010 char mysql_init ();
19012 main ()
19014 mysql_init ();
19016 return 0;
19018 _ACEOF
19019 rm -f conftest.$ac_objext conftest$ac_exeext
19020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19021 (eval $ac_link) 2>conftest.er1
19022 ac_status=$?
19023 grep -v '^ *+' conftest.er1 >conftest.err
19024 rm -f conftest.er1
19025 cat conftest.err >&5
19026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027 (exit $ac_status); } &&
19028 { ac_try='test -z "$ac_cxx_werror_flag"
19029 || test ! -s conftest.err'
19030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19031 (eval $ac_try) 2>&5
19032 ac_status=$?
19033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034 (exit $ac_status); }; } &&
19035 { ac_try='test -s conftest$ac_exeext'
19036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19037 (eval $ac_try) 2>&5
19038 ac_status=$?
19039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040 (exit $ac_status); }; }; then
19041 ac_cv_lib_mysqlclient_mysql_init=yes
19042 else
19043 echo "$as_me: failed program was:" >&5
19044 sed 's/^/| /' conftest.$ac_ext >&5
19046 ac_cv_lib_mysqlclient_mysql_init=no
19048 rm -f conftest.err conftest.$ac_objext \
19049 conftest$ac_exeext conftest.$ac_ext
19050 LIBS=$ac_check_lib_save_LIBS
19052 echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_mysql_init" >&5
19053 echo "${ECHO_T}$ac_cv_lib_mysqlclient_mysql_init" >&6
19054 if test $ac_cv_lib_mysqlclient_mysql_init = yes; then
19055 cat >>confdefs.h <<_ACEOF
19056 #define HAVE_LIBMYSQLCLIENT 1
19057 _ACEOF
19059 LIBS="-lmysqlclient $LIBS"
19061 else
19063 echo "$as_me:$LINENO: checking for mysql_init in -lmysql" >&5
19064 echo $ECHO_N "checking for mysql_init in -lmysql... $ECHO_C" >&6
19065 if test "${ac_cv_lib_mysql_mysql_init+set}" = set; then
19066 echo $ECHO_N "(cached) $ECHO_C" >&6
19067 else
19068 ac_check_lib_save_LIBS=$LIBS
19069 LIBS="-lmysql $LIBS"
19070 cat >conftest.$ac_ext <<_ACEOF
19071 /* confdefs.h. */
19072 _ACEOF
19073 cat confdefs.h >>conftest.$ac_ext
19074 cat >>conftest.$ac_ext <<_ACEOF
19075 /* end confdefs.h. */
19077 /* Override any gcc2 internal prototype to avoid an error. */
19078 #ifdef __cplusplus
19079 extern "C"
19080 #endif
19081 /* We use char because int might match the return type of a gcc2
19082 builtin and then its argument prototype would still apply. */
19083 char mysql_init ();
19085 main ()
19087 mysql_init ();
19089 return 0;
19091 _ACEOF
19092 rm -f conftest.$ac_objext conftest$ac_exeext
19093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19094 (eval $ac_link) 2>conftest.er1
19095 ac_status=$?
19096 grep -v '^ *+' conftest.er1 >conftest.err
19097 rm -f conftest.er1
19098 cat conftest.err >&5
19099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19100 (exit $ac_status); } &&
19101 { ac_try='test -z "$ac_cxx_werror_flag"
19102 || test ! -s conftest.err'
19103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19104 (eval $ac_try) 2>&5
19105 ac_status=$?
19106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19107 (exit $ac_status); }; } &&
19108 { ac_try='test -s conftest$ac_exeext'
19109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19110 (eval $ac_try) 2>&5
19111 ac_status=$?
19112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113 (exit $ac_status); }; }; then
19114 ac_cv_lib_mysql_mysql_init=yes
19115 else
19116 echo "$as_me: failed program was:" >&5
19117 sed 's/^/| /' conftest.$ac_ext >&5
19119 ac_cv_lib_mysql_mysql_init=no
19121 rm -f conftest.err conftest.$ac_objext \
19122 conftest$ac_exeext conftest.$ac_ext
19123 LIBS=$ac_check_lib_save_LIBS
19125 echo "$as_me:$LINENO: result: $ac_cv_lib_mysql_mysql_init" >&5
19126 echo "${ECHO_T}$ac_cv_lib_mysql_mysql_init" >&6
19127 if test $ac_cv_lib_mysql_mysql_init = yes; then
19128 cat >>confdefs.h <<_ACEOF
19129 #define HAVE_LIBMYSQL 1
19130 _ACEOF
19132 LIBS="-lmysql $LIBS"
19134 else
19135 { { echo "$as_me:$LINENO: error: Missing mysql" >&5
19136 echo "$as_me: error: Missing mysql" >&2;}
19137 { (exit 1); exit 1; }; }
19143 echo "$as_me:$LINENO: checking for SHA1_Init in -lssl" >&5
19144 echo $ECHO_N "checking for SHA1_Init in -lssl... $ECHO_C" >&6
19145 if test "${ac_cv_lib_ssl_SHA1_Init+set}" = set; then
19146 echo $ECHO_N "(cached) $ECHO_C" >&6
19147 else
19148 ac_check_lib_save_LIBS=$LIBS
19149 LIBS="-lssl $LIBS"
19150 cat >conftest.$ac_ext <<_ACEOF
19151 /* confdefs.h. */
19152 _ACEOF
19153 cat confdefs.h >>conftest.$ac_ext
19154 cat >>conftest.$ac_ext <<_ACEOF
19155 /* end confdefs.h. */
19157 /* Override any gcc2 internal prototype to avoid an error. */
19158 #ifdef __cplusplus
19159 extern "C"
19160 #endif
19161 /* We use char because int might match the return type of a gcc2
19162 builtin and then its argument prototype would still apply. */
19163 char SHA1_Init ();
19165 main ()
19167 SHA1_Init ();
19169 return 0;
19171 _ACEOF
19172 rm -f conftest.$ac_objext conftest$ac_exeext
19173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19174 (eval $ac_link) 2>conftest.er1
19175 ac_status=$?
19176 grep -v '^ *+' conftest.er1 >conftest.err
19177 rm -f conftest.er1
19178 cat conftest.err >&5
19179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180 (exit $ac_status); } &&
19181 { ac_try='test -z "$ac_cxx_werror_flag"
19182 || test ! -s conftest.err'
19183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19184 (eval $ac_try) 2>&5
19185 ac_status=$?
19186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187 (exit $ac_status); }; } &&
19188 { ac_try='test -s conftest$ac_exeext'
19189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19190 (eval $ac_try) 2>&5
19191 ac_status=$?
19192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193 (exit $ac_status); }; }; then
19194 ac_cv_lib_ssl_SHA1_Init=yes
19195 else
19196 echo "$as_me: failed program was:" >&5
19197 sed 's/^/| /' conftest.$ac_ext >&5
19199 ac_cv_lib_ssl_SHA1_Init=no
19201 rm -f conftest.err conftest.$ac_objext \
19202 conftest$ac_exeext conftest.$ac_ext
19203 LIBS=$ac_check_lib_save_LIBS
19205 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SHA1_Init" >&5
19206 echo "${ECHO_T}$ac_cv_lib_ssl_SHA1_Init" >&6
19207 if test $ac_cv_lib_ssl_SHA1_Init = yes; then
19208 cat >>confdefs.h <<_ACEOF
19209 #define HAVE_LIBSSL 1
19210 _ACEOF
19212 LIBS="-lssl $LIBS"
19214 else
19216 echo "$as_me:$LINENO: checking for SHA1_Init in -lssl" >&5
19217 echo $ECHO_N "checking for SHA1_Init in -lssl... $ECHO_C" >&6
19218 if test "${ac_cv_lib_ssl_SHA1_Init+set}" = set; then
19219 echo $ECHO_N "(cached) $ECHO_C" >&6
19220 else
19221 ac_check_lib_save_LIBS=$LIBS
19222 LIBS="-lssl $LIBS"
19223 cat >conftest.$ac_ext <<_ACEOF
19224 /* confdefs.h. */
19225 _ACEOF
19226 cat confdefs.h >>conftest.$ac_ext
19227 cat >>conftest.$ac_ext <<_ACEOF
19228 /* end confdefs.h. */
19230 /* Override any gcc2 internal prototype to avoid an error. */
19231 #ifdef __cplusplus
19232 extern "C"
19233 #endif
19234 /* We use char because int might match the return type of a gcc2
19235 builtin and then its argument prototype would still apply. */
19236 char SHA1_Init ();
19238 main ()
19240 SHA1_Init ();
19242 return 0;
19244 _ACEOF
19245 rm -f conftest.$ac_objext conftest$ac_exeext
19246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19247 (eval $ac_link) 2>conftest.er1
19248 ac_status=$?
19249 grep -v '^ *+' conftest.er1 >conftest.err
19250 rm -f conftest.er1
19251 cat conftest.err >&5
19252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253 (exit $ac_status); } &&
19254 { ac_try='test -z "$ac_cxx_werror_flag"
19255 || test ! -s conftest.err'
19256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19257 (eval $ac_try) 2>&5
19258 ac_status=$?
19259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260 (exit $ac_status); }; } &&
19261 { ac_try='test -s conftest$ac_exeext'
19262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19263 (eval $ac_try) 2>&5
19264 ac_status=$?
19265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266 (exit $ac_status); }; }; then
19267 ac_cv_lib_ssl_SHA1_Init=yes
19268 else
19269 echo "$as_me: failed program was:" >&5
19270 sed 's/^/| /' conftest.$ac_ext >&5
19272 ac_cv_lib_ssl_SHA1_Init=no
19274 rm -f conftest.err conftest.$ac_objext \
19275 conftest$ac_exeext conftest.$ac_ext
19276 LIBS=$ac_check_lib_save_LIBS
19278 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SHA1_Init" >&5
19279 echo "${ECHO_T}$ac_cv_lib_ssl_SHA1_Init" >&6
19280 if test $ac_cv_lib_ssl_SHA1_Init = yes; then
19281 cat >>confdefs.h <<_ACEOF
19282 #define HAVE_LIBSSL 1
19283 _ACEOF
19285 LIBS="-lssl $LIBS"
19287 else
19288 { { echo "$as_me:$LINENO: error: Missing openssl" >&5
19289 echo "$as_me: error: Missing openssl" >&2;}
19290 { (exit 1); exit 1; }; }
19296 CPPFLAGS_SAVE=$CPPFLAGS
19297 CPPFLAGS=$INCLUDES $CPPFLAGS
19300 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19301 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19302 if test "${ac_cv_header_stdc+set}" = set; then
19303 echo $ECHO_N "(cached) $ECHO_C" >&6
19304 else
19305 cat >conftest.$ac_ext <<_ACEOF
19306 /* confdefs.h. */
19307 _ACEOF
19308 cat confdefs.h >>conftest.$ac_ext
19309 cat >>conftest.$ac_ext <<_ACEOF
19310 /* end confdefs.h. */
19311 #include <stdlib.h>
19312 #include <stdarg.h>
19313 #include <string.h>
19314 #include <float.h>
19317 main ()
19321 return 0;
19323 _ACEOF
19324 rm -f conftest.$ac_objext
19325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19326 (eval $ac_compile) 2>conftest.er1
19327 ac_status=$?
19328 grep -v '^ *+' conftest.er1 >conftest.err
19329 rm -f conftest.er1
19330 cat conftest.err >&5
19331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19332 (exit $ac_status); } &&
19333 { ac_try='test -z "$ac_cxx_werror_flag"
19334 || test ! -s conftest.err'
19335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19336 (eval $ac_try) 2>&5
19337 ac_status=$?
19338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339 (exit $ac_status); }; } &&
19340 { ac_try='test -s conftest.$ac_objext'
19341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19342 (eval $ac_try) 2>&5
19343 ac_status=$?
19344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345 (exit $ac_status); }; }; then
19346 ac_cv_header_stdc=yes
19347 else
19348 echo "$as_me: failed program was:" >&5
19349 sed 's/^/| /' conftest.$ac_ext >&5
19351 ac_cv_header_stdc=no
19353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19355 if test $ac_cv_header_stdc = yes; then
19356 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19357 cat >conftest.$ac_ext <<_ACEOF
19358 /* confdefs.h. */
19359 _ACEOF
19360 cat confdefs.h >>conftest.$ac_ext
19361 cat >>conftest.$ac_ext <<_ACEOF
19362 /* end confdefs.h. */
19363 #include <string.h>
19365 _ACEOF
19366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19367 $EGREP "memchr" >/dev/null 2>&1; then
19369 else
19370 ac_cv_header_stdc=no
19372 rm -f conftest*
19376 if test $ac_cv_header_stdc = yes; then
19377 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19378 cat >conftest.$ac_ext <<_ACEOF
19379 /* confdefs.h. */
19380 _ACEOF
19381 cat confdefs.h >>conftest.$ac_ext
19382 cat >>conftest.$ac_ext <<_ACEOF
19383 /* end confdefs.h. */
19384 #include <stdlib.h>
19386 _ACEOF
19387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19388 $EGREP "free" >/dev/null 2>&1; then
19390 else
19391 ac_cv_header_stdc=no
19393 rm -f conftest*
19397 if test $ac_cv_header_stdc = yes; then
19398 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19399 if test "$cross_compiling" = yes; then
19401 else
19402 cat >conftest.$ac_ext <<_ACEOF
19403 /* confdefs.h. */
19404 _ACEOF
19405 cat confdefs.h >>conftest.$ac_ext
19406 cat >>conftest.$ac_ext <<_ACEOF
19407 /* end confdefs.h. */
19408 #include <ctype.h>
19409 #if ((' ' & 0x0FF) == 0x020)
19410 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19411 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19412 #else
19413 # define ISLOWER(c) \
19414 (('a' <= (c) && (c) <= 'i') \
19415 || ('j' <= (c) && (c) <= 'r') \
19416 || ('s' <= (c) && (c) <= 'z'))
19417 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19418 #endif
19420 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19422 main ()
19424 int i;
19425 for (i = 0; i < 256; i++)
19426 if (XOR (islower (i), ISLOWER (i))
19427 || toupper (i) != TOUPPER (i))
19428 exit(2);
19429 exit (0);
19431 _ACEOF
19432 rm -f conftest$ac_exeext
19433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19434 (eval $ac_link) 2>&5
19435 ac_status=$?
19436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19439 (eval $ac_try) 2>&5
19440 ac_status=$?
19441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442 (exit $ac_status); }; }; then
19444 else
19445 echo "$as_me: program exited with status $ac_status" >&5
19446 echo "$as_me: failed program was:" >&5
19447 sed 's/^/| /' conftest.$ac_ext >&5
19449 ( exit $ac_status )
19450 ac_cv_header_stdc=no
19452 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19456 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19457 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19458 if test $ac_cv_header_stdc = yes; then
19460 cat >>confdefs.h <<\_ACEOF
19461 #define STDC_HEADERS 1
19462 _ACEOF
19466 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
19467 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
19468 if test "${ac_cv_header_stdbool_h+set}" = set; then
19469 echo $ECHO_N "(cached) $ECHO_C" >&6
19470 else
19471 cat >conftest.$ac_ext <<_ACEOF
19472 /* confdefs.h. */
19473 _ACEOF
19474 cat confdefs.h >>conftest.$ac_ext
19475 cat >>conftest.$ac_ext <<_ACEOF
19476 /* end confdefs.h. */
19478 #include <stdbool.h>
19479 #ifndef bool
19480 # error bool is not defined
19481 #endif
19482 #ifndef false
19483 # error false is not defined
19484 #endif
19485 #if false
19486 # error false is not 0
19487 #endif
19488 #ifndef true
19489 # error true is not defined
19490 #endif
19491 #if true != 1
19492 # error true is not 1
19493 #endif
19494 #ifndef __bool_true_false_are_defined
19495 # error __bool_true_false_are_defined is not defined
19496 #endif
19498 struct s { _Bool s: 1; _Bool t; } s;
19500 char a[true == 1 ? 1 : -1];
19501 char b[false == 0 ? 1 : -1];
19502 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19503 char d[(bool) -0.5 == true ? 1 : -1];
19504 bool e = &s;
19505 char f[(_Bool) -0.0 == false ? 1 : -1];
19506 char g[true];
19507 char h[sizeof (_Bool)];
19508 char i[sizeof s.t];
19511 main ()
19513 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
19515 return 0;
19517 _ACEOF
19518 rm -f conftest.$ac_objext
19519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19520 (eval $ac_compile) 2>conftest.er1
19521 ac_status=$?
19522 grep -v '^ *+' conftest.er1 >conftest.err
19523 rm -f conftest.er1
19524 cat conftest.err >&5
19525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19526 (exit $ac_status); } &&
19527 { ac_try='test -z "$ac_cxx_werror_flag"
19528 || test ! -s conftest.err'
19529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19530 (eval $ac_try) 2>&5
19531 ac_status=$?
19532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533 (exit $ac_status); }; } &&
19534 { ac_try='test -s conftest.$ac_objext'
19535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19536 (eval $ac_try) 2>&5
19537 ac_status=$?
19538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19539 (exit $ac_status); }; }; then
19540 ac_cv_header_stdbool_h=yes
19541 else
19542 echo "$as_me: failed program was:" >&5
19543 sed 's/^/| /' conftest.$ac_ext >&5
19545 ac_cv_header_stdbool_h=no
19547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19549 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
19550 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
19551 echo "$as_me:$LINENO: checking for _Bool" >&5
19552 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
19553 if test "${ac_cv_type__Bool+set}" = set; then
19554 echo $ECHO_N "(cached) $ECHO_C" >&6
19555 else
19556 cat >conftest.$ac_ext <<_ACEOF
19557 /* confdefs.h. */
19558 _ACEOF
19559 cat confdefs.h >>conftest.$ac_ext
19560 cat >>conftest.$ac_ext <<_ACEOF
19561 /* end confdefs.h. */
19562 $ac_includes_default
19564 main ()
19566 if ((_Bool *) 0)
19567 return 0;
19568 if (sizeof (_Bool))
19569 return 0;
19571 return 0;
19573 _ACEOF
19574 rm -f conftest.$ac_objext
19575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19576 (eval $ac_compile) 2>conftest.er1
19577 ac_status=$?
19578 grep -v '^ *+' conftest.er1 >conftest.err
19579 rm -f conftest.er1
19580 cat conftest.err >&5
19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); } &&
19583 { ac_try='test -z "$ac_cxx_werror_flag"
19584 || test ! -s conftest.err'
19585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19586 (eval $ac_try) 2>&5
19587 ac_status=$?
19588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589 (exit $ac_status); }; } &&
19590 { ac_try='test -s conftest.$ac_objext'
19591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19592 (eval $ac_try) 2>&5
19593 ac_status=$?
19594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595 (exit $ac_status); }; }; then
19596 ac_cv_type__Bool=yes
19597 else
19598 echo "$as_me: failed program was:" >&5
19599 sed 's/^/| /' conftest.$ac_ext >&5
19601 ac_cv_type__Bool=no
19603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19605 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
19606 echo "${ECHO_T}$ac_cv_type__Bool" >&6
19607 if test $ac_cv_type__Bool = yes; then
19609 cat >>confdefs.h <<_ACEOF
19610 #define HAVE__BOOL 1
19611 _ACEOF
19616 if test $ac_cv_header_stdbool_h = yes; then
19618 cat >>confdefs.h <<\_ACEOF
19619 #define HAVE_STDBOOL_H 1
19620 _ACEOF
19624 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19625 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19626 if test "${ac_cv_header_time+set}" = set; then
19627 echo $ECHO_N "(cached) $ECHO_C" >&6
19628 else
19629 cat >conftest.$ac_ext <<_ACEOF
19630 /* confdefs.h. */
19631 _ACEOF
19632 cat confdefs.h >>conftest.$ac_ext
19633 cat >>conftest.$ac_ext <<_ACEOF
19634 /* end confdefs.h. */
19635 #include <sys/types.h>
19636 #include <sys/time.h>
19637 #include <time.h>
19640 main ()
19642 if ((struct tm *) 0)
19643 return 0;
19645 return 0;
19647 _ACEOF
19648 rm -f conftest.$ac_objext
19649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19650 (eval $ac_compile) 2>conftest.er1
19651 ac_status=$?
19652 grep -v '^ *+' conftest.er1 >conftest.err
19653 rm -f conftest.er1
19654 cat conftest.err >&5
19655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656 (exit $ac_status); } &&
19657 { ac_try='test -z "$ac_cxx_werror_flag"
19658 || test ! -s conftest.err'
19659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19660 (eval $ac_try) 2>&5
19661 ac_status=$?
19662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663 (exit $ac_status); }; } &&
19664 { ac_try='test -s conftest.$ac_objext'
19665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19666 (eval $ac_try) 2>&5
19667 ac_status=$?
19668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19669 (exit $ac_status); }; }; then
19670 ac_cv_header_time=yes
19671 else
19672 echo "$as_me: failed program was:" >&5
19673 sed 's/^/| /' conftest.$ac_ext >&5
19675 ac_cv_header_time=no
19677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19679 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19680 echo "${ECHO_T}$ac_cv_header_time" >&6
19681 if test $ac_cv_header_time = yes; then
19683 cat >>confdefs.h <<\_ACEOF
19684 #define TIME_WITH_SYS_TIME 1
19685 _ACEOF
19702 for ac_header in \
19703 limits.h sys/ioctl.h unistd.h fcntl.h float.h mysql.h \
19704 netdb.h netinet/in.h stddef.h sys/socket.h \
19705 sys/time.h sys/timeb.h opensslv.h \
19708 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19710 echo "$as_me:$LINENO: checking for $ac_header" >&5
19711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19713 echo $ECHO_N "(cached) $ECHO_C" >&6
19715 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19716 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19717 else
19718 # Is the header compilable?
19719 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19720 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19721 cat >conftest.$ac_ext <<_ACEOF
19722 /* confdefs.h. */
19723 _ACEOF
19724 cat confdefs.h >>conftest.$ac_ext
19725 cat >>conftest.$ac_ext <<_ACEOF
19726 /* end confdefs.h. */
19727 $ac_includes_default
19728 #include <$ac_header>
19729 _ACEOF
19730 rm -f conftest.$ac_objext
19731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19732 (eval $ac_compile) 2>conftest.er1
19733 ac_status=$?
19734 grep -v '^ *+' conftest.er1 >conftest.err
19735 rm -f conftest.er1
19736 cat conftest.err >&5
19737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738 (exit $ac_status); } &&
19739 { ac_try='test -z "$ac_cxx_werror_flag"
19740 || test ! -s conftest.err'
19741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19742 (eval $ac_try) 2>&5
19743 ac_status=$?
19744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745 (exit $ac_status); }; } &&
19746 { ac_try='test -s conftest.$ac_objext'
19747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19748 (eval $ac_try) 2>&5
19749 ac_status=$?
19750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751 (exit $ac_status); }; }; then
19752 ac_header_compiler=yes
19753 else
19754 echo "$as_me: failed program was:" >&5
19755 sed 's/^/| /' conftest.$ac_ext >&5
19757 ac_header_compiler=no
19759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19760 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19761 echo "${ECHO_T}$ac_header_compiler" >&6
19763 # Is the header present?
19764 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19765 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19766 cat >conftest.$ac_ext <<_ACEOF
19767 /* confdefs.h. */
19768 _ACEOF
19769 cat confdefs.h >>conftest.$ac_ext
19770 cat >>conftest.$ac_ext <<_ACEOF
19771 /* end confdefs.h. */
19772 #include <$ac_header>
19773 _ACEOF
19774 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19775 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19776 ac_status=$?
19777 grep -v '^ *+' conftest.er1 >conftest.err
19778 rm -f conftest.er1
19779 cat conftest.err >&5
19780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781 (exit $ac_status); } >/dev/null; then
19782 if test -s conftest.err; then
19783 ac_cpp_err=$ac_cxx_preproc_warn_flag
19784 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
19785 else
19786 ac_cpp_err=
19788 else
19789 ac_cpp_err=yes
19791 if test -z "$ac_cpp_err"; then
19792 ac_header_preproc=yes
19793 else
19794 echo "$as_me: failed program was:" >&5
19795 sed 's/^/| /' conftest.$ac_ext >&5
19797 ac_header_preproc=no
19799 rm -f conftest.err conftest.$ac_ext
19800 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19801 echo "${ECHO_T}$ac_header_preproc" >&6
19803 # So? What about this header?
19804 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19805 yes:no: )
19806 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19807 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19808 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19809 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19810 ac_header_preproc=yes
19812 no:yes:* )
19813 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19814 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19815 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19816 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19817 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19818 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19819 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19820 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19821 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19822 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19823 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19824 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19826 cat <<\_ASBOX
19827 ## -------------------------------------------- ##
19828 ## Report this to http://www.mangosproject.org/ ##
19829 ## -------------------------------------------- ##
19830 _ASBOX
19832 sed "s/^/$as_me: WARNING: /" >&2
19834 esac
19835 echo "$as_me:$LINENO: checking for $ac_header" >&5
19836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19838 echo $ECHO_N "(cached) $ECHO_C" >&6
19839 else
19840 eval "$as_ac_Header=\$ac_header_preproc"
19842 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19843 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19846 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19847 cat >>confdefs.h <<_ACEOF
19848 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19849 _ACEOF
19851 else
19852 { { echo "$as_me:$LINENO: error: Missing required header" >&5
19853 echo "$as_me: error: Missing required header" >&2;}
19854 { (exit 1); exit 1; }; }
19857 done
19860 CPPFLAGS=$CPPFLAGS_SAVE
19862 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19863 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19864 if test "${ac_cv_c_const+set}" = set; then
19865 echo $ECHO_N "(cached) $ECHO_C" >&6
19866 else
19867 cat >conftest.$ac_ext <<_ACEOF
19868 /* confdefs.h. */
19869 _ACEOF
19870 cat confdefs.h >>conftest.$ac_ext
19871 cat >>conftest.$ac_ext <<_ACEOF
19872 /* end confdefs.h. */
19875 main ()
19877 /* FIXME: Include the comments suggested by Paul. */
19878 #ifndef __cplusplus
19879 /* Ultrix mips cc rejects this. */
19880 typedef int charset[2];
19881 const charset x;
19882 /* SunOS 4.1.1 cc rejects this. */
19883 char const *const *ccp;
19884 char **p;
19885 /* NEC SVR4.0.2 mips cc rejects this. */
19886 struct point {int x, y;};
19887 static struct point const zero = {0,0};
19888 /* AIX XL C 1.02.0.0 rejects this.
19889 It does not let you subtract one const X* pointer from another in
19890 an arm of an if-expression whose if-part is not a constant
19891 expression */
19892 const char *g = "string";
19893 ccp = &g + (g ? g-g : 0);
19894 /* HPUX 7.0 cc rejects these. */
19895 ++ccp;
19896 p = (char**) ccp;
19897 ccp = (char const *const *) p;
19898 { /* SCO 3.2v4 cc rejects this. */
19899 char *t;
19900 char const *s = 0 ? (char *) 0 : (char const *) 0;
19902 *t++ = 0;
19904 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19905 int x[] = {25, 17};
19906 const int *foo = &x[0];
19907 ++foo;
19909 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19910 typedef const int *iptr;
19911 iptr p = 0;
19912 ++p;
19914 { /* AIX XL C 1.02.0.0 rejects this saying
19915 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19916 struct s { int j; const int *ap[3]; };
19917 struct s *b; b->j = 5;
19919 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19920 const int foo = 10;
19922 #endif
19925 return 0;
19927 _ACEOF
19928 rm -f conftest.$ac_objext
19929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19930 (eval $ac_compile) 2>conftest.er1
19931 ac_status=$?
19932 grep -v '^ *+' conftest.er1 >conftest.err
19933 rm -f conftest.er1
19934 cat conftest.err >&5
19935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19936 (exit $ac_status); } &&
19937 { ac_try='test -z "$ac_cxx_werror_flag"
19938 || test ! -s conftest.err'
19939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19940 (eval $ac_try) 2>&5
19941 ac_status=$?
19942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 (exit $ac_status); }; } &&
19944 { ac_try='test -s conftest.$ac_objext'
19945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19946 (eval $ac_try) 2>&5
19947 ac_status=$?
19948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949 (exit $ac_status); }; }; then
19950 ac_cv_c_const=yes
19951 else
19952 echo "$as_me: failed program was:" >&5
19953 sed 's/^/| /' conftest.$ac_ext >&5
19955 ac_cv_c_const=no
19957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19959 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19960 echo "${ECHO_T}$ac_cv_c_const" >&6
19961 if test $ac_cv_c_const = no; then
19963 cat >>confdefs.h <<\_ACEOF
19964 #define const
19965 _ACEOF
19969 echo "$as_me:$LINENO: checking for inline" >&5
19970 echo $ECHO_N "checking for inline... $ECHO_C" >&6
19971 if test "${ac_cv_c_inline+set}" = set; then
19972 echo $ECHO_N "(cached) $ECHO_C" >&6
19973 else
19974 ac_cv_c_inline=no
19975 for ac_kw in inline __inline__ __inline; do
19976 cat >conftest.$ac_ext <<_ACEOF
19977 /* confdefs.h. */
19978 _ACEOF
19979 cat confdefs.h >>conftest.$ac_ext
19980 cat >>conftest.$ac_ext <<_ACEOF
19981 /* end confdefs.h. */
19982 #ifndef __cplusplus
19983 typedef int foo_t;
19984 static $ac_kw foo_t static_foo () {return 0; }
19985 $ac_kw foo_t foo () {return 0; }
19986 #endif
19988 _ACEOF
19989 rm -f conftest.$ac_objext
19990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19991 (eval $ac_compile) 2>conftest.er1
19992 ac_status=$?
19993 grep -v '^ *+' conftest.er1 >conftest.err
19994 rm -f conftest.er1
19995 cat conftest.err >&5
19996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997 (exit $ac_status); } &&
19998 { ac_try='test -z "$ac_cxx_werror_flag"
19999 || test ! -s conftest.err'
20000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20001 (eval $ac_try) 2>&5
20002 ac_status=$?
20003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20004 (exit $ac_status); }; } &&
20005 { ac_try='test -s conftest.$ac_objext'
20006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20007 (eval $ac_try) 2>&5
20008 ac_status=$?
20009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20010 (exit $ac_status); }; }; then
20011 ac_cv_c_inline=$ac_kw; break
20012 else
20013 echo "$as_me: failed program was:" >&5
20014 sed 's/^/| /' conftest.$ac_ext >&5
20017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20018 done
20021 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20022 echo "${ECHO_T}$ac_cv_c_inline" >&6
20025 case $ac_cv_c_inline in
20026 inline | yes) ;;
20028 case $ac_cv_c_inline in
20029 no) ac_val=;;
20030 *) ac_val=$ac_cv_c_inline;;
20031 esac
20032 cat >>confdefs.h <<_ACEOF
20033 #ifndef __cplusplus
20034 #define inline $ac_val
20035 #endif
20036 _ACEOF
20038 esac
20040 echo "$as_me:$LINENO: checking for working volatile" >&5
20041 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
20042 if test "${ac_cv_c_volatile+set}" = set; then
20043 echo $ECHO_N "(cached) $ECHO_C" >&6
20044 else
20045 cat >conftest.$ac_ext <<_ACEOF
20046 /* confdefs.h. */
20047 _ACEOF
20048 cat confdefs.h >>conftest.$ac_ext
20049 cat >>conftest.$ac_ext <<_ACEOF
20050 /* end confdefs.h. */
20053 main ()
20056 volatile int x;
20057 int * volatile y;
20059 return 0;
20061 _ACEOF
20062 rm -f conftest.$ac_objext
20063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20064 (eval $ac_compile) 2>conftest.er1
20065 ac_status=$?
20066 grep -v '^ *+' conftest.er1 >conftest.err
20067 rm -f conftest.er1
20068 cat conftest.err >&5
20069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20070 (exit $ac_status); } &&
20071 { ac_try='test -z "$ac_cxx_werror_flag"
20072 || test ! -s conftest.err'
20073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20074 (eval $ac_try) 2>&5
20075 ac_status=$?
20076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20077 (exit $ac_status); }; } &&
20078 { ac_try='test -s conftest.$ac_objext'
20079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20080 (eval $ac_try) 2>&5
20081 ac_status=$?
20082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083 (exit $ac_status); }; }; then
20084 ac_cv_c_volatile=yes
20085 else
20086 echo "$as_me: failed program was:" >&5
20087 sed 's/^/| /' conftest.$ac_ext >&5
20089 ac_cv_c_volatile=no
20091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20093 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
20094 echo "${ECHO_T}$ac_cv_c_volatile" >&6
20095 if test $ac_cv_c_volatile = no; then
20097 cat >>confdefs.h <<\_ACEOF
20098 #define volatile
20099 _ACEOF
20103 echo "$as_me:$LINENO: checking for size_t" >&5
20104 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20105 if test "${ac_cv_type_size_t+set}" = set; then
20106 echo $ECHO_N "(cached) $ECHO_C" >&6
20107 else
20108 cat >conftest.$ac_ext <<_ACEOF
20109 /* confdefs.h. */
20110 _ACEOF
20111 cat confdefs.h >>conftest.$ac_ext
20112 cat >>conftest.$ac_ext <<_ACEOF
20113 /* end confdefs.h. */
20114 $ac_includes_default
20116 main ()
20118 if ((size_t *) 0)
20119 return 0;
20120 if (sizeof (size_t))
20121 return 0;
20123 return 0;
20125 _ACEOF
20126 rm -f conftest.$ac_objext
20127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20128 (eval $ac_compile) 2>conftest.er1
20129 ac_status=$?
20130 grep -v '^ *+' conftest.er1 >conftest.err
20131 rm -f conftest.er1
20132 cat conftest.err >&5
20133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20134 (exit $ac_status); } &&
20135 { ac_try='test -z "$ac_cxx_werror_flag"
20136 || test ! -s conftest.err'
20137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20138 (eval $ac_try) 2>&5
20139 ac_status=$?
20140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20141 (exit $ac_status); }; } &&
20142 { ac_try='test -s conftest.$ac_objext'
20143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20144 (eval $ac_try) 2>&5
20145 ac_status=$?
20146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147 (exit $ac_status); }; }; then
20148 ac_cv_type_size_t=yes
20149 else
20150 echo "$as_me: failed program was:" >&5
20151 sed 's/^/| /' conftest.$ac_ext >&5
20153 ac_cv_type_size_t=no
20155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20157 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20158 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20159 if test $ac_cv_type_size_t = yes; then
20161 else
20163 cat >>confdefs.h <<_ACEOF
20164 #define size_t unsigned
20165 _ACEOF
20169 echo "$as_me:$LINENO: checking for off_t" >&5
20170 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
20171 if test "${ac_cv_type_off_t+set}" = set; then
20172 echo $ECHO_N "(cached) $ECHO_C" >&6
20173 else
20174 cat >conftest.$ac_ext <<_ACEOF
20175 /* confdefs.h. */
20176 _ACEOF
20177 cat confdefs.h >>conftest.$ac_ext
20178 cat >>conftest.$ac_ext <<_ACEOF
20179 /* end confdefs.h. */
20180 $ac_includes_default
20182 main ()
20184 if ((off_t *) 0)
20185 return 0;
20186 if (sizeof (off_t))
20187 return 0;
20189 return 0;
20191 _ACEOF
20192 rm -f conftest.$ac_objext
20193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20194 (eval $ac_compile) 2>conftest.er1
20195 ac_status=$?
20196 grep -v '^ *+' conftest.er1 >conftest.err
20197 rm -f conftest.er1
20198 cat conftest.err >&5
20199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200 (exit $ac_status); } &&
20201 { ac_try='test -z "$ac_cxx_werror_flag"
20202 || test ! -s conftest.err'
20203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20204 (eval $ac_try) 2>&5
20205 ac_status=$?
20206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207 (exit $ac_status); }; } &&
20208 { ac_try='test -s conftest.$ac_objext'
20209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20210 (eval $ac_try) 2>&5
20211 ac_status=$?
20212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20213 (exit $ac_status); }; }; then
20214 ac_cv_type_off_t=yes
20215 else
20216 echo "$as_me: failed program was:" >&5
20217 sed 's/^/| /' conftest.$ac_ext >&5
20219 ac_cv_type_off_t=no
20221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20223 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
20224 echo "${ECHO_T}$ac_cv_type_off_t" >&6
20225 if test $ac_cv_type_off_t = yes; then
20227 else
20229 cat >>confdefs.h <<_ACEOF
20230 #define off_t long
20231 _ACEOF
20235 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
20236 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
20237 if test "${ac_cv_type_signal+set}" = set; then
20238 echo $ECHO_N "(cached) $ECHO_C" >&6
20239 else
20240 cat >conftest.$ac_ext <<_ACEOF
20241 /* confdefs.h. */
20242 _ACEOF
20243 cat confdefs.h >>conftest.$ac_ext
20244 cat >>conftest.$ac_ext <<_ACEOF
20245 /* end confdefs.h. */
20246 #include <sys/types.h>
20247 #include <signal.h>
20248 #ifdef signal
20249 # undef signal
20250 #endif
20251 #ifdef __cplusplus
20252 extern "C" void (*signal (int, void (*)(int)))(int);
20253 #else
20254 void (*signal ()) ();
20255 #endif
20258 main ()
20260 int i;
20262 return 0;
20264 _ACEOF
20265 rm -f conftest.$ac_objext
20266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20267 (eval $ac_compile) 2>conftest.er1
20268 ac_status=$?
20269 grep -v '^ *+' conftest.er1 >conftest.err
20270 rm -f conftest.er1
20271 cat conftest.err >&5
20272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273 (exit $ac_status); } &&
20274 { ac_try='test -z "$ac_cxx_werror_flag"
20275 || test ! -s conftest.err'
20276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20277 (eval $ac_try) 2>&5
20278 ac_status=$?
20279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20280 (exit $ac_status); }; } &&
20281 { ac_try='test -s conftest.$ac_objext'
20282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20283 (eval $ac_try) 2>&5
20284 ac_status=$?
20285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286 (exit $ac_status); }; }; then
20287 ac_cv_type_signal=void
20288 else
20289 echo "$as_me: failed program was:" >&5
20290 sed 's/^/| /' conftest.$ac_ext >&5
20292 ac_cv_type_signal=int
20294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20296 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
20297 echo "${ECHO_T}$ac_cv_type_signal" >&6
20299 cat >>confdefs.h <<_ACEOF
20300 #define RETSIGTYPE $ac_cv_type_signal
20301 _ACEOF
20304 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20305 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20306 if test "${ac_cv_struct_tm+set}" = set; then
20307 echo $ECHO_N "(cached) $ECHO_C" >&6
20308 else
20309 cat >conftest.$ac_ext <<_ACEOF
20310 /* confdefs.h. */
20311 _ACEOF
20312 cat confdefs.h >>conftest.$ac_ext
20313 cat >>conftest.$ac_ext <<_ACEOF
20314 /* end confdefs.h. */
20315 #include <sys/types.h>
20316 #include <time.h>
20319 main ()
20321 struct tm *tp; tp->tm_sec;
20323 return 0;
20325 _ACEOF
20326 rm -f conftest.$ac_objext
20327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20328 (eval $ac_compile) 2>conftest.er1
20329 ac_status=$?
20330 grep -v '^ *+' conftest.er1 >conftest.err
20331 rm -f conftest.er1
20332 cat conftest.err >&5
20333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334 (exit $ac_status); } &&
20335 { ac_try='test -z "$ac_cxx_werror_flag"
20336 || test ! -s conftest.err'
20337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20338 (eval $ac_try) 2>&5
20339 ac_status=$?
20340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20341 (exit $ac_status); }; } &&
20342 { ac_try='test -s conftest.$ac_objext'
20343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20344 (eval $ac_try) 2>&5
20345 ac_status=$?
20346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347 (exit $ac_status); }; }; then
20348 ac_cv_struct_tm=time.h
20349 else
20350 echo "$as_me: failed program was:" >&5
20351 sed 's/^/| /' conftest.$ac_ext >&5
20353 ac_cv_struct_tm=sys/time.h
20355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20357 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20358 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20359 if test $ac_cv_struct_tm = sys/time.h; then
20361 cat >>confdefs.h <<\_ACEOF
20362 #define TM_IN_SYS_TIME 1
20363 _ACEOF
20367 echo "$as_me:$LINENO: checking for ptrdiff_t " >&5
20368 echo $ECHO_N "checking for ptrdiff_t ... $ECHO_C" >&6
20369 if test "${ac_cv_type_ptrdiff_t_+set}" = set; then
20370 echo $ECHO_N "(cached) $ECHO_C" >&6
20371 else
20372 cat >conftest.$ac_ext <<_ACEOF
20373 /* confdefs.h. */
20374 _ACEOF
20375 cat confdefs.h >>conftest.$ac_ext
20376 cat >>conftest.$ac_ext <<_ACEOF
20377 /* end confdefs.h. */
20378 $ac_includes_default
20380 main ()
20382 if ((ptrdiff_t *) 0)
20383 return 0;
20384 if (sizeof (ptrdiff_t ))
20385 return 0;
20387 return 0;
20389 _ACEOF
20390 rm -f conftest.$ac_objext
20391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20392 (eval $ac_compile) 2>conftest.er1
20393 ac_status=$?
20394 grep -v '^ *+' conftest.er1 >conftest.err
20395 rm -f conftest.er1
20396 cat conftest.err >&5
20397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20398 (exit $ac_status); } &&
20399 { ac_try='test -z "$ac_cxx_werror_flag"
20400 || test ! -s conftest.err'
20401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20402 (eval $ac_try) 2>&5
20403 ac_status=$?
20404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20405 (exit $ac_status); }; } &&
20406 { ac_try='test -s conftest.$ac_objext'
20407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20408 (eval $ac_try) 2>&5
20409 ac_status=$?
20410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411 (exit $ac_status); }; }; then
20412 ac_cv_type_ptrdiff_t_=yes
20413 else
20414 echo "$as_me: failed program was:" >&5
20415 sed 's/^/| /' conftest.$ac_ext >&5
20417 ac_cv_type_ptrdiff_t_=no
20419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20421 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t_" >&5
20422 echo "${ECHO_T}$ac_cv_type_ptrdiff_t_" >&6
20423 if test $ac_cv_type_ptrdiff_t_ = yes; then
20425 cat >>confdefs.h <<_ACEOF
20426 #define HAVE_PTRDIFF_T_ 1
20427 _ACEOF
20433 echo "$as_me:$LINENO: checking for working memcmp" >&5
20434 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
20435 if test "${ac_cv_func_memcmp_working+set}" = set; then
20436 echo $ECHO_N "(cached) $ECHO_C" >&6
20437 else
20438 if test "$cross_compiling" = yes; then
20439 ac_cv_func_memcmp_working=no
20440 else
20441 cat >conftest.$ac_ext <<_ACEOF
20442 /* confdefs.h. */
20443 _ACEOF
20444 cat confdefs.h >>conftest.$ac_ext
20445 cat >>conftest.$ac_ext <<_ACEOF
20446 /* end confdefs.h. */
20447 $ac_includes_default
20449 main ()
20452 /* Some versions of memcmp are not 8-bit clean. */
20453 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
20454 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
20455 exit (1);
20457 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
20458 or more and with at least one buffer not starting on a 4-byte boundary.
20459 William Lewis provided this test program. */
20461 char foo[21];
20462 char bar[21];
20463 int i;
20464 for (i = 0; i < 4; i++)
20466 char *a = foo + i;
20467 char *b = bar + i;
20468 strcpy (a, "--------01111111");
20469 strcpy (b, "--------10000000");
20470 if (memcmp (a, b, 16) >= 0)
20471 exit (1);
20473 exit (0);
20477 return 0;
20479 _ACEOF
20480 rm -f conftest$ac_exeext
20481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20482 (eval $ac_link) 2>&5
20483 ac_status=$?
20484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20485 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_cv_func_memcmp_working=yes
20492 else
20493 echo "$as_me: program exited with status $ac_status" >&5
20494 echo "$as_me: failed program was:" >&5
20495 sed 's/^/| /' conftest.$ac_ext >&5
20497 ( exit $ac_status )
20498 ac_cv_func_memcmp_working=no
20500 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20503 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
20504 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
20505 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
20506 "memcmp.$ac_objext" | \
20507 *" memcmp.$ac_objext" | \
20508 "memcmp.$ac_objext "* | \
20509 *" memcmp.$ac_objext "* ) ;;
20510 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
20511 esac
20514 echo "$as_me:$LINENO: checking for working strcoll" >&5
20515 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6
20516 if test "${ac_cv_func_strcoll_works+set}" = set; then
20517 echo $ECHO_N "(cached) $ECHO_C" >&6
20518 else
20519 if test "$cross_compiling" = yes; then
20520 ac_cv_func_strcoll_works=no
20521 else
20522 cat >conftest.$ac_ext <<_ACEOF
20523 /* confdefs.h. */
20524 _ACEOF
20525 cat confdefs.h >>conftest.$ac_ext
20526 cat >>conftest.$ac_ext <<_ACEOF
20527 /* end confdefs.h. */
20528 $ac_includes_default
20530 main ()
20532 exit (strcoll ("abc", "def") >= 0 ||
20533 strcoll ("ABC", "DEF") >= 0 ||
20534 strcoll ("123", "456") >= 0)
20536 return 0;
20538 _ACEOF
20539 rm -f conftest$ac_exeext
20540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20541 (eval $ac_link) 2>&5
20542 ac_status=$?
20543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20546 (eval $ac_try) 2>&5
20547 ac_status=$?
20548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20549 (exit $ac_status); }; }; then
20550 ac_cv_func_strcoll_works=yes
20551 else
20552 echo "$as_me: program exited with status $ac_status" >&5
20553 echo "$as_me: failed program was:" >&5
20554 sed 's/^/| /' conftest.$ac_ext >&5
20556 ( exit $ac_status )
20557 ac_cv_func_strcoll_works=no
20559 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20562 echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
20563 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
20564 if test $ac_cv_func_strcoll_works = yes; then
20566 cat >>confdefs.h <<\_ACEOF
20567 #define HAVE_STRCOLL 1
20568 _ACEOF
20572 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20573 # for constant arguments. Useless!
20574 echo "$as_me:$LINENO: checking for working alloca.h" >&5
20575 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
20576 if test "${ac_cv_working_alloca_h+set}" = set; then
20577 echo $ECHO_N "(cached) $ECHO_C" >&6
20578 else
20579 cat >conftest.$ac_ext <<_ACEOF
20580 /* confdefs.h. */
20581 _ACEOF
20582 cat confdefs.h >>conftest.$ac_ext
20583 cat >>conftest.$ac_ext <<_ACEOF
20584 /* end confdefs.h. */
20585 #include <alloca.h>
20587 main ()
20589 char *p = (char *) alloca (2 * sizeof (int));
20591 return 0;
20593 _ACEOF
20594 rm -f conftest.$ac_objext conftest$ac_exeext
20595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20596 (eval $ac_link) 2>conftest.er1
20597 ac_status=$?
20598 grep -v '^ *+' conftest.er1 >conftest.err
20599 rm -f conftest.er1
20600 cat conftest.err >&5
20601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20602 (exit $ac_status); } &&
20603 { ac_try='test -z "$ac_cxx_werror_flag"
20604 || test ! -s conftest.err'
20605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20606 (eval $ac_try) 2>&5
20607 ac_status=$?
20608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609 (exit $ac_status); }; } &&
20610 { ac_try='test -s conftest$ac_exeext'
20611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20612 (eval $ac_try) 2>&5
20613 ac_status=$?
20614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615 (exit $ac_status); }; }; then
20616 ac_cv_working_alloca_h=yes
20617 else
20618 echo "$as_me: failed program was:" >&5
20619 sed 's/^/| /' conftest.$ac_ext >&5
20621 ac_cv_working_alloca_h=no
20623 rm -f conftest.err conftest.$ac_objext \
20624 conftest$ac_exeext conftest.$ac_ext
20626 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
20627 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
20628 if test $ac_cv_working_alloca_h = yes; then
20630 cat >>confdefs.h <<\_ACEOF
20631 #define HAVE_ALLOCA_H 1
20632 _ACEOF
20636 echo "$as_me:$LINENO: checking for alloca" >&5
20637 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
20638 if test "${ac_cv_func_alloca_works+set}" = set; then
20639 echo $ECHO_N "(cached) $ECHO_C" >&6
20640 else
20641 cat >conftest.$ac_ext <<_ACEOF
20642 /* confdefs.h. */
20643 _ACEOF
20644 cat confdefs.h >>conftest.$ac_ext
20645 cat >>conftest.$ac_ext <<_ACEOF
20646 /* end confdefs.h. */
20647 #ifdef __GNUC__
20648 # define alloca __builtin_alloca
20649 #else
20650 # ifdef _MSC_VER
20651 # include <malloc.h>
20652 # define alloca _alloca
20653 # else
20654 # if HAVE_ALLOCA_H
20655 # include <alloca.h>
20656 # else
20657 # ifdef _AIX
20658 #pragma alloca
20659 # else
20660 # ifndef alloca /* predefined by HP cc +Olibcalls */
20661 char *alloca ();
20662 # endif
20663 # endif
20664 # endif
20665 # endif
20666 #endif
20669 main ()
20671 char *p = (char *) alloca (1);
20673 return 0;
20675 _ACEOF
20676 rm -f conftest.$ac_objext conftest$ac_exeext
20677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20678 (eval $ac_link) 2>conftest.er1
20679 ac_status=$?
20680 grep -v '^ *+' conftest.er1 >conftest.err
20681 rm -f conftest.er1
20682 cat conftest.err >&5
20683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684 (exit $ac_status); } &&
20685 { ac_try='test -z "$ac_cxx_werror_flag"
20686 || test ! -s conftest.err'
20687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20688 (eval $ac_try) 2>&5
20689 ac_status=$?
20690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20691 (exit $ac_status); }; } &&
20692 { ac_try='test -s conftest$ac_exeext'
20693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20694 (eval $ac_try) 2>&5
20695 ac_status=$?
20696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20697 (exit $ac_status); }; }; then
20698 ac_cv_func_alloca_works=yes
20699 else
20700 echo "$as_me: failed program was:" >&5
20701 sed 's/^/| /' conftest.$ac_ext >&5
20703 ac_cv_func_alloca_works=no
20705 rm -f conftest.err conftest.$ac_objext \
20706 conftest$ac_exeext conftest.$ac_ext
20708 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
20709 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
20711 if test $ac_cv_func_alloca_works = yes; then
20713 cat >>confdefs.h <<\_ACEOF
20714 #define HAVE_ALLOCA 1
20715 _ACEOF
20717 else
20718 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20719 # that cause trouble. Some versions do not even contain alloca or
20720 # contain a buggy version. If you still want to use their alloca,
20721 # use ar to extract alloca.o from them instead of compiling alloca.c.
20723 ALLOCA=alloca.$ac_objext
20725 cat >>confdefs.h <<\_ACEOF
20726 #define C_ALLOCA 1
20727 _ACEOF
20730 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
20731 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
20732 if test "${ac_cv_os_cray+set}" = set; then
20733 echo $ECHO_N "(cached) $ECHO_C" >&6
20734 else
20735 cat >conftest.$ac_ext <<_ACEOF
20736 /* confdefs.h. */
20737 _ACEOF
20738 cat confdefs.h >>conftest.$ac_ext
20739 cat >>conftest.$ac_ext <<_ACEOF
20740 /* end confdefs.h. */
20741 #if defined(CRAY) && ! defined(CRAY2)
20742 webecray
20743 #else
20744 wenotbecray
20745 #endif
20747 _ACEOF
20748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20749 $EGREP "webecray" >/dev/null 2>&1; then
20750 ac_cv_os_cray=yes
20751 else
20752 ac_cv_os_cray=no
20754 rm -f conftest*
20757 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
20758 echo "${ECHO_T}$ac_cv_os_cray" >&6
20759 if test $ac_cv_os_cray = yes; then
20760 for ac_func in _getb67 GETB67 getb67; do
20761 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20762 echo "$as_me:$LINENO: checking for $ac_func" >&5
20763 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20764 if eval "test \"\${$as_ac_var+set}\" = set"; then
20765 echo $ECHO_N "(cached) $ECHO_C" >&6
20766 else
20767 cat >conftest.$ac_ext <<_ACEOF
20768 /* confdefs.h. */
20769 _ACEOF
20770 cat confdefs.h >>conftest.$ac_ext
20771 cat >>conftest.$ac_ext <<_ACEOF
20772 /* end confdefs.h. */
20773 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20774 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20775 #define $ac_func innocuous_$ac_func
20777 /* System header to define __stub macros and hopefully few prototypes,
20778 which can conflict with char $ac_func (); below.
20779 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20780 <limits.h> exists even on freestanding compilers. */
20782 #ifdef __STDC__
20783 # include <limits.h>
20784 #else
20785 # include <assert.h>
20786 #endif
20788 #undef $ac_func
20790 /* Override any gcc2 internal prototype to avoid an error. */
20791 #ifdef __cplusplus
20792 extern "C"
20794 #endif
20795 /* We use char because int might match the return type of a gcc2
20796 builtin and then its argument prototype would still apply. */
20797 char $ac_func ();
20798 /* The GNU C library defines this for functions which it implements
20799 to always fail with ENOSYS. Some functions are actually named
20800 something starting with __ and the normal name is an alias. */
20801 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20802 choke me
20803 #else
20804 char (*f) () = $ac_func;
20805 #endif
20806 #ifdef __cplusplus
20808 #endif
20811 main ()
20813 return f != $ac_func;
20815 return 0;
20817 _ACEOF
20818 rm -f conftest.$ac_objext conftest$ac_exeext
20819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20820 (eval $ac_link) 2>conftest.er1
20821 ac_status=$?
20822 grep -v '^ *+' conftest.er1 >conftest.err
20823 rm -f conftest.er1
20824 cat conftest.err >&5
20825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20826 (exit $ac_status); } &&
20827 { ac_try='test -z "$ac_cxx_werror_flag"
20828 || test ! -s conftest.err'
20829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20830 (eval $ac_try) 2>&5
20831 ac_status=$?
20832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20833 (exit $ac_status); }; } &&
20834 { ac_try='test -s conftest$ac_exeext'
20835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20836 (eval $ac_try) 2>&5
20837 ac_status=$?
20838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20839 (exit $ac_status); }; }; then
20840 eval "$as_ac_var=yes"
20841 else
20842 echo "$as_me: failed program was:" >&5
20843 sed 's/^/| /' conftest.$ac_ext >&5
20845 eval "$as_ac_var=no"
20847 rm -f conftest.err conftest.$ac_objext \
20848 conftest$ac_exeext conftest.$ac_ext
20850 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20851 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20852 if test `eval echo '${'$as_ac_var'}'` = yes; then
20854 cat >>confdefs.h <<_ACEOF
20855 #define CRAY_STACKSEG_END $ac_func
20856 _ACEOF
20858 break
20861 done
20864 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
20865 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
20866 if test "${ac_cv_c_stack_direction+set}" = set; then
20867 echo $ECHO_N "(cached) $ECHO_C" >&6
20868 else
20869 if test "$cross_compiling" = yes; then
20870 ac_cv_c_stack_direction=0
20871 else
20872 cat >conftest.$ac_ext <<_ACEOF
20873 /* confdefs.h. */
20874 _ACEOF
20875 cat confdefs.h >>conftest.$ac_ext
20876 cat >>conftest.$ac_ext <<_ACEOF
20877 /* end confdefs.h. */
20879 find_stack_direction ()
20881 static char *addr = 0;
20882 auto char dummy;
20883 if (addr == 0)
20885 addr = &dummy;
20886 return find_stack_direction ();
20888 else
20889 return (&dummy > addr) ? 1 : -1;
20893 main ()
20895 exit (find_stack_direction () < 0);
20897 _ACEOF
20898 rm -f conftest$ac_exeext
20899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20900 (eval $ac_link) 2>&5
20901 ac_status=$?
20902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20905 (eval $ac_try) 2>&5
20906 ac_status=$?
20907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908 (exit $ac_status); }; }; then
20909 ac_cv_c_stack_direction=1
20910 else
20911 echo "$as_me: program exited with status $ac_status" >&5
20912 echo "$as_me: failed program was:" >&5
20913 sed 's/^/| /' conftest.$ac_ext >&5
20915 ( exit $ac_status )
20916 ac_cv_c_stack_direction=-1
20918 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20921 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
20922 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
20924 cat >>confdefs.h <<_ACEOF
20925 #define STACK_DIRECTION $ac_cv_c_stack_direction
20926 _ACEOF
20932 for ac_header in stdlib.h
20934 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20935 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20936 echo "$as_me:$LINENO: checking for $ac_header" >&5
20937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20938 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20939 echo $ECHO_N "(cached) $ECHO_C" >&6
20941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20942 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20943 else
20944 # Is the header compilable?
20945 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20946 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20947 cat >conftest.$ac_ext <<_ACEOF
20948 /* confdefs.h. */
20949 _ACEOF
20950 cat confdefs.h >>conftest.$ac_ext
20951 cat >>conftest.$ac_ext <<_ACEOF
20952 /* end confdefs.h. */
20953 $ac_includes_default
20954 #include <$ac_header>
20955 _ACEOF
20956 rm -f conftest.$ac_objext
20957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20958 (eval $ac_compile) 2>conftest.er1
20959 ac_status=$?
20960 grep -v '^ *+' conftest.er1 >conftest.err
20961 rm -f conftest.er1
20962 cat conftest.err >&5
20963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20964 (exit $ac_status); } &&
20965 { ac_try='test -z "$ac_cxx_werror_flag"
20966 || test ! -s conftest.err'
20967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20968 (eval $ac_try) 2>&5
20969 ac_status=$?
20970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20971 (exit $ac_status); }; } &&
20972 { ac_try='test -s conftest.$ac_objext'
20973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20974 (eval $ac_try) 2>&5
20975 ac_status=$?
20976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977 (exit $ac_status); }; }; then
20978 ac_header_compiler=yes
20979 else
20980 echo "$as_me: failed program was:" >&5
20981 sed 's/^/| /' conftest.$ac_ext >&5
20983 ac_header_compiler=no
20985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20986 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20987 echo "${ECHO_T}$ac_header_compiler" >&6
20989 # Is the header present?
20990 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20991 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20992 cat >conftest.$ac_ext <<_ACEOF
20993 /* confdefs.h. */
20994 _ACEOF
20995 cat confdefs.h >>conftest.$ac_ext
20996 cat >>conftest.$ac_ext <<_ACEOF
20997 /* end confdefs.h. */
20998 #include <$ac_header>
20999 _ACEOF
21000 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21001 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21002 ac_status=$?
21003 grep -v '^ *+' conftest.er1 >conftest.err
21004 rm -f conftest.er1
21005 cat conftest.err >&5
21006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007 (exit $ac_status); } >/dev/null; then
21008 if test -s conftest.err; then
21009 ac_cpp_err=$ac_cxx_preproc_warn_flag
21010 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
21011 else
21012 ac_cpp_err=
21014 else
21015 ac_cpp_err=yes
21017 if test -z "$ac_cpp_err"; then
21018 ac_header_preproc=yes
21019 else
21020 echo "$as_me: failed program was:" >&5
21021 sed 's/^/| /' conftest.$ac_ext >&5
21023 ac_header_preproc=no
21025 rm -f conftest.err conftest.$ac_ext
21026 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21027 echo "${ECHO_T}$ac_header_preproc" >&6
21029 # So? What about this header?
21030 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21031 yes:no: )
21032 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21033 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21035 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21036 ac_header_preproc=yes
21038 no:yes:* )
21039 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21040 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21041 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21042 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21043 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21044 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21045 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21046 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21048 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21049 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21050 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21052 cat <<\_ASBOX
21053 ## -------------------------------------------- ##
21054 ## Report this to http://www.mangosproject.org/ ##
21055 ## -------------------------------------------- ##
21056 _ASBOX
21058 sed "s/^/$as_me: WARNING: /" >&2
21060 esac
21061 echo "$as_me:$LINENO: checking for $ac_header" >&5
21062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21063 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21064 echo $ECHO_N "(cached) $ECHO_C" >&6
21065 else
21066 eval "$as_ac_Header=\$ac_header_preproc"
21068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21069 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21072 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21073 cat >>confdefs.h <<_ACEOF
21074 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21075 _ACEOF
21079 done
21081 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
21082 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
21083 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
21084 echo $ECHO_N "(cached) $ECHO_C" >&6
21085 else
21086 if test "$cross_compiling" = yes; then
21087 ac_cv_func_malloc_0_nonnull=no
21088 else
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 #if STDC_HEADERS || HAVE_STDLIB_H
21096 # include <stdlib.h>
21097 #else
21098 char *malloc ();
21099 #endif
21102 main ()
21104 exit (malloc (0) ? 0 : 1);
21106 return 0;
21108 _ACEOF
21109 rm -f conftest$ac_exeext
21110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21111 (eval $ac_link) 2>&5
21112 ac_status=$?
21113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21116 (eval $ac_try) 2>&5
21117 ac_status=$?
21118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21119 (exit $ac_status); }; }; then
21120 ac_cv_func_malloc_0_nonnull=yes
21121 else
21122 echo "$as_me: program exited with status $ac_status" >&5
21123 echo "$as_me: failed program was:" >&5
21124 sed 's/^/| /' conftest.$ac_ext >&5
21126 ( exit $ac_status )
21127 ac_cv_func_malloc_0_nonnull=no
21129 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21132 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
21133 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
21134 if test $ac_cv_func_malloc_0_nonnull = yes; then
21136 cat >>confdefs.h <<\_ACEOF
21137 #define HAVE_MALLOC 1
21138 _ACEOF
21140 else
21141 cat >>confdefs.h <<\_ACEOF
21142 #define HAVE_MALLOC 0
21143 _ACEOF
21145 case $LIBOBJS in
21146 "malloc.$ac_objext" | \
21147 *" malloc.$ac_objext" | \
21148 "malloc.$ac_objext "* | \
21149 *" malloc.$ac_objext "* ) ;;
21150 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
21151 esac
21154 cat >>confdefs.h <<\_ACEOF
21155 #define malloc rpl_malloc
21156 _ACEOF
21163 for ac_header in stdlib.h
21165 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21166 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21167 echo "$as_me:$LINENO: checking for $ac_header" >&5
21168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21170 echo $ECHO_N "(cached) $ECHO_C" >&6
21172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21173 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21174 else
21175 # Is the header compilable?
21176 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21177 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21178 cat >conftest.$ac_ext <<_ACEOF
21179 /* confdefs.h. */
21180 _ACEOF
21181 cat confdefs.h >>conftest.$ac_ext
21182 cat >>conftest.$ac_ext <<_ACEOF
21183 /* end confdefs.h. */
21184 $ac_includes_default
21185 #include <$ac_header>
21186 _ACEOF
21187 rm -f conftest.$ac_objext
21188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21189 (eval $ac_compile) 2>conftest.er1
21190 ac_status=$?
21191 grep -v '^ *+' conftest.er1 >conftest.err
21192 rm -f conftest.er1
21193 cat conftest.err >&5
21194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21195 (exit $ac_status); } &&
21196 { ac_try='test -z "$ac_cxx_werror_flag"
21197 || test ! -s conftest.err'
21198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21199 (eval $ac_try) 2>&5
21200 ac_status=$?
21201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202 (exit $ac_status); }; } &&
21203 { ac_try='test -s conftest.$ac_objext'
21204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21205 (eval $ac_try) 2>&5
21206 ac_status=$?
21207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21208 (exit $ac_status); }; }; then
21209 ac_header_compiler=yes
21210 else
21211 echo "$as_me: failed program was:" >&5
21212 sed 's/^/| /' conftest.$ac_ext >&5
21214 ac_header_compiler=no
21216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21217 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21218 echo "${ECHO_T}$ac_header_compiler" >&6
21220 # Is the header present?
21221 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21222 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21223 cat >conftest.$ac_ext <<_ACEOF
21224 /* confdefs.h. */
21225 _ACEOF
21226 cat confdefs.h >>conftest.$ac_ext
21227 cat >>conftest.$ac_ext <<_ACEOF
21228 /* end confdefs.h. */
21229 #include <$ac_header>
21230 _ACEOF
21231 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21232 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21233 ac_status=$?
21234 grep -v '^ *+' conftest.er1 >conftest.err
21235 rm -f conftest.er1
21236 cat conftest.err >&5
21237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21238 (exit $ac_status); } >/dev/null; then
21239 if test -s conftest.err; then
21240 ac_cpp_err=$ac_cxx_preproc_warn_flag
21241 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
21242 else
21243 ac_cpp_err=
21245 else
21246 ac_cpp_err=yes
21248 if test -z "$ac_cpp_err"; then
21249 ac_header_preproc=yes
21250 else
21251 echo "$as_me: failed program was:" >&5
21252 sed 's/^/| /' conftest.$ac_ext >&5
21254 ac_header_preproc=no
21256 rm -f conftest.err conftest.$ac_ext
21257 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21258 echo "${ECHO_T}$ac_header_preproc" >&6
21260 # So? What about this header?
21261 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21262 yes:no: )
21263 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21264 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21266 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21267 ac_header_preproc=yes
21269 no:yes:* )
21270 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21271 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21272 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21273 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21274 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21275 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21276 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21277 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21279 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21280 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21281 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21283 cat <<\_ASBOX
21284 ## -------------------------------------------- ##
21285 ## Report this to http://www.mangosproject.org/ ##
21286 ## -------------------------------------------- ##
21287 _ASBOX
21289 sed "s/^/$as_me: WARNING: /" >&2
21291 esac
21292 echo "$as_me:$LINENO: checking for $ac_header" >&5
21293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21295 echo $ECHO_N "(cached) $ECHO_C" >&6
21296 else
21297 eval "$as_ac_Header=\$ac_header_preproc"
21299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21300 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21303 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21304 cat >>confdefs.h <<_ACEOF
21305 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21306 _ACEOF
21310 done
21312 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
21313 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
21314 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
21315 echo $ECHO_N "(cached) $ECHO_C" >&6
21316 else
21317 if test "$cross_compiling" = yes; then
21318 ac_cv_func_realloc_0_nonnull=no
21319 else
21320 cat >conftest.$ac_ext <<_ACEOF
21321 /* confdefs.h. */
21322 _ACEOF
21323 cat confdefs.h >>conftest.$ac_ext
21324 cat >>conftest.$ac_ext <<_ACEOF
21325 /* end confdefs.h. */
21326 #if STDC_HEADERS || HAVE_STDLIB_H
21327 # include <stdlib.h>
21328 #else
21329 char *realloc ();
21330 #endif
21333 main ()
21335 exit (realloc (0, 0) ? 0 : 1);
21337 return 0;
21339 _ACEOF
21340 rm -f conftest$ac_exeext
21341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21342 (eval $ac_link) 2>&5
21343 ac_status=$?
21344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21347 (eval $ac_try) 2>&5
21348 ac_status=$?
21349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21350 (exit $ac_status); }; }; then
21351 ac_cv_func_realloc_0_nonnull=yes
21352 else
21353 echo "$as_me: program exited with status $ac_status" >&5
21354 echo "$as_me: failed program was:" >&5
21355 sed 's/^/| /' conftest.$ac_ext >&5
21357 ( exit $ac_status )
21358 ac_cv_func_realloc_0_nonnull=no
21360 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21363 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
21364 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
21365 if test $ac_cv_func_realloc_0_nonnull = yes; then
21367 cat >>confdefs.h <<\_ACEOF
21368 #define HAVE_REALLOC 1
21369 _ACEOF
21371 else
21372 cat >>confdefs.h <<\_ACEOF
21373 #define HAVE_REALLOC 0
21374 _ACEOF
21376 case $LIBOBJS in
21377 "realloc.$ac_objext" | \
21378 *" realloc.$ac_objext" | \
21379 "realloc.$ac_objext "* | \
21380 *" realloc.$ac_objext "* ) ;;
21381 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
21382 esac
21385 cat >>confdefs.h <<\_ACEOF
21386 #define realloc rpl_realloc
21387 _ACEOF
21395 for ac_header in sys/select.h sys/socket.h
21397 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21399 echo "$as_me:$LINENO: checking for $ac_header" >&5
21400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21402 echo $ECHO_N "(cached) $ECHO_C" >&6
21404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21405 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21406 else
21407 # Is the header compilable?
21408 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21409 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21410 cat >conftest.$ac_ext <<_ACEOF
21411 /* confdefs.h. */
21412 _ACEOF
21413 cat confdefs.h >>conftest.$ac_ext
21414 cat >>conftest.$ac_ext <<_ACEOF
21415 /* end confdefs.h. */
21416 $ac_includes_default
21417 #include <$ac_header>
21418 _ACEOF
21419 rm -f conftest.$ac_objext
21420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21421 (eval $ac_compile) 2>conftest.er1
21422 ac_status=$?
21423 grep -v '^ *+' conftest.er1 >conftest.err
21424 rm -f conftest.er1
21425 cat conftest.err >&5
21426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21427 (exit $ac_status); } &&
21428 { ac_try='test -z "$ac_cxx_werror_flag"
21429 || test ! -s conftest.err'
21430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21431 (eval $ac_try) 2>&5
21432 ac_status=$?
21433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21434 (exit $ac_status); }; } &&
21435 { ac_try='test -s conftest.$ac_objext'
21436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21437 (eval $ac_try) 2>&5
21438 ac_status=$?
21439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21440 (exit $ac_status); }; }; then
21441 ac_header_compiler=yes
21442 else
21443 echo "$as_me: failed program was:" >&5
21444 sed 's/^/| /' conftest.$ac_ext >&5
21446 ac_header_compiler=no
21448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21449 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21450 echo "${ECHO_T}$ac_header_compiler" >&6
21452 # Is the header present?
21453 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21454 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21455 cat >conftest.$ac_ext <<_ACEOF
21456 /* confdefs.h. */
21457 _ACEOF
21458 cat confdefs.h >>conftest.$ac_ext
21459 cat >>conftest.$ac_ext <<_ACEOF
21460 /* end confdefs.h. */
21461 #include <$ac_header>
21462 _ACEOF
21463 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21464 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21465 ac_status=$?
21466 grep -v '^ *+' conftest.er1 >conftest.err
21467 rm -f conftest.er1
21468 cat conftest.err >&5
21469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21470 (exit $ac_status); } >/dev/null; then
21471 if test -s conftest.err; then
21472 ac_cpp_err=$ac_cxx_preproc_warn_flag
21473 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
21474 else
21475 ac_cpp_err=
21477 else
21478 ac_cpp_err=yes
21480 if test -z "$ac_cpp_err"; then
21481 ac_header_preproc=yes
21482 else
21483 echo "$as_me: failed program was:" >&5
21484 sed 's/^/| /' conftest.$ac_ext >&5
21486 ac_header_preproc=no
21488 rm -f conftest.err conftest.$ac_ext
21489 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21490 echo "${ECHO_T}$ac_header_preproc" >&6
21492 # So? What about this header?
21493 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21494 yes:no: )
21495 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21496 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21498 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21499 ac_header_preproc=yes
21501 no:yes:* )
21502 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21503 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21504 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21505 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21506 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21507 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21508 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21509 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21511 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21512 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21513 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21515 cat <<\_ASBOX
21516 ## -------------------------------------------- ##
21517 ## Report this to http://www.mangosproject.org/ ##
21518 ## -------------------------------------------- ##
21519 _ASBOX
21521 sed "s/^/$as_me: WARNING: /" >&2
21523 esac
21524 echo "$as_me:$LINENO: checking for $ac_header" >&5
21525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21527 echo $ECHO_N "(cached) $ECHO_C" >&6
21528 else
21529 eval "$as_ac_Header=\$ac_header_preproc"
21531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21532 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21535 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21536 cat >>confdefs.h <<_ACEOF
21537 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21538 _ACEOF
21542 done
21544 echo "$as_me:$LINENO: checking types of arguments for select" >&5
21545 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
21546 if test "${ac_cv_func_select_args+set}" = set; then
21547 echo $ECHO_N "(cached) $ECHO_C" >&6
21548 else
21549 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
21550 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
21551 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
21552 cat >conftest.$ac_ext <<_ACEOF
21553 /* confdefs.h. */
21554 _ACEOF
21555 cat confdefs.h >>conftest.$ac_ext
21556 cat >>conftest.$ac_ext <<_ACEOF
21557 /* end confdefs.h. */
21558 $ac_includes_default
21559 #if HAVE_SYS_SELECT_H
21560 # include <sys/select.h>
21561 #endif
21562 #if HAVE_SYS_SOCKET_H
21563 # include <sys/socket.h>
21564 #endif
21567 main ()
21569 extern int select ($ac_arg1,
21570 $ac_arg234, $ac_arg234, $ac_arg234,
21571 $ac_arg5);
21573 return 0;
21575 _ACEOF
21576 rm -f conftest.$ac_objext
21577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21578 (eval $ac_compile) 2>conftest.er1
21579 ac_status=$?
21580 grep -v '^ *+' conftest.er1 >conftest.err
21581 rm -f conftest.er1
21582 cat conftest.err >&5
21583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21584 (exit $ac_status); } &&
21585 { ac_try='test -z "$ac_cxx_werror_flag"
21586 || test ! -s conftest.err'
21587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21588 (eval $ac_try) 2>&5
21589 ac_status=$?
21590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591 (exit $ac_status); }; } &&
21592 { ac_try='test -s conftest.$ac_objext'
21593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21594 (eval $ac_try) 2>&5
21595 ac_status=$?
21596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21597 (exit $ac_status); }; }; then
21598 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
21599 else
21600 echo "$as_me: failed program was:" >&5
21601 sed 's/^/| /' conftest.$ac_ext >&5
21604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21605 done
21606 done
21607 done
21608 # Provide a safe default value.
21609 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
21612 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
21613 echo "${ECHO_T}$ac_cv_func_select_args" >&6
21614 ac_save_IFS=$IFS; IFS=','
21615 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
21616 IFS=$ac_save_IFS
21617 shift
21619 cat >>confdefs.h <<_ACEOF
21620 #define SELECT_TYPE_ARG1 $1
21621 _ACEOF
21624 cat >>confdefs.h <<_ACEOF
21625 #define SELECT_TYPE_ARG234 ($2)
21626 _ACEOF
21629 cat >>confdefs.h <<_ACEOF
21630 #define SELECT_TYPE_ARG5 ($3)
21631 _ACEOF
21633 rm -f conftest*
21636 for ac_func in strftime
21638 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21639 echo "$as_me:$LINENO: checking for $ac_func" >&5
21640 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21641 if eval "test \"\${$as_ac_var+set}\" = set"; then
21642 echo $ECHO_N "(cached) $ECHO_C" >&6
21643 else
21644 cat >conftest.$ac_ext <<_ACEOF
21645 /* confdefs.h. */
21646 _ACEOF
21647 cat confdefs.h >>conftest.$ac_ext
21648 cat >>conftest.$ac_ext <<_ACEOF
21649 /* end confdefs.h. */
21650 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21651 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21652 #define $ac_func innocuous_$ac_func
21654 /* System header to define __stub macros and hopefully few prototypes,
21655 which can conflict with char $ac_func (); below.
21656 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21657 <limits.h> exists even on freestanding compilers. */
21659 #ifdef __STDC__
21660 # include <limits.h>
21661 #else
21662 # include <assert.h>
21663 #endif
21665 #undef $ac_func
21667 /* Override any gcc2 internal prototype to avoid an error. */
21668 #ifdef __cplusplus
21669 extern "C"
21671 #endif
21672 /* We use char because int might match the return type of a gcc2
21673 builtin and then its argument prototype would still apply. */
21674 char $ac_func ();
21675 /* The GNU C library defines this for functions which it implements
21676 to always fail with ENOSYS. Some functions are actually named
21677 something starting with __ and the normal name is an alias. */
21678 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21679 choke me
21680 #else
21681 char (*f) () = $ac_func;
21682 #endif
21683 #ifdef __cplusplus
21685 #endif
21688 main ()
21690 return f != $ac_func;
21692 return 0;
21694 _ACEOF
21695 rm -f conftest.$ac_objext conftest$ac_exeext
21696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21697 (eval $ac_link) 2>conftest.er1
21698 ac_status=$?
21699 grep -v '^ *+' conftest.er1 >conftest.err
21700 rm -f conftest.er1
21701 cat conftest.err >&5
21702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21703 (exit $ac_status); } &&
21704 { ac_try='test -z "$ac_cxx_werror_flag"
21705 || test ! -s conftest.err'
21706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21707 (eval $ac_try) 2>&5
21708 ac_status=$?
21709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21710 (exit $ac_status); }; } &&
21711 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
21717 eval "$as_ac_var=yes"
21718 else
21719 echo "$as_me: failed program was:" >&5
21720 sed 's/^/| /' conftest.$ac_ext >&5
21722 eval "$as_ac_var=no"
21724 rm -f conftest.err conftest.$ac_objext \
21725 conftest$ac_exeext conftest.$ac_ext
21727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21728 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21729 if test `eval echo '${'$as_ac_var'}'` = yes; then
21730 cat >>confdefs.h <<_ACEOF
21731 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21732 _ACEOF
21734 else
21735 # strftime is in -lintl on SCO UNIX.
21736 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
21737 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
21738 if test "${ac_cv_lib_intl_strftime+set}" = set; then
21739 echo $ECHO_N "(cached) $ECHO_C" >&6
21740 else
21741 ac_check_lib_save_LIBS=$LIBS
21742 LIBS="-lintl $LIBS"
21743 cat >conftest.$ac_ext <<_ACEOF
21744 /* confdefs.h. */
21745 _ACEOF
21746 cat confdefs.h >>conftest.$ac_ext
21747 cat >>conftest.$ac_ext <<_ACEOF
21748 /* end confdefs.h. */
21750 /* Override any gcc2 internal prototype to avoid an error. */
21751 #ifdef __cplusplus
21752 extern "C"
21753 #endif
21754 /* We use char because int might match the return type of a gcc2
21755 builtin and then its argument prototype would still apply. */
21756 char strftime ();
21758 main ()
21760 strftime ();
21762 return 0;
21764 _ACEOF
21765 rm -f conftest.$ac_objext conftest$ac_exeext
21766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21767 (eval $ac_link) 2>conftest.er1
21768 ac_status=$?
21769 grep -v '^ *+' conftest.er1 >conftest.err
21770 rm -f conftest.er1
21771 cat conftest.err >&5
21772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21773 (exit $ac_status); } &&
21774 { ac_try='test -z "$ac_cxx_werror_flag"
21775 || test ! -s conftest.err'
21776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21777 (eval $ac_try) 2>&5
21778 ac_status=$?
21779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21780 (exit $ac_status); }; } &&
21781 { ac_try='test -s conftest$ac_exeext'
21782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21783 (eval $ac_try) 2>&5
21784 ac_status=$?
21785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21786 (exit $ac_status); }; }; then
21787 ac_cv_lib_intl_strftime=yes
21788 else
21789 echo "$as_me: failed program was:" >&5
21790 sed 's/^/| /' conftest.$ac_ext >&5
21792 ac_cv_lib_intl_strftime=no
21794 rm -f conftest.err conftest.$ac_objext \
21795 conftest$ac_exeext conftest.$ac_ext
21796 LIBS=$ac_check_lib_save_LIBS
21798 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
21799 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
21800 if test $ac_cv_lib_intl_strftime = yes; then
21801 cat >>confdefs.h <<\_ACEOF
21802 #define HAVE_STRFTIME 1
21803 _ACEOF
21805 LIBS="-lintl $LIBS"
21809 done
21811 echo "$as_me:$LINENO: checking for working strnlen" >&5
21812 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6
21813 if test "${ac_cv_func_strnlen_working+set}" = set; then
21814 echo $ECHO_N "(cached) $ECHO_C" >&6
21815 else
21816 if test "$cross_compiling" = yes; then
21817 ac_cv_func_strnlen_working=no
21818 else
21819 cat >conftest.$ac_ext <<_ACEOF
21820 /* confdefs.h. */
21821 _ACEOF
21822 cat confdefs.h >>conftest.$ac_ext
21823 cat >>conftest.$ac_ext <<_ACEOF
21824 /* end confdefs.h. */
21825 $ac_includes_default
21827 main ()
21830 #define S "foobar"
21831 #define S_LEN (sizeof S - 1)
21833 /* At least one implementation is buggy: that of AIX 4.3 would
21834 give strnlen (S, 1) == 3. */
21836 int i;
21837 for (i = 0; i < S_LEN + 1; ++i)
21839 int expected = i <= S_LEN ? i : S_LEN;
21840 if (strnlen (S, i) != expected)
21841 exit (1);
21843 exit (0);
21846 return 0;
21848 _ACEOF
21849 rm -f conftest$ac_exeext
21850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21851 (eval $ac_link) 2>&5
21852 ac_status=$?
21853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21854 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21856 (eval $ac_try) 2>&5
21857 ac_status=$?
21858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21859 (exit $ac_status); }; }; then
21860 ac_cv_func_strnlen_working=yes
21861 else
21862 echo "$as_me: program exited with status $ac_status" >&5
21863 echo "$as_me: failed program was:" >&5
21864 sed 's/^/| /' conftest.$ac_ext >&5
21866 ( exit $ac_status )
21867 ac_cv_func_strnlen_working=no
21869 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21872 echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
21873 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6
21874 test $ac_cv_func_strnlen_working = no && case $LIBOBJS in
21875 "strnlen.$ac_objext" | \
21876 *" strnlen.$ac_objext" | \
21877 "strnlen.$ac_objext "* | \
21878 *" strnlen.$ac_objext "* ) ;;
21879 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext" ;;
21880 esac
21884 for ac_func in vprintf
21886 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21887 echo "$as_me:$LINENO: checking for $ac_func" >&5
21888 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21889 if eval "test \"\${$as_ac_var+set}\" = set"; then
21890 echo $ECHO_N "(cached) $ECHO_C" >&6
21891 else
21892 cat >conftest.$ac_ext <<_ACEOF
21893 /* confdefs.h. */
21894 _ACEOF
21895 cat confdefs.h >>conftest.$ac_ext
21896 cat >>conftest.$ac_ext <<_ACEOF
21897 /* end confdefs.h. */
21898 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21899 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21900 #define $ac_func innocuous_$ac_func
21902 /* System header to define __stub macros and hopefully few prototypes,
21903 which can conflict with char $ac_func (); below.
21904 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21905 <limits.h> exists even on freestanding compilers. */
21907 #ifdef __STDC__
21908 # include <limits.h>
21909 #else
21910 # include <assert.h>
21911 #endif
21913 #undef $ac_func
21915 /* Override any gcc2 internal prototype to avoid an error. */
21916 #ifdef __cplusplus
21917 extern "C"
21919 #endif
21920 /* We use char because int might match the return type of a gcc2
21921 builtin and then its argument prototype would still apply. */
21922 char $ac_func ();
21923 /* The GNU C library defines this for functions which it implements
21924 to always fail with ENOSYS. Some functions are actually named
21925 something starting with __ and the normal name is an alias. */
21926 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21927 choke me
21928 #else
21929 char (*f) () = $ac_func;
21930 #endif
21931 #ifdef __cplusplus
21933 #endif
21936 main ()
21938 return f != $ac_func;
21940 return 0;
21942 _ACEOF
21943 rm -f conftest.$ac_objext conftest$ac_exeext
21944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21945 (eval $ac_link) 2>conftest.er1
21946 ac_status=$?
21947 grep -v '^ *+' conftest.er1 >conftest.err
21948 rm -f conftest.er1
21949 cat conftest.err >&5
21950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21951 (exit $ac_status); } &&
21952 { ac_try='test -z "$ac_cxx_werror_flag"
21953 || test ! -s conftest.err'
21954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21955 (eval $ac_try) 2>&5
21956 ac_status=$?
21957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21958 (exit $ac_status); }; } &&
21959 { ac_try='test -s conftest$ac_exeext'
21960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21961 (eval $ac_try) 2>&5
21962 ac_status=$?
21963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21964 (exit $ac_status); }; }; then
21965 eval "$as_ac_var=yes"
21966 else
21967 echo "$as_me: failed program was:" >&5
21968 sed 's/^/| /' conftest.$ac_ext >&5
21970 eval "$as_ac_var=no"
21972 rm -f conftest.err conftest.$ac_objext \
21973 conftest$ac_exeext conftest.$ac_ext
21975 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21976 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21977 if test `eval echo '${'$as_ac_var'}'` = yes; then
21978 cat >>confdefs.h <<_ACEOF
21979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21980 _ACEOF
21982 echo "$as_me:$LINENO: checking for _doprnt" >&5
21983 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
21984 if test "${ac_cv_func__doprnt+set}" = set; then
21985 echo $ECHO_N "(cached) $ECHO_C" >&6
21986 else
21987 cat >conftest.$ac_ext <<_ACEOF
21988 /* confdefs.h. */
21989 _ACEOF
21990 cat confdefs.h >>conftest.$ac_ext
21991 cat >>conftest.$ac_ext <<_ACEOF
21992 /* end confdefs.h. */
21993 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
21994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21995 #define _doprnt innocuous__doprnt
21997 /* System header to define __stub macros and hopefully few prototypes,
21998 which can conflict with char _doprnt (); below.
21999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22000 <limits.h> exists even on freestanding compilers. */
22002 #ifdef __STDC__
22003 # include <limits.h>
22004 #else
22005 # include <assert.h>
22006 #endif
22008 #undef _doprnt
22010 /* Override any gcc2 internal prototype to avoid an error. */
22011 #ifdef __cplusplus
22012 extern "C"
22014 #endif
22015 /* We use char because int might match the return type of a gcc2
22016 builtin and then its argument prototype would still apply. */
22017 char _doprnt ();
22018 /* The GNU C library defines this for functions which it implements
22019 to always fail with ENOSYS. Some functions are actually named
22020 something starting with __ and the normal name is an alias. */
22021 #if defined (__stub__doprnt) || defined (__stub____doprnt)
22022 choke me
22023 #else
22024 char (*f) () = _doprnt;
22025 #endif
22026 #ifdef __cplusplus
22028 #endif
22031 main ()
22033 return f != _doprnt;
22035 return 0;
22037 _ACEOF
22038 rm -f conftest.$ac_objext conftest$ac_exeext
22039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22040 (eval $ac_link) 2>conftest.er1
22041 ac_status=$?
22042 grep -v '^ *+' conftest.er1 >conftest.err
22043 rm -f conftest.er1
22044 cat conftest.err >&5
22045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22046 (exit $ac_status); } &&
22047 { ac_try='test -z "$ac_cxx_werror_flag"
22048 || test ! -s conftest.err'
22049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22050 (eval $ac_try) 2>&5
22051 ac_status=$?
22052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22053 (exit $ac_status); }; } &&
22054 { ac_try='test -s conftest$ac_exeext'
22055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22056 (eval $ac_try) 2>&5
22057 ac_status=$?
22058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22059 (exit $ac_status); }; }; then
22060 ac_cv_func__doprnt=yes
22061 else
22062 echo "$as_me: failed program was:" >&5
22063 sed 's/^/| /' conftest.$ac_ext >&5
22065 ac_cv_func__doprnt=no
22067 rm -f conftest.err conftest.$ac_objext \
22068 conftest$ac_exeext conftest.$ac_ext
22070 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
22071 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
22072 if test $ac_cv_func__doprnt = yes; then
22074 cat >>confdefs.h <<\_ACEOF
22075 #define HAVE_DOPRNT 1
22076 _ACEOF
22081 done
22105 for ac_func in \
22106 ftime strcspn strtoul atexit bzero floor gethostbyname \
22107 gettimeofday localtime_r memset rint select socket \
22108 sqrt stpcpy strchr strpbrk strrchr strstr strtol strtoul \
22111 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22112 echo "$as_me:$LINENO: checking for $ac_func" >&5
22113 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22114 if eval "test \"\${$as_ac_var+set}\" = set"; then
22115 echo $ECHO_N "(cached) $ECHO_C" >&6
22116 else
22117 cat >conftest.$ac_ext <<_ACEOF
22118 /* confdefs.h. */
22119 _ACEOF
22120 cat confdefs.h >>conftest.$ac_ext
22121 cat >>conftest.$ac_ext <<_ACEOF
22122 /* end confdefs.h. */
22123 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22124 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22125 #define $ac_func innocuous_$ac_func
22127 /* System header to define __stub macros and hopefully few prototypes,
22128 which can conflict with char $ac_func (); below.
22129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22130 <limits.h> exists even on freestanding compilers. */
22132 #ifdef __STDC__
22133 # include <limits.h>
22134 #else
22135 # include <assert.h>
22136 #endif
22138 #undef $ac_func
22140 /* Override any gcc2 internal prototype to avoid an error. */
22141 #ifdef __cplusplus
22142 extern "C"
22144 #endif
22145 /* We use char because int might match the return type of a gcc2
22146 builtin and then its argument prototype would still apply. */
22147 char $ac_func ();
22148 /* The GNU C library defines this for functions which it implements
22149 to always fail with ENOSYS. Some functions are actually named
22150 something starting with __ and the normal name is an alias. */
22151 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22152 choke me
22153 #else
22154 char (*f) () = $ac_func;
22155 #endif
22156 #ifdef __cplusplus
22158 #endif
22161 main ()
22163 return f != $ac_func;
22165 return 0;
22167 _ACEOF
22168 rm -f conftest.$ac_objext conftest$ac_exeext
22169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22170 (eval $ac_link) 2>conftest.er1
22171 ac_status=$?
22172 grep -v '^ *+' conftest.er1 >conftest.err
22173 rm -f conftest.er1
22174 cat conftest.err >&5
22175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22176 (exit $ac_status); } &&
22177 { ac_try='test -z "$ac_cxx_werror_flag"
22178 || test ! -s conftest.err'
22179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22180 (eval $ac_try) 2>&5
22181 ac_status=$?
22182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22183 (exit $ac_status); }; } &&
22184 { ac_try='test -s conftest$ac_exeext'
22185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22186 (eval $ac_try) 2>&5
22187 ac_status=$?
22188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22189 (exit $ac_status); }; }; then
22190 eval "$as_ac_var=yes"
22191 else
22192 echo "$as_me: failed program was:" >&5
22193 sed 's/^/| /' conftest.$ac_ext >&5
22195 eval "$as_ac_var=no"
22197 rm -f conftest.err conftest.$ac_objext \
22198 conftest$ac_exeext conftest.$ac_ext
22200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22201 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22202 if test `eval echo '${'$as_ac_var'}'` = yes; then
22203 cat >>confdefs.h <<_ACEOF
22204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22205 _ACEOF
22208 done
22211 withval=auto
22213 # Check whether --with-python or --without-python was given.
22214 if test "${with_python+set}" = set; then
22215 withval="$with_python"
22219 WITH_PYTHON_VERSION=$withval
22220 if test $withval = auto ; then
22222 echo "$as_me:$LINENO: checking for python 2.4" >&5
22223 echo $ECHO_N "checking for python 2.4... $ECHO_C" >&6
22224 if test "$cross_compiling" = yes; then
22225 withval=yes
22226 else
22227 cat >conftest.$ac_ext <<_ACEOF
22228 /* confdefs.h. */
22229 _ACEOF
22230 cat confdefs.h >>conftest.$ac_ext
22231 cat >>conftest.$ac_ext <<_ACEOF
22232 /* end confdefs.h. */
22234 #include <python2.4/Python.h>
22235 main() {
22236 exit(strncmp("2.4", PY_VERSION, 3));
22238 _ACEOF
22239 rm -f conftest$ac_exeext
22240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22241 (eval $ac_link) 2>&5
22242 ac_status=$?
22243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22244 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22246 (eval $ac_try) 2>&5
22247 ac_status=$?
22248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22249 (exit $ac_status); }; }; then
22250 withval=yes
22251 else
22252 echo "$as_me: program exited with status $ac_status" >&5
22253 echo "$as_me: failed program was:" >&5
22254 sed 's/^/| /' conftest.$ac_ext >&5
22256 ( exit $ac_status )
22257 withval=no
22259 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22261 echo "$as_me:$LINENO: result: $withval" >&5
22262 echo "${ECHO_T}$withval" >&6
22263 if test $withval = yes ; then
22264 WITH_PYTHON_VERSION="2.4"
22265 else
22267 echo "$as_me:$LINENO: checking for python 2.3" >&5
22268 echo $ECHO_N "checking for python 2.3... $ECHO_C" >&6
22269 if test "$cross_compiling" = yes; then
22270 withval=yes
22271 else
22272 cat >conftest.$ac_ext <<_ACEOF
22273 /* confdefs.h. */
22274 _ACEOF
22275 cat confdefs.h >>conftest.$ac_ext
22276 cat >>conftest.$ac_ext <<_ACEOF
22277 /* end confdefs.h. */
22279 #include <python2.3/Python.h>
22280 main() {
22281 exit(strncmp("2.3", PY_VERSION, 3));
22283 _ACEOF
22284 rm -f conftest$ac_exeext
22285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22286 (eval $ac_link) 2>&5
22287 ac_status=$?
22288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22289 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22291 (eval $ac_try) 2>&5
22292 ac_status=$?
22293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22294 (exit $ac_status); }; }; then
22295 withval=yes
22296 else
22297 echo "$as_me: program exited with status $ac_status" >&5
22298 echo "$as_me: failed program was:" >&5
22299 sed 's/^/| /' conftest.$ac_ext >&5
22301 ( exit $ac_status )
22302 withval=no
22304 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22306 echo "$as_me:$LINENO: result: $withval" >&5
22307 echo "${ECHO_T}$withval" >&6
22308 if test $withval = yes ; then
22309 WITH_PYTHON_VERSION="2.3"
22310 else
22312 echo "$as_me:$LINENO: checking for python 2.2" >&5
22313 echo $ECHO_N "checking for python 2.2... $ECHO_C" >&6
22314 if test "$cross_compiling" = yes; then
22315 withval=yes
22316 else
22317 cat >conftest.$ac_ext <<_ACEOF
22318 /* confdefs.h. */
22319 _ACEOF
22320 cat confdefs.h >>conftest.$ac_ext
22321 cat >>conftest.$ac_ext <<_ACEOF
22322 /* end confdefs.h. */
22324 #include <python2.2/Python.h>
22325 main() {
22326 exit(strncmp("2.2", PY_VERSION, 3));
22328 _ACEOF
22329 rm -f conftest$ac_exeext
22330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22331 (eval $ac_link) 2>&5
22332 ac_status=$?
22333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22334 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22336 (eval $ac_try) 2>&5
22337 ac_status=$?
22338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22339 (exit $ac_status); }; }; then
22340 withval=yes
22341 else
22342 echo "$as_me: program exited with status $ac_status" >&5
22343 echo "$as_me: failed program was:" >&5
22344 sed 's/^/| /' conftest.$ac_ext >&5
22346 ( exit $ac_status )
22347 withval=no
22349 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22351 echo "$as_me:$LINENO: result: $withval" >&5
22352 echo "${ECHO_T}$withval" >&6
22353 if test $withval = yes ; then
22354 WITH_PYTHON_VERSION="2.2"
22355 else
22357 echo "$as_me:$LINENO: checking for python 1.5.2" >&5
22358 echo $ECHO_N "checking for python 1.5.2... $ECHO_C" >&6
22359 if test "$cross_compiling" = yes; then
22360 withval=yes
22361 else
22362 cat >conftest.$ac_ext <<_ACEOF
22363 /* confdefs.h. */
22364 _ACEOF
22365 cat confdefs.h >>conftest.$ac_ext
22366 cat >>conftest.$ac_ext <<_ACEOF
22367 /* end confdefs.h. */
22369 #include <python1.5/Python.h>
22370 main() {
22371 exit(strcmp("1.5.2", PY_VERSION));
22373 _ACEOF
22374 rm -f conftest$ac_exeext
22375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22376 (eval $ac_link) 2>&5
22377 ac_status=$?
22378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22379 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22381 (eval $ac_try) 2>&5
22382 ac_status=$?
22383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22384 (exit $ac_status); }; }; then
22385 withval=yes
22386 else
22387 echo "$as_me: program exited with status $ac_status" >&5
22388 echo "$as_me: failed program was:" >&5
22389 sed 's/^/| /' conftest.$ac_ext >&5
22391 ( exit $ac_status )
22392 withval=no
22394 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22396 echo "$as_me:$LINENO: result: $withval" >&5
22397 echo "${ECHO_T}$withval" >&6
22398 if test $withval = yes ; then
22399 WITH_PYTHON_VERSION="1.5"
22406 if test "$WITH_PYTHON_VERSION" != no ; then
22407 WITH_PYTHON_SUBDIR=python
22408 WITH_PYTHON_SUBPACKAGE=1
22409 else
22410 WITH_PYTHON_SUBDIR=
22411 WITH_PYTHON_SUBPACKAGE=0
22418 # Extract the first word of "doxygen", so it can be a program name with args.
22419 set dummy doxygen; ac_word=$2
22420 echo "$as_me:$LINENO: checking for $ac_word" >&5
22421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22422 if test "${ac_cv_path___DOXYGEN+set}" = set; then
22423 echo $ECHO_N "(cached) $ECHO_C" >&6
22424 else
22425 case $__DOXYGEN in
22426 [\\/]* | ?:[\\/]*)
22427 ac_cv_path___DOXYGEN="$__DOXYGEN" # Let the user override the test with a path.
22430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22431 for as_dir in $PATH
22433 IFS=$as_save_IFS
22434 test -z "$as_dir" && as_dir=.
22435 for ac_exec_ext in '' $ac_executable_extensions; do
22436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22437 ac_cv_path___DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
22438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22439 break 2
22441 done
22442 done
22444 test -z "$ac_cv_path___DOXYGEN" && ac_cv_path___DOXYGEN="no"
22446 esac
22448 __DOXYGEN=$ac_cv_path___DOXYGEN
22450 if test -n "$__DOXYGEN"; then
22451 echo "$as_me:$LINENO: result: $__DOXYGEN" >&5
22452 echo "${ECHO_T}$__DOXYGEN" >&6
22453 else
22454 echo "$as_me:$LINENO: result: no" >&5
22455 echo "${ECHO_T}no" >&6
22458 withval=auto
22460 # Check whether --with-apidocs or --without-apidocs was given.
22461 if test "${with_apidocs+set}" = set; then
22462 withval="$with_apidocs"
22466 if test $withval = auto -a $__DOXYGEN != no ; then
22467 withval=yes
22468 elif test $withval = yes -a $__DOXYGEN = no ; then
22469 { { echo "$as_me:$LINENO: error: --> MaNGOS API docs needs doxygen in PATH" >&5
22470 echo "$as_me: error: --> MaNGOS API docs needs doxygen in PATH" >&2;}
22471 { (exit 1); exit 1; }; }
22474 if test $withval = yes; then
22475 WITH_APIDOCS_TARGET=apidocs
22476 WITH_APIDOCS=1
22477 else
22478 WITH_APIDOCS=0
22483 echo "$as_me:$LINENO: checking whether to include debug info in library" >&5
22484 echo $ECHO_N "checking whether to include debug info in library... $ECHO_C" >&6
22485 MANGOSD_DEBUG_INFO=no
22487 # Check whether --with-debug-info or --without-debug-info was given.
22488 if test "${with_debug_info+set}" = set; then
22489 withval="$with_debug_info"
22491 if test "$withval" = "yes" ; then
22492 CFLAGS="-g -DMANGOS_DEBUG $CFLAGS"
22493 CXXFLAGS="-g -DMANGOS_DEBUG $CXXFLAGS"
22494 MANGOSD_DEBUG_INFO=yes
22495 elif test "$withval" != "no" ; then
22496 { { echo "$as_me:$LINENO: error: Please choose yes or no" >&5
22497 echo "$as_me: error: Please choose yes or no" >&2;}
22498 { (exit 1); exit 1; }; }
22502 echo "$as_me:$LINENO: result: $MANGOSD_DEBUG_INFO" >&5
22503 echo "${ECHO_T}$MANGOSD_DEBUG_INFO" >&6
22506 # check for cli console enable
22507 echo "$as_me:$LINENO: checking whether cli console is enabled" >&5
22508 echo $ECHO_N "checking whether cli console is enabled... $ECHO_C" >&6
22509 MANGOSD_ENABLE_CLI=no
22510 # Check whether --enable-cli or --disable-cli was given.
22511 if test "${enable_cli+set}" = set; then
22512 enableval="$enable_cli"
22514 if test "$enableval" = "yes" ; then
22515 CFLAGS="-DENABLE_CLI $CFLAGS"
22516 CXXFLAGS="-DENABLE_CLI $CXXFLAGS"
22517 MANGOSD_ENABLE_CLI=yes
22518 elif test "$withval" != "no" ; then
22519 { { echo "$as_me:$LINENO: error: Please choose yes or no" >&5
22520 echo "$as_me: error: Please choose yes or no" >&2;}
22521 { (exit 1); exit 1; }; }
22525 echo "$as_me:$LINENO: result: $MANGOSD_ENABLE_CLI" >&5
22526 echo "${ECHO_T}$MANGOSD_ENABLE_CLI" >&6
22528 # check for remote console enable
22529 echo "$as_me:$LINENO: checking whether remote console is enabled" >&5
22530 echo $ECHO_N "checking whether remote console is enabled... $ECHO_C" >&6
22531 MANGOSD_ENABLE_RA=no
22532 # Check whether --enable-ra or --disable-ra was given.
22533 if test "${enable_ra+set}" = set; then
22534 enableval="$enable_ra"
22536 if test "$enableval" = "yes" ; then
22537 CFLAGS="-DENABLE_RA $CFLAGS"
22538 CXXFLAGS="-DENABLE_RA $CXXFLAGS"
22539 MANGOSD_ENABLE_RA=yes
22540 elif test "$withval" != "no" ; then
22541 { { echo "$as_me:$LINENO: error: Please choose yes or no" >&5
22542 echo "$as_me: error: Please choose yes or no" >&2;}
22543 { (exit 1); exit 1; }; }
22547 echo "$as_me:$LINENO: result: $MANGOSD_ENABLE_RA" >&5
22548 echo "${ECHO_T}$MANGOSD_ENABLE_RA" >&6
22551 MANGOSD_CONFIG_TEMP="$sysconfdir/mangosd.conf"
22552 MANGOSD_CONFIGDIR_TEMP="$sysconfdir"
22553 if test $sysconfdir = '${prefix}/etc'; then
22554 MANGOSD_CONFIG_TEMP="${prefix}/mangos/mangosd.conf"
22555 MANGOSD_CONFIGDIR_TEMP="${prefix}/mangos"
22556 else
22557 if test $sysconfdir = '/'; then
22558 MANGOSD_CONFIG_TEMP="/mangosd.conf"
22559 MANGOSD_CONFIGDIR_TEMP="/"
22560 else
22561 MANGOSD_CONFIG_TEMP="$sysconfdir/mangosd.conf"
22562 MANGOSD_CONFIGDIR_TEMP="$sysconfdir"
22566 if test $datadir = '${prefix}/share'; then
22567 MANGOSD_DATA_TEMP="${prefix}/share/mangos"
22568 else
22569 if test $datadir = '/'; then
22570 MANGOSD_DATA_TEMP="/mangos"
22571 else
22572 MANGOSD_DATA_TEMP="$datadir/mangos"
22576 eval "MANGOSD_CONFIG=$MANGOSD_CONFIG_TEMP"
22577 eval "MANGOSD_CONFIGDIR=$MANGOSD_CONFIGDIR_TEMP"
22578 eval "MANGOSD_DATA=$MANGOSD_DATA_TEMP"
22580 COMPILER_OPTIONS="$COMPILER_OPTIONS $CXXFLAGS"
22581 LINKER_OPTIONS="$LINKER_OPTIONS $LDFLAGS"
22604 ac_config_files="$ac_config_files ./Makefile doc/Doxyfile doc/Makefile sql/Makefile src/Makefile src/shared/Makefile src/shared/SystemConfig.h src/realmd/Makefile src/framework/Makefile src/game/Makefile src/bindings/Makefile src/bindings/python/Makefile src/bindings/universal/Makefile src/mangosd/Makefile dep/Makefile dep/src/Makefile dep/src/zlib/Makefile dep/src/zthread/Makefile"
22607 cat >confcache <<\_ACEOF
22608 # This file is a shell script that caches the results of configure
22609 # tests run on this system so they can be shared between configure
22610 # scripts and configure runs, see configure's option --config-cache.
22611 # It is not useful on other systems. If it contains results you don't
22612 # want to keep, you may remove or edit it.
22614 # config.status only pays attention to the cache file if you give it
22615 # the --recheck option to rerun configure.
22617 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22618 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22619 # following values.
22621 _ACEOF
22623 # The following way of writing the cache mishandles newlines in values,
22624 # but we know of no workaround that is simple, portable, and efficient.
22625 # So, don't put newlines in cache variables' values.
22626 # Ultrix sh set writes to stderr and can't be redirected directly,
22627 # and sets the high bit in the cache file unless we assign to the vars.
22629 (set) 2>&1 |
22630 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22631 *ac_space=\ *)
22632 # `set' does not quote correctly, so add quotes (double-quote
22633 # substitution turns \\\\ into \\, and sed turns \\ into \).
22634 sed -n \
22635 "s/'/'\\\\''/g;
22636 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22639 # `set' quotes correctly as required by POSIX, so do not add quotes.
22640 sed -n \
22641 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22643 esac;
22645 sed '
22646 t clear
22647 : clear
22648 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22649 t end
22650 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22651 : end' >>confcache
22652 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22653 if test -w $cache_file; then
22654 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22655 cat confcache >$cache_file
22656 else
22657 echo "not updating unwritable cache $cache_file"
22660 rm -f confcache
22662 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22663 # Let make expand exec_prefix.
22664 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22666 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22667 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22668 # trailing colons and then remove the whole line if VPATH becomes empty
22669 # (actually we leave an empty line to preserve line numbers).
22670 if test "x$srcdir" = x.; then
22671 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22672 s/:*\$(srcdir):*/:/;
22673 s/:*\${srcdir}:*/:/;
22674 s/:*@srcdir@:*/:/;
22675 s/^\([^=]*=[ ]*\):*/\1/;
22676 s/:*$//;
22677 s/^[^=]*=[ ]*$//;
22681 DEFS=-DHAVE_CONFIG_H
22683 ac_libobjs=
22684 ac_ltlibobjs=
22685 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22686 # 1. Remove the extension, and $U if already installed.
22687 ac_i=`echo "$ac_i" |
22688 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22689 # 2. Add them.
22690 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22691 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22692 done
22693 LIBOBJS=$ac_libobjs
22695 LTLIBOBJS=$ac_ltlibobjs
22698 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22699 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22700 Usually this means the macro was only invoked conditionally." >&5
22701 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22702 Usually this means the macro was only invoked conditionally." >&2;}
22703 { (exit 1); exit 1; }; }
22705 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22706 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22707 Usually this means the macro was only invoked conditionally." >&5
22708 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22709 Usually this means the macro was only invoked conditionally." >&2;}
22710 { (exit 1); exit 1; }; }
22712 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22713 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22714 Usually this means the macro was only invoked conditionally." >&5
22715 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22716 Usually this means the macro was only invoked conditionally." >&2;}
22717 { (exit 1); exit 1; }; }
22719 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22720 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22721 Usually this means the macro was only invoked conditionally." >&5
22722 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22723 Usually this means the macro was only invoked conditionally." >&2;}
22724 { (exit 1); exit 1; }; }
22727 : ${CONFIG_STATUS=./config.status}
22728 ac_clean_files_save=$ac_clean_files
22729 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22730 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22731 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22732 cat >$CONFIG_STATUS <<_ACEOF
22733 #! $SHELL
22734 # Generated by $as_me.
22735 # Run this file to recreate the current configuration.
22736 # Compiler output produced by configure, useful for debugging
22737 # configure, is in config.log if it exists.
22739 debug=false
22740 ac_cs_recheck=false
22741 ac_cs_silent=false
22742 SHELL=\${CONFIG_SHELL-$SHELL}
22743 _ACEOF
22745 cat >>$CONFIG_STATUS <<\_ACEOF
22746 ## --------------------- ##
22747 ## M4sh Initialization. ##
22748 ## --------------------- ##
22750 # Be Bourne compatible
22751 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22752 emulate sh
22753 NULLCMD=:
22754 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22755 # is contrary to our usage. Disable this feature.
22756 alias -g '${1+"$@"}'='"$@"'
22757 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22758 set -o posix
22760 DUALCASE=1; export DUALCASE # for MKS sh
22762 # Support unset when possible.
22763 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22764 as_unset=unset
22765 else
22766 as_unset=false
22770 # Work around bugs in pre-3.0 UWIN ksh.
22771 $as_unset ENV MAIL MAILPATH
22772 PS1='$ '
22773 PS2='> '
22774 PS4='+ '
22776 # NLS nuisances.
22777 for as_var in \
22778 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22779 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22780 LC_TELEPHONE LC_TIME
22782 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22783 eval $as_var=C; export $as_var
22784 else
22785 $as_unset $as_var
22787 done
22789 # Required to use basename.
22790 if expr a : '\(a\)' >/dev/null 2>&1; then
22791 as_expr=expr
22792 else
22793 as_expr=false
22796 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22797 as_basename=basename
22798 else
22799 as_basename=false
22803 # Name of the executable.
22804 as_me=`$as_basename "$0" ||
22805 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22806 X"$0" : 'X\(//\)$' \| \
22807 X"$0" : 'X\(/\)$' \| \
22808 . : '\(.\)' 2>/dev/null ||
22809 echo X/"$0" |
22810 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22811 /^X\/\(\/\/\)$/{ s//\1/; q; }
22812 /^X\/\(\/\).*/{ s//\1/; q; }
22813 s/.*/./; q'`
22816 # PATH needs CR, and LINENO needs CR and PATH.
22817 # Avoid depending upon Character Ranges.
22818 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22819 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22820 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22821 as_cr_digits='0123456789'
22822 as_cr_alnum=$as_cr_Letters$as_cr_digits
22824 # The user is always right.
22825 if test "${PATH_SEPARATOR+set}" != set; then
22826 echo "#! /bin/sh" >conf$$.sh
22827 echo "exit 0" >>conf$$.sh
22828 chmod +x conf$$.sh
22829 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22830 PATH_SEPARATOR=';'
22831 else
22832 PATH_SEPARATOR=:
22834 rm -f conf$$.sh
22838 as_lineno_1=$LINENO
22839 as_lineno_2=$LINENO
22840 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22841 test "x$as_lineno_1" != "x$as_lineno_2" &&
22842 test "x$as_lineno_3" = "x$as_lineno_2" || {
22843 # Find who we are. Look in the path if we contain no path at all
22844 # relative or not.
22845 case $0 in
22846 *[\\/]* ) as_myself=$0 ;;
22847 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22848 for as_dir in $PATH
22850 IFS=$as_save_IFS
22851 test -z "$as_dir" && as_dir=.
22852 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22853 done
22856 esac
22857 # We did not find ourselves, most probably we were run as `sh COMMAND'
22858 # in which case we are not to be found in the path.
22859 if test "x$as_myself" = x; then
22860 as_myself=$0
22862 if test ! -f "$as_myself"; then
22863 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22864 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22865 { (exit 1); exit 1; }; }
22867 case $CONFIG_SHELL in
22869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22870 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22872 IFS=$as_save_IFS
22873 test -z "$as_dir" && as_dir=.
22874 for as_base in sh bash ksh sh5; do
22875 case $as_dir in
22877 if ("$as_dir/$as_base" -c '
22878 as_lineno_1=$LINENO
22879 as_lineno_2=$LINENO
22880 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22881 test "x$as_lineno_1" != "x$as_lineno_2" &&
22882 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22883 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22884 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22885 CONFIG_SHELL=$as_dir/$as_base
22886 export CONFIG_SHELL
22887 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22888 fi;;
22889 esac
22890 done
22891 done
22893 esac
22895 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22896 # uniformly replaced by the line number. The first 'sed' inserts a
22897 # line-number line before each line; the second 'sed' does the real
22898 # work. The second script uses 'N' to pair each line-number line
22899 # with the numbered line, and appends trailing '-' during
22900 # substitution so that $LINENO is not a special case at line end.
22901 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22902 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22903 sed '=' <$as_myself |
22904 sed '
22906 s,$,-,
22907 : loop
22908 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22909 t loop
22910 s,-$,,
22911 s,^['$as_cr_digits']*\n,,
22912 ' >$as_me.lineno &&
22913 chmod +x $as_me.lineno ||
22914 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22915 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22916 { (exit 1); exit 1; }; }
22918 # Don't try to exec as it changes $[0], causing all sort of problems
22919 # (the dirname of $[0] is not the place where we might find the
22920 # original and so on. Autoconf is especially sensible to this).
22921 . ./$as_me.lineno
22922 # Exit status is that of the last command.
22923 exit
22927 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22928 *c*,-n*) ECHO_N= ECHO_C='
22929 ' ECHO_T=' ' ;;
22930 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22931 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22932 esac
22934 if expr a : '\(a\)' >/dev/null 2>&1; then
22935 as_expr=expr
22936 else
22937 as_expr=false
22940 rm -f conf$$ conf$$.exe conf$$.file
22941 echo >conf$$.file
22942 if ln -s conf$$.file conf$$ 2>/dev/null; then
22943 # We could just check for DJGPP; but this test a) works b) is more generic
22944 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22945 if test -f conf$$.exe; then
22946 # Don't use ln at all; we don't have any links
22947 as_ln_s='cp -p'
22948 else
22949 as_ln_s='ln -s'
22951 elif ln conf$$.file conf$$ 2>/dev/null; then
22952 as_ln_s=ln
22953 else
22954 as_ln_s='cp -p'
22956 rm -f conf$$ conf$$.exe conf$$.file
22958 if mkdir -p . 2>/dev/null; then
22959 as_mkdir_p=:
22960 else
22961 test -d ./-p && rmdir ./-p
22962 as_mkdir_p=false
22965 as_executable_p="test -f"
22967 # Sed expression to map a string onto a valid CPP name.
22968 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22970 # Sed expression to map a string onto a valid variable name.
22971 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22974 # IFS
22975 # We need space, tab and new line, in precisely that order.
22976 as_nl='
22978 IFS=" $as_nl"
22980 # CDPATH.
22981 $as_unset CDPATH
22983 exec 6>&1
22985 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22986 # report actual input values of CONFIG_FILES etc. instead of their
22987 # values after options handling. Logging --version etc. is OK.
22988 exec 5>>config.log
22990 echo
22991 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22992 ## Running $as_me. ##
22993 _ASBOX
22994 } >&5
22995 cat >&5 <<_CSEOF
22997 This file was extended by MaNGOS $as_me 0.2-SVN, which was
22998 generated by GNU Autoconf 2.59. Invocation command line was
23000 CONFIG_FILES = $CONFIG_FILES
23001 CONFIG_HEADERS = $CONFIG_HEADERS
23002 CONFIG_LINKS = $CONFIG_LINKS
23003 CONFIG_COMMANDS = $CONFIG_COMMANDS
23004 $ $0 $@
23006 _CSEOF
23007 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23008 echo >&5
23009 _ACEOF
23011 # Files that config.status was made for.
23012 if test -n "$ac_config_files"; then
23013 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23016 if test -n "$ac_config_headers"; then
23017 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23020 if test -n "$ac_config_links"; then
23021 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23024 if test -n "$ac_config_commands"; then
23025 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23028 cat >>$CONFIG_STATUS <<\_ACEOF
23030 ac_cs_usage="\
23031 \`$as_me' instantiates files from templates according to the
23032 current configuration.
23034 Usage: $0 [OPTIONS] [FILE]...
23036 -h, --help print this help, then exit
23037 -V, --version print version number, then exit
23038 -q, --quiet do not print progress messages
23039 -d, --debug don't remove temporary files
23040 --recheck update $as_me by reconfiguring in the same conditions
23041 --file=FILE[:TEMPLATE]
23042 instantiate the configuration file FILE
23043 --header=FILE[:TEMPLATE]
23044 instantiate the configuration header FILE
23046 Configuration files:
23047 $config_files
23049 Configuration headers:
23050 $config_headers
23052 Configuration commands:
23053 $config_commands
23055 Report bugs to <bug-autoconf@gnu.org>."
23056 _ACEOF
23058 cat >>$CONFIG_STATUS <<_ACEOF
23059 ac_cs_version="\\
23060 MaNGOS config.status 0.2-SVN
23061 configured by $0, generated by GNU Autoconf 2.59,
23062 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23064 Copyright (C) 2003 Free Software Foundation, Inc.
23065 This config.status script is free software; the Free Software Foundation
23066 gives unlimited permission to copy, distribute and modify it."
23067 srcdir=$srcdir
23068 INSTALL="$INSTALL"
23069 _ACEOF
23071 cat >>$CONFIG_STATUS <<\_ACEOF
23072 # If no file are specified by the user, then we need to provide default
23073 # value. By we need to know if files were specified by the user.
23074 ac_need_defaults=:
23075 while test $# != 0
23077 case $1 in
23078 --*=*)
23079 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23080 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23081 ac_shift=:
23084 ac_option=$1
23085 ac_optarg=$2
23086 ac_shift=shift
23088 *) # This is not an option, so the user has probably given explicit
23089 # arguments.
23090 ac_option=$1
23091 ac_need_defaults=false;;
23092 esac
23094 case $ac_option in
23095 # Handling of the options.
23096 _ACEOF
23097 cat >>$CONFIG_STATUS <<\_ACEOF
23098 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23099 ac_cs_recheck=: ;;
23100 --version | --vers* | -V )
23101 echo "$ac_cs_version"; exit 0 ;;
23102 --he | --h)
23103 # Conflict between --help and --header
23104 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23105 Try \`$0 --help' for more information." >&5
23106 echo "$as_me: error: ambiguous option: $1
23107 Try \`$0 --help' for more information." >&2;}
23108 { (exit 1); exit 1; }; };;
23109 --help | --hel | -h )
23110 echo "$ac_cs_usage"; exit 0 ;;
23111 --debug | --d* | -d )
23112 debug=: ;;
23113 --file | --fil | --fi | --f )
23114 $ac_shift
23115 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23116 ac_need_defaults=false;;
23117 --header | --heade | --head | --hea )
23118 $ac_shift
23119 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23120 ac_need_defaults=false;;
23121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23122 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23123 ac_cs_silent=: ;;
23125 # This is an error.
23126 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23127 Try \`$0 --help' for more information." >&5
23128 echo "$as_me: error: unrecognized option: $1
23129 Try \`$0 --help' for more information." >&2;}
23130 { (exit 1); exit 1; }; } ;;
23132 *) ac_config_targets="$ac_config_targets $1" ;;
23134 esac
23135 shift
23136 done
23138 ac_configure_extra_args=
23140 if $ac_cs_silent; then
23141 exec 6>/dev/null
23142 ac_configure_extra_args="$ac_configure_extra_args --silent"
23145 _ACEOF
23146 cat >>$CONFIG_STATUS <<_ACEOF
23147 if \$ac_cs_recheck; then
23148 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23149 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23152 _ACEOF
23154 cat >>$CONFIG_STATUS <<_ACEOF
23156 # INIT-COMMANDS section.
23159 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23161 _ACEOF
23165 cat >>$CONFIG_STATUS <<\_ACEOF
23166 for ac_config_target in $ac_config_targets
23168 case "$ac_config_target" in
23169 # Handling of arguments.
23170 "./Makefile" ) CONFIG_FILES="$CONFIG_FILES ./Makefile" ;;
23171 "doc/Doxyfile" ) CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
23172 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
23173 "sql/Makefile" ) CONFIG_FILES="$CONFIG_FILES sql/Makefile" ;;
23174 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23175 "src/shared/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/shared/Makefile" ;;
23176 "src/shared/SystemConfig.h" ) CONFIG_FILES="$CONFIG_FILES src/shared/SystemConfig.h" ;;
23177 "src/realmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/realmd/Makefile" ;;
23178 "src/framework/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/framework/Makefile" ;;
23179 "src/game/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/game/Makefile" ;;
23180 "src/bindings/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/bindings/Makefile" ;;
23181 "src/bindings/python/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/bindings/python/Makefile" ;;
23182 "src/bindings/universal/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/bindings/universal/Makefile" ;;
23183 "src/mangosd/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mangosd/Makefile" ;;
23184 "dep/Makefile" ) CONFIG_FILES="$CONFIG_FILES dep/Makefile" ;;
23185 "dep/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES dep/src/Makefile" ;;
23186 "dep/src/zlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES dep/src/zlib/Makefile" ;;
23187 "dep/src/zthread/Makefile" ) CONFIG_FILES="$CONFIG_FILES dep/src/zthread/Makefile" ;;
23188 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23189 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23190 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23191 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23192 { (exit 1); exit 1; }; };;
23193 esac
23194 done
23196 # If the user did not use the arguments to specify the items to instantiate,
23197 # then the envvar interface is used. Set only those that are not.
23198 # We use the long form for the default assignment because of an extremely
23199 # bizarre bug on SunOS 4.1.3.
23200 if $ac_need_defaults; then
23201 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23202 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23203 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23206 # Have a temporary directory for convenience. Make it in the build tree
23207 # simply because there is no reason to put it here, and in addition,
23208 # creating and moving files from /tmp can sometimes cause problems.
23209 # Create a temporary directory, and hook for its removal unless debugging.
23210 $debug ||
23212 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23213 trap '{ (exit 1); exit 1; }' 1 2 13 15
23216 # Create a (secure) tmp directory for tmp files.
23219 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23220 test -n "$tmp" && test -d "$tmp"
23221 } ||
23223 tmp=./confstat$$-$RANDOM
23224 (umask 077 && mkdir $tmp)
23225 } ||
23227 echo "$me: cannot create a temporary directory in ." >&2
23228 { (exit 1); exit 1; }
23231 _ACEOF
23233 cat >>$CONFIG_STATUS <<_ACEOF
23236 # CONFIG_FILES section.
23239 # No need to generate the scripts if there are no CONFIG_FILES.
23240 # This happens for instance when ./config.status config.h
23241 if test -n "\$CONFIG_FILES"; then
23242 # Protect against being on the right side of a sed subst in config.status.
23243 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23244 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23245 s,@SHELL@,$SHELL,;t t
23246 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23247 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23248 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23249 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23250 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23251 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23252 s,@exec_prefix@,$exec_prefix,;t t
23253 s,@prefix@,$prefix,;t t
23254 s,@program_transform_name@,$program_transform_name,;t t
23255 s,@bindir@,$bindir,;t t
23256 s,@sbindir@,$sbindir,;t t
23257 s,@libexecdir@,$libexecdir,;t t
23258 s,@datadir@,$datadir,;t t
23259 s,@sysconfdir@,$sysconfdir,;t t
23260 s,@sharedstatedir@,$sharedstatedir,;t t
23261 s,@localstatedir@,$localstatedir,;t t
23262 s,@libdir@,$libdir,;t t
23263 s,@includedir@,$includedir,;t t
23264 s,@oldincludedir@,$oldincludedir,;t t
23265 s,@infodir@,$infodir,;t t
23266 s,@mandir@,$mandir,;t t
23267 s,@build_alias@,$build_alias,;t t
23268 s,@host_alias@,$host_alias,;t t
23269 s,@target_alias@,$target_alias,;t t
23270 s,@DEFS@,$DEFS,;t t
23271 s,@ECHO_C@,$ECHO_C,;t t
23272 s,@ECHO_N@,$ECHO_N,;t t
23273 s,@ECHO_T@,$ECHO_T,;t t
23274 s,@LIBS@,$LIBS,;t t
23275 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23276 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23277 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23278 s,@CYGPATH_W@,$CYGPATH_W,;t t
23279 s,@PACKAGE@,$PACKAGE,;t t
23280 s,@VERSION@,$VERSION,;t t
23281 s,@ACLOCAL@,$ACLOCAL,;t t
23282 s,@AUTOCONF@,$AUTOCONF,;t t
23283 s,@AUTOMAKE@,$AUTOMAKE,;t t
23284 s,@AUTOHEADER@,$AUTOHEADER,;t t
23285 s,@MAKEINFO@,$MAKEINFO,;t t
23286 s,@install_sh@,$install_sh,;t t
23287 s,@STRIP@,$STRIP,;t t
23288 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23289 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
23290 s,@mkdir_p@,$mkdir_p,;t t
23291 s,@AWK@,$AWK,;t t
23292 s,@SET_MAKE@,$SET_MAKE,;t t
23293 s,@am__leading_dot@,$am__leading_dot,;t t
23294 s,@AMTAR@,$AMTAR,;t t
23295 s,@am__tar@,$am__tar,;t t
23296 s,@am__untar@,$am__untar,;t t
23297 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
23298 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
23299 s,@MAINT@,$MAINT,;t t
23300 s,@CC@,$CC,;t t
23301 s,@CFLAGS@,$CFLAGS,;t t
23302 s,@LDFLAGS@,$LDFLAGS,;t t
23303 s,@CPPFLAGS@,$CPPFLAGS,;t t
23304 s,@ac_ct_CC@,$ac_ct_CC,;t t
23305 s,@EXEEXT@,$EXEEXT,;t t
23306 s,@OBJEXT@,$OBJEXT,;t t
23307 s,@DEPDIR@,$DEPDIR,;t t
23308 s,@am__include@,$am__include,;t t
23309 s,@am__quote@,$am__quote,;t t
23310 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
23311 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
23312 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
23313 s,@CCDEPMODE@,$CCDEPMODE,;t t
23314 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
23315 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
23316 s,@CXX@,$CXX,;t t
23317 s,@CXXFLAGS@,$CXXFLAGS,;t t
23318 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23319 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
23320 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
23321 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
23322 s,@RANLIB@,$RANLIB,;t t
23323 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23324 s,@build@,$build,;t t
23325 s,@build_cpu@,$build_cpu,;t t
23326 s,@build_vendor@,$build_vendor,;t t
23327 s,@build_os@,$build_os,;t t
23328 s,@host@,$host,;t t
23329 s,@host_cpu@,$host_cpu,;t t
23330 s,@host_vendor@,$host_vendor,;t t
23331 s,@host_os@,$host_os,;t t
23332 s,@EGREP@,$EGREP,;t t
23333 s,@LN_S@,$LN_S,;t t
23334 s,@ECHO@,$ECHO,;t t
23335 s,@AR@,$AR,;t t
23336 s,@ac_ct_AR@,$ac_ct_AR,;t t
23337 s,@CPP@,$CPP,;t t
23338 s,@CXXCPP@,$CXXCPP,;t t
23339 s,@F77@,$F77,;t t
23340 s,@FFLAGS@,$FFLAGS,;t t
23341 s,@ac_ct_F77@,$ac_ct_F77,;t t
23342 s,@LIBTOOL@,$LIBTOOL,;t t
23343 s,@__PYTHON@,$__PYTHON,;t t
23344 s,@INCLUDES@,$INCLUDES,;t t
23345 s,@LIBOBJS@,$LIBOBJS,;t t
23346 s,@ALLOCA@,$ALLOCA,;t t
23347 s,@WITH_PYTHON_SUBDIR@,$WITH_PYTHON_SUBDIR,;t t
23348 s,@WITH_PYTHON_SUBPACKAGE@,$WITH_PYTHON_SUBPACKAGE,;t t
23349 s,@WITH_PYTHON_VERSION@,$WITH_PYTHON_VERSION,;t t
23350 s,@__DOXYGEN@,$__DOXYGEN,;t t
23351 s,@WITH_APIDOCS_TARGET@,$WITH_APIDOCS_TARGET,;t t
23352 s,@WITH_APIDOCS@,$WITH_APIDOCS,;t t
23353 s,@LINKER_OPTIONS@,$LINKER_OPTIONS,;t t
23354 s,@COMPILER_OPTIONS@,$COMPILER_OPTIONS,;t t
23355 s,@EXTRA_LINKER_OPTIONS@,$EXTRA_LINKER_OPTIONS,;t t
23356 s,@EXTRA_COMPILER_OPTIONS@,$EXTRA_COMPILER_OPTIONS,;t t
23357 s,@MANGOSD_CONFIG@,$MANGOSD_CONFIG,;t t
23358 s,@MANGOSD_CONFIGDIR@,$MANGOSD_CONFIGDIR,;t t
23359 s,@MANGOSD_DATA@,$MANGOSD_DATA,;t t
23360 s,@MANGOSD_ENABLE_CLI@,$MANGOSD_ENABLE_CLI,;t t
23361 s,@MANGOSD_ENABLE_RA@,$MANGOSD_ENABLE_RA,;t t
23362 s,@LT_RELEASE@,$LT_RELEASE,;t t
23363 s,@LT_CURRENT@,$LT_CURRENT,;t t
23364 s,@LT_AGE@,$LT_AGE,;t t
23365 s,@LT_REVISION@,$LT_REVISION,;t t
23366 s,@LTMS_RELEASE@,$LTMS_RELEASE,;t t
23367 s,@LTMS_CURRENT@,$LTMS_CURRENT,;t t
23368 s,@LTMS_AGE@,$LTMS_AGE,;t t
23369 s,@LTMS_REVISION@,$LTMS_REVISION,;t t
23370 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23371 CEOF
23373 _ACEOF
23375 cat >>$CONFIG_STATUS <<\_ACEOF
23376 # Split the substitutions into bite-sized pieces for seds with
23377 # small command number limits, like on Digital OSF/1 and HP-UX.
23378 ac_max_sed_lines=48
23379 ac_sed_frag=1 # Number of current file.
23380 ac_beg=1 # First line for current file.
23381 ac_end=$ac_max_sed_lines # Line after last line for current file.
23382 ac_more_lines=:
23383 ac_sed_cmds=
23384 while $ac_more_lines; do
23385 if test $ac_beg -gt 1; then
23386 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23387 else
23388 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23390 if test ! -s $tmp/subs.frag; then
23391 ac_more_lines=false
23392 else
23393 # The purpose of the label and of the branching condition is to
23394 # speed up the sed processing (if there are no `@' at all, there
23395 # is no need to browse any of the substitutions).
23396 # These are the two extra sed commands mentioned above.
23397 (echo ':t
23398 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23399 if test -z "$ac_sed_cmds"; then
23400 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23401 else
23402 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23404 ac_sed_frag=`expr $ac_sed_frag + 1`
23405 ac_beg=$ac_end
23406 ac_end=`expr $ac_end + $ac_max_sed_lines`
23408 done
23409 if test -z "$ac_sed_cmds"; then
23410 ac_sed_cmds=cat
23412 fi # test -n "$CONFIG_FILES"
23414 _ACEOF
23415 cat >>$CONFIG_STATUS <<\_ACEOF
23416 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23417 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23418 case $ac_file in
23419 - | *:- | *:-:* ) # input from stdin
23420 cat >$tmp/stdin
23421 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23422 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23423 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23424 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23425 * ) ac_file_in=$ac_file.in ;;
23426 esac
23428 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23429 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23430 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23431 X"$ac_file" : 'X\(//\)[^/]' \| \
23432 X"$ac_file" : 'X\(//\)$' \| \
23433 X"$ac_file" : 'X\(/\)' \| \
23434 . : '\(.\)' 2>/dev/null ||
23435 echo X"$ac_file" |
23436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23437 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23438 /^X\(\/\/\)$/{ s//\1/; q; }
23439 /^X\(\/\).*/{ s//\1/; q; }
23440 s/.*/./; q'`
23441 { if $as_mkdir_p; then
23442 mkdir -p "$ac_dir"
23443 else
23444 as_dir="$ac_dir"
23445 as_dirs=
23446 while test ! -d "$as_dir"; do
23447 as_dirs="$as_dir $as_dirs"
23448 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23449 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23450 X"$as_dir" : 'X\(//\)[^/]' \| \
23451 X"$as_dir" : 'X\(//\)$' \| \
23452 X"$as_dir" : 'X\(/\)' \| \
23453 . : '\(.\)' 2>/dev/null ||
23454 echo X"$as_dir" |
23455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23456 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23457 /^X\(\/\/\)$/{ s//\1/; q; }
23458 /^X\(\/\).*/{ s//\1/; q; }
23459 s/.*/./; q'`
23460 done
23461 test ! -n "$as_dirs" || mkdir $as_dirs
23462 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23463 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23464 { (exit 1); exit 1; }; }; }
23466 ac_builddir=.
23468 if test "$ac_dir" != .; then
23469 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23470 # A "../" for each directory in $ac_dir_suffix.
23471 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23472 else
23473 ac_dir_suffix= ac_top_builddir=
23476 case $srcdir in
23477 .) # No --srcdir option. We are building in place.
23478 ac_srcdir=.
23479 if test -z "$ac_top_builddir"; then
23480 ac_top_srcdir=.
23481 else
23482 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23483 fi ;;
23484 [\\/]* | ?:[\\/]* ) # Absolute path.
23485 ac_srcdir=$srcdir$ac_dir_suffix;
23486 ac_top_srcdir=$srcdir ;;
23487 *) # Relative path.
23488 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23489 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23490 esac
23492 # Do not use `cd foo && pwd` to compute absolute paths, because
23493 # the directories may not exist.
23494 case `pwd` in
23495 .) ac_abs_builddir="$ac_dir";;
23497 case "$ac_dir" in
23498 .) ac_abs_builddir=`pwd`;;
23499 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23500 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23501 esac;;
23502 esac
23503 case $ac_abs_builddir in
23504 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23506 case ${ac_top_builddir}. in
23507 .) ac_abs_top_builddir=$ac_abs_builddir;;
23508 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23509 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23510 esac;;
23511 esac
23512 case $ac_abs_builddir in
23513 .) ac_abs_srcdir=$ac_srcdir;;
23515 case $ac_srcdir in
23516 .) ac_abs_srcdir=$ac_abs_builddir;;
23517 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23518 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23519 esac;;
23520 esac
23521 case $ac_abs_builddir in
23522 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23524 case $ac_top_srcdir in
23525 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23526 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23527 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23528 esac;;
23529 esac
23532 case $INSTALL in
23533 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23534 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23535 esac
23537 if test x"$ac_file" != x-; then
23538 { echo "$as_me:$LINENO: creating $ac_file" >&5
23539 echo "$as_me: creating $ac_file" >&6;}
23540 rm -f "$ac_file"
23542 # Let's still pretend it is `configure' which instantiates (i.e., don't
23543 # use $as_me), people would be surprised to read:
23544 # /* config.h. Generated by config.status. */
23545 if test x"$ac_file" = x-; then
23546 configure_input=
23547 else
23548 configure_input="$ac_file. "
23550 configure_input=$configure_input"Generated from `echo $ac_file_in |
23551 sed 's,.*/,,'` by configure."
23553 # First look for the input files in the build tree, otherwise in the
23554 # src tree.
23555 ac_file_inputs=`IFS=:
23556 for f in $ac_file_in; do
23557 case $f in
23558 -) echo $tmp/stdin ;;
23559 [\\/$]*)
23560 # Absolute (can't be DOS-style, as IFS=:)
23561 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23562 echo "$as_me: error: cannot find input file: $f" >&2;}
23563 { (exit 1); exit 1; }; }
23564 echo "$f";;
23565 *) # Relative
23566 if test -f "$f"; then
23567 # Build tree
23568 echo "$f"
23569 elif test -f "$srcdir/$f"; then
23570 # Source tree
23571 echo "$srcdir/$f"
23572 else
23573 # /dev/null tree
23574 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23575 echo "$as_me: error: cannot find input file: $f" >&2;}
23576 { (exit 1); exit 1; }; }
23577 fi;;
23578 esac
23579 done` || { (exit 1); exit 1; }
23580 _ACEOF
23581 cat >>$CONFIG_STATUS <<_ACEOF
23582 sed "$ac_vpsub
23583 $extrasub
23584 _ACEOF
23585 cat >>$CONFIG_STATUS <<\_ACEOF
23587 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23588 s,@configure_input@,$configure_input,;t t
23589 s,@srcdir@,$ac_srcdir,;t t
23590 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23591 s,@top_srcdir@,$ac_top_srcdir,;t t
23592 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23593 s,@builddir@,$ac_builddir,;t t
23594 s,@abs_builddir@,$ac_abs_builddir,;t t
23595 s,@top_builddir@,$ac_top_builddir,;t t
23596 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23597 s,@INSTALL@,$ac_INSTALL,;t t
23598 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23599 rm -f $tmp/stdin
23600 if test x"$ac_file" != x-; then
23601 mv $tmp/out $ac_file
23602 else
23603 cat $tmp/out
23604 rm -f $tmp/out
23607 done
23608 _ACEOF
23609 cat >>$CONFIG_STATUS <<\_ACEOF
23612 # CONFIG_HEADER section.
23615 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23616 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23618 # ac_d sets the value in "#define NAME VALUE" lines.
23619 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23620 ac_dB='[ ].*$,\1#\2'
23621 ac_dC=' '
23622 ac_dD=',;t'
23623 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23624 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23625 ac_uB='$,\1#\2define\3'
23626 ac_uC=' '
23627 ac_uD=',;t'
23629 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23630 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23631 case $ac_file in
23632 - | *:- | *:-:* ) # input from stdin
23633 cat >$tmp/stdin
23634 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23635 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23636 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23637 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23638 * ) ac_file_in=$ac_file.in ;;
23639 esac
23641 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23642 echo "$as_me: creating $ac_file" >&6;}
23644 # First look for the input files in the build tree, otherwise in the
23645 # src tree.
23646 ac_file_inputs=`IFS=:
23647 for f in $ac_file_in; do
23648 case $f in
23649 -) echo $tmp/stdin ;;
23650 [\\/$]*)
23651 # Absolute (can't be DOS-style, as IFS=:)
23652 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23653 echo "$as_me: error: cannot find input file: $f" >&2;}
23654 { (exit 1); exit 1; }; }
23655 # Do quote $f, to prevent DOS paths from being IFS'd.
23656 echo "$f";;
23657 *) # Relative
23658 if test -f "$f"; then
23659 # Build tree
23660 echo "$f"
23661 elif test -f "$srcdir/$f"; then
23662 # Source tree
23663 echo "$srcdir/$f"
23664 else
23665 # /dev/null tree
23666 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23667 echo "$as_me: error: cannot find input file: $f" >&2;}
23668 { (exit 1); exit 1; }; }
23669 fi;;
23670 esac
23671 done` || { (exit 1); exit 1; }
23672 # Remove the trailing spaces.
23673 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23675 _ACEOF
23677 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23678 # `conftest.undefs', that substitutes the proper values into
23679 # config.h.in to produce config.h. The first handles `#define'
23680 # templates, and the second `#undef' templates.
23681 # And first: Protect against being on the right side of a sed subst in
23682 # config.status. Protect against being in an unquoted here document
23683 # in config.status.
23684 rm -f conftest.defines conftest.undefs
23685 # Using a here document instead of a string reduces the quoting nightmare.
23686 # Putting comments in sed scripts is not portable.
23688 # `end' is used to avoid that the second main sed command (meant for
23689 # 0-ary CPP macros) applies to n-ary macro definitions.
23690 # See the Autoconf documentation for `clear'.
23691 cat >confdef2sed.sed <<\_ACEOF
23692 s/[\\&,]/\\&/g
23693 s,[\\$`],\\&,g
23694 t clear
23695 : clear
23696 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23697 t end
23698 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23699 : end
23700 _ACEOF
23701 # If some macros were called several times there might be several times
23702 # the same #defines, which is useless. Nevertheless, we may not want to
23703 # sort them, since we want the *last* AC-DEFINE to be honored.
23704 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23705 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23706 rm -f confdef2sed.sed
23708 # This sed command replaces #undef with comments. This is necessary, for
23709 # example, in the case of _POSIX_SOURCE, which is predefined and required
23710 # on some systems where configure will not decide to define it.
23711 cat >>conftest.undefs <<\_ACEOF
23712 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23713 _ACEOF
23715 # Break up conftest.defines because some shells have a limit on the size
23716 # of here documents, and old seds have small limits too (100 cmds).
23717 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23718 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23719 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23720 echo ' :' >>$CONFIG_STATUS
23721 rm -f conftest.tail
23722 while grep . conftest.defines >/dev/null
23724 # Write a limited-size here document to $tmp/defines.sed.
23725 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23726 # Speed up: don't consider the non `#define' lines.
23727 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23728 # Work around the forget-to-reset-the-flag bug.
23729 echo 't clr' >>$CONFIG_STATUS
23730 echo ': clr' >>$CONFIG_STATUS
23731 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23732 echo 'CEOF
23733 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23734 rm -f $tmp/in
23735 mv $tmp/out $tmp/in
23736 ' >>$CONFIG_STATUS
23737 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23738 rm -f conftest.defines
23739 mv conftest.tail conftest.defines
23740 done
23741 rm -f conftest.defines
23742 echo ' fi # grep' >>$CONFIG_STATUS
23743 echo >>$CONFIG_STATUS
23745 # Break up conftest.undefs because some shells have a limit on the size
23746 # of here documents, and old seds have small limits too (100 cmds).
23747 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23748 rm -f conftest.tail
23749 while grep . conftest.undefs >/dev/null
23751 # Write a limited-size here document to $tmp/undefs.sed.
23752 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23753 # Speed up: don't consider the non `#undef'
23754 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23755 # Work around the forget-to-reset-the-flag bug.
23756 echo 't clr' >>$CONFIG_STATUS
23757 echo ': clr' >>$CONFIG_STATUS
23758 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23759 echo 'CEOF
23760 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23761 rm -f $tmp/in
23762 mv $tmp/out $tmp/in
23763 ' >>$CONFIG_STATUS
23764 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23765 rm -f conftest.undefs
23766 mv conftest.tail conftest.undefs
23767 done
23768 rm -f conftest.undefs
23770 cat >>$CONFIG_STATUS <<\_ACEOF
23771 # Let's still pretend it is `configure' which instantiates (i.e., don't
23772 # use $as_me), people would be surprised to read:
23773 # /* config.h. Generated by config.status. */
23774 if test x"$ac_file" = x-; then
23775 echo "/* Generated by configure. */" >$tmp/config.h
23776 else
23777 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23779 cat $tmp/in >>$tmp/config.h
23780 rm -f $tmp/in
23781 if test x"$ac_file" != x-; then
23782 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23783 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23784 echo "$as_me: $ac_file is unchanged" >&6;}
23785 else
23786 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23787 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23788 X"$ac_file" : 'X\(//\)[^/]' \| \
23789 X"$ac_file" : 'X\(//\)$' \| \
23790 X"$ac_file" : 'X\(/\)' \| \
23791 . : '\(.\)' 2>/dev/null ||
23792 echo X"$ac_file" |
23793 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23794 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23795 /^X\(\/\/\)$/{ s//\1/; q; }
23796 /^X\(\/\).*/{ s//\1/; q; }
23797 s/.*/./; q'`
23798 { if $as_mkdir_p; then
23799 mkdir -p "$ac_dir"
23800 else
23801 as_dir="$ac_dir"
23802 as_dirs=
23803 while test ! -d "$as_dir"; do
23804 as_dirs="$as_dir $as_dirs"
23805 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23806 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23807 X"$as_dir" : 'X\(//\)[^/]' \| \
23808 X"$as_dir" : 'X\(//\)$' \| \
23809 X"$as_dir" : 'X\(/\)' \| \
23810 . : '\(.\)' 2>/dev/null ||
23811 echo X"$as_dir" |
23812 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23813 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23814 /^X\(\/\/\)$/{ s//\1/; q; }
23815 /^X\(\/\).*/{ s//\1/; q; }
23816 s/.*/./; q'`
23817 done
23818 test ! -n "$as_dirs" || mkdir $as_dirs
23819 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23820 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23821 { (exit 1); exit 1; }; }; }
23823 rm -f $ac_file
23824 mv $tmp/config.h $ac_file
23826 else
23827 cat $tmp/config.h
23828 rm -f $tmp/config.h
23830 # Compute $ac_file's index in $config_headers.
23831 _am_stamp_count=1
23832 for _am_header in $config_headers :; do
23833 case $_am_header in
23834 $ac_file | $ac_file:* )
23835 break ;;
23837 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23838 esac
23839 done
23840 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
23841 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23842 X$ac_file : 'X\(//\)[^/]' \| \
23843 X$ac_file : 'X\(//\)$' \| \
23844 X$ac_file : 'X\(/\)' \| \
23845 . : '\(.\)' 2>/dev/null ||
23846 echo X$ac_file |
23847 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23848 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23849 /^X\(\/\/\)$/{ s//\1/; q; }
23850 /^X\(\/\).*/{ s//\1/; q; }
23851 s/.*/./; q'`/stamp-h$_am_stamp_count
23852 done
23853 _ACEOF
23854 cat >>$CONFIG_STATUS <<\_ACEOF
23857 # CONFIG_COMMANDS section.
23859 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23860 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23861 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23862 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23863 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23864 X"$ac_dest" : 'X\(//\)[^/]' \| \
23865 X"$ac_dest" : 'X\(//\)$' \| \
23866 X"$ac_dest" : 'X\(/\)' \| \
23867 . : '\(.\)' 2>/dev/null ||
23868 echo X"$ac_dest" |
23869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23870 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23871 /^X\(\/\/\)$/{ s//\1/; q; }
23872 /^X\(\/\).*/{ s//\1/; q; }
23873 s/.*/./; q'`
23874 { if $as_mkdir_p; then
23875 mkdir -p "$ac_dir"
23876 else
23877 as_dir="$ac_dir"
23878 as_dirs=
23879 while test ! -d "$as_dir"; do
23880 as_dirs="$as_dir $as_dirs"
23881 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23882 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23883 X"$as_dir" : 'X\(//\)[^/]' \| \
23884 X"$as_dir" : 'X\(//\)$' \| \
23885 X"$as_dir" : 'X\(/\)' \| \
23886 . : '\(.\)' 2>/dev/null ||
23887 echo X"$as_dir" |
23888 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23889 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23890 /^X\(\/\/\)$/{ s//\1/; q; }
23891 /^X\(\/\).*/{ s//\1/; q; }
23892 s/.*/./; q'`
23893 done
23894 test ! -n "$as_dirs" || mkdir $as_dirs
23895 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23896 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23897 { (exit 1); exit 1; }; }; }
23899 ac_builddir=.
23901 if test "$ac_dir" != .; then
23902 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23903 # A "../" for each directory in $ac_dir_suffix.
23904 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23905 else
23906 ac_dir_suffix= ac_top_builddir=
23909 case $srcdir in
23910 .) # No --srcdir option. We are building in place.
23911 ac_srcdir=.
23912 if test -z "$ac_top_builddir"; then
23913 ac_top_srcdir=.
23914 else
23915 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23916 fi ;;
23917 [\\/]* | ?:[\\/]* ) # Absolute path.
23918 ac_srcdir=$srcdir$ac_dir_suffix;
23919 ac_top_srcdir=$srcdir ;;
23920 *) # Relative path.
23921 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23922 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23923 esac
23925 # Do not use `cd foo && pwd` to compute absolute paths, because
23926 # the directories may not exist.
23927 case `pwd` in
23928 .) ac_abs_builddir="$ac_dir";;
23930 case "$ac_dir" in
23931 .) ac_abs_builddir=`pwd`;;
23932 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23933 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23934 esac;;
23935 esac
23936 case $ac_abs_builddir in
23937 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23939 case ${ac_top_builddir}. in
23940 .) ac_abs_top_builddir=$ac_abs_builddir;;
23941 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23942 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23943 esac;;
23944 esac
23945 case $ac_abs_builddir in
23946 .) ac_abs_srcdir=$ac_srcdir;;
23948 case $ac_srcdir in
23949 .) ac_abs_srcdir=$ac_abs_builddir;;
23950 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23951 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23952 esac;;
23953 esac
23954 case $ac_abs_builddir in
23955 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23957 case $ac_top_srcdir in
23958 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23959 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23960 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23961 esac;;
23962 esac
23965 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23966 echo "$as_me: executing $ac_dest commands" >&6;}
23967 case $ac_dest in
23968 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23969 # Strip MF so we end up with the name of the file.
23970 mf=`echo "$mf" | sed -e 's/:.*$//'`
23971 # Check whether this is an Automake generated Makefile or not.
23972 # We used to match only the files named `Makefile.in', but
23973 # some people rename them; so instead we look at the file content.
23974 # Grep'ing the first line is not enough: some people post-process
23975 # each Makefile.in and add a new line on top of each file to say so.
23976 # So let's grep whole file.
23977 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23978 dirpart=`(dirname "$mf") 2>/dev/null ||
23979 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23980 X"$mf" : 'X\(//\)[^/]' \| \
23981 X"$mf" : 'X\(//\)$' \| \
23982 X"$mf" : 'X\(/\)' \| \
23983 . : '\(.\)' 2>/dev/null ||
23984 echo X"$mf" |
23985 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23986 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23987 /^X\(\/\/\)$/{ s//\1/; q; }
23988 /^X\(\/\).*/{ s//\1/; q; }
23989 s/.*/./; q'`
23990 else
23991 continue
23993 # Extract the definition of DEPDIR, am__include, and am__quote
23994 # from the Makefile without running `make'.
23995 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23996 test -z "$DEPDIR" && continue
23997 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23998 test -z "am__include" && continue
23999 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24000 # When using ansi2knr, U may be empty or an underscore; expand it
24001 U=`sed -n 's/^U = //p' < "$mf"`
24002 # Find all dependency output files, they are included files with
24003 # $(DEPDIR) in their names. We invoke sed twice because it is the
24004 # simplest approach to changing $(DEPDIR) to its actual value in the
24005 # expansion.
24006 for file in `sed -n "
24007 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24008 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24009 # Make sure the directory exists.
24010 test -f "$dirpart/$file" && continue
24011 fdir=`(dirname "$file") 2>/dev/null ||
24012 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24013 X"$file" : 'X\(//\)[^/]' \| \
24014 X"$file" : 'X\(//\)$' \| \
24015 X"$file" : 'X\(/\)' \| \
24016 . : '\(.\)' 2>/dev/null ||
24017 echo X"$file" |
24018 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24019 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24020 /^X\(\/\/\)$/{ s//\1/; q; }
24021 /^X\(\/\).*/{ s//\1/; q; }
24022 s/.*/./; q'`
24023 { if $as_mkdir_p; then
24024 mkdir -p $dirpart/$fdir
24025 else
24026 as_dir=$dirpart/$fdir
24027 as_dirs=
24028 while test ! -d "$as_dir"; do
24029 as_dirs="$as_dir $as_dirs"
24030 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24031 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24032 X"$as_dir" : 'X\(//\)[^/]' \| \
24033 X"$as_dir" : 'X\(//\)$' \| \
24034 X"$as_dir" : 'X\(/\)' \| \
24035 . : '\(.\)' 2>/dev/null ||
24036 echo X"$as_dir" |
24037 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24038 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24039 /^X\(\/\/\)$/{ s//\1/; q; }
24040 /^X\(\/\).*/{ s//\1/; q; }
24041 s/.*/./; q'`
24042 done
24043 test ! -n "$as_dirs" || mkdir $as_dirs
24044 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
24045 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
24046 { (exit 1); exit 1; }; }; }
24048 # echo "creating $dirpart/$file"
24049 echo '# dummy' > "$dirpart/$file"
24050 done
24051 done
24053 esac
24054 done
24055 _ACEOF
24057 cat >>$CONFIG_STATUS <<\_ACEOF
24059 { (exit 0); exit 0; }
24060 _ACEOF
24061 chmod +x $CONFIG_STATUS
24062 ac_clean_files=$ac_clean_files_save
24065 # configure is writing to config.log, and then calls config.status.
24066 # config.status does its own redirection, appending to config.log.
24067 # Unfortunately, on DOS this fails, as config.log is still kept open
24068 # by configure, so config.status won't be able to write to it; its
24069 # output is simply discarded. So we exec the FD to /dev/null,
24070 # effectively closing config.log, so it can be properly (re)opened and
24071 # appended to by config.status. When coming back to configure, we
24072 # need to make the FD available again.
24073 if test "$no_create" != yes; then
24074 ac_cs_success=:
24075 ac_config_status_args=
24076 test "$silent" = yes &&
24077 ac_config_status_args="$ac_config_status_args --quiet"
24078 exec 5>/dev/null
24079 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24080 exec 5>>config.log
24081 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24082 # would make configure fail if this is the last instruction.
24083 $ac_cs_success || { (exit 1); exit 1; }