* update the changelog
[tango.git] / configure
blob10b2f0e13ae079d13b1a00ffff8671e61fa7d896
1 #! /bin/sh
2 # From configure.in Revision.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for Tango 6.1.1.
6 # Report bugs to <tango@esrf.fr>.
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
25 DUALCASE=1; export DUALCASE # for MKS sh
27 # Support unset when possible.
28 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29 as_unset=unset
30 else
31 as_unset=false
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
37 PS1='$ '
38 PS2='> '
39 PS4='+ '
41 # NLS nuisances.
42 for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
52 done
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57 else
58 as_expr=false
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63 else
64 as_basename=false
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74 echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
99 rm -f conf$$.sh
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 for as_dir in $PATH
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118 done
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
131 case $CONFIG_SHELL in
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155 done
157 esac
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192 ' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 esac
197 if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199 else
200 as_expr=false
203 rm -f conf$$ conf$$.exe conf$$.file
204 echo >conf$$.file
205 if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
214 elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216 else
217 as_ln_s='cp -p'
219 rm -f conf$$ conf$$.exe conf$$.file
221 if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223 else
224 test -d ./-p && rmdir ./-p
225 as_mkdir_p=false
228 as_executable_p="test -f"
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # IFS
238 # We need space, tab and new line, in precisely that order.
239 as_nl='
241 IFS=" $as_nl"
243 # CDPATH.
244 $as_unset CDPATH
248 # Check that we are running under the correct shell.
249 SHELL=${CONFIG_SHELL-/bin/sh}
251 case X$ECHO in
252 X*--fallback-echo)
253 # Remove one level of quotation (which was required for Make).
254 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256 esac
258 echo=${ECHO-echo}
259 if test "X$1" = X--no-reexec; then
260 # Discard the --no-reexec flag, and continue.
261 shift
262 elif test "X$1" = X--fallback-echo; then
263 # Avoid inline document here, it may be left over
265 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
266 # Yippee, $echo works!
268 else
269 # Restart under the correct shell.
270 exec $SHELL "$0" --no-reexec ${1+"$@"}
273 if test "X$1" = X--fallback-echo; then
274 # used as fallback echo
275 shift
276 cat <<EOF
279 exit 0
282 # The HP-UX ksh and POSIX shell print the target directory to stdout
283 # if CDPATH is set.
284 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
286 if test -z "$ECHO"; then
287 if test "X${echo_test_string+set}" != Xset; then
288 # find a string as large as possible, as long as the shell can cope with it
289 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
290 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
291 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
292 echo_test_string=`eval $cmd` &&
293 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
294 then
295 break
297 done
300 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
301 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
302 test "X$echo_testing_string" = "X$echo_test_string"; then
304 else
305 # The Solaris, AIX, and Digital Unix default echo programs unquote
306 # backslashes. This makes it impossible to quote backslashes using
307 # echo "$something" | sed 's/\\/\\\\/g'
309 # So, first we look for a working echo in the user's PATH.
311 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
312 for dir in $PATH /usr/ucb; do
313 IFS="$lt_save_ifs"
314 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
315 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
316 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
317 test "X$echo_testing_string" = "X$echo_test_string"; then
318 echo="$dir/echo"
319 break
321 done
322 IFS="$lt_save_ifs"
324 if test "X$echo" = Xecho; then
325 # We didn't find a better echo, so look for alternatives.
326 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
327 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
328 test "X$echo_testing_string" = "X$echo_test_string"; then
329 # This shell has a builtin print -r that does the trick.
330 echo='print -r'
331 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
332 test "X$CONFIG_SHELL" != X/bin/ksh; then
333 # If we have ksh, try running configure again with it.
334 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
335 export ORIGINAL_CONFIG_SHELL
336 CONFIG_SHELL=/bin/ksh
337 export CONFIG_SHELL
338 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
339 else
340 # Try using printf.
341 echo='printf %s\n'
342 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
343 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
344 test "X$echo_testing_string" = "X$echo_test_string"; then
345 # Cool, printf works
347 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
348 test "X$echo_testing_string" = 'X\t' &&
349 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
350 test "X$echo_testing_string" = "X$echo_test_string"; then
351 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
352 export CONFIG_SHELL
353 SHELL="$CONFIG_SHELL"
354 export SHELL
355 echo="$CONFIG_SHELL $0 --fallback-echo"
356 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
357 test "X$echo_testing_string" = 'X\t' &&
358 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
359 test "X$echo_testing_string" = "X$echo_test_string"; then
360 echo="$CONFIG_SHELL $0 --fallback-echo"
361 else
362 # maybe with a smaller string...
363 prev=:
365 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
366 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
367 then
368 break
370 prev="$cmd"
371 done
373 if test "$prev" != 'sed 50q "$0"'; then
374 echo_test_string=`eval $prev`
375 export echo_test_string
376 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
377 else
378 # Oops. We lost completely, so just stick with echo.
379 echo=echo
387 # Copy echo and quote the copy suitably for passing to libtool from
388 # the Makefile, instead of quoting the original, which is used later.
389 ECHO=$echo
390 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
391 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397 tagnames=${tagnames+${tagnames},}CXX
399 tagnames=${tagnames+${tagnames},}F77
401 # Name of the host.
402 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
403 # so uname gets run too.
404 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406 exec 6>&1
409 # Initializations.
411 ac_default_prefix=/usr/local
412 ac_config_libobj_dir=.
413 cross_compiling=no
414 subdirs=
415 MFLAGS=
416 MAKEFLAGS=
417 SHELL=${CONFIG_SHELL-/bin/sh}
419 # Maximum number of lines to put in a shell here document.
420 # This variable seems obsolete. It should probably be removed, and
421 # only ac_max_sed_lines should be used.
422 : ${ac_max_here_lines=38}
424 # Identity of this package.
425 PACKAGE_NAME='Tango'
426 PACKAGE_TARNAME='tango'
427 PACKAGE_VERSION='6.1.1'
428 PACKAGE_STRING='Tango 6.1.1'
429 PACKAGE_BUGREPORT='tango@esrf.fr'
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_subdirs_all="$ac_subdirs_all lib/cpp/log4tango"
469 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 CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP LN_S EGREP JAVA TANGO_JAVA_ENABLED_TRUE TANGO_JAVA_ENABLED_FALSE DOXYGEN build build_cpu build_vendor build_os host host_cpu host_vendor host_os SED ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB F77 FFLAGS ac_ct_F77 LIBTOOL ZLIB_LDFLAGS ZLIB_LIBS ZLIB_CPPFLAGS IDLCXXFLAGS CORBA_INCLUDES ORB_PREFIX ORB IDL IDLCXX IDLFLAGS ORB_INCLUDE_PREFIX IDL_H_SUFFIX IDL_H1_SUFFIX IDL_CLN_H IDL_CLN_H_SUFFIX IDL_CLN_H1_SUFFIX IDL_CLN_CPP IDL_CLN_CPP_SUFFIX IDL_CLN_O IDL_CLN_OBJ_SUFFIX IDL_SRV_H IDL_SRV_H_SUFFIX IDL_SRV_H1_SUFFIX IDL_SRV_CPP IDL_SRV_CPP_SUFFIX IDL_SRV_O IDL_SRV_OBJ_SUFFIX IDL_TIE_H_SUFFIX IDL_TIE_H1_SUFFIX IDL_TIE_CPP_SUFFIX ORB_COSNAMING_LIB HAVE_ORB_IDL DARWIN_ENABLED_TRUE DARWIN_ENABLED_FALSE ALLOCA MYSQLCLIENT_LDFLAGS MYSQLCLIENT_CFLAGS MYSQLCLIENT_LIBS MYSQL MYSQL_ADMIN MYSQL_ADMIN_PASSWD MYSQL_HOST TANGO_DB_NAME TANGO_DB_SERVER_ENABLED_TRUE TANGO_DB_SERVER_ENABLED_FALSE TANGO_DB_CREATE_ENABLED_TRUE TANGO_DB_CREATE_ENABLED_FALSE ac_aux_dir VERSION_INFO DATADIR subdirs LIBOBJS LTLIBOBJS'
470 ac_subst_files=''
472 # Initialize some variables set by options.
473 ac_init_help=
474 ac_init_version=false
475 # The variables have the same names as the options, with
476 # dashes changed to underlines.
477 cache_file=/dev/null
478 exec_prefix=NONE
479 no_create=
480 no_recursion=
481 prefix=NONE
482 program_prefix=NONE
483 program_suffix=NONE
484 program_transform_name=s,x,x,
485 silent=
486 site=
487 srcdir=
488 verbose=
489 x_includes=NONE
490 x_libraries=NONE
492 # Installation directory options.
493 # These are left unexpanded so users can "make install exec_prefix=/foo"
494 # and all the variables that are supposed to be based on exec_prefix
495 # by default will actually change.
496 # Use braces instead of parens because sh, perl, etc. also accept them.
497 bindir='${exec_prefix}/bin'
498 sbindir='${exec_prefix}/sbin'
499 libexecdir='${exec_prefix}/libexec'
500 datadir='${prefix}/share'
501 sysconfdir='${prefix}/etc'
502 sharedstatedir='${prefix}/com'
503 localstatedir='${prefix}/var'
504 libdir='${exec_prefix}/lib'
505 includedir='${prefix}/include'
506 oldincludedir='/usr/include'
507 infodir='${prefix}/info'
508 mandir='${prefix}/man'
510 ac_prev=
511 for ac_option
513 # If the previous option needs an argument, assign it.
514 if test -n "$ac_prev"; then
515 eval "$ac_prev=\$ac_option"
516 ac_prev=
517 continue
520 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
522 # Accept the important Cygnus configure options, so we can diagnose typos.
524 case $ac_option in
526 -bindir | --bindir | --bindi | --bind | --bin | --bi)
527 ac_prev=bindir ;;
528 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529 bindir=$ac_optarg ;;
531 -build | --build | --buil | --bui | --bu)
532 ac_prev=build_alias ;;
533 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
534 build_alias=$ac_optarg ;;
536 -cache-file | --cache-file | --cache-fil | --cache-fi \
537 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
538 ac_prev=cache_file ;;
539 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
540 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
541 cache_file=$ac_optarg ;;
543 --config-cache | -C)
544 cache_file=config.cache ;;
546 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547 ac_prev=datadir ;;
548 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549 | --da=*)
550 datadir=$ac_optarg ;;
552 -disable-* | --disable-*)
553 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
554 # Reject names that are not valid shell variable names.
555 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557 { (exit 1); exit 1; }; }
558 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559 eval "enable_$ac_feature=no" ;;
561 -enable-* | --enable-*)
562 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
563 # Reject names that are not valid shell variable names.
564 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
566 { (exit 1); exit 1; }; }
567 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568 case $ac_option in
569 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570 *) ac_optarg=yes ;;
571 esac
572 eval "enable_$ac_feature='$ac_optarg'" ;;
574 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
575 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
576 | --exec | --exe | --ex)
577 ac_prev=exec_prefix ;;
578 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
579 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
580 | --exec=* | --exe=* | --ex=*)
581 exec_prefix=$ac_optarg ;;
583 -gas | --gas | --ga | --g)
584 # Obsolete; use --with-gas.
585 with_gas=yes ;;
587 -help | --help | --hel | --he | -h)
588 ac_init_help=long ;;
589 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
590 ac_init_help=recursive ;;
591 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
592 ac_init_help=short ;;
594 -host | --host | --hos | --ho)
595 ac_prev=host_alias ;;
596 -host=* | --host=* | --hos=* | --ho=*)
597 host_alias=$ac_optarg ;;
599 -includedir | --includedir | --includedi | --included | --include \
600 | --includ | --inclu | --incl | --inc)
601 ac_prev=includedir ;;
602 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
603 | --includ=* | --inclu=* | --incl=* | --inc=*)
604 includedir=$ac_optarg ;;
606 -infodir | --infodir | --infodi | --infod | --info | --inf)
607 ac_prev=infodir ;;
608 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
609 infodir=$ac_optarg ;;
611 -libdir | --libdir | --libdi | --libd)
612 ac_prev=libdir ;;
613 -libdir=* | --libdir=* | --libdi=* | --libd=*)
614 libdir=$ac_optarg ;;
616 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
617 | --libexe | --libex | --libe)
618 ac_prev=libexecdir ;;
619 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
620 | --libexe=* | --libex=* | --libe=*)
621 libexecdir=$ac_optarg ;;
623 -localstatedir | --localstatedir | --localstatedi | --localstated \
624 | --localstate | --localstat | --localsta | --localst \
625 | --locals | --local | --loca | --loc | --lo)
626 ac_prev=localstatedir ;;
627 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
628 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
629 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
630 localstatedir=$ac_optarg ;;
632 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633 ac_prev=mandir ;;
634 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
635 mandir=$ac_optarg ;;
637 -nfp | --nfp | --nf)
638 # Obsolete; use --without-fp.
639 with_fp=no ;;
641 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
642 | --no-cr | --no-c | -n)
643 no_create=yes ;;
645 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
646 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647 no_recursion=yes ;;
649 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
650 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
651 | --oldin | --oldi | --old | --ol | --o)
652 ac_prev=oldincludedir ;;
653 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
654 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
655 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
656 oldincludedir=$ac_optarg ;;
658 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659 ac_prev=prefix ;;
660 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661 prefix=$ac_optarg ;;
663 -program-prefix | --program-prefix | --program-prefi | --program-pref \
664 | --program-pre | --program-pr | --program-p)
665 ac_prev=program_prefix ;;
666 -program-prefix=* | --program-prefix=* | --program-prefi=* \
667 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
668 program_prefix=$ac_optarg ;;
670 -program-suffix | --program-suffix | --program-suffi | --program-suff \
671 | --program-suf | --program-su | --program-s)
672 ac_prev=program_suffix ;;
673 -program-suffix=* | --program-suffix=* | --program-suffi=* \
674 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
675 program_suffix=$ac_optarg ;;
677 -program-transform-name | --program-transform-name \
678 | --program-transform-nam | --program-transform-na \
679 | --program-transform-n | --program-transform- \
680 | --program-transform | --program-transfor \
681 | --program-transfo | --program-transf \
682 | --program-trans | --program-tran \
683 | --progr-tra | --program-tr | --program-t)
684 ac_prev=program_transform_name ;;
685 -program-transform-name=* | --program-transform-name=* \
686 | --program-transform-nam=* | --program-transform-na=* \
687 | --program-transform-n=* | --program-transform-=* \
688 | --program-transform=* | --program-transfor=* \
689 | --program-transfo=* | --program-transf=* \
690 | --program-trans=* | --program-tran=* \
691 | --progr-tra=* | --program-tr=* | --program-t=*)
692 program_transform_name=$ac_optarg ;;
694 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
695 | -silent | --silent | --silen | --sile | --sil)
696 silent=yes ;;
698 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699 ac_prev=sbindir ;;
700 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701 | --sbi=* | --sb=*)
702 sbindir=$ac_optarg ;;
704 -sharedstatedir | --sharedstatedir | --sharedstatedi \
705 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
706 | --sharedst | --shareds | --shared | --share | --shar \
707 | --sha | --sh)
708 ac_prev=sharedstatedir ;;
709 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
710 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
711 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712 | --sha=* | --sh=*)
713 sharedstatedir=$ac_optarg ;;
715 -site | --site | --sit)
716 ac_prev=site ;;
717 -site=* | --site=* | --sit=*)
718 site=$ac_optarg ;;
720 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721 ac_prev=srcdir ;;
722 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723 srcdir=$ac_optarg ;;
725 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
726 | --syscon | --sysco | --sysc | --sys | --sy)
727 ac_prev=sysconfdir ;;
728 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
729 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
730 sysconfdir=$ac_optarg ;;
732 -target | --target | --targe | --targ | --tar | --ta | --t)
733 ac_prev=target_alias ;;
734 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
735 target_alias=$ac_optarg ;;
737 -v | -verbose | --verbose | --verbos | --verbo | --verb)
738 verbose=yes ;;
740 -version | --version | --versio | --versi | --vers | -V)
741 ac_init_version=: ;;
743 -with-* | --with-*)
744 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
745 # Reject names that are not valid shell variable names.
746 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
747 { echo "$as_me: error: invalid package name: $ac_package" >&2
748 { (exit 1); exit 1; }; }
749 ac_package=`echo $ac_package| sed 's/-/_/g'`
750 case $ac_option in
751 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752 *) ac_optarg=yes ;;
753 esac
754 eval "with_$ac_package='$ac_optarg'" ;;
756 -without-* | --without-*)
757 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
758 # Reject names that are not valid shell variable names.
759 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
760 { echo "$as_me: error: invalid package name: $ac_package" >&2
761 { (exit 1); exit 1; }; }
762 ac_package=`echo $ac_package | sed 's/-/_/g'`
763 eval "with_$ac_package=no" ;;
765 --x)
766 # Obsolete; use --with-x.
767 with_x=yes ;;
769 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
770 | --x-incl | --x-inc | --x-in | --x-i)
771 ac_prev=x_includes ;;
772 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
773 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
774 x_includes=$ac_optarg ;;
776 -x-libraries | --x-libraries | --x-librarie | --x-librari \
777 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
778 ac_prev=x_libraries ;;
779 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
780 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
781 x_libraries=$ac_optarg ;;
783 -*) { echo "$as_me: error: unrecognized option: $ac_option
784 Try \`$0 --help' for more information." >&2
785 { (exit 1); exit 1; }; }
788 *=*)
789 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
790 # Reject names that are not valid shell variable names.
791 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
792 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
793 { (exit 1); exit 1; }; }
794 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
795 eval "$ac_envvar='$ac_optarg'"
796 export $ac_envvar ;;
799 # FIXME: should be removed in autoconf 3.0.
800 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
801 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
802 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
803 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
806 esac
807 done
809 if test -n "$ac_prev"; then
810 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
811 { echo "$as_me: error: missing argument to $ac_option" >&2
812 { (exit 1); exit 1; }; }
815 # Be sure to have absolute paths.
816 for ac_var in exec_prefix prefix
818 eval ac_val=$`echo $ac_var`
819 case $ac_val in
820 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
821 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
822 { (exit 1); exit 1; }; };;
823 esac
824 done
826 # Be sure to have absolute paths.
827 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
828 localstatedir libdir includedir oldincludedir infodir mandir
830 eval ac_val=$`echo $ac_var`
831 case $ac_val in
832 [\\/$]* | ?:[\\/]* ) ;;
833 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
834 { (exit 1); exit 1; }; };;
835 esac
836 done
838 # There might be people who depend on the old broken behavior: `$host'
839 # used to hold the argument of --host etc.
840 # FIXME: To remove some day.
841 build=$build_alias
842 host=$host_alias
843 target=$target_alias
845 # FIXME: To remove some day.
846 if test "x$host_alias" != x; then
847 if test "x$build_alias" = x; then
848 cross_compiling=maybe
849 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
850 If a cross compiler is detected then cross compile mode will be used." >&2
851 elif test "x$build_alias" != "x$host_alias"; then
852 cross_compiling=yes
856 ac_tool_prefix=
857 test -n "$host_alias" && ac_tool_prefix=$host_alias-
859 test "$silent" = yes && exec 6>/dev/null
862 # Find the source files, if location was not specified.
863 if test -z "$srcdir"; then
864 ac_srcdir_defaulted=yes
865 # Try the directory containing this script, then its parent.
866 ac_confdir=`(dirname "$0") 2>/dev/null ||
867 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
868 X"$0" : 'X\(//\)[^/]' \| \
869 X"$0" : 'X\(//\)$' \| \
870 X"$0" : 'X\(/\)' \| \
871 . : '\(.\)' 2>/dev/null ||
872 echo X"$0" |
873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
874 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
875 /^X\(\/\/\)$/{ s//\1/; q; }
876 /^X\(\/\).*/{ s//\1/; q; }
877 s/.*/./; q'`
878 srcdir=$ac_confdir
879 if test ! -r $srcdir/$ac_unique_file; then
880 srcdir=..
882 else
883 ac_srcdir_defaulted=no
885 if test ! -r $srcdir/$ac_unique_file; then
886 if test "$ac_srcdir_defaulted" = yes; then
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
888 { (exit 1); exit 1; }; }
889 else
890 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
891 { (exit 1); exit 1; }; }
894 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
895 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
896 { (exit 1); exit 1; }; }
897 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
898 ac_env_build_alias_set=${build_alias+set}
899 ac_env_build_alias_value=$build_alias
900 ac_cv_env_build_alias_set=${build_alias+set}
901 ac_cv_env_build_alias_value=$build_alias
902 ac_env_host_alias_set=${host_alias+set}
903 ac_env_host_alias_value=$host_alias
904 ac_cv_env_host_alias_set=${host_alias+set}
905 ac_cv_env_host_alias_value=$host_alias
906 ac_env_target_alias_set=${target_alias+set}
907 ac_env_target_alias_value=$target_alias
908 ac_cv_env_target_alias_set=${target_alias+set}
909 ac_cv_env_target_alias_value=$target_alias
910 ac_env_CXX_set=${CXX+set}
911 ac_env_CXX_value=$CXX
912 ac_cv_env_CXX_set=${CXX+set}
913 ac_cv_env_CXX_value=$CXX
914 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
915 ac_env_CXXFLAGS_value=$CXXFLAGS
916 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
917 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
918 ac_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_env_LDFLAGS_value=$LDFLAGS
920 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_cv_env_LDFLAGS_value=$LDFLAGS
922 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_env_CPPFLAGS_value=$CPPFLAGS
924 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
925 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
926 ac_env_CXXCPP_set=${CXXCPP+set}
927 ac_env_CXXCPP_value=$CXXCPP
928 ac_cv_env_CXXCPP_set=${CXXCPP+set}
929 ac_cv_env_CXXCPP_value=$CXXCPP
930 ac_env_CC_set=${CC+set}
931 ac_env_CC_value=$CC
932 ac_cv_env_CC_set=${CC+set}
933 ac_cv_env_CC_value=$CC
934 ac_env_CFLAGS_set=${CFLAGS+set}
935 ac_env_CFLAGS_value=$CFLAGS
936 ac_cv_env_CFLAGS_set=${CFLAGS+set}
937 ac_cv_env_CFLAGS_value=$CFLAGS
938 ac_env_CPP_set=${CPP+set}
939 ac_env_CPP_value=$CPP
940 ac_cv_env_CPP_set=${CPP+set}
941 ac_cv_env_CPP_value=$CPP
942 ac_env_F77_set=${F77+set}
943 ac_env_F77_value=$F77
944 ac_cv_env_F77_set=${F77+set}
945 ac_cv_env_F77_value=$F77
946 ac_env_FFLAGS_set=${FFLAGS+set}
947 ac_env_FFLAGS_value=$FFLAGS
948 ac_cv_env_FFLAGS_set=${FFLAGS+set}
949 ac_cv_env_FFLAGS_value=$FFLAGS
952 # Report the --help message.
954 if test "$ac_init_help" = "long"; then
955 # Omit some internal or obsolete options to make the list less imposing.
956 # This message is too long to be a string in the A/UX 3.1 sh.
957 cat <<_ACEOF
958 \`configure' configures Tango 6.1.1 to adapt to many kinds of systems.
960 Usage: $0 [OPTION]... [VAR=VALUE]...
962 To assign environment variables (e.g., CC, CFLAGS...), specify them as
963 VAR=VALUE. See below for descriptions of some of the useful variables.
965 Defaults for the options are specified in brackets.
967 Configuration:
968 -h, --help display this help and exit
969 --help=short display options specific to this package
970 --help=recursive display the short help of all the included packages
971 -V, --version display version information and exit
972 -q, --quiet, --silent do not print \`checking...' messages
973 --cache-file=FILE cache test results in FILE [disabled]
974 -C, --config-cache alias for \`--cache-file=config.cache'
975 -n, --no-create do not create output files
976 --srcdir=DIR find the sources in DIR [configure dir or \`..']
978 _ACEOF
980 cat <<_ACEOF
981 Installation directories:
982 --prefix=PREFIX install architecture-independent files in PREFIX
983 [$ac_default_prefix]
984 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
985 [PREFIX]
987 By default, \`make install' will install all the files in
988 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
989 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
990 for instance \`--prefix=\$HOME'.
992 For better control, use the options below.
994 Fine tuning of the installation directories:
995 --bindir=DIR user executables [EPREFIX/bin]
996 --sbindir=DIR system admin executables [EPREFIX/sbin]
997 --libexecdir=DIR program executables [EPREFIX/libexec]
998 --datadir=DIR read-only architecture-independent data [PREFIX/share]
999 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1000 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1001 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1002 --libdir=DIR object code libraries [EPREFIX/lib]
1003 --includedir=DIR C header files [PREFIX/include]
1004 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1005 --infodir=DIR info documentation [PREFIX/info]
1006 --mandir=DIR man documentation [PREFIX/man]
1007 _ACEOF
1009 cat <<\_ACEOF
1011 Program names:
1012 --program-prefix=PREFIX prepend PREFIX to installed program names
1013 --program-suffix=SUFFIX append SUFFIX to installed program names
1014 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1016 System types:
1017 --build=BUILD configure for building on BUILD [guessed]
1018 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1019 _ACEOF
1022 if test -n "$ac_init_help"; then
1023 case $ac_init_help in
1024 short | recursive ) echo "Configuration of Tango 6.1.1:";;
1025 esac
1026 cat <<\_ACEOF
1028 Optional Features:
1029 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1030 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1031 --disable-dependency-tracking speeds up one-time build
1032 --enable-dependency-tracking do not reject slow dependency extractors
1033 --enable-static[=PKGS]
1034 build static libraries [default=no]
1035 --enable-java enable installation of Java applications
1036 --enable-shared[=PKGS]
1037 build shared 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 --enable-dbserver enable installation of Tango database server
1042 --enable-dbcreate enable an creation of the Tango database schema
1044 Optional Packages:
1045 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1046 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1047 --with-java path to java interpreter
1048 --with-doxygen path to doxygen utility
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-zlib=DIR root directory path of zlib installation defaults to
1055 /usr/local or /usr if not found in /usr/local
1056 --with-omni prefix to omniORB installation (default: $OMNI_ROOT)
1057 --with-mysqlclient-prefix=PFX
1058 Prefix where mysqlclient is installed
1059 --with-mysqlclient-include=DIR
1060 Directory pointing to mysqlclient include files
1061 --with-mysqlclient-lib=LIB
1062 Directory pointing to mysqlclient library (Note:
1063 -include and -lib do override paths found with
1064 -prefix)
1065 --with-mysql-ho the host of the mysql database (default: <blank>)
1066 --with-mysql-admin super user of your mysql database (default: <blank>)
1067 --with-mysql-admin-passwd
1068 super user password of your mysql database (default:
1069 <blank>)
1070 --with-tango-db-name the name of the tango database (default tango)
1072 Some influential environment variables:
1073 CXX C++ compiler command
1074 CXXFLAGS C++ compiler flags
1075 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1076 nonstandard directory <lib dir>
1077 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1078 headers in a nonstandard directory <include dir>
1079 CXXCPP C++ preprocessor
1080 CC C compiler command
1081 CFLAGS C compiler flags
1082 CPP C preprocessor
1083 F77 Fortran 77 compiler command
1084 FFLAGS Fortran 77 compiler flags
1086 Use these variables to override the choices made by `configure' or to help
1087 it to find libraries and programs with nonstandard names/locations.
1089 Report bugs to <tango@esrf.fr>.
1090 _ACEOF
1093 if test "$ac_init_help" = "recursive"; then
1094 # If there are subdirs, report their specific --help.
1095 ac_popdir=`pwd`
1096 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1097 test -d $ac_dir || continue
1098 ac_builddir=.
1100 if test "$ac_dir" != .; then
1101 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1102 # A "../" for each directory in $ac_dir_suffix.
1103 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1104 else
1105 ac_dir_suffix= ac_top_builddir=
1108 case $srcdir in
1109 .) # No --srcdir option. We are building in place.
1110 ac_srcdir=.
1111 if test -z "$ac_top_builddir"; then
1112 ac_top_srcdir=.
1113 else
1114 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1115 fi ;;
1116 [\\/]* | ?:[\\/]* ) # Absolute path.
1117 ac_srcdir=$srcdir$ac_dir_suffix;
1118 ac_top_srcdir=$srcdir ;;
1119 *) # Relative path.
1120 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1121 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1122 esac
1124 # Do not use `cd foo && pwd` to compute absolute paths, because
1125 # the directories may not exist.
1126 case `pwd` in
1127 .) ac_abs_builddir="$ac_dir";;
1129 case "$ac_dir" in
1130 .) ac_abs_builddir=`pwd`;;
1131 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1132 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1133 esac;;
1134 esac
1135 case $ac_abs_builddir in
1136 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1138 case ${ac_top_builddir}. in
1139 .) ac_abs_top_builddir=$ac_abs_builddir;;
1140 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1141 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1142 esac;;
1143 esac
1144 case $ac_abs_builddir in
1145 .) ac_abs_srcdir=$ac_srcdir;;
1147 case $ac_srcdir in
1148 .) ac_abs_srcdir=$ac_abs_builddir;;
1149 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1150 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1151 esac;;
1152 esac
1153 case $ac_abs_builddir in
1154 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1156 case $ac_top_srcdir in
1157 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1158 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1159 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1160 esac;;
1161 esac
1163 cd $ac_dir
1164 # Check for guested configure; otherwise get Cygnus style configure.
1165 if test -f $ac_srcdir/configure.gnu; then
1166 echo
1167 $SHELL $ac_srcdir/configure.gnu --help=recursive
1168 elif test -f $ac_srcdir/configure; then
1169 echo
1170 $SHELL $ac_srcdir/configure --help=recursive
1171 elif test -f $ac_srcdir/configure.ac ||
1172 test -f $ac_srcdir/configure.in; then
1173 echo
1174 $ac_configure --help
1175 else
1176 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1178 cd $ac_popdir
1179 done
1182 test -n "$ac_init_help" && exit 0
1183 if $ac_init_version; then
1184 cat <<\_ACEOF
1185 Tango configure 6.1.1
1186 generated by GNU Autoconf 2.59
1188 Copyright (C) 2003 Free Software Foundation, Inc.
1189 This configure script is free software; the Free Software Foundation
1190 gives unlimited permission to copy, distribute and modify it.
1191 _ACEOF
1192 exit 0
1194 exec 5>config.log
1195 cat >&5 <<_ACEOF
1196 This file contains any messages produced by compilers while
1197 running configure, to aid debugging if configure makes a mistake.
1199 It was created by Tango $as_me 6.1.1, which was
1200 generated by GNU Autoconf 2.59. Invocation command line was
1202 $ $0 $@
1204 _ACEOF
1206 cat <<_ASUNAME
1207 ## --------- ##
1208 ## Platform. ##
1209 ## --------- ##
1211 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1212 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1213 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1214 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1215 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1217 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1218 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1220 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1221 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1222 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1223 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1224 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1225 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1226 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1228 _ASUNAME
1230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1231 for as_dir in $PATH
1233 IFS=$as_save_IFS
1234 test -z "$as_dir" && as_dir=.
1235 echo "PATH: $as_dir"
1236 done
1238 } >&5
1240 cat >&5 <<_ACEOF
1243 ## ----------- ##
1244 ## Core tests. ##
1245 ## ----------- ##
1247 _ACEOF
1250 # Keep a trace of the command line.
1251 # Strip out --no-create and --no-recursion so they do not pile up.
1252 # Strip out --silent because we don't want to record it for future runs.
1253 # Also quote any args containing shell meta-characters.
1254 # Make two passes to allow for proper duplicate-argument suppression.
1255 ac_configure_args=
1256 ac_configure_args0=
1257 ac_configure_args1=
1258 ac_sep=
1259 ac_must_keep_next=false
1260 for ac_pass in 1 2
1262 for ac_arg
1264 case $ac_arg in
1265 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1266 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1267 | -silent | --silent | --silen | --sile | --sil)
1268 continue ;;
1269 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1270 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1271 esac
1272 case $ac_pass in
1273 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1275 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1276 if test $ac_must_keep_next = true; then
1277 ac_must_keep_next=false # Got value, back to normal.
1278 else
1279 case $ac_arg in
1280 *=* | --config-cache | -C | -disable-* | --disable-* \
1281 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1282 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1283 | -with-* | --with-* | -without-* | --without-* | --x)
1284 case "$ac_configure_args0 " in
1285 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1286 esac
1288 -* ) ac_must_keep_next=true ;;
1289 esac
1291 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1292 # Get rid of the leading space.
1293 ac_sep=" "
1295 esac
1296 done
1297 done
1298 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1299 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1301 # When interrupted or exit'd, cleanup temporary files, and complete
1302 # config.log. We remove comments because anyway the quotes in there
1303 # would cause problems or look ugly.
1304 # WARNING: Be sure not to use single quotes in there, as some shells,
1305 # such as our DU 5.0 friend, will then `close' the trap.
1306 trap 'exit_status=$?
1307 # Save into config.log some information that might help in debugging.
1309 echo
1311 cat <<\_ASBOX
1312 ## ---------------- ##
1313 ## Cache variables. ##
1314 ## ---------------- ##
1315 _ASBOX
1316 echo
1317 # The following way of writing the cache mishandles newlines in values,
1319 (set) 2>&1 |
1320 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1321 *ac_space=\ *)
1322 sed -n \
1323 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1324 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1327 sed -n \
1328 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1330 esac;
1332 echo
1334 cat <<\_ASBOX
1335 ## ----------------- ##
1336 ## Output variables. ##
1337 ## ----------------- ##
1338 _ASBOX
1339 echo
1340 for ac_var in $ac_subst_vars
1342 eval ac_val=$`echo $ac_var`
1343 echo "$ac_var='"'"'$ac_val'"'"'"
1344 done | sort
1345 echo
1347 if test -n "$ac_subst_files"; then
1348 cat <<\_ASBOX
1349 ## ------------- ##
1350 ## Output files. ##
1351 ## ------------- ##
1352 _ASBOX
1353 echo
1354 for ac_var in $ac_subst_files
1356 eval ac_val=$`echo $ac_var`
1357 echo "$ac_var='"'"'$ac_val'"'"'"
1358 done | sort
1359 echo
1362 if test -s confdefs.h; then
1363 cat <<\_ASBOX
1364 ## ----------- ##
1365 ## confdefs.h. ##
1366 ## ----------- ##
1367 _ASBOX
1368 echo
1369 sed "/^$/d" confdefs.h | sort
1370 echo
1372 test "$ac_signal" != 0 &&
1373 echo "$as_me: caught signal $ac_signal"
1374 echo "$as_me: exit $exit_status"
1375 } >&5
1376 rm -f core *.core &&
1377 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1378 exit $exit_status
1380 for ac_signal in 1 2 13 15; do
1381 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1382 done
1383 ac_signal=0
1385 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1386 rm -rf conftest* confdefs.h
1387 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1388 echo >confdefs.h
1390 # Predefined preprocessor variables.
1392 cat >>confdefs.h <<_ACEOF
1393 #define PACKAGE_NAME "$PACKAGE_NAME"
1394 _ACEOF
1397 cat >>confdefs.h <<_ACEOF
1398 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1399 _ACEOF
1402 cat >>confdefs.h <<_ACEOF
1403 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1404 _ACEOF
1407 cat >>confdefs.h <<_ACEOF
1408 #define PACKAGE_STRING "$PACKAGE_STRING"
1409 _ACEOF
1412 cat >>confdefs.h <<_ACEOF
1413 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1414 _ACEOF
1417 # Let the site file select an alternate cache file if it wants to.
1418 # Prefer explicitly selected file to automatically selected ones.
1419 if test -z "$CONFIG_SITE"; then
1420 if test "x$prefix" != xNONE; then
1421 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1422 else
1423 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1426 for ac_site_file in $CONFIG_SITE; do
1427 if test -r "$ac_site_file"; then
1428 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1429 echo "$as_me: loading site script $ac_site_file" >&6;}
1430 sed 's/^/| /' "$ac_site_file" >&5
1431 . "$ac_site_file"
1433 done
1435 if test -r "$cache_file"; then
1436 # Some versions of bash will fail to source /dev/null (special
1437 # files actually), so we avoid doing that.
1438 if test -f "$cache_file"; then
1439 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1440 echo "$as_me: loading cache $cache_file" >&6;}
1441 case $cache_file in
1442 [\\/]* | ?:[\\/]* ) . $cache_file;;
1443 *) . ./$cache_file;;
1444 esac
1446 else
1447 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1448 echo "$as_me: creating cache $cache_file" >&6;}
1449 >$cache_file
1452 # Check that the precious variables saved in the cache have kept the same
1453 # value.
1454 ac_cache_corrupted=false
1455 for ac_var in `(set) 2>&1 |
1456 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1457 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1458 eval ac_new_set=\$ac_env_${ac_var}_set
1459 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1460 eval ac_new_val="\$ac_env_${ac_var}_value"
1461 case $ac_old_set,$ac_new_set in
1462 set,)
1463 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1464 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1465 ac_cache_corrupted=: ;;
1466 ,set)
1467 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1468 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1469 ac_cache_corrupted=: ;;
1470 ,);;
1472 if test "x$ac_old_val" != "x$ac_new_val"; then
1473 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1474 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1475 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1476 echo "$as_me: former value: $ac_old_val" >&2;}
1477 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1478 echo "$as_me: current value: $ac_new_val" >&2;}
1479 ac_cache_corrupted=:
1480 fi;;
1481 esac
1482 # Pass precious variables to config.status.
1483 if test "$ac_new_set" = set; then
1484 case $ac_new_val in
1485 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1486 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1487 *) ac_arg=$ac_var=$ac_new_val ;;
1488 esac
1489 case " $ac_configure_args " in
1490 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1491 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1492 esac
1494 done
1495 if $ac_cache_corrupted; then
1496 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1497 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1498 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1499 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1500 { (exit 1); exit 1; }; }
1503 ac_ext=c
1504 ac_cpp='$CPP $CPPFLAGS'
1505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1540 ac_aux_dir=
1541 for ac_dir in config $srcdir/config; do
1542 if test -f $ac_dir/install-sh; then
1543 ac_aux_dir=$ac_dir
1544 ac_install_sh="$ac_aux_dir/install-sh -c"
1545 break
1546 elif test -f $ac_dir/install.sh; then
1547 ac_aux_dir=$ac_dir
1548 ac_install_sh="$ac_aux_dir/install.sh -c"
1549 break
1550 elif test -f $ac_dir/shtool; then
1551 ac_aux_dir=$ac_dir
1552 ac_install_sh="$ac_aux_dir/shtool install -c"
1553 break
1555 done
1556 if test -z "$ac_aux_dir"; then
1557 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1558 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1559 { (exit 1); exit 1; }; }
1561 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1562 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1563 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1566 am__api_version="1.9"
1567 # Find a good install program. We prefer a C program (faster),
1568 # so one script is as good as another. But avoid the broken or
1569 # incompatible versions:
1570 # SysV /etc/install, /usr/sbin/install
1571 # SunOS /usr/etc/install
1572 # IRIX /sbin/install
1573 # AIX /bin/install
1574 # AmigaOS /C/install, which installs bootblocks on floppy discs
1575 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1576 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1577 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1578 # OS/2's system install, which has a completely different semantic
1579 # ./install, which can be erroneously created by make from ./install.sh.
1580 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1581 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1582 if test -z "$INSTALL"; then
1583 if test "${ac_cv_path_install+set}" = set; then
1584 echo $ECHO_N "(cached) $ECHO_C" >&6
1585 else
1586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1587 for as_dir in $PATH
1589 IFS=$as_save_IFS
1590 test -z "$as_dir" && as_dir=.
1591 # Account for people who put trailing slashes in PATH elements.
1592 case $as_dir/ in
1593 ./ | .// | /cC/* | \
1594 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1595 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1596 /usr/ucb/* ) ;;
1598 # OSF1 and SCO ODT 3.0 have their own names for install.
1599 # Don't use installbsd from OSF since it installs stuff as root
1600 # by default.
1601 for ac_prog in ginstall scoinst install; do
1602 for ac_exec_ext in '' $ac_executable_extensions; do
1603 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1604 if test $ac_prog = install &&
1605 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1606 # AIX install. It has an incompatible calling convention.
1608 elif test $ac_prog = install &&
1609 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1610 # program-specific install script used by HP pwplus--don't use.
1612 else
1613 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1614 break 3
1617 done
1618 done
1620 esac
1621 done
1625 if test "${ac_cv_path_install+set}" = set; then
1626 INSTALL=$ac_cv_path_install
1627 else
1628 # As a last resort, use the slow shell script. We don't cache a
1629 # path for INSTALL within a source directory, because that will
1630 # break other packages using the cache if that directory is
1631 # removed, or if the path is relative.
1632 INSTALL=$ac_install_sh
1635 echo "$as_me:$LINENO: result: $INSTALL" >&5
1636 echo "${ECHO_T}$INSTALL" >&6
1638 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1639 # It thinks the first close brace ends the variable substitution.
1640 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1642 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1644 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1646 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1647 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1648 # Just in case
1649 sleep 1
1650 echo timestamp > conftest.file
1651 # Do `set' in a subshell so we don't clobber the current shell's
1652 # arguments. Must try -L first in case configure is actually a
1653 # symlink; some systems play weird games with the mod time of symlinks
1654 # (eg FreeBSD returns the mod time of the symlink's containing
1655 # directory).
1656 if (
1657 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1658 if test "$*" = "X"; then
1659 # -L didn't work.
1660 set X `ls -t $srcdir/configure conftest.file`
1662 rm -f conftest.file
1663 if test "$*" != "X $srcdir/configure conftest.file" \
1664 && test "$*" != "X conftest.file $srcdir/configure"; then
1666 # If neither matched, then we have a broken ls. This can happen
1667 # if, for instance, CONFIG_SHELL is bash and it inherits a
1668 # broken ls alias from the environment. This has actually
1669 # happened. Such a system could not be considered "sane".
1670 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1671 alias in your environment" >&5
1672 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1673 alias in your environment" >&2;}
1674 { (exit 1); exit 1; }; }
1677 test "$2" = conftest.file
1679 then
1680 # Ok.
1682 else
1683 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1684 Check your system clock" >&5
1685 echo "$as_me: error: newly created file is older than distributed files!
1686 Check your system clock" >&2;}
1687 { (exit 1); exit 1; }; }
1689 echo "$as_me:$LINENO: result: yes" >&5
1690 echo "${ECHO_T}yes" >&6
1691 test "$program_prefix" != NONE &&
1692 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1693 # Use a double $ so make ignores it.
1694 test "$program_suffix" != NONE &&
1695 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1696 # Double any \ or $. echo might interpret backslashes.
1697 # By default was `s,x,x', remove it if useless.
1698 cat <<\_ACEOF >conftest.sed
1699 s/[\\$]/&&/g;s/;s,x,x,$//
1700 _ACEOF
1701 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1702 rm conftest.sed
1704 # expand $ac_aux_dir to an absolute path
1705 am_aux_dir=`cd $ac_aux_dir && pwd`
1707 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1708 # Use eval to expand $SHELL
1709 if eval "$MISSING --run true"; then
1710 am_missing_run="$MISSING --run "
1711 else
1712 am_missing_run=
1713 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1714 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1717 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1718 # We used to keeping the `.' as first argument, in order to
1719 # allow $(mkdir_p) to be used without argument. As in
1720 # $(mkdir_p) $(somedir)
1721 # where $(somedir) is conditionally defined. However this is wrong
1722 # for two reasons:
1723 # 1. if the package is installed by a user who cannot write `.'
1724 # make install will fail,
1725 # 2. the above comment should most certainly read
1726 # $(mkdir_p) $(DESTDIR)$(somedir)
1727 # so it does not work when $(somedir) is undefined and
1728 # $(DESTDIR) is not.
1729 # To support the latter case, we have to write
1730 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1731 # so the `.' trick is pointless.
1732 mkdir_p='mkdir -p --'
1733 else
1734 # On NextStep and OpenStep, the `mkdir' command does not
1735 # recognize any option. It will interpret all options as
1736 # directories to create, and then abort because `.' already
1737 # exists.
1738 for d in ./-p ./--version;
1740 test -d $d && rmdir $d
1741 done
1742 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1743 if test -f "$ac_aux_dir/mkinstalldirs"; then
1744 mkdir_p='$(mkinstalldirs)'
1745 else
1746 mkdir_p='$(install_sh) -d'
1750 for ac_prog in gawk mawk nawk awk
1752 # Extract the first word of "$ac_prog", so it can be a program name with args.
1753 set dummy $ac_prog; ac_word=$2
1754 echo "$as_me:$LINENO: checking for $ac_word" >&5
1755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1756 if test "${ac_cv_prog_AWK+set}" = set; then
1757 echo $ECHO_N "(cached) $ECHO_C" >&6
1758 else
1759 if test -n "$AWK"; then
1760 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1761 else
1762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1763 for as_dir in $PATH
1765 IFS=$as_save_IFS
1766 test -z "$as_dir" && as_dir=.
1767 for ac_exec_ext in '' $ac_executable_extensions; do
1768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1769 ac_cv_prog_AWK="$ac_prog"
1770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1771 break 2
1773 done
1774 done
1778 AWK=$ac_cv_prog_AWK
1779 if test -n "$AWK"; then
1780 echo "$as_me:$LINENO: result: $AWK" >&5
1781 echo "${ECHO_T}$AWK" >&6
1782 else
1783 echo "$as_me:$LINENO: result: no" >&5
1784 echo "${ECHO_T}no" >&6
1787 test -n "$AWK" && break
1788 done
1790 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1791 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1792 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1793 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1794 echo $ECHO_N "(cached) $ECHO_C" >&6
1795 else
1796 cat >conftest.make <<\_ACEOF
1797 all:
1798 @echo 'ac_maketemp="$(MAKE)"'
1799 _ACEOF
1800 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1801 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1802 if test -n "$ac_maketemp"; then
1803 eval ac_cv_prog_make_${ac_make}_set=yes
1804 else
1805 eval ac_cv_prog_make_${ac_make}_set=no
1807 rm -f conftest.make
1809 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1810 echo "$as_me:$LINENO: result: yes" >&5
1811 echo "${ECHO_T}yes" >&6
1812 SET_MAKE=
1813 else
1814 echo "$as_me:$LINENO: result: no" >&5
1815 echo "${ECHO_T}no" >&6
1816 SET_MAKE="MAKE=${MAKE-make}"
1819 rm -rf .tst 2>/dev/null
1820 mkdir .tst 2>/dev/null
1821 if test -d .tst; then
1822 am__leading_dot=.
1823 else
1824 am__leading_dot=_
1826 rmdir .tst 2>/dev/null
1828 # test to see if srcdir already configured
1829 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1830 test -f $srcdir/config.status; then
1831 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1832 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1833 { (exit 1); exit 1; }; }
1836 # test whether we have cygpath
1837 if test -z "$CYGPATH_W"; then
1838 if (cygpath --version) >/dev/null 2>/dev/null; then
1839 CYGPATH_W='cygpath -w'
1840 else
1841 CYGPATH_W=echo
1846 # Define the identity of the package.
1847 PACKAGE=$PACKAGE_TARNAME
1848 VERSION=$PACKAGE_VERSION
1851 cat >>confdefs.h <<_ACEOF
1852 #define PACKAGE "$PACKAGE"
1853 _ACEOF
1856 cat >>confdefs.h <<_ACEOF
1857 #define VERSION "$VERSION"
1858 _ACEOF
1860 # Some tools Automake needs.
1862 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1865 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1868 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1871 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1874 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1876 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1878 # Installed binaries are usually stripped using `strip' when the user
1879 # run `make install-strip'. However `strip' might not be the right
1880 # tool to use in cross-compilation environments, therefore Automake
1881 # will honor the `STRIP' environment variable to overrule this program.
1882 if test "$cross_compiling" != no; then
1883 if test -n "$ac_tool_prefix"; then
1884 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1885 set dummy ${ac_tool_prefix}strip; ac_word=$2
1886 echo "$as_me:$LINENO: checking for $ac_word" >&5
1887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1888 if test "${ac_cv_prog_STRIP+set}" = set; then
1889 echo $ECHO_N "(cached) $ECHO_C" >&6
1890 else
1891 if test -n "$STRIP"; then
1892 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1893 else
1894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1895 for as_dir in $PATH
1897 IFS=$as_save_IFS
1898 test -z "$as_dir" && as_dir=.
1899 for ac_exec_ext in '' $ac_executable_extensions; do
1900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1901 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1903 break 2
1905 done
1906 done
1910 STRIP=$ac_cv_prog_STRIP
1911 if test -n "$STRIP"; then
1912 echo "$as_me:$LINENO: result: $STRIP" >&5
1913 echo "${ECHO_T}$STRIP" >&6
1914 else
1915 echo "$as_me:$LINENO: result: no" >&5
1916 echo "${ECHO_T}no" >&6
1920 if test -z "$ac_cv_prog_STRIP"; then
1921 ac_ct_STRIP=$STRIP
1922 # Extract the first word of "strip", so it can be a program name with args.
1923 set dummy strip; ac_word=$2
1924 echo "$as_me:$LINENO: checking for $ac_word" >&5
1925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1926 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1927 echo $ECHO_N "(cached) $ECHO_C" >&6
1928 else
1929 if test -n "$ac_ct_STRIP"; then
1930 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1931 else
1932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1933 for as_dir in $PATH
1935 IFS=$as_save_IFS
1936 test -z "$as_dir" && as_dir=.
1937 for ac_exec_ext in '' $ac_executable_extensions; do
1938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1939 ac_cv_prog_ac_ct_STRIP="strip"
1940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1941 break 2
1943 done
1944 done
1946 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1949 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1950 if test -n "$ac_ct_STRIP"; then
1951 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1952 echo "${ECHO_T}$ac_ct_STRIP" >&6
1953 else
1954 echo "$as_me:$LINENO: result: no" >&5
1955 echo "${ECHO_T}no" >&6
1958 STRIP=$ac_ct_STRIP
1959 else
1960 STRIP="$ac_cv_prog_STRIP"
1964 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1966 # We need awk for the "check" target. The system "awk" is bad on
1967 # some platforms.
1968 # Always define AMTAR for backward compatibility.
1970 AMTAR=${AMTAR-"${am_missing_run}tar"}
1972 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1979 ac_config_headers="$ac_config_headers ac_config.h.tmp"
1987 VERSION_INFO=7:1:1
1989 ac_ext=cc
1990 ac_cpp='$CXXCPP $CPPFLAGS'
1991 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1992 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1993 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1994 if test -n "$ac_tool_prefix"; then
1995 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1997 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1998 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1999 echo "$as_me:$LINENO: checking for $ac_word" >&5
2000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2001 if test "${ac_cv_prog_CXX+set}" = set; then
2002 echo $ECHO_N "(cached) $ECHO_C" >&6
2003 else
2004 if test -n "$CXX"; then
2005 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2006 else
2007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2008 for as_dir in $PATH
2010 IFS=$as_save_IFS
2011 test -z "$as_dir" && as_dir=.
2012 for ac_exec_ext in '' $ac_executable_extensions; do
2013 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2014 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2016 break 2
2018 done
2019 done
2023 CXX=$ac_cv_prog_CXX
2024 if test -n "$CXX"; then
2025 echo "$as_me:$LINENO: result: $CXX" >&5
2026 echo "${ECHO_T}$CXX" >&6
2027 else
2028 echo "$as_me:$LINENO: result: no" >&5
2029 echo "${ECHO_T}no" >&6
2032 test -n "$CXX" && break
2033 done
2035 if test -z "$CXX"; then
2036 ac_ct_CXX=$CXX
2037 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2039 # Extract the first word of "$ac_prog", so it can be a program name with args.
2040 set dummy $ac_prog; ac_word=$2
2041 echo "$as_me:$LINENO: checking for $ac_word" >&5
2042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2043 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2044 echo $ECHO_N "(cached) $ECHO_C" >&6
2045 else
2046 if test -n "$ac_ct_CXX"; then
2047 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2048 else
2049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2050 for as_dir in $PATH
2052 IFS=$as_save_IFS
2053 test -z "$as_dir" && as_dir=.
2054 for ac_exec_ext in '' $ac_executable_extensions; do
2055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2056 ac_cv_prog_ac_ct_CXX="$ac_prog"
2057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2058 break 2
2060 done
2061 done
2065 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2066 if test -n "$ac_ct_CXX"; then
2067 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2068 echo "${ECHO_T}$ac_ct_CXX" >&6
2069 else
2070 echo "$as_me:$LINENO: result: no" >&5
2071 echo "${ECHO_T}no" >&6
2074 test -n "$ac_ct_CXX" && break
2075 done
2076 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2078 CXX=$ac_ct_CXX
2082 # Provide some information about the compiler.
2083 echo "$as_me:$LINENO:" \
2084 "checking for C++ compiler version" >&5
2085 ac_compiler=`set X $ac_compile; echo $2`
2086 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2087 (eval $ac_compiler --version </dev/null >&5) 2>&5
2088 ac_status=$?
2089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090 (exit $ac_status); }
2091 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2092 (eval $ac_compiler -v </dev/null >&5) 2>&5
2093 ac_status=$?
2094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095 (exit $ac_status); }
2096 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2097 (eval $ac_compiler -V </dev/null >&5) 2>&5
2098 ac_status=$?
2099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100 (exit $ac_status); }
2102 cat >conftest.$ac_ext <<_ACEOF
2103 /* confdefs.h. */
2104 _ACEOF
2105 cat confdefs.h >>conftest.$ac_ext
2106 cat >>conftest.$ac_ext <<_ACEOF
2107 /* end confdefs.h. */
2110 main ()
2114 return 0;
2116 _ACEOF
2117 ac_clean_files_save=$ac_clean_files
2118 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2119 # Try to create an executable without -o first, disregard a.out.
2120 # It will help us diagnose broken compilers, and finding out an intuition
2121 # of exeext.
2122 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2123 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2124 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2125 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2126 (eval $ac_link_default) 2>&5
2127 ac_status=$?
2128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129 (exit $ac_status); }; then
2130 # Find the output, starting from the most likely. This scheme is
2131 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2132 # resort.
2134 # Be careful to initialize this variable, since it used to be cached.
2135 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2136 ac_cv_exeext=
2137 # b.out is created by i960 compilers.
2138 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2140 test -f "$ac_file" || continue
2141 case $ac_file in
2142 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2144 conftest.$ac_ext )
2145 # This is the source file.
2147 [ab].out )
2148 # We found the default executable, but exeext='' is most
2149 # certainly right.
2150 break;;
2151 *.* )
2152 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2153 # FIXME: I believe we export ac_cv_exeext for Libtool,
2154 # but it would be cool to find out if it's true. Does anybody
2155 # maintain Libtool? --akim.
2156 export ac_cv_exeext
2157 break;;
2159 break;;
2160 esac
2161 done
2162 else
2163 echo "$as_me: failed program was:" >&5
2164 sed 's/^/| /' conftest.$ac_ext >&5
2166 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2167 See \`config.log' for more details." >&5
2168 echo "$as_me: error: C++ compiler cannot create executables
2169 See \`config.log' for more details." >&2;}
2170 { (exit 77); exit 77; }; }
2173 ac_exeext=$ac_cv_exeext
2174 echo "$as_me:$LINENO: result: $ac_file" >&5
2175 echo "${ECHO_T}$ac_file" >&6
2177 # Check the compiler produces executables we can run. If not, either
2178 # the compiler is broken, or we cross compile.
2179 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2180 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2181 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2182 # If not cross compiling, check that we can run a simple program.
2183 if test "$cross_compiling" != yes; then
2184 if { ac_try='./$ac_file'
2185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2186 (eval $ac_try) 2>&5
2187 ac_status=$?
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); }; }; then
2190 cross_compiling=no
2191 else
2192 if test "$cross_compiling" = maybe; then
2193 cross_compiling=yes
2194 else
2195 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2196 If you meant to cross compile, use \`--host'.
2197 See \`config.log' for more details." >&5
2198 echo "$as_me: error: cannot run C++ compiled programs.
2199 If you meant to cross compile, use \`--host'.
2200 See \`config.log' for more details." >&2;}
2201 { (exit 1); exit 1; }; }
2205 echo "$as_me:$LINENO: result: yes" >&5
2206 echo "${ECHO_T}yes" >&6
2208 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2209 ac_clean_files=$ac_clean_files_save
2210 # Check the compiler produces executables we can run. If not, either
2211 # the compiler is broken, or we cross compile.
2212 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2213 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2214 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2215 echo "${ECHO_T}$cross_compiling" >&6
2217 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2218 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2220 (eval $ac_link) 2>&5
2221 ac_status=$?
2222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223 (exit $ac_status); }; then
2224 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2225 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2226 # work properly (i.e., refer to `conftest.exe'), while it won't with
2227 # `rm'.
2228 for ac_file in conftest.exe conftest conftest.*; do
2229 test -f "$ac_file" || continue
2230 case $ac_file in
2231 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2232 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2233 export ac_cv_exeext
2234 break;;
2235 * ) break;;
2236 esac
2237 done
2238 else
2239 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2240 See \`config.log' for more details." >&5
2241 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2242 See \`config.log' for more details." >&2;}
2243 { (exit 1); exit 1; }; }
2246 rm -f conftest$ac_cv_exeext
2247 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2248 echo "${ECHO_T}$ac_cv_exeext" >&6
2250 rm -f conftest.$ac_ext
2251 EXEEXT=$ac_cv_exeext
2252 ac_exeext=$EXEEXT
2253 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2254 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2255 if test "${ac_cv_objext+set}" = set; then
2256 echo $ECHO_N "(cached) $ECHO_C" >&6
2257 else
2258 cat >conftest.$ac_ext <<_ACEOF
2259 /* confdefs.h. */
2260 _ACEOF
2261 cat confdefs.h >>conftest.$ac_ext
2262 cat >>conftest.$ac_ext <<_ACEOF
2263 /* end confdefs.h. */
2266 main ()
2270 return 0;
2272 _ACEOF
2273 rm -f conftest.o conftest.obj
2274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2275 (eval $ac_compile) 2>&5
2276 ac_status=$?
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); }; then
2279 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2280 case $ac_file in
2281 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2282 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2283 break;;
2284 esac
2285 done
2286 else
2287 echo "$as_me: failed program was:" >&5
2288 sed 's/^/| /' conftest.$ac_ext >&5
2290 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2291 See \`config.log' for more details." >&5
2292 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2293 See \`config.log' for more details." >&2;}
2294 { (exit 1); exit 1; }; }
2297 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2299 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2300 echo "${ECHO_T}$ac_cv_objext" >&6
2301 OBJEXT=$ac_cv_objext
2302 ac_objext=$OBJEXT
2303 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2304 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2305 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2306 echo $ECHO_N "(cached) $ECHO_C" >&6
2307 else
2308 cat >conftest.$ac_ext <<_ACEOF
2309 /* confdefs.h. */
2310 _ACEOF
2311 cat confdefs.h >>conftest.$ac_ext
2312 cat >>conftest.$ac_ext <<_ACEOF
2313 /* end confdefs.h. */
2316 main ()
2318 #ifndef __GNUC__
2319 choke me
2320 #endif
2323 return 0;
2325 _ACEOF
2326 rm -f conftest.$ac_objext
2327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2328 (eval $ac_compile) 2>conftest.er1
2329 ac_status=$?
2330 grep -v '^ *+' conftest.er1 >conftest.err
2331 rm -f conftest.er1
2332 cat conftest.err >&5
2333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334 (exit $ac_status); } &&
2335 { ac_try='test -z "$ac_cxx_werror_flag"
2336 || test ! -s conftest.err'
2337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2338 (eval $ac_try) 2>&5
2339 ac_status=$?
2340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341 (exit $ac_status); }; } &&
2342 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2348 ac_compiler_gnu=yes
2349 else
2350 echo "$as_me: failed program was:" >&5
2351 sed 's/^/| /' conftest.$ac_ext >&5
2353 ac_compiler_gnu=no
2355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2356 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2359 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2360 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2361 GXX=`test $ac_compiler_gnu = yes && echo yes`
2362 ac_test_CXXFLAGS=${CXXFLAGS+set}
2363 ac_save_CXXFLAGS=$CXXFLAGS
2364 CXXFLAGS="-g"
2365 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2366 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2367 if test "${ac_cv_prog_cxx_g+set}" = set; then
2368 echo $ECHO_N "(cached) $ECHO_C" >&6
2369 else
2370 cat >conftest.$ac_ext <<_ACEOF
2371 /* confdefs.h. */
2372 _ACEOF
2373 cat confdefs.h >>conftest.$ac_ext
2374 cat >>conftest.$ac_ext <<_ACEOF
2375 /* end confdefs.h. */
2378 main ()
2382 return 0;
2384 _ACEOF
2385 rm -f conftest.$ac_objext
2386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2387 (eval $ac_compile) 2>conftest.er1
2388 ac_status=$?
2389 grep -v '^ *+' conftest.er1 >conftest.err
2390 rm -f conftest.er1
2391 cat conftest.err >&5
2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393 (exit $ac_status); } &&
2394 { ac_try='test -z "$ac_cxx_werror_flag"
2395 || test ! -s conftest.err'
2396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397 (eval $ac_try) 2>&5
2398 ac_status=$?
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); }; } &&
2401 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2407 ac_cv_prog_cxx_g=yes
2408 else
2409 echo "$as_me: failed program was:" >&5
2410 sed 's/^/| /' conftest.$ac_ext >&5
2412 ac_cv_prog_cxx_g=no
2414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2416 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2417 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2418 if test "$ac_test_CXXFLAGS" = set; then
2419 CXXFLAGS=$ac_save_CXXFLAGS
2420 elif test $ac_cv_prog_cxx_g = yes; then
2421 if test "$GXX" = yes; then
2422 CXXFLAGS="-g -O2"
2423 else
2424 CXXFLAGS="-g"
2426 else
2427 if test "$GXX" = yes; then
2428 CXXFLAGS="-O2"
2429 else
2430 CXXFLAGS=
2433 for ac_declaration in \
2434 '' \
2435 'extern "C" void std::exit (int) throw (); using std::exit;' \
2436 'extern "C" void std::exit (int); using std::exit;' \
2437 'extern "C" void exit (int) throw ();' \
2438 'extern "C" void exit (int);' \
2439 'void exit (int);'
2441 cat >conftest.$ac_ext <<_ACEOF
2442 /* confdefs.h. */
2443 _ACEOF
2444 cat confdefs.h >>conftest.$ac_ext
2445 cat >>conftest.$ac_ext <<_ACEOF
2446 /* end confdefs.h. */
2447 $ac_declaration
2448 #include <stdlib.h>
2450 main ()
2452 exit (42);
2454 return 0;
2456 _ACEOF
2457 rm -f conftest.$ac_objext
2458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2459 (eval $ac_compile) 2>conftest.er1
2460 ac_status=$?
2461 grep -v '^ *+' conftest.er1 >conftest.err
2462 rm -f conftest.er1
2463 cat conftest.err >&5
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); } &&
2466 { ac_try='test -z "$ac_cxx_werror_flag"
2467 || test ! -s conftest.err'
2468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2469 (eval $ac_try) 2>&5
2470 ac_status=$?
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); }; } &&
2473 { ac_try='test -s conftest.$ac_objext'
2474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2475 (eval $ac_try) 2>&5
2476 ac_status=$?
2477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478 (exit $ac_status); }; }; then
2480 else
2481 echo "$as_me: failed program was:" >&5
2482 sed 's/^/| /' conftest.$ac_ext >&5
2484 continue
2486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2487 cat >conftest.$ac_ext <<_ACEOF
2488 /* confdefs.h. */
2489 _ACEOF
2490 cat confdefs.h >>conftest.$ac_ext
2491 cat >>conftest.$ac_ext <<_ACEOF
2492 /* end confdefs.h. */
2493 $ac_declaration
2495 main ()
2497 exit (42);
2499 return 0;
2501 _ACEOF
2502 rm -f conftest.$ac_objext
2503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2504 (eval $ac_compile) 2>conftest.er1
2505 ac_status=$?
2506 grep -v '^ *+' conftest.er1 >conftest.err
2507 rm -f conftest.er1
2508 cat conftest.err >&5
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); } &&
2511 { ac_try='test -z "$ac_cxx_werror_flag"
2512 || test ! -s conftest.err'
2513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2514 (eval $ac_try) 2>&5
2515 ac_status=$?
2516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517 (exit $ac_status); }; } &&
2518 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2524 break
2525 else
2526 echo "$as_me: failed program was:" >&5
2527 sed 's/^/| /' conftest.$ac_ext >&5
2530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2531 done
2532 rm -f conftest*
2533 if test -n "$ac_declaration"; then
2534 echo '#ifdef __cplusplus' >>confdefs.h
2535 echo $ac_declaration >>confdefs.h
2536 echo '#endif' >>confdefs.h
2539 ac_ext=c
2540 ac_cpp='$CPP $CPPFLAGS'
2541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2544 DEPDIR="${am__leading_dot}deps"
2546 ac_config_commands="$ac_config_commands depfiles"
2549 am_make=${MAKE-make}
2550 cat > confinc << 'END'
2551 am__doit:
2552 @echo done
2553 .PHONY: am__doit
2555 # If we don't find an include directive, just comment out the code.
2556 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2557 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2558 am__include="#"
2559 am__quote=
2560 _am_result=none
2561 # First try GNU make style include.
2562 echo "include confinc" > confmf
2563 # We grep out `Entering directory' and `Leaving directory'
2564 # messages which can occur if `w' ends up in MAKEFLAGS.
2565 # In particular we don't look at `^make:' because GNU make might
2566 # be invoked under some other name (usually "gmake"), in which
2567 # case it prints its new name instead of `make'.
2568 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2569 am__include=include
2570 am__quote=
2571 _am_result=GNU
2573 # Now try BSD make style include.
2574 if test "$am__include" = "#"; then
2575 echo '.include "confinc"' > confmf
2576 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2577 am__include=.include
2578 am__quote="\""
2579 _am_result=BSD
2584 echo "$as_me:$LINENO: result: $_am_result" >&5
2585 echo "${ECHO_T}$_am_result" >&6
2586 rm -f confinc confmf
2588 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2589 if test "${enable_dependency_tracking+set}" = set; then
2590 enableval="$enable_dependency_tracking"
2593 if test "x$enable_dependency_tracking" != xno; then
2594 am_depcomp="$ac_aux_dir/depcomp"
2595 AMDEPBACKSLASH='\'
2599 if test "x$enable_dependency_tracking" != xno; then
2600 AMDEP_TRUE=
2601 AMDEP_FALSE='#'
2602 else
2603 AMDEP_TRUE='#'
2604 AMDEP_FALSE=
2610 depcc="$CXX" am_compiler_list=
2612 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2613 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2614 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2615 echo $ECHO_N "(cached) $ECHO_C" >&6
2616 else
2617 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2618 # We make a subdir and do the tests there. Otherwise we can end up
2619 # making bogus files that we don't know about and never remove. For
2620 # instance it was reported that on HP-UX the gcc test will end up
2621 # making a dummy file named `D' -- because `-MD' means `put the output
2622 # in D'.
2623 mkdir conftest.dir
2624 # Copy depcomp to subdir because otherwise we won't find it if we're
2625 # using a relative directory.
2626 cp "$am_depcomp" conftest.dir
2627 cd conftest.dir
2628 # We will build objects and dependencies in a subdirectory because
2629 # it helps to detect inapplicable dependency modes. For instance
2630 # both Tru64's cc and ICC support -MD to output dependencies as a
2631 # side effect of compilation, but ICC will put the dependencies in
2632 # the current directory while Tru64 will put them in the object
2633 # directory.
2634 mkdir sub
2636 am_cv_CXX_dependencies_compiler_type=none
2637 if test "$am_compiler_list" = ""; then
2638 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2640 for depmode in $am_compiler_list; do
2641 # Setup a source with many dependencies, because some compilers
2642 # like to wrap large dependency lists on column 80 (with \), and
2643 # we should not choose a depcomp mode which is confused by this.
2645 # We need to recreate these files for each test, as the compiler may
2646 # overwrite some of them when testing with obscure command lines.
2647 # This happens at least with the AIX C compiler.
2648 : > sub/conftest.c
2649 for i in 1 2 3 4 5 6; do
2650 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2651 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2652 # Solaris 8's {/usr,}/bin/sh.
2653 touch sub/conftst$i.h
2654 done
2655 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2657 case $depmode in
2658 nosideeffect)
2659 # after this tag, mechanisms are not by side-effect, so they'll
2660 # only be used when explicitly requested
2661 if test "x$enable_dependency_tracking" = xyes; then
2662 continue
2663 else
2664 break
2667 none) break ;;
2668 esac
2669 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2670 # mode. It turns out that the SunPro C++ compiler does not properly
2671 # handle `-M -o', and we need to detect this.
2672 if depmode=$depmode \
2673 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2674 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2675 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2676 >/dev/null 2>conftest.err &&
2677 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2678 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2679 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2680 # icc doesn't choke on unknown options, it will just issue warnings
2681 # or remarks (even with -Werror). So we grep stderr for any message
2682 # that says an option was ignored or not supported.
2683 # When given -MP, icc 7.0 and 7.1 complain thusly:
2684 # icc: Command line warning: ignoring option '-M'; no argument required
2685 # The diagnosis changed in icc 8.0:
2686 # icc: Command line remark: option '-MP' not supported
2687 if (grep 'ignoring option' conftest.err ||
2688 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2689 am_cv_CXX_dependencies_compiler_type=$depmode
2690 break
2693 done
2695 cd ..
2696 rm -rf conftest.dir
2697 else
2698 am_cv_CXX_dependencies_compiler_type=none
2702 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2703 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2704 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2709 test "x$enable_dependency_tracking" != xno \
2710 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2711 am__fastdepCXX_TRUE=
2712 am__fastdepCXX_FALSE='#'
2713 else
2714 am__fastdepCXX_TRUE='#'
2715 am__fastdepCXX_FALSE=
2718 ac_ext=cc
2719 ac_cpp='$CXXCPP $CPPFLAGS'
2720 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2721 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2722 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2723 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
2724 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
2725 if test -z "$CXXCPP"; then
2726 if test "${ac_cv_prog_CXXCPP+set}" = set; then
2727 echo $ECHO_N "(cached) $ECHO_C" >&6
2728 else
2729 # Double quotes because CXXCPP needs to be expanded
2730 for CXXCPP in "$CXX -E" "/lib/cpp"
2732 ac_preproc_ok=false
2733 for ac_cxx_preproc_warn_flag in '' yes
2735 # Use a header file that comes with gcc, so configuring glibc
2736 # with a fresh cross-compiler works.
2737 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2738 # <limits.h> exists even on freestanding compilers.
2739 # On the NeXT, cc -E runs the code through the compiler's parser,
2740 # not just through cpp. "Syntax error" is here to catch this case.
2741 cat >conftest.$ac_ext <<_ACEOF
2742 /* confdefs.h. */
2743 _ACEOF
2744 cat confdefs.h >>conftest.$ac_ext
2745 cat >>conftest.$ac_ext <<_ACEOF
2746 /* end confdefs.h. */
2747 #ifdef __STDC__
2748 # include <limits.h>
2749 #else
2750 # include <assert.h>
2751 #endif
2752 Syntax error
2753 _ACEOF
2754 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2755 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2756 ac_status=$?
2757 grep -v '^ *+' conftest.er1 >conftest.err
2758 rm -f conftest.er1
2759 cat conftest.err >&5
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); } >/dev/null; then
2762 if test -s conftest.err; then
2763 ac_cpp_err=$ac_cxx_preproc_warn_flag
2764 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2765 else
2766 ac_cpp_err=
2768 else
2769 ac_cpp_err=yes
2771 if test -z "$ac_cpp_err"; then
2773 else
2774 echo "$as_me: failed program was:" >&5
2775 sed 's/^/| /' conftest.$ac_ext >&5
2777 # Broken: fails on valid input.
2778 continue
2780 rm -f conftest.err conftest.$ac_ext
2782 # OK, works on sane cases. Now check whether non-existent headers
2783 # can be detected and how.
2784 cat >conftest.$ac_ext <<_ACEOF
2785 /* confdefs.h. */
2786 _ACEOF
2787 cat confdefs.h >>conftest.$ac_ext
2788 cat >>conftest.$ac_ext <<_ACEOF
2789 /* end confdefs.h. */
2790 #include <ac_nonexistent.h>
2791 _ACEOF
2792 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2793 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2794 ac_status=$?
2795 grep -v '^ *+' conftest.er1 >conftest.err
2796 rm -f conftest.er1
2797 cat conftest.err >&5
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); } >/dev/null; then
2800 if test -s conftest.err; then
2801 ac_cpp_err=$ac_cxx_preproc_warn_flag
2802 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2803 else
2804 ac_cpp_err=
2806 else
2807 ac_cpp_err=yes
2809 if test -z "$ac_cpp_err"; then
2810 # Broken: success on invalid input.
2811 continue
2812 else
2813 echo "$as_me: failed program was:" >&5
2814 sed 's/^/| /' conftest.$ac_ext >&5
2816 # Passes both tests.
2817 ac_preproc_ok=:
2818 break
2820 rm -f conftest.err conftest.$ac_ext
2822 done
2823 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2824 rm -f conftest.err conftest.$ac_ext
2825 if $ac_preproc_ok; then
2826 break
2829 done
2830 ac_cv_prog_CXXCPP=$CXXCPP
2833 CXXCPP=$ac_cv_prog_CXXCPP
2834 else
2835 ac_cv_prog_CXXCPP=$CXXCPP
2837 echo "$as_me:$LINENO: result: $CXXCPP" >&5
2838 echo "${ECHO_T}$CXXCPP" >&6
2839 ac_preproc_ok=false
2840 for ac_cxx_preproc_warn_flag in '' yes
2842 # Use a header file that comes with gcc, so configuring glibc
2843 # with a fresh cross-compiler works.
2844 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2845 # <limits.h> exists even on freestanding compilers.
2846 # On the NeXT, cc -E runs the code through the compiler's parser,
2847 # not just through cpp. "Syntax error" is here to catch this case.
2848 cat >conftest.$ac_ext <<_ACEOF
2849 /* confdefs.h. */
2850 _ACEOF
2851 cat confdefs.h >>conftest.$ac_ext
2852 cat >>conftest.$ac_ext <<_ACEOF
2853 /* end confdefs.h. */
2854 #ifdef __STDC__
2855 # include <limits.h>
2856 #else
2857 # include <assert.h>
2858 #endif
2859 Syntax error
2860 _ACEOF
2861 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2862 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2863 ac_status=$?
2864 grep -v '^ *+' conftest.er1 >conftest.err
2865 rm -f conftest.er1
2866 cat conftest.err >&5
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); } >/dev/null; then
2869 if test -s conftest.err; then
2870 ac_cpp_err=$ac_cxx_preproc_warn_flag
2871 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2872 else
2873 ac_cpp_err=
2875 else
2876 ac_cpp_err=yes
2878 if test -z "$ac_cpp_err"; then
2880 else
2881 echo "$as_me: failed program was:" >&5
2882 sed 's/^/| /' conftest.$ac_ext >&5
2884 # Broken: fails on valid input.
2885 continue
2887 rm -f conftest.err conftest.$ac_ext
2889 # OK, works on sane cases. Now check whether non-existent headers
2890 # can be detected and how.
2891 cat >conftest.$ac_ext <<_ACEOF
2892 /* confdefs.h. */
2893 _ACEOF
2894 cat confdefs.h >>conftest.$ac_ext
2895 cat >>conftest.$ac_ext <<_ACEOF
2896 /* end confdefs.h. */
2897 #include <ac_nonexistent.h>
2898 _ACEOF
2899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2900 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2901 ac_status=$?
2902 grep -v '^ *+' conftest.er1 >conftest.err
2903 rm -f conftest.er1
2904 cat conftest.err >&5
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); } >/dev/null; then
2907 if test -s conftest.err; then
2908 ac_cpp_err=$ac_cxx_preproc_warn_flag
2909 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2910 else
2911 ac_cpp_err=
2913 else
2914 ac_cpp_err=yes
2916 if test -z "$ac_cpp_err"; then
2917 # Broken: success on invalid input.
2918 continue
2919 else
2920 echo "$as_me: failed program was:" >&5
2921 sed 's/^/| /' conftest.$ac_ext >&5
2923 # Passes both tests.
2924 ac_preproc_ok=:
2925 break
2927 rm -f conftest.err conftest.$ac_ext
2929 done
2930 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2931 rm -f conftest.err conftest.$ac_ext
2932 if $ac_preproc_ok; then
2934 else
2935 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2936 See \`config.log' for more details." >&5
2937 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2938 See \`config.log' for more details." >&2;}
2939 { (exit 1); exit 1; }; }
2942 ac_ext=c
2943 ac_cpp='$CPP $CPPFLAGS'
2944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2947 ac_ext=c
2948 ac_cpp='$CPP $CPPFLAGS'
2949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2952 if test -n "$ac_tool_prefix"; then
2953 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2954 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2955 echo "$as_me:$LINENO: checking for $ac_word" >&5
2956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2957 if test "${ac_cv_prog_CC+set}" = set; then
2958 echo $ECHO_N "(cached) $ECHO_C" >&6
2959 else
2960 if test -n "$CC"; then
2961 ac_cv_prog_CC="$CC" # Let the user override the test.
2962 else
2963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2964 for as_dir in $PATH
2966 IFS=$as_save_IFS
2967 test -z "$as_dir" && as_dir=.
2968 for ac_exec_ext in '' $ac_executable_extensions; do
2969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2970 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2972 break 2
2974 done
2975 done
2979 CC=$ac_cv_prog_CC
2980 if test -n "$CC"; then
2981 echo "$as_me:$LINENO: result: $CC" >&5
2982 echo "${ECHO_T}$CC" >&6
2983 else
2984 echo "$as_me:$LINENO: result: no" >&5
2985 echo "${ECHO_T}no" >&6
2989 if test -z "$ac_cv_prog_CC"; then
2990 ac_ct_CC=$CC
2991 # Extract the first word of "gcc", so it can be a program name with args.
2992 set dummy gcc; ac_word=$2
2993 echo "$as_me:$LINENO: checking for $ac_word" >&5
2994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2995 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2996 echo $ECHO_N "(cached) $ECHO_C" >&6
2997 else
2998 if test -n "$ac_ct_CC"; then
2999 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3000 else
3001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3002 for as_dir in $PATH
3004 IFS=$as_save_IFS
3005 test -z "$as_dir" && as_dir=.
3006 for ac_exec_ext in '' $ac_executable_extensions; do
3007 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3008 ac_cv_prog_ac_ct_CC="gcc"
3009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3010 break 2
3012 done
3013 done
3017 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3018 if test -n "$ac_ct_CC"; then
3019 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3020 echo "${ECHO_T}$ac_ct_CC" >&6
3021 else
3022 echo "$as_me:$LINENO: result: no" >&5
3023 echo "${ECHO_T}no" >&6
3026 CC=$ac_ct_CC
3027 else
3028 CC="$ac_cv_prog_CC"
3031 if test -z "$CC"; then
3032 if test -n "$ac_tool_prefix"; then
3033 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3034 set dummy ${ac_tool_prefix}cc; ac_word=$2
3035 echo "$as_me:$LINENO: checking for $ac_word" >&5
3036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3037 if test "${ac_cv_prog_CC+set}" = set; then
3038 echo $ECHO_N "(cached) $ECHO_C" >&6
3039 else
3040 if test -n "$CC"; then
3041 ac_cv_prog_CC="$CC" # Let the user override the test.
3042 else
3043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044 for as_dir in $PATH
3046 IFS=$as_save_IFS
3047 test -z "$as_dir" && as_dir=.
3048 for ac_exec_ext in '' $ac_executable_extensions; do
3049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3050 ac_cv_prog_CC="${ac_tool_prefix}cc"
3051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3052 break 2
3054 done
3055 done
3059 CC=$ac_cv_prog_CC
3060 if test -n "$CC"; then
3061 echo "$as_me:$LINENO: result: $CC" >&5
3062 echo "${ECHO_T}$CC" >&6
3063 else
3064 echo "$as_me:$LINENO: result: no" >&5
3065 echo "${ECHO_T}no" >&6
3069 if test -z "$ac_cv_prog_CC"; then
3070 ac_ct_CC=$CC
3071 # Extract the first word of "cc", so it can be a program name with args.
3072 set dummy cc; ac_word=$2
3073 echo "$as_me:$LINENO: checking for $ac_word" >&5
3074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3075 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3076 echo $ECHO_N "(cached) $ECHO_C" >&6
3077 else
3078 if test -n "$ac_ct_CC"; then
3079 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3080 else
3081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082 for as_dir in $PATH
3084 IFS=$as_save_IFS
3085 test -z "$as_dir" && as_dir=.
3086 for ac_exec_ext in '' $ac_executable_extensions; do
3087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3088 ac_cv_prog_ac_ct_CC="cc"
3089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3090 break 2
3092 done
3093 done
3097 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3098 if test -n "$ac_ct_CC"; then
3099 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3100 echo "${ECHO_T}$ac_ct_CC" >&6
3101 else
3102 echo "$as_me:$LINENO: result: no" >&5
3103 echo "${ECHO_T}no" >&6
3106 CC=$ac_ct_CC
3107 else
3108 CC="$ac_cv_prog_CC"
3112 if test -z "$CC"; then
3113 # Extract the first word of "cc", so it can be a program name with args.
3114 set dummy cc; ac_word=$2
3115 echo "$as_me:$LINENO: checking for $ac_word" >&5
3116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3117 if test "${ac_cv_prog_CC+set}" = set; then
3118 echo $ECHO_N "(cached) $ECHO_C" >&6
3119 else
3120 if test -n "$CC"; then
3121 ac_cv_prog_CC="$CC" # Let the user override the test.
3122 else
3123 ac_prog_rejected=no
3124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3125 for as_dir in $PATH
3127 IFS=$as_save_IFS
3128 test -z "$as_dir" && as_dir=.
3129 for ac_exec_ext in '' $ac_executable_extensions; do
3130 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3131 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3132 ac_prog_rejected=yes
3133 continue
3135 ac_cv_prog_CC="cc"
3136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3137 break 2
3139 done
3140 done
3142 if test $ac_prog_rejected = yes; then
3143 # We found a bogon in the path, so make sure we never use it.
3144 set dummy $ac_cv_prog_CC
3145 shift
3146 if test $# != 0; then
3147 # We chose a different compiler from the bogus one.
3148 # However, it has the same basename, so the bogon will be chosen
3149 # first if we set CC to just the basename; use the full file name.
3150 shift
3151 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3156 CC=$ac_cv_prog_CC
3157 if test -n "$CC"; then
3158 echo "$as_me:$LINENO: result: $CC" >&5
3159 echo "${ECHO_T}$CC" >&6
3160 else
3161 echo "$as_me:$LINENO: result: no" >&5
3162 echo "${ECHO_T}no" >&6
3166 if test -z "$CC"; then
3167 if test -n "$ac_tool_prefix"; then
3168 for ac_prog in cl
3170 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3171 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3172 echo "$as_me:$LINENO: checking for $ac_word" >&5
3173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3174 if test "${ac_cv_prog_CC+set}" = set; then
3175 echo $ECHO_N "(cached) $ECHO_C" >&6
3176 else
3177 if test -n "$CC"; then
3178 ac_cv_prog_CC="$CC" # Let the user override the test.
3179 else
3180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3181 for as_dir in $PATH
3183 IFS=$as_save_IFS
3184 test -z "$as_dir" && as_dir=.
3185 for ac_exec_ext in '' $ac_executable_extensions; do
3186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3187 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3189 break 2
3191 done
3192 done
3196 CC=$ac_cv_prog_CC
3197 if test -n "$CC"; then
3198 echo "$as_me:$LINENO: result: $CC" >&5
3199 echo "${ECHO_T}$CC" >&6
3200 else
3201 echo "$as_me:$LINENO: result: no" >&5
3202 echo "${ECHO_T}no" >&6
3205 test -n "$CC" && break
3206 done
3208 if test -z "$CC"; then
3209 ac_ct_CC=$CC
3210 for ac_prog in cl
3212 # Extract the first word of "$ac_prog", so it can be a program name with args.
3213 set dummy $ac_prog; ac_word=$2
3214 echo "$as_me:$LINENO: checking for $ac_word" >&5
3215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3216 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3217 echo $ECHO_N "(cached) $ECHO_C" >&6
3218 else
3219 if test -n "$ac_ct_CC"; then
3220 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3221 else
3222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3223 for as_dir in $PATH
3225 IFS=$as_save_IFS
3226 test -z "$as_dir" && as_dir=.
3227 for ac_exec_ext in '' $ac_executable_extensions; do
3228 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3229 ac_cv_prog_ac_ct_CC="$ac_prog"
3230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3231 break 2
3233 done
3234 done
3238 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3239 if test -n "$ac_ct_CC"; then
3240 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3241 echo "${ECHO_T}$ac_ct_CC" >&6
3242 else
3243 echo "$as_me:$LINENO: result: no" >&5
3244 echo "${ECHO_T}no" >&6
3247 test -n "$ac_ct_CC" && break
3248 done
3250 CC=$ac_ct_CC
3256 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3257 See \`config.log' for more details." >&5
3258 echo "$as_me: error: no acceptable C compiler found in \$PATH
3259 See \`config.log' for more details." >&2;}
3260 { (exit 1); exit 1; }; }
3262 # Provide some information about the compiler.
3263 echo "$as_me:$LINENO:" \
3264 "checking for C compiler version" >&5
3265 ac_compiler=`set X $ac_compile; echo $2`
3266 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3267 (eval $ac_compiler --version </dev/null >&5) 2>&5
3268 ac_status=$?
3269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270 (exit $ac_status); }
3271 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3272 (eval $ac_compiler -v </dev/null >&5) 2>&5
3273 ac_status=$?
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); }
3276 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3277 (eval $ac_compiler -V </dev/null >&5) 2>&5
3278 ac_status=$?
3279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280 (exit $ac_status); }
3282 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3283 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3284 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3285 echo $ECHO_N "(cached) $ECHO_C" >&6
3286 else
3287 cat >conftest.$ac_ext <<_ACEOF
3288 /* confdefs.h. */
3289 _ACEOF
3290 cat confdefs.h >>conftest.$ac_ext
3291 cat >>conftest.$ac_ext <<_ACEOF
3292 /* end confdefs.h. */
3295 main ()
3297 #ifndef __GNUC__
3298 choke me
3299 #endif
3302 return 0;
3304 _ACEOF
3305 rm -f conftest.$ac_objext
3306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3307 (eval $ac_compile) 2>conftest.er1
3308 ac_status=$?
3309 grep -v '^ *+' conftest.er1 >conftest.err
3310 rm -f conftest.er1
3311 cat conftest.err >&5
3312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313 (exit $ac_status); } &&
3314 { ac_try='test -z "$ac_c_werror_flag"
3315 || test ! -s conftest.err'
3316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3317 (eval $ac_try) 2>&5
3318 ac_status=$?
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); }; } &&
3321 { ac_try='test -s conftest.$ac_objext'
3322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3323 (eval $ac_try) 2>&5
3324 ac_status=$?
3325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326 (exit $ac_status); }; }; then
3327 ac_compiler_gnu=yes
3328 else
3329 echo "$as_me: failed program was:" >&5
3330 sed 's/^/| /' conftest.$ac_ext >&5
3332 ac_compiler_gnu=no
3334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3335 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3338 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3339 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3340 GCC=`test $ac_compiler_gnu = yes && echo yes`
3341 ac_test_CFLAGS=${CFLAGS+set}
3342 ac_save_CFLAGS=$CFLAGS
3343 CFLAGS="-g"
3344 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3345 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3346 if test "${ac_cv_prog_cc_g+set}" = set; then
3347 echo $ECHO_N "(cached) $ECHO_C" >&6
3348 else
3349 cat >conftest.$ac_ext <<_ACEOF
3350 /* confdefs.h. */
3351 _ACEOF
3352 cat confdefs.h >>conftest.$ac_ext
3353 cat >>conftest.$ac_ext <<_ACEOF
3354 /* end confdefs.h. */
3357 main ()
3361 return 0;
3363 _ACEOF
3364 rm -f conftest.$ac_objext
3365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3366 (eval $ac_compile) 2>conftest.er1
3367 ac_status=$?
3368 grep -v '^ *+' conftest.er1 >conftest.err
3369 rm -f conftest.er1
3370 cat conftest.err >&5
3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); } &&
3373 { ac_try='test -z "$ac_c_werror_flag"
3374 || test ! -s conftest.err'
3375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3376 (eval $ac_try) 2>&5
3377 ac_status=$?
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); }; } &&
3380 { ac_try='test -s conftest.$ac_objext'
3381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3382 (eval $ac_try) 2>&5
3383 ac_status=$?
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); }; }; then
3386 ac_cv_prog_cc_g=yes
3387 else
3388 echo "$as_me: failed program was:" >&5
3389 sed 's/^/| /' conftest.$ac_ext >&5
3391 ac_cv_prog_cc_g=no
3393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3395 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3396 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3397 if test "$ac_test_CFLAGS" = set; then
3398 CFLAGS=$ac_save_CFLAGS
3399 elif test $ac_cv_prog_cc_g = yes; then
3400 if test "$GCC" = yes; then
3401 CFLAGS="-g -O2"
3402 else
3403 CFLAGS="-g"
3405 else
3406 if test "$GCC" = yes; then
3407 CFLAGS="-O2"
3408 else
3409 CFLAGS=
3412 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3413 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3414 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3415 echo $ECHO_N "(cached) $ECHO_C" >&6
3416 else
3417 ac_cv_prog_cc_stdc=no
3418 ac_save_CC=$CC
3419 cat >conftest.$ac_ext <<_ACEOF
3420 /* confdefs.h. */
3421 _ACEOF
3422 cat confdefs.h >>conftest.$ac_ext
3423 cat >>conftest.$ac_ext <<_ACEOF
3424 /* end confdefs.h. */
3425 #include <stdarg.h>
3426 #include <stdio.h>
3427 #include <sys/types.h>
3428 #include <sys/stat.h>
3429 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3430 struct buf { int x; };
3431 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3432 static char *e (p, i)
3433 char **p;
3434 int i;
3436 return p[i];
3438 static char *f (char * (*g) (char **, int), char **p, ...)
3440 char *s;
3441 va_list v;
3442 va_start (v,p);
3443 s = g (p, va_arg (v,int));
3444 va_end (v);
3445 return s;
3448 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3449 function prototypes and stuff, but not '\xHH' hex character constants.
3450 These don't provoke an error unfortunately, instead are silently treated
3451 as 'x'. The following induces an error, until -std1 is added to get
3452 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3453 array size at least. It's necessary to write '\x00'==0 to get something
3454 that's true only with -std1. */
3455 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3457 int test (int i, double x);
3458 struct s1 {int (*f) (int a);};
3459 struct s2 {int (*f) (double a);};
3460 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3461 int argc;
3462 char **argv;
3464 main ()
3466 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3468 return 0;
3470 _ACEOF
3471 # Don't try gcc -ansi; that turns off useful extensions and
3472 # breaks some systems' header files.
3473 # AIX -qlanglvl=ansi
3474 # Ultrix and OSF/1 -std1
3475 # HP-UX 10.20 and later -Ae
3476 # HP-UX older versions -Aa -D_HPUX_SOURCE
3477 # SVR4 -Xc -D__EXTENSIONS__
3478 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3480 CC="$ac_save_CC $ac_arg"
3481 rm -f conftest.$ac_objext
3482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3483 (eval $ac_compile) 2>conftest.er1
3484 ac_status=$?
3485 grep -v '^ *+' conftest.er1 >conftest.err
3486 rm -f conftest.er1
3487 cat conftest.err >&5
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); } &&
3490 { ac_try='test -z "$ac_c_werror_flag"
3491 || test ! -s conftest.err'
3492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3493 (eval $ac_try) 2>&5
3494 ac_status=$?
3495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496 (exit $ac_status); }; } &&
3497 { ac_try='test -s conftest.$ac_objext'
3498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3499 (eval $ac_try) 2>&5
3500 ac_status=$?
3501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502 (exit $ac_status); }; }; then
3503 ac_cv_prog_cc_stdc=$ac_arg
3504 break
3505 else
3506 echo "$as_me: failed program was:" >&5
3507 sed 's/^/| /' conftest.$ac_ext >&5
3510 rm -f conftest.err conftest.$ac_objext
3511 done
3512 rm -f conftest.$ac_ext conftest.$ac_objext
3513 CC=$ac_save_CC
3517 case "x$ac_cv_prog_cc_stdc" in
3518 x|xno)
3519 echo "$as_me:$LINENO: result: none needed" >&5
3520 echo "${ECHO_T}none needed" >&6 ;;
3522 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3523 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3524 CC="$CC $ac_cv_prog_cc_stdc" ;;
3525 esac
3527 # Some people use a C++ compiler to compile C. Since we use `exit',
3528 # in C++ we need to declare it. In case someone uses the same compiler
3529 # for both compiling C and C++ we need to have the C++ compiler decide
3530 # the declaration of exit, since it's the most demanding environment.
3531 cat >conftest.$ac_ext <<_ACEOF
3532 #ifndef __cplusplus
3533 choke me
3534 #endif
3535 _ACEOF
3536 rm -f conftest.$ac_objext
3537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3538 (eval $ac_compile) 2>conftest.er1
3539 ac_status=$?
3540 grep -v '^ *+' conftest.er1 >conftest.err
3541 rm -f conftest.er1
3542 cat conftest.err >&5
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); } &&
3545 { ac_try='test -z "$ac_c_werror_flag"
3546 || test ! -s conftest.err'
3547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3548 (eval $ac_try) 2>&5
3549 ac_status=$?
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); }; } &&
3552 { ac_try='test -s conftest.$ac_objext'
3553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3554 (eval $ac_try) 2>&5
3555 ac_status=$?
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); }; }; then
3558 for ac_declaration in \
3559 '' \
3560 'extern "C" void std::exit (int) throw (); using std::exit;' \
3561 'extern "C" void std::exit (int); using std::exit;' \
3562 'extern "C" void exit (int) throw ();' \
3563 'extern "C" void exit (int);' \
3564 'void exit (int);'
3566 cat >conftest.$ac_ext <<_ACEOF
3567 /* confdefs.h. */
3568 _ACEOF
3569 cat confdefs.h >>conftest.$ac_ext
3570 cat >>conftest.$ac_ext <<_ACEOF
3571 /* end confdefs.h. */
3572 $ac_declaration
3573 #include <stdlib.h>
3575 main ()
3577 exit (42);
3579 return 0;
3581 _ACEOF
3582 rm -f conftest.$ac_objext
3583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3584 (eval $ac_compile) 2>conftest.er1
3585 ac_status=$?
3586 grep -v '^ *+' conftest.er1 >conftest.err
3587 rm -f conftest.er1
3588 cat conftest.err >&5
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); } &&
3591 { ac_try='test -z "$ac_c_werror_flag"
3592 || test ! -s conftest.err'
3593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3594 (eval $ac_try) 2>&5
3595 ac_status=$?
3596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597 (exit $ac_status); }; } &&
3598 { ac_try='test -s conftest.$ac_objext'
3599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3600 (eval $ac_try) 2>&5
3601 ac_status=$?
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); }; }; then
3605 else
3606 echo "$as_me: failed program was:" >&5
3607 sed 's/^/| /' conftest.$ac_ext >&5
3609 continue
3611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3612 cat >conftest.$ac_ext <<_ACEOF
3613 /* confdefs.h. */
3614 _ACEOF
3615 cat confdefs.h >>conftest.$ac_ext
3616 cat >>conftest.$ac_ext <<_ACEOF
3617 /* end confdefs.h. */
3618 $ac_declaration
3620 main ()
3622 exit (42);
3624 return 0;
3626 _ACEOF
3627 rm -f conftest.$ac_objext
3628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3629 (eval $ac_compile) 2>conftest.er1
3630 ac_status=$?
3631 grep -v '^ *+' conftest.er1 >conftest.err
3632 rm -f conftest.er1
3633 cat conftest.err >&5
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); } &&
3636 { ac_try='test -z "$ac_c_werror_flag"
3637 || test ! -s conftest.err'
3638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3639 (eval $ac_try) 2>&5
3640 ac_status=$?
3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642 (exit $ac_status); }; } &&
3643 { ac_try='test -s conftest.$ac_objext'
3644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3645 (eval $ac_try) 2>&5
3646 ac_status=$?
3647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648 (exit $ac_status); }; }; then
3649 break
3650 else
3651 echo "$as_me: failed program was:" >&5
3652 sed 's/^/| /' conftest.$ac_ext >&5
3655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3656 done
3657 rm -f conftest*
3658 if test -n "$ac_declaration"; then
3659 echo '#ifdef __cplusplus' >>confdefs.h
3660 echo $ac_declaration >>confdefs.h
3661 echo '#endif' >>confdefs.h
3664 else
3665 echo "$as_me: failed program was:" >&5
3666 sed 's/^/| /' conftest.$ac_ext >&5
3669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3670 ac_ext=c
3671 ac_cpp='$CPP $CPPFLAGS'
3672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3676 depcc="$CC" am_compiler_list=
3678 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3679 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3680 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3681 echo $ECHO_N "(cached) $ECHO_C" >&6
3682 else
3683 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3684 # We make a subdir and do the tests there. Otherwise we can end up
3685 # making bogus files that we don't know about and never remove. For
3686 # instance it was reported that on HP-UX the gcc test will end up
3687 # making a dummy file named `D' -- because `-MD' means `put the output
3688 # in D'.
3689 mkdir conftest.dir
3690 # Copy depcomp to subdir because otherwise we won't find it if we're
3691 # using a relative directory.
3692 cp "$am_depcomp" conftest.dir
3693 cd conftest.dir
3694 # We will build objects and dependencies in a subdirectory because
3695 # it helps to detect inapplicable dependency modes. For instance
3696 # both Tru64's cc and ICC support -MD to output dependencies as a
3697 # side effect of compilation, but ICC will put the dependencies in
3698 # the current directory while Tru64 will put them in the object
3699 # directory.
3700 mkdir sub
3702 am_cv_CC_dependencies_compiler_type=none
3703 if test "$am_compiler_list" = ""; then
3704 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3706 for depmode in $am_compiler_list; do
3707 # Setup a source with many dependencies, because some compilers
3708 # like to wrap large dependency lists on column 80 (with \), and
3709 # we should not choose a depcomp mode which is confused by this.
3711 # We need to recreate these files for each test, as the compiler may
3712 # overwrite some of them when testing with obscure command lines.
3713 # This happens at least with the AIX C compiler.
3714 : > sub/conftest.c
3715 for i in 1 2 3 4 5 6; do
3716 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3717 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3718 # Solaris 8's {/usr,}/bin/sh.
3719 touch sub/conftst$i.h
3720 done
3721 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3723 case $depmode in
3724 nosideeffect)
3725 # after this tag, mechanisms are not by side-effect, so they'll
3726 # only be used when explicitly requested
3727 if test "x$enable_dependency_tracking" = xyes; then
3728 continue
3729 else
3730 break
3733 none) break ;;
3734 esac
3735 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3736 # mode. It turns out that the SunPro C++ compiler does not properly
3737 # handle `-M -o', and we need to detect this.
3738 if depmode=$depmode \
3739 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3740 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3741 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3742 >/dev/null 2>conftest.err &&
3743 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3744 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3745 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3746 # icc doesn't choke on unknown options, it will just issue warnings
3747 # or remarks (even with -Werror). So we grep stderr for any message
3748 # that says an option was ignored or not supported.
3749 # When given -MP, icc 7.0 and 7.1 complain thusly:
3750 # icc: Command line warning: ignoring option '-M'; no argument required
3751 # The diagnosis changed in icc 8.0:
3752 # icc: Command line remark: option '-MP' not supported
3753 if (grep 'ignoring option' conftest.err ||
3754 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3755 am_cv_CC_dependencies_compiler_type=$depmode
3756 break
3759 done
3761 cd ..
3762 rm -rf conftest.dir
3763 else
3764 am_cv_CC_dependencies_compiler_type=none
3768 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3769 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3770 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3775 test "x$enable_dependency_tracking" != xno \
3776 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3777 am__fastdepCC_TRUE=
3778 am__fastdepCC_FALSE='#'
3779 else
3780 am__fastdepCC_TRUE='#'
3781 am__fastdepCC_FALSE=
3785 ac_ext=c
3786 ac_cpp='$CPP $CPPFLAGS'
3787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3790 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3791 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3792 # On Suns, sometimes $CPP names a directory.
3793 if test -n "$CPP" && test -d "$CPP"; then
3794 CPP=
3796 if test -z "$CPP"; then
3797 if test "${ac_cv_prog_CPP+set}" = set; then
3798 echo $ECHO_N "(cached) $ECHO_C" >&6
3799 else
3800 # Double quotes because CPP needs to be expanded
3801 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3803 ac_preproc_ok=false
3804 for ac_c_preproc_warn_flag in '' yes
3806 # Use a header file that comes with gcc, so configuring glibc
3807 # with a fresh cross-compiler works.
3808 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3809 # <limits.h> exists even on freestanding compilers.
3810 # On the NeXT, cc -E runs the code through the compiler's parser,
3811 # not just through cpp. "Syntax error" is here to catch this case.
3812 cat >conftest.$ac_ext <<_ACEOF
3813 /* confdefs.h. */
3814 _ACEOF
3815 cat confdefs.h >>conftest.$ac_ext
3816 cat >>conftest.$ac_ext <<_ACEOF
3817 /* end confdefs.h. */
3818 #ifdef __STDC__
3819 # include <limits.h>
3820 #else
3821 # include <assert.h>
3822 #endif
3823 Syntax error
3824 _ACEOF
3825 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3826 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3827 ac_status=$?
3828 grep -v '^ *+' conftest.er1 >conftest.err
3829 rm -f conftest.er1
3830 cat conftest.err >&5
3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); } >/dev/null; then
3833 if test -s conftest.err; then
3834 ac_cpp_err=$ac_c_preproc_warn_flag
3835 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3836 else
3837 ac_cpp_err=
3839 else
3840 ac_cpp_err=yes
3842 if test -z "$ac_cpp_err"; then
3844 else
3845 echo "$as_me: failed program was:" >&5
3846 sed 's/^/| /' conftest.$ac_ext >&5
3848 # Broken: fails on valid input.
3849 continue
3851 rm -f conftest.err conftest.$ac_ext
3853 # OK, works on sane cases. Now check whether non-existent headers
3854 # can be detected and how.
3855 cat >conftest.$ac_ext <<_ACEOF
3856 /* confdefs.h. */
3857 _ACEOF
3858 cat confdefs.h >>conftest.$ac_ext
3859 cat >>conftest.$ac_ext <<_ACEOF
3860 /* end confdefs.h. */
3861 #include <ac_nonexistent.h>
3862 _ACEOF
3863 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3864 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3865 ac_status=$?
3866 grep -v '^ *+' conftest.er1 >conftest.err
3867 rm -f conftest.er1
3868 cat conftest.err >&5
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); } >/dev/null; then
3871 if test -s conftest.err; then
3872 ac_cpp_err=$ac_c_preproc_warn_flag
3873 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3874 else
3875 ac_cpp_err=
3877 else
3878 ac_cpp_err=yes
3880 if test -z "$ac_cpp_err"; then
3881 # Broken: success on invalid input.
3882 continue
3883 else
3884 echo "$as_me: failed program was:" >&5
3885 sed 's/^/| /' conftest.$ac_ext >&5
3887 # Passes both tests.
3888 ac_preproc_ok=:
3889 break
3891 rm -f conftest.err conftest.$ac_ext
3893 done
3894 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3895 rm -f conftest.err conftest.$ac_ext
3896 if $ac_preproc_ok; then
3897 break
3900 done
3901 ac_cv_prog_CPP=$CPP
3904 CPP=$ac_cv_prog_CPP
3905 else
3906 ac_cv_prog_CPP=$CPP
3908 echo "$as_me:$LINENO: result: $CPP" >&5
3909 echo "${ECHO_T}$CPP" >&6
3910 ac_preproc_ok=false
3911 for ac_c_preproc_warn_flag in '' yes
3913 # Use a header file that comes with gcc, so configuring glibc
3914 # with a fresh cross-compiler works.
3915 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3916 # <limits.h> exists even on freestanding compilers.
3917 # On the NeXT, cc -E runs the code through the compiler's parser,
3918 # not just through cpp. "Syntax error" is here to catch this case.
3919 cat >conftest.$ac_ext <<_ACEOF
3920 /* confdefs.h. */
3921 _ACEOF
3922 cat confdefs.h >>conftest.$ac_ext
3923 cat >>conftest.$ac_ext <<_ACEOF
3924 /* end confdefs.h. */
3925 #ifdef __STDC__
3926 # include <limits.h>
3927 #else
3928 # include <assert.h>
3929 #endif
3930 Syntax error
3931 _ACEOF
3932 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3933 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3934 ac_status=$?
3935 grep -v '^ *+' conftest.er1 >conftest.err
3936 rm -f conftest.er1
3937 cat conftest.err >&5
3938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939 (exit $ac_status); } >/dev/null; then
3940 if test -s conftest.err; then
3941 ac_cpp_err=$ac_c_preproc_warn_flag
3942 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3943 else
3944 ac_cpp_err=
3946 else
3947 ac_cpp_err=yes
3949 if test -z "$ac_cpp_err"; then
3951 else
3952 echo "$as_me: failed program was:" >&5
3953 sed 's/^/| /' conftest.$ac_ext >&5
3955 # Broken: fails on valid input.
3956 continue
3958 rm -f conftest.err conftest.$ac_ext
3960 # OK, works on sane cases. Now check whether non-existent headers
3961 # can be detected and how.
3962 cat >conftest.$ac_ext <<_ACEOF
3963 /* confdefs.h. */
3964 _ACEOF
3965 cat confdefs.h >>conftest.$ac_ext
3966 cat >>conftest.$ac_ext <<_ACEOF
3967 /* end confdefs.h. */
3968 #include <ac_nonexistent.h>
3969 _ACEOF
3970 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3971 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3972 ac_status=$?
3973 grep -v '^ *+' conftest.er1 >conftest.err
3974 rm -f conftest.er1
3975 cat conftest.err >&5
3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); } >/dev/null; then
3978 if test -s conftest.err; then
3979 ac_cpp_err=$ac_c_preproc_warn_flag
3980 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3981 else
3982 ac_cpp_err=
3984 else
3985 ac_cpp_err=yes
3987 if test -z "$ac_cpp_err"; then
3988 # Broken: success on invalid input.
3989 continue
3990 else
3991 echo "$as_me: failed program was:" >&5
3992 sed 's/^/| /' conftest.$ac_ext >&5
3994 # Passes both tests.
3995 ac_preproc_ok=:
3996 break
3998 rm -f conftest.err conftest.$ac_ext
4000 done
4001 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4002 rm -f conftest.err conftest.$ac_ext
4003 if $ac_preproc_ok; then
4005 else
4006 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4007 See \`config.log' for more details." >&5
4008 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4009 See \`config.log' for more details." >&2;}
4010 { (exit 1); exit 1; }; }
4013 ac_ext=c
4014 ac_cpp='$CPP $CPPFLAGS'
4015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4018 for ac_prog in gawk mawk nawk awk
4020 # Extract the first word of "$ac_prog", so it can be a program name with args.
4021 set dummy $ac_prog; ac_word=$2
4022 echo "$as_me:$LINENO: checking for $ac_word" >&5
4023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4024 if test "${ac_cv_prog_AWK+set}" = set; then
4025 echo $ECHO_N "(cached) $ECHO_C" >&6
4026 else
4027 if test -n "$AWK"; then
4028 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4029 else
4030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4031 for as_dir in $PATH
4033 IFS=$as_save_IFS
4034 test -z "$as_dir" && as_dir=.
4035 for ac_exec_ext in '' $ac_executable_extensions; do
4036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4037 ac_cv_prog_AWK="$ac_prog"
4038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4039 break 2
4041 done
4042 done
4046 AWK=$ac_cv_prog_AWK
4047 if test -n "$AWK"; then
4048 echo "$as_me:$LINENO: result: $AWK" >&5
4049 echo "${ECHO_T}$AWK" >&6
4050 else
4051 echo "$as_me:$LINENO: result: no" >&5
4052 echo "${ECHO_T}no" >&6
4055 test -n "$AWK" && break
4056 done
4057 # Find a good install program. We prefer a C program (faster),
4058 # so one script is as good as another. But avoid the broken or
4059 # incompatible versions:
4060 # SysV /etc/install, /usr/sbin/install
4061 # SunOS /usr/etc/install
4062 # IRIX /sbin/install
4063 # AIX /bin/install
4064 # AmigaOS /C/install, which installs bootblocks on floppy discs
4065 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4066 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4067 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4068 # OS/2's system install, which has a completely different semantic
4069 # ./install, which can be erroneously created by make from ./install.sh.
4070 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4071 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4072 if test -z "$INSTALL"; then
4073 if test "${ac_cv_path_install+set}" = set; then
4074 echo $ECHO_N "(cached) $ECHO_C" >&6
4075 else
4076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077 for as_dir in $PATH
4079 IFS=$as_save_IFS
4080 test -z "$as_dir" && as_dir=.
4081 # Account for people who put trailing slashes in PATH elements.
4082 case $as_dir/ in
4083 ./ | .// | /cC/* | \
4084 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4085 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4086 /usr/ucb/* ) ;;
4088 # OSF1 and SCO ODT 3.0 have their own names for install.
4089 # Don't use installbsd from OSF since it installs stuff as root
4090 # by default.
4091 for ac_prog in ginstall scoinst install; do
4092 for ac_exec_ext in '' $ac_executable_extensions; do
4093 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4094 if test $ac_prog = install &&
4095 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4096 # AIX install. It has an incompatible calling convention.
4098 elif test $ac_prog = install &&
4099 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4100 # program-specific install script used by HP pwplus--don't use.
4102 else
4103 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4104 break 3
4107 done
4108 done
4110 esac
4111 done
4115 if test "${ac_cv_path_install+set}" = set; then
4116 INSTALL=$ac_cv_path_install
4117 else
4118 # As a last resort, use the slow shell script. We don't cache a
4119 # path for INSTALL within a source directory, because that will
4120 # break other packages using the cache if that directory is
4121 # removed, or if the path is relative.
4122 INSTALL=$ac_install_sh
4125 echo "$as_me:$LINENO: result: $INSTALL" >&5
4126 echo "${ECHO_T}$INSTALL" >&6
4128 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4129 # It thinks the first close brace ends the variable substitution.
4130 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4132 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4134 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4135 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4136 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4137 LN_S=$as_ln_s
4138 if test "$LN_S" = "ln -s"; then
4139 echo "$as_me:$LINENO: result: yes" >&5
4140 echo "${ECHO_T}yes" >&6
4141 else
4142 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4143 echo "${ECHO_T}no, using $LN_S" >&6
4145 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4146 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4147 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4148 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4149 echo $ECHO_N "(cached) $ECHO_C" >&6
4150 else
4151 cat >conftest.make <<\_ACEOF
4152 all:
4153 @echo 'ac_maketemp="$(MAKE)"'
4154 _ACEOF
4155 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4156 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4157 if test -n "$ac_maketemp"; then
4158 eval ac_cv_prog_make_${ac_make}_set=yes
4159 else
4160 eval ac_cv_prog_make_${ac_make}_set=no
4162 rm -f conftest.make
4164 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4165 echo "$as_me:$LINENO: result: yes" >&5
4166 echo "${ECHO_T}yes" >&6
4167 SET_MAKE=
4168 else
4169 echo "$as_me:$LINENO: result: no" >&5
4170 echo "${ECHO_T}no" >&6
4171 SET_MAKE="MAKE=${MAKE-make}"
4177 echo "$as_me:$LINENO: checking whether using Sun Worckshop C++ compiler" >&5
4178 echo $ECHO_N "checking whether using Sun Worckshop C++ compiler... $ECHO_C" >&6
4179 if test "${rssh_cv_check_sunpro_cc+set}" = set; then
4180 echo $ECHO_N "(cached) $ECHO_C" >&6
4181 else
4184 ac_ext=cc
4185 ac_cpp='$CXXCPP $CPPFLAGS'
4186 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4187 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4188 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4190 cat >conftest.$ac_ext <<_ACEOF
4191 /* confdefs.h. */
4192 _ACEOF
4193 cat confdefs.h >>conftest.$ac_ext
4194 cat >>conftest.$ac_ext <<_ACEOF
4195 /* end confdefs.h. */
4198 main ()
4200 #ifndef __SUNPRO_CC
4201 # include "error: this is not Sun Workshop."
4202 #endif
4205 return 0;
4207 _ACEOF
4208 rm -f conftest.$ac_objext
4209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4210 (eval $ac_compile) 2>conftest.er1
4211 ac_status=$?
4212 grep -v '^ *+' conftest.er1 >conftest.err
4213 rm -f conftest.er1
4214 cat conftest.err >&5
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); } &&
4217 { ac_try='test -z "$ac_cxx_werror_flag"
4218 || test ! -s conftest.err'
4219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4220 (eval $ac_try) 2>&5
4221 ac_status=$?
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); }; } &&
4224 { ac_try='test -s conftest.$ac_objext'
4225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4226 (eval $ac_try) 2>&5
4227 ac_status=$?
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); }; }; then
4230 rssh_cv_check_sunpro_cc=yes
4231 else
4232 echo "$as_me: failed program was:" >&5
4233 sed 's/^/| /' conftest.$ac_ext >&5
4235 rssh_cv_check_sunpro_cc=no
4237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4238 ac_ext=c
4239 ac_cpp='$CPP $CPPFLAGS'
4240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4245 echo "$as_me:$LINENO: result: $rssh_cv_check_sunpro_cc" >&5
4246 echo "${ECHO_T}$rssh_cv_check_sunpro_cc" >&6
4247 if test ${rssh_cv_check_sunpro_cc} = yes
4248 then
4251 else
4256 if test "x$rssh_cv_check_sunpro_cc" = "xyes"; then
4257 AR="$CXX -xar"
4258 AR_FLAGS="-o"
4259 LD="$CXX -pta -G"
4260 # Check whether --enable-static or --disable-static was given.
4261 if test "${enable_static+set}" = set; then
4262 enableval="$enable_static"
4263 p=${PACKAGE-default}
4264 case $enableval in
4265 yes) enable_static=yes ;;
4266 no) enable_static=no ;;
4268 enable_static=no
4269 # Look at the argument we got. We use all the common list separators.
4270 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4271 for pkg in $enableval; do
4272 IFS="$lt_save_ifs"
4273 if test "X$pkg" = "X$p"; then
4274 enable_static=yes
4276 done
4277 IFS="$lt_save_ifs"
4279 esac
4280 else
4281 enable_static=no
4286 else
4287 if test "$CXX" = "c++" -o "$CXX" = "g++"
4288 then
4291 echo "$as_me:$LINENO: checking for egrep" >&5
4292 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4293 if test "${ac_cv_prog_egrep+set}" = set; then
4294 echo $ECHO_N "(cached) $ECHO_C" >&6
4295 else
4296 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4297 then ac_cv_prog_egrep='grep -E'
4298 else ac_cv_prog_egrep='egrep'
4301 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4302 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4303 EGREP=$ac_cv_prog_egrep
4306 echo "$as_me:$LINENO: checking for gcc compiler release (at least version 3.2.0)" >&5
4307 echo $ECHO_N "checking for gcc compiler release (at least version 3.2.0)... $ECHO_C" >&6
4308 if test "${ac_cv_gcc_version_3_2_0+set}" = set; then
4309 echo $ECHO_N "(cached) $ECHO_C" >&6
4310 else
4311 if test x$GCC = x ; then
4312 ac_cv_gcc_version_3_2_0=no
4313 else
4314 ac_gcc_date=0 ;
4315 cat >conftest.$ac_ext <<_ACEOF
4316 /* confdefs.h. */
4317 _ACEOF
4318 cat confdefs.h >>conftest.$ac_ext
4319 cat >>conftest.$ac_ext <<_ACEOF
4320 /* end confdefs.h. */
4321 #define HAVE_GCC_VERSION(MAJOR, MINOR, MICRO, DATE) \
4322 (__GNUC__ > (MAJOR) \
4323 || (__GNUC__ == (MAJOR) && __GNUC_MINOR__ > (MINOR)) \
4324 || (__GNUC__ == (MAJOR) && __GNUC_MINOR__ == (MINOR) \
4325 && __GNUC_PATCHLEVEL__ > (MICRO)) \
4326 || (__GNUC__ == (MAJOR) && __GNUC_MINOR__ == (MINOR) \
4327 && __GNUC_PATCHLEVEL__ == (MICRO) && ${ac_gcc_date}L >= (DATE)))
4328 #if HAVE_GCC_VERSION(3,2,0,0)
4330 #endif
4331 _ACEOF
4332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4333 $EGREP "yes" >/dev/null 2>&1; then
4334 ac_cv_gcc_version_3_2_0=yes
4335 else
4336 ac_cv_gcc_version_3_2_0=no
4338 rm -f conftest*
4343 echo "$as_me:$LINENO: result: $ac_cv_gcc_version_3_2_0" >&5
4344 echo "${ECHO_T}$ac_cv_gcc_version_3_2_0" >&6
4345 if test x$ac_cv_gcc_version_3_2_0 = xyes; then
4347 cat >>confdefs.h <<_ACEOF
4348 #define HAVE_GCC_VERSION_3_2_0 1
4349 _ACEOF
4353 if test "x$ac_cv_gcc_version_3_2_0" = "xno"; then
4354 { { echo "$as_me:$LINENO: error: Not supported gcc release. Should be 3.2.0 or above. Please update !" >&5
4355 echo "$as_me: error: Not supported gcc release. Should be 3.2.0 or above. Please update !" >&2;}
4356 { (exit -1); exit -1; }; }
4363 # Check whether --enable-java or --disable-java was given.
4364 if test "${enable_java+set}" = set; then
4365 enableval="$enable_java"
4367 else
4368 enable_java=yes
4372 # Check whether --with-java or --without-java was given.
4373 if test "${with_java+set}" = set; then
4374 withval="$with_java"
4375 JAVA=${with_java}
4376 else
4377 with_java=yes
4379 if test "x$enable_java" = "xyes" ; then
4380 if test "x$with_java" = "xno" -o -z "$with_java"; then
4381 with_java=
4382 enable_java=no
4383 else
4384 if test "x$with_java" = "xyes"; then
4385 # Extract the first word of "java", so it can be a program name with args.
4386 set dummy java; ac_word=$2
4387 echo "$as_me:$LINENO: checking for $ac_word" >&5
4388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4389 if test "${ac_cv_path_JAVA+set}" = set; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
4391 else
4392 case $JAVA in
4393 [\\/]* | ?:[\\/]*)
4394 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
4397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398 for as_dir in $PATH
4400 IFS=$as_save_IFS
4401 test -z "$as_dir" && as_dir=.
4402 for ac_exec_ext in '' $ac_executable_extensions; do
4403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4404 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
4405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4406 break 2
4408 done
4409 done
4412 esac
4414 JAVA=$ac_cv_path_JAVA
4416 if test -n "$JAVA"; then
4417 echo "$as_me:$LINENO: result: $JAVA" >&5
4418 echo "${ECHO_T}$JAVA" >&6
4419 else
4420 echo "$as_me:$LINENO: result: no" >&5
4421 echo "${ECHO_T}no" >&6
4425 echo "$as_me:$LINENO: checking for java release (at least version 1.5)" >&5
4426 echo $ECHO_N "checking for java release (at least version 1.5)... $ECHO_C" >&6
4427 if test "${ac_cv_java_version_1_5+set}" = set; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
4429 else
4431 if test -x $JAVA -a -f $JAVA; then
4432 VERS=`$JAVA -version 2>&1 | grep version | cut -d '"' -f 2`
4433 JAVA_VERSION=$VERS
4435 JAVA_MAJOR=`echo $VERS | cut -d '.' -f 1`
4436 JAVA_MINOR=`echo $VERS | cut -d '.' -f 2`
4437 JAVA_MICRO=`echo $VERS | cut -d '.' -f 3`
4440 if test $JAVA_MAJOR -lt 1; then
4441 ac_cv_java_version_1_5=no
4442 else
4443 if test $JAVA_MINOR -lt 5; then
4444 ac_cv_java_version_1_5=no
4445 else
4446 ac_cv_java_version_1_5=yes
4449 else
4450 ac_cv_java_version_1_5=no
4454 echo "$as_me:$LINENO: result: $ac_cv_java_version_1_5" >&5
4455 echo "${ECHO_T}$ac_cv_java_version_1_5" >&6
4457 if test "x$ac_cv_java_version_1_5" = "xno"; then
4458 { echo "$as_me:$LINENO: WARNING: Not supported java release. Should be 1.5.x or above. Java will be disabled for this build!" >&5
4459 echo "$as_me: WARNING: Not supported java release. Should be 1.5.x or above. Java will be disabled for this build!" >&2;}
4460 with_java=
4461 enable_java=no
4462 else
4463 with_java=$JAVA
4466 else
4467 with_java=
4473 if test x"$enable_java" != x"no"; then
4474 TANGO_JAVA_ENABLED_TRUE=
4475 TANGO_JAVA_ENABLED_FALSE='#'
4476 else
4477 TANGO_JAVA_ENABLED_TRUE='#'
4478 TANGO_JAVA_ENABLED_FALSE=
4485 # Check whether --with-doxygen or --without-doxygen was given.
4486 if test "${with_doxygen+set}" = set; then
4487 withval="$with_doxygen"
4488 DOXYGEN=${with_doxygen}
4489 else
4490 # Extract the first word of "doxygen", so it can be a program name with args.
4491 set dummy doxygen; ac_word=$2
4492 echo "$as_me:$LINENO: checking for $ac_word" >&5
4493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4494 if test "${ac_cv_path_DOXYGEN+set}" = set; then
4495 echo $ECHO_N "(cached) $ECHO_C" >&6
4496 else
4497 case $DOXYGEN in
4498 [\\/]* | ?:[\\/]*)
4499 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
4502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4503 for as_dir in $PATH
4505 IFS=$as_save_IFS
4506 test -z "$as_dir" && as_dir=.
4507 for ac_exec_ext in '' $ac_executable_extensions; do
4508 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4509 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
4510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4511 break 2
4513 done
4514 done
4517 esac
4519 DOXYGEN=$ac_cv_path_DOXYGEN
4521 if test -n "$DOXYGEN"; then
4522 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
4523 echo "${ECHO_T}$DOXYGEN" >&6
4524 else
4525 echo "$as_me:$LINENO: result: no" >&5
4526 echo "${ECHO_T}no" >&6
4531 if test -z "$DOXYGEN"; then
4532 DOXYGEN=NOT_INSTALLED
4536 # Check whether --enable-shared or --disable-shared was given.
4537 if test "${enable_shared+set}" = set; then
4538 enableval="$enable_shared"
4539 p=${PACKAGE-default}
4540 case $enableval in
4541 yes) enable_shared=yes ;;
4542 no) enable_shared=no ;;
4544 enable_shared=no
4545 # Look at the argument we got. We use all the common list separators.
4546 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4547 for pkg in $enableval; do
4548 IFS="$lt_save_ifs"
4549 if test "X$pkg" = "X$p"; then
4550 enable_shared=yes
4552 done
4553 IFS="$lt_save_ifs"
4555 esac
4556 else
4557 enable_shared=yes
4560 # Check whether --enable-fast-install or --disable-fast-install was given.
4561 if test "${enable_fast_install+set}" = set; then
4562 enableval="$enable_fast_install"
4563 p=${PACKAGE-default}
4564 case $enableval in
4565 yes) enable_fast_install=yes ;;
4566 no) enable_fast_install=no ;;
4568 enable_fast_install=no
4569 # Look at the argument we got. We use all the common list separators.
4570 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4571 for pkg in $enableval; do
4572 IFS="$lt_save_ifs"
4573 if test "X$pkg" = "X$p"; then
4574 enable_fast_install=yes
4576 done
4577 IFS="$lt_save_ifs"
4579 esac
4580 else
4581 enable_fast_install=yes
4584 # Make sure we can run config.sub.
4585 $ac_config_sub sun4 >/dev/null 2>&1 ||
4586 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4587 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4588 { (exit 1); exit 1; }; }
4590 echo "$as_me:$LINENO: checking build system type" >&5
4591 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4592 if test "${ac_cv_build+set}" = set; then
4593 echo $ECHO_N "(cached) $ECHO_C" >&6
4594 else
4595 ac_cv_build_alias=$build_alias
4596 test -z "$ac_cv_build_alias" &&
4597 ac_cv_build_alias=`$ac_config_guess`
4598 test -z "$ac_cv_build_alias" &&
4599 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4600 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4601 { (exit 1); exit 1; }; }
4602 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4603 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4604 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4605 { (exit 1); exit 1; }; }
4608 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4609 echo "${ECHO_T}$ac_cv_build" >&6
4610 build=$ac_cv_build
4611 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4612 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4613 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4616 echo "$as_me:$LINENO: checking host system type" >&5
4617 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4618 if test "${ac_cv_host+set}" = set; then
4619 echo $ECHO_N "(cached) $ECHO_C" >&6
4620 else
4621 ac_cv_host_alias=$host_alias
4622 test -z "$ac_cv_host_alias" &&
4623 ac_cv_host_alias=$ac_cv_build_alias
4624 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4625 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4626 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4627 { (exit 1); exit 1; }; }
4630 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4631 echo "${ECHO_T}$ac_cv_host" >&6
4632 host=$ac_cv_host
4633 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4634 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4635 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4638 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4639 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4640 if test "${lt_cv_path_SED+set}" = set; then
4641 echo $ECHO_N "(cached) $ECHO_C" >&6
4642 else
4643 # Loop through the user's path and test for sed and gsed.
4644 # Then use that list of sed's as ones to test for truncation.
4645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646 for as_dir in $PATH
4648 IFS=$as_save_IFS
4649 test -z "$as_dir" && as_dir=.
4650 for lt_ac_prog in sed gsed; do
4651 for ac_exec_ext in '' $ac_executable_extensions; do
4652 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4653 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4655 done
4656 done
4657 done
4658 IFS=$as_save_IFS
4659 lt_ac_max=0
4660 lt_ac_count=0
4661 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4662 # along with /bin/sed that truncates output.
4663 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4664 test ! -f $lt_ac_sed && continue
4665 cat /dev/null > conftest.in
4666 lt_ac_count=0
4667 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4668 # Check for GNU sed and select it if it is found.
4669 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4670 lt_cv_path_SED=$lt_ac_sed
4671 break
4673 while true; do
4674 cat conftest.in conftest.in >conftest.tmp
4675 mv conftest.tmp conftest.in
4676 cp conftest.in conftest.nl
4677 echo >>conftest.nl
4678 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4679 cmp -s conftest.out conftest.nl || break
4680 # 10000 chars as input seems more than enough
4681 test $lt_ac_count -gt 10 && break
4682 lt_ac_count=`expr $lt_ac_count + 1`
4683 if test $lt_ac_count -gt $lt_ac_max; then
4684 lt_ac_max=$lt_ac_count
4685 lt_cv_path_SED=$lt_ac_sed
4687 done
4688 done
4692 SED=$lt_cv_path_SED
4694 echo "$as_me:$LINENO: result: $SED" >&5
4695 echo "${ECHO_T}$SED" >&6
4698 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4699 if test "${with_gnu_ld+set}" = set; then
4700 withval="$with_gnu_ld"
4701 test "$withval" = no || with_gnu_ld=yes
4702 else
4703 with_gnu_ld=no
4705 ac_prog=ld
4706 if test "$GCC" = yes; then
4707 # Check if gcc -print-prog-name=ld gives a path.
4708 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4709 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4710 case $host in
4711 *-*-mingw*)
4712 # gcc leaves a trailing carriage return which upsets mingw
4713 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4715 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4716 esac
4717 case $ac_prog in
4718 # Accept absolute paths.
4719 [\\/]* | ?:[\\/]*)
4720 re_direlt='/[^/][^/]*/\.\./'
4721 # Canonicalize the pathname of ld
4722 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4723 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4724 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4725 done
4726 test -z "$LD" && LD="$ac_prog"
4729 # If it fails, then pretend we aren't using GCC.
4730 ac_prog=ld
4733 # If it is relative, then search for the first ld in PATH.
4734 with_gnu_ld=unknown
4736 esac
4737 elif test "$with_gnu_ld" = yes; then
4738 echo "$as_me:$LINENO: checking for GNU ld" >&5
4739 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4740 else
4741 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4742 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4744 if test "${lt_cv_path_LD+set}" = set; then
4745 echo $ECHO_N "(cached) $ECHO_C" >&6
4746 else
4747 if test -z "$LD"; then
4748 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4749 for ac_dir in $PATH; do
4750 IFS="$lt_save_ifs"
4751 test -z "$ac_dir" && ac_dir=.
4752 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4753 lt_cv_path_LD="$ac_dir/$ac_prog"
4754 # Check to see if the program is GNU ld. I'd rather use --version,
4755 # but apparently some variants of GNU ld only accept -v.
4756 # Break only if it was the GNU/non-GNU ld that we prefer.
4757 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4758 *GNU* | *'with BFD'*)
4759 test "$with_gnu_ld" != no && break
4762 test "$with_gnu_ld" != yes && break
4764 esac
4766 done
4767 IFS="$lt_save_ifs"
4768 else
4769 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4773 LD="$lt_cv_path_LD"
4774 if test -n "$LD"; then
4775 echo "$as_me:$LINENO: result: $LD" >&5
4776 echo "${ECHO_T}$LD" >&6
4777 else
4778 echo "$as_me:$LINENO: result: no" >&5
4779 echo "${ECHO_T}no" >&6
4781 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4782 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4783 { (exit 1); exit 1; }; }
4784 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4785 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4786 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4787 echo $ECHO_N "(cached) $ECHO_C" >&6
4788 else
4789 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4790 case `$LD -v 2>&1 </dev/null` in
4791 *GNU* | *'with BFD'*)
4792 lt_cv_prog_gnu_ld=yes
4795 lt_cv_prog_gnu_ld=no
4797 esac
4799 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4800 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4801 with_gnu_ld=$lt_cv_prog_gnu_ld
4804 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4805 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4806 if test "${lt_cv_ld_reload_flag+set}" = set; then
4807 echo $ECHO_N "(cached) $ECHO_C" >&6
4808 else
4809 lt_cv_ld_reload_flag='-r'
4811 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4812 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4813 reload_flag=$lt_cv_ld_reload_flag
4814 case $reload_flag in
4815 "" | " "*) ;;
4816 *) reload_flag=" $reload_flag" ;;
4817 esac
4818 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4819 case $host_os in
4820 darwin*)
4821 if test "$GCC" = yes; then
4822 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4823 else
4824 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4827 esac
4829 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4830 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4831 if test "${lt_cv_path_NM+set}" = set; then
4832 echo $ECHO_N "(cached) $ECHO_C" >&6
4833 else
4834 if test -n "$NM"; then
4835 # Let the user override the test.
4836 lt_cv_path_NM="$NM"
4837 else
4838 lt_nm_to_check="${ac_tool_prefix}nm"
4839 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4840 lt_nm_to_check="$lt_nm_to_check nm"
4842 for lt_tmp_nm in $lt_nm_to_check; do
4843 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4844 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4845 IFS="$lt_save_ifs"
4846 test -z "$ac_dir" && ac_dir=.
4847 tmp_nm="$ac_dir/$lt_tmp_nm"
4848 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4849 # Check to see if the nm accepts a BSD-compat flag.
4850 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4851 # nm: unknown option "B" ignored
4852 # Tru64's nm complains that /dev/null is an invalid object file
4853 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4854 */dev/null* | *'Invalid file or object type'*)
4855 lt_cv_path_NM="$tmp_nm -B"
4856 break
4859 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4860 */dev/null*)
4861 lt_cv_path_NM="$tmp_nm -p"
4862 break
4865 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4866 continue # so that we can try to find one that supports BSD flags
4868 esac
4870 esac
4872 done
4873 IFS="$lt_save_ifs"
4874 done
4875 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4878 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4879 echo "${ECHO_T}$lt_cv_path_NM" >&6
4880 NM="$lt_cv_path_NM"
4882 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4883 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4884 if test "${lt_cv_deplibs_check_method+set}" = set; then
4885 echo $ECHO_N "(cached) $ECHO_C" >&6
4886 else
4887 lt_cv_file_magic_cmd='$MAGIC_CMD'
4888 lt_cv_file_magic_test_file=
4889 lt_cv_deplibs_check_method='unknown'
4890 # Need to set the preceding variable on all platforms that support
4891 # interlibrary dependencies.
4892 # 'none' -- dependencies not supported.
4893 # `unknown' -- same as none, but documents that we really don't know.
4894 # 'pass_all' -- all dependencies passed with no checks.
4895 # 'test_compile' -- check by making test program.
4896 # 'file_magic [[regex]]' -- check by looking for files in library path
4897 # which responds to the $file_magic_cmd with a given extended regex.
4898 # If you have `file' or equivalent on your system and you're not sure
4899 # whether `pass_all' will *always* work, you probably want this one.
4901 case $host_os in
4902 aix4* | aix5*)
4903 lt_cv_deplibs_check_method=pass_all
4906 beos*)
4907 lt_cv_deplibs_check_method=pass_all
4910 bsdi[45]*)
4911 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4912 lt_cv_file_magic_cmd='/usr/bin/file -L'
4913 lt_cv_file_magic_test_file=/shlib/libc.so
4916 cygwin*)
4917 # func_win32_libid is a shell function defined in ltmain.sh
4918 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4919 lt_cv_file_magic_cmd='func_win32_libid'
4922 mingw* | pw32*)
4923 # Base MSYS/MinGW do not provide the 'file' command needed by
4924 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4925 # unless we find 'file', for example because we are cross-compiling.
4926 if ( file / ) >/dev/null 2>&1; then
4927 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4928 lt_cv_file_magic_cmd='func_win32_libid'
4929 else
4930 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4931 lt_cv_file_magic_cmd='$OBJDUMP -f'
4935 darwin* | rhapsody*)
4936 lt_cv_deplibs_check_method=pass_all
4939 freebsd* | dragonfly*)
4940 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4941 case $host_cpu in
4942 i*86 )
4943 # Not sure whether the presence of OpenBSD here was a mistake.
4944 # Let's accept both of them until this is cleared up.
4945 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4946 lt_cv_file_magic_cmd=/usr/bin/file
4947 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4949 esac
4950 else
4951 lt_cv_deplibs_check_method=pass_all
4955 gnu*)
4956 lt_cv_deplibs_check_method=pass_all
4959 hpux10.20* | hpux11*)
4960 lt_cv_file_magic_cmd=/usr/bin/file
4961 case $host_cpu in
4962 ia64*)
4963 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4964 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4966 hppa*64*)
4967 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]'
4968 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4971 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4972 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4974 esac
4977 interix[3-9]*)
4978 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4979 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4982 irix5* | irix6* | nonstopux*)
4983 case $LD in
4984 *-32|*"-32 ") libmagic=32-bit;;
4985 *-n32|*"-n32 ") libmagic=N32;;
4986 *-64|*"-64 ") libmagic=64-bit;;
4987 *) libmagic=never-match;;
4988 esac
4989 lt_cv_deplibs_check_method=pass_all
4992 # This must be Linux ELF.
4993 linux* | k*bsd*-gnu)
4994 lt_cv_deplibs_check_method=pass_all
4997 netbsd*)
4998 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4999 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5000 else
5001 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5005 newos6*)
5006 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5007 lt_cv_file_magic_cmd=/usr/bin/file
5008 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5011 nto-qnx*)
5012 lt_cv_deplibs_check_method=unknown
5015 openbsd*)
5016 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5017 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5018 else
5019 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5023 osf3* | osf4* | osf5*)
5024 lt_cv_deplibs_check_method=pass_all
5027 rdos*)
5028 lt_cv_deplibs_check_method=pass_all
5031 solaris*)
5032 lt_cv_deplibs_check_method=pass_all
5035 sysv4 | sysv4.3*)
5036 case $host_vendor in
5037 motorola)
5038 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]'
5039 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5041 ncr)
5042 lt_cv_deplibs_check_method=pass_all
5044 sequent)
5045 lt_cv_file_magic_cmd='/bin/file'
5046 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5048 sni)
5049 lt_cv_file_magic_cmd='/bin/file'
5050 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5051 lt_cv_file_magic_test_file=/lib/libc.so
5053 siemens)
5054 lt_cv_deplibs_check_method=pass_all
5057 lt_cv_deplibs_check_method=pass_all
5059 esac
5062 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5063 lt_cv_deplibs_check_method=pass_all
5065 esac
5068 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5069 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5070 file_magic_cmd=$lt_cv_file_magic_cmd
5071 deplibs_check_method=$lt_cv_deplibs_check_method
5072 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5077 # If no C compiler was specified, use CC.
5078 LTCC=${LTCC-"$CC"}
5080 # If no C compiler flags were specified, use CFLAGS.
5081 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5083 # Allow CC to be a program name with arguments.
5084 compiler=$CC
5086 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5087 if test "${enable_libtool_lock+set}" = set; then
5088 enableval="$enable_libtool_lock"
5091 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5093 # Some flags need to be propagated to the compiler or linker for good
5094 # libtool support.
5095 case $host in
5096 ia64-*-hpux*)
5097 # Find out which ABI we are using.
5098 echo 'int i;' > conftest.$ac_ext
5099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5100 (eval $ac_compile) 2>&5
5101 ac_status=$?
5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); }; then
5104 case `/usr/bin/file conftest.$ac_objext` in
5105 *ELF-32*)
5106 HPUX_IA64_MODE="32"
5108 *ELF-64*)
5109 HPUX_IA64_MODE="64"
5111 esac
5113 rm -rf conftest*
5115 *-*-irix6*)
5116 # Find out which ABI we are using.
5117 echo '#line 5117 "configure"' > conftest.$ac_ext
5118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5119 (eval $ac_compile) 2>&5
5120 ac_status=$?
5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); }; then
5123 if test "$lt_cv_prog_gnu_ld" = yes; then
5124 case `/usr/bin/file conftest.$ac_objext` in
5125 *32-bit*)
5126 LD="${LD-ld} -melf32bsmip"
5128 *N32*)
5129 LD="${LD-ld} -melf32bmipn32"
5131 *64-bit*)
5132 LD="${LD-ld} -melf64bmip"
5134 esac
5135 else
5136 case `/usr/bin/file conftest.$ac_objext` in
5137 *32-bit*)
5138 LD="${LD-ld} -32"
5140 *N32*)
5141 LD="${LD-ld} -n32"
5143 *64-bit*)
5144 LD="${LD-ld} -64"
5146 esac
5149 rm -rf conftest*
5152 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5153 s390*-*linux*|sparc*-*linux*)
5154 # Find out which ABI we are using.
5155 echo 'int i;' > conftest.$ac_ext
5156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5157 (eval $ac_compile) 2>&5
5158 ac_status=$?
5159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160 (exit $ac_status); }; then
5161 case `/usr/bin/file conftest.o` in
5162 *32-bit*)
5163 case $host in
5164 x86_64-*kfreebsd*-gnu)
5165 LD="${LD-ld} -m elf_i386_fbsd"
5167 x86_64-*linux*)
5168 LD="${LD-ld} -m elf_i386"
5170 ppc64-*linux*|powerpc64-*linux*)
5171 LD="${LD-ld} -m elf32ppclinux"
5173 s390x-*linux*)
5174 LD="${LD-ld} -m elf_s390"
5176 sparc64-*linux*)
5177 LD="${LD-ld} -m elf32_sparc"
5179 esac
5181 *64-bit*)
5182 case $host in
5183 x86_64-*kfreebsd*-gnu)
5184 LD="${LD-ld} -m elf_x86_64_fbsd"
5186 x86_64-*linux*)
5187 LD="${LD-ld} -m elf_x86_64"
5189 ppc*-*linux*|powerpc*-*linux*)
5190 LD="${LD-ld} -m elf64ppc"
5192 s390*-*linux*)
5193 LD="${LD-ld} -m elf64_s390"
5195 sparc*-*linux*)
5196 LD="${LD-ld} -m elf64_sparc"
5198 esac
5200 esac
5202 rm -rf conftest*
5205 *-*-sco3.2v5*)
5206 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5207 SAVE_CFLAGS="$CFLAGS"
5208 CFLAGS="$CFLAGS -belf"
5209 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5210 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5211 if test "${lt_cv_cc_needs_belf+set}" = set; then
5212 echo $ECHO_N "(cached) $ECHO_C" >&6
5213 else
5214 ac_ext=c
5215 ac_cpp='$CPP $CPPFLAGS'
5216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5220 cat >conftest.$ac_ext <<_ACEOF
5221 /* confdefs.h. */
5222 _ACEOF
5223 cat confdefs.h >>conftest.$ac_ext
5224 cat >>conftest.$ac_ext <<_ACEOF
5225 /* end confdefs.h. */
5228 main ()
5232 return 0;
5234 _ACEOF
5235 rm -f conftest.$ac_objext conftest$ac_exeext
5236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5237 (eval $ac_link) 2>conftest.er1
5238 ac_status=$?
5239 grep -v '^ *+' conftest.er1 >conftest.err
5240 rm -f conftest.er1
5241 cat conftest.err >&5
5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 (exit $ac_status); } &&
5244 { ac_try='test -z "$ac_c_werror_flag"
5245 || test ! -s conftest.err'
5246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5247 (eval $ac_try) 2>&5
5248 ac_status=$?
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); }; } &&
5251 { ac_try='test -s conftest$ac_exeext'
5252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5253 (eval $ac_try) 2>&5
5254 ac_status=$?
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); }; }; then
5257 lt_cv_cc_needs_belf=yes
5258 else
5259 echo "$as_me: failed program was:" >&5
5260 sed 's/^/| /' conftest.$ac_ext >&5
5262 lt_cv_cc_needs_belf=no
5264 rm -f conftest.err conftest.$ac_objext \
5265 conftest$ac_exeext conftest.$ac_ext
5266 ac_ext=c
5267 ac_cpp='$CPP $CPPFLAGS'
5268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5273 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5274 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5275 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5276 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5277 CFLAGS="$SAVE_CFLAGS"
5280 sparc*-*solaris*)
5281 # Find out which ABI we are using.
5282 echo 'int i;' > conftest.$ac_ext
5283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5284 (eval $ac_compile) 2>&5
5285 ac_status=$?
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); }; then
5288 case `/usr/bin/file conftest.o` in
5289 *64-bit*)
5290 case $lt_cv_prog_gnu_ld in
5291 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5292 *) LD="${LD-ld} -64" ;;
5293 esac
5295 esac
5297 rm -rf conftest*
5301 esac
5303 need_locks="$enable_libtool_lock"
5306 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5307 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5308 if test "${ac_cv_header_stdc+set}" = set; then
5309 echo $ECHO_N "(cached) $ECHO_C" >&6
5310 else
5311 cat >conftest.$ac_ext <<_ACEOF
5312 /* confdefs.h. */
5313 _ACEOF
5314 cat confdefs.h >>conftest.$ac_ext
5315 cat >>conftest.$ac_ext <<_ACEOF
5316 /* end confdefs.h. */
5317 #include <stdlib.h>
5318 #include <stdarg.h>
5319 #include <string.h>
5320 #include <float.h>
5323 main ()
5327 return 0;
5329 _ACEOF
5330 rm -f conftest.$ac_objext
5331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5332 (eval $ac_compile) 2>conftest.er1
5333 ac_status=$?
5334 grep -v '^ *+' conftest.er1 >conftest.err
5335 rm -f conftest.er1
5336 cat conftest.err >&5
5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); } &&
5339 { ac_try='test -z "$ac_c_werror_flag"
5340 || test ! -s conftest.err'
5341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5342 (eval $ac_try) 2>&5
5343 ac_status=$?
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); }; } &&
5346 { ac_try='test -s conftest.$ac_objext'
5347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5348 (eval $ac_try) 2>&5
5349 ac_status=$?
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); }; }; then
5352 ac_cv_header_stdc=yes
5353 else
5354 echo "$as_me: failed program was:" >&5
5355 sed 's/^/| /' conftest.$ac_ext >&5
5357 ac_cv_header_stdc=no
5359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5361 if test $ac_cv_header_stdc = yes; then
5362 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5363 cat >conftest.$ac_ext <<_ACEOF
5364 /* confdefs.h. */
5365 _ACEOF
5366 cat confdefs.h >>conftest.$ac_ext
5367 cat >>conftest.$ac_ext <<_ACEOF
5368 /* end confdefs.h. */
5369 #include <string.h>
5371 _ACEOF
5372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5373 $EGREP "memchr" >/dev/null 2>&1; then
5375 else
5376 ac_cv_header_stdc=no
5378 rm -f conftest*
5382 if test $ac_cv_header_stdc = yes; then
5383 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5384 cat >conftest.$ac_ext <<_ACEOF
5385 /* confdefs.h. */
5386 _ACEOF
5387 cat confdefs.h >>conftest.$ac_ext
5388 cat >>conftest.$ac_ext <<_ACEOF
5389 /* end confdefs.h. */
5390 #include <stdlib.h>
5392 _ACEOF
5393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5394 $EGREP "free" >/dev/null 2>&1; then
5396 else
5397 ac_cv_header_stdc=no
5399 rm -f conftest*
5403 if test $ac_cv_header_stdc = yes; then
5404 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5405 if test "$cross_compiling" = yes; then
5407 else
5408 cat >conftest.$ac_ext <<_ACEOF
5409 /* confdefs.h. */
5410 _ACEOF
5411 cat confdefs.h >>conftest.$ac_ext
5412 cat >>conftest.$ac_ext <<_ACEOF
5413 /* end confdefs.h. */
5414 #include <ctype.h>
5415 #if ((' ' & 0x0FF) == 0x020)
5416 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5417 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5418 #else
5419 # define ISLOWER(c) \
5420 (('a' <= (c) && (c) <= 'i') \
5421 || ('j' <= (c) && (c) <= 'r') \
5422 || ('s' <= (c) && (c) <= 'z'))
5423 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5424 #endif
5426 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5428 main ()
5430 int i;
5431 for (i = 0; i < 256; i++)
5432 if (XOR (islower (i), ISLOWER (i))
5433 || toupper (i) != TOUPPER (i))
5434 exit(2);
5435 exit (0);
5437 _ACEOF
5438 rm -f conftest$ac_exeext
5439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5440 (eval $ac_link) 2>&5
5441 ac_status=$?
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5445 (eval $ac_try) 2>&5
5446 ac_status=$?
5447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448 (exit $ac_status); }; }; then
5450 else
5451 echo "$as_me: program exited with status $ac_status" >&5
5452 echo "$as_me: failed program was:" >&5
5453 sed 's/^/| /' conftest.$ac_ext >&5
5455 ( exit $ac_status )
5456 ac_cv_header_stdc=no
5458 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5462 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5463 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5464 if test $ac_cv_header_stdc = yes; then
5466 cat >>confdefs.h <<\_ACEOF
5467 #define STDC_HEADERS 1
5468 _ACEOF
5472 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5482 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5483 inttypes.h stdint.h unistd.h
5485 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5486 echo "$as_me:$LINENO: checking for $ac_header" >&5
5487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5488 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5489 echo $ECHO_N "(cached) $ECHO_C" >&6
5490 else
5491 cat >conftest.$ac_ext <<_ACEOF
5492 /* confdefs.h. */
5493 _ACEOF
5494 cat confdefs.h >>conftest.$ac_ext
5495 cat >>conftest.$ac_ext <<_ACEOF
5496 /* end confdefs.h. */
5497 $ac_includes_default
5499 #include <$ac_header>
5500 _ACEOF
5501 rm -f conftest.$ac_objext
5502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5503 (eval $ac_compile) 2>conftest.er1
5504 ac_status=$?
5505 grep -v '^ *+' conftest.er1 >conftest.err
5506 rm -f conftest.er1
5507 cat conftest.err >&5
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); } &&
5510 { ac_try='test -z "$ac_c_werror_flag"
5511 || test ! -s conftest.err'
5512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5513 (eval $ac_try) 2>&5
5514 ac_status=$?
5515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516 (exit $ac_status); }; } &&
5517 { ac_try='test -s conftest.$ac_objext'
5518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5519 (eval $ac_try) 2>&5
5520 ac_status=$?
5521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5522 (exit $ac_status); }; }; then
5523 eval "$as_ac_Header=yes"
5524 else
5525 echo "$as_me: failed program was:" >&5
5526 sed 's/^/| /' conftest.$ac_ext >&5
5528 eval "$as_ac_Header=no"
5530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5532 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5533 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5535 cat >>confdefs.h <<_ACEOF
5536 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5537 _ACEOF
5541 done
5545 for ac_header in dlfcn.h
5547 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5549 echo "$as_me:$LINENO: checking for $ac_header" >&5
5550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5552 echo $ECHO_N "(cached) $ECHO_C" >&6
5554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5555 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5556 else
5557 # Is the header compilable?
5558 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5559 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5560 cat >conftest.$ac_ext <<_ACEOF
5561 /* confdefs.h. */
5562 _ACEOF
5563 cat confdefs.h >>conftest.$ac_ext
5564 cat >>conftest.$ac_ext <<_ACEOF
5565 /* end confdefs.h. */
5566 $ac_includes_default
5567 #include <$ac_header>
5568 _ACEOF
5569 rm -f conftest.$ac_objext
5570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5571 (eval $ac_compile) 2>conftest.er1
5572 ac_status=$?
5573 grep -v '^ *+' conftest.er1 >conftest.err
5574 rm -f conftest.er1
5575 cat conftest.err >&5
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); } &&
5578 { ac_try='test -z "$ac_c_werror_flag"
5579 || test ! -s conftest.err'
5580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5581 (eval $ac_try) 2>&5
5582 ac_status=$?
5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584 (exit $ac_status); }; } &&
5585 { ac_try='test -s conftest.$ac_objext'
5586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5587 (eval $ac_try) 2>&5
5588 ac_status=$?
5589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590 (exit $ac_status); }; }; then
5591 ac_header_compiler=yes
5592 else
5593 echo "$as_me: failed program was:" >&5
5594 sed 's/^/| /' conftest.$ac_ext >&5
5596 ac_header_compiler=no
5598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5599 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5600 echo "${ECHO_T}$ac_header_compiler" >&6
5602 # Is the header present?
5603 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5604 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5605 cat >conftest.$ac_ext <<_ACEOF
5606 /* confdefs.h. */
5607 _ACEOF
5608 cat confdefs.h >>conftest.$ac_ext
5609 cat >>conftest.$ac_ext <<_ACEOF
5610 /* end confdefs.h. */
5611 #include <$ac_header>
5612 _ACEOF
5613 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5614 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5615 ac_status=$?
5616 grep -v '^ *+' conftest.er1 >conftest.err
5617 rm -f conftest.er1
5618 cat conftest.err >&5
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); } >/dev/null; then
5621 if test -s conftest.err; then
5622 ac_cpp_err=$ac_c_preproc_warn_flag
5623 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5624 else
5625 ac_cpp_err=
5627 else
5628 ac_cpp_err=yes
5630 if test -z "$ac_cpp_err"; then
5631 ac_header_preproc=yes
5632 else
5633 echo "$as_me: failed program was:" >&5
5634 sed 's/^/| /' conftest.$ac_ext >&5
5636 ac_header_preproc=no
5638 rm -f conftest.err conftest.$ac_ext
5639 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5640 echo "${ECHO_T}$ac_header_preproc" >&6
5642 # So? What about this header?
5643 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5644 yes:no: )
5645 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5646 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5648 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5649 ac_header_preproc=yes
5651 no:yes:* )
5652 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5653 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5654 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5655 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5656 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5657 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5658 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5659 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5661 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5662 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5663 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5665 cat <<\_ASBOX
5666 ## ---------------------------- ##
5667 ## Report this to tango@esrf.fr ##
5668 ## ---------------------------- ##
5669 _ASBOX
5671 sed "s/^/$as_me: WARNING: /" >&2
5673 esac
5674 echo "$as_me:$LINENO: checking for $ac_header" >&5
5675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5676 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5677 echo $ECHO_N "(cached) $ECHO_C" >&6
5678 else
5679 eval "$as_ac_Header=\$ac_header_preproc"
5681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5682 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5685 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5686 cat >>confdefs.h <<_ACEOF
5687 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5688 _ACEOF
5692 done
5696 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5697 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5698 (test "X$CXX" != "Xg++"))) ; then
5699 ac_ext=cc
5700 ac_cpp='$CXXCPP $CPPFLAGS'
5701 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5702 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5703 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5704 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5705 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5706 if test -z "$CXXCPP"; then
5707 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5708 echo $ECHO_N "(cached) $ECHO_C" >&6
5709 else
5710 # Double quotes because CXXCPP needs to be expanded
5711 for CXXCPP in "$CXX -E" "/lib/cpp"
5713 ac_preproc_ok=false
5714 for ac_cxx_preproc_warn_flag in '' yes
5716 # Use a header file that comes with gcc, so configuring glibc
5717 # with a fresh cross-compiler works.
5718 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5719 # <limits.h> exists even on freestanding compilers.
5720 # On the NeXT, cc -E runs the code through the compiler's parser,
5721 # not just through cpp. "Syntax error" is here to catch this case.
5722 cat >conftest.$ac_ext <<_ACEOF
5723 /* confdefs.h. */
5724 _ACEOF
5725 cat confdefs.h >>conftest.$ac_ext
5726 cat >>conftest.$ac_ext <<_ACEOF
5727 /* end confdefs.h. */
5728 #ifdef __STDC__
5729 # include <limits.h>
5730 #else
5731 # include <assert.h>
5732 #endif
5733 Syntax error
5734 _ACEOF
5735 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5736 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5737 ac_status=$?
5738 grep -v '^ *+' conftest.er1 >conftest.err
5739 rm -f conftest.er1
5740 cat conftest.err >&5
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); } >/dev/null; then
5743 if test -s conftest.err; then
5744 ac_cpp_err=$ac_cxx_preproc_warn_flag
5745 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5746 else
5747 ac_cpp_err=
5749 else
5750 ac_cpp_err=yes
5752 if test -z "$ac_cpp_err"; then
5754 else
5755 echo "$as_me: failed program was:" >&5
5756 sed 's/^/| /' conftest.$ac_ext >&5
5758 # Broken: fails on valid input.
5759 continue
5761 rm -f conftest.err conftest.$ac_ext
5763 # OK, works on sane cases. Now check whether non-existent headers
5764 # can be detected and how.
5765 cat >conftest.$ac_ext <<_ACEOF
5766 /* confdefs.h. */
5767 _ACEOF
5768 cat confdefs.h >>conftest.$ac_ext
5769 cat >>conftest.$ac_ext <<_ACEOF
5770 /* end confdefs.h. */
5771 #include <ac_nonexistent.h>
5772 _ACEOF
5773 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5774 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5775 ac_status=$?
5776 grep -v '^ *+' conftest.er1 >conftest.err
5777 rm -f conftest.er1
5778 cat conftest.err >&5
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); } >/dev/null; then
5781 if test -s conftest.err; then
5782 ac_cpp_err=$ac_cxx_preproc_warn_flag
5783 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5784 else
5785 ac_cpp_err=
5787 else
5788 ac_cpp_err=yes
5790 if test -z "$ac_cpp_err"; then
5791 # Broken: success on invalid input.
5792 continue
5793 else
5794 echo "$as_me: failed program was:" >&5
5795 sed 's/^/| /' conftest.$ac_ext >&5
5797 # Passes both tests.
5798 ac_preproc_ok=:
5799 break
5801 rm -f conftest.err conftest.$ac_ext
5803 done
5804 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5805 rm -f conftest.err conftest.$ac_ext
5806 if $ac_preproc_ok; then
5807 break
5810 done
5811 ac_cv_prog_CXXCPP=$CXXCPP
5814 CXXCPP=$ac_cv_prog_CXXCPP
5815 else
5816 ac_cv_prog_CXXCPP=$CXXCPP
5818 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5819 echo "${ECHO_T}$CXXCPP" >&6
5820 ac_preproc_ok=false
5821 for ac_cxx_preproc_warn_flag in '' yes
5823 # Use a header file that comes with gcc, so configuring glibc
5824 # with a fresh cross-compiler works.
5825 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5826 # <limits.h> exists even on freestanding compilers.
5827 # On the NeXT, cc -E runs the code through the compiler's parser,
5828 # not just through cpp. "Syntax error" is here to catch this case.
5829 cat >conftest.$ac_ext <<_ACEOF
5830 /* confdefs.h. */
5831 _ACEOF
5832 cat confdefs.h >>conftest.$ac_ext
5833 cat >>conftest.$ac_ext <<_ACEOF
5834 /* end confdefs.h. */
5835 #ifdef __STDC__
5836 # include <limits.h>
5837 #else
5838 # include <assert.h>
5839 #endif
5840 Syntax error
5841 _ACEOF
5842 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5843 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5844 ac_status=$?
5845 grep -v '^ *+' conftest.er1 >conftest.err
5846 rm -f conftest.er1
5847 cat conftest.err >&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); } >/dev/null; then
5850 if test -s conftest.err; then
5851 ac_cpp_err=$ac_cxx_preproc_warn_flag
5852 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5853 else
5854 ac_cpp_err=
5856 else
5857 ac_cpp_err=yes
5859 if test -z "$ac_cpp_err"; then
5861 else
5862 echo "$as_me: failed program was:" >&5
5863 sed 's/^/| /' conftest.$ac_ext >&5
5865 # Broken: fails on valid input.
5866 continue
5868 rm -f conftest.err conftest.$ac_ext
5870 # OK, works on sane cases. Now check whether non-existent headers
5871 # can be detected and how.
5872 cat >conftest.$ac_ext <<_ACEOF
5873 /* confdefs.h. */
5874 _ACEOF
5875 cat confdefs.h >>conftest.$ac_ext
5876 cat >>conftest.$ac_ext <<_ACEOF
5877 /* end confdefs.h. */
5878 #include <ac_nonexistent.h>
5879 _ACEOF
5880 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5881 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5882 ac_status=$?
5883 grep -v '^ *+' conftest.er1 >conftest.err
5884 rm -f conftest.er1
5885 cat conftest.err >&5
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); } >/dev/null; then
5888 if test -s conftest.err; then
5889 ac_cpp_err=$ac_cxx_preproc_warn_flag
5890 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5891 else
5892 ac_cpp_err=
5894 else
5895 ac_cpp_err=yes
5897 if test -z "$ac_cpp_err"; then
5898 # Broken: success on invalid input.
5899 continue
5900 else
5901 echo "$as_me: failed program was:" >&5
5902 sed 's/^/| /' conftest.$ac_ext >&5
5904 # Passes both tests.
5905 ac_preproc_ok=:
5906 break
5908 rm -f conftest.err conftest.$ac_ext
5910 done
5911 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5912 rm -f conftest.err conftest.$ac_ext
5913 if $ac_preproc_ok; then
5915 else
5916 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5917 See \`config.log' for more details." >&5
5918 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5919 See \`config.log' for more details." >&2;}
5920 { (exit 1); exit 1; }; }
5923 ac_ext=cc
5924 ac_cpp='$CXXCPP $CPPFLAGS'
5925 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5926 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5927 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5931 ac_ext=f
5932 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5933 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5934 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5935 if test -n "$ac_tool_prefix"; then
5936 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5938 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5939 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5940 echo "$as_me:$LINENO: checking for $ac_word" >&5
5941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5942 if test "${ac_cv_prog_F77+set}" = set; then
5943 echo $ECHO_N "(cached) $ECHO_C" >&6
5944 else
5945 if test -n "$F77"; then
5946 ac_cv_prog_F77="$F77" # Let the user override the test.
5947 else
5948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5949 for as_dir in $PATH
5951 IFS=$as_save_IFS
5952 test -z "$as_dir" && as_dir=.
5953 for ac_exec_ext in '' $ac_executable_extensions; do
5954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5955 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5957 break 2
5959 done
5960 done
5964 F77=$ac_cv_prog_F77
5965 if test -n "$F77"; then
5966 echo "$as_me:$LINENO: result: $F77" >&5
5967 echo "${ECHO_T}$F77" >&6
5968 else
5969 echo "$as_me:$LINENO: result: no" >&5
5970 echo "${ECHO_T}no" >&6
5973 test -n "$F77" && break
5974 done
5976 if test -z "$F77"; then
5977 ac_ct_F77=$F77
5978 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5980 # Extract the first word of "$ac_prog", so it can be a program name with args.
5981 set dummy $ac_prog; ac_word=$2
5982 echo "$as_me:$LINENO: checking for $ac_word" >&5
5983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5984 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5985 echo $ECHO_N "(cached) $ECHO_C" >&6
5986 else
5987 if test -n "$ac_ct_F77"; then
5988 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5989 else
5990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5991 for as_dir in $PATH
5993 IFS=$as_save_IFS
5994 test -z "$as_dir" && as_dir=.
5995 for ac_exec_ext in '' $ac_executable_extensions; do
5996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5997 ac_cv_prog_ac_ct_F77="$ac_prog"
5998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5999 break 2
6001 done
6002 done
6006 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6007 if test -n "$ac_ct_F77"; then
6008 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6009 echo "${ECHO_T}$ac_ct_F77" >&6
6010 else
6011 echo "$as_me:$LINENO: result: no" >&5
6012 echo "${ECHO_T}no" >&6
6015 test -n "$ac_ct_F77" && break
6016 done
6018 F77=$ac_ct_F77
6022 # Provide some information about the compiler.
6023 echo "$as_me:6023:" \
6024 "checking for Fortran 77 compiler version" >&5
6025 ac_compiler=`set X $ac_compile; echo $2`
6026 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6027 (eval $ac_compiler --version </dev/null >&5) 2>&5
6028 ac_status=$?
6029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030 (exit $ac_status); }
6031 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6032 (eval $ac_compiler -v </dev/null >&5) 2>&5
6033 ac_status=$?
6034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035 (exit $ac_status); }
6036 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6037 (eval $ac_compiler -V </dev/null >&5) 2>&5
6038 ac_status=$?
6039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); }
6041 rm -f a.out
6043 # If we don't use `.F' as extension, the preprocessor is not run on the
6044 # input file. (Note that this only needs to work for GNU compilers.)
6045 ac_save_ext=$ac_ext
6046 ac_ext=F
6047 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6048 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6049 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6050 echo $ECHO_N "(cached) $ECHO_C" >&6
6051 else
6052 cat >conftest.$ac_ext <<_ACEOF
6053 program main
6054 #ifndef __GNUC__
6055 choke me
6056 #endif
6059 _ACEOF
6060 rm -f conftest.$ac_objext
6061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6062 (eval $ac_compile) 2>conftest.er1
6063 ac_status=$?
6064 grep -v '^ *+' conftest.er1 >conftest.err
6065 rm -f conftest.er1
6066 cat conftest.err >&5
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); } &&
6069 { ac_try='test -z "$ac_f77_werror_flag"
6070 || test ! -s conftest.err'
6071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6072 (eval $ac_try) 2>&5
6073 ac_status=$?
6074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075 (exit $ac_status); }; } &&
6076 { ac_try='test -s conftest.$ac_objext'
6077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6078 (eval $ac_try) 2>&5
6079 ac_status=$?
6080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081 (exit $ac_status); }; }; then
6082 ac_compiler_gnu=yes
6083 else
6084 echo "$as_me: failed program was:" >&5
6085 sed 's/^/| /' conftest.$ac_ext >&5
6087 ac_compiler_gnu=no
6089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6090 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6093 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6094 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6095 ac_ext=$ac_save_ext
6096 ac_test_FFLAGS=${FFLAGS+set}
6097 ac_save_FFLAGS=$FFLAGS
6098 FFLAGS=
6099 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6100 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6101 if test "${ac_cv_prog_f77_g+set}" = set; then
6102 echo $ECHO_N "(cached) $ECHO_C" >&6
6103 else
6104 FFLAGS=-g
6105 cat >conftest.$ac_ext <<_ACEOF
6106 program main
6109 _ACEOF
6110 rm -f conftest.$ac_objext
6111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6112 (eval $ac_compile) 2>conftest.er1
6113 ac_status=$?
6114 grep -v '^ *+' conftest.er1 >conftest.err
6115 rm -f conftest.er1
6116 cat conftest.err >&5
6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118 (exit $ac_status); } &&
6119 { ac_try='test -z "$ac_f77_werror_flag"
6120 || test ! -s conftest.err'
6121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6122 (eval $ac_try) 2>&5
6123 ac_status=$?
6124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125 (exit $ac_status); }; } &&
6126 { ac_try='test -s conftest.$ac_objext'
6127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6128 (eval $ac_try) 2>&5
6129 ac_status=$?
6130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131 (exit $ac_status); }; }; then
6132 ac_cv_prog_f77_g=yes
6133 else
6134 echo "$as_me: failed program was:" >&5
6135 sed 's/^/| /' conftest.$ac_ext >&5
6137 ac_cv_prog_f77_g=no
6139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6142 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6143 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6144 if test "$ac_test_FFLAGS" = set; then
6145 FFLAGS=$ac_save_FFLAGS
6146 elif test $ac_cv_prog_f77_g = yes; then
6147 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6148 FFLAGS="-g -O2"
6149 else
6150 FFLAGS="-g"
6152 else
6153 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6154 FFLAGS="-O2"
6155 else
6156 FFLAGS=
6160 G77=`test $ac_compiler_gnu = yes && echo yes`
6161 ac_ext=c
6162 ac_cpp='$CPP $CPPFLAGS'
6163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6169 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6171 # find the maximum length of command line arguments
6172 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6173 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6174 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6175 echo $ECHO_N "(cached) $ECHO_C" >&6
6176 else
6178 teststring="ABCD"
6180 case $build_os in
6181 msdosdjgpp*)
6182 # On DJGPP, this test can blow up pretty badly due to problems in libc
6183 # (any single argument exceeding 2000 bytes causes a buffer overrun
6184 # during glob expansion). Even if it were fixed, the result of this
6185 # check would be larger than it should be.
6186 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6189 gnu*)
6190 # Under GNU Hurd, this test is not required because there is
6191 # no limit to the length of command line arguments.
6192 # Libtool will interpret -1 as no limit whatsoever
6193 lt_cv_sys_max_cmd_len=-1;
6196 cygwin* | mingw*)
6197 # On Win9x/ME, this test blows up -- it succeeds, but takes
6198 # about 5 minutes as the teststring grows exponentially.
6199 # Worse, since 9x/ME are not pre-emptively multitasking,
6200 # you end up with a "frozen" computer, even though with patience
6201 # the test eventually succeeds (with a max line length of 256k).
6202 # Instead, let's just punt: use the minimum linelength reported by
6203 # all of the supported platforms: 8192 (on NT/2K/XP).
6204 lt_cv_sys_max_cmd_len=8192;
6207 amigaos*)
6208 # On AmigaOS with pdksh, this test takes hours, literally.
6209 # So we just punt and use a minimum line length of 8192.
6210 lt_cv_sys_max_cmd_len=8192;
6213 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6214 # This has been around since 386BSD, at least. Likely further.
6215 if test -x /sbin/sysctl; then
6216 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6217 elif test -x /usr/sbin/sysctl; then
6218 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6219 else
6220 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6222 # And add a safety zone
6223 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6224 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6227 interix*)
6228 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6229 lt_cv_sys_max_cmd_len=196608
6232 osf*)
6233 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6234 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6235 # nice to cause kernel panics so lets avoid the loop below.
6236 # First set a reasonable default.
6237 lt_cv_sys_max_cmd_len=16384
6239 if test -x /sbin/sysconfig; then
6240 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6241 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6242 esac
6245 sco3.2v5*)
6246 lt_cv_sys_max_cmd_len=102400
6248 sysv5* | sco5v6* | sysv4.2uw2*)
6249 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6250 if test -n "$kargmax"; then
6251 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6252 else
6253 lt_cv_sys_max_cmd_len=32768
6257 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6258 if test -n "$lt_cv_sys_max_cmd_len"; then
6259 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6260 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6261 else
6262 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6263 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6264 = "XX$teststring") >/dev/null 2>&1 &&
6265 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6266 lt_cv_sys_max_cmd_len=$new_result &&
6267 test $i != 17 # 1/2 MB should be enough
6269 i=`expr $i + 1`
6270 teststring=$teststring$teststring
6271 done
6272 teststring=
6273 # Add a significant safety factor because C++ compilers can tack on massive
6274 # amounts of additional arguments before passing them to the linker.
6275 # It appears as though 1/2 is a usable value.
6276 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6279 esac
6283 if test -n $lt_cv_sys_max_cmd_len ; then
6284 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6285 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6286 else
6287 echo "$as_me:$LINENO: result: none" >&5
6288 echo "${ECHO_T}none" >&6
6295 # Check for command to grab the raw symbol name followed by C symbol from nm.
6296 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6297 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6298 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6299 echo $ECHO_N "(cached) $ECHO_C" >&6
6300 else
6302 # These are sane defaults that work on at least a few old systems.
6303 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6305 # Character class describing NM global symbol codes.
6306 symcode='[BCDEGRST]'
6308 # Regexp to match symbols that can be accessed directly from C.
6309 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6311 # Transform an extracted symbol line into a proper C declaration
6312 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6314 # Transform an extracted symbol line into symbol name and symbol address
6315 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'"
6317 # Define system-specific variables.
6318 case $host_os in
6319 aix*)
6320 symcode='[BCDT]'
6322 cygwin* | mingw* | pw32*)
6323 symcode='[ABCDGISTW]'
6325 hpux*) # Its linker distinguishes data from code symbols
6326 if test "$host_cpu" = ia64; then
6327 symcode='[ABCDEGRST]'
6329 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6330 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'"
6332 linux* | k*bsd*-gnu)
6333 if test "$host_cpu" = ia64; then
6334 symcode='[ABCDGIRSTW]'
6335 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6336 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'"
6339 irix* | nonstopux*)
6340 symcode='[BCDEGRST]'
6342 osf*)
6343 symcode='[BCDEGQRST]'
6345 solaris*)
6346 symcode='[BDRT]'
6348 sco3.2v5*)
6349 symcode='[DT]'
6351 sysv4.2uw2*)
6352 symcode='[DT]'
6354 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6355 symcode='[ABDT]'
6357 sysv4)
6358 symcode='[DFNSTU]'
6360 esac
6362 # Handle CRLF in mingw tool chain
6363 opt_cr=
6364 case $build_os in
6365 mingw*)
6366 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6368 esac
6370 # If we're using GNU nm, then use its standard symbol codes.
6371 case `$NM -V 2>&1` in
6372 *GNU* | *'with BFD'*)
6373 symcode='[ABCDGIRSTW]' ;;
6374 esac
6376 # Try without a prefix undercore, then with it.
6377 for ac_symprfx in "" "_"; do
6379 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6380 symxfrm="\\1 $ac_symprfx\\2 \\2"
6382 # Write the raw and C identifiers.
6383 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6385 # Check to see that the pipe works correctly.
6386 pipe_works=no
6388 rm -f conftest*
6389 cat > conftest.$ac_ext <<EOF
6390 #ifdef __cplusplus
6391 extern "C" {
6392 #endif
6393 char nm_test_var;
6394 void nm_test_func(){}
6395 #ifdef __cplusplus
6397 #endif
6398 int main(){nm_test_var='a';nm_test_func();return(0);}
6401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6402 (eval $ac_compile) 2>&5
6403 ac_status=$?
6404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405 (exit $ac_status); }; then
6406 # Now try to grab the symbols.
6407 nlist=conftest.nm
6408 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6409 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6410 ac_status=$?
6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412 (exit $ac_status); } && test -s "$nlist"; then
6413 # Try sorting and uniquifying the output.
6414 if sort "$nlist" | uniq > "$nlist"T; then
6415 mv -f "$nlist"T "$nlist"
6416 else
6417 rm -f "$nlist"T
6420 # Make sure that we snagged all the symbols we need.
6421 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6422 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6423 cat <<EOF > conftest.$ac_ext
6424 #ifdef __cplusplus
6425 extern "C" {
6426 #endif
6429 # Now generate the symbol file.
6430 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6432 cat <<EOF >> conftest.$ac_ext
6433 #if defined (__STDC__) && __STDC__
6434 # define lt_ptr_t void *
6435 #else
6436 # define lt_ptr_t char *
6437 # define const
6438 #endif
6440 /* The mapping between symbol names and symbols. */
6441 const struct {
6442 const char *name;
6443 lt_ptr_t address;
6445 lt_preloaded_symbols[] =
6448 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6449 cat <<\EOF >> conftest.$ac_ext
6450 {0, (lt_ptr_t) 0}
6453 #ifdef __cplusplus
6455 #endif
6457 # Now try linking the two files.
6458 mv conftest.$ac_objext conftstm.$ac_objext
6459 lt_save_LIBS="$LIBS"
6460 lt_save_CFLAGS="$CFLAGS"
6461 LIBS="conftstm.$ac_objext"
6462 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6464 (eval $ac_link) 2>&5
6465 ac_status=$?
6466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6468 pipe_works=yes
6470 LIBS="$lt_save_LIBS"
6471 CFLAGS="$lt_save_CFLAGS"
6472 else
6473 echo "cannot find nm_test_func in $nlist" >&5
6475 else
6476 echo "cannot find nm_test_var in $nlist" >&5
6478 else
6479 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6481 else
6482 echo "$progname: failed program was:" >&5
6483 cat conftest.$ac_ext >&5
6485 rm -f conftest* conftst*
6487 # Do not use the global_symbol_pipe unless it works.
6488 if test "$pipe_works" = yes; then
6489 break
6490 else
6491 lt_cv_sys_global_symbol_pipe=
6493 done
6497 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6498 lt_cv_sys_global_symbol_to_cdecl=
6500 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6501 echo "$as_me:$LINENO: result: failed" >&5
6502 echo "${ECHO_T}failed" >&6
6503 else
6504 echo "$as_me:$LINENO: result: ok" >&5
6505 echo "${ECHO_T}ok" >&6
6508 echo "$as_me:$LINENO: checking for objdir" >&5
6509 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6510 if test "${lt_cv_objdir+set}" = set; then
6511 echo $ECHO_N "(cached) $ECHO_C" >&6
6512 else
6513 rm -f .libs 2>/dev/null
6514 mkdir .libs 2>/dev/null
6515 if test -d .libs; then
6516 lt_cv_objdir=.libs
6517 else
6518 # MS-DOS does not allow filenames that begin with a dot.
6519 lt_cv_objdir=_libs
6521 rmdir .libs 2>/dev/null
6523 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6524 echo "${ECHO_T}$lt_cv_objdir" >&6
6525 objdir=$lt_cv_objdir
6531 case $host_os in
6532 aix3*)
6533 # AIX sometimes has problems with the GCC collect2 program. For some
6534 # reason, if we set the COLLECT_NAMES environment variable, the problems
6535 # vanish in a puff of smoke.
6536 if test "X${COLLECT_NAMES+set}" != Xset; then
6537 COLLECT_NAMES=
6538 export COLLECT_NAMES
6541 esac
6543 # Sed substitution that helps us do robust quoting. It backslashifies
6544 # metacharacters that are still active within double-quoted strings.
6545 Xsed='sed -e 1s/^X//'
6546 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6548 # Same as above, but do not quote variable references.
6549 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6551 # Sed substitution to delay expansion of an escaped shell variable in a
6552 # double_quote_subst'ed string.
6553 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6555 # Sed substitution to avoid accidental globbing in evaled expressions
6556 no_glob_subst='s/\*/\\\*/g'
6558 # Constants:
6559 rm="rm -f"
6561 # Global variables:
6562 default_ofile=libtool
6563 can_build_shared=yes
6565 # All known linkers require a `.a' archive for static linking (except MSVC,
6566 # which needs '.lib').
6567 libext=a
6568 ltmain="$ac_aux_dir/ltmain.sh"
6569 ofile="$default_ofile"
6570 with_gnu_ld="$lt_cv_prog_gnu_ld"
6572 if test -n "$ac_tool_prefix"; then
6573 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6574 set dummy ${ac_tool_prefix}ar; ac_word=$2
6575 echo "$as_me:$LINENO: checking for $ac_word" >&5
6576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6577 if test "${ac_cv_prog_AR+set}" = set; then
6578 echo $ECHO_N "(cached) $ECHO_C" >&6
6579 else
6580 if test -n "$AR"; then
6581 ac_cv_prog_AR="$AR" # Let the user override the test.
6582 else
6583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584 for as_dir in $PATH
6586 IFS=$as_save_IFS
6587 test -z "$as_dir" && as_dir=.
6588 for ac_exec_ext in '' $ac_executable_extensions; do
6589 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6590 ac_cv_prog_AR="${ac_tool_prefix}ar"
6591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6592 break 2
6594 done
6595 done
6599 AR=$ac_cv_prog_AR
6600 if test -n "$AR"; then
6601 echo "$as_me:$LINENO: result: $AR" >&5
6602 echo "${ECHO_T}$AR" >&6
6603 else
6604 echo "$as_me:$LINENO: result: no" >&5
6605 echo "${ECHO_T}no" >&6
6609 if test -z "$ac_cv_prog_AR"; then
6610 ac_ct_AR=$AR
6611 # Extract the first word of "ar", so it can be a program name with args.
6612 set dummy ar; ac_word=$2
6613 echo "$as_me:$LINENO: checking for $ac_word" >&5
6614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6615 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6616 echo $ECHO_N "(cached) $ECHO_C" >&6
6617 else
6618 if test -n "$ac_ct_AR"; then
6619 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6620 else
6621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6622 for as_dir in $PATH
6624 IFS=$as_save_IFS
6625 test -z "$as_dir" && as_dir=.
6626 for ac_exec_ext in '' $ac_executable_extensions; do
6627 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6628 ac_cv_prog_ac_ct_AR="ar"
6629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6630 break 2
6632 done
6633 done
6635 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6638 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6639 if test -n "$ac_ct_AR"; then
6640 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6641 echo "${ECHO_T}$ac_ct_AR" >&6
6642 else
6643 echo "$as_me:$LINENO: result: no" >&5
6644 echo "${ECHO_T}no" >&6
6647 AR=$ac_ct_AR
6648 else
6649 AR="$ac_cv_prog_AR"
6652 if test -n "$ac_tool_prefix"; then
6653 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6654 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6655 echo "$as_me:$LINENO: checking for $ac_word" >&5
6656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6657 if test "${ac_cv_prog_RANLIB+set}" = set; then
6658 echo $ECHO_N "(cached) $ECHO_C" >&6
6659 else
6660 if test -n "$RANLIB"; then
6661 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6662 else
6663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6664 for as_dir in $PATH
6666 IFS=$as_save_IFS
6667 test -z "$as_dir" && as_dir=.
6668 for ac_exec_ext in '' $ac_executable_extensions; do
6669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6670 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6672 break 2
6674 done
6675 done
6679 RANLIB=$ac_cv_prog_RANLIB
6680 if test -n "$RANLIB"; then
6681 echo "$as_me:$LINENO: result: $RANLIB" >&5
6682 echo "${ECHO_T}$RANLIB" >&6
6683 else
6684 echo "$as_me:$LINENO: result: no" >&5
6685 echo "${ECHO_T}no" >&6
6689 if test -z "$ac_cv_prog_RANLIB"; then
6690 ac_ct_RANLIB=$RANLIB
6691 # Extract the first word of "ranlib", so it can be a program name with args.
6692 set dummy ranlib; ac_word=$2
6693 echo "$as_me:$LINENO: checking for $ac_word" >&5
6694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6695 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6696 echo $ECHO_N "(cached) $ECHO_C" >&6
6697 else
6698 if test -n "$ac_ct_RANLIB"; then
6699 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6700 else
6701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6702 for as_dir in $PATH
6704 IFS=$as_save_IFS
6705 test -z "$as_dir" && as_dir=.
6706 for ac_exec_ext in '' $ac_executable_extensions; do
6707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6708 ac_cv_prog_ac_ct_RANLIB="ranlib"
6709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6710 break 2
6712 done
6713 done
6715 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6718 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6719 if test -n "$ac_ct_RANLIB"; then
6720 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6721 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6722 else
6723 echo "$as_me:$LINENO: result: no" >&5
6724 echo "${ECHO_T}no" >&6
6727 RANLIB=$ac_ct_RANLIB
6728 else
6729 RANLIB="$ac_cv_prog_RANLIB"
6732 if test -n "$ac_tool_prefix"; then
6733 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6734 set dummy ${ac_tool_prefix}strip; ac_word=$2
6735 echo "$as_me:$LINENO: checking for $ac_word" >&5
6736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6737 if test "${ac_cv_prog_STRIP+set}" = set; then
6738 echo $ECHO_N "(cached) $ECHO_C" >&6
6739 else
6740 if test -n "$STRIP"; then
6741 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6742 else
6743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744 for as_dir in $PATH
6746 IFS=$as_save_IFS
6747 test -z "$as_dir" && as_dir=.
6748 for ac_exec_ext in '' $ac_executable_extensions; do
6749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6750 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6752 break 2
6754 done
6755 done
6759 STRIP=$ac_cv_prog_STRIP
6760 if test -n "$STRIP"; then
6761 echo "$as_me:$LINENO: result: $STRIP" >&5
6762 echo "${ECHO_T}$STRIP" >&6
6763 else
6764 echo "$as_me:$LINENO: result: no" >&5
6765 echo "${ECHO_T}no" >&6
6769 if test -z "$ac_cv_prog_STRIP"; then
6770 ac_ct_STRIP=$STRIP
6771 # Extract the first word of "strip", so it can be a program name with args.
6772 set dummy strip; ac_word=$2
6773 echo "$as_me:$LINENO: checking for $ac_word" >&5
6774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6775 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6776 echo $ECHO_N "(cached) $ECHO_C" >&6
6777 else
6778 if test -n "$ac_ct_STRIP"; then
6779 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6780 else
6781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6782 for as_dir in $PATH
6784 IFS=$as_save_IFS
6785 test -z "$as_dir" && as_dir=.
6786 for ac_exec_ext in '' $ac_executable_extensions; do
6787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6788 ac_cv_prog_ac_ct_STRIP="strip"
6789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6790 break 2
6792 done
6793 done
6795 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6798 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6799 if test -n "$ac_ct_STRIP"; then
6800 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6801 echo "${ECHO_T}$ac_ct_STRIP" >&6
6802 else
6803 echo "$as_me:$LINENO: result: no" >&5
6804 echo "${ECHO_T}no" >&6
6807 STRIP=$ac_ct_STRIP
6808 else
6809 STRIP="$ac_cv_prog_STRIP"
6813 old_CC="$CC"
6814 old_CFLAGS="$CFLAGS"
6816 # Set sane defaults for various variables
6817 test -z "$AR" && AR=ar
6818 test -z "$AR_FLAGS" && AR_FLAGS=cru
6819 test -z "$AS" && AS=as
6820 test -z "$CC" && CC=cc
6821 test -z "$LTCC" && LTCC=$CC
6822 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6823 test -z "$DLLTOOL" && DLLTOOL=dlltool
6824 test -z "$LD" && LD=ld
6825 test -z "$LN_S" && LN_S="ln -s"
6826 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6827 test -z "$NM" && NM=nm
6828 test -z "$SED" && SED=sed
6829 test -z "$OBJDUMP" && OBJDUMP=objdump
6830 test -z "$RANLIB" && RANLIB=:
6831 test -z "$STRIP" && STRIP=:
6832 test -z "$ac_objext" && ac_objext=o
6834 # Determine commands to create old-style static archives.
6835 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6836 old_postinstall_cmds='chmod 644 $oldlib'
6837 old_postuninstall_cmds=
6839 if test -n "$RANLIB"; then
6840 case $host_os in
6841 openbsd*)
6842 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6845 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6847 esac
6848 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6851 for cc_temp in $compiler""; do
6852 case $cc_temp in
6853 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6854 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6855 \-*) ;;
6856 *) break;;
6857 esac
6858 done
6859 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6862 # Only perform the check for file, if the check method requires it
6863 case $deplibs_check_method in
6864 file_magic*)
6865 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6866 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6867 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6868 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6869 echo $ECHO_N "(cached) $ECHO_C" >&6
6870 else
6871 case $MAGIC_CMD in
6872 [\\/*] | ?:[\\/]*)
6873 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6876 lt_save_MAGIC_CMD="$MAGIC_CMD"
6877 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6878 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6879 for ac_dir in $ac_dummy; do
6880 IFS="$lt_save_ifs"
6881 test -z "$ac_dir" && ac_dir=.
6882 if test -f $ac_dir/${ac_tool_prefix}file; then
6883 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6884 if test -n "$file_magic_test_file"; then
6885 case $deplibs_check_method in
6886 "file_magic "*)
6887 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6888 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6889 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6890 $EGREP "$file_magic_regex" > /dev/null; then
6892 else
6893 cat <<EOF 1>&2
6895 *** Warning: the command libtool uses to detect shared libraries,
6896 *** $file_magic_cmd, produces output that libtool cannot recognize.
6897 *** The result is that libtool may fail to recognize shared libraries
6898 *** as such. This will affect the creation of libtool libraries that
6899 *** depend on shared libraries, but programs linked with such libtool
6900 *** libraries will work regardless of this problem. Nevertheless, you
6901 *** may want to report the problem to your system manager and/or to
6902 *** bug-libtool@gnu.org
6905 fi ;;
6906 esac
6908 break
6910 done
6911 IFS="$lt_save_ifs"
6912 MAGIC_CMD="$lt_save_MAGIC_CMD"
6914 esac
6917 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6918 if test -n "$MAGIC_CMD"; then
6919 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6920 echo "${ECHO_T}$MAGIC_CMD" >&6
6921 else
6922 echo "$as_me:$LINENO: result: no" >&5
6923 echo "${ECHO_T}no" >&6
6926 if test -z "$lt_cv_path_MAGIC_CMD"; then
6927 if test -n "$ac_tool_prefix"; then
6928 echo "$as_me:$LINENO: checking for file" >&5
6929 echo $ECHO_N "checking for file... $ECHO_C" >&6
6930 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6931 echo $ECHO_N "(cached) $ECHO_C" >&6
6932 else
6933 case $MAGIC_CMD in
6934 [\\/*] | ?:[\\/]*)
6935 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6938 lt_save_MAGIC_CMD="$MAGIC_CMD"
6939 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6940 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6941 for ac_dir in $ac_dummy; do
6942 IFS="$lt_save_ifs"
6943 test -z "$ac_dir" && ac_dir=.
6944 if test -f $ac_dir/file; then
6945 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6946 if test -n "$file_magic_test_file"; then
6947 case $deplibs_check_method in
6948 "file_magic "*)
6949 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6950 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6951 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6952 $EGREP "$file_magic_regex" > /dev/null; then
6954 else
6955 cat <<EOF 1>&2
6957 *** Warning: the command libtool uses to detect shared libraries,
6958 *** $file_magic_cmd, produces output that libtool cannot recognize.
6959 *** The result is that libtool may fail to recognize shared libraries
6960 *** as such. This will affect the creation of libtool libraries that
6961 *** depend on shared libraries, but programs linked with such libtool
6962 *** libraries will work regardless of this problem. Nevertheless, you
6963 *** may want to report the problem to your system manager and/or to
6964 *** bug-libtool@gnu.org
6967 fi ;;
6968 esac
6970 break
6972 done
6973 IFS="$lt_save_ifs"
6974 MAGIC_CMD="$lt_save_MAGIC_CMD"
6976 esac
6979 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6980 if test -n "$MAGIC_CMD"; then
6981 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6982 echo "${ECHO_T}$MAGIC_CMD" >&6
6983 else
6984 echo "$as_me:$LINENO: result: no" >&5
6985 echo "${ECHO_T}no" >&6
6988 else
6989 MAGIC_CMD=:
6995 esac
6997 enable_dlopen=no
6998 enable_win32_dll=no
7000 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7001 if test "${enable_libtool_lock+set}" = set; then
7002 enableval="$enable_libtool_lock"
7005 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7008 # Check whether --with-pic or --without-pic was given.
7009 if test "${with_pic+set}" = set; then
7010 withval="$with_pic"
7011 pic_mode="$withval"
7012 else
7013 pic_mode=default
7015 test -z "$pic_mode" && pic_mode=default
7017 # Use C for the default configuration in the libtool script
7018 tagname=
7019 lt_save_CC="$CC"
7020 ac_ext=c
7021 ac_cpp='$CPP $CPPFLAGS'
7022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7027 # Source file extension for C test sources.
7028 ac_ext=c
7030 # Object file extension for compiled C test sources.
7031 objext=o
7032 objext=$objext
7034 # Code to be used in simple compile tests
7035 lt_simple_compile_test_code="int some_variable = 0;"
7037 # Code to be used in simple link tests
7038 lt_simple_link_test_code='int main(){return(0);}'
7041 # If no C compiler was specified, use CC.
7042 LTCC=${LTCC-"$CC"}
7044 # If no C compiler flags were specified, use CFLAGS.
7045 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7047 # Allow CC to be a program name with arguments.
7048 compiler=$CC
7051 # save warnings/boilerplate of simple test code
7052 ac_outfile=conftest.$ac_objext
7053 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7054 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7055 _lt_compiler_boilerplate=`cat conftest.err`
7056 $rm conftest*
7058 ac_outfile=conftest.$ac_objext
7059 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7060 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7061 _lt_linker_boilerplate=`cat conftest.err`
7062 $rm conftest*
7065 ## CAVEAT EMPTOR:
7066 ## There is no encapsulation within the following macros, do not change
7067 ## the running order or otherwise move them around unless you know exactly
7068 ## what you are doing...
7070 lt_prog_compiler_no_builtin_flag=
7072 if test "$GCC" = yes; then
7073 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7076 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7077 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7078 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7079 echo $ECHO_N "(cached) $ECHO_C" >&6
7080 else
7081 lt_cv_prog_compiler_rtti_exceptions=no
7082 ac_outfile=conftest.$ac_objext
7083 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7084 lt_compiler_flag="-fno-rtti -fno-exceptions"
7085 # Insert the option either (1) after the last *FLAGS variable, or
7086 # (2) before a word containing "conftest.", or (3) at the end.
7087 # Note that $ac_compile itself does not contain backslashes and begins
7088 # with a dollar sign (not a hyphen), so the echo should work correctly.
7089 # The option is referenced via a variable to avoid confusing sed.
7090 lt_compile=`echo "$ac_compile" | $SED \
7091 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7092 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7093 -e 's:$: $lt_compiler_flag:'`
7094 (eval echo "\"\$as_me:7094: $lt_compile\"" >&5)
7095 (eval "$lt_compile" 2>conftest.err)
7096 ac_status=$?
7097 cat conftest.err >&5
7098 echo "$as_me:7098: \$? = $ac_status" >&5
7099 if (exit $ac_status) && test -s "$ac_outfile"; then
7100 # The compiler can only warn and ignore the option if not recognized
7101 # So say no if there are warnings other than the usual output.
7102 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7103 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7104 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7105 lt_cv_prog_compiler_rtti_exceptions=yes
7108 $rm conftest*
7111 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7112 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7114 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7115 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7116 else
7122 lt_prog_compiler_wl=
7123 lt_prog_compiler_pic=
7124 lt_prog_compiler_static=
7126 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7127 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7129 if test "$GCC" = yes; then
7130 lt_prog_compiler_wl='-Wl,'
7131 lt_prog_compiler_static='-static'
7133 case $host_os in
7134 aix*)
7135 # All AIX code is PIC.
7136 if test "$host_cpu" = ia64; then
7137 # AIX 5 now supports IA64 processor
7138 lt_prog_compiler_static='-Bstatic'
7142 amigaos*)
7143 # FIXME: we need at least 68020 code to build shared libraries, but
7144 # adding the `-m68020' flag to GCC prevents building anything better,
7145 # like `-m68040'.
7146 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7149 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7150 # PIC is the default for these OSes.
7153 mingw* | cygwin* | pw32* | os2*)
7154 # This hack is so that the source file can tell whether it is being
7155 # built for inclusion in a dll (and should export symbols for example).
7156 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7157 # (--disable-auto-import) libraries
7158 lt_prog_compiler_pic='-DDLL_EXPORT'
7161 darwin* | rhapsody*)
7162 # PIC is the default on this platform
7163 # Common symbols not allowed in MH_DYLIB files
7164 lt_prog_compiler_pic='-fno-common'
7167 interix[3-9]*)
7168 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7169 # Instead, we relocate shared libraries at runtime.
7172 msdosdjgpp*)
7173 # Just because we use GCC doesn't mean we suddenly get shared libraries
7174 # on systems that don't support them.
7175 lt_prog_compiler_can_build_shared=no
7176 enable_shared=no
7179 sysv4*MP*)
7180 if test -d /usr/nec; then
7181 lt_prog_compiler_pic=-Kconform_pic
7185 hpux*)
7186 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7187 # not for PA HP-UX.
7188 case $host_cpu in
7189 hppa*64*|ia64*)
7190 # +Z the default
7193 lt_prog_compiler_pic='-fPIC'
7195 esac
7199 lt_prog_compiler_pic='-fPIC'
7201 esac
7202 else
7203 # PORTME Check for flag to pass linker flags through the system compiler.
7204 case $host_os in
7205 aix*)
7206 lt_prog_compiler_wl='-Wl,'
7207 if test "$host_cpu" = ia64; then
7208 # AIX 5 now supports IA64 processor
7209 lt_prog_compiler_static='-Bstatic'
7210 else
7211 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7214 darwin*)
7215 # PIC is the default on this platform
7216 # Common symbols not allowed in MH_DYLIB files
7217 case $cc_basename in
7218 xlc*)
7219 lt_prog_compiler_pic='-qnocommon'
7220 lt_prog_compiler_wl='-Wl,'
7222 esac
7225 mingw* | cygwin* | pw32* | os2*)
7226 # This hack is so that the source file can tell whether it is being
7227 # built for inclusion in a dll (and should export symbols for example).
7228 lt_prog_compiler_pic='-DDLL_EXPORT'
7231 hpux9* | hpux10* | hpux11*)
7232 lt_prog_compiler_wl='-Wl,'
7233 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7234 # not for PA HP-UX.
7235 case $host_cpu in
7236 hppa*64*|ia64*)
7237 # +Z the default
7240 lt_prog_compiler_pic='+Z'
7242 esac
7243 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7244 lt_prog_compiler_static='${wl}-a ${wl}archive'
7247 irix5* | irix6* | nonstopux*)
7248 lt_prog_compiler_wl='-Wl,'
7249 # PIC (with -KPIC) is the default.
7250 lt_prog_compiler_static='-non_shared'
7253 newsos6)
7254 lt_prog_compiler_pic='-KPIC'
7255 lt_prog_compiler_static='-Bstatic'
7258 linux* | k*bsd*-gnu)
7259 case $cc_basename in
7260 icc* | ecc*)
7261 lt_prog_compiler_wl='-Wl,'
7262 lt_prog_compiler_pic='-KPIC'
7263 lt_prog_compiler_static='-static'
7265 pgcc* | pgf77* | pgf90* | pgf95*)
7266 # Portland Group compilers (*not* the Pentium gcc compiler,
7267 # which looks to be a dead project)
7268 lt_prog_compiler_wl='-Wl,'
7269 lt_prog_compiler_pic='-fpic'
7270 lt_prog_compiler_static='-Bstatic'
7272 ccc*)
7273 lt_prog_compiler_wl='-Wl,'
7274 # All Alpha code is PIC.
7275 lt_prog_compiler_static='-non_shared'
7278 case `$CC -V 2>&1 | sed 5q` in
7279 *Sun\ C*)
7280 # Sun C 5.9
7281 lt_prog_compiler_pic='-KPIC'
7282 lt_prog_compiler_static='-Bstatic'
7283 lt_prog_compiler_wl='-Wl,'
7285 *Sun\ F*)
7286 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7287 lt_prog_compiler_pic='-KPIC'
7288 lt_prog_compiler_static='-Bstatic'
7289 lt_prog_compiler_wl=''
7291 esac
7293 esac
7296 osf3* | osf4* | osf5*)
7297 lt_prog_compiler_wl='-Wl,'
7298 # All OSF/1 code is PIC.
7299 lt_prog_compiler_static='-non_shared'
7302 rdos*)
7303 lt_prog_compiler_static='-non_shared'
7306 solaris*)
7307 lt_prog_compiler_pic='-KPIC'
7308 lt_prog_compiler_static='-Bstatic'
7309 case $cc_basename in
7310 f77* | f90* | f95*)
7311 lt_prog_compiler_wl='-Qoption ld ';;
7313 lt_prog_compiler_wl='-Wl,';;
7314 esac
7317 sunos4*)
7318 lt_prog_compiler_wl='-Qoption ld '
7319 lt_prog_compiler_pic='-PIC'
7320 lt_prog_compiler_static='-Bstatic'
7323 sysv4 | sysv4.2uw2* | sysv4.3*)
7324 lt_prog_compiler_wl='-Wl,'
7325 lt_prog_compiler_pic='-KPIC'
7326 lt_prog_compiler_static='-Bstatic'
7329 sysv4*MP*)
7330 if test -d /usr/nec ;then
7331 lt_prog_compiler_pic='-Kconform_pic'
7332 lt_prog_compiler_static='-Bstatic'
7336 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7337 lt_prog_compiler_wl='-Wl,'
7338 lt_prog_compiler_pic='-KPIC'
7339 lt_prog_compiler_static='-Bstatic'
7342 unicos*)
7343 lt_prog_compiler_wl='-Wl,'
7344 lt_prog_compiler_can_build_shared=no
7347 uts4*)
7348 lt_prog_compiler_pic='-pic'
7349 lt_prog_compiler_static='-Bstatic'
7353 lt_prog_compiler_can_build_shared=no
7355 esac
7358 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7359 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7362 # Check to make sure the PIC flag actually works.
7364 if test -n "$lt_prog_compiler_pic"; then
7366 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7367 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7368 if test "${lt_prog_compiler_pic_works+set}" = set; then
7369 echo $ECHO_N "(cached) $ECHO_C" >&6
7370 else
7371 lt_prog_compiler_pic_works=no
7372 ac_outfile=conftest.$ac_objext
7373 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7374 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7375 # Insert the option either (1) after the last *FLAGS variable, or
7376 # (2) before a word containing "conftest.", or (3) at the end.
7377 # Note that $ac_compile itself does not contain backslashes and begins
7378 # with a dollar sign (not a hyphen), so the echo should work correctly.
7379 # The option is referenced via a variable to avoid confusing sed.
7380 lt_compile=`echo "$ac_compile" | $SED \
7381 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7382 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7383 -e 's:$: $lt_compiler_flag:'`
7384 (eval echo "\"\$as_me:7384: $lt_compile\"" >&5)
7385 (eval "$lt_compile" 2>conftest.err)
7386 ac_status=$?
7387 cat conftest.err >&5
7388 echo "$as_me:7388: \$? = $ac_status" >&5
7389 if (exit $ac_status) && test -s "$ac_outfile"; then
7390 # The compiler can only warn and ignore the option if not recognized
7391 # So say no if there are warnings other than the usual output.
7392 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7393 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7394 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7395 lt_prog_compiler_pic_works=yes
7398 $rm conftest*
7401 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7402 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7404 if test x"$lt_prog_compiler_pic_works" = xyes; then
7405 case $lt_prog_compiler_pic in
7406 "" | " "*) ;;
7407 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7408 esac
7409 else
7410 lt_prog_compiler_pic=
7411 lt_prog_compiler_can_build_shared=no
7415 case $host_os in
7416 # For platforms which do not support PIC, -DPIC is meaningless:
7417 *djgpp*)
7418 lt_prog_compiler_pic=
7421 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7423 esac
7426 # Check to make sure the static flag actually works.
7428 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7429 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7430 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7431 if test "${lt_prog_compiler_static_works+set}" = set; then
7432 echo $ECHO_N "(cached) $ECHO_C" >&6
7433 else
7434 lt_prog_compiler_static_works=no
7435 save_LDFLAGS="$LDFLAGS"
7436 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7437 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7438 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7439 # The linker can only warn and ignore the option if not recognized
7440 # So say no if there are warnings
7441 if test -s conftest.err; then
7442 # Append any errors to the config.log.
7443 cat conftest.err 1>&5
7444 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7445 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7446 if diff conftest.exp conftest.er2 >/dev/null; then
7447 lt_prog_compiler_static_works=yes
7449 else
7450 lt_prog_compiler_static_works=yes
7453 $rm conftest*
7454 LDFLAGS="$save_LDFLAGS"
7457 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7458 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7460 if test x"$lt_prog_compiler_static_works" = xyes; then
7462 else
7463 lt_prog_compiler_static=
7467 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7468 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7469 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7470 echo $ECHO_N "(cached) $ECHO_C" >&6
7471 else
7472 lt_cv_prog_compiler_c_o=no
7473 $rm -r conftest 2>/dev/null
7474 mkdir conftest
7475 cd conftest
7476 mkdir out
7477 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7479 lt_compiler_flag="-o out/conftest2.$ac_objext"
7480 # Insert the option either (1) after the last *FLAGS variable, or
7481 # (2) before a word containing "conftest.", or (3) at the end.
7482 # Note that $ac_compile itself does not contain backslashes and begins
7483 # with a dollar sign (not a hyphen), so the echo should work correctly.
7484 lt_compile=`echo "$ac_compile" | $SED \
7485 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7486 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7487 -e 's:$: $lt_compiler_flag:'`
7488 (eval echo "\"\$as_me:7488: $lt_compile\"" >&5)
7489 (eval "$lt_compile" 2>out/conftest.err)
7490 ac_status=$?
7491 cat out/conftest.err >&5
7492 echo "$as_me:7492: \$? = $ac_status" >&5
7493 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7494 then
7495 # The compiler can only warn and ignore the option if not recognized
7496 # So say no if there are warnings
7497 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7498 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7499 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7500 lt_cv_prog_compiler_c_o=yes
7503 chmod u+w . 2>&5
7504 $rm conftest*
7505 # SGI C++ compiler will create directory out/ii_files/ for
7506 # template instantiation
7507 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7508 $rm out/* && rmdir out
7509 cd ..
7510 rmdir conftest
7511 $rm conftest*
7514 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7515 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7518 hard_links="nottested"
7519 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7520 # do not overwrite the value of need_locks provided by the user
7521 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7522 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7523 hard_links=yes
7524 $rm conftest*
7525 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7526 touch conftest.a
7527 ln conftest.a conftest.b 2>&5 || hard_links=no
7528 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7529 echo "$as_me:$LINENO: result: $hard_links" >&5
7530 echo "${ECHO_T}$hard_links" >&6
7531 if test "$hard_links" = no; then
7532 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7533 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7534 need_locks=warn
7536 else
7537 need_locks=no
7540 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7541 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7543 runpath_var=
7544 allow_undefined_flag=
7545 enable_shared_with_static_runtimes=no
7546 archive_cmds=
7547 archive_expsym_cmds=
7548 old_archive_From_new_cmds=
7549 old_archive_from_expsyms_cmds=
7550 export_dynamic_flag_spec=
7551 whole_archive_flag_spec=
7552 thread_safe_flag_spec=
7553 hardcode_libdir_flag_spec=
7554 hardcode_libdir_flag_spec_ld=
7555 hardcode_libdir_separator=
7556 hardcode_direct=no
7557 hardcode_minus_L=no
7558 hardcode_shlibpath_var=unsupported
7559 link_all_deplibs=unknown
7560 hardcode_automatic=no
7561 module_cmds=
7562 module_expsym_cmds=
7563 always_export_symbols=no
7564 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7565 # include_expsyms should be a list of space-separated symbols to be *always*
7566 # included in the symbol list
7567 include_expsyms=
7568 # exclude_expsyms can be an extended regexp of symbols to exclude
7569 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7570 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7571 # as well as any symbol that contains `d'.
7572 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7573 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7574 # platforms (ab)use it in PIC code, but their linkers get confused if
7575 # the symbol is explicitly referenced. Since portable code cannot
7576 # rely on this symbol name, it's probably fine to never include it in
7577 # preloaded symbol tables.
7578 extract_expsyms_cmds=
7579 # Just being paranoid about ensuring that cc_basename is set.
7580 for cc_temp in $compiler""; do
7581 case $cc_temp in
7582 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7583 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7584 \-*) ;;
7585 *) break;;
7586 esac
7587 done
7588 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7590 case $host_os in
7591 cygwin* | mingw* | pw32*)
7592 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7593 # When not using gcc, we currently assume that we are using
7594 # Microsoft Visual C++.
7595 if test "$GCC" != yes; then
7596 with_gnu_ld=no
7599 interix*)
7600 # we just hope/assume this is gcc and not c89 (= MSVC++)
7601 with_gnu_ld=yes
7603 openbsd*)
7604 with_gnu_ld=no
7606 esac
7608 ld_shlibs=yes
7609 if test "$with_gnu_ld" = yes; then
7610 # If archive_cmds runs LD, not CC, wlarc should be empty
7611 wlarc='${wl}'
7613 # Set some defaults for GNU ld with shared library support. These
7614 # are reset later if shared libraries are not supported. Putting them
7615 # here allows them to be overridden if necessary.
7616 runpath_var=LD_RUN_PATH
7617 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7618 export_dynamic_flag_spec='${wl}--export-dynamic'
7619 # ancient GNU ld didn't support --whole-archive et. al.
7620 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7621 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7622 else
7623 whole_archive_flag_spec=
7625 supports_anon_versioning=no
7626 case `$LD -v 2>/dev/null` in
7627 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7628 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7629 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7630 *\ 2.11.*) ;; # other 2.11 versions
7631 *) supports_anon_versioning=yes ;;
7632 esac
7634 # See if GNU ld supports shared libraries.
7635 case $host_os in
7636 aix3* | aix4* | aix5*)
7637 # On AIX/PPC, the GNU linker is very broken
7638 if test "$host_cpu" != ia64; then
7639 ld_shlibs=no
7640 cat <<EOF 1>&2
7642 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7643 *** to be unable to reliably create shared libraries on AIX.
7644 *** Therefore, libtool is disabling shared libraries support. If you
7645 *** really care for shared libraries, you may want to modify your PATH
7646 *** so that a non-GNU linker is found, and then restart.
7652 amigaos*)
7653 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)'
7654 hardcode_libdir_flag_spec='-L$libdir'
7655 hardcode_minus_L=yes
7657 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7658 # that the semantics of dynamic libraries on AmigaOS, at least up
7659 # to version 4, is to share data among multiple programs linked
7660 # with the same dynamic library. Since this doesn't match the
7661 # behavior of shared libraries on other platforms, we can't use
7662 # them.
7663 ld_shlibs=no
7666 beos*)
7667 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7668 allow_undefined_flag=unsupported
7669 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7670 # support --undefined. This deserves some investigation. FIXME
7671 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7672 else
7673 ld_shlibs=no
7677 cygwin* | mingw* | pw32*)
7678 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7679 # as there is no search path for DLLs.
7680 hardcode_libdir_flag_spec='-L$libdir'
7681 allow_undefined_flag=unsupported
7682 always_export_symbols=no
7683 enable_shared_with_static_runtimes=yes
7684 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7686 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7687 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7688 # If the export-symbols file already is a .def file (1st line
7689 # is EXPORTS), use it as is; otherwise, prepend...
7690 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7691 cp $export_symbols $output_objdir/$soname.def;
7692 else
7693 echo EXPORTS > $output_objdir/$soname.def;
7694 cat $export_symbols >> $output_objdir/$soname.def;
7696 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7697 else
7698 ld_shlibs=no
7702 interix[3-9]*)
7703 hardcode_direct=no
7704 hardcode_shlibpath_var=no
7705 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7706 export_dynamic_flag_spec='${wl}-E'
7707 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7708 # Instead, shared libraries are loaded at an image base (0x10000000 by
7709 # default) and relocated if they conflict, which is a slow very memory
7710 # consuming and fragmenting process. To avoid this, we pick a random,
7711 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7712 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7713 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7714 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'
7717 gnu* | linux* | k*bsd*-gnu)
7718 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7719 tmp_addflag=
7720 case $cc_basename,$host_cpu in
7721 pgcc*) # Portland Group C compiler
7722 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'
7723 tmp_addflag=' $pic_flag'
7725 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7726 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'
7727 tmp_addflag=' $pic_flag -Mnomain' ;;
7728 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7729 tmp_addflag=' -i_dynamic' ;;
7730 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7731 tmp_addflag=' -i_dynamic -nofor_main' ;;
7732 ifc* | ifort*) # Intel Fortran compiler
7733 tmp_addflag=' -nofor_main' ;;
7734 esac
7735 case `$CC -V 2>&1 | sed 5q` in
7736 *Sun\ C*) # Sun C 5.9
7737 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7738 tmp_sharedflag='-G' ;;
7739 *Sun\ F*) # Sun Fortran 8.3
7740 tmp_sharedflag='-G' ;;
7742 tmp_sharedflag='-shared' ;;
7743 esac
7744 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7746 if test $supports_anon_versioning = yes; then
7747 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7748 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7749 $echo "local: *; };" >> $output_objdir/$libname.ver~
7750 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7752 else
7753 ld_shlibs=no
7757 netbsd*)
7758 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7759 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7760 wlarc=
7761 else
7762 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7763 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7767 solaris*)
7768 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7769 ld_shlibs=no
7770 cat <<EOF 1>&2
7772 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7773 *** create shared libraries on Solaris systems. Therefore, libtool
7774 *** is disabling shared libraries support. We urge you to upgrade GNU
7775 *** binutils to release 2.9.1 or newer. Another option is to modify
7776 *** your PATH or compiler configuration so that the native linker is
7777 *** used, and then restart.
7780 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7781 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7782 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7783 else
7784 ld_shlibs=no
7788 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7789 case `$LD -v 2>&1` in
7790 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7791 ld_shlibs=no
7792 cat <<_LT_EOF 1>&2
7794 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7795 *** reliably create shared libraries on SCO systems. Therefore, libtool
7796 *** is disabling shared libraries support. We urge you to upgrade GNU
7797 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7798 *** your PATH or compiler configuration so that the native linker is
7799 *** used, and then restart.
7801 _LT_EOF
7804 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7805 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7806 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7807 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7808 else
7809 ld_shlibs=no
7812 esac
7815 sunos4*)
7816 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7817 wlarc=
7818 hardcode_direct=yes
7819 hardcode_shlibpath_var=no
7823 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7824 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7825 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7826 else
7827 ld_shlibs=no
7830 esac
7832 if test "$ld_shlibs" = no; then
7833 runpath_var=
7834 hardcode_libdir_flag_spec=
7835 export_dynamic_flag_spec=
7836 whole_archive_flag_spec=
7838 else
7839 # PORTME fill in a description of your system's linker (not GNU ld)
7840 case $host_os in
7841 aix3*)
7842 allow_undefined_flag=unsupported
7843 always_export_symbols=yes
7844 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'
7845 # Note: this linker hardcodes the directories in LIBPATH if there
7846 # are no directories specified by -L.
7847 hardcode_minus_L=yes
7848 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7849 # Neither direct hardcoding nor static linking is supported with a
7850 # broken collect2.
7851 hardcode_direct=unsupported
7855 aix4* | aix5*)
7856 if test "$host_cpu" = ia64; then
7857 # On IA64, the linker does run time linking by default, so we don't
7858 # have to do anything special.
7859 aix_use_runtimelinking=no
7860 exp_sym_flag='-Bexport'
7861 no_entry_flag=""
7862 else
7863 # If we're using GNU nm, then we don't want the "-C" option.
7864 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7865 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7866 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'
7867 else
7868 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'
7870 aix_use_runtimelinking=no
7872 # Test if we are trying to use run time linking or normal
7873 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7874 # need to do runtime linking.
7875 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7876 for ld_flag in $LDFLAGS; do
7877 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7878 aix_use_runtimelinking=yes
7879 break
7881 done
7883 esac
7885 exp_sym_flag='-bexport'
7886 no_entry_flag='-bnoentry'
7889 # When large executables or shared objects are built, AIX ld can
7890 # have problems creating the table of contents. If linking a library
7891 # or program results in "error TOC overflow" add -mminimal-toc to
7892 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7893 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7895 archive_cmds=''
7896 hardcode_direct=yes
7897 hardcode_libdir_separator=':'
7898 link_all_deplibs=yes
7900 if test "$GCC" = yes; then
7901 case $host_os in aix4.[012]|aix4.[012].*)
7902 # We only want to do this on AIX 4.2 and lower, the check
7903 # below for broken collect2 doesn't work under 4.3+
7904 collect2name=`${CC} -print-prog-name=collect2`
7905 if test -f "$collect2name" && \
7906 strings "$collect2name" | grep resolve_lib_name >/dev/null
7907 then
7908 # We have reworked collect2
7910 else
7911 # We have old collect2
7912 hardcode_direct=unsupported
7913 # It fails to find uninstalled libraries when the uninstalled
7914 # path is not listed in the libpath. Setting hardcode_minus_L
7915 # to unsupported forces relinking
7916 hardcode_minus_L=yes
7917 hardcode_libdir_flag_spec='-L$libdir'
7918 hardcode_libdir_separator=
7921 esac
7922 shared_flag='-shared'
7923 if test "$aix_use_runtimelinking" = yes; then
7924 shared_flag="$shared_flag "'${wl}-G'
7926 else
7927 # not using gcc
7928 if test "$host_cpu" = ia64; then
7929 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7930 # chokes on -Wl,-G. The following line is correct:
7931 shared_flag='-G'
7932 else
7933 if test "$aix_use_runtimelinking" = yes; then
7934 shared_flag='${wl}-G'
7935 else
7936 shared_flag='${wl}-bM:SRE'
7941 # It seems that -bexpall does not export symbols beginning with
7942 # underscore (_), so it is better to generate a list of symbols to export.
7943 always_export_symbols=yes
7944 if test "$aix_use_runtimelinking" = yes; then
7945 # Warning - without using the other runtime loading flags (-brtl),
7946 # -berok will link without error, but may produce a broken library.
7947 allow_undefined_flag='-berok'
7948 # Determine the default libpath from the value encoded in an empty executable.
7949 cat >conftest.$ac_ext <<_ACEOF
7950 /* confdefs.h. */
7951 _ACEOF
7952 cat confdefs.h >>conftest.$ac_ext
7953 cat >>conftest.$ac_ext <<_ACEOF
7954 /* end confdefs.h. */
7957 main ()
7961 return 0;
7963 _ACEOF
7964 rm -f conftest.$ac_objext conftest$ac_exeext
7965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7966 (eval $ac_link) 2>conftest.er1
7967 ac_status=$?
7968 grep -v '^ *+' conftest.er1 >conftest.err
7969 rm -f conftest.er1
7970 cat conftest.err >&5
7971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972 (exit $ac_status); } &&
7973 { ac_try='test -z "$ac_c_werror_flag"
7974 || test ! -s conftest.err'
7975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7976 (eval $ac_try) 2>&5
7977 ac_status=$?
7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979 (exit $ac_status); }; } &&
7980 { ac_try='test -s conftest$ac_exeext'
7981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7982 (eval $ac_try) 2>&5
7983 ac_status=$?
7984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985 (exit $ac_status); }; }; then
7987 lt_aix_libpath_sed='
7988 /Import File Strings/,/^$/ {
7989 /^0/ {
7990 s/^0 *\(.*\)$/\1/
7994 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7995 # Check for a 64-bit object if we didn't find anything.
7996 if test -z "$aix_libpath"; then
7997 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7999 else
8000 echo "$as_me: failed program was:" >&5
8001 sed 's/^/| /' conftest.$ac_ext >&5
8004 rm -f conftest.err conftest.$ac_objext \
8005 conftest$ac_exeext conftest.$ac_ext
8006 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8008 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8009 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"
8010 else
8011 if test "$host_cpu" = ia64; then
8012 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8013 allow_undefined_flag="-z nodefs"
8014 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"
8015 else
8016 # Determine the default libpath from the value encoded in an empty executable.
8017 cat >conftest.$ac_ext <<_ACEOF
8018 /* confdefs.h. */
8019 _ACEOF
8020 cat confdefs.h >>conftest.$ac_ext
8021 cat >>conftest.$ac_ext <<_ACEOF
8022 /* end confdefs.h. */
8025 main ()
8029 return 0;
8031 _ACEOF
8032 rm -f conftest.$ac_objext conftest$ac_exeext
8033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8034 (eval $ac_link) 2>conftest.er1
8035 ac_status=$?
8036 grep -v '^ *+' conftest.er1 >conftest.err
8037 rm -f conftest.er1
8038 cat conftest.err >&5
8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 (exit $ac_status); } &&
8041 { ac_try='test -z "$ac_c_werror_flag"
8042 || test ! -s conftest.err'
8043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8044 (eval $ac_try) 2>&5
8045 ac_status=$?
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); }; } &&
8048 { ac_try='test -s conftest$ac_exeext'
8049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8050 (eval $ac_try) 2>&5
8051 ac_status=$?
8052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 (exit $ac_status); }; }; then
8055 lt_aix_libpath_sed='
8056 /Import File Strings/,/^$/ {
8057 /^0/ {
8058 s/^0 *\(.*\)$/\1/
8062 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8063 # Check for a 64-bit object if we didn't find anything.
8064 if test -z "$aix_libpath"; then
8065 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8067 else
8068 echo "$as_me: failed program was:" >&5
8069 sed 's/^/| /' conftest.$ac_ext >&5
8072 rm -f conftest.err conftest.$ac_objext \
8073 conftest$ac_exeext conftest.$ac_ext
8074 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8076 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8077 # Warning - without using the other run time loading flags,
8078 # -berok will link without error, but may produce a broken library.
8079 no_undefined_flag=' ${wl}-bernotok'
8080 allow_undefined_flag=' ${wl}-berok'
8081 # Exported symbols can be pulled into shared objects from archives
8082 whole_archive_flag_spec='$convenience'
8083 archive_cmds_need_lc=yes
8084 # This is similar to how AIX traditionally builds its shared libraries.
8085 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'
8090 amigaos*)
8091 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)'
8092 hardcode_libdir_flag_spec='-L$libdir'
8093 hardcode_minus_L=yes
8094 # see comment about different semantics on the GNU ld section
8095 ld_shlibs=no
8098 bsdi[45]*)
8099 export_dynamic_flag_spec=-rdynamic
8102 cygwin* | mingw* | pw32*)
8103 # When not using gcc, we currently assume that we are using
8104 # Microsoft Visual C++.
8105 # hardcode_libdir_flag_spec is actually meaningless, as there is
8106 # no search path for DLLs.
8107 hardcode_libdir_flag_spec=' '
8108 allow_undefined_flag=unsupported
8109 # Tell ltmain to make .lib files, not .a files.
8110 libext=lib
8111 # Tell ltmain to make .dll files, not .so files.
8112 shrext_cmds=".dll"
8113 # FIXME: Setting linknames here is a bad hack.
8114 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8115 # The linker will automatically build a .lib file if we build a DLL.
8116 old_archive_From_new_cmds='true'
8117 # FIXME: Should let the user specify the lib program.
8118 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8119 fix_srcfile_path='`cygpath -w "$srcfile"`'
8120 enable_shared_with_static_runtimes=yes
8123 darwin* | rhapsody*)
8124 case $host_os in
8125 rhapsody* | darwin1.[012])
8126 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8128 *) # Darwin 1.3 on
8129 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8130 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8131 else
8132 case ${MACOSX_DEPLOYMENT_TARGET} in
8133 10.[012])
8134 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8136 10.*)
8137 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8139 esac
8142 esac
8143 archive_cmds_need_lc=no
8144 hardcode_direct=no
8145 hardcode_automatic=yes
8146 hardcode_shlibpath_var=unsupported
8147 whole_archive_flag_spec=''
8148 link_all_deplibs=yes
8149 if test "$GCC" = yes ; then
8150 output_verbose_link_cmd='echo'
8151 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8152 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8153 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8154 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}'
8155 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}'
8156 else
8157 case $cc_basename in
8158 xlc*)
8159 output_verbose_link_cmd='echo'
8160 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8161 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8162 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8163 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8164 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}'
8167 ld_shlibs=no
8169 esac
8173 dgux*)
8174 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8175 hardcode_libdir_flag_spec='-L$libdir'
8176 hardcode_shlibpath_var=no
8179 freebsd1*)
8180 ld_shlibs=no
8183 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8184 # support. Future versions do this automatically, but an explicit c++rt0.o
8185 # does not break anything, and helps significantly (at the cost of a little
8186 # extra space).
8187 freebsd2.2*)
8188 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8189 hardcode_libdir_flag_spec='-R$libdir'
8190 hardcode_direct=yes
8191 hardcode_shlibpath_var=no
8194 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8195 freebsd2*)
8196 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8197 hardcode_direct=yes
8198 hardcode_minus_L=yes
8199 hardcode_shlibpath_var=no
8202 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8203 freebsd* | dragonfly*)
8204 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8205 hardcode_libdir_flag_spec='-R$libdir'
8206 hardcode_direct=yes
8207 hardcode_shlibpath_var=no
8210 hpux9*)
8211 if test "$GCC" = yes; then
8212 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'
8213 else
8214 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'
8216 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8217 hardcode_libdir_separator=:
8218 hardcode_direct=yes
8220 # hardcode_minus_L: Not really in the search PATH,
8221 # but as the default location of the library.
8222 hardcode_minus_L=yes
8223 export_dynamic_flag_spec='${wl}-E'
8226 hpux10*)
8227 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8228 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8229 else
8230 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8232 if test "$with_gnu_ld" = no; then
8233 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8234 hardcode_libdir_separator=:
8236 hardcode_direct=yes
8237 export_dynamic_flag_spec='${wl}-E'
8239 # hardcode_minus_L: Not really in the search PATH,
8240 # but as the default location of the library.
8241 hardcode_minus_L=yes
8245 hpux11*)
8246 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8247 case $host_cpu in
8248 hppa*64*)
8249 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8251 ia64*)
8252 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8255 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8257 esac
8258 else
8259 case $host_cpu in
8260 hppa*64*)
8261 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8263 ia64*)
8264 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8267 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8269 esac
8271 if test "$with_gnu_ld" = no; then
8272 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8273 hardcode_libdir_separator=:
8275 case $host_cpu in
8276 hppa*64*|ia64*)
8277 hardcode_libdir_flag_spec_ld='+b $libdir'
8278 hardcode_direct=no
8279 hardcode_shlibpath_var=no
8282 hardcode_direct=yes
8283 export_dynamic_flag_spec='${wl}-E'
8285 # hardcode_minus_L: Not really in the search PATH,
8286 # but as the default location of the library.
8287 hardcode_minus_L=yes
8289 esac
8293 irix5* | irix6* | nonstopux*)
8294 if test "$GCC" = yes; then
8295 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'
8296 else
8297 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'
8298 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8300 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8301 hardcode_libdir_separator=:
8302 link_all_deplibs=yes
8305 netbsd*)
8306 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8307 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8308 else
8309 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8311 hardcode_libdir_flag_spec='-R$libdir'
8312 hardcode_direct=yes
8313 hardcode_shlibpath_var=no
8316 newsos6)
8317 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8318 hardcode_direct=yes
8319 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8320 hardcode_libdir_separator=:
8321 hardcode_shlibpath_var=no
8324 openbsd*)
8325 if test -f /usr/libexec/ld.so; then
8326 hardcode_direct=yes
8327 hardcode_shlibpath_var=no
8328 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8329 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8330 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8331 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8332 export_dynamic_flag_spec='${wl}-E'
8333 else
8334 case $host_os in
8335 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8336 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8337 hardcode_libdir_flag_spec='-R$libdir'
8340 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8341 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8343 esac
8345 else
8346 ld_shlibs=no
8350 os2*)
8351 hardcode_libdir_flag_spec='-L$libdir'
8352 hardcode_minus_L=yes
8353 allow_undefined_flag=unsupported
8354 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'
8355 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8358 osf3*)
8359 if test "$GCC" = yes; then
8360 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8361 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'
8362 else
8363 allow_undefined_flag=' -expect_unresolved \*'
8364 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'
8366 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8367 hardcode_libdir_separator=:
8370 osf4* | osf5*) # as osf3* with the addition of -msym flag
8371 if test "$GCC" = yes; then
8372 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8373 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'
8374 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8375 else
8376 allow_undefined_flag=' -expect_unresolved \*'
8377 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'
8378 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8379 $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'
8381 # Both c and cxx compiler support -rpath directly
8382 hardcode_libdir_flag_spec='-rpath $libdir'
8384 hardcode_libdir_separator=:
8387 solaris*)
8388 no_undefined_flag=' -z text'
8389 if test "$GCC" = yes; then
8390 wlarc='${wl}'
8391 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8392 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8393 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8394 else
8395 wlarc=''
8396 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8397 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8398 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8400 hardcode_libdir_flag_spec='-R$libdir'
8401 hardcode_shlibpath_var=no
8402 case $host_os in
8403 solaris2.[0-5] | solaris2.[0-5].*) ;;
8405 # The compiler driver will combine and reorder linker options,
8406 # but understands `-z linker_flag'. GCC discards it without `$wl',
8407 # but is careful enough not to reorder.
8408 # Supported since Solaris 2.6 (maybe 2.5.1?)
8409 if test "$GCC" = yes; then
8410 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8411 else
8412 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8415 esac
8416 link_all_deplibs=yes
8419 sunos4*)
8420 if test "x$host_vendor" = xsequent; then
8421 # Use $CC to link under sequent, because it throws in some extra .o
8422 # files that make .init and .fini sections work.
8423 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8424 else
8425 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8427 hardcode_libdir_flag_spec='-L$libdir'
8428 hardcode_direct=yes
8429 hardcode_minus_L=yes
8430 hardcode_shlibpath_var=no
8433 sysv4)
8434 case $host_vendor in
8435 sni)
8436 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8437 hardcode_direct=yes # is this really true???
8439 siemens)
8440 ## LD is ld it makes a PLAMLIB
8441 ## CC just makes a GrossModule.
8442 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8443 reload_cmds='$CC -r -o $output$reload_objs'
8444 hardcode_direct=no
8446 motorola)
8447 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8448 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8450 esac
8451 runpath_var='LD_RUN_PATH'
8452 hardcode_shlibpath_var=no
8455 sysv4.3*)
8456 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8457 hardcode_shlibpath_var=no
8458 export_dynamic_flag_spec='-Bexport'
8461 sysv4*MP*)
8462 if test -d /usr/nec; then
8463 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8464 hardcode_shlibpath_var=no
8465 runpath_var=LD_RUN_PATH
8466 hardcode_runpath_var=yes
8467 ld_shlibs=yes
8471 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8472 no_undefined_flag='${wl}-z,text'
8473 archive_cmds_need_lc=no
8474 hardcode_shlibpath_var=no
8475 runpath_var='LD_RUN_PATH'
8477 if test "$GCC" = yes; then
8478 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8479 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8480 else
8481 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8482 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8486 sysv5* | sco3.2v5* | sco5v6*)
8487 # Note: We can NOT use -z defs as we might desire, because we do not
8488 # link with -lc, and that would cause any symbols used from libc to
8489 # always be unresolved, which means just about no library would
8490 # ever link correctly. If we're not using GNU ld we use -z text
8491 # though, which does catch some bad symbols but isn't as heavy-handed
8492 # as -z defs.
8493 no_undefined_flag='${wl}-z,text'
8494 allow_undefined_flag='${wl}-z,nodefs'
8495 archive_cmds_need_lc=no
8496 hardcode_shlibpath_var=no
8497 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8498 hardcode_libdir_separator=':'
8499 link_all_deplibs=yes
8500 export_dynamic_flag_spec='${wl}-Bexport'
8501 runpath_var='LD_RUN_PATH'
8503 if test "$GCC" = yes; then
8504 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8505 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8506 else
8507 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8508 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8512 uts4*)
8513 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8514 hardcode_libdir_flag_spec='-L$libdir'
8515 hardcode_shlibpath_var=no
8519 ld_shlibs=no
8521 esac
8524 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8525 echo "${ECHO_T}$ld_shlibs" >&6
8526 test "$ld_shlibs" = no && can_build_shared=no
8529 # Do we need to explicitly link libc?
8531 case "x$archive_cmds_need_lc" in
8532 x|xyes)
8533 # Assume -lc should be added
8534 archive_cmds_need_lc=yes
8536 if test "$enable_shared" = yes && test "$GCC" = yes; then
8537 case $archive_cmds in
8538 *'~'*)
8539 # FIXME: we may have to deal with multi-command sequences.
8541 '$CC '*)
8542 # Test whether the compiler implicitly links with -lc since on some
8543 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8544 # to ld, don't add -lc before -lgcc.
8545 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8546 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8547 $rm conftest*
8548 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8551 (eval $ac_compile) 2>&5
8552 ac_status=$?
8553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554 (exit $ac_status); } 2>conftest.err; then
8555 soname=conftest
8556 lib=conftest
8557 libobjs=conftest.$ac_objext
8558 deplibs=
8559 wl=$lt_prog_compiler_wl
8560 pic_flag=$lt_prog_compiler_pic
8561 compiler_flags=-v
8562 linker_flags=-v
8563 verstring=
8564 output_objdir=.
8565 libname=conftest
8566 lt_save_allow_undefined_flag=$allow_undefined_flag
8567 allow_undefined_flag=
8568 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8569 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8570 ac_status=$?
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); }
8573 then
8574 archive_cmds_need_lc=no
8575 else
8576 archive_cmds_need_lc=yes
8578 allow_undefined_flag=$lt_save_allow_undefined_flag
8579 else
8580 cat conftest.err 1>&5
8582 $rm conftest*
8583 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8584 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8586 esac
8589 esac
8591 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8592 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8593 library_names_spec=
8594 libname_spec='lib$name'
8595 soname_spec=
8596 shrext_cmds=".so"
8597 postinstall_cmds=
8598 postuninstall_cmds=
8599 finish_cmds=
8600 finish_eval=
8601 shlibpath_var=
8602 shlibpath_overrides_runpath=unknown
8603 version_type=none
8604 dynamic_linker="$host_os ld.so"
8605 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8607 if test "$GCC" = yes; then
8608 case $host_os in
8609 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8610 *) lt_awk_arg="/^libraries:/" ;;
8611 esac
8612 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8613 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8614 # if the path contains ";" then we assume it to be the separator
8615 # otherwise default to the standard path separator (i.e. ":") - it is
8616 # assumed that no part of a normal pathname contains ";" but that should
8617 # okay in the real world where ";" in dirpaths is itself problematic.
8618 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8619 else
8620 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8622 # Ok, now we have the path, separated by spaces, we can step through it
8623 # and add multilib dir if necessary.
8624 lt_tmp_lt_search_path_spec=
8625 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8626 for lt_sys_path in $lt_search_path_spec; do
8627 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8628 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8629 else
8630 test -d "$lt_sys_path" && \
8631 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8633 done
8634 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8635 BEGIN {RS=" "; FS="/|\n";} {
8636 lt_foo="";
8637 lt_count=0;
8638 for (lt_i = NF; lt_i > 0; lt_i--) {
8639 if ($lt_i != "" && $lt_i != ".") {
8640 if ($lt_i == "..") {
8641 lt_count++;
8642 } else {
8643 if (lt_count == 0) {
8644 lt_foo="/" $lt_i lt_foo;
8645 } else {
8646 lt_count--;
8651 if (lt_foo != "") { lt_freq[lt_foo]++; }
8652 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8654 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8655 else
8656 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8658 need_lib_prefix=unknown
8659 hardcode_into_libs=no
8661 # when you set need_version to no, make sure it does not cause -set_version
8662 # flags to be left without arguments
8663 need_version=unknown
8665 case $host_os in
8666 aix3*)
8667 version_type=linux
8668 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8669 shlibpath_var=LIBPATH
8671 # AIX 3 has no versioning support, so we append a major version to the name.
8672 soname_spec='${libname}${release}${shared_ext}$major'
8675 aix4* | aix5*)
8676 version_type=linux
8677 need_lib_prefix=no
8678 need_version=no
8679 hardcode_into_libs=yes
8680 if test "$host_cpu" = ia64; then
8681 # AIX 5 supports IA64
8682 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8683 shlibpath_var=LD_LIBRARY_PATH
8684 else
8685 # With GCC up to 2.95.x, collect2 would create an import file
8686 # for dependence libraries. The import file would start with
8687 # the line `#! .'. This would cause the generated library to
8688 # depend on `.', always an invalid library. This was fixed in
8689 # development snapshots of GCC prior to 3.0.
8690 case $host_os in
8691 aix4 | aix4.[01] | aix4.[01].*)
8692 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8693 echo ' yes '
8694 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8696 else
8697 can_build_shared=no
8700 esac
8701 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8702 # soname into executable. Probably we can add versioning support to
8703 # collect2, so additional links can be useful in future.
8704 if test "$aix_use_runtimelinking" = yes; then
8705 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8706 # instead of lib<name>.a to let people know that these are not
8707 # typical AIX shared libraries.
8708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8709 else
8710 # We preserve .a as extension for shared libraries through AIX4.2
8711 # and later when we are not doing run time linking.
8712 library_names_spec='${libname}${release}.a $libname.a'
8713 soname_spec='${libname}${release}${shared_ext}$major'
8715 shlibpath_var=LIBPATH
8719 amigaos*)
8720 library_names_spec='$libname.ixlibrary $libname.a'
8721 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8722 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'
8725 beos*)
8726 library_names_spec='${libname}${shared_ext}'
8727 dynamic_linker="$host_os ld.so"
8728 shlibpath_var=LIBRARY_PATH
8731 bsdi[45]*)
8732 version_type=linux
8733 need_version=no
8734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8735 soname_spec='${libname}${release}${shared_ext}$major'
8736 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8737 shlibpath_var=LD_LIBRARY_PATH
8738 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8739 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8740 # the default ld.so.conf also contains /usr/contrib/lib and
8741 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8742 # libtool to hard-code these into programs
8745 cygwin* | mingw* | pw32*)
8746 version_type=windows
8747 shrext_cmds=".dll"
8748 need_version=no
8749 need_lib_prefix=no
8751 case $GCC,$host_os in
8752 yes,cygwin* | yes,mingw* | yes,pw32*)
8753 library_names_spec='$libname.dll.a'
8754 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8755 postinstall_cmds='base_file=`basename \${file}`~
8756 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8757 dldir=$destdir/`dirname \$dlpath`~
8758 test -d \$dldir || mkdir -p \$dldir~
8759 $install_prog $dir/$dlname \$dldir/$dlname~
8760 chmod a+x \$dldir/$dlname'
8761 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8762 dlpath=$dir/\$dldll~
8763 $rm \$dlpath'
8764 shlibpath_overrides_runpath=yes
8766 case $host_os in
8767 cygwin*)
8768 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8769 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8770 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8772 mingw*)
8773 # MinGW DLLs use traditional 'lib' prefix
8774 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8775 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8776 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8777 # It is most probably a Windows format PATH printed by
8778 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8779 # path with ; separators, and with drive letters. We can handle the
8780 # drive letters (cygwin fileutils understands them), so leave them,
8781 # especially as we might pass files found there to a mingw objdump,
8782 # which wouldn't understand a cygwinified path. Ahh.
8783 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8784 else
8785 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8788 pw32*)
8789 # pw32 DLLs use 'pw' prefix rather than 'lib'
8790 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8792 esac
8796 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8798 esac
8799 dynamic_linker='Win32 ld.exe'
8800 # FIXME: first we should search . and the directory the executable is in
8801 shlibpath_var=PATH
8804 darwin* | rhapsody*)
8805 dynamic_linker="$host_os dyld"
8806 version_type=darwin
8807 need_lib_prefix=no
8808 need_version=no
8809 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8810 soname_spec='${libname}${release}${major}$shared_ext'
8811 shlibpath_overrides_runpath=yes
8812 shlibpath_var=DYLD_LIBRARY_PATH
8813 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8815 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8816 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8819 dgux*)
8820 version_type=linux
8821 need_lib_prefix=no
8822 need_version=no
8823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8824 soname_spec='${libname}${release}${shared_ext}$major'
8825 shlibpath_var=LD_LIBRARY_PATH
8828 freebsd1*)
8829 dynamic_linker=no
8832 freebsd* | dragonfly*)
8833 # DragonFly does not have aout. When/if they implement a new
8834 # versioning mechanism, adjust this.
8835 if test -x /usr/bin/objformat; then
8836 objformat=`/usr/bin/objformat`
8837 else
8838 case $host_os in
8839 freebsd[123]*) objformat=aout ;;
8840 *) objformat=elf ;;
8841 esac
8843 version_type=freebsd-$objformat
8844 case $version_type in
8845 freebsd-elf*)
8846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8847 need_version=no
8848 need_lib_prefix=no
8850 freebsd-*)
8851 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8852 need_version=yes
8854 esac
8855 shlibpath_var=LD_LIBRARY_PATH
8856 case $host_os in
8857 freebsd2*)
8858 shlibpath_overrides_runpath=yes
8860 freebsd3.[01]* | freebsdelf3.[01]*)
8861 shlibpath_overrides_runpath=yes
8862 hardcode_into_libs=yes
8864 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8865 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8866 shlibpath_overrides_runpath=no
8867 hardcode_into_libs=yes
8869 *) # from 4.6 on, and DragonFly
8870 shlibpath_overrides_runpath=yes
8871 hardcode_into_libs=yes
8873 esac
8876 gnu*)
8877 version_type=linux
8878 need_lib_prefix=no
8879 need_version=no
8880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8881 soname_spec='${libname}${release}${shared_ext}$major'
8882 shlibpath_var=LD_LIBRARY_PATH
8883 hardcode_into_libs=yes
8886 hpux9* | hpux10* | hpux11*)
8887 # Give a soname corresponding to the major version so that dld.sl refuses to
8888 # link against other versions.
8889 version_type=sunos
8890 need_lib_prefix=no
8891 need_version=no
8892 case $host_cpu in
8893 ia64*)
8894 shrext_cmds='.so'
8895 hardcode_into_libs=yes
8896 dynamic_linker="$host_os dld.so"
8897 shlibpath_var=LD_LIBRARY_PATH
8898 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8900 soname_spec='${libname}${release}${shared_ext}$major'
8901 if test "X$HPUX_IA64_MODE" = X32; then
8902 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8903 else
8904 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8906 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8908 hppa*64*)
8909 shrext_cmds='.sl'
8910 hardcode_into_libs=yes
8911 dynamic_linker="$host_os dld.sl"
8912 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8913 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8915 soname_spec='${libname}${release}${shared_ext}$major'
8916 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8917 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8920 shrext_cmds='.sl'
8921 dynamic_linker="$host_os dld.sl"
8922 shlibpath_var=SHLIB_PATH
8923 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8925 soname_spec='${libname}${release}${shared_ext}$major'
8927 esac
8928 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8929 postinstall_cmds='chmod 555 $lib'
8932 interix[3-9]*)
8933 version_type=linux
8934 need_lib_prefix=no
8935 need_version=no
8936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8937 soname_spec='${libname}${release}${shared_ext}$major'
8938 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8939 shlibpath_var=LD_LIBRARY_PATH
8940 shlibpath_overrides_runpath=no
8941 hardcode_into_libs=yes
8944 irix5* | irix6* | nonstopux*)
8945 case $host_os in
8946 nonstopux*) version_type=nonstopux ;;
8948 if test "$lt_cv_prog_gnu_ld" = yes; then
8949 version_type=linux
8950 else
8951 version_type=irix
8952 fi ;;
8953 esac
8954 need_lib_prefix=no
8955 need_version=no
8956 soname_spec='${libname}${release}${shared_ext}$major'
8957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8958 case $host_os in
8959 irix5* | nonstopux*)
8960 libsuff= shlibsuff=
8963 case $LD in # libtool.m4 will add one of these switches to LD
8964 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8965 libsuff= shlibsuff= libmagic=32-bit;;
8966 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8967 libsuff=32 shlibsuff=N32 libmagic=N32;;
8968 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8969 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8970 *) libsuff= shlibsuff= libmagic=never-match;;
8971 esac
8973 esac
8974 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8975 shlibpath_overrides_runpath=no
8976 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8977 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8978 hardcode_into_libs=yes
8981 # No shared lib support for Linux oldld, aout, or coff.
8982 linux*oldld* | linux*aout* | linux*coff*)
8983 dynamic_linker=no
8986 # This must be Linux ELF.
8987 linux* | k*bsd*-gnu)
8988 version_type=linux
8989 need_lib_prefix=no
8990 need_version=no
8991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8992 soname_spec='${libname}${release}${shared_ext}$major'
8993 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8994 shlibpath_var=LD_LIBRARY_PATH
8995 shlibpath_overrides_runpath=no
8996 # This implies no fast_install, which is unacceptable.
8997 # Some rework will be needed to allow for fast_install
8998 # before this can be enabled.
8999 hardcode_into_libs=yes
9001 # Append ld.so.conf contents to the search path
9002 if test -f /etc/ld.so.conf; then
9003 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9004 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9007 # We used to test for /lib/ld.so.1 and disable shared libraries on
9008 # powerpc, because MkLinux only supported shared libraries with the
9009 # GNU dynamic linker. Since this was broken with cross compilers,
9010 # most powerpc-linux boxes support dynamic linking these days and
9011 # people can always --disable-shared, the test was removed, and we
9012 # assume the GNU/Linux dynamic linker is in use.
9013 dynamic_linker='GNU/Linux ld.so'
9016 netbsd*)
9017 version_type=sunos
9018 need_lib_prefix=no
9019 need_version=no
9020 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9022 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9023 dynamic_linker='NetBSD (a.out) ld.so'
9024 else
9025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9026 soname_spec='${libname}${release}${shared_ext}$major'
9027 dynamic_linker='NetBSD ld.elf_so'
9029 shlibpath_var=LD_LIBRARY_PATH
9030 shlibpath_overrides_runpath=yes
9031 hardcode_into_libs=yes
9034 newsos6)
9035 version_type=linux
9036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9037 shlibpath_var=LD_LIBRARY_PATH
9038 shlibpath_overrides_runpath=yes
9041 nto-qnx*)
9042 version_type=linux
9043 need_lib_prefix=no
9044 need_version=no
9045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9046 soname_spec='${libname}${release}${shared_ext}$major'
9047 shlibpath_var=LD_LIBRARY_PATH
9048 shlibpath_overrides_runpath=yes
9051 openbsd*)
9052 version_type=sunos
9053 sys_lib_dlsearch_path_spec="/usr/lib"
9054 need_lib_prefix=no
9055 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9056 case $host_os in
9057 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9058 *) need_version=no ;;
9059 esac
9060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9061 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9062 shlibpath_var=LD_LIBRARY_PATH
9063 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9064 case $host_os in
9065 openbsd2.[89] | openbsd2.[89].*)
9066 shlibpath_overrides_runpath=no
9069 shlibpath_overrides_runpath=yes
9071 esac
9072 else
9073 shlibpath_overrides_runpath=yes
9077 os2*)
9078 libname_spec='$name'
9079 shrext_cmds=".dll"
9080 need_lib_prefix=no
9081 library_names_spec='$libname${shared_ext} $libname.a'
9082 dynamic_linker='OS/2 ld.exe'
9083 shlibpath_var=LIBPATH
9086 osf3* | osf4* | osf5*)
9087 version_type=osf
9088 need_lib_prefix=no
9089 need_version=no
9090 soname_spec='${libname}${release}${shared_ext}$major'
9091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9092 shlibpath_var=LD_LIBRARY_PATH
9093 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9094 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9097 rdos*)
9098 dynamic_linker=no
9101 solaris*)
9102 version_type=linux
9103 need_lib_prefix=no
9104 need_version=no
9105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9106 soname_spec='${libname}${release}${shared_ext}$major'
9107 shlibpath_var=LD_LIBRARY_PATH
9108 shlibpath_overrides_runpath=yes
9109 hardcode_into_libs=yes
9110 # ldd complains unless libraries are executable
9111 postinstall_cmds='chmod +x $lib'
9114 sunos4*)
9115 version_type=sunos
9116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9117 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9118 shlibpath_var=LD_LIBRARY_PATH
9119 shlibpath_overrides_runpath=yes
9120 if test "$with_gnu_ld" = yes; then
9121 need_lib_prefix=no
9123 need_version=yes
9126 sysv4 | sysv4.3*)
9127 version_type=linux
9128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9129 soname_spec='${libname}${release}${shared_ext}$major'
9130 shlibpath_var=LD_LIBRARY_PATH
9131 case $host_vendor in
9132 sni)
9133 shlibpath_overrides_runpath=no
9134 need_lib_prefix=no
9135 export_dynamic_flag_spec='${wl}-Blargedynsym'
9136 runpath_var=LD_RUN_PATH
9138 siemens)
9139 need_lib_prefix=no
9141 motorola)
9142 need_lib_prefix=no
9143 need_version=no
9144 shlibpath_overrides_runpath=no
9145 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9147 esac
9150 sysv4*MP*)
9151 if test -d /usr/nec ;then
9152 version_type=linux
9153 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9154 soname_spec='$libname${shared_ext}.$major'
9155 shlibpath_var=LD_LIBRARY_PATH
9159 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9160 version_type=freebsd-elf
9161 need_lib_prefix=no
9162 need_version=no
9163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9164 soname_spec='${libname}${release}${shared_ext}$major'
9165 shlibpath_var=LD_LIBRARY_PATH
9166 hardcode_into_libs=yes
9167 if test "$with_gnu_ld" = yes; then
9168 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9169 shlibpath_overrides_runpath=no
9170 else
9171 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9172 shlibpath_overrides_runpath=yes
9173 case $host_os in
9174 sco3.2v5*)
9175 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9177 esac
9179 sys_lib_dlsearch_path_spec='/usr/lib'
9182 uts4*)
9183 version_type=linux
9184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9185 soname_spec='${libname}${release}${shared_ext}$major'
9186 shlibpath_var=LD_LIBRARY_PATH
9190 dynamic_linker=no
9192 esac
9193 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9194 echo "${ECHO_T}$dynamic_linker" >&6
9195 test "$dynamic_linker" = no && can_build_shared=no
9197 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9198 if test "$GCC" = yes; then
9199 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9202 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9203 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9204 hardcode_action=
9205 if test -n "$hardcode_libdir_flag_spec" || \
9206 test -n "$runpath_var" || \
9207 test "X$hardcode_automatic" = "Xyes" ; then
9209 # We can hardcode non-existant directories.
9210 if test "$hardcode_direct" != no &&
9211 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9212 # have to relink, otherwise we might link with an installed library
9213 # when we should be linking with a yet-to-be-installed one
9214 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9215 test "$hardcode_minus_L" != no; then
9216 # Linking always hardcodes the temporary library directory.
9217 hardcode_action=relink
9218 else
9219 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9220 hardcode_action=immediate
9222 else
9223 # We cannot hardcode anything, or else we can only hardcode existing
9224 # directories.
9225 hardcode_action=unsupported
9227 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9228 echo "${ECHO_T}$hardcode_action" >&6
9230 if test "$hardcode_action" = relink; then
9231 # Fast installation is not supported
9232 enable_fast_install=no
9233 elif test "$shlibpath_overrides_runpath" = yes ||
9234 test "$enable_shared" = no; then
9235 # Fast installation is not necessary
9236 enable_fast_install=needless
9239 striplib=
9240 old_striplib=
9241 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9242 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9243 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9244 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9245 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9246 echo "$as_me:$LINENO: result: yes" >&5
9247 echo "${ECHO_T}yes" >&6
9248 else
9249 # FIXME - insert some real tests, host_os isn't really good enough
9250 case $host_os in
9251 darwin*)
9252 if test -n "$STRIP" ; then
9253 striplib="$STRIP -x"
9254 old_striplib="$STRIP -S"
9255 echo "$as_me:$LINENO: result: yes" >&5
9256 echo "${ECHO_T}yes" >&6
9257 else
9258 echo "$as_me:$LINENO: result: no" >&5
9259 echo "${ECHO_T}no" >&6
9263 echo "$as_me:$LINENO: result: no" >&5
9264 echo "${ECHO_T}no" >&6
9266 esac
9269 if test "x$enable_dlopen" != xyes; then
9270 enable_dlopen=unknown
9271 enable_dlopen_self=unknown
9272 enable_dlopen_self_static=unknown
9273 else
9274 lt_cv_dlopen=no
9275 lt_cv_dlopen_libs=
9277 case $host_os in
9278 beos*)
9279 lt_cv_dlopen="load_add_on"
9280 lt_cv_dlopen_libs=
9281 lt_cv_dlopen_self=yes
9284 mingw* | pw32*)
9285 lt_cv_dlopen="LoadLibrary"
9286 lt_cv_dlopen_libs=
9289 cygwin*)
9290 lt_cv_dlopen="dlopen"
9291 lt_cv_dlopen_libs=
9294 darwin*)
9295 # if libdl is installed we need to link against it
9296 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9297 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9298 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9299 echo $ECHO_N "(cached) $ECHO_C" >&6
9300 else
9301 ac_check_lib_save_LIBS=$LIBS
9302 LIBS="-ldl $LIBS"
9303 cat >conftest.$ac_ext <<_ACEOF
9304 /* confdefs.h. */
9305 _ACEOF
9306 cat confdefs.h >>conftest.$ac_ext
9307 cat >>conftest.$ac_ext <<_ACEOF
9308 /* end confdefs.h. */
9310 /* Override any gcc2 internal prototype to avoid an error. */
9311 #ifdef __cplusplus
9312 extern "C"
9313 #endif
9314 /* We use char because int might match the return type of a gcc2
9315 builtin and then its argument prototype would still apply. */
9316 char dlopen ();
9318 main ()
9320 dlopen ();
9322 return 0;
9324 _ACEOF
9325 rm -f conftest.$ac_objext conftest$ac_exeext
9326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9327 (eval $ac_link) 2>conftest.er1
9328 ac_status=$?
9329 grep -v '^ *+' conftest.er1 >conftest.err
9330 rm -f conftest.er1
9331 cat conftest.err >&5
9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); } &&
9334 { ac_try='test -z "$ac_c_werror_flag"
9335 || test ! -s conftest.err'
9336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9337 (eval $ac_try) 2>&5
9338 ac_status=$?
9339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9340 (exit $ac_status); }; } &&
9341 { ac_try='test -s conftest$ac_exeext'
9342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9343 (eval $ac_try) 2>&5
9344 ac_status=$?
9345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346 (exit $ac_status); }; }; then
9347 ac_cv_lib_dl_dlopen=yes
9348 else
9349 echo "$as_me: failed program was:" >&5
9350 sed 's/^/| /' conftest.$ac_ext >&5
9352 ac_cv_lib_dl_dlopen=no
9354 rm -f conftest.err conftest.$ac_objext \
9355 conftest$ac_exeext conftest.$ac_ext
9356 LIBS=$ac_check_lib_save_LIBS
9358 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9359 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9360 if test $ac_cv_lib_dl_dlopen = yes; then
9361 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9362 else
9364 lt_cv_dlopen="dyld"
9365 lt_cv_dlopen_libs=
9366 lt_cv_dlopen_self=yes
9373 echo "$as_me:$LINENO: checking for shl_load" >&5
9374 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9375 if test "${ac_cv_func_shl_load+set}" = set; then
9376 echo $ECHO_N "(cached) $ECHO_C" >&6
9377 else
9378 cat >conftest.$ac_ext <<_ACEOF
9379 /* confdefs.h. */
9380 _ACEOF
9381 cat confdefs.h >>conftest.$ac_ext
9382 cat >>conftest.$ac_ext <<_ACEOF
9383 /* end confdefs.h. */
9384 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9386 #define shl_load innocuous_shl_load
9388 /* System header to define __stub macros and hopefully few prototypes,
9389 which can conflict with char shl_load (); below.
9390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9391 <limits.h> exists even on freestanding compilers. */
9393 #ifdef __STDC__
9394 # include <limits.h>
9395 #else
9396 # include <assert.h>
9397 #endif
9399 #undef shl_load
9401 /* Override any gcc2 internal prototype to avoid an error. */
9402 #ifdef __cplusplus
9403 extern "C"
9405 #endif
9406 /* We use char because int might match the return type of a gcc2
9407 builtin and then its argument prototype would still apply. */
9408 char shl_load ();
9409 /* The GNU C library defines this for functions which it implements
9410 to always fail with ENOSYS. Some functions are actually named
9411 something starting with __ and the normal name is an alias. */
9412 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9413 choke me
9414 #else
9415 char (*f) () = shl_load;
9416 #endif
9417 #ifdef __cplusplus
9419 #endif
9422 main ()
9424 return f != shl_load;
9426 return 0;
9428 _ACEOF
9429 rm -f conftest.$ac_objext conftest$ac_exeext
9430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9431 (eval $ac_link) 2>conftest.er1
9432 ac_status=$?
9433 grep -v '^ *+' conftest.er1 >conftest.err
9434 rm -f conftest.er1
9435 cat conftest.err >&5
9436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437 (exit $ac_status); } &&
9438 { ac_try='test -z "$ac_c_werror_flag"
9439 || test ! -s conftest.err'
9440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9441 (eval $ac_try) 2>&5
9442 ac_status=$?
9443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444 (exit $ac_status); }; } &&
9445 { ac_try='test -s conftest$ac_exeext'
9446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9447 (eval $ac_try) 2>&5
9448 ac_status=$?
9449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450 (exit $ac_status); }; }; then
9451 ac_cv_func_shl_load=yes
9452 else
9453 echo "$as_me: failed program was:" >&5
9454 sed 's/^/| /' conftest.$ac_ext >&5
9456 ac_cv_func_shl_load=no
9458 rm -f conftest.err conftest.$ac_objext \
9459 conftest$ac_exeext conftest.$ac_ext
9461 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9462 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9463 if test $ac_cv_func_shl_load = yes; then
9464 lt_cv_dlopen="shl_load"
9465 else
9466 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9467 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9468 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9469 echo $ECHO_N "(cached) $ECHO_C" >&6
9470 else
9471 ac_check_lib_save_LIBS=$LIBS
9472 LIBS="-ldld $LIBS"
9473 cat >conftest.$ac_ext <<_ACEOF
9474 /* confdefs.h. */
9475 _ACEOF
9476 cat confdefs.h >>conftest.$ac_ext
9477 cat >>conftest.$ac_ext <<_ACEOF
9478 /* end confdefs.h. */
9480 /* Override any gcc2 internal prototype to avoid an error. */
9481 #ifdef __cplusplus
9482 extern "C"
9483 #endif
9484 /* We use char because int might match the return type of a gcc2
9485 builtin and then its argument prototype would still apply. */
9486 char shl_load ();
9488 main ()
9490 shl_load ();
9492 return 0;
9494 _ACEOF
9495 rm -f conftest.$ac_objext conftest$ac_exeext
9496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9497 (eval $ac_link) 2>conftest.er1
9498 ac_status=$?
9499 grep -v '^ *+' conftest.er1 >conftest.err
9500 rm -f conftest.er1
9501 cat conftest.err >&5
9502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 (exit $ac_status); } &&
9504 { ac_try='test -z "$ac_c_werror_flag"
9505 || test ! -s conftest.err'
9506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9507 (eval $ac_try) 2>&5
9508 ac_status=$?
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); }; } &&
9511 { ac_try='test -s conftest$ac_exeext'
9512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9513 (eval $ac_try) 2>&5
9514 ac_status=$?
9515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516 (exit $ac_status); }; }; then
9517 ac_cv_lib_dld_shl_load=yes
9518 else
9519 echo "$as_me: failed program was:" >&5
9520 sed 's/^/| /' conftest.$ac_ext >&5
9522 ac_cv_lib_dld_shl_load=no
9524 rm -f conftest.err conftest.$ac_objext \
9525 conftest$ac_exeext conftest.$ac_ext
9526 LIBS=$ac_check_lib_save_LIBS
9528 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9529 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9530 if test $ac_cv_lib_dld_shl_load = yes; then
9531 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9532 else
9533 echo "$as_me:$LINENO: checking for dlopen" >&5
9534 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9535 if test "${ac_cv_func_dlopen+set}" = set; then
9536 echo $ECHO_N "(cached) $ECHO_C" >&6
9537 else
9538 cat >conftest.$ac_ext <<_ACEOF
9539 /* confdefs.h. */
9540 _ACEOF
9541 cat confdefs.h >>conftest.$ac_ext
9542 cat >>conftest.$ac_ext <<_ACEOF
9543 /* end confdefs.h. */
9544 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9545 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9546 #define dlopen innocuous_dlopen
9548 /* System header to define __stub macros and hopefully few prototypes,
9549 which can conflict with char dlopen (); below.
9550 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9551 <limits.h> exists even on freestanding compilers. */
9553 #ifdef __STDC__
9554 # include <limits.h>
9555 #else
9556 # include <assert.h>
9557 #endif
9559 #undef dlopen
9561 /* Override any gcc2 internal prototype to avoid an error. */
9562 #ifdef __cplusplus
9563 extern "C"
9565 #endif
9566 /* We use char because int might match the return type of a gcc2
9567 builtin and then its argument prototype would still apply. */
9568 char dlopen ();
9569 /* The GNU C library defines this for functions which it implements
9570 to always fail with ENOSYS. Some functions are actually named
9571 something starting with __ and the normal name is an alias. */
9572 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9573 choke me
9574 #else
9575 char (*f) () = dlopen;
9576 #endif
9577 #ifdef __cplusplus
9579 #endif
9582 main ()
9584 return f != dlopen;
9586 return 0;
9588 _ACEOF
9589 rm -f conftest.$ac_objext conftest$ac_exeext
9590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9591 (eval $ac_link) 2>conftest.er1
9592 ac_status=$?
9593 grep -v '^ *+' conftest.er1 >conftest.err
9594 rm -f conftest.er1
9595 cat conftest.err >&5
9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); } &&
9598 { ac_try='test -z "$ac_c_werror_flag"
9599 || test ! -s conftest.err'
9600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9601 (eval $ac_try) 2>&5
9602 ac_status=$?
9603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604 (exit $ac_status); }; } &&
9605 { ac_try='test -s conftest$ac_exeext'
9606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9607 (eval $ac_try) 2>&5
9608 ac_status=$?
9609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610 (exit $ac_status); }; }; then
9611 ac_cv_func_dlopen=yes
9612 else
9613 echo "$as_me: failed program was:" >&5
9614 sed 's/^/| /' conftest.$ac_ext >&5
9616 ac_cv_func_dlopen=no
9618 rm -f conftest.err conftest.$ac_objext \
9619 conftest$ac_exeext conftest.$ac_ext
9621 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9622 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9623 if test $ac_cv_func_dlopen = yes; then
9624 lt_cv_dlopen="dlopen"
9625 else
9626 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9627 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9628 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9629 echo $ECHO_N "(cached) $ECHO_C" >&6
9630 else
9631 ac_check_lib_save_LIBS=$LIBS
9632 LIBS="-ldl $LIBS"
9633 cat >conftest.$ac_ext <<_ACEOF
9634 /* confdefs.h. */
9635 _ACEOF
9636 cat confdefs.h >>conftest.$ac_ext
9637 cat >>conftest.$ac_ext <<_ACEOF
9638 /* end confdefs.h. */
9640 /* Override any gcc2 internal prototype to avoid an error. */
9641 #ifdef __cplusplus
9642 extern "C"
9643 #endif
9644 /* We use char because int might match the return type of a gcc2
9645 builtin and then its argument prototype would still apply. */
9646 char dlopen ();
9648 main ()
9650 dlopen ();
9652 return 0;
9654 _ACEOF
9655 rm -f conftest.$ac_objext conftest$ac_exeext
9656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9657 (eval $ac_link) 2>conftest.er1
9658 ac_status=$?
9659 grep -v '^ *+' conftest.er1 >conftest.err
9660 rm -f conftest.er1
9661 cat conftest.err >&5
9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); } &&
9664 { ac_try='test -z "$ac_c_werror_flag"
9665 || test ! -s conftest.err'
9666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9667 (eval $ac_try) 2>&5
9668 ac_status=$?
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670 (exit $ac_status); }; } &&
9671 { ac_try='test -s conftest$ac_exeext'
9672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9673 (eval $ac_try) 2>&5
9674 ac_status=$?
9675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 (exit $ac_status); }; }; then
9677 ac_cv_lib_dl_dlopen=yes
9678 else
9679 echo "$as_me: failed program was:" >&5
9680 sed 's/^/| /' conftest.$ac_ext >&5
9682 ac_cv_lib_dl_dlopen=no
9684 rm -f conftest.err conftest.$ac_objext \
9685 conftest$ac_exeext conftest.$ac_ext
9686 LIBS=$ac_check_lib_save_LIBS
9688 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9689 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9690 if test $ac_cv_lib_dl_dlopen = yes; then
9691 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9692 else
9693 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9694 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9695 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9696 echo $ECHO_N "(cached) $ECHO_C" >&6
9697 else
9698 ac_check_lib_save_LIBS=$LIBS
9699 LIBS="-lsvld $LIBS"
9700 cat >conftest.$ac_ext <<_ACEOF
9701 /* confdefs.h. */
9702 _ACEOF
9703 cat confdefs.h >>conftest.$ac_ext
9704 cat >>conftest.$ac_ext <<_ACEOF
9705 /* end confdefs.h. */
9707 /* Override any gcc2 internal prototype to avoid an error. */
9708 #ifdef __cplusplus
9709 extern "C"
9710 #endif
9711 /* We use char because int might match the return type of a gcc2
9712 builtin and then its argument prototype would still apply. */
9713 char dlopen ();
9715 main ()
9717 dlopen ();
9719 return 0;
9721 _ACEOF
9722 rm -f conftest.$ac_objext conftest$ac_exeext
9723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9724 (eval $ac_link) 2>conftest.er1
9725 ac_status=$?
9726 grep -v '^ *+' conftest.er1 >conftest.err
9727 rm -f conftest.er1
9728 cat conftest.err >&5
9729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730 (exit $ac_status); } &&
9731 { ac_try='test -z "$ac_c_werror_flag"
9732 || test ! -s conftest.err'
9733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9734 (eval $ac_try) 2>&5
9735 ac_status=$?
9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737 (exit $ac_status); }; } &&
9738 { ac_try='test -s conftest$ac_exeext'
9739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9740 (eval $ac_try) 2>&5
9741 ac_status=$?
9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743 (exit $ac_status); }; }; then
9744 ac_cv_lib_svld_dlopen=yes
9745 else
9746 echo "$as_me: failed program was:" >&5
9747 sed 's/^/| /' conftest.$ac_ext >&5
9749 ac_cv_lib_svld_dlopen=no
9751 rm -f conftest.err conftest.$ac_objext \
9752 conftest$ac_exeext conftest.$ac_ext
9753 LIBS=$ac_check_lib_save_LIBS
9755 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9756 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9757 if test $ac_cv_lib_svld_dlopen = yes; then
9758 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9759 else
9760 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9761 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9762 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9763 echo $ECHO_N "(cached) $ECHO_C" >&6
9764 else
9765 ac_check_lib_save_LIBS=$LIBS
9766 LIBS="-ldld $LIBS"
9767 cat >conftest.$ac_ext <<_ACEOF
9768 /* confdefs.h. */
9769 _ACEOF
9770 cat confdefs.h >>conftest.$ac_ext
9771 cat >>conftest.$ac_ext <<_ACEOF
9772 /* end confdefs.h. */
9774 /* Override any gcc2 internal prototype to avoid an error. */
9775 #ifdef __cplusplus
9776 extern "C"
9777 #endif
9778 /* We use char because int might match the return type of a gcc2
9779 builtin and then its argument prototype would still apply. */
9780 char dld_link ();
9782 main ()
9784 dld_link ();
9786 return 0;
9788 _ACEOF
9789 rm -f conftest.$ac_objext conftest$ac_exeext
9790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9791 (eval $ac_link) 2>conftest.er1
9792 ac_status=$?
9793 grep -v '^ *+' conftest.er1 >conftest.err
9794 rm -f conftest.er1
9795 cat conftest.err >&5
9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797 (exit $ac_status); } &&
9798 { ac_try='test -z "$ac_c_werror_flag"
9799 || test ! -s conftest.err'
9800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9801 (eval $ac_try) 2>&5
9802 ac_status=$?
9803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804 (exit $ac_status); }; } &&
9805 { ac_try='test -s conftest$ac_exeext'
9806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9807 (eval $ac_try) 2>&5
9808 ac_status=$?
9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810 (exit $ac_status); }; }; then
9811 ac_cv_lib_dld_dld_link=yes
9812 else
9813 echo "$as_me: failed program was:" >&5
9814 sed 's/^/| /' conftest.$ac_ext >&5
9816 ac_cv_lib_dld_dld_link=no
9818 rm -f conftest.err conftest.$ac_objext \
9819 conftest$ac_exeext conftest.$ac_ext
9820 LIBS=$ac_check_lib_save_LIBS
9822 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9823 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9824 if test $ac_cv_lib_dld_dld_link = yes; then
9825 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9844 esac
9846 if test "x$lt_cv_dlopen" != xno; then
9847 enable_dlopen=yes
9848 else
9849 enable_dlopen=no
9852 case $lt_cv_dlopen in
9853 dlopen)
9854 save_CPPFLAGS="$CPPFLAGS"
9855 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9857 save_LDFLAGS="$LDFLAGS"
9858 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9860 save_LIBS="$LIBS"
9861 LIBS="$lt_cv_dlopen_libs $LIBS"
9863 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9864 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9865 if test "${lt_cv_dlopen_self+set}" = set; then
9866 echo $ECHO_N "(cached) $ECHO_C" >&6
9867 else
9868 if test "$cross_compiling" = yes; then :
9869 lt_cv_dlopen_self=cross
9870 else
9871 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9872 lt_status=$lt_dlunknown
9873 cat > conftest.$ac_ext <<EOF
9874 #line 9874 "configure"
9875 #include "confdefs.h"
9877 #if HAVE_DLFCN_H
9878 #include <dlfcn.h>
9879 #endif
9881 #include <stdio.h>
9883 #ifdef RTLD_GLOBAL
9884 # define LT_DLGLOBAL RTLD_GLOBAL
9885 #else
9886 # ifdef DL_GLOBAL
9887 # define LT_DLGLOBAL DL_GLOBAL
9888 # else
9889 # define LT_DLGLOBAL 0
9890 # endif
9891 #endif
9893 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9894 find out it does not work in some platform. */
9895 #ifndef LT_DLLAZY_OR_NOW
9896 # ifdef RTLD_LAZY
9897 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9898 # else
9899 # ifdef DL_LAZY
9900 # define LT_DLLAZY_OR_NOW DL_LAZY
9901 # else
9902 # ifdef RTLD_NOW
9903 # define LT_DLLAZY_OR_NOW RTLD_NOW
9904 # else
9905 # ifdef DL_NOW
9906 # define LT_DLLAZY_OR_NOW DL_NOW
9907 # else
9908 # define LT_DLLAZY_OR_NOW 0
9909 # endif
9910 # endif
9911 # endif
9912 # endif
9913 #endif
9915 #ifdef __cplusplus
9916 extern "C" void exit (int);
9917 #endif
9919 void fnord() { int i=42;}
9920 int main ()
9922 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9923 int status = $lt_dlunknown;
9925 if (self)
9927 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9928 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9929 /* dlclose (self); */
9931 else
9932 puts (dlerror ());
9934 exit (status);
9937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9938 (eval $ac_link) 2>&5
9939 ac_status=$?
9940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9942 (./conftest; exit; ) >&5 2>/dev/null
9943 lt_status=$?
9944 case x$lt_status in
9945 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9946 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9947 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9948 esac
9949 else :
9950 # compilation failed
9951 lt_cv_dlopen_self=no
9954 rm -fr conftest*
9958 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9959 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9961 if test "x$lt_cv_dlopen_self" = xyes; then
9962 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9963 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9964 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9965 if test "${lt_cv_dlopen_self_static+set}" = set; then
9966 echo $ECHO_N "(cached) $ECHO_C" >&6
9967 else
9968 if test "$cross_compiling" = yes; then :
9969 lt_cv_dlopen_self_static=cross
9970 else
9971 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9972 lt_status=$lt_dlunknown
9973 cat > conftest.$ac_ext <<EOF
9974 #line 9974 "configure"
9975 #include "confdefs.h"
9977 #if HAVE_DLFCN_H
9978 #include <dlfcn.h>
9979 #endif
9981 #include <stdio.h>
9983 #ifdef RTLD_GLOBAL
9984 # define LT_DLGLOBAL RTLD_GLOBAL
9985 #else
9986 # ifdef DL_GLOBAL
9987 # define LT_DLGLOBAL DL_GLOBAL
9988 # else
9989 # define LT_DLGLOBAL 0
9990 # endif
9991 #endif
9993 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9994 find out it does not work in some platform. */
9995 #ifndef LT_DLLAZY_OR_NOW
9996 # ifdef RTLD_LAZY
9997 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9998 # else
9999 # ifdef DL_LAZY
10000 # define LT_DLLAZY_OR_NOW DL_LAZY
10001 # else
10002 # ifdef RTLD_NOW
10003 # define LT_DLLAZY_OR_NOW RTLD_NOW
10004 # else
10005 # ifdef DL_NOW
10006 # define LT_DLLAZY_OR_NOW DL_NOW
10007 # else
10008 # define LT_DLLAZY_OR_NOW 0
10009 # endif
10010 # endif
10011 # endif
10012 # endif
10013 #endif
10015 #ifdef __cplusplus
10016 extern "C" void exit (int);
10017 #endif
10019 void fnord() { int i=42;}
10020 int main ()
10022 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10023 int status = $lt_dlunknown;
10025 if (self)
10027 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10028 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10029 /* dlclose (self); */
10031 else
10032 puts (dlerror ());
10034 exit (status);
10037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10038 (eval $ac_link) 2>&5
10039 ac_status=$?
10040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10042 (./conftest; exit; ) >&5 2>/dev/null
10043 lt_status=$?
10044 case x$lt_status in
10045 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10046 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10047 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10048 esac
10049 else :
10050 # compilation failed
10051 lt_cv_dlopen_self_static=no
10054 rm -fr conftest*
10058 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10059 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10062 CPPFLAGS="$save_CPPFLAGS"
10063 LDFLAGS="$save_LDFLAGS"
10064 LIBS="$save_LIBS"
10066 esac
10068 case $lt_cv_dlopen_self in
10069 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10070 *) enable_dlopen_self=unknown ;;
10071 esac
10073 case $lt_cv_dlopen_self_static in
10074 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10075 *) enable_dlopen_self_static=unknown ;;
10076 esac
10080 # Report which library types will actually be built
10081 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10082 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10083 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10084 echo "${ECHO_T}$can_build_shared" >&6
10086 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10087 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10088 test "$can_build_shared" = "no" && enable_shared=no
10090 # On AIX, shared libraries and static libraries use the same namespace, and
10091 # are all built from PIC.
10092 case $host_os in
10093 aix3*)
10094 test "$enable_shared" = yes && enable_static=no
10095 if test -n "$RANLIB"; then
10096 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10097 postinstall_cmds='$RANLIB $lib'
10101 aix4* | aix5*)
10102 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10103 test "$enable_shared" = yes && enable_static=no
10106 esac
10107 echo "$as_me:$LINENO: result: $enable_shared" >&5
10108 echo "${ECHO_T}$enable_shared" >&6
10110 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10111 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10112 # Make sure either enable_shared or enable_static is yes.
10113 test "$enable_shared" = yes || enable_static=yes
10114 echo "$as_me:$LINENO: result: $enable_static" >&5
10115 echo "${ECHO_T}$enable_static" >&6
10117 # The else clause should only fire when bootstrapping the
10118 # libtool distribution, otherwise you forgot to ship ltmain.sh
10119 # with your package, and you will get complaints that there are
10120 # no rules to generate ltmain.sh.
10121 if test -f "$ltmain"; then
10122 # See if we are running on zsh, and set the options which allow our commands through
10123 # without removal of \ escapes.
10124 if test -n "${ZSH_VERSION+set}" ; then
10125 setopt NO_GLOB_SUBST
10127 # Now quote all the things that may contain metacharacters while being
10128 # careful not to overquote the AC_SUBSTed values. We take copies of the
10129 # variables and quote the copies for generation of the libtool script.
10130 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10131 SED SHELL STRIP \
10132 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10133 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10134 deplibs_check_method reload_flag reload_cmds need_locks \
10135 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10136 lt_cv_sys_global_symbol_to_c_name_address \
10137 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10138 old_postinstall_cmds old_postuninstall_cmds \
10139 compiler \
10140 CC \
10141 LD \
10142 lt_prog_compiler_wl \
10143 lt_prog_compiler_pic \
10144 lt_prog_compiler_static \
10145 lt_prog_compiler_no_builtin_flag \
10146 export_dynamic_flag_spec \
10147 thread_safe_flag_spec \
10148 whole_archive_flag_spec \
10149 enable_shared_with_static_runtimes \
10150 old_archive_cmds \
10151 old_archive_from_new_cmds \
10152 predep_objects \
10153 postdep_objects \
10154 predeps \
10155 postdeps \
10156 compiler_lib_search_path \
10157 archive_cmds \
10158 archive_expsym_cmds \
10159 postinstall_cmds \
10160 postuninstall_cmds \
10161 old_archive_from_expsyms_cmds \
10162 allow_undefined_flag \
10163 no_undefined_flag \
10164 export_symbols_cmds \
10165 hardcode_libdir_flag_spec \
10166 hardcode_libdir_flag_spec_ld \
10167 hardcode_libdir_separator \
10168 hardcode_automatic \
10169 module_cmds \
10170 module_expsym_cmds \
10171 lt_cv_prog_compiler_c_o \
10172 fix_srcfile_path \
10173 exclude_expsyms \
10174 include_expsyms; do
10176 case $var in
10177 old_archive_cmds | \
10178 old_archive_from_new_cmds | \
10179 archive_cmds | \
10180 archive_expsym_cmds | \
10181 module_cmds | \
10182 module_expsym_cmds | \
10183 old_archive_from_expsyms_cmds | \
10184 export_symbols_cmds | \
10185 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10186 postinstall_cmds | postuninstall_cmds | \
10187 old_postinstall_cmds | old_postuninstall_cmds | \
10188 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10189 # Double-quote double-evaled strings.
10190 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10193 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10195 esac
10196 done
10198 case $lt_echo in
10199 *'\$0 --fallback-echo"')
10200 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10202 esac
10204 cfgfile="${ofile}T"
10205 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10206 $rm -f "$cfgfile"
10207 { echo "$as_me:$LINENO: creating $ofile" >&5
10208 echo "$as_me: creating $ofile" >&6;}
10210 cat <<__EOF__ >> "$cfgfile"
10211 #! $SHELL
10213 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10214 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10215 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10217 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10218 # Free Software Foundation, Inc.
10220 # This file is part of GNU Libtool:
10221 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10223 # This program is free software; you can redistribute it and/or modify
10224 # it under the terms of the GNU General Public License as published by
10225 # the Free Software Foundation; either version 2 of the License, or
10226 # (at your option) any later version.
10228 # This program is distributed in the hope that it will be useful, but
10229 # WITHOUT ANY WARRANTY; without even the implied warranty of
10230 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10231 # General Public License for more details.
10233 # You should have received a copy of the GNU General Public License
10234 # along with this program; if not, write to the Free Software
10235 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10237 # As a special exception to the GNU General Public License, if you
10238 # distribute this file as part of a program that contains a
10239 # configuration script generated by Autoconf, you may include it under
10240 # the same distribution terms that you use for the rest of that program.
10242 # A sed program that does not truncate output.
10243 SED=$lt_SED
10245 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10246 Xsed="$SED -e 1s/^X//"
10248 # The HP-UX ksh and POSIX shell print the target directory to stdout
10249 # if CDPATH is set.
10250 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10252 # The names of the tagged configurations supported by this script.
10253 available_tags=
10255 # ### BEGIN LIBTOOL CONFIG
10257 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10259 # Shell to use when invoking shell scripts.
10260 SHELL=$lt_SHELL
10262 # Whether or not to build shared libraries.
10263 build_libtool_libs=$enable_shared
10265 # Whether or not to build static libraries.
10266 build_old_libs=$enable_static
10268 # Whether or not to add -lc for building shared libraries.
10269 build_libtool_need_lc=$archive_cmds_need_lc
10271 # Whether or not to disallow shared libs when runtime libs are static
10272 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10274 # Whether or not to optimize for fast installation.
10275 fast_install=$enable_fast_install
10277 # The host system.
10278 host_alias=$host_alias
10279 host=$host
10280 host_os=$host_os
10282 # The build system.
10283 build_alias=$build_alias
10284 build=$build
10285 build_os=$build_os
10287 # An echo program that does not interpret backslashes.
10288 echo=$lt_echo
10290 # The archiver.
10291 AR=$lt_AR
10292 AR_FLAGS=$lt_AR_FLAGS
10294 # A C compiler.
10295 LTCC=$lt_LTCC
10297 # LTCC compiler flags.
10298 LTCFLAGS=$lt_LTCFLAGS
10300 # A language-specific compiler.
10301 CC=$lt_compiler
10303 # Is the compiler the GNU C compiler?
10304 with_gcc=$GCC
10306 # An ERE matcher.
10307 EGREP=$lt_EGREP
10309 # The linker used to build libraries.
10310 LD=$lt_LD
10312 # Whether we need hard or soft links.
10313 LN_S=$lt_LN_S
10315 # A BSD-compatible nm program.
10316 NM=$lt_NM
10318 # A symbol stripping program
10319 STRIP=$lt_STRIP
10321 # Used to examine libraries when file_magic_cmd begins "file"
10322 MAGIC_CMD=$MAGIC_CMD
10324 # Used on cygwin: DLL creation program.
10325 DLLTOOL="$DLLTOOL"
10327 # Used on cygwin: object dumper.
10328 OBJDUMP="$OBJDUMP"
10330 # Used on cygwin: assembler.
10331 AS="$AS"
10333 # The name of the directory that contains temporary libtool files.
10334 objdir=$objdir
10336 # How to create reloadable object files.
10337 reload_flag=$lt_reload_flag
10338 reload_cmds=$lt_reload_cmds
10340 # How to pass a linker flag through the compiler.
10341 wl=$lt_lt_prog_compiler_wl
10343 # Object file suffix (normally "o").
10344 objext="$ac_objext"
10346 # Old archive suffix (normally "a").
10347 libext="$libext"
10349 # Shared library suffix (normally ".so").
10350 shrext_cmds='$shrext_cmds'
10352 # Executable file suffix (normally "").
10353 exeext="$exeext"
10355 # Additional compiler flags for building library objects.
10356 pic_flag=$lt_lt_prog_compiler_pic
10357 pic_mode=$pic_mode
10359 # What is the maximum length of a command?
10360 max_cmd_len=$lt_cv_sys_max_cmd_len
10362 # Does compiler simultaneously support -c and -o options?
10363 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10365 # Must we lock files when doing compilation?
10366 need_locks=$lt_need_locks
10368 # Do we need the lib prefix for modules?
10369 need_lib_prefix=$need_lib_prefix
10371 # Do we need a version for libraries?
10372 need_version=$need_version
10374 # Whether dlopen is supported.
10375 dlopen_support=$enable_dlopen
10377 # Whether dlopen of programs is supported.
10378 dlopen_self=$enable_dlopen_self
10380 # Whether dlopen of statically linked programs is supported.
10381 dlopen_self_static=$enable_dlopen_self_static
10383 # Compiler flag to prevent dynamic linking.
10384 link_static_flag=$lt_lt_prog_compiler_static
10386 # Compiler flag to turn off builtin functions.
10387 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10389 # Compiler flag to allow reflexive dlopens.
10390 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10392 # Compiler flag to generate shared objects directly from archives.
10393 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10395 # Compiler flag to generate thread-safe objects.
10396 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10398 # Library versioning type.
10399 version_type=$version_type
10401 # Format of library name prefix.
10402 libname_spec=$lt_libname_spec
10404 # List of archive names. First name is the real one, the rest are links.
10405 # The last name is the one that the linker finds with -lNAME.
10406 library_names_spec=$lt_library_names_spec
10408 # The coded name of the library, if different from the real name.
10409 soname_spec=$lt_soname_spec
10411 # Commands used to build and install an old-style archive.
10412 RANLIB=$lt_RANLIB
10413 old_archive_cmds=$lt_old_archive_cmds
10414 old_postinstall_cmds=$lt_old_postinstall_cmds
10415 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10417 # Create an old-style archive from a shared archive.
10418 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10420 # Create a temporary old-style archive to link instead of a shared archive.
10421 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10423 # Commands used to build and install a shared archive.
10424 archive_cmds=$lt_archive_cmds
10425 archive_expsym_cmds=$lt_archive_expsym_cmds
10426 postinstall_cmds=$lt_postinstall_cmds
10427 postuninstall_cmds=$lt_postuninstall_cmds
10429 # Commands used to build a loadable module (assumed same as above if empty)
10430 module_cmds=$lt_module_cmds
10431 module_expsym_cmds=$lt_module_expsym_cmds
10433 # Commands to strip libraries.
10434 old_striplib=$lt_old_striplib
10435 striplib=$lt_striplib
10437 # Dependencies to place before the objects being linked to create a
10438 # shared library.
10439 predep_objects=$lt_predep_objects
10441 # Dependencies to place after the objects being linked to create a
10442 # shared library.
10443 postdep_objects=$lt_postdep_objects
10445 # Dependencies to place before the objects being linked to create a
10446 # shared library.
10447 predeps=$lt_predeps
10449 # Dependencies to place after the objects being linked to create a
10450 # shared library.
10451 postdeps=$lt_postdeps
10453 # The library search path used internally by the compiler when linking
10454 # a shared library.
10455 compiler_lib_search_path=$lt_compiler_lib_search_path
10457 # Method to check whether dependent libraries are shared objects.
10458 deplibs_check_method=$lt_deplibs_check_method
10460 # Command to use when deplibs_check_method == file_magic.
10461 file_magic_cmd=$lt_file_magic_cmd
10463 # Flag that allows shared libraries with undefined symbols to be built.
10464 allow_undefined_flag=$lt_allow_undefined_flag
10466 # Flag that forces no undefined symbols.
10467 no_undefined_flag=$lt_no_undefined_flag
10469 # Commands used to finish a libtool library installation in a directory.
10470 finish_cmds=$lt_finish_cmds
10472 # Same as above, but a single script fragment to be evaled but not shown.
10473 finish_eval=$lt_finish_eval
10475 # Take the output of nm and produce a listing of raw symbols and C names.
10476 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10478 # Transform the output of nm in a proper C declaration
10479 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10481 # Transform the output of nm in a C name address pair
10482 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10484 # This is the shared library runtime path variable.
10485 runpath_var=$runpath_var
10487 # This is the shared library path variable.
10488 shlibpath_var=$shlibpath_var
10490 # Is shlibpath searched before the hard-coded library search path?
10491 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10493 # How to hardcode a shared library path into an executable.
10494 hardcode_action=$hardcode_action
10496 # Whether we should hardcode library paths into libraries.
10497 hardcode_into_libs=$hardcode_into_libs
10499 # Flag to hardcode \$libdir into a binary during linking.
10500 # This must work even if \$libdir does not exist.
10501 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10503 # If ld is used when linking, flag to hardcode \$libdir into
10504 # a binary during linking. This must work even if \$libdir does
10505 # not exist.
10506 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10508 # Whether we need a single -rpath flag with a separated argument.
10509 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10511 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10512 # resulting binary.
10513 hardcode_direct=$hardcode_direct
10515 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10516 # resulting binary.
10517 hardcode_minus_L=$hardcode_minus_L
10519 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10520 # the resulting binary.
10521 hardcode_shlibpath_var=$hardcode_shlibpath_var
10523 # Set to yes if building a shared library automatically hardcodes DIR into the library
10524 # and all subsequent libraries and executables linked against it.
10525 hardcode_automatic=$hardcode_automatic
10527 # Variables whose values should be saved in libtool wrapper scripts and
10528 # restored at relink time.
10529 variables_saved_for_relink="$variables_saved_for_relink"
10531 # Whether libtool must link a program against all its dependency libraries.
10532 link_all_deplibs=$link_all_deplibs
10534 # Compile-time system search path for libraries
10535 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10537 # Run-time system search path for libraries
10538 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10540 # Fix the shell variable \$srcfile for the compiler.
10541 fix_srcfile_path=$lt_fix_srcfile_path
10543 # Set to yes if exported symbols are required.
10544 always_export_symbols=$always_export_symbols
10546 # The commands to list exported symbols.
10547 export_symbols_cmds=$lt_export_symbols_cmds
10549 # The commands to extract the exported symbol list from a shared archive.
10550 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10552 # Symbols that should not be listed in the preloaded symbols.
10553 exclude_expsyms=$lt_exclude_expsyms
10555 # Symbols that must always be exported.
10556 include_expsyms=$lt_include_expsyms
10558 # ### END LIBTOOL CONFIG
10560 __EOF__
10563 case $host_os in
10564 aix3*)
10565 cat <<\EOF >> "$cfgfile"
10567 # AIX sometimes has problems with the GCC collect2 program. For some
10568 # reason, if we set the COLLECT_NAMES environment variable, the problems
10569 # vanish in a puff of smoke.
10570 if test "X${COLLECT_NAMES+set}" != Xset; then
10571 COLLECT_NAMES=
10572 export COLLECT_NAMES
10576 esac
10578 # We use sed instead of cat because bash on DJGPP gets confused if
10579 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10580 # text mode, it properly converts lines to CR/LF. This bash problem
10581 # is reportedly fixed, but why not run on old versions too?
10582 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10584 mv -f "$cfgfile" "$ofile" || \
10585 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10586 chmod +x "$ofile"
10588 else
10589 # If there is no Makefile yet, we rely on a make rule to execute
10590 # `config.status --recheck' to rerun these tests and create the
10591 # libtool script then.
10592 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10593 if test -f "$ltmain_in"; then
10594 test -f Makefile && make "$ltmain"
10599 ac_ext=c
10600 ac_cpp='$CPP $CPPFLAGS'
10601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10605 CC="$lt_save_CC"
10608 # Check whether --with-tags or --without-tags was given.
10609 if test "${with_tags+set}" = set; then
10610 withval="$with_tags"
10611 tagnames="$withval"
10614 if test -f "$ltmain" && test -n "$tagnames"; then
10615 if test ! -f "${ofile}"; then
10616 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10617 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10620 if test -z "$LTCC"; then
10621 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10622 if test -z "$LTCC"; then
10623 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10624 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10625 else
10626 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10627 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10630 if test -z "$LTCFLAGS"; then
10631 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10634 # Extract list of available tagged configurations in $ofile.
10635 # Note that this assumes the entire list is on one line.
10636 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10638 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10639 for tagname in $tagnames; do
10640 IFS="$lt_save_ifs"
10641 # Check whether tagname contains only valid characters
10642 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10643 "") ;;
10644 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10645 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10646 { (exit 1); exit 1; }; }
10648 esac
10650 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10651 then
10652 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10653 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10654 { (exit 1); exit 1; }; }
10657 # Update the list of available tags.
10658 if test -n "$tagname"; then
10659 echo appending configuration tag \"$tagname\" to $ofile
10661 case $tagname in
10662 CXX)
10663 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10664 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10665 (test "X$CXX" != "Xg++"))) ; then
10666 ac_ext=cc
10667 ac_cpp='$CXXCPP $CPPFLAGS'
10668 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10669 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10670 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10675 archive_cmds_need_lc_CXX=no
10676 allow_undefined_flag_CXX=
10677 always_export_symbols_CXX=no
10678 archive_expsym_cmds_CXX=
10679 export_dynamic_flag_spec_CXX=
10680 hardcode_direct_CXX=no
10681 hardcode_libdir_flag_spec_CXX=
10682 hardcode_libdir_flag_spec_ld_CXX=
10683 hardcode_libdir_separator_CXX=
10684 hardcode_minus_L_CXX=no
10685 hardcode_shlibpath_var_CXX=unsupported
10686 hardcode_automatic_CXX=no
10687 module_cmds_CXX=
10688 module_expsym_cmds_CXX=
10689 link_all_deplibs_CXX=unknown
10690 old_archive_cmds_CXX=$old_archive_cmds
10691 no_undefined_flag_CXX=
10692 whole_archive_flag_spec_CXX=
10693 enable_shared_with_static_runtimes_CXX=no
10695 # Dependencies to place before and after the object being linked:
10696 predep_objects_CXX=
10697 postdep_objects_CXX=
10698 predeps_CXX=
10699 postdeps_CXX=
10700 compiler_lib_search_path_CXX=
10702 # Source file extension for C++ test sources.
10703 ac_ext=cpp
10705 # Object file extension for compiled C++ test sources.
10706 objext=o
10707 objext_CXX=$objext
10709 # Code to be used in simple compile tests
10710 lt_simple_compile_test_code="int some_variable = 0;"
10712 # Code to be used in simple link tests
10713 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10715 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10717 # If no C compiler was specified, use CC.
10718 LTCC=${LTCC-"$CC"}
10720 # If no C compiler flags were specified, use CFLAGS.
10721 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10723 # Allow CC to be a program name with arguments.
10724 compiler=$CC
10727 # save warnings/boilerplate of simple test code
10728 ac_outfile=conftest.$ac_objext
10729 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10730 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10731 _lt_compiler_boilerplate=`cat conftest.err`
10732 $rm conftest*
10734 ac_outfile=conftest.$ac_objext
10735 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10736 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10737 _lt_linker_boilerplate=`cat conftest.err`
10738 $rm conftest*
10741 # Allow CC to be a program name with arguments.
10742 lt_save_CC=$CC
10743 lt_save_LD=$LD
10744 lt_save_GCC=$GCC
10745 GCC=$GXX
10746 lt_save_with_gnu_ld=$with_gnu_ld
10747 lt_save_path_LD=$lt_cv_path_LD
10748 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10749 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10750 else
10751 $as_unset lt_cv_prog_gnu_ld
10753 if test -n "${lt_cv_path_LDCXX+set}"; then
10754 lt_cv_path_LD=$lt_cv_path_LDCXX
10755 else
10756 $as_unset lt_cv_path_LD
10758 test -z "${LDCXX+set}" || LD=$LDCXX
10759 CC=${CXX-"c++"}
10760 compiler=$CC
10761 compiler_CXX=$CC
10762 for cc_temp in $compiler""; do
10763 case $cc_temp in
10764 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10765 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10766 \-*) ;;
10767 *) break;;
10768 esac
10769 done
10770 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10773 # We don't want -fno-exception wen compiling C++ code, so set the
10774 # no_builtin_flag separately
10775 if test "$GXX" = yes; then
10776 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10777 else
10778 lt_prog_compiler_no_builtin_flag_CXX=
10781 if test "$GXX" = yes; then
10782 # Set up default GNU C++ configuration
10785 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10786 if test "${with_gnu_ld+set}" = set; then
10787 withval="$with_gnu_ld"
10788 test "$withval" = no || with_gnu_ld=yes
10789 else
10790 with_gnu_ld=no
10792 ac_prog=ld
10793 if test "$GCC" = yes; then
10794 # Check if gcc -print-prog-name=ld gives a path.
10795 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10796 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10797 case $host in
10798 *-*-mingw*)
10799 # gcc leaves a trailing carriage return which upsets mingw
10800 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10802 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10803 esac
10804 case $ac_prog in
10805 # Accept absolute paths.
10806 [\\/]* | ?:[\\/]*)
10807 re_direlt='/[^/][^/]*/\.\./'
10808 # Canonicalize the pathname of ld
10809 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10810 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10811 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10812 done
10813 test -z "$LD" && LD="$ac_prog"
10816 # If it fails, then pretend we aren't using GCC.
10817 ac_prog=ld
10820 # If it is relative, then search for the first ld in PATH.
10821 with_gnu_ld=unknown
10823 esac
10824 elif test "$with_gnu_ld" = yes; then
10825 echo "$as_me:$LINENO: checking for GNU ld" >&5
10826 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10827 else
10828 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10829 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10831 if test "${lt_cv_path_LD+set}" = set; then
10832 echo $ECHO_N "(cached) $ECHO_C" >&6
10833 else
10834 if test -z "$LD"; then
10835 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10836 for ac_dir in $PATH; do
10837 IFS="$lt_save_ifs"
10838 test -z "$ac_dir" && ac_dir=.
10839 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10840 lt_cv_path_LD="$ac_dir/$ac_prog"
10841 # Check to see if the program is GNU ld. I'd rather use --version,
10842 # but apparently some variants of GNU ld only accept -v.
10843 # Break only if it was the GNU/non-GNU ld that we prefer.
10844 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10845 *GNU* | *'with BFD'*)
10846 test "$with_gnu_ld" != no && break
10849 test "$with_gnu_ld" != yes && break
10851 esac
10853 done
10854 IFS="$lt_save_ifs"
10855 else
10856 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10860 LD="$lt_cv_path_LD"
10861 if test -n "$LD"; then
10862 echo "$as_me:$LINENO: result: $LD" >&5
10863 echo "${ECHO_T}$LD" >&6
10864 else
10865 echo "$as_me:$LINENO: result: no" >&5
10866 echo "${ECHO_T}no" >&6
10868 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10869 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10870 { (exit 1); exit 1; }; }
10871 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10872 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10873 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10874 echo $ECHO_N "(cached) $ECHO_C" >&6
10875 else
10876 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10877 case `$LD -v 2>&1 </dev/null` in
10878 *GNU* | *'with BFD'*)
10879 lt_cv_prog_gnu_ld=yes
10882 lt_cv_prog_gnu_ld=no
10884 esac
10886 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10887 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10888 with_gnu_ld=$lt_cv_prog_gnu_ld
10892 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10893 # archiving commands below assume that GNU ld is being used.
10894 if test "$with_gnu_ld" = yes; then
10895 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10896 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'
10898 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10899 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10901 # If archive_cmds runs LD, not CC, wlarc should be empty
10902 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10903 # investigate it a little bit more. (MM)
10904 wlarc='${wl}'
10906 # ancient GNU ld didn't support --whole-archive et. al.
10907 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10908 grep 'no-whole-archive' > /dev/null; then
10909 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10910 else
10911 whole_archive_flag_spec_CXX=
10913 else
10914 with_gnu_ld=no
10915 wlarc=
10917 # A generic and very simple default shared library creation
10918 # command for GNU C++ for the case where it uses the native
10919 # linker, instead of GNU ld. If possible, this setting should
10920 # overridden to take advantage of the native linker features on
10921 # the platform it is being used on.
10922 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10925 # Commands to make compiler produce verbose output that lists
10926 # what "hidden" libraries, object files and flags are used when
10927 # linking a shared library.
10928 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10930 else
10931 GXX=no
10932 with_gnu_ld=no
10933 wlarc=
10936 # PORTME: fill in a description of your system's C++ link characteristics
10937 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10938 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10939 ld_shlibs_CXX=yes
10940 case $host_os in
10941 aix3*)
10942 # FIXME: insert proper C++ library support
10943 ld_shlibs_CXX=no
10945 aix4* | aix5*)
10946 if test "$host_cpu" = ia64; then
10947 # On IA64, the linker does run time linking by default, so we don't
10948 # have to do anything special.
10949 aix_use_runtimelinking=no
10950 exp_sym_flag='-Bexport'
10951 no_entry_flag=""
10952 else
10953 aix_use_runtimelinking=no
10955 # Test if we are trying to use run time linking or normal
10956 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10957 # need to do runtime linking.
10958 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10959 for ld_flag in $LDFLAGS; do
10960 case $ld_flag in
10961 *-brtl*)
10962 aix_use_runtimelinking=yes
10963 break
10965 esac
10966 done
10968 esac
10970 exp_sym_flag='-bexport'
10971 no_entry_flag='-bnoentry'
10974 # When large executables or shared objects are built, AIX ld can
10975 # have problems creating the table of contents. If linking a library
10976 # or program results in "error TOC overflow" add -mminimal-toc to
10977 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10978 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10980 archive_cmds_CXX=''
10981 hardcode_direct_CXX=yes
10982 hardcode_libdir_separator_CXX=':'
10983 link_all_deplibs_CXX=yes
10985 if test "$GXX" = yes; then
10986 case $host_os in aix4.[012]|aix4.[012].*)
10987 # We only want to do this on AIX 4.2 and lower, the check
10988 # below for broken collect2 doesn't work under 4.3+
10989 collect2name=`${CC} -print-prog-name=collect2`
10990 if test -f "$collect2name" && \
10991 strings "$collect2name" | grep resolve_lib_name >/dev/null
10992 then
10993 # We have reworked collect2
10995 else
10996 # We have old collect2
10997 hardcode_direct_CXX=unsupported
10998 # It fails to find uninstalled libraries when the uninstalled
10999 # path is not listed in the libpath. Setting hardcode_minus_L
11000 # to unsupported forces relinking
11001 hardcode_minus_L_CXX=yes
11002 hardcode_libdir_flag_spec_CXX='-L$libdir'
11003 hardcode_libdir_separator_CXX=
11006 esac
11007 shared_flag='-shared'
11008 if test "$aix_use_runtimelinking" = yes; then
11009 shared_flag="$shared_flag "'${wl}-G'
11011 else
11012 # not using gcc
11013 if test "$host_cpu" = ia64; then
11014 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11015 # chokes on -Wl,-G. The following line is correct:
11016 shared_flag='-G'
11017 else
11018 if test "$aix_use_runtimelinking" = yes; then
11019 shared_flag='${wl}-G'
11020 else
11021 shared_flag='${wl}-bM:SRE'
11026 # It seems that -bexpall does not export symbols beginning with
11027 # underscore (_), so it is better to generate a list of symbols to export.
11028 always_export_symbols_CXX=yes
11029 if test "$aix_use_runtimelinking" = yes; then
11030 # Warning - without using the other runtime loading flags (-brtl),
11031 # -berok will link without error, but may produce a broken library.
11032 allow_undefined_flag_CXX='-berok'
11033 # Determine the default libpath from the value encoded in an empty executable.
11034 cat >conftest.$ac_ext <<_ACEOF
11035 /* confdefs.h. */
11036 _ACEOF
11037 cat confdefs.h >>conftest.$ac_ext
11038 cat >>conftest.$ac_ext <<_ACEOF
11039 /* end confdefs.h. */
11042 main ()
11046 return 0;
11048 _ACEOF
11049 rm -f conftest.$ac_objext conftest$ac_exeext
11050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11051 (eval $ac_link) 2>conftest.er1
11052 ac_status=$?
11053 grep -v '^ *+' conftest.er1 >conftest.err
11054 rm -f conftest.er1
11055 cat conftest.err >&5
11056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057 (exit $ac_status); } &&
11058 { ac_try='test -z "$ac_cxx_werror_flag"
11059 || test ! -s conftest.err'
11060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11061 (eval $ac_try) 2>&5
11062 ac_status=$?
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); }; } &&
11065 { ac_try='test -s conftest$ac_exeext'
11066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11067 (eval $ac_try) 2>&5
11068 ac_status=$?
11069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070 (exit $ac_status); }; }; then
11072 lt_aix_libpath_sed='
11073 /Import File Strings/,/^$/ {
11074 /^0/ {
11075 s/^0 *\(.*\)$/\1/
11079 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11080 # Check for a 64-bit object if we didn't find anything.
11081 if test -z "$aix_libpath"; then
11082 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11084 else
11085 echo "$as_me: failed program was:" >&5
11086 sed 's/^/| /' conftest.$ac_ext >&5
11089 rm -f conftest.err conftest.$ac_objext \
11090 conftest$ac_exeext conftest.$ac_ext
11091 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11093 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11095 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"
11096 else
11097 if test "$host_cpu" = ia64; then
11098 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11099 allow_undefined_flag_CXX="-z nodefs"
11100 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"
11101 else
11102 # Determine the default libpath from the value encoded in an empty executable.
11103 cat >conftest.$ac_ext <<_ACEOF
11104 /* confdefs.h. */
11105 _ACEOF
11106 cat confdefs.h >>conftest.$ac_ext
11107 cat >>conftest.$ac_ext <<_ACEOF
11108 /* end confdefs.h. */
11111 main ()
11115 return 0;
11117 _ACEOF
11118 rm -f conftest.$ac_objext conftest$ac_exeext
11119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11120 (eval $ac_link) 2>conftest.er1
11121 ac_status=$?
11122 grep -v '^ *+' conftest.er1 >conftest.err
11123 rm -f conftest.er1
11124 cat conftest.err >&5
11125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11126 (exit $ac_status); } &&
11127 { ac_try='test -z "$ac_cxx_werror_flag"
11128 || test ! -s conftest.err'
11129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11130 (eval $ac_try) 2>&5
11131 ac_status=$?
11132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133 (exit $ac_status); }; } &&
11134 { ac_try='test -s conftest$ac_exeext'
11135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11136 (eval $ac_try) 2>&5
11137 ac_status=$?
11138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139 (exit $ac_status); }; }; then
11141 lt_aix_libpath_sed='
11142 /Import File Strings/,/^$/ {
11143 /^0/ {
11144 s/^0 *\(.*\)$/\1/
11148 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11149 # Check for a 64-bit object if we didn't find anything.
11150 if test -z "$aix_libpath"; then
11151 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11153 else
11154 echo "$as_me: failed program was:" >&5
11155 sed 's/^/| /' conftest.$ac_ext >&5
11158 rm -f conftest.err conftest.$ac_objext \
11159 conftest$ac_exeext conftest.$ac_ext
11160 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11162 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11163 # Warning - without using the other run time loading flags,
11164 # -berok will link without error, but may produce a broken library.
11165 no_undefined_flag_CXX=' ${wl}-bernotok'
11166 allow_undefined_flag_CXX=' ${wl}-berok'
11167 # Exported symbols can be pulled into shared objects from archives
11168 whole_archive_flag_spec_CXX='$convenience'
11169 archive_cmds_need_lc_CXX=yes
11170 # This is similar to how AIX traditionally builds its shared libraries.
11171 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'
11176 beos*)
11177 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11178 allow_undefined_flag_CXX=unsupported
11179 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11180 # support --undefined. This deserves some investigation. FIXME
11181 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11182 else
11183 ld_shlibs_CXX=no
11187 chorus*)
11188 case $cc_basename in
11190 # FIXME: insert proper C++ library support
11191 ld_shlibs_CXX=no
11193 esac
11196 cygwin* | mingw* | pw32*)
11197 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11198 # as there is no search path for DLLs.
11199 hardcode_libdir_flag_spec_CXX='-L$libdir'
11200 allow_undefined_flag_CXX=unsupported
11201 always_export_symbols_CXX=no
11202 enable_shared_with_static_runtimes_CXX=yes
11204 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11205 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'
11206 # If the export-symbols file already is a .def file (1st line
11207 # is EXPORTS), use it as is; otherwise, prepend...
11208 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11209 cp $export_symbols $output_objdir/$soname.def;
11210 else
11211 echo EXPORTS > $output_objdir/$soname.def;
11212 cat $export_symbols >> $output_objdir/$soname.def;
11214 $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'
11215 else
11216 ld_shlibs_CXX=no
11219 darwin* | rhapsody*)
11220 case $host_os in
11221 rhapsody* | darwin1.[012])
11222 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11224 *) # Darwin 1.3 on
11225 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11226 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11227 else
11228 case ${MACOSX_DEPLOYMENT_TARGET} in
11229 10.[012])
11230 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11232 10.*)
11233 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11235 esac
11238 esac
11239 archive_cmds_need_lc_CXX=no
11240 hardcode_direct_CXX=no
11241 hardcode_automatic_CXX=yes
11242 hardcode_shlibpath_var_CXX=unsupported
11243 whole_archive_flag_spec_CXX=''
11244 link_all_deplibs_CXX=yes
11246 if test "$GXX" = yes ; then
11247 lt_int_apple_cc_single_mod=no
11248 output_verbose_link_cmd='echo'
11249 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11250 lt_int_apple_cc_single_mod=yes
11252 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11253 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11254 else
11255 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'
11257 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11258 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11259 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11260 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}'
11261 else
11262 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}'
11264 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}'
11265 else
11266 case $cc_basename in
11267 xlc*)
11268 output_verbose_link_cmd='echo'
11269 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11270 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11271 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11272 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11273 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}'
11276 ld_shlibs_CXX=no
11278 esac
11282 dgux*)
11283 case $cc_basename in
11284 ec++*)
11285 # FIXME: insert proper C++ library support
11286 ld_shlibs_CXX=no
11288 ghcx*)
11289 # Green Hills C++ Compiler
11290 # FIXME: insert proper C++ library support
11291 ld_shlibs_CXX=no
11294 # FIXME: insert proper C++ library support
11295 ld_shlibs_CXX=no
11297 esac
11299 freebsd[12]*)
11300 # C++ shared libraries reported to be fairly broken before switch to ELF
11301 ld_shlibs_CXX=no
11303 freebsd-elf*)
11304 archive_cmds_need_lc_CXX=no
11306 freebsd* | dragonfly*)
11307 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11308 # conventions
11309 ld_shlibs_CXX=yes
11311 gnu*)
11313 hpux9*)
11314 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11315 hardcode_libdir_separator_CXX=:
11316 export_dynamic_flag_spec_CXX='${wl}-E'
11317 hardcode_direct_CXX=yes
11318 hardcode_minus_L_CXX=yes # Not in the search PATH,
11319 # but as the default
11320 # location of the library.
11322 case $cc_basename in
11323 CC*)
11324 # FIXME: insert proper C++ library support
11325 ld_shlibs_CXX=no
11327 aCC*)
11328 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'
11329 # Commands to make compiler produce verbose output that lists
11330 # what "hidden" libraries, object files and flags are used when
11331 # linking a shared library.
11333 # There doesn't appear to be a way to prevent this compiler from
11334 # explicitly linking system object files so we need to strip them
11335 # from the output so that they don't get included in the library
11336 # dependencies.
11337 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'
11340 if test "$GXX" = yes; then
11341 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'
11342 else
11343 # FIXME: insert proper C++ library support
11344 ld_shlibs_CXX=no
11347 esac
11349 hpux10*|hpux11*)
11350 if test $with_gnu_ld = no; then
11351 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11352 hardcode_libdir_separator_CXX=:
11354 case $host_cpu in
11355 hppa*64*|ia64*) ;;
11357 export_dynamic_flag_spec_CXX='${wl}-E'
11359 esac
11361 case $host_cpu in
11362 hppa*64*|ia64*)
11363 hardcode_direct_CXX=no
11364 hardcode_shlibpath_var_CXX=no
11367 hardcode_direct_CXX=yes
11368 hardcode_minus_L_CXX=yes # Not in the search PATH,
11369 # but as the default
11370 # location of the library.
11372 esac
11374 case $cc_basename in
11375 CC*)
11376 # FIXME: insert proper C++ library support
11377 ld_shlibs_CXX=no
11379 aCC*)
11380 case $host_cpu in
11381 hppa*64*)
11382 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11384 ia64*)
11385 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11388 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11390 esac
11391 # Commands to make compiler produce verbose output that lists
11392 # what "hidden" libraries, object files and flags are used when
11393 # linking a shared library.
11395 # There doesn't appear to be a way to prevent this compiler from
11396 # explicitly linking system object files so we need to strip them
11397 # from the output so that they don't get included in the library
11398 # dependencies.
11399 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'
11402 if test "$GXX" = yes; then
11403 if test $with_gnu_ld = no; then
11404 case $host_cpu in
11405 hppa*64*)
11406 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11408 ia64*)
11409 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11412 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'
11414 esac
11416 else
11417 # FIXME: insert proper C++ library support
11418 ld_shlibs_CXX=no
11421 esac
11423 interix[3-9]*)
11424 hardcode_direct_CXX=no
11425 hardcode_shlibpath_var_CXX=no
11426 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11427 export_dynamic_flag_spec_CXX='${wl}-E'
11428 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11429 # Instead, shared libraries are loaded at an image base (0x10000000 by
11430 # default) and relocated if they conflict, which is a slow very memory
11431 # consuming and fragmenting process. To avoid this, we pick a random,
11432 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11433 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11434 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'
11435 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'
11437 irix5* | irix6*)
11438 case $cc_basename in
11439 CC*)
11440 # SGI C++
11441 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'
11443 # Archives containing C++ object files must be created using
11444 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11445 # necessary to make sure instantiated templates are included
11446 # in the archive.
11447 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11450 if test "$GXX" = yes; then
11451 if test "$with_gnu_ld" = no; then
11452 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'
11453 else
11454 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'
11457 link_all_deplibs_CXX=yes
11459 esac
11460 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11461 hardcode_libdir_separator_CXX=:
11463 linux* | k*bsd*-gnu)
11464 case $cc_basename in
11465 KCC*)
11466 # Kuck and Associates, Inc. (KAI) C++ Compiler
11468 # KCC will only create a shared library if the output file
11469 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11470 # to its proper name (with version) after linking.
11471 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'
11472 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'
11473 # Commands to make compiler produce verbose output that lists
11474 # what "hidden" libraries, object files and flags are used when
11475 # linking a shared library.
11477 # There doesn't appear to be a way to prevent this compiler from
11478 # explicitly linking system object files so we need to strip them
11479 # from the output so that they don't get included in the library
11480 # dependencies.
11481 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'
11483 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11484 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11486 # Archives containing C++ object files must be created using
11487 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11488 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11490 icpc*)
11491 # Intel C++
11492 with_gnu_ld=yes
11493 # version 8.0 and above of icpc choke on multiply defined symbols
11494 # if we add $predep_objects and $postdep_objects, however 7.1 and
11495 # earlier do not add the objects themselves.
11496 case `$CC -V 2>&1` in
11497 *"Version 7."*)
11498 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11499 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'
11501 *) # Version 8.0 or newer
11502 tmp_idyn=
11503 case $host_cpu in
11504 ia64*) tmp_idyn=' -i_dynamic';;
11505 esac
11506 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11507 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'
11509 esac
11510 archive_cmds_need_lc_CXX=no
11511 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11512 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11513 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11515 pgCC*)
11516 # Portland Group C++ compiler
11517 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11518 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'
11520 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11521 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11522 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'
11524 cxx*)
11525 # Compaq C++
11526 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11527 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'
11529 runpath_var=LD_RUN_PATH
11530 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11531 hardcode_libdir_separator_CXX=:
11533 # Commands to make compiler produce verbose output that lists
11534 # what "hidden" libraries, object files and flags are used when
11535 # linking a shared library.
11537 # There doesn't appear to be a way to prevent this compiler from
11538 # explicitly linking system object files so we need to strip them
11539 # from the output so that they don't get included in the library
11540 # dependencies.
11541 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'
11544 case `$CC -V 2>&1 | sed 5q` in
11545 *Sun\ C*)
11546 # Sun C++ 5.9
11547 no_undefined_flag_CXX=' -zdefs'
11548 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11549 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11550 hardcode_libdir_flag_spec_CXX='-R$libdir'
11551 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11553 # Not sure whether something based on
11554 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11555 # would be better.
11556 output_verbose_link_cmd='echo'
11558 # Archives containing C++ object files must be created using
11559 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11560 # necessary to make sure instantiated templates are included
11561 # in the archive.
11562 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11564 esac
11566 esac
11568 lynxos*)
11569 # FIXME: insert proper C++ library support
11570 ld_shlibs_CXX=no
11572 m88k*)
11573 # FIXME: insert proper C++ library support
11574 ld_shlibs_CXX=no
11576 mvs*)
11577 case $cc_basename in
11578 cxx*)
11579 # FIXME: insert proper C++ library support
11580 ld_shlibs_CXX=no
11583 # FIXME: insert proper C++ library support
11584 ld_shlibs_CXX=no
11586 esac
11588 netbsd*)
11589 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11590 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11591 wlarc=
11592 hardcode_libdir_flag_spec_CXX='-R$libdir'
11593 hardcode_direct_CXX=yes
11594 hardcode_shlibpath_var_CXX=no
11596 # Workaround some broken pre-1.5 toolchains
11597 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11599 openbsd2*)
11600 # C++ shared libraries are fairly broken
11601 ld_shlibs_CXX=no
11603 openbsd*)
11604 if test -f /usr/libexec/ld.so; then
11605 hardcode_direct_CXX=yes
11606 hardcode_shlibpath_var_CXX=no
11607 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11608 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11609 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11610 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11611 export_dynamic_flag_spec_CXX='${wl}-E'
11612 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11614 output_verbose_link_cmd='echo'
11615 else
11616 ld_shlibs_CXX=no
11619 osf3*)
11620 case $cc_basename in
11621 KCC*)
11622 # Kuck and Associates, Inc. (KAI) C++ Compiler
11624 # KCC will only create a shared library if the output file
11625 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11626 # to its proper name (with version) after linking.
11627 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'
11629 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11630 hardcode_libdir_separator_CXX=:
11632 # Archives containing C++ object files must be created using
11633 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11634 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11637 RCC*)
11638 # Rational C++ 2.4.1
11639 # FIXME: insert proper C++ library support
11640 ld_shlibs_CXX=no
11642 cxx*)
11643 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11644 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'
11646 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11647 hardcode_libdir_separator_CXX=:
11649 # Commands to make compiler produce verbose output that lists
11650 # what "hidden" libraries, object files and flags are used when
11651 # linking a shared library.
11653 # There doesn't appear to be a way to prevent this compiler from
11654 # explicitly linking system object files so we need to strip them
11655 # from the output so that they don't get included in the library
11656 # dependencies.
11657 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'
11660 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11661 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11662 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'
11664 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11665 hardcode_libdir_separator_CXX=:
11667 # Commands to make compiler produce verbose output that lists
11668 # what "hidden" libraries, object files and flags are used when
11669 # linking a shared library.
11670 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11672 else
11673 # FIXME: insert proper C++ library support
11674 ld_shlibs_CXX=no
11677 esac
11679 osf4* | osf5*)
11680 case $cc_basename in
11681 KCC*)
11682 # Kuck and Associates, Inc. (KAI) C++ Compiler
11684 # KCC will only create a shared library if the output file
11685 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11686 # to its proper name (with version) after linking.
11687 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'
11689 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11690 hardcode_libdir_separator_CXX=:
11692 # Archives containing C++ object files must be created using
11693 # the KAI C++ compiler.
11694 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11696 RCC*)
11697 # Rational C++ 2.4.1
11698 # FIXME: insert proper C++ library support
11699 ld_shlibs_CXX=no
11701 cxx*)
11702 allow_undefined_flag_CXX=' -expect_unresolved \*'
11703 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'
11704 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11705 echo "-hidden">> $lib.exp~
11706 $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~
11707 $rm $lib.exp'
11709 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11710 hardcode_libdir_separator_CXX=:
11712 # Commands to make compiler produce verbose output that lists
11713 # what "hidden" libraries, object files and flags are used when
11714 # linking a shared library.
11716 # There doesn't appear to be a way to prevent this compiler from
11717 # explicitly linking system object files so we need to strip them
11718 # from the output so that they don't get included in the library
11719 # dependencies.
11720 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'
11723 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11724 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11725 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'
11727 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11728 hardcode_libdir_separator_CXX=:
11730 # Commands to make compiler produce verbose output that lists
11731 # what "hidden" libraries, object files and flags are used when
11732 # linking a shared library.
11733 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11735 else
11736 # FIXME: insert proper C++ library support
11737 ld_shlibs_CXX=no
11740 esac
11742 psos*)
11743 # FIXME: insert proper C++ library support
11744 ld_shlibs_CXX=no
11746 sunos4*)
11747 case $cc_basename in
11748 CC*)
11749 # Sun C++ 4.x
11750 # FIXME: insert proper C++ library support
11751 ld_shlibs_CXX=no
11753 lcc*)
11754 # Lucid
11755 # FIXME: insert proper C++ library support
11756 ld_shlibs_CXX=no
11759 # FIXME: insert proper C++ library support
11760 ld_shlibs_CXX=no
11762 esac
11764 solaris*)
11765 case $cc_basename in
11766 CC*)
11767 # Sun C++ 4.2, 5.x and Centerline C++
11768 archive_cmds_need_lc_CXX=yes
11769 no_undefined_flag_CXX=' -zdefs'
11770 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11771 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11772 $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'
11774 hardcode_libdir_flag_spec_CXX='-R$libdir'
11775 hardcode_shlibpath_var_CXX=no
11776 case $host_os in
11777 solaris2.[0-5] | solaris2.[0-5].*) ;;
11779 # The compiler driver will combine and reorder linker options,
11780 # but understands `-z linker_flag'.
11781 # Supported since Solaris 2.6 (maybe 2.5.1?)
11782 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11784 esac
11785 link_all_deplibs_CXX=yes
11787 output_verbose_link_cmd='echo'
11789 # Archives containing C++ object files must be created using
11790 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11791 # necessary to make sure instantiated templates are included
11792 # in the archive.
11793 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11795 gcx*)
11796 # Green Hills C++ Compiler
11797 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11799 # The C++ compiler must be used to create the archive.
11800 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11803 # GNU C++ compiler with Solaris linker
11804 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11805 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11806 if $CC --version | grep -v '^2\.7' > /dev/null; then
11807 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11808 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11809 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11811 # Commands to make compiler produce verbose output that lists
11812 # what "hidden" libraries, object files and flags are used when
11813 # linking a shared library.
11814 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11815 else
11816 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11817 # platform.
11818 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11819 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11820 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11822 # Commands to make compiler produce verbose output that lists
11823 # what "hidden" libraries, object files and flags are used when
11824 # linking a shared library.
11825 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11828 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11829 case $host_os in
11830 solaris2.[0-5] | solaris2.[0-5].*) ;;
11832 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11834 esac
11837 esac
11839 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11840 no_undefined_flag_CXX='${wl}-z,text'
11841 archive_cmds_need_lc_CXX=no
11842 hardcode_shlibpath_var_CXX=no
11843 runpath_var='LD_RUN_PATH'
11845 case $cc_basename in
11846 CC*)
11847 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11848 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11851 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11852 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11854 esac
11856 sysv5* | sco3.2v5* | sco5v6*)
11857 # Note: We can NOT use -z defs as we might desire, because we do not
11858 # link with -lc, and that would cause any symbols used from libc to
11859 # always be unresolved, which means just about no library would
11860 # ever link correctly. If we're not using GNU ld we use -z text
11861 # though, which does catch some bad symbols but isn't as heavy-handed
11862 # as -z defs.
11863 # For security reasons, it is highly recommended that you always
11864 # use absolute paths for naming shared libraries, and exclude the
11865 # DT_RUNPATH tag from executables and libraries. But doing so
11866 # requires that you compile everything twice, which is a pain.
11867 # So that behaviour is only enabled if SCOABSPATH is set to a
11868 # non-empty value in the environment. Most likely only useful for
11869 # creating official distributions of packages.
11870 # This is a hack until libtool officially supports absolute path
11871 # names for shared libraries.
11872 no_undefined_flag_CXX='${wl}-z,text'
11873 allow_undefined_flag_CXX='${wl}-z,nodefs'
11874 archive_cmds_need_lc_CXX=no
11875 hardcode_shlibpath_var_CXX=no
11876 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11877 hardcode_libdir_separator_CXX=':'
11878 link_all_deplibs_CXX=yes
11879 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11880 runpath_var='LD_RUN_PATH'
11882 case $cc_basename in
11883 CC*)
11884 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11885 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11888 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11889 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11891 esac
11893 tandem*)
11894 case $cc_basename in
11895 NCC*)
11896 # NonStop-UX NCC 3.20
11897 # FIXME: insert proper C++ library support
11898 ld_shlibs_CXX=no
11901 # FIXME: insert proper C++ library support
11902 ld_shlibs_CXX=no
11904 esac
11906 vxworks*)
11907 # FIXME: insert proper C++ library support
11908 ld_shlibs_CXX=no
11911 # FIXME: insert proper C++ library support
11912 ld_shlibs_CXX=no
11914 esac
11915 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11916 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11917 test "$ld_shlibs_CXX" = no && can_build_shared=no
11919 GCC_CXX="$GXX"
11920 LD_CXX="$LD"
11922 ## CAVEAT EMPTOR:
11923 ## There is no encapsulation within the following macros, do not change
11924 ## the running order or otherwise move them around unless you know exactly
11925 ## what you are doing...
11927 cat > conftest.$ac_ext <<EOF
11928 class Foo
11930 public:
11931 Foo (void) { a = 0; }
11932 private:
11933 int a;
11937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11938 (eval $ac_compile) 2>&5
11939 ac_status=$?
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); }; then
11942 # Parse the compiler output and extract the necessary
11943 # objects, libraries and library flags.
11945 # Sentinel used to keep track of whether or not we are before
11946 # the conftest object file.
11947 pre_test_object_deps_done=no
11949 # The `*' in the case matches for architectures that use `case' in
11950 # $output_verbose_cmd can trigger glob expansion during the loop
11951 # eval without this substitution.
11952 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11954 for p in `eval $output_verbose_link_cmd`; do
11955 case $p in
11957 -L* | -R* | -l*)
11958 # Some compilers place space between "-{L,R}" and the path.
11959 # Remove the space.
11960 if test $p = "-L" \
11961 || test $p = "-R"; then
11962 prev=$p
11963 continue
11964 else
11965 prev=
11968 if test "$pre_test_object_deps_done" = no; then
11969 case $p in
11970 -L* | -R*)
11971 # Internal compiler library paths should come after those
11972 # provided the user. The postdeps already come after the
11973 # user supplied libs so there is no need to process them.
11974 if test -z "$compiler_lib_search_path_CXX"; then
11975 compiler_lib_search_path_CXX="${prev}${p}"
11976 else
11977 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11980 # The "-l" case would never come before the object being
11981 # linked, so don't bother handling this case.
11982 esac
11983 else
11984 if test -z "$postdeps_CXX"; then
11985 postdeps_CXX="${prev}${p}"
11986 else
11987 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11992 *.$objext)
11993 # This assumes that the test object file only shows up
11994 # once in the compiler output.
11995 if test "$p" = "conftest.$objext"; then
11996 pre_test_object_deps_done=yes
11997 continue
12000 if test "$pre_test_object_deps_done" = no; then
12001 if test -z "$predep_objects_CXX"; then
12002 predep_objects_CXX="$p"
12003 else
12004 predep_objects_CXX="$predep_objects_CXX $p"
12006 else
12007 if test -z "$postdep_objects_CXX"; then
12008 postdep_objects_CXX="$p"
12009 else
12010 postdep_objects_CXX="$postdep_objects_CXX $p"
12015 *) ;; # Ignore the rest.
12017 esac
12018 done
12020 # Clean up.
12021 rm -f a.out a.exe
12022 else
12023 echo "libtool.m4: error: problem compiling CXX test program"
12026 $rm -f confest.$objext
12028 # PORTME: override above test on systems where it is broken
12029 case $host_os in
12030 interix[3-9]*)
12031 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12032 # hack all around it, let's just trust "g++" to DTRT.
12033 predep_objects_CXX=
12034 postdep_objects_CXX=
12035 postdeps_CXX=
12038 linux*)
12039 case `$CC -V 2>&1 | sed 5q` in
12040 *Sun\ C*)
12041 # Sun C++ 5.9
12043 # The more standards-conforming stlport4 library is
12044 # incompatible with the Cstd library. Avoid specifying
12045 # it if it's in CXXFLAGS. Ignore libCrun as
12046 # -library=stlport4 depends on it.
12047 case " $CXX $CXXFLAGS " in
12048 *" -library=stlport4 "*)
12049 solaris_use_stlport4=yes
12051 esac
12052 if test "$solaris_use_stlport4" != yes; then
12053 postdeps_CXX='-library=Cstd -library=Crun'
12056 esac
12059 solaris*)
12060 case $cc_basename in
12061 CC*)
12062 # The more standards-conforming stlport4 library is
12063 # incompatible with the Cstd library. Avoid specifying
12064 # it if it's in CXXFLAGS. Ignore libCrun as
12065 # -library=stlport4 depends on it.
12066 case " $CXX $CXXFLAGS " in
12067 *" -library=stlport4 "*)
12068 solaris_use_stlport4=yes
12070 esac
12072 # Adding this requires a known-good setup of shared libraries for
12073 # Sun compiler versions before 5.6, else PIC objects from an old
12074 # archive will be linked into the output, leading to subtle bugs.
12075 if test "$solaris_use_stlport4" != yes; then
12076 postdeps_CXX='-library=Cstd -library=Crun'
12079 esac
12081 esac
12084 case " $postdeps_CXX " in
12085 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12086 esac
12088 lt_prog_compiler_wl_CXX=
12089 lt_prog_compiler_pic_CXX=
12090 lt_prog_compiler_static_CXX=
12092 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12093 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12095 # C++ specific cases for pic, static, wl, etc.
12096 if test "$GXX" = yes; then
12097 lt_prog_compiler_wl_CXX='-Wl,'
12098 lt_prog_compiler_static_CXX='-static'
12100 case $host_os in
12101 aix*)
12102 # All AIX code is PIC.
12103 if test "$host_cpu" = ia64; then
12104 # AIX 5 now supports IA64 processor
12105 lt_prog_compiler_static_CXX='-Bstatic'
12108 amigaos*)
12109 # FIXME: we need at least 68020 code to build shared libraries, but
12110 # adding the `-m68020' flag to GCC prevents building anything better,
12111 # like `-m68040'.
12112 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12114 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12115 # PIC is the default for these OSes.
12117 mingw* | cygwin* | os2* | pw32*)
12118 # This hack is so that the source file can tell whether it is being
12119 # built for inclusion in a dll (and should export symbols for example).
12120 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12121 # (--disable-auto-import) libraries
12122 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12124 darwin* | rhapsody*)
12125 # PIC is the default on this platform
12126 # Common symbols not allowed in MH_DYLIB files
12127 lt_prog_compiler_pic_CXX='-fno-common'
12129 *djgpp*)
12130 # DJGPP does not support shared libraries at all
12131 lt_prog_compiler_pic_CXX=
12133 interix[3-9]*)
12134 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12135 # Instead, we relocate shared libraries at runtime.
12137 sysv4*MP*)
12138 if test -d /usr/nec; then
12139 lt_prog_compiler_pic_CXX=-Kconform_pic
12142 hpux*)
12143 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12144 # not for PA HP-UX.
12145 case $host_cpu in
12146 hppa*64*|ia64*)
12149 lt_prog_compiler_pic_CXX='-fPIC'
12151 esac
12154 lt_prog_compiler_pic_CXX='-fPIC'
12156 esac
12157 else
12158 case $host_os in
12159 aix4* | aix5*)
12160 # All AIX code is PIC.
12161 if test "$host_cpu" = ia64; then
12162 # AIX 5 now supports IA64 processor
12163 lt_prog_compiler_static_CXX='-Bstatic'
12164 else
12165 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12168 chorus*)
12169 case $cc_basename in
12170 cxch68*)
12171 # Green Hills C++ Compiler
12172 # _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"
12174 esac
12176 darwin*)
12177 # PIC is the default on this platform
12178 # Common symbols not allowed in MH_DYLIB files
12179 case $cc_basename in
12180 xlc*)
12181 lt_prog_compiler_pic_CXX='-qnocommon'
12182 lt_prog_compiler_wl_CXX='-Wl,'
12184 esac
12186 dgux*)
12187 case $cc_basename in
12188 ec++*)
12189 lt_prog_compiler_pic_CXX='-KPIC'
12191 ghcx*)
12192 # Green Hills C++ Compiler
12193 lt_prog_compiler_pic_CXX='-pic'
12197 esac
12199 freebsd* | dragonfly*)
12200 # FreeBSD uses GNU C++
12202 hpux9* | hpux10* | hpux11*)
12203 case $cc_basename in
12204 CC*)
12205 lt_prog_compiler_wl_CXX='-Wl,'
12206 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12207 if test "$host_cpu" != ia64; then
12208 lt_prog_compiler_pic_CXX='+Z'
12211 aCC*)
12212 lt_prog_compiler_wl_CXX='-Wl,'
12213 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12214 case $host_cpu in
12215 hppa*64*|ia64*)
12216 # +Z the default
12219 lt_prog_compiler_pic_CXX='+Z'
12221 esac
12225 esac
12227 interix*)
12228 # This is c89, which is MS Visual C++ (no shared libs)
12229 # Anyone wants to do a port?
12231 irix5* | irix6* | nonstopux*)
12232 case $cc_basename in
12233 CC*)
12234 lt_prog_compiler_wl_CXX='-Wl,'
12235 lt_prog_compiler_static_CXX='-non_shared'
12236 # CC pic flag -KPIC is the default.
12240 esac
12242 linux* | k*bsd*-gnu)
12243 case $cc_basename in
12244 KCC*)
12245 # KAI C++ Compiler
12246 lt_prog_compiler_wl_CXX='--backend -Wl,'
12247 lt_prog_compiler_pic_CXX='-fPIC'
12249 icpc* | ecpc*)
12250 # Intel C++
12251 lt_prog_compiler_wl_CXX='-Wl,'
12252 lt_prog_compiler_pic_CXX='-KPIC'
12253 lt_prog_compiler_static_CXX='-static'
12255 pgCC*)
12256 # Portland Group C++ compiler.
12257 lt_prog_compiler_wl_CXX='-Wl,'
12258 lt_prog_compiler_pic_CXX='-fpic'
12259 lt_prog_compiler_static_CXX='-Bstatic'
12261 cxx*)
12262 # Compaq C++
12263 # Make sure the PIC flag is empty. It appears that all Alpha
12264 # Linux and Compaq Tru64 Unix objects are PIC.
12265 lt_prog_compiler_pic_CXX=
12266 lt_prog_compiler_static_CXX='-non_shared'
12269 case `$CC -V 2>&1 | sed 5q` in
12270 *Sun\ C*)
12271 # Sun C++ 5.9
12272 lt_prog_compiler_pic_CXX='-KPIC'
12273 lt_prog_compiler_static_CXX='-Bstatic'
12274 lt_prog_compiler_wl_CXX='-Qoption ld '
12276 esac
12278 esac
12280 lynxos*)
12282 m88k*)
12284 mvs*)
12285 case $cc_basename in
12286 cxx*)
12287 lt_prog_compiler_pic_CXX='-W c,exportall'
12291 esac
12293 netbsd*)
12295 osf3* | osf4* | osf5*)
12296 case $cc_basename in
12297 KCC*)
12298 lt_prog_compiler_wl_CXX='--backend -Wl,'
12300 RCC*)
12301 # Rational C++ 2.4.1
12302 lt_prog_compiler_pic_CXX='-pic'
12304 cxx*)
12305 # Digital/Compaq C++
12306 lt_prog_compiler_wl_CXX='-Wl,'
12307 # Make sure the PIC flag is empty. It appears that all Alpha
12308 # Linux and Compaq Tru64 Unix objects are PIC.
12309 lt_prog_compiler_pic_CXX=
12310 lt_prog_compiler_static_CXX='-non_shared'
12314 esac
12316 psos*)
12318 solaris*)
12319 case $cc_basename in
12320 CC*)
12321 # Sun C++ 4.2, 5.x and Centerline C++
12322 lt_prog_compiler_pic_CXX='-KPIC'
12323 lt_prog_compiler_static_CXX='-Bstatic'
12324 lt_prog_compiler_wl_CXX='-Qoption ld '
12326 gcx*)
12327 # Green Hills C++ Compiler
12328 lt_prog_compiler_pic_CXX='-PIC'
12332 esac
12334 sunos4*)
12335 case $cc_basename in
12336 CC*)
12337 # Sun C++ 4.x
12338 lt_prog_compiler_pic_CXX='-pic'
12339 lt_prog_compiler_static_CXX='-Bstatic'
12341 lcc*)
12342 # Lucid
12343 lt_prog_compiler_pic_CXX='-pic'
12347 esac
12349 tandem*)
12350 case $cc_basename in
12351 NCC*)
12352 # NonStop-UX NCC 3.20
12353 lt_prog_compiler_pic_CXX='-KPIC'
12357 esac
12359 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12360 case $cc_basename in
12361 CC*)
12362 lt_prog_compiler_wl_CXX='-Wl,'
12363 lt_prog_compiler_pic_CXX='-KPIC'
12364 lt_prog_compiler_static_CXX='-Bstatic'
12366 esac
12368 vxworks*)
12371 lt_prog_compiler_can_build_shared_CXX=no
12373 esac
12376 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12377 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12380 # Check to make sure the PIC flag actually works.
12382 if test -n "$lt_prog_compiler_pic_CXX"; then
12384 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12385 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12386 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12387 echo $ECHO_N "(cached) $ECHO_C" >&6
12388 else
12389 lt_prog_compiler_pic_works_CXX=no
12390 ac_outfile=conftest.$ac_objext
12391 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12392 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12393 # Insert the option either (1) after the last *FLAGS variable, or
12394 # (2) before a word containing "conftest.", or (3) at the end.
12395 # Note that $ac_compile itself does not contain backslashes and begins
12396 # with a dollar sign (not a hyphen), so the echo should work correctly.
12397 # The option is referenced via a variable to avoid confusing sed.
12398 lt_compile=`echo "$ac_compile" | $SED \
12399 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12400 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12401 -e 's:$: $lt_compiler_flag:'`
12402 (eval echo "\"\$as_me:12402: $lt_compile\"" >&5)
12403 (eval "$lt_compile" 2>conftest.err)
12404 ac_status=$?
12405 cat conftest.err >&5
12406 echo "$as_me:12406: \$? = $ac_status" >&5
12407 if (exit $ac_status) && test -s "$ac_outfile"; then
12408 # The compiler can only warn and ignore the option if not recognized
12409 # So say no if there are warnings other than the usual output.
12410 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12411 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12412 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12413 lt_prog_compiler_pic_works_CXX=yes
12416 $rm conftest*
12419 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12420 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
12422 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12423 case $lt_prog_compiler_pic_CXX in
12424 "" | " "*) ;;
12425 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12426 esac
12427 else
12428 lt_prog_compiler_pic_CXX=
12429 lt_prog_compiler_can_build_shared_CXX=no
12433 case $host_os in
12434 # For platforms which do not support PIC, -DPIC is meaningless:
12435 *djgpp*)
12436 lt_prog_compiler_pic_CXX=
12439 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12441 esac
12444 # Check to make sure the static flag actually works.
12446 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12447 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12448 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
12449 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12450 echo $ECHO_N "(cached) $ECHO_C" >&6
12451 else
12452 lt_prog_compiler_static_works_CXX=no
12453 save_LDFLAGS="$LDFLAGS"
12454 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12455 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12456 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12457 # The linker can only warn and ignore the option if not recognized
12458 # So say no if there are warnings
12459 if test -s conftest.err; then
12460 # Append any errors to the config.log.
12461 cat conftest.err 1>&5
12462 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12463 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12464 if diff conftest.exp conftest.er2 >/dev/null; then
12465 lt_prog_compiler_static_works_CXX=yes
12467 else
12468 lt_prog_compiler_static_works_CXX=yes
12471 $rm conftest*
12472 LDFLAGS="$save_LDFLAGS"
12475 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12476 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
12478 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12480 else
12481 lt_prog_compiler_static_CXX=
12485 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12486 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12487 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12488 echo $ECHO_N "(cached) $ECHO_C" >&6
12489 else
12490 lt_cv_prog_compiler_c_o_CXX=no
12491 $rm -r conftest 2>/dev/null
12492 mkdir conftest
12493 cd conftest
12494 mkdir out
12495 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12497 lt_compiler_flag="-o out/conftest2.$ac_objext"
12498 # Insert the option either (1) after the last *FLAGS variable, or
12499 # (2) before a word containing "conftest.", or (3) at the end.
12500 # Note that $ac_compile itself does not contain backslashes and begins
12501 # with a dollar sign (not a hyphen), so the echo should work correctly.
12502 lt_compile=`echo "$ac_compile" | $SED \
12503 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12504 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12505 -e 's:$: $lt_compiler_flag:'`
12506 (eval echo "\"\$as_me:12506: $lt_compile\"" >&5)
12507 (eval "$lt_compile" 2>out/conftest.err)
12508 ac_status=$?
12509 cat out/conftest.err >&5
12510 echo "$as_me:12510: \$? = $ac_status" >&5
12511 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12512 then
12513 # The compiler can only warn and ignore the option if not recognized
12514 # So say no if there are warnings
12515 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12516 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12517 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12518 lt_cv_prog_compiler_c_o_CXX=yes
12521 chmod u+w . 2>&5
12522 $rm conftest*
12523 # SGI C++ compiler will create directory out/ii_files/ for
12524 # template instantiation
12525 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12526 $rm out/* && rmdir out
12527 cd ..
12528 rmdir conftest
12529 $rm conftest*
12532 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12533 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12536 hard_links="nottested"
12537 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12538 # do not overwrite the value of need_locks provided by the user
12539 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12540 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12541 hard_links=yes
12542 $rm conftest*
12543 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12544 touch conftest.a
12545 ln conftest.a conftest.b 2>&5 || hard_links=no
12546 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12547 echo "$as_me:$LINENO: result: $hard_links" >&5
12548 echo "${ECHO_T}$hard_links" >&6
12549 if test "$hard_links" = no; then
12550 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12551 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12552 need_locks=warn
12554 else
12555 need_locks=no
12558 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12559 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12561 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12562 case $host_os in
12563 aix4* | aix5*)
12564 # If we're using GNU nm, then we don't want the "-C" option.
12565 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12566 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12567 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'
12568 else
12569 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'
12572 pw32*)
12573 export_symbols_cmds_CXX="$ltdll_cmds"
12575 cygwin* | mingw*)
12576 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'
12579 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12581 esac
12583 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12584 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12585 test "$ld_shlibs_CXX" = no && can_build_shared=no
12588 # Do we need to explicitly link libc?
12590 case "x$archive_cmds_need_lc_CXX" in
12591 x|xyes)
12592 # Assume -lc should be added
12593 archive_cmds_need_lc_CXX=yes
12595 if test "$enable_shared" = yes && test "$GCC" = yes; then
12596 case $archive_cmds_CXX in
12597 *'~'*)
12598 # FIXME: we may have to deal with multi-command sequences.
12600 '$CC '*)
12601 # Test whether the compiler implicitly links with -lc since on some
12602 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12603 # to ld, don't add -lc before -lgcc.
12604 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12605 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12606 $rm conftest*
12607 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12610 (eval $ac_compile) 2>&5
12611 ac_status=$?
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); } 2>conftest.err; then
12614 soname=conftest
12615 lib=conftest
12616 libobjs=conftest.$ac_objext
12617 deplibs=
12618 wl=$lt_prog_compiler_wl_CXX
12619 pic_flag=$lt_prog_compiler_pic_CXX
12620 compiler_flags=-v
12621 linker_flags=-v
12622 verstring=
12623 output_objdir=.
12624 libname=conftest
12625 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12626 allow_undefined_flag_CXX=
12627 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12628 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12629 ac_status=$?
12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 (exit $ac_status); }
12632 then
12633 archive_cmds_need_lc_CXX=no
12634 else
12635 archive_cmds_need_lc_CXX=yes
12637 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12638 else
12639 cat conftest.err 1>&5
12641 $rm conftest*
12642 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12643 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12645 esac
12648 esac
12650 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12651 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12652 library_names_spec=
12653 libname_spec='lib$name'
12654 soname_spec=
12655 shrext_cmds=".so"
12656 postinstall_cmds=
12657 postuninstall_cmds=
12658 finish_cmds=
12659 finish_eval=
12660 shlibpath_var=
12661 shlibpath_overrides_runpath=unknown
12662 version_type=none
12663 dynamic_linker="$host_os ld.so"
12664 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12666 need_lib_prefix=unknown
12667 hardcode_into_libs=no
12669 # when you set need_version to no, make sure it does not cause -set_version
12670 # flags to be left without arguments
12671 need_version=unknown
12673 case $host_os in
12674 aix3*)
12675 version_type=linux
12676 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12677 shlibpath_var=LIBPATH
12679 # AIX 3 has no versioning support, so we append a major version to the name.
12680 soname_spec='${libname}${release}${shared_ext}$major'
12683 aix4* | aix5*)
12684 version_type=linux
12685 need_lib_prefix=no
12686 need_version=no
12687 hardcode_into_libs=yes
12688 if test "$host_cpu" = ia64; then
12689 # AIX 5 supports IA64
12690 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12691 shlibpath_var=LD_LIBRARY_PATH
12692 else
12693 # With GCC up to 2.95.x, collect2 would create an import file
12694 # for dependence libraries. The import file would start with
12695 # the line `#! .'. This would cause the generated library to
12696 # depend on `.', always an invalid library. This was fixed in
12697 # development snapshots of GCC prior to 3.0.
12698 case $host_os in
12699 aix4 | aix4.[01] | aix4.[01].*)
12700 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12701 echo ' yes '
12702 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12704 else
12705 can_build_shared=no
12708 esac
12709 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12710 # soname into executable. Probably we can add versioning support to
12711 # collect2, so additional links can be useful in future.
12712 if test "$aix_use_runtimelinking" = yes; then
12713 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12714 # instead of lib<name>.a to let people know that these are not
12715 # typical AIX shared libraries.
12716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12717 else
12718 # We preserve .a as extension for shared libraries through AIX4.2
12719 # and later when we are not doing run time linking.
12720 library_names_spec='${libname}${release}.a $libname.a'
12721 soname_spec='${libname}${release}${shared_ext}$major'
12723 shlibpath_var=LIBPATH
12727 amigaos*)
12728 library_names_spec='$libname.ixlibrary $libname.a'
12729 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12730 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'
12733 beos*)
12734 library_names_spec='${libname}${shared_ext}'
12735 dynamic_linker="$host_os ld.so"
12736 shlibpath_var=LIBRARY_PATH
12739 bsdi[45]*)
12740 version_type=linux
12741 need_version=no
12742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12743 soname_spec='${libname}${release}${shared_ext}$major'
12744 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12745 shlibpath_var=LD_LIBRARY_PATH
12746 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12747 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12748 # the default ld.so.conf also contains /usr/contrib/lib and
12749 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12750 # libtool to hard-code these into programs
12753 cygwin* | mingw* | pw32*)
12754 version_type=windows
12755 shrext_cmds=".dll"
12756 need_version=no
12757 need_lib_prefix=no
12759 case $GCC,$host_os in
12760 yes,cygwin* | yes,mingw* | yes,pw32*)
12761 library_names_spec='$libname.dll.a'
12762 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12763 postinstall_cmds='base_file=`basename \${file}`~
12764 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12765 dldir=$destdir/`dirname \$dlpath`~
12766 test -d \$dldir || mkdir -p \$dldir~
12767 $install_prog $dir/$dlname \$dldir/$dlname~
12768 chmod a+x \$dldir/$dlname'
12769 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12770 dlpath=$dir/\$dldll~
12771 $rm \$dlpath'
12772 shlibpath_overrides_runpath=yes
12774 case $host_os in
12775 cygwin*)
12776 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12777 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12778 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12780 mingw*)
12781 # MinGW DLLs use traditional 'lib' prefix
12782 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12783 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12784 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12785 # It is most probably a Windows format PATH printed by
12786 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12787 # path with ; separators, and with drive letters. We can handle the
12788 # drive letters (cygwin fileutils understands them), so leave them,
12789 # especially as we might pass files found there to a mingw objdump,
12790 # which wouldn't understand a cygwinified path. Ahh.
12791 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12792 else
12793 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12796 pw32*)
12797 # pw32 DLLs use 'pw' prefix rather than 'lib'
12798 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12800 esac
12804 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12806 esac
12807 dynamic_linker='Win32 ld.exe'
12808 # FIXME: first we should search . and the directory the executable is in
12809 shlibpath_var=PATH
12812 darwin* | rhapsody*)
12813 dynamic_linker="$host_os dyld"
12814 version_type=darwin
12815 need_lib_prefix=no
12816 need_version=no
12817 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12818 soname_spec='${libname}${release}${major}$shared_ext'
12819 shlibpath_overrides_runpath=yes
12820 shlibpath_var=DYLD_LIBRARY_PATH
12821 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12823 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12826 dgux*)
12827 version_type=linux
12828 need_lib_prefix=no
12829 need_version=no
12830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12831 soname_spec='${libname}${release}${shared_ext}$major'
12832 shlibpath_var=LD_LIBRARY_PATH
12835 freebsd1*)
12836 dynamic_linker=no
12839 freebsd* | dragonfly*)
12840 # DragonFly does not have aout. When/if they implement a new
12841 # versioning mechanism, adjust this.
12842 if test -x /usr/bin/objformat; then
12843 objformat=`/usr/bin/objformat`
12844 else
12845 case $host_os in
12846 freebsd[123]*) objformat=aout ;;
12847 *) objformat=elf ;;
12848 esac
12850 version_type=freebsd-$objformat
12851 case $version_type in
12852 freebsd-elf*)
12853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12854 need_version=no
12855 need_lib_prefix=no
12857 freebsd-*)
12858 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12859 need_version=yes
12861 esac
12862 shlibpath_var=LD_LIBRARY_PATH
12863 case $host_os in
12864 freebsd2*)
12865 shlibpath_overrides_runpath=yes
12867 freebsd3.[01]* | freebsdelf3.[01]*)
12868 shlibpath_overrides_runpath=yes
12869 hardcode_into_libs=yes
12871 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12872 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12873 shlibpath_overrides_runpath=no
12874 hardcode_into_libs=yes
12876 *) # from 4.6 on, and DragonFly
12877 shlibpath_overrides_runpath=yes
12878 hardcode_into_libs=yes
12880 esac
12883 gnu*)
12884 version_type=linux
12885 need_lib_prefix=no
12886 need_version=no
12887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12888 soname_spec='${libname}${release}${shared_ext}$major'
12889 shlibpath_var=LD_LIBRARY_PATH
12890 hardcode_into_libs=yes
12893 hpux9* | hpux10* | hpux11*)
12894 # Give a soname corresponding to the major version so that dld.sl refuses to
12895 # link against other versions.
12896 version_type=sunos
12897 need_lib_prefix=no
12898 need_version=no
12899 case $host_cpu in
12900 ia64*)
12901 shrext_cmds='.so'
12902 hardcode_into_libs=yes
12903 dynamic_linker="$host_os dld.so"
12904 shlibpath_var=LD_LIBRARY_PATH
12905 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12907 soname_spec='${libname}${release}${shared_ext}$major'
12908 if test "X$HPUX_IA64_MODE" = X32; then
12909 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12910 else
12911 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12913 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12915 hppa*64*)
12916 shrext_cmds='.sl'
12917 hardcode_into_libs=yes
12918 dynamic_linker="$host_os dld.sl"
12919 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12920 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12922 soname_spec='${libname}${release}${shared_ext}$major'
12923 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12924 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12927 shrext_cmds='.sl'
12928 dynamic_linker="$host_os dld.sl"
12929 shlibpath_var=SHLIB_PATH
12930 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12932 soname_spec='${libname}${release}${shared_ext}$major'
12934 esac
12935 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12936 postinstall_cmds='chmod 555 $lib'
12939 interix[3-9]*)
12940 version_type=linux
12941 need_lib_prefix=no
12942 need_version=no
12943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12944 soname_spec='${libname}${release}${shared_ext}$major'
12945 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12946 shlibpath_var=LD_LIBRARY_PATH
12947 shlibpath_overrides_runpath=no
12948 hardcode_into_libs=yes
12951 irix5* | irix6* | nonstopux*)
12952 case $host_os in
12953 nonstopux*) version_type=nonstopux ;;
12955 if test "$lt_cv_prog_gnu_ld" = yes; then
12956 version_type=linux
12957 else
12958 version_type=irix
12959 fi ;;
12960 esac
12961 need_lib_prefix=no
12962 need_version=no
12963 soname_spec='${libname}${release}${shared_ext}$major'
12964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12965 case $host_os in
12966 irix5* | nonstopux*)
12967 libsuff= shlibsuff=
12970 case $LD in # libtool.m4 will add one of these switches to LD
12971 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12972 libsuff= shlibsuff= libmagic=32-bit;;
12973 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12974 libsuff=32 shlibsuff=N32 libmagic=N32;;
12975 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12976 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12977 *) libsuff= shlibsuff= libmagic=never-match;;
12978 esac
12980 esac
12981 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12982 shlibpath_overrides_runpath=no
12983 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12984 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12985 hardcode_into_libs=yes
12988 # No shared lib support for Linux oldld, aout, or coff.
12989 linux*oldld* | linux*aout* | linux*coff*)
12990 dynamic_linker=no
12993 # This must be Linux ELF.
12994 linux* | k*bsd*-gnu)
12995 version_type=linux
12996 need_lib_prefix=no
12997 need_version=no
12998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12999 soname_spec='${libname}${release}${shared_ext}$major'
13000 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13001 shlibpath_var=LD_LIBRARY_PATH
13002 shlibpath_overrides_runpath=no
13003 # This implies no fast_install, which is unacceptable.
13004 # Some rework will be needed to allow for fast_install
13005 # before this can be enabled.
13006 hardcode_into_libs=yes
13008 # Append ld.so.conf contents to the search path
13009 if test -f /etc/ld.so.conf; then
13010 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13011 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13014 # We used to test for /lib/ld.so.1 and disable shared libraries on
13015 # powerpc, because MkLinux only supported shared libraries with the
13016 # GNU dynamic linker. Since this was broken with cross compilers,
13017 # most powerpc-linux boxes support dynamic linking these days and
13018 # people can always --disable-shared, the test was removed, and we
13019 # assume the GNU/Linux dynamic linker is in use.
13020 dynamic_linker='GNU/Linux ld.so'
13023 netbsd*)
13024 version_type=sunos
13025 need_lib_prefix=no
13026 need_version=no
13027 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13029 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13030 dynamic_linker='NetBSD (a.out) ld.so'
13031 else
13032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13033 soname_spec='${libname}${release}${shared_ext}$major'
13034 dynamic_linker='NetBSD ld.elf_so'
13036 shlibpath_var=LD_LIBRARY_PATH
13037 shlibpath_overrides_runpath=yes
13038 hardcode_into_libs=yes
13041 newsos6)
13042 version_type=linux
13043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13044 shlibpath_var=LD_LIBRARY_PATH
13045 shlibpath_overrides_runpath=yes
13048 nto-qnx*)
13049 version_type=linux
13050 need_lib_prefix=no
13051 need_version=no
13052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13053 soname_spec='${libname}${release}${shared_ext}$major'
13054 shlibpath_var=LD_LIBRARY_PATH
13055 shlibpath_overrides_runpath=yes
13058 openbsd*)
13059 version_type=sunos
13060 sys_lib_dlsearch_path_spec="/usr/lib"
13061 need_lib_prefix=no
13062 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13063 case $host_os in
13064 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13065 *) need_version=no ;;
13066 esac
13067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13068 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13069 shlibpath_var=LD_LIBRARY_PATH
13070 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13071 case $host_os in
13072 openbsd2.[89] | openbsd2.[89].*)
13073 shlibpath_overrides_runpath=no
13076 shlibpath_overrides_runpath=yes
13078 esac
13079 else
13080 shlibpath_overrides_runpath=yes
13084 os2*)
13085 libname_spec='$name'
13086 shrext_cmds=".dll"
13087 need_lib_prefix=no
13088 library_names_spec='$libname${shared_ext} $libname.a'
13089 dynamic_linker='OS/2 ld.exe'
13090 shlibpath_var=LIBPATH
13093 osf3* | osf4* | osf5*)
13094 version_type=osf
13095 need_lib_prefix=no
13096 need_version=no
13097 soname_spec='${libname}${release}${shared_ext}$major'
13098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13099 shlibpath_var=LD_LIBRARY_PATH
13100 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13101 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13104 rdos*)
13105 dynamic_linker=no
13108 solaris*)
13109 version_type=linux
13110 need_lib_prefix=no
13111 need_version=no
13112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13113 soname_spec='${libname}${release}${shared_ext}$major'
13114 shlibpath_var=LD_LIBRARY_PATH
13115 shlibpath_overrides_runpath=yes
13116 hardcode_into_libs=yes
13117 # ldd complains unless libraries are executable
13118 postinstall_cmds='chmod +x $lib'
13121 sunos4*)
13122 version_type=sunos
13123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13124 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13125 shlibpath_var=LD_LIBRARY_PATH
13126 shlibpath_overrides_runpath=yes
13127 if test "$with_gnu_ld" = yes; then
13128 need_lib_prefix=no
13130 need_version=yes
13133 sysv4 | sysv4.3*)
13134 version_type=linux
13135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13136 soname_spec='${libname}${release}${shared_ext}$major'
13137 shlibpath_var=LD_LIBRARY_PATH
13138 case $host_vendor in
13139 sni)
13140 shlibpath_overrides_runpath=no
13141 need_lib_prefix=no
13142 export_dynamic_flag_spec='${wl}-Blargedynsym'
13143 runpath_var=LD_RUN_PATH
13145 siemens)
13146 need_lib_prefix=no
13148 motorola)
13149 need_lib_prefix=no
13150 need_version=no
13151 shlibpath_overrides_runpath=no
13152 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13154 esac
13157 sysv4*MP*)
13158 if test -d /usr/nec ;then
13159 version_type=linux
13160 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13161 soname_spec='$libname${shared_ext}.$major'
13162 shlibpath_var=LD_LIBRARY_PATH
13166 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13167 version_type=freebsd-elf
13168 need_lib_prefix=no
13169 need_version=no
13170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13171 soname_spec='${libname}${release}${shared_ext}$major'
13172 shlibpath_var=LD_LIBRARY_PATH
13173 hardcode_into_libs=yes
13174 if test "$with_gnu_ld" = yes; then
13175 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13176 shlibpath_overrides_runpath=no
13177 else
13178 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13179 shlibpath_overrides_runpath=yes
13180 case $host_os in
13181 sco3.2v5*)
13182 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13184 esac
13186 sys_lib_dlsearch_path_spec='/usr/lib'
13189 uts4*)
13190 version_type=linux
13191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13192 soname_spec='${libname}${release}${shared_ext}$major'
13193 shlibpath_var=LD_LIBRARY_PATH
13197 dynamic_linker=no
13199 esac
13200 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13201 echo "${ECHO_T}$dynamic_linker" >&6
13202 test "$dynamic_linker" = no && can_build_shared=no
13204 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13205 if test "$GCC" = yes; then
13206 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13209 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13210 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13211 hardcode_action_CXX=
13212 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13213 test -n "$runpath_var_CXX" || \
13214 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13216 # We can hardcode non-existant directories.
13217 if test "$hardcode_direct_CXX" != no &&
13218 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13219 # have to relink, otherwise we might link with an installed library
13220 # when we should be linking with a yet-to-be-installed one
13221 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13222 test "$hardcode_minus_L_CXX" != no; then
13223 # Linking always hardcodes the temporary library directory.
13224 hardcode_action_CXX=relink
13225 else
13226 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13227 hardcode_action_CXX=immediate
13229 else
13230 # We cannot hardcode anything, or else we can only hardcode existing
13231 # directories.
13232 hardcode_action_CXX=unsupported
13234 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13235 echo "${ECHO_T}$hardcode_action_CXX" >&6
13237 if test "$hardcode_action_CXX" = relink; then
13238 # Fast installation is not supported
13239 enable_fast_install=no
13240 elif test "$shlibpath_overrides_runpath" = yes ||
13241 test "$enable_shared" = no; then
13242 # Fast installation is not necessary
13243 enable_fast_install=needless
13247 # The else clause should only fire when bootstrapping the
13248 # libtool distribution, otherwise you forgot to ship ltmain.sh
13249 # with your package, and you will get complaints that there are
13250 # no rules to generate ltmain.sh.
13251 if test -f "$ltmain"; then
13252 # See if we are running on zsh, and set the options which allow our commands through
13253 # without removal of \ escapes.
13254 if test -n "${ZSH_VERSION+set}" ; then
13255 setopt NO_GLOB_SUBST
13257 # Now quote all the things that may contain metacharacters while being
13258 # careful not to overquote the AC_SUBSTed values. We take copies of the
13259 # variables and quote the copies for generation of the libtool script.
13260 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13261 SED SHELL STRIP \
13262 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13263 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13264 deplibs_check_method reload_flag reload_cmds need_locks \
13265 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13266 lt_cv_sys_global_symbol_to_c_name_address \
13267 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13268 old_postinstall_cmds old_postuninstall_cmds \
13269 compiler_CXX \
13270 CC_CXX \
13271 LD_CXX \
13272 lt_prog_compiler_wl_CXX \
13273 lt_prog_compiler_pic_CXX \
13274 lt_prog_compiler_static_CXX \
13275 lt_prog_compiler_no_builtin_flag_CXX \
13276 export_dynamic_flag_spec_CXX \
13277 thread_safe_flag_spec_CXX \
13278 whole_archive_flag_spec_CXX \
13279 enable_shared_with_static_runtimes_CXX \
13280 old_archive_cmds_CXX \
13281 old_archive_from_new_cmds_CXX \
13282 predep_objects_CXX \
13283 postdep_objects_CXX \
13284 predeps_CXX \
13285 postdeps_CXX \
13286 compiler_lib_search_path_CXX \
13287 archive_cmds_CXX \
13288 archive_expsym_cmds_CXX \
13289 postinstall_cmds_CXX \
13290 postuninstall_cmds_CXX \
13291 old_archive_from_expsyms_cmds_CXX \
13292 allow_undefined_flag_CXX \
13293 no_undefined_flag_CXX \
13294 export_symbols_cmds_CXX \
13295 hardcode_libdir_flag_spec_CXX \
13296 hardcode_libdir_flag_spec_ld_CXX \
13297 hardcode_libdir_separator_CXX \
13298 hardcode_automatic_CXX \
13299 module_cmds_CXX \
13300 module_expsym_cmds_CXX \
13301 lt_cv_prog_compiler_c_o_CXX \
13302 fix_srcfile_path_CXX \
13303 exclude_expsyms_CXX \
13304 include_expsyms_CXX; do
13306 case $var in
13307 old_archive_cmds_CXX | \
13308 old_archive_from_new_cmds_CXX | \
13309 archive_cmds_CXX | \
13310 archive_expsym_cmds_CXX | \
13311 module_cmds_CXX | \
13312 module_expsym_cmds_CXX | \
13313 old_archive_from_expsyms_cmds_CXX | \
13314 export_symbols_cmds_CXX | \
13315 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13316 postinstall_cmds | postuninstall_cmds | \
13317 old_postinstall_cmds | old_postuninstall_cmds | \
13318 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13319 # Double-quote double-evaled strings.
13320 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13323 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13325 esac
13326 done
13328 case $lt_echo in
13329 *'\$0 --fallback-echo"')
13330 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13332 esac
13334 cfgfile="$ofile"
13336 cat <<__EOF__ >> "$cfgfile"
13337 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13339 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13341 # Shell to use when invoking shell scripts.
13342 SHELL=$lt_SHELL
13344 # Whether or not to build shared libraries.
13345 build_libtool_libs=$enable_shared
13347 # Whether or not to build static libraries.
13348 build_old_libs=$enable_static
13350 # Whether or not to add -lc for building shared libraries.
13351 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13353 # Whether or not to disallow shared libs when runtime libs are static
13354 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13356 # Whether or not to optimize for fast installation.
13357 fast_install=$enable_fast_install
13359 # The host system.
13360 host_alias=$host_alias
13361 host=$host
13362 host_os=$host_os
13364 # The build system.
13365 build_alias=$build_alias
13366 build=$build
13367 build_os=$build_os
13369 # An echo program that does not interpret backslashes.
13370 echo=$lt_echo
13372 # The archiver.
13373 AR=$lt_AR
13374 AR_FLAGS=$lt_AR_FLAGS
13376 # A C compiler.
13377 LTCC=$lt_LTCC
13379 # LTCC compiler flags.
13380 LTCFLAGS=$lt_LTCFLAGS
13382 # A language-specific compiler.
13383 CC=$lt_compiler_CXX
13385 # Is the compiler the GNU C compiler?
13386 with_gcc=$GCC_CXX
13388 # An ERE matcher.
13389 EGREP=$lt_EGREP
13391 # The linker used to build libraries.
13392 LD=$lt_LD_CXX
13394 # Whether we need hard or soft links.
13395 LN_S=$lt_LN_S
13397 # A BSD-compatible nm program.
13398 NM=$lt_NM
13400 # A symbol stripping program
13401 STRIP=$lt_STRIP
13403 # Used to examine libraries when file_magic_cmd begins "file"
13404 MAGIC_CMD=$MAGIC_CMD
13406 # Used on cygwin: DLL creation program.
13407 DLLTOOL="$DLLTOOL"
13409 # Used on cygwin: object dumper.
13410 OBJDUMP="$OBJDUMP"
13412 # Used on cygwin: assembler.
13413 AS="$AS"
13415 # The name of the directory that contains temporary libtool files.
13416 objdir=$objdir
13418 # How to create reloadable object files.
13419 reload_flag=$lt_reload_flag
13420 reload_cmds=$lt_reload_cmds
13422 # How to pass a linker flag through the compiler.
13423 wl=$lt_lt_prog_compiler_wl_CXX
13425 # Object file suffix (normally "o").
13426 objext="$ac_objext"
13428 # Old archive suffix (normally "a").
13429 libext="$libext"
13431 # Shared library suffix (normally ".so").
13432 shrext_cmds='$shrext_cmds'
13434 # Executable file suffix (normally "").
13435 exeext="$exeext"
13437 # Additional compiler flags for building library objects.
13438 pic_flag=$lt_lt_prog_compiler_pic_CXX
13439 pic_mode=$pic_mode
13441 # What is the maximum length of a command?
13442 max_cmd_len=$lt_cv_sys_max_cmd_len
13444 # Does compiler simultaneously support -c and -o options?
13445 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13447 # Must we lock files when doing compilation?
13448 need_locks=$lt_need_locks
13450 # Do we need the lib prefix for modules?
13451 need_lib_prefix=$need_lib_prefix
13453 # Do we need a version for libraries?
13454 need_version=$need_version
13456 # Whether dlopen is supported.
13457 dlopen_support=$enable_dlopen
13459 # Whether dlopen of programs is supported.
13460 dlopen_self=$enable_dlopen_self
13462 # Whether dlopen of statically linked programs is supported.
13463 dlopen_self_static=$enable_dlopen_self_static
13465 # Compiler flag to prevent dynamic linking.
13466 link_static_flag=$lt_lt_prog_compiler_static_CXX
13468 # Compiler flag to turn off builtin functions.
13469 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13471 # Compiler flag to allow reflexive dlopens.
13472 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13474 # Compiler flag to generate shared objects directly from archives.
13475 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13477 # Compiler flag to generate thread-safe objects.
13478 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13480 # Library versioning type.
13481 version_type=$version_type
13483 # Format of library name prefix.
13484 libname_spec=$lt_libname_spec
13486 # List of archive names. First name is the real one, the rest are links.
13487 # The last name is the one that the linker finds with -lNAME.
13488 library_names_spec=$lt_library_names_spec
13490 # The coded name of the library, if different from the real name.
13491 soname_spec=$lt_soname_spec
13493 # Commands used to build and install an old-style archive.
13494 RANLIB=$lt_RANLIB
13495 old_archive_cmds=$lt_old_archive_cmds_CXX
13496 old_postinstall_cmds=$lt_old_postinstall_cmds
13497 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13499 # Create an old-style archive from a shared archive.
13500 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13502 # Create a temporary old-style archive to link instead of a shared archive.
13503 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13505 # Commands used to build and install a shared archive.
13506 archive_cmds=$lt_archive_cmds_CXX
13507 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13508 postinstall_cmds=$lt_postinstall_cmds
13509 postuninstall_cmds=$lt_postuninstall_cmds
13511 # Commands used to build a loadable module (assumed same as above if empty)
13512 module_cmds=$lt_module_cmds_CXX
13513 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13515 # Commands to strip libraries.
13516 old_striplib=$lt_old_striplib
13517 striplib=$lt_striplib
13519 # Dependencies to place before the objects being linked to create a
13520 # shared library.
13521 predep_objects=$lt_predep_objects_CXX
13523 # Dependencies to place after the objects being linked to create a
13524 # shared library.
13525 postdep_objects=$lt_postdep_objects_CXX
13527 # Dependencies to place before the objects being linked to create a
13528 # shared library.
13529 predeps=$lt_predeps_CXX
13531 # Dependencies to place after the objects being linked to create a
13532 # shared library.
13533 postdeps=$lt_postdeps_CXX
13535 # The library search path used internally by the compiler when linking
13536 # a shared library.
13537 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13539 # Method to check whether dependent libraries are shared objects.
13540 deplibs_check_method=$lt_deplibs_check_method
13542 # Command to use when deplibs_check_method == file_magic.
13543 file_magic_cmd=$lt_file_magic_cmd
13545 # Flag that allows shared libraries with undefined symbols to be built.
13546 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13548 # Flag that forces no undefined symbols.
13549 no_undefined_flag=$lt_no_undefined_flag_CXX
13551 # Commands used to finish a libtool library installation in a directory.
13552 finish_cmds=$lt_finish_cmds
13554 # Same as above, but a single script fragment to be evaled but not shown.
13555 finish_eval=$lt_finish_eval
13557 # Take the output of nm and produce a listing of raw symbols and C names.
13558 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13560 # Transform the output of nm in a proper C declaration
13561 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13563 # Transform the output of nm in a C name address pair
13564 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13566 # This is the shared library runtime path variable.
13567 runpath_var=$runpath_var
13569 # This is the shared library path variable.
13570 shlibpath_var=$shlibpath_var
13572 # Is shlibpath searched before the hard-coded library search path?
13573 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13575 # How to hardcode a shared library path into an executable.
13576 hardcode_action=$hardcode_action_CXX
13578 # Whether we should hardcode library paths into libraries.
13579 hardcode_into_libs=$hardcode_into_libs
13581 # Flag to hardcode \$libdir into a binary during linking.
13582 # This must work even if \$libdir does not exist.
13583 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13585 # If ld is used when linking, flag to hardcode \$libdir into
13586 # a binary during linking. This must work even if \$libdir does
13587 # not exist.
13588 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13590 # Whether we need a single -rpath flag with a separated argument.
13591 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13593 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13594 # resulting binary.
13595 hardcode_direct=$hardcode_direct_CXX
13597 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13598 # resulting binary.
13599 hardcode_minus_L=$hardcode_minus_L_CXX
13601 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13602 # the resulting binary.
13603 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13605 # Set to yes if building a shared library automatically hardcodes DIR into the library
13606 # and all subsequent libraries and executables linked against it.
13607 hardcode_automatic=$hardcode_automatic_CXX
13609 # Variables whose values should be saved in libtool wrapper scripts and
13610 # restored at relink time.
13611 variables_saved_for_relink="$variables_saved_for_relink"
13613 # Whether libtool must link a program against all its dependency libraries.
13614 link_all_deplibs=$link_all_deplibs_CXX
13616 # Compile-time system search path for libraries
13617 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13619 # Run-time system search path for libraries
13620 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13622 # Fix the shell variable \$srcfile for the compiler.
13623 fix_srcfile_path=$lt_fix_srcfile_path
13625 # Set to yes if exported symbols are required.
13626 always_export_symbols=$always_export_symbols_CXX
13628 # The commands to list exported symbols.
13629 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13631 # The commands to extract the exported symbol list from a shared archive.
13632 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13634 # Symbols that should not be listed in the preloaded symbols.
13635 exclude_expsyms=$lt_exclude_expsyms_CXX
13637 # Symbols that must always be exported.
13638 include_expsyms=$lt_include_expsyms_CXX
13640 # ### END LIBTOOL TAG CONFIG: $tagname
13642 __EOF__
13645 else
13646 # If there is no Makefile yet, we rely on a make rule to execute
13647 # `config.status --recheck' to rerun these tests and create the
13648 # libtool script then.
13649 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13650 if test -f "$ltmain_in"; then
13651 test -f Makefile && make "$ltmain"
13656 ac_ext=c
13657 ac_cpp='$CPP $CPPFLAGS'
13658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13662 CC=$lt_save_CC
13663 LDCXX=$LD
13664 LD=$lt_save_LD
13665 GCC=$lt_save_GCC
13666 with_gnu_ldcxx=$with_gnu_ld
13667 with_gnu_ld=$lt_save_with_gnu_ld
13668 lt_cv_path_LDCXX=$lt_cv_path_LD
13669 lt_cv_path_LD=$lt_save_path_LD
13670 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13671 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13673 else
13674 tagname=""
13678 F77)
13679 if test -n "$F77" && test "X$F77" != "Xno"; then
13681 ac_ext=f
13682 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13683 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13684 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13687 archive_cmds_need_lc_F77=no
13688 allow_undefined_flag_F77=
13689 always_export_symbols_F77=no
13690 archive_expsym_cmds_F77=
13691 export_dynamic_flag_spec_F77=
13692 hardcode_direct_F77=no
13693 hardcode_libdir_flag_spec_F77=
13694 hardcode_libdir_flag_spec_ld_F77=
13695 hardcode_libdir_separator_F77=
13696 hardcode_minus_L_F77=no
13697 hardcode_automatic_F77=no
13698 module_cmds_F77=
13699 module_expsym_cmds_F77=
13700 link_all_deplibs_F77=unknown
13701 old_archive_cmds_F77=$old_archive_cmds
13702 no_undefined_flag_F77=
13703 whole_archive_flag_spec_F77=
13704 enable_shared_with_static_runtimes_F77=no
13706 # Source file extension for f77 test sources.
13707 ac_ext=f
13709 # Object file extension for compiled f77 test sources.
13710 objext=o
13711 objext_F77=$objext
13713 # Code to be used in simple compile tests
13714 lt_simple_compile_test_code="\
13715 subroutine t
13716 return
13720 # Code to be used in simple link tests
13721 lt_simple_link_test_code="\
13722 program t
13726 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13728 # If no C compiler was specified, use CC.
13729 LTCC=${LTCC-"$CC"}
13731 # If no C compiler flags were specified, use CFLAGS.
13732 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13734 # Allow CC to be a program name with arguments.
13735 compiler=$CC
13738 # save warnings/boilerplate of simple test code
13739 ac_outfile=conftest.$ac_objext
13740 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13741 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13742 _lt_compiler_boilerplate=`cat conftest.err`
13743 $rm conftest*
13745 ac_outfile=conftest.$ac_objext
13746 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13747 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13748 _lt_linker_boilerplate=`cat conftest.err`
13749 $rm conftest*
13752 # Allow CC to be a program name with arguments.
13753 lt_save_CC="$CC"
13754 CC=${F77-"f77"}
13755 compiler=$CC
13756 compiler_F77=$CC
13757 for cc_temp in $compiler""; do
13758 case $cc_temp in
13759 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13760 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13761 \-*) ;;
13762 *) break;;
13763 esac
13764 done
13765 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13768 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13769 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13770 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13771 echo "${ECHO_T}$can_build_shared" >&6
13773 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13774 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13775 test "$can_build_shared" = "no" && enable_shared=no
13777 # On AIX, shared libraries and static libraries use the same namespace, and
13778 # are all built from PIC.
13779 case $host_os in
13780 aix3*)
13781 test "$enable_shared" = yes && enable_static=no
13782 if test -n "$RANLIB"; then
13783 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13784 postinstall_cmds='$RANLIB $lib'
13787 aix4* | aix5*)
13788 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13789 test "$enable_shared" = yes && enable_static=no
13792 esac
13793 echo "$as_me:$LINENO: result: $enable_shared" >&5
13794 echo "${ECHO_T}$enable_shared" >&6
13796 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13797 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13798 # Make sure either enable_shared or enable_static is yes.
13799 test "$enable_shared" = yes || enable_static=yes
13800 echo "$as_me:$LINENO: result: $enable_static" >&5
13801 echo "${ECHO_T}$enable_static" >&6
13803 GCC_F77="$G77"
13804 LD_F77="$LD"
13806 lt_prog_compiler_wl_F77=
13807 lt_prog_compiler_pic_F77=
13808 lt_prog_compiler_static_F77=
13810 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13811 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13813 if test "$GCC" = yes; then
13814 lt_prog_compiler_wl_F77='-Wl,'
13815 lt_prog_compiler_static_F77='-static'
13817 case $host_os in
13818 aix*)
13819 # All AIX code is PIC.
13820 if test "$host_cpu" = ia64; then
13821 # AIX 5 now supports IA64 processor
13822 lt_prog_compiler_static_F77='-Bstatic'
13826 amigaos*)
13827 # FIXME: we need at least 68020 code to build shared libraries, but
13828 # adding the `-m68020' flag to GCC prevents building anything better,
13829 # like `-m68040'.
13830 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13833 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13834 # PIC is the default for these OSes.
13837 mingw* | cygwin* | pw32* | os2*)
13838 # This hack is so that the source file can tell whether it is being
13839 # built for inclusion in a dll (and should export symbols for example).
13840 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13841 # (--disable-auto-import) libraries
13842 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13845 darwin* | rhapsody*)
13846 # PIC is the default on this platform
13847 # Common symbols not allowed in MH_DYLIB files
13848 lt_prog_compiler_pic_F77='-fno-common'
13851 interix[3-9]*)
13852 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13853 # Instead, we relocate shared libraries at runtime.
13856 msdosdjgpp*)
13857 # Just because we use GCC doesn't mean we suddenly get shared libraries
13858 # on systems that don't support them.
13859 lt_prog_compiler_can_build_shared_F77=no
13860 enable_shared=no
13863 sysv4*MP*)
13864 if test -d /usr/nec; then
13865 lt_prog_compiler_pic_F77=-Kconform_pic
13869 hpux*)
13870 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13871 # not for PA HP-UX.
13872 case $host_cpu in
13873 hppa*64*|ia64*)
13874 # +Z the default
13877 lt_prog_compiler_pic_F77='-fPIC'
13879 esac
13883 lt_prog_compiler_pic_F77='-fPIC'
13885 esac
13886 else
13887 # PORTME Check for flag to pass linker flags through the system compiler.
13888 case $host_os in
13889 aix*)
13890 lt_prog_compiler_wl_F77='-Wl,'
13891 if test "$host_cpu" = ia64; then
13892 # AIX 5 now supports IA64 processor
13893 lt_prog_compiler_static_F77='-Bstatic'
13894 else
13895 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13898 darwin*)
13899 # PIC is the default on this platform
13900 # Common symbols not allowed in MH_DYLIB files
13901 case $cc_basename in
13902 xlc*)
13903 lt_prog_compiler_pic_F77='-qnocommon'
13904 lt_prog_compiler_wl_F77='-Wl,'
13906 esac
13909 mingw* | cygwin* | pw32* | os2*)
13910 # This hack is so that the source file can tell whether it is being
13911 # built for inclusion in a dll (and should export symbols for example).
13912 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13915 hpux9* | hpux10* | hpux11*)
13916 lt_prog_compiler_wl_F77='-Wl,'
13917 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13918 # not for PA HP-UX.
13919 case $host_cpu in
13920 hppa*64*|ia64*)
13921 # +Z the default
13924 lt_prog_compiler_pic_F77='+Z'
13926 esac
13927 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13928 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13931 irix5* | irix6* | nonstopux*)
13932 lt_prog_compiler_wl_F77='-Wl,'
13933 # PIC (with -KPIC) is the default.
13934 lt_prog_compiler_static_F77='-non_shared'
13937 newsos6)
13938 lt_prog_compiler_pic_F77='-KPIC'
13939 lt_prog_compiler_static_F77='-Bstatic'
13942 linux* | k*bsd*-gnu)
13943 case $cc_basename in
13944 icc* | ecc*)
13945 lt_prog_compiler_wl_F77='-Wl,'
13946 lt_prog_compiler_pic_F77='-KPIC'
13947 lt_prog_compiler_static_F77='-static'
13949 pgcc* | pgf77* | pgf90* | pgf95*)
13950 # Portland Group compilers (*not* the Pentium gcc compiler,
13951 # which looks to be a dead project)
13952 lt_prog_compiler_wl_F77='-Wl,'
13953 lt_prog_compiler_pic_F77='-fpic'
13954 lt_prog_compiler_static_F77='-Bstatic'
13956 ccc*)
13957 lt_prog_compiler_wl_F77='-Wl,'
13958 # All Alpha code is PIC.
13959 lt_prog_compiler_static_F77='-non_shared'
13962 case `$CC -V 2>&1 | sed 5q` in
13963 *Sun\ C*)
13964 # Sun C 5.9
13965 lt_prog_compiler_pic_F77='-KPIC'
13966 lt_prog_compiler_static_F77='-Bstatic'
13967 lt_prog_compiler_wl_F77='-Wl,'
13969 *Sun\ F*)
13970 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13971 lt_prog_compiler_pic_F77='-KPIC'
13972 lt_prog_compiler_static_F77='-Bstatic'
13973 lt_prog_compiler_wl_F77=''
13975 esac
13977 esac
13980 osf3* | osf4* | osf5*)
13981 lt_prog_compiler_wl_F77='-Wl,'
13982 # All OSF/1 code is PIC.
13983 lt_prog_compiler_static_F77='-non_shared'
13986 rdos*)
13987 lt_prog_compiler_static_F77='-non_shared'
13990 solaris*)
13991 lt_prog_compiler_pic_F77='-KPIC'
13992 lt_prog_compiler_static_F77='-Bstatic'
13993 case $cc_basename in
13994 f77* | f90* | f95*)
13995 lt_prog_compiler_wl_F77='-Qoption ld ';;
13997 lt_prog_compiler_wl_F77='-Wl,';;
13998 esac
14001 sunos4*)
14002 lt_prog_compiler_wl_F77='-Qoption ld '
14003 lt_prog_compiler_pic_F77='-PIC'
14004 lt_prog_compiler_static_F77='-Bstatic'
14007 sysv4 | sysv4.2uw2* | sysv4.3*)
14008 lt_prog_compiler_wl_F77='-Wl,'
14009 lt_prog_compiler_pic_F77='-KPIC'
14010 lt_prog_compiler_static_F77='-Bstatic'
14013 sysv4*MP*)
14014 if test -d /usr/nec ;then
14015 lt_prog_compiler_pic_F77='-Kconform_pic'
14016 lt_prog_compiler_static_F77='-Bstatic'
14020 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14021 lt_prog_compiler_wl_F77='-Wl,'
14022 lt_prog_compiler_pic_F77='-KPIC'
14023 lt_prog_compiler_static_F77='-Bstatic'
14026 unicos*)
14027 lt_prog_compiler_wl_F77='-Wl,'
14028 lt_prog_compiler_can_build_shared_F77=no
14031 uts4*)
14032 lt_prog_compiler_pic_F77='-pic'
14033 lt_prog_compiler_static_F77='-Bstatic'
14037 lt_prog_compiler_can_build_shared_F77=no
14039 esac
14042 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14043 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14046 # Check to make sure the PIC flag actually works.
14048 if test -n "$lt_prog_compiler_pic_F77"; then
14050 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14051 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14052 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14053 echo $ECHO_N "(cached) $ECHO_C" >&6
14054 else
14055 lt_prog_compiler_pic_works_F77=no
14056 ac_outfile=conftest.$ac_objext
14057 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14058 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14059 # Insert the option either (1) after the last *FLAGS variable, or
14060 # (2) before a word containing "conftest.", or (3) at the end.
14061 # Note that $ac_compile itself does not contain backslashes and begins
14062 # with a dollar sign (not a hyphen), so the echo should work correctly.
14063 # The option is referenced via a variable to avoid confusing sed.
14064 lt_compile=`echo "$ac_compile" | $SED \
14065 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14066 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14067 -e 's:$: $lt_compiler_flag:'`
14068 (eval echo "\"\$as_me:14068: $lt_compile\"" >&5)
14069 (eval "$lt_compile" 2>conftest.err)
14070 ac_status=$?
14071 cat conftest.err >&5
14072 echo "$as_me:14072: \$? = $ac_status" >&5
14073 if (exit $ac_status) && test -s "$ac_outfile"; then
14074 # The compiler can only warn and ignore the option if not recognized
14075 # So say no if there are warnings other than the usual output.
14076 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14077 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14078 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14079 lt_prog_compiler_pic_works_F77=yes
14082 $rm conftest*
14085 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14086 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14088 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14089 case $lt_prog_compiler_pic_F77 in
14090 "" | " "*) ;;
14091 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14092 esac
14093 else
14094 lt_prog_compiler_pic_F77=
14095 lt_prog_compiler_can_build_shared_F77=no
14099 case $host_os in
14100 # For platforms which do not support PIC, -DPIC is meaningless:
14101 *djgpp*)
14102 lt_prog_compiler_pic_F77=
14105 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14107 esac
14110 # Check to make sure the static flag actually works.
14112 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14113 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14114 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
14115 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14116 echo $ECHO_N "(cached) $ECHO_C" >&6
14117 else
14118 lt_prog_compiler_static_works_F77=no
14119 save_LDFLAGS="$LDFLAGS"
14120 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14121 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14122 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14123 # The linker can only warn and ignore the option if not recognized
14124 # So say no if there are warnings
14125 if test -s conftest.err; then
14126 # Append any errors to the config.log.
14127 cat conftest.err 1>&5
14128 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14129 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14130 if diff conftest.exp conftest.er2 >/dev/null; then
14131 lt_prog_compiler_static_works_F77=yes
14133 else
14134 lt_prog_compiler_static_works_F77=yes
14137 $rm conftest*
14138 LDFLAGS="$save_LDFLAGS"
14141 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14142 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
14144 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14146 else
14147 lt_prog_compiler_static_F77=
14151 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14152 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14153 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14154 echo $ECHO_N "(cached) $ECHO_C" >&6
14155 else
14156 lt_cv_prog_compiler_c_o_F77=no
14157 $rm -r conftest 2>/dev/null
14158 mkdir conftest
14159 cd conftest
14160 mkdir out
14161 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14163 lt_compiler_flag="-o out/conftest2.$ac_objext"
14164 # Insert the option either (1) after the last *FLAGS variable, or
14165 # (2) before a word containing "conftest.", or (3) at the end.
14166 # Note that $ac_compile itself does not contain backslashes and begins
14167 # with a dollar sign (not a hyphen), so the echo should work correctly.
14168 lt_compile=`echo "$ac_compile" | $SED \
14169 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14170 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14171 -e 's:$: $lt_compiler_flag:'`
14172 (eval echo "\"\$as_me:14172: $lt_compile\"" >&5)
14173 (eval "$lt_compile" 2>out/conftest.err)
14174 ac_status=$?
14175 cat out/conftest.err >&5
14176 echo "$as_me:14176: \$? = $ac_status" >&5
14177 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14178 then
14179 # The compiler can only warn and ignore the option if not recognized
14180 # So say no if there are warnings
14181 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14182 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14183 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14184 lt_cv_prog_compiler_c_o_F77=yes
14187 chmod u+w . 2>&5
14188 $rm conftest*
14189 # SGI C++ compiler will create directory out/ii_files/ for
14190 # template instantiation
14191 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14192 $rm out/* && rmdir out
14193 cd ..
14194 rmdir conftest
14195 $rm conftest*
14198 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14199 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14202 hard_links="nottested"
14203 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14204 # do not overwrite the value of need_locks provided by the user
14205 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14206 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14207 hard_links=yes
14208 $rm conftest*
14209 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14210 touch conftest.a
14211 ln conftest.a conftest.b 2>&5 || hard_links=no
14212 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14213 echo "$as_me:$LINENO: result: $hard_links" >&5
14214 echo "${ECHO_T}$hard_links" >&6
14215 if test "$hard_links" = no; then
14216 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14217 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14218 need_locks=warn
14220 else
14221 need_locks=no
14224 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14225 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14227 runpath_var=
14228 allow_undefined_flag_F77=
14229 enable_shared_with_static_runtimes_F77=no
14230 archive_cmds_F77=
14231 archive_expsym_cmds_F77=
14232 old_archive_From_new_cmds_F77=
14233 old_archive_from_expsyms_cmds_F77=
14234 export_dynamic_flag_spec_F77=
14235 whole_archive_flag_spec_F77=
14236 thread_safe_flag_spec_F77=
14237 hardcode_libdir_flag_spec_F77=
14238 hardcode_libdir_flag_spec_ld_F77=
14239 hardcode_libdir_separator_F77=
14240 hardcode_direct_F77=no
14241 hardcode_minus_L_F77=no
14242 hardcode_shlibpath_var_F77=unsupported
14243 link_all_deplibs_F77=unknown
14244 hardcode_automatic_F77=no
14245 module_cmds_F77=
14246 module_expsym_cmds_F77=
14247 always_export_symbols_F77=no
14248 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14249 # include_expsyms should be a list of space-separated symbols to be *always*
14250 # included in the symbol list
14251 include_expsyms_F77=
14252 # exclude_expsyms can be an extended regexp of symbols to exclude
14253 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14254 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14255 # as well as any symbol that contains `d'.
14256 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14257 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14258 # platforms (ab)use it in PIC code, but their linkers get confused if
14259 # the symbol is explicitly referenced. Since portable code cannot
14260 # rely on this symbol name, it's probably fine to never include it in
14261 # preloaded symbol tables.
14262 extract_expsyms_cmds=
14263 # Just being paranoid about ensuring that cc_basename is set.
14264 for cc_temp in $compiler""; do
14265 case $cc_temp in
14266 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14267 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14268 \-*) ;;
14269 *) break;;
14270 esac
14271 done
14272 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14274 case $host_os in
14275 cygwin* | mingw* | pw32*)
14276 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14277 # When not using gcc, we currently assume that we are using
14278 # Microsoft Visual C++.
14279 if test "$GCC" != yes; then
14280 with_gnu_ld=no
14283 interix*)
14284 # we just hope/assume this is gcc and not c89 (= MSVC++)
14285 with_gnu_ld=yes
14287 openbsd*)
14288 with_gnu_ld=no
14290 esac
14292 ld_shlibs_F77=yes
14293 if test "$with_gnu_ld" = yes; then
14294 # If archive_cmds runs LD, not CC, wlarc should be empty
14295 wlarc='${wl}'
14297 # Set some defaults for GNU ld with shared library support. These
14298 # are reset later if shared libraries are not supported. Putting them
14299 # here allows them to be overridden if necessary.
14300 runpath_var=LD_RUN_PATH
14301 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14302 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14303 # ancient GNU ld didn't support --whole-archive et. al.
14304 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14305 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14306 else
14307 whole_archive_flag_spec_F77=
14309 supports_anon_versioning=no
14310 case `$LD -v 2>/dev/null` in
14311 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14312 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14313 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14314 *\ 2.11.*) ;; # other 2.11 versions
14315 *) supports_anon_versioning=yes ;;
14316 esac
14318 # See if GNU ld supports shared libraries.
14319 case $host_os in
14320 aix3* | aix4* | aix5*)
14321 # On AIX/PPC, the GNU linker is very broken
14322 if test "$host_cpu" != ia64; then
14323 ld_shlibs_F77=no
14324 cat <<EOF 1>&2
14326 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14327 *** to be unable to reliably create shared libraries on AIX.
14328 *** Therefore, libtool is disabling shared libraries support. If you
14329 *** really care for shared libraries, you may want to modify your PATH
14330 *** so that a non-GNU linker is found, and then restart.
14336 amigaos*)
14337 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)'
14338 hardcode_libdir_flag_spec_F77='-L$libdir'
14339 hardcode_minus_L_F77=yes
14341 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14342 # that the semantics of dynamic libraries on AmigaOS, at least up
14343 # to version 4, is to share data among multiple programs linked
14344 # with the same dynamic library. Since this doesn't match the
14345 # behavior of shared libraries on other platforms, we can't use
14346 # them.
14347 ld_shlibs_F77=no
14350 beos*)
14351 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14352 allow_undefined_flag_F77=unsupported
14353 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14354 # support --undefined. This deserves some investigation. FIXME
14355 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14356 else
14357 ld_shlibs_F77=no
14361 cygwin* | mingw* | pw32*)
14362 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14363 # as there is no search path for DLLs.
14364 hardcode_libdir_flag_spec_F77='-L$libdir'
14365 allow_undefined_flag_F77=unsupported
14366 always_export_symbols_F77=no
14367 enable_shared_with_static_runtimes_F77=yes
14368 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14370 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14371 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14372 # If the export-symbols file already is a .def file (1st line
14373 # is EXPORTS), use it as is; otherwise, prepend...
14374 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14375 cp $export_symbols $output_objdir/$soname.def;
14376 else
14377 echo EXPORTS > $output_objdir/$soname.def;
14378 cat $export_symbols >> $output_objdir/$soname.def;
14380 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14381 else
14382 ld_shlibs_F77=no
14386 interix[3-9]*)
14387 hardcode_direct_F77=no
14388 hardcode_shlibpath_var_F77=no
14389 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14390 export_dynamic_flag_spec_F77='${wl}-E'
14391 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14392 # Instead, shared libraries are loaded at an image base (0x10000000 by
14393 # default) and relocated if they conflict, which is a slow very memory
14394 # consuming and fragmenting process. To avoid this, we pick a random,
14395 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14396 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14397 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'
14398 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'
14401 gnu* | linux* | k*bsd*-gnu)
14402 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14403 tmp_addflag=
14404 case $cc_basename,$host_cpu in
14405 pgcc*) # Portland Group C compiler
14406 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'
14407 tmp_addflag=' $pic_flag'
14409 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14410 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'
14411 tmp_addflag=' $pic_flag -Mnomain' ;;
14412 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14413 tmp_addflag=' -i_dynamic' ;;
14414 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14415 tmp_addflag=' -i_dynamic -nofor_main' ;;
14416 ifc* | ifort*) # Intel Fortran compiler
14417 tmp_addflag=' -nofor_main' ;;
14418 esac
14419 case `$CC -V 2>&1 | sed 5q` in
14420 *Sun\ C*) # Sun C 5.9
14421 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14422 tmp_sharedflag='-G' ;;
14423 *Sun\ F*) # Sun Fortran 8.3
14424 tmp_sharedflag='-G' ;;
14426 tmp_sharedflag='-shared' ;;
14427 esac
14428 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14430 if test $supports_anon_versioning = yes; then
14431 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14432 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14433 $echo "local: *; };" >> $output_objdir/$libname.ver~
14434 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14436 else
14437 ld_shlibs_F77=no
14441 netbsd*)
14442 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14443 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14444 wlarc=
14445 else
14446 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14447 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14451 solaris*)
14452 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14453 ld_shlibs_F77=no
14454 cat <<EOF 1>&2
14456 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14457 *** create shared libraries on Solaris systems. Therefore, libtool
14458 *** is disabling shared libraries support. We urge you to upgrade GNU
14459 *** binutils to release 2.9.1 or newer. Another option is to modify
14460 *** your PATH or compiler configuration so that the native linker is
14461 *** used, and then restart.
14464 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14465 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14466 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14467 else
14468 ld_shlibs_F77=no
14472 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14473 case `$LD -v 2>&1` in
14474 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14475 ld_shlibs_F77=no
14476 cat <<_LT_EOF 1>&2
14478 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14479 *** reliably create shared libraries on SCO systems. Therefore, libtool
14480 *** is disabling shared libraries support. We urge you to upgrade GNU
14481 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14482 *** your PATH or compiler configuration so that the native linker is
14483 *** used, and then restart.
14485 _LT_EOF
14488 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14489 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14490 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14491 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14492 else
14493 ld_shlibs_F77=no
14496 esac
14499 sunos4*)
14500 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14501 wlarc=
14502 hardcode_direct_F77=yes
14503 hardcode_shlibpath_var_F77=no
14507 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14508 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14509 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14510 else
14511 ld_shlibs_F77=no
14514 esac
14516 if test "$ld_shlibs_F77" = no; then
14517 runpath_var=
14518 hardcode_libdir_flag_spec_F77=
14519 export_dynamic_flag_spec_F77=
14520 whole_archive_flag_spec_F77=
14522 else
14523 # PORTME fill in a description of your system's linker (not GNU ld)
14524 case $host_os in
14525 aix3*)
14526 allow_undefined_flag_F77=unsupported
14527 always_export_symbols_F77=yes
14528 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'
14529 # Note: this linker hardcodes the directories in LIBPATH if there
14530 # are no directories specified by -L.
14531 hardcode_minus_L_F77=yes
14532 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14533 # Neither direct hardcoding nor static linking is supported with a
14534 # broken collect2.
14535 hardcode_direct_F77=unsupported
14539 aix4* | aix5*)
14540 if test "$host_cpu" = ia64; then
14541 # On IA64, the linker does run time linking by default, so we don't
14542 # have to do anything special.
14543 aix_use_runtimelinking=no
14544 exp_sym_flag='-Bexport'
14545 no_entry_flag=""
14546 else
14547 # If we're using GNU nm, then we don't want the "-C" option.
14548 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14549 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14550 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'
14551 else
14552 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'
14554 aix_use_runtimelinking=no
14556 # Test if we are trying to use run time linking or normal
14557 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14558 # need to do runtime linking.
14559 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14560 for ld_flag in $LDFLAGS; do
14561 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14562 aix_use_runtimelinking=yes
14563 break
14565 done
14567 esac
14569 exp_sym_flag='-bexport'
14570 no_entry_flag='-bnoentry'
14573 # When large executables or shared objects are built, AIX ld can
14574 # have problems creating the table of contents. If linking a library
14575 # or program results in "error TOC overflow" add -mminimal-toc to
14576 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14577 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14579 archive_cmds_F77=''
14580 hardcode_direct_F77=yes
14581 hardcode_libdir_separator_F77=':'
14582 link_all_deplibs_F77=yes
14584 if test "$GCC" = yes; then
14585 case $host_os in aix4.[012]|aix4.[012].*)
14586 # We only want to do this on AIX 4.2 and lower, the check
14587 # below for broken collect2 doesn't work under 4.3+
14588 collect2name=`${CC} -print-prog-name=collect2`
14589 if test -f "$collect2name" && \
14590 strings "$collect2name" | grep resolve_lib_name >/dev/null
14591 then
14592 # We have reworked collect2
14594 else
14595 # We have old collect2
14596 hardcode_direct_F77=unsupported
14597 # It fails to find uninstalled libraries when the uninstalled
14598 # path is not listed in the libpath. Setting hardcode_minus_L
14599 # to unsupported forces relinking
14600 hardcode_minus_L_F77=yes
14601 hardcode_libdir_flag_spec_F77='-L$libdir'
14602 hardcode_libdir_separator_F77=
14605 esac
14606 shared_flag='-shared'
14607 if test "$aix_use_runtimelinking" = yes; then
14608 shared_flag="$shared_flag "'${wl}-G'
14610 else
14611 # not using gcc
14612 if test "$host_cpu" = ia64; then
14613 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14614 # chokes on -Wl,-G. The following line is correct:
14615 shared_flag='-G'
14616 else
14617 if test "$aix_use_runtimelinking" = yes; then
14618 shared_flag='${wl}-G'
14619 else
14620 shared_flag='${wl}-bM:SRE'
14625 # It seems that -bexpall does not export symbols beginning with
14626 # underscore (_), so it is better to generate a list of symbols to export.
14627 always_export_symbols_F77=yes
14628 if test "$aix_use_runtimelinking" = yes; then
14629 # Warning - without using the other runtime loading flags (-brtl),
14630 # -berok will link without error, but may produce a broken library.
14631 allow_undefined_flag_F77='-berok'
14632 # Determine the default libpath from the value encoded in an empty executable.
14633 cat >conftest.$ac_ext <<_ACEOF
14634 program main
14637 _ACEOF
14638 rm -f conftest.$ac_objext conftest$ac_exeext
14639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14640 (eval $ac_link) 2>conftest.er1
14641 ac_status=$?
14642 grep -v '^ *+' conftest.er1 >conftest.err
14643 rm -f conftest.er1
14644 cat conftest.err >&5
14645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646 (exit $ac_status); } &&
14647 { ac_try='test -z "$ac_f77_werror_flag"
14648 || test ! -s conftest.err'
14649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14650 (eval $ac_try) 2>&5
14651 ac_status=$?
14652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653 (exit $ac_status); }; } &&
14654 { ac_try='test -s conftest$ac_exeext'
14655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14656 (eval $ac_try) 2>&5
14657 ac_status=$?
14658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659 (exit $ac_status); }; }; then
14661 lt_aix_libpath_sed='
14662 /Import File Strings/,/^$/ {
14663 /^0/ {
14664 s/^0 *\(.*\)$/\1/
14668 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14669 # Check for a 64-bit object if we didn't find anything.
14670 if test -z "$aix_libpath"; then
14671 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14673 else
14674 echo "$as_me: failed program was:" >&5
14675 sed 's/^/| /' conftest.$ac_ext >&5
14678 rm -f conftest.err conftest.$ac_objext \
14679 conftest$ac_exeext conftest.$ac_ext
14680 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14682 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14683 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"
14684 else
14685 if test "$host_cpu" = ia64; then
14686 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14687 allow_undefined_flag_F77="-z nodefs"
14688 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"
14689 else
14690 # Determine the default libpath from the value encoded in an empty executable.
14691 cat >conftest.$ac_ext <<_ACEOF
14692 program main
14695 _ACEOF
14696 rm -f conftest.$ac_objext conftest$ac_exeext
14697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14698 (eval $ac_link) 2>conftest.er1
14699 ac_status=$?
14700 grep -v '^ *+' conftest.er1 >conftest.err
14701 rm -f conftest.er1
14702 cat conftest.err >&5
14703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704 (exit $ac_status); } &&
14705 { ac_try='test -z "$ac_f77_werror_flag"
14706 || test ! -s conftest.err'
14707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14708 (eval $ac_try) 2>&5
14709 ac_status=$?
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); }; } &&
14712 { ac_try='test -s conftest$ac_exeext'
14713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14714 (eval $ac_try) 2>&5
14715 ac_status=$?
14716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717 (exit $ac_status); }; }; then
14719 lt_aix_libpath_sed='
14720 /Import File Strings/,/^$/ {
14721 /^0/ {
14722 s/^0 *\(.*\)$/\1/
14726 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14727 # Check for a 64-bit object if we didn't find anything.
14728 if test -z "$aix_libpath"; then
14729 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14731 else
14732 echo "$as_me: failed program was:" >&5
14733 sed 's/^/| /' conftest.$ac_ext >&5
14736 rm -f conftest.err conftest.$ac_objext \
14737 conftest$ac_exeext conftest.$ac_ext
14738 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14740 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14741 # Warning - without using the other run time loading flags,
14742 # -berok will link without error, but may produce a broken library.
14743 no_undefined_flag_F77=' ${wl}-bernotok'
14744 allow_undefined_flag_F77=' ${wl}-berok'
14745 # Exported symbols can be pulled into shared objects from archives
14746 whole_archive_flag_spec_F77='$convenience'
14747 archive_cmds_need_lc_F77=yes
14748 # This is similar to how AIX traditionally builds its shared libraries.
14749 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'
14754 amigaos*)
14755 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)'
14756 hardcode_libdir_flag_spec_F77='-L$libdir'
14757 hardcode_minus_L_F77=yes
14758 # see comment about different semantics on the GNU ld section
14759 ld_shlibs_F77=no
14762 bsdi[45]*)
14763 export_dynamic_flag_spec_F77=-rdynamic
14766 cygwin* | mingw* | pw32*)
14767 # When not using gcc, we currently assume that we are using
14768 # Microsoft Visual C++.
14769 # hardcode_libdir_flag_spec is actually meaningless, as there is
14770 # no search path for DLLs.
14771 hardcode_libdir_flag_spec_F77=' '
14772 allow_undefined_flag_F77=unsupported
14773 # Tell ltmain to make .lib files, not .a files.
14774 libext=lib
14775 # Tell ltmain to make .dll files, not .so files.
14776 shrext_cmds=".dll"
14777 # FIXME: Setting linknames here is a bad hack.
14778 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14779 # The linker will automatically build a .lib file if we build a DLL.
14780 old_archive_From_new_cmds_F77='true'
14781 # FIXME: Should let the user specify the lib program.
14782 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14783 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14784 enable_shared_with_static_runtimes_F77=yes
14787 darwin* | rhapsody*)
14788 case $host_os in
14789 rhapsody* | darwin1.[012])
14790 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14792 *) # Darwin 1.3 on
14793 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14794 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14795 else
14796 case ${MACOSX_DEPLOYMENT_TARGET} in
14797 10.[012])
14798 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14800 10.*)
14801 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14803 esac
14806 esac
14807 archive_cmds_need_lc_F77=no
14808 hardcode_direct_F77=no
14809 hardcode_automatic_F77=yes
14810 hardcode_shlibpath_var_F77=unsupported
14811 whole_archive_flag_spec_F77=''
14812 link_all_deplibs_F77=yes
14813 if test "$GCC" = yes ; then
14814 output_verbose_link_cmd='echo'
14815 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14816 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14817 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14818 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}'
14819 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}'
14820 else
14821 case $cc_basename in
14822 xlc*)
14823 output_verbose_link_cmd='echo'
14824 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14825 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14826 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14827 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14828 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}'
14831 ld_shlibs_F77=no
14833 esac
14837 dgux*)
14838 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14839 hardcode_libdir_flag_spec_F77='-L$libdir'
14840 hardcode_shlibpath_var_F77=no
14843 freebsd1*)
14844 ld_shlibs_F77=no
14847 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14848 # support. Future versions do this automatically, but an explicit c++rt0.o
14849 # does not break anything, and helps significantly (at the cost of a little
14850 # extra space).
14851 freebsd2.2*)
14852 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14853 hardcode_libdir_flag_spec_F77='-R$libdir'
14854 hardcode_direct_F77=yes
14855 hardcode_shlibpath_var_F77=no
14858 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14859 freebsd2*)
14860 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14861 hardcode_direct_F77=yes
14862 hardcode_minus_L_F77=yes
14863 hardcode_shlibpath_var_F77=no
14866 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14867 freebsd* | dragonfly*)
14868 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14869 hardcode_libdir_flag_spec_F77='-R$libdir'
14870 hardcode_direct_F77=yes
14871 hardcode_shlibpath_var_F77=no
14874 hpux9*)
14875 if test "$GCC" = yes; then
14876 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'
14877 else
14878 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'
14880 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14881 hardcode_libdir_separator_F77=:
14882 hardcode_direct_F77=yes
14884 # hardcode_minus_L: Not really in the search PATH,
14885 # but as the default location of the library.
14886 hardcode_minus_L_F77=yes
14887 export_dynamic_flag_spec_F77='${wl}-E'
14890 hpux10*)
14891 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14892 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14893 else
14894 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14896 if test "$with_gnu_ld" = no; then
14897 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14898 hardcode_libdir_separator_F77=:
14900 hardcode_direct_F77=yes
14901 export_dynamic_flag_spec_F77='${wl}-E'
14903 # hardcode_minus_L: Not really in the search PATH,
14904 # but as the default location of the library.
14905 hardcode_minus_L_F77=yes
14909 hpux11*)
14910 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14911 case $host_cpu in
14912 hppa*64*)
14913 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14915 ia64*)
14916 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14919 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14921 esac
14922 else
14923 case $host_cpu in
14924 hppa*64*)
14925 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14927 ia64*)
14928 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14931 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14933 esac
14935 if test "$with_gnu_ld" = no; then
14936 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14937 hardcode_libdir_separator_F77=:
14939 case $host_cpu in
14940 hppa*64*|ia64*)
14941 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14942 hardcode_direct_F77=no
14943 hardcode_shlibpath_var_F77=no
14946 hardcode_direct_F77=yes
14947 export_dynamic_flag_spec_F77='${wl}-E'
14949 # hardcode_minus_L: Not really in the search PATH,
14950 # but as the default location of the library.
14951 hardcode_minus_L_F77=yes
14953 esac
14957 irix5* | irix6* | nonstopux*)
14958 if test "$GCC" = yes; then
14959 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'
14960 else
14961 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'
14962 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14964 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14965 hardcode_libdir_separator_F77=:
14966 link_all_deplibs_F77=yes
14969 netbsd*)
14970 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14971 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14972 else
14973 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14975 hardcode_libdir_flag_spec_F77='-R$libdir'
14976 hardcode_direct_F77=yes
14977 hardcode_shlibpath_var_F77=no
14980 newsos6)
14981 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14982 hardcode_direct_F77=yes
14983 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14984 hardcode_libdir_separator_F77=:
14985 hardcode_shlibpath_var_F77=no
14988 openbsd*)
14989 if test -f /usr/libexec/ld.so; then
14990 hardcode_direct_F77=yes
14991 hardcode_shlibpath_var_F77=no
14992 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14993 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14994 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14995 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14996 export_dynamic_flag_spec_F77='${wl}-E'
14997 else
14998 case $host_os in
14999 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15000 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15001 hardcode_libdir_flag_spec_F77='-R$libdir'
15004 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15005 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15007 esac
15009 else
15010 ld_shlibs_F77=no
15014 os2*)
15015 hardcode_libdir_flag_spec_F77='-L$libdir'
15016 hardcode_minus_L_F77=yes
15017 allow_undefined_flag_F77=unsupported
15018 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'
15019 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15022 osf3*)
15023 if test "$GCC" = yes; then
15024 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15025 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'
15026 else
15027 allow_undefined_flag_F77=' -expect_unresolved \*'
15028 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'
15030 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15031 hardcode_libdir_separator_F77=:
15034 osf4* | osf5*) # as osf3* with the addition of -msym flag
15035 if test "$GCC" = yes; then
15036 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15037 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'
15038 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15039 else
15040 allow_undefined_flag_F77=' -expect_unresolved \*'
15041 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'
15042 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~
15043 $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'
15045 # Both c and cxx compiler support -rpath directly
15046 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15048 hardcode_libdir_separator_F77=:
15051 solaris*)
15052 no_undefined_flag_F77=' -z text'
15053 if test "$GCC" = yes; then
15054 wlarc='${wl}'
15055 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15056 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15057 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15058 else
15059 wlarc=''
15060 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15061 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15062 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15064 hardcode_libdir_flag_spec_F77='-R$libdir'
15065 hardcode_shlibpath_var_F77=no
15066 case $host_os in
15067 solaris2.[0-5] | solaris2.[0-5].*) ;;
15069 # The compiler driver will combine and reorder linker options,
15070 # but understands `-z linker_flag'. GCC discards it without `$wl',
15071 # but is careful enough not to reorder.
15072 # Supported since Solaris 2.6 (maybe 2.5.1?)
15073 if test "$GCC" = yes; then
15074 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15075 else
15076 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15079 esac
15080 link_all_deplibs_F77=yes
15083 sunos4*)
15084 if test "x$host_vendor" = xsequent; then
15085 # Use $CC to link under sequent, because it throws in some extra .o
15086 # files that make .init and .fini sections work.
15087 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15088 else
15089 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15091 hardcode_libdir_flag_spec_F77='-L$libdir'
15092 hardcode_direct_F77=yes
15093 hardcode_minus_L_F77=yes
15094 hardcode_shlibpath_var_F77=no
15097 sysv4)
15098 case $host_vendor in
15099 sni)
15100 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15101 hardcode_direct_F77=yes # is this really true???
15103 siemens)
15104 ## LD is ld it makes a PLAMLIB
15105 ## CC just makes a GrossModule.
15106 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15107 reload_cmds_F77='$CC -r -o $output$reload_objs'
15108 hardcode_direct_F77=no
15110 motorola)
15111 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15112 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15114 esac
15115 runpath_var='LD_RUN_PATH'
15116 hardcode_shlibpath_var_F77=no
15119 sysv4.3*)
15120 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15121 hardcode_shlibpath_var_F77=no
15122 export_dynamic_flag_spec_F77='-Bexport'
15125 sysv4*MP*)
15126 if test -d /usr/nec; then
15127 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15128 hardcode_shlibpath_var_F77=no
15129 runpath_var=LD_RUN_PATH
15130 hardcode_runpath_var=yes
15131 ld_shlibs_F77=yes
15135 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15136 no_undefined_flag_F77='${wl}-z,text'
15137 archive_cmds_need_lc_F77=no
15138 hardcode_shlibpath_var_F77=no
15139 runpath_var='LD_RUN_PATH'
15141 if test "$GCC" = yes; then
15142 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15143 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15144 else
15145 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15146 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15150 sysv5* | sco3.2v5* | sco5v6*)
15151 # Note: We can NOT use -z defs as we might desire, because we do not
15152 # link with -lc, and that would cause any symbols used from libc to
15153 # always be unresolved, which means just about no library would
15154 # ever link correctly. If we're not using GNU ld we use -z text
15155 # though, which does catch some bad symbols but isn't as heavy-handed
15156 # as -z defs.
15157 no_undefined_flag_F77='${wl}-z,text'
15158 allow_undefined_flag_F77='${wl}-z,nodefs'
15159 archive_cmds_need_lc_F77=no
15160 hardcode_shlibpath_var_F77=no
15161 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15162 hardcode_libdir_separator_F77=':'
15163 link_all_deplibs_F77=yes
15164 export_dynamic_flag_spec_F77='${wl}-Bexport'
15165 runpath_var='LD_RUN_PATH'
15167 if test "$GCC" = yes; then
15168 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15169 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15170 else
15171 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15172 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15176 uts4*)
15177 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15178 hardcode_libdir_flag_spec_F77='-L$libdir'
15179 hardcode_shlibpath_var_F77=no
15183 ld_shlibs_F77=no
15185 esac
15188 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15189 echo "${ECHO_T}$ld_shlibs_F77" >&6
15190 test "$ld_shlibs_F77" = no && can_build_shared=no
15193 # Do we need to explicitly link libc?
15195 case "x$archive_cmds_need_lc_F77" in
15196 x|xyes)
15197 # Assume -lc should be added
15198 archive_cmds_need_lc_F77=yes
15200 if test "$enable_shared" = yes && test "$GCC" = yes; then
15201 case $archive_cmds_F77 in
15202 *'~'*)
15203 # FIXME: we may have to deal with multi-command sequences.
15205 '$CC '*)
15206 # Test whether the compiler implicitly links with -lc since on some
15207 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15208 # to ld, don't add -lc before -lgcc.
15209 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15210 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15211 $rm conftest*
15212 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15215 (eval $ac_compile) 2>&5
15216 ac_status=$?
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); } 2>conftest.err; then
15219 soname=conftest
15220 lib=conftest
15221 libobjs=conftest.$ac_objext
15222 deplibs=
15223 wl=$lt_prog_compiler_wl_F77
15224 pic_flag=$lt_prog_compiler_pic_F77
15225 compiler_flags=-v
15226 linker_flags=-v
15227 verstring=
15228 output_objdir=.
15229 libname=conftest
15230 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15231 allow_undefined_flag_F77=
15232 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15233 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15234 ac_status=$?
15235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236 (exit $ac_status); }
15237 then
15238 archive_cmds_need_lc_F77=no
15239 else
15240 archive_cmds_need_lc_F77=yes
15242 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15243 else
15244 cat conftest.err 1>&5
15246 $rm conftest*
15247 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15248 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15250 esac
15253 esac
15255 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15256 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15257 library_names_spec=
15258 libname_spec='lib$name'
15259 soname_spec=
15260 shrext_cmds=".so"
15261 postinstall_cmds=
15262 postuninstall_cmds=
15263 finish_cmds=
15264 finish_eval=
15265 shlibpath_var=
15266 shlibpath_overrides_runpath=unknown
15267 version_type=none
15268 dynamic_linker="$host_os ld.so"
15269 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15271 need_lib_prefix=unknown
15272 hardcode_into_libs=no
15274 # when you set need_version to no, make sure it does not cause -set_version
15275 # flags to be left without arguments
15276 need_version=unknown
15278 case $host_os in
15279 aix3*)
15280 version_type=linux
15281 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15282 shlibpath_var=LIBPATH
15284 # AIX 3 has no versioning support, so we append a major version to the name.
15285 soname_spec='${libname}${release}${shared_ext}$major'
15288 aix4* | aix5*)
15289 version_type=linux
15290 need_lib_prefix=no
15291 need_version=no
15292 hardcode_into_libs=yes
15293 if test "$host_cpu" = ia64; then
15294 # AIX 5 supports IA64
15295 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15296 shlibpath_var=LD_LIBRARY_PATH
15297 else
15298 # With GCC up to 2.95.x, collect2 would create an import file
15299 # for dependence libraries. The import file would start with
15300 # the line `#! .'. This would cause the generated library to
15301 # depend on `.', always an invalid library. This was fixed in
15302 # development snapshots of GCC prior to 3.0.
15303 case $host_os in
15304 aix4 | aix4.[01] | aix4.[01].*)
15305 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15306 echo ' yes '
15307 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15309 else
15310 can_build_shared=no
15313 esac
15314 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15315 # soname into executable. Probably we can add versioning support to
15316 # collect2, so additional links can be useful in future.
15317 if test "$aix_use_runtimelinking" = yes; then
15318 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15319 # instead of lib<name>.a to let people know that these are not
15320 # typical AIX shared libraries.
15321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15322 else
15323 # We preserve .a as extension for shared libraries through AIX4.2
15324 # and later when we are not doing run time linking.
15325 library_names_spec='${libname}${release}.a $libname.a'
15326 soname_spec='${libname}${release}${shared_ext}$major'
15328 shlibpath_var=LIBPATH
15332 amigaos*)
15333 library_names_spec='$libname.ixlibrary $libname.a'
15334 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15335 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'
15338 beos*)
15339 library_names_spec='${libname}${shared_ext}'
15340 dynamic_linker="$host_os ld.so"
15341 shlibpath_var=LIBRARY_PATH
15344 bsdi[45]*)
15345 version_type=linux
15346 need_version=no
15347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15348 soname_spec='${libname}${release}${shared_ext}$major'
15349 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15350 shlibpath_var=LD_LIBRARY_PATH
15351 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15352 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15353 # the default ld.so.conf also contains /usr/contrib/lib and
15354 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15355 # libtool to hard-code these into programs
15358 cygwin* | mingw* | pw32*)
15359 version_type=windows
15360 shrext_cmds=".dll"
15361 need_version=no
15362 need_lib_prefix=no
15364 case $GCC,$host_os in
15365 yes,cygwin* | yes,mingw* | yes,pw32*)
15366 library_names_spec='$libname.dll.a'
15367 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15368 postinstall_cmds='base_file=`basename \${file}`~
15369 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15370 dldir=$destdir/`dirname \$dlpath`~
15371 test -d \$dldir || mkdir -p \$dldir~
15372 $install_prog $dir/$dlname \$dldir/$dlname~
15373 chmod a+x \$dldir/$dlname'
15374 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15375 dlpath=$dir/\$dldll~
15376 $rm \$dlpath'
15377 shlibpath_overrides_runpath=yes
15379 case $host_os in
15380 cygwin*)
15381 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15382 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15383 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15385 mingw*)
15386 # MinGW DLLs use traditional 'lib' prefix
15387 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15388 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15389 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15390 # It is most probably a Windows format PATH printed by
15391 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15392 # path with ; separators, and with drive letters. We can handle the
15393 # drive letters (cygwin fileutils understands them), so leave them,
15394 # especially as we might pass files found there to a mingw objdump,
15395 # which wouldn't understand a cygwinified path. Ahh.
15396 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15397 else
15398 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15401 pw32*)
15402 # pw32 DLLs use 'pw' prefix rather than 'lib'
15403 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15405 esac
15409 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15411 esac
15412 dynamic_linker='Win32 ld.exe'
15413 # FIXME: first we should search . and the directory the executable is in
15414 shlibpath_var=PATH
15417 darwin* | rhapsody*)
15418 dynamic_linker="$host_os dyld"
15419 version_type=darwin
15420 need_lib_prefix=no
15421 need_version=no
15422 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15423 soname_spec='${libname}${release}${major}$shared_ext'
15424 shlibpath_overrides_runpath=yes
15425 shlibpath_var=DYLD_LIBRARY_PATH
15426 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15428 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15431 dgux*)
15432 version_type=linux
15433 need_lib_prefix=no
15434 need_version=no
15435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15436 soname_spec='${libname}${release}${shared_ext}$major'
15437 shlibpath_var=LD_LIBRARY_PATH
15440 freebsd1*)
15441 dynamic_linker=no
15444 freebsd* | dragonfly*)
15445 # DragonFly does not have aout. When/if they implement a new
15446 # versioning mechanism, adjust this.
15447 if test -x /usr/bin/objformat; then
15448 objformat=`/usr/bin/objformat`
15449 else
15450 case $host_os in
15451 freebsd[123]*) objformat=aout ;;
15452 *) objformat=elf ;;
15453 esac
15455 version_type=freebsd-$objformat
15456 case $version_type in
15457 freebsd-elf*)
15458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15459 need_version=no
15460 need_lib_prefix=no
15462 freebsd-*)
15463 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15464 need_version=yes
15466 esac
15467 shlibpath_var=LD_LIBRARY_PATH
15468 case $host_os in
15469 freebsd2*)
15470 shlibpath_overrides_runpath=yes
15472 freebsd3.[01]* | freebsdelf3.[01]*)
15473 shlibpath_overrides_runpath=yes
15474 hardcode_into_libs=yes
15476 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15477 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15478 shlibpath_overrides_runpath=no
15479 hardcode_into_libs=yes
15481 *) # from 4.6 on, and DragonFly
15482 shlibpath_overrides_runpath=yes
15483 hardcode_into_libs=yes
15485 esac
15488 gnu*)
15489 version_type=linux
15490 need_lib_prefix=no
15491 need_version=no
15492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15493 soname_spec='${libname}${release}${shared_ext}$major'
15494 shlibpath_var=LD_LIBRARY_PATH
15495 hardcode_into_libs=yes
15498 hpux9* | hpux10* | hpux11*)
15499 # Give a soname corresponding to the major version so that dld.sl refuses to
15500 # link against other versions.
15501 version_type=sunos
15502 need_lib_prefix=no
15503 need_version=no
15504 case $host_cpu in
15505 ia64*)
15506 shrext_cmds='.so'
15507 hardcode_into_libs=yes
15508 dynamic_linker="$host_os dld.so"
15509 shlibpath_var=LD_LIBRARY_PATH
15510 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15512 soname_spec='${libname}${release}${shared_ext}$major'
15513 if test "X$HPUX_IA64_MODE" = X32; then
15514 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15515 else
15516 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15518 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15520 hppa*64*)
15521 shrext_cmds='.sl'
15522 hardcode_into_libs=yes
15523 dynamic_linker="$host_os dld.sl"
15524 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15525 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15527 soname_spec='${libname}${release}${shared_ext}$major'
15528 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15529 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15532 shrext_cmds='.sl'
15533 dynamic_linker="$host_os dld.sl"
15534 shlibpath_var=SHLIB_PATH
15535 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15537 soname_spec='${libname}${release}${shared_ext}$major'
15539 esac
15540 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15541 postinstall_cmds='chmod 555 $lib'
15544 interix[3-9]*)
15545 version_type=linux
15546 need_lib_prefix=no
15547 need_version=no
15548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15549 soname_spec='${libname}${release}${shared_ext}$major'
15550 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15551 shlibpath_var=LD_LIBRARY_PATH
15552 shlibpath_overrides_runpath=no
15553 hardcode_into_libs=yes
15556 irix5* | irix6* | nonstopux*)
15557 case $host_os in
15558 nonstopux*) version_type=nonstopux ;;
15560 if test "$lt_cv_prog_gnu_ld" = yes; then
15561 version_type=linux
15562 else
15563 version_type=irix
15564 fi ;;
15565 esac
15566 need_lib_prefix=no
15567 need_version=no
15568 soname_spec='${libname}${release}${shared_ext}$major'
15569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15570 case $host_os in
15571 irix5* | nonstopux*)
15572 libsuff= shlibsuff=
15575 case $LD in # libtool.m4 will add one of these switches to LD
15576 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15577 libsuff= shlibsuff= libmagic=32-bit;;
15578 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15579 libsuff=32 shlibsuff=N32 libmagic=N32;;
15580 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15581 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15582 *) libsuff= shlibsuff= libmagic=never-match;;
15583 esac
15585 esac
15586 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15587 shlibpath_overrides_runpath=no
15588 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15589 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15590 hardcode_into_libs=yes
15593 # No shared lib support for Linux oldld, aout, or coff.
15594 linux*oldld* | linux*aout* | linux*coff*)
15595 dynamic_linker=no
15598 # This must be Linux ELF.
15599 linux* | k*bsd*-gnu)
15600 version_type=linux
15601 need_lib_prefix=no
15602 need_version=no
15603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15604 soname_spec='${libname}${release}${shared_ext}$major'
15605 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15606 shlibpath_var=LD_LIBRARY_PATH
15607 shlibpath_overrides_runpath=no
15608 # This implies no fast_install, which is unacceptable.
15609 # Some rework will be needed to allow for fast_install
15610 # before this can be enabled.
15611 hardcode_into_libs=yes
15613 # Append ld.so.conf contents to the search path
15614 if test -f /etc/ld.so.conf; then
15615 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15616 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15619 # We used to test for /lib/ld.so.1 and disable shared libraries on
15620 # powerpc, because MkLinux only supported shared libraries with the
15621 # GNU dynamic linker. Since this was broken with cross compilers,
15622 # most powerpc-linux boxes support dynamic linking these days and
15623 # people can always --disable-shared, the test was removed, and we
15624 # assume the GNU/Linux dynamic linker is in use.
15625 dynamic_linker='GNU/Linux ld.so'
15628 netbsd*)
15629 version_type=sunos
15630 need_lib_prefix=no
15631 need_version=no
15632 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15634 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15635 dynamic_linker='NetBSD (a.out) ld.so'
15636 else
15637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15638 soname_spec='${libname}${release}${shared_ext}$major'
15639 dynamic_linker='NetBSD ld.elf_so'
15641 shlibpath_var=LD_LIBRARY_PATH
15642 shlibpath_overrides_runpath=yes
15643 hardcode_into_libs=yes
15646 newsos6)
15647 version_type=linux
15648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15649 shlibpath_var=LD_LIBRARY_PATH
15650 shlibpath_overrides_runpath=yes
15653 nto-qnx*)
15654 version_type=linux
15655 need_lib_prefix=no
15656 need_version=no
15657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15658 soname_spec='${libname}${release}${shared_ext}$major'
15659 shlibpath_var=LD_LIBRARY_PATH
15660 shlibpath_overrides_runpath=yes
15663 openbsd*)
15664 version_type=sunos
15665 sys_lib_dlsearch_path_spec="/usr/lib"
15666 need_lib_prefix=no
15667 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15668 case $host_os in
15669 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15670 *) need_version=no ;;
15671 esac
15672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15673 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15674 shlibpath_var=LD_LIBRARY_PATH
15675 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15676 case $host_os in
15677 openbsd2.[89] | openbsd2.[89].*)
15678 shlibpath_overrides_runpath=no
15681 shlibpath_overrides_runpath=yes
15683 esac
15684 else
15685 shlibpath_overrides_runpath=yes
15689 os2*)
15690 libname_spec='$name'
15691 shrext_cmds=".dll"
15692 need_lib_prefix=no
15693 library_names_spec='$libname${shared_ext} $libname.a'
15694 dynamic_linker='OS/2 ld.exe'
15695 shlibpath_var=LIBPATH
15698 osf3* | osf4* | osf5*)
15699 version_type=osf
15700 need_lib_prefix=no
15701 need_version=no
15702 soname_spec='${libname}${release}${shared_ext}$major'
15703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15704 shlibpath_var=LD_LIBRARY_PATH
15705 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15706 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15709 rdos*)
15710 dynamic_linker=no
15713 solaris*)
15714 version_type=linux
15715 need_lib_prefix=no
15716 need_version=no
15717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15718 soname_spec='${libname}${release}${shared_ext}$major'
15719 shlibpath_var=LD_LIBRARY_PATH
15720 shlibpath_overrides_runpath=yes
15721 hardcode_into_libs=yes
15722 # ldd complains unless libraries are executable
15723 postinstall_cmds='chmod +x $lib'
15726 sunos4*)
15727 version_type=sunos
15728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15729 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15730 shlibpath_var=LD_LIBRARY_PATH
15731 shlibpath_overrides_runpath=yes
15732 if test "$with_gnu_ld" = yes; then
15733 need_lib_prefix=no
15735 need_version=yes
15738 sysv4 | sysv4.3*)
15739 version_type=linux
15740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15741 soname_spec='${libname}${release}${shared_ext}$major'
15742 shlibpath_var=LD_LIBRARY_PATH
15743 case $host_vendor in
15744 sni)
15745 shlibpath_overrides_runpath=no
15746 need_lib_prefix=no
15747 export_dynamic_flag_spec='${wl}-Blargedynsym'
15748 runpath_var=LD_RUN_PATH
15750 siemens)
15751 need_lib_prefix=no
15753 motorola)
15754 need_lib_prefix=no
15755 need_version=no
15756 shlibpath_overrides_runpath=no
15757 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15759 esac
15762 sysv4*MP*)
15763 if test -d /usr/nec ;then
15764 version_type=linux
15765 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15766 soname_spec='$libname${shared_ext}.$major'
15767 shlibpath_var=LD_LIBRARY_PATH
15771 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15772 version_type=freebsd-elf
15773 need_lib_prefix=no
15774 need_version=no
15775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15776 soname_spec='${libname}${release}${shared_ext}$major'
15777 shlibpath_var=LD_LIBRARY_PATH
15778 hardcode_into_libs=yes
15779 if test "$with_gnu_ld" = yes; then
15780 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15781 shlibpath_overrides_runpath=no
15782 else
15783 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15784 shlibpath_overrides_runpath=yes
15785 case $host_os in
15786 sco3.2v5*)
15787 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15789 esac
15791 sys_lib_dlsearch_path_spec='/usr/lib'
15794 uts4*)
15795 version_type=linux
15796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15797 soname_spec='${libname}${release}${shared_ext}$major'
15798 shlibpath_var=LD_LIBRARY_PATH
15802 dynamic_linker=no
15804 esac
15805 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15806 echo "${ECHO_T}$dynamic_linker" >&6
15807 test "$dynamic_linker" = no && can_build_shared=no
15809 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15810 if test "$GCC" = yes; then
15811 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15814 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15815 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15816 hardcode_action_F77=
15817 if test -n "$hardcode_libdir_flag_spec_F77" || \
15818 test -n "$runpath_var_F77" || \
15819 test "X$hardcode_automatic_F77" = "Xyes" ; then
15821 # We can hardcode non-existant directories.
15822 if test "$hardcode_direct_F77" != no &&
15823 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15824 # have to relink, otherwise we might link with an installed library
15825 # when we should be linking with a yet-to-be-installed one
15826 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15827 test "$hardcode_minus_L_F77" != no; then
15828 # Linking always hardcodes the temporary library directory.
15829 hardcode_action_F77=relink
15830 else
15831 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15832 hardcode_action_F77=immediate
15834 else
15835 # We cannot hardcode anything, or else we can only hardcode existing
15836 # directories.
15837 hardcode_action_F77=unsupported
15839 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15840 echo "${ECHO_T}$hardcode_action_F77" >&6
15842 if test "$hardcode_action_F77" = relink; then
15843 # Fast installation is not supported
15844 enable_fast_install=no
15845 elif test "$shlibpath_overrides_runpath" = yes ||
15846 test "$enable_shared" = no; then
15847 # Fast installation is not necessary
15848 enable_fast_install=needless
15852 # The else clause should only fire when bootstrapping the
15853 # libtool distribution, otherwise you forgot to ship ltmain.sh
15854 # with your package, and you will get complaints that there are
15855 # no rules to generate ltmain.sh.
15856 if test -f "$ltmain"; then
15857 # See if we are running on zsh, and set the options which allow our commands through
15858 # without removal of \ escapes.
15859 if test -n "${ZSH_VERSION+set}" ; then
15860 setopt NO_GLOB_SUBST
15862 # Now quote all the things that may contain metacharacters while being
15863 # careful not to overquote the AC_SUBSTed values. We take copies of the
15864 # variables and quote the copies for generation of the libtool script.
15865 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15866 SED SHELL STRIP \
15867 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15868 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15869 deplibs_check_method reload_flag reload_cmds need_locks \
15870 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15871 lt_cv_sys_global_symbol_to_c_name_address \
15872 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15873 old_postinstall_cmds old_postuninstall_cmds \
15874 compiler_F77 \
15875 CC_F77 \
15876 LD_F77 \
15877 lt_prog_compiler_wl_F77 \
15878 lt_prog_compiler_pic_F77 \
15879 lt_prog_compiler_static_F77 \
15880 lt_prog_compiler_no_builtin_flag_F77 \
15881 export_dynamic_flag_spec_F77 \
15882 thread_safe_flag_spec_F77 \
15883 whole_archive_flag_spec_F77 \
15884 enable_shared_with_static_runtimes_F77 \
15885 old_archive_cmds_F77 \
15886 old_archive_from_new_cmds_F77 \
15887 predep_objects_F77 \
15888 postdep_objects_F77 \
15889 predeps_F77 \
15890 postdeps_F77 \
15891 compiler_lib_search_path_F77 \
15892 archive_cmds_F77 \
15893 archive_expsym_cmds_F77 \
15894 postinstall_cmds_F77 \
15895 postuninstall_cmds_F77 \
15896 old_archive_from_expsyms_cmds_F77 \
15897 allow_undefined_flag_F77 \
15898 no_undefined_flag_F77 \
15899 export_symbols_cmds_F77 \
15900 hardcode_libdir_flag_spec_F77 \
15901 hardcode_libdir_flag_spec_ld_F77 \
15902 hardcode_libdir_separator_F77 \
15903 hardcode_automatic_F77 \
15904 module_cmds_F77 \
15905 module_expsym_cmds_F77 \
15906 lt_cv_prog_compiler_c_o_F77 \
15907 fix_srcfile_path_F77 \
15908 exclude_expsyms_F77 \
15909 include_expsyms_F77; do
15911 case $var in
15912 old_archive_cmds_F77 | \
15913 old_archive_from_new_cmds_F77 | \
15914 archive_cmds_F77 | \
15915 archive_expsym_cmds_F77 | \
15916 module_cmds_F77 | \
15917 module_expsym_cmds_F77 | \
15918 old_archive_from_expsyms_cmds_F77 | \
15919 export_symbols_cmds_F77 | \
15920 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15921 postinstall_cmds | postuninstall_cmds | \
15922 old_postinstall_cmds | old_postuninstall_cmds | \
15923 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15924 # Double-quote double-evaled strings.
15925 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15928 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15930 esac
15931 done
15933 case $lt_echo in
15934 *'\$0 --fallback-echo"')
15935 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15937 esac
15939 cfgfile="$ofile"
15941 cat <<__EOF__ >> "$cfgfile"
15942 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15944 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15946 # Shell to use when invoking shell scripts.
15947 SHELL=$lt_SHELL
15949 # Whether or not to build shared libraries.
15950 build_libtool_libs=$enable_shared
15952 # Whether or not to build static libraries.
15953 build_old_libs=$enable_static
15955 # Whether or not to add -lc for building shared libraries.
15956 build_libtool_need_lc=$archive_cmds_need_lc_F77
15958 # Whether or not to disallow shared libs when runtime libs are static
15959 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15961 # Whether or not to optimize for fast installation.
15962 fast_install=$enable_fast_install
15964 # The host system.
15965 host_alias=$host_alias
15966 host=$host
15967 host_os=$host_os
15969 # The build system.
15970 build_alias=$build_alias
15971 build=$build
15972 build_os=$build_os
15974 # An echo program that does not interpret backslashes.
15975 echo=$lt_echo
15977 # The archiver.
15978 AR=$lt_AR
15979 AR_FLAGS=$lt_AR_FLAGS
15981 # A C compiler.
15982 LTCC=$lt_LTCC
15984 # LTCC compiler flags.
15985 LTCFLAGS=$lt_LTCFLAGS
15987 # A language-specific compiler.
15988 CC=$lt_compiler_F77
15990 # Is the compiler the GNU C compiler?
15991 with_gcc=$GCC_F77
15993 # An ERE matcher.
15994 EGREP=$lt_EGREP
15996 # The linker used to build libraries.
15997 LD=$lt_LD_F77
15999 # Whether we need hard or soft links.
16000 LN_S=$lt_LN_S
16002 # A BSD-compatible nm program.
16003 NM=$lt_NM
16005 # A symbol stripping program
16006 STRIP=$lt_STRIP
16008 # Used to examine libraries when file_magic_cmd begins "file"
16009 MAGIC_CMD=$MAGIC_CMD
16011 # Used on cygwin: DLL creation program.
16012 DLLTOOL="$DLLTOOL"
16014 # Used on cygwin: object dumper.
16015 OBJDUMP="$OBJDUMP"
16017 # Used on cygwin: assembler.
16018 AS="$AS"
16020 # The name of the directory that contains temporary libtool files.
16021 objdir=$objdir
16023 # How to create reloadable object files.
16024 reload_flag=$lt_reload_flag
16025 reload_cmds=$lt_reload_cmds
16027 # How to pass a linker flag through the compiler.
16028 wl=$lt_lt_prog_compiler_wl_F77
16030 # Object file suffix (normally "o").
16031 objext="$ac_objext"
16033 # Old archive suffix (normally "a").
16034 libext="$libext"
16036 # Shared library suffix (normally ".so").
16037 shrext_cmds='$shrext_cmds'
16039 # Executable file suffix (normally "").
16040 exeext="$exeext"
16042 # Additional compiler flags for building library objects.
16043 pic_flag=$lt_lt_prog_compiler_pic_F77
16044 pic_mode=$pic_mode
16046 # What is the maximum length of a command?
16047 max_cmd_len=$lt_cv_sys_max_cmd_len
16049 # Does compiler simultaneously support -c and -o options?
16050 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16052 # Must we lock files when doing compilation?
16053 need_locks=$lt_need_locks
16055 # Do we need the lib prefix for modules?
16056 need_lib_prefix=$need_lib_prefix
16058 # Do we need a version for libraries?
16059 need_version=$need_version
16061 # Whether dlopen is supported.
16062 dlopen_support=$enable_dlopen
16064 # Whether dlopen of programs is supported.
16065 dlopen_self=$enable_dlopen_self
16067 # Whether dlopen of statically linked programs is supported.
16068 dlopen_self_static=$enable_dlopen_self_static
16070 # Compiler flag to prevent dynamic linking.
16071 link_static_flag=$lt_lt_prog_compiler_static_F77
16073 # Compiler flag to turn off builtin functions.
16074 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16076 # Compiler flag to allow reflexive dlopens.
16077 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16079 # Compiler flag to generate shared objects directly from archives.
16080 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16082 # Compiler flag to generate thread-safe objects.
16083 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16085 # Library versioning type.
16086 version_type=$version_type
16088 # Format of library name prefix.
16089 libname_spec=$lt_libname_spec
16091 # List of archive names. First name is the real one, the rest are links.
16092 # The last name is the one that the linker finds with -lNAME.
16093 library_names_spec=$lt_library_names_spec
16095 # The coded name of the library, if different from the real name.
16096 soname_spec=$lt_soname_spec
16098 # Commands used to build and install an old-style archive.
16099 RANLIB=$lt_RANLIB
16100 old_archive_cmds=$lt_old_archive_cmds_F77
16101 old_postinstall_cmds=$lt_old_postinstall_cmds
16102 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16104 # Create an old-style archive from a shared archive.
16105 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16107 # Create a temporary old-style archive to link instead of a shared archive.
16108 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16110 # Commands used to build and install a shared archive.
16111 archive_cmds=$lt_archive_cmds_F77
16112 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16113 postinstall_cmds=$lt_postinstall_cmds
16114 postuninstall_cmds=$lt_postuninstall_cmds
16116 # Commands used to build a loadable module (assumed same as above if empty)
16117 module_cmds=$lt_module_cmds_F77
16118 module_expsym_cmds=$lt_module_expsym_cmds_F77
16120 # Commands to strip libraries.
16121 old_striplib=$lt_old_striplib
16122 striplib=$lt_striplib
16124 # Dependencies to place before the objects being linked to create a
16125 # shared library.
16126 predep_objects=$lt_predep_objects_F77
16128 # Dependencies to place after the objects being linked to create a
16129 # shared library.
16130 postdep_objects=$lt_postdep_objects_F77
16132 # Dependencies to place before the objects being linked to create a
16133 # shared library.
16134 predeps=$lt_predeps_F77
16136 # Dependencies to place after the objects being linked to create a
16137 # shared library.
16138 postdeps=$lt_postdeps_F77
16140 # The library search path used internally by the compiler when linking
16141 # a shared library.
16142 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16144 # Method to check whether dependent libraries are shared objects.
16145 deplibs_check_method=$lt_deplibs_check_method
16147 # Command to use when deplibs_check_method == file_magic.
16148 file_magic_cmd=$lt_file_magic_cmd
16150 # Flag that allows shared libraries with undefined symbols to be built.
16151 allow_undefined_flag=$lt_allow_undefined_flag_F77
16153 # Flag that forces no undefined symbols.
16154 no_undefined_flag=$lt_no_undefined_flag_F77
16156 # Commands used to finish a libtool library installation in a directory.
16157 finish_cmds=$lt_finish_cmds
16159 # Same as above, but a single script fragment to be evaled but not shown.
16160 finish_eval=$lt_finish_eval
16162 # Take the output of nm and produce a listing of raw symbols and C names.
16163 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16165 # Transform the output of nm in a proper C declaration
16166 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16168 # Transform the output of nm in a C name address pair
16169 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16171 # This is the shared library runtime path variable.
16172 runpath_var=$runpath_var
16174 # This is the shared library path variable.
16175 shlibpath_var=$shlibpath_var
16177 # Is shlibpath searched before the hard-coded library search path?
16178 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16180 # How to hardcode a shared library path into an executable.
16181 hardcode_action=$hardcode_action_F77
16183 # Whether we should hardcode library paths into libraries.
16184 hardcode_into_libs=$hardcode_into_libs
16186 # Flag to hardcode \$libdir into a binary during linking.
16187 # This must work even if \$libdir does not exist.
16188 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16190 # If ld is used when linking, flag to hardcode \$libdir into
16191 # a binary during linking. This must work even if \$libdir does
16192 # not exist.
16193 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16195 # Whether we need a single -rpath flag with a separated argument.
16196 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16198 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16199 # resulting binary.
16200 hardcode_direct=$hardcode_direct_F77
16202 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16203 # resulting binary.
16204 hardcode_minus_L=$hardcode_minus_L_F77
16206 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16207 # the resulting binary.
16208 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16210 # Set to yes if building a shared library automatically hardcodes DIR into the library
16211 # and all subsequent libraries and executables linked against it.
16212 hardcode_automatic=$hardcode_automatic_F77
16214 # Variables whose values should be saved in libtool wrapper scripts and
16215 # restored at relink time.
16216 variables_saved_for_relink="$variables_saved_for_relink"
16218 # Whether libtool must link a program against all its dependency libraries.
16219 link_all_deplibs=$link_all_deplibs_F77
16221 # Compile-time system search path for libraries
16222 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16224 # Run-time system search path for libraries
16225 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16227 # Fix the shell variable \$srcfile for the compiler.
16228 fix_srcfile_path=$lt_fix_srcfile_path
16230 # Set to yes if exported symbols are required.
16231 always_export_symbols=$always_export_symbols_F77
16233 # The commands to list exported symbols.
16234 export_symbols_cmds=$lt_export_symbols_cmds_F77
16236 # The commands to extract the exported symbol list from a shared archive.
16237 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16239 # Symbols that should not be listed in the preloaded symbols.
16240 exclude_expsyms=$lt_exclude_expsyms_F77
16242 # Symbols that must always be exported.
16243 include_expsyms=$lt_include_expsyms_F77
16245 # ### END LIBTOOL TAG CONFIG: $tagname
16247 __EOF__
16250 else
16251 # If there is no Makefile yet, we rely on a make rule to execute
16252 # `config.status --recheck' to rerun these tests and create the
16253 # libtool script then.
16254 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16255 if test -f "$ltmain_in"; then
16256 test -f Makefile && make "$ltmain"
16261 ac_ext=c
16262 ac_cpp='$CPP $CPPFLAGS'
16263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16267 CC="$lt_save_CC"
16269 else
16270 tagname=""
16274 GCJ)
16275 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16279 # Source file extension for Java test sources.
16280 ac_ext=java
16282 # Object file extension for compiled Java test sources.
16283 objext=o
16284 objext_GCJ=$objext
16286 # Code to be used in simple compile tests
16287 lt_simple_compile_test_code="class foo {}"
16289 # Code to be used in simple link tests
16290 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16292 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16294 # If no C compiler was specified, use CC.
16295 LTCC=${LTCC-"$CC"}
16297 # If no C compiler flags were specified, use CFLAGS.
16298 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16300 # Allow CC to be a program name with arguments.
16301 compiler=$CC
16304 # save warnings/boilerplate of simple test code
16305 ac_outfile=conftest.$ac_objext
16306 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16307 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16308 _lt_compiler_boilerplate=`cat conftest.err`
16309 $rm conftest*
16311 ac_outfile=conftest.$ac_objext
16312 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16313 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16314 _lt_linker_boilerplate=`cat conftest.err`
16315 $rm conftest*
16318 # Allow CC to be a program name with arguments.
16319 lt_save_CC="$CC"
16320 CC=${GCJ-"gcj"}
16321 compiler=$CC
16322 compiler_GCJ=$CC
16323 for cc_temp in $compiler""; do
16324 case $cc_temp in
16325 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16326 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16327 \-*) ;;
16328 *) break;;
16329 esac
16330 done
16331 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16334 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16335 archive_cmds_need_lc_GCJ=no
16337 old_archive_cmds_GCJ=$old_archive_cmds
16339 ## CAVEAT EMPTOR:
16340 ## There is no encapsulation within the following macros, do not change
16341 ## the running order or otherwise move them around unless you know exactly
16342 ## what you are doing...
16344 lt_prog_compiler_no_builtin_flag_GCJ=
16346 if test "$GCC" = yes; then
16347 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16350 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16351 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16352 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16353 echo $ECHO_N "(cached) $ECHO_C" >&6
16354 else
16355 lt_cv_prog_compiler_rtti_exceptions=no
16356 ac_outfile=conftest.$ac_objext
16357 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16358 lt_compiler_flag="-fno-rtti -fno-exceptions"
16359 # Insert the option either (1) after the last *FLAGS variable, or
16360 # (2) before a word containing "conftest.", or (3) at the end.
16361 # Note that $ac_compile itself does not contain backslashes and begins
16362 # with a dollar sign (not a hyphen), so the echo should work correctly.
16363 # The option is referenced via a variable to avoid confusing sed.
16364 lt_compile=`echo "$ac_compile" | $SED \
16365 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16366 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16367 -e 's:$: $lt_compiler_flag:'`
16368 (eval echo "\"\$as_me:16368: $lt_compile\"" >&5)
16369 (eval "$lt_compile" 2>conftest.err)
16370 ac_status=$?
16371 cat conftest.err >&5
16372 echo "$as_me:16372: \$? = $ac_status" >&5
16373 if (exit $ac_status) && test -s "$ac_outfile"; then
16374 # The compiler can only warn and ignore the option if not recognized
16375 # So say no if there are warnings other than the usual output.
16376 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16377 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16378 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16379 lt_cv_prog_compiler_rtti_exceptions=yes
16382 $rm conftest*
16385 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16386 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16388 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16389 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16390 else
16396 lt_prog_compiler_wl_GCJ=
16397 lt_prog_compiler_pic_GCJ=
16398 lt_prog_compiler_static_GCJ=
16400 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16401 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16403 if test "$GCC" = yes; then
16404 lt_prog_compiler_wl_GCJ='-Wl,'
16405 lt_prog_compiler_static_GCJ='-static'
16407 case $host_os in
16408 aix*)
16409 # All AIX code is PIC.
16410 if test "$host_cpu" = ia64; then
16411 # AIX 5 now supports IA64 processor
16412 lt_prog_compiler_static_GCJ='-Bstatic'
16416 amigaos*)
16417 # FIXME: we need at least 68020 code to build shared libraries, but
16418 # adding the `-m68020' flag to GCC prevents building anything better,
16419 # like `-m68040'.
16420 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16423 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16424 # PIC is the default for these OSes.
16427 mingw* | cygwin* | pw32* | os2*)
16428 # This hack is so that the source file can tell whether it is being
16429 # built for inclusion in a dll (and should export symbols for example).
16430 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16431 # (--disable-auto-import) libraries
16432 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16435 darwin* | rhapsody*)
16436 # PIC is the default on this platform
16437 # Common symbols not allowed in MH_DYLIB files
16438 lt_prog_compiler_pic_GCJ='-fno-common'
16441 interix[3-9]*)
16442 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16443 # Instead, we relocate shared libraries at runtime.
16446 msdosdjgpp*)
16447 # Just because we use GCC doesn't mean we suddenly get shared libraries
16448 # on systems that don't support them.
16449 lt_prog_compiler_can_build_shared_GCJ=no
16450 enable_shared=no
16453 sysv4*MP*)
16454 if test -d /usr/nec; then
16455 lt_prog_compiler_pic_GCJ=-Kconform_pic
16459 hpux*)
16460 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16461 # not for PA HP-UX.
16462 case $host_cpu in
16463 hppa*64*|ia64*)
16464 # +Z the default
16467 lt_prog_compiler_pic_GCJ='-fPIC'
16469 esac
16473 lt_prog_compiler_pic_GCJ='-fPIC'
16475 esac
16476 else
16477 # PORTME Check for flag to pass linker flags through the system compiler.
16478 case $host_os in
16479 aix*)
16480 lt_prog_compiler_wl_GCJ='-Wl,'
16481 if test "$host_cpu" = ia64; then
16482 # AIX 5 now supports IA64 processor
16483 lt_prog_compiler_static_GCJ='-Bstatic'
16484 else
16485 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16488 darwin*)
16489 # PIC is the default on this platform
16490 # Common symbols not allowed in MH_DYLIB files
16491 case $cc_basename in
16492 xlc*)
16493 lt_prog_compiler_pic_GCJ='-qnocommon'
16494 lt_prog_compiler_wl_GCJ='-Wl,'
16496 esac
16499 mingw* | cygwin* | pw32* | os2*)
16500 # This hack is so that the source file can tell whether it is being
16501 # built for inclusion in a dll (and should export symbols for example).
16502 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16505 hpux9* | hpux10* | hpux11*)
16506 lt_prog_compiler_wl_GCJ='-Wl,'
16507 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16508 # not for PA HP-UX.
16509 case $host_cpu in
16510 hppa*64*|ia64*)
16511 # +Z the default
16514 lt_prog_compiler_pic_GCJ='+Z'
16516 esac
16517 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16518 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16521 irix5* | irix6* | nonstopux*)
16522 lt_prog_compiler_wl_GCJ='-Wl,'
16523 # PIC (with -KPIC) is the default.
16524 lt_prog_compiler_static_GCJ='-non_shared'
16527 newsos6)
16528 lt_prog_compiler_pic_GCJ='-KPIC'
16529 lt_prog_compiler_static_GCJ='-Bstatic'
16532 linux* | k*bsd*-gnu)
16533 case $cc_basename in
16534 icc* | ecc*)
16535 lt_prog_compiler_wl_GCJ='-Wl,'
16536 lt_prog_compiler_pic_GCJ='-KPIC'
16537 lt_prog_compiler_static_GCJ='-static'
16539 pgcc* | pgf77* | pgf90* | pgf95*)
16540 # Portland Group compilers (*not* the Pentium gcc compiler,
16541 # which looks to be a dead project)
16542 lt_prog_compiler_wl_GCJ='-Wl,'
16543 lt_prog_compiler_pic_GCJ='-fpic'
16544 lt_prog_compiler_static_GCJ='-Bstatic'
16546 ccc*)
16547 lt_prog_compiler_wl_GCJ='-Wl,'
16548 # All Alpha code is PIC.
16549 lt_prog_compiler_static_GCJ='-non_shared'
16552 case `$CC -V 2>&1 | sed 5q` in
16553 *Sun\ C*)
16554 # Sun C 5.9
16555 lt_prog_compiler_pic_GCJ='-KPIC'
16556 lt_prog_compiler_static_GCJ='-Bstatic'
16557 lt_prog_compiler_wl_GCJ='-Wl,'
16559 *Sun\ F*)
16560 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16561 lt_prog_compiler_pic_GCJ='-KPIC'
16562 lt_prog_compiler_static_GCJ='-Bstatic'
16563 lt_prog_compiler_wl_GCJ=''
16565 esac
16567 esac
16570 osf3* | osf4* | osf5*)
16571 lt_prog_compiler_wl_GCJ='-Wl,'
16572 # All OSF/1 code is PIC.
16573 lt_prog_compiler_static_GCJ='-non_shared'
16576 rdos*)
16577 lt_prog_compiler_static_GCJ='-non_shared'
16580 solaris*)
16581 lt_prog_compiler_pic_GCJ='-KPIC'
16582 lt_prog_compiler_static_GCJ='-Bstatic'
16583 case $cc_basename in
16584 f77* | f90* | f95*)
16585 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16587 lt_prog_compiler_wl_GCJ='-Wl,';;
16588 esac
16591 sunos4*)
16592 lt_prog_compiler_wl_GCJ='-Qoption ld '
16593 lt_prog_compiler_pic_GCJ='-PIC'
16594 lt_prog_compiler_static_GCJ='-Bstatic'
16597 sysv4 | sysv4.2uw2* | sysv4.3*)
16598 lt_prog_compiler_wl_GCJ='-Wl,'
16599 lt_prog_compiler_pic_GCJ='-KPIC'
16600 lt_prog_compiler_static_GCJ='-Bstatic'
16603 sysv4*MP*)
16604 if test -d /usr/nec ;then
16605 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16606 lt_prog_compiler_static_GCJ='-Bstatic'
16610 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16611 lt_prog_compiler_wl_GCJ='-Wl,'
16612 lt_prog_compiler_pic_GCJ='-KPIC'
16613 lt_prog_compiler_static_GCJ='-Bstatic'
16616 unicos*)
16617 lt_prog_compiler_wl_GCJ='-Wl,'
16618 lt_prog_compiler_can_build_shared_GCJ=no
16621 uts4*)
16622 lt_prog_compiler_pic_GCJ='-pic'
16623 lt_prog_compiler_static_GCJ='-Bstatic'
16627 lt_prog_compiler_can_build_shared_GCJ=no
16629 esac
16632 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16633 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16636 # Check to make sure the PIC flag actually works.
16638 if test -n "$lt_prog_compiler_pic_GCJ"; then
16640 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16641 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16642 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16643 echo $ECHO_N "(cached) $ECHO_C" >&6
16644 else
16645 lt_prog_compiler_pic_works_GCJ=no
16646 ac_outfile=conftest.$ac_objext
16647 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16648 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16649 # Insert the option either (1) after the last *FLAGS variable, or
16650 # (2) before a word containing "conftest.", or (3) at the end.
16651 # Note that $ac_compile itself does not contain backslashes and begins
16652 # with a dollar sign (not a hyphen), so the echo should work correctly.
16653 # The option is referenced via a variable to avoid confusing sed.
16654 lt_compile=`echo "$ac_compile" | $SED \
16655 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16656 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16657 -e 's:$: $lt_compiler_flag:'`
16658 (eval echo "\"\$as_me:16658: $lt_compile\"" >&5)
16659 (eval "$lt_compile" 2>conftest.err)
16660 ac_status=$?
16661 cat conftest.err >&5
16662 echo "$as_me:16662: \$? = $ac_status" >&5
16663 if (exit $ac_status) && test -s "$ac_outfile"; then
16664 # The compiler can only warn and ignore the option if not recognized
16665 # So say no if there are warnings other than the usual output.
16666 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16667 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16668 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16669 lt_prog_compiler_pic_works_GCJ=yes
16672 $rm conftest*
16675 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16676 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16678 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16679 case $lt_prog_compiler_pic_GCJ in
16680 "" | " "*) ;;
16681 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16682 esac
16683 else
16684 lt_prog_compiler_pic_GCJ=
16685 lt_prog_compiler_can_build_shared_GCJ=no
16689 case $host_os in
16690 # For platforms which do not support PIC, -DPIC is meaningless:
16691 *djgpp*)
16692 lt_prog_compiler_pic_GCJ=
16695 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16697 esac
16700 # Check to make sure the static flag actually works.
16702 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16703 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16704 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16705 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16706 echo $ECHO_N "(cached) $ECHO_C" >&6
16707 else
16708 lt_prog_compiler_static_works_GCJ=no
16709 save_LDFLAGS="$LDFLAGS"
16710 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16711 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16712 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16713 # The linker can only warn and ignore the option if not recognized
16714 # So say no if there are warnings
16715 if test -s conftest.err; then
16716 # Append any errors to the config.log.
16717 cat conftest.err 1>&5
16718 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16719 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16720 if diff conftest.exp conftest.er2 >/dev/null; then
16721 lt_prog_compiler_static_works_GCJ=yes
16723 else
16724 lt_prog_compiler_static_works_GCJ=yes
16727 $rm conftest*
16728 LDFLAGS="$save_LDFLAGS"
16731 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16732 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16734 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16736 else
16737 lt_prog_compiler_static_GCJ=
16741 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16742 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16743 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16744 echo $ECHO_N "(cached) $ECHO_C" >&6
16745 else
16746 lt_cv_prog_compiler_c_o_GCJ=no
16747 $rm -r conftest 2>/dev/null
16748 mkdir conftest
16749 cd conftest
16750 mkdir out
16751 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16753 lt_compiler_flag="-o out/conftest2.$ac_objext"
16754 # Insert the option either (1) after the last *FLAGS variable, or
16755 # (2) before a word containing "conftest.", or (3) at the end.
16756 # Note that $ac_compile itself does not contain backslashes and begins
16757 # with a dollar sign (not a hyphen), so the echo should work correctly.
16758 lt_compile=`echo "$ac_compile" | $SED \
16759 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16760 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16761 -e 's:$: $lt_compiler_flag:'`
16762 (eval echo "\"\$as_me:16762: $lt_compile\"" >&5)
16763 (eval "$lt_compile" 2>out/conftest.err)
16764 ac_status=$?
16765 cat out/conftest.err >&5
16766 echo "$as_me:16766: \$? = $ac_status" >&5
16767 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16768 then
16769 # The compiler can only warn and ignore the option if not recognized
16770 # So say no if there are warnings
16771 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16772 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16773 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16774 lt_cv_prog_compiler_c_o_GCJ=yes
16777 chmod u+w . 2>&5
16778 $rm conftest*
16779 # SGI C++ compiler will create directory out/ii_files/ for
16780 # template instantiation
16781 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16782 $rm out/* && rmdir out
16783 cd ..
16784 rmdir conftest
16785 $rm conftest*
16788 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16789 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16792 hard_links="nottested"
16793 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16794 # do not overwrite the value of need_locks provided by the user
16795 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16796 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16797 hard_links=yes
16798 $rm conftest*
16799 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16800 touch conftest.a
16801 ln conftest.a conftest.b 2>&5 || hard_links=no
16802 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16803 echo "$as_me:$LINENO: result: $hard_links" >&5
16804 echo "${ECHO_T}$hard_links" >&6
16805 if test "$hard_links" = no; then
16806 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16807 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16808 need_locks=warn
16810 else
16811 need_locks=no
16814 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16815 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16817 runpath_var=
16818 allow_undefined_flag_GCJ=
16819 enable_shared_with_static_runtimes_GCJ=no
16820 archive_cmds_GCJ=
16821 archive_expsym_cmds_GCJ=
16822 old_archive_From_new_cmds_GCJ=
16823 old_archive_from_expsyms_cmds_GCJ=
16824 export_dynamic_flag_spec_GCJ=
16825 whole_archive_flag_spec_GCJ=
16826 thread_safe_flag_spec_GCJ=
16827 hardcode_libdir_flag_spec_GCJ=
16828 hardcode_libdir_flag_spec_ld_GCJ=
16829 hardcode_libdir_separator_GCJ=
16830 hardcode_direct_GCJ=no
16831 hardcode_minus_L_GCJ=no
16832 hardcode_shlibpath_var_GCJ=unsupported
16833 link_all_deplibs_GCJ=unknown
16834 hardcode_automatic_GCJ=no
16835 module_cmds_GCJ=
16836 module_expsym_cmds_GCJ=
16837 always_export_symbols_GCJ=no
16838 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16839 # include_expsyms should be a list of space-separated symbols to be *always*
16840 # included in the symbol list
16841 include_expsyms_GCJ=
16842 # exclude_expsyms can be an extended regexp of symbols to exclude
16843 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16844 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16845 # as well as any symbol that contains `d'.
16846 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16847 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16848 # platforms (ab)use it in PIC code, but their linkers get confused if
16849 # the symbol is explicitly referenced. Since portable code cannot
16850 # rely on this symbol name, it's probably fine to never include it in
16851 # preloaded symbol tables.
16852 extract_expsyms_cmds=
16853 # Just being paranoid about ensuring that cc_basename is set.
16854 for cc_temp in $compiler""; do
16855 case $cc_temp in
16856 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16857 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16858 \-*) ;;
16859 *) break;;
16860 esac
16861 done
16862 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16864 case $host_os in
16865 cygwin* | mingw* | pw32*)
16866 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16867 # When not using gcc, we currently assume that we are using
16868 # Microsoft Visual C++.
16869 if test "$GCC" != yes; then
16870 with_gnu_ld=no
16873 interix*)
16874 # we just hope/assume this is gcc and not c89 (= MSVC++)
16875 with_gnu_ld=yes
16877 openbsd*)
16878 with_gnu_ld=no
16880 esac
16882 ld_shlibs_GCJ=yes
16883 if test "$with_gnu_ld" = yes; then
16884 # If archive_cmds runs LD, not CC, wlarc should be empty
16885 wlarc='${wl}'
16887 # Set some defaults for GNU ld with shared library support. These
16888 # are reset later if shared libraries are not supported. Putting them
16889 # here allows them to be overridden if necessary.
16890 runpath_var=LD_RUN_PATH
16891 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16892 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16893 # ancient GNU ld didn't support --whole-archive et. al.
16894 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16895 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16896 else
16897 whole_archive_flag_spec_GCJ=
16899 supports_anon_versioning=no
16900 case `$LD -v 2>/dev/null` in
16901 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16902 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16903 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16904 *\ 2.11.*) ;; # other 2.11 versions
16905 *) supports_anon_versioning=yes ;;
16906 esac
16908 # See if GNU ld supports shared libraries.
16909 case $host_os in
16910 aix3* | aix4* | aix5*)
16911 # On AIX/PPC, the GNU linker is very broken
16912 if test "$host_cpu" != ia64; then
16913 ld_shlibs_GCJ=no
16914 cat <<EOF 1>&2
16916 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16917 *** to be unable to reliably create shared libraries on AIX.
16918 *** Therefore, libtool is disabling shared libraries support. If you
16919 *** really care for shared libraries, you may want to modify your PATH
16920 *** so that a non-GNU linker is found, and then restart.
16926 amigaos*)
16927 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)'
16928 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16929 hardcode_minus_L_GCJ=yes
16931 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16932 # that the semantics of dynamic libraries on AmigaOS, at least up
16933 # to version 4, is to share data among multiple programs linked
16934 # with the same dynamic library. Since this doesn't match the
16935 # behavior of shared libraries on other platforms, we can't use
16936 # them.
16937 ld_shlibs_GCJ=no
16940 beos*)
16941 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16942 allow_undefined_flag_GCJ=unsupported
16943 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16944 # support --undefined. This deserves some investigation. FIXME
16945 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16946 else
16947 ld_shlibs_GCJ=no
16951 cygwin* | mingw* | pw32*)
16952 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16953 # as there is no search path for DLLs.
16954 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16955 allow_undefined_flag_GCJ=unsupported
16956 always_export_symbols_GCJ=no
16957 enable_shared_with_static_runtimes_GCJ=yes
16958 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16960 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16961 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16962 # If the export-symbols file already is a .def file (1st line
16963 # is EXPORTS), use it as is; otherwise, prepend...
16964 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16965 cp $export_symbols $output_objdir/$soname.def;
16966 else
16967 echo EXPORTS > $output_objdir/$soname.def;
16968 cat $export_symbols >> $output_objdir/$soname.def;
16970 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16971 else
16972 ld_shlibs_GCJ=no
16976 interix[3-9]*)
16977 hardcode_direct_GCJ=no
16978 hardcode_shlibpath_var_GCJ=no
16979 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16980 export_dynamic_flag_spec_GCJ='${wl}-E'
16981 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16982 # Instead, shared libraries are loaded at an image base (0x10000000 by
16983 # default) and relocated if they conflict, which is a slow very memory
16984 # consuming and fragmenting process. To avoid this, we pick a random,
16985 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16986 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16987 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'
16988 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'
16991 gnu* | linux* | k*bsd*-gnu)
16992 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16993 tmp_addflag=
16994 case $cc_basename,$host_cpu in
16995 pgcc*) # Portland Group C compiler
16996 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'
16997 tmp_addflag=' $pic_flag'
16999 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17000 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'
17001 tmp_addflag=' $pic_flag -Mnomain' ;;
17002 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17003 tmp_addflag=' -i_dynamic' ;;
17004 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17005 tmp_addflag=' -i_dynamic -nofor_main' ;;
17006 ifc* | ifort*) # Intel Fortran compiler
17007 tmp_addflag=' -nofor_main' ;;
17008 esac
17009 case `$CC -V 2>&1 | sed 5q` in
17010 *Sun\ C*) # Sun C 5.9
17011 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17012 tmp_sharedflag='-G' ;;
17013 *Sun\ F*) # Sun Fortran 8.3
17014 tmp_sharedflag='-G' ;;
17016 tmp_sharedflag='-shared' ;;
17017 esac
17018 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17020 if test $supports_anon_versioning = yes; then
17021 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17022 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17023 $echo "local: *; };" >> $output_objdir/$libname.ver~
17024 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17026 else
17027 ld_shlibs_GCJ=no
17031 netbsd*)
17032 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17033 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17034 wlarc=
17035 else
17036 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17037 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17041 solaris*)
17042 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17043 ld_shlibs_GCJ=no
17044 cat <<EOF 1>&2
17046 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17047 *** create shared libraries on Solaris systems. Therefore, libtool
17048 *** is disabling shared libraries support. We urge you to upgrade GNU
17049 *** binutils to release 2.9.1 or newer. Another option is to modify
17050 *** your PATH or compiler configuration so that the native linker is
17051 *** used, and then restart.
17054 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17055 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17056 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17057 else
17058 ld_shlibs_GCJ=no
17062 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17063 case `$LD -v 2>&1` in
17064 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17065 ld_shlibs_GCJ=no
17066 cat <<_LT_EOF 1>&2
17068 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17069 *** reliably create shared libraries on SCO systems. Therefore, libtool
17070 *** is disabling shared libraries support. We urge you to upgrade GNU
17071 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17072 *** your PATH or compiler configuration so that the native linker is
17073 *** used, and then restart.
17075 _LT_EOF
17078 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17079 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17080 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17081 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17082 else
17083 ld_shlibs_GCJ=no
17086 esac
17089 sunos4*)
17090 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17091 wlarc=
17092 hardcode_direct_GCJ=yes
17093 hardcode_shlibpath_var_GCJ=no
17097 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17098 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17099 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17100 else
17101 ld_shlibs_GCJ=no
17104 esac
17106 if test "$ld_shlibs_GCJ" = no; then
17107 runpath_var=
17108 hardcode_libdir_flag_spec_GCJ=
17109 export_dynamic_flag_spec_GCJ=
17110 whole_archive_flag_spec_GCJ=
17112 else
17113 # PORTME fill in a description of your system's linker (not GNU ld)
17114 case $host_os in
17115 aix3*)
17116 allow_undefined_flag_GCJ=unsupported
17117 always_export_symbols_GCJ=yes
17118 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'
17119 # Note: this linker hardcodes the directories in LIBPATH if there
17120 # are no directories specified by -L.
17121 hardcode_minus_L_GCJ=yes
17122 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17123 # Neither direct hardcoding nor static linking is supported with a
17124 # broken collect2.
17125 hardcode_direct_GCJ=unsupported
17129 aix4* | aix5*)
17130 if test "$host_cpu" = ia64; then
17131 # On IA64, the linker does run time linking by default, so we don't
17132 # have to do anything special.
17133 aix_use_runtimelinking=no
17134 exp_sym_flag='-Bexport'
17135 no_entry_flag=""
17136 else
17137 # If we're using GNU nm, then we don't want the "-C" option.
17138 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17139 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17140 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'
17141 else
17142 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'
17144 aix_use_runtimelinking=no
17146 # Test if we are trying to use run time linking or normal
17147 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17148 # need to do runtime linking.
17149 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17150 for ld_flag in $LDFLAGS; do
17151 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17152 aix_use_runtimelinking=yes
17153 break
17155 done
17157 esac
17159 exp_sym_flag='-bexport'
17160 no_entry_flag='-bnoentry'
17163 # When large executables or shared objects are built, AIX ld can
17164 # have problems creating the table of contents. If linking a library
17165 # or program results in "error TOC overflow" add -mminimal-toc to
17166 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17167 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17169 archive_cmds_GCJ=''
17170 hardcode_direct_GCJ=yes
17171 hardcode_libdir_separator_GCJ=':'
17172 link_all_deplibs_GCJ=yes
17174 if test "$GCC" = yes; then
17175 case $host_os in aix4.[012]|aix4.[012].*)
17176 # We only want to do this on AIX 4.2 and lower, the check
17177 # below for broken collect2 doesn't work under 4.3+
17178 collect2name=`${CC} -print-prog-name=collect2`
17179 if test -f "$collect2name" && \
17180 strings "$collect2name" | grep resolve_lib_name >/dev/null
17181 then
17182 # We have reworked collect2
17184 else
17185 # We have old collect2
17186 hardcode_direct_GCJ=unsupported
17187 # It fails to find uninstalled libraries when the uninstalled
17188 # path is not listed in the libpath. Setting hardcode_minus_L
17189 # to unsupported forces relinking
17190 hardcode_minus_L_GCJ=yes
17191 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17192 hardcode_libdir_separator_GCJ=
17195 esac
17196 shared_flag='-shared'
17197 if test "$aix_use_runtimelinking" = yes; then
17198 shared_flag="$shared_flag "'${wl}-G'
17200 else
17201 # not using gcc
17202 if test "$host_cpu" = ia64; then
17203 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17204 # chokes on -Wl,-G. The following line is correct:
17205 shared_flag='-G'
17206 else
17207 if test "$aix_use_runtimelinking" = yes; then
17208 shared_flag='${wl}-G'
17209 else
17210 shared_flag='${wl}-bM:SRE'
17215 # It seems that -bexpall does not export symbols beginning with
17216 # underscore (_), so it is better to generate a list of symbols to export.
17217 always_export_symbols_GCJ=yes
17218 if test "$aix_use_runtimelinking" = yes; then
17219 # Warning - without using the other runtime loading flags (-brtl),
17220 # -berok will link without error, but may produce a broken library.
17221 allow_undefined_flag_GCJ='-berok'
17222 # Determine the default libpath from the value encoded in an empty executable.
17223 cat >conftest.$ac_ext <<_ACEOF
17224 /* confdefs.h. */
17225 _ACEOF
17226 cat confdefs.h >>conftest.$ac_ext
17227 cat >>conftest.$ac_ext <<_ACEOF
17228 /* end confdefs.h. */
17231 main ()
17235 return 0;
17237 _ACEOF
17238 rm -f conftest.$ac_objext conftest$ac_exeext
17239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17240 (eval $ac_link) 2>conftest.er1
17241 ac_status=$?
17242 grep -v '^ *+' conftest.er1 >conftest.err
17243 rm -f conftest.er1
17244 cat conftest.err >&5
17245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246 (exit $ac_status); } &&
17247 { ac_try='test -z "$ac_c_werror_flag"
17248 || test ! -s conftest.err'
17249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17250 (eval $ac_try) 2>&5
17251 ac_status=$?
17252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253 (exit $ac_status); }; } &&
17254 { ac_try='test -s conftest$ac_exeext'
17255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17256 (eval $ac_try) 2>&5
17257 ac_status=$?
17258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259 (exit $ac_status); }; }; then
17261 lt_aix_libpath_sed='
17262 /Import File Strings/,/^$/ {
17263 /^0/ {
17264 s/^0 *\(.*\)$/\1/
17268 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17269 # Check for a 64-bit object if we didn't find anything.
17270 if test -z "$aix_libpath"; then
17271 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17273 else
17274 echo "$as_me: failed program was:" >&5
17275 sed 's/^/| /' conftest.$ac_ext >&5
17278 rm -f conftest.err conftest.$ac_objext \
17279 conftest$ac_exeext conftest.$ac_ext
17280 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17282 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17283 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"
17284 else
17285 if test "$host_cpu" = ia64; then
17286 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17287 allow_undefined_flag_GCJ="-z nodefs"
17288 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"
17289 else
17290 # Determine the default libpath from the value encoded in an empty executable.
17291 cat >conftest.$ac_ext <<_ACEOF
17292 /* confdefs.h. */
17293 _ACEOF
17294 cat confdefs.h >>conftest.$ac_ext
17295 cat >>conftest.$ac_ext <<_ACEOF
17296 /* end confdefs.h. */
17299 main ()
17303 return 0;
17305 _ACEOF
17306 rm -f conftest.$ac_objext conftest$ac_exeext
17307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17308 (eval $ac_link) 2>conftest.er1
17309 ac_status=$?
17310 grep -v '^ *+' conftest.er1 >conftest.err
17311 rm -f conftest.er1
17312 cat conftest.err >&5
17313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17314 (exit $ac_status); } &&
17315 { ac_try='test -z "$ac_c_werror_flag"
17316 || test ! -s conftest.err'
17317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17318 (eval $ac_try) 2>&5
17319 ac_status=$?
17320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321 (exit $ac_status); }; } &&
17322 { ac_try='test -s conftest$ac_exeext'
17323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17324 (eval $ac_try) 2>&5
17325 ac_status=$?
17326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327 (exit $ac_status); }; }; then
17329 lt_aix_libpath_sed='
17330 /Import File Strings/,/^$/ {
17331 /^0/ {
17332 s/^0 *\(.*\)$/\1/
17336 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17337 # Check for a 64-bit object if we didn't find anything.
17338 if test -z "$aix_libpath"; then
17339 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17341 else
17342 echo "$as_me: failed program was:" >&5
17343 sed 's/^/| /' conftest.$ac_ext >&5
17346 rm -f conftest.err conftest.$ac_objext \
17347 conftest$ac_exeext conftest.$ac_ext
17348 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17350 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17351 # Warning - without using the other run time loading flags,
17352 # -berok will link without error, but may produce a broken library.
17353 no_undefined_flag_GCJ=' ${wl}-bernotok'
17354 allow_undefined_flag_GCJ=' ${wl}-berok'
17355 # Exported symbols can be pulled into shared objects from archives
17356 whole_archive_flag_spec_GCJ='$convenience'
17357 archive_cmds_need_lc_GCJ=yes
17358 # This is similar to how AIX traditionally builds its shared libraries.
17359 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'
17364 amigaos*)
17365 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)'
17366 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17367 hardcode_minus_L_GCJ=yes
17368 # see comment about different semantics on the GNU ld section
17369 ld_shlibs_GCJ=no
17372 bsdi[45]*)
17373 export_dynamic_flag_spec_GCJ=-rdynamic
17376 cygwin* | mingw* | pw32*)
17377 # When not using gcc, we currently assume that we are using
17378 # Microsoft Visual C++.
17379 # hardcode_libdir_flag_spec is actually meaningless, as there is
17380 # no search path for DLLs.
17381 hardcode_libdir_flag_spec_GCJ=' '
17382 allow_undefined_flag_GCJ=unsupported
17383 # Tell ltmain to make .lib files, not .a files.
17384 libext=lib
17385 # Tell ltmain to make .dll files, not .so files.
17386 shrext_cmds=".dll"
17387 # FIXME: Setting linknames here is a bad hack.
17388 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17389 # The linker will automatically build a .lib file if we build a DLL.
17390 old_archive_From_new_cmds_GCJ='true'
17391 # FIXME: Should let the user specify the lib program.
17392 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17393 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17394 enable_shared_with_static_runtimes_GCJ=yes
17397 darwin* | rhapsody*)
17398 case $host_os in
17399 rhapsody* | darwin1.[012])
17400 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17402 *) # Darwin 1.3 on
17403 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17404 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17405 else
17406 case ${MACOSX_DEPLOYMENT_TARGET} in
17407 10.[012])
17408 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17410 10.*)
17411 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17413 esac
17416 esac
17417 archive_cmds_need_lc_GCJ=no
17418 hardcode_direct_GCJ=no
17419 hardcode_automatic_GCJ=yes
17420 hardcode_shlibpath_var_GCJ=unsupported
17421 whole_archive_flag_spec_GCJ=''
17422 link_all_deplibs_GCJ=yes
17423 if test "$GCC" = yes ; then
17424 output_verbose_link_cmd='echo'
17425 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17426 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17427 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17428 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}'
17429 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}'
17430 else
17431 case $cc_basename in
17432 xlc*)
17433 output_verbose_link_cmd='echo'
17434 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17435 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17436 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17437 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17438 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}'
17441 ld_shlibs_GCJ=no
17443 esac
17447 dgux*)
17448 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17449 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17450 hardcode_shlibpath_var_GCJ=no
17453 freebsd1*)
17454 ld_shlibs_GCJ=no
17457 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17458 # support. Future versions do this automatically, but an explicit c++rt0.o
17459 # does not break anything, and helps significantly (at the cost of a little
17460 # extra space).
17461 freebsd2.2*)
17462 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17463 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17464 hardcode_direct_GCJ=yes
17465 hardcode_shlibpath_var_GCJ=no
17468 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17469 freebsd2*)
17470 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17471 hardcode_direct_GCJ=yes
17472 hardcode_minus_L_GCJ=yes
17473 hardcode_shlibpath_var_GCJ=no
17476 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17477 freebsd* | dragonfly*)
17478 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17479 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17480 hardcode_direct_GCJ=yes
17481 hardcode_shlibpath_var_GCJ=no
17484 hpux9*)
17485 if test "$GCC" = yes; then
17486 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'
17487 else
17488 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'
17490 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17491 hardcode_libdir_separator_GCJ=:
17492 hardcode_direct_GCJ=yes
17494 # hardcode_minus_L: Not really in the search PATH,
17495 # but as the default location of the library.
17496 hardcode_minus_L_GCJ=yes
17497 export_dynamic_flag_spec_GCJ='${wl}-E'
17500 hpux10*)
17501 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17502 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17503 else
17504 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17506 if test "$with_gnu_ld" = no; then
17507 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17508 hardcode_libdir_separator_GCJ=:
17510 hardcode_direct_GCJ=yes
17511 export_dynamic_flag_spec_GCJ='${wl}-E'
17513 # hardcode_minus_L: Not really in the search PATH,
17514 # but as the default location of the library.
17515 hardcode_minus_L_GCJ=yes
17519 hpux11*)
17520 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17521 case $host_cpu in
17522 hppa*64*)
17523 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17525 ia64*)
17526 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17529 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17531 esac
17532 else
17533 case $host_cpu in
17534 hppa*64*)
17535 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17537 ia64*)
17538 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17541 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17543 esac
17545 if test "$with_gnu_ld" = no; then
17546 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17547 hardcode_libdir_separator_GCJ=:
17549 case $host_cpu in
17550 hppa*64*|ia64*)
17551 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17552 hardcode_direct_GCJ=no
17553 hardcode_shlibpath_var_GCJ=no
17556 hardcode_direct_GCJ=yes
17557 export_dynamic_flag_spec_GCJ='${wl}-E'
17559 # hardcode_minus_L: Not really in the search PATH,
17560 # but as the default location of the library.
17561 hardcode_minus_L_GCJ=yes
17563 esac
17567 irix5* | irix6* | nonstopux*)
17568 if test "$GCC" = yes; then
17569 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'
17570 else
17571 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'
17572 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17574 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17575 hardcode_libdir_separator_GCJ=:
17576 link_all_deplibs_GCJ=yes
17579 netbsd*)
17580 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17581 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17582 else
17583 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17585 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17586 hardcode_direct_GCJ=yes
17587 hardcode_shlibpath_var_GCJ=no
17590 newsos6)
17591 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17592 hardcode_direct_GCJ=yes
17593 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17594 hardcode_libdir_separator_GCJ=:
17595 hardcode_shlibpath_var_GCJ=no
17598 openbsd*)
17599 if test -f /usr/libexec/ld.so; then
17600 hardcode_direct_GCJ=yes
17601 hardcode_shlibpath_var_GCJ=no
17602 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17603 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17604 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17605 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17606 export_dynamic_flag_spec_GCJ='${wl}-E'
17607 else
17608 case $host_os in
17609 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17610 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17611 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17614 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17615 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17617 esac
17619 else
17620 ld_shlibs_GCJ=no
17624 os2*)
17625 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17626 hardcode_minus_L_GCJ=yes
17627 allow_undefined_flag_GCJ=unsupported
17628 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'
17629 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17632 osf3*)
17633 if test "$GCC" = yes; then
17634 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17635 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'
17636 else
17637 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17638 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'
17640 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17641 hardcode_libdir_separator_GCJ=:
17644 osf4* | osf5*) # as osf3* with the addition of -msym flag
17645 if test "$GCC" = yes; then
17646 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17647 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'
17648 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17649 else
17650 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17651 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'
17652 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~
17653 $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'
17655 # Both c and cxx compiler support -rpath directly
17656 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17658 hardcode_libdir_separator_GCJ=:
17661 solaris*)
17662 no_undefined_flag_GCJ=' -z text'
17663 if test "$GCC" = yes; then
17664 wlarc='${wl}'
17665 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17666 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17667 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17668 else
17669 wlarc=''
17670 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17671 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17672 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17674 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17675 hardcode_shlibpath_var_GCJ=no
17676 case $host_os in
17677 solaris2.[0-5] | solaris2.[0-5].*) ;;
17679 # The compiler driver will combine and reorder linker options,
17680 # but understands `-z linker_flag'. GCC discards it without `$wl',
17681 # but is careful enough not to reorder.
17682 # Supported since Solaris 2.6 (maybe 2.5.1?)
17683 if test "$GCC" = yes; then
17684 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17685 else
17686 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17689 esac
17690 link_all_deplibs_GCJ=yes
17693 sunos4*)
17694 if test "x$host_vendor" = xsequent; then
17695 # Use $CC to link under sequent, because it throws in some extra .o
17696 # files that make .init and .fini sections work.
17697 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17698 else
17699 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17701 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17702 hardcode_direct_GCJ=yes
17703 hardcode_minus_L_GCJ=yes
17704 hardcode_shlibpath_var_GCJ=no
17707 sysv4)
17708 case $host_vendor in
17709 sni)
17710 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17711 hardcode_direct_GCJ=yes # is this really true???
17713 siemens)
17714 ## LD is ld it makes a PLAMLIB
17715 ## CC just makes a GrossModule.
17716 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17717 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17718 hardcode_direct_GCJ=no
17720 motorola)
17721 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17722 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17724 esac
17725 runpath_var='LD_RUN_PATH'
17726 hardcode_shlibpath_var_GCJ=no
17729 sysv4.3*)
17730 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17731 hardcode_shlibpath_var_GCJ=no
17732 export_dynamic_flag_spec_GCJ='-Bexport'
17735 sysv4*MP*)
17736 if test -d /usr/nec; then
17737 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17738 hardcode_shlibpath_var_GCJ=no
17739 runpath_var=LD_RUN_PATH
17740 hardcode_runpath_var=yes
17741 ld_shlibs_GCJ=yes
17745 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17746 no_undefined_flag_GCJ='${wl}-z,text'
17747 archive_cmds_need_lc_GCJ=no
17748 hardcode_shlibpath_var_GCJ=no
17749 runpath_var='LD_RUN_PATH'
17751 if test "$GCC" = yes; then
17752 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17753 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17754 else
17755 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17756 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17760 sysv5* | sco3.2v5* | sco5v6*)
17761 # Note: We can NOT use -z defs as we might desire, because we do not
17762 # link with -lc, and that would cause any symbols used from libc to
17763 # always be unresolved, which means just about no library would
17764 # ever link correctly. If we're not using GNU ld we use -z text
17765 # though, which does catch some bad symbols but isn't as heavy-handed
17766 # as -z defs.
17767 no_undefined_flag_GCJ='${wl}-z,text'
17768 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17769 archive_cmds_need_lc_GCJ=no
17770 hardcode_shlibpath_var_GCJ=no
17771 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17772 hardcode_libdir_separator_GCJ=':'
17773 link_all_deplibs_GCJ=yes
17774 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17775 runpath_var='LD_RUN_PATH'
17777 if test "$GCC" = yes; then
17778 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17779 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17780 else
17781 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17782 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17786 uts4*)
17787 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17788 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17789 hardcode_shlibpath_var_GCJ=no
17793 ld_shlibs_GCJ=no
17795 esac
17798 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17799 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17800 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17803 # Do we need to explicitly link libc?
17805 case "x$archive_cmds_need_lc_GCJ" in
17806 x|xyes)
17807 # Assume -lc should be added
17808 archive_cmds_need_lc_GCJ=yes
17810 if test "$enable_shared" = yes && test "$GCC" = yes; then
17811 case $archive_cmds_GCJ in
17812 *'~'*)
17813 # FIXME: we may have to deal with multi-command sequences.
17815 '$CC '*)
17816 # Test whether the compiler implicitly links with -lc since on some
17817 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17818 # to ld, don't add -lc before -lgcc.
17819 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17820 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17821 $rm conftest*
17822 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17825 (eval $ac_compile) 2>&5
17826 ac_status=$?
17827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828 (exit $ac_status); } 2>conftest.err; then
17829 soname=conftest
17830 lib=conftest
17831 libobjs=conftest.$ac_objext
17832 deplibs=
17833 wl=$lt_prog_compiler_wl_GCJ
17834 pic_flag=$lt_prog_compiler_pic_GCJ
17835 compiler_flags=-v
17836 linker_flags=-v
17837 verstring=
17838 output_objdir=.
17839 libname=conftest
17840 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17841 allow_undefined_flag_GCJ=
17842 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17843 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17844 ac_status=$?
17845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846 (exit $ac_status); }
17847 then
17848 archive_cmds_need_lc_GCJ=no
17849 else
17850 archive_cmds_need_lc_GCJ=yes
17852 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17853 else
17854 cat conftest.err 1>&5
17856 $rm conftest*
17857 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17858 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17860 esac
17863 esac
17865 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17866 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17867 library_names_spec=
17868 libname_spec='lib$name'
17869 soname_spec=
17870 shrext_cmds=".so"
17871 postinstall_cmds=
17872 postuninstall_cmds=
17873 finish_cmds=
17874 finish_eval=
17875 shlibpath_var=
17876 shlibpath_overrides_runpath=unknown
17877 version_type=none
17878 dynamic_linker="$host_os ld.so"
17879 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17881 need_lib_prefix=unknown
17882 hardcode_into_libs=no
17884 # when you set need_version to no, make sure it does not cause -set_version
17885 # flags to be left without arguments
17886 need_version=unknown
17888 case $host_os in
17889 aix3*)
17890 version_type=linux
17891 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17892 shlibpath_var=LIBPATH
17894 # AIX 3 has no versioning support, so we append a major version to the name.
17895 soname_spec='${libname}${release}${shared_ext}$major'
17898 aix4* | aix5*)
17899 version_type=linux
17900 need_lib_prefix=no
17901 need_version=no
17902 hardcode_into_libs=yes
17903 if test "$host_cpu" = ia64; then
17904 # AIX 5 supports IA64
17905 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17906 shlibpath_var=LD_LIBRARY_PATH
17907 else
17908 # With GCC up to 2.95.x, collect2 would create an import file
17909 # for dependence libraries. The import file would start with
17910 # the line `#! .'. This would cause the generated library to
17911 # depend on `.', always an invalid library. This was fixed in
17912 # development snapshots of GCC prior to 3.0.
17913 case $host_os in
17914 aix4 | aix4.[01] | aix4.[01].*)
17915 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17916 echo ' yes '
17917 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17919 else
17920 can_build_shared=no
17923 esac
17924 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17925 # soname into executable. Probably we can add versioning support to
17926 # collect2, so additional links can be useful in future.
17927 if test "$aix_use_runtimelinking" = yes; then
17928 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17929 # instead of lib<name>.a to let people know that these are not
17930 # typical AIX shared libraries.
17931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17932 else
17933 # We preserve .a as extension for shared libraries through AIX4.2
17934 # and later when we are not doing run time linking.
17935 library_names_spec='${libname}${release}.a $libname.a'
17936 soname_spec='${libname}${release}${shared_ext}$major'
17938 shlibpath_var=LIBPATH
17942 amigaos*)
17943 library_names_spec='$libname.ixlibrary $libname.a'
17944 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17945 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'
17948 beos*)
17949 library_names_spec='${libname}${shared_ext}'
17950 dynamic_linker="$host_os ld.so"
17951 shlibpath_var=LIBRARY_PATH
17954 bsdi[45]*)
17955 version_type=linux
17956 need_version=no
17957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17958 soname_spec='${libname}${release}${shared_ext}$major'
17959 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17960 shlibpath_var=LD_LIBRARY_PATH
17961 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17962 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17963 # the default ld.so.conf also contains /usr/contrib/lib and
17964 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17965 # libtool to hard-code these into programs
17968 cygwin* | mingw* | pw32*)
17969 version_type=windows
17970 shrext_cmds=".dll"
17971 need_version=no
17972 need_lib_prefix=no
17974 case $GCC,$host_os in
17975 yes,cygwin* | yes,mingw* | yes,pw32*)
17976 library_names_spec='$libname.dll.a'
17977 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17978 postinstall_cmds='base_file=`basename \${file}`~
17979 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17980 dldir=$destdir/`dirname \$dlpath`~
17981 test -d \$dldir || mkdir -p \$dldir~
17982 $install_prog $dir/$dlname \$dldir/$dlname~
17983 chmod a+x \$dldir/$dlname'
17984 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17985 dlpath=$dir/\$dldll~
17986 $rm \$dlpath'
17987 shlibpath_overrides_runpath=yes
17989 case $host_os in
17990 cygwin*)
17991 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17992 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17993 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17995 mingw*)
17996 # MinGW DLLs use traditional 'lib' prefix
17997 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17998 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17999 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18000 # It is most probably a Windows format PATH printed by
18001 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18002 # path with ; separators, and with drive letters. We can handle the
18003 # drive letters (cygwin fileutils understands them), so leave them,
18004 # especially as we might pass files found there to a mingw objdump,
18005 # which wouldn't understand a cygwinified path. Ahh.
18006 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18007 else
18008 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18011 pw32*)
18012 # pw32 DLLs use 'pw' prefix rather than 'lib'
18013 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18015 esac
18019 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18021 esac
18022 dynamic_linker='Win32 ld.exe'
18023 # FIXME: first we should search . and the directory the executable is in
18024 shlibpath_var=PATH
18027 darwin* | rhapsody*)
18028 dynamic_linker="$host_os dyld"
18029 version_type=darwin
18030 need_lib_prefix=no
18031 need_version=no
18032 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18033 soname_spec='${libname}${release}${major}$shared_ext'
18034 shlibpath_overrides_runpath=yes
18035 shlibpath_var=DYLD_LIBRARY_PATH
18036 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18038 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18041 dgux*)
18042 version_type=linux
18043 need_lib_prefix=no
18044 need_version=no
18045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18046 soname_spec='${libname}${release}${shared_ext}$major'
18047 shlibpath_var=LD_LIBRARY_PATH
18050 freebsd1*)
18051 dynamic_linker=no
18054 freebsd* | dragonfly*)
18055 # DragonFly does not have aout. When/if they implement a new
18056 # versioning mechanism, adjust this.
18057 if test -x /usr/bin/objformat; then
18058 objformat=`/usr/bin/objformat`
18059 else
18060 case $host_os in
18061 freebsd[123]*) objformat=aout ;;
18062 *) objformat=elf ;;
18063 esac
18065 version_type=freebsd-$objformat
18066 case $version_type in
18067 freebsd-elf*)
18068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18069 need_version=no
18070 need_lib_prefix=no
18072 freebsd-*)
18073 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18074 need_version=yes
18076 esac
18077 shlibpath_var=LD_LIBRARY_PATH
18078 case $host_os in
18079 freebsd2*)
18080 shlibpath_overrides_runpath=yes
18082 freebsd3.[01]* | freebsdelf3.[01]*)
18083 shlibpath_overrides_runpath=yes
18084 hardcode_into_libs=yes
18086 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18087 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18088 shlibpath_overrides_runpath=no
18089 hardcode_into_libs=yes
18091 *) # from 4.6 on, and DragonFly
18092 shlibpath_overrides_runpath=yes
18093 hardcode_into_libs=yes
18095 esac
18098 gnu*)
18099 version_type=linux
18100 need_lib_prefix=no
18101 need_version=no
18102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18103 soname_spec='${libname}${release}${shared_ext}$major'
18104 shlibpath_var=LD_LIBRARY_PATH
18105 hardcode_into_libs=yes
18108 hpux9* | hpux10* | hpux11*)
18109 # Give a soname corresponding to the major version so that dld.sl refuses to
18110 # link against other versions.
18111 version_type=sunos
18112 need_lib_prefix=no
18113 need_version=no
18114 case $host_cpu in
18115 ia64*)
18116 shrext_cmds='.so'
18117 hardcode_into_libs=yes
18118 dynamic_linker="$host_os dld.so"
18119 shlibpath_var=LD_LIBRARY_PATH
18120 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18122 soname_spec='${libname}${release}${shared_ext}$major'
18123 if test "X$HPUX_IA64_MODE" = X32; then
18124 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18125 else
18126 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18128 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18130 hppa*64*)
18131 shrext_cmds='.sl'
18132 hardcode_into_libs=yes
18133 dynamic_linker="$host_os dld.sl"
18134 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18135 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18137 soname_spec='${libname}${release}${shared_ext}$major'
18138 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18139 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18142 shrext_cmds='.sl'
18143 dynamic_linker="$host_os dld.sl"
18144 shlibpath_var=SHLIB_PATH
18145 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18147 soname_spec='${libname}${release}${shared_ext}$major'
18149 esac
18150 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18151 postinstall_cmds='chmod 555 $lib'
18154 interix[3-9]*)
18155 version_type=linux
18156 need_lib_prefix=no
18157 need_version=no
18158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18159 soname_spec='${libname}${release}${shared_ext}$major'
18160 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18161 shlibpath_var=LD_LIBRARY_PATH
18162 shlibpath_overrides_runpath=no
18163 hardcode_into_libs=yes
18166 irix5* | irix6* | nonstopux*)
18167 case $host_os in
18168 nonstopux*) version_type=nonstopux ;;
18170 if test "$lt_cv_prog_gnu_ld" = yes; then
18171 version_type=linux
18172 else
18173 version_type=irix
18174 fi ;;
18175 esac
18176 need_lib_prefix=no
18177 need_version=no
18178 soname_spec='${libname}${release}${shared_ext}$major'
18179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18180 case $host_os in
18181 irix5* | nonstopux*)
18182 libsuff= shlibsuff=
18185 case $LD in # libtool.m4 will add one of these switches to LD
18186 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18187 libsuff= shlibsuff= libmagic=32-bit;;
18188 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18189 libsuff=32 shlibsuff=N32 libmagic=N32;;
18190 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18191 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18192 *) libsuff= shlibsuff= libmagic=never-match;;
18193 esac
18195 esac
18196 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18197 shlibpath_overrides_runpath=no
18198 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18199 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18200 hardcode_into_libs=yes
18203 # No shared lib support for Linux oldld, aout, or coff.
18204 linux*oldld* | linux*aout* | linux*coff*)
18205 dynamic_linker=no
18208 # This must be Linux ELF.
18209 linux* | k*bsd*-gnu)
18210 version_type=linux
18211 need_lib_prefix=no
18212 need_version=no
18213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18214 soname_spec='${libname}${release}${shared_ext}$major'
18215 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18216 shlibpath_var=LD_LIBRARY_PATH
18217 shlibpath_overrides_runpath=no
18218 # This implies no fast_install, which is unacceptable.
18219 # Some rework will be needed to allow for fast_install
18220 # before this can be enabled.
18221 hardcode_into_libs=yes
18223 # Append ld.so.conf contents to the search path
18224 if test -f /etc/ld.so.conf; then
18225 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18226 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18229 # We used to test for /lib/ld.so.1 and disable shared libraries on
18230 # powerpc, because MkLinux only supported shared libraries with the
18231 # GNU dynamic linker. Since this was broken with cross compilers,
18232 # most powerpc-linux boxes support dynamic linking these days and
18233 # people can always --disable-shared, the test was removed, and we
18234 # assume the GNU/Linux dynamic linker is in use.
18235 dynamic_linker='GNU/Linux ld.so'
18238 netbsd*)
18239 version_type=sunos
18240 need_lib_prefix=no
18241 need_version=no
18242 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18244 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18245 dynamic_linker='NetBSD (a.out) ld.so'
18246 else
18247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18248 soname_spec='${libname}${release}${shared_ext}$major'
18249 dynamic_linker='NetBSD ld.elf_so'
18251 shlibpath_var=LD_LIBRARY_PATH
18252 shlibpath_overrides_runpath=yes
18253 hardcode_into_libs=yes
18256 newsos6)
18257 version_type=linux
18258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18259 shlibpath_var=LD_LIBRARY_PATH
18260 shlibpath_overrides_runpath=yes
18263 nto-qnx*)
18264 version_type=linux
18265 need_lib_prefix=no
18266 need_version=no
18267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18268 soname_spec='${libname}${release}${shared_ext}$major'
18269 shlibpath_var=LD_LIBRARY_PATH
18270 shlibpath_overrides_runpath=yes
18273 openbsd*)
18274 version_type=sunos
18275 sys_lib_dlsearch_path_spec="/usr/lib"
18276 need_lib_prefix=no
18277 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18278 case $host_os in
18279 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18280 *) need_version=no ;;
18281 esac
18282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18283 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18284 shlibpath_var=LD_LIBRARY_PATH
18285 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18286 case $host_os in
18287 openbsd2.[89] | openbsd2.[89].*)
18288 shlibpath_overrides_runpath=no
18291 shlibpath_overrides_runpath=yes
18293 esac
18294 else
18295 shlibpath_overrides_runpath=yes
18299 os2*)
18300 libname_spec='$name'
18301 shrext_cmds=".dll"
18302 need_lib_prefix=no
18303 library_names_spec='$libname${shared_ext} $libname.a'
18304 dynamic_linker='OS/2 ld.exe'
18305 shlibpath_var=LIBPATH
18308 osf3* | osf4* | osf5*)
18309 version_type=osf
18310 need_lib_prefix=no
18311 need_version=no
18312 soname_spec='${libname}${release}${shared_ext}$major'
18313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18314 shlibpath_var=LD_LIBRARY_PATH
18315 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18316 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18319 rdos*)
18320 dynamic_linker=no
18323 solaris*)
18324 version_type=linux
18325 need_lib_prefix=no
18326 need_version=no
18327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18328 soname_spec='${libname}${release}${shared_ext}$major'
18329 shlibpath_var=LD_LIBRARY_PATH
18330 shlibpath_overrides_runpath=yes
18331 hardcode_into_libs=yes
18332 # ldd complains unless libraries are executable
18333 postinstall_cmds='chmod +x $lib'
18336 sunos4*)
18337 version_type=sunos
18338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18339 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18340 shlibpath_var=LD_LIBRARY_PATH
18341 shlibpath_overrides_runpath=yes
18342 if test "$with_gnu_ld" = yes; then
18343 need_lib_prefix=no
18345 need_version=yes
18348 sysv4 | sysv4.3*)
18349 version_type=linux
18350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18351 soname_spec='${libname}${release}${shared_ext}$major'
18352 shlibpath_var=LD_LIBRARY_PATH
18353 case $host_vendor in
18354 sni)
18355 shlibpath_overrides_runpath=no
18356 need_lib_prefix=no
18357 export_dynamic_flag_spec='${wl}-Blargedynsym'
18358 runpath_var=LD_RUN_PATH
18360 siemens)
18361 need_lib_prefix=no
18363 motorola)
18364 need_lib_prefix=no
18365 need_version=no
18366 shlibpath_overrides_runpath=no
18367 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18369 esac
18372 sysv4*MP*)
18373 if test -d /usr/nec ;then
18374 version_type=linux
18375 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18376 soname_spec='$libname${shared_ext}.$major'
18377 shlibpath_var=LD_LIBRARY_PATH
18381 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18382 version_type=freebsd-elf
18383 need_lib_prefix=no
18384 need_version=no
18385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18386 soname_spec='${libname}${release}${shared_ext}$major'
18387 shlibpath_var=LD_LIBRARY_PATH
18388 hardcode_into_libs=yes
18389 if test "$with_gnu_ld" = yes; then
18390 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18391 shlibpath_overrides_runpath=no
18392 else
18393 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18394 shlibpath_overrides_runpath=yes
18395 case $host_os in
18396 sco3.2v5*)
18397 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18399 esac
18401 sys_lib_dlsearch_path_spec='/usr/lib'
18404 uts4*)
18405 version_type=linux
18406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18407 soname_spec='${libname}${release}${shared_ext}$major'
18408 shlibpath_var=LD_LIBRARY_PATH
18412 dynamic_linker=no
18414 esac
18415 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18416 echo "${ECHO_T}$dynamic_linker" >&6
18417 test "$dynamic_linker" = no && can_build_shared=no
18419 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18420 if test "$GCC" = yes; then
18421 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18424 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18425 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18426 hardcode_action_GCJ=
18427 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18428 test -n "$runpath_var_GCJ" || \
18429 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18431 # We can hardcode non-existant directories.
18432 if test "$hardcode_direct_GCJ" != no &&
18433 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18434 # have to relink, otherwise we might link with an installed library
18435 # when we should be linking with a yet-to-be-installed one
18436 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18437 test "$hardcode_minus_L_GCJ" != no; then
18438 # Linking always hardcodes the temporary library directory.
18439 hardcode_action_GCJ=relink
18440 else
18441 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18442 hardcode_action_GCJ=immediate
18444 else
18445 # We cannot hardcode anything, or else we can only hardcode existing
18446 # directories.
18447 hardcode_action_GCJ=unsupported
18449 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18450 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18452 if test "$hardcode_action_GCJ" = relink; then
18453 # Fast installation is not supported
18454 enable_fast_install=no
18455 elif test "$shlibpath_overrides_runpath" = yes ||
18456 test "$enable_shared" = no; then
18457 # Fast installation is not necessary
18458 enable_fast_install=needless
18462 # The else clause should only fire when bootstrapping the
18463 # libtool distribution, otherwise you forgot to ship ltmain.sh
18464 # with your package, and you will get complaints that there are
18465 # no rules to generate ltmain.sh.
18466 if test -f "$ltmain"; then
18467 # See if we are running on zsh, and set the options which allow our commands through
18468 # without removal of \ escapes.
18469 if test -n "${ZSH_VERSION+set}" ; then
18470 setopt NO_GLOB_SUBST
18472 # Now quote all the things that may contain metacharacters while being
18473 # careful not to overquote the AC_SUBSTed values. We take copies of the
18474 # variables and quote the copies for generation of the libtool script.
18475 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18476 SED SHELL STRIP \
18477 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18478 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18479 deplibs_check_method reload_flag reload_cmds need_locks \
18480 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18481 lt_cv_sys_global_symbol_to_c_name_address \
18482 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18483 old_postinstall_cmds old_postuninstall_cmds \
18484 compiler_GCJ \
18485 CC_GCJ \
18486 LD_GCJ \
18487 lt_prog_compiler_wl_GCJ \
18488 lt_prog_compiler_pic_GCJ \
18489 lt_prog_compiler_static_GCJ \
18490 lt_prog_compiler_no_builtin_flag_GCJ \
18491 export_dynamic_flag_spec_GCJ \
18492 thread_safe_flag_spec_GCJ \
18493 whole_archive_flag_spec_GCJ \
18494 enable_shared_with_static_runtimes_GCJ \
18495 old_archive_cmds_GCJ \
18496 old_archive_from_new_cmds_GCJ \
18497 predep_objects_GCJ \
18498 postdep_objects_GCJ \
18499 predeps_GCJ \
18500 postdeps_GCJ \
18501 compiler_lib_search_path_GCJ \
18502 archive_cmds_GCJ \
18503 archive_expsym_cmds_GCJ \
18504 postinstall_cmds_GCJ \
18505 postuninstall_cmds_GCJ \
18506 old_archive_from_expsyms_cmds_GCJ \
18507 allow_undefined_flag_GCJ \
18508 no_undefined_flag_GCJ \
18509 export_symbols_cmds_GCJ \
18510 hardcode_libdir_flag_spec_GCJ \
18511 hardcode_libdir_flag_spec_ld_GCJ \
18512 hardcode_libdir_separator_GCJ \
18513 hardcode_automatic_GCJ \
18514 module_cmds_GCJ \
18515 module_expsym_cmds_GCJ \
18516 lt_cv_prog_compiler_c_o_GCJ \
18517 fix_srcfile_path_GCJ \
18518 exclude_expsyms_GCJ \
18519 include_expsyms_GCJ; do
18521 case $var in
18522 old_archive_cmds_GCJ | \
18523 old_archive_from_new_cmds_GCJ | \
18524 archive_cmds_GCJ | \
18525 archive_expsym_cmds_GCJ | \
18526 module_cmds_GCJ | \
18527 module_expsym_cmds_GCJ | \
18528 old_archive_from_expsyms_cmds_GCJ | \
18529 export_symbols_cmds_GCJ | \
18530 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18531 postinstall_cmds | postuninstall_cmds | \
18532 old_postinstall_cmds | old_postuninstall_cmds | \
18533 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18534 # Double-quote double-evaled strings.
18535 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18538 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18540 esac
18541 done
18543 case $lt_echo in
18544 *'\$0 --fallback-echo"')
18545 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18547 esac
18549 cfgfile="$ofile"
18551 cat <<__EOF__ >> "$cfgfile"
18552 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18554 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18556 # Shell to use when invoking shell scripts.
18557 SHELL=$lt_SHELL
18559 # Whether or not to build shared libraries.
18560 build_libtool_libs=$enable_shared
18562 # Whether or not to build static libraries.
18563 build_old_libs=$enable_static
18565 # Whether or not to add -lc for building shared libraries.
18566 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18568 # Whether or not to disallow shared libs when runtime libs are static
18569 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18571 # Whether or not to optimize for fast installation.
18572 fast_install=$enable_fast_install
18574 # The host system.
18575 host_alias=$host_alias
18576 host=$host
18577 host_os=$host_os
18579 # The build system.
18580 build_alias=$build_alias
18581 build=$build
18582 build_os=$build_os
18584 # An echo program that does not interpret backslashes.
18585 echo=$lt_echo
18587 # The archiver.
18588 AR=$lt_AR
18589 AR_FLAGS=$lt_AR_FLAGS
18591 # A C compiler.
18592 LTCC=$lt_LTCC
18594 # LTCC compiler flags.
18595 LTCFLAGS=$lt_LTCFLAGS
18597 # A language-specific compiler.
18598 CC=$lt_compiler_GCJ
18600 # Is the compiler the GNU C compiler?
18601 with_gcc=$GCC_GCJ
18603 # An ERE matcher.
18604 EGREP=$lt_EGREP
18606 # The linker used to build libraries.
18607 LD=$lt_LD_GCJ
18609 # Whether we need hard or soft links.
18610 LN_S=$lt_LN_S
18612 # A BSD-compatible nm program.
18613 NM=$lt_NM
18615 # A symbol stripping program
18616 STRIP=$lt_STRIP
18618 # Used to examine libraries when file_magic_cmd begins "file"
18619 MAGIC_CMD=$MAGIC_CMD
18621 # Used on cygwin: DLL creation program.
18622 DLLTOOL="$DLLTOOL"
18624 # Used on cygwin: object dumper.
18625 OBJDUMP="$OBJDUMP"
18627 # Used on cygwin: assembler.
18628 AS="$AS"
18630 # The name of the directory that contains temporary libtool files.
18631 objdir=$objdir
18633 # How to create reloadable object files.
18634 reload_flag=$lt_reload_flag
18635 reload_cmds=$lt_reload_cmds
18637 # How to pass a linker flag through the compiler.
18638 wl=$lt_lt_prog_compiler_wl_GCJ
18640 # Object file suffix (normally "o").
18641 objext="$ac_objext"
18643 # Old archive suffix (normally "a").
18644 libext="$libext"
18646 # Shared library suffix (normally ".so").
18647 shrext_cmds='$shrext_cmds'
18649 # Executable file suffix (normally "").
18650 exeext="$exeext"
18652 # Additional compiler flags for building library objects.
18653 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18654 pic_mode=$pic_mode
18656 # What is the maximum length of a command?
18657 max_cmd_len=$lt_cv_sys_max_cmd_len
18659 # Does compiler simultaneously support -c and -o options?
18660 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18662 # Must we lock files when doing compilation?
18663 need_locks=$lt_need_locks
18665 # Do we need the lib prefix for modules?
18666 need_lib_prefix=$need_lib_prefix
18668 # Do we need a version for libraries?
18669 need_version=$need_version
18671 # Whether dlopen is supported.
18672 dlopen_support=$enable_dlopen
18674 # Whether dlopen of programs is supported.
18675 dlopen_self=$enable_dlopen_self
18677 # Whether dlopen of statically linked programs is supported.
18678 dlopen_self_static=$enable_dlopen_self_static
18680 # Compiler flag to prevent dynamic linking.
18681 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18683 # Compiler flag to turn off builtin functions.
18684 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18686 # Compiler flag to allow reflexive dlopens.
18687 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18689 # Compiler flag to generate shared objects directly from archives.
18690 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18692 # Compiler flag to generate thread-safe objects.
18693 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18695 # Library versioning type.
18696 version_type=$version_type
18698 # Format of library name prefix.
18699 libname_spec=$lt_libname_spec
18701 # List of archive names. First name is the real one, the rest are links.
18702 # The last name is the one that the linker finds with -lNAME.
18703 library_names_spec=$lt_library_names_spec
18705 # The coded name of the library, if different from the real name.
18706 soname_spec=$lt_soname_spec
18708 # Commands used to build and install an old-style archive.
18709 RANLIB=$lt_RANLIB
18710 old_archive_cmds=$lt_old_archive_cmds_GCJ
18711 old_postinstall_cmds=$lt_old_postinstall_cmds
18712 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18714 # Create an old-style archive from a shared archive.
18715 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18717 # Create a temporary old-style archive to link instead of a shared archive.
18718 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18720 # Commands used to build and install a shared archive.
18721 archive_cmds=$lt_archive_cmds_GCJ
18722 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18723 postinstall_cmds=$lt_postinstall_cmds
18724 postuninstall_cmds=$lt_postuninstall_cmds
18726 # Commands used to build a loadable module (assumed same as above if empty)
18727 module_cmds=$lt_module_cmds_GCJ
18728 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18730 # Commands to strip libraries.
18731 old_striplib=$lt_old_striplib
18732 striplib=$lt_striplib
18734 # Dependencies to place before the objects being linked to create a
18735 # shared library.
18736 predep_objects=$lt_predep_objects_GCJ
18738 # Dependencies to place after the objects being linked to create a
18739 # shared library.
18740 postdep_objects=$lt_postdep_objects_GCJ
18742 # Dependencies to place before the objects being linked to create a
18743 # shared library.
18744 predeps=$lt_predeps_GCJ
18746 # Dependencies to place after the objects being linked to create a
18747 # shared library.
18748 postdeps=$lt_postdeps_GCJ
18750 # The library search path used internally by the compiler when linking
18751 # a shared library.
18752 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18754 # Method to check whether dependent libraries are shared objects.
18755 deplibs_check_method=$lt_deplibs_check_method
18757 # Command to use when deplibs_check_method == file_magic.
18758 file_magic_cmd=$lt_file_magic_cmd
18760 # Flag that allows shared libraries with undefined symbols to be built.
18761 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18763 # Flag that forces no undefined symbols.
18764 no_undefined_flag=$lt_no_undefined_flag_GCJ
18766 # Commands used to finish a libtool library installation in a directory.
18767 finish_cmds=$lt_finish_cmds
18769 # Same as above, but a single script fragment to be evaled but not shown.
18770 finish_eval=$lt_finish_eval
18772 # Take the output of nm and produce a listing of raw symbols and C names.
18773 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18775 # Transform the output of nm in a proper C declaration
18776 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18778 # Transform the output of nm in a C name address pair
18779 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18781 # This is the shared library runtime path variable.
18782 runpath_var=$runpath_var
18784 # This is the shared library path variable.
18785 shlibpath_var=$shlibpath_var
18787 # Is shlibpath searched before the hard-coded library search path?
18788 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18790 # How to hardcode a shared library path into an executable.
18791 hardcode_action=$hardcode_action_GCJ
18793 # Whether we should hardcode library paths into libraries.
18794 hardcode_into_libs=$hardcode_into_libs
18796 # Flag to hardcode \$libdir into a binary during linking.
18797 # This must work even if \$libdir does not exist.
18798 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18800 # If ld is used when linking, flag to hardcode \$libdir into
18801 # a binary during linking. This must work even if \$libdir does
18802 # not exist.
18803 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18805 # Whether we need a single -rpath flag with a separated argument.
18806 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18808 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18809 # resulting binary.
18810 hardcode_direct=$hardcode_direct_GCJ
18812 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18813 # resulting binary.
18814 hardcode_minus_L=$hardcode_minus_L_GCJ
18816 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18817 # the resulting binary.
18818 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18820 # Set to yes if building a shared library automatically hardcodes DIR into the library
18821 # and all subsequent libraries and executables linked against it.
18822 hardcode_automatic=$hardcode_automatic_GCJ
18824 # Variables whose values should be saved in libtool wrapper scripts and
18825 # restored at relink time.
18826 variables_saved_for_relink="$variables_saved_for_relink"
18828 # Whether libtool must link a program against all its dependency libraries.
18829 link_all_deplibs=$link_all_deplibs_GCJ
18831 # Compile-time system search path for libraries
18832 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18834 # Run-time system search path for libraries
18835 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18837 # Fix the shell variable \$srcfile for the compiler.
18838 fix_srcfile_path=$lt_fix_srcfile_path
18840 # Set to yes if exported symbols are required.
18841 always_export_symbols=$always_export_symbols_GCJ
18843 # The commands to list exported symbols.
18844 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18846 # The commands to extract the exported symbol list from a shared archive.
18847 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18849 # Symbols that should not be listed in the preloaded symbols.
18850 exclude_expsyms=$lt_exclude_expsyms_GCJ
18852 # Symbols that must always be exported.
18853 include_expsyms=$lt_include_expsyms_GCJ
18855 # ### END LIBTOOL TAG CONFIG: $tagname
18857 __EOF__
18860 else
18861 # If there is no Makefile yet, we rely on a make rule to execute
18862 # `config.status --recheck' to rerun these tests and create the
18863 # libtool script then.
18864 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18865 if test -f "$ltmain_in"; then
18866 test -f Makefile && make "$ltmain"
18871 ac_ext=c
18872 ac_cpp='$CPP $CPPFLAGS'
18873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18877 CC="$lt_save_CC"
18879 else
18880 tagname=""
18888 # Source file extension for RC test sources.
18889 ac_ext=rc
18891 # Object file extension for compiled RC test sources.
18892 objext=o
18893 objext_RC=$objext
18895 # Code to be used in simple compile tests
18896 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18898 # Code to be used in simple link tests
18899 lt_simple_link_test_code="$lt_simple_compile_test_code"
18901 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18903 # If no C compiler was specified, use CC.
18904 LTCC=${LTCC-"$CC"}
18906 # If no C compiler flags were specified, use CFLAGS.
18907 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18909 # Allow CC to be a program name with arguments.
18910 compiler=$CC
18913 # save warnings/boilerplate of simple test code
18914 ac_outfile=conftest.$ac_objext
18915 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18916 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18917 _lt_compiler_boilerplate=`cat conftest.err`
18918 $rm conftest*
18920 ac_outfile=conftest.$ac_objext
18921 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18922 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18923 _lt_linker_boilerplate=`cat conftest.err`
18924 $rm conftest*
18927 # Allow CC to be a program name with arguments.
18928 lt_save_CC="$CC"
18929 CC=${RC-"windres"}
18930 compiler=$CC
18931 compiler_RC=$CC
18932 for cc_temp in $compiler""; do
18933 case $cc_temp in
18934 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18935 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18936 \-*) ;;
18937 *) break;;
18938 esac
18939 done
18940 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18942 lt_cv_prog_compiler_c_o_RC=yes
18944 # The else clause should only fire when bootstrapping the
18945 # libtool distribution, otherwise you forgot to ship ltmain.sh
18946 # with your package, and you will get complaints that there are
18947 # no rules to generate ltmain.sh.
18948 if test -f "$ltmain"; then
18949 # See if we are running on zsh, and set the options which allow our commands through
18950 # without removal of \ escapes.
18951 if test -n "${ZSH_VERSION+set}" ; then
18952 setopt NO_GLOB_SUBST
18954 # Now quote all the things that may contain metacharacters while being
18955 # careful not to overquote the AC_SUBSTed values. We take copies of the
18956 # variables and quote the copies for generation of the libtool script.
18957 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18958 SED SHELL STRIP \
18959 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18960 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18961 deplibs_check_method reload_flag reload_cmds need_locks \
18962 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18963 lt_cv_sys_global_symbol_to_c_name_address \
18964 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18965 old_postinstall_cmds old_postuninstall_cmds \
18966 compiler_RC \
18967 CC_RC \
18968 LD_RC \
18969 lt_prog_compiler_wl_RC \
18970 lt_prog_compiler_pic_RC \
18971 lt_prog_compiler_static_RC \
18972 lt_prog_compiler_no_builtin_flag_RC \
18973 export_dynamic_flag_spec_RC \
18974 thread_safe_flag_spec_RC \
18975 whole_archive_flag_spec_RC \
18976 enable_shared_with_static_runtimes_RC \
18977 old_archive_cmds_RC \
18978 old_archive_from_new_cmds_RC \
18979 predep_objects_RC \
18980 postdep_objects_RC \
18981 predeps_RC \
18982 postdeps_RC \
18983 compiler_lib_search_path_RC \
18984 archive_cmds_RC \
18985 archive_expsym_cmds_RC \
18986 postinstall_cmds_RC \
18987 postuninstall_cmds_RC \
18988 old_archive_from_expsyms_cmds_RC \
18989 allow_undefined_flag_RC \
18990 no_undefined_flag_RC \
18991 export_symbols_cmds_RC \
18992 hardcode_libdir_flag_spec_RC \
18993 hardcode_libdir_flag_spec_ld_RC \
18994 hardcode_libdir_separator_RC \
18995 hardcode_automatic_RC \
18996 module_cmds_RC \
18997 module_expsym_cmds_RC \
18998 lt_cv_prog_compiler_c_o_RC \
18999 fix_srcfile_path_RC \
19000 exclude_expsyms_RC \
19001 include_expsyms_RC; do
19003 case $var in
19004 old_archive_cmds_RC | \
19005 old_archive_from_new_cmds_RC | \
19006 archive_cmds_RC | \
19007 archive_expsym_cmds_RC | \
19008 module_cmds_RC | \
19009 module_expsym_cmds_RC | \
19010 old_archive_from_expsyms_cmds_RC | \
19011 export_symbols_cmds_RC | \
19012 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19013 postinstall_cmds | postuninstall_cmds | \
19014 old_postinstall_cmds | old_postuninstall_cmds | \
19015 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19016 # Double-quote double-evaled strings.
19017 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19020 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19022 esac
19023 done
19025 case $lt_echo in
19026 *'\$0 --fallback-echo"')
19027 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19029 esac
19031 cfgfile="$ofile"
19033 cat <<__EOF__ >> "$cfgfile"
19034 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19036 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19038 # Shell to use when invoking shell scripts.
19039 SHELL=$lt_SHELL
19041 # Whether or not to build shared libraries.
19042 build_libtool_libs=$enable_shared
19044 # Whether or not to build static libraries.
19045 build_old_libs=$enable_static
19047 # Whether or not to add -lc for building shared libraries.
19048 build_libtool_need_lc=$archive_cmds_need_lc_RC
19050 # Whether or not to disallow shared libs when runtime libs are static
19051 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19053 # Whether or not to optimize for fast installation.
19054 fast_install=$enable_fast_install
19056 # The host system.
19057 host_alias=$host_alias
19058 host=$host
19059 host_os=$host_os
19061 # The build system.
19062 build_alias=$build_alias
19063 build=$build
19064 build_os=$build_os
19066 # An echo program that does not interpret backslashes.
19067 echo=$lt_echo
19069 # The archiver.
19070 AR=$lt_AR
19071 AR_FLAGS=$lt_AR_FLAGS
19073 # A C compiler.
19074 LTCC=$lt_LTCC
19076 # LTCC compiler flags.
19077 LTCFLAGS=$lt_LTCFLAGS
19079 # A language-specific compiler.
19080 CC=$lt_compiler_RC
19082 # Is the compiler the GNU C compiler?
19083 with_gcc=$GCC_RC
19085 # An ERE matcher.
19086 EGREP=$lt_EGREP
19088 # The linker used to build libraries.
19089 LD=$lt_LD_RC
19091 # Whether we need hard or soft links.
19092 LN_S=$lt_LN_S
19094 # A BSD-compatible nm program.
19095 NM=$lt_NM
19097 # A symbol stripping program
19098 STRIP=$lt_STRIP
19100 # Used to examine libraries when file_magic_cmd begins "file"
19101 MAGIC_CMD=$MAGIC_CMD
19103 # Used on cygwin: DLL creation program.
19104 DLLTOOL="$DLLTOOL"
19106 # Used on cygwin: object dumper.
19107 OBJDUMP="$OBJDUMP"
19109 # Used on cygwin: assembler.
19110 AS="$AS"
19112 # The name of the directory that contains temporary libtool files.
19113 objdir=$objdir
19115 # How to create reloadable object files.
19116 reload_flag=$lt_reload_flag
19117 reload_cmds=$lt_reload_cmds
19119 # How to pass a linker flag through the compiler.
19120 wl=$lt_lt_prog_compiler_wl_RC
19122 # Object file suffix (normally "o").
19123 objext="$ac_objext"
19125 # Old archive suffix (normally "a").
19126 libext="$libext"
19128 # Shared library suffix (normally ".so").
19129 shrext_cmds='$shrext_cmds'
19131 # Executable file suffix (normally "").
19132 exeext="$exeext"
19134 # Additional compiler flags for building library objects.
19135 pic_flag=$lt_lt_prog_compiler_pic_RC
19136 pic_mode=$pic_mode
19138 # What is the maximum length of a command?
19139 max_cmd_len=$lt_cv_sys_max_cmd_len
19141 # Does compiler simultaneously support -c and -o options?
19142 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19144 # Must we lock files when doing compilation?
19145 need_locks=$lt_need_locks
19147 # Do we need the lib prefix for modules?
19148 need_lib_prefix=$need_lib_prefix
19150 # Do we need a version for libraries?
19151 need_version=$need_version
19153 # Whether dlopen is supported.
19154 dlopen_support=$enable_dlopen
19156 # Whether dlopen of programs is supported.
19157 dlopen_self=$enable_dlopen_self
19159 # Whether dlopen of statically linked programs is supported.
19160 dlopen_self_static=$enable_dlopen_self_static
19162 # Compiler flag to prevent dynamic linking.
19163 link_static_flag=$lt_lt_prog_compiler_static_RC
19165 # Compiler flag to turn off builtin functions.
19166 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19168 # Compiler flag to allow reflexive dlopens.
19169 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19171 # Compiler flag to generate shared objects directly from archives.
19172 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19174 # Compiler flag to generate thread-safe objects.
19175 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19177 # Library versioning type.
19178 version_type=$version_type
19180 # Format of library name prefix.
19181 libname_spec=$lt_libname_spec
19183 # List of archive names. First name is the real one, the rest are links.
19184 # The last name is the one that the linker finds with -lNAME.
19185 library_names_spec=$lt_library_names_spec
19187 # The coded name of the library, if different from the real name.
19188 soname_spec=$lt_soname_spec
19190 # Commands used to build and install an old-style archive.
19191 RANLIB=$lt_RANLIB
19192 old_archive_cmds=$lt_old_archive_cmds_RC
19193 old_postinstall_cmds=$lt_old_postinstall_cmds
19194 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19196 # Create an old-style archive from a shared archive.
19197 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19199 # Create a temporary old-style archive to link instead of a shared archive.
19200 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19202 # Commands used to build and install a shared archive.
19203 archive_cmds=$lt_archive_cmds_RC
19204 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19205 postinstall_cmds=$lt_postinstall_cmds
19206 postuninstall_cmds=$lt_postuninstall_cmds
19208 # Commands used to build a loadable module (assumed same as above if empty)
19209 module_cmds=$lt_module_cmds_RC
19210 module_expsym_cmds=$lt_module_expsym_cmds_RC
19212 # Commands to strip libraries.
19213 old_striplib=$lt_old_striplib
19214 striplib=$lt_striplib
19216 # Dependencies to place before the objects being linked to create a
19217 # shared library.
19218 predep_objects=$lt_predep_objects_RC
19220 # Dependencies to place after the objects being linked to create a
19221 # shared library.
19222 postdep_objects=$lt_postdep_objects_RC
19224 # Dependencies to place before the objects being linked to create a
19225 # shared library.
19226 predeps=$lt_predeps_RC
19228 # Dependencies to place after the objects being linked to create a
19229 # shared library.
19230 postdeps=$lt_postdeps_RC
19232 # The library search path used internally by the compiler when linking
19233 # a shared library.
19234 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19236 # Method to check whether dependent libraries are shared objects.
19237 deplibs_check_method=$lt_deplibs_check_method
19239 # Command to use when deplibs_check_method == file_magic.
19240 file_magic_cmd=$lt_file_magic_cmd
19242 # Flag that allows shared libraries with undefined symbols to be built.
19243 allow_undefined_flag=$lt_allow_undefined_flag_RC
19245 # Flag that forces no undefined symbols.
19246 no_undefined_flag=$lt_no_undefined_flag_RC
19248 # Commands used to finish a libtool library installation in a directory.
19249 finish_cmds=$lt_finish_cmds
19251 # Same as above, but a single script fragment to be evaled but not shown.
19252 finish_eval=$lt_finish_eval
19254 # Take the output of nm and produce a listing of raw symbols and C names.
19255 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19257 # Transform the output of nm in a proper C declaration
19258 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19260 # Transform the output of nm in a C name address pair
19261 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19263 # This is the shared library runtime path variable.
19264 runpath_var=$runpath_var
19266 # This is the shared library path variable.
19267 shlibpath_var=$shlibpath_var
19269 # Is shlibpath searched before the hard-coded library search path?
19270 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19272 # How to hardcode a shared library path into an executable.
19273 hardcode_action=$hardcode_action_RC
19275 # Whether we should hardcode library paths into libraries.
19276 hardcode_into_libs=$hardcode_into_libs
19278 # Flag to hardcode \$libdir into a binary during linking.
19279 # This must work even if \$libdir does not exist.
19280 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19282 # If ld is used when linking, flag to hardcode \$libdir into
19283 # a binary during linking. This must work even if \$libdir does
19284 # not exist.
19285 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19287 # Whether we need a single -rpath flag with a separated argument.
19288 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19290 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19291 # resulting binary.
19292 hardcode_direct=$hardcode_direct_RC
19294 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19295 # resulting binary.
19296 hardcode_minus_L=$hardcode_minus_L_RC
19298 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19299 # the resulting binary.
19300 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19302 # Set to yes if building a shared library automatically hardcodes DIR into the library
19303 # and all subsequent libraries and executables linked against it.
19304 hardcode_automatic=$hardcode_automatic_RC
19306 # Variables whose values should be saved in libtool wrapper scripts and
19307 # restored at relink time.
19308 variables_saved_for_relink="$variables_saved_for_relink"
19310 # Whether libtool must link a program against all its dependency libraries.
19311 link_all_deplibs=$link_all_deplibs_RC
19313 # Compile-time system search path for libraries
19314 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19316 # Run-time system search path for libraries
19317 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19319 # Fix the shell variable \$srcfile for the compiler.
19320 fix_srcfile_path=$lt_fix_srcfile_path
19322 # Set to yes if exported symbols are required.
19323 always_export_symbols=$always_export_symbols_RC
19325 # The commands to list exported symbols.
19326 export_symbols_cmds=$lt_export_symbols_cmds_RC
19328 # The commands to extract the exported symbol list from a shared archive.
19329 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19331 # Symbols that should not be listed in the preloaded symbols.
19332 exclude_expsyms=$lt_exclude_expsyms_RC
19334 # Symbols that must always be exported.
19335 include_expsyms=$lt_include_expsyms_RC
19337 # ### END LIBTOOL TAG CONFIG: $tagname
19339 __EOF__
19342 else
19343 # If there is no Makefile yet, we rely on a make rule to execute
19344 # `config.status --recheck' to rerun these tests and create the
19345 # libtool script then.
19346 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19347 if test -f "$ltmain_in"; then
19348 test -f Makefile && make "$ltmain"
19353 ac_ext=c
19354 ac_cpp='$CPP $CPPFLAGS'
19355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19359 CC="$lt_save_CC"
19364 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19365 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19366 { (exit 1); exit 1; }; }
19368 esac
19370 # Append the new tag name to the list of available tags.
19371 if test -n "$tagname" ; then
19372 available_tags="$available_tags $tagname"
19375 done
19376 IFS="$lt_save_ifs"
19378 # Now substitute the updated list of available tags.
19379 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19380 mv "${ofile}T" "$ofile"
19381 chmod +x "$ofile"
19382 else
19383 rm -f "${ofile}T"
19384 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19385 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19386 { (exit 1); exit 1; }; }
19392 # This can be used to rebuild libtool when needed
19393 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19395 # Always use our own libtool.
19396 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19398 # Prevent multiple expansion
19420 CXXFLAGS=""
19424 # Handle user hints
19426 echo "$as_me:$LINENO: checking if zlib is wanted" >&5
19427 echo $ECHO_N "checking if zlib is wanted... $ECHO_C" >&6
19429 # Check whether --with-zlib or --without-zlib was given.
19430 if test "${with_zlib+set}" = set; then
19431 withval="$with_zlib"
19432 if test "$withval" != no ; then
19433 echo "$as_me:$LINENO: result: yes" >&5
19434 echo "${ECHO_T}yes" >&6
19435 ZLIB_HOME="$withval"
19436 else
19437 echo "$as_me:$LINENO: result: no" >&5
19438 echo "${ECHO_T}no" >&6
19440 else
19442 echo "$as_me:$LINENO: result: yes" >&5
19443 echo "${ECHO_T}yes" >&6
19444 ZLIB_HOME=/usr/local
19445 if test ! -f "${ZLIB_HOME}/include/zlib.h"
19446 then
19447 ZLIB_HOME=/usr
19453 # Locate zlib, if wanted
19457 if test -n "${ZLIB_HOME}"
19458 then
19459 ZLIB_OLD_LDFLAGS=$LDFLAGS
19460 ZLIB_OLD_LIBS=$LIBS
19461 ZLIB_OLD_CPPFLAGS=$LDFLAGS
19463 LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib"
19464 CPPFLAGS="$CPPFLAGS -I${ZLIB_HOME}/include"
19465 CPPFLAGS="$CPPFLAGS -I${ZLIB_HOME}/include"
19468 ac_ext=c
19469 ac_cpp='$CPP $CPPFLAGS'
19470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19474 echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5
19475 echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6
19476 if test "${ac_cv_lib_z_inflateEnd+set}" = set; then
19477 echo $ECHO_N "(cached) $ECHO_C" >&6
19478 else
19479 ac_check_lib_save_LIBS=$LIBS
19480 LIBS="-lz $LIBS"
19481 cat >conftest.$ac_ext <<_ACEOF
19482 /* confdefs.h. */
19483 _ACEOF
19484 cat confdefs.h >>conftest.$ac_ext
19485 cat >>conftest.$ac_ext <<_ACEOF
19486 /* end confdefs.h. */
19488 /* Override any gcc2 internal prototype to avoid an error. */
19489 #ifdef __cplusplus
19490 extern "C"
19491 #endif
19492 /* We use char because int might match the return type of a gcc2
19493 builtin and then its argument prototype would still apply. */
19494 char inflateEnd ();
19496 main ()
19498 inflateEnd ();
19500 return 0;
19502 _ACEOF
19503 rm -f conftest.$ac_objext conftest$ac_exeext
19504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19505 (eval $ac_link) 2>conftest.er1
19506 ac_status=$?
19507 grep -v '^ *+' conftest.er1 >conftest.err
19508 rm -f conftest.er1
19509 cat conftest.err >&5
19510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511 (exit $ac_status); } &&
19512 { ac_try='test -z "$ac_c_werror_flag"
19513 || test ! -s conftest.err'
19514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19515 (eval $ac_try) 2>&5
19516 ac_status=$?
19517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518 (exit $ac_status); }; } &&
19519 { ac_try='test -s conftest$ac_exeext'
19520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19521 (eval $ac_try) 2>&5
19522 ac_status=$?
19523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524 (exit $ac_status); }; }; then
19525 ac_cv_lib_z_inflateEnd=yes
19526 else
19527 echo "$as_me: failed program was:" >&5
19528 sed 's/^/| /' conftest.$ac_ext >&5
19530 ac_cv_lib_z_inflateEnd=no
19532 rm -f conftest.err conftest.$ac_objext \
19533 conftest$ac_exeext conftest.$ac_ext
19534 LIBS=$ac_check_lib_save_LIBS
19536 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5
19537 echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6
19538 if test $ac_cv_lib_z_inflateEnd = yes; then
19539 zlib_cv_libz=yes
19540 else
19541 zlib_cv_libz=no
19544 if test "${ac_cv_header_zlib_h+set}" = set; then
19545 echo "$as_me:$LINENO: checking for zlib.h" >&5
19546 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
19547 if test "${ac_cv_header_zlib_h+set}" = set; then
19548 echo $ECHO_N "(cached) $ECHO_C" >&6
19550 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19551 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
19552 else
19553 # Is the header compilable?
19554 echo "$as_me:$LINENO: checking zlib.h usability" >&5
19555 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
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
19563 #include <zlib.h>
19564 _ACEOF
19565 rm -f conftest.$ac_objext
19566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19567 (eval $ac_compile) 2>conftest.er1
19568 ac_status=$?
19569 grep -v '^ *+' conftest.er1 >conftest.err
19570 rm -f conftest.er1
19571 cat conftest.err >&5
19572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19573 (exit $ac_status); } &&
19574 { ac_try='test -z "$ac_c_werror_flag"
19575 || test ! -s conftest.err'
19576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19577 (eval $ac_try) 2>&5
19578 ac_status=$?
19579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580 (exit $ac_status); }; } &&
19581 { ac_try='test -s conftest.$ac_objext'
19582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19583 (eval $ac_try) 2>&5
19584 ac_status=$?
19585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586 (exit $ac_status); }; }; then
19587 ac_header_compiler=yes
19588 else
19589 echo "$as_me: failed program was:" >&5
19590 sed 's/^/| /' conftest.$ac_ext >&5
19592 ac_header_compiler=no
19594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19595 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19596 echo "${ECHO_T}$ac_header_compiler" >&6
19598 # Is the header present?
19599 echo "$as_me:$LINENO: checking zlib.h presence" >&5
19600 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
19601 cat >conftest.$ac_ext <<_ACEOF
19602 /* confdefs.h. */
19603 _ACEOF
19604 cat confdefs.h >>conftest.$ac_ext
19605 cat >>conftest.$ac_ext <<_ACEOF
19606 /* end confdefs.h. */
19607 #include <zlib.h>
19608 _ACEOF
19609 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19610 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19611 ac_status=$?
19612 grep -v '^ *+' conftest.er1 >conftest.err
19613 rm -f conftest.er1
19614 cat conftest.err >&5
19615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616 (exit $ac_status); } >/dev/null; then
19617 if test -s conftest.err; then
19618 ac_cpp_err=$ac_c_preproc_warn_flag
19619 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19620 else
19621 ac_cpp_err=
19623 else
19624 ac_cpp_err=yes
19626 if test -z "$ac_cpp_err"; then
19627 ac_header_preproc=yes
19628 else
19629 echo "$as_me: failed program was:" >&5
19630 sed 's/^/| /' conftest.$ac_ext >&5
19632 ac_header_preproc=no
19634 rm -f conftest.err conftest.$ac_ext
19635 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19636 echo "${ECHO_T}$ac_header_preproc" >&6
19638 # So? What about this header?
19639 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19640 yes:no: )
19641 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
19642 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19643 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
19644 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
19645 ac_header_preproc=yes
19647 no:yes:* )
19648 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
19649 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
19650 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
19651 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
19652 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
19653 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
19654 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
19655 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
19656 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
19657 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
19658 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
19659 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
19661 cat <<\_ASBOX
19662 ## ---------------------------- ##
19663 ## Report this to tango@esrf.fr ##
19664 ## ---------------------------- ##
19665 _ASBOX
19667 sed "s/^/$as_me: WARNING: /" >&2
19669 esac
19670 echo "$as_me:$LINENO: checking for zlib.h" >&5
19671 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
19672 if test "${ac_cv_header_zlib_h+set}" = set; then
19673 echo $ECHO_N "(cached) $ECHO_C" >&6
19674 else
19675 ac_cv_header_zlib_h=$ac_header_preproc
19677 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19678 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
19681 if test $ac_cv_header_zlib_h = yes; then
19682 zlib_cv_zlib_h=yes
19683 else
19684 zlib_cv_zlib_h=no
19688 ac_ext=c
19689 ac_cpp='$CPP $CPPFLAGS'
19690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19694 if test "$zlib_cv_libz" = "yes" -a "$zlib_cv_zlib_h" = "yes"
19695 then
19697 # If both library and header were found, use them
19699 # AC_CHECK_LIB(z, inflateEnd)
19700 # AC_MSG_CHECKING(zlib in ${ZLIB_HOME})
19701 # AC_MSG_RESULT(ok)
19702 ZLIB_CPPFLAGS="-I${ZLIB_HOME}/include"
19703 ZLIB_LDFLAGS="-L${ZLIB_HOME}/lib"
19704 ZLIB_LIBS="-lz"
19708 else
19710 # If either header or library was not found, revert and bomb
19712 { { echo "$as_me:$LINENO: error: either specify a valid zlib installation with --with-zlib=DIR or disable zlib usage with --without-zlib" >&5
19713 echo "$as_me: error: either specify a valid zlib installation with --with-zlib=DIR or disable zlib usage with --without-zlib" >&2;}
19714 { (exit 1); exit 1; }; }
19716 LDFLAGS="$ZLIB_OLD_LDFLAGS"
19717 CPPFLAGS="$ZLIB_OLD_CPPFLAGS"
19718 LIBS="$ZLIB_OLD_LIBS"
19725 if test "${ac_cv_header_pthread_h+set}" = set; then
19726 echo "$as_me:$LINENO: checking for pthread.h" >&5
19727 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
19728 if test "${ac_cv_header_pthread_h+set}" = set; then
19729 echo $ECHO_N "(cached) $ECHO_C" >&6
19731 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
19732 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
19733 else
19734 # Is the header compilable?
19735 echo "$as_me:$LINENO: checking pthread.h usability" >&5
19736 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
19737 cat >conftest.$ac_ext <<_ACEOF
19738 /* confdefs.h. */
19739 _ACEOF
19740 cat confdefs.h >>conftest.$ac_ext
19741 cat >>conftest.$ac_ext <<_ACEOF
19742 /* end confdefs.h. */
19743 $ac_includes_default
19744 #include <pthread.h>
19745 _ACEOF
19746 rm -f conftest.$ac_objext
19747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19748 (eval $ac_compile) 2>conftest.er1
19749 ac_status=$?
19750 grep -v '^ *+' conftest.er1 >conftest.err
19751 rm -f conftest.er1
19752 cat conftest.err >&5
19753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754 (exit $ac_status); } &&
19755 { ac_try='test -z "$ac_cxx_werror_flag"
19756 || test ! -s conftest.err'
19757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19758 (eval $ac_try) 2>&5
19759 ac_status=$?
19760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19761 (exit $ac_status); }; } &&
19762 { ac_try='test -s conftest.$ac_objext'
19763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19764 (eval $ac_try) 2>&5
19765 ac_status=$?
19766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19767 (exit $ac_status); }; }; then
19768 ac_header_compiler=yes
19769 else
19770 echo "$as_me: failed program was:" >&5
19771 sed 's/^/| /' conftest.$ac_ext >&5
19773 ac_header_compiler=no
19775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19776 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19777 echo "${ECHO_T}$ac_header_compiler" >&6
19779 # Is the header present?
19780 echo "$as_me:$LINENO: checking pthread.h presence" >&5
19781 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
19782 cat >conftest.$ac_ext <<_ACEOF
19783 /* confdefs.h. */
19784 _ACEOF
19785 cat confdefs.h >>conftest.$ac_ext
19786 cat >>conftest.$ac_ext <<_ACEOF
19787 /* end confdefs.h. */
19788 #include <pthread.h>
19789 _ACEOF
19790 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19791 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19792 ac_status=$?
19793 grep -v '^ *+' conftest.er1 >conftest.err
19794 rm -f conftest.er1
19795 cat conftest.err >&5
19796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19797 (exit $ac_status); } >/dev/null; then
19798 if test -s conftest.err; then
19799 ac_cpp_err=$ac_cxx_preproc_warn_flag
19800 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
19801 else
19802 ac_cpp_err=
19804 else
19805 ac_cpp_err=yes
19807 if test -z "$ac_cpp_err"; then
19808 ac_header_preproc=yes
19809 else
19810 echo "$as_me: failed program was:" >&5
19811 sed 's/^/| /' conftest.$ac_ext >&5
19813 ac_header_preproc=no
19815 rm -f conftest.err conftest.$ac_ext
19816 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19817 echo "${ECHO_T}$ac_header_preproc" >&6
19819 # So? What about this header?
19820 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19821 yes:no: )
19822 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
19823 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19824 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
19825 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
19826 ac_header_preproc=yes
19828 no:yes:* )
19829 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
19830 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
19831 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
19832 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
19833 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
19834 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
19835 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
19836 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
19837 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
19838 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
19839 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
19840 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
19842 cat <<\_ASBOX
19843 ## ---------------------------- ##
19844 ## Report this to tango@esrf.fr ##
19845 ## ---------------------------- ##
19846 _ASBOX
19848 sed "s/^/$as_me: WARNING: /" >&2
19850 esac
19851 echo "$as_me:$LINENO: checking for pthread.h" >&5
19852 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
19853 if test "${ac_cv_header_pthread_h+set}" = set; then
19854 echo $ECHO_N "(cached) $ECHO_C" >&6
19855 else
19856 ac_cv_header_pthread_h=$ac_header_preproc
19858 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
19859 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
19862 if test $ac_cv_header_pthread_h = yes; then
19864 cat >>confdefs.h <<\_ACEOF
19865 #define HAVE_PTHREAD_H 1
19866 _ACEOF
19871 if test x$rssh_cv_check_sunpro_c = xyes
19872 then
19873 CFLAGS_PTHREADS="-mt"
19875 if test x$rssh_cv_check_sunpro_cc = xyes
19876 then
19877 CXXFLAGS_PTHREADS="-mt"
19879 case $build_os in
19880 freebsd*)
19881 CFLAGS_PTHREADS="-pthread"
19882 CXXFLAGS_PTHREADS="-pthread"
19883 freebsd_pthreads=yes
19886 freebsd_pthreads=no
19888 esac
19889 if test x$freebsd_pthreads = xno
19890 then
19891 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
19892 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
19893 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
19894 echo $ECHO_N "(cached) $ECHO_C" >&6
19895 else
19896 ac_check_lib_save_LIBS=$LIBS
19897 LIBS="-lpthread $LIBS"
19898 cat >conftest.$ac_ext <<_ACEOF
19899 /* confdefs.h. */
19900 _ACEOF
19901 cat confdefs.h >>conftest.$ac_ext
19902 cat >>conftest.$ac_ext <<_ACEOF
19903 /* end confdefs.h. */
19905 /* Override any gcc2 internal prototype to avoid an error. */
19906 #ifdef __cplusplus
19907 extern "C"
19908 #endif
19909 /* We use char because int might match the return type of a gcc2
19910 builtin and then its argument prototype would still apply. */
19911 char pthread_create ();
19913 main ()
19915 pthread_create ();
19917 return 0;
19919 _ACEOF
19920 rm -f conftest.$ac_objext conftest$ac_exeext
19921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19922 (eval $ac_link) 2>conftest.er1
19923 ac_status=$?
19924 grep -v '^ *+' conftest.er1 >conftest.err
19925 rm -f conftest.er1
19926 cat conftest.err >&5
19927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19928 (exit $ac_status); } &&
19929 { ac_try='test -z "$ac_cxx_werror_flag"
19930 || test ! -s conftest.err'
19931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19932 (eval $ac_try) 2>&5
19933 ac_status=$?
19934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19935 (exit $ac_status); }; } &&
19936 { ac_try='test -s conftest$ac_exeext'
19937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19938 (eval $ac_try) 2>&5
19939 ac_status=$?
19940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941 (exit $ac_status); }; }; then
19942 ac_cv_lib_pthread_pthread_create=yes
19943 else
19944 echo "$as_me: failed program was:" >&5
19945 sed 's/^/| /' conftest.$ac_ext >&5
19947 ac_cv_lib_pthread_pthread_create=no
19949 rm -f conftest.err conftest.$ac_objext \
19950 conftest$ac_exeext conftest.$ac_ext
19951 LIBS=$ac_check_lib_save_LIBS
19953 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
19954 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
19955 if test $ac_cv_lib_pthread_pthread_create = yes; then
19956 LIBS_PTHREADS="-lpthread"
19960 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
19961 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
19962 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
19963 echo $ECHO_N "(cached) $ECHO_C" >&6
19964 else
19965 ac_check_lib_save_LIBS=$LIBS
19966 LIBS="-lposix4 $LIBS"
19967 cat >conftest.$ac_ext <<_ACEOF
19968 /* confdefs.h. */
19969 _ACEOF
19970 cat confdefs.h >>conftest.$ac_ext
19971 cat >>conftest.$ac_ext <<_ACEOF
19972 /* end confdefs.h. */
19974 /* Override any gcc2 internal prototype to avoid an error. */
19975 #ifdef __cplusplus
19976 extern "C"
19977 #endif
19978 /* We use char because int might match the return type of a gcc2
19979 builtin and then its argument prototype would still apply. */
19980 char nanosleep ();
19982 main ()
19984 nanosleep ();
19986 return 0;
19988 _ACEOF
19989 rm -f conftest.$ac_objext conftest$ac_exeext
19990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19991 (eval $ac_link) 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_exeext'
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_lib_posix4_nanosleep=yes
20012 else
20013 echo "$as_me: failed program was:" >&5
20014 sed 's/^/| /' conftest.$ac_ext >&5
20016 ac_cv_lib_posix4_nanosleep=no
20018 rm -f conftest.err conftest.$ac_objext \
20019 conftest$ac_exeext conftest.$ac_ext
20020 LIBS=$ac_check_lib_save_LIBS
20022 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
20023 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
20024 if test $ac_cv_lib_posix4_nanosleep = yes; then
20025 LIBS_PTHREADS="$LIBS_PTHREADS -lposix4"
20033 # Check whether --with-omni or --without-omni was given.
20034 if test "${with_omni+set}" = set; then
20035 withval="$with_omni"
20037 OMNI_PREFIX=${with_omni}
20038 else
20039 OMNI_PREFIX=/usr/local
20042 if test "x$OMNI_ROOT" = "x"
20043 then
20044 if test "x$OMNI_PREFIX" = "x"
20045 then
20046 OMNI_ROOT="/usr/local"
20047 else
20048 OMNI_ROOT="$OMNI_PREFIX"
20052 if test "x$OMNI_PREFIX" = "xno"
20053 then
20054 echo "$as_me:$LINENO: result: omniORB is disabled" >&5
20055 echo "${ECHO_T}omniORB is disabled" >&6
20056 omni=no
20057 else
20061 ac_ext=cc
20062 ac_cpp='$CXXCPP $CPPFLAGS'
20063 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20064 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20065 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20068 svCXXCPPFLAGS=$CXXCPPFLAGS
20069 svCXXFLAGS=$CXXFLAGS
20070 svCPPFLAGS=$CPPFLAGS
20071 svLIBS=$LIBS
20072 svLDFLAGS=$LDFLAGS
20073 svRSSH_ROLLBACK=$rssh_rollback
20074 rssh_rollback="true"
20076 ORB_INCLUDES="-I$OMNI_ROOT/include"
20077 CXXCPPFLAGS="$CXXCPPFLAGS -I$OMNI_ROOT/include "
20078 CPPFLAGS="$CPPFLAGS -I$OMNI_ROOT/include "
20083 if test -z "$rssh_enable_pthreads_done"
20084 then
20085 CFLAGS="$CFLAGS $CFLAGS_PTHREADS"
20086 CXXFLAGS="$CXXFLAGS $CXXFLAGS_PTHREADS"
20087 LIBS="$LIBS $LIBS_PTHREADS"
20089 rssh_enable_pthreads_done=yes
20091 rssh_rollback="$rssh_rollback; rssh_enable_pthreads_done="
20094 case $build_cpu in
20095 sparc*)
20097 cat >>confdefs.h <<\_ACEOF
20098 #define __sparc__ 1
20099 _ACEOF
20101 IDLCXXFLAGS="$IDLCXXFLAGS -D__sparc__"
20103 "i686"|"i586"|"i486"|"i386")
20105 cat >>confdefs.h <<\_ACEOF
20106 #define __x86__ 1
20107 _ACEOF
20109 IDLCXXFLAGS="$IDLCXXFLAGS -D__x86__"
20111 esac
20112 SL_SUFFIX=so
20113 case $build_os in
20114 darwin*)
20116 cat >>confdefs.h <<\_ACEOF
20117 #define __darwin__ 1
20118 _ACEOF
20120 IDLCXXFLAGS="$IDLCXXFLAGS -D__darwin__"
20121 SL_SUFFIX=dylib
20123 solaris*)
20125 cat >>confdefs.h <<\_ACEOF
20126 #define __sunos__ 1
20127 _ACEOF
20129 IDLCXXFLAGS="$IDLCXXFLAGS -D__sunos__"
20130 __OSVERSION__=5
20132 cat >>confdefs.h <<_ACEOF
20133 #define __OSVERSION__ $__OSVERSION__
20134 _ACEOF
20136 IDLCXXFLAGS="$IDLCXXFLAGS -D__OSVERSION__=5"
20138 freebsd*)
20140 cat >>confdefs.h <<\_ACEOF
20141 #define __freebsd__ 1
20142 _ACEOF
20144 IDLCXXFLAGS="$IDLCXXFLAGS -D__freebsd__"
20146 hpux*)
20148 cat >>confdefs.h <<\_ACEOF
20149 #define __hpux__ 1
20150 _ACEOF
20152 IDLCXXFLAGS="$IDLCXXFLAGS -AA -mt -D__hpux__ -D__hppa__ -D__OMNIORB4__"
20153 __OSVERSION__=11
20155 cat >>confdefs.h <<_ACEOF
20156 #define __OSVERSION__ $__OSVERSION__
20157 _ACEOF
20159 IDLCXXFLAGS="$IDLCXXFLAGS -D__OSVERSION__=11"
20160 SL_SUFFIX=sl
20162 esac
20166 CXXCPPFLAGS="$CXXCPPFLAGS $IDLCXXFLAGS"
20168 if test "${ac_cv_header_omniORB4_CORBA_h+set}" = set; then
20169 echo "$as_me:$LINENO: checking for omniORB4/CORBA.h" >&5
20170 echo $ECHO_N "checking for omniORB4/CORBA.h... $ECHO_C" >&6
20171 if test "${ac_cv_header_omniORB4_CORBA_h+set}" = set; then
20172 echo $ECHO_N "(cached) $ECHO_C" >&6
20174 echo "$as_me:$LINENO: result: $ac_cv_header_omniORB4_CORBA_h" >&5
20175 echo "${ECHO_T}$ac_cv_header_omniORB4_CORBA_h" >&6
20176 else
20177 # Is the header compilable?
20178 echo "$as_me:$LINENO: checking omniORB4/CORBA.h usability" >&5
20179 echo $ECHO_N "checking omniORB4/CORBA.h usability... $ECHO_C" >&6
20180 cat >conftest.$ac_ext <<_ACEOF
20181 /* confdefs.h. */
20182 _ACEOF
20183 cat confdefs.h >>conftest.$ac_ext
20184 cat >>conftest.$ac_ext <<_ACEOF
20185 /* end confdefs.h. */
20186 $ac_includes_default
20187 #include <omniORB4/CORBA.h>
20188 _ACEOF
20189 rm -f conftest.$ac_objext
20190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20191 (eval $ac_compile) 2>conftest.er1
20192 ac_status=$?
20193 grep -v '^ *+' conftest.er1 >conftest.err
20194 rm -f conftest.er1
20195 cat conftest.err >&5
20196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20197 (exit $ac_status); } &&
20198 { ac_try='test -z "$ac_cxx_werror_flag"
20199 || test ! -s conftest.err'
20200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20201 (eval $ac_try) 2>&5
20202 ac_status=$?
20203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204 (exit $ac_status); }; } &&
20205 { ac_try='test -s conftest.$ac_objext'
20206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20207 (eval $ac_try) 2>&5
20208 ac_status=$?
20209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20210 (exit $ac_status); }; }; then
20211 ac_header_compiler=yes
20212 else
20213 echo "$as_me: failed program was:" >&5
20214 sed 's/^/| /' conftest.$ac_ext >&5
20216 ac_header_compiler=no
20218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20219 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20220 echo "${ECHO_T}$ac_header_compiler" >&6
20222 # Is the header present?
20223 echo "$as_me:$LINENO: checking omniORB4/CORBA.h presence" >&5
20224 echo $ECHO_N "checking omniORB4/CORBA.h presence... $ECHO_C" >&6
20225 cat >conftest.$ac_ext <<_ACEOF
20226 /* confdefs.h. */
20227 _ACEOF
20228 cat confdefs.h >>conftest.$ac_ext
20229 cat >>conftest.$ac_ext <<_ACEOF
20230 /* end confdefs.h. */
20231 #include <omniORB4/CORBA.h>
20232 _ACEOF
20233 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20234 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20235 ac_status=$?
20236 grep -v '^ *+' conftest.er1 >conftest.err
20237 rm -f conftest.er1
20238 cat conftest.err >&5
20239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240 (exit $ac_status); } >/dev/null; then
20241 if test -s conftest.err; then
20242 ac_cpp_err=$ac_cxx_preproc_warn_flag
20243 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
20244 else
20245 ac_cpp_err=
20247 else
20248 ac_cpp_err=yes
20250 if test -z "$ac_cpp_err"; then
20251 ac_header_preproc=yes
20252 else
20253 echo "$as_me: failed program was:" >&5
20254 sed 's/^/| /' conftest.$ac_ext >&5
20256 ac_header_preproc=no
20258 rm -f conftest.err conftest.$ac_ext
20259 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20260 echo "${ECHO_T}$ac_header_preproc" >&6
20262 # So? What about this header?
20263 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20264 yes:no: )
20265 { echo "$as_me:$LINENO: WARNING: omniORB4/CORBA.h: accepted by the compiler, rejected by the preprocessor!" >&5
20266 echo "$as_me: WARNING: omniORB4/CORBA.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20267 { echo "$as_me:$LINENO: WARNING: omniORB4/CORBA.h: proceeding with the compiler's result" >&5
20268 echo "$as_me: WARNING: omniORB4/CORBA.h: proceeding with the compiler's result" >&2;}
20269 ac_header_preproc=yes
20271 no:yes:* )
20272 { echo "$as_me:$LINENO: WARNING: omniORB4/CORBA.h: present but cannot be compiled" >&5
20273 echo "$as_me: WARNING: omniORB4/CORBA.h: present but cannot be compiled" >&2;}
20274 { echo "$as_me:$LINENO: WARNING: omniORB4/CORBA.h: check for missing prerequisite headers?" >&5
20275 echo "$as_me: WARNING: omniORB4/CORBA.h: check for missing prerequisite headers?" >&2;}
20276 { echo "$as_me:$LINENO: WARNING: omniORB4/CORBA.h: see the Autoconf documentation" >&5
20277 echo "$as_me: WARNING: omniORB4/CORBA.h: see the Autoconf documentation" >&2;}
20278 { echo "$as_me:$LINENO: WARNING: omniORB4/CORBA.h: section \"Present But Cannot Be Compiled\"" >&5
20279 echo "$as_me: WARNING: omniORB4/CORBA.h: section \"Present But Cannot Be Compiled\"" >&2;}
20280 { echo "$as_me:$LINENO: WARNING: omniORB4/CORBA.h: proceeding with the preprocessor's result" >&5
20281 echo "$as_me: WARNING: omniORB4/CORBA.h: proceeding with the preprocessor's result" >&2;}
20282 { echo "$as_me:$LINENO: WARNING: omniORB4/CORBA.h: in the future, the compiler will take precedence" >&5
20283 echo "$as_me: WARNING: omniORB4/CORBA.h: in the future, the compiler will take precedence" >&2;}
20285 cat <<\_ASBOX
20286 ## ---------------------------- ##
20287 ## Report this to tango@esrf.fr ##
20288 ## ---------------------------- ##
20289 _ASBOX
20291 sed "s/^/$as_me: WARNING: /" >&2
20293 esac
20294 echo "$as_me:$LINENO: checking for omniORB4/CORBA.h" >&5
20295 echo $ECHO_N "checking for omniORB4/CORBA.h... $ECHO_C" >&6
20296 if test "${ac_cv_header_omniORB4_CORBA_h+set}" = set; then
20297 echo $ECHO_N "(cached) $ECHO_C" >&6
20298 else
20299 ac_cv_header_omniORB4_CORBA_h=$ac_header_preproc
20301 echo "$as_me:$LINENO: result: $ac_cv_header_omniORB4_CORBA_h" >&5
20302 echo "${ECHO_T}$ac_cv_header_omniORB4_CORBA_h" >&6
20305 if test $ac_cv_header_omniORB4_CORBA_h = yes; then
20306 omni=yes
20307 else
20308 omni=no
20313 if test "x$omni" = "xyes"
20314 then
20315 ORB_LIBDIR="$OMNI_ROOT/lib"
20316 if test ! -r "$ORB_LIBDIR/libomniORB4.$SL_SUFFIX"
20317 then
20318 for i in $OMNI_ROOT/lib/*/lib*.$SL_SUFFIX
20320 ORB_LIBDIR=`dirname $i`
20321 break;
20322 done
20325 LIBS="$LIBS -lomnithread"
20326 svLIBS=$LIBS
20327 LIBS="-L$ORB_LIBDIR $LIBS"
20329 echo "$as_me:$LINENO: checking for omnithreads" >&5
20330 echo $ECHO_N "checking for omnithreads... $ECHO_C" >&6
20331 if test "${rssh_cv_check_omnithreads+set}" = set; then
20332 echo $ECHO_N "(cached) $ECHO_C" >&6
20333 else
20334 rssh_enable_pthreads_done=""
20338 if test -z "$rssh_enable_pthreads_done"
20339 then
20340 CFLAGS="$CFLAGS $CFLAGS_PTHREADS"
20341 CXXFLAGS="$CXXFLAGS $CXXFLAGS_PTHREADS"
20342 LIBS="$LIBS $LIBS_PTHREADS"
20344 rssh_enable_pthreads_done=yes
20346 rssh_rollback="$rssh_rollback; rssh_enable_pthreads_done="
20350 ac_ext=cc
20351 ac_cpp='$CXXCPP $CPPFLAGS'
20352 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20353 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20354 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20356 cat >conftest.$ac_ext <<_ACEOF
20357 /* confdefs.h. */
20358 _ACEOF
20359 cat confdefs.h >>conftest.$ac_ext
20360 cat >>conftest.$ac_ext <<_ACEOF
20361 /* end confdefs.h. */
20362 #include <omnithread.h>
20365 main ()
20367 omni_mutex my_mutex
20369 return 0;
20371 _ACEOF
20372 rm -f conftest.$ac_objext conftest$ac_exeext
20373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20374 (eval $ac_link) 2>conftest.er1
20375 ac_status=$?
20376 grep -v '^ *+' conftest.er1 >conftest.err
20377 rm -f conftest.er1
20378 cat conftest.err >&5
20379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380 (exit $ac_status); } &&
20381 { ac_try='test -z "$ac_cxx_werror_flag"
20382 || test ! -s conftest.err'
20383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20384 (eval $ac_try) 2>&5
20385 ac_status=$?
20386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387 (exit $ac_status); }; } &&
20388 { ac_try='test -s conftest$ac_exeext'
20389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20390 (eval $ac_try) 2>&5
20391 ac_status=$?
20392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393 (exit $ac_status); }; }; then
20394 rssh_cv_check_omnithreads=yes
20395 else
20396 echo "$as_me: failed program was:" >&5
20397 sed 's/^/| /' conftest.$ac_ext >&5
20399 rssh_cv_check_omnithreads=no
20401 rm -f conftest.err conftest.$ac_objext \
20402 conftest$ac_exeext conftest.$ac_ext
20403 ac_ext=cc
20404 ac_cpp='$CXXCPP $CPPFLAGS'
20405 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20406 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20407 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20411 echo "$as_me:$LINENO: result: $rssh_cv_check_omnithreads" >&5
20412 echo "${ECHO_T}$rssh_cv_check_omnithreads" >&6
20413 if test ! $rssh_cv_check_omnithreads = yes
20414 then
20415 echo "$as_me:$LINENO: result: \"omnithreads not found\"" >&5
20416 echo "${ECHO_T}\"omnithreads not found\"" >&6
20417 omni_lib=no
20419 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
20420 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
20421 if test "${ac_cv_lib_socket_socket+set}" = set; then
20422 echo $ECHO_N "(cached) $ECHO_C" >&6
20423 else
20424 ac_check_lib_save_LIBS=$LIBS
20425 LIBS="-lsocket $LIBS"
20426 cat >conftest.$ac_ext <<_ACEOF
20427 /* confdefs.h. */
20428 _ACEOF
20429 cat confdefs.h >>conftest.$ac_ext
20430 cat >>conftest.$ac_ext <<_ACEOF
20431 /* end confdefs.h. */
20433 /* Override any gcc2 internal prototype to avoid an error. */
20434 #ifdef __cplusplus
20435 extern "C"
20436 #endif
20437 /* We use char because int might match the return type of a gcc2
20438 builtin and then its argument prototype would still apply. */
20439 char socket ();
20441 main ()
20443 socket ();
20445 return 0;
20447 _ACEOF
20448 rm -f conftest.$ac_objext conftest$ac_exeext
20449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20450 (eval $ac_link) 2>conftest.er1
20451 ac_status=$?
20452 grep -v '^ *+' conftest.er1 >conftest.err
20453 rm -f conftest.er1
20454 cat conftest.err >&5
20455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20456 (exit $ac_status); } &&
20457 { ac_try='test -z "$ac_cxx_werror_flag"
20458 || test ! -s conftest.err'
20459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20460 (eval $ac_try) 2>&5
20461 ac_status=$?
20462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463 (exit $ac_status); }; } &&
20464 { ac_try='test -s conftest$ac_exeext'
20465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20466 (eval $ac_try) 2>&5
20467 ac_status=$?
20468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469 (exit $ac_status); }; }; then
20470 ac_cv_lib_socket_socket=yes
20471 else
20472 echo "$as_me: failed program was:" >&5
20473 sed 's/^/| /' conftest.$ac_ext >&5
20475 ac_cv_lib_socket_socket=no
20477 rm -f conftest.err conftest.$ac_objext \
20478 conftest$ac_exeext conftest.$ac_ext
20479 LIBS=$ac_check_lib_save_LIBS
20481 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
20482 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
20483 if test $ac_cv_lib_socket_socket = yes; then
20484 LIBS="-lsocket $LIBS"
20487 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
20488 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
20489 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
20490 echo $ECHO_N "(cached) $ECHO_C" >&6
20491 else
20492 ac_check_lib_save_LIBS=$LIBS
20493 LIBS="-lnsl $LIBS"
20494 cat >conftest.$ac_ext <<_ACEOF
20495 /* confdefs.h. */
20496 _ACEOF
20497 cat confdefs.h >>conftest.$ac_ext
20498 cat >>conftest.$ac_ext <<_ACEOF
20499 /* end confdefs.h. */
20501 /* Override any gcc2 internal prototype to avoid an error. */
20502 #ifdef __cplusplus
20503 extern "C"
20504 #endif
20505 /* We use char because int might match the return type of a gcc2
20506 builtin and then its argument prototype would still apply. */
20507 char gethostbyname ();
20509 main ()
20511 gethostbyname ();
20513 return 0;
20515 _ACEOF
20516 rm -f conftest.$ac_objext conftest$ac_exeext
20517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20518 (eval $ac_link) 2>conftest.er1
20519 ac_status=$?
20520 grep -v '^ *+' conftest.er1 >conftest.err
20521 rm -f conftest.er1
20522 cat conftest.err >&5
20523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20524 (exit $ac_status); } &&
20525 { ac_try='test -z "$ac_cxx_werror_flag"
20526 || test ! -s conftest.err'
20527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20528 (eval $ac_try) 2>&5
20529 ac_status=$?
20530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531 (exit $ac_status); }; } &&
20532 { ac_try='test -s conftest$ac_exeext'
20533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20534 (eval $ac_try) 2>&5
20535 ac_status=$?
20536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20537 (exit $ac_status); }; }; then
20538 ac_cv_lib_nsl_gethostbyname=yes
20539 else
20540 echo "$as_me: failed program was:" >&5
20541 sed 's/^/| /' conftest.$ac_ext >&5
20543 ac_cv_lib_nsl_gethostbyname=no
20545 rm -f conftest.err conftest.$ac_objext \
20546 conftest$ac_exeext conftest.$ac_ext
20547 LIBS=$ac_check_lib_save_LIBS
20549 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
20550 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
20551 if test $ac_cv_lib_nsl_gethostbyname = yes; then
20552 LIBS="-lnsl $LIBS"
20556 ORB_LDFLAGS="-L$ORB_LIBDIR"
20557 LIBS="$ORB_LDFLAGS -lomniORB4 -lomniDynamic4 -lCOS4 $svLIBS $LIBS"
20558 echo "$as_me:$LINENO: checking whether we can link with omniORB4" >&5
20559 echo $ECHO_N "checking whether we can link with omniORB4... $ECHO_C" >&6
20560 if test "${rssh_cv_check_omniORBlib+set}" = set; then
20561 echo $ECHO_N "(cached) $ECHO_C" >&6
20562 else
20563 cat >conftest.$ac_ext <<_ACEOF
20564 /* confdefs.h. */
20565 _ACEOF
20566 cat confdefs.h >>conftest.$ac_ext
20567 cat >>conftest.$ac_ext <<_ACEOF
20568 /* end confdefs.h. */
20569 #include <omniORB4/CORBA.h>
20572 main ()
20574 CORBA::ORB_var orb
20576 return 0;
20578 _ACEOF
20579 rm -f conftest.$ac_objext conftest$ac_exeext
20580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20581 (eval $ac_link) 2>conftest.er1
20582 ac_status=$?
20583 grep -v '^ *+' conftest.er1 >conftest.err
20584 rm -f conftest.er1
20585 cat conftest.err >&5
20586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587 (exit $ac_status); } &&
20588 { ac_try='test -z "$ac_cxx_werror_flag"
20589 || test ! -s conftest.err'
20590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20591 (eval $ac_try) 2>&5
20592 ac_status=$?
20593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20594 (exit $ac_status); }; } &&
20595 { ac_try='test -s conftest$ac_exeext'
20596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20597 (eval $ac_try) 2>&5
20598 ac_status=$?
20599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20600 (exit $ac_status); }; }; then
20601 rssh_cv_check_omniORBlib=yes
20602 else
20603 echo "$as_me: failed program was:" >&5
20604 sed 's/^/| /' conftest.$ac_ext >&5
20606 rssh_cv_check_omniORBlib=no
20609 rm -f conftest.err conftest.$ac_objext \
20610 conftest$ac_exeext conftest.$ac_ext
20613 echo "$as_me:$LINENO: result: $rssh_cv_check_omniORBlib" >&5
20614 echo "${ECHO_T}$rssh_cv_check_omniORBlib" >&6
20616 if test ! $rssh_cv_check_omniORBlib = yes
20617 then
20618 echo "$as_me:$LINENO: result: \"omniORB libs not found\"" >&5
20619 echo "${ECHO_T}\"omniORB libs not found\"" >&6
20620 omni_lib=no
20624 ORB_LIBS="$ORB_LDFLAGS -lomniORB4 -lomnithread"
20627 if test "x$omni_lib" = "xno"
20628 then
20629 echo "$as_me:$LINENO: result: omniORB library linking failed" >&5
20630 echo "${ECHO_T}omniORB library linking failed" >&6
20631 omni="no"
20636 echo "$as_me:$LINENO: checking for omniORB release (at least version 4.1.0)" >&5
20637 echo $ECHO_N "checking for omniORB release (at least version 4.1.0)... $ECHO_C" >&6
20638 if test "${ac_cv_omniorb_version_4_1_0+set}" = set; then
20639 echo $ECHO_N "(cached) $ECHO_C" >&6
20640 else
20642 if test -x $OMNI_ROOT/include/omniORB4; then
20643 VERS=`grep VERSION $OMNI_ROOT/include/omniORB4/acconfig.h 2>&1 | cut -d ' ' -f 3`
20644 OMNI_VERSION=$VERS
20646 OMNIORB_MAJOR=`echo $VERS | cut -b 2`
20647 OMNIORB_MINOR=`echo $VERS | cut -b 4`
20648 OMNIORB_MICRO=`echo $VERS | cut -b 6`
20651 if test $OMNIORB_MAJOR -lt 4; then
20652 ac_cv_omniorb_version_4_1_0=no
20653 else
20654 if test $OMNIORB_MINOR -lt 1; then
20655 ac_cv_omniorb_version_4_1_0=no
20656 else
20657 if test $OMNIORB_MICRO -lt 0; then
20658 ac_cv_omniorb_version_4_1_0=no
20659 else
20660 ac_cv_omniorb_version_4_1_0=yes
20664 else
20665 ac_cv_omniorb_version_4_1_0=no
20669 echo "$as_me:$LINENO: result: $ac_cv_omniorb_version_4_1_0" >&5
20670 echo "${ECHO_T}$ac_cv_omniorb_version_4_1_0" >&6
20672 if test "x$ac_cv_omniorb_version_4_1_0" = "xno"; then
20673 { { echo "$as_me:$LINENO: error: Not supported omniORB release. Should be 4.1.0 or above. Please update !" >&5
20674 echo "$as_me: error: Not supported omniORB release. Should be 4.1.0 or above. Please update !" >&2;}
20675 { (exit -1); exit -1; }; }
20679 echo "$as_me:$LINENO: checking for omniORB release (at least version 4.1.1)" >&5
20680 echo $ECHO_N "checking for omniORB release (at least version 4.1.1)... $ECHO_C" >&6
20681 if test "${ac_cv_omniorb_version_4_1_1+set}" = set; then
20682 echo $ECHO_N "(cached) $ECHO_C" >&6
20683 else
20685 if test -x $OMNI_ROOT/include/omniORB4; then
20686 VERS=`grep VERSION $OMNI_ROOT/include/omniORB4/acconfig.h 2>&1 | cut -d ' ' -f 3`
20687 OMNI_VERSION=$VERS
20689 OMNIORB_MAJOR=`echo $VERS | cut -b 2`
20690 OMNIORB_MINOR=`echo $VERS | cut -b 4`
20691 OMNIORB_MICRO=`echo $VERS | cut -b 6`
20694 if test $OMNIORB_MAJOR -lt 4; then
20695 ac_cv_omniorb_version_4_1_1=no
20696 else
20697 if test $OMNIORB_MINOR -lt 1; then
20698 ac_cv_omniorb_version_4_1_1=no
20699 else
20700 if test $OMNIORB_MICRO -lt 1; then
20701 ac_cv_omniorb_version_4_1_1=no
20702 else
20703 ac_cv_omniorb_version_4_1_1=yes
20707 else
20708 ac_cv_omniorb_version_4_1_1=no
20712 echo "$as_me:$LINENO: result: $ac_cv_omniorb_version_4_1_1" >&5
20713 echo "${ECHO_T}$ac_cv_omniorb_version_4_1_1" >&6
20715 echo "$as_me:$LINENO: checking for omniORB release (at least version 4.1.2)" >&5
20716 echo $ECHO_N "checking for omniORB release (at least version 4.1.2)... $ECHO_C" >&6
20717 if test "${ac_cv_omniorb_version_4_1_2+set}" = set; then
20718 echo $ECHO_N "(cached) $ECHO_C" >&6
20719 else
20721 if test -x $OMNI_ROOT/include/omniORB4; then
20722 VERS=`grep VERSION $OMNI_ROOT/include/omniORB4/acconfig.h 2>&1 | cut -d ' ' -f 3`
20723 OMNI_VERSION=$VERS
20725 OMNIORB_MAJOR=`echo $VERS | cut -b 2`
20726 OMNIORB_MINOR=`echo $VERS | cut -b 4`
20727 OMNIORB_MICRO=`echo $VERS | cut -b 6`
20730 if test $OMNIORB_MAJOR -lt 4; then
20731 ac_cv_omniorb_version_4_1_2=no
20732 else
20733 if test $OMNIORB_MINOR -lt 1; then
20734 ac_cv_omniorb_version_4_1_2=no
20735 else
20736 if test $OMNIORB_MICRO -lt 2; then
20737 ac_cv_omniorb_version_4_1_2=no
20738 else
20739 ac_cv_omniorb_version_4_1_2=yes
20743 else
20744 ac_cv_omniorb_version_4_1_2=no
20748 echo "$as_me:$LINENO: result: $ac_cv_omniorb_version_4_1_2" >&5
20749 echo "${ECHO_T}$ac_cv_omniorb_version_4_1_2" >&6
20751 if test "x$ac_cv_omniorb_version_4_1_1" = "xyes"; then
20752 if test "x$ac_cv_omniorb_version_4_1_2" = "xno"; then
20753 { { echo "$as_me:$LINENO: error: omniORB release 4.1.1 is not supported. Should be 4.1.0 or 4.1.2 and above. Please update !" >&5
20754 echo "$as_me: error: omniORB release 4.1.1 is not supported. Should be 4.1.0 or 4.1.2 and above. Please update !" >&2;}
20755 { (exit -1); exit -1; }; }
20760 if test "x$omni" = "x" -o "x$omni" = "xno"
20761 then
20762 CXXCPPFLAGS=$svCXXCPPFLAGS
20763 CPPFLAGS=$svCPPFLAGS
20764 LIBS=$svLIBS
20765 LDFLAGS=$svLDFLAGS
20766 ORB=unknown
20767 omni=no
20768 eval "$rssh_rollback"
20769 rssh_rollback=$svRSSH_ROLLBACK
20770 else
20773 ORB_PREFIX=$OMNI_ROOT
20776 ORB=omniORB
20779 IDL=omniidl
20780 if test -x $OMNI_ROOT/bin/omniidl
20781 then
20782 IDL=$OMNI_ROOT/bin/omniidl
20783 else
20784 for i in $OMNI_ROOT/bin/*/omniidl
20786 if test "$i" != $OMNI_ROOT'/bin/*/omniidl'
20787 then
20788 IDL=$i
20789 break
20791 done
20794 IDLCXX=$IDL
20797 IDLFLAGS="$IDLFLAGS -bcxx -I$OMNI_ROOT/idl"
20800 ORB_INCLUDE_PREFIX=$ORB_INCLUDES
20803 IDL_H_SUFFIX=.hh
20805 IDL_H1_SUFFIX=no
20808 IDL_CLN_H=.hh
20809 IDL_CLN_H_SUFFIX=.hh
20810 IDL_CLN_H1_SUFFIX=no
20812 IDL_CLN_H=$IDL_CLN_H
20814 IDL_CLN_H_SUFFIX=$IDL_CLN_H_SUFFIX
20816 IDL_CLN_H1_SUFFIX=$IDL_CLN_H1_SUFFIX
20819 cat >>confdefs.h <<_ACEOF
20820 #define IDL_CLN_H_SUFFIX 1
20821 _ACEOF
20824 IDL_CLN_CPP=SK.cc
20825 IDL_CLN_CPP_SUFFIX=SK.cc
20826 IDL_CLN_CPP=$IDL_CLN_CPP
20828 IDL_CLN_CPP_SUFFIX=$IDL_CLN_CPP_SUFFIX
20831 cat >>confdefs.h <<_ACEOF
20832 #define IDL_CLN_CPP_SUFFIX 1
20833 _ACEOF
20836 IDL_CLN_O=SK.o
20837 IDL_CLN_OBJ_SUFFIX=SK.o
20838 IDL_CLN_O=$IDL_CLN_O
20840 IDL_CLN_OBJ_SUFFIX=$IDL_CLN_OBJ_SUFFIX
20843 IDL_SRV_H=.hh
20844 IDL_SRV_H_SUFFIX=.hh
20845 IDL_SRV_H1_SUFFIX=no
20846 IDL_SRV_H=$IDL_SRV_H
20848 IDL_SRV_H_SUFFIX=$IDL_SRV_H_SUFFIX
20850 IDL_SRV_H1_SUFFIX=$IDL_SRV_H1_SUFFIX
20853 cat >>confdefs.h <<_ACEOF
20854 #define IDL_SRV_H_SUFFIX 1
20855 _ACEOF
20858 IDL_SRV_CPP=SK.cc
20859 IDL_SRV_CPP_SUFFIX=SK.cc
20860 IDL_SRV_CPP=$IDL_SRV_CPP
20862 IDL_SRV_CPP_SUFFIX=$IDL_SRV_CPP_SUFFIX
20865 cat >>confdefs.h <<_ACEOF
20866 #define IDL_SRV_H_SUFFIX 1
20867 _ACEOF
20870 IDL_SRV_O=SK.o
20871 IDL_SRV_OBJ_SUFFIX=SK.o
20872 IDL_SRV_O=$IDL_SRV_O
20874 IDL_SRV_OBJ_SUFFIX=$IDL_SRV_OBJ_SUFFIX
20877 IDL_TIE_H_SUFFIX=no
20878 IDL_TIE_H1_SUFFIX=no
20879 IDL_TIE_CPP_SUFFIX=no
20880 IDL_TIE_H_SUFFIX=$IDL_TIE_H_SUFFIX
20882 IDL_TIE_H1_SUFFIX=$IDL_TIE_H1_SUFFIX
20884 IDL_TIE_CPP_SUFFIX=$IDL_TIE_CPP_SUFFIX
20887 CORBA_H='omniORB4/CORBA.h'
20889 cat >>confdefs.h <<_ACEOF
20890 #define CORBA_H <$CORBA_H>
20891 _ACEOF
20894 COSNAMING_H='omniORB4/Naming.hh'
20896 cat >>confdefs.h <<_ACEOF
20897 #define COSNAMING_H <$COSNAMING_H>
20898 _ACEOF
20901 ORB_COSNAMING_LIB=
20905 HAVE_ORB_IDL=1
20908 echo "$as_me:$LINENO: checking whether CORBA modules mapped to namespaces" >&5
20909 echo $ECHO_N "checking whether CORBA modules mapped to namespaces... $ECHO_C" >&6
20910 if test "${rssh_cv_corba_namespaces+set}" = set; then
20911 echo $ECHO_N "(cached) $ECHO_C" >&6
20912 else
20913 cat >conftest.$ac_ext <<_ACEOF
20914 /* confdefs.h. */
20915 _ACEOF
20916 cat confdefs.h >>conftest.$ac_ext
20917 cat >>conftest.$ac_ext <<_ACEOF
20918 /* end confdefs.h. */
20919 #include <$CORBA_H>
20922 main ()
20925 #ifndef HAS_Cplusplus_Namespace
20926 #error "we have no namespaces"
20927 we have no namespaces -- $$$$
20928 #else
20929 return 0;
20930 #endif
20933 return 0;
20935 _ACEOF
20936 rm -f conftest.$ac_objext
20937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20938 (eval $ac_compile) 2>conftest.er1
20939 ac_status=$?
20940 grep -v '^ *+' conftest.er1 >conftest.err
20941 rm -f conftest.er1
20942 cat conftest.err >&5
20943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20944 (exit $ac_status); } &&
20945 { ac_try='test -z "$ac_cxx_werror_flag"
20946 || test ! -s conftest.err'
20947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20948 (eval $ac_try) 2>&5
20949 ac_status=$?
20950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951 (exit $ac_status); }; } &&
20952 { ac_try='test -s conftest.$ac_objext'
20953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20954 (eval $ac_try) 2>&5
20955 ac_status=$?
20956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957 (exit $ac_status); }; }; then
20958 rssh_cv_corba_namespaces=yes
20959 else
20960 echo "$as_me: failed program was:" >&5
20961 sed 's/^/| /' conftest.$ac_ext >&5
20963 rssh_cv_corba_namespaces=no
20965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20968 echo "$as_me:$LINENO: result: $rssh_cv_corba_namespaces" >&5
20969 echo "${ECHO_T}$rssh_cv_corba_namespaces" >&6
20971 if test "$rssh_cv_corba_namespaces" = "yes"
20972 then
20974 cat >>confdefs.h <<\_ACEOF
20975 #define CORBA_MODULE_NAMESPACE_MAPPING 1
20976 _ACEOF
20978 else
20980 cat >>confdefs.h <<\_ACEOF
20981 #define CORBA_MODULE_CLASS_MAPPING 1
20982 _ACEOF
20987 cat >>confdefs.h <<\_ACEOF
20988 #define OMNIORB 1
20989 _ACEOF
20992 CORBA_HAVE_POA=1
20994 cat >>confdefs.h <<\_ACEOF
20995 #define CORBA_HAVE_POA 1
20996 _ACEOF
20999 CORBA_ORB_INIT_HAVE_3_ARGS=1
21001 cat >>confdefs.h <<\_ACEOF
21002 #define CORBA_ORB_INIT_HAVE_3_ARGS 1
21003 _ACEOF
21005 CORBA_ORB_INIT_THIRD_ARG='"omniORB4"'
21007 cat >>confdefs.h <<\_ACEOF
21008 #define CORBA_ORB_INIT_THIRD_ARG "omniORB4"
21009 _ACEOF
21012 cat >>confdefs.h <<\_ACEOF
21013 #define CORBA_ORB_HAVE_DESTROY 1
21014 _ACEOF
21020 ac_ext=c
21021 ac_cpp='$CPP $CPPFLAGS'
21022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21028 enable_lib=yes
21030 case $build_os in
21031 hpux*)
21032 CXXFLAGS=$IDLCXXFLAGS
21034 esac
21036 if test "x$CORBA_H" = "x"
21037 then
21038 { { echo "$as_me:$LINENO: error: \"Please install omniorb or use --with-omni to indicate its location\"" >&5
21039 echo "$as_me: error: \"Please install omniorb or use --with-omni to indicate its location\"" >&2;}
21040 { (exit 1); exit 1; }; }
21046 case $build_os in
21047 solaris*)
21049 cat >>confdefs.h <<\_ACEOF
21050 #define _POSIX_PTHREAD_SEMANTICS 1
21051 _ACEOF
21053 CXXFLAGS="$CXXFLAGS -D_POSIX_PTHREAD_SEMANTICS"
21055 linux*)
21057 cat >>confdefs.h <<\_ACEOF
21058 #define _REENTRANT 1
21059 _ACEOF
21061 CXXFLAGS="$CXXFLAGS -D_REENTRANT"
21063 darwin*)
21065 cat >>confdefs.h <<\_ACEOF
21066 #define _REENTRANT 1
21067 _ACEOF
21069 CXXFLAGS="$CXXFLAGS -D_REENTRANT -D__darwin__"
21070 DARWIN=yes
21071 esac
21075 if test x"$DARWIN" = x"yes" ; then
21076 DARWIN_ENABLED_TRUE=
21077 DARWIN_ENABLED_FALSE='#'
21078 else
21079 DARWIN_ENABLED_TRUE='#'
21080 DARWIN_ENABLED_FALSE=
21085 CXXFLAGS="$CXXFLAGS -DOMNI_UNLOADABLE_STUBS"
21089 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
21090 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
21091 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
21092 echo $ECHO_N "(cached) $ECHO_C" >&6
21093 else
21094 ac_check_lib_save_LIBS=$LIBS
21095 LIBS="-ldl $LIBS"
21096 cat >conftest.$ac_ext <<_ACEOF
21097 /* confdefs.h. */
21098 _ACEOF
21099 cat confdefs.h >>conftest.$ac_ext
21100 cat >>conftest.$ac_ext <<_ACEOF
21101 /* end confdefs.h. */
21103 /* Override any gcc2 internal prototype to avoid an error. */
21104 #ifdef __cplusplus
21105 extern "C"
21106 #endif
21107 /* We use char because int might match the return type of a gcc2
21108 builtin and then its argument prototype would still apply. */
21109 char dlopen ();
21111 main ()
21113 dlopen ();
21115 return 0;
21117 _ACEOF
21118 rm -f conftest.$ac_objext conftest$ac_exeext
21119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21120 (eval $ac_link) 2>conftest.er1
21121 ac_status=$?
21122 grep -v '^ *+' conftest.er1 >conftest.err
21123 rm -f conftest.er1
21124 cat conftest.err >&5
21125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126 (exit $ac_status); } &&
21127 { ac_try='test -z "$ac_c_werror_flag"
21128 || test ! -s conftest.err'
21129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21130 (eval $ac_try) 2>&5
21131 ac_status=$?
21132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21133 (exit $ac_status); }; } &&
21134 { ac_try='test -s conftest$ac_exeext'
21135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21136 (eval $ac_try) 2>&5
21137 ac_status=$?
21138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139 (exit $ac_status); }; }; then
21140 ac_cv_lib_dl_dlopen=yes
21141 else
21142 echo "$as_me: failed program was:" >&5
21143 sed 's/^/| /' conftest.$ac_ext >&5
21145 ac_cv_lib_dl_dlopen=no
21147 rm -f conftest.err conftest.$ac_objext \
21148 conftest$ac_exeext conftest.$ac_ext
21149 LIBS=$ac_check_lib_save_LIBS
21151 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21152 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
21153 if test $ac_cv_lib_dl_dlopen = yes; then
21154 cat >>confdefs.h <<_ACEOF
21155 #define HAVE_LIBDL 1
21156 _ACEOF
21158 LIBS="-ldl $LIBS"
21163 echo "$as_me:$LINENO: checking for svc_pollfd in -lnsl" >&5
21164 echo $ECHO_N "checking for svc_pollfd in -lnsl... $ECHO_C" >&6
21165 if test "${ac_cv_lib_nsl_svc_pollfd+set}" = set; then
21166 echo $ECHO_N "(cached) $ECHO_C" >&6
21167 else
21168 ac_check_lib_save_LIBS=$LIBS
21169 LIBS="-lnsl $LIBS"
21170 cat >conftest.$ac_ext <<_ACEOF
21171 /* confdefs.h. */
21172 _ACEOF
21173 cat confdefs.h >>conftest.$ac_ext
21174 cat >>conftest.$ac_ext <<_ACEOF
21175 /* end confdefs.h. */
21177 /* Override any gcc2 internal prototype to avoid an error. */
21178 #ifdef __cplusplus
21179 extern "C"
21180 #endif
21181 /* We use char because int might match the return type of a gcc2
21182 builtin and then its argument prototype would still apply. */
21183 char svc_pollfd ();
21185 main ()
21187 svc_pollfd ();
21189 return 0;
21191 _ACEOF
21192 rm -f conftest.$ac_objext conftest$ac_exeext
21193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21194 (eval $ac_link) 2>conftest.er1
21195 ac_status=$?
21196 grep -v '^ *+' conftest.er1 >conftest.err
21197 rm -f conftest.er1
21198 cat conftest.err >&5
21199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21200 (exit $ac_status); } &&
21201 { ac_try='test -z "$ac_c_werror_flag"
21202 || test ! -s conftest.err'
21203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21204 (eval $ac_try) 2>&5
21205 ac_status=$?
21206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21207 (exit $ac_status); }; } &&
21208 { ac_try='test -s conftest$ac_exeext'
21209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21210 (eval $ac_try) 2>&5
21211 ac_status=$?
21212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21213 (exit $ac_status); }; }; then
21214 ac_cv_lib_nsl_svc_pollfd=yes
21215 else
21216 echo "$as_me: failed program was:" >&5
21217 sed 's/^/| /' conftest.$ac_ext >&5
21219 ac_cv_lib_nsl_svc_pollfd=no
21221 rm -f conftest.err conftest.$ac_objext \
21222 conftest$ac_exeext conftest.$ac_ext
21223 LIBS=$ac_check_lib_save_LIBS
21225 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_svc_pollfd" >&5
21226 echo "${ECHO_T}$ac_cv_lib_nsl_svc_pollfd" >&6
21227 if test $ac_cv_lib_nsl_svc_pollfd = yes; then
21228 cat >>confdefs.h <<_ACEOF
21229 #define HAVE_LIBNSL 1
21230 _ACEOF
21232 LIBS="-lnsl $LIBS"
21237 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
21238 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
21239 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
21240 echo $ECHO_N "(cached) $ECHO_C" >&6
21241 else
21242 ac_check_lib_save_LIBS=$LIBS
21243 LIBS="-lposix4 $LIBS"
21244 cat >conftest.$ac_ext <<_ACEOF
21245 /* confdefs.h. */
21246 _ACEOF
21247 cat confdefs.h >>conftest.$ac_ext
21248 cat >>conftest.$ac_ext <<_ACEOF
21249 /* end confdefs.h. */
21251 /* Override any gcc2 internal prototype to avoid an error. */
21252 #ifdef __cplusplus
21253 extern "C"
21254 #endif
21255 /* We use char because int might match the return type of a gcc2
21256 builtin and then its argument prototype would still apply. */
21257 char nanosleep ();
21259 main ()
21261 nanosleep ();
21263 return 0;
21265 _ACEOF
21266 rm -f conftest.$ac_objext conftest$ac_exeext
21267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21268 (eval $ac_link) 2>conftest.er1
21269 ac_status=$?
21270 grep -v '^ *+' conftest.er1 >conftest.err
21271 rm -f conftest.er1
21272 cat conftest.err >&5
21273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21274 (exit $ac_status); } &&
21275 { ac_try='test -z "$ac_c_werror_flag"
21276 || test ! -s conftest.err'
21277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21278 (eval $ac_try) 2>&5
21279 ac_status=$?
21280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21281 (exit $ac_status); }; } &&
21282 { ac_try='test -s conftest$ac_exeext'
21283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21284 (eval $ac_try) 2>&5
21285 ac_status=$?
21286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21287 (exit $ac_status); }; }; then
21288 ac_cv_lib_posix4_nanosleep=yes
21289 else
21290 echo "$as_me: failed program was:" >&5
21291 sed 's/^/| /' conftest.$ac_ext >&5
21293 ac_cv_lib_posix4_nanosleep=no
21295 rm -f conftest.err conftest.$ac_objext \
21296 conftest$ac_exeext conftest.$ac_ext
21297 LIBS=$ac_check_lib_save_LIBS
21299 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
21300 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
21301 if test $ac_cv_lib_posix4_nanosleep = yes; then
21302 cat >>confdefs.h <<_ACEOF
21303 #define HAVE_LIBPOSIX4 1
21304 _ACEOF
21306 LIBS="-lposix4 $LIBS"
21311 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
21312 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
21313 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
21314 echo $ECHO_N "(cached) $ECHO_C" >&6
21315 else
21316 ac_check_lib_save_LIBS=$LIBS
21317 LIBS="-lpthread $LIBS"
21318 cat >conftest.$ac_ext <<_ACEOF
21319 /* confdefs.h. */
21320 _ACEOF
21321 cat confdefs.h >>conftest.$ac_ext
21322 cat >>conftest.$ac_ext <<_ACEOF
21323 /* end confdefs.h. */
21325 /* Override any gcc2 internal prototype to avoid an error. */
21326 #ifdef __cplusplus
21327 extern "C"
21328 #endif
21329 /* We use char because int might match the return type of a gcc2
21330 builtin and then its argument prototype would still apply. */
21331 char pthread_create ();
21333 main ()
21335 pthread_create ();
21337 return 0;
21339 _ACEOF
21340 rm -f conftest.$ac_objext conftest$ac_exeext
21341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21342 (eval $ac_link) 2>conftest.er1
21343 ac_status=$?
21344 grep -v '^ *+' conftest.er1 >conftest.err
21345 rm -f conftest.er1
21346 cat conftest.err >&5
21347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21348 (exit $ac_status); } &&
21349 { ac_try='test -z "$ac_c_werror_flag"
21350 || test ! -s conftest.err'
21351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21352 (eval $ac_try) 2>&5
21353 ac_status=$?
21354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21355 (exit $ac_status); }; } &&
21356 { ac_try='test -s conftest$ac_exeext'
21357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21358 (eval $ac_try) 2>&5
21359 ac_status=$?
21360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21361 (exit $ac_status); }; }; then
21362 ac_cv_lib_pthread_pthread_create=yes
21363 else
21364 echo "$as_me: failed program was:" >&5
21365 sed 's/^/| /' conftest.$ac_ext >&5
21367 ac_cv_lib_pthread_pthread_create=no
21369 rm -f conftest.err conftest.$ac_objext \
21370 conftest$ac_exeext conftest.$ac_ext
21371 LIBS=$ac_check_lib_save_LIBS
21373 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
21374 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
21375 if test $ac_cv_lib_pthread_pthread_create = yes; then
21376 cat >>confdefs.h <<_ACEOF
21377 #define HAVE_LIBPTHREAD 1
21378 _ACEOF
21380 LIBS="-lpthread $LIBS"
21385 echo "$as_me:$LINENO: checking for getprotobyname in -lsocket" >&5
21386 echo $ECHO_N "checking for getprotobyname in -lsocket... $ECHO_C" >&6
21387 if test "${ac_cv_lib_socket_getprotobyname+set}" = set; then
21388 echo $ECHO_N "(cached) $ECHO_C" >&6
21389 else
21390 ac_check_lib_save_LIBS=$LIBS
21391 LIBS="-lsocket $LIBS"
21392 cat >conftest.$ac_ext <<_ACEOF
21393 /* confdefs.h. */
21394 _ACEOF
21395 cat confdefs.h >>conftest.$ac_ext
21396 cat >>conftest.$ac_ext <<_ACEOF
21397 /* end confdefs.h. */
21399 /* Override any gcc2 internal prototype to avoid an error. */
21400 #ifdef __cplusplus
21401 extern "C"
21402 #endif
21403 /* We use char because int might match the return type of a gcc2
21404 builtin and then its argument prototype would still apply. */
21405 char getprotobyname ();
21407 main ()
21409 getprotobyname ();
21411 return 0;
21413 _ACEOF
21414 rm -f conftest.$ac_objext conftest$ac_exeext
21415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21416 (eval $ac_link) 2>conftest.er1
21417 ac_status=$?
21418 grep -v '^ *+' conftest.er1 >conftest.err
21419 rm -f conftest.er1
21420 cat conftest.err >&5
21421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422 (exit $ac_status); } &&
21423 { ac_try='test -z "$ac_c_werror_flag"
21424 || test ! -s conftest.err'
21425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21426 (eval $ac_try) 2>&5
21427 ac_status=$?
21428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429 (exit $ac_status); }; } &&
21430 { ac_try='test -s conftest$ac_exeext'
21431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21432 (eval $ac_try) 2>&5
21433 ac_status=$?
21434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21435 (exit $ac_status); }; }; then
21436 ac_cv_lib_socket_getprotobyname=yes
21437 else
21438 echo "$as_me: failed program was:" >&5
21439 sed 's/^/| /' conftest.$ac_ext >&5
21441 ac_cv_lib_socket_getprotobyname=no
21443 rm -f conftest.err conftest.$ac_objext \
21444 conftest$ac_exeext conftest.$ac_ext
21445 LIBS=$ac_check_lib_save_LIBS
21447 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getprotobyname" >&5
21448 echo "${ECHO_T}$ac_cv_lib_socket_getprotobyname" >&6
21449 if test $ac_cv_lib_socket_getprotobyname = yes; then
21450 cat >>confdefs.h <<_ACEOF
21451 #define HAVE_LIBSOCKET 1
21452 _ACEOF
21454 LIBS="-lsocket $LIBS"
21459 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21460 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
21461 if test "${ac_cv_header_stdc+set}" = set; then
21462 echo $ECHO_N "(cached) $ECHO_C" >&6
21463 else
21464 cat >conftest.$ac_ext <<_ACEOF
21465 /* confdefs.h. */
21466 _ACEOF
21467 cat confdefs.h >>conftest.$ac_ext
21468 cat >>conftest.$ac_ext <<_ACEOF
21469 /* end confdefs.h. */
21470 #include <stdlib.h>
21471 #include <stdarg.h>
21472 #include <string.h>
21473 #include <float.h>
21476 main ()
21480 return 0;
21482 _ACEOF
21483 rm -f conftest.$ac_objext
21484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21485 (eval $ac_compile) 2>conftest.er1
21486 ac_status=$?
21487 grep -v '^ *+' conftest.er1 >conftest.err
21488 rm -f conftest.er1
21489 cat conftest.err >&5
21490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21491 (exit $ac_status); } &&
21492 { ac_try='test -z "$ac_c_werror_flag"
21493 || test ! -s conftest.err'
21494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21495 (eval $ac_try) 2>&5
21496 ac_status=$?
21497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21498 (exit $ac_status); }; } &&
21499 { ac_try='test -s conftest.$ac_objext'
21500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21501 (eval $ac_try) 2>&5
21502 ac_status=$?
21503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21504 (exit $ac_status); }; }; then
21505 ac_cv_header_stdc=yes
21506 else
21507 echo "$as_me: failed program was:" >&5
21508 sed 's/^/| /' conftest.$ac_ext >&5
21510 ac_cv_header_stdc=no
21512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21514 if test $ac_cv_header_stdc = yes; then
21515 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21516 cat >conftest.$ac_ext <<_ACEOF
21517 /* confdefs.h. */
21518 _ACEOF
21519 cat confdefs.h >>conftest.$ac_ext
21520 cat >>conftest.$ac_ext <<_ACEOF
21521 /* end confdefs.h. */
21522 #include <string.h>
21524 _ACEOF
21525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21526 $EGREP "memchr" >/dev/null 2>&1; then
21528 else
21529 ac_cv_header_stdc=no
21531 rm -f conftest*
21535 if test $ac_cv_header_stdc = yes; then
21536 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21537 cat >conftest.$ac_ext <<_ACEOF
21538 /* confdefs.h. */
21539 _ACEOF
21540 cat confdefs.h >>conftest.$ac_ext
21541 cat >>conftest.$ac_ext <<_ACEOF
21542 /* end confdefs.h. */
21543 #include <stdlib.h>
21545 _ACEOF
21546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21547 $EGREP "free" >/dev/null 2>&1; then
21549 else
21550 ac_cv_header_stdc=no
21552 rm -f conftest*
21556 if test $ac_cv_header_stdc = yes; then
21557 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21558 if test "$cross_compiling" = yes; then
21560 else
21561 cat >conftest.$ac_ext <<_ACEOF
21562 /* confdefs.h. */
21563 _ACEOF
21564 cat confdefs.h >>conftest.$ac_ext
21565 cat >>conftest.$ac_ext <<_ACEOF
21566 /* end confdefs.h. */
21567 #include <ctype.h>
21568 #if ((' ' & 0x0FF) == 0x020)
21569 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21570 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21571 #else
21572 # define ISLOWER(c) \
21573 (('a' <= (c) && (c) <= 'i') \
21574 || ('j' <= (c) && (c) <= 'r') \
21575 || ('s' <= (c) && (c) <= 'z'))
21576 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21577 #endif
21579 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21581 main ()
21583 int i;
21584 for (i = 0; i < 256; i++)
21585 if (XOR (islower (i), ISLOWER (i))
21586 || toupper (i) != TOUPPER (i))
21587 exit(2);
21588 exit (0);
21590 _ACEOF
21591 rm -f conftest$ac_exeext
21592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21593 (eval $ac_link) 2>&5
21594 ac_status=$?
21595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21596 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21598 (eval $ac_try) 2>&5
21599 ac_status=$?
21600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21601 (exit $ac_status); }; }; then
21603 else
21604 echo "$as_me: program exited with status $ac_status" >&5
21605 echo "$as_me: failed program was:" >&5
21606 sed 's/^/| /' conftest.$ac_ext >&5
21608 ( exit $ac_status )
21609 ac_cv_header_stdc=no
21611 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21615 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21616 echo "${ECHO_T}$ac_cv_header_stdc" >&6
21617 if test $ac_cv_header_stdc = yes; then
21619 cat >>confdefs.h <<\_ACEOF
21620 #define STDC_HEADERS 1
21621 _ACEOF
21629 for ac_header in fcntl.h strings.h sys/time.h unistd.h
21631 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21633 echo "$as_me:$LINENO: checking for $ac_header" >&5
21634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21636 echo $ECHO_N "(cached) $ECHO_C" >&6
21638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21640 else
21641 # Is the header compilable?
21642 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21643 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
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 $ac_includes_default
21651 #include <$ac_header>
21652 _ACEOF
21653 rm -f conftest.$ac_objext
21654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21655 (eval $ac_compile) 2>conftest.er1
21656 ac_status=$?
21657 grep -v '^ *+' conftest.er1 >conftest.err
21658 rm -f conftest.er1
21659 cat conftest.err >&5
21660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21661 (exit $ac_status); } &&
21662 { ac_try='test -z "$ac_c_werror_flag"
21663 || test ! -s conftest.err'
21664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21665 (eval $ac_try) 2>&5
21666 ac_status=$?
21667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21668 (exit $ac_status); }; } &&
21669 { ac_try='test -s conftest.$ac_objext'
21670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21671 (eval $ac_try) 2>&5
21672 ac_status=$?
21673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21674 (exit $ac_status); }; }; then
21675 ac_header_compiler=yes
21676 else
21677 echo "$as_me: failed program was:" >&5
21678 sed 's/^/| /' conftest.$ac_ext >&5
21680 ac_header_compiler=no
21682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21683 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21684 echo "${ECHO_T}$ac_header_compiler" >&6
21686 # Is the header present?
21687 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21688 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21689 cat >conftest.$ac_ext <<_ACEOF
21690 /* confdefs.h. */
21691 _ACEOF
21692 cat confdefs.h >>conftest.$ac_ext
21693 cat >>conftest.$ac_ext <<_ACEOF
21694 /* end confdefs.h. */
21695 #include <$ac_header>
21696 _ACEOF
21697 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21698 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21699 ac_status=$?
21700 grep -v '^ *+' conftest.er1 >conftest.err
21701 rm -f conftest.er1
21702 cat conftest.err >&5
21703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21704 (exit $ac_status); } >/dev/null; then
21705 if test -s conftest.err; then
21706 ac_cpp_err=$ac_c_preproc_warn_flag
21707 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21708 else
21709 ac_cpp_err=
21711 else
21712 ac_cpp_err=yes
21714 if test -z "$ac_cpp_err"; then
21715 ac_header_preproc=yes
21716 else
21717 echo "$as_me: failed program was:" >&5
21718 sed 's/^/| /' conftest.$ac_ext >&5
21720 ac_header_preproc=no
21722 rm -f conftest.err conftest.$ac_ext
21723 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21724 echo "${ECHO_T}$ac_header_preproc" >&6
21726 # So? What about this header?
21727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21728 yes:no: )
21729 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21730 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21731 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21732 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21733 ac_header_preproc=yes
21735 no:yes:* )
21736 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21737 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21738 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21739 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21740 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21741 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21742 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21743 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21745 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21746 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21747 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21749 cat <<\_ASBOX
21750 ## ---------------------------- ##
21751 ## Report this to tango@esrf.fr ##
21752 ## ---------------------------- ##
21753 _ASBOX
21755 sed "s/^/$as_me: WARNING: /" >&2
21757 esac
21758 echo "$as_me:$LINENO: checking for $ac_header" >&5
21759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21761 echo $ECHO_N "(cached) $ECHO_C" >&6
21762 else
21763 eval "$as_ac_Header=\$ac_header_preproc"
21765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21766 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21769 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21770 cat >>confdefs.h <<_ACEOF
21771 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21772 _ACEOF
21776 done
21779 use_sstream=yes;
21781 if test "x$GCC" = "xyes"; then
21782 case `$CC --version 2>/dev/null` in
21783 [12].*) use_sstream=no ;;
21784 *) use_sstream=yes ;;
21785 esac
21787 if test "x$use_sstream" = "xyes"; then
21788 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
21789 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
21790 if test "${ac_cv_cxx_namespaces+set}" = set; then
21791 echo $ECHO_N "(cached) $ECHO_C" >&6
21792 else
21795 ac_ext=cc
21796 ac_cpp='$CXXCPP $CPPFLAGS'
21797 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21798 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21799 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21801 cat >conftest.$ac_ext <<_ACEOF
21802 /* confdefs.h. */
21803 _ACEOF
21804 cat confdefs.h >>conftest.$ac_ext
21805 cat >>conftest.$ac_ext <<_ACEOF
21806 /* end confdefs.h. */
21807 namespace Outer { namespace Inner { int i = 0; }}
21809 main ()
21811 using namespace Outer::Inner; return i;
21813 return 0;
21815 _ACEOF
21816 rm -f conftest.$ac_objext
21817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21818 (eval $ac_compile) 2>conftest.er1
21819 ac_status=$?
21820 grep -v '^ *+' conftest.er1 >conftest.err
21821 rm -f conftest.er1
21822 cat conftest.err >&5
21823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21824 (exit $ac_status); } &&
21825 { ac_try='test -z "$ac_cxx_werror_flag"
21826 || test ! -s conftest.err'
21827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21828 (eval $ac_try) 2>&5
21829 ac_status=$?
21830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21831 (exit $ac_status); }; } &&
21832 { ac_try='test -s conftest.$ac_objext'
21833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21834 (eval $ac_try) 2>&5
21835 ac_status=$?
21836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21837 (exit $ac_status); }; }; then
21838 ac_cv_cxx_namespaces=yes
21839 else
21840 echo "$as_me: failed program was:" >&5
21841 sed 's/^/| /' conftest.$ac_ext >&5
21843 ac_cv_cxx_namespaces=no
21845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21846 ac_ext=c
21847 ac_cpp='$CPP $CPPFLAGS'
21848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21854 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
21855 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
21856 if test "$ac_cv_cxx_namespaces" = yes; then
21858 cat >>confdefs.h <<\_ACEOF
21859 #define HAVE_NAMESPACES
21860 _ACEOF
21864 echo "$as_me:$LINENO: checking whether the compiler has stringstream" >&5
21865 echo $ECHO_N "checking whether the compiler has stringstream... $ECHO_C" >&6
21866 if test "${ac_cv_cxx_have_sstream+set}" = set; then
21867 echo $ECHO_N "(cached) $ECHO_C" >&6
21868 else
21872 ac_ext=cc
21873 ac_cpp='$CXXCPP $CPPFLAGS'
21874 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21875 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21876 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21878 cat >conftest.$ac_ext <<_ACEOF
21879 /* confdefs.h. */
21880 _ACEOF
21881 cat confdefs.h >>conftest.$ac_ext
21882 cat >>conftest.$ac_ext <<_ACEOF
21883 /* end confdefs.h. */
21884 #include <sstream>
21885 #ifdef HAVE_NAMESPACES
21886 using namespace std;
21887 #endif
21889 main ()
21891 stringstream message; message << "Hello"; return 0;
21893 return 0;
21895 _ACEOF
21896 rm -f conftest.$ac_objext
21897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21898 (eval $ac_compile) 2>conftest.er1
21899 ac_status=$?
21900 grep -v '^ *+' conftest.er1 >conftest.err
21901 rm -f conftest.er1
21902 cat conftest.err >&5
21903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21904 (exit $ac_status); } &&
21905 { ac_try='test -z "$ac_cxx_werror_flag"
21906 || test ! -s conftest.err'
21907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21908 (eval $ac_try) 2>&5
21909 ac_status=$?
21910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21911 (exit $ac_status); }; } &&
21912 { ac_try='test -s conftest.$ac_objext'
21913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21914 (eval $ac_try) 2>&5
21915 ac_status=$?
21916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21917 (exit $ac_status); }; }; then
21918 ac_cv_cxx_have_sstream=yes
21919 else
21920 echo "$as_me: failed program was:" >&5
21921 sed 's/^/| /' conftest.$ac_ext >&5
21923 ac_cv_cxx_have_sstream=no
21925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21926 ac_ext=c
21927 ac_cpp='$CPP $CPPFLAGS'
21928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21934 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_sstream" >&5
21935 echo "${ECHO_T}$ac_cv_cxx_have_sstream" >&6
21936 if test "$ac_cv_cxx_have_sstream" = yes; then
21938 cat >>confdefs.h <<\_ACEOF
21939 #define HAVE_SSTREAM
21940 _ACEOF
21946 if test "x$use_sstream" = "xno"; then
21949 ac_ext=cc
21950 ac_cpp='$CXXCPP $CPPFLAGS'
21951 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21952 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21953 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21955 if test "${ac_cv_header_strstream+set}" = set; then
21956 echo "$as_me:$LINENO: checking for strstream" >&5
21957 echo $ECHO_N "checking for strstream... $ECHO_C" >&6
21958 if test "${ac_cv_header_strstream+set}" = set; then
21959 echo $ECHO_N "(cached) $ECHO_C" >&6
21961 echo "$as_me:$LINENO: result: $ac_cv_header_strstream" >&5
21962 echo "${ECHO_T}$ac_cv_header_strstream" >&6
21963 else
21964 # Is the header compilable?
21965 echo "$as_me:$LINENO: checking strstream usability" >&5
21966 echo $ECHO_N "checking strstream usability... $ECHO_C" >&6
21967 cat >conftest.$ac_ext <<_ACEOF
21968 /* confdefs.h. */
21969 _ACEOF
21970 cat confdefs.h >>conftest.$ac_ext
21971 cat >>conftest.$ac_ext <<_ACEOF
21972 /* end confdefs.h. */
21973 $ac_includes_default
21974 #include <strstream>
21975 _ACEOF
21976 rm -f conftest.$ac_objext
21977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21978 (eval $ac_compile) 2>conftest.er1
21979 ac_status=$?
21980 grep -v '^ *+' conftest.er1 >conftest.err
21981 rm -f conftest.er1
21982 cat conftest.err >&5
21983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21984 (exit $ac_status); } &&
21985 { ac_try='test -z "$ac_cxx_werror_flag"
21986 || test ! -s conftest.err'
21987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21988 (eval $ac_try) 2>&5
21989 ac_status=$?
21990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21991 (exit $ac_status); }; } &&
21992 { ac_try='test -s conftest.$ac_objext'
21993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21994 (eval $ac_try) 2>&5
21995 ac_status=$?
21996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21997 (exit $ac_status); }; }; then
21998 ac_header_compiler=yes
21999 else
22000 echo "$as_me: failed program was:" >&5
22001 sed 's/^/| /' conftest.$ac_ext >&5
22003 ac_header_compiler=no
22005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22006 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22007 echo "${ECHO_T}$ac_header_compiler" >&6
22009 # Is the header present?
22010 echo "$as_me:$LINENO: checking strstream presence" >&5
22011 echo $ECHO_N "checking strstream presence... $ECHO_C" >&6
22012 cat >conftest.$ac_ext <<_ACEOF
22013 /* confdefs.h. */
22014 _ACEOF
22015 cat confdefs.h >>conftest.$ac_ext
22016 cat >>conftest.$ac_ext <<_ACEOF
22017 /* end confdefs.h. */
22018 #include <strstream>
22019 _ACEOF
22020 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22021 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22022 ac_status=$?
22023 grep -v '^ *+' conftest.er1 >conftest.err
22024 rm -f conftest.er1
22025 cat conftest.err >&5
22026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22027 (exit $ac_status); } >/dev/null; then
22028 if test -s conftest.err; then
22029 ac_cpp_err=$ac_cxx_preproc_warn_flag
22030 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
22031 else
22032 ac_cpp_err=
22034 else
22035 ac_cpp_err=yes
22037 if test -z "$ac_cpp_err"; then
22038 ac_header_preproc=yes
22039 else
22040 echo "$as_me: failed program was:" >&5
22041 sed 's/^/| /' conftest.$ac_ext >&5
22043 ac_header_preproc=no
22045 rm -f conftest.err conftest.$ac_ext
22046 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22047 echo "${ECHO_T}$ac_header_preproc" >&6
22049 # So? What about this header?
22050 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22051 yes:no: )
22052 { echo "$as_me:$LINENO: WARNING: strstream: accepted by the compiler, rejected by the preprocessor!" >&5
22053 echo "$as_me: WARNING: strstream: accepted by the compiler, rejected by the preprocessor!" >&2;}
22054 { echo "$as_me:$LINENO: WARNING: strstream: proceeding with the compiler's result" >&5
22055 echo "$as_me: WARNING: strstream: proceeding with the compiler's result" >&2;}
22056 ac_header_preproc=yes
22058 no:yes:* )
22059 { echo "$as_me:$LINENO: WARNING: strstream: present but cannot be compiled" >&5
22060 echo "$as_me: WARNING: strstream: present but cannot be compiled" >&2;}
22061 { echo "$as_me:$LINENO: WARNING: strstream: check for missing prerequisite headers?" >&5
22062 echo "$as_me: WARNING: strstream: check for missing prerequisite headers?" >&2;}
22063 { echo "$as_me:$LINENO: WARNING: strstream: see the Autoconf documentation" >&5
22064 echo "$as_me: WARNING: strstream: see the Autoconf documentation" >&2;}
22065 { echo "$as_me:$LINENO: WARNING: strstream: section \"Present But Cannot Be Compiled\"" >&5
22066 echo "$as_me: WARNING: strstream: section \"Present But Cannot Be Compiled\"" >&2;}
22067 { echo "$as_me:$LINENO: WARNING: strstream: proceeding with the preprocessor's result" >&5
22068 echo "$as_me: WARNING: strstream: proceeding with the preprocessor's result" >&2;}
22069 { echo "$as_me:$LINENO: WARNING: strstream: in the future, the compiler will take precedence" >&5
22070 echo "$as_me: WARNING: strstream: in the future, the compiler will take precedence" >&2;}
22072 cat <<\_ASBOX
22073 ## ---------------------------- ##
22074 ## Report this to tango@esrf.fr ##
22075 ## ---------------------------- ##
22076 _ASBOX
22078 sed "s/^/$as_me: WARNING: /" >&2
22080 esac
22081 echo "$as_me:$LINENO: checking for strstream" >&5
22082 echo $ECHO_N "checking for strstream... $ECHO_C" >&6
22083 if test "${ac_cv_header_strstream+set}" = set; then
22084 echo $ECHO_N "(cached) $ECHO_C" >&6
22085 else
22086 ac_cv_header_strstream=$ac_header_preproc
22088 echo "$as_me:$LINENO: result: $ac_cv_header_strstream" >&5
22089 echo "${ECHO_T}$ac_cv_header_strstream" >&6
22092 if test $ac_cv_header_strstream = yes; then
22094 cat >>confdefs.h <<\_ACEOF
22095 #define HAVE_STRSTREAM 1
22096 _ACEOF
22101 ac_ext=c
22102 ac_cpp='$CPP $CPPFLAGS'
22103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22108 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22109 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
22110 if test "${ac_cv_c_const+set}" = set; then
22111 echo $ECHO_N "(cached) $ECHO_C" >&6
22112 else
22113 cat >conftest.$ac_ext <<_ACEOF
22114 /* confdefs.h. */
22115 _ACEOF
22116 cat confdefs.h >>conftest.$ac_ext
22117 cat >>conftest.$ac_ext <<_ACEOF
22118 /* end confdefs.h. */
22121 main ()
22123 /* FIXME: Include the comments suggested by Paul. */
22124 #ifndef __cplusplus
22125 /* Ultrix mips cc rejects this. */
22126 typedef int charset[2];
22127 const charset x;
22128 /* SunOS 4.1.1 cc rejects this. */
22129 char const *const *ccp;
22130 char **p;
22131 /* NEC SVR4.0.2 mips cc rejects this. */
22132 struct point {int x, y;};
22133 static struct point const zero = {0,0};
22134 /* AIX XL C 1.02.0.0 rejects this.
22135 It does not let you subtract one const X* pointer from another in
22136 an arm of an if-expression whose if-part is not a constant
22137 expression */
22138 const char *g = "string";
22139 ccp = &g + (g ? g-g : 0);
22140 /* HPUX 7.0 cc rejects these. */
22141 ++ccp;
22142 p = (char**) ccp;
22143 ccp = (char const *const *) p;
22144 { /* SCO 3.2v4 cc rejects this. */
22145 char *t;
22146 char const *s = 0 ? (char *) 0 : (char const *) 0;
22148 *t++ = 0;
22150 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22151 int x[] = {25, 17};
22152 const int *foo = &x[0];
22153 ++foo;
22155 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22156 typedef const int *iptr;
22157 iptr p = 0;
22158 ++p;
22160 { /* AIX XL C 1.02.0.0 rejects this saying
22161 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22162 struct s { int j; const int *ap[3]; };
22163 struct s *b; b->j = 5;
22165 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22166 const int foo = 10;
22168 #endif
22171 return 0;
22173 _ACEOF
22174 rm -f conftest.$ac_objext
22175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22176 (eval $ac_compile) 2>conftest.er1
22177 ac_status=$?
22178 grep -v '^ *+' conftest.er1 >conftest.err
22179 rm -f conftest.er1
22180 cat conftest.err >&5
22181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22182 (exit $ac_status); } &&
22183 { ac_try='test -z "$ac_c_werror_flag"
22184 || test ! -s conftest.err'
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); }; } &&
22190 { ac_try='test -s conftest.$ac_objext'
22191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22192 (eval $ac_try) 2>&5
22193 ac_status=$?
22194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22195 (exit $ac_status); }; }; then
22196 ac_cv_c_const=yes
22197 else
22198 echo "$as_me: failed program was:" >&5
22199 sed 's/^/| /' conftest.$ac_ext >&5
22201 ac_cv_c_const=no
22203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22205 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22206 echo "${ECHO_T}$ac_cv_c_const" >&6
22207 if test $ac_cv_c_const = no; then
22209 cat >>confdefs.h <<\_ACEOF
22210 #define const
22211 _ACEOF
22215 echo "$as_me:$LINENO: checking for inline" >&5
22216 echo $ECHO_N "checking for inline... $ECHO_C" >&6
22217 if test "${ac_cv_c_inline+set}" = set; then
22218 echo $ECHO_N "(cached) $ECHO_C" >&6
22219 else
22220 ac_cv_c_inline=no
22221 for ac_kw in inline __inline__ __inline; do
22222 cat >conftest.$ac_ext <<_ACEOF
22223 /* confdefs.h. */
22224 _ACEOF
22225 cat confdefs.h >>conftest.$ac_ext
22226 cat >>conftest.$ac_ext <<_ACEOF
22227 /* end confdefs.h. */
22228 #ifndef __cplusplus
22229 typedef int foo_t;
22230 static $ac_kw foo_t static_foo () {return 0; }
22231 $ac_kw foo_t foo () {return 0; }
22232 #endif
22234 _ACEOF
22235 rm -f conftest.$ac_objext
22236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22237 (eval $ac_compile) 2>conftest.er1
22238 ac_status=$?
22239 grep -v '^ *+' conftest.er1 >conftest.err
22240 rm -f conftest.er1
22241 cat conftest.err >&5
22242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22243 (exit $ac_status); } &&
22244 { ac_try='test -z "$ac_c_werror_flag"
22245 || test ! -s conftest.err'
22246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22247 (eval $ac_try) 2>&5
22248 ac_status=$?
22249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22250 (exit $ac_status); }; } &&
22251 { ac_try='test -s conftest.$ac_objext'
22252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22253 (eval $ac_try) 2>&5
22254 ac_status=$?
22255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22256 (exit $ac_status); }; }; then
22257 ac_cv_c_inline=$ac_kw; break
22258 else
22259 echo "$as_me: failed program was:" >&5
22260 sed 's/^/| /' conftest.$ac_ext >&5
22263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22264 done
22267 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
22268 echo "${ECHO_T}$ac_cv_c_inline" >&6
22271 case $ac_cv_c_inline in
22272 inline | yes) ;;
22274 case $ac_cv_c_inline in
22275 no) ac_val=;;
22276 *) ac_val=$ac_cv_c_inline;;
22277 esac
22278 cat >>confdefs.h <<_ACEOF
22279 #ifndef __cplusplus
22280 #define inline $ac_val
22281 #endif
22282 _ACEOF
22284 esac
22286 echo "$as_me:$LINENO: checking for pid_t" >&5
22287 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
22288 if test "${ac_cv_type_pid_t+set}" = set; then
22289 echo $ECHO_N "(cached) $ECHO_C" >&6
22290 else
22291 cat >conftest.$ac_ext <<_ACEOF
22292 /* confdefs.h. */
22293 _ACEOF
22294 cat confdefs.h >>conftest.$ac_ext
22295 cat >>conftest.$ac_ext <<_ACEOF
22296 /* end confdefs.h. */
22297 $ac_includes_default
22299 main ()
22301 if ((pid_t *) 0)
22302 return 0;
22303 if (sizeof (pid_t))
22304 return 0;
22306 return 0;
22308 _ACEOF
22309 rm -f conftest.$ac_objext
22310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22311 (eval $ac_compile) 2>conftest.er1
22312 ac_status=$?
22313 grep -v '^ *+' conftest.er1 >conftest.err
22314 rm -f conftest.er1
22315 cat conftest.err >&5
22316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22317 (exit $ac_status); } &&
22318 { ac_try='test -z "$ac_c_werror_flag"
22319 || test ! -s conftest.err'
22320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22321 (eval $ac_try) 2>&5
22322 ac_status=$?
22323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22324 (exit $ac_status); }; } &&
22325 { ac_try='test -s conftest.$ac_objext'
22326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22327 (eval $ac_try) 2>&5
22328 ac_status=$?
22329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22330 (exit $ac_status); }; }; then
22331 ac_cv_type_pid_t=yes
22332 else
22333 echo "$as_me: failed program was:" >&5
22334 sed 's/^/| /' conftest.$ac_ext >&5
22336 ac_cv_type_pid_t=no
22338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22340 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22341 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
22342 if test $ac_cv_type_pid_t = yes; then
22344 else
22346 cat >>confdefs.h <<_ACEOF
22347 #define pid_t int
22348 _ACEOF
22352 echo "$as_me:$LINENO: checking for size_t" >&5
22353 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22354 if test "${ac_cv_type_size_t+set}" = set; then
22355 echo $ECHO_N "(cached) $ECHO_C" >&6
22356 else
22357 cat >conftest.$ac_ext <<_ACEOF
22358 /* confdefs.h. */
22359 _ACEOF
22360 cat confdefs.h >>conftest.$ac_ext
22361 cat >>conftest.$ac_ext <<_ACEOF
22362 /* end confdefs.h. */
22363 $ac_includes_default
22365 main ()
22367 if ((size_t *) 0)
22368 return 0;
22369 if (sizeof (size_t))
22370 return 0;
22372 return 0;
22374 _ACEOF
22375 rm -f conftest.$ac_objext
22376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22377 (eval $ac_compile) 2>conftest.er1
22378 ac_status=$?
22379 grep -v '^ *+' conftest.er1 >conftest.err
22380 rm -f conftest.er1
22381 cat conftest.err >&5
22382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22383 (exit $ac_status); } &&
22384 { ac_try='test -z "$ac_c_werror_flag"
22385 || test ! -s conftest.err'
22386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22387 (eval $ac_try) 2>&5
22388 ac_status=$?
22389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22390 (exit $ac_status); }; } &&
22391 { ac_try='test -s conftest.$ac_objext'
22392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22393 (eval $ac_try) 2>&5
22394 ac_status=$?
22395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22396 (exit $ac_status); }; }; then
22397 ac_cv_type_size_t=yes
22398 else
22399 echo "$as_me: failed program was:" >&5
22400 sed 's/^/| /' conftest.$ac_ext >&5
22402 ac_cv_type_size_t=no
22404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22406 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22407 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22408 if test $ac_cv_type_size_t = yes; then
22410 else
22412 cat >>confdefs.h <<_ACEOF
22413 #define size_t unsigned
22414 _ACEOF
22418 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22419 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
22420 if test "${ac_cv_header_time+set}" = set; then
22421 echo $ECHO_N "(cached) $ECHO_C" >&6
22422 else
22423 cat >conftest.$ac_ext <<_ACEOF
22424 /* confdefs.h. */
22425 _ACEOF
22426 cat confdefs.h >>conftest.$ac_ext
22427 cat >>conftest.$ac_ext <<_ACEOF
22428 /* end confdefs.h. */
22429 #include <sys/types.h>
22430 #include <sys/time.h>
22431 #include <time.h>
22434 main ()
22436 if ((struct tm *) 0)
22437 return 0;
22439 return 0;
22441 _ACEOF
22442 rm -f conftest.$ac_objext
22443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22444 (eval $ac_compile) 2>conftest.er1
22445 ac_status=$?
22446 grep -v '^ *+' conftest.er1 >conftest.err
22447 rm -f conftest.er1
22448 cat conftest.err >&5
22449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22450 (exit $ac_status); } &&
22451 { ac_try='test -z "$ac_c_werror_flag"
22452 || test ! -s conftest.err'
22453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22454 (eval $ac_try) 2>&5
22455 ac_status=$?
22456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22457 (exit $ac_status); }; } &&
22458 { ac_try='test -s conftest.$ac_objext'
22459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22460 (eval $ac_try) 2>&5
22461 ac_status=$?
22462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22463 (exit $ac_status); }; }; then
22464 ac_cv_header_time=yes
22465 else
22466 echo "$as_me: failed program was:" >&5
22467 sed 's/^/| /' conftest.$ac_ext >&5
22469 ac_cv_header_time=no
22471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22473 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22474 echo "${ECHO_T}$ac_cv_header_time" >&6
22475 if test $ac_cv_header_time = yes; then
22477 cat >>confdefs.h <<\_ACEOF
22478 #define TIME_WITH_SYS_TIME 1
22479 _ACEOF
22483 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22484 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22485 if test "${ac_cv_struct_tm+set}" = set; then
22486 echo $ECHO_N "(cached) $ECHO_C" >&6
22487 else
22488 cat >conftest.$ac_ext <<_ACEOF
22489 /* confdefs.h. */
22490 _ACEOF
22491 cat confdefs.h >>conftest.$ac_ext
22492 cat >>conftest.$ac_ext <<_ACEOF
22493 /* end confdefs.h. */
22494 #include <sys/types.h>
22495 #include <time.h>
22498 main ()
22500 struct tm *tp; tp->tm_sec;
22502 return 0;
22504 _ACEOF
22505 rm -f conftest.$ac_objext
22506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22507 (eval $ac_compile) 2>conftest.er1
22508 ac_status=$?
22509 grep -v '^ *+' conftest.er1 >conftest.err
22510 rm -f conftest.er1
22511 cat conftest.err >&5
22512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22513 (exit $ac_status); } &&
22514 { ac_try='test -z "$ac_c_werror_flag"
22515 || test ! -s conftest.err'
22516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22517 (eval $ac_try) 2>&5
22518 ac_status=$?
22519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22520 (exit $ac_status); }; } &&
22521 { ac_try='test -s conftest.$ac_objext'
22522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22523 (eval $ac_try) 2>&5
22524 ac_status=$?
22525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22526 (exit $ac_status); }; }; then
22527 ac_cv_struct_tm=time.h
22528 else
22529 echo "$as_me: failed program was:" >&5
22530 sed 's/^/| /' conftest.$ac_ext >&5
22532 ac_cv_struct_tm=sys/time.h
22534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22536 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22537 echo "${ECHO_T}$ac_cv_struct_tm" >&6
22538 if test $ac_cv_struct_tm = sys/time.h; then
22540 cat >>confdefs.h <<\_ACEOF
22541 #define TM_IN_SYS_TIME 1
22542 _ACEOF
22547 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
22548 # for constant arguments. Useless!
22549 echo "$as_me:$LINENO: checking for working alloca.h" >&5
22550 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
22551 if test "${ac_cv_working_alloca_h+set}" = set; then
22552 echo $ECHO_N "(cached) $ECHO_C" >&6
22553 else
22554 cat >conftest.$ac_ext <<_ACEOF
22555 /* confdefs.h. */
22556 _ACEOF
22557 cat confdefs.h >>conftest.$ac_ext
22558 cat >>conftest.$ac_ext <<_ACEOF
22559 /* end confdefs.h. */
22560 #include <alloca.h>
22562 main ()
22564 char *p = (char *) alloca (2 * sizeof (int));
22566 return 0;
22568 _ACEOF
22569 rm -f conftest.$ac_objext conftest$ac_exeext
22570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22571 (eval $ac_link) 2>conftest.er1
22572 ac_status=$?
22573 grep -v '^ *+' conftest.er1 >conftest.err
22574 rm -f conftest.er1
22575 cat conftest.err >&5
22576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577 (exit $ac_status); } &&
22578 { ac_try='test -z "$ac_c_werror_flag"
22579 || test ! -s conftest.err'
22580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22581 (eval $ac_try) 2>&5
22582 ac_status=$?
22583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22584 (exit $ac_status); }; } &&
22585 { ac_try='test -s conftest$ac_exeext'
22586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22587 (eval $ac_try) 2>&5
22588 ac_status=$?
22589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22590 (exit $ac_status); }; }; then
22591 ac_cv_working_alloca_h=yes
22592 else
22593 echo "$as_me: failed program was:" >&5
22594 sed 's/^/| /' conftest.$ac_ext >&5
22596 ac_cv_working_alloca_h=no
22598 rm -f conftest.err conftest.$ac_objext \
22599 conftest$ac_exeext conftest.$ac_ext
22601 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
22602 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
22603 if test $ac_cv_working_alloca_h = yes; then
22605 cat >>confdefs.h <<\_ACEOF
22606 #define HAVE_ALLOCA_H 1
22607 _ACEOF
22611 echo "$as_me:$LINENO: checking for alloca" >&5
22612 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
22613 if test "${ac_cv_func_alloca_works+set}" = set; then
22614 echo $ECHO_N "(cached) $ECHO_C" >&6
22615 else
22616 cat >conftest.$ac_ext <<_ACEOF
22617 /* confdefs.h. */
22618 _ACEOF
22619 cat confdefs.h >>conftest.$ac_ext
22620 cat >>conftest.$ac_ext <<_ACEOF
22621 /* end confdefs.h. */
22622 #ifdef __GNUC__
22623 # define alloca __builtin_alloca
22624 #else
22625 # ifdef _MSC_VER
22626 # include <malloc.h>
22627 # define alloca _alloca
22628 # else
22629 # if HAVE_ALLOCA_H
22630 # include <alloca.h>
22631 # else
22632 # ifdef _AIX
22633 #pragma alloca
22634 # else
22635 # ifndef alloca /* predefined by HP cc +Olibcalls */
22636 char *alloca ();
22637 # endif
22638 # endif
22639 # endif
22640 # endif
22641 #endif
22644 main ()
22646 char *p = (char *) alloca (1);
22648 return 0;
22650 _ACEOF
22651 rm -f conftest.$ac_objext conftest$ac_exeext
22652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22653 (eval $ac_link) 2>conftest.er1
22654 ac_status=$?
22655 grep -v '^ *+' conftest.er1 >conftest.err
22656 rm -f conftest.er1
22657 cat conftest.err >&5
22658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22659 (exit $ac_status); } &&
22660 { ac_try='test -z "$ac_c_werror_flag"
22661 || test ! -s conftest.err'
22662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22663 (eval $ac_try) 2>&5
22664 ac_status=$?
22665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22666 (exit $ac_status); }; } &&
22667 { ac_try='test -s conftest$ac_exeext'
22668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22669 (eval $ac_try) 2>&5
22670 ac_status=$?
22671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22672 (exit $ac_status); }; }; then
22673 ac_cv_func_alloca_works=yes
22674 else
22675 echo "$as_me: failed program was:" >&5
22676 sed 's/^/| /' conftest.$ac_ext >&5
22678 ac_cv_func_alloca_works=no
22680 rm -f conftest.err conftest.$ac_objext \
22681 conftest$ac_exeext conftest.$ac_ext
22683 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
22684 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
22686 if test $ac_cv_func_alloca_works = yes; then
22688 cat >>confdefs.h <<\_ACEOF
22689 #define HAVE_ALLOCA 1
22690 _ACEOF
22692 else
22693 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
22694 # that cause trouble. Some versions do not even contain alloca or
22695 # contain a buggy version. If you still want to use their alloca,
22696 # use ar to extract alloca.o from them instead of compiling alloca.c.
22698 ALLOCA=alloca.$ac_objext
22700 cat >>confdefs.h <<\_ACEOF
22701 #define C_ALLOCA 1
22702 _ACEOF
22705 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
22706 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
22707 if test "${ac_cv_os_cray+set}" = set; then
22708 echo $ECHO_N "(cached) $ECHO_C" >&6
22709 else
22710 cat >conftest.$ac_ext <<_ACEOF
22711 /* confdefs.h. */
22712 _ACEOF
22713 cat confdefs.h >>conftest.$ac_ext
22714 cat >>conftest.$ac_ext <<_ACEOF
22715 /* end confdefs.h. */
22716 #if defined(CRAY) && ! defined(CRAY2)
22717 webecray
22718 #else
22719 wenotbecray
22720 #endif
22722 _ACEOF
22723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22724 $EGREP "webecray" >/dev/null 2>&1; then
22725 ac_cv_os_cray=yes
22726 else
22727 ac_cv_os_cray=no
22729 rm -f conftest*
22732 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
22733 echo "${ECHO_T}$ac_cv_os_cray" >&6
22734 if test $ac_cv_os_cray = yes; then
22735 for ac_func in _getb67 GETB67 getb67; do
22736 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22737 echo "$as_me:$LINENO: checking for $ac_func" >&5
22738 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22739 if eval "test \"\${$as_ac_var+set}\" = set"; then
22740 echo $ECHO_N "(cached) $ECHO_C" >&6
22741 else
22742 cat >conftest.$ac_ext <<_ACEOF
22743 /* confdefs.h. */
22744 _ACEOF
22745 cat confdefs.h >>conftest.$ac_ext
22746 cat >>conftest.$ac_ext <<_ACEOF
22747 /* end confdefs.h. */
22748 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22750 #define $ac_func innocuous_$ac_func
22752 /* System header to define __stub macros and hopefully few prototypes,
22753 which can conflict with char $ac_func (); below.
22754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22755 <limits.h> exists even on freestanding compilers. */
22757 #ifdef __STDC__
22758 # include <limits.h>
22759 #else
22760 # include <assert.h>
22761 #endif
22763 #undef $ac_func
22765 /* Override any gcc2 internal prototype to avoid an error. */
22766 #ifdef __cplusplus
22767 extern "C"
22769 #endif
22770 /* We use char because int might match the return type of a gcc2
22771 builtin and then its argument prototype would still apply. */
22772 char $ac_func ();
22773 /* The GNU C library defines this for functions which it implements
22774 to always fail with ENOSYS. Some functions are actually named
22775 something starting with __ and the normal name is an alias. */
22776 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22777 choke me
22778 #else
22779 char (*f) () = $ac_func;
22780 #endif
22781 #ifdef __cplusplus
22783 #endif
22786 main ()
22788 return f != $ac_func;
22790 return 0;
22792 _ACEOF
22793 rm -f conftest.$ac_objext conftest$ac_exeext
22794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22795 (eval $ac_link) 2>conftest.er1
22796 ac_status=$?
22797 grep -v '^ *+' conftest.er1 >conftest.err
22798 rm -f conftest.er1
22799 cat conftest.err >&5
22800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22801 (exit $ac_status); } &&
22802 { ac_try='test -z "$ac_c_werror_flag"
22803 || test ! -s conftest.err'
22804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22805 (eval $ac_try) 2>&5
22806 ac_status=$?
22807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22808 (exit $ac_status); }; } &&
22809 { ac_try='test -s conftest$ac_exeext'
22810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22811 (eval $ac_try) 2>&5
22812 ac_status=$?
22813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22814 (exit $ac_status); }; }; then
22815 eval "$as_ac_var=yes"
22816 else
22817 echo "$as_me: failed program was:" >&5
22818 sed 's/^/| /' conftest.$ac_ext >&5
22820 eval "$as_ac_var=no"
22822 rm -f conftest.err conftest.$ac_objext \
22823 conftest$ac_exeext conftest.$ac_ext
22825 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22826 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22827 if test `eval echo '${'$as_ac_var'}'` = yes; then
22829 cat >>confdefs.h <<_ACEOF
22830 #define CRAY_STACKSEG_END $ac_func
22831 _ACEOF
22833 break
22836 done
22839 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
22840 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
22841 if test "${ac_cv_c_stack_direction+set}" = set; then
22842 echo $ECHO_N "(cached) $ECHO_C" >&6
22843 else
22844 if test "$cross_compiling" = yes; then
22845 ac_cv_c_stack_direction=0
22846 else
22847 cat >conftest.$ac_ext <<_ACEOF
22848 /* confdefs.h. */
22849 _ACEOF
22850 cat confdefs.h >>conftest.$ac_ext
22851 cat >>conftest.$ac_ext <<_ACEOF
22852 /* end confdefs.h. */
22854 find_stack_direction ()
22856 static char *addr = 0;
22857 auto char dummy;
22858 if (addr == 0)
22860 addr = &dummy;
22861 return find_stack_direction ();
22863 else
22864 return (&dummy > addr) ? 1 : -1;
22868 main ()
22870 exit (find_stack_direction () < 0);
22872 _ACEOF
22873 rm -f conftest$ac_exeext
22874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22875 (eval $ac_link) 2>&5
22876 ac_status=$?
22877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22878 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22880 (eval $ac_try) 2>&5
22881 ac_status=$?
22882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22883 (exit $ac_status); }; }; then
22884 ac_cv_c_stack_direction=1
22885 else
22886 echo "$as_me: program exited with status $ac_status" >&5
22887 echo "$as_me: failed program was:" >&5
22888 sed 's/^/| /' conftest.$ac_ext >&5
22890 ( exit $ac_status )
22891 ac_cv_c_stack_direction=-1
22893 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22896 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
22897 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
22899 cat >>confdefs.h <<_ACEOF
22900 #define STACK_DIRECTION $ac_cv_c_stack_direction
22901 _ACEOF
22906 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
22907 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
22908 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
22909 echo $ECHO_N "(cached) $ECHO_C" >&6
22910 else
22911 cat >conftest.$ac_ext <<_ACEOF
22912 /* confdefs.h. */
22913 _ACEOF
22914 cat confdefs.h >>conftest.$ac_ext
22915 cat >>conftest.$ac_ext <<_ACEOF
22916 /* end confdefs.h. */
22917 #include <sys/types.h>
22919 main ()
22921 return makedev(0, 0);
22923 return 0;
22925 _ACEOF
22926 rm -f conftest.$ac_objext conftest$ac_exeext
22927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22928 (eval $ac_link) 2>conftest.er1
22929 ac_status=$?
22930 grep -v '^ *+' conftest.er1 >conftest.err
22931 rm -f conftest.er1
22932 cat conftest.err >&5
22933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22934 (exit $ac_status); } &&
22935 { ac_try='test -z "$ac_c_werror_flag"
22936 || test ! -s conftest.err'
22937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22938 (eval $ac_try) 2>&5
22939 ac_status=$?
22940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22941 (exit $ac_status); }; } &&
22942 { ac_try='test -s conftest$ac_exeext'
22943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22944 (eval $ac_try) 2>&5
22945 ac_status=$?
22946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22947 (exit $ac_status); }; }; then
22948 ac_cv_header_sys_types_h_makedev=yes
22949 else
22950 echo "$as_me: failed program was:" >&5
22951 sed 's/^/| /' conftest.$ac_ext >&5
22953 ac_cv_header_sys_types_h_makedev=no
22955 rm -f conftest.err conftest.$ac_objext \
22956 conftest$ac_exeext conftest.$ac_ext
22959 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
22960 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
22962 if test $ac_cv_header_sys_types_h_makedev = no; then
22963 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
22964 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
22965 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
22966 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
22967 echo $ECHO_N "(cached) $ECHO_C" >&6
22969 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
22970 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
22971 else
22972 # Is the header compilable?
22973 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
22974 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
22975 cat >conftest.$ac_ext <<_ACEOF
22976 /* confdefs.h. */
22977 _ACEOF
22978 cat confdefs.h >>conftest.$ac_ext
22979 cat >>conftest.$ac_ext <<_ACEOF
22980 /* end confdefs.h. */
22981 $ac_includes_default
22982 #include <sys/mkdev.h>
22983 _ACEOF
22984 rm -f conftest.$ac_objext
22985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22986 (eval $ac_compile) 2>conftest.er1
22987 ac_status=$?
22988 grep -v '^ *+' conftest.er1 >conftest.err
22989 rm -f conftest.er1
22990 cat conftest.err >&5
22991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22992 (exit $ac_status); } &&
22993 { ac_try='test -z "$ac_c_werror_flag"
22994 || test ! -s conftest.err'
22995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22996 (eval $ac_try) 2>&5
22997 ac_status=$?
22998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22999 (exit $ac_status); }; } &&
23000 { ac_try='test -s conftest.$ac_objext'
23001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23002 (eval $ac_try) 2>&5
23003 ac_status=$?
23004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23005 (exit $ac_status); }; }; then
23006 ac_header_compiler=yes
23007 else
23008 echo "$as_me: failed program was:" >&5
23009 sed 's/^/| /' conftest.$ac_ext >&5
23011 ac_header_compiler=no
23013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23014 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23015 echo "${ECHO_T}$ac_header_compiler" >&6
23017 # Is the header present?
23018 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
23019 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
23020 cat >conftest.$ac_ext <<_ACEOF
23021 /* confdefs.h. */
23022 _ACEOF
23023 cat confdefs.h >>conftest.$ac_ext
23024 cat >>conftest.$ac_ext <<_ACEOF
23025 /* end confdefs.h. */
23026 #include <sys/mkdev.h>
23027 _ACEOF
23028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23029 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23030 ac_status=$?
23031 grep -v '^ *+' conftest.er1 >conftest.err
23032 rm -f conftest.er1
23033 cat conftest.err >&5
23034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23035 (exit $ac_status); } >/dev/null; then
23036 if test -s conftest.err; then
23037 ac_cpp_err=$ac_c_preproc_warn_flag
23038 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23039 else
23040 ac_cpp_err=
23042 else
23043 ac_cpp_err=yes
23045 if test -z "$ac_cpp_err"; then
23046 ac_header_preproc=yes
23047 else
23048 echo "$as_me: failed program was:" >&5
23049 sed 's/^/| /' conftest.$ac_ext >&5
23051 ac_header_preproc=no
23053 rm -f conftest.err conftest.$ac_ext
23054 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23055 echo "${ECHO_T}$ac_header_preproc" >&6
23057 # So? What about this header?
23058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23059 yes:no: )
23060 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
23061 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23062 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
23063 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
23064 ac_header_preproc=yes
23066 no:yes:* )
23067 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
23068 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
23069 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
23070 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
23071 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
23072 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
23073 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
23074 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
23075 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
23076 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
23077 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
23078 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
23080 cat <<\_ASBOX
23081 ## ---------------------------- ##
23082 ## Report this to tango@esrf.fr ##
23083 ## ---------------------------- ##
23084 _ASBOX
23086 sed "s/^/$as_me: WARNING: /" >&2
23088 esac
23089 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
23090 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
23091 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
23092 echo $ECHO_N "(cached) $ECHO_C" >&6
23093 else
23094 ac_cv_header_sys_mkdev_h=$ac_header_preproc
23096 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
23097 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
23100 if test $ac_cv_header_sys_mkdev_h = yes; then
23102 cat >>confdefs.h <<\_ACEOF
23103 #define MAJOR_IN_MKDEV 1
23104 _ACEOF
23110 if test $ac_cv_header_sys_mkdev_h = no; then
23111 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
23112 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
23113 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
23114 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
23115 echo $ECHO_N "(cached) $ECHO_C" >&6
23117 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
23118 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
23119 else
23120 # Is the header compilable?
23121 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
23122 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
23123 cat >conftest.$ac_ext <<_ACEOF
23124 /* confdefs.h. */
23125 _ACEOF
23126 cat confdefs.h >>conftest.$ac_ext
23127 cat >>conftest.$ac_ext <<_ACEOF
23128 /* end confdefs.h. */
23129 $ac_includes_default
23130 #include <sys/sysmacros.h>
23131 _ACEOF
23132 rm -f conftest.$ac_objext
23133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23134 (eval $ac_compile) 2>conftest.er1
23135 ac_status=$?
23136 grep -v '^ *+' conftest.er1 >conftest.err
23137 rm -f conftest.er1
23138 cat conftest.err >&5
23139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23140 (exit $ac_status); } &&
23141 { ac_try='test -z "$ac_c_werror_flag"
23142 || test ! -s conftest.err'
23143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23144 (eval $ac_try) 2>&5
23145 ac_status=$?
23146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23147 (exit $ac_status); }; } &&
23148 { ac_try='test -s conftest.$ac_objext'
23149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23150 (eval $ac_try) 2>&5
23151 ac_status=$?
23152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23153 (exit $ac_status); }; }; then
23154 ac_header_compiler=yes
23155 else
23156 echo "$as_me: failed program was:" >&5
23157 sed 's/^/| /' conftest.$ac_ext >&5
23159 ac_header_compiler=no
23161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23162 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23163 echo "${ECHO_T}$ac_header_compiler" >&6
23165 # Is the header present?
23166 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
23167 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
23168 cat >conftest.$ac_ext <<_ACEOF
23169 /* confdefs.h. */
23170 _ACEOF
23171 cat confdefs.h >>conftest.$ac_ext
23172 cat >>conftest.$ac_ext <<_ACEOF
23173 /* end confdefs.h. */
23174 #include <sys/sysmacros.h>
23175 _ACEOF
23176 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23177 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23178 ac_status=$?
23179 grep -v '^ *+' conftest.er1 >conftest.err
23180 rm -f conftest.er1
23181 cat conftest.err >&5
23182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23183 (exit $ac_status); } >/dev/null; then
23184 if test -s conftest.err; then
23185 ac_cpp_err=$ac_c_preproc_warn_flag
23186 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23187 else
23188 ac_cpp_err=
23190 else
23191 ac_cpp_err=yes
23193 if test -z "$ac_cpp_err"; then
23194 ac_header_preproc=yes
23195 else
23196 echo "$as_me: failed program was:" >&5
23197 sed 's/^/| /' conftest.$ac_ext >&5
23199 ac_header_preproc=no
23201 rm -f conftest.err conftest.$ac_ext
23202 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23203 echo "${ECHO_T}$ac_header_preproc" >&6
23205 # So? What about this header?
23206 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23207 yes:no: )
23208 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
23209 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23210 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
23211 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
23212 ac_header_preproc=yes
23214 no:yes:* )
23215 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
23216 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
23217 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
23218 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
23219 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
23220 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
23221 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
23222 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
23223 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
23224 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
23225 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
23226 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
23228 cat <<\_ASBOX
23229 ## ---------------------------- ##
23230 ## Report this to tango@esrf.fr ##
23231 ## ---------------------------- ##
23232 _ASBOX
23234 sed "s/^/$as_me: WARNING: /" >&2
23236 esac
23237 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
23238 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
23239 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
23240 echo $ECHO_N "(cached) $ECHO_C" >&6
23241 else
23242 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
23244 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
23245 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
23248 if test $ac_cv_header_sys_sysmacros_h = yes; then
23250 cat >>confdefs.h <<\_ACEOF
23251 #define MAJOR_IN_SYSMACROS 1
23252 _ACEOF
23260 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23261 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
23262 if test "${ac_cv_type_signal+set}" = set; then
23263 echo $ECHO_N "(cached) $ECHO_C" >&6
23264 else
23265 cat >conftest.$ac_ext <<_ACEOF
23266 /* confdefs.h. */
23267 _ACEOF
23268 cat confdefs.h >>conftest.$ac_ext
23269 cat >>conftest.$ac_ext <<_ACEOF
23270 /* end confdefs.h. */
23271 #include <sys/types.h>
23272 #include <signal.h>
23273 #ifdef signal
23274 # undef signal
23275 #endif
23276 #ifdef __cplusplus
23277 extern "C" void (*signal (int, void (*)(int)))(int);
23278 #else
23279 void (*signal ()) ();
23280 #endif
23283 main ()
23285 int i;
23287 return 0;
23289 _ACEOF
23290 rm -f conftest.$ac_objext
23291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23292 (eval $ac_compile) 2>conftest.er1
23293 ac_status=$?
23294 grep -v '^ *+' conftest.er1 >conftest.err
23295 rm -f conftest.er1
23296 cat conftest.err >&5
23297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23298 (exit $ac_status); } &&
23299 { ac_try='test -z "$ac_c_werror_flag"
23300 || test ! -s conftest.err'
23301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23302 (eval $ac_try) 2>&5
23303 ac_status=$?
23304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23305 (exit $ac_status); }; } &&
23306 { ac_try='test -s conftest.$ac_objext'
23307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23308 (eval $ac_try) 2>&5
23309 ac_status=$?
23310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23311 (exit $ac_status); }; }; then
23312 ac_cv_type_signal=void
23313 else
23314 echo "$as_me: failed program was:" >&5
23315 sed 's/^/| /' conftest.$ac_ext >&5
23317 ac_cv_type_signal=int
23319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23321 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23322 echo "${ECHO_T}$ac_cv_type_signal" >&6
23324 cat >>confdefs.h <<_ACEOF
23325 #define RETSIGTYPE $ac_cv_type_signal
23326 _ACEOF
23333 for ac_func in gethostname gettimeofday exit tolower
23335 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23336 echo "$as_me:$LINENO: checking for $ac_func" >&5
23337 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23338 if eval "test \"\${$as_ac_var+set}\" = set"; then
23339 echo $ECHO_N "(cached) $ECHO_C" >&6
23340 else
23341 cat >conftest.$ac_ext <<_ACEOF
23342 /* confdefs.h. */
23343 _ACEOF
23344 cat confdefs.h >>conftest.$ac_ext
23345 cat >>conftest.$ac_ext <<_ACEOF
23346 /* end confdefs.h. */
23347 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23348 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23349 #define $ac_func innocuous_$ac_func
23351 /* System header to define __stub macros and hopefully few prototypes,
23352 which can conflict with char $ac_func (); below.
23353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23354 <limits.h> exists even on freestanding compilers. */
23356 #ifdef __STDC__
23357 # include <limits.h>
23358 #else
23359 # include <assert.h>
23360 #endif
23362 #undef $ac_func
23364 /* Override any gcc2 internal prototype to avoid an error. */
23365 #ifdef __cplusplus
23366 extern "C"
23368 #endif
23369 /* We use char because int might match the return type of a gcc2
23370 builtin and then its argument prototype would still apply. */
23371 char $ac_func ();
23372 /* The GNU C library defines this for functions which it implements
23373 to always fail with ENOSYS. Some functions are actually named
23374 something starting with __ and the normal name is an alias. */
23375 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23376 choke me
23377 #else
23378 char (*f) () = $ac_func;
23379 #endif
23380 #ifdef __cplusplus
23382 #endif
23385 main ()
23387 return f != $ac_func;
23389 return 0;
23391 _ACEOF
23392 rm -f conftest.$ac_objext conftest$ac_exeext
23393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23394 (eval $ac_link) 2>conftest.er1
23395 ac_status=$?
23396 grep -v '^ *+' conftest.er1 >conftest.err
23397 rm -f conftest.er1
23398 cat conftest.err >&5
23399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23400 (exit $ac_status); } &&
23401 { ac_try='test -z "$ac_c_werror_flag"
23402 || test ! -s conftest.err'
23403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23404 (eval $ac_try) 2>&5
23405 ac_status=$?
23406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23407 (exit $ac_status); }; } &&
23408 { ac_try='test -s conftest$ac_exeext'
23409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23410 (eval $ac_try) 2>&5
23411 ac_status=$?
23412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23413 (exit $ac_status); }; }; then
23414 eval "$as_ac_var=yes"
23415 else
23416 echo "$as_me: failed program was:" >&5
23417 sed 's/^/| /' conftest.$ac_ext >&5
23419 eval "$as_ac_var=no"
23421 rm -f conftest.err conftest.$ac_objext \
23422 conftest$ac_exeext conftest.$ac_ext
23424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23425 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23426 if test `eval echo '${'$as_ac_var'}'` = yes; then
23427 cat >>confdefs.h <<_ACEOF
23428 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23429 _ACEOF
23432 done
23434 echo "$as_me:$LINENO: checking whether the library defines class strstream" >&5
23435 echo $ECHO_N "checking whether the library defines class strstream... $ECHO_C" >&6
23436 if test "${ac_cv_cxx_have_class_strstream+set}" = set; then
23437 echo $ECHO_N "(cached) $ECHO_C" >&6
23438 else
23442 ac_ext=cc
23443 ac_cpp='$CXXCPP $CPPFLAGS'
23444 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23445 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23446 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23448 cat >conftest.$ac_ext <<_ACEOF
23449 /* confdefs.h. */
23450 _ACEOF
23451 cat confdefs.h >>conftest.$ac_ext
23452 cat >>conftest.$ac_ext <<_ACEOF
23453 /* end confdefs.h. */
23455 #if HAVE_STRSTREAM
23456 # include <strstream>
23457 #else
23458 # include <strstream.h>
23459 #endif
23460 #ifdef HAVE_NAMESPACES
23461 using namespace std;
23462 #endif
23464 main ()
23466 ostrstream message; message << "Hello"; return 0;
23468 return 0;
23470 _ACEOF
23471 rm -f conftest.$ac_objext
23472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23473 (eval $ac_compile) 2>conftest.er1
23474 ac_status=$?
23475 grep -v '^ *+' conftest.er1 >conftest.err
23476 rm -f conftest.er1
23477 cat conftest.err >&5
23478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23479 (exit $ac_status); } &&
23480 { ac_try='test -z "$ac_cxx_werror_flag"
23481 || test ! -s conftest.err'
23482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23483 (eval $ac_try) 2>&5
23484 ac_status=$?
23485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23486 (exit $ac_status); }; } &&
23487 { ac_try='test -s conftest.$ac_objext'
23488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23489 (eval $ac_try) 2>&5
23490 ac_status=$?
23491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23492 (exit $ac_status); }; }; then
23493 ac_cv_cxx_have_class_strstream=yes
23494 else
23495 echo "$as_me: failed program was:" >&5
23496 sed 's/^/| /' conftest.$ac_ext >&5
23498 ac_cv_cxx_have_class_strstream=no
23500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23501 ac_ext=c
23502 ac_cpp='$CPP $CPPFLAGS'
23503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23509 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_class_strstream" >&5
23510 echo "${ECHO_T}$ac_cv_cxx_have_class_strstream" >&6
23511 if test "$ac_cv_cxx_have_class_strstream" = yes; then
23513 cat >>confdefs.h <<\_ACEOF
23514 #define HAVE_CLASS_STRSTREAM 1
23515 _ACEOF
23521 # Check whether --enable-dbserver or --disable-dbserver was given.
23522 if test "${enable_dbserver+set}" = set; then
23523 enableval="$enable_dbserver"
23525 else
23526 enable_dbserver=yes
23528 enable_db_schema_create=no
23530 if test "x$enable_dbserver" = "xyes"; then
23536 # Check whether --with-mysqlclient-prefix or --without-mysqlclient-prefix was given.
23537 if test "${with_mysqlclient_prefix+set}" = set; then
23538 withval="$with_mysqlclient_prefix"
23539 mysqlclient_prefix="$withval"
23540 else
23541 mysqlclient_prefix=""
23545 # Check whether --with-mysqlclient-include or --without-mysqlclient-include was given.
23546 if test "${with_mysqlclient_include+set}" = set; then
23547 withval="$with_mysqlclient_include"
23548 mysqlclient_include="$withval"
23549 else
23550 mysqlclient_include=""
23554 # Check whether --with-mysqlclient-lib or --without-mysqlclient-lib was given.
23555 if test "${with_mysqlclient_lib+set}" = set; then
23556 withval="$with_mysqlclient_lib"
23557 mysqlclient_lib="$withval"
23558 else
23559 mysqlclient_lib=""
23562 echo "$as_me:$LINENO: checking for mysqlclient " >&5
23563 echo $ECHO_N "checking for mysqlclient ... $ECHO_C" >&6
23564 MYSQLCLIENT_LDFLAGS=""
23565 MYSQLCLIENT_CFLAGS=""
23566 MYSQLCLIENT_LIBS="-lmysqlclient_r"
23567 mysqlclient_fail=""
23569 for tryprefix in /usr /usr/local /usr/mysql /usr/local/mysql /usr/pkg $mysqlclient_prefix ; do
23570 for hloc in lib/mysql lib ; do
23571 if test -f "$tryprefix/$hloc/libmysqlclient_r.so"; then
23572 MYSQLCLIENT_LDFLAGS="-L$tryprefix/$hloc"
23573 elif test -f "$tryprefix/$hloc/libmysqlclient_r.a"; then
23574 MYSQLCLIENT_LDFLAGS="-L$tryprefix/$hloc"
23576 done
23578 for iloc in include/mysql include; do
23579 if test -f "$tryprefix/$iloc/mysql.h"; then
23580 MYSQLCLIENT_CFLAGS="-I$tryprefix/$iloc"
23582 done
23583 # testloop
23584 done
23586 if test "x$mysqlclient_include" != "x" ; then
23587 echo "checking for mysql includes... "
23588 if test -d "$mysqlclient_include/mysql" ; then
23589 MYSQLCLIENT_CFLAGS="-I$mysqlclient_include"
23590 echo " found $MYSQLCLIENT_CFLAGS"
23591 elif test -d "$mysqlclient_include/include/mysql" ; then
23592 MYSQLCLIENT_CFLAGS="-I$mysqlclient_include/include"
23593 echo " found $MYSQLCLIENT_CFLAGS"
23594 elif test -d "$mysqlclient_include" ; then
23595 MYSQLCLIENT_CFLAGS="-I$mysqlclient_include"
23596 echo "found $MYSQLCLIENT_CFLAGS"
23597 else
23598 echo "not found! no include dir found in $mysqlclient_include"
23602 if test "x$mysqlclient_lib" != "x" ; then
23603 echo "checking for mysql libx... "
23604 if test -d "$mysqlclient_lib/lib/mysql" ; then
23605 MYSQLCLIENT_LDFLAGS="-L$mysqlclient_lib/lib/mysql"
23606 echo "found $MYSQLCLIENT_LDFLAGS"
23607 elif test -d "$mysqlclient_lib/lin" ; then
23608 MYSQLCLIENT_LDFLAGS="-L$mysqlclient_lib/lib"
23609 echo "found $MYSQLCLIENT_LDFLAGS"
23610 else
23611 MYSQLCLIENT_LDFLAGS="-L$mysqlclient_lib"
23612 echo "defaultd to $MYSQLCLIENT_LDFLAGS"
23616 ac_save_CFLAGS="$CFLAGS"
23617 ac_save_LDFLAGS="$LDFLAGS"
23618 ac_save_LIBS="$LIBS"
23619 CFLAGS="-v $CFLAGS $MYSQLCLIENT_CFLAGS"
23620 LDFLAGS="$LDFLAGS $MYSQLCLIENT_LDFLAGS"
23621 LIBS="$LIBS $MYSQLCLIENT_LIBS"
23622 cat >conftest.$ac_ext <<_ACEOF
23623 /* confdefs.h. */
23624 _ACEOF
23625 cat confdefs.h >>conftest.$ac_ext
23626 cat >>conftest.$ac_ext <<_ACEOF
23627 /* end confdefs.h. */
23629 #include <mysql.h>
23630 #include <mysql_version.h>
23633 main ()
23636 mysql_connect( 0, 0, 0, 0);
23639 return 0;
23641 _ACEOF
23642 rm -f conftest.$ac_objext
23643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23644 (eval $ac_compile) 2>conftest.er1
23645 ac_status=$?
23646 grep -v '^ *+' conftest.er1 >conftest.err
23647 rm -f conftest.er1
23648 cat conftest.err >&5
23649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23650 (exit $ac_status); } &&
23651 { ac_try='test -z "$ac_c_werror_flag"
23652 || test ! -s conftest.err'
23653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23654 (eval $ac_try) 2>&5
23655 ac_status=$?
23656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23657 (exit $ac_status); }; } &&
23658 { ac_try='test -s conftest.$ac_objext'
23659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23660 (eval $ac_try) 2>&5
23661 ac_status=$?
23662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23663 (exit $ac_status); }; }; then
23664 echo "$as_me:$LINENO: result: yes $MYSQLCLIENT_CFLAGS $MYSQLCLIENT_LDFLAGS" >&5
23665 echo "${ECHO_T}yes $MYSQLCLIENT_CFLAGS $MYSQLCLIENT_LDFLAGS" >&6
23666 CFLAGS="$ac_save_CFLAGS"
23667 LDFLAGS="$ac_save_LDFLAGS"
23668 LIBS="$ac_save_LIBS"
23671 else
23672 echo "$as_me: failed program was:" >&5
23673 sed 's/^/| /' conftest.$ac_ext >&5
23676 echo "no"
23677 echo "can't compile a simple app with mysql_connnect in it. bad."
23678 mysqlclient_fail="yes"
23681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23683 if test "x$mysqlclient_fail" != "x" ; then
23684 echo
23685 echo "***"
23686 echo "*** mysqlclient test source had problems, check your config.log ."
23687 echo "*** Also try one of the following switches :"
23688 echo "*** --with-mysqlclient-prefix=PFX"
23689 echo "*** --with-mysqlclient-include=DIR"
23690 echo "*** --with-mysqlclient-lib=DIR"
23691 echo "***"
23692 CFLAGS="$ac_save_CFLAGS"
23693 LDFLAGS="$ac_save_LDFLAGS"
23694 LIBS="$ac_save_LIBS"
23698 CFLAGS="$ac_save_CFLAGS"
23699 LDFLAGS="$ac_save_LDFLAGS"
23700 LIBS="$ac_save_LIBS"
23705 if test "x$MYSQLCLIENT_CFLAGS" = "x"
23706 then
23707 { echo "$as_me:$LINENO: WARNING: No libmysqlclient libs found" >&5
23708 echo "$as_me: WARNING: No libmysqlclient libs found" >&2;}
23709 enable_dbserver=no
23712 # Extract the first word of "mysql", so it can be a program name with args.
23713 set dummy mysql; ac_word=$2
23714 echo "$as_me:$LINENO: checking for $ac_word" >&5
23715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23716 if test "${ac_cv_path_MYSQL+set}" = set; then
23717 echo $ECHO_N "(cached) $ECHO_C" >&6
23718 else
23719 case $MYSQL in
23720 [\\/]* | ?:[\\/]*)
23721 ac_cv_path_MYSQL="$MYSQL" # Let the user override the test with a path.
23724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23725 for as_dir in $PATH
23727 IFS=$as_save_IFS
23728 test -z "$as_dir" && as_dir=.
23729 for ac_exec_ext in '' $ac_executable_extensions; do
23730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23731 ac_cv_path_MYSQL="$as_dir/$ac_word$ac_exec_ext"
23732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23733 break 2
23735 done
23736 done
23738 test -z "$ac_cv_path_MYSQL" && ac_cv_path_MYSQL="nocommand"
23740 esac
23742 MYSQL=$ac_cv_path_MYSQL
23744 if test -n "$MYSQL"; then
23745 echo "$as_me:$LINENO: result: $MYSQL" >&5
23746 echo "${ECHO_T}$MYSQL" >&6
23747 else
23748 echo "$as_me:$LINENO: result: no" >&5
23749 echo "${ECHO_T}no" >&6
23752 MYSQL_VERSION=not_found
23754 if test "$MYSQL" != nocommand; then
23755 echo "$as_me:$LINENO: checking for mysql release (at least version 5.0)" >&5
23756 echo $ECHO_N "checking for mysql release (at least version 5.0)... $ECHO_C" >&6
23757 if test "${ac_cv_mysql_version_5_0+set}" = set; then
23758 echo $ECHO_N "(cached) $ECHO_C" >&6
23759 else
23761 if test -x $MYSQL; then
23762 VERS=`$MYSQL --version 2>&1 | cut -d ' ' -f 6 | cut -d ',' -f 1`
23763 MYSQL_VERSION=$VERS
23765 MYSQL_MAJOR=`echo $VERS | cut -d '.' -f 1`
23766 MYSQL_MINOR=`echo $VERS | cut -d '.' -f 2`
23767 MYSQL_MICRO=`echo $VERS | cut -d '.' -f 3`
23770 if test $MYSQL_MAJOR -lt 5; then
23771 ac_cv_mysql_version_5_0=no
23772 else
23773 if test $MYSQL_MINOR -lt 0; then
23774 ac_cv_mysql_version_5_0=no
23775 else
23776 ac_cv_mysql_version_5_0=yes
23779 else
23780 ac_cv_mysql_version_5_0=no
23784 echo "$as_me:$LINENO: result: $ac_cv_mysql_version_5_0" >&5
23785 echo "${ECHO_T}$ac_cv_mysql_version_5_0" >&6
23787 if test "x$ac_cv_mysql_version_5_0" = "xno"; then
23788 { echo "$as_me:$LINENO: WARNING: Not supported mysql release. Should be 5.0.x or above. Please update !" >&5
23789 echo "$as_me: WARNING: Not supported mysql release. Should be 5.0.x or above. Please update !" >&2;}
23790 enable_db_schema_create=no
23791 else
23792 enable_db_schema_create=yes
23794 else
23795 enable_db_schema_create=no
23800 if test "x$enable_db_schema_create" = "xyes"; then
23803 # Check whether --enable-dbcreate or --disable-dbcreate was given.
23804 if test "${enable_dbcreate+set}" = set; then
23805 enableval="$enable_dbcreate"
23807 else
23808 enable_dbcreate=yes
23810 enable_db_schema_create=$enable_dbcreate
23812 if test "x$enable_db_schema_create" = "xyes"; then
23818 # Extract the first word of "mysql$EXEEXT", so it can be a program name with args.
23819 set dummy mysql$EXEEXT; ac_word=$2
23820 echo "$as_me:$LINENO: checking for $ac_word" >&5
23821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23822 if test "${ac_cv_path_MYSQL+set}" = set; then
23823 echo $ECHO_N "(cached) $ECHO_C" >&6
23824 else
23825 case $MYSQL in
23826 [\\/]* | ?:[\\/]*)
23827 ac_cv_path_MYSQL="$MYSQL" # Let the user override the test with a path.
23830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23831 for as_dir in $PATH
23833 IFS=$as_save_IFS
23834 test -z "$as_dir" && as_dir=.
23835 for ac_exec_ext in '' $ac_executable_extensions; do
23836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23837 ac_cv_path_MYSQL="$as_dir/$ac_word$ac_exec_ext"
23838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23839 break 2
23841 done
23842 done
23844 test -z "$ac_cv_path_MYSQL" && ac_cv_path_MYSQL="nocommand"
23846 esac
23848 MYSQL=$ac_cv_path_MYSQL
23850 if test -n "$MYSQL"; then
23851 echo "$as_me:$LINENO: result: $MYSQL" >&5
23852 echo "${ECHO_T}$MYSQL" >&6
23853 else
23854 echo "$as_me:$LINENO: result: no" >&5
23855 echo "${ECHO_T}no" >&6
23858 if test "$MYSQL" = nocommand; then
23859 { echo "$as_me:$LINENO: WARNING: mysql not found in $PATH" >&5
23860 echo "$as_me: WARNING: mysql not found in $PATH" >&2;}
23861 enable_db_schema_create=no
23862 else
23865 # Check whether --with-mysql-ho or --without-mysql-ho was given.
23866 if test "${with_mysql_ho+set}" = set; then
23867 withval="$with_mysql_ho"
23868 MYSQL_HOST=${with_mysql_ho}
23869 else
23870 MYSQL_HOST=""
23874 # Check whether --with-mysql-admin or --without-mysql-admin was given.
23875 if test "${with_mysql_admin+set}" = set; then
23876 withval="$with_mysql_admin"
23877 MYSQL_ADMIN=${with_mysql_admin}
23878 else
23879 MYSQL_ADMIN=""
23883 # Check whether --with-mysql-admin-passwd or --without-mysql-admin-passwd was given.
23884 if test "${with_mysql_admin_passwd+set}" = set; then
23885 withval="$with_mysql_admin_passwd"
23886 MYSQL_ADMIN_PASSWD=${with_mysql_admin_passwd}
23887 else
23888 MYSQL_ADMIN_PASSWD=""
23891 if test "x$MYSQL_ADMIN" = "x"; then
23892 user_switch="";
23893 else
23894 user_switch="-u$MYSQL_ADMIN";
23897 if test "x$MYSQL_ADMIN_PASSWD" = "x"; then
23898 passwd_switch="";
23899 else
23900 passwd_switch="-p$MYSQL_ADMIN_PASSWD";
23903 if test "x$MYSQL_HOST" = "x"; then
23904 host_switch="";
23905 else
23906 host_switch="-h$MYSQL_HOST";
23909 echo "$as_me:$LINENO: checking if mysql works" >&5
23910 echo $ECHO_N "checking if mysql works... $ECHO_C" >&6
23912 if echo 'SELECT * FROM user' | $MYSQL $user_switch $passwd_switch $host_switch mysql> /dev/null; then
23913 echo "$as_me:$LINENO: result: yes" >&5
23914 echo "${ECHO_T}yes" >&6
23920 MYSQL_CONNECTION=OK
23922 else
23924 { echo "$as_me:$LINENO: WARNING: mysql cannot execute SELECT with user=$MYSQL_ADMIN, passwd=$MYSQL_ADMIN_PASSWD, and host=$MYSQL_HOST. Please check your my.cnf file or configure options!" >&5
23925 echo "$as_me: WARNING: mysql cannot execute SELECT with user=$MYSQL_ADMIN, passwd=$MYSQL_ADMIN_PASSWD, and host=$MYSQL_HOST. Please check your my.cnf file or configure options!" >&2;}
23926 MYSQL_CONNECTION=failed
23927 enable_db_schema_create=no
23929 cat >>confdefs.h <<_ACEOF
23930 #define MYSQL_HOST "$MYSQL_HOST"
23931 _ACEOF
23937 # Check whether --with-tango-db-name or --without-tango-db-name was given.
23938 if test "${with_tango_db_name+set}" = set; then
23939 withval="$with_tango_db_name"
23940 TANGO_DB_NAME=${with_tango_db_name}
23941 else
23942 TANGO_DB_NAME=tango
23946 cat >>confdefs.h <<_ACEOF
23947 #define TANGO_DB_NAME "$TANGO_DB_NAME"
23948 _ACEOF
23965 if test x"$enable_dbserver" = x"yes"; then
23966 TANGO_DB_SERVER_ENABLED_TRUE=
23967 TANGO_DB_SERVER_ENABLED_FALSE='#'
23968 else
23969 TANGO_DB_SERVER_ENABLED_TRUE='#'
23970 TANGO_DB_SERVER_ENABLED_FALSE=
23975 if test x"$enable_db_schema_create" = x"yes"; then
23976 TANGO_DB_CREATE_ENABLED_TRUE=
23977 TANGO_DB_CREATE_ENABLED_FALSE='#'
23978 else
23979 TANGO_DB_CREATE_ENABLED_TRUE='#'
23980 TANGO_DB_CREATE_ENABLED_FALSE=
23989 DATADIR=`eval echo $datadir`
23990 DATADIR=`eval echo $DATADIR`
23996 ac_config_commands="$ac_config_commands ac_config.h"
24001 subdirs="$subdirs lib/cpp/log4tango"
24004 ac_config_files="$ac_config_files Makefile lib/Makefile lib/idl/Makefile lib/cpp/Makefile lib/cpp/server/Makefile lib/cpp/server/idl/Makefile lib/cpp/client/Makefile lib/cpp/client/helpers/Makefile cppserver/Makefile cppserver/database/Makefile cppserver/database/create_db.sql cppserver/database/create_db.sh cppserver/database/my.cnf cppserver/database/stored_proc.sql cppserver/database/create_db_tables.sql cppserver/database/update_db.sql cppserver/starter/Makefile cppserver/tangotest/Makefile utils/Makefile utils/notifd2db/Makefile scripts/Makefile scripts/jive scripts/logviewer scripts/TangoVers scripts/astor scripts/atkpanel scripts/atktuning scripts/pogo scripts/cvstag scripts/tg_devtest scripts/tango scripts/devicetree scripts/jdraw scripts/synopticappli scripts/atkmoni doc/Makefile templates/Makefile templates/pogo/cpp/Makefile"
24005 cat >confcache <<\_ACEOF
24006 # This file is a shell script that caches the results of configure
24007 # tests run on this system so they can be shared between configure
24008 # scripts and configure runs, see configure's option --config-cache.
24009 # It is not useful on other systems. If it contains results you don't
24010 # want to keep, you may remove or edit it.
24012 # config.status only pays attention to the cache file if you give it
24013 # the --recheck option to rerun configure.
24015 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24016 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24017 # following values.
24019 _ACEOF
24021 # The following way of writing the cache mishandles newlines in values,
24022 # but we know of no workaround that is simple, portable, and efficient.
24023 # So, don't put newlines in cache variables' values.
24024 # Ultrix sh set writes to stderr and can't be redirected directly,
24025 # and sets the high bit in the cache file unless we assign to the vars.
24027 (set) 2>&1 |
24028 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24029 *ac_space=\ *)
24030 # `set' does not quote correctly, so add quotes (double-quote
24031 # substitution turns \\\\ into \\, and sed turns \\ into \).
24032 sed -n \
24033 "s/'/'\\\\''/g;
24034 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24037 # `set' quotes correctly as required by POSIX, so do not add quotes.
24038 sed -n \
24039 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24041 esac;
24043 sed '
24044 t clear
24045 : clear
24046 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24047 t end
24048 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24049 : end' >>confcache
24050 if diff $cache_file confcache >/dev/null 2>&1; then :; else
24051 if test -w $cache_file; then
24052 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24053 cat confcache >$cache_file
24054 else
24055 echo "not updating unwritable cache $cache_file"
24058 rm -f confcache
24060 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24061 # Let make expand exec_prefix.
24062 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24064 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24065 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24066 # trailing colons and then remove the whole line if VPATH becomes empty
24067 # (actually we leave an empty line to preserve line numbers).
24068 if test "x$srcdir" = x.; then
24069 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24070 s/:*\$(srcdir):*/:/;
24071 s/:*\${srcdir}:*/:/;
24072 s/:*@srcdir@:*/:/;
24073 s/^\([^=]*=[ ]*\):*/\1/;
24074 s/:*$//;
24075 s/^[^=]*=[ ]*$//;
24079 DEFS=-DHAVE_CONFIG_H
24081 ac_libobjs=
24082 ac_ltlibobjs=
24083 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24084 # 1. Remove the extension, and $U if already installed.
24085 ac_i=`echo "$ac_i" |
24086 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
24087 # 2. Add them.
24088 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
24089 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
24090 done
24091 LIBOBJS=$ac_libobjs
24093 LTLIBOBJS=$ac_ltlibobjs
24096 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24097 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
24098 Usually this means the macro was only invoked conditionally." >&5
24099 echo "$as_me: error: conditional \"AMDEP\" was never defined.
24100 Usually this means the macro was only invoked conditionally." >&2;}
24101 { (exit 1); exit 1; }; }
24103 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24104 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
24105 Usually this means the macro was only invoked conditionally." >&5
24106 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
24107 Usually this means the macro was only invoked conditionally." >&2;}
24108 { (exit 1); exit 1; }; }
24110 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24111 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24112 Usually this means the macro was only invoked conditionally." >&5
24113 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24114 Usually this means the macro was only invoked conditionally." >&2;}
24115 { (exit 1); exit 1; }; }
24117 if test -z "${TANGO_JAVA_ENABLED_TRUE}" && test -z "${TANGO_JAVA_ENABLED_FALSE}"; then
24118 { { echo "$as_me:$LINENO: error: conditional \"TANGO_JAVA_ENABLED\" was never defined.
24119 Usually this means the macro was only invoked conditionally." >&5
24120 echo "$as_me: error: conditional \"TANGO_JAVA_ENABLED\" was never defined.
24121 Usually this means the macro was only invoked conditionally." >&2;}
24122 { (exit 1); exit 1; }; }
24124 if test -z "${DARWIN_ENABLED_TRUE}" && test -z "${DARWIN_ENABLED_FALSE}"; then
24125 { { echo "$as_me:$LINENO: error: conditional \"DARWIN_ENABLED\" was never defined.
24126 Usually this means the macro was only invoked conditionally." >&5
24127 echo "$as_me: error: conditional \"DARWIN_ENABLED\" was never defined.
24128 Usually this means the macro was only invoked conditionally." >&2;}
24129 { (exit 1); exit 1; }; }
24131 if test -z "${TANGO_DB_SERVER_ENABLED_TRUE}" && test -z "${TANGO_DB_SERVER_ENABLED_FALSE}"; then
24132 { { echo "$as_me:$LINENO: error: conditional \"TANGO_DB_SERVER_ENABLED\" was never defined.
24133 Usually this means the macro was only invoked conditionally." >&5
24134 echo "$as_me: error: conditional \"TANGO_DB_SERVER_ENABLED\" was never defined.
24135 Usually this means the macro was only invoked conditionally." >&2;}
24136 { (exit 1); exit 1; }; }
24138 if test -z "${TANGO_DB_CREATE_ENABLED_TRUE}" && test -z "${TANGO_DB_CREATE_ENABLED_FALSE}"; then
24139 { { echo "$as_me:$LINENO: error: conditional \"TANGO_DB_CREATE_ENABLED\" was never defined.
24140 Usually this means the macro was only invoked conditionally." >&5
24141 echo "$as_me: error: conditional \"TANGO_DB_CREATE_ENABLED\" was never defined.
24142 Usually this means the macro was only invoked conditionally." >&2;}
24143 { (exit 1); exit 1; }; }
24146 : ${CONFIG_STATUS=./config.status}
24147 ac_clean_files_save=$ac_clean_files
24148 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24149 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24150 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24151 cat >$CONFIG_STATUS <<_ACEOF
24152 #! $SHELL
24153 # Generated by $as_me.
24154 # Run this file to recreate the current configuration.
24155 # Compiler output produced by configure, useful for debugging
24156 # configure, is in config.log if it exists.
24158 debug=false
24159 ac_cs_recheck=false
24160 ac_cs_silent=false
24161 SHELL=\${CONFIG_SHELL-$SHELL}
24162 _ACEOF
24164 cat >>$CONFIG_STATUS <<\_ACEOF
24165 ## --------------------- ##
24166 ## M4sh Initialization. ##
24167 ## --------------------- ##
24169 # Be Bourne compatible
24170 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24171 emulate sh
24172 NULLCMD=:
24173 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24174 # is contrary to our usage. Disable this feature.
24175 alias -g '${1+"$@"}'='"$@"'
24176 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24177 set -o posix
24179 DUALCASE=1; export DUALCASE # for MKS sh
24181 # Support unset when possible.
24182 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24183 as_unset=unset
24184 else
24185 as_unset=false
24189 # Work around bugs in pre-3.0 UWIN ksh.
24190 $as_unset ENV MAIL MAILPATH
24191 PS1='$ '
24192 PS2='> '
24193 PS4='+ '
24195 # NLS nuisances.
24196 for as_var in \
24197 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24198 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24199 LC_TELEPHONE LC_TIME
24201 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24202 eval $as_var=C; export $as_var
24203 else
24204 $as_unset $as_var
24206 done
24208 # Required to use basename.
24209 if expr a : '\(a\)' >/dev/null 2>&1; then
24210 as_expr=expr
24211 else
24212 as_expr=false
24215 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24216 as_basename=basename
24217 else
24218 as_basename=false
24222 # Name of the executable.
24223 as_me=`$as_basename "$0" ||
24224 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24225 X"$0" : 'X\(//\)$' \| \
24226 X"$0" : 'X\(/\)$' \| \
24227 . : '\(.\)' 2>/dev/null ||
24228 echo X/"$0" |
24229 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24230 /^X\/\(\/\/\)$/{ s//\1/; q; }
24231 /^X\/\(\/\).*/{ s//\1/; q; }
24232 s/.*/./; q'`
24235 # PATH needs CR, and LINENO needs CR and PATH.
24236 # Avoid depending upon Character Ranges.
24237 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24238 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24239 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24240 as_cr_digits='0123456789'
24241 as_cr_alnum=$as_cr_Letters$as_cr_digits
24243 # The user is always right.
24244 if test "${PATH_SEPARATOR+set}" != set; then
24245 echo "#! /bin/sh" >conf$$.sh
24246 echo "exit 0" >>conf$$.sh
24247 chmod +x conf$$.sh
24248 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24249 PATH_SEPARATOR=';'
24250 else
24251 PATH_SEPARATOR=:
24253 rm -f conf$$.sh
24257 as_lineno_1=$LINENO
24258 as_lineno_2=$LINENO
24259 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24260 test "x$as_lineno_1" != "x$as_lineno_2" &&
24261 test "x$as_lineno_3" = "x$as_lineno_2" || {
24262 # Find who we are. Look in the path if we contain no path at all
24263 # relative or not.
24264 case $0 in
24265 *[\\/]* ) as_myself=$0 ;;
24266 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24267 for as_dir in $PATH
24269 IFS=$as_save_IFS
24270 test -z "$as_dir" && as_dir=.
24271 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24272 done
24275 esac
24276 # We did not find ourselves, most probably we were run as `sh COMMAND'
24277 # in which case we are not to be found in the path.
24278 if test "x$as_myself" = x; then
24279 as_myself=$0
24281 if test ! -f "$as_myself"; then
24282 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24283 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24284 { (exit 1); exit 1; }; }
24286 case $CONFIG_SHELL in
24288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24289 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24291 IFS=$as_save_IFS
24292 test -z "$as_dir" && as_dir=.
24293 for as_base in sh bash ksh sh5; do
24294 case $as_dir in
24296 if ("$as_dir/$as_base" -c '
24297 as_lineno_1=$LINENO
24298 as_lineno_2=$LINENO
24299 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24300 test "x$as_lineno_1" != "x$as_lineno_2" &&
24301 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
24302 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24303 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24304 CONFIG_SHELL=$as_dir/$as_base
24305 export CONFIG_SHELL
24306 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24307 fi;;
24308 esac
24309 done
24310 done
24312 esac
24314 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24315 # uniformly replaced by the line number. The first 'sed' inserts a
24316 # line-number line before each line; the second 'sed' does the real
24317 # work. The second script uses 'N' to pair each line-number line
24318 # with the numbered line, and appends trailing '-' during
24319 # substitution so that $LINENO is not a special case at line end.
24320 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24321 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24322 sed '=' <$as_myself |
24323 sed '
24325 s,$,-,
24326 : loop
24327 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24328 t loop
24329 s,-$,,
24330 s,^['$as_cr_digits']*\n,,
24331 ' >$as_me.lineno &&
24332 chmod +x $as_me.lineno ||
24333 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24334 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24335 { (exit 1); exit 1; }; }
24337 # Don't try to exec as it changes $[0], causing all sort of problems
24338 # (the dirname of $[0] is not the place where we might find the
24339 # original and so on. Autoconf is especially sensible to this).
24340 . ./$as_me.lineno
24341 # Exit status is that of the last command.
24342 exit
24346 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24347 *c*,-n*) ECHO_N= ECHO_C='
24348 ' ECHO_T=' ' ;;
24349 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24350 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24351 esac
24353 if expr a : '\(a\)' >/dev/null 2>&1; then
24354 as_expr=expr
24355 else
24356 as_expr=false
24359 rm -f conf$$ conf$$.exe conf$$.file
24360 echo >conf$$.file
24361 if ln -s conf$$.file conf$$ 2>/dev/null; then
24362 # We could just check for DJGPP; but this test a) works b) is more generic
24363 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24364 if test -f conf$$.exe; then
24365 # Don't use ln at all; we don't have any links
24366 as_ln_s='cp -p'
24367 else
24368 as_ln_s='ln -s'
24370 elif ln conf$$.file conf$$ 2>/dev/null; then
24371 as_ln_s=ln
24372 else
24373 as_ln_s='cp -p'
24375 rm -f conf$$ conf$$.exe conf$$.file
24377 if mkdir -p . 2>/dev/null; then
24378 as_mkdir_p=:
24379 else
24380 test -d ./-p && rmdir ./-p
24381 as_mkdir_p=false
24384 as_executable_p="test -f"
24386 # Sed expression to map a string onto a valid CPP name.
24387 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24389 # Sed expression to map a string onto a valid variable name.
24390 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24393 # IFS
24394 # We need space, tab and new line, in precisely that order.
24395 as_nl='
24397 IFS=" $as_nl"
24399 # CDPATH.
24400 $as_unset CDPATH
24402 exec 6>&1
24404 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24405 # report actual input values of CONFIG_FILES etc. instead of their
24406 # values after options handling. Logging --version etc. is OK.
24407 exec 5>>config.log
24409 echo
24410 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24411 ## Running $as_me. ##
24412 _ASBOX
24413 } >&5
24414 cat >&5 <<_CSEOF
24416 This file was extended by Tango $as_me 6.1.1, which was
24417 generated by GNU Autoconf 2.59. Invocation command line was
24419 CONFIG_FILES = $CONFIG_FILES
24420 CONFIG_HEADERS = $CONFIG_HEADERS
24421 CONFIG_LINKS = $CONFIG_LINKS
24422 CONFIG_COMMANDS = $CONFIG_COMMANDS
24423 $ $0 $@
24425 _CSEOF
24426 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24427 echo >&5
24428 _ACEOF
24430 # Files that config.status was made for.
24431 if test -n "$ac_config_files"; then
24432 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24435 if test -n "$ac_config_headers"; then
24436 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24439 if test -n "$ac_config_links"; then
24440 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24443 if test -n "$ac_config_commands"; then
24444 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24447 cat >>$CONFIG_STATUS <<\_ACEOF
24449 ac_cs_usage="\
24450 \`$as_me' instantiates files from templates according to the
24451 current configuration.
24453 Usage: $0 [OPTIONS] [FILE]...
24455 -h, --help print this help, then exit
24456 -V, --version print version number, then exit
24457 -q, --quiet do not print progress messages
24458 -d, --debug don't remove temporary files
24459 --recheck update $as_me by reconfiguring in the same conditions
24460 --file=FILE[:TEMPLATE]
24461 instantiate the configuration file FILE
24462 --header=FILE[:TEMPLATE]
24463 instantiate the configuration header FILE
24465 Configuration files:
24466 $config_files
24468 Configuration headers:
24469 $config_headers
24471 Configuration commands:
24472 $config_commands
24474 Report bugs to <bug-autoconf@gnu.org>."
24475 _ACEOF
24477 cat >>$CONFIG_STATUS <<_ACEOF
24478 ac_cs_version="\\
24479 Tango config.status 6.1.1
24480 configured by $0, generated by GNU Autoconf 2.59,
24481 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24483 Copyright (C) 2003 Free Software Foundation, Inc.
24484 This config.status script is free software; the Free Software Foundation
24485 gives unlimited permission to copy, distribute and modify it."
24486 srcdir=$srcdir
24487 INSTALL="$INSTALL"
24488 _ACEOF
24490 cat >>$CONFIG_STATUS <<\_ACEOF
24491 # If no file are specified by the user, then we need to provide default
24492 # value. By we need to know if files were specified by the user.
24493 ac_need_defaults=:
24494 while test $# != 0
24496 case $1 in
24497 --*=*)
24498 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24499 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24500 ac_shift=:
24503 ac_option=$1
24504 ac_optarg=$2
24505 ac_shift=shift
24507 *) # This is not an option, so the user has probably given explicit
24508 # arguments.
24509 ac_option=$1
24510 ac_need_defaults=false;;
24511 esac
24513 case $ac_option in
24514 # Handling of the options.
24515 _ACEOF
24516 cat >>$CONFIG_STATUS <<\_ACEOF
24517 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24518 ac_cs_recheck=: ;;
24519 --version | --vers* | -V )
24520 echo "$ac_cs_version"; exit 0 ;;
24521 --he | --h)
24522 # Conflict between --help and --header
24523 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24524 Try \`$0 --help' for more information." >&5
24525 echo "$as_me: error: ambiguous option: $1
24526 Try \`$0 --help' for more information." >&2;}
24527 { (exit 1); exit 1; }; };;
24528 --help | --hel | -h )
24529 echo "$ac_cs_usage"; exit 0 ;;
24530 --debug | --d* | -d )
24531 debug=: ;;
24532 --file | --fil | --fi | --f )
24533 $ac_shift
24534 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24535 ac_need_defaults=false;;
24536 --header | --heade | --head | --hea )
24537 $ac_shift
24538 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24539 ac_need_defaults=false;;
24540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24541 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24542 ac_cs_silent=: ;;
24544 # This is an error.
24545 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24546 Try \`$0 --help' for more information." >&5
24547 echo "$as_me: error: unrecognized option: $1
24548 Try \`$0 --help' for more information." >&2;}
24549 { (exit 1); exit 1; }; } ;;
24551 *) ac_config_targets="$ac_config_targets $1" ;;
24553 esac
24554 shift
24555 done
24557 ac_configure_extra_args=
24559 if $ac_cs_silent; then
24560 exec 6>/dev/null
24561 ac_configure_extra_args="$ac_configure_extra_args --silent"
24564 _ACEOF
24565 cat >>$CONFIG_STATUS <<_ACEOF
24566 if \$ac_cs_recheck; then
24567 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24568 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24571 _ACEOF
24573 cat >>$CONFIG_STATUS <<_ACEOF
24575 # INIT-COMMANDS section.
24578 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24580 _ACEOF
24584 cat >>$CONFIG_STATUS <<\_ACEOF
24585 for ac_config_target in $ac_config_targets
24587 case "$ac_config_target" in
24588 # Handling of arguments.
24589 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24590 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
24591 "lib/idl/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/idl/Makefile" ;;
24592 "lib/cpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/cpp/Makefile" ;;
24593 "lib/cpp/server/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/cpp/server/Makefile" ;;
24594 "lib/cpp/server/idl/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/cpp/server/idl/Makefile" ;;
24595 "lib/cpp/client/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/cpp/client/Makefile" ;;
24596 "lib/cpp/client/helpers/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/cpp/client/helpers/Makefile" ;;
24597 "cppserver/Makefile" ) CONFIG_FILES="$CONFIG_FILES cppserver/Makefile" ;;
24598 "cppserver/database/Makefile" ) CONFIG_FILES="$CONFIG_FILES cppserver/database/Makefile" ;;
24599 "cppserver/database/create_db.sql" ) CONFIG_FILES="$CONFIG_FILES cppserver/database/create_db.sql" ;;
24600 "cppserver/database/create_db.sh" ) CONFIG_FILES="$CONFIG_FILES cppserver/database/create_db.sh" ;;
24601 "cppserver/database/my.cnf" ) CONFIG_FILES="$CONFIG_FILES cppserver/database/my.cnf" ;;
24602 "cppserver/database/stored_proc.sql" ) CONFIG_FILES="$CONFIG_FILES cppserver/database/stored_proc.sql" ;;
24603 "cppserver/database/create_db_tables.sql" ) CONFIG_FILES="$CONFIG_FILES cppserver/database/create_db_tables.sql" ;;
24604 "cppserver/database/update_db.sql" ) CONFIG_FILES="$CONFIG_FILES cppserver/database/update_db.sql" ;;
24605 "cppserver/starter/Makefile" ) CONFIG_FILES="$CONFIG_FILES cppserver/starter/Makefile" ;;
24606 "cppserver/tangotest/Makefile" ) CONFIG_FILES="$CONFIG_FILES cppserver/tangotest/Makefile" ;;
24607 "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
24608 "utils/notifd2db/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/notifd2db/Makefile" ;;
24609 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
24610 "scripts/jive" ) CONFIG_FILES="$CONFIG_FILES scripts/jive" ;;
24611 "scripts/logviewer" ) CONFIG_FILES="$CONFIG_FILES scripts/logviewer" ;;
24612 "scripts/TangoVers" ) CONFIG_FILES="$CONFIG_FILES scripts/TangoVers" ;;
24613 "scripts/astor" ) CONFIG_FILES="$CONFIG_FILES scripts/astor" ;;
24614 "scripts/atkpanel" ) CONFIG_FILES="$CONFIG_FILES scripts/atkpanel" ;;
24615 "scripts/atktuning" ) CONFIG_FILES="$CONFIG_FILES scripts/atktuning" ;;
24616 "scripts/pogo" ) CONFIG_FILES="$CONFIG_FILES scripts/pogo" ;;
24617 "scripts/cvstag" ) CONFIG_FILES="$CONFIG_FILES scripts/cvstag" ;;
24618 "scripts/tg_devtest" ) CONFIG_FILES="$CONFIG_FILES scripts/tg_devtest" ;;
24619 "scripts/tango" ) CONFIG_FILES="$CONFIG_FILES scripts/tango" ;;
24620 "scripts/devicetree" ) CONFIG_FILES="$CONFIG_FILES scripts/devicetree" ;;
24621 "scripts/jdraw" ) CONFIG_FILES="$CONFIG_FILES scripts/jdraw" ;;
24622 "scripts/synopticappli" ) CONFIG_FILES="$CONFIG_FILES scripts/synopticappli" ;;
24623 "scripts/atkmoni" ) CONFIG_FILES="$CONFIG_FILES scripts/atkmoni" ;;
24624 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
24625 "templates/Makefile" ) CONFIG_FILES="$CONFIG_FILES templates/Makefile" ;;
24626 "templates/pogo/cpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES templates/pogo/cpp/Makefile" ;;
24627 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24628 "ac_config.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS ac_config.h" ;;
24629 "ac_config.h.tmp" ) CONFIG_HEADERS="$CONFIG_HEADERS ac_config.h.tmp" ;;
24630 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24631 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24632 { (exit 1); exit 1; }; };;
24633 esac
24634 done
24636 # If the user did not use the arguments to specify the items to instantiate,
24637 # then the envvar interface is used. Set only those that are not.
24638 # We use the long form for the default assignment because of an extremely
24639 # bizarre bug on SunOS 4.1.3.
24640 if $ac_need_defaults; then
24641 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24642 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24643 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24646 # Have a temporary directory for convenience. Make it in the build tree
24647 # simply because there is no reason to put it here, and in addition,
24648 # creating and moving files from /tmp can sometimes cause problems.
24649 # Create a temporary directory, and hook for its removal unless debugging.
24650 $debug ||
24652 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24653 trap '{ (exit 1); exit 1; }' 1 2 13 15
24656 # Create a (secure) tmp directory for tmp files.
24659 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24660 test -n "$tmp" && test -d "$tmp"
24661 } ||
24663 tmp=./confstat$$-$RANDOM
24664 (umask 077 && mkdir $tmp)
24665 } ||
24667 echo "$me: cannot create a temporary directory in ." >&2
24668 { (exit 1); exit 1; }
24671 _ACEOF
24673 cat >>$CONFIG_STATUS <<_ACEOF
24676 # CONFIG_FILES section.
24679 # No need to generate the scripts if there are no CONFIG_FILES.
24680 # This happens for instance when ./config.status config.h
24681 if test -n "\$CONFIG_FILES"; then
24682 # Protect against being on the right side of a sed subst in config.status.
24683 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24684 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24685 s,@SHELL@,$SHELL,;t t
24686 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24687 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24688 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24689 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24690 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24691 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24692 s,@exec_prefix@,$exec_prefix,;t t
24693 s,@prefix@,$prefix,;t t
24694 s,@program_transform_name@,$program_transform_name,;t t
24695 s,@bindir@,$bindir,;t t
24696 s,@sbindir@,$sbindir,;t t
24697 s,@libexecdir@,$libexecdir,;t t
24698 s,@datadir@,$datadir,;t t
24699 s,@sysconfdir@,$sysconfdir,;t t
24700 s,@sharedstatedir@,$sharedstatedir,;t t
24701 s,@localstatedir@,$localstatedir,;t t
24702 s,@libdir@,$libdir,;t t
24703 s,@includedir@,$includedir,;t t
24704 s,@oldincludedir@,$oldincludedir,;t t
24705 s,@infodir@,$infodir,;t t
24706 s,@mandir@,$mandir,;t t
24707 s,@build_alias@,$build_alias,;t t
24708 s,@host_alias@,$host_alias,;t t
24709 s,@target_alias@,$target_alias,;t t
24710 s,@DEFS@,$DEFS,;t t
24711 s,@ECHO_C@,$ECHO_C,;t t
24712 s,@ECHO_N@,$ECHO_N,;t t
24713 s,@ECHO_T@,$ECHO_T,;t t
24714 s,@LIBS@,$LIBS,;t t
24715 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24716 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24717 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24718 s,@CYGPATH_W@,$CYGPATH_W,;t t
24719 s,@PACKAGE@,$PACKAGE,;t t
24720 s,@VERSION@,$VERSION,;t t
24721 s,@ACLOCAL@,$ACLOCAL,;t t
24722 s,@AUTOCONF@,$AUTOCONF,;t t
24723 s,@AUTOMAKE@,$AUTOMAKE,;t t
24724 s,@AUTOHEADER@,$AUTOHEADER,;t t
24725 s,@MAKEINFO@,$MAKEINFO,;t t
24726 s,@install_sh@,$install_sh,;t t
24727 s,@STRIP@,$STRIP,;t t
24728 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24729 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
24730 s,@mkdir_p@,$mkdir_p,;t t
24731 s,@AWK@,$AWK,;t t
24732 s,@SET_MAKE@,$SET_MAKE,;t t
24733 s,@am__leading_dot@,$am__leading_dot,;t t
24734 s,@AMTAR@,$AMTAR,;t t
24735 s,@am__tar@,$am__tar,;t t
24736 s,@am__untar@,$am__untar,;t t
24737 s,@CXX@,$CXX,;t t
24738 s,@CXXFLAGS@,$CXXFLAGS,;t t
24739 s,@LDFLAGS@,$LDFLAGS,;t t
24740 s,@CPPFLAGS@,$CPPFLAGS,;t t
24741 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24742 s,@EXEEXT@,$EXEEXT,;t t
24743 s,@OBJEXT@,$OBJEXT,;t t
24744 s,@DEPDIR@,$DEPDIR,;t t
24745 s,@am__include@,$am__include,;t t
24746 s,@am__quote@,$am__quote,;t t
24747 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
24748 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
24749 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
24750 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
24751 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
24752 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
24753 s,@CXXCPP@,$CXXCPP,;t t
24754 s,@CC@,$CC,;t t
24755 s,@CFLAGS@,$CFLAGS,;t t
24756 s,@ac_ct_CC@,$ac_ct_CC,;t t
24757 s,@CCDEPMODE@,$CCDEPMODE,;t t
24758 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
24759 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
24760 s,@CPP@,$CPP,;t t
24761 s,@LN_S@,$LN_S,;t t
24762 s,@EGREP@,$EGREP,;t t
24763 s,@JAVA@,$JAVA,;t t
24764 s,@TANGO_JAVA_ENABLED_TRUE@,$TANGO_JAVA_ENABLED_TRUE,;t t
24765 s,@TANGO_JAVA_ENABLED_FALSE@,$TANGO_JAVA_ENABLED_FALSE,;t t
24766 s,@DOXYGEN@,$DOXYGEN,;t t
24767 s,@build@,$build,;t t
24768 s,@build_cpu@,$build_cpu,;t t
24769 s,@build_vendor@,$build_vendor,;t t
24770 s,@build_os@,$build_os,;t t
24771 s,@host@,$host,;t t
24772 s,@host_cpu@,$host_cpu,;t t
24773 s,@host_vendor@,$host_vendor,;t t
24774 s,@host_os@,$host_os,;t t
24775 s,@SED@,$SED,;t t
24776 s,@ECHO@,$ECHO,;t t
24777 s,@AR@,$AR,;t t
24778 s,@ac_ct_AR@,$ac_ct_AR,;t t
24779 s,@RANLIB@,$RANLIB,;t t
24780 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24781 s,@F77@,$F77,;t t
24782 s,@FFLAGS@,$FFLAGS,;t t
24783 s,@ac_ct_F77@,$ac_ct_F77,;t t
24784 s,@LIBTOOL@,$LIBTOOL,;t t
24785 s,@ZLIB_LDFLAGS@,$ZLIB_LDFLAGS,;t t
24786 s,@ZLIB_LIBS@,$ZLIB_LIBS,;t t
24787 s,@ZLIB_CPPFLAGS@,$ZLIB_CPPFLAGS,;t t
24788 s,@IDLCXXFLAGS@,$IDLCXXFLAGS,;t t
24789 s,@CORBA_INCLUDES@,$CORBA_INCLUDES,;t t
24790 s,@ORB_PREFIX@,$ORB_PREFIX,;t t
24791 s,@ORB@,$ORB,;t t
24792 s,@IDL@,$IDL,;t t
24793 s,@IDLCXX@,$IDLCXX,;t t
24794 s,@IDLFLAGS@,$IDLFLAGS,;t t
24795 s,@ORB_INCLUDE_PREFIX@,$ORB_INCLUDE_PREFIX,;t t
24796 s,@IDL_H_SUFFIX@,$IDL_H_SUFFIX,;t t
24797 s,@IDL_H1_SUFFIX@,$IDL_H1_SUFFIX,;t t
24798 s,@IDL_CLN_H@,$IDL_CLN_H,;t t
24799 s,@IDL_CLN_H_SUFFIX@,$IDL_CLN_H_SUFFIX,;t t
24800 s,@IDL_CLN_H1_SUFFIX@,$IDL_CLN_H1_SUFFIX,;t t
24801 s,@IDL_CLN_CPP@,$IDL_CLN_CPP,;t t
24802 s,@IDL_CLN_CPP_SUFFIX@,$IDL_CLN_CPP_SUFFIX,;t t
24803 s,@IDL_CLN_O@,$IDL_CLN_O,;t t
24804 s,@IDL_CLN_OBJ_SUFFIX@,$IDL_CLN_OBJ_SUFFIX,;t t
24805 s,@IDL_SRV_H@,$IDL_SRV_H,;t t
24806 s,@IDL_SRV_H_SUFFIX@,$IDL_SRV_H_SUFFIX,;t t
24807 s,@IDL_SRV_H1_SUFFIX@,$IDL_SRV_H1_SUFFIX,;t t
24808 s,@IDL_SRV_CPP@,$IDL_SRV_CPP,;t t
24809 s,@IDL_SRV_CPP_SUFFIX@,$IDL_SRV_CPP_SUFFIX,;t t
24810 s,@IDL_SRV_O@,$IDL_SRV_O,;t t
24811 s,@IDL_SRV_OBJ_SUFFIX@,$IDL_SRV_OBJ_SUFFIX,;t t
24812 s,@IDL_TIE_H_SUFFIX@,$IDL_TIE_H_SUFFIX,;t t
24813 s,@IDL_TIE_H1_SUFFIX@,$IDL_TIE_H1_SUFFIX,;t t
24814 s,@IDL_TIE_CPP_SUFFIX@,$IDL_TIE_CPP_SUFFIX,;t t
24815 s,@ORB_COSNAMING_LIB@,$ORB_COSNAMING_LIB,;t t
24816 s,@HAVE_ORB_IDL@,$HAVE_ORB_IDL,;t t
24817 s,@DARWIN_ENABLED_TRUE@,$DARWIN_ENABLED_TRUE,;t t
24818 s,@DARWIN_ENABLED_FALSE@,$DARWIN_ENABLED_FALSE,;t t
24819 s,@ALLOCA@,$ALLOCA,;t t
24820 s,@MYSQLCLIENT_LDFLAGS@,$MYSQLCLIENT_LDFLAGS,;t t
24821 s,@MYSQLCLIENT_CFLAGS@,$MYSQLCLIENT_CFLAGS,;t t
24822 s,@MYSQLCLIENT_LIBS@,$MYSQLCLIENT_LIBS,;t t
24823 s,@MYSQL@,$MYSQL,;t t
24824 s,@MYSQL_ADMIN@,$MYSQL_ADMIN,;t t
24825 s,@MYSQL_ADMIN_PASSWD@,$MYSQL_ADMIN_PASSWD,;t t
24826 s,@MYSQL_HOST@,$MYSQL_HOST,;t t
24827 s,@TANGO_DB_NAME@,$TANGO_DB_NAME,;t t
24828 s,@TANGO_DB_SERVER_ENABLED_TRUE@,$TANGO_DB_SERVER_ENABLED_TRUE,;t t
24829 s,@TANGO_DB_SERVER_ENABLED_FALSE@,$TANGO_DB_SERVER_ENABLED_FALSE,;t t
24830 s,@TANGO_DB_CREATE_ENABLED_TRUE@,$TANGO_DB_CREATE_ENABLED_TRUE,;t t
24831 s,@TANGO_DB_CREATE_ENABLED_FALSE@,$TANGO_DB_CREATE_ENABLED_FALSE,;t t
24832 s,@ac_aux_dir@,$ac_aux_dir,;t t
24833 s,@VERSION_INFO@,$VERSION_INFO,;t t
24834 s,@DATADIR@,$DATADIR,;t t
24835 s,@subdirs@,$subdirs,;t t
24836 s,@LIBOBJS@,$LIBOBJS,;t t
24837 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24838 CEOF
24840 _ACEOF
24842 cat >>$CONFIG_STATUS <<\_ACEOF
24843 # Split the substitutions into bite-sized pieces for seds with
24844 # small command number limits, like on Digital OSF/1 and HP-UX.
24845 ac_max_sed_lines=48
24846 ac_sed_frag=1 # Number of current file.
24847 ac_beg=1 # First line for current file.
24848 ac_end=$ac_max_sed_lines # Line after last line for current file.
24849 ac_more_lines=:
24850 ac_sed_cmds=
24851 while $ac_more_lines; do
24852 if test $ac_beg -gt 1; then
24853 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24854 else
24855 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24857 if test ! -s $tmp/subs.frag; then
24858 ac_more_lines=false
24859 else
24860 # The purpose of the label and of the branching condition is to
24861 # speed up the sed processing (if there are no `@' at all, there
24862 # is no need to browse any of the substitutions).
24863 # These are the two extra sed commands mentioned above.
24864 (echo ':t
24865 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24866 if test -z "$ac_sed_cmds"; then
24867 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24868 else
24869 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24871 ac_sed_frag=`expr $ac_sed_frag + 1`
24872 ac_beg=$ac_end
24873 ac_end=`expr $ac_end + $ac_max_sed_lines`
24875 done
24876 if test -z "$ac_sed_cmds"; then
24877 ac_sed_cmds=cat
24879 fi # test -n "$CONFIG_FILES"
24881 _ACEOF
24882 cat >>$CONFIG_STATUS <<\_ACEOF
24883 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24884 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24885 case $ac_file in
24886 - | *:- | *:-:* ) # input from stdin
24887 cat >$tmp/stdin
24888 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24889 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24890 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24891 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24892 * ) ac_file_in=$ac_file.in ;;
24893 esac
24895 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24896 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24897 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24898 X"$ac_file" : 'X\(//\)[^/]' \| \
24899 X"$ac_file" : 'X\(//\)$' \| \
24900 X"$ac_file" : 'X\(/\)' \| \
24901 . : '\(.\)' 2>/dev/null ||
24902 echo X"$ac_file" |
24903 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24904 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24905 /^X\(\/\/\)$/{ s//\1/; q; }
24906 /^X\(\/\).*/{ s//\1/; q; }
24907 s/.*/./; q'`
24908 { if $as_mkdir_p; then
24909 mkdir -p "$ac_dir"
24910 else
24911 as_dir="$ac_dir"
24912 as_dirs=
24913 while test ! -d "$as_dir"; do
24914 as_dirs="$as_dir $as_dirs"
24915 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24916 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24917 X"$as_dir" : 'X\(//\)[^/]' \| \
24918 X"$as_dir" : 'X\(//\)$' \| \
24919 X"$as_dir" : 'X\(/\)' \| \
24920 . : '\(.\)' 2>/dev/null ||
24921 echo X"$as_dir" |
24922 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24923 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24924 /^X\(\/\/\)$/{ s//\1/; q; }
24925 /^X\(\/\).*/{ s//\1/; q; }
24926 s/.*/./; q'`
24927 done
24928 test ! -n "$as_dirs" || mkdir $as_dirs
24929 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24930 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24931 { (exit 1); exit 1; }; }; }
24933 ac_builddir=.
24935 if test "$ac_dir" != .; then
24936 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24937 # A "../" for each directory in $ac_dir_suffix.
24938 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24939 else
24940 ac_dir_suffix= ac_top_builddir=
24943 case $srcdir in
24944 .) # No --srcdir option. We are building in place.
24945 ac_srcdir=.
24946 if test -z "$ac_top_builddir"; then
24947 ac_top_srcdir=.
24948 else
24949 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24950 fi ;;
24951 [\\/]* | ?:[\\/]* ) # Absolute path.
24952 ac_srcdir=$srcdir$ac_dir_suffix;
24953 ac_top_srcdir=$srcdir ;;
24954 *) # Relative path.
24955 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24956 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24957 esac
24959 # Do not use `cd foo && pwd` to compute absolute paths, because
24960 # the directories may not exist.
24961 case `pwd` in
24962 .) ac_abs_builddir="$ac_dir";;
24964 case "$ac_dir" in
24965 .) ac_abs_builddir=`pwd`;;
24966 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24967 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24968 esac;;
24969 esac
24970 case $ac_abs_builddir in
24971 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24973 case ${ac_top_builddir}. in
24974 .) ac_abs_top_builddir=$ac_abs_builddir;;
24975 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24976 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24977 esac;;
24978 esac
24979 case $ac_abs_builddir in
24980 .) ac_abs_srcdir=$ac_srcdir;;
24982 case $ac_srcdir in
24983 .) ac_abs_srcdir=$ac_abs_builddir;;
24984 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24985 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24986 esac;;
24987 esac
24988 case $ac_abs_builddir in
24989 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24991 case $ac_top_srcdir in
24992 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24993 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24994 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24995 esac;;
24996 esac
24999 case $INSTALL in
25000 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25001 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
25002 esac
25004 if test x"$ac_file" != x-; then
25005 { echo "$as_me:$LINENO: creating $ac_file" >&5
25006 echo "$as_me: creating $ac_file" >&6;}
25007 rm -f "$ac_file"
25009 # Let's still pretend it is `configure' which instantiates (i.e., don't
25010 # use $as_me), people would be surprised to read:
25011 # /* config.h. Generated by config.status. */
25012 if test x"$ac_file" = x-; then
25013 configure_input=
25014 else
25015 configure_input="$ac_file. "
25017 configure_input=$configure_input"Generated from `echo $ac_file_in |
25018 sed 's,.*/,,'` by configure."
25020 # First look for the input files in the build tree, otherwise in the
25021 # src tree.
25022 ac_file_inputs=`IFS=:
25023 for f in $ac_file_in; do
25024 case $f in
25025 -) echo $tmp/stdin ;;
25026 [\\/$]*)
25027 # Absolute (can't be DOS-style, as IFS=:)
25028 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25029 echo "$as_me: error: cannot find input file: $f" >&2;}
25030 { (exit 1); exit 1; }; }
25031 echo "$f";;
25032 *) # Relative
25033 if test -f "$f"; then
25034 # Build tree
25035 echo "$f"
25036 elif test -f "$srcdir/$f"; then
25037 # Source tree
25038 echo "$srcdir/$f"
25039 else
25040 # /dev/null tree
25041 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25042 echo "$as_me: error: cannot find input file: $f" >&2;}
25043 { (exit 1); exit 1; }; }
25044 fi;;
25045 esac
25046 done` || { (exit 1); exit 1; }
25047 _ACEOF
25048 cat >>$CONFIG_STATUS <<_ACEOF
25049 sed "$ac_vpsub
25050 $extrasub
25051 _ACEOF
25052 cat >>$CONFIG_STATUS <<\_ACEOF
25054 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25055 s,@configure_input@,$configure_input,;t t
25056 s,@srcdir@,$ac_srcdir,;t t
25057 s,@abs_srcdir@,$ac_abs_srcdir,;t t
25058 s,@top_srcdir@,$ac_top_srcdir,;t t
25059 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25060 s,@builddir@,$ac_builddir,;t t
25061 s,@abs_builddir@,$ac_abs_builddir,;t t
25062 s,@top_builddir@,$ac_top_builddir,;t t
25063 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
25064 s,@INSTALL@,$ac_INSTALL,;t t
25065 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25066 rm -f $tmp/stdin
25067 if test x"$ac_file" != x-; then
25068 mv $tmp/out $ac_file
25069 else
25070 cat $tmp/out
25071 rm -f $tmp/out
25074 done
25075 _ACEOF
25076 cat >>$CONFIG_STATUS <<\_ACEOF
25079 # CONFIG_HEADER section.
25082 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25083 # NAME is the cpp macro being defined and VALUE is the value it is being given.
25085 # ac_d sets the value in "#define NAME VALUE" lines.
25086 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
25087 ac_dB='[ ].*$,\1#\2'
25088 ac_dC=' '
25089 ac_dD=',;t'
25090 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25091 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
25092 ac_uB='$,\1#\2define\3'
25093 ac_uC=' '
25094 ac_uD=',;t'
25096 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25097 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25098 case $ac_file in
25099 - | *:- | *:-:* ) # input from stdin
25100 cat >$tmp/stdin
25101 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25102 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25103 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25104 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25105 * ) ac_file_in=$ac_file.in ;;
25106 esac
25108 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25109 echo "$as_me: creating $ac_file" >&6;}
25111 # First look for the input files in the build tree, otherwise in the
25112 # src tree.
25113 ac_file_inputs=`IFS=:
25114 for f in $ac_file_in; do
25115 case $f in
25116 -) echo $tmp/stdin ;;
25117 [\\/$]*)
25118 # Absolute (can't be DOS-style, as IFS=:)
25119 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25120 echo "$as_me: error: cannot find input file: $f" >&2;}
25121 { (exit 1); exit 1; }; }
25122 # Do quote $f, to prevent DOS paths from being IFS'd.
25123 echo "$f";;
25124 *) # Relative
25125 if test -f "$f"; then
25126 # Build tree
25127 echo "$f"
25128 elif test -f "$srcdir/$f"; then
25129 # Source tree
25130 echo "$srcdir/$f"
25131 else
25132 # /dev/null tree
25133 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25134 echo "$as_me: error: cannot find input file: $f" >&2;}
25135 { (exit 1); exit 1; }; }
25136 fi;;
25137 esac
25138 done` || { (exit 1); exit 1; }
25139 # Remove the trailing spaces.
25140 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
25142 _ACEOF
25144 # Transform confdefs.h into two sed scripts, `conftest.defines' and
25145 # `conftest.undefs', that substitutes the proper values into
25146 # config.h.in to produce config.h. The first handles `#define'
25147 # templates, and the second `#undef' templates.
25148 # And first: Protect against being on the right side of a sed subst in
25149 # config.status. Protect against being in an unquoted here document
25150 # in config.status.
25151 rm -f conftest.defines conftest.undefs
25152 # Using a here document instead of a string reduces the quoting nightmare.
25153 # Putting comments in sed scripts is not portable.
25155 # `end' is used to avoid that the second main sed command (meant for
25156 # 0-ary CPP macros) applies to n-ary macro definitions.
25157 # See the Autoconf documentation for `clear'.
25158 cat >confdef2sed.sed <<\_ACEOF
25159 s/[\\&,]/\\&/g
25160 s,[\\$`],\\&,g
25161 t clear
25162 : clear
25163 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25164 t end
25165 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25166 : end
25167 _ACEOF
25168 # If some macros were called several times there might be several times
25169 # the same #defines, which is useless. Nevertheless, we may not want to
25170 # sort them, since we want the *last* AC-DEFINE to be honored.
25171 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25172 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25173 rm -f confdef2sed.sed
25175 # This sed command replaces #undef with comments. This is necessary, for
25176 # example, in the case of _POSIX_SOURCE, which is predefined and required
25177 # on some systems where configure will not decide to define it.
25178 cat >>conftest.undefs <<\_ACEOF
25179 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25180 _ACEOF
25182 # Break up conftest.defines because some shells have a limit on the size
25183 # of here documents, and old seds have small limits too (100 cmds).
25184 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25185 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25186 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25187 echo ' :' >>$CONFIG_STATUS
25188 rm -f conftest.tail
25189 while grep . conftest.defines >/dev/null
25191 # Write a limited-size here document to $tmp/defines.sed.
25192 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25193 # Speed up: don't consider the non `#define' lines.
25194 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
25195 # Work around the forget-to-reset-the-flag bug.
25196 echo 't clr' >>$CONFIG_STATUS
25197 echo ': clr' >>$CONFIG_STATUS
25198 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25199 echo 'CEOF
25200 sed -f $tmp/defines.sed $tmp/in >$tmp/out
25201 rm -f $tmp/in
25202 mv $tmp/out $tmp/in
25203 ' >>$CONFIG_STATUS
25204 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25205 rm -f conftest.defines
25206 mv conftest.tail conftest.defines
25207 done
25208 rm -f conftest.defines
25209 echo ' fi # grep' >>$CONFIG_STATUS
25210 echo >>$CONFIG_STATUS
25212 # Break up conftest.undefs because some shells have a limit on the size
25213 # of here documents, and old seds have small limits too (100 cmds).
25214 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25215 rm -f conftest.tail
25216 while grep . conftest.undefs >/dev/null
25218 # Write a limited-size here document to $tmp/undefs.sed.
25219 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25220 # Speed up: don't consider the non `#undef'
25221 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
25222 # Work around the forget-to-reset-the-flag bug.
25223 echo 't clr' >>$CONFIG_STATUS
25224 echo ': clr' >>$CONFIG_STATUS
25225 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25226 echo 'CEOF
25227 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25228 rm -f $tmp/in
25229 mv $tmp/out $tmp/in
25230 ' >>$CONFIG_STATUS
25231 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25232 rm -f conftest.undefs
25233 mv conftest.tail conftest.undefs
25234 done
25235 rm -f conftest.undefs
25237 cat >>$CONFIG_STATUS <<\_ACEOF
25238 # Let's still pretend it is `configure' which instantiates (i.e., don't
25239 # use $as_me), people would be surprised to read:
25240 # /* config.h. Generated by config.status. */
25241 if test x"$ac_file" = x-; then
25242 echo "/* Generated by configure. */" >$tmp/config.h
25243 else
25244 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25246 cat $tmp/in >>$tmp/config.h
25247 rm -f $tmp/in
25248 if test x"$ac_file" != x-; then
25249 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25250 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25251 echo "$as_me: $ac_file is unchanged" >&6;}
25252 else
25253 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25254 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25255 X"$ac_file" : 'X\(//\)[^/]' \| \
25256 X"$ac_file" : 'X\(//\)$' \| \
25257 X"$ac_file" : 'X\(/\)' \| \
25258 . : '\(.\)' 2>/dev/null ||
25259 echo X"$ac_file" |
25260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25261 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25262 /^X\(\/\/\)$/{ s//\1/; q; }
25263 /^X\(\/\).*/{ s//\1/; q; }
25264 s/.*/./; q'`
25265 { if $as_mkdir_p; then
25266 mkdir -p "$ac_dir"
25267 else
25268 as_dir="$ac_dir"
25269 as_dirs=
25270 while test ! -d "$as_dir"; do
25271 as_dirs="$as_dir $as_dirs"
25272 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25273 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25274 X"$as_dir" : 'X\(//\)[^/]' \| \
25275 X"$as_dir" : 'X\(//\)$' \| \
25276 X"$as_dir" : 'X\(/\)' \| \
25277 . : '\(.\)' 2>/dev/null ||
25278 echo X"$as_dir" |
25279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25280 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25281 /^X\(\/\/\)$/{ s//\1/; q; }
25282 /^X\(\/\).*/{ s//\1/; q; }
25283 s/.*/./; q'`
25284 done
25285 test ! -n "$as_dirs" || mkdir $as_dirs
25286 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25287 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25288 { (exit 1); exit 1; }; }; }
25290 rm -f $ac_file
25291 mv $tmp/config.h $ac_file
25293 else
25294 cat $tmp/config.h
25295 rm -f $tmp/config.h
25297 # Compute $ac_file's index in $config_headers.
25298 _am_stamp_count=1
25299 for _am_header in $config_headers :; do
25300 case $_am_header in
25301 $ac_file | $ac_file:* )
25302 break ;;
25304 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25305 esac
25306 done
25307 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
25308 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25309 X$ac_file : 'X\(//\)[^/]' \| \
25310 X$ac_file : 'X\(//\)$' \| \
25311 X$ac_file : 'X\(/\)' \| \
25312 . : '\(.\)' 2>/dev/null ||
25313 echo X$ac_file |
25314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25315 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25316 /^X\(\/\/\)$/{ s//\1/; q; }
25317 /^X\(\/\).*/{ s//\1/; q; }
25318 s/.*/./; q'`/stamp-h$_am_stamp_count
25319 done
25320 _ACEOF
25321 cat >>$CONFIG_STATUS <<\_ACEOF
25324 # CONFIG_COMMANDS section.
25326 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25327 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25328 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25329 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25330 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25331 X"$ac_dest" : 'X\(//\)[^/]' \| \
25332 X"$ac_dest" : 'X\(//\)$' \| \
25333 X"$ac_dest" : 'X\(/\)' \| \
25334 . : '\(.\)' 2>/dev/null ||
25335 echo X"$ac_dest" |
25336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25337 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25338 /^X\(\/\/\)$/{ s//\1/; q; }
25339 /^X\(\/\).*/{ s//\1/; q; }
25340 s/.*/./; q'`
25341 { if $as_mkdir_p; then
25342 mkdir -p "$ac_dir"
25343 else
25344 as_dir="$ac_dir"
25345 as_dirs=
25346 while test ! -d "$as_dir"; do
25347 as_dirs="$as_dir $as_dirs"
25348 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25349 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25350 X"$as_dir" : 'X\(//\)[^/]' \| \
25351 X"$as_dir" : 'X\(//\)$' \| \
25352 X"$as_dir" : 'X\(/\)' \| \
25353 . : '\(.\)' 2>/dev/null ||
25354 echo X"$as_dir" |
25355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25356 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25357 /^X\(\/\/\)$/{ s//\1/; q; }
25358 /^X\(\/\).*/{ s//\1/; q; }
25359 s/.*/./; q'`
25360 done
25361 test ! -n "$as_dirs" || mkdir $as_dirs
25362 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25363 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25364 { (exit 1); exit 1; }; }; }
25366 ac_builddir=.
25368 if test "$ac_dir" != .; then
25369 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25370 # A "../" for each directory in $ac_dir_suffix.
25371 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25372 else
25373 ac_dir_suffix= ac_top_builddir=
25376 case $srcdir in
25377 .) # No --srcdir option. We are building in place.
25378 ac_srcdir=.
25379 if test -z "$ac_top_builddir"; then
25380 ac_top_srcdir=.
25381 else
25382 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25383 fi ;;
25384 [\\/]* | ?:[\\/]* ) # Absolute path.
25385 ac_srcdir=$srcdir$ac_dir_suffix;
25386 ac_top_srcdir=$srcdir ;;
25387 *) # Relative path.
25388 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25389 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25390 esac
25392 # Do not use `cd foo && pwd` to compute absolute paths, because
25393 # the directories may not exist.
25394 case `pwd` in
25395 .) ac_abs_builddir="$ac_dir";;
25397 case "$ac_dir" in
25398 .) ac_abs_builddir=`pwd`;;
25399 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25400 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25401 esac;;
25402 esac
25403 case $ac_abs_builddir in
25404 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25406 case ${ac_top_builddir}. in
25407 .) ac_abs_top_builddir=$ac_abs_builddir;;
25408 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25409 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25410 esac;;
25411 esac
25412 case $ac_abs_builddir in
25413 .) ac_abs_srcdir=$ac_srcdir;;
25415 case $ac_srcdir in
25416 .) ac_abs_srcdir=$ac_abs_builddir;;
25417 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25418 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25419 esac;;
25420 esac
25421 case $ac_abs_builddir in
25422 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25424 case $ac_top_srcdir in
25425 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25426 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25427 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25428 esac;;
25429 esac
25432 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25433 echo "$as_me: executing $ac_dest commands" >&6;}
25434 case $ac_dest in
25435 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25436 # Strip MF so we end up with the name of the file.
25437 mf=`echo "$mf" | sed -e 's/:.*$//'`
25438 # Check whether this is an Automake generated Makefile or not.
25439 # We used to match only the files named `Makefile.in', but
25440 # some people rename them; so instead we look at the file content.
25441 # Grep'ing the first line is not enough: some people post-process
25442 # each Makefile.in and add a new line on top of each file to say so.
25443 # So let's grep whole file.
25444 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
25445 dirpart=`(dirname "$mf") 2>/dev/null ||
25446 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25447 X"$mf" : 'X\(//\)[^/]' \| \
25448 X"$mf" : 'X\(//\)$' \| \
25449 X"$mf" : 'X\(/\)' \| \
25450 . : '\(.\)' 2>/dev/null ||
25451 echo X"$mf" |
25452 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25453 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25454 /^X\(\/\/\)$/{ s//\1/; q; }
25455 /^X\(\/\).*/{ s//\1/; q; }
25456 s/.*/./; q'`
25457 else
25458 continue
25460 # Extract the definition of DEPDIR, am__include, and am__quote
25461 # from the Makefile without running `make'.
25462 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25463 test -z "$DEPDIR" && continue
25464 am__include=`sed -n 's/^am__include = //p' < "$mf"`
25465 test -z "am__include" && continue
25466 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25467 # When using ansi2knr, U may be empty or an underscore; expand it
25468 U=`sed -n 's/^U = //p' < "$mf"`
25469 # Find all dependency output files, they are included files with
25470 # $(DEPDIR) in their names. We invoke sed twice because it is the
25471 # simplest approach to changing $(DEPDIR) to its actual value in the
25472 # expansion.
25473 for file in `sed -n "
25474 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25475 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25476 # Make sure the directory exists.
25477 test -f "$dirpart/$file" && continue
25478 fdir=`(dirname "$file") 2>/dev/null ||
25479 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25480 X"$file" : 'X\(//\)[^/]' \| \
25481 X"$file" : 'X\(//\)$' \| \
25482 X"$file" : 'X\(/\)' \| \
25483 . : '\(.\)' 2>/dev/null ||
25484 echo X"$file" |
25485 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25486 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25487 /^X\(\/\/\)$/{ s//\1/; q; }
25488 /^X\(\/\).*/{ s//\1/; q; }
25489 s/.*/./; q'`
25490 { if $as_mkdir_p; then
25491 mkdir -p $dirpart/$fdir
25492 else
25493 as_dir=$dirpart/$fdir
25494 as_dirs=
25495 while test ! -d "$as_dir"; do
25496 as_dirs="$as_dir $as_dirs"
25497 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25498 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25499 X"$as_dir" : 'X\(//\)[^/]' \| \
25500 X"$as_dir" : 'X\(//\)$' \| \
25501 X"$as_dir" : 'X\(/\)' \| \
25502 . : '\(.\)' 2>/dev/null ||
25503 echo X"$as_dir" |
25504 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25505 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25506 /^X\(\/\/\)$/{ s//\1/; q; }
25507 /^X\(\/\).*/{ s//\1/; q; }
25508 s/.*/./; q'`
25509 done
25510 test ! -n "$as_dirs" || mkdir $as_dirs
25511 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
25512 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
25513 { (exit 1); exit 1; }; }; }
25515 # echo "creating $dirpart/$file"
25516 echo '# dummy' > "$dirpart/$file"
25517 done
25518 done
25520 ac_config.h ) sed s/PACKAGE/TANGO_PACKAGE/g <ac_config.h.tmp>ac_config.h ;;
25521 esac
25522 done
25523 _ACEOF
25525 cat >>$CONFIG_STATUS <<\_ACEOF
25527 { (exit 0); exit 0; }
25528 _ACEOF
25529 chmod +x $CONFIG_STATUS
25530 ac_clean_files=$ac_clean_files_save
25533 # configure is writing to config.log, and then calls config.status.
25534 # config.status does its own redirection, appending to config.log.
25535 # Unfortunately, on DOS this fails, as config.log is still kept open
25536 # by configure, so config.status won't be able to write to it; its
25537 # output is simply discarded. So we exec the FD to /dev/null,
25538 # effectively closing config.log, so it can be properly (re)opened and
25539 # appended to by config.status. When coming back to configure, we
25540 # need to make the FD available again.
25541 if test "$no_create" != yes; then
25542 ac_cs_success=:
25543 ac_config_status_args=
25544 test "$silent" = yes &&
25545 ac_config_status_args="$ac_config_status_args --quiet"
25546 exec 5>/dev/null
25547 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25548 exec 5>>config.log
25549 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25550 # would make configure fail if this is the last instruction.
25551 $ac_cs_success || { (exit 1); exit 1; }
25555 # CONFIG_SUBDIRS section.
25557 if test "$no_recursion" != yes; then
25559 # Remove --cache-file and --srcdir arguments so they do not pile up.
25560 ac_sub_configure_args=
25561 ac_prev=
25562 for ac_arg in $ac_configure_args; do
25563 if test -n "$ac_prev"; then
25564 ac_prev=
25565 continue
25567 case $ac_arg in
25568 -cache-file | --cache-file | --cache-fil | --cache-fi \
25569 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25570 ac_prev=cache_file ;;
25571 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25572 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25573 | --c=*)
25575 --config-cache | -C)
25577 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25578 ac_prev=srcdir ;;
25579 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25581 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25582 ac_prev=prefix ;;
25583 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25585 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
25586 esac
25587 done
25589 # Always prepend --prefix to ensure using the same prefix
25590 # in subdir configurations.
25591 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25593 ac_popdir=`pwd`
25594 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25596 # Do not complain, so a configure script can configure whichever
25597 # parts of a large source tree are present.
25598 test -d $srcdir/$ac_dir || continue
25600 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25601 echo "$as_me: configuring in $ac_dir" >&6;}
25602 { if $as_mkdir_p; then
25603 mkdir -p "$ac_dir"
25604 else
25605 as_dir="$ac_dir"
25606 as_dirs=
25607 while test ! -d "$as_dir"; do
25608 as_dirs="$as_dir $as_dirs"
25609 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25610 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25611 X"$as_dir" : 'X\(//\)[^/]' \| \
25612 X"$as_dir" : 'X\(//\)$' \| \
25613 X"$as_dir" : 'X\(/\)' \| \
25614 . : '\(.\)' 2>/dev/null ||
25615 echo X"$as_dir" |
25616 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25617 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25618 /^X\(\/\/\)$/{ s//\1/; q; }
25619 /^X\(\/\).*/{ s//\1/; q; }
25620 s/.*/./; q'`
25621 done
25622 test ! -n "$as_dirs" || mkdir $as_dirs
25623 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25624 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25625 { (exit 1); exit 1; }; }; }
25627 ac_builddir=.
25629 if test "$ac_dir" != .; then
25630 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25631 # A "../" for each directory in $ac_dir_suffix.
25632 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25633 else
25634 ac_dir_suffix= ac_top_builddir=
25637 case $srcdir in
25638 .) # No --srcdir option. We are building in place.
25639 ac_srcdir=.
25640 if test -z "$ac_top_builddir"; then
25641 ac_top_srcdir=.
25642 else
25643 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25644 fi ;;
25645 [\\/]* | ?:[\\/]* ) # Absolute path.
25646 ac_srcdir=$srcdir$ac_dir_suffix;
25647 ac_top_srcdir=$srcdir ;;
25648 *) # Relative path.
25649 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25650 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25651 esac
25653 # Do not use `cd foo && pwd` to compute absolute paths, because
25654 # the directories may not exist.
25655 case `pwd` in
25656 .) ac_abs_builddir="$ac_dir";;
25658 case "$ac_dir" in
25659 .) ac_abs_builddir=`pwd`;;
25660 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25661 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25662 esac;;
25663 esac
25664 case $ac_abs_builddir in
25665 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25667 case ${ac_top_builddir}. in
25668 .) ac_abs_top_builddir=$ac_abs_builddir;;
25669 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25670 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25671 esac;;
25672 esac
25673 case $ac_abs_builddir in
25674 .) ac_abs_srcdir=$ac_srcdir;;
25676 case $ac_srcdir in
25677 .) ac_abs_srcdir=$ac_abs_builddir;;
25678 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25679 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25680 esac;;
25681 esac
25682 case $ac_abs_builddir in
25683 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25685 case $ac_top_srcdir in
25686 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25687 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25688 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25689 esac;;
25690 esac
25693 cd $ac_dir
25695 # Check for guested configure; otherwise get Cygnus style configure.
25696 if test -f $ac_srcdir/configure.gnu; then
25697 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25698 elif test -f $ac_srcdir/configure; then
25699 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25700 elif test -f $ac_srcdir/configure.in; then
25701 ac_sub_configure=$ac_configure
25702 else
25703 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25704 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25705 ac_sub_configure=
25708 # The recursion is here.
25709 if test -n "$ac_sub_configure"; then
25710 # Make the cache file name correct relative to the subdirectory.
25711 case $cache_file in
25712 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25713 *) # Relative path.
25714 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
25715 esac
25717 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25718 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25719 # The eval makes quoting arguments work.
25720 eval $ac_sub_configure $ac_sub_configure_args \
25721 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
25722 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25723 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25724 { (exit 1); exit 1; }; }
25727 cd $ac_popdir
25728 done
25733 echo "$as_me:$LINENO: result:
25734 Configuration ($PACKAGE):
25736 Source code location: ${srcdir}
25737 Version: ${VERSION}
25738 Compiler: ${ac_ct_CC},${ac_ct_CXX}
25740 OMNIORB PATH: ${OMNI_ROOT}
25741 OMNIORB VERSION: ${OMNI_VERSION}
25743 JAVA PATH: ${with_java}
25744 JAVA VERSION: ${JAVA_VERSION}
25746 MYSQL CLIENT LIB: ${MYSQLCLIENT_LDFLAGS} ${MYSQLCLIENT_LIBS}
25747 MYSQL VERSION: ${MYSQL_VERSION}
25748 MYSQL CONNECTION: ${MYSQL_CONNECTION}
25750 build:
25751 libraries: ${enable_lib}
25752 java application: ${enable_java}
25753 database server: ${enable_dbserver}
25754 database schema create: ${enable_db_schema_create}
25756 Please check whether the configuration I detected matches what you
25757 would like to have.
25759 ATTENTION: To run the new database server you must have MySQL 5.x installed
25760 and to update your database schema with the update_db.sql script!
25761 " >&5
25762 echo "${ECHO_T}
25763 Configuration ($PACKAGE):
25765 Source code location: ${srcdir}
25766 Version: ${VERSION}
25767 Compiler: ${ac_ct_CC},${ac_ct_CXX}
25769 OMNIORB PATH: ${OMNI_ROOT}
25770 OMNIORB VERSION: ${OMNI_VERSION}
25772 JAVA PATH: ${with_java}
25773 JAVA VERSION: ${JAVA_VERSION}
25775 MYSQL CLIENT LIB: ${MYSQLCLIENT_LDFLAGS} ${MYSQLCLIENT_LIBS}
25776 MYSQL VERSION: ${MYSQL_VERSION}
25777 MYSQL CONNECTION: ${MYSQL_CONNECTION}
25779 build:
25780 libraries: ${enable_lib}
25781 java application: ${enable_java}
25782 database server: ${enable_dbserver}
25783 database schema create: ${enable_db_schema_create}
25785 Please check whether the configuration I detected matches what you
25786 would like to have.
25788 ATTENTION: To run the new database server you must have MySQL 5.x installed
25789 and to update your database schema with the update_db.sql script!
25790 " >&6